diff options
author | Jing Huang <huangj@brocade.com> | 2010-10-18 20:17:23 -0400 |
---|---|---|
committer | James Bottomley <James.Bottomley@suse.de> | 2010-10-25 17:28:09 -0400 |
commit | 5fbe25c7a664601666895e8f95eaa59bd9741392 (patch) | |
tree | f2d452938ba5ba924d0e8cc4f173f963df13018e /drivers/scsi/bfa/bfa_ioc_ct.c | |
parent | acdc79a60cb3cbbc9f07bb5032d890e9cf94f0ff (diff) |
[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: Jing Huang <huangj@brocade.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
Diffstat (limited to 'drivers/scsi/bfa/bfa_ioc_ct.c')
-rw-r--r-- | drivers/scsi/bfa/bfa_ioc_ct.c | 42 |
1 files changed, 21 insertions, 21 deletions
diff --git a/drivers/scsi/bfa/bfa_ioc_ct.c b/drivers/scsi/bfa/bfa_ioc_ct.c index c852d985e198..115730c0aa77 100644 --- a/drivers/scsi/bfa/bfa_ioc_ct.c +++ b/drivers/scsi/bfa/bfa_ioc_ct.c | |||
@@ -34,7 +34,7 @@ static void bfa_ioc_ct_ownership_reset(struct bfa_ioc_s *ioc); | |||
34 | 34 | ||
35 | struct bfa_ioc_hwif_s hwif_ct; | 35 | struct bfa_ioc_hwif_s hwif_ct; |
36 | 36 | ||
37 | /** | 37 | /* |
38 | * Called from bfa_ioc_attach() to map asic specific calls. | 38 | * Called from bfa_ioc_attach() to map asic specific calls. |
39 | */ | 39 | */ |
40 | void | 40 | void |
@@ -52,7 +52,7 @@ bfa_ioc_set_ct_hwif(struct bfa_ioc_s *ioc) | |||
52 | ioc->ioc_hwif = &hwif_ct; | 52 | ioc->ioc_hwif = &hwif_ct; |
53 | } | 53 | } |
54 | 54 | ||
55 | /** | 55 | /* |
56 | * Return true if firmware of current driver matches the running firmware. | 56 | * Return true if firmware of current driver matches the running firmware. |
57 | */ | 57 | */ |
58 | static bfa_boolean_t | 58 | static bfa_boolean_t |
@@ -62,13 +62,13 @@ bfa_ioc_ct_firmware_lock(struct bfa_ioc_s *ioc) | |||
62 | u32 usecnt; | 62 | u32 usecnt; |
63 | struct bfi_ioc_image_hdr_s fwhdr; | 63 | struct bfi_ioc_image_hdr_s fwhdr; |
64 | 64 | ||
65 | /** | 65 | /* |
66 | * Firmware match check is relevant only for CNA. | 66 | * Firmware match check is relevant only for CNA. |
67 | */ | 67 | */ |
68 | if (!ioc->cna) | 68 | if (!ioc->cna) |
69 | return BFA_TRUE; | 69 | return BFA_TRUE; |
70 | 70 | ||
71 | /** | 71 | /* |
72 | * If bios boot (flash based) -- do not increment usage count | 72 | * If bios boot (flash based) -- do not increment usage count |
73 | */ | 73 | */ |
74 | if (bfa_cb_image_get_size(BFA_IOC_FWIMG_TYPE(ioc)) < | 74 | 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 | bfa_ioc_sem_get(ioc->ioc_regs.ioc_usage_sem_reg); | 78 | bfa_ioc_sem_get(ioc->ioc_regs.ioc_usage_sem_reg); |
79 | usecnt = readl(ioc->ioc_regs.ioc_usage_reg); | 79 | usecnt = readl(ioc->ioc_regs.ioc_usage_reg); |
80 | 80 | ||
81 | /** | 81 | /* |
82 | * If usage count is 0, always return TRUE. | 82 | * If usage count is 0, always return TRUE. |
83 | */ | 83 | */ |
84 | if (usecnt == 0) { | 84 | if (usecnt == 0) { |
@@ -91,12 +91,12 @@ bfa_ioc_ct_firmware_lock(struct bfa_ioc_s *ioc) | |||
91 | ioc_fwstate = readl(ioc->ioc_regs.ioc_fwstate); | 91 | ioc_fwstate = readl(ioc->ioc_regs.ioc_fwstate); |
92 | bfa_trc(ioc, ioc_fwstate); | 92 | bfa_trc(ioc, ioc_fwstate); |
93 | 93 | ||
94 | /** | 94 | /* |
95 | * Use count cannot be non-zero and chip in uninitialized state. | 95 | * Use count cannot be non-zero and chip in uninitialized state. |
96 | */ | 96 | */ |
97 | bfa_assert(ioc_fwstate != BFI_IOC_UNINIT); | 97 | bfa_assert(ioc_fwstate != BFI_IOC_UNINIT); |
98 | 98 | ||
99 | /** | 99 | /* |
100 | * Check if another driver with a different firmware is active | 100 | * Check if another driver with a different firmware is active |
101 | */ | 101 | */ |
102 | bfa_ioc_fwver_get(ioc, &fwhdr); | 102 | bfa_ioc_fwver_get(ioc, &fwhdr); |
@@ -106,7 +106,7 @@ bfa_ioc_ct_firmware_lock(struct bfa_ioc_s *ioc) | |||
106 | return BFA_FALSE; | 106 | return BFA_FALSE; |
107 | } | 107 | } |
108 | 108 | ||
109 | /** | 109 | /* |
110 | * Same firmware version. Increment the reference count. | 110 | * Same firmware version. Increment the reference count. |
111 | */ | 111 | */ |
112 | usecnt++; | 112 | usecnt++; |
@@ -121,20 +121,20 @@ bfa_ioc_ct_firmware_unlock(struct bfa_ioc_s *ioc) | |||
121 | { | 121 | { |
122 | u32 usecnt; | 122 | u32 usecnt; |
123 | 123 | ||
124 | /** | 124 | /* |
125 | * Firmware lock is relevant only for CNA. | 125 | * Firmware lock is relevant only for CNA. |
126 | */ | 126 | */ |
127 | if (!ioc->cna) | 127 | if (!ioc->cna) |
128 | return; | 128 | return; |
129 | 129 | ||
130 | /** | 130 | /* |
131 | * If bios boot (flash based) -- do not decrement usage count | 131 | * If bios boot (flash based) -- do not decrement usage count |
132 | */ | 132 | */ |
133 | if (bfa_cb_image_get_size(BFA_IOC_FWIMG_TYPE(ioc)) < | 133 | if (bfa_cb_image_get_size(BFA_IOC_FWIMG_TYPE(ioc)) < |
134 | BFA_IOC_FWIMG_MINSZ) | 134 | BFA_IOC_FWIMG_MINSZ) |
135 | return; | 135 | return; |
136 | 136 | ||
137 | /** | 137 | /* |
138 | * decrement usage count | 138 | * decrement usage count |
139 | */ | 139 | */ |
140 | bfa_ioc_sem_get(ioc->ioc_regs.ioc_usage_sem_reg); | 140 | 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 | bfa_ioc_sem_release(ioc->ioc_regs.ioc_usage_sem_reg); | 148 | bfa_ioc_sem_release(ioc->ioc_regs.ioc_usage_sem_reg); |
149 | } | 149 | } |
150 | 150 | ||
151 | /** | 151 | /* |
152 | * Notify other functions on HB failure. | 152 | * Notify other functions on HB failure. |
153 | */ | 153 | */ |
154 | static void | 154 | static void |
@@ -164,7 +164,7 @@ bfa_ioc_ct_notify_hbfail(struct bfa_ioc_s *ioc) | |||
164 | } | 164 | } |
165 | } | 165 | } |
166 | 166 | ||
167 | /** | 167 | /* |
168 | * Host to LPU mailbox message addresses | 168 | * Host to LPU mailbox message addresses |
169 | */ | 169 | */ |
170 | static struct { u32 hfn_mbox, lpu_mbox, hfn_pgn; } iocreg_fnreg[] = { | 170 | 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 | { HOSTFN3_LPU_MBOX0_8, LPU_HOSTFN3_MBOX0_8, HOST_PAGE_NUM_FN3 } | 174 | { HOSTFN3_LPU_MBOX0_8, LPU_HOSTFN3_MBOX0_8, HOST_PAGE_NUM_FN3 } |
175 | }; | 175 | }; |
176 | 176 | ||
177 | /** | 177 | /* |
178 | * Host <-> LPU mailbox command/status registers - port 0 | 178 | * Host <-> LPU mailbox command/status registers - port 0 |
179 | */ | 179 | */ |
180 | static struct { u32 hfn, lpu; } iocreg_mbcmd_p0[] = { | 180 | static struct { u32 hfn, lpu; } iocreg_mbcmd_p0[] = { |
@@ -184,7 +184,7 @@ static struct { u32 hfn, lpu; } iocreg_mbcmd_p0[] = { | |||
184 | { HOSTFN3_LPU0_MBOX0_CMD_STAT, LPU0_HOSTFN3_MBOX0_CMD_STAT } | 184 | { HOSTFN3_LPU0_MBOX0_CMD_STAT, LPU0_HOSTFN3_MBOX0_CMD_STAT } |
185 | }; | 185 | }; |
186 | 186 | ||
187 | /** | 187 | /* |
188 | * Host <-> LPU mailbox command/status registers - port 1 | 188 | * Host <-> LPU mailbox command/status registers - port 1 |
189 | */ | 189 | */ |
190 | static struct { u32 hfn, lpu; } iocreg_mbcmd_p1[] = { | 190 | static struct { u32 hfn, lpu; } iocreg_mbcmd_p1[] = { |
@@ -236,7 +236,7 @@ bfa_ioc_ct_reg_init(struct bfa_ioc_s *ioc) | |||
236 | ioc->ioc_regs.ioc_init_sem_reg = (rb + HOST_SEM2_REG); | 236 | ioc->ioc_regs.ioc_init_sem_reg = (rb + HOST_SEM2_REG); |
237 | ioc->ioc_regs.ioc_usage_reg = (rb + BFA_FW_USE_COUNT); | 237 | ioc->ioc_regs.ioc_usage_reg = (rb + BFA_FW_USE_COUNT); |
238 | 238 | ||
239 | /** | 239 | /* |
240 | * sram memory access | 240 | * sram memory access |
241 | */ | 241 | */ |
242 | ioc->ioc_regs.smem_page_start = (rb + PSS_SMEM_PAGE_START); | 242 | 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 | ioc->ioc_regs.err_set = (rb + ERR_SET_REG); | 248 | ioc->ioc_regs.err_set = (rb + ERR_SET_REG); |
249 | } | 249 | } |
250 | 250 | ||
251 | /** | 251 | /* |
252 | * Initialize IOC to port mapping. | 252 | * Initialize IOC to port mapping. |
253 | */ | 253 | */ |
254 | 254 | ||
@@ -259,7 +259,7 @@ bfa_ioc_ct_map_port(struct bfa_ioc_s *ioc) | |||
259 | void __iomem *rb = ioc->pcidev.pci_bar_kva; | 259 | void __iomem *rb = ioc->pcidev.pci_bar_kva; |
260 | u32 r32; | 260 | u32 r32; |
261 | 261 | ||
262 | /** | 262 | /* |
263 | * For catapult, base port id on personality register and IOC type | 263 | * For catapult, base port id on personality register and IOC type |
264 | */ | 264 | */ |
265 | r32 = readl(rb + FNC_PERS_REG); | 265 | r32 = readl(rb + FNC_PERS_REG); |
@@ -270,7 +270,7 @@ bfa_ioc_ct_map_port(struct bfa_ioc_s *ioc) | |||
270 | bfa_trc(ioc, ioc->port_id); | 270 | bfa_trc(ioc, ioc->port_id); |
271 | } | 271 | } |
272 | 272 | ||
273 | /** | 273 | /* |
274 | * Set interrupt mode for a function: INTX or MSIX | 274 | * Set interrupt mode for a function: INTX or MSIX |
275 | */ | 275 | */ |
276 | static void | 276 | static void |
@@ -285,7 +285,7 @@ bfa_ioc_ct_isr_mode_set(struct bfa_ioc_s *ioc, bfa_boolean_t msix) | |||
285 | mode = (r32 >> FNC_PERS_FN_SHIFT(bfa_ioc_pcifn(ioc))) & | 285 | mode = (r32 >> FNC_PERS_FN_SHIFT(bfa_ioc_pcifn(ioc))) & |
286 | __F0_INTX_STATUS; | 286 | __F0_INTX_STATUS; |
287 | 287 | ||
288 | /** | 288 | /* |
289 | * If already in desired mode, do not change anything | 289 | * If already in desired mode, do not change anything |
290 | */ | 290 | */ |
291 | if (!msix && mode) | 291 | if (!msix && mode) |
@@ -303,7 +303,7 @@ bfa_ioc_ct_isr_mode_set(struct bfa_ioc_s *ioc, bfa_boolean_t msix) | |||
303 | writel(r32, rb + FNC_PERS_REG); | 303 | writel(r32, rb + FNC_PERS_REG); |
304 | } | 304 | } |
305 | 305 | ||
306 | /** | 306 | /* |
307 | * Cleanup hw semaphore and usecnt registers | 307 | * Cleanup hw semaphore and usecnt registers |
308 | */ | 308 | */ |
309 | static void | 309 | static void |