Lines Matching refs:buf
31 static void lba_to_msf(uint8_t *buf, int lba)
34 buf[0] = (lba / 75) / 60;
35 buf[1] = (lba / 75) % 60;
36 buf[2] = lba % 75;
41 int cdrom_read_toc(int nb_sectors, uint8_t *buf, int msf, int start_track)
48 q = buf + 2;
79 len = q - buf;
80 cpu_to_be16wu((uint16_t *)buf, len - 2);
85 int cdrom_read_toc_raw(int nb_sectors, uint8_t *buf, int msf, int session_num)
90 q = buf + 2;
152 len = q - buf;
153 cpu_to_be16wu((uint16_t *)buf, len - 2);