Lines Matching refs:toc
102 struct gdromtoc *toc; member
258 static int gdrom_readtoc_cmd(struct gdromtoc *toc, int session) in gdrom_readtoc_cmd() argument
285 insw(GDROM_DATA_REG, toc, tocsize/2); in gdrom_readtoc_cmd()
317 if (!gd.toc) in gdrom_get_last_session()
321 err = gdrom_readtoc_cmd(gd.toc, 1); in gdrom_get_last_session()
324 err = gdrom_readtoc_cmd(gd.toc, 0); in gdrom_get_last_session()
331 fentry = get_entry_track(gd.toc->first); in gdrom_get_last_session()
332 lentry = get_entry_track(gd.toc->last); in gdrom_get_last_session()
334 track = get_entry_track(gd.toc->last); in gdrom_get_last_session()
336 data = gd.toc->entry[track - 1]; in gdrom_get_last_session()
342 if ((track > 100) || (track < get_entry_track(gd.toc->first))) { in gdrom_get_last_session()
803 gd.toc = kzalloc(sizeof(struct gdromtoc), GFP_KERNEL); in probe_gdrom()
804 if (!gd.toc) { in probe_gdrom()
815 kfree(gd.toc); in probe_gdrom()
842 kfree(gd.toc); in remove_gdrom()