/openbmc/linux/security/apparmor/ |
H A D | secid.c | 126 XA_LIMIT(AA_FIRST_SECID, INT_MAX), gfp); in aa_alloc_secid()
|
/openbmc/linux/drivers/gpu/drm/tegra/ |
H A D | uapi.c | 135 err = xa_alloc(&fpriv->contexts, &args->context, context, XA_LIMIT(1, U32_MAX), in tegra_drm_ioctl_channel_open() 252 err = xa_alloc(&context->mappings, &args->mapping, mapping, XA_LIMIT(1, U32_MAX), in tegra_drm_ioctl_channel_map()
|
/openbmc/linux/drivers/gpu/drm/ |
H A D | drm_drv.c | 134 _t == DRM_MINOR_ACCEL ? XA_LIMIT(0, ACCEL_MAX_MINORS) : XA_LIMIT(64 * _t, 64 * _t + 63); \ 136 #define DRM_EXTENDED_MINOR_LIMIT XA_LIMIT(192, (1 << MINORBITS) - 1)
|
/openbmc/linux/drivers/tty/serial/ |
H A D | liteuart.c | 307 limit = XA_LIMIT(0, CONFIG_SERIAL_LITEUART_MAX_PORTS); in liteuart_probe() 309 limit = XA_LIMIT(dev_id, dev_id); in liteuart_probe()
|
/openbmc/linux/drivers/infiniband/sw/siw/ |
H A D | siw_mem.c | 23 struct xa_limit limit = XA_LIMIT(1, 0x00ffffff); in siw_mem_add() 94 struct xa_limit limit = XA_LIMIT(1, 0x00ffffff); in siw_mr_add_mem()
|
/openbmc/linux/include/linux/ |
H A D | xarray.h | 244 #define XA_LIMIT(_min, _max) (struct xa_limit) { .min = _min, .max = _max } macro 246 #define xa_limit_32b XA_LIMIT(0, UINT_MAX) 247 #define xa_limit_31b XA_LIMIT(0, INT_MAX) 248 #define xa_limit_16b XA_LIMIT(0, USHRT_MAX)
|
/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/esw/ |
H A D | ipsec_fs.c | 55 XA_LIMIT(1, ESW_IPSEC_RX_MAPPED_ID_MASK), 0); in mlx5_esw_ipsec_rx_setup_modify_header()
|
/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/en/tc/ |
H A D | post_act.c | 138 XA_LIMIT(1, MLX5_POST_ACTION_MAX), GFP_KERNEL); in mlx5e_tc_post_act_add()
|
/openbmc/linux/lib/ |
H A D | test_xarray.c | 480 XA_LIMIT(5, 10), GFP_KERNEL) != 0); in check_reserve() 485 XA_LIMIT(5, 10), GFP_KERNEL) != 0); in check_reserve() 729 XA_LIMIT(UINT_MAX - 1, UINT_MAX), in check_xa_alloc_1() 733 XA_LIMIT(UINT_MAX - 1, UINT_MAX), in check_xa_alloc_1() 738 XA_LIMIT(UINT_MAX - 1, UINT_MAX), in check_xa_alloc_1() 743 XA_BUG_ON(xa, xa_alloc(xa, &id, xa_mk_index(10), XA_LIMIT(10, 5), in check_xa_alloc_1() 746 XA_BUG_ON(xa, xa_alloc(xa, &id, xa_mk_index(10), XA_LIMIT(10, 5), in check_xa_alloc_1() 805 struct xa_limit limit = XA_LIMIT(1, 0x3fff); in check_xa_alloc_3()
|
/openbmc/linux/drivers/dma-buf/ |
H A D | dma-heap.c | 246 XA_LIMIT(0, NUM_HEAP_MINORS - 1), GFP_KERNEL); in dma_heap_add()
|
/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/en/ |
H A D | mapping.c | 64 err = xa_alloc(&ctx->xarray, &mi->id, mi, XA_LIMIT(1, ctx->max_id), in mapping_add()
|
/openbmc/linux/drivers/net/ethernet/intel/ice/ |
H A D | ice_idc.c | 378 ret = xa_alloc(&ice_aux_id, &pf->aux_idx, NULL, XA_LIMIT(1, INT_MAX), in ice_init_rdma()
|
/openbmc/linux/drivers/platform/x86/intel/pmt/ |
H A D | class.c | 22 #define PMT_XA_LIMIT XA_LIMIT(PMT_XA_START, PMT_XA_MAX)
|
/openbmc/linux/drivers/cdx/ |
H A D | cdx.c | 524 XA_LIMIT(0, MAX_CDX_CONTROLLERS - 1), GFP_KERNEL); in cdx_register_controller()
|
/openbmc/linux/drivers/platform/x86/intel/ |
H A D | vsec.c | 36 #define PMT_XA_LIMIT XA_LIMIT(PMT_XA_START, PMT_XA_MAX)
|
/openbmc/linux/drivers/iommu/arm/arm-smmu-v3/ |
H A D | arm-smmu-v3-sva.c | 69 XA_LIMIT(1, (1 << smmu->asid_bits) - 1), GFP_KERNEL); in arm_smmu_share_asid()
|
/openbmc/linux/drivers/net/ethernet/netronome/nfp/crypto/ |
H A D | ipsec.c | 488 XA_LIMIT(0, NFP_NET_IPSEC_MAX_SA_CNT - 1), GFP_KERNEL); in nfp_net_xfrm_add_state()
|
/openbmc/linux/drivers/target/ |
H A D | target_core_tpg.c | 459 XA_LIMIT(1, USHRT_MAX), GFP_KERNEL); in target_tpg_register_rtpi()
|
/openbmc/linux/fs/cachefiles/ |
H A D | ondemand.c | 290 XA_LIMIT(1, INT_MAX), in cachefiles_ondemand_get_fd()
|
/openbmc/linux/drivers/iommu/intel/ |
H A D | svm.c | 34 XA_LIMIT(pasid, pasid), GFP_ATOMIC); in pasid_private_add()
|
/openbmc/linux/drivers/infiniband/hw/erdma/ |
H A D | erdma_verbs.c | 948 XA_LIMIT(1, dev->attrs.max_qp - 1), in erdma_create_qp() 1660 XA_LIMIT(1, dev->attrs.max_cq - 1), in erdma_create_cq()
|
/openbmc/linux/net/qrtr/ |
H A D | af_qrtr.c | 24 XA_LIMIT(QRTR_MIN_EPH_SOCKET, QRTR_MAX_EPH_SOCKET)
|
/openbmc/linux/fs/ |
H A D | libfs.c | 278 static const struct xa_limit limit = XA_LIMIT(2, U32_MAX); in simple_offset_add()
|
/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/en_accel/ |
H A D | macsec.c | 713 XA_LIMIT(1, MLX5_MACEC_RX_FS_ID_MAX), GFP_KERNEL); in mlx5e_macsec_add_rxsc()
|
/openbmc/linux/drivers/opp/ |
H A D | core.c | 2630 ret = xa_alloc(&opp_configs, &id, data, XA_LIMIT(1, INT_MAX), in dev_pm_opp_set_config()
|