/drivers/clk/ |
H A D | clk-conf.c | 40 if (clkspec.np == node && !clk_supplier) 53 if (clkspec.np == node && !clk_supplier) { 98 if (clkspec.np == node && !clk_supplier)
|
H A D | clk-efm32gg.c | 25 static void __init efm32gg_cmu_init(struct device_node *np) argument 33 base = of_iomap(np, 0); 79 of_clk_add_provider(np, of_clk_src_onecell_get, &clk_data);
|
/drivers/clk/samsung/ |
H A D | clk-s3c2410.c | 365 void __init s3c2410_common_clk_init(struct device_node *np, unsigned long xti_f, argument 372 if (np) { 373 reg_base = of_iomap(np, 0); 378 ctx = samsung_clk_init(np, reg_base, NR_CLKS); 383 if (!np) 470 samsung_clk_of_add_provider(np, ctx); 473 static void __init s3c2410_clk_init(struct device_node *np) argument 475 s3c2410_common_clk_init(np, 0, S3C2410, 0); 479 static void __init s3c2440_clk_init(struct device_node *np) argument 481 s3c2410_common_clk_init(np, 485 s3c2442_clk_init(struct device_node *np) argument [all...] |
H A D | clk-s3c2443.c | 390 void __init s3c2443_common_clk_init(struct device_node *np, unsigned long xti_f, argument 398 if (np) { 399 reg_base = of_iomap(np, 0); 404 ctx = samsung_clk_init(np, reg_base, NR_CLKS); 409 if (!np) 464 samsung_clk_of_add_provider(np, ctx); 471 static void __init s3c2416_clk_init(struct device_node *np) argument 473 s3c2443_common_clk_init(np, 0, S3C2416, 0); 477 static void __init s3c2443_clk_init(struct device_node *np) argument 479 s3c2443_common_clk_init(np, 483 s3c2450_clk_init(struct device_node *np) argument [all...] |
/drivers/clocksource/ |
H A D | vt8500_timer.c | 132 static void __init vt8500_timer_init(struct device_node *np) argument 136 regbase = of_iomap(np, 0); 142 timer_irq = irq_of_parse_and_map(np, 0);
|
H A D | timer-keystone.c | 161 static void __init keystone_timer_init(struct device_node *np) argument 168 irq = irq_of_parse_and_map(np, 0); 174 timer.base = of_iomap(np, 0); 180 clk = of_clk_get(np, 0);
|
H A D | vf_pit_timer.c | 162 static void __init pit_timer_init(struct device_node *np) argument 169 timer_base = of_iomap(np, 0); 180 irq = irq_of_parse_and_map(np, 0); 183 pit_clk = of_clk_get(np, 0);
|
/drivers/gpu/host1x/ |
H A D | bus.c | 36 struct device_node *np; member in struct:host1x_subdev 44 struct device_node *np) 53 subdev->np = of_node_get(np); 68 of_node_put(subdev->np); 77 struct device_node *np; local 80 for_each_child_of_node(device->dev.parent->of_node, np) { 81 if (of_match_node(device->driver->subdevs, np) && 82 of_device_is_available(np)) { 83 err = host1x_subdev_add(device, np); 43 host1x_subdev_add(struct host1x_device *device, struct device_node *np) argument [all...] |
/drivers/irqchip/ |
H A D | irq-sirfsoc.c | 59 static int __init sirfsoc_irq_init(struct device_node *np, argument 62 void __iomem *base = of_iomap(np, 0); 66 sirfsoc_irqdomain = irq_domain_add_linear(np, SIRFSOC_NUM_IRQS,
|
/drivers/misc/eeprom/ |
H A D | at25.c | 305 struct device_node *np, 311 strncpy(chip->name, np->name, sizeof(chip->name)); 313 if (of_property_read_u32(np, "size", &val) == 0 || 314 of_property_read_u32(np, "at25,byte-len", &val) == 0) { 321 if (of_property_read_u32(np, "pagesize", &val) == 0 || 322 of_property_read_u32(np, "at25,page-size", &val) == 0) { 329 if (of_property_read_u32(np, "at25,addr-mode", &val) == 0) { 332 if (of_property_read_u32(np, "address-width", &val)) { 353 if (of_find_property(np, "read-only", NULL)) 363 struct device_node *np local 304 at25_np_to_chip(struct device *dev, struct device_node *np, struct spi_eeprom *chip) argument [all...] |
/drivers/soc/tegra/fuse/ |
H A D | fuse-tegra.c | 131 struct device_node *np; local 139 np = of_find_matching_node(NULL, car_match); 140 car_base = of_iomap(np, 0);
|
H A D | fuse-tegra30.c | 204 struct device_node *np; local 207 np = of_find_matching_node_and_match(NULL, tegra30_fuse_of_match, 209 if (np) { 210 fuse_base = of_iomap(np, 0);
|
/drivers/soc/versatile/ |
H A D | soc-realview.c | 99 struct device_node *np = pdev->dev.of_node; local 102 syscon_regmap = syscon_regmap_lookup_by_phandle(np, "regmap"); 110 ret = of_property_read_string(np, "compatible",
|
/drivers/isdn/capi/ |
H A D | capi.c | 294 static void capincci_alloc_minor(struct capidev *cdev, struct capincci *np) argument 297 np->minorp = capiminor_alloc(&cdev->ap, np->ncci); 300 static void capincci_free_minor(struct capincci *np) argument 302 struct capiminor *mp = np->minorp; 316 static inline unsigned int capincci_minor_opencount(struct capincci *np) argument 318 struct capiminor *mp = np->minorp; 335 capincci_alloc_minor(struct capidev *cdev, struct capincci *np) { } argument 336 static inline void capincci_free_minor(struct capincci *np) { } argument 342 struct capincci *np; local 359 struct capincci *np, *tmp; local 372 struct capincci *np; local 574 struct capincci *np; local 1363 struct capincci *np; local [all...] |
/drivers/net/ethernet/intel/i40e/ |
H A D | i40e_ethtool.c | 230 struct i40e_netdev_priv *np = netdev_priv(netdev); local 231 struct i40e_pf *pf = np->vsi->back; 451 struct i40e_netdev_priv *np = netdev_priv(netdev); local 454 struct i40e_pf *pf = np->vsi->back; 455 struct i40e_vsi *vsi = np->vsi; 597 struct i40e_netdev_priv *np = netdev_priv(netdev); local 598 struct i40e_pf *pf = np->vsi->back; 620 struct i40e_netdev_priv *np = netdev_priv(netdev); local 621 struct i40e_pf *pf = np->vsi->back; 647 struct i40e_netdev_priv *np local 727 struct i40e_netdev_priv *np = netdev_priv(netdev); local 735 struct i40e_netdev_priv *np = netdev_priv(netdev); local 757 struct i40e_netdev_priv *np = netdev_priv(netdev); local 788 struct i40e_netdev_priv *np = netdev_priv(netdev); local 868 struct i40e_netdev_priv *np = netdev_priv(netdev); local 883 struct i40e_netdev_priv *np = netdev_priv(netdev); local 916 struct i40e_netdev_priv *np = netdev_priv(netdev); local 932 struct i40e_netdev_priv *np = netdev_priv(netdev); local 950 struct i40e_netdev_priv *np = netdev_priv(netdev); local 1097 struct i40e_netdev_priv *np = netdev_priv(netdev); local 1122 struct i40e_netdev_priv *np = netdev_priv(netdev); local 1208 struct i40e_netdev_priv *np = netdev_priv(netdev); local 1327 struct i40e_netdev_priv *np = netdev_priv(netdev); local 1341 struct i40e_netdev_priv *np = netdev_priv(netdev); local 1352 struct i40e_netdev_priv *np = netdev_priv(netdev); local 1363 struct i40e_netdev_priv *np = netdev_priv(netdev); local 1379 struct i40e_netdev_priv *np = netdev_priv(netdev); local 1391 struct i40e_netdev_priv *np = netdev_priv(netdev); local 1441 struct i40e_netdev_priv *np = netdev_priv(netdev); local 1459 struct i40e_netdev_priv *np = netdev_priv(netdev); local 1485 struct i40e_netdev_priv *np = netdev_priv(netdev); local 1516 struct i40e_netdev_priv *np = netdev_priv(netdev); local 1537 struct i40e_netdev_priv *np = netdev_priv(netdev); local 1739 struct i40e_netdev_priv *np = netdev_priv(netdev); local 2094 struct i40e_netdev_priv *np = netdev_priv(netdev); local 2139 struct i40e_netdev_priv *np = netdev_priv(dev); local 2165 struct i40e_netdev_priv *np = netdev_priv(dev); local [all...] |
/drivers/of/ |
H A D | fdt.c | 159 struct device_node *np; local 201 np = unflatten_dt_alloc(&mem, sizeof(struct device_node) + allocl, 205 of_node_init(np); 206 np->full_name = fn = ((char *)np) + sizeof(*np); 224 prev_pp = &np->properties; 225 **allnextpp = np; 226 *allnextpp = &np->allnext; 228 np [all...] |
H A D | irq.c | 108 ipar = of_node_get(out_irq->np); 255 out_irq->np = newpar; 338 out_irq->np = p; 402 domain = irq_find_host(oirq.np); 482 struct device_node *np, *parent = NULL; local 489 for_each_matching_node(np, matches) { 490 if (!of_find_property(np, "interrupt-controller", NULL) || 491 !of_device_is_available(np)) 501 desc->dev = np; 502 desc->interrupt_parent = of_irq_find_parent(np); [all...] |
/drivers/cpufreq/ |
H A D | exynos4x12-cpufreq.c | 168 struct device_node *np; local 179 np = of_find_compatible_node(NULL, NULL, "samsung,exynos4412-clock"); 180 if (!np) { 186 info->cmu_regs = of_iomap(np, 0);
|
H A D | exynos5250-cpufreq.c | 147 struct device_node *np; local 158 np = of_find_compatible_node(NULL, NULL, "samsung,exynos5250-clock"); 159 if (!np) { 165 info->cmu_regs = of_iomap(np, 0);
|
/drivers/edac/ |
H A D | ppc4xx_edac.c | 1018 const struct device_node *np = op->dev.of_node; local 1070 mci->dev_name = np->full_name; 1109 struct device_node *np = op->dev.of_node; local 1111 ded_irq = irq_of_parse_and_map(np, INTMAP_ECCDED_INDEX); 1112 sec_irq = irq_of_parse_and_map(np, INTMAP_ECCSEC_INDEX); 1169 * @np: A pointer to the device tree node containing the DCR 1181 static int ppc4xx_edac_map_dcrs(const struct device_node *np, argument 1186 if (np == NULL || dcr_host == NULL) 1191 dcr_base = dcr_resource_start(np, 0); 1192 dcr_len = dcr_resource_len(np, 1235 const struct device_node *np = op->dev.of_node; local [all...] |
/drivers/iio/ |
H A D | inkern.c | 104 struct device_node *np, int index) 111 err = of_parse_phandle_with_args(np, "io-channels", 117 idev = bus_find_device(&iio_bus_type, NULL, iiospec.np, 119 of_node_put(iiospec.np); 139 static struct iio_channel *of_iio_channel_get(struct device_node *np, int index) argument 151 err = __of_iio_channel_get(channel, np, index); 162 static struct iio_channel *of_iio_channel_get_by_name(struct device_node *np, argument 168 while (np) { 178 index = of_property_match_string(np, "io-channel-names", 180 chan = of_iio_channel_get(np, inde 103 __of_iio_channel_get(struct iio_channel *channel, struct device_node *np, int index) argument 244 of_iio_channel_get_by_name(struct device_node *np, const char *name) argument [all...] |
/drivers/regulator/ |
H A D | rn5t618-regulator.c | 78 struct device_node *np, *regulators; local 81 np = of_node_get(pdev->dev.parent->of_node); 82 if (!np) 85 regulators = of_get_child_by_name(np, "regulators");
|
/drivers/soc/tegra/ |
H A D | pmc.c | 609 static int tegra_pmc_parse_dt(struct tegra_pmc *pmc, struct device_node *np) argument 613 if (of_property_read_u32(np, "nvidia,suspend-mode", &value)) { 636 if (of_property_read_u32(np, "nvidia,cpu-pwr-good-time", &value)) 641 if (of_property_read_u32(np, "nvidia,cpu-pwr-off-time", &value)) 646 if (of_property_read_u32_array(np, "nvidia,core-pwr-good-time", 653 if (of_property_read_u32(np, "nvidia,core-pwr-off-time", &value)) 658 pmc->corereq_high = of_property_read_bool(np, 661 pmc->sysclkreq_high = of_property_read_bool(np, 664 pmc->combined_req = of_property_read_bool(np, 667 pmc->cpu_pwr_good_en = of_property_read_bool(np, 910 struct device_node *np; local [all...] |
/drivers/usb/host/ |
H A D | ohci-ppc-of.c | 96 struct device_node *np; local 150 np = of_find_compatible_node(NULL, NULL, "ibm,usb-ehci-440epx"); 161 if (np != NULL) { 162 if (!of_address_to_resource(np, 0, &res)) {
|
/drivers/input/touchscreen/ |
H A D | stmpe-ts.c | 271 struct device_node *np = pdev->dev.of_node; local 288 } else if (np) { 291 if (!of_property_read_u32(np, "st,sample-time", &val)) 293 if (!of_property_read_u32(np, "st,mod-12b", &val)) 295 if (!of_property_read_u32(np, "st,ref-sel", &val)) 297 if (!of_property_read_u32(np, "st,adc-freq", &val)) 299 if (!of_property_read_u32(np, "st,ave-ctrl", &val)) 301 if (!of_property_read_u32(np, "st,touch-det-delay", &val)) 303 if (!of_property_read_u32(np, "st,settling", &val)) 305 if (!of_property_read_u32(np, "s [all...] |