Home
last modified time | relevance | path

Searched refs:device_node (Results 1 – 25 of 3289) sorted by relevance

12345678910>>...132

/linux/include/linux/
H A Dof.h48 struct device_node { struct
56 struct device_node *parent; argument
57 struct device_node *child; argument
58 struct device_node *sibling; argument
72 struct device_node *np; argument
81 const struct device_node *parent;
91 struct device_node *node;
95 struct device_node *dn;
113 static inline void of_node_init(struct device_node *node) in of_node_init()
128 extern struct device_node *of_node_get(struct device_node *node);
[all …]
H A Dof_graph.h26 const struct device_node *local_node;
41 bool of_graph_is_present(const struct device_node *node);
42 int of_graph_parse_endpoint(const struct device_node *node,
44 unsigned int of_graph_get_endpoint_count(const struct device_node *np);
45 struct device_node *of_graph_get_port_by_id(struct device_node *node, u32 id);
46 struct device_node *of_graph_get_next_endpoint(const struct device_node *parent,
47 struct device_node *previous);
48 struct device_node *of_graph_get_endpoint_by_regs(
49 const struct device_node *parent, int port_reg, int reg);
50 struct device_node *of_graph_get_remote_endpoint(
[all …]
H A Dof_irq.h12 typedef int (*of_irq_init_cb_t)(struct device_node *, struct device_node *);
22 extern struct device_node *of_irq_dflt_pic;
23 int of_irq_parse_oldworld(const struct device_node *device, int index,
28 static inline int of_irq_parse_oldworld(const struct device_node *device, int index, in of_irq_parse_oldworld()
37 extern int of_irq_to_resource(struct device_node *dev, int index,
42 extern int of_irq_parse_one(struct device_node *device, int index,
44 extern int of_irq_count(struct device_node *dev);
45 extern int of_irq_get(struct device_node *dev, int index);
46 extern int of_irq_get_byname(struct device_node *dev, const char *name);
47 extern int of_irq_to_resource_table(struct device_node *dev,
[all …]
H A Dof_mdio.h16 bool of_mdiobus_child_is_phy(struct device_node *child);
17 int __of_mdiobus_register(struct mii_bus *mdio, struct device_node *np,
21 struct device_node *np) in of_mdiobus_register()
27 struct device_node *np, struct module *owner);
31 struct device_node *np) in devm_of_mdiobus_register()
36 struct mdio_device *of_mdio_find_device(struct device_node *np);
37 struct phy_device *of_phy_find_device(struct device_node *phy_np);
39 of_phy_connect(struct net_device *dev, struct device_node *phy_np,
43 of_phy_get_and_connect(struct net_device *dev, struct device_node *np,
46 struct mii_bus *of_mdio_find_bus(struct device_node *mdio_np);
[all …]
H A Dof_address.h12 struct device_node *node;
55 extern u64 of_translate_dma_address(struct device_node *dev,
57 extern const __be32 *of_translate_dma_region(struct device_node *dev, const __be32 *addr,
61 extern u64 of_translate_address(struct device_node *np, const __be32 *addr);
62 extern int of_address_to_resource(struct device_node *dev, int index,
64 extern void __iomem *of_iomap(struct device_node *device, int index);
65 void __iomem *of_io_request_and_map(struct device_node *device,
72 extern const __be32 *__of_get_address(struct device_node *dev, int index, int bar_no,
75 int of_property_read_reg(struct device_node *np, int idx, u64 *addr, u64 *size);
78 struct device_node *node);
[all …]
H A Dof_net.h15 extern int of_get_phy_mode(struct device_node *np, phy_interface_t *interface);
16 extern int of_get_mac_address(struct device_node *np, u8 *mac);
17 extern int of_get_mac_address_nvmem(struct device_node *np, u8 *mac);
18 int of_get_ethdev_address(struct device_node *np, struct net_device *dev);
19 extern struct net_device *of_find_net_device_by_node(struct device_node *np);
21 static inline int of_get_phy_mode(struct device_node *np, in of_get_phy_mode()
27 static inline int of_get_mac_address(struct device_node *np, u8 *mac) in of_get_mac_address()
32 static inline int of_get_mac_address_nvmem(struct device_node *np, u8 *mac) in of_get_mac_address_nvmem()
37 static inline int of_get_ethdev_address(struct device_node *np, struct net_device *dev) in of_get_ethdev_address()
42 static inline struct net_device *of_find_net_device_by_node(struct device_node *np) in of_find_net_device_by_node()
H A Dof_dma.h16 struct device_node;
20 struct device_node *of_node;
35 extern int of_dma_controller_register(struct device_node *np,
39 extern void of_dma_controller_free(struct device_node *np);
41 extern int of_dma_router_register(struct device_node *np,
47 extern struct dma_chan *of_dma_request_slave_channel(struct device_node *np,
55 static inline int of_dma_controller_register(struct device_node *np, in of_dma_controller_register()
63 static inline void of_dma_controller_free(struct device_node *np) in of_dma_controller_free()
67 static inline int of_dma_router_register(struct device_node *np, in of_dma_router_register()
77 static inline struct dma_chan *of_dma_request_slave_channel(struct device_node *np, in of_dma_request_slave_channel()
H A Dof_platform.h12 struct device_node;
53 extern struct platform_device *of_device_alloc(struct device_node *np,
62 extern struct platform_device *of_find_device_by_node(struct device_node *np);
64 static inline struct platform_device *of_find_device_by_node(struct device_node *np) in of_find_device_by_node()
70 extern int of_platform_bus_probe(struct device_node *root,
76 extern struct platform_device *of_platform_device_create(struct device_node *np,
82 extern int of_platform_populate(struct device_node *root,
86 extern int of_platform_default_populate(struct device_node *root,
96 static inline struct platform_device *of_platform_device_create(struct device_node *np, in of_platform_device_create()
107 static inline int of_platform_populate(struct device_node *root, in of_platform_populate()
[all …]
/linux/drivers/of/
H A Dof_private.h17 * @np: Pointer to device_node that the alias stands for
27 struct device_node *np;
46 extern int of_property_notify(int action, struct device_node *np,
56 static inline int of_property_notify(int action, struct device_node *np, in of_property_notify()
70 int of_node_is_attached(const struct device_node *node);
71 int __of_add_property_sysfs(struct device_node *np, struct property *pp);
72 void __of_remove_property_sysfs(struct device_node *np, struct property *prop);
73 void __of_update_property_sysfs(struct device_node *np, struct property *newprop,
75 int __of_attach_node_sysfs(struct device_node *np);
76 void __of_detach_node_sysfs(struct device_node *n
[all...]
H A Dbase.c36 struct device_node *of_root;
38 struct device_node *of_chosen;
40 struct device_node *of_aliases;
41 struct device_node *of_stdout;
59 bool of_node_name_eq(const struct device_node *np, const char *name) in of_node_name_eq()
74 bool of_node_name_prefix(const struct device_node *np, const char *prefix) in of_node_name_prefix()
83 static bool __of_node_is_type(const struct device_node *np, const char *type) in __of_node_is_type()
90 int of_bus_n_addr_cells(struct device_node *np) in of_bus_n_addr_cells()
102 int of_n_addr_cells(struct device_node *np) in of_n_addr_cells()
111 int of_bus_n_size_cells(struct device_node *np) in of_bus_n_size_cells()
[all …]
H A Dproperty.c36 * @node: pointer to device_node containing graph port
41 bool of_graph_is_present(const struct device_node *node) in of_graph_is_present()
43 struct device_node *ports __free(device_node) = of_get_child_by_name(node, "ports"); in of_graph_is_present()
48 struct device_node *port __free(device_node) = of_get_child_by_name(node, "port"); in of_graph_is_present()
68 int of_property_count_elems_of_size(const struct device_node *np, in of_property_count_elems_of_size()
104 static void *of_find_property_value_of_size(const struct device_node *np, in of_find_property_value_of_size()
141 int of_property_read_u32_index(const struct device_node *np, in of_property_read_u32_index()
175 int of_property_read_u64_index(const struct device_node *n
[all...]
H A Daddress.c43 int (*match)(struct device_node *parent);
44 void (*count_cells)(struct device_node *child,
57 static void of_bus_default_count_cells(struct device_node *dev, in of_bus_default_count_cells()
150 static bool of_node_is_pcie(struct device_node *np) in of_node_is_pcie()
160 static int of_bus_pci_match(struct device_node *np) in of_bus_pci_match()
175 static void of_bus_pci_count_cells(struct device_node *np, in of_bus_pci_count_cells()
234 struct device_node *np, struct resource *res) in of_pci_range_to_resource()
276 int of_range_to_resource(struct device_node *np, int index, struct resource *res) in of_range_to_resource()
298 static int of_bus_isa_match(struct device_node *np) in of_bus_isa_count_cells()
303 static void of_bus_isa_count_cells(struct device_node *chil in of_bus_isa_map()
490 __of_translate_address(struct device_node * node,struct device_node * (* get_parent)(const struct device_node *),const __be32 * in_addr,const char * rprop,struct device_node ** host) __of_translate_address() argument
[all...]
/linux/include/drm/
H A Ddrm_of.h18 struct device_node;
36 struct device_node *port);
38 struct device_node *port);
42 struct device_node *node);
46 int drm_of_encoder_active_endpoint(struct device_node *node,
49 int drm_of_find_panel_or_bridge(const struct device_node *np,
53 int drm_of_lvds_get_dual_link_pixel_order(const struct device_node *port1,
54 const struct device_node *port2);
55 int drm_of_lvds_get_data_mapping(const struct device_node *port);
56 int drm_of_get_data_lanes_count(const struct device_node *endpoint,
[all …]
/linux/drivers/video/fbdev/omap2/omapfb/dss/
H A Ddss-of.c18 struct device_node *
19 omapdss_of_get_next_port(const struct device_node *parent, in omapdss_of_get_next_port()
20 struct device_node *prev) in omapdss_of_get_next_port()
22 struct device_node *port = NULL; in omapdss_of_get_next_port()
28 struct device_node *ports; in omapdss_of_get_next_port()
42 struct device_node *ports; in omapdss_of_get_next_port()
64 struct device_node *
65 omapdss_of_get_next_endpoint(const struct device_node *parent, in omapdss_of_get_next_endpoint()
66 struct device_node *prev) in omapdss_of_get_next_endpoint()
68 struct device_node *ep = NULL; in omapdss_of_get_next_endpoint()
[all …]
/linux/sound/soc/generic/
H A Daudio-graph-card2.c240 static struct device_node *port_to_ports(struct device_node *port) in port_to_ports()
242 struct device_node *ports = of_get_parent(port); in port_to_ports()
251 static enum graph_type __graph_get_type(struct device_node *lnk) in __graph_get_type()
253 struct device_node *np, *parent_np; in __graph_get_type()
295 struct device_node *lnk) in graph_get_type()
328 static int graph_lnk_is_multi(struct device_node *lnk) in graph_lnk_is_multi()
333 static struct device_node *graph_get_next_multi_ep(struct device_node **port) in graph_get_next_multi_ep()
335 struct device_node *port in graph_get_next_multi_ep()
[all...]
H A Daudio-graph-card.c24 static struct device_node *port_to_ports(struct device_node *port) in port_to_ports()
26 struct device_node *ports = of_get_parent(port); in port_to_ports()
80 struct device_node *ep, in graph_parse_convert()
83 struct device_node *top = dev->of_node; in graph_parse_convert()
84 struct device_node *port = ep_to_port(ep); in graph_parse_convert()
85 struct device_node *ports = port_to_ports(port); in graph_parse_convert()
86 struct device_node *node = of_graph_get_port_parent(ep); in graph_parse_convert()
99 struct device_node *ep, in graph_parse_node()
134 struct device_node *ep_cp in graph_link_init()
[all...]
H A Dsimple-card.c32 static int simple_parse_platform(struct device_node *node, struct snd_soc_dai_link_component *dlc) in simple_parse_platform()
56 struct device_node *node, in simple_parse_dai()
119 struct device_node *np, in simple_parse_convert()
122 struct device_node *top = dev->of_node; in simple_parse_convert()
123 struct device_node *node = of_get_parent(np); in simple_parse_convert()
134 struct device_node *np, in simple_parse_node()
170 struct device_node *cpu, in simple_link_init()
171 struct device_node *codec, in simple_link_init()
176 struct device_node *top = dev->of_node; in simple_link_init()
179 struct device_node *nod in simple_link_init()
[all...]
/linux/include/linux/mfd/
H A Dsyscon.h17 struct device_node;
20 struct regmap *device_node_to_regmap(struct device_node *np);
21 struct regmap *syscon_node_to_regmap(struct device_node *np);
23 struct regmap *syscon_regmap_lookup_by_phandle(struct device_node *np,
25 struct regmap *syscon_regmap_lookup_by_phandle_args(struct device_node *np,
29 struct regmap *syscon_regmap_lookup_by_phandle_optional(struct device_node *np,
31 int of_syscon_register_regmap(struct device_node *np,
34 static inline struct regmap *device_node_to_regmap(struct device_node *np) in device_node_to_regmap()
39 static inline struct regmap *syscon_node_to_regmap(struct device_node *np) in syscon_node_to_regmap()
50 struct device_node *np, in syscon_regmap_lookup_by_phandle()
[all …]
/linux/drivers/clk/at91/
H A Ddt-compat.c30 static void __init of_sama5d2_clk_audio_pll_frac_setup(struct device_node *np) in of_sama5d2_clk_audio_pll_frac_setup()
36 struct device_node *parent_np; in of_sama5d2_clk_audio_pll_frac_setup()
56 static void __init of_sama5d2_clk_audio_pll_pad_setup(struct device_node *np) in of_sama5d2_clk_audio_pll_pad_setup()
62 struct device_node *parent_np; in of_sama5d2_clk_audio_pll_pad_setup()
82 static void __init of_sama5d2_clk_audio_pll_pmc_setup(struct device_node *np) in of_sama5d2_clk_audio_pll_pmc_setup()
88 struct device_node *parent_np; in of_sama5d2_clk_audio_pll_pmc_setup()
124 static void __init of_sama5d2_clk_generated_setup(struct device_node *np) in of_sama5d2_clk_generated_setup()
132 struct device_node *gcknp, *parent_np; in of_sama5d2_clk_generated_setup()
188 static void __init of_sama5d4_clk_h32mx_setup(struct device_node *np) in of_sama5d4_clk_h32mx_setup()
194 struct device_node *parent_np; in of_sama5d4_clk_h32mx_setup()
[all …]
/linux/include/linux/usb/
H A Dof.h17 enum usb_dr_mode of_usb_get_dr_mode_by_phy(struct device_node *np, int arg0);
18 bool of_usb_host_tpl_support(struct device_node *np);
19 int of_usb_update_otg_caps(struct device_node *np,
22 struct device_node *usb_of_get_device_node(struct usb_device *hub, int port1);
24 struct device_node *usb_of_get_interface_node(struct usb_device *udev,
29 of_usb_get_dr_mode_by_phy(struct device_node *np, int arg0) in of_usb_get_dr_mode_by_phy()
33 static inline bool of_usb_host_tpl_support(struct device_node *np) in of_usb_host_tpl_support()
37 static inline int of_usb_update_otg_caps(struct device_node *np, in of_usb_update_otg_caps()
47 static inline struct device_node *
56 static inline struct device_node *
[all …]
/linux/drivers/gpu/drm/
H A Ddrm_of.c33 struct device_node *port) in drm_of_crtc_port_mask()
61 struct device_node *port) in drm_of_find_possible_crtcs()
63 struct device_node *remote_port, *ep; in drm_of_find_possible_crtcs()
92 struct device_node *node) in drm_of_component_match_add()
117 struct device_node *ep, *port, *remote; in drm_of_component_probe()
194 int drm_of_encoder_active_endpoint(struct device_node *node, in drm_of_encoder_active_endpoint()
198 struct device_node *ep; in drm_of_encoder_active_endpoint()
200 struct device_node *port; in drm_of_encoder_active_endpoint()
237 int drm_of_find_panel_or_bridge(const struct device_node *np, in drm_of_find_panel_or_bridge()
243 struct device_node *remote; in drm_of_find_panel_or_bridge()
[all …]
/linux/drivers/memory/
H A Dof_memory.h13 const struct lpddr2_min_tck *of_get_min_tck(struct device_node *np,
15 const struct lpddr2_timings *of_get_ddr_timings(struct device_node *np_ddr,
18 const struct lpddr3_min_tck *of_lpddr3_get_min_tck(struct device_node *np,
21 of_lpddr3_get_ddr_timings(struct device_node *np_ddr,
24 const struct lpddr2_info *of_lpddr2_get_info(struct device_node *np,
28 *of_get_min_tck(struct device_node *np, struct device *dev) in of_get_min_tck()
34 *of_get_ddr_timings(struct device_node *np_ddr, struct device *dev, in of_get_ddr_timings()
41 *of_lpddr3_get_min_tck(struct device_node *np, struct device *dev) in of_lpddr3_get_min_tck()
47 *of_lpddr3_get_ddr_timings(struct device_node *np_ddr, in of_lpddr3_get_ddr_timings()
54 *of_lpddr2_get_info(struct device_node *np, struct device *dev) in of_lpddr2_get_info()
/linux/drivers/cpuidle/
H A Ddt_idle_genpd.h5 struct device_node;
12 struct generic_pm_domain *dt_idle_pd_alloc(struct device_node *np,
13 int (*parse_state)(struct device_node *, u32 *));
15 int dt_idle_pd_init_topology(struct device_node *np);
17 int dt_idle_pd_remove_topology(struct device_node *np);
30 struct device_node *np, in dt_idle_pd_alloc()
31 int (*parse_state)(struct device_node *, u32 *)) in dt_idle_pd_alloc() argument
36 static inline int dt_idle_pd_init_topology(struct device_node *np) in dt_idle_pd_init_topology()
41 static inline int dt_idle_pd_remove_topology(struct device_node *np) in dt_idle_pd_remove_topology()
/linux/drivers/pci/hotplug/
H A Drpadlpar_core.c41 static struct device_node *find_vio_slot_node(char *drc_name) in find_vio_slot_node()
43 struct device_node *parent = of_find_node_by_name(NULL, "vdevice"); in find_vio_slot_node()
44 struct device_node *dn; in find_vio_slot_node()
61 static struct device_node *find_php_slot_pci_node(char *drc_name, in find_php_slot_pci_node()
64 struct device_node *np; in find_php_slot_pci_node()
77 static struct device_node *find_dlpar_node(char *drc_name, int *node_type) in find_dlpar_node()
79 struct device_node *dn; in find_dlpar_node()
111 static struct slot *find_php_slot(struct device_node *dn) in find_php_slot()
125 struct device_node *dev_dn) in dlpar_find_new_dev()
128 struct device_node *child_dn; in dlpar_find_new_dev()
[all …]
/linux/drivers/net/mdio/
H A Dof_mdio.c32 static int of_get_phy_id(struct device_node *device, u32 *phy_id) in of_get_phy_id()
38 struct device_node *child, u32 addr) in of_mdiobus_phy_device_register()
47 struct device_node *child, u32 addr) in of_mdiobus_register_phy()
53 struct device_node *child, u32 addr) in of_mdiobus_register_device()
115 bool of_mdiobus_child_is_phy(struct device_node *child) in of_mdiobus_child_is_phy()
142 static int __of_mdiobus_parse_phys(struct mii_bus *mdio, struct device_node *np, in __of_mdiobus_parse_phys()
145 struct device_node *child; in __of_mdiobus_parse_phys()
198 int __of_mdiobus_register(struct mii_bus *mdio, struct device_node *np, in __of_mdiobus_register()
201 struct device_node *child; in __of_mdiobus_register()
285 struct mdio_device *of_mdio_find_device(struct device_node *np) in of_mdio_find_device()
[all …]

12345678910>>...132