Lines Matching refs:bdev
1179 static int sd_open(struct block_device *bdev, fmode_t mode) in sd_open() argument
1181 struct scsi_disk *sdkp = scsi_disk_get(bdev->bd_disk); in sd_open()
1201 check_disk_change(bdev); in sd_open()
1273 static int sd_getgeo(struct block_device *bdev, struct hd_geometry *geo) in sd_getgeo() argument
1275 struct scsi_disk *sdkp = scsi_disk(bdev->bd_disk); in sd_getgeo()
1288 host->hostt->bios_param(sdp, bdev, capacity, diskinfo); in sd_getgeo()
1290 scsicam_bios_param(bdev, capacity, diskinfo); in sd_getgeo()
1312 static int sd_ioctl(struct block_device *bdev, fmode_t mode, in sd_ioctl() argument
1315 struct gendisk *disk = bdev->bd_disk; in sd_ioctl()
1324 error = scsi_verify_blk_ioctl(bdev, cmd); in sd_ioctl()
1350 error = scsi_cmd_blk_ioctl(bdev, mode, cmd, p); in sd_ioctl()
1534 static int sd_compat_ioctl(struct block_device *bdev, fmode_t mode, in sd_compat_ioctl() argument
1537 struct scsi_device *sdev = scsi_disk(bdev->bd_disk)->device; in sd_compat_ioctl()
1574 static int sd_pr_command(struct block_device *bdev, u8 sa, in sd_pr_command() argument
1577 struct scsi_device *sdev = scsi_disk(bdev->bd_disk)->device; in sd_pr_command()
1604 static int sd_pr_register(struct block_device *bdev, u64 old_key, u64 new_key, in sd_pr_register() argument
1609 return sd_pr_command(bdev, (flags & PR_FL_IGNORE_KEY) ? 0x06 : 0x00, in sd_pr_register()
1615 static int sd_pr_reserve(struct block_device *bdev, u64 key, enum pr_type type, in sd_pr_reserve() argument
1620 return sd_pr_command(bdev, 0x01, key, 0, sd_pr_type(type), 0); in sd_pr_reserve()
1623 static int sd_pr_release(struct block_device *bdev, u64 key, enum pr_type type) in sd_pr_release() argument
1625 return sd_pr_command(bdev, 0x02, key, 0, sd_pr_type(type), 0); in sd_pr_release()
1628 static int sd_pr_preempt(struct block_device *bdev, u64 old_key, u64 new_key, in sd_pr_preempt() argument
1631 return sd_pr_command(bdev, abort ? 0x05 : 0x04, old_key, new_key, in sd_pr_preempt()
1635 static int sd_pr_clear(struct block_device *bdev, u64 key) in sd_pr_clear() argument
1637 return sd_pr_command(bdev, 0x03, key, 0, 0, 0); in sd_pr_clear()