/kernel/linux/linux-5.10/drivers/net/ethernet/qlogic/qlcnic/ |
H A D | qlcnic_sysfs.c | 357 int qlcnic_is_valid_nic_func(struct qlcnic_adapter *adapter, u8 pci_func) in qlcnic_is_valid_nic_func() argument 362 if (adapter->npars[i].pci_func == pci_func) in qlcnic_is_valid_nic_func() 378 src_pci_func = pm_cfg[i].pci_func; in validate_pm_config() 407 u32 id, action, pci_func; in qlcnic_sysfs_write_pm_config() local 422 pci_func = pm_cfg[i].pci_func; in qlcnic_sysfs_write_pm_config() 424 index = qlcnic_is_valid_nic_func(adapter, pci_func); in qlcnic_sysfs_write_pm_config() 430 action, pci_func); in qlcnic_sysfs_write_pm_config() 436 pci_func in qlcnic_sysfs_write_pm_config() 457 u8 pci_func; qlcnic_sysfs_read_pm_config() local 488 u8 pci_func; validate_esw_config() local 553 u8 op_mode = 0, pci_func; qlcnic_sysfs_write_esw_config() local 634 u8 pci_func; qlcnic_sysfs_read_esw_config() local 663 u8 pci_func, i; validate_npar_config() local 688 u8 pci_func; qlcnic_sysfs_write_npar_config() local 734 u8 pci_func; qlcnic_sysfs_read_npar_config() local [all...] |
H A D | qlcnic_sriov_pf.c | 91 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 D | qlcnic_ctx.c | 47 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() 1044 arg1 |= pci_func << 8; in qlcnic_config_port_mirroring() 1056 pci_func, id); in qlcnic_config_port_mirroring() 1059 pci_func, i in qlcnic_config_port_mirroring() 1028 qlcnic_config_port_mirroring(struct qlcnic_adapter *adapter, u8 id, u8 enable_mirroring, u8 pci_func) qlcnic_config_port_mirroring() argument 1293 u8 pci_func = *arg1 >> 8; __qlcnic_get_eswitch_port_config() local 1329 u8 pci_func; qlcnic_config_switch_port() local [all...] |
H A D | qlcnic_sriov_common.c | 192 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() 324 cmd.func_num = pci_func; in qlcnic_sriov_post_bc_msg() 331 "%s: Mailbox not available, cmd_op=0x%x, cmd_type=0x%x, pci_func=0x%x, op_mode=0x%x\n", in qlcnic_sriov_post_bc_msg() 332 __func__, cmd.cmd_op, cmd.type, ahw->pci_func, in qlcnic_sriov_post_bc_msg() 339 "%s: Mailbox command timed out, cmd_op=0x%x, cmd_type=0x%x, pci_func=0x%x, op_mode=0x%x\n", 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() 683 int qlcnic_sriov_func_to_index(struct qlcnic_adapter *adapter, u8 pci_func) in qlcnic_sriov_func_to_index() argument 692 if (vf_info[i].pci_func in qlcnic_sriov_func_to_index() 311 qlcnic_sriov_post_bc_msg(struct qlcnic_adapter *adapter, u32 *hdr, u32 *pay, u8 pci_func, u8 size) qlcnic_sriov_post_bc_msg() argument 943 u8 pci_func = trans->func_id; qlcnic_sriov_issue_bc_post() local 1007 qlcnic_sriov_send_bc_cmd(struct qlcnic_adapter *adapter, struct qlcnic_bc_trans *trans, int pci_func) qlcnic_sriov_send_bc_cmd() argument 1303 u8 pci_func; qlcnic_sriov_handle_bc_event() local [all...] |
H A D | qlcnic_83xx_vnic.c | 51 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 D | qlcnic_main.c | 303 adapter->ahw->pci_func); in qlcnic_read_mac_addr() 833 offset = msi_tgt_status[adapter->ahw->pci_func]; in qlcnic_enable_msi_legacy() 844 legacy_intrp = &legacy_intr[adapter->ahw->pci_func]; in qlcnic_enable_msi_legacy() 1044 adapter->npars[j].pci_func = pfn; in qlcnic_init_pci_info() 1090 id = ahw->pci_func; in qlcnic_set_function_modes() 1117 priv_level = QLC_DEV_GET_DRV(op_mode, adapter->ahw->pci_func); in qlcnic_check_vf() 1177 offset = QLCNIC_PCIX_PS_REG(PCIX_OCM_WINDOW_REG(ahw->pci_func)); in qlcnic_setup_pci_map() 1293 err = qlcnic_get_nic_info(adapter, &nic_info, adapter->ahw->pci_func); in qlcnic_initialize_nic() 1414 esw_cfg.pci_func = adapter->ahw->pci_func; in qlcnic_set_eswitch_port_config() 1523 qlcnic_reset_eswitch_config(struct qlcnic_adapter *adapter, struct qlcnic_npar_info *npar, int pci_func) qlcnic_reset_eswitch_config() argument 1550 u8 pci_func; qlcnic_reset_npar_config() local [all...] |
/kernel/linux/linux-6.6/drivers/net/ethernet/qlogic/qlcnic/ |
H A D | qlcnic_sysfs.c | 356 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 in qlcnic_sysfs_write_pm_config() 456 u8 pci_func; qlcnic_sysfs_read_pm_config() local 487 u8 pci_func; validate_esw_config() local 552 u8 op_mode = 0, pci_func; qlcnic_sysfs_write_esw_config() local 633 u8 pci_func; qlcnic_sysfs_read_esw_config() local 662 u8 pci_func, i; validate_npar_config() local 687 u8 pci_func; qlcnic_sysfs_write_npar_config() local 733 u8 pci_func; qlcnic_sysfs_read_npar_config() local [all...] |
H A D | qlcnic_sriov_pf.c | 91 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 D | qlcnic_ctx.c | 47 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() 1044 arg1 |= pci_func << 8; in qlcnic_config_port_mirroring() 1056 pci_func, id); in qlcnic_config_port_mirroring() 1059 pci_func, i in qlcnic_config_port_mirroring() 1028 qlcnic_config_port_mirroring(struct qlcnic_adapter *adapter, u8 id, u8 enable_mirroring, u8 pci_func) qlcnic_config_port_mirroring() argument 1293 u8 pci_func = *arg1 >> 8; __qlcnic_get_eswitch_port_config() local 1329 u8 pci_func; qlcnic_config_switch_port() local [all...] |
H A D | qlcnic_sriov_common.c | 192 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() 324 cmd.func_num = pci_func; in qlcnic_sriov_post_bc_msg() 331 "%s: Mailbox not available, cmd_op=0x%x, cmd_type=0x%x, pci_func=0x%x, op_mode=0x%x\n", in qlcnic_sriov_post_bc_msg() 332 __func__, cmd.cmd_op, cmd.type, ahw->pci_func, in qlcnic_sriov_post_bc_msg() 339 "%s: Mailbox command timed out, cmd_op=0x%x, cmd_type=0x%x, pci_func=0x%x, op_mode=0x%x\n", 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 in qlcnic_sriov_func_to_index() 311 qlcnic_sriov_post_bc_msg(struct qlcnic_adapter *adapter, u32 *hdr, u32 *pay, u8 pci_func, u8 size) qlcnic_sriov_post_bc_msg() argument 942 u8 pci_func = trans->func_id; qlcnic_sriov_issue_bc_post() local 1006 qlcnic_sriov_send_bc_cmd(struct qlcnic_adapter *adapter, struct qlcnic_bc_trans *trans, int pci_func) qlcnic_sriov_send_bc_cmd() argument 1302 u8 pci_func; qlcnic_sriov_handle_bc_event() local [all...] |
H A D | qlcnic_83xx_vnic.c | 51 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 D | qlcnic_main.c | 302 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() 1519 qlcnic_reset_eswitch_config(struct qlcnic_adapter *adapter, struct qlcnic_npar_info *npar, int pci_func) qlcnic_reset_eswitch_config() argument 1546 u8 pci_func; qlcnic_reset_npar_config() local [all...] |
/kernel/linux/linux-5.10/drivers/pci/hotplug/ |
H A D | cpqphp.h | 225 struct pci_func { struct 226 struct pci_func *next; 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_slo [all...] |
H A D | cpqphp_ctrl.c | 28 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() 954 struct pci_func *cpqhp_slot_create(u8 busnumber) in cpqhp_slot_create() 956 struct pci_func *new_slot; in cpqhp_slot_create() 957 struct pci_func *next; in cpqhp_slot_create() 984 static int slot_remove(struct pci_func *old_slot) in slot_remove() 986 struct pci_func *nex in slot_remove() [all...] |
H A D | cpqphp_pci.c | 70 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() 304 struct pci_func *new_slot; in cpqhp_save_config() 464 int cpqhp_save_slot_config(struct controller *ctrl, struct pci_func *new_slot) in cpqhp_save_slot_config() 548 int cpqhp_save_base_addr_length(struct controller *ctrl, struct pci_func *func) in cpqhp_save_base_addr_length() 558 struct pci_func *next; in cpqhp_save_base_addr_length() 685 int cpqhp_save_used_resources(struct controller *ctrl, struct pci_func *func) in cpqhp_save_used_resources() 948 int cpqhp_configure_board(struct controller *ctrl, struct pci_func *func) in cpqhp_configure_board() 954 struct pci_func *next; in cpqhp_configure_board() 1026 int cpqhp_valid_replace(struct controller *ctrl, struct pci_func *fun [all...] |
H A D | ibmphp_core.c | 606 * This function will return the pci_func, given bus and devfunc, or NULL. It 610 static struct pci_func *ibm_slot_find(u8 busno, u8 device, u8 function) in ibm_slot_find() 612 struct pci_func *func_cur; in ibm_slot_find() 631 * the pointers to pci_func, bus, hotplug_slot, controller, 658 static void ibm_unconfigure_device(struct pci_func *func) in ibm_unconfigure_device() 731 static int ibm_configure_device(struct pci_func *func) in ibm_configure_device() 969 struct pci_func *tmp_func; in enable_slot() 1060 slot_cur->func = kzalloc(sizeof(struct pci_func), GFP_KERNEL); in enable_slot() 1167 slot_cur->func = kzalloc(sizeof(struct pci_func), GFP_KERNEL); in ibmphp_do_disable_slot()
|
H A D | ibmphp.h | 676 struct pci_func { struct 684 struct pci_func *next; 702 struct pci_func *func; 740 int ibmphp_configure_card(struct pci_func *, u8);
|
H A D | ibmphp_pci.c | 23 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() 327 * Input: pointer to the pci_func 330 static int configure_device(struct pci_func *func) in configure_device() 541 * Parameters: pci_func [all...] |
/kernel/linux/linux-6.6/drivers/pci/hotplug/ |
H A D | cpqphp.h | 225 struct pci_func { struct 226 struct pci_func *next; 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_slo [all...] |
H A D | cpqphp_ctrl.c | 28 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 *nex in slot_remove() [all...] |
H A D | cpqphp_pci.c | 70 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() 306 struct pci_func *new_slot; in cpqhp_save_config() 466 int cpqhp_save_slot_config(struct controller *ctrl, struct pci_func *new_slot) in cpqhp_save_slot_config() 550 int cpqhp_save_base_addr_length(struct controller *ctrl, struct pci_func *func) in cpqhp_save_base_addr_length() 560 struct pci_func *next; in cpqhp_save_base_addr_length() 687 int cpqhp_save_used_resources(struct controller *ctrl, struct pci_func *func) in cpqhp_save_used_resources() 950 int cpqhp_configure_board(struct controller *ctrl, struct pci_func *func) in cpqhp_configure_board() 956 struct pci_func *next; in cpqhp_configure_board() 1028 int cpqhp_valid_replace(struct controller *ctrl, struct pci_func *fun [all...] |
H A D | ibmphp_core.c | 535 * This function will return the pci_func, given bus and devfunc, or NULL. It 539 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() 560 * the pointers to pci_func, bus, hotplug_slot, controller, 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 D | ibmphp.h | 674 struct pci_func { struct 682 struct pci_func *next; 700 struct pci_func *func; 738 int ibmphp_configure_card(struct pci_func *, u8);
|
/kernel/linux/linux-5.10/arch/mips/ralink/ |
H A D | rt3883.c | 37 static struct rt2880_pmx_func pci_func[] = { variable 56 GRP("pci", pci_func, RT3883_GPIO_MODE_PCI_MASK,
|
H A D | rt288x.c | 27 static struct rt2880_pmx_func pci_func[] = { FUNC("pci", 0, 40, 32) }; variable 36 GRP("pci", pci_func, 1, RT2880_GPIO_MODE_PCI),
|