Commit 5fbe25c7 authored by Jing Huang's avatar Jing Huang Committed by James Bottomley

[SCSI] bfa: fix comments for c files

This patch addresses the comments from Randy Dunlap (Randy.Dunlap@oracle.com)
regarding comment blocks that begining with "/**". bfa driver comments
currently do not follow kernel-doc convention, we hence replace all
/** with /* and **/ with */.
Signed-off-by: default avatarJing Huang <huangj@brocade.com>
Signed-off-by: default avatarJames Bottomley <James.Bottomley@suse.de>
parent acdc79a6
This diff is collapsed.
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
#include "bfa_modules.h" #include "bfa_modules.h"
/** /*
* BFA module list terminated by NULL * BFA module list terminated by NULL
*/ */
struct bfa_module_s *hal_mods[] = { struct bfa_module_s *hal_mods[] = {
...@@ -31,7 +31,7 @@ struct bfa_module_s *hal_mods[] = { ...@@ -31,7 +31,7 @@ struct bfa_module_s *hal_mods[] = {
NULL NULL
}; };
/** /*
* Message handlers for various modules. * Message handlers for various modules.
*/ */
bfa_isr_func_t bfa_isrs[BFI_MC_MAX] = { bfa_isr_func_t bfa_isrs[BFI_MC_MAX] = {
...@@ -70,7 +70,7 @@ bfa_isr_func_t bfa_isrs[BFI_MC_MAX] = { ...@@ -70,7 +70,7 @@ bfa_isr_func_t bfa_isrs[BFI_MC_MAX] = {
}; };
/** /*
* Message handlers for mailbox command classes * Message handlers for mailbox command classes
*/ */
bfa_ioc_mbox_mcfunc_t bfa_mbox_isrs[BFI_MC_MAX] = { bfa_ioc_mbox_mcfunc_t bfa_mbox_isrs[BFI_MC_MAX] = {
......
...@@ -150,7 +150,7 @@ fc_gs_fchdr_build(struct fchs_s *fchs, u32 d_id, u32 s_id, u32 ox_id) ...@@ -150,7 +150,7 @@ fc_gs_fchdr_build(struct fchs_s *fchs, u32 d_id, u32 s_id, u32 ox_id)
fchs->s_id = (s_id); fchs->s_id = (s_id);
fchs->ox_id = cpu_to_be16(ox_id); fchs->ox_id = cpu_to_be16(ox_id);
/** /*
* @todo no need to set ox_id for request * @todo no need to set ox_id for request
* no need to set rx_id for response * no need to set rx_id for response
*/ */
......
This diff is collapsed.
This diff is collapsed.
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
* General Public License for more details. * General Public License for more details.
*/ */
/** /*
* fcpim.c - FCP initiator mode i-t nexus state machine * fcpim.c - FCP initiator mode i-t nexus state machine
*/ */
...@@ -38,7 +38,7 @@ static void bfa_fcs_itnim_prli_response(void *fcsarg, ...@@ -38,7 +38,7 @@ static void bfa_fcs_itnim_prli_response(void *fcsarg,
bfa_status_t req_status, u32 rsp_len, bfa_status_t req_status, u32 rsp_len,
u32 resid_len, struct fchs_s *rsp_fchs); u32 resid_len, struct fchs_s *rsp_fchs);
/** /*
* fcs_itnim_sm FCS itnim state machine events * fcs_itnim_sm FCS itnim state machine events
*/ */
...@@ -84,7 +84,7 @@ static struct bfa_sm_table_s itnim_sm_table[] = { ...@@ -84,7 +84,7 @@ static struct bfa_sm_table_s itnim_sm_table[] = {
{BFA_SM(bfa_fcs_itnim_sm_initiator), BFA_ITNIM_INITIATIOR}, {BFA_SM(bfa_fcs_itnim_sm_initiator), BFA_ITNIM_INITIATIOR},
}; };
/** /*
* fcs_itnim_sm FCS itnim state machine * fcs_itnim_sm FCS itnim state machine
*/ */
...@@ -494,11 +494,11 @@ bfa_fcs_itnim_free(struct bfa_fcs_itnim_s *itnim) ...@@ -494,11 +494,11 @@ bfa_fcs_itnim_free(struct bfa_fcs_itnim_s *itnim)
/** /*
* itnim_public FCS ITNIM public interfaces * itnim_public FCS ITNIM public interfaces
*/ */
/** /*
* Called by rport when a new rport is created. * Called by rport when a new rport is created.
* *
* @param[in] rport - remote port. * @param[in] rport - remote port.
...@@ -554,7 +554,7 @@ bfa_fcs_itnim_create(struct bfa_fcs_rport_s *rport) ...@@ -554,7 +554,7 @@ bfa_fcs_itnim_create(struct bfa_fcs_rport_s *rport)
return itnim; return itnim;
} }
/** /*
* Called by rport to delete the instance of FCPIM. * Called by rport to delete the instance of FCPIM.
* *
* @param[in] rport - remote port. * @param[in] rport - remote port.
...@@ -566,7 +566,7 @@ bfa_fcs_itnim_delete(struct bfa_fcs_itnim_s *itnim) ...@@ -566,7 +566,7 @@ bfa_fcs_itnim_delete(struct bfa_fcs_itnim_s *itnim)
bfa_sm_send_event(itnim, BFA_FCS_ITNIM_SM_DELETE); bfa_sm_send_event(itnim, BFA_FCS_ITNIM_SM_DELETE);
} }
/** /*
* Notification from rport that PLOGI is complete to initiate FC-4 session. * Notification from rport that PLOGI is complete to initiate FC-4 session.
*/ */
void void
...@@ -586,7 +586,7 @@ bfa_fcs_itnim_rport_online(struct bfa_fcs_itnim_s *itnim) ...@@ -586,7 +586,7 @@ bfa_fcs_itnim_rport_online(struct bfa_fcs_itnim_s *itnim)
} }
} }
/** /*
* Called by rport to handle a remote device offline. * Called by rport to handle a remote device offline.
*/ */
void void
...@@ -596,7 +596,7 @@ bfa_fcs_itnim_rport_offline(struct bfa_fcs_itnim_s *itnim) ...@@ -596,7 +596,7 @@ bfa_fcs_itnim_rport_offline(struct bfa_fcs_itnim_s *itnim)
bfa_sm_send_event(itnim, BFA_FCS_ITNIM_SM_OFFLINE); bfa_sm_send_event(itnim, BFA_FCS_ITNIM_SM_OFFLINE);
} }
/** /*
* Called by rport when remote port is known to be an initiator from * Called by rport when remote port is known to be an initiator from
* PRLI received. * PRLI received.
*/ */
...@@ -608,7 +608,7 @@ bfa_fcs_itnim_is_initiator(struct bfa_fcs_itnim_s *itnim) ...@@ -608,7 +608,7 @@ bfa_fcs_itnim_is_initiator(struct bfa_fcs_itnim_s *itnim)
bfa_sm_send_event(itnim, BFA_FCS_ITNIM_SM_INITIATOR); bfa_sm_send_event(itnim, BFA_FCS_ITNIM_SM_INITIATOR);
} }
/** /*
* Called by rport to check if the itnim is online. * Called by rport to check if the itnim is online.
*/ */
bfa_status_t bfa_status_t
...@@ -625,7 +625,7 @@ bfa_fcs_itnim_get_online_state(struct bfa_fcs_itnim_s *itnim) ...@@ -625,7 +625,7 @@ bfa_fcs_itnim_get_online_state(struct bfa_fcs_itnim_s *itnim)
} }
} }
/** /*
* BFA completion callback for bfa_itnim_online(). * BFA completion callback for bfa_itnim_online().
*/ */
void void
...@@ -637,7 +637,7 @@ bfa_cb_itnim_online(void *cbarg) ...@@ -637,7 +637,7 @@ bfa_cb_itnim_online(void *cbarg)
bfa_sm_send_event(itnim, BFA_FCS_ITNIM_SM_HCB_ONLINE); bfa_sm_send_event(itnim, BFA_FCS_ITNIM_SM_HCB_ONLINE);
} }
/** /*
* BFA completion callback for bfa_itnim_offline(). * BFA completion callback for bfa_itnim_offline().
*/ */
void void
...@@ -649,7 +649,7 @@ bfa_cb_itnim_offline(void *cb_arg) ...@@ -649,7 +649,7 @@ bfa_cb_itnim_offline(void *cb_arg)
bfa_sm_send_event(itnim, BFA_FCS_ITNIM_SM_HCB_OFFLINE); bfa_sm_send_event(itnim, BFA_FCS_ITNIM_SM_HCB_OFFLINE);
} }
/** /*
* Mark the beginning of PATH TOV handling. IO completion callbacks * Mark the beginning of PATH TOV handling. IO completion callbacks
* are still pending. * are still pending.
*/ */
...@@ -661,7 +661,7 @@ bfa_cb_itnim_tov_begin(void *cb_arg) ...@@ -661,7 +661,7 @@ bfa_cb_itnim_tov_begin(void *cb_arg)
bfa_trc(itnim->fcs, itnim->rport->pwwn); bfa_trc(itnim->fcs, itnim->rport->pwwn);
} }
/** /*
* Mark the end of PATH TOV handling. All pending IOs are already cleaned up. * Mark the end of PATH TOV handling. All pending IOs are already cleaned up.
*/ */
void void
...@@ -674,7 +674,7 @@ bfa_cb_itnim_tov(void *cb_arg) ...@@ -674,7 +674,7 @@ bfa_cb_itnim_tov(void *cb_arg)
itnim_drv->state = ITNIM_STATE_TIMEOUT; itnim_drv->state = ITNIM_STATE_TIMEOUT;
} }
/** /*
* BFA notification to FCS/driver for second level error recovery. * BFA notification to FCS/driver for second level error recovery.
* *
* Atleast one I/O request has timedout and target is unresponsive to * Atleast one I/O request has timedout and target is unresponsive to
......
This diff is collapsed.
This diff is collapsed.
...@@ -102,7 +102,7 @@ bfa_hwcb_msix_getvecs(struct bfa_s *bfa, u32 *msix_vecs_bmap, ...@@ -102,7 +102,7 @@ bfa_hwcb_msix_getvecs(struct bfa_s *bfa, u32 *msix_vecs_bmap,
*num_vecs = __HFN_NUMINTS; *num_vecs = __HFN_NUMINTS;
} }
/** /*
* No special setup required for crossbow -- vector assignments are implicit. * No special setup required for crossbow -- vector assignments are implicit.
*/ */
void void
...@@ -129,7 +129,7 @@ bfa_hwcb_msix_init(struct bfa_s *bfa, int nvecs) ...@@ -129,7 +129,7 @@ bfa_hwcb_msix_init(struct bfa_s *bfa, int nvecs)
bfa->msix.handler[i] = bfa_msix_lpu_err; bfa->msix.handler[i] = bfa_msix_lpu_err;
} }
/** /*
* Crossbow -- dummy, interrupts are masked * Crossbow -- dummy, interrupts are masked
*/ */
void void
...@@ -142,7 +142,7 @@ bfa_hwcb_msix_uninstall(struct bfa_s *bfa) ...@@ -142,7 +142,7 @@ bfa_hwcb_msix_uninstall(struct bfa_s *bfa)
{ {
} }
/** /*
* No special enable/disable -- vector assignments are implicit. * No special enable/disable -- vector assignments are implicit.
*/ */
void void
......
...@@ -39,7 +39,7 @@ bfa_hwct_msix_lpu_err_set(struct bfa_s *bfa, bfa_boolean_t msix, int vec) ...@@ -39,7 +39,7 @@ bfa_hwct_msix_lpu_err_set(struct bfa_s *bfa, bfa_boolean_t msix, int vec)
writel(0, kva + __ct_msix_err_vec_reg[fn]); writel(0, kva + __ct_msix_err_vec_reg[fn]);
} }
/** /*
* Dummy interrupt handler for handling spurious interrupt during chip-reinit. * Dummy interrupt handler for handling spurious interrupt during chip-reinit.
*/ */
static void static void
...@@ -110,7 +110,7 @@ bfa_hwct_msix_getvecs(struct bfa_s *bfa, u32 *msix_vecs_bmap, ...@@ -110,7 +110,7 @@ bfa_hwct_msix_getvecs(struct bfa_s *bfa, u32 *msix_vecs_bmap,
*num_vecs = BFA_MSIX_CT_MAX; *num_vecs = BFA_MSIX_CT_MAX;
} }
/** /*
* Setup MSI-X vector for catapult * Setup MSI-X vector for catapult
*/ */
void void
...@@ -156,7 +156,7 @@ bfa_hwct_msix_uninstall(struct bfa_s *bfa) ...@@ -156,7 +156,7 @@ bfa_hwct_msix_uninstall(struct bfa_s *bfa)
bfa->msix.handler[i] = bfa_hwct_msix_dummy; bfa->msix.handler[i] = bfa_hwct_msix_dummy;
} }
/** /*
* Enable MSI-X vectors * Enable MSI-X vectors
*/ */
void void
......
This diff is collapsed.
...@@ -34,7 +34,7 @@ static void bfa_ioc_cb_ownership_reset(struct bfa_ioc_s *ioc); ...@@ -34,7 +34,7 @@ static void bfa_ioc_cb_ownership_reset(struct bfa_ioc_s *ioc);
struct bfa_ioc_hwif_s hwif_cb; struct bfa_ioc_hwif_s hwif_cb;
/** /*
* Called from bfa_ioc_attach() to map asic specific calls. * Called from bfa_ioc_attach() to map asic specific calls.
*/ */
void void
...@@ -52,7 +52,7 @@ bfa_ioc_set_cb_hwif(struct bfa_ioc_s *ioc) ...@@ -52,7 +52,7 @@ bfa_ioc_set_cb_hwif(struct bfa_ioc_s *ioc)
ioc->ioc_hwif = &hwif_cb; ioc->ioc_hwif = &hwif_cb;
} }
/** /*
* Return true if firmware of current driver matches the running firmware. * Return true if firmware of current driver matches the running firmware.
*/ */
static bfa_boolean_t static bfa_boolean_t
...@@ -66,7 +66,7 @@ bfa_ioc_cb_firmware_unlock(struct bfa_ioc_s *ioc) ...@@ -66,7 +66,7 @@ bfa_ioc_cb_firmware_unlock(struct bfa_ioc_s *ioc)
{ {
} }
/** /*
* Notify other functions on HB failure. * Notify other functions on HB failure.
*/ */
static void static void
...@@ -76,7 +76,7 @@ bfa_ioc_cb_notify_hbfail(struct bfa_ioc_s *ioc) ...@@ -76,7 +76,7 @@ bfa_ioc_cb_notify_hbfail(struct bfa_ioc_s *ioc)
readl(ioc->ioc_regs.err_set); readl(ioc->ioc_regs.err_set);
} }
/** /*
* Host to LPU mailbox message addresses * Host to LPU mailbox message addresses
*/ */
static struct { u32 hfn_mbox, lpu_mbox, hfn_pgn; } iocreg_fnreg[] = { static struct { u32 hfn_mbox, lpu_mbox, hfn_pgn; } iocreg_fnreg[] = {
...@@ -84,7 +84,7 @@ static struct { u32 hfn_mbox, lpu_mbox, hfn_pgn; } iocreg_fnreg[] = { ...@@ -84,7 +84,7 @@ static struct { u32 hfn_mbox, lpu_mbox, hfn_pgn; } iocreg_fnreg[] = {
{ HOSTFN1_LPU_MBOX0_8, LPU_HOSTFN1_MBOX0_8, HOST_PAGE_NUM_FN1 } { HOSTFN1_LPU_MBOX0_8, LPU_HOSTFN1_MBOX0_8, HOST_PAGE_NUM_FN1 }
}; };
/** /*
* Host <-> LPU mailbox command/status registers * Host <-> LPU mailbox command/status registers
*/ */
static struct { u32 hfn, lpu; } iocreg_mbcmd[] = { static struct { u32 hfn, lpu; } iocreg_mbcmd[] = {
...@@ -113,7 +113,7 @@ bfa_ioc_cb_reg_init(struct bfa_ioc_s *ioc) ...@@ -113,7 +113,7 @@ bfa_ioc_cb_reg_init(struct bfa_ioc_s *ioc)
ioc->ioc_regs.ioc_fwstate = (rb + BFA_IOC1_STATE_REG); ioc->ioc_regs.ioc_fwstate = (rb + BFA_IOC1_STATE_REG);
} }
/** /*
* Host <-> LPU mailbox command/status registers * Host <-> LPU mailbox command/status registers
*/ */
ioc->ioc_regs.hfn_mbox_cmd = rb + iocreg_mbcmd[pcifn].hfn; ioc->ioc_regs.hfn_mbox_cmd = rb + iocreg_mbcmd[pcifn].hfn;
...@@ -133,7 +133,7 @@ bfa_ioc_cb_reg_init(struct bfa_ioc_s *ioc) ...@@ -133,7 +133,7 @@ bfa_ioc_cb_reg_init(struct bfa_ioc_s *ioc)
ioc->ioc_regs.ioc_sem_reg = (rb + HOST_SEM0_REG); ioc->ioc_regs.ioc_sem_reg = (rb + HOST_SEM0_REG);
ioc->ioc_regs.ioc_init_sem_reg = (rb + HOST_SEM2_REG); ioc->ioc_regs.ioc_init_sem_reg = (rb + HOST_SEM2_REG);
/** /*
* sram memory access * sram memory access
*/ */
ioc->ioc_regs.smem_page_start = (rb + PSS_SMEM_PAGE_START); ioc->ioc_regs.smem_page_start = (rb + PSS_SMEM_PAGE_START);
...@@ -145,14 +145,14 @@ bfa_ioc_cb_reg_init(struct bfa_ioc_s *ioc) ...@@ -145,14 +145,14 @@ bfa_ioc_cb_reg_init(struct bfa_ioc_s *ioc)
ioc->ioc_regs.err_set = (rb + ERR_SET_REG); ioc->ioc_regs.err_set = (rb + ERR_SET_REG);
} }
/** /*
* Initialize IOC to port mapping. * Initialize IOC to port mapping.
*/ */
static void static void
bfa_ioc_cb_map_port(struct bfa_ioc_s *ioc) bfa_ioc_cb_map_port(struct bfa_ioc_s *ioc)
{ {
/** /*
* For crossbow, port id is same as pci function. * For crossbow, port id is same as pci function.
*/ */
ioc->port_id = bfa_ioc_pcifn(ioc); ioc->port_id = bfa_ioc_pcifn(ioc);
...@@ -160,7 +160,7 @@ bfa_ioc_cb_map_port(struct bfa_ioc_s *ioc) ...@@ -160,7 +160,7 @@ bfa_ioc_cb_map_port(struct bfa_ioc_s *ioc)
bfa_trc(ioc, ioc->port_id); bfa_trc(ioc, ioc->port_id);
} }
/** /*
* Set interrupt mode for a function: INTX or MSIX * Set interrupt mode for a function: INTX or MSIX
*/ */
static void static void
...@@ -168,7 +168,7 @@ bfa_ioc_cb_isr_mode_set(struct bfa_ioc_s *ioc, bfa_boolean_t msix) ...@@ -168,7 +168,7 @@ bfa_ioc_cb_isr_mode_set(struct bfa_ioc_s *ioc, bfa_boolean_t msix)
{ {
} }
/** /*
* Cleanup hw semaphore and usecnt registers * Cleanup hw semaphore and usecnt registers
*/ */
static void static void
......
...@@ -34,7 +34,7 @@ static void bfa_ioc_ct_ownership_reset(struct bfa_ioc_s *ioc); ...@@ -34,7 +34,7 @@ static void bfa_ioc_ct_ownership_reset(struct bfa_ioc_s *ioc);
struct bfa_ioc_hwif_s hwif_ct; struct bfa_ioc_hwif_s hwif_ct;
/** /*
* Called from bfa_ioc_attach() to map asic specific calls. * Called from bfa_ioc_attach() to map asic specific calls.
*/ */
void void
...@@ -52,7 +52,7 @@ bfa_ioc_set_ct_hwif(struct bfa_ioc_s *ioc) ...@@ -52,7 +52,7 @@ bfa_ioc_set_ct_hwif(struct bfa_ioc_s *ioc)
ioc->ioc_hwif = &hwif_ct; ioc->ioc_hwif = &hwif_ct;
} }
/** /*
* Return true if firmware of current driver matches the running firmware. * Return true if firmware of current driver matches the running firmware.
*/ */
static bfa_boolean_t static bfa_boolean_t
...@@ -62,13 +62,13 @@ bfa_ioc_ct_firmware_lock(struct bfa_ioc_s *ioc) ...@@ -62,13 +62,13 @@ bfa_ioc_ct_firmware_lock(struct bfa_ioc_s *ioc)
u32 usecnt; u32 usecnt;
struct bfi_ioc_image_hdr_s fwhdr; struct bfi_ioc_image_hdr_s fwhdr;
/** /*
* Firmware match check is relevant only for CNA. * Firmware match check is relevant only for CNA.
*/ */
if (!ioc->cna) if (!ioc->cna)
return BFA_TRUE; return BFA_TRUE;
/** /*
* If bios boot (flash based) -- do not increment usage count * If bios boot (flash based) -- do not increment usage count
*/ */
if (bfa_cb_image_get_size(BFA_IOC_FWIMG_TYPE(ioc)) < if (bfa_cb_image_get_size(BFA_IOC_FWIMG_TYPE(ioc)) <
...@@ -78,7 +78,7 @@ bfa_ioc_ct_firmware_lock(struct bfa_ioc_s *ioc) ...@@ -78,7 +78,7 @@ bfa_ioc_ct_firmware_lock(struct bfa_ioc_s *ioc)
bfa_ioc_sem_get(ioc->ioc_regs.ioc_usage_sem_reg); bfa_ioc_sem_get(ioc->ioc_regs.ioc_usage_sem_reg);
usecnt = readl(ioc->ioc_regs.ioc_usage_reg); usecnt = readl(ioc->ioc_regs.ioc_usage_reg);
/** /*
* If usage count is 0, always return TRUE. * If usage count is 0, always return TRUE.
*/ */
if (usecnt == 0) { if (usecnt == 0) {
...@@ -91,12 +91,12 @@ bfa_ioc_ct_firmware_lock(struct bfa_ioc_s *ioc) ...@@ -91,12 +91,12 @@ bfa_ioc_ct_firmware_lock(struct bfa_ioc_s *ioc)
ioc_fwstate = readl(ioc->ioc_regs.ioc_fwstate); ioc_fwstate = readl(ioc->ioc_regs.ioc_fwstate);
bfa_trc(ioc, ioc_fwstate); bfa_trc(ioc, ioc_fwstate);
/** /*
* Use count cannot be non-zero and chip in uninitialized state. * Use count cannot be non-zero and chip in uninitialized state.
*/ */
bfa_assert(ioc_fwstate != BFI_IOC_UNINIT); bfa_assert(ioc_fwstate != BFI_IOC_UNINIT);
/** /*
* Check if another driver with a different firmware is active * Check if another driver with a different firmware is active
*/ */
bfa_ioc_fwver_get(ioc, &fwhdr); bfa_ioc_fwver_get(ioc, &fwhdr);
...@@ -106,7 +106,7 @@ bfa_ioc_ct_firmware_lock(struct bfa_ioc_s *ioc) ...@@ -106,7 +106,7 @@ bfa_ioc_ct_firmware_lock(struct bfa_ioc_s *ioc)
return BFA_FALSE; return BFA_FALSE;
} }
/** /*
* Same firmware version. Increment the reference count. * Same firmware version. Increment the reference count.
*/ */
usecnt++; usecnt++;
...@@ -121,20 +121,20 @@ bfa_ioc_ct_firmware_unlock(struct bfa_ioc_s *ioc) ...@@ -121,20 +121,20 @@ bfa_ioc_ct_firmware_unlock(struct bfa_ioc_s *ioc)
{ {
u32 usecnt; u32 usecnt;
/** /*
* Firmware lock is relevant only for CNA. * Firmware lock is relevant only for CNA.
*/ */
if (!ioc->cna) if (!ioc->cna)
return; return;
/** /*
* If bios boot (flash based) -- do not decrement usage count * If bios boot (flash based) -- do not decrement usage count
*/ */
if (bfa_cb_image_get_size(BFA_IOC_FWIMG_TYPE(ioc)) < if (bfa_cb_image_get_size(BFA_IOC_FWIMG_TYPE(ioc)) <
BFA_IOC_FWIMG_MINSZ) BFA_IOC_FWIMG_MINSZ)
return; return;
/** /*
* decrement usage count * decrement usage count
*/ */
bfa_ioc_sem_get(ioc->ioc_regs.ioc_usage_sem_reg); bfa_ioc_sem_get(ioc->ioc_regs.ioc_usage_sem_reg);
...@@ -148,7 +148,7 @@ bfa_ioc_ct_firmware_unlock(struct bfa_ioc_s *ioc) ...@@ -148,7 +148,7 @@ bfa_ioc_ct_firmware_unlock(struct bfa_ioc_s *ioc)
bfa_ioc_sem_release(ioc->ioc_regs.ioc_usage_sem_reg); bfa_ioc_sem_release(ioc->ioc_regs.ioc_usage_sem_reg);
} }
/** /*
* Notify other functions on HB failure. * Notify other functions on HB failure.
*/ */
static void static void
...@@ -164,7 +164,7 @@ bfa_ioc_ct_notify_hbfail(struct bfa_ioc_s *ioc) ...@@ -164,7 +164,7 @@ bfa_ioc_ct_notify_hbfail(struct bfa_ioc_s *ioc)
} }
} }
/** /*
* Host to LPU mailbox message addresses * Host to LPU mailbox message addresses
*/ */
static struct { u32 hfn_mbox, lpu_mbox, hfn_pgn; } iocreg_fnreg[] = { static struct { u32 hfn_mbox, lpu_mbox, hfn_pgn; } iocreg_fnreg[] = {
...@@ -174,7 +174,7 @@ static struct { u32 hfn_mbox, lpu_mbox, hfn_pgn; } iocreg_fnreg[] = { ...@@ -174,7 +174,7 @@ static struct { u32 hfn_mbox, lpu_mbox, hfn_pgn; } iocreg_fnreg[] = {
{ HOSTFN3_LPU_MBOX0_8, LPU_HOSTFN3_MBOX0_8, HOST_PAGE_NUM_FN3 } { HOSTFN3_LPU_MBOX0_8, LPU_HOSTFN3_MBOX0_8, HOST_PAGE_NUM_FN3 }
}; };
/** /*
* Host <-> LPU mailbox command/status registers - port 0 * Host <-> LPU mailbox command/status registers - port 0
*/ */
static struct { u32 hfn, lpu; } iocreg_mbcmd_p0[] = { static struct { u32 hfn, lpu; } iocreg_mbcmd_p0[] = {
...@@ -184,7 +184,7 @@ static struct { u32 hfn, lpu; } iocreg_mbcmd_p0[] = { ...@@ -184,7 +184,7 @@ static struct { u32 hfn, lpu; } iocreg_mbcmd_p0[] = {
{ HOSTFN3_LPU0_MBOX0_CMD_STAT, LPU0_HOSTFN3_MBOX0_CMD_STAT } { HOSTFN3_LPU0_MBOX0_CMD_STAT, LPU0_HOSTFN3_MBOX0_CMD_STAT }
}; };
/** /*
* Host <-> LPU mailbox command/status registers - port 1 * Host <-> LPU mailbox command/status registers - port 1
*/ */
static struct { u32 hfn, lpu; } iocreg_mbcmd_p1[] = { static struct { u32 hfn, lpu; } iocreg_mbcmd_p1[] = {
...@@ -236,7 +236,7 @@ bfa_ioc_ct_reg_init(struct bfa_ioc_s *ioc) ...@@ -236,7 +236,7 @@ bfa_ioc_ct_reg_init(struct bfa_ioc_s *ioc)
ioc->ioc_regs.ioc_init_sem_reg = (rb + HOST_SEM2_REG); ioc->ioc_regs.ioc_init_sem_reg = (rb + HOST_SEM2_REG);
ioc->ioc_regs.ioc_usage_reg = (rb + BFA_FW_USE_COUNT); ioc->ioc_regs.ioc_usage_reg = (rb + BFA_FW_USE_COUNT);
/** /*
* sram memory access * sram memory access
*/ */
ioc->ioc_regs.smem_page_start = (rb + PSS_SMEM_PAGE_START); ioc->ioc_regs.smem_page_start = (rb + PSS_SMEM_PAGE_START);
...@@ -248,7 +248,7 @@ bfa_ioc_ct_reg_init(struct bfa_ioc_s *ioc) ...@@ -248,7 +248,7 @@ bfa_ioc_ct_reg_init(struct bfa_ioc_s *ioc)
ioc->ioc_regs.err_set = (rb + ERR_SET_REG); ioc->ioc_regs.err_set = (rb + ERR_SET_REG);
} }
/** /*
* Initialize IOC to port mapping. * Initialize IOC to port mapping.
*/ */
...@@ -259,7 +259,7 @@ bfa_ioc_ct_map_port(struct bfa_ioc_s *ioc) ...@@ -259,7 +259,7 @@ bfa_ioc_ct_map_port(struct bfa_ioc_s *ioc)
void __iomem *rb = ioc->pcidev.pci_bar_kva; void __iomem *rb = ioc->pcidev.pci_bar_kva;
u32 r32; u32 r32;
/** /*
* For catapult, base port id on personality register and IOC type * For catapult, base port id on personality register and IOC type
*/ */
r32 = readl(rb + FNC_PERS_REG); r32 = readl(rb + FNC_PERS_REG);
...@@ -270,7 +270,7 @@ bfa_ioc_ct_map_port(struct bfa_ioc_s *ioc) ...@@ -270,7 +270,7 @@ bfa_ioc_ct_map_port(struct bfa_ioc_s *ioc)
bfa_trc(ioc, ioc->port_id); bfa_trc(ioc, ioc->port_id);
} }
/** /*
* Set interrupt mode for a function: INTX or MSIX * Set interrupt mode for a function: INTX or MSIX
*/ */
static void static void
...@@ -285,7 +285,7 @@ bfa_ioc_ct_isr_mode_set(struct bfa_ioc_s *ioc, bfa_boolean_t msix) ...@@ -285,7 +285,7 @@ bfa_ioc_ct_isr_mode_set(struct bfa_ioc_s *ioc, bfa_boolean_t msix)
mode = (r32 >> FNC_PERS_FN_SHIFT(bfa_ioc_pcifn(ioc))) & mode = (r32 >> FNC_PERS_FN_SHIFT(bfa_ioc_pcifn(ioc))) &
__F0_INTX_STATUS; __F0_INTX_STATUS;
/** /*
* If already in desired mode, do not change anything * If already in desired mode, do not change anything
*/ */
if (!msix && mode) if (!msix && mode)
...@@ -303,7 +303,7 @@ bfa_ioc_ct_isr_mode_set(struct bfa_ioc_s *ioc, bfa_boolean_t msix) ...@@ -303,7 +303,7 @@ bfa_ioc_ct_isr_mode_set(struct bfa_ioc_s *ioc, bfa_boolean_t msix)
writel(r32, rb + FNC_PERS_REG); writel(r32, rb + FNC_PERS_REG);
} }
/** /*
* Cleanup hw semaphore and usecnt registers * Cleanup hw semaphore and usecnt registers
*/ */
static void static void
......
...@@ -46,7 +46,7 @@ bfa_port_stats_swap(struct bfa_port_s *port, union bfa_port_stats_u *stats) ...@@ -46,7 +46,7 @@ bfa_port_stats_swap(struct bfa_port_s *port, union bfa_port_stats_u *stats)
} }
} }
/** /*
* bfa_port_enable_isr() * bfa_port_enable_isr()
* *
* *
...@@ -63,7 +63,7 @@ bfa_port_enable_isr(struct bfa_port_s *port, bfa_status_t status) ...@@ -63,7 +63,7 @@ bfa_port_enable_isr(struct bfa_port_s *port, bfa_status_t status)
port->endis_cbfn(port->endis_cbarg, status); port->endis_cbfn(port->endis_cbarg, status);
} }
/** /*
* bfa_port_disable_isr() * bfa_port_disable_isr()
* *
* *
...@@ -80,7 +80,7 @@ bfa_port_disable_isr(struct bfa_port_s *port, bfa_status_t status) ...@@ -80,7 +80,7 @@ bfa_port_disable_isr(struct bfa_port_s *port, bfa_status_t status)
port->endis_cbfn(port->endis_cbarg, status); port->endis_cbfn(port->endis_cbarg, status);
} }
/** /*
* bfa_port_get_stats_isr() * bfa_port_get_stats_isr()
* *
* *
...@@ -112,7 +112,7 @@ bfa_port_get_stats_isr(struct bfa_port_s *port, bfa_status_t status) ...@@ -112,7 +112,7 @@ bfa_port_get_stats_isr(struct bfa_port_s *port, bfa_status_t status)
} }
} }
/** /*
* bfa_port_clear_stats_isr() * bfa_port_clear_stats_isr()
* *
* *
...@@ -129,7 +129,7 @@ bfa_port_clear_stats_isr(struct bfa_port_s *port, bfa_status_t status) ...@@ -129,7 +129,7 @@ bfa_port_clear_stats_isr(struct bfa_port_s *port, bfa_status_t status)
port->stats_status = status; port->stats_status = status;
port->stats_busy = BFA_FALSE; port->stats_busy = BFA_FALSE;
/** /*
* re-initialize time stamp for stats reset * re-initialize time stamp for stats reset
*/ */
bfa_os_gettimeofday(&tv); bfa_os_gettimeofday(&tv);
...@@ -141,7 +141,7 @@ bfa_port_clear_stats_isr(struct bfa_port_s *port, bfa_status_t status) ...@@ -141,7 +141,7 @@ bfa_port_clear_stats_isr(struct bfa_port_s *port, bfa_status_t status)
} }
} }
/** /*
* bfa_port_isr() * bfa_port_isr()
* *
* *
...@@ -189,7 +189,7 @@ bfa_port_isr(void *cbarg, struct bfi_mbmsg_s *m) ...@@ -189,7 +189,7 @@ bfa_port_isr(void *cbarg, struct bfi_mbmsg_s *m)
} }
} }
/** /*
* bfa_port_meminfo() * bfa_port_meminfo()
* *
* *
...@@ -203,7 +203,7 @@ bfa_port_meminfo(void) ...@@ -203,7 +203,7 @@ bfa_port_meminfo(void)
return BFA_ROUNDUP(sizeof(union bfa_port_stats_u), BFA_DMA_ALIGN_SZ); return BFA_ROUNDUP(sizeof(union bfa_port_stats_u), BFA_DMA_ALIGN_SZ);
} }
/** /*
* bfa_port_mem_claim() * bfa_port_mem_claim()
* *
* *
...@@ -220,7 +220,7 @@ bfa_port_mem_claim(struct bfa_port_s *port, u8 *dma_kva, u64 dma_pa) ...@@ -220,7 +220,7 @@ bfa_port_mem_claim(struct bfa_port_s *port, u8 *dma_kva, u64 dma_pa)
port->stats_dma.pa = dma_pa; port->stats_dma.pa = dma_pa;
} }
/** /*
* bfa_port_enable() * bfa_port_enable()
* *
* Send the Port enable request to the f/w * Send the Port enable request to the f/w
...@@ -264,7 +264,7 @@ bfa_port_enable(struct bfa_port_s *port, bfa_port_endis_cbfn_t cbfn, ...@@ -264,7 +264,7 @@ bfa_port_enable(struct bfa_port_s *port, bfa_port_endis_cbfn_t cbfn,
return BFA_STATUS_OK; return BFA_STATUS_OK;
} }
/** /*
* bfa_port_disable() * bfa_port_disable()
* *
* Send the Port disable request to the f/w * Send the Port disable request to the f/w
...@@ -308,7 +308,7 @@ bfa_port_disable(struct bfa_port_s *port, bfa_port_endis_cbfn_t cbfn, ...@@ -308,7 +308,7 @@ bfa_port_disable(struct bfa_port_s *port, bfa_port_endis_cbfn_t cbfn,
return BFA_STATUS_OK; return BFA_STATUS_OK;
} }
/** /*
* bfa_port_get_stats() * bfa_port_get_stats()
* *
* Send the request to the f/w to fetch Port statistics. * Send the request to the f/w to fetch Port statistics.
...@@ -348,7 +348,7 @@ bfa_port_get_stats(struct bfa_port_s *port, union bfa_port_stats_u *stats, ...@@ -348,7 +348,7 @@ bfa_port_get_stats(struct bfa_port_s *port, union bfa_port_stats_u *stats,
return BFA_STATUS_OK; return BFA_STATUS_OK;
} }
/** /*
* bfa_port_clear_stats() * bfa_port_clear_stats()
* *
* *
...@@ -385,7 +385,7 @@ bfa_port_clear_stats(struct bfa_port_s *port, bfa_port_stats_cbfn_t cbfn, ...@@ -385,7 +385,7 @@ bfa_port_clear_stats(struct bfa_port_s *port, bfa_port_stats_cbfn_t cbfn,
return BFA_STATUS_OK; return BFA_STATUS_OK;
} }
/** /*
* bfa_port_hbfail() * bfa_port_hbfail()
* *
* *
...@@ -415,7 +415,7 @@ bfa_port_hbfail(void *arg) ...@@ -415,7 +415,7 @@ bfa_port_hbfail(void *arg)
} }
} }
/** /*
* bfa_port_attach() * bfa_port_attach()
* *
* *
...@@ -449,7 +449,7 @@ bfa_port_attach(struct bfa_port_s *port, struct bfa_ioc_s *ioc, ...@@ -449,7 +449,7 @@ bfa_port_attach(struct bfa_port_s *port, struct bfa_ioc_s *ioc,
bfa_ioc_hbfail_init(&port->hbfail, bfa_port_hbfail, port); bfa_ioc_hbfail_init(&port->hbfail, bfa_port_hbfail, port);
bfa_ioc_hbfail_register(port->ioc, &port->hbfail); bfa_ioc_hbfail_register(port->ioc, &port->hbfail);
/** /*
* initialize time stamp for stats reset * initialize time stamp for stats reset
*/ */
bfa_os_gettimeofday(&tv); bfa_os_gettimeofday(&tv);
...@@ -458,7 +458,7 @@ bfa_port_attach(struct bfa_port_s *port, struct bfa_ioc_s *ioc, ...@@ -458,7 +458,7 @@ bfa_port_attach(struct bfa_port_s *port, struct bfa_ioc_s *ioc,
bfa_trc(port, 0); bfa_trc(port, 0);
} }
/** /*
* bfa_port_detach() * bfa_port_detach()
* *
* *
......
This diff is collapsed.
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
* General Public License for more details. * General Public License for more details.
*/ */
/** /*
* bfad.c Linux driver PCI interface module. * bfad.c Linux driver PCI interface module.
*/ */
#include <linux/module.h> #include <linux/module.h>
...@@ -151,7 +151,7 @@ bfad_sm_failed(struct bfad_s *bfad, enum bfad_sm_event event); ...@@ -151,7 +151,7 @@ bfad_sm_failed(struct bfad_s *bfad, enum bfad_sm_event event);
static void static void
bfad_sm_fcs_exit(struct bfad_s *bfad, enum bfad_sm_event event); bfad_sm_fcs_exit(struct bfad_s *bfad, enum bfad_sm_event event);
/** /*
* Beginning state for the driver instance, awaiting the pci_probe event * Beginning state for the driver instance, awaiting the pci_probe event
*/ */
static void static void
...@@ -181,7 +181,7 @@ bfad_sm_uninit(struct bfad_s *bfad, enum bfad_sm_event event) ...@@ -181,7 +181,7 @@ bfad_sm_uninit(struct bfad_s *bfad, enum bfad_sm_event event)
} }
} }
/** /*
* Driver Instance is created, awaiting event INIT to initialize the bfad * Driver Instance is created, awaiting event INIT to initialize the bfad
*/ */
static void static void
...@@ -364,7 +364,7 @@ bfad_sm_stopping(struct bfad_s *bfad, enum bfad_sm_event event) ...@@ -364,7 +364,7 @@ bfad_sm_stopping(struct bfad_s *bfad, enum bfad_sm_event event)
} }
} }
/** /*
* BFA callbacks * BFA callbacks
*/ */
void void
...@@ -376,7 +376,7 @@ bfad_hcb_comp(void *arg, bfa_status_t status) ...@@ -376,7 +376,7 @@ bfad_hcb_comp(void *arg, bfa_status_t status)
complete(&fcomp->comp); complete(&fcomp->comp);
} }
/** /*
* bfa_init callback * bfa_init callback
*/ */
void void
...@@ -401,7 +401,7 @@ bfa_cb_init(void *drv, bfa_status_t init_status) ...@@ -401,7 +401,7 @@ bfa_cb_init(void *drv, bfa_status_t init_status)
complete(&bfad->comp); complete(&bfad->comp);
} }
/** /*
* BFA_FCS callbacks * BFA_FCS callbacks
*/ */
struct bfad_port_s * struct bfad_port_s *
...@@ -457,7 +457,7 @@ bfa_fcb_lport_delete(struct bfad_s *bfad, enum bfa_lport_role roles, ...@@ -457,7 +457,7 @@ bfa_fcb_lport_delete(struct bfad_s *bfad, enum bfa_lport_role roles,
} }
} }
/** /*
* FCS RPORT alloc callback, after successful PLOGI by FCS * FCS RPORT alloc callback, after successful PLOGI by FCS
*/ */
bfa_status_t bfa_status_t
...@@ -478,7 +478,7 @@ bfa_fcb_rport_alloc(struct bfad_s *bfad, struct bfa_fcs_rport_s **rport, ...@@ -478,7 +478,7 @@ bfa_fcb_rport_alloc(struct bfad_s *bfad, struct bfa_fcs_rport_s **rport,
return rc; return rc;
} }
/** /*
* FCS PBC VPORT Create * FCS PBC VPORT Create
*/ */
void void
...@@ -663,7 +663,7 @@ bfad_hal_mem_alloc(struct bfad_s *bfad) ...@@ -663,7 +663,7 @@ bfad_hal_mem_alloc(struct bfad_s *bfad)
return rc; return rc;
} }
/** /*
* Create a vport under a vf. * Create a vport under a vf.
*/ */
bfa_status_t bfa_status_t
...@@ -1140,7 +1140,7 @@ bfad_worker(void *ptr) ...@@ -1140,7 +1140,7 @@ bfad_worker(void *ptr)
return 0; return 0;
} }
/** /*
* BFA driver interrupt functions * BFA driver interrupt functions
*/ */
irqreturn_t irqreturn_t
...@@ -1199,7 +1199,7 @@ bfad_msix(int irq, void *dev_id) ...@@ -1199,7 +1199,7 @@ bfad_msix(int irq, void *dev_id)
return IRQ_HANDLED; return IRQ_HANDLED;
} }
/** /*
* Initialize the MSIX entry table. * Initialize the MSIX entry table.
*/ */
static void static void
...@@ -1252,7 +1252,7 @@ bfad_install_msix_handler(struct bfad_s *bfad) ...@@ -1252,7 +1252,7 @@ bfad_install_msix_handler(struct bfad_s *bfad)
return 0; return 0;
} }
/** /*
* Setup MSIX based interrupt. * Setup MSIX based interrupt.
*/ */
int int
...@@ -1333,7 +1333,7 @@ bfad_remove_intr(struct bfad_s *bfad) ...@@ -1333,7 +1333,7 @@ bfad_remove_intr(struct bfad_s *bfad)
} }
} }
/** /*
* PCI probe entry. * PCI probe entry.
*/ */
int int
...@@ -1419,7 +1419,7 @@ bfad_pci_probe(struct pci_dev *pdev, const struct pci_device_id *pid) ...@@ -1419,7 +1419,7 @@ bfad_pci_probe(struct pci_dev *pdev, const struct pci_device_id *pid)
return error; return error;
} }
/** /*
* PCI remove entry. * PCI remove entry.
*/ */
void void
...@@ -1500,7 +1500,7 @@ static struct pci_driver bfad_pci_driver = { ...@@ -1500,7 +1500,7 @@ static struct pci_driver bfad_pci_driver = {
.remove = __devexit_p(bfad_pci_remove), .remove = __devexit_p(bfad_pci_remove),
}; };
/** /*
* Driver module init. * Driver module init.
*/ */
static int __init static int __init
...@@ -1540,7 +1540,7 @@ bfad_init(void) ...@@ -1540,7 +1540,7 @@ bfad_init(void)
return error; return error;
} }
/** /*
* Driver module exit. * Driver module exit.
*/ */
static void __exit static void __exit
......
...@@ -15,14 +15,14 @@ ...@@ -15,14 +15,14 @@
* General Public License for more details. * General Public License for more details.
*/ */
/** /*
* bfa_attr.c Linux driver configuration interface module. * bfa_attr.c Linux driver configuration interface module.
*/ */
#include "bfad_drv.h" #include "bfad_drv.h"
#include "bfad_im.h" #include "bfad_im.h"
/** /*
* FC transport template entry, get SCSI target port ID. * FC transport template entry, get SCSI target port ID.
*/ */
void void
...@@ -48,7 +48,7 @@ bfad_im_get_starget_port_id(struct scsi_target *starget) ...@@ -48,7 +48,7 @@ bfad_im_get_starget_port_id(struct scsi_target *starget)
spin_unlock_irqrestore(&bfad->bfad_lock, flags); spin_unlock_irqrestore(&bfad->bfad_lock, flags);
} }
/** /*
* FC transport template entry, get SCSI target nwwn. * FC transport template entry, get SCSI target nwwn.
*/ */
void void
...@@ -74,7 +74,7 @@ bfad_im_get_starget_node_name(struct scsi_target *starget) ...@@ -74,7 +74,7 @@ bfad_im_get_starget_node_name(struct scsi_target *starget)
spin_unlock_irqrestore(&bfad->bfad_lock, flags); spin_unlock_irqrestore(&bfad->bfad_lock, flags);
} }
/** /*
* FC transport template entry, get SCSI target pwwn. * FC transport template entry, get SCSI target pwwn.
*/ */
void void
...@@ -100,7 +100,7 @@ bfad_im_get_starget_port_name(struct scsi_target *starget) ...@@ -100,7 +100,7 @@ bfad_im_get_starget_port_name(struct scsi_target *starget)
spin_unlock_irqrestore(&bfad->bfad_lock, flags); spin_unlock_irqrestore(&bfad->bfad_lock, flags);
} }
/** /*
* FC transport template entry, get SCSI host port ID. * FC transport template entry, get SCSI host port ID.
*/ */
void void
...@@ -114,7 +114,7 @@ bfad_im_get_host_port_id(struct Scsi_Host *shost) ...@@ -114,7 +114,7 @@ bfad_im_get_host_port_id(struct Scsi_Host *shost)
bfa_os_hton3b(bfa_fcs_lport_get_fcid(port->fcs_port)); bfa_os_hton3b(bfa_fcs_lport_get_fcid(port->fcs_port));
} }
/** /*
* FC transport template entry, get SCSI host port type. * FC transport template entry, get SCSI host port type.
*/ */
static void static void
...@@ -146,7 +146,7 @@ bfad_im_get_host_port_type(struct Scsi_Host *shost) ...@@ -146,7 +146,7 @@ bfad_im_get_host_port_type(struct Scsi_Host *shost)
} }
} }
/** /*
* FC transport template entry, get SCSI host port state. * FC transport template entry, get SCSI host port state.
*/ */
static void static void
...@@ -183,7 +183,7 @@ bfad_im_get_host_port_state(struct Scsi_Host *shost) ...@@ -183,7 +183,7 @@ bfad_im_get_host_port_state(struct Scsi_Host *shost)
} }
} }
/** /*
* FC transport template entry, get SCSI host active fc4s. * FC transport template entry, get SCSI host active fc4s.
*/ */
static void static void
...@@ -202,7 +202,7 @@ bfad_im_get_host_active_fc4s(struct Scsi_Host *shost) ...@@ -202,7 +202,7 @@ bfad_im_get_host_active_fc4s(struct Scsi_Host *shost)
fc_host_active_fc4s(shost)[7] = 1; fc_host_active_fc4s(shost)[7] = 1;
} }
/** /*
* FC transport template entry, get SCSI host link speed. * FC transport template entry, get SCSI host link speed.
*/ */
static void static void
...@@ -236,7 +236,7 @@ bfad_im_get_host_speed(struct Scsi_Host *shost) ...@@ -236,7 +236,7 @@ bfad_im_get_host_speed(struct Scsi_Host *shost)
} }
} }
/** /*
* FC transport template entry, get SCSI host port type. * FC transport template entry, get SCSI host port type.
*/ */
static void static void
...@@ -253,7 +253,7 @@ bfad_im_get_host_fabric_name(struct Scsi_Host *shost) ...@@ -253,7 +253,7 @@ bfad_im_get_host_fabric_name(struct Scsi_Host *shost)
} }
/** /*
* FC transport template entry, get BFAD statistics. * FC transport template entry, get BFAD statistics.
*/ */
static struct fc_host_statistics * static struct fc_host_statistics *
...@@ -304,7 +304,7 @@ bfad_im_get_stats(struct Scsi_Host *shost) ...@@ -304,7 +304,7 @@ bfad_im_get_stats(struct Scsi_Host *shost)
return hstats; return hstats;
} }
/** /*
* FC transport template entry, reset BFAD statistics. * FC transport template entry, reset BFAD statistics.
*/ */
static void static void
...@@ -331,7 +331,7 @@ bfad_im_reset_stats(struct Scsi_Host *shost) ...@@ -331,7 +331,7 @@ bfad_im_reset_stats(struct Scsi_Host *shost)
return; return;
} }
/** /*
* FC transport template entry, get rport loss timeout. * FC transport template entry, get rport loss timeout.
*/ */
static void static void
...@@ -347,7 +347,7 @@ bfad_im_get_rport_loss_tmo(struct fc_rport *rport) ...@@ -347,7 +347,7 @@ bfad_im_get_rport_loss_tmo(struct fc_rport *rport)
spin_unlock_irqrestore(&bfad->bfad_lock, flags); spin_unlock_irqrestore(&bfad->bfad_lock, flags);
} }
/** /*
* FC transport template entry, set rport loss timeout. * FC transport template entry, set rport loss timeout.
*/ */
static void static void
...@@ -633,7 +633,7 @@ struct fc_function_template bfad_im_vport_fc_function_template = { ...@@ -633,7 +633,7 @@ struct fc_function_template bfad_im_vport_fc_function_template = {
.set_rport_dev_loss_tmo = bfad_im_set_rport_loss_tmo, .set_rport_dev_loss_tmo = bfad_im_set_rport_loss_tmo,
}; };
/** /*
* Scsi_Host_attrs SCSI host attributes * Scsi_Host_attrs SCSI host attributes
*/ */
static ssize_t static ssize_t
......
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
* General Public License for more details. * General Public License for more details.
*/ */
/** /*
* bfad_im.c Linux driver IM module. * bfad_im.c Linux driver IM module.
*/ */
...@@ -164,10 +164,10 @@ bfa_cb_tskim_done(void *bfad, struct bfad_tskim_s *dtsk, ...@@ -164,10 +164,10 @@ bfa_cb_tskim_done(void *bfad, struct bfad_tskim_s *dtsk,
wake_up(wq); wake_up(wq);
} }
/** /*
* Scsi_Host_template SCSI host template * Scsi_Host_template SCSI host template
*/ */
/** /*
* Scsi_Host template entry, returns BFAD PCI info. * Scsi_Host template entry, returns BFAD PCI info.
*/ */
static const char * static const char *
...@@ -196,7 +196,7 @@ bfad_im_info(struct Scsi_Host *shost) ...@@ -196,7 +196,7 @@ bfad_im_info(struct Scsi_Host *shost)
return bfa_buf; return bfa_buf;
} }
/** /*
* Scsi_Host template entry, aborts the specified SCSI command. * Scsi_Host template entry, aborts the specified SCSI command.
* *
* Returns: SUCCESS or FAILED. * Returns: SUCCESS or FAILED.
...@@ -280,7 +280,7 @@ bfad_im_target_reset_send(struct bfad_s *bfad, struct scsi_cmnd *cmnd, ...@@ -280,7 +280,7 @@ bfad_im_target_reset_send(struct bfad_s *bfad, struct scsi_cmnd *cmnd,
return rc; return rc;
} }
/** /*
* Scsi_Host template entry, resets a LUN and abort its all commands. * Scsi_Host template entry, resets a LUN and abort its all commands.
* *
* Returns: SUCCESS or FAILED. * Returns: SUCCESS or FAILED.
...@@ -319,7 +319,7 @@ bfad_im_reset_lun_handler(struct scsi_cmnd *cmnd) ...@@ -319,7 +319,7 @@ bfad_im_reset_lun_handler(struct scsi_cmnd *cmnd)
goto out; goto out;
} }
/** /*
* Set host_scribble to NULL to avoid aborting a task command * Set host_scribble to NULL to avoid aborting a task command
* if happens. * if happens.
*/ */
...@@ -346,7 +346,7 @@ bfad_im_reset_lun_handler(struct scsi_cmnd *cmnd) ...@@ -346,7 +346,7 @@ bfad_im_reset_lun_handler(struct scsi_cmnd *cmnd)
return rc; return rc;
} }
/** /*
* Scsi_Host template entry, resets the bus and abort all commands. * Scsi_Host template entry, resets the bus and abort all commands.
*/ */
static int static int
...@@ -396,7 +396,7 @@ bfad_im_reset_bus_handler(struct scsi_cmnd *cmnd) ...@@ -396,7 +396,7 @@ bfad_im_reset_bus_handler(struct scsi_cmnd *cmnd)
return SUCCESS; return SUCCESS;
} }
/** /*
* Scsi_Host template entry slave_destroy. * Scsi_Host template entry slave_destroy.
*/ */
static void static void
...@@ -406,11 +406,11 @@ bfad_im_slave_destroy(struct scsi_device *sdev) ...@@ -406,11 +406,11 @@ bfad_im_slave_destroy(struct scsi_device *sdev)
return; return;
} }
/** /*
* BFA FCS itnim callbacks * BFA FCS itnim callbacks
*/ */
/** /*
* BFA FCS itnim alloc callback, after successful PRLI * BFA FCS itnim alloc callback, after successful PRLI
* Context: Interrupt * Context: Interrupt
*/ */
...@@ -433,7 +433,7 @@ bfa_fcb_itnim_alloc(struct bfad_s *bfad, struct bfa_fcs_itnim_s **itnim, ...@@ -433,7 +433,7 @@ bfa_fcb_itnim_alloc(struct bfad_s *bfad, struct bfa_fcs_itnim_s **itnim,
bfad->bfad_flags |= BFAD_RPORT_ONLINE; bfad->bfad_flags |= BFAD_RPORT_ONLINE;
} }
/** /*
* BFA FCS itnim free callback. * BFA FCS itnim free callback.
* Context: Interrupt. bfad_lock is held * Context: Interrupt. bfad_lock is held
*/ */
...@@ -471,7 +471,7 @@ bfa_fcb_itnim_free(struct bfad_s *bfad, struct bfad_itnim_s *itnim_drv) ...@@ -471,7 +471,7 @@ bfa_fcb_itnim_free(struct bfad_s *bfad, struct bfad_itnim_s *itnim_drv)
queue_work(im->drv_workq, &itnim_drv->itnim_work); queue_work(im->drv_workq, &itnim_drv->itnim_work);
} }
/** /*
* BFA FCS itnim online callback. * BFA FCS itnim online callback.
* Context: Interrupt. bfad_lock is held * Context: Interrupt. bfad_lock is held
*/ */
...@@ -492,7 +492,7 @@ bfa_fcb_itnim_online(struct bfad_itnim_s *itnim_drv) ...@@ -492,7 +492,7 @@ bfa_fcb_itnim_online(struct bfad_itnim_s *itnim_drv)
queue_work(im->drv_workq, &itnim_drv->itnim_work); queue_work(im->drv_workq, &itnim_drv->itnim_work);
} }
/** /*
* BFA FCS itnim offline callback. * BFA FCS itnim offline callback.
* Context: Interrupt. bfad_lock is held * Context: Interrupt. bfad_lock is held
*/ */
...@@ -519,7 +519,7 @@ bfa_fcb_itnim_offline(struct bfad_itnim_s *itnim_drv) ...@@ -519,7 +519,7 @@ bfa_fcb_itnim_offline(struct bfad_itnim_s *itnim_drv)
queue_work(im->drv_workq, &itnim_drv->itnim_work); queue_work(im->drv_workq, &itnim_drv->itnim_work);
} }
/** /*
* Allocate a Scsi_Host for a port. * Allocate a Scsi_Host for a port.
*/ */
int int
...@@ -751,7 +751,7 @@ bfad_os_thread_workq(struct bfad_s *bfad) ...@@ -751,7 +751,7 @@ bfad_os_thread_workq(struct bfad_s *bfad)
return BFA_STATUS_OK; return BFA_STATUS_OK;
} }
/** /*
* Scsi_Host template entry. * Scsi_Host template entry.
* *
* Description: * Description:
...@@ -896,7 +896,7 @@ bfad_os_get_itnim(struct bfad_im_port_s *im_port, int id) ...@@ -896,7 +896,7 @@ bfad_os_get_itnim(struct bfad_im_port_s *im_port, int id)
return NULL; return NULL;
} }
/** /*
* Scsi_Host template entry slave_alloc * Scsi_Host template entry slave_alloc
*/ */
static int static int
...@@ -973,7 +973,7 @@ bfad_os_fc_host_init(struct bfad_im_port_s *im_port) ...@@ -973,7 +973,7 @@ bfad_os_fc_host_init(struct bfad_im_port_s *im_port)
sprintf(fc_host_symbolic_name(host), "%s", symname); sprintf(fc_host_symbolic_name(host), "%s", symname);
fc_host_supported_speeds(host) = bfad_im_supported_speeds(&bfad->bfa); fc_host_supported_speeds(host) = bfad_im_supported_speeds(&bfad->bfa);
fc_host_maxframe_size(host) = fcport->cfg.maxfrsize; fc_host_maxframe_size(host) = fcport->cfg.maxfrsize;
} }
static void static void
...@@ -1016,7 +1016,7 @@ bfad_im_fc_rport_add(struct bfad_im_port_s *im_port, struct bfad_itnim_s *itnim) ...@@ -1016,7 +1016,7 @@ bfad_im_fc_rport_add(struct bfad_im_port_s *im_port, struct bfad_itnim_s *itnim)
return; return;
} }
/** /*
* Work queue handler using FC transport service * Work queue handler using FC transport service
* Context: kernel * Context: kernel
*/ */
...@@ -1116,7 +1116,7 @@ bfad_im_itnim_work_handler(struct work_struct *work) ...@@ -1116,7 +1116,7 @@ bfad_im_itnim_work_handler(struct work_struct *work)
spin_unlock_irqrestore(&bfad->bfad_lock, flags); spin_unlock_irqrestore(&bfad->bfad_lock, flags);
} }
/** /*
* Scsi_Host template entry, queue a SCSI command to the BFAD. * Scsi_Host template entry, queue a SCSI command to the BFAD.
*/ */
static int static int
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment