Home
last modified time | relevance | path

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

12

/Linux-v6.6/security/apparmor/
Dsecid.c126 XA_LIMIT(AA_FIRST_SECID, INT_MAX), gfp); in aa_alloc_secid()
/Linux-v6.6/drivers/gpu/drm/tegra/
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()
/Linux-v6.6/drivers/infiniband/sw/siw/
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()
/Linux-v6.6/drivers/tty/serial/
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()
/Linux-v6.6/include/linux/
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)
/Linux-v6.6/drivers/net/ethernet/mellanox/mlx5/core/en/tc/
Dpost_act.c132 XA_LIMIT(1, MLX5_POST_ACTION_MAX), GFP_KERNEL); in mlx5e_tc_post_act_add()
/Linux-v6.6/lib/
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()
/Linux-v6.6/drivers/dma-buf/
Ddma-heap.c246 XA_LIMIT(0, NUM_HEAP_MINORS - 1), GFP_KERNEL); in dma_heap_add()
/Linux-v6.6/drivers/net/ethernet/mellanox/mlx5/core/en/
Dmapping.c64 err = xa_alloc(&ctx->xarray, &mi->id, mi, XA_LIMIT(1, ctx->max_id), in mapping_add()
/Linux-v6.6/drivers/net/ethernet/intel/ice/
Dice_idc.c378 ret = xa_alloc(&ice_aux_id, &pf->aux_idx, NULL, XA_LIMIT(1, INT_MAX), in ice_init_rdma()
/Linux-v6.6/drivers/net/ethernet/mellanox/mlx5/core/esw/
Dipsec_fs.c207 XA_LIMIT(1, ESW_IPSEC_RX_MAPPED_ID_MASK), 0); in mlx5_esw_ipsec_rx_setup_modify_header()
/Linux-v6.6/drivers/platform/x86/intel/pmt/
Dclass.c22 #define PMT_XA_LIMIT XA_LIMIT(PMT_XA_START, PMT_XA_MAX)
/Linux-v6.6/drivers/cdx/
Dcdx.c524 XA_LIMIT(0, MAX_CDX_CONTROLLERS - 1), GFP_KERNEL); in cdx_register_controller()
/Linux-v6.6/drivers/platform/x86/intel/
Dvsec.c36 #define PMT_XA_LIMIT XA_LIMIT(PMT_XA_START, PMT_XA_MAX)
/Linux-v6.6/fs/cachefiles/
Dondemand.c198 XA_LIMIT(1, INT_MAX), in cachefiles_ondemand_get_fd()
/Linux-v6.6/drivers/iommu/arm/arm-smmu-v3/
Darm-smmu-v3-sva.c69 XA_LIMIT(1, (1 << smmu->asid_bits) - 1), GFP_KERNEL); in arm_smmu_share_asid()
/Linux-v6.6/drivers/net/ethernet/netronome/nfp/crypto/
Dipsec.c488 XA_LIMIT(0, NFP_NET_IPSEC_MAX_SA_CNT - 1), GFP_KERNEL); in nfp_net_xfrm_add_state()
/Linux-v6.6/drivers/target/
Dtarget_core_tpg.c459 XA_LIMIT(1, USHRT_MAX), GFP_KERNEL); in target_tpg_register_rtpi()
/Linux-v6.6/drivers/iommu/intel/
Dsvm.c34 XA_LIMIT(pasid, pasid), GFP_ATOMIC); in pasid_private_add()
/Linux-v6.6/drivers/infiniband/hw/erdma/
Derdma_verbs.c948 XA_LIMIT(1, dev->attrs.max_qp - 1), in erdma_create_qp()
1637 XA_LIMIT(1, dev->attrs.max_cq - 1), in erdma_create_cq()
/Linux-v6.6/net/qrtr/
Daf_qrtr.c24 XA_LIMIT(QRTR_MIN_EPH_SOCKET, QRTR_MAX_EPH_SOCKET)
/Linux-v6.6/fs/
Dlibfs.c278 static const struct xa_limit limit = XA_LIMIT(2, U32_MAX); in simple_offset_add()
/Linux-v6.6/drivers/net/ethernet/mellanox/mlx5/core/en_accel/
Dmacsec.c694 XA_LIMIT(1, MLX5_MACEC_RX_FS_ID_MAX), GFP_KERNEL); in mlx5e_macsec_add_rxsc()
/Linux-v6.6/drivers/opp/
Dcore.c2630 ret = xa_alloc(&opp_configs, &id, data, XA_LIMIT(1, INT_MAX), in dev_pm_opp_set_config()
/Linux-v6.6/drivers/infiniband/core/
Dmad.c413 mad_agent_priv, XA_LIMIT(0, (1 << 24) - 1), in ib_register_mad_agent()

12