Home
last modified time | relevance | path

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

/openbmc/linux/drivers/scsi/
H A Dsr_ioctl.c40 struct packet_command cgc; in sr_read_tochdr() local
48 memset(&cgc, 0, sizeof(struct packet_command)); in sr_read_tochdr()
49 cgc.timeout = IOCTL_TIMEOUT; in sr_read_tochdr()
50 cgc.cmd[0] = GPCMD_READ_TOC_PMA_ATIP; in sr_read_tochdr()
51 cgc.cmd[8] = 12; /* LSB of length */ in sr_read_tochdr()
52 cgc.buffer = buffer; in sr_read_tochdr()
53 cgc.buflen = 12; in sr_read_tochdr()
54 cgc.quiet = 1; in sr_read_tochdr()
55 cgc.data_direction = DMA_FROM_DEVICE; in sr_read_tochdr()
57 result = sr_do_ioctl(cd, &cgc); in sr_read_tochdr()
[all …]
H A 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 …]
H A Dscsi_ioctl.c720 static int scsi_get_cdrom_generic_arg(struct cdrom_generic_command *cgc, in scsi_get_cdrom_generic_arg() argument
730 *cgc = (struct cdrom_generic_command) { in scsi_get_cdrom_generic_arg()
740 memcpy(&cgc->cmd, &cgc32.cmd, CDROM_PACKET_SIZE); in scsi_get_cdrom_generic_arg()
744 if (copy_from_user(cgc, arg, sizeof(*cgc))) in scsi_get_cdrom_generic_arg()
750 static int scsi_put_cdrom_generic_arg(const struct cdrom_generic_command *cgc, in scsi_put_cdrom_generic_arg() argument
756 .buffer = (uintptr_t)(cgc->buffer), in scsi_put_cdrom_generic_arg()
757 .buflen = cgc->buflen, in scsi_put_cdrom_generic_arg()
758 .stat = cgc->stat, in scsi_put_cdrom_generic_arg()
759 .sense = (uintptr_t)(cgc->sense), in scsi_put_cdrom_generic_arg()
760 .data_direction = cgc->data_direction, in scsi_put_cdrom_generic_arg()
[all …]
H A Dsr.c908 struct packet_command *cgc) in sr_packet() argument
913 if (cgc->cmd[0] == GPCMD_READ_DISC_INFO && sdev->no_read_disc_info) in sr_packet()
916 if (cgc->timeout <= 0) in sr_packet()
917 cgc->timeout = IOCTL_TIMEOUT; in sr_packet()
919 sr_do_ioctl(cd, cgc); in sr_packet()
921 return cgc->stat; in sr_packet()
/openbmc/linux/drivers/cdrom/
H A Dcdrom.c345 struct packet_command *cgc) in cdrom_dummy_generic_packet() argument
347 if (cgc->sshdr) { in cdrom_dummy_generic_packet()
348 cgc->sshdr->sense_key = 0x05; in cdrom_dummy_generic_packet()
349 cgc->sshdr->asc = 0x20; in cdrom_dummy_generic_packet()
350 cgc->sshdr->ascq = 0x00; in cdrom_dummy_generic_packet()
353 cgc->stat = -EIO; in cdrom_dummy_generic_packet()
360 struct packet_command cgc; in cdrom_flush_cache() local
362 init_cdrom_command(&cgc, NULL, 0, CGC_DATA_NONE); in cdrom_flush_cache()
363 cgc.cmd[0] = GPCMD_FLUSH_CACHE; in cdrom_flush_cache()
365 cgc.timeout = 5 * 60 * HZ; in cdrom_flush_cache()
[all …]
/openbmc/linux/drivers/block/
H A Dpktcdvd.c715 static int pkt_generic_packet(struct pktcdvd_device *pd, struct packet_command *cgc) in pkt_generic_packet() argument
722 rq = scsi_alloc_request(q, (cgc->data_direction == CGC_DATA_WRITE) ? in pkt_generic_packet()
728 if (cgc->buflen) { in pkt_generic_packet()
729 ret = blk_rq_map_kern(q, rq, cgc->buffer, cgc->buflen, in pkt_generic_packet()
735 scmd->cmd_len = COMMAND_SIZE(cgc->cmd[0]); in pkt_generic_packet()
736 memcpy(scmd->cmnd, cgc->cmd, CDROM_PACKET_SIZE); in pkt_generic_packet()
739 if (cgc->quiet) in pkt_generic_packet()
766 struct packet_command *cgc) in pkt_dump_sense() argument
769 struct scsi_sense_hdr *sshdr = cgc->sshdr; in pkt_dump_sense()
773 CDROM_PACKET_SIZE, cgc->cmd, in pkt_dump_sense()
[all …]
/openbmc/linux/include/linux/
H A Dcdrom.h126 struct packet_command *cgc);
128 struct packet_command *cgc,
130 extern void init_cdrom_command(struct packet_command *cgc,
133 struct packet_command *cgc);
/openbmc/linux/drivers/video/fbdev/aty/
H A Dradeon_pm.c2218 u32 cgc, cec, c2gc;
2424 cgc = INREG(CRTC_GEN_CNTL);
2483 cgc |= CRTC_EN;
2484 OUTREG(CRTC_GEN_CNTL, cgc);
2509 cgc = INREG(CRTC_GEN_CNTL);
2511 cgc |= 0x10000;
/openbmc/linux/Documentation/userspace-api/ioctl/
H A Dcdrom.rst1166 struct cdrom_generic_command cgc;
1168 ioctl(fd, CDROM_SEND_PACKET, &cgc);
1191 cgc.data_direction not set
/openbmc/linux/
H A Dopengrok2.0.log[all...]