tag | line | file | source code |
ti | 2031 | drivers/block/ide-cd.c | struct cdrom_ti ti; |
ti | 2034 | drivers/block/ide-cd.c | stat = verify_area (VERIFY_READ, (void *)arg, sizeof (ti)); |
ti | 2037 | drivers/block/ide-cd.c | memcpy_fromfs (&ti, (void *) arg, sizeof(ti)); |
ti | 2039 | drivers/block/ide-cd.c | stat = cdrom_get_toc_entry (drive, ti.cdti_trk0, &first_toc, |
ti | 2042 | drivers/block/ide-cd.c | stat = cdrom_get_toc_entry (drive, ti.cdti_trk1, &last_toc, |
ti | 2046 | 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 | 576 | drivers/net/ibmtr.c | struct tok_info *ti=(struct tok_info *)dev->priv; |
ti | 578 | drivers/net/ibmtr.c | ti->open_status=CLOSED; |
ti | 596 | drivers/net/ibmtr.c | struct tok_info *ti=(struct tok_info *)dev->priv; |
ti | 598 | drivers/net/ibmtr.c | if (ti->open_status==CLOSED) tok_init_card(dev); |
ti | 600 | drivers/net/ibmtr.c | if (ti->open_status==IN_PROGRESS) sleep_on(&ti->wait_for_reset); |
ti | 602 | drivers/net/ibmtr.c | if (ti->open_status==SUCCESS) { |
ti | 618 | drivers/net/ibmtr.c | struct tok_info *ti=(struct tok_info *) dev->priv; |
ti | 621 | drivers/net/ibmtr.c | ti->srb + offsetof(struct srb_close_adapter, command)); |
ti | 622 | drivers/net/ibmtr.c | writeb(CMD_IN_SRB, ti->mmio + ACA_OFFSET + ACA_SET + ISRA_ODD); |
ti | 624 | drivers/net/ibmtr.c | ti->open_status=CLOSED; |
ti | 626 | drivers/net/ibmtr.c | sleep_on(&ti->wait_for_tok_int); |
ti | 628 | drivers/net/ibmtr.c | if (readb(ti->srb + offsetof(struct srb_close_adapter, ret_code))) |
ti | 630 | drivers/net/ibmtr.c | (int)readb(ti->srb + offsetof(struct srb_close_adapter, ret_code))); |
ti | 640 | drivers/net/ibmtr.c | struct tok_info *ti; |
ti | 647 | drivers/net/ibmtr.c | ti=(struct tok_info *) dev->priv; |
ti | 649 | drivers/net/ibmtr.c | switch (ti->do_tok_int) { |
ti | 660 | drivers/net/ibmtr.c | writeb((~INT_ENABLE), ti->mmio + ACA_OFFSET + ACA_RESET + ISRP_EVEN); |
ti | 663 | drivers/net/ibmtr.c | if (ti->global_int_enable) |
ti | 664 | drivers/net/ibmtr.c | outb(0, ti->global_int_enable); |
ti | 666 | drivers/net/ibmtr.c | status=readb(ti->mmio + ACA_OFFSET + ACA_RW + ISRP_ODD); |
ti | 677 | drivers/net/ibmtr.c | if ( *(unsigned char *)(ti->mmio + ACA_OFFSET + ACA_RW + ISRP_EVEN) == 0xFF) |
ti | 691 | drivers/net/ibmtr.c | check_reason=ti->mmio + ntohs(readw(ti->sram + ACA_OFFSET + ACA_RW +WWCR_EVEN)); |
ti | 699 | drivers/net/ibmtr.c | writeb((~ADAP_CHK_INT), ti->mmio + ACA_OFFSET + ACA_RESET + ISRP_ODD); |
ti | 700 | drivers/net/ibmtr.c | writeb(INT_ENABLE, ti->mmio + ACA_OFFSET + ACA_SET + ISRP_EVEN); |
ti | 703 | drivers/net/ibmtr.c | } else if (readb(ti->mmio + ACA_OFFSET + ACA_RW + ISRP_EVEN) |
ti | 707 | drivers/net/ibmtr.c | (int)readb(ti->mmio + ACA_OFFSET + ACA_RW + ISRP_EVEN)); |
ti | 709 | drivers/net/ibmtr.c | ti->mmio + ACA_OFFSET + ACA_RESET + ISRP_EVEN); |
ti | 710 | drivers/net/ibmtr.c | writeb(INT_ENABLE, ti->mmio + ACA_OFFSET + ACA_SET + ISRP_EVEN); |
ti | 719 | drivers/net/ibmtr.c | switch(readb(ti->srb)) { /* SRB command check */ |
ti | 724 | drivers/net/ibmtr.c | xmit_ret_code=readb(ti->srb + offsetof(struct srb_xmit, ret_code)); |
ti | 728 | drivers/net/ibmtr.c | if (ti->current_skb) { |
ti | 729 | drivers/net/ibmtr.c | dev_kfree_skb(ti->current_skb, FREE_WRITE); |
ti | 730 | drivers/net/ibmtr.c | ti->current_skb=NULL; |
ti | 740 | drivers/net/ibmtr.c | xmit_ret_code=readb(ti->srb + offsetof(struct srb_xmit, ret_code)); |
ti | 744 | drivers/net/ibmtr.c | if (ti->current_skb) { |
ti | 745 | drivers/net/ibmtr.c | dev_kfree_skb(ti->current_skb, FREE_WRITE); |
ti | 746 | drivers/net/ibmtr.c | ti->current_skb=NULL; |
ti | 757 | drivers/net/ibmtr.c | ti->srb=ti->sram+ntohs(readw(ti->init_srb +offsetof(struct srb_open_response, srb_addr))); |
ti | 758 | drivers/net/ibmtr.c | ti->ssb=ti->sram+ntohs(readw(ti->init_srb +offsetof(struct srb_open_response, ssb_addr))); |
ti | 759 | drivers/net/ibmtr.c | ti->arb=ti->sram+ntohs(readw(ti->init_srb +offsetof(struct srb_open_response, arb_addr))); |
ti | 760 | drivers/net/ibmtr.c | ti->asb=ti->sram+ntohs(readw(ti->init_srb +offsetof(struct srb_open_response, asb_addr))); |
ti | 761 | drivers/net/ibmtr.c | ti->current_skb=NULL; |
ti | 763 | drivers/net/ibmtr.c | open_ret_code = readb(ti->init_srb +offsetof(struct srb_open_response, ret_code)); |
ti | 764 | drivers/net/ibmtr.c | open_error_code = readw(ti->init_srb +offsetof(struct srb_open_response, error_code)); |
ti | 768 | drivers/net/ibmtr.c | if (!ti->auto_ringspeedsave && (open_error_code==0x24)) { |
ti | 771 | drivers/net/ibmtr.c | ti->open_status=FAILURE; |
ti | 772 | drivers/net/ibmtr.c | wake_up(&ti->wait_for_reset); |
ti | 775 | drivers/net/ibmtr.c | else if ((open_error_code==0x2d) && ti->auto_ringspeedsave) |
ti | 787 | drivers/net/ibmtr.c | ti->mmio + ACA_OFFSET + ACA_RESET + ISRP_ODD); |
ti | 789 | drivers/net/ibmtr.c | ti->mmio + ACA_OFFSET + ACA_RESET + ISRA_ODD); |
ti | 798 | drivers/net/ibmtr.c | if (ti->open_status != FAILURE) { |
ti | 809 | drivers/net/ibmtr.c | wake_up(&ti->wait_for_tok_int); |
ti | 813 | drivers/net/ibmtr.c | if (readb(ti->srb+offsetof(struct dlc_open_sap, ret_code))) { |
ti | 815 | drivers/net/ibmtr.c | (int)readb(ti->srb+offsetof(struct dlc_open_sap, ret_code))); |
ti | 821 | drivers/net/ibmtr.c | ti->exsap_station_id= |
ti | 822 | drivers/net/ibmtr.c | readw(ti->srb+offsetof(struct dlc_open_sap, station_id)); |
ti | 823 | drivers/net/ibmtr.c | ti->open_status=SUCCESS; /* TR adapter is now available */ |
ti | 824 | drivers/net/ibmtr.c | wake_up(&ti->wait_for_reset); |
ti | 833 | drivers/net/ibmtr.c | if (readb(ti->srb+offsetof(struct srb_interrupt, ret_code))) |
ti | 835 | drivers/net/ibmtr.c | (int)readb(ti->srb+offsetof(struct srb_interrupt, command)), |
ti | 836 | drivers/net/ibmtr.c | (int)readb(ti->srb+offsetof(struct srb_interrupt, ret_code))); |
ti | 840 | drivers/net/ibmtr.c | if (readb(ti->srb+offsetof(struct srb_read_log, ret_code))) |
ti | 842 | drivers/net/ibmtr.c | (int)readb(ti->srb+offsetof(struct srb_read_log, ret_code))); |
ti | 849 | drivers/net/ibmtr.c | (int)readb(ti->srb+offsetof(struct srb_read_log, |
ti | 851 | drivers/net/ibmtr.c | (int)readb(ti->srb+offsetof(struct srb_read_log, |
ti | 853 | drivers/net/ibmtr.c | (int)readb(ti->srb+offsetof(struct srb_read_log, |
ti | 855 | drivers/net/ibmtr.c | (int)readb(ti->srb+offsetof(struct srb_read_log, A_C_errors)), |
ti | 856 | drivers/net/ibmtr.c | (int)readb(ti->srb+offsetof(struct srb_read_log, |
ti | 858 | drivers/net/ibmtr.c | (int)readb(ti->srb+offsetof(struct srb_read_log, |
ti | 860 | drivers/net/ibmtr.c | (int)readb(ti->srb+offsetof(struct srb_read_log, |
ti | 862 | drivers/net/ibmtr.c | (int)readb(ti->srb+offsetof(struct srb_read_log, |
ti | 864 | drivers/net/ibmtr.c | (int)readb(ti->srb+offsetof(struct srb_read_log, |
ti | 866 | drivers/net/ibmtr.c | (int)readb(ti->srb+offsetof(struct srb_read_log, |
ti | 873 | drivers/net/ibmtr.c | (int)readb(ti->srb)); |
ti | 877 | drivers/net/ibmtr.c | writeb(~CMD_IN_SRB, ti->mmio + ACA_OFFSET + ACA_RESET + ISRA_ODD); |
ti | 878 | drivers/net/ibmtr.c | writeb(~SRB_RESP_INT, ti->mmio + ACA_OFFSET + ACA_RESET + ISRP_ODD); |
ti | 885 | drivers/net/ibmtr.c | switch(readb(ti->asb)) { /* ASB command check */ |
ti | 890 | drivers/net/ibmtr.c | if (readb(ti->asb+2)!=0xff) /* checks ret_code */ |
ti | 892 | drivers/net/ibmtr.c | (int)readb(ti->asb+2), |
ti | 893 | drivers/net/ibmtr.c | (int)readb(ti->asb)); |
ti | 898 | drivers/net/ibmtr.c | (int)readb(ti->asb)); |
ti | 902 | drivers/net/ibmtr.c | writeb(~ASB_FREE_INT, ti->mmio + ACA_OFFSET + ACA_RESET + ISRP_ODD); |
ti | 908 | drivers/net/ibmtr.c | switch (readb(ti->arb)) { /* ARB command check */ |
ti | 912 | drivers/net/ibmtr.c | ntohs(readw(ti->arb + offsetof(struct arb_dlc_status, status))), |
ti | 913 | drivers/net/ibmtr.c | ntohs(readw(ti->arb |
ti | 924 | drivers/net/ibmtr.c | ring_status=ntohs(readw(ti->arb |
ti | 942 | drivers/net/ibmtr.c | writeb(DIR_READ_LOG, ti->srb); |
ti | 944 | drivers/net/ibmtr.c | ti->mmio + ACA_OFFSET + ACA_SET + ISRP_EVEN); |
ti | 946 | drivers/net/ibmtr.c | ti->mmio + ACA_OFFSET + ACA_SET + ISRA_ODD); |
ti | 959 | drivers/net/ibmtr.c | (int)readb(ti->arb)); |
ti | 964 | drivers/net/ibmtr.c | writeb(~ARB_CMD_INT, ti->mmio + ACA_OFFSET + ACA_RESET + ISRP_ODD); |
ti | 965 | drivers/net/ibmtr.c | writeb(ARB_FREE, ti->mmio + ACA_OFFSET + ACA_SET + ISRA_ODD); |
ti | 971 | drivers/net/ibmtr.c | switch (readb(ti->ssb)) { /* SSB command check */ |
ti | 975 | drivers/net/ibmtr.c | if (readb(ti->ssb+2)) /* checks ret_code */ |
ti | 977 | drivers/net/ibmtr.c | (int)readb(ti->ssb+2), (int)readb(ti->ssb+6)); |
ti | 978 | drivers/net/ibmtr.c | else ti->tr_stats.tx_packets++; |
ti | 982 | drivers/net/ibmtr.c | DPRINTK("xmit xid ret_code: %02X\n", (int)readb(ti->ssb+2)); |
ti | 985 | drivers/net/ibmtr.c | DPRINTK("Unknown command %02X in ssb\n", (int)readb(ti->ssb)); |
ti | 989 | drivers/net/ibmtr.c | writeb(~SSB_RESP_INT, ti->mmio + ACA_OFFSET + ACA_RESET + ISRP_ODD); |
ti | 990 | drivers/net/ibmtr.c | writeb(SSB_FREE, ti->mmio + ACA_OFFSET + ACA_SET + ISRA_ODD); |
ti | 997 | drivers/net/ibmtr.c | writeb(INT_ENABLE, ti->mmio + ACA_OFFSET + ACA_SET + ISRP_EVEN); |
ti | 1015 | drivers/net/ibmtr.c | struct tok_info *ti; |
ti | 1017 | drivers/net/ibmtr.c | ti=(struct tok_info *) dev->priv; |
ti | 1019 | drivers/net/ibmtr.c | writeb(~INT_ENABLE, ti->mmio + ACA_OFFSET + ACA_RESET + ISRP_EVEN); |
ti | 1022 | drivers/net/ibmtr.c | if (ti->global_int_enable) outb(0,ti->global_int_enable); |
ti | 1024 | drivers/net/ibmtr.c | ti->do_tok_int=NOT_FIRST; |
ti | 1032 | drivers/net/ibmtr.c | if(!ti->sram) { |
ti | 1033 | drivers/net/ibmtr.c | writeb(ti->sram_base, ti->mmio + ACA_OFFSET + ACA_RW + RRR_EVEN); |
ti | 1034 | drivers/net/ibmtr.c | ti->sram=((__u32)ti->sram_base << 12); |
ti | 1036 | drivers/net/ibmtr.c | ti->init_srb=ti->sram |
ti | 1037 | drivers/net/ibmtr.c | +ntohs((unsigned short)readw(ti->mmio+ ACA_OFFSET + WRBR_EVEN)); |
ti | 1038 | drivers/net/ibmtr.c | SET_PAGE(ntohs((unsigned short)readw(ti->mmio+ACA_OFFSET + WRBR_EVEN))); |
ti | 1043 | drivers/net/ibmtr.c | DPRINTK("init_srb(%p):", ti->init_srb); |
ti | 1044 | drivers/net/ibmtr.c | for (i=0;i<17;i++) printk("%02X ", (int)readb(ti->init_srb+i)); |
ti | 1049 | drivers/net/ibmtr.c | hw_encoded_addr = readw(ti->init_srb |
ti | 1058 | drivers/net/ibmtr.c | encoded_addr=(ti->sram + ntohs(hw_encoded_addr)); |
ti | 1067 | drivers/net/ibmtr.c | ti->auto_ringspeedsave=readb(ti->init_srb |
ti | 1083 | drivers/net/ibmtr.c | struct tok_info *ti; |
ti | 1087 | drivers/net/ibmtr.c | ti=(struct tok_info *) dev->priv; |
ti | 1090 | drivers/net/ibmtr.c | ti->do_tok_int=FIRST_INT; |
ti | 1096 | drivers/net/ibmtr.c | if(ti->page_mask) |
ti | 1097 | drivers/net/ibmtr.c | writeb(SRPR_ENABLE_PAGING, ti->mmio + ACA_OFFSET + ACA_RW + SRPR_EVEN); |
ti | 1100 | drivers/net/ibmtr.c | writeb(~INT_ENABLE, ti->mmio + ACA_OFFSET + ACA_RESET + ISRP_EVEN); |
ti | 1114 | drivers/net/ibmtr.c | ti->open_status=IN_PROGRESS; |
ti | 1115 | drivers/net/ibmtr.c | writeb(INT_ENABLE, ti->mmio + ACA_OFFSET + ACA_SET + ISRP_EVEN); |
ti | 1122 | drivers/net/ibmtr.c | struct tok_info *ti=(struct tok_info *) dev->priv; |
ti | 1124 | drivers/net/ibmtr.c | SET_PAGE(ti->srb); |
ti | 1126 | drivers/net/ibmtr.c | writeb(0, ti->srb+i); |
ti | 1128 | drivers/net/ibmtr.c | writeb(DLC_OPEN_SAP, ti->srb + offsetof(struct dlc_open_sap, command)); |
ti | 1130 | drivers/net/ibmtr.c | ti->srb + offsetof(struct dlc_open_sap, max_i_field)); |
ti | 1132 | drivers/net/ibmtr.c | ti->srb + offsetof(struct dlc_open_sap, sap_options)); |
ti | 1134 | drivers/net/ibmtr.c | ti->srb + offsetof(struct dlc_open_sap, station_count)); |
ti | 1135 | drivers/net/ibmtr.c | writeb(type, ti->srb + offsetof(struct dlc_open_sap, sap_value)); |
ti | 1137 | drivers/net/ibmtr.c | writeb(CMD_IN_SRB, ti->mmio + ACA_OFFSET + ACA_SET + ISRA_ODD); |
ti | 1145 | drivers/net/ibmtr.c | struct tok_info *ti; |
ti | 1148 | drivers/net/ibmtr.c | ti=(struct tok_info *) dev->priv; |
ti | 1154 | drivers/net/ibmtr.c | writeb(~SRB_RESP_INT, ti->mmio + ACA_OFFSET + ACA_RESET + ISRP_ODD); |
ti | 1155 | drivers/net/ibmtr.c | writeb(~CMD_IN_SRB, ti->mmio + ACA_OFFSET + ACA_RESET + ISRA_ODD); |
ti | 1158 | drivers/net/ibmtr.c | writeb(0, ti->init_srb+i); |
ti | 1161 | drivers/net/ibmtr.c | ti->init_srb + offsetof(struct dir_open_adapter, command)); |
ti | 1163 | drivers/net/ibmtr.c | ti->init_srb + offsetof(struct dir_open_adapter, open_options)); |
ti | 1165 | drivers/net/ibmtr.c | ti->init_srb + offsetof(struct dir_open_adapter, num_rcv_buf)); |
ti | 1167 | drivers/net/ibmtr.c | ti->init_srb + offsetof(struct dir_open_adapter, rcv_buf_len)); |
ti | 1169 | drivers/net/ibmtr.c | ti->init_srb + offsetof(struct dir_open_adapter, dhb_length)); |
ti | 1171 | drivers/net/ibmtr.c | ti->init_srb + offsetof(struct dir_open_adapter, num_dhb)); |
ti | 1173 | drivers/net/ibmtr.c | ti->init_srb + offsetof(struct dir_open_adapter, dlc_max_sap)); |
ti | 1175 | drivers/net/ibmtr.c | ti->init_srb + offsetof(struct dir_open_adapter, dlc_max_sta)); |
ti | 1177 | drivers/net/ibmtr.c | ti->srb=ti->init_srb; /* We use this one in the interrupt handler */ |
ti | 1179 | drivers/net/ibmtr.c | writeb(INT_ENABLE, ti->mmio + ACA_OFFSET + ACA_SET + ISRP_EVEN); |
ti | 1180 | drivers/net/ibmtr.c | writeb(CMD_IN_SRB, ti->mmio + ACA_OFFSET + ACA_SET + ISRA_ODD); |
ti | 1186 | drivers/net/ibmtr.c | struct tok_info *ti=(struct tok_info *) dev->priv; |
ti | 1187 | drivers/net/ibmtr.c | struct trh_hdr *trhdr=(struct trh_hdr *)ti->current_skb->data; |
ti | 1194 | drivers/net/ibmtr.c | if (readb(ti->asb + offsetof(struct asb_xmit_resp, ret_code))!=0xFF) |
ti | 1202 | drivers/net/ibmtr.c | dhb=ti->sram |
ti | 1203 | drivers/net/ibmtr.c | +ntohs(readw(ti->arb + offsetof(struct arb_xmit_req, dhb_address))); |
ti | 1204 | drivers/net/ibmtr.c | llc = (struct trllc *) &(ti->current_skb->data[sizeof(struct trh_hdr)]); |
ti | 1206 | drivers/net/ibmtr.c | xmit_command = readb(ti->srb + offsetof(struct srb_xmit, command)); |
ti | 1208 | drivers/net/ibmtr.c | writeb(xmit_command, ti->asb + offsetof(struct asb_xmit_resp, command)); |
ti | 1209 | drivers/net/ibmtr.c | writew(readb(ti->srb + offsetof(struct srb_xmit, station_id)), |
ti | 1210 | drivers/net/ibmtr.c | ti->asb + offsetof(struct asb_xmit_resp, station_id)); |
ti | 1211 | drivers/net/ibmtr.c | writeb(llc->ssap, ti->asb + offsetof(struct asb_xmit_resp, rsap_value)); |
ti | 1212 | drivers/net/ibmtr.c | writeb(readb(ti->srb + offsetof(struct srb_xmit, cmd_corr)), |
ti | 1213 | drivers/net/ibmtr.c | ti->asb + offsetof(struct asb_xmit_resp, cmd_corr)); |
ti | 1214 | drivers/net/ibmtr.c | writeb(0, ti->asb + offsetof(struct asb_xmit_resp, ret_code)); |
ti | 1219 | drivers/net/ibmtr.c | ti->asb + offsetof(struct asb_xmit_resp, frame_length)); |
ti | 1220 | drivers/net/ibmtr.c | writeb(0x0e, ti->asb + offsetof(struct asb_xmit_resp, hdr_length)); |
ti | 1227 | drivers/net/ibmtr.c | writeb(RESP_IN_ASB, ti->mmio + ACA_OFFSET + ACA_SET + ISRA_ODD); |
ti | 1248 | drivers/net/ibmtr.c | ti->current_skb->len-18); |
ti | 1256 | drivers/net/ibmtr.c | writeb(*(unsigned char *)(ti->current_skb->data +i), dhb++); |
ti | 1258 | drivers/net/ibmtr.c | writeb(hdr_len, ti->asb + offsetof(struct asb_xmit_resp, hdr_length)); |
ti | 1259 | drivers/net/ibmtr.c | writew(htons(ti->current_skb->len-sizeof(struct trh_hdr)+hdr_len), |
ti | 1260 | drivers/net/ibmtr.c | ti->asb + offsetof(struct asb_xmit_resp, frame_length)); |
ti | 1263 | drivers/net/ibmtr.c | for (i=0; i<ti->current_skb->len-sizeof(struct trh_hdr); i++) |
ti | 1264 | drivers/net/ibmtr.c | writeb(*(unsigned char *)(ti->current_skb->data +sizeof(struct trh_hdr)+i), |
ti | 1267 | drivers/net/ibmtr.c | writeb(RESP_IN_ASB, ti->mmio + ACA_OFFSET + ACA_SET + ISRA_ODD); |
ti | 1269 | drivers/net/ibmtr.c | dev_kfree_skb(ti->current_skb,FREE_WRITE); |
ti | 1270 | drivers/net/ibmtr.c | ti->current_skb=NULL; |
ti | 1277 | drivers/net/ibmtr.c | struct tok_info *ti=(struct tok_info *) dev->priv; |
ti | 1287 | drivers/net/ibmtr.c | rbuffer=(ti->sram |
ti | 1288 | drivers/net/ibmtr.c | +ntohs(readw(ti->arb + offsetof(struct arb_rec_req, rec_buf_addr)))); |
ti | 1290 | drivers/net/ibmtr.c | if(readb(ti->asb + offsetof(struct asb_rec, ret_code))!=0xFF) |
ti | 1294 | drivers/net/ibmtr.c | ti->asb + offsetof(struct asb_rec, command)); |
ti | 1295 | drivers/net/ibmtr.c | writew(readw(ti->arb + offsetof(struct arb_rec_req, station_id)), |
ti | 1296 | drivers/net/ibmtr.c | ti->asb + offsetof(struct asb_rec, station_id)); |
ti | 1297 | drivers/net/ibmtr.c | writew(readw(ti->arb + offsetof(struct arb_rec_req, rec_buf_addr)), |
ti | 1298 | drivers/net/ibmtr.c | ti->asb + offsetof(struct asb_rec, rec_buf_addr)); |
ti | 1300 | drivers/net/ibmtr.c | lan_hdr_len=readb(ti->arb + offsetof(struct arb_rec_req, lan_hdr_len)); |
ti | 1308 | drivers/net/ibmtr.c | ntohs(readw(ti->arb + offsetof(struct arb_rec_req, rec_buf_addr))), |
ti | 1309 | drivers/net/ibmtr.c | ti->sram); |
ti | 1325 | drivers/net/ibmtr.c | writeb(DATA_LOST, ti->asb + offsetof(struct asb_rec, ret_code)); |
ti | 1326 | drivers/net/ibmtr.c | ti->tr_stats.rx_dropped++; |
ti | 1327 | drivers/net/ibmtr.c | writeb(RESP_IN_ASB, ti->mmio + ACA_OFFSET + ACA_SET + ISRA_ODD); |
ti | 1364 | drivers/net/ibmtr.c | arb_frame_len=ntohs(readw(ti->arb+offsetof(struct arb_rec_req, frame_len))); |
ti | 1372 | drivers/net/ibmtr.c | ti->tr_stats.rx_dropped++; |
ti | 1373 | drivers/net/ibmtr.c | writeb(DATA_LOST, ti->asb + offsetof(struct asb_rec, ret_code)); |
ti | 1374 | drivers/net/ibmtr.c | writeb(RESP_IN_ASB, ti->mmio + ACA_OFFSET + ACA_SET + ISRA_ODD); |
ti | 1407 | drivers/net/ibmtr.c | rbuffer=(ti->sram |
ti | 1420 | drivers/net/ibmtr.c | writeb(0, ti->asb + offsetof(struct asb_rec, ret_code)); |
ti | 1422 | drivers/net/ibmtr.c | writeb(RESP_IN_ASB, ti->mmio + ACA_OFFSET + ACA_SET + ISRA_ODD); |
ti | 1424 | drivers/net/ibmtr.c | ti->tr_stats.rx_packets++; |
ti | 1433 | drivers/net/ibmtr.c | struct tok_info *ti; |
ti | 1434 | drivers/net/ibmtr.c | ti=(struct tok_info *) dev->priv; |
ti | 1462 | drivers/net/ibmtr.c | ti->current_skb=skb; |
ti | 1463 | drivers/net/ibmtr.c | writeb(XMIT_UI_FRAME, ti->srb + offsetof(struct srb_xmit, command)); |
ti | 1464 | drivers/net/ibmtr.c | writew(ti->exsap_station_id, ti->srb |
ti | 1466 | 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 | 181 | drivers/scsi/sr_ioctl.c | struct cdrom_ti ti; |
ti | 183 | drivers/scsi/sr_ioctl.c | err = verify_area (VERIFY_READ, (void *) arg, sizeof (ti)); |
ti | 186 | drivers/scsi/sr_ioctl.c | memcpy_fromfs(&ti, (void *) arg, sizeof(ti)); |
ti | 192 | drivers/scsi/sr_ioctl.c | sr_cmd[4] = ti.cdti_trk0; |
ti | 193 | drivers/scsi/sr_ioctl.c | sr_cmd[5] = ti.cdti_ind0; |
ti | 195 | drivers/scsi/sr_ioctl.c | sr_cmd[7] = ti.cdti_trk1; |
ti | 196 | drivers/scsi/sr_ioctl.c | sr_cmd[8] = ti.cdti_ind1; |