Home
last modified time | relevance | path

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

/linux-6.14.4/drivers/net/ethernet/mellanox/mlx5/core/sf/dev/
Ddev.c162 u16 max_functions; in mlx5_sf_dev_state_change_handler() local
166 max_functions = mlx5_sf_max_functions(table->dev); in mlx5_sf_dev_state_change_handler()
167 if (!max_functions) in mlx5_sf_dev_state_change_handler()
171 if (event->function_id < base_id || event->function_id >= (base_id + max_functions)) in mlx5_sf_dev_state_change_handler()
204 u16 max_functions; in mlx5_sf_dev_vhca_arm_all() local
209 max_functions = mlx5_sf_max_functions(dev); in mlx5_sf_dev_vhca_arm_all()
212 for (i = 0; i < max_functions; i++) { in mlx5_sf_dev_vhca_arm_all()
255 u16 max_functions; in mlx5_sf_dev_queue_active_works() local
263 max_functions = mlx5_sf_max_functions(dev); in mlx5_sf_dev_queue_active_works()
265 for (i = 0; i < max_functions; i++, function_id++) { in mlx5_sf_dev_queue_active_works()
/linux-6.14.4/drivers/pci/controller/
Dpcie-rcar-ep.c26 u8 max_functions; member
152 &ep->max_functions); in rcar_pcie_ep_get_pdata()
153 if (err < 0 || ep->max_functions > RCAR_EPC_MAX_FUNCTIONS) in rcar_pcie_ep_get_pdata()
154 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.c744 &ep->epc->max_functions); in rockchip_pcie_ep_get_resources()
746 ep->epc->max_functions = 1; in rockchip_pcie_ep_get_resources()
/linux-6.14.4/drivers/pci/hotplug/
Dcpqphp_pci.c301 int max_functions; in cpqhp_save_config() local
358 max_functions = 8; in cpqhp_save_config()
360 max_functions = 1; in cpqhp_save_config()
425 while ((function < max_functions) && (!stop_it)) { in cpqhp_save_config()
442 } while (function < max_functions); in cpqhp_save_config()
465 int max_functions; in cpqhp_save_slot_config() local
482 max_functions = 8; in cpqhp_save_slot_config()
484 max_functions = 1; in cpqhp_save_slot_config()
486 while (function < max_functions) { in cpqhp_save_slot_config()
515 while ((function < max_functions) && (!stop_it)) { in cpqhp_save_slot_config()
Dcpqphp_ctrl.c2213 u8 temp_byte, function, max_functions, stop_it; in configure_new_device() local
2231 max_functions = 8; in configure_new_device()
2233 max_functions = 1; in configure_new_device()
2261 while ((function < max_functions) && (!stop_it)) { in configure_new_device()
2283 } while (function < max_functions); in configure_new_device()
/linux-6.14.4/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, sizeof(*pctrl->functions), GFP_KERNEL); in berlin_pinctrl_build_state()
/linux-6.14.4/drivers/pci/controller/cadence/
Dpcie-cadence-ep.c695 if (of_property_read_u8(np, "max-functions", &epc->max_functions) < 0) in cdns_pcie_ep_setup()
696 epc->max_functions = 1; in cdns_pcie_ep_setup()
698 ep->epf = devm_kcalloc(dev, epc->max_functions, sizeof(*ep->epf), in cdns_pcie_ep_setup()
703 epc->max_vfs = devm_kcalloc(dev, epc->max_functions, in cdns_pcie_ep_setup()
709 epc->max_vfs, epc->max_functions); in cdns_pcie_ep_setup()
711 for (i = 0; i < epc->max_functions; i++) { in cdns_pcie_ep_setup()
/linux-6.14.4/drivers/pci/controller/dwc/
Dpcie-designware-ep.c65 funcs = pci->ep.epc->max_functions; in dw_pcie_ep_reset_bar()
799 for (func_no = 0; func_no < epc->max_functions; func_no++) { in dw_pcie_ep_init_registers()
931 ret = of_property_read_u8(np, "max-functions", &epc->max_functions); in dw_pcie_ep_init()
933 epc->max_functions = 1; in dw_pcie_ep_init()
/linux-6.14.4/include/linux/
Dpci-epc.h177 u8 max_functions; member
/linux-6.14.4/drivers/pci/endpoint/
Dpci-epc-core.c125 if (IS_ERR_OR_NULL(epc) || func_no >= epc->max_functions) in pci_epc_function_is_valid()
707 if (func_no > epc->max_functions - 1) { in pci_epc_add_epf()