Home
last modified time | relevance | path

Searched refs:wr (Results 1 – 25 of 313) sorted by relevance

12345678910>>...13

/Linux-v5.10/drivers/media/dvb-frontends/
Ddib3000mb.c148 wr(DIB3000MB_REG_LOCK1_MASK, DIB3000MB_LOCK1_SEARCH_4); in dib3000mb_set_frontend()
153 wr(DIB3000MB_REG_FFT, DIB3000_TRANSMISSION_MODE_2K); in dib3000mb_set_frontend()
157 wr(DIB3000MB_REG_FFT, DIB3000_TRANSMISSION_MODE_8K); in dib3000mb_set_frontend()
169 wr(DIB3000MB_REG_GUARD_TIME, DIB3000_GUARD_TIME_1_32); in dib3000mb_set_frontend()
173 wr(DIB3000MB_REG_GUARD_TIME, DIB3000_GUARD_TIME_1_16); in dib3000mb_set_frontend()
177 wr(DIB3000MB_REG_GUARD_TIME, DIB3000_GUARD_TIME_1_8); in dib3000mb_set_frontend()
181 wr(DIB3000MB_REG_GUARD_TIME, DIB3000_GUARD_TIME_1_4); in dib3000mb_set_frontend()
193 wr(DIB3000MB_REG_DDS_INV, DIB3000_DDS_INVERSION_OFF); in dib3000mb_set_frontend()
200 wr(DIB3000MB_REG_DDS_INV, DIB3000_DDS_INVERSION_ON); in dib3000mb_set_frontend()
209 wr(DIB3000MB_REG_QAM, DIB3000_CONSTELLATION_QPSK); in dib3000mb_set_frontend()
[all …]
/Linux-v5.10/lib/
Ddecompress_unlzma.c292 static inline size_t INIT get_pos(struct writer *wr) in get_pos() argument
295 wr->global_pos + wr->buffer_pos; in get_pos()
298 static inline uint8_t INIT peek_old_byte(struct writer *wr, in peek_old_byte() argument
301 if (!wr->flush) { in peek_old_byte()
303 while (offs > wr->header->dict_size) in peek_old_byte()
304 offs -= wr->header->dict_size; in peek_old_byte()
305 pos = wr->buffer_pos - offs; in peek_old_byte()
306 return wr->buffer[pos]; in peek_old_byte()
308 uint32_t pos = wr->buffer_pos - offs; in peek_old_byte()
309 while (pos >= wr->header->dict_size) in peek_old_byte()
[all …]
/Linux-v5.10/tools/bpf/bpftool/
Djson_writer.c314 json_writer_t *wr = jsonw_new(stdout); in main() local
316 jsonw_start_object(wr); in main()
317 jsonw_pretty(wr, true); in main()
318 jsonw_name(wr, "Vyatta"); in main()
319 jsonw_start_object(wr); in main()
320 jsonw_string_field(wr, "url", "http://vyatta.com"); in main()
321 jsonw_uint_field(wr, "downloads", 2000000ul); in main()
322 jsonw_float_field(wr, "stock", 8.16); in main()
324 jsonw_name(wr, "ARGV"); in main()
325 jsonw_start_array(wr); in main()
[all …]
/Linux-v5.10/drivers/infiniband/hw/mlx5/
Dwr.c104 static void set_eth_seg(const struct ib_send_wr *wr, struct mlx5_ib_qp *qp, in set_eth_seg() argument
111 if (wr->send_flags & IB_SEND_IP_CSUM) in set_eth_seg()
115 if (wr->opcode == IB_WR_LSO) { in set_eth_seg()
116 struct ib_ud_wr *ud_wr = container_of(wr, struct ib_ud_wr, wr); in set_eth_seg()
153 const struct ib_send_wr *wr) in set_datagram_seg() argument
155 memcpy(&dseg->av, &to_mah(ud_wr(wr)->ah)->av, sizeof(struct mlx5_av)); in set_datagram_seg()
157 cpu_to_be32(ud_wr(wr)->remote_qpn | MLX5_EXTENDED_UD_AV); in set_datagram_seg()
158 dseg->av.key.qkey.qkey = cpu_to_be32(ud_wr(wr)->remote_qkey); in set_datagram_seg()
321 const struct ib_send_wr *wr) in set_reg_umr_segment() argument
323 const struct mlx5_umr_wr *umrwr = umr_wr(wr); in set_reg_umr_segment()
[all …]
Dwr.h44 int mlx5_ib_post_send(struct ib_qp *ibqp, const struct ib_send_wr *wr,
46 int mlx5_ib_post_recv(struct ib_qp *ibqp, const struct ib_recv_wr *wr,
50 const struct ib_send_wr *wr, in mlx5_ib_post_send_nodrain() argument
53 return mlx5_ib_post_send(ibqp, wr, bad_wr, false); in mlx5_ib_post_send_nodrain()
57 const struct ib_send_wr *wr, in mlx5_ib_post_send_drain() argument
60 return mlx5_ib_post_send(ibqp, wr, bad_wr, true); in mlx5_ib_post_send_drain()
64 const struct ib_recv_wr *wr, in mlx5_ib_post_recv_nodrain() argument
67 return mlx5_ib_post_recv(ibqp, wr, bad_wr, false); in mlx5_ib_post_recv_nodrain()
71 const struct ib_recv_wr *wr, in mlx5_ib_post_recv_drain() argument
74 return mlx5_ib_post_recv(ibqp, wr, bad_wr, true); in mlx5_ib_post_recv_drain()
Dgsi.c51 struct mlx5_ib_gsi_wr *wr; in generate_completions() local
56 wr = &gsi->outstanding_wrs[index % gsi->cap.max_send_wr]; in generate_completions()
58 if (!wr->completed) in generate_completions()
61 WARN_ON_ONCE(mlx5_ib_generate_wc(gsi_cq, &wr->wc)); in generate_completions()
62 wr->completed = false; in generate_completions()
71 struct mlx5_ib_gsi_wr *wr = in handle_single_completion() local
78 wr->completed = true; in handle_single_completion()
79 wr_id = wr->wc.wr_id; in handle_single_completion()
80 wr->wc = *wc; in handle_single_completion()
81 wr->wc.wr_id = wr_id; in handle_single_completion()
[all …]
/Linux-v5.10/fs/orangefs/
Dinode.c22 struct orangefs_write_range *wr = NULL; in orangefs_writepage_locked() local
33 wr = (struct orangefs_write_range *)page_private(page); in orangefs_writepage_locked()
34 WARN_ON(wr->pos >= len); in orangefs_writepage_locked()
35 off = wr->pos; in orangefs_writepage_locked()
36 if (off + wr->len > len) in orangefs_writepage_locked()
39 wlen = wr->len; in orangefs_writepage_locked()
58 len, wr, NULL, NULL); in orangefs_writepage_locked()
93 struct orangefs_write_range *wrp, wr; in orangefs_writepages_work() local
121 wr.uid = ow->uid; in orangefs_writepages_work()
122 wr.gid = ow->gid; in orangefs_writepages_work()
[all …]
/Linux-v5.10/include/trace/events/
Dib_mad.h24 TP_PROTO(struct ib_mad_send_wr_private *wr,
26 TP_ARGS(wr, qp_info),
56 __entry->dev_index = wr->mad_agent_priv->agent.device->index;
57 __entry->port_num = wr->mad_agent_priv->agent.port_num;
58 __entry->qp_num = wr->mad_agent_priv->qp_info->qp->qp_num;
59 __entry->agent_priv = wr->mad_agent_priv;
60 __entry->wrtid = wr->tid;
61 __entry->max_retries = wr->max_retries;
62 __entry->retries_left = wr->retries_left;
63 __entry->retry = wr->retry;
[all …]
/Linux-v5.10/drivers/infiniband/core/
Drw.c80 reg->inv_wr.next = &reg->reg_wr.wr; in rdma_rw_inv_key()
111 reg->reg_wr.wr.opcode = IB_WR_REG_MR; in rdma_rw_init_one_mr()
151 prev->wr.wr.next = &reg->inv_wr; in rdma_rw_init_mr_wrs()
153 prev->wr.wr.next = &reg->reg_wr.wr; in rdma_rw_init_mr_wrs()
156 reg->reg_wr.wr.next = &reg->wr.wr; in rdma_rw_init_mr_wrs()
158 reg->wr.wr.sg_list = &reg->sge; in rdma_rw_init_mr_wrs()
159 reg->wr.wr.num_sge = 1; in rdma_rw_init_mr_wrs()
160 reg->wr.remote_addr = remote_addr; in rdma_rw_init_mr_wrs()
161 reg->wr.rkey = rkey; in rdma_rw_init_mr_wrs()
163 reg->wr.wr.opcode = IB_WR_RDMA_WRITE; in rdma_rw_init_mr_wrs()
[all …]
/Linux-v5.10/drivers/infiniband/ulp/iser/
Diser_memory.c243 struct ib_reg_wr *wr = &tx_desc->reg_wr; in iser_reg_sig_mr() local
254 iser_inv_rkey(&tx_desc->inv_wr, mr, cqe, &wr->wr); in iser_reg_sig_mr()
266 memset(wr, 0, sizeof(*wr)); in iser_reg_sig_mr()
267 wr->wr.next = &tx_desc->send_wr; in iser_reg_sig_mr()
268 wr->wr.opcode = IB_WR_REG_MR_INTEGRITY; in iser_reg_sig_mr()
269 wr->wr.wr_cqe = cqe; in iser_reg_sig_mr()
270 wr->wr.num_sge = 0; in iser_reg_sig_mr()
271 wr->wr.send_flags = 0; in iser_reg_sig_mr()
272 wr->mr = mr; in iser_reg_sig_mr()
273 wr->key = mr->rkey; in iser_reg_sig_mr()
[all …]
Diser_verbs.c831 struct ib_recv_wr wr; in iser_post_recvl() local
839 wr.wr_cqe = &desc->cqe; in iser_post_recvl()
840 wr.sg_list = &desc->sge; in iser_post_recvl()
841 wr.num_sge = 1; in iser_post_recvl()
842 wr.next = NULL; in iser_post_recvl()
845 ib_ret = ib_post_recv(ib_conn->qp, &wr, NULL); in iser_post_recvl()
859 struct ib_recv_wr *wr; in iser_post_recvm() local
862 for (wr = ib_conn->rx_wr, i = 0; i < count; i++, wr++) { in iser_post_recvm()
865 wr->wr_cqe = &rx_desc->cqe; in iser_post_recvm()
866 wr->sg_list = &rx_desc->rx_sg; in iser_post_recvm()
[all …]
/Linux-v5.10/drivers/infiniband/hw/vmw_pvrdma/
Dpvrdma_qp.c655 const struct ib_reg_wr *wr) in set_reg_seg() argument
657 struct pvrdma_user_mr *mr = to_vmr(wr->mr); in set_reg_seg()
659 wqe_hdr->wr.fast_reg.iova_start = mr->ibmr.iova; in set_reg_seg()
660 wqe_hdr->wr.fast_reg.pl_pdir_dma = mr->pdir.dir_dma; in set_reg_seg()
661 wqe_hdr->wr.fast_reg.page_shift = mr->page_shift; in set_reg_seg()
662 wqe_hdr->wr.fast_reg.page_list_len = mr->npages; in set_reg_seg()
663 wqe_hdr->wr.fast_reg.length = mr->ibmr.length; in set_reg_seg()
664 wqe_hdr->wr.fast_reg.access_flags = wr->access; in set_reg_seg()
665 wqe_hdr->wr.fast_reg.rkey = wr->key; in set_reg_seg()
679 int pvrdma_post_send(struct ib_qp *ibqp, const struct ib_send_wr *wr, in pvrdma_post_send() argument
[all …]
/Linux-v5.10/tools/testing/selftests/breakpoints/
Dbreakpoint_test_arm64.c33 static void child(int size, int wr) in child() argument
35 volatile uint8_t *addr = &var[32 + wr]; in child()
112 static bool run_test(int wr_size, int wp_size, int wr, int wp) in run_test() argument
125 child(wr_size, wr); in run_test()
204 int wr, wp, size; in main() local
215 for (wr = 0; wr <= 32; wr = wr + size) { in main()
216 for (wp = wr - size; wp <= wr + size; wp = wp + size) { in main()
217 result = run_test(size, MIN(size, 8), wr, wp); in main()
218 if ((result && wr == wp) || in main()
219 (!result && wr != wp)) in main()
[all …]
/Linux-v5.10/include/linux/
Dhdlcdrv.h28 unsigned rd, wr; member
35 unsigned int wr; member
49 buf->buffer[buf->wr] = buf->shreg; in hdlcdrv_add_bitbuffer()
50 buf->wr = (buf->wr+1) % sizeof(buf->buffer); in hdlcdrv_add_bitbuffer()
58 buf->buffer[buf->wr] = bits & 0xff; in hdlcdrv_add_bitbuffer_word()
59 buf->wr = (buf->wr+1) % sizeof(buf->buffer); in hdlcdrv_add_bitbuffer_word()
60 buf->buffer[buf->wr] = (bits >> 8) & 0xff; in hdlcdrv_add_bitbuffer_word()
61 buf->wr = (buf->wr+1) % sizeof(buf->buffer); in hdlcdrv_add_bitbuffer_word()
164 ret = !((HDLCDRV_HDLCBUFFER - 1 + hb->rd - hb->wr) % HDLCDRV_HDLCBUFFER); in hdlcdrv_hbuf_full()
177 ret = (hb->rd == hb->wr); in hdlcdrv_hbuf_empty()
[all …]
/Linux-v5.10/drivers/infiniband/sw/rxe/
Drxe_verbs.c355 static int rxe_post_srq_recv(struct ib_srq *ibsrq, const struct ib_recv_wr *wr, in rxe_post_srq_recv() argument
364 while (wr) { in rxe_post_srq_recv()
365 err = post_one_recv(&srq->rq, wr); in rxe_post_srq_recv()
368 wr = wr->next; in rxe_post_srq_recv()
374 *bad_wr = wr; in rxe_post_srq_recv()
498 static void init_send_wr(struct rxe_qp *qp, struct rxe_send_wr *wr, in init_send_wr() argument
501 wr->wr_id = ibwr->wr_id; in init_send_wr()
502 wr->num_sge = ibwr->num_sge; in init_send_wr()
503 wr->opcode = ibwr->opcode; in init_send_wr()
504 wr->send_flags = ibwr->send_flags; in init_send_wr()
[all …]
Drxe_req.c28 wqe->wr.opcode); in retry_first_write_send()
30 if (wqe->wr.send_flags & IB_SEND_INLINE) { in retry_first_write_send()
57 mask = wr_opcode_mask(wqe->wr.opcode, qp); in req_retry()
66 wqe->wr.wr.atomic.remote_addr : in req_retry()
68 wqe->wr.wr.rdma.remote_addr : in req_retry()
157 if (unlikely((wqe->wr.send_flags & IB_SEND_FENCE) && in req_next_wqe()
163 wqe->mask = wr_opcode_mask(wqe->wr.opcode, qp); in req_next_wqe()
358 struct rxe_send_wr *ibwr = &wqe->wr; in init_req_packet()
396 qp_num = (pkt->mask & RXE_DETH_MASK) ? ibwr->wr.ud.remote_qpn : in init_req_packet()
409 reth_set_rkey(pkt, ibwr->wr.rdma.rkey); in init_req_packet()
[all …]
/Linux-v5.10/drivers/infiniband/sw/siw/
Dsiw_verbs.c667 static int siw_sq_flush_wr(struct siw_qp *qp, const struct ib_send_wr *wr, in siw_sq_flush_wr() argument
673 while (wr) { in siw_sq_flush_wr()
674 sqe.id = wr->wr_id; in siw_sq_flush_wr()
675 sqe.opcode = wr->opcode; in siw_sq_flush_wr()
679 *bad_wr = wr; in siw_sq_flush_wr()
682 wr = wr->next; in siw_sq_flush_wr()
688 static int siw_rq_flush_wr(struct siw_qp *qp, const struct ib_recv_wr *wr, in siw_rq_flush_wr() argument
694 while (wr) { in siw_rq_flush_wr()
695 rqe.id = wr->wr_id; in siw_rq_flush_wr()
699 *bad_wr = wr; in siw_rq_flush_wr()
[all …]
/Linux-v5.10/drivers/infiniband/hw/mthca/
Dmthca_qp.c1498 const struct ib_ud_wr *wr, in build_mlx_header() argument
1508 mthca_ah_grh_present(to_mah(wr->ah)), 0, 0, 0, in build_mlx_header()
1511 err = mthca_read_ah(dev, to_mah(wr->ah), &sqp->ud_header); in build_mlx_header()
1522 switch (wr->wr.opcode) { in build_mlx_header()
1530 sqp->ud_header.immediate_data = wr->wr.ex.imm_data; in build_mlx_header()
1539 sqp->ud_header.bth.solicited_event = !!(wr->wr.send_flags & IB_SEND_SOLICITED); in build_mlx_header()
1544 ib_get_cached_pkey(&dev->ib_dev, qp->port, wr->pkey_index, in build_mlx_header()
1547 sqp->ud_header.bth.destination_qpn = cpu_to_be32(wr->remote_qpn); in build_mlx_header()
1549 sqp->ud_header.deth.qkey = cpu_to_be32(wr->remote_qkey & 0x80000000 ? in build_mlx_header()
1550 sqp->qkey : wr->remote_qkey); in build_mlx_header()
[all …]
/Linux-v5.10/arch/mips/mm/
Dtlbex.c2054 struct work_registers wr = build_get_work_registers(p); in build_r4000_tlbchange_handler_head() local
2057 build_get_pmde64(p, l, r, wr.r1, wr.r2); /* get pmd in ptr */ in build_r4000_tlbchange_handler_head()
2059 build_get_pgde32(p, wr.r1, wr.r2); /* get pgd in ptr */ in build_r4000_tlbchange_handler_head()
2068 build_is_huge_pte(p, r, wr.r1, wr.r2, label_tlb_huge_update); in build_r4000_tlbchange_handler_head()
2071 UASM_i_MFC0(p, wr.r1, C0_BADVADDR); in build_r4000_tlbchange_handler_head()
2072 UASM_i_LW(p, wr.r2, 0, wr.r2); in build_r4000_tlbchange_handler_head()
2073 UASM_i_SRL(p, wr.r1, wr.r1, PAGE_SHIFT + PTE_ORDER - PTE_T_LOG2); in build_r4000_tlbchange_handler_head()
2074 uasm_i_andi(p, wr.r1, wr.r1, (PTRS_PER_PTE - 1) << PTE_T_LOG2); in build_r4000_tlbchange_handler_head()
2075 UASM_i_ADDU(p, wr.r2, wr.r2, wr.r1); in build_r4000_tlbchange_handler_head()
2080 iPTE_LW(p, wr.r1, wr.r2); /* get even pte */ in build_r4000_tlbchange_handler_head()
[all …]
/Linux-v5.10/drivers/infiniband/hw/cxgb4/
Dqp.c414 const struct ib_send_wr *wr, int max, u32 *plenp) in build_immd() argument
422 for (i = 0; i < wr->num_sge; i++) { in build_immd()
423 if ((plen + wr->sg_list[i].length) > max) in build_immd()
425 srcp = (u8 *)(unsigned long)wr->sg_list[i].addr; in build_immd()
426 plen += wr->sg_list[i].length; in build_immd()
427 rem = wr->sg_list[i].length; in build_immd()
489 const struct ib_send_wr *wr, u8 *len16) in build_rdma_send() argument
495 if (wr->num_sge > T4_MAX_SEND_SGE) in build_rdma_send()
497 switch (wr->opcode) { in build_rdma_send()
499 if (wr->send_flags & IB_SEND_SOLICITED) in build_rdma_send()
[all …]
/Linux-v5.10/arch/sparc/kernel/
Dtrampoline_32.S47 wr %g1, 0x0, %psr ! traps off though
52 wr %g1, 0x0, %wim
56 wr %g3, 0x0, %tbr
71 wr %g1, PSR_ET, %psr ! traps on
101 wr %g1, 0x0, %psr ! traps off though
106 wr %g1, 0x0, %wim
111 wr %g1, 0x0, %tbr
132 wr %g1, PSR_ET, %psr ! traps on
160 wr %g1, 0x0, %psr ! traps off though
165 wr %g1, 0x0, %wim
[all …]
Dentry.S159 wr %l0, 0x0, %psr
181 wr %l4, 0x0, %psr
183 wr %l4, PSR_ET, %psr
200 wr %l0, PSR_ET, %psr
230 wr %g2, 0x0, %psr
232 wr %g2, PSR_ET, %psr
239 wr %g2, PSR_ET, %psr ! keep ET up
249 wr %g2, 0x0, %psr
251 wr %g2, PSR_ET, %psr
255 wr %l0, PSR_ET, %psr
[all …]
/Linux-v5.10/drivers/infiniband/ulp/rtrs/
Drtrs.c74 struct ib_recv_wr wr; in rtrs_iu_post_recv() local
86 wr = (struct ib_recv_wr) { in rtrs_iu_post_recv()
92 return ib_post_recv(con->qp, &wr, NULL); in rtrs_iu_post_recv()
98 struct ib_recv_wr wr; in rtrs_post_recv_empty() local
100 wr = (struct ib_recv_wr) { in rtrs_post_recv_empty()
104 return ib_post_recv(con->qp, &wr, NULL); in rtrs_post_recv_empty()
112 struct ib_send_wr wr; in rtrs_iu_post_send() local
122 wr = (struct ib_send_wr) { in rtrs_iu_post_send()
135 tail->next = &wr; in rtrs_iu_post_send()
137 head = &wr; in rtrs_iu_post_send()
[all …]
/Linux-v5.10/arch/arm/boot/dts/
Domap3430-sdp.dts65 gpmc,cs-wr-off-ns = <186>;
68 gpmc,adv-wr-off-ns = <48>;
74 gpmc,wr-cycle-ns = <186>;
79 gpmc,wr-data-mux-bus-ns = <90>;
80 gpmc,wr-access-ns = <186>;
115 gpmc,cs-wr-off-ns = <36>;
118 gpmc,adv-wr-off-ns = <36>;
124 gpmc,wr-cycle-ns = <72>;
126 gpmc,wr-access-ns = <30>;
161 gpmc,cs-wr-off-ns = <72>;
[all …]
/Linux-v5.10/drivers/infiniband/sw/rdmavt/
Dqp.c667 for (i = 0; i < wqe->wr.num_sge; i++) { in rvt_swqe_has_lkey()
1835 int rvt_post_recv(struct ib_qp *ibqp, const struct ib_recv_wr *wr, in rvt_post_recv() argument
1846 *bad_wr = wr; in rvt_post_recv()
1850 for (; wr; wr = wr->next) { in rvt_post_recv()
1855 if ((unsigned)wr->num_sge > qp->r_rq.max_sge) { in rvt_post_recv()
1856 *bad_wr = wr; in rvt_post_recv()
1866 *bad_wr = wr; in rvt_post_recv()
1875 wc.wr_id = wr->wr_id; in rvt_post_recv()
1880 wqe->wr_id = wr->wr_id; in rvt_post_recv()
1881 wqe->num_sge = wr->num_sge; in rvt_post_recv()
[all …]

12345678910>>...13