Lines Matching refs:block_dev
121 static unsigned long usb_stor_read(struct blk_desc *block_dev, lbaint_t blknr,
123 static unsigned long usb_stor_write(struct blk_desc *block_dev, lbaint_t blknr,
1129 static unsigned long usb_stor_read(struct blk_desc *block_dev, lbaint_t blknr, in usb_stor_read()
1141 struct blk_desc *block_dev; in usb_stor_read() local
1148 block_dev = dev_get_uclass_platdata(dev); in usb_stor_read()
1150 debug("\nusb_read: udev %d\n", block_dev->devnum); in usb_stor_read()
1152 debug("\nusb_read: udev %d\n", block_dev->devnum); in usb_stor_read()
1153 udev = usb_dev_desc[block_dev->devnum].priv; in usb_stor_read()
1162 srb->lun = block_dev->lun; in usb_stor_read()
1168 PRIxPTR "\n", block_dev->devnum, start, blks, buf_addr); in usb_stor_read()
1181 srb->datalen = block_dev->blksz * smallblks; in usb_stor_read()
1211 static unsigned long usb_stor_write(struct blk_desc *block_dev, lbaint_t blknr, in usb_stor_write()
1223 struct blk_desc *block_dev; in usb_stor_write() local
1231 block_dev = dev_get_uclass_platdata(dev); in usb_stor_write()
1233 debug("\nusb_read: udev %d\n", block_dev->devnum); in usb_stor_write()
1235 debug("\nusb_read: udev %d\n", block_dev->devnum); in usb_stor_write()
1236 udev = usb_dev_desc[block_dev->devnum].priv; in usb_stor_write()
1246 srb->lun = block_dev->lun; in usb_stor_write()
1252 PRIxPTR "\n", block_dev->devnum, start, blks, buf_addr); in usb_stor_write()
1267 srb->datalen = block_dev->blksz * smallblks; in usb_stor_write()