Searched refs:np (Results 176 - 200 of 795) sorted by relevance

1234567891011>>

/drivers/watchdog/
H A Dat91sam9_wdt.c266 static int of_at91wdt_init(struct device_node *np, struct at91wdt *wdt) argument
273 wdt->irq = irq_of_parse_and_map(np, 0);
277 if (!of_property_read_u32_index(np, "atmel,max-heartbeat-sec", 0,
282 if (!of_property_read_u32_index(np, "atmel,min-heartbeat-sec",
294 if (!of_property_read_string(np, "atmel,watchdog-type", &tmp) &&
302 if (!of_property_read_string(np, "atmel,reset-type", &tmp) &&
306 if (of_property_read_bool(np, "atmel,disable")) {
311 if (of_property_read_bool(np, "atmel,idle-halt"))
314 if (of_property_read_bool(np, "atmel,dbg-halt"))
322 static inline int of_at91wdt_init(struct device_node *np, struc argument
[all...]
/drivers/pinctrl/freescale/
H A Dpinctrl-imx1-core.c225 struct device_node *np,
240 grp = imx1_pinctrl_find_group_by_name(info, np->name);
243 np->name);
258 parent = of_get_parent(np);
265 new_map[0].data.mux.group = np->name;
466 static int imx1_pinctrl_parse_groups(struct device_node *np, argument
475 dev_dbg(info->dev, "group(%d): %s\n", index, np->name);
478 grp->name = np->name;
483 list = of_get_property(np, "fsl,pins", &size);
487 np
224 imx1_dt_node_to_map(struct pinctrl_dev *pctldev, struct device_node *np, struct pinctrl_map **map, unsigned *num_maps) argument
511 imx1_pinctrl_parse_functions(struct device_node *np, struct imx1_pinctrl_soc_info *info, u32 index) argument
552 struct device_node *np = pdev->dev.of_node; local
[all...]
/drivers/clocksource/
H A Dsamsung_pwm_timer.c423 static void __init samsung_pwm_alloc(struct device_node *np, argument
433 pwm.irq[i] = irq_of_parse_and_map(np, i);
435 of_property_for_each_u32(np, "samsung,pwm-outputs", prop, cur, val) {
444 pwm.base = of_iomap(np, 0);
450 pwm.timerclk = of_clk_get_by_name(np, "timers");
464 static void __init s3c2410_pwm_clocksource_init(struct device_node *np) argument
466 samsung_pwm_alloc(np, &s3c24xx_variant);
477 static void __init s3c64xx_pwm_clocksource_init(struct device_node *np) argument
479 samsung_pwm_alloc(np, &s3c64xx_variant);
490 static void __init s5p64x0_pwm_clocksource_init(struct device_node *np) argument
503 s5p_pwm_clocksource_init(struct device_node *np) argument
[all...]
H A Dtegra20_timer.c165 static void __init tegra20_init_timer(struct device_node *np) argument
171 timer_reg_base = of_iomap(np, 0);
177 tegra_timer_irq.irq = irq_of_parse_and_map(np, 2);
183 clk = of_clk_get(np, 0);
235 static void __init tegra20_init_rtc(struct device_node *np) argument
239 rtc_base = of_iomap(np, 0);
249 clk = of_clk_get(np, 0);
H A Dtimer-marco.c258 static void __init sirfsoc_marco_timer_init(struct device_node *np) argument
264 clk = of_clk_get(np, 0);
296 static void __init sirfsoc_of_timer_init(struct device_node *np) argument
298 sirfsoc_timer_base = of_iomap(np, 0);
302 sirfsoc_timer_irq.irq = irq_of_parse_and_map(np, 0);
306 sirfsoc_timer1_irq.irq = irq_of_parse_and_map(np, 1);
310 sirfsoc_marco_timer_init(np);
/drivers/of/
H A Daddress.c17 static struct of_bus *of_match_bus(struct device_node *np);
101 static int of_bus_pci_match(struct device_node *np) argument
108 return !strcmp(np->type, "pci") || !strcmp(np->type, "pciex") ||
109 !strcmp(np->type, "vci") || !strcmp(np->type, "ht");
112 static void of_bus_pci_count_cells(struct device_node *np, argument
240 parser->np = parser->pna + na + ns;
260 if (!parser->range || parser->range + parser->np > parser->end)
270 parser->range += parser->np;
313 of_pci_range_to_resource(struct of_pci_range *range, struct device_node *np, struct resource *res) argument
349 of_bus_isa_match(struct device_node *np) argument
442 of_match_bus(struct device_node *np) argument
861 of_iomap(struct device_node *np, int index) argument
886 of_io_request_and_map(struct device_node *np, int index, char *name) argument
925 of_dma_get_range(struct device_node *np, u64 *dma_addr, u64 *paddr, u64 *size) argument
1002 of_dma_is_coherent(struct device_node *np) argument
[all...]
/drivers/net/ethernet/packetengines/
H A Dyellowfin.c374 struct yellowfin_private *np; local
399 dev = alloc_etherdev(sizeof(*np));
405 np = netdev_priv(dev);
431 spin_lock_init(&np->lock);
433 np->pci_dev = pdev;
434 np->chip_id = chip_idx;
435 np->drv_flags = drv_flags;
436 np->base = ioaddr;
441 np->tx_ring = ring_space;
442 np
1330 struct yellowfin_private *np = netdev_priv(dev); local
1343 struct yellowfin_private *np = netdev_priv(dev); local
1381 struct yellowfin_private *np; local
[all...]
/drivers/pinctrl/
H A Dpinctrl-single.c44 * @np: pingroup device node pointer
51 struct device_node *np; member in struct:pcs_pingroup
858 * @np: device node of the mux entry
866 struct device_node *np,
914 * @np: device node of the mux entry
920 struct device_node *np,
932 pingroup->np = np;
1006 static void pcs_add_conf2(struct pcs_device *pcs, struct device_node *np, argument
1013 ret = of_property_read_u32_array(np, nam
865 pcs_add_function(struct pcs_device *pcs, struct device_node *np, const char *name, struct pcs_func_vals *vals, unsigned nvals, const char **pgnames, unsigned npgnames) argument
919 pcs_add_pingroup(struct pcs_device *pcs, struct device_node *np, const char *name, int *gpins, int ngpins) argument
1025 pcs_add_conf4(struct pcs_device *pcs, struct device_node *np, const char *name, enum pin_config_param param, struct pcs_conf_vals **conf, unsigned long **settings) argument
1050 pcs_parse_pinconf(struct pcs_device *pcs, struct device_node *np, struct pcs_function *func, struct pinctrl_map **map) argument
1136 pcs_parse_one_pinctrl_entry(struct pcs_device *pcs, struct device_node *np, struct pinctrl_map **map, unsigned *num_maps, const char **pgnames) argument
1224 pcs_parse_bits_in_pinctrl_entry(struct pcs_device *pcs, struct device_node *np, struct pinctrl_map **map, unsigned *num_maps, const char **pgnames) argument
1739 pcs_irq_init_chained_handler(struct pcs_device *pcs, struct device_node *np) argument
1821 struct device_node *np = pdev->dev.of_node; local
[all...]
H A Ddevicetree.c98 struct pinctrl_dev *of_pinctrl_get(struct device_node *np) argument
102 pctldev = get_pinctrl_dev_from_of_node(np);
177 struct device_node *np = p->dev->of_node; local
188 if (!np) {
196 of_node_get(np);
202 prop = of_find_property(np, propname, &size);
210 ret = of_property_read_string_index(np, "pinctrl-names",
/drivers/isdn/hisax/
H A Disdnl3.c251 struct l3_process *p, *np; local
260 np = st->l3.proc;
261 while (np->next)
262 np = np->next;
263 np->next = p;
279 struct l3_process *np, *pp = NULL; local
283 np = p->st->l3.proc;
284 while (np) {
285 if (np
319 struct l3_process *np; local
[all...]
/drivers/scsi/libfc/
H A Dfc_disc.c395 struct fc_gpn_ft_resp *np; local
411 np = (struct fc_gpn_ft_resp *)bp;
415 WARN_ON(tlen >= sizeof(*np));
416 plen = sizeof(*np) - tlen;
418 WARN_ON(plen >= sizeof(*np));
421 np = &disc->partial_buf;
422 memcpy((char *)np + tlen, bp, plen);
432 if (plen == sizeof(*np))
438 * Normally, np == bp and plen == len, but from the partial case above,
439 * bp, len describe the overall buffer, and np, ple
[all...]
/drivers/clk/mvebu/
H A Dkirkwood.c279 static void __init kirkwood_clk_muxing_setup(struct device_node *np, argument
286 base = of_iomap(np, 0);
315 of_clk_add_provider(np, clk_muxing_get_src, ctrl);
324 static void __init kirkwood_clk_init(struct device_node *np) argument
330 if (of_device_is_compatible(np, "marvell,mv88f6180-core-clock"))
331 mvebu_coreclk_setup(np, &mv88f6180_coreclks);
333 mvebu_coreclk_setup(np, &kirkwood_coreclks);
/drivers/irqchip/
H A Dexynos-combiner.c173 struct device_node *np,
188 combiner_irq_domain = irq_domain_add_linear(np, nr_irq,
196 irq = irq_of_parse_and_map(np, i);
204 static int __init combiner_of_init(struct device_node *np, argument
210 combiner_base = of_iomap(np, 0);
216 if (of_property_read_u32(np, "samsung,combiner-nr", &max_nr)) {
222 combiner_init(combiner_base, np, max_nr);
172 combiner_init(void __iomem *combiner_base, struct device_node *np, unsigned int max_nr) argument
H A Dirq-atmel-aic-common.c148 struct device_node *np; local
151 np = of_find_compatible_node(root, NULL, "atmel,at91rm9200-rtc");
152 if (!np)
153 np = of_find_compatible_node(root, NULL,
156 if (!np)
159 regs = of_iomap(np, 0);
160 of_node_put(np);
/drivers/net/ethernet/samsung/sxgbe/
H A Dsxgbe_platform.c34 struct device_node *np = pdev->dev.of_node; local
37 if (!np)
40 *mac = of_get_mac_address(np);
41 plat->interface = of_get_phy_mode(np);
43 plat->bus_id = of_alias_get_id(np, "ethernet");
56 of_property_read_u32(np, "samsung,pbl", &dma_cfg->pbl);
57 if (of_property_read_u32(np, "samsung,burst-map", &dma_cfg->burst_map) == 0)
/drivers/pinctrl/sirf/
H A Dpinctrl-sirf.c82 struct device_node *np; local
88 for_each_child_of_node(np_config, np) {
89 ret = of_property_read_string(np, "sirf,function", &function);
93 ret = of_property_count_strings(np, "sirf,pins");
109 for_each_child_of_node(np_config, np) {
110 of_property_read_string(np, "sirf,function", &function);
111 of_property_for_each_string(np, "sirf,pins", prop, group) {
262 struct device_node *np; local
264 np = of_find_matching_node(NULL, rsc_ids);
265 if (!np)
295 struct device_node *np = pdev->dev.of_node; local
800 sirfsoc_gpio_probe(struct device_node *np) argument
903 struct device_node *np; local
[all...]
/drivers/staging/imx-drm/
H A Dparallel-display.c56 struct device_node *np = imxpd->dev->of_node; local
82 if (np) {
87 of_get_drm_display_mode(np, &imxpd->mode, OF_USE_NATIVE_MODE);
207 struct device_node *np = dev->of_node; local
218 edidp = of_get_property(np, "edid", &imxpd->edid_len);
222 ret = of_property_read_string(np, "interface-pix-fmt", &fmt);
235 panel_node = of_parse_phandle(np, "fsl,panel", 0);
/drivers/usb/chipidea/
H A Dci_hdrc_imx.c58 struct device_node *np = dev->of_node; local
67 if (!of_get_property(np, "fsl,usbmisc", NULL))
74 ret = of_parse_phandle_with_args(np, "fsl,usbmisc", "#index-cells",
84 misc_pdev = of_find_device_by_node(args.np);
85 of_node_put(args.np);
92 if (of_find_property(np, "disable-over-current", NULL))
95 if (of_find_property(np, "external-vbus-divider", NULL))
/drivers/clk/at91/
H A Dclk-peripheral.c351 of_at91_clk_periph_setup(struct device_node *np, struct at91_pmc *pmc, u8 type) argument
360 parent_name = of_clk_get_parent_name(np, 0);
364 num = of_get_child_count(np);
368 for_each_child_of_node(np, periphclknp) {
375 if (of_property_read_string(np, "clock-output-names", &name))
400 void __init of_at91rm9200_clk_periph_setup(struct device_node *np, argument
403 of_at91_clk_periph_setup(np, pmc, PERIPHERAL_AT91RM9200);
406 void __init of_at91sam9x5_clk_periph_setup(struct device_node *np, argument
409 of_at91_clk_periph_setup(np, pmc, PERIPHERAL_AT91SAM9X5);
/drivers/clk/st/
H A Dclk-flexgen.c231 static const char ** __init flexgen_get_parents(struct device_node *np, argument
237 nparents = of_count_phandle_with_args(np, "clocks", "#clock-cells");
246 parents[i] = of_clk_get_parent_name(np, i);
252 void __init st_of_flexgen_setup(struct device_node *np) argument
262 pnode = of_get_parent(np);
270 parents = flexgen_get_parents(np, &num_parents);
278 clk_data->clk_num = of_property_count_strings(np ,
299 if (of_property_read_string_index(np, "clock-output-names",
320 of_clk_add_provider(np, of_clk_src_onecell_get, clk_data);
/drivers/cpufreq/
H A Dcpufreq-dt.c185 struct device_node *np; local
200 np = of_node_get(cpu_dev->of_node);
201 if (!np) {
216 of_property_read_u32(np, "voltage-tolerance", &priv->voltage_tolerance);
218 if (of_property_read_u32(np, "clock-latency", &transition_latency))
271 if (of_find_property(np, "#cooling-cells", NULL)) {
272 cdev = of_cpufreq_cooling_register(np, cpu_present_mask);
299 of_node_put(np);
309 of_node_put(np);
/drivers/gpu/drm/sti/
H A Dsti_vtg.c79 struct device_node *np; member in struct:sti_vtg
94 struct sti_vtg *of_vtg_find(struct device_node *np) argument
99 if (vtg->np == np)
286 struct device_node *np; local
297 vtg->np = pdev->dev.of_node;
307 np = of_parse_phandle(pdev->dev.of_node, "st,slave", 0);
308 if (np) {
309 vtg->slave = of_vtg_find(np);
/drivers/input/misc/
H A Drotary_encoder.c156 struct device_node *np = dev->of_node; local
160 if (!of_id || !np)
168 of_property_read_u32(np, "rotary-encoder,steps", &pdata->steps);
169 of_property_read_u32(np, "linux,axis", &pdata->axis);
171 pdata->gpio_a = of_get_gpio_flags(np, 0, &flags);
174 pdata->gpio_b = of_get_gpio_flags(np, 1, &flags);
177 pdata->relative_axis = !!of_get_property(np,
179 pdata->rollover = !!of_get_property(np,
181 pdata->half_period = !!of_get_property(np,
/drivers/pci/host/
H A Dpci-host-generic.c196 struct device_node *np = dev->of_node; local
198 if (of_pci_range_parser_init(&parser, np)) {
263 struct device_node *np = dev->of_node; local
265 if (of_pci_parse_bus_range(np, &pci->cfg.bus_range))
267 .name = np->name,
273 err = of_address_to_resource(np, 0, &pci->cfg.res);
327 struct device_node *np = dev->of_node; local
340 type = of_get_property(np, "device_type", NULL);
354 of_id = of_match_node(gen_pci_of_match, np);
/drivers/regulator/
H A Dmax8952.c141 struct device_node *np = dev->of_node; local
149 pd->gpio_vid0 = of_get_named_gpio(np, "max8952,vid-gpios", 0);
150 pd->gpio_vid1 = of_get_named_gpio(np, "max8952,vid-gpios", 1);
151 pd->gpio_en = of_get_named_gpio(np, "max8952,en-gpio", 0);
153 if (of_property_read_u32(np, "max8952,default-mode", &pd->default_mode))
156 ret = of_property_read_u32_array(np, "max8952,dvs-mode-microvolt",
171 if (of_property_read_u32(np, "max8952,sync-freq", &pd->sync_freq))
174 if (of_property_read_u32(np, "max8952,ramp-speed", &pd->ramp_speed))
177 pd->reg_data = of_get_regulator_init_data(dev, np);

Completed in 546 milliseconds

1234567891011>>