Searched refs:np (Results 251 - 275 of 795) sorted by relevance

<<11121314151617181920>>

/drivers/pinctrl/spear/
H A Dpinctrl-spear.c152 struct device_node *np; local
158 for_each_child_of_node(np_config, np) {
159 ret = of_property_read_string(np, "st,function", &function);
163 ret = of_property_count_strings(np, "st,pins");
179 for_each_child_of_node(np_config, np) {
180 of_property_read_string(np, "st,function", &function);
181 of_property_for_each_string(np, "st,pins", prop, group) {
356 struct device_node *np = pdev->dev.of_node; local
381 if (of_property_read_u32(np, "st,pinmux-mode", &mode)) {
/drivers/power/
H A Dmax8925_power.c435 struct device_node *np; local
446 np = of_get_child_by_name(nproot, "charger");
447 if (!np) {
458 of_property_read_u32(np, "topoff-threshold", &topoff_threshold);
459 of_property_read_u32(np, "batt-detect", &batt_detect);
460 of_property_read_u32(np, "fast-charge", &fast_charge);
461 of_property_read_u32(np, "no-insert-detect", &no_insert_detect);
462 of_property_read_u32(np, "no-temp-support", &no_temp_support);
471 of_node_put(np);
/drivers/spi/
H A Dspi-gpio.c240 struct device_node *np = spi->master->dev.of_node; local
242 if (np) {
354 struct device_node *np = pdev->dev.of_node; local
365 ret = of_get_named_gpio(np, "gpio-sck", 0);
372 ret = of_get_named_gpio(np, "gpio-miso", 0);
379 ret = of_get_named_gpio(np, "gpio-mosi", 0);
386 ret = of_property_read_u32(np, "num-chipselects", &tmp);
457 struct device_node *np = pdev->dev.of_node; local
466 of_get_named_gpio(np, "cs-gpios", i);
H A Dspi-fsl-lib.c191 struct device_node *np = ofdev->dev.of_node; local
216 ret = of_property_read_u32(np, "clock-frequency", &pdata->sysclk);
221 prop = of_get_property(np, "mode", NULL);
226 else if (of_device_is_compatible(np, "fsl,cpm2-spi"))
228 else if (of_device_is_compatible(np, "fsl,cpm1-spi"))
/drivers/clocksource/
H A Dmxs_timer.c245 static void __init mxs_timer_init(struct device_node *np) argument
250 mxs_timrot_base = of_iomap(np, 0);
253 timer_clk = of_clk_get(np, 0);
268 (of_device_is_compatible(np, "fsl,imx23-timrot") ?
301 irq = irq_of_parse_and_map(np, 0);
/drivers/gpu/drm/tegra/
H A Drgb.c220 struct device_node *np; local
224 np = of_get_child_by_name(dc->dev->of_node, "rgb");
225 if (!np || !of_device_is_available(np))
233 rgb->output.of_node = np;
/drivers/i2c/muxes/
H A Di2c-mux-pinctrl.c58 struct device_node *np = pdev->dev.of_node; local
63 if (!np)
73 num_names = of_property_count_strings(np, "pinctrl-names");
89 ret = of_property_read_string_index(np, "pinctrl-names", i,
108 adapter_np = of_parse_phandle(np, "i2c-parent", 0);
/drivers/input/misc/
H A Dpalmas-pwrbutton.c115 struct device_node *np; local
126 np = dev->of_node;
127 if (!np)
130 error = of_property_read_u32(np, "ti,palmas-long-press-seconds", &val);
140 error = of_property_read_u32(np,
/drivers/irqchip/
H A Dirq-clps711x.c158 static int __init _clps711x_intc_init(struct device_node *np, argument
192 irq_domain_add_legacy(np, ARRAY_SIZE(clps711x_irqs),
226 static int __init clps711x_intc_init_dt(struct device_node *np, argument
232 err = of_address_to_resource(np, 0, &res);
236 return _clps711x_intc_init(np, res.start, resource_size(&res));
H A Dirq-keystone.c142 struct device_node *np = dev->of_node; local
146 if (np == NULL)
154 syscon_regmap_lookup_by_phandle(np, "ti,syscon-dev");
158 ret = of_property_read_u32_index(np, "ti,syscon-dev", 1,
178 kirq->irqd = irq_domain_add_linear(np, KEYSTONE_N_IRQ,
H A Dirq-vt8500.c209 struct device_node *np = node; local
217 intc[active_cnt].base = of_iomap(np, 0);
240 if (of_irq_count(np) != 0) {
242 if (of_irq_count(np) != 8) {
249 irq = irq_of_parse_and_map(np, i);
/drivers/net/ethernet/stmicro/stmmac/
H A Dstmmac_mdio.c144 struct device_node *np = priv->device->of_node; local
145 if (!np)
148 data->reset_gpio = of_get_named_gpio(np,
153 data->active_low = of_property_read_bool(np,
155 of_property_read_u32_array(np,
/drivers/pci/hotplug/
H A Drpadlpar_core.c66 struct device_node *np = NULL; local
71 while ((np = of_find_node_by_name(np, "pci"))) {
72 rc = rpaphp_get_drc_props(np, NULL, &name, &type, NULL);
78 return np;
/drivers/regulator/
H A Darizona-micsupp.c205 struct device_node *np; local
208 np = of_get_child_by_name(arizona->dev->of_node, "micvdd");
210 if (np) {
211 config->of_node = np;
213 init_data = of_get_regulator_init_data(arizona->dev, np);
/drivers/target/iscsi/
H A Discsi_target_nego.c476 struct iscsi_np *np = login->np; local
481 iscsi_target_login_sess_out(conn, np, zero_tsih, true);
502 struct iscsi_np *np = login->np; local
520 iscsit_deaccess_np(np, tpg, tpg_np);
535 iscsit_deaccess_np(np, tpg, tpg_np);
558 iscsit_deaccess_np(np, tpg, tpg_np);
569 iscsit_deaccess_np(np, tpg, tpg_np);
580 iscsi_post_login_handler(np, con
591 struct iscsi_np *np = login->np; local
979 iscsi_target_locate_portal( struct iscsi_np *np, struct iscsi_conn *conn, struct iscsi_login *login) argument
[all...]
/drivers/thermal/
H A Dcpu_cooling.c424 * @np: a valid struct device_node to the cooling device device tree node
436 __cpufreq_cooling_register(struct device_node *np, argument
476 cool_dev = thermal_of_cooling_device_register(np, dev_name, cpufreq_dev,
519 * @np: a valid struct device_node to the cooling device device tree node
531 of_cpufreq_cooling_register(struct device_node *np, argument
534 if (!np)
537 return __cpufreq_cooling_register(np, clip_cpus);
/drivers/video/backlight/
H A D88pm860x_bl.c168 struct device_node *nproot, *np; local
179 for_each_child_of_node(nproot, np) {
180 if (!of_node_cmp(np->name, name)) {
181 of_property_read_u32(np, "marvell,88pm860x-iset",
184 of_property_read_u32(np, "marvell,88pm860x-pwm",
/drivers/net/ethernet/ibm/emac/
H A Dcore.c2289 struct device_node *np; local
2299 np = *(dev->blist - 1);
2300 if (np == NULL) {
2306 deps[i].node = of_node_get(np);
2391 static int emac_read_uint_prop(struct device_node *np, const char *name, argument
2395 const u32 *prop = of_get_property(np, name, &len);
2399 np->full_name, name);
2408 struct device_node *np = dev->ofdev->dev.of_node; local
2499 printk(KERN_WARNING "%s: can't find PHY!\n", np->full_name);
2544 struct device_node *np local
2731 struct device_node *np = ofdev->dev.of_node; local
3021 struct device_node *np = NULL; local
[all...]
/drivers/tty/serial/cpm_uart/
H A Dcpm_uart_core.c1134 static int cpm_uart_init_port(struct device_node *np, argument
1143 data = of_get_property(np, "clock", NULL);
1150 data = of_get_property(np, "fsl,cpm-brg", &len);
1153 "fsl,cpm-brg property.\n", np->name);
1159 data = of_get_property(np, "fsl,cpm-command", &len);
1162 "fsl,cpm-command property.\n", np->name);
1167 mem = of_iomap(np, 0);
1171 if (of_device_is_compatible(np, "fsl,cpm1-scc-uart") ||
1172 of_device_is_compatible(np, "fsl,cpm2-scc-uart")) {
1174 pinfo->sccup = pram = cpm_uart_map_pram(pinfo, np);
1289 struct device_node *np = NULL; local
[all...]
/drivers/scsi/
H A Dncr53c8xx.h391 #define INB_OFF(o) readb_raw((char __iomem *)np->reg + ncr_offb(o))
392 #define OUTB_OFF(o, val) writeb_raw((val), (char __iomem *)np->reg + ncr_offb(o))
396 #define INW_OFF(o) readw_l2b((char __iomem *)np->reg + ncr_offw(o))
397 #define INL_OFF(o) readl_l2b((char __iomem *)np->reg + (o))
399 #define OUTW_OFF(o, val) writew_b2l((val), (char __iomem *)np->reg + ncr_offw(o))
400 #define OUTL_OFF(o, val) writel_b2l((val), (char __iomem *)np->reg + (o))
404 #define INW_OFF(o) readw_b2l((char __iomem *)np->reg + ncr_offw(o))
405 #define INL_OFF(o) readl_b2l((char __iomem *)np->reg + (o))
407 #define OUTW_OFF(o, val) writew_l2b((val), (char __iomem *)np->reg + ncr_offw(o))
408 #define OUTL_OFF(o, val) writel_l2b((val), (char __iomem *)np
[all...]
/drivers/clk/sirf/
H A Dclk-atlas6.c118 static void __init atlas6_clk_init(struct device_node *np) argument
129 sirfsoc_clk_vbase = of_iomap(np, 0);
151 of_clk_add_provider(np, of_clk_src_onecell_get, &clk_data);
H A Dclk-prima2.c117 static void __init prima2_clk_init(struct device_node *np) argument
128 sirfsoc_clk_vbase = of_iomap(np, 0);
150 of_clk_add_provider(np, of_clk_src_onecell_get, &clk_data);
/drivers/macintosh/
H A Dwindfarm_fcu_controls.c428 struct device_node *np = NULL, *fcu = pv->i2c->dev.of_node; local
433 while ((np = of_get_next_child(fcu, np)) != NULL) {
439 DBG(" control: %s, type: %s\n", np->name, np->type);
442 if (!strcmp(np->type, "fan-rpm-control") ||
443 !strcmp(np->type, "fan-rpm"))
445 if (!strcmp(np->type, "fan-pwm-control") ||
446 !strcmp(np->type, "fan-pwm"))
453 loc = of_get_property(np, "locatio
[all...]
/drivers/mtd/nand/
H A Dpasemi_nand.c96 struct device_node *np = ofdev->dev.of_node; local
101 err = of_address_to_resource(np, 0, &res);
129 chip->IO_ADDR_R = of_iomap(np, 0);
/drivers/net/ethernet/freescale/
H A Dfec_mpc52xx_phy.c67 struct device_node *np = of->dev.of_node; local
90 err = of_address_to_resource(np, 0, &res);
109 err = of_mdiobus_register(bus, np);

Completed in 566 milliseconds

<<11121314151617181920>>