Lines Matching refs:eeq

1150 static void efa_com_arm_eq(struct efa_com_dev *edev, struct efa_com_eq *eeq)  in efa_com_arm_eq()  argument
1154 EFA_SET(&val, EFA_REGS_EQ_DB_EQN, eeq->eqn); in efa_com_arm_eq()
1161 struct efa_com_eq *eeq) in efa_com_eq_comp_intr_handler() argument
1168 ci = eeq->cc & (eeq->depth - 1); in efa_com_eq_comp_intr_handler()
1169 phase = eeq->phase; in efa_com_eq_comp_intr_handler()
1170 eqe = &eeq->eqes[ci]; in efa_com_eq_comp_intr_handler()
1180 eeq->cb(eeq, eqe); in efa_com_eq_comp_intr_handler()
1186 if (ci == eeq->depth) { in efa_com_eq_comp_intr_handler()
1191 eqe = &eeq->eqes[ci]; in efa_com_eq_comp_intr_handler()
1194 eeq->cc += processed; in efa_com_eq_comp_intr_handler()
1195 eeq->phase = phase; in efa_com_eq_comp_intr_handler()
1196 efa_com_arm_eq(eeq->edev, eeq); in efa_com_eq_comp_intr_handler()
1199 void efa_com_eq_destroy(struct efa_com_dev *edev, struct efa_com_eq *eeq) in efa_com_eq_destroy() argument
1202 .eqn = eeq->eqn, in efa_com_eq_destroy()
1206 dma_free_coherent(edev->dmadev, eeq->depth * sizeof(*eeq->eqes), in efa_com_eq_destroy()
1207 eeq->eqes, eeq->dma_addr); in efa_com_eq_destroy()
1210 int efa_com_eq_init(struct efa_com_dev *edev, struct efa_com_eq *eeq, in efa_com_eq_init() argument
1218 params.entry_size_in_bytes = sizeof(*eeq->eqes); in efa_com_eq_init()
1223 eeq->eqes = dma_alloc_coherent(edev->dmadev, in efa_com_eq_init()
1224 params.depth * sizeof(*eeq->eqes), in efa_com_eq_init()
1226 if (!eeq->eqes) in efa_com_eq_init()
1233 eeq->eqn = result.eqn; in efa_com_eq_init()
1234 eeq->edev = edev; in efa_com_eq_init()
1235 eeq->dma_addr = params.dma_addr; in efa_com_eq_init()
1236 eeq->phase = 1; in efa_com_eq_init()
1237 eeq->depth = params.depth; in efa_com_eq_init()
1238 eeq->cb = cb; in efa_com_eq_init()
1239 efa_com_arm_eq(edev, eeq); in efa_com_eq_init()
1244 dma_free_coherent(edev->dmadev, params.depth * sizeof(*eeq->eqes), in efa_com_eq_init()
1245 eeq->eqes, params.dma_addr); in efa_com_eq_init()