Lines Matching refs:udev
600 static ulong pvblock_iop(struct udevice *udev, lbaint_t blknr, in pvblock_iop() argument
603 struct blkfront_dev *blk_dev = dev_get_priv(udev); in pvblock_iop()
604 struct blk_desc *desc = dev_get_uclass_plat(udev); in pvblock_iop()
648 ulong pvblock_blk_read(struct udevice *udev, lbaint_t blknr, lbaint_t blkcnt, in pvblock_blk_read() argument
651 return pvblock_iop(udev, blknr, blkcnt, buffer, 0); in pvblock_blk_read()
654 ulong pvblock_blk_write(struct udevice *udev, lbaint_t blknr, lbaint_t blkcnt, in pvblock_blk_write() argument
657 return pvblock_iop(udev, blknr, blkcnt, (void *)buffer, 1); in pvblock_blk_write()
660 static int pvblock_blk_bind(struct udevice *udev) in pvblock_blk_bind() argument
662 struct blk_desc *desc = dev_get_uclass_plat(udev); in pvblock_blk_bind()
677 desc->bdev = udev; in pvblock_blk_bind()
686 static int pvblock_blk_probe(struct udevice *udev) in pvblock_blk_probe() argument
688 struct blkfront_dev *blk_dev = dev_get_priv(udev); in pvblock_blk_probe()
689 struct blkfront_plat *plat = dev_get_plat(udev); in pvblock_blk_probe()
690 struct blk_desc *desc = dev_get_uclass_plat(udev); in pvblock_blk_probe()
707 static int pvblock_blk_remove(struct udevice *udev) in pvblock_blk_remove() argument
709 struct blkfront_dev *blk_dev = dev_get_priv(udev); in pvblock_blk_remove()
740 struct udevice *udev; in on_new_vbd() local
757 ret = device_bind_by_name(parent, false, &info, &udev); in on_new_vbd()
766 static int xenbus_enumerate_vbd(struct udevice *udev, enum_vbd_callback clb) in xenbus_enumerate_vbd() argument
782 ret = clb(udev, devid); in xenbus_enumerate_vbd()
799 struct udevice *udev; in print_pvblock_devices() local
804 for (blk_first_device(IF_TYPE_PVBLOCK, &udev); udev; in print_pvblock_devices()
805 blk_next_device(&udev), first = false) { in print_pvblock_devices()
806 struct blk_desc *desc = dev_get_uclass_plat(udev); in print_pvblock_devices()
818 struct udevice *udev; in pvblock_init() local
828 ret = device_bind_by_name(gd->dm_root, false, &info, &udev); in pvblock_init()
836 uclass_foreach_dev_probe(UCLASS_PVBLOCK, udev); in pvblock_init()
841 static int pvblock_probe(struct udevice *udev) in pvblock_probe() argument
846 if (xenbus_enumerate_vbd(udev, on_new_vbd) < 0) in pvblock_probe()
852 uclass_foreach_dev_probe(UCLASS_BLK, udev) { in pvblock_probe()