Searched refs:cons_idx (Results 1 – 12 of 12) sorted by relevance
/linux/include/linux/qed/ |
A D | qed_chain.h | 61 u16 cons_idx; member 67 u32 cons_idx; member 193 return chain->u.chain16.cons_idx; in qed_chain_get_cons_idx() 203 return chain->u.chain32.cons_idx; in qed_chain_get_cons_idx_u32() 352 p_chain->u.chain16.cons_idx++; in qed_chain_return_produced() 354 p_chain->u.chain32.cons_idx++; in qed_chain_return_produced() 355 test_and_skip(p_chain, cons_idx); in qed_chain_return_produced() 452 p_chain->u.chain16.cons_idx++; in qed_chain_consume() 461 p_chain->u.chain32.cons_idx++; in qed_chain_consume() 484 p_chain->u.chain16.cons_idx = 0; in qed_chain_reset() [all …]
|
/linux/drivers/net/ethernet/huawei/hinic/ |
A D | hinic_hw_qp.c | 101 ci_start = atomic_read(&wq->cons_idx); in hinic_sq_prepare_ctxt() 163 ci_start = atomic_read(&wq->cons_idx); in hinic_rq_prepare_ctxt() 716 unsigned int *wqe_size, u16 *cons_idx) in hinic_sq_read_wqebb() argument 729 *skb = sq->saved_skb[*cons_idx]; in hinic_sq_read_wqebb() 759 *skb = sq->saved_skb[*cons_idx]; in hinic_sq_read_wqe() 853 cqe = rq->cqe[*cons_idx]; in hinic_rq_read_wqe() 861 *skb = rq->saved_skb[*cons_idx]; in hinic_rq_read_wqe() 878 u16 *cons_idx) in hinic_rq_read_next_wqe() argument 887 *cons_idx = RQ_MASKED_IDX(rq, *cons_idx + num_wqebbs); in hinic_rq_read_next_wqe() 889 *skb = rq->saved_skb[*cons_idx]; in hinic_rq_read_next_wqe() [all …]
|
A D | hinic_hw_qp.h | 196 unsigned int wqe_size, u16 *cons_idx); 200 unsigned int *wqe_size, u16 *cons_idx); 215 struct sk_buff **skb, u16 *cons_idx); 220 u16 *cons_idx); 222 void hinic_rq_put_wqe(struct hinic_rq *rq, u16 cons_idx, 226 u16 cons_idx, struct hinic_sge *sge);
|
A D | hinic_hw_wq.c | 565 atomic_set(&wq->cons_idx, 0); in hinic_wq_allocate() 669 atomic_set(&wq[i].cons_idx, 0); in hinic_wqs_cmdq_alloc() 811 atomic_add(num_wqebbs, &wq->cons_idx); in hinic_put_wqe() 825 u16 *cons_idx) in hinic_read_wqe() argument 835 curr_cons_idx = atomic_read(&wq->cons_idx); in hinic_read_wqe() 843 *cons_idx = curr_cons_idx; in hinic_read_wqe() 848 copy_wqe_to_shadow(wq, shadow_addr, num_wqebbs, *cons_idx); in hinic_read_wqe() 852 return WQ_PAGE_ADDR(wq, *cons_idx) + WQE_PAGE_OFF(wq, *cons_idx); in hinic_read_wqe() 862 struct hinic_hw_wqe *hinic_read_wqe_direct(struct hinic_wq *wq, u16 cons_idx) in hinic_read_wqe_direct() argument 864 return WQ_PAGE_ADDR(wq, cons_idx) + WQE_PAGE_OFF(wq, cons_idx); in hinic_read_wqe_direct()
|
A D | hinic_hw_wq.h | 44 atomic_t cons_idx; member 104 u16 *cons_idx); 106 struct hinic_hw_wqe *hinic_read_wqe_direct(struct hinic_wq *wq, u16 cons_idx);
|
A D | hinic_hw_eqs.c | 58 #define GET_CURR_AEQ_ELEM(eq) GET_AEQ_ELEM(eq, (eq)->cons_idx) 60 #define GET_CURR_CEQ_ELEM(eq) GET_CEQ_ELEM(eq, (eq)->cons_idx) 205 val |= HINIC_EQ_CI_SET(eq->cons_idx, IDX) | in eq_update_ci() 268 eq->cons_idx++; in aeq_irq_handler() 270 if (eq->cons_idx == eq->q_len) { in aeq_irq_handler() 271 eq->cons_idx = 0; in aeq_irq_handler() 332 eq->cons_idx++; in ceq_irq_handler() 334 if (eq->cons_idx == eq->q_len) { in ceq_irq_handler() 335 eq->cons_idx = 0; in ceq_irq_handler() 740 eq->cons_idx = 0; in init_eq() [all …]
|
A D | hinic_hw_api_cmd.c | 149 chain->cons_idx = get_hw_cons_idx(chain); in chain_busy() 153 if (chain->cons_idx == MASKED_IDX(chain, prod_idx + 1)) { in chain_busy() 155 chain->chain_type, chain->cons_idx, in chain_busy() 310 chain->cons_idx = HINIC_API_CMD_STATUS_GET(status, CONS_IDX); in api_cmd_status_update() 329 if (chain->cons_idx == chain->prod_idx) { in wait_for_status_poll() 825 chain->cons_idx = 0; in api_chain_init()
|
A D | hinic_debugfs.c | 33 return atomic_read(&wq->cons_idx) & wq->mask; in hinic_dbg_get_sq_info() 63 return atomic_read(&wq->cons_idx) & wq->mask; in hinic_dbg_get_rq_info()
|
A D | hinic_hw_api_cmd.h | 181 u32 cons_idx; member
|
A D | hinic_hw_cmdq.c | 602 static void cmdq_sync_cmd_handler(struct hinic_cmdq *cmdq, u16 cons_idx, in cmdq_sync_cmd_handler() argument 605 u16 prod_idx = cons_idx; in cmdq_sync_cmd_handler() 727 HINIC_CMDQ_CTXT_BLOCK_INFO_SET(atomic_read(&wq->cons_idx), CI); in cmdq_init_queue_ctxt()
|
A D | hinic_hw_eqs.h | 181 u32 cons_idx; member
|
A D | hinic_main.c | 849 sw_ci = atomic_read(&sq->wq->cons_idx) & sq->wq->mask; in hinic_tx_timeout()
|
Completed in 24 milliseconds