diff options
author | James Smart <James.Smart@Emulex.Com> | 2009-04-06 18:47:14 -0400 |
---|---|---|
committer | James Bottomley <James.Bottomley@HansenPartnership.com> | 2009-04-27 10:41:51 -0400 |
commit | 3621a710a7dbb2d22a8e95d94bcf0c2d13ef57fc (patch) | |
tree | 699b4174b8520a69d74a1ddd507f5e8ee9b28444 /drivers/scsi/lpfc/lpfc_sli.c | |
parent | e7ee4cc04b058d1eae9c1ac359031301b1798e3f (diff) |
[SCSI] lpfc 8.3.1 : Fix up kernel-doc function comments
Signed-off-by: James Smart <James.Smart@emulex.com>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
Diffstat (limited to 'drivers/scsi/lpfc/lpfc_sli.c')
-rw-r--r-- | drivers/scsi/lpfc/lpfc_sli.c | 180 |
1 files changed, 86 insertions, 94 deletions
diff --git a/drivers/scsi/lpfc/lpfc_sli.c b/drivers/scsi/lpfc/lpfc_sli.c index a36a120561e2..74cfa963dfc5 100644 --- a/drivers/scsi/lpfc/lpfc_sli.c +++ b/drivers/scsi/lpfc/lpfc_sli.c | |||
@@ -68,7 +68,7 @@ typedef enum _lpfc_iocb_type { | |||
68 | } lpfc_iocb_type; | 68 | } lpfc_iocb_type; |
69 | 69 | ||
70 | /** | 70 | /** |
71 | * lpfc_cmd_iocb: Get next command iocb entry in the ring. | 71 | * lpfc_cmd_iocb - Get next command iocb entry in the ring |
72 | * @phba: Pointer to HBA context object. | 72 | * @phba: Pointer to HBA context object. |
73 | * @pring: Pointer to driver SLI ring object. | 73 | * @pring: Pointer to driver SLI ring object. |
74 | * | 74 | * |
@@ -85,7 +85,7 @@ lpfc_cmd_iocb(struct lpfc_hba *phba, struct lpfc_sli_ring *pring) | |||
85 | } | 85 | } |
86 | 86 | ||
87 | /** | 87 | /** |
88 | * lpfc_resp_iocb: Get next response iocb entry in the ring. | 88 | * lpfc_resp_iocb - Get next response iocb entry in the ring |
89 | * @phba: Pointer to HBA context object. | 89 | * @phba: Pointer to HBA context object. |
90 | * @pring: Pointer to driver SLI ring object. | 90 | * @pring: Pointer to driver SLI ring object. |
91 | * | 91 | * |
@@ -102,7 +102,7 @@ lpfc_resp_iocb(struct lpfc_hba *phba, struct lpfc_sli_ring *pring) | |||
102 | } | 102 | } |
103 | 103 | ||
104 | /** | 104 | /** |
105 | * __lpfc_sli_get_iocbq: Allocates an iocb object from iocb pool. | 105 | * __lpfc_sli_get_iocbq - Allocates an iocb object from iocb pool |
106 | * @phba: Pointer to HBA context object. | 106 | * @phba: Pointer to HBA context object. |
107 | * | 107 | * |
108 | * This function is called with hbalock held. This function | 108 | * This function is called with hbalock held. This function |
@@ -121,7 +121,7 @@ __lpfc_sli_get_iocbq(struct lpfc_hba *phba) | |||
121 | } | 121 | } |
122 | 122 | ||
123 | /** | 123 | /** |
124 | * lpfc_sli_get_iocbq: Allocates an iocb object from iocb pool. | 124 | * lpfc_sli_get_iocbq - Allocates an iocb object from iocb pool |
125 | * @phba: Pointer to HBA context object. | 125 | * @phba: Pointer to HBA context object. |
126 | * | 126 | * |
127 | * This function is called with no lock held. This function | 127 | * This function is called with no lock held. This function |
@@ -142,7 +142,7 @@ lpfc_sli_get_iocbq(struct lpfc_hba *phba) | |||
142 | } | 142 | } |
143 | 143 | ||
144 | /** | 144 | /** |
145 | * __lpfc_sli_release_iocbq: Release iocb to the iocb pool. | 145 | * __lpfc_sli_release_iocbq - Release iocb to the iocb pool |
146 | * @phba: Pointer to HBA context object. | 146 | * @phba: Pointer to HBA context object. |
147 | * @iocbq: Pointer to driver iocb object. | 147 | * @iocbq: Pointer to driver iocb object. |
148 | * | 148 | * |
@@ -164,7 +164,7 @@ __lpfc_sli_release_iocbq(struct lpfc_hba *phba, struct lpfc_iocbq *iocbq) | |||
164 | } | 164 | } |
165 | 165 | ||
166 | /** | 166 | /** |
167 | * lpfc_sli_release_iocbq: Release iocb to the iocb pool. | 167 | * lpfc_sli_release_iocbq - Release iocb to the iocb pool |
168 | * @phba: Pointer to HBA context object. | 168 | * @phba: Pointer to HBA context object. |
169 | * @iocbq: Pointer to driver iocb object. | 169 | * @iocbq: Pointer to driver iocb object. |
170 | * | 170 | * |
@@ -185,8 +185,8 @@ lpfc_sli_release_iocbq(struct lpfc_hba *phba, struct lpfc_iocbq *iocbq) | |||
185 | } | 185 | } |
186 | 186 | ||
187 | /** | 187 | /** |
188 | * lpfc_sli_iocb_cmd_type: Get the iocb type. | 188 | * lpfc_sli_iocb_cmd_type - Get the iocb type |
189 | * @iocb_cmnd : iocb command code. | 189 | * @iocb_cmnd: iocb command code. |
190 | * | 190 | * |
191 | * This function is called by ring event handler function to get the iocb type. | 191 | * This function is called by ring event handler function to get the iocb type. |
192 | * This function translates the iocb command to an iocb command type used to | 192 | * This function translates the iocb command to an iocb command type used to |
@@ -295,7 +295,7 @@ lpfc_sli_iocb_cmd_type(uint8_t iocb_cmnd) | |||
295 | } | 295 | } |
296 | 296 | ||
297 | /** | 297 | /** |
298 | * lpfc_sli_ring_map: Issue config_ring mbox for all rings. | 298 | * lpfc_sli_ring_map - Issue config_ring mbox for all rings |
299 | * @phba: Pointer to HBA context object. | 299 | * @phba: Pointer to HBA context object. |
300 | * | 300 | * |
301 | * This function is called from SLI initialization code | 301 | * This function is called from SLI initialization code |
@@ -338,7 +338,7 @@ lpfc_sli_ring_map(struct lpfc_hba *phba) | |||
338 | } | 338 | } |
339 | 339 | ||
340 | /** | 340 | /** |
341 | * lpfc_sli_ringtxcmpl_put: Adds new iocb to the txcmplq. | 341 | * lpfc_sli_ringtxcmpl_put - Adds new iocb to the txcmplq |
342 | * @phba: Pointer to HBA context object. | 342 | * @phba: Pointer to HBA context object. |
343 | * @pring: Pointer to driver SLI ring object. | 343 | * @pring: Pointer to driver SLI ring object. |
344 | * @piocb: Pointer to the driver iocb object. | 344 | * @piocb: Pointer to the driver iocb object. |
@@ -370,7 +370,7 @@ lpfc_sli_ringtxcmpl_put(struct lpfc_hba *phba, struct lpfc_sli_ring *pring, | |||
370 | } | 370 | } |
371 | 371 | ||
372 | /** | 372 | /** |
373 | * lpfc_sli_ringtx_get: Get first element of the txq. | 373 | * lpfc_sli_ringtx_get - Get first element of the txq |
374 | * @phba: Pointer to HBA context object. | 374 | * @phba: Pointer to HBA context object. |
375 | * @pring: Pointer to driver SLI ring object. | 375 | * @pring: Pointer to driver SLI ring object. |
376 | * | 376 | * |
@@ -391,7 +391,7 @@ lpfc_sli_ringtx_get(struct lpfc_hba *phba, struct lpfc_sli_ring *pring) | |||
391 | } | 391 | } |
392 | 392 | ||
393 | /** | 393 | /** |
394 | * lpfc_sli_next_iocb_slot: Get next iocb slot in the ring. | 394 | * lpfc_sli_next_iocb_slot - Get next iocb slot in the ring |
395 | * @phba: Pointer to HBA context object. | 395 | * @phba: Pointer to HBA context object. |
396 | * @pring: Pointer to driver SLI ring object. | 396 | * @pring: Pointer to driver SLI ring object. |
397 | * | 397 | * |
@@ -445,7 +445,7 @@ lpfc_sli_next_iocb_slot (struct lpfc_hba *phba, struct lpfc_sli_ring *pring) | |||
445 | } | 445 | } |
446 | 446 | ||
447 | /** | 447 | /** |
448 | * lpfc_sli_next_iotag: Get an iotag for the iocb. | 448 | * lpfc_sli_next_iotag - Get an iotag for the iocb |
449 | * @phba: Pointer to HBA context object. | 449 | * @phba: Pointer to HBA context object. |
450 | * @iocbq: Pointer to driver iocb object. | 450 | * @iocbq: Pointer to driver iocb object. |
451 | * | 451 | * |
@@ -520,7 +520,7 @@ lpfc_sli_next_iotag(struct lpfc_hba *phba, struct lpfc_iocbq *iocbq) | |||
520 | } | 520 | } |
521 | 521 | ||
522 | /** | 522 | /** |
523 | * lpfc_sli_submit_iocb: Submit an iocb to the firmware. | 523 | * lpfc_sli_submit_iocb - Submit an iocb to the firmware |
524 | * @phba: Pointer to HBA context object. | 524 | * @phba: Pointer to HBA context object. |
525 | * @pring: Pointer to driver SLI ring object. | 525 | * @pring: Pointer to driver SLI ring object. |
526 | * @iocb: Pointer to iocb slot in the ring. | 526 | * @iocb: Pointer to iocb slot in the ring. |
@@ -577,7 +577,7 @@ lpfc_sli_submit_iocb(struct lpfc_hba *phba, struct lpfc_sli_ring *pring, | |||
577 | } | 577 | } |
578 | 578 | ||
579 | /** | 579 | /** |
580 | * lpfc_sli_update_full_ring: Update the chip attention register. | 580 | * lpfc_sli_update_full_ring - Update the chip attention register |
581 | * @phba: Pointer to HBA context object. | 581 | * @phba: Pointer to HBA context object. |
582 | * @pring: Pointer to driver SLI ring object. | 582 | * @pring: Pointer to driver SLI ring object. |
583 | * | 583 | * |
@@ -608,7 +608,7 @@ lpfc_sli_update_full_ring(struct lpfc_hba *phba, struct lpfc_sli_ring *pring) | |||
608 | } | 608 | } |
609 | 609 | ||
610 | /** | 610 | /** |
611 | * lpfc_sli_update_ring: Update chip attention register. | 611 | * lpfc_sli_update_ring - Update chip attention register |
612 | * @phba: Pointer to HBA context object. | 612 | * @phba: Pointer to HBA context object. |
613 | * @pring: Pointer to driver SLI ring object. | 613 | * @pring: Pointer to driver SLI ring object. |
614 | * | 614 | * |
@@ -632,7 +632,7 @@ lpfc_sli_update_ring(struct lpfc_hba *phba, struct lpfc_sli_ring *pring) | |||
632 | } | 632 | } |
633 | 633 | ||
634 | /** | 634 | /** |
635 | * lpfc_sli_resume_iocb: Process iocbs in the txq. | 635 | * lpfc_sli_resume_iocb - Process iocbs in the txq |
636 | * @phba: Pointer to HBA context object. | 636 | * @phba: Pointer to HBA context object. |
637 | * @pring: Pointer to driver SLI ring object. | 637 | * @pring: Pointer to driver SLI ring object. |
638 | * | 638 | * |
@@ -672,7 +672,7 @@ lpfc_sli_resume_iocb(struct lpfc_hba *phba, struct lpfc_sli_ring *pring) | |||
672 | } | 672 | } |
673 | 673 | ||
674 | /** | 674 | /** |
675 | * lpfc_sli_next_hbq_slot: Get next hbq entry for the HBQ. | 675 | * lpfc_sli_next_hbq_slot - Get next hbq entry for the HBQ |
676 | * @phba: Pointer to HBA context object. | 676 | * @phba: Pointer to HBA context object. |
677 | * @hbqno: HBQ number. | 677 | * @hbqno: HBQ number. |
678 | * | 678 | * |
@@ -717,7 +717,7 @@ lpfc_sli_next_hbq_slot(struct lpfc_hba *phba, uint32_t hbqno) | |||
717 | } | 717 | } |
718 | 718 | ||
719 | /** | 719 | /** |
720 | * lpfc_sli_hbqbuf_free_all: Free all the hbq buffers. | 720 | * lpfc_sli_hbqbuf_free_all - Free all the hbq buffers |
721 | * @phba: Pointer to HBA context object. | 721 | * @phba: Pointer to HBA context object. |
722 | * | 722 | * |
723 | * This function is called with no lock held to free all the | 723 | * This function is called with no lock held to free all the |
@@ -771,7 +771,7 @@ lpfc_sli_hbqbuf_free_all(struct lpfc_hba *phba) | |||
771 | } | 771 | } |
772 | 772 | ||
773 | /** | 773 | /** |
774 | * lpfc_sli_hbq_to_firmware: Post the hbq buffer to firmware. | 774 | * lpfc_sli_hbq_to_firmware - Post the hbq buffer to firmware |
775 | * @phba: Pointer to HBA context object. | 775 | * @phba: Pointer to HBA context object. |
776 | * @hbqno: HBQ number. | 776 | * @hbqno: HBQ number. |
777 | * @hbq_buf: Pointer to HBQ buffer. | 777 | * @hbq_buf: Pointer to HBQ buffer. |
@@ -841,7 +841,7 @@ struct lpfc_hbq_init *lpfc_hbq_defs[] = { | |||
841 | }; | 841 | }; |
842 | 842 | ||
843 | /** | 843 | /** |
844 | * lpfc_sli_hbqbuf_fill_hbqs: Post more hbq buffers to HBQ. | 844 | * lpfc_sli_hbqbuf_fill_hbqs - Post more hbq buffers to HBQ |
845 | * @phba: Pointer to HBA context object. | 845 | * @phba: Pointer to HBA context object. |
846 | * @hbqno: HBQ number. | 846 | * @hbqno: HBQ number. |
847 | * @count: Number of HBQ buffers to be posted. | 847 | * @count: Number of HBQ buffers to be posted. |
@@ -901,7 +901,7 @@ err: | |||
901 | } | 901 | } |
902 | 902 | ||
903 | /** | 903 | /** |
904 | * lpfc_sli_hbqbuf_add_hbqs: Post more HBQ buffers to firmware. | 904 | * lpfc_sli_hbqbuf_add_hbqs - Post more HBQ buffers to firmware |
905 | * @phba: Pointer to HBA context object. | 905 | * @phba: Pointer to HBA context object. |
906 | * @qno: HBQ number. | 906 | * @qno: HBQ number. |
907 | * | 907 | * |
@@ -917,7 +917,7 @@ lpfc_sli_hbqbuf_add_hbqs(struct lpfc_hba *phba, uint32_t qno) | |||
917 | } | 917 | } |
918 | 918 | ||
919 | /** | 919 | /** |
920 | * lpfc_sli_hbqbuf_init_hbqs: Post initial buffers to the HBQ. | 920 | * lpfc_sli_hbqbuf_init_hbqs - Post initial buffers to the HBQ |
921 | * @phba: Pointer to HBA context object. | 921 | * @phba: Pointer to HBA context object. |
922 | * @qno: HBQ queue number. | 922 | * @qno: HBQ queue number. |
923 | * | 923 | * |
@@ -933,7 +933,7 @@ lpfc_sli_hbqbuf_init_hbqs(struct lpfc_hba *phba, uint32_t qno) | |||
933 | } | 933 | } |
934 | 934 | ||
935 | /** | 935 | /** |
936 | * lpfc_sli_hbqbuf_find: Find the hbq buffer associated with a tag. | 936 | * lpfc_sli_hbqbuf_find - Find the hbq buffer associated with a tag |
937 | * @phba: Pointer to HBA context object. | 937 | * @phba: Pointer to HBA context object. |
938 | * @tag: Tag of the hbq buffer. | 938 | * @tag: Tag of the hbq buffer. |
939 | * | 939 | * |
@@ -966,7 +966,7 @@ lpfc_sli_hbqbuf_find(struct lpfc_hba *phba, uint32_t tag) | |||
966 | } | 966 | } |
967 | 967 | ||
968 | /** | 968 | /** |
969 | * lpfc_sli_free_hbq: Give back the hbq buffer to firmware. | 969 | * lpfc_sli_free_hbq - Give back the hbq buffer to firmware |
970 | * @phba: Pointer to HBA context object. | 970 | * @phba: Pointer to HBA context object. |
971 | * @hbq_buffer: Pointer to HBQ buffer. | 971 | * @hbq_buffer: Pointer to HBQ buffer. |
972 | * | 972 | * |
@@ -988,7 +988,7 @@ lpfc_sli_free_hbq(struct lpfc_hba *phba, struct hbq_dmabuf *hbq_buffer) | |||
988 | } | 988 | } |
989 | 989 | ||
990 | /** | 990 | /** |
991 | * lpfc_sli_chk_mbx_command: Check if the mailbox is a legitimate mailbox. | 991 | * lpfc_sli_chk_mbx_command - Check if the mailbox is a legitimate mailbox |
992 | * @mbxCommand: mailbox command code. | 992 | * @mbxCommand: mailbox command code. |
993 | * | 993 | * |
994 | * This function is called by the mailbox event handler function to verify | 994 | * This function is called by the mailbox event handler function to verify |
@@ -1064,8 +1064,7 @@ lpfc_sli_chk_mbx_command(uint8_t mbxCommand) | |||
1064 | } | 1064 | } |
1065 | 1065 | ||
1066 | /** | 1066 | /** |
1067 | * lpfc_sli_wake_mbox_wait: Completion handler for mbox issued from | 1067 | * lpfc_sli_wake_mbox_wait - lpfc_sli_issue_mbox_wait mbox completion handler |
1068 | * lpfc_sli_issue_mbox_wait. | ||
1069 | * @phba: Pointer to HBA context object. | 1068 | * @phba: Pointer to HBA context object. |
1070 | * @pmboxq: Pointer to mailbox command. | 1069 | * @pmboxq: Pointer to mailbox command. |
1071 | * | 1070 | * |
@@ -1096,7 +1095,7 @@ lpfc_sli_wake_mbox_wait(struct lpfc_hba *phba, LPFC_MBOXQ_t *pmboxq) | |||
1096 | 1095 | ||
1097 | 1096 | ||
1098 | /** | 1097 | /** |
1099 | * lpfc_sli_def_mbox_cmpl: Default mailbox completion handler. | 1098 | * lpfc_sli_def_mbox_cmpl - Default mailbox completion handler |
1100 | * @phba: Pointer to HBA context object. | 1099 | * @phba: Pointer to HBA context object. |
1101 | * @pmb: Pointer to mailbox object. | 1100 | * @pmb: Pointer to mailbox object. |
1102 | * | 1101 | * |
@@ -1140,7 +1139,7 @@ lpfc_sli_def_mbox_cmpl(struct lpfc_hba *phba, LPFC_MBOXQ_t *pmb) | |||
1140 | } | 1139 | } |
1141 | 1140 | ||
1142 | /** | 1141 | /** |
1143 | * lpfc_sli_handle_mb_event: Handle mailbox completions from firmware. | 1142 | * lpfc_sli_handle_mb_event - Handle mailbox completions from firmware |
1144 | * @phba: Pointer to HBA context object. | 1143 | * @phba: Pointer to HBA context object. |
1145 | * | 1144 | * |
1146 | * This function is called with no lock held. This function processes all | 1145 | * This function is called with no lock held. This function processes all |
@@ -1260,7 +1259,7 @@ lpfc_sli_handle_mb_event(struct lpfc_hba *phba) | |||
1260 | } | 1259 | } |
1261 | 1260 | ||
1262 | /** | 1261 | /** |
1263 | * lpfc_sli_get_buff: Get the buffer associated with the buffer tag. | 1262 | * lpfc_sli_get_buff - Get the buffer associated with the buffer tag |
1264 | * @phba: Pointer to HBA context object. | 1263 | * @phba: Pointer to HBA context object. |
1265 | * @pring: Pointer to driver SLI ring object. | 1264 | * @pring: Pointer to driver SLI ring object. |
1266 | * @tag: buffer tag. | 1265 | * @tag: buffer tag. |
@@ -1288,7 +1287,7 @@ lpfc_sli_get_buff(struct lpfc_hba *phba, | |||
1288 | 1287 | ||
1289 | 1288 | ||
1290 | /** | 1289 | /** |
1291 | * lpfc_sli_process_unsol_iocb: Unsolicited iocb handler. | 1290 | * lpfc_sli_process_unsol_iocb - Unsolicited iocb handler |
1292 | * @phba: Pointer to HBA context object. | 1291 | * @phba: Pointer to HBA context object. |
1293 | * @pring: Pointer to driver SLI ring object. | 1292 | * @pring: Pointer to driver SLI ring object. |
1294 | * @saveq: Pointer to the unsolicited iocb. | 1293 | * @saveq: Pointer to the unsolicited iocb. |
@@ -1484,7 +1483,7 @@ lpfc_sli_process_unsol_iocb(struct lpfc_hba *phba, struct lpfc_sli_ring *pring, | |||
1484 | } | 1483 | } |
1485 | 1484 | ||
1486 | /** | 1485 | /** |
1487 | * lpfc_sli_iocbq_lookup: Find command iocb for the given response iocb. | 1486 | * lpfc_sli_iocbq_lookup - Find command iocb for the given response iocb |
1488 | * @phba: Pointer to HBA context object. | 1487 | * @phba: Pointer to HBA context object. |
1489 | * @pring: Pointer to driver SLI ring object. | 1488 | * @pring: Pointer to driver SLI ring object. |
1490 | * @prspiocb: Pointer to response iocb object. | 1489 | * @prspiocb: Pointer to response iocb object. |
@@ -1521,7 +1520,7 @@ lpfc_sli_iocbq_lookup(struct lpfc_hba *phba, | |||
1521 | } | 1520 | } |
1522 | 1521 | ||
1523 | /** | 1522 | /** |
1524 | * lpfc_sli_process_sol_iocb: process solicited iocb completion. | 1523 | * lpfc_sli_process_sol_iocb - process solicited iocb completion |
1525 | * @phba: Pointer to HBA context object. | 1524 | * @phba: Pointer to HBA context object. |
1526 | * @pring: Pointer to driver SLI ring object. | 1525 | * @pring: Pointer to driver SLI ring object. |
1527 | * @saveq: Pointer to the response iocb to be processed. | 1526 | * @saveq: Pointer to the response iocb to be processed. |
@@ -1614,7 +1613,7 @@ lpfc_sli_process_sol_iocb(struct lpfc_hba *phba, struct lpfc_sli_ring *pring, | |||
1614 | } | 1613 | } |
1615 | 1614 | ||
1616 | /** | 1615 | /** |
1617 | * lpfc_sli_rsp_pointers_error: Response ring pointer error handler. | 1616 | * lpfc_sli_rsp_pointers_error - Response ring pointer error handler |
1618 | * @phba: Pointer to HBA context object. | 1617 | * @phba: Pointer to HBA context object. |
1619 | * @pring: Pointer to driver SLI ring object. | 1618 | * @pring: Pointer to driver SLI ring object. |
1620 | * | 1619 | * |
@@ -1652,7 +1651,7 @@ lpfc_sli_rsp_pointers_error(struct lpfc_hba *phba, struct lpfc_sli_ring *pring) | |||
1652 | } | 1651 | } |
1653 | 1652 | ||
1654 | /** | 1653 | /** |
1655 | * lpfc_poll_eratt: Error attention polling timer timeout handler. | 1654 | * lpfc_poll_eratt - Error attention polling timer timeout handler |
1656 | * @ptr: Pointer to address of HBA context object. | 1655 | * @ptr: Pointer to address of HBA context object. |
1657 | * | 1656 | * |
1658 | * This function is invoked by the Error Attention polling timer when the | 1657 | * This function is invoked by the Error Attention polling timer when the |
@@ -1682,7 +1681,7 @@ void lpfc_poll_eratt(unsigned long ptr) | |||
1682 | } | 1681 | } |
1683 | 1682 | ||
1684 | /** | 1683 | /** |
1685 | * lpfc_sli_poll_fcp_ring: Handle FCP ring completion in polling mode. | 1684 | * lpfc_sli_poll_fcp_ring - Handle FCP ring completion in polling mode |
1686 | * @phba: Pointer to HBA context object. | 1685 | * @phba: Pointer to HBA context object. |
1687 | * | 1686 | * |
1688 | * This function is called from lpfc_queuecommand, lpfc_poll_timeout, | 1687 | * This function is called from lpfc_queuecommand, lpfc_poll_timeout, |
@@ -1845,7 +1844,7 @@ void lpfc_sli_poll_fcp_ring(struct lpfc_hba *phba) | |||
1845 | } | 1844 | } |
1846 | 1845 | ||
1847 | /** | 1846 | /** |
1848 | * lpfc_sli_handle_fast_ring_event: Handle ring events on FCP ring. | 1847 | * lpfc_sli_handle_fast_ring_event - Handle ring events on FCP ring |
1849 | * @phba: Pointer to HBA context object. | 1848 | * @phba: Pointer to HBA context object. |
1850 | * @pring: Pointer to driver SLI ring object. | 1849 | * @pring: Pointer to driver SLI ring object. |
1851 | * @mask: Host attention register mask for this ring. | 1850 | * @mask: Host attention register mask for this ring. |
@@ -2037,7 +2036,7 @@ lpfc_sli_handle_fast_ring_event(struct lpfc_hba *phba, | |||
2037 | } | 2036 | } |
2038 | 2037 | ||
2039 | /** | 2038 | /** |
2040 | * lpfc_sli_handle_slow_ring_event: Handle ring events for non-FCP rings. | 2039 | * lpfc_sli_handle_slow_ring_event - Handle ring events for non-FCP rings |
2041 | * @phba: Pointer to HBA context object. | 2040 | * @phba: Pointer to HBA context object. |
2042 | * @pring: Pointer to driver SLI ring object. | 2041 | * @pring: Pointer to driver SLI ring object. |
2043 | * @mask: Host attention register mask for this ring. | 2042 | * @mask: Host attention register mask for this ring. |
@@ -2311,7 +2310,7 @@ lpfc_sli_handle_slow_ring_event(struct lpfc_hba *phba, | |||
2311 | } | 2310 | } |
2312 | 2311 | ||
2313 | /** | 2312 | /** |
2314 | * lpfc_sli_abort_iocb_ring: Abort all iocbs in the ring. | 2313 | * lpfc_sli_abort_iocb_ring - Abort all iocbs in the ring |
2315 | * @phba: Pointer to HBA context object. | 2314 | * @phba: Pointer to HBA context object. |
2316 | * @pring: Pointer to driver SLI ring object. | 2315 | * @pring: Pointer to driver SLI ring object. |
2317 | * | 2316 | * |
@@ -2360,7 +2359,7 @@ lpfc_sli_abort_iocb_ring(struct lpfc_hba *phba, struct lpfc_sli_ring *pring) | |||
2360 | } | 2359 | } |
2361 | 2360 | ||
2362 | /** | 2361 | /** |
2363 | * lpfc_sli_flush_fcp_rings: flush all iocbs in the fcp ring. | 2362 | * lpfc_sli_flush_fcp_rings - flush all iocbs in the fcp ring |
2364 | * @phba: Pointer to HBA context object. | 2363 | * @phba: Pointer to HBA context object. |
2365 | * | 2364 | * |
2366 | * This function flushes all iocbs in the fcp ring and frees all the iocb | 2365 | * This function flushes all iocbs in the fcp ring and frees all the iocb |
@@ -2424,7 +2423,7 @@ lpfc_sli_flush_fcp_rings(struct lpfc_hba *phba) | |||
2424 | } | 2423 | } |
2425 | 2424 | ||
2426 | /** | 2425 | /** |
2427 | * lpfc_sli_brdready: Check for host status bits. | 2426 | * lpfc_sli_brdready - Check for host status bits |
2428 | * @phba: Pointer to HBA context object. | 2427 | * @phba: Pointer to HBA context object. |
2429 | * @mask: Bit mask to be checked. | 2428 | * @mask: Bit mask to be checked. |
2430 | * | 2429 | * |
@@ -2484,7 +2483,7 @@ lpfc_sli_brdready(struct lpfc_hba *phba, uint32_t mask) | |||
2484 | #define BARRIER_TEST_PATTERN (0xdeadbeef) | 2483 | #define BARRIER_TEST_PATTERN (0xdeadbeef) |
2485 | 2484 | ||
2486 | /** | 2485 | /** |
2487 | * lpfc_reset_barrier: Make HBA ready for HBA reset. | 2486 | * lpfc_reset_barrier - Make HBA ready for HBA reset |
2488 | * @phba: Pointer to HBA context object. | 2487 | * @phba: Pointer to HBA context object. |
2489 | * | 2488 | * |
2490 | * This function is called before resetting an HBA. This | 2489 | * This function is called before resetting an HBA. This |
@@ -2564,7 +2563,7 @@ restore_hc: | |||
2564 | } | 2563 | } |
2565 | 2564 | ||
2566 | /** | 2565 | /** |
2567 | * lpfc_sli_brdkill: Issue a kill_board mailbox command. | 2566 | * lpfc_sli_brdkill - Issue a kill_board mailbox command |
2568 | * @phba: Pointer to HBA context object. | 2567 | * @phba: Pointer to HBA context object. |
2569 | * | 2568 | * |
2570 | * This function issues a kill_board mailbox command and waits for | 2569 | * This function issues a kill_board mailbox command and waits for |
@@ -2651,7 +2650,7 @@ lpfc_sli_brdkill(struct lpfc_hba *phba) | |||
2651 | } | 2650 | } |
2652 | 2651 | ||
2653 | /** | 2652 | /** |
2654 | * lpfc_sli_brdreset: Reset the HBA. | 2653 | * lpfc_sli_brdreset - Reset the HBA |
2655 | * @phba: Pointer to HBA context object. | 2654 | * @phba: Pointer to HBA context object. |
2656 | * | 2655 | * |
2657 | * This function resets the HBA by writing HC_INITFF to the control | 2656 | * This function resets the HBA by writing HC_INITFF to the control |
@@ -2714,7 +2713,7 @@ lpfc_sli_brdreset(struct lpfc_hba *phba) | |||
2714 | } | 2713 | } |
2715 | 2714 | ||
2716 | /** | 2715 | /** |
2717 | * lpfc_sli_brdrestart: Restart the HBA. | 2716 | * lpfc_sli_brdrestart - Restart the HBA |
2718 | * @phba: Pointer to HBA context object. | 2717 | * @phba: Pointer to HBA context object. |
2719 | * | 2718 | * |
2720 | * This function is called in the SLI initialization code path to | 2719 | * This function is called in the SLI initialization code path to |
@@ -2781,7 +2780,7 @@ lpfc_sli_brdrestart(struct lpfc_hba *phba) | |||
2781 | } | 2780 | } |
2782 | 2781 | ||
2783 | /** | 2782 | /** |
2784 | * lpfc_sli_chipset_init: Wait for the restart of the HBA after a restart. | 2783 | * lpfc_sli_chipset_init - Wait for the restart of the HBA after a restart |
2785 | * @phba: Pointer to HBA context object. | 2784 | * @phba: Pointer to HBA context object. |
2786 | * | 2785 | * |
2787 | * This function is called after a HBA restart to wait for successful | 2786 | * This function is called after a HBA restart to wait for successful |
@@ -2876,7 +2875,7 @@ lpfc_sli_chipset_init(struct lpfc_hba *phba) | |||
2876 | } | 2875 | } |
2877 | 2876 | ||
2878 | /** | 2877 | /** |
2879 | * lpfc_sli_hbq_count: Get the number of HBQs to be configured. | 2878 | * lpfc_sli_hbq_count - Get the number of HBQs to be configured |
2880 | * | 2879 | * |
2881 | * This function calculates and returns the number of HBQs required to be | 2880 | * This function calculates and returns the number of HBQs required to be |
2882 | * configured. | 2881 | * configured. |
@@ -2888,7 +2887,7 @@ lpfc_sli_hbq_count(void) | |||
2888 | } | 2887 | } |
2889 | 2888 | ||
2890 | /** | 2889 | /** |
2891 | * lpfc_sli_hbq_entry_count: Calculate total number of hbq entries. | 2890 | * lpfc_sli_hbq_entry_count - Calculate total number of hbq entries |
2892 | * | 2891 | * |
2893 | * This function adds the number of hbq entries in every HBQ to get | 2892 | * This function adds the number of hbq entries in every HBQ to get |
2894 | * the total number of hbq entries required for the HBA and returns | 2893 | * the total number of hbq entries required for the HBA and returns |
@@ -2907,7 +2906,7 @@ lpfc_sli_hbq_entry_count(void) | |||
2907 | } | 2906 | } |
2908 | 2907 | ||
2909 | /** | 2908 | /** |
2910 | * lpfc_sli_hbq_size: Calculate memory required for all hbq entries. | 2909 | * lpfc_sli_hbq_size - Calculate memory required for all hbq entries |
2911 | * | 2910 | * |
2912 | * This function calculates amount of memory required for all hbq entries | 2911 | * This function calculates amount of memory required for all hbq entries |
2913 | * to be configured and returns the total memory required. | 2912 | * to be configured and returns the total memory required. |
@@ -2919,7 +2918,7 @@ lpfc_sli_hbq_size(void) | |||
2919 | } | 2918 | } |
2920 | 2919 | ||
2921 | /** | 2920 | /** |
2922 | * lpfc_sli_hbq_setup: configure and initialize HBQs. | 2921 | * lpfc_sli_hbq_setup - configure and initialize HBQs |
2923 | * @phba: Pointer to HBA context object. | 2922 | * @phba: Pointer to HBA context object. |
2924 | * | 2923 | * |
2925 | * This function is called during the SLI initialization to configure | 2924 | * This function is called during the SLI initialization to configure |
@@ -2988,7 +2987,7 @@ lpfc_sli_hbq_setup(struct lpfc_hba *phba) | |||
2988 | } | 2987 | } |
2989 | 2988 | ||
2990 | /** | 2989 | /** |
2991 | * lpfc_sli_config_port: Issue config port mailbox command. | 2990 | * lpfc_sli_config_port - Issue config port mailbox command |
2992 | * @phba: Pointer to HBA context object. | 2991 | * @phba: Pointer to HBA context object. |
2993 | * @sli_mode: sli mode - 2/3 | 2992 | * @sli_mode: sli mode - 2/3 |
2994 | * | 2993 | * |
@@ -3114,7 +3113,7 @@ do_prep_failed: | |||
3114 | 3113 | ||
3115 | 3114 | ||
3116 | /** | 3115 | /** |
3117 | * lpfc_sli_hba_setup: SLI intialization function. | 3116 | * lpfc_sli_hba_setup - SLI intialization function |
3118 | * @phba: Pointer to HBA context object. | 3117 | * @phba: Pointer to HBA context object. |
3119 | * | 3118 | * |
3120 | * This function is the main SLI intialization function. This function | 3119 | * This function is the main SLI intialization function. This function |
@@ -3206,7 +3205,7 @@ lpfc_sli_hba_setup_error: | |||
3206 | 3205 | ||
3207 | 3206 | ||
3208 | /** | 3207 | /** |
3209 | * lpfc_mbox_timeout: Timeout call back function for mbox timer. | 3208 | * lpfc_mbox_timeout - Timeout call back function for mbox timer |
3210 | * @ptr: context object - pointer to hba structure. | 3209 | * @ptr: context object - pointer to hba structure. |
3211 | * | 3210 | * |
3212 | * This is the callback function for mailbox timer. The mailbox | 3211 | * This is the callback function for mailbox timer. The mailbox |
@@ -3237,7 +3236,7 @@ lpfc_mbox_timeout(unsigned long ptr) | |||
3237 | 3236 | ||
3238 | 3237 | ||
3239 | /** | 3238 | /** |
3240 | * lpfc_mbox_timeout_handler: Worker thread function to handle mailbox timeout. | 3239 | * lpfc_mbox_timeout_handler - Worker thread function to handle mailbox timeout |
3241 | * @phba: Pointer to HBA context object. | 3240 | * @phba: Pointer to HBA context object. |
3242 | * | 3241 | * |
3243 | * This function is called from worker thread when a mailbox command times out. | 3242 | * This function is called from worker thread when a mailbox command times out. |
@@ -3295,7 +3294,7 @@ lpfc_mbox_timeout_handler(struct lpfc_hba *phba) | |||
3295 | } | 3294 | } |
3296 | 3295 | ||
3297 | /** | 3296 | /** |
3298 | * lpfc_sli_issue_mbox: Issue a mailbox command to firmware. | 3297 | * lpfc_sli_issue_mbox - Issue a mailbox command to firmware |
3299 | * @phba: Pointer to HBA context object. | 3298 | * @phba: Pointer to HBA context object. |
3300 | * @pmbox: Pointer to mailbox object. | 3299 | * @pmbox: Pointer to mailbox object. |
3301 | * @flag: Flag indicating how the mailbox need to be processed. | 3300 | * @flag: Flag indicating how the mailbox need to be processed. |
@@ -3632,7 +3631,7 @@ out_not_finished: | |||
3632 | } | 3631 | } |
3633 | 3632 | ||
3634 | /** | 3633 | /** |
3635 | * __lpfc_sli_ringtx_put: Add an iocb to the txq. | 3634 | * __lpfc_sli_ringtx_put - Add an iocb to the txq |
3636 | * @phba: Pointer to HBA context object. | 3635 | * @phba: Pointer to HBA context object. |
3637 | * @pring: Pointer to driver SLI ring object. | 3636 | * @pring: Pointer to driver SLI ring object. |
3638 | * @piocb: Pointer to address of newly added command iocb. | 3637 | * @piocb: Pointer to address of newly added command iocb. |
@@ -3651,7 +3650,7 @@ __lpfc_sli_ringtx_put(struct lpfc_hba *phba, struct lpfc_sli_ring *pring, | |||
3651 | } | 3650 | } |
3652 | 3651 | ||
3653 | /** | 3652 | /** |
3654 | * lpfc_sli_next_iocb: Get the next iocb in the txq. | 3653 | * lpfc_sli_next_iocb - Get the next iocb in the txq |
3655 | * @phba: Pointer to HBA context object. | 3654 | * @phba: Pointer to HBA context object. |
3656 | * @pring: Pointer to driver SLI ring object. | 3655 | * @pring: Pointer to driver SLI ring object. |
3657 | * @piocb: Pointer to address of newly added command iocb. | 3656 | * @piocb: Pointer to address of newly added command iocb. |
@@ -3683,7 +3682,7 @@ lpfc_sli_next_iocb(struct lpfc_hba *phba, struct lpfc_sli_ring *pring, | |||
3683 | } | 3682 | } |
3684 | 3683 | ||
3685 | /** | 3684 | /** |
3686 | * __lpfc_sli_issue_iocb: Lockless version of lpfc_sli_issue_iocb. | 3685 | * __lpfc_sli_issue_iocb - Lockless version of lpfc_sli_issue_iocb |
3687 | * @phba: Pointer to HBA context object. | 3686 | * @phba: Pointer to HBA context object. |
3688 | * @pring: Pointer to driver SLI ring object. | 3687 | * @pring: Pointer to driver SLI ring object. |
3689 | * @piocb: Pointer to command iocb. | 3688 | * @piocb: Pointer to command iocb. |
@@ -3813,7 +3812,7 @@ __lpfc_sli_issue_iocb(struct lpfc_hba *phba, struct lpfc_sli_ring *pring, | |||
3813 | 3812 | ||
3814 | 3813 | ||
3815 | /** | 3814 | /** |
3816 | * lpfc_sli_issue_iocb: Wrapper function for __lpfc_sli_issue_iocb. | 3815 | * lpfc_sli_issue_iocb - Wrapper function for __lpfc_sli_issue_iocb |
3817 | * @phba: Pointer to HBA context object. | 3816 | * @phba: Pointer to HBA context object. |
3818 | * @pring: Pointer to driver SLI ring object. | 3817 | * @pring: Pointer to driver SLI ring object. |
3819 | * @piocb: Pointer to command iocb. | 3818 | * @piocb: Pointer to command iocb. |
@@ -3840,7 +3839,7 @@ lpfc_sli_issue_iocb(struct lpfc_hba *phba, struct lpfc_sli_ring *pring, | |||
3840 | } | 3839 | } |
3841 | 3840 | ||
3842 | /** | 3841 | /** |
3843 | * lpfc_extra_ring_setup: Extra ring setup function. | 3842 | * lpfc_extra_ring_setup - Extra ring setup function |
3844 | * @phba: Pointer to HBA context object. | 3843 | * @phba: Pointer to HBA context object. |
3845 | * | 3844 | * |
3846 | * This function is called while driver attaches with the | 3845 | * This function is called while driver attaches with the |
@@ -3886,7 +3885,7 @@ lpfc_extra_ring_setup( struct lpfc_hba *phba) | |||
3886 | } | 3885 | } |
3887 | 3886 | ||
3888 | /** | 3887 | /** |
3889 | * lpfc_sli_async_event_handler: ASYNC iocb handler function. | 3888 | * lpfc_sli_async_event_handler - ASYNC iocb handler function |
3890 | * @phba: Pointer to HBA context object. | 3889 | * @phba: Pointer to HBA context object. |
3891 | * @pring: Pointer to driver SLI ring object. | 3890 | * @pring: Pointer to driver SLI ring object. |
3892 | * @iocbq: Pointer to iocb object. | 3891 | * @iocbq: Pointer to iocb object. |
@@ -3954,7 +3953,7 @@ lpfc_sli_async_event_handler(struct lpfc_hba * phba, | |||
3954 | 3953 | ||
3955 | 3954 | ||
3956 | /** | 3955 | /** |
3957 | * lpfc_sli_setup: SLI ring setup function. | 3956 | * lpfc_sli_setup - SLI ring setup function |
3958 | * @phba: Pointer to HBA context object. | 3957 | * @phba: Pointer to HBA context object. |
3959 | * | 3958 | * |
3960 | * lpfc_sli_setup sets up rings of the SLI interface with | 3959 | * lpfc_sli_setup sets up rings of the SLI interface with |
@@ -4076,7 +4075,7 @@ lpfc_sli_setup(struct lpfc_hba *phba) | |||
4076 | } | 4075 | } |
4077 | 4076 | ||
4078 | /** | 4077 | /** |
4079 | * lpfc_sli_queue_setup: Queue initialization function. | 4078 | * lpfc_sli_queue_setup - Queue initialization function |
4080 | * @phba: Pointer to HBA context object. | 4079 | * @phba: Pointer to HBA context object. |
4081 | * | 4080 | * |
4082 | * lpfc_sli_queue_setup sets up mailbox queues and iocb queues for each | 4081 | * lpfc_sli_queue_setup sets up mailbox queues and iocb queues for each |
@@ -4115,7 +4114,7 @@ lpfc_sli_queue_setup(struct lpfc_hba *phba) | |||
4115 | } | 4114 | } |
4116 | 4115 | ||
4117 | /** | 4116 | /** |
4118 | * lpfc_sli_host_down: Vport cleanup function. | 4117 | * lpfc_sli_host_down - Vport cleanup function |
4119 | * @vport: Pointer to virtual port object. | 4118 | * @vport: Pointer to virtual port object. |
4120 | * | 4119 | * |
4121 | * lpfc_sli_host_down is called to clean up the resources | 4120 | * lpfc_sli_host_down is called to clean up the resources |
@@ -4194,7 +4193,7 @@ lpfc_sli_host_down(struct lpfc_vport *vport) | |||
4194 | } | 4193 | } |
4195 | 4194 | ||
4196 | /** | 4195 | /** |
4197 | * lpfc_sli_hba_down: Resource cleanup function for the HBA. | 4196 | * lpfc_sli_hba_down - Resource cleanup function for the HBA |
4198 | * @phba: Pointer to HBA context object. | 4197 | * @phba: Pointer to HBA context object. |
4199 | * | 4198 | * |
4200 | * This function cleans up all iocb, buffers, mailbox commands | 4199 | * This function cleans up all iocb, buffers, mailbox commands |
@@ -4299,7 +4298,7 @@ lpfc_sli_hba_down(struct lpfc_hba *phba) | |||
4299 | } | 4298 | } |
4300 | 4299 | ||
4301 | /** | 4300 | /** |
4302 | * lpfc_sli_pcimem_bcopy: SLI memory copy function. | 4301 | * lpfc_sli_pcimem_bcopy - SLI memory copy function |
4303 | * @srcp: Source memory pointer. | 4302 | * @srcp: Source memory pointer. |
4304 | * @destp: Destination memory pointer. | 4303 | * @destp: Destination memory pointer. |
4305 | * @cnt: Number of words required to be copied. | 4304 | * @cnt: Number of words required to be copied. |
@@ -4329,7 +4328,7 @@ lpfc_sli_pcimem_bcopy(void *srcp, void *destp, uint32_t cnt) | |||
4329 | 4328 | ||
4330 | 4329 | ||
4331 | /** | 4330 | /** |
4332 | * lpfc_sli_ringpostbuf_put: Function to add a buffer to postbufq. | 4331 | * lpfc_sli_ringpostbuf_put - Function to add a buffer to postbufq |
4333 | * @phba: Pointer to HBA context object. | 4332 | * @phba: Pointer to HBA context object. |
4334 | * @pring: Pointer to driver SLI ring object. | 4333 | * @pring: Pointer to driver SLI ring object. |
4335 | * @mp: Pointer to driver buffer object. | 4334 | * @mp: Pointer to driver buffer object. |
@@ -4352,8 +4351,7 @@ lpfc_sli_ringpostbuf_put(struct lpfc_hba *phba, struct lpfc_sli_ring *pring, | |||
4352 | } | 4351 | } |
4353 | 4352 | ||
4354 | /** | 4353 | /** |
4355 | * lpfc_sli_get_buffer_tag: Tag allocation function for a buffer posted | 4354 | * lpfc_sli_get_buffer_tag - allocates a tag for a CMD_QUE_XRI64_CX buffer |
4356 | * using CMD_QUE_XRI64_CX iocb. | ||
4357 | * @phba: Pointer to HBA context object. | 4355 | * @phba: Pointer to HBA context object. |
4358 | * | 4356 | * |
4359 | * When HBQ is enabled, buffers are searched based on tags. This function | 4357 | * When HBQ is enabled, buffers are searched based on tags. This function |
@@ -4378,8 +4376,7 @@ lpfc_sli_get_buffer_tag(struct lpfc_hba *phba) | |||
4378 | } | 4376 | } |
4379 | 4377 | ||
4380 | /** | 4378 | /** |
4381 | * lpfc_sli_ring_taggedbuf_get: Search HBQ buffer associated with | 4379 | * lpfc_sli_ring_taggedbuf_get - find HBQ buffer associated with given tag |
4382 | * posted using CMD_QUE_XRI64_CX iocb. | ||
4383 | * @phba: Pointer to HBA context object. | 4380 | * @phba: Pointer to HBA context object. |
4384 | * @pring: Pointer to driver SLI ring object. | 4381 | * @pring: Pointer to driver SLI ring object. |
4385 | * @tag: Buffer tag. | 4382 | * @tag: Buffer tag. |
@@ -4422,8 +4419,7 @@ lpfc_sli_ring_taggedbuf_get(struct lpfc_hba *phba, struct lpfc_sli_ring *pring, | |||
4422 | } | 4419 | } |
4423 | 4420 | ||
4424 | /** | 4421 | /** |
4425 | * lpfc_sli_ringpostbuf_get: SLI2 buffer search function for | 4422 | * lpfc_sli_ringpostbuf_get - search buffers for unsolicited CT and ELS events |
4426 | * unsolicited ct and els events. | ||
4427 | * @phba: Pointer to HBA context object. | 4423 | * @phba: Pointer to HBA context object. |
4428 | * @pring: Pointer to driver SLI ring object. | 4424 | * @pring: Pointer to driver SLI ring object. |
4429 | * @phys: DMA address of the buffer. | 4425 | * @phys: DMA address of the buffer. |
@@ -4466,7 +4462,7 @@ lpfc_sli_ringpostbuf_get(struct lpfc_hba *phba, struct lpfc_sli_ring *pring, | |||
4466 | } | 4462 | } |
4467 | 4463 | ||
4468 | /** | 4464 | /** |
4469 | * lpfc_sli_abort_els_cmpl: Completion handler for the els abort iocbs. | 4465 | * lpfc_sli_abort_els_cmpl - Completion handler for the els abort iocbs |
4470 | * @phba: Pointer to HBA context object. | 4466 | * @phba: Pointer to HBA context object. |
4471 | * @cmdiocb: Pointer to driver command iocb object. | 4467 | * @cmdiocb: Pointer to driver command iocb object. |
4472 | * @rspiocb: Pointer to driver response iocb object. | 4468 | * @rspiocb: Pointer to driver response iocb object. |
@@ -4542,7 +4538,7 @@ lpfc_sli_abort_els_cmpl(struct lpfc_hba *phba, struct lpfc_iocbq *cmdiocb, | |||
4542 | } | 4538 | } |
4543 | 4539 | ||
4544 | /** | 4540 | /** |
4545 | * lpfc_ignore_els_cmpl: Completion handler for aborted ELS command. | 4541 | * lpfc_ignore_els_cmpl - Completion handler for aborted ELS command |
4546 | * @phba: Pointer to HBA context object. | 4542 | * @phba: Pointer to HBA context object. |
4547 | * @cmdiocb: Pointer to driver command iocb object. | 4543 | * @cmdiocb: Pointer to driver command iocb object. |
4548 | * @rspiocb: Pointer to driver response iocb object. | 4544 | * @rspiocb: Pointer to driver response iocb object. |
@@ -4572,7 +4568,7 @@ lpfc_ignore_els_cmpl(struct lpfc_hba *phba, struct lpfc_iocbq *cmdiocb, | |||
4572 | } | 4568 | } |
4573 | 4569 | ||
4574 | /** | 4570 | /** |
4575 | * lpfc_sli_issue_abort_iotag: Abort function for a command iocb. | 4571 | * lpfc_sli_issue_abort_iotag - Abort function for a command iocb |
4576 | * @phba: Pointer to HBA context object. | 4572 | * @phba: Pointer to HBA context object. |
4577 | * @pring: Pointer to driver SLI ring object. | 4573 | * @pring: Pointer to driver SLI ring object. |
4578 | * @cmdiocb: Pointer to driver command iocb object. | 4574 | * @cmdiocb: Pointer to driver command iocb object. |
@@ -4658,15 +4654,14 @@ abort_iotag_exit: | |||
4658 | } | 4654 | } |
4659 | 4655 | ||
4660 | /** | 4656 | /** |
4661 | * lpfc_sli_validate_fcp_iocb: Filtering function, used to find commands | 4657 | * lpfc_sli_validate_fcp_iocb - find commands associated with a vport or LUN |
4662 | * associated with a vport/SCSI target/lun. | ||
4663 | * @iocbq: Pointer to driver iocb object. | 4658 | * @iocbq: Pointer to driver iocb object. |
4664 | * @vport: Pointer to driver virtual port object. | 4659 | * @vport: Pointer to driver virtual port object. |
4665 | * @tgt_id: SCSI ID of the target. | 4660 | * @tgt_id: SCSI ID of the target. |
4666 | * @lun_id: LUN ID of the scsi device. | 4661 | * @lun_id: LUN ID of the scsi device. |
4667 | * @ctx_cmd: LPFC_CTX_LUN/LPFC_CTX_TGT/LPFC_CTX_HOST | 4662 | * @ctx_cmd: LPFC_CTX_LUN/LPFC_CTX_TGT/LPFC_CTX_HOST |
4668 | * | 4663 | * |
4669 | * This function acts as iocb filter for functions which abort or count | 4664 | * This function acts as an iocb filter for functions which abort or count |
4670 | * all FCP iocbs pending on a lun/SCSI target/SCSI host. It will return | 4665 | * all FCP iocbs pending on a lun/SCSI target/SCSI host. It will return |
4671 | * 0 if the filtering criteria is met for the given iocb and will return | 4666 | * 0 if the filtering criteria is met for the given iocb and will return |
4672 | * 1 if the filtering criteria is not met. | 4667 | * 1 if the filtering criteria is not met. |
@@ -4724,7 +4719,7 @@ lpfc_sli_validate_fcp_iocb(struct lpfc_iocbq *iocbq, struct lpfc_vport *vport, | |||
4724 | } | 4719 | } |
4725 | 4720 | ||
4726 | /** | 4721 | /** |
4727 | * lpfc_sli_sum_iocb: Function to count the number of FCP iocbs pending. | 4722 | * lpfc_sli_sum_iocb - Function to count the number of FCP iocbs pending |
4728 | * @vport: Pointer to virtual port. | 4723 | * @vport: Pointer to virtual port. |
4729 | * @tgt_id: SCSI ID of the target. | 4724 | * @tgt_id: SCSI ID of the target. |
4730 | * @lun_id: LUN ID of the scsi device. | 4725 | * @lun_id: LUN ID of the scsi device. |
@@ -4762,8 +4757,7 @@ lpfc_sli_sum_iocb(struct lpfc_vport *vport, uint16_t tgt_id, uint64_t lun_id, | |||
4762 | } | 4757 | } |
4763 | 4758 | ||
4764 | /** | 4759 | /** |
4765 | * lpfc_sli_abort_fcp_cmpl: Completion handler function for an aborted | 4760 | * lpfc_sli_abort_fcp_cmpl - Completion handler function for aborted FCP IOCBs |
4766 | * FCP iocb. | ||
4767 | * @phba: Pointer to HBA context object | 4761 | * @phba: Pointer to HBA context object |
4768 | * @cmdiocb: Pointer to command iocb object. | 4762 | * @cmdiocb: Pointer to command iocb object. |
4769 | * @rspiocb: Pointer to response iocb object. | 4763 | * @rspiocb: Pointer to response iocb object. |
@@ -4781,8 +4775,7 @@ lpfc_sli_abort_fcp_cmpl(struct lpfc_hba *phba, struct lpfc_iocbq *cmdiocb, | |||
4781 | } | 4775 | } |
4782 | 4776 | ||
4783 | /** | 4777 | /** |
4784 | * lpfc_sli_abort_iocb: This function issue abort for all SCSI commands | 4778 | * lpfc_sli_abort_iocb - issue abort for all commands on a host/target/LUN |
4785 | * pending on a SCSI host(vport)/target/lun. | ||
4786 | * @vport: Pointer to virtual port. | 4779 | * @vport: Pointer to virtual port. |
4787 | * @pring: Pointer to driver SLI ring object. | 4780 | * @pring: Pointer to driver SLI ring object. |
4788 | * @tgt_id: SCSI ID of the target. | 4781 | * @tgt_id: SCSI ID of the target. |
@@ -4854,8 +4847,7 @@ lpfc_sli_abort_iocb(struct lpfc_vport *vport, struct lpfc_sli_ring *pring, | |||
4854 | } | 4847 | } |
4855 | 4848 | ||
4856 | /** | 4849 | /** |
4857 | * lpfc_sli_wake_iocb_wait: iocb completion handler for iocb issued using | 4850 | * lpfc_sli_wake_iocb_wait - lpfc_sli_issue_iocb_wait's completion handler |
4858 | * lpfc_sli_issue_iocb_wait. | ||
4859 | * @phba: Pointer to HBA context object. | 4851 | * @phba: Pointer to HBA context object. |
4860 | * @cmdiocbq: Pointer to command iocb. | 4852 | * @cmdiocbq: Pointer to command iocb. |
4861 | * @rspiocbq: Pointer to response iocb. | 4853 | * @rspiocbq: Pointer to response iocb. |
@@ -4893,7 +4885,7 @@ lpfc_sli_wake_iocb_wait(struct lpfc_hba *phba, | |||
4893 | } | 4885 | } |
4894 | 4886 | ||
4895 | /** | 4887 | /** |
4896 | * lpfc_sli_issue_iocb_wait: Synchronous function to issue iocb commands. | 4888 | * lpfc_sli_issue_iocb_wait - Synchronous function to issue iocb commands |
4897 | * @phba: Pointer to HBA context object.. | 4889 | * @phba: Pointer to HBA context object.. |
4898 | * @pring: Pointer to sli ring. | 4890 | * @pring: Pointer to sli ring. |
4899 | * @piocb: Pointer to command iocb. | 4891 | * @piocb: Pointer to command iocb. |
@@ -5000,7 +4992,7 @@ lpfc_sli_issue_iocb_wait(struct lpfc_hba *phba, | |||
5000 | } | 4992 | } |
5001 | 4993 | ||
5002 | /** | 4994 | /** |
5003 | * lpfc_sli_issue_mbox_wait: Synchronous function to issue mailbox. | 4995 | * lpfc_sli_issue_mbox_wait - Synchronous function to issue mailbox |
5004 | * @phba: Pointer to HBA context object. | 4996 | * @phba: Pointer to HBA context object. |
5005 | * @pmboxq: Pointer to driver mailbox object. | 4997 | * @pmboxq: Pointer to driver mailbox object. |
5006 | * @timeout: Timeout in number of seconds. | 4998 | * @timeout: Timeout in number of seconds. |
@@ -5070,7 +5062,7 @@ lpfc_sli_issue_mbox_wait(struct lpfc_hba *phba, LPFC_MBOXQ_t *pmboxq, | |||
5070 | } | 5062 | } |
5071 | 5063 | ||
5072 | /** | 5064 | /** |
5073 | * lpfc_sli_flush_mbox_queue: mailbox queue cleanup function. | 5065 | * lpfc_sli_flush_mbox_queue - mailbox queue cleanup function |
5074 | * @phba: Pointer to HBA context. | 5066 | * @phba: Pointer to HBA context. |
5075 | * | 5067 | * |
5076 | * This function is called to cleanup any pending mailbox | 5068 | * This function is called to cleanup any pending mailbox |
@@ -5113,7 +5105,7 @@ lpfc_sli_flush_mbox_queue(struct lpfc_hba * phba) | |||
5113 | } | 5105 | } |
5114 | 5106 | ||
5115 | /** | 5107 | /** |
5116 | * lpfc_sli_check_eratt: check error attention events | 5108 | * lpfc_sli_check_eratt - check error attention events |
5117 | * @phba: Pointer to HBA context. | 5109 | * @phba: Pointer to HBA context. |
5118 | * | 5110 | * |
5119 | * This function is called form timer soft interrupt context to check HBA's | 5111 | * This function is called form timer soft interrupt context to check HBA's |
@@ -5162,7 +5154,7 @@ lpfc_sli_check_eratt(struct lpfc_hba *phba) | |||
5162 | } | 5154 | } |
5163 | 5155 | ||
5164 | /** | 5156 | /** |
5165 | * lpfc_sp_intr_handler: The slow-path interrupt handler of lpfc driver. | 5157 | * lpfc_sp_intr_handler - The slow-path interrupt handler of lpfc driver |
5166 | * @irq: Interrupt number. | 5158 | * @irq: Interrupt number. |
5167 | * @dev_id: The device context pointer. | 5159 | * @dev_id: The device context pointer. |
5168 | * | 5160 | * |
@@ -5423,7 +5415,7 @@ send_current_mbox: | |||
5423 | } /* lpfc_sp_intr_handler */ | 5415 | } /* lpfc_sp_intr_handler */ |
5424 | 5416 | ||
5425 | /** | 5417 | /** |
5426 | * lpfc_fp_intr_handler: The fast-path interrupt handler of lpfc driver. | 5418 | * lpfc_fp_intr_handler - The fast-path interrupt handler of lpfc driver |
5427 | * @irq: Interrupt number. | 5419 | * @irq: Interrupt number. |
5428 | * @dev_id: The device context pointer. | 5420 | * @dev_id: The device context pointer. |
5429 | * | 5421 | * |
@@ -5510,7 +5502,7 @@ lpfc_fp_intr_handler(int irq, void *dev_id) | |||
5510 | } /* lpfc_fp_intr_handler */ | 5502 | } /* lpfc_fp_intr_handler */ |
5511 | 5503 | ||
5512 | /** | 5504 | /** |
5513 | * lpfc_intr_handler: The device-level interrupt handler of lpfc driver. | 5505 | * lpfc_intr_handler - The device-level interrupt handler of lpfc driver |
5514 | * @irq: Interrupt number. | 5506 | * @irq: Interrupt number. |
5515 | * @dev_id: The device context pointer. | 5507 | * @dev_id: The device context pointer. |
5516 | * | 5508 | * |