/openbmc/linux/arch/powerpc/include/asm/ |
H A D | vio.h | 96 struct vio_dev { struct 115 int (*probe)(struct vio_dev *dev, const struct vio_device_id *id); argument 116 void (*remove)(struct vio_dev *dev); 117 void (*shutdown)(struct vio_dev *dev); 121 unsigned long (*get_desired_dma)(struct vio_dev *dev); 138 extern void vio_unregister_device(struct vio_dev *dev); 144 extern struct vio_dev *vio_register_device_node( 149 extern struct vio_dev *vio_find_node(struct device_node *vnode); 150 extern int vio_enable_interrupts(struct vio_dev *dev); 151 extern int vio_disable_interrupts(struct vio_dev *dev); [all …]
|
/openbmc/linux/arch/sparc/kernel/ |
H A D | vio.c | 24 const struct vio_dev *dev) in vio_match_device() 51 const struct vio_dev *vio_dev = to_vio_dev(dev); in vio_hotplug() local 53 add_uevent_var(env, "MODALIAS=vio:T%sS%s", vio_dev->type, vio_dev->compat); in vio_hotplug() 59 struct vio_dev *vio_dev = to_vio_dev(dev); in vio_bus_match() local 71 struct vio_dev *vdev = to_vio_dev(dev); in vio_device_probe() 98 struct vio_dev *vdev = to_vio_dev(dev); in vio_device_remove() 150 ATTRIBUTE_GROUPS(vio_dev); 188 struct vio_dev *vdev; in show_pciobppath_attr() 202 static struct vio_dev *root_vdev; 251 struct vio_dev *vdev) in vio_fill_channel_info() [all …]
|
/openbmc/linux/arch/powerpc/platforms/pseries/ |
H A D | vio.c | 70 struct vio_dev *viodev; 280 struct vio_dev *viodev; in vio_cmo_entitlement_update() 389 struct vio_dev *viodev; in vio_cmo_balance() 486 struct vio_dev *viodev = to_vio_dev(dev); in vio_dma_iommu_alloc_coherent() 509 struct vio_dev *viodev = to_vio_dev(dev); in vio_dma_iommu_free_coherent() 520 struct vio_dev *viodev = to_vio_dev(dev); in vio_dma_iommu_map_page() 1353 struct vio_dev *viodev; in vio_register_device_node() 1568 const struct vio_dev *vio_dev = to_vio_dev(dev); in modalias_show() local 1593 ATTRIBUTE_GROUPS(vio_dev); 1605 const struct vio_dev *vio_dev = to_vio_dev(dev); in vio_bus_match() local [all …]
|
/openbmc/linux/drivers/pci/hotplug/ |
H A D | rpadlpar_core.c | 256 struct vio_dev *vio_dev; in dlpar_add_vio_slot() local 258 vio_dev = vio_find_node(dn); in dlpar_add_vio_slot() 259 if (vio_dev) { in dlpar_add_vio_slot() 260 put_device(&vio_dev->dev); in dlpar_add_vio_slot() 332 struct vio_dev *vio_dev; in dlpar_remove_vio_slot() local 334 vio_dev = vio_find_node(dn); in dlpar_remove_vio_slot() 335 if (!vio_dev) in dlpar_remove_vio_slot() 338 vio_unregister_device(vio_dev); in dlpar_remove_vio_slot() 340 put_device(&vio_dev->dev); in dlpar_remove_vio_slot()
|
/openbmc/linux/drivers/char/tpm/ |
H A D | tpm_ibmvtpm.c | 46 static int ibmvtpm_send_crq_word(struct vio_dev *vdev, u64 w1) in ibmvtpm_send_crq_word() 87 static int ibmvtpm_send_crq(struct vio_dev *vdev, in ibmvtpm_send_crq() 343 static void tpm_ibmvtpm_remove(struct vio_dev *vdev) in tpm_ibmvtpm_remove() 598 static int tpm_ibmvtpm_probe(struct vio_dev *vio_dev, in tpm_ibmvtpm_probe() argument 602 struct device *dev = &vio_dev->dev; in tpm_ibmvtpm_probe() 618 ibmvtpm->vdev = vio_dev; in tpm_ibmvtpm_probe() 638 rc = plpar_hcall_norets(H_REG_CRQ, vio_dev->unit_address, in tpm_ibmvtpm_probe() 648 rc = request_irq(vio_dev->irq, ibmvtpm_interrupt, 0, in tpm_ibmvtpm_probe() 651 dev_err(dev, "Error %d register irq 0x%x\n", rc, vio_dev->irq); in tpm_ibmvtpm_probe() 655 rc = vio_enable_interrupts(vio_dev); in tpm_ibmvtpm_probe() [all …]
|
H A D | tpm_ibmvtpm.h | 34 struct vio_dev *vdev;
|
/openbmc/linux/drivers/char/hw_random/ |
H A D | pseries-rng.c | 41 static unsigned long pseries_rng_get_desired_dma(struct vio_dev *vdev) in pseries_rng_get_desired_dma() 51 static int pseries_rng_probe(struct vio_dev *dev, in pseries_rng_probe() 57 static void pseries_rng_remove(struct vio_dev *dev) in pseries_rng_remove()
|
/openbmc/linux/arch/sparc/include/asm/ |
H A D | vio.h | 332 struct vio_dev { struct 364 int (*probe)(struct vio_dev *dev, const struct vio_device_id *id); argument 365 void (*remove)(struct vio_dev *dev); 366 void (*shutdown)(struct vio_dev *dev); 430 struct vio_dev *vdev; 491 #define to_vio_dev(__dev) container_of_const(__dev, struct vio_dev, dev) 503 int vio_driver_init(struct vio_driver_state *vio, struct vio_dev *vdev, 510 u64 vio_vdev_node(struct mdesc_handle *hp, struct vio_dev *vdev);
|
/openbmc/linux/drivers/tty/hvc/ |
H A D | hvcs.c | 288 struct vio_dev *vdev; 316 struct vio_dev *viod = to_vio_dev(dev); in hvcs_partner_vtys_show() 330 struct vio_dev *viod = to_vio_dev(dev); in hvcs_partner_clcs_show() 355 struct vio_dev *viod = to_vio_dev(dev); in hvcs_current_vty_show() 372 struct vio_dev *viod = to_vio_dev(dev); in hvcs_vterm_state_store() 409 struct vio_dev *viod = to_vio_dev(dev); in hvcs_vterm_state_show() 424 struct vio_dev *viod = to_vio_dev(dev); in hvcs_index_show() 667 struct vio_dev *vdev; in hvcs_destruct_port() 729 struct vio_dev *dev, in hvcs_probe() 998 unsigned int irq, struct vio_dev *vdev) in hvcs_enable_device() [all …]
|
H A D | hvc_vio.c | 296 static int hvc_vio_probe(struct vio_dev *vdev, in hvc_vio_probe()
|
/openbmc/linux/drivers/net/ethernet/sun/ |
H A D | sunvnet.c | 285 struct vio_dev *vdev) in vnet_new() 346 struct vio_dev *vdev) in vnet_find_or_create() 387 struct vio_dev *vdev) in vnet_find_parent() 425 static int vnet_port_probe(struct vio_dev *vdev, const struct vio_device_id *id) in vnet_port_probe() 517 static void vnet_port_remove(struct vio_dev *vdev) in vnet_port_remove()
|
H A D | ldmvsw.c | 226 struct vio_dev *vdev, in vsw_alloc_netdev() 275 static int vsw_port_probe(struct vio_dev *vdev, const struct vio_device_id *id) in vsw_port_probe() 405 static void vsw_port_remove(struct vio_dev *vdev) in vsw_port_remove()
|
/openbmc/linux/drivers/misc/ |
H A D | ibmvmc.c | 144 struct vio_dev *vdev = to_vio_dev(adapter->dev); in ibmvmc_release_crq_queue() 174 struct vio_dev *vdev = to_vio_dev(adapter->dev); in ibmvmc_reset_crq_queue() 243 struct vio_dev *vdev = to_vio_dev(adapter->dev); in ibmvmc_send_crq() 272 static void *alloc_dma_buffer(struct vio_dev *vdev, size_t size, in alloc_dma_buffer() 306 static void free_dma_buffer(struct vio_dev *vdev, size_t size, void *vaddr, in free_dma_buffer() 482 struct vio_dev *vdev; in ibmvmc_return_hmc() 2073 struct vio_dev *vdev = to_vio_dev(adapter->dev); in ibmvmc_task() 2117 struct vio_dev *vdev = to_vio_dev(adapter->dev); in ibmvmc_init_crq_queue() 2190 static int read_dma_window(struct vio_dev *vdev, in read_dma_window() 2235 static int ibmvmc_probe(struct vio_dev *vdev, const struct vio_device_id *id) in ibmvmc_probe() [all …]
|
/openbmc/linux/drivers/scsi/ibmvscsi/ |
H A D | ibmvscsi.c | 146 struct vio_dev *vdev = to_vio_dev(hostdata->dev); in ibmvscsi_release_crq_queue() 198 struct vio_dev *vdev = to_vio_dev(hostdata->dev); in ibmvscsi_send_crq() 215 struct vio_dev *vdev = to_vio_dev(hostdata->dev); in ibmvscsi_task() 288 struct vio_dev *vdev = to_vio_dev(hostdata->dev); in ibmvscsi_reset_crq_queue() 332 struct vio_dev *vdev = to_vio_dev(hostdata->dev); in ibmvscsi_init_crq_queue() 416 struct vio_dev *vdev = to_vio_dev(hostdata->dev); in ibmvscsi_reenable_crq_queue() 2112 static unsigned long ibmvscsi_get_desired_dma(struct vio_dev *vdev) in ibmvscsi_get_desired_dma() 2222 static int ibmvscsi_probe(struct vio_dev *vdev, const struct vio_device_id *id) in ibmvscsi_probe() 2340 static void ibmvscsi_remove(struct vio_dev *vdev) in ibmvscsi_remove()
|
H A D | ibmvfc.c | 735 struct vio_dev *vdev = to_vio_dev(vhost->dev); in ibmvfc_send_crq() 742 struct vio_dev *vdev = to_vio_dev(vhost->dev); in ibmvfc_send_sub_crq() 893 struct vio_dev *vdev = to_vio_dev(vhost->dev); in ibmvfc_release_crq_queue() 921 struct vio_dev *vdev = to_vio_dev(vhost->dev); in ibmvfc_reenable_crq_queue() 959 struct vio_dev *vdev = to_vio_dev(vhost->dev); in ibmvfc_reset_crq() 3754 struct vio_dev *vdev = to_vio_dev(vhost->dev); in ibmvfc_tasklet() 3808 struct vio_dev *vdev = to_vio_dev(dev); in ibmvfc_toggle_scrq_irq() 5831 struct vio_dev *vdev = to_vio_dev(dev); in ibmvfc_init_crq() 5883 struct vio_dev *vdev = to_vio_dev(dev); in ibmvfc_register_scsi_channel() 5935 struct vio_dev *vdev = to_vio_dev(dev); in ibmvfc_deregister_scsi_channel() [all …]
|
/openbmc/linux/drivers/crypto/nx/ |
H A D | nx-common-pseries.c | 127 struct vio_dev *vdev; 172 static unsigned long nx842_get_desired_dma(struct vio_dev *viodev) in nx842_get_desired_dma() 1030 static int nx842_probe(struct vio_dev *viodev, in nx842_probe() 1112 static void nx842_remove(struct vio_dev *viodev) in nx842_remove()
|
H A D | nx.c | 45 struct vio_dev *viodev = nx_driver.viodev; in nx_hcall_sync() 769 static int nx_probe(struct vio_dev *viodev, const struct vio_device_id *id) in nx_probe() 787 static void nx_remove(struct vio_dev *viodev) in nx_remove()
|
H A D | nx.h | 79 struct vio_dev *viodev;
|
/openbmc/linux/drivers/net/ethernet/ibm/ |
H A D | ibmveth.h | 137 struct vio_dev *vdev;
|
H A D | ibmveth.c | 43 static unsigned long ibmveth_get_desired_dma(struct vio_dev *vdev); 1516 struct vio_dev *viodev = adapter->vdev; in ibmveth_change_mtu() 1573 static unsigned long ibmveth_get_desired_dma(struct vio_dev *vdev) in ibmveth_get_desired_dma() 1649 static int ibmveth_probe(struct vio_dev *dev, const struct vio_device_id *id) in ibmveth_probe() 1781 static void ibmveth_remove(struct vio_dev *dev) in ibmveth_remove()
|
H A D | ibmvnic.c | 6109 struct vio_dev *vdev = adapter->vdev; in ibmvnic_reenable_crq_queue() 6126 struct vio_dev *vdev = adapter->vdev; in ibmvnic_reset_crq() 6158 struct vio_dev *vdev = adapter->vdev; in release_crq_queue() 6182 struct vio_dev *vdev = adapter->vdev; in init_crq_queue() 6330 static int ibmvnic_probe(struct vio_dev *dev, const struct vio_device_id *id) in ibmvnic_probe() 6511 static void ibmvnic_remove(struct vio_dev *dev) in ibmvnic_remove() 6600 static unsigned long ibmvnic_get_desired_dma(struct vio_dev *vdev) in ibmvnic_get_desired_dma()
|
/openbmc/linux/drivers/scsi/ibmvscsi_tgt/ |
H A D | ibmvscsi_tgt.h | 295 struct vio_dev *dma_dev;
|
H A D | ibmvscsi_tgt.c | 2589 struct vio_dev *vdev = vscsi->dma_dev; in read_dma_window() 2635 struct vio_dev *vdev; in ibmvscsis_lookup_port() 3000 struct vio_dev *vdev = vscsi->dma_dev; in ibmvscsis_create_command_q() 3422 static int ibmvscsis_probe(struct vio_dev *vdev, in ibmvscsis_probe() 3587 static void ibmvscsis_remove(struct vio_dev *vdev) in ibmvscsis_remove()
|
/openbmc/linux/drivers/block/ |
H A D | sunvdc.c | 922 struct vio_dev *vdev = to_vio_dev(dev); in vdc_device_probed() 948 static bool vdc_port_mpgroup_check(struct vio_dev *vdev) in vdc_port_mpgroup_check() 965 static int vdc_port_probe(struct vio_dev *vdev, const struct vio_device_id *id) in vdc_port_probe() 1063 static void vdc_port_remove(struct vio_dev *vdev) in vdc_port_remove()
|
/openbmc/linux/drivers/tty/ |
H A D | vcc.c | 560 static int vcc_probe(struct vio_dev *vdev, const struct vio_device_id *id) in vcc_probe() 682 static void vcc_remove(struct vio_dev *vdev) in vcc_remove()
|