tag | line | file | source code |
ti | 2152 | drivers/block/ide-cd.c | struct cdrom_ti ti; |
ti | 2155 | drivers/block/ide-cd.c | stat = verify_area (VERIFY_READ, (void *)arg, sizeof (ti)); |
ti | 2158 | drivers/block/ide-cd.c | memcpy_fromfs (&ti, (void *) arg, sizeof(ti)); |
ti | 2160 | drivers/block/ide-cd.c | stat = cdrom_get_toc_entry (drive, ti.cdti_trk0, &first_toc, NULL); |
ti | 2162 | drivers/block/ide-cd.c | stat = cdrom_get_toc_entry (drive, ti.cdti_trk1, &last_toc, NULL); |
ti | 2165 | 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 | 2552 | drivers/cdrom/cdu31a.c | struct cdrom_ti ti; |
ti | 2561 | drivers/cdrom/cdu31a.c | i=verify_area(VERIFY_READ, (char *) arg, sizeof(ti)); |
ti | 2565 | drivers/cdrom/cdu31a.c | memcpy_fromfs(&ti, (char *) arg, sizeof(ti)); |
ti | 2566 | drivers/cdrom/cdu31a.c | if ( (ti.cdti_trk0 < sony_toc.first_track_num) |
ti | 2567 | drivers/cdrom/cdu31a.c | || (ti.cdti_trk0 > sony_toc.last_track_num) |
ti | 2568 | drivers/cdrom/cdu31a.c | || (ti.cdti_trk1 < ti.cdti_trk0)) |
ti | 2573 | drivers/cdrom/cdu31a.c | track_idx = find_track(int_to_bcd(ti.cdti_trk0)); |
ti | 2586 | drivers/cdrom/cdu31a.c | if (ti.cdti_trk1 >= bcd_to_int(sony_toc.last_track_num)) |
ti | 2593 | drivers/cdrom/cdu31a.c | track_idx = find_track(int_to_bcd(ti.cdti_trk1+1)); |
ti | 291 | drivers/cdrom/mcd.c | struct cdrom_ti ti; |
ti | 370 | drivers/cdrom/mcd.c | st = verify_area(VERIFY_READ, (void *) arg, sizeof ti); |
ti | 374 | drivers/cdrom/mcd.c | memcpy_fromfs(&ti, (void *) arg, sizeof ti); |
ti | 376 | drivers/cdrom/mcd.c | if (ti.cdti_trk0 < DiskInfo.first |
ti | 377 | drivers/cdrom/mcd.c | || ti.cdti_trk0 > DiskInfo.last |
ti | 378 | drivers/cdrom/mcd.c | || ti.cdti_trk1 < ti.cdti_trk0) |
ti | 383 | drivers/cdrom/mcd.c | if (ti.cdti_trk1 > DiskInfo.last) |
ti | 384 | drivers/cdrom/mcd.c | ti. cdti_trk1 = DiskInfo.last; |
ti | 386 | drivers/cdrom/mcd.c | mcd_Play.start = Toc[ti.cdti_trk0].diskTime; |
ti | 387 | drivers/cdrom/mcd.c | mcd_Play.end = Toc[ti.cdti_trk1 + 1].diskTime; |
ti | 302 | drivers/cdrom/mcdx.c | struct cdrom_ti ti; |
ti | 305 | drivers/cdrom/mcdx.c | if ((ans = verify_area(VERIFY_READ, (void*) arg, sizeof(ti)))) |
ti | 307 | drivers/cdrom/mcdx.c | memcpy_fromfs(&ti, (void*) arg, sizeof(ti)); |
ti | 308 | drivers/cdrom/mcdx.c | if ((ti.cdti_trk0 < stuffp->di.n_first) |
ti | 309 | drivers/cdrom/mcdx.c | || (ti.cdti_trk0 > stuffp->di.n_last) |
ti | 310 | drivers/cdrom/mcdx.c | || (ti.cdti_trk1 < stuffp->di.n_first)) |
ti | 312 | drivers/cdrom/mcdx.c | if (ti.cdti_trk1 > stuffp->di.n_last) ti.cdti_trk1 = stuffp->di.n_last; |
ti | 313 | drivers/cdrom/mcdx.c | TRACE((PLAYTRK, "ioctl() track %d to %d\n", ti.cdti_trk0, ti.cdti_trk1)); |
ti | 315 | drivers/cdrom/mcdx.c | return mcdx_playtrk(stuffp, &ti); |
ti | 1604 | drivers/cdrom/mcdx.c | mcdx_playtrk(struct s_drive_stuff* stuffp, const struct cdrom_ti* ti) |
ti | 1611 | drivers/cdrom/mcdx.c | if (ti) p = &stuffp->toc[ti->cdti_trk0 - stuffp->di.n_first]; |
ti | 1618 | drivers/cdrom/mcdx.c | if (ti) { |
ti | 1619 | drivers/cdrom/mcdx.c | p = &stuffp->toc[ti->cdti_trk1 - stuffp->di.n_first + 1]; |
ti | 1458 | drivers/cdrom/optcd.c | struct cdrom_ti ti; |
ti | 1461 | drivers/cdrom/optcd.c | status = verify_area(VERIFY_READ, (void *) arg, sizeof ti); |
ti | 1464 | drivers/cdrom/optcd.c | memcpy_fromfs(&ti, (void *) arg, sizeof ti); |
ti | 1466 | drivers/cdrom/optcd.c | if (ti.cdti_trk0 < disk_info.first |
ti | 1467 | drivers/cdrom/optcd.c | || ti.cdti_trk0 > disk_info.last |
ti | 1468 | drivers/cdrom/optcd.c | || ti.cdti_trk1 < ti.cdti_trk0) |
ti | 1470 | drivers/cdrom/optcd.c | if (ti.cdti_trk1 > disk_info.last) |
ti | 1471 | drivers/cdrom/optcd.c | ti.cdti_trk1 = disk_info.last; |
ti | 1473 | drivers/cdrom/optcd.c | msf.cdmsf_min0 = toc[ti.cdti_trk0].cdsc_absaddr.msf.minute; |
ti | 1474 | drivers/cdrom/optcd.c | msf.cdmsf_sec0 = toc[ti.cdti_trk0].cdsc_absaddr.msf.second; |
ti | 1475 | drivers/cdrom/optcd.c | msf.cdmsf_frame0 = toc[ti.cdti_trk0].cdsc_absaddr.msf.frame; |
ti | 1476 | drivers/cdrom/optcd.c | msf.cdmsf_min1 = toc[ti.cdti_trk1 + 1].cdsc_absaddr.msf.minute; |
ti | 1477 | drivers/cdrom/optcd.c | msf.cdmsf_sec1 = toc[ti.cdti_trk1 + 1].cdsc_absaddr.msf.second; |
ti | 1478 | drivers/cdrom/optcd.c | msf.cdmsf_frame1 = toc[ti.cdti_trk1 + 1].cdsc_absaddr.msf.frame; |
ti | 516 | drivers/cdrom/sbpcd.c | static struct cdrom_ti ti; |
ti | 3951 | drivers/cdrom/sbpcd.c | memcpy_fromfs(&ti,(void *) arg,sizeof(struct cdrom_ti)); |
ti | 3953 | drivers/cdrom/sbpcd.c | ti.cdti_trk0,ti.cdti_ind0,ti.cdti_trk1,ti.cdti_ind1); |
ti | 3954 | drivers/cdrom/sbpcd.c | if (ti.cdti_trk0<D_S[d].n_first_track) return (-EINVAL); |
ti | 3955 | drivers/cdrom/sbpcd.c | if (ti.cdti_trk0>D_S[d].n_last_track) return (-EINVAL); |
ti | 3956 | drivers/cdrom/sbpcd.c | if (ti.cdti_trk1<ti.cdti_trk0) ti.cdti_trk1=ti.cdti_trk0; |
ti | 3957 | drivers/cdrom/sbpcd.c | if (ti.cdti_trk1>D_S[d].n_last_track) ti.cdti_trk1=D_S[d].n_last_track; |
ti | 3958 | drivers/cdrom/sbpcd.c | D_S[d].pos_audio_start=D_S[d].TocBuffer[ti.cdti_trk0].address; |
ti | 3959 | drivers/cdrom/sbpcd.c | D_S[d].pos_audio_end=D_S[d].TocBuffer[ti.cdti_trk1+1].address; |
ti | 720 | drivers/cdrom/sjcd.c | struct cdrom_ti ti; int s; |
ti | 724 | drivers/cdrom/sjcd.c | if( ( s = verify_area( VERIFY_READ, (void *)arg, sizeof( ti ) ) ) == 0 ){ |
ti | 725 | drivers/cdrom/sjcd.c | memcpy_fromfs( &ti, (void *)arg, sizeof( ti ) ); |
ti | 727 | drivers/cdrom/sjcd.c | if( ti.cdti_trk0 < sjcd_first_track_no ) return( -EINVAL ); |
ti | 728 | drivers/cdrom/sjcd.c | if( ti.cdti_trk1 > sjcd_last_track_no ) |
ti | 729 | drivers/cdrom/sjcd.c | ti.cdti_trk1 = sjcd_last_track_no; |
ti | 730 | drivers/cdrom/sjcd.c | if( ti.cdti_trk0 > ti.cdti_trk1 ) return( -EINVAL ); |
ti | 732 | drivers/cdrom/sjcd.c | sjcd_playing.start = sjcd_table_of_contents[ ti.cdti_trk0 ].un.track_msf; |
ti | 733 | drivers/cdrom/sjcd.c | sjcd_playing.end = ( ti.cdti_trk1 < sjcd_last_track_no ) ? |
ti | 734 | 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 | 215 | drivers/net/ibmtr.c | struct tok_info *ti=0; |
ti | 324 | drivers/net/ibmtr.c | ti = (struct tok_info *)kmalloc(sizeof(struct tok_info), GFP_KERNEL); |
ti | 325 | drivers/net/ibmtr.c | if (ti == NULL) return -ENOMEM; |
ti | 327 | drivers/net/ibmtr.c | ti = badti; |
ti | 331 | drivers/net/ibmtr.c | memset(ti, 0, sizeof(struct tok_info)); |
ti | 333 | drivers/net/ibmtr.c | ti->mmio= t_mmio; |
ti | 335 | drivers/net/ibmtr.c | dev->priv = ti; /* this seems like the logical use of the |
ti | 347 | drivers/net/ibmtr.c | ti->global_int_enable=GLOBAL_INT_ENABLE+((irq==9) ? 2 : irq); |
ti | 348 | drivers/net/ibmtr.c | ti->sram=0; |
ti | 350 | drivers/net/ibmtr.c | DPRINTK("ti->global_int_enable: %04X\n",ti->global_int_enable); |
ti | 358 | drivers/net/ibmtr.c | ti->global_int_enable=0; |
ti | 359 | drivers/net/ibmtr.c | ti->sram=((__u32)(inb(PIOaddr+ADAPTRESETREL) & 0xfe) << 12); |
ti | 366 | drivers/net/ibmtr.c | while(!readb(ti->mmio + ACA_OFFSET + ACA_RW + RRR_EVEN)); |
ti | 367 | drivers/net/ibmtr.c | ti->sram=((__u32)readb(ti->mmio + ACA_OFFSET + ACA_RW + RRR_EVEN)<<12); |
ti | 368 | drivers/net/ibmtr.c | ti->global_int_enable=PIOaddr+ADAPTINTREL; |
ti | 376 | drivers/net/ibmtr.c | DPRINTK(", ti->mmio=%08X",ti->mmio); |
ti | 389 | drivers/net/ibmtr.c | temp = readb(ti->mmio + AIP + i) & 0x0f; |
ti | 391 | drivers/net/ibmtr.c | printk("%1X",ti->hw_address[j]=temp); |
ti | 393 | drivers/net/ibmtr.c | ti->hw_address[j]=temp; |
ti | 396 | drivers/net/ibmtr.c | dev->dev_addr[(j/2)]=ti->hw_address[j]+(ti->hw_address[j-1]<<4); |
ti | 404 | drivers/net/ibmtr.c | ti->adapter_type = readb(ti->mmio + AIPADAPTYPE); |
ti | 407 | drivers/net/ibmtr.c | ti->data_rate = readb(ti->mmio + AIPDATARATE); |
ti | 410 | drivers/net/ibmtr.c | ti->token_release = readb(ti->mmio + AIPEARLYTOKEN); |
ti | 413 | drivers/net/ibmtr.c | ti->avail_shared_ram = get_sram_size(ti); |
ti | 417 | drivers/net/ibmtr.c | ti->shared_ram_paging = readb(ti->mmio + AIPSHRAMPAGE); |
ti | 420 | drivers/net/ibmtr.c | ti->dhb_size4mb = readb(ti->mmio + AIP4MBDHB); |
ti | 423 | drivers/net/ibmtr.c | ti->dhb_size16mb = readb(ti->mmio + AIP16MBDHB); |
ti | 427 | drivers/net/ibmtr.c | "dhb(4mb=%x, 16mb=%x)\n",ti->adapter_type, |
ti | 428 | drivers/net/ibmtr.c | ti->data_rate, ti->token_release, ti->avail_shared_ram/2, |
ti | 429 | drivers/net/ibmtr.c | ti->shared_ram_paging, ti->dhb_size4mb, ti->dhb_size16mb); |
ti | 440 | drivers/net/ibmtr.c | ti->mapped_ram_size=1<<(((readb(ti->mmio+ ACA_OFFSET + ACA_RW + RRR_ODD)) >>2) +4); |
ti | 441 | drivers/net/ibmtr.c | ti->page_mask=0; |
ti | 442 | drivers/net/ibmtr.c | if (ti->shared_ram_paging == 0xf) { /* No paging in adapter */ |
ti | 443 | drivers/net/ibmtr.c | ti->mapped_ram_size = ti->avail_shared_ram; |
ti | 450 | drivers/net/ibmtr.c | DPRINTK("shared ram page size: %dK\n",ti->mapped_ram_size/2); |
ti | 453 | drivers/net/ibmtr.c | switch(ti->shared_ram_paging) { |
ti | 457 | drivers/net/ibmtr.c | ti->page_mask=(ti->mapped_ram_size==32) ? 0xc0 : 0; |
ti | 461 | drivers/net/ibmtr.c | ti->page_mask=(ti->mapped_ram_size==64) ? 0x80 : 0; |
ti | 465 | drivers/net/ibmtr.c | ti->page_mask=(ti->mapped_ram_size==32) ? 0xc0 : 0; |
ti | 466 | drivers/net/ibmtr.c | ti->page_mask=(ti->mapped_ram_size==64) ? 0x80 : 0; |
ti | 472 | drivers/net/ibmtr.c | badti=ti; |
ti | 475 | drivers/net/ibmtr.c | DPRINTK("Unknown shared ram paging info %01X\n",ti->shared_ram_paging); |
ti | 476 | drivers/net/ibmtr.c | badti=ti; /* bail out if bad code */ |
ti | 479 | drivers/net/ibmtr.c | if (ti->page_mask) { |
ti | 480 | drivers/net/ibmtr.c | if (pg_size > ti->mapped_ram_size) { |
ti | 482 | drivers/net/ibmtr.c | pg_size, ti->mapped_ram_size); |
ti | 483 | drivers/net/ibmtr.c | ti->page_mask = 0; /* reset paging */ |
ti | 485 | drivers/net/ibmtr.c | ti->mapped_ram_size=ti->avail_shared_ram; |
ti | 487 | drivers/net/ibmtr.c | ((ti->page_mask^ 0xff)+1)>>2); |
ti | 496 | drivers/net/ibmtr.c | rrr_32 = (readb(ti->mmio+ ACA_OFFSET + ACA_RW + RRR_ODD))>>2; |
ti | 499 | drivers/net/ibmtr.c | chk_base = new_base + (ti->mapped_ram_size>>3); |
ti | 505 | drivers/net/ibmtr.c | badti=ti; |
ti | 507 | drivers/net/ibmtr.c | ti->sram_base = new_base; |
ti | 518 | drivers/net/ibmtr.c | DPRINTK("Using %dK shared RAM\n",ti->mapped_ram_size/2); |
ti | 523 | drivers/net/ibmtr.c | badti = ti; /* keep track of unused tok_info */ |
ti | 537 | drivers/net/ibmtr.c | channel_def[cardpresent-1], adapter_def(ti->adapter_type), irq, |
ti | 538 | drivers/net/ibmtr.c | PIOaddr, ti->mapped_ram_size/2); |
ti | 582 | drivers/net/ibmtr.c | struct tok_info *ti=(struct tok_info *)dev->priv; |
ti | 584 | drivers/net/ibmtr.c | if (ti->open_status==CLOSED) tok_init_card((unsigned long)dev); |
ti | 586 | drivers/net/ibmtr.c | if (ti->open_status==IN_PROGRESS) sleep_on(&ti->wait_for_reset); |
ti | 588 | drivers/net/ibmtr.c | if (ti->open_status==SUCCES) { |
ti | 604 | drivers/net/ibmtr.c | struct tok_info *ti=(struct tok_info *) dev->priv; |
ti | 607 | drivers/net/ibmtr.c | ti->srb + offsetof(struct srb_close_adapter, command)); |
ti | 608 | drivers/net/ibmtr.c | writeb(CMD_IN_SRB, ti->mmio + ACA_OFFSET + ACA_SET + ISRA_ODD); |
ti | 610 | drivers/net/ibmtr.c | ti->open_status=CLOSED; |
ti | 612 | drivers/net/ibmtr.c | sleep_on(&ti->wait_for_tok_int); |
ti | 614 | drivers/net/ibmtr.c | if (readb(ti->srb + offsetof(struct srb_close_adapter, ret_code))) |
ti | 616 | drivers/net/ibmtr.c | (int)readb(ti->srb + offsetof(struct srb_close_adapter, ret_code))); |
ti | 626 | drivers/net/ibmtr.c | struct tok_info *ti; |
ti | 633 | drivers/net/ibmtr.c | ti=(struct tok_info *) dev->priv; |
ti | 635 | drivers/net/ibmtr.c | switch (ti->do_tok_int) { |
ti | 646 | drivers/net/ibmtr.c | writeb((~INT_ENABLE), ti->mmio + ACA_OFFSET + ACA_RESET + ISRP_EVEN); |
ti | 649 | drivers/net/ibmtr.c | if (ti->global_int_enable) |
ti | 650 | drivers/net/ibmtr.c | outb(0, ti->global_int_enable); |
ti | 652 | drivers/net/ibmtr.c | status=readb(ti->mmio + ACA_OFFSET + ACA_RW + ISRP_ODD); |
ti | 659 | drivers/net/ibmtr.c | check_reason=ti->mmio + ntohs(readw(ti->mmio + ACA_OFFSET + ACA_RW +WWCR_EVEN)); |
ti | 667 | drivers/net/ibmtr.c | writeb((~ADAP_CHK_INT), ti->mmio + ACA_OFFSET + ACA_RESET + ISRP_ODD); |
ti | 668 | drivers/net/ibmtr.c | writeb(INT_ENABLE, ti->mmio + ACA_OFFSET + ACA_SET + ISRP_EVEN); |
ti | 671 | drivers/net/ibmtr.c | } else if (readb(ti->mmio + ACA_OFFSET + ACA_RW + ISRP_EVEN) |
ti | 675 | drivers/net/ibmtr.c | (int)readb(ti->mmio + ACA_OFFSET + ACA_RW + ISRP_EVEN)); |
ti | 677 | drivers/net/ibmtr.c | ti->mmio + ACA_OFFSET + ACA_RESET + ISRP_EVEN); |
ti | 678 | drivers/net/ibmtr.c | writeb(INT_ENABLE, ti->mmio + ACA_OFFSET + ACA_SET + ISRP_EVEN); |
ti | 687 | drivers/net/ibmtr.c | switch(readb(ti->srb)) { /* SRB command check */ |
ti | 692 | drivers/net/ibmtr.c | xmit_ret_code=readb(ti->srb + offsetof(struct srb_xmit, ret_code)); |
ti | 696 | drivers/net/ibmtr.c | if (ti->current_skb) { |
ti | 697 | drivers/net/ibmtr.c | dev_kfree_skb(ti->current_skb, FREE_WRITE); |
ti | 698 | drivers/net/ibmtr.c | ti->current_skb=NULL; |
ti | 708 | drivers/net/ibmtr.c | xmit_ret_code=readb(ti->srb + offsetof(struct srb_xmit, ret_code)); |
ti | 712 | drivers/net/ibmtr.c | if (ti->current_skb) { |
ti | 713 | drivers/net/ibmtr.c | dev_kfree_skb(ti->current_skb, FREE_WRITE); |
ti | 714 | drivers/net/ibmtr.c | ti->current_skb=NULL; |
ti | 725 | drivers/net/ibmtr.c | ti->srb=ti->sram+ntohs(readw(ti->init_srb +offsetof(struct srb_open_response, srb_addr))); |
ti | 726 | drivers/net/ibmtr.c | ti->ssb=ti->sram+ntohs(readw(ti->init_srb +offsetof(struct srb_open_response, ssb_addr))); |
ti | 727 | drivers/net/ibmtr.c | ti->arb=ti->sram+ntohs(readw(ti->init_srb +offsetof(struct srb_open_response, arb_addr))); |
ti | 728 | drivers/net/ibmtr.c | ti->asb=ti->sram+ntohs(readw(ti->init_srb +offsetof(struct srb_open_response, asb_addr))); |
ti | 729 | drivers/net/ibmtr.c | ti->current_skb=NULL; |
ti | 731 | drivers/net/ibmtr.c | open_ret_code = readb(ti->init_srb +offsetof(struct srb_open_response, ret_code)); |
ti | 732 | drivers/net/ibmtr.c | open_error_code = readw(ti->init_srb +offsetof(struct srb_open_response, error_code)); |
ti | 736 | drivers/net/ibmtr.c | if (!ti->auto_ringspeedsave && (open_error_code==0x24)) { |
ti | 739 | drivers/net/ibmtr.c | ti->open_status=FAILURE; |
ti | 740 | drivers/net/ibmtr.c | wake_up(&ti->wait_for_reset); |
ti | 743 | drivers/net/ibmtr.c | else if ((open_error_code==0x2d) && ti->auto_ringspeedsave) |
ti | 755 | drivers/net/ibmtr.c | ti->mmio + ACA_OFFSET + ACA_RESET + ISRP_ODD); |
ti | 757 | drivers/net/ibmtr.c | ti->mmio + ACA_OFFSET + ACA_RESET + ISRA_ODD); |
ti | 766 | drivers/net/ibmtr.c | if (ti->open_status != FAILURE) { |
ti | 777 | drivers/net/ibmtr.c | wake_up(&ti->wait_for_tok_int); |
ti | 781 | drivers/net/ibmtr.c | if (readb(ti->srb+offsetof(struct dlc_open_sap, ret_code))) { |
ti | 783 | drivers/net/ibmtr.c | (int)readb(ti->srb+offsetof(struct dlc_open_sap, ret_code))); |
ti | 789 | drivers/net/ibmtr.c | ti->exsap_station_id= |
ti | 790 | drivers/net/ibmtr.c | readw(ti->srb+offsetof(struct dlc_open_sap, station_id)); |
ti | 791 | drivers/net/ibmtr.c | ti->open_status=SUCCES; /* TR adapter is now available */ |
ti | 792 | drivers/net/ibmtr.c | wake_up(&ti->wait_for_reset); |
ti | 801 | drivers/net/ibmtr.c | if (readb(ti->srb+offsetof(struct srb_interrupt, ret_code))) |
ti | 803 | drivers/net/ibmtr.c | (int)readb(ti->srb+offsetof(struct srb_interrupt, command)), |
ti | 804 | drivers/net/ibmtr.c | (int)readb(ti->srb+offsetof(struct srb_interrupt, ret_code))); |
ti | 808 | drivers/net/ibmtr.c | if (readb(ti->srb+offsetof(struct srb_read_log, ret_code))) |
ti | 810 | drivers/net/ibmtr.c | (int)readb(ti->srb+offsetof(struct srb_read_log, ret_code))); |
ti | 817 | drivers/net/ibmtr.c | (int)readb(ti->srb+offsetof(struct srb_read_log, |
ti | 819 | drivers/net/ibmtr.c | (int)readb(ti->srb+offsetof(struct srb_read_log, |
ti | 821 | drivers/net/ibmtr.c | (int)readb(ti->srb+offsetof(struct srb_read_log, |
ti | 823 | drivers/net/ibmtr.c | (int)readb(ti->srb+offsetof(struct srb_read_log, A_C_errors)), |
ti | 824 | drivers/net/ibmtr.c | (int)readb(ti->srb+offsetof(struct srb_read_log, |
ti | 826 | drivers/net/ibmtr.c | (int)readb(ti->srb+offsetof(struct srb_read_log, |
ti | 828 | drivers/net/ibmtr.c | (int)readb(ti->srb+offsetof(struct srb_read_log, |
ti | 830 | drivers/net/ibmtr.c | (int)readb(ti->srb+offsetof(struct srb_read_log, |
ti | 832 | drivers/net/ibmtr.c | (int)readb(ti->srb+offsetof(struct srb_read_log, |
ti | 834 | drivers/net/ibmtr.c | (int)readb(ti->srb+offsetof(struct srb_read_log, |
ti | 841 | drivers/net/ibmtr.c | (int)readb(ti->srb)); |
ti | 845 | drivers/net/ibmtr.c | writeb(~CMD_IN_SRB, ti->mmio + ACA_OFFSET + ACA_RESET + ISRA_ODD); |
ti | 846 | drivers/net/ibmtr.c | writeb(~SRB_RESP_INT, ti->mmio + ACA_OFFSET + ACA_RESET + ISRP_ODD); |
ti | 853 | drivers/net/ibmtr.c | switch(readb(ti->asb)) { /* ASB command check */ |
ti | 858 | drivers/net/ibmtr.c | if (readb(ti->asb+2)!=0xff) /* checks ret_code */ |
ti | 860 | drivers/net/ibmtr.c | (int)readb(ti->asb+2), |
ti | 861 | drivers/net/ibmtr.c | (int)readb(ti->asb)); |
ti | 866 | drivers/net/ibmtr.c | (int)readb(ti->asb)); |
ti | 870 | drivers/net/ibmtr.c | writeb(~ASB_FREE_INT, ti->mmio + ACA_OFFSET + ACA_RESET + ISRP_ODD); |
ti | 876 | drivers/net/ibmtr.c | switch (readb(ti->arb)) { /* ARB command check */ |
ti | 880 | drivers/net/ibmtr.c | ntohs(readw(ti->arb + offsetof(struct arb_dlc_status, status))), |
ti | 881 | drivers/net/ibmtr.c | ntohs(readw(ti->arb |
ti | 892 | drivers/net/ibmtr.c | ring_status=ntohs(readw(ti->arb |
ti | 910 | drivers/net/ibmtr.c | writeb(DIR_READ_LOG, ti->srb); |
ti | 912 | drivers/net/ibmtr.c | ti->mmio + ACA_OFFSET + ACA_SET + ISRP_EVEN); |
ti | 914 | drivers/net/ibmtr.c | ti->mmio + ACA_OFFSET + ACA_SET + ISRA_ODD); |
ti | 927 | drivers/net/ibmtr.c | (int)readb(ti->arb)); |
ti | 932 | drivers/net/ibmtr.c | writeb(~ARB_CMD_INT, ti->mmio + ACA_OFFSET + ACA_RESET + ISRP_ODD); |
ti | 933 | drivers/net/ibmtr.c | writeb(ARB_FREE, ti->mmio + ACA_OFFSET + ACA_SET + ISRA_ODD); |
ti | 939 | drivers/net/ibmtr.c | switch (readb(ti->ssb)) { /* SSB command check */ |
ti | 943 | drivers/net/ibmtr.c | if (readb(ti->ssb+2)) /* checks ret_code */ |
ti | 945 | drivers/net/ibmtr.c | (int)readb(ti->ssb+2), (int)readb(ti->ssb+6)); |
ti | 946 | drivers/net/ibmtr.c | else ti->tr_stats.tx_packets++; |
ti | 950 | drivers/net/ibmtr.c | DPRINTK("xmit xid ret_code: %02X\n", (int)readb(ti->ssb+2)); |
ti | 953 | drivers/net/ibmtr.c | DPRINTK("Unknown command %02X in ssb\n", (int)readb(ti->ssb)); |
ti | 957 | drivers/net/ibmtr.c | writeb(~SSB_RESP_INT, ti->mmio + ACA_OFFSET + ACA_RESET + ISRP_ODD); |
ti | 958 | drivers/net/ibmtr.c | writeb(SSB_FREE, ti->mmio + ACA_OFFSET + ACA_SET + ISRA_ODD); |
ti | 965 | drivers/net/ibmtr.c | writeb(INT_ENABLE, ti->mmio + ACA_OFFSET + ACA_SET + ISRP_EVEN); |
ti | 983 | drivers/net/ibmtr.c | struct tok_info *ti; |
ti | 985 | drivers/net/ibmtr.c | ti=(struct tok_info *) dev->priv; |
ti | 987 | drivers/net/ibmtr.c | writeb(~INT_ENABLE, ti->mmio + ACA_OFFSET + ACA_RESET + ISRP_EVEN); |
ti | 990 | drivers/net/ibmtr.c | if (ti->global_int_enable) outb(0,ti->global_int_enable); |
ti | 992 | drivers/net/ibmtr.c | ti->do_tok_int=NOT_FIRST; |
ti | 1000 | drivers/net/ibmtr.c | if(!ti->sram) { |
ti | 1001 | drivers/net/ibmtr.c | writeb(ti->sram_base, ti->mmio + ACA_OFFSET + ACA_RW + RRR_EVEN); |
ti | 1002 | drivers/net/ibmtr.c | ti->sram=((__u32)ti->sram_base << 12); |
ti | 1004 | drivers/net/ibmtr.c | ti->init_srb=ti->sram |
ti | 1005 | drivers/net/ibmtr.c | +ntohs((unsigned short)readw(ti->mmio+ ACA_OFFSET + WRBR_EVEN)); |
ti | 1006 | drivers/net/ibmtr.c | SET_PAGE(ntohs((unsigned short)readw(ti->mmio+ACA_OFFSET + WRBR_EVEN))); |
ti | 1011 | drivers/net/ibmtr.c | DPRINTK("init_srb(%p):", ti->init_srb); |
ti | 1012 | drivers/net/ibmtr.c | for (i=0;i<17;i++) printk("%02X ", (int)readb(ti->init_srb+i)); |
ti | 1017 | drivers/net/ibmtr.c | hw_encoded_addr = readw(ti->init_srb |
ti | 1026 | drivers/net/ibmtr.c | encoded_addr=(ti->sram + ntohs(hw_encoded_addr)); |
ti | 1035 | drivers/net/ibmtr.c | ti->auto_ringspeedsave=readb(ti->init_srb |
ti | 1051 | drivers/net/ibmtr.c | struct tok_info *ti; |
ti | 1056 | drivers/net/ibmtr.c | ti=(struct tok_info *) dev->priv; |
ti | 1059 | drivers/net/ibmtr.c | ti->do_tok_int=FIRST_INT; |
ti | 1065 | drivers/net/ibmtr.c | if(ti->page_mask) |
ti | 1066 | drivers/net/ibmtr.c | writeb(SRPR_ENABLE_PAGING, ti->mmio + ACA_OFFSET + ACA_RW + SRPR_EVEN); |
ti | 1069 | drivers/net/ibmtr.c | writeb(~INT_ENABLE, ti->mmio + ACA_OFFSET + ACA_RESET + ISRP_EVEN); |
ti | 1083 | drivers/net/ibmtr.c | ti->open_status=IN_PROGRESS; |
ti | 1084 | drivers/net/ibmtr.c | writeb(INT_ENABLE, ti->mmio + ACA_OFFSET + ACA_SET + ISRP_EVEN); |
ti | 1091 | drivers/net/ibmtr.c | struct tok_info *ti=(struct tok_info *) dev->priv; |
ti | 1093 | drivers/net/ibmtr.c | SET_PAGE(ti->srb); |
ti | 1095 | drivers/net/ibmtr.c | writeb(0, ti->srb+i); |
ti | 1097 | drivers/net/ibmtr.c | writeb(DLC_OPEN_SAP, ti->srb + offsetof(struct dlc_open_sap, command)); |
ti | 1099 | drivers/net/ibmtr.c | ti->srb + offsetof(struct dlc_open_sap, max_i_field)); |
ti | 1101 | drivers/net/ibmtr.c | ti->srb + offsetof(struct dlc_open_sap, sap_options)); |
ti | 1103 | drivers/net/ibmtr.c | ti->srb + offsetof(struct dlc_open_sap, station_count)); |
ti | 1104 | drivers/net/ibmtr.c | writeb(type, ti->srb + offsetof(struct dlc_open_sap, sap_value)); |
ti | 1106 | drivers/net/ibmtr.c | writeb(CMD_IN_SRB, ti->mmio + ACA_OFFSET + ACA_SET + ISRA_ODD); |
ti | 1114 | drivers/net/ibmtr.c | struct tok_info *ti; |
ti | 1117 | drivers/net/ibmtr.c | ti=(struct tok_info *) dev->priv; |
ti | 1123 | drivers/net/ibmtr.c | writeb(~SRB_RESP_INT, ti->mmio + ACA_OFFSET + ACA_RESET + ISRP_ODD); |
ti | 1124 | drivers/net/ibmtr.c | writeb(~CMD_IN_SRB, ti->mmio + ACA_OFFSET + ACA_RESET + ISRA_ODD); |
ti | 1127 | drivers/net/ibmtr.c | writeb(0, ti->init_srb+i); |
ti | 1130 | drivers/net/ibmtr.c | ti->init_srb + offsetof(struct dir_open_adapter, command)); |
ti | 1132 | drivers/net/ibmtr.c | ti->init_srb + offsetof(struct dir_open_adapter, open_options)); |
ti | 1134 | drivers/net/ibmtr.c | ti->init_srb + offsetof(struct dir_open_adapter, num_rcv_buf)); |
ti | 1136 | drivers/net/ibmtr.c | ti->init_srb + offsetof(struct dir_open_adapter, rcv_buf_len)); |
ti | 1138 | drivers/net/ibmtr.c | ti->init_srb + offsetof(struct dir_open_adapter, dhb_length)); |
ti | 1140 | drivers/net/ibmtr.c | ti->init_srb + offsetof(struct dir_open_adapter, num_dhb)); |
ti | 1142 | drivers/net/ibmtr.c | ti->init_srb + offsetof(struct dir_open_adapter, dlc_max_sap)); |
ti | 1144 | drivers/net/ibmtr.c | ti->init_srb + offsetof(struct dir_open_adapter, dlc_max_sta)); |
ti | 1146 | drivers/net/ibmtr.c | ti->srb=ti->init_srb; /* We use this one in the interrupt handler */ |
ti | 1148 | drivers/net/ibmtr.c | writeb(INT_ENABLE, ti->mmio + ACA_OFFSET + ACA_SET + ISRP_EVEN); |
ti | 1149 | drivers/net/ibmtr.c | writeb(CMD_IN_SRB, ti->mmio + ACA_OFFSET + ACA_SET + ISRA_ODD); |
ti | 1155 | drivers/net/ibmtr.c | struct tok_info *ti=(struct tok_info *) dev->priv; |
ti | 1156 | drivers/net/ibmtr.c | struct trh_hdr *trhdr=(struct trh_hdr *)ti->current_skb->data; |
ti | 1162 | drivers/net/ibmtr.c | if (readb(ti->asb + offsetof(struct asb_xmit_resp, ret_code))!=0xFF) |
ti | 1170 | drivers/net/ibmtr.c | dhb=ti->sram |
ti | 1171 | drivers/net/ibmtr.c | +ntohs(readw(ti->arb + offsetof(struct arb_xmit_req, dhb_address))); |
ti | 1173 | drivers/net/ibmtr.c | xmit_command = readb(ti->srb + offsetof(struct srb_xmit, command)); |
ti | 1175 | drivers/net/ibmtr.c | writeb(xmit_command, ti->asb + offsetof(struct asb_xmit_resp, command)); |
ti | 1176 | drivers/net/ibmtr.c | writew(readb(ti->srb + offsetof(struct srb_xmit, station_id)), |
ti | 1177 | drivers/net/ibmtr.c | ti->asb + offsetof(struct asb_xmit_resp, station_id)); |
ti | 1178 | drivers/net/ibmtr.c | writeb(EXTENDED_SAP, ti->asb + offsetof(struct asb_xmit_resp, rsap_value)); |
ti | 1179 | drivers/net/ibmtr.c | writeb(readb(ti->srb + offsetof(struct srb_xmit, cmd_corr)), |
ti | 1180 | drivers/net/ibmtr.c | ti->asb + offsetof(struct asb_xmit_resp, cmd_corr)); |
ti | 1181 | drivers/net/ibmtr.c | writeb(0, ti->asb + offsetof(struct asb_xmit_resp, ret_code)); |
ti | 1186 | drivers/net/ibmtr.c | ti->asb + offsetof(struct asb_xmit_resp, frame_length)); |
ti | 1187 | drivers/net/ibmtr.c | writeb(0x0e, ti->asb + offsetof(struct asb_xmit_resp, hdr_length)); |
ti | 1194 | drivers/net/ibmtr.c | writeb(RESP_IN_ASB, ti->mmio + ACA_OFFSET + ACA_SET + ISRA_ODD); |
ti | 1215 | drivers/net/ibmtr.c | ti->current_skb->len-18); |
ti | 1223 | drivers/net/ibmtr.c | writeb(*(unsigned char *)(ti->current_skb->data +i), dhb++); |
ti | 1225 | drivers/net/ibmtr.c | writeb(hdr_len, ti->asb + offsetof(struct asb_xmit_resp, hdr_length)); |
ti | 1226 | drivers/net/ibmtr.c | writew(htons(ti->current_skb->len-sizeof(struct trh_hdr)+hdr_len), |
ti | 1227 | drivers/net/ibmtr.c | ti->asb + offsetof(struct asb_xmit_resp, frame_length)); |
ti | 1230 | drivers/net/ibmtr.c | for (i=0; i<ti->current_skb->len-sizeof(struct trh_hdr); i++) |
ti | 1231 | drivers/net/ibmtr.c | writeb(*(unsigned char *)(ti->current_skb->data +sizeof(struct trh_hdr)+i), |
ti | 1234 | drivers/net/ibmtr.c | writeb(RESP_IN_ASB, ti->mmio + ACA_OFFSET + ACA_SET + ISRA_ODD); |
ti | 1236 | drivers/net/ibmtr.c | dev_kfree_skb(ti->current_skb,FREE_WRITE); |
ti | 1237 | drivers/net/ibmtr.c | ti->current_skb=NULL; |
ti | 1244 | drivers/net/ibmtr.c | struct tok_info *ti=(struct tok_info *) dev->priv; |
ti | 1252 | drivers/net/ibmtr.c | rbuffer=(ti->sram |
ti | 1253 | drivers/net/ibmtr.c | +ntohs(readw(ti->arb + offsetof(struct arb_rec_req, rec_buf_addr)))); |
ti | 1255 | drivers/net/ibmtr.c | if(readb(ti->asb + offsetof(struct asb_rec, ret_code))!=0xFF) |
ti | 1259 | drivers/net/ibmtr.c | ti->asb + offsetof(struct asb_rec, command)); |
ti | 1260 | drivers/net/ibmtr.c | writew(readw(ti->arb + offsetof(struct arb_rec_req, station_id)), |
ti | 1261 | drivers/net/ibmtr.c | ti->asb + offsetof(struct asb_rec, station_id)); |
ti | 1262 | drivers/net/ibmtr.c | writew(readw(ti->arb + offsetof(struct arb_rec_req, rec_buf_addr)), |
ti | 1263 | drivers/net/ibmtr.c | ti->asb + offsetof(struct asb_rec, rec_buf_addr)); |
ti | 1265 | drivers/net/ibmtr.c | lan_hdr_len=readb(ti->arb + offsetof(struct arb_rec_req, lan_hdr_len)); |
ti | 1273 | drivers/net/ibmtr.c | ntohs(readw(ti->arb + offsetof(struct arb_rec_req, rec_buf_addr))), |
ti | 1274 | drivers/net/ibmtr.c | ti->sram); |
ti | 1290 | drivers/net/ibmtr.c | writeb(DATA_LOST, ti->asb + offsetof(struct asb_rec, ret_code)); |
ti | 1291 | drivers/net/ibmtr.c | ti->tr_stats.rx_dropped++; |
ti | 1292 | drivers/net/ibmtr.c | writeb(RESP_IN_ASB, ti->mmio + ACA_OFFSET + ACA_SET + ISRA_ODD); |
ti | 1324 | drivers/net/ibmtr.c | arb_frame_len=ntohs(readw(ti->arb+offsetof(struct arb_rec_req, frame_len))); |
ti | 1328 | drivers/net/ibmtr.c | ti->tr_stats.rx_dropped++; |
ti | 1329 | drivers/net/ibmtr.c | writeb(DATA_LOST, ti->asb + offsetof(struct asb_rec, ret_code)); |
ti | 1330 | drivers/net/ibmtr.c | writeb(RESP_IN_ASB, ti->mmio + ACA_OFFSET + ACA_SET + ISRA_ODD); |
ti | 1357 | drivers/net/ibmtr.c | rbuffer=(ti->sram |
ti | 1370 | drivers/net/ibmtr.c | writeb(0, ti->asb + offsetof(struct asb_rec, ret_code)); |
ti | 1372 | drivers/net/ibmtr.c | writeb(RESP_IN_ASB, ti->mmio + ACA_OFFSET + ACA_SET + ISRA_ODD); |
ti | 1374 | drivers/net/ibmtr.c | ti->tr_stats.rx_packets++; |
ti | 1383 | drivers/net/ibmtr.c | struct tok_info *ti; |
ti | 1384 | drivers/net/ibmtr.c | ti=(struct tok_info *) dev->priv; |
ti | 1412 | drivers/net/ibmtr.c | ti->current_skb=skb; |
ti | 1413 | drivers/net/ibmtr.c | writeb(XMIT_UI_FRAME, ti->srb + offsetof(struct srb_xmit, command)); |
ti | 1414 | drivers/net/ibmtr.c | writew(ti->exsap_station_id, ti->srb |
ti | 1416 | drivers/net/ibmtr.c | writeb(CMD_IN_SRB, (ti->mmio + ACA_OFFSET + ACA_SET + ISRA_ODD)); |
ti | 166 | drivers/net/ibmtr.h | #define SET_PAGE(x) (writeb(((x>>8)&ti.page_mask), \ |
ti | 167 | drivers/net/ibmtr.h | ti->mmio + ACA_OFFSET + ACA_RW + SRPR_EVEN)) |
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; |