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

scsi: lpfc: Fix-up around 120 documentation issues

Fixes the following W=1 kernel build warning(s):

drivers/scsi/lpfc/lpfc_sli.c:257: warning: Function parameter or member 'mqe' not described in 'lpfc_sli4_mq_put'
drivers/scsi/lpfc/lpfc_sli.c:257: warning: Excess function parameter 'wqe' description in 'lpfc_sli4_mq_put'
drivers/scsi/lpfc/lpfc_sli.c:675: warning: Function parameter or member 'hq' not described in 'lpfc_sli4_rq_put'
drivers/scsi/lpfc/lpfc_sli.c:675: warning: Function parameter or member 'dq' not described in 'lpfc_sli4_rq_put'
drivers/scsi/lpfc/lpfc_sli.c:675: warning: Function parameter or member 'hrqe' not described in 'lpfc_sli4_rq_put'
drivers/scsi/lpfc/lpfc_sli.c:675: warning: Function parameter or member 'drqe' not described in 'lpfc_sli4_rq_put'
drivers/scsi/lpfc/lpfc_sli.c:675: warning: Excess function parameter 'q' description in 'lpfc_sli4_rq_put'
drivers/scsi/lpfc/lpfc_sli.c:675: warning: Excess function parameter 'wqe' description in 'lpfc_sli4_rq_put'
drivers/scsi/lpfc/lpfc_sli.c:738: warning: Function parameter or member 'hq' not described in 'lpfc_sli4_rq_release'
drivers/scsi/lpfc/lpfc_sli.c:738: warning: Function parameter or member 'dq' not described in 'lpfc_sli4_rq_release'
drivers/scsi/lpfc/lpfc_sli.c:738: warning: Excess function parameter 'q' description in 'lpfc_sli4_rq_release'
drivers/scsi/lpfc/lpfc_sli.c:1021: warning: Function parameter or member 'xritag' not described in 'lpfc_test_rrq_active'
drivers/scsi/lpfc/lpfc_sli.c:1132: warning: Function parameter or member 'piocbq' not described in '__lpfc_sli_get_els_sglq'
drivers/scsi/lpfc/lpfc_sli.c:1132: warning: Excess function parameter 'piocb' description in '__lpfc_sli_get_els_sglq'
drivers/scsi/lpfc/lpfc_sli.c:1207: warning: Function parameter or member 'piocbq' not described in '__lpfc_sli_get_nvmet_sglq'
drivers/scsi/lpfc/lpfc_sli.c:1207: warning: Excess function parameter 'piocb' description in '__lpfc_sli_get_nvmet_sglq'
drivers/scsi/lpfc/lpfc_sli.c:2243: warning: Function parameter or member 'rb_list' not described in 'lpfc_sli_hbqbuf_get'
drivers/scsi/lpfc/lpfc_sli.c:2243: warning: Excess function parameter 'phba' description in 'lpfc_sli_hbqbuf_get'
drivers/scsi/lpfc/lpfc_sli.c:2243: warning: Excess function parameter 'hbqno' description in 'lpfc_sli_hbqbuf_get'
drivers/scsi/lpfc/lpfc_sli.c:2262: warning: Function parameter or member 'hrq' not described in 'lpfc_sli_rqbuf_get'
drivers/scsi/lpfc/lpfc_sli.c:2262: warning: Excess function parameter 'hbqno' description in 'lpfc_sli_rqbuf_get'
drivers/scsi/lpfc/lpfc_sli.c:3429: warning: Function parameter or member 't' not described in 'lpfc_poll_eratt'
drivers/scsi/lpfc/lpfc_sli.c:3429: warning: Excess function parameter 'ptr' description in 'lpfc_poll_eratt'
drivers/scsi/lpfc/lpfc_sli.c:4115: warning: Excess function parameter 'pring' description in 'lpfc_sli_abort_fcp_rings'
drivers/scsi/lpfc/lpfc_sli.c:5331: warning: Excess function parameter 'mboxq' description in 'lpfc_sli4_read_fcoe_params'
drivers/scsi/lpfc/lpfc_sli.c:5879: warning: Function parameter or member 'extnt_cnt' not described in 'lpfc_sli4_cfg_post_extnts'
drivers/scsi/lpfc/lpfc_sli.c:5879: warning: Function parameter or member 'type' not described in 'lpfc_sli4_cfg_post_extnts'
drivers/scsi/lpfc/lpfc_sli.c:5879: warning: Function parameter or member 'emb' not described in 'lpfc_sli4_cfg_post_extnts'
drivers/scsi/lpfc/lpfc_sli.c:5879: warning: Function parameter or member 'mbox' not described in 'lpfc_sli4_cfg_post_extnts'
drivers/scsi/lpfc/lpfc_sli.c:6459: warning: Function parameter or member 'pmb' not described in 'lpfc_sli4_ras_mbox_cmpl'
drivers/scsi/lpfc/lpfc_sli.c:6459: warning: Excess function parameter 'pmboxq' description in 'lpfc_sli4_ras_mbox_cmpl'
drivers/scsi/lpfc/lpfc_sli.c:6912: warning: Function parameter or member 'extnt_cnt' not described in 'lpfc_sli4_get_allocated_extnts'
drivers/scsi/lpfc/lpfc_sli.c:6912: warning: Excess function parameter 'extnt_count' description in 'lpfc_sli4_get_allocated_extnts'
drivers/scsi/lpfc/lpfc_sli.c:7064: warning: Excess function parameter 'pring' description in 'lpfc_sli4_repost_sgl_list'
drivers/scsi/lpfc/lpfc_sli.c:7312: warning: Function parameter or member 'phba' not described in 'lpfc_init_idle_stat_hb'
drivers/scsi/lpfc/lpfc_sli.c:8022: warning: Function parameter or member 't' not described in 'lpfc_mbox_timeout'
drivers/scsi/lpfc/lpfc_sli.c:8022: warning: Excess function parameter 'ptr' description in 'lpfc_mbox_timeout'
drivers/scsi/lpfc/lpfc_sli.c:8902: warning: Function parameter or member 'mboxq' not described in 'lpfc_sli_issue_mbox_s4'
drivers/scsi/lpfc/lpfc_sli.c:8902: warning: Excess function parameter 'pmbox' description in 'lpfc_sli_issue_mbox_s4'
drivers/scsi/lpfc/lpfc_sli.c:9413: warning: Function parameter or member 'piocbq' not described in 'lpfc_sli4_bpl2sgl'
drivers/scsi/lpfc/lpfc_sli.c:9413: warning: Excess function parameter 'piocb' description in 'lpfc_sli4_bpl2sgl'
drivers/scsi/lpfc/lpfc_sli.c:9518: warning: Function parameter or member 'iocbq' not described in 'lpfc_sli4_iocb2wqe'
drivers/scsi/lpfc/lpfc_sli.c:9518: warning: Excess function parameter 'piocb' description in 'lpfc_sli4_iocb2wqe'
drivers/scsi/lpfc/lpfc_sli.c:10212: warning: Function parameter or member 'phba' not described in '__lpfc_sli_issue_iocb'
drivers/scsi/lpfc/lpfc_sli.c:10212: warning: Function parameter or member 'ring_number' not described in '__lpfc_sli_issue_iocb'
drivers/scsi/lpfc/lpfc_sli.c:10212: warning: Function parameter or member 'piocb' not described in '__lpfc_sli_issue_iocb'
drivers/scsi/lpfc/lpfc_sli.c:10212: warning: Function parameter or member 'flag' not described in '__lpfc_sli_issue_iocb'
drivers/scsi/lpfc/lpfc_sli.c:10300: warning: Function parameter or member 'ring_number' not described in 'lpfc_sli_issue_iocb'
drivers/scsi/lpfc/lpfc_sli.c:10300: warning: Excess function parameter 'pring' description in 'lpfc_sli_issue_iocb'
drivers/scsi/lpfc/lpfc_sli.c:11807: warning: Function parameter or member 'cmd' not described in 'lpfc_sli_abort_taskmgmt'
drivers/scsi/lpfc/lpfc_sli.c:11807: warning: Excess function parameter 'taskmgmt_cmd' description in 'lpfc_sli_abort_taskmgmt'
drivers/scsi/lpfc/lpfc_sli.c:12067: warning: Function parameter or member 'ring_number' not described in 'lpfc_sli_issue_iocb_wait'
drivers/scsi/lpfc/lpfc_sli.c:12067: warning: Excess function parameter 'pring' description in 'lpfc_sli_issue_iocb_wait'
drivers/scsi/lpfc/lpfc_sli.c:12262: warning: Function parameter or member 'mbx_action' not described in 'lpfc_sli_mbox_sys_shutdown'
drivers/scsi/lpfc/lpfc_sli.c:13219: warning: Function parameter or member 'irspiocbq' not described in 'lpfc_sli4_els_wcqe_to_rspiocbq'
drivers/scsi/lpfc/lpfc_sli.c:13219: warning: Excess function parameter 'wcqe' description in 'lpfc_sli4_els_wcqe_to_rspiocbq'
drivers/scsi/lpfc/lpfc_sli.c:13285: warning: Function parameter or member 'mcqe' not described in 'lpfc_sli4_sp_handle_async_event'
drivers/scsi/lpfc/lpfc_sli.c:13285: warning: Excess function parameter 'cqe' description in 'lpfc_sli4_sp_handle_async_event'
drivers/scsi/lpfc/lpfc_sli.c:13318: warning: Function parameter or member 'mcqe' not described in 'lpfc_sli4_sp_handle_mbox_event'
drivers/scsi/lpfc/lpfc_sli.c:13318: warning: Excess function parameter 'cqe' description in 'lpfc_sli4_sp_handle_mbox_event'
drivers/scsi/lpfc/lpfc_sli.c:13441: warning: Function parameter or member 'cq' not described in 'lpfc_sli4_sp_handle_mcqe'
drivers/scsi/lpfc/lpfc_sli.c:13768: warning: Function parameter or member 'speq' not described in 'lpfc_sli4_sp_handle_eqe'
drivers/scsi/lpfc/lpfc_sli.c:14126: warning: Function parameter or member 'cq' not described in 'lpfc_sli4_nvmet_handle_rcqe'
drivers/scsi/lpfc/lpfc_sli.c:14235: warning: Function parameter or member 'cqe' not described in 'lpfc_sli4_fp_handle_cqe'
drivers/scsi/lpfc/lpfc_sli.c:14235: warning: Excess function parameter 'eqe' description in 'lpfc_sli4_fp_handle_cqe'
drivers/scsi/lpfc/lpfc_sli.c:14336: warning: Function parameter or member 'eq' not described in 'lpfc_sli4_hba_handle_eqe'
drivers/scsi/lpfc/lpfc_sli.c:14808: warning: Function parameter or member 'entry_count' not described in 'lpfc_sli4_queue_alloc'
drivers/scsi/lpfc/lpfc_sli.c:15185: warning: Function parameter or member 'type' not described in 'lpfc_cq_create'
drivers/scsi/lpfc/lpfc_sli.c:15185: warning: Function parameter or member 'subtype' not described in 'lpfc_cq_create'
drivers/scsi/lpfc/lpfc_sli.c:15333: warning: Function parameter or member 'type' not described in 'lpfc_cq_create_set'
drivers/scsi/lpfc/lpfc_sli.c:15333: warning: Function parameter or member 'subtype' not described in 'lpfc_cq_create_set'
drivers/scsi/lpfc/lpfc_sli.c:16063: warning: Function parameter or member 'subtype' not described in 'lpfc_rq_create'
drivers/scsi/lpfc/lpfc_sli.c:16353: warning: Function parameter or member 'subtype' not described in 'lpfc_mrq_create'
drivers/scsi/lpfc/lpfc_sli.c:16533: warning: Function parameter or member 'phba' not described in 'lpfc_eq_destroy'
drivers/scsi/lpfc/lpfc_sli.c:16590: warning: Function parameter or member 'phba' not described in 'lpfc_cq_destroy'
drivers/scsi/lpfc/lpfc_sli.c:16644: warning: Function parameter or member 'phba' not described in 'lpfc_mq_destroy'
drivers/scsi/lpfc/lpfc_sli.c:16644: warning: Function parameter or member 'mq' not described in 'lpfc_mq_destroy'
drivers/scsi/lpfc/lpfc_sli.c:16644: warning: Excess function parameter 'qm' description in 'lpfc_mq_destroy'
drivers/scsi/lpfc/lpfc_sli.c:16698: warning: Function parameter or member 'phba' not described in 'lpfc_wq_destroy'
drivers/scsi/lpfc/lpfc_sli.c:16754: warning: Function parameter or member 'phba' not described in 'lpfc_rq_destroy'
drivers/scsi/lpfc/lpfc_sli.c:16754: warning: Function parameter or member 'hrq' not described in 'lpfc_rq_destroy'
drivers/scsi/lpfc/lpfc_sli.c:16754: warning: Function parameter or member 'drq' not described in 'lpfc_rq_destroy'
drivers/scsi/lpfc/lpfc_sli.c:16754: warning: Excess function parameter 'rq' description in 'lpfc_rq_destroy'
drivers/scsi/lpfc/lpfc_sli.c:16940: warning: Function parameter or member 'xri' not described in '__lpfc_sli4_free_xri'
drivers/scsi/lpfc/lpfc_sli.c:16955: warning: Function parameter or member 'xri' not described in 'lpfc_sli4_free_xri'
drivers/scsi/lpfc/lpfc_sli.c:17002: warning: Function parameter or member 'post_cnt' not described in 'lpfc_sli4_post_sgl_list'
drivers/scsi/lpfc/lpfc_sli.c:17002: warning: Excess function parameter 'count' description in 'lpfc_sli4_post_sgl_list'
drivers/scsi/lpfc/lpfc_sli.c:17221: warning: Function parameter or member 'sb_count' not described in 'lpfc_sli4_post_io_sgl_list'
drivers/scsi/lpfc/lpfc_sli.c:17451: warning: Function parameter or member 'did' not described in 'lpfc_fc_frame_to_vport'
drivers/scsi/lpfc/lpfc_sli.c:17590: warning: Function parameter or member 'vport' not described in 'lpfc_fc_frame_add'
drivers/scsi/lpfc/lpfc_sli.c:17817: warning: Function parameter or member 'vport' not described in 'lpfc_sli4_seq_abort_rsp'
drivers/scsi/lpfc/lpfc_sli.c:17817: warning: Function parameter or member 'aborted' not described in 'lpfc_sli4_seq_abort_rsp'
drivers/scsi/lpfc/lpfc_sli.c:17817: warning: Excess function parameter 'phba' description in 'lpfc_sli4_seq_abort_rsp'
drivers/scsi/lpfc/lpfc_sli.c:18060: warning: Function parameter or member 'seq_dmabuf' not described in 'lpfc_prep_seq'
drivers/scsi/lpfc/lpfc_sli.c:18060: warning: Excess function parameter 'dmabuf' description in 'lpfc_prep_seq'
drivers/scsi/lpfc/lpfc_sli.c:18332: warning: Function parameter or member 'dmabuf' not described in 'lpfc_sli4_handle_received_buffer'
drivers/scsi/lpfc/lpfc_sli.c:18655: warning: Function parameter or member 'rpi' not described in '__lpfc_sli4_free_rpi'
drivers/scsi/lpfc/lpfc_sli.c:18683: warning: Function parameter or member 'rpi' not described in 'lpfc_sli4_free_rpi'
drivers/scsi/lpfc/lpfc_sli.c:18714: warning: Function parameter or member 'ndlp' not described in 'lpfc_sli4_resume_rpi'
drivers/scsi/lpfc/lpfc_sli.c:18714: warning: Function parameter or member 'cmpl' not described in 'lpfc_sli4_resume_rpi'
drivers/scsi/lpfc/lpfc_sli.c:18714: warning: Function parameter or member 'arg' not described in 'lpfc_sli4_resume_rpi'
drivers/scsi/lpfc/lpfc_sli.c:18714: warning: Excess function parameter 'phba' description in 'lpfc_sli4_resume_rpi'
drivers/scsi/lpfc/lpfc_sli.c:19103: warning: Function parameter or member 'phba' not described in 'lpfc_check_next_fcf_pri_level'
drivers/scsi/lpfc/lpfc_sli.c:19266: warning: Function parameter or member 'fcf_index' not described in 'lpfc_sli4_fcf_rr_index_set'
drivers/scsi/lpfc/lpfc_sli.c:19295: warning: Function parameter or member 'fcf_index' not described in 'lpfc_sli4_fcf_rr_index_clear'
drivers/scsi/lpfc/lpfc_sli.c:19331: warning: Function parameter or member 'mbox' not described in 'lpfc_mbx_cmpl_redisc_fcf_table'
drivers/scsi/lpfc/lpfc_sli.c:20027: warning: Function parameter or member 'pwqeq' not described in 'lpfc_wqe_bpl2sgl'
drivers/scsi/lpfc/lpfc_sli.c:20027: warning: Excess function parameter 'pwqe' description in 'lpfc_wqe_bpl2sgl'
drivers/scsi/lpfc/lpfc_sli.c:20141: warning: Function parameter or member 'qp' not described in 'lpfc_sli4_issue_wqe'
drivers/scsi/lpfc/lpfc_sli.c:20141: warning: Excess function parameter 'ring_number' description in 'lpfc_sli4_issue_wqe'
drivers/scsi/lpfc/lpfc_sli.c:20434: warning: Function parameter or member 'qp' not described in '_lpfc_move_xri_pbl_to_pvt'
drivers/scsi/lpfc/lpfc_sli.c:20552: warning: Function parameter or member 'hwqid' not described in 'lpfc_keep_pvt_pool_above_lowwm'
drivers/scsi/lpfc/lpfc_sli.c:20552: warning: Excess function parameter 'qp' description in 'lpfc_keep_pvt_pool_above_lowwm'
drivers/scsi/lpfc/lpfc_sli.c:20682: warning: Function parameter or member 'qp' not described in 'lpfc_get_io_buf_from_private_pool'

