Lines Matching refs:device
13 * device tree to actual irq numbers on an interrupt controller
19 #include <linux/device.h>
30 * @dev: Device node of the device whose interrupt is to be mapped
48 * of_irq_find_parent - Given a device node, find its interrupt parent node
49 * @child: pointer to device node
81 * @addr: address specifier (start of "reg" property of the device) in be32 format
86 * properties, for example when resolving PCI interrupts when no device
130 * trick of looking for the parent here as some device-trees rely on it
277 * of_irq_parse_one - Resolve an interrupt for a device
278 * @device: the device whose interrupt is to be resolved
286 int of_irq_parse_one(struct device_node *device, int index, struct of_phandle_args *out_irq)
294 pr_debug("of_irq_parse_one: dev=%pOF, index=%d\n", device, index);
298 return of_irq_parse_oldworld(device, index, out_irq);
301 addr = of_get_property(device, "reg", &addr_len);
310 res = of_parse_phandle_with_args(device, "interrupts-extended",
316 p = of_irq_find_parent(device);
332 res = of_property_read_u32_index(device, "interrupts",
352 * @dev: pointer to device tree node
387 * @dev: pointer to device tree node
414 * @dev: pointer to device tree node
438 * @dev: pointer to device tree node
453 * @dev: pointer to device tree node
483 * This function scans the device tree for matching interrupt controller nodes,
586 static u32 __of_msi_map_id(struct device *dev, struct device_node **np,
589 struct device *parent_dev;
593 * Walk up the device parent links looking for one with a
604 * of_msi_map_id - Map a MSI ID for a device.
605 * @dev: device for which the mapping is to be done.
606 * @msi_np: device node of the expected msi controller.
607 * @id_in: unmapped MSI ID for the device.
609 * Walk up the device hierarchy looking for devices with a "msi-map"
614 u32 of_msi_map_id(struct device *dev, struct device_node *msi_np, u32 id_in)
621 * @dev: device for which the mapping is to be done.
625 * Walk up the device hierarchy looking for devices with a "msi-map"
628 * Returns: the MSI domain for this device (or NULL on failure)
630 struct irq_domain *of_msi_map_get_device_domain(struct device *dev, u32 id,
641 * @dev: device for which the domain is requested
642 * @np: device node for @dev
648 * Returns: the MSI domain for this device (or NULL on failure).
650 struct irq_domain *of_msi_get_domain(struct device *dev,
687 * of_msi_configure - Set the msi_domain field of a device
688 * @dev: device structure to associate with an MSI irq domain
689 * @np: device node for that device
691 void of_msi_configure(struct device *dev, struct device_node *np)