Home
last modified time | relevance | path

Searched refs:max_regions (Results 1 – 11 of 11) sorted by relevance

/drivers/pci/controller/
Dpcie-rockchip-ep.c43 u32 max_regions; member
256 for (r = 0; r < ep->max_regions; r++) in rockchip_pcie_ep_unmap_addr()
260 if (r == ep->max_regions) in rockchip_pcie_ep_unmap_addr()
483 &ep->max_regions); in rockchip_pcie_parse_ep_dt()
484 if (err < 0 || ep->max_regions > MAX_REGION_LIMIT) in rockchip_pcie_parse_ep_dt()
485 ep->max_regions = MAX_REGION_LIMIT; in rockchip_pcie_parse_ep_dt()
508 size_t max_regions; in rockchip_pcie_ep_probe() local
546 max_regions = ep->max_regions; in rockchip_pcie_ep_probe()
547 ep->ob_addr = devm_kcalloc(dev, max_regions, sizeof(*ep->ob_addr), in rockchip_pcie_ep_probe()
558 windows = devm_kcalloc(dev, ep->max_regions, in rockchip_pcie_ep_probe()
[all …]
/drivers/misc/sgi-xp/
Dxpc_partition.c422 int max_regions; in xpc_discovery() local
448 max_regions = 256; in xpc_discovery()
450 max_regions = 64; in xpc_discovery()
454 max_regions *= 2; in xpc_discovery()
457 max_regions *= 2; in xpc_discovery()
460 max_regions *= 2; in xpc_discovery()
465 for (region = 0; region < max_regions; region++) { in xpc_discovery()
/drivers/pci/controller/cadence/
Dpcie-cadence-ep.c191 if (r >= ep->max_regions - 1) { in cdns_pcie_ep_map_addr()
212 for (r = 0; r < ep->max_regions - 1; r++) in cdns_pcie_ep_unmap_addr()
216 if (r == ep->max_regions - 1) in cdns_pcie_ep_unmap_addr()
651 ep->max_regions = CDNS_PCIE_MAX_OB; in cdns_pcie_ep_setup()
652 of_property_read_u32(np, "cdns,max-outbound-regions", &ep->max_regions); in cdns_pcie_ep_setup()
655 ep->max_regions, sizeof(*ep->ob_addr), in cdns_pcie_ep_setup()
Dpcie-cadence.h363 u32 max_regions; member
/drivers/net/ethernet/mellanox/mlxsw/
Dspectrum_acl_tcam.c61 id = find_first_zero_bit(tcam->used_regions, tcam->max_regions); in mlxsw_sp_acl_tcam_region_id_get()
62 if (id < tcam->max_regions) { in mlxsw_sp_acl_tcam_region_id_get()
1489 u64 max_regions; in mlxsw_sp_acl_tcam_init() local
1500 max_regions = MLXSW_CORE_RES_GET(mlxsw_sp->core, ACL_MAX_REGIONS); in mlxsw_sp_acl_tcam_init()
1503 if (max_tcam_regions < max_regions) in mlxsw_sp_acl_tcam_init()
1504 max_regions = max_tcam_regions; in mlxsw_sp_acl_tcam_init()
1506 tcam->used_regions = bitmap_zalloc(max_regions, GFP_KERNEL); in mlxsw_sp_acl_tcam_init()
1511 tcam->max_regions = max_regions; in mlxsw_sp_acl_tcam_init()
Dspectrum_acl_atcam.c280 u64 max_regions; in mlxsw_sp_acl_atcam_region_associate() local
282 max_regions = MLXSW_CORE_RES_GET(mlxsw_sp->core, ACL_MAX_REGIONS); in mlxsw_sp_acl_atcam_region_associate()
283 if (hw_region >= max_regions) in mlxsw_sp_acl_atcam_region_associate()
Dspectrum2_acl_tcam.c80 tcam->kvdl_count = _tcam->max_regions; in mlxsw_sp2_acl_tcam_init()
Dspectrum_acl_tcam.h16 unsigned int max_regions; member
Dcmd.h724 MLXSW_ITEM32(cmd_mbox, config_profile, max_regions, 0x2C, 0, 16);
Dcore.h290 u16 max_regions; member
Dpci.c1190 mbox, profile->max_regions); in mlxsw_pci_config_profile()