Searched refs:np (Results 201 - 225 of 2376) sorted by relevance

1234567891011>>

/linux-master/drivers/fpga/
H A Dof-fpga-region.c29 * @np: device node of FPGA Region
35 static struct fpga_region *of_fpga_region_find(struct device_node *np) argument
37 return fpga_region_class_find(NULL, np, device_match_of_node);
42 * @np: device node of FPGA region
50 static struct fpga_manager *of_fpga_region_get_mgr(struct device_node *np) argument
55 of_node_get(np);
56 while (np) {
57 if (of_device_is_compatible(np, "fpga-region")) {
58 mgr_node = of_parse_phandle(np, "fpga-mgr", 0);
62 of_node_put(np);
93 struct device_node *br, *np, *parent_br = NULL; local
400 struct device_node *np = dev->of_node; local
[all...]
/linux-master/arch/arm/mach-zynq/
H A Dslcr.c196 struct device_node *np; local
198 np = of_find_compatible_node(NULL, NULL, "xlnx,zynq-slcr");
199 if (!np) {
204 zynq_slcr_base = of_iomap(np, 0);
210 np->data = (__force void *)zynq_slcr_base;
215 of_node_put(np);
227 pr_info("%pOFn mapped to %p\n", np, zynq_slcr_base);
229 of_node_put(np);
/linux-master/drivers/gpio/
H A Dgpiolib-of.h19 struct gpio_desc *of_find_gpio(struct device_node *np,
27 static inline struct gpio_desc *of_find_gpio(struct device_node *np, argument
/linux-master/arch/powerpc/platforms/52xx/
H A Dlite5200.c55 struct device_node *np; local
58 np = of_find_matching_node(NULL, mpc5200_cdm_ids);
59 cdm = of_iomap(np, 0);
60 of_node_put(np);
89 struct device_node *np; local
93 np = of_find_matching_node(NULL, mpc5200_gpio_ids);
94 gpio = of_iomap(np, 0);
95 of_node_put(np);
/linux-master/arch/powerpc/platforms/amigaone/
H A Dsetup.c76 struct device_node *np; local
80 for_each_compatible_node(np, "pci", "mai-logic,articia-s")
81 phb = amigaone_add_bridge(np);
88 struct device_node *pic, *np = NULL; local
98 np = of_find_compatible_node(NULL, "pci", "mai-logic,articia-s");
99 if (np) {
100 prop = of_get_property(np, "8259-interrupt-acknowledge", NULL);
103 of_node_put(np);
/linux-master/drivers/clk/
H A Dclk-k210.c544 static int __init k210_register_pll(struct device_node *np, argument
565 return of_clk_hw_register(np, &pll->hw);
568 static int __init k210_register_plls(struct device_node *np, argument
577 ret = k210_register_pll(np, ksc, K210_PLL0, "pll0", 1, &k210_pll_ops);
579 pr_err("%pOFP: register PLL0 failed\n", np);
582 ret = k210_register_pll(np, ksc, K210_PLL1, "pll1", 1, &k210_pll_ops);
584 pr_err("%pOFP: register PLL1 failed\n", np);
589 ret = k210_register_pll(np, ksc, K210_PLL2, "pll2", 3, &k210_pll2_ops);
591 pr_err("%pOFP: register PLL2 failed\n", np);
647 static int __init k210_register_aclk(struct device_node *np, argument
790 k210_register_clk(struct device_node *np, struct k210_sysclk *ksc, int id, const struct clk_parent_data *parent_data, int num_parents, unsigned long flags) argument
823 k210_register_mux_clk(struct device_node *np, struct k210_sysclk *ksc, int id) argument
834 k210_register_in0_child(struct device_node *np, struct k210_sysclk *ksc, int id) argument
844 k210_register_pll_child(struct device_node *np, struct k210_sysclk *ksc, int id, enum k210_pll_id pllid, unsigned long flags) argument
856 k210_register_aclk_child(struct device_node *np, struct k210_sysclk *ksc, int id, unsigned long flags) argument
867 k210_register_clk_child(struct device_node *np, struct k210_sysclk *ksc, int id, int parent_id) argument
890 k210_clk_init(struct device_node *np) argument
[all...]
H A Dclk-xgene.c160 static int xgene_pllclk_version(struct device_node *np) argument
162 if (of_device_is_compatible(np, "apm,xgene-socpll-clock"))
164 if (of_device_is_compatible(np, "apm,xgene-pcppll-clock"))
169 static void xgene_pllclk_init(struct device_node *np, enum xgene_pll_type pll_type) argument
171 const char *clk_name = np->full_name;
174 int version = xgene_pllclk_version(np);
176 reg = of_iomap(np, 0);
178 pr_err("Unable to map CSR register for %pOF\n", np);
181 of_property_read_string(np, "clock-output-names", &clk_name);
183 clk_name, of_clk_get_parent_name(np,
193 xgene_socpllclk_init(struct device_node *np) argument
198 xgene_pcppllclk_init(struct device_node *np) argument
377 xgene_pmdclk_init(struct device_node *np) argument
665 xgene_devclk_init(struct device_node *np) argument
[all...]
/linux-master/drivers/memory/samsung/
H A Dexynos-srom.c68 struct device_node *np)
74 if (of_property_read_u32(np, "reg", &bank))
76 if (of_property_read_u32(np, "reg-io-width", &width))
78 if (of_property_read_bool(np, "samsung,srom-page-mode"))
80 if (of_property_read_u32_array(np, "samsung,srom-timing", timing,
107 struct device_node *np, *child; local
112 np = dev->of_node;
113 if (!np) {
124 srom->reg_base = of_iomap(np, 0);
139 for_each_child_of_node(np, chil
67 exynos_srom_configure_bank(struct exynos_srom *srom, struct device_node *np) argument
[all...]
/linux-master/drivers/dma/dw/
H A Dof.c51 struct device_node *np = pdev->dev.of_node; local
57 if (of_property_read_u32(np, "dma-masters", &nr_masters))
62 if (of_property_read_u32(np, "dma-channels", &nr_channels))
74 of_property_read_u32(np, "chan_allocation_order", &pdata->chan_allocation_order);
75 of_property_read_u32(np, "chan_priority", &pdata->chan_priority);
77 of_property_read_u32(np, "block_size", &pdata->block_size);
80 if (!of_property_read_u32_array(np, "data_width", arr, nr_masters)) {
86 of_property_read_u32_array(np, "data-width", pdata->data_width, nr_masters);
89 of_property_read_u32_array(np, "multi-block", pdata->multi_block, nr_channels);
92 of_property_read_u32_array(np, "snp
[all...]
/linux-master/drivers/cpufreq/
H A Dsun50i-cpufreq-nvmem.c37 struct device_node *np; local
47 np = dev_pm_opp_of_get_opp_desc_node(cpu_dev);
48 if (!np)
51 ret = of_device_is_compatible(np,
54 of_node_put(np);
58 speedbin_nvmem = of_nvmem_cell_get(np, NULL);
59 of_node_put(np);
170 struct device_node *np; local
172 np = of_find_node_by_path("/");
173 match = of_match_node(sun50i_cpufreq_match_list, np);
[all...]
/linux-master/arch/powerpc/platforms/8xx/
H A Dmpc885ads_setup.c129 struct device_node *np; local
134 np = of_find_compatible_node(NULL, NULL, "fsl,mpc885ads-bcsr");
135 if (!np) {
140 bcsr = of_iomap(np, 0);
141 bcsr5 = of_iomap(np, 1);
142 of_node_put(np);
177 np = of_find_node_by_path("/soc@ff000000/cpm@9c0/serial@a80");
179 np = of_find_node_by_path("/soc@ff000000/cpm@9c0/ethernet@a40");
186 if (np) {
187 of_detach_node(np);
[all...]
/linux-master/drivers/pmdomain/samsung/
H A Dexynos-pm-domains.c108 struct device_node *np = dev->of_node; local
118 pd->pd.name = exynos_get_domain_name(np);
122 pd->base = of_iomap(np, 0);
135 ret = of_genpd_add_provider_simple(np, &pd->pd);
137 if (ret == 0 && of_parse_phandle_with_args(np, "power-domains",
139 child.np = np;
144 parent.np, child.np);
147 parent.np, chil
[all...]
/linux-master/arch/powerpc/kernel/
H A Disa-bridge.c113 struct device_node *np, *parent = NULL, *tmp; local
124 for_each_node_by_type(np, "isa") {
126 for (parent = of_get_parent(np); parent;) {
138 if (np == NULL)
140 isa_bridge_devnode = np;
143 process_ISA_OF_ranges(np, hose->io_base_phys);
148 pr_debug("ISA bridge (early) is %pOF\n", np);
157 void __init isa_bridge_init_non_pci(struct device_node *np) argument
165 ret = process_ISA_OF_ranges(np, 0);
170 isa_bridge_devnode = np;
[all...]
/linux-master/arch/powerpc/platforms/85xx/
H A Dge_imp3a.c44 struct device_node *np; local
66 for_each_node_by_type(np, "interrupt-controller")
67 if (of_device_is_compatible(np, "gef,fpga-pic-1.00")) {
68 cascade_node = np;
84 struct device_node *np; local
87 for_each_node_by_type(np, "pci") {
88 if (of_device_is_compatible(np, "fsl,mpc8540-pci") ||
89 of_device_is_compatible(np, "fsl,mpc8548-pcie") ||
90 of_device_is_compatible(np, "fsl,p2020-pcie")) {
91 of_address_to_resource(np,
[all...]
/linux-master/drivers/soc/imx/
H A Dsoc-imx8m.c56 struct device_node *np; local
62 np = of_find_compatible_node(NULL, NULL, "fsl,imx8mq-ocotp");
63 if (!np)
66 ocotp_base = of_iomap(np, 0);
68 clk = of_clk_get_by_name(np, NULL);
94 of_node_put(np);
102 struct device_node *np; local
107 np = of_find_compatible_node(NULL, NULL, "fsl,imx8mm-ocotp");
108 if (!np)
111 ocotp_base = of_iomap(np,
133 struct device_node *np; local
[all...]
/linux-master/drivers/of/
H A Dproperty.c60 * @np: device node from which the property value is to be read.
71 int of_property_count_elems_of_size(const struct device_node *np, argument
74 struct property *prop = of_find_property(np, propname, NULL);
83 propname, np, elem_size);
94 * @np: device node from which the property value is to be read.
107 static void *of_find_property_value_of_size(const struct device_node *np, argument
110 struct property *prop = of_find_property(np, propname, NULL);
130 * @np: device node from which the property value is to be read.
144 int of_property_read_u32_index(const struct device_node *np, argument
148 const u32 *val = of_find_property_value_of_size(np, propnam
178 of_property_read_u64_index(const struct device_node *np, const char *propname, u32 index, u64 *out_value) argument
218 of_property_read_variable_u8_array(const struct device_node *np, const char *propname, u8 *out_values, size_t sz_min, size_t sz_max) argument
268 of_property_read_variable_u16_array(const struct device_node *np, const char *propname, u16 *out_values, size_t sz_min, size_t sz_max) argument
315 of_property_read_variable_u32_array(const struct device_node *np, const char *propname, u32 *out_values, size_t sz_min, size_t sz_max) argument
356 of_property_read_u64(const struct device_node *np, const char *propname, u64 *out_value) argument
393 of_property_read_variable_u64_array(const struct device_node *np, const char *propname, u64 *out_values, size_t sz_min, size_t sz_max) argument
440 of_property_read_string(const struct device_node *np, const char *propname, const char **out_string) argument
465 of_property_match_string(const struct device_node *np, const char *propname, const char *string) argument
504 of_property_read_string_helper(const struct device_node *np, const char *propname, const char **out_strs, size_t sz, int skip) argument
785 struct device_node *np, *pp; local
807 struct device_node *np; local
823 of_graph_get_endpoint_count(const struct device_node *np) argument
1037 struct device_node *np; local
1117 parse_prop_cells(struct device_node *np, const char *prop_name, int index, const char *list_name, const char *cells_name) argument
1171 parse_suffix_prop_cells(struct device_node *np, const char *prop_name, int index, const char *suffix, const char *cells_name) argument
1258 parse_gpios(struct device_node *np, const char *prop_name, int index) argument
1268 parse_iommu_maps(struct device_node *np, const char *prop_name, int index) argument
1277 parse_gpio_compat(struct device_node *np, const char *prop_name, int index) argument
1299 parse_interrupts(struct device_node *np, const char *prop_name, int index) argument
1314 parse_remote_endpoint(struct device_node *np, const char *prop_name, int index) argument
[all...]
/linux-master/sound/soc/generic/
H A Dsimple-card.c49 dlc->of_node = args.np;
118 struct device_node *np,
122 struct device_node *node = of_get_parent(np);
127 simple_util_parse_convert(np, NULL, adata);
133 struct device_node *np,
137 struct device_node *node = of_get_parent(np);
145 of_property_read_u32(np, prop, &props->mclk_fs);
151 struct device_node *np,
172 simple_parse_mclk_fs(top, np, dai_props, prefix);
174 ret = simple_parse_dai(dev, np, dl
117 simple_parse_convert(struct device *dev, struct device_node *np, struct simple_util_data *adata) argument
132 simple_parse_mclk_fs(struct device_node *top, struct device_node *np, struct simple_dai_props *props, char *prefix) argument
150 simple_parse_node(struct simple_util_priv *priv, struct device_node *np, struct link_info *li, char *prefix, int *cpu) argument
210 simple_dai_link_of_dpcm(struct simple_util_priv *priv, struct device_node *np, struct device_node *codec, struct link_info *li, bool is_top) argument
290 simple_dai_link_of(struct simple_util_priv *priv, struct device_node *np, struct device_node *codec, struct link_info *li, bool is_top) argument
350 __simple_for_each_link(struct simple_util_priv *priv, struct link_info *li, int (*func_noml)(struct simple_util_priv *priv, struct device_node *np, struct device_node *codec, struct link_info *li, bool is_top), int (*func_dpcm)(struct simple_util_priv *priv, struct device_node *np, struct device_node *codec, struct link_info *li, bool is_top)) argument
383 struct device_node *np; local
461 simple_for_each_link(struct simple_util_priv *priv, struct link_info *li, int (*func_noml)(struct simple_util_priv *priv, struct device_node *np, struct device_node *codec, struct link_info *li, bool is_top), int (*func_dpcm)(struct simple_util_priv *priv, struct device_node *np, struct device_node *codec, struct link_info *li, bool is_top)) argument
557 simple_count_noml(struct simple_util_priv *priv, struct device_node *np, struct device_node *codec, struct link_info *li, bool is_top) argument
593 simple_count_dpcm(struct simple_util_priv *priv, struct device_node *np, struct device_node *codec, struct link_info *li, bool is_top) argument
714 struct device_node *np = dev->of_node; local
[all...]
/linux-master/net/ncsi/
H A Dncsi-manage.c36 struct ncsi_package *np; local
39 NCSI_FOR_EACH_PACKAGE(ndp, np)
40 NCSI_FOR_EACH_CHANNEL(np, nc) {
54 struct ncsi_package *np; local
65 NCSI_FOR_EACH_PACKAGE(ndp, np) {
66 NCSI_FOR_EACH_CHANNEL(np, nc) {
92 struct ncsi_package *np = nc->package; local
93 struct ncsi_dev_priv *ndp = np->ndp;
129 nca.package = np->id;
195 struct ncsi_channel *ncsi_find_channel(struct ncsi_package *np, argument
208 ncsi_add_channel(struct ncsi_package *np, unsigned char id) argument
247 struct ncsi_package *np = nc->package; local
272 struct ncsi_package *np; local
285 struct ncsi_package *np, *tmp; local
313 ncsi_remove_package(struct ncsi_package *np) argument
332 ncsi_find_package_and_channel(struct ncsi_dev_priv *ndp, unsigned char id, struct ncsi_package **np, struct ncsi_channel **nc) argument
436 struct ncsi_package *np; local
470 struct ncsi_package *np; local
859 struct ncsi_package *np; local
903 struct ncsi_package *np; local
986 struct ncsi_package *np = ndp->active_package; local
1228 struct ncsi_package *np; local
1313 struct ncsi_package *np; local
1347 struct ncsi_package *np; local
1609 struct ncsi_package *np; local
1750 struct device_node *np; local
1828 struct ncsi_package *np; local
1861 struct ncsi_package *np; local
1946 struct ncsi_package *np, *tmp; local
[all...]
/linux-master/drivers/net/ethernet/stmicro/stmmac/
H A Dstmmac_platform.c96 struct device_node *np; local
99 np = of_parse_phandle(pdev->dev.of_node, "snps,axi-config", 0);
100 if (!np)
105 of_node_put(np);
109 axi->axi_lpi_en = of_property_read_bool(np, "snps,lpi_en");
110 axi->axi_xit_frm = of_property_read_bool(np, "snps,xit_frm");
111 axi->axi_kbbe = of_property_read_bool(np, "snps,kbbe");
112 axi->axi_fb = of_property_read_bool(np, "snps,fb");
113 axi->axi_mb = of_property_read_bool(np, "snps,mb");
114 axi->axi_rb = of_property_read_bool(np, "snp
309 stmmac_of_get_mdio(struct device_node *np) argument
351 stmmac_mdio_setup(struct plat_stmmacenet_data *plat, struct device_node *np, struct device *dev) argument
391 stmmac_of_get_mac_mode(struct device_node *np) argument
435 struct device_node *np = pdev->dev.of_node; local
[all...]
/linux-master/drivers/net/ethernet/intel/ice/
H A Dice_repr.c29 struct ice_netdev_priv *np = netdev_priv(netdev); local
30 struct ice_repr *repr = np->repr;
52 struct ice_netdev_priv *np = netdev_priv(netdev); local
56 if (ice_is_vf_disabled(np->repr->vf))
58 vsi = np->repr->src_vsi;
81 struct ice_netdev_priv *np = netdev_priv(netdev); local
83 return np->repr;
152 struct ice_netdev_priv *np = netdev_priv(dev); local
153 int vf_id = np->repr->vf->vf_id;
158 tx_ring = np
212 struct ice_netdev_priv *np = (struct ice_netdev_priv *)cb_priv; local
228 struct ice_netdev_priv *np = netdev_priv(netdev); local
335 struct ice_netdev_priv *np; local
450 struct ice_netdev_priv *np = netdev_priv(repr->netdev); local
[all...]
/linux-master/drivers/pinctrl/
H A Ddevicetree.c103 struct pinctrl_dev *of_pinctrl_get(struct device_node *np) argument
105 return get_pinctrl_dev_from_of_node(np);
198 struct device_node *np = p->dev->of_node; local
209 if (!np) {
217 of_node_get(np);
227 prop = of_find_property(np, propname, &size);
240 ret = of_property_read_string_index(np, "pinctrl-names",
291 static int pinctrl_find_cells_size(const struct device_node *np) argument
296 error = of_property_read_u32(np->parent, cells_name, &cells_size);
298 error = of_property_read_u32(np
317 pinctrl_get_list_and_count(const struct device_node *np, const char *list_name, const __be32 **list, int *cells_size, int *nr_elements) argument
351 pinctrl_count_index_with_args(const struct device_node *np, const char *list_name) argument
377 pinctrl_copy_args(const struct device_node *np, const __be32 *list, int index, int nr_cells, int nr_elem, struct of_phandle_args *out_args) argument
410 pinctrl_parse_index_with_args(const struct device_node *np, const char *list_name, int index, struct of_phandle_args *out_args) argument
[all...]
/linux-master/arch/powerpc/include/asm/
H A Disa-bridge.h8 extern void isa_bridge_init_non_pci(struct device_node *np);
/linux-master/drivers/clocksource/
H A Darmv7m_systick.c25 static int __init system_timer_of_register(struct device_node *np) argument
32 base = of_iomap(np, 0);
38 ret = of_property_read_u32(np, "clock-frequency", &rate);
40 clk = of_clk_get(np, 0);
/linux-master/drivers/media/platform/xilinx/
H A Dxilinx-vtc.h32 struct xvtc_device *xvtc_of_get(struct device_node *np);
/linux-master/drivers/clk/ux500/
H A Dreset-prcc.h21 void u8500_prcc_reset_init(struct device_node *np, struct u8500_prcc_reset *ur);

Completed in 342 milliseconds

1234567891011>>