Lines Matching refs:blk
19 struct udevice *blk, *usb_blk, *dev; in dm_test_blk_base() local
22 ut_asserteq(-ENODEV, uclass_get_device_by_seq(UCLASS_BLK, 0, &blk)); in dm_test_blk_base()
26 IF_TYPE_HOST, 1, 512, 1024, &blk)); in dm_test_blk_base()
27 ut_assertok(blk_create_device(blk, "usb_storage_blk", "test", in dm_test_blk_base()
33 ut_asserteq_ptr(blk, dev); in dm_test_blk_base()
41 ut_asserteq_ptr(blk, dev); in dm_test_blk_base()
54 struct udevice *blk; in count_blk_devices() local
63 uclass_foreach_dev(blk, uc) in count_blk_devices()
101 struct udevice *blk, *dev; in dm_test_blk_find() local
104 IF_TYPE_HOST, 1, 512, 1024, &blk)); in dm_test_blk_find()
107 ut_asserteq_ptr(blk, dev); in dm_test_blk_find()
112 ut_asserteq_ptr(blk, dev); in dm_test_blk_find()
157 struct udevice *dev, *blk; in dm_test_blk_get_from_parent() local
160 ut_assertok(blk_get_from_parent(dev, &blk)); in dm_test_blk_get_from_parent()
163 ut_asserteq(-ENOTBLK, blk_get_from_parent(dev, &blk)); in dm_test_blk_get_from_parent()
166 ut_asserteq(-ENODEV, blk_get_from_parent(dev, &blk)); in dm_test_blk_get_from_parent()