Lines Matching refs:dc2c
310 struct devcmd2_controller *dc2c = vdev->devcmd2; in vnic_dev_cmd2() local
320 posted = ioread32(&dc2c->wq_ctrl->posted_index); in vnic_dev_cmd2()
321 fetch_index = ioread32(&dc2c->wq_ctrl->fetch_index); in vnic_dev_cmd2()
344 dc2c->cmd_ring[posted].cmd = cmd; in vnic_dev_cmd2()
345 dc2c->cmd_ring[posted].flags = 0; in vnic_dev_cmd2()
348 dc2c->cmd_ring[posted].flags |= DEVCMD2_FNORESULT; in vnic_dev_cmd2()
351 dc2c->cmd_ring[posted].args[i] = vdev->args[i]; in vnic_dev_cmd2()
361 iowrite32(new_posted, &dc2c->wq_ctrl->posted_index); in vnic_dev_cmd2()
363 if (dc2c->cmd_ring[posted].flags & DEVCMD2_FNORESULT) in vnic_dev_cmd2()
366 result = dc2c->result + dc2c->next_result; in vnic_dev_cmd2()
367 color = dc2c->color; in vnic_dev_cmd2()
369 dc2c->next_result++; in vnic_dev_cmd2()
370 if (dc2c->next_result == dc2c->result_size) { in vnic_dev_cmd2()
371 dc2c->next_result = 0; in vnic_dev_cmd2()
372 dc2c->color = dc2c->color ? 0 : 1; in vnic_dev_cmd2()