taglinefilesource code
ti2152drivers/block/ide-cd.cstruct cdrom_ti ti;
ti2155drivers/block/ide-cd.cstat = verify_area (VERIFY_READ, (void *)arg, sizeof (ti));
ti2158drivers/block/ide-cd.cmemcpy_fromfs (&ti, (void *) arg, sizeof(ti));
ti2160drivers/block/ide-cd.cstat = cdrom_get_toc_entry (drive, ti.cdti_trk0, &first_toc, NULL);
ti2162drivers/block/ide-cd.cstat = cdrom_get_toc_entry (drive, ti.cdti_trk1, &last_toc, NULL);
ti2165drivers/block/ide-cd.cif (ti.cdti_trk1 != CDROM_LEADOUT) ++last_toc;
ti614drivers/cdrom/aztcd.cstruct cdrom_ti ti;
ti706drivers/cdrom/aztcd.cst = verify_area(VERIFY_READ, (void *) arg, sizeof ti);
ti708drivers/cdrom/aztcd.cmemcpy_fromfs(&ti, (void *) arg, sizeof ti);
ti709drivers/cdrom/aztcd.cif (ti.cdti_trk0 < DiskInfo.first
ti710drivers/cdrom/aztcd.c|| ti.cdti_trk0 > DiskInfo.last
ti711drivers/cdrom/aztcd.c|| ti.cdti_trk1 < ti.cdti_trk0)
ti714drivers/cdrom/aztcd.cif (ti.cdti_trk1 > DiskInfo.last)
ti715drivers/cdrom/aztcd.cti.cdti_trk1 = DiskInfo.last;
ti716drivers/cdrom/aztcd.cazt_Play.start = Toc[ti.cdti_trk0].diskTime;
ti717drivers/cdrom/aztcd.cazt_Play.end = Toc[ti.cdti_trk1 + 1].diskTime;
ti2552drivers/cdrom/cdu31a.cstruct cdrom_ti ti;
ti2561drivers/cdrom/cdu31a.ci=verify_area(VERIFY_READ, (char *) arg, sizeof(ti));
ti2565drivers/cdrom/cdu31a.cmemcpy_fromfs(&ti, (char *) arg, sizeof(ti));
ti2566drivers/cdrom/cdu31a.cif (   (ti.cdti_trk0 < sony_toc.first_track_num)
ti2567drivers/cdrom/cdu31a.c|| (ti.cdti_trk0 > sony_toc.last_track_num)
ti2568drivers/cdrom/cdu31a.c|| (ti.cdti_trk1 < ti.cdti_trk0))
ti2573drivers/cdrom/cdu31a.ctrack_idx = find_track(int_to_bcd(ti.cdti_trk0));
ti2586drivers/cdrom/cdu31a.cif (ti.cdti_trk1 >= bcd_to_int(sony_toc.last_track_num))
ti2593drivers/cdrom/cdu31a.ctrack_idx = find_track(int_to_bcd(ti.cdti_trk1+1));
ti291drivers/cdrom/mcd.cstruct cdrom_ti ti;
ti370drivers/cdrom/mcd.cst = verify_area(VERIFY_READ, (void *) arg, sizeof ti);
ti374drivers/cdrom/mcd.cmemcpy_fromfs(&ti, (void *) arg, sizeof ti);
ti376drivers/cdrom/mcd.cif (ti.cdti_trk0 < DiskInfo.first
ti377drivers/cdrom/mcd.c|| ti.cdti_trk0 > DiskInfo.last
ti378drivers/cdrom/mcd.c|| ti.cdti_trk1 < ti.cdti_trk0)
ti383drivers/cdrom/mcd.cif (ti.cdti_trk1 > DiskInfo.last)
ti384drivers/cdrom/mcd.cti. cdti_trk1 = DiskInfo.last;
ti386drivers/cdrom/mcd.cmcd_Play.start = Toc[ti.cdti_trk0].diskTime;
ti387drivers/cdrom/mcd.cmcd_Play.end = Toc[ti.cdti_trk1 + 1].diskTime;
ti302drivers/cdrom/mcdx.cstruct cdrom_ti ti;
ti305drivers/cdrom/mcdx.cif ((ans = verify_area(VERIFY_READ, (void*) arg, sizeof(ti))))
ti307drivers/cdrom/mcdx.cmemcpy_fromfs(&ti, (void*) arg, sizeof(ti));
ti308drivers/cdrom/mcdx.cif ((ti.cdti_trk0 < stuffp->di.n_first)
ti309drivers/cdrom/mcdx.c|| (ti.cdti_trk0 > stuffp->di.n_last)
ti310drivers/cdrom/mcdx.c|| (ti.cdti_trk1 < stuffp->di.n_first))
ti312drivers/cdrom/mcdx.cif (ti.cdti_trk1 > stuffp->di.n_last) ti.cdti_trk1 = stuffp->di.n_last;
ti313drivers/cdrom/mcdx.cTRACE((PLAYTRK, "ioctl() track %d to %d\n", ti.cdti_trk0, ti.cdti_trk1));
ti315drivers/cdrom/mcdx.creturn mcdx_playtrk(stuffp, &ti);
ti1604drivers/cdrom/mcdx.cmcdx_playtrk(struct s_drive_stuff* stuffp, const struct cdrom_ti* ti)
ti1611drivers/cdrom/mcdx.cif (ti) p = &stuffp->toc[ti->cdti_trk0 - stuffp->di.n_first];
ti1618drivers/cdrom/mcdx.cif (ti) {
ti1619drivers/cdrom/mcdx.cp = &stuffp->toc[ti->cdti_trk1 - stuffp->di.n_first + 1];
ti1458drivers/cdrom/optcd.cstruct cdrom_ti ti;
ti1461drivers/cdrom/optcd.cstatus = verify_area(VERIFY_READ, (void *) arg, sizeof ti);
ti1464drivers/cdrom/optcd.cmemcpy_fromfs(&ti, (void *) arg, sizeof ti);
ti1466drivers/cdrom/optcd.cif (ti.cdti_trk0 < disk_info.first
ti1467drivers/cdrom/optcd.c|| ti.cdti_trk0 > disk_info.last
ti1468drivers/cdrom/optcd.c|| ti.cdti_trk1 < ti.cdti_trk0)
ti1470drivers/cdrom/optcd.cif (ti.cdti_trk1 > disk_info.last)
ti1471drivers/cdrom/optcd.cti.cdti_trk1 = disk_info.last;
ti1473drivers/cdrom/optcd.cmsf.cdmsf_min0 = toc[ti.cdti_trk0].cdsc_absaddr.msf.minute;
ti1474drivers/cdrom/optcd.cmsf.cdmsf_sec0 = toc[ti.cdti_trk0].cdsc_absaddr.msf.second;
ti1475drivers/cdrom/optcd.cmsf.cdmsf_frame0 = toc[ti.cdti_trk0].cdsc_absaddr.msf.frame;
ti1476drivers/cdrom/optcd.cmsf.cdmsf_min1 = toc[ti.cdti_trk1 + 1].cdsc_absaddr.msf.minute;
ti1477drivers/cdrom/optcd.cmsf.cdmsf_sec1 = toc[ti.cdti_trk1 + 1].cdsc_absaddr.msf.second;
ti1478drivers/cdrom/optcd.cmsf.cdmsf_frame1 = toc[ti.cdti_trk1 + 1].cdsc_absaddr.msf.frame;
ti516drivers/cdrom/sbpcd.cstatic struct cdrom_ti ti;
ti3951drivers/cdrom/sbpcd.cmemcpy_fromfs(&ti,(void *) arg,sizeof(struct cdrom_ti));
ti3953drivers/cdrom/sbpcd.cti.cdti_trk0,ti.cdti_ind0,ti.cdti_trk1,ti.cdti_ind1);
ti3954drivers/cdrom/sbpcd.cif (ti.cdti_trk0<D_S[d].n_first_track) return (-EINVAL);
ti3955drivers/cdrom/sbpcd.cif (ti.cdti_trk0>D_S[d].n_last_track) return (-EINVAL);
ti3956drivers/cdrom/sbpcd.cif (ti.cdti_trk1<ti.cdti_trk0) ti.cdti_trk1=ti.cdti_trk0;
ti3957drivers/cdrom/sbpcd.cif (ti.cdti_trk1>D_S[d].n_last_track) ti.cdti_trk1=D_S[d].n_last_track;
ti3958drivers/cdrom/sbpcd.cD_S[d].pos_audio_start=D_S[d].TocBuffer[ti.cdti_trk0].address;
ti3959drivers/cdrom/sbpcd.cD_S[d].pos_audio_end=D_S[d].TocBuffer[ti.cdti_trk1+1].address;
ti720drivers/cdrom/sjcd.cstruct cdrom_ti ti; int s;
ti724drivers/cdrom/sjcd.cif( ( s = verify_area( VERIFY_READ, (void *)arg, sizeof( ti ) ) ) == 0 ){
ti725drivers/cdrom/sjcd.cmemcpy_fromfs( &ti, (void *)arg, sizeof( ti ) );
ti727drivers/cdrom/sjcd.cif( ti.cdti_trk0 < sjcd_first_track_no ) return( -EINVAL );
ti728drivers/cdrom/sjcd.cif( ti.cdti_trk1 > sjcd_last_track_no )
ti729drivers/cdrom/sjcd.cti.cdti_trk1 = sjcd_last_track_no;
ti730drivers/cdrom/sjcd.cif( ti.cdti_trk0 > ti.cdti_trk1 ) return( -EINVAL );
ti732drivers/cdrom/sjcd.csjcd_playing.start = sjcd_table_of_contents[ ti.cdti_trk0 ].un.track_msf;
ti733drivers/cdrom/sjcd.csjcd_playing.end = ( ti.cdti_trk1 < sjcd_last_track_no ) ?
ti734drivers/cdrom/sjcd.csjcd_table_of_contents[ ti.cdti_trk1 + 1 ].un.track_msf :
ti1269drivers/cdrom/sonycd535.cstruct cdrom_ti ti;
ti1275drivers/cdrom/sonycd535.cerr = verify_area(VERIFY_READ, (char *)arg, sizeof ti);
ti1279drivers/cdrom/sonycd535.cmemcpy_fromfs(&ti, (char *)arg, sizeof ti);
ti1280drivers/cdrom/sonycd535.cif ((ti.cdti_trk0 < sony_toc->first_track_num)
ti1281drivers/cdrom/sonycd535.c|| (sony_toc->last_track_num < ti.cdti_trk0)
ti1282drivers/cdrom/sonycd535.c|| (ti.cdti_trk1 < ti.cdti_trk0)) {
ti1285drivers/cdrom/sonycd535.ctrack_idx = find_track(int_to_bcd(ti.cdti_trk0));
ti1295drivers/cdrom/sonycd535.cif (bcd_to_int(sony_toc->last_track_num) <= ti.cdti_trk1) {
ti1299drivers/cdrom/sonycd535.ctrack_idx = find_track(int_to_bcd(ti.cdti_trk1 + 1));
ti215drivers/net/ibmtr.cstruct tok_info *ti=0;
ti324drivers/net/ibmtr.cti = (struct tok_info *)kmalloc(sizeof(struct tok_info), GFP_KERNEL);
ti325drivers/net/ibmtr.cif (ti == NULL) return -ENOMEM;
ti327drivers/net/ibmtr.cti = badti; 
ti331drivers/net/ibmtr.cmemset(ti, 0, sizeof(struct tok_info));
ti333drivers/net/ibmtr.cti->mmio= t_mmio;
ti335drivers/net/ibmtr.cdev->priv = ti;     /* this seems like the logical use of the
ti347drivers/net/ibmtr.cti->global_int_enable=GLOBAL_INT_ENABLE+((irq==9) ? 2 : irq);
ti348drivers/net/ibmtr.cti->sram=0;
ti350drivers/net/ibmtr.cDPRINTK("ti->global_int_enable: %04X\n",ti->global_int_enable);
ti358drivers/net/ibmtr.cti->global_int_enable=0;
ti359drivers/net/ibmtr.cti->sram=((__u32)(inb(PIOaddr+ADAPTRESETREL) & 0xfe) << 12);
ti366drivers/net/ibmtr.cwhile(!readb(ti->mmio + ACA_OFFSET + ACA_RW + RRR_EVEN));
ti367drivers/net/ibmtr.cti->sram=((__u32)readb(ti->mmio + ACA_OFFSET + ACA_RW + RRR_EVEN)<<12);
ti368drivers/net/ibmtr.cti->global_int_enable=PIOaddr+ADAPTINTREL;
ti376drivers/net/ibmtr.cDPRINTK(", ti->mmio=%08X",ti->mmio);
ti389drivers/net/ibmtr.ctemp = readb(ti->mmio + AIP + i) & 0x0f;
ti391drivers/net/ibmtr.cprintk("%1X",ti->hw_address[j]=temp);
ti393drivers/net/ibmtr.cti->hw_address[j]=temp;
ti396drivers/net/ibmtr.cdev->dev_addr[(j/2)]=ti->hw_address[j]+(ti->hw_address[j-1]<<4);
ti404drivers/net/ibmtr.cti->adapter_type = readb(ti->mmio + AIPADAPTYPE);
ti407drivers/net/ibmtr.cti->data_rate = readb(ti->mmio + AIPDATARATE);
ti410drivers/net/ibmtr.cti->token_release = readb(ti->mmio + AIPEARLYTOKEN);
ti413drivers/net/ibmtr.cti->avail_shared_ram = get_sram_size(ti);
ti417drivers/net/ibmtr.cti->shared_ram_paging = readb(ti->mmio + AIPSHRAMPAGE);
ti420drivers/net/ibmtr.cti->dhb_size4mb = readb(ti->mmio + AIP4MBDHB);
ti423drivers/net/ibmtr.cti->dhb_size16mb = readb(ti->mmio + AIP16MBDHB);
ti427drivers/net/ibmtr.c"dhb(4mb=%x, 16mb=%x)\n",ti->adapter_type,
ti428drivers/net/ibmtr.cti->data_rate, ti->token_release, ti->avail_shared_ram/2, 
ti429drivers/net/ibmtr.cti->shared_ram_paging, ti->dhb_size4mb, ti->dhb_size16mb);
ti440drivers/net/ibmtr.cti->mapped_ram_size=1<<(((readb(ti->mmio+ ACA_OFFSET + ACA_RW + RRR_ODD)) >>2) +4);
ti441drivers/net/ibmtr.cti->page_mask=0;
ti442drivers/net/ibmtr.cif (ti->shared_ram_paging == 0xf) { /* No paging in adapter */
ti443drivers/net/ibmtr.cti->mapped_ram_size = ti->avail_shared_ram;
ti450drivers/net/ibmtr.cDPRINTK("shared ram page size: %dK\n",ti->mapped_ram_size/2);
ti453drivers/net/ibmtr.cswitch(ti->shared_ram_paging) {
ti457drivers/net/ibmtr.cti->page_mask=(ti->mapped_ram_size==32) ? 0xc0 : 0;
ti461drivers/net/ibmtr.cti->page_mask=(ti->mapped_ram_size==64) ? 0x80 : 0;
ti465drivers/net/ibmtr.cti->page_mask=(ti->mapped_ram_size==32) ? 0xc0 : 0;
ti466drivers/net/ibmtr.cti->page_mask=(ti->mapped_ram_size==64) ? 0x80 : 0;
ti472drivers/net/ibmtr.cbadti=ti;
ti475drivers/net/ibmtr.cDPRINTK("Unknown shared ram paging info %01X\n",ti->shared_ram_paging);
ti476drivers/net/ibmtr.cbadti=ti;    /* bail out if bad code */
ti479drivers/net/ibmtr.cif (ti->page_mask) {
ti480drivers/net/ibmtr.cif (pg_size > ti->mapped_ram_size) {
ti482drivers/net/ibmtr.cpg_size, ti->mapped_ram_size);
ti483drivers/net/ibmtr.cti->page_mask = 0;    /* reset paging */
ti485drivers/net/ibmtr.cti->mapped_ram_size=ti->avail_shared_ram; 
ti487drivers/net/ibmtr.c((ti->page_mask^ 0xff)+1)>>2);
ti496drivers/net/ibmtr.crrr_32 = (readb(ti->mmio+ ACA_OFFSET + ACA_RW + RRR_ODD))>>2;
ti499drivers/net/ibmtr.cchk_base = new_base + (ti->mapped_ram_size>>3);
ti505drivers/net/ibmtr.cbadti=ti;
ti507drivers/net/ibmtr.cti->sram_base = new_base;
ti518drivers/net/ibmtr.cDPRINTK("Using %dK shared RAM\n",ti->mapped_ram_size/2);
ti523drivers/net/ibmtr.cbadti = ti;    /*  keep track of unused tok_info */
ti537drivers/net/ibmtr.cchannel_def[cardpresent-1], adapter_def(ti->adapter_type), irq,
ti538drivers/net/ibmtr.cPIOaddr, ti->mapped_ram_size/2);
ti582drivers/net/ibmtr.cstruct tok_info *ti=(struct tok_info *)dev->priv;
ti584drivers/net/ibmtr.cif (ti->open_status==CLOSED) tok_init_card((unsigned long)dev);
ti586drivers/net/ibmtr.cif (ti->open_status==IN_PROGRESS) sleep_on(&ti->wait_for_reset);
ti588drivers/net/ibmtr.cif (ti->open_status==SUCCES) {
ti604drivers/net/ibmtr.cstruct tok_info *ti=(struct tok_info *) dev->priv;
ti607drivers/net/ibmtr.cti->srb + offsetof(struct srb_close_adapter, command));
ti608drivers/net/ibmtr.cwriteb(CMD_IN_SRB, ti->mmio + ACA_OFFSET + ACA_SET + ISRA_ODD);
ti610drivers/net/ibmtr.cti->open_status=CLOSED;
ti612drivers/net/ibmtr.csleep_on(&ti->wait_for_tok_int);    
ti614drivers/net/ibmtr.cif (readb(ti->srb + offsetof(struct srb_close_adapter, ret_code)))
ti616drivers/net/ibmtr.c(int)readb(ti->srb + offsetof(struct srb_close_adapter, ret_code)));
ti626drivers/net/ibmtr.cstruct tok_info *ti;
ti633drivers/net/ibmtr.cti=(struct tok_info *) dev->priv;
ti635drivers/net/ibmtr.cswitch (ti->do_tok_int) {
ti646drivers/net/ibmtr.cwriteb((~INT_ENABLE), ti->mmio + ACA_OFFSET + ACA_RESET + ISRP_EVEN);
ti649drivers/net/ibmtr.cif (ti->global_int_enable)
ti650drivers/net/ibmtr.coutb(0, ti->global_int_enable);
ti652drivers/net/ibmtr.cstatus=readb(ti->mmio + ACA_OFFSET + ACA_RW + ISRP_ODD);
ti659drivers/net/ibmtr.ccheck_reason=ti->mmio + ntohs(readw(ti->mmio + ACA_OFFSET + ACA_RW +WWCR_EVEN));
ti667drivers/net/ibmtr.cwriteb((~ADAP_CHK_INT), ti->mmio + ACA_OFFSET + ACA_RESET + ISRP_ODD);
ti668drivers/net/ibmtr.cwriteb(INT_ENABLE, ti->mmio + ACA_OFFSET + ACA_SET  + ISRP_EVEN);
ti671drivers/net/ibmtr.c}  else if (readb(ti->mmio + ACA_OFFSET + ACA_RW + ISRP_EVEN)
ti675drivers/net/ibmtr.c(int)readb(ti->mmio + ACA_OFFSET + ACA_RW + ISRP_EVEN));
ti677drivers/net/ibmtr.cti->mmio + ACA_OFFSET + ACA_RESET + ISRP_EVEN);
ti678drivers/net/ibmtr.cwriteb(INT_ENABLE, ti->mmio + ACA_OFFSET + ACA_SET  + ISRP_EVEN);
ti687drivers/net/ibmtr.cswitch(readb(ti->srb)) { /* SRB command check */
ti692drivers/net/ibmtr.cxmit_ret_code=readb(ti->srb + offsetof(struct srb_xmit, ret_code));
ti696drivers/net/ibmtr.cif (ti->current_skb) {
ti697drivers/net/ibmtr.cdev_kfree_skb(ti->current_skb, FREE_WRITE);
ti698drivers/net/ibmtr.cti->current_skb=NULL;
ti708drivers/net/ibmtr.cxmit_ret_code=readb(ti->srb + offsetof(struct srb_xmit, ret_code));
ti712drivers/net/ibmtr.cif (ti->current_skb) {
ti713drivers/net/ibmtr.cdev_kfree_skb(ti->current_skb, FREE_WRITE);
ti714drivers/net/ibmtr.cti->current_skb=NULL;
ti725drivers/net/ibmtr.cti->srb=ti->sram+ntohs(readw(ti->init_srb +offsetof(struct srb_open_response, srb_addr)));
ti726drivers/net/ibmtr.cti->ssb=ti->sram+ntohs(readw(ti->init_srb +offsetof(struct srb_open_response, ssb_addr)));
ti727drivers/net/ibmtr.cti->arb=ti->sram+ntohs(readw(ti->init_srb +offsetof(struct srb_open_response, arb_addr)));
ti728drivers/net/ibmtr.cti->asb=ti->sram+ntohs(readw(ti->init_srb +offsetof(struct srb_open_response, asb_addr)));
ti729drivers/net/ibmtr.cti->current_skb=NULL;
ti731drivers/net/ibmtr.copen_ret_code = readb(ti->init_srb +offsetof(struct srb_open_response, ret_code));
ti732drivers/net/ibmtr.copen_error_code = readw(ti->init_srb +offsetof(struct srb_open_response, error_code));
ti736drivers/net/ibmtr.cif (!ti->auto_ringspeedsave && (open_error_code==0x24)) {
ti739drivers/net/ibmtr.cti->open_status=FAILURE;
ti740drivers/net/ibmtr.cwake_up(&ti->wait_for_reset);
ti743drivers/net/ibmtr.celse if ((open_error_code==0x2d) && ti->auto_ringspeedsave)
ti755drivers/net/ibmtr.cti->mmio + ACA_OFFSET + ACA_RESET + ISRP_ODD);
ti757drivers/net/ibmtr.cti->mmio + ACA_OFFSET + ACA_RESET + ISRA_ODD);
ti766drivers/net/ibmtr.cif (ti->open_status != FAILURE) {
ti777drivers/net/ibmtr.cwake_up(&ti->wait_for_tok_int);
ti781drivers/net/ibmtr.cif (readb(ti->srb+offsetof(struct dlc_open_sap, ret_code))) {
ti783drivers/net/ibmtr.c(int)readb(ti->srb+offsetof(struct dlc_open_sap, ret_code)));
ti789drivers/net/ibmtr.cti->exsap_station_id=
ti790drivers/net/ibmtr.creadw(ti->srb+offsetof(struct dlc_open_sap, station_id));
ti791drivers/net/ibmtr.cti->open_status=SUCCES; /* TR adapter is now available */
ti792drivers/net/ibmtr.cwake_up(&ti->wait_for_reset);
ti801drivers/net/ibmtr.cif (readb(ti->srb+offsetof(struct srb_interrupt, ret_code)))
ti803drivers/net/ibmtr.c(int)readb(ti->srb+offsetof(struct srb_interrupt, command)),
ti804drivers/net/ibmtr.c(int)readb(ti->srb+offsetof(struct srb_interrupt, ret_code)));
ti808drivers/net/ibmtr.cif (readb(ti->srb+offsetof(struct srb_read_log, ret_code)))
ti810drivers/net/ibmtr.c(int)readb(ti->srb+offsetof(struct srb_read_log, ret_code)));
ti817drivers/net/ibmtr.c(int)readb(ti->srb+offsetof(struct srb_read_log, 
ti819drivers/net/ibmtr.c(int)readb(ti->srb+offsetof(struct srb_read_log, 
ti821drivers/net/ibmtr.c(int)readb(ti->srb+offsetof(struct srb_read_log, 
ti823drivers/net/ibmtr.c(int)readb(ti->srb+offsetof(struct srb_read_log, A_C_errors)),
ti824drivers/net/ibmtr.c(int)readb(ti->srb+offsetof(struct srb_read_log, 
ti826drivers/net/ibmtr.c(int)readb(ti->srb+offsetof(struct srb_read_log, 
ti828drivers/net/ibmtr.c(int)readb(ti->srb+offsetof(struct srb_read_log, 
ti830drivers/net/ibmtr.c(int)readb(ti->srb+offsetof(struct srb_read_log, 
ti832drivers/net/ibmtr.c(int)readb(ti->srb+offsetof(struct srb_read_log, 
ti834drivers/net/ibmtr.c(int)readb(ti->srb+offsetof(struct srb_read_log, 
ti841drivers/net/ibmtr.c(int)readb(ti->srb));
ti845drivers/net/ibmtr.cwriteb(~CMD_IN_SRB, ti->mmio + ACA_OFFSET + ACA_RESET + ISRA_ODD);
ti846drivers/net/ibmtr.cwriteb(~SRB_RESP_INT, ti->mmio + ACA_OFFSET + ACA_RESET + ISRP_ODD);
ti853drivers/net/ibmtr.cswitch(readb(ti->asb)) { /* ASB command check */
ti858drivers/net/ibmtr.cif (readb(ti->asb+2)!=0xff) /* checks ret_code */
ti860drivers/net/ibmtr.c(int)readb(ti->asb+2), 
ti861drivers/net/ibmtr.c(int)readb(ti->asb));
ti866drivers/net/ibmtr.c(int)readb(ti->asb));
ti870drivers/net/ibmtr.cwriteb(~ASB_FREE_INT, ti->mmio + ACA_OFFSET + ACA_RESET + ISRP_ODD);
ti876drivers/net/ibmtr.cswitch (readb(ti->arb)) { /* ARB command check */
ti880drivers/net/ibmtr.cntohs(readw(ti->arb + offsetof(struct arb_dlc_status, status))),
ti881drivers/net/ibmtr.cntohs(readw(ti->arb 
ti892drivers/net/ibmtr.cring_status=ntohs(readw(ti->arb
ti910drivers/net/ibmtr.cwriteb(DIR_READ_LOG, ti->srb);
ti912drivers/net/ibmtr.cti->mmio + ACA_OFFSET + ACA_SET + ISRP_EVEN);
ti914drivers/net/ibmtr.cti->mmio + ACA_OFFSET + ACA_SET + ISRA_ODD);
ti927drivers/net/ibmtr.c(int)readb(ti->arb));
ti932drivers/net/ibmtr.cwriteb(~ARB_CMD_INT, ti->mmio + ACA_OFFSET + ACA_RESET + ISRP_ODD);
ti933drivers/net/ibmtr.cwriteb(ARB_FREE, ti->mmio + ACA_OFFSET + ACA_SET + ISRA_ODD);
ti939drivers/net/ibmtr.cswitch (readb(ti->ssb)) { /* SSB command check */
ti943drivers/net/ibmtr.cif (readb(ti->ssb+2)) /* checks ret_code */
ti945drivers/net/ibmtr.c(int)readb(ti->ssb+2), (int)readb(ti->ssb+6));    
ti946drivers/net/ibmtr.celse ti->tr_stats.tx_packets++;
ti950drivers/net/ibmtr.cDPRINTK("xmit xid ret_code: %02X\n", (int)readb(ti->ssb+2));
ti953drivers/net/ibmtr.cDPRINTK("Unknown command %02X in ssb\n", (int)readb(ti->ssb));
ti957drivers/net/ibmtr.cwriteb(~SSB_RESP_INT, ti->mmio + ACA_OFFSET + ACA_RESET + ISRP_ODD);
ti958drivers/net/ibmtr.cwriteb(SSB_FREE, ti->mmio + ACA_OFFSET + ACA_SET + ISRA_ODD);
ti965drivers/net/ibmtr.cwriteb(INT_ENABLE, ti->mmio + ACA_OFFSET + ACA_SET + ISRP_EVEN);
ti983drivers/net/ibmtr.cstruct tok_info *ti;
ti985drivers/net/ibmtr.cti=(struct tok_info *) dev->priv;
ti987drivers/net/ibmtr.cwriteb(~INT_ENABLE, ti->mmio + ACA_OFFSET + ACA_RESET + ISRP_EVEN);
ti990drivers/net/ibmtr.cif (ti->global_int_enable) outb(0,ti->global_int_enable);
ti992drivers/net/ibmtr.cti->do_tok_int=NOT_FIRST;
ti1000drivers/net/ibmtr.cif(!ti->sram) {
ti1001drivers/net/ibmtr.cwriteb(ti->sram_base, ti->mmio + ACA_OFFSET + ACA_RW + RRR_EVEN);
ti1002drivers/net/ibmtr.cti->sram=((__u32)ti->sram_base << 12);
ti1004drivers/net/ibmtr.cti->init_srb=ti->sram
ti1005drivers/net/ibmtr.c+ntohs((unsigned short)readw(ti->mmio+ ACA_OFFSET + WRBR_EVEN));
ti1006drivers/net/ibmtr.cSET_PAGE(ntohs((unsigned short)readw(ti->mmio+ACA_OFFSET + WRBR_EVEN)));
ti1011drivers/net/ibmtr.cDPRINTK("init_srb(%p):", ti->init_srb);
ti1012drivers/net/ibmtr.cfor (i=0;i<17;i++) printk("%02X ", (int)readb(ti->init_srb+i));
ti1017drivers/net/ibmtr.chw_encoded_addr = readw(ti->init_srb 
ti1026drivers/net/ibmtr.cencoded_addr=(ti->sram + ntohs(hw_encoded_addr));
ti1035drivers/net/ibmtr.cti->auto_ringspeedsave=readb(ti->init_srb
ti1051drivers/net/ibmtr.cstruct tok_info *ti;
ti1056drivers/net/ibmtr.cti=(struct tok_info *) dev->priv;
ti1059drivers/net/ibmtr.cti->do_tok_int=FIRST_INT;
ti1065drivers/net/ibmtr.cif(ti->page_mask)
ti1066drivers/net/ibmtr.cwriteb(SRPR_ENABLE_PAGING, ti->mmio + ACA_OFFSET + ACA_RW + SRPR_EVEN);
ti1069drivers/net/ibmtr.cwriteb(~INT_ENABLE, ti->mmio + ACA_OFFSET + ACA_RESET + ISRP_EVEN);
ti1083drivers/net/ibmtr.cti->open_status=IN_PROGRESS;
ti1084drivers/net/ibmtr.cwriteb(INT_ENABLE, ti->mmio + ACA_OFFSET + ACA_SET + ISRP_EVEN);
ti1091drivers/net/ibmtr.cstruct tok_info *ti=(struct tok_info *) dev->priv;
ti1093drivers/net/ibmtr.cSET_PAGE(ti->srb);
ti1095drivers/net/ibmtr.cwriteb(0, ti->srb+i);
ti1097drivers/net/ibmtr.cwriteb(DLC_OPEN_SAP, ti->srb + offsetof(struct dlc_open_sap, command));
ti1099drivers/net/ibmtr.cti->srb + offsetof(struct dlc_open_sap, max_i_field));
ti1101drivers/net/ibmtr.cti->srb + offsetof(struct dlc_open_sap, sap_options));
ti1103drivers/net/ibmtr.cti->srb + offsetof(struct dlc_open_sap, station_count));
ti1104drivers/net/ibmtr.cwriteb(type, ti->srb + offsetof(struct dlc_open_sap, sap_value));
ti1106drivers/net/ibmtr.cwriteb(CMD_IN_SRB, ti->mmio + ACA_OFFSET + ACA_SET + ISRA_ODD);
ti1114drivers/net/ibmtr.cstruct tok_info *ti;
ti1117drivers/net/ibmtr.cti=(struct tok_info *) dev->priv;
ti1123drivers/net/ibmtr.cwriteb(~SRB_RESP_INT, ti->mmio + ACA_OFFSET + ACA_RESET + ISRP_ODD);
ti1124drivers/net/ibmtr.cwriteb(~CMD_IN_SRB, ti->mmio + ACA_OFFSET + ACA_RESET + ISRA_ODD);
ti1127drivers/net/ibmtr.cwriteb(0, ti->init_srb+i);
ti1130drivers/net/ibmtr.cti->init_srb + offsetof(struct dir_open_adapter, command));
ti1132drivers/net/ibmtr.cti->init_srb + offsetof(struct dir_open_adapter, open_options));
ti1134drivers/net/ibmtr.cti->init_srb + offsetof(struct dir_open_adapter, num_rcv_buf));
ti1136drivers/net/ibmtr.cti->init_srb + offsetof(struct dir_open_adapter, rcv_buf_len));
ti1138drivers/net/ibmtr.cti->init_srb + offsetof(struct dir_open_adapter, dhb_length));
ti1140drivers/net/ibmtr.cti->init_srb + offsetof(struct dir_open_adapter, num_dhb));
ti1142drivers/net/ibmtr.cti->init_srb + offsetof(struct dir_open_adapter, dlc_max_sap));
ti1144drivers/net/ibmtr.cti->init_srb + offsetof(struct dir_open_adapter, dlc_max_sta));
ti1146drivers/net/ibmtr.cti->srb=ti->init_srb; /* We use this one in the interrupt handler */
ti1148drivers/net/ibmtr.cwriteb(INT_ENABLE, ti->mmio + ACA_OFFSET + ACA_SET + ISRP_EVEN);
ti1149drivers/net/ibmtr.cwriteb(CMD_IN_SRB, ti->mmio + ACA_OFFSET + ACA_SET + ISRA_ODD);
ti1155drivers/net/ibmtr.cstruct tok_info *ti=(struct tok_info *) dev->priv;
ti1156drivers/net/ibmtr.cstruct trh_hdr *trhdr=(struct trh_hdr *)ti->current_skb->data;
ti1162drivers/net/ibmtr.cif (readb(ti->asb + offsetof(struct asb_xmit_resp, ret_code))!=0xFF)
ti1170drivers/net/ibmtr.cdhb=ti->sram 
ti1171drivers/net/ibmtr.c+ntohs(readw(ti->arb + offsetof(struct arb_xmit_req, dhb_address)));
ti1173drivers/net/ibmtr.cxmit_command = readb(ti->srb + offsetof(struct srb_xmit, command));
ti1175drivers/net/ibmtr.cwriteb(xmit_command, ti->asb + offsetof(struct asb_xmit_resp, command));
ti1176drivers/net/ibmtr.cwritew(readb(ti->srb + offsetof(struct srb_xmit, station_id)),
ti1177drivers/net/ibmtr.cti->asb + offsetof(struct asb_xmit_resp, station_id));
ti1178drivers/net/ibmtr.cwriteb(EXTENDED_SAP, ti->asb + offsetof(struct asb_xmit_resp, rsap_value));
ti1179drivers/net/ibmtr.cwriteb(readb(ti->srb + offsetof(struct srb_xmit, cmd_corr)),
ti1180drivers/net/ibmtr.cti->asb + offsetof(struct asb_xmit_resp, cmd_corr));
ti1181drivers/net/ibmtr.cwriteb(0, ti->asb + offsetof(struct asb_xmit_resp, ret_code));
ti1186drivers/net/ibmtr.cti->asb + offsetof(struct asb_xmit_resp, frame_length));
ti1187drivers/net/ibmtr.cwriteb(0x0e, ti->asb + offsetof(struct asb_xmit_resp, hdr_length));
ti1194drivers/net/ibmtr.cwriteb(RESP_IN_ASB, ti->mmio + ACA_OFFSET + ACA_SET + ISRA_ODD);
ti1215drivers/net/ibmtr.cti->current_skb->len-18);
ti1223drivers/net/ibmtr.cwriteb(*(unsigned char *)(ti->current_skb->data +i), dhb++);
ti1225drivers/net/ibmtr.cwriteb(hdr_len, ti->asb + offsetof(struct asb_xmit_resp, hdr_length));
ti1226drivers/net/ibmtr.cwritew(htons(ti->current_skb->len-sizeof(struct trh_hdr)+hdr_len),
ti1227drivers/net/ibmtr.cti->asb + offsetof(struct asb_xmit_resp, frame_length));
ti1230drivers/net/ibmtr.cfor (i=0; i<ti->current_skb->len-sizeof(struct trh_hdr); i++)
ti1231drivers/net/ibmtr.cwriteb(*(unsigned char *)(ti->current_skb->data +sizeof(struct trh_hdr)+i),
ti1234drivers/net/ibmtr.cwriteb(RESP_IN_ASB, ti->mmio + ACA_OFFSET + ACA_SET + ISRA_ODD);
ti1236drivers/net/ibmtr.cdev_kfree_skb(ti->current_skb,FREE_WRITE);
ti1237drivers/net/ibmtr.cti->current_skb=NULL;
ti1244drivers/net/ibmtr.cstruct tok_info *ti=(struct tok_info *) dev->priv;
ti1252drivers/net/ibmtr.crbuffer=(ti->sram
ti1253drivers/net/ibmtr.c+ntohs(readw(ti->arb + offsetof(struct arb_rec_req, rec_buf_addr))));
ti1255drivers/net/ibmtr.cif(readb(ti->asb + offsetof(struct asb_rec, ret_code))!=0xFF)
ti1259drivers/net/ibmtr.cti->asb + offsetof(struct asb_rec, command));
ti1260drivers/net/ibmtr.cwritew(readw(ti->arb + offsetof(struct arb_rec_req, station_id)),
ti1261drivers/net/ibmtr.cti->asb + offsetof(struct asb_rec, station_id));
ti1262drivers/net/ibmtr.cwritew(readw(ti->arb + offsetof(struct arb_rec_req, rec_buf_addr)),
ti1263drivers/net/ibmtr.cti->asb + offsetof(struct asb_rec, rec_buf_addr));
ti1265drivers/net/ibmtr.clan_hdr_len=readb(ti->arb + offsetof(struct arb_rec_req, lan_hdr_len));
ti1273drivers/net/ibmtr.cntohs(readw(ti->arb + offsetof(struct arb_rec_req, rec_buf_addr))), 
ti1274drivers/net/ibmtr.cti->sram);
ti1290drivers/net/ibmtr.cwriteb(DATA_LOST, ti->asb + offsetof(struct asb_rec, ret_code));
ti1291drivers/net/ibmtr.cti->tr_stats.rx_dropped++;
ti1292drivers/net/ibmtr.cwriteb(RESP_IN_ASB, ti->mmio + ACA_OFFSET + ACA_SET + ISRA_ODD);
ti1324drivers/net/ibmtr.carb_frame_len=ntohs(readw(ti->arb+offsetof(struct arb_rec_req, frame_len)));
ti1328drivers/net/ibmtr.cti->tr_stats.rx_dropped++;
ti1329drivers/net/ibmtr.cwriteb(DATA_LOST, ti->asb + offsetof(struct asb_rec, ret_code));
ti1330drivers/net/ibmtr.cwriteb(RESP_IN_ASB, ti->mmio + ACA_OFFSET + ACA_SET + ISRA_ODD);
ti1357drivers/net/ibmtr.crbuffer=(ti->sram
ti1370drivers/net/ibmtr.cwriteb(0, ti->asb + offsetof(struct asb_rec, ret_code));
ti1372drivers/net/ibmtr.cwriteb(RESP_IN_ASB, ti->mmio + ACA_OFFSET + ACA_SET + ISRA_ODD);
ti1374drivers/net/ibmtr.cti->tr_stats.rx_packets++;
ti1383drivers/net/ibmtr.cstruct tok_info *ti;
ti1384drivers/net/ibmtr.cti=(struct tok_info *) dev->priv;
ti1412drivers/net/ibmtr.cti->current_skb=skb; 
ti1413drivers/net/ibmtr.cwriteb(XMIT_UI_FRAME, ti->srb + offsetof(struct srb_xmit, command));
ti1414drivers/net/ibmtr.cwritew(ti->exsap_station_id, ti->srb 
ti1416drivers/net/ibmtr.cwriteb(CMD_IN_SRB, (ti->mmio + ACA_OFFSET + ACA_SET + ISRA_ODD));
ti166drivers/net/ibmtr.h#define SET_PAGE(x) (writeb(((x>>8)&ti.page_mask), \
ti167drivers/net/ibmtr.hti->mmio + ACA_OFFSET + ACA_RW + SRPR_EVEN))
ti177drivers/scsi/sr_ioctl.cstruct cdrom_ti ti;
ti179drivers/scsi/sr_ioctl.cerr = verify_area (VERIFY_READ, (void *) arg, sizeof (ti));
ti182drivers/scsi/sr_ioctl.cmemcpy_fromfs(&ti, (void *) arg, sizeof(ti));
ti188drivers/scsi/sr_ioctl.csr_cmd[4] = ti.cdti_trk0;
ti189drivers/scsi/sr_ioctl.csr_cmd[5] = ti.cdti_ind0;
ti191drivers/scsi/sr_ioctl.csr_cmd[7] = ti.cdti_trk1;
ti192drivers/scsi/sr_ioctl.csr_cmd[8] = ti.cdti_ind1;