Lines Matching refs:bops
449 struct block_operations *bops = (struct block_operations *)((struct drv_data *)blkDrv->data)->ops;
451 ret = bops->read(blkDrv, (UINT8 *)gptBuf, 1, 1); /* Read the device first sector */
495 struct block_operations *bops = NULL;
517 bops = (struct block_operations *)((struct drv_data *)blkDrv->data)->ops;
519 ret = bops->read(blkDrv, (UINT8 *)partitionBuf, partitionStart, 1);
562 struct block_operations *bops = (struct block_operations *)((struct drv_data *)blkDrv->data)->ops;
563 ret = bops->read(blkDrv, (UINT8 *)gptBuf, TABLE_START_SECTOR + i, 1);
591 struct block_operations *bops = (struct block_operations *)((struct drv_data *)blkDrv->data)->ops;
593 ret = bops->read(blkDrv, (UINT8 *)mbrBuf, 0, 1);
617 struct block_operations *bops = (struct block_operations *)((struct drv_data *)blkDrv->data)->ops;
618 ret = bops->read(blkDrv, (UINT8 *)ebrBuf, LD_DWORD_DISK(&mbrBuf[PAR_OFFSET + PAR_START_OFFSET]), 1);
670 struct block_operations *bops = (struct block_operations *)((struct drv_data *)blkDrv->data)->ops;
671 ret = bops->read(blkDrv, (UINT8 *)ebrBuf, extendedAddress + extendedOffset, 1);
708 struct block_operations *bops = (struct block_operations *)((struct drv_data *)blkDrv->data)->ops;
710 if ((bops == NULL) || (bops->read == NULL)) {
810 struct block_operations *bops = (struct block_operations *)((struct drv_data *)disk->dev->data)->ops;
811 if ((bops == NULL) || (bops->read == NULL)) {
819 result = bops->read(disk->dev, buffer, sector, cnt);
833 result = bops->read(disk->dev, buf, sector, count);
844 struct block_operations *bops = (struct block_operations *)((struct drv_data *)disk->dev->data)->ops;
846 if ((bops == NULL) || (bops->read == NULL)) {
858 result = bops->write(disk->dev, buffer, sector, cnt);
868 result = bops->write(disk->dev, buf, sector, count);
1017 struct block_operations *bops = (struct block_operations *)((struct drv_data *)disk->dev->data)->ops;
1018 if ((bops == NULL) || (bops->geometry == NULL) ||
1019 (bops->geometry(disk->dev, &info) != 0)) {
1189 struct block_operations *bops = (struct block_operations *)((struct drv_data *)part->dev->data)->ops;
1190 if ((bops == NULL) || (bops->geometry == NULL) ||
1191 (bops->geometry(part->dev, &info) != 0)) {
1203 if ((bops->ioctl == NULL) ||
1204 (bops->ioctl(part->dev, GET_ERASE_BLOCK_SIZE, (UINTPTR)buf) != 0)) {
1446 INT32 los_disk_init(const CHAR *diskName, const struct block_operations *bops,
1459 if (register_blockdriver(diskName, bops, RWE_RW_RW, priv) != 0) {