diff options
author | Maggie Zhang <xmzhang@brocade.com> | 2010-12-09 22:08:43 -0500 |
---|---|---|
committer | James Bottomley <James.Bottomley@suse.de> | 2010-12-21 13:32:43 -0500 |
commit | f7f73812e95077c19a2801bbf4f483fcdab5232f (patch) | |
tree | 1683aef984bf23a83dc5764503a0972f64ddf5a5 /drivers/scsi/bfa/bfa_ioc.h | |
parent | df0f1933eb5454a5c481311837076056557467ad (diff) |
[SCSI] bfa: clean up one line functions
Cleaned up one line functions.
Signed-off-by: Maggie Zhang <xmzhang@brocade.com>
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.h')
-rw-r--r-- | drivers/scsi/bfa/bfa_ioc.h | 19 |
1 files changed, 5 insertions, 14 deletions
diff --git a/drivers/scsi/bfa/bfa_ioc.h b/drivers/scsi/bfa/bfa_ioc.h index ff012f7f0757..3c5bdd1c0c7f 100644 --- a/drivers/scsi/bfa/bfa_ioc.h +++ b/drivers/scsi/bfa/bfa_ioc.h | |||
@@ -22,6 +22,11 @@ | |||
22 | #include "bfa_cs.h" | 22 | #include "bfa_cs.h" |
23 | #include "bfi.h" | 23 | #include "bfi.h" |
24 | 24 | ||
25 | #define BFA_DBG_FWTRC_ENTS (BFI_IOC_TRC_ENTS) | ||
26 | #define BFA_DBG_FWTRC_LEN \ | ||
27 | (BFA_DBG_FWTRC_ENTS * sizeof(struct bfa_trc_s) + \ | ||
28 | (sizeof(struct bfa_trc_mod_s) - \ | ||
29 | BFA_TRC_MAX * sizeof(struct bfa_trc_s))) | ||
25 | /* | 30 | /* |
26 | * BFA timer declarations | 31 | * BFA timer declarations |
27 | */ | 32 | */ |
@@ -47,7 +52,6 @@ struct bfa_timer_mod_s { | |||
47 | #define BFA_TIMER_FREQ 200 /* specified in millisecs */ | 52 | #define BFA_TIMER_FREQ 200 /* specified in millisecs */ |
48 | 53 | ||
49 | void bfa_timer_beat(struct bfa_timer_mod_s *mod); | 54 | void bfa_timer_beat(struct bfa_timer_mod_s *mod); |
50 | void bfa_timer_init(struct bfa_timer_mod_s *mod); | ||
51 | void bfa_timer_begin(struct bfa_timer_mod_s *mod, struct bfa_timer_s *timer, | 55 | void bfa_timer_begin(struct bfa_timer_mod_s *mod, struct bfa_timer_s *timer, |
52 | bfa_timer_cbfn_t timercb, void *arg, | 56 | bfa_timer_cbfn_t timercb, void *arg, |
53 | unsigned int timeout); | 57 | unsigned int timeout); |
@@ -325,7 +329,6 @@ void bfa_ioc_auto_recover(bfa_boolean_t auto_recover); | |||
325 | void bfa_ioc_detach(struct bfa_ioc_s *ioc); | 329 | void bfa_ioc_detach(struct bfa_ioc_s *ioc); |
326 | void bfa_ioc_pci_init(struct bfa_ioc_s *ioc, struct bfa_pcidev_s *pcidev, | 330 | void bfa_ioc_pci_init(struct bfa_ioc_s *ioc, struct bfa_pcidev_s *pcidev, |
327 | enum bfi_mclass mc); | 331 | enum bfi_mclass mc); |
328 | u32 bfa_ioc_meminfo(void); | ||
329 | void bfa_ioc_mem_claim(struct bfa_ioc_s *ioc, u8 *dm_kva, u64 dm_pa); | 332 | void bfa_ioc_mem_claim(struct bfa_ioc_s *ioc, u8 *dm_kva, u64 dm_pa); |
330 | void bfa_ioc_enable(struct bfa_ioc_s *ioc); | 333 | void bfa_ioc_enable(struct bfa_ioc_s *ioc); |
331 | void bfa_ioc_disable(struct bfa_ioc_s *ioc); | 334 | void bfa_ioc_disable(struct bfa_ioc_s *ioc); |
@@ -353,7 +356,6 @@ enum bfa_ioc_state bfa_ioc_get_state(struct bfa_ioc_s *ioc); | |||
353 | void bfa_ioc_get_attr(struct bfa_ioc_s *ioc, struct bfa_ioc_attr_s *ioc_attr); | 356 | void bfa_ioc_get_attr(struct bfa_ioc_s *ioc, struct bfa_ioc_attr_s *ioc_attr); |
354 | void bfa_ioc_get_adapter_attr(struct bfa_ioc_s *ioc, | 357 | void bfa_ioc_get_adapter_attr(struct bfa_ioc_s *ioc, |
355 | struct bfa_adapter_attr_s *ad_attr); | 358 | struct bfa_adapter_attr_s *ad_attr); |
356 | int bfa_ioc_debug_trcsz(bfa_boolean_t auto_recover); | ||
357 | void bfa_ioc_debug_memclaim(struct bfa_ioc_s *ioc, void *dbg_fwsave); | 359 | void bfa_ioc_debug_memclaim(struct bfa_ioc_s *ioc, void *dbg_fwsave); |
358 | bfa_status_t bfa_ioc_debug_fwsave(struct bfa_ioc_s *ioc, void *trcdata, | 360 | bfa_status_t bfa_ioc_debug_fwsave(struct bfa_ioc_s *ioc, void *trcdata, |
359 | int *trclen); | 361 | int *trclen); |
@@ -361,15 +363,9 @@ bfa_status_t bfa_ioc_debug_fwtrc(struct bfa_ioc_s *ioc, void *trcdata, | |||
361 | int *trclen); | 363 | int *trclen); |
362 | bfa_status_t bfa_ioc_debug_fwcore(struct bfa_ioc_s *ioc, void *buf, | 364 | bfa_status_t bfa_ioc_debug_fwcore(struct bfa_ioc_s *ioc, void *buf, |
363 | u32 *offset, int *buflen); | 365 | u32 *offset, int *buflen); |
364 | u32 bfa_ioc_smem_pgnum(struct bfa_ioc_s *ioc, u32 fmaddr); | ||
365 | u32 bfa_ioc_smem_pgoff(struct bfa_ioc_s *ioc, u32 fmaddr); | ||
366 | void bfa_ioc_set_fcmode(struct bfa_ioc_s *ioc); | 366 | void bfa_ioc_set_fcmode(struct bfa_ioc_s *ioc); |
367 | bfa_boolean_t bfa_ioc_get_fcmode(struct bfa_ioc_s *ioc); | 367 | bfa_boolean_t bfa_ioc_get_fcmode(struct bfa_ioc_s *ioc); |
368 | void bfa_ioc_hbfail_register(struct bfa_ioc_s *ioc, | ||
369 | struct bfa_ioc_hbfail_notify_s *notify); | ||
370 | bfa_boolean_t bfa_ioc_sem_get(void __iomem *sem_reg); | 368 | bfa_boolean_t bfa_ioc_sem_get(void __iomem *sem_reg); |
371 | void bfa_ioc_sem_release(void __iomem *sem_reg); | ||
372 | void bfa_ioc_hw_sem_release(struct bfa_ioc_s *ioc); | ||
373 | void bfa_ioc_fwver_get(struct bfa_ioc_s *ioc, | 369 | void bfa_ioc_fwver_get(struct bfa_ioc_s *ioc, |
374 | struct bfi_ioc_image_hdr_s *fwhdr); | 370 | struct bfi_ioc_image_hdr_s *fwhdr); |
375 | bfa_boolean_t bfa_ioc_fwver_cmp(struct bfa_ioc_s *ioc, | 371 | bfa_boolean_t bfa_ioc_fwver_cmp(struct bfa_ioc_s *ioc, |
@@ -380,13 +376,8 @@ bfa_status_t bfa_ioc_fw_stats_clear(struct bfa_ioc_s *ioc); | |||
380 | /* | 376 | /* |
381 | * bfa mfg wwn API functions | 377 | * bfa mfg wwn API functions |
382 | */ | 378 | */ |
383 | wwn_t bfa_ioc_get_pwwn(struct bfa_ioc_s *ioc); | ||
384 | wwn_t bfa_ioc_get_nwwn(struct bfa_ioc_s *ioc); | ||
385 | mac_t bfa_ioc_get_mac(struct bfa_ioc_s *ioc); | 379 | mac_t bfa_ioc_get_mac(struct bfa_ioc_s *ioc); |
386 | wwn_t bfa_ioc_get_mfg_pwwn(struct bfa_ioc_s *ioc); | ||
387 | wwn_t bfa_ioc_get_mfg_nwwn(struct bfa_ioc_s *ioc); | ||
388 | mac_t bfa_ioc_get_mfg_mac(struct bfa_ioc_s *ioc); | 380 | mac_t bfa_ioc_get_mfg_mac(struct bfa_ioc_s *ioc); |
389 | u64 bfa_ioc_get_adid(struct bfa_ioc_s *ioc); | ||
390 | 381 | ||
391 | /* | 382 | /* |
392 | * F/W Image Size & Chunk | 383 | * F/W Image Size & Chunk |