sphinx.addnodesdocument)}( rawsourcechildren]( translations LanguagesNode)}(hhh](h pending_xref)}(hhh]docutils.nodesTextChinese (Simplified)}parenthsba attributes}(ids]classes]names]dupnames]backrefs] refdomainstdreftypedoc reftarget)/translations/zh_CN/driver-api/gpio/indexmodnameN classnameN refexplicitutagnamehhh ubh)}(hhh]hChinese (Traditional)}hh2sbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget)/translations/zh_TW/driver-api/gpio/indexmodnameN classnameN refexplicituh1hhh ubh)}(hhh]hItalian}hhFsbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget)/translations/it_IT/driver-api/gpio/indexmodnameN classnameN refexplicituh1hhh ubh)}(hhh]hJapanese}hhZsbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget)/translations/ja_JP/driver-api/gpio/indexmodnameN classnameN refexplicituh1hhh ubh)}(hhh]hKorean}hhnsbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget)/translations/ko_KR/driver-api/gpio/indexmodnameN classnameN refexplicituh1hhh ubh)}(hhh]hSpanish}hhsbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget)/translations/sp_SP/driver-api/gpio/indexmodnameN classnameN refexplicituh1hhh ubeh}(h]h ]h"]h$]h&]current_languageEnglishuh1h hh _documenthsourceNlineNubhsection)}(hhh](htitle)}(h#General Purpose Input/Output (GPIO)h]h#General Purpose Input/Output (GPIO)}(hhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhhhC/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index.rsthKubh paragraph)}(h Contents:h]h Contents:}(hhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhhhhubhcompound)}(hhh]htoctree)}(hhh]h}(h]h ]h"]h$]h&]hdriver-api/gpio/indexentries](Ndriver-api/gpio/introNdriver-api/gpio/using-gpioNdriver-api/gpio/driverNdriver-api/gpio/consumerNdriver-api/gpio/boardNdriver-api/gpio/drivers-on-gpioNdriver-api/gpio/bt8xxgpioe includefiles](hhhhhhhemaxdepthKcaptionNglobhidden includehiddennumberedK titlesonly rawentries]uh1hhhhKhhubah}(h]h ]toctree-wrapperah"]h$]h&]uh1hhhhhhhhNubh)}(hhh](h)}(hCoreh]hCore}(hhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhhhhhKubhindex)}(hhh]h}(h]h ]h"]h$]h&]entries](singlegpio_irq_chip (C struct)c.gpio_irq_chiphNtauh1j hhhhhNhNubhdesc)}(hhh](hdesc_signature)}(h gpio_irq_chiph]hdesc_signature_line)}(hstruct gpio_irq_chiph](hdesc_sig_keyword)}(hstructh]hstruct}(hj/hhhNhNubah}(h]h ]kah"]h$]h&]uh1j-hj)hhha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:21: ./include/linux/gpio/driver.hhKubhdesc_sig_space)}(h h]h }(hjAhhhNhNubah}(h]h ]wah"]h$]h&]uh1j?hj)hhhj>hKubh desc_name)}(h gpio_irq_chiph]h desc_sig_name)}(hj%h]h gpio_irq_chip}(hjXhhhNhNubah}(h]h ]nah"]h$]h&]uh1jVhjRubah}(h]h ](sig-namedescnameeh"]h$]h&] xml:spacepreserveuh1jPhj)hhhj>hKubeh}(h]h ]h"]h$]h&]jnjo add_permalinkuh1j'sphinx_line_type declaratorhj#hhhj>hKubah}(h]jah ](sig sig-objecteh"]h$]h&] is_multiline _toc_parts) _toc_namehuh1j!hj>hKhjhhubh desc_content)}(hhh]h)}(hGPIO interrupt controllerh]hGPIO interrupt controller}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:21: ./include/linux/gpio/driver.hhK1hjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhj>hKubeh}(h]h ](cstructeh"]h$]h&]domainjobjtypejdesctypejnoindex noindexentrynocontentsentryuh1jhhhhhNhNubh container)}(hX**Definition**:: struct gpio_irq_chip { struct irq_chip *chip; struct irq_domain *domain; #ifdef CONFIG_IRQ_DOMAIN_HIERARCHY; struct fwnode_handle *fwnode; struct irq_domain *parent_domain; int (*child_to_parent_hwirq)(struct gpio_chip *gc,unsigned int child_hwirq,unsigned int child_type,unsigned int *parent_hwirq, unsigned int *parent_type); int (*populate_parent_alloc_arg)(struct gpio_chip *gc,union gpio_irq_fwspec *fwspec,unsigned int parent_hwirq, unsigned int parent_type); unsigned int (*child_offset_to_irq)(struct gpio_chip *gc, unsigned int pin); struct irq_domain_ops child_irq_domain_ops; #endif; irq_flow_handler_t handler; unsigned int default_type; struct lock_class_key *lock_key; struct lock_class_key *request_key; irq_flow_handler_t parent_handler; union { void *parent_handler_data; void **parent_handler_data_array; }; unsigned int num_parents; unsigned int *parents; unsigned int *map; bool threaded; bool per_parent_data; bool initialized; bool domain_is_allocated_externally; int (*init_hw)(struct gpio_chip *gc); void (*init_valid_mask)(struct gpio_chip *gc,unsigned long *valid_mask, unsigned int ngpios); unsigned long *valid_mask; unsigned int first; void (*irq_enable)(struct irq_data *data); void (*irq_disable)(struct irq_data *data); void (*irq_unmask)(struct irq_data *data); void (*irq_mask)(struct irq_data *data); }; **Members** ``chip`` GPIO IRQ chip implementation, provided by GPIO driver. ``domain`` Interrupt translation domain; responsible for mapping between GPIO hwirq number and Linux IRQ number. ``fwnode`` Firmware node corresponding to this gpiochip/irqchip, necessary for hierarchical irqdomain support. ``parent_domain`` If non-NULL, will be set as the parent of this GPIO interrupt controller's IRQ domain to establish a hierarchical interrupt domain. The presence of this will activate the hierarchical interrupt support. ``child_to_parent_hwirq`` This callback translates a child hardware IRQ offset to a parent hardware IRQ offset on a hierarchical interrupt chip. The child hardware IRQs correspond to the GPIO index 0..ngpio-1 (see the ngpio field of struct gpio_chip) and the corresponding parent hardware IRQ and type (such as IRQ_TYPE_*) shall be returned by the driver. The driver can calculate this from an offset or using a lookup table or whatever method is best for this chip. Return 0 on successful translation in the driver. If some ranges of hardware IRQs do not have a corresponding parent HWIRQ, return -EINVAL, but also make sure to fill in **valid_mask** and **need_valid_mask** to make these GPIO lines unavailable for translation. ``populate_parent_alloc_arg`` This optional callback allocates and populates the specific struct for the parent's IRQ domain. If this is not specified, then :c:type:`gpiochip_populate_parent_fwspec_twocell` will be used. A four-cell variant named :c:type:`gpiochip_populate_parent_fwspec_fourcell` is also available. ``child_offset_to_irq`` This optional callback is used to translate the child's GPIO line offset on the GPIO chip to an IRQ number for the GPIO to_irq() callback. If this is not specified, then a default callback will be provided that returns the line offset. ``child_irq_domain_ops`` The IRQ domain operations that will be used for this GPIO IRQ chip. If no operations are provided, then default callbacks will be populated to setup the IRQ hierarchy. Some drivers need to supply their own translate function. ``handler`` The IRQ handler to use (often a predefined IRQ core function) for GPIO IRQs, provided by GPIO driver. ``default_type`` Default IRQ triggering type applied during GPIO driver initialization, provided by GPIO driver. ``lock_key`` Per GPIO IRQ chip lockdep class for IRQ lock. ``request_key`` Per GPIO IRQ chip lockdep class for IRQ request. ``parent_handler`` The interrupt handler for the GPIO chip's parent interrupts, may be NULL if the parent interrupts are nested rather than cascaded. ``{unnamed_union}`` anonymous ``parent_handler_data`` If **per_parent_data** is false, **parent_handler_data** is a single pointer used as the data associated with every parent interrupt. ``parent_handler_data_array`` If **per_parent_data** is true, **parent_handler_data_array** is an array of **num_parents** pointers, and is used to associate different data for each parent. This cannot be NULL if **per_parent_data** is true. ``num_parents`` The number of interrupt parents of a GPIO chip. ``parents`` A list of interrupt parents of a GPIO chip. This is owned by the driver, so the core will only reference this list, not modify it. ``map`` A list of interrupt parents for each line of a GPIO chip. ``threaded`` True if set the interrupt handling uses nested threads. ``per_parent_data`` True if parent_handler_data_array describes a **num_parents** sized array to be used as parent data. ``initialized`` Flag to track GPIO chip irq member's initialization. This flag will make sure GPIO chip irq members are not used before they are initialized. ``domain_is_allocated_externally`` True it the irq_domain was allocated outside of gpiolib, in which case gpiolib won't free the irq_domain itself. ``init_hw`` optional routine to initialize hardware before an IRQ chip will be added. This is quite useful when a particular driver wants to clear IRQ related registers in order to avoid undesired events. ``init_valid_mask`` optional routine to initialize **valid_mask**, to be used if not all GPIO lines are valid interrupts. Sometimes some lines just cannot fire interrupts, and this routine, when defined, is passed a bitmap in "valid_mask" and it will have ngpios bits from 0..(ngpios-1) set to "1" as in valid. The callback can then directly set some bits to "0" if they cannot be used for interrupts. ``valid_mask`` If not ``NULL``, holds bitmask of GPIOs which are valid to be included in IRQ domain of the chip. ``first`` Required for static IRQ allocation. If set, irq_domain_create_simple() will allocate and map all IRQs during initialization. ``irq_enable`` Store old irq_chip irq_enable callback ``irq_disable`` Store old irq_chip irq_disable callback ``irq_unmask`` Store old irq_chip irq_unmask callback ``irq_mask`` Store old irq_chip irq_mask callbackh](h)}(h**Definition**::h](hstrong)}(h**Definition**h]h Definition}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh:}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:21: ./include/linux/gpio/driver.hhK5hjubh literal_block)}(hXstruct gpio_irq_chip { struct irq_chip *chip; struct irq_domain *domain; #ifdef CONFIG_IRQ_DOMAIN_HIERARCHY; struct fwnode_handle *fwnode; struct irq_domain *parent_domain; int (*child_to_parent_hwirq)(struct gpio_chip *gc,unsigned int child_hwirq,unsigned int child_type,unsigned int *parent_hwirq, unsigned int *parent_type); int (*populate_parent_alloc_arg)(struct gpio_chip *gc,union gpio_irq_fwspec *fwspec,unsigned int parent_hwirq, unsigned int parent_type); unsigned int (*child_offset_to_irq)(struct gpio_chip *gc, unsigned int pin); struct irq_domain_ops child_irq_domain_ops; #endif; irq_flow_handler_t handler; unsigned int default_type; struct lock_class_key *lock_key; struct lock_class_key *request_key; irq_flow_handler_t parent_handler; union { void *parent_handler_data; void **parent_handler_data_array; }; unsigned int num_parents; unsigned int *parents; unsigned int *map; bool threaded; bool per_parent_data; bool initialized; bool domain_is_allocated_externally; int (*init_hw)(struct gpio_chip *gc); void (*init_valid_mask)(struct gpio_chip *gc,unsigned long *valid_mask, unsigned int ngpios); unsigned long *valid_mask; unsigned int first; void (*irq_enable)(struct irq_data *data); void (*irq_disable)(struct irq_data *data); void (*irq_unmask)(struct irq_data *data); void (*irq_mask)(struct irq_data *data); };h]hXstruct gpio_irq_chip { struct irq_chip *chip; struct irq_domain *domain; #ifdef CONFIG_IRQ_DOMAIN_HIERARCHY; struct fwnode_handle *fwnode; struct irq_domain *parent_domain; int (*child_to_parent_hwirq)(struct gpio_chip *gc,unsigned int child_hwirq,unsigned int child_type,unsigned int *parent_hwirq, unsigned int *parent_type); int (*populate_parent_alloc_arg)(struct gpio_chip *gc,union gpio_irq_fwspec *fwspec,unsigned int parent_hwirq, unsigned int parent_type); unsigned int (*child_offset_to_irq)(struct gpio_chip *gc, unsigned int pin); struct irq_domain_ops child_irq_domain_ops; #endif; irq_flow_handler_t handler; unsigned int default_type; struct lock_class_key *lock_key; struct lock_class_key *request_key; irq_flow_handler_t parent_handler; union { void *parent_handler_data; void **parent_handler_data_array; }; unsigned int num_parents; unsigned int *parents; unsigned int *map; bool threaded; bool per_parent_data; bool initialized; bool domain_is_allocated_externally; int (*init_hw)(struct gpio_chip *gc); void (*init_valid_mask)(struct gpio_chip *gc,unsigned long *valid_mask, unsigned int ngpios); unsigned long *valid_mask; unsigned int first; void (*irq_enable)(struct irq_data *data); void (*irq_disable)(struct irq_data *data); void (*irq_unmask)(struct irq_data *data); void (*irq_mask)(struct irq_data *data); };}hjsbah}(h]h ]h"]h$]h&]jnjouh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:21: ./include/linux/gpio/driver.hhK7hjubh)}(h **Members**h]j)}(hjh]hMembers}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:21: ./include/linux/gpio/driver.hhK\hjubhdefinition_list)}(hhh](hdefinition_list_item)}(h@``chip`` GPIO IRQ chip implementation, provided by GPIO driver. h](hterm)}(h``chip``h]hliteral)}(hj h]hchip}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j hjubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:21: ./include/linux/gpio/driver.hhK6hjubh definition)}(hhh]h)}(h6GPIO IRQ chip implementation, provided by GPIO driver.h]h6GPIO IRQ chip implementation, provided by GPIO driver.}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hK6hj#ubah}(h]h ]h"]h$]h&]uh1j!hjubeh}(h]h ]h"]h$]h&]uh1jhj hK6hjubj)}(hq``domain`` Interrupt translation domain; responsible for mapping between GPIO hwirq number and Linux IRQ number. h](j)}(h ``domain``h]j )}(hjFh]hdomain}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjDubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:21: ./include/linux/gpio/driver.hhK>hj@ubj")}(hhh]h)}(heInterrupt translation domain; responsible for mapping between GPIO hwirq number and Linux IRQ number.h]heInterrupt translation domain; responsible for mapping between GPIO hwirq number and Linux IRQ number.}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:21: ./include/linux/gpio/driver.hhK=hj\ubah}(h]h ]h"]h$]h&]uh1j!hj@ubeh}(h]h ]h"]h$]h&]uh1jhj[hK>hjubj)}(ho``fwnode`` Firmware node corresponding to this gpiochip/irqchip, necessary for hierarchical irqdomain support. h](j)}(h ``fwnode``h]j )}(hjh]hfwnode}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j hj~ubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:21: ./include/linux/gpio/driver.hhKGhjzubj")}(hhh]h)}(hcFirmware node corresponding to this gpiochip/irqchip, necessary for hierarchical irqdomain support.h]hcFirmware node corresponding to this gpiochip/irqchip, necessary for hierarchical irqdomain support.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:21: ./include/linux/gpio/driver.hhKFhjubah}(h]h ]h"]h$]h&]uh1j!hjzubeh}(h]h ]h"]h$]h&]uh1jhjhKGhjubj)}(h``parent_domain`` If non-NULL, will be set as the parent of this GPIO interrupt controller's IRQ domain to establish a hierarchical interrupt domain. The presence of this will activate the hierarchical interrupt support. h](j)}(h``parent_domain``h]j )}(hjh]h parent_domain}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:21: ./include/linux/gpio/driver.hhKQhjubj")}(hhh]h)}(hIf non-NULL, will be set as the parent of this GPIO interrupt controller's IRQ domain to establish a hierarchical interrupt domain. The presence of this will activate the hierarchical interrupt support.h]hIf non-NULL, will be set as the parent of this GPIO interrupt controller’s IRQ domain to establish a hierarchical interrupt domain. The presence of this will activate the hierarchical interrupt support.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:21: ./include/linux/gpio/driver.hhKNhjubah}(h]h ]h"]h$]h&]uh1j!hjubeh}(h]h ]h"]h$]h&]uh1jhjhKQhjubj)}(hX``child_to_parent_hwirq`` This callback translates a child hardware IRQ offset to a parent hardware IRQ offset on a hierarchical interrupt chip. The child hardware IRQs correspond to the GPIO index 0..ngpio-1 (see the ngpio field of struct gpio_chip) and the corresponding parent hardware IRQ and type (such as IRQ_TYPE_*) shall be returned by the driver. The driver can calculate this from an offset or using a lookup table or whatever method is best for this chip. Return 0 on successful translation in the driver. If some ranges of hardware IRQs do not have a corresponding parent HWIRQ, return -EINVAL, but also make sure to fill in **valid_mask** and **need_valid_mask** to make these GPIO lines unavailable for translation. h](j)}(h``child_to_parent_hwirq``h]j )}(hjh]hchild_to_parent_hwirq}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:21: ./include/linux/gpio/driver.hhKdhjubj")}(hhh](h)}(hXThis callback translates a child hardware IRQ offset to a parent hardware IRQ offset on a hierarchical interrupt chip. The child hardware IRQs correspond to the GPIO index 0..ngpio-1 (see the ngpio field of struct gpio_chip) and the corresponding parent hardware IRQ and type (such as IRQ_TYPE_*) shall be returned by the driver. The driver can calculate this from an offset or using a lookup table or whatever method is best for this chip. Return 0 on successful translation in the driver.h]hXThis callback translates a child hardware IRQ offset to a parent hardware IRQ offset on a hierarchical interrupt chip. The child hardware IRQs correspond to the GPIO index 0..ngpio-1 (see the ngpio field of struct gpio_chip) and the corresponding parent hardware IRQ and type (such as IRQ_TYPE_*) shall be returned by the driver. The driver can calculate this from an offset or using a lookup table or whatever method is best for this chip. Return 0 on successful translation in the driver.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:21: ./include/linux/gpio/driver.hhKXhj ubh)}(hIf some ranges of hardware IRQs do not have a corresponding parent HWIRQ, return -EINVAL, but also make sure to fill in **valid_mask** and **need_valid_mask** to make these GPIO lines unavailable for translation.h](hxIf some ranges of hardware IRQs do not have a corresponding parent HWIRQ, return -EINVAL, but also make sure to fill in }(hjhhhNhNubj)}(h**valid_mask**h]h valid_mask}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh and }(hjhhhNhNubj)}(h**need_valid_mask**h]hneed_valid_mask}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh6 to make these GPIO lines unavailable for translation.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:21: ./include/linux/gpio/driver.hhKahj ubeh}(h]h ]h"]h$]h&]uh1j!hjubeh}(h]h ]h"]h$]h&]uh1jhj hKdhjubj)}(hX=``populate_parent_alloc_arg`` This optional callback allocates and populates the specific struct for the parent's IRQ domain. If this is not specified, then :c:type:`gpiochip_populate_parent_fwspec_twocell` will be used. A four-cell variant named :c:type:`gpiochip_populate_parent_fwspec_fourcell` is also available. h](j)}(h``populate_parent_alloc_arg``h]j )}(hjah]hpopulate_parent_alloc_arg}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1j hj_ubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:21: ./include/linux/gpio/driver.hhKshj[ubj")}(hhh]h)}(hXThis optional callback allocates and populates the specific struct for the parent's IRQ domain. If this is not specified, then :c:type:`gpiochip_populate_parent_fwspec_twocell` will be used. A four-cell variant named :c:type:`gpiochip_populate_parent_fwspec_fourcell` is also available.h](hThis optional callback allocates and populates the specific struct for the parent’s IRQ domain. If this is not specified, then }(hjzhhhNhNubh)}(h1:c:type:`gpiochip_populate_parent_fwspec_twocell`h]j )}(hjh]h'gpiochip_populate_parent_fwspec_twocell}(hjhhhNhNubah}(h]h ](xrefjc-typeeh"]h$]h&]uh1j hjubah}(h]h ]h"]h$]h&]refdoch׌ refdomainjreftypetype refexplicitrefwarn c:parent_keysphinx.domains.c LookupKey)}data]sb reftarget'gpiochip_populate_parent_fwspec_twocelluh1hha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:21: ./include/linux/gpio/driver.hhKohjzubh) will be used. A four-cell variant named }(hjzhhhNhNubh)}(h2:c:type:`gpiochip_populate_parent_fwspec_fourcell`h]j )}(hjh]h(gpiochip_populate_parent_fwspec_fourcell}(hjhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1j hjubah}(h]h ]h"]h$]h&]refdoch׌ refdomainjreftypetype refexplicitrefwarnjjj(gpiochip_populate_parent_fwspec_fourcelluh1hhjhKohjzubh is also available.}(hjzhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhKohjwubah}(h]h ]h"]h$]h&]uh1j!hj[ubeh}(h]h ]h"]h$]h&]uh1jhjvhKshjubj)}(hX``child_offset_to_irq`` This optional callback is used to translate the child's GPIO line offset on the GPIO chip to an IRQ number for the GPIO to_irq() callback. If this is not specified, then a default callback will be provided that returns the line offset. h](j)}(h``child_offset_to_irq``h]j )}(hjh]hchild_offset_to_irq}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:21: ./include/linux/gpio/driver.hhKhjubj")}(hhh]h)}(hThis optional callback is used to translate the child's GPIO line offset on the GPIO chip to an IRQ number for the GPIO to_irq() callback. If this is not specified, then a default callback will be provided that returns the line offset.h]hThis optional callback is used to translate the child’s GPIO line offset on the GPIO chip to an IRQ number for the GPIO to_irq() callback. If this is not specified, then a default callback will be provided that returns the line offset.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:21: ./include/linux/gpio/driver.hhK}hjubah}(h]h ]h"]h$]h&]uh1j!hjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubj)}(h``child_irq_domain_ops`` The IRQ domain operations that will be used for this GPIO IRQ chip. If no operations are provided, then default callbacks will be populated to setup the IRQ hierarchy. Some drivers need to supply their own translate function. h](j)}(h``child_irq_domain_ops``h]j )}(hj%h]hchild_irq_domain_ops}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1j hj#ubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:21: ./include/linux/gpio/driver.hhKhjubj")}(hhh]h)}(hThe IRQ domain operations that will be used for this GPIO IRQ chip. If no operations are provided, then default callbacks will be populated to setup the IRQ hierarchy. Some drivers need to supply their own translate function.h]hThe IRQ domain operations that will be used for this GPIO IRQ chip. If no operations are provided, then default callbacks will be populated to setup the IRQ hierarchy. Some drivers need to supply their own translate function.}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:21: ./include/linux/gpio/driver.hhKhj;ubah}(h]h ]h"]h$]h&]uh1j!hjubeh}(h]h ]h"]h$]h&]uh1jhj:hKhjubj)}(hr``handler`` The IRQ handler to use (often a predefined IRQ core function) for GPIO IRQs, provided by GPIO driver. h](j)}(h ``handler``h]j )}(hj_h]hhandler}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1j hj]ubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:21: ./include/linux/gpio/driver.hhKhjYubj")}(hhh]h)}(heThe IRQ handler to use (often a predefined IRQ core function) for GPIO IRQs, provided by GPIO driver.h]heThe IRQ handler to use (often a predefined IRQ core function) for GPIO IRQs, provided by GPIO driver.}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:21: ./include/linux/gpio/driver.hhKhjuubah}(h]h ]h"]h$]h&]uh1j!hjYubeh}(h]h ]h"]h$]h&]uh1jhjthKhjubj)}(hq``default_type`` Default IRQ triggering type applied during GPIO driver initialization, provided by GPIO driver. h](j)}(h``default_type``h]j )}(hjh]h default_type}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:21: ./include/linux/gpio/driver.hhKhjubj")}(hhh]h)}(h_Default IRQ triggering type applied during GPIO driver initialization, provided by GPIO driver.h]h_Default IRQ triggering type applied during GPIO driver initialization, provided by GPIO driver.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:21: ./include/linux/gpio/driver.hhKhjubah}(h]h ]h"]h$]h&]uh1j!hjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubj)}(h;``lock_key`` Per GPIO IRQ chip lockdep class for IRQ lock. h](j)}(h ``lock_key``h]j )}(hjh]hlock_key}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:21: ./include/linux/gpio/driver.hhKhjubj")}(hhh]h)}(h-Per GPIO IRQ chip lockdep class for IRQ lock.h]h-Per GPIO IRQ chip lockdep class for IRQ lock.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1j!hjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubj)}(hA``request_key`` Per GPIO IRQ chip lockdep class for IRQ request. h](j)}(h``request_key``h]j )}(hj h]h request_key}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j hj ubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:21: ./include/linux/gpio/driver.hhKhjubj")}(hhh]h)}(h0Per GPIO IRQ chip lockdep class for IRQ request.h]h0Per GPIO IRQ chip lockdep class for IRQ request.}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj!hKhj"ubah}(h]h ]h"]h$]h&]uh1j!hjubeh}(h]h ]h"]h$]h&]uh1jhj!hKhjubj)}(h``parent_handler`` The interrupt handler for the GPIO chip's parent interrupts, may be NULL if the parent interrupts are nested rather than cascaded. h](j)}(h``parent_handler``h]j )}(hjEh]hparent_handler}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjCubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:21: ./include/linux/gpio/driver.hhKhj?ubj")}(hhh]h)}(hThe interrupt handler for the GPIO chip's parent interrupts, may be NULL if the parent interrupts are nested rather than cascaded.h]hThe interrupt handler for the GPIO chip’s parent interrupts, may be NULL if the parent interrupts are nested rather than cascaded.}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:21: ./include/linux/gpio/driver.hhKhj[ubah}(h]h ]h"]h$]h&]uh1j!hj?ubeh}(h]h ]h"]h$]h&]uh1jhjZhKhjubj)}(h``{unnamed_union}`` anonymous h](j)}(h``{unnamed_union}``h]j )}(hjh]h{unnamed_union}}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j hj}ubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:21: ./include/linux/gpio/driver.hhKhjyubj")}(hhh]h)}(h anonymoush]h anonymous}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1j!hjyubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubj)}(h``parent_handler_data`` If **per_parent_data** is false, **parent_handler_data** is a single pointer used as the data associated with every parent interrupt. h](j)}(h``parent_handler_data``h]j )}(hjh]hparent_handler_data}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:21: ./include/linux/gpio/driver.hhKhjubj")}(hhh]h)}(hIf **per_parent_data** is false, **parent_handler_data** is a single pointer used as the data associated with every parent interrupt.h](hIf }(hjhhhNhNubj)}(h**per_parent_data**h]hper_parent_data}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh is false, }(hjhhhNhNubj)}(h**parent_handler_data**h]hparent_handler_data}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhM is a single pointer used as the data associated with every parent interrupt.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:21: ./include/linux/gpio/driver.hhKhjubah}(h]h ]h"]h$]h&]uh1j!hjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubj)}(h``parent_handler_data_array`` If **per_parent_data** is true, **parent_handler_data_array** is an array of **num_parents** pointers, and is used to associate different data for each parent. This cannot be NULL if **per_parent_data** is true. h](j)}(h``parent_handler_data_array``h]j )}(hjh]hparent_handler_data_array}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:21: ./include/linux/gpio/driver.hhKhjubj")}(hhh]h)}(hIf **per_parent_data** is true, **parent_handler_data_array** is an array of **num_parents** pointers, and is used to associate different data for each parent. This cannot be NULL if **per_parent_data** is true.h](hIf }(hj/hhhNhNubj)}(h**per_parent_data**h]hper_parent_data}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj/ubh is true, }(hj/hhhNhNubj)}(h**parent_handler_data_array**h]hparent_handler_data_array}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj/ubh is an array of }(hj/hhhNhNubj)}(h**num_parents**h]h num_parents}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj/ubh[ pointers, and is used to associate different data for each parent. This cannot be NULL if }(hj/hhhNhNubj)}(h**per_parent_data**h]hper_parent_data}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj/ubh is true.}(hj/hhhNhNubeh}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:21: ./include/linux/gpio/driver.hhKhj,ubah}(h]h ]h"]h$]h&]uh1j!hjubeh}(h]h ]h"]h$]h&]uh1jhj+hKhjubj)}(h@``num_parents`` The number of interrupt parents of a GPIO chip. h](j)}(h``num_parents``h]j )}(hjh]h num_parents}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:21: ./include/linux/gpio/driver.hhKhjubj")}(hhh]h)}(h/The number of interrupt parents of a GPIO chip.h]h/The number of interrupt parents of a GPIO chip.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1j!hjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubj)}(h``parents`` A list of interrupt parents of a GPIO chip. This is owned by the driver, so the core will only reference this list, not modify it. h](j)}(h ``parents``h]j )}(hjh]hparents}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:21: ./include/linux/gpio/driver.hhKhjubj")}(hhh]h)}(hA list of interrupt parents of a GPIO chip. This is owned by the driver, so the core will only reference this list, not modify it.h]hA list of interrupt parents of a GPIO chip. This is owned by the driver, so the core will only reference this list, not modify it.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:21: ./include/linux/gpio/driver.hhKhjubah}(h]h ]h"]h$]h&]uh1j!hjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubj)}(hB``map`` A list of interrupt parents for each line of a GPIO chip. h](j)}(h``map``h]j )}(hj h]hmap}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j hj ubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:21: ./include/linux/gpio/driver.hhKhjubj")}(hhh]h)}(h9A list of interrupt parents for each line of a GPIO chip.h]h9A list of interrupt parents for each line of a GPIO chip.}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hKhj!ubah}(h]h ]h"]h$]h&]uh1j!hjubeh}(h]h ]h"]h$]h&]uh1jhj hKhjubj)}(hE``threaded`` True if set the interrupt handling uses nested threads. h](j)}(h ``threaded``h]j )}(hjDh]hthreaded}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjBubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:21: ./include/linux/gpio/driver.hhKhj>ubj")}(hhh]h)}(h7True if set the interrupt handling uses nested threads.h]h7True if set the interrupt handling uses nested threads.}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjYhKhjZubah}(h]h ]h"]h$]h&]uh1j!hj>ubeh}(h]h ]h"]h$]h&]uh1jhjYhKhjubj)}(hy``per_parent_data`` True if parent_handler_data_array describes a **num_parents** sized array to be used as parent data. h](j)}(h``per_parent_data``h]j )}(hj}h]hper_parent_data}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j hj{ubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:21: ./include/linux/gpio/driver.hhKhjwubj")}(hhh]h)}(hdTrue if parent_handler_data_array describes a **num_parents** sized array to be used as parent data.h](h.True if parent_handler_data_array describes a }(hjhhhNhNubj)}(h**num_parents**h]h num_parents}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh' sized array to be used as parent data.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:21: ./include/linux/gpio/driver.hhKhjubah}(h]h ]h"]h$]h&]uh1j!hjwubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubj)}(h``initialized`` Flag to track GPIO chip irq member's initialization. This flag will make sure GPIO chip irq members are not used before they are initialized. h](j)}(h``initialized``h]j )}(hjh]h initialized}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:21: ./include/linux/gpio/driver.hhKhjubj")}(hhh]h)}(hFlag to track GPIO chip irq member's initialization. This flag will make sure GPIO chip irq members are not used before they are initialized.h]hFlag to track GPIO chip irq member’s initialization. This flag will make sure GPIO chip irq members are not used before they are initialized.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:21: ./include/linux/gpio/driver.hhKhjubah}(h]h ]h"]h$]h&]uh1j!hjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubj)}(h``domain_is_allocated_externally`` True it the irq_domain was allocated outside of gpiolib, in which case gpiolib won't free the irq_domain itself. h](j)}(h"``domain_is_allocated_externally``h]j )}(hjh]hdomain_is_allocated_externally}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:21: ./include/linux/gpio/driver.hhKhjubj")}(hhh]h)}(hpTrue it the irq_domain was allocated outside of gpiolib, in which case gpiolib won't free the irq_domain itself.h]hrTrue it the irq_domain was allocated outside of gpiolib, in which case gpiolib won’t free the irq_domain itself.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:21: ./include/linux/gpio/driver.hhKhjubah}(h]h ]h"]h$]h&]uh1j!hjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubj)}(h``init_hw`` optional routine to initialize hardware before an IRQ chip will be added. This is quite useful when a particular driver wants to clear IRQ related registers in order to avoid undesired events. h](j)}(h ``init_hw``h]j )}(hj=h]hinit_hw}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1j hj;ubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:21: ./include/linux/gpio/driver.hhMhj7ubj")}(hhh]h)}(hoptional routine to initialize hardware before an IRQ chip will be added. This is quite useful when a particular driver wants to clear IRQ related registers in order to avoid undesired events.h]hoptional routine to initialize hardware before an IRQ chip will be added. This is quite useful when a particular driver wants to clear IRQ related registers in order to avoid undesired events.}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:21: ./include/linux/gpio/driver.hhMhjSubah}(h]h ]h"]h$]h&]uh1j!hj7ubeh}(h]h ]h"]h$]h&]uh1jhjRhMhjubj)}(hX``init_valid_mask`` optional routine to initialize **valid_mask**, to be used if not all GPIO lines are valid interrupts. Sometimes some lines just cannot fire interrupts, and this routine, when defined, is passed a bitmap in "valid_mask" and it will have ngpios bits from 0..(ngpios-1) set to "1" as in valid. The callback can then directly set some bits to "0" if they cannot be used for interrupts. h](j)}(h``init_valid_mask``h]j )}(hjwh]hinit_valid_mask}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjuubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:21: ./include/linux/gpio/driver.hhMhjqubj")}(hhh]h)}(hX}optional routine to initialize **valid_mask**, to be used if not all GPIO lines are valid interrupts. Sometimes some lines just cannot fire interrupts, and this routine, when defined, is passed a bitmap in "valid_mask" and it will have ngpios bits from 0..(ngpios-1) set to "1" as in valid. The callback can then directly set some bits to "0" if they cannot be used for interrupts.h](hoptional routine to initialize }(hjhhhNhNubj)}(h**valid_mask**h]h valid_mask}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhX\, to be used if not all GPIO lines are valid interrupts. Sometimes some lines just cannot fire interrupts, and this routine, when defined, is passed a bitmap in “valid_mask” and it will have ngpios bits from 0..(ngpios-1) set to “1” as in valid. The callback can then directly set some bits to “0” if they cannot be used for interrupts.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:21: ./include/linux/gpio/driver.hhM hjubah}(h]h ]h"]h$]h&]uh1j!hjqubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(hq``valid_mask`` If not ``NULL``, holds bitmask of GPIOs which are valid to be included in IRQ domain of the chip. h](j)}(h``valid_mask``h]j )}(hjh]h valid_mask}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:21: ./include/linux/gpio/driver.hhMhjubj")}(hhh]h)}(haIf not ``NULL``, holds bitmask of GPIOs which are valid to be included in IRQ domain of the chip.h](hIf not }(hjhhhNhNubj )}(h``NULL``h]hNULL}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjubhR, holds bitmask of GPIOs which are valid to be included in IRQ domain of the chip.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:21: ./include/linux/gpio/driver.hhMhjubah}(h]h ]h"]h$]h&]uh1j!hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h``first`` Required for static IRQ allocation. If set, irq_domain_create_simple() will allocate and map all IRQs during initialization. h](j)}(h ``first``h]j )}(hj h]hfirst}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j hj ubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:21: ./include/linux/gpio/driver.hhM#hj ubj")}(hhh]h)}(h|Required for static IRQ allocation. If set, irq_domain_create_simple() will allocate and map all IRQs during initialization.h]h|Required for static IRQ allocation. If set, irq_domain_create_simple() will allocate and map all IRQs during initialization.}(hj( hhhNhNubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:21: ./include/linux/gpio/driver.hhM!hj% ubah}(h]h ]h"]h$]h&]uh1j!hj ubeh}(h]h ]h"]h$]h&]uh1jhj$ hM#hjubj)}(h6``irq_enable`` Store old irq_chip irq_enable callback h](j)}(h``irq_enable``h]j )}(hjI h]h irq_enable}(hjK hhhNhNubah}(h]h ]h"]h$]h&]uh1j hjG ubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:21: ./include/linux/gpio/driver.hhM*hjC ubj")}(hhh]h)}(h&Store old irq_chip irq_enable callbackh]h&Store old irq_chip irq_enable callback}(hjb hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj^ hM*hj_ ubah}(h]h ]h"]h$]h&]uh1j!hjC ubeh}(h]h ]h"]h$]h&]uh1jhj^ hM*hjubj)}(h8``irq_disable`` Store old irq_chip irq_disable callback h](j)}(h``irq_disable``h]j )}(hj h]h irq_disable}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j hj ubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:21: ./include/linux/gpio/driver.hhM1hj| ubj")}(hhh]h)}(h'Store old irq_chip irq_disable callbackh]h'Store old irq_chip irq_disable callback}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hM1hj ubah}(h]h ]h"]h$]h&]uh1j!hj| ubeh}(h]h ]h"]h$]h&]uh1jhj hM1hjubj)}(h6``irq_unmask`` Store old irq_chip irq_unmask callback h](j)}(h``irq_unmask``h]j )}(hj h]h irq_unmask}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j hj ubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:21: ./include/linux/gpio/driver.hhM7hj ubj")}(hhh]h)}(h&Store old irq_chip irq_unmask callbackh]h&Store old irq_chip irq_unmask callback}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hM7hj ubah}(h]h ]h"]h$]h&]uh1j!hj ubeh}(h]h ]h"]h$]h&]uh1jhj hM7hjubj)}(h1``irq_mask`` Store old irq_chip irq_mask callbackh](j)}(h ``irq_mask``h]j )}(hj h]hirq_mask}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j hj ubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:21: ./include/linux/gpio/driver.hhM=hj ubj")}(hhh]h)}(h$Store old irq_chip irq_mask callbackh]h$Store old irq_chip irq_mask callback}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:21: ./include/linux/gpio/driver.hhM>hj ubah}(h]h ]h"]h$]h&]uh1j!hj ubeh}(h]h ]h"]h$]h&]uh1jhj hM=hjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubj )}(hhh]h}(h]h ]h"]h$]h&]entries](jgpio_chip (C struct) c.gpio_chiphNtauh1j hhhhhNhNubj)}(hhh](j")}(h gpio_chiph]j()}(hstruct gpio_chiph](j.)}(hj1h]hstruct}(hjN hhhNhNubah}(h]h ]j:ah"]h$]h&]uh1j-hjJ hhha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:21: ./include/linux/gpio/driver.hhMDubj@)}(h h]h }(hj\ hhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjJ hhhj[ hMDubjQ)}(h gpio_chiph]jW)}(hjH h]h gpio_chip}(hjn hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjj ubah}(h]h ](jijjeh"]h$]h&]jnjouh1jPhjJ hhhj[ hMDubeh}(h]h ]h"]h$]h&]jnjojvuh1j'jwjxhjF hhhj[ hMDubah}(h]jA ah ](j|j}eh"]h$]h&]jj)jhuh1j!hj[ hMDhjC hhubj)}(hhh]h)}(habstract a GPIO controllerh]habstract a GPIO controller}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:21: ./include/linux/gpio/driver.hhMEhj hhubah}(h]h ]h"]h$]h&]uh1jhjC hhhj[ hMDubeh}(h]h ](jstructeh"]h$]h&]jjjj jj jjjuh1jhhhhhNhNubj)}(hX"**Definition**:: struct gpio_chip { const char *label; struct gpio_device *gpiodev; struct device *parent; struct fwnode_handle *fwnode; struct module *owner; int (*request)(struct gpio_chip *gc, unsigned int offset); void (*free)(struct gpio_chip *gc, unsigned int offset); int (*get_direction)(struct gpio_chip *gc, unsigned int offset); int (*direction_input)(struct gpio_chip *gc, unsigned int offset); int (*direction_output)(struct gpio_chip *gc, unsigned int offset, int value); int (*get)(struct gpio_chip *gc, unsigned int offset); int (*get_multiple)(struct gpio_chip *gc,unsigned long *mask, unsigned long *bits); void (*set)(struct gpio_chip *gc, unsigned int offset, int value); void (*set_multiple)(struct gpio_chip *gc,unsigned long *mask, unsigned long *bits); int (*set_rv)(struct gpio_chip *gc,unsigned int offset, int value); int (*set_multiple_rv)(struct gpio_chip *gc,unsigned long *mask, unsigned long *bits); int (*set_config)(struct gpio_chip *gc,unsigned int offset, unsigned long config); int (*to_irq)(struct gpio_chip *gc, unsigned int offset); void (*dbg_show)(struct seq_file *s, struct gpio_chip *gc); int (*init_valid_mask)(struct gpio_chip *gc,unsigned long *valid_mask, unsigned int ngpios); int (*add_pin_ranges)(struct gpio_chip *gc); int (*en_hw_timestamp)(struct gpio_chip *gc,u32 offset, unsigned long flags); int (*dis_hw_timestamp)(struct gpio_chip *gc,u32 offset, unsigned long flags); int base; u16 ngpio; u16 offset; const char *const *names; bool can_sleep; #if IS_ENABLED(CONFIG_GPIO_GENERIC); unsigned long (*read_reg)(void __iomem *reg); void (*write_reg)(void __iomem *reg, unsigned long data); bool be_bits; void __iomem *reg_dat; void __iomem *reg_set; void __iomem *reg_clr; void __iomem *reg_dir_out; void __iomem *reg_dir_in; bool bgpio_dir_unreadable; bool bgpio_pinctrl; int bgpio_bits; raw_spinlock_t bgpio_lock; unsigned long bgpio_data; unsigned long bgpio_dir; #endif ; #ifdef CONFIG_GPIOLIB_IRQCHIP; struct gpio_irq_chip irq; #endif ; #if defined(CONFIG_OF_GPIO); unsigned int of_gpio_n_cells; bool (*of_node_instance_match)(struct gpio_chip *gc, unsigned int i); int (*of_xlate)(struct gpio_chip *gc, const struct of_phandle_args *gpiospec, u32 *flags); #endif ; }; **Members** ``label`` a functional name for the GPIO device, such as a part number or the name of the SoC IP-block implementing it. ``gpiodev`` the internal state holder, opaque struct ``parent`` optional parent device providing the GPIOs ``fwnode`` optional fwnode providing this controller's properties ``owner`` helps prevent removal of modules exporting active GPIOs ``request`` optional hook for chip-specific activation, such as enabling module power and clock; may sleep; must return 0 on success or negative error number on failure ``free`` optional hook for chip-specific deactivation, such as disabling module power and clock; may sleep ``get_direction`` returns direction for signal "offset", 0=out, 1=in, (same as GPIO_LINE_DIRECTION_OUT / GPIO_LINE_DIRECTION_IN), or negative error. It is recommended to always implement this function, even on input-only or output-only gpio chips. ``direction_input`` configures signal "offset" as input, returns 0 on success or a negative error number. This can be omitted on input-only or output-only gpio chips. ``direction_output`` configures signal "offset" as output, returns 0 on success or a negative error number. This can be omitted on input-only or output-only gpio chips. ``get`` returns value for signal "offset", 0=low, 1=high, or negative error ``get_multiple`` reads values for multiple signals defined by "mask" and stores them in "bits", returns 0 on success or negative error ``set`` **DEPRECATED** - please use set_rv() instead ``set_multiple`` **DEPRECATED** - please use set_multiple_rv() instead ``set_rv`` assigns output value for signal "offset", returns 0 on success or negative error value ``set_multiple_rv`` assigns output values for multiple signals defined by "mask", returns 0 on success or negative error value ``set_config`` optional hook for all kinds of settings. Uses the same packed config format as generic pinconf. Must return 0 on success and a negative error number on failure. ``to_irq`` optional hook supporting non-static gpiod_to_irq() mappings; implementation may not sleep ``dbg_show`` optional routine to show contents in debugfs; default code will be used when this is omitted, but custom code can show extra state (such as pullup/pulldown configuration). ``init_valid_mask`` optional routine to initialize **valid_mask**, to be used if not all GPIOs are valid. ``add_pin_ranges`` optional routine to initialize pin ranges, to be used when requires special mapping of the pins that provides GPIO functionality. It is called after adding GPIO chip and before adding IRQ chip. ``en_hw_timestamp`` Dependent on GPIO chip, an optional routine to enable hardware timestamp. ``dis_hw_timestamp`` Dependent on GPIO chip, an optional routine to disable hardware timestamp. ``base`` identifies the first GPIO number handled by this chip; or, if negative during registration, requests dynamic ID allocation. DEPRECATION: providing anything non-negative and nailing the base offset of GPIO chips is deprecated. Please pass -1 as base to let gpiolib select the chip base in all possible cases. We want to get rid of the static GPIO number space in the long run. ``ngpio`` the number of GPIOs handled by this controller; the last GPIO handled is (base + ngpio - 1). ``offset`` when multiple gpio chips belong to the same device this can be used as offset within the device so friendly names can be properly assigned. ``names`` if set, must be an array of strings to use as alternative names for the GPIOs in this chip. Any entry in the array may be NULL if there is no alias for the GPIO, however the array must be **ngpio** entries long. ``can_sleep`` flag must be set iff get()/set() methods sleep, as they must while accessing GPIO expander chips over I2C or SPI. This implies that if the chip supports IRQs, these IRQs need to be threaded as the chip access may sleep when e.g. reading out the IRQ status registers. ``read_reg`` reader function for generic GPIO ``write_reg`` writer function for generic GPIO ``be_bits`` if the generic GPIO has big endian bit order (bit 31 is representing line 0, bit 30 is line 1 ... bit 0 is line 31) this is set to true by the generic GPIO core. It is for internal housekeeping only. ``reg_dat`` data (in) register for generic GPIO ``reg_set`` output set register (out=high) for generic GPIO ``reg_clr`` output clear register (out=low) for generic GPIO ``reg_dir_out`` direction out setting register for generic GPIO ``reg_dir_in`` direction in setting register for generic GPIO ``bgpio_dir_unreadable`` indicates that the direction register(s) cannot be read and we need to rely on out internal state tracking. ``bgpio_pinctrl`` the generic GPIO uses a pin control backend. ``bgpio_bits`` number of register bits used for a generic GPIO i.e. * 8 ``bgpio_lock`` used to lock chip->bgpio_data. Also, this is needed to keep shadowed and real data registers writes together. ``bgpio_data`` shadowed data register for generic GPIO to clear/set bits safely. ``bgpio_dir`` shadowed direction register for generic GPIO to clear/set direction safely. A "1" in this word means the line is set as output. ``irq`` Integrates interrupt chip functionality with the GPIO chip. Can be used to handle IRQs for most practical cases. ``of_gpio_n_cells`` Number of cells used to form the GPIO specifier. The standard is 2 cells: gpios = <:c:type:`gpio` offset flags>; some complex GPIO controllers instantiate more than one chip per device tree node and have 3 cells: gpios = <:c:type:`gpio` instance offset flags>; Legacy GPIO controllers may even have 1 cell: gpios = <:c:type:`gpio` offset>; ``of_node_instance_match`` Determine if a chip is the right instance. Must be implemented by any driver using more than one gpio_chip per device tree node. Returns true if gc is the instance indicated by i (which is the first cell in the phandles for GPIO lines and gpio-ranges). ``of_xlate`` Callback to translate a device tree GPIO specifier into a chip- relative GPIO number and flags.h](h)}(h**Definition**::h](j)}(h**Definition**h]h Definition}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubh:}(hj hhhNhNubeh}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:21: ./include/linux/gpio/driver.hhMIhj ubj)}(hX struct gpio_chip { const char *label; struct gpio_device *gpiodev; struct device *parent; struct fwnode_handle *fwnode; struct module *owner; int (*request)(struct gpio_chip *gc, unsigned int offset); void (*free)(struct gpio_chip *gc, unsigned int offset); int (*get_direction)(struct gpio_chip *gc, unsigned int offset); int (*direction_input)(struct gpio_chip *gc, unsigned int offset); int (*direction_output)(struct gpio_chip *gc, unsigned int offset, int value); int (*get)(struct gpio_chip *gc, unsigned int offset); int (*get_multiple)(struct gpio_chip *gc,unsigned long *mask, unsigned long *bits); void (*set)(struct gpio_chip *gc, unsigned int offset, int value); void (*set_multiple)(struct gpio_chip *gc,unsigned long *mask, unsigned long *bits); int (*set_rv)(struct gpio_chip *gc,unsigned int offset, int value); int (*set_multiple_rv)(struct gpio_chip *gc,unsigned long *mask, unsigned long *bits); int (*set_config)(struct gpio_chip *gc,unsigned int offset, unsigned long config); int (*to_irq)(struct gpio_chip *gc, unsigned int offset); void (*dbg_show)(struct seq_file *s, struct gpio_chip *gc); int (*init_valid_mask)(struct gpio_chip *gc,unsigned long *valid_mask, unsigned int ngpios); int (*add_pin_ranges)(struct gpio_chip *gc); int (*en_hw_timestamp)(struct gpio_chip *gc,u32 offset, unsigned long flags); int (*dis_hw_timestamp)(struct gpio_chip *gc,u32 offset, unsigned long flags); int base; u16 ngpio; u16 offset; const char *const *names; bool can_sleep; #if IS_ENABLED(CONFIG_GPIO_GENERIC); unsigned long (*read_reg)(void __iomem *reg); void (*write_reg)(void __iomem *reg, unsigned long data); bool be_bits; void __iomem *reg_dat; void __iomem *reg_set; void __iomem *reg_clr; void __iomem *reg_dir_out; void __iomem *reg_dir_in; bool bgpio_dir_unreadable; bool bgpio_pinctrl; int bgpio_bits; raw_spinlock_t bgpio_lock; unsigned long bgpio_data; unsigned long bgpio_dir; #endif ; #ifdef CONFIG_GPIOLIB_IRQCHIP; struct gpio_irq_chip irq; #endif ; #if defined(CONFIG_OF_GPIO); unsigned int of_gpio_n_cells; bool (*of_node_instance_match)(struct gpio_chip *gc, unsigned int i); int (*of_xlate)(struct gpio_chip *gc, const struct of_phandle_args *gpiospec, u32 *flags); #endif ; };h]hX struct gpio_chip { const char *label; struct gpio_device *gpiodev; struct device *parent; struct fwnode_handle *fwnode; struct module *owner; int (*request)(struct gpio_chip *gc, unsigned int offset); void (*free)(struct gpio_chip *gc, unsigned int offset); int (*get_direction)(struct gpio_chip *gc, unsigned int offset); int (*direction_input)(struct gpio_chip *gc, unsigned int offset); int (*direction_output)(struct gpio_chip *gc, unsigned int offset, int value); int (*get)(struct gpio_chip *gc, unsigned int offset); int (*get_multiple)(struct gpio_chip *gc,unsigned long *mask, unsigned long *bits); void (*set)(struct gpio_chip *gc, unsigned int offset, int value); void (*set_multiple)(struct gpio_chip *gc,unsigned long *mask, unsigned long *bits); int (*set_rv)(struct gpio_chip *gc,unsigned int offset, int value); int (*set_multiple_rv)(struct gpio_chip *gc,unsigned long *mask, unsigned long *bits); int (*set_config)(struct gpio_chip *gc,unsigned int offset, unsigned long config); int (*to_irq)(struct gpio_chip *gc, unsigned int offset); void (*dbg_show)(struct seq_file *s, struct gpio_chip *gc); int (*init_valid_mask)(struct gpio_chip *gc,unsigned long *valid_mask, unsigned int ngpios); int (*add_pin_ranges)(struct gpio_chip *gc); int (*en_hw_timestamp)(struct gpio_chip *gc,u32 offset, unsigned long flags); int (*dis_hw_timestamp)(struct gpio_chip *gc,u32 offset, unsigned long flags); int base; u16 ngpio; u16 offset; const char *const *names; bool can_sleep; #if IS_ENABLED(CONFIG_GPIO_GENERIC); unsigned long (*read_reg)(void __iomem *reg); void (*write_reg)(void __iomem *reg, unsigned long data); bool be_bits; void __iomem *reg_dat; void __iomem *reg_set; void __iomem *reg_clr; void __iomem *reg_dir_out; void __iomem *reg_dir_in; bool bgpio_dir_unreadable; bool bgpio_pinctrl; int bgpio_bits; raw_spinlock_t bgpio_lock; unsigned long bgpio_data; unsigned long bgpio_dir; #endif ; #ifdef CONFIG_GPIOLIB_IRQCHIP; struct gpio_irq_chip irq; #endif ; #if defined(CONFIG_OF_GPIO); unsigned int of_gpio_n_cells; bool (*of_node_instance_match)(struct gpio_chip *gc, unsigned int i); int (*of_xlate)(struct gpio_chip *gc, const struct of_phandle_args *gpiospec, u32 *flags); #endif ; };}hj sbah}(h]h ]h"]h$]h&]jnjouh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:21: ./include/linux/gpio/driver.hhMKhj ubh)}(h **Members**h]j)}(hj h]hMembers}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:21: ./include/linux/gpio/driver.hhMhj ubj)}(hhh](j)}(hx``label`` a functional name for the GPIO device, such as a part number or the name of the SoC IP-block implementing it. h](j)}(h ``label``h]j )}(hj h]hlabel}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j hj ubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:21: ./include/linux/gpio/driver.hhMHhj ubj")}(hhh]h)}(hma functional name for the GPIO device, such as a part number or the name of the SoC IP-block implementing it.h]hma functional name for the GPIO device, such as a part number or the name of the SoC IP-block implementing it.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:21: ./include/linux/gpio/driver.hhMGhj ubah}(h]h ]h"]h$]h&]uh1j!hj ubeh}(h]h ]h"]h$]h&]uh1jhj hMHhj ubj)}(h5``gpiodev`` the internal state holder, opaque struct h](j)}(h ``gpiodev``h]j )}(hj7 h]hgpiodev}(hj9 hhhNhNubah}(h]h ]h"]h$]h&]uh1j hj5 ubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:21: ./include/linux/gpio/driver.hhMIhj1 ubj")}(hhh]h)}(h(the internal state holder, opaque structh]h(the internal state holder, opaque struct}(hjP hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjL hMIhjM ubah}(h]h ]h"]h$]h&]uh1j!hj1 ubeh}(h]h ]h"]h$]h&]uh1jhjL hMIhj ubj)}(h6``parent`` optional parent device providing the GPIOs h](j)}(h ``parent``h]j )}(hjp h]hparent}(hjr hhhNhNubah}(h]h ]h"]h$]h&]uh1j hjn ubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:21: ./include/linux/gpio/driver.hhMJhjj ubj")}(hhh]h)}(h*optional parent device providing the GPIOsh]h*optional parent device providing the GPIOs}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hMJhj ubah}(h]h ]h"]h$]h&]uh1j!hjj ubeh}(h]h ]h"]h$]h&]uh1jhj hMJhj ubj)}(hB``fwnode`` optional fwnode providing this controller's properties h](j)}(h ``fwnode``h]j )}(hj h]hfwnode}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j hj ubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:21: ./include/linux/gpio/driver.hhMKhj ubj")}(hhh]h)}(h6optional fwnode providing this controller's propertiesh]h8optional fwnode providing this controller’s properties}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hMKhj ubah}(h]h ]h"]h$]h&]uh1j!hj ubeh}(h]h ]h"]h$]h&]uh1jhj hMKhj ubj)}(hB``owner`` helps prevent removal of modules exporting active GPIOs h](j)}(h ``owner``h]j )}(hj h]howner}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j hj ubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:21: ./include/linux/gpio/driver.hhMLhj ubj")}(hhh]h)}(h7helps prevent removal of modules exporting active GPIOsh]h7helps prevent removal of modules exporting active GPIOs}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hMLhj ubah}(h]h ]h"]h$]h&]uh1j!hj ubeh}(h]h ]h"]h$]h&]uh1jhj hMLhj ubj)}(h``request`` optional hook for chip-specific activation, such as enabling module power and clock; may sleep; must return 0 on success or negative error number on failure h](j)}(h ``request``h]j )}(hj h]hrequest}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j hj ubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:21: ./include/linux/gpio/driver.hhMOhj ubj")}(hhh]h)}(hoptional hook for chip-specific activation, such as enabling module power and clock; may sleep; must return 0 on success or negative error number on failureh]hoptional hook for chip-specific activation, such as enabling module power and clock; may sleep; must return 0 on success or negative error number on failure}(hj4 hhhNhNubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:21: ./include/linux/gpio/driver.hhMMhj1 ubah}(h]h ]h"]h$]h&]uh1j!hj ubeh}(h]h ]h"]h$]h&]uh1jhj0 hMOhj ubj)}(hk``free`` optional hook for chip-specific deactivation, such as disabling module power and clock; may sleep h](j)}(h``free``h]j )}(hjU h]hfree}(hjW hhhNhNubah}(h]h ]h"]h$]h&]uh1j hjS ubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:21: ./include/linux/gpio/driver.hhMQhjO ubj")}(hhh]h)}(haoptional hook for chip-specific deactivation, such as disabling module power and clock; may sleeph]haoptional hook for chip-specific deactivation, such as disabling module power and clock; may sleep}(hjn hhhNhNubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:21: ./include/linux/gpio/driver.hhMPhjk ubah}(h]h ]h"]h$]h&]uh1j!hjO ubeh}(h]h ]h"]h$]h&]uh1jhjj hMQhj ubj)}(h``get_direction`` returns direction for signal "offset", 0=out, 1=in, (same as GPIO_LINE_DIRECTION_OUT / GPIO_LINE_DIRECTION_IN), or negative error. It is recommended to always implement this function, even on input-only or output-only gpio chips. h](j)}(h``get_direction``h]j )}(hj h]h get_direction}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j hj ubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:21: ./include/linux/gpio/driver.hhMUhj ubj")}(hhh]h)}(hreturns direction for signal "offset", 0=out, 1=in, (same as GPIO_LINE_DIRECTION_OUT / GPIO_LINE_DIRECTION_IN), or negative error. It is recommended to always implement this function, even on input-only or output-only gpio chips.h]hreturns direction for signal “offset”, 0=out, 1=in, (same as GPIO_LINE_DIRECTION_OUT / GPIO_LINE_DIRECTION_IN), or negative error. It is recommended to always implement this function, even on input-only or output-only gpio chips.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:21: ./include/linux/gpio/driver.hhMRhj ubah}(h]h ]h"]h$]h&]uh1j!hj ubeh}(h]h ]h"]h$]h&]uh1jhj hMUhj ubj)}(h``direction_input`` configures signal "offset" as input, returns 0 on success or a negative error number. This can be omitted on input-only or output-only gpio chips. h](j)}(h``direction_input``h]j )}(hj h]hdirection_input}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j hj ubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:21: ./include/linux/gpio/driver.hhMXhj ubj")}(hhh]h)}(hconfigures signal "offset" as input, returns 0 on success or a negative error number. This can be omitted on input-only or output-only gpio chips.h]hconfigures signal “offset” as input, returns 0 on success or a negative error number. This can be omitted on input-only or output-only gpio chips.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:21: ./include/linux/gpio/driver.hhMVhj ubah}(h]h ]h"]h$]h&]uh1j!hj ubeh}(h]h ]h"]h$]h&]uh1jhj hMXhj ubj)}(h``direction_output`` configures signal "offset" as output, returns 0 on success or a negative error number. This can be omitted on input-only or output-only gpio chips. h](j)}(h``direction_output``h]j )}(hj h]hdirection_output}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j hj ubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:21: ./include/linux/gpio/driver.hhM[hj ubj")}(hhh]h)}(hconfigures signal "offset" as output, returns 0 on success or a negative error number. This can be omitted on input-only or output-only gpio chips.h]hconfigures signal “offset” as output, returns 0 on success or a negative error number. This can be omitted on input-only or output-only gpio chips.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:21: ./include/linux/gpio/driver.hhMYhj ubah}(h]h ]h"]h$]h&]uh1j!hj ubeh}(h]h ]h"]h$]h&]uh1jhj hM[hj ubj)}(hL``get`` returns value for signal "offset", 0=low, 1=high, or negative error h](j)}(h``get``h]j )}(hj= h]hget}(hj? hhhNhNubah}(h]h ]h"]h$]h&]uh1j hj; ubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:21: ./include/linux/gpio/driver.hhM\hj7 ubj")}(hhh]h)}(hCreturns value for signal "offset", 0=low, 1=high, or negative errorh]hGreturns value for signal “offset”, 0=low, 1=high, or negative error}(hjV hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjR hM\hjS ubah}(h]h ]h"]h$]h&]uh1j!hj7 ubeh}(h]h ]h"]h$]h&]uh1jhjR hM\hj ubj)}(h``get_multiple`` reads values for multiple signals defined by "mask" and stores them in "bits", returns 0 on success or negative error h](j)}(h``get_multiple``h]j )}(hjv h]h get_multiple}(hjx hhhNhNubah}(h]h ]h"]h$]h&]uh1j hjt ubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:21: ./include/linux/gpio/driver.hhM^hjp ubj")}(hhh]h)}(hureads values for multiple signals defined by "mask" and stores them in "bits", returns 0 on success or negative errorh]h}reads values for multiple signals defined by “mask” and stores them in “bits”, returns 0 on success or negative error}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:21: ./include/linux/gpio/driver.hhM]hj ubah}(h]h ]h"]h$]h&]uh1j!hjp ubeh}(h]h ]h"]h$]h&]uh1jhj hM^hj ubj)}(h5``set`` **DEPRECATED** - please use set_rv() instead h](j)}(h``set``h]j )}(hj h]hset}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j hj ubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:21: ./include/linux/gpio/driver.hhM_hj ubj")}(hhh]h)}(h,**DEPRECATED** - please use set_rv() insteadh](j)}(h**DEPRECATED**h]h DEPRECATED}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubh - please use set_rv() instead}(hj hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj hM_hj ubah}(h]h ]h"]h$]h&]uh1j!hj ubeh}(h]h ]h"]h$]h&]uh1jhj hM_hj ubj)}(hG``set_multiple`` **DEPRECATED** - please use set_multiple_rv() instead h](j)}(h``set_multiple``h]j )}(hj h]h set_multiple}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j hj ubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:21: ./include/linux/gpio/driver.hhM`hj ubj")}(hhh]h)}(h5**DEPRECATED** - please use set_multiple_rv() insteadh](j)}(h**DEPRECATED**h]h DEPRECATED}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh' - please use set_multiple_rv() instead}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj hM`hj ubah}(h]h ]h"]h$]h&]uh1j!hj ubeh}(h]h ]h"]h$]h&]uh1jhj hM`hj ubj)}(hb``set_rv`` assigns output value for signal "offset", returns 0 on success or negative error value h](j)}(h ``set_rv``h]j )}(hj>h]hset_rv}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1j hj<ubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:21: ./include/linux/gpio/driver.hhMbhj8ubj")}(hhh]h)}(hVassigns output value for signal "offset", returns 0 on success or negative error valueh]hZassigns output value for signal “offset”, returns 0 on success or negative error value}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:21: ./include/linux/gpio/driver.hhMahjTubah}(h]h ]h"]h$]h&]uh1j!hj8ubeh}(h]h ]h"]h$]h&]uh1jhjShMbhj ubj)}(h``set_multiple_rv`` assigns output values for multiple signals defined by "mask", returns 0 on success or negative error value h](j)}(h``set_multiple_rv``h]j )}(hjxh]hset_multiple_rv}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjvubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:21: ./include/linux/gpio/driver.hhMdhjrubj")}(hhh]h)}(hjassigns output values for multiple signals defined by "mask", returns 0 on success or negative error valueh]hnassigns output values for multiple signals defined by “mask”, returns 0 on success or negative error value}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:21: ./include/linux/gpio/driver.hhMchjubah}(h]h ]h"]h$]h&]uh1j!hjrubeh}(h]h ]h"]h$]h&]uh1jhjhMdhj ubj)}(h``set_config`` optional hook for all kinds of settings. Uses the same packed config format as generic pinconf. Must return 0 on success and a negative error number on failure. h](j)}(h``set_config``h]j )}(hjh]h set_config}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:21: ./include/linux/gpio/driver.hhMghjubj")}(hhh]h)}(hoptional hook for all kinds of settings. Uses the same packed config format as generic pinconf. Must return 0 on success and a negative error number on failure.h]hoptional hook for all kinds of settings. Uses the same packed config format as generic pinconf. Must return 0 on success and a negative error number on failure.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:21: ./include/linux/gpio/driver.hhMehjubah}(h]h ]h"]h$]h&]uh1j!hjubeh}(h]h ]h"]h$]h&]uh1jhjhMghj ubj)}(he``to_irq`` optional hook supporting non-static gpiod_to_irq() mappings; implementation may not sleep h](j)}(h ``to_irq``h]j )}(hjh]hto_irq}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:21: ./include/linux/gpio/driver.hhMihjubj")}(hhh]h)}(hYoptional hook supporting non-static gpiod_to_irq() mappings; implementation may not sleeph]hYoptional hook supporting non-static gpiod_to_irq() mappings; implementation may not sleep}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:21: ./include/linux/gpio/driver.hhMhhjubah}(h]h ]h"]h$]h&]uh1j!hjubeh}(h]h ]h"]h$]h&]uh1jhjhMihj ubj)}(h``dbg_show`` optional routine to show contents in debugfs; default code will be used when this is omitted, but custom code can show extra state (such as pullup/pulldown configuration). h](j)}(h ``dbg_show``h]j )}(hj&h]hdbg_show}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1j hj$ubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:21: ./include/linux/gpio/driver.hhMlhj ubj")}(hhh]h)}(hoptional routine to show contents in debugfs; default code will be used when this is omitted, but custom code can show extra state (such as pullup/pulldown configuration).h]hoptional routine to show contents in debugfs; default code will be used when this is omitted, but custom code can show extra state (such as pullup/pulldown configuration).}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:21: ./include/linux/gpio/driver.hhMjhj<ubah}(h]h ]h"]h$]h&]uh1j!hj ubeh}(h]h ]h"]h$]h&]uh1jhj;hMlhj ubj)}(hj``init_valid_mask`` optional routine to initialize **valid_mask**, to be used if not all GPIOs are valid. h](j)}(h``init_valid_mask``h]j )}(hj`h]hinit_valid_mask}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1j hj^ubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:21: ./include/linux/gpio/driver.hhMnhjZubj")}(hhh]h)}(hUoptional routine to initialize **valid_mask**, to be used if not all GPIOs are valid.h](hoptional routine to initialize }(hjyhhhNhNubj)}(h**valid_mask**h]h valid_mask}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjyubh(, to be used if not all GPIOs are valid.}(hjyhhhNhNubeh}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:21: ./include/linux/gpio/driver.hhMmhjvubah}(h]h ]h"]h$]h&]uh1j!hjZubeh}(h]h ]h"]h$]h&]uh1jhjuhMnhj ubj)}(h``add_pin_ranges`` optional routine to initialize pin ranges, to be used when requires special mapping of the pins that provides GPIO functionality. It is called after adding GPIO chip and before adding IRQ chip. h](j)}(h``add_pin_ranges``h]j )}(hjh]hadd_pin_ranges}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:21: ./include/linux/gpio/driver.hhMqhjubj")}(hhh]h)}(hoptional routine to initialize pin ranges, to be used when requires special mapping of the pins that provides GPIO functionality. It is called after adding GPIO chip and before adding IRQ chip.h]hoptional routine to initialize pin ranges, to be used when requires special mapping of the pins that provides GPIO functionality. It is called after adding GPIO chip and before adding IRQ chip.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:21: ./include/linux/gpio/driver.hhMohjubah}(h]h ]h"]h$]h&]uh1j!hjubeh}(h]h ]h"]h$]h&]uh1jhjhMqhj ubj)}(h^``en_hw_timestamp`` Dependent on GPIO chip, an optional routine to enable hardware timestamp. h](j)}(h``en_hw_timestamp``h]j )}(hjh]hen_hw_timestamp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:21: ./include/linux/gpio/driver.hhMshjubj")}(hhh]h)}(hIDependent on GPIO chip, an optional routine to enable hardware timestamp.h]hIDependent on GPIO chip, an optional routine to enable hardware timestamp.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:21: ./include/linux/gpio/driver.hhMrhjubah}(h]h ]h"]h$]h&]uh1j!hjubeh}(h]h ]h"]h$]h&]uh1jhjhMshj ubj)}(h```dis_hw_timestamp`` Dependent on GPIO chip, an optional routine to disable hardware timestamp. h](j)}(h``dis_hw_timestamp``h]j )}(hj h]hdis_hw_timestamp}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1j hjubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:21: ./include/linux/gpio/driver.hhMuhjubj")}(hhh]h)}(hJDependent on GPIO chip, an optional routine to disable hardware timestamp.h]hJDependent on GPIO chip, an optional routine to disable hardware timestamp.}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:21: ./include/linux/gpio/driver.hhMthj6ubah}(h]h ]h"]h$]h&]uh1j!hjubeh}(h]h ]h"]h$]h&]uh1jhj5hMuhj ubj)}(hX``base`` identifies the first GPIO number handled by this chip; or, if negative during registration, requests dynamic ID allocation. DEPRECATION: providing anything non-negative and nailing the base offset of GPIO chips is deprecated. Please pass -1 as base to let gpiolib select the chip base in all possible cases. We want to get rid of the static GPIO number space in the long run. h](j)}(h``base``h]j )}(hjZh]hbase}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1j hjXubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:21: ./include/linux/gpio/driver.hhM{hjTubj")}(hhh]h)}(hXwidentifies the first GPIO number handled by this chip; or, if negative during registration, requests dynamic ID allocation. DEPRECATION: providing anything non-negative and nailing the base offset of GPIO chips is deprecated. Please pass -1 as base to let gpiolib select the chip base in all possible cases. We want to get rid of the static GPIO number space in the long run.h]hXwidentifies the first GPIO number handled by this chip; or, if negative during registration, requests dynamic ID allocation. DEPRECATION: providing anything non-negative and nailing the base offset of GPIO chips is deprecated. Please pass -1 as base to let gpiolib select the chip base in all possible cases. We want to get rid of the static GPIO number space in the long run.}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:21: ./include/linux/gpio/driver.hhMvhjpubah}(h]h ]h"]h$]h&]uh1j!hjTubeh}(h]h ]h"]h$]h&]uh1jhjohM{hj ubj)}(hg``ngpio`` the number of GPIOs handled by this controller; the last GPIO handled is (base + ngpio - 1). h](j)}(h ``ngpio``h]j )}(hjh]hngpio}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:21: ./include/linux/gpio/driver.hhM}hjubj")}(hhh]h)}(h\the number of GPIOs handled by this controller; the last GPIO handled is (base + ngpio - 1).h]h\the number of GPIOs handled by this controller; the last GPIO handled is (base + ngpio - 1).}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:21: ./include/linux/gpio/driver.hhM|hjubah}(h]h ]h"]h$]h&]uh1j!hjubeh}(h]h ]h"]h$]h&]uh1jhjhM}hj ubj)}(h``offset`` when multiple gpio chips belong to the same device this can be used as offset within the device so friendly names can be properly assigned. h](j)}(h ``offset``h]j )}(hjh]hoffset}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:21: ./include/linux/gpio/driver.hhMhjubj")}(hhh]h)}(hwhen multiple gpio chips belong to the same device this can be used as offset within the device so friendly names can be properly assigned.h]hwhen multiple gpio chips belong to the same device this can be used as offset within the device so friendly names can be properly assigned.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:21: ./include/linux/gpio/driver.hhM~hjubah}(h]h ]h"]h$]h&]uh1j!hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhj ubj)}(h``names`` if set, must be an array of strings to use as alternative names for the GPIOs in this chip. Any entry in the array may be NULL if there is no alias for the GPIO, however the array must be **ngpio** entries long. h](j)}(h ``names``h]j )}(hjh]hnames}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j hjubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:21: ./include/linux/gpio/driver.hhMhjubj")}(hhh]h)}(hif set, must be an array of strings to use as alternative names for the GPIOs in this chip. Any entry in the array may be NULL if there is no alias for the GPIO, however the array must be **ngpio** entries long.h](hif set, must be an array of strings to use as alternative names for the GPIOs in this chip. Any entry in the array may be NULL if there is no alias for the GPIO, however the array must be }(hj!hhhNhNubj)}(h **ngpio**h]hngpio}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj!ubh entries long.}(hj!hhhNhNubeh}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:21: ./include/linux/gpio/driver.hhMhjubah}(h]h ]h"]h$]h&]uh1j!hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhj ubj)}(hX``can_sleep`` flag must be set iff get()/set() methods sleep, as they must while accessing GPIO expander chips over I2C or SPI. This implies that if the chip supports IRQs, these IRQs need to be threaded as the chip access may sleep when e.g. reading out the IRQ status registers. h](j)}(h ``can_sleep``h]j )}(hjTh]h can_sleep}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjRubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:21: ./include/linux/gpio/driver.hhMhjNubj")}(hhh]h)}(hX flag must be set iff get()/set() methods sleep, as they must while accessing GPIO expander chips over I2C or SPI. This implies that if the chip supports IRQs, these IRQs need to be threaded as the chip access may sleep when e.g. reading out the IRQ status registers.h]hX flag must be set iff get()/set() methods sleep, as they must while accessing GPIO expander chips over I2C or SPI. This implies that if the chip supports IRQs, these IRQs need to be threaded as the chip access may sleep when e.g. reading out the IRQ status registers.}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:21: ./include/linux/gpio/driver.hhMhjjubah}(h]h ]h"]h$]h&]uh1j!hjNubeh}(h]h ]h"]h$]h&]uh1jhjihMhj ubj)}(h.``read_reg`` reader function for generic GPIO h](j)}(h ``read_reg``h]j )}(hjh]hread_reg}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:21: ./include/linux/gpio/driver.hhMhjubj")}(hhh]h)}(h reader function for generic GPIOh]h reader function for generic GPIO}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j!hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhj ubj)}(h/``write_reg`` writer function for generic GPIO h](j)}(h ``write_reg``h]j )}(hjh]h write_reg}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:21: ./include/linux/gpio/driver.hhMhjubj")}(hhh]h)}(h writer function for generic GPIOh]h writer function for generic GPIO}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j!hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhj ubj)}(h``be_bits`` if the generic GPIO has big endian bit order (bit 31 is representing line 0, bit 30 is line 1 ... bit 0 is line 31) this is set to true by the generic GPIO core. It is for internal housekeeping only. h](j)}(h ``be_bits``h]j )}(hjh]hbe_bits}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:21: ./include/linux/gpio/driver.hhMhjubj")}(hhh]h)}(hif the generic GPIO has big endian bit order (bit 31 is representing line 0, bit 30 is line 1 ... bit 0 is line 31) this is set to true by the generic GPIO core. It is for internal housekeeping only.h]hif the generic GPIO has big endian bit order (bit 31 is representing line 0, bit 30 is line 1 ... bit 0 is line 31) this is set to true by the generic GPIO core. It is for internal housekeeping only.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:21: ./include/linux/gpio/driver.hhMhjubah}(h]h ]h"]h$]h&]uh1j!hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhj ubj)}(h0``reg_dat`` data (in) register for generic GPIO h](j)}(h ``reg_dat``h]j )}(hj:h]hreg_dat}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1j hj8ubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:21: ./include/linux/gpio/driver.hhMhj4ubj")}(hhh]h)}(h#data (in) register for generic GPIOh]h#data (in) register for generic GPIO}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1hhjOhMhjPubah}(h]h ]h"]h$]h&]uh1j!hj4ubeh}(h]h ]h"]h$]h&]uh1jhjOhMhj ubj)}(h<``reg_set`` output set register (out=high) for generic GPIO h](j)}(h ``reg_set``h]j )}(hjsh]hreg_set}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjqubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:21: ./include/linux/gpio/driver.hhMhjmubj")}(hhh]h)}(h/output set register (out=high) for generic GPIOh]h/output set register (out=high) for generic GPIO}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j!hjmubeh}(h]h ]h"]h$]h&]uh1jhjhMhj ubj)}(h=``reg_clr`` output clear register (out=low) for generic GPIO h](j)}(h ``reg_clr``h]j )}(hjh]hreg_clr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:21: ./include/linux/gpio/driver.hhMhjubj")}(hhh]h)}(h0output clear register (out=low) for generic GPIOh]h0output clear register (out=low) for generic GPIO}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j!hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhj ubj)}(h@``reg_dir_out`` direction out setting register for generic GPIO h](j)}(h``reg_dir_out``h]j )}(hjh]h reg_dir_out}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:21: ./include/linux/gpio/driver.hhMhjubj")}(hhh]h)}(h/direction out setting register for generic GPIOh]h/direction out setting register for generic GPIO}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j!hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhj ubj)}(h>``reg_dir_in`` direction in setting register for generic GPIO h](j)}(h``reg_dir_in``h]j )}(hjh]h reg_dir_in}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j hjubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:21: ./include/linux/gpio/driver.hhMhjubj")}(hhh]h)}(h.direction in setting register for generic GPIOh]h.direction in setting register for generic GPIO}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj3hMhj4ubah}(h]h ]h"]h$]h&]uh1j!hjubeh}(h]h ]h"]h$]h&]uh1jhj3hMhj ubj)}(h``bgpio_dir_unreadable`` indicates that the direction register(s) cannot be read and we need to rely on out internal state tracking. h](j)}(h``bgpio_dir_unreadable``h]j )}(hjWh]hbgpio_dir_unreadable}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjUubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:21: ./include/linux/gpio/driver.hhMhjQubj")}(hhh]h)}(hkindicates that the direction register(s) cannot be read and we need to rely on out internal state tracking.h]hkindicates that the direction register(s) cannot be read and we need to rely on out internal state tracking.}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:21: ./include/linux/gpio/driver.hhMhjmubah}(h]h ]h"]h$]h&]uh1j!hjQubeh}(h]h ]h"]h$]h&]uh1jhjlhMhj ubj)}(h?``bgpio_pinctrl`` the generic GPIO uses a pin control backend. h](j)}(h``bgpio_pinctrl``h]j )}(hjh]h bgpio_pinctrl}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:21: ./include/linux/gpio/driver.hhMhjubj")}(hhh]h)}(h,the generic GPIO uses a pin control backend.h]h,the generic GPIO uses a pin control backend.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j!hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhj ubj)}(hY``bgpio_bits`` number of register bits used for a generic GPIO i.e. * 8 h](j)}(h``bgpio_bits``h]j )}(hjh]h bgpio_bits}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:21: ./include/linux/gpio/driver.hhMhjubj")}(hhh]h)}(hInumber of register bits used for a generic GPIO i.e. * 8h]hInumber of register bits used for a generic GPIO i.e. * 8}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:21: ./include/linux/gpio/driver.hhMhjubah}(h]h ]h"]h$]h&]uh1j!hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhj ubj)}(h}``bgpio_lock`` used to lock chip->bgpio_data. Also, this is needed to keep shadowed and real data registers writes together. h](j)}(h``bgpio_lock``h]j )}(hjh]h bgpio_lock}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:21: ./include/linux/gpio/driver.hhMhjubj")}(hhh]h)}(hmused to lock chip->bgpio_data. Also, this is needed to keep shadowed and real data registers writes together.h]hmused to lock chip->bgpio_data. Also, this is needed to keep shadowed and real data registers writes together.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:21: ./include/linux/gpio/driver.hhMhjubah}(h]h ]h"]h$]h&]uh1j!hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhj ubj)}(hQ``bgpio_data`` shadowed data register for generic GPIO to clear/set bits safely. h](j)}(h``bgpio_data``h]j )}(hj>h]h bgpio_data}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1j hj<ubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:21: ./include/linux/gpio/driver.hhMhj8ubj")}(hhh]h)}(hAshadowed data register for generic GPIO to clear/set bits safely.h]hAshadowed data register for generic GPIO to clear/set bits safely.}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:21: ./include/linux/gpio/driver.hhMhjTubah}(h]h ]h"]h$]h&]uh1j!hj8ubeh}(h]h ]h"]h$]h&]uh1jhjShMhj ubj)}(h``bgpio_dir`` shadowed direction register for generic GPIO to clear/set direction safely. A "1" in this word means the line is set as output. h](j)}(h ``bgpio_dir``h]j )}(hjxh]h bgpio_dir}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjvubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:21: ./include/linux/gpio/driver.hhMhjrubj")}(hhh]h)}(hshadowed direction register for generic GPIO to clear/set direction safely. A "1" in this word means the line is set as output.h]hshadowed direction register for generic GPIO to clear/set direction safely. A “1” in this word means the line is set as output.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:21: ./include/linux/gpio/driver.hhMhjubah}(h]h ]h"]h$]h&]uh1j!hjrubeh}(h]h ]h"]h$]h&]uh1jhjhMhj ubj)}(hy``irq`` Integrates interrupt chip functionality with the GPIO chip. Can be used to handle IRQs for most practical cases. h](j)}(h``irq``h]j )}(hjh]hirq}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:21: ./include/linux/gpio/driver.hhMhjubj")}(hhh]h)}(hpIntegrates interrupt chip functionality with the GPIO chip. Can be used to handle IRQs for most practical cases.h]hpIntegrates interrupt chip functionality with the GPIO chip. Can be used to handle IRQs for most practical cases.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:21: ./include/linux/gpio/driver.hhMhjubah}(h]h ]h"]h$]h&]uh1j!hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhj ubj)}(hXm``of_gpio_n_cells`` Number of cells used to form the GPIO specifier. The standard is 2 cells: gpios = <:c:type:`gpio` offset flags>; some complex GPIO controllers instantiate more than one chip per device tree node and have 3 cells: gpios = <:c:type:`gpio` instance offset flags>; Legacy GPIO controllers may even have 1 cell: gpios = <:c:type:`gpio` offset>; h](j)}(h``of_gpio_n_cells``h]j )}(hjh]hof_gpio_n_cells}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:21: ./include/linux/gpio/driver.hhMhjubj")}(hhh](h)}(hINumber of cells used to form the GPIO specifier. The standard is 2 cells:h]hINumber of cells used to form the GPIO specifier. The standard is 2 cells:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:21: ./include/linux/gpio/driver.hhMhjubh)}(h&gpios = <:c:type:`gpio` offset flags>;h](h gpios = <}(hjhhhNhNubh)}(h:c:type:`gpio`h]j )}(hjh]hgpio}(hj hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1j hjubah}(h]h ]h"]h$]h&]refdoch׌ refdomainjreftypetype refexplicitrefwarnjjjgpiouh1hha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:21: ./include/linux/gpio/driver.hhMhjubh offset flags>;}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj;hMhjubh)}(hcsome complex GPIO controllers instantiate more than one chip per device tree node and have 3 cells:h]hcsome complex GPIO controllers instantiate more than one chip per device tree node and have 3 cells:}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:21: ./include/linux/gpio/driver.hhMhjubh)}(h/gpios = <:c:type:`gpio` instance offset flags>;h](h gpios = <}(hjUhhhNhNubh)}(h:c:type:`gpio`h]j )}(hj_h]hgpio}(hjahhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1j hj]ubah}(h]h ]h"]h$]h&]refdoch׌ refdomainjreftypetype refexplicitrefwarnjjjgpiouh1hha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:21: ./include/linux/gpio/driver.hhMhjUubh instance offset flags>;}(hjUhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj|hMhjubh)}(h-Legacy GPIO controllers may even have 1 cell:h]h-Legacy GPIO controllers may even have 1 cell:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:21: ./include/linux/gpio/driver.hhMhjubh)}(h gpios = <:c:type:`gpio` offset>;h](h gpios = <}(hjhhhNhNubh)}(h:c:type:`gpio`h]j )}(hjh]hgpio}(hjhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1j hjubah}(h]h ]h"]h$]h&]refdoch׌ refdomainjreftypetype refexplicitrefwarnjjjgpiouh1hhjhMhjubh offset>;}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMhjubeh}(h]h ]h"]h$]h&]uh1j!hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhj ubj)}(hX``of_node_instance_match`` Determine if a chip is the right instance. Must be implemented by any driver using more than one gpio_chip per device tree node. Returns true if gc is the instance indicated by i (which is the first cell in the phandles for GPIO lines and gpio-ranges). h](j)}(h``of_node_instance_match``h]j )}(hjh]hof_node_instance_match}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:21: ./include/linux/gpio/driver.hhM$hjubj")}(hhh]h)}(hDetermine if a chip is the right instance. Must be implemented by any driver using more than one gpio_chip per device tree node. Returns true if gc is the instance indicated by i (which is the first cell in the phandles for GPIO lines and gpio-ranges).h]hDetermine if a chip is the right instance. Must be implemented by any driver using more than one gpio_chip per device tree node. Returns true if gc is the instance indicated by i (which is the first cell in the phandles for GPIO lines and gpio-ranges).}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:21: ./include/linux/gpio/driver.hhM!hjubah}(h]h ]h"]h$]h&]uh1j!hjubeh}(h]h ]h"]h$]h&]uh1jhjhM$hj ubj)}(hl``of_xlate`` Callback to translate a device tree GPIO specifier into a chip- relative GPIO number and flags.h](j)}(h ``of_xlate``h]j )}(hjh]hof_xlate}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:21: ./include/linux/gpio/driver.hhM+hj ubj")}(hhh]h)}(h_Callback to translate a device tree GPIO specifier into a chip- relative GPIO number and flags.h]h_Callback to translate a device tree GPIO specifier into a chip- relative GPIO number and flags.}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj(hM+hj)ubah}(h]h ]h"]h$]h&]uh1j!hj ubeh}(h]h ]h"]h$]h&]uh1jhj(hM+hj ubeh}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(h**Description**h]j)}(hjUh]h Description}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjSubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:21: ./include/linux/gpio/driver.hhM/hhhhubh)}(hA gpio_chip can help platforms abstract various sources of GPIOs so they can all be accessed through a common programming interface. Example sources would be SOC controllers, FPGAs, multifunction chips, dedicated GPIO expanders, and so on.h]hA gpio_chip can help platforms abstract various sources of GPIOs so they can all be accessed through a common programming interface. Example sources would be SOC controllers, FPGAs, multifunction chips, dedicated GPIO expanders, and so on.}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:21: ./include/linux/gpio/driver.hhMhhhhubh)}(hX Each chip controls a number of signals, identified in method calls by "offset" values in the range 0..(**ngpio** - 1). When those signals are referenced through calls like gpio_get_value(gpio), the offset is calculated by subtracting **base** from the gpio number.h](hkEach chip controls a number of signals, identified in method calls by “offset” values in the range 0..(}(hjzhhhNhNubj)}(h **ngpio**h]hngpio}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjzubh{ - 1). When those signals are referenced through calls like gpio_get_value(gpio), the offset is calculated by subtracting }(hjzhhhNhNubj)}(h**base**h]hbase}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjzubh from the gpio number.}(hjzhhhNhNubeh}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:21: ./include/linux/gpio/driver.hhMhhhhubj )}(hhh]h}(h]h ]h"]h$]h&]entries](j"for_each_hwgpio_in_range (C macro)c.for_each_hwgpio_in_rangehNtauh1j hhhhhNhNubj)}(hhh](j")}(hfor_each_hwgpio_in_rangeh]j()}(hfor_each_hwgpio_in_rangeh]jQ)}(hfor_each_hwgpio_in_rangeh]jW)}(hjh]hfor_each_hwgpio_in_range}(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjubah}(h]h ](jijjeh"]h$]h&]jnjouh1jPhjhhha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:21: ./include/linux/gpio/driver.hhMGubah}(h]h ]h"]h$]h&]jnjojvuh1j'jwjxhjhhhjhMGubah}(h]jah ](j|j}eh"]h$]h&]jj)jhuh1j!hjhMGhjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhjhMGubeh}(h]h ](jmacroeh"]h$]h&]jjjjjjjjjuh1jhhhhhNhNubh)}(h>``for_each_hwgpio_in_range (_chip, _i, _base, _size, _label)``h]j )}(hjh]h:for_each_hwgpio_in_range (_chip, _i, _base, _size, _label)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:21: ./include/linux/gpio/driver.hhMIhhhhubh block_quote)}(h)Iterates over all GPIOs in a given range h]h)}(h(Iterates over all GPIOs in a given rangeh]h(Iterates over all GPIOs in a given range}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:21: ./include/linux/gpio/driver.hhMGhjubah}(h]h ]h"]h$]h&]uh1jhj&hMGhhhhubj)}(hX**Parameters** ``_chip`` Chip to iterate over. ``_i`` Loop counter. ``_base`` First GPIO in the ranger. ``_size`` Amount of GPIOs to check starting from **base**. ``_label`` Place to store the address of the label if the GPIO is requested. Set to NULL for unused GPIOs.h](h)}(h**Parameters**h]j)}(hj3h]h Parameters}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj1ubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:21: ./include/linux/gpio/driver.hhMKhj-ubj)}(hhh](j)}(h ``_chip`` Chip to iterate over. h](j)}(h ``_chip``h]j )}(hjRh]h_chip}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1j hjPubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:21: ./include/linux/gpio/driver.hhMHhjLubj")}(hhh]h)}(hChip to iterate over.h]hChip to iterate over.}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjghMHhjhubah}(h]h ]h"]h$]h&]uh1j!hjLubeh}(h]h ]h"]h$]h&]uh1jhjghMHhjIubj)}(h``_i`` Loop counter. h](j)}(h``_i``h]j )}(hjh]h_i}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:21: ./include/linux/gpio/driver.hhMIhjubj")}(hhh]h)}(h Loop counter.h]h Loop counter.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMIhjubah}(h]h ]h"]h$]h&]uh1j!hjubeh}(h]h ]h"]h$]h&]uh1jhjhMIhjIubj)}(h$``_base`` First GPIO in the ranger. h](j)}(h ``_base``h]j )}(hjh]h_base}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:21: ./include/linux/gpio/driver.hhMJhjubj")}(hhh]h)}(hFirst GPIO in the ranger.h]hFirst GPIO in the ranger.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMJhjubah}(h]h ]h"]h$]h&]uh1j!hjubeh}(h]h ]h"]h$]h&]uh1jhjhMJhjIubj)}(h;``_size`` Amount of GPIOs to check starting from **base**. h](j)}(h ``_size``h]j )}(hjh]h_size}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:21: ./include/linux/gpio/driver.hhMKhjubj")}(hhh]h)}(h0Amount of GPIOs to check starting from **base**.h](h'Amount of GPIOs to check starting from }(hjhhhNhNubj)}(h**base**h]hbase}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMKhjubah}(h]h ]h"]h$]h&]uh1j!hjubeh}(h]h ]h"]h$]h&]uh1jhjhMKhjIubj)}(hj``_label`` Place to store the address of the label if the GPIO is requested. Set to NULL for unused GPIOs.h](j)}(h ``_label``h]j )}(hjHh]h_label}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjFubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:21: ./include/linux/gpio/driver.hhMLhjBubj")}(hhh]h)}(h_Place to store the address of the label if the GPIO is requested. Set to NULL for unused GPIOs.h]h_Place to store the address of the label if the GPIO is requested. Set to NULL for unused GPIOs.}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1hhj]hMLhj^ubah}(h]h ]h"]h$]h&]uh1j!hjBubeh}(h]h ]h"]h$]h&]uh1jhj]hMLhjIubeh}(h]h ]h"]h$]h&]uh1jhj-ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubj )}(hhh]h}(h]h ]h"]h$]h&]entries](jfor_each_hwgpio (C macro)c.for_each_hwgpiohNtauh1j hhhhhNhNubj)}(hhh](j")}(hfor_each_hwgpioh]j()}(hfor_each_hwgpioh]jQ)}(hfor_each_hwgpioh]jW)}(hjh]hfor_each_hwgpio}(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjubah}(h]h ](jijjeh"]h$]h&]jnjouh1jPhjhhha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:21: ./include/linux/gpio/driver.hhMVubah}(h]h ]h"]h$]h&]jnjojvuh1j'jwjxhjhhhjhMVubah}(h]jah ](j|j}eh"]h$]h&]jj)jhuh1j!hjhMVhjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhjhMVubeh}(h]h ](jmacroeh"]h$]h&]jjjjjjjjjuh1jhhhhhNhNubh)}(h'``for_each_hwgpio (_chip, _i, _label)``h]j )}(hjh]h#for_each_hwgpio (_chip, _i, _label)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:21: ./include/linux/gpio/driver.hhMXhhhhubj)}(h(Iterates over all GPIOs for given chip. h]h)}(h'Iterates over all GPIOs for given chip.h]h'Iterates over all GPIOs for given chip.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:21: ./include/linux/gpio/driver.hhMVhjubah}(h]h ]h"]h$]h&]uh1jhjhMVhhhhubj)}(h**Parameters** ``_chip`` Chip to iterate over. ``_i`` Loop counter. ``_label`` Place to store the address of the label if the GPIO is requested. Set to NULL for unused GPIOs.h](h)}(h**Parameters**h]j)}(hj h]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:21: ./include/linux/gpio/driver.hhMZhjubj)}(hhh](j)}(h ``_chip`` Chip to iterate over. h](j)}(h ``_chip``h]j )}(hj+h]h_chip}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1j hj)ubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:21: ./include/linux/gpio/driver.hhMWhj%ubj")}(hhh]h)}(hChip to iterate over.h]hChip to iterate over.}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj@hMWhjAubah}(h]h ]h"]h$]h&]uh1j!hj%ubeh}(h]h ]h"]h$]h&]uh1jhj@hMWhj"ubj)}(h``_i`` Loop counter. h](j)}(h``_i``h]j )}(hjdh]h_i}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjbubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:21: ./include/linux/gpio/driver.hhMXhj^ubj")}(hhh]h)}(h Loop counter.h]h Loop counter.}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjyhMXhjzubah}(h]h ]h"]h$]h&]uh1j!hj^ubeh}(h]h ]h"]h$]h&]uh1jhjyhMXhj"ubj)}(hj``_label`` Place to store the address of the label if the GPIO is requested. Set to NULL for unused GPIOs.h](j)}(h ``_label``h]j )}(hjh]h_label}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:21: ./include/linux/gpio/driver.hhMYhjubj")}(hhh]h)}(h_Place to store the address of the label if the GPIO is requested. Set to NULL for unused GPIOs.h]h_Place to store the address of the label if the GPIO is requested. Set to NULL for unused GPIOs.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMYhjubah}(h]h ]h"]h$]h&]uh1j!hjubeh}(h]h ]h"]h$]h&]uh1jhjhMYhj"ubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubj )}(hhh]h}(h]h ]h"]h$]h&]entries](j*for_each_requested_gpio_in_range (C macro)"c.for_each_requested_gpio_in_rangehNtauh1j hhhhhNhNubj)}(hhh](j")}(h for_each_requested_gpio_in_rangeh]j()}(h for_each_requested_gpio_in_rangeh]jQ)}(h for_each_requested_gpio_in_rangeh]jW)}(hjh]h for_each_requested_gpio_in_range}(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjubah}(h]h ](jijjeh"]h$]h&]jnjouh1jPhjhhha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:21: ./include/linux/gpio/driver.hhM`ubah}(h]h ]h"]h$]h&]jnjojvuh1j'jwjxhjhhhj hM`ubah}(h]jah ](j|j}eh"]h$]h&]jj)jhuh1j!hj hM`hjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhj hM`ubeh}(h]h ](jmacroeh"]h$]h&]jjjj&jj&jjjuh1jhhhhhNhNubh)}(hF``for_each_requested_gpio_in_range (_chip, _i, _base, _size, _label)``h]j )}(hj,h]hBfor_each_requested_gpio_in_range (_chip, _i, _base, _size, _label)}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1j hj*ubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:21: ./include/linux/gpio/driver.hhMbhhhhubj)}(h/iterates over requested GPIOs in a given range h]h)}(h.iterates over requested GPIOs in a given rangeh]h.iterates over requested GPIOs in a given range}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:21: ./include/linux/gpio/driver.hhM`hjBubah}(h]h ]h"]h$]h&]uh1jhjThM`hhhhubj)}(h**Parameters** ``_chip`` the chip to query ``_i`` loop variable ``_base`` first GPIO in the range ``_size`` amount of GPIOs to check starting from **base** ``_label`` label of current GPIOh](h)}(h**Parameters**h]j)}(hjah]h Parameters}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1jhj_ubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:21: ./include/linux/gpio/driver.hhMdhj[ubj)}(hhh](j)}(h``_chip`` the chip to query h](j)}(h ``_chip``h]j )}(hjh]h_chip}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j hj~ubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:21: ./include/linux/gpio/driver.hhMahjzubj")}(hhh]h)}(hthe chip to queryh]hthe chip to query}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMahjubah}(h]h ]h"]h$]h&]uh1j!hjzubeh}(h]h ]h"]h$]h&]uh1jhjhMahjwubj)}(h``_i`` loop variable h](j)}(h``_i``h]j )}(hjh]h_i}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:21: ./include/linux/gpio/driver.hhMbhjubj")}(hhh]h)}(h loop variableh]h loop variable}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMbhjubah}(h]h ]h"]h$]h&]uh1j!hjubeh}(h]h ]h"]h$]h&]uh1jhjhMbhjwubj)}(h"``_base`` first GPIO in the range h](j)}(h ``_base``h]j )}(hjh]h_base}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:21: ./include/linux/gpio/driver.hhMchjubj")}(hhh]h)}(hfirst GPIO in the rangeh]hfirst GPIO in the range}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMchjubah}(h]h ]h"]h$]h&]uh1j!hjubeh}(h]h ]h"]h$]h&]uh1jhjhMchjwubj)}(h:``_size`` amount of GPIOs to check starting from **base** h](j)}(h ``_size``h]j )}(hj+h]h_size}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1j hj)ubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:21: ./include/linux/gpio/driver.hhMdhj%ubj")}(hhh]h)}(h/amount of GPIOs to check starting from **base**h](h'amount of GPIOs to check starting from }(hjDhhhNhNubj)}(h**base**h]hbase}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjDubeh}(h]h ]h"]h$]h&]uh1hhj@hMdhjAubah}(h]h ]h"]h$]h&]uh1j!hj%ubeh}(h]h ]h"]h$]h&]uh1jhj@hMdhjwubj)}(h ``_label`` label of current GPIOh](j)}(h ``_label``h]j )}(hjrh]h_label}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1j hjpubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:21: ./include/linux/gpio/driver.hhMfhjlubj")}(hhh]h)}(hlabel of current GPIOh]hlabel of current GPIO}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:21: ./include/linux/gpio/driver.hhMehjubah}(h]h ]h"]h$]h&]uh1j!hjlubeh}(h]h ]h"]h$]h&]uh1jhjhMfhjwubeh}(h]h ]h"]h$]h&]uh1jhj[ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubj )}(hhh]h}(h]h ]h"]h$]h&]entries](jgpiochip_add_data (C macro)c.gpiochip_add_datahNtauh1j hhhhhNhNubj)}(hhh](j")}(hgpiochip_add_datah]j()}(hgpiochip_add_datah]jQ)}(hgpiochip_add_datah]jW)}(hjh]hgpiochip_add_data}(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjubah}(h]h ](jijjeh"]h$]h&]jnjouh1jPhjhhha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:21: ./include/linux/gpio/driver.hhMuubah}(h]h ]h"]h$]h&]jnjojvuh1j'jwjxhjhhhjhMuubah}(h]jah ](j|j}eh"]h$]h&]jj)jhuh1j!hjhMuhjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhjhMuubeh}(h]h ](jmacroeh"]h$]h&]jjjjjjjjjuh1jhhhhhNhNubh)}(h ``gpiochip_add_data (gc, data)``h]j )}(hjh]hgpiochip_add_data (gc, data)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:21: ./include/linux/gpio/driver.hhMwhhhhubj)}(hregister a gpio_chip h]h)}(hregister a gpio_chiph]hregister a gpio_chip}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:21: ./include/linux/gpio/driver.hhMuhjubah}(h]h ]h"]h$]h&]uh1jhj*hMuhhhhubj)}(hX-**Parameters** ``gc`` the chip to register, with gc->base initialized ``data`` driver-private data associated with this chip **Context** potentially before irqs will work **Description** When gpiochip_add_data() is called very early during boot, so that GPIOs can be freely used, the gc->parent device must be registered before the gpio framework's arch_initcall(). Otherwise sysfs initialization for GPIOs will fail rudely. gpiochip_add_data() must only be called after gpiolib initialization, i.e. after core_initcall(). If gc->base is negative, this requests dynamic assignment of a range of valid GPIOs. **Return** A negative errno if the chip can't be registered, such as because the gc->base is invalid or already associated with a different chip. Otherwise it returns zero as a success code.h](h)}(h**Parameters**h]j)}(hj7h]h Parameters}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj5ubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:21: ./include/linux/gpio/driver.hhMyhj1ubj)}(hhh](j)}(h7``gc`` the chip to register, with gc->base initialized h](j)}(h``gc``h]j )}(hjVh]hgc}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjTubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:21: ./include/linux/gpio/driver.hhMvhjPubj")}(hhh]h)}(h/the chip to register, with gc->base initializedh]h/the chip to register, with gc->base initialized}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1hhjkhMvhjlubah}(h]h ]h"]h$]h&]uh1j!hjPubeh}(h]h ]h"]h$]h&]uh1jhjkhMvhjMubj)}(h7``data`` driver-private data associated with this chip h](j)}(h``data``h]j )}(hjh]hdata}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:21: ./include/linux/gpio/driver.hhMwhjubj")}(hhh]h)}(h-driver-private data associated with this chiph]h-driver-private data associated with this chip}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMwhjubah}(h]h ]h"]h$]h&]uh1j!hjubeh}(h]h ]h"]h$]h&]uh1jhjhMwhjMubeh}(h]h ]h"]h$]h&]uh1jhj1ubh)}(h **Context**h]j)}(hjh]hContext}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:21: ./include/linux/gpio/driver.hhMyhj1ubh)}(h!potentially before irqs will workh]h!potentially before irqs will work}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:21: ./include/linux/gpio/driver.hhMyhj1ubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:21: ./include/linux/gpio/driver.hhM{hj1ubh)}(hWhen gpiochip_add_data() is called very early during boot, so that GPIOs can be freely used, the gc->parent device must be registered before the gpio framework's arch_initcall(). Otherwise sysfs initialization for GPIOs will fail rudely.h]hWhen gpiochip_add_data() is called very early during boot, so that GPIOs can be freely used, the gc->parent device must be registered before the gpio framework’s arch_initcall(). Otherwise sysfs initialization for GPIOs will fail rudely.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:21: ./include/linux/gpio/driver.hhMzhj1ubh)}(hagpiochip_add_data() must only be called after gpiolib initialization, i.e. after core_initcall().h]hagpiochip_add_data() must only be called after gpiolib initialization, i.e. after core_initcall().}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:21: ./include/linux/gpio/driver.hhMhj1ubh)}(hTIf gc->base is negative, this requests dynamic assignment of a range of valid GPIOs.h]hTIf gc->base is negative, this requests dynamic assignment of a range of valid GPIOs.}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:21: ./include/linux/gpio/driver.hhMhj1ubh)}(h **Return**h]j)}(hj6h]hReturn}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj4ubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:21: ./include/linux/gpio/driver.hhMhj1ubh)}(hA negative errno if the chip can't be registered, such as because the gc->base is invalid or already associated with a different chip. Otherwise it returns zero as a success code.h]hA negative errno if the chip can’t be registered, such as because the gc->base is invalid or already associated with a different chip. Otherwise it returns zero as a success code.}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:21: ./include/linux/gpio/driver.hhMhj1ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubj )}(hhh]h}(h]h ]h"]h$]h&]entries](jgpio_pin_range (C struct)c.gpio_pin_rangehNtauh1j hhhhhNhNubj)}(hhh](j")}(hgpio_pin_rangeh]j()}(hstruct gpio_pin_rangeh](j.)}(hj1h]hstruct}(hj{hhhNhNubah}(h]h ]j:ah"]h$]h&]uh1j-hjwhhha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:21: ./include/linux/gpio/driver.hhMubj@)}(h h]h }(hjhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjwhhhjhMubjQ)}(hgpio_pin_rangeh]jW)}(hjuh]hgpio_pin_range}(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjubah}(h]h ](jijjeh"]h$]h&]jnjouh1jPhjwhhhjhMubeh}(h]h ]h"]h$]h&]jnjojvuh1j'jwjxhjshhhjhMubah}(h]jnah ](j|j}eh"]h$]h&]jj)jhuh1j!hjhMhjphhubj)}(hhh]h)}(h#pin range controlled by a gpio chiph]h#pin range controlled by a gpio chip}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:21: ./include/linux/gpio/driver.hhMhjhhubah}(h]h ]h"]h$]h&]uh1jhjphhhjhMubeh}(h]h ](jstructeh"]h$]h&]jjjjjjjjjuh1jhhhhhNhNubj)}(hXi**Definition**:: struct gpio_pin_range { struct list_head node; struct pinctrl_dev *pctldev; struct pinctrl_gpio_range range; }; **Members** ``node`` list for maintaining set of pin ranges, used internally ``pctldev`` pinctrl device which handles corresponding pins ``range`` actual range of pins controlled by a gpio controllerh](h)}(h**Definition**::h](j)}(h**Definition**h]h Definition}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh:}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:21: ./include/linux/gpio/driver.hhM hjubj)}(h{struct gpio_pin_range { struct list_head node; struct pinctrl_dev *pctldev; struct pinctrl_gpio_range range; };h]h{struct gpio_pin_range { struct list_head node; struct pinctrl_dev *pctldev; struct pinctrl_gpio_range range; };}hjsbah}(h]h ]h"]h$]h&]jnjouh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:21: ./include/linux/gpio/driver.hhM hjubh)}(h **Members**h]j)}(hj h]hMembers}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:21: ./include/linux/gpio/driver.hhMhjubj)}(hhh](j)}(hA``node`` list for maintaining set of pin ranges, used internally h](j)}(h``node``h]j )}(hj*h]hnode}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1j hj(ubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:21: ./include/linux/gpio/driver.hhM hj$ubj")}(hhh]h)}(h7list for maintaining set of pin ranges, used internallyh]h7list for maintaining set of pin ranges, used internally}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1hhj?hM hj@ubah}(h]h ]h"]h$]h&]uh1j!hj$ubeh}(h]h ]h"]h$]h&]uh1jhj?hM hj!ubj)}(h<``pctldev`` pinctrl device which handles corresponding pins h](j)}(h ``pctldev``h]j )}(hjch]hpctldev}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1j hjaubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:21: ./include/linux/gpio/driver.hhM hj]ubj")}(hhh]h)}(h/pinctrl device which handles corresponding pinsh]h/pinctrl device which handles corresponding pins}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjxhM hjyubah}(h]h ]h"]h$]h&]uh1j!hj]ubeh}(h]h ]h"]h$]h&]uh1jhjxhM hj!ubj)}(h>``range`` actual range of pins controlled by a gpio controllerh](j)}(h ``range``h]j )}(hjh]hrange}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:21: ./include/linux/gpio/driver.hhM hjubj")}(hhh]h)}(h4actual range of pins controlled by a gpio controllerh]h4actual range of pins controlled by a gpio controller}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:21: ./include/linux/gpio/driver.hhM hjubah}(h]h ]h"]h$]h&]uh1j!hjubeh}(h]h ]h"]h$]h&]uh1jhjhM hj!ubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubj )}(hhh]h}(h]h ]h"]h$]h&]entries](jgpio_to_desc (C function)c.gpio_to_deschNtauh1j hhhhhNhNubj)}(hhh](j")}(h/struct gpio_desc * gpio_to_desc (unsigned gpio)h]j()}(h-struct gpio_desc *gpio_to_desc(unsigned gpio)h](j.)}(hj1h]hstruct}(hjhhhNhNubah}(h]h ]j:ah"]h$]h&]uh1j-hjhhh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chKubj@)}(h h]h }(hjhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjhhhjhKubh)}(hhh]jW)}(h gpio_desch]h gpio_desc}(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjubah}(h]h ]h"]h$]h&] refdomainjreftype identifier reftargetjmodnameN classnameNjj)}j]j ASTIdentifier)}j+ gpio_to_descsbc.gpio_to_descasbuh1hhjhhhjhKubj@)}(h h]h }(hj9hhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjhhhjhKubhdesc_sig_punctuation)}(h*h]h*}(hjIhhhNhNubah}(h]h ]pah"]h$]h&]uh1jGhjhhhjhKubjQ)}(h gpio_to_desch]jW)}(hj6h]h gpio_to_desc}(hj\hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjXubah}(h]h ](jijjeh"]h$]h&]jnjouh1jPhjhhhjhKubhdesc_parameterlist)}(h(unsigned gpio)h]hdesc_parameter)}(h unsigned gpioh](hdesc_sig_keyword_type)}(hunsignedh]hunsigned}(hj}hhhNhNubah}(h]h ]ktah"]h$]h&]uh1j{hjwubj@)}(h h]h }(hjhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjwubjW)}(hgpioh]hgpio}(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjwubeh}(h]h ]h"]h$]h&]noemphjnjouh1juhjqubah}(h]h ]h"]h$]h&]jnjouh1johjhhhjhKubeh}(h]h ]h"]h$]h&]jnjojvuh1j'jwjxhjhhhjhKubah}(h]jah ](j|j}eh"]h$]h&]jj)jhuh1j!hjhKhjhhubj)}(hhh]h)}(h'Convert a GPIO number to its descriptorh]h'Convert a GPIO number to its descriptor}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chKhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhhhNhNubj)}(h**Parameters** ``unsigned gpio`` global GPIO number **Return** The GPIO descriptor associated with the given GPIO, or ``NULL`` if no GPIO with the given number exists in the system.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chKhjubj)}(hhh]j)}(h%``unsigned gpio`` global GPIO number h](j)}(h``unsigned gpio``h]j )}(hj h]h unsigned gpio}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j hj ubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chKhjubj")}(hhh]h)}(hglobal GPIO numberh]hglobal GPIO number}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hKhj ubah}(h]h ]h"]h$]h&]uh1j!hjubeh}(h]h ]h"]h$]h&]uh1jhj hKhjubah}(h]h ]h"]h$]h&]uh1jhjubh)}(h **Return**h]j)}(hj@ h]hReturn}(hjB hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj> ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chKhjubh)}(hvThe GPIO descriptor associated with the given GPIO, or ``NULL`` if no GPIO with the given number exists in the system.h](h7The GPIO descriptor associated with the given GPIO, or }(hjV hhhNhNubj )}(h``NULL``h]hNULL}(hj^ hhhNhNubah}(h]h ]h"]h$]h&]uh1j hjV ubh7 if no GPIO with the given number exists in the system.}(hjV hhhNhNubeh}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chKhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubj )}(hhh]h}(h]h ]h"]h$]h&]entries](j!gpio_device_get_desc (C function)c.gpio_device_get_deschNtauh1j hhhhhNhNubj)}(hhh](j")}(hVstruct gpio_desc * gpio_device_get_desc (struct gpio_device *gdev, unsigned int hwnum)h]j()}(hTstruct gpio_desc *gpio_device_get_desc(struct gpio_device *gdev, unsigned int hwnum)h](j.)}(hj1h]hstruct}(hj hhhNhNubah}(h]h ]j:ah"]h$]h&]uh1j-hj hhh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chKubj@)}(h h]h }(hj hhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hj hhhj hKubh)}(hhh]jW)}(h gpio_desch]h gpio_desc}(hj hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhj ubah}(h]h ]h"]h$]h&] refdomainjreftypej+ reftargetj modnameN classnameNjj)}j]j3)}j+gpio_device_get_descsbc.gpio_device_get_descasbuh1hhj hhhj hKubj@)}(h h]h }(hj hhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hj hhhj hKubjH)}(hjKh]h*}(hj hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj hhhj hKubjQ)}(hgpio_device_get_desch]jW)}(hj h]hgpio_device_get_desc}(hj hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhj ubah}(h]h ](jijjeh"]h$]h&]jnjouh1jPhj hhhj hKubjp)}(h.(struct gpio_device *gdev, unsigned int hwnum)h](jv)}(hstruct gpio_device *gdevh](j.)}(hj1h]hstruct}(hj!hhhNhNubah}(h]h ]j:ah"]h$]h&]uh1j-hj !ubj@)}(h h]h }(hj!hhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hj !ubh)}(hhh]jW)}(h gpio_deviceh]h gpio_device}(hj/!hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhj,!ubah}(h]h ]h"]h$]h&] refdomainjreftypej+ reftargetj1!modnameN classnameNjj)}j]j c.gpio_device_get_descasbuh1hhj !ubj@)}(h h]h }(hjM!hhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hj !ubjH)}(hjKh]h*}(hj[!hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj !ubjW)}(hgdevh]hgdev}(hjh!hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhj !ubeh}(h]h ]h"]h$]h&]noemphjnjouh1juhj !ubjv)}(hunsigned int hwnumh](j|)}(hunsignedh]hunsigned}(hj!hhhNhNubah}(h]h ]jah"]h$]h&]uh1j{hj}!ubj@)}(h h]h }(hj!hhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hj}!ubj|)}(hinth]hint}(hj!hhhNhNubah}(h]h ]jah"]h$]h&]uh1j{hj}!ubj@)}(h h]h }(hj!hhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hj}!ubjW)}(hhwnumh]hhwnum}(hj!hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhj}!ubeh}(h]h ]h"]h$]h&]noemphjnjouh1juhj !ubeh}(h]h ]h"]h$]h&]jnjouh1johj hhhj hKubeh}(h]h ]h"]h$]h&]jnjojvuh1j'jwjxhj hhhj hKubah}(h]j ah ](j|j}eh"]h$]h&]jj)jhuh1j!hj hKhj hhubj)}(hhh]h)}(hWget the GPIO descriptor corresponding to the given hardware number for this GPIO deviceh]hWget the GPIO descriptor corresponding to the given hardware number for this GPIO device}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chKhj!hhubah}(h]h ]h"]h$]h&]uh1jhj hhhj hKubeh}(h]h ](jfunctioneh"]h$]h&]jjjj!jj!jjjuh1jhhhhhNhNubj)}(hXW**Parameters** ``struct gpio_device *gdev`` GPIO device to get the descriptor from ``unsigned int hwnum`` hardware number of the GPIO for this chip **Return** A pointer to the GPIO descriptor or ``EINVAL`` if no GPIO exists in the given chip for the specified hardware number or ``ENODEV`` if the underlying chip already vanished. **Description** The reference count of struct gpio_device is *NOT* increased like when the GPIO is being requested for exclusive usage. It's up to the caller to make sure the GPIO device will stay alive together with the descriptor returned by this function.h](h)}(h**Parameters**h]j)}(hj"h]h Parameters}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj"ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chKhj!ubj)}(hhh](j)}(hD``struct gpio_device *gdev`` GPIO device to get the descriptor from h](j)}(h``struct gpio_device *gdev``h]j )}(hj$"h]hstruct gpio_device *gdev}(hj&"hhhNhNubah}(h]h ]h"]h$]h&]uh1j hj""ubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chKhj"ubj")}(hhh]h)}(h&GPIO device to get the descriptor fromh]h&GPIO device to get the descriptor from}(hj="hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj9"hKhj:"ubah}(h]h ]h"]h$]h&]uh1j!hj"ubeh}(h]h ]h"]h$]h&]uh1jhj9"hKhj"ubj)}(hA``unsigned int hwnum`` hardware number of the GPIO for this chip h](j)}(h``unsigned int hwnum``h]j )}(hj]"h]hunsigned int hwnum}(hj_"hhhNhNubah}(h]h ]h"]h$]h&]uh1j hj["ubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chKhjW"ubj")}(hhh]h)}(h)hardware number of the GPIO for this chiph]h)hardware number of the GPIO for this chip}(hjv"hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjr"hKhjs"ubah}(h]h ]h"]h$]h&]uh1j!hjW"ubeh}(h]h ]h"]h$]h&]uh1jhjr"hKhj"ubeh}(h]h ]h"]h$]h&]uh1jhj!ubh)}(h **Return**h]j)}(hj"h]hReturn}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj"ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chKhj!ubh)}(hA pointer to the GPIO descriptor or ``EINVAL`` if no GPIO exists in the given chip for the specified hardware number or ``ENODEV`` if the underlying chip already vanished.h](h$A pointer to the GPIO descriptor or }(hj"hhhNhNubj )}(h ``EINVAL``h]hEINVAL}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1j hj"ubhJ if no GPIO exists in the given chip for the specified hardware number or }(hj"hhhNhNubj )}(h ``ENODEV``h]hENODEV}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1j hj"ubh) if the underlying chip already vanished.}(hj"hhhNhNubeh}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chKhj!ubh)}(h**Description**h]j)}(hj"h]h Description}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj"ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chKhj!ubh)}(hThe reference count of struct gpio_device is *NOT* increased like when the GPIO is being requested for exclusive usage. It's up to the caller to make sure the GPIO device will stay alive together with the descriptor returned by this function.h](h-The reference count of struct gpio_device is }(hj"hhhNhNubhemphasis)}(h*NOT*h]hNOT}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1j#hj"ubh increased like when the GPIO is being requested for exclusive usage. It’s up to the caller to make sure the GPIO device will stay alive together with the descriptor returned by this function.}(hj"hhhNhNubeh}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chKhj!ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubj )}(hhh]h}(h]h ]h"]h$]h&]entries](jdesc_to_gpio (C function)c.desc_to_gpiohNtauh1j hhhhhNhNubj)}(hhh](j")}(h/int desc_to_gpio (const struct gpio_desc *desc)h]j()}(h.int desc_to_gpio(const struct gpio_desc *desc)h](j|)}(hinth]hint}(hj<#hhhNhNubah}(h]h ]jah"]h$]h&]uh1j{hj8#hhh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chKubj@)}(h h]h }(hjK#hhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hj8#hhhjJ#hKubjQ)}(h desc_to_gpioh]jW)}(h desc_to_gpioh]h desc_to_gpio}(hj]#hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjY#ubah}(h]h ](jijjeh"]h$]h&]jnjouh1jPhj8#hhhjJ#hKubjp)}(h(const struct gpio_desc *desc)h]jv)}(hconst struct gpio_desc *desch](j.)}(hconsth]hconst}(hjy#hhhNhNubah}(h]h ]j:ah"]h$]h&]uh1j-hju#ubj@)}(h h]h }(hj#hhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hju#ubj.)}(hj1h]hstruct}(hj#hhhNhNubah}(h]h ]j:ah"]h$]h&]uh1j-hju#ubj@)}(h h]h }(hj#hhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hju#ubh)}(hhh]jW)}(h gpio_desch]h gpio_desc}(hj#hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhj#ubah}(h]h ]h"]h$]h&] refdomainjreftypej+ reftargetj#modnameN classnameNjj)}j]j3)}j+j_#sbc.desc_to_gpioasbuh1hhju#ubj@)}(h h]h }(hj#hhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hju#ubjH)}(hjKh]h*}(hj#hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhju#ubjW)}(hdesch]hdesc}(hj#hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhju#ubeh}(h]h ]h"]h$]h&]noemphjnjouh1juhjq#ubah}(h]h ]h"]h$]h&]jnjouh1johj8#hhhjJ#hKubeh}(h]h ]h"]h$]h&]jnjojvuh1j'jwjxhj4#hhhjJ#hKubah}(h]j/#ah ](j|j}eh"]h$]h&]jj)jhuh1j!hjJ#hKhj1#hhubj)}(hhh]h)}(h2convert a GPIO descriptor to the integer namespaceh]h2convert a GPIO descriptor to the integer namespace}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chKhj$hhubah}(h]h ]h"]h$]h&]uh1jhj1#hhhjJ#hKubeh}(h]h ](jfunctioneh"]h$]h&]jjjj0$jj0$jjjuh1jhhhhhNhNubj)}(hX**Parameters** ``const struct gpio_desc *desc`` GPIO descriptor **Description** This should disappear in the future but is needed since we still use GPIO numbers for error messages and sysfs nodes. **Return** The global GPIO number for the GPIO specified by its descriptor.h](h)}(h**Parameters**h]j)}(hj:$h]h Parameters}(hj<$hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj8$ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chKhj4$ubj)}(hhh]j)}(h1``const struct gpio_desc *desc`` GPIO descriptor h](j)}(h ``const struct gpio_desc *desc``h]j )}(hjY$h]hconst struct gpio_desc *desc}(hj[$hhhNhNubah}(h]h ]h"]h$]h&]uh1j hjW$ubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chKhjS$ubj")}(hhh]h)}(hGPIO descriptorh]hGPIO descriptor}(hjr$hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjn$hKhjo$ubah}(h]h ]h"]h$]h&]uh1j!hjS$ubeh}(h]h ]h"]h$]h&]uh1jhjn$hKhjP$ubah}(h]h ]h"]h$]h&]uh1jhj4$ubh)}(h**Description**h]j)}(hj$h]h Description}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj$ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chKhj4$ubh)}(huThis should disappear in the future but is needed since we still use GPIO numbers for error messages and sysfs nodes.h]huThis should disappear in the future but is needed since we still use GPIO numbers for error messages and sysfs nodes.}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chKhj4$ubh)}(h **Return**h]j)}(hj$h]hReturn}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj$ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chKhj4$ubh)}(h@The global GPIO number for the GPIO specified by its descriptor.h]h@The global GPIO number for the GPIO specified by its descriptor.}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chKhj4$ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubj )}(hhh]h}(h]h ]h"]h$]h&]entries](jgpiod_to_chip (C function)c.gpiod_to_chiphNtauh1j hhhhhNhNubj)}(hhh](j")}(h?struct gpio_chip * gpiod_to_chip (const struct gpio_desc *desc)h]j()}(h=struct gpio_chip *gpiod_to_chip(const struct gpio_desc *desc)h](j.)}(hj1h]hstruct}(hj%hhhNhNubah}(h]h ]j:ah"]h$]h&]uh1j-hj$hhh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chKubj@)}(h h]h }(hj%hhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hj$hhhj %hKubh)}(hhh]jW)}(h gpio_chiph]h gpio_chip}(hj%hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhj%ubah}(h]h ]h"]h$]h&] refdomainjreftypej+ reftargetj!%modnameN classnameNjj)}j]j3)}j+ gpiod_to_chipsbc.gpiod_to_chipasbuh1hhj$hhhj %hKubj@)}(h h]h }(hj@%hhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hj$hhhj %hKubjH)}(hjKh]h*}(hjN%hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj$hhhj %hKubjQ)}(h gpiod_to_chiph]jW)}(hj=%h]h gpiod_to_chip}(hj_%hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhj[%ubah}(h]h ](jijjeh"]h$]h&]jnjouh1jPhj$hhhj %hKubjp)}(h(const struct gpio_desc *desc)h]jv)}(hconst struct gpio_desc *desch](j.)}(hj{#h]hconst}(hjz%hhhNhNubah}(h]h ]j:ah"]h$]h&]uh1j-hjv%ubj@)}(h h]h }(hj%hhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjv%ubj.)}(hj1h]hstruct}(hj%hhhNhNubah}(h]h ]j:ah"]h$]h&]uh1j-hjv%ubj@)}(h h]h }(hj%hhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjv%ubh)}(hhh]jW)}(h gpio_desch]h gpio_desc}(hj%hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhj%ubah}(h]h ]h"]h$]h&] refdomainjreftypej+ reftargetj%modnameN classnameNjj)}j]j;%c.gpiod_to_chipasbuh1hhjv%ubj@)}(h h]h }(hj%hhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjv%ubjH)}(hjKh]h*}(hj%hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjv%ubjW)}(hdesch]hdesc}(hj%hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjv%ubeh}(h]h ]h"]h$]h&]noemphjnjouh1juhjr%ubah}(h]h ]h"]h$]h&]jnjouh1johj$hhhj %hKubeh}(h]h ]h"]h$]h&]jnjojvuh1j'jwjxhj$hhhj %hKubah}(h]j$ah ](j|j}eh"]h$]h&]jj)jhuh1j!hj %hKhj$hhubj)}(hhh]h)}(h7Return the GPIO chip to which a GPIO descriptor belongsh]h7Return the GPIO chip to which a GPIO descriptor belongs}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chKhj&hhubah}(h]h ]h"]h$]h&]uh1jhj$hhhj %hKubeh}(h]h ](jfunctioneh"]h$]h&]jjjj.&jj.&jjjuh1jhhhhhNhNubj)}(hXF**Parameters** ``const struct gpio_desc *desc`` descriptor to return the chip of **Description** *DEPRECATED* This function is unsafe and should not be used. Using the chip address without taking the SRCU read lock may result in dereferencing a dangling pointer. **Return** Address of the GPIO chip backing this device.h](h)}(h**Parameters**h]j)}(hj8&h]h Parameters}(hj:&hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6&ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chKhj2&ubj)}(hhh]j)}(hB``const struct gpio_desc *desc`` descriptor to return the chip of h](j)}(h ``const struct gpio_desc *desc``h]j )}(hjW&h]hconst struct gpio_desc *desc}(hjY&hhhNhNubah}(h]h ]h"]h$]h&]uh1j hjU&ubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chKhjQ&ubj")}(hhh]h)}(h descriptor to return the chip ofh]h descriptor to return the chip of}(hjp&hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjl&hKhjm&ubah}(h]h ]h"]h$]h&]uh1j!hjQ&ubeh}(h]h ]h"]h$]h&]uh1jhjl&hKhjN&ubah}(h]h ]h"]h$]h&]uh1jhj2&ubh)}(h**Description**h]j)}(hj&h]h Description}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj&ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chKhj2&ubh)}(h*DEPRECATED* This function is unsafe and should not be used. Using the chip address without taking the SRCU read lock may result in dereferencing a dangling pointer.h](j#)}(h *DEPRECATED*h]h DEPRECATED}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1j#hj&ubh This function is unsafe and should not be used. Using the chip address without taking the SRCU read lock may result in dereferencing a dangling pointer.}(hj&hhhNhNubeh}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chKhj2&ubh)}(h **Return**h]j)}(hj&h]hReturn}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj&ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chKhj2&ubh)}(h-Address of the GPIO chip backing this device.h]h-Address of the GPIO chip backing this device.}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chKhj2&ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubj )}(hhh]h}(h]h ]h"]h$]h&]entries](j!gpiod_to_gpio_device (C function)c.gpiod_to_gpio_devicehNtauh1j hhhhhNhNubj)}(hhh](j")}(hBstruct gpio_device * gpiod_to_gpio_device (struct gpio_desc *desc)h]j()}(h@struct gpio_device *gpiod_to_gpio_device(struct gpio_desc *desc)h](j.)}(hj1h]hstruct}(hj 'hhhNhNubah}(h]h ]j:ah"]h$]h&]uh1j-hj'hhh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chKubj@)}(h h]h }(hj'hhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hj'hhhj'hKubh)}(hhh]jW)}(h gpio_deviceh]h gpio_device}(hj+'hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhj('ubah}(h]h ]h"]h$]h&] refdomainjreftypej+ reftargetj-'modnameN classnameNjj)}j]j3)}j+gpiod_to_gpio_devicesbc.gpiod_to_gpio_deviceasbuh1hhj'hhhj'hKubj@)}(h h]h }(hjL'hhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hj'hhhj'hKubjH)}(hjKh]h*}(hjZ'hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj'hhhj'hKubjQ)}(hgpiod_to_gpio_deviceh]jW)}(hjI'h]hgpiod_to_gpio_device}(hjk'hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjg'ubah}(h]h ](jijjeh"]h$]h&]jnjouh1jPhj'hhhj'hKubjp)}(h(struct gpio_desc *desc)h]jv)}(hstruct gpio_desc *desch](j.)}(hj1h]hstruct}(hj'hhhNhNubah}(h]h ]j:ah"]h$]h&]uh1j-hj'ubj@)}(h h]h }(hj'hhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hj'ubh)}(hhh]jW)}(h gpio_desch]h gpio_desc}(hj'hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhj'ubah}(h]h ]h"]h$]h&] refdomainjreftypej+ reftargetj'modnameN classnameNjj)}j]jG'c.gpiod_to_gpio_deviceasbuh1hhj'ubj@)}(h h]h }(hj'hhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hj'ubjH)}(hjKh]h*}(hj'hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj'ubjW)}(hdesch]hdesc}(hj'hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhj'ubeh}(h]h ]h"]h$]h&]noemphjnjouh1juhj~'ubah}(h]h ]h"]h$]h&]jnjouh1johj'hhhj'hKubeh}(h]h ]h"]h$]h&]jnjojvuh1j'jwjxhj'hhhj'hKubah}(h]j&ah ](j|j}eh"]h$]h&]jj)jhuh1j!hj'hKhj'hhubj)}(hhh]h)}(h8Return the GPIO device to which this descriptor belongs.h]h8Return the GPIO device to which this descriptor belongs.}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chKhj(hhubah}(h]h ]h"]h$]h&]uh1jhj'hhhj'hKubeh}(h]h ](jfunctioneh"]h$]h&]jjjj(jj(jjjuh1jhhhhhNhNubj)}(hXW**Parameters** ``struct gpio_desc *desc`` Descriptor for which to return the GPIO device. **Description** This *DOES NOT* increase the reference count of the GPIO device as it's expected that the descriptor is requested and the users already holds a reference to the device. **Return** Address of the GPIO device owning this descriptor.h](h)}(h**Parameters**h]j)}(hj)(h]h Parameters}(hj+(hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj'(ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chKhj#(ubj)}(hhh]j)}(hK``struct gpio_desc *desc`` Descriptor for which to return the GPIO device. h](j)}(h``struct gpio_desc *desc``h]j )}(hjH(h]hstruct gpio_desc *desc}(hjJ(hhhNhNubah}(h]h ]h"]h$]h&]uh1j hjF(ubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chKhjB(ubj")}(hhh]h)}(h/Descriptor for which to return the GPIO device.h]h/Descriptor for which to return the GPIO device.}(hja(hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj](hKhj^(ubah}(h]h ]h"]h$]h&]uh1j!hjB(ubeh}(h]h ]h"]h$]h&]uh1jhj](hKhj?(ubah}(h]h ]h"]h$]h&]uh1jhj#(ubh)}(h**Description**h]j)}(hj(h]h Description}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj(ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chKhj#(ubh)}(hThis *DOES NOT* increase the reference count of the GPIO device as it's expected that the descriptor is requested and the users already holds a reference to the device.h](hThis }(hj(hhhNhNubj#)}(h *DOES NOT*h]hDOES NOT}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1j#hj(ubh increase the reference count of the GPIO device as it’s expected that the descriptor is requested and the users already holds a reference to the device.}(hj(hhhNhNubeh}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chKhj#(ubh)}(h **Return**h]j)}(hj(h]hReturn}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj(ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMhj#(ubh)}(h2Address of the GPIO device owning this descriptor.h]h2Address of the GPIO device owning this descriptor.}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMhj#(ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubj )}(hhh]h}(h]h ]h"]h$]h&]entries](jgpiod_is_equal (C function)c.gpiod_is_equalhNtauh1j hhhhhNhNubj)}(hhh](j")}(hEbool gpiod_is_equal (struct gpio_desc *desc, struct gpio_desc *other)h]j()}(hDbool gpiod_is_equal(struct gpio_desc *desc, struct gpio_desc *other)h](j|)}(hboolh]hbool}(hj)hhhNhNubah}(h]h ]jah"]h$]h&]uh1j{hj(hhh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chM ubj@)}(h h]h }(hj)hhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hj(hhhj)hM ubjQ)}(hgpiod_is_equalh]jW)}(hgpiod_is_equalh]hgpiod_is_equal}(hj")hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhj)ubah}(h]h ](jijjeh"]h$]h&]jnjouh1jPhj(hhhj)hM ubjp)}(h1(struct gpio_desc *desc, struct gpio_desc *other)h](jv)}(hstruct gpio_desc *desch](j.)}(hj1h]hstruct}(hj>)hhhNhNubah}(h]h ]j:ah"]h$]h&]uh1j-hj:)ubj@)}(h h]h }(hjK)hhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hj:)ubh)}(hhh]jW)}(h gpio_desch]h gpio_desc}(hj\)hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjY)ubah}(h]h ]h"]h$]h&] refdomainjreftypej+ reftargetj^)modnameN classnameNjj)}j]j3)}j+j$)sbc.gpiod_is_equalasbuh1hhj:)ubj@)}(h h]h }(hj|)hhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hj:)ubjH)}(hjKh]h*}(hj)hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj:)ubjW)}(hdesch]hdesc}(hj)hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhj:)ubeh}(h]h ]h"]h$]h&]noemphjnjouh1juhj6)ubjv)}(hstruct gpio_desc *otherh](j.)}(hj1h]hstruct}(hj)hhhNhNubah}(h]h ]j:ah"]h$]h&]uh1j-hj)ubj@)}(h h]h }(hj)hhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hj)ubh)}(hhh]jW)}(h gpio_desch]h gpio_desc}(hj)hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhj)ubah}(h]h ]h"]h$]h&] refdomainjreftypej+ reftargetj)modnameN classnameNjj)}j]jx)c.gpiod_is_equalasbuh1hhj)ubj@)}(h h]h }(hj)hhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hj)ubjH)}(hjKh]h*}(hj)hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj)ubjW)}(hotherh]hother}(hj*hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhj)ubeh}(h]h ]h"]h$]h&]noemphjnjouh1juhj6)ubeh}(h]h ]h"]h$]h&]jnjouh1johj(hhhj)hM ubeh}(h]h ]h"]h$]h&]jnjojvuh1j'jwjxhj(hhhj)hM ubah}(h]j(ah ](j|j}eh"]h$]h&]jj)jhuh1j!hj)hM hj(hhubj)}(hhh]h)}(h4Check if two GPIO descriptors refer to the same pin.h]h4Check if two GPIO descriptors refer to the same pin.}(hj1*hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chM hj.*hhubah}(h]h ]h"]h$]h&]uh1jhj(hhhj)hM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjI*jjI*jjjuh1jhhhhhNhNubj)}(h**Parameters** ``struct gpio_desc *desc`` Descriptor to compare. ``struct gpio_desc *other`` The second descriptor to compare against. **Return** True if the descriptors refer to the same physical pin. False otherwise.h](h)}(h**Parameters**h]j)}(hjS*h]h Parameters}(hjU*hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjQ*ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMhjM*ubj)}(hhh](j)}(h2``struct gpio_desc *desc`` Descriptor to compare. h](j)}(h``struct gpio_desc *desc``h]j )}(hjr*h]hstruct gpio_desc *desc}(hjt*hhhNhNubah}(h]h ]h"]h$]h&]uh1j hjp*ubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMhjl*ubj")}(hhh]h)}(hDescriptor to compare.h]hDescriptor to compare.}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj*hMhj*ubah}(h]h ]h"]h$]h&]uh1j!hjl*ubeh}(h]h ]h"]h$]h&]uh1jhj*hMhji*ubj)}(hF``struct gpio_desc *other`` The second descriptor to compare against. h](j)}(h``struct gpio_desc *other``h]j )}(hj*h]hstruct gpio_desc *other}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1j hj*ubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMhj*ubj")}(hhh]h)}(h)The second descriptor to compare against.h]h)The second descriptor to compare against.}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj*hMhj*ubah}(h]h ]h"]h$]h&]uh1j!hj*ubeh}(h]h ]h"]h$]h&]uh1jhj*hMhji*ubeh}(h]h ]h"]h$]h&]uh1jhjM*ubh)}(h **Return**h]j)}(hj*h]hReturn}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj*ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMhjM*ubh)}(hHTrue if the descriptors refer to the same physical pin. False otherwise.h]hHTrue if the descriptors refer to the same physical pin. False otherwise.}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMhjM*ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubj )}(hhh]h}(h]h ]h"]h$]h&]entries](j!gpio_device_get_base (C function)c.gpio_device_get_basehNtauh1j hhhhhNhNubj)}(hhh](j")}(h3int gpio_device_get_base (struct gpio_device *gdev)h]j()}(h2int gpio_device_get_base(struct gpio_device *gdev)h](j|)}(hinth]hint}(hj++hhhNhNubah}(h]h ]jah"]h$]h&]uh1j{hj'+hhh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMubj@)}(h h]h }(hj:+hhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hj'+hhhj9+hMubjQ)}(hgpio_device_get_baseh]jW)}(hgpio_device_get_baseh]hgpio_device_get_base}(hjL+hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjH+ubah}(h]h ](jijjeh"]h$]h&]jnjouh1jPhj'+hhhj9+hMubjp)}(h(struct gpio_device *gdev)h]jv)}(hstruct gpio_device *gdevh](j.)}(hj1h]hstruct}(hjh+hhhNhNubah}(h]h ]j:ah"]h$]h&]uh1j-hjd+ubj@)}(h h]h }(hju+hhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjd+ubh)}(hhh]jW)}(h gpio_deviceh]h gpio_device}(hj+hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhj+ubah}(h]h ]h"]h$]h&] refdomainjreftypej+ reftargetj+modnameN classnameNjj)}j]j3)}j+jN+sbc.gpio_device_get_baseasbuh1hhjd+ubj@)}(h h]h }(hj+hhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjd+ubjH)}(hjKh]h*}(hj+hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjd+ubjW)}(hgdevh]hgdev}(hj+hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjd+ubeh}(h]h ]h"]h$]h&]noemphjnjouh1juhj`+ubah}(h]h ]h"]h$]h&]jnjouh1johj'+hhhj9+hMubeh}(h]h ]h"]h$]h&]jnjojvuh1j'jwjxhj#+hhhj9+hMubah}(h]j+ah ](j|j}eh"]h$]h&]jj)jhuh1j!hj9+hMhj +hhubj)}(hhh]h)}(h1Get the base GPIO number allocated by this deviceh]h1Get the base GPIO number allocated by this device}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMhj+hhubah}(h]h ]h"]h$]h&]uh1jhj +hhhj9+hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj,jj,jjjuh1jhhhhhNhNubj)}(h**Parameters** ``struct gpio_device *gdev`` GPIO device **Return** First GPIO number in the global GPIO numberspace for this device.h](h)}(h**Parameters**h]j)}(hj ,h]h Parameters}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ,ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMhj,ubj)}(hhh]j)}(h)``struct gpio_device *gdev`` GPIO device h](j)}(h``struct gpio_device *gdev``h]j )}(hj,,h]hstruct gpio_device *gdev}(hj.,hhhNhNubah}(h]h ]h"]h$]h&]uh1j hj*,ubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMhj&,ubj")}(hhh]h)}(h GPIO deviceh]h GPIO device}(hjE,hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjA,hMhjB,ubah}(h]h ]h"]h$]h&]uh1j!hj&,ubeh}(h]h ]h"]h$]h&]uh1jhjA,hMhj#,ubah}(h]h ]h"]h$]h&]uh1jhj,ubh)}(h **Return**h]j)}(hjg,h]hReturn}(hji,hhhNhNubah}(h]h ]h"]h$]h&]uh1jhje,ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMhj,ubh)}(hAFirst GPIO number in the global GPIO numberspace for this device.h]hAFirst GPIO number in the global GPIO numberspace for this device.}(hj},hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMhj,ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubj )}(hhh]h}(h]h ]h"]h$]h&]entries](j"gpio_device_get_label (C function)c.gpio_device_get_labelhNtauh1j hhhhhNhNubj)}(hhh](j")}(h=const char * gpio_device_get_label (struct gpio_device *gdev)h]j()}(h;const char *gpio_device_get_label(struct gpio_device *gdev)h](j.)}(hj{#h]hconst}(hj,hhhNhNubah}(h]h ]j:ah"]h$]h&]uh1j-hj,hhh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chM(ubj@)}(h h]h }(hj,hhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hj,hhhj,hM(ubj|)}(hcharh]hchar}(hj,hhhNhNubah}(h]h ]jah"]h$]h&]uh1j{hj,hhhj,hM(ubj@)}(h h]h }(hj,hhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hj,hhhj,hM(ubjH)}(hjKh]h*}(hj,hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj,hhhj,hM(ubjQ)}(hgpio_device_get_labelh]jW)}(hgpio_device_get_labelh]hgpio_device_get_label}(hj,hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhj,ubah}(h]h ](jijjeh"]h$]h&]jnjouh1jPhj,hhhj,hM(ubjp)}(h(struct gpio_device *gdev)h]jv)}(hstruct gpio_device *gdevh](j.)}(hj1h]hstruct}(hj-hhhNhNubah}(h]h ]j:ah"]h$]h&]uh1j-hj -ubj@)}(h h]h }(hj-hhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hj -ubh)}(hhh]jW)}(h gpio_deviceh]h gpio_device}(hj/-hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhj,-ubah}(h]h ]h"]h$]h&] refdomainjreftypej+ reftargetj1-modnameN classnameNjj)}j]j3)}j+j,sbc.gpio_device_get_labelasbuh1hhj -ubj@)}(h h]h }(hjO-hhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hj -ubjH)}(hjKh]h*}(hj]-hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj -ubjW)}(hgdevh]hgdev}(hjj-hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhj -ubeh}(h]h ]h"]h$]h&]noemphjnjouh1juhj -ubah}(h]h ]h"]h$]h&]jnjouh1johj,hhhj,hM(ubeh}(h]h ]h"]h$]h&]jnjojvuh1j'jwjxhj,hhhj,hM(ubah}(h]j,ah ](j|j}eh"]h$]h&]jj)jhuh1j!hj,hM(hj,hhubj)}(hhh]h)}(h!Get the label of this GPIO deviceh]h!Get the label of this GPIO device}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chM(hj-hhubah}(h]h ]h"]h$]h&]uh1jhj,hhhj,hM(ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj-jj-jjjuh1jhhhhhNhNubj)}(h**Parameters** ``struct gpio_device *gdev`` GPIO device **Return** Pointer to the string containing the GPIO device label. The string's lifetime is tied to that of the underlying GPIO device.h](h)}(h**Parameters**h]j)}(hj-h]h Parameters}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj-ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chM,hj-ubj)}(hhh]j)}(h)``struct gpio_device *gdev`` GPIO device h](j)}(h``struct gpio_device *gdev``h]j )}(hj-h]hstruct gpio_device *gdev}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1j hj-ubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chM)hj-ubj")}(hhh]h)}(h GPIO deviceh]h GPIO device}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj-hM)hj-ubah}(h]h ]h"]h$]h&]uh1j!hj-ubeh}(h]h ]h"]h$]h&]uh1jhj-hM)hj-ubah}(h]h ]h"]h$]h&]uh1jhj-ubh)}(h **Return**h]j)}(hj.h]hReturn}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj.ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chM+hj-ubh)}(h|Pointer to the string containing the GPIO device label. The string's lifetime is tied to that of the underlying GPIO device.h]h~Pointer to the string containing the GPIO device label. The string’s lifetime is tied to that of the underlying GPIO device.}(hj&.hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chM+hj-ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubj )}(hhh]h}(h]h ]h"]h$]h&]entries](j!gpio_device_get_chip (C function)c.gpio_device_get_chiphNtauh1j hhhhhNhNubj)}(hhh](j")}(hBstruct gpio_chip * gpio_device_get_chip (struct gpio_device *gdev)h]j()}(h@struct gpio_chip *gpio_device_get_chip(struct gpio_device *gdev)h](j.)}(hj1h]hstruct}(hjU.hhhNhNubah}(h]h ]j:ah"]h$]h&]uh1j-hjQ.hhh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chM6ubj@)}(h h]h }(hjc.hhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjQ.hhhjb.hM6ubh)}(hhh]jW)}(h gpio_chiph]h gpio_chip}(hjt.hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjq.ubah}(h]h ]h"]h$]h&] refdomainjreftypej+ reftargetjv.modnameN classnameNjj)}j]j3)}j+gpio_device_get_chipsbc.gpio_device_get_chipasbuh1hhjQ.hhhjb.hM6ubj@)}(h h]h }(hj.hhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjQ.hhhjb.hM6ubjH)}(hjKh]h*}(hj.hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjQ.hhhjb.hM6ubjQ)}(hgpio_device_get_chiph]jW)}(hj.h]hgpio_device_get_chip}(hj.hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhj.ubah}(h]h ](jijjeh"]h$]h&]jnjouh1jPhjQ.hhhjb.hM6ubjp)}(h(struct gpio_device *gdev)h]jv)}(hstruct gpio_device *gdevh](j.)}(hj1h]hstruct}(hj.hhhNhNubah}(h]h ]j:ah"]h$]h&]uh1j-hj.ubj@)}(h h]h }(hj.hhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hj.ubh)}(hhh]jW)}(h gpio_deviceh]h gpio_device}(hj.hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhj.ubah}(h]h ]h"]h$]h&] refdomainjreftypej+ reftargetj.modnameN classnameNjj)}j]j.c.gpio_device_get_chipasbuh1hhj.ubj@)}(h h]h }(hj /hhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hj.ubjH)}(hjKh]h*}(hj/hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj.ubjW)}(hgdevh]hgdev}(hj&/hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhj.ubeh}(h]h ]h"]h$]h&]noemphjnjouh1juhj.ubah}(h]h ]h"]h$]h&]jnjouh1johjQ.hhhjb.hM6ubeh}(h]h ]h"]h$]h&]jnjojvuh1j'jwjxhjM.hhhjb.hM6ubah}(h]jH.ah ](j|j}eh"]h$]h&]jj)jhuh1j!hjb.hM6hjJ.hhubj)}(hhh]h)}(h4Get the gpio_chip implementation of this GPIO deviceh]h4Get the gpio_chip implementation of this GPIO device}(hjP/hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chM6hjM/hhubah}(h]h ]h"]h$]h&]uh1jhjJ.hhhjb.hM6ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjh/jjh/jjjuh1jhhhhhNhNubj)}(hX**Parameters** ``struct gpio_device *gdev`` GPIO device **Return** Address of the GPIO chip backing this device. **Description** *DEPRECATED* Until we can get rid of all non-driver users of struct gpio_chip, we must provide a way of retrieving the pointer to it from struct gpio_device. This is *NOT* safe as the GPIO API is considered to be hot-unpluggable and the chip can dissapear at any moment (unlike reference-counted struct gpio_device). Use at your own risk.h](h)}(h**Parameters**h]j)}(hjr/h]h Parameters}(hjt/hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjp/ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chM:hjl/ubj)}(hhh]j)}(h)``struct gpio_device *gdev`` GPIO device h](j)}(h``struct gpio_device *gdev``h]j )}(hj/h]hstruct gpio_device *gdev}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1j hj/ubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chM7hj/ubj")}(hhh]h)}(h GPIO deviceh]h GPIO device}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj/hM7hj/ubah}(h]h ]h"]h$]h&]uh1j!hj/ubeh}(h]h ]h"]h$]h&]uh1jhj/hM7hj/ubah}(h]h ]h"]h$]h&]uh1jhjl/ubh)}(h **Return**h]j)}(hj/h]hReturn}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj/ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chM9hjl/ubh)}(h-Address of the GPIO chip backing this device.h]h-Address of the GPIO chip backing this device.}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chM9hjl/ubh)}(h**Description**h]j)}(hj/h]h Description}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj/ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chM;hjl/ubh)}(hX<*DEPRECATED* Until we can get rid of all non-driver users of struct gpio_chip, we must provide a way of retrieving the pointer to it from struct gpio_device. This is *NOT* safe as the GPIO API is considered to be hot-unpluggable and the chip can dissapear at any moment (unlike reference-counted struct gpio_device).h](j#)}(h *DEPRECATED*h]h DEPRECATED}(hj 0hhhNhNubah}(h]h ]h"]h$]h&]uh1j#hj 0ubh Until we can get rid of all non-driver users of struct gpio_chip, we must provide a way of retrieving the pointer to it from struct gpio_device. This is }(hj 0hhhNhNubj#)}(h*NOT*h]hNOT}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1j#hj 0ubh safe as the GPIO API is considered to be hot-unpluggable and the chip can dissapear at any moment (unlike reference-counted struct gpio_device).}(hj 0hhhNhNubeh}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chM<hjl/ubh)}(hUse at your own risk.h]hUse at your own risk.}(hj80hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMChjl/ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubj )}(hhh]h}(h]h ]h"]h$]h&]entries](j gpiod_get_direction (C function)c.gpiod_get_directionhNtauh1j hhhhhNhNubj)}(hhh](j")}(h0int gpiod_get_direction (struct gpio_desc *desc)h]j()}(h/int gpiod_get_direction(struct gpio_desc *desc)h](j|)}(hinth]hint}(hjg0hhhNhNubah}(h]h ]jah"]h$]h&]uh1j{hjc0hhh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMubj@)}(h h]h }(hjv0hhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjc0hhhju0hMubjQ)}(hgpiod_get_directionh]jW)}(hgpiod_get_directionh]hgpiod_get_direction}(hj0hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhj0ubah}(h]h ](jijjeh"]h$]h&]jnjouh1jPhjc0hhhju0hMubjp)}(h(struct gpio_desc *desc)h]jv)}(hstruct gpio_desc *desch](j.)}(hj1h]hstruct}(hj0hhhNhNubah}(h]h ]j:ah"]h$]h&]uh1j-hj0ubj@)}(h h]h }(hj0hhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hj0ubh)}(hhh]jW)}(h gpio_desch]h gpio_desc}(hj0hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhj0ubah}(h]h ]h"]h$]h&] refdomainjreftypej+ reftargetj0modnameN classnameNjj)}j]j3)}j+j0sbc.gpiod_get_directionasbuh1hhj0ubj@)}(h h]h }(hj0hhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hj0ubjH)}(hjKh]h*}(hj0hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj0ubjW)}(hdesch]hdesc}(hj0hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhj0ubeh}(h]h ]h"]h$]h&]noemphjnjouh1juhj0ubah}(h]h ]h"]h$]h&]jnjouh1johjc0hhhju0hMubeh}(h]h ]h"]h$]h&]jnjojvuh1j'jwjxhj_0hhhju0hMubah}(h]jZ0ah ](j|j}eh"]h$]h&]jj)jhuh1j!hju0hMhj\0hhubj)}(hhh]h)}(h&return the current direction of a GPIOh]h&return the current direction of a GPIO}(hj'1hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMhj$1hhubah}(h]h ]h"]h$]h&]uh1jhj\0hhhju0hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj?1jj?1jjjuh1jhhhhhNhNubj)}(h**Parameters** ``struct gpio_desc *desc`` GPIO to get the direction of **Return** 0 for output, 1 for input, or an error code in case of error. **Description** This function may sleep if gpiod_cansleep() is true.h](h)}(h**Parameters**h]j)}(hjI1h]h Parameters}(hjK1hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjG1ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMhjC1ubj)}(hhh]j)}(h8``struct gpio_desc *desc`` GPIO to get the direction of h](j)}(h``struct gpio_desc *desc``h]j )}(hjh1h]hstruct gpio_desc *desc}(hjj1hhhNhNubah}(h]h ]h"]h$]h&]uh1j hjf1ubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMhjb1ubj")}(hhh]h)}(hGPIO to get the direction ofh]hGPIO to get the direction of}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj}1hMhj~1ubah}(h]h ]h"]h$]h&]uh1j!hjb1ubeh}(h]h ]h"]h$]h&]uh1jhj}1hMhj_1ubah}(h]h ]h"]h$]h&]uh1jhjC1ubh)}(h **Return**h]j)}(hj1h]hReturn}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj1ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMhjC1ubh)}(h=0 for output, 1 for input, or an error code in case of error.h]h=0 for output, 1 for input, or an error code in case of error.}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMhjC1ubh)}(h**Description**h]j)}(hj1h]h Description}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj1ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMhjC1ubh)}(h4This function may sleep if gpiod_cansleep() is true.h]h4This function may sleep if gpiod_cansleep() is true.}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMhjC1ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubj )}(hhh]h}(h]h ]h"]h$]h&]entries](j&gpiochip_query_valid_mask (C function)c.gpiochip_query_valid_maskhNtauh1j hhhhhNhNubj)}(hhh](j")}(hLconst unsigned long * gpiochip_query_valid_mask (const struct gpio_chip *gc)h]j()}(hJconst unsigned long *gpiochip_query_valid_mask(const struct gpio_chip *gc)h](j.)}(hj{#h]hconst}(hj2hhhNhNubah}(h]h ]j:ah"]h$]h&]uh1j-hj 2hhh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMubj@)}(h h]h }(hj2hhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hj 2hhhj2hMubj|)}(hunsignedh]hunsigned}(hj+2hhhNhNubah}(h]h ]jah"]h$]h&]uh1j{hj 2hhhj2hMubj@)}(h h]h }(hj92hhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hj 2hhhj2hMubj|)}(hlongh]hlong}(hjG2hhhNhNubah}(h]h ]jah"]h$]h&]uh1j{hj 2hhhj2hMubj@)}(h h]h }(hjU2hhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hj 2hhhj2hMubjH)}(hjKh]h*}(hjc2hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj 2hhhj2hMubjQ)}(hgpiochip_query_valid_maskh]jW)}(hgpiochip_query_valid_maskh]hgpiochip_query_valid_mask}(hjt2hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjp2ubah}(h]h ](jijjeh"]h$]h&]jnjouh1jPhj 2hhhj2hMubjp)}(h(const struct gpio_chip *gc)h]jv)}(hconst struct gpio_chip *gch](j.)}(hj{#h]hconst}(hj2hhhNhNubah}(h]h ]j:ah"]h$]h&]uh1j-hj2ubj@)}(h h]h }(hj2hhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hj2ubj.)}(hj1h]hstruct}(hj2hhhNhNubah}(h]h ]j:ah"]h$]h&]uh1j-hj2ubj@)}(h h]h }(hj2hhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hj2ubh)}(hhh]jW)}(h gpio_chiph]h gpio_chip}(hj2hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhj2ubah}(h]h ]h"]h$]h&] refdomainjreftypej+ reftargetj2modnameN classnameNjj)}j]j3)}j+jv2sbc.gpiochip_query_valid_maskasbuh1hhj2ubj@)}(h h]h }(hj2hhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hj2ubjH)}(hjKh]h*}(hj2hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj2ubjW)}(hgch]hgc}(hj3hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhj2ubeh}(h]h ]h"]h$]h&]noemphjnjouh1juhj2ubah}(h]h ]h"]h$]h&]jnjouh1johj 2hhhj2hMubeh}(h]h ]h"]h$]h&]jnjojvuh1j'jwjxhj2hhhj2hMubah}(h]j2ah ](j|j}eh"]h$]h&]jj)jhuh1j!hj2hMhj2hhubj)}(hhh]h)}(h$return the GPIO validity informationh]h$return the GPIO validity information}(hj.3hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMhj+3hhubah}(h]h ]h"]h$]h&]uh1jhj2hhhj2hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjF3jjF3jjjuh1jhhhhhNhNubj)}(hX**Parameters** ``const struct gpio_chip *gc`` gpio chip which validity information is queried **Return** bitmap representing valid GPIOs or NULL if all GPIOs are valid **Description** Some GPIO chips may support configurations where some of the pins aren't available. These chips can have valid_mask set to represent the valid GPIOs. This function can be used to retrieve this information.h](h)}(h**Parameters**h]j)}(hjP3h]h Parameters}(hjR3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjN3ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMhjJ3ubj)}(hhh]j)}(hO``const struct gpio_chip *gc`` gpio chip which validity information is queried h](j)}(h``const struct gpio_chip *gc``h]j )}(hjo3h]hconst struct gpio_chip *gc}(hjq3hhhNhNubah}(h]h ]h"]h$]h&]uh1j hjm3ubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMhji3ubj")}(hhh]h)}(h/gpio chip which validity information is queriedh]h/gpio chip which validity information is queried}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj3hMhj3ubah}(h]h ]h"]h$]h&]uh1j!hji3ubeh}(h]h ]h"]h$]h&]uh1jhj3hMhjf3ubah}(h]h ]h"]h$]h&]uh1jhjJ3ubh)}(h **Return**h]j)}(hj3h]hReturn}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMhjJ3ubh)}(h>bitmap representing valid GPIOs or NULL if all GPIOs are validh]h>bitmap representing valid GPIOs or NULL if all GPIOs are valid}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMhjJ3ubh)}(h**Description**h]j)}(hj3h]h Description}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMhjJ3ubh)}(hSome GPIO chips may support configurations where some of the pins aren't available. These chips can have valid_mask set to represent the valid GPIOs. This function can be used to retrieve this information.h]hSome GPIO chips may support configurations where some of the pins aren’t available. These chips can have valid_mask set to represent the valid GPIOs. This function can be used to retrieve this information.}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMhjJ3ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubj )}(hhh]h}(h]h ]h"]h$]h&]entries](jgpiochip_get_data (C function)c.gpiochip_get_datahNtauh1j hhhhhNhNubj)}(hhh](j")}(h/void * gpiochip_get_data (struct gpio_chip *gc)h]j()}(h-void *gpiochip_get_data(struct gpio_chip *gc)h](j|)}(hvoidh]hvoid}(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1j{hj4hhh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMubj@)}(h h]h }(hj%4hhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hj4hhhj$4hMubjH)}(hjKh]h*}(hj34hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj4hhhj$4hMubjQ)}(hgpiochip_get_datah]jW)}(hgpiochip_get_datah]hgpiochip_get_data}(hjD4hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhj@4ubah}(h]h ](jijjeh"]h$]h&]jnjouh1jPhj4hhhj$4hMubjp)}(h(struct gpio_chip *gc)h]jv)}(hstruct gpio_chip *gch](j.)}(hj1h]hstruct}(hj`4hhhNhNubah}(h]h ]j:ah"]h$]h&]uh1j-hj\4ubj@)}(h h]h }(hjm4hhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hj\4ubh)}(hhh]jW)}(h gpio_chiph]h gpio_chip}(hj~4hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhj{4ubah}(h]h ]h"]h$]h&] refdomainjreftypej+ reftargetj4modnameN classnameNjj)}j]j3)}j+jF4sbc.gpiochip_get_dataasbuh1hhj\4ubj@)}(h h]h }(hj4hhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hj\4ubjH)}(hjKh]h*}(hj4hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj\4ubjW)}(hgch]hgc}(hj4hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhj\4ubeh}(h]h ]h"]h$]h&]noemphjnjouh1juhjX4ubah}(h]h ]h"]h$]h&]jnjouh1johj4hhhj$4hMubeh}(h]h ]h"]h$]h&]jnjojvuh1j'jwjxhj4hhhj$4hMubah}(h]j 4ah ](j|j}eh"]h$]h&]jj)jhuh1j!hj$4hMhj 4hhubj)}(hhh]h)}(h#get per-subdriver data for the chiph]h#get per-subdriver data for the chip}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMhj4hhubah}(h]h ]h"]h$]h&]uh1jhj 4hhhj$4hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj4jj4jjjuh1jhhhhhNhNubj)}(hf**Parameters** ``struct gpio_chip *gc`` GPIO chip **Return** The per-subdriver data for the chip.h](h)}(h**Parameters**h]j)}(hj5h]h Parameters}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj5ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMhj4ubj)}(hhh]j)}(h#``struct gpio_chip *gc`` GPIO chip h](j)}(h``struct gpio_chip *gc``h]j )}(hj$5h]hstruct gpio_chip *gc}(hj&5hhhNhNubah}(h]h ]h"]h$]h&]uh1j hj"5ubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMhj5ubj")}(hhh]h)}(h GPIO chiph]h GPIO chip}(hj=5hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj95hMhj:5ubah}(h]h ]h"]h$]h&]uh1j!hj5ubeh}(h]h ]h"]h$]h&]uh1jhj95hMhj5ubah}(h]h ]h"]h$]h&]uh1jhj4ubh)}(h **Return**h]j)}(hj_5h]hReturn}(hja5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj]5ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMhj4ubh)}(h$The per-subdriver data for the chip.h]h$The per-subdriver data for the chip.}(hju5hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMhj4ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubj )}(hhh]h}(h]h ]h"]h$]h&]entries](jgpiochip_remove (C function)c.gpiochip_removehNtauh1j hhhhhNhNubj)}(hhh](j")}(h+void gpiochip_remove (struct gpio_chip *gc)h]j()}(h*void gpiochip_remove(struct gpio_chip *gc)h](j|)}(hvoidh]hvoid}(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1j{hj5hhh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMubj@)}(h h]h }(hj5hhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hj5hhhj5hMubjQ)}(hgpiochip_removeh]jW)}(hgpiochip_removeh]hgpiochip_remove}(hj5hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhj5ubah}(h]h ](jijjeh"]h$]h&]jnjouh1jPhj5hhhj5hMubjp)}(h(struct gpio_chip *gc)h]jv)}(hstruct gpio_chip *gch](j.)}(hj1h]hstruct}(hj5hhhNhNubah}(h]h ]j:ah"]h$]h&]uh1j-hj5ubj@)}(h h]h }(hj5hhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hj5ubh)}(hhh]jW)}(h gpio_chiph]h gpio_chip}(hj5hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhj5ubah}(h]h ]h"]h$]h&] refdomainjreftypej+ reftargetj6modnameN classnameNjj)}j]j3)}j+j5sbc.gpiochip_removeasbuh1hhj5ubj@)}(h h]h }(hj6hhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hj5ubjH)}(hjKh]h*}(hj-6hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj5ubjW)}(hgch]hgc}(hj:6hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhj5ubeh}(h]h ]h"]h$]h&]noemphjnjouh1juhj5ubah}(h]h ]h"]h$]h&]jnjouh1johj5hhhj5hMubeh}(h]h ]h"]h$]h&]jnjojvuh1j'jwjxhj5hhhj5hMubah}(h]j5ah ](j|j}eh"]h$]h&]jj)jhuh1j!hj5hMhj5hhubj)}(hhh]h)}(hunregister a gpio_chiph]hunregister a gpio_chip}(hjd6hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMhja6hhubah}(h]h ]h"]h$]h&]uh1jhj5hhhj5hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj|6jj|6jjjuh1jhhhhhNhNubj)}(h**Parameters** ``struct gpio_chip *gc`` the chip to unregister **Description** A gpio_chip with any GPIOs still requested may not be removed.h](h)}(h**Parameters**h]j)}(hj6h]h Parameters}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMhj6ubj)}(hhh]j)}(h0``struct gpio_chip *gc`` the chip to unregister h](j)}(h``struct gpio_chip *gc``h]j )}(hj6h]hstruct gpio_chip *gc}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1j hj6ubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMhj6ubj")}(hhh]h)}(hthe chip to unregisterh]hthe chip to unregister}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj6hMhj6ubah}(h]h ]h"]h$]h&]uh1j!hj6ubeh}(h]h ]h"]h$]h&]uh1jhj6hMhj6ubah}(h]h ]h"]h$]h&]uh1jhj6ubh)}(h**Description**h]j)}(hj6h]h Description}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMhj6ubh)}(h>A gpio_chip with any GPIOs still requested may not be removed.h]h>A gpio_chip with any GPIOs still requested may not be removed.}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMhj6ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubj )}(hhh]h}(h]h ]h"]h$]h&]entries](jgpio_device_find (C function)c.gpio_device_findhNtauh1j hhhhhNhNubj)}(hhh](j")}(hnstruct gpio_device * gpio_device_find (const void *data, int (*match)(struct gpio_chip *gc, const void *data))h]j()}(hlstruct gpio_device *gpio_device_find(const void *data, int (*match)(struct gpio_chip *gc, const void *data))h](j.)}(hj1h]hstruct}(hj%7hhhNhNubah}(h]h ]j:ah"]h$]h&]uh1j-hj!7hhh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMubj@)}(h h]h }(hj37hhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hj!7hhhj27hMubh)}(hhh]jW)}(h gpio_deviceh]h gpio_device}(hjD7hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjA7ubah}(h]h ]h"]h$]h&] refdomainjreftypej+ reftargetjF7modnameN classnameNjj)}j]j3)}j+gpio_device_findsbc.gpio_device_findasbuh1hhj!7hhhj27hMubj@)}(h h]h }(hje7hhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hj!7hhhj27hMubjH)}(hjKh]h*}(hjs7hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj!7hhhj27hMubjQ)}(hgpio_device_findh]jW)}(hjb7h]hgpio_device_find}(hj7hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhj7ubah}(h]h ](jijjeh"]h$]h&]jnjouh1jPhj!7hhhj27hMubjp)}(hH(const void *data, int (*match)(struct gpio_chip *gc, const void *data))h](jv)}(hconst void *datah](j.)}(hj{#h]hconst}(hj7hhhNhNubah}(h]h ]j:ah"]h$]h&]uh1j-hj7ubj@)}(h h]h }(hj7hhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hj7ubj|)}(hvoidh]hvoid}(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1j{hj7ubj@)}(h h]h }(hj7hhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hj7ubjH)}(hjKh]h*}(hj7hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj7ubjW)}(hdatah]hdata}(hj7hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhj7ubeh}(h]h ]h"]h$]h&]noemphjnjouh1juhj7ubjv)}(h4int (*match)(struct gpio_chip *gc, const void *data)h](j|)}(hinth]hint}(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1j{hj7ubj@)}(h h]h }(hj 8hhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hj7ubjH)}(h(h]h(}(hj8hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj7ubjH)}(hjKh]h*}(hj&8hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj7ubjW)}(hmatchh]hmatch}(hj38hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhj7ubjH)}(h)h]h)}(hjA8hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj7ubjH)}(hj8h]h(}(hjO8hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj7ubj.)}(hj1h]hstruct}(hj\8hhhNhNubah}(h]h ]j:ah"]h$]h&]uh1j-hj7ubj@)}(h h]h }(hji8hhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hj7ubh)}(hhh]jW)}(h gpio_chiph]h gpio_chip}(hjz8hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjw8ubah}(h]h ]h"]h$]h&] refdomainjreftypej+ reftargetj|8modnameN classnameNjj)}j]j`7c.gpio_device_findasbuh1hhj7ubj@)}(h h]h }(hj8hhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hj7ubjH)}(hjKh]h*}(hj8hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj7ubjW)}(hgch]hgc}(hj8hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhj7ubjH)}(h,h]h,}(hj8hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj7ubj@)}(h h]h }(hj8hhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hj7ubj.)}(hj{#h]hconst}(hj8hhhNhNubah}(h]h ]j:ah"]h$]h&]uh1j-hj7ubj@)}(h h]h }(hj8hhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hj7ubj|)}(hvoidh]hvoid}(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1j{hj7ubj@)}(h h]h }(hj9hhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hj7ubjH)}(hjKh]h*}(hj9hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj7ubjW)}(hdatah]hdata}(hj!9hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhj7ubjH)}(hjC8h]h)}(hj/9hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj7ubeh}(h]h ]h"]h$]h&]noemphjnjouh1juhj7ubeh}(h]h ]h"]h$]h&]jnjouh1johj!7hhhj27hMubeh}(h]h ]h"]h$]h&]jnjojvuh1j'jwjxhj7hhhj27hMubah}(h]j7ah ](j|j}eh"]h$]h&]jj)jhuh1j!hj27hMhj7hhubj)}(hhh]h)}(hfind a specific GPIO deviceh]hfind a specific GPIO device}(hjX9hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMhjU9hhubah}(h]h ]h"]h$]h&]uh1jhj7hhhj27hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjp9jjp9jjjuh1jhhhhhNhNubj)}(hXZ**Parameters** ``const void *data`` data to pass to match function ``int (*match)(struct gpio_chip *gc, const void *data)`` Callback function to check gpio_chip **Return** New reference to struct gpio_device. **Description** Similar to bus_find_device(). It returns a reference to a gpio_device as determined by a user supplied **match** callback. The callback should return 0 if the device doesn't match and non-zero if it does. If the callback returns non-zero, this function will return to the caller and not iterate over any more gpio_devices. The callback takes the GPIO chip structure as argument. During the execution of the callback function the chip is protected from being freed. TODO: This actually has yet to be implemented. If the function returns non-NULL, the returned reference must be freed by the caller using gpio_device_put().h](h)}(h**Parameters**h]j)}(hjz9h]h Parameters}(hj|9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjx9ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMhjt9ubj)}(hhh](j)}(h4``const void *data`` data to pass to match function h](j)}(h``const void *data``h]j )}(hj9h]hconst void *data}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1j hj9ubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMhj9ubj")}(hhh]h)}(hdata to pass to match functionh]hdata to pass to match function}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj9hMhj9ubah}(h]h ]h"]h$]h&]uh1j!hj9ubeh}(h]h ]h"]h$]h&]uh1jhj9hMhj9ubj)}(h^``int (*match)(struct gpio_chip *gc, const void *data)`` Callback function to check gpio_chip h](j)}(h8``int (*match)(struct gpio_chip *gc, const void *data)``h]j )}(hj9h]h4int (*match)(struct gpio_chip *gc, const void *data)}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1j hj9ubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMhj9ubj")}(hhh]h)}(h$Callback function to check gpio_chiph]h$Callback function to check gpio_chip}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj9hMhj9ubah}(h]h ]h"]h$]h&]uh1j!hj9ubeh}(h]h ]h"]h$]h&]uh1jhj9hMhj9ubeh}(h]h ]h"]h$]h&]uh1jhjt9ubh)}(h **Return**h]j)}(hj :h]hReturn}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj :ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMhjt9ubh)}(h$New reference to struct gpio_device.h]h$New reference to struct gpio_device.}(hj#:hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMhjt9ubh)}(h**Description**h]j)}(hj4:h]h Description}(hj6:hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2:ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMhjt9ubh)}(hXBSimilar to bus_find_device(). It returns a reference to a gpio_device as determined by a user supplied **match** callback. The callback should return 0 if the device doesn't match and non-zero if it does. If the callback returns non-zero, this function will return to the caller and not iterate over any more gpio_devices.h](hgSimilar to bus_find_device(). It returns a reference to a gpio_device as determined by a user supplied }(hjJ:hhhNhNubj)}(h **match**h]hmatch}(hjR:hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjJ:ubh callback. The callback should return 0 if the device doesn’t match and non-zero if it does. If the callback returns non-zero, this function will return to the caller and not iterate over any more gpio_devices.}(hjJ:hhhNhNubeh}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMhjt9ubh)}(hThe callback takes the GPIO chip structure as argument. During the execution of the callback function the chip is protected from being freed. TODO: This actually has yet to be implemented.h]hThe callback takes the GPIO chip structure as argument. During the execution of the callback function the chip is protected from being freed. TODO: This actually has yet to be implemented.}(hjk:hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chM!hjt9ubh)}(hmIf the function returns non-NULL, the returned reference must be freed by the caller using gpio_device_put().h]hmIf the function returns non-NULL, the returned reference must be freed by the caller using gpio_device_put().}(hjz:hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chM%hjt9ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubj )}(hhh]h}(h]h ]h"]h$]h&]entries](j&gpio_device_find_by_label (C function)c.gpio_device_find_by_labelhNtauh1j hhhhhNhNubj)}(hhh](j")}(hBstruct gpio_device * gpio_device_find_by_label (const char *label)h]j()}(h@struct gpio_device *gpio_device_find_by_label(const char *label)h](j.)}(hj1h]hstruct}(hj:hhhNhNubah}(h]h ]j:ah"]h$]h&]uh1j-hj:hhh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMJubj@)}(h h]h }(hj:hhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hj:hhhj:hMJubh)}(hhh]jW)}(h gpio_deviceh]h gpio_device}(hj:hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhj:ubah}(h]h ]h"]h$]h&] refdomainjreftypej+ reftargetj:modnameN classnameNjj)}j]j3)}j+gpio_device_find_by_labelsbc.gpio_device_find_by_labelasbuh1hhj:hhhj:hMJubj@)}(h h]h }(hj:hhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hj:hhhj:hMJubjH)}(hjKh]h*}(hj:hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj:hhhj:hMJubjQ)}(hgpio_device_find_by_labelh]jW)}(hj:h]hgpio_device_find_by_label}(hj;hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhj;ubah}(h]h ](jijjeh"]h$]h&]jnjouh1jPhj:hhhj:hMJubjp)}(h(const char *label)h]jv)}(hconst char *labelh](j.)}(hj{#h]hconst}(hj#;hhhNhNubah}(h]h ]j:ah"]h$]h&]uh1j-hj;ubj@)}(h h]h }(hj0;hhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hj;ubj|)}(hcharh]hchar}(hj>;hhhNhNubah}(h]h ]jah"]h$]h&]uh1j{hj;ubj@)}(h h]h }(hjL;hhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hj;ubjH)}(hjKh]h*}(hjZ;hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj;ubjW)}(hlabelh]hlabel}(hjg;hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhj;ubeh}(h]h ]h"]h$]h&]noemphjnjouh1juhj;ubah}(h]h ]h"]h$]h&]jnjouh1johj:hhhj:hMJubeh}(h]h ]h"]h$]h&]jnjojvuh1j'jwjxhj:hhhj:hMJubah}(h]j:ah ](j|j}eh"]h$]h&]jj)jhuh1j!hj:hMJhj:hhubj)}(hhh]h)}(hUwrapper around gpio_device_find() finding the GPIO device by its backing chip's labelh]hWwrapper around gpio_device_find() finding the GPIO device by its backing chip’s label}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMJhj;hhubah}(h]h ]h"]h$]h&]uh1jhj:hhhj:hMJubeh}(h]h ](jfunctioneh"]h$]h&]jjjj;jj;jjjuh1jhhhhhNhNubj)}(h**Parameters** ``const char *label`` Label to lookup **Return** Reference to the GPIO device or NULL. Reference must be released with gpio_device_put().h](h)}(h**Parameters**h]j)}(hj;h]h Parameters}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj;ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMNhj;ubj)}(hhh]j)}(h&``const char *label`` Label to lookup h](j)}(h``const char *label``h]j )}(hj;h]hconst char *label}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1j hj;ubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMLhj;ubj")}(hhh]h)}(hLabel to lookuph]hLabel to lookup}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj;hMLhj;ubah}(h]h ]h"]h$]h&]uh1j!hj;ubeh}(h]h ]h"]h$]h&]uh1jhj;hMLhj;ubah}(h]h ]h"]h$]h&]uh1jhj;ubh)}(h **Return**h]j)}(hj <h]hReturn}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj <ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMNhj;ubh)}(hXReference to the GPIO device or NULL. Reference must be released with gpio_device_put().h]hXReference to the GPIO device or NULL. Reference must be released with gpio_device_put().}(hj#<hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMNhj;ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubj )}(hhh]h}(h]h ]h"]h$]h&]entries](j'gpio_device_find_by_fwnode (C function)c.gpio_device_find_by_fwnodehNtauh1j hhhhhNhNubj)}(hhh](j")}(hTstruct gpio_device * gpio_device_find_by_fwnode (const struct fwnode_handle *fwnode)h]j()}(hRstruct gpio_device *gpio_device_find_by_fwnode(const struct fwnode_handle *fwnode)h](j.)}(hj1h]hstruct}(hjR<hhhNhNubah}(h]h ]j:ah"]h$]h&]uh1j-hjN<hhh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chM^ubj@)}(h h]h }(hj`<hhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjN<hhhj_<hM^ubh)}(hhh]jW)}(h gpio_deviceh]h gpio_device}(hjq<hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjn<ubah}(h]h ]h"]h$]h&] refdomainjreftypej+ reftargetjs<modnameN classnameNjj)}j]j3)}j+gpio_device_find_by_fwnodesbc.gpio_device_find_by_fwnodeasbuh1hhjN<hhhj_<hM^ubj@)}(h h]h }(hj<hhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjN<hhhj_<hM^ubjH)}(hjKh]h*}(hj<hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjN<hhhj_<hM^ubjQ)}(hgpio_device_find_by_fwnodeh]jW)}(hj<h]hgpio_device_find_by_fwnode}(hj<hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhj<ubah}(h]h ](jijjeh"]h$]h&]jnjouh1jPhjN<hhhj_<hM^ubjp)}(h$(const struct fwnode_handle *fwnode)h]jv)}(h"const struct fwnode_handle *fwnodeh](j.)}(hj{#h]hconst}(hj<hhhNhNubah}(h]h ]j:ah"]h$]h&]uh1j-hj<ubj@)}(h h]h }(hj<hhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hj<ubj.)}(hj1h]hstruct}(hj<hhhNhNubah}(h]h ]j:ah"]h$]h&]uh1j-hj<ubj@)}(h h]h }(hj<hhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hj<ubh)}(hhh]jW)}(h fwnode_handleh]h fwnode_handle}(hj=hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhj=ubah}(h]h ]h"]h$]h&] refdomainjreftypej+ reftargetj=modnameN classnameNjj)}j]j<c.gpio_device_find_by_fwnodeasbuh1hhj<ubj@)}(h h]h }(hj#=hhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hj<ubjH)}(hjKh]h*}(hj1=hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj<ubjW)}(hfwnodeh]hfwnode}(hj>=hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhj<ubeh}(h]h ]h"]h$]h&]noemphjnjouh1juhj<ubah}(h]h ]h"]h$]h&]jnjouh1johjN<hhhj_<hM^ubeh}(h]h ]h"]h$]h&]jnjojvuh1j'jwjxhjJ<hhhj_<hM^ubah}(h]jE<ah ](j|j}eh"]h$]h&]jj)jhuh1j!hj_<hM^hjG<hhubj)}(hhh]h)}(hGwrapper around gpio_device_find() finding the GPIO device by its fwnodeh]hGwrapper around gpio_device_find() finding the GPIO device by its fwnode}(hjh=hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chM^hje=hhubah}(h]h ]h"]h$]h&]uh1jhjG<hhhj_<hM^ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj=jj=jjjuh1jhhhhhNhNubj)}(h**Parameters** ``const struct fwnode_handle *fwnode`` Firmware node to lookup **Return** Reference to the GPIO device or NULL. Reference must be released with gpio_device_put().h](h)}(h**Parameters**h]j)}(hj=h]h Parameters}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj=ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMbhj=ubj)}(hhh]j)}(h?``const struct fwnode_handle *fwnode`` Firmware node to lookup h](j)}(h&``const struct fwnode_handle *fwnode``h]j )}(hj=h]h"const struct fwnode_handle *fwnode}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1j hj=ubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chM`hj=ubj")}(hhh]h)}(hFirmware node to lookuph]hFirmware node to lookup}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj=hM`hj=ubah}(h]h ]h"]h$]h&]uh1j!hj=ubeh}(h]h ]h"]h$]h&]uh1jhj=hM`hj=ubah}(h]h ]h"]h$]h&]uh1jhj=ubh)}(h **Return**h]j)}(hj=h]hReturn}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj=ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMbhj=ubh)}(hXReference to the GPIO device or NULL. Reference must be released with gpio_device_put().h]hXReference to the GPIO device or NULL. Reference must be released with gpio_device_put().}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMbhj=ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubj )}(hhh]h}(h]h ]h"]h$]h&]entries](jgpio_device_get (C function)c.gpio_device_gethNtauh1j hhhhhNhNubj)}(hhh](j")}(h?struct gpio_device * gpio_device_get (struct gpio_device *gdev)h]j()}(h=struct gpio_device *gpio_device_get(struct gpio_device *gdev)h](j.)}(hj1h]hstruct}(hj)>hhhNhNubah}(h]h ]j:ah"]h$]h&]uh1j-hj%>hhh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMmubj@)}(h h]h }(hj7>hhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hj%>hhhj6>hMmubh)}(hhh]jW)}(h gpio_deviceh]h gpio_device}(hjH>hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjE>ubah}(h]h ]h"]h$]h&] refdomainjreftypej+ reftargetjJ>modnameN classnameNjj)}j]j3)}j+gpio_device_getsbc.gpio_device_getasbuh1hhj%>hhhj6>hMmubj@)}(h h]h }(hji>hhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hj%>hhhj6>hMmubjH)}(hjKh]h*}(hjw>hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj%>hhhj6>hMmubjQ)}(hgpio_device_geth]jW)}(hjf>h]hgpio_device_get}(hj>hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhj>ubah}(h]h ](jijjeh"]h$]h&]jnjouh1jPhj%>hhhj6>hMmubjp)}(h(struct gpio_device *gdev)h]jv)}(hstruct gpio_device *gdevh](j.)}(hj1h]hstruct}(hj>hhhNhNubah}(h]h ]j:ah"]h$]h&]uh1j-hj>ubj@)}(h h]h }(hj>hhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hj>ubh)}(hhh]jW)}(h gpio_deviceh]h gpio_device}(hj>hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhj>ubah}(h]h ]h"]h$]h&] refdomainjreftypej+ reftargetj>modnameN classnameNjj)}j]jd>c.gpio_device_getasbuh1hhj>ubj@)}(h h]h }(hj>hhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hj>ubjH)}(hjKh]h*}(hj>hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj>ubjW)}(hgdevh]hgdev}(hj>hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhj>ubeh}(h]h ]h"]h$]h&]noemphjnjouh1juhj>ubah}(h]h ]h"]h$]h&]jnjouh1johj%>hhhj6>hMmubeh}(h]h ]h"]h$]h&]jnjojvuh1j'jwjxhj!>hhhj6>hMmubah}(h]j>ah ](j|j}eh"]h$]h&]jj)jhuh1j!hj6>hMmhj>hhubj)}(hhh]h)}(h0Increase the reference count of this GPIO deviceh]h0Increase the reference count of this GPIO device}(hj$?hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMmhj!?hhubah}(h]h ]h"]h$]h&]uh1jhj>hhhj6>hMmubeh}(h]h ](jfunctioneh"]h$]h&]jjjjstruct device *gpio_device_to_device(struct gpio_device *gdev)h](j.)}(hj1h]hstruct}(hjRAhhhNhNubah}(h]h ]j:ah"]h$]h&]uh1j-hjNAhhh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMubj@)}(h h]h }(hj`AhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjNAhhhj_AhMubh)}(hhh]jW)}(hdeviceh]hdevice}(hjqAhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjnAubah}(h]h ]h"]h$]h&] refdomainjreftypej+ reftargetjsAmodnameN classnameNjj)}j]j3)}j+gpio_device_to_devicesbc.gpio_device_to_deviceasbuh1hhjNAhhhj_AhMubj@)}(h h]h }(hjAhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjNAhhhj_AhMubjH)}(hjKh]h*}(hjAhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjNAhhhj_AhMubjQ)}(hgpio_device_to_deviceh]jW)}(hjAh]hgpio_device_to_device}(hjAhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjAubah}(h]h ](jijjeh"]h$]h&]jnjouh1jPhjNAhhhj_AhMubjp)}(h(struct gpio_device *gdev)h]jv)}(hstruct gpio_device *gdevh](j.)}(hj1h]hstruct}(hjAhhhNhNubah}(h]h ]j:ah"]h$]h&]uh1j-hjAubj@)}(h h]h }(hjAhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjAubh)}(hhh]jW)}(h gpio_deviceh]h gpio_device}(hjAhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjAubah}(h]h ]h"]h$]h&] refdomainjreftypej+ reftargetjAmodnameN classnameNjj)}j]jAc.gpio_device_to_deviceasbuh1hhjAubj@)}(h h]h }(hjBhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjAubjH)}(hjKh]h*}(hjBhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjAubjW)}(hgdevh]hgdev}(hj#BhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjAubeh}(h]h ]h"]h$]h&]noemphjnjouh1juhjAubah}(h]h ]h"]h$]h&]jnjouh1johjNAhhhj_AhMubeh}(h]h ]h"]h$]h&]jnjojvuh1j'jwjxhjJAhhhj_AhMubah}(h]jEAah ](j|j}eh"]h$]h&]jj)jhuh1j!hj_AhMhjGAhhubj)}(hhh]h)}(h5Retrieve the address of the underlying struct device.h]h5Retrieve the address of the underlying struct device.}(hjMBhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMhjJBhhubah}(h]h ]h"]h$]h&]uh1jhjGAhhhj_AhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjeBjjeBjjjuh1jhhhhhNhNubj)}(hX **Parameters** ``struct gpio_device *gdev`` GPIO device for which to return the address. **Description** This does not increase the reference count of the GPIO device nor the underlying struct device. **Return** Address of struct device backing this GPIO device.h](h)}(h**Parameters**h]j)}(hjoBh]h Parameters}(hjqBhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjmBubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMhjiBubj)}(hhh]j)}(hJ``struct gpio_device *gdev`` GPIO device for which to return the address. h](j)}(h``struct gpio_device *gdev``h]j )}(hjBh]hstruct gpio_device *gdev}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjBubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMhjBubj")}(hhh]h)}(h,GPIO device for which to return the address.h]h,GPIO device for which to return the address.}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjBhMhjBubah}(h]h ]h"]h$]h&]uh1j!hjBubeh}(h]h ]h"]h$]h&]uh1jhjBhMhjBubah}(h]h ]h"]h$]h&]uh1jhjiBubh)}(h**Description**h]j)}(hjBh]h Description}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjBubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMhjiBubh)}(h_This does not increase the reference count of the GPIO device nor the underlying struct device.h]h_This does not increase the reference count of the GPIO device nor the underlying struct device.}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMhjiBubh)}(h **Return**h]j)}(hjBh]hReturn}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjBubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMhjiBubh)}(h2Address of struct device backing this GPIO device.h]h2Address of struct device backing this GPIO device.}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMhjiBubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubj )}(hhh]h}(h]h ]h"]h$]h&]entries](j(gpiochip_irqchip_add_domain (C function)c.gpiochip_irqchip_add_domainhNtauh1j hhhhhNhNubj)}(hhh](j")}(hQint gpiochip_irqchip_add_domain (struct gpio_chip *gc, struct irq_domain *domain)h]j()}(hPint gpiochip_irqchip_add_domain(struct gpio_chip *gc, struct irq_domain *domain)h](j|)}(hinth]hint}(hj5ChhhNhNubah}(h]h ]jah"]h$]h&]uh1j{hj1Chhh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMubj@)}(h h]h }(hjDChhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hj1ChhhjCChMubjQ)}(hgpiochip_irqchip_add_domainh]jW)}(hgpiochip_irqchip_add_domainh]hgpiochip_irqchip_add_domain}(hjVChhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjRCubah}(h]h ](jijjeh"]h$]h&]jnjouh1jPhj1ChhhjCChMubjp)}(h1(struct gpio_chip *gc, struct irq_domain *domain)h](jv)}(hstruct gpio_chip *gch](j.)}(hj1h]hstruct}(hjrChhhNhNubah}(h]h ]j:ah"]h$]h&]uh1j-hjnCubj@)}(h h]h }(hjChhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjnCubh)}(hhh]jW)}(h gpio_chiph]h gpio_chip}(hjChhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjCubah}(h]h ]h"]h$]h&] refdomainjreftypej+ reftargetjCmodnameN classnameNjj)}j]j3)}j+jXCsbc.gpiochip_irqchip_add_domainasbuh1hhjnCubj@)}(h h]h }(hjChhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjnCubjH)}(hjKh]h*}(hjChhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjnCubjW)}(hgch]hgc}(hjChhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjnCubeh}(h]h ]h"]h$]h&]noemphjnjouh1juhjjCubjv)}(hstruct irq_domain *domainh](j.)}(hj1h]hstruct}(hjChhhNhNubah}(h]h ]j:ah"]h$]h&]uh1j-hjCubj@)}(h h]h }(hjChhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjCubh)}(hhh]jW)}(h irq_domainh]h irq_domain}(hjDhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjCubah}(h]h ]h"]h$]h&] refdomainjreftypej+ reftargetjDmodnameN classnameNjj)}j]jCc.gpiochip_irqchip_add_domainasbuh1hhjCubj@)}(h h]h }(hj DhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjCubjH)}(hjKh]h*}(hj.DhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjCubjW)}(hdomainh]hdomain}(hj;DhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjCubeh}(h]h ]h"]h$]h&]noemphjnjouh1juhjjCubeh}(h]h ]h"]h$]h&]jnjouh1johj1ChhhjCChMubeh}(h]h ]h"]h$]h&]jnjojvuh1j'jwjxhj-ChhhjCChMubah}(h]j(Cah ](j|j}eh"]h$]h&]jj)jhuh1j!hjCChMhj*Chhubj)}(hhh]h)}(hadds an irqdomain to a gpiochiph]hadds an irqdomain to a gpiochip}(hjeDhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMhjbDhhubah}(h]h ]h"]h$]h&]uh1jhj*ChhhjCChMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj}Djj}Djjjuh1jhhhhhNhNubj)}(hX**Parameters** ``struct gpio_chip *gc`` the gpiochip to add the irqchip to ``struct irq_domain *domain`` the irqdomain to add to the gpiochip **Description** This function adds an IRQ domain to the gpiochip. **Return** 0 on success, or negative errno on failure.h](h)}(h**Parameters**h]j)}(hjDh]h Parameters}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjDubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMhjDubj)}(hhh](j)}(h<``struct gpio_chip *gc`` the gpiochip to add the irqchip to h](j)}(h``struct gpio_chip *gc``h]j )}(hjDh]hstruct gpio_chip *gc}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjDubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMhjDubj")}(hhh]h)}(h"the gpiochip to add the irqchip toh]h"the gpiochip to add the irqchip to}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjDhMhjDubah}(h]h ]h"]h$]h&]uh1j!hjDubeh}(h]h ]h"]h$]h&]uh1jhjDhMhjDubj)}(hC``struct irq_domain *domain`` the irqdomain to add to the gpiochip h](j)}(h``struct irq_domain *domain``h]j )}(hjDh]hstruct irq_domain *domain}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjDubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMhjDubj")}(hhh]h)}(h$the irqdomain to add to the gpiochiph]h$the irqdomain to add to the gpiochip}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjDhMhjDubah}(h]h ]h"]h$]h&]uh1j!hjDubeh}(h]h ]h"]h$]h&]uh1jhjDhMhjDubeh}(h]h ]h"]h$]h&]uh1jhjDubh)}(h**Description**h]j)}(hjEh]h Description}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjEubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMhjDubh)}(h1This function adds an IRQ domain to the gpiochip.h]h1This function adds an IRQ domain to the gpiochip.}(hj0EhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMhjDubh)}(h **Return**h]j)}(hjAEh]hReturn}(hjCEhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj?Eubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMhjDubh)}(h+0 on success, or negative errno on failure.h]h+0 on success, or negative errno on failure.}(hjWEhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMhjDubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubj )}(hhh]h}(h]h ]h"]h$]h&]entries](j%gpiochip_generic_request (C function)c.gpiochip_generic_requesthNtauh1j hhhhhNhNubj)}(hhh](j")}(hHint gpiochip_generic_request (struct gpio_chip *gc, unsigned int offset)h]j()}(hGint gpiochip_generic_request(struct gpio_chip *gc, unsigned int offset)h](j|)}(hinth]hint}(hjEhhhNhNubah}(h]h ]jah"]h$]h&]uh1j{hjEhhh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMubj@)}(h h]h }(hjEhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjEhhhjEhMubjQ)}(hgpiochip_generic_requesth]jW)}(hgpiochip_generic_requesth]hgpiochip_generic_request}(hjEhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjEubah}(h]h ](jijjeh"]h$]h&]jnjouh1jPhjEhhhjEhMubjp)}(h+(struct gpio_chip *gc, unsigned int offset)h](jv)}(hstruct gpio_chip *gch](j.)}(hj1h]hstruct}(hjEhhhNhNubah}(h]h ]j:ah"]h$]h&]uh1j-hjEubj@)}(h h]h }(hjEhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjEubh)}(hhh]jW)}(h gpio_chiph]h gpio_chip}(hjEhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjEubah}(h]h ]h"]h$]h&] refdomainjreftypej+ reftargetjEmodnameN classnameNjj)}j]j3)}j+jEsbc.gpiochip_generic_requestasbuh1hhjEubj@)}(h h]h }(hjFhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjEubjH)}(hjKh]h*}(hjFhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjEubjW)}(hgch]hgc}(hjFhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjEubeh}(h]h ]h"]h$]h&]noemphjnjouh1juhjEubjv)}(hunsigned int offseth](j|)}(hunsignedh]hunsigned}(hj5FhhhNhNubah}(h]h ]jah"]h$]h&]uh1j{hj1Fubj@)}(h h]h }(hjCFhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hj1Fubj|)}(hinth]hint}(hjQFhhhNhNubah}(h]h ]jah"]h$]h&]uh1j{hj1Fubj@)}(h h]h }(hj_FhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hj1FubjW)}(hoffseth]hoffset}(hjmFhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhj1Fubeh}(h]h ]h"]h$]h&]noemphjnjouh1juhjEubeh}(h]h ]h"]h$]h&]jnjouh1johjEhhhjEhMubeh}(h]h ]h"]h$]h&]jnjojvuh1j'jwjxhj~EhhhjEhMubah}(h]jyEah ](j|j}eh"]h$]h&]jj)jhuh1j!hjEhMhj{Ehhubj)}(hhh]h)}(h#request the gpio function for a pinh]h#request the gpio function for a pin}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMhjFhhubah}(h]h ]h"]h$]h&]uh1jhj{EhhhjEhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjFjjFjjjuh1jhhhhhNhNubj)}(h**Parameters** ``struct gpio_chip *gc`` the gpiochip owning the GPIO ``unsigned int offset`` the offset of the GPIO to request for GPIO function **Return** 0 on success, or negative errno on failure.h](h)}(h**Parameters**h]j)}(hjFh]h Parameters}(h+jFhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjFubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMhjFubj)}(hhh](j)}(h6``struct gpio_chip *gc`` the gpiochip owning the GPIO h](j)}(h``struct gpio_chip *gc``h]j )}(hjFh]hstruct gpio_chip *gc}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjFubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMhjFubj")}(hhh]h)}(hthe gpiochip owning the GPIOh]hthe gpiochip owning the GPIO}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjFhMhjFubah}(h]h ]h"]h$]h&]uh1j!hjFubeh}(h]h ]h"]h$]h&]uh1jhjFhMhjFubj)}(hL``unsigned int offset`` the offset of the GPIO to request for GPIO function h](j)}(h``unsigned int offset``h]j )}(hjGh]hunsigned int offset}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjGubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMhj Gubj")}(hhh]h)}(h3the offset of the GPIO to request for GPIO functionh]h3the offset of the GPIO to request for GPIO function}(hj*GhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj&GhMhj'Gubah}(h]h ]h"]h$]h&]uh1j!hj Gubeh}(h]h ]h"]h$]h&]uh1jhj&GhMhjFubeh}(h]h ]h"]h$]h&]uh1jhjFubh)}(h **Return**h]j)}(hjLGh]hReturn}(hjNGhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjJGubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMhjFubh)}(h+0 on success, or negative errno on failure.h]h+0 on success, or negative errno on failure.}(hjbGhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMhjFubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubj )}(hhh]h}(h]h ]h"]h$]h&]entries](j"gpiochip_generic_free (C function)c.gpiochip_generic_freehNtauh1j hhhhhNhNubj)}(hhh](j")}(hFvoid gpiochip_generic_free (struct gpio_chip *gc, unsigned int offset)h]j()}(hEvoid gpiochip_generic_free(struct gpio_chip *gc, unsigned int offset)h](j|)}(hvoidh]hvoid}(hjGhhhNhNubah}(h]h ]jah"]h$]h&]uh1j{hjGhhh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMubj@)}(h h]h }(hjGhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjGhhhjGhMubjQ)}(hgpiochip_generic_freeh]jW)}(hgpiochip_generic_freeh]hgpiochip_generic_free}(hjGhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjGubah}(h]h ](jijjeh"]h$]h&]jnjouh1jPhjGhhhjGhMubjp)}(h+(struct gpio_chip *gc, unsigned int offset)h](jv)}(hstruct gpio_chip *gch](j.)}(hj1h]hstruct}(hjGhhhNhNubah}(h]h ]j:ah"]h$]h&]uh1j-hjGubj@)}(h h]h }(hjGhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjGubh)}(hhh]jW)}(h gpio_chiph]h gpio_chip}(hjGhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjGubah}(h]h ]h"]h$]h&] refdomainjreftypej+ reftargetjGmodnameN classnameNjj)}j]j3)}j+jGsbc.gpiochip_generic_freeasbuh1hhjGubj@)}(h h]h }(hj HhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjGubjH)}(hjKh]h*}(hjHhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjGubjW)}(hgch]hgc}(hj'HhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjGubeh}(h]h ]h"]h$]h&]noemphjnjouh1juhjGubjv)}(hunsigned int offseth](j|)}(hunsignedh]hunsigned}(hj@HhhhNhNubah}(h]h ]jah"]h$]h&]uh1j{hj pin mappingh]h$add a range for GPIO <-> pin mapping}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMhjMhhubah}(h]h ]h"]h$]h&]uh1jhjLhhhjLhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjNjjNjjjuh1jhhhhhNhNubj)}(hXf**Parameters** ``struct gpio_chip *gc`` the gpiochip to add the range for ``struct pinctrl_dev *pctldev`` the pin controller to map to ``unsigned int gpio_offset`` the start offset in the current gpio_chip number space ``const char *pin_group`` name of the pin group inside the pin controller **Description** Calling this function directly from a DeviceTree-supported pinctrl driver is DEPRECATED. Please see Section 2.1 of Documentation/devicetree/bindings/gpio/gpio.txt on how to bind pinctrl and gpio drivers via the "gpio-ranges" property. **Return** 0 on success, or negative errno on failure.h](h)}(h**Parameters**h]j)}(hj Nh]h Parameters}(hj NhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj Nubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMhjNubj)}(hhh](j)}(h;``struct gpio_chip *gc`` the gpiochip to add the range for h](j)}(h``struct gpio_chip *gc``h]j )}(hj*Nh]hstruct gpio_chip *gc}(hj,NhhhNhNubah}(h]h ]h"]h$]h&]uh1j hj(Nubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMhj$Nubj")}(hhh]h)}(h!the gpiochip to add the range forh]h!the gpiochip to add the range for}(hjCNhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj?NhMhj@Nubah}(h]h ]h"]h$]h&]uh1j!hj$Nubeh}(h]h ]h"]h$]h&]uh1jhj?NhMhj!Nubj)}(h=``struct pinctrl_dev *pctldev`` the pin controller to map to h](j)}(h``struct pinctrl_dev *pctldev``h]j )}(hjcNh]hstruct pinctrl_dev *pctldev}(hjeNhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjaNubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMhj]Nubj")}(hhh]h)}(hthe pin controller to map toh]hthe pin controller to map to}(hj|NhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjxNhMhjyNubah}(h]h ]h"]h$]h&]uh1j!hj]Nubeh}(h]h ]h"]h$]h&]uh1jhjxNhMhj!Nubj)}(hT``unsigned int gpio_offset`` the start offset in the current gpio_chip number space h](j)}(h``unsigned int gpio_offset``h]j )}(hjNh]hunsigned int gpio_offset}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjNubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMhjNubj")}(hhh]h)}(h6the start offset in the current gpio_chip number spaceh]h6the start offset in the current gpio_chip number space}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjNhMhjNubah}(h]h ]h"]h$]h&]uh1j!hjNubeh}(h]h ]h"]h$]h&]uh1jhjNhMhj!Nubj)}(hJ``const char *pin_group`` name of the pin group inside the pin controller h](j)}(h``const char *pin_group``h]j )}(hjNh]hconst char *pin_group}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjNubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMhjNubj")}(hhh]h)}(h/name of the pin group inside the pin controllerh]h/name of the pin group inside the pin controller}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjNhMhjNubah}(h]h ]h"]h$]h&]uh1j!hjNubeh}(h]h ]h"]h$]h&]uh1jhjNhMhj!Nubeh}(h]h ]h"]h$]h&]uh1jhjNubh)}(h**Description**h]j)}(hjOh]h Description}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjOubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMhjNubh)}(hCalling this function directly from a DeviceTree-supported pinctrl driver is DEPRECATED. Please see Section 2.1 of Documentation/devicetree/bindings/gpio/gpio.txt on how to bind pinctrl and gpio drivers via the "gpio-ranges" property.h]hCalling this function directly from a DeviceTree-supported pinctrl driver is DEPRECATED. Please see Section 2.1 of Documentation/devicetree/bindings/gpio/gpio.txt on how to bind pinctrl and gpio drivers via the “gpio-ranges” property.}(hj&OhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMhjNubh)}(h **Return**h]j)}(hj7Oh]hReturn}(hj9OhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj5Oubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMhjNubh)}(h+0 on success, or negative errno on failure.h]h+0 on success, or negative errno on failure.}(hjMOhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMhjNubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubj )}(hhh]h}(h]h ]h"]h$]h&]entries](j#gpiochip_add_pin_range (C function)c.gpiochip_add_pin_rangehNtauh1j hhhhhNhNubj)}(hhh](j")}(hint gpiochip_add_pin_range (struct gpio_chip *gc, const char *pinctl_name, unsigned int gpio_offset, unsigned int pin_offset, unsigned int npins)h]j()}(hint gpiochip_add_pin_range(struct gpio_chip *gc, const char *pinctl_name, unsigned int gpio_offset, unsigned int pin_offset, unsigned int npins)h](j|)}(hinth]hint}(hj|OhhhNhNubah}(h]h ]jah"]h$]h&]uh1j{hjxOhhh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chM' ubj@)}(h h]h }(hjOhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjxOhhhjOhM' ubjQ)}(hgpiochip_add_pin_rangeh]jW)}(hgpiochip_add_pin_rangeh]hgpiochip_add_pin_range}(hjOhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjOubah}(h]h ](jijjeh"]h$]h&]jnjouh1jPhjxOhhhjOhM' ubjp)}(hv(struct gpio_chip *gc, const char *pinctl_name, unsigned int gpio_offset, unsigned int pin_offset, unsigned int npins)h](jv)}(hstruct gpio_chip *gch](j.)}(hj1h]hstruct}(hjOhhhNhNubah}(h]h ]j:ah"]h$]h&]uh1j-hjOubj@)}(h h]h }(hjOhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjOubh)}(hhh]jW)}(h gpio_chiph]h gpio_chip}(hjOhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjOubah}(h]h ]h"]h$]h&] refdomainjreftypej+ reftargetjOmodnameN classnameNjj)}j]j3)}j+jOsbc.gpiochip_add_pin_rangeasbuh1hhjOubj@)}(h h]h }(hjOhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjOubjH)}(hjKh]h*}(hjPhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjOubjW)}(hgch]hgc}(hjPhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjOubeh}(h]h ]h"]h$]h&]noemphjnjouh1juhjOubjv)}(hconst char *pinctl_nameh](j.)}(hj{#h]hconst}(hj+PhhhNhNubah}(h]h ]j:ah"]h$]h&]uh1j-hj'Pubj@)}(h h]h }(hj8PhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hj'Pubj|)}(hcharh]hchar}(hjFPhhhNhNubah}(h]h ]jah"]h$]h&]uh1j{hj'Pubj@)}(h h]h }(hjTPhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hj'PubjH)}(hjKh]h*}(hjbPhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj'PubjW)}(h pinctl_nameh]h pinctl_name}(hjoPhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhj'Pubeh}(h]h ]h"]h$]h&]noemphjnjouh1juhjOubjv)}(hunsigned int gpio_offseth](j|)}(hunsignedh]hunsigned}(hjPhhhNhNubah}(h]h ]jah"]h$]h&]uh1j{hjPubj@)}(h h]h }(hjPhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjPubj|)}(hinth]hint}(hjPhhhNhNubah}(h]h ]jah"]h$]h&]uh1j{hjPubj@)}(h h]h }(hjPhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjPubjW)}(h gpio_offseth]h gpio_offset}(hjPhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjPubeh}(h]h ]h"]h$]h&]noemphjnjouh1juhjOubjv)}(hunsigned int pin_offseth](j|)}(hunsignedh]hunsigned}(hjPhhhNhNubah}(h]h ]jah"]h$]h&]uh1j{hjPubj@)}(h h]h }(hjPhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjPubj|)}(hinth]hint}(hjPhhhNhNubah}(h]h ]jah"]h$]h&]uh1j{hjPubj@)}(h h]h }(hjQhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjPubjW)}(h pin_offseth]h pin_offset}(hjQhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjPubeh}(h]h ]h"]h$]h&]noemphjnjouh1juhjOubjv)}(hunsigned int npinsh](j|)}(hunsignedh]hunsigned}(hj*QhhhNhNubah}(h]h ]jah"]h$]h&]uh1j{hj&Qubj@)}(h h]h }(hj8QhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hj&Qubj|)}(hinth]hint}(hjFQhhhNhNubah}(h]h ]jah"]h$]h&]uh1j{hj&Qubj@)}(h h]h }(hjTQhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hj&QubjW)}(hnpinsh]hnpins}(hjbQhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhj&Qubeh}(h]h ]h"]h$]h&]noemphjnjouh1juhjOubeh}(h]h ]h"]h$]h&]jnjouh1johjxOhhhjOhM' ubeh}(h]h ]h"]h$]h&]jnjojvuh1j'jwjxhjtOhhhjOhM' ubah}(h]joOah ](j|j}eh"]h$]h&]jj)jhuh1j!hjOhM' hjqOhhubj)}(hhh]h)}(h$add a range for GPIO <-> pin mappingh]h$add a range for GPIO <-> pin mapping}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chM' hjQhhubah}(h]h ]h"]h$]h&]uh1jhjqOhhhjOhM' ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjQjjQjjjuh1jhhhhhNhNubj)}(hX**Parameters** ``struct gpio_chip *gc`` the gpiochip to add the range for ``const char *pinctl_name`` the dev_name() of the pin controller to map to ``unsigned int gpio_offset`` the start offset in the current gpio_chip number space ``unsigned int pin_offset`` the start offset in the pin controller number space ``unsigned int npins`` the number of pins from the offset of each pin space (GPIO and pin controller) to accumulate in this range **Description** Calling this function directly from a DeviceTree-supported pinctrl driver is DEPRECATED. Please see Section 2.1 of Documentation/devicetree/bindings/gpio/gpio.txt on how to bind pinctrl and gpio drivers via the "gpio-ranges" property. **Return** 0 on success, or a negative errno on failure.h](h)}(h**Parameters**h]j)}(hjQh]h Parameters}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjQubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chM+ hjQubj)}(hhh](j)}(h;``struct gpio_chip *gc`` the gpiochip to add the range for h](j)}(h``struct gpio_chip *gc``h]j )}(hjQh]hstruct gpio_chip *gc}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjQubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chM( hjQubj")}(hhh]h)}(h!the gpiochip to add the range forh]h!the gpiochip to add the range for}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjQhM( hjQubah}(h]h ]h"]h$]h&]uh1j!hjQubeh}(h]h ]h"]h$]h&]uh1jhjQhM( hjQubj)}(hK``const char *pinctl_name`` the dev_name() of the pin controller to map to h](j)}(h``const char *pinctl_name``h]j )}(hjRh]hconst char *pinctl_name}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjRubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chM) hjRubj")}(hhh]h)}(h.the dev_name() of the pin controller to map toh]h.the dev_name() of the pin controller to map to}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjRhM) hjRubah}(h]h ]h"]h$]h&]uh1j!hjRubeh}(h]h ]h"]h$]h&]uh1jhjRhM) hjQubj)}(hT``unsigned int gpio_offset`` the start offset in the current gpio_chip number space h](j)}(h``unsigned int gpio_offset``h]j )}(hj?Rh]hunsigned int gpio_offset}(hjARhhhNhNubah}(h]h ]h"]h$]h&]uh1j hj=Rubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chM* hj9Rubj")}(hhh]h)}(h6the start offset in the current gpio_chip number spaceh]h6the start offset in the current gpio_chip number space}(hjXRhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjTRhM* hjURubah}(h]h ]h"]h$]h&]uh1j!hj9Rubeh}(h]h ]h"]h$]h&]uh1jhjTRhM* hjQubj)}(hP``unsigned int pin_offset`` the start offset in the pin controller number space h](j)}(h``unsigned int pin_offset``h]j )}(hjxRh]hunsigned int pin_offset}(hjzRhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjvRubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chM+ hjrRubj")}(hhh]h)}(h3the start offset in the pin controller number spaceh]h3the start offset in the pin controller number space}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjRhM+ hjRubah}(h]h ]h"]h$]h&]uh1j!hjrRubeh}(h]h ]h"]h$]h&]uh1jhjRhM+ hjQubj)}(h``unsigned int npins`` the number of pins from the offset of each pin space (GPIO and pin controller) to accumulate in this range h](j)}(h``unsigned int npins``h]j )}(hjRh]hunsigned int npins}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjRubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chM- hjRubj")}(hhh]h)}(hjthe number of pins from the offset of each pin space (GPIO and pin controller) to accumulate in this rangeh]hjthe number of pins from the offset of each pin space (GPIO and pin controller) to accumulate in this range}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chM, hjRubah}(h]h ]h"]h$]h&]uh1j!hjRubeh}(h]h ]h"]h$]h&]uh1jhjRhM- hjQubeh}(h]h ]h"]h$]h&]uh1jhjQubh)}(h**Description**h]j)}(hjRh]h Description}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjRubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chM/ hjQubh)}(hCalling this function directly from a DeviceTree-supported pinctrl driver is DEPRECATED. Please see Section 2.1 of Documentation/devicetree/bindings/gpio/gpio.txt on how to bind pinctrl and gpio drivers via the "gpio-ranges" property.h]hCalling this function directly from a DeviceTree-supported pinctrl driver is DEPRECATED. Please see Section 2.1 of Documentation/devicetree/bindings/gpio/gpio.txt on how to bind pinctrl and gpio drivers via the “gpio-ranges” property.}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chM/ hjQubh)}(h **Return**h]j)}(hjSh]hReturn}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1jhjSubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chM4 hjQubh)}(h-0 on success, or a negative errno on failure.h]h-0 on success, or a negative errno on failure.}(hj*ShhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chM4 hjQubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubj )}(hhh]h}(h]h ]h"]h$]h&]entries](j'gpiochip_remove_pin_ranges (C function)c.gpiochip_remove_pin_rangeshNtauh1j hhhhhNhNubj)}(hhh](j")}(h6void gpiochip_remove_pin_ranges (struct gpio_chip *gc)h]j()}(h5void gpiochip_remove_pin_ranges(struct gpio_chip *gc)h](j|)}(hvoidh]hvoid}(hjYShhhNhNubah}(h]h ]jah"]h$]h&]uh1j{hjUShhh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chM` ubj@)}(h h]h }(hjhShhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjUShhhjgShM` ubjQ)}(hgpiochip_remove_pin_rangesh]jW)}(hgpiochip_remove_pin_rangesh]hgpiochip_remove_pin_ranges}(hjzShhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjvSubah}(h]h ](jijjeh"]h$]h&]jnjouh1jPhjUShhhjgShM` ubjp)}(h(struct gpio_chip *gc)h]jv)}(hstruct gpio_chip *gch](j.)}(hj1h]hstruct}(hjShhhNhNubah}(h]h ]j:ah"]h$]h&]uh1j-hjSubj@)}(h h]h }(hjShhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjSubh)}(hhh]jW)}(h gpio_chiph]h gpio_chip}(hjShhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjSubah}(h]h ]h"]h$]h&] refdomainjreftypej+ reftargetjSmodnameN classnameNjj)}j]j3)}j+j|Ssbc.gpiochip_remove_pin_rangesasbuh1hhjSubj@)}(h h]h }(hjShhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjSubjH)}(hjKh]h*}(hjShhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjSubjW)}(hgch]hgc}(hjShhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjSubeh}(h]h ]h"]h$]h&]noemphjnjouh1juhjSubah}(h]h ]h"]h$]h&]jnjouh1johjUShhhjgShM` ubeh}(h]h ]h"]h$]h&]jnjojvuh1j'jwjxhjQShhhjgShM` ubah}(h]jLSah ](j|j}eh"]h$]h&]jj)jhuh1j!hjgShM` hjNShhubj)}(hhh]h)}(h$remove all the GPIO <-> pin mappingsh]h$remove all the GPIO <-> pin mappings}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chM` hjThhubah}(h]h ]h"]h$]h&]uh1jhjNShhhjgShM` ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj1Tjj1Tjjjuh1jhhhhhNhNubj)}(hR**Parameters** ``struct gpio_chip *gc`` the chip to remove all the mappings forh](h)}(h**Parameters**h]j)}(hj;Th]h Parameters}(hj=ThhhNhNubah}(h]h ]h"]h$]h&]uh1jhj9Tubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMd hj5Tubj)}(hhh]j)}(h@``struct gpio_chip *gc`` the chip to remove all the mappings forh](j)}(h``struct gpio_chip *gc``h]j )}(hjZTh]hstruct gpio_chip *gc}(hj\ThhhNhNubah}(h]h ]h"]h$]h&]uh1j hjXTubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMf hjTTubj")}(hhh]h)}(h'the chip to remove all the mappings forh]h'the chip to remove all the mappings for}(hjsThhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMa hjpTubah}(h]h ]h"]h$]h&]uh1j!hjTTubeh}(h]h ]h"]h$]h&]uh1jhjoThMf hjQTubah}(h]h ]h"]h$]h&]uh1jhj5Tubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubj )}(hhh]h}(h]h ]h"]h$]h&]entries](j$gpiochip_dup_line_label (C function)c.gpiochip_dup_line_labelhNtauh1j hhhhhNhNubj)}(hhh](j")}(hJchar * gpiochip_dup_line_label (struct gpio_chip *gc, unsigned int offset)h]j()}(hHchar *gpiochip_dup_line_label(struct gpio_chip *gc, unsigned int offset)h](j|)}(hcharh]hchar}(hjThhhNhNubah}(h]h ]jah"]h$]h&]uh1j{hjThhh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chM ubj@)}(h h]h }(hjThhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjThhhjThM ubjH)}(hjKh]h*}(hjThhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjThhhjThM ubjQ)}(hgpiochip_dup_line_labelh]jW)}(hgpiochip_dup_line_labelh]hgpiochip_dup_line_label}(hjThhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjTubah}(h]h ](jijjeh"]h$]h&]jnjouh1jPhjThhhjThM ubjp)}(h+(struct gpio_chip *gc, unsigned int offset)h](jv)}(hstruct gpio_chip *gch](j.)}(hj1h]hstruct}(hjThhhNhNubah}(h]h ]j:ah"]h$]h&]uh1j-hjTubj@)}(h h]h }(hj UhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjTubh)}(hhh]jW)}(h gpio_chiph]h gpio_chip}(hjUhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjUubah}(h]h ]h"]h$]h&] refdomainjreftypej+ reftargetjUmodnameN classnameNjj)}j]j3)}j+jTsbc.gpiochip_dup_line_labelasbuh1hhjTubj@)}(h h]h }(hjZubah}(h]h ]h"]h$]h&]uh1j!hj"Zubeh}(h]h ]h"]h$]h&]uh1jhj=ZhM hjYubj)}(h``enum gpio_lookup_flags lflags`` lookup flags for this GPIO or 0 if default, this can be used to specify things like line inversion semantics with the machine flags such as GPIO_OUT_LOW h](j)}(h!``enum gpio_lookup_flags lflags``h]j )}(hjaZh]henum gpio_lookup_flags lflags}(hjcZhhhNhNubah}(h]h ]h"]h$]h&]uh1j hj_Zubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chM hj[Zubj")}(hhh]h)}(hlookup flags for this GPIO or 0 if default, this can be used to specify things like line inversion semantics with the machine flags such as GPIO_OUT_LOWh]hlookup flags for this GPIO or 0 if default, this can be used to specify things like line inversion semantics with the machine flags such as GPIO_OUT_LOW}(hjzZhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chM hjwZubah}(h]h ]h"]h$]h&]uh1j!hj[Zubeh}(h]h ]h"]h$]h&]uh1jhjvZhM hjYubj)}(h``enum gpiod_flags dflags`` descriptor request flags for this GPIO or 0 if default, this can be used to specify consumer semantics such as open drain h](j)}(h``enum gpiod_flags dflags``h]j )}(hjZh]henum gpiod_flags dflags}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjZubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chM hjZubj")}(hhh]h)}(hydescriptor request flags for this GPIO or 0 if default, this can be used to specify consumer semantics such as open drainh]hydescriptor request flags for this GPIO or 0 if default, this can be used to specify consumer semantics such as open drain}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chM hjZubah}(h]h ]h"]h$]h&]uh1j!hjZubeh}(h]h ]h"]h$]h&]uh1jhjZhM hjYubeh}(h]h ]h"]h$]h&]uh1jhjYubh)}(h**Description**h]j)}(hjZh]h Description}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjZubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chM hjYubh)}(hX[Function allows GPIO chip drivers to request and use their own GPIO descriptors via gpiolib API. Difference to gpiod_request() is that this function will not increase reference count of the GPIO chip module. This allows the GPIO chip module to be unloaded as needed (we assume that the GPIO chip driver handles freeing the GPIOs it has requested).h]hX[Function allows GPIO chip drivers to request and use their own GPIO descriptors via gpiolib API. Difference to gpiod_request() is that this function will not increase reference count of the GPIO chip module. This allows the GPIO chip module to be unloaded as needed (we assume that the GPIO chip driver handles freeing the GPIOs it has requested).}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chM hjYubh)}(h **Return**h]j)}(hjZh]hReturn}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjZubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chM hjYubh)}(hYA pointer to the GPIO descriptor, or an ERR_PTR()-encoded negative error code on failure.h]hYA pointer to the GPIO descriptor, or an ERR_PTR()-encoded negative error code on failure.}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chM hjYubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubj )}(hhh]h}(h]h ]h"]h$]h&]entries](j#gpiochip_free_own_desc (C function)c.gpiochip_free_own_deschNtauh1j hhhhhNhNubj)}(hhh](j")}(h4void gpiochip_free_own_desc (struct gpio_desc *desc)h]j()}(h3void gpiochip_free_own_desc(struct gpio_desc *desc)h](j|)}(hvoidh]hvoid}(hjC[hhhNhNubah}(h]h ]jah"]h$]h&]uh1j{hj?[hhh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chM? ubj@)}(h h]h }(hjR[hhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hj?[hhhjQ[hM? ubjQ)}(hgpiochip_free_own_desch]jW)}(hgpiochip_free_own_desch]hgpiochip_free_own_desc}(hjd[hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhj`[ubah}(h]h ](jijjeh"]h$]h&]jnjouh1jPhj?[hhhjQ[hM? ubjp)}(h(struct gpio_desc *desc)h]jv)}(hstruct gpio_desc *desch](j.)}(hj1h]hstruct}(hj[hhhNhNubah}(h]h ]j:ah"]h$]h&]uh1j-hj|[ubj@)}(h h]h }(hj[hhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hj|[ubh)}(hhh]jW)}(h gpio_desch]h gpio_desc}(hj[hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhj[ubah}(h]h ]h"]h$]h&] refdomainjreftypej+ reftargetj[modnameN classnameNjj)}j]j3)}j+jf[sbc.gpiochip_free_own_descasbuh1hhj|[ubj@)}(h h]h }(hj[hhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hj|[ubjH)}(hjKh]h*}(hj[hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj|[ubjW)}(hdesch]hdesc}(hj[hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhj|[ubeh}(h]h ]h"]h$]h&]noemphjnjouh1juhjx[ubah}(h]h ]h"]h$]h&]jnjouh1johj?[hhhjQ[hM? ubeh}(h]h ]h"]h$]h&]jnjojvuh1j'jwjxhj;[hhhjQ[hM? ubah}(h]j6[ah ](j|j}eh"]h$]h&]jj)jhuh1j!hjQ[hM? hj8[hhubj)}(hhh]h)}(h&Free GPIO requested by the chip driverh]h&Free GPIO requested by the chip driver}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chM? hj\hhubah}(h]h ]h"]h$]h&]uh1jhj8[hhhjQ[hM? ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj\jj\jjjuh1jhhhhhNhNubj)}(h**Parameters** ``struct gpio_desc *desc`` GPIO descriptor to free **Description** Function frees the given GPIO requested previously with gpiochip_request_own_desc().h](h)}(h**Parameters**h]j)}(hj%\h]h Parameters}(hj'\hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj#\ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMC hj\ubj)}(hhh]j)}(h3``struct gpio_desc *desc`` GPIO descriptor to free h](j)}(h``struct gpio_desc *desc``h]j )}(hjD\h]hstruct gpio_desc *desc}(hjF\hhhNhNubah}(h]h ]h"]h$]h&]uh1j hjB\ubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chM@ hj>\ubj")}(hhh]h)}(hGPIO descriptor to freeh]hGPIO descriptor to free}(hj]\hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjY\hM@ hjZ\ubah}(h]h ]h"]h$]h&]uh1j!hj>\ubeh}(h]h ]h"]h$]h&]uh1jhjY\hM@ hj;\ubah}(h]h ]h"]h$]h&]uh1jhj\ubh)}(h**Description**h]j)}(hj\h]h Description}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj}\ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMB hj\ubh)}(hTFunction frees the given GPIO requested previously with gpiochip_request_own_desc().h]hTFunction frees the given GPIO requested previously with gpiochip_request_own_desc().}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMB hj\ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubj )}(hhh]h}(h]h ]h"]h$]h&]entries](j"gpiod_direction_input (C function)c.gpiod_direction_inputhNtauh1j hhhhhNhNubj)}(hhh](j")}(h2int gpiod_direction_input (struct gpio_desc *desc)h]j()}(h1int gpiod_direction_input(struct gpio_desc *desc)h](j|)}(hinth]hint}(hj\hhhNhNubah}(h]h ]jah"]h$]h&]uh1j{hj\hhh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chM ubj@)}(h h]h }(hj\hhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hj\hhhj\hM ubjQ)}(hgpiod_direction_inputh]jW)}(hgpiod_direction_inputh]hgpiod_direction_input}(hj\hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhj\ubah}(h]h ](jijjeh"]h$]h&]jnjouh1jPhj\hhhj\hM ubjp)}(h(struct gpio_desc *desc)h]jv)}(hstruct gpio_desc *desch](j.)}(hj1h]hstruct}(hj]hhhNhNubah}(h]h ]j:ah"]h$]h&]uh1j-hj\ubj@)}(h h]h }(hj]hhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hj\ubh)}(hhh]jW)}(h gpio_desch]h gpio_desc}(hj]hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhj]ubah}(h]h ]h"]h$]h&] refdomainjreftypej+ reftargetj!]modnameN classnameNjj)}j]j3)}j+j\sbc.gpiod_direction_inputasbuh1hhj\ubj@)}(h h]h }(hj?]hhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hj\ubjH)}(hjKh]h*}(hjM]hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj\ubjW)}(hdesch]hdesc}(hjZ]hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhj\ubeh}(h]h ]h"]h$]h&]noemphjnjouh1juhj\ubah}(h]h ]h"]h$]h&]jnjouh1johj\hhhj\hM ubeh}(h]h ]h"]h$]h&]jnjojvuh1j'jwjxhj\hhhj\hM ubah}(h]j\ah ](j|j}eh"]h$]h&]jj)jhuh1j!hj\hM hj\hhubj)}(hhh]h)}(hset the GPIO direction to inputh]hset the GPIO direction to input}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chM hj]hhubah}(h]h ]h"]h$]h&]uh1jhj\hhhj\hM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj]jj]jjjuh1jhhhhhNhNubj)}(h**Parameters** ``struct gpio_desc *desc`` GPIO to set to input **Description** Set the direction of the passed GPIO to input, such as gpiod_get_value() can be called safely on it. **Return** 0 on success, or negative errno on failure.h](h)}(h**Parameters**h]j)}(hj]h]h Parameters}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj]ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chM hj]ubj)}(hhh]j)}(h0``struct gpio_desc *desc`` GPIO to set to input h](j)}(h``struct gpio_desc *desc``h]j )}(hj]h]hstruct gpio_desc *desc}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1j hj]ubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chM hj]ubj")}(hhh]h)}(hGPIO to set to inputh]hGPIO to set to input}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj]hM hj]ubah}(h]h ]h"]h$]h&]uh1j!hj]ubeh}(h]h ]h"]h$]h&]uh1jhj]hM hj]ubah}(h]h ]h"]h$]h&]uh1jhj]ubh)}(h**Description**h]j)}(hj^h]h Description}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj]ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chM hj]ubh)}(hdSet the direction of the passed GPIO to input, such as gpiod_get_value() can be called safely on it.h]hdSet the direction of the passed GPIO to input, such as gpiod_get_value() can be called safely on it.}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chM hj]ubh)}(h **Return**h]j)}(hj'^h]hReturn}(hj)^hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj%^ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chM hj]ubh)}(h+0 on success, or negative errno on failure.h]h+0 on success, or negative errno on failure.}(hj=^hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chM hj]ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubj )}(hhh]h}(h]h ]h"]h$]h&]entries](j'gpiod_direction_output_raw (C function)c.gpiod_direction_output_rawhNtauh1j hhhhhNhNubj)}(hhh](j")}(hBint gpiod_direction_output_raw (struct gpio_desc *desc, int value)h]j()}(hAint gpiod_direction_output_raw(struct gpio_desc *desc, int value)h](j|)}(hinth]hint}(hjl^hhhNhNubah}(h]h ]jah"]h$]h&]uh1j{hjh^hhh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chM ubj@)}(h h]h }(hj{^hhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjh^hhhjz^hM ubjQ)}(hgpiod_direction_output_rawh]jW)}(hgpiod_direction_output_rawh]hgpiod_direction_output_raw}(hj^hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhj^ubah}(h]h ](jijjeh"]h$]h&]jnjouh1jPhjh^hhhjz^hM ubjp)}(h#(struct gpio_desc *desc, int value)h](jv)}(hstruct gpio_desc *desch](j.)}(hj1h]hstruct}(hj^hhhNhNubah}(h]h ]j:ah"]h$]h&]uh1j-hj^ubj@)}(h h]h }(hj^hhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hj^ubh)}(hhh]jW)}(h gpio_desch]h gpio_desc}(hj^hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhj^ubah}(h]h ]h"]h$]h&] refdomainjreftypej+ reftargetj^modnameN classnameNjj)}j]j3)}j+j^sbc.gpiod_direction_output_rawasbuh1hhj^ubj@)}(h h]h }(hj^hhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hj^ubjH)}(hjKh]h*}(hj^hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj^ubjW)}(hdesch]hdesc}(hj_hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhj^ubeh}(h]h ]h"]h$]h&]noemphjnjouh1juhj^ubjv)}(h int valueh](j|)}(hinth]hint}(hj_hhhNhNubah}(h]h ]jah"]h$]h&]uh1j{hj_ubj@)}(h h]h }(hj)_hhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hj_ubjW)}(hvalueh]hvalue}(hj7_hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhj_ubeh}(h]h ]h"]h$]h&]noemphjnjouh1juhj^ubeh}(h]h ]h"]h$]h&]jnjouh1johjh^hhhjz^hM ubeh}(h]h ]h"]h$]h&]jnjojvuh1j'jwjxhjd^hhhjz^hM ubah}(h]j_^ah ](j|j}eh"]h$]h&]jj)jhuh1j!hjz^hM hja^hhubj)}(hhh]h)}(h set the GPIO direction to outputh]h set the GPIO direction to output}(hja_hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chM hj^_hhubah}(h]h ]h"]h$]h&]uh1jhja^hhhjz^hM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjy_jjy_jjjuh1jhhhhhNhNubj)}(hX**Parameters** ``struct gpio_desc *desc`` GPIO to set to output ``int value`` initial output value of the GPIO **Description** Set the direction of the passed GPIO to output, such as gpiod_set_value() can be called safely on it. The initial value of the output must be specified as raw value on the physical line without regard for the ACTIVE_LOW status. **Return** 0 on success, or negative errno on failure.h](h)}(h**Parameters**h]j)}(hj_h]h Parameters}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj_ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chM hj}_ubj)}(hhh](j)}(h1``struct gpio_desc *desc`` GPIO to set to output h](j)}(h``struct gpio_desc *desc``h]j )}(hj_h]hstruct gpio_desc *desc}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1j hj_ubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chM hj_ubj")}(hhh]h)}(hGPIO to set to outputh]hGPIO to set to output}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj_hM hj_ubah}(h]h ]h"]h$]h&]uh1j!hj_ubeh}(h]h ]h"]h$]h&]uh1jhj_hM hj_ubj)}(h/``int value`` initial output value of the GPIO h](j)}(h ``int value``h]j )}(hj_h]h int value}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1j hj_ubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chM hj_ubj")}(hhh]h)}(h initial output value of the GPIOh]h initial output value of the GPIO}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj_hM hj_ubah}(h]h ]h"]h$]h&]uh1j!hj_ubeh}(h]h ]h"]h$]h&]uh1jhj_hM hj_ubeh}(h]h ]h"]h$]h&]uh1jhj}_ubh)}(h**Description**h]j)}(hj`h]h Description}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj`ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chM hj}_ubh)}(hSet the direction of the passed GPIO to output, such as gpiod_set_value() can be called safely on it. The initial value of the output must be specified as raw value on the physical line without regard for the ACTIVE_LOW status.h]hSet the direction of the passed GPIO to output, such as gpiod_set_value() can be called safely on it. The initial value of the output must be specified as raw value on the physical line without regard for the ACTIVE_LOW status.}(hj,`hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chM hj}_ubh)}(h **Return**h]j)}(hj=`h]hReturn}(hj?`hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj;`ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chM hj}_ubh)}(h+0 on success, or negative errno on failure.h]h+0 on success, or negative errno on failure.}(hjS`hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chM hj}_ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubj )}(hhh]h}(h]h ]h"]h$]h&]entries](j#gpiod_direction_output (C function)c.gpiod_direction_outputhNtauh1j hhhhhNhNubj)}(hhh](j")}(h>int gpiod_direction_output (struct gpio_desc *desc, int value)h]j()}(h=int gpiod_direction_output(struct gpio_desc *desc, int value)h](j|)}(hinth]hint}(hj`hhhNhNubah}(h]h ]jah"]h$]h&]uh1j{hj~`hhh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chM ubj@)}(h h]h }(hj`hhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hj~`hhhj`hM ubjQ)}(hgpiod_direction_outputh]jW)}(hgpiod_direction_outputh]hgpiod_direction_output}(hj`hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhj`ubah}(h]h ](jijjeh"]h$]h&]jnjouh1jPhj~`hhhj`hM ubjp)}(h#(struct gpio_desc *desc, int value)h](jv)}(hstruct gpio_desc *desch](j.)}(hj1h]hstruct}(hj`hhhNhNubah}(h]h ]j:ah"]h$]h&]uh1j-hj`ubj@)}(h h]h }(hj`hhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hj`ubh)}(hhh]jW)}(h gpio_desch]h gpio_desc}(hj`hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhj`ubah}(h]h ]h"]h$]h&] refdomainjreftypej+ reftargetj`modnameN classnameNjj)}j]j3)}j+j`sbc.gpiod_direction_outputasbuh1hhj`ubj@)}(h h]h }(hj`hhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hj`ubjH)}(hjKh]h*}(hj ahhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj`ubjW)}(hdesch]hdesc}(hjahhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhj`ubeh}(h]h ]h"]h$]h&]noemphjnjouh1juhj`ubjv)}(h int valueh](j|)}(hinth]hint}(hj1ahhhNhNubah}(h]h ]jah"]h$]h&]uh1j{hj-aubj@)}(h h]h }(hj?ahhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hj-aubjW)}(hvalueh]hvalue}(hjMahhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhj-aubeh}(h]h ]h"]h$]h&]noemphjnjouh1juhj`ubeh}(h]h ]h"]h$]h&]jnjouh1johj~`hhhj`hM ubeh}(h]h ]h"]h$]h&]jnjojvuh1j'jwjxhjz`hhhj`hM ubah}(h]ju`ah ](j|j}eh"]h$]h&]jj)jhuh1j!hj`hM hjw`hhubj)}(hhh]h)}(h set the GPIO direction to outputh]h set the GPIO direction to output}(hjwahhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chM hjtahhubah}(h]h ]h"]h$]h&]uh1jhjw`hhhj`hM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjajjajjjuh1jhhhhhNhNubj)}(hX**Parameters** ``struct gpio_desc *desc`` GPIO to set to output ``int value`` initial output value of the GPIO **Description** Set the direction of the passed GPIO to output, such as gpiod_set_value() can be called safely on it. The initial value of the output must be specified as the logical value of the GPIO, i.e. taking its ACTIVE_LOW status into account. **Return** 0 on success, or negative errno on failure.h](h)}(h**Parameters**h]j)}(hjah]h Parameters}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jhjaubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chM hjaubj)}(hhh](j)}(h1``struct gpio_desc *desc`` GPIO to set to output h](j)}(h``struct gpio_desc *desc``h]j )}(hjah]hstruct gpio_desc *desc}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1j hjaubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chM hjaubj")}(hhh]h)}(hGPIO to set to outputh]hGPIO to set to output}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1hhjahM hjaubah}(h]h ]h"]h$]h&]uh1j!hjaubeh}(h]h ]h"]h$]h&]uh1jhjahM hjaubj)}(h/``int value`` initial output value of the GPIO h](j)}(h ``int value``h]j )}(hjah]h int value}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1j hjaubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chM hjaubj")}(hhh]h)}(h initial output value of the GPIOh]h initial output value of the GPIO}(hj bhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjbhM hjbubah}(h]h ]h"]h$]h&]uh1j!hjaubeh}(h]h ]h"]h$]h&]uh1jhjbhM hjaubeh}(h]h ]h"]h$]h&]uh1jhjaubh)}(h**Description**h]j)}(hj,bh]h Description}(hj.bhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj*bubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chM hjaubh)}(hSet the direction of the passed GPIO to output, such as gpiod_set_value() can be called safely on it. The initial value of the output must be specified as the logical value of the GPIO, i.e. taking its ACTIVE_LOW status into account.h]hSet the direction of the passed GPIO to output, such as gpiod_set_value() can be called safely on it. The initial value of the output must be specified as the logical value of the GPIO, i.e. taking its ACTIVE_LOW status into account.}(hjBbhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chM hjaubh)}(h **Return**h]j)}(hjSbh]hReturn}(hjUbhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjQbubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chM hjaubh)}(h+0 on success, or negative errno on failure.h]h+0 on success, or negative errno on failure.}(hjibhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chM hjaubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubj )}(hhh]h}(h]h ]h"]h$]h&]entries](j)gpiod_enable_hw_timestamp_ns (C function)c.gpiod_enable_hw_timestamp_nshNtauh1j hhhhhNhNubj)}(hhh](j")}(hNint gpiod_enable_hw_timestamp_ns (struct gpio_desc *desc, unsigned long flags)h]j()}(hMint gpiod_enable_hw_timestamp_ns(struct gpio_desc *desc, unsigned long flags)h](j|)}(hinth]hint}(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1j{hjbhhh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chM ubj@)}(h h]h }(hjbhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjbhhhjbhM ubjQ)}(hgpiod_enable_hw_timestamp_nsh]jW)}(hgpiod_enable_hw_timestamp_nsh]hgpiod_enable_hw_timestamp_ns}(hjbhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjbubah}(h]h ](jijjeh"]h$]h&]jnjouh1jPhjbhhhjbhM ubjp)}(h-(struct gpio_desc *desc, unsigned long flags)h](jv)}(hstruct gpio_desc *desch](j.)}(hj1h]hstruct}(hjbhhhNhNubah}(h]h ]j:ah"]h$]h&]uh1j-hjbubj@)}(h h]h }(hjbhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjbubh)}(hhh]jW)}(h gpio_desch]h gpio_desc}(hjbhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjbubah}(h]h ]h"]h$]h&] refdomainjreftypej+ reftargetjbmodnameN classnameNjj)}j]j3)}j+jbsbc.gpiod_enable_hw_timestamp_nsasbuh1hhjbubj@)}(h h]h }(hjchhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjbubjH)}(hjKh]h*}(hj!chhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjbubjW)}(hdesch]hdesc}(hj.chhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjbubeh}(h]h ]h"]h$]h&]noemphjnjouh1juhjbubjv)}(hunsigned long flagsh](j|)}(hunsignedh]hunsigned}(hjGchhhNhNubah}(h]h ]jah"]h$]h&]uh1j{hjCcubj@)}(h h]h }(hjUchhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjCcubj|)}(hlongh]hlong}(hjcchhhNhNubah}(h]h ]jah"]h$]h&]uh1j{hjCcubj@)}(h h]h }(hjqchhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjCcubjW)}(hflagsh]hflags}(hjchhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjCcubeh}(h]h ]h"]h$]h&]noemphjnjouh1juhjbubeh}(h]h ]h"]h$]h&]jnjouh1johjbhhhjbhM ubeh}(h]h ]h"]h$]h&]jnjojvuh1j'jwjxhjbhhhjbhM ubah}(h]jbah ](j|j}eh"]h$]h&]jj)jhuh1j!hjbhM hjbhhubj)}(hhh]h)}(h)Enable hardware timestamp in nanoseconds.h]h)Enable hardware timestamp in nanoseconds.}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chM hjchhubah}(h]h ]h"]h$]h&]uh1jhjbhhhjbhM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjcjjcjjjuh1jhhhhhNhNubj)}(h**Parameters** ``struct gpio_desc *desc`` GPIO to enable. ``unsigned long flags`` Flags related to GPIO edge. **Return** 0 on success, or negative errno on failure.h](h)}(h**Parameters**h]j)}(hjch]h Parameters}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1jhjcubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chM hjcubj)}(hhh](j)}(h+``struct gpio_desc *desc`` GPIO to enable. h](j)}(h``struct gpio_desc *desc``h]j )}(hjch]hstruct gpio_desc *desc}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1j hjcubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chM hjcubj")}(hhh]h)}(hGPIO to enable.h]hGPIO to enable.}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjchM hjdubah}(h]h ]h"]h$]h&]uh1j!hjcubeh}(h]h ]h"]h$]h&]uh1jhjchM hjcubj)}(h4``unsigned long flags`` Flags related to GPIO edge. h](j)}(h``unsigned long flags``h]j )}(hj#dh]hunsigned long flags}(hj%dhhhNhNubah}(h]h ]h"]h$]h&]uh1j hj!dubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chM hjdubj")}(hhh]h)}(hFlags related to GPIO edge.h]hFlags related to GPIO edge.}(hjlubah}(h]h ]h"]h$]h&]uh1j!hj"lubeh}(h]h ]h"]h$]h&]uh1jhj=lhM hjlubah}(h]h ]h"]h$]h&]uh1jhjlubh)}(h **Return**h]j)}(hjclh]hReturn}(hjelhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjalubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chM hjlubh)}(h)1 if the GPIO is active-low, 0 otherwise.h]h)1 if the GPIO is active-low, 0 otherwise.}(hjylhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chM hjlubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubj )}(hhh]h}(h]h ]h"]h$]h&]entries](j$gpiod_toggle_active_low (C function)c.gpiod_toggle_active_lowhNtauh1j hhhhhNhNubj)}(hhh](j")}(h5void gpiod_toggle_active_low (struct gpio_desc *desc)h]j()}(h4void gpiod_toggle_active_low(struct gpio_desc *desc)h](j|)}(hvoidh]hvoid}(hjlhhhNhNubah}(h]h ]jah"]h$]h&]uh1j{hjlhhh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chM ubj@)}(h h]h }(hjlhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjlhhhjlhM ubjQ)}(hgpiod_toggle_active_lowh]jW)}(hgpiod_toggle_active_lowh]hgpiod_toggle_active_low}(hjlhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjlubah}(h]h ](jijjeh"]h$]h&]jnjouh1jPhjlhhhjlhM ubjp)}(h(struct gpio_desc *desc)h]jv)}(hstruct gpio_desc *desch](j.)}(hj1h]hstruct}(hjlhhhNhNubah}(h]h ]j:ah"]h$]h&]uh1j-hjlubj@)}(h h]h }(hjlhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjlubh)}(hhh]jW)}(h gpio_desch]h gpio_desc}(hjmhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjmubah}(h]h ]h"]h$]h&] refdomainjreftypej+ reftargetjmmodnameN classnameNjj)}j]j3)}j+jlsbc.gpiod_toggle_active_lowasbuh1hhjlubj@)}(h h]h }(hj#mhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjlubjH)}(hjKh]h*}(hj1mhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjlubjW)}(hdesch]hdesc}(hj>mhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjlubeh}(h]h ]h"]h$]h&]noemphjnjouh1juhjlubah}(h]h ]h"]h$]h&]jnjouh1johjlhhhjlhM ubeh}(h]h ]h"]h$]h&]jnjojvuh1j'jwjxhjlhhhjlhM ubah}(h]jlah ](j|j}eh"]h$]h&]jj)jhuh1j!hjlhM hjlhhubj)}(hhh]h)}(h*toggle whether a GPIO is active-low or noth]h*toggle whether a GPIO is active-low or not}(hjhmhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chM hjemhhubah}(h]h ]h"]h$]h&]uh1jhjlhhhjlhM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjmjjmjjjuh1jhhhhhNhNubj)}(hJ**Parameters** ``struct gpio_desc *desc`` the gpio descriptor to changeh](h)}(h**Parameters**h]j)}(hjmh]h Parameters}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjmubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chM hjmubj)}(hhh]j)}(h8``struct gpio_desc *desc`` the gpio descriptor to changeh](j)}(h``struct gpio_desc *desc``h]j )}(hjmh]hstruct gpio_desc *desc}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjmubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chM hjmubj")}(hhh]h)}(hthe gpio descriptor to changeh]hthe gpio descriptor to change}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chM hjmubah}(h]h ]h"]h$]h&]uh1j!hjmubeh}(h]h ]h"]h$]h&]uh1jhjmhM hjmubah}(h]h ]h"]h$]h&]uh1jhjmubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubj )}(hhh]h}(h]h ]h"]h$]h&]entries](j gpiod_get_raw_value (C function)c.gpiod_get_raw_valuehNtauh1j hhhhhNhNubj)}(hhh](j")}(h6int gpiod_get_raw_value (const struct gpio_desc *desc)h]j()}(h5int gpiod_get_raw_value(const struct gpio_desc *desc)h](j|)}(hinth]hint}(hjnhhhNhNubah}(h]h ]jah"]h$]h&]uh1j{hjmhhh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chM ubj@)}(h h]h }(hjnhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjmhhhjnhM ubjQ)}(hgpiod_get_raw_valueh]jW)}(hgpiod_get_raw_valueh]hgpiod_get_raw_value}(hj$nhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhj nubah}(h]h ](jijjeh"]h$]h&]jnjouh1jPhjmhhhjnhM ubjp)}(h(const struct gpio_desc *desc)h]jv)}(hconst struct gpio_desc *desch](j.)}(hj{#h]hconst}(hj@nhhhNhNubah}(h]h ]j:ah"]h$]h&]uh1j-hjpmodnameN classnameNjj)}j]j3)}j+josbc.gpiod_get_valueasbuh1hhjoubj@)}(h h]h }(hj\phhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjoubjH)}(hjKh]h*}(hjjphhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjoubjW)}(hdesch]hdesc}(hjwphhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjoubeh}(h]h ]h"]h$]h&]noemphjnjouh1juhjoubah}(h]h ]h"]h$]h&]jnjouh1johjohhhjohM ubeh}(h]h ]h"]h$]h&]jnjojvuh1j'jwjxhjohhhjohM ubah}(h]joah ](j|j}eh"]h$]h&]jj)jhuh1j!hjohM hjohhubj)}(hhh]h)}(hreturn a gpio's valueh]hreturn a gpio’s value}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chM hjphhubah}(h]h ]h"]h$]h&]uh1jhjohhhjohM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjpjjpjjjuh1jhhhhhNhNubj)}(hX\**Parameters** ``const struct gpio_desc *desc`` gpio whose value will be returned **Return** The GPIO's logical value, i.e. taking the ACTIVE_LOW status into account, or negative errno on failure. **Description** This function can be called from contexts where we cannot sleep, and will complain if the GPIO chip functions potentially sleep.h](h)}(h**Parameters**h]j)}(hjph]h Parameters}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1jhjpubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chM hjpubj)}(hhh]j)}(hC``const struct gpio_desc *desc`` gpio whose value will be returned h](j)}(h ``const struct gpio_desc *desc``h]j )}(hjph]hconst struct gpio_desc *desc}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1j hjpubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chM hjpubj")}(hhh]h)}(h!gpio whose value will be returnedh]h!gpio whose value will be returned}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1hhjphM hjpubah}(h]h ]h"]h$]h&]uh1j!hjpubeh}(h]h ]h"]h$]h&]uh1jhjphM hjpubah}(h]h ]h"]h$]h&]uh1jhjpubh)}(h **Return**h]j)}(hjqh]hReturn}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjqubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chM hjpubh)}(hgThe GPIO's logical value, i.e. taking the ACTIVE_LOW status into account, or negative errno on failure.h]hiThe GPIO’s logical value, i.e. taking the ACTIVE_LOW status into account, or negative errno on failure.}(hj3qhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chM hjpubh)}(h**Description**h]j)}(hjDqh]h Description}(hjFqhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjBqubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chM hjpubh)}(hThis function can be called from contexts where we cannot sleep, and will complain if the GPIO chip functions potentially sleep.h]hThis function can be called from contexts where we cannot sleep, and will complain if the GPIO chip functions potentially sleep.}(hjZqhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chM hjpubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubj )}(hhh]h}(h]h ]h"]h$]h&]entries](j&gpiod_get_raw_array_value (C function)c.gpiod_get_raw_array_valuehNtauh1j hhhhhNhNubj)}(hhh](j")}(hint gpiod_get_raw_array_value (unsigned int array_size, struct gpio_desc **desc_array, struct gpio_array *array_info, unsigned long *value_bitmap)h]j()}(hint gpiod_get_raw_array_value(unsigned int array_size, struct gpio_desc **desc_array, struct gpio_array *array_info, unsigned long *value_bitmap)h](j|)}(hinth]hint}(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1j{hjqhhh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chM ubj@)}(h h]h }(hjqhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjqhhhjqhM ubjQ)}(hgpiod_get_raw_array_valueh]jW)}(hgpiod_get_raw_array_valueh]hgpiod_get_raw_array_value}(hjqhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjqubah}(h]h ](jijjeh"]h$]h&]jnjouh1jPhjqhhhjqhM ubjp)}(ht(unsigned int array_size, struct gpio_desc **desc_array, struct gpio_array *array_info, unsigned long *value_bitmap)h](jv)}(hunsigned int array_sizeh](j|)}(hunsignedh]hunsigned}(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1j{hjqubj@)}(h h]h }(hjqhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjqubj|)}(hinth]hint}(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1j{hjqubj@)}(h h]h }(hjqhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjqubjW)}(h array_sizeh]h array_size}(hjqhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjqubeh}(h]h ]h"]h$]h&]noemphjnjouh1juhjqubjv)}(hstruct gpio_desc **desc_arrayh](j.)}(hj1h]hstruct}(hjrhhhNhNubah}(h]h ]j:ah"]h$]h&]uh1j-hjrubj@)}(h h]h }(hj$rhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjrubh)}(hhh]jW)}(h gpio_desch]h gpio_desc}(hj5rhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhj2rubah}(h]h ]h"]h$]h&] refdomainjreftypej+ reftargetj7rmodnameN classnameNjj)}j]j3)}j+jqsbc.gpiod_get_raw_array_valueasbuh1hhjrubj@)}(h h]h }(hjUrhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjrubjH)}(hjKh]h*}(hjcrhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjrubjH)}(hjKh]h*}(hjprhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjrubjW)}(h desc_arrayh]h desc_array}(hj}rhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjrubeh}(h]h ]h"]h$]h&]noemphjnjouh1juhjqubjv)}(hstruct gpio_array *array_infoh](j.)}(hj1h]hstruct}(hjrhhhNhNubah}(h]h ]j:ah"]h$]h&]uh1j-hjrubj@)}(h h]h }(hjrhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjrubh)}(hhh]jW)}(h gpio_arrayh]h gpio_array}(hjrhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjrubah}(h]h ]h"]h$]h&] refdomainjreftypej+ reftargetjrmodnameN classnameNjj)}j]jQrc.gpiod_get_raw_array_valueasbuh1hhjrubj@)}(h h]h }(hjrhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjrubjH)}(hjKh]h*}(hjrhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjrubjW)}(h array_infoh]h array_info}(hjrhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjrubeh}(h]h ]h"]h$]h&]noemphjnjouh1juhjqubjv)}(hunsigned long *value_bitmaph](j|)}(hunsignedh]hunsigned}(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1j{hjsubj@)}(h h]h }(hjshhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjsubj|)}(hlongh]hlong}(hj"shhhNhNubah}(h]h ]jah"]h$]h&]uh1j{hjsubj@)}(h h]h }(hj0shhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjsubjH)}(hjKh]h*}(hj>shhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjsubjW)}(h value_bitmaph]h value_bitmap}(hjKshhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjsubeh}(h]h ]h"]h$]h&]noemphjnjouh1juhjqubeh}(h]h ]h"]h$]h&]jnjouh1johjqhhhjqhM ubeh}(h]h ]h"]h$]h&]jnjojvuh1j'jwjxhjqhhhjqhM ubah}(h]j|qah ](j|j}eh"]h$]h&]jj)jhuh1j!hjqhM hj~qhhubj)}(hhh]h)}(h&read raw values from an array of GPIOsh]h&read raw values from an array of GPIOs}(hjushhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chM hjrshhubah}(h]h ]h"]h$]h&]uh1jhj~qhhhjqhM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjsjjsjjjuh1jhhhhhNhNubj)}(hX**Parameters** ``unsigned int array_size`` number of elements in the descriptor array / value bitmap ``struct gpio_desc **desc_array`` array of GPIO descriptors whose values will be read ``struct gpio_array *array_info`` information on applicability of fast bitmap processing path ``unsigned long *value_bitmap`` bitmap to store the read values **Description** Read the raw values of the GPIOs, i.e. the values of the physical lines without regard for their ACTIVE_LOW status. This function can be called from contexts where we cannot sleep, and it will complain if the GPIO chip functions potentially sleep. **Return** 0 on success, or negative errno on failure.h](h)}(h**Parameters**h]j)}(hjsh]h Parameters}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1jhjsubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chM hjsubj)}(hhh](j)}(hV``unsigned int array_size`` number of elements in the descriptor array / value bitmap h](j)}(h``unsigned int array_size``h]j )}(hjsh]hunsigned int array_size}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1j hjsubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chM hjsubj")}(hhh]h)}(h9number of elements in the descriptor array / value bitmaph]h9number of elements in the descriptor array / value bitmap}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1hhjshM hjsubah}(h]h ]h"]h$]h&]uh1j!hjsubeh}(h]h ]h"]h$]h&]uh1jhjshM hjsubj)}(hV``struct gpio_desc **desc_array`` array of GPIO descriptors whose values will be read h](j)}(h!``struct gpio_desc **desc_array``h]j )}(hjsh]hstruct gpio_desc **desc_array}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1j hjsubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chM hjsubj")}(hhh]h)}(h3array of GPIO descriptors whose values will be readh]h3array of GPIO descriptors whose values will be read}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1hhjthM hjtubah}(h]h ]h"]h$]h&]uh1j!hjsubeh}(h]h ]h"]h$]h&]uh1jhjthM hjsubj)}(h^``struct gpio_array *array_info`` information on applicability of fast bitmap processing path h](j)}(h!``struct gpio_array *array_info``h]j )}(hj(th]hstruct gpio_array *array_info}(hj*thhhNhNubah}(h]h ]h"]h$]h&]uh1j hj&tubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chM hj"tubj")}(hhh]h)}(h;information on applicability of fast bitmap processing pathh]h;information on applicability of fast bitmap processing path}(hjAthhhNhNubah}(h]h ]h"]h$]h&]uh1hhj=thM hj>tubah}(h]h ]h"]h$]h&]uh1j!hj"tubeh}(h]h ]h"]h$]h&]uh1jhj=thM hjsubj)}(h@``unsigned long *value_bitmap`` bitmap to store the read values h](j)}(h``unsigned long *value_bitmap``h]j )}(hjath]hunsigned long *value_bitmap}(hjcthhhNhNubah}(h]h ]h"]h$]h&]uh1j hj_tubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chM hj[tubj")}(hhh]h)}(hbitmap to store the read valuesh]hbitmap to store the read values}(hjzthhhNhNubah}(h]h ]h"]h$]h&]uh1hhjvthM hjwtubah}(h]h ]h"]h$]h&]uh1j!hj[tubeh}(h]h ]h"]h$]h&]uh1jhjvthM hjsubeh}(h]h ]h"]h$]h&]uh1jhjsubh)}(h**Description**h]j)}(hjth]h Description}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1jhjtubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chM hjsubh)}(hsRead the raw values of the GPIOs, i.e. the values of the physical lines without regard for their ACTIVE_LOW status.h]hsRead the raw values of the GPIOs, i.e. the values of the physical lines without regard for their ACTIVE_LOW status.}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chM hjsubh)}(hThis function can be called from contexts where we cannot sleep, and it will complain if the GPIO chip functions potentially sleep.h]hThis function can be called from contexts where we cannot sleep, and it will complain if the GPIO chip functions potentially sleep.}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chM hjsubh)}(h **Return**h]j)}(hjth]hReturn}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1jhjtubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chM hjsubh)}(h+0 on success, or negative errno on failure.h]h+0 on success, or negative errno on failure.}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chM hjsubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubj )}(hhh]h}(h]h ]h"]h$]h&]entries](j"gpiod_get_array_value (C function)c.gpiod_get_array_valuehNtauh1j hhhhhNhNubj)}(hhh](j")}(hint gpiod_get_array_value (unsigned int array_size, struct gpio_desc **desc_array, struct gpio_array *array_info, unsigned long *value_bitmap)h]j()}(hint gpiod_get_array_value(unsigned int array_size, struct gpio_desc **desc_array, struct gpio_array *array_info, unsigned long *value_bitmap)h](j|)}(hinth]hint}(hjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1j{hjuhhh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chM ubj@)}(h h]h }(hj&uhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjuhhhj%uhM ubjQ)}(hgpiod_get_array_valueh]jW)}(hgpiod_get_array_valueh]hgpiod_get_array_value}(hj8uhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhj4uubah}(h]h ](jijjeh"]h$]h&]jnjouh1jPhjuhhhj%uhM ubjp)}(ht(unsigned int array_size, struct gpio_desc **desc_array, struct gpio_array *array_info, unsigned long *value_bitmap)h](jv)}(hunsigned int array_sizeh](j|)}(hunsignedh]hunsigned}(hjTuhhhNhNubah}(h]h ]jah"]h$]h&]uh1j{hjPuubj@)}(h h]h }(hjbuhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjPuubj|)}(hinth]hint}(hjpuhhhNhNubah}(h]h ]jah"]h$]h&]uh1j{hjPuubj@)}(h h]h }(hj~uhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjPuubjW)}(h array_sizeh]h array_size}(hjuhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjPuubeh}(h]h ]h"]h$]h&]noemphjnjouh1juhjLuubjv)}(hstruct gpio_desc **desc_arrayh](j.)}(hj1h]hstruct}(hjuhhhNhNubah}(h]h ]j:ah"]h$]h&]uh1j-hjuubj@)}(h h]h }(hjuhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjuubh)}(hhh]jW)}(h gpio_desch]h gpio_desc}(hjuhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjuubah}(h]h ]h"]h$]h&] refdomainjreftypej+ reftargetjumodnameN classnameNjj)}j]j3)}j+j:usbc.gpiod_get_array_valueasbuh1hhjuubj@)}(h h]h }(hjuhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjuubjH)}(hjKh]h*}(hjuhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjuubjH)}(hjKh]h*}(hjuhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjuubjW)}(h desc_arrayh]h desc_array}(hj vhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjuubeh}(h]h ]h"]h$]h&]noemphjnjouh1juhjLuubjv)}(hstruct gpio_array *array_infoh](j.)}(hj1h]hstruct}(hj$vhhhNhNubah}(h]h ]j:ah"]h$]h&]uh1j-hj vubj@)}(h h]h }(hj1vhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hj vubh)}(hhh]jW)}(h gpio_arrayh]h gpio_array}(hjBvhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhj?vubah}(h]h ]h"]h$]h&] refdomainjreftypej+ reftargetjDvmodnameN classnameNjj)}j]juc.gpiod_get_array_valueasbuh1hhj vubj@)}(h h]h }(hj`vhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hj vubjH)}(hjKh]h*}(hjnvhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj vubjW)}(h array_infoh]h array_info}(hj{vhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhj vubeh}(h]h ]h"]h$]h&]noemphjnjouh1juhjLuubjv)}(hunsigned long *value_bitmaph](j|)}(hunsignedh]hunsigned}(hjvhhhNhNubah}(h]h ]jah"]h$]h&]uh1j{hjvubj@)}(h h]h }(hjvhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjvubj|)}(hlongh]hlong}(hjvhhhNhNubah}(h]h ]jah"]h$]h&]uh1j{hjvubj@)}(h h]h }(hjvhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjvubjH)}(hjKh]h*}(hjvhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjvubjW)}(h value_bitmaph]h value_bitmap}(hjvhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjvubeh}(h]h ]h"]h$]h&]noemphjnjouh1juhjLuubeh}(h]h ]h"]h$]h&]jnjouh1johjuhhhj%uhM ubeh}(h]h ]h"]h$]h&]jnjojvuh1j'jwjxhjuhhhj%uhM ubah}(h]j uah ](j|j}eh"]h$]h&]jj)jhuh1j!hj%uhM hj uhhubj)}(hhh]h)}(h"read values from an array of GPIOsh]h"read values from an array of GPIOs}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chM hjwhhubah}(h]h ]h"]h$]h&]uh1jhj uhhhj%uhM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjwjjwjjjuh1jhhhhhNhNubj)}(hX**Parameters** ``unsigned int array_size`` number of elements in the descriptor array / value bitmap ``struct gpio_desc **desc_array`` array of GPIO descriptors whose values will be read ``struct gpio_array *array_info`` information on applicability of fast bitmap processing path ``unsigned long *value_bitmap`` bitmap to store the read values **Description** Read the logical values of the GPIOs, i.e. taking their ACTIVE_LOW status into account. This function can be called from contexts where we cannot sleep, and it will complain if the GPIO chip functions potentially sleep. **Return** 0 on success, or negative errno on failure.h](h)}(h**Parameters**h]j)}(hj%wh]h Parameters}(hj'whhhNhNubah}(h]h ]h"]h$]h&]uh1jhj#wubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chM hjwubj)}(hhh](j)}(hV``unsigned int array_size`` number of elements in the descriptor array / value bitmap h](j)}(h``unsigned int array_size``h]j )}(hjDwh]hunsigned int array_size}(hjFwhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjBwubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chM hj>wubj")}(hhh]h)}(h9number of elements in the descriptor array / value bitmaph]h9number of elements in the descriptor array / value bitmap}(hj]whhhNhNubah}(h]h ]h"]h$]h&]uh1hhjYwhM hjZwubah}(h]h ]h"]h$]h&]uh1j!hj>wubeh}(h]h ]h"]h$]h&]uh1jhjYwhM hj;wubj)}(hV``struct gpio_desc **desc_array`` array of GPIO descriptors whose values will be read h](j)}(h!``struct gpio_desc **desc_array``h]j )}(hj}wh]hstruct gpio_desc **desc_array}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1j hj{wubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chM hjwwubj")}(hhh]h)}(h3array of GPIO descriptors whose values will be readh]h3array of GPIO descriptors whose values will be read}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjwhM hjwubah}(h]h ]h"]h$]h&]uh1j!hjwwubeh}(h]h ]h"]h$]h&]uh1jhjwhM hj;wubj)}(h^``struct gpio_array *array_info`` information on applicability of fast bitmap processing path h](j)}(h!``struct gpio_array *array_info``h]j )}(hjwh]hstruct gpio_array *array_info}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjwubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chM hjwubj")}(hhh]h)}(h;information on applicability of fast bitmap processing pathh]h;information on applicability of fast bitmap processing path}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjwhM hjwubah}(h]h ]h"]h$]h&]uh1j!hjwubeh}(h]h ]h"]h$]h&]uh1jhjwhM hj;wubj)}(h@``unsigned long *value_bitmap`` bitmap to store the read values h](j)}(h``unsigned long *value_bitmap``h]j )}(hjwh]hunsigned long *value_bitmap}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjwubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chM hjwubj")}(hhh]h)}(hbitmap to store the read valuesh]hbitmap to store the read values}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjxhM hjxubah}(h]h ]h"]h$]h&]uh1j!hjwubeh}(h]h ]h"]h$]h&]uh1jhjxhM hj;wubeh}(h]h ]h"]h$]h&]uh1jhjwubh)}(h**Description**h]j)}(hj*xh]h Description}(hj,xhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj(xubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chM hjwubh)}(hWRead the logical values of the GPIOs, i.e. taking their ACTIVE_LOW status into account.h]hWRead the logical values of the GPIOs, i.e. taking their ACTIVE_LOW status into account.}(hj@xhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chM hjwubh)}(hThis function can be called from contexts where we cannot sleep, and it will complain if the GPIO chip functions potentially sleep.h]hThis function can be called from contexts where we cannot sleep, and it will complain if the GPIO chip functions potentially sleep.}(hjOxhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chM hjwubh)}(h **Return**h]j)}(hj`xh]hReturn}(hjbxhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj^xubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chM hjwubh)}(h+0 on success, or negative errno on failure.h]h+0 on success, or negative errno on failure.}(hjvxhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chM hjwubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubj )}(hhh]h}(h]h ]h"]h$]h&]entries](j gpiod_set_raw_value (C function)c.gpiod_set_raw_valuehNtauh1j hhhhhNhNubj)}(hhh](j")}(h;int gpiod_set_raw_value (struct gpio_desc *desc, int value)h]j()}(h:int gpiod_set_raw_value(struct gpio_desc *desc, int value)h](j|)}(hinth]hint}(hjxhhhNhNubah}(h]h ]jah"]h$]h&]uh1j{hjxhhh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMubj@)}(h h]h }(hjxhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjxhhhjxhMubjQ)}(hgpiod_set_raw_valueh]jW)}(hgpiod_set_raw_valueh]hgpiod_set_raw_value}(hjxhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjxubah}(h]h ](jijjeh"]h$]h&]jnjouh1jPhjxhhhjxhMubjp)}(h#(struct gpio_desc *desc, int value)h](jv)}(hstruct gpio_desc *desch](j.)}(hj1h]hstruct}(hjxhhhNhNubah}(h]h ]j:ah"]h$]h&]uh1j-hjxubj@)}(h h]h }(hjxhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjxubh)}(hhh]jW)}(h gpio_desch]h gpio_desc}(hjyhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjxubah}(h]h ]h"]h$]h&] refdomainjreftypej+ reftargetjymodnameN classnameNjj)}j]j3)}j+jxsbc.gpiod_set_raw_valueasbuh1hhjxubj@)}(h h]h }(hj yhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjxubjH)}(hjKh]h*}(hj.yhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjxubjW)}(hdesch]hdesc}(hj;yhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjxubeh}(h]h ]h"]h$]h&]noemphjnjouh1juhjxubjv)}(h int valueh](j|)}(hinth]hint}(hjTyhhhNhNubah}(h]h ]jah"]h$]h&]uh1j{hjPyubj@)}(h h]h }(hjbyhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjPyubjW)}(hvalueh]hvalue}(hjpyhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjPyubeh}(h]h ]h"]h$]h&]noemphjnjouh1juhjxubeh}(h]h ]h"]h$]h&]jnjouh1johjxhhhjxhMubeh}(h]h ]h"]h$]h&]jnjojvuh1j'jwjxhjxhhhjxhMubah}(h]jxah ](j|j}eh"]h$]h&]jj)jhuh1j!hjxhMhjxhhubj)}(hhh]h)}(hassign a gpio's raw valueh]hassign a gpio’s raw value}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMhjyhhubah}(h]h ]h"]h$]h&]uh1jhjxhhhjxhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjyjjyjjjuh1jhhhhhNhNubj)}(hX**Parameters** ``struct gpio_desc *desc`` gpio whose value will be assigned ``int value`` value to assign **Description** Set the raw value of the GPIO, i.e. the value of its physical line without regard for its ACTIVE_LOW status. This function can be called from contexts where we cannot sleep, and will complain if the GPIO chip functions potentially sleep. **Return** 0 on success, negative error number on failure.h](h)}(h**Parameters**h]j)}(hjyh]h Parameters}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjyubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMhjyubj)}(hhh](j)}(h=``struct gpio_desc *desc`` gpio whose value will be assigned h](j)}(h``struct gpio_desc *desc``h]j )}(hjyh]hstruct gpio_desc *desc}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjyubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMhjyubj")}(hhh]h)}(h!gpio whose value will be assignedh]h!gpio whose value will be assigned}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjyhMhjyubah}(h]h ]h"]h$]h&]uh1j!hjyubeh}(h]h ]h"]h$]h&]uh1jhjyhMhjyubj)}(h``int value`` value to assign h](j)}(h ``int value``h]j )}(hjzh]h int value}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjzubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMhjzubj")}(hhh]h)}(hvalue to assignh]hvalue to assign}(hj-zhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj)zhMhj*zubah}(h]h ]h"]h$]h&]uh1j!hjzubeh}(h]h ]h"]h$]h&]uh1jhj)zhMhjyubeh}(h]h ]h"]h$]h&]uh1jhjyubh)}(h**Description**h]j)}(hjOzh]h Description}(hjQzhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjMzubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMhjyubh)}(hlSet the raw value of the GPIO, i.e. the value of its physical line without regard for its ACTIVE_LOW status.h]hlSet the raw value of the GPIO, i.e. the value of its physical line without regard for its ACTIVE_LOW status.}(hjezhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMhjyubh)}(hThis function can be called from contexts where we cannot sleep, and will complain if the GPIO chip functions potentially sleep.h]hThis function can be called from contexts where we cannot sleep, and will complain if the GPIO chip functions potentially sleep.}(hjtzhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMhjyubh)}(h **Return**h]j)}(hjzh]hReturn}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjzubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMhjyubh)}(h/0 on success, negative error number on failure.h]h/0 on success, negative error number on failure.}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMhjyubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubj )}(hhh]h}(h]h ]h"]h$]h&]entries](jgpiod_set_value (C function)c.gpiod_set_valuehNtauh1j hhhhhNhNubj)}(hhh](j")}(h7int gpiod_set_value (struct gpio_desc *desc, int value)h]j()}(h6int gpiod_set_value(struct gpio_desc *desc, int value)h](j|)}(hinth]hint}(hjzhhhNhNubah}(h]h ]jah"]h$]h&]uh1j{hjzhhh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMubj@)}(h h]h }(hjzhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjzhhhjzhMubjQ)}(hgpiod_set_valueh]jW)}(hgpiod_set_valueh]hgpiod_set_value}(hjzhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjzubah}(h]h ](jijjeh"]h$]h&]jnjouh1jPhjzhhhjzhMubjp)}(h#(struct gpio_desc *desc, int value)h](jv)}(hstruct gpio_desc *desch](j.)}(hj1h]hstruct}(hj{hhhNhNubah}(h]h ]j:ah"]h$]h&]uh1j-hj{ubj@)}(h h]h }(hj{hhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hj{ubh)}(hhh]jW)}(h gpio_desch]h gpio_desc}(hj%{hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhj"{ubah}(h]h ]h"]h$]h&] refdomainjreftypej+ reftargetj'{modnameN classnameNjj)}j]j3)}j+jzsbc.gpiod_set_valueasbuh1hhj{ubj@)}(h h]h }(hjE{hhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hj{ubjH)}(hjKh]h*}(hjS{hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj{ubjW)}(hdesch]hdesc}(hj`{hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhj{ubeh}(h]h ]h"]h$]h&]noemphjnjouh1juhjzubjv)}(h int valueh](j|)}(hinth]hint}(hjy{hhhNhNubah}(h]h ]jah"]h$]h&]uh1j{hju{ubj@)}(h h]h }(hj{hhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hju{ubjW)}(hvalueh]hvalue}(hj{hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhju{ubeh}(h]h ]h"]h$]h&]noemphjnjouh1juhjzubeh}(h]h ]h"]h$]h&]jnjouh1johjzhhhjzhMubeh}(h]h ]h"]h$]h&]jnjojvuh1j'jwjxhjzhhhjzhMubah}(h]jzah ](j|j}eh"]h$]h&]jj)jhuh1j!hjzhMhjzhhubj)}(hhh]h)}(hassign a gpio's valueh]hassign a gpio’s value}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMhj{hhubah}(h]h ]h"]h$]h&]uh1jhjzhhhjzhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj{jj{jjjuh1jhhhhhNhNubj)}(hX**Parameters** ``struct gpio_desc *desc`` gpio whose value will be assigned ``int value`` value to assign **Description** Set the logical value of the GPIO, i.e. taking its ACTIVE_LOW, OPEN_DRAIN and OPEN_SOURCE flags into account. This function can be called from contexts where we cannot sleep, and will complain if the GPIO chip functions potentially sleep. **Return** 0 on success, negative error number on failure.h](h)}(h**Parameters**h]j)}(hj{h]h Parameters}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj{ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMhj{ubj)}(hhh](j)}(h=``struct gpio_desc *desc`` gpio whose value will be assigned h](j)}(h``struct gpio_desc *desc``h]j )}(hj|h]hstruct gpio_desc *desc}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1j hj{ubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMhj{ubj")}(hhh]h)}(h!gpio whose value will be assignedh]h!gpio whose value will be assigned}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj|hMhj|ubah}(h]h ]h"]h$]h&]uh1j!hj{ubeh}(h]h ]h"]h$]h&]uh1jhj|hMhj{ubj)}(h``int value`` value to assign h](j)}(h ``int value``h]j )}(hj9|h]h int value}(hj;|hhhNhNubah}(h]h ]h"]h$]h&]uh1j hj7|ubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMhj3|ubj")}(hhh]h)}(hvalue to assignh]hvalue to assign}(hjR|hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjN|hMhjO|ubah}(h]h ]h"]h$]h&]uh1j!hj3|ubeh}(h]h ]h"]h$]h&]uh1jhjN|hMhj{ubeh}(h]h ]h"]h$]h&]uh1jhj{ubh)}(h**Description**h]j)}(hjt|h]h Description}(hjv|hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjr|ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMhj{ubh)}(hmSet the logical value of the GPIO, i.e. taking its ACTIVE_LOW, OPEN_DRAIN and OPEN_SOURCE flags into account.h]hmSet the logical value of the GPIO, i.e. taking its ACTIVE_LOW, OPEN_DRAIN and OPEN_SOURCE flags into account.}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMhj{ubh)}(hThis function can be called from contexts where we cannot sleep, and will complain if the GPIO chip functions potentially sleep.h]hThis function can be called from contexts where we cannot sleep, and will complain if the GPIO chip functions potentially sleep.}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMhj{ubh)}(h **Return**h]j)}(hj|h]hReturn}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj|ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMhj{ubh)}(h/0 on success, negative error number on failure.h]h/0 on success, negative error number on failure.}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMhj{ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubj )}(hhh]h}(h]h ]h"]h$]h&]entries](j&gpiod_set_raw_array_value (C function)c.gpiod_set_raw_array_valuehNtauh1j hhhhhNhNubj)}(hhh](j")}(hint gpiod_set_raw_array_value (unsigned int array_size, struct gpio_desc **desc_array, struct gpio_array *array_info, unsigned long *value_bitmap)h]j()}(hint gpiod_set_raw_array_value(unsigned int array_size, struct gpio_desc **desc_array, struct gpio_array *array_info, unsigned long *value_bitmap)h](j|)}(hinth]hint}(hj|hhhNhNubah}(h]h ]jah"]h$]h&]uh1j{hj|hhh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chM*ubj@)}(h h]h }(hj|hhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hj|hhhj|hM*ubjQ)}(hgpiod_set_raw_array_valueh]jW)}(hgpiod_set_raw_array_valueh]hgpiod_set_raw_array_value}(hj}hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhj }ubah}(h]h ](jijjeh"]h$]h&]jnjouh1jPhj|hhhj|hM*ubjp)}(ht(unsigned int array_size, struct gpio_desc **desc_array, struct gpio_array *array_info, unsigned long *value_bitmap)h](jv)}(hunsigned int array_sizeh](j|)}(hunsignedh]hunsigned}(hj,}hhhNhNubah}(h]h ]jah"]h$]h&]uh1j{hj(}ubj@)}(h h]h }(hj:}hhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hj(}ubj|)}(hinth]hint}(hjH}hhhNhNubah}(h]h ]jah"]h$]h&]uh1j{hj(}ubj@)}(h h]h }(hjV}hhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hj(}ubjW)}(h array_sizeh]h array_size}(hjd}hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhj(}ubeh}(h]h ]h"]h$]h&]noemphjnjouh1juhj$}ubjv)}(hstruct gpio_desc **desc_arrayh](j.)}(hj1h]hstruct}(hj}}hhhNhNubah}(h]h ]j:ah"]h$]h&]uh1j-hjy}ubj@)}(h h]h }(hj}hhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjy}ubh)}(hhh]jW)}(h gpio_desch]h gpio_desc}(hj}hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhj}ubah}(h]h ]h"]h$]h&] refdomainjreftypej+ reftargetj}modnameN classnameNjj)}j]j3)}j+j}sbc.gpiod_set_raw_array_valueasbuh1hhjy}ubj@)}(h h]h }(hj}hhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjy}ubjH)}(hjKh]h*}(hj}hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjy}ubjH)}(hjKh]h*}(hj}hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjy}ubjW)}(h desc_arrayh]h desc_array}(hj}hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjy}ubeh}(h]h ]h"]h$]h&]noemphjnjouh1juhj$}ubjv)}(hstruct gpio_array *array_infoh](j.)}(hj1h]hstruct}(hj}hhhNhNubah}(h]h ]j:ah"]h$]h&]uh1j-hj}ubj@)}(h h]h }(hj ~hhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hj}ubh)}(hhh]jW)}(h gpio_arrayh]h gpio_array}(hj~hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhj~ubah}(h]h ]h"]h$]h&] refdomainjreftypej+ reftargetj~modnameN classnameNjj)}j]j}c.gpiod_set_raw_array_valueasbuh1hhj}ubj@)}(h h]h }(hj8~hhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hj}ubjH)}(hjKh]h*}(hjF~hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj}ubjW)}(h array_infoh]h array_info}(hjS~hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhj}ubeh}(h]h ]h"]h$]h&]noemphjnjouh1juhj$}ubjv)}(hunsigned long *value_bitmaph](j|)}(hunsignedh]hunsigned}(hjl~hhhNhNubah}(h]h ]jah"]h$]h&]uh1j{hjh~ubj@)}(h h]h }(hjz~hhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjh~ubj|)}(hlongh]hlong}(hj~hhhNhNubah}(h]h ]jah"]h$]h&]uh1j{hjh~ubj@)}(h h]h }(hj~hhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjh~ubjH)}(hjKh]h*}(hj~hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjh~ubjW)}(h value_bitmaph]h value_bitmap}(hj~hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjh~ubeh}(h]h ]h"]h$]h&]noemphjnjouh1juhj$}ubeh}(h]h ]h"]h$]h&]jnjouh1johj|hhhj|hM*ubeh}(h]h ]h"]h$]h&]jnjojvuh1j'jwjxhj|hhhj|hM*ubah}(h]j|ah ](j|j}eh"]h$]h&]jj)jhuh1j!hj|hM*hj|hhubj)}(hhh]h)}(h"assign values to an array of GPIOsh]h"assign values to an array of GPIOs}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chM*hj~hhubah}(h]h ]h"]h$]h&]uh1jhj|hhhj|hM*ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj~jj~jjjuh1jhhhhhNhNubj)}(hX**Parameters** ``unsigned int array_size`` number of elements in the descriptor array / value bitmap ``struct gpio_desc **desc_array`` array of GPIO descriptors whose values will be assigned ``struct gpio_array *array_info`` information on applicability of fast bitmap processing path ``unsigned long *value_bitmap`` bitmap of values to assign **Description** Set the raw values of the GPIOs, i.e. the values of the physical lines without regard for their ACTIVE_LOW status. This function can be called from contexts where we cannot sleep, and will complain if the GPIO chip functions potentially sleep. **Return** 0 on success, or negative errno on failure.h](h)}(h**Parameters**h]j)}(hj~h]h Parameters}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj~ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chM.hj~ubj)}(hhh](j)}(hV``unsigned int array_size`` number of elements in the descriptor array / value bitmap h](j)}(h``unsigned int array_size``h]j )}(hjh]hunsigned int array_size}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chM+hjubj")}(hhh]h)}(h9number of elements in the descriptor array / value bitmaph]h9number of elements in the descriptor array / value bitmap}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj1hM+hj2ubah}(h]h ]h"]h$]h&]uh1j!hjubeh}(h]h ]h"]h$]h&]uh1jhj1hM+hjubj)}(hZ``struct gpio_desc **desc_array`` array of GPIO descriptors whose values will be assigned h](j)}(h!``struct gpio_desc **desc_array``h]j )}(hjUh]hstruct gpio_desc **desc_array}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjSubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chM,hjOubj")}(hhh]h)}(h7array of GPIO descriptors whose values will be assignedh]h7array of GPIO descriptors whose values will be assigned}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjjhM,hjkubah}(h]h ]h"]h$]h&]uh1j!hjOubeh}(h]h ]h"]h$]h&]uh1jhjjhM,hjubj)}(h^``struct gpio_array *array_info`` information on applicability of fast bitmap processing path h](j)}(h!``struct gpio_array *array_info``h]j )}(hjh]hstruct gpio_array *array_info}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chM-hjubj")}(hhh]h)}(h;information on applicability of fast bitmap processing pathh]h;information on applicability of fast bitmap processing path}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM-hjubah}(h]h ]h"]h$]h&]uh1j!hjubeh}(h]h ]h"]h$]h&]uh1jhjhM-hjubj)}(h;``unsigned long *value_bitmap`` bitmap of values to assign h](j)}(h``unsigned long *value_bitmap``h]j )}(hjh]hunsigned long *value_bitmap}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chM.hjubj")}(hhh]h)}(hbitmap of values to assignh]hbitmap of values to assign}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM.hjubah}(h]h ]h"]h$]h&]uh1j!hjubeh}(h]h ]h"]h$]h&]uh1jhjhM.hjubeh}(h]h ]h"]h$]h&]uh1jhj~ubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chM0hj~ubh)}(hrSet the raw values of the GPIOs, i.e. the values of the physical lines without regard for their ACTIVE_LOW status.h]hrSet the raw values of the GPIOs, i.e. the values of the physical lines without regard for their ACTIVE_LOW status.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chM0hj~ubh)}(hThis function can be called from contexts where we cannot sleep, and will complain if the GPIO chip functions potentially sleep.h]hThis function can be called from contexts where we cannot sleep, and will complain if the GPIO chip functions potentially sleep.}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chM3hj~ubh)}(h **Return**h]j)}(hj8h]hReturn}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chM6hj~ubh)}(h+0 on success, or negative errno on failure.h]h+0 on success, or negative errno on failure.}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chM6hj~ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubj )}(hhh]h}(h]h ]h"]h$]h&]entries](j"gpiod_set_array_value (C function)c.gpiod_set_array_valuehNtauh1j hhhhhNhNubj)}(hhh](j")}(hint gpiod_set_array_value (unsigned int array_size, struct gpio_desc **desc_array, struct gpio_array *array_info, unsigned long *value_bitmap)h]j()}(hint gpiod_set_array_value(unsigned int array_size, struct gpio_desc **desc_array, struct gpio_array *array_info, unsigned long *value_bitmap)h](j|)}(hinth]hint}(hj}hhhNhNubah}(h]h ]jah"]h$]h&]uh1j{hjyhhh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMFubj@)}(h h]h }(hjhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjyhhhjhMFubjQ)}(hgpiod_set_array_valueh]jW)}(hgpiod_set_array_valueh]hgpiod_set_array_value}(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjubah}(h]h ](jijjeh"]h$]h&]jnjouh1jPhjyhhhjhMFubjp)}(ht(unsigned int array_size, struct gpio_desc **desc_array, struct gpio_array *array_info, unsigned long *value_bitmap)h](jv)}(hunsigned int array_sizeh](j|)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j{hjubj@)}(h h]h }(hjȀhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjubj|)}(hinth]hint}(hjրhhhNhNubah}(h]h ]jah"]h$]h&]uh1j{hjubj@)}(h h]h }(hjhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjubjW)}(h array_sizeh]h array_size}(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjubeh}(h]h ]h"]h$]h&]noemphjnjouh1juhjubjv)}(hstruct gpio_desc **desc_arrayh](j.)}(hj1h]hstruct}(hj hhhNhNubah}(h]h ]j:ah"]h$]h&]uh1j-hjubj@)}(h h]h }(hjhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjubh)}(hhh]jW)}(h gpio_desch]h gpio_desc}(hj)hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhj&ubah}(h]h ]h"]h$]h&] refdomainjreftypej+ reftargetj+modnameN classnameNjj)}j]j3)}j+jsbc.gpiod_set_array_valueasbuh1hhjubj@)}(h h]h }(hjIhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjubjH)}(hjKh]h*}(hjWhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjubjH)}(hjKh]h*}(hjdhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjubjW)}(h desc_arrayh]h desc_array}(hjqhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjubeh}(h]h ]h"]h$]h&]noemphjnjouh1juhjubjv)}(hstruct gpio_array *array_infoh](j.)}(hj1h]hstruct}(hjhhhNhNubah}(h]h ]j:ah"]h$]h&]uh1j-hjubj@)}(h h]h }(hjhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjubh)}(hhh]jW)}(h gpio_arrayh]h gpio_array}(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjubah}(h]h ]h"]h$]h&] refdomainjreftypej+ reftargetjmodnameN classnameNjj)}j]jEc.gpiod_set_array_valueasbuh1hhjubj@)}(h h]h }(hjƁhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjubjH)}(hjKh]h*}(hjԁhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjubjW)}(h array_infoh]h array_info}(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjubeh}(h]h ]h"]h$]h&]noemphjnjouh1juhjubjv)}(hunsigned long *value_bitmaph](j|)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j{hjubj@)}(h h]h }(hjhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjubj|)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j{hjubj@)}(h h]h }(hj$hhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjubjH)}(hjKh]h*}(hj2hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjubjW)}(h value_bitmaph]h value_bitmap}(hj?hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjubeh}(h]h ]h"]h$]h&]noemphjnjouh1juhjubeh}(h]h ]h"]h$]h&]jnjouh1johjyhhhjhMFubeh}(h]h ]h"]h$]h&]jnjojvuh1j'jwjxhjuhhhjhMFubah}(h]jpah ](j|j}eh"]h$]h&]jj)jhuh1j!hjhMFhjrhhubj)}(hhh]h)}(h"assign values to an array of GPIOsh]h"assign values to an array of GPIOs}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMFhjfhhubah}(h]h ]h"]h$]h&]uh1jhjrhhhjhMFubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhhhNhNubj)}(hX**Parameters** ``unsigned int array_size`` number of elements in the descriptor array / value bitmap ``struct gpio_desc **desc_array`` array of GPIO descriptors whose values will be assigned ``struct gpio_array *array_info`` information on applicability of fast bitmap processing path ``unsigned long *value_bitmap`` bitmap of values to assign **Description** Set the logical values of the GPIOs, i.e. taking their ACTIVE_LOW status into account. This function can be called from contexts where we cannot sleep, and will complain if the GPIO chip functions potentially sleep. **Return** 0 on success, or negative errno on failure.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMJhjubj)}(hhh](j)}(hV``unsigned int array_size`` number of elements in the descriptor array / value bitmap h](j)}(h``unsigned int array_size``h]j )}(hjh]hunsigned int array_size}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMGhjubj")}(hhh]h)}(h9number of elements in the descriptor array / value bitmaph]h9number of elements in the descriptor array / value bitmap}(hjÂhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMGhjubah}(h]h ]h"]h$]h&]uh1j!hjubeh}(h]h ]h"]h$]h&]uh1jhjhMGhjubj)}(hZ``struct gpio_desc **desc_array`` array of GPIO descriptors whose values will be assigned h](j)}(h!``struct gpio_desc **desc_array``h]j )}(hjh]hstruct gpio_desc **desc_array}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMHhj݂ubj")}(hhh]h)}(h7array of GPIO descriptors whose values will be assignedh]h7array of GPIO descriptors whose values will be assigned}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMHhjubah}(h]h ]h"]h$]h&]uh1j!hj݂ubeh}(h]h ]h"]h$]h&]uh1jhjhMHhjubj)}(h^``struct gpio_array *array_info`` information on applicability of fast bitmap processing path h](j)}(h!``struct gpio_array *array_info``h]j )}(hjh]hstruct gpio_array *array_info}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMIhjubj")}(hhh]h)}(h;information on applicability of fast bitmap processing pathh]h;information on applicability of fast bitmap processing path}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj1hMIhj2ubah}(h]h ]h"]h$]h&]uh1j!hjubeh}(h]h ]h"]h$]h&]uh1jhj1hMIhjubj)}(h;``unsigned long *value_bitmap`` bitmap of values to assign h](j)}(h``unsigned long *value_bitmap``h]j )}(hjUh]hunsigned long *value_bitmap}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjSubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMJhjOubj")}(hhh]h)}(hbitmap of values to assignh]hbitmap of values to assign}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjjhMJhjkubah}(h]h ]h"]h$]h&]uh1j!hjOubeh}(h]h ]h"]h$]h&]uh1jhjjhMJhjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMLhjubh)}(hVSet the logical values of the GPIOs, i.e. taking their ACTIVE_LOW status into account.h]hVSet the logical values of the GPIOs, i.e. taking their ACTIVE_LOW status into account.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMLhjubh)}(hThis function can be called from contexts where we cannot sleep, and will complain if the GPIO chip functions potentially sleep.h]hThis function can be called from contexts where we cannot sleep, and will complain if the GPIO chip functions potentially sleep.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMOhjubh)}(h **Return**h]j)}(hjƃh]hReturn}(hjȃhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjăubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMRhjubh)}(h+0 on success, or negative errno on failure.h]h+0 on success, or negative errno on failure.}(hj܃hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMRhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubj )}(hhh]h}(h]h ]h"]h$]h&]entries](jgpiod_cansleep (C function)c.gpiod_cansleephNtauh1j hhhhhNhNubj)}(hhh](j")}(h1int gpiod_cansleep (const struct gpio_desc *desc)h]j()}(h0int gpiod_cansleep(const struct gpio_desc *desc)h](j|)}(hinth]hint}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1j{hjhhh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMcubj@)}(h h]h }(hjhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjhhhjhMcubjQ)}(hgpiod_cansleeph]jW)}(hgpiod_cansleeph]hgpiod_cansleep}(hj,hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhj(ubah}(h]h ](jijjeh"]h$]h&]jnjouh1jPhjhhhjhMcubjp)}(h(const struct gpio_desc *desc)h]jv)}(hconst struct gpio_desc *desch](j.)}(hj{#h]hconst}(hjHhhhNhNubah}(h]h ]j:ah"]h$]h&]uh1j-hjDubj@)}(h h]h }(hjUhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjDubj.)}(hj1h]hstruct}(hjchhhNhNubah}(h]h ]j:ah"]h$]h&]uh1j-hjDubj@)}(h h]h }(hjphhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjDubh)}(hhh]jW)}(h gpio_desch]h gpio_desc}(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhj~ubah}(h]h ]h"]h$]h&] refdomainjreftypej+ reftargetjmodnameN classnameNjj)}j]j3)}j+j.sbc.gpiod_cansleepasbuh1hhjDubj@)}(h h]h }(hjhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjDubjH)}(hjKh]h*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjDubjW)}(hdesch]hdesc}(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjDubeh}(h]h ]h"]h$]h&]noemphjnjouh1juhj@ubah}(h]h ]h"]h$]h&]jnjouh1johjhhhjhMcubeh}(h]h ]h"]h$]h&]jnjojvuh1j'jwjxhjhhhjhMcubah}(h]jah ](j|j}eh"]h$]h&]jj)jhuh1j!hjhMchjhhubj)}(hhh]h)}(h*report whether gpio value access may sleeph]h*report whether gpio value access may sleep}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMchjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMcubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhhhNhNubj)}(h**Parameters** ``const struct gpio_desc *desc`` gpio to check **Return** 0 for non-sleepable, 1 for sleepable, or an error code in case of error.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMghjubj)}(hhh]j)}(h/``const struct gpio_desc *desc`` gpio to check h](j)}(h ``const struct gpio_desc *desc``h]j )}(hj'h]hconst struct gpio_desc *desc}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1j hj%ubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMdhj!ubj")}(hhh]h)}(h gpio to checkh]h gpio to check}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj<hMdhj=ubah}(h]h ]h"]h$]h&]uh1j!hj!ubeh}(h]h ]h"]h$]h&]uh1jhj<hMdhjubah}(h]h ]h"]h$]h&]uh1jhjubh)}(h **Return**h]j)}(hjbh]hReturn}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj`ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMfhjubh)}(hH0 for non-sleepable, 1 for sleepable, or an error code in case of error.h]hH0 for non-sleepable, 1 for sleepable, or an error code in case of error.}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMfhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubj )}(hhh]h}(h]h ]h"]h$]h&]entries](j$gpiod_set_consumer_name (C function)c.gpiod_set_consumer_namehNtauh1j hhhhhNhNubj)}(hhh](j")}(hFint gpiod_set_consumer_name (struct gpio_desc *desc, const char *name)h]j()}(hEint gpiod_set_consumer_name(struct gpio_desc *desc, const char *name)h](j|)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j{hjhhh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMqubj@)}(h h]h }(hjhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjhhhjhMqubjQ)}(hgpiod_set_consumer_nameh]jW)}(hgpiod_set_consumer_nameh]hgpiod_set_consumer_name}(hjȅhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjąubah}(h]h ](jijjeh"]h$]h&]jnjouh1jPhjhhhjhMqubjp)}(h*(struct gpio_desc *desc, const char *name)h](jv)}(hstruct gpio_desc *desch](j.)}(hj1h]hstruct}(hjhhhNhNubah}(h]h ]j:ah"]h$]h&]uh1j-hjubj@)}(h h]h }(hjhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjubh)}(hhh]jW)}(h gpio_desch]h gpio_desc}(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjubah}(h]h ]h"]h$]h&] refdomainjreftypej+ reftargetjmodnameN classnameNjj)}j]j3)}j+jʅsbc.gpiod_set_consumer_nameasbuh1hhjubj@)}(h h]h }(hj"hhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjubjH)}(hjKh]h*}(hj0hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjubjW)}(hdesch]hdesc}(hj=hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjubeh}(h]h ]h"]h$]h&]noemphjnjouh1juhj܅ubjv)}(hconst char *nameh](j.)}(hj{#h]hconst}(hjVhhhNhNubah}(h]h ]j:ah"]h$]h&]uh1j-hjRubj@)}(h h]h }(hjchhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjRubj|)}(hcharh]hchar}(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1j{hjRubj@)}(h h]h }(hjhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjRubjH)}(hjKh]h*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjRubjW)}(hnameh]hname}(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjRubeh}(h]h ]h"]h$]h&]noemphjnjouh1juhj܅ubeh}(h]h ]h"]h$]h&]jnjouh1johjhhhjhMqubeh}(h]h ]h"]h$]h&]jnjojvuh1j'jwjxhjhhhjhMqubah}(h]jah ](j|j}eh"]h$]h&]jj)jhuh1j!hjhMqhjhhubj)}(hhh]h)}(h(set the consumer name for the descriptorh]h(set the consumer name for the descriptor}(hjĆhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMqhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMqubeh}(h]h ](jfunctioneh"]h$]h&]jjjj܆jj܆jjjuh1jhhhhhNhNubj)}(h**Parameters** ``struct gpio_desc *desc`` gpio to set the consumer name on ``const char *name`` the new consumer name **Return** 0 on success, or negative errno on failure.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMuhjubj)}(hhh](j)}(h<``struct gpio_desc *desc`` gpio to set the consumer name on h](j)}(h``struct gpio_desc *desc``h]j )}(hjh]hstruct gpio_desc *desc}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMrhjubj")}(hhh]h)}(h gpio to set the consumer name onh]h gpio to set the consumer name on}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMrhjubah}(h]h ]h"]h$]h&]uh1j!hjubeh}(h]h ]h"]h$]h&]uh1jhjhMrhjubj)}(h+``const char *name`` the new consumer name h](j)}(h``const char *name``h]j )}(hj>h]hconst char *name}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1j hj<ubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMshj8ubj")}(hhh]h)}(hthe new consumer nameh]hthe new consumer name}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjShMshjTubah}(h]h ]h"]h$]h&]uh1j!hj8ubeh}(h]h ]h"]h$]h&]uh1jhjShMshjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h **Return**h]j)}(hjyh]hReturn}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjwubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMuhjubh)}(h+0 on success, or negative errno on failure.h]h+0 on success, or negative errno on failure.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMuhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubj )}(hhh]h}(h]h ]h"]h$]h&]entries](jgpiod_to_irq (C function)c.gpiod_to_irqhNtauh1j hhhhhNhNubj)}(hhh](j")}(h/int gpiod_to_irq (const struct gpio_desc *desc)h]j()}(h.int gpiod_to_irq(const struct gpio_desc *desc)h](j|)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j{hjhhh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMubj@)}(h h]h }(hj͇hhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjhhhj̇hMubjQ)}(h gpiod_to_irqh]jW)}(h gpiod_to_irqh]h gpiod_to_irq}(hj߇hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjۇubah}(h]h ](jijjeh"]h$]h&]jnjouh1jPhjhhhj̇hMubjp)}(h(const struct gpio_desc *desc)h]jv)}(hconst struct gpio_desc *desch](j.)}(hj{#h]hconst}(hjhhhNhNubah}(h]h ]j:ah"]h$]h&]uh1j-hjubj@)}(h h]h }(hjhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjubj.)}(hj1h]hstruct}(hjhhhNhNubah}(h]h ]j:ah"]h$]h&]uh1j-hjubj@)}(h h]h }(hj#hhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjubh)}(hhh]jW)}(h gpio_desch]h gpio_desc}(hj4hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhj1ubah}(h]h ]h"]h$]h&] refdomainjreftypej+ reftargetj6modnameN classnameNjj)}j]j3)}j+jsbc.gpiod_to_irqasbuh1hhjubj@)}(h h]h }(hjThhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjubjH)}(hjKh]h*}(hjbhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjubjW)}(hdesch]hdesc}(hjohhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjubeh}(h]h ]h"]h$]h&]noemphjnjouh1juhjubah}(h]h ]h"]h$]h&]jnjouh1johjhhhj̇hMubeh}(h]h ]h"]h$]h&]jnjojvuh1j'jwjxhjhhhj̇hMubah}(h]jah ](j|j}eh"]h$]h&]jj)jhuh1j!hj̇hMhjhhubj)}(hhh]h)}(h&return the IRQ corresponding to a GPIOh]h&return the IRQ corresponding to a GPIO}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhj̇hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhhhNhNubj)}(h**Parameters** ``const struct gpio_desc *desc`` gpio whose IRQ will be returned (already requested) **Return** The IRQ corresponding to the passed GPIO, or an error code in case of error.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMhjubj)}(hhh]j)}(hU``const struct gpio_desc *desc`` gpio whose IRQ will be returned (already requested) h](j)}(h ``const struct gpio_desc *desc``h]j )}(hjڈh]hconst struct gpio_desc *desc}(hj܈hhhNhNubah}(h]h ]h"]h$]h&]uh1j hj؈ubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMhjԈubj")}(hhh]h)}(h3gpio whose IRQ will be returned (already requested)h]h3gpio whose IRQ will be returned (already requested)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j!hjԈubeh}(h]h ]h"]h$]h&]uh1jhjhMhjшubah}(h]h ]h"]h$]h&]uh1jhjubh)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMhjubh)}(hLThe IRQ corresponding to the passed GPIO, or an error code in case of error.h]hLThe IRQ corresponding to the passed GPIO, or an error code in case of error.}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubj )}(hhh]h}(h]h ]h"]h$]h&]entries](j!gpiochip_lock_as_irq (C function)c.gpiochip_lock_as_irqhNtauh1j hhhhhNhNubj)}(hhh](j")}(hDint gpiochip_lock_as_irq (struct gpio_chip *gc, unsigned int offset)h]j()}(hCint gpiochip_lock_as_irq(struct gpio_chip *gc, unsigned int offset)h](j|)}(hinth]hint}(hjZhhhNhNubah}(h]h ]jah"]h$]h&]uh1j{hjVhhh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMubj@)}(h h]h }(hjihhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjVhhhjhhMubjQ)}(hgpiochip_lock_as_irqh]jW)}(hgpiochip_lock_as_irqh]hgpiochip_lock_as_irq}(hj{hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjwubah}(h]h ](jijjeh"]h$]h&]jnjouh1jPhjVhhhjhhMubjp)}(h+(struct gpio_chip *gc, unsigned int offset)h](jv)}(hstruct gpio_chip *gch](j.)}(hj1h]hstruct}(hjhhhNhNubah}(h]h ]j:ah"]h$]h&]uh1j-hjubj@)}(h h]h }(hjhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjubh)}(hhh]jW)}(h gpio_chiph]h gpio_chip}(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjubah}(h]h ]h"]h$]h&] refdomainjreftypej+ reftargetjmodnameN classnameNjj)}j]j3)}j+j}sbc.gpiochip_lock_as_irqasbuh1hhjubj@)}(h h]h }(hjՉhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjubjH)}(hjKh]h*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjubjW)}(hgch]hgc}(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjubeh}(h]h ]h"]h$]h&]noemphjnjouh1juhjubjv)}(hunsigned int offseth](j|)}(hunsignedh]hunsigned}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1j{hjubj@)}(h h]h }(hjhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjubj|)}(hinth]hint}(hj%hhhNhNubah}(h]h ]jah"]h$]h&]uh1j{hjubj@)}(h h]h }(hj3hhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjubjW)}(hoffseth]hoffset}(hjAhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjubeh}(h]h ]h"]h$]h&]noemphjnjouh1juhjubeh}(h]h ]h"]h$]h&]jnjouh1johjVhhhjhhMubeh}(h]h ]h"]h$]h&]jnjojvuh1j'jwjxhjRhhhjhhMubah}(h]jMah ](j|j}eh"]h$]h&]jj)jhuh1j!hjhhMhjOhhubj)}(hhh]h)}(hlock a GPIO to be used as IRQh]hlock a GPIO to be used as IRQ}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMhjhhhubah}(h]h ]h"]h$]h&]uh1jhjOhhhjhhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhhhNhNubj)}(hXA**Parameters** ``struct gpio_chip *gc`` the chip the GPIO to lock belongs to ``unsigned int offset`` the offset of the GPIO to lock as IRQ **Description** This is used directly by GPIO drivers that want to lock down a certain GPIO line to be used for IRQs. **Return** 0 on success, or negative errno on failure.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMhjubj)}(hhh](j)}(h>``struct gpio_chip *gc`` the chip the GPIO to lock belongs to h](j)}(h``struct gpio_chip *gc``h]j )}(hjh]hstruct gpio_chip *gc}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMhjubj")}(hhh]h)}(h$the chip the GPIO to lock belongs toh]h$the chip the GPIO to lock belongs to}(hjŊhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjŠubah}(h]h ]h"]h$]h&]uh1j!hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h>``unsigned int offset`` the offset of the GPIO to lock as IRQ h](j)}(h``unsigned int offset``h]j )}(hjh]hunsigned int offset}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMhjߊubj")}(hhh]h)}(h%the offset of the GPIO to lock as IRQh]h%the offset of the GPIO to lock as IRQ}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j!hjߊubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hj h]h Description}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMhjubh)}(heThis is used directly by GPIO drivers that want to lock down a certain GPIO line to be used for IRQs.h]heThis is used directly by GPIO drivers that want to lock down a certain GPIO line to be used for IRQs.}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMhjubh)}(h **Return**h]j)}(hjGh]hReturn}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjEubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMhjubh)}(h+0 on success, or negative errno on failure.h]h+0 on success, or negative errno on failure.}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubj )}(hhh]h}(h]h ]h"]h$]h&]entries](j#gpiochip_unlock_as_irq (C function)c.gpiochip_unlock_as_irqhNtauh1j hhhhhNhNubj)}(hhh](j")}(hGvoid gpiochip_unlock_as_irq (struct gpio_chip *gc, unsigned int offset)h]j()}(hFvoid gpiochip_unlock_as_irq(struct gpio_chip *gc, unsigned int offset)h](j|)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j{hjhhh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMubj@)}(h h]h }(hjhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjhhhjhMubjQ)}(hgpiochip_unlock_as_irqh]jW)}(hgpiochip_unlock_as_irqh]hgpiochip_unlock_as_irq}(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjubah}(h]h ](jijjeh"]h$]h&]jnjouh1jPhjhhhjhMubjp)}(h+(struct gpio_chip *gc, unsigned int offset)h](jv)}(hstruct gpio_chip *gch](j.)}(hj1h]hstruct}(hjɋhhhNhNubah}(h]h ]j:ah"]h$]h&]uh1j-hjŋubj@)}(h h]h }(hj֋hhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjŋubh)}(hhh]jW)}(h gpio_chiph]h gpio_chip}(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjubah}(h]h ]h"]h$]h&] refdomainjreftypej+ reftargetjmodnameN classnameNjj)}j]j3)}j+jsbc.gpiochip_unlock_as_irqasbuh1hhjŋubj@)}(h h]h }(hjhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjŋubjH)}(hjKh]h*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjŋubjW)}(hgch]hgc}(hj"hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjŋubeh}(h]h ]h"]h$]h&]noemphjnjouh1juhjubjv)}(hunsigned int offseth](j|)}(hunsignedh]hunsigned}(hj;hhhNhNubah}(h]h ]jah"]h$]h&]uh1j{hj7ubj@)}(h h]h }(hjIhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hj7ubj|)}(hinth]hint}(hjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1j{hj7ubj@)}(h h]h }(hjehhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hj7ubjW)}(hoffseth]hoffset}(hjshhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhj7ubeh}(h]h ]h"]h$]h&]noemphjnjouh1juhjubeh}(h]h ]h"]h$]h&]jnjouh1johjhhhjhMubeh}(h]h ]h"]h$]h&]jnjojvuh1j'jwjxhjhhhjhMubah}(h]jah ](j|j}eh"]h$]h&]jj)jhuh1j!hjhMhjhhubj)}(hhh]h)}(hunlock a GPIO used as IRQh]hunlock a GPIO used as IRQ}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhhhNhNubj)}(hX**Parameters** ``struct gpio_chip *gc`` the chip the GPIO to lock belongs to ``unsigned int offset`` the offset of the GPIO to lock as IRQ **Description** This is used directly by GPIO drivers that want to indicate that a certain GPIO is no longer used exclusively for IRQ.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMhjubj)}(hhh](j)}(h>``struct gpio_chip *gc`` the chip the GPIO to lock belongs to h](j)}(h``struct gpio_chip *gc``h]j )}(hjތh]hstruct gpio_chip *gc}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j hj܌ubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMhj،ubj")}(hhh]h)}(h$the chip the GPIO to lock belongs toh]h$the chip the GPIO to lock belongs to}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j!hj،ubeh}(h]h ]h"]h$]h&]uh1jhjhMhjՌubj)}(h>``unsigned int offset`` the offset of the GPIO to lock as IRQ h](j)}(h``unsigned int offset``h]j )}(hjh]hunsigned int offset}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMhjubj")}(hhh]h)}(h%the offset of the GPIO to lock as IRQh]h%the offset of the GPIO to lock as IRQ}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj,hMhj-ubah}(h]h ]h"]h$]h&]uh1j!hjubeh}(h]h ]h"]h$]h&]uh1jhj,hMhjՌubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjRh]h Description}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1jhjPubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMhjubh)}(hvThis is used directly by GPIO drivers that want to indicate that a certain GPIO is no longer used exclusively for IRQ.h]hvThis is used directly by GPIO drivers that want to indicate that a certain GPIO is no longer used exclusively for IRQ.}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubj )}(hhh]h}(h]h ]h"]h$]h&]entries](j)gpiod_get_raw_value_cansleep (C function)c.gpiod_get_raw_value_cansleephNtauh1j hhhhhNhNubj)}(hhh](j")}(h?int gpiod_get_raw_value_cansleep (const struct gpio_desc *desc)h]j()}(h>int gpiod_get_raw_value_cansleep(const struct gpio_desc *desc)h](j|)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j{hjhhh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMTubj@)}(h h]h }(hjhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjhhhjhMTubjQ)}(hgpiod_get_raw_value_cansleeph]jW)}(hgpiod_get_raw_value_cansleeph]hgpiod_get_raw_value_cansleep}(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjubah}(h]h ](jijjeh"]h$]h&]jnjouh1jPhjhhhjhMTubjp)}(h(const struct gpio_desc *desc)h]jv)}(hconst struct gpio_desc *desch](j.)}(hj{#h]hconst}(hjԍhhhNhNubah}(h]h ]j:ah"]h$]h&]uh1j-hjЍubj@)}(h h]h }(hjhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjЍubj.)}(hj1h]hstruct}(hjhhhNhNubah}(h]h ]j:ah"]h$]h&]uh1j-hjЍubj@)}(h h]h }(hjhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjЍubh)}(hhh]jW)}(h gpio_desch]h gpio_desc}(hj hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhj ubah}(h]h ]h"]h$]h&] refdomainjreftypej+ reftargetjmodnameN classnameNjj)}j]j3)}j+jsbc.gpiod_get_raw_value_cansleepasbuh1hhjЍubj@)}(h h]h }(hj-hhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjЍubjH)}(hjKh]h*}(hj;hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjЍubjW)}(hdesch]hdesc}(hjHhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjЍubeh}(h]h ]h"]h$]h&]noemphjnjouh1juhj̍ubah}(h]h ]h"]h$]h&]jnjouh1johjhhhjhMTubeh}(h]h ]h"]h$]h&]jnjojvuh1j'jwjxhjhhhjhMTubah}(h]jah ](j|j}eh"]h$]h&]jj)jhuh1j!hjhMThjhhubj)}(hhh]h)}(hreturn a gpio's raw valueh]hreturn a gpio’s raw value}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMThjohhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMTubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhhhNhNubj)}(hX+**Parameters** ``const struct gpio_desc *desc`` gpio whose value will be returned **Return** The GPIO's raw value, i.e. the value of the physical line disregarding its ACTIVE_LOW status, or negative errno on failure. **Description** This function is to be called from contexts that can sleep.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMXhjubj)}(hhh]j)}(hC``const struct gpio_desc *desc`` gpio whose value will be returned h](j)}(h ``const struct gpio_desc *desc``h]j )}(hjh]hconst struct gpio_desc *desc}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMUhjubj")}(hhh]h)}(h!gpio whose value will be returnedh]h!gpio whose value will be returned}(hj̎hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjȎhMUhjɎubah}(h]h ]h"]h$]h&]uh1j!hjubeh}(h]h ]h"]h$]h&]uh1jhjȎhMUhjubah}(h]h ]h"]h$]h&]uh1jhjubh)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMWhjubh)}(h{The GPIO's raw value, i.e. the value of the physical line disregarding its ACTIVE_LOW status, or negative errno on failure.h]h}The GPIO’s raw value, i.e. the value of the physical line disregarding its ACTIVE_LOW status, or negative errno on failure.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMWhjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMZhjubh)}(h;This function is to be called from contexts that can sleep.h]h;This function is to be called from contexts that can sleep.}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chM[hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubj )}(hhh]h}(h]h ]h"]h$]h&]entries](j%gpiod_get_value_cansleep (C function)c.gpiod_get_value_cansleephNtauh1j hhhhhNhNubj)}(hhh](j")}(h;int gpiod_get_value_cansleep (const struct gpio_desc *desc)h]j()}(h:int gpiod_get_value_cansleep(const struct gpio_desc *desc)h](j|)}(hinth]hint}(hjZhhhNhNubah}(h]h ]jah"]h$]h&]uh1j{hjVhhh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMfubj@)}(h h]h }(hjihhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjVhhhjhhMfubjQ)}(hgpiod_get_value_cansleeph]jW)}(hgpiod_get_value_cansleeph]hgpiod_get_value_cansleep}(hj{hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjwubah}(h]h ](jijjeh"]h$]h&]jnjouh1jPhjVhhhjhhMfubjp)}(h(const struct gpio_desc *desc)h]jv)}(hconst struct gpio_desc *desch](j.)}(hj{#h]hconst}(hjhhhNhNubah}(h]h ]j:ah"]h$]h&]uh1j-hjubj@)}(h h]h }(hjhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjubj.)}(hj1h]hstruct}(hjhhhNhNubah}(h]h ]j:ah"]h$]h&]uh1j-hjubj@)}(h h]h }(hjhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjubh)}(hhh]jW)}(h gpio_desch]h gpio_desc}(hjЏhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhj͏ubah}(h]h ]h"]h$]h&] refdomainjreftypej+ reftargetjҏmodnameN classnameNjj)}j]j3)}j+j}sbc.gpiod_get_value_cansleepasbuh1hhjubj@)}(h h]h }(hjhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjubjH)}(hjKh]h*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjubjW)}(hdesch]hdesc}(hj hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjubeh}(h]h ]h"]h$]h&]noemphjnjouh1juhjubah}(h]h ]h"]h$]h&]jnjouh1johjVhhhjhhMfubeh}(h]h ]h"]h$]h&]jnjojvuh1j'jwjxhjRhhhjhhMfubah}(h]jMah ](j|j}eh"]h$]h&]jj)jhuh1j!hjhhMfhjOhhubj)}(hhh]h)}(hreturn a gpio's valueh]hreturn a gpio’s value}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMfhj2hhubah}(h]h ]h"]h$]h&]uh1jhjOhhhjhhMfubeh}(h]h ](jfunctioneh"]h$]h&]jjjjMjjMjjjuh1jhhhhhNhNubj)}(hX**Parameters** ``const struct gpio_desc *desc`` gpio whose value will be returned **Return** The GPIO's logical value, i.e. taking the ACTIVE_LOW status into account, or negative errno on failure. **Description** This function is to be called from contexts that can sleep.h](h)}(h**Parameters**h]j)}(hjWh]h Parameters}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjUubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMjhjQubj)}(hhh]j)}(hC``const struct gpio_desc *desc`` gpio whose value will be returned h](j)}(h ``const struct gpio_desc *desc``h]j )}(hjvh]hconst struct gpio_desc *desc}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjtubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMghjpubj")}(hhh]h)}(h!gpio whose value will be returnedh]h!gpio whose value will be returned}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMghjubah}(h]h ]h"]h$]h&]uh1j!hjpubeh}(h]h ]h"]h$]h&]uh1jhjhMghjmubah}(h]h ]h"]h$]h&]uh1jhjQubh)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMihjQubh)}(hgThe GPIO's logical value, i.e. taking the ACTIVE_LOW status into account, or negative errno on failure.h]hiThe GPIO’s logical value, i.e. taking the ACTIVE_LOW status into account, or negative errno on failure.}(hjǐhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMihjQubh)}(h**Description**h]j)}(hjؐh]h Description}(hjڐhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj֐ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMlhjQubh)}(h;This function is to be called from contexts that can sleep.h]h;This function is to be called from contexts that can sleep.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMmhjQubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubj )}(hhh]h}(h]h ]h"]h$]h&]entries](j/gpiod_get_raw_array_value_cansleep (C function)$c.gpiod_get_raw_array_value_cansleephNtauh1j hhhhhNhNubj)}(hhh](j")}(hint gpiod_get_raw_array_value_cansleep (unsigned int array_size, struct gpio_desc **desc_array, struct gpio_array *array_info, unsigned long *value_bitmap)h]j()}(hint gpiod_get_raw_array_value_cansleep(unsigned int array_size, struct gpio_desc **desc_array, struct gpio_array *array_info, unsigned long *value_bitmap)h](j|)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j{hjhhh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMubj@)}(h h]h }(hj,hhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjhhhj+hMubjQ)}(h"gpiod_get_raw_array_value_cansleeph]jW)}(h"gpiod_get_raw_array_value_cansleeph]h"gpiod_get_raw_array_value_cansleep}(hj>hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhj:ubah}(h]h ](jijjeh"]h$]h&]jnjouh1jPhjhhhj+hMubjp)}(ht(unsigned int array_size, struct gpio_desc **desc_array, struct gpio_array *array_info, unsigned long *value_bitmap)h](jv)}(hunsigned int array_sizeh](j|)}(hunsignedh]hunsigned}(hjZhhhNhNubah}(h]h ]jah"]h$]h&]uh1j{hjVubj@)}(h h]h }(hjhhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjVubj|)}(hinth]hint}(hjvhhhNhNubah}(h]h ]jah"]h$]h&]uh1j{hjVubj@)}(h h]h }(hjhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjVubjW)}(h array_sizeh]h array_size}(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjVubeh}(h]h ]h"]h$]h&]noemphjnjouh1juhjRubjv)}(hstruct gpio_desc **desc_arrayh](j.)}(hj1h]hstruct}(hjhhhNhNubah}(h]h ]j:ah"]h$]h&]uh1j-hjubj@)}(h h]h }(hjhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjubh)}(hhh]jW)}(h gpio_desch]h gpio_desc}(hjɑhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjƑubah}(h]h ]h"]h$]h&] refdomainjreftypej+ reftargetjˑmodnameN classnameNjj)}j]j3)}j+j@sb$c.gpiod_get_raw_array_value_cansleepasbuh1hhjubj@)}(h h]h }(hjhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjubjH)}(hjKh]h*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjubjH)}(hjKh]h*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjubjW)}(h desc_arrayh]h desc_array}(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjubeh}(h]h ]h"]h$]h&]noemphjnjouh1juhjRubjv)}(hstruct gpio_array *array_infoh](j.)}(hj1h]hstruct}(hj*hhhNhNubah}(h]h ]j:ah"]h$]h&]uh1j-hj&ubj@)}(h h]h }(hj7hhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hj&ubh)}(hhh]jW)}(h gpio_arrayh]h gpio_array}(hjHhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjEubah}(h]h ]h"]h$]h&] refdomainjreftypej+ reftargetjJmodnameN classnameNjj)}j]j$c.gpiod_get_raw_array_value_cansleepasbuh1hhj&ubj@)}(h h]h }(hjfhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hj&ubjH)}(hjKh]h*}(hjthhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj&ubjW)}(h array_infoh]h array_info}(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhj&ubeh}(h]h ]h"]h$]h&]noemphjnjouh1juhjRubjv)}(hunsigned long *value_bitmaph](j|)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j{hjubj@)}(h h]h }(hjhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjubj|)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j{hjubj@)}(h h]h }(hjĒhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjubjH)}(hjKh]h*}(hjҒhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjubjW)}(h value_bitmaph]h value_bitmap}(hjߒhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjubeh}(h]h ]h"]h$]h&]noemphjnjouh1juhjRubeh}(h]h ]h"]h$]h&]jnjouh1johjhhhj+hMubeh}(h]h ]h"]h$]h&]jnjojvuh1j'jwjxhjhhhj+hMubah}(h]jah ](j|j}eh"]h$]h&]jj)jhuh1j!hj+hMhjhhubj)}(hhh]h)}(h&read raw values from an array of GPIOsh]h&read raw values from an array of GPIOs}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhj+hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj!jj!jjjuh1jhhhhhNhNubj)}(hX`**Parameters** ``unsigned int array_size`` number of elements in the descriptor array / value bitmap ``struct gpio_desc **desc_array`` array of GPIO descriptors whose values will be read ``struct gpio_array *array_info`` information on applicability of fast bitmap processing path ``unsigned long *value_bitmap`` bitmap to store the read values **Description** Read the raw values of the GPIOs, i.e. the values of the physical lines without regard for their ACTIVE_LOW status. This function is to be called from contexts that can sleep. **Return** 0 on success, or negative errno on failure.h](h)}(h**Parameters**h]j)}(hj+h]h Parameters}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj)ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMhj%ubj)}(hhh](j)}(hV``unsigned int array_size`` number of elements in the descriptor array / value bitmap h](j)}(h``unsigned int array_size``h]j )}(hjJh]hunsigned int array_size}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjHubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMhjDubj")}(hhh]h)}(h9number of elements in the descriptor array / value bitmaph]h9number of elements in the descriptor array / value bitmap}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1hhj_hMhj`ubah}(h]h ]h"]h$]h&]uh1j!hjDubeh}(h]h ]h"]h$]h&]uh1jhj_hMhjAubj)}(hV``struct gpio_desc **desc_array`` array of GPIO descriptors whose values will be read h](j)}(h!``struct gpio_desc **desc_array``h]j )}(hjh]hstruct gpio_desc **desc_array}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMhj}ubj")}(hhh]h)}(h3array of GPIO descriptors whose values will be readh]h3array of GPIO descriptors whose values will be read}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j!hj}ubeh}(h]h ]h"]h$]h&]uh1jhjhMhjAubj)}(h^``struct gpio_array *array_info`` information on applicability of fast bitmap processing path h](j)}(h!``struct gpio_array *array_info``h]j )}(hjh]hstruct gpio_array *array_info}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMhjubj")}(hhh]h)}(h;information on applicability of fast bitmap processing pathh]h;information on applicability of fast bitmap processing path}(hjՓhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjѓhMhjғubah}(h]h ]h"]h$]h&]uh1j!hjubeh}(h]h ]h"]h$]h&]uh1jhjѓhMhjAubj)}(h@``unsigned long *value_bitmap`` bitmap to store the read values h](j)}(h``unsigned long *value_bitmap``h]j )}(hjh]hunsigned long *value_bitmap}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMhjubj")}(hhh]h)}(hbitmap to store the read valuesh]hbitmap to store the read values}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hMhj ubah}(h]h ]h"]h$]h&]uh1j!hjubeh}(h]h ]h"]h$]h&]uh1jhj hMhjAubeh}(h]h ]h"]h$]h&]uh1jhj%ubh)}(h**Description**h]j)}(hj0h]h Description}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj.ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMhj%ubh)}(hsRead the raw values of the GPIOs, i.e. the values of the physical lines without regard for their ACTIVE_LOW status.h]hsRead the raw values of the GPIOs, i.e. the values of the physical lines without regard for their ACTIVE_LOW status.}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMhj%ubh)}(h;This function is to be called from contexts that can sleep.h]h;This function is to be called from contexts that can sleep.}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMhj%ubh)}(h **Return**h]j)}(hjfh]hReturn}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjdubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMhj%ubh)}(h+0 on success, or negative errno on failure.h]h+0 on success, or negative errno on failure.}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMhj%ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubj )}(hhh]h}(h]h ]h"]h$]h&]entries](j+gpiod_get_array_value_cansleep (C function) c.gpiod_get_array_value_cansleephNtauh1j hhhhhNhNubj)}(hhh](j")}(hint gpiod_get_array_value_cansleep (unsigned int array_size, struct gpio_desc **desc_array, struct gpio_array *array_info, unsigned long *value_bitmap)h]j()}(hint gpiod_get_array_value_cansleep(unsigned int array_size, struct gpio_desc **desc_array, struct gpio_array *array_info, unsigned long *value_bitmap)h](j|)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j{hjhhh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMubj@)}(h h]h }(hjhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjhhhjhMubjQ)}(hgpiod_get_array_value_cansleeph]jW)}(hgpiod_get_array_value_cansleeph]hgpiod_get_array_value_cansleep}(hj̔hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjȔubah}(h]h ](jijjeh"]h$]h&]jnjouh1jPhjhhhjhMubjp)}(ht(unsigned int array_size, struct gpio_desc **desc_array, struct gpio_array *array_info, unsigned long *value_bitmap)h](jv)}(hunsigned int array_sizeh](j|)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j{hjubj@)}(h h]h }(hjhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjubj|)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j{hjubj@)}(h h]h }(hjhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjubjW)}(h array_sizeh]h array_size}(hj hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjubeh}(h]h ]h"]h$]h&]noemphjnjouh1juhjubjv)}(hstruct gpio_desc **desc_arrayh](j.)}(hj1h]hstruct}(hj9hhhNhNubah}(h]h ]j:ah"]h$]h&]uh1j-hj5ubj@)}(h h]h }(hjFhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hj5ubh)}(hhh]jW)}(h gpio_desch]h gpio_desc}(hjWhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjTubah}(h]h ]h"]h$]h&] refdomainjreftypej+ reftargetjYmodnameN classnameNjj)}j]j3)}j+jΔsb c.gpiod_get_array_value_cansleepasbuh1hhj5ubj@)}(h h]h }(hjwhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hj5ubjH)}(hjKh]h*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj5ubjH)}(hjKh]h*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj5ubjW)}(h desc_arrayh]h desc_array}(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhj5ubeh}(h]h ]h"]h$]h&]noemphjnjouh1juhjubjv)}(hstruct gpio_array *array_infoh](j.)}(hj1h]hstruct}(hjhhhNhNubah}(h]h ]j:ah"]h$]h&]uh1j-hjubj@)}(h h]h }(hjŕhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjubh)}(hhh]jW)}(h gpio_arrayh]h gpio_array}(hj֕hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjӕubah}(h]h ]h"]h$]h&] refdomainjreftypej+ reftargetjؕmodnameN classnameNjj)}j]js c.gpiod_get_array_value_cansleepasbuh1hhjubj@)}(h h]h }(hjhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjubjH)}(hjKh]h*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjubjW)}(h array_infoh]h array_info}(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjubeh}(h]h ]h"]h$]h&]noemphjnjouh1juhjubjv)}(hunsigned long *value_bitmaph](j|)}(hunsignedh]hunsigned}(hj(hhhNhNubah}(h]h ]jah"]h$]h&]uh1j{hj$ubj@)}(h h]h }(hj6hhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hj$ubj|)}(hlongh]hlong}(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1j{hj$ubj@)}(h h]h }(hjRhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hj$ubjH)}(hjKh]h*}(hj`hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj$ubjW)}(h value_bitmaph]h value_bitmap}(hjmhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhj$ubeh}(h]h ]h"]h$]h&]noemphjnjouh1juhjubeh}(h]h ]h"]h$]h&]jnjouh1johjhhhjhMubeh}(h]h ]h"]h$]h&]jnjojvuh1j'jwjxhjhhhjhMubah}(h]jah ](j|j}eh"]h$]h&]jj)jhuh1j!hjhMhjhhubj)}(hhh]h)}(h"read values from an array of GPIOsh]h"read values from an array of GPIOs}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhhhNhNubj)}(hXD**Parameters** ``unsigned int array_size`` number of elements in the descriptor array / value bitmap ``struct gpio_desc **desc_array`` array of GPIO descriptors whose values will be read ``struct gpio_array *array_info`` information on applicability of fast bitmap processing path ``unsigned long *value_bitmap`` bitmap to store the read values **Description** Read the logical values of the GPIOs, i.e. taking their ACTIVE_LOW status into account. This function is to be called from contexts that can sleep. **Return** 0 on success, or negative errno on failure.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMhjubj)}(hhh](j)}(hV``unsigned int array_size`` number of elements in the descriptor array / value bitmap h](j)}(h``unsigned int array_size``h]j )}(hjؖh]hunsigned int array_size}(hjږhhhNhNubah}(h]h ]h"]h$]h&]uh1j hj֖ubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMhjҖubj")}(hhh]h)}(h9number of elements in the descriptor array / value bitmaph]h9number of elements in the descriptor array / value bitmap}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j!hjҖubeh}(h]h ]h"]h$]h&]uh1jhjhMhjϖubj)}(hV``struct gpio_desc **desc_array`` array of GPIO descriptors whose values will be read h](j)}(h!``struct gpio_desc **desc_array``h]j )}(hjh]hstruct gpio_desc **desc_array}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMhj ubj")}(hhh]h)}(h3array of GPIO descriptors whose values will be readh]h3array of GPIO descriptors whose values will be read}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj&hMhj'ubah}(h]h ]h"]h$]h&]uh1j!hj ubeh}(h]h ]h"]h$]h&]uh1jhj&hMhjϖubj)}(h^``struct gpio_array *array_info`` information on applicability of fast bitmap processing path h](j)}(h!``struct gpio_array *array_info``h]j )}(hjJh]hstruct gpio_array *array_info}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjHubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMhjDubj")}(hhh]h)}(h;information on applicability of fast bitmap processing pathh]h;information on applicability of fast bitmap processing path}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1hhj_hMhj`ubah}(h]h ]h"]h$]h&]uh1j!hjDubeh}(h]h ]h"]h$]h&]uh1jhj_hMhjϖubj)}(h@``unsigned long *value_bitmap`` bitmap to store the read values h](j)}(h``unsigned long *value_bitmap``h]j )}(hjh]hunsigned long *value_bitmap}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMhj}ubj")}(hhh]h)}(hbitmap to store the read valuesh]hbitmap to store the read values}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j!hj}ubeh}(h]h ]h"]h$]h&]uh1jhjhMhjϖubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMhjubh)}(hWRead the logical values of the GPIOs, i.e. taking their ACTIVE_LOW status into account.h]hWRead the logical values of the GPIOs, i.e. taking their ACTIVE_LOW status into account.}(hjԗhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMhjubh)}(h;This function is to be called from contexts that can sleep.h]h;This function is to be called from contexts that can sleep.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMhjubh)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMhjubh)}(h+0 on success, or negative errno on failure.h]h+0 on success, or negative errno on failure.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubj )}(hhh]h}(h]h ]h"]h$]h&]entries](j)gpiod_set_raw_value_cansleep (C function)c.gpiod_set_raw_value_cansleephNtauh1j hhhhhNhNubj)}(hhh](j")}(hDint gpiod_set_raw_value_cansleep (struct gpio_desc *desc, int value)h]j()}(hCint gpiod_set_raw_value_cansleep(struct gpio_desc *desc, int value)h](j|)}(hinth]hint}(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1j{hj5hhh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMubj@)}(h h]h }(hjHhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hj5hhhjGhMubjQ)}(hgpiod_set_raw_value_cansleeph]jW)}(hgpiod_set_raw_value_cansleeph]hgpiod_set_raw_value_cansleep}(hjZhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjVubah}(h]h ](jijjeh"]h$]h&]jnjouh1jPhj5hhhjGhMubjp)}(h#(struct gpio_desc *desc, int value)h](jv)}(hstruct gpio_desc *desch](j.)}(hj1h]hstruct}(hjvhhhNhNubah}(h]h ]j:ah"]h$]h&]uh1j-hjrubj@)}(h h]h }(hjhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjrubh)}(hhh]jW)}(h gpio_desch]h gpio_desc}(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjubah}(h]h ]h"]h$]h&] refdomainjreftypej+ reftargetjmodnameN classnameNjj)}j]j3)}j+j\sbc.gpiod_set_raw_value_cansleepasbuh1hhjrubj@)}(h h]h }(hjhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjrubjH)}(hjKh]h*}(hj˜hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjrubjW)}(hdesch]hdesc}(hjϘhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjrubeh}(h]h ]h"]h$]h&]noemphjnjouh1juhjnubjv)}(h int valueh](j|)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j{hjubj@)}(h h]h }(hjhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjubjW)}(hvalueh]hvalue}(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjubeh}(h]h ]h"]h$]h&]noemphjnjouh1juhjnubeh}(h]h ]h"]h$]h&]jnjouh1johj5hhhjGhMubeh}(h]h ]h"]h$]h&]jnjojvuh1j'jwjxhj1hhhjGhMubah}(h]j,ah ](j|j}eh"]h$]h&]jj)jhuh1j!hjGhMhj.hhubj)}(hhh]h)}(hassign a gpio's raw valueh]hassign a gpio’s raw value}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMhj+hhubah}(h]h ]h"]h$]h&]uh1jhj.hhhjGhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjFjjFjjjuh1jhhhhhNhNubj)}(hXh**Parameters** ``struct gpio_desc *desc`` gpio whose value will be assigned ``int value`` value to assign **Description** Set the raw value of the GPIO, i.e. the value of its physical line without regard for its ACTIVE_LOW status. This function is to be called from contexts that can sleep. **Return** 0 on success, negative error number on failure.h](h)}(h**Parameters**h]j)}(hjPh]h Parameters}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMhjJubj)}(hhh](j)}(h=``struct gpio_desc *desc`` gpio whose value will be assigned h](j)}(h``struct gpio_desc *desc``h]j )}(hjoh]hstruct gpio_desc *desc}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjmubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMhjiubj")}(hhh]h)}(h!gpio whose value will be assignedh]h!gpio whose value will be assigned}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j!hjiubeh}(h]h ]h"]h$]h&]uh1jhjhMhjfubj)}(h``int value`` value to assign h](j)}(h ``int value``h]j )}(hjh]h int value}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMhjubj")}(hhh]h)}(hvalue to assignh]hvalue to assign}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j!hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjfubeh}(h]h ]h"]h$]h&]uh1jhjJubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMhjJubh)}(hlSet the raw value of the GPIO, i.e. the value of its physical line without regard for its ACTIVE_LOW status.h]hlSet the raw value of the GPIO, i.e. the value of its physical line without regard for its ACTIVE_LOW status.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMhjJubh)}(h;This function is to be called from contexts that can sleep.h]h;This function is to be called from contexts that can sleep.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMhjJubh)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMhjJubh)}(h/0 on success, negative error number on failure.h]h/0 on success, negative error number on failure.}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMhjJubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubj )}(hhh]h}(h]h ]h"]h$]h&]entries](j%gpiod_set_value_cansleep (C function)c.gpiod_set_value_cansleephNtauh1j hhhhhNhNubj)}(hhh](j")}(h@int gpiod_set_value_cansleep (struct gpio_desc *desc, int value)h]j()}(h?int gpiod_set_value_cansleep(struct gpio_desc *desc, int value)h](j|)}(hinth]hint}(hj^hhhNhNubah}(h]h ]jah"]h$]h&]uh1j{hjZhhh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMubj@)}(h h]h }(hjmhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjZhhhjlhMubjQ)}(hgpiod_set_value_cansleeph]jW)}(hgpiod_set_value_cansleeph]hgpiod_set_value_cansleep}(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhj{ubah}(h]h ](jijjeh"]h$]h&]jnjouh1jPhjZhhhjlhMubjp)}(h#(struct gpio_desc *desc, int value)h](jv)}(hstruct gpio_desc *desch](j.)}(hj1h]hstruct}(hjhhhNhNubah}(h]h ]j:ah"]h$]h&]uh1j-hjubj@)}(h h]h }(hjhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjubh)}(hhh]jW)}(h gpio_desch]h gpio_desc}(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjubah}(h]h ]h"]h$]h&] refdomainjreftypej+ reftargetjmodnameN classnameNjj)}j]j3)}j+jsbc.gpiod_set_value_cansleepasbuh1hhjubj@)}(h h]h }(hjٚhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjubjH)}(hjKh]h*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjubjW)}(hdesch]hdesc}(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjubeh}(h]h ]h"]h$]h&]noemphjnjouh1juhjubjv)}(h int valueh](j|)}(hinth]hint}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1j{hj ubj@)}(h h]h }(hjhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hj ubjW)}(hvalueh]hvalue}(hj)hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhj ubeh}(h]h ]h"]h$]h&]noemphjnjouh1juhjubeh}(h]h ]h"]h$]h&]jnjouh1johjZhhhjlhMubeh}(h]h ]h"]h$]h&]jnjojvuh1j'jwjxhjVhhhjlhMubah}(h]jQah ](j|j}eh"]h$]h&]jj)jhuh1j!hjlhMhjShhubj)}(hhh]h)}(hassign a gpio's valueh]hassign a gpio’s value}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMhjPhhubah}(h]h ]h"]h$]h&]uh1jhjShhhjlhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjkjjkjjjuh1jhhhhhNhNubj)}(hXM**Parameters** ``struct gpio_desc *desc`` gpio whose value will be assigned ``int value`` value to assign **Description** Set the logical value of the GPIO, i.e. taking its ACTIVE_LOW status into account This function is to be called from contexts that can sleep. **Return** 0 on success, negative error number on failure.h](h)}(h**Parameters**h]j)}(hjuh]h Parameters}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjsubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMhjoubj)}(hhh](j)}(h=``struct gpio_desc *desc`` gpio whose value will be assigned h](j)}(h``struct gpio_desc *desc``h]j )}(hjh]hstruct gpio_desc *desc}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMhjubj")}(hhh]h)}(h!gpio whose value will be assignedh]h!gpio whose value will be assigned}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j!hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h``int value`` value to assign h](j)}(h ``int value``h]j )}(hj͛h]h int value}(hjϛhhhNhNubah}(h]h ]h"]h$]h&]uh1j hj˛ubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMhjǛubj")}(hhh]h)}(hvalue to assignh]hvalue to assign}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j!hjǛubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubeh}(h]h ]h"]h$]h&]uh1jhjoubh)}(h**Description**h]j)}(hjh]h Description}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMhjoubh)}(hQSet the logical value of the GPIO, i.e. taking its ACTIVE_LOW status into accounth]hQSet the logical value of the GPIO, i.e. taking its ACTIVE_LOW status into account}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMhjoubh)}(h;This function is to be called from contexts that can sleep.h]h;This function is to be called from contexts that can sleep.}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMhjoubh)}(h **Return**h]j)}(hj>h]hReturn}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj<ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMhjoubh)}(h/0 on success, negative error number on failure.h]h/0 on success, negative error number on failure.}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMhjoubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubj )}(hhh]h}(h]h ]h"]h$]h&]entries](j/gpiod_set_raw_array_value_cansleep (C function)$c.gpiod_set_raw_array_value_cansleephNtauh1j hhhhhNhNubj)}(hhh](j")}(hint gpiod_set_raw_array_value_cansleep (unsigned int array_size, struct gpio_desc **desc_array, struct gpio_array *array_info, unsigned long *value_bitmap)h]j()}(hint gpiod_set_raw_array_value_cansleep(unsigned int array_size, struct gpio_desc **desc_array, struct gpio_array *array_info, unsigned long *value_bitmap)h](j|)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j{hjhhh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMubj@)}(h h]h }(hjhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjhhhjhMubjQ)}(h"gpiod_set_raw_array_value_cansleeph]jW)}(h"gpiod_set_raw_array_value_cansleeph]h"gpiod_set_raw_array_value_cansleep}(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjubah}(h]h ](jijjeh"]h$]h&]jnjouh1jPhjhhhjhMubjp)}(ht(unsigned int array_size, struct gpio_desc **desc_array, struct gpio_array *array_info, unsigned long *value_bitmap)h](jv)}(hunsigned int array_sizeh](j|)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j{hjubj@)}(h h]h }(hjΜhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjubj|)}(hinth]hint}(hjܜhhhNhNubah}(h]h ]jah"]h$]h&]uh1j{hjubj@)}(h h]h }(hjhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjubjW)}(h array_sizeh]h array_size}(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjubeh}(h]h ]h"]h$]h&]noemphjnjouh1juhjubjv)}(hstruct gpio_desc **desc_arrayh](j.)}(hj1h]hstruct}(hjhhhNhNubah}(h]h ]j:ah"]h$]h&]uh1j-hj ubj@)}(h h]h }(hjhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hj ubh)}(hhh]jW)}(h gpio_desch]h gpio_desc}(hj/hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhj,ubah}(h]h ]h"]h$]h&] refdomainjreftypej+ reftargetj1modnameN classnameNjj)}j]j3)}j+jsb$c.gpiod_set_raw_array_value_cansleepasbuh1hhj ubj@)}(h h]h }(hjOhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hj ubjH)}(hjKh]h*}(hj]hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj ubjH)}(hjKh]h*}(hjjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj ubjW)}(h desc_arrayh]h desc_array}(hjwhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhj ubeh}(h]h ]h"]h$]h&]noemphjnjouh1juhjubjv)}(hstruct gpio_array *array_infoh](j.)}(hj1h]hstruct}(hjhhhNhNubah}(h]h ]j:ah"]h$]h&]uh1j-hjubj@)}(h h]h }(hjhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjubh)}(hhh]jW)}(h gpio_arrayh]h gpio_array}(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjubah}(h]h ]h"]h$]h&] refdomainjreftypej+ reftargetjmodnameN classnameNjj)}j]jK$c.gpiod_set_raw_array_value_cansleepasbuh1hhjubj@)}(h h]h }(hj̝hhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjubjH)}(hjKh]h*}(hjڝhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjubjW)}(h array_infoh]h array_info}(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjubeh}(h]h ]h"]h$]h&]noemphjnjouh1juhjubjv)}(hunsigned long *value_bitmaph](j|)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j{hjubj@)}(h h]h }(hjhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjubj|)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j{hjubj@)}(h h]h }(hj*hhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjubjH)}(hjKh]h*}(hj8hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjubjW)}(h value_bitmaph]h value_bitmap}(hjEhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjubeh}(h]h ]h"]h$]h&]noemphjnjouh1juhjubeh}(h]h ]h"]h$]h&]jnjouh1johjhhhjhMubeh}(h]h ]h"]h$]h&]jnjojvuh1j'jwjxhj{hhhjhMubah}(h]jvah ](j|j}eh"]h$]h&]jj)jhuh1j!hjhMhjxhhubj)}(hhh]h)}(h"assign values to an array of GPIOsh]h"assign values to an array of GPIOs}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMhjlhhubah}(h]h ]h"]h$]h&]uh1jhjxhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhhhNhNubj)}(hX^**Parameters** ``unsigned int array_size`` number of elements in the descriptor array / value bitmap ``struct gpio_desc **desc_array`` array of GPIO descriptors whose values will be assigned ``struct gpio_array *array_info`` information on applicability of fast bitmap processing path ``unsigned long *value_bitmap`` bitmap of values to assign **Description** Set the raw values of the GPIOs, i.e. the values of the physical lines without regard for their ACTIVE_LOW status. This function is to be called from contexts that can sleep. **Return** 0 on success, or negative errno on failure.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMhjubj)}(hhh](j)}(hV``unsigned int array_size`` number of elements in the descriptor array / value bitmap h](j)}(h``unsigned int array_size``h]j )}(hjh]hunsigned int array_size}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMhjubj")}(hhh]h)}(h9number of elements in the descriptor array / value bitmaph]h9number of elements in the descriptor array / value bitmap}(hjɞhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjŞhMhjƞubah}(h]h ]h"]h$]h&]uh1j!hjubeh}(h]h ]h"]h$]h&]uh1jhjŞhMhjubj)}(hZ``struct gpio_desc **desc_array`` array of GPIO descriptors whose values will be assigned h](j)}(h!``struct gpio_desc **desc_array``h]j )}(hjh]hstruct gpio_desc **desc_array}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMhjubj")}(hhh]h)}(h7array of GPIO descriptors whose values will be assignedh]h7array of GPIO descriptors whose values will be assigned}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j!hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h^``struct gpio_array *array_info`` information on applicability of fast bitmap processing path h](j)}(h!``struct gpio_array *array_info``h]j )}(hj"h]hstruct gpio_array *array_info}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1j hj ubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMhjubj")}(hhh]h)}(h;information on applicability of fast bitmap processing pathh]h;information on applicability of fast bitmap processing path}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj7hMhj8ubah}(h]h ]h"]h$]h&]uh1j!hjubeh}(h]h ]h"]h$]h&]uh1jhj7hMhjubj)}(h;``unsigned long *value_bitmap`` bitmap of values to assign h](j)}(h``unsigned long *value_bitmap``h]j )}(hj[h]hunsigned long *value_bitmap}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1j hjYubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMhjUubj")}(hhh]h)}(hbitmap of values to assignh]hbitmap of values to assign}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1hhjphMhjqubah}(h]h ]h"]h$]h&]uh1j!hjUubeh}(h]h ]h"]h$]h&]uh1jhjphMhjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMhjubh)}(hrSet the raw values of the GPIOs, i.e. the values of the physical lines without regard for their ACTIVE_LOW status.h]hrSet the raw values of the GPIOs, i.e. the values of the physical lines without regard for their ACTIVE_LOW status.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMhjubh)}(h;This function is to be called from contexts that can sleep.h]h;This function is to be called from contexts that can sleep.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMhjubh)}(h **Return**h]j)}(hj̟h]hReturn}(hjΟhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjʟubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMhjubh)}(h+0 on success, or negative errno on failure.h]h+0 on success, or negative errno on failure.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubj )}(hhh]h}(h]h ]h"]h$]h&]entries](j+gpiod_set_array_value_cansleep (C function) c.gpiod_set_array_value_cansleephNtauh1j hhhhhNhNubj)}(hhh](j")}(hint gpiod_set_array_value_cansleep (unsigned int array_size, struct gpio_desc **desc_array, struct gpio_array *array_info, unsigned long *value_bitmap)h]j()}(hint gpiod_set_array_value_cansleep(unsigned int array_size, struct gpio_desc **desc_array, struct gpio_array *array_info, unsigned long *value_bitmap)h](j|)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j{hj hhh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMubj@)}(h h]h }(hj hhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hj hhhjhMubjQ)}(hgpiod_set_array_value_cansleeph]jW)}(hgpiod_set_array_value_cansleeph]hgpiod_set_array_value_cansleep}(hj2hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhj.ubah}(h]h ](jijjeh"]h$]h&]jnjouh1jPhj hhhjhMubjp)}(ht(unsigned int array_size, struct gpio_desc **desc_array, struct gpio_array *array_info, unsigned long *value_bitmap)h](jv)}(hunsigned int array_sizeh](j|)}(hunsignedh]hunsigned}(hjNhhhNhNubah}(h]h ]jah"]h$]h&]uh1j{hjJubj@)}(h h]h }(hj\hhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjJubj|)}(hinth]hint}(hjjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j{hjJubj@)}(h h]h }(hjxhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjJubjW)}(h array_sizeh]h array_size}(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjJubeh}(h]h ]h"]h$]h&]noemphjnjouh1juhjFubjv)}(hstruct gpio_desc **desc_arrayh](j.)}(hj1h]hstruct}(hjhhhNhNubah}(h]h ]j:ah"]h$]h&]uh1j-hjubj@)}(h h]h }(hjhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjubh)}(hhh]jW)}(h gpio_desch]h gpio_desc}(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjubah}(h]h ]h"]h$]h&] refdomainjreftypej+ reftargetjmodnameN classnameNjj)}j]j3)}j+j4sb c.gpiod_set_array_value_cansleepasbuh1hhjubj@)}(h h]h }(hjݠhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjubjH)}(hjKh]h*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjubjH)}(hjKh]h*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjubjW)}(h desc_arrayh]h desc_array}(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjubeh}(h]h ]h"]h$]h&]noemphjnjouh1juhjFubjv)}(hstruct gpio_array *array_infoh](j.)}(hj1h]hstruct}(hjhhhNhNubah}(h]h ]j:ah"]h$]h&]uh1j-hjubj@)}(h h]h }(hj+hhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjubh)}(hhh]jW)}(h gpio_arrayh]h gpio_array}(hj<hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhj9ubah}(h]h ]h"]h$]h&] refdomainjreftypej+ reftargetj>modnameN classnameNjj)}j]j٠ c.gpiod_set_array_value_cansleepasbuh1hhjubj@)}(h h]h }(hjZhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjubjH)}(hjKh]h*}(hjhhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjubjW)}(h array_infoh]h array_info}(hjuhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjubeh}(h]h ]h"]h$]h&]noemphjnjouh1juhjFubjv)}(hunsigned long *value_bitmaph](j|)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j{hjubj@)}(h h]h }(hjhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjubj|)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j{hjubj@)}(h h]h }(hjhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjubjH)}(hjKh]h*}(hjơhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjubjW)}(h value_bitmaph]h value_bitmap}(hjӡhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjubeh}(h]h ]h"]h$]h&]noemphjnjouh1juhjFubeh}(h]h ]h"]h$]h&]jnjouh1johj hhhjhMubeh}(h]h ]h"]h$]h&]jnjojvuh1j'jwjxhj hhhjhMubah}(h]jah ](j|j}eh"]h$]h&]jj)jhuh1j!hjhMhjhhubj)}(hhh]h)}(h"assign values to an array of GPIOsh]h"assign values to an array of GPIOs}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhhhNhNubj)}(hXB**Parameters** ``unsigned int array_size`` number of elements in the descriptor array / value bitmap ``struct gpio_desc **desc_array`` array of GPIO descriptors whose values will be assigned ``struct gpio_array *array_info`` information on applicability of fast bitmap processing path ``unsigned long *value_bitmap`` bitmap of values to assign **Description** Set the logical values of the GPIOs, i.e. taking their ACTIVE_LOW status into account. This function is to be called from contexts that can sleep. **Return** 0 on success, or negative errno on failure.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMhjubj)}(hhh](j)}(hV``unsigned int array_size`` number of elements in the descriptor array / value bitmap h](j)}(h``unsigned int array_size``h]j )}(hj>h]hunsigned int array_size}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1j hj<ubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMhj8ubj")}(hhh]h)}(h9number of elements in the descriptor array / value bitmaph]h9number of elements in the descriptor array / value bitmap}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjShMhjTubah}(h]h ]h"]h$]h&]uh1j!hj8ubeh}(h]h ]h"]h$]h&]uh1jhjShMhj5ubj)}(hZ``struct gpio_desc **desc_array`` array of GPIO descriptors whose values will be assigned h](j)}(h!``struct gpio_desc **desc_array``h]j )}(hjwh]hstruct gpio_desc **desc_array}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjuubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMhjqubj")}(hhh]h)}(h7array of GPIO descriptors whose values will be assignedh]h7array of GPIO descriptors whose values will be assigned}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j!hjqubeh}(h]h ]h"]h$]h&]uh1jhjhMhj5ubj)}(h^``struct gpio_array *array_info`` information on applicability of fast bitmap processing path h](j)}(h!``struct gpio_array *array_info``h]j )}(hjh]hstruct gpio_array *array_info}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMhjubj")}(hhh]h)}(h;information on applicability of fast bitmap processing pathh]h;information on applicability of fast bitmap processing path}(hjɢhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjŢhMhjƢubah}(h]h ]h"]h$]h&]uh1j!hjubeh}(h]h ]h"]h$]h&]uh1jhjŢhMhj5ubj)}(h;``unsigned long *value_bitmap`` bitmap of values to assign h](j)}(h``unsigned long *value_bitmap``h]j )}(hjh]hunsigned long *value_bitmap}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMhjubj")}(hhh]h)}(hbitmap of values to assignh]hbitmap of values to assign}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j!hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhj5ubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hj$h]h Description}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj"ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMhjubh)}(hVSet the logical values of the GPIOs, i.e. taking their ACTIVE_LOW status into account.h]hVSet the logical values of the GPIOs, i.e. taking their ACTIVE_LOW status into account.}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMhjubh)}(h;This function is to be called from contexts that can sleep.h]h;This function is to be called from contexts that can sleep.}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMhjubh)}(h **Return**h]j)}(hjZh]hReturn}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjXubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMhjubh)}(h+0 on success, or negative errno on failure.h]h+0 on success, or negative errno on failure.}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubj )}(hhh]h}(h]h ]h"]h$]h&]entries](j#gpiod_add_lookup_table (C function)c.gpiod_add_lookup_tablehNtauh1j hhhhhNhNubj)}(hhh](j")}(h>void gpiod_add_lookup_table (struct gpiod_lookup_table *table)h]j()}(h=void gpiod_add_lookup_table(struct gpiod_lookup_table *table)h](j|)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j{hjhhh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chM4ubj@)}(h h]h }(hjhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjhhhjhM4ubjQ)}(hgpiod_add_lookup_tableh]jW)}(hgpiod_add_lookup_tableh]hgpiod_add_lookup_table}(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjubah}(h]h ](jijjeh"]h$]h&]jnjouh1jPhjhhhjhM4ubjp)}(h"(struct gpiod_lookup_table *table)h]jv)}(h struct gpiod_lookup_table *tableh](j.)}(hj1h]hstruct}(hjܣhhhNhNubah}(h]h ]j:ah"]h$]h&]uh1j-hjأubj@)}(h h]h }(hjhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjأubh)}(hhh]jW)}(hgpiod_lookup_tableh]hgpiod_lookup_table}(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjubah}(h]h ]h"]h$]h&] refdomainjreftypej+ reftargetjmodnameN classnameNjj)}j]j3)}j+j£sbc.gpiod_add_lookup_tableasbuh1hhjأubj@)}(h h]h }(hjhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjأubjH)}(hjKh]h*}(hj(hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjأubjW)}(htableh]htable}(hj5hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjأubeh}(h]h ]h"]h$]h&]noemphjnjouh1juhjԣubah}(h]h ]h"]h$]h&]jnjouh1johjhhhjhM4ubeh}(h]h ]h"]h$]h&]jnjojvuh1j'jwjxhjhhhjhM4ubah}(h]jah ](j|j}eh"]h$]h&]jj)jhuh1j!hjhM4hjhhubj)}(hhh]h)}(hregister GPIO device consumersh]hregister GPIO device consumers}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chM4hj\hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM4ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjwjjwjjjuh1jhhhhhNhNubj)}(hU**Parameters** ``struct gpiod_lookup_table *table`` table of consumers to registerh](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chM8hj{ubj)}(hhh]j)}(hC``struct gpiod_lookup_table *table`` table of consumers to registerh](j)}(h$``struct gpiod_lookup_table *table``h]j )}(hjh]h struct gpiod_lookup_table *table}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chM:hjubj")}(hhh]h)}(htable of consumers to registerh]htable of consumers to register}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chM5hjubah}(h]h ]h"]h$]h&]uh1j!hjubeh}(h]h ]h"]h$]h&]uh1jhjhM:hjubah}(h]h ]h"]h$]h&]uh1jhj{ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubj )}(hhh]h}(h]h ]h"]h$]h&]entries](j&gpiod_remove_lookup_table (C function)c.gpiod_remove_lookup_tablehNtauh1j hhhhhNhNubj)}(hhh](j")}(hAvoid gpiod_remove_lookup_table (struct gpiod_lookup_table *table)h]j()}(h@void gpiod_remove_lookup_table(struct gpiod_lookup_table *table)h](j|)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j{hjhhh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chM>ubj@)}(h h]h }(hj hhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjhhhjhM>ubjQ)}(hgpiod_remove_lookup_tableh]jW)}(hgpiod_remove_lookup_tableh]hgpiod_remove_lookup_table}(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjubah}(h]h ](jijjeh"]h$]h&]jnjouh1jPhjhhhjhM>ubjp)}(h"(struct gpiod_lookup_table *table)h]jv)}(h struct gpiod_lookup_table *tableh](j.)}(hj1h]hstruct}(hj7hhhNhNubah}(h]h ]j:ah"]h$]h&]uh1j-hj3ubj@)}(h h]h }(hjDhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hj3ubh)}(hhh]jW)}(hgpiod_lookup_tableh]hgpiod_lookup_table}(hjUhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjRubah}(h]h ]h"]h$]h&] refdomainjreftypej+ reftargetjWmodnameN classnameNjj)}j]j3)}j+jsbc.gpiod_remove_lookup_tableasbuh1hhj3ubj@)}(h h]h }(hjuhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hj3ubjH)}(hjKh]h*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj3ubjW)}(htableh]htable}(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhj3ubeh}(h]h ]h"]h$]h&]noemphjnjouh1juhj/ubah}(h]h ]h"]h$]h&]jnjouh1johjhhhjhM>ubeh}(h]h ]h"]h$]h&]jnjojvuh1j'jwjxhjhhhjhM>ubah}(h]jah ](j|j}eh"]h$]h&]jj)jhuh1j!hjhM>hjhhubj)}(hhh]h)}(h unregister GPIO device consumersh]h unregister GPIO device consumers}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chM>hjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM>ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjҥjjҥjjjuh1jhhhhhNhNubj)}(hW**Parameters** ``struct gpiod_lookup_table *table`` table of consumers to unregisterh](h)}(h**Parameters**h]j)}(hjܥh]h Parameters}(hjޥhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjڥubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMBhj֥ubj)}(hhh]j)}(hE``struct gpiod_lookup_table *table`` table of consumers to unregisterh](j)}(h$``struct gpiod_lookup_table *table``h]j )}(hjh]h struct gpiod_lookup_table *table}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMDhjubj")}(hhh]h)}(h table of consumers to unregisterh]h table of consumers to unregister}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chM?hjubah}(h]h ]h"]h$]h&]uh1j!hjubeh}(h]h ]h"]h$]h&]uh1jhjhMDhjubah}(h]h ]h"]h$]h&]uh1jhj֥ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubj )}(hhh]h}(h]h ]h"]h$]h&]entries](jgpiod_add_hogs (C function)c.gpiod_add_hogshNtauh1j hhhhhNhNubj)}(hhh](j")}(h,void gpiod_add_hogs (struct gpiod_hog *hogs)h]j()}(h+void gpiod_add_hogs(struct gpiod_hog *hogs)h](j|)}(hvoidh]hvoid}(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1j{hjQhhh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMNubj@)}(h h]h }(hjdhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjQhhhjchMNubjQ)}(hgpiod_add_hogsh]jW)}(hgpiod_add_hogsh]hgpiod_add_hogs}(hjvhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjrubah}(h]h ](jijjeh"]h$]h&]jnjouh1jPhjQhhhjchMNubjp)}(h(struct gpiod_hog *hogs)h]jv)}(hstruct gpiod_hog *hogsh](j.)}(hj1h]hstruct}(hjhhhNhNubah}(h]h ]j:ah"]h$]h&]uh1j-hjubj@)}(h h]h }(hjhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjubh)}(hhh]jW)}(h gpiod_hogh]h gpiod_hog}(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjubah}(h]h ]h"]h$]h&] refdomainjreftypej+ reftargetjmodnameN classnameNjj)}j]j3)}j+jxsbc.gpiod_add_hogsasbuh1hhjubj@)}(h h]h }(hjЦhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjubjH)}(hjKh]h*}(hjަhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjubjW)}(hhogsh]hhogs}(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjubeh}(h]h ]h"]h$]h&]noemphjnjouh1juhjubah}(h]h ]h"]h$]h&]jnjouh1johjQhhhjchMNubeh}(h]h ]h"]h$]h&]jnjojvuh1j'jwjxhjMhhhjchMNubah}(h]jHah ](j|j}eh"]h$]h&]jj)jhuh1j!hjchMNhjJhhubj)}(hhh]h)}(h-register a set of GPIO hogs from machine codeh]h-register a set of GPIO hogs from machine code}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMNhjhhubah}(h]h ]h"]h$]h&]uh1jhjJhhhjchMNubeh}(h]h ](jfunctioneh"]h$]h&]jjjj-jj-jjjuh1jhhhhhNhNubj)}(hh**Parameters** ``struct gpiod_hog *hogs`` table of gpio hog entries with a zeroed sentinel at the endh](h)}(h**Parameters**h]j)}(hj7h]h Parameters}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj5ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMRhj1ubj)}(hhh]j)}(hV``struct gpiod_hog *hogs`` table of gpio hog entries with a zeroed sentinel at the endh](j)}(h``struct gpiod_hog *hogs``h]j )}(hjVh]hstruct gpiod_hog *hogs}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjTubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMThjPubj")}(hhh]h)}(h;table of gpio hog entries with a zeroed sentinel at the endh]h;table of gpio hog entries with a zeroed sentinel at the end}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMOhjlubah}(h]h ]h"]h$]h&]uh1j!hjPubeh}(h]h ]h"]h$]h&]uh1jhjkhMThjMubah}(h]h ]h"]h$]h&]uh1jhj1ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubj )}(hhh]h}(h]h ]h"]h$]h&]entries](j#fwnode_gpiod_get_index (C function)c.fwnode_gpiod_get_indexhNtauh1j hhhhhNhNubj)}(hhh](j")}(hstruct gpio_desc * fwnode_gpiod_get_index (struct fwnode_handle *fwnode, const char *con_id, int index, enum gpiod_flags flags, const char *label)h]j()}(hstruct gpio_desc *fwnode_gpiod_get_index(struct fwnode_handle *fwnode, const char *con_id, int index, enum gpiod_flags flags, const char *label)h](j.)}(hj1h]hstruct}(hjhhhNhNubah}(h]h ]j:ah"]h$]h&]uh1j-hjhhh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMGubj@)}(h h]h }(hjhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjhhhjhMGubh)}(hhh]jW)}(h gpio_desch]h gpio_desc}(hjϧhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhj̧ubah}(h]h ]h"]h$]h&] refdomainjreftypej+ reftargetjѧmodnameN classnameNjj)}j]j3)}j+fwnode_gpiod_get_indexsbc.fwnode_gpiod_get_indexasbuh1hhjhhhjhMGubj@)}(h h]h }(hjhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjhhhjhMGubjH)}(hjKh]h*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjhhhjhMGubjQ)}(hfwnode_gpiod_get_indexh]jW)}(hjh]hfwnode_gpiod_get_index}(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhj ubah}(h]h ](jijjeh"]h$]h&]jnjouh1jPhjhhhjhMGubjp)}(hh(struct fwnode_handle *fwnode, const char *con_id, int index, enum gpiod_flags flags, const char *label)h](jv)}(hstruct fwnode_handle *fwnodeh](j.)}(hj1h]hstruct}(hj*hhhNhNubah}(h]h ]j:ah"]h$]h&]uh1j-hj&ubj@)}(h h]h }(hj7hhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hj&ubh)}(hhh]jW)}(h fwnode_handleh]h fwnode_handle}(hjHhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjEubah}(h]h ]h"]h$]h&] refdomainjreftypej+ reftargetjJmodnameN classnameNjj)}j]jc.fwnode_gpiod_get_indexasbuh1hhj&ubj@)}(h h]h }(hjfhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hj&ubjH)}(hjKh]h*}(hjthhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj&ubjW)}(hfwnodeh]hfwnode}(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhj&ubeh}(h]h ]h"]h$]h&]noemphjnjouh1juhj"ubjv)}(hconst char *con_idh](j.)}(hj{#h]hconst}(hjhhhNhNubah}(h]h ]j:ah"]h$]h&]uh1j-hjubj@)}(h h]h }(hjhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjubj|)}(hcharh]hchar}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j{hjubj@)}(h h]h }(hjèhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjubjH)}(hjKh]h*}(hjѨhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjubjW)}(hcon_idh]hcon_id}(hjިhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjubeh}(h]h ]h"]h$]h&]noemphjnjouh1juhj"ubjv)}(h int indexh](j|)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j{hjubj@)}(h h]h }(hjhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjubjW)}(hindexh]hindex}(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjubeh}(h]h ]h"]h$]h&]noemphjnjouh1juhj"ubjv)}(henum gpiod_flags flagsh](j.)}(hjXh]henum}(hj,hhhNhNubah}(h]h ]j:ah"]h$]h&]uh1j-hj(ubj@)}(h h]h }(hj9hhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hj(ubh)}(hhh]jW)}(h gpiod_flagsh]h gpiod_flags}(hjJhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjGubah}(h]h ]h"]h$]h&] refdomainjreftypej+ reftargetjLmodnameN classnameNjj)}j]jc.fwnode_gpiod_get_indexasbuh1hhj(ubj@)}(h h]h }(hjhhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hj(ubjW)}(hflagsh]hflags}(hjvhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhj(ubeh}(h]h ]h"]h$]h&]noemphjnjouh1juhj"ubjv)}(hconst char *labelh](j.)}(hj{#h]hconst}(hjhhhNhNubah}(h]h ]j:ah"]h$]h&]uh1j-hjubj@)}(h h]h }(hjhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjubj|)}(hcharh]hchar}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j{hjubj@)}(h h]h }(hjhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjubjH)}(hjKh]h*}(hjƩhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjubjW)}(hlabelh]hlabel}(hjөhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjubeh}(h]h ]h"]h$]h&]noemphjnjouh1juhj"ubeh}(h]h ]h"]h$]h&]jnjouh1johjhhhjhMGubeh}(h]h ]h"]h$]h&]jnjojvuh1j'jwjxhjhhhjhMGubah}(h]jah ](j|j}eh"]h$]h&]jj)jhuh1j!hjhMGhjhhubj)}(hhh]h)}(h obtain a GPIO from firmware nodeh]h obtain a GPIO from firmware node}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMGhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMGubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhhhNhNubj)}(hX**Parameters** ``struct fwnode_handle *fwnode`` handle of the firmware node ``const char *con_id`` function within the GPIO consumer ``int index`` index of the GPIO to obtain for the consumer ``enum gpiod_flags flags`` GPIO initialization flags ``const char *label`` label to attach to the requested GPIO **Description** This function can be used for drivers that get their configuration from opaque firmware. The function properly finds the corresponding GPIO using whatever is the underlying firmware interface and then makes sure that the GPIO descriptor is requested before it is returned to the caller. In case of error an ERR_PTR() is returned. **Return** On successful request the GPIO pin is configured in accordance with provided **flags**.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMKhjubj)}(hhh](j)}(h=``struct fwnode_handle *fwnode`` handle of the firmware node h](j)}(h ``struct fwnode_handle *fwnode``h]j )}(hj>h]hstruct fwnode_handle *fwnode}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1j hj<ubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMHhj8ubj")}(hhh]h)}(hhandle of the firmware nodeh]hhandle of the firmware node}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjShMHhjTubah}(h]h ]h"]h$]h&]uh1j!hj8ubeh}(h]h ]h"]h$]h&]uh1jhjShMHhj5ubj)}(h9``const char *con_id`` function within the GPIO consumer h](j)}(h``const char *con_id``h]j )}(hjwh]hconst char *con_id}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjuubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMIhjqubj")}(hhh]h)}(h!function within the GPIO consumerh]h!function within the GPIO consumer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMIhjubah}(h]h ]h"]h$]h&]uh1j!hjqubeh}(h]h ]h"]h$]h&]uh1jhjhMIhj5ubj)}(h;``int index`` index of the GPIO to obtain for the consumer h](j)}(h ``int index``h]j )}(hjh]h int index}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMJhjubj")}(hhh]h)}(h,index of the GPIO to obtain for the consumerh]h,index of the GPIO to obtain for the consumer}(hjɪhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjŪhMJhjƪubah}(h]h ]h"]h$]h&]uh1j!hjubeh}(h]h ]h"]h$]h&]uh1jhjŪhMJhj5ubj)}(h5``enum gpiod_flags flags`` GPIO initialization flags h](j)}(h``enum gpiod_flags flags``h]j )}(hjh]henum gpiod_flags flags}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMKhjubj")}(hhh]h)}(hGPIO initialization flagsh]hGPIO initialization flags}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMKhjubah}(h]h ]h"]h$]h&]uh1j!hjubeh}(h]h ]h"]h$]h&]uh1jhjhMKhj5ubj)}(h<``const char *label`` label to attach to the requested GPIO h](j)}(h``const char *label``h]j )}(hj"h]hconst char *label}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1j hj ubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMLhjubj")}(hhh]h)}(h%label to attach to the requested GPIOh]h%label to attach to the requested GPIO}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj7hMLhj8ubah}(h]h ]h"]h$]h&]uh1j!hjubeh}(h]h ]h"]h$]h&]uh1jhj7hMLhj5ubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hj]h]h Description}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj[ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMNhjubh)}(hXThis function can be used for drivers that get their configuration from opaque firmware.h]hXThis function can be used for drivers that get their configuration from opaque firmware.}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMNhjubh)}(hThe function properly finds the corresponding GPIO using whatever is the underlying firmware interface and then makes sure that the GPIO descriptor is requested before it is returned to the caller.h]hThe function properly finds the corresponding GPIO using whatever is the underlying firmware interface and then makes sure that the GPIO descriptor is requested before it is returned to the caller.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMQhjubh)}(h*In case of error an ERR_PTR() is returned.h]h*In case of error an ERR_PTR() is returned.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMUhjubh)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMWhjubh)}(hWOn successful request the GPIO pin is configured in accordance with provided **flags**.h](hMOn successful request the GPIO pin is configured in accordance with provided }(hjhhhNhNubj)}(h **flags**h]hflags}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMUhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubj )}(hhh]h}(h]h ]h"]h$]h&]entries](jgpiod_count (C function) c.gpiod_counthNtauh1j hhhhhNhNubj)}(hhh](j")}(h8int gpiod_count (struct device *dev, const char *con_id)h]j()}(h7int gpiod_count(struct device *dev, const char *con_id)h](j|)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j{hjhhh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMfubj@)}(h h]h }(hjhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjhhhjhMfubjQ)}(h gpiod_counth]jW)}(h gpiod_counth]h gpiod_count}(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjubah}(h]h ](jijjeh"]h$]h&]jnjouh1jPhjhhhjhMfubjp)}(h((struct device *dev, const char *con_id)h](jv)}(hstruct device *devh](j.)}(hj1h]hstruct}(hj6hhhNhNubah}(h]h ]j:ah"]h$]h&]uh1j-hj2ubj@)}(h h]h }(hjChhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hj2ubh)}(hhh]jW)}(hdeviceh]hdevice}(hjThhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjQubah}(h]h ]h"]h$]h&] refdomainjreftypej+ reftargetjVmodnameN classnameNjj)}j]j3)}j+jsb c.gpiod_countasbuh1hhj2ubj@)}(h h]h }(hjthhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hj2ubjH)}(hjKh]h*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj2ubjW)}(hdevh]hdev}(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhj2ubeh}(h]h ]h"]h$]h&]noemphjnjouh1juhj.ubjv)}(hconst char *con_idh](j.)}(hj{#h]hconst}(hjhhhNhNubah}(h]h ]j:ah"]h$]h&]uh1j-hjubj@)}(h h]h }(hjhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjubj|)}(hcharh]hchar}(hjìhhhNhNubah}(h]h ]jah"]h$]h&]uh1j{hjubj@)}(h h]h }(hjѬhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjubjH)}(hjKh]h*}(hj߬hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjubjW)}(hcon_idh]hcon_id}(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjubeh}(h]h ]h"]h$]h&]noemphjnjouh1juhj.ubeh}(h]h ]h"]h$]h&]jnjouh1johjhhhjhMfubeh}(h]h ]h"]h$]h&]jnjojvuh1j'jwjxhjhhhjhMfubah}(h]jah ](j|j}eh"]h$]h&]jj)jhuh1j!hjhMfhjhhubj)}(hhh]h)}(h>return the number of GPIOs associated with a device / functionh]h>return the number of GPIOs associated with a device / function}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMfhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMfubeh}(h]h ](jfunctioneh"]h$]h&]jjjj.jj.jjjuh1jhhhhhNhNubj)}(hX**Parameters** ``struct device *dev`` GPIO consumer, can be NULL for system-global GPIOs ``const char *con_id`` function within the GPIO consumer **Return** The number of GPIOs associated with a device / function or -ENOENT if no GPIO has been assigned to the requested function.h](h)}(h**Parameters**h]j)}(hj8h]h Parameters}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMjhj2ubj)}(hhh](j)}(hJ``struct device *dev`` GPIO consumer, can be NULL for system-global GPIOs h](j)}(h``struct device *dev``h]j )}(hjWh]hstruct device *dev}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjUubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMghjQubj")}(hhh]h)}(h2GPIO consumer, can be NULL for system-global GPIOsh]h2GPIO consumer, can be NULL for system-global GPIOs}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1hhjlhMghjmubah}(h]h ]h"]h$]h&]uh1j!hjQubeh}(h]h ]h"]h$]h&]uh1jhjlhMghjNubj)}(h9``const char *con_id`` function within the GPIO consumer h](j)}(h``const char *con_id``h]j )}(hjh]hconst char *con_id}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMhhjubj")}(hhh]h)}(h!function within the GPIO consumerh]h!function within the GPIO consumer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhhjubah}(h]h ]h"]h$]h&]uh1j!hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhhjNubeh}(h]h ]h"]h$]h&]uh1jhj2ubh)}(h **Return**h]j)}(hj˭h]hReturn}(hjͭhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjɭubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMjhj2ubh)}(hzThe number of GPIOs associated with a device / function or -ENOENT if no GPIO has been assigned to the requested function.h]hzThe number of GPIOs associated with a device / function or -ENOENT if no GPIO has been assigned to the requested function.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMjhj2ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubj )}(hhh]h}(h]h ]h"]h$]h&]entries](jgpiod_get (C function) c.gpiod_gethNtauh1j hhhhhNhNubj)}(hhh](j")}(h]struct gpio_desc * gpiod_get (struct device *dev, const char *con_id, enum gpiod_flags flags)h]j()}(h[struct gpio_desc *gpiod_get(struct device *dev, const char *con_id, enum gpiod_flags flags)h](j.)}(hj1h]hstruct}(hjhhhNhNubah}(h]h ]j:ah"]h$]h&]uh1j-hj hhh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMubj@)}(h h]h }(hjhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hj hhhjhMubh)}(hhh]jW)}(h gpio_desch]h gpio_desc}(hj/hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhj,ubah}(h]h ]h"]h$]h&] refdomainjreftypej+ reftargetj1modnameN classnameNjj)}j]j3)}j+ gpiod_getsb c.gpiod_getasbuh1hhj hhhjhMubj@)}(h h]h }(hjPhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hj hhhjhMubjH)}(hjKh]h*}(hj^hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj hhhjhMubjQ)}(h gpiod_geth]jW)}(hjMh]h gpiod_get}(hjohhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjkubah}(h]h ](jijjeh"]h$]h&]jnjouh1jPhj hhhjhMubjp)}(h@(struct device *dev, const char *con_id, enum gpiod_flags flags)h](jv)}(hstruct device *devh](j.)}(hj1h]hstruct}(hjhhhNhNubah}(h]h ]j:ah"]h$]h&]uh1j-hjubj@)}(h h]h }(hjhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjubh)}(hhh]jW)}(hdeviceh]hdevice}(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjubah}(h]h ]h"]h$]h&] refdomainjreftypej+ reftargetjmodnameN classnameNjj)}j]jK c.gpiod_getasbuh1hhjubj@)}(h h]h }(hjƮhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjubjH)}(hjKh]h*}(hjԮhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjubjW)}(hdevh]hdev}(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjubeh}(h]h ]h"]h$]h&]noemphjnjouh1juhjubjv)}(hconst char *con_idh](j.)}(hj{#h]hconst}(hjhhhNhNubah}(h]h ]j:ah"]h$]h&]uh1j-hjubj@)}(h h]h }(hjhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjubj|)}(hcharh]hchar}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j{hjubj@)}(h h]h }(hj#hhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjubjH)}(hjKh]h*}(hj1hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjubjW)}(hcon_idh]hcon_id}(hj>hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjubeh}(h]h ]h"]h$]h&]noemphjnjouh1juhjubjv)}(henum gpiod_flags flagsh](j.)}(hjXh]henum}(hjWhhhNhNubah}(h]h ]j:ah"]h$]h&]uh1j-hjSubj@)}(h h]h }(hjdhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjSubh)}(hhh]jW)}(h gpiod_flagsh]h gpiod_flags}(hjuhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjrubah}(h]h ]h"]h$]h&] refdomainjreftypej+ reftargetjwmodnameN classnameNjj)}j]jK c.gpiod_getasbuh1hhjSubj@)}(h h]h }(hjhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjSubjW)}(hflagsh]hflags}(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjSubeh}(h]h ]h"]h$]h&]noemphjnjouh1juhjubeh}(h]h ]h"]h$]h&]jnjouh1johj hhhjhMubeh}(h]h ]h"]h$]h&]jnjojvuh1j'jwjxhjhhhjhMubah}(h]jah ](j|j}eh"]h$]h&]jj)jhuh1j!hjhMhjhhubj)}(hhh]h)}(h'obtain a GPIO for a given GPIO functionh]h'obtain a GPIO for a given GPIO function}(hj˯hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMhjȯhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhhhNhNubj)}(hX**Parameters** ``struct device *dev`` GPIO consumer, can be NULL for system-global GPIOs ``const char *con_id`` function within the GPIO consumer ``enum gpiod_flags flags`` optional GPIO initialization flags **Return** The GPIO descriptor corresponding to the function **con_id** of device dev, -ENOENT if no GPIO has been assigned to the requested function, or another IS_ERR() code if an error occurred while trying to acquire the GPIO.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMhjubj)}(hhh](j)}(hJ``struct device *dev`` GPIO consumer, can be NULL for system-global GPIOs h](j)}(h``struct device *dev``h]j )}(hj h]hstruct device *dev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j hj ubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMhjubj")}(hhh]h)}(h2GPIO consumer, can be NULL for system-global GPIOsh]h2GPIO consumer, can be NULL for system-global GPIOs}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj!hMhj"ubah}(h]h ]h"]h$]h&]uh1j!hjubeh}(h]h ]h"]h$]h&]uh1jhj!hMhjubj)}(h9``const char *con_id`` function within the GPIO consumer h](j)}(h``const char *con_id``h]j )}(hjEh]hconst char *con_id}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjCubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMhj?ubj")}(hhh]h)}(h!function within the GPIO consumerh]h!function within the GPIO consumer}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjZhMhj[ubah}(h]h ]h"]h$]h&]uh1j!hj?ubeh}(h]h ]h"]h$]h&]uh1jhjZhMhjubj)}(h>``enum gpiod_flags flags`` optional GPIO initialization flags h](j)}(h``enum gpiod_flags flags``h]j )}(hj~h]henum gpiod_flags flags}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j hj|ubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMhjxubj")}(hhh]h)}(h"optional GPIO initialization flagsh]h"optional GPIO initialization flags}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j!hjxubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMhjubh)}(hThe GPIO descriptor corresponding to the function **con_id** of device dev, -ENOENT if no GPIO has been assigned to the requested function, or another IS_ERR() code if an error occurred while trying to acquire the GPIO.h](h2The GPIO descriptor corresponding to the function }(hjϰhhhNhNubj)}(h **con_id**h]hcon_id}(hjװhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjϰubh of device dev, -ENOENT if no GPIO has been assigned to the requested function, or another IS_ERR() code if an error occurred while trying to acquire the GPIO.}(hjϰhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubj )}(hhh]h}(h]h ]h"]h$]h&]entries](jgpiod_get_optional (C function)c.gpiod_get_optionalhNtauh1j hhhhhNhNubj)}(hhh](j")}(hfstruct gpio_desc * gpiod_get_optional (struct device *dev, const char *con_id, enum gpiod_flags flags)h]j()}(hdstruct gpio_desc *gpiod_get_optional(struct device *dev, const char *con_id, enum gpiod_flags flags)h](j.)}(hj1h]hstruct}(hjhhhNhNubah}(h]h ]j:ah"]h$]h&]uh1j-hj hhh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMubj@)}(h h]h }(hjhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hj hhhjhMubh)}(hhh]jW)}(h gpio_desch]h gpio_desc}(hj/hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhj,ubah}(h]h ]h"]h$]h&] refdomainjreftypej+ reftargetj1modnameN classnameNjj)}j]j3)}j+gpiod_get_optionalsbc.gpiod_get_optionalasbuh1hhj hhhjhMubj@)}(h h]h }(hjPhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hj hhhjhMubjH)}(hjKh]h*}(hj^hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj hhhjhMubjQ)}(hgpiod_get_optionalh]jW)}(hjMh]hgpiod_get_optional}(hjohhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjkubah}(h]h ](jijjeh"]h$]h&]jnjouh1jPhj hhhjhMubjp)}(h@(struct device *dev, const char *con_id, enum gpiod_flags flags)h](jv)}(hstruct device *devh](j.)}(hj1h]hstruct}(hjhhhNhNubah}(h]h ]j:ah"]h$]h&]uh1j-hjubj@)}(h h]h }(hjhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjubh)}(hhh]jW)}(hdeviceh]hdevice}(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjubah}(h]h ]h"]h$]h&] refdomainjreftypej+ reftargetjmodnameN classnameNjj)}j]jKc.gpiod_get_optionalasbuh1hhjubj@)}(h h]h }(hjƱhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjubjH)}(hjKh]h*}(hjԱhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjubjW)}(hdevh]hdev}(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjubeh}(h]h ]h"]h$]h&]noemphjnjouh1juhjubjv)}(hconst char *con_idh](j.)}(hj{#h]hconst}(hjhhhNhNubah}(h]h ]j:ah"]h$]h&]uh1j-hjubj@)}(h h]h }(hjhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjubj|)}(hcharh]hchar}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j{hjubj@)}(h h]h }(hj#hhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjubjH)}(hjKh]h*}(hj1hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjubjW)}(hcon_idh]hcon_id}(hj>hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjubeh}(h]h ]h"]h$]h&]noemphjnjouh1juhjubjv)}(henum gpiod_flags flagsh](j.)}(hjXh]henum}(hjWhhhNhNubah}(h]h ]j:ah"]h$]h&]uh1j-hjSubj@)}(h h]h }(hjdhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjSubh)}(hhh]jW)}(h gpiod_flagsh]h gpiod_flags}(hjuhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjrubah}(h]h ]h"]h$]h&] refdomainjreftypej+ reftargetjwmodnameN classnameNjj)}j]jKc.gpiod_get_optionalasbuh1hhjSubj@)}(h h]h }(hjhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjSubjW)}(hflagsh]hflags}(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjSubeh}(h]h ]h"]h$]h&]noemphjnjouh1juhjubeh}(h]h ]h"]h$]h&]jnjouh1johj hhhjhMubeh}(h]h ]h"]h$]h&]jnjojvuh1j'jwjxhjhhhjhMubah}(h]jah ](j|j}eh"]h$]h&]jj)jhuh1j!hjhMhjhhubj)}(hhh]h)}(h1obtain an optional GPIO for a given GPIO functionh]h1obtain an optional GPIO for a given GPIO function}(hj˲hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMhjȲhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhhhNhNubj)}(hX**Parameters** ``struct device *dev`` GPIO consumer, can be NULL for system-global GPIOs ``const char *con_id`` function within the GPIO consumer ``enum gpiod_flags flags`` optional GPIO initialization flags **Description** This is equivalent to gpiod_get(), except that when no GPIO was assigned to the requested function it will return NULL. This is convenient for drivers that need to handle optional GPIOs. **Return** The GPIO descriptor corresponding to the function **con_id** of device dev, NULL if no GPIO has been assigned to the requested function, or another IS_ERR() code if an error occurred while trying to acquire the GPIO.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMhjubj)}(hhh](j)}(hJ``struct device *dev`` GPIO consumer, can be NULL for system-global GPIOs h](j)}(h``struct device *dev``h]j )}(hj h]hstruct device *dev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j hj ubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMhjubj")}(hhh]h)}(h2GPIO consumer, can be NULL for system-global GPIOsh]h2GPIO consumer, can be NULL for system-global GPIOs}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj!hMhj"ubah}(h]h ]h"]h$]h&]uh1j!hjubeh}(h]h ]h"]h$]h&]uh1jhj!hMhjubj)}(h9``const char *con_id`` function within the GPIO consumer h](j)}(h``const char *con_id``h]j )}(hjEh]hconst char *con_id}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjCubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMhj?ubj")}(hhh]h)}(h!function within the GPIO consumerh]h!function within the GPIO consumer}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjZhMhj[ubah}(h]h ]h"]h$]h&]uh1j!hj?ubeh}(h]h ]h"]h$]h&]uh1jhjZhMhjubj)}(h>``enum gpiod_flags flags`` optional GPIO initialization flags h](j)}(h``enum gpiod_flags flags``h]j )}(hj~h]henum gpiod_flags flags}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j hj|ubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMhjxubj")}(hhh]h)}(h"optional GPIO initialization flagsh]h"optional GPIO initialization flags}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j!hjxubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMhjubh)}(hThis is equivalent to gpiod_get(), except that when no GPIO was assigned to the requested function it will return NULL. This is convenient for drivers that need to handle optional GPIOs.h]hThis is equivalent to gpiod_get(), except that when no GPIO was assigned to the requested function it will return NULL. This is convenient for drivers that need to handle optional GPIOs.}(hjϳhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMhjubh)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj޳ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMhjubh)}(hThe GPIO descriptor corresponding to the function **con_id** of device dev, NULL if no GPIO has been assigned to the requested function, or another IS_ERR() code if an error occurred while trying to acquire the GPIO.h](h2The GPIO descriptor corresponding to the function }(hjhhhNhNubj)}(h **con_id**h]hcon_id}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh of device dev, NULL if no GPIO has been assigned to the requested function, or another IS_ERR() code if an error occurred while trying to acquire the GPIO.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubj )}(hhh]h}(h]h ]h"]h$]h&]entries](jgpiod_get_index (C function)c.gpiod_get_indexhNtauh1j hhhhhNhNubj)}(hhh](j")}(hustruct gpio_desc * gpiod_get_index (struct device *dev, const char *con_id, unsigned int idx, enum gpiod_flags flags)h]j()}(hsstruct gpio_desc *gpiod_get_index(struct device *dev, const char *con_id, unsigned int idx, enum gpiod_flags flags)h](j.)}(hj1h]hstruct}(hj7hhhNhNubah}(h]h ]j:ah"]h$]h&]uh1j-hj3hhh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMubj@)}(h h]h }(hjEhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hj3hhhjDhMubh)}(hhh]jW)}(h gpio_desch]h gpio_desc}(hjVhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjSubah}(h]h ]h"]h$]h&] refdomainjreftypej+ reftargetjXmodnameN classnameNjj)}j]j3)}j+gpiod_get_indexsbc.gpiod_get_indexasbuh1hhj3hhhjDhMubj@)}(h h]h }(hjwhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hj3hhhjDhMubjH)}(hjKh]h*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj3hhhjDhMubjQ)}(hgpiod_get_indexh]jW)}(hjth]hgpiod_get_index}(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjubah}(h]h ](jijjeh"]h$]h&]jnjouh1jPhj3hhhjDhMubjp)}(hR(struct device *dev, const char *con_id, unsigned int idx, enum gpiod_flags flags)h](jv)}(hstruct device *devh](j.)}(hj1h]hstruct}(hjhhhNhNubah}(h]h ]j:ah"]h$]h&]uh1j-hjubj@)}(h h]h }(hjhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjubh)}(hhh]jW)}(hdeviceh]hdevice}(hjϴhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhj̴ubah}(h]h ]h"]h$]h&] refdomainjreftypej+ reftargetjѴmodnameN classnameNjj)}j]jrc.gpiod_get_indexasbuh1hhjubj@)}(h h]h }(hjhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjubjH)}(hjKh]h*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjubjW)}(hdevh]hdev}(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjubeh}(h]h ]h"]h$]h&]noemphjnjouh1juhjubjv)}(hconst char *con_idh](j.)}(hj{#h]hconst}(hj!hhhNhNubah}(h]h ]j:ah"]h$]h&]uh1j-hjubj@)}(h h]h }(hj.hhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjubj|)}(hcharh]hchar}(hj<hhhNhNubah}(h]h ]jah"]h$]h&]uh1j{hjubj@)}(h h]h }(hjJhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjubjH)}(hjKh]h*}(hjXhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjubjW)}(hcon_idh]hcon_id}(hjehhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjubeh}(h]h ]h"]h$]h&]noemphjnjouh1juhjubjv)}(hunsigned int idxh](j|)}(hunsignedh]hunsigned}(hj~hhhNhNubah}(h]h ]jah"]h$]h&]uh1j{hjzubj@)}(h h]h }(hjhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjzubj|)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j{hjzubj@)}(h h]h }(hjhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjzubjW)}(hidxh]hidx}(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjzubeh}(h]h ]h"]h$]h&]noemphjnjouh1juhjubjv)}(henum gpiod_flags flagsh](j.)}(hjXh]henum}(hjϵhhhNhNubah}(h]h ]j:ah"]h$]h&]uh1j-hj˵ubj@)}(h h]h }(hjܵhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hj˵ubh)}(hhh]jW)}(h gpiod_flagsh]h gpiod_flags}(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjubah}(h]h ]h"]h$]h&] refdomainjreftypej+ reftargetjmodnameN classnameNjj)}j]jrc.gpiod_get_indexasbuh1hhj˵ubj@)}(h h]h }(hj hhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hj˵ubjW)}(hflagsh]hflags}(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhj˵ubeh}(h]h ]h"]h$]h&]noemphjnjouh1juhjubeh}(h]h ]h"]h$]h&]jnjouh1johj3hhhjDhMubeh}(h]h ]h"]h$]h&]jnjojvuh1j'jwjxhj/hhhjDhMubah}(h]j*ah ](j|j}eh"]h$]h&]jj)jhuh1j!hjDhMhj,hhubj)}(hhh]h)}(h.obtain a GPIO from a multi-index GPIO functionh]h.obtain a GPIO from a multi-index GPIO function}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMhj@hhubah}(h]h ]h"]h$]h&]uh1jhj,hhhjDhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj[jj[jjjuh1jhhhhhNhNubj)}(hXn**Parameters** ``struct device *dev`` GPIO consumer, can be NULL for system-global GPIOs ``const char *con_id`` function within the GPIO consumer ``unsigned int idx`` index of the GPIO to obtain in the consumer ``enum gpiod_flags flags`` optional GPIO initialization flags **Description** This variant of gpiod_get() allows to access GPIOs other than the first defined one for functions that define several GPIOs. **Return** A valid GPIO descriptor, -ENOENT if no GPIO has been assigned to the requested function and/or index, or another IS_ERR() code if an error occurred while trying to acquire the GPIO.h](h)}(h**Parameters**h]j)}(hjeh]h Parameters}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1jhjcubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMhj_ubj)}(hhh](j)}(hJ``struct device *dev`` GPIO consumer, can be NULL for system-global GPIOs h](j)}(h``struct device *dev``h]j )}(hjh]hstruct device *dev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMhj~ubj")}(hhh]h)}(h2GPIO consumer, can be NULL for system-global GPIOsh]h2GPIO consumer, can be NULL for system-global GPIOs}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j!hj~ubeh}(h]h ]h"]h$]h&]uh1jhjhMhj{ubj)}(h9``const char *con_id`` function within the GPIO consumer h](j)}(h``const char *con_id``h]j )}(hjh]hconst char *con_id}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMhjubj")}(hhh]h)}(h!function within the GPIO consumerh]h!function within the GPIO consumer}(hjֶhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjҶhMhjӶubah}(h]h ]h"]h$]h&]uh1j!hjubeh}(h]h ]h"]h$]h&]uh1jhjҶhMhj{ubj)}(hA``unsigned int idx`` index of the GPIO to obtain in the consumer h](j)}(h``unsigned int idx``h]j )}(hjh]hunsigned int idx}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMhjubj")}(hhh]h)}(h+index of the GPIO to obtain in the consumerh]h+index of the GPIO to obtain in the consumer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hMhj ubah}(h]h ]h"]h$]h&]uh1j!hjubeh}(h]h ]h"]h$]h&]uh1jhj hMhj{ubj)}(h>``enum gpiod_flags flags`` optional GPIO initialization flags h](j)}(h``enum gpiod_flags flags``h]j )}(hj/h]henum gpiod_flags flags}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1j hj-ubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMhj)ubj")}(hhh]h)}(h"optional GPIO initialization flagsh]h"optional GPIO initialization flags}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjDhMhjEubah}(h]h ]h"]h$]h&]uh1j!hj)ubeh}(h]h ]h"]h$]h&]uh1jhjDhMhj{ubeh}(h]h ]h"]h$]h&]uh1jhj_ubh)}(h**Description**h]j)}(hjjh]h Description}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMhj_ubh)}(h|This variant of gpiod_get() allows to access GPIOs other than the first defined one for functions that define several GPIOs.h]h|This variant of gpiod_get() allows to access GPIOs other than the first defined one for functions that define several GPIOs.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMhj_ubh)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMhj_ubh)}(hA valid GPIO descriptor, -ENOENT if no GPIO has been assigned to the requested function and/or index, or another IS_ERR() code if an error occurred while trying to acquire the GPIO.h]hA valid GPIO descriptor, -ENOENT if no GPIO has been assigned to the requested function and/or index, or another IS_ERR() code if an error occurred while trying to acquire the GPIO.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMhj_ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubj )}(hhh]h}(h]h ]h"]h$]h&]entries](j%gpiod_get_index_optional (C function)c.gpiod_get_index_optionalhNtauh1j hhhhhNhNubj)}(hhh](j")}(hstruct gpio_desc * gpiod_get_index_optional (struct device *dev, const char *con_id, unsigned int index, enum gpiod_flags flags)h]j()}(h~struct gpio_desc *gpiod_get_index_optional(struct device *dev, const char *con_id, unsigned int index, enum gpiod_flags flags)h](j.)}(hj1h]hstruct}(hjַhhhNhNubah}(h]h ]j:ah"]h$]h&]uh1j-hjҷhhh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMubj@)}(h h]h }(hjhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjҷhhhjhMubh)}(hhh]jW)}(h gpio_desch]h gpio_desc}(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjubah}(h]h ]h"]h$]h&] refdomainjreftypej+ reftargetjmodnameN classnameNjj)}j]j3)}j+gpiod_get_index_optionalsbc.gpiod_get_index_optionalasbuh1hhjҷhhhjhMubj@)}(h h]h }(hjhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjҷhhhjhMubjH)}(hjKh]h*}(hj$hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjҷhhhjhMubjQ)}(hgpiod_get_index_optionalh]jW)}(hjh]hgpiod_get_index_optional}(hj5hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhj1ubah}(h]h ](jijjeh"]h$]h&]jnjouh1jPhjҷhhhjhMubjp)}(hT(struct device *dev, const char *con_id, unsigned int index, enum gpiod_flags flags)h](jv)}(hstruct device *devh](j.)}(hj1h]hstruct}(hjPhhhNhNubah}(h]h ]j:ah"]h$]h&]uh1j-hjLubj@)}(h h]h }(hj]hhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjLubh)}(hhh]jW)}(hdeviceh]hdevice}(hjnhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjkubah}(h]h ]h"]h$]h&] refdomainjreftypej+ reftargetjpmodnameN classnameNjj)}j]jc.gpiod_get_index_optionalasbuh1hhjLubj@)}(h h]h }(hjhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjLubjH)}(hjKh]h*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjLubjW)}(hdevh]hdev}(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjLubeh}(h]h ]h"]h$]h&]noemphjnjouh1juhjHubjv)}(hconst char *con_idh](j.)}(hj{#h]hconst}(hjhhhNhNubah}(h]h ]j:ah"]h$]h&]uh1j-hjubj@)}(h h]h }(hj͸hhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjubj|)}(hcharh]hchar}(hj۸hhhNhNubah}(h]h ]jah"]h$]h&]uh1j{hjubj@)}(h h]h }(hjhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjubjH)}(hjKh]h*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjubjW)}(hcon_idh]hcon_id}(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjubeh}(h]h ]h"]h$]h&]noemphjnjouh1juhjHubjv)}(hunsigned int indexh](j|)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j{hjubj@)}(h h]h }(hj+hhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjubj|)}(hinth]hint}(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1j{hjubj@)}(h h]h }(hjGhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjubjW)}(hindexh]hindex}(hjUhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjubeh}(h]h ]h"]h$]h&]noemphjnjouh1juhjHubjv)}(henum gpiod_flags flagsh](j.)}(hjXh]henum}(hjnhhhNhNubah}(h]h ]j:ah"]h$]h&]uh1j-hjjubj@)}(h h]h }(hj{hhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjjubh)}(hhh]jW)}(h gpiod_flagsh]h gpiod_flags}(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjubah}(h]h ]h"]h$]h&] refdomainjreftypej+ reftargetjmodnameN classnameNjj)}j]jc.gpiod_get_index_optionalasbuh1hhjjubj@)}(h h]h }(hjhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjjubjW)}(hflagsh]hflags}(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjjubeh}(h]h ]h"]h$]h&]noemphjnjouh1juhjHubeh}(h]h ]h"]h$]h&]jnjouh1johjҷhhhjhMubeh}(h]h ]h"]h$]h&]jnjojvuh1j'jwjxhjηhhhjhMubah}(h]jɷah ](j|j}eh"]h$]h&]jj)jhuh1j!hjhMhj˷hhubj)}(hhh]h)}(h8obtain an optional GPIO from a multi-index GPIO functionh]h8obtain an optional GPIO from a multi-index GPIO function}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMhj߹hhubah}(h]h ]h"]h$]h&]uh1jhj˷hhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhhhNhNubj)}(hX**Parameters** ``struct device *dev`` GPIO consumer, can be NULL for system-global GPIOs ``const char *con_id`` function within the GPIO consumer ``unsigned int index`` index of the GPIO to obtain in the consumer ``enum gpiod_flags flags`` optional GPIO initialization flags **Description** This is equivalent to gpiod_get_index(), except that when no GPIO with the specified index was assigned to the requested function it will return NULL. This is convenient for drivers that need to handle optional GPIOs. **Return** A valid GPIO descriptor, NULL if no GPIO has been assigned to the requested function and/or index, or another IS_ERR() code if an error occurred while trying to acquire the GPIO.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMhjubj)}(hhh](j)}(hJ``struct device *dev`` GPIO consumer, can be NULL for system-global GPIOs h](j)}(h``struct device *dev``h]j )}(hj#h]hstruct device *dev}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1j hj!ubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMhjubj")}(hhh]h)}(h2GPIO consumer, can be NULL for system-global GPIOsh]h2GPIO consumer, can be NULL for system-global GPIOs}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj8hMhj9ubah}(h]h ]h"]h$]h&]uh1j!hjubeh}(h]h ]h"]h$]h&]uh1jhj8hMhjubj)}(h9``const char *con_id`` function within the GPIO consumer h](j)}(h``const char *con_id``h]j )}(hj\h]hconst char *con_id}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1j hjZubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMhjVubj")}(hhh]h)}(h!function within the GPIO consumerh]h!function within the GPIO consumer}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjqhMhjrubah}(h]h ]h"]h$]h&]uh1j!hjVubeh}(h]h ]h"]h$]h&]uh1jhjqhMhjubj)}(hC``unsigned int index`` index of the GPIO to obtain in the consumer h](j)}(h``unsigned int index``h]j )}(hjh]hunsigned int index}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMhjubj")}(hhh]h)}(h+index of the GPIO to obtain in the consumerh]h+index of the GPIO to obtain in the consumer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j!hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h>``enum gpiod_flags flags`` optional GPIO initialization flags h](j)}(h``enum gpiod_flags flags``h]j )}(hjκh]henum gpiod_flags flags}(hjкhhhNhNubah}(h]h ]h"]h$]h&]uh1j hj̺ubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMhjȺubj")}(hhh]h)}(h"optional GPIO initialization flagsh]h"optional GPIO initialization flags}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j!hjȺubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hj h]h Description}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMhjubh)}(hThis is equivalent to gpiod_get_index(), except that when no GPIO with the specified index was assigned to the requested function it will return NULL. This is convenient for drivers that need to handle optional GPIOs.h]hThis is equivalent to gpiod_get_index(), except that when no GPIO with the specified index was assigned to the requested function it will return NULL. This is convenient for drivers that need to handle optional GPIOs.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMhjubh)}(h **Return**h]j)}(hj0h]hReturn}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj.ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMhjubh)}(hA valid GPIO descriptor, NULL if no GPIO has been assigned to the requested function and/or index, or another IS_ERR() code if an error occurred while trying to acquire the GPIO.h]hA valid GPIO descriptor, NULL if no GPIO has been assigned to the requested function and/or index, or another IS_ERR() code if an error occurred while trying to acquire the GPIO.}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubj )}(hhh]h}(h]h ]h"]h$]h&]entries](jgpiod_get_array (C function)c.gpiod_get_arrayhNtauh1j hhhhhNhNubj)}(hhh](j")}(hdstruct gpio_descs * gpiod_get_array (struct device *dev, const char *con_id, enum gpiod_flags flags)h]j()}(hbstruct gpio_descs *gpiod_get_array(struct device *dev, const char *con_id, enum gpiod_flags flags)h](j.)}(hj1h]hstruct}(hjuhhhNhNubah}(h]h ]j:ah"]h$]h&]uh1j-hjqhhh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMlubj@)}(h h]h }(hjhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjqhhhjhMlubh)}(hhh]jW)}(h gpio_descsh]h gpio_descs}(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjubah}(h]h ]h"]h$]h&] refdomainjreftypej+ reftargetjmodnameN classnameNjj)}j]j3)}j+gpiod_get_arraysbc.gpiod_get_arrayasbuh1hhjqhhhjhMlubj@)}(h h]h }(hjhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjqhhhjhMlubjH)}(hjKh]h*}(hjûhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjqhhhjhMlubjQ)}(hgpiod_get_arrayh]jW)}(hjh]hgpiod_get_array}(hjԻhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjлubah}(h]h ](jijjeh"]h$]h&]jnjouh1jPhjqhhhjhMlubjp)}(h@(struct device *dev, const char *con_id, enum gpiod_flags flags)h](jv)}(hstruct device *devh](j.)}(hj1h]hstruct}(hjhhhNhNubah}(h]h ]j:ah"]h$]h&]uh1j-hjubj@)}(h h]h }(hjhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjubh)}(hhh]jW)}(hdeviceh]hdevice}(hj hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhj ubah}(h]h ]h"]h$]h&] refdomainjreftypej+ reftargetjmodnameN classnameNjj)}j]jc.gpiod_get_arrayasbuh1hhjubj@)}(h h]h }(hj+hhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjubjH)}(hjKh]h*}(hj9hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjubjW)}(hdevh]hdev}(hjFhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjubeh}(h]h ]h"]h$]h&]noemphjnjouh1juhjubjv)}(hconst char *con_idh](j.)}(hj{#h]hconst}(hj_hhhNhNubah}(h]h ]j:ah"]h$]h&]uh1j-hj[ubj@)}(h h]h }(hjlhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hj[ubj|)}(hcharh]hchar}(hjzhhhNhNubah}(h]h ]jah"]h$]h&]uh1j{hj[ubj@)}(h h]h }(hjhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hj[ubjH)}(hjKh]h*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj[ubjW)}(hcon_idh]hcon_id}(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhj[ubeh}(h]h ]h"]h$]h&]noemphjnjouh1juhjubjv)}(henum gpiod_flags flagsh](j.)}(hjXh]henum}(hjhhhNhNubah}(h]h ]j:ah"]h$]h&]uh1j-hjubj@)}(h h]h }(hjɼhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjubh)}(hhh]jW)}(h gpiod_flagsh]h gpiod_flags}(hjڼhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhj׼ubah}(h]h ]h"]h$]h&] refdomainjreftypej+ reftargetjܼmodnameN classnameNjj)}j]jc.gpiod_get_arrayasbuh1hhjubj@)}(h h]h }(hjhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjubjW)}(hflagsh]hflags}(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjubeh}(h]h ]h"]h$]h&]noemphjnjouh1juhjubeh}(h]h ]h"]h$]h&]jnjouh1johjqhhhjhMlubeh}(h]h ]h"]h$]h&]jnjojvuh1j'jwjxhjmhhhjhMlubah}(h]jhah ](j|j}eh"]h$]h&]jj)jhuh1j!hjhMlhjjhhubj)}(hhh]h)}(h6obtain multiple GPIOs from a multi-index GPIO functionh]h6obtain multiple GPIOs from a multi-index GPIO function}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMlhj-hhubah}(h]h ]h"]h$]h&]uh1jhjjhhhjhMlubeh}(h]h ](jfunctioneh"]h$]h&]jjjjHjjHjjjuh1jhhhhhNhNubj)}(hX**Parameters** ``struct device *dev`` GPIO consumer, can be NULL for system-global GPIOs ``const char *con_id`` function within the GPIO consumer ``enum gpiod_flags flags`` optional GPIO initialization flags **Description** This function acquires all the GPIOs defined under a given function. **Return** The GPIO descriptors corresponding to the function **con_id** of device dev, -ENOENT if no GPIO has been assigned to the requested function, or another IS_ERR() code if an error occurred while trying to acquire the GPIOs.h](h)}(h**Parameters**h]j)}(hjRh]h Parameters}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1jhjPubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMphjLubj)}(hhh](j)}(hJ``struct device *dev`` GPIO consumer, can be NULL for system-global GPIOs h](j)}(h``struct device *dev``h]j )}(hjqh]hstruct device *dev}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1j hjoubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMmhjkubj")}(hhh]h)}(h2GPIO consumer, can be NULL for system-global GPIOsh]h2GPIO consumer, can be NULL for system-global GPIOs}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMmhjubah}(h]h ]h"]h$]h&]uh1j!hjkubeh}(h]h ]h"]h$]h&]uh1jhjhMmhjhubj)}(h9``const char *con_id`` function within the GPIO consumer h](j)}(h``const char *con_id``h]j )}(hjh]hconst char *con_id}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMnhjubj")}(hhh]h)}(h!function within the GPIO consumerh]h!function within the GPIO consumer}(hjýhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMnhjubah}(h]h ]h"]h$]h&]uh1j!hjubeh}(h]h ]h"]h$]h&]uh1jhjhMnhjhubj)}(h>``enum gpiod_flags flags`` optional GPIO initialization flags h](j)}(h``enum gpiod_flags flags``h]j )}(hjh]henum gpiod_flags flags}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMohjݽubj")}(hhh]h)}(h"optional GPIO initialization flagsh]h"optional GPIO initialization flags}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMohjubah}(h]h ]h"]h$]h&]uh1j!hjݽubeh}(h]h ]h"]h$]h&]uh1jhjhMohjhubeh}(h]h ]h"]h$]h&]uh1jhjLubh)}(h**Description**h]j)}(hjh]h Description}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMqhjLubh)}(hDThis function acquires all the GPIOs defined under a given function.h]hDThis function acquires all the GPIOs defined under a given function.}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMqhjLubh)}(h **Return**h]j)}(hjEh]hReturn}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjCubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMshjLubh)}(hThe GPIO descriptors corresponding to the function **con_id** of device dev, -ENOENT if no GPIO has been assigned to the requested function, or another IS_ERR() code if an error occurred while trying to acquire the GPIOs.h](h3The GPIO descriptors corresponding to the function }(hj[hhhNhNubj)}(h **con_id**h]hcon_id}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1jhj[ubh of device dev, -ENOENT if no GPIO has been assigned to the requested function, or another IS_ERR() code if an error occurred while trying to acquire the GPIOs.}(hj[hhhNhNubeh}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMshjLubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubj )}(hhh]h}(h]h ]h"]h$]h&]entries](j%gpiod_get_array_optional (C function)c.gpiod_get_array_optionalhNtauh1j hhhhhNhNubj)}(hhh](j")}(hmstruct gpio_descs * gpiod_get_array_optional (struct device *dev, const char *con_id, enum gpiod_flags flags)h]j()}(hkstruct gpio_descs *gpiod_get_array_optional(struct device *dev, const char *con_id, enum gpiod_flags flags)h](j.)}(hj1h]hstruct}(hjhhhNhNubah}(h]h ]j:ah"]h$]h&]uh1j-hjhhh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMubj@)}(h h]h }(hjhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjhhhjhMubh)}(hhh]jW)}(h gpio_descsh]h gpio_descs}(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjubah}(h]h ]h"]h$]h&] refdomainjreftypej+ reftargetjmodnameN classnameNjj)}j]j3)}j+gpiod_get_array_optionalsbc.gpiod_get_array_optionalasbuh1hhjhhhjhMubj@)}(h h]h }(hjܾhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjhhhjhMubjH)}(hjKh]h*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjhhhjhMubjQ)}(hgpiod_get_array_optionalh]jW)}(hjپh]hgpiod_get_array_optional}(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjubah}(h]h ](jijjeh"]h$]h&]jnjouh1jPhjhhhjhMubjp)}(h@(struct device *dev, const char *con_id, enum gpiod_flags flags)h](jv)}(hstruct device *devh](j.)}(hj1h]hstruct}(hjhhhNhNubah}(h]h ]j:ah"]h$]h&]uh1j-hjubj@)}(h h]h }(hj#hhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjubh)}(hhh]jW)}(hdeviceh]hdevice}(hj4hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhj1ubah}(h]h ]h"]h$]h&] refdomainjreftypej+ reftargetj6modnameN classnameNjj)}j]j׾c.gpiod_get_array_optionalasbuh1hhjubj@)}(h h]h }(hjRhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjubjH)}(hjKh]h*}(hj`hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjubjW)}(hdevh]hdev}(hjmhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjubeh}(h]h ]h"]h$]h&]noemphjnjouh1juhjubjv)}(hconst char *con_idh](j.)}(hj{#h]hconst}(hjhhhNhNubah}(h]h ]j:ah"]h$]h&]uh1j-hjubj@)}(h h]h }(hjhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjubj|)}(hcharh]hchar}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j{hjubj@)}(h h]h }(hjhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjubjH)}(hjKh]h*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjubjW)}(hcon_idh]hcon_id}(hjʿhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjubeh}(h]h ]h"]h$]h&]noemphjnjouh1juhjubjv)}(henum gpiod_flags flagsh](j.)}(hjXh]henum}(hjhhhNhNubah}(h]h ]j:ah"]h$]h&]uh1j-hj߿ubj@)}(h h]h }(hjhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hj߿ubh)}(hhh]jW)}(h gpiod_flagsh]h gpiod_flags}(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjubah}(h]h ]h"]h$]h&] refdomainjreftypej+ reftargetjmodnameN classnameNjj)}j]j׾c.gpiod_get_array_optionalasbuh1hhj߿ubj@)}(h h]h }(hjhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hj߿ubjW)}(hflagsh]hflags}(hj-hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhj߿ubeh}(h]h ]h"]h$]h&]noemphjnjouh1juhjubeh}(h]h ]h"]h$]h&]jnjouh1johjhhhjhMubeh}(h]h ]h"]h$]h&]jnjojvuh1j'jwjxhjhhhjhMubah}(h]jah ](j|j}eh"]h$]h&]jj)jhuh1j!hjhMhjhhubj)}(hhh]h)}(h6obtain multiple GPIOs from a multi-index GPIO functionh]h6obtain multiple GPIOs from a multi-index GPIO function}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMhjThhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjojjojjjuh1jhhhhhNhNubj)}(hXP**Parameters** ``struct device *dev`` GPIO consumer, can be NULL for system-global GPIOs ``const char *con_id`` function within the GPIO consumer ``enum gpiod_flags flags`` optional GPIO initialization flags **Description** This is equivalent to gpiod_get_array(), except that when no GPIO was assigned to the requested function it will return NULL. **Return** The GPIO descriptors corresponding to the function **con_id** of device dev, NULL if no GPIO has been assigned to the requested function, or another IS_ERR() code if an error occurred while trying to acquire the GPIOs.h](h)}(h**Parameters**h]j)}(hjyh]h Parameters}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjwubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMhjsubj)}(hhh](j)}(hJ``struct device *dev`` GPIO consumer, can be NULL for system-global GPIOs h](j)}(h``struct device *dev``h]j )}(hjh]hstruct device *dev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMhjubj")}(hhh]h)}(h2GPIO consumer, can be NULL for system-global GPIOsh]h2GPIO consumer, can be NULL for system-global GPIOs}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j!hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h9``const char *con_id`` function within the GPIO consumer h](j)}(h``const char *con_id``h]j )}(hjh]hconst char *con_id}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMhjubj")}(hhh]h)}(h!function within the GPIO consumerh]h!function within the GPIO consumer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j!hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h>``enum gpiod_flags flags`` optional GPIO initialization flags h](j)}(h``enum gpiod_flags flags``h]j )}(hj h]henum gpiod_flags flags}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j hjubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMhjubj")}(hhh]h)}(h"optional GPIO initialization flagsh]h"optional GPIO initialization flags}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhj ubah}(h]h ]h"]h$]h&]uh1j!hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubeh}(h]h ]h"]h$]h&]uh1jhjsubh)}(h**Description**h]j)}(hjEh]h Description}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjCubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMhjsubh)}(h}This is equivalent to gpiod_get_array(), except that when no GPIO was assigned to the requested function it will return NULL.h]h}This is equivalent to gpiod_get_array(), except that when no GPIO was assigned to the requested function it will return NULL.}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMhjsubh)}(h **Return**h]j)}(hjlh]hReturn}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjjubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMhjsubh)}(hThe GPIO descriptors corresponding to the function **con_id** of device dev, NULL if no GPIO has been assigned to the requested function, or another IS_ERR() code if an error occurred while trying to acquire the GPIOs.h](h3The GPIO descriptors corresponding to the function }(hjhhhNhNubj)}(h **con_id**h]hcon_id}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh of device dev, NULL if no GPIO has been assigned to the requested function, or another IS_ERR() code if an error occurred while trying to acquire the GPIOs.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMhjsubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubj )}(hhh]h}(h]h ]h"]h$]h&]entries](jgpiod_put (C function) c.gpiod_puthNtauh1j hhhhhNhNubj)}(hhh](j")}(h'void gpiod_put (struct gpio_desc *desc)h]j()}(h&void gpiod_put(struct gpio_desc *desc)h](j|)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j{hjhhh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chM ubj@)}(h h]h }(hjhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjhhhjhM ubjQ)}(h gpiod_puth]jW)}(h gpiod_puth]h gpiod_put}(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjubah}(h]h ](jijjeh"]h$]h&]jnjouh1jPhjhhhjhM ubjp)}(h(struct gpio_desc *desc)h]jv)}(hstruct gpio_desc *desch](j.)}(hj1h]hstruct}(hjhhhNhNubah}(h]h ]j:ah"]h$]h&]uh1j-hjubj@)}(h h]h }(hj hhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjubh)}(hhh]jW)}(h gpio_desch]h gpio_desc}(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjubah}(h]h ]h"]h$]h&] refdomainjreftypej+ reftargetj modnameN classnameNjj)}j]j3)}j+jsb c.gpiod_putasbuh1hhjubj@)}(h h]h }(hj>hhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjubjH)}(hjKh]h*}(hjLhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjubjW)}(hdesch]hdesc}(hjYhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjubeh}(h]h ]h"]h$]h&]noemphjnjouh1juhjubah}(h]h ]h"]h$]h&]jnjouh1johjhhhjhM ubeh}(h]h ]h"]h$]h&]jnjojvuh1j'jwjxhjhhhjhM ubah}(h]jah ](j|j}eh"]h$]h&]jj)jhuh1j!hjhM hjhhubj)}(hhh]h)}(hdispose of a GPIO descriptorh]hdispose of a GPIO descriptor}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chM hjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhhhNhNubj)}(h**Parameters** ``struct gpio_desc *desc`` GPIO descriptor to dispose of **Description** No descriptor can be used after gpiod_put() has been called on it.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMhjubj)}(hhh]j)}(h9``struct gpio_desc *desc`` GPIO descriptor to dispose of h](j)}(h``struct gpio_desc *desc``h]j )}(hjh]hstruct gpio_desc *desc}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMhjubj")}(hhh]h)}(hGPIO descriptor to dispose ofh]hGPIO descriptor to dispose of}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j!hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMhjubh)}(hBNo descriptor can be used after gpiod_put() has been called on it.h]hBNo descriptor can be used after gpiod_put() has been called on it.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubj )}(hhh]h}(h]h ]h"]h$]h&]entries](jgpiod_put_array (C function)c.gpiod_put_arrayhNtauh1j hhhhhNhNubj)}(hhh](j")}(h/void gpiod_put_array (struct gpio_descs *descs)h]j()}(h.void gpiod_put_array(struct gpio_descs *descs)h](j|)}(hvoidh]hvoid}(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1j{hj@hhh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMubj@)}(h h]h }(hjShhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hj@hhhjRhMubjQ)}(hgpiod_put_arrayh]jW)}(hgpiod_put_arrayh]hgpiod_put_array}(hjehhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjaubah}(h]h ](jijjeh"]h$]h&]jnjouh1jPhj@hhhjRhMubjp)}(h(struct gpio_descs *descs)h]jv)}(hstruct gpio_descs *descsh](j.)}(hj1h]hstruct}(hjhhhNhNubah}(h]h ]j:ah"]h$]h&]uh1j-hj}ubj@)}(h h]h }(hjhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hj}ubh)}(hhh]jW)}(h gpio_descsh]h gpio_descs}(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjubah}(h]h ]h"]h$]h&] refdomainjreftypej+ reftargetjmodnameN classnameNjj)}j]j3)}j+jgsbc.gpiod_put_arrayasbuh1hhj}ubj@)}(h h]h }(hjhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hj}ubjH)}(hjKh]h*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj}ubjW)}(hdescsh]hdescs}(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhj}ubeh}(h]h ]h"]h$]h&]noemphjnjouh1juhjyubah}(h]h ]h"]h$]h&]jnjouh1johj@hhhjRhMubeh}(h]h ]h"]h$]h&]jnjojvuh1j'jwjxhj<hhhjRhMubah}(h]j7ah ](j|j}eh"]h$]h&]jj)jhuh1j!hjRhMhj9hhubj)}(hhh]h)}(h$dispose of multiple GPIO descriptorsh]h$dispose of multiple GPIO descriptors}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhj9hhhjRhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhhhNhNubj)}(hc**Parameters** ``struct gpio_descs *descs`` struct gpio_descs containing an array of descriptorsh](h)}(h**Parameters**h]j)}(hj&h]h Parameters}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj$ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMhj ubj)}(hhh]j)}(hQ``struct gpio_descs *descs`` struct gpio_descs containing an array of descriptorsh](j)}(h``struct gpio_descs *descs``h]j )}(hjEh]hstruct gpio_descs *descs}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjCubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMhj?ubj")}(hhh]h)}(h4struct gpio_descs containing an array of descriptorsh]h4struct gpio_descs containing an array of descriptors}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMhj[ubah}(h]h ]h"]h$]h&]uh1j!hj?ubeh}(h]h ]h"]h$]h&]uh1jhjZhMhj<ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubeh}(h]coreah ]h"]coreah$]h&]uh1hhhhhhhhKubh)}(hhh](h)}(h ACPI supporth]h ACPI support}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhKubj )}(hhh]h}(h]h ]h"]h$]h&]entries](j&acpi_gpio_get_io_resource (C function)c.acpi_gpio_get_io_resourcehNtauh1j hjhhhNhNubj)}(hhh](j")}(h^bool acpi_gpio_get_io_resource (struct acpi_resource *ares, struct acpi_resource_gpio **agpio)h]j()}(h]bool acpi_gpio_get_io_resource(struct acpi_resource *ares, struct acpi_resource_gpio **agpio)h](j|)}(hj)h]hbool}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j{hjhhhf/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:30: ./drivers/gpio/gpiolib-acpi-core.chKubj@)}(h h]h }(hjhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjhhhjhKubjQ)}(hacpi_gpio_get_io_resourceh]jW)}(hacpi_gpio_get_io_resourceh]hacpi_gpio_get_io_resource}(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjubah}(h]h ](jijjeh"]h$]h&]jnjouh1jPhjhhhjhKubjp)}(h?(struct acpi_resource *ares, struct acpi_resource_gpio **agpio)h](jv)}(hstruct acpi_resource *aresh](j.)}(hj1h]hstruct}(hjhhhNhNubah}(h]h ]j:ah"]h$]h&]uh1j-hjubj@)}(h h]h }(hjhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjubh)}(hhh]jW)}(h acpi_resourceh]h acpi_resource}(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjubah}(h]h ]h"]h$]h&] refdomainjreftypej+ reftargetjmodnameN classnameNjj)}j]j3)}j+jsbc.acpi_gpio_get_io_resourceasbuh1hhjubj@)}(h h]h }(hj2hhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjubjH)}(hjKh]h*}(hj@hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjubjW)}(haresh]hares}(hjMhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjubeh}(h]h ]h"]h$]h&]noemphjnjouh1juhjubjv)}(h!struct acpi_resource_gpio **agpioh](j.)}(hj1h]hstruct}(hjfhhhNhNubah}(h]h ]j:ah"]h$]h&]uh1j-hjbubj@)}(h h]h }(hjshhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjbubh)}(hhh]jW)}(hacpi_resource_gpioh]hacpi_resource_gpio}(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjubah}(h]h ]h"]h$]h&] refdomainjreftypej+ reftargetjmodnameN classnameNjj)}j]j.c.acpi_gpio_get_io_resourceasbuh1hhjbubj@)}(h h]h }(hjhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjbubjH)}(hjKh]h*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjbubjH)}(hjKh]h*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjbubjW)}(hagpioh]hagpio}(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjbubeh}(h]h ]h"]h$]h&]noemphjnjouh1juhjubeh}(h]h ]h"]h$]h&]jnjouh1johjhhhjhKubeh}(h]h ]h"]h$]h&]jnjojvuh1j'jwjxhjhhhjhKubah}(h]jah ](j|j}eh"]h$]h&]jj)jhuh1j!hjhKhjhhubj)}(hhh]h)}(hVFetch details of an ACPI resource if it is a GPIO I/O resource or return False if not.h]hVFetch details of an ACPI resource if it is a GPIO I/O resource or return False if not.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhf/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:30: ./drivers/gpio/gpiolib-acpi-core.chKhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjj jj jjjuh1jhhhjhNhNubj)}(hX)**Parameters** ``struct acpi_resource *ares`` Pointer to the ACPI resource to fetch ``struct acpi_resource_gpio **agpio`` Pointer to a :c:type:`struct acpi_resource_gpio ` to store the output pointer **Return** ``true`` if GpioIo resource is found, ``false`` otherwise.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhf/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:30: ./drivers/gpio/gpiolib-acpi-core.chKhjubj)}(hhh](j)}(hE``struct acpi_resource *ares`` Pointer to the ACPI resource to fetch h](j)}(h``struct acpi_resource *ares``h]j )}(hj5h]hstruct acpi_resource *ares}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1j hj3ubah}(h]h ]h"]h$]h&]uh1jhf/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:30: ./drivers/gpio/gpiolib-acpi-core.chKhj/ubj")}(hhh]h)}(h%Pointer to the ACPI resource to fetchh]h%Pointer to the ACPI resource to fetch}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjJhKhjKubah}(h]h ]h"]h$]h&]uh1j!hj/ubeh}(h]h ]h"]h$]h&]uh1jhjJhKhj,ubj)}(h``struct acpi_resource_gpio **agpio`` Pointer to a :c:type:`struct acpi_resource_gpio ` to store the output pointer h](j)}(h%``struct acpi_resource_gpio **agpio``h]j )}(hjnh]h!struct acpi_resource_gpio **agpio}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1j hjlubah}(h]h ]h"]h$]h&]uh1jhf/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:30: ./drivers/gpio/gpiolib-acpi-core.chKhjhubj")}(hhh]h)}(haPointer to a :c:type:`struct acpi_resource_gpio ` to store the output pointerh](h Pointer to a }(hjhhhNhNubh)}(h8:c:type:`struct acpi_resource_gpio `h]j )}(hjh]hstruct acpi_resource_gpio}(hjhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1j hjubah}(h]h ]h"]h$]h&]refdoch׌ refdomainjreftypetype refexplicitrefwarnjjjacpi_resource_gpiouh1hhjhKhjubh to store the output pointer}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1j!hjhubeh}(h]h ]h"]h$]h&]uh1jhjhKhj,ubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhf/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:30: ./drivers/gpio/gpiolib-acpi-core.chKhjubh)}(h:``true`` if GpioIo resource is found, ``false`` otherwise.h](j )}(h``true``h]htrue}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjubh if GpioIo resource is found, }(hjhhhNhNubj )}(h ``false``h]hfalse}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjubh otherwise.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhf/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:30: ./drivers/gpio/gpiolib-acpi-core.chKhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubj )}(hhh]h}(h]h ]h"]h$]h&]entries](j-acpi_gpiochip_request_interrupts (C function)"c.acpi_gpiochip_request_interruptshNtauh1j hjhhhNhNubj)}(hhh](j")}(h>void acpi_gpiochip_request_interrupts (struct gpio_chip *chip)h]j()}(h=void acpi_gpiochip_request_interrupts(struct gpio_chip *chip)h](j|)}(hvoidh]hvoid}(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1j{hj-hhhf/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:30: ./drivers/gpio/gpiolib-acpi-core.chMubj@)}(h h]h }(hj@hhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hj-hhhj?hMubjQ)}(h acpi_gpiochip_request_interruptsh]jW)}(h acpi_gpiochip_request_interruptsh]h acpi_gpiochip_request_interrupts}(hjRhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjNubah}(h]h ](jijjeh"]h$]h&]jnjouh1jPhj-hhhj?hMubjp)}(h(struct gpio_chip *chip)h]jv)}(hstruct gpio_chip *chiph](j.)}(hj1h]hstruct}(hjnhhhNhNubah}(h]h ]j:ah"]h$]h&]uh1j-hjjubj@)}(h h]h }(hj{hhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjjubh)}(hhh]jW)}(h gpio_chiph]h gpio_chip}(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjubah}(h]h ]h"]h$]h&] refdomainjreftypej+ reftargetjmodnameN classnameNjj)}j]j3)}j+jTsb"c.acpi_gpiochip_request_interruptsasbuh1hhjjubj@)}(h h]h }(hjhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjjubjH)}(hjKh]h*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjjubjW)}(hchiph]hchip}(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjjubeh}(h]h ]h"]h$]h&]noemphjnjouh1juhjfubah}(h]h ]h"]h$]h&]jnjouh1johj-hhhj?hMubeh}(h]h ]h"]h$]h&]jnjojvuh1j'jwjxhj)hhhj?hMubah}(h]j$ah ](j|j}eh"]h$]h&]jj)jhuh1j!hj?hMhj&hhubj)}(hhh]h)}(h&Register isr for gpio chip ACPI eventsh]h&Register isr for gpio chip ACPI events}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhf/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:30: ./drivers/gpio/gpiolib-acpi-core.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhj&hhhj?hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj jj jjjuh1jhhhjhNhNubj)}(hX**Parameters** ``struct gpio_chip *chip`` GPIO chip **Description** ACPI5 platforms can use GPIO signaled ACPI events. These GPIO interrupts are handled by ACPI event methods which need to be called from the GPIO chip's interrupt handler. acpi_gpiochip_request_interrupts() finds out which GPIO pins have ACPI event methods and assigns interrupt handlers that calls the ACPI event methods for those pins.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhf/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:30: ./drivers/gpio/gpiolib-acpi-core.chMhj ubj)}(hhh]j)}(h%``struct gpio_chip *chip`` GPIO chip h](j)}(h``struct gpio_chip *chip``h]j )}(hj2h]hstruct gpio_chip *chip}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1j hj0ubah}(h]h ]h"]h$]h&]uh1jhf/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:30: ./drivers/gpio/gpiolib-acpi-core.chMhj,ubj")}(hhh]h)}(h GPIO chiph]h GPIO chip}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjGhMhjHubah}(h]h ]h"]h$]h&]uh1j!hj,ubeh}(h]h ]h"]h$]h&]uh1jhjGhMhj)ubah}(h]h ]h"]h$]h&]uh1jhj ubh)}(h**Description**h]j)}(hjmh]h Description}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jhjkubah}(h]h ]h"]h$]h&]uh1hhf/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:30: ./drivers/gpio/gpiolib-acpi-core.chMhj ubh)}(hXPACPI5 platforms can use GPIO signaled ACPI events. These GPIO interrupts are handled by ACPI event methods which need to be called from the GPIO chip's interrupt handler. acpi_gpiochip_request_interrupts() finds out which GPIO pins have ACPI event methods and assigns interrupt handlers that calls the ACPI event methods for those pins.h]hXRACPI5 platforms can use GPIO signaled ACPI events. These GPIO interrupts are handled by ACPI event methods which need to be called from the GPIO chip’s interrupt handler. acpi_gpiochip_request_interrupts() finds out which GPIO pins have ACPI event methods and assigns interrupt handlers that calls the ACPI event methods for those pins.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhf/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:30: ./drivers/gpio/gpiolib-acpi-core.chMhj ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubj )}(hhh]h}(h]h ]h"]h$]h&]entries](j*acpi_gpiochip_free_interrupts (C function)c.acpi_gpiochip_free_interruptshNtauh1j hjhhhNhNubj)}(hhh](j")}(h;void acpi_gpiochip_free_interrupts (struct gpio_chip *chip)h]j()}(h:void acpi_gpiochip_free_interrupts(struct gpio_chip *chip)h](j|)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j{hjhhhf/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:30: ./drivers/gpio/gpiolib-acpi-core.chMubj@)}(h h]h }(hjhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjhhhjhMubjQ)}(hacpi_gpiochip_free_interruptsh]jW)}(hacpi_gpiochip_free_interruptsh]hacpi_gpiochip_free_interrupts}(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjubah}(h]h ](jijjeh"]h$]h&]jnjouh1jPhjhhhjhMubjp)}(h(struct gpio_chip *chip)h]jv)}(hstruct gpio_chip *chiph](j.)}(hj1h]hstruct}(hjhhhNhNubah}(h]h ]j:ah"]h$]h&]uh1j-hjubj@)}(h h]h }(hjhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjubh)}(hhh]jW)}(h gpio_chiph]h gpio_chip}(hj hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhj ubah}(h]h ]h"]h$]h&] refdomainjreftypej+ reftargetjmodnameN classnameNjj)}j]j3)}j+jsbc.acpi_gpiochip_free_interruptsasbuh1hhjubj@)}(h h]h }(hj-hhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjubjH)}(hjKh]h*}(hj;hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjubjW)}(hchiph]hchip}(hjHhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjubeh}(h]h ]h"]h$]h&]noemphjnjouh1juhjubah}(h]h ]h"]h$]h&]jnjouh1johjhhhjhMubeh}(h]h ]h"]h$]h&]jnjojvuh1j'jwjxhjhhhjhMubah}(h]jah ](j|j}eh"]h$]h&]jj)jhuh1j!hjhMhjhhubj)}(hhh]h)}(h Free GPIO ACPI event interrupts.h]h Free GPIO ACPI event interrupts.}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1hhf/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:30: ./drivers/gpio/gpiolib-acpi-core.chMhjohhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhjhNhNubj)}(h**Parameters** ``struct gpio_chip *chip`` GPIO chip **Description** Free interrupts associated with GPIO ACPI event method for the given GPIO chip.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhf/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:30: ./drivers/gpio/gpiolib-acpi-core.chMhjubj)}(hhh]j)}(h%``struct gpio_chip *chip`` GPIO chip h](j)}(h``struct gpio_chip *chip``h]j )}(hjh]hstruct gpio_chip *chip}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjubah}(h]h ]h"]h$]h&]uh1jhf/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:30: ./drivers/gpio/gpiolib-acpi-core.chMhjubj")}(hhh]h)}(h GPIO chiph]h GPIO chip}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j!hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhf/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:30: ./drivers/gpio/gpiolib-acpi-core.chMhjubh)}(hOFree interrupts associated with GPIO ACPI event method for the given GPIO chip.h]hOFree interrupts associated with GPIO ACPI event method for the given GPIO chip.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhf/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:30: ./drivers/gpio/gpiolib-acpi-core.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubj )}(hhh]h}(h]h ]h"]h$]h&]entries](j*acpi_dev_gpio_irq_wake_get_by (C function)c.acpi_dev_gpio_irq_wake_get_byhNtauh1j hjhhhNhNubj)}(hhh](j")}(hoint acpi_dev_gpio_irq_wake_get_by (struct acpi_device *adev, const char *con_id, int index, bool *wake_capable)h]j()}(hnint acpi_dev_gpio_irq_wake_get_by(struct acpi_device *adev, const char *con_id, int index, bool *wake_capable)h](j|)}(hinth]hint}(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1j{hj/hhhf/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:30: ./drivers/gpio/gpiolib-acpi-core.chMubj@)}(h h]h }(hjBhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hj/hhhjAhMubjQ)}(hacpi_dev_gpio_irq_wake_get_byh]jW)}(hacpi_dev_gpio_irq_wake_get_byh]hacpi_dev_gpio_irq_wake_get_by}(hjThhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjPubah}(h]h ](jijjeh"]h$]h&]jnjouh1jPhj/hhhjAhMubjp)}(hM(struct acpi_device *adev, const char *con_id, int index, bool *wake_capable)h](jv)}(hstruct acpi_device *adevh](j.)}(hj1h]hstruct}(hjphhhNhNubah}(h]h ]j:ah"]h$]h&]uh1j-hjlubj@)}(h h]h }(hj}hhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjlubh)}(hhh]jW)}(h acpi_deviceh]h acpi_device}(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjubah}(h]h ]h"]h$]h&] refdomainjreftypej+ reftargetjmodnameN classnameNjj)}j]j3)}j+jVsbc.acpi_dev_gpio_irq_wake_get_byasbuh1hhjlubj@)}(h h]h }(hjhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjlubjH)}(hjKh]h*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjlubjW)}(hadevh]hadev}(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjlubeh}(h]h ]h"]h$]h&]noemphjnjouh1juhjhubjv)}(hconst char *con_idh](j.)}(hj{#h]hconst}(hjhhhNhNubah}(h]h ]j:ah"]h$]h&]uh1j-hjubj@)}(h h]h }(hjhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjubj|)}(hcharh]hchar}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j{hjubj@)}(h h]h }(hj hhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjubjH)}(hjKh]h*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjubjW)}(hcon_idh]hcon_id}(hj&hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjubeh}(h]h ]h"]h$]h&]noemphjnjouh1juhjhubjv)}(h int indexh](j|)}(hinth]hint}(hj?hhhNhNubah}(h]h ]jah"]h$]h&]uh1j{hj;ubj@)}(h h]h }(hjMhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hj;ubjW)}(hindexh]hindex}(hj[hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhj;ubeh}(h]h ]h"]h$]h&]noemphjnjouh1juhjhubjv)}(hbool *wake_capableh](j|)}(hj)h]hbool}(hjthhhNhNubah}(h]h ]jah"]h$]h&]uh1j{hjpubj@)}(h h]h }(hjhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjpubjH)}(hjKh]h*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjpubjW)}(h wake_capableh]h wake_capable}(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjpubeh}(h]h ]h"]h$]h&]noemphjnjouh1juhjhubeh}(h]h ]h"]h$]h&]jnjouh1johj/hhhjAhMubeh}(h]h ]h"]h$]h&]jnjojvuh1j'jwjxhj+hhhjAhMubah}(h]j&ah ](j|j}eh"]h$]h&]jj)jhuh1j!hjAhMhj(hhubj)}(hhh]h)}(h1Find GpioInt and translate it to Linux IRQ numberh]h1Find GpioInt and translate it to Linux IRQ number}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhf/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:30: ./drivers/gpio/gpiolib-acpi-core.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhj(hhhjAhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhjhNhNubj)}(hX**Parameters** ``struct acpi_device *adev`` pointer to a ACPI device to get IRQ from ``const char *con_id`` optional name of GpioInt resource ``int index`` index of GpioInt resource (starting from ``0``) ``bool *wake_capable`` Set to true if the IRQ is wake capable **Description** If the device has one or more GpioInt resources, this function can be used to translate from the GPIO offset in the resource to the Linux IRQ number. The function is idempotent, though each time it runs it will configure GPIO pin direction according to the flags in GpioInt resource. The function takes optional **con_id** parameter. If the resource has a **con_id** in a property, then only those will be taken into account. The GPIO is considered wake capable if the GpioInt resource specifies SharedAndWake or ExclusiveAndWake. **Return** Linux IRQ number (> 0) on success, negative errno on failure.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhf/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:30: ./drivers/gpio/gpiolib-acpi-core.chMhjubj)}(hhh](j)}(hF``struct acpi_device *adev`` pointer to a ACPI device to get IRQ from h](j)}(h``struct acpi_device *adev``h]j )}(hjh]hstruct acpi_device *adev}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j hjubah}(h]h ]h"]h$]h&]uh1jhf/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:30: ./drivers/gpio/gpiolib-acpi-core.chMhjubj")}(hhh]h)}(h(pointer to a ACPI device to get IRQ fromh]h(pointer to a ACPI device to get IRQ from}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j!hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h9``const char *con_id`` optional name of GpioInt resource h](j)}(h``const char *con_id``h]j )}(hj@h]hconst char *con_id}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1j hj>ubah}(h]h ]h"]h$]h&]uh1jhf/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:30: ./drivers/gpio/gpiolib-acpi-core.chMhj:ubj")}(hhh]h)}(h!optional name of GpioInt resourceh]h!optional name of GpioInt resource}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjUhMhjVubah}(h]h ]h"]h$]h&]uh1j!hj:ubeh}(h]h ]h"]h$]h&]uh1jhjUhMhjubj)}(h>``int index`` index of GpioInt resource (starting from ``0``) h](j)}(h ``int index``h]j )}(hjyh]h int index}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1j hjwubah}(h]h ]h"]h$]h&]uh1jhf/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:30: ./drivers/gpio/gpiolib-acpi-core.chMhjsubj")}(hhh]h)}(h/index of GpioInt resource (starting from ``0``)h](h)index of GpioInt resource (starting from }(hjhhhNhNubj )}(h``0``h]h0}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjubh)}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j!hjsubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h>``bool *wake_capable`` Set to true if the IRQ is wake capable h](j)}(h``bool *wake_capable``h]j )}(hjh]hbool *wake_capable}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjubah}(h]h ]h"]h$]h&]uh1jhf/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:30: ./drivers/gpio/gpiolib-acpi-core.chMhjubj")}(hhh]h)}(h&Set to true if the IRQ is wake capableh]h&Set to true if the IRQ is wake capable}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j!hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhf/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:30: ./drivers/gpio/gpiolib-acpi-core.chMhjubh)}(hIf the device has one or more GpioInt resources, this function can be used to translate from the GPIO offset in the resource to the Linux IRQ number.h]hIf the device has one or more GpioInt resources, this function can be used to translate from the GPIO offset in the resource to the Linux IRQ number.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhf/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:30: ./drivers/gpio/gpiolib-acpi-core.chMhjubh)}(hThe function is idempotent, though each time it runs it will configure GPIO pin direction according to the flags in GpioInt resource.h]hThe function is idempotent, though each time it runs it will configure GPIO pin direction according to the flags in GpioInt resource.}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1hhf/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:30: ./drivers/gpio/gpiolib-acpi-core.chMhjubh)}(hThe function takes optional **con_id** parameter. If the resource has a **con_id** in a property, then only those will be taken into account.h](hThe function takes optional }(hj3hhhNhNubj)}(h **con_id**h]hcon_id}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3ubh" parameter. If the resource has a }(hj3hhhNhNubj)}(h **con_id**h]hcon_id}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3ubh; in a property, then only those will be taken into account.}(hj3hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhf/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:30: ./drivers/gpio/gpiolib-acpi-core.chMhjubh)}(hhThe GPIO is considered wake capable if the GpioInt resource specifies SharedAndWake or ExclusiveAndWake.h]hhThe GPIO is considered wake capable if the GpioInt resource specifies SharedAndWake or ExclusiveAndWake.}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1hhf/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:30: ./drivers/gpio/gpiolib-acpi-core.chMhjubh)}(h **Return**h]j)}(hjwh]hReturn}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjuubah}(h]h ]h"]h$]h&]uh1hhf/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:30: ./drivers/gpio/gpiolib-acpi-core.chMhjubh)}(h=Linux IRQ number (> 0) on success, negative errno on failure.h]h=Linux IRQ number (> 0) on success, negative errno on failure.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhf/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:30: ./drivers/gpio/gpiolib-acpi-core.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubeh}(h] acpi-supportah ]h"] acpi supportah$]h&]uh1hhhhhhhhKubh)}(hhh](h)}(hDevice tree supporth]hDevice tree support}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhK"ubj )}(hhh]h}(h]h ]h"]h$]h&]entries](jof_get_named_gpio (C function)c.of_get_named_gpiohNtauh1j hjhhhNhNubj)}(hhh](j")}(hUint of_get_named_gpio (const struct device_node *np, const char *propname, int index)h]j()}(hTint of_get_named_gpio(const struct device_node *np, const char *propname, int index)h](j|)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j{hjhhh_/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:36: ./drivers/gpio/gpiolib-of.chMubj@)}(h h]h }(hjhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjhhhjhMubjQ)}(hof_get_named_gpioh]jW)}(hof_get_named_gpioh]hof_get_named_gpio}(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjubah}(h]h ](jijjeh"]h$]h&]jnjouh1jPhjhhhjhMubjp)}(h?(const struct device_node *np, const char *propname, int index)h](jv)}(hconst struct device_node *nph](j.)}(hj{#h]hconst}(hjhhhNhNubah}(h]h ]j:ah"]h$]h&]uh1j-hjubj@)}(h h]h }(hjhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjubj.)}(hj1h]hstruct}(hj-hhhNhNubah}(h]h ]j:ah"]h$]h&]uh1j-hjubj@)}(h h]h }(hj:hhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjubh)}(hhh]jW)}(h device_nodeh]h device_node}(hjKhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjHubah}(h]h ]h"]h$]h&] refdomainjreftypej+ reftargetjMmodnameN classnameNjj)}j]j3)}j+jsbc.of_get_named_gpioasbuh1hhjubj@)}(h h]h }(hjkhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjubjH)}(hjKh]h*}(hjyhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjubjW)}(hnph]hnp}(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjubeh}(h]h ]h"]h$]h&]noemphjnjouh1juhj ubjv)}(hconst char *propnameh](j.)}(hj{#h]hconst}(hjhhhNhNubah}(h]h ]j:ah"]h$]h&]uh1j-hjubj@)}(h h]h }(hjhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjubj|)}(hcharh]hchar}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j{hjubj@)}(h h]h }(hjhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjubjH)}(hjKh]h*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjubjW)}(hpropnameh]hpropname}(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjubeh}(h]h ]h"]h$]h&]noemphjnjouh1juhj ubjv)}(h int indexh](j|)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j{hjubj@)}(h h]h }(hj hhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjubjW)}(hindexh]hindex}(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjubeh}(h]h ]h"]h$]h&]noemphjnjouh1juhj ubeh}(h]h ]h"]h$]h&]jnjouh1johjhhhjhMubeh}(h]h ]h"]h$]h&]jnjojvuh1j'jwjxhjhhhjhMubah}(h]jah ](j|j}eh"]h$]h&]jj)jhuh1j!hjhMhjhhubj)}(hhh]h)}(h&Get a GPIO number to use with GPIO APIh]h&Get a GPIO number to use with GPIO API}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:36: ./drivers/gpio/gpiolib-of.chMhj?hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjZjjZjjjuh1jhhhjhNhNubj)}(hX**Parameters** ``const struct device_node *np`` device node to get GPIO from ``const char *propname`` Name of property containing gpio specifier(s) ``int index`` index of the GPIO **Description** **DEPRECATED** This function is deprecated and must not be used in new code. **Return** GPIO number to use with Linux generic GPIO API, or one of the errno value on the error condition.h](h)}(h**Parameters**h]j)}(hjdh]h Parameters}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjbubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:36: ./drivers/gpio/gpiolib-of.chMhj^ubj)}(hhh](j)}(h>``const struct device_node *np`` device node to get GPIO from h](j)}(h ``const struct device_node *np``h]j )}(hjh]hconst struct device_node *np}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:36: ./drivers/gpio/gpiolib-of.chMhj}ubj")}(hhh]h)}(hdevice node to get GPIO fromh]hdevice node to get GPIO from}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j!hj}ubeh}(h]h ]h"]h$]h&]uh1jhjhMhjzubj)}(hG``const char *propname`` Name of property containing gpio specifier(s) h](j)}(h``const char *propname``h]j )}(hjh]hconst char *propname}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:36: ./drivers/gpio/gpiolib-of.chMhjubj")}(hhh]h)}(h-Name of property containing gpio specifier(s)h]h-Name of property containing gpio specifier(s)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j!hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjzubj)}(h ``int index`` index of the GPIO h](j)}(h ``int index``h]j )}(hjh]h int index}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:36: ./drivers/gpio/gpiolib-of.chMhjubj")}(hhh]h)}(hindex of the GPIOh]hindex of the GPIO}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hMhj ubah}(h]h ]h"]h$]h&]uh1j!hjubeh}(h]h ]h"]h$]h&]uh1jhj hMhjzubeh}(h]h ]h"]h$]h&]uh1jhj^ubh)}(h**Description**h]j)}(hj0h]h Description}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj.ubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:36: ./drivers/gpio/gpiolib-of.chMhj^ubh)}(hL**DEPRECATED** This function is deprecated and must not be used in new code.h](j)}(h**DEPRECATED**h]h DEPRECATED}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjFubh> This function is deprecated and must not be used in new code.}(hjFhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:36: ./drivers/gpio/gpiolib-of.chMhj^ubh)}(h **Return**h]j)}(hjeh]hReturn}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1jhjcubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:36: ./drivers/gpio/gpiolib-of.chMhj^ubh)}(haGPIO number to use with Linux generic GPIO API, or one of the errno value on the error condition.h]haGPIO number to use with Linux generic GPIO API, or one of the errno value on the error condition.}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:36: ./drivers/gpio/gpiolib-of.chMhj^ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubj )}(hhh]h}(h]h ]h"]h$]h&]entries](j$of_mm_gpiochip_add_data (C function)c.of_mm_gpiochip_add_datahNtauh1j hjhhhNhNubj)}(hhh](j")}(h_int of_mm_gpiochip_add_data (struct device_node *np, struct of_mm_gpio_chip *mm_gc, void *data)h]j()}(h^int of_mm_gpiochip_add_data(struct device_node *np, struct of_mm_gpio_chip *mm_gc, void *data)h](j|)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j{hjhhh_/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:36: ./drivers/gpio/gpiolib-of.chM ubj@)}(h h]h }(hjhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjhhhjhM ubjQ)}(hof_mm_gpiochip_add_datah]jW)}(hof_mm_gpiochip_add_datah]hof_mm_gpiochip_add_data}(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjubah}(h]h ](jijjeh"]h$]h&]jnjouh1jPhjhhhjhM ubjp)}(hC(struct device_node *np, struct of_mm_gpio_chip *mm_gc, void *data)h](jv)}(hstruct device_node *nph](j.)}(hj1h]hstruct}(hjhhhNhNubah}(h]h ]j:ah"]h$]h&]uh1j-hjubj@)}(h h]h }(hjhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjubh)}(hhh]jW)}(h device_nodeh]h device_node}(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjubah}(h]h ]h"]h$]h&] refdomainjreftypej+ reftargetjmodnameN classnameNjj)}j]j3)}j+jsbc.of_mm_gpiochip_add_dataasbuh1hhjubj@)}(h h]h }(hj%hhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjubjH)}(hjKh]h*}(hj3hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjubjW)}(hnph]hnp}(hj@hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjubeh}(h]h ]h"]h$]h&]noemphjnjouh1juhjubjv)}(hstruct of_mm_gpio_chip *mm_gch](j.)}(hj1h]hstruct}(hjYhhhNhNubah}(h]h ]j:ah"]h$]h&]uh1j-hjUubj@)}(h h]h }(hjfhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjUubh)}(hhh]jW)}(hof_mm_gpio_chiph]hof_mm_gpio_chip}(hjwhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjtubah}(h]h ]h"]h$]h&] refdomainjreftypej+ reftargetjymodnameN classnameNjj)}j]j!c.of_mm_gpiochip_add_dataasbuh1hhjUubj@)}(h h]h }(hjhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjUubjH)}(hjKh]h*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjUubjW)}(hmm_gch]hmm_gc}(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjUubeh}(h]h ]h"]h$]h&]noemphjnjouh1juhjubjv)}(h void *datah](j|)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j{hjubj@)}(h h]h }(hjhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjubjH)}(hjKh]h*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjubjW)}(hdatah]hdata}(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjubeh}(h]h ]h"]h$]h&]noemphjnjouh1juhjubeh}(h]h ]h"]h$]h&]jnjouh1johjhhhjhM ubeh}(h]h ]h"]h$]h&]jnjojvuh1j'jwjxhjhhhjhM ubah}(h]jah ](j|j}eh"]h$]h&]jj)jhuh1j!hjhM hjhhubj)}(hhh]h)}(h"Add memory mapped GPIO chip (bank)h]h"Add memory mapped GPIO chip (bank)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:36: ./drivers/gpio/gpiolib-of.chM hjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj4jj4jjjuh1jhhhjhNhNubj)}(hX**Parameters** ``struct device_node *np`` device node of the GPIO chip ``struct of_mm_gpio_chip *mm_gc`` pointer to the of_mm_gpio_chip allocated structure ``void *data`` driver data to store in the struct gpio_chip **Description** To use this function you should allocate and fill mm_gc with: 1) In the gpio_chip structure: - all the callbacks - of_gpio_n_cells - of_xlate callback (optional) 3) In the of_mm_gpio_chip structure: - save_regs callback (optional) If succeeded, this function will map bank's memory and will do all necessary work for you. Then you'll able to use .regs to manage GPIOs from the callbacks. **Return** 0 on success, or negative errno on failure.h](h)}(h**Parameters**h]j)}(hj>h]h Parameters}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj<ubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:36: ./drivers/gpio/gpiolib-of.chMhj8ubj)}(hhh](j)}(h8``struct device_node *np`` device node of the GPIO chip h](j)}(h``struct device_node *np``h]j )}(hj]h]hstruct device_node *np}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1j hj[ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:36: ./drivers/gpio/gpiolib-of.chMhjWubj")}(hhh]h)}(hdevice node of the GPIO chiph]hdevice node of the GPIO chip}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjrhMhjsubah}(h]h ]h"]h$]h&]uh1j!hjWubeh}(h]h ]h"]h$]h&]uh1jhjrhMhjTubj)}(hU``struct of_mm_gpio_chip *mm_gc`` pointer to the of_mm_gpio_chip allocated structure h](j)}(h!``struct of_mm_gpio_chip *mm_gc``h]j )}(hjh]hstruct of_mm_gpio_chip *mm_gc}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:36: ./drivers/gpio/gpiolib-of.chMhjubj")}(hhh]h)}(h2pointer to the of_mm_gpio_chip allocated structureh]h2pointer to the of_mm_gpio_chip allocated structure}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j!hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjTubj)}(h<``void *data`` driver data to store in the struct gpio_chip h](j)}(h``void *data``h]j )}(hjh]h void *data}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:36: ./drivers/gpio/gpiolib-of.chMhjubj")}(hhh]h)}(h,driver data to store in the struct gpio_chiph]h,driver data to store in the struct gpio_chip}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j!hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjTubeh}(h]h ]h"]h$]h&]uh1jhj8ubh)}(h**Description**h]j)}(hj h]h Description}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:36: ./drivers/gpio/gpiolib-of.chMhj8ubh)}(h=To use this function you should allocate and fill mm_gc with:h]h=To use this function you should allocate and fill mm_gc with:}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:36: ./drivers/gpio/gpiolib-of.chMhj8ubhenumerated_list)}(hhh]h list_item)}(haIn the gpio_chip structure: - all the callbacks - of_gpio_n_cells - of_xlate callback (optional) h]h)}(h`In the gpio_chip structure: - all the callbacks - of_gpio_n_cells - of_xlate callback (optional)h]h`In the gpio_chip structure: - all the callbacks - of_gpio_n_cells - of_xlate callback (optional)}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:36: ./drivers/gpio/gpiolib-of.chMhj6ubah}(h]h ]h"]h$]h&]uh1j4hj1ubah}(h]h ]h"]h$]h&]enumtypearabicprefixhsuffixjC8uh1j/hj8ubj0)}(hhh]j5)}(hBIn the of_mm_gpio_chip structure: - save_regs callback (optional) h]h)}(hAIn the of_mm_gpio_chip structure: - save_regs callback (optional)h]hAIn the of_mm_gpio_chip structure: - save_regs callback (optional)}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:36: ./drivers/gpio/gpiolib-of.chMhj\ubah}(h]h ]h"]h$]h&]uh1j4hjYubah}(h]h ]h"]h$]h&]jUjVjWhjXjC8startKuh1j/hj8ubh)}(hIf succeeded, this function will map bank's memory and will do all necessary work for you. Then you'll able to use .regs to manage GPIOs from the callbacks.h]hIf succeeded, this function will map bank’s memory and will do all necessary work for you. Then you’ll able to use .regs to manage GPIOs from the callbacks.}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:36: ./drivers/gpio/gpiolib-of.chMhj8ubh)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:36: ./drivers/gpio/gpiolib-of.chM hj8ubh)}(h+0 on success, or negative errno on failure.h]h+0 on success, or negative errno on failure.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:36: ./drivers/gpio/gpiolib-of.chM hj8ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubj )}(hhh]h}(h]h ]h"]h$]h&]entries](j"of_mm_gpiochip_remove (C function)c.of_mm_gpiochip_removehNtauh1j hjhhhNhNubj)}(hhh](j")}(h:void of_mm_gpiochip_remove (struct of_mm_gpio_chip *mm_gc)h]j()}(h9void of_mm_gpiochip_remove(struct of_mm_gpio_chip *mm_gc)h](j|)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j{hjhhh_/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:36: ./drivers/gpio/gpiolib-of.chMKubj@)}(h h]h }(hjhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjhhhjhMKubjQ)}(hof_mm_gpiochip_removeh]jW)}(hof_mm_gpiochip_removeh]hof_mm_gpiochip_remove}(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjubah}(h]h ](jijjeh"]h$]h&]jnjouh1jPhjhhhjhMKubjp)}(h(struct of_mm_gpio_chip *mm_gc)h]jv)}(hstruct of_mm_gpio_chip *mm_gch](j.)}(hj1h]hstruct}(hjhhhNhNubah}(h]h ]j:ah"]h$]h&]uh1j-hj ubj@)}(h h]h }(hjhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hj ubh)}(hhh]jW)}(hof_mm_gpio_chiph]hof_mm_gpio_chip}(hj-hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhj*ubah}(h]h ]h"]h$]h&] refdomainjreftypej+ reftargetj/modnameN classnameNjj)}j]j3)}j+jsbc.of_mm_gpiochip_removeasbuh1hhj ubj@)}(h h]h }(hjMhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hj ubjH)}(hjKh]h*}(hj[hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj ubjW)}(hmm_gch]hmm_gc}(hjhhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhj ubeh}(h]h ]h"]h$]h&]noemphjnjouh1juhjubah}(h]h ]h"]h$]h&]jnjouh1johjhhhjhMKubeh}(h]h ]h"]h$]h&]jnjojvuh1j'jwjxhjhhhjhMKubah}(h]jah ](j|j}eh"]h$]h&]jj)jhuh1j!hjhMKhjhhubj)}(hhh]h)}(h%Remove memory mapped GPIO chip (bank)h]h%Remove memory mapped GPIO chip (bank)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:36: ./drivers/gpio/gpiolib-of.chMKhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhjhNhNubj)}(hf**Parameters** ``struct of_mm_gpio_chip *mm_gc`` pointer to the of_mm_gpio_chip allocated structureh](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:36: ./drivers/gpio/gpiolib-of.chMOhjubj)}(hhh]j)}(hT``struct of_mm_gpio_chip *mm_gc`` pointer to the of_mm_gpio_chip allocated structureh](j)}(h!``struct of_mm_gpio_chip *mm_gc``h]j )}(hjh]hstruct of_mm_gpio_chip *mm_gc}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:36: ./drivers/gpio/gpiolib-of.chMQhjubj")}(hhh]h)}(h2pointer to the of_mm_gpio_chip allocated structureh]h2pointer to the of_mm_gpio_chip allocated structure}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:36: ./drivers/gpio/gpiolib-of.chMLhjubah}(h]h ]h"]h$]h&]uh1j!hjubeh}(h]h ]h"]h$]h&]uh1jhjhMQhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubeh}(h]device-tree-supportah ]h"]device tree supportah$]h&]uh1hhhhhhhhK"ubh)}(hhh](h)}(hDevice-managed APIh]hDevice-managed API}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhK(ubj )}(hhh]h}(h]h ]h"]h$]h&]entries](jdevm_gpiod_get (C function)c.devm_gpiod_gethNtauh1j hjhhhNhNubj)}(hhh](j")}(hbstruct gpio_desc * devm_gpiod_get (struct device *dev, const char *con_id, enum gpiod_flags flags)h]j()}(h`struct gpio_desc *devm_gpiod_get(struct device *dev, const char *con_id, enum gpiod_flags flags)h](j.)}(hj1h]hstruct}(hjFhhhNhNubah}(h]h ]j:ah"]h$]h&]uh1j-hjBhhhc/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:42: ./drivers/gpio/gpiolib-devres.chK!ubj@)}(h h]h }(hjThhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjBhhhjShK!ubh)}(hhh]jW)}(h gpio_desch]h gpio_desc}(hjehhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjbubah}(h]h ]h"]h$]h&] refdomainjreftypej+ reftargetjgmodnameN classnameNjj)}j]j3)}j+devm_gpiod_getsbc.devm_gpiod_getasbuh1hhjBhhhjShK!ubj@)}(h h]h }(hjhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjBhhhjShK!ubjH)}(hjKh]h*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjBhhhjShK!ubjQ)}(hdevm_gpiod_geth]jW)}(hjh]hdevm_gpiod_get}(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjubah}(h]h ](jijjeh"]h$]h&]jnjouh1jPhjBhhhjShK!ubjp)}(h@(struct device *dev, const char *con_id, enum gpiod_flags flags)h](jv)}(hstruct device *devh](j.)}(hj1h]hstruct}(hjhhhNhNubah}(h]h ]j:ah"]h$]h&]uh1j-hjubj@)}(h h]h }(hjhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjubh)}(hhh]jW)}(hdeviceh]hdevice}(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjubah}(h]h ]h"]h$]h&] refdomainjreftypej+ reftargetjmodnameN classnameNjj)}j]jc.devm_gpiod_getasbuh1hhjubj@)}(h h]h }(hjhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjubjH)}(hjKh]h*}(hj hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjubjW)}(hdevh]hdev}(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjubeh}(h]h ]h"]h$]h&]noemphjnjouh1juhjubjv)}(hconst char *con_idh](j.)}(hj{#h]hconst}(hj0hhhNhNubah}(h]h ]j:ah"]h$]h&]uh1j-hj,ubj@)}(h h]h }(hj=hhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hj,ubj|)}(hcharh]hchar}(hjKhhhNhNubah}(h]h ]jah"]h$]h&]uh1j{hj,ubj@)}(h h]h }(hjYhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hj,ubjH)}(hjKh]h*}(hjghhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj,ubjW)}(hcon_idh]hcon_id}(hjthhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhj,ubeh}(h]h ]h"]h$]h&]noemphjnjouh1juhjubjv)}(henum gpiod_flags flagsh](j.)}(hjXh]henum}(hjhhhNhNubah}(h]h ]j:ah"]h$]h&]uh1j-hjubj@)}(h h]h }(hjhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjubh)}(hhh]jW)}(h gpiod_flagsh]h gpiod_flags}(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjubah}(h]h ]h"]h$]h&] refdomainjreftypej+ reftargetjmodnameN classnameNjj)}j]jc.devm_gpiod_getasbuh1hhjubj@)}(h h]h }(hjhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjubjW)}(hflagsh]hflags}(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjubeh}(h]h ]h"]h$]h&]noemphjnjouh1juhjubeh}(h]h ]h"]h$]h&]jnjouh1johjBhhhjShK!ubeh}(h]h ]h"]h$]h&]jnjojvuh1j'jwjxhj>hhhjShK!ubah}(h]j9ah ](j|j}eh"]h$]h&]jj)jhuh1j!hjShK!hj;hhubj)}(hhh]h)}(hResource-managed gpiod_get()h]hResource-managed gpiod_get()}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhc/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:42: ./drivers/gpio/gpiolib-devres.chK!hjhhubah}(h]h ]h"]h$]h&]uh1jhj;hhhjShK!ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhjhNhNubj)}(hXl**Parameters** ``struct device *dev`` GPIO consumer ``const char *con_id`` function within the GPIO consumer ``enum gpiod_flags flags`` optional GPIO initialization flags **Description** Managed gpiod_get(). GPIO descriptors returned from this function are automatically disposed on driver detach. See gpiod_get() for detailed information about behavior and return values. **Return** The GPIO descriptor corresponding to the function **con_id** of device dev, ``-ENOENT`` if no GPIO has been assigned to the requested function, or another IS_ERR() code if an error occurred while trying to acquire the GPIO.h](h)}(h**Parameters**h]j)}(hj#h]h Parameters}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj!ubah}(h]h ]h"]h$]h&]uh1hhc/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:42: ./drivers/gpio/gpiolib-devres.chK%hjubj)}(hhh](j)}(h%``struct device *dev`` GPIO consumer h](j)}(h``struct device *dev``h]j )}(hjBh]hstruct device *dev}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1j hj@ubah}(h]h ]h"]h$]h&]uh1jhc/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:42: ./drivers/gpio/gpiolib-devres.chK"hj<ubj")}(hhh]h)}(h GPIO consumerh]h GPIO consumer}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjWhK"hjXubah}(h]h ]h"]h$]h&]uh1j!hj<ubeh}(h]h ]h"]h$]h&]uh1jhjWhK"hj9ubj)}(h9``const char *con_id`` function within the GPIO consumer h](j)}(h``const char *con_id``h]j )}(hj{h]hconst char *con_id}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1j hjyubah}(h]h ]h"]h$]h&]uh1jhc/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:42: ./drivers/gpio/gpiolib-devres.chK#hjuubj")}(hhh]h)}(h!function within the GPIO consumerh]h!function within the GPIO consumer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhK#hjubah}(h]h ]h"]h$]h&]uh1j!hjuubeh}(h]h ]h"]h$]h&]uh1jhjhK#hj9ubj)}(h>``enum gpiod_flags flags`` optional GPIO initialization flags h](j)}(h``enum gpiod_flags flags``h]j )}(hjh]henum gpiod_flags flags}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjubah}(h]h ]h"]h$]h&]uh1jhc/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:42: ./drivers/gpio/gpiolib-devres.chK$hjubj")}(hhh]h)}(h"optional GPIO initialization flagsh]h"optional GPIO initialization flags}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhK$hjubah}(h]h ]h"]h$]h&]uh1j!hjubeh}(h]h ]h"]h$]h&]uh1jhjhK$hj9ubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhc/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:42: ./drivers/gpio/gpiolib-devres.chK&hjubh)}(hManaged gpiod_get(). GPIO descriptors returned from this function are automatically disposed on driver detach. See gpiod_get() for detailed information about behavior and return values.h]hManaged gpiod_get(). GPIO descriptors returned from this function are automatically disposed on driver detach. See gpiod_get() for detailed information about behavior and return values.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhc/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:42: ./drivers/gpio/gpiolib-devres.chK&hjubh)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhc/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:42: ./drivers/gpio/gpiolib-devres.chK*hjubh)}(hThe GPIO descriptor corresponding to the function **con_id** of device dev, ``-ENOENT`` if no GPIO has been assigned to the requested function, or another IS_ERR() code if an error occurred while trying to acquire the GPIO.h](h2The GPIO descriptor corresponding to the function }(hj,hhhNhNubj)}(h **con_id**h]hcon_id}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj,ubh of device dev, }(hj,hhhNhNubj )}(h ``-ENOENT``h]h-ENOENT}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1j hj,ubh if no GPIO has been assigned to the requested function, or another IS_ERR() code if an error occurred while trying to acquire the GPIO.}(hj,hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhc/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:42: ./drivers/gpio/gpiolib-devres.chK*hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubj )}(hhh]h}(h]h ]h"]h$]h&]entries](j$devm_gpiod_get_optional (C function)c.devm_gpiod_get_optionalhNtauh1j hjhhhNhNubj)}(hhh](j")}(hkstruct gpio_desc * devm_gpiod_get_optional (struct device *dev, const char *con_id, enum gpiod_flags flags)h]j()}(histruct gpio_desc *devm_gpiod_get_optional(struct device *dev, const char *con_id, enum gpiod_flags flags)h](j.)}(hj1h]hstruct}(hjhhhNhNubah}(h]h ]j:ah"]h$]h&]uh1j-hj{hhhc/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:42: ./drivers/gpio/gpiolib-devres.chK8ubj@)}(h h]h }(hjhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hj{hhhjhK8ubh)}(hhh]jW)}(h gpio_desch]h gpio_desc}(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjubah}(h]h ]h"]h$]h&] refdomainjreftypej+ reftargetjmodnameN classnameNjj)}j]j3)}j+devm_gpiod_get_optionalsbc.devm_gpiod_get_optionalasbuh1hhj{hhhjhK8ubj@)}(h h]h }(hjhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hj{hhhjhK8ubjH)}(hjKh]h*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj{hhhjhK8ubjQ)}(hdevm_gpiod_get_optionalh]jW)}(hjh]hdevm_gpiod_get_optional}(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjubah}(h]h ](jijjeh"]h$]h&]jnjouh1jPhj{hhhjhK8ubjp)}(h@(struct device *dev, const char *con_id, enum gpiod_flags flags)h](jv)}(hstruct device *devh](j.)}(hj1h]hstruct}(hjhhhNhNubah}(h]h ]j:ah"]h$]h&]uh1j-hjubj@)}(h h]h }(hjhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjubh)}(hhh]jW)}(hdeviceh]hdevice}(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjubah}(h]h ]h"]h$]h&] refdomainjreftypej+ reftargetjmodnameN classnameNjj)}j]jc.devm_gpiod_get_optionalasbuh1hhjubj@)}(h h]h }(hj5hhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjubjH)}(hjKh]h*}(hjChhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjubjW)}(hdevh]hdev}(hjPhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjubeh}(h]h ]h"]h$]h&]noemphjnjouh1juhjubjv)}(hconst char *con_idh](j.)}(hj{#h]hconst}(hjihhhNhNubah}(h]h ]j:ah"]h$]h&]uh1j-hjeubj@)}(h h]h }(hjvhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjeubj|)}(hcharh]hchar}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j{hjeubj@)}(h h]h }(hjhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjeubjH)}(hjKh]h*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjeubjW)}(hcon_idh]hcon_id}(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjeubeh}(h]h ]h"]h$]h&]noemphjnjouh1juhjubjv)}(henum gpiod_flags flagsh](j.)}(hjXh]henum}(hjhhhNhNubah}(h]h ]j:ah"]h$]h&]uh1j-hjubj@)}(h h]h }(hjhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjubh)}(hhh]jW)}(h gpiod_flagsh]h gpiod_flags}(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjubah}(h]h ]h"]h$]h&] refdomainjreftypej+ reftargetjmodnameN classnameNjj)}j]jc.devm_gpiod_get_optionalasbuh1hhjubj@)}(h h]h }(hjhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjubjW)}(hflagsh]hflags}(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjubeh}(h]h ]h"]h$]h&]noemphjnjouh1juhjubeh}(h]h ]h"]h$]h&]jnjouh1johj{hhhjhK8ubeh}(h]h ]h"]h$]h&]jnjojvuh1j'jwjxhjwhhhjhK8ubah}(h]jrah ](j|j}eh"]h$]h&]jj)jhuh1j!hjhK8hjthhubj)}(hhh]h)}(h%Resource-managed gpiod_get_optional()h]h%Resource-managed gpiod_get_optional()}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1hhc/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:42: ./drivers/gpio/gpiolib-devres.chK8hj7hhubah}(h]h ]h"]h$]h&]uh1jhjthhhjhK8ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjRjjRjjjuh1jhhhjhNhNubj)}(hXw**Parameters** ``struct device *dev`` GPIO consumer ``const char *con_id`` function within the GPIO consumer ``enum gpiod_flags flags`` optional GPIO initialization flags **Description** Managed gpiod_get_optional(). GPIO descriptors returned from this function are automatically disposed on driver detach. See gpiod_get_optional() for detailed information about behavior and return values. **Return** The GPIO descriptor corresponding to the function **con_id** of device dev, NULL if no GPIO has been assigned to the requested function, or another IS_ERR() code if an error occurred while trying to acquire the GPIO.h](h)}(h**Parameters**h]j)}(hj\h]h Parameters}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjZubah}(h]h ]h"]h$]h&]uh1hhc/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:42: ./drivers/gpio/gpiolib-devres.chK``enum gpiod_flags flags`` optional GPIO initialization flags h](j)}(h``enum gpiod_flags flags``h]j )}(hjh]henum gpiod_flags flags}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjubah}(h]h ]h"]h$]h&]uh1jhc/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:42: ./drivers/gpio/gpiolib-devres.chK;hjubj")}(hhh]h)}(h"optional GPIO initialization flagsh]h"optional GPIO initialization flags}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhK;hjubah}(h]h ]h"]h$]h&]uh1j!hjubeh}(h]h ]h"]h$]h&]uh1jhjhK;hjrubeh}(h]h ]h"]h$]h&]uh1jhjVubh)}(h**Description**h]j)}(hj(h]h Description}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj&ubah}(h]h ]h"]h$]h&]uh1hhc/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:42: ./drivers/gpio/gpiolib-devres.chK=hjVubh)}(hManaged gpiod_get_optional(). GPIO descriptors returned from this function are automatically disposed on driver detach. See gpiod_get_optional() for detailed information about behavior and return values.h]hManaged gpiod_get_optional(). GPIO descriptors returned from this function are automatically disposed on driver detach. See gpiod_get_optional() for detailed information about behavior and return values.}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1hhc/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:42: ./drivers/gpio/gpiolib-devres.chK=hjVubh)}(h **Return**h]j)}(hjOh]hReturn}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjMubah}(h]h ]h"]h$]h&]uh1hhc/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:42: ./drivers/gpio/gpiolib-devres.chKAhjVubh)}(hThe GPIO descriptor corresponding to the function **con_id** of device dev, NULL if no GPIO has been assigned to the requested function, or another IS_ERR() code if an error occurred while trying to acquire the GPIO.h](h2The GPIO descriptor corresponding to the function }(hjehhhNhNubj)}(h **con_id**h]hcon_id}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjeubh of device dev, NULL if no GPIO has been assigned to the requested function, or another IS_ERR() code if an error occurred while trying to acquire the GPIO.}(hjehhhNhNubeh}(h]h ]h"]h$]h&]uh1hhc/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:42: ./drivers/gpio/gpiolib-devres.chKAhjVubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubj )}(hhh]h}(h]h ]h"]h$]h&]entries](j!devm_gpiod_get_index (C function)c.devm_gpiod_get_indexhNtauh1j hjhhhNhNubj)}(hhh](j")}(hzstruct gpio_desc * devm_gpiod_get_index (struct device *dev, const char *con_id, unsigned int idx, enum gpiod_flags flags)h]j()}(hxstruct gpio_desc *devm_gpiod_get_index(struct device *dev, const char *con_id, unsigned int idx, enum gpiod_flags flags)h](j.)}(hj1h]hstruct}(hjhhhNhNubah}(h]h ]j:ah"]h$]h&]uh1j-hjhhhc/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:42: ./drivers/gpio/gpiolib-devres.chKOubj@)}(h h]h }(hjhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjhhhjhKOubh)}(hhh]jW)}(h gpio_desch]h gpio_desc}(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjubah}(h]h ]h"]h$]h&] refdomainjreftypej+ reftargetjmodnameN classnameNjj)}j]j3)}j+devm_gpiod_get_indexsbc.devm_gpiod_get_indexasbuh1hhjhhhjhKOubj@)}(h h]h }(hjhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjhhhjhKOubjH)}(hjKh]h*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjhhhjhKOubjQ)}(hdevm_gpiod_get_indexh]jW)}(hjh]hdevm_gpiod_get_index}(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjubah}(h]h ](jijjeh"]h$]h&]jnjouh1jPhjhhhjhKOubjp)}(hR(struct device *dev, const char *con_id, unsigned int idx, enum gpiod_flags flags)h](jv)}(hstruct device *devh](j.)}(hj1h]hstruct}(hj hhhNhNubah}(h]h ]j:ah"]h$]h&]uh1j-hjubj@)}(h h]h }(hj-hhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjubh)}(hhh]jW)}(hdeviceh]hdevice}(hj>hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhj;ubah}(h]h ]h"]h$]h&] refdomainjreftypej+ reftargetj@modnameN classnameNjj)}j]jc.devm_gpiod_get_indexasbuh1hhjubj@)}(h h]h }(hj\hhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjubjH)}(hjKh]h*}(hjjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjubjW)}(hdevh]hdev}(hjwhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjubeh}(h]h ]h"]h$]h&]noemphjnjouh1juhjubjv)}(hconst char *con_idh](j.)}(hj{#h]hconst}(hjhhhNhNubah}(h]h ]j:ah"]h$]h&]uh1j-hjubj@)}(h h]h }(hjhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjubj|)}(hcharh]hchar}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j{hjubj@)}(h h]h }(hjhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjubjH)}(hjKh]h*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjubjW)}(hcon_idh]hcon_id}(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjubeh}(h]h ]h"]h$]h&]noemphjnjouh1juhjubjv)}(hunsigned int idxh](j|)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j{hjubj@)}(h h]h }(hjhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjubj|)}(hinth]hint}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1j{hjubj@)}(h h]h }(hjhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjubjW)}(hidxh]hidx}(hj%hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjubeh}(h]h ]h"]h$]h&]noemphjnjouh1juhjubjv)}(henum gpiod_flags flagsh](j.)}(hjXh]henum}(hj>hhhNhNubah}(h]h ]j:ah"]h$]h&]uh1j-hj:ubj@)}(h h]h }(hjKhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hj:ubh)}(hhh]jW)}(h gpiod_flagsh]h gpiod_flags}(hj\hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjYubah}(h]h ]h"]h$]h&] refdomainjreftypej+ reftargetj^modnameN classnameNjj)}j]jc.devm_gpiod_get_indexasbuh1hhj:ubj@)}(h h]h }(hjzhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hj:ubjW)}(hflagsh]hflags}(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhj:ubeh}(h]h ]h"]h$]h&]noemphjnjouh1juhjubeh}(h]h ]h"]h$]h&]jnjouh1johjhhhjhKOubeh}(h]h ]h"]h$]h&]jnjojvuh1j'jwjxhjhhhjhKOubah}(h]jah ](j|j}eh"]h$]h&]jj)jhuh1j!hjhKOhjhhubj)}(hhh]h)}(h"Resource-managed gpiod_get_index()h]h"Resource-managed gpiod_get_index()}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhc/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:42: ./drivers/gpio/gpiolib-devres.chKOhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhKOubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhjhNhNubj)}(hX**Parameters** ``struct device *dev`` GPIO consumer ``const char *con_id`` function within the GPIO consumer ``unsigned int idx`` index of the GPIO to obtain in the consumer ``enum gpiod_flags flags`` optional GPIO initialization flags **Description** Managed gpiod_get_index(). GPIO descriptors returned from this function are automatically disposed on driver detach. See gpiod_get_index() for detailed information about behavior and return values. **Return** The GPIO descriptor corresponding to the function **con_id** of device dev, ``-ENOENT`` if no GPIO has been assigned to the requested function, or another IS_ERR() code if an error occurred while trying to acquire the GPIO.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhc/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:42: ./drivers/gpio/gpiolib-devres.chKShjubj)}(hhh](j)}(h%``struct device *dev`` GPIO consumer h](j)}(h``struct device *dev``h]j )}(hjh]hstruct device *dev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjubah}(h]h ]h"]h$]h&]uh1jhc/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:42: ./drivers/gpio/gpiolib-devres.chKPhjubj")}(hhh]h)}(h GPIO consumerh]h GPIO consumer}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKPhj ubah}(h]h ]h"]h$]h&]uh1j!hjubeh}(h]h ]h"]h$]h&]uh1jhjhKPhjubj)}(h9``const char *con_id`` function within the GPIO consumer h](j)}(h``const char *con_id``h]j )}(hj,h]hconst char *con_id}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1j hj*ubah}(h]h ]h"]h$]h&]uh1jhc/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:42: ./drivers/gpio/gpiolib-devres.chKQhj&ubj")}(hhh]h)}(h!function within the GPIO consumerh]h!function within the GPIO consumer}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjAhKQhjBubah}(h]h ]h"]h$]h&]uh1j!hj&ubeh}(h]h ]h"]h$]h&]uh1jhjAhKQhjubj)}(hA``unsigned int idx`` index of the GPIO to obtain in the consumer h](j)}(h``unsigned int idx``h]j )}(hjeh]hunsigned int idx}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1j hjcubah}(h]h ]h"]h$]h&]uh1jhc/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:42: ./drivers/gpio/gpiolib-devres.chKRhj_ubj")}(hhh]h)}(h+index of the GPIO to obtain in the consumerh]h+index of the GPIO to obtain in the consumer}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjzhKRhj{ubah}(h]h ]h"]h$]h&]uh1j!hj_ubeh}(h]h ]h"]h$]h&]uh1jhjzhKRhjubj)}(h>``enum gpiod_flags flags`` optional GPIO initialization flags h](j)}(h``enum gpiod_flags flags``h]j )}(hjh]henum gpiod_flags flags}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjubah}(h]h ]h"]h$]h&]uh1jhc/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:42: ./drivers/gpio/gpiolib-devres.chKShjubj")}(hhh]h)}(h"optional GPIO initialization flagsh]h"optional GPIO initialization flags}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKShjubah}(h]h ]h"]h$]h&]uh1j!hjubeh}(h]h ]h"]h$]h&]uh1jhjhKShjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhc/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:42: ./drivers/gpio/gpiolib-devres.chKUhjubh)}(hManaged gpiod_get_index(). GPIO descriptors returned from this function are automatically disposed on driver detach. See gpiod_get_index() for detailed information about behavior and return values.h]hManaged gpiod_get_index(). GPIO descriptors returned from this function are automatically disposed on driver detach. See gpiod_get_index() for detailed information about behavior and return values.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhc/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:42: ./drivers/gpio/gpiolib-devres.chKUhjubh)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhc/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:42: ./drivers/gpio/gpiolib-devres.chKYhjubh)}(hThe GPIO descriptor corresponding to the function **con_id** of device dev, ``-ENOENT`` if no GPIO has been assigned to the requested function, or another IS_ERR() code if an error occurred while trying to acquire the GPIO.h](h2The GPIO descriptor corresponding to the function }(hjhhhNhNubj)}(h **con_id**h]hcon_id}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh of device dev, }(hjhhhNhNubj )}(h ``-ENOENT``h]h-ENOENT}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1j hjubh if no GPIO has been assigned to the requested function, or another IS_ERR() code if an error occurred while trying to acquire the GPIO.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhc/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:42: ./drivers/gpio/gpiolib-devres.chKYhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubj )}(hhh]h}(h]h ]h"]h$]h&]entries](j(devm_fwnode_gpiod_get_index (C function)c.devm_fwnode_gpiod_get_indexhNtauh1j hjhhhNhNubj)}(hhh](j")}(hstruct gpio_desc * devm_fwnode_gpiod_get_index (struct device *dev, struct fwnode_handle *fwnode, const char *con_id, int index, enum gpiod_flags flags, const char *label)h]j()}(hstruct gpio_desc *devm_fwnode_gpiod_get_index(struct device *dev, struct fwnode_handle *fwnode, const char *con_id, int index, enum gpiod_flags flags, const char *label)h](j.)}(hj1h]hstruct}(hjihhhNhNubah}(h]h ]j:ah"]h$]h&]uh1j-hjehhhc/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:42: ./drivers/gpio/gpiolib-devres.chKubj@)}(h h]h }(hjwhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjehhhjvhKubh)}(hhh]jW)}(h gpio_desch]h gpio_desc}(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjubah}(h]h ]h"]h$]h&] refdomainjreftypej+ reftargetjmodnameN classnameNjj)}j]j3)}j+devm_fwnode_gpiod_get_indexsbc.devm_fwnode_gpiod_get_indexasbuh1hhjehhhjvhKubj@)}(h h]h }(hjhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjehhhjvhKubjH)}(hjKh]h*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjehhhjvhKubjQ)}(hdevm_fwnode_gpiod_get_indexh]jW)}(hjh]hdevm_fwnode_gpiod_get_index}(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjubah}(h]h ](jijjeh"]h$]h&]jnjouh1jPhjehhhjvhKubjp)}(h|(struct device *dev, struct fwnode_handle *fwnode, const char *con_id, int index, enum gpiod_flags flags, const char *label)h](jv)}(hstruct device *devh](j.)}(hj1h]hstruct}(hjhhhNhNubah}(h]h ]j:ah"]h$]h&]uh1j-hjubj@)}(h h]h }(hjhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjubh)}(hhh]jW)}(hdeviceh]hdevice}(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjubah}(h]h ]h"]h$]h&] refdomainjreftypej+ reftargetjmodnameN classnameNjj)}j]jc.devm_fwnode_gpiod_get_indexasbuh1hhjubj@)}(h h]h }(hjhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjubjH)}(hjKh]h*}(hj-hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjubjW)}(hdevh]hdev}(hj:hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjubeh}(h]h ]h"]h$]h&]noemphjnjouh1juhjubjv)}(hstruct fwnode_handle *fwnodeh](j.)}(hj1h]hstruct}(hjShhhNhNubah}(h]h ]j:ah"]h$]h&]uh1j-hjOubj@)}(h h]h }(hj`hhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjOubh)}(hhh]jW)}(h fwnode_handleh]h fwnode_handle}(hjqhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjnubah}(h]h ]h"]h$]h&] refdomainjreftypej+ reftargetjsmodnameN classnameNjj)}j]jc.devm_fwnode_gpiod_get_indexasbuh1hhjOubj@)}(h h]h }(hjhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjOubjH)}(hjKh]h*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjOubjW)}(hfwnodeh]hfwnode}(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjOubeh}(h]h ]h"]h$]h&]noemphjnjouh1juhjubjv)}(hconst char *con_idh](j.)}(hj{#h]hconst}(hjhhhNhNubah}(h]h ]j:ah"]h$]h&]uh1j-hjubj@)}(h h]h }(hjhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjubj|)}(hcharh]hchar}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j{hjubj@)}(h h]h }(hjhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjubjH)}(hjKh]h*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjubjW)}(hcon_idh]hcon_id}(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjubeh}(h]h ]h"]h$]h&]noemphjnjouh1juhjubjv)}(h int indexh](j|)}(hinth]hint}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1j{hjubj@)}(h h]h }(hj.hhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjubjW)}(hindexh]hindex}(hj<hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjubeh}(h]h ]h"]h$]h&]noemphjnjouh1juhjubjv)}(henum gpiod_flags flagsh](j.)}(hjXh]henum}(hjUhhhNhNubah}(h]h ]j:ah"]h$]h&]uh1j-hjQubj@)}(h h]h }(hjbhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjQubh)}(hhh]jW)}(h gpiod_flagsh]h gpiod_flags}(hjshhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjpubah}(h]h ]h"]h$]h&] refdomainjreftypej+ reftargetjumodnameN classnameNjj)}j]jc.devm_fwnode_gpiod_get_indexasbuh1hhjQubj@)}(h h]h }(hjhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjQubjW)}(hflagsh]hflags}(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjQubeh}(h]h ]h"]h$]h&]noemphjnjouh1juhjubjv)}(hconst char *labelh](j.)}(hj{#h]hconst}(hjhhhNhNubah}(h]h ]j:ah"]h$]h&]uh1j-hjubj@)}(h h]h }(hjhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjubj|)}(hcharh]hchar}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j{hjubj@)}(h h]h }(hjhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjubjH)}(hjKh]h*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjubjW)}(hlabelh]hlabel}(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjubeh}(h]h ]h"]h$]h&]noemphjnjouh1juhjubeh}(h]h ]h"]h$]h&]jnjouh1johjehhhjvhKubeh}(h]h ]h"]h$]h&]jnjojvuh1j'jwjxhjahhhjvhKubah}(h]j\ah ](j|j}eh"]h$]h&]jj)jhuh1j!hjvhKhj^hhubj)}(hhh]h)}(h'get a GPIO descriptor from a given nodeh]h'get a GPIO descriptor from a given node}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1hhc/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:42: ./drivers/gpio/gpiolib-devres.chKhj#hhubah}(h]h ]h"]h$]h&]uh1jhj^hhhjvhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjj>jj>jjjuh1jhhhjhNhNubj)}(hX**Parameters** ``struct device *dev`` GPIO consumer ``struct fwnode_handle *fwnode`` firmware node containing GPIO reference ``const char *con_id`` function within the GPIO consumer ``int index`` index of the GPIO to obtain in the consumer ``enum gpiod_flags flags`` GPIO initialization flags ``const char *label`` label to attach to the requested GPIO **Description** GPIO descriptors returned from this function are automatically disposed on driver detach. **Return** The GPIO descriptor corresponding to the function **con_id** of device dev, ``-ENOENT`` if no GPIO has been assigned to the requested function, or another IS_ERR() code if an error occurred while trying to acquire the GPIO.h](h)}(h**Parameters**h]j)}(hjHh]h Parameters}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjFubah}(h]h ]h"]h$]h&]uh1hhc/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:42: ./drivers/gpio/gpiolib-devres.chKhjBubj)}(hhh](j)}(h%``struct device *dev`` GPIO consumer h](j)}(h``struct device *dev``h]j )}(hjgh]hstruct device *dev}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1j hjeubah}(h]h ]h"]h$]h&]uh1jhc/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:42: ./drivers/gpio/gpiolib-devres.chKhjaubj")}(hhh]h)}(h GPIO consumerh]h GPIO consumer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj|hKhj}ubah}(h]h ]h"]h$]h&]uh1j!hjaubeh}(h]h ]h"]h$]h&]uh1jhj|hKhj^ubj)}(hI``struct fwnode_handle *fwnode`` firmware node containing GPIO reference h](j)}(h ``struct fwnode_handle *fwnode``h]j )}(hjh]hstruct fwnode_handle *fwnode}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjubah}(h]h ]h"]h$]h&]uh1jhc/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:42: ./drivers/gpio/gpiolib-devres.chKhjubj")}(hhh]h)}(h'firmware node containing GPIO referenceh]h'firmware node containing GPIO reference}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1j!hjubeh}(h]h ]h"]h$]h&]uh1jhjhKhj^ubj)}(h9``const char *con_id`` function within the GPIO consumer h](j)}(h``const char *con_id``h]j )}(hjh]hconst char *con_id}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjubah}(h]h ]h"]h$]h&]uh1jhc/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:42: ./drivers/gpio/gpiolib-devres.chKhjubj")}(hhh]h)}(h!function within the GPIO consumerh]h!function within the GPIO consumer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1j!hjubeh}(h]h ]h"]h$]h&]uh1jhjhKhj^ubj)}(h:``int index`` index of the GPIO to obtain in the consumer h](j)}(h ``int index``h]j )}(hjh]h int index}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjubah}(h]h ]h"]h$]h&]uh1jhc/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:42: ./drivers/gpio/gpiolib-devres.chKhj ubj")}(hhh]h)}(h+index of the GPIO to obtain in the consumerh]h+index of the GPIO to obtain in the consumer}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj'hKhj(ubah}(h]h ]h"]h$]h&]uh1j!hj ubeh}(h]h ]h"]h$]h&]uh1jhj'hKhj^ubj)}(h5``enum gpiod_flags flags`` GPIO initialization flags h](j)}(h``enum gpiod_flags flags``h]j )}(hjKh]henum gpiod_flags flags}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjIubah}(h]h ]h"]h$]h&]uh1jhc/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:42: ./drivers/gpio/gpiolib-devres.chKhjEubj")}(hhh]h)}(hGPIO initialization flagsh]hGPIO initialization flags}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj`hKhjaubah}(h]h ]h"]h$]h&]uh1j!hjEubeh}(h]h ]h"]h$]h&]uh1jhj`hKhj^ubj)}(h<``const char *label`` label to attach to the requested GPIO h](j)}(h``const char *label``h]j )}(hjh]hconst char *label}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjubah}(h]h ]h"]h$]h&]uh1jhc/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:42: ./drivers/gpio/gpiolib-devres.chKhj~ubj")}(hhh]h)}(h%label to attach to the requested GPIOh]h%label to attach to the requested GPIO}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1j!hj~ubeh}(h]h ]h"]h$]h&]uh1jhjhKhj^ubeh}(h]h ]h"]h$]h&]uh1jhjBubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhc/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:42: ./drivers/gpio/gpiolib-devres.chKhjBubh)}(hYGPIO descriptors returned from this function are automatically disposed on driver detach.h]hYGPIO descriptors returned from this function are automatically disposed on driver detach.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhc/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:42: ./drivers/gpio/gpiolib-devres.chKhjBubh)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhc/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:42: ./drivers/gpio/gpiolib-devres.chKhjBubh)}(hThe GPIO descriptor corresponding to the function **con_id** of device dev, ``-ENOENT`` if no GPIO has been assigned to the requested function, or another IS_ERR() code if an error occurred while trying to acquire the GPIO.h](h2The GPIO descriptor corresponding to the function }(hjhhhNhNubj)}(h **con_id**h]hcon_id}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh of device dev, }(hjhhhNhNubj )}(h ``-ENOENT``h]h-ENOENT}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjubh if no GPIO has been assigned to the requested function, or another IS_ERR() code if an error occurred while trying to acquire the GPIO.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhc/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:42: ./drivers/gpio/gpiolib-devres.chKhjBubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubj )}(hhh]h}(h]h ]h"]h$]h&]entries](j*devm_gpiod_get_index_optional (C function)c.devm_gpiod_get_index_optionalhNtauh1j hjhhhNhNubj)}(hhh](j")}(hstruct gpio_desc * devm_gpiod_get_index_optional (struct device *dev, const char *con_id, unsigned int index, enum gpiod_flags flags)h]j()}(hstruct gpio_desc *devm_gpiod_get_index_optional(struct device *dev, const char *con_id, unsigned int index, enum gpiod_flags flags)h](j.)}(hj1h]hstruct}(hjOhhhNhNubah}(h]h ]j:ah"]h$]h&]uh1j-hjKhhhc/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:42: ./drivers/gpio/gpiolib-devres.chKubj@)}(h h]h }(hj]hhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjKhhhj\hKubh)}(hhh]jW)}(h gpio_desch]h gpio_desc}(hjnhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjkubah}(h]h ]h"]h$]h&] refdomainjreftypej+ reftargetjpmodnameN classnameNjj)}j]j3)}j+devm_gpiod_get_index_optionalsbc.devm_gpiod_get_index_optionalasbuh1hhjKhhhj\hKubj@)}(h h]h }(hjhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjKhhhj\hKubjH)}(hjKh]h*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjKhhhj\hKubjQ)}(hdevm_gpiod_get_index_optionalh]jW)}(hjh]hdevm_gpiod_get_index_optional}(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjubah}(h]h ](jijjeh"]h$]h&]jnjouh1jPhjKhhhj\hKubjp)}(hT(struct device *dev, const char *con_id, unsigned int index, enum gpiod_flags flags)h](jv)}(hstruct device *devh](j.)}(hj1h]hstruct}(hjhhhNhNubah}(h]h ]j:ah"]h$]h&]uh1j-hjubj@)}(h h]h }(hjhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjubh)}(hhh]jW)}(hdeviceh]hdevice}(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjubah}(h]h ]h"]h$]h&] refdomainjreftypej+ reftargetjmodnameN classnameNjj)}j]jc.devm_gpiod_get_index_optionalasbuh1hhjubj@)}(h h]h }(hjhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjubjH)}(hjKh]h*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjubjW)}(hdevh]hdev}(hj hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjubeh}(h]h ]h"]h$]h&]noemphjnjouh1juhjubjv)}(hconst char *con_idh](j.)}(hj{#h]hconst}(hj9hhhNhNubah}(h]h ]j:ah"]h$]h&]uh1j-hj5ubj@)}(h h]h }(hjFhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hj5ubj|)}(hcharh]hchar}(hjThhhNhNubah}(h]h ]jah"]h$]h&]uh1j{hj5ubj@)}(h h]h }(hjbhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hj5ubjH)}(hjKh]h*}(hjphhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj5ubjW)}(hcon_idh]hcon_id}(hj}hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhj5ubeh}(h]h ]h"]h$]h&]noemphjnjouh1juhjubjv)}(hunsigned int indexh](j|)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j{hjubj@)}(h h]h }(hjhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjubj|)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j{hjubj@)}(h h]h }(hjhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjubjW)}(hindexh]hindex}(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjubeh}(h]h ]h"]h$]h&]noemphjnjouh1juhjubjv)}(henum gpiod_flags flagsh](j.)}(hjXh]henum}(hjhhhNhNubah}(h]h ]j:ah"]h$]h&]uh1j-hjubj@)}(h h]h }(hjhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjubh)}(hhh]jW)}(h gpiod_flagsh]h gpiod_flags}(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjubah}(h]h ]h"]h$]h&] refdomainjreftypej+ reftargetjmodnameN classnameNjj)}j]jc.devm_gpiod_get_index_optionalasbuh1hhjubj@)}(h h]h }(hj#hhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjubjW)}(hflagsh]hflags}(hj1hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjubeh}(h]h ]h"]h$]h&]noemphjnjouh1juhjubeh}(h]h ]h"]h$]h&]jnjouh1johjKhhhj\hKubeh}(h]h ]h"]h$]h&]jnjojvuh1j'jwjxhjGhhhj\hKubah}(h]jBah ](j|j}eh"]h$]h&]jj)jhuh1j!hj\hKhjDhhubj)}(hhh]h)}(h+Resource-managed gpiod_get_index_optional()h]h+Resource-managed gpiod_get_index_optional()}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1hhc/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:42: ./drivers/gpio/gpiolib-devres.chKhjXhhubah}(h]h ]h"]h$]h&]uh1jhjDhhhj\hKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjsjjsjjjuh1jhhhjhNhNubj)}(hX**Parameters** ``struct device *dev`` GPIO consumer ``const char *con_id`` function within the GPIO consumer ``unsigned int index`` index of the GPIO to obtain in the consumer ``enum gpiod_flags flags`` optional GPIO initialization flags **Description** Managed gpiod_get_index_optional(). GPIO descriptors returned from this function are automatically disposed on driver detach. See gpiod_get_index_optional() for detailed information about behavior and return values. **Return** The GPIO descriptor corresponding to the function **con_id** of device dev, ``NULL`` if no GPIO has been assigned to the requested function, or another IS_ERR() code if an error occurred while trying to acquire the GPIO.h](h)}(h**Parameters**h]j)}(hj}h]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj{ubah}(h]h ]h"]h$]h&]uh1hhc/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:42: ./drivers/gpio/gpiolib-devres.chKhjwubj)}(hhh](j)}(h%``struct device *dev`` GPIO consumer h](j)}(h``struct device *dev``h]j )}(hjh]hstruct device *dev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjubah}(h]h ]h"]h$]h&]uh1jhc/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:42: ./drivers/gpio/gpiolib-devres.chKhjubj")}(hhh]h)}(h GPIO consumerh]h GPIO consumer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1j!hjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubj)}(h9``const char *con_id`` function within the GPIO consumer h](j)}(h``const char *con_id``h]j )}(hjh]hconst char *con_id}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjubah}(h]h ]h"]h$]h&]uh1jhc/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:42: ./drivers/gpio/gpiolib-devres.chKhjubj")}(hhh]h)}(h!function within the GPIO consumerh]h!function within the GPIO consumer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1j!hjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubj)}(hC``unsigned int index`` index of the GPIO to obtain in the consumer h](j)}(h``unsigned int index``h]j )}(hjh]hunsigned int index}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j hj ubah}(h]h ]h"]h$]h&]uh1jhc/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:42: ./drivers/gpio/gpiolib-devres.chKhjubj")}(hhh]h)}(h+index of the GPIO to obtain in the consumerh]h+index of the GPIO to obtain in the consumer}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj#hKhj$ubah}(h]h ]h"]h$]h&]uh1j!hjubeh}(h]h ]h"]h$]h&]uh1jhj#hKhjubj)}(h>``enum gpiod_flags flags`` optional GPIO initialization flags h](j)}(h``enum gpiod_flags flags``h]j )}(hjGh]henum gpiod_flags flags}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjEubah}(h]h ]h"]h$]h&]uh1jhc/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:42: ./drivers/gpio/gpiolib-devres.chKhjAubj")}(hhh]h)}(h"optional GPIO initialization flagsh]h"optional GPIO initialization flags}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj\hKhj]ubah}(h]h ]h"]h$]h&]uh1j!hjAubeh}(h]h ]h"]h$]h&]uh1jhj\hKhjubeh}(h]h ]h"]h$]h&]uh1jhjwubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhc/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:42: ./drivers/gpio/gpiolib-devres.chKhjwubh)}(hManaged gpiod_get_index_optional(). GPIO descriptors returned from this function are automatically disposed on driver detach. See gpiod_get_index_optional() for detailed information about behavior and return values.h]hManaged gpiod_get_index_optional(). GPIO descriptors returned from this function are automatically disposed on driver detach. See gpiod_get_index_optional() for detailed information about behavior and return values.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhc/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:42: ./drivers/gpio/gpiolib-devres.chKhjwubh)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhc/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:42: ./drivers/gpio/gpiolib-devres.chKhjwubh)}(hThe GPIO descriptor corresponding to the function **con_id** of device dev, ``NULL`` if no GPIO has been assigned to the requested function, or another IS_ERR() code if an error occurred while trying to acquire the GPIO.h](h2The GPIO descriptor corresponding to the function }(hjhhhNhNubj)}(h **con_id**h]hcon_id}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh of device dev, }(hjhhhNhNubj )}(h``NULL``h]hNULL}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjubh if no GPIO has been assigned to the requested function, or another IS_ERR() code if an error occurred while trying to acquire the GPIO.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhc/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:42: ./drivers/gpio/gpiolib-devres.chKhjwubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubj )}(hhh]h}(h]h ]h"]h$]h&]entries](j!devm_gpiod_get_array (C function)c.devm_gpiod_get_arrayhNtauh1j hjhhhNhNubj)}(hhh](j")}(histruct gpio_descs * devm_gpiod_get_array (struct device *dev, const char *con_id, enum gpiod_flags flags)h]j()}(hgstruct gpio_descs *devm_gpiod_get_array(struct device *dev, const char *con_id, enum gpiod_flags flags)h](j.)}(hj1h]hstruct}(hjhhhNhNubah}(h]h ]j:ah"]h$]h&]uh1j-hjhhhc/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:42: ./drivers/gpio/gpiolib-devres.chKubj@)}(h h]h }(hj hhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjhhhjhKubh)}(hhh]jW)}(h gpio_descsh]h gpio_descs}(hj1hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhj.ubah}(h]h ]h"]h$]h&] refdomainjreftypej+ reftargetj3modnameN classnameNjj)}j]j3)}j+devm_gpiod_get_arraysbc.devm_gpiod_get_arrayasbuh1hhjhhhjhKubj@)}(h h]h }(hjRhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjhhhjhKubjH)}(hjKh]h*}(hj`hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjhhhjhKubjQ)}(hdevm_gpiod_get_arrayh]jW)}(hjOh]hdevm_gpiod_get_array}(hjqhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjmubah}(h]h ](jijjeh"]h$]h&]jnjouh1jPhjhhhjhKubjp)}(h@(struct device *dev, const char *con_id, enum gpiod_flags flags)h](jv)}(hstruct device *devh](j.)}(hj1h]hstruct}(hjhhhNhNubah}(h]h ]j:ah"]h$]h&]uh1j-hjubj@)}(h h]h }(hjhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjubh)}(hhh]jW)}(hdeviceh]hdevice}(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjubah}(h]h ]h"]h$]h&] refdomainjreftypej+ reftargetjmodnameN classnameNjj)}j]jMc.devm_gpiod_get_arrayasbuh1hhjubj@)}(h h]h }(hjhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjubjH)}(hjKh]h*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjubjW)}(hdevh]hdev}(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjubeh}(h]h ]h"]h$]h&]noemphjnjouh1juhjubjv)}(hconst char *con_idh](j.)}(hj{#h]hconst}(hjhhhNhNubah}(h]h ]j:ah"]h$]h&]uh1j-hjubj@)}(h h]h }(hj hhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjubj|)}(hcharh]hchar}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j{hjubj@)}(h h]h }(hj%hhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjubjH)}(hjKh]h*}(hj3hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjubjW)}(hcon_idh]hcon_id}(hj@hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjubeh}(h]h ]h"]h$]h&]noemphjnjouh1juhjubjv)}(henum gpiod_flags flagsh](j.)}(hjXh]henum}(hjYhhhNhNubah}(h]h ]j:ah"]h$]h&]uh1j-hjUubj@)}(h h]h }(hjfhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjUubh)}(hhh]jW)}(h gpiod_flagsh]h gpiod_flags}(hjwhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjtubah}(h]h ]h"]h$]h&] refdomainjreftypej+ reftargetjymodnameN classnameNjj)}j]jMc.devm_gpiod_get_arrayasbuh1hhjUubj@)}(h h]h }(hjhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjUubjW)}(hflagsh]hflags}(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjUubeh}(h]h ]h"]h$]h&]noemphjnjouh1juhjubeh}(h]h ]h"]h$]h&]jnjouh1johjhhhjhKubeh}(h]h ]h"]h$]h&]jnjojvuh1j'jwjxhj hhhjhKubah}(h]jah ](j|j}eh"]h$]h&]jj)jhuh1j!hjhKhjhhubj)}(hhh]h)}(h"Resource-managed gpiod_get_array()h]h"Resource-managed gpiod_get_array()}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhc/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:42: ./drivers/gpio/gpiolib-devres.chKhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhjhNhNubj)}(hXz**Parameters** ``struct device *dev`` GPIO consumer ``const char *con_id`` function within the GPIO consumer ``enum gpiod_flags flags`` optional GPIO initialization flags **Description** Managed gpiod_get_array(). GPIO descriptors returned from this function are automatically disposed on driver detach. See gpiod_get_array() for detailed information about behavior and return values. **Return** The GPIO descriptors corresponding to the function **con_id** of device dev, ``-ENOENT`` if no GPIO has been assigned to the requested function, or another IS_ERR() code if an error occurred while trying to acquire the GPIOs.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhc/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:42: ./drivers/gpio/gpiolib-devres.chKhjubj)}(hhh](j)}(h%``struct device *dev`` GPIO consumer h](j)}(h``struct device *dev``h]j )}(hjh]hstruct device *dev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j hj ubah}(h]h ]h"]h$]h&]uh1jhc/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:42: ./drivers/gpio/gpiolib-devres.chKhjubj")}(hhh]h)}(h GPIO consumerh]h GPIO consumer}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj#hKhj$ubah}(h]h ]h"]h$]h&]uh1j!hjubeh}(h]h ]h"]h$]h&]uh1jhj#hKhjubj)}(h9``const char *con_id`` function within the GPIO consumer h](j)}(h``const char *con_id``h]j )}(hjGh]hconst char *con_id}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjEubah}(h]h ]h"]h$]h&]uh1jhc/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:42: ./drivers/gpio/gpiolib-devres.chKhjAubj")}(hhh]h)}(h!function within the GPIO consumerh]h!function within the GPIO consumer}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj\hKhj]ubah}(h]h ]h"]h$]h&]uh1j!hjAubeh}(h]h ]h"]h$]h&]uh1jhj\hKhjubj)}(h>``enum gpiod_flags flags`` optional GPIO initialization flags h](j)}(h``enum gpiod_flags flags``h]j )}(hjh]henum gpiod_flags flags}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j hj~ubah}(h]h ]h"]h$]h&]uh1jhc/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:42: ./drivers/gpio/gpiolib-devres.chKhjzubj")}(hhh]h)}(h"optional GPIO initialization flagsh]h"optional GPIO initialization flags}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1j!hjzubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhc/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:42: ./drivers/gpio/gpiolib-devres.chKhjubh)}(hManaged gpiod_get_array(). GPIO descriptors returned from this function are automatically disposed on driver detach. See gpiod_get_array() for detailed information about behavior and return values.h]hManaged gpiod_get_array(). GPIO descriptors returned from this function are automatically disposed on driver detach. See gpiod_get_array() for detailed information about behavior and return values.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhc/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:42: ./drivers/gpio/gpiolib-devres.chKhjubh)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhc/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:42: ./drivers/gpio/gpiolib-devres.chKhjubh)}(hThe GPIO descriptors corresponding to the function **con_id** of device dev, ``-ENOENT`` if no GPIO has been assigned to the requested function, or another IS_ERR() code if an error occurred while trying to acquire the GPIOs.h](h3The GPIO descriptors corresponding to the function }(hjhhhNhNubj)}(h **con_id**h]hcon_id}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh of device dev, }(hjhhhNhNubj )}(h ``-ENOENT``h]h-ENOENT}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjubh if no GPIO has been assigned to the requested function, or another IS_ERR() code if an error occurred while trying to acquire the GPIOs.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhc/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:42: ./drivers/gpio/gpiolib-devres.chKhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubj )}(hhh]h}(h]h ]h"]h$]h&]entries](j*devm_gpiod_get_array_optional (C function)c.devm_gpiod_get_array_optionalhNtauh1j hjhhhNhNubj)}(hhh](j")}(hrstruct gpio_descs * devm_gpiod_get_array_optional (struct device *dev, const char *con_id, enum gpiod_flags flags)h]j()}(hpstruct gpio_descs *devm_gpiod_get_array_optional(struct device *dev, const char *con_id, enum gpiod_flags flags)h](j.)}(hj1h]hstruct}(hjKhhhNhNubah}(h]h ]j:ah"]h$]h&]uh1j-hjGhhhc/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:42: ./drivers/gpio/gpiolib-devres.chKubj@)}(h h]h }(hjYhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjGhhhjXhKubh)}(hhh]jW)}(h gpio_descsh]h gpio_descs}(hjjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjgubah}(h]h ]h"]h$]h&] refdomainjreftypej+ reftargetjlmodnameN classnameNjj)}j]j3)}j+devm_gpiod_get_array_optionalsbc.devm_gpiod_get_array_optionalasbuh1hhjGhhhjXhKubj@)}(h h]h }(hjhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjGhhhjXhKubjH)}(hjKh]h*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjGhhhjXhKubjQ)}(hdevm_gpiod_get_array_optionalh]jW)}(hjh]hdevm_gpiod_get_array_optional}(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjubah}(h]h ](jijjeh"]h$]h&]jnjouh1jPhjGhhhjXhKubjp)}(h@(struct device *dev, const char *con_id, enum gpiod_flags flags)h](jv)}(hstruct device *devh](j.)}(hj1h]hstruct}(hjhhhNhNubah}(h]h ]j:ah"]h$]h&]uh1j-hjubj@)}(h h]h }(hjhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjubh)}(hhh]jW)}(hdeviceh]hdevice}(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjubah}(h]h ]h"]h$]h&] refdomainjreftypej+ reftargetjmodnameN classnameNjj)}j]jc.devm_gpiod_get_array_optionalasbuh1hhjubj@)}(h h]h }(hjhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjubjH)}(hjKh]h*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjubjW)}(hdevh]hdev}(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjubeh}(h]h ]h"]h$]h&]noemphjnjouh1juhjubjv)}(hconst char *con_idh](j.)}(hj{#h]hconst}(hj5hhhNhNubah}(h]h ]j:ah"]h$]h&]uh1j-hj1ubj@)}(h h]h }(hjBhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hj1ubj|)}(hcharh]hchar}(hjPhhhNhNubah}(h]h ]jah"]h$]h&]uh1j{hj1ubj@)}(h h]h }(hj^hhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hj1ubjH)}(hjKh]h*}(hjlhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj1ubjW)}(hcon_idh]hcon_id}(hjyhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhj1ubeh}(h]h ]h"]h$]h&]noemphjnjouh1juhjubjv)}(henum gpiod_flags flagsh](j.)}(hjXh]henum}(hjhhhNhNubah}(h]h ]j:ah"]h$]h&]uh1j-hjubj@)}(h h]h }(hjhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjubh)}(hhh]jW)}(h gpiod_flagsh]h gpiod_flags}(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjubah}(h]h ]h"]h$]h&] refdomainjreftypej+ reftargetjmodnameN classnameNjj)}j]jc.devm_gpiod_get_array_optionalasbuh1hhjubj@)}(h h]h }(hjhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjubjW)}(hflagsh]hflags}(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjubeh}(h]h ]h"]h$]h&]noemphjnjouh1juhjubeh}(h]h ]h"]h$]h&]jnjouh1johjGhhhjXhKubeh}(h]h ]h"]h$]h&]jnjojvuh1j'jwjxhjChhhjXhKubah}(h]j>ah ](j|j}eh"]h$]h&]jj)jhuh1j!hjXhKhj@hhubj)}(hhh]h)}(h+Resource-managed gpiod_get_array_optional()h]h+Resource-managed gpiod_get_array_optional()}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhc/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:42: ./drivers/gpio/gpiolib-devres.chKhjhhubah}(h]h ]h"]h$]h&]uh1jhj@hhhjXhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhjhNhNubj)}(hX**Parameters** ``struct device *dev`` GPIO consumer ``const char *con_id`` function within the GPIO consumer ``enum gpiod_flags flags`` optional GPIO initialization flags **Description** Managed gpiod_get_array_optional(). GPIO descriptors returned from this function are automatically disposed on driver detach. See gpiod_get_array_optional() for detailed information about behavior and return values. **Return** The GPIO descriptors corresponding to the function **con_id** of device dev, ``NULL`` if no GPIO has been assigned to the requested function, or another IS_ERR() code if an error occurred while trying to acquire the GPIOs.h](h)}(h**Parameters**h]j)}(hj(h]h Parameters}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj&ubah}(h]h ]h"]h$]h&]uh1hhc/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:42: ./drivers/gpio/gpiolib-devres.chKhj"ubj)}(hhh](j)}(h%``struct device *dev`` GPIO consumer h](j)}(h``struct device *dev``h]j )}(hjGh]hstruct device *dev}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjEubah}(h]h ]h"]h$]h&]uh1jhc/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:42: ./drivers/gpio/gpiolib-devres.chKhjAubj")}(hhh]h)}(h GPIO consumerh]h GPIO consumer}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj\hKhj]ubah}(h]h ]h"]h$]h&]uh1j!hjAubeh}(h]h ]h"]h$]h&]uh1jhj\hKhj>ubj)}(h9``const char *con_id`` function within the GPIO consumer h](j)}(h``const char *con_id``h]j )}(hjh]hconst char *con_id}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j hj~ubah}(h]h ]h"]h$]h&]uh1jhc/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:42: ./drivers/gpio/gpiolib-devres.chKhjzubj")}(hhh]h)}(h!function within the GPIO consumerh]h!function within the GPIO consumer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1j!hjzubeh}(h]h ]h"]h$]h&]uh1jhjhKhj>ubj)}(h>``enum gpiod_flags flags`` optional GPIO initialization flags h](j)}(h``enum gpiod_flags flags``h]j )}(hjh]henum gpiod_flags flags}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjubah}(h]h ]h"]h$]h&]uh1jhc/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:42: ./drivers/gpio/gpiolib-devres.chKhjubj")}(hhh]h)}(h"optional GPIO initialization flagsh]h"optional GPIO initialization flags}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1j!hjubeh}(h]h ]h"]h$]h&]uh1jhjhKhj>ubeh}(h]h ]h"]h$]h&]uh1jhj"ubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhc/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:42: ./drivers/gpio/gpiolib-devres.chKhj"ubh)}(hManaged gpiod_get_array_optional(). GPIO descriptors returned from this function are automatically disposed on driver detach. See gpiod_get_array_optional() for detailed information about behavior and return values.h]hManaged gpiod_get_array_optional(). GPIO descriptors returned from this function are automatically disposed on driver detach. See gpiod_get_array_optional() for detailed information about behavior and return values.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhc/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:42: ./drivers/gpio/gpiolib-devres.chKhj"ubh)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhc/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:42: ./drivers/gpio/gpiolib-devres.chKhj"ubh)}(hThe GPIO descriptors corresponding to the function **con_id** of device dev, ``NULL`` if no GPIO has been assigned to the requested function, or another IS_ERR() code if an error occurred while trying to acquire the GPIOs.h](h3The GPIO descriptors corresponding to the function }(hj1hhhNhNubj)}(h **con_id**h]hcon_id}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj1ubh of device dev, }(hj1hhhNhNubj )}(h``NULL``h]hNULL}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1j hj1ubh if no GPIO has been assigned to the requested function, or another IS_ERR() code if an error occurred while trying to acquire the GPIOs.}(hj1hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhc/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:42: ./drivers/gpio/gpiolib-devres.chKhj"ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubj )}(hhh]h}(h]h ]h"]h$]h&]entries](jdevm_gpiod_put (C function)c.devm_gpiod_puthNtauh1j hjhhhNhNubj)}(hhh](j")}(h@void devm_gpiod_put (struct device *dev, struct gpio_desc *desc)h]j()}(h?void devm_gpiod_put(struct device *dev, struct gpio_desc *desc)h](j|)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j{hjhhhc/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:42: ./drivers/gpio/gpiolib-devres.chMubj@)}(h h]h }(hjhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjhhhjhMubjQ)}(hdevm_gpiod_puth]jW)}(hdevm_gpiod_puth]hdevm_gpiod_put}(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjubah}(h]h ](jijjeh"]h$]h&]jnjouh1jPhjhhhjhMubjp)}(h,(struct device *dev, struct gpio_desc *desc)h](jv)}(hstruct device *devh](j.)}(hj1h]hstruct}(hjhhhNhNubah}(h]h ]j:ah"]h$]h&]uh1j-hjubj@)}(h h]h }(hjhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjubh)}(hhh]jW)}(hdeviceh]hdevice}(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjubah}(h]h ]h"]h$]h&] refdomainjreftypej+ reftargetjmodnameN classnameNjj)}j]j3)}j+jsbc.devm_gpiod_putasbuh1hhjubj@)}(h h]h }(hjhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjubjH)}(hjKh]h*}(hj hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjubjW)}(hdevh]hdev}(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjubeh}(h]h ]h"]h$]h&]noemphjnjouh1juhjubjv)}(hstruct gpio_desc *desch](j.)}(hj1h]hstruct}(hj3hhhNhNubah}(h]h ]j:ah"]h$]h&]uh1j-hj/ubj@)}(h h]h }(hj@hhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hj/ubh)}(hhh]jW)}(h gpio_desch]h gpio_desc}(hjQhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjNubah}(h]h ]h"]h$]h&] refdomainjreftypej+ reftargetjSmodnameN classnameNjj)}j]jc.devm_gpiod_putasbuh1hhj/ubj@)}(h h]h }(hjohhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hj/ubjH)}(hjKh]h*}(hj}hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj/ubjW)}(hdesch]hdesc}(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhj/ubeh}(h]h ]h"]h$]h&]noemphjnjouh1juhjubeh}(h]h ]h"]h$]h&]jnjouh1johjhhhjhMubeh}(h]h ]h"]h$]h&]jnjojvuh1j'jwjxhj|hhhjhMubah}(h]jwah ](j|j}eh"]h$]h&]jj)jhuh1j!hjhMhjyhhubj)}(hhh]h)}(hResource-managed gpiod_put()h]hResource-managed gpiod_put()}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhc/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:42: ./drivers/gpio/gpiolib-devres.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjyhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhjhNhNubj)}(hXF**Parameters** ``struct device *dev`` GPIO consumer ``struct gpio_desc *desc`` GPIO descriptor to dispose of **Description** Dispose of a GPIO descriptor obtained with devm_gpiod_get() or devm_gpiod_get_index(). Normally this function will not be called as the GPIO will be disposed of by the resource management code.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhc/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:42: ./drivers/gpio/gpiolib-devres.chM hjubj)}(hhh](j)}(h%``struct device *dev`` GPIO consumer h](j)}(h``struct device *dev``h]j )}(hjh]hstruct device *dev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjubah}(h]h ]h"]h$]h&]uh1jhc/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:42: ./drivers/gpio/gpiolib-devres.chMhjubj")}(hhh]h)}(h GPIO consumerh]h GPIO consumer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hMhj ubah}(h]h ]h"]h$]h&]uh1j!hjubeh}(h]h ]h"]h$]h&]uh1jhj hMhjubj)}(h9``struct gpio_desc *desc`` GPIO descriptor to dispose of h](j)}(h``struct gpio_desc *desc``h]j )}(hj.h]hstruct gpio_desc *desc}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1j hj,ubah}(h]h ]h"]h$]h&]uh1jhc/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:42: ./drivers/gpio/gpiolib-devres.chM hj(ubj")}(hhh]h)}(hGPIO descriptor to dispose ofh]hGPIO descriptor to dispose of}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjChM hjDubah}(h]h ]h"]h$]h&]uh1j!hj(ubeh}(h]h ]h"]h$]h&]uh1jhjChM hjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjih]h Description}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjgubah}(h]h ]h"]h$]h&]uh1hhc/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:42: ./drivers/gpio/gpiolib-devres.chM hjubh)}(hDispose of a GPIO descriptor obtained with devm_gpiod_get() or devm_gpiod_get_index(). Normally this function will not be called as the GPIO will be disposed of by the resource management code.h]hDispose of a GPIO descriptor obtained with devm_gpiod_get() or devm_gpiod_get_index(). Normally this function will not be called as the GPIO will be disposed of by the resource management code.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhc/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:42: ./drivers/gpio/gpiolib-devres.chM hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubj )}(hhh]h}(h]h ]h"]h$]h&]entries](jdevm_gpiod_unhinge (C function)c.devm_gpiod_unhingehNtauh1j hjhhhNhNubj)}(hhh](j")}(hDvoid devm_gpiod_unhinge (struct device *dev, struct gpio_desc *desc)h]j()}(hCvoid devm_gpiod_unhinge(struct device *dev, struct gpio_desc *desc)h](j|)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j{hjhhhc/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:42: ./drivers/gpio/gpiolib-devres.chMubj@)}(h h]h }(hjhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjhhhjhMubjQ)}(hdevm_gpiod_unhingeh]jW)}(hdevm_gpiod_unhingeh]hdevm_gpiod_unhinge}(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjubah}(h]h ](jijjeh"]h$]h&]jnjouh1jPhjhhhjhMubjp)}(h,(struct device *dev, struct gpio_desc *desc)h](jv)}(hstruct device *devh](j.)}(hj1h]hstruct}(hjhhhNhNubah}(h]h ]j:ah"]h$]h&]uh1j-hjubj@)}(h h]h }(hjhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjubh)}(hhh]jW)}(hdeviceh]hdevice}(hj hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjubah}(h]h ]h"]h$]h&] refdomainjreftypej+ reftargetj modnameN classnameNjj)}j]j3)}j+jsbc.devm_gpiod_unhingeasbuh1hhjubj@)}(h h]h }(hj)hhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjubjH)}(hjKh]h*}(hj7hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjubjW)}(hdevh]hdev}(hjDhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjubeh}(h]h ]h"]h$]h&]noemphjnjouh1juhjubjv)}(hstruct gpio_desc *desch](j.)}(hj1h]hstruct}(hj]hhhNhNubah}(h]h ]j:ah"]h$]h&]uh1j-hjYubj@)}(h h]h }(hjjhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjYubh)}(hhh]jW)}(h gpio_desch]h gpio_desc}(hj{hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjxubah}(h]h ]h"]h$]h&] refdomainjreftypej+ reftargetj}modnameN classnameNjj)}j]j%c.devm_gpiod_unhingeasbuh1hhjYubj@)}(h h]h }(hjhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjYubjH)}(hjKh]h*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjYubjW)}(hdesch]hdesc}(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjYubeh}(h]h ]h"]h$]h&]noemphjnjouh1juhjubeh}(h]h ]h"]h$]h&]jnjouh1johjhhhjhMubeh}(h]h ]h"]h$]h&]jnjojvuh1j'jwjxhjhhhjhMubah}(h]jah ](j|j}eh"]h$]h&]jj)jhuh1j!hjhMhjhhubj)}(hhh]h)}(h1Remove resource management from a gpio descriptorh]h1Remove resource management from a gpio descriptor}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhc/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:42: ./drivers/gpio/gpiolib-devres.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhjhNhNubj)}(hX**Parameters** ``struct device *dev`` GPIO consumer ``struct gpio_desc *desc`` GPIO descriptor to remove resource management from **Description** *DEPRECATED* This function should not be used. It's been provided as a workaround for resource ownership issues in the regulator framework and should be replaced with a better solution. Remove resource management from a GPIO descriptor. This is needed when you want to hand over lifecycle management of a descriptor to another mechanism.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhc/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:42: ./drivers/gpio/gpiolib-devres.chMhjubj)}(hhh](j)}(h%``struct device *dev`` GPIO consumer h](j)}(h``struct device *dev``h]j )}(hjh]hstruct device *dev}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1j hjubah}(h]h ]h"]h$]h&]uh1jhc/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:42: ./drivers/gpio/gpiolib-devres.chMhjubj")}(hhh]h)}(h GPIO consumerh]h GPIO consumer}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj4hMhj5ubah}(h]h ]h"]h$]h&]uh1j!hjubeh}(h]h ]h"]h$]h&]uh1jhj4hMhjubj)}(hN``struct gpio_desc *desc`` GPIO descriptor to remove resource management from h](j)}(h``struct gpio_desc *desc``h]j )}(hjXh]hstruct gpio_desc *desc}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjVubah}(h]h ]h"]h$]h&]uh1jhc/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:42: ./drivers/gpio/gpiolib-devres.chMhjRubj")}(hhh]h)}(h2GPIO descriptor to remove resource management fromh]h2GPIO descriptor to remove resource management from}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjmhMhjnubah}(h]h ]h"]h$]h&]uh1j!hjRubeh}(h]h ]h"]h$]h&]uh1jhjmhMhjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhc/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:42: ./drivers/gpio/gpiolib-devres.chMhjubh)}(h*DEPRECATED* This function should not be used. It's been provided as a workaround for resource ownership issues in the regulator framework and should be replaced with a better solution.h](j#)}(h *DEPRECATED*h]h DEPRECATED}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjubh This function should not be used. It’s been provided as a workaround for resource ownership issues in the regulator framework and should be replaced with a better solution.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhc/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:42: ./drivers/gpio/gpiolib-devres.chMhjubh)}(hRemove resource management from a GPIO descriptor. This is needed when you want to hand over lifecycle management of a descriptor to another mechanism.h]hRemove resource management from a GPIO descriptor. This is needed when you want to hand over lifecycle management of a descriptor to another mechanism.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhc/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:42: ./drivers/gpio/gpiolib-devres.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubj )}(hhh]h}(h]h ]h"]h$]h&]entries](j!devm_gpiod_put_array (C function)c.devm_gpiod_put_arrayhNtauh1j hjhhhNhNubj)}(hhh](j")}(hHvoid devm_gpiod_put_array (struct device *dev, struct gpio_descs *descs)h]j()}(hGvoid devm_gpiod_put_array(struct device *dev, struct gpio_descs *descs)h](j|)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j{hjhhhc/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:42: ./drivers/gpio/gpiolib-devres.chM8ubj@)}(h h]h }(hjhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjhhhjhM8ubjQ)}(hdevm_gpiod_put_arrayh]jW)}(hdevm_gpiod_put_arrayh]hdevm_gpiod_put_array}(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjubah}(h]h ](jijjeh"]h$]h&]jnjouh1jPhjhhhjhM8ubjp)}(h.(struct device *dev, struct gpio_descs *descs)h](jv)}(hstruct device *devh](j.)}(hj1h]hstruct}(hj2hhhNhNubah}(h]h ]j:ah"]h$]h&]uh1j-hj.ubj@)}(h h]h }(hj?hhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hj.ubh)}(hhh]jW)}(hdeviceh]hdevice}(hjPhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjMubah}(h]h ]h"]h$]h&] refdomainjreftypej+ reftargetjRmodnameN classnameNjj)}j]j3)}j+jsbc.devm_gpiod_put_arrayasbuh1hhj.ubj@)}(h h]h }(hjphhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hj.ubjH)}(hjKh]h*}(hj~hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj.ubjW)}(hdevh]hdev}(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhj.ubeh}(h]h ]h"]h$]h&]noemphjnjouh1juhj*ubjv)}(hstruct gpio_descs *descsh](j.)}(hj1h]hstruct}(hjhhhNhNubah}(h]h ]j:ah"]h$]h&]uh1j-hjubj@)}(h h]h }(hjhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjubh)}(hhh]jW)}(h gpio_descsh]h gpio_descs}(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjubah}(h]h ]h"]h$]h&] refdomainjreftypej+ reftargetjmodnameN classnameNjj)}j]jlc.devm_gpiod_put_arrayasbuh1hhjubj@)}(h h]h }(hjhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjubjH)}(hjKh]h*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjubjW)}(hdescsh]hdescs}(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjubeh}(h]h ]h"]h$]h&]noemphjnjouh1juhj*ubeh}(h]h ]h"]h$]h&]jnjouh1johjhhhjhM8ubeh}(h]h ]h"]h$]h&]jnjojvuh1j'jwjxhjhhhjhM8ubah}(h]jah ](j|j}eh"]h$]h&]jj)jhuh1j!hjhM8hjhhubj)}(hhh]h)}(h"Resource-managed gpiod_put_array()h]h"Resource-managed gpiod_put_array()}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1hhc/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:42: ./drivers/gpio/gpiolib-devres.chM8hj"hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM8ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj=jj=jjjuh1jhhhjhNhNubj)}(hXF**Parameters** ``struct device *dev`` GPIO consumer ``struct gpio_descs *descs`` GPIO descriptor array to dispose of **Description** Dispose of an array of GPIO descriptors obtained with devm_gpiod_get_array(). Normally this function will not be called as the GPIOs will be disposed of by the resource management code.h](h)}(h**Parameters**h]j)}(hjGh]h Parameters}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjEubah}(h]h ]h"]h$]h&]uh1hhc/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:42: ./drivers/gpio/gpiolib-devres.chM<hjAubj)}(hhh](j)}(h%``struct device *dev`` GPIO consumer h](j)}(h``struct device *dev``h]j )}(hjfh]hstruct device *dev}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjdubah}(h]h ]h"]h$]h&]uh1jhc/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:42: ./drivers/gpio/gpiolib-devres.chM9hj`ubj")}(hhh]h)}(h GPIO consumerh]h GPIO consumer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj{hM9hj|ubah}(h]h ]h"]h$]h&]uh1j!hj`ubeh}(h]h ]h"]h$]h&]uh1jhj{hM9hj]ubj)}(hA``struct gpio_descs *descs`` GPIO descriptor array to dispose of h](j)}(h``struct gpio_descs *descs``h]j )}(hjh]hstruct gpio_descs *descs}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjubah}(h]h ]h"]h$]h&]uh1jhc/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:42: ./drivers/gpio/gpiolib-devres.chM:hjubj")}(hhh]h)}(h#GPIO descriptor array to dispose ofh]h#GPIO descriptor array to dispose of}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM:hjubah}(h]h ]h"]h$]h&]uh1j!hjubeh}(h]h ]h"]h$]h&]uh1jhjhM:hj]ubeh}(h]h ]h"]h$]h&]uh1jhjAubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhc/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:42: ./drivers/gpio/gpiolib-devres.chM<hjAubh)}(hDispose of an array of GPIO descriptors obtained with devm_gpiod_get_array(). Normally this function will not be called as the GPIOs will be disposed of by the resource management code.h]hDispose of an array of GPIO descriptors obtained with devm_gpiod_get_array(). Normally this function will not be called as the GPIOs will be disposed of by the resource management code.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhc/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:42: ./drivers/gpio/gpiolib-devres.chM<hjAubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubj )}(hhh]h}(h]h ]h"]h$]h&]entries](j,devm_gpiochip_add_data_with_key (C function)!c.devm_gpiochip_add_data_with_keyhNtauh1j hjhhhNhNubj)}(hhh](j")}(hint devm_gpiochip_add_data_with_key (struct device *dev, struct gpio_chip *gc, void *data, struct lock_class_key *lock_key, struct lock_class_key *request_key)h]j()}(hint devm_gpiochip_add_data_with_key(struct device *dev, struct gpio_chip *gc, void *data, struct lock_class_key *lock_key, struct lock_class_key *request_key)h](j|)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j{hjhhhc/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:42: ./drivers/gpio/gpiolib-devres.chMNubj@)}(h h]h }(hj.hhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjhhhj-hMNubjQ)}(hdevm_gpiochip_add_data_with_keyh]jW)}(hdevm_gpiochip_add_data_with_keyh]hdevm_gpiochip_add_data_with_key}(hj@hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhj<ubah}(h]h ](jijjeh"]h$]h&]jnjouh1jPhjhhhj-hMNubjp)}(h{(struct device *dev, struct gpio_chip *gc, void *data, struct lock_class_key *lock_key, struct lock_class_key *request_key)h](jv)}(hstruct device *devh](j.)}(hj1h]hstruct}(hj\hhhNhNubah}(h]h ]j:ah"]h$]h&]uh1j-hjXubj@)}(h h]h }(hjihhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjXubh)}(hhh]jW)}(hdeviceh]hdevice}(hjzhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjwubah}(h]h ]h"]h$]h&] refdomainjreftypej+ reftargetj|modnameN classnameNjj)}j]j3)}j+jBsb!c.devm_gpiochip_add_data_with_keyasbuh1hhjXubj@)}(h h]h }(hjhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjXubjH)}(hjKh]h*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjXubjW)}(hdevh]hdev}(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjXubeh}(h]h ]h"]h$]h&]noemphjnjouh1juhjTubjv)}(hstruct gpio_chip *gch](j.)}(hj1h]hstruct}(hjhhhNhNubah}(h]h ]j:ah"]h$]h&]uh1j-hjubj@)}(h h]h }(hjhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjubh)}(hhh]jW)}(h gpio_chiph]h gpio_chip}(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjubah}(h]h ]h"]h$]h&] refdomainjreftypej+ reftargetjmodnameN classnameNjj)}j]j!c.devm_gpiochip_add_data_with_keyasbuh1hhjubj@)}(h h]h }(hj hhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjubjH)}(hjKh]h*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjubjW)}(hgch]hgc}(hj%hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjubeh}(h]h ]h"]h$]h&]noemphjnjouh1juhjTubjv)}(h void *datah](j|)}(hvoidh]hvoid}(hj>hhhNhNubah}(h]h ]jah"]h$]h&]uh1j{hj:ubj@)}(h h]h }(hjLhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hj:ubjH)}(hjKh]h*}(hjZhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj:ubjW)}(hdatah]hdata}(hjghhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhj:ubeh}(h]h ]h"]h$]h&]noemphjnjouh1juhjTubjv)}(hstruct lock_class_key *lock_keyh](j.)}(hj1h]hstruct}(hjhhhNhNubah}(h]h ]j:ah"]h$]h&]uh1j-hj|ubj@)}(h h]h }(hjhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hj|ubh)}(hhh]jW)}(hlock_class_keyh]hlock_class_key}(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjubah}(h]h ]h"]h$]h&] refdomainjreftypej+ reftargetjmodnameN classnameNjj)}j]j!c.devm_gpiochip_add_data_with_keyasbuh1hhj|ubj@)}(h h]h }(hjhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hj|ubjH)}(hjKh]h*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhj|ubjW)}(hlock_keyh]hlock_key}(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhj|ubeh}(h]h ]h"]h$]h&]noemphjnjouh1juhjTubjv)}(h"struct lock_class_key *request_keyh](j.)}(hj1h]hstruct}(hjhhhNhNubah}(h]h ]j:ah"]h$]h&]uh1j-hjubj@)}(h h]h }(hjhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjubh)}(hhh]jW)}(hlock_class_keyh]hlock_class_key}(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhj ubah}(h]h ]h"]h$]h&] refdomainjreftypej+ reftargetjmodnameN classnameNjj)}j]j!c.devm_gpiochip_add_data_with_keyasbuh1hhjubj@)}(h h]h }(hj,hhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjubjH)}(hjKh]h*}(hj:hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjubjW)}(h request_keyh]h request_key}(hjGhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjubeh}(h]h ]h"]h$]h&]noemphjnjouh1juhjTubeh}(h]h ]h"]h$]h&]jnjouh1johjhhhj-hMNubeh}(h]h ]h"]h$]h&]jnjojvuh1j'jwjxhjhhhj-hMNubah}(h]jah ](j|j}eh"]h$]h&]jj)jhuh1j!hj-hMNhjhhubj)}(hhh]h)}(h-Resource managed gpiochip_add_data_with_key()h]h-Resource managed gpiochip_add_data_with_key()}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1hhc/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:42: ./drivers/gpio/gpiolib-devres.chMNhjnhhubah}(h]h ]h"]h$]h&]uh1jhjhhhj-hMNubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhjhNhNubj)}(hX**Parameters** ``struct device *dev`` pointer to the device that gpio_chip belongs to. ``struct gpio_chip *gc`` the GPIO chip to register ``void *data`` driver-private data associated with this chip ``struct lock_class_key *lock_key`` lockdep class for IRQ lock ``struct lock_class_key *request_key`` lockdep class for IRQ request **Context** potentially before irqs will work **Description** The gpio chip automatically be released when the device is unbound. **Return** A negative errno if the chip can't be registered, such as because the gc->base is invalid or already associated with a different chip. Otherwise it returns zero as a success code.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhc/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:42: ./drivers/gpio/gpiolib-devres.chMRhjubj)}(hhh](j)}(hH``struct device *dev`` pointer to the device that gpio_chip belongs to. h](j)}(h``struct device *dev``h]j )}(hjh]hstruct device *dev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjubah}(h]h ]h"]h$]h&]uh1jhc/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:42: ./drivers/gpio/gpiolib-devres.chMOhjubj")}(hhh]h)}(h0pointer to the device that gpio_chip belongs to.h]h0pointer to the device that gpio_chip belongs to.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMOhjubah}(h]h ]h"]h$]h&]uh1j!hjubeh}(h]h ]h"]h$]h&]uh1jhjhMOhjubj)}(h3``struct gpio_chip *gc`` the GPIO chip to register h](j)}(h``struct gpio_chip *gc``h]j )}(hjh]hstruct gpio_chip *gc}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjubah}(h]h ]h"]h$]h&]uh1jhc/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:42: ./drivers/gpio/gpiolib-devres.chMPhjubj")}(hhh]h)}(hthe GPIO chip to registerh]hthe GPIO chip to register}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMPhjubah}(h]h ]h"]h$]h&]uh1j!hjubeh}(h]h ]h"]h$]h&]uh1jhjhMPhjubj)}(h=``void *data`` driver-private data associated with this chip h](j)}(h``void *data``h]j )}(hj$h]h void *data}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1j hj"ubah}(h]h ]h"]h$]h&]uh1jhc/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:42: ./drivers/gpio/gpiolib-devres.chMQhjubj")}(hhh]h)}(h-driver-private data associated with this chiph]h-driver-private data associated with this chip}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj9hMQhj:ubah}(h]h ]h"]h$]h&]uh1j!hjubeh}(h]h ]h"]h$]h&]uh1jhj9hMQhjubj)}(h?``struct lock_class_key *lock_key`` lockdep class for IRQ lock h](j)}(h#``struct lock_class_key *lock_key``h]j )}(hj]h]hstruct lock_class_key *lock_key}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1j hj[ubah}(h]h ]h"]h$]h&]uh1jhc/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:42: ./drivers/gpio/gpiolib-devres.chMRhjWubj")}(hhh]h)}(hlockdep class for IRQ lockh]hlockdep class for IRQ lock}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjrhMRhjsubah}(h]h ]h"]h$]h&]uh1j!hjWubeh}(h]h ]h"]h$]h&]uh1jhjrhMRhjubj)}(hE``struct lock_class_key *request_key`` lockdep class for IRQ request h](j)}(h&``struct lock_class_key *request_key``h]j )}(hjh]h"struct lock_class_key *request_key}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjubah}(h]h ]h"]h$]h&]uh1jhc/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:42: ./drivers/gpio/gpiolib-devres.chMShjubj")}(hhh]h)}(hlockdep class for IRQ requesth]hlockdep class for IRQ request}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMShjubah}(h]h ]h"]h$]h&]uh1j!hjubeh}(h]h ]h"]h$]h&]uh1jhjhMShjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h **Context**h]j)}(hjh]hContext}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhc/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:42: ./drivers/gpio/gpiolib-devres.chMUhjubh)}(h!potentially before irqs will workh]h!potentially before irqs will work}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhc/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:42: ./drivers/gpio/gpiolib-devres.chMUhjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhc/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:42: ./drivers/gpio/gpiolib-devres.chMWhjubh)}(hCThe gpio chip automatically be released when the device is unbound.h]hCThe gpio chip automatically be released when the device is unbound.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhc/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:42: ./drivers/gpio/gpiolib-devres.chMVhjubh)}(h **Return**h]j)}(hjh]hReturn}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhc/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:42: ./drivers/gpio/gpiolib-devres.chMXhjubh)}(hA negative errno if the chip can't be registered, such as because the gc->base is invalid or already associated with a different chip. Otherwise it returns zero as a success code.h]hA negative errno if the chip can’t be registered, such as because the gc->base is invalid or already associated with a different chip. Otherwise it returns zero as a success code.}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1hhc/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:42: ./drivers/gpio/gpiolib-devres.chMYhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubeh}(h]device-managed-apiah ]h"]device-managed apiah$]h&]uh1hhhhhhhhK(ubh)}(hhh](h)}(h sysfs helpersh]h sysfs helpers}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjShhhhhK.ubj )}(hhh]h}(h]h ]h"]h$]h&]entries](jgpiod_export (C function)c.gpiod_exporthNtauh1j hjShhhNhNubj)}(hhh](j")}(hDint gpiod_export (struct gpio_desc *desc, bool direction_may_change)h]j()}(hCint gpiod_export(struct gpio_desc *desc, bool direction_may_change)h](j|)}(hinth]hint}(hj}hhhNhNubah}(h]h ]jah"]h$]h&]uh1j{hjyhhhb/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:48: ./drivers/gpio/gpiolib-sysfs.chM&ubj@)}(h h]h }(hjhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjyhhhjhM&ubjQ)}(h gpiod_exporth]jW)}(h gpiod_exporth]h gpiod_export}(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjubah}(h]h ](jijjeh"]h$]h&]jnjouh1jPhjyhhhjhM&ubjp)}(h3(struct gpio_desc *desc, bool direction_may_change)h](jv)}(hstruct gpio_desc *desch](j.)}(hj1h]hstruct}(hjhhhNhNubah}(h]h ]j:ah"]h$]h&]uh1j-hjubj@)}(h h]h }(hjhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjubh)}(hhh]jW)}(h gpio_desch]h gpio_desc}(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjubah}(h]h ]h"]h$]h&] refdomainjreftypej+ reftargetjmodnameN classnameNjj)}j]j3)}j+jsbc.gpiod_exportasbuh1hhjubj@)}(h h]h }(hjhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjubjH)}(hjKh]h*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjubjW)}(hdesch]hdesc}(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjubeh}(h]h ]h"]h$]h&]noemphjnjouh1juhjubjv)}(hbool direction_may_changeh](j|)}(hj)h]hbool}(hj,hhhNhNubah}(h]h ]jah"]h$]h&]uh1j{hj(ubj@)}(h h]h }(hj9hhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hj(ubjW)}(hdirection_may_changeh]hdirection_may_change}(hjGhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhj(ubeh}(h]h ]h"]h$]h&]noemphjnjouh1juhjubeh}(h]h ]h"]h$]h&]jnjouh1johjyhhhjhM&ubeh}(h]h ]h"]h$]h&]jnjojvuh1j'jwjxhjuhhhjhM&ubah}(h]jpah ](j|j}eh"]h$]h&]jj)jhuh1j!hjhM&hjrhhubj)}(hhh]h)}(hexport a GPIO through sysfsh]hexport a GPIO through sysfs}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:48: ./drivers/gpio/gpiolib-sysfs.chM&hjnhhubah}(h]h ]h"]h$]h&]uh1jhjrhhhjhM&ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhjShNhNubj)}(hX**Parameters** ``struct gpio_desc *desc`` GPIO to make available, already requested ``bool direction_may_change`` true if userspace may change GPIO direction **Context** arch_initcall or later **Description** When drivers want to make a GPIO accessible to userspace after they have requested it -- perhaps while debugging, or as part of their public interface -- they may use this routine. If the GPIO can change direction (some can't) and the caller allows it, userspace will see "direction" sysfs attribute which may be used to change the gpio's direction. A "value" attribute will always be provided. **Return** 0 on success, or negative errno on failure.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:48: ./drivers/gpio/gpiolib-sysfs.chM*hjubj)}(hhh](j)}(hE``struct gpio_desc *desc`` GPIO to make available, already requested h](j)}(h``struct gpio_desc *desc``h]j )}(hjh]hstruct gpio_desc *desc}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:48: ./drivers/gpio/gpiolib-sysfs.chM'hjubj")}(hhh]h)}(h)GPIO to make available, already requestedh]h)GPIO to make available, already requested}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM'hjubah}(h]h ]h"]h$]h&]uh1j!hjubeh}(h]h ]h"]h$]h&]uh1jhjhM'hjubj)}(hJ``bool direction_may_change`` true if userspace may change GPIO direction h](j)}(h``bool direction_may_change``h]j )}(hjh]hbool direction_may_change}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:48: ./drivers/gpio/gpiolib-sysfs.chM(hjubj")}(hhh]h)}(h+true if userspace may change GPIO directionh]h+true if userspace may change GPIO direction}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM(hjubah}(h]h ]h"]h$]h&]uh1j!hjubeh}(h]h ]h"]h$]h&]uh1jhjhM(hjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h **Context**h]j)}(hj&h]hContext}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj$ubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:48: ./drivers/gpio/gpiolib-sysfs.chM*hjubh)}(harch_initcall or laterh]harch_initcall or later}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:48: ./drivers/gpio/gpiolib-sysfs.chM)hjubh)}(h**Description**h]j)}(hjMh]h Description}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjKubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:48: ./drivers/gpio/gpiolib-sysfs.chM+hjubh)}(hXWhen drivers want to make a GPIO accessible to userspace after they have requested it -- perhaps while debugging, or as part of their public interface -- they may use this routine. If the GPIO can change direction (some can't) and the caller allows it, userspace will see "direction" sysfs attribute which may be used to change the gpio's direction. A "value" attribute will always be provided.h]hXWhen drivers want to make a GPIO accessible to userspace after they have requested it -- perhaps while debugging, or as part of their public interface -- they may use this routine. If the GPIO can change direction (some can’t) and the caller allows it, userspace will see “direction” sysfs attribute which may be used to change the gpio’s direction. A “value” attribute will always be provided.}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:48: ./drivers/gpio/gpiolib-sysfs.chM*hjubh)}(h **Return**h]j)}(hjth]hReturn}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjrubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:48: ./drivers/gpio/gpiolib-sysfs.chM1hjubh)}(h+0 on success, or negative errno on failure.h]h+0 on success, or negative errno on failure.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:48: ./drivers/gpio/gpiolib-sysfs.chM2hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjShhhNhNubj )}(hhh]h}(h]h ]h"]h$]h&]entries](jgpiod_export_link (C function)c.gpiod_export_linkhNtauh1j hjShhhNhNubj)}(hhh](j")}(hTint gpiod_export_link (struct device *dev, const char *name, struct gpio_desc *desc)h]j()}(hSint gpiod_export_link(struct device *dev, const char *name, struct gpio_desc *desc)h](j|)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j{hjhhhb/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:48: ./drivers/gpio/gpiolib-sysfs.chMubj@)}(h h]h }(hjhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjhhhjhMubjQ)}(hgpiod_export_linkh]jW)}(hgpiod_export_linkh]hgpiod_export_link}(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjubah}(h]h ](jijjeh"]h$]h&]jnjouh1jPhjhhhjhMubjp)}(h>(struct device *dev, const char *name, struct gpio_desc *desc)h](jv)}(hstruct device *devh](j.)}(hj1h]hstruct}(hjhhhNhNubah}(h]h ]j:ah"]h$]h&]uh1j-hjubj@)}(h h]h }(hjhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjubh)}(hhh]jW)}(hdeviceh]hdevice}(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjubah}(h]h ]h"]h$]h&] refdomainjreftypej+ reftargetjmodnameN classnameNjj)}j]j3)}j+jsbc.gpiod_export_linkasbuh1hhjubj@)}(h h]h }(hj4hhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjubjH)}(hjKh]h*}(hjBhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjubjW)}(hdevh]hdev}(hjOhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjubeh}(h]h ]h"]h$]h&]noemphjnjouh1juhjubjv)}(hconst char *nameh](j.)}(hj{#h]hconst}(hjhhhhNhNubah}(h]h ]j:ah"]h$]h&]uh1j-hjdubj@)}(h h]h }(hjuhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjdubj|)}(hcharh]hchar}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j{hjdubj@)}(h h]h }(hjhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjdubjH)}(hjKh]h*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjdubjW)}(hnameh]hname}(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjdubeh}(h]h ]h"]h$]h&]noemphjnjouh1juhjubjv)}(hstruct gpio_desc *desch](j.)}(hj1h]hstruct}(hjhhhNhNubah}(h]h ]j:ah"]h$]h&]uh1j-hjubj@)}(h h]h }(hjhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjubh)}(hhh]jW)}(h gpio_desch]h gpio_desc}(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjubah}(h]h ]h"]h$]h&] refdomainjreftypej+ reftargetjmodnameN classnameNjj)}j]j0c.gpiod_export_linkasbuh1hhjubj@)}(h h]h }(hjhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjubjH)}(hjKh]h*}(hjhhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjubjW)}(hdesch]hdesc}(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjubeh}(h]h ]h"]h$]h&]noemphjnjouh1juhjubeh}(h]h ]h"]h$]h&]jnjouh1johjhhhjhMubeh}(h]h ]h"]h$]h&]jnjojvuh1j'jwjxhjhhhjhMubah}(h]jah ](j|j}eh"]h$]h&]jj)jhuh1j!hjhMhjhhubj)}(hhh]h)}(h,create a sysfs link to an exported GPIO nodeh]h,create a sysfs link to an exported GPIO node}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:48: ./drivers/gpio/gpiolib-sysfs.chMhjChhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj^jj^jjjuh1jhhhjShNhNubj)}(hXz**Parameters** ``struct device *dev`` device under which to create symlink ``const char *name`` name of the symlink ``struct gpio_desc *desc`` GPIO to create symlink to, already exported **Description** Set up a symlink from /sys/.../dev/name to /sys/class/gpio/gpioN node. Caller is responsible for unlinking. **Return** 0 on success, or negative errno on failure.h](h)}(h**Parameters**h]j)}(hjhh]h Parameters}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjfubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:48: ./drivers/gpio/gpiolib-sysfs.chMhjbubj)}(hhh](j)}(h<``struct device *dev`` device under which to create symlink h](j)}(h``struct device *dev``h]j )}(hjh]hstruct device *dev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:48: ./drivers/gpio/gpiolib-sysfs.chMhjubj")}(hhh]h)}(h$device under which to create symlinkh]h$device under which to create symlink}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j!hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhj~ubj)}(h)``const char *name`` name of the symlink h](j)}(h``const char *name``h]j )}(hjh]hconst char *name}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:48: ./drivers/gpio/gpiolib-sysfs.chMhjubj")}(hhh]h)}(hname of the symlinkh]hname of the symlink}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j!hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhj~ubj)}(hG``struct gpio_desc *desc`` GPIO to create symlink to, already exported h](j)}(h``struct gpio_desc *desc``h]j )}(hjh]hstruct gpio_desc *desc}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:48: ./drivers/gpio/gpiolib-sysfs.chMhjubj")}(hhh]h)}(h+GPIO to create symlink to, already exportedh]h+GPIO to create symlink to, already exported}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j!hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhj~ubeh}(h]h ]h"]h$]h&]uh1jhjbubh)}(h**Description**h]j)}(hj4h]h Description}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2ubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:48: ./drivers/gpio/gpiolib-sysfs.chMhjbubh)}(hkSet up a symlink from /sys/.../dev/name to /sys/class/gpio/gpioN node. Caller is responsible for unlinking.h]hkSet up a symlink from /sys/.../dev/name to /sys/class/gpio/gpioN node. Caller is responsible for unlinking.}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:48: ./drivers/gpio/gpiolib-sysfs.chMhjbubh)}(h **Return**h]j)}(hj[h]hReturn}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjYubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:48: ./drivers/gpio/gpiolib-sysfs.chMhjbubh)}(h+0 on success, or negative errno on failure.h]h+0 on success, or negative errno on failure.}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:48: ./drivers/gpio/gpiolib-sysfs.chMhjbubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjShhhNhNubj )}(hhh]h}(h]h ]h"]h$]h&]entries](jgpiod_unexport (C function)c.gpiod_unexporthNtauh1j hjShhhNhNubj)}(hhh](j")}(h,void gpiod_unexport (struct gpio_desc *desc)h]j()}(h+void gpiod_unexport(struct gpio_desc *desc)h](j|)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j{hjhhhb/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:48: ./drivers/gpio/gpiolib-sysfs.chMubj@)}(h h]h }(hjhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjhhhjhMubjQ)}(hgpiod_unexporth]jW)}(hgpiod_unexporth]hgpiod_unexport}(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjubah}(h]h ](jijjeh"]h$]h&]jnjouh1jPhjhhhjhMubjp)}(h(struct gpio_desc *desc)h]jv)}(hstruct gpio_desc *desch](j.)}(hj1h]hstruct}(hjhhhNhNubah}(h]h ]j:ah"]h$]h&]uh1j-hjubj@)}(h h]h }(hjhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjubh)}(hhh]jW)}(h gpio_desch]h gpio_desc}(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjubah}(h]h ]h"]h$]h&] refdomainjreftypej+ reftargetjmodnameN classnameNjj)}j]j3)}j+jsbc.gpiod_unexportasbuh1hhjubj@)}(h h]h }(hjhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjubjH)}(hjKh]h*}(hj)hhhNhNubah}(h]h ]jTah"]h$]h&]uh1jGhjubjW)}(hdesch]hdesc}(hj6hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjubeh}(h]h ]h"]h$]h&]noemphjnjouh1juhjubah}(h]h ]h"]h$]h&]jnjouh1johjhhhjhMubeh}(h]h ]h"]h$]h&]jnjojvuh1j'jwjxhjhhhjhMubah}(h]jah ](j|j}eh"]h$]h&]jj)jhuh1j!hjhMhjhhubj)}(hhh]h)}(h reverse effect of gpiod_export()h]h reverse effect of gpiod_export()}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:48: ./drivers/gpio/gpiolib-sysfs.chMhj]hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjxjjxjjjuh1jhhhjShNhNubj)}(hy**Parameters** ``struct gpio_desc *desc`` GPIO to make unavailable **Description** This is implicit on gpiod_free().h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:48: ./drivers/gpio/gpiolib-sysfs.chMhj|ubj)}(hhh]j)}(h4``struct gpio_desc *desc`` GPIO to make unavailable h](j)}(h``struct gpio_desc *desc``h]j )}(hjh]hstruct gpio_desc *desc}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:48: ./drivers/gpio/gpiolib-sysfs.chMhjubj")}(hhh]h)}(hGPIO to make unavailableh]hGPIO to make unavailable}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j!hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jhj|ubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:48: ./drivers/gpio/gpiolib-sysfs.chMhj|ubh)}(h!This is implicit on gpiod_free().h]h!This is implicit on gpiod_free().}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:48: ./drivers/gpio/gpiolib-sysfs.chMhj|ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjShhhNhNubeh}(h] sysfs-helpersah ]h"] sysfs helpersah$]h&]uh1hhhhhhhhK.ubeh}(h]!general-purpose-input-output-gpioah ]h"]#general purpose input/output (gpio)ah$]h&]uh1hhhhhhhhKubeh}(h]h ]h"]h$]h&]sourcehuh1hcurrent_sourceN current_lineNsettingsdocutils.frontendValues)}(hN generatorN datestampN source_linkN source_urlN toc_backlinksentryfootnote_backlinksK sectnum_xformKstrip_commentsNstrip_elements_with_classesN strip_classesN report_levelK halt_levelKexit_status_levelKdebugNwarning_streamN tracebackinput_encoding utf-8-siginput_encoding_error_handlerstrictoutput_encodingutf-8output_encoding_error_handlerj;error_encodingutf-8error_encoding_error_handlerbackslashreplace language_codeenrecord_dependenciesNconfigN id_prefixhauto_id_prefixid dump_settingsNdump_internalsNdump_transformsNdump_pseudo_xmlNexpose_internalsNstrict_visitorN_disable_configN_sourceh _destinationN _config_files]7/var/lib/git/docbuild/linux/Documentation/docutils.confafile_insertion_enabled raw_enabledKline_length_limitM'pep_referencesN pep_base_urlhttps://peps.python.org/pep_file_url_templatepep-%04drfc_referencesN rfc_base_url&https://datatracker.ietf.org/doc/html/ tab_widthKtrim_footnote_reference_spacesyntax_highlightlong smart_quotessmartquotes_locales]character_level_inline_markupdoctitle_xform docinfo_xformKsectsubtitle_xform image_loadinglinkembed_stylesheetcloak_email_addressessection_self_linkenvNubreporterNindirect_targets]substitution_defs}substitution_names}refnames}refids}nameids}(jjjjjjjjjPjMj j u nametypes}(jjjjjPj uh}(jhjhjj#jA jF jjjjjjjjjnjsjjj j j/#j4#j$j$j&j'j(j(j+j#+j,j,jH.jM.jZ0j_0j2j2j 4j4j5j5j7j7j:j:jE<jJ<j>j!>j?j?jEAjJAj(Cj-CjyEj~EjGjGjiIjnIjKjLjoOjtOjLSjQSjTjTjVjVj6[j;[j\j\j_^jd^ju`jz`jbjbjdjdjfjfjhjhjjjkjljljmjmjojoj|qjqj ujujxjxjzjzj|j|jpjujjjjjjjMjRjjjjjMjRjjjjj,j1jQjVjvj{jj jjjjjHjMjjjjjjjjj*j/jɷjηjhjmjjjjj7j<jjjjj$j)jjj&j+jjjjjjjjjMjj9j>jrjwjjj\jajBjGjj j>jCjwj|jjjjjjj jSjpjujjjju footnote_refs} citation_refs} autofootnotes]autofootnote_refs]symbol_footnotes]symbol_footnote_refs] footnotes] citations]autofootnote_startKsymbol_footnote_startK id_counter collectionsCounter}Rparse_messages]hsystem_message)}(hhh]h)}(h:Enumerated list start value not ordinal-1: "3" (ordinal 3)h]h>Enumerated list start value not ordinal-1: “3” (ordinal 3)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]levelKtypeINFOsource_/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:36: ./drivers/gpio/gpiolib-of.clineMNuh1jhj8ubatransform_messages] transformerN include_log] decorationNhhub.