Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

qed: Fix kernel-doc warnings

This patch fixes all the qed and qede kernel-doc warnings
according to the guidelines that are described in
Documentation/doc-guide/kernel-doc.rst.

Signed-off-by: Ariel Elior <aelior@marvell.com>
Signed-off-by: Omkar Kulkarni <okulkarni@marvell.com>
Signed-off-by: Shai Malin <smalin@marvell.com>
Signed-off-by: Prabhakar Kushwaha <pkushwaha@marvell.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Prabhakar Kushwaha and committed by
David S. Miller
19198e4e cfbe9b00

+2161 -1892
+5 -4
drivers/net/ethernet/qlogic/qed/qed.h
··· 877 877 878 878 879 879 /** 880 - * @brief qed_concrete_to_sw_fid - get the sw function id from 881 - * the concrete value. 880 + * qed_concrete_to_sw_fid(): Get the sw function id from 881 + * the concrete value. 882 882 * 883 - * @param concrete_fid 883 + * @cdev: Qed dev pointer. 884 + * @concrete_fid: Concrete fid. 884 885 * 885 - * @return inline u8 886 + * Return: inline u8. 886 887 */ 887 888 static inline u8 qed_concrete_to_sw_fid(struct qed_dev *cdev, 888 889 u32 concrete_fid)
+75 -63
drivers/net/ethernet/qlogic/qed/qed_cxt.h
··· 28 28 }; 29 29 30 30 /** 31 - * @brief qedo_cid_get_cxt_info - Returns the context info for a specific cid 31 + * qed_cxt_get_cid_info(): Returns the context info for a specific cidi. 32 32 * 33 + * @p_hwfn: HW device data. 34 + * @p_info: In/out. 33 35 * 34 - * @param p_hwfn 35 - * @param p_info in/out 36 - * 37 - * @return int 36 + * Return: Int. 38 37 */ 39 38 int qed_cxt_get_cid_info(struct qed_hwfn *p_hwfn, 40 39 struct qed_cxt_info *p_info); 41 40 42 41 /** 43 - * @brief qed_cxt_get_tid_mem_info 42 + * qed_cxt_get_tid_mem_info(): Returns the tid mem info. 44 43 * 45 - * @param p_hwfn 46 - * @param p_info 44 + * @p_hwfn: HW device data. 45 + * @p_info: in/out. 47 46 * 48 - * @return int 47 + * Return: int. 49 48 */ 50 49 int qed_cxt_get_tid_mem_info(struct qed_hwfn *p_hwfn, 51 50 struct qed_tid_mem *p_info); ··· 63 64 enum protocol_type type, u32 *vf_cid); 64 65 65 66 /** 66 - * @brief qed_cxt_set_pf_params - Set the PF params for cxt init 67 + * qed_cxt_set_pf_params(): Set the PF params for cxt init. 67 68 * 68 - * @param p_hwfn 69 - * @param rdma_tasks - requested maximum 70 - * @return int 69 + * @p_hwfn: HW device data. 70 + * @rdma_tasks: Requested maximum. 71 + * 72 + * Return: int. 71 73 */ 72 74 int qed_cxt_set_pf_params(struct qed_hwfn *p_hwfn, u32 rdma_tasks); 73 75 74 76 /** 75 - * @brief qed_cxt_cfg_ilt_compute - compute ILT init parameters 77 + * qed_cxt_cfg_ilt_compute(): Compute ILT init parameters. 76 78 * 77 - * @param p_hwfn 78 - * @param last_line 79 + * @p_hwfn: HW device data. 80 + * @last_line: Last_line. 79 81 * 80 - * @return int 82 + * Return: Int 81 83 */ 82 84 int qed_cxt_cfg_ilt_compute(struct qed_hwfn *p_hwfn, u32 *last_line); 83 85 84 86 /** 85 - * @brief qed_cxt_cfg_ilt_compute_excess - how many lines can be decreased 87 + * qed_cxt_cfg_ilt_compute_excess(): How many lines can be decreased. 86 88 * 87 - * @param p_hwfn 88 - * @param used_lines 89 + * @p_hwfn: HW device data. 90 + * @used_lines: Used lines. 91 + * 92 + * Return: Int. 89 93 */ 90 94 u32 qed_cxt_cfg_ilt_compute_excess(struct qed_hwfn *p_hwfn, u32 used_lines); 91 95 92 96 /** 93 - * @brief qed_cxt_mngr_alloc - Allocate and init the context manager struct 97 + * qed_cxt_mngr_alloc(): Allocate and init the context manager struct. 94 98 * 95 - * @param p_hwfn 99 + * @p_hwfn: HW device data. 96 100 * 97 - * @return int 101 + * Return: Int. 98 102 */ 99 103 int qed_cxt_mngr_alloc(struct qed_hwfn *p_hwfn); 100 104 101 105 /** 102 - * @brief qed_cxt_mngr_free 106 + * qed_cxt_mngr_free() - Context manager free. 103 107 * 104 - * @param p_hwfn 108 + * @p_hwfn: HW device data. 109 + * 110 + * Return: Void. 105 111 */ 106 112 void qed_cxt_mngr_free(struct qed_hwfn *p_hwfn); 107 113 108 114 /** 109 - * @brief qed_cxt_tables_alloc - Allocate ILT shadow, Searcher T2, acquired map 115 + * qed_cxt_tables_alloc(): Allocate ILT shadow, Searcher T2, acquired map. 110 116 * 111 - * @param p_hwfn 117 + * @p_hwfn: HW device data. 112 118 * 113 - * @return int 119 + * Return: Int. 114 120 */ 115 121 int qed_cxt_tables_alloc(struct qed_hwfn *p_hwfn); 116 122 117 123 /** 118 - * @brief qed_cxt_mngr_setup - Reset the acquired CIDs 124 + * qed_cxt_mngr_setup(): Reset the acquired CIDs. 119 125 * 120 - * @param p_hwfn 126 + * @p_hwfn: HW device data. 121 127 */ 122 128 void qed_cxt_mngr_setup(struct qed_hwfn *p_hwfn); 123 129 124 130 /** 125 - * @brief qed_cxt_hw_init_common - Initailze ILT and DQ, common phase, per path. 131 + * qed_cxt_hw_init_common(): Initailze ILT and DQ, common phase, per path. 126 132 * 133 + * @p_hwfn: HW device data. 127 134 * 128 - * 129 - * @param p_hwfn 135 + * Return: Void. 130 136 */ 131 137 void qed_cxt_hw_init_common(struct qed_hwfn *p_hwfn); 132 138 133 139 /** 134 - * @brief qed_cxt_hw_init_pf - Initailze ILT and DQ, PF phase, per path. 140 + * qed_cxt_hw_init_pf(): Initailze ILT and DQ, PF phase, per path. 135 141 * 136 - * @param p_hwfn 137 - * @param p_ptt 142 + * @p_hwfn: HW device data. 143 + * @p_ptt: P_ptt. 144 + * 145 + * Return: Void. 138 146 */ 139 147 void qed_cxt_hw_init_pf(struct qed_hwfn *p_hwfn, struct qed_ptt *p_ptt); 140 148 141 149 /** 142 - * @brief qed_qm_init_pf - Initailze the QM PF phase, per path 150 + * qed_qm_init_pf(): Initailze the QM PF phase, per path. 143 151 * 144 - * @param p_hwfn 145 - * @param p_ptt 146 - * @param is_pf_loading 152 + * @p_hwfn: HW device data. 153 + * @p_ptt: P_ptt. 154 + * @is_pf_loading: Is pf pending. 155 + * 156 + * Return: Void. 147 157 */ 148 158 void qed_qm_init_pf(struct qed_hwfn *p_hwfn, 149 159 struct qed_ptt *p_ptt, bool is_pf_loading); 150 160 151 161 /** 152 - * @brief Reconfigures QM pf on the fly 162 + * qed_qm_reconf(): Reconfigures QM pf on the fly. 153 163 * 154 - * @param p_hwfn 155 - * @param p_ptt 164 + * @p_hwfn: HW device data. 165 + * @p_ptt: P_ptt. 156 166 * 157 - * @return int 167 + * Return: Int. 158 168 */ 159 169 int qed_qm_reconf(struct qed_hwfn *p_hwfn, struct qed_ptt *p_ptt); 160 170 161 171 #define QED_CXT_PF_CID (0xff) 162 172 163 173 /** 164 - * @brief qed_cxt_release - Release a cid 174 + * qed_cxt_release_cid(): Release a cid. 165 175 * 166 - * @param p_hwfn 167 - * @param cid 176 + * @p_hwfn: HW device data. 177 + * @cid: Cid. 178 + * 179 + * Return: Void. 168 180 */ 169 181 void qed_cxt_release_cid(struct qed_hwfn *p_hwfn, u32 cid); 170 182 171 183 /** 172 - * @brief qed_cxt_release - Release a cid belonging to a vf-queue 184 + * _qed_cxt_release_cid(): Release a cid belonging to a vf-queue. 173 185 * 174 - * @param p_hwfn 175 - * @param cid 176 - * @param vfid - engine relative index. QED_CXT_PF_CID if belongs to PF 186 + * @p_hwfn: HW device data. 187 + * @cid: Cid. 188 + * @vfid: Engine relative index. QED_CXT_PF_CID if belongs to PF. 189 + * 190 + * Return: Void. 177 191 */ 178 192 void _qed_cxt_release_cid(struct qed_hwfn *p_hwfn, u32 cid, u8 vfid); 179 193 180 194 /** 181 - * @brief qed_cxt_acquire - Acquire a new cid of a specific protocol type 195 + * qed_cxt_acquire_cid(): Acquire a new cid of a specific protocol type. 182 196 * 183 - * @param p_hwfn 184 - * @param type 185 - * @param p_cid 197 + * @p_hwfn: HW device data. 198 + * @type: Type. 199 + * @p_cid: Pointer cid. 186 200 * 187 - * @return int 201 + * Return: Int. 188 202 */ 189 203 int qed_cxt_acquire_cid(struct qed_hwfn *p_hwfn, 190 204 enum protocol_type type, u32 *p_cid); 191 205 192 206 /** 193 - * @brief _qed_cxt_acquire - Acquire a new cid of a specific protocol type 194 - * for a vf-queue 207 + * _qed_cxt_acquire_cid(): Acquire a new cid of a specific protocol type 208 + * for a vf-queue. 195 209 * 196 - * @param p_hwfn 197 - * @param type 198 - * @param p_cid 199 - * @param vfid - engine relative index. QED_CXT_PF_CID if belongs to PF 210 + * @p_hwfn: HW device data. 211 + * @type: Type. 212 + * @p_cid: Pointer cid. 213 + * @vfid: Engine relative index. QED_CXT_PF_CID if belongs to PF. 200 214 * 201 - * @return int 215 + * Return: Int. 202 216 */ 203 217 int _qed_cxt_acquire_cid(struct qed_hwfn *p_hwfn, 204 218 enum protocol_type type, u32 *p_cid, u8 vfid);
+186 -159
drivers/net/ethernet/qlogic/qed/qed_dev_api.h
··· 15 15 #include "qed_int.h" 16 16 17 17 /** 18 - * @brief qed_init_dp - initialize the debug level 18 + * qed_init_dp(): Initialize the debug level. 19 19 * 20 - * @param cdev 21 - * @param dp_module 22 - * @param dp_level 20 + * @cdev: Qed dev pointer. 21 + * @dp_module: Module debug parameter. 22 + * @dp_level: Module debug level. 23 + * 24 + * Return: Void. 23 25 */ 24 26 void qed_init_dp(struct qed_dev *cdev, 25 27 u32 dp_module, 26 28 u8 dp_level); 27 29 28 30 /** 29 - * @brief qed_init_struct - initialize the device structure to 30 - * its defaults 31 + * qed_init_struct(): Initialize the device structure to 32 + * its defaults. 31 33 * 32 - * @param cdev 34 + * @cdev: Qed dev pointer. 35 + * 36 + * Return: Void. 33 37 */ 34 38 void qed_init_struct(struct qed_dev *cdev); 35 39 36 40 /** 37 - * @brief qed_resc_free - 41 + * qed_resc_free: Free device resources. 38 42 * 39 - * @param cdev 43 + * @cdev: Qed dev pointer. 44 + * 45 + * Return: Void. 40 46 */ 41 47 void qed_resc_free(struct qed_dev *cdev); 42 48 43 49 /** 44 - * @brief qed_resc_alloc - 50 + * qed_resc_alloc(): Alloc device resources. 45 51 * 46 - * @param cdev 52 + * @cdev: Qed dev pointer. 47 53 * 48 - * @return int 54 + * Return: Int. 49 55 */ 50 56 int qed_resc_alloc(struct qed_dev *cdev); 51 57 52 58 /** 53 - * @brief qed_resc_setup - 59 + * qed_resc_setup(): Setup device resources. 54 60 * 55 - * @param cdev 61 + * @cdev: Qed dev pointer. 62 + * 63 + * Return: Void. 56 64 */ 57 65 void qed_resc_setup(struct qed_dev *cdev); 58 66 ··· 113 105 }; 114 106 115 107 /** 116 - * @brief qed_hw_init - 108 + * qed_hw_init(): Init Qed hardware. 117 109 * 118 - * @param cdev 119 - * @param p_params 110 + * @cdev: Qed dev pointer. 111 + * @p_params: Pointers to params. 120 112 * 121 - * @return int 113 + * Return: Int. 122 114 */ 123 115 int qed_hw_init(struct qed_dev *cdev, struct qed_hw_init_params *p_params); 124 116 125 117 /** 126 - * @brief qed_hw_timers_stop_all - stop the timers HW block 118 + * qed_hw_timers_stop_all(): Stop the timers HW block. 127 119 * 128 - * @param cdev 120 + * @cdev: Qed dev pointer. 129 121 * 130 - * @return void 122 + * Return: void. 131 123 */ 132 124 void qed_hw_timers_stop_all(struct qed_dev *cdev); 133 125 134 126 /** 135 - * @brief qed_hw_stop - 127 + * qed_hw_stop(): Stop Qed hardware. 136 128 * 137 - * @param cdev 129 + * @cdev: Qed dev pointer. 138 130 * 139 - * @return int 131 + * Return: int. 140 132 */ 141 133 int qed_hw_stop(struct qed_dev *cdev); 142 134 143 135 /** 144 - * @brief qed_hw_stop_fastpath -should be called incase 145 - * slowpath is still required for the device, 146 - * but fastpath is not. 136 + * qed_hw_stop_fastpath(): Should be called incase 137 + * slowpath is still required for the device, 138 + * but fastpath is not. 147 139 * 148 - * @param cdev 140 + * @cdev: Qed dev pointer. 149 141 * 150 - * @return int 142 + * Return: Int. 151 143 */ 152 144 int qed_hw_stop_fastpath(struct qed_dev *cdev); 153 145 154 146 /** 155 - * @brief qed_hw_start_fastpath -restart fastpath traffic, 156 - * only if hw_stop_fastpath was called 147 + * qed_hw_start_fastpath(): Restart fastpath traffic, 148 + * only if hw_stop_fastpath was called. 157 149 * 158 - * @param p_hwfn 150 + * @p_hwfn: HW device data. 159 151 * 160 - * @return int 152 + * Return: Int. 161 153 */ 162 154 int qed_hw_start_fastpath(struct qed_hwfn *p_hwfn); 163 155 164 156 165 157 /** 166 - * @brief qed_hw_prepare - 158 + * qed_hw_prepare(): Prepare Qed hardware. 167 159 * 168 - * @param cdev 169 - * @param personality - personality to initialize 160 + * @cdev: Qed dev pointer. 161 + * @personality: Personality to initialize. 170 162 * 171 - * @return int 163 + * Return: Int. 172 164 */ 173 165 int qed_hw_prepare(struct qed_dev *cdev, 174 166 int personality); 175 167 176 168 /** 177 - * @brief qed_hw_remove - 169 + * qed_hw_remove(): Remove Qed hardware. 178 170 * 179 - * @param cdev 171 + * @cdev: Qed dev pointer. 172 + * 173 + * Return: Void. 180 174 */ 181 175 void qed_hw_remove(struct qed_dev *cdev); 182 176 183 177 /** 184 - * @brief qed_ptt_acquire - Allocate a PTT window 178 + * qed_ptt_acquire(): Allocate a PTT window. 179 + * 180 + * @p_hwfn: HW device data. 181 + * 182 + * Return: struct qed_ptt. 185 183 * 186 184 * Should be called at the entry point to the driver (at the beginning of an 187 - * exported function) 188 - * 189 - * @param p_hwfn 190 - * 191 - * @return struct qed_ptt 185 + * exported function). 192 186 */ 193 187 struct qed_ptt *qed_ptt_acquire(struct qed_hwfn *p_hwfn); 194 188 195 189 /** 196 - * @brief qed_ptt_release - Release PTT Window 190 + * qed_ptt_release(): Release PTT Window. 191 + * 192 + * @p_hwfn: HW device data. 193 + * @p_ptt: P_ptt. 194 + * 195 + * Return: Void. 197 196 * 198 197 * Should be called at the end of a flow - at the end of the function that 199 198 * acquired the PTT. 200 - * 201 - * 202 - * @param p_hwfn 203 - * @param p_ptt 204 199 */ 205 200 void qed_ptt_release(struct qed_hwfn *p_hwfn, 206 201 struct qed_ptt *p_ptt); ··· 216 205 }; 217 206 218 207 /** 219 - * @brief qed_dmae_host2grc - copy data from source addr to 220 - * dmae registers using the given ptt 208 + * qed_dmae_host2grc(): Copy data from source addr to 209 + * dmae registers using the given ptt. 221 210 * 222 - * @param p_hwfn 223 - * @param p_ptt 224 - * @param source_addr 225 - * @param grc_addr (dmae_data_offset) 226 - * @param size_in_dwords 227 - * @param p_params (default parameters will be used in case of NULL) 211 + * @p_hwfn: HW device data. 212 + * @p_ptt: P_ptt. 213 + * @source_addr: Source address. 214 + * @grc_addr: GRC address (dmae_data_offset). 215 + * @size_in_dwords: Size. 216 + * @p_params: (default parameters will be used in case of NULL). 217 + * 218 + * Return: Int. 228 219 */ 229 220 int 230 221 qed_dmae_host2grc(struct qed_hwfn *p_hwfn, ··· 237 224 struct qed_dmae_params *p_params); 238 225 239 226 /** 240 - * @brief qed_dmae_grc2host - Read data from dmae data offset 241 - * to source address using the given ptt 227 + * qed_dmae_grc2host(): Read data from dmae data offset 228 + * to source address using the given ptt. 242 229 * 243 - * @param p_ptt 244 - * @param grc_addr (dmae_data_offset) 245 - * @param dest_addr 246 - * @param size_in_dwords 247 - * @param p_params (default parameters will be used in case of NULL) 230 + * @p_ptt: P_ptt. 231 + * @grc_addr: GRC address (dmae_data_offset). 232 + * @dest_addr: Destination Address. 233 + * @size_in_dwords: Size. 234 + * @p_params: (default parameters will be used in case of NULL). 235 + * 236 + * Return: Int. 248 237 */ 249 238 int qed_dmae_grc2host(struct qed_hwfn *p_hwfn, struct qed_ptt *p_ptt, 250 239 u32 grc_addr, dma_addr_t dest_addr, u32 size_in_dwords, 251 240 struct qed_dmae_params *p_params); 252 241 253 242 /** 254 - * @brief qed_dmae_host2host - copy data from to source address 255 - * to a destination adress (for SRIOV) using the given ptt 243 + * qed_dmae_host2host(): Copy data from to source address 244 + * to a destination adrress (for SRIOV) using the given 245 + * ptt. 256 246 * 257 - * @param p_hwfn 258 - * @param p_ptt 259 - * @param source_addr 260 - * @param dest_addr 261 - * @param size_in_dwords 262 - * @param p_params (default parameters will be used in case of NULL) 247 + * @p_hwfn: HW device data. 248 + * @p_ptt: P_ptt. 249 + * @source_addr: Source address. 250 + * @dest_addr: Destination address. 251 + * @size_in_dwords: size. 252 + * @p_params: (default parameters will be used in case of NULL). 253 + * 254 + * Return: Int. 263 255 */ 264 256 int qed_dmae_host2host(struct qed_hwfn *p_hwfn, 265 257 struct qed_ptt *p_ptt, ··· 277 259 void qed_chain_free(struct qed_dev *cdev, struct qed_chain *chain); 278 260 279 261 /** 280 - * @@brief qed_fw_l2_queue - Get absolute L2 queue ID 262 + * qed_fw_l2_queue(): Get absolute L2 queue ID. 281 263 * 282 - * @param p_hwfn 283 - * @param src_id - relative to p_hwfn 284 - * @param dst_id - absolute per engine 264 + * @p_hwfn: HW device data. 265 + * @src_id: Relative to p_hwfn. 266 + * @dst_id: Absolute per engine. 285 267 * 286 - * @return int 268 + * Return: Int. 287 269 */ 288 270 int qed_fw_l2_queue(struct qed_hwfn *p_hwfn, 289 271 u16 src_id, 290 272 u16 *dst_id); 291 273 292 274 /** 293 - * @@brief qed_fw_vport - Get absolute vport ID 275 + * qed_fw_vport(): Get absolute vport ID. 294 276 * 295 - * @param p_hwfn 296 - * @param src_id - relative to p_hwfn 297 - * @param dst_id - absolute per engine 277 + * @p_hwfn: HW device data. 278 + * @src_id: Relative to p_hwfn. 279 + * @dst_id: Absolute per engine. 298 280 * 299 - * @return int 281 + * Return: Int. 300 282 */ 301 283 int qed_fw_vport(struct qed_hwfn *p_hwfn, 302 284 u8 src_id, 303 285 u8 *dst_id); 304 286 305 287 /** 306 - * @@brief qed_fw_rss_eng - Get absolute RSS engine ID 288 + * qed_fw_rss_eng(): Get absolute RSS engine ID. 307 289 * 308 - * @param p_hwfn 309 - * @param src_id - relative to p_hwfn 310 - * @param dst_id - absolute per engine 290 + * @p_hwfn: HW device data. 291 + * @src_id: Relative to p_hwfn. 292 + * @dst_id: Absolute per engine. 311 293 * 312 - * @return int 294 + * Return: Int. 313 295 */ 314 296 int qed_fw_rss_eng(struct qed_hwfn *p_hwfn, 315 297 u8 src_id, 316 298 u8 *dst_id); 317 299 318 300 /** 319 - * @brief qed_llh_get_num_ppfid - Return the allocated number of LLH filter 320 - * banks that are allocated to the PF. 301 + * qed_llh_get_num_ppfid(): Return the allocated number of LLH filter 302 + * banks that are allocated to the PF. 321 303 * 322 - * @param cdev 304 + * @cdev: Qed dev pointer. 323 305 * 324 - * @return u8 - Number of LLH filter banks 306 + * Return: u8 Number of LLH filter banks. 325 307 */ 326 308 u8 qed_llh_get_num_ppfid(struct qed_dev *cdev); 327 309 ··· 332 314 }; 333 315 334 316 /** 335 - * @brief qed_llh_set_ppfid_affinity - Set the engine affinity for the given 336 - * LLH filter bank. 317 + * qed_llh_set_ppfid_affinity(): Set the engine affinity for the given 318 + * LLH filter bank. 337 319 * 338 - * @param cdev 339 - * @param ppfid - relative within the allocated ppfids ('0' is the default one). 340 - * @param eng 320 + * @cdev: Qed dev pointer. 321 + * @ppfid: Relative within the allocated ppfids ('0' is the default one). 322 + * @eng: Engine. 341 323 * 342 - * @return int 324 + * Return: Int. 343 325 */ 344 326 int qed_llh_set_ppfid_affinity(struct qed_dev *cdev, 345 327 u8 ppfid, enum qed_eng eng); 346 328 347 329 /** 348 - * @brief qed_llh_set_roce_affinity - Set the RoCE engine affinity 330 + * qed_llh_set_roce_affinity(): Set the RoCE engine affinity. 349 331 * 350 - * @param cdev 351 - * @param eng 332 + * @cdev: Qed dev pointer. 333 + * @eng: Engine. 352 334 * 353 - * @return int 335 + * Return: Int. 354 336 */ 355 337 int qed_llh_set_roce_affinity(struct qed_dev *cdev, enum qed_eng eng); 356 338 357 339 /** 358 - * @brief qed_llh_add_mac_filter - Add a LLH MAC filter into the given filter 359 - * bank. 340 + * qed_llh_add_mac_filter(): Add a LLH MAC filter into the given filter 341 + * bank. 360 342 * 361 - * @param cdev 362 - * @param ppfid - relative within the allocated ppfids ('0' is the default one). 363 - * @param mac_addr - MAC to add 343 + * @cdev: Qed dev pointer. 344 + * @ppfid: Relative within the allocated ppfids ('0' is the default one). 345 + * @mac_addr: MAC to add. 346 + * 347 + * Return: Int. 364 348 */ 365 349 int qed_llh_add_mac_filter(struct qed_dev *cdev, 366 350 u8 ppfid, u8 mac_addr[ETH_ALEN]); 367 351 368 352 /** 369 - * @brief qed_llh_remove_mac_filter - Remove a LLH MAC filter from the given 370 - * filter bank. 353 + * qed_llh_remove_mac_filter(): Remove a LLH MAC filter from the given 354 + * filter bank. 371 355 * 372 - * @param p_ptt 373 - * @param p_filter - MAC to remove 356 + * @cdev: Qed dev pointer. 357 + * @ppfid: Ppfid. 358 + * @mac_addr: MAC to remove 359 + * 360 + * Return: Void. 374 361 */ 375 362 void qed_llh_remove_mac_filter(struct qed_dev *cdev, 376 363 u8 ppfid, u8 mac_addr[ETH_ALEN]); ··· 391 368 }; 392 369 393 370 /** 394 - * @brief qed_llh_add_protocol_filter - Add a LLH protocol filter into the 395 - * given filter bank. 371 + * qed_llh_add_protocol_filter(): Add a LLH protocol filter into the 372 + * given filter bank. 396 373 * 397 - * @param cdev 398 - * @param ppfid - relative within the allocated ppfids ('0' is the default one). 399 - * @param type - type of filters and comparing 400 - * @param source_port_or_eth_type - source port or ethertype to add 401 - * @param dest_port - destination port to add 402 - * @param type - type of filters and comparing 374 + * @cdev: Qed dev pointer. 375 + * @ppfid: Relative within the allocated ppfids ('0' is the default one). 376 + * @type: Type of filters and comparing. 377 + * @source_port_or_eth_type: Source port or ethertype to add. 378 + * @dest_port: Destination port to add. 379 + * 380 + * Return: Int. 403 381 */ 404 382 int 405 383 qed_llh_add_protocol_filter(struct qed_dev *cdev, ··· 409 385 u16 source_port_or_eth_type, u16 dest_port); 410 386 411 387 /** 412 - * @brief qed_llh_remove_protocol_filter - Remove a LLH protocol filter from 413 - * the given filter bank. 388 + * qed_llh_remove_protocol_filter(): Remove a LLH protocol filter from 389 + * the given filter bank. 414 390 * 415 - * @param cdev 416 - * @param ppfid - relative within the allocated ppfids ('0' is the default one). 417 - * @param type - type of filters and comparing 418 - * @param source_port_or_eth_type - source port or ethertype to add 419 - * @param dest_port - destination port to add 391 + * @cdev: Qed dev pointer. 392 + * @ppfid: Relative within the allocated ppfids ('0' is the default one). 393 + * @type: Type of filters and comparing. 394 + * @source_port_or_eth_type: Source port or ethertype to add. 395 + * @dest_port: Destination port to add. 420 396 */ 421 397 void 422 398 qed_llh_remove_protocol_filter(struct qed_dev *cdev, ··· 425 401 u16 source_port_or_eth_type, u16 dest_port); 426 402 427 403 /** 428 - * *@brief Cleanup of previous driver remains prior to load 404 + * qed_final_cleanup(): Cleanup of previous driver remains prior to load. 429 405 * 430 - * @param p_hwfn 431 - * @param p_ptt 432 - * @param id - For PF, engine-relative. For VF, PF-relative. 433 - * @param is_vf - true iff cleanup is made for a VF. 406 + * @p_hwfn: HW device data. 407 + * @p_ptt: P_ptt. 408 + * @id: For PF, engine-relative. For VF, PF-relative. 409 + * @is_vf: True iff cleanup is made for a VF. 434 410 * 435 - * @return int 411 + * Return: Int. 436 412 */ 437 413 int qed_final_cleanup(struct qed_hwfn *p_hwfn, 438 414 struct qed_ptt *p_ptt, u16 id, bool is_vf); 439 415 440 416 /** 441 - * @brief qed_get_queue_coalesce - Retrieve coalesce value for a given queue. 417 + * qed_get_queue_coalesce(): Retrieve coalesce value for a given queue. 442 418 * 443 - * @param p_hwfn 444 - * @param p_coal - store coalesce value read from the hardware. 445 - * @param p_handle 419 + * @p_hwfn: HW device data. 420 + * @coal: Store coalesce value read from the hardware. 421 + * @handle: P_handle. 446 422 * 447 - * @return int 423 + * Return: Int. 448 424 **/ 449 425 int qed_get_queue_coalesce(struct qed_hwfn *p_hwfn, u16 *coal, void *handle); 450 426 451 427 /** 452 - * @brief qed_set_queue_coalesce - Configure coalesce parameters for Rx and 428 + * qed_set_queue_coalesce(): Configure coalesce parameters for Rx and 453 429 * Tx queue. The fact that we can configure coalescing to up to 511, but on 454 430 * varying accuracy [the bigger the value the less accurate] up to a mistake 455 431 * of 3usec for the highest values. ··· 457 433 * should be in same range [i.e., either 0-0x7f, 0x80-0xff or 0x100-0x1ff] 458 434 * otherwise configuration would break. 459 435 * 436 + * @rx_coal: Rx Coalesce value in micro seconds. 437 + * @tx_coal: TX Coalesce value in micro seconds. 438 + * @p_handle: P_handle. 460 439 * 461 - * @param rx_coal - Rx Coalesce value in micro seconds. 462 - * @param tx_coal - TX Coalesce value in micro seconds. 463 - * @param p_handle 464 - * 465 - * @return int 440 + * Return: Int. 466 441 **/ 467 442 int 468 443 qed_set_queue_coalesce(u16 rx_coal, u16 tx_coal, void *p_handle); 469 444 470 445 /** 471 - * @brief qed_pglueb_set_pfid_enable - Enable or disable PCI BUS MASTER 446 + * qed_pglueb_set_pfid_enable(): Enable or disable PCI BUS MASTER. 472 447 * 473 - * @param p_hwfn 474 - * @param p_ptt 475 - * @param b_enable - true/false 448 + * @p_hwfn: HW device data. 449 + * @p_ptt: P_ptt. 450 + * @b_enable: True/False. 476 451 * 477 - * @return int 452 + * Return: Int. 478 453 */ 479 454 int qed_pglueb_set_pfid_enable(struct qed_hwfn *p_hwfn, 480 455 struct qed_ptt *p_ptt, bool b_enable); 481 456 482 457 /** 483 - * @brief db_recovery_add - add doorbell information to the doorbell 484 - * recovery mechanism. 458 + * qed_db_recovery_add(): add doorbell information to the doorbell 459 + * recovery mechanism. 485 460 * 486 - * @param cdev 487 - * @param db_addr - doorbell address 488 - * @param db_data - address of where db_data is stored 489 - * @param db_width - doorbell is 32b pr 64b 490 - * @param db_space - doorbell recovery addresses are user or kernel space 461 + * @cdev: Qed dev pointer. 462 + * @db_addr: Doorbell address. 463 + * @db_data: Address of where db_data is stored. 464 + * @db_width: Doorbell is 32b pr 64b. 465 + * @db_space: Doorbell recovery addresses are user or kernel space. 466 + * 467 + * Return: Int. 491 468 */ 492 469 int qed_db_recovery_add(struct qed_dev *cdev, 493 470 void __iomem *db_addr, ··· 497 472 enum qed_db_rec_space db_space); 498 473 499 474 /** 500 - * @brief db_recovery_del - remove doorbell information from the doorbell 475 + * qed_db_recovery_del() - remove doorbell information from the doorbell 501 476 * recovery mechanism. db_data serves as key (db_addr is not unique). 502 477 * 503 - * @param cdev 504 - * @param db_addr - doorbell address 505 - * @param db_data - address where db_data is stored. Serves as key for the 478 + * @cdev: Qed dev pointer. 479 + * @db_addr: doorbell address. 480 + * @db_data: address where db_data is stored. Serves as key for the 506 481 * entry to delete. 482 + * 483 + * Return: Int. 507 484 */ 508 485 int qed_db_recovery_del(struct qed_dev *cdev, 509 486 void __iomem *db_addr, void *db_data);
+482 -440
drivers/net/ethernet/qlogic/qed/qed_hsi.h
··· 3012 3012 /***************************** Public Functions *******************************/ 3013 3013 3014 3014 /** 3015 - * @brief qed_dbg_set_bin_ptr - Sets a pointer to the binary data with debug 3016 - * arrays. 3015 + * qed_dbg_set_bin_ptr(): Sets a pointer to the binary data with debug 3016 + * arrays. 3017 3017 * 3018 - * @param p_hwfn - HW device data 3019 - * @param bin_ptr - a pointer to the binary data with debug arrays. 3018 + * @p_hwfn: HW device data. 3019 + * @bin_ptr: A pointer to the binary data with debug arrays. 3020 + * 3021 + * Return: enum dbg status. 3020 3022 */ 3021 3023 enum dbg_status qed_dbg_set_bin_ptr(struct qed_hwfn *p_hwfn, 3022 3024 const u8 * const bin_ptr); 3023 3025 3024 3026 /** 3025 - * @brief qed_read_regs - Reads registers into a buffer (using GRC). 3027 + * qed_read_regs(): Reads registers into a buffer (using GRC). 3026 3028 * 3027 - * @param p_hwfn - HW device data 3028 - * @param p_ptt - Ptt window used for writing the registers. 3029 - * @param buf - Destination buffer. 3030 - * @param addr - Source GRC address in dwords. 3031 - * @param len - Number of registers to read. 3029 + * @p_hwfn: HW device data. 3030 + * @p_ptt: Ptt window used for writing the registers. 3031 + * @buf: Destination buffer. 3032 + * @addr: Source GRC address in dwords. 3033 + * @len: Number of registers to read. 3034 + * 3035 + * Return: Void. 3032 3036 */ 3033 3037 void qed_read_regs(struct qed_hwfn *p_hwfn, 3034 3038 struct qed_ptt *p_ptt, u32 *buf, u32 addr, u32 len); 3035 3039 3036 3040 /** 3037 - * @brief qed_read_fw_info - Reads FW info from the chip. 3041 + * qed_read_fw_info(): Reads FW info from the chip. 3042 + * 3043 + * @p_hwfn: HW device data. 3044 + * @p_ptt: Ptt window used for writing the registers. 3045 + * @fw_info: (Out) a pointer to write the FW info into. 3046 + * 3047 + * Return: True if the FW info was read successfully from one of the Storms, 3048 + * or false if all Storms are in reset. 3038 3049 * 3039 3050 * The FW info contains FW-related information, such as the FW version, 3040 3051 * FW image (main/L2B/kuku), FW timestamp, etc. 3041 3052 * The FW info is read from the internal RAM of the first Storm that is not in 3042 3053 * reset. 3043 - * 3044 - * @param p_hwfn - HW device data 3045 - * @param p_ptt - Ptt window used for writing the registers. 3046 - * @param fw_info - Out: a pointer to write the FW info into. 3047 - * 3048 - * @return true if the FW info was read successfully from one of the Storms, 3049 - * or false if all Storms are in reset. 3050 3054 */ 3051 3055 bool qed_read_fw_info(struct qed_hwfn *p_hwfn, 3052 3056 struct qed_ptt *p_ptt, struct fw_info *fw_info); 3053 3057 /** 3054 - * @brief qed_dbg_grc_config - Sets the value of a GRC parameter. 3058 + * qed_dbg_grc_config(): Sets the value of a GRC parameter. 3055 3059 * 3056 - * @param p_hwfn - HW device data 3057 - * @param grc_param - GRC parameter 3058 - * @param val - Value to set. 3060 + * @p_hwfn: HW device data. 3061 + * @grc_param: GRC parameter. 3062 + * @val: Value to set. 3059 3063 * 3060 - * @return error if one of the following holds: 3061 - * - the version wasn't set 3062 - * - grc_param is invalid 3063 - * - val is outside the allowed boundaries 3064 + * Return: Error if one of the following holds: 3065 + * - The version wasn't set. 3066 + * - Grc_param is invalid. 3067 + * - Val is outside the allowed boundaries. 3064 3068 */ 3065 3069 enum dbg_status qed_dbg_grc_config(struct qed_hwfn *p_hwfn, 3066 3070 enum dbg_grc_params grc_param, u32 val); 3067 3071 3068 3072 /** 3069 - * @brief qed_dbg_grc_set_params_default - Reverts all GRC parameters to their 3070 - * default value. 3073 + * qed_dbg_grc_set_params_default(): Reverts all GRC parameters to their 3074 + * default value. 3071 3075 * 3072 - * @param p_hwfn - HW device data 3076 + * @p_hwfn: HW device data. 3077 + * 3078 + * Return: Void. 3073 3079 */ 3074 3080 void qed_dbg_grc_set_params_default(struct qed_hwfn *p_hwfn); 3075 3081 /** 3076 - * @brief qed_dbg_grc_get_dump_buf_size - Returns the required buffer size for 3077 - * GRC Dump. 3082 + * qed_dbg_grc_get_dump_buf_size(): Returns the required buffer size for 3083 + * GRC Dump. 3078 3084 * 3079 - * @param p_hwfn - HW device data 3080 - * @param p_ptt - Ptt window used for writing the registers. 3081 - * @param buf_size - OUT: required buffer size (in dwords) for the GRC Dump 3082 - * data. 3085 + * @p_hwfn: HW device data. 3086 + * @p_ptt: Ptt window used for writing the registers. 3087 + * @buf_size: (OUT) required buffer size (in dwords) for the GRC Dump 3088 + * data. 3083 3089 * 3084 - * @return error if one of the following holds: 3085 - * - the version wasn't set 3086 - * Otherwise, returns ok. 3090 + * Return: Error if one of the following holds: 3091 + * - The version wasn't set 3092 + * Otherwise, returns ok. 3087 3093 */ 3088 3094 enum dbg_status qed_dbg_grc_get_dump_buf_size(struct qed_hwfn *p_hwfn, 3089 3095 struct qed_ptt *p_ptt, 3090 3096 u32 *buf_size); 3091 3097 3092 3098 /** 3093 - * @brief qed_dbg_grc_dump - Dumps GRC data into the specified buffer. 3099 + * qed_dbg_grc_dump(): Dumps GRC data into the specified buffer. 3094 3100 * 3095 - * @param p_hwfn - HW device data 3096 - * @param p_ptt - Ptt window used for writing the registers. 3097 - * @param dump_buf - Pointer to write the collected GRC data into. 3098 - * @param buf_size_in_dwords - Size of the specified buffer in dwords. 3099 - * @param num_dumped_dwords - OUT: number of dumped dwords. 3101 + * @p_hwfn: HW device data. 3102 + * @p_ptt: Ptt window used for writing the registers. 3103 + * @dump_buf: Pointer to write the collected GRC data into. 3104 + * @buf_size_in_dwords:Size of the specified buffer in dwords. 3105 + * @num_dumped_dwords: (OUT) number of dumped dwords. 3100 3106 * 3101 - * @return error if one of the following holds: 3102 - * - the version wasn't set 3103 - * - the specified dump buffer is too small 3104 - * Otherwise, returns ok. 3107 + * Return: Error if one of the following holds: 3108 + * - The version wasn't set. 3109 + * - The specified dump buffer is too small. 3110 + * Otherwise, returns ok. 3105 3111 */ 3106 3112 enum dbg_status qed_dbg_grc_dump(struct qed_hwfn *p_hwfn, 3107 3113 struct qed_ptt *p_ptt, ··· 3116 3110 u32 *num_dumped_dwords); 3117 3111 3118 3112 /** 3119 - * @brief qed_dbg_idle_chk_get_dump_buf_size - Returns the required buffer size 3120 - * for idle check results. 3113 + * qed_dbg_idle_chk_get_dump_buf_size(): Returns the required buffer size 3114 + * for idle check results. 3121 3115 * 3122 - * @param p_hwfn - HW device data 3123 - * @param p_ptt - Ptt window used for writing the registers. 3124 - * @param buf_size - OUT: required buffer size (in dwords) for the idle check 3125 - * data. 3116 + * @p_hwfn: HW device data. 3117 + * @p_ptt: Ptt window used for writing the registers. 3118 + * @buf_size: (OUT) required buffer size (in dwords) for the idle check 3119 + * data. 3126 3120 * 3127 - * @return error if one of the following holds: 3128 - * - the version wasn't set 3129 - * Otherwise, returns ok. 3121 + * return: Error if one of the following holds: 3122 + * - The version wasn't set. 3123 + * Otherwise, returns ok. 3130 3124 */ 3131 3125 enum dbg_status qed_dbg_idle_chk_get_dump_buf_size(struct qed_hwfn *p_hwfn, 3132 3126 struct qed_ptt *p_ptt, 3133 3127 u32 *buf_size); 3134 3128 3135 3129 /** 3136 - * @brief qed_dbg_idle_chk_dump - Performs idle check and writes the results 3137 - * into the specified buffer. 3130 + * qed_dbg_idle_chk_dump: Performs idle check and writes the results 3131 + * into the specified buffer. 3138 3132 * 3139 - * @param p_hwfn - HW device data 3140 - * @param p_ptt - Ptt window used for writing the registers. 3141 - * @param dump_buf - Pointer to write the idle check data into. 3142 - * @param buf_size_in_dwords - Size of the specified buffer in dwords. 3143 - * @param num_dumped_dwords - OUT: number of dumped dwords. 3133 + * @p_hwfn: HW device data. 3134 + * @p_ptt: Ptt window used for writing the registers. 3135 + * @dump_buf: Pointer to write the idle check data into. 3136 + * @buf_size_in_dwords: Size of the specified buffer in dwords. 3137 + * @num_dumped_dwords: (OUT) number of dumped dwords. 3144 3138 * 3145 - * @return error if one of the following holds: 3146 - * - the version wasn't set 3147 - * - the specified buffer is too small 3148 - * Otherwise, returns ok. 3139 + * Return: Error if one of the following holds: 3140 + * - The version wasn't set. 3141 + * - The specified buffer is too small. 3142 + * Otherwise, returns ok. 3149 3143 */ 3150 3144 enum dbg_status qed_dbg_idle_chk_dump(struct qed_hwfn *p_hwfn, 3151 3145 struct qed_ptt *p_ptt, ··· 3154 3148 u32 *num_dumped_dwords); 3155 3149 3156 3150 /** 3157 - * @brief qed_dbg_mcp_trace_get_dump_buf_size - Returns the required buffer size 3158 - * for mcp trace results. 3151 + * qed_dbg_mcp_trace_get_dump_buf_size(): Returns the required buffer size 3152 + * for mcp trace results. 3159 3153 * 3160 - * @param p_hwfn - HW device data 3161 - * @param p_ptt - Ptt window used for writing the registers. 3162 - * @param buf_size - OUT: required buffer size (in dwords) for mcp trace data. 3154 + * @p_hwfn: HW device data. 3155 + * @p_ptt: Ptt window used for writing the registers. 3156 + * @buf_size: (OUT) Required buffer size (in dwords) for mcp trace data. 3163 3157 * 3164 - * @return error if one of the following holds: 3165 - * - the version wasn't set 3166 - * - the trace data in MCP scratchpad contain an invalid signature 3167 - * - the bundle ID in NVRAM is invalid 3168 - * - the trace meta data cannot be found (in NVRAM or image file) 3169 - * Otherwise, returns ok. 3158 + * Return: Error if one of the following holds: 3159 + * - The version wasn't set. 3160 + * - The trace data in MCP scratchpad contain an invalid signature. 3161 + * - The bundle ID in NVRAM is invalid. 3162 + * - The trace meta data cannot be found (in NVRAM or image file). 3163 + * Otherwise, returns ok. 3170 3164 */ 3171 3165 enum dbg_status qed_dbg_mcp_trace_get_dump_buf_size(struct qed_hwfn *p_hwfn, 3172 3166 struct qed_ptt *p_ptt, 3173 3167 u32 *buf_size); 3174 3168 3175 3169 /** 3176 - * @brief qed_dbg_mcp_trace_dump - Performs mcp trace and writes the results 3177 - * into the specified buffer. 3170 + * qed_dbg_mcp_trace_dump(): Performs mcp trace and writes the results 3171 + * into the specified buffer. 3178 3172 * 3179 - * @param p_hwfn - HW device data 3180 - * @param p_ptt - Ptt window used for writing the registers. 3181 - * @param dump_buf - Pointer to write the mcp trace data into. 3182 - * @param buf_size_in_dwords - Size of the specified buffer in dwords. 3183 - * @param num_dumped_dwords - OUT: number of dumped dwords. 3173 + * @p_hwfn: HW device data. 3174 + * @p_ptt: Ptt window used for writing the registers. 3175 + * @dump_buf: Pointer to write the mcp trace data into. 3176 + * @buf_size_in_dwords: Size of the specified buffer in dwords. 3177 + * @num_dumped_dwords: (OUT) number of dumped dwords. 3184 3178 * 3185 - * @return error if one of the following holds: 3186 - * - the version wasn't set 3187 - * - the specified buffer is too small 3188 - * - the trace data in MCP scratchpad contain an invalid signature 3189 - * - the bundle ID in NVRAM is invalid 3190 - * - the trace meta data cannot be found (in NVRAM or image file) 3191 - * - the trace meta data cannot be read (from NVRAM or image file) 3192 - * Otherwise, returns ok. 3179 + * Return: Error if one of the following holds: 3180 + * - The version wasn't set. 3181 + * - The specified buffer is too small. 3182 + * - The trace data in MCP scratchpad contain an invalid signature. 3183 + * - The bundle ID in NVRAM is invalid. 3184 + * - The trace meta data cannot be found (in NVRAM or image file). 3185 + * - The trace meta data cannot be read (from NVRAM or image file). 3186 + * Otherwise, returns ok. 3193 3187 */ 3194 3188 enum dbg_status qed_dbg_mcp_trace_dump(struct qed_hwfn *p_hwfn, 3195 3189 struct qed_ptt *p_ptt, ··· 3198 3192 u32 *num_dumped_dwords); 3199 3193 3200 3194 /** 3201 - * @brief qed_dbg_reg_fifo_get_dump_buf_size - Returns the required buffer size 3202 - * for grc trace fifo results. 3195 + * qed_dbg_reg_fifo_get_dump_buf_size(): Returns the required buffer size 3196 + * for grc trace fifo results. 3203 3197 * 3204 - * @param p_hwfn - HW device data 3205 - * @param p_ptt - Ptt window used for writing the registers. 3206 - * @param buf_size - OUT: required buffer size (in dwords) for reg fifo data. 3198 + * @p_hwfn: HW device data. 3199 + * @p_ptt: Ptt window used for writing the registers. 3200 + * @buf_size: (OUT) Required buffer size (in dwords) for reg fifo data. 3207 3201 * 3208 - * @return error if one of the following holds: 3209 - * - the version wasn't set 3210 - * Otherwise, returns ok. 3202 + * Return: Error if one of the following holds: 3203 + * - The version wasn't set 3204 + * Otherwise, returns ok. 3211 3205 */ 3212 3206 enum dbg_status qed_dbg_reg_fifo_get_dump_buf_size(struct qed_hwfn *p_hwfn, 3213 3207 struct qed_ptt *p_ptt, 3214 3208 u32 *buf_size); 3215 3209 3216 3210 /** 3217 - * @brief qed_dbg_reg_fifo_dump - Reads the reg fifo and writes the results into 3218 - * the specified buffer. 3211 + * qed_dbg_reg_fifo_dump(): Reads the reg fifo and writes the results into 3212 + * the specified buffer. 3219 3213 * 3220 - * @param p_hwfn - HW device data 3221 - * @param p_ptt - Ptt window used for writing the registers. 3222 - * @param dump_buf - Pointer to write the reg fifo data into. 3223 - * @param buf_size_in_dwords - Size of the specified buffer in dwords. 3224 - * @param num_dumped_dwords - OUT: number of dumped dwords. 3214 + * @p_hwfn: HW device data. 3215 + * @p_ptt: Ptt window used for writing the registers. 3216 + * @dump_buf: Pointer to write the reg fifo data into. 3217 + * @buf_size_in_dwords: Size of the specified buffer in dwords. 3218 + * @num_dumped_dwords: (OUT) number of dumped dwords. 3225 3219 * 3226 - * @return error if one of the following holds: 3227 - * - the version wasn't set 3228 - * - the specified buffer is too small 3229 - * - DMAE transaction failed 3230 - * Otherwise, returns ok. 3220 + * Return: Error if one of the following holds: 3221 + * - The version wasn't set. 3222 + * - The specified buffer is too small. 3223 + * - DMAE transaction failed. 3224 + * Otherwise, returns ok. 3231 3225 */ 3232 3226 enum dbg_status qed_dbg_reg_fifo_dump(struct qed_hwfn *p_hwfn, 3233 3227 struct qed_ptt *p_ptt, ··· 3236 3230 u32 *num_dumped_dwords); 3237 3231 3238 3232 /** 3239 - * @brief qed_dbg_igu_fifo_get_dump_buf_size - Returns the required buffer size 3240 - * for the IGU fifo results. 3233 + * qed_dbg_igu_fifo_get_dump_buf_size(): Returns the required buffer size 3234 + * for the IGU fifo results. 3241 3235 * 3242 - * @param p_hwfn - HW device data 3243 - * @param p_ptt - Ptt window used for writing the registers. 3244 - * @param buf_size - OUT: required buffer size (in dwords) for the IGU fifo 3245 - * data. 3236 + * @p_hwfn: HW device data. 3237 + * @p_ptt: Ptt window used for writing the registers. 3238 + * @buf_size: (OUT) Required buffer size (in dwords) for the IGU fifo 3239 + * data. 3246 3240 * 3247 - * @return error if one of the following holds: 3248 - * - the version wasn't set 3249 - * Otherwise, returns ok. 3241 + * Return: Error if one of the following holds: 3242 + * - The version wasn't set. 3243 + * Otherwise, returns ok. 3250 3244 */ 3251 3245 enum dbg_status qed_dbg_igu_fifo_get_dump_buf_size(struct qed_hwfn *p_hwfn, 3252 3246 struct qed_ptt *p_ptt, 3253 3247 u32 *buf_size); 3254 3248 3255 3249 /** 3256 - * @brief qed_dbg_igu_fifo_dump - Reads the IGU fifo and writes the results into 3257 - * the specified buffer. 3250 + * qed_dbg_igu_fifo_dump(): Reads the IGU fifo and writes the results into 3251 + * the specified buffer. 3258 3252 * 3259 - * @param p_hwfn - HW device data 3260 - * @param p_ptt - Ptt window used for writing the registers. 3261 - * @param dump_buf - Pointer to write the IGU fifo data into. 3262 - * @param buf_size_in_dwords - Size of the specified buffer in dwords. 3263 - * @param num_dumped_dwords - OUT: number of dumped dwords. 3253 + * @p_hwfn: HW device data. 3254 + * @p_ptt: Ptt window used for writing the registers. 3255 + * @dump_buf: Pointer to write the IGU fifo data into. 3256 + * @buf_size_in_dwords: Size of the specified buffer in dwords. 3257 + * @num_dumped_dwords: (OUT) number of dumped dwords. 3264 3258 * 3265 - * @return error if one of the following holds: 3266 - * - the version wasn't set 3267 - * - the specified buffer is too small 3268 - * - DMAE transaction failed 3269 - * Otherwise, returns ok. 3259 + * Return: Error if one of the following holds: 3260 + * - The version wasn't set 3261 + * - The specified buffer is too small 3262 + * - DMAE transaction failed 3263 + * Otherwise, returns ok. 3270 3264 */ 3271 3265 enum dbg_status qed_dbg_igu_fifo_dump(struct qed_hwfn *p_hwfn, 3272 3266 struct qed_ptt *p_ptt, ··· 3275 3269 u32 *num_dumped_dwords); 3276 3270 3277 3271 /** 3278 - * @brief qed_dbg_protection_override_get_dump_buf_size - Returns the required 3279 - * buffer size for protection override window results. 3272 + * qed_dbg_protection_override_get_dump_buf_size(): Returns the required 3273 + * buffer size for protection override window results. 3280 3274 * 3281 - * @param p_hwfn - HW device data 3282 - * @param p_ptt - Ptt window used for writing the registers. 3283 - * @param buf_size - OUT: required buffer size (in dwords) for protection 3284 - * override data. 3275 + * @p_hwfn: HW device data. 3276 + * @p_ptt: Ptt window used for writing the registers. 3277 + * @buf_size: (OUT) Required buffer size (in dwords) for protection 3278 + * override data. 3285 3279 * 3286 - * @return error if one of the following holds: 3287 - * - the version wasn't set 3288 - * Otherwise, returns ok. 3280 + * Return: Error if one of the following holds: 3281 + * - The version wasn't set 3282 + * Otherwise, returns ok. 3289 3283 */ 3290 3284 enum dbg_status 3291 3285 qed_dbg_protection_override_get_dump_buf_size(struct qed_hwfn *p_hwfn, 3292 3286 struct qed_ptt *p_ptt, 3293 3287 u32 *buf_size); 3294 3288 /** 3295 - * @brief qed_dbg_protection_override_dump - Reads protection override window 3296 - * entries and writes the results into the specified buffer. 3289 + * qed_dbg_protection_override_dump(): Reads protection override window 3290 + * entries and writes the results into the specified buffer. 3297 3291 * 3298 - * @param p_hwfn - HW device data 3299 - * @param p_ptt - Ptt window used for writing the registers. 3300 - * @param dump_buf - Pointer to write the protection override data into. 3301 - * @param buf_size_in_dwords - Size of the specified buffer in dwords. 3302 - * @param num_dumped_dwords - OUT: number of dumped dwords. 3292 + * @p_hwfn: HW device data. 3293 + * @p_ptt: Ptt window used for writing the registers. 3294 + * @dump_buf: Pointer to write the protection override data into. 3295 + * @buf_size_in_dwords: Size of the specified buffer in dwords. 3296 + * @num_dumped_dwords: (OUT) number of dumped dwords. 3303 3297 * 3304 - * @return error if one of the following holds: 3305 - * - the version wasn't set 3306 - * - the specified buffer is too small 3307 - * - DMAE transaction failed 3308 - * Otherwise, returns ok. 3298 + * @return: Error if one of the following holds: 3299 + * - The version wasn't set. 3300 + * - The specified buffer is too small. 3301 + * - DMAE transaction failed. 3302 + * Otherwise, returns ok. 3309 3303 */ 3310 3304 enum dbg_status qed_dbg_protection_override_dump(struct qed_hwfn *p_hwfn, 3311 3305 struct qed_ptt *p_ptt, ··· 3313 3307 u32 buf_size_in_dwords, 3314 3308 u32 *num_dumped_dwords); 3315 3309 /** 3316 - * @brief qed_dbg_fw_asserts_get_dump_buf_size - Returns the required buffer 3317 - * size for FW Asserts results. 3310 + * qed_dbg_fw_asserts_get_dump_buf_size(): Returns the required buffer 3311 + * size for FW Asserts results. 3318 3312 * 3319 - * @param p_hwfn - HW device data 3320 - * @param p_ptt - Ptt window used for writing the registers. 3321 - * @param buf_size - OUT: required buffer size (in dwords) for FW Asserts data. 3313 + * @p_hwfn: HW device data. 3314 + * @p_ptt: Ptt window used for writing the registers. 3315 + * @buf_size: (OUT) Required buffer size (in dwords) for FW Asserts data. 3322 3316 * 3323 - * @return error if one of the following holds: 3324 - * - the version wasn't set 3325 - * Otherwise, returns ok. 3317 + * Return: Error if one of the following holds: 3318 + * - The version wasn't set. 3319 + * Otherwise, returns ok. 3326 3320 */ 3327 3321 enum dbg_status qed_dbg_fw_asserts_get_dump_buf_size(struct qed_hwfn *p_hwfn, 3328 3322 struct qed_ptt *p_ptt, 3329 3323 u32 *buf_size); 3330 3324 /** 3331 - * @brief qed_dbg_fw_asserts_dump - Reads the FW Asserts and writes the results 3332 - * into the specified buffer. 3325 + * qed_dbg_fw_asserts_dump(): Reads the FW Asserts and writes the results 3326 + * into the specified buffer. 3333 3327 * 3334 - * @param p_hwfn - HW device data 3335 - * @param p_ptt - Ptt window used for writing the registers. 3336 - * @param dump_buf - Pointer to write the FW Asserts data into. 3337 - * @param buf_size_in_dwords - Size of the specified buffer in dwords. 3338 - * @param num_dumped_dwords - OUT: number of dumped dwords. 3328 + * @p_hwfn: HW device data. 3329 + * @p_ptt: Ptt window used for writing the registers. 3330 + * @dump_buf: Pointer to write the FW Asserts data into. 3331 + * @buf_size_in_dwords: Size of the specified buffer in dwords. 3332 + * @num_dumped_dwords: (OUT) number of dumped dwords. 3339 3333 * 3340 - * @return error if one of the following holds: 3341 - * - the version wasn't set 3342 - * - the specified buffer is too small 3343 - * Otherwise, returns ok. 3334 + * Return: Error if one of the following holds: 3335 + * - The version wasn't set. 3336 + * - The specified buffer is too small. 3337 + * Otherwise, returns ok. 3344 3338 */ 3345 3339 enum dbg_status qed_dbg_fw_asserts_dump(struct qed_hwfn *p_hwfn, 3346 3340 struct qed_ptt *p_ptt, ··· 3349 3343 u32 *num_dumped_dwords); 3350 3344 3351 3345 /** 3352 - * @brief qed_dbg_read_attn - Reads the attention registers of the specified 3346 + * qed_dbg_read_attn(): Reads the attention registers of the specified 3353 3347 * block and type, and writes the results into the specified buffer. 3354 3348 * 3355 - * @param p_hwfn - HW device data 3356 - * @param p_ptt - Ptt window used for writing the registers. 3357 - * @param block - Block ID. 3358 - * @param attn_type - Attention type. 3359 - * @param clear_status - Indicates if the attention status should be cleared. 3360 - * @param results - OUT: Pointer to write the read results into 3349 + * @p_hwfn: HW device data. 3350 + * @p_ptt: Ptt window used for writing the registers. 3351 + * @block: Block ID. 3352 + * @attn_type: Attention type. 3353 + * @clear_status: Indicates if the attention status should be cleared. 3354 + * @results: (OUT) Pointer to write the read results into. 3361 3355 * 3362 - * @return error if one of the following holds: 3363 - * - the version wasn't set 3364 - * Otherwise, returns ok. 3356 + * Return: Error if one of the following holds: 3357 + * - The version wasn't set 3358 + * Otherwise, returns ok. 3365 3359 */ 3366 3360 enum dbg_status qed_dbg_read_attn(struct qed_hwfn *p_hwfn, 3367 3361 struct qed_ptt *p_ptt, ··· 3371 3365 struct dbg_attn_block_result *results); 3372 3366 3373 3367 /** 3374 - * @brief qed_dbg_print_attn - Prints attention registers values in the 3375 - * specified results struct. 3368 + * qed_dbg_print_attn(): Prints attention registers values in the 3369 + * specified results struct. 3376 3370 * 3377 - * @param p_hwfn 3378 - * @param results - Pointer to the attention read results 3371 + * @p_hwfn: HW device data. 3372 + * @results: Pointer to the attention read results 3379 3373 * 3380 - * @return error if one of the following holds: 3381 - * - the version wasn't set 3382 - * Otherwise, returns ok. 3374 + * Return: Error if one of the following holds: 3375 + * - The version wasn't set 3376 + * Otherwise, returns ok. 3383 3377 */ 3384 3378 enum dbg_status qed_dbg_print_attn(struct qed_hwfn *p_hwfn, 3385 3379 struct dbg_attn_block_result *results); ··· 3426 3420 /***************************** Public Functions *******************************/ 3427 3421 3428 3422 /** 3429 - * @brief qed_dbg_user_set_bin_ptr - Sets a pointer to the binary data with 3430 - * debug arrays. 3423 + * qed_dbg_user_set_bin_ptr(): Sets a pointer to the binary data with 3424 + * debug arrays. 3431 3425 * 3432 - * @param p_hwfn - HW device data 3433 - * @param bin_ptr - a pointer to the binary data with debug arrays. 3426 + * @p_hwfn: HW device data. 3427 + * @bin_ptr: a pointer to the binary data with debug arrays. 3428 + * 3429 + * Return: dbg_status. 3434 3430 */ 3435 3431 enum dbg_status qed_dbg_user_set_bin_ptr(struct qed_hwfn *p_hwfn, 3436 3432 const u8 * const bin_ptr); 3437 3433 3438 3434 /** 3439 - * @brief qed_dbg_alloc_user_data - Allocates user debug data. 3435 + * qed_dbg_alloc_user_data(): Allocates user debug data. 3440 3436 * 3441 - * @param p_hwfn - HW device data 3442 - * @param user_data_ptr - OUT: a pointer to the allocated memory. 3437 + * @p_hwfn: HW device data. 3438 + * @user_data_ptr: (OUT) a pointer to the allocated memory. 3439 + * 3440 + * Return: dbg_status. 3443 3441 */ 3444 3442 enum dbg_status qed_dbg_alloc_user_data(struct qed_hwfn *p_hwfn, 3445 3443 void **user_data_ptr); 3446 3444 3447 3445 /** 3448 - * @brief qed_dbg_get_status_str - Returns a string for the specified status. 3446 + * qed_dbg_get_status_str(): Returns a string for the specified status. 3449 3447 * 3450 - * @param status - a debug status code. 3448 + * @status: A debug status code. 3451 3449 * 3452 - * @return a string for the specified status 3450 + * Return: A string for the specified status. 3453 3451 */ 3454 3452 const char *qed_dbg_get_status_str(enum dbg_status status); 3455 3453 3456 3454 /** 3457 - * @brief qed_get_idle_chk_results_buf_size - Returns the required buffer size 3458 - * for idle check results (in bytes). 3455 + * qed_get_idle_chk_results_buf_size(): Returns the required buffer size 3456 + * for idle check results (in bytes). 3459 3457 * 3460 - * @param p_hwfn - HW device data 3461 - * @param dump_buf - idle check dump buffer. 3462 - * @param num_dumped_dwords - number of dwords that were dumped. 3463 - * @param results_buf_size - OUT: required buffer size (in bytes) for the parsed 3464 - * results. 3458 + * @p_hwfn: HW device data. 3459 + * @dump_buf: idle check dump buffer. 3460 + * @num_dumped_dwords: number of dwords that were dumped. 3461 + * @results_buf_size: (OUT) required buffer size (in bytes) for the parsed 3462 + * results. 3465 3463 * 3466 - * @return error if the parsing fails, ok otherwise. 3464 + * Return: Error if the parsing fails, ok otherwise. 3467 3465 */ 3468 3466 enum dbg_status qed_get_idle_chk_results_buf_size(struct qed_hwfn *p_hwfn, 3469 3467 u32 *dump_buf, 3470 3468 u32 num_dumped_dwords, 3471 3469 u32 *results_buf_size); 3472 3470 /** 3473 - * @brief qed_print_idle_chk_results - Prints idle check results 3471 + * qed_print_idle_chk_results(): Prints idle check results 3474 3472 * 3475 - * @param p_hwfn - HW device data 3476 - * @param dump_buf - idle check dump buffer. 3477 - * @param num_dumped_dwords - number of dwords that were dumped. 3478 - * @param results_buf - buffer for printing the idle check results. 3479 - * @param num_errors - OUT: number of errors found in idle check. 3480 - * @param num_warnings - OUT: number of warnings found in idle check. 3473 + * @p_hwfn: HW device data. 3474 + * @dump_buf: idle check dump buffer. 3475 + * @num_dumped_dwords: number of dwords that were dumped. 3476 + * @results_buf: buffer for printing the idle check results. 3477 + * @num_errors: (OUT) number of errors found in idle check. 3478 + * @num_warnings: (OUT) number of warnings found in idle check. 3481 3479 * 3482 - * @return error if the parsing fails, ok otherwise. 3480 + * Return: Error if the parsing fails, ok otherwise. 3483 3481 */ 3484 3482 enum dbg_status qed_print_idle_chk_results(struct qed_hwfn *p_hwfn, 3485 3483 u32 *dump_buf, ··· 3493 3483 u32 *num_warnings); 3494 3484 3495 3485 /** 3496 - * @brief qed_dbg_mcp_trace_set_meta_data - Sets the MCP Trace meta data. 3486 + * qed_dbg_mcp_trace_set_meta_data(): Sets the MCP Trace meta data. 3487 + * 3488 + * @p_hwfn: HW device data. 3489 + * @meta_buf: Meta buffer. 3490 + * 3491 + * Return: Void. 3497 3492 * 3498 3493 * Needed in case the MCP Trace dump doesn't contain the meta data (e.g. due to 3499 3494 * no NVRAM access). 3500 - * 3501 - * @param data - pointer to MCP Trace meta data 3502 - * @param size - size of MCP Trace meta data in dwords 3503 3495 */ 3504 3496 void qed_dbg_mcp_trace_set_meta_data(struct qed_hwfn *p_hwfn, 3505 3497 const u32 *meta_buf); 3506 3498 3507 3499 /** 3508 - * @brief qed_get_mcp_trace_results_buf_size - Returns the required buffer size 3509 - * for MCP Trace results (in bytes). 3500 + * qed_get_mcp_trace_results_buf_size(): Returns the required buffer size 3501 + * for MCP Trace results (in bytes). 3510 3502 * 3511 - * @param p_hwfn - HW device data 3512 - * @param dump_buf - MCP Trace dump buffer. 3513 - * @param num_dumped_dwords - number of dwords that were dumped. 3514 - * @param results_buf_size - OUT: required buffer size (in bytes) for the parsed 3515 - * results. 3503 + * @p_hwfn: HW device data. 3504 + * @dump_buf: MCP Trace dump buffer. 3505 + * @num_dumped_dwords: number of dwords that were dumped. 3506 + * @results_buf_size: (OUT) required buffer size (in bytes) for the parsed 3507 + * results. 3516 3508 * 3517 - * @return error if the parsing fails, ok otherwise. 3509 + * Return: Rrror if the parsing fails, ok otherwise. 3518 3510 */ 3519 3511 enum dbg_status qed_get_mcp_trace_results_buf_size(struct qed_hwfn *p_hwfn, 3520 3512 u32 *dump_buf, ··· 3524 3512 u32 *results_buf_size); 3525 3513 3526 3514 /** 3527 - * @brief qed_print_mcp_trace_results - Prints MCP Trace results 3515 + * qed_print_mcp_trace_results(): Prints MCP Trace results 3528 3516 * 3529 - * @param p_hwfn - HW device data 3530 - * @param dump_buf - mcp trace dump buffer, starting from the header. 3531 - * @param num_dumped_dwords - number of dwords that were dumped. 3532 - * @param results_buf - buffer for printing the mcp trace results. 3517 + * @p_hwfn: HW device data. 3518 + * @dump_buf: MCP trace dump buffer, starting from the header. 3519 + * @num_dumped_dwords: Member of dwords that were dumped. 3520 + * @results_buf: Buffer for printing the mcp trace results. 3533 3521 * 3534 - * @return error if the parsing fails, ok otherwise. 3522 + * Return: Error if the parsing fails, ok otherwise. 3535 3523 */ 3536 3524 enum dbg_status qed_print_mcp_trace_results(struct qed_hwfn *p_hwfn, 3537 3525 u32 *dump_buf, ··· 3539 3527 char *results_buf); 3540 3528 3541 3529 /** 3542 - * @brief qed_print_mcp_trace_results_cont - Prints MCP Trace results, and 3530 + * qed_print_mcp_trace_results_cont(): Prints MCP Trace results, and 3543 3531 * keeps the MCP trace meta data allocated, to support continuous MCP Trace 3544 3532 * parsing. After the continuous parsing ends, mcp_trace_free_meta_data should 3545 3533 * be called to free the meta data. 3546 3534 * 3547 - * @param p_hwfn - HW device data 3548 - * @param dump_buf - mcp trace dump buffer, starting from the header. 3549 - * @param results_buf - buffer for printing the mcp trace results. 3535 + * @p_hwfn: HW device data. 3536 + * @dump_buf: MVP trace dump buffer, starting from the header. 3537 + * @results_buf: Buffer for printing the mcp trace results. 3550 3538 * 3551 - * @return error if the parsing fails, ok otherwise. 3539 + * Return: Error if the parsing fails, ok otherwise. 3552 3540 */ 3553 3541 enum dbg_status qed_print_mcp_trace_results_cont(struct qed_hwfn *p_hwfn, 3554 3542 u32 *dump_buf, 3555 3543 char *results_buf); 3556 3544 3557 3545 /** 3558 - * @brief print_mcp_trace_line - Prints MCP Trace results for a single line 3546 + * qed_print_mcp_trace_line(): Prints MCP Trace results for a single line 3559 3547 * 3560 - * @param p_hwfn - HW device data 3561 - * @param dump_buf - mcp trace dump buffer, starting from the header. 3562 - * @param num_dumped_bytes - number of bytes that were dumped. 3563 - * @param results_buf - buffer for printing the mcp trace results. 3548 + * @p_hwfn: HW device data. 3549 + * @dump_buf: MCP trace dump buffer, starting from the header. 3550 + * @num_dumped_bytes: Number of bytes that were dumped. 3551 + * @results_buf: Buffer for printing the mcp trace results. 3564 3552 * 3565 - * @return error if the parsing fails, ok otherwise. 3553 + * Return: Error if the parsing fails, ok otherwise. 3566 3554 */ 3567 3555 enum dbg_status qed_print_mcp_trace_line(struct qed_hwfn *p_hwfn, 3568 3556 u8 *dump_buf, ··· 3570 3558 char *results_buf); 3571 3559 3572 3560 /** 3573 - * @brief mcp_trace_free_meta_data - Frees the MCP Trace meta data. 3561 + * qed_mcp_trace_free_meta_data(): Frees the MCP Trace meta data. 3574 3562 * Should be called after continuous MCP Trace parsing. 3575 3563 * 3576 - * @param p_hwfn - HW device data 3564 + * @p_hwfn: HW device data. 3565 + * 3566 + * Return: Void. 3577 3567 */ 3578 3568 void qed_mcp_trace_free_meta_data(struct qed_hwfn *p_hwfn); 3579 3569 3580 3570 /** 3581 - * @brief qed_get_reg_fifo_results_buf_size - Returns the required buffer size 3582 - * for reg_fifo results (in bytes). 3571 + * qed_get_reg_fifo_results_buf_size(): Returns the required buffer size 3572 + * for reg_fifo results (in bytes). 3583 3573 * 3584 - * @param p_hwfn - HW device data 3585 - * @param dump_buf - reg fifo dump buffer. 3586 - * @param num_dumped_dwords - number of dwords that were dumped. 3587 - * @param results_buf_size - OUT: required buffer size (in bytes) for the parsed 3588 - * results. 3574 + * @p_hwfn: HW device data. 3575 + * @dump_buf: Reg fifo dump buffer. 3576 + * @num_dumped_dwords: Number of dwords that were dumped. 3577 + * @results_buf_size: (OUT) required buffer size (in bytes) for the parsed 3578 + * results. 3589 3579 * 3590 - * @return error if the parsing fails, ok otherwise. 3580 + * Return: Error if the parsing fails, ok otherwise. 3591 3581 */ 3592 3582 enum dbg_status qed_get_reg_fifo_results_buf_size(struct qed_hwfn *p_hwfn, 3593 3583 u32 *dump_buf, ··· 3597 3583 u32 *results_buf_size); 3598 3584 3599 3585 /** 3600 - * @brief qed_print_reg_fifo_results - Prints reg fifo results 3586 + * qed_print_reg_fifo_results(): Prints reg fifo results. 3601 3587 * 3602 - * @param p_hwfn - HW device data 3603 - * @param dump_buf - reg fifo dump buffer, starting from the header. 3604 - * @param num_dumped_dwords - number of dwords that were dumped. 3605 - * @param results_buf - buffer for printing the reg fifo results. 3588 + * @p_hwfn: HW device data. 3589 + * @dump_buf: Reg fifo dump buffer, starting from the header. 3590 + * @num_dumped_dwords: Number of dwords that were dumped. 3591 + * @results_buf: Buffer for printing the reg fifo results. 3606 3592 * 3607 - * @return error if the parsing fails, ok otherwise. 3593 + * Return: Error if the parsing fails, ok otherwise. 3608 3594 */ 3609 3595 enum dbg_status qed_print_reg_fifo_results(struct qed_hwfn *p_hwfn, 3610 3596 u32 *dump_buf, ··· 3612 3598 char *results_buf); 3613 3599 3614 3600 /** 3615 - * @brief qed_get_igu_fifo_results_buf_size - Returns the required buffer size 3616 - * for igu_fifo results (in bytes). 3601 + * qed_get_igu_fifo_results_buf_size(): Returns the required buffer size 3602 + * for igu_fifo results (in bytes). 3617 3603 * 3618 - * @param p_hwfn - HW device data 3619 - * @param dump_buf - IGU fifo dump buffer. 3620 - * @param num_dumped_dwords - number of dwords that were dumped. 3621 - * @param results_buf_size - OUT: required buffer size (in bytes) for the parsed 3622 - * results. 3604 + * @p_hwfn: HW device data. 3605 + * @dump_buf: IGU fifo dump buffer. 3606 + * @num_dumped_dwords: number of dwords that were dumped. 3607 + * @results_buf_size: (OUT) required buffer size (in bytes) for the parsed 3608 + * results. 3623 3609 * 3624 - * @return error if the parsing fails, ok otherwise. 3610 + * Return: Error if the parsing fails, ok otherwise. 3625 3611 */ 3626 3612 enum dbg_status qed_get_igu_fifo_results_buf_size(struct qed_hwfn *p_hwfn, 3627 3613 u32 *dump_buf, ··· 3629 3615 u32 *results_buf_size); 3630 3616 3631 3617 /** 3632 - * @brief qed_print_igu_fifo_results - Prints IGU fifo results 3618 + * qed_print_igu_fifo_results(): Prints IGU fifo results 3633 3619 * 3634 - * @param p_hwfn - HW device data 3635 - * @param dump_buf - IGU fifo dump buffer, starting from the header. 3636 - * @param num_dumped_dwords - number of dwords that were dumped. 3637 - * @param results_buf - buffer for printing the IGU fifo results. 3620 + * @p_hwfn: HW device data. 3621 + * @dump_buf: IGU fifo dump buffer, starting from the header. 3622 + * @num_dumped_dwords: Number of dwords that were dumped. 3623 + * @results_buf: Buffer for printing the IGU fifo results. 3638 3624 * 3639 - * @return error if the parsing fails, ok otherwise. 3625 + * Return: Error if the parsing fails, ok otherwise. 3640 3626 */ 3641 3627 enum dbg_status qed_print_igu_fifo_results(struct qed_hwfn *p_hwfn, 3642 3628 u32 *dump_buf, ··· 3644 3630 char *results_buf); 3645 3631 3646 3632 /** 3647 - * @brief qed_get_protection_override_results_buf_size - Returns the required 3648 - * buffer size for protection override results (in bytes). 3633 + * qed_get_protection_override_results_buf_size(): Returns the required 3634 + * buffer size for protection override results (in bytes). 3649 3635 * 3650 - * @param p_hwfn - HW device data 3651 - * @param dump_buf - protection override dump buffer. 3652 - * @param num_dumped_dwords - number of dwords that were dumped. 3653 - * @param results_buf_size - OUT: required buffer size (in bytes) for the parsed 3654 - * results. 3636 + * @p_hwfn: HW device data. 3637 + * @dump_buf: Protection override dump buffer. 3638 + * @num_dumped_dwords: Number of dwords that were dumped. 3639 + * @results_buf_size: (OUT) required buffer size (in bytes) for the parsed 3640 + * results. 3655 3641 * 3656 - * @return error if the parsing fails, ok otherwise. 3642 + * Return: Error if the parsing fails, ok otherwise. 3657 3643 */ 3658 3644 enum dbg_status 3659 3645 qed_get_protection_override_results_buf_size(struct qed_hwfn *p_hwfn, ··· 3662 3648 u32 *results_buf_size); 3663 3649 3664 3650 /** 3665 - * @brief qed_print_protection_override_results - Prints protection override 3666 - * results. 3651 + * qed_print_protection_override_results(): Prints protection override 3652 + * results. 3667 3653 * 3668 - * @param p_hwfn - HW device data 3669 - * @param dump_buf - protection override dump buffer, starting from the header. 3670 - * @param num_dumped_dwords - number of dwords that were dumped. 3671 - * @param results_buf - buffer for printing the reg fifo results. 3654 + * @p_hwfn: HW device data. 3655 + * @dump_buf: Protection override dump buffer, starting from the header. 3656 + * @num_dumped_dwords: Number of dwords that were dumped. 3657 + * @results_buf: Buffer for printing the reg fifo results. 3672 3658 * 3673 - * @return error if the parsing fails, ok otherwise. 3659 + * Return: Error if the parsing fails, ok otherwise. 3674 3660 */ 3675 3661 enum dbg_status qed_print_protection_override_results(struct qed_hwfn *p_hwfn, 3676 3662 u32 *dump_buf, ··· 3678 3664 char *results_buf); 3679 3665 3680 3666 /** 3681 - * @brief qed_get_fw_asserts_results_buf_size - Returns the required buffer size 3682 - * for FW Asserts results (in bytes). 3667 + * qed_get_fw_asserts_results_buf_size(): Returns the required buffer size 3668 + * for FW Asserts results (in bytes). 3683 3669 * 3684 - * @param p_hwfn - HW device data 3685 - * @param dump_buf - FW Asserts dump buffer. 3686 - * @param num_dumped_dwords - number of dwords that were dumped. 3687 - * @param results_buf_size - OUT: required buffer size (in bytes) for the parsed 3688 - * results. 3670 + * @p_hwfn: HW device data. 3671 + * @dump_buf: FW Asserts dump buffer. 3672 + * @num_dumped_dwords: number of dwords that were dumped. 3673 + * @results_buf_size: (OUT) required buffer size (in bytes) for the parsed 3674 + * results. 3689 3675 * 3690 - * @return error if the parsing fails, ok otherwise. 3676 + * Return: Error if the parsing fails, ok otherwise. 3691 3677 */ 3692 3678 enum dbg_status qed_get_fw_asserts_results_buf_size(struct qed_hwfn *p_hwfn, 3693 3679 u32 *dump_buf, ··· 3695 3681 u32 *results_buf_size); 3696 3682 3697 3683 /** 3698 - * @brief qed_print_fw_asserts_results - Prints FW Asserts results 3684 + * qed_print_fw_asserts_results(): Prints FW Asserts results. 3699 3685 * 3700 - * @param p_hwfn - HW device data 3701 - * @param dump_buf - FW Asserts dump buffer, starting from the header. 3702 - * @param num_dumped_dwords - number of dwords that were dumped. 3703 - * @param results_buf - buffer for printing the FW Asserts results. 3686 + * @p_hwfn: HW device data. 3687 + * @dump_buf: FW Asserts dump buffer, starting from the header. 3688 + * @num_dumped_dwords: number of dwords that were dumped. 3689 + * @results_buf: buffer for printing the FW Asserts results. 3704 3690 * 3705 - * @return error if the parsing fails, ok otherwise. 3691 + * Return: Error if the parsing fails, ok otherwise. 3706 3692 */ 3707 3693 enum dbg_status qed_print_fw_asserts_results(struct qed_hwfn *p_hwfn, 3708 3694 u32 *dump_buf, ··· 3710 3696 char *results_buf); 3711 3697 3712 3698 /** 3713 - * @brief qed_dbg_parse_attn - Parses and prints attention registers values in 3714 - * the specified results struct. 3699 + * qed_dbg_parse_attn(): Parses and prints attention registers values in 3700 + * the specified results struct. 3715 3701 * 3716 - * @param p_hwfn - HW device data 3717 - * @param results - Pointer to the attention read results 3702 + * @p_hwfn: HW device data. 3703 + * @results: Pointer to the attention read results 3718 3704 * 3719 - * @return error if one of the following holds: 3720 - * - the version wasn't set 3721 - * Otherwise, returns ok. 3705 + * Return: Error if one of the following holds: 3706 + * - The version wasn't set. 3707 + * Otherwise, returns ok. 3722 3708 */ 3723 3709 enum dbg_status qed_dbg_parse_attn(struct qed_hwfn *p_hwfn, 3724 3710 struct dbg_attn_block_result *results); ··· 3760 3746 #define GTT_BAR0_MAP_REG_PSDM_RAM 0x01a000UL 3761 3747 3762 3748 /** 3763 - * @brief qed_qm_pf_mem_size - prepare QM ILT sizes 3749 + * qed_qm_pf_mem_size(): Prepare QM ILT sizes. 3750 + * 3751 + * @num_pf_cids: Number of connections used by this PF. 3752 + * @num_vf_cids: Number of connections used by VFs of this PF. 3753 + * @num_tids: Number of tasks used by this PF. 3754 + * @num_pf_pqs: Number of PQs used by this PF. 3755 + * @num_vf_pqs: Number of PQs used by VFs of this PF. 3756 + * 3757 + * Return: The required host memory size in 4KB units. 3764 3758 * 3765 3759 * Returns the required host memory size in 4KB units. 3766 3760 * Must be called before all QM init HSI functions. 3767 - * 3768 - * @param num_pf_cids - number of connections used by this PF 3769 - * @param num_vf_cids - number of connections used by VFs of this PF 3770 - * @param num_tids - number of tasks used by this PF 3771 - * @param num_pf_pqs - number of PQs used by this PF 3772 - * @param num_vf_pqs - number of PQs used by VFs of this PF 3773 - * 3774 - * @return The required host memory size in 4KB units. 3775 3761 */ 3776 3762 u32 qed_qm_pf_mem_size(u32 num_pf_cids, 3777 3763 u32 num_vf_cids, ··· 3814 3800 struct qed_qm_pf_rt_init_params *p_params); 3815 3801 3816 3802 /** 3817 - * @brief qed_init_pf_wfq - Initializes the WFQ weight of the specified PF 3803 + * qed_init_pf_wfq(): Initializes the WFQ weight of the specified PF. 3818 3804 * 3819 - * @param p_hwfn 3820 - * @param p_ptt - ptt window used for writing the registers 3821 - * @param pf_id - PF ID 3822 - * @param pf_wfq - WFQ weight. Must be non-zero. 3805 + * @p_hwfn: HW device data. 3806 + * @p_ptt: Ptt window used for writing the registers 3807 + * @pf_id: PF ID 3808 + * @pf_wfq: WFQ weight. Must be non-zero. 3823 3809 * 3824 - * @return 0 on success, -1 on error. 3810 + * Return: 0 on success, -1 on error. 3825 3811 */ 3826 3812 int qed_init_pf_wfq(struct qed_hwfn *p_hwfn, 3827 3813 struct qed_ptt *p_ptt, u8 pf_id, u16 pf_wfq); 3828 3814 3829 3815 /** 3830 - * @brief qed_init_pf_rl - Initializes the rate limit of the specified PF 3816 + * qed_init_pf_rl(): Initializes the rate limit of the specified PF 3831 3817 * 3832 - * @param p_hwfn 3833 - * @param p_ptt - ptt window used for writing the registers 3834 - * @param pf_id - PF ID 3835 - * @param pf_rl - rate limit in Mb/sec units 3818 + * @p_hwfn: HW device data. 3819 + * @p_ptt: Ptt window used for writing the registers. 3820 + * @pf_id: PF ID. 3821 + * @pf_rl: rate limit in Mb/sec units 3836 3822 * 3837 - * @return 0 on success, -1 on error. 3823 + * Return: 0 on success, -1 on error. 3838 3824 */ 3839 3825 int qed_init_pf_rl(struct qed_hwfn *p_hwfn, 3840 3826 struct qed_ptt *p_ptt, u8 pf_id, u32 pf_rl); 3841 3827 3842 3828 /** 3843 - * @brief qed_init_vport_wfq Initializes the WFQ weight of the specified VPORT 3829 + * qed_init_vport_wfq(): Initializes the WFQ weight of the specified VPORT 3844 3830 * 3845 - * @param p_hwfn 3846 - * @param p_ptt - ptt window used for writing the registers 3847 - * @param first_tx_pq_id- An array containing the first Tx PQ ID associated 3848 - * with the VPORT for each TC. This array is filled by 3849 - * qed_qm_pf_rt_init 3850 - * @param vport_wfq - WFQ weight. Must be non-zero. 3831 + * @p_hwfn: HW device data. 3832 + * @p_ptt: Ptt window used for writing the registers 3833 + * @first_tx_pq_id: An array containing the first Tx PQ ID associated 3834 + * with the VPORT for each TC. This array is filled by 3835 + * qed_qm_pf_rt_init 3836 + * @wfq: WFQ weight. Must be non-zero. 3851 3837 * 3852 - * @return 0 on success, -1 on error. 3838 + * Return: 0 on success, -1 on error. 3853 3839 */ 3854 3840 int qed_init_vport_wfq(struct qed_hwfn *p_hwfn, 3855 3841 struct qed_ptt *p_ptt, 3856 3842 u16 first_tx_pq_id[NUM_OF_TCS], u16 wfq); 3857 3843 3858 3844 /** 3859 - * @brief qed_init_global_rl - Initializes the rate limit of the specified 3860 - * rate limiter 3845 + * qed_init_global_rl(): Initializes the rate limit of the specified 3846 + * rate limiter. 3861 3847 * 3862 - * @param p_hwfn 3863 - * @param p_ptt - ptt window used for writing the registers 3864 - * @param rl_id - RL ID 3865 - * @param rate_limit - rate limit in Mb/sec units 3848 + * @p_hwfn: HW device data. 3849 + * @p_ptt: Ptt window used for writing the registers. 3850 + * @rl_id: RL ID. 3851 + * @rate_limit: Rate limit in Mb/sec units 3866 3852 * 3867 - * @return 0 on success, -1 on error. 3853 + * Return: 0 on success, -1 on error. 3868 3854 */ 3869 3855 int qed_init_global_rl(struct qed_hwfn *p_hwfn, 3870 3856 struct qed_ptt *p_ptt, 3871 3857 u16 rl_id, u32 rate_limit); 3872 3858 3873 3859 /** 3874 - * @brief qed_send_qm_stop_cmd Sends a stop command to the QM 3860 + * qed_send_qm_stop_cmd(): Sends a stop command to the QM. 3875 3861 * 3876 - * @param p_hwfn 3877 - * @param p_ptt 3878 - * @param is_release_cmd - true for release, false for stop. 3879 - * @param is_tx_pq - true for Tx PQs, false for Other PQs. 3880 - * @param start_pq - first PQ ID to stop 3881 - * @param num_pqs - Number of PQs to stop, starting from start_pq. 3862 + * @p_hwfn: HW device data. 3863 + * @p_ptt: Ptt window used for writing the registers. 3864 + * @is_release_cmd: true for release, false for stop. 3865 + * @is_tx_pq: true for Tx PQs, false for Other PQs. 3866 + * @start_pq: first PQ ID to stop 3867 + * @num_pqs: Number of PQs to stop, starting from start_pq. 3882 3868 * 3883 - * @return bool, true if successful, false if timeout occurred while waiting for 3884 - * QM command done. 3869 + * Return: Bool, true if successful, false if timeout occurred while waiting 3870 + * for QM command done. 3885 3871 */ 3886 3872 bool qed_send_qm_stop_cmd(struct qed_hwfn *p_hwfn, 3887 3873 struct qed_ptt *p_ptt, ··· 3889 3875 bool is_tx_pq, u16 start_pq, u16 num_pqs); 3890 3876 3891 3877 /** 3892 - * @brief qed_set_vxlan_dest_port - initializes vxlan tunnel destination udp port 3878 + * qed_set_vxlan_dest_port(): Initializes vxlan tunnel destination udp port. 3893 3879 * 3894 - * @param p_hwfn 3895 - * @param p_ptt - ptt window used for writing the registers. 3896 - * @param dest_port - vxlan destination udp port. 3880 + * @p_hwfn: HW device data. 3881 + * @p_ptt: Ptt window used for writing the registers. 3882 + * @dest_port: vxlan destination udp port. 3883 + * 3884 + * Return: Void. 3897 3885 */ 3898 3886 void qed_set_vxlan_dest_port(struct qed_hwfn *p_hwfn, 3899 3887 struct qed_ptt *p_ptt, u16 dest_port); 3900 3888 3901 3889 /** 3902 - * @brief qed_set_vxlan_enable - enable or disable VXLAN tunnel in HW 3890 + * qed_set_vxlan_enable(): Enable or disable VXLAN tunnel in HW. 3903 3891 * 3904 - * @param p_hwfn 3905 - * @param p_ptt - ptt window used for writing the registers. 3906 - * @param vxlan_enable - vxlan enable flag. 3892 + * @p_hwfn: HW device data. 3893 + * @p_ptt: Ptt window used for writing the registers. 3894 + * @vxlan_enable: vxlan enable flag. 3895 + * 3896 + * Return: Void. 3907 3897 */ 3908 3898 void qed_set_vxlan_enable(struct qed_hwfn *p_hwfn, 3909 3899 struct qed_ptt *p_ptt, bool vxlan_enable); 3910 3900 3911 3901 /** 3912 - * @brief qed_set_gre_enable - enable or disable GRE tunnel in HW 3902 + * qed_set_gre_enable(): Enable or disable GRE tunnel in HW. 3913 3903 * 3914 - * @param p_hwfn 3915 - * @param p_ptt - ptt window used for writing the registers. 3916 - * @param eth_gre_enable - eth GRE enable enable flag. 3917 - * @param ip_gre_enable - IP GRE enable enable flag. 3904 + * @p_hwfn: HW device data. 3905 + * @p_ptt: Ptt window used for writing the registers. 3906 + * @eth_gre_enable: Eth GRE enable flag. 3907 + * @ip_gre_enable: IP GRE enable flag. 3908 + * 3909 + * Return: Void. 3918 3910 */ 3919 3911 void qed_set_gre_enable(struct qed_hwfn *p_hwfn, 3920 3912 struct qed_ptt *p_ptt, 3921 3913 bool eth_gre_enable, bool ip_gre_enable); 3922 3914 3923 3915 /** 3924 - * @brief qed_set_geneve_dest_port - initializes geneve tunnel destination udp port 3916 + * qed_set_geneve_dest_port(): Initializes geneve tunnel destination udp port 3925 3917 * 3926 - * @param p_hwfn 3927 - * @param p_ptt - ptt window used for writing the registers. 3928 - * @param dest_port - geneve destination udp port. 3918 + * @p_hwfn: HW device data. 3919 + * @p_ptt: Ptt window used for writing the registers. 3920 + * @dest_port: Geneve destination udp port. 3921 + * 3922 + * Retur: Void. 3929 3923 */ 3930 3924 void qed_set_geneve_dest_port(struct qed_hwfn *p_hwfn, 3931 3925 struct qed_ptt *p_ptt, u16 dest_port); 3932 3926 3933 3927 /** 3934 - * @brief qed_set_gre_enable - enable or disable GRE tunnel in HW 3928 + * qed_set_geneve_enable(): Enable or disable GRE tunnel in HW. 3935 3929 * 3936 - * @param p_ptt - ptt window used for writing the registers. 3937 - * @param eth_geneve_enable - eth GENEVE enable enable flag. 3938 - * @param ip_geneve_enable - IP GENEVE enable enable flag. 3930 + * @p_hwfn: HW device data. 3931 + * @p_ptt: Ptt window used for writing the registers. 3932 + * @eth_geneve_enable: Eth GENEVE enable flag. 3933 + * @ip_geneve_enable: IP GENEVE enable flag. 3934 + * 3935 + * Return: Void. 3939 3936 */ 3940 3937 void qed_set_geneve_enable(struct qed_hwfn *p_hwfn, 3941 3938 struct qed_ptt *p_ptt, ··· 3956 3931 struct qed_ptt *p_ptt, bool enable); 3957 3932 3958 3933 /** 3959 - * @brief qed_gft_disable - Disable GFT 3934 + * qed_gft_disable(): Disable GFT. 3960 3935 * 3961 - * @param p_hwfn 3962 - * @param p_ptt - ptt window used for writing the registers. 3963 - * @param pf_id - pf on which to disable GFT. 3936 + * @p_hwfn: HW device data. 3937 + * @p_ptt: Ptt window used for writing the registers. 3938 + * @pf_id: PF on which to disable GFT. 3939 + * 3940 + * Return: Void. 3964 3941 */ 3965 3942 void qed_gft_disable(struct qed_hwfn *p_hwfn, struct qed_ptt *p_ptt, u16 pf_id); 3966 3943 3967 3944 /** 3968 - * @brief qed_gft_config - Enable and configure HW for GFT 3945 + * qed_gft_config(): Enable and configure HW for GFT. 3969 3946 * 3970 - * @param p_hwfn - HW device data 3971 - * @param p_ptt - ptt window used for writing the registers. 3972 - * @param pf_id - pf on which to enable GFT. 3973 - * @param tcp - set profile tcp packets. 3974 - * @param udp - set profile udp packet. 3975 - * @param ipv4 - set profile ipv4 packet. 3976 - * @param ipv6 - set profile ipv6 packet. 3977 - * @param profile_type - define packet same fields. Use enum gft_profile_type. 3947 + * @p_hwfn: HW device data. 3948 + * @p_ptt: Ptt window used for writing the registers. 3949 + * @pf_id: PF on which to enable GFT. 3950 + * @tcp: Set profile tcp packets. 3951 + * @udp: Set profile udp packet. 3952 + * @ipv4: Set profile ipv4 packet. 3953 + * @ipv6: Set profile ipv6 packet. 3954 + * @profile_type: Define packet same fields. Use enum gft_profile_type. 3955 + * 3956 + * Return: Void. 3978 3957 */ 3979 3958 void qed_gft_config(struct qed_hwfn *p_hwfn, 3980 3959 struct qed_ptt *p_ptt, ··· 3988 3959 bool ipv4, bool ipv6, enum gft_profile_type profile_type); 3989 3960 3990 3961 /** 3991 - * @brief qed_enable_context_validation - Enable and configure context 3992 - * validation. 3962 + * qed_enable_context_validation(): Enable and configure context 3963 + * validation. 3993 3964 * 3994 - * @param p_hwfn 3995 - * @param p_ptt - ptt window used for writing the registers. 3965 + * @p_hwfn: HW device data. 3966 + * @p_ptt: Ptt window used for writing the registers. 3967 + * 3968 + * Return: Void. 3996 3969 */ 3997 3970 void qed_enable_context_validation(struct qed_hwfn *p_hwfn, 3998 3971 struct qed_ptt *p_ptt); 3999 3972 4000 3973 /** 4001 - * @brief qed_calc_session_ctx_validation - Calcualte validation byte for 4002 - * session context. 3974 + * qed_calc_session_ctx_validation(): Calcualte validation byte for 3975 + * session context. 4003 3976 * 4004 - * @param p_ctx_mem - pointer to context memory. 4005 - * @param ctx_size - context size. 4006 - * @param ctx_type - context type. 4007 - * @param cid - context cid. 3977 + * @p_ctx_mem: Pointer to context memory. 3978 + * @ctx_size: Context size. 3979 + * @ctx_type: Context type. 3980 + * @cid: Context cid. 3981 + * 3982 + * Return: Void. 4008 3983 */ 4009 3984 void qed_calc_session_ctx_validation(void *p_ctx_mem, 4010 3985 u16 ctx_size, u8 ctx_type, u32 cid); 4011 3986 4012 3987 /** 4013 - * @brief qed_calc_task_ctx_validation - Calcualte validation byte for task 4014 - * context. 3988 + * qed_calc_task_ctx_validation(): Calcualte validation byte for task 3989 + * context. 4015 3990 * 4016 - * @param p_ctx_mem - pointer to context memory. 4017 - * @param ctx_size - context size. 4018 - * @param ctx_type - context type. 4019 - * @param tid - context tid. 3991 + * @p_ctx_mem: Pointer to context memory. 3992 + * @ctx_size: Context size. 3993 + * @ctx_type: Context type. 3994 + * @tid: Context tid. 3995 + * 3996 + * Return: Void. 4020 3997 */ 4021 3998 void qed_calc_task_ctx_validation(void *p_ctx_mem, 4022 3999 u16 ctx_size, u8 ctx_type, u32 tid); 4023 4000 4024 4001 /** 4025 - * @brief qed_memset_session_ctx - Memset session context to 0 while 4026 - * preserving validation bytes. 4002 + * qed_memset_session_ctx(): Memset session context to 0 while 4003 + * preserving validation bytes. 4027 4004 * 4028 - * @param p_hwfn - 4029 - * @param p_ctx_mem - pointer to context memory. 4030 - * @param ctx_size - size to initialzie. 4031 - * @param ctx_type - context type. 4005 + * @p_ctx_mem: Pointer to context memory. 4006 + * @ctx_size: Size to initialzie. 4007 + * @ctx_type: Context type. 4008 + * 4009 + * Return: Void. 4032 4010 */ 4033 4011 void qed_memset_session_ctx(void *p_ctx_mem, u32 ctx_size, u8 ctx_type); 4034 4012 4035 4013 /** 4036 - * @brief qed_memset_task_ctx - Memset task context to 0 while preserving 4037 - * validation bytes. 4014 + * qed_memset_task_ctx(): Memset task context to 0 while preserving 4015 + * validation bytes. 4038 4016 * 4039 - * @param p_ctx_mem - pointer to context memory. 4040 - * @param ctx_size - size to initialzie. 4041 - * @param ctx_type - context type. 4017 + * @p_ctx_mem: Pointer to context memory. 4018 + * @ctx_size: size to initialzie. 4019 + * @ctx_type: context type. 4020 + * 4021 + * Return: Void. 4042 4022 */ 4043 4023 void qed_memset_task_ctx(void *p_ctx_mem, u32 ctx_size, u8 ctx_type); 4044 4024 4045 4025 #define NUM_STORMS 6 4046 4026 4047 4027 /** 4048 - * @brief qed_set_rdma_error_level - Sets the RDMA assert level. 4049 - * If the severity of the error will be 4050 - * above the level, the FW will assert. 4051 - * @param p_hwfn - HW device data 4052 - * @param p_ptt - ptt window used for writing the registers 4053 - * @param assert_level - An array of assert levels for each storm. 4028 + * qed_set_rdma_error_level(): Sets the RDMA assert level. 4029 + * If the severity of the error will be 4030 + * above the level, the FW will assert. 4031 + * @p_hwfn: HW device data. 4032 + * @p_ptt: Ptt window used for writing the registers. 4033 + * @assert_level: An array of assert levels for each storm. 4054 4034 * 4035 + * Return: Void. 4055 4036 */ 4056 4037 void qed_set_rdma_error_level(struct qed_hwfn *p_hwfn, 4057 4038 struct qed_ptt *p_ptt, 4058 4039 u8 assert_level[NUM_STORMS]); 4059 4040 /** 4060 - * @brief qed_fw_overlay_mem_alloc - Allocates and fills the FW overlay memory. 4041 + * qed_fw_overlay_mem_alloc(): Allocates and fills the FW overlay memory. 4061 4042 * 4062 - * @param p_hwfn - HW device data 4063 - * @param fw_overlay_in_buf - the input FW overlay buffer. 4064 - * @param buf_size - the size of the input FW overlay buffer in bytes. 4065 - * must be aligned to dwords. 4066 - * @param fw_overlay_out_mem - OUT: a pointer to the allocated overlays memory. 4043 + * @p_hwfn: HW device data. 4044 + * @fw_overlay_in_buf: The input FW overlay buffer. 4045 + * @buf_size_in_bytes: The size of the input FW overlay buffer in bytes. 4046 + * must be aligned to dwords. 4067 4047 * 4068 - * @return a pointer to the allocated overlays memory, 4048 + * Return: A pointer to the allocated overlays memory, 4069 4049 * or NULL in case of failures. 4070 4050 */ 4071 4051 struct phys_mem_desc * 4072 4052 qed_fw_overlay_mem_alloc(struct qed_hwfn *p_hwfn, 4073 - const u32 * const fw_overlay_in_buf, 4053 + const u32 *const fw_overlay_in_buf, 4074 4054 u32 buf_size_in_bytes); 4075 4055 4076 4056 /** 4077 - * @brief qed_fw_overlay_init_ram - Initializes the FW overlay RAM. 4057 + * qed_fw_overlay_init_ram(): Initializes the FW overlay RAM. 4078 4058 * 4079 - * @param p_hwfn - HW device data. 4080 - * @param p_ptt - ptt window used for writing the registers. 4081 - * @param fw_overlay_mem - the allocated FW overlay memory. 4059 + * @p_hwfn: HW device data. 4060 + * @p_ptt: Ptt window used for writing the registers. 4061 + * @fw_overlay_mem: the allocated FW overlay memory. 4062 + * 4063 + * Return: Void. 4082 4064 */ 4083 4065 void qed_fw_overlay_init_ram(struct qed_hwfn *p_hwfn, 4084 4066 struct qed_ptt *p_ptt, 4085 4067 struct phys_mem_desc *fw_overlay_mem); 4086 4068 4087 4069 /** 4088 - * @brief qed_fw_overlay_mem_free - Frees the FW overlay memory. 4070 + * qed_fw_overlay_mem_free(): Frees the FW overlay memory. 4089 4071 * 4090 - * @param p_hwfn - HW device data. 4091 - * @param fw_overlay_mem - the allocated FW overlay memory to free. 4072 + * @p_hwfn: HW device data. 4073 + * @fw_overlay_mem: The allocated FW overlay memory to free. 4074 + * 4075 + * Return: Void. 4092 4076 */ 4093 4077 void qed_fw_overlay_mem_free(struct qed_hwfn *p_hwfn, 4094 4078 struct phys_mem_desc *fw_overlay_mem);
+121 -93
drivers/net/ethernet/qlogic/qed/qed_hw.h
··· 53 53 #define DMAE_MAX_CLIENTS 32 54 54 55 55 /** 56 - * @brief qed_gtt_init - Initialize GTT windows 56 + * qed_gtt_init(): Initialize GTT windows. 57 57 * 58 - * @param p_hwfn 58 + * @p_hwfn: HW device data. 59 + * 60 + * Return: Void. 59 61 */ 60 62 void qed_gtt_init(struct qed_hwfn *p_hwfn); 61 63 62 64 /** 63 - * @brief qed_ptt_invalidate - Forces all ptt entries to be re-configured 65 + * qed_ptt_invalidate(): Forces all ptt entries to be re-configured 64 66 * 65 - * @param p_hwfn 67 + * @p_hwfn: HW device data. 68 + * 69 + * Return: Void. 66 70 */ 67 71 void qed_ptt_invalidate(struct qed_hwfn *p_hwfn); 68 72 69 73 /** 70 - * @brief qed_ptt_pool_alloc - Allocate and initialize PTT pool 74 + * qed_ptt_pool_alloc(): Allocate and initialize PTT pool. 71 75 * 72 - * @param p_hwfn 76 + * @p_hwfn: HW device data. 73 77 * 74 - * @return struct _qed_status - success (0), negative - error. 78 + * Return: struct _qed_status - success (0), negative - error. 75 79 */ 76 80 int qed_ptt_pool_alloc(struct qed_hwfn *p_hwfn); 77 81 78 82 /** 79 - * @brief qed_ptt_pool_free - 83 + * qed_ptt_pool_free(): Free PTT pool. 80 84 * 81 - * @param p_hwfn 85 + * @p_hwfn: HW device data. 86 + * 87 + * Return: Void. 82 88 */ 83 89 void qed_ptt_pool_free(struct qed_hwfn *p_hwfn); 84 90 85 91 /** 86 - * @brief qed_ptt_get_hw_addr - Get PTT's GRC/HW address 92 + * qed_ptt_get_hw_addr(): Get PTT's GRC/HW address. 87 93 * 88 - * @param p_hwfn 89 - * @param p_ptt 94 + * @p_hwfn: HW device data. 95 + * @p_ptt: P_ptt 90 96 * 91 - * @return u32 97 + * Return: u32. 92 98 */ 93 99 u32 qed_ptt_get_hw_addr(struct qed_hwfn *p_hwfn, 94 100 struct qed_ptt *p_ptt); 95 101 96 102 /** 97 - * @brief qed_ptt_get_bar_addr - Get PPT's external BAR address 103 + * qed_ptt_get_bar_addr(): Get PPT's external BAR address. 98 104 * 99 - * @param p_hwfn 100 - * @param p_ptt 105 + * @p_ptt: P_ptt 101 106 * 102 - * @return u32 107 + * Return: u32. 103 108 */ 104 109 u32 qed_ptt_get_bar_addr(struct qed_ptt *p_ptt); 105 110 106 111 /** 107 - * @brief qed_ptt_set_win - Set PTT Window's GRC BAR address 112 + * qed_ptt_set_win(): Set PTT Window's GRC BAR address 108 113 * 109 - * @param p_hwfn 110 - * @param new_hw_addr 111 - * @param p_ptt 114 + * @p_hwfn: HW device data. 115 + * @new_hw_addr: New HW address. 116 + * @p_ptt: P_Ptt 117 + * 118 + * Return: Void. 112 119 */ 113 120 void qed_ptt_set_win(struct qed_hwfn *p_hwfn, 114 121 struct qed_ptt *p_ptt, 115 122 u32 new_hw_addr); 116 123 117 124 /** 118 - * @brief qed_get_reserved_ptt - Get a specific reserved PTT 125 + * qed_get_reserved_ptt(): Get a specific reserved PTT. 119 126 * 120 - * @param p_hwfn 121 - * @param ptt_idx 127 + * @p_hwfn: HW device data. 128 + * @ptt_idx: Ptt Index. 122 129 * 123 - * @return struct qed_ptt * 130 + * Return: struct qed_ptt *. 124 131 */ 125 132 struct qed_ptt *qed_get_reserved_ptt(struct qed_hwfn *p_hwfn, 126 133 enum reserved_ptts ptt_idx); 127 134 128 135 /** 129 - * @brief qed_wr - Write value to BAR using the given ptt 136 + * qed_wr(): Write value to BAR using the given ptt. 130 137 * 131 - * @param p_hwfn 132 - * @param p_ptt 133 - * @param val 134 - * @param hw_addr 138 + * @p_hwfn: HW device data. 139 + * @p_ptt: P_ptt. 140 + * @val: Val. 141 + * @hw_addr: HW address 142 + * 143 + * Return: Void. 135 144 */ 136 145 void qed_wr(struct qed_hwfn *p_hwfn, 137 146 struct qed_ptt *p_ptt, ··· 148 139 u32 val); 149 140 150 141 /** 151 - * @brief qed_rd - Read value from BAR using the given ptt 142 + * qed_rd(): Read value from BAR using the given ptt. 152 143 * 153 - * @param p_hwfn 154 - * @param p_ptt 155 - * @param val 156 - * @param hw_addr 144 + * @p_hwfn: HW device data. 145 + * @p_ptt: P_ptt. 146 + * @hw_addr: HW address 147 + * 148 + * Return: Void. 157 149 */ 158 150 u32 qed_rd(struct qed_hwfn *p_hwfn, 159 151 struct qed_ptt *p_ptt, 160 152 u32 hw_addr); 161 153 162 154 /** 163 - * @brief qed_memcpy_from - copy n bytes from BAR using the given 164 - * ptt 155 + * qed_memcpy_from(): Copy n bytes from BAR using the given ptt. 165 156 * 166 - * @param p_hwfn 167 - * @param p_ptt 168 - * @param dest 169 - * @param hw_addr 170 - * @param n 157 + * @p_hwfn: HW device data. 158 + * @p_ptt: P_ptt. 159 + * @dest: Destination. 160 + * @hw_addr: HW address. 161 + * @n: N 162 + * 163 + * Return: Void. 171 164 */ 172 165 void qed_memcpy_from(struct qed_hwfn *p_hwfn, 173 166 struct qed_ptt *p_ptt, ··· 178 167 size_t n); 179 168 180 169 /** 181 - * @brief qed_memcpy_to - copy n bytes to BAR using the given 182 - * ptt 170 + * qed_memcpy_to(): Copy n bytes to BAR using the given ptt 183 171 * 184 - * @param p_hwfn 185 - * @param p_ptt 186 - * @param hw_addr 187 - * @param src 188 - * @param n 172 + * @p_hwfn: HW device data. 173 + * @p_ptt: P_ptt. 174 + * @hw_addr: HW address. 175 + * @src: Source. 176 + * @n: N 177 + * 178 + * Return: Void. 189 179 */ 190 180 void qed_memcpy_to(struct qed_hwfn *p_hwfn, 191 181 struct qed_ptt *p_ptt, ··· 194 182 void *src, 195 183 size_t n); 196 184 /** 197 - * @brief qed_fid_pretend - pretend to another function when 198 - * accessing the ptt window. There is no way to unpretend 199 - * a function. The only way to cancel a pretend is to 200 - * pretend back to the original function. 185 + * qed_fid_pretend(): pretend to another function when 186 + * accessing the ptt window. There is no way to unpretend 187 + * a function. The only way to cancel a pretend is to 188 + * pretend back to the original function. 201 189 * 202 - * @param p_hwfn 203 - * @param p_ptt 204 - * @param fid - fid field of pxp_pretend structure. Can contain 205 - * either pf / vf, port/path fields are don't care. 190 + * @p_hwfn: HW device data. 191 + * @p_ptt: P_ptt. 192 + * @fid: fid field of pxp_pretend structure. Can contain 193 + * either pf / vf, port/path fields are don't care. 194 + * 195 + * Return: Void. 206 196 */ 207 197 void qed_fid_pretend(struct qed_hwfn *p_hwfn, 208 198 struct qed_ptt *p_ptt, 209 199 u16 fid); 210 200 211 201 /** 212 - * @brief qed_port_pretend - pretend to another port when 213 - * accessing the ptt window 202 + * qed_port_pretend(): Pretend to another port when accessing the ptt window 214 203 * 215 - * @param p_hwfn 216 - * @param p_ptt 217 - * @param port_id - the port to pretend to 204 + * @p_hwfn: HW device data. 205 + * @p_ptt: P_ptt. 206 + * @port_id: The port to pretend to 207 + * 208 + * Return: Void. 218 209 */ 219 210 void qed_port_pretend(struct qed_hwfn *p_hwfn, 220 211 struct qed_ptt *p_ptt, 221 212 u8 port_id); 222 213 223 214 /** 224 - * @brief qed_port_unpretend - cancel any previously set port 225 - * pretend 215 + * qed_port_unpretend(): Cancel any previously set port pretend 226 216 * 227 - * @param p_hwfn 228 - * @param p_ptt 217 + * @p_hwfn: HW device data. 218 + * @p_ptt: P_ptt. 219 + * 220 + * Return: Void. 229 221 */ 230 222 void qed_port_unpretend(struct qed_hwfn *p_hwfn, 231 223 struct qed_ptt *p_ptt); 232 224 233 225 /** 234 - * @brief qed_port_fid_pretend - pretend to another port and another function 235 - * when accessing the ptt window 226 + * qed_port_fid_pretend(): Pretend to another port and another function 227 + * when accessing the ptt window 236 228 * 237 - * @param p_hwfn 238 - * @param p_ptt 239 - * @param port_id - the port to pretend to 240 - * @param fid - fid field of pxp_pretend structure. Can contain either pf / vf. 229 + * @p_hwfn: HW device data. 230 + * @p_ptt: P_ptt. 231 + * @port_id: The port to pretend to 232 + * @fid: fid field of pxp_pretend structure. Can contain either pf / vf. 233 + * 234 + * Return: Void. 241 235 */ 242 236 void qed_port_fid_pretend(struct qed_hwfn *p_hwfn, 243 237 struct qed_ptt *p_ptt, u8 port_id, u16 fid); 244 238 245 239 /** 246 - * @brief qed_vfid_to_concrete - build a concrete FID for a 247 - * given VF ID 240 + * qed_vfid_to_concrete(): Build a concrete FID for a given VF ID 248 241 * 249 - * @param p_hwfn 250 - * @param p_ptt 251 - * @param vfid 242 + * @p_hwfn: HW device data. 243 + * @vfid: VFID. 244 + * 245 + * Return: Void. 252 246 */ 253 247 u32 qed_vfid_to_concrete(struct qed_hwfn *p_hwfn, u8 vfid); 254 248 255 249 /** 256 - * @brief qed_dmae_idx_to_go_cmd - map the idx to dmae cmd 257 - * this is declared here since other files will require it. 258 - * @param idx 250 + * qed_dmae_idx_to_go_cmd(): Map the idx to dmae cmd 251 + * this is declared here since other files will require it. 252 + * 253 + * @idx: Index 254 + * 255 + * Return: Void. 259 256 */ 260 257 u32 qed_dmae_idx_to_go_cmd(u8 idx); 261 258 262 259 /** 263 - * @brief qed_dmae_info_alloc - Init the dmae_info structure 264 - * which is part of p_hwfn. 265 - * @param p_hwfn 260 + * qed_dmae_info_alloc(): Init the dmae_info structure 261 + * which is part of p_hwfn. 262 + * 263 + * @p_hwfn: HW device data. 264 + * 265 + * Return: Int. 266 266 */ 267 267 int qed_dmae_info_alloc(struct qed_hwfn *p_hwfn); 268 268 269 269 /** 270 - * @brief qed_dmae_info_free - Free the dmae_info structure 271 - * which is part of p_hwfn 270 + * qed_dmae_info_free(): Free the dmae_info structure 271 + * which is part of p_hwfn. 272 272 * 273 - * @param p_hwfn 273 + * @p_hwfn: HW device data. 274 + * 275 + * Return: Void. 274 276 */ 275 277 void qed_dmae_info_free(struct qed_hwfn *p_hwfn); 276 278 ··· 318 292 #define QED_HW_ERR_MAX_STR_SIZE 256 319 293 320 294 /** 321 - * @brief qed_hw_err_notify - Notify upper layer driver and management FW 322 - * about a HW error. 295 + * qed_hw_err_notify(): Notify upper layer driver and management FW 296 + * about a HW error. 323 297 * 324 - * @param p_hwfn 325 - * @param p_ptt 326 - * @param err_type 327 - * @param fmt - debug data buffer to send to the MFW 328 - * @param ... - buffer format args 298 + * @p_hwfn: HW device data. 299 + * @p_ptt: P_ptt. 300 + * @err_type: Err Type. 301 + * @fmt: Debug data buffer to send to the MFW 302 + * @...: buffer format args 303 + * 304 + * Return void. 329 305 */ 330 306 void __printf(4, 5) __cold qed_hw_err_notify(struct qed_hwfn *p_hwfn, 331 307 struct qed_ptt *p_ptt,
+26 -32
drivers/net/ethernet/qlogic/qed/qed_init_ops.h
··· 12 12 #include "qed.h" 13 13 14 14 /** 15 - * @brief qed_init_iro_array - init iro_arr. 15 + * qed_init_iro_array(): init iro_arr. 16 16 * 17 + * @cdev: Qed dev pointer. 17 18 * 18 - * @param cdev 19 + * Return: Void. 19 20 */ 20 21 void qed_init_iro_array(struct qed_dev *cdev); 21 22 22 23 /** 23 - * @brief qed_init_run - Run the init-sequence. 24 + * qed_init_run(): Run the init-sequence. 24 25 * 26 + * @p_hwfn: HW device data. 27 + * @p_ptt: P_ptt. 28 + * @phase: Phase. 29 + * @phase_id: Phase ID. 30 + * @modes: Mode. 25 31 * 26 - * @param p_hwfn 27 - * @param p_ptt 28 - * @param phase 29 - * @param phase_id 30 - * @param modes 31 - * @return _qed_status_t 32 + * Return: _qed_status_t 32 33 */ 33 34 int qed_init_run(struct qed_hwfn *p_hwfn, 34 35 struct qed_ptt *p_ptt, ··· 38 37 int modes); 39 38 40 39 /** 41 - * @brief qed_init_hwfn_allocate - Allocate RT array, Store 'values' ptrs. 40 + * qed_init_alloc(): Allocate RT array, Store 'values' ptrs. 42 41 * 42 + * @p_hwfn: HW device data. 43 43 * 44 - * @param p_hwfn 45 - * 46 - * @return _qed_status_t 44 + * Return: _qed_status_t. 47 45 */ 48 46 int qed_init_alloc(struct qed_hwfn *p_hwfn); 49 47 50 48 /** 51 - * @brief qed_init_hwfn_deallocate 49 + * qed_init_free(): Init HW function deallocate. 52 50 * 51 + * @p_hwfn: HW device data. 53 52 * 54 - * @param p_hwfn 53 + * Return: Void. 55 54 */ 56 55 void qed_init_free(struct qed_hwfn *p_hwfn); 57 56 58 57 /** 59 - * @brief qed_init_store_rt_reg - Store a configuration value in the RT array. 58 + * qed_init_store_rt_reg(): Store a configuration value in the RT array. 60 59 * 60 + * @p_hwfn: HW device data. 61 + * @rt_offset: RT offset. 62 + * @val: Val. 61 63 * 62 - * @param p_hwfn 63 - * @param rt_offset 64 - * @param val 64 + * Return: Void. 65 65 */ 66 66 void qed_init_store_rt_reg(struct qed_hwfn *p_hwfn, 67 67 u32 rt_offset, ··· 74 72 #define OVERWRITE_RT_REG(hwfn, offset, val) \ 75 73 qed_init_store_rt_reg(hwfn, offset, val) 76 74 77 - /** 78 - * @brief 79 - * 80 - * 81 - * @param p_hwfn 82 - * @param rt_offset 83 - * @param val 84 - * @param size 85 - */ 86 75 void qed_init_store_rt_agg(struct qed_hwfn *p_hwfn, 87 76 u32 rt_offset, 88 77 u32 *val, ··· 83 90 qed_init_store_rt_agg(hwfn, offset, (u32 *)&val, sizeof(val)) 84 91 85 92 /** 86 - * @brief 87 - * Initialize GTT global windows and set admin window 88 - * related params of GTT/PTT to default values. 93 + * qed_gtt_init(): Initialize GTT global windows and set admin window 94 + * related params of GTT/PTT to default values. 89 95 * 90 - * @param p_hwfn 96 + * @p_hwfn: HW device data. 97 + * 98 + * Return Void. 91 99 */ 92 100 void qed_gtt_init(struct qed_hwfn *p_hwfn); 93 101 #endif
+149 -125
drivers/net/ethernet/qlogic/qed/qed_int.h
··· 53 53 }; 54 54 55 55 /** 56 - * @brief qed_int_igu_enable_int - enable device interrupts 56 + * qed_int_igu_enable_int(): Enable device interrupts. 57 57 * 58 - * @param p_hwfn 59 - * @param p_ptt 60 - * @param int_mode - interrupt mode to use 58 + * @p_hwfn: HW device data. 59 + * @p_ptt: P_ptt. 60 + * @int_mode: Interrupt mode to use. 61 + * 62 + * Return: Void. 61 63 */ 62 64 void qed_int_igu_enable_int(struct qed_hwfn *p_hwfn, 63 65 struct qed_ptt *p_ptt, 64 66 enum qed_int_mode int_mode); 65 67 66 68 /** 67 - * @brief qed_int_igu_disable_int - disable device interrupts 69 + * qed_int_igu_disable_int(): Disable device interrupts. 68 70 * 69 - * @param p_hwfn 70 - * @param p_ptt 71 + * @p_hwfn: HW device data. 72 + * @p_ptt: P_ptt. 73 + * 74 + * Return: Void. 71 75 */ 72 76 void qed_int_igu_disable_int(struct qed_hwfn *p_hwfn, 73 77 struct qed_ptt *p_ptt); 74 78 75 79 /** 76 - * @brief qed_int_igu_read_sisr_reg - Reads the single isr multiple dpc 77 - * register from igu. 80 + * qed_int_igu_read_sisr_reg(): Reads the single isr multiple dpc 81 + * register from igu. 78 82 * 79 - * @param p_hwfn 83 + * @p_hwfn: HW device data. 80 84 * 81 - * @return u64 85 + * Return: u64. 82 86 */ 83 87 u64 qed_int_igu_read_sisr_reg(struct qed_hwfn *p_hwfn); 84 88 85 89 #define QED_SP_SB_ID 0xffff 86 90 /** 87 - * @brief qed_int_sb_init - Initializes the sb_info structure. 91 + * qed_int_sb_init(): Initializes the sb_info structure. 88 92 * 89 - * once the structure is initialized it can be passed to sb related functions. 93 + * @p_hwfn: HW device data. 94 + * @p_ptt: P_ptt. 95 + * @sb_info: points to an uninitialized (but allocated) sb_info structure 96 + * @sb_virt_addr: SB Virtual address. 97 + * @sb_phy_addr: SB Physial address. 98 + * @sb_id: the sb_id to be used (zero based in driver) 99 + * should use QED_SP_SB_ID for SP Status block 90 100 * 91 - * @param p_hwfn 92 - * @param p_ptt 93 - * @param sb_info points to an uninitialized (but 94 - * allocated) sb_info structure 95 - * @param sb_virt_addr 96 - * @param sb_phy_addr 97 - * @param sb_id the sb_id to be used (zero based in driver) 98 - * should use QED_SP_SB_ID for SP Status block 101 + * Return: int. 99 102 * 100 - * @return int 103 + * Once the structure is initialized it can be passed to sb related functions. 101 104 */ 102 105 int qed_int_sb_init(struct qed_hwfn *p_hwfn, 103 106 struct qed_ptt *p_ptt, ··· 109 106 dma_addr_t sb_phy_addr, 110 107 u16 sb_id); 111 108 /** 112 - * @brief qed_int_sb_setup - Setup the sb. 109 + * qed_int_sb_setup(): Setup the sb. 113 110 * 114 - * @param p_hwfn 115 - * @param p_ptt 116 - * @param sb_info initialized sb_info structure 111 + * @p_hwfn: HW device data. 112 + * @p_ptt: P_ptt. 113 + * @sb_info: Initialized sb_info structure. 114 + * 115 + * Return: Void. 117 116 */ 118 117 void qed_int_sb_setup(struct qed_hwfn *p_hwfn, 119 118 struct qed_ptt *p_ptt, 120 119 struct qed_sb_info *sb_info); 121 120 122 121 /** 123 - * @brief qed_int_sb_release - releases the sb_info structure. 122 + * qed_int_sb_release(): Releases the sb_info structure. 124 123 * 125 - * once the structure is released, it's memory can be freed 124 + * @p_hwfn: HW device data. 125 + * @sb_info: Points to an allocated sb_info structure. 126 + * @sb_id: The sb_id to be used (zero based in driver) 127 + * should never be equal to QED_SP_SB_ID 128 + * (SP Status block). 126 129 * 127 - * @param p_hwfn 128 - * @param sb_info points to an allocated sb_info structure 129 - * @param sb_id the sb_id to be used (zero based in driver) 130 - * should never be equal to QED_SP_SB_ID 131 - * (SP Status block) 130 + * Return: int. 132 131 * 133 - * @return int 132 + * Once the structure is released, it's memory can be freed. 134 133 */ 135 134 int qed_int_sb_release(struct qed_hwfn *p_hwfn, 136 135 struct qed_sb_info *sb_info, 137 136 u16 sb_id); 138 137 139 138 /** 140 - * @brief qed_int_sp_dpc - To be called when an interrupt is received on the 141 - * default status block. 139 + * qed_int_sp_dpc(): To be called when an interrupt is received on the 140 + * default status block. 142 141 * 143 - * @param p_hwfn - pointer to hwfn 142 + * @t: Tasklet. 143 + * 144 + * Return: Void. 144 145 * 145 146 */ 146 147 void qed_int_sp_dpc(struct tasklet_struct *t); 147 148 148 149 /** 149 - * @brief qed_int_get_num_sbs - get the number of status 150 - * blocks configured for this funciton in the igu. 150 + * qed_int_get_num_sbs(): Get the number of status blocks configured 151 + * for this funciton in the igu. 151 152 * 152 - * @param p_hwfn 153 - * @param p_sb_cnt_info 153 + * @p_hwfn: HW device data. 154 + * @p_sb_cnt_info: Pointer to SB count info. 154 155 * 155 - * @return int - number of status blocks configured 156 + * Return: Void. 156 157 */ 157 158 void qed_int_get_num_sbs(struct qed_hwfn *p_hwfn, 158 159 struct qed_sb_cnt_info *p_sb_cnt_info); 159 160 160 161 /** 161 - * @brief qed_int_disable_post_isr_release - performs the cleanup post ISR 162 + * qed_int_disable_post_isr_release(): Performs the cleanup post ISR 162 163 * release. The API need to be called after releasing all slowpath IRQs 163 164 * of the device. 164 165 * 165 - * @param cdev 166 + * @cdev: Qed dev pointer. 166 167 * 168 + * Return: Void. 167 169 */ 168 170 void qed_int_disable_post_isr_release(struct qed_dev *cdev); 169 171 170 172 /** 171 - * @brief qed_int_attn_clr_enable - sets whether the general behavior is 173 + * qed_int_attn_clr_enable: Sets whether the general behavior is 172 174 * preventing attentions from being reasserted, or following the 173 175 * attributes of the specific attention. 174 176 * 175 - * @param cdev 176 - * @param clr_enable 177 + * @cdev: Qed dev pointer. 178 + * @clr_enable: Clear enable 179 + * 180 + * Return: Void. 177 181 * 178 182 */ 179 183 void qed_int_attn_clr_enable(struct qed_dev *cdev, bool clr_enable); 180 184 181 185 /** 182 - * @brief - Doorbell Recovery handler. 186 + * qed_db_rec_handler(): Doorbell Recovery handler. 183 187 * Run doorbell recovery in case of PF overflow (and flush DORQ if 184 188 * needed). 185 189 * 186 - * @param p_hwfn 187 - * @param p_ptt 190 + * @p_hwfn: HW device data. 191 + * @p_ptt: P_ptt. 192 + * 193 + * Return: Int. 188 194 */ 189 195 int qed_db_rec_handler(struct qed_hwfn *p_hwfn, struct qed_ptt *p_ptt); 190 196 ··· 235 223 }; 236 224 237 225 /** 238 - * @brief - Make sure the IGU CAM reflects the resources provided by MFW 226 + * qed_int_igu_reset_cam(): Make sure the IGU CAM reflects the resources 227 + * provided by MFW. 239 228 * 240 - * @param p_hwfn 241 - * @param p_ptt 229 + * @p_hwfn: HW device data. 230 + * @p_ptt: P_ptt. 231 + * 232 + * Return: Void. 242 233 */ 243 234 int qed_int_igu_reset_cam(struct qed_hwfn *p_hwfn, struct qed_ptt *p_ptt); 244 235 245 236 /** 246 - * @brief Translate the weakly-defined client sb-id into an IGU sb-id 237 + * qed_get_igu_sb_id(): Translate the weakly-defined client sb-id into 238 + * an IGU sb-id 247 239 * 248 - * @param p_hwfn 249 - * @param sb_id - user provided sb_id 240 + * @p_hwfn: HW device data. 241 + * @sb_id: user provided sb_id. 250 242 * 251 - * @return an index inside IGU CAM where the SB resides 243 + * Return: An index inside IGU CAM where the SB resides. 252 244 */ 253 245 u16 qed_get_igu_sb_id(struct qed_hwfn *p_hwfn, u16 sb_id); 254 246 255 247 /** 256 - * @brief return a pointer to an unused valid SB 248 + * qed_get_igu_free_sb(): Return a pointer to an unused valid SB 257 249 * 258 - * @param p_hwfn 259 - * @param b_is_pf - true iff we want a SB belonging to a PF 250 + * @p_hwfn: HW device data. 251 + * @b_is_pf: True iff we want a SB belonging to a PF. 260 252 * 261 - * @return point to an igu_block, NULL if none is available 253 + * Return: Point to an igu_block, NULL if none is available. 262 254 */ 263 255 struct qed_igu_block *qed_get_igu_free_sb(struct qed_hwfn *p_hwfn, 264 256 bool b_is_pf); ··· 275 259 void qed_int_igu_init_rt(struct qed_hwfn *p_hwfn); 276 260 277 261 /** 278 - * @brief qed_int_igu_read_cam - Reads the IGU CAM. 262 + * qed_int_igu_read_cam(): Reads the IGU CAM. 279 263 * This function needs to be called during hardware 280 264 * prepare. It reads the info from igu cam to know which 281 265 * status block is the default / base status block etc. 282 266 * 283 - * @param p_hwfn 284 - * @param p_ptt 267 + * @p_hwfn: HW device data. 268 + * @p_ptt: P_ptt. 285 269 * 286 - * @return int 270 + * Return: Int. 287 271 */ 288 272 int qed_int_igu_read_cam(struct qed_hwfn *p_hwfn, 289 273 struct qed_ptt *p_ptt); ··· 291 275 typedef int (*qed_int_comp_cb_t)(struct qed_hwfn *p_hwfn, 292 276 void *cookie); 293 277 /** 294 - * @brief qed_int_register_cb - Register callback func for 295 - * slowhwfn statusblock. 278 + * qed_int_register_cb(): Register callback func for slowhwfn statusblock. 296 279 * 297 - * Every protocol that uses the slowhwfn status block 298 - * should register a callback function that will be called 299 - * once there is an update of the sp status block. 280 + * @p_hwfn: HW device data. 281 + * @comp_cb: Function to be called when there is an 282 + * interrupt on the sp sb 283 + * @cookie: Passed to the callback function 284 + * @sb_idx: (OUT) parameter which gives the chosen index 285 + * for this protocol. 286 + * @p_fw_cons: Pointer to the actual address of the 287 + * consumer for this protocol. 300 288 * 301 - * @param p_hwfn 302 - * @param comp_cb - function to be called when there is an 303 - * interrupt on the sp sb 289 + * Return: Int. 304 290 * 305 - * @param cookie - passed to the callback function 306 - * @param sb_idx - OUT parameter which gives the chosen index 307 - * for this protocol. 308 - * @param p_fw_cons - pointer to the actual address of the 309 - * consumer for this protocol. 310 - * 311 - * @return int 291 + * Every protocol that uses the slowhwfn status block 292 + * should register a callback function that will be called 293 + * once there is an update of the sp status block. 312 294 */ 313 295 int qed_int_register_cb(struct qed_hwfn *p_hwfn, 314 296 qed_int_comp_cb_t comp_cb, ··· 315 301 __le16 **p_fw_cons); 316 302 317 303 /** 318 - * @brief qed_int_unregister_cb - Unregisters callback 319 - * function from sp sb. 320 - * Partner of qed_int_register_cb -> should be called 321 - * when no longer required. 304 + * qed_int_unregister_cb(): Unregisters callback function from sp sb. 322 305 * 323 - * @param p_hwfn 324 - * @param pi 306 + * @p_hwfn: HW device data. 307 + * @pi: Producer Index. 325 308 * 326 - * @return int 309 + * Return: Int. 310 + * 311 + * Partner of qed_int_register_cb -> should be called 312 + * when no longer required. 327 313 */ 328 314 int qed_int_unregister_cb(struct qed_hwfn *p_hwfn, 329 315 u8 pi); 330 316 331 317 /** 332 - * @brief qed_int_get_sp_sb_id - Get the slowhwfn sb id. 318 + * qed_int_get_sp_sb_id(): Get the slowhwfn sb id. 333 319 * 334 - * @param p_hwfn 320 + * @p_hwfn: HW device data. 335 321 * 336 - * @return u16 322 + * Return: u16. 337 323 */ 338 324 u16 qed_int_get_sp_sb_id(struct qed_hwfn *p_hwfn); 339 325 340 326 /** 341 - * @brief Status block cleanup. Should be called for each status 342 - * block that will be used -> both PF / VF 327 + * qed_int_igu_init_pure_rt_single(): Status block cleanup. 328 + * Should be called for each status 329 + * block that will be used -> both PF / VF. 343 330 * 344 - * @param p_hwfn 345 - * @param p_ptt 346 - * @param igu_sb_id - igu status block id 347 - * @param opaque - opaque fid of the sb owner. 348 - * @param b_set - set(1) / clear(0) 331 + * @p_hwfn: HW device data. 332 + * @p_ptt: P_ptt. 333 + * @igu_sb_id: IGU status block id. 334 + * @opaque: Opaque fid of the sb owner. 335 + * @b_set: Set(1) / Clear(0). 336 + * 337 + * Return: Void. 349 338 */ 350 339 void qed_int_igu_init_pure_rt_single(struct qed_hwfn *p_hwfn, 351 340 struct qed_ptt *p_ptt, ··· 357 340 bool b_set); 358 341 359 342 /** 360 - * @brief qed_int_cau_conf - configure cau for a given status 361 - * block 343 + * qed_int_cau_conf_sb(): Configure cau for a given status block. 362 344 * 363 - * @param p_hwfn 364 - * @param ptt 365 - * @param sb_phys 366 - * @param igu_sb_id 367 - * @param vf_number 368 - * @param vf_valid 345 + * @p_hwfn: HW device data. 346 + * @p_ptt: P_ptt. 347 + * @sb_phys: SB Physical. 348 + * @igu_sb_id: IGU status block id. 349 + * @vf_number: VF number 350 + * @vf_valid: VF valid or not. 351 + * 352 + * Return: Void. 369 353 */ 370 354 void qed_int_cau_conf_sb(struct qed_hwfn *p_hwfn, 371 355 struct qed_ptt *p_ptt, ··· 376 358 u8 vf_valid); 377 359 378 360 /** 379 - * @brief qed_int_alloc 361 + * qed_int_alloc(): QED interrupt alloc. 380 362 * 381 - * @param p_hwfn 382 - * @param p_ptt 363 + * @p_hwfn: HW device data. 364 + * @p_ptt: P_ptt. 383 365 * 384 - * @return int 366 + * Return: Int. 385 367 */ 386 368 int qed_int_alloc(struct qed_hwfn *p_hwfn, 387 369 struct qed_ptt *p_ptt); 388 370 389 371 /** 390 - * @brief qed_int_free 372 + * qed_int_free(): QED interrupt free. 391 373 * 392 - * @param p_hwfn 374 + * @p_hwfn: HW device data. 375 + * 376 + * Return: Void. 393 377 */ 394 378 void qed_int_free(struct qed_hwfn *p_hwfn); 395 379 396 380 /** 397 - * @brief qed_int_setup 381 + * qed_int_setup(): QED interrupt setup. 398 382 * 399 - * @param p_hwfn 400 - * @param p_ptt 383 + * @p_hwfn: HW device data. 384 + * @p_ptt: P_ptt. 385 + * 386 + * Return: Void. 401 387 */ 402 388 void qed_int_setup(struct qed_hwfn *p_hwfn, 403 389 struct qed_ptt *p_ptt); 404 390 405 391 /** 406 - * @brief - Enable Interrupt & Attention for hw function 392 + * qed_int_igu_enable(): Enable Interrupt & Attention for hw function. 407 393 * 408 - * @param p_hwfn 409 - * @param p_ptt 410 - * @param int_mode 394 + * @p_hwfn: HW device data. 395 + * @p_ptt: P_ptt. 396 + * @int_mode: Interrut mode 411 397 * 412 - * @return int 398 + * Return: Int. 413 399 */ 414 400 int qed_int_igu_enable(struct qed_hwfn *p_hwfn, struct qed_ptt *p_ptt, 415 401 enum qed_int_mode int_mode); 416 402 417 403 /** 418 - * @brief - Initialize CAU status block entry 404 + * qed_init_cau_sb_entry(): Initialize CAU status block entry. 419 405 * 420 - * @param p_hwfn 421 - * @param p_sb_entry 422 - * @param pf_id 423 - * @param vf_number 424 - * @param vf_valid 406 + * @p_hwfn: HW device data. 407 + * @p_sb_entry: Pointer SB entry. 408 + * @pf_id: PF number 409 + * @vf_number: VF number 410 + * @vf_valid: VF valid or not. 411 + * 412 + * Return: Void. 425 413 */ 426 414 void qed_init_cau_sb_entry(struct qed_hwfn *p_hwfn, 427 415 struct cau_sb_entry *p_sb_entry,
+6 -3
drivers/net/ethernet/qlogic/qed/qed_iscsi.h
··· 34 34 void qed_iscsi_free(struct qed_hwfn *p_hwfn); 35 35 36 36 /** 37 - * @brief - Fills provided statistics struct with statistics. 37 + * qed_get_protocol_stats_iscsi(): Fills provided statistics 38 + * struct with statistics. 38 39 * 39 - * @param cdev 40 - * @param stats - points to struct that will be filled with statistics. 40 + * @cdev: Qed dev pointer. 41 + * @stats: Points to struct that will be filled with statistics. 42 + * 43 + * Return: Void. 41 44 */ 42 45 void qed_get_protocol_stats_iscsi(struct qed_dev *cdev, 43 46 struct qed_mcp_iscsi_stats *stats);
+68 -66
drivers/net/ethernet/qlogic/qed/qed_l2.h
··· 92 92 }; 93 93 94 94 /** 95 - * @brief qed_eth_rx_queue_stop - This ramrod closes an Rx queue 95 + * qed_eth_rx_queue_stop(): This ramrod closes an Rx queue. 96 96 * 97 - * @param p_hwfn 98 - * @param p_rxq Handler of queue to close 99 - * @param eq_completion_only If True completion will be on 100 - * EQe, if False completion will be 101 - * on EQe if p_hwfn opaque 102 - * different from the RXQ opaque 103 - * otherwise on CQe. 104 - * @param cqe_completion If True completion will be 105 - * receive on CQe. 106 - * @return int 97 + * @p_hwfn: HW device data. 98 + * @p_rxq: Handler of queue to close 99 + * @eq_completion_only: If True completion will be on 100 + * EQe, if False completion will be 101 + * on EQe if p_hwfn opaque 102 + * different from the RXQ opaque 103 + * otherwise on CQe. 104 + * @cqe_completion: If True completion will be receive on CQe. 105 + * 106 + * Return: Int. 107 107 */ 108 108 int 109 109 qed_eth_rx_queue_stop(struct qed_hwfn *p_hwfn, ··· 111 111 bool eq_completion_only, bool cqe_completion); 112 112 113 113 /** 114 - * @brief qed_eth_tx_queue_stop - closes a Tx queue 114 + * qed_eth_tx_queue_stop(): Closes a Tx queue. 115 115 * 116 - * @param p_hwfn 117 - * @param p_txq - handle to Tx queue needed to be closed 116 + * @p_hwfn: HW device data. 117 + * @p_txq: handle to Tx queue needed to be closed. 118 118 * 119 - * @return int 119 + * Return: Int. 120 120 */ 121 121 int qed_eth_tx_queue_stop(struct qed_hwfn *p_hwfn, void *p_txq); 122 122 ··· 205 205 struct qed_spq_comp_cb *p_comp_data); 206 206 207 207 /** 208 - * @brief qed_sp_vport_stop - 208 + * qed_sp_vport_stop: This ramrod closes a VPort after all its 209 + * RX and TX queues are terminated. 210 + * An Assert is generated if any queues are left open. 209 211 * 210 - * This ramrod closes a VPort after all its RX and TX queues are terminated. 211 - * An Assert is generated if any queues are left open. 212 + * @p_hwfn: HW device data. 213 + * @opaque_fid: Opaque FID 214 + * @vport_id: VPort ID. 212 215 * 213 - * @param p_hwfn 214 - * @param opaque_fid 215 - * @param vport_id VPort ID 216 - * 217 - * @return int 216 + * Return: Int. 218 217 */ 219 218 int qed_sp_vport_stop(struct qed_hwfn *p_hwfn, u16 opaque_fid, u8 vport_id); 220 219 ··· 224 225 struct qed_spq_comp_cb *p_comp_data); 225 226 226 227 /** 227 - * @brief qed_sp_rx_eth_queues_update - 228 + * qed_sp_eth_rx_queues_update(): This ramrod updates an RX queue. 229 + * It is used for setting the active state 230 + * of the queue and updating the TPA and 231 + * SGE parameters. 232 + * @p_hwfn: HW device data. 233 + * @pp_rxq_handlers: An array of queue handlers to be updated. 234 + * @num_rxqs: number of queues to update. 235 + * @complete_cqe_flg: Post completion to the CQE Ring if set. 236 + * @complete_event_flg: Post completion to the Event Ring if set. 237 + * @comp_mode: Comp mode. 238 + * @p_comp_data: Pointer Comp data. 228 239 * 229 - * This ramrod updates an RX queue. It is used for setting the active state 230 - * of the queue and updating the TPA and SGE parameters. 240 + * Return: Int. 231 241 * 232 - * @note At the moment - only used by non-linux VFs. 233 - * 234 - * @param p_hwfn 235 - * @param pp_rxq_handlers An array of queue handlers to be updated. 236 - * @param num_rxqs number of queues to update. 237 - * @param complete_cqe_flg Post completion to the CQE Ring if set 238 - * @param complete_event_flg Post completion to the Event Ring if set 239 - * @param comp_mode 240 - * @param p_comp_data 241 - * 242 - * @return int 242 + * Note At the moment - only used by non-linux VFs. 243 243 */ 244 244 245 245 int ··· 255 257 void qed_reset_vport_stats(struct qed_dev *cdev); 256 258 257 259 /** 258 - * *@brief qed_arfs_mode_configure - 260 + * qed_arfs_mode_configure(): Enable or disable rfs mode. 261 + * It must accept at least one of tcp or udp true 262 + * and at least one of ipv4 or ipv6 true to enable 263 + * rfs mode. 259 264 * 260 - **Enable or disable rfs mode. It must accept atleast one of tcp or udp true 261 - **and atleast one of ipv4 or ipv6 true to enable rfs mode. 265 + * @p_hwfn: HW device data. 266 + * @p_ptt: P_ptt. 267 + * @p_cfg_params: arfs mode configuration parameters. 262 268 * 263 - **@param p_hwfn 264 - **@param p_ptt 265 - **@param p_cfg_params - arfs mode configuration parameters. 266 - * 269 + * Return. Void. 267 270 */ 268 271 void qed_arfs_mode_configure(struct qed_hwfn *p_hwfn, 269 272 struct qed_ptt *p_ptt, 270 273 struct qed_arfs_config_params *p_cfg_params); 271 274 272 275 /** 273 - * @brief - qed_configure_rfs_ntuple_filter 276 + * qed_configure_rfs_ntuple_filter(): This ramrod should be used to add 277 + * or remove arfs hw filter 274 278 * 275 - * This ramrod should be used to add or remove arfs hw filter 279 + * @p_hwfn: HW device data. 280 + * @p_cb: Used for QED_SPQ_MODE_CB,where client would initialize 281 + * it with cookie and callback function address, if not 282 + * using this mode then client must pass NULL. 283 + * @p_params: Pointer to params. 276 284 * 277 - * @params p_hwfn 278 - * @params p_cb - Used for QED_SPQ_MODE_CB,where client would initialize 279 - * it with cookie and callback function address, if not 280 - * using this mode then client must pass NULL. 281 - * @params p_params 285 + * Return: Void. 282 286 */ 283 287 int 284 288 qed_configure_rfs_ntuple_filter(struct qed_hwfn *p_hwfn, ··· 374 374 struct qed_sp_vport_start_params *p_params); 375 375 376 376 /** 377 - * @brief - Starts an Rx queue, when queue_cid is already prepared 377 + * qed_eth_rxq_start_ramrod(): Starts an Rx queue, when queue_cid is 378 + * already prepared 378 379 * 379 - * @param p_hwfn 380 - * @param p_cid 381 - * @param bd_max_bytes 382 - * @param bd_chain_phys_addr 383 - * @param cqe_pbl_addr 384 - * @param cqe_pbl_size 380 + * @p_hwfn: HW device data. 381 + * @p_cid: Pointer CID. 382 + * @bd_max_bytes: Max bytes. 383 + * @bd_chain_phys_addr: Chain physcial address. 384 + * @cqe_pbl_addr: PBL address. 385 + * @cqe_pbl_size: PBL size. 385 386 * 386 - * @return int 387 + * Return: Int. 387 388 */ 388 389 int 389 390 qed_eth_rxq_start_ramrod(struct qed_hwfn *p_hwfn, ··· 394 393 dma_addr_t cqe_pbl_addr, u16 cqe_pbl_size); 395 394 396 395 /** 397 - * @brief - Starts a Tx queue, where queue_cid is already prepared 396 + * qed_eth_txq_start_ramrod(): Starts a Tx queue, where queue_cid is 397 + * already prepared 398 398 * 399 - * @param p_hwfn 400 - * @param p_cid 401 - * @param pbl_addr 402 - * @param pbl_size 403 - * @param p_pq_params - parameters for choosing the PQ for this Tx queue 399 + * @p_hwfn: HW device data. 400 + * @p_cid: Pointer CID. 401 + * @pbl_addr: PBL address. 402 + * @pbl_size: PBL size. 403 + * @pq_id: Parameters for choosing the PQ for this Tx queue. 404 404 * 405 - * @return int 405 + * Return: Int. 406 406 */ 407 407 int 408 408 qed_eth_txq_start_ramrod(struct qed_hwfn *p_hwfn,
+66 -64
drivers/net/ethernet/qlogic/qed/qed_ll2.h
··· 119 119 extern const struct qed_ll2_ops qed_ll2_ops_pass; 120 120 121 121 /** 122 - * @brief qed_ll2_acquire_connection - allocate resources, 123 - * starts rx & tx (if relevant) queues pair. Provides 124 - * connecion handler as output parameter. 122 + * qed_ll2_acquire_connection(): Allocate resources, 123 + * starts rx & tx (if relevant) queues pair. 124 + * Provides connecion handler as output 125 + * parameter. 125 126 * 127 + * @cxt: Pointer to the hw-function [opaque to some]. 128 + * @data: Describes connection parameters. 126 129 * 127 - * @param cxt - pointer to the hw-function [opaque to some] 128 - * @param data - describes connection parameters 129 - * @return int 130 + * Return: Int. 130 131 */ 131 132 int qed_ll2_acquire_connection(void *cxt, struct qed_ll2_acquire_data *data); 132 133 133 134 /** 134 - * @brief qed_ll2_establish_connection - start previously 135 - * allocated LL2 queues pair 135 + * qed_ll2_establish_connection(): start previously allocated LL2 queues pair 136 136 * 137 - * @param cxt - pointer to the hw-function [opaque to some] 138 - * @param p_ptt 139 - * @param connection_handle LL2 connection's handle obtained from 140 - * qed_ll2_require_connection 137 + * @cxt: Pointer to the hw-function [opaque to some]. 138 + * @connection_handle: LL2 connection's handle obtained from 139 + * qed_ll2_require_connection. 141 140 * 142 - * @return 0 on success, failure otherwise 141 + * Return: 0 on success, failure otherwise. 143 142 */ 144 143 int qed_ll2_establish_connection(void *cxt, u8 connection_handle); 145 144 146 145 /** 147 - * @brief qed_ll2_post_rx_buffers - submit buffers to LL2 Rx queue. 146 + * qed_ll2_post_rx_buffer(): Submit buffers to LL2 Rx queue. 148 147 * 149 - * @param cxt - pointer to the hw-function [opaque to some] 150 - * @param connection_handle LL2 connection's handle obtained from 151 - * qed_ll2_require_connection 152 - * @param addr rx (physical address) buffers to submit 153 - * @param cookie 154 - * @param notify_fw produce corresponding Rx BD immediately 148 + * @cxt: Pointer to the hw-function [opaque to some]. 149 + * @connection_handle: LL2 connection's handle obtained from 150 + * qed_ll2_require_connection. 151 + * @addr: RX (physical address) buffers to submit. 152 + * @buf_len: Buffer Len. 153 + * @cookie: Cookie. 154 + * @notify_fw: Produce corresponding Rx BD immediately. 155 155 * 156 - * @return 0 on success, failure otherwise 156 + * Return: 0 on success, failure otherwise. 157 157 */ 158 158 int qed_ll2_post_rx_buffer(void *cxt, 159 159 u8 connection_handle, ··· 161 161 u16 buf_len, void *cookie, u8 notify_fw); 162 162 163 163 /** 164 - * @brief qed_ll2_prepare_tx_packet - request for start Tx BD 165 - * to prepare Tx packet submission to FW. 164 + * qed_ll2_prepare_tx_packet(): Request for start Tx BD 165 + * to prepare Tx packet submission to FW. 166 166 * 167 - * @param cxt - pointer to the hw-function [opaque to some] 168 - * @param connection_handle 169 - * @param pkt - info regarding the tx packet 170 - * @param notify_fw - issue doorbell to fw for this packet 167 + * @cxt: Pointer to the hw-function [opaque to some]. 168 + * @connection_handle: Connection handle. 169 + * @pkt: Info regarding the tx packet. 170 + * @notify_fw: Issue doorbell to fw for this packet. 171 171 * 172 - * @return 0 on success, failure otherwise 172 + * Return: 0 on success, failure otherwise. 173 173 */ 174 174 int qed_ll2_prepare_tx_packet(void *cxt, 175 175 u8 connection_handle, ··· 177 177 bool notify_fw); 178 178 179 179 /** 180 - * @brief qed_ll2_release_connection - releases resources 181 - * allocated for LL2 connection 180 + * qed_ll2_release_connection(): Releases resources allocated for LL2 181 + * connection. 182 182 * 183 - * @param cxt - pointer to the hw-function [opaque to some] 184 - * @param connection_handle LL2 connection's handle obtained from 185 - * qed_ll2_require_connection 183 + * @cxt: Pointer to the hw-function [opaque to some]. 184 + * @connection_handle: LL2 connection's handle obtained from 185 + * qed_ll2_require_connection. 186 + * 187 + * Return: Void. 186 188 */ 187 189 void qed_ll2_release_connection(void *cxt, u8 connection_handle); 188 190 189 191 /** 190 - * @brief qed_ll2_set_fragment_of_tx_packet - provides fragments to fill 191 - * Tx BD of BDs requested by 192 - * qed_ll2_prepare_tx_packet 192 + * qed_ll2_set_fragment_of_tx_packet(): Provides fragments to fill 193 + * Tx BD of BDs requested by 194 + * qed_ll2_prepare_tx_packet 193 195 * 194 - * @param cxt - pointer to the hw-function [opaque to some] 195 - * @param connection_handle LL2 connection's handle 196 - * obtained from 197 - * qed_ll2_require_connection 198 - * @param addr 199 - * @param nbytes 196 + * @cxt: Pointer to the hw-function [opaque to some]. 197 + * @connection_handle: LL2 connection's handle obtained from 198 + * qed_ll2_require_connection. 199 + * @addr: Address. 200 + * @nbytes: Number of bytes. 200 201 * 201 - * @return 0 on success, failure otherwise 202 + * Return: 0 on success, failure otherwise. 202 203 */ 203 204 int qed_ll2_set_fragment_of_tx_packet(void *cxt, 204 205 u8 connection_handle, 205 206 dma_addr_t addr, u16 nbytes); 206 207 207 208 /** 208 - * @brief qed_ll2_terminate_connection - stops Tx/Rx queues 209 + * qed_ll2_terminate_connection(): Stops Tx/Rx queues 209 210 * 211 + * @cxt: Pointer to the hw-function [opaque to some]. 212 + * @connection_handle: LL2 connection's handle obtained from 213 + * qed_ll2_require_connection. 210 214 * 211 - * @param cxt - pointer to the hw-function [opaque to some] 212 - * @param connection_handle LL2 connection's handle 213 - * obtained from 214 - * qed_ll2_require_connection 215 - * 216 - * @return 0 on success, failure otherwise 215 + * Return: 0 on success, failure otherwise. 217 216 */ 218 217 int qed_ll2_terminate_connection(void *cxt, u8 connection_handle); 219 218 220 219 /** 221 - * @brief qed_ll2_get_stats - get LL2 queue's statistics 220 + * qed_ll2_get_stats(): Get LL2 queue's statistics 222 221 * 222 + * @cxt: Pointer to the hw-function [opaque to some]. 223 + * @connection_handle: LL2 connection's handle obtained from 224 + * qed_ll2_require_connection. 225 + * @p_stats: Pointer Status. 223 226 * 224 - * @param cxt - pointer to the hw-function [opaque to some] 225 - * @param connection_handle LL2 connection's handle obtained from 226 - * qed_ll2_require_connection 227 - * @param p_stats 228 - * 229 - * @return 0 on success, failure otherwise 227 + * Return: 0 on success, failure otherwise. 230 228 */ 231 229 int qed_ll2_get_stats(void *cxt, 232 230 u8 connection_handle, struct qed_ll2_stats *p_stats); 233 231 234 232 /** 235 - * @brief qed_ll2_alloc - Allocates LL2 connections set 233 + * qed_ll2_alloc(): Allocates LL2 connections set. 236 234 * 237 - * @param p_hwfn 235 + * @p_hwfn: HW device data. 238 236 * 239 - * @return int 237 + * Return: Int. 240 238 */ 241 239 int qed_ll2_alloc(struct qed_hwfn *p_hwfn); 242 240 243 241 /** 244 - * @brief qed_ll2_setup - Inits LL2 connections set 242 + * qed_ll2_setup(): Inits LL2 connections set. 245 243 * 246 - * @param p_hwfn 244 + * @p_hwfn: HW device data. 245 + * 246 + * Return: Void. 247 247 * 248 248 */ 249 249 void qed_ll2_setup(struct qed_hwfn *p_hwfn); 250 250 251 251 /** 252 - * @brief qed_ll2_free - Releases LL2 connections set 252 + * qed_ll2_free(): Releases LL2 connections set 253 253 * 254 - * @param p_hwfn 254 + * @p_hwfn: HW device data. 255 + * 256 + * Return: Void. 255 257 * 256 258 */ 257 259 void qed_ll2_free(struct qed_hwfn *p_hwfn);
+399 -358
drivers/net/ethernet/qlogic/qed/qed_mcp.h
··· 266 266 #define QED_NVM_CFG_OPTION_ENTITY_SEL BIT(4) 267 267 268 268 /** 269 - * @brief - returns the link params of the hw function 269 + * qed_mcp_get_link_params(): Returns the link params of the hw function. 270 270 * 271 - * @param p_hwfn 271 + * @p_hwfn: HW device data. 272 272 * 273 - * @returns pointer to link params 273 + * Returns: Pointer to link params. 274 274 */ 275 - struct qed_mcp_link_params *qed_mcp_get_link_params(struct qed_hwfn *); 275 + struct qed_mcp_link_params *qed_mcp_get_link_params(struct qed_hwfn *p_hwfn); 276 276 277 277 /** 278 - * @brief - return the link state of the hw function 278 + * qed_mcp_get_link_state(): Return the link state of the hw function. 279 279 * 280 - * @param p_hwfn 280 + * @p_hwfn: HW device data. 281 281 * 282 - * @returns pointer to link state 282 + * Returns: Pointer to link state. 283 283 */ 284 - struct qed_mcp_link_state *qed_mcp_get_link_state(struct qed_hwfn *); 284 + struct qed_mcp_link_state *qed_mcp_get_link_state(struct qed_hwfn *p_hwfn); 285 285 286 286 /** 287 - * @brief - return the link capabilities of the hw function 287 + * qed_mcp_get_link_capabilities(): Return the link capabilities of the 288 + * hw function. 288 289 * 289 - * @param p_hwfn 290 + * @p_hwfn: HW device data. 290 291 * 291 - * @returns pointer to link capabilities 292 + * Returns: Pointer to link capabilities. 292 293 */ 293 294 struct qed_mcp_link_capabilities 294 295 *qed_mcp_get_link_capabilities(struct qed_hwfn *p_hwfn); 295 296 296 297 /** 297 - * @brief Request the MFW to set the the link according to 'link_input'. 298 + * qed_mcp_set_link(): Request the MFW to set the link according 299 + * to 'link_input'. 298 300 * 299 - * @param p_hwfn 300 - * @param p_ptt 301 - * @param b_up - raise link if `true'. Reset link if `false'. 301 + * @p_hwfn: HW device data. 302 + * @p_ptt: P_ptt. 303 + * @b_up: Raise link if `true'. Reset link if `false'. 302 304 * 303 - * @return int 305 + * Return: Int. 304 306 */ 305 307 int qed_mcp_set_link(struct qed_hwfn *p_hwfn, 306 308 struct qed_ptt *p_ptt, 307 309 bool b_up); 308 310 309 311 /** 310 - * @brief Get the management firmware version value 312 + * qed_mcp_get_mfw_ver(): Get the management firmware version value. 311 313 * 312 - * @param p_hwfn 313 - * @param p_ptt 314 - * @param p_mfw_ver - mfw version value 315 - * @param p_running_bundle_id - image id in nvram; Optional. 314 + * @p_hwfn: HW device data. 315 + * @p_ptt: P_ptt. 316 + * @p_mfw_ver: MFW version value. 317 + * @p_running_bundle_id: Image id in nvram; Optional. 316 318 * 317 - * @return int - 0 - operation was successful. 319 + * Return: Int - 0 - operation was successful. 318 320 */ 319 321 int qed_mcp_get_mfw_ver(struct qed_hwfn *p_hwfn, 320 322 struct qed_ptt *p_ptt, 321 323 u32 *p_mfw_ver, u32 *p_running_bundle_id); 322 324 323 325 /** 324 - * @brief Get the MBI version value 326 + * qed_mcp_get_mbi_ver(): Get the MBI version value. 325 327 * 326 - * @param p_hwfn 327 - * @param p_ptt 328 - * @param p_mbi_ver - A pointer to a variable to be filled with the MBI version. 328 + * @p_hwfn: HW device data. 329 + * @p_ptt: P_ptt. 330 + * @p_mbi_ver: A pointer to a variable to be filled with the MBI version. 329 331 * 330 - * @return int - 0 - operation was successful. 332 + * Return: Int - 0 - operation was successful. 331 333 */ 332 334 int qed_mcp_get_mbi_ver(struct qed_hwfn *p_hwfn, 333 335 struct qed_ptt *p_ptt, u32 *p_mbi_ver); 334 336 335 337 /** 336 - * @brief Get media type value of the port. 338 + * qed_mcp_get_media_type(): Get media type value of the port. 337 339 * 338 - * @param cdev - qed dev pointer 339 - * @param p_ptt 340 - * @param mfw_ver - media type value 340 + * @p_hwfn: HW device data. 341 + * @p_ptt: P_ptt. 342 + * @media_type: Media type value 341 343 * 342 - * @return int - 343 - * 0 - Operation was successul. 344 - * -EBUSY - Operation failed 344 + * Return: Int - 0 - Operation was successul. 345 + * -EBUSY - Operation failed 345 346 */ 346 347 int qed_mcp_get_media_type(struct qed_hwfn *p_hwfn, 347 348 struct qed_ptt *p_ptt, u32 *media_type); 348 349 349 350 /** 350 - * @brief Get transceiver data of the port. 351 + * qed_mcp_get_transceiver_data(): Get transceiver data of the port. 351 352 * 352 - * @param cdev - qed dev pointer 353 - * @param p_ptt 354 - * @param p_transceiver_state - transceiver state. 355 - * @param p_transceiver_type - media type value 353 + * @p_hwfn: HW device data. 354 + * @p_ptt: P_ptt. 355 + * @p_transceiver_state: Transceiver state. 356 + * @p_tranceiver_type: Media type value. 356 357 * 357 - * @return int - 358 - * 0 - Operation was successful. 359 - * -EBUSY - Operation failed 358 + * Return: Int - 0 - Operation was successul. 359 + * -EBUSY - Operation failed 360 360 */ 361 361 int qed_mcp_get_transceiver_data(struct qed_hwfn *p_hwfn, 362 362 struct qed_ptt *p_ptt, ··· 364 364 u32 *p_tranceiver_type); 365 365 366 366 /** 367 - * @brief Get transceiver supported speed mask. 367 + * qed_mcp_trans_speed_mask(): Get transceiver supported speed mask. 368 368 * 369 - * @param cdev - qed dev pointer 370 - * @param p_ptt 371 - * @param p_speed_mask - Bit mask of all supported speeds. 369 + * @p_hwfn: HW device data. 370 + * @p_ptt: P_ptt. 371 + * @p_speed_mask: Bit mask of all supported speeds. 372 372 * 373 - * @return int - 374 - * 0 - Operation was successful. 375 - * -EBUSY - Operation failed 373 + * Return: Int - 0 - Operation was successul. 374 + * -EBUSY - Operation failed 376 375 */ 377 376 378 377 int qed_mcp_trans_speed_mask(struct qed_hwfn *p_hwfn, 379 378 struct qed_ptt *p_ptt, u32 *p_speed_mask); 380 379 381 380 /** 382 - * @brief Get board configuration. 381 + * qed_mcp_get_board_config(): Get board configuration. 383 382 * 384 - * @param cdev - qed dev pointer 385 - * @param p_ptt 386 - * @param p_board_config - Board config. 383 + * @p_hwfn: HW device data. 384 + * @p_ptt: P_ptt. 385 + * @p_board_config: Board config. 387 386 * 388 - * @return int - 389 - * 0 - Operation was successful. 390 - * -EBUSY - Operation failed 387 + * Return: Int - 0 - Operation was successul. 388 + * -EBUSY - Operation failed 391 389 */ 392 390 int qed_mcp_get_board_config(struct qed_hwfn *p_hwfn, 393 391 struct qed_ptt *p_ptt, u32 *p_board_config); 394 392 395 393 /** 396 - * @brief General function for sending commands to the MCP 397 - * mailbox. It acquire mutex lock for the entire 398 - * operation, from sending the request until the MCP 399 - * response. Waiting for MCP response will be checked up 400 - * to 5 seconds every 5ms. 394 + * qed_mcp_cmd(): General function for sending commands to the MCP 395 + * mailbox. It acquire mutex lock for the entire 396 + * operation, from sending the request until the MCP 397 + * response. Waiting for MCP response will be checked up 398 + * to 5 seconds every 5ms. 401 399 * 402 - * @param p_hwfn - hw function 403 - * @param p_ptt - PTT required for register access 404 - * @param cmd - command to be sent to the MCP. 405 - * @param param - Optional param 406 - * @param o_mcp_resp - The MCP response code (exclude sequence). 407 - * @param o_mcp_param- Optional parameter provided by the MCP 400 + * @p_hwfn: HW device data. 401 + * @p_ptt: PTT required for register access. 402 + * @cmd: command to be sent to the MCP. 403 + * @param: Optional param 404 + * @o_mcp_resp: The MCP response code (exclude sequence). 405 + * @o_mcp_param: Optional parameter provided by the MCP 408 406 * response 409 - * @return int - 0 - operation 410 - * was successul. 407 + * 408 + * Return: Int - 0 - Operation was successul. 411 409 */ 412 410 int qed_mcp_cmd(struct qed_hwfn *p_hwfn, 413 411 struct qed_ptt *p_ptt, ··· 415 417 u32 *o_mcp_param); 416 418 417 419 /** 418 - * @brief - drains the nig, allowing completion to pass in case of pauses. 419 - * (Should be called only from sleepable context) 420 + * qed_mcp_drain(): drains the nig, allowing completion to pass in 421 + * case of pauses. 422 + * (Should be called only from sleepable context) 420 423 * 421 - * @param p_hwfn 422 - * @param p_ptt 424 + * @p_hwfn: HW device data. 425 + * @p_ptt: PTT required for register access. 426 + * 427 + * Return: Int. 423 428 */ 424 429 int qed_mcp_drain(struct qed_hwfn *p_hwfn, 425 430 struct qed_ptt *p_ptt); 426 431 427 432 /** 428 - * @brief Get the flash size value 433 + * qed_mcp_get_flash_size(): Get the flash size value. 429 434 * 430 - * @param p_hwfn 431 - * @param p_ptt 432 - * @param p_flash_size - flash size in bytes to be filled. 435 + * @p_hwfn: HW device data. 436 + * @p_ptt: PTT required for register access. 437 + * @p_flash_size: Flash size in bytes to be filled. 433 438 * 434 - * @return int - 0 - operation was successul. 439 + * Return: Int - 0 - Operation was successul. 435 440 */ 436 441 int qed_mcp_get_flash_size(struct qed_hwfn *p_hwfn, 437 442 struct qed_ptt *p_ptt, 438 443 u32 *p_flash_size); 439 444 440 445 /** 441 - * @brief Send driver version to MFW 446 + * qed_mcp_send_drv_version(): Send driver version to MFW. 442 447 * 443 - * @param p_hwfn 444 - * @param p_ptt 445 - * @param version - Version value 446 - * @param name - Protocol driver name 448 + * @p_hwfn: HW device data. 449 + * @p_ptt: PTT required for register access. 450 + * @p_ver: Version value. 447 451 * 448 - * @return int - 0 - operation was successul. 452 + * Return: Int - 0 - Operation was successul. 449 453 */ 450 454 int 451 455 qed_mcp_send_drv_version(struct qed_hwfn *p_hwfn, ··· 455 455 struct qed_mcp_drv_version *p_ver); 456 456 457 457 /** 458 - * @brief Read the MFW process kill counter 458 + * qed_get_process_kill_counter(): Read the MFW process kill counter. 459 459 * 460 - * @param p_hwfn 461 - * @param p_ptt 460 + * @p_hwfn: HW device data. 461 + * @p_ptt: PTT required for register access. 462 462 * 463 - * @return u32 463 + * Return: u32. 464 464 */ 465 465 u32 qed_get_process_kill_counter(struct qed_hwfn *p_hwfn, 466 466 struct qed_ptt *p_ptt); 467 467 468 468 /** 469 - * @brief Trigger a recovery process 469 + * qed_start_recovery_process(): Trigger a recovery process. 470 470 * 471 - * @param p_hwfn 472 - * @param p_ptt 471 + * @p_hwfn: HW device data. 472 + * @p_ptt: PTT required for register access. 473 473 * 474 - * @return int 474 + * Return: Int. 475 475 */ 476 476 int qed_start_recovery_process(struct qed_hwfn *p_hwfn, struct qed_ptt *p_ptt); 477 477 478 478 /** 479 - * @brief A recovery handler must call this function as its first step. 480 - * It is assumed that the handler is not run from an interrupt context. 479 + * qed_recovery_prolog(): A recovery handler must call this function 480 + * as its first step. 481 + * It is assumed that the handler is not run from 482 + * an interrupt context. 481 483 * 482 - * @param cdev 483 - * @param p_ptt 484 + * @cdev: Qed dev pointer. 484 485 * 485 - * @return int 486 + * Return: int. 486 487 */ 487 488 int qed_recovery_prolog(struct qed_dev *cdev); 488 489 489 490 /** 490 - * @brief Notify MFW about the change in base device properties 491 + * qed_mcp_ov_update_current_config(): Notify MFW about the change in base 492 + * device properties 491 493 * 492 - * @param p_hwfn 493 - * @param p_ptt 494 - * @param client - qed client type 494 + * @p_hwfn: HW device data. 495 + * @p_ptt: P_ptt. 496 + * @client: Qed client type. 495 497 * 496 - * @return int - 0 - operation was successful. 498 + * Return: Int - 0 - Operation was successul. 497 499 */ 498 500 int qed_mcp_ov_update_current_config(struct qed_hwfn *p_hwfn, 499 501 struct qed_ptt *p_ptt, 500 502 enum qed_ov_client client); 501 503 502 504 /** 503 - * @brief Notify MFW about the driver state 505 + * qed_mcp_ov_update_driver_state(): Notify MFW about the driver state. 504 506 * 505 - * @param p_hwfn 506 - * @param p_ptt 507 - * @param drv_state - Driver state 507 + * @p_hwfn: HW device data. 508 + * @p_ptt: P_ptt. 509 + * @drv_state: Driver state. 508 510 * 509 - * @return int - 0 - operation was successful. 511 + * Return: Int - 0 - Operation was successul. 510 512 */ 511 513 int qed_mcp_ov_update_driver_state(struct qed_hwfn *p_hwfn, 512 514 struct qed_ptt *p_ptt, 513 515 enum qed_ov_driver_state drv_state); 514 516 515 517 /** 516 - * @brief Send MTU size to MFW 518 + * qed_mcp_ov_update_mtu(): Send MTU size to MFW. 517 519 * 518 - * @param p_hwfn 519 - * @param p_ptt 520 - * @param mtu - MTU size 520 + * @p_hwfn: HW device data. 521 + * @p_ptt: P_ptt. 522 + * @mtu: MTU size. 521 523 * 522 - * @return int - 0 - operation was successful. 524 + * Return: Int - 0 - Operation was successul. 523 525 */ 524 526 int qed_mcp_ov_update_mtu(struct qed_hwfn *p_hwfn, 525 527 struct qed_ptt *p_ptt, u16 mtu); 526 528 527 529 /** 528 - * @brief Send MAC address to MFW 530 + * qed_mcp_ov_update_mac(): Send MAC address to MFW. 529 531 * 530 - * @param p_hwfn 531 - * @param p_ptt 532 - * @param mac - MAC address 532 + * @p_hwfn: HW device data. 533 + * @p_ptt: P_ptt. 534 + * @mac: MAC address. 533 535 * 534 - * @return int - 0 - operation was successful. 536 + * Return: Int - 0 - Operation was successul. 535 537 */ 536 538 int qed_mcp_ov_update_mac(struct qed_hwfn *p_hwfn, 537 539 struct qed_ptt *p_ptt, u8 *mac); 538 540 539 541 /** 540 - * @brief Send WOL mode to MFW 542 + * qed_mcp_ov_update_wol(): Send WOL mode to MFW. 541 543 * 542 - * @param p_hwfn 543 - * @param p_ptt 544 - * @param wol - WOL mode 544 + * @p_hwfn: HW device data. 545 + * @p_ptt: P_ptt. 546 + * @wol: WOL mode. 545 547 * 546 - * @return int - 0 - operation was successful. 548 + * Return: Int - 0 - Operation was successul. 547 549 */ 548 550 int qed_mcp_ov_update_wol(struct qed_hwfn *p_hwfn, 549 551 struct qed_ptt *p_ptt, 550 552 enum qed_ov_wol wol); 551 553 552 554 /** 553 - * @brief Set LED status 555 + * qed_mcp_set_led(): Set LED status. 554 556 * 555 - * @param p_hwfn 556 - * @param p_ptt 557 - * @param mode - LED mode 557 + * @p_hwfn: HW device data. 558 + * @p_ptt: P_ptt. 559 + * @mode: LED mode. 558 560 * 559 - * @return int - 0 - operation was successful. 561 + * Return: Int - 0 - Operation was successul. 560 562 */ 561 563 int qed_mcp_set_led(struct qed_hwfn *p_hwfn, 562 564 struct qed_ptt *p_ptt, 563 565 enum qed_led_mode mode); 564 566 565 567 /** 566 - * @brief Read from nvm 568 + * qed_mcp_nvm_read(): Read from NVM. 567 569 * 568 - * @param cdev 569 - * @param addr - nvm offset 570 - * @param p_buf - nvm read buffer 571 - * @param len - buffer len 570 + * @cdev: Qed dev pointer. 571 + * @addr: NVM offset. 572 + * @p_buf: NVM read buffer. 573 + * @len: Buffer len. 572 574 * 573 - * @return int - 0 - operation was successful. 575 + * Return: Int - 0 - Operation was successul. 574 576 */ 575 577 int qed_mcp_nvm_read(struct qed_dev *cdev, u32 addr, u8 *p_buf, u32 len); 576 578 577 579 /** 578 - * @brief Write to nvm 580 + * qed_mcp_nvm_write(): Write to NVM. 579 581 * 580 - * @param cdev 581 - * @param addr - nvm offset 582 - * @param cmd - nvm command 583 - * @param p_buf - nvm write buffer 584 - * @param len - buffer len 582 + * @cdev: Qed dev pointer. 583 + * @addr: NVM offset. 584 + * @cmd: NVM command. 585 + * @p_buf: NVM write buffer. 586 + * @len: Buffer len. 585 587 * 586 - * @return int - 0 - operation was successful. 588 + * Return: Int - 0 - Operation was successul. 587 589 */ 588 590 int qed_mcp_nvm_write(struct qed_dev *cdev, 589 591 u32 cmd, u32 addr, u8 *p_buf, u32 len); 590 592 591 593 /** 592 - * @brief Check latest response 594 + * qed_mcp_nvm_resp(): Check latest response. 593 595 * 594 - * @param cdev 595 - * @param p_buf - nvm write buffer 596 + * @cdev: Qed dev pointer. 597 + * @p_buf: NVM write buffer. 596 598 * 597 - * @return int - 0 - operation was successful. 599 + * Return: Int - 0 - Operation was successul. 598 600 */ 599 601 int qed_mcp_nvm_resp(struct qed_dev *cdev, u8 *p_buf); 600 602 ··· 606 604 }; 607 605 608 606 /** 609 - * @brief Allows reading a whole nvram image 607 + * qed_mcp_get_nvm_image_att(): Allows reading a whole nvram image. 610 608 * 611 - * @param p_hwfn 612 - * @param image_id - image to get attributes for 613 - * @param p_image_att - image attributes structure into which to fill data 609 + * @p_hwfn: HW device data. 610 + * @image_id: Image to get attributes for. 611 + * @p_image_att: Image attributes structure into which to fill data. 614 612 * 615 - * @return int - 0 - operation was successful. 613 + * Return: Int - 0 - Operation was successul. 616 614 */ 617 615 int 618 616 qed_mcp_get_nvm_image_att(struct qed_hwfn *p_hwfn, ··· 620 618 struct qed_nvm_image_att *p_image_att); 621 619 622 620 /** 623 - * @brief Allows reading a whole nvram image 621 + * qed_mcp_get_nvm_image(): Allows reading a whole nvram image. 624 622 * 625 - * @param p_hwfn 626 - * @param image_id - image requested for reading 627 - * @param p_buffer - allocated buffer into which to fill data 628 - * @param buffer_len - length of the allocated buffer. 623 + * @p_hwfn: HW device data. 624 + * @image_id: image requested for reading. 625 + * @p_buffer: allocated buffer into which to fill data. 626 + * @buffer_len: length of the allocated buffer. 629 627 * 630 - * @return 0 iff p_buffer now contains the nvram image. 628 + * Return: 0 if p_buffer now contains the nvram image. 631 629 */ 632 630 int qed_mcp_get_nvm_image(struct qed_hwfn *p_hwfn, 633 631 enum qed_nvm_images image_id, 634 632 u8 *p_buffer, u32 buffer_len); 635 633 636 634 /** 637 - * @brief Bist register test 635 + * qed_mcp_bist_register_test(): Bist register test. 638 636 * 639 - * @param p_hwfn - hw function 640 - * @param p_ptt - PTT required for register access 637 + * @p_hwfn: HW device data. 638 + * @p_ptt: PTT required for register access. 641 639 * 642 - * @return int - 0 - operation was successful. 640 + * Return: Int - 0 - Operation was successul. 643 641 */ 644 642 int qed_mcp_bist_register_test(struct qed_hwfn *p_hwfn, 645 643 struct qed_ptt *p_ptt); 646 644 647 645 /** 648 - * @brief Bist clock test 646 + * qed_mcp_bist_clock_test(): Bist clock test. 649 647 * 650 - * @param p_hwfn - hw function 651 - * @param p_ptt - PTT required for register access 648 + * @p_hwfn: HW device data. 649 + * @p_ptt: PTT required for register access. 652 650 * 653 - * @return int - 0 - operation was successful. 651 + * Return: Int - 0 - Operation was successul. 654 652 */ 655 653 int qed_mcp_bist_clock_test(struct qed_hwfn *p_hwfn, 656 654 struct qed_ptt *p_ptt); 657 655 658 656 /** 659 - * @brief Bist nvm test - get number of images 657 + * qed_mcp_bist_nvm_get_num_images(): Bist nvm test - get number of images. 660 658 * 661 - * @param p_hwfn - hw function 662 - * @param p_ptt - PTT required for register access 663 - * @param num_images - number of images if operation was 659 + * @p_hwfn: HW device data. 660 + * @p_ptt: PTT required for register access. 661 + * @num_images: number of images if operation was 664 662 * successful. 0 if not. 665 663 * 666 - * @return int - 0 - operation was successful. 664 + * Return: Int - 0 - Operation was successul. 667 665 */ 668 666 int qed_mcp_bist_nvm_get_num_images(struct qed_hwfn *p_hwfn, 669 667 struct qed_ptt *p_ptt, 670 668 u32 *num_images); 671 669 672 670 /** 673 - * @brief Bist nvm test - get image attributes by index 671 + * qed_mcp_bist_nvm_get_image_att(): Bist nvm test - get image attributes 672 + * by index. 674 673 * 675 - * @param p_hwfn - hw function 676 - * @param p_ptt - PTT required for register access 677 - * @param p_image_att - Attributes of image 678 - * @param image_index - Index of image to get information for 674 + * @p_hwfn: HW device data. 675 + * @p_ptt: PTT required for register access. 676 + * @p_image_att: Attributes of image. 677 + * @image_index: Index of image to get information for. 679 678 * 680 - * @return int - 0 - operation was successful. 679 + * Return: Int - 0 - Operation was successul. 681 680 */ 682 681 int qed_mcp_bist_nvm_get_image_att(struct qed_hwfn *p_hwfn, 683 682 struct qed_ptt *p_ptt, ··· 686 683 u32 image_index); 687 684 688 685 /** 689 - * @brief - Processes the TLV request from MFW i.e., get the required TLV info 690 - * from the qed client and send it to the MFW. 686 + * qed_mfw_process_tlv_req(): Processes the TLV request from MFW i.e., 687 + * get the required TLV info 688 + * from the qed client and send it to the MFW. 691 689 * 692 - * @param p_hwfn 693 - * @param p_ptt 690 + * @p_hwfn: HW device data. 691 + * @p_ptt: P_ptt. 694 692 * 695 - * @param return 0 upon success. 693 + * Return: 0 upon success. 696 694 */ 697 695 int qed_mfw_process_tlv_req(struct qed_hwfn *p_hwfn, struct qed_ptt *p_ptt); 698 696 699 697 /** 700 - * @brief Send raw debug data to the MFW 698 + * qed_mcp_send_raw_debug_data(): Send raw debug data to the MFW 701 699 * 702 - * @param p_hwfn 703 - * @param p_ptt 704 - * @param p_buf - raw debug data buffer 705 - * @param size - buffer size 700 + * @p_hwfn: HW device data. 701 + * @p_ptt: P_ptt. 702 + * @p_buf: raw debug data buffer. 703 + * @size: Buffer size. 704 + * 705 + * Return : Int. 706 706 */ 707 707 int 708 708 qed_mcp_send_raw_debug_data(struct qed_hwfn *p_hwfn, ··· 802 796 } 803 797 804 798 /** 805 - * @brief Initialize the interface with the MCP 799 + * qed_mcp_cmd_init(): Initialize the interface with the MCP. 806 800 * 807 - * @param p_hwfn - HW func 808 - * @param p_ptt - PTT required for register access 801 + * @p_hwfn: HW device data. 802 + * @p_ptt: PTT required for register access. 809 803 * 810 - * @return int 804 + * Return: Int. 811 805 */ 812 806 int qed_mcp_cmd_init(struct qed_hwfn *p_hwfn, 813 807 struct qed_ptt *p_ptt); 814 808 815 809 /** 816 - * @brief Initialize the port interface with the MCP 810 + * qed_mcp_cmd_port_init(): Initialize the port interface with the MCP 817 811 * 818 - * @param p_hwfn 819 - * @param p_ptt 812 + * @p_hwfn: HW device data. 813 + * @p_ptt: P_ptt. 814 + * 815 + * Return: Void. 816 + * 820 817 * Can only be called after `num_ports_in_engines' is set 821 818 */ 822 819 void qed_mcp_cmd_port_init(struct qed_hwfn *p_hwfn, 823 820 struct qed_ptt *p_ptt); 824 821 /** 825 - * @brief Releases resources allocated during the init process. 822 + * qed_mcp_free(): Releases resources allocated during the init process. 826 823 * 827 - * @param p_hwfn - HW func 828 - * @param p_ptt - PTT required for register access 824 + * @p_hwfn: HW function. 829 825 * 830 - * @return int 826 + * Return: Int. 831 827 */ 832 828 833 829 int qed_mcp_free(struct qed_hwfn *p_hwfn); 834 830 835 831 /** 836 - * @brief This function is called from the DPC context. After 837 - * pointing PTT to the mfw mb, check for events sent by the MCP 838 - * to the driver and ack them. In case a critical event 839 - * detected, it will be handled here, otherwise the work will be 840 - * queued to a sleepable work-queue. 832 + * qed_mcp_handle_events(): This function is called from the DPC context. 833 + * After pointing PTT to the mfw mb, check for events sent by 834 + * the MCP to the driver and ack them. In case a critical event 835 + * detected, it will be handled here, otherwise the work will be 836 + * queued to a sleepable work-queue. 841 837 * 842 - * @param p_hwfn - HW function 843 - * @param p_ptt - PTT required for register access 844 - * @return int - 0 - operation 845 - * was successul. 838 + * @p_hwfn: HW function. 839 + * @p_ptt: PTT required for register access. 840 + * 841 + * Return: Int - 0 - Operation was successul. 846 842 */ 847 843 int qed_mcp_handle_events(struct qed_hwfn *p_hwfn, 848 844 struct qed_ptt *p_ptt); ··· 866 858 }; 867 859 868 860 /** 869 - * @brief Sends a LOAD_REQ to the MFW, and in case the operation succeeds, 870 - * returns whether this PF is the first on the engine/port or function. 861 + * qed_mcp_load_req(): Sends a LOAD_REQ to the MFW, and in case the 862 + * operation succeeds, returns whether this PF is 863 + * the first on the engine/port or function. 871 864 * 872 - * @param p_hwfn 873 - * @param p_ptt 874 - * @param p_params 865 + * @p_hwfn: HW device data. 866 + * @p_ptt: P_ptt. 867 + * @p_params: Params. 875 868 * 876 - * @return int - 0 - Operation was successful. 869 + * Return: Int - 0 - Operation was successul. 877 870 */ 878 871 int qed_mcp_load_req(struct qed_hwfn *p_hwfn, 879 872 struct qed_ptt *p_ptt, 880 873 struct qed_load_req_params *p_params); 881 874 882 875 /** 883 - * @brief Sends a LOAD_DONE message to the MFW 876 + * qed_mcp_load_done(): Sends a LOAD_DONE message to the MFW. 884 877 * 885 - * @param p_hwfn 886 - * @param p_ptt 878 + * @p_hwfn: HW device data. 879 + * @p_ptt: P_ptt. 887 880 * 888 - * @return int - 0 - Operation was successful. 881 + * Return: Int - 0 - Operation was successul. 889 882 */ 890 883 int qed_mcp_load_done(struct qed_hwfn *p_hwfn, struct qed_ptt *p_ptt); 891 884 892 885 /** 893 - * @brief Sends a UNLOAD_REQ message to the MFW 886 + * qed_mcp_unload_req(): Sends a UNLOAD_REQ message to the MFW. 894 887 * 895 - * @param p_hwfn 896 - * @param p_ptt 888 + * @p_hwfn: HW device data. 889 + * @p_ptt: P_ptt. 897 890 * 898 - * @return int - 0 - Operation was successful. 891 + * Return: Int - 0 - Operation was successul. 899 892 */ 900 893 int qed_mcp_unload_req(struct qed_hwfn *p_hwfn, struct qed_ptt *p_ptt); 901 894 902 895 /** 903 - * @brief Sends a UNLOAD_DONE message to the MFW 896 + * qed_mcp_unload_done(): Sends a UNLOAD_DONE message to the MFW 904 897 * 905 - * @param p_hwfn 906 - * @param p_ptt 898 + * @p_hwfn: HW device data. 899 + * @p_ptt: P_ptt. 907 900 * 908 - * @return int - 0 - Operation was successful. 901 + * Return: Int - 0 - Operation was successul. 909 902 */ 910 903 int qed_mcp_unload_done(struct qed_hwfn *p_hwfn, struct qed_ptt *p_ptt); 911 904 912 905 /** 913 - * @brief Read the MFW mailbox into Current buffer. 906 + * qed_mcp_read_mb(): Read the MFW mailbox into Current buffer. 914 907 * 915 - * @param p_hwfn 916 - * @param p_ptt 908 + * @p_hwfn: HW device data. 909 + * @p_ptt: P_ptt. 910 + * 911 + * Return: Void. 917 912 */ 918 913 void qed_mcp_read_mb(struct qed_hwfn *p_hwfn, 919 914 struct qed_ptt *p_ptt); 920 915 921 916 /** 922 - * @brief Ack to mfw that driver finished FLR process for VFs 917 + * qed_mcp_ack_vf_flr(): Ack to mfw that driver finished FLR process for VFs 923 918 * 924 - * @param p_hwfn 925 - * @param p_ptt 926 - * @param vfs_to_ack - bit mask of all engine VFs for which the PF acks. 919 + * @p_hwfn: HW device data. 920 + * @p_ptt: P_ptt. 921 + * @vfs_to_ack: bit mask of all engine VFs for which the PF acks. 927 922 * 928 - * @param return int - 0 upon success. 923 + * Return: Int - 0 - Operation was successul. 929 924 */ 930 925 int qed_mcp_ack_vf_flr(struct qed_hwfn *p_hwfn, 931 926 struct qed_ptt *p_ptt, u32 *vfs_to_ack); 932 927 933 928 /** 934 - * @brief - calls during init to read shmem of all function-related info. 929 + * qed_mcp_fill_shmem_func_info(): Calls during init to read shmem of 930 + * all function-related info. 935 931 * 936 - * @param p_hwfn 932 + * @p_hwfn: HW device data. 933 + * @p_ptt: P_ptt. 937 934 * 938 - * @param return 0 upon success. 935 + * Return: 0 upon success. 939 936 */ 940 937 int qed_mcp_fill_shmem_func_info(struct qed_hwfn *p_hwfn, 941 938 struct qed_ptt *p_ptt); 942 939 943 940 /** 944 - * @brief - Reset the MCP using mailbox command. 941 + * qed_mcp_reset(): Reset the MCP using mailbox command. 945 942 * 946 - * @param p_hwfn 947 - * @param p_ptt 943 + * @p_hwfn: HW device data. 944 + * @p_ptt: P_ptt. 948 945 * 949 - * @param return 0 upon success. 946 + * Return: 0 upon success. 950 947 */ 951 948 int qed_mcp_reset(struct qed_hwfn *p_hwfn, 952 949 struct qed_ptt *p_ptt); 953 950 954 951 /** 955 - * @brief - Sends an NVM read command request to the MFW to get 956 - * a buffer. 952 + * qed_mcp_nvm_rd_cmd(): Sends an NVM read command request to the MFW to get 953 + * a buffer. 957 954 * 958 - * @param p_hwfn 959 - * @param p_ptt 960 - * @param cmd - Command: DRV_MSG_CODE_NVM_GET_FILE_DATA or 961 - * DRV_MSG_CODE_NVM_READ_NVRAM commands 962 - * @param param - [0:23] - Offset [24:31] - Size 963 - * @param o_mcp_resp - MCP response 964 - * @param o_mcp_param - MCP response param 965 - * @param o_txn_size - Buffer size output 966 - * @param o_buf - Pointer to the buffer returned by the MFW. 955 + * @p_hwfn: HW device data. 956 + * @p_ptt: P_ptt. 957 + * @cmd: (Command) DRV_MSG_CODE_NVM_GET_FILE_DATA or 958 + * DRV_MSG_CODE_NVM_READ_NVRAM commands. 959 + * @param: [0:23] - Offset [24:31] - Size. 960 + * @o_mcp_resp: MCP response. 961 + * @o_mcp_param: MCP response param. 962 + * @o_txn_size: Buffer size output. 963 + * @o_buf: Pointer to the buffer returned by the MFW. 967 964 * 968 - * @param return 0 upon success. 965 + * Return: 0 upon success. 969 966 */ 970 967 int qed_mcp_nvm_rd_cmd(struct qed_hwfn *p_hwfn, 971 968 struct qed_ptt *p_ptt, ··· 980 967 u32 *o_mcp_param, u32 *o_txn_size, u32 *o_buf); 981 968 982 969 /** 983 - * @brief Read from sfp 970 + * qed_mcp_phy_sfp_read(): Read from sfp. 984 971 * 985 - * @param p_hwfn - hw function 986 - * @param p_ptt - PTT required for register access 987 - * @param port - transceiver port 988 - * @param addr - I2C address 989 - * @param offset - offset in sfp 990 - * @param len - buffer length 991 - * @param p_buf - buffer to read into 972 + * @p_hwfn: HW device data. 973 + * @p_ptt: PTT required for register access. 974 + * @port: transceiver port. 975 + * @addr: I2C address. 976 + * @offset: offset in sfp. 977 + * @len: buffer length. 978 + * @p_buf: buffer to read into. 992 979 * 993 - * @return int - 0 - operation was successful. 980 + * Return: Int - 0 - Operation was successul. 994 981 */ 995 982 int qed_mcp_phy_sfp_read(struct qed_hwfn *p_hwfn, struct qed_ptt *p_ptt, 996 983 u32 port, u32 addr, u32 offset, u32 len, u8 *p_buf); 997 984 998 985 /** 999 - * @brief indicates whether the MFW objects [under mcp_info] are accessible 986 + * qed_mcp_is_init(): indicates whether the MFW objects [under mcp_info] 987 + * are accessible 1000 988 * 1001 - * @param p_hwfn 989 + * @p_hwfn: HW device data. 1002 990 * 1003 - * @return true iff MFW is running and mcp_info is initialized 991 + * Return: true if MFW is running and mcp_info is initialized. 1004 992 */ 1005 993 bool qed_mcp_is_init(struct qed_hwfn *p_hwfn); 1006 994 1007 995 /** 1008 - * @brief request MFW to configure MSI-X for a VF 996 + * qed_mcp_config_vf_msix(): Request MFW to configure MSI-X for a VF. 1009 997 * 1010 - * @param p_hwfn 1011 - * @param p_ptt 1012 - * @param vf_id - absolute inside engine 1013 - * @param num_sbs - number of entries to request 998 + * @p_hwfn: HW device data. 999 + * @p_ptt: P_ptt. 1000 + * @vf_id: absolute inside engine. 1001 + * @num: number of entries to request. 1014 1002 * 1015 - * @return int 1003 + * Return: Int. 1016 1004 */ 1017 1005 int qed_mcp_config_vf_msix(struct qed_hwfn *p_hwfn, 1018 1006 struct qed_ptt *p_ptt, u8 vf_id, u8 num); 1019 1007 1020 1008 /** 1021 - * @brief - Halt the MCP. 1009 + * qed_mcp_halt(): Halt the MCP. 1022 1010 * 1023 - * @param p_hwfn 1024 - * @param p_ptt 1011 + * @p_hwfn: HW device data. 1012 + * @p_ptt: P_ptt. 1025 1013 * 1026 - * @param return 0 upon success. 1014 + * Return: 0 upon success. 1027 1015 */ 1028 1016 int qed_mcp_halt(struct qed_hwfn *p_hwfn, struct qed_ptt *p_ptt); 1029 1017 1030 1018 /** 1031 - * @brief - Wake up the MCP. 1019 + * qed_mcp_resume: Wake up the MCP. 1032 1020 * 1033 - * @param p_hwfn 1034 - * @param p_ptt 1021 + * @p_hwfn: HW device data. 1022 + * @p_ptt: P_ptt. 1035 1023 * 1036 - * @param return 0 upon success. 1024 + * Return: 0 upon success. 1037 1025 */ 1038 1026 int qed_mcp_resume(struct qed_hwfn *p_hwfn, struct qed_ptt *p_ptt); 1039 1027 ··· 1052 1038 int qed_mcp_mask_parities(struct qed_hwfn *p_hwfn, 1053 1039 struct qed_ptt *p_ptt, u32 mask_parities); 1054 1040 1055 - /* @brief - Gets the mdump retained data from the MFW. 1041 + /* qed_mcp_mdump_get_retain(): Gets the mdump retained data from the MFW. 1056 1042 * 1057 - * @param p_hwfn 1058 - * @param p_ptt 1059 - * @param p_mdump_retain 1043 + * @p_hwfn: HW device data. 1044 + * @p_ptt: P_ptt. 1045 + * @p_mdump_retain: mdump retain. 1060 1046 * 1061 - * @param return 0 upon success. 1047 + * Return: Int - 0 - Operation was successul. 1062 1048 */ 1063 1049 int 1064 1050 qed_mcp_mdump_get_retain(struct qed_hwfn *p_hwfn, ··· 1066 1052 struct mdump_retain_data_stc *p_mdump_retain); 1067 1053 1068 1054 /** 1069 - * @brief - Sets the MFW's max value for the given resource 1055 + * qed_mcp_set_resc_max_val(): Sets the MFW's max value for the given resource. 1070 1056 * 1071 - * @param p_hwfn 1072 - * @param p_ptt 1073 - * @param res_id 1074 - * @param resc_max_val 1075 - * @param p_mcp_resp 1057 + * @p_hwfn: HW device data. 1058 + * @p_ptt: P_ptt. 1059 + * @res_id: RES ID. 1060 + * @resc_max_val: Resec max val. 1061 + * @p_mcp_resp: MCP Resp 1076 1062 * 1077 - * @return int - 0 - operation was successful. 1063 + * Return: Int - 0 - Operation was successul. 1078 1064 */ 1079 1065 int 1080 1066 qed_mcp_set_resc_max_val(struct qed_hwfn *p_hwfn, ··· 1083 1069 u32 resc_max_val, u32 *p_mcp_resp); 1084 1070 1085 1071 /** 1086 - * @brief - Gets the MFW allocation info for the given resource 1072 + * qed_mcp_get_resc_info(): Gets the MFW allocation info for the given 1073 + * resource. 1087 1074 * 1088 - * @param p_hwfn 1089 - * @param p_ptt 1090 - * @param res_id 1091 - * @param p_mcp_resp 1092 - * @param p_resc_num 1093 - * @param p_resc_start 1075 + * @p_hwfn: HW device data. 1076 + * @p_ptt: P_ptt. 1077 + * @res_id: Res ID. 1078 + * @p_mcp_resp: MCP resp. 1079 + * @p_resc_num: Resc num. 1080 + * @p_resc_start: Resc start. 1094 1081 * 1095 - * @return int - 0 - operation was successful. 1082 + * Return: Int - 0 - Operation was successul. 1096 1083 */ 1097 1084 int 1098 1085 qed_mcp_get_resc_info(struct qed_hwfn *p_hwfn, ··· 1102 1087 u32 *p_mcp_resp, u32 *p_resc_num, u32 *p_resc_start); 1103 1088 1104 1089 /** 1105 - * @brief Send eswitch mode to MFW 1090 + * qed_mcp_ov_update_eswitch(): Send eswitch mode to MFW. 1106 1091 * 1107 - * @param p_hwfn 1108 - * @param p_ptt 1109 - * @param eswitch - eswitch mode 1092 + * @p_hwfn: HW device data. 1093 + * @p_ptt: P_ptt. 1094 + * @eswitch: eswitch mode. 1110 1095 * 1111 - * @return int - 0 - operation was successful. 1096 + * Return: Int - 0 - Operation was successul. 1112 1097 */ 1113 1098 int qed_mcp_ov_update_eswitch(struct qed_hwfn *p_hwfn, 1114 1099 struct qed_ptt *p_ptt, ··· 1128 1113 }; 1129 1114 1130 1115 /** 1131 - * @brief - Initiates PF FLR 1116 + * qed_mcp_initiate_pf_flr(): Initiates PF FLR. 1132 1117 * 1133 - * @param p_hwfn 1134 - * @param p_ptt 1118 + * @p_hwfn: HW device data. 1119 + * @p_ptt: P_ptt. 1135 1120 * 1136 - * @return int - 0 - operation was successful. 1121 + * Return: Int - 0 - Operation was successul. 1137 1122 */ 1138 1123 int qed_mcp_initiate_pf_flr(struct qed_hwfn *p_hwfn, struct qed_ptt *p_ptt); 1139 1124 struct qed_resc_lock_params { ··· 1166 1151 }; 1167 1152 1168 1153 /** 1169 - * @brief Acquires MFW generic resource lock 1154 + * qed_mcp_resc_lock(): Acquires MFW generic resource lock. 1170 1155 * 1171 - * @param p_hwfn 1172 - * @param p_ptt 1173 - * @param p_params 1156 + * @p_hwfn: HW device data. 1157 + * @p_ptt: P_ptt. 1158 + * @p_params: Params. 1174 1159 * 1175 - * @return int - 0 - operation was successful. 1160 + * Return: Int - 0 - Operation was successul. 1176 1161 */ 1177 1162 int 1178 1163 qed_mcp_resc_lock(struct qed_hwfn *p_hwfn, ··· 1190 1175 }; 1191 1176 1192 1177 /** 1193 - * @brief Releases MFW generic resource lock 1178 + * qed_mcp_resc_unlock(): Releases MFW generic resource lock. 1194 1179 * 1195 - * @param p_hwfn 1196 - * @param p_ptt 1197 - * @param p_params 1180 + * @p_hwfn: HW device data. 1181 + * @p_ptt: P_ptt. 1182 + * @p_params: Params. 1198 1183 * 1199 - * @return int - 0 - operation was successful. 1184 + * Return: Int - 0 - Operation was successul. 1200 1185 */ 1201 1186 int 1202 1187 qed_mcp_resc_unlock(struct qed_hwfn *p_hwfn, ··· 1204 1189 struct qed_resc_unlock_params *p_params); 1205 1190 1206 1191 /** 1207 - * @brief - default initialization for lock/unlock resource structs 1192 + * qed_mcp_resc_lock_default_init(): Default initialization for 1193 + * lock/unlock resource structs. 1208 1194 * 1209 - * @param p_lock - lock params struct to be initialized; Can be NULL 1210 - * @param p_unlock - unlock params struct to be initialized; Can be NULL 1211 - * @param resource - the requested resource 1212 - * @paral b_is_permanent - disable retries & aging when set 1195 + * @p_lock: lock params struct to be initialized; Can be NULL. 1196 + * @p_unlock: unlock params struct to be initialized; Can be NULL. 1197 + * @resource: the requested resource. 1198 + * @b_is_permanent: disable retries & aging when set. 1199 + * 1200 + * Return: Void. 1213 1201 */ 1214 1202 void qed_mcp_resc_lock_default_init(struct qed_resc_lock_params *p_lock, 1215 1203 struct qed_resc_unlock_params *p_unlock, ··· 1220 1202 resource, bool b_is_permanent); 1221 1203 1222 1204 /** 1223 - * @brief - Return whether management firmware support smart AN 1205 + * qed_mcp_is_smart_an_supported(): Return whether management firmware 1206 + * support smart AN 1224 1207 * 1225 - * @param p_hwfn 1208 + * @p_hwfn: HW device data. 1226 1209 * 1227 - * @return bool - true if feature is supported. 1210 + * Return: bool true if feature is supported. 1228 1211 */ 1229 1212 bool qed_mcp_is_smart_an_supported(struct qed_hwfn *p_hwfn); 1230 1213 1231 1214 /** 1232 - * @brief Learn of supported MFW features; To be done during early init 1215 + * qed_mcp_get_capabilities(): Learn of supported MFW features; 1216 + * To be done during early init. 1233 1217 * 1234 - * @param p_hwfn 1235 - * @param p_ptt 1218 + * @p_hwfn: HW device data. 1219 + * @p_ptt: P_ptt. 1220 + * 1221 + * Return: Int. 1236 1222 */ 1237 1223 int qed_mcp_get_capabilities(struct qed_hwfn *p_hwfn, struct qed_ptt *p_ptt); 1238 1224 1239 1225 /** 1240 - * @brief Inform MFW of set of features supported by driver. Should be done 1241 - * inside the content of the LOAD_REQ. 1226 + * qed_mcp_set_capabilities(): Inform MFW of set of features supported 1227 + * by driver. Should be done inside the content 1228 + * of the LOAD_REQ. 1242 1229 * 1243 - * @param p_hwfn 1244 - * @param p_ptt 1230 + * @p_hwfn: HW device data. 1231 + * @p_ptt: P_ptt. 1232 + * 1233 + * Return: Int. 1245 1234 */ 1246 1235 int qed_mcp_set_capabilities(struct qed_hwfn *p_hwfn, struct qed_ptt *p_ptt); 1247 1236 1248 1237 /** 1249 - * @brief Read ufp config from the shared memory. 1238 + * qed_mcp_read_ufp_config(): Read ufp config from the shared memory. 1250 1239 * 1251 - * @param p_hwfn 1252 - * @param p_ptt 1240 + * @p_hwfn: HW device data. 1241 + * @p_ptt: P_ptt. 1242 + * 1243 + * Return: Void. 1253 1244 */ 1254 1245 void qed_mcp_read_ufp_config(struct qed_hwfn *p_hwfn, struct qed_ptt *p_ptt); 1255 1246 1256 1247 /** 1257 - * @brief Populate the nvm info shadow in the given hardware function 1248 + * qed_mcp_nvm_info_populate(): Populate the nvm info shadow in the given 1249 + * hardware function. 1258 1250 * 1259 - * @param p_hwfn 1251 + * @p_hwfn: HW device data. 1252 + * 1253 + * Return: Int. 1260 1254 */ 1261 1255 int qed_mcp_nvm_info_populate(struct qed_hwfn *p_hwfn); 1262 1256 1263 1257 /** 1264 - * @brief Delete nvm info shadow in the given hardware function 1258 + * qed_mcp_nvm_info_free(): Delete nvm info shadow in the given 1259 + * hardware function. 1265 1260 * 1266 - * @param p_hwfn 1261 + * @p_hwfn: HW device data. 1262 + * 1263 + * Return: Void. 1267 1264 */ 1268 1265 void qed_mcp_nvm_info_free(struct qed_hwfn *p_hwfn); 1269 1266 1270 1267 /** 1271 - * @brief Get the engine affinity configuration. 1268 + * qed_mcp_get_engine_config(): Get the engine affinity configuration. 1272 1269 * 1273 - * @param p_hwfn 1274 - * @param p_ptt 1270 + * @p_hwfn: HW device data. 1271 + * @p_ptt: P_ptt. 1272 + * 1273 + * Return: Int. 1275 1274 */ 1276 1275 int qed_mcp_get_engine_config(struct qed_hwfn *p_hwfn, struct qed_ptt *p_ptt); 1277 1276 1278 1277 /** 1279 - * @brief Get the PPFID bitmap. 1278 + * qed_mcp_get_ppfid_bitmap(): Get the PPFID bitmap. 1280 1279 * 1281 - * @param p_hwfn 1282 - * @param p_ptt 1280 + * @p_hwfn: HW device data. 1281 + * @p_ptt: P_ptt. 1282 + * 1283 + * Return: Int. 1283 1284 */ 1284 1285 int qed_mcp_get_ppfid_bitmap(struct qed_hwfn *p_hwfn, struct qed_ptt *p_ptt); 1285 1286 1286 1287 /** 1287 - * @brief Get NVM config attribute value. 1288 + * qed_mcp_nvm_get_cfg(): Get NVM config attribute value. 1288 1289 * 1289 - * @param p_hwfn 1290 - * @param p_ptt 1291 - * @param option_id 1292 - * @param entity_id 1293 - * @param flags 1294 - * @param p_buf 1295 - * @param p_len 1290 + * @p_hwfn: HW device data. 1291 + * @p_ptt: P_ptt. 1292 + * @option_id: Option ID. 1293 + * @entity_id: Entity ID. 1294 + * @flags: Flags. 1295 + * @p_buf: Buf. 1296 + * @p_len: Len. 1297 + * 1298 + * Return: Int. 1296 1299 */ 1297 1300 int qed_mcp_nvm_get_cfg(struct qed_hwfn *p_hwfn, struct qed_ptt *p_ptt, 1298 1301 u16 option_id, u8 entity_id, u16 flags, u8 *p_buf, 1299 1302 u32 *p_len); 1300 1303 1301 1304 /** 1302 - * @brief Set NVM config attribute value. 1305 + * qed_mcp_nvm_set_cfg(): Set NVM config attribute value. 1303 1306 * 1304 - * @param p_hwfn 1305 - * @param p_ptt 1306 - * @param option_id 1307 - * @param entity_id 1308 - * @param flags 1309 - * @param p_buf 1310 - * @param len 1307 + * @p_hwfn: HW device data. 1308 + * @p_ptt: P_ptt. 1309 + * @option_id: Option ID. 1310 + * @entity_id: Entity ID. 1311 + * @flags: Flags. 1312 + * @p_buf: Buf. 1313 + * @len: Len. 1314 + * 1315 + * Return: Int. 1311 1316 */ 1312 1317 int qed_mcp_nvm_set_cfg(struct qed_hwfn *p_hwfn, struct qed_ptt *p_ptt, 1313 1318 u16 option_id, u8 entity_id, u16 flags, u8 *p_buf,
+15 -15
drivers/net/ethernet/qlogic/qed/qed_selftest.h
··· 6 6 #include <linux/types.h> 7 7 8 8 /** 9 - * @brief qed_selftest_memory - Perform memory test 9 + * qed_selftest_memory(): Perform memory test. 10 10 * 11 - * @param cdev 11 + * @cdev: Qed dev pointer. 12 12 * 13 - * @return int 13 + * Return: Int. 14 14 */ 15 15 int qed_selftest_memory(struct qed_dev *cdev); 16 16 17 17 /** 18 - * @brief qed_selftest_interrupt - Perform interrupt test 18 + * qed_selftest_interrupt(): Perform interrupt test. 19 19 * 20 - * @param cdev 20 + * @cdev: Qed dev pointer. 21 21 * 22 - * @return int 22 + * Return: Int. 23 23 */ 24 24 int qed_selftest_interrupt(struct qed_dev *cdev); 25 25 26 26 /** 27 - * @brief qed_selftest_register - Perform register test 27 + * qed_selftest_register(): Perform register test. 28 28 * 29 - * @param cdev 29 + * @cdev: Qed dev pointer. 30 30 * 31 - * @return int 31 + * Return: Int. 32 32 */ 33 33 int qed_selftest_register(struct qed_dev *cdev); 34 34 35 35 /** 36 - * @brief qed_selftest_clock - Perform clock test 36 + * qed_selftest_clock(): Perform clock test. 37 37 * 38 - * @param cdev 38 + * @cdev: Qed dev pointer. 39 39 * 40 - * @return int 40 + * Return: Int. 41 41 */ 42 42 int qed_selftest_clock(struct qed_dev *cdev); 43 43 44 44 /** 45 - * @brief qed_selftest_nvram - Perform nvram test 45 + * qed_selftest_nvram(): Perform nvram test. 46 46 * 47 - * @param cdev 47 + * @cdev: Qed dev pointer. 48 48 * 49 - * @return int 49 + * Return: Int. 50 50 */ 51 51 int qed_selftest_nvram(struct qed_dev *cdev); 52 52
+105 -110
drivers/net/ethernet/qlogic/qed/qed_sp.h
··· 31 31 }; 32 32 33 33 /** 34 - * @brief qed_eth_cqe_completion - handles the completion of a 35 - * ramrod on the cqe ring 34 + * qed_eth_cqe_completion(): handles the completion of a 35 + * ramrod on the cqe ring. 36 36 * 37 - * @param p_hwfn 38 - * @param cqe 37 + * @p_hwfn: HW device data. 38 + * @cqe: CQE. 39 39 * 40 - * @return int 40 + * Return: Int. 41 41 */ 42 42 int qed_eth_cqe_completion(struct qed_hwfn *p_hwfn, 43 43 struct eth_slow_path_rx_cqe *cqe); 44 44 45 - /** 46 - * @file 47 - * 48 - * QED Slow-hwfn queue interface 49 - */ 50 - 45 + /* QED Slow-hwfn queue interface */ 51 46 union ramrod_data { 52 47 struct pf_start_ramrod_data pf_start; 53 48 struct pf_update_ramrod_data pf_update; ··· 202 207 }; 203 208 204 209 /** 205 - * @brief qed_spq_post - Posts a Slow hwfn request to FW, or lacking that 206 - * Pends it to the future list. 210 + * qed_spq_post(): Posts a Slow hwfn request to FW, or lacking that 211 + * Pends it to the future list. 207 212 * 208 - * @param p_hwfn 209 - * @param p_req 213 + * @p_hwfn: HW device data. 214 + * @p_ent: Ent. 215 + * @fw_return_code: Return code from firmware. 210 216 * 211 - * @return int 217 + * Return: Int. 212 218 */ 213 219 int qed_spq_post(struct qed_hwfn *p_hwfn, 214 220 struct qed_spq_entry *p_ent, 215 221 u8 *fw_return_code); 216 222 217 223 /** 218 - * @brief qed_spq_allocate - Alloocates & initializes the SPQ and EQ. 224 + * qed_spq_alloc(): Alloocates & initializes the SPQ and EQ. 219 225 * 220 - * @param p_hwfn 226 + * @p_hwfn: HW device data. 221 227 * 222 - * @return int 228 + * Return: Int. 223 229 */ 224 230 int qed_spq_alloc(struct qed_hwfn *p_hwfn); 225 231 226 232 /** 227 - * @brief qed_spq_setup - Reset the SPQ to its start state. 233 + * qed_spq_setup(): Reset the SPQ to its start state. 228 234 * 229 - * @param p_hwfn 235 + * @p_hwfn: HW device data. 236 + * 237 + * Return: Void. 230 238 */ 231 239 void qed_spq_setup(struct qed_hwfn *p_hwfn); 232 240 233 241 /** 234 - * @brief qed_spq_deallocate - Deallocates the given SPQ struct. 242 + * qed_spq_free(): Deallocates the given SPQ struct. 235 243 * 236 - * @param p_hwfn 244 + * @p_hwfn: HW device data. 245 + * 246 + * Return: Void. 237 247 */ 238 248 void qed_spq_free(struct qed_hwfn *p_hwfn); 239 249 240 250 /** 241 - * @brief qed_spq_get_entry - Obtain an entrry from the spq 242 - * free pool list. 251 + * qed_spq_get_entry(): Obtain an entrry from the spq 252 + * free pool list. 243 253 * 254 + * @p_hwfn: HW device data. 255 + * @pp_ent: PP ENT. 244 256 * 245 - * 246 - * @param p_hwfn 247 - * @param pp_ent 248 - * 249 - * @return int 257 + * Return: Int. 250 258 */ 251 259 int 252 260 qed_spq_get_entry(struct qed_hwfn *p_hwfn, 253 261 struct qed_spq_entry **pp_ent); 254 262 255 263 /** 256 - * @brief qed_spq_return_entry - Return an entry to spq free 257 - * pool list 264 + * qed_spq_return_entry(): Return an entry to spq free pool list. 258 265 * 259 - * @param p_hwfn 260 - * @param p_ent 266 + * @p_hwfn: HW device data. 267 + * @p_ent: P ENT. 268 + * 269 + * Return: Void. 261 270 */ 262 271 void qed_spq_return_entry(struct qed_hwfn *p_hwfn, 263 272 struct qed_spq_entry *p_ent); 264 273 /** 265 - * @brief qed_eq_allocate - Allocates & initializes an EQ struct 274 + * qed_eq_alloc(): Allocates & initializes an EQ struct. 266 275 * 267 - * @param p_hwfn 268 - * @param num_elem number of elements in the eq 276 + * @p_hwfn: HW device data. 277 + * @num_elem: number of elements in the eq. 269 278 * 270 - * @return int 279 + * Return: Int. 271 280 */ 272 281 int qed_eq_alloc(struct qed_hwfn *p_hwfn, u16 num_elem); 273 282 274 283 /** 275 - * @brief qed_eq_setup - Reset the EQ to its start state. 284 + * qed_eq_setup(): Reset the EQ to its start state. 276 285 * 277 - * @param p_hwfn 286 + * @p_hwfn: HW device data. 287 + * 288 + * Return: Void. 278 289 */ 279 290 void qed_eq_setup(struct qed_hwfn *p_hwfn); 280 291 281 292 /** 282 - * @brief qed_eq_free - deallocates the given EQ struct. 293 + * qed_eq_free(): deallocates the given EQ struct. 283 294 * 284 - * @param p_hwfn 295 + * @p_hwfn: HW device data. 296 + * 297 + * Return: Void. 285 298 */ 286 299 void qed_eq_free(struct qed_hwfn *p_hwfn); 287 300 288 301 /** 289 - * @brief qed_eq_prod_update - update the FW with default EQ producer 302 + * qed_eq_prod_update(): update the FW with default EQ producer. 290 303 * 291 - * @param p_hwfn 292 - * @param prod 304 + * @p_hwfn: HW device data. 305 + * @prod: Prod. 306 + * 307 + * Return: Void. 293 308 */ 294 309 void qed_eq_prod_update(struct qed_hwfn *p_hwfn, 295 310 u16 prod); 296 311 297 312 /** 298 - * @brief qed_eq_completion - Completes currently pending EQ elements 313 + * qed_eq_completion(): Completes currently pending EQ elements. 299 314 * 300 - * @param p_hwfn 301 - * @param cookie 315 + * @p_hwfn: HW device data. 316 + * @cookie: Cookie. 302 317 * 303 - * @return int 318 + * Return: Int. 304 319 */ 305 320 int qed_eq_completion(struct qed_hwfn *p_hwfn, 306 321 void *cookie); 307 322 308 323 /** 309 - * @brief qed_spq_completion - Completes a single event 324 + * qed_spq_completion(): Completes a single event. 310 325 * 311 - * @param p_hwfn 312 - * @param echo - echo value from cookie (used for determining completion) 313 - * @param p_data - data from cookie (used in callback function if applicable) 326 + * @p_hwfn: HW device data. 327 + * @echo: echo value from cookie (used for determining completion). 328 + * @fw_return_code: FW return code. 329 + * @p_data: data from cookie (used in callback function if applicable). 314 330 * 315 - * @return int 331 + * Return: Int. 316 332 */ 317 333 int qed_spq_completion(struct qed_hwfn *p_hwfn, 318 334 __le16 echo, ··· 331 325 union event_ring_data *p_data); 332 326 333 327 /** 334 - * @brief qed_spq_get_cid - Given p_hwfn, return cid for the hwfn's SPQ 328 + * qed_spq_get_cid(): Given p_hwfn, return cid for the hwfn's SPQ. 335 329 * 336 - * @param p_hwfn 330 + * @p_hwfn: HW device data. 337 331 * 338 - * @return u32 - SPQ CID 332 + * Return: u32 - SPQ CID. 339 333 */ 340 334 u32 qed_spq_get_cid(struct qed_hwfn *p_hwfn); 341 335 342 336 /** 343 - * @brief qed_consq_alloc - Allocates & initializes an ConsQ 344 - * struct 337 + * qed_consq_alloc(): Allocates & initializes an ConsQ struct. 345 338 * 346 - * @param p_hwfn 339 + * @p_hwfn: HW device data. 347 340 * 348 - * @return int 341 + * Return: Int. 349 342 */ 350 343 int qed_consq_alloc(struct qed_hwfn *p_hwfn); 351 344 352 345 /** 353 - * @brief qed_consq_setup - Reset the ConsQ to its start state. 346 + * qed_consq_setup(): Reset the ConsQ to its start state. 354 347 * 355 - * @param p_hwfn 348 + * @p_hwfn: HW device data. 349 + * 350 + * Return Void. 356 351 */ 357 352 void qed_consq_setup(struct qed_hwfn *p_hwfn); 358 353 359 354 /** 360 - * @brief qed_consq_free - deallocates the given ConsQ struct. 355 + * qed_consq_free(): deallocates the given ConsQ struct. 361 356 * 362 - * @param p_hwfn 357 + * @p_hwfn: HW device data. 358 + * 359 + * Return Void. 363 360 */ 364 361 void qed_consq_free(struct qed_hwfn *p_hwfn); 365 362 int qed_spq_pend_post(struct qed_hwfn *p_hwfn); 366 363 367 - /** 368 - * @file 369 - * 370 - * @brief Slow-hwfn low-level commands (Ramrods) function definitions. 371 - */ 364 + /* Slow-hwfn low-level commands (Ramrods) function definitions. */ 372 365 373 366 #define QED_SP_EQ_COMPLETION 0x01 374 367 #define QED_SP_CQE_COMPLETION 0x02 ··· 382 377 }; 383 378 384 379 /** 385 - * @brief Returns a SPQ entry to the pool / frees the entry if allocated. 386 - * Should be called on in error flows after initializing the SPQ entry 387 - * and before posting it. 380 + * qed_sp_destroy_request(): Returns a SPQ entry to the pool / frees the 381 + * entry if allocated. Should be called on in error 382 + * flows after initializing the SPQ entry 383 + * and before posting it. 388 384 * 389 - * @param p_hwfn 390 - * @param p_ent 385 + * @p_hwfn: HW device data. 386 + * @p_ent: Ent. 387 + * 388 + * Return: Void. 391 389 */ 392 390 void qed_sp_destroy_request(struct qed_hwfn *p_hwfn, 393 391 struct qed_spq_entry *p_ent); ··· 402 394 struct qed_sp_init_data *p_data); 403 395 404 396 /** 405 - * @brief qed_sp_pf_start - PF Function Start Ramrod 397 + * qed_sp_pf_start(): PF Function Start Ramrod. 398 + * 399 + * @p_hwfn: HW device data. 400 + * @p_ptt: P_ptt. 401 + * @p_tunn: P_tunn. 402 + * @allow_npar_tx_switch: Allow NPAR TX Switch. 403 + * 404 + * Return: Int. 406 405 * 407 406 * This ramrod is sent to initialize a physical function (PF). It will 408 407 * configure the function related parameters and write its completion to the ··· 419 404 * allocated by the driver on host memory and its parameters are written 420 405 * to the internal RAM of the UStorm by the Function Start Ramrod. 421 406 * 422 - * @param p_hwfn 423 - * @param p_ptt 424 - * @param p_tunn 425 - * @param allow_npar_tx_switch 426 - * 427 - * @return int 428 407 */ 429 408 430 409 int qed_sp_pf_start(struct qed_hwfn *p_hwfn, ··· 427 418 bool allow_npar_tx_switch); 428 419 429 420 /** 430 - * @brief qed_sp_pf_update - PF Function Update Ramrod 421 + * qed_sp_pf_update(): PF Function Update Ramrod. 422 + * 423 + * @p_hwfn: HW device data. 424 + * 425 + * Return: Int. 431 426 * 432 427 * This ramrod updates function-related parameters. Every parameter can be 433 428 * updated independently, according to configuration flags. 434 - * 435 - * @param p_hwfn 436 - * 437 - * @return int 438 429 */ 439 430 440 431 int qed_sp_pf_update(struct qed_hwfn *p_hwfn); 441 432 442 433 /** 443 - * @brief qed_sp_pf_update_stag - Update firmware of new outer tag 434 + * qed_sp_pf_update_stag(): Update firmware of new outer tag. 444 435 * 445 - * @param p_hwfn 436 + * @p_hwfn: HW device data. 446 437 * 447 - * @return int 438 + * Return: Int. 448 439 */ 449 440 int qed_sp_pf_update_stag(struct qed_hwfn *p_hwfn); 450 441 451 442 /** 452 - * @brief qed_sp_pf_stop - PF Function Stop Ramrod 443 + * qed_sp_pf_update_ufp(): PF ufp update Ramrod. 453 444 * 454 - * This ramrod is sent to close a Physical Function (PF). It is the last ramrod 455 - * sent and the last completion written to the PFs Event Ring. This ramrod also 456 - * deletes the context for the Slowhwfn connection on this PF. 445 + * @p_hwfn: HW device data. 457 446 * 458 - * @note Not required for first packet. 459 - * 460 - * @param p_hwfn 461 - * 462 - * @return int 463 - */ 464 - 465 - /** 466 - * @brief qed_sp_pf_update_ufp - PF ufp update Ramrod 467 - * 468 - * @param p_hwfn 469 - * 470 - * @return int 447 + * Return: Int. 471 448 */ 472 449 int qed_sp_pf_update_ufp(struct qed_hwfn *p_hwfn); 473 450 ··· 465 470 enum spq_mode comp_mode, 466 471 struct qed_spq_comp_cb *p_comp_data); 467 472 /** 468 - * @brief qed_sp_heartbeat_ramrod - Send empty Ramrod 473 + * qed_sp_heartbeat_ramrod(): Send empty Ramrod. 469 474 * 470 - * @param p_hwfn 475 + * @p_hwfn: HW device data. 471 476 * 472 - * @return int 477 + * Return: Int. 473 478 */ 474 479 475 480 int qed_sp_heartbeat_ramrod(struct qed_hwfn *p_hwfn);
+55 -44
drivers/net/ethernet/qlogic/qed/qed_sriov.h
··· 250 250 251 251 #ifdef CONFIG_QED_SRIOV 252 252 /** 253 - * @brief Check if given VF ID @vfid is valid 254 - * w.r.t. @b_enabled_only value 255 - * if b_enabled_only = true - only enabled VF id is valid 256 - * else any VF id less than max_vfs is valid 253 + * qed_iov_is_valid_vfid(): Check if given VF ID @vfid is valid 254 + * w.r.t. @b_enabled_only value 255 + * if b_enabled_only = true - only enabled 256 + * VF id is valid. 257 + * else any VF id less than max_vfs is valid. 257 258 * 258 - * @param p_hwfn 259 - * @param rel_vf_id - Relative VF ID 260 - * @param b_enabled_only - consider only enabled VF 261 - * @param b_non_malicious - true iff we want to validate vf isn't malicious. 259 + * @p_hwfn: HW device data. 260 + * @rel_vf_id: Relative VF ID. 261 + * @b_enabled_only: consider only enabled VF. 262 + * @b_non_malicious: true iff we want to validate vf isn't malicious. 262 263 * 263 - * @return bool - true for valid VF ID 264 + * Return: bool - true for valid VF ID 264 265 */ 265 266 bool qed_iov_is_valid_vfid(struct qed_hwfn *p_hwfn, 266 267 int rel_vf_id, 267 268 bool b_enabled_only, bool b_non_malicious); 268 269 269 270 /** 270 - * @brief - Given a VF index, return index of next [including that] active VF. 271 + * qed_iov_get_next_active_vf(): Given a VF index, return index of 272 + * next [including that] active VF. 271 273 * 272 - * @param p_hwfn 273 - * @param rel_vf_id 274 + * @p_hwfn: HW device data. 275 + * @rel_vf_id: VF ID. 274 276 * 275 - * @return MAX_NUM_VFS in case no further active VFs, otherwise index. 277 + * Return: MAX_NUM_VFS in case no further active VFs, otherwise index. 276 278 */ 277 279 u16 qed_iov_get_next_active_vf(struct qed_hwfn *p_hwfn, u16 rel_vf_id); 278 280 ··· 282 280 int vfid, u16 vxlan_port, u16 geneve_port); 283 281 284 282 /** 285 - * @brief Read sriov related information and allocated resources 286 - * reads from configuration space, shmem, etc. 283 + * qed_iov_hw_info(): Read sriov related information and allocated resources 284 + * reads from configuration space, shmem, etc. 287 285 * 288 - * @param p_hwfn 286 + * @p_hwfn: HW device data. 289 287 * 290 - * @return int 288 + * Return: Int. 291 289 */ 292 290 int qed_iov_hw_info(struct qed_hwfn *p_hwfn); 293 291 294 292 /** 295 - * @brief qed_add_tlv - place a given tlv on the tlv buffer at next offset 293 + * qed_add_tlv(): place a given tlv on the tlv buffer at next offset 296 294 * 297 - * @param p_hwfn 298 - * @param p_iov 299 - * @param type 300 - * @param length 295 + * @p_hwfn: HW device data. 296 + * @offset: offset. 297 + * @type: Type 298 + * @length: Length. 301 299 * 302 - * @return pointer to the newly placed tlv 300 + * Return: pointer to the newly placed tlv 303 301 */ 304 302 void *qed_add_tlv(struct qed_hwfn *p_hwfn, u8 **offset, u16 type, u16 length); 305 303 306 304 /** 307 - * @brief list the types and lengths of the tlvs on the buffer 305 + * qed_dp_tlv_list(): list the types and lengths of the tlvs on the buffer 308 306 * 309 - * @param p_hwfn 310 - * @param tlvs_list 307 + * @p_hwfn: HW device data. 308 + * @tlvs_list: Tlvs_list. 309 + * 310 + * Return: Void. 311 311 */ 312 312 void qed_dp_tlv_list(struct qed_hwfn *p_hwfn, void *tlvs_list); 313 313 314 314 /** 315 - * @brief qed_iov_alloc - allocate sriov related resources 315 + * qed_iov_alloc(): allocate sriov related resources 316 316 * 317 - * @param p_hwfn 317 + * @p_hwfn: HW device data. 318 318 * 319 - * @return int 319 + * Return: Int. 320 320 */ 321 321 int qed_iov_alloc(struct qed_hwfn *p_hwfn); 322 322 323 323 /** 324 - * @brief qed_iov_setup - setup sriov related resources 324 + * qed_iov_setup(): setup sriov related resources 325 325 * 326 - * @param p_hwfn 326 + * @p_hwfn: HW device data. 327 + * 328 + * Return: Void. 327 329 */ 328 330 void qed_iov_setup(struct qed_hwfn *p_hwfn); 329 331 330 332 /** 331 - * @brief qed_iov_free - free sriov related resources 333 + * qed_iov_free(): free sriov related resources 332 334 * 333 - * @param p_hwfn 335 + * @p_hwfn: HW device data. 336 + * 337 + * Return: Void. 334 338 */ 335 339 void qed_iov_free(struct qed_hwfn *p_hwfn); 336 340 337 341 /** 338 - * @brief free sriov related memory that was allocated during hw_prepare 342 + * qed_iov_free_hw_info(): free sriov related memory that was 343 + * allocated during hw_prepare 339 344 * 340 - * @param cdev 345 + * @cdev: Qed dev pointer. 346 + * 347 + * Return: Void. 341 348 */ 342 349 void qed_iov_free_hw_info(struct qed_dev *cdev); 343 350 344 351 /** 345 - * @brief Mark structs of vfs that have been FLR-ed. 352 + * qed_iov_mark_vf_flr(): Mark structs of vfs that have been FLR-ed. 346 353 * 347 - * @param p_hwfn 348 - * @param disabled_vfs - bitmask of all VFs on path that were FLRed 354 + * @p_hwfn: HW device data. 355 + * @disabled_vfs: bitmask of all VFs on path that were FLRed 349 356 * 350 - * @return true iff one of the PF's vfs got FLRed. false otherwise. 357 + * Return: true iff one of the PF's vfs got FLRed. false otherwise. 351 358 */ 352 359 bool qed_iov_mark_vf_flr(struct qed_hwfn *p_hwfn, u32 *disabled_vfs); 353 360 354 361 /** 355 - * @brief Search extended TLVs in request/reply buffer. 362 + * qed_iov_search_list_tlvs(): Search extended TLVs in request/reply buffer. 356 363 * 357 - * @param p_hwfn 358 - * @param p_tlvs_list - Pointer to tlvs list 359 - * @param req_type - Type of TLV 364 + * @p_hwfn: HW device data. 365 + * @p_tlvs_list: Pointer to tlvs list 366 + * @req_type: Type of TLV 360 367 * 361 - * @return pointer to tlv type if found, otherwise returns NULL. 368 + * Return: pointer to tlv type if found, otherwise returns NULL. 362 369 */ 363 370 void *qed_iov_search_list_tlvs(struct qed_hwfn *p_hwfn, 364 371 void *p_tlvs_list, u16 req_type);
+169 -132
drivers/net/ethernet/qlogic/qed/qed_vf.h
··· 688 688 }; 689 689 690 690 /** 691 - * @brief VF - Set Rx/Tx coalesce per VF's relative queue. 692 - * Coalesce value '0' will omit the configuration. 691 + * qed_vf_pf_set_coalesce(): VF - Set Rx/Tx coalesce per VF's relative queue. 692 + * Coalesce value '0' will omit the 693 + * configuration. 693 694 * 694 - * @param p_hwfn 695 - * @param rx_coal - coalesce value in micro second for rx queue 696 - * @param tx_coal - coalesce value in micro second for tx queue 697 - * @param p_cid - queue cid 695 + * @p_hwfn: HW device data. 696 + * @rx_coal: coalesce value in micro second for rx queue. 697 + * @tx_coal: coalesce value in micro second for tx queue. 698 + * @p_cid: queue cid. 699 + * 700 + * Return: Int. 698 701 * 699 702 **/ 700 703 int qed_vf_pf_set_coalesce(struct qed_hwfn *p_hwfn, ··· 705 702 u16 tx_coal, struct qed_queue_cid *p_cid); 706 703 707 704 /** 708 - * @brief VF - Get coalesce per VF's relative queue. 705 + * qed_vf_pf_get_coalesce(): VF - Get coalesce per VF's relative queue. 709 706 * 710 - * @param p_hwfn 711 - * @param p_coal - coalesce value in micro second for VF queues. 712 - * @param p_cid - queue cid 707 + * @p_hwfn: HW device data. 708 + * @p_coal: coalesce value in micro second for VF queues. 709 + * @p_cid: queue cid. 713 710 * 711 + * Return: Int. 714 712 **/ 715 713 int qed_vf_pf_get_coalesce(struct qed_hwfn *p_hwfn, 716 714 u16 *p_coal, struct qed_queue_cid *p_cid); 717 715 718 716 #ifdef CONFIG_QED_SRIOV 719 717 /** 720 - * @brief Read the VF bulletin and act on it if needed 718 + * qed_vf_read_bulletin(): Read the VF bulletin and act on it if needed. 721 719 * 722 - * @param p_hwfn 723 - * @param p_change - qed fills 1 iff bulletin board has changed, 0 otherwise. 720 + * @p_hwfn: HW device data. 721 + * @p_change: qed fills 1 iff bulletin board has changed, 0 otherwise. 724 722 * 725 - * @return enum _qed_status 723 + * Return: enum _qed_status. 726 724 */ 727 725 int qed_vf_read_bulletin(struct qed_hwfn *p_hwfn, u8 *p_change); 728 726 729 727 /** 730 - * @brief Get link paramters for VF from qed 728 + * qed_vf_get_link_params(): Get link parameters for VF from qed 731 729 * 732 - * @param p_hwfn 733 - * @param params - the link params structure to be filled for the VF 730 + * @p_hwfn: HW device data. 731 + * @params: the link params structure to be filled for the VF. 732 + * 733 + * Return: Void. 734 734 */ 735 735 void qed_vf_get_link_params(struct qed_hwfn *p_hwfn, 736 736 struct qed_mcp_link_params *params); 737 737 738 738 /** 739 - * @brief Get link state for VF from qed 739 + * qed_vf_get_link_state(): Get link state for VF from qed. 740 740 * 741 - * @param p_hwfn 742 - * @param link - the link state structure to be filled for the VF 741 + * @p_hwfn: HW device data. 742 + * @link: the link state structure to be filled for the VF 743 + * 744 + * Return: Void. 743 745 */ 744 746 void qed_vf_get_link_state(struct qed_hwfn *p_hwfn, 745 747 struct qed_mcp_link_state *link); 746 748 747 749 /** 748 - * @brief Get link capabilities for VF from qed 750 + * qed_vf_get_link_caps(): Get link capabilities for VF from qed. 749 751 * 750 - * @param p_hwfn 751 - * @param p_link_caps - the link capabilities structure to be filled for the VF 752 + * @p_hwfn: HW device data. 753 + * @p_link_caps: the link capabilities structure to be filled for the VF 754 + * 755 + * Return: Void. 752 756 */ 753 757 void qed_vf_get_link_caps(struct qed_hwfn *p_hwfn, 754 758 struct qed_mcp_link_capabilities *p_link_caps); 755 759 756 760 /** 757 - * @brief Get number of Rx queues allocated for VF by qed 761 + * qed_vf_get_num_rxqs(): Get number of Rx queues allocated for VF by qed 758 762 * 759 - * @param p_hwfn 760 - * @param num_rxqs - allocated RX queues 763 + * @p_hwfn: HW device data. 764 + * @num_rxqs: allocated RX queues 765 + * 766 + * Return: Void. 761 767 */ 762 768 void qed_vf_get_num_rxqs(struct qed_hwfn *p_hwfn, u8 *num_rxqs); 763 769 764 770 /** 765 - * @brief Get number of Rx queues allocated for VF by qed 771 + * qed_vf_get_num_txqs(): Get number of Rx queues allocated for VF by qed 766 772 * 767 - * @param p_hwfn 768 - * @param num_txqs - allocated RX queues 773 + * @p_hwfn: HW device data. 774 + * @num_txqs: allocated RX queues 775 + * 776 + * Return: Void. 769 777 */ 770 778 void qed_vf_get_num_txqs(struct qed_hwfn *p_hwfn, u8 *num_txqs); 771 779 772 780 /** 773 - * @brief Get number of available connections [both Rx and Tx] for VF 781 + * qed_vf_get_num_cids(): Get number of available connections 782 + * [both Rx and Tx] for VF 774 783 * 775 - * @param p_hwfn 776 - * @param num_cids - allocated number of connections 784 + * @p_hwfn: HW device data. 785 + * @num_cids: allocated number of connections 786 + * 787 + * Return: Void. 777 788 */ 778 789 void qed_vf_get_num_cids(struct qed_hwfn *p_hwfn, u8 *num_cids); 779 790 780 791 /** 781 - * @brief Get port mac address for VF 792 + * qed_vf_get_port_mac(): Get port mac address for VF. 782 793 * 783 - * @param p_hwfn 784 - * @param port_mac - destination location for port mac 794 + * @p_hwfn: HW device data. 795 + * @port_mac: destination location for port mac 796 + * 797 + * Return: Void. 785 798 */ 786 799 void qed_vf_get_port_mac(struct qed_hwfn *p_hwfn, u8 *port_mac); 787 800 788 801 /** 789 - * @brief Get number of VLAN filters allocated for VF by qed 802 + * qed_vf_get_num_vlan_filters(): Get number of VLAN filters allocated 803 + * for VF by qed. 790 804 * 791 - * @param p_hwfn 792 - * @param num_rxqs - allocated VLAN filters 805 + * @p_hwfn: HW device data. 806 + * @num_vlan_filters: allocated VLAN filters 807 + * 808 + * Return: Void. 793 809 */ 794 810 void qed_vf_get_num_vlan_filters(struct qed_hwfn *p_hwfn, 795 811 u8 *num_vlan_filters); 796 812 797 813 /** 798 - * @brief Get number of MAC filters allocated for VF by qed 814 + * qed_vf_get_num_mac_filters(): Get number of MAC filters allocated 815 + * for VF by qed 799 816 * 800 - * @param p_hwfn 801 - * @param num_rxqs - allocated MAC filters 817 + * @p_hwfn: HW device data. 818 + * @num_mac_filters: allocated MAC filters 819 + * 820 + * Return: Void. 802 821 */ 803 822 void qed_vf_get_num_mac_filters(struct qed_hwfn *p_hwfn, u8 *num_mac_filters); 804 823 805 824 /** 806 - * @brief Check if VF can set a MAC address 825 + * qed_vf_check_mac(): Check if VF can set a MAC address 807 826 * 808 - * @param p_hwfn 809 - * @param mac 827 + * @p_hwfn: HW device data. 828 + * @mac: Mac. 810 829 * 811 - * @return bool 830 + * Return: bool. 812 831 */ 813 832 bool qed_vf_check_mac(struct qed_hwfn *p_hwfn, u8 *mac); 814 833 815 834 /** 816 - * @brief Set firmware version information in dev_info from VFs acquire response tlv 835 + * qed_vf_get_fw_version(): Set firmware version information 836 + * in dev_info from VFs acquire response tlv 817 837 * 818 - * @param p_hwfn 819 - * @param fw_major 820 - * @param fw_minor 821 - * @param fw_rev 822 - * @param fw_eng 838 + * @p_hwfn: HW device data. 839 + * @fw_major: FW major. 840 + * @fw_minor: FW minor. 841 + * @fw_rev: FW rev. 842 + * @fw_eng: FW eng. 843 + * 844 + * Return: Void. 823 845 */ 824 846 void qed_vf_get_fw_version(struct qed_hwfn *p_hwfn, 825 847 u16 *fw_major, u16 *fw_minor, 826 848 u16 *fw_rev, u16 *fw_eng); 827 849 828 850 /** 829 - * @brief hw preparation for VF 830 - * sends ACQUIRE message 851 + * qed_vf_hw_prepare(): hw preparation for VF sends ACQUIRE message 831 852 * 832 - * @param p_hwfn 853 + * @p_hwfn: HW device data. 833 854 * 834 - * @return int 855 + * Return: Int. 835 856 */ 836 857 int qed_vf_hw_prepare(struct qed_hwfn *p_hwfn); 837 858 838 859 /** 839 - * @brief VF - start the RX Queue by sending a message to the PF 840 - * @param p_hwfn 841 - * @param p_cid - Only relative fields are relevant 842 - * @param bd_max_bytes - maximum number of bytes per bd 843 - * @param bd_chain_phys_addr - physical address of bd chain 844 - * @param cqe_pbl_addr - physical address of pbl 845 - * @param cqe_pbl_size - pbl size 846 - * @param pp_prod - pointer to the producer to be 847 - * used in fastpath 860 + * qed_vf_pf_rxq_start(): start the RX Queue by sending a message to the PF 848 861 * 849 - * @return int 862 + * @p_hwfn: HW device data. 863 + * @p_cid: Only relative fields are relevant 864 + * @bd_max_bytes: maximum number of bytes per bd 865 + * @bd_chain_phys_addr: physical address of bd chain 866 + * @cqe_pbl_addr: physical address of pbl 867 + * @cqe_pbl_size: pbl size 868 + * @pp_prod: pointer to the producer to be used in fastpath 869 + * 870 + * Return: Int. 850 871 */ 851 872 int qed_vf_pf_rxq_start(struct qed_hwfn *p_hwfn, 852 873 struct qed_queue_cid *p_cid, ··· 880 853 u16 cqe_pbl_size, void __iomem **pp_prod); 881 854 882 855 /** 883 - * @brief VF - start the TX queue by sending a message to the 884 - * PF. 856 + * qed_vf_pf_txq_start(): VF - start the TX queue by sending a message to the 857 + * PF. 885 858 * 886 - * @param p_hwfn 887 - * @param tx_queue_id - zero based within the VF 888 - * @param sb - status block for this queue 889 - * @param sb_index - index within the status block 890 - * @param bd_chain_phys_addr - physical address of tx chain 891 - * @param pp_doorbell - pointer to address to which to 892 - * write the doorbell too.. 859 + * @p_hwfn: HW device data. 860 + * @p_cid: CID. 861 + * @pbl_addr: PBL address. 862 + * @pbl_size: PBL Size. 863 + * @pp_doorbell: pointer to address to which to write the doorbell too. 893 864 * 894 - * @return int 865 + * Return: Int. 895 866 */ 896 867 int 897 868 qed_vf_pf_txq_start(struct qed_hwfn *p_hwfn, ··· 898 873 u16 pbl_size, void __iomem **pp_doorbell); 899 874 900 875 /** 901 - * @brief VF - stop the RX queue by sending a message to the PF 876 + * qed_vf_pf_rxq_stop(): VF - stop the RX queue by sending a message to the PF. 902 877 * 903 - * @param p_hwfn 904 - * @param p_cid 905 - * @param cqe_completion 878 + * @p_hwfn: HW device data. 879 + * @p_cid: CID. 880 + * @cqe_completion: CQE Completion. 906 881 * 907 - * @return int 882 + * Return: Int. 908 883 */ 909 884 int qed_vf_pf_rxq_stop(struct qed_hwfn *p_hwfn, 910 885 struct qed_queue_cid *p_cid, bool cqe_completion); 911 886 912 887 /** 913 - * @brief VF - stop the TX queue by sending a message to the PF 888 + * qed_vf_pf_txq_stop(): VF - stop the TX queue by sending a message to the PF. 914 889 * 915 - * @param p_hwfn 916 - * @param tx_qid 890 + * @p_hwfn: HW device data. 891 + * @p_cid: CID. 917 892 * 918 - * @return int 893 + * Return: Int. 919 894 */ 920 895 int qed_vf_pf_txq_stop(struct qed_hwfn *p_hwfn, struct qed_queue_cid *p_cid); 921 896 922 897 /** 923 - * @brief VF - send a vport update command 898 + * qed_vf_pf_vport_update(): VF - send a vport update command. 924 899 * 925 - * @param p_hwfn 926 - * @param params 900 + * @p_hwfn: HW device data. 901 + * @p_params: Params 927 902 * 928 - * @return int 903 + * Return: Int. 929 904 */ 930 905 int qed_vf_pf_vport_update(struct qed_hwfn *p_hwfn, 931 906 struct qed_sp_vport_update_params *p_params); 932 907 933 908 /** 909 + * qed_vf_pf_reset(): VF - send a close message to PF. 934 910 * 935 - * @brief VF - send a close message to PF 911 + * @p_hwfn: HW device data. 936 912 * 937 - * @param p_hwfn 938 - * 939 - * @return enum _qed_status 913 + * Return: enum _qed_status 940 914 */ 941 915 int qed_vf_pf_reset(struct qed_hwfn *p_hwfn); 942 916 943 917 /** 944 - * @brief VF - free vf`s memories 918 + * qed_vf_pf_release(): VF - free vf`s memories. 945 919 * 946 - * @param p_hwfn 920 + * @p_hwfn: HW device data. 947 921 * 948 - * @return enum _qed_status 922 + * Return: enum _qed_status 949 923 */ 950 924 int qed_vf_pf_release(struct qed_hwfn *p_hwfn); 951 925 952 926 /** 953 - * @brief qed_vf_get_igu_sb_id - Get the IGU SB ID for a given 927 + * qed_vf_get_igu_sb_id(): Get the IGU SB ID for a given 954 928 * sb_id. For VFs igu sbs don't have to be contiguous 955 929 * 956 - * @param p_hwfn 957 - * @param sb_id 930 + * @p_hwfn: HW device data. 931 + * @sb_id: SB ID. 958 932 * 959 - * @return INLINE u16 933 + * Return: INLINE u16 960 934 */ 961 935 u16 qed_vf_get_igu_sb_id(struct qed_hwfn *p_hwfn, u16 sb_id); 962 936 963 937 /** 964 - * @brief Stores [or removes] a configured sb_info. 938 + * qed_vf_set_sb_info(): Stores [or removes] a configured sb_info. 965 939 * 966 - * @param p_hwfn 967 - * @param sb_id - zero-based SB index [for fastpath] 968 - * @param sb_info - may be NULL [during removal]. 940 + * @p_hwfn: HW device data. 941 + * @sb_id: zero-based SB index [for fastpath] 942 + * @p_sb: may be NULL [during removal]. 943 + * 944 + * Return: Void. 969 945 */ 970 946 void qed_vf_set_sb_info(struct qed_hwfn *p_hwfn, 971 947 u16 sb_id, struct qed_sb_info *p_sb); 972 948 973 949 /** 974 - * @brief qed_vf_pf_vport_start - perform vport start for VF. 950 + * qed_vf_pf_vport_start(): perform vport start for VF. 975 951 * 976 - * @param p_hwfn 977 - * @param vport_id 978 - * @param mtu 979 - * @param inner_vlan_removal 980 - * @param tpa_mode 981 - * @param max_buffers_per_cqe, 982 - * @param only_untagged - default behavior regarding vlan acceptance 952 + * @p_hwfn: HW device data. 953 + * @vport_id: Vport ID. 954 + * @mtu: MTU. 955 + * @inner_vlan_removal: Innter VLAN removal. 956 + * @tpa_mode: TPA mode 957 + * @max_buffers_per_cqe: Max buffer pre CQE. 958 + * @only_untagged: default behavior regarding vlan acceptance 983 959 * 984 - * @return enum _qed_status 960 + * Return: enum _qed_status 985 961 */ 986 962 int qed_vf_pf_vport_start(struct qed_hwfn *p_hwfn, 987 963 u8 vport_id, ··· 992 966 u8 max_buffers_per_cqe, u8 only_untagged); 993 967 994 968 /** 995 - * @brief qed_vf_pf_vport_stop - stop the VF's vport 969 + * qed_vf_pf_vport_stop(): stop the VF's vport 996 970 * 997 - * @param p_hwfn 971 + * @p_hwfn: HW device data. 998 972 * 999 - * @return enum _qed_status 973 + * Return: enum _qed_status 1000 974 */ 1001 975 int qed_vf_pf_vport_stop(struct qed_hwfn *p_hwfn); 1002 976 ··· 1007 981 struct qed_filter_mcast *p_filter_cmd); 1008 982 1009 983 /** 1010 - * @brief qed_vf_pf_int_cleanup - clean the SB of the VF 984 + * qed_vf_pf_int_cleanup(): clean the SB of the VF 1011 985 * 1012 - * @param p_hwfn 986 + * @p_hwfn: HW device data. 1013 987 * 1014 - * @return enum _qed_status 988 + * Return: enum _qed_status 1015 989 */ 1016 990 int qed_vf_pf_int_cleanup(struct qed_hwfn *p_hwfn); 1017 991 1018 992 /** 1019 - * @brief - return the link params in a given bulletin board 993 + * __qed_vf_get_link_params(): return the link params in a given bulletin board 1020 994 * 1021 - * @param p_hwfn 1022 - * @param p_params - pointer to a struct to fill with link params 1023 - * @param p_bulletin 995 + * @p_hwfn: HW device data. 996 + * @p_params: pointer to a struct to fill with link params 997 + * @p_bulletin: Bulletin. 998 + * 999 + * Return: Void. 1024 1000 */ 1025 1001 void __qed_vf_get_link_params(struct qed_hwfn *p_hwfn, 1026 1002 struct qed_mcp_link_params *p_params, 1027 1003 struct qed_bulletin_content *p_bulletin); 1028 1004 1029 1005 /** 1030 - * @brief - return the link state in a given bulletin board 1006 + * __qed_vf_get_link_state(): return the link state in a given bulletin board 1031 1007 * 1032 - * @param p_hwfn 1033 - * @param p_link - pointer to a struct to fill with link state 1034 - * @param p_bulletin 1008 + * @p_hwfn: HW device data. 1009 + * @p_link: pointer to a struct to fill with link state 1010 + * @p_bulletin: Bulletin. 1011 + * 1012 + * Return: Void. 1035 1013 */ 1036 1014 void __qed_vf_get_link_state(struct qed_hwfn *p_hwfn, 1037 1015 struct qed_mcp_link_state *p_link, 1038 1016 struct qed_bulletin_content *p_bulletin); 1039 1017 1040 1018 /** 1041 - * @brief - return the link capabilities in a given bulletin board 1019 + * __qed_vf_get_link_caps(): return the link capabilities in a given 1020 + * bulletin board 1042 1021 * 1043 - * @param p_hwfn 1044 - * @param p_link - pointer to a struct to fill with link capabilities 1045 - * @param p_bulletin 1022 + * @p_hwfn: HW device data. 1023 + * @p_link_caps: pointer to a struct to fill with link capabilities 1024 + * @p_bulletin: Bulletin. 1025 + * 1026 + * Return: Void. 1046 1027 */ 1047 1028 void __qed_vf_get_link_caps(struct qed_hwfn *p_hwfn, 1048 1029 struct qed_mcp_link_capabilities *p_link_caps, ··· 1062 1029 1063 1030 u32 qed_vf_hw_bar_size(struct qed_hwfn *p_hwfn, enum BAR_ID bar_id); 1064 1031 /** 1065 - * @brief - Ask PF to update the MAC address in it's bulletin board 1032 + * qed_vf_pf_bulletin_update_mac(): Ask PF to update the MAC address in 1033 + * it's bulletin board 1066 1034 * 1067 - * @param p_mac - mac address to be updated in bulletin board 1035 + * @p_hwfn: HW device data. 1036 + * @p_mac: mac address to be updated in bulletin board 1037 + * 1038 + * Return: Int. 1068 1039 */ 1069 1040 int qed_vf_pf_bulletin_update_mac(struct qed_hwfn *p_hwfn, u8 *p_mac); 1070 1041
+4 -1
drivers/net/ethernet/qlogic/qede/qede_main.c
··· 2800 2800 } 2801 2801 2802 2802 /** 2803 - * qede_io_error_detected - called when PCI error is detected 2803 + * qede_io_error_detected(): Called when PCI error is detected 2804 + * 2804 2805 * @pdev: Pointer to PCI device 2805 2806 * @state: The current pci connection state 2807 + * 2808 + *Return: pci_ers_result_t. 2806 2809 * 2807 2810 * This function is called after a PCI bus error affecting 2808 2811 * this device has been detected.
+52 -45
include/linux/qed/qed_chain.h
··· 268 268 } 269 269 270 270 /** 271 - * @brief qed_chain_advance_page - 271 + * qed_chain_advance_page(): Advance the next element across pages for a 272 + * linked chain. 272 273 * 273 - * Advance the next element across pages for a linked chain 274 + * @p_chain: P_chain. 275 + * @p_next_elem: P_next_elem. 276 + * @idx_to_inc: Idx_to_inc. 277 + * @page_to_inc: page_to_inc. 274 278 * 275 - * @param p_chain 276 - * @param p_next_elem 277 - * @param idx_to_inc 278 - * @param page_to_inc 279 + * Return: Void. 279 280 */ 280 281 static inline void 281 282 qed_chain_advance_page(struct qed_chain *p_chain, ··· 337 336 } while (0) 338 337 339 338 /** 340 - * @brief qed_chain_return_produced - 339 + * qed_chain_return_produced(): A chain in which the driver "Produces" 340 + * elements should use this API 341 + * to indicate previous produced elements 342 + * are now consumed. 341 343 * 342 - * A chain in which the driver "Produces" elements should use this API 343 - * to indicate previous produced elements are now consumed. 344 + * @p_chain: Chain. 344 345 * 345 - * @param p_chain 346 + * Return: Void. 346 347 */ 347 348 static inline void qed_chain_return_produced(struct qed_chain *p_chain) 348 349 { ··· 356 353 } 357 354 358 355 /** 359 - * @brief qed_chain_produce - 356 + * qed_chain_produce(): A chain in which the driver "Produces" 357 + * elements should use this to get a pointer to 358 + * the next element which can be "Produced". It's driver 359 + * responsibility to validate that the chain has room for 360 + * new element. 360 361 * 361 - * A chain in which the driver "Produces" elements should use this to get 362 - * a pointer to the next element which can be "Produced". It's driver 363 - * responsibility to validate that the chain has room for new element. 362 + * @p_chain: Chain. 364 363 * 365 - * @param p_chain 366 - * 367 - * @return void*, a pointer to next element 364 + * Return: void*, a pointer to next element. 368 365 */ 369 366 static inline void *qed_chain_produce(struct qed_chain *p_chain) 370 367 { ··· 398 395 } 399 396 400 397 /** 401 - * @brief qed_chain_get_capacity - 398 + * qed_chain_get_capacity(): Get the maximum number of BDs in chain 402 399 * 403 - * Get the maximum number of BDs in chain 400 + * @p_chain: Chain. 404 401 * 405 - * @param p_chain 406 - * @param num 407 - * 408 - * @return number of unusable BDs 402 + * Return: number of unusable BDs. 409 403 */ 410 404 static inline u32 qed_chain_get_capacity(struct qed_chain *p_chain) 411 405 { ··· 410 410 } 411 411 412 412 /** 413 - * @brief qed_chain_recycle_consumed - 413 + * qed_chain_recycle_consumed(): Returns an element which was 414 + * previously consumed; 415 + * Increments producers so they could 416 + * be written to FW. 414 417 * 415 - * Returns an element which was previously consumed; 416 - * Increments producers so they could be written to FW. 418 + * @p_chain: Chain. 417 419 * 418 - * @param p_chain 420 + * Return: Void. 419 421 */ 420 422 static inline void qed_chain_recycle_consumed(struct qed_chain *p_chain) 421 423 { ··· 429 427 } 430 428 431 429 /** 432 - * @brief qed_chain_consume - 430 + * qed_chain_consume(): A Chain in which the driver utilizes data written 431 + * by a different source (i.e., FW) should use this to 432 + * access passed buffers. 433 433 * 434 - * A Chain in which the driver utilizes data written by a different source 435 - * (i.e., FW) should use this to access passed buffers. 434 + * @p_chain: Chain. 436 435 * 437 - * @param p_chain 438 - * 439 - * @return void*, a pointer to the next buffer written 436 + * Return: void*, a pointer to the next buffer written. 440 437 */ 441 438 static inline void *qed_chain_consume(struct qed_chain *p_chain) 442 439 { ··· 469 468 } 470 469 471 470 /** 472 - * @brief qed_chain_reset - Resets the chain to its start state 471 + * qed_chain_reset(): Resets the chain to its start state. 473 472 * 474 - * @param p_chain pointer to a previously allocated chain 473 + * @p_chain: pointer to a previously allocated chain. 474 + * 475 + * Return Void. 475 476 */ 476 477 static inline void qed_chain_reset(struct qed_chain *p_chain) 477 478 { ··· 522 519 } 523 520 524 521 /** 525 - * @brief qed_chain_get_last_elem - 522 + * qed_chain_get_last_elem(): Returns a pointer to the last element of the 523 + * chain. 526 524 * 527 - * Returns a pointer to the last element of the chain 525 + * @p_chain: Chain. 528 526 * 529 - * @param p_chain 530 - * 531 - * @return void* 527 + * Return: void*. 532 528 */ 533 529 static inline void *qed_chain_get_last_elem(struct qed_chain *p_chain) 534 530 { ··· 565 563 } 566 564 567 565 /** 568 - * @brief qed_chain_set_prod - sets the prod to the given value 566 + * qed_chain_set_prod(): sets the prod to the given value. 569 567 * 570 - * @param prod_idx 571 - * @param p_prod_elem 568 + * @p_chain: Chain. 569 + * @prod_idx: Prod Idx. 570 + * @p_prod_elem: Prod elem. 571 + * 572 + * Return Void. 572 573 */ 573 574 static inline void qed_chain_set_prod(struct qed_chain *p_chain, 574 575 u32 prod_idx, void *p_prod_elem) ··· 615 610 } 616 611 617 612 /** 618 - * @brief qed_chain_pbl_zero_mem - set chain memory to 0 613 + * qed_chain_pbl_zero_mem(): set chain memory to 0. 619 614 * 620 - * @param p_chain 615 + * @p_chain: Chain. 616 + * 617 + * Return: Void. 621 618 */ 622 619 static inline void qed_chain_pbl_zero_mem(struct qed_chain *p_chain) 623 620 {
+139 -116
include/linux/qed/qed_if.h
··· 819 819 820 820 struct qed_selftest_ops { 821 821 /** 822 - * @brief selftest_interrupt - Perform interrupt test 822 + * selftest_interrupt(): Perform interrupt test. 823 823 * 824 - * @param cdev 824 + * @cdev: Qed dev pointer. 825 825 * 826 - * @return 0 on success, error otherwise. 826 + * Return: 0 on success, error otherwise. 827 827 */ 828 828 int (*selftest_interrupt)(struct qed_dev *cdev); 829 829 830 830 /** 831 - * @brief selftest_memory - Perform memory test 831 + * selftest_memory(): Perform memory test. 832 832 * 833 - * @param cdev 833 + * @cdev: Qed dev pointer. 834 834 * 835 - * @return 0 on success, error otherwise. 835 + * Return: 0 on success, error otherwise. 836 836 */ 837 837 int (*selftest_memory)(struct qed_dev *cdev); 838 838 839 839 /** 840 - * @brief selftest_register - Perform register test 840 + * selftest_register(): Perform register test. 841 841 * 842 - * @param cdev 842 + * @cdev: Qed dev pointer. 843 843 * 844 - * @return 0 on success, error otherwise. 844 + * Return: 0 on success, error otherwise. 845 845 */ 846 846 int (*selftest_register)(struct qed_dev *cdev); 847 847 848 848 /** 849 - * @brief selftest_clock - Perform clock test 849 + * selftest_clock(): Perform clock test. 850 850 * 851 - * @param cdev 851 + * @cdev: Qed dev pointer. 852 852 * 853 - * @return 0 on success, error otherwise. 853 + * Return: 0 on success, error otherwise. 854 854 */ 855 855 int (*selftest_clock)(struct qed_dev *cdev); 856 856 857 857 /** 858 - * @brief selftest_nvram - Perform nvram test 858 + * selftest_nvram(): Perform nvram test. 859 859 * 860 - * @param cdev 860 + * @cdev: Qed dev pointer. 861 861 * 862 - * @return 0 on success, error otherwise. 862 + * Return: 0 on success, error otherwise. 863 863 */ 864 864 int (*selftest_nvram) (struct qed_dev *cdev); 865 865 }; ··· 927 927 enum qed_hw_err_type err_type); 928 928 929 929 /** 930 - * @brief can_link_change - can the instance change the link or not 930 + * can_link_change(): can the instance change the link or not. 931 931 * 932 - * @param cdev 932 + * @cdev: Qed dev pointer. 933 933 * 934 - * @return true if link-change is allowed, false otherwise. 934 + * Return: true if link-change is allowed, false otherwise. 935 935 */ 936 936 bool (*can_link_change)(struct qed_dev *cdev); 937 937 938 938 /** 939 - * @brief set_link - set links according to params 939 + * set_link(): set links according to params. 940 940 * 941 - * @param cdev 942 - * @param params - values used to override the default link configuration 941 + * @cdev: Qed dev pointer. 942 + * @params: values used to override the default link configuration. 943 943 * 944 - * @return 0 on success, error otherwise. 944 + * Return: 0 on success, error otherwise. 945 945 */ 946 946 int (*set_link)(struct qed_dev *cdev, 947 947 struct qed_link_params *params); 948 948 949 949 /** 950 - * @brief get_link - returns the current link state. 950 + * get_link(): returns the current link state. 951 951 * 952 - * @param cdev 953 - * @param if_link - structure to be filled with current link configuration. 952 + * @cdev: Qed dev pointer. 953 + * @if_link: structure to be filled with current link configuration. 954 + * 955 + * Return: Void. 954 956 */ 955 957 void (*get_link)(struct qed_dev *cdev, 956 958 struct qed_link_output *if_link); 957 959 958 960 /** 959 - * @brief - drains chip in case Tx completions fail to arrive due to pause. 961 + * drain(): drains chip in case Tx completions fail to arrive due to pause. 960 962 * 961 - * @param cdev 963 + * @cdev: Qed dev pointer. 964 + * 965 + * Return: Int. 962 966 */ 963 967 int (*drain)(struct qed_dev *cdev); 964 968 965 969 /** 966 - * @brief update_msglvl - update module debug level 970 + * update_msglvl(): update module debug level. 967 971 * 968 - * @param cdev 969 - * @param dp_module 970 - * @param dp_level 972 + * @cdev: Qed dev pointer. 973 + * @dp_module: Debug module. 974 + * @dp_level: Debug level. 975 + * 976 + * Return: Void. 971 977 */ 972 978 void (*update_msglvl)(struct qed_dev *cdev, 973 979 u32 dp_module, ··· 987 981 struct qed_chain *p_chain); 988 982 989 983 /** 990 - * @brief nvm_flash - Flash nvm data. 984 + * nvm_flash(): Flash nvm data. 991 985 * 992 - * @param cdev 993 - * @param name - file containing the data 986 + * @cdev: Qed dev pointer. 987 + * @name: file containing the data. 994 988 * 995 - * @return 0 on success, error otherwise. 989 + * Return: 0 on success, error otherwise. 996 990 */ 997 991 int (*nvm_flash)(struct qed_dev *cdev, const char *name); 998 992 999 993 /** 1000 - * @brief nvm_get_image - reads an entire image from nvram 994 + * nvm_get_image(): reads an entire image from nvram. 1001 995 * 1002 - * @param cdev 1003 - * @param type - type of the request nvram image 1004 - * @param buf - preallocated buffer to fill with the image 1005 - * @param len - length of the allocated buffer 996 + * @cdev: Qed dev pointer. 997 + * @type: type of the request nvram image. 998 + * @buf: preallocated buffer to fill with the image. 999 + * @len: length of the allocated buffer. 1006 1000 * 1007 - * @return 0 on success, error otherwise 1001 + * Return: 0 on success, error otherwise. 1008 1002 */ 1009 1003 int (*nvm_get_image)(struct qed_dev *cdev, 1010 1004 enum qed_nvm_images type, u8 *buf, u16 len); 1011 1005 1012 1006 /** 1013 - * @brief set_coalesce - Configure Rx coalesce value in usec 1007 + * set_coalesce(): Configure Rx coalesce value in usec. 1014 1008 * 1015 - * @param cdev 1016 - * @param rx_coal - Rx coalesce value in usec 1017 - * @param tx_coal - Tx coalesce value in usec 1018 - * @param qid - Queue index 1019 - * @param sb_id - Status Block Id 1009 + * @cdev: Qed dev pointer. 1010 + * @rx_coal: Rx coalesce value in usec. 1011 + * @tx_coal: Tx coalesce value in usec. 1012 + * @handle: Handle. 1020 1013 * 1021 - * @return 0 on success, error otherwise. 1014 + * Return: 0 on success, error otherwise. 1022 1015 */ 1023 1016 int (*set_coalesce)(struct qed_dev *cdev, 1024 1017 u16 rx_coal, u16 tx_coal, void *handle); 1025 1018 1026 1019 /** 1027 - * @brief set_led - Configure LED mode 1020 + * set_led() - Configure LED mode. 1028 1021 * 1029 - * @param cdev 1030 - * @param mode - LED mode 1022 + * @cdev: Qed dev pointer. 1023 + * @mode: LED mode. 1031 1024 * 1032 - * @return 0 on success, error otherwise. 1025 + * Return: 0 on success, error otherwise. 1033 1026 */ 1034 1027 int (*set_led)(struct qed_dev *cdev, 1035 1028 enum qed_led_mode mode); 1036 1029 1037 1030 /** 1038 - * @brief attn_clr_enable - Prevent attentions from being reasserted 1031 + * attn_clr_enable(): Prevent attentions from being reasserted. 1039 1032 * 1040 - * @param cdev 1041 - * @param clr_enable 1033 + * @cdev: Qed dev pointer. 1034 + * @clr_enable: Clear enable. 1035 + * 1036 + * Return: Void. 1042 1037 */ 1043 1038 void (*attn_clr_enable)(struct qed_dev *cdev, bool clr_enable); 1044 1039 1045 1040 /** 1046 - * @brief db_recovery_add - add doorbell information to the doorbell 1047 - * recovery mechanism. 1041 + * db_recovery_add(): add doorbell information to the doorbell 1042 + * recovery mechanism. 1048 1043 * 1049 - * @param cdev 1050 - * @param db_addr - doorbell address 1051 - * @param db_data - address of where db_data is stored 1052 - * @param db_is_32b - doorbell is 32b pr 64b 1053 - * @param db_is_user - doorbell recovery addresses are user or kernel space 1044 + * @cdev: Qed dev pointer. 1045 + * @db_addr: Doorbell address. 1046 + * @db_data: Dddress of where db_data is stored. 1047 + * @db_width: Doorbell is 32b or 64b. 1048 + * @db_space: Doorbell recovery addresses are user or kernel space. 1049 + * 1050 + * Return: Int. 1054 1051 */ 1055 1052 int (*db_recovery_add)(struct qed_dev *cdev, 1056 1053 void __iomem *db_addr, ··· 1062 1053 enum qed_db_rec_space db_space); 1063 1054 1064 1055 /** 1065 - * @brief db_recovery_del - remove doorbell information from the doorbell 1056 + * db_recovery_del(): remove doorbell information from the doorbell 1066 1057 * recovery mechanism. db_data serves as key (db_addr is not unique). 1067 1058 * 1068 - * @param cdev 1069 - * @param db_addr - doorbell address 1070 - * @param db_data - address where db_data is stored. Serves as key for the 1071 - * entry to delete. 1059 + * @cdev: Qed dev pointer. 1060 + * @db_addr: Doorbell address. 1061 + * @db_data: Address where db_data is stored. Serves as key for the 1062 + * entry to delete. 1063 + * 1064 + * Return: Int. 1072 1065 */ 1073 1066 int (*db_recovery_del)(struct qed_dev *cdev, 1074 1067 void __iomem *db_addr, void *db_data); 1075 1068 1076 1069 /** 1077 - * @brief recovery_process - Trigger a recovery process 1070 + * recovery_process(): Trigger a recovery process. 1078 1071 * 1079 - * @param cdev 1072 + * @cdev: Qed dev pointer. 1080 1073 * 1081 - * @return 0 on success, error otherwise. 1074 + * Return: 0 on success, error otherwise. 1082 1075 */ 1083 1076 int (*recovery_process)(struct qed_dev *cdev); 1084 1077 1085 1078 /** 1086 - * @brief recovery_prolog - Execute the prolog operations of a recovery process 1079 + * recovery_prolog(): Execute the prolog operations of a recovery process. 1087 1080 * 1088 - * @param cdev 1081 + * @cdev: Qed dev pointer. 1089 1082 * 1090 - * @return 0 on success, error otherwise. 1083 + * Return: 0 on success, error otherwise. 1091 1084 */ 1092 1085 int (*recovery_prolog)(struct qed_dev *cdev); 1093 1086 1094 1087 /** 1095 - * @brief update_drv_state - API to inform the change in the driver state. 1088 + * update_drv_state(): API to inform the change in the driver state. 1096 1089 * 1097 - * @param cdev 1098 - * @param active 1090 + * @cdev: Qed dev pointer. 1091 + * @active: Active 1099 1092 * 1093 + * Return: Int. 1100 1094 */ 1101 1095 int (*update_drv_state)(struct qed_dev *cdev, bool active); 1102 1096 1103 1097 /** 1104 - * @brief update_mac - API to inform the change in the mac address 1098 + * update_mac(): API to inform the change in the mac address. 1105 1099 * 1106 - * @param cdev 1107 - * @param mac 1100 + * @cdev: Qed dev pointer. 1101 + * @mac: MAC. 1108 1102 * 1103 + * Return: Int. 1109 1104 */ 1110 1105 int (*update_mac)(struct qed_dev *cdev, u8 *mac); 1111 1106 1112 1107 /** 1113 - * @brief update_mtu - API to inform the change in the mtu 1108 + * update_mtu(): API to inform the change in the mtu. 1114 1109 * 1115 - * @param cdev 1116 - * @param mtu 1110 + * @cdev: Qed dev pointer. 1111 + * @mtu: MTU. 1117 1112 * 1113 + * Return: Int. 1118 1114 */ 1119 1115 int (*update_mtu)(struct qed_dev *cdev, u16 mtu); 1120 1116 1121 1117 /** 1122 - * @brief update_wol - update of changes in the WoL configuration 1118 + * update_wol(): Update of changes in the WoL configuration. 1123 1119 * 1124 - * @param cdev 1125 - * @param enabled - true iff WoL should be enabled. 1120 + * @cdev: Qed dev pointer. 1121 + * @enabled: true iff WoL should be enabled. 1122 + * 1123 + * Return: Int. 1126 1124 */ 1127 1125 int (*update_wol) (struct qed_dev *cdev, bool enabled); 1128 1126 1129 1127 /** 1130 - * @brief read_module_eeprom 1128 + * read_module_eeprom(): Read EEPROM. 1131 1129 * 1132 - * @param cdev 1133 - * @param buf - buffer 1134 - * @param dev_addr - PHY device memory region 1135 - * @param offset - offset into eeprom contents to be read 1136 - * @param len - buffer length, i.e., max bytes to be read 1130 + * @cdev: Qed dev pointer. 1131 + * @buf: buffer. 1132 + * @dev_addr: PHY device memory region. 1133 + * @offset: offset into eeprom contents to be read. 1134 + * @len: buffer length, i.e., max bytes to be read. 1135 + * 1136 + * Return: Int. 1137 1137 */ 1138 1138 int (*read_module_eeprom)(struct qed_dev *cdev, 1139 1139 char *buf, u8 dev_addr, u32 offset, u32 len); 1140 1140 1141 1141 /** 1142 - * @brief get_affin_hwfn_idx 1142 + * get_affin_hwfn_idx(): Get affine HW function. 1143 1143 * 1144 - * @param cdev 1144 + * @cdev: Qed dev pointer. 1145 + * 1146 + * Return: u8. 1145 1147 */ 1146 1148 u8 (*get_affin_hwfn_idx)(struct qed_dev *cdev); 1147 1149 1148 1150 /** 1149 - * @brief read_nvm_cfg - Read NVM config attribute value. 1150 - * @param cdev 1151 - * @param buf - buffer 1152 - * @param cmd - NVM CFG command id 1153 - * @param entity_id - Entity id 1151 + * read_nvm_cfg(): Read NVM config attribute value. 1154 1152 * 1153 + * @cdev: Qed dev pointer. 1154 + * @buf: Buffer. 1155 + * @cmd: NVM CFG command id. 1156 + * @entity_id: Entity id. 1157 + * 1158 + * Return: Int. 1155 1159 */ 1156 1160 int (*read_nvm_cfg)(struct qed_dev *cdev, u8 **buf, u32 cmd, 1157 1161 u32 entity_id); 1158 1162 /** 1159 - * @brief read_nvm_cfg - Read NVM config attribute value. 1160 - * @param cdev 1161 - * @param cmd - NVM CFG command id 1163 + * read_nvm_cfg_len(): Read NVM config attribute value. 1162 1164 * 1163 - * @return config id length, 0 on error. 1165 + * @cdev: Qed dev pointer. 1166 + * @cmd: NVM CFG command id. 1167 + * 1168 + * Return: config id length, 0 on error. 1164 1169 */ 1165 1170 int (*read_nvm_cfg_len)(struct qed_dev *cdev, u32 cmd); 1166 1171 1167 1172 /** 1168 - * @brief set_grc_config - Configure value for grc config id. 1169 - * @param cdev 1170 - * @param cfg_id - grc config id 1171 - * @param val - grc config value 1173 + * set_grc_config(): Configure value for grc config id. 1172 1174 * 1175 + * @cdev: Qed dev pointer. 1176 + * @cfg_id: grc config id 1177 + * @val: grc config value 1178 + * 1179 + * Return: Int. 1173 1180 */ 1174 1181 int (*set_grc_config)(struct qed_dev *cdev, u32 cfg_id, u32 val); 1175 1182 ··· 1422 1397 } 1423 1398 1424 1399 /** 1400 + * qed_sb_ack(): This function creates an update command for interrupts 1401 + * that is written to the IGU. 1425 1402 * 1426 - * @brief This function creates an update command for interrupts that is 1427 - * written to the IGU. 1403 + * @sb_info: This is the structure allocated and 1404 + * initialized per status block. Assumption is 1405 + * that it was initialized using qed_sb_init 1406 + * @int_cmd: Enable/Disable/Nop 1407 + * @upd_flg: Whether igu consumer should be updated. 1428 1408 * 1429 - * @param sb_info - This is the structure allocated and 1430 - * initialized per status block. Assumption is 1431 - * that it was initialized using qed_sb_init 1432 - * @param int_cmd - Enable/Disable/Nop 1433 - * @param upd_flg - whether igu consumer should be 1434 - * updated. 1435 - * 1436 - * @return inline void 1409 + * Return: inline void. 1437 1410 */ 1438 1411 static inline void qed_sb_ack(struct qed_sb_info *sb_info, 1439 1412 enum igu_int_cmd int_cmd,
+1 -1
include/linux/qed/qed_iscsi_if.h
··· 182 182 * @param stats - pointer to struck that would be filled 183 183 * we stats 184 184 * @return 0 on success, error otherwise. 185 - * @change_mac Change MAC of interface 185 + * @change_mac: Change MAC of interface 186 186 * @param cdev 187 187 * @param handle - the connection handle. 188 188 * @param mac - new MAC to configure.
+21 -21
include/linux/qed/qed_ll2_if.h
··· 208 208 209 209 struct qed_ll2_ops { 210 210 /** 211 - * @brief start - initializes ll2 211 + * start(): Initializes ll2. 212 212 * 213 - * @param cdev 214 - * @param params - protocol driver configuration for the ll2. 213 + * @cdev: Qed dev pointer. 214 + * @params: Protocol driver configuration for the ll2. 215 215 * 216 - * @return 0 on success, otherwise error value. 216 + * Return: 0 on success, otherwise error value. 217 217 */ 218 218 int (*start)(struct qed_dev *cdev, struct qed_ll2_params *params); 219 219 220 220 /** 221 - * @brief stop - stops the ll2 221 + * stop(): Stops the ll2 222 222 * 223 - * @param cdev 223 + * @cdev: Qed dev pointer. 224 224 * 225 - * @return 0 on success, otherwise error value. 225 + * Return: 0 on success, otherwise error value. 226 226 */ 227 227 int (*stop)(struct qed_dev *cdev); 228 228 229 229 /** 230 - * @brief start_xmit - transmits an skb over the ll2 interface 230 + * start_xmit(): Transmits an skb over the ll2 interface 231 231 * 232 - * @param cdev 233 - * @param skb 234 - * @param xmit_flags - Transmit options defined by the enum qed_ll2_xmit_flags. 232 + * @cdev: Qed dev pointer. 233 + * @skb: SKB. 234 + * @xmit_flags: Transmit options defined by the enum qed_ll2_xmit_flags. 235 235 * 236 - * @return 0 on success, otherwise error value. 236 + * Return: 0 on success, otherwise error value. 237 237 */ 238 238 int (*start_xmit)(struct qed_dev *cdev, struct sk_buff *skb, 239 239 unsigned long xmit_flags); 240 240 241 241 /** 242 - * @brief register_cb_ops - protocol driver register the callback for Rx/Tx 242 + * register_cb_ops(): Protocol driver register the callback for Rx/Tx 243 243 * packets. Should be called before `start'. 244 244 * 245 - * @param cdev 246 - * @param cookie - to be passed to the callback functions. 247 - * @param ops - the callback functions to register for Rx / Tx. 245 + * @cdev: Qed dev pointer. 246 + * @cookie: to be passed to the callback functions. 247 + * @ops: the callback functions to register for Rx / Tx. 248 248 * 249 - * @return 0 on success, otherwise error value. 249 + * Return: 0 on success, otherwise error value. 250 250 */ 251 251 void (*register_cb_ops)(struct qed_dev *cdev, 252 252 const struct qed_ll2_cb_ops *ops, 253 253 void *cookie); 254 254 255 255 /** 256 - * @brief get LL2 related statistics 256 + * get_stats(): Get LL2 related statistics. 257 257 * 258 - * @param cdev 259 - * @param stats - pointer to struct that would be filled with stats 258 + * @cdev: Qed dev pointer. 259 + * @stats: Pointer to struct that would be filled with stats. 260 260 * 261 - * @return 0 on success, error otherwise. 261 + * Return: 0 on success, error otherwise. 262 262 */ 263 263 int (*get_stats)(struct qed_dev *cdev, struct qed_ll2_stats *stats); 264 264 };
+17
include/linux/qed/qed_nvmetcp_if.h
··· 171 171 * @param dest_port 172 172 * @clear_all_filters: Clear all filters. 173 173 * @param cdev 174 + * @init_read_io: Init read IO. 175 + * @task_params 176 + * @cmd_pdu_header 177 + * @nvme_cmd 178 + * @sgl_task_params 179 + * @init_write_io: Init write IO. 180 + * @task_params 181 + * @cmd_pdu_header 182 + * @nvme_cmd 183 + * @sgl_task_params 184 + * @init_icreq_exchange: Exchange ICReq. 185 + * @task_params 186 + * @init_conn_req_pdu_hdr 187 + * @tx_sgl_task_params 188 + * @rx_sgl_task_params 189 + * @init_task_cleanup: Init task cleanup. 190 + * @task_params 174 191 */ 175 192 struct qed_nvmetcp_ops { 176 193 const struct qed_common_ops *common;