Home
last modified time | relevance | path

Searched refs:cgc (Results 1 – 12 of 12) sorted by relevance

/kernel/linux/linux-5.10/drivers/scsi/
Dsr_ioctl.c44 struct packet_command cgc; in sr_read_tochdr() local
52 memset(&cgc, 0, sizeof(struct packet_command)); in sr_read_tochdr()
53 cgc.timeout = IOCTL_TIMEOUT; in sr_read_tochdr()
54 cgc.cmd[0] = GPCMD_READ_TOC_PMA_ATIP; in sr_read_tochdr()
55 cgc.cmd[8] = 12; /* LSB of length */ in sr_read_tochdr()
56 cgc.buffer = buffer; in sr_read_tochdr()
57 cgc.buflen = 12; in sr_read_tochdr()
58 cgc.quiet = 1; in sr_read_tochdr()
59 cgc.data_direction = DMA_FROM_DEVICE; in sr_read_tochdr()
61 result = sr_do_ioctl(cd, &cgc); in sr_read_tochdr()
[all …]
Dsr_vendor.c127 struct packet_command cgc; in sr_set_blocklength() local
141 memset(&cgc, 0, sizeof(struct packet_command)); in sr_set_blocklength()
142 cgc.cmd[0] = MODE_SELECT; in sr_set_blocklength()
143 cgc.cmd[1] = (1 << 4); in sr_set_blocklength()
144 cgc.cmd[4] = 12; in sr_set_blocklength()
151 cgc.buffer = buffer; in sr_set_blocklength()
152 cgc.buflen = sizeof(*modesel); in sr_set_blocklength()
153 cgc.data_direction = DMA_TO_DEVICE; in sr_set_blocklength()
154 cgc.timeout = VENDOR_TIMEOUT; in sr_set_blocklength()
155 if (0 == (rc = sr_do_ioctl(cd, &cgc))) { in sr_set_blocklength()
[all …]
Dsr.c1009 struct packet_command *cgc) in sr_packet() argument
1014 if (cgc->cmd[0] == GPCMD_READ_DISC_INFO && sdev->no_read_disc_info) in sr_packet()
1017 if (cgc->timeout <= 0) in sr_packet()
1018 cgc->timeout = IOCTL_TIMEOUT; in sr_packet()
1020 sr_do_ioctl(cd, cgc); in sr_packet()
1022 return cgc->stat; in sr_packet()
/kernel/linux/linux-5.10/drivers/cdrom/
Dcdrom.c348 struct packet_command *cgc) in cdrom_dummy_generic_packet() argument
350 if (cgc->sshdr) { in cdrom_dummy_generic_packet()
351 cgc->sshdr->sense_key = 0x05; in cdrom_dummy_generic_packet()
352 cgc->sshdr->asc = 0x20; in cdrom_dummy_generic_packet()
353 cgc->sshdr->ascq = 0x00; in cdrom_dummy_generic_packet()
356 cgc->stat = -EIO; in cdrom_dummy_generic_packet()
363 struct packet_command cgc; in cdrom_flush_cache() local
365 init_cdrom_command(&cgc, NULL, 0, CGC_DATA_NONE); in cdrom_flush_cache()
366 cgc.cmd[0] = GPCMD_FLUSH_CACHE; in cdrom_flush_cache()
368 cgc.timeout = 5 * 60 * HZ; in cdrom_flush_cache()
[all …]
/kernel/linux/linux-5.10/drivers/block/
Dpktcdvd.c700 static int pkt_generic_packet(struct pktcdvd_device *pd, struct packet_command *cgc) in pkt_generic_packet() argument
706 rq = blk_get_request(q, (cgc->data_direction == CGC_DATA_WRITE) ? in pkt_generic_packet()
711 if (cgc->buflen) { in pkt_generic_packet()
712 ret = blk_rq_map_kern(q, rq, cgc->buffer, cgc->buflen, in pkt_generic_packet()
718 scsi_req(rq)->cmd_len = COMMAND_SIZE(cgc->cmd[0]); in pkt_generic_packet()
719 memcpy(scsi_req(rq)->cmd, cgc->cmd, CDROM_PACKET_SIZE); in pkt_generic_packet()
722 if (cgc->quiet) in pkt_generic_packet()
749 struct packet_command *cgc) in pkt_dump_sense() argument
751 struct scsi_sense_hdr *sshdr = cgc->sshdr; in pkt_dump_sense()
755 CDROM_PACKET_SIZE, cgc->cmd, in pkt_dump_sense()
[all …]
/kernel/linux/linux-5.10/drivers/ide/
Dide-cd_ioctl.c442 struct packet_command *cgc) in ide_cdrom_packet() argument
446 unsigned len = cgc->buflen; in ide_cdrom_packet()
448 if (cgc->timeout <= 0) in ide_cdrom_packet()
449 cgc->timeout = ATAPI_WAIT_PC; in ide_cdrom_packet()
455 if (cgc->sshdr) in ide_cdrom_packet()
456 memset(cgc->sshdr, 0, sizeof(*cgc->sshdr)); in ide_cdrom_packet()
458 if (cgc->quiet) in ide_cdrom_packet()
461 cgc->stat = ide_cd_queue_pc(drive, cgc->cmd, in ide_cdrom_packet()
462 cgc->data_direction == CGC_DATA_WRITE, in ide_cdrom_packet()
463 cgc->buffer, &len, in ide_cdrom_packet()
[all …]
Dide-cd.c1229 struct packet_command cgc; in ide_cdrom_get_capabilities() local
1237 init_cdrom_command(&cgc, buf, size, CGC_DATA_UNKNOWN); in ide_cdrom_get_capabilities()
1240 stat = cdrom_mode_sense(cdi, &cgc, GPMODE_CAPABILITIES_PAGE, 0); in ide_cdrom_get_capabilities()
1646 struct packet_command cgc; in idecd_set_spindown() local
1654 init_cdrom_command(&cgc, buffer, sizeof(buffer), CGC_DATA_UNKNOWN); in idecd_set_spindown()
1656 stat = cdrom_mode_sense(cdi, &cgc, GPMODE_CDROM_PAGE, 0); in idecd_set_spindown()
1661 return cdrom_mode_select(cdi, &cgc); in idecd_set_spindown()
1666 struct packet_command cgc; in idecd_get_spindown() local
1671 init_cdrom_command(&cgc, buffer, sizeof(buffer), CGC_DATA_UNKNOWN); in idecd_get_spindown()
1673 stat = cdrom_mode_sense(cdi, &cgc, GPMODE_CDROM_PAGE, 0); in idecd_get_spindown()
/kernel/linux/linux-5.10/block/
Dscsi_ioctl.c651 static int scsi_get_cdrom_generic_arg(struct cdrom_generic_command *cgc, in scsi_get_cdrom_generic_arg() argument
661 *cgc = (struct cdrom_generic_command) { in scsi_get_cdrom_generic_arg()
671 memcpy(&cgc->cmd, &cgc32.cmd, CDROM_PACKET_SIZE); in scsi_get_cdrom_generic_arg()
675 if (copy_from_user(cgc, arg, sizeof(*cgc))) in scsi_get_cdrom_generic_arg()
681 static int scsi_put_cdrom_generic_arg(const struct cdrom_generic_command *cgc, in scsi_put_cdrom_generic_arg() argument
687 .buffer = (uintptr_t)(cgc->buffer), in scsi_put_cdrom_generic_arg()
688 .buflen = cgc->buflen, in scsi_put_cdrom_generic_arg()
689 .stat = cgc->stat, in scsi_put_cdrom_generic_arg()
690 .sense = (uintptr_t)(cgc->sense), in scsi_put_cdrom_generic_arg()
691 .data_direction = cgc->data_direction, in scsi_put_cdrom_generic_arg()
[all …]
/kernel/linux/linux-5.10/include/linux/
Dcdrom.h124 struct packet_command *cgc);
126 struct packet_command *cgc,
128 extern void init_cdrom_command(struct packet_command *cgc,
131 struct packet_command *cgc);
/kernel/linux/linux-5.10/drivers/block/paride/
Dpcd.c184 struct packet_command *cgc);
526 static int pcd_packet(struct cdrom_device_info *cdi, struct packet_command *cgc) in pcd_packet() argument
528 return pcd_atapi(cdi->handle, cgc->cmd, cgc->buflen, cgc->buffer, in pcd_packet()
/kernel/linux/linux-5.10/drivers/video/fbdev/aty/
Dradeon_pm.c2219 u32 cgc, cec, c2gc;
2425 cgc = INREG(CRTC_GEN_CNTL);
2484 cgc |= CRTC_EN;
2485 OUTREG(CRTC_GEN_CNTL, cgc);
2510 cgc = INREG(CRTC_GEN_CNTL);
2512 cgc |= 0x10000;
/kernel/linux/linux-5.10/Documentation/userspace-api/ioctl/
Dcdrom.rst1157 struct cdrom_generic_command cgc;
1159 ioctl(fd, CDROM_SEND_PACKET, &cgc);
1182 cgc.data_direction not set