Home
last modified time | relevance | path

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

/drivers/net/ethernet/huawei/hinic/
Dhinic_hw_eqs.c73 #define CEQE_TYPE(ceqe) (((ceqe) >> CEQE_TYPE_SHIFT) & \ argument
77 #define CEQE_DATA(ceqe) ((ceqe) & CEQE_DATA_MASK) argument
282 static void ceq_event_handler(struct hinic_ceqs *ceqs, u32 ceqe) in ceq_event_handler() argument
290 event = CEQE_TYPE(ceqe); in ceq_event_handler()
303 ceq_cb->handler(ceq_cb->handle, CEQE_DATA(ceqe)); in ceq_event_handler()
317 u32 ceqe; in ceq_irq_handler() local
321 ceqe = *(GET_CURR_CEQ_ELEM(eq)); in ceq_irq_handler()
324 ceqe = be32_to_cpu(ceqe); in ceq_irq_handler()
327 if (HINIC_EQ_ELEM_DESC_GET(ceqe, WRAPPED) == eq->wrapped) in ceq_irq_handler()
330 ceq_event_handler(ceqs, ceqe); in ceq_irq_handler()
[all …]
/drivers/infiniband/hw/erdma/
Derdma_eq.c129 u64 *ceqe; in erdma_ceq_completion_handler() local
136 ceqe = get_next_valid_eqe(&ceq_cb->eq); in erdma_ceq_completion_handler()
137 if (!ceqe) in erdma_ceq_completion_handler()
143 cqn = FIELD_GET(ERDMA_CEQE_HDR_CQN_MASK, READ_ONCE(*ceqe)); in erdma_ceq_completion_handler()
/drivers/infiniband/hw/irdma/
Dctrl.c3793 __le64 *ceqe; in irdma_sc_process_ceq() local
3802 ceqe = IRDMA_GET_CURRENT_CEQ_ELEM(ceq); in irdma_sc_process_ceq()
3803 get_64bit_val(ceqe, 0, &temp); in irdma_sc_process_ceq()
3848 __le64 *ceqe; in irdma_sc_cleanup_ceqes() local
3857 ceqe = IRDMA_GET_CEQ_ELEM_AT_POS(ceq, next); in irdma_sc_cleanup_ceqes()
3859 get_64bit_val(ceqe, 0, &temp); in irdma_sc_cleanup_ceqes()
3866 set_64bit_val(ceqe, 0, temp & IRDMA_CEQE_VALID); in irdma_sc_cleanup_ceqes()
/drivers/infiniband/hw/hns/
Dhns_roce_hw_v2.c6153 struct hns_roce_ceqe *ceqe; in next_ceqe_sw_v2() local
6155 ceqe = hns_roce_buf_offset(eq->mtr.kmem, in next_ceqe_sw_v2()
6159 return (hr_reg_read(ceqe, CEQE_OWNER) ^ in next_ceqe_sw_v2()
6160 !!(eq->cons_index & eq->entries)) ? ceqe : NULL; in next_ceqe_sw_v2()
6166 struct hns_roce_ceqe *ceqe = next_ceqe_sw_v2(eq); in hns_roce_v2_ceq_int() local
6170 while (ceqe) { in hns_roce_v2_ceq_int()
6176 cqn = hr_reg_read(ceqe, CEQE_CQN); in hns_roce_v2_ceq_int()
6183 ceqe = next_ceqe_sw_v2(eq); in hns_roce_v2_ceq_int()