Lines Matching defs:config
554 uint32_t config;
572 config = read_4(sc, EMAC_NCFGR) | (sc->clock << 10); /*set clock*/
573 config |= CFG_PAE; /* PAuse Enable */
574 config |= CFG_DRFCS; /* Discard Rx FCS */
575 config |= CFG_SPD; /* 100 mbps*/
576 //config |= CFG_CAF;
577 config |= CFG_FD;
579 config |= CFG_RBOF_2; /*offset +2*/
581 write_4(sc, EMAC_NCFGR, config);
1109 int config;
1115 config = read_4(sc, EMAC_NCFGR);
1117 config &= ~(CFG_CAF | CFG_MTI);
1125 config |= CFG_MTI;
1128 config |= CFG_CAF;
1130 write_4(sc, EMAC_NCFGR, config);
1149 write_4(sc, EMAC_NCFGR, config|CFG_MTI);
1325 * there's no good way to do this. So, if the config file
1558 int config;
1566 config = read_4(sc, EMAC_NCFGR);
1571 config &= ~(CFG_SPD);
1575 config |= CFG_SPD;
1583 config |= CFG_FD;
1584 write_4(sc, EMAC_NCFGR, config);