49 if (mq_index & 0x80000000) {
54 handle_mq(c2dev, mq_index);
65 pr_debug(
"handle_mq: stray activity for mq_index=%d\n",
83 handle_vq(c2dev, mq_index);
115 static void handle_vq(
struct c2_dev *c2dev,
u32 mq_index)
117 void *adapter_msg, *reply_msg;
120 struct c2_mq *reply_vq;
132 if (adapter_msg ==
NULL) {
144 pr_debug(
"handle_vq: no repbufs!\n");
151 memcpy(host_msg, adapter_msg,
sizeof(
tmp));
155 reply_msg = host_msg;
173 pr_debug(
"handle_vq: UNEXPECTEDLY got NULL req\n");
178 err = c2_errno(reply_msg);
182 if (!err)
switch (req->
event) {
190 cm_event.ird = cm_event.ord = 128;
197 cm_event.event = req->
event;
199 cm_event.local_addr = req->
cm_id->local_addr;
200 cm_event.remote_addr = req->
cm_id->remote_addr;
201 cm_event.private_data =
NULL;
202 cm_event.private_data_len = 0;
203 req->
cm_id->event_handler(req->
cm_id, &cm_event);