Lines Matching full:np
18 struct device_node *np = dev->dev->of_node; in mt76_get_of_eeprom_data() local
22 data = of_get_property(np, "mediatek,eeprom-data", &size); in mt76_get_of_eeprom_data()
38 struct device_node *np = dev->dev->of_node; in mt76_get_of_epprom_from_mtd() local
47 list = of_get_property(np, "mediatek,mtd-eeprom", &size); in mt76_get_of_epprom_from_mtd()
55 np = of_find_node_by_phandle(phandle); in mt76_get_of_epprom_from_mtd()
56 if (!np) in mt76_get_of_epprom_from_mtd()
59 part = of_get_property(np, "label", NULL); in mt76_get_of_epprom_from_mtd()
61 part = np->name; in mt76_get_of_epprom_from_mtd()
106 of_node_put(np); in mt76_get_of_epprom_from_mtd()
114 struct device_node *np = dev->dev->of_node; in mt76_get_of_epprom_from_nvmem() local
120 cell = of_nvmem_cell_get(np, "eeprom"); in mt76_get_of_epprom_from_nvmem()
147 struct device_node *np = dev->dev->of_node; in mt76_get_of_eeprom() local
150 if (!np) in mt76_get_of_eeprom()
173 struct device_node *np = dev->dev->of_node; in mt76_eeprom_override() local
175 of_get_mac_address(np, phy->macaddr); in mt76_eeprom_override()
207 struct device_node *np = dev->dev->of_node; in mt76_find_power_limits_node() local
220 np = of_get_child_by_name(np, "power-limits"); in mt76_find_power_limits_node()
221 if (!np) in mt76_find_power_limits_node()
224 for_each_child_of_node(np, cur) { in mt76_find_power_limits_node()
235 of_node_put(np); in mt76_find_power_limits_node()
240 of_node_put(np); in mt76_find_power_limits_node()
245 mt76_get_of_array(struct device_node *np, char *name, size_t *len, int min) in mt76_get_of_array() argument
247 struct property *prop = of_find_property(np, name, NULL); in mt76_get_of_array()
258 mt76_find_channel_node(struct device_node *np, struct ieee80211_channel *chan) in mt76_find_channel_node() argument
264 for_each_child_of_node(np, cur) { in mt76_find_channel_node()
283 mt76_get_txs_delta(struct device_node *np, u8 nss) in mt76_get_txs_delta() argument
288 val = mt76_get_of_array(np, "txs-delta", &len, nss); in mt76_get_txs_delta()
349 struct device_node *np; in mt76_get_rate_power_limits() local
373 np = mt76_find_power_limits_node(dev); in mt76_get_rate_power_limits()
374 if (!np) in mt76_get_rate_power_limits()
392 np = of_get_child_by_name(np, name); in mt76_get_rate_power_limits()
393 if (!np) in mt76_get_rate_power_limits()
396 np = mt76_find_channel_node(np, chan); in mt76_get_rate_power_limits()
397 if (!np) in mt76_get_rate_power_limits()
400 txs_delta = mt76_get_txs_delta(np, hweight8(phy->antenna_mask)); in mt76_get_rate_power_limits()
402 val = mt76_get_of_array(np, "rates-cck", &len, ARRAY_SIZE(dest->cck)); in mt76_get_rate_power_limits()
406 val = mt76_get_of_array(np, "rates-ofdm", in mt76_get_rate_power_limits()
411 val = mt76_get_of_array(np, "rates-mcs", &len, mcs_rates + 1); in mt76_get_rate_power_limits()
416 val = mt76_get_of_array(np, "rates-ru", &len, ru_rates + 1); in mt76_get_rate_power_limits()