tag | line | file | source code |
ti | 620 | drivers/block/aztcd.c | struct cdrom_ti ti; |
ti | 712 | drivers/block/aztcd.c | st = verify_area(VERIFY_READ, (void *) arg, sizeof ti); |
ti | 714 | drivers/block/aztcd.c | memcpy_fromfs(&ti, (void *) arg, sizeof ti); |
ti | 715 | drivers/block/aztcd.c | if (ti.cdti_trk0 < DiskInfo.first |
ti | 716 | drivers/block/aztcd.c | || ti.cdti_trk0 > DiskInfo.last |
ti | 717 | drivers/block/aztcd.c | || ti.cdti_trk1 < ti.cdti_trk0) |
ti | 720 | drivers/block/aztcd.c | if (ti.cdti_trk1 > DiskInfo.last) |
ti | 721 | drivers/block/aztcd.c | ti.cdti_trk1 = DiskInfo.last; |
ti | 722 | drivers/block/aztcd.c | azt_Play.start = Toc[ti.cdti_trk0].diskTime; |
ti | 723 | drivers/block/aztcd.c | azt_Play.end = Toc[ti.cdti_trk1 + 1].diskTime; |
ti | 2498 | drivers/block/cdu31a.c | struct cdrom_ti ti; |
ti | 2507 | drivers/block/cdu31a.c | i=verify_area(VERIFY_READ, (char *) arg, sizeof(ti)); |
ti | 2511 | drivers/block/cdu31a.c | memcpy_fromfs(&ti, (char *) arg, sizeof(ti)); |
ti | 2512 | drivers/block/cdu31a.c | if ( (ti.cdti_trk0 < sony_toc.first_track_num) |
ti | 2513 | drivers/block/cdu31a.c | || (ti.cdti_trk0 > sony_toc.last_track_num) |
ti | 2514 | drivers/block/cdu31a.c | || (ti.cdti_trk1 < ti.cdti_trk0)) |
ti | 2519 | drivers/block/cdu31a.c | track_idx = find_track(int_to_bcd(ti.cdti_trk0)); |
ti | 2532 | drivers/block/cdu31a.c | if (ti.cdti_trk1 >= bcd_to_int(sony_toc.last_track_num)) |
ti | 2539 | drivers/block/cdu31a.c | track_idx = find_track(int_to_bcd(ti.cdti_trk1+1)); |
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 | 298 | drivers/block/mcd.c | struct cdrom_ti ti; |
ti | 377 | drivers/block/mcd.c | st = verify_area(VERIFY_READ, (void *) arg, sizeof ti); |
ti | 381 | drivers/block/mcd.c | memcpy_fromfs(&ti, (void *) arg, sizeof ti); |
ti | 383 | drivers/block/mcd.c | if (ti.cdti_trk0 < DiskInfo.first |
ti | 384 | drivers/block/mcd.c | || ti.cdti_trk0 > DiskInfo.last |
ti | 385 | drivers/block/mcd.c | || ti.cdti_trk1 < ti.cdti_trk0) |
ti | 390 | drivers/block/mcd.c | if (ti.cdti_trk1 > DiskInfo.last) |
ti | 391 | drivers/block/mcd.c | ti. cdti_trk1 = DiskInfo.last; |
ti | 393 | drivers/block/mcd.c | mcd_Play.start = Toc[ti.cdti_trk0].diskTime; |
ti | 394 | drivers/block/mcd.c | mcd_Play.end = Toc[ti.cdti_trk1 + 1].diskTime; |
ti | 310 | drivers/block/mcdx.c | struct cdrom_ti ti; |
ti | 313 | drivers/block/mcdx.c | if ((ans = verify_area(VERIFY_READ, (void*) arg, sizeof(ti)))) |
ti | 315 | drivers/block/mcdx.c | memcpy_fromfs(&ti, (void*) arg, sizeof(ti)); |
ti | 316 | drivers/block/mcdx.c | if ((ti.cdti_trk0 < stuffp->di.n_first) |
ti | 317 | drivers/block/mcdx.c | || (ti.cdti_trk0 > stuffp->di.n_last) |
ti | 318 | drivers/block/mcdx.c | || (ti.cdti_trk1 < stuffp->di.n_first)) |
ti | 320 | drivers/block/mcdx.c | if (ti.cdti_trk1 > stuffp->di.n_last) ti.cdti_trk1 = stuffp->di.n_last; |
ti | 321 | drivers/block/mcdx.c | TRACE((IOCTL, "ioctl() track %d to %d\n", ti.cdti_trk0, ti.cdti_trk1)); |
ti | 323 | drivers/block/mcdx.c | return mcdx_playtrk(stuffp, &ti); |
ti | 1507 | drivers/block/mcdx.c | mcdx_playtrk(struct s_drive_stuff* stuffp, const struct cdrom_ti* ti) |
ti | 1514 | drivers/block/mcdx.c | if (ti) p = &stuffp->toc[ti->cdti_trk0 - stuffp->di.n_first]; |
ti | 1521 | drivers/block/mcdx.c | if (ti) { |
ti | 1522 | drivers/block/mcdx.c | p = &stuffp->toc[ti->cdti_trk1 - stuffp->di.n_first + 1]; |
ti | 1107 | drivers/block/optcd.c | struct cdrom_ti ti; |
ti | 1109 | drivers/block/optcd.c | if ((st = verify_area(VERIFY_READ, (void *) arg, sizeof ti))) |
ti | 1111 | drivers/block/optcd.c | memcpy_fromfs(&ti, (void *) arg, sizeof ti); |
ti | 1112 | drivers/block/optcd.c | if (ti.cdti_trk0 < DiskInfo.first |
ti | 1113 | drivers/block/optcd.c | || ti.cdti_trk0 > DiskInfo.last |
ti | 1114 | drivers/block/optcd.c | || ti.cdti_trk1 < ti.cdti_trk0) |
ti | 1116 | drivers/block/optcd.c | if (ti.cdti_trk1 > DiskInfo.last) |
ti | 1117 | drivers/block/optcd.c | ti.cdti_trk1 = DiskInfo.last; |
ti | 1118 | drivers/block/optcd.c | opt_Play.start = Toc[ti.cdti_trk0].diskTime; |
ti | 1119 | drivers/block/optcd.c | opt_Play.end = Toc[ti.cdti_trk1 + 1].diskTime; |
ti | 493 | drivers/block/sbpcd.c | static struct cdrom_ti ti; |
ti | 3926 | drivers/block/sbpcd.c | memcpy_fromfs(&ti,(void *) arg,sizeof(struct cdrom_ti)); |
ti | 3928 | drivers/block/sbpcd.c | ti.cdti_trk0,ti.cdti_ind0,ti.cdti_trk1,ti.cdti_ind1); |
ti | 3929 | drivers/block/sbpcd.c | if (ti.cdti_trk0<D_S[d].n_first_track) return (-EINVAL); |
ti | 3930 | drivers/block/sbpcd.c | if (ti.cdti_trk0>D_S[d].n_last_track) return (-EINVAL); |
ti | 3931 | drivers/block/sbpcd.c | if (ti.cdti_trk1<ti.cdti_trk0) ti.cdti_trk1=ti.cdti_trk0; |
ti | 3932 | drivers/block/sbpcd.c | if (ti.cdti_trk1>D_S[d].n_last_track) ti.cdti_trk1=D_S[d].n_last_track; |
ti | 3933 | drivers/block/sbpcd.c | D_S[d].pos_audio_start=D_S[d].TocBuffer[ti.cdti_trk0].address; |
ti | 3934 | drivers/block/sbpcd.c | D_S[d].pos_audio_end=D_S[d].TocBuffer[ti.cdti_trk1+1].address; |
ti | 704 | drivers/block/sjcd.c | struct cdrom_ti ti; int s; |
ti | 708 | drivers/block/sjcd.c | if( ( s = verify_area( VERIFY_READ, (void *) arg, sizeof( ti ) ) ) == 0 ){ |
ti | 709 | drivers/block/sjcd.c | memcpy_fromfs( &ti, (void *) arg, sizeof( ti ) ); |
ti | 711 | drivers/block/sjcd.c | if( ti.cdti_trk0 < sjcd_first_track_no ) return( -EINVAL ); |
ti | 712 | drivers/block/sjcd.c | if( ti.cdti_trk1 > sjcd_last_track_no ) |
ti | 713 | drivers/block/sjcd.c | ti.cdti_trk1 = sjcd_last_track_no; |
ti | 714 | drivers/block/sjcd.c | if( ti.cdti_trk0 > ti.cdti_trk1 ) return( -EINVAL ); |
ti | 716 | drivers/block/sjcd.c | sjcd_playing.start = sjcd_table_of_contents[ ti.cdti_trk0 ].un.track_msf; |
ti | 717 | drivers/block/sjcd.c | sjcd_playing.end = ( ti.cdti_trk1 < sjcd_last_track_no ) ? |
ti | 718 | drivers/block/sjcd.c | sjcd_table_of_contents[ ti.cdti_trk1 + 1 ].un.track_msf : |
ti | 1306 | drivers/block/sonycd535.c | struct cdrom_ti ti; |
ti | 1312 | drivers/block/sonycd535.c | err = verify_area(VERIFY_READ, (char *)arg, sizeof ti); |
ti | 1316 | drivers/block/sonycd535.c | memcpy_fromfs(&ti, (char *)arg, sizeof ti); |
ti | 1317 | drivers/block/sonycd535.c | if ((ti.cdti_trk0 < sony_toc->first_track_num) |
ti | 1318 | drivers/block/sonycd535.c | || (sony_toc->last_track_num < ti.cdti_trk0) |
ti | 1319 | drivers/block/sonycd535.c | || (ti.cdti_trk1 < ti.cdti_trk0)) { |
ti | 1322 | drivers/block/sonycd535.c | track_idx = find_track(int_to_bcd(ti.cdti_trk0)); |
ti | 1332 | drivers/block/sonycd535.c | if (bcd_to_int(sony_toc->last_track_num) <= ti.cdti_trk1) { |
ti | 1336 | drivers/block/sonycd535.c | track_idx = find_track(int_to_bcd(ti.cdti_trk1 + 1)); |
ti | 192 | drivers/net/ibmtr.c | struct tok_info *ti=0; |
ti | 292 | drivers/net/ibmtr.c | ti = (struct tok_info *)kmalloc(sizeof(struct tok_info), GFP_KERNEL); |
ti | 293 | drivers/net/ibmtr.c | if (ti == NULL) |
ti | 296 | drivers/net/ibmtr.c | ti = badti; badti = NULL; |
ti | 299 | drivers/net/ibmtr.c | memset(ti,0,sizeof(struct tok_info)); |
ti | 301 | drivers/net/ibmtr.c | ti->mmio= t_mmio; |
ti | 303 | drivers/net/ibmtr.c | dev->priv = ti; /* this seems like the logical use of the |
ti | 315 | drivers/net/ibmtr.c | ti->global_int_enable=GLOBAL_INT_ENABLE+((irq==9) ? 2 : irq); |
ti | 316 | drivers/net/ibmtr.c | ti->sram=NULL; |
ti | 318 | drivers/net/ibmtr.c | DPRINTK("ti->global_int_enable: %04X\n",ti->global_int_enable); |
ti | 326 | drivers/net/ibmtr.c | ti->global_int_enable=0; |
ti | 327 | drivers/net/ibmtr.c | ti->sram=(unsigned char *)((inb(PIOaddr+ADAPTRESETREL) & 0xfe) |
ti | 335 | drivers/net/ibmtr.c | while(!(ti->mmio + ACA_OFFSET + ACA_RW + RRR_EVEN)); |
ti | 336 | drivers/net/ibmtr.c | ti->sram=(unsigned char *)((unsigned long)(ti->mmio + ACA_OFFSET + ACA_RW + RRR_EVEN) <<12); |
ti | 337 | drivers/net/ibmtr.c | ti->global_int_enable=PIOaddr+ADAPTINTREL; |
ti | 345 | drivers/net/ibmtr.c | DPRINTK(", ti->mmio=%p",ti->mmio); |
ti | 357 | drivers/net/ibmtr.c | temp = *(char *)((ulong)AIP + (ulong)i + ti->mmio) & 0x0f; /* Tech ref states must do this */ |
ti | 359 | drivers/net/ibmtr.c | printk("%1X",ti->hw_address[j]=temp); |
ti | 361 | drivers/net/ibmtr.c | ti->hw_address[j]=temp; |
ti | 364 | drivers/net/ibmtr.c | dev->dev_addr[(j/2)]=ti->hw_address[j]+(ti->hw_address[j-1]<<4); |
ti | 373 | drivers/net/ibmtr.c | ti->adapter_type = *(char *)(ti->mmio + AIPADAPTYPE); |
ti | 376 | drivers/net/ibmtr.c | ti->data_rate = *(char *)(ti->mmio + AIPDATARATE); |
ti | 379 | drivers/net/ibmtr.c | ti->token_release = *(char *)(ti->mmio + AIPEARLYTOKEN); |
ti | 382 | drivers/net/ibmtr.c | ti->avail_shared_ram = get_sram_size(ti); |
ti | 386 | drivers/net/ibmtr.c | ti->shared_ram_paging = *(char *)(ti->mmio + AIPSHRAMPAGE); |
ti | 389 | drivers/net/ibmtr.c | ti->dhb_size4mb = *(char *) (ti->mmio + AIP4MBDHB); |
ti | 392 | drivers/net/ibmtr.c | ti->dhb_size16mb = *(char *)(ti->mmio + AIP16MBDHB); |
ti | 395 | 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 | 396 | drivers/net/ibmtr.c | ti->data_rate, ti->token_release, ti->avail_shared_ram/2, ti->shared_ram_paging, |
ti | 397 | drivers/net/ibmtr.c | ti->dhb_size4mb, ti->dhb_size16mb); |
ti | 408 | drivers/net/ibmtr.c | ti->mapped_ram_size=1<<(((*(unsigned char *) |
ti | 409 | drivers/net/ibmtr.c | (ti->mmio+ ACA_OFFSET + ACA_RW + RRR_ODD))>>2)+4); |
ti | 410 | drivers/net/ibmtr.c | ti->page_mask=0; |
ti | 411 | drivers/net/ibmtr.c | if (ti->shared_ram_paging == 0xf) { /* No paging in adapter */ |
ti | 412 | drivers/net/ibmtr.c | ti->mapped_ram_size = ti->avail_shared_ram; |
ti | 419 | drivers/net/ibmtr.c | DPRINTK("shared ram page size: %dK\n",ti->mapped_ram_size/2); |
ti | 422 | drivers/net/ibmtr.c | switch(ti->shared_ram_paging) { |
ti | 426 | drivers/net/ibmtr.c | ti->page_mask=(ti->mapped_ram_size==32) ? 0xc0 : 0; |
ti | 430 | drivers/net/ibmtr.c | ti->page_mask=(ti->mapped_ram_size==64) ? 0x80 : 0; |
ti | 434 | drivers/net/ibmtr.c | ti->page_mask=(ti->mapped_ram_size==32) ? 0xc0 : 0; |
ti | 435 | drivers/net/ibmtr.c | ti->page_mask=(ti->mapped_ram_size==64) ? 0x80 : 0; |
ti | 442 | drivers/net/ibmtr.c | badti=ti; |
ti | 445 | drivers/net/ibmtr.c | DPRINTK("Unknown shared ram paging info %01X\n",ti->shared_ram_paging); |
ti | 446 | drivers/net/ibmtr.c | badti=ti; /* bail out if bad code */ |
ti | 449 | drivers/net/ibmtr.c | if(ti->page_mask) { |
ti | 450 | drivers/net/ibmtr.c | if(pg_size > ti->mapped_ram_size) { |
ti | 452 | drivers/net/ibmtr.c | pg_size, ti->mapped_ram_size); |
ti | 453 | drivers/net/ibmtr.c | ti->page_mask = 0; /* reset paging */ |
ti | 455 | drivers/net/ibmtr.c | ti->mapped_ram_size=ti->avail_shared_ram; /****** ?????????? *******/ |
ti | 456 | drivers/net/ibmtr.c | DPRINTK("Shared RAM paging enabled. Page size : %uK\n",((ti->page_mask^ 0xff)+1)>>2); |
ti | 467 | drivers/net/ibmtr.c | (ti->mmio+ ACA_OFFSET + ACA_RW + RRR_ODD))>>2; |
ti | 470 | drivers/net/ibmtr.c | chk_base = new_base + (ti->mapped_ram_size>>3); |
ti | 476 | drivers/net/ibmtr.c | badti=ti; |
ti | 478 | drivers/net/ibmtr.c | ti->sram_base = new_base; |
ti | 489 | drivers/net/ibmtr.c | DPRINTK("Using %dK shared RAM\n",ti->mapped_ram_size/2); |
ti | 494 | drivers/net/ibmtr.c | badti = ti; /* keep track of unused tok_info */ |
ti | 508 | drivers/net/ibmtr.c | channel_def[cardpresent-1], adapter_def(ti->adapter_type), irq, |
ti | 509 | drivers/net/ibmtr.c | PIOaddr, ti->mapped_ram_size/2); |
ti | 554 | drivers/net/ibmtr.c | struct tok_info *ti=(struct tok_info *)dev->priv; |
ti | 556 | drivers/net/ibmtr.c | if(ti->open_status==CLOSED) { |
ti | 560 | drivers/net/ibmtr.c | if(ti->open_status==IN_PROGRESS) { |
ti | 561 | drivers/net/ibmtr.c | sleep_on(&ti->wait_for_reset); |
ti | 564 | drivers/net/ibmtr.c | if(ti->open_status==SUCCES) { |
ti | 584 | drivers/net/ibmtr.c | struct tok_info *ti=(struct tok_info *) dev->priv; |
ti | 586 | drivers/net/ibmtr.c | struct srb_close_adapter *close_adapter=(struct srb_close_adapter *)ti->srb; |
ti | 589 | drivers/net/ibmtr.c | *(unsigned char *)(ti->mmio + ACA_OFFSET + ACA_SET + ISRA_ODD)=CMD_IN_SRB; |
ti | 591 | drivers/net/ibmtr.c | ti->open_status=CLOSED; |
ti | 593 | drivers/net/ibmtr.c | sleep_on(&ti->wait_for_tok_int); |
ti | 609 | drivers/net/ibmtr.c | struct tok_info *ti; |
ti | 615 | drivers/net/ibmtr.c | ti=(struct tok_info *) dev->priv; |
ti | 617 | drivers/net/ibmtr.c | switch (ti->do_tok_int) { |
ti | 628 | drivers/net/ibmtr.c | *(unsigned char *)(ti->mmio + ACA_OFFSET + ACA_RESET + ISRP_EVEN)=(~INT_ENABLE); |
ti | 631 | drivers/net/ibmtr.c | if(ti->global_int_enable) |
ti | 632 | drivers/net/ibmtr.c | outb(0,ti->global_int_enable); |
ti | 634 | drivers/net/ibmtr.c | status=*(unsigned char *)(ti->mmio + ACA_OFFSET + ACA_RW + ISRP_ODD); |
ti | 638 | drivers/net/ibmtr.c | unsigned char *check_reason=ti->mmio + ntohs(*(unsigned short *)(ti->mmio + ACA_OFFSET + ACA_RW +WWCR_EVEN)); |
ti | 647 | drivers/net/ibmtr.c | *(unsigned char *)(ti->mmio + ACA_OFFSET + ACA_RESET + ISRP_ODD)=(~ADAP_CHK_INT); |
ti | 648 | drivers/net/ibmtr.c | *(unsigned char *)(ti->mmio + ACA_OFFSET + ACA_SET + ISRP_EVEN)=INT_ENABLE; |
ti | 652 | drivers/net/ibmtr.c | else if((*(unsigned char *)(ti->mmio + ACA_OFFSET + ACA_RW + ISRP_EVEN)) & (TCR_INT + ERR_INT + ACCESS_INT)) { |
ti | 655 | drivers/net/ibmtr.c | *(unsigned char *)(ti->mmio + ACA_OFFSET + ACA_RW + ISRP_EVEN)); |
ti | 657 | drivers/net/ibmtr.c | *(unsigned char *)(ti->mmio + ACA_OFFSET + ACA_RESET + ISRP_EVEN)=~(TCR_INT + ERR_INT + ACCESS_INT); |
ti | 658 | drivers/net/ibmtr.c | *(unsigned char *)(ti->mmio + ACA_OFFSET + ACA_SET + ISRP_EVEN)=INT_ENABLE; |
ti | 665 | drivers/net/ibmtr.c | switch(*ti->srb) { |
ti | 667 | drivers/net/ibmtr.c | struct srb_xmit *xmit=(struct srb_xmit *)(ti->srb); |
ti | 670 | drivers/net/ibmtr.c | if(ti->current_skb) { |
ti | 671 | drivers/net/ibmtr.c | dev_kfree_skb(ti->current_skb, FREE_WRITE); |
ti | 672 | drivers/net/ibmtr.c | ti->current_skb=NULL; |
ti | 680 | drivers/net/ibmtr.c | struct srb_xmit *xmit=(struct srb_xmit *)(ti->srb); |
ti | 683 | drivers/net/ibmtr.c | if(ti->current_skb) { |
ti | 684 | drivers/net/ibmtr.c | dev_kfree_skb(ti->current_skb, FREE_WRITE); |
ti | 685 | drivers/net/ibmtr.c | ti->current_skb=NULL; |
ti | 693 | drivers/net/ibmtr.c | struct srb_open_response *open_response=(struct srb_open_response *)(ti->init_srb); |
ti | 695 | drivers/net/ibmtr.c | ti->srb=ti->sram+ntohs(open_response->srb_addr); |
ti | 696 | drivers/net/ibmtr.c | ti->ssb=ti->sram+ntohs(open_response->ssb_addr); |
ti | 697 | drivers/net/ibmtr.c | ti->arb=ti->sram+ntohs(open_response->arb_addr); |
ti | 698 | drivers/net/ibmtr.c | ti->asb=ti->sram+ntohs(open_response->asb_addr); |
ti | 699 | drivers/net/ibmtr.c | ti->current_skb=NULL; |
ti | 702 | drivers/net/ibmtr.c | if(!ti->auto_ringspeedsave && (open_response->error_code==0x24)) { |
ti | 704 | drivers/net/ibmtr.c | ti->open_status=FAILURE; |
ti | 705 | drivers/net/ibmtr.c | wake_up(&ti->wait_for_reset); |
ti | 710 | drivers/net/ibmtr.c | else if((open_response->error_code==0x2d) && ti->auto_ringspeedsave) |
ti | 720 | drivers/net/ibmtr.c | *(unsigned char *)(ti->mmio + ACA_OFFSET + ACA_RESET + ISRP_ODD)=~(SRB_RESP_INT); |
ti | 721 | drivers/net/ibmtr.c | *(unsigned char *)(ti->mmio + ACA_OFFSET + ACA_RESET + ISRA_ODD)=~(CMD_IN_SRB); |
ti | 729 | drivers/net/ibmtr.c | if(ti->open_status!=FAILURE) { |
ti | 739 | drivers/net/ibmtr.c | wake_up(&ti->wait_for_tok_int); |
ti | 742 | drivers/net/ibmtr.c | struct dlc_open_sap *open_sap=(struct dlc_open_sap *)ti->srb; |
ti | 751 | drivers/net/ibmtr.c | ti->exsap_station_id=open_sap->station_id; |
ti | 752 | drivers/net/ibmtr.c | ti->open_status=SUCCES; /* TR adapter is now available */ |
ti | 753 | drivers/net/ibmtr.c | wake_up(&ti->wait_for_reset); |
ti | 763 | drivers/net/ibmtr.c | struct srb_interrupt *intr=(struct srb_interrupt *)(ti->srb); |
ti | 770 | drivers/net/ibmtr.c | struct srb_read_log *read_log=(struct srb_read_log *)(ti->srb); |
ti | 787 | drivers/net/ibmtr.c | DPRINTK("Unknown command %02X encountered\n",*(ti->srb)); |
ti | 789 | drivers/net/ibmtr.c | *(unsigned char *)(ti->mmio + ACA_OFFSET + ACA_RESET + ISRA_ODD)=~(CMD_IN_SRB); |
ti | 790 | drivers/net/ibmtr.c | *(unsigned char *)(ti->mmio + ACA_OFFSET + ACA_RESET + ISRP_ODD)=~(SRB_RESP_INT); |
ti | 795 | drivers/net/ibmtr.c | switch(*ti->asb) { |
ti | 799 | drivers/net/ibmtr.c | if(*(ti->asb+2)!=0xff) |
ti | 800 | drivers/net/ibmtr.c | DPRINTK("ASB error %02X in cmd %02X\n", *(ti->asb+2),*(ti->asb)); |
ti | 803 | drivers/net/ibmtr.c | DPRINTK("unknown command in asb %02X\n",*ti->asb); |
ti | 805 | drivers/net/ibmtr.c | *(unsigned char *)(ti->mmio + ACA_OFFSET + ACA_RESET + ISRP_ODD)=~(ASB_FREE_INT); |
ti | 809 | drivers/net/ibmtr.c | switch(*ti->arb) { |
ti | 811 | drivers/net/ibmtr.c | struct arb_dlc_status *dlc_status=(struct arb_dlc_status *)(ti->arb); |
ti | 821 | drivers/net/ibmtr.c | struct arb_ring_stat_change *ring_stat_change=(struct arb_ring_stat_change *)(ti->arb); |
ti | 836 | drivers/net/ibmtr.c | *(ti->srb)=DIR_READ_LOG; |
ti | 837 | drivers/net/ibmtr.c | *(unsigned char *)(ti->mmio + ACA_OFFSET + ACA_SET + ISRP_EVEN)=INT_ENABLE; |
ti | 838 | drivers/net/ibmtr.c | *(unsigned char *)(ti->mmio + ACA_OFFSET + ACA_SET + ISRA_ODD)=CMD_IN_SRB; |
ti | 849 | drivers/net/ibmtr.c | DPRINTK("Unknown command %02X in arb\n",*(ti->arb)); |
ti | 852 | drivers/net/ibmtr.c | *(unsigned char *)(ti->mmio + ACA_OFFSET + ACA_RESET + ISRP_ODD)=~(ARB_CMD_INT); |
ti | 853 | drivers/net/ibmtr.c | *(unsigned char *)(ti->mmio + ACA_OFFSET + ACA_SET + ISRA_ODD)=ARB_FREE; |
ti | 857 | drivers/net/ibmtr.c | switch(*ti->ssb) { |
ti | 860 | drivers/net/ibmtr.c | if(*(ti->ssb+2)) |
ti | 861 | drivers/net/ibmtr.c | DPRINTK("xmit ret_code: %02X xmit error code: %02X\n",*(ti->ssb+2),*(ti->ssb+6)); |
ti | 863 | drivers/net/ibmtr.c | ti->tr_stats.tx_packets++; |
ti | 867 | drivers/net/ibmtr.c | DPRINTK("xmit xid ret_code: %02X\n",*(ti->ssb+2)); |
ti | 870 | drivers/net/ibmtr.c | DPRINTK("Unknown command %02X in ssb\n",*(ti->ssb)); |
ti | 872 | drivers/net/ibmtr.c | *(unsigned char *)(ti->mmio + ACA_OFFSET + ACA_RESET + ISRP_ODD)=~(SSB_RESP_INT); |
ti | 873 | drivers/net/ibmtr.c | *(unsigned char *)(ti->mmio + ACA_OFFSET + ACA_SET + ISRA_ODD)=SSB_FREE; |
ti | 878 | drivers/net/ibmtr.c | *(unsigned char *)(ti->mmio + ACA_OFFSET + ACA_SET + ISRP_EVEN)=INT_ENABLE; |
ti | 898 | drivers/net/ibmtr.c | struct tok_info *ti; |
ti | 900 | drivers/net/ibmtr.c | ti=(struct tok_info *) dev->priv; |
ti | 902 | drivers/net/ibmtr.c | *(unsigned char *)(ti->mmio + ACA_OFFSET + ACA_RESET + ISRP_EVEN)=(~INT_ENABLE); |
ti | 905 | drivers/net/ibmtr.c | if(ti->global_int_enable) |
ti | 906 | drivers/net/ibmtr.c | outb(0,ti->global_int_enable); |
ti | 908 | drivers/net/ibmtr.c | ti->do_tok_int=NOT_FIRST; |
ti | 914 | drivers/net/ibmtr.c | if(!ti->sram) { /* we assign the address for ISA devices */ |
ti | 916 | drivers/net/ibmtr.c | *(unsigned char *)(ti->mmio + ACA_OFFSET + ACA_RW + RRR_EVEN)= |
ti | 917 | drivers/net/ibmtr.c | ti->sram_base; |
ti | 918 | drivers/net/ibmtr.c | ti->sram=(char *)(ti->sram_base << 12); |
ti | 920 | drivers/net/ibmtr.c | ti->init_srb=ti->sram+ntohs(*(unsigned short *)(ti->mmio+ ACA_OFFSET + WRBR_EVEN)); |
ti | 921 | drivers/net/ibmtr.c | SET_PAGE(ntohs(*(unsigned short *)(ti->mmio+ ACA_OFFSET + WRBR_EVEN))); |
ti | 924 | drivers/net/ibmtr.c | DPRINTK("init_srb(%p):",ti->init_srb); |
ti | 926 | drivers/net/ibmtr.c | printk("%02X ",*(ti->init_srb+i)); |
ti | 931 | drivers/net/ibmtr.c | DPRINTK("srb_init_response->encoded_address: %04X\n",((struct srb_init_response *)ti->init_srb)->encoded_address); |
ti | 932 | drivers/net/ibmtr.c | DPRINTK("ntohs(srb_init_response->encoded_address): %04X\n",ntohs(((struct srb_init_response *)ti->init_srb)->encoded_address)); |
ti | 934 | drivers/net/ibmtr.c | encoded_addr=(unsigned char *)(ti->sram + ntohs(((struct srb_init_response *)ti->init_srb)->encoded_address)); |
ti | 938 | drivers/net/ibmtr.c | ((struct srb_init_response *)ti->init_srb)->encoded_address, |
ti | 939 | drivers/net/ibmtr.c | ntohs(((struct srb_init_response *)ti->init_srb)->encoded_address), |
ti | 944 | drivers/net/ibmtr.c | ti->auto_ringspeedsave=((struct srb_init_response *)ti->init_srb)->init_status_2 & 0x4 ? TRUE : FALSE; |
ti | 958 | drivers/net/ibmtr.c | struct tok_info *ti; |
ti | 963 | drivers/net/ibmtr.c | ti=(struct tok_info *) dev->priv; |
ti | 966 | drivers/net/ibmtr.c | ti->do_tok_int=FIRST_INT; |
ti | 973 | drivers/net/ibmtr.c | if(ti->page_mask) { |
ti | 974 | drivers/net/ibmtr.c | *(unsigned char *)(ti->mmio + ACA_OFFSET + ACA_RW + SRPR_EVEN)=SRPR_ENABLE_PAGING; |
ti | 978 | drivers/net/ibmtr.c | *(unsigned char *)(ti->mmio + ACA_OFFSET + ACA_RESET + ISRP_EVEN)=~(INT_ENABLE); |
ti | 989 | drivers/net/ibmtr.c | ti->open_status=IN_PROGRESS; |
ti | 991 | drivers/net/ibmtr.c | *(unsigned char *)(ti->mmio + ACA_OFFSET + ACA_SET + ISRP_EVEN)=INT_ENABLE; |
ti | 997 | drivers/net/ibmtr.c | struct tok_info *ti=(struct tok_info *) dev->priv; |
ti | 998 | drivers/net/ibmtr.c | struct dlc_open_sap *open_sap=(struct dlc_open_sap *)ti->srb; |
ti | 1000 | drivers/net/ibmtr.c | SET_PAGE(ti->srb); |
ti | 1009 | drivers/net/ibmtr.c | *(unsigned char *)(ti->mmio + ACA_OFFSET + ACA_SET + ISRA_ODD)=CMD_IN_SRB; |
ti | 1017 | drivers/net/ibmtr.c | struct tok_info *ti; |
ti | 1018 | drivers/net/ibmtr.c | ti=(struct tok_info *) dev->priv; |
ti | 1022 | drivers/net/ibmtr.c | *(unsigned char *)(ti->mmio + ACA_OFFSET + ACA_RESET + ISRP_ODD)=~(SRB_RESP_INT); |
ti | 1023 | drivers/net/ibmtr.c | *(unsigned char *)(ti->mmio + ACA_OFFSET + ACA_RESET + ISRA_ODD)=~(CMD_IN_SRB); |
ti | 1025 | drivers/net/ibmtr.c | open_adapter=(struct dir_open_adapter *)(ti->init_srb); |
ti | 1037 | drivers/net/ibmtr.c | ti->srb=ti->init_srb; /* We use this one in the interrupt handler */ |
ti | 1039 | drivers/net/ibmtr.c | *(unsigned char *)(ti->mmio + ACA_OFFSET + ACA_SET + ISRP_EVEN)=INT_ENABLE; |
ti | 1040 | drivers/net/ibmtr.c | *(unsigned char *)(ti->mmio + ACA_OFFSET + ACA_SET + ISRA_ODD)=CMD_IN_SRB; |
ti | 1046 | drivers/net/ibmtr.c | struct tok_info *ti=(struct tok_info *) dev->priv; |
ti | 1047 | drivers/net/ibmtr.c | struct asb_xmit_resp *xmit_resp=(struct asb_xmit_resp *)ti->asb; |
ti | 1048 | drivers/net/ibmtr.c | struct arb_xmit_req *xmit_req=(struct arb_xmit_req *)ti->arb; |
ti | 1049 | drivers/net/ibmtr.c | struct srb_xmit *xmit=(struct srb_xmit *)ti->srb; |
ti | 1050 | drivers/net/ibmtr.c | struct trh_hdr *trhdr=(struct trh_hdr *)ti->current_skb->data; |
ti | 1056 | drivers/net/ibmtr.c | ti , ti->asb, xmit_resp, ti->arb, xmit_req, ti->srb, xmit); |
ti | 1070 | drivers/net/ibmtr.c | dhb=ti->sram+ntohs(xmit_req->dhb_address); |
ti | 1085 | drivers/net/ibmtr.c | *(unsigned char *)(ti->mmio + ACA_OFFSET + ACA_SET |
ti | 1104 | drivers/net/ibmtr.c | ti->current_skb->len-18)); |
ti | 1114 | drivers/net/ibmtr.c | ti->current_skb->len-18+hdr_len); |
ti | 1121 | drivers/net/ibmtr.c | memcpy(dhb,ti->current_skb->data,hdr_len); |
ti | 1124 | drivers/net/ibmtr.c | xmit_resp->frame_length=htons(ti->current_skb->len |
ti | 1128 | drivers/net/ibmtr.c | memcpy(dhb,ti->current_skb->data+sizeof(struct trh_hdr), |
ti | 1129 | drivers/net/ibmtr.c | ti->current_skb->len-sizeof(struct trh_hdr)); |
ti | 1131 | drivers/net/ibmtr.c | *(unsigned char *)(ti->mmio + ACA_OFFSET + ACA_SET + ISRA_ODD) |
ti | 1134 | drivers/net/ibmtr.c | dev_kfree_skb(ti->current_skb,FREE_WRITE); |
ti | 1135 | drivers/net/ibmtr.c | ti->current_skb=NULL; |
ti | 1141 | drivers/net/ibmtr.c | struct tok_info *ti=(struct tok_info *) dev->priv; |
ti | 1143 | drivers/net/ibmtr.c | struct arb_rec_req *rec_req=(struct arb_rec_req *)ti->arb; |
ti | 1144 | drivers/net/ibmtr.c | struct asb_rec *rec_resp=(struct asb_rec *)ti->asb; |
ti | 1151 | drivers/net/ibmtr.c | rbuffer=(struct rec_buf *)(ti->sram+ntohs(rec_req->rec_buf_addr)); |
ti | 1165 | 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 | 1175 | drivers/net/ibmtr.c | ti->tr_stats.rx_dropped++; |
ti | 1176 | drivers/net/ibmtr.c | *(unsigned char *)(ti->mmio + ACA_OFFSET + ACA_SET + ISRA_ODD)=RESP_IN_ASB; |
ti | 1195 | drivers/net/ibmtr.c | ti->tr_stats.rx_dropped++; |
ti | 1197 | drivers/net/ibmtr.c | *(unsigned char *)(ti->mmio + ACA_OFFSET + ACA_SET + ISRA_ODD)=RESP_IN_ASB; |
ti | 1226 | drivers/net/ibmtr.c | for(rbuffer=(struct rec_buf *)(ti->sram+ntohs(rbuffer->buf_ptr)-2); |
ti | 1228 | drivers/net/ibmtr.c | data+=rbuffer_len,rbuffer=(struct rec_buf *)(ti->sram+ntohs(rbuffer->buf_ptr)-2)) |
ti | 1235 | drivers/net/ibmtr.c | *(unsigned char *)(ti->mmio + ACA_OFFSET + ACA_SET + ISRA_ODD)=RESP_IN_ASB; |
ti | 1237 | drivers/net/ibmtr.c | ti->tr_stats.rx_packets++; |
ti | 1247 | drivers/net/ibmtr.c | struct tok_info *ti=(struct tok_info *) dev->priv; |
ti | 1274 | drivers/net/ibmtr.c | struct srb_xmit *xmit=(struct srb_xmit *)ti->srb; |
ti | 1276 | drivers/net/ibmtr.c | ti->current_skb=skb; /* save skb. We will need it when the adapter |
ti | 1279 | drivers/net/ibmtr.c | xmit->station_id=ti->exsap_station_id; |
ti | 1280 | 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 | 163 | drivers/scsi/sr_ioctl.c | struct cdrom_ti ti; |
ti | 165 | drivers/scsi/sr_ioctl.c | err = verify_area (VERIFY_READ, (void *) arg, sizeof (ti)); |
ti | 168 | drivers/scsi/sr_ioctl.c | memcpy_fromfs(&ti, (void *) arg, sizeof(ti)); |
ti | 174 | drivers/scsi/sr_ioctl.c | sr_cmd[4] = ti.cdti_trk0; |
ti | 175 | drivers/scsi/sr_ioctl.c | sr_cmd[5] = ti.cdti_ind0; |
ti | 177 | drivers/scsi/sr_ioctl.c | sr_cmd[7] = ti.cdti_trk1; |
ti | 178 | drivers/scsi/sr_ioctl.c | sr_cmd[8] = ti.cdti_ind1; |