Home | History | Annotate | Download | only in cdplay

Lines Matching defs:lba

117 	{ CMD_SET,	"set",     2, "msf | lba" },
596 else if (strcasecmp(arg, "lba") == 0)
835 lba2msf(toc_buffer[n].addr.lba, &tm, &ts, &tf);
1063 lba2msf(u_long lba, u_int *m, u_int *s, u_int *f)
1066 lba += 150; /* block start offset */
1067 lba &= 0xffffff; /* negative lbas use only 24 bits */
1068 *m = (u_int)(lba / (60 * 75));
1069 lba %= (60 * 75);
1070 *s = (u_int)(lba / 75);
1071 *f = (u_int)(lba % 75);
1095 block = e->addr.lba;
1109 next = e[1].addr.lba;
1113 /* XXX: length in frames and not a LBA! */
1138 return play_digital(toc_buffer[tstart].addr.lba,
1139 toc_buffer[tend].addr.lba);
1246 uint32_t lba;
1262 lba = da.lba_current + 150;
1264 if (lba < SWAPLBA(toc_buffer[i].addr.lba)) {
1265 lba -= SWAPLBA(toc_buffer[i - 1].addr.lba);
1270 lba2msf(lba - 150, &mm, &ss, &ff);
1295 lba2msf(s.data->what.position.reladdr.lba, &mm,
1440 readaudio(int afd, int lba, int blocks, u_char *data)
1448 sc.cmd[2] = ((u_int)lba >> 24) & 0xff;
1449 sc.cmd[3] = ((u_int)lba >> 16) & 0xff;
1450 sc.cmd[4] = ((u_int)lba >> 8) & 0xff;
1451 sc.cmd[5] = lba & 0xff;
1489 lba2msf(ctep->addr.lba, m, s, f);
1509 return ctep->addr.lba;