Home
last modified time | relevance | path

Searched refs:vio_dev (Results 1 – 25 of 28) sorted by relevance

12

/Linux-v4.19/arch/powerpc/include/asm/
Dvio.h100 struct vio_dev { struct
119 int (*probe)(struct vio_dev *dev, const struct vio_device_id *id); argument
120 int (*remove)(struct vio_dev *dev);
124 unsigned long (*get_desired_dma)(struct vio_dev *dev);
139 extern void vio_cmo_set_dev_desired(struct vio_dev *viodev, size_t desired);
141 extern void vio_unregister_device(struct vio_dev *dev);
143 extern int vio_h_cop_sync(struct vio_dev *vdev, struct vio_pfo_op *op);
147 extern struct vio_dev *vio_register_device_node(
149 extern const void *vio_get_attribute(struct vio_dev *vdev, char *which,
152 extern struct vio_dev *vio_find_node(struct device_node *vnode);
[all …]
/Linux-v4.19/arch/sparc/kernel/
Dvio.c24 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
66 return vio_match_device(matches, vio_dev) != NULL; in vio_bus_match()
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()
117 struct vio_dev *vdev = to_vio_dev(dev); in devspec_show()
132 struct vio_dev *vdev = to_vio_dev(dev); in type_show()
140 const struct vio_dev *vdev = to_vio_dev(dev); in modalias_show()
[all …]
Dds.c1157 static int ds_probe(struct vio_dev *vdev, const struct vio_device_id *id) in ds_probe()
1238 static int ds_remove(struct vio_dev *vdev) in ds_remove()
/Linux-v4.19/arch/powerpc/platforms/pseries/
Dvio.c39 static struct vio_dev vio_bus_device = { /* fake "parent" device */
71 struct vio_dev *viodev;
146 static inline int vio_cmo_alloc(struct vio_dev *viodev, size_t size) in vio_cmo_alloc()
190 static inline void vio_cmo_dealloc(struct vio_dev *viodev, size_t size) in vio_cmo_dealloc()
281 struct vio_dev *viodev; in vio_cmo_entitlement_update()
390 struct vio_dev *viodev; in vio_cmo_balance()
487 struct vio_dev *viodev = to_vio_dev(dev); in vio_dma_iommu_alloc_coherent()
508 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()
544 struct vio_dev *viodev = to_vio_dev(dev); in vio_dma_iommu_unmap_page()
[all …]
/Linux-v4.19/drivers/pci/hotplug/
Drpadlpar_core.c253 struct vio_dev *vio_dev; in dlpar_add_vio_slot() local
255 vio_dev = vio_find_node(dn); in dlpar_add_vio_slot()
256 if (vio_dev) { in dlpar_add_vio_slot()
257 put_device(&vio_dev->dev); in dlpar_add_vio_slot()
328 struct vio_dev *vio_dev; in dlpar_remove_vio_slot() local
330 vio_dev = vio_find_node(dn); in dlpar_remove_vio_slot()
331 if (!vio_dev) in dlpar_remove_vio_slot()
334 vio_unregister_device(vio_dev); in dlpar_remove_vio_slot()
336 put_device(&vio_dev->dev); in dlpar_remove_vio_slot()
/Linux-v4.19/drivers/char/tpm/
Dtpm_ibmvtpm.c51 static int ibmvtpm_send_crq_word(struct vio_dev *vdev, u64 w1) in ibmvtpm_send_crq_word()
93 static int ibmvtpm_send_crq(struct vio_dev *vdev, in ibmvtpm_send_crq()
304 static int tpm_ibmvtpm_remove(struct vio_dev *vdev) in tpm_ibmvtpm_remove()
344 static unsigned long tpm_ibmvtpm_get_desired_dma(struct vio_dev *vdev) in tpm_ibmvtpm_get_desired_dma()
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()
637 rc = plpar_hcall_norets(H_REG_CRQ, vio_dev->unit_address, in tpm_ibmvtpm_probe()
647 rc = request_irq(vio_dev->irq, ibmvtpm_interrupt, 0, in tpm_ibmvtpm_probe()
650 dev_err(dev, "Error %d register irq 0x%x\n", rc, vio_dev->irq); in tpm_ibmvtpm_probe()
[all …]
Dtpm_ibmvtpm.h38 struct vio_dev *vdev;
/Linux-v4.19/drivers/char/hw_random/
Dpseries-rng.c53 static unsigned long pseries_rng_get_desired_dma(struct vio_dev *vdev) in pseries_rng_get_desired_dma()
63 static int pseries_rng_probe(struct vio_dev *dev, in pseries_rng_probe()
69 static int pseries_rng_remove(struct vio_dev *dev) in pseries_rng_remove()
/Linux-v4.19/arch/sparc/include/asm/
Dvio.h332 struct vio_dev { struct
364 int (*probe)(struct vio_dev *dev, const struct vio_device_id *id); argument
365 int (*remove)(struct vio_dev *dev);
366 void (*shutdown)(struct vio_dev *dev);
430 struct vio_dev *vdev;
491 static inline struct vio_dev *to_vio_dev(struct device *dev) in to_vio_dev()
493 return container_of(dev, struct vio_dev, dev); in to_vio_dev()
506 int vio_driver_init(struct vio_driver_state *vio, struct vio_dev *vdev,
513 u64 vio_vdev_node(struct mdesc_handle *hp, struct vio_dev *vdev);
/Linux-v4.19/drivers/tty/hvc/
Dhvcs.c288 struct vio_dev *vdev;
314 uint32_t unit_address, unsigned int irq, struct vio_dev *dev);
320 static int hvcs_probe(struct vio_dev *dev,
322 static int hvcs_remove(struct vio_dev *dev);
332 static inline struct hvcs_struct *from_vio_dev(struct vio_dev *viod) in from_vio_dev()
340 struct vio_dev *viod = to_vio_dev(dev); in hvcs_partner_vtys_show()
354 struct vio_dev *viod = to_vio_dev(dev); in hvcs_partner_clcs_show()
379 struct vio_dev *viod = to_vio_dev(dev); in hvcs_current_vty_show()
396 struct vio_dev *viod = to_vio_dev(dev); in hvcs_vterm_state_store()
433 struct vio_dev *viod = to_vio_dev(dev); in hvcs_vterm_state_show()
[all …]
Dhvc_vio.c282 static int hvc_vio_probe(struct vio_dev *vdev, in hvc_vio_probe()
/Linux-v4.19/drivers/net/ethernet/sun/
Dsunvnet.c286 struct vio_dev *vdev) in vnet_new()
345 struct vio_dev *vdev) in vnet_find_or_create()
386 struct vio_dev *vdev) in vnet_find_parent()
424 static int vnet_port_probe(struct vio_dev *vdev, const struct vio_device_id *id) in vnet_port_probe()
514 static int vnet_port_remove(struct vio_dev *vdev) in vnet_port_remove()
Dldmvsw.c228 struct vio_dev *vdev, in vsw_alloc_netdev()
280 static int vsw_port_probe(struct vio_dev *vdev, const struct vio_device_id *id) in vsw_port_probe()
408 static int vsw_port_remove(struct vio_dev *vdev) in vsw_port_remove()
/Linux-v4.19/drivers/misc/
Dibmvmc.c144 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()
2068 struct vio_dev *vdev = to_vio_dev(adapter->dev); in ibmvmc_task()
2112 struct vio_dev *vdev = to_vio_dev(adapter->dev); in ibmvmc_init_crq_queue()
2185 static int read_dma_window(struct vio_dev *vdev, in read_dma_window()
2230 static int ibmvmc_probe(struct vio_dev *vdev, const struct vio_device_id *id) in ibmvmc_probe()
[all …]
/Linux-v4.19/drivers/scsi/ibmvscsi/
Dibmvscsi.c158 struct vio_dev *vdev = to_vio_dev(hostdata->dev); in ibmvscsi_release_crq_queue()
210 struct vio_dev *vdev = to_vio_dev(hostdata->dev); in ibmvscsi_send_crq()
227 struct vio_dev *vdev = to_vio_dev(hostdata->dev); in ibmvscsi_task()
301 struct vio_dev *vdev = to_vio_dev(hostdata->dev); in ibmvscsi_reset_crq_queue()
344 struct vio_dev *vdev = to_vio_dev(hostdata->dev); in ibmvscsi_init_crq_queue()
429 struct vio_dev *vdev = to_vio_dev(hostdata->dev); in ibmvscsi_reenable_crq_queue()
2094 static unsigned long ibmvscsi_get_desired_dma(struct vio_dev *vdev) in ibmvscsi_get_desired_dma()
2177 static int ibmvscsi_probe(struct vio_dev *vdev, const struct vio_device_id *id) in ibmvscsi_probe()
2293 static int ibmvscsi_remove(struct vio_dev *vdev) in ibmvscsi_remove()
Dibmvfc.c618 struct vio_dev *vdev = to_vio_dev(vhost->dev); in ibmvfc_send_crq()
658 struct vio_dev *vdev = to_vio_dev(vhost->dev); in ibmvfc_release_crq_queue()
686 struct vio_dev *vdev = to_vio_dev(vhost->dev); in ibmvfc_reenable_crq_queue()
712 struct vio_dev *vdev = to_vio_dev(vhost->dev); in ibmvfc_reset_crq()
3184 struct vio_dev *vdev = to_vio_dev(vhost->dev); in ibmvfc_tasklet()
4514 struct vio_dev *vdev = to_vio_dev(dev); in ibmvfc_init_crq()
4751 static int ibmvfc_probe(struct vio_dev *vdev, const struct vio_device_id *id) in ibmvfc_probe()
4857 static int ibmvfc_remove(struct vio_dev *vdev) in ibmvfc_remove()
4901 struct vio_dev *vdev = to_vio_dev(dev); in ibmvfc_resume()
4918 static unsigned long ibmvfc_get_desired_dma(struct vio_dev *vdev) in ibmvfc_get_desired_dma()
/Linux-v4.19/drivers/crypto/nx/
Dnx-842-pseries.c115 struct vio_dev *vdev;
158 static unsigned long nx842_get_desired_dma(struct vio_dev *viodev) in nx842_get_desired_dma()
988 static int nx842_probe(struct vio_dev *viodev, in nx842_probe()
1060 static int nx842_remove(struct vio_dev *viodev) in nx842_remove()
Dnx.c57 struct vio_dev *viodev = nx_driver.viodev; in nx_hcall_sync()
776 static int nx_probe(struct vio_dev *viodev, const struct vio_device_id *id) in nx_probe()
794 static int nx_remove(struct vio_dev *viodev) in nx_remove()
Dnx.h90 struct vio_dev *viodev;
/Linux-v4.19/drivers/net/ethernet/ibm/
Dibmveth.h146 struct vio_dev *vdev;
Dibmveth.c56 static unsigned long ibmveth_get_desired_dma(struct vio_dev *vdev);
1480 struct vio_dev *viodev = adapter->vdev; in ibmveth_change_mtu()
1539 static unsigned long ibmveth_get_desired_dma(struct vio_dev *vdev) in ibmveth_get_desired_dma()
1613 static int ibmveth_probe(struct vio_dev *dev, const struct vio_device_id *id) in ibmveth_probe()
1733 static int ibmveth_remove(struct vio_dev *dev) in ibmveth_remove()
Dibmvnic.c92 static int ibmvnic_remove(struct vio_dev *);
4426 struct vio_dev *vdev = adapter->vdev; in ibmvnic_reenable_crq_queue()
4443 struct vio_dev *vdev = adapter->vdev; in ibmvnic_reset_crq()
4472 struct vio_dev *vdev = adapter->vdev; in release_crq_queue()
4496 struct vio_dev *vdev = adapter->vdev; in init_crq_queue()
4671 static int ibmvnic_probe(struct vio_dev *dev, const struct vio_device_id *id) in ibmvnic_probe()
4778 static int ibmvnic_remove(struct vio_dev *dev) in ibmvnic_remove()
4840 static unsigned long ibmvnic_get_desired_dma(struct vio_dev *vdev) in ibmvnic_get_desired_dma()
/Linux-v4.19/drivers/scsi/ibmvscsi_tgt/
Dibmvscsi_tgt.h304 struct vio_dev *dma_dev;
/Linux-v4.19/drivers/block/
Dsunvdc.c892 struct vio_dev *vdev = to_vio_dev(dev); in vdc_device_probed()
918 static bool vdc_port_mpgroup_check(struct vio_dev *vdev) in vdc_port_mpgroup_check()
935 static int vdc_port_probe(struct vio_dev *vdev, const struct vio_device_id *id) in vdc_port_probe()
1032 static int vdc_port_remove(struct vio_dev *vdev) in vdc_port_remove()
/Linux-v4.19/drivers/tty/
Dvcc.c567 static int vcc_probe(struct vio_dev *vdev, const struct vio_device_id *id) in vcc_probe()
678 static int vcc_remove(struct vio_dev *vdev) in vcc_remove()

12