Lines Matching refs:njet
35 cs->hw.njet.auxd &= 0xfc; in NETjet_ReadIC()
36 cs->hw.njet.auxd |= (offset >> 4) & 3; in NETjet_ReadIC()
37 byteout(cs->hw.njet.auxa, cs->hw.njet.auxd); in NETjet_ReadIC()
38 ret = bytein(cs->hw.njet.isac + ((offset & 0xf) << 2)); in NETjet_ReadIC()
45 cs->hw.njet.auxd &= 0xfc; in NETjet_WriteIC()
46 cs->hw.njet.auxd |= (offset >> 4) & 3; in NETjet_WriteIC()
47 byteout(cs->hw.njet.auxa, cs->hw.njet.auxd); in NETjet_WriteIC()
48 byteout(cs->hw.njet.isac + ((offset & 0xf) << 2), value); in NETjet_WriteIC()
54 cs->hw.njet.auxd &= 0xfc; in NETjet_ReadICfifo()
55 byteout(cs->hw.njet.auxa, cs->hw.njet.auxd); in NETjet_ReadICfifo()
56 insb(cs->hw.njet.isac, data, size); in NETjet_ReadICfifo()
62 cs->hw.njet.auxd &= 0xfc; in NETjet_WriteICfifo()
63 byteout(cs->hw.njet.auxa, cs->hw.njet.auxd); in NETjet_WriteICfifo()
64 outsb(cs->hw.njet.isac, data, size); in NETjet_WriteICfifo()
107 cs->hw.njet.dmactrl = 0; in mode_tiger()
108 byteout(cs->hw.njet.base + NETJET_DMACTRL, in mode_tiger()
109 cs->hw.njet.dmactrl); in mode_tiger()
110 byteout(cs->hw.njet.base + NETJET_IRQMASK0, 0); in mode_tiger()
118 cs->hw.njet.auxd &= led; in mode_tiger()
119 byteout(cs->hw.njet.auxa, cs->hw.njet.auxd); in mode_tiger()
134 if (!cs->hw.njet.dmactrl) { in mode_tiger()
137 cs->hw.njet.dmactrl = 1; in mode_tiger()
138 byteout(cs->hw.njet.base + NETJET_DMACTRL, in mode_tiger()
139 cs->hw.njet.dmactrl); in mode_tiger()
140 byteout(cs->hw.njet.base + NETJET_IRQMASK0, 0x0f); in mode_tiger()
151 cs->hw.njet.auxd |= led; in mode_tiger()
152 byteout(cs->hw.njet.auxa, cs->hw.njet.auxd); in mode_tiger()
158 bytein(cs->hw.njet.base + NETJET_DMACTRL), in mode_tiger()
159 bytein(cs->hw.njet.base + NETJET_IRQMASK0), in mode_tiger()
160 bytein(cs->hw.njet.base + NETJET_IRQSTAT0), in mode_tiger()
161 inl(cs->hw.njet.base + NETJET_DMA_READ_ADR), in mode_tiger()
162 inl(cs->hw.njet.base + NETJET_DMA_WRITE_ADR), in mode_tiger()
163 bytein(cs->hw.njet.base + NETJET_PULSE_CNT)); in mode_tiger()
492 bcs->cs->hw.njet.irqstat0); in read_raw()
520 i, j, bcs->hw.tiger.r_fcs, bcs->cs->hw.njet.irqstat0); in read_raw()
579 if ((cs->hw.njet.irqstat0 & cs->hw.njet.last_is0) & NETJET_IRQM0_READ) { in read_tiger()
581 cs->hw.njet.irqstat0, cs->hw.njet.last_is0); in read_tiger()
590 cs->hw.njet.last_is0 &= ~NETJET_IRQM0_READ; in read_tiger()
591 cs->hw.njet.last_is0 |= (cs->hw.njet.irqstat0 & NETJET_IRQM0_READ); in read_tiger()
593 if (cs->hw.njet.irqstat0 & NETJET_IRQM0_READ_1) in read_tiger()
602 cs->hw.njet.irqstat0 &= ~NETJET_IRQM0_READ; in read_tiger()
633 p = bus_to_virt(inl(bcs->cs->hw.njet.base + NETJET_DMA_READ_ADR)); in netjet_fill_dma()
654 p = bus_to_virt(inl(bcs->cs->hw.njet.base + NETJET_DMA_READ_ADR)); in netjet_fill_dma()
704 bcs->hw.tiger.sendcnt, bcs->cs->hw.njet.irqstat0); in write_raw()
767 if ((cs->hw.njet.irqstat0 & cs->hw.njet.last_is0) & NETJET_IRQM0_WRITE) { in write_tiger()
769 cs->hw.njet.irqstat0, cs->hw.njet.last_is0); in write_tiger()
778 cs->hw.njet.last_is0 &= ~NETJET_IRQM0_WRITE; in write_tiger()
779 cs->hw.njet.last_is0 |= (cs->hw.njet.irqstat0 & NETJET_IRQM0_WRITE); in write_tiger()
781 if (cs->hw.njet.irqstat0 & NETJET_IRQM0_WRITE_1) in write_tiger()
789 cs->hw.njet.irqstat0 &= ~NETJET_IRQM0_WRITE; in write_tiger()
933 cs->hw.njet.base + NETJET_DMA_READ_START); in inittiger()
935 cs->hw.njet.base + NETJET_DMA_READ_IRQ); in inittiger()
937 cs->hw.njet.base + NETJET_DMA_READ_END); in inittiger()
951 cs->hw.njet.base + NETJET_DMA_WRITE_START); in inittiger()
953 cs->hw.njet.base + NETJET_DMA_WRITE_IRQ); in inittiger()
955 cs->hw.njet.base + NETJET_DMA_WRITE_END); in inittiger()
957 inl(cs->hw.njet.base + NETJET_DMA_WRITE_ADR), in inittiger()
958 inl(cs->hw.njet.base + NETJET_DMA_READ_ADR), in inittiger()
959 bytein(cs->hw.njet.base + NETJET_PULSE_CNT)); in inittiger()
960 cs->hw.njet.last_is0 = 0; in inittiger()
981 byteout(cs->hw.njet.base + NETJET_IRQMASK0, 0); in release_io_netjet()
982 byteout(cs->hw.njet.base + NETJET_IRQMASK1, 0); in release_io_netjet()
984 release_region(cs->hw.njet.base, 256); in release_io_netjet()