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 | 486 | drivers/block/sbpcd.c | static struct cdrom_ti ti; |
ti | 3913 | drivers/block/sbpcd.c | memcpy_fromfs(&ti,(void *) arg,sizeof(struct cdrom_ti)); |
ti | 3915 | drivers/block/sbpcd.c | ti.cdti_trk0,ti.cdti_ind0,ti.cdti_trk1,ti.cdti_ind1); |
ti | 3916 | drivers/block/sbpcd.c | if (ti.cdti_trk0<D_S[d].n_first_track) return (-EINVAL); |
ti | 3917 | drivers/block/sbpcd.c | if (ti.cdti_trk0>D_S[d].n_last_track) return (-EINVAL); |
ti | 3918 | drivers/block/sbpcd.c | if (ti.cdti_trk1<ti.cdti_trk0) ti.cdti_trk1=ti.cdti_trk0; |
ti | 3919 | drivers/block/sbpcd.c | if (ti.cdti_trk1>D_S[d].n_last_track) ti.cdti_trk1=D_S[d].n_last_track; |
ti | 3920 | drivers/block/sbpcd.c | D_S[d].pos_audio_start=D_S[d].TocBuffer[ti.cdti_trk0].address; |
ti | 3921 | 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 | 154 | drivers/net/ibmtr.c | struct tok_info *ti=0; |
ti | 254 | drivers/net/ibmtr.c | ti = (struct tok_info *)kmalloc(sizeof(struct tok_info), GFP_KERNEL); |
ti | 256 | drivers/net/ibmtr.c | ti = badti; badti = NULL; |
ti | 259 | drivers/net/ibmtr.c | memset(ti,0,sizeof(struct tok_info)); |
ti | 261 | drivers/net/ibmtr.c | ti->mmio= t_mmio; |
ti | 263 | drivers/net/ibmtr.c | dev->priv = ti; /* this seems like the logical use of the |
ti | 275 | drivers/net/ibmtr.c | ti->global_int_enable=GLOBAL_INT_ENABLE+((irq==9) ? 2 : irq); |
ti | 276 | drivers/net/ibmtr.c | ti->sram=NULL; |
ti | 277 | drivers/net/ibmtr.c | DPRINTK("ti->global_int_enable: %04X\n",ti->global_int_enable); |
ti | 284 | drivers/net/ibmtr.c | ti->global_int_enable=0; |
ti | 285 | drivers/net/ibmtr.c | ti->sram=(unsigned char *)((inb(PIOaddr+ADAPTRESETREL) & 0xfe) |
ti | 293 | drivers/net/ibmtr.c | while(!(ti->mmio + ACA_OFFSET + ACA_RW + RRR_EVEN)); |
ti | 294 | drivers/net/ibmtr.c | ti->sram=(unsigned char *)((unsigned long)(ti->mmio + ACA_OFFSET + ACA_RW + RRR_EVEN) <<12); |
ti | 295 | drivers/net/ibmtr.c | ti->global_int_enable=PIOaddr+ADAPTINTREL; |
ti | 303 | drivers/net/ibmtr.c | DPRINTK(", ti->mmio=%p",ti->mmio); |
ti | 313 | drivers/net/ibmtr.c | temp = *(char *)((ulong)AIP + (ulong)i + ti->mmio) & 0x0f; /* Tech ref states must do this */ |
ti | 314 | drivers/net/ibmtr.c | printk("%1X",ti->hw_address[j]=temp); |
ti | 316 | drivers/net/ibmtr.c | dev->dev_addr[(j/2)]=ti->hw_address[j]+(ti->hw_address[j-1]<<4); |
ti | 322 | drivers/net/ibmtr.c | ti->adapter_type = *(char *)(ti->mmio + AIPADAPTYPE); |
ti | 325 | drivers/net/ibmtr.c | ti->data_rate = *(char *)(ti->mmio + AIPDATARATE); |
ti | 328 | drivers/net/ibmtr.c | ti->token_release = *(char *)(ti->mmio + AIPEARLYTOKEN); |
ti | 331 | drivers/net/ibmtr.c | ti->avail_shared_ram = get_sram_size(ti); |
ti | 335 | drivers/net/ibmtr.c | ti->shared_ram_paging = *(char *)(ti->mmio + AIPSHRAMPAGE); |
ti | 338 | drivers/net/ibmtr.c | ti->dhb_size4mb = *(char *) (ti->mmio + AIP4MBDHB); |
ti | 341 | drivers/net/ibmtr.c | ti->dhb_size16mb = *(char *)(ti->mmio + AIP16MBDHB); |
ti | 343 | 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 | 344 | drivers/net/ibmtr.c | ti->data_rate, ti->token_release, ti->avail_shared_ram/2, ti->shared_ram_paging, |
ti | 345 | drivers/net/ibmtr.c | ti->dhb_size4mb, ti->dhb_size16mb); |
ti | 355 | drivers/net/ibmtr.c | ti->mapped_ram_size=1<<(((*(unsigned char *) |
ti | 356 | drivers/net/ibmtr.c | (ti->mmio+ ACA_OFFSET + ACA_RW + RRR_ODD))>>2)+4); |
ti | 357 | drivers/net/ibmtr.c | ti->page_mask=0; |
ti | 358 | drivers/net/ibmtr.c | if (ti->shared_ram_paging == 0xf) { /* No paging in adapter */ |
ti | 359 | drivers/net/ibmtr.c | ti->mapped_ram_size = ti->avail_shared_ram; |
ti | 365 | drivers/net/ibmtr.c | DPRINTK("shared ram page size: %dK\n",ti->mapped_ram_size/2); |
ti | 367 | drivers/net/ibmtr.c | switch(ti->shared_ram_paging) { |
ti | 371 | drivers/net/ibmtr.c | ti->page_mask=(ti->mapped_ram_size==32) ? 0xc0 : 0; |
ti | 375 | drivers/net/ibmtr.c | ti->page_mask=(ti->mapped_ram_size==64) ? 0x80 : 0; |
ti | 379 | drivers/net/ibmtr.c | ti->page_mask=(ti->mapped_ram_size==32) ? 0xc0 : 0; |
ti | 380 | drivers/net/ibmtr.c | ti->page_mask=(ti->mapped_ram_size==64) ? 0x80 : 0; |
ti | 387 | drivers/net/ibmtr.c | badti=ti; |
ti | 390 | drivers/net/ibmtr.c | DPRINTK("Unknown shared ram paging info %01X\n",ti->shared_ram_paging); |
ti | 391 | drivers/net/ibmtr.c | badti=ti; /* bail out if bad code */ |
ti | 394 | drivers/net/ibmtr.c | if(ti->page_mask) { |
ti | 395 | drivers/net/ibmtr.c | if(pg_size > ti->mapped_ram_size) { |
ti | 397 | drivers/net/ibmtr.c | pg_size, ti->mapped_ram_size); |
ti | 398 | drivers/net/ibmtr.c | ti->page_mask = 0; /* reset paging */ |
ti | 400 | drivers/net/ibmtr.c | ti->mapped_ram_size=ti->avail_shared_ram; /****** ?????????? *******/ |
ti | 401 | drivers/net/ibmtr.c | DPRINTK("Shared RAM paging enabled. Page size : %uK\n",((ti->page_mask^ 0xff)+1)>>2); |
ti | 412 | drivers/net/ibmtr.c | (ti->mmio+ ACA_OFFSET + ACA_RW + RRR_ODD))>>2; |
ti | 415 | drivers/net/ibmtr.c | chk_base = new_base + (ti->mapped_ram_size>>3); |
ti | 421 | drivers/net/ibmtr.c | badti=ti; |
ti | 423 | drivers/net/ibmtr.c | ti->sram_base = new_base; |
ti | 434 | drivers/net/ibmtr.c | DPRINTK("Using %dK shared RAM\n",ti->mapped_ram_size/2); |
ti | 438 | drivers/net/ibmtr.c | badti = ti; /* keep track of unused tok_info */ |
ti | 488 | drivers/net/ibmtr.c | struct tok_info *ti=(struct tok_info *)dev->priv; |
ti | 490 | drivers/net/ibmtr.c | if(ti->open_status==CLOSED) { |
ti | 494 | drivers/net/ibmtr.c | if(ti->open_status==IN_PROGRESS) { |
ti | 495 | drivers/net/ibmtr.c | sleep_on(&ti->wait_for_reset); |
ti | 498 | drivers/net/ibmtr.c | if(ti->open_status==SUCCES) { |
ti | 518 | drivers/net/ibmtr.c | struct tok_info *ti=(struct tok_info *) dev->priv; |
ti | 520 | drivers/net/ibmtr.c | struct srb_close_adapter *close_adapter=(struct srb_close_adapter *)ti->srb; |
ti | 523 | drivers/net/ibmtr.c | *(unsigned char *)(ti->mmio + ACA_OFFSET + ACA_SET + ISRA_ODD)=CMD_IN_SRB; |
ti | 525 | drivers/net/ibmtr.c | ti->open_status=CLOSED; |
ti | 527 | drivers/net/ibmtr.c | sleep_on(&ti->wait_for_tok_int); |
ti | 543 | drivers/net/ibmtr.c | struct tok_info *ti; |
ti | 549 | drivers/net/ibmtr.c | ti=(struct tok_info *) dev->priv; |
ti | 551 | drivers/net/ibmtr.c | switch (ti->do_tok_int) { |
ti | 562 | drivers/net/ibmtr.c | *(unsigned char *)(ti->mmio + ACA_OFFSET + ACA_RESET + ISRP_EVEN)=(~INT_ENABLE); |
ti | 565 | drivers/net/ibmtr.c | if(ti->global_int_enable) |
ti | 566 | drivers/net/ibmtr.c | outb(0,ti->global_int_enable); |
ti | 568 | drivers/net/ibmtr.c | status=*(unsigned char *)(ti->mmio + ACA_OFFSET + ACA_RW + ISRP_ODD); |
ti | 572 | drivers/net/ibmtr.c | unsigned char *check_reason=ti->mmio + ntohs(*(unsigned short *)(ti->mmio + ACA_OFFSET + ACA_RW +WWCR_EVEN)); |
ti | 581 | drivers/net/ibmtr.c | *(unsigned char *)(ti->mmio + ACA_OFFSET + ACA_RESET + ISRP_ODD)=(~ADAP_CHK_INT); |
ti | 582 | drivers/net/ibmtr.c | *(unsigned char *)(ti->mmio + ACA_OFFSET + ACA_SET + ISRP_EVEN)=INT_ENABLE; |
ti | 586 | drivers/net/ibmtr.c | else if((*(unsigned char *)(ti->mmio + ACA_OFFSET + ACA_RW + ISRP_EVEN)) & (TCR_INT + ERR_INT + ACCESS_INT)) { |
ti | 589 | drivers/net/ibmtr.c | *(unsigned char *)(ti->mmio + ACA_OFFSET + ACA_RW + ISRP_EVEN)); |
ti | 591 | drivers/net/ibmtr.c | *(unsigned char *)(ti->mmio + ACA_OFFSET + ACA_RESET + ISRP_EVEN)=~(TCR_INT + ERR_INT + ACCESS_INT); |
ti | 592 | drivers/net/ibmtr.c | *(unsigned char *)(ti->mmio + ACA_OFFSET + ACA_SET + ISRP_EVEN)=INT_ENABLE; |
ti | 599 | drivers/net/ibmtr.c | switch(*ti->srb) { |
ti | 601 | drivers/net/ibmtr.c | struct srb_xmit *xmit=(struct srb_xmit *)(ti->srb); |
ti | 604 | drivers/net/ibmtr.c | if(ti->current_skb) { |
ti | 605 | drivers/net/ibmtr.c | dev_kfree_skb(ti->current_skb, FREE_WRITE); |
ti | 606 | drivers/net/ibmtr.c | ti->current_skb=NULL; |
ti | 614 | drivers/net/ibmtr.c | struct srb_xmit *xmit=(struct srb_xmit *)(ti->srb); |
ti | 617 | drivers/net/ibmtr.c | if(ti->current_skb) { |
ti | 618 | drivers/net/ibmtr.c | dev_kfree_skb(ti->current_skb, FREE_WRITE); |
ti | 619 | drivers/net/ibmtr.c | ti->current_skb=NULL; |
ti | 627 | drivers/net/ibmtr.c | struct srb_open_response *open_response=(struct srb_open_response *)(ti->init_srb); |
ti | 629 | drivers/net/ibmtr.c | ti->srb=ti->sram+ntohs(open_response->srb_addr); |
ti | 630 | drivers/net/ibmtr.c | ti->ssb=ti->sram+ntohs(open_response->ssb_addr); |
ti | 631 | drivers/net/ibmtr.c | ti->arb=ti->sram+ntohs(open_response->arb_addr); |
ti | 632 | drivers/net/ibmtr.c | ti->asb=ti->sram+ntohs(open_response->asb_addr); |
ti | 633 | drivers/net/ibmtr.c | ti->current_skb=NULL; |
ti | 636 | drivers/net/ibmtr.c | if(!ti->auto_ringspeedsave && (open_response->error_code==0x24)) { |
ti | 638 | drivers/net/ibmtr.c | ti->open_status=FAILURE; |
ti | 639 | drivers/net/ibmtr.c | wake_up(&ti->wait_for_reset); |
ti | 644 | drivers/net/ibmtr.c | else if((open_response->error_code==0x2d) && ti->auto_ringspeedsave) |
ti | 650 | drivers/net/ibmtr.c | *(unsigned char *)(ti->mmio + ACA_OFFSET + ACA_RESET + ISRP_ODD)=~(SRB_RESP_INT); |
ti | 651 | drivers/net/ibmtr.c | *(unsigned char *)(ti->mmio + ACA_OFFSET + ACA_RESET + ISRA_ODD)=~(CMD_IN_SRB); |
ti | 659 | drivers/net/ibmtr.c | if(ti->open_status!=FAILURE) { |
ti | 669 | drivers/net/ibmtr.c | wake_up(&ti->wait_for_tok_int); |
ti | 672 | drivers/net/ibmtr.c | struct dlc_open_sap *open_sap=(struct dlc_open_sap *)ti->srb; |
ti | 681 | drivers/net/ibmtr.c | ti->exsap_station_id=open_sap->station_id; |
ti | 682 | drivers/net/ibmtr.c | ti->open_status=SUCCES; /* TR adapter is now available */ |
ti | 683 | drivers/net/ibmtr.c | wake_up(&ti->wait_for_reset); |
ti | 693 | drivers/net/ibmtr.c | struct srb_interrupt *intr=(struct srb_interrupt *)(ti->srb); |
ti | 700 | drivers/net/ibmtr.c | struct srb_read_log *read_log=(struct srb_read_log *)(ti->srb); |
ti | 717 | drivers/net/ibmtr.c | DPRINTK("Unknown command %02X encountered\n",*(ti->srb)); |
ti | 719 | drivers/net/ibmtr.c | *(unsigned char *)(ti->mmio + ACA_OFFSET + ACA_RESET + ISRA_ODD)=~(CMD_IN_SRB); |
ti | 720 | drivers/net/ibmtr.c | *(unsigned char *)(ti->mmio + ACA_OFFSET + ACA_RESET + ISRP_ODD)=~(SRB_RESP_INT); |
ti | 725 | drivers/net/ibmtr.c | switch(*ti->asb) { |
ti | 729 | drivers/net/ibmtr.c | if(*(ti->asb+2)!=0xff) |
ti | 730 | drivers/net/ibmtr.c | DPRINTK("ASB error %02X in cmd %02X\n", *(ti->asb+2),*(ti->asb)); |
ti | 733 | drivers/net/ibmtr.c | DPRINTK("unknown command in asb %02X\n",*ti->asb); |
ti | 735 | drivers/net/ibmtr.c | *(unsigned char *)(ti->mmio + ACA_OFFSET + ACA_RESET + ISRP_ODD)=~(ASB_FREE_INT); |
ti | 739 | drivers/net/ibmtr.c | switch(*ti->arb) { |
ti | 741 | drivers/net/ibmtr.c | struct arb_dlc_status *dlc_status=(struct arb_dlc_status *)(ti->arb); |
ti | 751 | drivers/net/ibmtr.c | struct arb_ring_stat_change *ring_stat_change=(struct arb_ring_stat_change *)(ti->arb); |
ti | 766 | drivers/net/ibmtr.c | *(ti->srb)=DIR_READ_LOG; |
ti | 767 | drivers/net/ibmtr.c | *(unsigned char *)(ti->mmio + ACA_OFFSET + ACA_SET + ISRP_EVEN)=INT_ENABLE; |
ti | 768 | drivers/net/ibmtr.c | *(unsigned char *)(ti->mmio + ACA_OFFSET + ACA_SET + ISRA_ODD)=CMD_IN_SRB; |
ti | 779 | drivers/net/ibmtr.c | DPRINTK("Unknown command %02X in arb\n",*(ti->arb)); |
ti | 782 | drivers/net/ibmtr.c | *(unsigned char *)(ti->mmio + ACA_OFFSET + ACA_RESET + ISRP_ODD)=~(ARB_CMD_INT); |
ti | 783 | drivers/net/ibmtr.c | *(unsigned char *)(ti->mmio + ACA_OFFSET + ACA_SET + ISRA_ODD)=ARB_FREE; |
ti | 787 | drivers/net/ibmtr.c | switch(*ti->ssb) { |
ti | 790 | drivers/net/ibmtr.c | if(*(ti->ssb+2)) |
ti | 791 | drivers/net/ibmtr.c | DPRINTK("xmit ret_code: %02X xmit error code: %02X\n",*(ti->ssb+2),*(ti->ssb+6)); |
ti | 793 | drivers/net/ibmtr.c | ti->tr_stats.tx_packets++; |
ti | 797 | drivers/net/ibmtr.c | DPRINTK("xmit xid ret_code: %02X\n",*(ti->ssb+2)); |
ti | 800 | drivers/net/ibmtr.c | DPRINTK("Unknown command %02X in ssb\n",*(ti->ssb)); |
ti | 802 | drivers/net/ibmtr.c | *(unsigned char *)(ti->mmio + ACA_OFFSET + ACA_RESET + ISRP_ODD)=~(SSB_RESP_INT); |
ti | 803 | drivers/net/ibmtr.c | *(unsigned char *)(ti->mmio + ACA_OFFSET + ACA_SET + ISRA_ODD)=SSB_FREE; |
ti | 808 | drivers/net/ibmtr.c | *(unsigned char *)(ti->mmio + ACA_OFFSET + ACA_SET + ISRP_EVEN)=INT_ENABLE; |
ti | 826 | drivers/net/ibmtr.c | struct tok_info *ti; |
ti | 828 | drivers/net/ibmtr.c | ti=(struct tok_info *) dev->priv; |
ti | 830 | drivers/net/ibmtr.c | *(unsigned char *)(ti->mmio + ACA_OFFSET + ACA_RESET + ISRP_EVEN)=(~INT_ENABLE); |
ti | 833 | drivers/net/ibmtr.c | if(ti->global_int_enable) |
ti | 834 | drivers/net/ibmtr.c | outb(0,ti->global_int_enable); |
ti | 836 | drivers/net/ibmtr.c | ti->do_tok_int=NOT_FIRST; |
ti | 840 | drivers/net/ibmtr.c | if(!ti->sram) { /* we assign the address for ISA devices */ |
ti | 842 | drivers/net/ibmtr.c | *(unsigned char *)(ti->mmio + ACA_OFFSET + ACA_RW + RRR_EVEN)= |
ti | 843 | drivers/net/ibmtr.c | ti->sram_base; |
ti | 844 | drivers/net/ibmtr.c | ti->sram=(char *)(ti->sram_base << 12); |
ti | 846 | drivers/net/ibmtr.c | ti->init_srb=ti->sram+ntohs(*(unsigned short *)(ti->mmio+ ACA_OFFSET + WRBR_EVEN)); |
ti | 847 | drivers/net/ibmtr.c | SET_PAGE(ntohs(*(unsigned short *)(ti->mmio+ ACA_OFFSET + WRBR_EVEN))); |
ti | 850 | drivers/net/ibmtr.c | DPRINTK("init_srb(%p):",ti->init_srb); |
ti | 852 | drivers/net/ibmtr.c | printk("%02X ",*(ti->init_srb+i)); |
ti | 857 | drivers/net/ibmtr.c | DPRINTK("srb_init_response->encoded_address: %04X\n",((struct srb_init_response *)ti->init_srb)->encoded_address); |
ti | 858 | drivers/net/ibmtr.c | DPRINTK("ntohs(srb_init_response->encoded_address): %04X\n",ntohs(((struct srb_init_response *)ti->init_srb)->encoded_address)); |
ti | 859 | drivers/net/ibmtr.c | encoded_addr=(unsigned char *)(ti->sram + ntohs(((struct srb_init_response *)ti->init_srb)->encoded_address)); |
ti | 862 | drivers/net/ibmtr.c | ((struct srb_init_response *)ti->init_srb)->encoded_address, |
ti | 863 | drivers/net/ibmtr.c | ntohs(((struct srb_init_response *)ti->init_srb)->encoded_address), |
ti | 865 | drivers/net/ibmtr.c | ti->auto_ringspeedsave=((struct srb_init_response *)ti->init_srb)->init_status_2 & 0x4 ? TRUE : FALSE; |
ti | 877 | drivers/net/ibmtr.c | struct tok_info *ti; |
ti | 882 | drivers/net/ibmtr.c | ti=(struct tok_info *) dev->priv; |
ti | 885 | drivers/net/ibmtr.c | ti->do_tok_int=FIRST_INT; |
ti | 892 | drivers/net/ibmtr.c | if(ti->page_mask) { |
ti | 893 | drivers/net/ibmtr.c | *(unsigned char *)(ti->mmio + ACA_OFFSET + ACA_RW + SRPR_EVEN)=SRPR_ENABLE_PAGING; |
ti | 897 | drivers/net/ibmtr.c | *(unsigned char *)(ti->mmio + ACA_OFFSET + ACA_RESET + ISRP_EVEN)=~(INT_ENABLE); |
ti | 904 | drivers/net/ibmtr.c | ti->open_status=IN_PROGRESS; |
ti | 906 | drivers/net/ibmtr.c | *(unsigned char *)(ti->mmio + ACA_OFFSET + ACA_SET + ISRP_EVEN)=INT_ENABLE; |
ti | 912 | drivers/net/ibmtr.c | struct tok_info *ti=(struct tok_info *) dev->priv; |
ti | 913 | drivers/net/ibmtr.c | struct dlc_open_sap *open_sap=(struct dlc_open_sap *)ti->srb; |
ti | 915 | drivers/net/ibmtr.c | SET_PAGE(ti->srb); |
ti | 924 | drivers/net/ibmtr.c | *(unsigned char *)(ti->mmio + ACA_OFFSET + ACA_SET + ISRA_ODD)=CMD_IN_SRB; |
ti | 932 | drivers/net/ibmtr.c | struct tok_info *ti; |
ti | 933 | drivers/net/ibmtr.c | ti=(struct tok_info *) dev->priv; |
ti | 937 | drivers/net/ibmtr.c | *(unsigned char *)(ti->mmio + ACA_OFFSET + ACA_RESET + ISRP_ODD)=~(SRB_RESP_INT); |
ti | 938 | drivers/net/ibmtr.c | *(unsigned char *)(ti->mmio + ACA_OFFSET + ACA_RESET + ISRA_ODD)=~(CMD_IN_SRB); |
ti | 940 | drivers/net/ibmtr.c | open_adapter=(struct dir_open_adapter *)(ti->init_srb); |
ti | 952 | drivers/net/ibmtr.c | ti->srb=ti->init_srb; /* We use this one in the interrupt handler */ |
ti | 954 | drivers/net/ibmtr.c | *(unsigned char *)(ti->mmio + ACA_OFFSET + ACA_SET + ISRP_EVEN)=INT_ENABLE; |
ti | 955 | drivers/net/ibmtr.c | *(unsigned char *)(ti->mmio + ACA_OFFSET + ACA_SET + ISRA_ODD)=CMD_IN_SRB; |
ti | 961 | drivers/net/ibmtr.c | struct tok_info *ti=(struct tok_info *) dev->priv; |
ti | 962 | drivers/net/ibmtr.c | struct asb_xmit_resp *xmit_resp=(struct asb_xmit_resp *)ti->asb; |
ti | 963 | drivers/net/ibmtr.c | struct arb_xmit_req *xmit_req=(struct arb_xmit_req *)ti->arb; |
ti | 964 | drivers/net/ibmtr.c | struct srb_xmit *xmit=(struct srb_xmit *)ti->srb; |
ti | 970 | drivers/net/ibmtr.c | ti , ti->asb, xmit_resp, ti->arb, xmit_req, ti->srb, xmit); |
ti | 984 | drivers/net/ibmtr.c | dhb=ti->sram+ntohs(xmit_req->dhb_address); |
ti | 999 | drivers/net/ibmtr.c | *(unsigned char *)(ti->mmio + ACA_OFFSET + ACA_SET |
ti | 1014 | drivers/net/ibmtr.c | if(!(((struct trh_hdr *)(&ti->current_skb->data))->saddr[0] & 0x80)) { |
ti | 1018 | drivers/net/ibmtr.c | ti->current_skb->len-18)); |
ti | 1022 | drivers/net/ibmtr.c | hdr_len=((ntohs(((struct trh_hdr *)(&ti->current_skb->data))->rcf) |
ti | 1026 | drivers/net/ibmtr.c | DPRINTK("rcf: %02X rif_len: %d\n",((struct trh_hdr *)&ti->current_skb->data)->rcf,wrk_len); |
ti | 1028 | drivers/net/ibmtr.c | ti->current_skb->len-18+hdr_len); |
ti | 1035 | drivers/net/ibmtr.c | memcpy(dhb,ti->current_skb->data,hdr_len); |
ti | 1038 | drivers/net/ibmtr.c | xmit_resp->frame_length=htons(ti->current_skb->len |
ti | 1042 | drivers/net/ibmtr.c | memcpy(dhb,ti->current_skb->data+sizeof(struct trh_hdr), |
ti | 1043 | drivers/net/ibmtr.c | ti->current_skb->len-sizeof(struct trh_hdr)); |
ti | 1045 | drivers/net/ibmtr.c | *(unsigned char *)(ti->mmio + ACA_OFFSET + ACA_SET + ISRA_ODD) |
ti | 1048 | drivers/net/ibmtr.c | dev_kfree_skb(ti->current_skb,FREE_WRITE); |
ti | 1049 | drivers/net/ibmtr.c | ti->current_skb=NULL; |
ti | 1055 | drivers/net/ibmtr.c | struct tok_info *ti=(struct tok_info *) dev->priv; |
ti | 1057 | drivers/net/ibmtr.c | struct arb_rec_req *rec_req=(struct arb_rec_req *)ti->arb; |
ti | 1058 | drivers/net/ibmtr.c | struct asb_rec *rec_resp=(struct asb_rec *)ti->asb; |
ti | 1065 | drivers/net/ibmtr.c | rbuffer=(struct rec_buf *)(ti->sram+ntohs(rec_req->rec_buf_addr)); |
ti | 1079 | 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 | 1088 | drivers/net/ibmtr.c | ti->tr_stats.rx_dropped++; |
ti | 1089 | drivers/net/ibmtr.c | *(unsigned char *)(ti->mmio + ACA_OFFSET + ACA_SET + ISRA_ODD)=RESP_IN_ASB; |
ti | 1108 | drivers/net/ibmtr.c | ti->tr_stats.rx_dropped++; |
ti | 1110 | drivers/net/ibmtr.c | *(unsigned char *)(ti->mmio + ACA_OFFSET + ACA_SET + ISRA_ODD)=RESP_IN_ASB; |
ti | 1139 | drivers/net/ibmtr.c | for(rbuffer=(struct rec_buf *)(ti->sram+ntohs(rbuffer->buf_ptr)-2); |
ti | 1141 | drivers/net/ibmtr.c | data+=rbuffer_len,rbuffer=(struct rec_buf *)(ti->sram+ntohs(rbuffer->buf_ptr)-2)) |
ti | 1148 | drivers/net/ibmtr.c | *(unsigned char *)(ti->mmio + ACA_OFFSET + ACA_SET + ISRA_ODD)=RESP_IN_ASB; |
ti | 1150 | drivers/net/ibmtr.c | ti->tr_stats.rx_packets++; |
ti | 1160 | drivers/net/ibmtr.c | struct tok_info *ti=(struct tok_info *) dev->priv; |
ti | 1187 | drivers/net/ibmtr.c | struct srb_xmit *xmit=(struct srb_xmit *)ti->srb; |
ti | 1189 | drivers/net/ibmtr.c | ti->current_skb=skb; /* save skb. We will need it when the adapter |
ti | 1192 | drivers/net/ibmtr.c | xmit->station_id=ti->exsap_station_id; |
ti | 1193 | 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; |