Lines Matching refs:infobuf
645 static u_char infobuf[20]; variable
1144 infobuf[i]=inb(CDi_info); in ResponseInfo()
1149 infobuf[i++]=inb(CDi_info); in ResponseInfo()
1155 sprintf(&msgbuf[j*3]," %02X",infobuf[j]); in ResponseInfo()
1222 if (i>=0) i=infobuf[0]; in get_state_T()
1348 D_S[d].error_byte=infobuf[i]; in cc_ReadError()
1350 i=sta2err(infobuf[i]); in cc_ReadError()
1426 infobuf[l++]=i&0x0ff; in cmd_out_T()
1427 infobuf[l++]=i>>8; in cmd_out_T()
1429 if ((l==2)&&(infobuf[0]==0x0ff)) in cmd_out_T()
1431 infobuf[0]=infobuf[1]; in cmd_out_T()
1437 else infobuf[l++]=inb(CDi_data); in cmd_out_T()
1441 for (j=0;j<l;j++) sprintf(&msgbuf[j*3]," %02X",infobuf[j]); in cmd_out_T()
1470 infobuf[m++]=inb(CDi_info); in cmd_out_T()
1474 for (j=0;j<m;j++) sprintf(&msgbuf[j*3]," %02X",infobuf[j]); in cmd_out_T()
1479 infobuf[0]=infobuf[l]; in cmd_out_T()
1480 if (infobuf[0]!=0x02) return (l); /* data length */ in cmd_out_T()
1482 else if (infobuf[0]!=0x02) return (m); /* info length */ in cmd_out_T()
1494 D_S[d].error_state=infobuf[2]; in cmd_out_T()
1495 D_S[d].b3=infobuf[3]; in cmd_out_T()
1496 D_S[d].b4=infobuf[4]; in cmd_out_T()
1755 sprintf(&msgbuf[i*3], " %02X", infobuf[i]); in cc_prep_mode_T()
1759 D_S[d].frmsiz=make16(infobuf[2],infobuf[3]); in cc_prep_mode_T()
1760 D_S[d].f_XA=infobuf[4]; in cc_prep_mode_T()
1763 D_S[d].mode_xb_6=infobuf[6]; in cc_prep_mode_T()
1765 D_S[d].mode_xb_8=infobuf[8]; in cc_prep_mode_T()
1770 sprintf(&msgbuf[i*3], " %02X", infobuf[i]); in cc_prep_mode_T()
2439 sprintf(&msgbuf[i*3], " %02X", infobuf[i]); in cc_ReadSubQ()
2444 if (infobuf[0]!=0) break; in cc_ReadSubQ()
2452 if (famT_drive) D_S[d].SubQ_ctl_adr=infobuf[1]; in cc_ReadSubQ()
2453 else D_S[d].SubQ_ctl_adr=swap_nibbles(infobuf[1]); in cc_ReadSubQ()
2454 D_S[d].SubQ_trk=byt2bcd(infobuf[2]); in cc_ReadSubQ()
2455 D_S[d].SubQ_pnt_idx=byt2bcd(infobuf[3]); in cc_ReadSubQ()
2459 D_S[d].SubQ_run_tot=make32(make16(0,infobuf[i]),make16(infobuf[i+1],infobuf[i+2])); /* msf-bin */ in cc_ReadSubQ()
2464 D_S[d].SubQ_run_trk=make32(make16(0,infobuf[i]),make16(infobuf[i+1],infobuf[i+2])); /* msf-bin */ in cc_ReadSubQ()
2465 D_S[d].SubQ_whatisthis=infobuf[i+3]; in cc_ReadSubQ()
2501 if (fam1_drive) D_S[d].sense_byte=infobuf[i++]; in cc_ModeSense()
2504 if (infobuf[4]==0x01) D_S[d].xa_byte=0x20; in cc_ModeSense()
2508 D_S[d].frame_size=make16(infobuf[i],infobuf[i+1]); in cc_ModeSense()
2510 sprintf(&msgbuf[i*3], " %02X", infobuf[i]); in cc_ModeSense()
2614 chan0=infobuf[1]&0x0F; in cc_GetVolume()
2615 vol0=infobuf[2]; in cc_GetVolume()
2616 chan1=infobuf[3]&0x0F; in cc_GetVolume()
2617 vol1=infobuf[4]; in cc_GetVolume()
2633 chan0=infobuf[1]; in cc_GetVolume()
2634 vol0=infobuf[2]; in cc_GetVolume()
2635 chan1=infobuf[3]; in cc_GetVolume()
2636 vol1=infobuf[4]; in cc_GetVolume()
2642 vol0=vol1=infobuf[1]; in cc_GetVolume()
2643 switches=infobuf[0]; in cc_GetVolume()
2651 vol0=vol1=infobuf[1]; in cc_GetVolume()
2656 switches=infobuf[0]; in cc_GetVolume()
2667 vol0=infobuf[0]; in cc_GetVolume()
2679 D_S[d].volume_control=infobuf[7]; in cc_GetVolume()
2738 …if (fam1_drive) D_S[d].CDsize_frm=msf2blk(make32(make16(0,infobuf[0]),make16(infobuf[1],infobuf[2]… in cc_ReadCapacity()
2739 else if (fam0_drive) D_S[d].CDsize_frm=make32(make16(0,infobuf[0]),make16(infobuf[1],infobuf[2])); in cc_ReadCapacity()
2741 …lse if (fam2_drive) D_S[d].CDsize_frm=make32(make16(infobuf[0],infobuf[1]),make16(infobuf[2],infob… in cc_ReadCapacity()
2794 D_S[d].xa_byte=infobuf[0]; in cc_ReadTocDescr()
2797 D_S[d].first_session=infobuf[1]; in cc_ReadTocDescr()
2798 D_S[d].last_session=infobuf[2]; in cc_ReadTocDescr()
2799 D_S[d].n_first_track=infobuf[3]; in cc_ReadTocDescr()
2800 D_S[d].n_last_track=infobuf[4]; in cc_ReadTocDescr()
2804 D_S[d].lba_multi=msf2blk(make32(make16(0,infobuf[5]),make16(infobuf[6],infobuf[7]))); in cc_ReadTocDescr()
2822 D_S[d].msf_multi_n[count]=make32(make16(0,infobuf[5]),make16(infobuf[6],infobuf[7])); in cc_ReadTocDescr()
2835 D_S[d].size_msf=make32(make16(0,infobuf[2]),make16(infobuf[3],infobuf[4])); in cc_ReadTocDescr()
2841 D_S[d].size_msf=make32(make16(infobuf[8],infobuf[9]),make16(infobuf[10],infobuf[11])); in cc_ReadTocDescr()
2844 D_S[d].n_first_track=infobuf[2]; in cc_ReadTocDescr()
2845 D_S[d].n_last_track=infobuf[3]; in cc_ReadTocDescr()
2849 D_S[d].n_first_track=infobuf[1]; in cc_ReadTocDescr()
2850 D_S[d].n_last_track=infobuf[2]; in cc_ReadTocDescr()
2851 D_S[d].size_msf=make32(make16(0,infobuf[3]),make16(infobuf[4],infobuf[5])); in cc_ReadTocDescr()
2912 D_S[d].TocEnt_nixbyte=infobuf[0]; in cc_ReadTocEntry()
2917 D_S[d].TocEnt_ctl_adr=swap_nibbles(infobuf[i++]); in cc_ReadTocEntry()
2920 D_S[d].TocEnt_number=infobuf[i++]; in cc_ReadTocEntry()
2921 D_S[d].TocEnt_format=infobuf[i]; in cc_ReadTocEntry()
2932 D_S[d].TocEnt_address=make32(make16(0,infobuf[i]), in cc_ReadTocEntry()
2933 make16(infobuf[i+1],infobuf[i+2])); in cc_ReadTocEntry()
2935 sprintf(&msgbuf[i*3], " %02X", infobuf[i]); in cc_ReadTocEntry()
3064 checksum |= infobuf[i]; in cc_ReadUPC()
3066 sprintf(&msgbuf[i*3], " %02X", infobuf[i]); in cc_ReadUPC()
3077 if ((infobuf[i]&0x80)!=0) in cc_ReadUPC()
3079 convert_UPC(&infobuf[i]); in cc_ReadUPC()
3140 resp = infobuf + i; in sbpcd_get_mcn()
3180 if ((infobuf[0]&0x80)!=0) in cc_CheckMultiSession()
3183 D_S[d].lba_multi=msf2blk(make32(make16(0,infobuf[1]), in cc_CheckMultiSession()
3184 make16(infobuf[2],infobuf[3]))); in cc_CheckMultiSession()
3196 D_S[d].lba_multi=msf2blk(make32(make16(0,infobuf[5]), in cc_CheckMultiSession()
3197 make16(infobuf[6],infobuf[7]))); in cc_CheckMultiSession()
3210 D_S[d].first_session=infobuf[2]; in cc_CheckMultiSession()
3211 D_S[d].last_session=infobuf[3]; in cc_CheckMultiSession()
3212 D_S[d].track_of_last_session=infobuf[6]; in cc_CheckMultiSession()
3216 D_S[d].lba_multi=msf2blk(make32(make16(0,infobuf[9]),make16(infobuf[10],infobuf[11]))); in cc_CheckMultiSession()
3220 sprintf(&msgbuf[i*3], " %02X", infobuf[i]); in cc_CheckMultiSession()
3340 sprintf(&msgbuf[i*3], " %02X", infobuf[i]); in ask_mail()
3344 sprintf(&msgbuf[i*3], " %c ", infobuf[i]); in ask_mail()
3367 for (i=0;i<12;i++) infobuf[i]=0; in check_version()
3375 for (i=0;i<12;i++) j+=infobuf[i]; in check_version()
3379 sprintf(&msgbuf[i*3], " %02X", infobuf[i]); in check_version()
3383 sprintf(&msgbuf[i*3], " %c ", infobuf[i]); in check_version()
3387 for (i=0;i<4;i++) if (infobuf[i]!=family1[i]) break; in check_version()
3394 D_S[d].drive_model[4]=infobuf[i++]; in check_version()
3395 D_S[d].drive_model[5]=infobuf[i++]; in check_version()
3401 for (i=0;i<8;i++) if (infobuf[i]!=family0[i]) break; in check_version()
3416 for (i=0;i<8;i++) if (infobuf[i]!=familyL[i]) break; in check_version()
3420 D_S[d].drive_model[j]=infobuf[j]; in check_version()
3427 for (i=0;i<6;i++) if (infobuf[i]!=familyV[i]) break; in check_version()
3431 D_S[d].drive_model[j]=infobuf[j]; in check_version()
3449 for (i=0;i<12;i++) infobuf[i]=0; in check_version()
3463 for (i=0;i<12;i++) j+=infobuf[i]; in check_version()
3467 sprintf(&msgbuf[i*3], " %02X", infobuf[i]); in check_version()
3471 sprintf(&msgbuf[i*3], " %c ", infobuf[i]); in check_version()
3477 for (i=0;i<5;i++) if (infobuf[i]!=family2[i]) break; in check_version()
3485 D_S[d].drive_model[5]=infobuf[i++]; in check_version()
3486 D_S[d].drive_model[6]=infobuf[i++]; in check_version()
3531 for (i=0;i<12;i++) infobuf[i]=0; in check_version()
3534 for (i=1;i<6;i++) if (infobuf[i]!=familyT[i-1]) break; in check_version()
3552 for (j=0;j<4;j++) D_S[d].firmware_version[j]=infobuf[i+j]; in check_version()
3570 j=infobuf[4]; /* one-byte version??? - here: 0x15 */ in check_version()
3573 D_S[d].firmware_version[0]=infobuf[7]; in check_version()
3574 D_S[d].firmware_version[1]=infobuf[8]; in check_version()
3575 D_S[d].firmware_version[2]=infobuf[10]; in check_version()
3576 D_S[d].firmware_version[3]=infobuf[11]; in check_version()
5297 infobuf[l++]=inb(CDi_info); in sbp_data()
5301 if (infobuf[0]==0x00) success=1; in sbp_data()
5303 for (j=0;j<l;j++) sprintf(&msgbuf[j*3], " %02X", infobuf[j]); in sbp_data()
5307 if (infobuf[0]==0x02) in sbp_data()
5322 D_S[d].error_state=infobuf[2]; in sbp_data()
5323 D_S[d].b3=infobuf[3]; in sbp_data()
5324 D_S[d].b4=infobuf[4]; in sbp_data()