Home
last modified time | relevance | path

Searched refs:pcifn (Results 1 – 15 of 15) sorted by relevance

/drivers/scsi/bfa/
Dbfa_ioc_cb.c146 int pcifn = bfa_ioc_pcifn(ioc); in bfa_ioc_cb_reg_init() local
150 ioc->ioc_regs.hfn_mbox = rb + iocreg_fnreg[pcifn].hfn_mbox; in bfa_ioc_cb_reg_init()
151 ioc->ioc_regs.lpu_mbox = rb + iocreg_fnreg[pcifn].lpu_mbox; in bfa_ioc_cb_reg_init()
152 ioc->ioc_regs.host_page_num_fn = rb + iocreg_fnreg[pcifn].hfn_pgn; in bfa_ioc_cb_reg_init()
167 ioc->ioc_regs.hfn_mbox_cmd = rb + iocreg_mbcmd[pcifn].hfn; in bfa_ioc_cb_reg_init()
168 ioc->ioc_regs.lpu_mbox_cmd = rb + iocreg_mbcmd[pcifn].lpu; in bfa_ioc_cb_reg_init()
Dbfa_ioc_ct.c193 int pcifn = bfa_ioc_pcifn(ioc); in bfa_ioc_ct_reg_init() local
197 ioc->ioc_regs.hfn_mbox = rb + ct_fnreg[pcifn].hfn_mbox; in bfa_ioc_ct_reg_init()
198 ioc->ioc_regs.lpu_mbox = rb + ct_fnreg[pcifn].lpu_mbox; in bfa_ioc_ct_reg_init()
199 ioc->ioc_regs.host_page_num_fn = rb + ct_fnreg[pcifn].hfn_pgn; in bfa_ioc_ct_reg_init()
205 ioc->ioc_regs.hfn_mbox_cmd = rb + ct_p0reg[pcifn].hfn; in bfa_ioc_ct_reg_init()
206 ioc->ioc_regs.lpu_mbox_cmd = rb + ct_p0reg[pcifn].lpu; in bfa_ioc_ct_reg_init()
213 ioc->ioc_regs.hfn_mbox_cmd = rb + ct_p1reg[pcifn].hfn; in bfa_ioc_ct_reg_init()
214 ioc->ioc_regs.lpu_mbox_cmd = rb + ct_p1reg[pcifn].lpu; in bfa_ioc_ct_reg_init()
Dbfa_ioc.h406 u16 *pcifn; member
950 bfa_status_t bfa_ablk_pf_create(struct bfa_ablk_s *ablk, u16 *pcifn,
953 bfa_status_t bfa_ablk_pf_delete(struct bfa_ablk_s *ablk, int pcifn,
955 bfa_status_t bfa_ablk_pf_update(struct bfa_ablk_s *ablk, int pcifn,
Dbfa_ioc.c2884 ioc_attr->pci_attr.pcifn = bfa_ioc_pcifn(ioc); in bfa_ioc_get_attr()
3325 *(ablk->pcifn) = rsp->pcifn; in bfa_ablk_isr()
3326 ablk->pcifn = NULL; in bfa_ablk_isr()
3356 ablk->pcifn = NULL; in bfa_ablk_notify()
3428 bfa_ablk_pf_create(struct bfa_ablk_s *ablk, u16 *pcifn, in bfa_ablk_pf_create() argument
3445 ablk->pcifn = pcifn; in bfa_ablk_pf_create()
3463 bfa_ablk_pf_delete(struct bfa_ablk_s *ablk, int pcifn, in bfa_ablk_pf_delete() argument
3485 m->pcifn = (u8)pcifn; in bfa_ablk_pf_delete()
3555 bfa_ablk_pf_update(struct bfa_ablk_s *ablk, int pcifn, u16 bw_min, in bfa_ablk_pf_update() argument
3577 m->pcifn = (u8)pcifn; in bfa_ablk_pf_update()
Dbfi.h734 u8 pcifn; member
758 u8 pcifn; member
Dbfa_defs.h335 u32 pcifn; /* PCI device function */ member
Dbfad.c780 bfad->pci_attr.pcifn = PCI_FUNC(pdev->devfn); in bfad_pci_init()
/drivers/net/ethernet/qlogic/qlcnic/
Dqlcnic_hdr.h505 #define XG_LINK_STATE_P3P(pcifn, val) \ argument
506 (((val) >> ((pcifn) * 4)) & XG_LINK_STATE_P3P_MASK)
510 #define P3P_LINK_SPEED_REG(pcifn) \ argument
511 (CRB_PF_LINK_SPEED_1 + (((pcifn) / 4) * 4))
512 #define P3P_LINK_SPEED_VAL(pcifn, reg) \ argument
513 (((reg) >> (8 * ((pcifn) & 0x3))) & P3P_LINK_SPEED_MASK)
Dqlcnic_ethtool.c294 u16 pcifn = ahw->pci_func; in qlcnic_82xx_get_settings() local
329 P3P_LINK_SPEED_REG(pcifn), &err); in qlcnic_82xx_get_settings()
330 speed = P3P_LINK_SPEED_VAL(pcifn, reg); in qlcnic_82xx_get_settings()
/drivers/net/ethernet/brocade/bna/
Dbfa_ioc_ct.c260 int pcifn = bfa_ioc_pcifn(ioc); in bfa_ioc_ct_reg_init() local
264 ioc->ioc_regs.hfn_mbox = rb + ct_fnreg[pcifn].hfn_mbox; in bfa_ioc_ct_reg_init()
265 ioc->ioc_regs.lpu_mbox = rb + ct_fnreg[pcifn].lpu_mbox; in bfa_ioc_ct_reg_init()
266 ioc->ioc_regs.host_page_num_fn = rb + ct_fnreg[pcifn].hfn_pgn; in bfa_ioc_ct_reg_init()
272 ioc->ioc_regs.hfn_mbox_cmd = rb + ct_p0reg[pcifn].hfn; in bfa_ioc_ct_reg_init()
273 ioc->ioc_regs.lpu_mbox_cmd = rb + ct_p0reg[pcifn].lpu; in bfa_ioc_ct_reg_init()
280 ioc->ioc_regs.hfn_mbox_cmd = rb + ct_p1reg[pcifn].hfn; in bfa_ioc_ct_reg_init()
281 ioc->ioc_regs.lpu_mbox_cmd = rb + ct_p1reg[pcifn].lpu; in bfa_ioc_ct_reg_init()
Dbfa_defs.h96 u32 pcifn; /*!< PCI device function */ member
Dbfa_ioc.c2921 ioc_attr->pci_attr.pcifn = bfa_ioc_pcifn(ioc); in bfa_nw_ioc_get_attr()
/drivers/net/ethernet/qlogic/netxen/
Dnetxen_nic_hdr.h712 #define XG_LINK_STATE_P3(pcifn,val) \ argument
713 (((val) >> ((pcifn) * 4)) & XG_LINK_STATE_P3_MASK)
717 #define P3_LINK_SPEED_REG(pcifn) \ argument
718 (CRB_PF_LINK_SPEED_1 + (((pcifn) / 4) * 4))
719 #define P3_LINK_SPEED_VAL(pcifn, reg) \ argument
720 (((reg) >> (8 * ((pcifn) & 0x3))) & P3_LINK_SPEED_MASK)
Dnetxen_nic_ethtool.c146 u16 pcifn = adapter->ahw.pci_func; in netxen_nic_get_settings() local
148 val = NXRD32(adapter, P3_LINK_SPEED_REG(pcifn)); in netxen_nic_get_settings()
150 P3_LINK_SPEED_VAL(pcifn, val)); in netxen_nic_get_settings()
Dnetxen_nic.h704 #define NX_CDRP_SIGNATURE_MAKE(pcifn, version) \ argument
705 (((pcifn) & 0xff) | (((version) & 0xff) << 8) | (0xcafe << 16))