Home
last modified time | relevance | path

Searched refs:viodev (Results 1 – 6 of 6) sorted by relevance

/linux-4.4.14/arch/powerpc/kernel/
Dvio.c71 struct vio_dev *viodev; member
146 static inline int vio_cmo_alloc(struct vio_dev *viodev, size_t size) in vio_cmo_alloc() argument
156 if (viodev->cmo.entitled > viodev->cmo.allocated) in vio_cmo_alloc()
157 reserve_free = viodev->cmo.entitled - viodev->cmo.allocated; in vio_cmo_alloc()
168 viodev->cmo.allocated += size; in vio_cmo_alloc()
190 static inline void vio_cmo_dealloc(struct vio_dev *viodev, size_t size) in vio_cmo_dealloc() argument
203 if (viodev->cmo.allocated > viodev->cmo.entitled) { in vio_cmo_dealloc()
204 excess_freed = min(reserve_freed, (viodev->cmo.allocated - in vio_cmo_dealloc()
205 viodev->cmo.entitled)); in vio_cmo_dealloc()
210 viodev->cmo.allocated -= (reserve_freed + excess_freed); in vio_cmo_dealloc()
[all …]
/linux-4.4.14/drivers/crypto/nx/
Dnx.c58 struct vio_dev *viodev = nx_driver.viodev; in nx_hcall_sync() local
63 rc = vio_h_cop_sync(viodev, op); in nx_hcall_sync()
67 dev_dbg(&viodev->dev, "vio_h_cop_sync failed: rc: %d " in nx_hcall_sync()
529 return nx_check_props(&nx_driver.viodev->dev, fc, mode) ? in nx_register_alg()
535 return nx_check_props(&nx_driver.viodev->dev, fc, mode) ? in nx_register_aead()
541 return (slot >= 0 ? nx_check_prop(&nx_driver.viodev->dev, in nx_register_shash()
543 nx_check_props(&nx_driver.viodev->dev, fc, mode)) ? in nx_register_shash()
777 static int nx_probe(struct vio_dev *viodev, const struct vio_device_id *id) in nx_probe() argument
779 dev_dbg(&viodev->dev, "driver probed: %s resource id: 0x%x\n", in nx_probe()
780 viodev->name, viodev->resource_id); in nx_probe()
[all …]
Dnx-842-pseries.c158 static unsigned long nx842_get_desired_dma(struct vio_dev *viodev) in nx842_get_desired_dma() argument
988 static int nx842_probe(struct vio_dev *viodev, in nx842_probe() argument
1011 …dev_err(&viodev->dev, "%s: Attempt to register more than one instance of the hardware\n", __func__… in nx842_probe()
1016 dev_set_drvdata(&viodev->dev, NULL); in nx842_probe()
1018 new_devdata->vdev = viodev; in nx842_probe()
1019 new_devdata->dev = &viodev->dev; in nx842_probe()
1035 dev_err(&viodev->dev, "could not register comp alg: %d\n", ret); in nx842_probe()
1040 dev_set_drvdata(&viodev->dev, rcu_dereference(devdata)); in nx842_probe()
1043 if (sysfs_create_group(&viodev->dev.kobj, &nx842_attribute_group)) { in nx842_probe()
1044 dev_err(&viodev->dev, "could not create sysfs device attributes\n"); in nx842_probe()
[all …]
Dnx.h89 struct vio_dev *viodev; member
/linux-4.4.14/arch/powerpc/include/asm/
Dvio.h139 extern void vio_cmo_set_dev_desired(struct vio_dev *viodev, size_t desired);
/linux-4.4.14/drivers/net/ethernet/ibm/
Dibmveth.c1345 struct vio_dev *viodev = adapter->vdev; in ibmveth_change_mtu() local
1375 vio_cmo_set_dev_desired(viodev, in ibmveth_change_mtu()
1377 (viodev)); in ibmveth_change_mtu()