Lines Matching refs:dc2c
322 struct devcmd2_controller *dc2c = vdev->devcmd2; in vnic_dev_cmd2() local
332 posted = ioread32(&dc2c->wq_ctrl->posted_index); in vnic_dev_cmd2()
333 fetch_index = ioread32(&dc2c->wq_ctrl->fetch_index); in vnic_dev_cmd2()
356 dc2c->cmd_ring[posted].cmd = cmd; in vnic_dev_cmd2()
357 dc2c->cmd_ring[posted].flags = 0; in vnic_dev_cmd2()
360 dc2c->cmd_ring[posted].flags |= DEVCMD2_FNORESULT; in vnic_dev_cmd2()
363 dc2c->cmd_ring[posted].args[i] = vdev->args[i]; in vnic_dev_cmd2()
373 iowrite32(new_posted, &dc2c->wq_ctrl->posted_index); in vnic_dev_cmd2()
375 if (dc2c->cmd_ring[posted].flags & DEVCMD2_FNORESULT) in vnic_dev_cmd2()
378 result = dc2c->result + dc2c->next_result; in vnic_dev_cmd2()
379 color = dc2c->color; in vnic_dev_cmd2()
381 dc2c->next_result++; in vnic_dev_cmd2()
382 if (dc2c->next_result == dc2c->result_size) { in vnic_dev_cmd2()
383 dc2c->next_result = 0; in vnic_dev_cmd2()
384 dc2c->color = dc2c->color ? 0 : 1; in vnic_dev_cmd2()