Lines Matching refs:dc2c
283 struct devcmd2_controller *dc2c = vdev->devcmd2; in _vnic_dev_cmd2() local
289 u32 posted = dc2c->posted; in _vnic_dev_cmd2()
291 fetch_index = ioread32(&dc2c->wq_ctrl->fetch_index); in _vnic_dev_cmd2()
303 dc2c->cmd_ring[posted].cmd = cmd; in _vnic_dev_cmd2()
304 dc2c->cmd_ring[posted].flags = 0; in _vnic_dev_cmd2()
307 dc2c->cmd_ring[posted].flags |= DEVCMD2_FNORESULT; in _vnic_dev_cmd2()
310 dc2c->cmd_ring[posted].args[i] = vdev->args[i]; in _vnic_dev_cmd2()
317 iowrite32(new_posted, &dc2c->wq_ctrl->posted_index); in _vnic_dev_cmd2()
318 dc2c->posted = new_posted; in _vnic_dev_cmd2()
320 if (dc2c->cmd_ring[posted].flags & DEVCMD2_FNORESULT) in _vnic_dev_cmd2()
323 result = dc2c->result + dc2c->next_result; in _vnic_dev_cmd2()
324 color = dc2c->color; in _vnic_dev_cmd2()
326 dc2c->next_result++; in _vnic_dev_cmd2()
327 if (dc2c->next_result == dc2c->result_size) { in _vnic_dev_cmd2()
328 dc2c->next_result = 0; in _vnic_dev_cmd2()
329 dc2c->color = dc2c->color ? 0 : 1; in _vnic_dev_cmd2()