Lines Matching refs:dc2c
314 struct devcmd2_controller *dc2c = vdev->devcmd2; in vnic_dev_cmd2() local
324 posted = ioread32(&dc2c->wq_ctrl->posted_index); in vnic_dev_cmd2()
325 fetch_index = ioread32(&dc2c->wq_ctrl->fetch_index); in vnic_dev_cmd2()
348 dc2c->cmd_ring[posted].cmd = cmd; in vnic_dev_cmd2()
349 dc2c->cmd_ring[posted].flags = 0; in vnic_dev_cmd2()
352 dc2c->cmd_ring[posted].flags |= DEVCMD2_FNORESULT; in vnic_dev_cmd2()
355 dc2c->cmd_ring[posted].args[i] = vdev->args[i]; in vnic_dev_cmd2()
365 iowrite32(new_posted, &dc2c->wq_ctrl->posted_index); in vnic_dev_cmd2()
367 if (dc2c->cmd_ring[posted].flags & DEVCMD2_FNORESULT) in vnic_dev_cmd2()
370 result = dc2c->result + dc2c->next_result; in vnic_dev_cmd2()
371 color = dc2c->color; in vnic_dev_cmd2()
373 dc2c->next_result++; in vnic_dev_cmd2()
374 if (dc2c->next_result == dc2c->result_size) { in vnic_dev_cmd2()
375 dc2c->next_result = 0; in vnic_dev_cmd2()
376 dc2c->color = dc2c->color ? 0 : 1; in vnic_dev_cmd2()