Searched refs:viodev (Results 1 – 6 of 6) sorted by relevance
/linux-4.1.27/arch/powerpc/kernel/ |
D | vio.c | 71 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.1.27/drivers/crypto/nx/ |
D | nx.c | 58 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() 698 static int nx_probe(struct vio_dev *viodev, const struct vio_device_id *id) in nx_probe() argument 700 dev_dbg(&viodev->dev, "driver probed: %s resource id: 0x%x\n", in nx_probe() 701 viodev->name, viodev->resource_id); in nx_probe() 703 if (nx_driver.viodev) { in nx_probe() 704 dev_err(&viodev->dev, "%s: Attempt to register more than one " in nx_probe() 709 nx_driver.viodev = viodev; in nx_probe() 711 nx_of_init(&viodev->dev, &nx_driver.of); in nx_probe() [all …]
|
D | nx-842.c | 137 static unsigned long nx842_get_desired_dma(struct vio_dev *viodev) in nx842_get_desired_dma() argument 1133 static int __init nx842_probe(struct vio_dev *viodev, in nx842_probe() argument 1145 …dev_err(&viodev->dev, "%s: Attempt to register more than one instance of the hardware\n", __func__… in nx842_probe() 1150 dev_set_drvdata(&viodev->dev, NULL); in nx842_probe() 1154 dev_err(&viodev->dev, "%s: Could not allocate memory for device data\n", __func__); in nx842_probe() 1162 dev_err(&viodev->dev, "%s: Could not allocate memory for performance counters\n", __func__); in nx842_probe() 1167 new_devdata->vdev = viodev; in nx842_probe() 1168 new_devdata->dev = &viodev->dev; in nx842_probe() 1180 dev_err(&viodev->dev, "could not parse device tree. %d\n", ret); in nx842_probe() 1186 dev_set_drvdata(&viodev->dev, rcu_dereference(devdata)); in nx842_probe() [all …]
|
D | nx.h | 89 struct vio_dev *viodev; member
|
/linux-4.1.27/arch/powerpc/include/asm/ |
D | vio.h | 139 extern void vio_cmo_set_dev_desired(struct vio_dev *viodev, size_t desired);
|
/linux-4.1.27/drivers/net/ethernet/ibm/ |
D | ibmveth.c | 1232 struct vio_dev *viodev = adapter->vdev; in ibmveth_change_mtu() local 1262 vio_cmo_set_dev_desired(viodev, in ibmveth_change_mtu() 1264 (viodev)); in ibmveth_change_mtu()
|