Home
last modified time | relevance | path

Searched refs:hw_ci (Results 1 – 3 of 3) sorted by relevance

/linux/drivers/net/ethernet/huawei/hinic/
H A Dhinic_hw_dev.c1137 struct hinic_cmd_hw_ci hw_ci; in hinic_hwdev_hw_ci_addr_set() local
1139 hw_ci.dma_attr_off = 0; in hinic_hwdev_hw_ci_addr_set()
1140 hw_ci.pending_limit = pending_limit; in hinic_hwdev_hw_ci_addr_set()
1141 hw_ci.coalesc_timer = coalesc_timer; in hinic_hwdev_hw_ci_addr_set()
1143 hw_ci.msix_en = 1; in hinic_hwdev_hw_ci_addr_set()
1144 hw_ci.msix_entry_idx = sq->msix_entry; in hinic_hwdev_hw_ci_addr_set()
1146 hw_ci.func_idx = HINIC_HWIF_FUNC_IDX(hwif); in hinic_hwdev_hw_ci_addr_set()
1148 hw_ci.sq_id = qp->q_id; in hinic_hwdev_hw_ci_addr_set()
1150 hw_ci.ci_addr = ADDR_IN_4BYTES(sq->hw_ci_dma_addr); in hinic_hwdev_hw_ci_addr_set()
1156 &hw_ci, sizeof(hw_ci), NULL, in hinic_hwdev_hw_ci_addr_set()
H A Dhinic_tx.c710 u16 hw_ci, sw_ci; in free_tx_poll() local
713 hw_ci = HW_CONS_IDX(sq) & wq->mask; in free_tx_poll()
720 (((hw_ci - sw_ci) & wq->mask) * wq->wqebb_size < wqe_size)) in free_tx_poll()
/linux/drivers/net/ethernet/huawei/hinic3/
H A Dhinic3_tx.c635 u16 sw_pi, hw_ci; in is_hw_complete_sq_process() local
638 hw_ci = hinic3_get_sq_hw_ci(sq); in is_hw_complete_sq_process()
640 return sw_pi == hw_ci; in is_hw_complete_sq_process()
764 u16 hw_ci, sw_ci, q_id = txq->sq->q_id; in hinic3_tx_poll() local
770 hw_ci = hinic3_get_sq_hw_ci(txq->sq); in hinic3_tx_poll()
778 if (hw_ci == sw_ci || in hinic3_tx_poll()
779 ((hw_ci - sw_ci) & txq->q_mask) < tx_info->wqebb_cnt) in hinic3_tx_poll()