| /linux/drivers/infiniband/hw/mthca/ |
| H A D | mthca_cq.c | 174 static inline struct mthca_cqe *cqe_sw(struct mthca_cqe *cqe) in cqe_sw() argument 176 return MTHCA_CQ_ENTRY_OWNER_HW & cqe->owner ? NULL : cqe; in cqe_sw() 181 return cqe_sw(get_cqe(cq, cq->cons_index & cq->ibcq.cqe)); in next_cqe_sw() 184 static inline void set_cqe_hw(struct mthca_cqe *cqe) in set_cqe_hw() argument 186 cqe->owner = MTHCA_CQ_ENTRY_OWNER_HW; in set_cqe_hw() 191 __be32 *cqe = cqe_ptr; in dump_cqe() local 193 (void) cqe; /* avoid warning if mthca_dbg compiled away... */ in dump_cqe() 195 be32_to_cpu(cqe[0]), be32_to_cpu(cqe[ in dump_cqe() 264 is_recv_cqe(struct mthca_cqe * cqe) is_recv_cqe() argument 276 struct mthca_cqe *cqe; mthca_cq_clean() local 366 mthca_free_cq_buf(struct mthca_dev * dev,struct mthca_cq_buf * buf,int cqe) mthca_free_cq_buf() argument 374 handle_error_cqe(struct mthca_dev * dev,struct mthca_cq * cq,struct mthca_qp * qp,int wqe_index,int is_send,struct mthca_err_cqe * cqe,struct ib_wc * entry,int * free_cqe) handle_error_cqe() argument 485 struct mthca_cqe *cqe; mthca_poll_one() local [all...] |
| /linux/drivers/infiniband/sw/siw/ |
| H A D | siw_cq.c | 50 struct siw_cqe *cqe; in siw_reap_cqe() local 55 cqe = &cq->queue[cq->cq_get % cq->num_cqe]; in siw_reap_cqe() 56 if (READ_ONCE(cqe->flags) & SIW_WQE_VALID) { in siw_reap_cqe() 58 wc->wr_id = cqe->id; in siw_reap_cqe() 59 wc->byte_len = cqe->bytes; in siw_reap_cqe() 67 if (cqe->flags & SIW_WQE_REM_INVAL) { in siw_reap_cqe() 68 wc->ex.invalidate_rkey = cqe->inval_stag; 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() [all …]
|
| /linux/drivers/net/ethernet/mellanox/mlx5/core/ |
| H A D | en_rx.c | 67 struct mlx5_cqe64 *cqe, u16 cqe_bcnt, u32 head_offset, 71 struct mlx5_cqe64 *cqe, u16 cqe_bcnt, u32 head_offset, 73 static void mlx5e_handle_rx_cqe(struct mlx5e_rq *rq, struct mlx5_cqe64 *cqe); 74 static void mlx5e_handle_rx_cqe_mpwrq(struct mlx5e_rq *rq, struct mlx5_cqe64 *cqe); 75 static void mlx5e_handle_rx_cqe_mpwrq_shampo(struct mlx5e_rq *rq, struct mlx5_cqe64 *cqe); 92 struct mlx5_cqe64 *cqe) in mlx5e_read_enhanced_title_slot() 97 memcpy(title, cqe, sizeof(struct mlx5_cqe64)); in mlx5e_read_enhanced_title_slot() 140 struct mlx5_cqe64 *cqe = mlx5_cqwq_get_wqe(wq, ci); in mlx5e_cqes_update_owner() 142 cqe->op_own = op_own; in mlx5e_cqes_update_owner() 148 struct mlx5_cqe64 *cqe in mlx5e_cqes_update_owner() 91 mlx5e_read_enhanced_title_slot(struct mlx5e_rq * rq,struct mlx5_cqe64 * cqe) mlx5e_read_enhanced_title_slot() argument 139 struct mlx5_cqe64 *cqe = mlx5_cqwq_get_wqe(wq, ci); mlx5e_cqes_update_owner() local 147 struct mlx5_cqe64 *cqe = mlx5_cqwq_get_wqe(wq, ci); mlx5e_cqes_update_owner() local 197 mlx5e_decompress_enhanced_cqe(struct mlx5e_rq * rq,struct mlx5_cqwq * wq,struct mlx5_cqe64 * cqe,int budget_rem) mlx5e_decompress_enhanced_cqe() argument 836 struct mlx5_cqe64 *cqe; mlx5e_poll_ico_cq() local 1010 mlx5e_lro_update_tcp_hdr(struct mlx5_cqe64 * cqe,struct tcphdr * tcp) mlx5e_lro_update_tcp_hdr() argument 1027 mlx5e_lro_update_hdr(struct sk_buff * skb,struct mlx5_cqe64 * cqe,u32 cqe_bcnt) mlx5e_lro_update_hdr() argument 1121 mlx5e_shampo_get_hd_buf_info(struct mlx5e_rq * rq,struct mlx5_cqe64 * cqe,struct mlx5e_dma_info ** di,u32 * head_offset) mlx5e_shampo_get_hd_buf_info() argument 1135 mlx5e_shampo_get_hdr(struct mlx5e_rq * rq,struct mlx5_cqe64 * cqe,int len) mlx5e_shampo_get_hdr() argument 1149 mlx5e_shampo_update_fin_psh_flags(struct mlx5e_rq * rq,struct mlx5_cqe64 * cqe,struct tcphdr * skb_tcp_hd) mlx5e_shampo_update_fin_psh_flags() argument 1164 mlx5e_shampo_update_ipv4_tcp_hdr(struct mlx5e_rq * rq,struct iphdr * ipv4,struct mlx5_cqe64 * cqe,bool match) mlx5e_shampo_update_ipv4_tcp_hdr() argument 1189 mlx5e_shampo_update_ipv6_tcp_hdr(struct mlx5e_rq * rq,struct ipv6hdr * ipv6,struct mlx5_cqe64 * cqe,bool match) mlx5e_shampo_update_ipv6_tcp_hdr() argument 1206 mlx5e_shampo_update_hdr(struct mlx5e_rq * rq,struct mlx5_cqe64 * cqe,bool match) mlx5e_shampo_update_hdr() argument 1239 mlx5e_skb_set_hash(struct mlx5_cqe64 * cqe,struct sk_buff * skb) mlx5e_skb_set_hash() argument 1365 mlx5e_handle_csum(struct net_device * netdev,struct mlx5_cqe64 * cqe,struct mlx5e_rq * rq,struct sk_buff * skb,bool lro) mlx5e_handle_csum() argument 1440 mlx5e_build_rx_skb(struct mlx5_cqe64 * cqe,u32 cqe_bcnt,struct mlx5e_rq * rq,struct sk_buff * skb) mlx5e_build_rx_skb() argument 1509 mlx5e_shampo_complete_rx_cqe(struct mlx5e_rq * rq,struct mlx5_cqe64 * cqe,u32 cqe_bcnt,struct sk_buff * skb) mlx5e_shampo_complete_rx_cqe() argument 1532 mlx5e_complete_rx_cqe(struct mlx5e_rq * rq,struct mlx5_cqe64 * cqe,u32 cqe_bcnt,struct sk_buff * skb) mlx5e_complete_rx_cqe() argument 1564 mlx5e_fill_mxbuf(struct mlx5e_rq * rq,struct mlx5_cqe64 * cqe,void * va,u16 headroom,u32 frame_sz,u32 len,struct mlx5e_xdp_buff * mxbuf) mlx5e_fill_mxbuf() argument 1576 mlx5e_skb_from_cqe_linear(struct mlx5e_rq * rq,struct mlx5e_wqe_frag_info * wi,struct mlx5_cqe64 * cqe,u32 cqe_bcnt) mlx5e_skb_from_cqe_linear() argument 1624 mlx5e_skb_from_cqe_nonlinear(struct mlx5e_rq * rq,struct mlx5e_wqe_frag_info * wi,struct mlx5_cqe64 * cqe,u32 cqe_bcnt) mlx5e_skb_from_cqe_nonlinear() argument 1719 trigger_report(struct mlx5e_rq * rq,struct mlx5_cqe64 * cqe) trigger_report() argument 1731 mlx5e_handle_rx_err_cqe(struct mlx5e_rq * rq,struct mlx5_cqe64 * cqe) mlx5e_handle_rx_err_cqe() argument 1737 mlx5e_handle_rx_cqe(struct mlx5e_rq * rq,struct mlx5_cqe64 * cqe) mlx5e_handle_rx_cqe() argument 1782 mlx5e_handle_rx_cqe_rep(struct mlx5e_rq * rq,struct mlx5_cqe64 * cqe) mlx5e_handle_rx_cqe_rep() argument 1826 mlx5e_handle_rx_cqe_mpwrq_rep(struct mlx5e_rq * rq,struct mlx5_cqe64 * cqe) mlx5e_handle_rx_cqe_mpwrq_rep() argument 1910 mlx5e_skb_from_cqe_mpwrq_nonlinear(struct mlx5e_rq * rq,struct mlx5e_mpw_info * wi,struct mlx5_cqe64 * cqe,u16 cqe_bcnt,u32 head_offset,u32 page_idx) mlx5e_skb_from_cqe_mpwrq_nonlinear() argument 2098 mlx5e_skb_from_cqe_mpwrq_linear(struct mlx5e_rq * rq,struct mlx5e_mpw_info * wi,struct mlx5_cqe64 * cqe,u16 cqe_bcnt,u32 head_offset,u32 page_idx) mlx5e_skb_from_cqe_mpwrq_linear() argument 2156 mlx5e_skb_from_cqe_shampo(struct mlx5e_rq * rq,struct mlx5e_mpw_info * wi,struct mlx5_cqe64 * cqe,u16 header_index) mlx5e_skb_from_cqe_shampo() argument 2196 mlx5e_shampo_flush_skb(struct mlx5e_rq * rq,struct mlx5_cqe64 * cqe,bool match) mlx5e_shampo_flush_skb() argument 2229 mlx5e_handle_rx_cqe_mpwrq_shampo(struct mlx5e_rq * rq,struct mlx5_cqe64 * cqe) mlx5e_handle_rx_cqe_mpwrq_shampo() argument 2349 mlx5e_handle_rx_cqe_mpwrq(struct mlx5e_rq * rq,struct mlx5_cqe64 * cqe) mlx5e_handle_rx_cqe_mpwrq() argument 2413 struct mlx5_cqe64 *cqe, *title_cqe = NULL; mlx5e_rx_cq_process_enhanced_cqe_comp() local 2462 struct mlx5_cqe64 *cqe; mlx5e_rx_cq_process_basic_cqe_comp() local 2526 mlx5i_complete_rx_cqe(struct mlx5e_rq * rq,struct mlx5_cqe64 * cqe,u32 cqe_bcnt,struct sk_buff * skb) mlx5i_complete_rx_cqe() argument 2608 mlx5i_handle_rx_cqe(struct mlx5e_rq * rq,struct mlx5_cqe64 * cqe) mlx5i_handle_rx_cqe() argument 2698 mlx5e_trap_handle_rx_cqe(struct mlx5e_rq * rq,struct mlx5_cqe64 * cqe) mlx5e_trap_handle_rx_cqe() argument [all...] |
| /linux/drivers/net/ethernet/mellanox/mlxsw/ |
| H A D | pci_hw.h | 116 static inline u32 mlxsw_pci_cqe_##name##_get(enum mlxsw_pci_cqe_v v, char *cqe) \ 121 return mlxsw_pci_cqe##v0##_##name##_get(cqe); \ 123 return mlxsw_pci_cqe##v1##_##name##_get(cqe); \ 125 return mlxsw_pci_cqe##v2##_##name##_get(cqe); \ 129 char *cqe, u32 val) \ 134 mlxsw_pci_cqe##v0##_##name##_set(cqe, val); \ 137 mlxsw_pci_cqe##v1##_##name##_set(cqe, val); \ 140 mlxsw_pci_cqe##v2##_##name##_set(cqe, val); \ 158 MLXSW_ITEM32(pci, cqe, system_port, 0x00, 0, 16); 169 MLXSW_ITEM32(pci, cqe, wqe_counter, 0x04, 16, 16); [all …]
|
| /linux/tools/testing/selftests/net/ |
| H A D | io_uring_zerocopy_tx.c | 97 struct io_uring_cqe *cqe; in do_tx() local 157 ret = io_uring_wait_cqe(&ring, &cqe); in do_tx() 159 error(1, -ret, "wait cqe"); in do_tx() 161 if (cqe->user_data != NONZC_TAG && in do_tx() 162 cqe->user_data != ZC_TAG) in do_tx() 163 error(1, EINVAL, "invalid cqe->user_data"); in do_tx() 165 if (cqe->flags & IORING_CQE_F_NOTIF) { in do_tx() 166 if (cqe->flags & IORING_CQE_F_MORE) in do_tx() 175 if (cqe->flags & IORING_CQE_F_MORE) { in do_tx() 176 if (cqe in do_tx() [all...] |
| /linux/drivers/net/ethernet/qlogic/qede/ |
| H A D | qede_fp.c | 651 struct eth_fast_path_rx_tpa_start_cqe *cqe) in qede_set_gro_params() argument 653 u16 parsing_flags = le16_to_cpu(cqe->pars_flags.flags); in qede_set_gro_params() 661 skb_shinfo(skb)->gso_size = __le16_to_cpu(cqe->len_on_first_bd) - in qede_set_gro_params() 662 cqe->header_len; in qede_set_gro_params() 839 struct eth_fast_path_rx_tpa_start_cqe *cqe) in qede_tpa_start() argument 841 struct qede_agg_info *tpa_info = &rxq->tpa_info[cqe->tpa_agg_index]; in qede_tpa_start() 846 pad = cqe->placement_offset + rxq->rx_headroom; in qede_tpa_start() 849 le16_to_cpu(cqe->len_on_first_bd), in qede_tpa_start() 871 if ((le16_to_cpu(cqe->pars_flags.flags) >> in qede_tpa_start() 874 tpa_info->vlan_tag = le16_to_cpu(cqe->vlan_tag); in qede_tpa_start() [all …]
|
| /linux/drivers/infiniband/ulp/iser/ |
| H A D | iscsi_iser.h | 244 struct ib_cqe cqe; member 271 struct ib_cqe cqe; member 291 struct ib_cqe cqe; member 552 iser_rx(struct ib_cqe *cqe) in iser_rx() argument 554 return container_of(cqe, struct iser_rx_desc, cqe); in iser_rx() 558 iser_tx(struct ib_cqe *cqe) in iser_tx() argument 560 return container_of(cqe, struct iser_tx_desc, cqe); in iser_tx() 564 iser_login(struct ib_cqe *cqe) in iser_login() argument 566 return container_of(cqe, struct iser_login_desc, cqe); in iser_login()
|
| /linux/drivers/net/ethernet/marvell/octeontx2/nic/ |
| H A D | otx2_txrx.c | 42 struct nix_cqe_rx_s *cqe, 107 struct nix_cqe_tx_s *cqe, in otx2_xdp_snd_pkt_handler() argument 110 struct nix_send_comp_s *snd_comp = &cqe->comp; in otx2_xdp_snd_pkt_handler() 128 struct nix_cqe_tx_s *cqe, in otx2_snd_pkt_handler() argument 131 struct nix_send_comp_s *snd_comp = &cqe->comp; in otx2_snd_pkt_handler() 225 struct nix_cqe_rx_s *cqe, struct sk_buff *skb) in otx2_set_rxhash() argument 241 hash = cqe->hdr.flow_tag; in otx2_set_rxhash() 246 static void otx2_free_rcv_seg(struct otx2_nic *pfvf, struct nix_cqe_rx_s *cqe, in otx2_free_rcv_seg() argument 249 struct nix_rx_sg_s *sg = &cqe->sg; in otx2_free_rcv_seg() 255 end = start + ((cqe in otx2_free_rcv_seg() 267 otx2_check_rcv_errors(struct otx2_nic * pfvf,struct nix_cqe_rx_s * cqe,int qidx) otx2_check_rcv_errors() argument 333 otx2_rcv_pkt_handler(struct otx2_nic * pfvf,struct napi_struct * napi,struct otx2_cq_queue * cq,struct nix_cqe_rx_s * cqe,bool * need_xdp_flush) otx2_rcv_pkt_handler() argument 398 struct nix_cqe_rx_s *cqe; otx2_rx_napi_handler() local 469 struct nix_cqe_tx_s *cqe; otx2_tx_napi_handler() local 1278 struct nix_cqe_rx_s *cqe; otx2_cleanup_rx_cqes() local 1323 struct nix_cqe_tx_s *cqe; otx2_cleanup_tx_cqes() local 1490 otx2_xdp_rcv_pkt_handler(struct otx2_nic * pfvf,struct bpf_prog * prog,struct nix_cqe_rx_s * cqe,struct otx2_cq_queue * cq,u32 * metasize,bool * need_xdp_flush) otx2_xdp_rcv_pkt_handler() argument [all...] |
| /linux/drivers/net/ethernet/huawei/hinic/ |
| H A D | hinic_hw_qp.c | 324 cqe_size = wq->q_depth * sizeof(*rq->cqe); in alloc_rq_cqe() 325 rq->cqe = vzalloc(cqe_size); in alloc_rq_cqe() 326 if (!rq->cqe) in alloc_rq_cqe() 335 rq->cqe[i] = dma_alloc_coherent(&pdev->dev, in alloc_rq_cqe() 336 sizeof(*rq->cqe[i]), in alloc_rq_cqe() 338 if (!rq->cqe[i]) in alloc_rq_cqe() 346 dma_free_coherent(&pdev->dev, sizeof(*rq->cqe[j]), rq->cqe[j], in alloc_rq_cqe() 352 vfree(rq->cqe); in alloc_rq_cqe() 368 dma_free_coherent(&pdev->dev, sizeof(*rq->cqe[i]), rq->cqe[i], in free_rq_cqe() 372 vfree(rq->cqe); in free_rq_cqe() [all …]
|
| /linux/drivers/net/ethernet/mellanox/mlx5/core/en_accel/ |
| H A D | macsec.h | 32 static inline bool mlx5e_macsec_is_rx_flow(struct mlx5_cqe64 *cqe) in mlx5e_macsec_is_rx_flow() argument 34 return MLX5_MACSEC_METADATA_MARKER(be32_to_cpu(cqe->ft_metadata)); in mlx5e_macsec_is_rx_flow() 38 struct mlx5_cqe64 *cqe); 46 static inline bool mlx5e_macsec_is_rx_flow(struct mlx5_cqe64 *cqe) { return false; } in mlx5e_macsec_is_rx_flow() argument 49 struct mlx5_cqe64 *cqe) in mlx5e_macsec_offload_handle_rx_skb() argument
|
| H A D | psp_rxtx.h | 83 static inline bool mlx5e_psp_is_rx_flow(struct mlx5_cqe64 *cqe) in mlx5e_psp_is_rx_flow() argument 85 return MLX5_PSP_METADATA_MARKER(be32_to_cpu(cqe->ft_metadata)); in mlx5e_psp_is_rx_flow() 89 mlx5e_psp_shampo_can_merge(struct sk_buff *skb, struct mlx5_cqe64 *cqe) 92 return !skb_ext_exist(skb, SKB_EXT_PSP) && !mlx5e_psp_is_rx_flow(cqe); in mlx5e_psp_is_offload_state() 96 struct mlx5_cqe64 *cqe); in mlx5e_psp_is_offload() 115 static inline bool mlx5e_psp_is_rx_flow(struct mlx5_cqe64 *cqe) in mlx5e_psp_offload_handle_rx_skb() argument 121 mlx5e_psp_shampo_can_merge(struct sk_buff *skb, struct mlx5_cqe64 *cqe) 128 struct mlx5_cqe64 *cqe) 108 mlx5e_psp_is_rx_flow(struct mlx5_cqe64 * cqe) mlx5e_psp_is_rx_flow() argument
|
| /linux/tools/testing/selftests/ublk/ |
| H A D | batch.c | 319 const struct io_uring_cqe *cqe) in ublk_compl_batch_fetch() argument 321 unsigned short buf_idx = user_data_to_tag(cqe->user_data); in ublk_compl_batch_fetch() 323 unsigned end = start + cqe->res; in ublk_compl_batch_fetch() 327 if (cqe->res < 0) in ublk_compl_batch_fetch() 331 ublk_err("%s: fetch duplicated ios offset %u count %u\n", __func__, start, cqe->res); in ublk_compl_batch_fetch() 408 const struct io_uring_cqe *cqe, in ublk_batch_compl_commit_cmd() argument 411 unsigned short buf_idx = user_data_to_tag(cqe->user_data); in ublk_batch_compl_commit_cmd() 415 if (cqe->res < 0) { in ublk_batch_compl_commit_cmd() 417 __func__, cqe->res); in ublk_batch_compl_commit_cmd() 420 ublk_assert(cqe in ublk_batch_compl_commit_cmd() 426 ublk_batch_compl_cmd(struct ublk_thread * t,const struct io_uring_cqe * cqe) ublk_batch_compl_cmd() argument [all...] |
| H A D | null.c | 95 const struct io_uring_cqe *cqe) in ublk_null_io_done() 97 unsigned tag = user_data_to_tag(cqe->user_data); in ublk_null_io_done() 98 unsigned op = user_data_to_op(cqe->user_data); in ublk_null_io_done() 101 if (cqe->res < 0 || op != ublk_cmd_op_nr(UBLK_U_IO_UNREGISTER_IO_BUF)) { in ublk_null_io_done() 103 io->result = cqe->res; in ublk_null_io_done() 104 if (cqe->res < 0) in ublk_null_io_done() 106 __func__, op, cqe->user_data); in ublk_null_io_done() 93 ublk_null_io_done(struct ublk_thread * t,struct ublk_queue * q,const struct io_uring_cqe * cqe) ublk_null_io_done() argument
|
| H A D | file_backed.c | 169 const struct io_uring_cqe *cqe) in ublk_loop_memset_file() 171 unsigned tag = user_data_to_tag(cqe->user_data); in ublk_loop_memset_file() 172 unsigned op = user_data_to_op(cqe->user_data); in ublk_loop_memset_file() 175 if (cqe->res < 0) { in ublk_loop_memset_file() 176 io->result = cqe->res; in ublk_loop_memset_file() 178 __func__, op, cqe->user_data); in ublk_loop_tgt_init() 180 __s32 data_len = user_data_to_tgt_data(cqe->user_data) in ublk_loop_tgt_init() 181 ? ublk_integrity_data_len(q, cqe->res) in ublk_loop_tgt_init() 182 : cqe->res; in ublk_loop_tgt_init() 131 ublk_loop_io_done(struct ublk_thread * t,struct ublk_queue * q,const struct io_uring_cqe * cqe) ublk_loop_io_done() argument
|
| /linux/drivers/scsi/qedi/ |
| H A D | qedi_fw.c | 31 union iscsi_cqe *cqe, in qedi_process_logout_resp() argument 42 cqe_logout_response = &cqe->cqe_common.iscsi_hdr.logout_response; in qedi_process_logout_resp() 50 resp_hdr->itt = build_itt(cqe->cqe_solicited.itid, conn->session->age); in qedi_process_logout_resp() 82 union iscsi_cqe *cqe, in qedi_process_text_resp() argument 97 cqe_text_response = &cqe->cqe_common.iscsi_hdr.text_response; in qedi_process_text_resp() 109 resp_hdr_ptr->itt = build_itt(cqe->cqe_solicited.itid, in qedi_process_text_resp() 179 union iscsi_cqe *cqe, in qedi_process_tmf_resp() 191 cqe_tmp_response = &cqe->cqe_common.iscsi_hdr.tmf_response; in qedi_process_tmf_resp() 215 resp_hdr_ptr->itt = build_itt(cqe->cqe_solicited.itid, in qedi_process_tmf_resp() 260 union iscsi_cqe *cqe, in qedi_process_login_resp() 178 qedi_process_tmf_resp(struct qedi_ctx * qedi,union iscsi_cqe * cqe,struct iscsi_task * task,struct qedi_conn * qedi_conn) qedi_process_tmf_resp() argument 258 qedi_process_login_resp(struct qedi_ctx * qedi,union iscsi_cqe * cqe,struct iscsi_task * task,struct qedi_conn * qedi_conn) qedi_process_login_resp() argument 320 qedi_get_rq_bdq_buf(struct qedi_ctx * qedi,struct iscsi_cqe_unsolicited * cqe,char * ptr,int len) qedi_get_rq_bdq_buf() argument 359 qedi_put_rq_bdq_buf(struct qedi_ctx * qedi,struct iscsi_cqe_unsolicited * cqe,int count) qedi_put_rq_bdq_buf() argument 397 qedi_unsol_pdu_adjust_bdq(struct qedi_ctx * qedi,struct iscsi_cqe_unsolicited * cqe,u32 pdu_len,u32 num_bdqs,char * bdq_data) qedi_unsol_pdu_adjust_bdq() argument 409 qedi_process_nopin_mesg(struct qedi_ctx * qedi,union iscsi_cqe * cqe,struct iscsi_task * task,struct qedi_conn * qedi_conn,u16 que_idx) qedi_process_nopin_mesg() argument 480 qedi_process_async_mesg(struct qedi_ctx * qedi,union iscsi_cqe * cqe,struct iscsi_task * task,struct qedi_conn * qedi_conn,u16 que_idx) qedi_process_async_mesg() argument 534 qedi_process_reject_mesg(struct qedi_ctx * qedi,union iscsi_cqe * cqe,struct iscsi_task * task,struct qedi_conn * qedi_conn,uint16_t que_idx) qedi_process_reject_mesg() argument 576 qedi_scsi_completion(struct qedi_ctx * qedi,union iscsi_cqe * cqe,struct iscsi_task * task,struct iscsi_conn * conn) qedi_scsi_completion() argument 674 qedi_mtask_completion(struct qedi_ctx * qedi,union iscsi_cqe * cqe,struct iscsi_task * task,struct qedi_conn * conn,uint16_t que_idx) qedi_mtask_completion() argument 710 qedi_process_nopin_local_cmpl(struct qedi_ctx * qedi,struct iscsi_cqe_solicited * cqe,struct iscsi_task * task,struct qedi_conn * qedi_conn) qedi_process_nopin_local_cmpl() argument 730 qedi_process_cmd_cleanup_resp(struct qedi_ctx * qedi,struct iscsi_cqe_solicited * cqe,struct iscsi_conn * conn) qedi_process_cmd_cleanup_resp() argument 824 union iscsi_cqe *cqe = &work->cqe; qedi_fp_process_cqes() local [all...] |
| /linux/include/linux/mlx5/ |
| H A D | device.h | 709 static inline u8 mlx5_get_cqe_format(struct mlx5_cqe64 *cqe) 711 return (cqe->op_own >> 2) & 0x3; 714 static inline u8 get_cqe_opcode(struct mlx5_cqe64 *cqe) 716 return cqe->op_own >> 4; 719 static inline u8 get_cqe_enhanced_num_mini_cqes(struct mlx5_cqe64 *cqe) 722 return get_cqe_opcode(cqe) + 1; 725 static inline u8 get_cqe_lro_tcppsh(struct mlx5_cqe64 *cqe) 727 return (cqe->lro.tcppsh_abort_dupack >> 6) & 1; 730 static inline u8 get_cqe_l4_hdr_type(struct mlx5_cqe64 *cqe) 732 return (cqe 910 mlx5_get_cqe_format(struct mlx5_cqe64 * cqe) mlx5_get_cqe_format() argument 915 get_cqe_opcode(struct mlx5_cqe64 * cqe) get_cqe_opcode() argument 920 get_cqe_enhanced_num_mini_cqes(struct mlx5_cqe64 * cqe) get_cqe_enhanced_num_mini_cqes() argument 926 get_cqe_lro_tcppsh(struct mlx5_cqe64 * cqe) get_cqe_lro_tcppsh() argument 931 get_cqe_l4_hdr_type(struct mlx5_cqe64 * cqe) get_cqe_l4_hdr_type() argument 936 cqe_is_tunneled(struct mlx5_cqe64 * cqe) cqe_is_tunneled() argument 941 get_cqe_tls_offload(struct mlx5_cqe64 * cqe) get_cqe_tls_offload() argument 946 cqe_has_vlan(const struct mlx5_cqe64 * cqe) cqe_has_vlan() argument 951 get_cqe_ts(struct mlx5_cqe64 * cqe) get_cqe_ts() argument 961 get_cqe_flow_tag(struct mlx5_cqe64 * cqe) get_cqe_flow_tag() argument 966 get_cqe_lro_num_seg(struct mlx5_cqe64 * cqe) get_cqe_lro_num_seg() argument 982 mpwrq_get_cqe_byte_cnt(struct mlx5_cqe64 * cqe) mpwrq_get_cqe_byte_cnt() argument 994 mpwrq_get_cqe_consumed_strides(struct mlx5_cqe64 * cqe) mpwrq_get_cqe_consumed_strides() argument 1001 mpwrq_is_filler_cqe(struct mlx5_cqe64 * cqe) mpwrq_is_filler_cqe() argument 1008 mpwrq_get_cqe_stride_index(struct mlx5_cqe64 * cqe) mpwrq_get_cqe_stride_index() argument [all...] |
| /linux/drivers/net/ethernet/mellanox/mlx4/ |
| H A D | en_rx.c | 594 * the (IPv4 | IPv6) bits are set in cqe->status. 596 static int check_csum(struct mlx4_cqe *cqe, struct sk_buff *skb, void *va, in check_csum() argument 614 hw_checksum = csum_unfold((__force __sum16)cqe->checksum); in check_csum() 616 if (cqe->vlan_my_qpn & cpu_to_be32(MLX4_CQE_CVLAN_PRESENT_MASK) && in check_csum() 623 if (cqe->status & cpu_to_be16(MLX4_CQE_STATUS_IPV6)) in check_csum() 637 struct mlx4_cqe *cqe; member 651 mlx4_en_get_cqe_ts(_ctx->cqe)); in mlx4_en_xdp_rx_timestamp() 659 struct mlx4_cqe *cqe = _ctx->cqe; in mlx4_en_xdp_rx_hash() local 666 *hash = be32_to_cpu(cqe in mlx4_en_xdp_rx_hash() 694 struct mlx4_cqe *cqe; mlx4_en_process_rx_cq() local [all...] |
| /linux/include/trace/events/ |
| H A D | io_uring.h | 124 __entry->user_data = req->cqe.user_data; 161 __entry->user_data = req->cqe.user_data; 202 __entry->data = req->cqe.user_data; 302 __entry->user_data = req->cqe.user_data; 323 TP_PROTO(struct io_ring_ctx *ctx, void *req, struct io_uring_cqe *cqe), 325 TP_ARGS(ctx, req, cqe), 340 __entry->user_data = cqe->user_data; 341 __entry->res = cqe->res; 342 __entry->cflags = cqe->flags; 343 …__entry->extra1 = ctx->flags & IORING_SETUP_CQE32 || cqe->flags & IORING_CQE_F_32 ? cqe->big_cqe[… [all …]
|
| /linux/io_uring/ |
| H A D | cmd_net.c | 76 struct io_uring_cqe cqe[2]; in io_process_timestamp_skb() local 91 cqe->user_data = 0; in io_process_timestamp_skb() 92 cqe->res = tskey; in io_process_timestamp_skb() 93 cqe->flags = IORING_CQE_F_MORE | ctx_cqe32_flags(cmd_to_io_kiocb(cmd)->ctx); in io_process_timestamp_skb() 94 cqe->flags |= tstype << IORING_TIMESTAMP_TYPE_SHIFT; in io_process_timestamp_skb() 96 cqe->flags |= IORING_CQE_F_TSTAMP_HW; in io_process_timestamp_skb() 98 iots = (struct io_timespec *)&cqe[1]; in io_process_timestamp_skb() 101 if (!io_uring_cmd_post_mshot_cqe32(cmd, issue_flags, cqe)) in io_process_timestamp_skb()
|
| H A D | io_uring.h | 303 bool is_cqe32 = req->cqe.flags & IORING_CQE_F_32; in io_fill_cqe_req() 304 struct io_uring_cqe *cqe; in io_fill_cqe_req() 310 if (unlikely(!io_get_cqe(ctx, &cqe, is_cqe32))) in io_fill_cqe_req() 313 memcpy(cqe, &req->cqe, sizeof(*cqe)); in io_fill_cqe_req() 315 memcpy(cqe->big_cqe, &req->big_cqe, sizeof(*cqe)); in io_fill_cqe_req() 320 trace_call__io_uring_complete(req->ctx, req, cqe); 429 /* order cqe store in __io_wq_wake() 301 struct io_uring_cqe *cqe; io_fill_cqe_req() local [all...] |
| H A D | io_uring.c | 419 req->file = io_file_get_fixed(req, req->cqe.fd, issue_flags); in io_queue_iowq() 421 req->file = io_file_get_normal(req, req->cqe.fd); in io_queue_iowq() 586 struct io_uring_cqe *cqe; in io_cqring_overflow_flush_locked() 592 if (ocqe->cqe.flags & IORING_CQE_F_32 || in io_put_task() 601 if (!io_get_cqe_overflow(ctx, &cqe, true, is_cqe32)) in io_put_task() 603 memcpy(cqe, &ocqe->cqe, cqe_size); in io_put_task() 715 struct io_cqe *cqe, 722 if (cqe->flags & IORING_CQE_F_32 || ctx->flags & IORING_SETUP_CQE32) { in io_cqe_cache_refill() 728 trace_io_uring_cqe_overflow(ctx, cqe in io_cqe_cache_refill() 526 struct io_uring_cqe *cqe; __io_cqring_overflow_flush() local 653 io_alloc_ocqe(struct io_ring_ctx * ctx,struct io_cqe * cqe,struct io_big_cqe * big_cqe,gfp_t gfp) io_alloc_ocqe() argument 702 struct io_uring_cqe *cqe = &ctx->rings->cqes[off]; io_fill_nop_cqe() local 763 struct io_uring_cqe *cqe; io_fill_cqe_aux32() local 779 struct io_uring_cqe *cqe; io_fill_cqe_aux() local 802 io_cqe_overflow(struct io_ring_ctx * ctx,struct io_cqe * cqe,struct io_big_cqe * big_cqe) io_cqe_overflow() argument 814 io_cqe_overflow_locked(struct io_ring_ctx * ctx,struct io_cqe * cqe,struct io_big_cqe * big_cqe) io_cqe_overflow_locked() argument 830 struct io_cqe cqe = io_init_cqe(user_data, res, cflags); io_post_aux_cqe() local 848 struct io_cqe cqe = io_init_cqe(user_data, res, cflags); io_add_aux_cqe() local [all...] |
| /linux/drivers/net/ethernet/mellanox/mlx5/core/steering/hws/ |
| H A D | send.c | 376 struct mlx5_cqe64 *cqe) 378 u8 wqe_opcode = cqe ? be32_to_cpu(cqe->sop_drop_qpn) >> 24 : 0; in hws_send_engine_dump_error_cqe() 380 u32 opcode = cqe ? get_cqe_opcode(cqe) : 0; in hws_send_engine_dump_error_cqe() 385 * want to pollute dmesg. Print only the first bad cqe per engine, in hws_send_engine_dump_error_cqe() 415 if (!cqe) { in hws_send_engine_dump_error_cqe() 421 mlx5hws_err(ctx, " rule 0x%08llx: cqe->opcode = %d %s\n", in hws_send_engine_dump_error_cqe() 427 struct mlx5_err_cqe *err_cqe = (struct mlx5_err_cqe *)cqe; in hws_send_engine_dump_error_cqe() 452 " rule 0x%08llx: cqe in hws_send_engine_dump_error_cqe() 379 hws_send_engine_dump_error_cqe(struct mlx5hws_send_engine * queue,struct mlx5hws_send_ring_priv * priv,struct mlx5_cqe64 * cqe) hws_send_engine_dump_error_cqe() argument 486 hws_send_engine_update_rule(struct mlx5hws_send_engine * queue,struct mlx5hws_send_ring_priv * priv,u16 wqe_cnt,enum mlx5hws_flow_op_status * status,struct mlx5_cqe64 * cqe) hws_send_engine_update_rule() argument 545 hws_send_engine_update(struct mlx5hws_send_engine * queue,struct mlx5_cqe64 * cqe,struct mlx5hws_send_ring_priv * priv,struct mlx5hws_flow_op_result res[],s64 * i,u32 res_nb,u16 wqe_cnt) hws_send_engine_update() argument 631 struct mlx5_cqe64 *cqe; hws_send_engine_poll_cq() local 909 struct mlx5_cqe64 *cqe; hws_send_ring_alloc_cq() local 1246 struct mlx5_cqe64 cqe; hws_send_wqe_fw() local [all...] |
| /linux/drivers/net/ethernet/mellanox/mlx5/core/en/ |
| H A D | xdp.c | 193 _ctx->rq->clock, get_cqe_ts(_ctx->cqe)); in mlx5e_xdp_rx_timestamp() 248 const struct mlx5_cqe64 *cqe = _ctx->cqe; in mlx5e_xdp_rx_hash() local 254 *hash = be32_to_cpu(cqe->rss_hash_result); in mlx5e_xdp_rx_hash() 256 hash_type = cqe->rss_hash_type; in mlx5e_xdp_rx_hash() 270 const struct mlx5_cqe64 *cqe = _ctx->cqe; in mlx5e_xdp_rx_vlan_tag() local 272 if (!cqe_has_vlan(cqe)) in mlx5e_xdp_rx_vlan_tag() 276 *vlan_tci = be16_to_cpu(cqe->vlan_info); in mlx5e_xdp_rx_vlan_tag() 287 struct mlx5_cqe64 *cqe; member 673 mlx5e_free_xdpsq_desc(struct mlx5e_xdpsq * sq,struct mlx5e_xdp_wqe_info * wi,u32 * xsk_frames,struct xdp_frame_bulk * bq,struct mlx5e_cq * cq,struct mlx5_cqe64 * cqe) mlx5e_free_xdpsq_desc() argument 762 struct mlx5_cqe64 *cqe; mlx5e_poll_xdpsq_cq() local [all...] |
| /linux/tools/testing/vsock/ |
| H A D | vsock_uring_test.c | 70 struct io_uring_cqe *cqe; in vsock_io_uring_client() 106 if (io_uring_wait_cqe(&ring, &cqe)) in vsock_io_uring_client() 109 io_uring_cqe_seen(&ring, cqe); in vsock_io_uring_client() 151 struct io_uring_cqe *cqe; in vsock_io_uring_server() 163 if (io_uring_wait_cqe(&ring, &cqe)) in vsock_io_uring_server() 166 recv_len += cqe->res; in vsock_io_uring_server() 167 io_uring_cqe_seen(&ring, cqe); in vsock_io_uring_server() 250 struct io_uring_cqe *cqe; 259 if (io_uring_wait_cqe(&ctx->ring, &cqe)) 262 res = cqe 63 struct io_uring_cqe *cqe; vsock_io_uring_client() local 144 struct io_uring_cqe *cqe; vsock_io_uring_server() local [all...] |
| /linux/drivers/scsi/bnx2i/ |
| H A D | bnx2i.h | 506 struct cqe { struct 650 struct cqe *cq_virt; 654 struct cqe *cq_prod_qe; 655 struct cqe *cq_cons_qe; 656 struct cqe *cq_first_qe; 657 struct cqe *cq_last_qe; 774 struct cqe cqe; member 870 struct cqe *cqe);
|