taglinefilesource code
ti2031drivers/block/ide-cd.cstruct cdrom_ti ti;
ti2034drivers/block/ide-cd.cstat = verify_area (VERIFY_READ, (void *)arg, sizeof (ti));
ti2037drivers/block/ide-cd.cmemcpy_fromfs (&ti, (void *) arg, sizeof(ti));
ti2039drivers/block/ide-cd.cstat = cdrom_get_toc_entry (drive, ti.cdti_trk0, &first_toc,
ti2042drivers/block/ide-cd.cstat = cdrom_get_toc_entry (drive, ti.cdti_trk1, &last_toc,
ti2046drivers/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);
ti576drivers/net/ibmtr.cstruct tok_info *ti=(struct tok_info *)dev->priv;
ti578drivers/net/ibmtr.cti->open_status=CLOSED;
ti596drivers/net/ibmtr.cstruct tok_info *ti=(struct tok_info *)dev->priv;
ti598drivers/net/ibmtr.cif (ti->open_status==CLOSED) tok_init_card(dev);
ti600drivers/net/ibmtr.cif (ti->open_status==IN_PROGRESS) sleep_on(&ti->wait_for_reset);
ti602drivers/net/ibmtr.cif (ti->open_status==SUCCESS) {
ti618drivers/net/ibmtr.cstruct tok_info *ti=(struct tok_info *) dev->priv;
ti621drivers/net/ibmtr.cti->srb + offsetof(struct srb_close_adapter, command));
ti622drivers/net/ibmtr.cwriteb(CMD_IN_SRB, ti->mmio + ACA_OFFSET + ACA_SET + ISRA_ODD);
ti624drivers/net/ibmtr.cti->open_status=CLOSED;
ti626drivers/net/ibmtr.csleep_on(&ti->wait_for_tok_int);    
ti628drivers/net/ibmtr.cif (readb(ti->srb + offsetof(struct srb_close_adapter, ret_code)))
ti630drivers/net/ibmtr.c(int)readb(ti->srb + offsetof(struct srb_close_adapter, ret_code)));
ti640drivers/net/ibmtr.cstruct tok_info *ti;
ti647drivers/net/ibmtr.cti=(struct tok_info *) dev->priv;
ti649drivers/net/ibmtr.cswitch (ti->do_tok_int) {
ti660drivers/net/ibmtr.cwriteb((~INT_ENABLE), ti->mmio + ACA_OFFSET + ACA_RESET + ISRP_EVEN);
ti663drivers/net/ibmtr.cif (ti->global_int_enable)
ti664drivers/net/ibmtr.coutb(0, ti->global_int_enable);
ti666drivers/net/ibmtr.cstatus=readb(ti->mmio + ACA_OFFSET + ACA_RW + ISRP_ODD);
ti677drivers/net/ibmtr.cif ( *(unsigned char *)(ti->mmio + ACA_OFFSET + ACA_RW + ISRP_EVEN) == 0xFF)
ti691drivers/net/ibmtr.ccheck_reason=ti->mmio + ntohs(readw(ti->sram + ACA_OFFSET + ACA_RW +WWCR_EVEN));
ti699drivers/net/ibmtr.cwriteb((~ADAP_CHK_INT), ti->mmio + ACA_OFFSET + ACA_RESET + ISRP_ODD);
ti700drivers/net/ibmtr.cwriteb(INT_ENABLE, ti->mmio + ACA_OFFSET + ACA_SET  + ISRP_EVEN);
ti703drivers/net/ibmtr.c}  else if (readb(ti->mmio + ACA_OFFSET + ACA_RW + ISRP_EVEN)
ti707drivers/net/ibmtr.c(int)readb(ti->mmio + ACA_OFFSET + ACA_RW + ISRP_EVEN));
ti709drivers/net/ibmtr.cti->mmio + ACA_OFFSET + ACA_RESET + ISRP_EVEN);
ti710drivers/net/ibmtr.cwriteb(INT_ENABLE, ti->mmio + ACA_OFFSET + ACA_SET  + ISRP_EVEN);
ti719drivers/net/ibmtr.cswitch(readb(ti->srb)) { /* SRB command check */
ti724drivers/net/ibmtr.cxmit_ret_code=readb(ti->srb + offsetof(struct srb_xmit, ret_code));
ti728drivers/net/ibmtr.cif (ti->current_skb) {
ti729drivers/net/ibmtr.cdev_kfree_skb(ti->current_skb, FREE_WRITE);
ti730drivers/net/ibmtr.cti->current_skb=NULL;
ti740drivers/net/ibmtr.cxmit_ret_code=readb(ti->srb + offsetof(struct srb_xmit, ret_code));
ti744drivers/net/ibmtr.cif (ti->current_skb) {
ti745drivers/net/ibmtr.cdev_kfree_skb(ti->current_skb, FREE_WRITE);
ti746drivers/net/ibmtr.cti->current_skb=NULL;
ti757drivers/net/ibmtr.cti->srb=ti->sram+ntohs(readw(ti->init_srb +offsetof(struct srb_open_response, srb_addr)));
ti758drivers/net/ibmtr.cti->ssb=ti->sram+ntohs(readw(ti->init_srb +offsetof(struct srb_open_response, ssb_addr)));
ti759drivers/net/ibmtr.cti->arb=ti->sram+ntohs(readw(ti->init_srb +offsetof(struct srb_open_response, arb_addr)));
ti760drivers/net/ibmtr.cti->asb=ti->sram+ntohs(readw(ti->init_srb +offsetof(struct srb_open_response, asb_addr)));
ti761drivers/net/ibmtr.cti->current_skb=NULL;
ti763drivers/net/ibmtr.copen_ret_code = readb(ti->init_srb +offsetof(struct srb_open_response, ret_code));
ti764drivers/net/ibmtr.copen_error_code = readw(ti->init_srb +offsetof(struct srb_open_response, error_code));
ti768drivers/net/ibmtr.cif (!ti->auto_ringspeedsave && (open_error_code==0x24)) {
ti771drivers/net/ibmtr.cti->open_status=FAILURE;
ti772drivers/net/ibmtr.cwake_up(&ti->wait_for_reset);
ti775drivers/net/ibmtr.celse if ((open_error_code==0x2d) && ti->auto_ringspeedsave)
ti787drivers/net/ibmtr.cti->mmio + ACA_OFFSET + ACA_RESET + ISRP_ODD);
ti789drivers/net/ibmtr.cti->mmio + ACA_OFFSET + ACA_RESET + ISRA_ODD);
ti798drivers/net/ibmtr.cif (ti->open_status != FAILURE) {
ti809drivers/net/ibmtr.cwake_up(&ti->wait_for_tok_int);
ti813drivers/net/ibmtr.cif (readb(ti->srb+offsetof(struct dlc_open_sap, ret_code))) {
ti815drivers/net/ibmtr.c(int)readb(ti->srb+offsetof(struct dlc_open_sap, ret_code)));
ti821drivers/net/ibmtr.cti->exsap_station_id=
ti822drivers/net/ibmtr.creadw(ti->srb+offsetof(struct dlc_open_sap, station_id));
ti823drivers/net/ibmtr.cti->open_status=SUCCESS; /* TR adapter is now available */
ti824drivers/net/ibmtr.cwake_up(&ti->wait_for_reset);
ti833drivers/net/ibmtr.cif (readb(ti->srb+offsetof(struct srb_interrupt, ret_code)))
ti835drivers/net/ibmtr.c(int)readb(ti->srb+offsetof(struct srb_interrupt, command)),
ti836drivers/net/ibmtr.c(int)readb(ti->srb+offsetof(struct srb_interrupt, ret_code)));
ti840drivers/net/ibmtr.cif (readb(ti->srb+offsetof(struct srb_read_log, ret_code)))
ti842drivers/net/ibmtr.c(int)readb(ti->srb+offsetof(struct srb_read_log, ret_code)));
ti849drivers/net/ibmtr.c(int)readb(ti->srb+offsetof(struct srb_read_log, 
ti851drivers/net/ibmtr.c(int)readb(ti->srb+offsetof(struct srb_read_log, 
ti853drivers/net/ibmtr.c(int)readb(ti->srb+offsetof(struct srb_read_log, 
ti855drivers/net/ibmtr.c(int)readb(ti->srb+offsetof(struct srb_read_log, A_C_errors)),
ti856drivers/net/ibmtr.c(int)readb(ti->srb+offsetof(struct srb_read_log, 
ti858drivers/net/ibmtr.c(int)readb(ti->srb+offsetof(struct srb_read_log, 
ti860drivers/net/ibmtr.c(int)readb(ti->srb+offsetof(struct srb_read_log, 
ti862drivers/net/ibmtr.c(int)readb(ti->srb+offsetof(struct srb_read_log, 
ti864drivers/net/ibmtr.c(int)readb(ti->srb+offsetof(struct srb_read_log, 
ti866drivers/net/ibmtr.c(int)readb(ti->srb+offsetof(struct srb_read_log, 
ti873drivers/net/ibmtr.c(int)readb(ti->srb));
ti877drivers/net/ibmtr.cwriteb(~CMD_IN_SRB, ti->mmio + ACA_OFFSET + ACA_RESET + ISRA_ODD);
ti878drivers/net/ibmtr.cwriteb(~SRB_RESP_INT, ti->mmio + ACA_OFFSET + ACA_RESET + ISRP_ODD);
ti885drivers/net/ibmtr.cswitch(readb(ti->asb)) { /* ASB command check */
ti890drivers/net/ibmtr.cif (readb(ti->asb+2)!=0xff) /* checks ret_code */
ti892drivers/net/ibmtr.c(int)readb(ti->asb+2), 
ti893drivers/net/ibmtr.c(int)readb(ti->asb));
ti898drivers/net/ibmtr.c(int)readb(ti->asb));
ti902drivers/net/ibmtr.cwriteb(~ASB_FREE_INT, ti->mmio + ACA_OFFSET + ACA_RESET + ISRP_ODD);
ti908drivers/net/ibmtr.cswitch (readb(ti->arb)) { /* ARB command check */
ti912drivers/net/ibmtr.cntohs(readw(ti->arb + offsetof(struct arb_dlc_status, status))),
ti913drivers/net/ibmtr.cntohs(readw(ti->arb 
ti924drivers/net/ibmtr.cring_status=ntohs(readw(ti->arb
ti942drivers/net/ibmtr.cwriteb(DIR_READ_LOG, ti->srb);
ti944drivers/net/ibmtr.cti->mmio + ACA_OFFSET + ACA_SET + ISRP_EVEN);
ti946drivers/net/ibmtr.cti->mmio + ACA_OFFSET + ACA_SET + ISRA_ODD);
ti959drivers/net/ibmtr.c(int)readb(ti->arb));
ti964drivers/net/ibmtr.cwriteb(~ARB_CMD_INT, ti->mmio + ACA_OFFSET + ACA_RESET + ISRP_ODD);
ti965drivers/net/ibmtr.cwriteb(ARB_FREE, ti->mmio + ACA_OFFSET + ACA_SET + ISRA_ODD);
ti971drivers/net/ibmtr.cswitch (readb(ti->ssb)) { /* SSB command check */
ti975drivers/net/ibmtr.cif (readb(ti->ssb+2)) /* checks ret_code */
ti977drivers/net/ibmtr.c(int)readb(ti->ssb+2), (int)readb(ti->ssb+6));    
ti978drivers/net/ibmtr.celse ti->tr_stats.tx_packets++;
ti982drivers/net/ibmtr.cDPRINTK("xmit xid ret_code: %02X\n", (int)readb(ti->ssb+2));
ti985drivers/net/ibmtr.cDPRINTK("Unknown command %02X in ssb\n", (int)readb(ti->ssb));
ti989drivers/net/ibmtr.cwriteb(~SSB_RESP_INT, ti->mmio + ACA_OFFSET + ACA_RESET + ISRP_ODD);
ti990drivers/net/ibmtr.cwriteb(SSB_FREE, ti->mmio + ACA_OFFSET + ACA_SET + ISRA_ODD);
ti997drivers/net/ibmtr.cwriteb(INT_ENABLE, ti->mmio + ACA_OFFSET + ACA_SET + ISRP_EVEN);
ti1015drivers/net/ibmtr.cstruct tok_info *ti;
ti1017drivers/net/ibmtr.cti=(struct tok_info *) dev->priv;
ti1019drivers/net/ibmtr.cwriteb(~INT_ENABLE, ti->mmio + ACA_OFFSET + ACA_RESET + ISRP_EVEN);
ti1022drivers/net/ibmtr.cif (ti->global_int_enable) outb(0,ti->global_int_enable);
ti1024drivers/net/ibmtr.cti->do_tok_int=NOT_FIRST;
ti1032drivers/net/ibmtr.cif(!ti->sram) {
ti1033drivers/net/ibmtr.cwriteb(ti->sram_base, ti->mmio + ACA_OFFSET + ACA_RW + RRR_EVEN);
ti1034drivers/net/ibmtr.cti->sram=((__u32)ti->sram_base << 12);
ti1036drivers/net/ibmtr.cti->init_srb=ti->sram
ti1037drivers/net/ibmtr.c+ntohs((unsigned short)readw(ti->mmio+ ACA_OFFSET + WRBR_EVEN));
ti1038drivers/net/ibmtr.cSET_PAGE(ntohs((unsigned short)readw(ti->mmio+ACA_OFFSET + WRBR_EVEN)));
ti1043drivers/net/ibmtr.cDPRINTK("init_srb(%p):", ti->init_srb);
ti1044drivers/net/ibmtr.cfor (i=0;i<17;i++) printk("%02X ", (int)readb(ti->init_srb+i));
ti1049drivers/net/ibmtr.chw_encoded_addr = readw(ti->init_srb 
ti1058drivers/net/ibmtr.cencoded_addr=(ti->sram + ntohs(hw_encoded_addr));
ti1067drivers/net/ibmtr.cti->auto_ringspeedsave=readb(ti->init_srb
ti1083drivers/net/ibmtr.cstruct tok_info *ti;
ti1087drivers/net/ibmtr.cti=(struct tok_info *) dev->priv;
ti1090drivers/net/ibmtr.cti->do_tok_int=FIRST_INT;
ti1096drivers/net/ibmtr.cif(ti->page_mask)
ti1097drivers/net/ibmtr.cwriteb(SRPR_ENABLE_PAGING, ti->mmio + ACA_OFFSET + ACA_RW + SRPR_EVEN);
ti1100drivers/net/ibmtr.cwriteb(~INT_ENABLE, ti->mmio + ACA_OFFSET + ACA_RESET + ISRP_EVEN);
ti1114drivers/net/ibmtr.cti->open_status=IN_PROGRESS;
ti1115drivers/net/ibmtr.cwriteb(INT_ENABLE, ti->mmio + ACA_OFFSET + ACA_SET + ISRP_EVEN);
ti1122drivers/net/ibmtr.cstruct tok_info *ti=(struct tok_info *) dev->priv;
ti1124drivers/net/ibmtr.cSET_PAGE(ti->srb);
ti1126drivers/net/ibmtr.cwriteb(0, ti->srb+i);
ti1128drivers/net/ibmtr.cwriteb(DLC_OPEN_SAP, ti->srb + offsetof(struct dlc_open_sap, command));
ti1130drivers/net/ibmtr.cti->srb + offsetof(struct dlc_open_sap, max_i_field));
ti1132drivers/net/ibmtr.cti->srb + offsetof(struct dlc_open_sap, sap_options));
ti1134drivers/net/ibmtr.cti->srb + offsetof(struct dlc_open_sap, station_count));
ti1135drivers/net/ibmtr.cwriteb(type, ti->srb + offsetof(struct dlc_open_sap, sap_value));
ti1137drivers/net/ibmtr.cwriteb(CMD_IN_SRB, ti->mmio + ACA_OFFSET + ACA_SET + ISRA_ODD);
ti1145drivers/net/ibmtr.cstruct tok_info *ti;
ti1148drivers/net/ibmtr.cti=(struct tok_info *) dev->priv;
ti1154drivers/net/ibmtr.cwriteb(~SRB_RESP_INT, ti->mmio + ACA_OFFSET + ACA_RESET + ISRP_ODD);
ti1155drivers/net/ibmtr.cwriteb(~CMD_IN_SRB, ti->mmio + ACA_OFFSET + ACA_RESET + ISRA_ODD);
ti1158drivers/net/ibmtr.cwriteb(0, ti->init_srb+i);
ti1161drivers/net/ibmtr.cti->init_srb + offsetof(struct dir_open_adapter, command));
ti1163drivers/net/ibmtr.cti->init_srb + offsetof(struct dir_open_adapter, open_options));
ti1165drivers/net/ibmtr.cti->init_srb + offsetof(struct dir_open_adapter, num_rcv_buf));
ti1167drivers/net/ibmtr.cti->init_srb + offsetof(struct dir_open_adapter, rcv_buf_len));
ti1169drivers/net/ibmtr.cti->init_srb + offsetof(struct dir_open_adapter, dhb_length));
ti1171drivers/net/ibmtr.cti->init_srb + offsetof(struct dir_open_adapter, num_dhb));
ti1173drivers/net/ibmtr.cti->init_srb + offsetof(struct dir_open_adapter, dlc_max_sap));
ti1175drivers/net/ibmtr.cti->init_srb + offsetof(struct dir_open_adapter, dlc_max_sta));
ti1177drivers/net/ibmtr.cti->srb=ti->init_srb; /* We use this one in the interrupt handler */
ti1179drivers/net/ibmtr.cwriteb(INT_ENABLE, ti->mmio + ACA_OFFSET + ACA_SET + ISRP_EVEN);
ti1180drivers/net/ibmtr.cwriteb(CMD_IN_SRB, ti->mmio + ACA_OFFSET + ACA_SET + ISRA_ODD);
ti1186drivers/net/ibmtr.cstruct tok_info *ti=(struct tok_info *) dev->priv;
ti1187drivers/net/ibmtr.cstruct trh_hdr *trhdr=(struct trh_hdr *)ti->current_skb->data;
ti1194drivers/net/ibmtr.cif (readb(ti->asb + offsetof(struct asb_xmit_resp, ret_code))!=0xFF)
ti1202drivers/net/ibmtr.cdhb=ti->sram 
ti1203drivers/net/ibmtr.c+ntohs(readw(ti->arb + offsetof(struct arb_xmit_req, dhb_address)));
ti1204drivers/net/ibmtr.cllc = (struct trllc *) &(ti->current_skb->data[sizeof(struct trh_hdr)]);
ti1206drivers/net/ibmtr.cxmit_command = readb(ti->srb + offsetof(struct srb_xmit, command));
ti1208drivers/net/ibmtr.cwriteb(xmit_command, ti->asb + offsetof(struct asb_xmit_resp, command));
ti1209drivers/net/ibmtr.cwritew(readb(ti->srb + offsetof(struct srb_xmit, station_id)),
ti1210drivers/net/ibmtr.cti->asb + offsetof(struct asb_xmit_resp, station_id));
ti1211drivers/net/ibmtr.cwriteb(llc->ssap, ti->asb + offsetof(struct asb_xmit_resp, rsap_value));
ti1212drivers/net/ibmtr.cwriteb(readb(ti->srb + offsetof(struct srb_xmit, cmd_corr)),
ti1213drivers/net/ibmtr.cti->asb + offsetof(struct asb_xmit_resp, cmd_corr));
ti1214drivers/net/ibmtr.cwriteb(0, ti->asb + offsetof(struct asb_xmit_resp, ret_code));
ti1219drivers/net/ibmtr.cti->asb + offsetof(struct asb_xmit_resp, frame_length));
ti1220drivers/net/ibmtr.cwriteb(0x0e, ti->asb + offsetof(struct asb_xmit_resp, hdr_length));
ti1227drivers/net/ibmtr.cwriteb(RESP_IN_ASB, ti->mmio + ACA_OFFSET + ACA_SET + ISRA_ODD);
ti1248drivers/net/ibmtr.cti->current_skb->len-18);
ti1256drivers/net/ibmtr.cwriteb(*(unsigned char *)(ti->current_skb->data +i), dhb++);
ti1258drivers/net/ibmtr.cwriteb(hdr_len, ti->asb + offsetof(struct asb_xmit_resp, hdr_length));
ti1259drivers/net/ibmtr.cwritew(htons(ti->current_skb->len-sizeof(struct trh_hdr)+hdr_len),
ti1260drivers/net/ibmtr.cti->asb + offsetof(struct asb_xmit_resp, frame_length));
ti1263drivers/net/ibmtr.cfor (i=0; i<ti->current_skb->len-sizeof(struct trh_hdr); i++)
ti1264drivers/net/ibmtr.cwriteb(*(unsigned char *)(ti->current_skb->data +sizeof(struct trh_hdr)+i),
ti1267drivers/net/ibmtr.cwriteb(RESP_IN_ASB, ti->mmio + ACA_OFFSET + ACA_SET + ISRA_ODD);
ti1269drivers/net/ibmtr.cdev_kfree_skb(ti->current_skb,FREE_WRITE);
ti1270drivers/net/ibmtr.cti->current_skb=NULL;
ti1277drivers/net/ibmtr.cstruct tok_info *ti=(struct tok_info *) dev->priv;
ti1287drivers/net/ibmtr.crbuffer=(ti->sram
ti1288drivers/net/ibmtr.c+ntohs(readw(ti->arb + offsetof(struct arb_rec_req, rec_buf_addr))));
ti1290drivers/net/ibmtr.cif(readb(ti->asb + offsetof(struct asb_rec, ret_code))!=0xFF)
ti1294drivers/net/ibmtr.cti->asb + offsetof(struct asb_rec, command));
ti1295drivers/net/ibmtr.cwritew(readw(ti->arb + offsetof(struct arb_rec_req, station_id)),
ti1296drivers/net/ibmtr.cti->asb + offsetof(struct asb_rec, station_id));
ti1297drivers/net/ibmtr.cwritew(readw(ti->arb + offsetof(struct arb_rec_req, rec_buf_addr)),
ti1298drivers/net/ibmtr.cti->asb + offsetof(struct asb_rec, rec_buf_addr));
ti1300drivers/net/ibmtr.clan_hdr_len=readb(ti->arb + offsetof(struct arb_rec_req, lan_hdr_len));
ti1308drivers/net/ibmtr.cntohs(readw(ti->arb + offsetof(struct arb_rec_req, rec_buf_addr))), 
ti1309drivers/net/ibmtr.cti->sram);
ti1325drivers/net/ibmtr.cwriteb(DATA_LOST, ti->asb + offsetof(struct asb_rec, ret_code));
ti1326drivers/net/ibmtr.cti->tr_stats.rx_dropped++;
ti1327drivers/net/ibmtr.cwriteb(RESP_IN_ASB, ti->mmio + ACA_OFFSET + ACA_SET + ISRA_ODD);
ti1364drivers/net/ibmtr.carb_frame_len=ntohs(readw(ti->arb+offsetof(struct arb_rec_req, frame_len)));
ti1372drivers/net/ibmtr.cti->tr_stats.rx_dropped++;
ti1373drivers/net/ibmtr.cwriteb(DATA_LOST, ti->asb + offsetof(struct asb_rec, ret_code));
ti1374drivers/net/ibmtr.cwriteb(RESP_IN_ASB, ti->mmio + ACA_OFFSET + ACA_SET + ISRA_ODD);
ti1407drivers/net/ibmtr.crbuffer=(ti->sram
ti1420drivers/net/ibmtr.cwriteb(0, ti->asb + offsetof(struct asb_rec, ret_code));
ti1422drivers/net/ibmtr.cwriteb(RESP_IN_ASB, ti->mmio + ACA_OFFSET + ACA_SET + ISRA_ODD);
ti1424drivers/net/ibmtr.cti->tr_stats.rx_packets++;
ti1433drivers/net/ibmtr.cstruct tok_info *ti;
ti1434drivers/net/ibmtr.cti=(struct tok_info *) dev->priv;
ti1462drivers/net/ibmtr.cti->current_skb=skb; 
ti1463drivers/net/ibmtr.cwriteb(XMIT_UI_FRAME, ti->srb + offsetof(struct srb_xmit, command));
ti1464drivers/net/ibmtr.cwritew(ti->exsap_station_id, ti->srb 
ti1466drivers/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))
ti181drivers/scsi/sr_ioctl.cstruct cdrom_ti ti;
ti183drivers/scsi/sr_ioctl.cerr = verify_area (VERIFY_READ, (void *) arg, sizeof (ti));
ti186drivers/scsi/sr_ioctl.cmemcpy_fromfs(&ti, (void *) arg, sizeof(ti));
ti192drivers/scsi/sr_ioctl.csr_cmd[4] = ti.cdti_trk0;
ti193drivers/scsi/sr_ioctl.csr_cmd[5] = ti.cdti_ind0;
ti195drivers/scsi/sr_ioctl.csr_cmd[7] = ti.cdti_trk1;
ti196drivers/scsi/sr_ioctl.csr_cmd[8] = ti.cdti_ind1;