Home
last modified time | relevance | path

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

/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.c113 struct packet_command cgc; in sr_set_blocklength() local
129 memset(&cgc, 0, sizeof(struct packet_command)); in sr_set_blocklength()
130 cgc.cmd[0] = MODE_SELECT; in sr_set_blocklength()
131 cgc.cmd[1] = (1 << 4); in sr_set_blocklength()
132 cgc.cmd[4] = 12; in sr_set_blocklength()
139 cgc.buffer = buffer; in sr_set_blocklength()
140 cgc.buflen = sizeof(*modesel); in sr_set_blocklength()
141 cgc.data_direction = DMA_TO_DEVICE; in sr_set_blocklength()
142 cgc.timeout = VENDOR_TIMEOUT; in sr_set_blocklength()
143 if (0 == (rc = sr_do_ioctl(cd, &cgc))) { in sr_set_blocklength()
[all …]
Dsr.c971 struct packet_command *cgc) in sr_packet() argument
976 if (cgc->cmd[0] == GPCMD_READ_DISC_INFO && sdev->no_read_disc_info) in sr_packet()
979 if (cgc->timeout <= 0) in sr_packet()
980 cgc->timeout = IOCTL_TIMEOUT; in sr_packet()
982 sr_do_ioctl(cd, cgc); in sr_packet()
984 return cgc->stat; in sr_packet()
/drivers/cdrom/
Dcdrom.c347 struct packet_command *cgc) in cdrom_dummy_generic_packet() argument
349 if (cgc->sense) { in cdrom_dummy_generic_packet()
350 cgc->sense->sense_key = 0x05; in cdrom_dummy_generic_packet()
351 cgc->sense->asc = 0x20; in cdrom_dummy_generic_packet()
352 cgc->sense->ascq = 0x00; in cdrom_dummy_generic_packet()
355 cgc->stat = -EIO; in cdrom_dummy_generic_packet()
362 struct packet_command cgc; in cdrom_flush_cache() local
364 init_cdrom_command(&cgc, NULL, 0, CGC_DATA_NONE); in cdrom_flush_cache()
365 cgc.cmd[0] = GPCMD_FLUSH_CACHE; in cdrom_flush_cache()
367 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()
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 request_sense *sense = cgc->sense; in pkt_dump_sense()
755 CDROM_PACKET_SIZE, cgc->cmd, in pkt_dump_sense()
[all …]
/drivers/ide/
Dide-cd_ioctl.c451 struct packet_command *cgc) in ide_cdrom_packet() argument
455 unsigned len = cgc->buflen; in ide_cdrom_packet()
457 if (cgc->timeout <= 0) in ide_cdrom_packet()
458 cgc->timeout = ATAPI_WAIT_PC; in ide_cdrom_packet()
464 if (cgc->sense) in ide_cdrom_packet()
465 memset(cgc->sense, 0, sizeof(struct request_sense)); in ide_cdrom_packet()
467 if (cgc->quiet) in ide_cdrom_packet()
470 cgc->stat = ide_cd_queue_pc(drive, cgc->cmd, in ide_cdrom_packet()
471 cgc->data_direction == CGC_DATA_WRITE, in ide_cdrom_packet()
472 cgc->buffer, &len, in ide_cdrom_packet()
[all …]
Dide-cd.c1141 struct packet_command cgc; in ide_cdrom_get_capabilities() local
1149 init_cdrom_command(&cgc, buf, size, CGC_DATA_UNKNOWN); in ide_cdrom_get_capabilities()
1152 stat = cdrom_mode_sense(cdi, &cgc, GPMODE_CAPABILITIES_PAGE, 0); in ide_cdrom_get_capabilities()
1645 struct packet_command cgc; in idecd_set_spindown() local
1653 init_cdrom_command(&cgc, buffer, sizeof(buffer), CGC_DATA_UNKNOWN); in idecd_set_spindown()
1655 stat = cdrom_mode_sense(cdi, &cgc, GPMODE_CDROM_PAGE, 0); in idecd_set_spindown()
1660 return cdrom_mode_select(cdi, &cgc); in idecd_set_spindown()
1665 struct packet_command cgc; in idecd_get_spindown() local
1670 init_cdrom_command(&cgc, buffer, sizeof(buffer), CGC_DATA_UNKNOWN); in idecd_get_spindown()
1672 stat = cdrom_mode_sense(cdi, &cgc, GPMODE_CDROM_PAGE, 0); in idecd_get_spindown()
/drivers/block/paride/
Dpcd.c184 struct packet_command *cgc);
508 static int pcd_packet(struct cdrom_device_info *cdi, struct packet_command *cgc) in pcd_packet() argument
510 return pcd_atapi(cdi->handle, cgc->cmd, cgc->buflen, cgc->buffer, in pcd_packet()
/drivers/video/fbdev/aty/
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;