Lines Matching refs:afu_dev
297 ipn3ke_hw_init(struct rte_afu_device *afu_dev, in ipn3ke_hw_init() argument
305 rawdev = afu_dev->rawdev; in ipn3ke_hw_init()
307 hw->afu_id.uuid.uuid_low = afu_dev->id.uuid.uuid_low; in ipn3ke_hw_init()
308 hw->afu_id.uuid.uuid_high = afu_dev->id.uuid.uuid_high; in ipn3ke_hw_init()
309 hw->afu_id.port = afu_dev->id.port; in ipn3ke_hw_init()
310 hw->hw_addr = (uint8_t *)(afu_dev->mem_resource[0].addr); in ipn3ke_hw_init()
316 hw->eth_group_bar[0] = (uint8_t *)(afu_dev->mem_resource[index].addr); in ipn3ke_hw_init()
319 hw->eth_group_bar[1] = (uint8_t *)(afu_dev->mem_resource[index].addr); in ipn3ke_hw_init()
331 if (afu_dev->id.uuid.uuid_low == IPN3KE_UUID_VBNG_LOW && in ipn3ke_hw_init()
332 afu_dev->id.uuid.uuid_high == IPN3KE_UUID_VBNG_HIGH) { in ipn3ke_hw_init()
407 if (afu_dev->id.uuid.uuid_low == IPN3KE_UUID_VBNG_LOW && in ipn3ke_hw_init()
408 afu_dev->id.uuid.uuid_high == IPN3KE_UUID_VBNG_HIGH) { in ipn3ke_hw_init()
466 static int ipn3ke_vswitch_probe(struct rte_afu_device *afu_dev) in ipn3ke_vswitch_probe() argument
478 if (!afu_dev->shared.data) { in ipn3ke_vswitch_probe()
480 afu_dev->device.name); in ipn3ke_vswitch_probe()
484 afu_dev->device.numa_node); in ipn3ke_vswitch_probe()
490 afu_dev->shared.data = hw; in ipn3ke_vswitch_probe()
492 rte_spinlock_init(&afu_dev->shared.lock); in ipn3ke_vswitch_probe()
494 hw = afu_dev->shared.data; in ipn3ke_vswitch_probe()
497 retval = ipn3ke_hw_init(afu_dev, hw); in ipn3ke_vswitch_probe()
518 afu_dev->device.name, i); in ipn3ke_vswitch_probe()
536 retval = rte_eth_dev_create(&afu_dev->device, name, in ipn3ke_vswitch_probe()
549 static int ipn3ke_vswitch_remove(struct rte_afu_device *afu_dev) in ipn3ke_vswitch_remove() argument
556 hw = afu_dev->shared.data; in ipn3ke_vswitch_remove()
562 afu_dev->device.name, i); in ipn3ke_vswitch_remove()
564 ethdev = rte_eth_dev_allocated(afu_dev->device.name); in ipn3ke_vswitch_remove()