Home
last modified time | relevance | path

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

12345678910>>...88

/Linux-v4.19/include/linux/
Dof_graph.h26 const struct device_node *local_node;
41 int of_graph_parse_endpoint(const struct device_node *node,
43 int of_graph_get_endpoint_count(const struct device_node *np);
44 struct device_node *of_graph_get_port_by_id(struct device_node *node, u32 id);
45 struct device_node *of_graph_get_next_endpoint(const struct device_node *parent,
46 struct device_node *previous);
47 struct device_node *of_graph_get_endpoint_by_regs(
48 const struct device_node *parent, int port_reg, int reg);
49 struct device_node *of_graph_get_remote_endpoint(
50 const struct device_node *node);
[all …]
Dof.h51 struct device_node { struct
60 struct device_node *parent; argument
61 struct device_node *child; argument
62 struct device_node *sibling; argument
77 struct device_node *np; argument
86 const struct device_node *parent;
96 struct device_node *node;
100 struct device_node *dn;
108 static inline void of_node_init(struct device_node *node) in of_node_init()
123 extern struct device_node *of_node_get(struct device_node *node);
[all …]
Dof_address.h10 struct device_node *node;
29 extern u64 of_translate_dma_address(struct device_node *dev,
33 extern u64 of_translate_address(struct device_node *np, const __be32 *addr);
34 extern int of_address_to_resource(struct device_node *dev, int index,
36 extern struct device_node *of_find_matching_node_by_address(
37 struct device_node *from,
40 extern void __iomem *of_iomap(struct device_node *device, int index);
41 void __iomem *of_io_request_and_map(struct device_node *device,
48 extern const __be32 *of_get_address(struct device_node *dev, int index,
52 struct device_node *node);
[all …]
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 extern int of_irq_parse_oldworld(struct device_node *device, int index,
28 static inline int of_irq_parse_oldworld(struct device_node *device, int index, in of_irq_parse_oldworld()
36 extern int of_irq_parse_one(struct device_node *device, int index,
39 extern int of_irq_to_resource(struct device_node *dev, int index,
45 extern int of_irq_count(struct device_node *dev);
46 extern int of_irq_get(struct device_node *dev, int index);
47 extern int of_irq_get_byname(struct device_node *dev, const char *name);
48 extern int of_irq_to_resource_table(struct device_node *dev,
[all …]
Dof_mdio.h16 extern int of_mdiobus_register(struct mii_bus *mdio, struct device_node *np);
17 extern struct phy_device *of_phy_find_device(struct device_node *phy_np);
19 struct device_node *phy_np,
23 of_phy_get_and_connect(struct net_device *dev, struct device_node *np,
26 struct device_node *phy_np, u32 flags,
29 extern struct mii_bus *of_mdio_find_bus(struct device_node *mdio_np);
30 extern int of_phy_register_fixed_link(struct device_node *np);
31 extern void of_phy_deregister_fixed_link(struct device_node *np);
32 extern bool of_phy_is_fixed_link(struct device_node *np);
36 const struct device_node *np) in of_mdio_parse_addr()
[all …]
Dof_pci.h10 struct device_node;
13 struct device_node *of_pci_find_child_device(struct device_node *parent,
15 int of_pci_get_devfn(struct device_node *np);
17 int of_pci_map_rid(struct device_node *np, u32 rid,
19 struct device_node **target, u32 *id_out);
21 static inline struct device_node *of_pci_find_child_device(struct device_node *parent, in of_pci_find_child_device()
27 static inline int of_pci_get_devfn(struct device_node *np) in of_pci_get_devfn()
32 static inline int of_pci_map_rid(struct device_node *np, u32 rid, in of_pci_map_rid()
34 struct device_node **target, u32 *id_out) in of_pci_map_rid()
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()
Dof_net.h14 extern int of_get_phy_mode(struct device_node *np);
15 extern const void *of_get_mac_address(struct device_node *np);
16 extern int of_get_nvmem_mac_address(struct device_node *np, void *addr);
17 extern struct net_device *of_find_net_device_by_node(struct device_node *np);
19 static inline int of_get_phy_mode(struct device_node *np) in of_get_phy_mode()
24 static inline const void *of_get_mac_address(struct device_node *np) in of_get_mac_address()
29 static inline int of_get_nvmem_mac_address(struct device_node *np, void *addr) in of_get_nvmem_mac_address()
34 static inline struct net_device *of_find_net_device_by_node(struct device_node *np) in of_find_net_device_by_node()
Dof_gpio.h19 struct device_node;
49 extern int of_get_named_gpio_flags(struct device_node *np,
52 extern int of_mm_gpiochip_add_data(struct device_node *np,
55 static inline int of_mm_gpiochip_add(struct device_node *np, in of_mm_gpiochip_add()
69 static inline int of_get_named_gpio_flags(struct device_node *np, in of_get_named_gpio_flags()
107 static inline int of_gpio_named_count(struct device_node *np, const char* propname) in of_gpio_named_count()
118 static inline int of_gpio_count(struct device_node *np) in of_gpio_count()
123 static inline int of_get_gpio_flags(struct device_node *np, int index, in of_get_gpio_flags()
138 static inline int of_get_named_gpio(struct device_node *np, in of_get_named_gpio()
152 static inline int of_get_gpio(struct device_node *np, int index) in of_get_gpio()
Dof_platform.h52 extern struct platform_device *of_device_alloc(struct device_node *np,
56 extern struct platform_device *of_find_device_by_node(struct device_node *np);
58 static inline struct platform_device *of_find_device_by_node(struct device_node *np) in of_find_device_by_node()
65 extern struct platform_device *of_platform_device_create(struct device_node *np,
70 extern int of_platform_bus_probe(struct device_node *root,
74 extern int of_platform_populate(struct device_node *root,
78 extern int of_platform_default_populate(struct device_node *root,
87 static inline int of_platform_populate(struct device_node *root, in of_platform_populate()
94 static inline int of_platform_default_populate(struct device_node *root, in of_platform_default_populate()
Dreset.h8 struct device_node;
18 struct reset_control *__of_reset_control_get(struct device_node *node,
32 struct reset_control *of_reset_control_array_get(struct device_node *np,
67 struct device_node *node, in __of_reset_control_get()
95 of_reset_control_array_get(struct device_node *np, bool shared, bool optional) in of_reset_control_array_get()
184 struct device_node *node, const char *id) in of_reset_control_get_exclusive()
209 struct device_node *node, const char *id) in of_reset_control_get_shared()
226 struct device_node *node, int index) in of_reset_control_get_exclusive_by_index()
254 struct device_node *node, int index) in of_reset_control_get_shared_by_index()
348 struct device_node *node, const char *id) in of_reset_control_get()
[all …]
/Linux-v4.19/drivers/of/
Dof_private.h25 struct device_node *np;
35 extern int of_property_notify(int action, struct device_node *np,
45 static inline int of_property_notify(int action, struct device_node *np, in of_property_notify()
53 int of_node_is_attached(struct device_node *node);
54 int __of_add_property_sysfs(struct device_node *np, struct property *pp);
55 void __of_remove_property_sysfs(struct device_node *np, struct property *prop);
56 void __of_update_property_sysfs(struct device_node *np, struct property *newprop,
58 int __of_attach_node_sysfs(struct device_node *np);
59 void __of_detach_node_sysfs(struct device_node *np);
61 static inline int __of_add_property_sysfs(struct device_node *np, struct property *pp) in __of_add_property_sysfs()
[all …]
Dbase.c35 struct device_node *of_root;
37 struct device_node *of_chosen;
38 struct device_node *of_aliases;
39 struct device_node *of_stdout;
57 bool of_node_name_eq(const struct device_node *np, const char *name) in of_node_name_eq()
71 bool of_node_name_prefix(const struct device_node *np, const char *prefix) in of_node_name_prefix()
79 int of_n_addr_cells(struct device_node *np) in of_n_addr_cells()
94 int of_n_size_cells(struct device_node *np) in of_n_size_cells()
110 int __weak of_node_to_nid(struct device_node *np) in of_node_to_nid()
116 static struct device_node **phandle_cache;
[all …]
Dproperty.c43 int of_property_count_elems_of_size(const struct device_node *np, in of_property_count_elems_of_size()
78 static void *of_find_property_value_of_size(const struct device_node *np, in of_find_property_value_of_size()
113 int of_property_read_u32_index(const struct device_node *np, in of_property_read_u32_index()
145 int of_property_read_u64_index(const struct device_node *np, in of_property_read_u64_index()
183 int of_property_read_variable_u8_array(const struct device_node *np, in of_property_read_variable_u8_array()
231 int of_property_read_variable_u16_array(const struct device_node *np, in of_property_read_variable_u16_array()
276 int of_property_read_variable_u32_array(const struct device_node *np, in of_property_read_variable_u32_array()
315 int of_property_read_u64(const struct device_node *np, const char *propname, in of_property_read_u64()
350 int of_property_read_variable_u64_array(const struct device_node *np, in of_property_read_variable_u64_array()
393 int of_property_read_string(const struct device_node *np, const char *propname, in of_property_read_string()
[all …]
Daddress.c22 static struct of_bus *of_match_bus(struct device_node *np);
23 static int __of_address_to_resource(struct device_node *dev,
44 int (*match)(struct device_node *parent);
45 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()
106 static int of_bus_pci_match(struct device_node *np) in of_bus_pci_match()
117 static void of_bus_pci_count_cells(struct device_node *np, in of_bus_pci_count_cells()
177 const __be32 *of_get_pci_address(struct device_node *dev, int bar_no, u64 *size, in of_get_pci_address()
182 struct device_node *parent; in of_get_pci_address()
221 int of_pci_address_to_resource(struct device_node *dev, int bar, in of_pci_address_to_resource()
[all …]
/Linux-v4.19/drivers/video/fbdev/omap2/omapfb/dss/
Ddss-of.c26 struct device_node *
27 omapdss_of_get_next_port(const struct device_node *parent, in omapdss_of_get_next_port()
28 struct device_node *prev) in omapdss_of_get_next_port()
30 struct device_node *port = NULL; in omapdss_of_get_next_port()
36 struct device_node *ports; in omapdss_of_get_next_port()
50 struct device_node *ports; in omapdss_of_get_next_port()
72 struct device_node *
73 omapdss_of_get_next_endpoint(const struct device_node *parent, in omapdss_of_get_next_endpoint()
74 struct device_node *prev) in omapdss_of_get_next_endpoint()
76 struct device_node *ep = NULL; in omapdss_of_get_next_endpoint()
[all …]
/Linux-v4.19/include/drm/
Ddrm_of.h17 struct device_node;
21 struct device_node *port);
23 struct device_node *port);
27 struct device_node *node);
31 int drm_of_encoder_active_endpoint(struct device_node *node,
34 int drm_of_find_panel_or_bridge(const struct device_node *np,
40 struct device_node *port) in drm_of_crtc_port_mask()
46 struct device_node *port) in drm_of_find_possible_crtcs()
55 struct device_node *node) in drm_of_component_match_add()
67 static inline int drm_of_encoder_active_endpoint(struct device_node *node, in drm_of_encoder_active_endpoint()
[all …]
/Linux-v4.19/include/linux/usb/
Dof.h18 enum usb_dr_mode of_usb_get_dr_mode_by_phy(struct device_node *np, int arg0);
19 bool of_usb_host_tpl_support(struct device_node *np);
20 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()
42 static inline struct device_node *
51 static inline struct device_node *
[all …]
/Linux-v4.19/drivers/pci/hotplug/
Drpadlpar_core.c40 static struct device_node *find_vio_slot_node(char *drc_name) in find_vio_slot_node()
42 struct device_node *parent = of_find_node_by_name(NULL, "vdevice"); in find_vio_slot_node()
43 struct device_node *dn = NULL; in find_vio_slot_node()
59 static struct device_node *find_php_slot_pci_node(char *drc_name, in find_php_slot_pci_node()
62 struct device_node *np = NULL; in find_php_slot_pci_node()
74 static struct device_node *find_dlpar_node(char *drc_name, int *node_type) in find_dlpar_node()
76 struct device_node *dn; in find_dlpar_node()
108 static struct slot *find_php_slot(struct device_node *dn) in find_php_slot()
122 struct device_node *dev_dn) in dlpar_find_new_dev()
125 struct device_node *child_dn; in dlpar_find_new_dev()
[all …]
/Linux-v4.19/arch/powerpc/platforms/pseries/
Dpseries.h16 struct device_node;
18 extern void request_event_sources_irqs(struct device_node *np,
53 extern void dlpar_free_cc_nodes(struct device_node *);
55 extern struct device_node *dlpar_configure_connector(__be32,
56 struct device_node *);
57 extern int dlpar_attach_node(struct device_node *, struct device_node *);
58 extern int dlpar_detach_node(struct device_node *);
/Linux-v4.19/drivers/staging/media/imx/
Dimx-media-of.c23 static int of_get_port_count(const struct device_node *np) in of_get_port_count()
25 struct device_node *ports, *child; in of_get_port_count()
44 static bool of_get_remote(struct device_node *epnode, in of_get_remote()
45 struct device_node **remote_node) in of_get_remote()
47 struct device_node *rp, *rpp; in of_get_remote()
48 struct device_node *remote; in of_get_remote()
76 of_parse_subdev(struct imx_media_dev *imxmd, struct device_node *sd_np, in of_parse_subdev()
109 struct device_node *epnode = NULL, *port, *remote_np; in of_parse_subdev()
140 struct device_node *np) in imx_media_add_of_subdevs()
142 struct device_node *csi_np; in imx_media_add_of_subdevs()
[all …]
/Linux-v4.19/drivers/gpu/drm/omapdrm/dss/
Ddss-of.c24 struct device_node *dss_of_port_get_parent_device(struct device_node *port) in dss_of_port_get_parent_device()
26 struct device_node *np; in dss_of_port_get_parent_device()
48 u32 dss_of_port_get_port_number(struct device_node *port) in dss_of_port_get_port_number()
61 omapdss_of_find_source_for_first_ep(struct device_node *node) in omapdss_of_find_source_for_first_ep()
63 struct device_node *ep; in omapdss_of_find_source_for_first_ep()
64 struct device_node *src_port; in omapdss_of_find_source_for_first_ep()
/Linux-v4.19/arch/sparc/include/asm/
Dprom.h35 unsigned int (*irq_build)(struct device_node *, unsigned int, void *);
39 struct device_node *of_find_node_by_cpuid(int cpuid);
40 int of_set_property(struct device_node *node, const char *name, void *val, int len);
42 int of_getintprop_default(struct device_node *np,
55 extern struct device_node *of_console_device;
59 void irq_trans_init(struct device_node *dp);
60 char *build_path_component(struct device_node *dp);
/Linux-v4.19/arch/powerpc/platforms/cell/
Dcbe_regs.c30 struct device_node *cpu_node;
31 struct device_node *be_node;
41 struct device_node *cpu_node;
42 struct device_node *be_node;
51 static struct cbe_regs_map *cbe_find_map(struct device_node *np) in cbe_find_map()
54 struct device_node *tmp_np; in cbe_find_map()
81 struct cbe_pmd_regs __iomem *cbe_get_pmd_regs(struct device_node *np) in cbe_get_pmd_regs()
99 struct cbe_pmd_shadow_regs *cbe_get_pmd_shadow_regs(struct device_node *np) in cbe_get_pmd_shadow_regs()
115 struct cbe_iic_regs __iomem *cbe_get_iic_regs(struct device_node *np) in cbe_get_iic_regs()
131 struct cbe_mic_tm_regs __iomem *cbe_get_mic_tm_regs(struct device_node *np) in cbe_get_mic_tm_regs()
[all …]
/Linux-v4.19/arch/powerpc/include/asm/
Dpmac_low_i2c.h60 extern struct pmac_i2c_bus *pmac_i2c_find_bus(struct device_node *node);
66 extern u8 pmac_i2c_get_dev_addr(struct device_node *device);
69 extern struct device_node *pmac_i2c_get_controller(struct pmac_i2c_bus *bus);
70 extern struct device_node *pmac_i2c_get_bus_node(struct pmac_i2c_bus *bus);
83 extern int pmac_i2c_match_adapter(struct device_node *dev,
88 extern int pmac_low_i2c_lock(struct device_node *np);
89 extern int pmac_low_i2c_unlock(struct device_node *np);

12345678910>>...88