Lines Matching refs:devcmd2

247 	struct devcmd2_controller *dc2c = vdev->devcmd2;  in _vnic_dev_cmd2()
1040 if (vdev->devcmd2) in vnic_dev_init_devcmd2()
1043 vdev->devcmd2 = malloc(sizeof(*vdev->devcmd2), M_DEVBUF, in vnic_dev_init_devcmd2()
1046 if (!vdev->devcmd2) { in vnic_dev_init_devcmd2()
1050 vdev->devcmd2->color = 1; in vnic_dev_init_devcmd2()
1051 vdev->devcmd2->result_size = DEVCMD2_RING_SIZE; in vnic_dev_init_devcmd2()
1053 err = enic_wq_devcmd2_alloc(vdev, &vdev->devcmd2->wq, DEVCMD2_RING_SIZE, in vnic_dev_init_devcmd2()
1059 vdev->devcmd2->wq_ctrl = vdev->devcmd2->wq.ctrl; in vnic_dev_init_devcmd2()
1060 vdev->devcmd2->cmd_ring = vdev->devcmd2->wq.ring.descs; in vnic_dev_init_devcmd2()
1062 fetch_index = ENIC_BUS_READ_4(vdev->devcmd2->wq.ctrl, TX_FETCH_INDEX); in vnic_dev_init_devcmd2()
1066 enic_wq_init_start(&vdev->devcmd2->wq, 0, fetch_index, fetch_index, 0, in vnic_dev_init_devcmd2()
1068 vdev->devcmd2->posted = fetch_index; in vnic_dev_init_devcmd2()
1069 vnic_wq_enable(&vdev->devcmd2->wq); in vnic_dev_init_devcmd2()
1071 err = vnic_dev_alloc_desc_ring(vdev, &vdev->devcmd2->results_ring, in vnic_dev_init_devcmd2()
1076 vdev->devcmd2->result = vdev->devcmd2->results_ring.descs; in vnic_dev_init_devcmd2()
1077 vdev->args[0] = (u64)vdev->devcmd2->results_ring.base_addr | in vnic_dev_init_devcmd2()
1091 if (vdev->devcmd2->wq_ctrl) in vnic_dev_init_devcmd2()
1092 vnic_wq_free(&vdev->devcmd2->wq); in vnic_dev_init_devcmd2()
1093 if (vdev->devcmd2->result) in vnic_dev_init_devcmd2()
1094 vnic_dev_free_desc_ring(vdev, &vdev->devcmd2->results_ring); in vnic_dev_init_devcmd2()
1095 free(vdev->devcmd2, M_DEVBUF); in vnic_dev_init_devcmd2()
1096 vdev->devcmd2 = NULL; in vnic_dev_init_devcmd2()