tag | line | file | source code |
ti | 2091 | drivers/block/ide-cd.c | struct cdrom_ti ti; |
ti | 2094 | drivers/block/ide-cd.c | stat = verify_area (VERIFY_READ, (void *)arg, sizeof (ti)); |
ti | 2097 | drivers/block/ide-cd.c | memcpy_fromfs (&ti, (void *) arg, sizeof(ti)); |
ti | 2099 | drivers/block/ide-cd.c | stat = cdrom_get_toc_entry (drive, ti.cdti_trk0, &first_toc, NULL); |
ti | 2101 | drivers/block/ide-cd.c | stat = cdrom_get_toc_entry (drive, ti.cdti_trk1, &last_toc, NULL); |
ti | 2104 | drivers/block/ide-cd.c | if (ti.cdti_trk1 != CDROM_LEADOUT) ++last_toc; |
ti | 614 | drivers/cdrom/aztcd.c | struct cdrom_ti ti; |
ti | 706 | drivers/cdrom/aztcd.c | st = verify_area(VERIFY_READ, (void *) arg, sizeof ti); |
ti | 708 | drivers/cdrom/aztcd.c | memcpy_fromfs(&ti, (void *) arg, sizeof ti); |
ti | 709 | drivers/cdrom/aztcd.c | if (ti.cdti_trk0 < DiskInfo.first |
ti | 710 | drivers/cdrom/aztcd.c | || ti.cdti_trk0 > DiskInfo.last |
ti | 711 | drivers/cdrom/aztcd.c | || ti.cdti_trk1 < ti.cdti_trk0) |
ti | 714 | drivers/cdrom/aztcd.c | if (ti.cdti_trk1 > DiskInfo.last) |
ti | 715 | drivers/cdrom/aztcd.c | ti.cdti_trk1 = DiskInfo.last; |
ti | 716 | drivers/cdrom/aztcd.c | azt_Play.start = Toc[ti.cdti_trk0].diskTime; |
ti | 717 | drivers/cdrom/aztcd.c | azt_Play.end = Toc[ti.cdti_trk1 + 1].diskTime; |
ti | 2550 | drivers/cdrom/cdu31a.c | struct cdrom_ti ti; |
ti | 2559 | drivers/cdrom/cdu31a.c | i=verify_area(VERIFY_READ, (char *) arg, sizeof(ti)); |
ti | 2563 | drivers/cdrom/cdu31a.c | memcpy_fromfs(&ti, (char *) arg, sizeof(ti)); |
ti | 2564 | drivers/cdrom/cdu31a.c | if ( (ti.cdti_trk0 < sony_toc.first_track_num) |
ti | 2565 | drivers/cdrom/cdu31a.c | || (ti.cdti_trk0 > sony_toc.last_track_num) |
ti | 2566 | drivers/cdrom/cdu31a.c | || (ti.cdti_trk1 < ti.cdti_trk0)) |
ti | 2571 | drivers/cdrom/cdu31a.c | track_idx = find_track(int_to_bcd(ti.cdti_trk0)); |
ti | 2584 | drivers/cdrom/cdu31a.c | if (ti.cdti_trk1 >= bcd_to_int(sony_toc.last_track_num)) |
ti | 2591 | drivers/cdrom/cdu31a.c | track_idx = find_track(int_to_bcd(ti.cdti_trk1+1)); |
ti | 289 | drivers/cdrom/mcd.c | struct cdrom_ti ti; |
ti | 368 | drivers/cdrom/mcd.c | st = verify_area(VERIFY_READ, (void *) arg, sizeof ti); |
ti | 372 | drivers/cdrom/mcd.c | memcpy_fromfs(&ti, (void *) arg, sizeof ti); |
ti | 374 | drivers/cdrom/mcd.c | if (ti.cdti_trk0 < DiskInfo.first |
ti | 375 | drivers/cdrom/mcd.c | || ti.cdti_trk0 > DiskInfo.last |
ti | 376 | drivers/cdrom/mcd.c | || ti.cdti_trk1 < ti.cdti_trk0) |
ti | 381 | drivers/cdrom/mcd.c | if (ti.cdti_trk1 > DiskInfo.last) |
ti | 382 | drivers/cdrom/mcd.c | ti. cdti_trk1 = DiskInfo.last; |
ti | 384 | drivers/cdrom/mcd.c | mcd_Play.start = Toc[ti.cdti_trk0].diskTime; |
ti | 385 | drivers/cdrom/mcd.c | mcd_Play.end = Toc[ti.cdti_trk1 + 1].diskTime; |
ti | 291 | drivers/cdrom/mcdx.c | struct cdrom_ti ti; |
ti | 294 | drivers/cdrom/mcdx.c | if ((ans = verify_area(VERIFY_READ, (void*) arg, sizeof(ti)))) |
ti | 296 | drivers/cdrom/mcdx.c | memcpy_fromfs(&ti, (void*) arg, sizeof(ti)); |
ti | 297 | drivers/cdrom/mcdx.c | if ((ti.cdti_trk0 < stuffp->di.n_first) |
ti | 298 | drivers/cdrom/mcdx.c | || (ti.cdti_trk0 > stuffp->di.n_last) |
ti | 299 | drivers/cdrom/mcdx.c | || (ti.cdti_trk1 < stuffp->di.n_first)) |
ti | 301 | drivers/cdrom/mcdx.c | if (ti.cdti_trk1 > stuffp->di.n_last) ti.cdti_trk1 = stuffp->di.n_last; |
ti | 302 | drivers/cdrom/mcdx.c | TRACE((PLAYTRK, "ioctl() track %d to %d\n", ti.cdti_trk0, ti.cdti_trk1)); |
ti | 304 | drivers/cdrom/mcdx.c | return mcdx_playtrk(stuffp, &ti); |
ti | 1520 | drivers/cdrom/mcdx.c | mcdx_playtrk(struct s_drive_stuff* stuffp, const struct cdrom_ti* ti) |
ti | 1527 | drivers/cdrom/mcdx.c | if (ti) p = &stuffp->toc[ti->cdti_trk0 - stuffp->di.n_first]; |
ti | 1534 | drivers/cdrom/mcdx.c | if (ti) { |
ti | 1535 | drivers/cdrom/mcdx.c | p = &stuffp->toc[ti->cdti_trk1 - stuffp->di.n_first + 1]; |
ti | 1097 | drivers/cdrom/optcd.c | struct cdrom_ti ti; |
ti | 1099 | drivers/cdrom/optcd.c | if ((st = verify_area(VERIFY_READ, (void *) arg, sizeof ti))) |
ti | 1101 | drivers/cdrom/optcd.c | memcpy_fromfs(&ti, (void *) arg, sizeof ti); |
ti | 1102 | drivers/cdrom/optcd.c | if (ti.cdti_trk0 < DiskInfo.first |
ti | 1103 | drivers/cdrom/optcd.c | || ti.cdti_trk0 > DiskInfo.last |
ti | 1104 | drivers/cdrom/optcd.c | || ti.cdti_trk1 < ti.cdti_trk0) |
ti | 1106 | drivers/cdrom/optcd.c | if (ti.cdti_trk1 > DiskInfo.last) |
ti | 1107 | drivers/cdrom/optcd.c | ti.cdti_trk1 = DiskInfo.last; |
ti | 1108 | drivers/cdrom/optcd.c | opt_Play.start = Toc[ti.cdti_trk0].diskTime; |
ti | 1109 | drivers/cdrom/optcd.c | opt_Play.end = Toc[ti.cdti_trk1 + 1].diskTime; |
ti | 491 | drivers/cdrom/sbpcd.c | static struct cdrom_ti ti; |
ti | 3844 | drivers/cdrom/sbpcd.c | memcpy_fromfs(&ti,(void *) arg,sizeof(struct cdrom_ti)); |
ti | 3846 | drivers/cdrom/sbpcd.c | ti.cdti_trk0,ti.cdti_ind0,ti.cdti_trk1,ti.cdti_ind1); |
ti | 3847 | drivers/cdrom/sbpcd.c | if (ti.cdti_trk0<D_S[d].n_first_track) return (-EINVAL); |
ti | 3848 | drivers/cdrom/sbpcd.c | if (ti.cdti_trk0>D_S[d].n_last_track) return (-EINVAL); |
ti | 3849 | drivers/cdrom/sbpcd.c | if (ti.cdti_trk1<ti.cdti_trk0) ti.cdti_trk1=ti.cdti_trk0; |
ti | 3850 | drivers/cdrom/sbpcd.c | if (ti.cdti_trk1>D_S[d].n_last_track) ti.cdti_trk1=D_S[d].n_last_track; |
ti | 3851 | drivers/cdrom/sbpcd.c | D_S[d].pos_audio_start=D_S[d].TocBuffer[ti.cdti_trk0].address; |
ti | 3852 | drivers/cdrom/sbpcd.c | D_S[d].pos_audio_end=D_S[d].TocBuffer[ti.cdti_trk1+1].address; |
ti | 780 | drivers/cdrom/sjcd.c | struct cdrom_ti ti; int s; |
ti | 784 | drivers/cdrom/sjcd.c | if( ( s = verify_area( VERIFY_READ, (void *)arg, sizeof( ti ) ) ) == 0 ){ |
ti | 785 | drivers/cdrom/sjcd.c | memcpy_fromfs( &ti, (void *)arg, sizeof( ti ) ); |
ti | 787 | drivers/cdrom/sjcd.c | if( ti.cdti_trk0 < sjcd_first_track_no ) return( -EINVAL ); |
ti | 788 | drivers/cdrom/sjcd.c | if( ti.cdti_trk1 > sjcd_last_track_no ) |
ti | 789 | drivers/cdrom/sjcd.c | ti.cdti_trk1 = sjcd_last_track_no; |
ti | 790 | drivers/cdrom/sjcd.c | if( ti.cdti_trk0 > ti.cdti_trk1 ) return( -EINVAL ); |
ti | 792 | drivers/cdrom/sjcd.c | sjcd_playing.start = sjcd_table_of_contents[ ti.cdti_trk0 ].un.track_msf; |
ti | 793 | drivers/cdrom/sjcd.c | sjcd_playing.end = ( ti.cdti_trk1 < sjcd_last_track_no ) ? |
ti | 794 | drivers/cdrom/sjcd.c | sjcd_table_of_contents[ ti.cdti_trk1 + 1 ].un.track_msf : |
ti | 1269 | drivers/cdrom/sonycd535.c | struct cdrom_ti ti; |
ti | 1275 | drivers/cdrom/sonycd535.c | err = verify_area(VERIFY_READ, (char *)arg, sizeof ti); |
ti | 1279 | drivers/cdrom/sonycd535.c | memcpy_fromfs(&ti, (char *)arg, sizeof ti); |
ti | 1280 | drivers/cdrom/sonycd535.c | if ((ti.cdti_trk0 < sony_toc->first_track_num) |
ti | 1281 | drivers/cdrom/sonycd535.c | || (sony_toc->last_track_num < ti.cdti_trk0) |
ti | 1282 | drivers/cdrom/sonycd535.c | || (ti.cdti_trk1 < ti.cdti_trk0)) { |
ti | 1285 | drivers/cdrom/sonycd535.c | track_idx = find_track(int_to_bcd(ti.cdti_trk0)); |
ti | 1295 | drivers/cdrom/sonycd535.c | if (bcd_to_int(sony_toc->last_track_num) <= ti.cdti_trk1) { |
ti | 1299 | drivers/cdrom/sonycd535.c | track_idx = find_track(int_to_bcd(ti.cdti_trk1 + 1)); |
ti | 184 | drivers/net/ibmtr.c | struct tok_info *ti=0; |
ti | 284 | drivers/net/ibmtr.c | ti = (struct tok_info *)kmalloc(sizeof(struct tok_info), GFP_KERNEL); |
ti | 285 | drivers/net/ibmtr.c | if (ti == NULL) |
ti | 288 | drivers/net/ibmtr.c | ti = badti; badti = NULL; |
ti | 291 | drivers/net/ibmtr.c | memset(ti,0,sizeof(struct tok_info)); |
ti | 293 | drivers/net/ibmtr.c | ti->mmio= t_mmio; |
ti | 295 | drivers/net/ibmtr.c | dev->priv = ti; /* this seems like the logical use of the |
ti | 307 | drivers/net/ibmtr.c | ti->global_int_enable=GLOBAL_INT_ENABLE+((irq==9) ? 2 : irq); |
ti | 308 | drivers/net/ibmtr.c | ti->sram=NULL; |
ti | 310 | drivers/net/ibmtr.c | DPRINTK("ti->global_int_enable: %04X\n",ti->global_int_enable); |
ti | 318 | drivers/net/ibmtr.c | ti->global_int_enable=0; |
ti | 319 | drivers/net/ibmtr.c | ti->sram=(unsigned char *)((inb(PIOaddr+ADAPTRESETREL) & 0xfe) |
ti | 327 | drivers/net/ibmtr.c | while(!(ti->mmio + ACA_OFFSET + ACA_RW + RRR_EVEN)); |
ti | 328 | drivers/net/ibmtr.c | ti->sram=(unsigned char *)((unsigned long)(ti->mmio + ACA_OFFSET + ACA_RW + RRR_EVEN) <<12); |
ti | 329 | drivers/net/ibmtr.c | ti->global_int_enable=PIOaddr+ADAPTINTREL; |
ti | 337 | drivers/net/ibmtr.c | DPRINTK(", ti->mmio=%p",ti->mmio); |
ti | 349 | drivers/net/ibmtr.c | temp = *(char *)((ulong)AIP + (ulong)i + ti->mmio) & 0x0f; /* Tech ref states must do this */ |
ti | 351 | drivers/net/ibmtr.c | printk("%1X",ti->hw_address[j]=temp); |
ti | 353 | drivers/net/ibmtr.c | ti->hw_address[j]=temp; |
ti | 356 | drivers/net/ibmtr.c | dev->dev_addr[(j/2)]=ti->hw_address[j]+(ti->hw_address[j-1]<<4); |
ti | 365 | drivers/net/ibmtr.c | ti->adapter_type = *(char *)(ti->mmio + AIPADAPTYPE); |
ti | 368 | drivers/net/ibmtr.c | ti->data_rate = *(char *)(ti->mmio + AIPDATARATE); |
ti | 371 | drivers/net/ibmtr.c | ti->token_release = *(char *)(ti->mmio + AIPEARLYTOKEN); |
ti | 374 | drivers/net/ibmtr.c | ti->avail_shared_ram = get_sram_size(ti); |
ti | 378 | drivers/net/ibmtr.c | ti->shared_ram_paging = *(char *)(ti->mmio + AIPSHRAMPAGE); |
ti | 381 | drivers/net/ibmtr.c | ti->dhb_size4mb = *(char *) (ti->mmio + AIP4MBDHB); |
ti | 384 | drivers/net/ibmtr.c | ti->dhb_size16mb = *(char *)(ti->mmio + AIP16MBDHB); |
ti | 387 | drivers/net/ibmtr.c | DPRINTK("atype=%x, drate=%x, trel=%x, asram=%dK, srp=%x, dhb(4mb=%x, 16mb=%x)\n",ti->adapter_type, |
ti | 388 | drivers/net/ibmtr.c | ti->data_rate, ti->token_release, ti->avail_shared_ram/2, ti->shared_ram_paging, |
ti | 389 | drivers/net/ibmtr.c | ti->dhb_size4mb, ti->dhb_size16mb); |
ti | 400 | drivers/net/ibmtr.c | ti->mapped_ram_size=1<<(((*(unsigned char *) |
ti | 401 | drivers/net/ibmtr.c | (ti->mmio+ ACA_OFFSET + ACA_RW + RRR_ODD))>>2)+4); |
ti | 402 | drivers/net/ibmtr.c | ti->page_mask=0; |
ti | 403 | drivers/net/ibmtr.c | if (ti->shared_ram_paging == 0xf) { /* No paging in adapter */ |
ti | 404 | drivers/net/ibmtr.c | ti->mapped_ram_size = ti->avail_shared_ram; |
ti | 411 | drivers/net/ibmtr.c | DPRINTK("shared ram page size: %dK\n",ti->mapped_ram_size/2); |
ti | 414 | drivers/net/ibmtr.c | switch(ti->shared_ram_paging) { |
ti | 418 | drivers/net/ibmtr.c | ti->page_mask=(ti->mapped_ram_size==32) ? 0xc0 : 0; |
ti | 422 | drivers/net/ibmtr.c | ti->page_mask=(ti->mapped_ram_size==64) ? 0x80 : 0; |
ti | 426 | drivers/net/ibmtr.c | ti->page_mask=(ti->mapped_ram_size==32) ? 0xc0 : 0; |
ti | 427 | drivers/net/ibmtr.c | ti->page_mask=(ti->mapped_ram_size==64) ? 0x80 : 0; |
ti | 434 | drivers/net/ibmtr.c | badti=ti; |
ti | 437 | drivers/net/ibmtr.c | DPRINTK("Unknown shared ram paging info %01X\n",ti->shared_ram_paging); |
ti | 438 | drivers/net/ibmtr.c | badti=ti; /* bail out if bad code */ |
ti | 441 | drivers/net/ibmtr.c | if(ti->page_mask) { |
ti | 442 | drivers/net/ibmtr.c | if(pg_size > ti->mapped_ram_size) { |
ti | 444 | drivers/net/ibmtr.c | pg_size, ti->mapped_ram_size); |
ti | 445 | drivers/net/ibmtr.c | ti->page_mask = 0; /* reset paging */ |
ti | 447 | drivers/net/ibmtr.c | ti->mapped_ram_size=ti->avail_shared_ram; /****** ?????????? *******/ |
ti | 448 | drivers/net/ibmtr.c | DPRINTK("Shared RAM paging enabled. Page size : %uK\n",((ti->page_mask^ 0xff)+1)>>2); |
ti | 459 | drivers/net/ibmtr.c | (ti->mmio+ ACA_OFFSET + ACA_RW + RRR_ODD))>>2; |
ti | 462 | drivers/net/ibmtr.c | chk_base = new_base + (ti->mapped_ram_size>>3); |
ti | 468 | drivers/net/ibmtr.c | badti=ti; |
ti | 470 | drivers/net/ibmtr.c | ti->sram_base = new_base; |
ti | 481 | drivers/net/ibmtr.c | DPRINTK("Using %dK shared RAM\n",ti->mapped_ram_size/2); |
ti | 486 | drivers/net/ibmtr.c | badti = ti; /* keep track of unused tok_info */ |
ti | 500 | drivers/net/ibmtr.c | channel_def[cardpresent-1], adapter_def(ti->adapter_type), irq, |
ti | 501 | drivers/net/ibmtr.c | PIOaddr, ti->mapped_ram_size/2); |
ti | 546 | drivers/net/ibmtr.c | struct tok_info *ti=(struct tok_info *)dev->priv; |
ti | 548 | drivers/net/ibmtr.c | if(ti->open_status==CLOSED) { |
ti | 552 | drivers/net/ibmtr.c | if(ti->open_status==IN_PROGRESS) { |
ti | 553 | drivers/net/ibmtr.c | sleep_on(&ti->wait_for_reset); |
ti | 556 | drivers/net/ibmtr.c | if(ti->open_status==SUCCES) { |
ti | 574 | drivers/net/ibmtr.c | struct tok_info *ti=(struct tok_info *) dev->priv; |
ti | 576 | drivers/net/ibmtr.c | struct srb_close_adapter *close_adapter=(struct srb_close_adapter *)ti->srb; |
ti | 579 | drivers/net/ibmtr.c | *(unsigned char *)(ti->mmio + ACA_OFFSET + ACA_SET + ISRA_ODD)=CMD_IN_SRB; |
ti | 581 | drivers/net/ibmtr.c | ti->open_status=CLOSED; |
ti | 583 | drivers/net/ibmtr.c | sleep_on(&ti->wait_for_tok_int); |
ti | 597 | drivers/net/ibmtr.c | struct tok_info *ti; |
ti | 603 | drivers/net/ibmtr.c | ti=(struct tok_info *) dev->priv; |
ti | 605 | drivers/net/ibmtr.c | switch (ti->do_tok_int) { |
ti | 616 | drivers/net/ibmtr.c | *(unsigned char *)(ti->mmio + ACA_OFFSET + ACA_RESET + ISRP_EVEN)=(~INT_ENABLE); |
ti | 619 | drivers/net/ibmtr.c | if(ti->global_int_enable) |
ti | 620 | drivers/net/ibmtr.c | outb(0,ti->global_int_enable); |
ti | 622 | drivers/net/ibmtr.c | status=*(unsigned char *)(ti->mmio + ACA_OFFSET + ACA_RW + ISRP_ODD); |
ti | 626 | drivers/net/ibmtr.c | unsigned char *check_reason=ti->mmio + ntohs(*(unsigned short *)(ti->mmio + ACA_OFFSET + ACA_RW +WWCR_EVEN)); |
ti | 635 | drivers/net/ibmtr.c | *(unsigned char *)(ti->mmio + ACA_OFFSET + ACA_RESET + ISRP_ODD)=(~ADAP_CHK_INT); |
ti | 636 | drivers/net/ibmtr.c | *(unsigned char *)(ti->mmio + ACA_OFFSET + ACA_SET + ISRP_EVEN)=INT_ENABLE; |
ti | 640 | drivers/net/ibmtr.c | else if((*(unsigned char *)(ti->mmio + ACA_OFFSET + ACA_RW + ISRP_EVEN)) & (TCR_INT + ERR_INT + ACCESS_INT)) { |
ti | 643 | drivers/net/ibmtr.c | *(unsigned char *)(ti->mmio + ACA_OFFSET + ACA_RW + ISRP_EVEN)); |
ti | 645 | drivers/net/ibmtr.c | *(unsigned char *)(ti->mmio + ACA_OFFSET + ACA_RESET + ISRP_EVEN)=~(TCR_INT + ERR_INT + ACCESS_INT); |
ti | 646 | drivers/net/ibmtr.c | *(unsigned char *)(ti->mmio + ACA_OFFSET + ACA_SET + ISRP_EVEN)=INT_ENABLE; |
ti | 653 | drivers/net/ibmtr.c | switch(*ti->srb) { |
ti | 655 | drivers/net/ibmtr.c | struct srb_xmit *xmit=(struct srb_xmit *)(ti->srb); |
ti | 658 | drivers/net/ibmtr.c | if(ti->current_skb) { |
ti | 659 | drivers/net/ibmtr.c | dev_kfree_skb(ti->current_skb, FREE_WRITE); |
ti | 660 | drivers/net/ibmtr.c | ti->current_skb=NULL; |
ti | 668 | drivers/net/ibmtr.c | struct srb_xmit *xmit=(struct srb_xmit *)(ti->srb); |
ti | 671 | drivers/net/ibmtr.c | if(ti->current_skb) { |
ti | 672 | drivers/net/ibmtr.c | dev_kfree_skb(ti->current_skb, FREE_WRITE); |
ti | 673 | drivers/net/ibmtr.c | ti->current_skb=NULL; |
ti | 681 | drivers/net/ibmtr.c | struct srb_open_response *open_response=(struct srb_open_response *)(ti->init_srb); |
ti | 683 | drivers/net/ibmtr.c | ti->srb=ti->sram+ntohs(open_response->srb_addr); |
ti | 684 | drivers/net/ibmtr.c | ti->ssb=ti->sram+ntohs(open_response->ssb_addr); |
ti | 685 | drivers/net/ibmtr.c | ti->arb=ti->sram+ntohs(open_response->arb_addr); |
ti | 686 | drivers/net/ibmtr.c | ti->asb=ti->sram+ntohs(open_response->asb_addr); |
ti | 687 | drivers/net/ibmtr.c | ti->current_skb=NULL; |
ti | 690 | drivers/net/ibmtr.c | if(!ti->auto_ringspeedsave && (open_response->error_code==0x24)) { |
ti | 692 | drivers/net/ibmtr.c | ti->open_status=FAILURE; |
ti | 693 | drivers/net/ibmtr.c | wake_up(&ti->wait_for_reset); |
ti | 698 | drivers/net/ibmtr.c | else if((open_response->error_code==0x2d) && ti->auto_ringspeedsave) |
ti | 708 | drivers/net/ibmtr.c | *(unsigned char *)(ti->mmio + ACA_OFFSET + ACA_RESET + ISRP_ODD)=~(SRB_RESP_INT); |
ti | 709 | drivers/net/ibmtr.c | *(unsigned char *)(ti->mmio + ACA_OFFSET + ACA_RESET + ISRA_ODD)=~(CMD_IN_SRB); |
ti | 717 | drivers/net/ibmtr.c | if(ti->open_status!=FAILURE) { |
ti | 727 | drivers/net/ibmtr.c | wake_up(&ti->wait_for_tok_int); |
ti | 730 | drivers/net/ibmtr.c | struct dlc_open_sap *open_sap=(struct dlc_open_sap *)ti->srb; |
ti | 739 | drivers/net/ibmtr.c | ti->exsap_station_id=open_sap->station_id; |
ti | 740 | drivers/net/ibmtr.c | ti->open_status=SUCCES; /* TR adapter is now available */ |
ti | 741 | drivers/net/ibmtr.c | wake_up(&ti->wait_for_reset); |
ti | 751 | drivers/net/ibmtr.c | struct srb_interrupt *intr=(struct srb_interrupt *)(ti->srb); |
ti | 758 | drivers/net/ibmtr.c | struct srb_read_log *read_log=(struct srb_read_log *)(ti->srb); |
ti | 775 | drivers/net/ibmtr.c | DPRINTK("Unknown command %02X encountered\n",*(ti->srb)); |
ti | 777 | drivers/net/ibmtr.c | *(unsigned char *)(ti->mmio + ACA_OFFSET + ACA_RESET + ISRA_ODD)=~(CMD_IN_SRB); |
ti | 778 | drivers/net/ibmtr.c | *(unsigned char *)(ti->mmio + ACA_OFFSET + ACA_RESET + ISRP_ODD)=~(SRB_RESP_INT); |
ti | 783 | drivers/net/ibmtr.c | switch(*ti->asb) { |
ti | 787 | drivers/net/ibmtr.c | if(*(ti->asb+2)!=0xff) |
ti | 788 | drivers/net/ibmtr.c | DPRINTK("ASB error %02X in cmd %02X\n", *(ti->asb+2),*(ti->asb)); |
ti | 791 | drivers/net/ibmtr.c | DPRINTK("unknown command in asb %02X\n",*ti->asb); |
ti | 793 | drivers/net/ibmtr.c | *(unsigned char *)(ti->mmio + ACA_OFFSET + ACA_RESET + ISRP_ODD)=~(ASB_FREE_INT); |
ti | 797 | drivers/net/ibmtr.c | switch(*ti->arb) { |
ti | 799 | drivers/net/ibmtr.c | struct arb_dlc_status *dlc_status=(struct arb_dlc_status *)(ti->arb); |
ti | 809 | drivers/net/ibmtr.c | struct arb_ring_stat_change *ring_stat_change=(struct arb_ring_stat_change *)(ti->arb); |
ti | 824 | drivers/net/ibmtr.c | *(ti->srb)=DIR_READ_LOG; |
ti | 825 | drivers/net/ibmtr.c | *(unsigned char *)(ti->mmio + ACA_OFFSET + ACA_SET + ISRP_EVEN)=INT_ENABLE; |
ti | 826 | drivers/net/ibmtr.c | *(unsigned char *)(ti->mmio + ACA_OFFSET + ACA_SET + ISRA_ODD)=CMD_IN_SRB; |
ti | 837 | drivers/net/ibmtr.c | DPRINTK("Unknown command %02X in arb\n",*(ti->arb)); |
ti | 840 | drivers/net/ibmtr.c | *(unsigned char *)(ti->mmio + ACA_OFFSET + ACA_RESET + ISRP_ODD)=~(ARB_CMD_INT); |
ti | 841 | drivers/net/ibmtr.c | *(unsigned char *)(ti->mmio + ACA_OFFSET + ACA_SET + ISRA_ODD)=ARB_FREE; |
ti | 845 | drivers/net/ibmtr.c | switch(*ti->ssb) { |
ti | 848 | drivers/net/ibmtr.c | if(*(ti->ssb+2)) |
ti | 849 | drivers/net/ibmtr.c | DPRINTK("xmit ret_code: %02X xmit error code: %02X\n",*(ti->ssb+2),*(ti->ssb+6)); |
ti | 851 | drivers/net/ibmtr.c | ti->tr_stats.tx_packets++; |
ti | 855 | drivers/net/ibmtr.c | DPRINTK("xmit xid ret_code: %02X\n",*(ti->ssb+2)); |
ti | 858 | drivers/net/ibmtr.c | DPRINTK("Unknown command %02X in ssb\n",*(ti->ssb)); |
ti | 860 | drivers/net/ibmtr.c | *(unsigned char *)(ti->mmio + ACA_OFFSET + ACA_RESET + ISRP_ODD)=~(SSB_RESP_INT); |
ti | 861 | drivers/net/ibmtr.c | *(unsigned char *)(ti->mmio + ACA_OFFSET + ACA_SET + ISRA_ODD)=SSB_FREE; |
ti | 866 | drivers/net/ibmtr.c | *(unsigned char *)(ti->mmio + ACA_OFFSET + ACA_SET + ISRP_EVEN)=INT_ENABLE; |
ti | 886 | drivers/net/ibmtr.c | struct tok_info *ti; |
ti | 888 | drivers/net/ibmtr.c | ti=(struct tok_info *) dev->priv; |
ti | 890 | drivers/net/ibmtr.c | *(unsigned char *)(ti->mmio + ACA_OFFSET + ACA_RESET + ISRP_EVEN)=(~INT_ENABLE); |
ti | 893 | drivers/net/ibmtr.c | if(ti->global_int_enable) |
ti | 894 | drivers/net/ibmtr.c | outb(0,ti->global_int_enable); |
ti | 896 | drivers/net/ibmtr.c | ti->do_tok_int=NOT_FIRST; |
ti | 902 | drivers/net/ibmtr.c | if(!ti->sram) { /* we assign the address for ISA devices */ |
ti | 904 | drivers/net/ibmtr.c | *(unsigned char *)(ti->mmio + ACA_OFFSET + ACA_RW + RRR_EVEN)= |
ti | 905 | drivers/net/ibmtr.c | ti->sram_base; |
ti | 906 | drivers/net/ibmtr.c | ti->sram=(char *)(ti->sram_base << 12); |
ti | 908 | drivers/net/ibmtr.c | ti->init_srb=ti->sram+ntohs(*(unsigned short *)(ti->mmio+ ACA_OFFSET + WRBR_EVEN)); |
ti | 909 | drivers/net/ibmtr.c | SET_PAGE(ntohs(*(unsigned short *)(ti->mmio+ ACA_OFFSET + WRBR_EVEN))); |
ti | 912 | drivers/net/ibmtr.c | DPRINTK("init_srb(%p):",ti->init_srb); |
ti | 914 | drivers/net/ibmtr.c | printk("%02X ",*(ti->init_srb+i)); |
ti | 919 | drivers/net/ibmtr.c | DPRINTK("srb_init_response->encoded_address: %04X\n",((struct srb_init_response *)ti->init_srb)->encoded_address); |
ti | 920 | drivers/net/ibmtr.c | DPRINTK("ntohs(srb_init_response->encoded_address): %04X\n",ntohs(((struct srb_init_response *)ti->init_srb)->encoded_address)); |
ti | 922 | drivers/net/ibmtr.c | encoded_addr=(unsigned char *)(ti->sram + ntohs(((struct srb_init_response *)ti->init_srb)->encoded_address)); |
ti | 926 | drivers/net/ibmtr.c | ((struct srb_init_response *)ti->init_srb)->encoded_address, |
ti | 927 | drivers/net/ibmtr.c | ntohs(((struct srb_init_response *)ti->init_srb)->encoded_address), |
ti | 932 | drivers/net/ibmtr.c | ti->auto_ringspeedsave=((struct srb_init_response *)ti->init_srb)->init_status_2 & 0x4 ? TRUE : FALSE; |
ti | 946 | drivers/net/ibmtr.c | struct tok_info *ti; |
ti | 951 | drivers/net/ibmtr.c | ti=(struct tok_info *) dev->priv; |
ti | 954 | drivers/net/ibmtr.c | ti->do_tok_int=FIRST_INT; |
ti | 961 | drivers/net/ibmtr.c | if(ti->page_mask) { |
ti | 962 | drivers/net/ibmtr.c | *(unsigned char *)(ti->mmio + ACA_OFFSET + ACA_RW + SRPR_EVEN)=SRPR_ENABLE_PAGING; |
ti | 966 | drivers/net/ibmtr.c | *(unsigned char *)(ti->mmio + ACA_OFFSET + ACA_RESET + ISRP_EVEN)=~(INT_ENABLE); |
ti | 977 | drivers/net/ibmtr.c | ti->open_status=IN_PROGRESS; |
ti | 979 | drivers/net/ibmtr.c | *(unsigned char *)(ti->mmio + ACA_OFFSET + ACA_SET + ISRP_EVEN)=INT_ENABLE; |
ti | 985 | drivers/net/ibmtr.c | struct tok_info *ti=(struct tok_info *) dev->priv; |
ti | 986 | drivers/net/ibmtr.c | struct dlc_open_sap *open_sap=(struct dlc_open_sap *)ti->srb; |
ti | 988 | drivers/net/ibmtr.c | SET_PAGE(ti->srb); |
ti | 997 | drivers/net/ibmtr.c | *(unsigned char *)(ti->mmio + ACA_OFFSET + ACA_SET + ISRA_ODD)=CMD_IN_SRB; |
ti | 1005 | drivers/net/ibmtr.c | struct tok_info *ti; |
ti | 1006 | drivers/net/ibmtr.c | ti=(struct tok_info *) dev->priv; |
ti | 1012 | drivers/net/ibmtr.c | *(unsigned char *)(ti->mmio + ACA_OFFSET + ACA_RESET + ISRP_ODD)=~(SRB_RESP_INT); |
ti | 1013 | drivers/net/ibmtr.c | *(unsigned char *)(ti->mmio + ACA_OFFSET + ACA_RESET + ISRA_ODD)=~(CMD_IN_SRB); |
ti | 1015 | drivers/net/ibmtr.c | open_adapter=(struct dir_open_adapter *)(ti->init_srb); |
ti | 1027 | drivers/net/ibmtr.c | ti->srb=ti->init_srb; /* We use this one in the interrupt handler */ |
ti | 1029 | drivers/net/ibmtr.c | *(unsigned char *)(ti->mmio + ACA_OFFSET + ACA_SET + ISRP_EVEN)=INT_ENABLE; |
ti | 1030 | drivers/net/ibmtr.c | *(unsigned char *)(ti->mmio + ACA_OFFSET + ACA_SET + ISRA_ODD)=CMD_IN_SRB; |
ti | 1036 | drivers/net/ibmtr.c | struct tok_info *ti=(struct tok_info *) dev->priv; |
ti | 1037 | drivers/net/ibmtr.c | struct asb_xmit_resp *xmit_resp=(struct asb_xmit_resp *)ti->asb; |
ti | 1038 | drivers/net/ibmtr.c | struct arb_xmit_req *xmit_req=(struct arb_xmit_req *)ti->arb; |
ti | 1039 | drivers/net/ibmtr.c | struct srb_xmit *xmit=(struct srb_xmit *)ti->srb; |
ti | 1040 | drivers/net/ibmtr.c | struct trh_hdr *trhdr=(struct trh_hdr *)ti->current_skb->data; |
ti | 1046 | drivers/net/ibmtr.c | ti , ti->asb, xmit_resp, ti->arb, xmit_req, ti->srb, xmit); |
ti | 1060 | drivers/net/ibmtr.c | dhb=ti->sram+ntohs(xmit_req->dhb_address); |
ti | 1075 | drivers/net/ibmtr.c | *(unsigned char *)(ti->mmio + ACA_OFFSET + ACA_SET |
ti | 1094 | drivers/net/ibmtr.c | ti->current_skb->len-18)); |
ti | 1104 | drivers/net/ibmtr.c | ti->current_skb->len-18+hdr_len); |
ti | 1111 | drivers/net/ibmtr.c | memcpy(dhb,ti->current_skb->data,hdr_len); |
ti | 1114 | drivers/net/ibmtr.c | xmit_resp->frame_length=htons(ti->current_skb->len |
ti | 1118 | drivers/net/ibmtr.c | memcpy(dhb,ti->current_skb->data+sizeof(struct trh_hdr), |
ti | 1119 | drivers/net/ibmtr.c | ti->current_skb->len-sizeof(struct trh_hdr)); |
ti | 1121 | drivers/net/ibmtr.c | *(unsigned char *)(ti->mmio + ACA_OFFSET + ACA_SET + ISRA_ODD) |
ti | 1124 | drivers/net/ibmtr.c | dev_kfree_skb(ti->current_skb,FREE_WRITE); |
ti | 1125 | drivers/net/ibmtr.c | ti->current_skb=NULL; |
ti | 1131 | drivers/net/ibmtr.c | struct tok_info *ti=(struct tok_info *) dev->priv; |
ti | 1133 | drivers/net/ibmtr.c | struct arb_rec_req *rec_req=(struct arb_rec_req *)ti->arb; |
ti | 1134 | drivers/net/ibmtr.c | struct asb_rec *rec_resp=(struct asb_rec *)ti->asb; |
ti | 1141 | drivers/net/ibmtr.c | rbuffer=(struct rec_buf *)(ti->sram+ntohs(rec_req->rec_buf_addr)); |
ti | 1155 | drivers/net/ibmtr.c | DPRINTK("llc: %p rec_buf_addr: %04X ti->sram: %p\n",llc,ntohs(rec_req->rec_buf_addr),ti->sram); |
ti | 1165 | drivers/net/ibmtr.c | ti->tr_stats.rx_dropped++; |
ti | 1166 | drivers/net/ibmtr.c | *(unsigned char *)(ti->mmio + ACA_OFFSET + ACA_SET + ISRA_ODD)=RESP_IN_ASB; |
ti | 1185 | drivers/net/ibmtr.c | ti->tr_stats.rx_dropped++; |
ti | 1187 | drivers/net/ibmtr.c | *(unsigned char *)(ti->mmio + ACA_OFFSET + ACA_SET + ISRA_ODD)=RESP_IN_ASB; |
ti | 1216 | drivers/net/ibmtr.c | for(rbuffer=(struct rec_buf *)(ti->sram+ntohs(rbuffer->buf_ptr)-2); |
ti | 1218 | drivers/net/ibmtr.c | data+=rbuffer_len,rbuffer=(struct rec_buf *)(ti->sram+ntohs(rbuffer->buf_ptr)-2)) |
ti | 1225 | drivers/net/ibmtr.c | *(unsigned char *)(ti->mmio + ACA_OFFSET + ACA_SET + ISRA_ODD)=RESP_IN_ASB; |
ti | 1227 | drivers/net/ibmtr.c | ti->tr_stats.rx_packets++; |
ti | 1237 | drivers/net/ibmtr.c | struct tok_info *ti=(struct tok_info *) dev->priv; |
ti | 1264 | drivers/net/ibmtr.c | struct srb_xmit *xmit=(struct srb_xmit *)ti->srb; |
ti | 1266 | drivers/net/ibmtr.c | ti->current_skb=skb; /* save skb. We will need it when the adapter |
ti | 1269 | drivers/net/ibmtr.c | xmit->station_id=ti->exsap_station_id; |
ti | 1270 | drivers/net/ibmtr.c | *(unsigned char *)(ti->mmio + ACA_OFFSET + ACA_SET + ISRA_ODD)=CMD_IN_SRB; |
ti | 162 | drivers/net/ibmtr.h | (ti->mmio + ACA_OFFSET + ACA_RW + SRPR_EVEN)\ |
ti | 163 | drivers/net/ibmtr.h | = (x>>8)&ti.page_mask) |
ti | 177 | drivers/scsi/sr_ioctl.c | struct cdrom_ti ti; |
ti | 179 | drivers/scsi/sr_ioctl.c | err = verify_area (VERIFY_READ, (void *) arg, sizeof (ti)); |
ti | 182 | drivers/scsi/sr_ioctl.c | memcpy_fromfs(&ti, (void *) arg, sizeof(ti)); |
ti | 188 | drivers/scsi/sr_ioctl.c | sr_cmd[4] = ti.cdti_trk0; |
ti | 189 | drivers/scsi/sr_ioctl.c | sr_cmd[5] = ti.cdti_ind0; |
ti | 191 | drivers/scsi/sr_ioctl.c | sr_cmd[7] = ti.cdti_trk1; |
ti | 192 | drivers/scsi/sr_ioctl.c | sr_cmd[8] = ti.cdti_ind1; |