Home
last modified time | relevance | path

Searched refs:max_functions (Results 1 – 10 of 10) sorted by relevance

/Linux-v5.15/drivers/net/ethernet/mellanox/mlx5/core/sf/dev/
Ddev.c151 u16 max_functions; in mlx5_sf_dev_state_change_handler() local
155 max_functions = mlx5_sf_max_functions(table->dev); in mlx5_sf_dev_state_change_handler()
156 if (!max_functions) in mlx5_sf_dev_state_change_handler()
160 if (event->function_id < base_id || event->function_id >= (base_id + max_functions)) in mlx5_sf_dev_state_change_handler()
192 u16 max_functions; in mlx5_sf_dev_vhca_arm_all() local
197 max_functions = mlx5_sf_max_functions(dev); in mlx5_sf_dev_vhca_arm_all()
200 for (i = 0; i < max_functions; i++) { in mlx5_sf_dev_vhca_arm_all()
/Linux-v5.15/drivers/pci/endpoint/
Dpci-epc-core.c152 if (IS_ERR_OR_NULL(epc) || func_no >= epc->max_functions) in pci_epc_get_features()
225 if (IS_ERR_OR_NULL(epc) || func_no >= epc->max_functions) in pci_epc_raise_irq()
300 if (IS_ERR_OR_NULL(epc) || func_no >= epc->max_functions) in pci_epc_get_msi()
336 if (IS_ERR_OR_NULL(epc) || func_no >= epc->max_functions || in pci_epc_set_msi()
368 if (IS_ERR_OR_NULL(epc) || func_no >= epc->max_functions) in pci_epc_get_msix()
404 if (IS_ERR_OR_NULL(epc) || func_no >= epc->max_functions || in pci_epc_set_msix()
435 if (IS_ERR_OR_NULL(epc) || func_no >= epc->max_functions) in pci_epc_unmap_addr()
466 if (IS_ERR_OR_NULL(epc) || func_no >= epc->max_functions) in pci_epc_map_addr()
496 if (IS_ERR_OR_NULL(epc) || func_no >= epc->max_functions || in pci_epc_clear_bar()
528 if (IS_ERR_OR_NULL(epc) || func_no >= epc->max_functions || in pci_epc_set_bar()
[all …]
/Linux-v5.15/drivers/pci/controller/
Dpcie-rcar-ep.c29 u8 max_functions; member
155 &ep->max_functions); in rcar_pcie_ep_get_pdata()
156 if (err < 0 || ep->max_functions > RCAR_EPC_MAX_FUNCTIONS) in rcar_pcie_ep_get_pdata()
157 ep->max_functions = RCAR_EPC_MAX_FUNCTIONS; in rcar_pcie_ep_get_pdata()
534 epc->max_functions = ep->max_functions; in rcar_pcie_ep_probe()
Dpcie-rockchip-ep.c552 &ep->epc->max_functions); in rockchip_pcie_parse_ep_dt()
554 ep->epc->max_functions = 1; in rockchip_pcie_parse_ep_dt()
/Linux-v5.15/drivers/pci/hotplug/
Dcpqphp_pci.c308 int max_functions; in cpqhp_save_config() local
365 max_functions = 8; in cpqhp_save_config()
367 max_functions = 1; in cpqhp_save_config()
432 while ((function < max_functions) && (!stop_it)) { in cpqhp_save_config()
449 } while (function < max_functions); in cpqhp_save_config()
472 int max_functions; in cpqhp_save_slot_config() local
489 max_functions = 8; in cpqhp_save_slot_config()
491 max_functions = 1; in cpqhp_save_slot_config()
493 while (function < max_functions) { in cpqhp_save_slot_config()
522 while ((function < max_functions) && (!stop_it)) { in cpqhp_save_slot_config()
Dcpqphp_ctrl.c2225 u8 temp_byte, function, max_functions, stop_it; in configure_new_device() local
2243 max_functions = 8; in configure_new_device()
2245 max_functions = 1; in configure_new_device()
2273 while ((function < max_functions) && (!stop_it)) { in configure_new_device()
2295 } while (function < max_functions); in configure_new_device()
/Linux-v5.15/drivers/pinctrl/berlin/
Dberlin.c206 int i, max_functions = 0; in berlin_pinctrl_build_state() local
213 max_functions += 1 << (desc_group->bit_width + 1); in berlin_pinctrl_build_state()
217 pctrl->functions = kcalloc(max_functions, in berlin_pinctrl_build_state()
/Linux-v5.15/drivers/pci/controller/cadence/
Dpcie-cadence-ep.c672 if (of_property_read_u8(np, "max-functions", &epc->max_functions) < 0) in cdns_pcie_ep_setup()
673 epc->max_functions = 1; in cdns_pcie_ep_setup()
675 ep->epf = devm_kcalloc(dev, epc->max_functions, sizeof(*ep->epf), in cdns_pcie_ep_setup()
680 epc->max_vfs = devm_kcalloc(dev, epc->max_functions, in cdns_pcie_ep_setup()
686 epc->max_vfs, epc->max_functions); in cdns_pcie_ep_setup()
688 for (i = 0; i < epc->max_functions; i++) { in cdns_pcie_ep_setup()
/Linux-v5.15/drivers/pci/controller/dwc/
Dpcie-designware-ep.c81 funcs = pci->ep.epc->max_functions; in dw_pcie_ep_reset_bar()
749 ret = of_property_read_u8(np, "max-functions", &epc->max_functions); in dw_pcie_ep_init()
751 epc->max_functions = 1; in dw_pcie_ep_init()
753 for (func_no = 0; func_no < epc->max_functions; func_no++) { in dw_pcie_ep_init()
/Linux-v5.15/include/linux/
Dpci-epc.h146 u8 max_functions; member