Searched refs:ceqe (Results 1 – 4 of 4) sorted by relevance
/drivers/net/ethernet/huawei/hinic/ |
D | hinic_hw_eqs.c | 73 #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/hns/ |
D | hns_roce_hw_v1.c | 3952 struct hns_roce_ceqe *ceqe = get_ceqe_v1(eq, eq->cons_index); in next_ceqe_sw_v1() local 3954 return (!!(roce_get_bit(ceqe->comp, in next_ceqe_sw_v1() 3956 (!!(eq->cons_index & eq->entries)) ? ceqe : NULL; in next_ceqe_sw_v1() 3962 struct hns_roce_ceqe *ceqe; in hns_roce_v1_ceq_int() local 3966 while ((ceqe = next_ceqe_sw_v1(eq))) { in hns_roce_v1_ceq_int() 3972 cqn = roce_get_field(ceqe->comp, in hns_roce_v1_ceq_int()
|
D | hns_roce_hw_v2.c | 5750 struct hns_roce_ceqe *ceqe; in next_ceqe_sw_v2() local 5752 ceqe = hns_roce_buf_offset(eq->mtr.kmem, in next_ceqe_sw_v2() 5756 return (!!(roce_get_bit(ceqe->comp, HNS_ROCE_V2_CEQ_CEQE_OWNER_S))) ^ in next_ceqe_sw_v2() 5757 (!!(eq->cons_index & eq->entries)) ? ceqe : NULL; in next_ceqe_sw_v2() 5763 struct hns_roce_ceqe *ceqe = next_ceqe_sw_v2(eq); in hns_roce_v2_ceq_int() local 5767 while (ceqe) { in hns_roce_v2_ceq_int() 5773 cqn = roce_get_field(ceqe->comp, HNS_ROCE_V2_CEQE_COMP_CQN_M, in hns_roce_v2_ceq_int() 5781 ceqe = next_ceqe_sw_v2(eq); in hns_roce_v2_ceq_int()
|
/drivers/infiniband/hw/irdma/ |
D | ctrl.c | 3849 __le64 *ceqe; in irdma_sc_process_ceq() local 3858 ceqe = IRDMA_GET_CURRENT_CEQ_ELEM(ceq); in irdma_sc_process_ceq() 3859 get_64bit_val(ceqe, 0, &temp); in irdma_sc_process_ceq() 3904 __le64 *ceqe; in irdma_sc_cleanup_ceqes() local 3913 ceqe = IRDMA_GET_CEQ_ELEM_AT_POS(ceq, next); in irdma_sc_cleanup_ceqes() 3915 get_64bit_val(ceqe, 0, &temp); in irdma_sc_cleanup_ceqes() 3922 set_64bit_val(ceqe, 0, temp & IRDMA_CEQE_VALID); in irdma_sc_cleanup_ceqes()
|