Home
last modified time | relevance | path

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

/drivers/scsi/
Dsr_ioctl.c43 struct packet_command cgc; in sr_read_tochdr() local
51 memset(&cgc, 0, sizeof(struct packet_command)); in sr_read_tochdr()
52 cgc.timeout = IOCTL_TIMEOUT; in sr_read_tochdr()
53 cgc.cmd[0] = GPCMD_READ_TOC_PMA_ATIP; in sr_read_tochdr()
54 cgc.cmd[8] = 12; /* LSB of length */ in sr_read_tochdr()
55 cgc.buffer = buffer; in sr_read_tochdr()
56 cgc.buflen = 12; in sr_read_tochdr()
57 cgc.quiet = 1; in sr_read_tochdr()
58 cgc.data_direction = DMA_FROM_DEVICE; in sr_read_tochdr()
60 result = sr_do_ioctl(cd, &cgc); in sr_read_tochdr()
[all …]
Dsr_vendor.c112 struct packet_command cgc; in sr_set_blocklength() local
128 memset(&cgc, 0, sizeof(struct packet_command)); in sr_set_blocklength()
129 cgc.cmd[0] = MODE_SELECT; in sr_set_blocklength()
130 cgc.cmd[1] = (1 << 4); in sr_set_blocklength()
131 cgc.cmd[4] = 12; in sr_set_blocklength()
138 cgc.buffer = buffer; in sr_set_blocklength()
139 cgc.buflen = sizeof(*modesel); in sr_set_blocklength()
140 cgc.data_direction = DMA_TO_DEVICE; in sr_set_blocklength()
141 cgc.timeout = VENDOR_TIMEOUT; in sr_set_blocklength()
142 if (0 == (rc = sr_do_ioctl(cd, &cgc))) { in sr_set_blocklength()
[all …]
Dsr.c942 struct packet_command *cgc) in sr_packet() argument
947 if (cgc->cmd[0] == GPCMD_READ_DISC_INFO && sdev->no_read_disc_info) in sr_packet()
950 if (cgc->timeout <= 0) in sr_packet()
951 cgc->timeout = IOCTL_TIMEOUT; in sr_packet()
953 sr_do_ioctl(cd, cgc); in sr_packet()
955 return cgc->stat; in sr_packet()
/drivers/cdrom/
Dcdrom.c346 struct packet_command *cgc) in cdrom_dummy_generic_packet() argument
348 if (cgc->sense) { in cdrom_dummy_generic_packet()
349 cgc->sense->sense_key = 0x05; in cdrom_dummy_generic_packet()
350 cgc->sense->asc = 0x20; in cdrom_dummy_generic_packet()
351 cgc->sense->ascq = 0x00; in cdrom_dummy_generic_packet()
354 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 …]
/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()
712 if (cgc->buflen) { in pkt_generic_packet()
713 ret = blk_rq_map_kern(q, rq, cgc->buffer, cgc->buflen, in pkt_generic_packet()
719 rq->cmd_len = COMMAND_SIZE(cgc->cmd[0]); in pkt_generic_packet()
720 memcpy(rq->cmd, cgc->cmd, CDROM_PACKET_SIZE); in pkt_generic_packet()
723 if (cgc->quiet) in pkt_generic_packet()
750 struct packet_command *cgc) in pkt_dump_sense() argument
752 struct request_sense *sense = cgc->sense; in pkt_dump_sense()
756 CDROM_PACKET_SIZE, cgc->cmd, in pkt_dump_sense()
[all …]
/drivers/ide/
Dide-cd_ioctl.c449 struct packet_command *cgc) in ide_cdrom_packet() argument
453 unsigned len = cgc->buflen; in ide_cdrom_packet()
455 if (cgc->timeout <= 0) in ide_cdrom_packet()
456 cgc->timeout = ATAPI_WAIT_PC; in ide_cdrom_packet()
462 if (cgc->sense) in ide_cdrom_packet()
463 memset(cgc->sense, 0, sizeof(struct request_sense)); in ide_cdrom_packet()
465 if (cgc->quiet) in ide_cdrom_packet()
468 cgc->stat = ide_cd_queue_pc(drive, cgc->cmd, in ide_cdrom_packet()
469 cgc->data_direction == CGC_DATA_WRITE, in ide_cdrom_packet()
470 cgc->buffer, &len, in ide_cdrom_packet()
[all …]
Dide-cd.c1122 struct packet_command cgc; in ide_cdrom_get_capabilities() local
1130 init_cdrom_command(&cgc, buf, size, CGC_DATA_UNKNOWN); in ide_cdrom_get_capabilities()
1133 stat = cdrom_mode_sense(cdi, &cgc, GPMODE_CAPABILITIES_PAGE, 0); in ide_cdrom_get_capabilities()
1622 struct packet_command cgc; in idecd_set_spindown() local
1630 init_cdrom_command(&cgc, buffer, sizeof(buffer), CGC_DATA_UNKNOWN); in idecd_set_spindown()
1632 stat = cdrom_mode_sense(cdi, &cgc, GPMODE_CDROM_PAGE, 0); in idecd_set_spindown()
1637 return cdrom_mode_select(cdi, &cgc); in idecd_set_spindown()
1642 struct packet_command cgc; in idecd_get_spindown() local
1647 init_cdrom_command(&cgc, buffer, sizeof(buffer), CGC_DATA_UNKNOWN); in idecd_get_spindown()
1649 stat = cdrom_mode_sense(cdi, &cgc, GPMODE_CDROM_PAGE, 0); in idecd_get_spindown()
/drivers/block/paride/
Dpcd.c184 struct packet_command *cgc);
500 static int pcd_packet(struct cdrom_device_info *cdi, struct packet_command *cgc) in pcd_packet() argument
502 return pcd_atapi(cdi->handle, cgc->cmd, cgc->buflen, cgc->buffer, in pcd_packet()
/drivers/video/fbdev/aty/
Dradeon_pm.c2217 u32 cgc, cec, c2gc;
2423 cgc = INREG(CRTC_GEN_CNTL);
2482 cgc |= CRTC_EN;
2483 OUTREG(CRTC_GEN_CNTL, cgc);
2508 cgc = INREG(CRTC_GEN_CNTL);
2510 cgc |= 0x10000;