Home
last modified time | relevance | path

Searched refs:rkey (Results 1 – 25 of 111) sorted by relevance

12345

/kernel/linux/linux-5.10/net/dns_resolver/
Ddns_query.c79 struct key *rkey; in dns_query() local
128 rkey = request_key_net(&key_type_dns_resolver, desc, net, options); in dns_query()
131 if (IS_ERR(rkey)) { in dns_query()
132 ret = PTR_ERR(rkey); in dns_query()
136 down_read(&rkey->sem); in dns_query()
137 set_bit(KEY_FLAG_ROOT_CAN_INVAL, &rkey->flags); in dns_query()
138 rkey->perm |= KEY_USR_VIEW; in dns_query()
140 ret = key_validate(rkey); in dns_query()
145 ret = PTR_ERR(rkey->payload.data[dns_key_error]); in dns_query()
149 upayload = user_key_payload_locked(rkey); in dns_query()
[all …]
/kernel/linux/linux-5.10/drivers/infiniband/ulp/iser/
Diser_memory.c116 reg->rkey = device->pd->unsafe_global_rkey; in iser_reg_dma()
118 reg->rkey = 0; in iser_reg_dma()
123 " length=0x%x\n", reg->sge.lkey, reg->rkey, in iser_reg_dma()
226 inv_wr->ex.invalidate_rkey = mr->rkey; in iser_inv_rkey()
256 ib_update_fast_reg_key(mr, ib_inc_rkey(mr->rkey)); in iser_reg_sig_mr()
273 wr->key = mr->rkey; in iser_reg_sig_mr()
280 sig_reg->rkey = mr->rkey; in iser_reg_sig_mr()
285 sig_reg->sge.lkey, sig_reg->rkey, sig_reg->sge.addr, in iser_reg_sig_mr()
305 ib_update_fast_reg_key(mr, ib_inc_rkey(mr->rkey)); in iser_fast_reg_mr()
320 wr->key = mr->rkey; in iser_fast_reg_mr()
[all …]
Diser_initiator.c83 hdr->read_stag = cpu_to_be32(mem_reg->rkey); in iser_prepare_read_cmd()
87 task->itt, mem_reg->rkey, in iser_prepare_read_cmd()
141 hdr->write_stag = cpu_to_be32(mem_reg->rkey); in iser_prepare_write_cmd()
146 task->itt, mem_reg->rkey, in iser_prepare_write_cmd()
597 iser_inv_desc(struct iser_fr_desc *desc, u32 rkey) in iser_inv_desc() argument
599 if (unlikely((!desc->sig_protected && rkey != desc->rsc.mr->rkey) || in iser_inv_desc()
600 (desc->sig_protected && rkey != desc->rsc.sig_mr->rkey))) { in iser_inv_desc()
601 iser_err("Bogus remote invalidation for rkey %#x\n", rkey); in iser_inv_desc()
617 u32 rkey = wc->ex.invalidate_rkey; in iser_check_remote_inv() local
620 iser_conn, rkey); in iser_check_remote_inv()
[all …]
/kernel/linux/linux-5.10/drivers/infiniband/sw/rxe/
Drxe_hdr.h529 __be32 rkey; member
551 return be32_to_cpu(reth->rkey); in __reth_rkey()
554 static inline void __reth_set_rkey(void *arg, u32 rkey) in __reth_set_rkey() argument
558 reth->rkey = cpu_to_be32(rkey); in __reth_set_rkey()
593 static inline void reth_set_rkey(struct rxe_pkt_info *pkt, u32 rkey) in reth_set_rkey() argument
596 + rxe_opcode[pkt->opcode].offset[RXE_RETH], rkey); in reth_set_rkey()
616 __be32 rkey; member
639 return be32_to_cpu(atmeth->rkey); in __atmeth_rkey()
642 static inline void __atmeth_set_rkey(void *arg, u32 rkey) in __atmeth_set_rkey() argument
646 atmeth->rkey = cpu_to_be32(rkey); in __atmeth_set_rkey()
[all …]
/kernel/linux/linux-5.10/fs/nfs/
Dnfs4idmap.c283 struct key *rkey = ERR_PTR(-EAGAIN); in nfs_idmap_request_key() local
291 rkey = request_key(&key_type_id_resolver, desc, ""); in nfs_idmap_request_key()
292 if (IS_ERR(rkey)) { in nfs_idmap_request_key()
294 rkey = request_key_with_auxdata(&key_type_id_resolver_legacy, in nfs_idmap_request_key()
298 if (!IS_ERR(rkey)) in nfs_idmap_request_key()
299 set_bit(KEY_FLAG_ROOT_CAN_INVAL, &rkey->flags); in nfs_idmap_request_key()
302 return rkey; in nfs_idmap_request_key()
310 struct key *rkey; in nfs_idmap_get_key() local
315 rkey = nfs_idmap_request_key(name, namelen, type, idmap); in nfs_idmap_get_key()
318 if (IS_ERR(rkey)) { in nfs_idmap_get_key()
[all …]
/kernel/linux/linux-5.10/drivers/infiniband/core/
Drw.c125 u64 remote_addr, u32 rkey, enum dma_data_direction dir) in rdma_rw_init_mr_wrs() argument
161 reg->wr.rkey = rkey; in rdma_rw_init_mr_wrs()
196 u64 remote_addr, u32 rkey, enum dma_data_direction dir) in rdma_rw_init_map_wrs() argument
222 rdma_wr->rkey = rkey; in rdma_rw_init_map_wrs()
251 struct scatterlist *sg, u32 offset, u64 remote_addr, u32 rkey, in rdma_rw_init_single_wr() argument
270 rdma_wr->rkey = rkey; in rdma_rw_init_single_wr()
313 u64 remote_addr, u32 rkey, enum dma_data_direction dir) in rdma_rw_ctx_init() argument
343 sg_offset, remote_addr, rkey, dir); in rdma_rw_ctx_init()
346 remote_addr, rkey, dir); in rdma_rw_ctx_init()
349 remote_addr, rkey, dir); in rdma_rw_ctx_init()
[all …]
Duverbs_std_types_mr.c151 &mr->rkey, sizeof(mr->rkey)); in UVERBS_HANDLER()
168 &mr->rkey, sizeof(mr->rkey)); in UVERBS_HANDLER()
/kernel/linux/linux-5.10/drivers/infiniband/hw/vmw_pvrdma/
Dpvrdma_mr.c95 mr->ibmr.rkey = resp->rkey; in pvrdma_get_dma_mr()
183 mr->ibmr.rkey = resp->rkey; in pvrdma_reg_user_mr()
255 mr->ibmr.rkey = resp->rkey; in pvrdma_alloc_mr()
/kernel/linux/patches/linux-5.10/prebuilts/usr/include/rdma/
Dvmw_pvrdma-abi.h188 __u32 rkey; member
195 __u32 rkey; member
201 __u32 rkey; member
214 __u32 rkey; member
Drdma_user_rxe.h65 __u32 rkey; member
72 __u32 rkey; member
/kernel/linux/linux-5.10/include/uapi/rdma/
Dvmw_pvrdma-abi.h251 __u32 rkey; member
258 __u32 rkey; member
264 __u32 rkey; member
277 __u32 rkey; member
Drdma_user_rxe.h87 __u32 rkey; member
94 __u32 rkey; member
/kernel/linux/patches/linux-4.19/prebuilts/usr/include/rdma/
Dvmw_pvrdma-abi.h171 __u32 rkey; member
178 __u32 rkey; member
184 __u32 rkey; member
197 __u32 rkey; member
Drdma_user_rxe.h49 __u32 rkey; member
56 __u32 rkey; member
/kernel/linux/linux-5.10/fs/reiserfs/
Ddir.c69 const struct reiserfs_key *rkey; in reiserfs_readdir_inode() local
242 rkey = get_rkey(&path_to_entry, inode->i_sb); in reiserfs_readdir_inode()
243 if (!comp_le_keys(rkey, &MIN_KEY)) { in reiserfs_readdir_inode()
253 if (COMP_SHORT_KEYS(rkey, &pos_key)) { in reiserfs_readdir_inode()
259 le_key_k_offset(KEY_FORMAT_3_5, rkey)); in reiserfs_readdir_inode()
/kernel/linux/linux-5.10/drivers/infiniband/sw/siw/
Dsiw_qp_tx.c140 c_tx->pkt.rreq.source_stag = htonl(wqe->sqe.rkey); in siw_qp_prepare_tx()
185 c_tx->pkt.send_inv.inval_stag = cpu_to_be32(wqe->sqe.rkey); in siw_qp_prepare_tx()
197 c_tx->pkt.rwrite.sink_stag = htonl(wqe->sqe.rkey); in siw_qp_prepare_tx()
211 c_tx->pkt.rresp.sink_stag = cpu_to_be32(wqe->sqe.rkey); in siw_qp_prepare_tx()
936 siw_dbg_pd(pd, "STag 0x%08x\n", sqe->rkey); in siw_fastreg_mr()
939 pr_warn("siw: fastreg: STag 0x%08x unknown\n", sqe->rkey); in siw_fastreg_mr()
943 if (unlikely(base_mr->rkey >> 8 != sqe->rkey >> 8)) { in siw_fastreg_mr()
944 pr_warn("siw: fastreg: STag 0x%08x: bad MR\n", sqe->rkey); in siw_fastreg_mr()
948 mem = siw_mem_id2obj(sdev, sqe->rkey >> 8); in siw_fastreg_mr()
950 pr_warn("siw: fastreg: STag 0x%08x unknown\n", sqe->rkey); in siw_fastreg_mr()
[all …]
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlx5/core/steering/
Ddr_send.c24 u32 rkey; member
224 u32 rkey, struct dr_data_seg *data_seg, in dr_rdma_segments() argument
247 wq_raddr->rkey = cpu_to_be32(rkey); in dr_rdma_segments()
263 dr_rdma_segments(dr_qp, send_info->remote_addr, send_info->rkey, in dr_post_send()
265 dr_rdma_segments(dr_qp, send_info->remote_addr, send_info->rkey, in dr_post_send()
438 send_info.rkey = ste->htbl->chunk->rkey; in mlx5dr_send_postsend_ste()
491 send_info.rkey = htbl->chunk->rkey; in mlx5dr_send_postsend_htbl()
545 send_info.rkey = htbl->chunk->rkey; in mlx5dr_send_postsend_formatted_htbl()
568 send_info.rkey = action->rewrite.chunk->rkey; in mlx5dr_send_postsend_action()
987 send_info.rkey = send_ring->sync_mr->mkey.key; in mlx5dr_send_ring_force_drain()
/kernel/linux/linux-5.10/drivers/infiniband/sw/rdmavt/
Dmr.c302 mr->ibmr.rkey = mr->mr.lkey; in __rvt_alloc_mr()
671 ibmr->rkey = key; in rvt_fast_reg_mr()
688 int rvt_invalidate_rkey(struct rvt_qp *qp, u32 rkey) in rvt_invalidate_rkey() argument
694 if (rkey == 0) in rvt_invalidate_rkey()
699 rkt->table[(rkey >> (32 - dev->dparms.lkey_table_size))]); in rvt_invalidate_rkey()
700 if (unlikely(!mr || mr->lkey != rkey || qp->ibqp.pd != mr->pd)) in rvt_invalidate_rkey()
868 u32 len, u64 vaddr, u32 rkey, int acc) in rvt_rkey_ok() argument
881 if (rkey == 0) { in rvt_rkey_ok()
902 mr = rcu_dereference(rkt->table[rkey >> rkt->shift]); in rvt_rkey_ok()
910 mr->lkey != rkey || qp->ibqp.pd != mr->pd)) in rvt_rkey_ok()
/kernel/linux/linux-5.10/drivers/infiniband/ulp/rtrs/
DREADME51 then pass it to the block layer. A new rkey is generated and registered for the
53 The new rkey is sent back to the client along with the IO result.
144 using the IMM field, Server invalidate rkey associated to the memory chunks
149 inflight IO and for the error code. The new rkey is sent back using
150 SEND_WITH_IMM WR, client When it recived new rkey message, it validates
151 the message and finished IO after update rkey for the rbuffer, then post
186 Server invalidate rkey associated to the memory chunks first, when it finishes,
192 outstanding inflight IO and the error code. The new rkey is sent back using
193 SEND_WITH_IMM WR, client When it recived new rkey message, it validates
194 the message and finished IO after update rkey for the rbuffer, then post
Drtrs-srv.c242 u32 rkey = 0; in rdma_write_sg() local
273 wr->rkey = le32_to_cpu(id->rd_msg->desc[0].key); in rdma_write_sg()
274 if (rkey == 0) in rdma_write_sg()
275 rkey = wr->rkey; in rdma_write_sg()
278 WARN_ON_ONCE(rkey != wr->rkey); in rdma_write_sg()
311 inv_wr.ex.invalidate_rkey = rkey; in rdma_write_sg()
324 rwr.key = srv_mr->mr->rkey; in rdma_write_sg()
330 msg->rkey = cpu_to_le32(srv_mr->mr->rkey); in rdma_write_sg()
444 rwr.key = srv_mr->mr->rkey; in send_io_resp_imm()
450 msg->rkey = cpu_to_le32(srv_mr->mr->rkey); in send_io_resp_imm()
[all …]
/kernel/linux/linux-5.10/include/rdma/
Drw.h47 u64 remote_addr, u32 rkey, enum dma_data_direction dir);
55 struct ib_sig_attrs *sig_attrs, u64 remote_addr, u32 rkey,
/kernel/linux/linux-5.10/drivers/infiniband/hw/qib/
Dqib_rc.c349 ohdr->u.rc.reth.rkey = in qib_make_rc_req()
350 cpu_to_be32(wqe->rdma_wr.rkey); in qib_make_rc_req()
392 ohdr->u.rc.reth.rkey = in qib_make_rc_req()
393 cpu_to_be32(wqe->rdma_wr.rkey); in qib_make_rc_req()
434 ohdr->u.atomic_eth.rkey = cpu_to_be32( in qib_make_rc_req()
435 wqe->atomic_wr.rkey); in qib_make_rc_req()
554 ohdr->u.rc.reth.rkey = in qib_make_rc_req()
555 cpu_to_be32(wqe->rdma_wr.rkey); in qib_make_rc_req()
1605 u32 rkey = be32_to_cpu(reth->rkey); in qib_rc_rcv_error() local
1609 ok = rvt_rkey_ok(qp, &e->rdma_sge, len, vaddr, rkey, in qib_rc_rcv_error()
[all …]
/kernel/linux/linux-5.10/drivers/md/persistent-data/
Ddm-btree.c382 uint64_t rkey; in dm_btree_lookup() local
401 lower_bound, &rkey, in dm_btree_lookup()
405 if (rkey != keys[level]) { in dm_btree_lookup()
423 uint64_t key, uint64_t *rkey, void *value_le) in dm_btree_lookup_next_single() argument
452 r = dm_btree_lookup_next_single(info, value64(n, i), key, rkey, value_le); in dm_btree_lookup_next_single()
455 r = dm_btree_lookup_next_single(info, value64(n, i), key, rkey, value_le); in dm_btree_lookup_next_single()
465 *rkey = le64_to_cpu(n->keys[i]); in dm_btree_lookup_next_single()
474 uint64_t *keys, uint64_t *rkey, void *value_le) in dm_btree_lookup_next() argument
484 lower_bound, rkey, in dm_btree_lookup_next()
489 if (*rkey != keys[level]) { in dm_btree_lookup_next()
[all …]
/kernel/linux/linux-5.10/net/smc/
Dsmc_core.c721 lgr->rtokens[i][lnk->link_idx].rkey = 0; in smcr_rtoken_clear_link()
1812 u32 rkey) in smc_rtoken_find_by_link() argument
1818 lgr->rtokens[i][lnk_idx].rkey == rkey) in smc_rtoken_find_by_link()
1833 lgr->rtokens[rtok_idx][link_idx_new].rkey = ntohl(nw_rkey); in smc_rtoken_set()
1842 u32 rkey = ntohl(nw_rkey); in smc_rtoken_set2() local
1854 lgr->rtokens[rtok_idx][link_idx].rkey = rkey; in smc_rtoken_set2()
1863 u32 rkey = ntohl(nw_rkey); in smc_rtoken_add() local
1867 if (lgr->rtokens[i][lnk->link_idx].rkey == rkey && in smc_rtoken_add()
1877 lgr->rtokens[i][lnk->link_idx].rkey = rkey; in smc_rtoken_add()
1886 u32 rkey = ntohl(nw_rkey); in smc_rtoken_delete() local
[all …]
/kernel/linux/linux-5.10/drivers/infiniband/hw/hns/
Dhns_roce_mr.c251 mr->ibmr.rkey = mr->ibmr.lkey = mr->key; in hns_roce_get_dma_mr()
288 mr->ibmr.rkey = mr->ibmr.lkey = mr->key; in hns_roce_reg_user_mr()
454 mr->ibmr.rkey = mr->ibmr.lkey = mr->key; in hns_roce_alloc_mr()
530 key_to_hw_index(mw->rkey) & in hns_roce_mw_free()
536 key_to_hw_index(mw->rkey)); in hns_roce_mw_free()
540 key_to_hw_index(mw->rkey), BITMAP_NO_RR); in hns_roce_mw_free()
549 unsigned long mtpt_idx = key_to_hw_index(mw->rkey); in hns_roce_mw_enable()
603 mw->rkey = hw_index_to_key(index); in hns_roce_alloc_mw()
605 ibmw->rkey = mw->rkey; in hns_roce_alloc_mw()

12345