/linux-master/include/linux/usb/ |
H A D | typec_mux.h | 21 struct fwnode_handle *fwnode; member in struct:typec_switch_desc 27 struct typec_switch *fwnode_typec_switch_get(struct fwnode_handle *fwnode); 55 struct fwnode_handle *fwnode; member in struct:typec_mux_desc 63 struct typec_mux *fwnode_typec_mux_get(struct fwnode_handle *fwnode); 76 static inline struct typec_mux *fwnode_typec_mux_get(struct fwnode_handle *fwnode) argument
|
H A D | typec_retimer.h | 24 struct fwnode_handle *fwnode; member in struct:typec_retimer_desc 30 struct typec_retimer *fwnode_typec_retimer_get(struct fwnode_handle *fwnode);
|
H A D | role.h | 22 * @fwnode: The device node to be associated with the role switch 39 struct fwnode_handle *fwnode; member in struct:usb_role_switch_desc 59 usb_role_switch_find_by_fwnode(const struct fwnode_handle *fwnode); 95 usb_role_switch_find_by_fwnode(const struct fwnode_handle *fwnode) argument
|
/linux-master/drivers/acpi/ |
H A D | irq.c | 62 fwspec.fwnode = acpi_get_gsi_domain_id(gsi); 63 if (WARN_ON(!fwspec.fwnode)) { 131 result = &device->fwnode; 150 * @fwnode: matching fwnode 163 static inline void acpi_irq_parse_one_match(struct fwnode_handle *fwnode, argument 169 if (!fwnode) 173 ctx->fwspec->fwnode = fwnode; 203 struct fwnode_handle *fwnode; local 335 acpi_irq_create_hierarchy(unsigned int flags, unsigned int size, struct fwnode_handle *fwnode, const struct irq_domain_ops *ops, void *host_data) argument [all...] |
H A D | viot.c | 22 #include <linux/fwnode.h> 31 struct fwnode_handle *fwnode; member in struct:viot_iommu 81 struct fwnode_handle *fwnode; local 90 fwnode = dev_fwnode(&pdev->dev); 91 if (!fwnode) { 94 * fwnode so the IOMMU subsystem can identify this device. 96 fwnode = acpi_alloc_fwnode_static(); 97 if (!fwnode) { 101 set_primary_fwnode(&pdev->dev, fwnode); 103 viommu->fwnode [all...] |
/linux-master/drivers/leds/ |
H A D | leds-pwm.c | 62 struct led_pwm *led, struct fwnode_handle *fwnode) 65 struct led_init_data init_data = { .fwnode = fwnode }; 74 led_data->pwm = devm_fwnode_pwm_get(dev, fwnode, NULL); 137 struct fwnode_handle *fwnode; local 141 device_for_each_child_node(dev, fwnode) { 144 ret = fwnode_property_read_string(fwnode, "label", &led.name); 145 if (ret && is_of_node(fwnode)) 146 led.name = to_of_node(fwnode)->name; 153 led.active_low = fwnode_property_read_bool(fwnode, 61 led_pwm_add(struct device *dev, struct led_pwm_priv *priv, struct led_pwm *led, struct fwnode_handle *fwnode) argument [all...] |
H A D | led-core.c | 383 struct fwnode_handle *fwnode = led_cdev->dev->fwnode; local 387 count = fwnode_property_count_u32(fwnode, "led-pattern"); 395 if (fwnode_property_read_u32_array(fwnode, "led-pattern", pattern, count)) { 425 struct fwnode_handle *fwnode, 430 if (!fwnode) 433 if (fwnode_property_present(fwnode, "label")) { 434 ret = fwnode_property_read_string(fwnode, "label", &props->label); 440 if (fwnode_property_present(fwnode, "color")) { 441 ret = fwnode_property_read_u32(fwnode, "colo 424 led_parse_fwnode_props(struct device *dev, struct fwnode_handle *fwnode, struct led_properties *props) argument 479 struct fwnode_handle *fwnode = init_data->fwnode; local 537 led_init_default_state_get(struct fwnode_handle *fwnode) argument [all...] |
/linux-master/drivers/usb/typec/ |
H A D | mux.c | 27 static int switch_fwnode_match(struct device *dev, const void *fwnode) argument 32 return device_match_fwnode(dev, fwnode); 35 static void *typec_switch_match(const struct fwnode_handle *fwnode, argument 42 * device type or the device class of the remote port parent that @fwnode 43 * represents, so in order to identify the type or the class of @fwnode 48 if (id && !fwnode_property_present(fwnode, id)) 52 * At this point we are sure that @fwnode is a typec switch in all 56 dev = class_find_device(&typec_mux_class, NULL, fwnode, 64 * @fwnode: The caller device node 71 struct typec_switch *fwnode_typec_switch_get(struct fwnode_handle *fwnode) argument 257 mux_fwnode_match(struct device *dev, const void *fwnode) argument 265 typec_mux_match(const struct fwnode_handle *fwnode, const char *id, void *data) argument 296 fwnode_typec_mux_get(struct fwnode_handle *fwnode) argument [all...] |
/linux-master/drivers/irqchip/ |
H A D | irq-gic-v2m.c | 65 struct fwnode_handle *fwnode; member in struct:v2m_data 143 if (is_of_node(domain->parent->fwnode)) { 144 fwspec.fwnode = domain->parent->fwnode; 149 } else if (is_fwnode_irqchip(domain->parent->fwnode)) { 150 fwspec.fwnode = domain->parent->fwnode; 274 of_node_put(to_of_node(v2m->fwnode)); 275 if (is_fwnode_irqchip(v2m->fwnode)) 276 irq_domain_free_fwnode(v2m->fwnode); 317 gicv2m_init_one(struct fwnode_handle *fwnode, u32 spi_start, u32 nr_spis, struct resource *res, u32 flags) argument 499 struct fwnode_handle *fwnode; local [all...] |
H A D | irq-gic-v4.c | 131 vpe->fwnode = irq_domain_alloc_named_id_fwnode(name, idx); 132 if (!vpe->fwnode) 138 vpe->sgi_domain = irq_domain_create_linear(vpe->fwnode, 16, 152 if (vpe->fwnode) 153 irq_domain_free_fwnode(vpe->fwnode); 162 vm->fwnode = irq_domain_alloc_named_id_fwnode("GICv4-vpe", 164 if (!vm->fwnode) 168 vm->fwnode, vpe_domain_ops, 196 if (vm->fwnode) 197 irq_domain_free_fwnode(vm->fwnode); [all...] |
/linux-master/drivers/net/ethernet/hisilicon/hns/ |
H A D | hns_dsaf_misc.h | 34 platform_device *hns_dsaf_find_platform_device(struct fwnode_handle *fwnode);
|
/linux-master/include/linux/ |
H A D | logic_pio.h | 11 #include <linux/fwnode.h> 20 struct fwnode_handle *fwnode; member in struct:logic_pio_hwaddr 113 struct logic_pio_hwaddr *find_io_range_by_fwnode(struct fwnode_handle *fwnode); 114 unsigned long logic_pio_trans_hwaddr(struct fwnode_handle *fwnode,
|
H A D | irqdomain.h | 24 * code compatibility, this fwnode pointer is "upgraded" to a DT 27 * code offers a fwnode allocator. 56 * @fwnode: Pointer to a firmware-specific descriptor 64 struct fwnode_handle *fwnode; member in struct:irq_fwspec 132 * @fwnode: Pointer to firmware node associated with the irq_domain. Pretty easy 161 struct fwnode_handle *fwnode; member in struct:irq_domain 221 return to_of_node(d->fwnode); 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, 296 is_fwnode_irqchip(struct fwnode_handle *fwnode) argument 305 irq_find_matching_fwnode(struct fwnode_handle *fwnode, enum irq_domain_bus_token bus_token) argument 375 irq_domain_create_linear(struct fwnode_handle *fwnode, unsigned int size, const struct irq_domain_ops *ops, void *host_data) argument 383 irq_domain_create_tree(struct fwnode_handle *fwnode, const struct irq_domain_ops *ops, void *host_data) argument 641 irq_find_matching_fwnode( struct fwnode_handle *fwnode, enum irq_domain_bus_token bus_token) argument [all...] |
/linux-master/drivers/soundwire/ |
H A D | irq.c | 6 #include <linux/fwnode.h> 30 struct fwnode_handle *fwnode) 34 bus->domain = irq_domain_create_linear(fwnode, SDW_MAX_DEVICES, 29 sdw_irq_create(struct sdw_bus *bus, struct fwnode_handle *fwnode) argument
|
/linux-master/drivers/media/v4l2-core/ |
H A D | v4l2-async.c | 24 #include <media/v4l2-fwnode.h> 101 "v4l2-async: fwnode match: need %pfw, trying %pfw\n", 102 sd_fwnode, match->fwnode); 104 if (sd_fwnode == match->fwnode) { 110 if (!fwnode_graph_is_endpoint(match->fwnode)) { 116 asd_dev_fwnode = fwnode_graph_get_port_parent(match->fwnode); 134 "v4l2-async: matching for notifier %pfw, sd fwnode %pfw\n", 135 dev_fwnode(notifier_dev(notifier)), sd->fwnode); 141 "v4l2-async: endpoint fwnode list available, looking for %pfw\n", 142 match->fwnode); 699 __v4l2_async_nf_add_fwnode(struct v4l2_async_notifier *notifier, struct fwnode_handle *fwnode, unsigned int asc_struct_size) argument 762 v4l2_async_subdev_endpoint_add(struct v4l2_subdev *sd, struct fwnode_handle *fwnode) argument 899 struct fwnode_handle *devnode, *fwnode = match->fwnode; local [all...] |
/linux-master/include/media/ |
H A D | v4l2-async.h | 40 * @fwnode: pointer to &struct fwnode_handle to be matched. 56 struct fwnode_handle *fwnode; member in union:v4l2_async_match_desc::__anon675 129 * struct v4l2_async_subdev_endpoint - Entry in sub-device's fwnode list 133 * @endpoint: Endpoint fwnode agains which to match the sub-device 178 struct fwnode_handle *fwnode, 181 * v4l2_async_nf_add_fwnode - Allocate and add a fwnode async 185 * @fwnode: fwnode handle of the sub-device to be matched, pointer to 191 * Allocate a fwnode-matched asc of size asc_struct_size, and add it to the 192 * notifiers @asc_list. The function also gets a reference of the fwnode whic [all...] |
/linux-master/drivers/of/ |
H A D | property.c | 873 static struct fwnode_handle *of_fwnode_get(struct fwnode_handle *fwnode) argument 875 return of_fwnode_handle(of_node_get(to_of_node(fwnode))); 878 static void of_fwnode_put(struct fwnode_handle *fwnode) argument 880 of_node_put(to_of_node(fwnode)); 883 static bool of_fwnode_device_is_available(const struct fwnode_handle *fwnode) argument 885 return of_device_is_available(to_of_node(fwnode)); 888 static bool of_fwnode_device_dma_supported(const struct fwnode_handle *fwnode) argument 894 of_fwnode_device_get_dma_attr(const struct fwnode_handle *fwnode) argument 896 if (of_dma_is_coherent(to_of_node(fwnode))) 902 static bool of_fwnode_property_present(const struct fwnode_handle *fwnode, argument 908 of_fwnode_property_read_int_array(const struct fwnode_handle *fwnode, const char *propname, unsigned int elem_size, void *val, size_t nval) argument 934 of_fwnode_property_read_string_array(const struct fwnode_handle *fwnode, const char *propname, const char **val, size_t nval) argument 945 of_fwnode_get_name(const struct fwnode_handle *fwnode) argument 950 of_fwnode_get_name_prefix(const struct fwnode_handle *fwnode) argument 960 of_fwnode_get_parent(const struct fwnode_handle *fwnode) argument 966 of_fwnode_get_next_child_node(const struct fwnode_handle *fwnode, struct fwnode_handle *child) argument 974 of_fwnode_get_named_child_node(const struct fwnode_handle *fwnode, const char *childname) argument 988 of_fwnode_get_reference_args(const struct fwnode_handle *fwnode, const char *prop, const char *nargs_prop, unsigned int nargs, unsigned int index, struct fwnode_reference_args *args) argument 1020 of_fwnode_graph_get_next_endpoint(const struct fwnode_handle *fwnode, struct fwnode_handle *prev) argument 1028 of_fwnode_graph_get_remote_endpoint(const struct fwnode_handle *fwnode) argument 1035 of_fwnode_graph_get_port_parent(struct fwnode_handle *fwnode) argument 1051 of_fwnode_graph_parse_endpoint(const struct fwnode_handle *fwnode, struct fwnode_endpoint *endpoint) argument 1068 of_fwnode_device_get_match_data(const struct fwnode_handle *fwnode, const struct device *dev) argument 1422 of_fwnode_iomap(struct fwnode_handle *fwnode, int index) argument 1431 of_fwnode_irq_get(const struct fwnode_handle *fwnode, unsigned int index) argument 1437 of_fwnode_add_links(struct fwnode_handle *fwnode) argument [all...] |
/linux-master/drivers/net/mdio/ |
H A D | fwnode_mdio.c | 3 * fwnode helpers for the MDIO (Ethernet PHY) API 6 * out of the fwnode and using it to populate an mii_bus. 20 fwnode_find_pse_control(struct fwnode_handle *fwnode) argument 28 np = to_of_node(fwnode); 40 fwnode_find_mii_timestamper(struct fwnode_handle *fwnode) argument 45 if (is_acpi_node(fwnode)) 48 err = of_parse_phandle_with_fixed_args(to_of_node(fwnode), 91 /* Associate the fwnode with the device structure so it 107 dev_dbg(&mdio->dev, "registered phy %p fwnode at address %i\n", 146 /* Associate the fwnode wit [all...] |
/linux-master/drivers/platform/surface/ |
H A D | surface_gpe.c | 295 struct fwnode_handle *fwnode; local 308 fwnode = fwnode_create_software_node(match->driver_data, NULL); 309 if (IS_ERR(fwnode)) { 310 status = PTR_ERR(fwnode); 320 pdev->dev.fwnode = fwnode; 332 fwnode_remove_software_node(fwnode); 341 struct fwnode_handle *fwnode = surface_gpe_device->dev.fwnode; local 345 fwnode_remove_software_node(fwnode); [all...] |
/linux-master/drivers/iio/ |
H A D | industrialio-backend.c | 283 struct fwnode_handle *fwnode; local 298 fwnode = fwnode_find_reference(dev_fwnode(dev), "io-backends", index); 299 if (IS_ERR(fwnode)) { 300 dev_err_probe(dev, PTR_ERR(fwnode), 302 return ERR_CAST(fwnode); 307 if (!device_match_fwnode(back->dev, fwnode)) 310 fwnode_handle_put(fwnode); 318 fwnode_handle_put(fwnode); 324 * __devm_iio_backend_get_from_fwnode_lookup - Device managed fwnode backend device get 326 * @fwnode 336 __devm_iio_backend_get_from_fwnode_lookup(struct device *dev, struct fwnode_handle *fwnode) argument [all...] |
/linux-master/kernel/irq/ |
H A D | irqdomain.c | 35 struct fwnode_handle fwnode; member in struct:irqchip_fwid 49 static const char *irqchip_fwnode_get_name(const struct fwnode_handle *fwnode) argument 51 struct irqchip_fwid *fwid = container_of(fwnode, struct irqchip_fwid, fwnode); 107 fwnode_init(&fwid->fwnode, &irqchip_fwnode_ops); 108 return &fwid->fwnode; 117 void irq_domain_free_fwnode(struct fwnode_handle *fwnode) argument 121 if (!fwnode || WARN_ON(!is_fwnode_irqchip(fwnode))) 124 fwid = container_of(fwnode, struc 130 __irq_domain_create(struct fwnode_handle *fwnode, unsigned int size, irq_hw_number_t hwirq_max, int direct_max, const struct irq_domain_ops *ops, void *host_data) argument 256 __irq_domain_add(struct fwnode_handle *fwnode, unsigned int size, irq_hw_number_t hwirq_max, int direct_max, const struct irq_domain_ops *ops, void *host_data) argument 357 irq_domain_create_simple(struct fwnode_handle *fwnode, unsigned int size, unsigned int first_irq, const struct irq_domain_ops *ops, void *host_data) argument 412 irq_domain_create_legacy(struct fwnode_handle *fwnode, unsigned int size, unsigned int first_irq, irq_hw_number_t first_hwirq, const struct irq_domain_ops *ops, void *host_data) argument 438 struct fwnode_handle *fwnode = fwspec->fwnode; local 1139 irq_domain_create_hierarchy(struct irq_domain *parent, unsigned int flags, unsigned int size, struct fwnode_handle *fwnode, const struct irq_domain_ops *ops, void *host_data) argument [all...] |
/linux-master/drivers/usb/roles/ |
H A D | class.c | 124 static void *usb_role_switch_match(const struct fwnode_handle *fwnode, const char *id, argument 129 if (id && !fwnode_property_present(fwnode, id)) 132 dev = class_find_device_by_fwnode(&role_class, fwnode); 138 usb_role_switch_is_parent(struct fwnode_handle *fwnode) argument 140 struct fwnode_handle *parent = fwnode_get_parent(fwnode); 178 * @fwnode: The caller device node 181 * the switch using fwnode instead of device entry. 183 struct usb_role_switch *fwnode_usb_role_switch_get(struct fwnode_handle *fwnode) argument 187 sw = usb_role_switch_is_parent(fwnode); 189 sw = fwnode_connection_find_match(fwnode, "us 221 usb_role_switch_find_by_fwnode(const struct fwnode_handle *fwnode) argument [all...] |
/linux-master/sound/soc/intel/boards/ |
H A D | sof_sdw_rt711.c | 28 struct fwnode_handle *fwnode; local 35 fwnode = fwnode_create_software_node(props, NULL); 36 if (IS_ERR(fwnode)) 37 return PTR_ERR(fwnode); 39 ret = device_add_software_node(sdw_dev, to_software_node(fwnode)); 41 fwnode_handle_put(fwnode);
|
/linux-master/include/linux/gpio/ |
H A D | regmap.h | 20 * @fwnode: (Optional) The firmware node. 21 * If not given, the fwnode of the parent is used. 66 struct fwnode_handle *fwnode; member in struct:gpio_regmap_config
|
/linux-master/drivers/leds/rgb/ |
H A D | leds-pwm-multicolor.c | 69 struct fwnode_handle *fwnode; local 75 fwnode_for_each_child_node(mcnode, fwnode) { 77 pwmled->pwm = devm_fwnode_pwm_get(dev, fwnode, NULL); 83 pwmled->active_low = fwnode_property_read_bool(fwnode, "active-low"); 85 ret = fwnode_property_read_u32(fwnode, "color", &color); 98 fwnode_handle_put(fwnode); 104 struct fwnode_handle *mcnode, *fwnode; local 118 fwnode_for_each_child_node(mcnode, fwnode) 147 init_data.fwnode = mcnode;
|