Home
last modified time | relevance | path

Searched refs:pci_func (Results 1 – 42 of 42) sorted by relevance

/linux-4.4.14/drivers/net/ethernet/qlogic/qlcnic/
Dqlcnic_sysfs.c358 int qlcnic_is_valid_nic_func(struct qlcnic_adapter *adapter, u8 pci_func) in qlcnic_is_valid_nic_func() argument
363 if (adapter->npars[i].pci_func == pci_func) in qlcnic_is_valid_nic_func()
379 src_pci_func = pm_cfg[i].pci_func; in validate_pm_config()
408 u32 id, action, pci_func; in qlcnic_sysfs_write_pm_config() local
423 pci_func = pm_cfg[i].pci_func; in qlcnic_sysfs_write_pm_config()
425 index = qlcnic_is_valid_nic_func(adapter, pci_func); in qlcnic_sysfs_write_pm_config()
431 action, pci_func); in qlcnic_sysfs_write_pm_config()
437 pci_func = pm_cfg[i].pci_func; in qlcnic_sysfs_write_pm_config()
438 index = qlcnic_is_valid_nic_func(adapter, pci_func); in qlcnic_sysfs_write_pm_config()
458 u8 pci_func; in qlcnic_sysfs_read_pm_config() local
[all …]
Dqlcnic_ctx.c48 return (ahw->pci_func & 0xff) | ((ahw->fw_hal_version & 0xff) << 8) | in qlcnic_get_cmd_signature()
876 npar_info->pci_func = le16_to_cpu(nic_info->pci_func); in qlcnic_82xx_get_nic_info()
917 nic_info->pci_func = cpu_to_le16(nic->pci_func); in qlcnic_82xx_set_nic_info()
934 cmd.req.arg[3] = ((nic->pci_func << 16) | nic_size); in qlcnic_82xx_set_nic_info()
1022 u8 enable_mirroring, u8 pci_func) in qlcnic_config_port_mirroring() argument
1037 arg1 |= pci_func << 8; in qlcnic_config_port_mirroring()
1049 pci_func, id); in qlcnic_config_port_mirroring()
1052 pci_func, id); in qlcnic_config_port_mirroring()
1073 (func != adapter->ahw->pci_func)) { in qlcnic_get_port_stats()
1212 if (qlcnic_get_port_stats(adapter, adapter->npars[i].pci_func, in qlcnic_get_eswitch_stats()
[all …]
Dqlcnic_sriov_pf.c92 if (adapter->ahw->pci_func == func) { in qlcnic_sriov_pf_cal_res_limit()
240 if (adapter->ahw->pci_func == func) { in qlcnic_sriov_pf_reset_vport_handle()
258 if (adapter->ahw->pci_func == func) { in qlcnic_sriov_pf_set_vport_handle()
276 if (adapter->ahw->pci_func == func) { in qlcnic_sriov_pf_get_vport_handle()
436 u8 func = adapter->ahw->pci_func; in qlcnic_sriov_pf_cleanup()
509 u8 func = ahw->pci_func; in qlcnic_sriov_pf_init()
746 u16 func = vf->pci_func; in qlcnic_sriov_pf_channel_cfg_cmd()
810 vpid = qlcnic_sriov_pf_get_vport_handle(adapter, vf->pci_func); in qlcnic_sriov_cfg_vf_def_mac()
1084 if (((cmd->req.arg[1] >> 8) & 0xff) != vf->pci_func) in qlcnic_sriov_validate_cfg_intrpt()
1145 if (((cmd->req.arg[1] >> 16) & 0x7fff) != vf->pci_func) in qlcnic_sriov_validate_get_nic_info()
[all …]
Dqlcnic_sriov_common.c185 vf->pci_func = qlcnic_sriov_virtid_fn(adapter, i); in qlcnic_sriov_init()
303 u32 *pay, u8 pci_func, u8 size) in qlcnic_sriov_post_bc_msg() argument
315 cmd.func_num = pci_func; in qlcnic_sriov_post_bc_msg()
323 __func__, cmd.cmd_op, cmd.type, ahw->pci_func, in qlcnic_sriov_post_bc_msg()
331 __func__, cmd.cmd_op, cmd.type, ahw->pci_func, in qlcnic_sriov_post_bc_msg()
499 err = qlcnic_get_nic_info(adapter, &nic_info, ahw->pci_func); in qlcnic_sriov_vf_init_driver()
672 int qlcnic_sriov_func_to_index(struct qlcnic_adapter *adapter, u8 pci_func) in qlcnic_sriov_func_to_index() argument
681 if (vf_info[i].pci_func == pci_func) in qlcnic_sriov_func_to_index()
934 u8 pci_func = trans->func_id; in qlcnic_sriov_issue_bc_post() local
956 pci_func, pay_size); in qlcnic_sriov_issue_bc_post()
[all …]
Dqlcnic_83xx_vnic.c52 id = ahw->pci_func; in qlcnic_83xx_set_vnic_opmode()
112 npar->pci_func, npar->active, npar->type, in qlcnic_83xx_init_mgmt_vnic()
205 ahw->pci_func); in qlcnic_83xx_config_vnic_opmode()
Dqlcnic_main.c309 adapter->ahw->pci_func); in qlcnic_read_mac_addr()
855 offset = msi_tgt_status[adapter->ahw->pci_func]; in qlcnic_enable_msi_legacy()
866 legacy_intrp = &legacy_intr[adapter->ahw->pci_func]; in qlcnic_enable_msi_legacy()
1063 adapter->npars[j].pci_func = pfn; in qlcnic_init_pci_info()
1109 id = ahw->pci_func; in qlcnic_set_function_modes()
1136 priv_level = QLC_DEV_GET_DRV(op_mode, adapter->ahw->pci_func); in qlcnic_check_vf()
1196 offset = QLCNIC_PCIX_PS_REG(PCIX_OCM_WINDOW_REG(ahw->pci_func)); in qlcnic_setup_pci_map()
1312 err = qlcnic_get_nic_info(adapter, &nic_info, adapter->ahw->pci_func); in qlcnic_initialize_nic()
1433 esw_cfg.pci_func = adapter->ahw->pci_func; in qlcnic_set_eswitch_port_config()
1471 priv_level = QLC_DEV_GET_DRV(op_mode, adapter->ahw->pci_func); in qlcnic_check_eswitch_mode()
[all …]
Dqlcnic_83xx_hw.c289 QLC_83XX_CRB_WIN_FUNC(adapter->ahw->pci_func); in __qlcnic_set_win_base()
393 if (adapter->ahw->pci_func >= QLC_MAX_LEGACY_FUNC_SUPP) { in qlcnic_83xx_setup_intr()
395 ahw->pci_func); in qlcnic_83xx_setup_intr()
471 if (QLC_83XX_INTX_FUNC(intr_val) != adapter->ahw->pci_func) { in qlcnic_83xx_clear_legacy_intr()
483 if (QLC_83XX_INTX_FUNC(intr_val) != ahw->pci_func) in qlcnic_83xx_clear_legacy_intr()
630 adapter->ahw->pci_func = (val >> 24) & 0xff; in qlcnic_83xx_get_func_no()
640 addr = ahw->pci_base0 + QLC_83XX_SEM_LOCK_FUNC(ahw->pci_func); in qlcnic_83xx_cam_lock()
646 ahw->pci_func); in qlcnic_83xx_cam_lock()
661 addr = ahw->pci_base0 + QLC_83XX_SEM_UNLOCK_FUNC(ahw->pci_func); in qlcnic_83xx_cam_unlock()
776 ahw->pci_func); in qlcnic_83xx_check_vf()
[all …]
Dqlcnic.h478 u8 pci_func; member
1195 __le16 pci_func; member
1234 u16 pci_func; member
1310 u8 pci_func; member
1344 u8 pci_func; member
1356 u8 pci_func; member
1361 u8 pci_func; member
1371 u8 pci_func; member
Dqlcnic_sriov.h139 u8 pci_func; member
Dqlcnic_minidump.c576 adapter->ahw->pci_func); in qlcnic_read_rom()
811 temp |= (adapter->ahw->pci_func & 0xf) << 4; in qlcnic_read_memory_pexdma()
1346 ocm_window = hdr_83xx->ocm_wnd_reg[ahw->pci_func]; in qlcnic_dump_fw()
1348 hdr_83xx->saved_state[QLC_83XX_PCI_INDEX] = ahw->pci_func; in qlcnic_dump_fw()
Dqlcnic_ethtool.c294 u16 pcifn = ahw->pci_func; in qlcnic_82xx_get_settings()
594 val = XG_LINK_STATE_P3P(adapter->ahw->pci_func, val); in qlcnic_test_link()
985 cmd.req.arg[1] = ahw->pci_func; in qlcnic_irq_test()
1374 ret = qlcnic_get_port_stats(adapter, adapter->ahw->pci_func, in qlcnic_get_ethtool_stats()
1380 ret = qlcnic_get_port_stats(adapter, adapter->ahw->pci_func, in qlcnic_get_ethtool_stats()
Dqlcnic_83xx_init.c799 if (adapter->ahw->pci_func == owner) in qlcnic_83xx_idc_init_state()
961 if (ahw->pci_func == owner) { in qlcnic_83xx_idc_failed_state()
2278 err = qlcnic_get_nic_info(adapter, &nic_info, ahw->pci_func); in qlcnic_83xx_get_nic_configuration()
2593 if (ahw->pci_func == owner) { in qlcnic_83xx_aer_reset()
2612 if (ahw->pci_func == owner) in qlcnic_83xx_aer_start_poll_work()
Dqlcnic_hw.c1617 adapter->ahw->pci_func = func; in qlcnic_82xx_get_func_no()
/linux-4.4.14/drivers/pci/hotplug/
Dcpqphp.h239 struct pci_func { struct
240 struct pci_func *next; argument
419 struct pci_func *cpqhp_slot_create(unsigned char busnumber);
420 struct pci_func *cpqhp_slot_find(unsigned char bus, unsigned char device,
422 int cpqhp_process_SI(struct controller *ctrl, struct pci_func *func);
423 int cpqhp_process_SS(struct controller *ctrl, struct pci_func *func);
434 int cpqhp_save_base_addr_length(struct controller *ctrl, struct pci_func *func);
435 int cpqhp_save_used_resources(struct controller *ctrl, struct pci_func *func);
436 int cpqhp_configure_board(struct controller *ctrl, struct pci_func *func);
437 int cpqhp_save_slot_config(struct controller *ctrl, struct pci_func *new_slot);
[all …]
Dcpqphp_ctrl.c42 static u32 configure_new_device(struct controller *ctrl, struct pci_func *func,
44 static int configure_new_function(struct controller *ctrl, struct pci_func *func,
72 struct pci_func *func; in handle_switch_change()
147 struct pci_func *func; in handle_presence_change()
239 struct pci_func *func; in handle_power_fault()
968 struct pci_func *cpqhp_slot_create(u8 busnumber) in cpqhp_slot_create()
970 struct pci_func *new_slot; in cpqhp_slot_create()
971 struct pci_func *next; in cpqhp_slot_create()
998 static int slot_remove(struct pci_func *old_slot) in slot_remove()
1000 struct pci_func *next; in slot_remove()
[all …]
Dcpqphp_pci.c84 int cpqhp_configure_device (struct controller *ctrl, struct pci_func *func) in cpqhp_configure_device()
124 int cpqhp_unconfigure_device(struct pci_func *func) in cpqhp_unconfigure_device()
311 struct pci_func *new_slot; in cpqhp_save_config()
468 int cpqhp_save_slot_config (struct controller *ctrl, struct pci_func *new_slot) in cpqhp_save_slot_config()
552 int cpqhp_save_base_addr_length(struct controller *ctrl, struct pci_func *func) in cpqhp_save_base_addr_length()
562 struct pci_func *next; in cpqhp_save_base_addr_length()
689 int cpqhp_save_used_resources (struct controller *ctrl, struct pci_func *func) in cpqhp_save_used_resources()
952 int cpqhp_configure_board(struct controller *ctrl, struct pci_func *func) in cpqhp_configure_board()
958 struct pci_func *next; in cpqhp_configure_board()
1030 int cpqhp_valid_replace(struct controller *ctrl, struct pci_func *func) in cpqhp_valid_replace()
[all …]
Dibmphp_pci.c37 static int configure_device(struct pci_func *);
38 static int configure_bridge(struct pci_func **, u8);
39 static struct res_needed *scan_behind_bridge(struct pci_func *, u8);
50 static void assign_alt_irq (struct pci_func *cur_func, u8 class_code) in assign_alt_irq()
81 int ibmphp_configure_card (struct pci_func *func, u8 slotno) in ibmphp_configure_card()
88 struct pci_func *newfunc; /* for multi devices */ in ibmphp_configure_card()
89 struct pci_func *cur_func, *prev_func; in ibmphp_configure_card()
348 static int configure_device (struct pci_func *func) in configure_device()
566 static int configure_bridge (struct pci_func **func_passed, u8 slotno) in configure_bridge()
595 struct pci_func *func = *func_passed; in configure_bridge()
[all …]
Dibmphp.h691 struct pci_func { struct
699 struct pci_func *next; argument
717 struct pci_func *func; argument
755 int ibmphp_configure_card(struct pci_func *, u8);
Dcpqphp_core.c53 struct pci_func *cpqhp_slot_list[256];
402 cpqhp_set_attention_status(struct controller *ctrl, struct pci_func *func, in cpqhp_set_attention_status()
444 struct pci_func *slot_func; in set_attention_status()
471 struct pci_func *slot_func; in process_SI()
503 struct pci_func *slot_func; in process_SS()
826 struct pci_func *func; in cpqhpc_probe()
1308 struct pci_func *next; in unload_cpqphpd()
1309 struct pci_func *TempSlot; in unload_cpqphpd()
Dibmphp_core.c668 static struct pci_func *ibm_slot_find(u8 busno, u8 device, u8 function) in ibm_slot_find()
670 struct pci_func *func_cur; in ibm_slot_find()
709 static void ibm_unconfigure_device(struct pci_func *func) in ibm_unconfigure_device()
783 static int ibm_configure_device(struct pci_func *func) in ibm_configure_device()
1021 struct pci_func *tmp_func; in enable_slot()
1112 slot_cur->func = kzalloc(sizeof(struct pci_func), GFP_KERNEL); in enable_slot()
1221 slot_cur->func = kzalloc(sizeof(struct pci_func), GFP_KERNEL); in ibmphp_do_disable_slot()
Dcpqphp_sysfs.c85 struct pci_func *new_slot; in show_dev()
/linux-4.4.14/arch/mips/ralink/
Drt288x.c30 static struct rt2880_pmx_func pci_func[] = { FUNC("pci", 0, 40, 32) }; variable
39 GRP("pci", pci_func, 1, RT2880_GPIO_MODE_PCI),
Drt3883.c40 static struct rt2880_pmx_func pci_func[] = { variable
59 GRP("pci", pci_func, RT3883_GPIO_MODE_PCI_MASK,
/linux-4.4.14/drivers/firmware/
Dpcdp.h46 u8 pci_func; member
/linux-4.4.14/drivers/media/pci/netup_unidvb/
Dnetup_unidvb.h106 int pci_func; member
Dnetup_unidvb_spi.c218 ndev->pci_func); in netup_spi_init()
Dnetup_unidvb_core.c789 ndev->pci_func = PCI_FUNC(pci_dev->devfn); in netup_unidvb_initdev()
/linux-4.4.14/drivers/net/ethernet/brocade/bna/
Dbna_hw_defs.h89 reg_offset[(_pcidev)->pci_func].fn_int_status;\
91 reg_offset[(_pcidev)->pci_func].fn_int_mask;\
Dbfa_ioc.h37 u8 pci_func; member
228 #define bfa_ioc_pcifn(__ioc) ((__ioc)->pcidev.pci_func)
Dbnad.c3690 pcidev_info.pci_func = PCI_FUNC(bnad->pcidev->devfn); in bnad_pci_probe()
/linux-4.4.14/drivers/net/ethernet/qlogic/netxen/
Dnetxen_nic_hw.c1067 int pci_func = adapter->ahw.pci_func; in netxen_p3_get_mac_addr() local
1070 (4 * ((pci_func/2) * 3)) + (4 * (pci_func & 1)); in netxen_p3_get_mac_addr()
1075 if (pci_func & 1) in netxen_p3_get_mac_addr()
1092 u8 func = adapter->ahw.pci_func; in netxen_nic_pci_set_crbwindow_128M()
2170 writel(adapter->ahw.pci_func, (void __iomem *)(adapter->ahw.pci_base0 + in netxen_md_rdrom()
Dnetxen_nic_main.c612 legacy_intrp = &legacy_intr[adapter->ahw.pci_func]; in netxen_initialize_interrupt_registers()
660 value = msi_tgt_status[adapter->ahw.pci_func]; in netxen_setup_msi_interrupts()
740 int pci_func = adapter->ahw.pci_func; in netxen_setup_pci_map() local
802 NETXEN_PCIX_PS_REG(PCIX_OCM_WINDOW_REG(pci_func))); in netxen_setup_pci_map()
806 NETXEN_PCIX_PS_REG(PCIE_MN_WINDOW_REG(pci_func))); in netxen_setup_pci_map()
1508 adapter->ahw.pci_func = pci_func_id; in netxen_nic_probe()
2235 val = XG_LINK_STATE_P3(adapter->ahw.pci_func, val); in netxen_nic_handle_phy_intr()
Dnetxen_nic_ethtool.c146 u16 pcifn = adapter->ahw.pci_func; in netxen_nic_get_settings()
369 val = XG_LINK_STATE_P3(adapter->ahw.pci_func, val); in netxen_nic_test_link()
Dnetxen_nic_ctx.c55 signature = NX_CDRP_SIGNATURE_MAKE(adapter->ahw.pci_func, in netxen_issue_cmd()
Dnetxen_nic.h600 u8 pci_func; member
/linux-4.4.14/drivers/edac/
Damd64_edac.c1003 unsigned int pci_func; in read_dram_base_limit_regs() local
1028 pci_func = PCI_DEVICE_ID_AMD_15H_M60H_NB_F1; in read_dram_base_limit_regs()
1030 pci_func = PCI_DEVICE_ID_AMD_15H_M30H_NB_F1; in read_dram_base_limit_regs()
1032 pci_func = PCI_DEVICE_ID_AMD_15H_NB_F1; in read_dram_base_limit_regs()
1034 f1 = pci_get_related_function(nb->misc->vendor, pci_func, nb->misc); in read_dram_base_limit_regs()
/linux-4.4.14/drivers/scsi/bnx2i/
Dbnx2i.h467 u16 pci_func; member
Dbnx2i_iscsi.c811 hba->pci_func = PCI_FUNC(hba->pcidev->devfn); in bnx2i_alloc_hba()
Dbnx2i_hwi.c2529 (u8)hba->pci_func); in bnx2i_indicate_kcqe()
/linux-4.4.14/drivers/scsi/bfa/
Dbfa_ioc.h154 u8 pci_func; member
810 #define bfa_ioc_pcifn(__ioc) ((__ioc)->pcidev.pci_func)
Dbfad.c770 bfad->hal_pcidev.pci_func = PCI_FUNC(pdev->devfn); in bfad_pci_init()
/linux-4.4.14/drivers/scsi/qla4xxx/
Dql4_fw.h981 uint32_t pci_func; /* 20-23 this PCI function */ member