Lines Matching refs:c2dev
37 static void handle_mq(struct c2_dev *c2dev, u32 index);
38 static void handle_vq(struct c2_dev *c2dev, u32 mq_index);
43 void c2_rnic_interrupt(struct c2_dev *c2dev) in c2_rnic_interrupt() argument
47 while (c2dev->hints_read != be16_to_cpu(*c2dev->hint_count)) { in c2_rnic_interrupt()
48 mq_index = readl(c2dev->regs + PCI_BAR0_HOST_HINT); in c2_rnic_interrupt()
53 c2dev->hints_read++; in c2_rnic_interrupt()
54 handle_mq(c2dev, mq_index); in c2_rnic_interrupt()
62 static void handle_mq(struct c2_dev *c2dev, u32 mq_index) in handle_mq() argument
64 if (c2dev->qptr_array[mq_index] == NULL) { in handle_mq()
80 wake_up(&c2dev->req_vq_wo); in handle_mq()
83 handle_vq(c2dev, mq_index); in handle_mq()
92 handle_vq(c2dev, 1); in handle_mq()
94 c2_ae_event(c2dev, mq_index); in handle_mq()
105 c2_cq_event(c2dev, mq_index); in handle_mq()
115 static void handle_vq(struct c2_dev *c2dev, u32 mq_index) in handle_vq() argument
125 reply_vq = (struct c2_mq *) c2dev->qptr_array[mq_index]; in handle_vq()
136 host_msg = vq_repbuf_alloc(c2dev); in handle_vq()
173 vq_repbuf_free(c2dev, host_msg); in handle_vq()
218 vq_req_put(c2dev, req); in handle_vq()