Searched refs:max_functions (Results 1 – 10 of 10) sorted by relevance
/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/sf/dev/ |
H A D | dev.c | 162 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() 206 u16 max_functions; in mlx5_sf_dev_vhca_arm_all() local 211 max_functions = mlx5_sf_max_functions(dev); in mlx5_sf_dev_vhca_arm_all() 214 for (i = 0; i < max_functions; i++) { in mlx5_sf_dev_vhca_arm_all() 229 u16 max_functions; in mlx5_sf_dev_add_active_work() local 236 max_functions = mlx5_sf_max_functions(dev); in mlx5_sf_dev_add_active_work() 238 for (i = 0; i < max_functions; i++, function_id++) { in mlx5_sf_dev_add_active_work()
|
/openbmc/linux/drivers/pci/endpoint/ |
H A D | pci-epc-core.c | 151 if (IS_ERR_OR_NULL(epc) || func_no >= epc->max_functions) in pci_epc_get_features() 224 if (IS_ERR_OR_NULL(epc) || func_no >= epc->max_functions) in pci_epc_raise_irq() 299 if (IS_ERR_OR_NULL(epc) || func_no >= epc->max_functions) in pci_epc_get_msi() 335 if (IS_ERR_OR_NULL(epc) || func_no >= epc->max_functions || in pci_epc_set_msi() 367 if (IS_ERR_OR_NULL(epc) || func_no >= epc->max_functions) in pci_epc_get_msix() 403 if (IS_ERR_OR_NULL(epc) || func_no >= epc->max_functions || in pci_epc_set_msix() 434 if (IS_ERR_OR_NULL(epc) || func_no >= epc->max_functions) in pci_epc_unmap_addr() 465 if (IS_ERR_OR_NULL(epc) || func_no >= epc->max_functions) in pci_epc_map_addr() 495 if (IS_ERR_OR_NULL(epc) || func_no >= epc->max_functions || in pci_epc_clear_bar() 527 if (IS_ERR_OR_NULL(epc) || func_no >= epc->max_functions || in pci_epc_set_bar() [all …]
|
/openbmc/linux/drivers/pci/controller/ |
H A D | pcie-rcar-ep.c | 26 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() 531 epc->max_functions = ep->max_functions; in rcar_pcie_ep_probe()
|
H A D | pcie-rockchip-ep.c | 498 &ep->epc->max_functions); in rockchip_pcie_parse_ep_dt() 500 ep->epc->max_functions = 1; in rockchip_pcie_parse_ep_dt()
|
/openbmc/linux/drivers/pci/hotplug/ |
H A D | cpqphp_pci.c | 315 int max_functions; in cpqhp_save_config() local 372 max_functions = 8; in cpqhp_save_config() 374 max_functions = 1; in cpqhp_save_config() 439 while ((function < max_functions) && (!stop_it)) { in cpqhp_save_config() 456 } while (function < max_functions); in cpqhp_save_config() 479 int max_functions; in cpqhp_save_slot_config() local 496 max_functions = 8; in cpqhp_save_slot_config() 498 max_functions = 1; in cpqhp_save_slot_config() 500 while (function < max_functions) { in cpqhp_save_slot_config() 529 while ((function < max_functions) && (!stop_it)) { in cpqhp_save_slot_config()
|
H A D | cpqphp_ctrl.c | 2213 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()
|
/openbmc/linux/drivers/pinctrl/berlin/ |
H A D | berlin.c | 206 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()
|
/openbmc/linux/drivers/pci/controller/cadence/ |
H A D | pcie-cadence-ep.c | 687 if (of_property_read_u8(np, "max-functions", &epc->max_functions) < 0) in cdns_pcie_ep_setup() 688 epc->max_functions = 1; in cdns_pcie_ep_setup() 690 ep->epf = devm_kcalloc(dev, epc->max_functions, sizeof(*ep->epf), in cdns_pcie_ep_setup() 695 epc->max_vfs = devm_kcalloc(dev, epc->max_functions, in cdns_pcie_ep_setup() 701 epc->max_vfs, epc->max_functions); in cdns_pcie_ep_setup() 703 for (i = 0; i < epc->max_functions; i++) { in cdns_pcie_ep_setup()
|
/openbmc/linux/drivers/pci/controller/dwc/ |
H A D | pcie-designware-ep.c | 80 funcs = pci->ep.epc->max_functions; in dw_pcie_ep_reset_bar() 769 ret = of_property_read_u8(np, "max-functions", &epc->max_functions); in dw_pcie_ep_init() 771 epc->max_functions = 1; in dw_pcie_ep_init() 773 for (func_no = 0; func_no < epc->max_functions; func_no++) { in dw_pcie_ep_init()
|
/openbmc/linux/include/linux/ |
H A D | pci-epc.h | 147 u8 max_functions; member
|