Searched refs:io_sq (Results 1 - 6 of 6) sorted by relevance

/freebsd-11-stable/sys/contrib/ena-com/
H A Dena_eth_com.c63 static void *get_sq_desc_regular_queue(struct ena_com_io_sq *io_sq) argument
68 tail_masked = io_sq->tail & (io_sq->q_depth - 1);
70 offset = tail_masked * io_sq->desc_entry_size;
72 return (void *)((uintptr_t)io_sq->desc_addr.virt_addr + offset);
75 static int ena_com_write_bounce_buffer_to_dev(struct ena_com_io_sq *io_sq, argument
78 struct ena_com_llq_info *llq_info = &io_sq->llq_info;
83 dst_tail_mask = io_sq->tail & (io_sq->q_depth - 1);
86 if (is_llq_max_tx_burst_exists(io_sq)) {
118 ena_com_write_header_to_bounce(struct ena_com_io_sq *io_sq, u8 *header_src, u16 header_len) argument
150 get_sq_desc_llq(struct ena_com_io_sq *io_sq) argument
171 ena_com_close_bounce_buffer(struct ena_com_io_sq *io_sq) argument
201 get_sq_desc(struct ena_com_io_sq *io_sq) argument
209 ena_com_sq_update_llq_tail(struct ena_com_io_sq *io_sq) argument
240 ena_com_sq_update_tail(struct ena_com_io_sq *io_sq) argument
301 ena_com_create_meta(struct ena_com_io_sq *io_sq, struct ena_com_tx_meta *ena_meta) argument
347 ena_com_create_and_store_tx_meta_desc(struct ena_com_io_sq *io_sq, struct ena_com_tx_ctx *ena_tx_ctx, bool *have_meta) argument
414 ena_com_prepare_tx(struct ena_com_io_sq *io_sq, struct ena_com_tx_ctx *ena_tx_ctx, int *nb_hw_desc) argument
576 ena_com_rx_pkt(struct ena_com_io_cq *io_cq, struct ena_com_io_sq *io_sq, struct ena_com_rx_ctx *ena_rx_ctx) argument
638 ena_com_add_single_rx_desc(struct ena_com_io_sq *io_sq, struct ena_com_buf *ena_buf, u16 req_id) argument
[all...]
H A Dena_eth_com.h83 int ena_com_prepare_tx(struct ena_com_io_sq *io_sq,
88 struct ena_com_io_sq *io_sq,
91 int ena_com_add_single_rx_desc(struct ena_com_io_sq *io_sq,
103 static inline int ena_com_free_q_entries(struct ena_com_io_sq *io_sq) argument
107 next_to_comp = io_sq->next_to_comp;
108 tail = io_sq->tail;
111 return io_sq->q_depth - 1 - cnt;
115 static inline bool ena_com_sq_have_enough_space(struct ena_com_io_sq *io_sq, argument
120 if (io_sq->mem_queue_type == ENA_ADMIN_PLACEMENT_POLICY_HOST)
121 return ena_com_free_q_entries(io_sq) >
133 ena_com_meta_desc_changed(struct ena_com_io_sq *io_sq, struct ena_com_tx_ctx *ena_tx_ctx) argument
144 is_llq_max_tx_burst_exists(struct ena_com_io_sq *io_sq) argument
150 ena_com_is_doorbell_needed(struct ena_com_io_sq *io_sq, struct ena_com_tx_ctx *ena_tx_ctx) argument
181 ena_com_write_sq_doorbell(struct ena_com_io_sq *io_sq) argument
238 ena_com_comp_ack(struct ena_com_io_sq *io_sq, u16 elem) argument
[all...]
H A Dena_com.c353 struct ena_com_io_sq *io_sq)
358 memset(&io_sq->desc_addr, 0x0, sizeof(io_sq->desc_addr));
360 io_sq->dma_addr_bits = (u8)ena_dev->dma_addr_bits;
361 io_sq->desc_entry_size =
362 (io_sq->direction == ENA_COM_IO_QUEUE_DIRECTION_TX) ?
366 size = io_sq->desc_entry_size * io_sq->q_depth;
367 io_sq->bus = ena_dev->bus;
369 if (io_sq
351 ena_com_init_io_sq(struct ena_com_dev *ena_dev, struct ena_com_create_io_ctx *ctx, struct ena_com_io_sq *io_sq) argument
936 ena_com_destroy_io_sq(struct ena_com_dev *ena_dev, struct ena_com_io_sq *io_sq) argument
971 ena_com_io_queue_free(struct ena_com_dev *ena_dev, struct ena_com_io_sq *io_sq, struct ena_com_io_cq *io_cq) argument
1274 ena_com_create_io_sq(struct ena_com_dev *ena_dev, struct ena_com_io_sq *io_sq, u16 cq_idx) argument
1351 struct ena_com_io_sq *io_sq; local
1494 ena_com_get_io_handlers(struct ena_com_dev *ena_dev, u16 qid, struct ena_com_io_sq **io_sq, struct ena_com_io_cq **io_cq) argument
1929 struct ena_com_io_sq *io_sq; local
1989 struct ena_com_io_sq *io_sq; local
[all...]
H A Dena_com.h474 * @io_sq - IO submission queue handler
480 struct ena_com_io_sq **io_sq,
975 /* ena_com_io_sq_to_ena_dev - Extract ena_com_dev using contained field io_sq.
976 * @io_sq: IO submit queue struct
978 * @return - ena_com_dev struct extracted from io_sq
980 static inline struct ena_com_dev *ena_com_io_sq_to_ena_dev(struct ena_com_io_sq *io_sq) argument
982 return container_of(io_sq, struct ena_com_dev, io_sq_queues[io_sq->qid]);
986 * @io_sq: IO submit queue struct
988 * @return - ena_com_dev struct extracted from io_sq
[all...]
/freebsd-11-stable/sys/dev/ena/
H A Dena_datapath.c534 struct ena_com_io_sq* io_sq; local
554 io_sq = &adapter->ena_dev->io_sq_queues[ena_qid];
572 rc = ena_com_rx_pkt(io_cq, io_sq, &ena_rx_ctx);
656 refill_required = ena_com_free_q_entries(io_sq);
918 struct ena_com_io_sq* io_sq; local
930 io_sq = &ena_dev->io_sq_queues[ena_qid];
972 rc = ena_com_prepare_tx(io_sq, &ena_tx_ctx, &nb_hw_desc);
1047 struct ena_com_io_sq* io_sq; local
1058 io_sq = &adapter->ena_dev->io_sq_queues[ena_qid];
1096 ena_com_write_sq_doorbell(io_sq);
[all...]
H A Dena_netmap.c49 struct ena_com_io_sq *io_sq; member in struct:ena_netmap_ctx
377 ena_com_write_sq_doorbell(ctx->io_sq);
432 ena_com_is_doorbell_needed(ctx->io_sq, &ena_tx_ctx)) {
433 ena_com_write_sq_doorbell(ctx->io_sq);
438 rc = ena_com_prepare_tx(ctx->io_sq, &ena_tx_ctx, &nb_hw_desc);
961 rc = ena_com_rx_pkt(ctx->io_cq, ctx->io_sq, &ena_rx_ctx);
1083 ctx->io_sq = &ctx->adapter->ena_dev->io_sq_queues[ena_qid];

Completed in 118 milliseconds