/drivers/clk/shmobile/ |
H A D | clk-rcar-gen2.c | 217 rcar_gen2_cpg_register_clock(struct device_node *np, struct rcar_gen2_cpg *cpg, argument 228 parent_name = of_clk_get_parent_name(np, 0); 279 static void __init rcar_gen2_cpg_clocks_init(struct device_node *np) argument 287 num_clks = of_property_count_strings(np, "clock-output-names"); 308 cpg->reg = of_iomap(np, 0); 318 of_property_read_string_index(np, "clock-output-names", i, 321 clk = rcar_gen2_cpg_register_clock(np, cpg, config, name); 324 __func__, np->name, name, PTR_ERR(clk)); 329 of_clk_add_provider(np, of_clk_src_onecell_get, &cpg->data);
|
/drivers/cpufreq/ |
H A D | exynos4210-cpufreq.c | 121 struct device_node *np; local 132 np = of_find_compatible_node(NULL, NULL, "samsung,exynos4210-clock"); 133 if (!np) { 139 info->cmu_regs = of_iomap(np, 0);
|
/drivers/dma/dw/ |
H A D | platform.c | 100 struct device_node *np = pdev->dev.of_node; local 104 if (!np) { 113 if (of_property_read_u32(np, "dma-channels", &pdata->nr_channels)) 116 if (of_property_read_bool(np, "is_private")) 119 if (!of_property_read_u32(np, "chan_allocation_order", &tmp)) 122 if (!of_property_read_u32(np, "chan_priority", &tmp)) 125 if (!of_property_read_u32(np, "block_size", &tmp)) 128 if (!of_property_read_u32(np, "dma-masters", &tmp)) { 135 if (!of_property_read_u32_array(np, "data_width", arr,
|
/drivers/gpu/drm/rcar-du/ |
H A D | rcar_du_encoder.h | 48 struct device_node *np);
|
H A D | rcar_du_lvdscon.c | 82 /* TODO const */ struct device_node *np) 97 ret = of_get_display_timing(np, "panel-timing", &timing); 103 of_property_read_u32(np, "width-mm", &lvdscon->panel.width_mm); 104 of_property_read_u32(np, "height-mm", &lvdscon->panel.height_mm); 79 rcar_du_lvds_connector_init(struct rcar_du_device *rcdu, struct rcar_du_encoder *renc, const struct rcar_du_panel_data *panel, struct device_node *np) argument
|
/drivers/net/ethernet/ibm/emac/ |
H A D | tah.c | 93 struct device_node *np = ofdev->dev.of_node; local 107 if (of_address_to_resource(np, 0, ®s)) { 109 np->full_name); 118 np->full_name);
|
/drivers/net/ethernet/xilinx/ |
H A D | ll_temac_mdio.c | 59 int temac_mdio_setup(struct temac_local *lp, struct device_node *np) argument 69 bus_hz = of_get_property(np, "clock-frequency", &size); 88 of_address_to_resource(np, 0, &res); 100 rc = of_mdiobus_register(bus, np);
|
/drivers/scsi/sym53c8xx_2/ |
H A D | sym_nvram.h | 196 void sym_nvram_setup_host(struct Scsi_Host *shost, struct sym_hcb *np, struct sym_nvram *nvram); 198 int sym_read_nvram (struct sym_device *np, struct sym_nvram *nvp); 201 static inline void sym_nvram_setup_host(struct Scsi_Host *shost, struct sym_hcb *np, struct sym_nvram *nvram) { } argument 203 static inline int sym_read_nvram(struct sym_device *np, struct sym_nvram *nvp) argument
|
/drivers/watchdog/ |
H A D | pika_wdt.c | 226 struct device_node *np; local 231 np = of_find_compatible_node(NULL, NULL, "pika,fpga"); 232 if (np == NULL) { 237 pikawdt_private.fpga = of_iomap(np, 0); 238 of_node_put(np); 247 np = of_find_compatible_node(NULL, NULL, "pika,fpga-sd"); 248 if (np == NULL) { 254 fpga = of_iomap(np, 0); 255 of_node_put(np);
|
/drivers/pinctrl/freescale/ |
H A D | pinctrl-mxs.c | 69 struct device_node *np, 77 int length = strlen(np->name) + SUFFIX_LEN; 83 if (of_property_read_u32(np, "reg", ®)) 86 ret = of_property_read_u32(np, "fsl,drive-strength", &val); 89 ret = of_property_read_u32(np, "fsl,voltage", &val); 92 ret = of_property_read_u32(np, "fsl,pull-up", &val); 106 new_map[i].data.mux.function = np->name; 114 snprintf(group, length, "%s.%d", np->name, reg); 127 new_map[i].data.configs.group_or_pin = purecfg ? np->name : 348 struct device_node *np, in 68 mxs_dt_node_to_map(struct pinctrl_dev *pctldev, struct device_node *np, struct pinctrl_map **map, unsigned *num_maps) argument 347 mxs_pinctrl_parse_group(struct platform_device *pdev, struct device_node *np, int idx, const char **out_name) argument 399 struct device_node *np = pdev->dev.of_node; local 490 struct device_node *np = pdev->dev.of_node; local [all...] |
H A D | pinctrl-imx.c | 102 struct device_node *np, 117 grp = imx_pinctrl_find_group_by_name(info, np->name); 120 np->name); 137 parent = of_get_parent(np); 144 new_map[0].data.mux.group = np->name; 423 static int imx_pinctrl_parse_groups(struct device_node *np, argument 433 dev_dbg(info->dev, "group(%d): %s\n", index, np->name); 440 grp->name = np->name; 446 list = of_get_property(np, "fsl,pins", &size); 448 dev_err(info->dev, "no fsl,pins property in node %s\n", np 101 imx_dt_node_to_map(struct pinctrl_dev *pctldev, struct device_node *np, struct pinctrl_map **map, unsigned *num_maps) argument 501 imx_pinctrl_parse_functions(struct device_node *np, struct imx_pinctrl_soc_info *info, u32 index) argument 537 struct device_node *np = pdev->dev.of_node; local [all...] |
/drivers/target/iscsi/ |
H A D | iscsi_target_tpg.c | 130 struct iscsi_np *np, 148 if (tpg_np->tpg_np == np) { 442 struct iscsi_np *np; local 450 np = tpg_np->tpg_np; 452 match = iscsit_check_np_match(sockaddr, np, 471 struct iscsi_np *np; local 491 np = iscsit_add_np(sockaddr, ip_str, network_transport); 492 if (IS_ERR(np)) { 494 return ERR_CAST(np); 503 tpg_np->tpg_np = np; 128 iscsit_get_tpg_from_np( struct iscsi_tiqn *tiqn, struct iscsi_np *np, struct iscsi_tpg_np **tpg_np_out) argument 529 iscsit_tpg_release_np( struct iscsi_tpg_np *tpg_np, struct iscsi_portal_group *tpg, struct iscsi_np *np) argument 553 struct iscsi_np *np; local [all...] |
/drivers/misc/lis3lv02d/ |
H A D | lis3lv02d.c | 951 struct device_node *np = lis3->of_node; local 961 if (of_get_property(np, "st,click-single-x", NULL)) 963 if (of_get_property(np, "st,click-double-x", NULL)) 966 if (of_get_property(np, "st,click-single-y", NULL)) 968 if (of_get_property(np, "st,click-double-y", NULL)) 971 if (of_get_property(np, "st,click-single-z", NULL)) 973 if (of_get_property(np, "st,click-double-z", NULL)) 976 if (!of_property_read_u32(np, "st,click-threshold-x", &val)) 978 if (!of_property_read_u32(np, "st,click-threshold-y", &val)) 980 if (!of_property_read_u32(np, "s [all...] |
/drivers/clk/st/ |
H A D | clkgen-pll.c | 448 struct device_node *np) 453 pnode = of_get_parent(np); 466 static void __init clkgena_c65_pll_setup(struct device_node *np) argument 474 parent_name = of_clk_get_parent_name(np, 0); 478 reg = clkgen_get_register_base(np); 493 if (of_property_read_string_index(np, "clock-output-names", 507 if (of_property_read_string_index(np, "clock-output-names", 522 if (of_property_read_string_index(np, "clock-output-names", 536 of_clk_add_provider(np, of_clk_src_onecell_get, clk_data); 640 static void __init clkgen_c32_pll_setup(struct device_node *np) argument 447 clkgen_get_register_base( struct device_node *np) argument 723 clkgengpu_c32_pll_setup(struct device_node *np) argument [all...] |
/drivers/clocksource/ |
H A D | exynos_mct.c | 523 static void __init exynos4_timer_resources(struct device_node *np, void __iomem *base) argument 529 tick_clk = np ? of_clk_get_by_name(np, "fin_pll") : 535 mct_clk = np ? of_clk_get_by_name(np, "mct") : clk_get(NULL, "mct"); 579 static void __init mct_init_dt(struct device_node *np, unsigned int int_type) argument 586 mct_irqs[MCT_G0_IRQ] = irq_of_parse_and_map(np, MCT_G0_IRQ); 594 nr_irqs = of_irq_count(np); 599 mct_irqs[i] = irq_of_parse_and_map(np, i); 601 exynos4_timer_resources(np, of_ioma 607 mct_init_spi(struct device_node *np) argument 612 mct_init_ppi(struct device_node *np) argument [all...] |
/drivers/tty/ |
H A D | ehv_bytechan.c | 114 struct device_node *np = of_stdout; local 122 if (!np || !of_device_is_compatible(np, "epapr,hv-byte-channel")) 125 stdout_irq = irq_of_parse_and_map(np, 0); 127 pr_err("ehv-bc: no 'interrupts' property in %s node\n", np->full_name); 134 iprop = of_get_property(np, "hv-handle", NULL); 137 np->name); 659 struct device_node *np = pdev->dev.of_node; local 667 iprop = of_get_property(np, "hv-handle", NULL); 670 np 758 struct device_node *np; local [all...] |
/drivers/gpio/ |
H A D | gpio-mpc8xxx.c | 319 static void __init mpc8xxx_add_controller(struct device_node *np) argument 342 gc->direction_output = of_device_is_compatible(np, "fsl,mpc5121-gpio") ? 344 gc->get = of_device_is_compatible(np, "fsl,mpc8572-gpio") ? 349 ret = of_mm_gpiochip_add(np, mm_gc); 353 hwirq = irq_of_parse_and_map(np, 0); 357 mpc8xxx_gc->irq = irq_domain_add_linear(np, MPC8XXX_GPIO_PINS, 362 id = of_match_node(mpc8xxx_gpio_ids, np); 378 np->full_name, ret); 386 struct device_node *np; local 388 for_each_matching_node(np, mpc8xxx_gpio_id [all...] |
/drivers/clk/samsung/ |
H A D | clk-s3c2412.c | 256 void __init s3c2412_common_clk_init(struct device_node *np, unsigned long xti_f, argument 263 if (np) { 264 reg_base = of_iomap(np, 0); 269 ctx = samsung_clk_init(np, reg_base, NR_CLKS); 274 if (!np) 294 samsung_clk_of_add_provider(np, ctx); 301 static void __init s3c2412_clk_init(struct device_node *np) argument 303 s3c2412_common_clk_init(np, 0, 0, 0);
|
/drivers/gpu/drm/ |
H A D | drm_panel.c | 79 struct drm_panel *of_drm_find_panel(struct device_node *np) argument 86 if (panel->dev->of_node == np) {
|
/drivers/hsi/clients/ |
H A D | nokia-modem.c | 86 struct device_node *np = dev->of_node; local 90 gpio_count = of_gpio_count(np); 97 gpio_name_count = of_property_count_strings(np, "gpio-names"); 120 err = of_property_read_string_index(np, "gpio-names", i, 146 struct device_node *np; local 153 np = dev->of_node; 154 if (!np) { 166 irq = irq_of_parse_and_map(np, 0);
|
/drivers/macintosh/ams/ |
H A D | ams.h | 66 extern int ams_pmu_init(struct device_node *np); 67 extern int ams_i2c_init(struct device_node *np);
|
/drivers/net/ethernet/stmicro/stmmac/ |
H A D | dwmac-sti.c | 230 struct device_node *np = dev->of_node; local 237 if (of_property_read_bool(np, "st,gmac_en")) 282 struct device_node *np = dev->of_node; local 286 if (!np) 300 regmap = syscon_regmap_lookup_by_phandle(np, "st,syscon"); 305 dwmac->interface = of_get_phy_mode(np); 307 dwmac->ext_phyclk = of_property_read_bool(np, "st,ext-phyclk"); 315 err = of_property_read_string(np, "st,tx-retime-src", &rs);
|
/drivers/regulator/ |
H A D | max1586.c | 167 struct device_node *np = dev->of_node; local 170 if (of_property_read_u32(np, "v3-gain", 172 dev_err(dev, "%s has no 'v3-gain' property\n", np->full_name); 176 np = of_get_child_by_name(np, "regulators"); 177 if (!np) { 185 matched = of_regulator_match(dev, np, rmatch, ARRAY_SIZE(rmatch)); 186 of_node_put(np);
|
/drivers/mfd/ |
H A D | syscon.c | 39 struct regmap *syscon_node_to_regmap(struct device_node *np) argument 44 dev = driver_find_device(&syscon_driver.driver, NULL, np, 92 struct regmap *syscon_regmap_lookup_by_phandle(struct device_node *np, argument 99 syscon_np = of_parse_phandle(np, property, 0); 101 syscon_np = np;
|
/drivers/staging/iio/adc/ |
H A D | spear_adc.c | 74 struct device_node *np; member in struct:spear_adc_state 118 if (of_device_is_compatible(st->np, "st,spear600-adc")) { 129 if (of_device_is_compatible(st->np, "st,spear600-adc")) { 262 struct device_node *np = pdev->dev.of_node; local 276 st->np = np; 283 st->adc_base_spear6xx = of_iomap(np, 0); 317 if (of_property_read_u32(np, "sampling-frequency", 328 of_property_read_u32(np, "average-samples", &st->avg_samples); 334 of_property_read_u32(np, "vre [all...] |