Home
last modified time | relevance | path

Searched refs:xa_err (Results 1 – 25 of 57) sorted by relevance

123

/linux-6.6.21/drivers/infiniband/hw/mlx4/
Dcm.c370 if (xa_err(item)) in alloc_rej_tmout()
371 ret = xa_err(item); in alloc_rej_tmout()
392 old, xa_err(old)); in alloc_rej_tmout()
394 return xa_err(old); in alloc_rej_tmout()
414 if (!item || xa_err(item)) { in lookup_rej_tmout_slave()
416 rem_pv_cm_id, xa_err(item)); in lookup_rej_tmout_slave()
417 slave = !item ? -ENOENT : xa_err(item); in lookup_rej_tmout_slave()
/linux-6.6.21/drivers/infiniband/sw/rxe/
Drxe_pool.c192 WARN_ON(xa_err(xa_ret)); in __rxe_cleanup()
255 WARN_ON(xa_err(xa_ret)); in __rxe_finalize()
/linux-6.6.21/arch/arm64/mm/
Dmteswap.c41 return xa_err(ret); in mte_save_tags()
/linux-6.6.21/Documentation/translations/zh_CN/core-api/
Dxarray.rst140 个特殊的值,可以用xa_err()把它变成一个错误值。如果你不需要确切地知道哪个错误发生,使用xa_is_err()
215 err = xa_err(__xa_store(&foo->array, index, entry, GFP_KERNEL));
/linux-6.6.21/include/linux/
Dxarray.h219 static inline int xa_err(void *entry) in xa_err() function
1078 return xa_err(xa_cmpxchg(xa, index, NULL, XA_ZERO_ENTRY, gfp)); in xa_reserve()
1096 return xa_err(xa_cmpxchg_bh(xa, index, NULL, XA_ZERO_ENTRY, gfp)); in xa_reserve_bh()
1114 return xa_err(xa_cmpxchg_irq(xa, index, NULL, XA_ZERO_ENTRY, gfp)); in xa_reserve_irq()
1427 return xa_err(xas->xa_node); in xas_error()
/linux-6.6.21/drivers/net/ethernet/mellanox/mlx5/core/sf/dev/
Ddev.c138 goto xa_err; in mlx5_sf_dev_add()
141 xa_err: in mlx5_sf_dev_add()
/linux-6.6.21/fs/smb/server/mgmt/
Dtree_connect.c81 ret = xa_err(xa_store(&sess->tree_conns, tree_conn->id, tree_conn, in ksmbd_tree_conn_connect()
Duser_session.c197 return xa_err(xa_store(&conn->sessions, sess->id, sess, GFP_KERNEL)); in ksmbd_session_register()
/linux-6.6.21/fs/erofs/
Dutils.c87 pre = ERR_PTR(xa_err(pre)); in erofs_insert_workgroup()
/linux-6.6.21/drivers/net/ethernet/mellanox/mlx5/core/steering/
Ddr_domain.c88 ret = xa_err(xa_store(&dmn->csum_fts_xa, vport_num, in mlx5dr_domain_get_recalc_cs_ft_addr()
572 WARN_ON(xa_err(xa_store(&dmn->peer_dmn_xa, peer_vhca_id, peer_dmn, GFP_KERNEL))); in mlx5dr_domain_set_peer()
/linux-6.6.21/lib/
Dtest_xarray.c88 XA_BUG_ON(xa, xa_err(xa_store_index(xa, 0, GFP_NOWAIT)) != 0); in check_xa_err()
89 XA_BUG_ON(xa, xa_err(xa_erase(xa, 0)) != 0); in check_xa_err()
92 XA_BUG_ON(xa, xa_err(xa_store_index(xa, 1, GFP_NOWAIT)) != -ENOMEM); in check_xa_err()
93 XA_BUG_ON(xa, xa_err(xa_store_index(xa, 1, GFP_NOWAIT)) != -ENOMEM); in check_xa_err()
95 XA_BUG_ON(xa, xa_err(xa_store_index(xa, 1, GFP_KERNEL)) != 0); in check_xa_err()
96 XA_BUG_ON(xa, xa_err(xa_store(xa, 1, xa_mk_value(0), GFP_KERNEL)) != 0); in check_xa_err()
97 XA_BUG_ON(xa, xa_err(xa_erase(xa, 1)) != 0); in check_xa_err()
Dtest_hmm.c235 return xa_err(entry); in dmirror_do_fault()
729 return xa_err(entry); in dmirror_atomic_map()
769 return xa_err(entry); in dmirror_migrate_finalize_and_map()
Dmaple_tree.c5053 return xa_err(mas->node); in mas_empty_area()
5115 return xa_err(mas->node); in mas_empty_area_rev()
5442 return xa_err(mas->node); in mas_store_gfp()
5537 ret = xa_err(mas->node); in mas_preallocate()
5649 ret = xa_err(mas->node); in mas_expected_entries()
6302 return xa_err(mas.node); in mtree_store_range()
6355 return xa_err(ms.node); in mtree_insert_range()
6406 ret = xa_err(mas.node); in mtree_alloc_range()
6444 ret = xa_err(mas.node); in mtree_alloc_rrange()
/linux-6.6.21/arch/x86/kernel/cpu/sgx/
Dvirt.c53 ret = xa_err(xa_store(&vepc->page_array, index, epc_page, GFP_KERNEL)); in __sgx_vepc_fault()
/linux-6.6.21/arch/arm64/kernel/
Dhibernate.c233 return xa_err(ret); in save_tags()
/linux-6.6.21/io_uring/
Dtctx.c122 ret = xa_err(xa_store(&tctx->xa, (unsigned long)ctx, in __io_uring_add_tctx_node()
/linux-6.6.21/drivers/infiniband/hw/mlx5/
Dqpc.c222 err = xa_err(xa_store_irq(&dev->qp_table.dct_xa, qp->qpn, dct, GFP_KERNEL)); in mlx5_core_create_dct()
295 return xa_err(tmp) ?: -EINVAL; in mlx5_core_destroy_dct()
Dsrq_cmd.c653 err = xa_err(xa_store_irq(&table->array, srq->srqn, srq, GFP_KERNEL)); in mlx5_cmd_create_srq()
674 return xa_err(tmp) ?: -EINVAL; in mlx5_cmd_destroy_srq()
/linux-6.6.21/drivers/net/ethernet/mellanox/mlx5/core/
Deq.c881 return xa_err(xa_store(&table->comp_irqs, vecidx, irq, GFP_KERNEL)); in comp_irq_request_pci()
924 return xa_err(xa_store(&table->comp_irqs, vecidx, irq, GFP_KERNEL)); in comp_irq_request_sf()
1054 err = xa_err(xa_store(&table->comp_eqs, vecidx, eq, GFP_KERNEL)); in create_comp_eq()
/linux-6.6.21/drivers/xen/
Dgrant-dma-ops.c62 ret = xa_err(__xa_store(&xen_grant_dma_devices, (unsigned long)dev, data, in store_xen_grant_dma_data()
/linux-6.6.21/drivers/block/
Dbrd.c91 ret = xa_err(cur); in brd_insert_page()
/linux-6.6.21/mm/
Dmemremap.c205 error = xa_err(xa_store_range(&pgmap_array, PHYS_PFN(range->start), in pagemap_range()
/linux-6.6.21/drivers/infiniband/hw/hns/
Dhns_roce_srq.c125 ret = xa_err(xa_store(&srq_table->xa, srq->srqn, srq, GFP_KERNEL)); in alloc_srqc()
Dhns_roce_cq.c154 ret = xa_err(xa_store(&cq_table->array, hr_cq->cqn, hr_cq, GFP_KERNEL)); in alloc_cqc()
/linux-6.6.21/net/devlink/
Dregion.c300 err = xa_err(__xa_store(&devlink->snapshot_ids, id, xa_mk_value(count), in __devlink_snapshot_id_increment()
374 err = xa_err(__xa_store(&devlink->snapshot_ids, id, xa_mk_value(0), in __devlink_snapshot_id_insert()

123