Lines Matching refs:open_for_write
251 bool scsi_cmd_allowed(unsigned char *cmd, bool open_for_write) in scsi_cmd_allowed() argument
341 return open_for_write; in scsi_cmd_allowed()
349 struct sg_io_hdr *hdr, bool open_for_write) in scsi_fill_sghdr_rq() argument
357 if (!scsi_cmd_allowed(scmd->cmnd, open_for_write)) in scsi_fill_sghdr_rq()
411 bool open_for_write) in sg_io() argument
452 ret = scsi_fill_sghdr_rq(sdev, rq, hdr, open_for_write); in sg_io()
504 static int sg_scsi_ioctl(struct request_queue *q, bool open_for_write, in sg_scsi_ioctl() argument
557 if (!scsi_cmd_allowed(scmd->cmnd, open_for_write)) in sg_scsi_ioctl()
779 static int scsi_cdrom_send_packet(struct scsi_device *sdev, bool open_for_write, in scsi_cdrom_send_packet() argument
820 err = sg_io(sdev, &hdr, open_for_write); in scsi_cdrom_send_packet()
835 static int scsi_ioctl_sg_io(struct scsi_device *sdev, bool open_for_write, in scsi_ioctl_sg_io() argument
844 error = sg_io(sdev, &hdr, open_for_write); in scsi_ioctl_sg_io()
863 int scsi_ioctl(struct scsi_device *sdev, bool open_for_write, int cmd, in scsi_ioctl() argument
899 return scsi_ioctl_sg_io(sdev, open_for_write, arg); in scsi_ioctl()
901 return sg_scsi_ioctl(q, open_for_write, arg); in scsi_ioctl()
903 return scsi_cdrom_send_packet(sdev, open_for_write, arg); in scsi_ioctl()