Home
last modified time | relevance | path

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

/linux/drivers/net/ethernet/mellanox/mlx5/core/sf/dev/
H A Ddev.c163 u16 max_functions; in mlx5_sf_dev_state_change_handler() local
170 max_functions = mlx5_sf_max_functions(dev); in mlx5_sf_dev_state_change_handler()
171 if (!max_functions) in mlx5_sf_dev_state_change_handler()
175 if (event->function_id < base_id || event->function_id >= (base_id + max_functions)) in mlx5_sf_dev_state_change_handler()
208 u16 max_functions; in mlx5_sf_dev_vhca_arm_all() local
213 max_functions = mlx5_sf_max_functions(dev); in mlx5_sf_dev_vhca_arm_all()
216 for (i = 0; i < max_functions; i++) { in mlx5_sf_dev_vhca_arm_all()
259 u16 max_functions; in mlx5_sf_dev_queue_active_works() local
267 max_functions = mlx5_sf_max_functions(dev); in mlx5_sf_dev_queue_active_works()
269 for (i = 0; i < max_functions; i++, function_id++) { in mlx5_sf_dev_queue_active_works()
/linux/drivers/pci/hotplug/
H A 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()
H A 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/drivers/pinctrl/berlin/
H A Dberlin.c206 int i, max_functions = 0; in berlin_pinctrl_build_state() local
214 max_functions += 1 << (desc_group->bit_width + 1); in berlin_pinctrl_build_state()
218 pctrl->functions = kzalloc_objs(*pctrl->functions, max_functions); in berlin_pinctrl_build_state()
/linux/include/linux/
H A Dpci-epc.h226 u8 max_functions; member
/linux/drivers/pci/controller/
H A Dpcie-rockchip-ep.c745 &ep->epc->max_functions); in rockchip_pcie_ep_get_resources()
747 ep->epc->max_functions = 1; in rockchip_pcie_ep_get_resources()
/linux/drivers/pci/endpoint/
H A Dpci-epc-core.c119 if (IS_ERR_OR_NULL(epc) || func_no >= epc->max_functions) in pci_epc_function_is_valid()
814 if (func_no > epc->max_functions - 1) { in pci_epc_add_epf()