Home
last modified time | relevance | path

Searched refs:XA_LIMIT (Results 1 – 25 of 30) sorted by relevance

12

/openbmc/linux/security/apparmor/
H A Dsecid.c126 XA_LIMIT(AA_FIRST_SECID, INT_MAX), gfp); in aa_alloc_secid()
/openbmc/linux/drivers/gpu/drm/tegra/
H A Duapi.c135 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 Ddrm_drv.c134 _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 Dliteuart.c307 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 Dsiw_mem.c23 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 Dxarray.h244 #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 Dipsec_fs.c55 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 Dpost_act.c138 XA_LIMIT(1, MLX5_POST_ACTION_MAX), GFP_KERNEL); in mlx5e_tc_post_act_add()
/openbmc/linux/lib/
H A Dtest_xarray.c480 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 Ddma-heap.c246 XA_LIMIT(0, NUM_HEAP_MINORS - 1), GFP_KERNEL); in dma_heap_add()
/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/en/
H A Dmapping.c64 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 Dice_idc.c378 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 Dclass.c22 #define PMT_XA_LIMIT XA_LIMIT(PMT_XA_START, PMT_XA_MAX)
/openbmc/linux/drivers/cdx/
H A Dcdx.c524 XA_LIMIT(0, MAX_CDX_CONTROLLERS - 1), GFP_KERNEL); in cdx_register_controller()
/openbmc/linux/drivers/platform/x86/intel/
H A Dvsec.c36 #define PMT_XA_LIMIT XA_LIMIT(PMT_XA_START, PMT_XA_MAX)
/openbmc/linux/drivers/iommu/arm/arm-smmu-v3/
H A Darm-smmu-v3-sva.c69 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 Dipsec.c488 XA_LIMIT(0, NFP_NET_IPSEC_MAX_SA_CNT - 1), GFP_KERNEL); in nfp_net_xfrm_add_state()
/openbmc/linux/drivers/target/
H A Dtarget_core_tpg.c459 XA_LIMIT(1, USHRT_MAX), GFP_KERNEL); in target_tpg_register_rtpi()
/openbmc/linux/fs/cachefiles/
H A Dondemand.c290 XA_LIMIT(1, INT_MAX), in cachefiles_ondemand_get_fd()
/openbmc/linux/drivers/iommu/intel/
H A Dsvm.c34 XA_LIMIT(pasid, pasid), GFP_ATOMIC); in pasid_private_add()
/openbmc/linux/drivers/infiniband/hw/erdma/
H A Derdma_verbs.c948 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 Daf_qrtr.c24 XA_LIMIT(QRTR_MIN_EPH_SOCKET, QRTR_MAX_EPH_SOCKET)
/openbmc/linux/fs/
H A Dlibfs.c278 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 Dmacsec.c713 XA_LIMIT(1, MLX5_MACEC_RX_FS_ID_MAX), GFP_KERNEL); in mlx5e_macsec_add_rxsc()
/openbmc/linux/drivers/opp/
H A Dcore.c2630 ret = xa_alloc(&opp_configs, &id, data, XA_LIMIT(1, INT_MAX), in dev_pm_opp_set_config()

12