Home
last modified time | relevance | path

Searched refs:wc (Results 1 – 25 of 252) sorted by relevance

1234567891011

/linux-6.1.9/drivers/md/
Ddm-writecache.c104 #define WC_MODE_PMEM(wc) ((wc)->pmem_mode) argument
105 #define WC_MODE_FUA(wc) ((wc)->writeback_fua) argument
107 #define WC_MODE_PMEM(wc) false argument
108 #define WC_MODE_FUA(wc) false argument
110 #define WC_MODE_SORT_FREELIST(wc) (!WC_MODE_PMEM(wc)) argument
228 struct dm_writecache *wc; member
237 struct dm_writecache *wc; member
246 static void wc_lock(struct dm_writecache *wc) in wc_lock() argument
248 mutex_lock(&wc->lock); in wc_lock()
251 static void wc_unlock(struct dm_writecache *wc) in wc_unlock() argument
[all …]
/linux-6.1.9/include/math-emu/
Dop-common.h27 #define _FP_DECL(wc, X) \ argument
29 _FP_FRAC_DECL_##wc(X)
36 #define _FP_UNPACK_CANONICAL(fs, wc, X) \ argument
42 _FP_FRAC_SLL_##wc(X, _FP_WORKBITS); \
48 if (_FP_FRAC_ZEROP_##wc(X)) \
54 _FP_FRAC_CLZ_##wc(_shift, X); \
56 _FP_FRAC_SLL_##wc(X, (_shift+_FP_WORKBITS)); \
69 if (_FP_FRAC_ZEROP_##wc(X)) \
89 #define _FP_PACK_CANONICAL(fs, wc, X) \ argument
97 _FP_ROUND(wc, X); \
[all …]
Dsoft-fp.h135 #define _FP_ROUND_NEAREST(wc, X) \ argument
137 if ((_FP_FRAC_LOW_##wc(X) & 15) != _FP_WORK_ROUND) \
138 _FP_FRAC_ADDI_##wc(X, _FP_WORK_ROUND); \
141 #define _FP_ROUND_ZERO(wc, X) (void)0 argument
143 #define _FP_ROUND_PINF(wc, X) \ argument
145 if (!X##_s && (_FP_FRAC_LOW_##wc(X) & 7)) \
146 _FP_FRAC_ADDI_##wc(X, _FP_WORK_LSB); \
149 #define _FP_ROUND_MINF(wc, X) \ argument
151 if (X##_s && (_FP_FRAC_LOW_##wc(X) & 7)) \
152 _FP_FRAC_ADDI_##wc(X, _FP_WORK_LSB); \
[all …]
/linux-6.1.9/drivers/infiniband/hw/mlx4/
Dcq.c511 struct ib_wc *wc) in mlx4_ib_handle_error_cqe() argument
525 wc->status = IB_WC_LOC_LEN_ERR; in mlx4_ib_handle_error_cqe()
528 wc->status = IB_WC_LOC_QP_OP_ERR; in mlx4_ib_handle_error_cqe()
531 wc->status = IB_WC_LOC_PROT_ERR; in mlx4_ib_handle_error_cqe()
534 wc->status = IB_WC_WR_FLUSH_ERR; in mlx4_ib_handle_error_cqe()
537 wc->status = IB_WC_MW_BIND_ERR; in mlx4_ib_handle_error_cqe()
540 wc->status = IB_WC_BAD_RESP_ERR; in mlx4_ib_handle_error_cqe()
543 wc->status = IB_WC_LOC_ACCESS_ERR; in mlx4_ib_handle_error_cqe()
546 wc->status = IB_WC_REM_INV_REQ_ERR; in mlx4_ib_handle_error_cqe()
549 wc->status = IB_WC_REM_ACCESS_ERR; in mlx4_ib_handle_error_cqe()
[all …]
/linux-6.1.9/fs/ocfs2/
Daops.c790 static void ocfs2_unlock_pages(struct ocfs2_write_ctxt *wc) in ocfs2_unlock_pages() argument
799 if (wc->w_target_locked) { in ocfs2_unlock_pages()
800 BUG_ON(!wc->w_target_page); in ocfs2_unlock_pages()
801 for (i = 0; i < wc->w_num_pages; i++) { in ocfs2_unlock_pages()
802 if (wc->w_target_page == wc->w_pages[i]) { in ocfs2_unlock_pages()
803 wc->w_pages[i] = NULL; in ocfs2_unlock_pages()
807 mark_page_accessed(wc->w_target_page); in ocfs2_unlock_pages()
808 put_page(wc->w_target_page); in ocfs2_unlock_pages()
810 ocfs2_unlock_and_free_pages(wc->w_pages, wc->w_num_pages); in ocfs2_unlock_pages()
829 struct ocfs2_write_ctxt *wc) in ocfs2_free_write_ctxt() argument
[all …]
/linux-6.1.9/drivers/net/ethernet/brocade/bna/
Dbfa_cs.h73 bfa_wc_up(struct bfa_wc *wc) in bfa_wc_up() argument
75 wc->wc_count++; in bfa_wc_up()
79 bfa_wc_down(struct bfa_wc *wc) in bfa_wc_down() argument
81 wc->wc_count--; in bfa_wc_down()
82 if (wc->wc_count == 0) in bfa_wc_down()
83 wc->wc_resume(wc->wc_cbarg); in bfa_wc_down()
88 bfa_wc_init(struct bfa_wc *wc, bfa_wc_resume_t wc_resume, void *wc_cbarg) in bfa_wc_init() argument
90 wc->wc_resume = wc_resume; in bfa_wc_init()
91 wc->wc_cbarg = wc_cbarg; in bfa_wc_init()
92 wc->wc_count = 0; in bfa_wc_init()
[all …]
/linux-6.1.9/drivers/infiniband/hw/mlx5/
Dcq.c117 static void handle_good_req(struct ib_wc *wc, struct mlx5_cqe64 *cqe, in handle_good_req() argument
120 wc->wc_flags = 0; in handle_good_req()
123 wc->wc_flags |= IB_WC_WITH_IMM; in handle_good_req()
126 wc->opcode = IB_WC_RDMA_WRITE; in handle_good_req()
129 wc->wc_flags |= IB_WC_WITH_IMM; in handle_good_req()
133 wc->opcode = IB_WC_SEND; in handle_good_req()
136 wc->opcode = IB_WC_RDMA_READ; in handle_good_req()
137 wc->byte_len = be32_to_cpu(cqe->byte_cnt); in handle_good_req()
140 wc->opcode = IB_WC_COMP_SWAP; in handle_good_req()
141 wc->byte_len = 8; in handle_good_req()
[all …]
Dgsi.c37 struct ib_wc wc; member
61 WARN_ON_ONCE(mlx5_ib_generate_wc(gsi_cq, &wr->wc)); in generate_completions()
68 static void handle_single_completion(struct ib_cq *cq, struct ib_wc *wc) in handle_single_completion() argument
72 container_of(wc->wr_cqe, struct mlx5_ib_gsi_wr, cqe); 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()
82 wr->wc.qp = &mqp->ibqp; in handle_single_completion()
360 struct ib_ud_wr *wr, struct ib_wc *wc) in mlx5_ib_add_outstanding_wr() argument
375 if (!wc) { in mlx5_ib_add_outstanding_wr()
[all …]
/linux-6.1.9/drivers/infiniband/sw/siw/
Dsiw_cq.c48 int siw_reap_cqe(struct siw_cq *cq, struct ib_wc *wc) in siw_reap_cqe() argument
57 memset(wc, 0, sizeof(*wc)); in siw_reap_cqe()
58 wc->wr_id = cqe->id; in siw_reap_cqe()
59 wc->byte_len = cqe->bytes; in siw_reap_cqe()
68 wc->ex.invalidate_rkey = cqe->inval_stag; in siw_reap_cqe()
69 wc->wc_flags = IB_WC_WITH_INVALIDATE; in siw_reap_cqe()
71 wc->qp = cqe->base_qp; in siw_reap_cqe()
72 wc->opcode = map_wc_opcode[cqe->opcode]; in siw_reap_cqe()
73 wc->status = map_cqe_status[cqe->status].ib; in siw_reap_cqe()
95 wc->opcode = map_wc_opcode[opcode]; in siw_reap_cqe()
[all …]
/linux-6.1.9/drivers/infiniband/hw/qib/
Dqib_ud.c62 struct ib_wc wc; in qib_ud_loopback() local
125 memset(&wc, 0, sizeof(wc)); in qib_ud_loopback()
126 wc.byte_len = length + sizeof(struct ib_grh); in qib_ud_loopback()
129 wc.wc_flags = IB_WC_WITH_IMM; in qib_ud_loopback()
130 wc.ex.imm_data = swqe->wr.ex.imm_data; in qib_ud_loopback()
155 if (unlikely(wc.byte_len > qp->r_len)) { in qib_ud_loopback()
168 wc.wc_flags |= IB_WC_GRH; in qib_ud_loopback()
201 wc.wr_id = qp->r_wr_id; in qib_ud_loopback()
202 wc.status = IB_WC_SUCCESS; in qib_ud_loopback()
203 wc.opcode = IB_WC_RECV; in qib_ud_loopback()
[all …]
Dqib_uc.c246 struct ib_wc wc; in qib_uc_rcv() local
368 wc.ex.imm_data = ohdr->u.imm_data; in qib_uc_rcv()
370 wc.wc_flags = IB_WC_WITH_IMM; in qib_uc_rcv()
374 wc.ex.imm_data = 0; in qib_uc_rcv()
375 wc.wc_flags = 0; in qib_uc_rcv()
385 wc.byte_len = tlen + qp->r_rcv_len; in qib_uc_rcv()
386 if (unlikely(wc.byte_len > qp->r_len)) in qib_uc_rcv()
388 wc.opcode = IB_WC_RECV; in qib_uc_rcv()
392 wc.wr_id = qp->r_wr_id; in qib_uc_rcv()
393 wc.status = IB_WC_SUCCESS; in qib_uc_rcv()
[all …]
/linux-6.1.9/drivers/infiniband/sw/rdmavt/
Dtrace_cq.h70 TP_PROTO(struct rvt_cq *cq, struct ib_wc *wc, u32 idx),
71 TP_ARGS(cq, wc, idx),
85 __entry->wr_id = wc->wr_id;
86 __entry->status = wc->status;
87 __entry->opcode = wc->opcode;
88 __entry->length = wc->byte_len;
89 __entry->qpn = wc->qp->qp_num;
91 __entry->flags = wc->wc_flags;
92 __entry->imm = be32_to_cpu(wc->ex.imm_data);
110 TP_PROTO(struct rvt_cq *cq, struct ib_wc *wc, u32 idx),
[all …]
/linux-6.1.9/drivers/infiniband/hw/erdma/
Derdma_cq.c108 static int erdma_poll_one_cqe(struct erdma_cq *cq, struct ib_wc *wc) in erdma_poll_one_cqe() argument
155 wc->wr_id = id_table[wqe_idx & (depth - 1)]; in erdma_poll_one_cqe()
156 wc->byte_len = be32_to_cpu(cqe->size); in erdma_poll_one_cqe()
158 wc->wc_flags = 0; in erdma_poll_one_cqe()
160 wc->opcode = wc_mapping_table[opcode]; in erdma_poll_one_cqe()
162 wc->ex.imm_data = cpu_to_be32(le32_to_cpu(cqe->imm_data)); in erdma_poll_one_cqe()
163 wc->wc_flags |= IB_WC_WITH_IMM; in erdma_poll_one_cqe()
165 wc->ex.invalidate_rkey = be32_to_cpu(cqe->inv_rkey); in erdma_poll_one_cqe()
166 wc->wc_flags |= IB_WC_WITH_INVALIDATE; in erdma_poll_one_cqe()
172 wc->status = map_cqe_status[syndrome].base; in erdma_poll_one_cqe()
[all …]
/linux-6.1.9/fs/ntfs/
Dunistr.c250 wchar_t wc; in ntfs_nlstoucs() local
259 &wc); in ntfs_nlstoucs()
262 if (likely(wc)) { in ntfs_nlstoucs()
263 ucs[o++] = cpu_to_le16(wc); in ntfs_nlstoucs()
327 int i, o, ns_len, wc; in ntfs_ucstonls() local
334 wc = -ENAMETOOLONG; in ntfs_ucstonls()
344 retry: wc = nls->uni2char(le16_to_cpu(ins[i]), ns + o, in ntfs_ucstonls()
346 if (wc > 0) { in ntfs_ucstonls()
347 o += wc; in ntfs_ucstonls()
349 } else if (!wc) in ntfs_ucstonls()
[all …]
/linux-6.1.9/drivers/infiniband/hw/vmw_pvrdma/
Dpvrdma_cq.c323 struct ib_wc *wc) in pvrdma_poll_one() argument
356 wc->opcode = pvrdma_wc_opcode_to_ib(cqe->opcode); in pvrdma_poll_one()
357 wc->status = pvrdma_wc_status_to_ib(cqe->status); in pvrdma_poll_one()
358 wc->wr_id = cqe->wr_id; in pvrdma_poll_one()
359 wc->qp = &(*cur_qp)->ibqp; in pvrdma_poll_one()
360 wc->byte_len = cqe->byte_len; in pvrdma_poll_one()
361 wc->ex.imm_data = cqe->imm_data; in pvrdma_poll_one()
362 wc->src_qp = cqe->src_qp; in pvrdma_poll_one()
363 wc->wc_flags = pvrdma_wc_flags_to_ib(cqe->wc_flags); in pvrdma_poll_one()
364 wc->pkey_index = cqe->pkey_index; in pvrdma_poll_one()
[all …]
/linux-6.1.9/drivers/infiniband/hw/hfi1/
Dud.c41 struct ib_wc wc; in ud_loopback() local
107 memset(&wc, 0, sizeof(wc)); in ud_loopback()
108 wc.byte_len = length + sizeof(struct ib_grh); in ud_loopback()
111 wc.wc_flags = IB_WC_WITH_IMM; in ud_loopback()
112 wc.ex.imm_data = swqe->wr.ex.imm_data; in ud_loopback()
137 if (unlikely(wc.byte_len > qp->r_len)) { in ud_loopback()
174 wc.wc_flags |= IB_WC_GRH; in ud_loopback()
193 wc.wr_id = qp->r_wr_id; in ud_loopback()
194 wc.status = IB_WC_SUCCESS; in ud_loopback()
195 wc.opcode = IB_WC_RECV; in ud_loopback()
[all …]
Duc.c270 struct ib_wc wc; in hfi1_uc_rcv() local
389 wc.ex.imm_data = ohdr->u.imm_data; in hfi1_uc_rcv()
390 wc.wc_flags = IB_WC_WITH_IMM; in hfi1_uc_rcv()
394 wc.ex.imm_data = 0; in hfi1_uc_rcv()
395 wc.wc_flags = 0; in hfi1_uc_rcv()
403 wc.byte_len = tlen + qp->r_rcv_len; in hfi1_uc_rcv()
404 if (unlikely(wc.byte_len > qp->r_len)) in hfi1_uc_rcv()
406 wc.opcode = IB_WC_RECV; in hfi1_uc_rcv()
410 wc.wr_id = qp->r_wr_id; in hfi1_uc_rcv()
411 wc.status = IB_WC_SUCCESS; in hfi1_uc_rcv()
[all …]
/linux-6.1.9/drivers/scsi/bfa/
Dbfa_cs.h253 bfa_wc_up(struct bfa_wc_s *wc) in bfa_wc_up() argument
255 wc->wc_count++; in bfa_wc_up()
259 bfa_wc_down(struct bfa_wc_s *wc) in bfa_wc_down() argument
261 wc->wc_count--; in bfa_wc_down()
262 if (wc->wc_count == 0) in bfa_wc_down()
263 wc->wc_resume(wc->wc_cbarg); in bfa_wc_down()
270 bfa_wc_init(struct bfa_wc_s *wc, bfa_wc_resume_t wc_resume, void *wc_cbarg) in bfa_wc_init() argument
272 wc->wc_resume = wc_resume; in bfa_wc_init()
273 wc->wc_cbarg = wc_cbarg; in bfa_wc_init()
274 wc->wc_count = 0; in bfa_wc_init()
[all …]
/linux-6.1.9/drivers/infiniband/ulp/iser/
Diser_initiator.c532 void iser_login_rsp(struct ib_cq *cq, struct ib_wc *wc) in iser_login_rsp() argument
534 struct ib_conn *ib_conn = wc->qp->qp_context; in iser_login_rsp()
536 struct iser_login_desc *desc = iser_login(wc->wr_cqe); in iser_login_rsp()
542 if (unlikely(wc->status != IB_WC_SUCCESS)) { in iser_login_rsp()
543 iser_err_comp(wc, "login_rsp"); in iser_login_rsp()
553 length = wc->byte_len - ISER_HEADERS_LEN; in iser_login_rsp()
588 static int iser_check_remote_inv(struct iser_conn *iser_conn, struct ib_wc *wc, in iser_check_remote_inv() argument
591 if (wc->wc_flags & IB_WC_WITH_INVALIDATE) { in iser_check_remote_inv()
593 u32 rkey = wc->ex.invalidate_rkey; in iser_check_remote_inv()
630 void iser_task_rsp(struct ib_cq *cq, struct ib_wc *wc) in iser_task_rsp() argument
[all …]
/linux-6.1.9/sound/isa/wavefront/
Dwavefront_synth.c1515 wavefront_control *wc) in wavefront_synth_control() argument
1523 "cmd 0x%x\n", wc->cmd); in wavefront_synth_control()
1527 switch (wc->cmd) { in wavefront_synth_control()
1542 wc->rbuf[0] = dev->interrupts_are_midi; in wavefront_synth_control()
1546 dev->rom_samples_rdonly = wc->wbuf[0]; in wavefront_synth_control()
1547 wc->status = 0; in wavefront_synth_control()
1551 i = wc->wbuf[0] | (wc->wbuf[1] << 7); in wavefront_synth_control()
1555 wc->status = EINVAL; in wavefront_synth_control()
1558 wc->rbuf[0] = dev->sample_status[i]; in wavefront_synth_control()
1559 wc->status = 0; in wavefront_synth_control()
[all …]
/linux-6.1.9/net/sunrpc/xprtrdma/
Dfrwr_ops.c358 static void frwr_wc_fastreg(struct ib_cq *cq, struct ib_wc *wc) in frwr_wc_fastreg() argument
360 struct ib_cqe *cqe = wc->wr_cqe; in frwr_wc_fastreg()
364 trace_xprtrdma_wc_fastreg(wc, &mr->mr_cid); in frwr_wc_fastreg()
366 rpcrdma_flush_disconnect(cq->cq_context, wc); in frwr_wc_fastreg()
441 static void frwr_mr_done(struct ib_wc *wc, struct rpcrdma_mr *mr) in frwr_mr_done() argument
443 if (likely(wc->status == IB_WC_SUCCESS)) in frwr_mr_done()
453 static void frwr_wc_localinv(struct ib_cq *cq, struct ib_wc *wc) in frwr_wc_localinv() argument
455 struct ib_cqe *cqe = wc->wr_cqe; in frwr_wc_localinv()
459 trace_xprtrdma_wc_li(wc, &mr->mr_cid); in frwr_wc_localinv()
460 frwr_mr_done(wc, mr); in frwr_wc_localinv()
[all …]
/linux-6.1.9/drivers/infiniband/hw/cxgb4/
Dcq.c755 struct ib_wc *wc, struct c4iw_srq *srq) in __c4iw_poll_cq_one() argument
769 wc->wr_id = cookie; in __c4iw_poll_cq_one()
770 wc->qp = qhp ? &qhp->ibqp : NULL; in __c4iw_poll_cq_one()
771 wc->vendor_err = CQE_STATUS(&cqe); in __c4iw_poll_cq_one()
772 wc->wc_flags = 0; in __c4iw_poll_cq_one()
790 wc->byte_len = CQE_LEN(&cqe); in __c4iw_poll_cq_one()
792 wc->byte_len = 0; in __c4iw_poll_cq_one()
796 wc->opcode = IB_WC_RECV; in __c4iw_poll_cq_one()
800 wc->opcode = IB_WC_RECV; in __c4iw_poll_cq_one()
801 wc->ex.invalidate_rkey = CQE_WRID_STAG(&cqe); in __c4iw_poll_cq_one()
[all …]
/linux-6.1.9/net/smc/
Dsmc_wr.c77 static inline void smc_wr_tx_process_cqe(struct ib_wc *wc) in smc_wr_tx_process_cqe() argument
83 link = wc->qp->qp_context; in smc_wr_tx_process_cqe()
85 if (wc->opcode == IB_WC_REG_MR) { in smc_wr_tx_process_cqe()
86 if (wc->status) in smc_wr_tx_process_cqe()
94 pnd_snd_idx = smc_wr_tx_find_pending_index(link, wc->wr_id); in smc_wr_tx_process_cqe()
97 link->wr_tx_v2_pend->wr_id != wc->wr_id) in smc_wr_tx_process_cqe()
99 link->wr_tx_v2_pend->wc_status = wc->status; in smc_wr_tx_process_cqe()
107 link->wr_tx_pends[pnd_snd_idx].wc_status = wc->status; in smc_wr_tx_process_cqe()
121 if (wc->status) { in smc_wr_tx_process_cqe()
132 pnd_snd.handler(&pnd_snd.priv, link, wc->status); in smc_wr_tx_process_cqe()
[all …]
/linux-6.1.9/tools/testing/selftests/ftrace/test.d/ftrace/
Dfunc_traceonoff_triggers.tc26 grep -v '^#' trace | wc -l
57 x=`grep '^\.schedule$' available_filter_functions | wc -l`
75 cnt=`grep schedule set_ftrace_filter | wc -l`
110 cnt=`grep schedule set_ftrace_filter | wc -l`
122 cnt=`grep schedule set_ftrace_filter | wc -l`
140 cnt=`grep schedule set_ftrace_filter | wc -l`
/linux-6.1.9/drivers/infiniband/core/
Dcq.c83 static int __poll_cq(struct ib_cq *cq, int num_entries, struct ib_wc *wc) in __poll_cq() argument
87 rc = ib_poll_cq(cq, num_entries, wc); in __poll_cq()
107 struct ib_wc *wc = &wcs[i]; in __ib_process_cq() local
109 if (wc->wr_cqe) in __ib_process_cq()
110 wc->wr_cqe->done(cq, wc); in __ib_process_cq()
112 WARN_ON_ONCE(wc->status == IB_WC_SUCCESS); in __ib_process_cq()
157 completed = __ib_process_cq(cq, budget, cq->wc, IB_POLL_BATCH); in ib_poll_handler()
183 completed = __ib_process_cq(cq, IB_POLL_BUDGET_WORKQUEUE, cq->wc, in ib_cq_poll_work()
233 cq->wc = kmalloc_array(IB_POLL_BATCH, sizeof(*cq->wc), GFP_KERNEL); in __ib_alloc_cq()
234 if (!cq->wc) in __ib_alloc_cq()
[all …]

1234567891011