id stringlengths 4 63 | text stringlengths 153 8.81M |
|---|---|
of_node_init(9) | NAME of_node_init - initialize a devicetree node
SYNOPSIS void of_node_init (struct device_node *node );
ARGUMENTS node Pointer to device node that has been created by kzalloc
DESCRIPTION On return the device_node refcount is set to one. Use of_node_put on node when done to free the memory allocated for i... |
of_node_put(9) | NAME of_node_put - Decrement refcount of a node
SYNOPSIS void of_node_put (struct device_node *node );
ARGUMENTS node Node to dec refcount, NULL is supported to simplify writing of callers
SEE ALSO Kernel file ./drivers/of/dynamic.c of_node_get(9), of_attach_node(9), of_detach_node(9), of_node_release(9), __... |
of_node_put_kunit(9) | NAME of_node_put_kunit - Test managed of_node_put()
SYNOPSIS void of_node_put_kunit (struct kunit *test , struct device_node *node );
ARGUMENTS test test context
node node to pass to `of_node_put`
DESCRIPTION Just like of_node_put, except the node is managed by the test case and is automaticall... |
of_node_release(9) | NAME of_node_release - release a dynamically allocated node
SYNOPSIS void of_node_release (struct kobject *kobj );
ARGUMENTS kobj kernel object of the node to be released
DESCRIPTION In of_node_put this function is passed to kref_put as the destructor.
SEE ALSO Kernel file ./drivers/of/dynamic.c of_node_g... |
of_nvmem_cell_get(9) | NAME of_nvmem_cell_get - Get a nvmem cell from given device node and cell id
SYNOPSIS struct nvmem_cell * of_nvmem_cell_get (struct device_node *np , const char *id );
ARGUMENTS np Device tree node that uses the nvmem cell.
id nvmem cell name from nvmem-cell-names property, or NULL for the c... |
of_nvmem_device_get(9) | NAME of_nvmem_device_get - Get nvmem device from a given id
SYNOPSIS struct nvmem_device * of_nvmem_device_get (struct device_node *np , const char *id );
ARGUMENTS np Device tree node that uses the nvmem device.
id nvmem name from nvmem-names property.
RETURN ERR_PTR on error or a valid po... |
of_nvmem_layout_get_container(9) | NAME of_nvmem_layout_get_container - Get OF node of layout container
SYNOPSIS struct device_node * of_nvmem_layout_get_container (struct nvmem_device *nvmem );
ARGUMENTS nvmem nvmem device
RETURN a node pointer with refcount incremented or NULL if no container exists. Use of_node_put on it when done.
SEE ALSO... |
of_on(9) | NAME of_on - Get the kernfs_open_node of the specified kernfs_open_file
SYNOPSIS struct kernfs_open_node * of_on (struct kernfs_open_file *of );
ARGUMENTS of target kernfs_open_file
RETURN the kernfs_open_node of the kernfs_open_file
SEE ALSO Kernel file ./fs/kernfs/file.c kernfs_deref_open_node_locked(9),... |
of_overlay_apply_kunit(9) | NAME of_overlay_apply_kunit - Test managed of_overlay_fdt_apply() for built-in overlays
SYNOPSIS of_overlay_apply_kunit (test , overlay_name );
ARGUMENTS test test context
overlay_name
name of overlay to apply
DESCRIPTION This macro is used to apply a device tree overlay built with... |
of_overlay_fdt_apply(9) | NAME of_overlay_fdt_apply - Create and apply an overlay changeset
SYNOPSIS int of_overlay_fdt_apply (const void *overlay_fdt , u32 overlay_fdt_size , int *ret_ovcs_id , const struct device_node *base );
ARGUMENTS overlay_fdt pointer to overlay FDT
overlay_fdt_size
number of bytes in overlay... |
of_overlay_fdt_apply_kunit(9) | NAME of_overlay_fdt_apply_kunit - Test managed of_overlay_fdt_apply()
SYNOPSIS int of_overlay_fdt_apply_kunit (struct kunit *test , void *overlay_fdt , u32 overlay_fdt_size , int *ovcs_id );
ARGUMENTS test test context
overlay_fdt device tree overlay to apply
overlay_fdt_size
... |
of_overlay_notifier_register(9) | NAME of_overlay_notifier_register - Register notifier for overlay operations
SYNOPSIS int of_overlay_notifier_register (struct notifier_block *nb );
ARGUMENTS nb Notifier block to register
DESCRIPTION Register for notification on overlay operations on device tree nodes. The reported actions defined by of_re... |
of_overlay_notifier_unregister(9) | NAME of_overlay_notifier_unregister - Unregister notifier for overlay operations
SYNOPSIS int of_overlay_notifier_unregister (struct notifier_block *nb );
ARGUMENTS nb Notifier block to unregister
SEE ALSO Kernel file ./drivers/of/overlay.c struct target(9), struct fragment(9), struct overlay_changeset(9... |
of_overlay_remove(9) | NAME of_overlay_remove - Revert and free an overlay changeset
SYNOPSIS int of_overlay_remove (int *ovcs_id );
ARGUMENTS ovcs_id Pointer to overlay changeset id
DESCRIPTION Removes an overlay if it is permissible. ovcs_id was previously returned by of_overlay_fdt_apply. If an error occurred while attempting to... |
of_overlay_remove_all(9) | NAME of_overlay_remove_all - Reverts and frees all overlay changesets
SYNOPSIS int of_overlay_remove_all (void );
ARGUMENTS void no arguments
DESCRIPTION Removes all overlays from the system in the correct order.
RETURN 0 on success, or a negative error number
SEE ALSO Kernel file ./drivers/of/overlay.c ... |
of_parse_clkspec(9) | NAME of_parse_clkspec - Parse a DT clock specifier for a given device node
SYNOPSIS int of_parse_clkspec (const struct device_node *np , int index , const char *name , struct of_phandle_args *out_args );
ARGUMENTS np device node to parse clock specifier from
index index of phandle to parse cloc... |
of_parse_coupled_regulator(9) | NAME of_parse_coupled_regulator - Get regulator_dev pointer from rdev's property
SYNOPSIS struct regulator_dev * of_parse_coupled_regulator (struct regulator_dev *rdev , int index );
ARGUMENTS rdev Pointer to regulator_dev, whose DTS is used as a source to parse "regulator-coupled-with" property
index ... |
of_parse_display_timing(9) | NAME of_parse_display_timing - parse display_timing entry from device_node
SYNOPSIS int of_parse_display_timing (const struct device_node *np , struct display_timing *dt );
ARGUMENTS np device_node with the properties
dt display_timing that contains the result. I may be partially written in ... |
of_parse_own_gpio(9) | NAME of_parse_own_gpio - Get a GPIO hog descriptor, names and flags for GPIO API
SYNOPSIS struct gpio_desc * of_parse_own_gpio (struct device_node *np , struct gpio_chip *chip , unsigned int idx , const char **name , unsigned long *lflags , enum gpiod_flags *dflags );
ARGUMENTS np device node to get GPIO fro... |
of_parse_phandle(9) | NAME of_parse_phandle - Resolve a phandle property to a device_node pointer
SYNOPSIS struct device_node * of_parse_phandle (const struct device_node *np , const char *phandle_name , int index );
ARGUMENTS np Pointer to device node holding phandle property
phandle_name
Name of prope... |
of_parse_phandle_with_args(9) | NAME of_parse_phandle_with_args - Find a node pointed by phandle in a list
SYNOPSIS int of_parse_phandle_with_args (const struct device_node *np , const char *list_name , const char *cells_name , int index , struct of_phandle_args *out_args );
ARGUMENTS np pointer to a device tree node containing a list
... |
of_parse_phandle_with_args_map(9) | NAME of_parse_phandle_with_args_map - Find a node pointed by phandle in a list and remap it
SYNOPSIS int of_parse_phandle_with_args_map (const struct device_node *np , const char *list_name , const char *stem_name , int index , struct of_phandle_args *out_args );
ARGUMENTS np pointer to a device tree node co... |
of_parse_phandle_with_fixed_args(9) | NAME of_parse_phandle_with_fixed_args - Find a node pointed by phandle in a list
SYNOPSIS int of_parse_phandle_with_fixed_args (const struct device_node *np , const char *list_name , int cell_count , int index , struct of_phandle_args *out_args );
ARGUMENTS np pointer to a device tree node containing a list
... |
of_parse_phandle_with_optional_args(9) | NAME of_parse_phandle_with_optional_args - Find a node pointed by phandle in a list
SYNOPSIS int of_parse_phandle_with_optional_args (const struct device_node *np , const char *list_name , const char *cells_name , int index , struct of_phandle_args *out_args );
ARGUMENTS np pointer to a device tree node cont... |
of_pci_check_probe_only(9) | NAME of_pci_check_probe_only - Setup probe only mode if linux,pci-probe-only is present and valid
SYNOPSIS void of_pci_check_probe_only (void );
ARGUMENTS void no arguments
SEE ALSO Kernel file ./drivers/pci/of.c pci_set_of_node(9), of_pci_get_devfn(9), of_pci_parse_bus_range(9), of_get_pci_domain_nr(9)... |
of_pci_get_devfn(9) | NAME of_pci_get_devfn - Get device and function numbers for a device node
SYNOPSIS int of_pci_get_devfn (struct device_node *np );
ARGUMENTS np device node
DESCRIPTION Parses a standard 5-cell PCI resource and returns an 8-bit value that can be passed to the PCI_SLOT and PCI_FUNC macros to extract the devic... |
of_pci_get_equalization_presets(9) | NAME of_pci_get_equalization_presets - Parses the "eq-presets-Ngts" property.
SYNOPSIS int of_pci_get_equalization_presets (struct device *dev , struct pci_eq_presets *presets , int num_lanes );
ARGUMENTS dev Device containing the properties.
presets Pointer to store the parsed data.
num_l... |
of_pci_get_max_link_speed(9) | NAME of_pci_get_max_link_speed - Find the maximum link speed of the given device node.
SYNOPSIS int of_pci_get_max_link_speed (struct device_node *node );
ARGUMENTS node Device tree node with the maximum link speed information.
DESCRIPTION This function will try to find the limitation of link speed by finding... |
of_pci_get_slot_power_limit(9) | NAME of_pci_get_slot_power_limit - Parses the "slot-power-limit-milliwatt" property.
SYNOPSIS u32 of_pci_get_slot_power_limit (struct device_node *node , u8 *slot_power_limit_value , u8 *slot_power_limit_scale );
ARGUMENTS node device tree node with the slot power limit information
slot_power_limit_val... |
of_pci_parse_addrs(9) | NAME of_pci_parse_addrs - Parse PCI addresses assigned in the device tree node
SYNOPSIS void of_pci_parse_addrs (struct device_node *node , struct pci_dev *dev );
ARGUMENTS node device tree node for the PCI device
dev pci_dev structure for the device
DESCRIPTION This function parses the 'assig... |
of_pci_parse_bus_range(9) | NAME of_pci_parse_bus_range - parse the bus-range property of a PCI device
SYNOPSIS int of_pci_parse_bus_range (struct device_node *node , struct resource *res );
ARGUMENTS node device node
res address to a struct resource to return the bus-range
DESCRIPTION Returns 0 on success or a negative ... |
of_pci_preserve_config(9) | NAME of_pci_preserve_config - Return true if the boot configuration needs to be preserved
SYNOPSIS bool of_pci_preserve_config (struct device_node *node );
ARGUMENTS node Device tree node.
DESCRIPTION Look for "linux,pci-probe-only" property for a given PCI controller's node and return true if found. Also lo... |
of_pci_supply_present(9) | NAME of_pci_supply_present - Check if the power supply is present for the PCI device
SYNOPSIS bool of_pci_supply_present (struct device_node *np );
ARGUMENTS np Device tree node
DESCRIPTION Check if the power supply for the PCI device is present in the device tree node or not.
RETURN true if at least one p... |
of_phandle_args_equal(9) | NAME of_phandle_args_equal - Compare two of_phandle_args
SYNOPSIS bool of_phandle_args_equal (const struct of_phandle_args *a1 , const struct of_phandle_args *a2 );
ARGUMENTS a1 First of_phandle_args to compare
a2 Second of_phandle_args to compare
RETURN True if a1 and a2 are the same (same... |
of_phy_connect(9) | NAME of_phy_connect - Connect to the phy described in the device tree
SYNOPSIS struct phy_device * of_phy_connect (struct net_device *dev , struct device_node *phy_np , void (*hndlr)(struct net_device *) , u32 flags , phy_interface_t iface );
ARGUMENTS dev pointer to net_device claiming the phy
phy_np... |
of_phy_find_device(9) | NAME of_phy_find_device - Give a PHY node, find the phy_device
SYNOPSIS struct phy_device * of_phy_find_device (struct device_node *phy_np );
ARGUMENTS phy_np Pointer to the phy's device tree node
DESCRIPTION If successful, returns a pointer to the phy_device with the embedded struct device refcount incremented... |
of_phy_get(9) | NAME of_phy_get - lookup and obtain a reference to a phy using a device_node.
SYNOPSIS struct phy * of_phy_get (struct device_node *np , const char *con_id );
ARGUMENTS np device_node for which to get the phy
con_id name of the phy from device's point of view
DESCRIPTION Returns the phy driver,... |
of_phy_get_and_connect(9) | NAME of_phy_get_and_connect -
SYNOPSIS struct phy_device * of_phy_get_and_connect (struct net_device *dev , struct device_node *np , void (*hndlr)(struct net_device *) );
ARGUMENTS dev pointer to net_device claiming the phy
np Pointer to device tree node for the net_device claiming the phy
... |
of_phy_package_join(9) | NAME of_phy_package_join - join a common PHY group in PHY package
SYNOPSIS int of_phy_package_join (struct phy_device *phydev , size_t priv_size );
ARGUMENTS phydev target phy_device struct
priv_size if non-zero allocate this amount of bytes for private data
DESCRIPTION This is a variant of phy_packag... |
of_phy_provider_unregister(9) | NAME of_phy_provider_unregister - unregister phy provider from the framework
SYNOPSIS void of_phy_provider_unregister (struct phy_provider *phy_provider );
ARGUMENTS phy_provider phy provider returned by of_phy_provider_register
DESCRIPTION Removes the phy_provider created using of_phy_provider_register.
SEE ALSO K... |
of_phy_put(9) | NAME of_phy_put - release the PHY
SYNOPSIS void of_phy_put (struct phy *phy );
ARGUMENTS phy the phy returned by of_phy_get
DESCRIPTION Releases a refcount the caller received from of_phy_get.
SEE ALSO Kernel file ./drivers/phy/phy-core.c phy_create_lookup(9), phy_remove_lookup(9), phy_init(9), phy_exi... |
of_phy_simple_xlate(9) | NAME of_phy_simple_xlate - returns the phy instance from phy provider
SYNOPSIS struct phy * of_phy_simple_xlate (struct device *dev , const struct of_phandle_args *args );
ARGUMENTS dev the PHY provider device (not used here)
args of_phandle_args
DESCRIPTION Intended to be used by phy provider... |
of_platform_bus_create(9) | NAME of_platform_bus_create - Create a device for a node and its children.
SYNOPSIS int of_platform_bus_create (struct device_node *bus , const struct of_device_id *matches , const struct of_dev_auxdata *lookup , struct device *parent , bool strict );
ARGUMENTS bus device node of the bus to instantiate
... |
of_platform_bus_probe(9) | NAME of_platform_bus_probe - Probe the device-tree for platform buses
SYNOPSIS int of_platform_bus_probe (struct device_node *root , const struct of_device_id *matches , struct device *parent );
ARGUMENTS root parent of the first level to probe or NULL for the root of the tree
matches match table f... |
of_platform_depopulate(9) | NAME of_platform_depopulate - Remove devices populated from device tree
SYNOPSIS void of_platform_depopulate (struct device *parent );
ARGUMENTS parent device which children will be removed
DESCRIPTION Complementary to of_platform_populate, this function removes children of the given device (and, recursively, t... |
of_platform_device_create(9) | NAME of_platform_device_create - Alloc, initialize and register an of_device
SYNOPSIS struct platform_device * of_platform_device_create (struct device_node *np , const char *bus_id , struct device *parent );
ARGUMENTS np pointer to node to create device for
bus_id name to assign device
... |
of_platform_device_create_pdata(9) | NAME of_platform_device_create_pdata - Alloc, initialize and register an of_device
SYNOPSIS struct platform_device * of_platform_device_create_pdata (struct device_node *np , const char *bus_id , void *platform_data , struct device *parent );
ARGUMENTS np pointer to node to create device for
bus_id ... |
of_platform_populate(9) | NAME of_platform_populate - Populate platform_devices from device tree data
SYNOPSIS int of_platform_populate (struct device_node *root , const struct of_device_id *matches , const struct of_dev_auxdata *lookup , struct device *parent );
ARGUMENTS root parent of the first level to probe or NULL for the root of... |
of_pll_div_clk_init(9) | NAME of_pll_div_clk_init - PLL divider setup function
SYNOPSIS void of_pll_div_clk_init (struct device_node *node );
ARGUMENTS node device tree node for this clock
SEE ALSO Kernel file ./drivers/clk/keystone/pll.c struct clk_pll_data(9), struct clk_pll(9), _of_pll_clk_init(9), of_keystone_pll_clk_init(9), of_... |
of_pll_mux_clk_init(9) | NAME of_pll_mux_clk_init - PLL mux setup function
SYNOPSIS void of_pll_mux_clk_init (struct device_node *node );
ARGUMENTS node device tree node for this clock
SEE ALSO Kernel file ./drivers/clk/keystone/pll.c struct clk_pll_data(9), struct clk_pll(9), _of_pll_clk_init(9), of_keystone_pll_clk_init(9), of_keys... |
of_pm_clk_add_clks(9) | NAME of_pm_clk_add_clks - Start using device clock(s) for power management.
SYNOPSIS int of_pm_clk_add_clks (struct device *dev );
ARGUMENTS dev Device whose clock(s) is going to be used for power management.
DESCRIPTION Add a series of clocks described in the 'clocks' device-tree node for a device to the l... |
of_property_count_elems_of_size(9) | NAME of_property_count_elems_of_size - Count the number of elements in a property
SYNOPSIS int of_property_count_elems_of_size (const struct device_node *np , const char *propname , int elem_size );
ARGUMENTS np device node from which the property value is to be read.
propname name of the property... |
of_property_count_strings(9) | NAME of_property_count_strings - Find and return the number of strings from a multiple strings property.
SYNOPSIS int of_property_count_strings (const struct device_node *np , const char *propname );
ARGUMENTS np device node from which the property value is to be read.
propname name of the propert... |
of_property_count_u16_elems(9) | NAME of_property_count_u16_elems - Count the number of u16 elements in a property
SYNOPSIS int of_property_count_u16_elems (const struct device_node *np , const char *propname );
ARGUMENTS np device node from which the property value is to be read.
propname name of the property to be searched.
DE... |
of_property_count_u32_elems(9) | NAME of_property_count_u32_elems - Count the number of u32 elements in a property
SYNOPSIS int of_property_count_u32_elems (const struct device_node *np , const char *propname );
ARGUMENTS np device node from which the property value is to be read.
propname name of the property to be searched.
DE... |
of_property_count_u64_elems(9) | NAME of_property_count_u64_elems - Count the number of u64 elements in a property
SYNOPSIS int of_property_count_u64_elems (const struct device_node *np , const char *propname );
ARGUMENTS np device node from which the property value is to be read.
propname name of the property to be searched.
DE... |
of_property_count_u8_elems(9) | NAME of_property_count_u8_elems - Count the number of u8 elements in a property
SYNOPSIS int of_property_count_u8_elems (const struct device_node *np , const char *propname );
ARGUMENTS np device node from which the property value is to be read.
propname name of the property to be searched.
DESCR... |
of_property_match_string(9) | NAME of_property_match_string - Find string in a list and return index
SYNOPSIS int of_property_match_string (const struct device_node *np , const char *propname , const char *string );
ARGUMENTS np pointer to the node containing the string list property
propname string list property name
... |
of_property_present(9) | NAME of_property_present - Test if a property is present in a node
SYNOPSIS bool of_property_present (const struct device_node *np , const char *propname );
ARGUMENTS np device node to search for the property.
propname name of the property to be searched.
DESCRIPTION Test for a property present i... |
of_property_read_bool(9) | NAME of_property_read_bool - Find a property
SYNOPSIS bool of_property_read_bool (const struct device_node *np , const char *propname );
ARGUMENTS np device node from which the property value is to be read.
propname name of the property to be searched.
DESCRIPTION Search for a boolean property in... |
of_property_read_reg(9) | NAME of_property_read_reg - Retrieve the specified "reg" entry index without translating
SYNOPSIS int of_property_read_reg (struct device_node *np , int idx , u64 *addr , u64 *size );
ARGUMENTS np device tree node for which to retrieve "reg" from
idx "reg" entry index to read
addr ... |
of_property_read_string(9) | NAME of_property_read_string - Find and read a string from a property
SYNOPSIS int of_property_read_string (const struct device_node *np , const char *propname , const char **out_string );
ARGUMENTS np device node from which the property value is to be read.
propname name of the property to be sea... |
of_property_read_string_array(9) | NAME of_property_read_string_array - Read an array of strings from a multiple strings property.
SYNOPSIS int of_property_read_string_array (const struct device_node *np , const char *propname , const char **out_strs , size_t sz );
ARGUMENTS np device node from which the property value is to be read.
... |
of_property_read_string_helper(9) | NAME of_property_read_string_helper - Utility helper for parsing string properties
SYNOPSIS int of_property_read_string_helper (const struct device_node *np , const char *propname , const char **out_strs , size_t sz , int skip );
ARGUMENTS np device node from which the property value is to be read.
p... |
of_property_read_string_index(9) | NAME of_property_read_string_index - Find and read a string from a multiple strings property.
SYNOPSIS int of_property_read_string_index (const struct device_node *np , const char *propname , int index , const char **output );
ARGUMENTS np device node from which the property value is to be read.
prop... |
of_property_read_u16_array(9) | NAME of_property_read_u16_array - Find and read an array of u16 from a property.
SYNOPSIS int of_property_read_u16_array (const struct device_node *np , const char *propname , u16 *out_values , size_t sz );
ARGUMENTS np device node from which the property value is to be read.
propname name of the ... |
of_property_read_u16_index(9) | NAME of_property_read_u16_index - Find and read a u16 from a multi-value property.
SYNOPSIS int of_property_read_u16_index (const struct device_node *np , const char *propname , u32 index , u16 *out_value );
ARGUMENTS np device node from which the property value is to be read.
propname name of the... |
of_property_read_u32_array(9) | NAME of_property_read_u32_array - Find and read an array of 32 bit integers from a property.
SYNOPSIS int of_property_read_u32_array (const struct device_node *np , const char *propname , u32 *out_values , size_t sz );
ARGUMENTS np device node from which the property value is to be read.
propname ... |
of_property_read_u32_index(9) | NAME of_property_read_u32_index - Find and read a u32 from a multi-value property.
SYNOPSIS int of_property_read_u32_index (const struct device_node *np , const char *propname , u32 index , u32 *out_value );
ARGUMENTS np device node from which the property value is to be read.
propname name of the... |
of_property_read_u64(9) | NAME of_property_read_u64 - Find and read a 64 bit integer from a property
SYNOPSIS int of_property_read_u64 (const struct device_node *np , const char *propname , u64 *out_value );
ARGUMENTS np device node from which the property value is to be read.
propname name of the property to be searched.
... |
of_property_read_u64_array(9) | NAME of_property_read_u64_array - Find and read an array of 64 bit integers from a property.
SYNOPSIS int of_property_read_u64_array (const struct device_node *np , const char *propname , u64 *out_values , size_t sz );
ARGUMENTS np device node from which the property value is to be read.
propname ... |
of_property_read_u64_index(9) | NAME of_property_read_u64_index - Find and read a u64 from a multi-value property.
SYNOPSIS int of_property_read_u64_index (const struct device_node *np , const char *propname , u32 index , u64 *out_value );
ARGUMENTS np device node from which the property value is to be read.
propname name of the... |
of_property_read_u8_array(9) | NAME of_property_read_u8_array - Find and read an array of u8 from a property.
SYNOPSIS int of_property_read_u8_array (const struct device_node *np , const char *propname , u8 *out_values , size_t sz );
ARGUMENTS np device node from which the property value is to be read.
propname name of the prop... |
of_property_read_u8_index(9) | NAME of_property_read_u8_index - Find and read a u8 from a multi-value property.
SYNOPSIS int of_property_read_u8_index (const struct device_node *np , const char *propname , u32 index , u8 *out_value );
ARGUMENTS np device node from which the property value is to be read.
propname name of the pro... |
of_property_read_variable_u16_array(9) | NAME of_property_read_variable_u16_array - Find and read an array of u16 from a property, with bounds on the minimum and maximum array size.
SYNOPSIS int of_property_read_variable_u16_array (const struct device_node *np , const char *propname , u16 *out_values , size_t sz_min , size_t sz_max );
ARGUMENTS np ... |
of_property_read_variable_u32_array(9) | NAME of_property_read_variable_u32_array - Find and read an array of 32 bit integers from a property, with bounds on the minimum and maximum array size.
SYNOPSIS int of_property_read_variable_u32_array (const struct device_node *np , const char *propname , u32 *out_values , size_t sz_min , size_t sz_max );
ARGUMENTS ... |
of_property_read_variable_u64_array(9) | NAME of_property_read_variable_u64_array - Find and read an array of 64 bit integers from a property, with bounds on the minimum and maximum array size.
SYNOPSIS int of_property_read_variable_u64_array (const struct device_node *np , const char *propname , u64 *out_values , size_t sz_min , size_t sz_max );
ARGUMENTS ... |
of_property_read_variable_u8_array(9) | NAME of_property_read_variable_u8_array - Find and read an array of u8 from a property, with bounds on the minimum and maximum array size.
SYNOPSIS int of_property_read_variable_u8_array (const struct device_node *np , const char *propname , u8 *out_values , size_t sz_min , size_t sz_max );
ARGUMENTS np devi... |
of_psc_clk_init(9) | NAME of_psc_clk_init - initialize psc clock through DT
SYNOPSIS void of_psc_clk_init (struct device_node *node , spinlock_t *lock );
ARGUMENTS node device tree node for this clock
lock spinlock used by this clock
SEE ALSO Kernel file ./drivers/clk/keystone/gate.c struct clk_psc_data(9), struct ... |
of_pse_match_pi(9) | NAME of_pse_match_pi - Find the PSE PI id matching the device node phandle
SYNOPSIS int of_pse_match_pi (struct pse_controller_dev *pcdev , struct device_node *np );
ARGUMENTS pcdev a pointer to the PSE controller device
np a pointer to the device node
RETURN id of the PSE PI, -EINVAL if not f... |
of_pwm_get(9) | NAME of_pwm_get - request a PWM via the PWM framework
SYNOPSIS struct pwm_device * of_pwm_get (struct device *dev , struct device_node *np , const char *con_id );
ARGUMENTS dev device for PWM consumer
np device node to get the PWM from
con_id consumer name
DESCRIPTION Returns t... |
of_qcom_ice_get(9) | NAME of_qcom_ice_get - get an ICE instance from a DT node
SYNOPSIS struct qcom_ice * of_qcom_ice_get (struct device *dev );
ARGUMENTS dev device pointer for the consumer device
DESCRIPTION This function will provide an ICE instance either by creating one for the consumer device if its DT node provides the... |
of_register_spi_devices(9) | NAME of_register_spi_devices - Register child devices onto the SPI bus
SYNOPSIS void of_register_spi_devices (struct spi_controller *ctlr );
ARGUMENTS ctlr Pointer to spi_controller device
DESCRIPTION Registers an spi_device for each child node of controller node which represents a valid SPI target device.
S... |
of_regulator_bulk_get_all(9) | NAME of_regulator_bulk_get_all - get multiple regulator consumers
SYNOPSIS int of_regulator_bulk_get_all (struct device *dev , struct device_node *np , struct regulator_bulk_data **consumers );
ARGUMENTS dev Device to supply
np device node to search for consumers
consumers Configura... |
of_regulator_dev_lookup(9) | NAME of_regulator_dev_lookup - lookup a regulator device with device tree only
SYNOPSIS struct regulator_dev * of_regulator_dev_lookup (struct device *dev , struct device_node *np , const char *supply );
ARGUMENTS dev Device pointer for regulator supply lookup.
np Device node pointer for regu... |
of_regulator_get(9) | NAME of_regulator_get - get regulator via device tree lookup
SYNOPSIS struct regulator * of_regulator_get (struct device *dev , struct device_node *node , const char *id );
ARGUMENTS dev device used for dev_printk messages
node device node for regulator "consumer"
id Supply nam... |
of_regulator_get_optional(9) | NAME of_regulator_get_optional - get optional regulator via device tree lookup
SYNOPSIS struct regulator * of_regulator_get_optional (struct device *dev , struct device_node *node , const char *id );
ARGUMENTS dev device used for dev_printk messages
node device node for regulator "consumer"
... |
of_regulator_match(9) | NAME of_regulator_match - extract multiple regulator init data from device tree.
SYNOPSIS int of_regulator_match (struct device *dev , struct device_node *node , struct of_regulator_match *matches , unsigned int num_matches );
ARGUMENTS dev device requesting the data
node parent device node of ... |
of_remove_property(9) | NAME of_remove_property - Remove a property from a node.
SYNOPSIS int of_remove_property (struct device_node *np , struct property *prop );
ARGUMENTS np Caller's Device Node
prop Property to remove
DESCRIPTION Note that we don't actually remove it, since we have given out who-knows-how-many p... |
of_rescan_bus(9) | NAME of_rescan_bus - given a PCI bus node, scan for child devices
SYNOPSIS void of_rescan_bus (struct device_node *node , struct pci_bus *bus );
ARGUMENTS node device tree node for the PCI bus
bus pci_bus structure for the PCI bus
DESCRIPTION Same as of_scan_bus, but for a pci_bus structure th... |
of_reserved_mem_device_init(9) | NAME of_reserved_mem_device_init - assign reserved memory region to given device
SYNOPSIS int of_reserved_mem_device_init (struct device *dev );
ARGUMENTS dev Pointer to the device to configure
DESCRIPTION This function assigns respective DMA-mapping operations based on the first reserved memory region speci... |
of_reserved_mem_device_init_by_idx(9) | NAME of_reserved_mem_device_init_by_idx - assign reserved memory region to given device
SYNOPSIS int of_reserved_mem_device_init_by_idx (struct device *dev , struct device_node *np , int idx );
ARGUMENTS dev Pointer to the device to configure
np Pointer to the device_node with 'reserved-memor... |
of_reserved_mem_device_init_by_name(9) | NAME of_reserved_mem_device_init_by_name - assign named reserved memory region to given device
SYNOPSIS int of_reserved_mem_device_init_by_name (struct device *dev , struct device_node *np , const char *name );
ARGUMENTS dev pointer to the device to configure
np pointer to the device node wit... |
of_reserved_mem_device_release(9) | NAME of_reserved_mem_device_release - release reserved memory device structures
SYNOPSIS void of_reserved_mem_device_release (struct device *dev );
ARGUMENTS dev Pointer to the device to deconfigure
DESCRIPTION This function releases structures allocated for memory region handling for the given device.
SEE ... |
of_reserved_mem_lookup(9) | NAME of_reserved_mem_lookup - acquire reserved_mem from a device node
SYNOPSIS struct reserved_mem * of_reserved_mem_lookup (struct device_node *np );
ARGUMENTS np node pointer of the desired reserved-memory region
DESCRIPTION This function allows drivers to acquire a reference to the reserved_mem struct ba... |
of_reserved_mem_region_count(9) | NAME of_reserved_mem_region_count - Return the number of 'memory-region' entries
SYNOPSIS int of_reserved_mem_region_count (const struct device_node *np );
ARGUMENTS np node containing 'memory-region' property
DESCRIPTION This function allows drivers to retrieve the number of entries for a node's Returns th... |
of_reserved_mem_region_to_resource(9) | NAME of_reserved_mem_region_to_resource - Get a reserved memory region as a resource
SYNOPSIS int of_reserved_mem_region_to_resource (const struct device_node *np , unsigned int idx , struct resource *res );
ARGUMENTS np node containing 'memory-region' property
idx index of 'memory-region' pr... |
of_reserved_mem_region_to_resource_byname(9) | NAME of_reserved_mem_region_to_resource_byname - Get a reserved memory region as a resource
SYNOPSIS int of_reserved_mem_region_to_resource_byname (const struct device_node *np , const char *name , struct resource *res );
ARGUMENTS np node containing 'memory-region' property
name name of 'memo... |
of_reset_control_array_get(9) | NAME of_reset_control_array_get - Get a list of reset controls using device node.
SYNOPSIS struct reset_control * of_reset_control_array_get (struct device_node *np , enum reset_control_flags flags );
ARGUMENTS np device node for the device that requests the reset controls array
flags whether r... |
of_reset_control_get_count(9) | NAME of_reset_control_get_count - Count number of resets available with a device
SYNOPSIS int of_reset_control_get_count (struct device_node *node );
ARGUMENTS node device node that contains 'resets'.
DESCRIPTION Returns positive reset count on success, or error number on failure and on count being zero.
SEE... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.