Home
last modified time | relevance | path

Searched refs:fwnode (Results 1 – 25 of 43) sorted by relevance

12

/include/linux/
Dfwnode.h84 struct fwnode_handle *fwnode; member
115 struct fwnode_handle *(*get)(struct fwnode_handle *fwnode);
116 void (*put)(struct fwnode_handle *fwnode);
117 bool (*device_is_available)(const struct fwnode_handle *fwnode);
118 const void *(*device_get_match_data)(const struct fwnode_handle *fwnode,
120 bool (*property_present)(const struct fwnode_handle *fwnode,
122 int (*property_read_int_array)(const struct fwnode_handle *fwnode,
130 const char *(*get_name)(const struct fwnode_handle *fwnode);
131 const char *(*get_name_prefix)(const struct fwnode_handle *fwnode);
132 struct fwnode_handle *(*get_parent)(const struct fwnode_handle *fwnode);
[all …]
Dproperty.h52 bool fwnode_device_is_available(const struct fwnode_handle *fwnode);
53 bool fwnode_property_present(const struct fwnode_handle *fwnode,
55 int fwnode_property_read_u8_array(const struct fwnode_handle *fwnode,
58 int fwnode_property_read_u16_array(const struct fwnode_handle *fwnode,
61 int fwnode_property_read_u32_array(const struct fwnode_handle *fwnode,
64 int fwnode_property_read_u64_array(const struct fwnode_handle *fwnode,
67 int fwnode_property_read_string_array(const struct fwnode_handle *fwnode,
70 int fwnode_property_read_string(const struct fwnode_handle *fwnode,
72 int fwnode_property_match_string(const struct fwnode_handle *fwnode,
74 int fwnode_property_get_reference_args(const struct fwnode_handle *fwnode,
[all …]
Dirqdomain.h63 struct fwnode_handle *fwnode; member
168 struct fwnode_handle *fwnode; member
228 return to_of_node(d->fwnode); in irq_domain_get_of_node()
259 void irq_domain_free_fwnode(struct fwnode_handle *fwnode);
260 struct irq_domain *__irq_domain_add(struct fwnode_handle *fwnode, unsigned int size,
264 struct irq_domain *irq_domain_create_simple(struct fwnode_handle *fwnode,
275 struct irq_domain *irq_domain_create_legacy(struct fwnode_handle *fwnode,
292 return node ? &node->fwnode : NULL; in of_node_to_fwnode()
297 static inline bool is_fwnode_irqchip(struct fwnode_handle *fwnode) in is_fwnode_irqchip() argument
299 return fwnode && fwnode->ops == &irqchip_fwnode_ops; in is_fwnode_irqchip()
[all …]
Dirq_sim.h19 struct irq_domain *irq_domain_create_sim(struct fwnode_handle *fwnode,
22 struct fwnode_handle *fwnode,
Dacpi_mdio.h12 int __acpi_mdiobus_register(struct mii_bus *mdio, struct fwnode_handle *fwnode,
22 acpi_mdiobus_register(struct mii_bus *mdio, struct fwnode_handle *fwnode) in acpi_mdiobus_register() argument
Dacpi.h43 #define ACPI_COMPANION(dev) to_acpi_device_node((dev)->fwnode)
47 #define ACPI_HANDLE_FWNODE(fwnode) \ argument
48 acpi_device_handle(to_acpi_device_node(fwnode))
52 struct fwnode_handle *fwnode; in acpi_alloc_fwnode_static() local
54 fwnode = kzalloc(sizeof(struct fwnode_handle), GFP_KERNEL); in acpi_alloc_fwnode_static()
55 if (!fwnode) in acpi_alloc_fwnode_static()
58 fwnode_init(fwnode, &acpi_static_fwnode_ops); in acpi_alloc_fwnode_static()
60 return fwnode; in acpi_alloc_fwnode_static()
63 static inline void acpi_free_fwnode_static(struct fwnode_handle *fwnode) in acpi_free_fwnode_static() argument
65 if (WARN_ON(!is_acpi_static_node(fwnode))) in acpi_free_fwnode_static()
[all …]
Dlogic_pio.h20 struct fwnode_handle *fwnode; member
116 struct logic_pio_hwaddr *find_io_range_by_fwnode(struct fwnode_handle *fwnode);
117 unsigned long logic_pio_trans_hwaddr(struct fwnode_handle *fwnode,
Dmsi.h407 struct irq_domain *msi_create_irq_domain(struct fwnode_handle *fwnode,
418 struct irq_domain *platform_msi_create_irq_domain(struct fwnode_handle *fwnode,
452 struct irq_domain *pci_msi_create_irq_domain(struct fwnode_handle *fwnode,
Dof.h55 struct fwnode_handle fwnode; member
111 fwnode_init(&node->fwnode, &of_fwnode_ops); in of_node_init()
155 static inline bool is_of_node(const struct fwnode_handle *fwnode) in is_of_node() argument
157 return !IS_ERR_OR_NULL(fwnode) && fwnode->ops == &of_fwnode_ops; in is_of_node()
166 struct device_node, fwnode) : \
175 &__of_fwnode_handle_node->fwnode : NULL; \
460 static inline bool is_of_node(const struct fwnode_handle *fwnode) in is_of_node() argument
465 static inline struct device_node *to_of_node(const struct fwnode_handle *fwnode) in to_of_node() argument
Dpwm.h434 struct fwnode_handle *fwnode,
542 devm_fwnode_pwm_get(struct device *dev, struct fwnode_handle *fwnode, in devm_fwnode_pwm_get() argument
/include/linux/usb/
Dtypec_mux.h19 struct fwnode_handle *fwnode; member
25 struct typec_switch *fwnode_typec_switch_get(struct fwnode_handle *fwnode);
53 struct fwnode_handle *fwnode; member
59 struct typec_mux *fwnode_typec_mux_get(struct fwnode_handle *fwnode,
Drole.h39 struct fwnode_handle *fwnode; member
59 usb_role_switch_find_by_fwnode(const struct fwnode_handle *fwnode);
95 usb_role_switch_find_by_fwnode(const struct fwnode_handle *fwnode) in usb_role_switch_find_by_fwnode() argument
Dtypec.h259 struct fwnode_handle *fwnode; member
302 struct fwnode_handle *fwnode);
Dtcpm.h127 struct fwnode_handle *fwnode; member
/include/media/
Dv4l2-fwnode.h279 int v4l2_fwnode_endpoint_parse(struct fwnode_handle *fwnode,
337 int v4l2_fwnode_endpoint_alloc_parse(struct fwnode_handle *fwnode,
358 int v4l2_fwnode_parse_link(struct fwnode_handle *fwnode,
402 int v4l2_fwnode_connector_parse(struct fwnode_handle *fwnode,
427 int v4l2_fwnode_connector_add_link(struct fwnode_handle *fwnode,
Dv4l2-async.h66 struct fwnode_handle *fwnode; member
161 struct fwnode_handle *fwnode,
178 #define v4l2_async_notifier_add_fwnode_subdev(notifier, fwnode, type) \ argument
179 ((type *)__v4l2_async_notifier_add_fwnode_subdev(notifier, fwnode, \
/include/linux/irqchip/
Dirq-partition-percpu.h23 struct partition_desc *partition_create_desc(struct fwnode_handle *fwnode,
37 struct partition_desc *partition_create_desc(struct fwnode_handle *fwnode, in partition_create_desc() argument
Darm-gic-v4.h20 struct fwnode_handle *fwnode; member
54 struct fwnode_handle *fwnode; member
/include/acpi/
Dacpi_bus.h363 struct fwnode_handle fwnode; member
394 struct fwnode_handle fwnode; member
406 bool is_acpi_device_node(const struct fwnode_handle *fwnode);
407 bool is_acpi_data_node(const struct fwnode_handle *fwnode);
409 static inline bool is_acpi_node(const struct fwnode_handle *fwnode) in is_acpi_node() argument
411 return (is_acpi_device_node(fwnode) || is_acpi_data_node(fwnode)); in is_acpi_node()
420 struct acpi_device, fwnode) : \
430 struct acpi_data_node, fwnode) : \
434 static inline bool is_acpi_static_node(const struct fwnode_handle *fwnode) in is_acpi_static_node() argument
436 return !IS_ERR_OR_NULL(fwnode) && in is_acpi_static_node()
[all …]
/include/linux/soc/ti/
Dti_sci_inta_msi.h16 *ti_sci_inta_msi_create_irq_domain(struct fwnode_handle *fwnode,
/include/linux/gpio/
Dregmap.h66 struct fwnode_handle *fwnode; member
Dconsumer.h175 struct gpio_desc *fwnode_get_named_gpiod(struct fwnode_handle *fwnode,
179 struct gpio_desc *fwnode_gpiod_get_index(struct fwnode_handle *fwnode,
545 struct gpio_desc *fwnode_get_named_gpiod(struct fwnode_handle *fwnode, in fwnode_get_named_gpiod() argument
554 struct gpio_desc *fwnode_gpiod_get_index(struct fwnode_handle *fwnode, in fwnode_gpiod_get_index() argument
564 struct fwnode_handle *fwnode, in devm_fwnode_gpiod_get_index() argument
576 struct fwnode_handle *fwnode, in devm_fwnode_gpiod_get() argument
581 return devm_fwnode_gpiod_get_index(dev, fwnode, con_id, 0, in devm_fwnode_gpiod_get()
/include/linux/device/
Dbus.h148 int device_match_fwnode(struct device *dev, const void *fwnode);
203 bus_find_device_by_fwnode(struct bus_type *bus, const struct fwnode_handle *fwnode) in bus_find_device_by_fwnode() argument
205 return bus_find_device(bus, NULL, fwnode, device_match_fwnode); in bus_find_device_by_fwnode()
Ddriver.h202 const struct fwnode_handle *fwnode) in driver_find_device_by_fwnode() argument
204 return driver_find_device(drv, NULL, fwnode, device_match_fwnode); in driver_find_device_by_fwnode()
Dclass.h159 const struct fwnode_handle *fwnode) in class_find_device_by_fwnode() argument
161 return class_find_device(class, NULL, fwnode, device_match_fwnode); in class_find_device_by_fwnode()

12