Home
last modified time | relevance | path

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

/openbmc/linux/drivers/vfio/pci/pds/
H A Ddirty.c35 u8 max_regions) in pds_vfio_print_guest_region_info() argument
45 region_info = kcalloc(max_regions, in pds_vfio_print_guest_region_info()
188 u8 max_regions = 0, num_regions; in pds_vfio_dirty_enable() local
202 err = pds_vfio_dirty_status_cmd(pds_vfio, 0, &max_regions, in pds_vfio_dirty_enable()
213 } else if (!max_regions) { in pds_vfio_dirty_enable()
216 max_regions); in pds_vfio_dirty_enable()
229 max_regions = 1; in pds_vfio_dirty_enable()
230 if (num_ranges > max_regions) { in pds_vfio_dirty_enable()
231 vfio_combine_iova_ranges(ranges, nnodes, max_regions); in pds_vfio_dirty_enable()
232 num_ranges = max_regions; in pds_vfio_dirty_enable()
[all …]
H A Dcmds.c388 u64 regions_dma, u8 *max_regions, u8 *num_regions) in pds_vfio_dirty_status_cmd() argument
403 cmd.lm_dirty_status.max_regions = *max_regions; in pds_vfio_dirty_status_cmd()
419 *max_regions = comp.lm_dirty_status.max_regions; in pds_vfio_dirty_status_cmd()
423 *max_regions, *num_regions, "PDS_LM_DIRTY_BMP_TYPE_SEQ_ACK"); in pds_vfio_dirty_status_cmd()
H A Dcmds.h17 u64 regions_dma, u8 *max_regions,
/openbmc/u-boot/lib/libfdt/
H A Dfdt_region.c32 struct fdt_region region[], int max_regions, in fdt_find_regions() argument
116 if (count && count <= max_regions && in fdt_find_regions()
125 if (count < max_regions) { in fdt_find_regions()
138 if (count < max_regions) { in fdt_find_regions()
165 info->count <= info->max_regions && in fdt_add_region()
168 } else if (info->count++ < info->max_regions) { in fdt_add_region()
221 int max_regions, struct fdt_region_state *info) in fdt_add_alias_regions() argument
247 info->max_regions = max_regions; in fdt_add_alias_regions()
276 return info->count < max_regions ? info->count : -FDT_ERR_NOSPACE; in fdt_add_alias_regions()
351 info->max_regions = 1; in fdt_first_region()
/openbmc/linux/drivers/pci/controller/
H A Dpcie-rockchip-ep.c43 u32 max_regions; member
254 for (r = 0; r < ep->max_regions; r++) in rockchip_pcie_ep_unmap_addr()
258 if (r == ep->max_regions) in rockchip_pcie_ep_unmap_addr()
481 &ep->max_regions); in rockchip_pcie_parse_ep_dt()
482 if (err < 0 || ep->max_regions > MAX_REGION_LIMIT) in rockchip_pcie_parse_ep_dt()
483 ep->max_regions = MAX_REGION_LIMIT; in rockchip_pcie_parse_ep_dt()
506 size_t max_regions; in rockchip_pcie_ep_probe() local
544 max_regions = ep->max_regions; in rockchip_pcie_ep_probe()
556 windows = devm_kcalloc(dev, ep->max_regions, in rockchip_pcie_ep_probe()
562 for (i = 0; i < ep->max_regions; i++) { in rockchip_pcie_ep_probe()
[all …]
/openbmc/u-boot/include/linux/
H A Dlibfdt.h83 int max_regions; /* Maximum regions to find */ member
145 struct fdt_region region[], int max_regions,
307 int max_regions, struct fdt_region_state *info);
/openbmc/linux/drivers/misc/sgi-xp/
H A 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()
/openbmc/linux/arch/arm/mm/
H A Dpmsa-v8.c128 static int max_regions; in __mpu_max_regions() local
131 if (max_regions) in __mpu_max_regions()
132 return max_regions; in __mpu_max_regions()
136 max_regions = (mpuir & MPUIR_DREGION_SZMASK) >> MPUIR_DREGION; in __mpu_max_regions()
138 return max_regions; in __mpu_max_regions()
/openbmc/u-boot/common/
H A Dimage-sig.c391 int max_regions; in fit_config_check_sig() local
457 max_regions = 20 + count * 7; in fit_config_check_sig()
458 struct fdt_region fdt_regions[max_regions]; in fit_config_check_sig()
463 fdt_regions, max_regions - 1, in fit_config_check_sig()
473 if (count >= max_regions - 1) { in fit_config_check_sig()
/openbmc/u-boot/tools/
H A Dfdtgrep.c654 int max_regions, char *path, int path_len, int flags) in fdtgrep_find_regions() argument
666 count < max_regions ? &region[count] : NULL, in fdtgrep_find_regions()
675 if (disp->add_aliases && count < max_regions) { in fdtgrep_find_regions()
679 max_regions, &state); in fdtgrep_find_regions()
684 } else if (new_count <= max_regions) { in fdtgrep_find_regions()
780 int max_regions; in do_fdtgrep() local
814 max_regions = count; in do_fdtgrep()
817 region, max_regions, path, sizeof(path), in do_fdtgrep()
824 if (count <= max_regions) in do_fdtgrep()
/openbmc/linux/drivers/pci/controller/cadence/
H A 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()
667 ep->max_regions = CDNS_PCIE_MAX_OB; in cdns_pcie_ep_setup()
668 of_property_read_u32(np, "cdns,max-outbound-regions", &ep->max_regions); in cdns_pcie_ep_setup()
671 ep->max_regions, sizeof(*ep->ob_addr), in cdns_pcie_ep_setup()
H A Dpcie-cadence.h369 u32 max_regions; member
/openbmc/linux/drivers/net/ethernet/mellanox/mlxsw/
H A Dspectrum2_acl_tcam.c84 tcam->kvdl_count = _tcam->max_regions; in mlxsw_sp2_acl_tcam_init()
110 for (i = 0; i < _tcam->max_regions; i++) { in mlxsw_sp2_acl_tcam_init()
H A 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()
H A Dspectrum_acl_tcam.c64 id = ida_alloc_max(&tcam->used_regions, tcam->max_regions - 1, in mlxsw_sp_acl_tcam_region_id_get()
1570 u64 max_regions; in mlxsw_sp_acl_tcam_init() local
1585 max_regions = MLXSW_CORE_RES_GET(mlxsw_sp->core, ACL_MAX_REGIONS); in mlxsw_sp_acl_tcam_init()
1588 if (max_tcam_regions < max_regions) in mlxsw_sp_acl_tcam_init()
1589 max_regions = max_tcam_regions; in mlxsw_sp_acl_tcam_init()
1592 tcam->max_regions = max_regions; in mlxsw_sp_acl_tcam_init()
H A Dspectrum_acl_tcam.h17 unsigned int max_regions; member
H A Dcmd.h742 MLXSW_ITEM32(cmd_mbox, config_profile, max_regions, 0x2C, 0, 16);
H A Dcore.h320 u16 max_regions; member
H A Dpci.c1227 mbox, profile->max_regions); in mlxsw_pci_config_profile()
/openbmc/linux/include/linux/pds/
H A Dpds_adminq.h1037 u8 max_regions; member
1071 u8 max_regions; member
/openbmc/linux/fs/ocfs2/cluster/
H A Dheartbeat.c2510 int o2hb_get_all_regions(char *region_uuids, u8 max_regions) in o2hb_get_all_regions() argument
2524 if (numregs < max_regions) { in o2hb_get_all_regions()