/linux-5.19.10/drivers/scsi/ |
D | sr_ioctl.c | 40 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 …]
|
D | sr_vendor.c | 127 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 …]
|
D | scsi_ioctl.c | 733 static int scsi_get_cdrom_generic_arg(struct cdrom_generic_command *cgc, in scsi_get_cdrom_generic_arg() argument 743 *cgc = (struct cdrom_generic_command) { in scsi_get_cdrom_generic_arg() 753 memcpy(&cgc->cmd, &cgc32.cmd, CDROM_PACKET_SIZE); in scsi_get_cdrom_generic_arg() 757 if (copy_from_user(cgc, arg, sizeof(*cgc))) in scsi_get_cdrom_generic_arg() 763 static int scsi_put_cdrom_generic_arg(const struct cdrom_generic_command *cgc, in scsi_put_cdrom_generic_arg() argument 769 .buffer = (uintptr_t)(cgc->buffer), in scsi_put_cdrom_generic_arg() 770 .buflen = cgc->buflen, in scsi_put_cdrom_generic_arg() 771 .stat = cgc->stat, in scsi_put_cdrom_generic_arg() 772 .sense = (uintptr_t)(cgc->sense), in scsi_put_cdrom_generic_arg() 773 .data_direction = cgc->data_direction, in scsi_put_cdrom_generic_arg() [all …]
|
D | sr.c | 910 struct packet_command *cgc) in sr_packet() argument 915 if (cgc->cmd[0] == GPCMD_READ_DISC_INFO && sdev->no_read_disc_info) in sr_packet() 918 if (cgc->timeout <= 0) in sr_packet() 919 cgc->timeout = IOCTL_TIMEOUT; in sr_packet() 921 sr_do_ioctl(cd, cgc); in sr_packet() 923 return cgc->stat; in sr_packet()
|
/linux-5.19.10/drivers/cdrom/ |
D | cdrom.c | 344 struct packet_command *cgc) in cdrom_dummy_generic_packet() argument 346 if (cgc->sshdr) { in cdrom_dummy_generic_packet() 347 cgc->sshdr->sense_key = 0x05; in cdrom_dummy_generic_packet() 348 cgc->sshdr->asc = 0x20; in cdrom_dummy_generic_packet() 349 cgc->sshdr->ascq = 0x00; in cdrom_dummy_generic_packet() 352 cgc->stat = -EIO; in cdrom_dummy_generic_packet() 359 struct packet_command cgc; in cdrom_flush_cache() local 361 init_cdrom_command(&cgc, NULL, 0, CGC_DATA_NONE); in cdrom_flush_cache() 362 cgc.cmd[0] = GPCMD_FLUSH_CACHE; in cdrom_flush_cache() 364 cgc.timeout = 5 * 60 * HZ; in cdrom_flush_cache() [all …]
|
/linux-5.19.10/drivers/block/ |
D | pktcdvd.c | 684 static int pkt_generic_packet(struct pktcdvd_device *pd, struct packet_command *cgc) in pkt_generic_packet() argument 691 rq = scsi_alloc_request(q, (cgc->data_direction == CGC_DATA_WRITE) ? in pkt_generic_packet() 697 if (cgc->buflen) { in pkt_generic_packet() 698 ret = blk_rq_map_kern(q, rq, cgc->buffer, cgc->buflen, in pkt_generic_packet() 704 scmd->cmd_len = COMMAND_SIZE(cgc->cmd[0]); in pkt_generic_packet() 705 memcpy(scmd->cmnd, cgc->cmd, CDROM_PACKET_SIZE); in pkt_generic_packet() 708 if (cgc->quiet) in pkt_generic_packet() 735 struct packet_command *cgc) in pkt_dump_sense() argument 737 struct scsi_sense_hdr *sshdr = cgc->sshdr; in pkt_dump_sense() 741 CDROM_PACKET_SIZE, cgc->cmd, in pkt_dump_sense() [all …]
|
/linux-5.19.10/include/linux/ |
D | cdrom.h | 126 struct packet_command *cgc); 128 struct packet_command *cgc, 130 extern void init_cdrom_command(struct packet_command *cgc, 133 struct packet_command *cgc);
|
/linux-5.19.10/drivers/block/paride/ |
D | pcd.c | 184 struct packet_command *cgc); 476 static int pcd_packet(struct cdrom_device_info *cdi, struct packet_command *cgc) in pcd_packet() argument 478 return pcd_atapi(cdi->handle, cgc->cmd, cgc->buflen, cgc->buffer, in pcd_packet()
|
/linux-5.19.10/Documentation/devicetree/bindings/clock/ |
D | imx8ulp-cgc-clock.yaml | 4 $id: http://devicetree.org/schemas/clock/imx8ulp-cgc-clock.yaml#
|
/linux-5.19.10/drivers/video/fbdev/aty/ |
D | radeon_pm.c | 2218 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;
|
/linux-5.19.10/Documentation/userspace-api/ioctl/ |
D | cdrom.rst | 1166 struct cdrom_generic_command cgc; 1168 ioctl(fd, CDROM_SEND_PACKET, &cgc); 1191 cgc.data_direction not set
|