Home
last modified time | relevance | path

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

12345678910>>...94

/linux/include/linux/
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_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_reserved_mem.h36 struct device_node *np, int idx);
38 struct device_node *np,
42 struct reserved_mem *of_reserved_mem_lookup(struct device_node *np);
43 int of_reserved_mem_region_to_resource(const struct device_node *np,
45 int of_reserved_mem_region_to_resource_byname(const struct device_node *np,
47 int of_reserved_mem_region_count(const struct device_node *np);
55 struct device_node *np, int idx) in of_reserved_mem_device_init_by_idx()
61 struct device_node *np, in of_reserved_mem_device_init_by_name()
69 static inline struct reserved_mem *of_reserved_mem_lookup(struct device_node *np) in of_reserved_mem_lookup()
74 static inline int of_reserved_mem_region_to_resource(const struct device_node *np, in of_reserved_mem_region_to_resource()
[all …]
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_pci.h9 struct device_node;
12 struct device_node *of_pci_find_child_device(struct device_node *parent,
14 int of_pci_get_devfn(struct device_node *np);
17 static inline struct device_node *of_pci_find_child_device(struct device_node *parent, in of_pci_find_child_device()
23 static inline int of_pci_get_devfn(struct device_node *np) in of_pci_get_devfn()
/linux/drivers/of/
H A Dof_private.h28 struct device_node *np;
50 extern int of_property_notify(int action, struct device_node *np,
60 static inline int of_property_notify(int action, struct device_node *np, in of_property_notify()
74 int of_node_is_attached(const struct device_node *node);
75 int __of_add_property_sysfs(struct device_node *np, struct property *pp);
76 void __of_remove_property_sysfs(struct device_node *np, const struct property *prop);
77 void __of_update_property_sysfs(struct device_node *np, struct property *newprop,
79 int __of_attach_node_sysfs(struct device_node *np);
80 void __of_detach_node_sysfs(struct device_node *np);
82 static inline int __of_add_property_sysfs(struct device_node *np, struct property *pp) in __of_add_property_sysfs()
[all …]
H A Daddress.c30 int (*match)(struct device_node *parent);
31 void (*count_cells)(struct device_node *child,
44 static void of_bus_default_count_cells(struct device_node *dev, in of_bus_default_count_cells()
137 static bool of_node_is_pcie(const struct device_node *np) in of_node_is_pcie()
147 static int of_bus_pci_match(struct device_node *np) in of_bus_pci_match()
162 static void of_bus_pci_count_cells(struct device_node *np, in of_bus_pci_count_cells()
220 const struct device_node *np, struct resource *res) in of_pci_range_to_resource()
262 int of_range_to_resource(struct device_node *np, int index, struct resource *res) in of_range_to_resource()
284 static int of_bus_isa_match(struct device_node *np) in of_bus_isa_match()
289 static void of_bus_isa_count_cells(struct device_node *child, in of_bus_isa_count_cells()
[all …]
H A Dirq.c39 unsigned int irq_of_parse_and_map(struct device_node *dev, int index) in irq_of_parse_and_map()
61 struct device_node *of_irq_find_parent(struct device_node *child) in of_irq_find_parent()
63 struct device_node *p; in of_irq_find_parent()
111 struct device_node *np; in of_irq_parse_imap_parent()
178 struct device_node *ipar, *tnode, *old = NULL; in of_irq_parse_raw()
244 struct device_node *newpar; in of_irq_parse_raw()
358 int of_irq_parse_one(struct device_node *device, int index, struct of_phandle_args *out_irq) in of_irq_parse_one()
360 struct device_node __free(device_node) *p = NULL; in of_irq_parse_one()
421 int of_irq_to_resource(struct device_node *dev, int index, struct resource *r) in of_irq_to_resource()
458 int of_irq_get(struct device_node *dev, int index) in of_irq_get()
[all …]
/linux/sound/soc/generic/
H A Daudio-graph-card2.c245 static struct device_node *port_to_ports(struct device_node *port) in port_to_ports()
247 struct device_node *ports = of_get_parent(port); in port_to_ports()
256 static enum graph_type __graph_get_type(struct device_node *lnk) in __graph_get_type()
258 struct device_node *np, *parent_np; in __graph_get_type()
303 struct device_node *lnk) in graph_get_type()
336 static int graph_lnk_is_multi(struct device_node *lnk) in graph_lnk_is_multi()
341 static struct device_node *graph_get_next_multi_ep(struct device_node **port, int idx) in graph_get_next_multi_ep()
343 struct device_node *ports __free(device_node) = port_to_ports(*port); in graph_get_next_multi_ep()
344 struct device_node *rep = NULL; in graph_get_next_multi_ep()
372 struct device_node *ep __free(device_node) = of_graph_get_next_port_endpoint(*port, NULL); in graph_get_next_multi_ep()
[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/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/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/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/opp/
H A Dof.c31 static struct device_node *_opp_of_get_opp_desc_node(struct device_node *np, in _opp_of_get_opp_desc_node()
39 struct device_node *dev_pm_opp_of_get_opp_desc_node(struct device *dev) in dev_pm_opp_of_get_opp_desc_node()
48 struct device_node *np __free(device_node); in _managed_opp()
75 struct device_node *opp_np) in _find_opp_of_np()
89 static struct device_node *of_parse_required_opp(struct device_node *np, in of_parse_required_opp()
96 static struct opp_table *_find_table_of_opp_np(struct device_node *opp_np) in _find_table_of_opp_np()
98 struct device_node *opp_table_np __free(device_node); in _find_table_of_opp_np()
146 struct device_node *opp_np) in _opp_table_alloc_required_tables()
149 struct device_node *np __free(device_node); in _opp_table_alloc_required_tables()
174 struct device_node *required_np __free(device_node); in _opp_table_alloc_required_tables()
[all …]
/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/thermal/
H A Dthermal_of.c44 static int thermal_of_get_trip_type(struct device_node *np, in thermal_of_get_trip_type()
63 static int thermal_of_populate_trip(struct device_node *np, in thermal_of_populate_trip()
96 static struct thermal_trip *thermal_of_trips_init(struct device_node *np, int *ntrips) in thermal_of_trips_init()
102 struct device_node *trips __free(device_node) = of_get_child_by_name(np, "trips"); in thermal_of_trips_init()
126 static struct device_node *of_thermal_zone_find(struct device_node *sensor, int id) in of_thermal_zone_find()
130 struct device_node *np __free(device_node) = of_find_node_by_name(NULL, "thermal-zones"); in of_thermal_zone_find()
175 static int thermal_of_monitor_init(struct device_node *np, int *delay, int *pdelay) in thermal_of_monitor_init()
198 static void thermal_of_parameters_init(struct device_node *np, in thermal_of_parameters_init()
225 static struct device_node *thermal_of_zone_get_by_name(struct thermal_zone_device *tz) in thermal_of_zone_get_by_name()
227 struct device_node *np, *tz_np; in thermal_of_zone_get_by_name()
[all …]
/linux/sound/soc/meson/
H A Dmeson-card.h10 struct device_node;
21 struct device_node *node,
31 unsigned int meson_card_parse_daifmt(struct device_node *node,
32 struct device_node *cpu_node);
41 struct device_node *node,
45 struct device_node *node);
48 struct device_node *node,
/linux/arch/powerpc/platforms/pseries/
H A Dpseries.h12 struct device_node;
14 void __init request_event_sources_irqs(struct device_node *np,
48 extern void dlpar_free_cc_nodes(struct device_node *);
50 extern struct device_node *dlpar_configure_connector(__be32,
51 struct device_node *);
52 extern int dlpar_attach_node(struct device_node *, struct device_node *);
53 extern int dlpar_detach_node(struct device_node *);
/linux/arch/sparc/include/asm/
H A Dprom.h31 unsigned int (*irq_build)(struct device_node *, unsigned int, void *);
35 struct device_node *of_find_node_by_cpuid(int cpuid);
36 int of_set_property(struct device_node *node, const char *name, void *val, int len);
38 int of_getintprop_default(struct device_node *np,
51 extern struct device_node *of_console_device;
55 void irq_trans_init(struct device_node *dp);
56 char *build_path_component(struct device_node *dp);
/linux/arch/powerpc/include/asm/
H A Dpmac_low_i2c.h55 extern struct pmac_i2c_bus *pmac_i2c_find_bus(struct device_node *node);
61 extern u8 pmac_i2c_get_dev_addr(struct device_node *device);
64 extern struct device_node *pmac_i2c_get_controller(struct pmac_i2c_bus *bus);
65 extern struct device_node *pmac_i2c_get_bus_node(struct pmac_i2c_bus *bus);
78 extern int pmac_i2c_match_adapter(struct device_node *dev,
83 extern int pmac_low_i2c_lock(struct device_node *np);
84 extern int pmac_low_i2c_unlock(struct device_node *np);
/linux/drivers/clk/ti/
H A Dinterface.c27 static struct clk *_register_interface(struct device_node *node, in _register_interface()
61 static void __init _of_ti_interface_clk_setup(struct device_node *node, in _of_ti_interface_clk_setup()
89 static void __init of_ti_interface_clk_setup(struct device_node *node) in of_ti_interface_clk_setup()
96 static void __init of_ti_no_wait_interface_clk_setup(struct device_node *node) in of_ti_no_wait_interface_clk_setup()
104 static void __init of_ti_hsotgusb_interface_clk_setup(struct device_node *node) in of_ti_hsotgusb_interface_clk_setup()
112 static void __init of_ti_dss_interface_clk_setup(struct device_node *node) in of_ti_dss_interface_clk_setup()
120 static void __init of_ti_ssi_interface_clk_setup(struct device_node *node) in of_ti_ssi_interface_clk_setup()
127 static void __init of_ti_am35xx_interface_clk_setup(struct device_node *node) in of_ti_am35xx_interface_clk_setup()
136 static void __init of_ti_omap2430_interface_clk_setup(struct device_node *node) in of_ti_omap2430_interface_clk_setup()
H A Dgate.c88 static struct clk *_register_gate(struct device_node *node, const char *name, in _register_gate()
126 static void __init _of_ti_gate_clk_setup(struct device_node *node, in _of_ti_gate_clk_setup()
167 _of_ti_composite_gate_clk_setup(struct device_node *node, in _of_ti_composite_gate_clk_setup()
190 of_ti_composite_no_wait_gate_clk_setup(struct device_node *node) in of_ti_composite_no_wait_gate_clk_setup()
198 static void __init of_ti_composite_interface_clk_setup(struct device_node *node) in of_ti_composite_interface_clk_setup()
206 static void __init of_ti_composite_gate_clk_setup(struct device_node *node) in of_ti_composite_gate_clk_setup()
214 static void __init of_ti_clkdm_gate_clk_setup(struct device_node *node) in of_ti_clkdm_gate_clk_setup()
221 static void __init of_ti_hsdiv_gate_clk_setup(struct device_node *node) in of_ti_hsdiv_gate_clk_setup()
229 static void __init of_ti_gate_clk_setup(struct device_node *node) in of_ti_gate_clk_setup()
235 static void __init of_ti_wait_gate_clk_setup(struct device_node *node) in of_ti_wait_gate_clk_setup()
[all …]
/linux/arch/sparc/kernel/
H A Dof_device_common.c16 unsigned int irq_of_parse_and_map(struct device_node *node, int index) in irq_of_parse_and_map()
27 int of_address_to_resource(struct device_node *node, int index, in of_address_to_resource()
40 void __iomem *of_iomap(struct device_node *node, int index) in of_iomap()
60 struct device_node *bus_dp = bus->dev.of_node; in of_propagate_archdata()
61 struct device_node *dp; in of_propagate_archdata()
77 static void get_cells(struct device_node *dp, int *addrc, int *sizec) in get_cells()
89 void of_bus_default_count_cells(struct device_node *dev, int *addrc, int *sizec) in of_bus_default_count_cells()
151 int of_bus_sbus_match(struct device_node *np) in of_bus_sbus_match()
153 struct device_node *dp = np; in of_bus_sbus_match()
174 void of_bus_sbus_count_cells(struct device_node *child, int *addrc, int *sizec) in of_bus_sbus_count_cells()

12345678910>>...94