Lines Matching +full:0 +full:x50020000

73 #define mk_mii_read(REG)	(0x60020000 | ((REG & 0x1f) << 18))
74 #define mk_mii_write(REG, VAL) (0x50020000 | ((REG & 0x1f) << 18) | (VAL & 0xffff))
75 #define mk_mii_end 0
92 fep->interrupt = irq_of_parse_and_map(ofdev->dev.of_node, 0); in do_pd_setup()
96 fep->fcc.fccp = of_iomap(ofdev->dev.of_node, 0); in do_pd_setup()
115 return 0; in do_pd_setup()
135 if (do_pd_setup(fep) != 0) in setup_data()
142 return 0; in setup_data()
157 return 0; in allocate_bd()
189 W32(ep, fen_gaddrh, 0); in set_multicast_start()
190 W32(ep, fen_gaddrl, 0); in set_multicast_start()
201 taddrl = ((u16)mac[1] << 8) | mac[0]; in set_multicast_one()
219 if ((dev->flags & IFF_ALLMULTI) != 0 || in set_multicast_finish()
222 W32(ep, fen_gaddrh, 0xffffffff); in set_multicast_finish()
223 W32(ep, fen_gaddrl, 0xffffffff); in set_multicast_finish()
235 if ((dev->flags & IFF_PROMISC) == 0) { in set_multicast_list()
259 for (i = 0; i < sizeof(*ep); i++) in restart()
260 out_8((u8 __iomem *)ep + i, 0); in restart()
290 memset_io(fep->fcc.mem + fpi->dpram_offset + 64, 0x88, 32); in restart()
292 W32(ep, fen_genfcc.fcc_rbptr, 0); in restart()
293 W32(ep, fen_genfcc.fcc_tbptr, 0); in restart()
294 W32(ep, fen_genfcc.fcc_rcrc, 0); in restart()
295 W32(ep, fen_genfcc.fcc_tcrc, 0); in restart()
296 W16(ep, fen_genfcc.fcc_res1, 0); in restart()
297 W32(ep, fen_genfcc.fcc_res2, 0); in restart()
300 W32(ep, fen_camptr, 0); in restart()
303 W32(ep, fen_cmask, 0xdebb20e3); in restart()
304 W32(ep, fen_cpres, 0xffffffff); in restart()
306 W32(ep, fen_crcec, 0); /* CRC Error counter */ in restart()
307 W32(ep, fen_alec, 0); /* alignment error counter */ in restart()
308 W32(ep, fen_disfc, 0); /* discard frame counter */ in restart()
310 W16(ep, fen_pper, 0); /* Normal persistence */ in restart()
317 W32(ep, fen_iaddrh, 0); in restart()
318 W32(ep, fen_iaddrl, 0); in restart()
321 W16(ep, fen_tfcstat, 0); in restart()
322 W16(ep, fen_tfclen, 0); in restart()
323 W32(ep, fen_tfcptr, 0); in restart()
332 paddrl = ((u16)mac[1] << 8) | mac[0]; in restart()
338 W16(ep, fen_taddrh, 0); in restart()
339 W16(ep, fen_taddrm, 0); in restart()
340 W16(ep, fen_taddrl, 0); in restart()
346 W32(ep, fen_octc, 0); in restart()
347 W32(ep, fen_colc, 0); in restart()
348 W32(ep, fen_broc, 0); in restart()
349 W32(ep, fen_mulc, 0); in restart()
350 W32(ep, fen_uspc, 0); in restart()
351 W32(ep, fen_frgc, 0); in restart()
352 W32(ep, fen_ospc, 0); in restart()
353 W32(ep, fen_jbrc, 0); in restart()
354 W32(ep, fen_p64c, 0); in restart()
355 W32(ep, fen_p65c, 0); in restart()
356 W32(ep, fen_p128c, 0); in restart()
357 W32(ep, fen_p256c, 0); in restart()
358 W32(ep, fen_p512c, 0); in restart()
359 W32(ep, fen_p1024c, 0); in restart()
361 W16(ep, fen_rfthr, 0); /* Suggested by manual */ in restart()
362 W16(ep, fen_rfcnt, 0); in restart()
363 W16(ep, fen_cftype, 0); in restart()
370 C8(fcccp, fcc_gfemr, 0x20); in restart()
372 S8(fcccp, fcc_gfemr, 0x20); in restart()
378 W16(fccp, fcc_fcce, 0xffff); in restart()
387 W16(fccp, fcc_fdsr, 0xd555); in restart()
415 W16(fccp, fcc_fcce, 0xffff); in stop()
418 W16(fccp, fcc_fccm, 0); in stop()
457 S16(fccp, fcc_ftodr, 0x8000); in tx_kickstart()
473 W16(fccp, fcc_fcce, int_events & 0xffff); in clear_int_events()
480 dev_warn(fep->dev, "FS_ENET ERROR(s) 0x%x\n", int_events); in ev_error()
497 return 0; in get_regs()
538 while ((CBDR_SC(prev_bd) & BD_ENET_TX_READY) != 0) { in tx_restart()