Lines Matching +full:dma +full:- +full:info
56 from bus import dma as busdma
127 logging.error('Not an AMD PCnet-PCI (vendor=%x, device=%x)' %
133 logging.info('enabling I/O port decoding')
138 logging.info('enabling bus mastering')
153 y = (1 + (x ^ (x-1))) >> 1
208 logging.info('ethernet address = ' + MACFMT % mac)
219 logging.debug("DMA memory: size = %#x (TX buffers: %u, RX buffers: %u)" %
228 logging.debug("DMA memory: CPU address: %#x, device address: %#x" %
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)
264 # Program address of DMA memory
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,
316 logging.info('DHCP discovery packet sent')
324 busdma.sync_range(dmamem, busdma.SYNC_PREWRITE, addr_rxdesc - cpuaddr,
339 logging.info('Our IP address = %s' % (ip_str(pkt.ip_dest)))