Lines Matching refs:np

129 	struct device_node *np = pdev->dev.of_node;  in stmmac_probe_config_dt()  local
133 if (!np) in stmmac_probe_config_dt()
157 *mac = of_get_mac_address(np); in stmmac_probe_config_dt()
158 plat->interface = of_get_phy_mode(np); in stmmac_probe_config_dt()
161 if (of_property_read_u32(np, "max-speed", &plat->max_speed)) in stmmac_probe_config_dt()
164 plat->bus_id = of_alias_get_id(np, "ethernet"); in stmmac_probe_config_dt()
174 if (of_property_read_u32(np, "snps,phy-addr", &plat->phy_addr) == 0) in stmmac_probe_config_dt()
185 of_property_read_u32(np, "tx-fifo-depth", &plat->tx_fifo_size); in stmmac_probe_config_dt()
187 of_property_read_u32(np, "rx-fifo-depth", &plat->rx_fifo_size); in stmmac_probe_config_dt()
190 of_property_read_bool(np, "snps,force_sf_dma_mode"); in stmmac_probe_config_dt()
202 if (of_device_is_compatible(np, "st,spear600-gmac") || in stmmac_probe_config_dt()
203 of_device_is_compatible(np, "snps,dwmac-3.70a") || in stmmac_probe_config_dt()
204 of_device_is_compatible(np, "snps,dwmac")) { in stmmac_probe_config_dt()
212 of_property_read_u32(np, "max-frame-size", &plat->maxmtu); in stmmac_probe_config_dt()
213 of_property_read_u32(np, "snps,multicast-filter-bins", in stmmac_probe_config_dt()
215 of_property_read_u32(np, "snps,perfect-filter-entries", in stmmac_probe_config_dt()
225 if (of_device_is_compatible(np, "snps,dwmac-3.610") || in stmmac_probe_config_dt()
226 of_device_is_compatible(np, "snps,dwmac-3.710")) { in stmmac_probe_config_dt()
232 if (of_find_property(np, "snps,pbl", NULL)) { in stmmac_probe_config_dt()
238 of_property_read_u32(np, "snps,pbl", &dma_cfg->pbl); in stmmac_probe_config_dt()
240 of_property_read_bool(np, "snps,fixed-burst"); in stmmac_probe_config_dt()
242 of_property_read_bool(np, "snps,mixed-burst"); in stmmac_probe_config_dt()
243 of_property_read_u32(np, "snps,burst_len", &dma_cfg->burst_len); in stmmac_probe_config_dt()
247 plat->force_thresh_dma_mode = of_property_read_bool(np, "snps,force_thresh_dma_mode"); in stmmac_probe_config_dt()