Link: https://lore.kernel.org/r/20200721164148.2617584-24-lee.jones@linaro.org
Cc: James Smart <james.smart@broadcom.com>
Cc: Dick Kennedy <dick.kennedy@broadcom.com>
Cc: Sumit Semwal <sumit.semwal@linaro.org>
Cc: "Christian König" <christian.koenig@amd.com>
Cc: linux-media@vger.kernel.org
Cc: dri-devel@lists.freedesktop.org
Cc: linaro-mm-sig@lists.linaro.org
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>

authored by

Lee Jones and committed by
Martin K. Petersen
7af29d45 67b8b93a

+73 -46
+73 -46
drivers/scsi/lpfc/lpfc_sli.c
··· 243 243 /** 244 244 * lpfc_sli4_mq_put - Put a Mailbox Queue Entry on an Mailbox Queue 245 245 * @q: The Mailbox Queue to operate on. 246 - * @wqe: The Mailbox Queue Entry to put on the Work queue. 246 + * @mqe: The Mailbox Queue Entry to put on the Work queue. 247 247 * 248 248 * This routine will copy the contents of @mqe to the next available entry on 249 249 * the @q. This function will then ring the Work Queue Doorbell to signal the ··· 657 657 writel(doorbell.word0, q->phba->sli4_hba.CQDBregaddr); 658 658 } 659 659 660 - /** 660 + /* 661 661 * lpfc_sli4_rq_put - Put a Receive Buffer Queue Entry on a Receive Queue 662 - * @q: The Header Receive Queue to operate on. 663 - * @wqe: The Receive Queue Entry to put on the Receive queue. 664 662 * 665 663 * This routine will copy the contents of @wqe to the next available entry on 666 664 * the @q. This function will then ring the Receive Queue Doorbell to signal the ··· 721 723 return hq_put_index; 722 724 } 723 725 724 - /** 726 + /* 725 727 * lpfc_sli4_rq_release - Updates internal hba index for RQ 726 - * @q: The Header Receive Queue to operate on. 727 728 * 728 729 * This routine will update the HBA index of a queue to reflect consumption of 729 730 * one Receive Queue Entry by the HBA. When the HBA indicates that it has ··· 1006 1009 * lpfc_test_rrq_active - Test RRQ bit in xri_bitmap. 1007 1010 * @phba: Pointer to HBA context object. 1008 1011 * @ndlp: Targets nodelist pointer for this exchange. 1009 - * @xritag the xri in the bitmap to test. 1012 + * @xritag: the xri in the bitmap to test. 1010 1013 * 1011 1014 * This function returns: 1012 1015 * 0 = rrq not active for this xri ··· 1116 1119 /** 1117 1120 * __lpfc_sli_get_els_sglq - Allocates an iocb object from sgl pool 1118 1121 * @phba: Pointer to HBA context object. 1119 - * @piocb: Pointer to the iocbq. 1122 + * @piocbq: Pointer to the iocbq. 1120 1123 * 1121 1124 * The driver calls this function with either the nvme ls ring lock 1122 1125 * or the fc els ring lock held depending on the iocb usage. This function ··· 1192 1195 /** 1193 1196 * __lpfc_sli_get_nvmet_sglq - Allocates an iocb object from sgl pool 1194 1197 * @phba: Pointer to HBA context object. 1195 - * @piocb: Pointer to the iocbq. 1198 + * @piocbq: Pointer to the iocbq. 1196 1199 * 1197 1200 * This function is called with the sgl_list lock held. This function 1198 1201 * gets a new driver sglq object from the sglq list. If the ··· 2227 2230 lpfc_hbq_defs[qno]->init_count); 2228 2231 } 2229 2232 2230 - /** 2233 + /* 2231 2234 * lpfc_sli_hbqbuf_get - Remove the first hbq off of an hbq list 2232 - * @phba: Pointer to HBA context object. 2233 - * @hbqno: HBQ number. 2234 2235 * 2235 2236 * This function removes the first hbq buffer on an hbq list and returns a 2236 2237 * pointer to that buffer. If it finds no buffers on the list it returns NULL. ··· 2247 2252 /** 2248 2253 * lpfc_sli_rqbuf_get - Remove the first dma buffer off of an RQ list 2249 2254 * @phba: Pointer to HBA context object. 2250 - * @hbqno: HBQ number. 2255 + * @hrq: HBQ number. 2251 2256 * 2252 2257 * This function removes the first RQ buffer on an RQ buffer list and returns a 2253 2258 * pointer to that buffer. If it finds no buffers on the list it returns NULL. ··· 3412 3417 3413 3418 /** 3414 3419 * lpfc_poll_eratt - Error attention polling timer timeout handler 3415 - * @ptr: Pointer to address of HBA context object. 3420 + * @t: Context to fetch pointer to address of HBA context object from. 3416 3421 * 3417 3422 * This function is invoked by the Error Attention polling timer when the 3418 3423 * timer times out. It will check the SLI Error Attention register for ··· 4098 4103 /** 4099 4104 * lpfc_sli_abort_fcp_rings - Abort all iocbs in all FCP rings 4100 4105 * @phba: Pointer to HBA context object. 4101 - * @pring: Pointer to driver SLI ring object. 4102 4106 * 4103 4107 * This function aborts all iocbs in FCP rings and frees all the iocb 4104 4108 * objects in txq. This function issues an abort iocb for all the iocb commands ··· 5315 5321 /** 5316 5322 * lpfc_sli4_read_fcoe_params - Read fcoe params from conf region 5317 5323 * @phba: Pointer to HBA context object. 5318 - * @mboxq: mailbox pointer. 5324 + * 5319 5325 * This function issue a dump mailbox command to read config region 5320 5326 * 23 and parse the records in the region and populate driver 5321 5327 * data structure. ··· 5853 5859 /** 5854 5860 * lpfc_sli4_cfg_post_extnts - 5855 5861 * @phba: Pointer to HBA context object. 5856 - * @extnt_cnt - number of available extents. 5857 - * @type - the extent type (rpi, xri, vfi, vpi). 5858 - * @emb - buffer to hold either MBX_EMBED or MBX_NEMBED operation. 5859 - * @mbox - pointer to the caller's allocated mailbox structure. 5862 + * @extnt_cnt: number of available extents. 5863 + * @type: the extent type (rpi, xri, vfi, vpi). 5864 + * @emb: buffer to hold either MBX_EMBED or MBX_NEMBED operation. 5865 + * @mbox: pointer to the caller's allocated mailbox structure. 5860 5866 * 5861 5867 * This function executes the extents allocation request. It also 5862 5868 * takes care of the amount of memory needed to allocate or get the ··· 6444 6450 /** 6445 6451 * lpfc_sli4_ras_mbox_cmpl: Completion handler for RAS MBX command 6446 6452 * @phba: pointer to lpfc hba data structure. 6447 - * @pmboxq: pointer to the driver internal queue element for mailbox command. 6453 + * @pmb: pointer to the driver internal queue element for mailbox command. 6448 6454 * 6449 6455 * Completion handler for driver's RAS MBX command to the device. 6450 6456 **/ ··· 6894 6900 * lpfc_sli4_get_allocated_extnts - Get the port's allocated extents. 6895 6901 * @phba: Pointer to HBA context object. 6896 6902 * @type: The resource extent type. 6897 - * @extnt_count: buffer to hold port extent count response 6903 + * @extnt_cnt: buffer to hold port extent count response 6898 6904 * @extnt_size: buffer to hold port extent size response. 6899 6905 * 6900 6906 * This function calls the port to read the host allocated extents ··· 7038 7044 /** 7039 7045 * lpfc_sli4_repost_sgl_list - Repost the buffers sgl pages as block 7040 7046 * @phba: pointer to lpfc hba data structure. 7041 - * @pring: Pointer to driver SLI ring object. 7042 7047 * @sgl_list: linked link of sgl buffers to post 7043 7048 * @cnt: number of linked list buffers 7044 7049 * ··· 7294 7301 7295 7302 /** 7296 7303 * lpfc_init_idle_stat_hb - Initialize idle_stat tracking 7304 + * @phba: pointer to lpfc hba data structure. 7297 7305 * 7298 7306 * This routine initializes the per-cq idle_stat to dynamically dictate 7299 7307 * polling decisions. ··· 8001 8007 8002 8008 /** 8003 8009 * lpfc_mbox_timeout - Timeout call back function for mbox timer 8004 - * @ptr: context object - pointer to hba structure. 8010 + * @t: Context to fetch pointer to hba structure from. 8005 8011 * 8006 8012 * This is the callback function for mailbox timer. The mailbox 8007 8013 * timer is armed when a new mailbox command is issued and the timer ··· 8881 8887 /** 8882 8888 * lpfc_sli_issue_mbox_s4 - Issue an SLI4 mailbox command to firmware 8883 8889 * @phba: Pointer to HBA context object. 8884 - * @pmbox: Pointer to mailbox object. 8890 + * @mboxq: Pointer to mailbox object. 8885 8891 * @flag: Flag indicating how the mailbox need to be processed. 8886 8892 * 8887 8893 * This function is called by discovery code and HBA management code to submit ··· 9387 9393 /** 9388 9394 * lpfc_sli4_bpl2sgl - Convert the bpl/bde to a sgl. 9389 9395 * @phba: Pointer to HBA context object. 9390 - * @piocb: Pointer to command iocb. 9396 + * @piocbq: Pointer to command iocb. 9391 9397 * @sglq: Pointer to the scatter gather queue object. 9392 9398 * 9393 9399 * This routine converts the bpl or bde that is in the IOCB ··· 9495 9501 /** 9496 9502 * lpfc_sli_iocb2wqe - Convert the IOCB to a work queue entry. 9497 9503 * @phba: Pointer to HBA context object. 9498 - * @piocb: Pointer to command iocb. 9504 + * @iocbq: Pointer to command iocb. 9499 9505 * @wqe: Pointer to the work queue entry. 9500 9506 * 9501 9507 * This routine converts the iocb command to its Work Queue Entry ··· 10189 10195 return 0; 10190 10196 } 10191 10197 10192 - /** 10198 + /* 10193 10199 * __lpfc_sli_issue_iocb - Wrapper func of lockless version for issuing iocb 10194 10200 * 10195 10201 * This routine wraps the actual lockless version for issusing IOCB function ··· 10278 10284 /** 10279 10285 * lpfc_sli_issue_iocb - Wrapper function for __lpfc_sli_issue_iocb 10280 10286 * @phba: Pointer to HBA context object. 10281 - * @pring: Pointer to driver SLI ring object. 10287 + * @ring_number: Ring number 10282 10288 * @piocb: Pointer to command iocb. 10283 10289 * @flag: Flag indicating if this command can be put into txq. 10284 10290 * ··· 11779 11785 * @pring: Pointer to driver SLI ring object. 11780 11786 * @tgt_id: SCSI ID of the target. 11781 11787 * @lun_id: LUN ID of the scsi device. 11782 - * @taskmgmt_cmd: LPFC_CTX_LUN/LPFC_CTX_TGT/LPFC_CTX_HOST. 11788 + * @cmd: LPFC_CTX_LUN/LPFC_CTX_TGT/LPFC_CTX_HOST. 11783 11789 * 11784 11790 * This function sends an abort command for every SCSI command 11785 11791 * associated with the given virtual port pending on the ring ··· 12019 12025 /** 12020 12026 * lpfc_sli_issue_iocb_wait - Synchronous function to issue iocb commands 12021 12027 * @phba: Pointer to HBA context object.. 12022 - * @pring: Pointer to sli ring. 12028 + * @ring_number: Ring number 12023 12029 * @piocb: Pointer to command iocb. 12024 12030 * @prspiocbq: Pointer to response iocb. 12025 12031 * @timeout: Timeout in number of seconds. ··· 12239 12245 /** 12240 12246 * lpfc_sli_mbox_sys_shutdown - shutdown mailbox command sub-system 12241 12247 * @phba: Pointer to HBA context. 12248 + * @mbx_action: Mailbox shutdown options. 12242 12249 * 12243 12250 * This function is called to shutdown the driver's mailbox sub-system. 12244 12251 * It first marks the mailbox sub-system is in a block state to prevent ··· 13200 13205 /** 13201 13206 * lpfc_sli4_els_wcqe_to_rspiocbq - Get response iocbq from els wcqe 13202 13207 * @phba: Pointer to HBA context object. 13203 - * @wcqe: Pointer to work-queue completion queue entry. 13208 + * @irspiocbq: Pointer to work-queue completion queue entry. 13204 13209 * 13205 13210 * This routine handles an ELS work-queue completion event and construct 13206 13211 * a pseudo response ELS IODBQ from the SLI4 ELS WCQE for the common ··· 13268 13273 /** 13269 13274 * lpfc_sli4_sp_handle_async_event - Handle an asynchronous event 13270 13275 * @phba: Pointer to HBA context object. 13271 - * @cqe: Pointer to mailbox completion queue entry. 13276 + * @mcqe: Pointer to mailbox completion queue entry. 13272 13277 * 13273 13278 * This routine process a mailbox completion queue entry with asynchronous 13274 13279 * event. ··· 13301 13306 /** 13302 13307 * lpfc_sli4_sp_handle_mbox_event - Handle a mailbox completion event 13303 13308 * @phba: Pointer to HBA context object. 13304 - * @cqe: Pointer to mailbox completion queue entry. 13309 + * @mcqe: Pointer to mailbox completion queue entry. 13305 13310 * 13306 13311 * This routine process a mailbox completion queue entry with mailbox 13307 13312 * completion event. ··· 13422 13427 /** 13423 13428 * lpfc_sli4_sp_handle_mcqe - Process a mailbox completion queue entry 13424 13429 * @phba: Pointer to HBA context object. 13430 + * @cq: Pointer to associated CQ 13425 13431 * @cqe: Pointer to mailbox completion queue entry. 13426 13432 * 13427 13433 * This routine process a mailbox completion queue entry, it invokes the ··· 13749 13753 * lpfc_sli4_sp_handle_eqe - Process a slow-path event queue entry 13750 13754 * @phba: Pointer to HBA context object. 13751 13755 * @eqe: Pointer to fast-path event queue entry. 13756 + * @speq: Pointer to slow-path event queue. 13752 13757 * 13753 13758 * This routine process a event queue entry from the slow-path event queue. 13754 13759 * It will check the MajorCode and MinorCode to determine this is for a ··· 14111 14114 /** 14112 14115 * lpfc_sli4_nvmet_handle_rcqe - Process a receive-queue completion queue entry 14113 14116 * @phba: Pointer to HBA context object. 14117 + * @cq: Pointer to completion queue. 14114 14118 * @rcqe: Pointer to receive-queue completion queue entry. 14115 14119 * 14116 14120 * This routine process a receive-queue completion queue entry. ··· 14220 14222 * lpfc_sli4_fp_handle_cqe - Process fast-path work queue completion entry 14221 14223 * @phba: adapter with cq 14222 14224 * @cq: Pointer to the completion queue. 14223 - * @eqe: Pointer to fast-path completion queue entry. 14225 + * @cqe: Pointer to fast-path completion queue entry. 14224 14226 * 14225 14227 * This routine process a fast-path work queue completion entry from fast-path 14226 14228 * event queue for FCP command response completion. ··· 14319 14321 /** 14320 14322 * lpfc_sli4_hba_handle_eqe - Process a fast-path event queue entry 14321 14323 * @phba: Pointer to HBA context object. 14324 + * @eq: Pointer to the queue structure. 14322 14325 * @eqe: Pointer to fast-path event queue entry. 14323 14326 * 14324 14327 * This routine process a event queue entry from the fast-path event queue. ··· 14794 14795 * @phba: The HBA that this queue is being created on. 14795 14796 * @page_size: The size of a queue page 14796 14797 * @entry_size: The size of each queue entry for this queue. 14797 - * @entry count: The number of entries that this queue will handle. 14798 + * @entry_count: The number of entries that this queue will handle. 14798 14799 * @cpu: The cpu that will primarily utilize this queue. 14799 14800 * 14800 14801 * This function allocates a queue structure and the DMAable memory used for ··· 15162 15163 * @phba: HBA structure that indicates port to create a queue on. 15163 15164 * @cq: The queue structure to use to create the completion queue. 15164 15165 * @eq: The event queue to bind this completion queue to. 15166 + * @type: Type of queue (EQ, GCQ, MCQ, WCQ, etc). 15167 + * @subtype: Functional purpose of the queue (MBOX, IO, ELS, NVMET, etc). 15165 15168 * 15166 15169 * This function creates a completion queue, as detailed in @wq, on a port, 15167 15170 * described by @phba by sending a CQ_CREATE mailbox command to the HBA. ··· 15310 15309 * @phba: HBA structure that indicates port to create a queue on. 15311 15310 * @cqp: The queue structure array to use to create the completion queues. 15312 15311 * @hdwq: The hardware queue array with the EQ to bind completion queues to. 15312 + * @type: Type of queue (EQ, GCQ, MCQ, WCQ, etc). 15313 + * @subtype: Functional purpose of the queue (MBOX, IO, ELS, NVMET, etc). 15313 15314 * 15314 15315 * This function creates a set of completion queue, s to support MRQ 15315 15316 * as detailed in @cqp, on a port, ··· 16043 16040 * @hrq: The queue structure to use to create the header receive queue. 16044 16041 * @drq: The queue structure to use to create the data receive queue. 16045 16042 * @cq: The completion queue to bind this work queue to. 16043 + * @subtype: The subtype of the work queue indicating its functionality. 16046 16044 * 16047 16045 * This function creates a receive buffer queue pair , as detailed in @hrq and 16048 16046 * @drq, on a port, described by @phba by sending a RQ_CREATE mailbox command ··· 16333 16329 * @hrqp: The queue structure array to use to create the header receive queues. 16334 16330 * @drqp: The queue structure array to use to create the data receive queues. 16335 16331 * @cqp: The completion queue array to bind these receive queues to. 16332 + * @subtype: Functional purpose of the queue (MBOX, IO, ELS, NVMET, etc). 16336 16333 * 16337 16334 * This function creates a receive buffer queue pair , as detailed in @hrq and 16338 16335 * @drq, on a port, described by @phba by sending a RQ_CREATE mailbox command ··· 16523 16518 16524 16519 /** 16525 16520 * lpfc_eq_destroy - Destroy an event Queue on the HBA 16521 + * @phba: HBA structure that indicates port to destroy a queue on. 16526 16522 * @eq: The queue structure associated with the queue to destroy. 16527 16523 * 16528 16524 * This function destroys a queue, as detailed in @eq by sending an mailbox ··· 16581 16575 16582 16576 /** 16583 16577 * lpfc_cq_destroy - Destroy a Completion Queue on the HBA 16578 + * @phba: HBA structure that indicates port to destroy a queue on. 16584 16579 * @cq: The queue structure associated with the queue to destroy. 16585 16580 * 16586 16581 * This function destroys a queue, as detailed in @cq by sending an mailbox ··· 16636 16629 16637 16630 /** 16638 16631 * lpfc_mq_destroy - Destroy a Mailbox Queue on the HBA 16639 - * @qm: The queue structure associated with the queue to destroy. 16632 + * @phba: HBA structure that indicates port to destroy a queue on. 16633 + * @mq: The queue structure associated with the queue to destroy. 16640 16634 * 16641 16635 * This function destroys a queue, as detailed in @mq by sending an mailbox 16642 16636 * command, specific to the type of queue, to the HBA. ··· 16691 16683 16692 16684 /** 16693 16685 * lpfc_wq_destroy - Destroy a Work Queue on the HBA 16686 + * @phba: HBA structure that indicates port to destroy a queue on. 16694 16687 * @wq: The queue structure associated with the queue to destroy. 16695 16688 * 16696 16689 * This function destroys a queue, as detailed in @wq by sending an mailbox ··· 16747 16738 16748 16739 /** 16749 16740 * lpfc_rq_destroy - Destroy a Receive Queue on the HBA 16750 - * @rq: The queue structure associated with the queue to destroy. 16741 + * @phba: HBA structure that indicates port to destroy a queue on. 16742 + * @hrq: The queue structure associated with the queue to destroy. 16743 + * @drq: The queue structure associated with the queue to destroy. 16751 16744 * 16752 16745 * This function destroys a queue, as detailed in @rq by sending an mailbox 16753 16746 * command, specific to the type of queue, to the HBA. ··· 16942 16931 /** 16943 16932 * lpfc_sli4_free_xri - Release an xri for reuse. 16944 16933 * @phba: pointer to lpfc hba data structure. 16934 + * @xri: xri to release. 16945 16935 * 16946 16936 * This routine is invoked to release an xri to the pool of 16947 16937 * available rpis maintained by the driver. ··· 16958 16946 /** 16959 16947 * lpfc_sli4_free_xri - Release an xri for reuse. 16960 16948 * @phba: pointer to lpfc hba data structure. 16949 + * @xri: xri to release. 16961 16950 * 16962 16951 * This routine is invoked to release an xri to the pool of 16963 16952 * available rpis maintained by the driver. ··· 17001 16988 * lpfc_sli4_post_sgl_list - post a block of ELS sgls to the port. 17002 16989 * @phba: pointer to lpfc hba data structure. 17003 16990 * @post_sgl_list: pointer to els sgl entry list. 17004 - * @count: number of els sgl entries on the list. 16991 + * @post_cnt: number of els sgl entries on the list. 17005 16992 * 17006 16993 * This routine is invoked to post a block of driver's sgl pages to the 17007 16994 * HBA using non-embedded mailbox command. No Lock is held. This routine ··· 17218 17205 * lpfc_sli4_post_io_sgl_list - Post blocks of nvme buffer sgls from a list 17219 17206 * @phba: pointer to lpfc hba data structure. 17220 17207 * @post_nblist: pointer to the nvme buffer list. 17208 + * @sb_count: number of nvme buffers. 17221 17209 * 17222 17210 * This routine walks a list of nvme buffers that was passed in. It attempts 17223 17211 * to construct blocks of nvme buffer sgls which contains contiguous xris and ··· 17452 17438 * @phba: Pointer to the HBA structure to search for the vport on 17453 17439 * @fc_hdr: A pointer to the FC Header data (In Big Endian Format) 17454 17440 * @fcfi: The FC Fabric ID that the frame came from 17441 + * @did: Destination ID to match against 17455 17442 * 17456 17443 * This function searches the @phba for a vport that matches the content of the 17457 17444 * @fc_hdr passed in and the @fcfi. This function uses the @fc_hdr to fetch the ··· 17590 17575 17591 17576 /** 17592 17577 * lpfc_fc_frame_add - Adds a frame to the vport's list of received sequences 17578 + * @vport: pointer to a vitural port 17593 17579 * @dmabuf: pointer to a dmabuf that describes the hdr and data of the FC frame 17594 17580 * 17595 17581 * This function searches through the existing incomplete sequences that have ··· 17821 17805 17822 17806 /** 17823 17807 * lpfc_sli4_seq_abort_rsp - bls rsp to sequence abort 17824 - * @phba: Pointer to HBA context object. 17808 + * @vport: pointer to a vitural port. 17825 17809 * @fc_hdr: pointer to a FC frame header. 17810 + * @aborted: was the partially assembled receive sequence successfully aborted 17826 17811 * 17827 17812 * This function sends a basic response to a previous unsol sequence abort 17828 17813 * event after aborting the sequence handling. ··· 18062 18045 /** 18063 18046 * lpfc_prep_seq - Prep sequence for ULP processing 18064 18047 * @vport: Pointer to the vport on which this sequence was received 18065 - * @dmabuf: pointer to a dmabuf that describes the FC sequence 18048 + * @seq_dmabuf: pointer to a dmabuf that describes the FC sequence 18066 18049 * 18067 18050 * This function takes a sequence, described by a list of frames, and creates 18068 18051 * a list of iocbq structures to describe the sequence. This iocbq list will be ··· 18335 18318 /** 18336 18319 * lpfc_sli4_handle_received_buffer - Handle received buffers from firmware 18337 18320 * @phba: Pointer to HBA context object. 18321 + * @dmabuf: Pointer to a dmabuf that describes the FC sequence. 18338 18322 * 18339 18323 * This function is called with no lock held. This function processes all 18340 18324 * the received buffers and gives it to upper layers when a received buffer ··· 18664 18646 /** 18665 18647 * lpfc_sli4_free_rpi - Release an rpi for reuse. 18666 18648 * @phba: pointer to lpfc hba data structure. 18649 + * @rpi: rpi to free 18667 18650 * 18668 18651 * This routine is invoked to release an rpi to the pool of 18669 18652 * available rpis maintained by the driver. ··· 18693 18674 /** 18694 18675 * lpfc_sli4_free_rpi - Release an rpi for reuse. 18695 18676 * @phba: pointer to lpfc hba data structure. 18677 + * @rpi: rpi to free 18696 18678 * 18697 18679 * This routine is invoked to release an rpi to the pool of 18698 18680 * available rpis maintained by the driver. ··· 18723 18703 18724 18704 /** 18725 18705 * lpfc_sli4_resume_rpi - Remove the rpi bitmask region 18726 - * @phba: pointer to lpfc hba data structure. 18706 + * @ndlp: pointer to lpfc nodelist data structure. 18707 + * @cmpl: completion call-back. 18708 + * @arg: data to load as MBox 'caller buffer information' 18727 18709 * 18728 18710 * This routine is invoked to remove the memory region that 18729 18711 * provided rpi via a bitmask. ··· 19109 19087 19110 19088 /** 19111 19089 * lpfc_check_next_fcf_pri_level 19112 - * phba pointer to the lpfc_hba struct for this port. 19090 + * @phba: pointer to the lpfc_hba struct for this port. 19113 19091 * This routine is called from the lpfc_sli4_fcf_rr_next_index_get 19114 19092 * routine when the rr_bmask is empty. The FCF indecies are put into the 19115 19093 * rr_bmask based on their priority level. Starting from the highest priority ··· 19274 19252 /** 19275 19253 * lpfc_sli4_fcf_rr_index_set - Set bmask with eligible fcf record index 19276 19254 * @phba: pointer to lpfc hba data structure. 19255 + * @fcf_index: index into the FCF table to 'set' 19277 19256 * 19278 19257 * This routine sets the FCF record index in to the eligible bmask for 19279 19258 * roundrobin failover search. It checks to make sure that the index ··· 19307 19284 /** 19308 19285 * lpfc_sli4_fcf_rr_index_clear - Clear bmask from eligible fcf record index 19309 19286 * @phba: pointer to lpfc hba data structure. 19287 + * @fcf_index: index into the FCF table to 'clear' 19310 19288 * 19311 19289 * This routine clears the FCF record index from the eligible bmask for 19312 19290 * roundrobin failover search. It checks to make sure that the index ··· 19345 19321 /** 19346 19322 * lpfc_mbx_cmpl_redisc_fcf_table - completion routine for rediscover FCF table 19347 19323 * @phba: pointer to lpfc hba data structure. 19324 + * @mbox: An allocated pointer to type LPFC_MBOXQ_t 19348 19325 * 19349 19326 * This routine is the completion routine for the rediscover FCF table mailbox 19350 19327 * command. If the mailbox command returned failure, it will try to stop the ··· 20032 20007 /** 20033 20008 * lpfc_wqe_bpl2sgl - Convert the bpl/bde to a sgl. 20034 20009 * @phba: Pointer to HBA context object. 20035 - * @pwqe: Pointer to command WQE. 20010 + * @pwqeq: Pointer to command WQE. 20036 20011 * @sglq: Pointer to the scatter gather queue object. 20037 20012 * 20038 20013 * This routine converts the bpl or bde that is in the WQE ··· 20157 20132 /** 20158 20133 * lpfc_sli4_issue_wqe - Issue an SLI4 Work Queue Entry (WQE) 20159 20134 * @phba: Pointer to HBA context object. 20160 - * @ring_number: Base sli ring number 20135 + * @qp: Pointer to HDW queue. 20161 20136 * @pwqe: Pointer to command WQE. 20162 20137 **/ 20163 20138 int ··· 20439 20414 /** 20440 20415 * _lpfc_move_xri_pbl_to_pvt - Move some XRIs from public to private pool 20441 20416 * @phba: pointer to lpfc hba data structure 20417 + * @qp: pointer to HDW queue 20442 20418 * @pbl_pool: specified public free XRI pool 20443 20419 * @pvt_pool: specified private free XRI pool 20444 20420 * @count: number of XRIs to move ··· 20569 20543 /** 20570 20544 * lpfc_keep_pvt_pool_above_lowwm - Keep pvt_pool above low watermark 20571 20545 * @phba: pointer to lpfc hba data structure. 20572 - * @qp: belong to which HWQ. 20546 + * @hwqid: belong to which HWQ. 20573 20547 * 20574 20548 * This routine get a batch of XRIs from pbl_pool if pvt_pool is less than 20575 20549 * low watermark. ··· 20691 20665 /** 20692 20666 * lpfc_get_io_buf_from_private_pool - Get one free IO buf from private pool 20693 20667 * @phba: pointer to lpfc hba data structure. 20668 + * @qp: pointer to HDW queue 20694 20669 * @pvt_pool: pointer to private pool data structure. 20695 20670 * @ndlp: pointer to lpfc nodelist data structure. 20696 20671 *