Home
last modified time | relevance | path

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

12

/openbmc/linux/drivers/net/ethernet/qlogic/qlcnic/
H A Dqlcnic_sysfs.c356 int qlcnic_is_valid_nic_func(struct qlcnic_adapter *adapter, u8 pci_func) in qlcnic_is_valid_nic_func() argument
361 if (adapter->npars[i].pci_func == pci_func) in qlcnic_is_valid_nic_func()
377 src_pci_func = pm_cfg[i].pci_func; in validate_pm_config()
406 u32 id, action, pci_func; in qlcnic_sysfs_write_pm_config() local
421 pci_func = pm_cfg[i].pci_func; in qlcnic_sysfs_write_pm_config()
423 index = qlcnic_is_valid_nic_func(adapter, pci_func); in qlcnic_sysfs_write_pm_config()
429 action, pci_func); in qlcnic_sysfs_write_pm_config()
435 pci_func = pm_cfg[i].pci_func; in qlcnic_sysfs_write_pm_config()
436 index = qlcnic_is_valid_nic_func(adapter, pci_func); in qlcnic_sysfs_write_pm_config()
456 u8 pci_func; in qlcnic_sysfs_read_pm_config() local
[all …]
H A Dqlcnic_ctx.c47 return (ahw->pci_func & 0xff) | ((ahw->fw_hal_version & 0xff) << 8) | in qlcnic_get_cmd_signature()
883 npar_info->pci_func = le16_to_cpu(nic_info->pci_func); in qlcnic_82xx_get_nic_info()
924 nic_info->pci_func = cpu_to_le16(nic->pci_func); in qlcnic_82xx_set_nic_info()
941 cmd.req.arg[3] = ((nic->pci_func << 16) | nic_size); in qlcnic_82xx_set_nic_info()
1029 u8 enable_mirroring, u8 pci_func) in qlcnic_config_port_mirroring() argument
1044 arg1 |= pci_func << 8; in qlcnic_config_port_mirroring()
1056 pci_func, id); in qlcnic_config_port_mirroring()
1059 pci_func, id); in qlcnic_config_port_mirroring()
1080 (func != adapter->ahw->pci_func)) { in qlcnic_get_port_stats()
1219 if (qlcnic_get_port_stats(adapter, adapter->npars[i].pci_func, in qlcnic_get_eswitch_stats()
[all …]
H A Dqlcnic_sriov_pf.c91 if (adapter->ahw->pci_func == func) { in qlcnic_sriov_pf_cal_res_limit()
239 if (adapter->ahw->pci_func == func) { in qlcnic_sriov_pf_reset_vport_handle()
257 if (adapter->ahw->pci_func == func) { in qlcnic_sriov_pf_set_vport_handle()
275 if (adapter->ahw->pci_func == func) { in qlcnic_sriov_pf_get_vport_handle()
435 u8 func = adapter->ahw->pci_func; in qlcnic_sriov_pf_cleanup()
508 u8 func = ahw->pci_func; in qlcnic_sriov_pf_init()
747 u16 func = vf->pci_func; in qlcnic_sriov_pf_channel_cfg_cmd()
811 vpid = qlcnic_sriov_pf_get_vport_handle(adapter, vf->pci_func); in qlcnic_sriov_cfg_vf_def_mac()
1082 if (((cmd->req.arg[1] >> 8) & 0xff) != vf->pci_func) in qlcnic_sriov_validate_cfg_intrpt()
1143 if (((cmd->req.arg[1] >> 16) & 0x7fff) != vf->pci_func) in qlcnic_sriov_validate_get_nic_info()
[all …]
H A Dqlcnic_sriov_common.c192 vf->pci_func = qlcnic_sriov_virtid_fn(adapter, i); in qlcnic_sriov_init()
312 u32 *pay, u8 pci_func, u8 size) in qlcnic_sriov_post_bc_msg() argument
324 cmd.func_num = pci_func; in qlcnic_sriov_post_bc_msg()
332 __func__, cmd.cmd_op, cmd.type, ahw->pci_func, in qlcnic_sriov_post_bc_msg()
340 __func__, cmd.cmd_op, cmd.type, ahw->pci_func, in qlcnic_sriov_post_bc_msg()
510 err = qlcnic_get_nic_info(adapter, &nic_info, ahw->pci_func); in qlcnic_sriov_vf_init_driver()
682 int qlcnic_sriov_func_to_index(struct qlcnic_adapter *adapter, u8 pci_func) in qlcnic_sriov_func_to_index() argument
691 if (vf_info[i].pci_func == pci_func) in qlcnic_sriov_func_to_index()
942 u8 pci_func = trans->func_id; in qlcnic_sriov_issue_bc_post() local
962 pci_func, pay_size); in qlcnic_sriov_issue_bc_post()
[all …]
H A Dqlcnic_83xx_vnic.c51 id = ahw->pci_func; in qlcnic_83xx_set_vnic_opmode()
111 npar->pci_func, npar->active, npar->type, in qlcnic_83xx_init_mgmt_vnic()
204 ahw->pci_func); in qlcnic_83xx_config_vnic_opmode()
H A Dqlcnic_main.c302 adapter->ahw->pci_func); in qlcnic_read_mac_addr()
829 offset = msi_tgt_status[adapter->ahw->pci_func]; in qlcnic_enable_msi_legacy()
840 legacy_intrp = &legacy_intr[adapter->ahw->pci_func]; in qlcnic_enable_msi_legacy()
1040 adapter->npars[j].pci_func = pfn; in qlcnic_init_pci_info()
1086 id = ahw->pci_func; in qlcnic_set_function_modes()
1113 priv_level = QLC_DEV_GET_DRV(op_mode, adapter->ahw->pci_func); in qlcnic_check_vf()
1173 offset = QLCNIC_PCIX_PS_REG(PCIX_OCM_WINDOW_REG(ahw->pci_func)); in qlcnic_setup_pci_map()
1289 err = qlcnic_get_nic_info(adapter, &nic_info, adapter->ahw->pci_func); in qlcnic_initialize_nic()
1410 esw_cfg.pci_func = adapter->ahw->pci_func; in qlcnic_set_eswitch_port_config()
1448 priv_level = QLC_DEV_GET_DRV(op_mode, adapter->ahw->pci_func); in qlcnic_check_eswitch_mode()
[all …]
H A Dqlcnic_83xx_hw.c289 QLC_83XX_CRB_WIN_FUNC(adapter->ahw->pci_func); in __qlcnic_set_win_base()
394 if (adapter->ahw->pci_func >= QLC_MAX_LEGACY_FUNC_SUPP) { in qlcnic_83xx_setup_intr()
396 ahw->pci_func); in qlcnic_83xx_setup_intr()
472 if (QLC_83XX_INTX_FUNC(intr_val) != adapter->ahw->pci_func) { in qlcnic_83xx_clear_legacy_intr()
484 if (QLC_83XX_INTX_FUNC(intr_val) != ahw->pci_func) in qlcnic_83xx_clear_legacy_intr()
631 adapter->ahw->pci_func = (val >> 24) & 0xff; in qlcnic_83xx_get_func_no()
641 addr = ahw->pci_base0 + QLC_83XX_SEM_LOCK_FUNC(ahw->pci_func); in qlcnic_83xx_cam_lock()
647 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 …]
H A Dqlcnic.h477 u8 pci_func; member
1187 __le16 pci_func; member
1226 u16 pci_func; member
1302 u8 pci_func; member
1336 u8 pci_func; member
1348 u8 pci_func; member
1353 u8 pci_func; member
1363 u8 pci_func; member
H A Dqlcnic_sriov.h138 u8 pci_func; member
H A Dqlcnic_ethtool.c293 u16 pcifn = ahw->pci_func; in qlcnic_82xx_get_link_ksettings()
603 val = XG_LINK_STATE_P3P(adapter->ahw->pci_func, val); in qlcnic_test_link()
998 cmd.req.arg[1] = ahw->pci_func; in qlcnic_irq_test()
1390 ret = qlcnic_get_port_stats(adapter, adapter->ahw->pci_func, in qlcnic_get_ethtool_stats()
1396 ret = qlcnic_get_port_stats(adapter, adapter->ahw->pci_func, in qlcnic_get_ethtool_stats()
/openbmc/linux/drivers/pci/hotplug/
H A Dcpqphp.h225 struct pci_func { struct
226 struct pci_func *next; argument
405 struct pci_func *cpqhp_slot_create(unsigned char busnumber);
406 struct pci_func *cpqhp_slot_find(unsigned char bus, unsigned char device,
408 int cpqhp_process_SI(struct controller *ctrl, struct pci_func *func);
409 int cpqhp_process_SS(struct controller *ctrl, struct pci_func *func);
420 int cpqhp_save_base_addr_length(struct controller *ctrl, struct pci_func *func);
421 int cpqhp_save_used_resources(struct controller *ctrl, struct pci_func *func);
422 int cpqhp_configure_board(struct controller *ctrl, struct pci_func *func);
423 int cpqhp_save_slot_config(struct controller *ctrl, struct pci_func *new_slot);
[all …]
H A Dcpqphp_ctrl.c28 static u32 configure_new_device(struct controller *ctrl, struct pci_func *func,
30 static int configure_new_function(struct controller *ctrl, struct pci_func *func,
58 struct pci_func *func; in handle_switch_change()
133 struct pci_func *func; in handle_presence_change()
225 struct pci_func *func; in handle_power_fault()
953 struct pci_func *cpqhp_slot_create(u8 busnumber) in cpqhp_slot_create()
955 struct pci_func *new_slot; in cpqhp_slot_create()
956 struct pci_func *next; in cpqhp_slot_create()
983 static int slot_remove(struct pci_func *old_slot) in slot_remove()
985 struct pci_func *next; in slot_remove()
[all …]
H A Dcpqphp_pci.c70 int cpqhp_configure_device(struct controller *ctrl, struct pci_func *func) in cpqhp_configure_device()
114 int cpqhp_unconfigure_device(struct pci_func *func) in cpqhp_unconfigure_device()
311 struct pci_func *new_slot; in cpqhp_save_config()
471 int cpqhp_save_slot_config(struct controller *ctrl, struct pci_func *new_slot) in cpqhp_save_slot_config()
555 int cpqhp_save_base_addr_length(struct controller *ctrl, struct pci_func *func) in cpqhp_save_base_addr_length()
565 struct pci_func *next; in cpqhp_save_base_addr_length()
692 int cpqhp_save_used_resources(struct controller *ctrl, struct pci_func *func) in cpqhp_save_used_resources()
955 int cpqhp_configure_board(struct controller *ctrl, struct pci_func *func) in cpqhp_configure_board()
961 struct pci_func *next; in cpqhp_configure_board()
1033 int cpqhp_valid_replace(struct controller *ctrl, struct pci_func *func) in cpqhp_valid_replace()
[all …]
H A Dibmphp_pci.c23 static int configure_device(struct pci_func *);
24 static int configure_bridge(struct pci_func **, u8);
25 static struct res_needed *scan_behind_bridge(struct pci_func *, u8);
36 static void assign_alt_irq(struct pci_func *cur_func, u8 class_code) in assign_alt_irq()
67 int ibmphp_configure_card(struct pci_func *func, u8 slotno) in ibmphp_configure_card()
74 struct pci_func *newfunc; /* for multi devices */ in ibmphp_configure_card()
75 struct pci_func *cur_func, *prev_func; in ibmphp_configure_card()
329 static int configure_device(struct pci_func *func) in configure_device()
543 static int configure_bridge(struct pci_func **func_passed, u8 slotno) in configure_bridge()
572 struct pci_func *func = *func_passed; in configure_bridge()
[all …]
H A Dibmphp.h674 struct pci_func { struct
682 struct pci_func *next; argument
700 struct pci_func *func; argument
738 int ibmphp_configure_card(struct pci_func *, u8);
H A Dcpqphp_core.c39 struct pci_func *cpqhp_slot_list[256];
375 cpqhp_set_attention_status(struct controller *ctrl, struct pci_func *func, in cpqhp_set_attention_status()
417 struct pci_func *slot_func; in set_attention_status()
444 struct pci_func *slot_func; in process_SI()
476 struct pci_func *slot_func; in process_SS()
766 struct pci_func *func; in cpqhpc_probe()
1248 struct pci_func *next; in unload_cpqphpd()
1249 struct pci_func *TempSlot; in unload_cpqphpd()
H A Dibmphp_core.c539 static struct pci_func *ibm_slot_find(u8 busno, u8 device, u8 function) in ibm_slot_find()
541 struct pci_func *func_cur; in ibm_slot_find()
587 static void ibm_unconfigure_device(struct pci_func *func) in ibm_unconfigure_device()
660 static int ibm_configure_device(struct pci_func *func) in ibm_configure_device()
898 struct pci_func *tmp_func; in enable_slot()
989 slot_cur->func = kzalloc(sizeof(struct pci_func), GFP_KERNEL); in enable_slot()
1096 slot_cur->func = kzalloc(sizeof(struct pci_func), GFP_KERNEL); in ibmphp_do_disable_slot()
H A Dcpqphp_sysfs.c71 struct pci_func *new_slot; in show_dev()
/openbmc/linux/drivers/firmware/
H A Dpcdp.h43 u8 pci_func; member
/openbmc/linux/drivers/net/ethernet/brocade/bna/
H A Dbna_hw_defs.h81 reg_offset[(_pcidev)->pci_func].fn_int_status;\
83 reg_offset[(_pcidev)->pci_func].fn_int_mask;\
H A Dbfa_ioc.h29 u8 pci_func; member
224 #define bfa_ioc_pcifn(__ioc) ((__ioc)->pcidev.pci_func)
/openbmc/linux/drivers/media/pci/netup_unidvb/
H A Dnetup_unidvb.h106 int pci_func; member
H A Dnetup_unidvb_spi.c209 ndev->pci_func); in netup_spi_init()
/openbmc/linux/drivers/net/ethernet/qlogic/netxen/
H A Dnetxen_nic_hw.c1026 int pci_func = adapter->ahw.pci_func; in netxen_p3_get_mac_addr() local
1029 (4 * ((pci_func/2) * 3)) + (4 * (pci_func & 1)); in netxen_p3_get_mac_addr()
1034 if (pci_func & 1) in netxen_p3_get_mac_addr()
1051 u8 func = adapter->ahw.pci_func; in netxen_nic_pci_set_crbwindow_128M()
2129 writel(adapter->ahw.pci_func, (void __iomem *)(adapter->ahw.pci_base0 + in netxen_md_rdrom()
/openbmc/linux/include/uapi/scsi/
H A Dscsi_bsg_mpi3mr.h137 __u32 pci_func:3; member

12