/Linux-v6.6/security/apparmor/ |
D | secid.c | 126 XA_LIMIT(AA_FIRST_SECID, INT_MAX), gfp); in aa_alloc_secid()
|
/Linux-v6.6/drivers/gpu/drm/tegra/ |
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()
|
/Linux-v6.6/drivers/infiniband/sw/siw/ |
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()
|
/Linux-v6.6/drivers/tty/serial/ |
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()
|
/Linux-v6.6/include/linux/ |
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)
|
/Linux-v6.6/drivers/net/ethernet/mellanox/mlx5/core/en/tc/ |
D | post_act.c | 132 XA_LIMIT(1, MLX5_POST_ACTION_MAX), GFP_KERNEL); in mlx5e_tc_post_act_add()
|
/Linux-v6.6/lib/ |
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()
|
/Linux-v6.6/drivers/dma-buf/ |
D | dma-heap.c | 246 XA_LIMIT(0, NUM_HEAP_MINORS - 1), GFP_KERNEL); in dma_heap_add()
|
/Linux-v6.6/drivers/net/ethernet/mellanox/mlx5/core/en/ |
D | mapping.c | 64 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/ |
D | ice_idc.c | 378 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/ |
D | ipsec_fs.c | 207 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/ |
D | class.c | 22 #define PMT_XA_LIMIT XA_LIMIT(PMT_XA_START, PMT_XA_MAX)
|
/Linux-v6.6/drivers/cdx/ |
D | cdx.c | 524 XA_LIMIT(0, MAX_CDX_CONTROLLERS - 1), GFP_KERNEL); in cdx_register_controller()
|
/Linux-v6.6/drivers/platform/x86/intel/ |
D | vsec.c | 36 #define PMT_XA_LIMIT XA_LIMIT(PMT_XA_START, PMT_XA_MAX)
|
/Linux-v6.6/fs/cachefiles/ |
D | ondemand.c | 198 XA_LIMIT(1, INT_MAX), in cachefiles_ondemand_get_fd()
|
/Linux-v6.6/drivers/iommu/arm/arm-smmu-v3/ |
D | arm-smmu-v3-sva.c | 69 XA_LIMIT(1, (1 << smmu->asid_bits) - 1), GFP_KERNEL); in arm_smmu_share_asid()
|
/Linux-v6.6/drivers/net/ethernet/netronome/nfp/crypto/ |
D | ipsec.c | 488 XA_LIMIT(0, NFP_NET_IPSEC_MAX_SA_CNT - 1), GFP_KERNEL); in nfp_net_xfrm_add_state()
|
/Linux-v6.6/drivers/target/ |
D | target_core_tpg.c | 459 XA_LIMIT(1, USHRT_MAX), GFP_KERNEL); in target_tpg_register_rtpi()
|
/Linux-v6.6/drivers/iommu/intel/ |
D | svm.c | 34 XA_LIMIT(pasid, pasid), GFP_ATOMIC); in pasid_private_add()
|
/Linux-v6.6/drivers/infiniband/hw/erdma/ |
D | erdma_verbs.c | 948 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/ |
D | af_qrtr.c | 24 XA_LIMIT(QRTR_MIN_EPH_SOCKET, QRTR_MAX_EPH_SOCKET)
|
/Linux-v6.6/fs/ |
D | libfs.c | 278 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/ |
D | macsec.c | 694 XA_LIMIT(1, MLX5_MACEC_RX_FS_ID_MAX), GFP_KERNEL); in mlx5e_macsec_add_rxsc()
|
/Linux-v6.6/drivers/opp/ |
D | core.c | 2630 ret = xa_alloc(&opp_configs, &id, data, XA_LIMIT(1, INT_MAX), in dev_pm_opp_set_config()
|
/Linux-v6.6/drivers/infiniband/core/ |
D | mad.c | 413 mad_agent_priv, XA_LIMIT(0, (1 << 24) - 1), in ib_register_mad_agent()
|