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