Lines Matching +full:csr +full:- +full:2 +full:l

12 # 2. Redistributions in binary form must reproduce the above copyright
38 waits 2 seconds and then iterates over the receive ring for
117 dev = 'pci0:2:1:0'
125 device = bus.read_2(pcicfg, 2)
127 logging.error('Not an AMD PCnet-PCI (vendor=%x, device=%x)' %
153 y = (1 + (x ^ (x-1))) >> 1
162 def mac_is(l, r): argument
164 if l[i] != r[i]:
170 return MACFMT % (m[0], m[1], m[2], m[3], m[4], m[5])
211 wrbcr(20, 2) # reset
213 wrbcr(2, rdbcr(2) | 2) # Autoneg
238 ib.mode = ((ffs(ntxbufs) - 1) << 28) | ((ffs(nrxbufs) - 1) << 20)
243 ib.rxdesc = busaddr + (addr_rxdesc - cpuaddr)
244 ib.txdesc = busaddr + (addr_txdesc - cpuaddr)
250 bd.buffer = busaddr + (addr_rxbufs - cpuaddr) + bufsize * i
251 bd.flags = (1 << 31) | (15 << 12) | (-bufsize & 0xfff)
257 bd.buffer = busaddr + (addr_txbufs - cpuaddr) + bufsize * i
262 busdma.sync_range(dmamem, busdma.SYNC_PREWRITE, 0, addr_rxbufs - cpuaddr)
266 wrcsr(2, busaddr >> 16)
272 csr = rdcsr(0) variable
273 while (csr & 0x100) == 0:
274 logging.debug('CSR=%#x' % (csr))
275 csr = rdcsr(0) variable
290 pkt.udp_len = ctypes.sizeof(pkt) - 34
297 pkt.ip_len = ctypes.sizeof(pkt) - 14
305 busdma.sync_range(dmamem, busdma.SYNC_PREWRITE, addr_txbufs - cpuaddr, bufsize)
309 bd.flags = (1 << 31) | (1 << 25) | (1 << 24) | (0xf << 12) | (-pktlen & 0xfff)
311 busdma.sync_range(dmamem, busdma.SYNC_PREWRITE, addr_txdesc - cpuaddr,
318 # Now wait 2 seconds for a DHCP offer to be received.
319 logging.debug('Waiting 2 seconds for an offer to be received')
320 time.sleep(2)
324 busdma.sync_range(dmamem, busdma.SYNC_PREWRITE, addr_rxdesc - cpuaddr,