Searched refs:fwnode (Results 76 - 100 of 649) sorted by relevance

1234567891011>>

/linux-master/drivers/gpio/
H A Dgpio-xgene-sb.c121 fwspec.fwnode = gc->parent->fwnode;
190 parent_fwspec.fwnode = domain->parent->fwnode;
191 if (is_of_node(parent_fwspec.fwnode)) {
197 } else if (is_fwnode_irqchip(parent_fwspec.fwnode)) {
275 0, priv->nirq, pdev->dev.fwnode,
H A Dgpiolib-acpi.c634 args->fwnode = acpi_fwnode_handle(adev);
809 static int acpi_gpio_property_lookup(struct fwnode_handle *fwnode, argument
818 ret = __acpi_node_get_property_reference(fwnode, propname, index, 3,
823 adev = to_acpi_device_node(fwnode);
831 if (!to_acpi_device_node(args.fwnode))
840 lookup->info.adev = to_acpi_device_node(args.fwnode);
904 * @fwnode: pointer to an ACPI firmware node to get the GPIO information from
916 static struct gpio_desc *acpi_get_gpiod_from_data(struct fwnode_handle *fwnode, argument
924 if (!is_acpi_data_node(fwnode))
933 ret = acpi_gpio_property_lookup(fwnode, propnam
951 acpi_find_gpio(struct fwnode_handle *fwnode, const char *con_id, unsigned int idx, enum gpiod_flags *dflags, unsigned long *lookupflags) argument
1239 acpi_gpiochip_parse_own_gpio(struct acpi_gpio_chip *achip, struct fwnode_handle *fwnode, const char **name, unsigned long *lflags, enum gpiod_flags *dflags) argument
1283 struct fwnode_handle *fwnode; local
1413 acpi_gpio_count(const struct fwnode_handle *fwnode, const char *con_id) argument
[all...]
/linux-master/drivers/spi/
H A Dspi-cs42l43.c215 struct fwnode_handle *fwnode = dev_fwnode(cs42l43->dev); local
260 if (is_of_node(fwnode)) {
261 fwnode = fwnode_get_named_child_node(fwnode, "spi");
262 ret = devm_add_action(priv->dev, cs42l43_release_of_node, fwnode);
264 fwnode_handle_put(fwnode);
269 device_set_node(&priv->ctlr->dev, fwnode);
/linux-master/drivers/usb/typec/mux/
H A Dintel_pmc_mux.c574 struct fwnode_handle *fwnode)
583 ret = fwnode_property_read_u8(fwnode, "usb2-port-number", &port->usb2_port);
587 ret = fwnode_property_read_u8(fwnode, "usb3-port-number", &port->usb3_port);
591 ret = fwnode_property_read_string(fwnode, "sbu-orientation", &str);
595 ret = fwnode_property_read_string(fwnode, "hsl-orientation", &str);
602 sw_desc.fwnode = fwnode;
604 sw_desc.name = fwnode_get_name(fwnode);
611 mux_desc.fwnode = fwnode;
573 pmc_usb_register_port(struct pmc_usb *pmc, int index, struct fwnode_handle *fwnode) argument
733 struct fwnode_handle *fwnode = NULL; local
[all...]
/linux-master/drivers/usb/typec/
H A Dstusb160x.c534 struct fwnode_handle *fwnode)
539 chip->capability.fwnode = fwnode;
545 ret = fwnode_property_read_string(fwnode, "power-role", &cap_str);
565 ret = fwnode_property_read_string(fwnode, "typec-power-opmode", &cap_str);
639 struct fwnode_handle *fwnode; local
684 fwnode = device_get_named_child_node(chip->dev, "connector");
685 if (!fwnode)
689 * This fwnode has a "compatible" property, but is never populated as a
693 * fwnode_links to/from this fwnode
533 stusb160x_get_fw_caps(struct stusb160x *chip, struct fwnode_handle *fwnode) argument
[all...]
/linux-master/drivers/net/phy/
H A Dsfp-bus.c20 const struct fwnode_handle *fwnode; member in struct:sfp_bus
403 static struct sfp_bus *sfp_bus_get(const struct fwnode_handle *fwnode) argument
412 if (sfp->fwnode == fwnode) {
421 new->fwnode = fwnode;
609 * sfp_bus_find_fwnode() - parse and locate the SFP bus from fwnode
610 * @fwnode: firmware node for the parent device (MAC or PHY)
626 struct sfp_bus *sfp_bus_find_fwnode(const struct fwnode_handle *fwnode) argument
632 ret = fwnode_property_get_reference_args(fwnode, "sf
[all...]
/linux-master/drivers/iio/
H A Dinkern.c146 struct fwnode_handle *fwnode, int index)
153 err = fwnode_property_get_reference_args(fwnode, "io-channels",
159 idev = bus_find_device_by_fwnode(&iio_bus_type, iiospec.fwnode);
161 fwnode_handle_put(iiospec.fwnode);
171 fwnode_handle_put(iiospec.fwnode);
183 static struct iio_channel *fwnode_iio_channel_get(struct fwnode_handle *fwnode, argument
196 err = __fwnode_iio_channel_get(channel, fwnode, index);
208 __fwnode_iio_channel_get_by_name(struct fwnode_handle *fwnode, const char *name) argument
220 index = fwnode_property_match_string(fwnode, "io-channel-names",
223 chan = fwnode_iio_channel_get(fwnode, inde
145 __fwnode_iio_channel_get(struct iio_channel *channel, struct fwnode_handle *fwnode, int index) argument
258 fwnode_iio_channel_get_by_name(struct fwnode_handle *fwnode, const char *name) argument
293 struct fwnode_handle *fwnode = dev_fwnode(dev); local
431 devm_fwnode_iio_channel_get_by_name(struct device *dev, struct fwnode_handle *fwnode, const char *channel_name) argument
[all...]
/linux-master/drivers/thunderbolt/
H A Dacpi.c18 struct fwnode_handle *fwnode; local
26 fwnode = fwnode_find_reference(acpi_fwnode_handle(adev), "usb4-host-interface", 0);
27 if (IS_ERR(fwnode))
31 if (dev_fwnode(&nhi->pdev->dev) != fwnode)
97 fwnode_handle_put(fwnode);
/linux-master/drivers/power/supply/
H A Dpower_supply_core.c583 struct fwnode_handle *fwnode = NULL; local
594 fwnode = fwnode_handle_get(of_fwnode_handle(battery_np));
602 fwnode = args.fwnode;
605 if (!fwnode)
608 err = fwnode_property_read_string(fwnode, "compatible", &value);
675 if (!fwnode_property_read_string(fwnode, "device-chemistry", &value)) {
693 fwnode_property_read_u32(fwnode, "energy-full-design-microwatt-hours",
695 fwnode_property_read_u32(fwnode, "charge-full-design-microamp-hours",
697 fwnode_property_read_u32(fwnode, "voltag
[all...]
/linux-master/drivers/media/pci/intel/
H A Dipu-bridge.c16 #include <media/v4l2-fwnode.h>
547 fwnode_handle_put(data->board_info.fwnode);
586 data->board_info.fwnode = vcm_fwnode;
601 struct fwnode_handle *fwnode; local
606 fwnode = software_node_fwnode(&sensor->swnodes[SWNODE_IVSC_HID]);
607 if (!fwnode)
610 set_secondary_fwnode(sensor->csi_dev, fwnode);
632 struct fwnode_handle *fwnode, *primary; local
667 fwnode = software_node_fwnode(&sensor->swnodes[
669 if (!fwnode) {
753 ipu_bridge_check_fwnode_graph(struct fwnode_handle *fwnode) argument
774 struct fwnode_handle *fwnode; local
[all...]
/linux-master/include/linux/device/
H A Dbus.h132 int device_match_fwnode(struct device *dev, const void *fwnode);
172 * matching the fwnode.
174 * @fwnode: fwnode of the device to match.
177 bus_find_device_by_fwnode(const struct bus_type *bus, const struct fwnode_handle *fwnode) argument
179 return bus_find_device(bus, NULL, fwnode, device_match_fwnode);
/linux-master/drivers/soundwire/
H A Dmaster.c125 * @fwnode: firmware node handle
128 struct fwnode_handle *fwnode)
145 md->dev.fwnode = fwnode;
127 sdw_master_device_add(struct sdw_bus *bus, struct device *parent, struct fwnode_handle *fwnode) argument
/linux-master/drivers/irqchip/
H A Dirq-sni-exiu.c145 if (is_of_node(fwspec->fwnode)) {
172 if (is_of_node(dom->parent->fwnode)) {
186 parent_fwspec.fwnode = dom->parent->fwnode;
196 static struct exiu_irq_data *exiu_init(const struct fwnode_handle *fwnode, argument
206 if (fwnode_property_read_u32_array(fwnode, "socionext,spi-base",
/linux-master/drivers/pinctrl/bcm/
H A Dpinctrl-bcm63xx.c52 grc.fwnode = &node->fwnode;
/linux-master/drivers/net/ethernet/cadence/
H A Dmacb_pci.c79 plat_info.fwnode = pdev->dev.fwnode;
/linux-master/include/linux/iio/
H A Dconsumer.h103 * @fwnode: Pointer to consumer Firmware node
108 struct iio_channel *fwnode_iio_channel_get_by_name(struct fwnode_handle *fwnode,
115 * @fwnode: Pointer to consumer Firmware node
127 struct fwnode_handle *fwnode,
/linux-master/drivers/soc/ti/
H A Dti_sci_inta_msi.c48 struct irq_domain *ti_sci_inta_msi_create_irq_domain(struct fwnode_handle *fwnode, argument
57 domain = msi_create_irq_domain(fwnode, info, parent);
/linux-master/drivers/pci/hotplug/
H A Dacpiphp_ampere_altra.c88 struct fwnode_handle *fwnode = dev_fwnode(&pdev->dev); local
91 ret = fwnode_property_read_u32_array(fwnode, "uuid", led_service_id, 4);
/linux-master/drivers/leds/
H A Dleds-syscon.c90 init_data.fwnode = of_fwnode_handle(np);
92 state = led_init_default_state_get(init_data.fwnode);
H A Dled-class.c482 if (init_data->fwnode) {
483 fwnode_property_read_string(init_data->fwnode,
487 if (fwnode_property_present(init_data->fwnode,
491 fwnode_property_read_u32(init_data->fwnode,
495 if (fwnode_property_present(init_data->fwnode, "color"))
496 fwnode_property_read_u32(init_data->fwnode, "color",
518 if (init_data && init_data->fwnode)
519 device_set_node(led_cdev->dev, init_data->fwnode);
/linux-master/drivers/net/ethernet/hisilicon/hns/
H A Dhnae.c102 return (data == &hdev->dev->of_node->fwnode);
103 else if (is_acpi_node(hdev->dev->fwnode))
104 return (data == hdev->dev->fwnode);
110 static struct hnae_ae_dev *find_ae(const struct fwnode_handle *fwnode) argument
114 WARN_ON(!fwnode);
116 dev = class_find_device(&hnae_class, NULL, fwnode, __ae_match);
326 const struct fwnode_handle *fwnode,
335 dev = find_ae(fwnode);
325 hnae_get_handle(struct device *owner_dev, const struct fwnode_handle *fwnode, u32 port_id, struct hnae_buf_ops *bops) argument
/linux-master/drivers/leds/flash/
H A Dleds-lm3601x.c322 struct fwnode_handle *fwnode)
348 init_data.fwnode = fwnode;
357 struct fwnode_handle **fwnode)
405 *fwnode = child;
415 struct fwnode_handle *fwnode; local
425 ret = lm3601x_parse_node(led, &fwnode);
439 return lm3601x_register_leds(led, fwnode);
321 lm3601x_register_leds(struct lm3601x_led *led, struct fwnode_handle *fwnode) argument
356 lm3601x_parse_node(struct lm3601x_led *led, struct fwnode_handle **fwnode) argument
/linux-master/drivers/hwmon/
H A Dmax31827.c495 struct fwnode_handle *fwnode; local
502 fwnode = dev_fwnode(dev);
509 prop = fwnode_property_read_bool(fwnode, "adi,comp-int");
512 prop = fwnode_property_read_bool(fwnode, "adi,timeout-enable");
517 if (fwnode_property_present(fwnode, "adi,alarm-pol")) {
518 ret = fwnode_property_read_u32(fwnode, "adi,alarm-pol", &data);
542 if (fwnode_property_present(fwnode, "adi,fault-q")) {
543 ret = fwnode_property_read_u32(fwnode, "adi,fault-q", &data);
/linux-master/drivers/hwtracing/coresight/
H A Dcoresight-platform.c101 coresight_find_device_by_fwnode(struct fwnode_handle *fwnode) argument
109 dev = bus_find_device_by_fwnode(&platform_bus_type, fwnode);
117 return bus_find_device_by_fwnode(&amba_bustype, fwnode);
121 * Find a registered coresight device from a device fwnode.
627 rdev = coresight_find_device_by_fwnode(&r_adev->fwnode);
638 conn->dest_fwnode = fwnode_handle_get(&r_adev->fwnode);
789 if (is_of_node(dev->fwnode))
791 else if (is_acpi_device_node(dev->fwnode))
802 struct fwnode_handle *fwnode = dev_fwnode(dev); local
804 if (IS_ERR_OR_NULL(fwnode))
[all...]
/linux-master/include/acpi/
H A Dacpi_bus.h465 struct fwnode_handle fwnode; member in struct:acpi_device
493 struct fwnode_handle fwnode; member in struct:acpi_data_node
505 bool is_acpi_device_node(const struct fwnode_handle *fwnode);
506 bool is_acpi_data_node(const struct fwnode_handle *fwnode);
508 static inline bool is_acpi_node(const struct fwnode_handle *fwnode) argument
510 return (is_acpi_device_node(fwnode) || is_acpi_data_node(fwnode));
519 struct acpi_device, fwnode) : \
529 struct acpi_data_node, fwnode) : \
533 static inline bool is_acpi_static_node(const struct fwnode_handle *fwnode) argument
539 acpi_data_node_match(const struct fwnode_handle *fwnode, const char *name) argument
[all...]

Completed in 251 milliseconds

1234567891011>>