/drivers/ide/ |
H A D | pmac.c | 918 struct device_node *np = pmif->node; local 919 const char *cable = of_get_property(np, "cable-type", NULL); 938 if (of_device_is_compatible(np, "K2-UATA") || 939 of_device_is_compatible(np, "shasta-ata")) 1023 struct device_node *np = pmif->node; local 1032 if (of_device_is_compatible(np, "shasta-ata")) { 1037 } else if (of_device_is_compatible(np, "kauai-ata")) { 1042 } else if (of_device_is_compatible(np, "K2-UATA")) { 1047 } else if (of_device_is_compatible(np, "keylargo-ata")) { 1048 if (strcmp(np 1258 struct device_node *np; local [all...] |
/drivers/pinctrl/ |
H A D | pinctrl-st.c | 819 struct device_node *np, struct pinctrl_map **map, unsigned *num_maps) 827 grp = st_pctl_find_group_by_name(info, np->name); 830 np->name); 840 parent = of_get_parent(np); 850 new_map[0].data.mux.group = np->name; 1038 struct device_node *np) 1041 for_each_child_of_node(np, child) { 1137 struct device_node *np) 1158 of_property_read_u32(np, "st,retime-pin-mask", &pc->rt_pin_mask); 1168 static int st_pctl_dt_parse_groups(struct device_node *np, argument 818 st_pctl_dt_node_to_map(struct pinctrl_dev *pctldev, struct device_node *np, struct pinctrl_map **map, unsigned *num_maps) argument 1037 st_pctl_dt_child_count(struct st_pinctrl *info, struct device_node *np) argument 1136 st_parse_syscfgs(struct st_pinctrl *info, int bank, struct device_node *np) argument 1240 st_pctl_parse_functions(struct device_node *np, struct st_pinctrl *info, u32 index, int *grp_index) argument 1452 st_gpiolib_register_bank(struct st_pinctrl *info, int bank_nr, struct device_node *np) argument 1557 struct device_node *np = pdev->dev.of_node; local [all...] |
/drivers/clk/ |
H A D | clk-clps711x.c | 175 static void __init clps711x_clk_init_dt(struct device_node *np) argument 177 void __iomem *base = of_iomap(np, 0); 181 WARN_ON(of_property_read_u32(np, "startup-frequency", &fref)); 188 of_clk_add_provider(np, of_clk_src_onecell_get,
|
/drivers/clk/hisilicon/ |
H A D | clk.c | 41 struct hisi_clock_data __init *hisi_clk_init(struct device_node *np, argument 48 if (np) { 49 base = of_iomap(np, 0); 73 of_clk_add_provider(np, of_clk_src_onecell_get, &clk_data->clk_data);
|
/drivers/clk/samsung/ |
H A D | clk-exynos5410.c | 186 static void __init exynos5410_clk_init(struct device_node *np) argument 191 reg_base = of_iomap(np, 0); 195 ctx = samsung_clk_init(np, reg_base, CLK_NR_CLKS); 207 samsung_clk_of_add_provider(np, ctx);
|
/drivers/clocksource/ |
H A D | arm_global_timer.c | 243 static void __init global_timer_of_register(struct device_node *np) argument 259 gt_ppi = irq_of_parse_and_map(np, 0); 265 gt_base = of_iomap(np, 0); 271 gt_clk = of_clk_get(np, 0);
|
H A D | timer-prima2.c | 196 static void __init sirfsoc_prima2_timer_init(struct device_node *np) argument 201 clk = of_clk_get(np, 0); 211 sirfsoc_timer_base = of_iomap(np, 0); 215 sirfsoc_timer_irq.irq = irq_of_parse_and_map(np, 0);
|
/drivers/gpio/ |
H A D | gpio-syscon.c | 192 struct device_node *np = dev->of_node; local 208 syscon_regmap_lookup_by_phandle(np, "gpio,syscon-dev"); 212 ret = of_property_read_u32_index(np, "gpio,syscon-dev", 1, 219 ret = of_property_read_u32_index(np, "gpio,syscon-dev", 2,
|
H A D | gpio-tz1090-pdc.c | 169 struct device_node *np = pdev->dev.of_node; local 174 if (!np) { 209 priv->chip.of_node = np; 217 priv->irq[i] = irq_of_parse_and_map(np, i);
|
/drivers/input/keyboard/ |
H A D | clps711x-keypad.c | 94 struct device_node *np = dev->of_node; local 108 priv->row_count = of_gpio_named_count(np, "row-gpios"); 133 err = of_property_read_u32(np, "poll-interval", &poll_interval); 158 if (of_property_read_bool(np, "autorepeat"))
|
/drivers/irqchip/ |
H A D | irq-crossbar.c | 319 struct device_node *np; local 320 np = of_find_matching_node(NULL, crossbar_match); 321 if (!np) 324 crossbar_of_init(np);
|
/drivers/leds/ |
H A D | leds-88pm860x.c | 130 struct device_node *nproot, *np; local 140 for_each_child_of_node(nproot, np) { 141 if (!of_node_cmp(np->name, data->name)) { 142 of_property_read_u32(np, "marvell,88pm860x-iset",
|
H A D | leds-gpio.c | 168 struct device_node *np = pdev->dev.of_node, *child; local 173 count = of_get_available_child_count(np); 177 for_each_available_child_of_node(np, child) 186 for_each_available_child_of_node(np, child) {
|
/drivers/macintosh/ |
H A D | macio-adb.c | 84 struct device_node *np; local 86 np = of_find_compatible_node(NULL, "adb", "chrp,adb0"); 87 if (np) { 88 of_node_put(np);
|
/drivers/misc/ |
H A D | sram.c | 62 struct device_node *np = pdev->dev.of_node, *child; local 96 nblocks = (np) ? of_get_available_child_count(np) + 1 : 1; 104 for_each_available_child_of_node(np, child) {
|
/drivers/mmc/host/ |
H A D | sdhci-pxav2.c | 134 struct device_node *np = dev->of_node; local 142 if (of_find_property(np, "non-removable", NULL)) 145 of_property_read_u32(np, "bus-width", &bus_width); 149 of_property_read_u32(np, "mrvl,clk-delay-cycles", &clk_delay_cycles);
|
H A D | sdhci-spear.c | 50 struct device_node *np = pdev->dev.of_node; local 54 cd_gpio = of_get_named_gpio(np, "cd-gpios", 0); 78 struct device_node *np = pdev->dev.of_node; local 127 if (np) {
|
/drivers/net/ethernet/freescale/fs_enet/ |
H A D | mii-bitbang.c | 111 static int fs_mii_bitbang_init(struct mii_bus *bus, struct device_node *np) argument 118 int ret = of_address_to_resource(np, 0, &res); 131 data = of_get_property(np, "fsl,mdio-pin", &len); 136 data = of_get_property(np, "fsl,mdc-pin", &len);
|
/drivers/net/ethernet/freescale/ |
H A D | xgmac_mdio.c | 197 struct device_node *np = pdev->dev.of_node; local 202 ret = of_address_to_resource(np, 0, &res); 221 bus->priv = of_iomap(np, 0); 227 ret = of_mdiobus_register(bus, np);
|
/drivers/net/ethernet/ibm/emac/ |
H A D | rgmii.c | 237 struct device_node *np = ofdev->dev.of_node; local 251 if (of_address_to_resource(np, 0, ®s)) { 253 np->full_name); 262 np->full_name);
|
H A D | zmii.c | 237 struct device_node *np = ofdev->dev.of_node; local 252 if (of_address_to_resource(np, 0, ®s)) { 254 np->full_name); 263 np->full_name);
|
/drivers/net/ethernet/xilinx/ |
H A D | ll_temac_main.c | 167 struct device_node *np) 173 dcrs = dcr_resource_start(np, 0); 175 lp->sdma_dcrs = dcr_map(np, dcrs, dcr_resource_len(np, 0)); 192 struct device_node *np) 1003 struct device_node *np; local 1063 np = of_parse_phandle(op->dev.of_node, "llink-connected", 0); 1064 if (!np) { 1070 if (temac_dcr_setup(lp, op, np)) { 1073 lp->sdma_regs = of_iomap(np, 166 temac_dcr_setup(struct temac_local *lp, struct platform_device *op, struct device_node *np) argument 191 temac_dcr_setup(struct temac_local *lp, struct platform_device *op, struct device_node *np) argument [all...] |
/drivers/net/phy/ |
H A D | fixed.c | 238 struct device_node *np) 264 of_node_get(np); 265 phy->dev.of_node = np; 270 of_node_put(np); 236 fixed_phy_register(unsigned int irq, struct fixed_phy_status *status, struct device_node *np) argument
|
H A D | mdio-gpio.c | 41 struct device_node *np = pdev->dev.of_node; local 50 ret = of_get_gpio_flags(np, 0, &flags); 57 ret = of_get_gpio_flags(np, 1, &flags); 63 ret = of_get_gpio_flags(np, 2, &flags);
|
/drivers/of/ |
H A D | of_pci_irq.c | 84 out_irq->np = ppnode;
|