/Linux-v6.1/drivers/iommu/ |
D | ioasid.c | 81 if (xa_alloc(&default_allocator.xa, &id, opaque, XA_LIMIT(min, max), GFP_ATOMIC)) { in default_alloc() 331 xa_alloc(&active_allocator->xa, &id, data, XA_LIMIT(id, id), GFP_ATOMIC)) { in ioasid_alloc()
|
/Linux-v6.1/security/apparmor/ |
D | secid.c | 127 XA_LIMIT(AA_FIRST_SECID, INT_MAX), gfp); in aa_alloc_secid()
|
/Linux-v6.1/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.1/drivers/tty/serial/ |
D | liteuart.c | 256 limit = XA_LIMIT(0, CONFIG_SERIAL_LITEUART_MAX_PORTS); in liteuart_probe() 258 limit = XA_LIMIT(dev_id, dev_id); in liteuart_probe()
|
/Linux-v6.1/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.1/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.1/drivers/net/ethernet/mellanox/mlx5/core/en/tc/ |
D | post_act.c | 139 XA_LIMIT(1, MLX5_POST_ACTION_MAX), GFP_KERNEL); in mlx5e_tc_post_act_add()
|
/Linux-v6.1/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.1/drivers/dma-buf/ |
D | dma-heap.c | 246 XA_LIMIT(0, NUM_HEAP_MINORS - 1), GFP_KERNEL); in dma_heap_add()
|
/Linux-v6.1/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.1/drivers/platform/x86/intel/pmt/ |
D | class.c | 22 #define PMT_XA_LIMIT XA_LIMIT(PMT_XA_START, PMT_XA_MAX)
|
/Linux-v6.1/drivers/platform/x86/intel/ |
D | vsec.c | 36 #define PMT_XA_LIMIT XA_LIMIT(PMT_XA_START, PMT_XA_MAX)
|
/Linux-v6.1/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()
|
D | arm-smmu-v3.c | 2094 XA_LIMIT(1, (1 << smmu->asid_bits) - 1), GFP_KERNEL); in arm_smmu_domain_finalise_s1()
|
/Linux-v6.1/fs/cachefiles/ |
D | ondemand.c | 198 XA_LIMIT(1, INT_MAX), in cachefiles_ondemand_get_fd()
|
/Linux-v6.1/drivers/iommu/intel/ |
D | svm.c | 38 XA_LIMIT(pasid, pasid), GFP_ATOMIC); in pasid_private_add()
|
/Linux-v6.1/drivers/infiniband/hw/erdma/ |
D | erdma_verbs.c | 696 XA_LIMIT(1, dev->attrs.max_qp - 1), in erdma_create_qp() 1386 XA_LIMIT(1, dev->attrs.max_cq - 1), in erdma_create_cq()
|
/Linux-v6.1/net/qrtr/ |
D | af_qrtr.c | 24 XA_LIMIT(QRTR_MIN_EPH_SOCKET, QRTR_MAX_EPH_SOCKET)
|
/Linux-v6.1/drivers/net/ethernet/mellanox/mlx5/core/en_accel/ |
D | macsec.c | 741 XA_LIMIT(1, MLX5_MACEC_RX_FS_ID_MAX), GFP_KERNEL); in mlx5e_macsec_add_rxsc()
|
/Linux-v6.1/drivers/opp/ |
D | core.c | 2539 ret = xa_alloc(&opp_configs, &id, data, XA_LIMIT(1, INT_MAX), in dev_pm_opp_set_config()
|
/Linux-v6.1/drivers/infiniband/core/ |
D | mad.c | 418 mad_agent_priv, XA_LIMIT(0, (1 << 24) - 1), in ib_register_mad_agent()
|
/Linux-v6.1/drivers/target/ |
D | target_core_user.c | 1075 if (xa_alloc(&udev->commands, &cmd_id, tcmu_cmd, XA_LIMIT(1, 0xffff), in queue_cmd_ring()
|
/Linux-v6.1/io_uring/ |
D | io_uring.c | 3659 XA_LIMIT(0, USHRT_MAX), &ctx->pers_next, GFP_KERNEL); in io_register_personality()
|