Home
last modified time | relevance | path

Searched refs:head_masked (Results 1 – 4 of 4) sorted by relevance

/f-stack/dpdk/drivers/net/ena/base/
H A Dena_eth_com.c12 u16 expected_phase, head_masked; in ena_com_get_next_rx_cdesc() local
15 head_masked = io_cq->head & (io_cq->q_depth - 1); in ena_com_get_next_rx_cdesc()
19 + (head_masked * io_cq->cdesc_entry_size_in_bytes)); in ena_com_get_next_rx_cdesc()
232 u16 count = 0, head_masked; in ena_com_cdesc_rx_pkt_get() local
250 head_masked = io_cq->head & (io_cq->q_depth - 1); in ena_com_cdesc_rx_pkt_get()
253 io_cq->cur_rx_pkt_cdesc_start_idx = head_masked; in ena_com_cdesc_rx_pkt_get()
H A Dena_com.c474 u16 head_masked; in ena_com_handle_admin_completion() local
477 head_masked = admin_queue->cq.head & (admin_queue->q_depth - 1); in ena_com_handle_admin_completion()
480 cqe = &admin_queue->cq.entries[head_masked]; in ena_com_handle_admin_completion()
491 head_masked++; in ena_com_handle_admin_completion()
493 if (unlikely(head_masked == admin_queue->q_depth)) { in ena_com_handle_admin_completion()
494 head_masked = 0; in ena_com_handle_admin_completion()
498 cqe = &admin_queue->cq.entries[head_masked]; in ena_com_handle_admin_completion()
/f-stack/freebsd/contrib/ena-com/
H A Dena_eth_com.c40 u16 expected_phase, head_masked; in ena_com_get_next_rx_cdesc() local
43 head_masked = io_cq->head & (io_cq->q_depth - 1); in ena_com_get_next_rx_cdesc()
47 + (head_masked * io_cq->cdesc_entry_size_in_bytes)); in ena_com_get_next_rx_cdesc()
267 u16 count = 0, head_masked; in ena_com_cdesc_rx_pkt_get() local
285 head_masked = io_cq->head & (io_cq->q_depth - 1); in ena_com_cdesc_rx_pkt_get()
288 io_cq->cur_rx_pkt_cdesc_start_idx = head_masked; in ena_com_cdesc_rx_pkt_get()
H A Dena_com.c517 u16 head_masked; in ena_com_handle_admin_completion() local
520 head_masked = admin_queue->cq.head & (admin_queue->q_depth - 1); in ena_com_handle_admin_completion()
523 cqe = &admin_queue->cq.entries[head_masked]; in ena_com_handle_admin_completion()
534 head_masked++; in ena_com_handle_admin_completion()
536 if (unlikely(head_masked == admin_queue->q_depth)) { in ena_com_handle_admin_completion()
537 head_masked = 0; in ena_com_handle_admin_completion()
541 cqe = &admin_queue->cq.entries[head_masked]; in ena_com_handle_admin_completion()