Searched refs:devcmd2 (Results 1 – 4 of 4) sorted by relevance
/drivers/scsi/fnic/ |
D | vnic_dev.c | 72 struct devcmd2_controller *devcmd2; member 322 struct devcmd2_controller *dc2c = vdev->devcmd2; in vnic_dev_cmd2() 430 if (vdev->devcmd2) in vnic_dev_init_devcmd2() 433 vdev->devcmd2 = kzalloc(sizeof(*vdev->devcmd2), GFP_ATOMIC); in vnic_dev_init_devcmd2() 434 if (!vdev->devcmd2) in vnic_dev_init_devcmd2() 437 vdev->devcmd2->color = 1; in vnic_dev_init_devcmd2() 438 vdev->devcmd2->result_size = DEVCMD2_RING_SIZE; in vnic_dev_init_devcmd2() 439 err = vnic_wq_devcmd2_alloc(vdev, &vdev->devcmd2->wq, in vnic_dev_init_devcmd2() 444 fetch_index = ioread32(&vdev->devcmd2->wq.ctrl->fetch_index); in vnic_dev_init_devcmd2() 456 vnic_wq_init_start(&vdev->devcmd2->wq, 0, fetch_index, in vnic_dev_init_devcmd2() [all …]
|
/drivers/net/ethernet/cisco/enic/ |
D | vnic_dev.c | 300 struct devcmd2_controller *dc2c = vdev->devcmd2; in _vnic_dev_cmd2() 388 if (vdev->devcmd2) in vnic_dev_init_devcmd2() 391 vdev->devcmd2 = kzalloc(sizeof(*vdev->devcmd2), GFP_KERNEL); in vnic_dev_init_devcmd2() 392 if (!vdev->devcmd2) in vnic_dev_init_devcmd2() 395 vdev->devcmd2->color = 1; in vnic_dev_init_devcmd2() 396 vdev->devcmd2->result_size = DEVCMD2_RING_SIZE; in vnic_dev_init_devcmd2() 397 err = enic_wq_devcmd2_alloc(vdev, &vdev->devcmd2->wq, DEVCMD2_RING_SIZE, in vnic_dev_init_devcmd2() 402 fetch_index = ioread32(&vdev->devcmd2->wq.ctrl->fetch_index); in vnic_dev_init_devcmd2() 409 enic_wq_init_start(&vdev->devcmd2->wq, 0, fetch_index, fetch_index, 0, in vnic_dev_init_devcmd2() 411 vdev->devcmd2->posted = fetch_index; in vnic_dev_init_devcmd2() [all …]
|
D | vnic_dev.h | 110 struct devcmd2_controller *devcmd2; member
|
/drivers/scsi/snic/ |
D | vnic_dev.c | 66 struct devcmd2_controller *devcmd2; member 264 struct devcmd2_controller *dc2c = vdev->devcmd2; in _svnic_dev_cmd2() 362 if (vdev->devcmd2) in svnic_dev_init_devcmd2() 373 vdev->devcmd2 = dc2c; in svnic_dev_init_devcmd2() 429 vdev->devcmd2 = NULL; in svnic_dev_init_devcmd2() 436 struct devcmd2_controller *dc2c = vdev->devcmd2; in vnic_dev_deinit_devcmd2() 438 vdev->devcmd2 = NULL; in vnic_dev_deinit_devcmd2() 716 if (vdev->devcmd2) in svnic_dev_unregister()
|