Searched refs:tocentry (Results 1 – 4 of 4) sorted by relevance
360 struct cdrom_tocentry *tocentry = (struct cdrom_tocentry *) arg; in sr_audio_ioctl() local365 sr_cmd[1] |= (tocentry->cdte_format == CDROM_MSF) ? 0x02 : 0; in sr_audio_ioctl()367 sr_cmd[6] = tocentry->cdte_track; in sr_audio_ioctl()372 tocentry->cdte_ctrl = buffer[5] & 0xf; in sr_audio_ioctl()373 tocentry->cdte_adr = buffer[5] >> 4; in sr_audio_ioctl()374 tocentry->cdte_datamode = (tocentry->cdte_ctrl & 0x04) ? 1 : 0; in sr_audio_ioctl()375 if (tocentry->cdte_format == CDROM_MSF) { in sr_audio_ioctl()376 tocentry->cdte_addr.msf.minute = buffer[9]; in sr_audio_ioctl()377 tocentry->cdte_addr.msf.second = buffer[10]; in sr_audio_ioctl()378 tocentry->cdte_addr.msf.frame = buffer[11]; in sr_audio_ioctl()[all …]
914 struct cdrom_tocentry* tocentry = (struct cdrom_tocentry*)arg; in pcd_audio_ioctl() local918 cmd[1] = (tocentry->cdte_format == CDROM_MSF ? 0x02 : 0); in pcd_audio_ioctl()919 cmd[6] = tocentry->cdte_track; in pcd_audio_ioctl()923 tocentry->cdte_ctrl = buffer[5] & 0xf; in pcd_audio_ioctl()924 tocentry->cdte_adr = buffer[5] >> 4; in pcd_audio_ioctl()925 tocentry->cdte_datamode = (tocentry->cdte_ctrl & 0x04)?1:0; in pcd_audio_ioctl()926 if (tocentry->cdte_format == CDROM_MSF) { in pcd_audio_ioctl()927 tocentry->cdte_addr.msf.minute = buffer[9]; in pcd_audio_ioctl()928 tocentry->cdte_addr.msf.second = buffer[10]; in pcd_audio_ioctl()929 tocentry->cdte_addr.msf.frame = buffer[11]; in pcd_audio_ioctl()[all …]
2472 struct cdrom_tocentry *tocentry = (struct cdrom_tocentry*) arg; in ide_cdrom_audio_ioctl() local2475 stat = cdrom_get_toc_entry(drive, tocentry->cdte_track, &toce); in ide_cdrom_audio_ioctl()2478 tocentry->cdte_ctrl = toce->control; in ide_cdrom_audio_ioctl()2479 tocentry->cdte_adr = toce->adr; in ide_cdrom_audio_ioctl()2480 if (tocentry->cdte_format == CDROM_MSF) { in ide_cdrom_audio_ioctl()2482 &tocentry->cdte_addr.msf.minute, in ide_cdrom_audio_ioctl()2483 &tocentry->cdte_addr.msf.second, in ide_cdrom_audio_ioctl()2484 &tocentry->cdte_addr.msf.frame); in ide_cdrom_audio_ioctl()2486 tocentry->cdte_addr.lba = toce->addr.lba; in ide_cdrom_audio_ioctl()
587 static struct cdrom_tocentry tocentry; variable4683 memcpy(&tocentry, (void *) arg, sizeof(struct cdrom_tocentry)); in sbpcd_audio_ioctl()4684 i=tocentry.cdte_track; in sbpcd_audio_ioctl()4688 tocentry.cdte_adr=D_S[d].TocBuffer[i].ctl_adr&0x0F; in sbpcd_audio_ioctl()4689 tocentry.cdte_ctrl=(D_S[d].TocBuffer[i].ctl_adr>>4)&0x0F; in sbpcd_audio_ioctl()4690 tocentry.cdte_datamode=D_S[d].TocBuffer[i].format; in sbpcd_audio_ioctl()4691 if (tocentry.cdte_format==CDROM_MSF) /* MSF-bin required */ in sbpcd_audio_ioctl()4693 tocentry.cdte_addr.msf.minute=(D_S[d].TocBuffer[i].address>>16)&0x00FF; in sbpcd_audio_ioctl()4694 tocentry.cdte_addr.msf.second=(D_S[d].TocBuffer[i].address>>8)&0x00FF; in sbpcd_audio_ioctl()4695 tocentry.cdte_addr.msf.frame=D_S[d].TocBuffer[i].address&0x00FF; in sbpcd_audio_ioctl()[all …]