Home
last modified time | relevance | path

Searched refs:devcmd2 (Results 1 – 3 of 3) sorted by relevance

/freebsd/sys/dev/enic/
H A Dvnic_wq.c87 if (vdev->devcmd2) { in vnic_dev_deinit_devcmd2()
88 vnic_wq_disable(&vdev->devcmd2->wq); in vnic_dev_deinit_devcmd2()
89 if (vdev->devcmd2->wq_ctrl) in vnic_dev_deinit_devcmd2()
90 vnic_wq_free(&vdev->devcmd2->wq); in vnic_dev_deinit_devcmd2()
91 if (vdev->devcmd2->result) in vnic_dev_deinit_devcmd2()
92 vnic_dev_free_desc_ring(vdev, &vdev->devcmd2->results_ring); in vnic_dev_deinit_devcmd2()
93 free(vdev->devcmd2, M_DEVBUF); in vnic_dev_deinit_devcmd2()
94 vdev->devcmd2 = NULL; in vnic_dev_deinit_devcmd2()
H A Dvnic_dev.c247 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()
[all …]
H A Denic.h155 struct devcmd2_controller *devcmd2; member