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); int (*set)(struct gpio_chip *gc, unsigned int offset, int value); int (*set_multiple)(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`` assigns output value for signal "offset", returns 0 on success or negative error value ``set_multiple`` 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)}(hXstruct 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); int (*set)(struct gpio_chip *gc, unsigned int offset, int value); int (*set_multiple)(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]hXstruct 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); int (*set)(struct gpio_chip *gc, unsigned int offset, int value); int (*set_multiple)(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)}(h_``set`` assigns output value for signal "offset", returns 0 on success or negative error value 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)}(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}(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`hj ubj)}(h|``set_multiple`` assigns output values for multiple signals defined by "mask", returns 0 on success or negative error value 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.hhMbhj ubj")}(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.hhMahjubah}(h]h ]h"]h$]h&]uh1j!hj ubeh}(h]h ]h"]h$]h&]uh1jhj hMbhj 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 )}(hj$h]h set_config}(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.hhMehjubj")}(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.}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:21: ./include/linux/gpio/driver.hhMchj:ubah}(h]h ]h"]h$]h&]uh1j!hjubeh}(h]h ]h"]h$]h&]uh1jhj9hMehj ubj)}(he``to_irq`` optional hook supporting non-static gpiod_to_irq() mappings; implementation may not sleep h](j)}(h ``to_irq``h]j )}(hj^h]hto_irq}(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.hhMghjXubj")}(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}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:21: ./include/linux/gpio/driver.hhMfhjtubah}(h]h ]h"]h$]h&]uh1j!hjXubeh}(h]h ]h"]h$]h&]uh1jhjshMghj 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 )}(hjh]hdbg_show}(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)}(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).}(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&]uh1jhjhMjhj 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 )}(hjh]hinit_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.hhMlhjubj")}(hhh]h)}(hUoptional routine to initialize **valid_mask**, to be used if not all GPIOs are valid.h](hoptional routine to initialize }(hjhhhNhNubj)}(h**valid_mask**h]h valid_mask}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh(, to be used if not all GPIOs are valid.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:21: ./include/linux/gpio/driver.hhMkhjubah}(h]h ]h"]h$]h&]uh1j!hjubeh}(h]h ]h"]h$]h&]uh1jhjhMlhj 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}(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.hhMohjubj")}(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.}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:21: ./include/linux/gpio/driver.hhMmhj4ubah}(h]h ]h"]h$]h&]uh1j!hjubeh}(h]h ]h"]h$]h&]uh1jhj3hMohj ubj)}(h^``en_hw_timestamp`` Dependent on GPIO chip, an optional routine to enable hardware timestamp. h](j)}(h``en_hw_timestamp``h]j )}(hjXh]hen_hw_timestamp}(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.hhMqhjRubj")}(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.}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:21: ./include/linux/gpio/driver.hhMphjnubah}(h]h ]h"]h$]h&]uh1j!hjRubeh}(h]h ]h"]h$]h&]uh1jhjmhMqhj ubj)}(h```dis_hw_timestamp`` Dependent on GPIO chip, an optional routine to disable hardware timestamp. h](j)}(h``dis_hw_timestamp``h]j )}(hjh]hdis_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)}(hJDependent on GPIO chip, an optional routine to disable hardware timestamp.h]hJDependent on GPIO chip, an optional routine to disable 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)}(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 )}(hjh]hbase}(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)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:21: ./include/linux/gpio/driver.hhMthjubah}(h]h ]h"]h$]h&]uh1j!hjubeh}(h]h ]h"]h$]h&]uh1jhjhMyhj 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.hhMzhjubah}(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 )}(hj@h]hoffset}(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.hhM~hj:ubj")}(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.}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:21: ./include/linux/gpio/driver.hhM|hjVubah}(h]h ]h"]h$]h&]uh1j!hj:ubeh}(h]h ]h"]h$]h&]uh1jhjUhM~hj 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 )}(hjzh]hnames}(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.hhMhjtubj")}(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 }(hjhhhNhNubj)}(h **ngpio**h]hngpio}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh entries long.}(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!hjtubeh}(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 )}(hjh]h can_sleep}(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)}(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.}(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.``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 )}(hj9h]h write_reg}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1j hj7ubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:21: ./include/linux/gpio/driver.hhMhj3ubj")}(hhh]h)}(h writer function for generic GPIOh]h writer function for generic GPIO}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjNhMhjOubah}(h]h ]h"]h$]h&]uh1j!hj3ubeh}(h]h ]h"]h$]h&]uh1jhjNhMhj 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 )}(hjrh]hbe_bits}(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.hhMhjlubj")}(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!hjlubeh}(h]h ]h"]h$]h&]uh1jhjhMhj ubj)}(h0``reg_dat`` data (in) register for generic GPIO h](j)}(h ``reg_dat``h]j )}(hjh]hreg_dat}(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#data (in) register for generic GPIOh]h#data (in) 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_set`` output set register (out=high) for generic GPIO h](j)}(h ``reg_set``h]j )}(hjh]hreg_set}(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/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!hjubeh}(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}(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)}(h0output clear register (out=low) for generic GPIOh]h0output clear register (out=low) 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@``reg_dir_out`` direction out setting register for generic GPIO h](j)}(h``reg_dir_out``h]j )}(hjWh]h reg_dir_out}(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)}(h/direction out setting register for generic GPIOh]h/direction out setting register for generic GPIO}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1hhjlhMhjmubah}(h]h ]h"]h$]h&]uh1j!hjQubeh}(h]h ]h"]h$]h&]uh1jhjlhMhj 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}(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 in setting register for generic GPIOh]h.direction in 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``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 )}(hjh]hbgpio_dir_unreadable}(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)}(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.}(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_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 )}(hj<h]h bgpio_bits}(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.hhMhj6ubj")}(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}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:21: ./include/linux/gpio/driver.hhMhjRubah}(h]h ]h"]h$]h&]uh1j!hj6ubeh}(h]h ]h"]h$]h&]uh1jhjQhMhj 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 )}(hjvh]h bgpio_lock}(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.hhMhjpubj")}(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!hjpubeh}(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 )}(hjh]h bgpio_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.hhMhjubj")}(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.}(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_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 )}(hjh]h bgpio_dir}(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)}(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!hjubeh}(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 )}(hj$h]hirq}(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.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.}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:21: ./include/linux/gpio/driver.hhMhj:ubah}(h]h ]h"]h$]h&]uh1j!hjubeh}(h]h ]h"]h$]h&]uh1jhj9hMhj 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 )}(hj^h]hof_gpio_n_cells}(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.hhMhjXubj")}(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:}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:21: ./include/linux/gpio/driver.hhMhjtubh)}(h&gpios = <:c:type:`gpio` offset flags>;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 refexplicitrefwarnjjjgpiouh1hha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:21: ./include/linux/gpio/driver.hhM hjubh offset flags>;}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhM hjtubh)}(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:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:21: ./include/linux/gpio/driver.hhM hjtubh)}(h/gpios = <:c:type:`gpio` instance offset flags>;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 refexplicitrefwarnjjjgpiouh1hha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:21: ./include/linux/gpio/driver.hhMhjubh instance offset flags>;}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMhjtubh)}(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.hhMhjtubh)}(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 refexplicitrefwarnjjjgpiouh1hhjshMhjubh offset>;}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjshMhjtubeh}(h]h ]h"]h$]h&]uh1j!hjXubeh}(h]h ]h"]h$]h&]uh1jhjshMhj 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 )}(hjKh]hof_node_instance_match}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjIubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:21: ./include/linux/gpio/driver.hhMhjEubj")}(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).}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:21: ./include/linux/gpio/driver.hhMhjaubah}(h]h ]h"]h$]h&]uh1j!hjEubeh}(h]h ]h"]h$]h&]uh1jhj`hMhj 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#hjubj")}(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.}(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&]uh1jhj ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(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'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.}(hjhhhNhNubah}(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..(}(hjhhhNhNubj)}(h **ngpio**h]hngpio}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh{ - 1). When those signals are referenced through calls like gpio_get_value(gpio), the offset is calculated by subtracting }(hjhhhNhNubj)}(h**base**h]hbase}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh from the gpio number.}(hjhhhNhNubeh}(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)}(hj2h]hfor_each_hwgpio_in_range}(hj<hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhj8ubah}(h]h ](jijjeh"]h$]h&]jnjouh1jPhj4hhha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:21: ./include/linux/gpio/driver.hhM?ubah}(h]h ]h"]h$]h&]jnjojvuh1j'jwjxhj0hhhjOhM?ubah}(h]j+ah ](j|j}eh"]h$]h&]jj)jhuh1j!hjOhM?hj-hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj-hhhjOhM?ubeh}(h]h ](jmacroeh"]h$]h&]jjjjhjjhjjjuh1jhhhhhNhNubh)}(h>``for_each_hwgpio_in_range (_chip, _i, _base, _size, _label)``h]j )}(hjnh]h:for_each_hwgpio_in_range (_chip, _i, _base, _size, _label)}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1j hjlubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:21: ./include/linux/gpio/driver.hhMAhhhhubh 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.hhM?hjubah}(h]h ]h"]h$]h&]uh1jhjhM?hhhhubj)}(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)}(hjh]h Parameters}(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.hhMChjubj)}(hhh](j)}(h ``_chip`` Chip to iterate over. h](j)}(h ``_chip``h]j )}(hjh]h_chip}(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)}(hChip to iterate over.h]hChip to iterate over.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM@hjubah}(h]h ]h"]h$]h&]uh1j!hjubeh}(h]h ]h"]h$]h&]uh1jhjhM@hjubj)}(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.hhMAhjubj")}(hhh]h)}(h Loop counter.h]h Loop counter.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMAhjubah}(h]h ]h"]h$]h&]uh1j!hjubeh}(h]h ]h"]h$]h&]uh1jhjhMAhjubj)}(h$``_base`` First GPIO in the ranger. h](j)}(h ``_base``h]j )}(hj6h]h_base}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1j hj4ubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:21: ./include/linux/gpio/driver.hhMBhj0ubj")}(hhh]h)}(hFirst GPIO in the ranger.h]hFirst GPIO in the ranger.}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjKhMBhjLubah}(h]h ]h"]h$]h&]uh1j!hj0ubeh}(h]h ]h"]h$]h&]uh1jhjKhMBhjubj)}(h;``_size`` Amount of GPIOs to check starting from **base**. h](j)}(h ``_size``h]j )}(hjoh]h_size}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjmubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:21: ./include/linux/gpio/driver.hhMChjiubj")}(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&]uh1hhjhMChjubah}(h]h ]h"]h$]h&]uh1j!hjiubeh}(h]h ]h"]h$]h&]uh1jhjhMChjubj)}(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.hhMDhjubj")}(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&]uh1hhjhMDhjubah}(h]h ]h"]h$]h&]uh1j!hjubeh}(h]h ]h"]h$]h&]uh1jhjhMDhjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(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)}(hj h]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.hhMNubah}(h]h ]h"]h$]h&]jnjojvuh1j'jwjxhj hhhj*hMNubah}(h]jah ](j|j}eh"]h$]h&]jj)jhuh1j!hj*hMNhjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhj*hMNubeh}(h]h ](jmacroeh"]h$]h&]jjjjCjjCjjjuh1jhhhhhNhNubh)}(h'``for_each_hwgpio (_chip, _i, _label)``h]j )}(hjIh]h#for_each_hwgpio (_chip, _i, _label)}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjGubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:21: ./include/linux/gpio/driver.hhMPhhhhubj)}(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.}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:21: ./include/linux/gpio/driver.hhMNhj_ubah}(h]h ]h"]h$]h&]uh1jhjqhMNhhhhubj)}(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.hhMRhjxubj)}(hhh](j)}(h ``_chip`` Chip to iterate over. h](j)}(h ``_chip``h]j )}(hjh]h_chip}(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.hhMOhjubj")}(hhh]h)}(hChip to iterate over.h]hChip to iterate over.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMOhjubah}(h]h ]h"]h$]h&]uh1j!hjubeh}(h]h ]h"]h$]h&]uh1jhjhMOhjubj)}(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.hhMPhjubj")}(hhh]h)}(h Loop counter.h]h Loop counter.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMPhjubah}(h]h ]h"]h$]h&]uh1j!hjubeh}(h]h ]h"]h$]h&]uh1jhjhMPhjubj)}(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 hj ubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:21: ./include/linux/gpio/driver.hhMQhj ubj")}(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.}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj$hMQhj%ubah}(h]h ]h"]h$]h&]uh1j!hj ubeh}(h]h ]h"]h$]h&]uh1jhj$hMQhjubeh}(h]h ]h"]h$]h&]uh1jhjxubeh}(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)}(hjbh]h for_each_requested_gpio_in_range}(hjlhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjhubah}(h]h ](jijjeh"]h$]h&]jnjouh1jPhjdhhha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:21: ./include/linux/gpio/driver.hhMXubah}(h]h ]h"]h$]h&]jnjojvuh1j'jwjxhj`hhhjhMXubah}(h]j[ah ](j|j}eh"]h$]h&]jj)jhuh1j!hjhMXhj]hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj]hhhjhMXubeh}(h]h ](jmacroeh"]h$]h&]jjjjjjjjjuh1jhhhhhNhNubh)}(hF``for_each_requested_gpio_in_range (_chip, _i, _base, _size, _label)``h]j )}(hjh]hBfor_each_requested_gpio_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.hhMZhhhhubj)}(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}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:21: ./include/linux/gpio/driver.hhMXhjubah}(h]h ]h"]h$]h&]uh1jhjhMXhhhhubj)}(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)}(hjh]h Parameters}(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\hjubj)}(hhh](j)}(h``_chip`` the chip to query h](j)}(h ``_chip``h]j )}(hjh]h_chip}(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)}(hthe chip to queryh]hthe chip to query}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMYhjubah}(h]h ]h"]h$]h&]uh1j!hjubeh}(h]h ]h"]h$]h&]uh1jhjhMYhjubj)}(h``_i`` loop variable h](j)}(h``_i``h]j )}(hj+h]h_i}(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.hhMZhj%ubj")}(hhh]h)}(h loop variableh]h loop variable}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj@hMZhjAubah}(h]h ]h"]h$]h&]uh1j!hj%ubeh}(h]h ]h"]h$]h&]uh1jhj@hMZhjubj)}(h"``_base`` first GPIO in the range h](j)}(h ``_base``h]j )}(hjdh]h_base}(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.hhM[hj^ubj")}(hhh]h)}(hfirst GPIO in the rangeh]hfirst GPIO in the range}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjyhM[hjzubah}(h]h ]h"]h$]h&]uh1j!hj^ubeh}(h]h ]h"]h$]h&]uh1jhjyhM[hjubj)}(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.hhM\hjubj")}(hhh]h)}(h/amount 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&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1hhjhM\hjubah}(h]h ]h"]h$]h&]uh1j!hjubeh}(h]h ]h"]h$]h&]uh1jhjhM\hjubj)}(h ``_label`` label of current GPIOh](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.hhM^hjubj")}(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.hhM]hjubah}(h]h ]h"]h$]h&]uh1j!hjubeh}(h]h ]h"]h$]h&]uh1jhjhM^hjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(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)}(hj8h]hgpiochip_add_data}(hjBhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhj>ubah}(h]h ](jijjeh"]h$]h&]jnjouh1jPhj:hhha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:21: ./include/linux/gpio/driver.hhMmubah}(h]h ]h"]h$]h&]jnjojvuh1j'jwjxhj6hhhjUhMmubah}(h]j1ah ](j|j}eh"]h$]h&]jj)jhuh1j!hjUhMmhj3hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj3hhhjUhMmubeh}(h]h ](jmacroeh"]h$]h&]jjjjnjjnjjjuh1jhhhhhNhNubh)}(h ``gpiochip_add_data (gc, data)``h]j )}(hjth]hgpiochip_add_data (gc, data)}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjrubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:21: ./include/linux/gpio/driver.hhMohhhhubj)}(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.hhMmhjubah}(h]h ]h"]h$]h&]uh1jhjhMmhhhhubj)}(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)}(hjh]h Parameters}(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.hhMqhjubj)}(hhh](j)}(h7``gc`` the chip to register, with gc->base initialized h](j)}(h``gc``h]j )}(hjh]hgc}(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.hhMnhjubj")}(hhh]h)}(h/the chip to register, with gc->base initializedh]h/the chip to register, with gc->base initialized}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMnhjubah}(h]h ]h"]h$]h&]uh1j!hjubeh}(h]h ]h"]h$]h&]uh1jhjhMnhjubj)}(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.hhMohjubj")}(hhh]h)}(h-driver-private data associated with this chiph]h-driver-private data associated with this chip}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMohjubah}(h]h ]h"]h$]h&]uh1j!hjubeh}(h]h ]h"]h$]h&]uh1jhjhMohjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h **Context**8h]j)}(hj<h]hContext}(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.hhMqhjubh)}(h!potentially before irqs will workh]h!potentially before irqs will work}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:21: ./include/linux/gpio/driver.hhMqhjubh)}(h**Description**h]j)}(hjch]h Description}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1jhjaubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:21: ./include/linux/gpio/driver.hhMshjubh)}(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.}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:21: ./include/linux/gpio/driver.hhMrhjubh)}(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.hhMwhjubh)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:21: ./include/linux/gpio/driver.hhMzhjubh)}(h **Return**h]j)}(hjh]hReturn}(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}hjubh)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:21: ./include/linux/gpio/driver.hhM~hjubeh}(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}(hjhhhNhNubah}(h]h ]j:ah"]h$]h&]uh1j-hjhhha/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?hjhhhjhMubjQ)}(hgpio_pin_rangeh]jW)}(hjh]hgpio_pin_range}(hj hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhj ubah}(h]h ](jijjeh"]h$]h&]jnjouh1jPhjhhhjhMubeh}(h]h ]h"]h$]h&]jnjojvuh1j'jwjxhjhhhjhMubah}(h]jah ](j|j}eh"]h$]h&]jj)jhuh1j!hjhMhjhhubj)}(hhh]h)}(h#pin range controlled by a gpio chiph]h#pin range controlled by a gpio chip}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:21: ./include/linux/gpio/driver.hhMhj,hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jstructeh"]h$]h&]jjjjGjjGjjjuh1jhhhhhNhNubj)}(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}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1jhjOubh:}(hjOhhhNhNubeh}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:21: ./include/linux/gpio/driver.hhMhjKubj)}(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; };}hjlsbah}(h]h ]h"]h$]h&]jnjouh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:21: ./include/linux/gpio/driver.hhMhjKubh)}(h **Members**h]j)}(hj}h]hMembers}(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.hhMhjKubj)}(hhh](j)}(hA``node`` list for maintaining set of pin ranges, used internally h](j)}(h``node``h]j )}(hjh]hnode}(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)}(h7list for maintaining set of pin ranges, used internallyh]h7list for maintaining set of pin ranges, used internally}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j!hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h<``pctldev`` pinctrl device which handles corresponding pins h](j)}(h ``pctldev``h]j )}(hjh]hpctldev}(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/pinctrl device which handles corresponding pinsh]h/pinctrl device which handles corresponding pins}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j!hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(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 hj ubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:21: ./include/linux/gpio/driver.hhMhjubj")}(hhh]h)}(h4actual range of pins controlled by a gpio controllerh]h4actual range of pins controlled by 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.hhMhj$ubah}(h]h ]h"]h$]h&]uh1j!hjubeh}(h]h ]h"]h$]h&]uh1jhj#hMhjubeh}(h]h ]h"]h$]h&]uh1jhjKubeh}(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}(hjhhhhNhNubah}(h]h ]j:ah"]h$]h&]uh1j-hjdhhh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chKubj@)}(h h]h }(hjvhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjdhhhjuhKubh)}(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_descasbuh1hhjdhhhjuhKubj@)}(h h]h }(hjhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjdhhhjuhKubhdesc_sig_punctuation)}(h*h]h*}(hjhhhNhNubah}(h]h ]pah"]h$]h&]uh1jhjdhhhjuhKubjQ)}(h gpio_to_desch]jW)}(hjh]h gpio_to_desc}(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjubah}(h]h ](jijjeh"]h$]h&]jnjouh1jPhjdhhhjuhKubhdesc_parameterlist)}(h(unsigned gpio)h]hdesc_parameter)}(h unsigned gpioh](hdesc_sig_keyword_type)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]ktah"]h$]h&]uh1jhjubj@)}(h h]h }(hjhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjubjW)}(hgpioh]hgpio}(hj hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjubeh}(h]h ]h"]h$]h&]noemphjnjouh1jhjubah}(h]h ]h"]h$]h&]jnjouh1jhjdhhhjuhKubeh}(h]h ]h"]h$]h&]jnjojvuh1j'jwjxhj`hhhjuhKubah}(h]j[ah ](j|j}eh"]h$]h&]jj)jhuh1j!hjuhKhj]hhubj)}(hhh]h)}(h'Convert a GPIO number to its descriptorh]h'Convert a GPIO number to its descriptor}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chKhj3hhubah}(h]h ]h"]h$]h&]uh1jhj]hhhjuhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjNjjNjjjuh1jhhhhhNhNubj)}(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)}(hjXh]h Parameters}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjVubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chKhjRubj)}(hhh]j)}(h%``unsigned gpio`` global GPIO number h](j)}(h``unsigned gpio``h]j )}(hjwh]h unsigned gpio}(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.chKhjqubj")}(hhh]h)}(hglobal GPIO numberh]hglobal GPIO number}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1j!hjqubeh}(h]h ]h"]h$]h&]uh1jhjhKhjnubah}(h]h ]h"]h$]h&]uh1jhjRubh)}(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.chKhjRubh)}(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 }(hjhhhNhNubj )}(h``NULL``h]hNULL}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjubh7 if no GPIO with the given number exists in the system.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chKhjRubeh}(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]j)}jgpio_device_get_descsbc.gpio_device_get_descasbuh1hhj hhhj hKubj@)}(h h]h }(hjI hhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hj hhhj hKubj)}(hjh]h*}(hjW hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj hhhj hKubjQ)}(hgpio_device_get_desch]jW)}(hjF h]hgpio_device_get_desc}(hjh hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjd ubah}(h]h ](jijjeh"]h$]h&]jnjouh1jPhj hhhj hKubj)}(h.(struct gpio_device *gdev, unsigned int hwnum)h](j)}(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_get_descasbuh1hhj ubj@)}(h h]h }(hj hhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hj ubj)}(hjh]h*}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubjW)}(hgdevh]hgdev}(hj hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhj ubeh}(h]h ]h"]h$]h&]noemphjnjouh1jhj{ ubj)}(hunsigned int hwnumh](j)}(hunsignedh]hunsigned}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj@)}(h h]h }(hj!hhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hj ubj)}(hinth]hint}(hj!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj 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&]noemphjnjouh1jhj{ ubeh}(h]h ]h"]h$]h&]jnjouh1jhj hhhj hKubeh}(h]h ]h"]h$]h&]jnjojvuh1j'jwjxhj hhhj hKubah}(h]jah ](j|j}eh"]h$]h&]jj)jhuh1j!hj hKhjhhubj)}(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}(hjU!hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chKhjR!hhubah}(h]h ]h"]h$]h&]uh1jhjhhhj hKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjm!jjm!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)}(hjw!h]h Parameters}(hjy!hhhNhNubah}(h]h ]h"]h$]h&]uh1jhju!ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chKhjq!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&]uh1hhj!hKhj!ubah}(h]h ]h"]h$]h&]uh1j!hj!ubeh}(h]h ]h"]h$]h&]uh1jhj!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.chKhj!ubj")}(hhh]h)}(h)hardware number of the GPIO for this chiph]h)hardware number of the GPIO for this chip}(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!ubeh}(h]h ]h"]h$]h&]uh1jhjq!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.chKhjq!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.chKhjq!ubh)}(h**Description**h]j)}(hjU"h]h Description}(hjW"hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjS"ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chKhjq!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 }(hjk"hhhNhNubhemphasis)}(h*NOT*h]hNOT}(hju"hhhNhNubah}(h]h ]h"]h$]h&]uh1js"hjk"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.}(hjk"hhhNhNubeh}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chKhjq!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&]uh1jhj"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"hKubjQ)}(h desc_to_gpioh]jW)}(h desc_to_gpioh]h desc_to_gpio}(hj"hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhj"ubah}(h]h ](jijjeh"]h$]h&]jnjouh1jPhj"hhhj"hKubj)}(h(const struct gpio_desc *desc)h]j)}(hconst struct gpio_desc *desch](j.)}(hconsth]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 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)}jj"sbc.desc_to_gpioasbuh1hhj"ubj@)}(h h]h }(hjE#hhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hj"ubj)}(hjh]h*}(hjS#hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj"ubjW)}(hdesch]hdesc}(hj`#hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhj"ubeh}(h]h ]h"]h$]h&]noemphjnjouh1jhj"ubah}(h]h ]h"]h$]h&]jnjouh1jhj"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)}(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&]uh1jhj"hhhj"hKubeh}(h]h ](jfunctioneh"]h$]h&]jjjj#jj#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&]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)}(h1``const struct gpio_desc *desc`` GPIO descriptor 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.chKhj#ubj")}(hhh]h)}(hGPIO descriptorh]hGPIO descriptor}(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#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)}(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.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.chKhj#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.}(hjC$hhhNhNubah}(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](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}(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.chKubj@)}(h h]h }(hj$hhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjn$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]j)}j gpiod_to_chipsbc.gpiod_to_chipasbuh1hhjn$hhhj$hKubj@)}(h h]h }(hj$hhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjn$hhhj$hKubj)}(hjh]h*}(hj$hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjn$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&]jnjouh1jPhjn$hhhj$hKubj)}(h(const struct gpio_desc *desc)h]j)}(hconst struct gpio_desc *desch](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 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_chipasbuh1hhj$ubj@)}(h h]h }(hjC%hhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hj$ubj)}(hjh]h*}(hjQ%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$ubjW)}(hdesch]hdesc}(hj^%hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhj$ubeh}(h]h ]h"]h$]h&]noemphjnjouh1jhj$ubah}(h]h ]h"]h$]h&]jnjouh1jhjn$hhhj$hKubeh}(h]h ]h"]h$]h&]jnjojvuh1j'jwjxhjj$hhhj$hKubah}(h]je$ah ](j|j}eh"]h$]h&]jj)jhuh1j!hj$hKhjg$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&]uh1jhjg$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)}(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)}(hB``const struct gpio_desc *desc`` descriptor to return the chip of 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.chKhj%ubj")}(hhh]h)}(h descriptor to return the chip ofh]h descriptor to return the chip of}(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%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)}(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](jt")}(h *DEPRECATED*h]h DEPRECATED}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1js"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.chKhj%ubh)}(h **Return**h]j)}(hj9&h]hReturn}(hj;&hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj7&ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chKhj%ubh)}(h-Address of the GPIO chip backing this device.h]h-Address of the GPIO chip backing this device.}(hjO&hhhNhNubah}(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](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-hjz&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?hjz&hhhj&hMubh)}(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)}jgpiod_to_gpio_devicesbc.gpiod_to_gpio_deviceasbuh1hhjz&hhhj&hMubj@)}(h h]h }(hj&hhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjz&hhhj&hMubj)}(hjh]h*}(hj&hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjz&hhhj&hMubjQ)}(hgpiod_to_gpio_deviceh]jW)}(hj&h]hgpiod_to_gpio_device}(hj&hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhj&ubah}(h]h ](jijjeh"]h$]h&]jnjouh1jPhjz&hhhj&hMubj)}(h(struct gpio_desc *desc)h]j)}(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]j&c.gpiod_to_gpio_deviceasbuh1hhj&ubj@)}(h h]h }(hj4'hhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hj&ubj)}(hjh]h*}(hjB'hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj&ubjW)}(hdesch]hdesc}(hjO'hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhj&ubeh}(h]h ]h"]h$]h&]noemphjnjouh1jhj&ubah}(h]h ]h"]h$]h&]jnjouh1jhjz&hhhj&hMubeh}(h]h ]h"]h$]h&]jnjojvuh1j'jwjxhjv&hhhj&hMubah}(h]jq&ah ](j|j}eh"]h$]h&]jj)jhuh1j!hj&hMhjs&hhubj)}(hhh]h)}(h8Return the GPIO device to which this descriptor belongs.h]h8Return the GPIO device to which this descriptor belongs.}(hjy'hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMhjv'hhubah}(h]h ]h"]h$]h&]uh1jhjs&hhhj&hMubeh}(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.chM hj'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 )}(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/Descriptor for which to return the GPIO device.h]h/Descriptor for which to return the GPIO device.}(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'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)}(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 (hhhNhNubjt")}(h *DOES NOT*h]hDOES NOT}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1js"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.chMhj'ubh)}(h **Return**h]j)}(hj.(h]hReturn}(hj0(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)}(h2Address of the GPIO device owning this descriptor.h]h2Address of the GPIO device owning this descriptor.}(hjD(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_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}(hjs(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjo(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?hjo(hhhj(hMubjQ)}(hgpio_device_get_baseh]jW)}(hgpio_device_get_baseh]hgpio_device_get_base}(hj(hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhj(ubah}(h]h ](jijjeh"]h$]h&]jnjouh1jPhjo(hhhj(hMubj)}(h(struct gpio_device *gdev)h]j)}(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)}jj(sbc.gpio_device_get_baseasbuh1hhj(ubj@)}(h h]h }(hj(hhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hj(ubj)}(hjh]h*}(hj(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj(ubjW)}(hgdevh]hgdev}(hj )hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhj(ubeh}(h]h ]h"]h$]h&]noemphjnjouh1jhj(ubah}(h]h ]h"]h$]h&]jnjouh1jhjo(hhhj(hMubeh}(h]h ]h"]h$]h&]jnjojvuh1j'jwjxhjk(hhhj(hMubah}(h]jf(ah ](j|j}eh"]h$]h&]jj)jhuh1j!hj(hMhjh(hhubj)}(hhh]h)}(h1Get the base GPIO number allocated by this deviceh]h1Get the base GPIO number allocated by this device}(hj3)hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMhj0)hhubah}(h]h ]h"]h$]h&]uh1jhjh(hhhj(hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjK)jjK)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)}(hjU)h]h Parameters}(hjW)hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjS)ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMhjO)ubj)}(hhh]j)}(h)``struct gpio_device *gdev`` GPIO device h](j)}(h``struct gpio_device *gdev``h]j )}(hjt)h]hstruct gpio_device *gdev}(hjv)hhhNhNubah}(h]h ]h"]h$]h&]uh1j hjr)ubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMhjn)ubj")}(hhh]h)}(h GPIO deviceh]h GPIO device}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj)hMhj)ubah}(h]h ]h"]h$]h&]uh1j!hjn)ubeh}(h]h ]h"]h$]h&]uh1jhj)hMhjk)ubah}(h]h ]h"]h$]h&]uh1jhjO)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.chMhjO)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.chMhjO)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&]uh1jhj)hhhj*hM'ubj@)}(h h]h }(hj*hhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hj)hhhj*hM'ubj)}(hjh]h*}(hj,*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj)hhhj*hM'ubjQ)}(hgpio_device_get_labelh]jW)}(hgpio_device_get_labelh]hgpio_device_get_label}(hj=*hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhj9*ubah}(h]h ](jijjeh"]h$]h&]jnjouh1jPhj)hhhj*hM'ubj)}(h(struct gpio_device *gdev)h]j)}(hstruct gpio_device *gdevh](j.)}(hj1h]hstruct}(hjY*hhhNhNubah}(h]h ]j:ah"]h$]h&]uh1j-hjU*ubj@)}(h h]h }(hjf*hhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjU*ubh)}(hhh]jW)}(h gpio_deviceh]h gpio_device}(hjw*hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjt*ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjy*modnameN classnameNjj)}j]j)}jj?*sbc.gpio_device_get_labelasbuh1hhjU*ubj@)}(h h]h }(hj*hhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjU*ubj)}(hjh]h*}(hj*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjU*ubjW)}(hgdevh]hgdev}(hj*hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjU*ubeh}(h]h ]h"]h$]h&]noemphjnjouh1jhjQ*ubah}(h]h ]h"]h$]h&]jnjouh1jhj)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}(hj6+hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj2+hM(hj3+ubah}(h]h ]h"]h$]h&]uh1j!hj+ubeh}(h]h ]h"]h$]h&]uh1jhj2+hM(hj+ubah}(h]h ]h"]h$]h&]uh1jhj*ubh)}(h **Return**h]j)}(hjX+h]hReturn}(hjZ+hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjV+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.}(hjn+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}(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.chM5ubj@)}(h h]h }(hj+hhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hj+hhhj+hM5ubh)}(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]j)}jgpio_device_get_chipsbc.gpio_device_get_chipasbuh1hhj+hhhj+hM5ubj@)}(h h]h }(hj+hhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hj+hhhj+hM5ubj)}(hjh]h*}(hj+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj+hhhj+hM5ubjQ)}(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&]jnjouh1jPhj+hhhj+hM5ubj)}(h(struct gpio_device *gdev)h]j)}(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}(hj5,hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhj2,ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj7,modnameN classnameNjj)}j]j+c.gpio_device_get_chipasbuh1hhj,ubj@)}(h h]h }(hjS,hhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hj,ubj)}(hjh]h*}(hja,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj,ubjW)}(hgdevh]hgdev}(hjn,hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhj,ubeh}(h]h ]h"]h$]h&]noemphjnjouh1jhj,ubah}(h]h ]h"]h$]h&]jnjouh1jhj+hhhj+hM5ubeh}(h]h ]h"]h$]h&]jnjojvuh1j'jwjxhj+hhhj+hM5ubah}(h]j+ah ](j|j}eh"]h$]h&]jj)jhuh1j!hj+hM5hj+hhubj)}(hhh]h)}(h4Get the gpio_chip implementation of this GPIO deviceh]h4Get the gpio_chip implementation 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.chM5hj,hhubah}(h]h ]h"]h$]h&]uh1jhj+hhhj+hM5ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj,jj,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)}(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.chM9hj,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.chM6hj,ubj")}(hhh]h)}(h GPIO deviceh]h GPIO device}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj,hM6hj,ubah}(h]h ]h"]h$]h&]uh1j!hj,ubeh}(h]h ]h"]h$]h&]uh1jhj,hM6hj,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.chM8hj,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.chM8hj,ubh)}(h**Description**h]j)}(hj;-h]h Description}(hj=-hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj9-ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chM:hj,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](jt")}(h *DEPRECATED*h]h DEPRECATED}(hjU-hhhNhNubah}(h]h ]h"]h$]h&]uh1js"hjQ-ubh 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 }(hjQ-hhhNhNubjt")}(h*NOT*h]hNOT}(hjg-hhhNhNubah}(h]h ]h"]h$]h&]uh1js"hjQ-ubh 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).}(hjQ-hhhNhNubeh}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chM:hj,ubh)}(hUse at your own risk.h]hUse at your own risk.}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMAhj,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")}(hQbool gpiod_is_equal (const struct gpio_desc *desc, const struct gpio_desc *other)h]j()}(hPbool gpiod_is_equal(const struct gpio_desc *desc, const struct gpio_desc *other)h](j)}(hboolh]hbool}(hj-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-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-hhhj-hMubjQ)}(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-hMubj)}(h=(const struct gpio_desc *desc, const struct gpio_desc *other)h](j)}(hconst struct gpio_desc *desch](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 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)}jj-sbc.gpiod_is_equalasbuh1hhj-ubj@)}(h h]h }(hjE.hhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hj-ubj)}(hjh]h*}(hjS.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-ubjW)}(hdesch]hdesc}(hj`.hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhj-ubeh}(h]h ]h"]h$]h&]noemphjnjouh1jhj-ubj)}(hconst struct gpio_desc *otherh](j.)}(hj"h]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]jA.c.gpiod_is_equalasbuh1hhju.ubj@)}(h h]h }(hj.hhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hju.ubj)}(hjh]h*}(hj.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhju.ubjW)}(hotherh]hother}(hj.hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhju.ubeh}(h]h ]h"]h$]h&]noemphjnjouh1jhj-ubeh}(h]h ]h"]h$]h&]jnjouh1jhj-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)}(h4Check if two GPIO descriptors refer to the same pin.h]h4Check if two GPIO descriptors refer to the same pin.}(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-hhhj-hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj-/jj-/jjjuh1jhhhhhNhNubj)}(h**Parameters** ``const struct gpio_desc *desc`` Descriptor to compare. ``const 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)}(hj7/h]h Parameters}(hj9/hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj5/ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMhj1/ubj)}(hhh](j)}(h8``const struct gpio_desc *desc`` Descriptor to compare. h](j)}(h ``const struct gpio_desc *desc``h]j )}(hjV/h]hconst struct gpio_desc *desc}(hjX/hhhNhNubah}(h]h ]h"]h$]h&]uh1j hjT/ubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMhjP/ubj")}(hhh]h)}(hDescriptor to compare.h]hDescriptor to compare.}(hjo/hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjk/hMhjl/ubah}(h]h ]h"]h$]h&]uh1j!hjP/ubeh}(h]h ]h"]h$]h&]uh1jhjk/hMhjM/ubj)}(hL``const struct gpio_desc *other`` The second descriptor to compare against. h](j)}(h!``const struct gpio_desc *other``h]j )}(hj/h]hconst struct 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/hMhjM/ubeh}(h]h ]h"]h$]h&]uh1jhj1/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.chMhj1/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.chMhj1/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}(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj 0hhh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMubj@)}(h h]h }(hj0hhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hj 0hhhj0hMubjQ)}(hgpiod_get_directionh]jW)}(hgpiod_get_directionh]hgpiod_get_direction}(hj00hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhj,0ubah}(h]h ](jijjeh"]h$]h&]jnjouh1jPhj 0hhhj0hMubj)}(h(struct gpio_desc *desc)h]j)}(hstruct gpio_desc *desch](j.)}(hj1h]hstruct}(hjL0hhhNhNubah}(h]h ]j:ah"]h$]h&]uh1j-hjH0ubj@)}(h h]h }(hjY0hhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjH0ubh)}(hhh]jW)}(h gpio_desch]h gpio_desc}(hjj0hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjg0ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjl0modnameN classnameNjj)}j]j)}jj20sbc.gpiod_get_directionasbuh1hhjH0ubj@)}(h h]h }(hj0hhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjH0ubj)}(hjh]h*}(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjH0ubjW)}(hdesch]hdesc}(hj0hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjH0ubeh}(h]h ]h"]h$]h&]noemphjnjouh1jhjD0ubah}(h]h ]h"]h$]h&]jnjouh1jhj 0hhhj0hMubeh}(h]h ]h"]h$]h&]jnjojvuh1j'jwjxhj0hhhj0hMubah}(h]j0ah ](j|j}eh"]h$]h&]jj)jhuh1j!hj0hMhj0hhubj)}(hhh]h)}(h&return the current direction of a GPIOh]h&return the current direction of a GPIO}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMhj0hhubah}(h]h ]h"]h$]h&]uh1jhj0hhhj0hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj0jj0jjjuh1jhhhhhNhNubj)}(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)}(hj0h]h Parameters}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj0ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.c+hMhj0ubj)}(hhh]j)}(h8``struct gpio_desc *desc`` GPIO to get the direction of h](j)}(h``struct gpio_desc *desc``h]j )}(hj1h]hstruct gpio_desc *desc}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1j hj1ubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMhj 1ubj")}(hhh]h)}(hGPIO to get the direction ofh]hGPIO to get the direction of}(hj)1hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj%1hMhj&1ubah}(h]h ]h"]h$]h&]uh1j!hj 1ubeh}(h]h ]h"]h$]h&]uh1jhj%1hMhj1ubah}(h]h ]h"]h$]h&]uh1jhj0ubh)}(h **Return**h]j)}(hjK1h]hReturn}(hjM1hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjI1ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMhj0ubh)}(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.}(hja1hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMhj0ubh)}(h**Description**h]j)}(hjr1h]h Description}(hjt1hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjp1ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMhj0ubh)}(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.chMhj0ubeh}(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}(hj1hhhNhNubah}(h]h ]j:ah"]h$]h&]uh1j-hj1hhh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMubj@)}(h h]h }(hj1hhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hj1hhhj1hMubj)}(hunsignedh]hunsigned}(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1hhhj1hMubj@)}(h h]h }(hj1hhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hj1hhhj1hMubj)}(hlongh]hlong}(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1hhhj1hMubj@)}(h h]h }(hj1hhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hj1hhhj1hMubj)}(hjh]h*}(hj 2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1hhhj1hMubjQ)}(hgpiochip_query_valid_maskh]jW)}(hgpiochip_query_valid_maskh]hgpiochip_query_valid_mask}(hj2hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhj2ubah}(h]h ](jijjeh"]h$]h&]jnjouh1jPhj1hhhj1hMubj)}(h(const struct gpio_chip *gc)h]j)}(hconst struct gpio_chip *gch](j.)}(hj"h]hconst}(hj82hhhNhNubah}(h]h ]j:ah"]h$]h&]uh1j-hj42ubj@)}(h h]h }(hjE2hhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hj42ubj.)}(hj1h]hstruct}(hjS2hhhNhNubah}(h]h ]j:ah"]h$]h&]uh1j-hj42ubj@)}(h h]h }(hj`2hhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hj42ubh)}(hhh]jW)}(h gpio_chiph]h gpio_chip}(hjq2hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjn2ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjs2modnameN classnameNjj)}j]j)}jj2sbc.gpiochip_query_valid_maskasbuh1hhj42ubj@)}(h h]h }(hj2hhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hj42ubj)}(hjh]h*}(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj42ubjW)}(hgch]hgc}(hj2hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhj42ubeh}(h]h ]h"]h$]h&]noemphjnjouh1jhj02ubah}(h]h ]h"]h$]h&]jnjouh1jhj1hhhj1hMubeh}(h]h ]h"]h$]h&]jnjojvuh1j'jwjxhj1hhhj1hMubah}(h]j1ah ](j|j}eh"]h$]h&]jj)jhuh1j!hj1hMhj1hhubj)}(hhh]h)}(h$return the GPIO validity informationh]h$return the GPIO validity information}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMhj2hhubah}(h]h ]h"]h$]h&]uh1jhj1hhhj1hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj2jj2jjjuh1jhhhhhNhNubj)}(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)}(hj2h]h Parameters}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMhj2ubj)}(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 )}(hj3h]hconst struct gpio_chip *gc}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1j hj3ubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMhj3ubj")}(hhh]h)}(h/gpio chip which validity information is queriedh]h/gpio chip which validity information is queried}(hj03hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj,3hMhj-3ubah}(h]h ]h"]h$]h&]uh1j!hj3ubeh}(h]h ]h"]h$]h&]uh1jhj,3hMhj3ubah}(h]h ]h"]h$]h&]uh1jhj2ubh)}(h **Return**h]j)}(hjR3h]hReturn}(hjT3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjP3ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMhj2ubh)}(h>bitmap representing valid GPIOs or NULL if all GPIOs are validh]h>bitmap representing valid GPIOs or NULL if all GPIOs are valid}(hjh3hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMhj2ubh)}(h**Description**h]j)}(hjy3h]h Description}(hj{3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjw3ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMhj2ubh)}(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.chMhj2ubeh}(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}(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3hhh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMubj@)}(h h]h }(hj3hhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hj3hhhj3hMubj)}(hjh]h*}(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3hhhj3hMubjQ)}(hgpiochip_get_datah]jW)}(hgpiochip_get_datah]hgpiochip_get_data}(hj3hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhj3ubah}(h]h ](jijjeh"]h$]h&]jnjouh1jPhj3hhhj3hMubj)}(h(struct gpio_chip *gc)h]j)}(hstruct gpio_chip *gch](j.)}(hj1h]hstruct}(hj4hhhNhNubah}(h]h ]j:ah"]h$]h&]uh1j-hj4ubj@)}(h h]h }(hj4hhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hj4ubh)}(hhh]jW)}(h gpio_chiph]h gpio_chip}(hj&4hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhj#4ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj(4modnameN classnameNjj)}j]j)}jj3sbc.gpiochip_get_dataasbuh1hhj4ubj@)}(h h]h }(hjF4hhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hj4ubj)}(hjh]h*}(hjT4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4ubjW)}(hgch]hgc}(hja4hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhj4ubeh}(h]h ]h"]h$]h&]noemphjnjouh1jhj4ubah}(h]h ]h"]h$]h&]jnjouh1jhj3hhhj3hMubeh}(h]h ]h"]h$]h&]jnjojvuh1j'jwjxhj3hhhj3hMubah}(h]j3ah ](j|j}eh"]h$]h&]jj)jhuh1j!hj3hMhj3hhubj)}(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&]uh1jhj3hhhj3hMubeh}(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)}(hj4h]h Parameters}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj4ubah}(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 )}(hj4h]hstruct gpio_chip *gc}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1j hj4ubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMhj4ubj")}(hhh]h)}(h GPIO chiph]h GPIO chip}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj4hMhj4ubah}(h]h ]h"]h$]h&]uh1j!hj4ubeh}(h]h ]h"]h$]h&]uh1jhj4hMhj4ubah}(h]h ]h"]h$]h&]uh1jhj4ubh)}(h **Return**h]j)}(hj5h]hReturn}(hj 5hhhNhNubah}(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.chMhj4ubh)}(h$The per-subdriver data for the chip.h]h$The per-subdriver data for the chip.}(hj5hhhNhNubah}(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}(hjL5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjH5hhh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMubj@)}(h h]h }(hj[5hhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjH5hhhjZ5hMubjQ)}(hgpiochip_removeh]jW)}(hgpiochip_removeh]hgpiochip_remove}(hjm5hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhji5ubah}(h]h ](jijjeh"]h$]h&]jnjouh1jPhjH5hhhjZ5hMubj)}(h(struct gpio_chip *gc)h]j)}(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 reftargetj5modnameN classnameNjj)}j]j)}jjo5sbc.gpiochip_removeasbuh1hhj5ubj@)}(h h]h }(hj5hhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hj5ubj)}(hjh]h*}(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5ubjW)}(hgch]hgc}(hj5hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhj5ubeh}(h]h ]h"]h$]h&]noemphjnjouh1jhj5ubah}(h]h ]h"]h$]h&]jnjouh1jhjH5hhhjZ5hMubeh}(h]h ]h"]h$]h&]jnjojvuh1j'jwjxhjD5hhhjZ5hMubah}(h]j?5ah ](j|j}eh"]h$]h&]jj)jhuh1j!hjZ5hMhjA5hhubj)}(hhh]h)}(hunregister a gpio_chiph]hunregister a gpio_chip}(hj 6hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMhj 6hhubah}(h]h ]h"]h$]h&]uh1jhjA5hhhjZ5hMubeh}(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)}(hj.6h]h Parameters}(hj06hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj,6ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMhj(6ubj)}(hhh]j)}(h0``struct gpio_chip *gc`` the chip to unregister h](j)}(h``struct gpio_chip *gc``h]j )}(hjM6h]hstruct gpio_chip *gc}(hjO6hhhNhNubah}(h]h ]h"]h$]h&]uh1j hjK6ubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMhjG6ubj")}(hhh]h)}(hthe chip to unregisterh]hthe chip to unregister}(hjf6hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjb6hMhjc6ubah}(h]h ]h"]h$]h&]uh1j!hjG6ubeh}(h]h ]h"]h$]h&]uh1jhjb6hMhjD6ubah}(h]h ]h"]h$]h&]uh1jhj(6ubh)}(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.chMhj(6ubh)}(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.chMhj(6ubeh}(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}(hj6hhhNhNubah}(h]h ]j:ah"]h$]h&]uh1j-hj6hhh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMubj@)}(h h]h }(hj6hhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hj6hhhj6hMubh)}(hhh]jW)}(h gpio_deviceh]h gpio_device}(hj6hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhj6ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj6modnameN classnameNjj)}j]j)}jgpio_device_findsbc.gpio_device_findasbuh1hhj6hhhj6hMubj@)}(h h]h }(hj 7hhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hj6hhhj6hMubj)}(hjh]h*}(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6hhhj6hMubjQ)}(hgpio_device_findh]jW)}(hj 7h]hgpio_device_find}(hj,7hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhj(7ubah}(h]h ](jijjeh"]h$]h&]jnjouh1jPhj6hhhj6hMubj)}(hH(const void *data, int (*match)(struct gpio_chip *gc, const void *data))h](j)}(hconst void *datah](j.)}(hj"h]hconst}(hjG7hhhNhNubah}(h]h ]j:ah"]h$]h&]uh1j-hjC7ubj@)}(h h]h }(hjT7hhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjC7ubj)}(hvoidh]hvoid}(hjb7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjC7ubj@)}(h h]h }(hjp7hhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjC7ubj)}(hjh]h*}(hj~7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjC7ubjW)}(hdatah]hdata}(hj7hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjC7ubeh}(h]h ]h"]h$]h&]noemphjnjouh1jhj?7ubj)}(h4int (*match)(struct gpio_chip *gc, const void *data)h](j)}(hinth]hint}(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7ubj@)}(h h]h }(hj7hhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hj7ubj)}(h(h]h(}(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7ubj)}(hjh]h*}(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7ubjW)}(hmatchh]hmatch}(hj7hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhj7ubj)}(h)h]h)}(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7ubj)}(hj7h]h(}(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7ubj.)}(hj1h]hstruct}(hj8hhhNhNubah}(h]h ]j:ah"]h$]h&]uh1j-hj7ubj@)}(h h]h }(hj8hhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hj7ubh)}(hhh]jW)}(h gpio_chiph]h gpio_chip}(hj"8hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhj8ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj$8modnameN classnameNjj)}j]j7c.gpio_device_findasbuh1hhj7ubj@)}(h h]h }(hj@8hhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hj7ubj)}(hjh]h*}(hjN8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7ubjW)}(hgch]hgc}(hj[8hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhj7ubj)}(h,h]h,}(hji8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7ubj@)}(h h]h }(hjw8hhhNhNubah}(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&]uh1jhj7ubj@)}(h h]h }(hj8hhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hj7ubj)}(hjh]h*}(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7ubjW)}(hdatah]hdata}(hj8hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhj7ubj)}(hj7h]h)}(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7ubeh}(h]h ]h"]h$]h&]noemphjnjouh1jhj?7ubeh}(h]h ]h"]h$]h&]jnjouh1jhj6hhhj6hMubeh}(h]h ]h"]h$]h&]jnjojvuh1j'jwjxhj6hhhj6hMubah}(h]j6ah ](j|j}eh"]h$]h&]jj)jhuh1j!hj6hMhj6hhubj)}(hhh]h)}(hfind a specific GPIO deviceh]hfind a specific GPIO device}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMhj8hhubah}(h]h ]h"]h$]h&]uh1jhj6hhhj6hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj9jj9jjjuh1jhhhhhNhNubj)}(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)}(hj"9h]h Parameters}(hj$9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj 9ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chM!hj9ubj)}(hhh](j)}(h4``const void *data`` data to pass to match function h](j)}(h``const void *data``h]j )}(hjA9h]hconst void *data}(hjC9hhhNhNubah}(h]h ]h"]h$]h&]uh1j hj?9ubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMhj;9ubj")}(hhh]h)}(hdata to pass to match functionh]hdata to pass to match function}(hjZ9hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjV9hMhjW9ubah}(h]h ]h"]h$]h&]uh1j!hj;9ubeh}(h]h ]h"]h$]h&]uh1jhjV9hMhj89ubj)}(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 )}(hjz9h]h4int (*match)(struct gpio_chip *gc, const void *data)}(hj|9hhhNhNubah}(h]h ]h"]h$]h&]uh1j hjx9ubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMhjt9ubj")}(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!hjt9ubeh}(h]h ]h"]h$]h&]uh1jhj9hMhj89ubeh}(h]h ]h"]h$]h&]uh1jhj9ubh)}(h **Return**h]j)}(hj9h]hReturn}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj9ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chM!hj9ubh)}(h$New reference to struct gpio_device.h]h$New reference to struct gpio_device.}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chM!hj9ubh)}(h**Description**h]j)}(hj9h]h Description}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj9ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chM#hj9ubh)}(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 }(hj9hhhNhNubj)}(h **match**h]hmatch}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj9ubh 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.}(hj9hhhNhNubeh}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chM#hj9ubh)}(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.}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chM)hj9ubh)}(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().}(hj":hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chM-hj9ubeh}(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}(hjQ:hhhNhNubah}(h]h ]j:ah"]h$]h&]uh1j-hjM:hhh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMSubj@)}(h h]h }(hj_:hhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjM:hhhj^:hMSubh)}(hhh]jW)}(h gpio_deviceh]h gpio_device}(hjp:hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjm:ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjr:modnameN classnameNjj)}j]j)}jgpio_device_find_by_labelsbc.gpio_device_find_by_labelasbuh1hhjM:hhhj^:hMSubj@)}(h h]h }(hj:hhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjM:hhhj^:hMSubj)}(hjh]h*}(hj:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjM:hhhj^:hMSubjQ)}(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&]jnjouh1jPhjM:hhhj^:hMSubj)}(h(const char *label)h]j)}(hconst char *labelh](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)}(hcharh]hchar}(hj:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:ubj@)}(h h]h }(hj:hhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hj:ubj)}(hjh]h*}(hj;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:ubjW)}(hlabelh]hlabel}(hj;hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhj:ubeh}(h]h ]h"]h$]h&]noemphjnjouh1jhj:ubah}(h]h ]h"]h$]h&]jnjouh1jhjM:hhhj^:hMSubeh}(h]h ]h"]h$]h&]jnjojvuh1j'jwjxhjI:hhhj^:hMSubah}(h]jD:ah ](j|j}eh"]h$]h&]jj)jhuh1j!hj^:hMShjF: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}(hj9;hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMShj6;hhubah}(h]h ]h"]h$]h&]uh1jhjF:hhhj^:hMSubeh}(h]h ](jfunctioneh"]h$]h&]jjjjQ;jjQ;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&]uh1jhjY;ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMWhjU;ubj)}(hhh]j)}(h&``const char *label`` Label to lookup h](j)}(h``const char *label``h]j )}(hjz;h]hconst char *label}(hj|;hhhNhNubah}(h]h ]h"]h$]h&]uh1j hjx;ubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMUhjt;ubj")}(hhh]h)}(hLabel to lookuph]hLabel to lookup}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj;hMUhj;ubah}(h]h ]h"]h$]h&]uh1j!hjt;ubeh}(h]h ]h"]h$]h&]uh1jhj;hMUhjq;ubah}(h]h ]h"]h$]h&]uh1jhjU;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.chMWhjU;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.chMWhjU;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}(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.chMgubj@)}(h h]h }(hj<hhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hj;hhhj<hMgubh)}(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)}jgpio_device_find_by_fwnodesbc.gpio_device_find_by_fwnodeasbuh1hhj;hhhj<hMgubj@)}(h h]h }(hj:<hhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hj;hhhj<hMgubj)}(hjh]h*}(hjH<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;hhhj<hMgubjQ)}(hgpio_device_find_by_fwnodeh]jW)}(hj7<h]hgpio_device_find_by_fwnode}(hjY<hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjU<ubah}(h]h ](jijjeh"]h$]h&]jnjouh1jPhj;hhhj<hMgubj)}(h$(const struct fwnode_handle *fwnode)h]j)}(h"const struct fwnode_handle *fwnodeh](j.)}(hj"h]hconst}(hjt<hhhNhNubah}(h]h ]j:ah"]h$]h&]uh1j-hjp<ubj@)}(h h]h }(hj<hhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjp<ubj.)}(hj1h]hstruct}(hj<hhhNhNubah}(h]h ]j:ah"]h$]h&]uh1j-hjp<ubj@)}(h h]h }(hj<hhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjp<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]j5<c.gpio_device_find_by_fwnodeasbuh1hhjp<ubj@)}(h h]h }(hj<hhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjp<ubj)}(hjh]h*}(hj<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjp<ubjW)}(hfwnodeh]hfwnode}(hj<hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjp<ubeh}(h]h ]h"]h$]h&]noemphjnjouh1jhjl<ubah}(h]h ]h"]h$]h&]jnjouh1jhj;hhhj<hMgubeh}(h]h ]h"]h$]h&]jnjojvuh1j'jwjxhj;hhhj<hMgubah}(h]j;ah ](j|j}eh"]h$]h&]jj)jhuh1j!hj<hMghj;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}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMghj =hhubah}(h]h ]h"]h$]h&]uh1jhj;hhhj<hMgubeh}(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)}(hj2=h]h Parameters}(hj4=hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj0=ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMkhj,=ubj)}(hhh]j)}(h?``const struct fwnode_handle *fwnode`` Firmware node to lookup h](j)}(h&``const struct fwnode_handle *fwnode``h]j )}(hjQ=h]h"const struct fwnode_handle *fwnode}(hjS=hhhNhNubah}(h]h ]h"]h$]h&]uh1j hjO=ubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMihjK=ubj")}(hhh]h)}(hFirmware node to lookuph]hFirmware node to lookup}(hjj=hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjf=hMihjg=ubah}(h]h ]h"]h$]h&]uh1j!hjK=ubeh}(h]h ]h"]h$]h&]uh1jhjf=hMihjH=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.chMkhj,=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.chMkhj,=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.chMvubj@)}(h h]h }(hj=hhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hj=hhhj=hMvubh)}(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)}jgpio_device_getsbc.gpio_device_getasbuh1hhj=hhhj=hMvubj@)}(h h]h }(hj>hhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hj=hhhj=hMvubj)}(hjh]h*}(hj>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=hhhj=hMvubjQ)}(hgpio_device_geth]jW)}(hj>h]hgpio_device_get}(hj0>hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhj,>ubah}(h]h ](jijjeh"]h$]h&]jnjouh1jPhj=hhhj=hMvubj)}(h(struct gpio_device *gdev)h]j)}(hstruct gpio_device *gdevh](j.)}(hj1h]hstruct}(hjK>hhhNhNubah}(h]h ]j:ah"]h$]h&]uh1j-hjG>ubj@)}(h h]h }(hjX>hhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjG>ubh)}(hhh]jW)}(h gpio_deviceh]h gpio_device}(hji>hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjf>ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjk>modnameN classnameNjj)}j]j >c.gpio_device_getasbuh1hhjG>ubj@)}(h h]h }(hj>hhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjG>ubj)}(hjh]h*}(hj>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjG>ubjW)}(hgdevh]hgdev}(hj>hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjG>ubeh}(h]h ]h"]h$]h&]noemphjnjouh1jhjC>ubah}(h]h ]h"]h$]h&]jnjouh1jhj=hhhj=hMvubeh}(h]h ]h"]h$]h&]jnjojvuh1j'jwjxhj=hhhj=hMvubah}(h]j=ah ](j|j}eh"]h$]h&]jj)jhuh1j!hj=hMvhj=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.chMvhj>hhubah}(h]h ]h"]h$]h&]uh1jhj=hhhj=hMvubeh}(h]h ](jfunctioneh"]h$]h&]jjjj>jj>jjjuh1jhhhhhNhNubj)}(hy**Parameters** ``struct gpio_device *gdev`` GPIO device to increase the refcount for **Return** Pointer to **gdev**.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.chMzhj>ubj)}(hhh]j)}(hF``struct gpio_device *gdev`` GPIO device to increase the refcount for 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.chMwhj?ubj")}(hhh]h)}(h(GPIO device to increase the refcount forh]h(GPIO device to increase the refcount for}(hj&?hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj"?hMwhj#?ubah}(h]h ]h"]h$]h&]uh1j!hj?ubeh}(h]h ]h"]h$]h&]uh1jhj"?hMwhj?ubah}(h]h ]h"]h$]h&]uh1jhj>ubh)}(h **Return**h]j)}(hjH?h]hReturn}(hjJ?hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjF?ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMyhj>ubh)}(hPointer to **gdev**.h](h Pointer to }(hj^?hhhNhNubj)}(h**gdev**h]hgdev}(hjf?hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj^?ubh.}(hj^?hhhNhNubeh}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMyhj>ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubj )}(hhh]h}(h]h ]h"]h$]h&]entries](jgpio_device_put (C function)c.gpio_device_puthNtauh1j hhhhhNhNubj)}(hhh](j")}(h/void gpio_device_put (struct gpio_device *gdev)h]j()}(h.void gpio_device_put(struct gpio_device *gdev)h](j)}(hvoidh]hvoid}(hj?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj?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?hhhj?hMubjQ)}(hgpio_device_puth]jW)}(hgpio_device_puth]hgpio_device_put}(hj?hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhj?ubah}(h]h ](jijjeh"]h$]h&]jnjouh1jPhj?hhhj?hMubj)}(h(struct gpio_device *gdev)h]j)}(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)}jj?sbc.gpio_device_putasbuh1hhj?ubj@)}(h h]h }(hj@hhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hj?ubj)}(hjh]h*}(hj(@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj?ubjW)}(hgdevh]hgdev}(hj5@hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhj?ubeh}(h]h ]h"]h$]h&]noemphjnjouh1jhj?ubah}(h]h ]h"]h$]h&]jnjouh1jhj?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)}(hdDecrease the reference count of this GPIO device and possibly free all resources associated with it.h]hdDecrease the reference count of this GPIO device and possibly free all resources associated with it.}(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?hhhj?hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjw@jjw@jjjuh1jhhhhhNhNubj)}(h^**Parameters** ``struct gpio_device *gdev`` GPIO device to decrease the reference count forh](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)}(hL``struct gpio_device *gdev`` GPIO device to decrease the reference count forh](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 device to decrease the reference count forh]h/GPIO device to decrease the reference count for}(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&]uh1jhj@hMhj@ubah}(h]h ]h"]h$]h&]uh1jhj{@ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubj )}(hhh]h}(h]h ]h"]h$]h&]entries](j"gpio_device_to_device (C function)c.gpio_device_to_devicehNtauh1j hhhhhNhNubj)}(hhh](j")}(h@struct device * gpio_device_to_device (struct gpio_device *gdev)h]j()}(h>struct device *gpio_device_to_device(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.chMubj@)}(h h]h }(hjAhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hj@hhhjAhMubh)}(hhh]jW)}(hdeviceh]hdevice}(hjAhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjAubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjAmodnameN classnameNjj)}j]j)}jgpio_device_to_devicesbc.gpio_device_to_deviceasbuh1hhj@hhhjAhMubj@)}(h h]h }(hj:AhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hj@hhhjAhMubj)}(hjh]h*}(hjHAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@hhhjAhMubjQ)}(hgpio_device_to_deviceh]jW)}(hj7Ah]hgpio_device_to_device}(hjYAhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjUAubah}(h]h ](jijjeh"]h$]h&]jnjouh1jPhj@hhhjAhMubj)}(h(struct gpio_device *gdev)h]j)}(hstruct gpio_device *gdevh](j.)}(hj1h]hstruct}(hjtAhhhNhNubah}(h]h ]j:ah"]h$]h&]uh1j-hjpAubj@)}(h h]h }(hjAhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjpAubh)}(hhh]jW)}(h gpio_deviceh]h gpio_device}(hjAhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjAubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjAmodnameN classnameNjj)}j]j5Ac.gpio_device_to_deviceasbuh1hhjpAubj@)}(h h]h }(hjAhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjpAubj)}(hjh]h*}(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjpAubjW)}(hgdevh]hgdev}(hjAhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjpAubeh}(h]h ]h"]h$]h&]noemphjnjouh1jhjlAubah}(h]h ]h"]h$]h&]jnjouh1jhj@hhhjAhMubeh}(h]h ]h"]h$]h&]jnjojvuh1j'jwjxhj@hhhjAhMubah}(h]j@ah ](j|j}eh"]h$]h&]jj)jhuh1j!hjAhMhj@hhubj)}(hhh]h)}(h5Retrieve the address of the underlying struct device.h]h5Retrieve the address of the underlying struct device.}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMhjAhhubah}(h]h ]h"]h$]h&]uh1jhj@hhhjAhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj Bjj Bjjjuh1jhhhhhNhNubj)}(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)}(hjBh]h Parameters}(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.chMhjBubj)}(hhh]j)}(hJ``struct gpio_device *gdev`` GPIO device for which to return the address. h](j)}(h``struct gpio_device *gdev``h]j )}(hj6Bh]hstruct gpio_device *gdev}(hj8BhhhNhNubah}(h]h ]h"]h$]h&]uh1j hj4Bubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMhj0Bubj")}(hhh]h)}(h,GPIO device for which to return the address.h]h,GPIO device for which to return the address.}(hjOBhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjKBhMhjLBubah}(h]h ]h"]h$]h&]uh1j!hj0Bubeh}(h]h ]h"]h$]h&]uh1jhjKBhMhj-Bubah}(h]h ]h"]h$]h&]uh1jhjBubh)}(h**Description**h]j)}(hjqBh]h Description}(hjsBhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjoBubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMhjBubh)}(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.chMhjBubh)}(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.chMhjBubh)}(h2Address of struct device backing this GPIO device.h]h2Address of struct device backing this GPIO device.}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMhjBubeh}(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}(hjBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjBhhh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMubj@)}(h h]h }(hjBhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjBhhhjBhMubjQ)}(hgpiochip_irqchip_add_domainh]jW)}(hgpiochip_irqchip_add_domainh]hgpiochip_irqchip_add_domain}(hjBhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjBubah}(h]h ](jijjeh"]h$]h&]jnjouh1jPhjBhhhjBhMubj)}(h1(struct gpio_chip *gc, struct irq_domain *domain)h](j)}(hstruct gpio_chip *gch](j.)}(hj1h]hstruct}(hjChhhNhNubah}(h]h ]j:ah"]h$]h&]uh1j-hjCubj@)}(h h]h }(hj'ChhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjCubh)}(hhh]jW)}(h gpio_chiph]h gpio_chip}(hj8ChhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhj5Cubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj:CmodnameN classnameNjj)}j]j)}jjCsbc.gpiochip_irqchip_add_domainasbuh1hhjCubj@)}(h h]h }(hjXChhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjCubj)}(hjh]h*}(hjfChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjCubjW)}(hgch]hgc}(hjsChhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjCubeh}(h]h ]h"]h$]h&]noemphjnjouh1jhjCubj)}(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}(hjChhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjCubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjCmodnameN classnameNjj)}j]jTCc.gpiochip_irqchip_add_domainasbuh1hhjCubj@)}(h h]h }(hjChhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjCubj)}(hjh]h*}(hjChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjCubjW)}(hdomainh]hdomain}(hjChhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjCubeh}(h]h ]h"]h$]h&]noemphjnjouh1jhjCubeh}(h]h ]h"]h$]h&]jnjouh1jhjBhhhjBhMubeh}(h]h ]h"]h$]h&]jnjojvuh1j'jwjxhjBhhhjBhMubah}(h]jBah ](j|j}eh"]h$]h&]jj)jhuh1j!hjBhMhjBhhubj)}(hhh]h)}(hadds an irqdomain to a gpiochiph]hadds an irqdomain to a gpiochip}(hj DhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMhj Dhhubah}(h]h ]h"]h$]h&]uh1jhjBhhhjBhMubeh}(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)}(hj/Dh]h Parameters}(hj1DhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj-Dubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMhj)Dubj)}(hhh](j)}(h<``struct gpio_chip *gc`` the gpiochip to add the irqchip to h](j)}(h``struct gpio_chip *gc``h]j )}(hjNDh]hstruct gpio_chip *gc}(hjPDhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjLDubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMhjHDubj")}(hhh]h)}(h"the gpiochip to add the irqchip toh]h"the gpiochip to add the irqchip to}(hjgDhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjcDhMhjdDubah}(h]h ]h"]h$]h&]uh1j!hjHDubeh}(h]h ]h"]h$]h&]uh1jhjcDhMhjEDubj)}(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&]uh1jhjDhMhjEDubeh}(h]h ]h"]h$]h&]uh1jhj)Dubh)}(h**Description**h]j)}(hjDh]h Description}(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.chMhj)Dubh)}(h1This function adds an IRQ domain to the gpiochip.h]h1This function adds an IRQ domain to the gpiochip.}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMhj)Dubh)}(h **Return**h]j)}(hjDh]hReturn}(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.chMhj)Dubh)}(h+0 on success, or negative errno on failure.h]h+0 on success, or negative errno on failure.}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMhj)Dubeh}(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}(hj.EhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*Ehhh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMubj@)}(h h]h }(hj=EhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hj*EhhhjMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjMubj@)}(h h]h }(hjLMhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjMubj)}(hjh]h*}(hjZMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjMubjW)}(h pin_grouph]h pin_group}(hjgMhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjMubeh}(h]h ]h"]h$]h&]noemphjnjouh1jhjKubeh}(h]h ]h"]h$]h&]jnjouh1jhjKhhhjKhMubeh}(h]h ]h"]h$]h&]jnjojvuh1j'jwjxhjKhhhjKhMubah}(h]jKah ](j|j}eh"]h$]h&]jj)jhuh1j!hjKhMhjKhhubj)}(hhh]h)}(h$add a range for GPIO <-> 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&]uh1jhjKhhhjKhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjMjjMjjjuh1jhhhhhNhNubj)}(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)}(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.chMhjMubj)}(hhh](j)}(h;``struct gpio_chip *gc`` the gpiochip to add the range for h](j)}(h``struct gpio_chip *gc``h]j )}(hjMh]hstruct gpio_chip *gc}(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.chMhjMubj")}(hhh]h)}(h!the gpiochip to add the range forh]h!the gpiochip to add the range for}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjMhMhjMubah}(h]h ]h"]h$]h&]uh1j!hjMubeh}(h]h ]h"]h$]h&]uh1jhjMhMhjMubj)}(h=``struct pinctrl_dev *pctldev`` the pin controller to map to h](j)}(h``struct pinctrl_dev *pctldev``h]j )}(hj Nh]hstruct pinctrl_dev *pctldev}(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.chMhjNubj")}(hhh]h)}(hthe pin controller to map toh]hthe pin controller to map to}(hj$NhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj NhMhj!Nubah}(h]h ]h"]h$]h&]uh1j!hjNubeh}(h]h ]h"]h$]h&]uh1jhj NhMhjMubj)}(hT``unsigned int gpio_offset`` the start offset in the current gpio_chip number space h](j)}(h``unsigned int gpio_offset``h]j )}(hjDNh]hunsigned int gpio_offset}(hjFNhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjBNubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMhj>Nubj")}(hhh]h)}(h6the start offset in the current gpio_chip number spaceh]h6the start offset in the current gpio_chip number space}(hj]NhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjYNhMhjZNubah}(h]h ]h"]h$]h&]uh1j!hj>Nubeh}(h]h ]h"]h$]h&]uh1jhjYNhMhjMubj)}(hJ``const char *pin_group`` name of the pin group inside the pin controller h](j)}(h``const char *pin_group``h]j )}(hj}Nh]hconst char *pin_group}(hjNhhhNhNubah}(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.chMhjwNubj")}(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!hjwNubeh}(h]h ]h"]h$]h&]uh1jhjNhMhjMubeh}(h]h ]h"]h$]h&]uh1jhjMubh)}(h**Description**h]j)}(hjNh]h Description}(hjNhhhNhNubah}(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.chMhjMubh)}(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.}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMhjMubh)}(h **Return**h]j)}(hjNh]hReturn}(hjNhhhNhNubah}(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.chM hjMubh)}(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.chM hjMubeh}(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&]uh1jhj Ohhh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chM0 ubj@)}(h h]h }(hj3OhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hj Ohhhj2OhM0 ubjQ)}(hgpiochip_add_pin_rangeh]jW)}(hgpiochip_add_pin_rangeh]hgpiochip_add_pin_range}(hjEOhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjAOubah}(h]h ](jijjeh"]h$]h&]jnjouh1jPhj Ohhhj2OhM0 ubj)}(hv(struct gpio_chip *gc, const char *pinctl_name, unsigned int gpio_offset, unsigned int pin_offset, unsigned int npins)h](j)}(hstruct gpio_chip *gch](j.)}(hj1h]hstruct}(hjaOhhhNhNubah}(h]h ]j:ah"]h$]h&]uh1j-hj]Oubj@)}(h h]h }(hjnOhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hj]Oubh)}(hhh]jW)}(h gpio_chiph]h gpio_chip}(hjOhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhj|Oubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjOmodnameN classnameNjj)}j]j)}jjGOsbc.gpiochip_add_pin_rangeasbuh1hhj]Oubj@)}(h h]h }(hjOhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hj]Oubj)}(hjh]h*}(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]OubjW)}(hgch]hgc}(hjOhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhj]Oubeh}(h]h ]h"]h$]h&]noemphjnjouh1jhjYOubj)}(hconst char *pinctl_nameh](j.)}(hj"h]hconst}(hjOhhhNhNubah}(h]h ]j:ah"]h$]h&]uh1j-hjOubj@)}(h h]h }(hjOhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjOubj)}(hcharh]hchar}(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOubj@)}(h h]h }(hjOhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjOubj)}(hjh]h*}(hj PhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOubjW)}(h pinctl_nameh]h pinctl_name}(hjPhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjOubeh}(h]h ]h"]h$]h&]noemphjnjouh1jhjYOubj)}(hunsigned int gpio_offseth](j)}(hunsignedh]hunsigned}(hj0PhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj,Pubj@)}(h h]h }(hj>PhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hj,Pubj)}(hinth]hint}(hjLPhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj,Pubj@)}(h h]h }(hjZPhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hj,PubjW)}(h gpio_offseth]h gpio_offset}(hjhPhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhj,Pubeh}(h]h ]h"]h$]h&]noemphjnjouh1jhjYOubj)}(hunsigned int pin_offseth](j)}(hunsignedh]hunsigned}(hjPhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj}Pubj@)}(h h]h }(hjPhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hj}Pubj)}(hinth]hint}(hjPhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj}Pubj@)}(h h]h }(hjPhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hj}PubjW)}(h pin_offseth]h pin_offset}(hjPhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhj}Pubeh}(h]h ]h"]h$]h&]noemphjnjouh1jhjYOubj)}(hunsigned int npinsh](j)}(hunsignedh]hunsigned}(hjPhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPubj@)}(h h]h }(hjPhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjPubj)}(hinth]hint}(hjPhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPubj@)}(h h]h }(hjPhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjPubjW)}(hnpinsh]hnpins}(hj QhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjPubeh}(h]h ]h"]h$]h&]noemphjnjouh1jhjYOubeh}(h]h ]h"]h$]h&]jnjouh1jhj Ohhhj2OhM0 ubeh}(h]h ]h"]h$]h&]jnjojvuh1j'jwjxhjOhhhj2OhM0 ubah}(h]jOah ](j|j}eh"]h$]h&]jj)jhuh1j!hj2OhM0 hjOhhubj)}(hhh]h)}(h$add a range for GPIO <-> pin mappingh]h$add a range for GPIO <-> pin mapping}(hj4QhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chM0 hj1Qhhubah}(h]h ]h"]h$]h&]uh1jhjOhhhj2OhM0 ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjLQjjLQjjjuh1jhhhhhNhNubj)}(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)}(hjVQh]h Parameters}(hjXQhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjTQubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chM4 hjPQubj)}(hhh](j)}(h;``struct gpio_chip *gc`` the gpiochip to add the range for h](j)}(h``struct gpio_chip *gc``h]j )}(hjuQh]hstruct gpio_chip *gc}(hjwQhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjsQubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chM1 hjoQubj")}(hhh]h)}(h!the gpiochip to add the range forh]h!the gpiochip to add the range for}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjQhM1 hjQubah}(h]h ]h"]h$]h&]uh1j!hjoQubeh}(h]h ]h"]h$]h&]uh1jhjQhM1 hjlQubj)}(hK``const char *pinctl_name`` the dev_name() of the pin controller to map to h](j)}(h``const char *pinctl_name``h]j )}(hjQh]hconst char *pinctl_name}(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.chM2 hjQubj")}(hhh]h)}(h.the dev_name() of the pin controller to map toh]h.the dev_name() of the pin controller to map to}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjQhM2 hjQubah}(h]h ]h"]h$]h&]uh1j!hjQubeh}(h]h ]h"]h$]h&]uh1jhjQhM2 hjlQubj)}(hT``unsigned int gpio_offset`` the start offset in the current gpio_chip number space h](j)}(h``unsigned int gpio_offset``h]j )}(hjQh]hunsigned int gpio_offset}(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.chM3 hjQubj")}(hhh]h)}(h6the start offset in the current gpio_chip number spaceh]h6the start offset in the current gpio_chip number space}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjQhM3 hjQubah}(h]h ]h"]h$]h&]uh1j!hjQubeh}(h]h ]h"]h$]h&]uh1jhjQhM3 hjlQubj)}(hP``unsigned int pin_offset`` the start offset in the pin controller number space h](j)}(h``unsigned int pin_offset``h]j )}(hj Rh]hunsigned int pin_offset}(hj"RhhhNhNubah}(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.chM4 hjRubj")}(hhh]h)}(h3the start offset in the pin controller number spaceh]h3the start offset in the pin controller number space}(hj9RhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj5RhM4 hj6Rubah}(h]h ]h"]h$]h&]uh1j!hjRubeh}(h]h ]h"]h$]h&]uh1jhj5RhM4 hjlQubj)}(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 )}(hjYRh]hunsigned int npins}(hj[RhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjWRubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chM6 hjSRubj")}(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}(hjrRhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chM5 hjoRubah}(h]h ]h"]h$]h&]uh1j!hjSRubeh}(h]h ]h"]h$]h&]uh1jhjnRhM6 hjlQubeh}(h]h ]h"]h$]h&]uh1jhjPQubh)}(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.chM8 hjPQubh)}(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.}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chM7 hjPQubh)}(h **Return**h]j)}(hjRh]hReturn}(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< hjPQubh)}(h-0 on success, or a negative errno on failure.h]h-0 on success, or a negative errno on failure.}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chM= hjPQubeh}(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}(hjShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRhhh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMi ubj@)}(h h]h }(hjShhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjRhhhjShMi ubjQ)}(hgpiochip_remove_pin_rangesh]jW)}(hgpiochip_remove_pin_rangesh]hgpiochip_remove_pin_ranges}(hj"ShhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjSubah}(h]h ](jijjeh"]h$]h&]jnjouh1jPhjRhhhjShMi ubj)}(h(struct gpio_chip *gc)h]j)}(hstruct gpio_chip *gch](j.)}(hj1h]hstruct}(hj>ShhhNhNubah}(h]h ]j:ah"]h$]h&]uh1j-hj:Subj@)}(h h]h }(hjKShhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hj:Subh)}(hhh]jW)}(h gpio_chiph]h gpio_chip}(hj\ShhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjYSubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj^SmodnameN classnameNjj)}j]j)}jj$Ssbc.gpiochip_remove_pin_rangesasbuh1hhj:Subj@)}(h h]h }(hj|ShhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hj:Subj)}(hjh]h*}(hjShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:SubjW)}(hgch]hgc}(hjShhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhj:Subeh}(h]h ]h"]h$]h&]noemphjnjouh1jhj6Subah}(h]h ]h"]h$]h&]jnjouh1jhjRhhhjShMi ubeh}(h]h ]h"]h$]h&]jnjojvuh1j'jwjxhjRhhhjShMi ubah}(h]jRah ](j|j}eh"]h$]h&]jj)jhuh1j!hjShMi hjRhhubj)}(hhh]h)}(h$remove all the GPIO <-> pin mappingsh]h$remove all the GPIO <-> pin mappings}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMi hjShhubah}(h]h ]h"]h$]h&]uh1jhjRhhhjShMi ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjSjjSjjjuh1jhhhhhNhNubj)}(hR**Parameters** ``struct gpio_chip *gc`` the chip to remove all the mappings forh](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.chMm hjSubj)}(hhh]j)}(h@``struct gpio_chip *gc`` the chip to remove all the mappings forh](j)}(h``struct gpio_chip *gc``h]j )}(hjTh]hstruct gpio_chip *gc}(hjThhhNhNubah}(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.chMo hjSubj")}(hhh]h)}(h'the chip to remove all the mappings forh]h'the chip to remove all the mappings for}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMj hjTubah}(h]h ]h"]h$]h&]uh1j!hjSubeh}(h]h ]h"]h$]h&]uh1jhjThMo hjSubah}(h]h ]h"]h$]h&]uh1jhjSubeh}(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}(hj\ThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjXThhh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chM ubj@)}(h h]h }(hjkThhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjXThhhjjThM ubj)}(hjh]h*}(hjyThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjXThhhjjThM 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&]jnjouh1jPhjXThhhjjThM ubj)}(h+(struct gpio_chip *gc, unsigned int offset)h](j)}(hstruct gpio_chip *gch](j.)}(hj1h]hstruct}(hjThhhNhNubah}(h]h ]j:ah"]h$]h&]uh1j-hjTubj@)}(h h]h }(hjThhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjTubh)}(hhh]jW)}(h gpio_chiph]h gpio_chip}(hjThhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjTubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjTmodnameN classnameNjj)}j]j)}jjTsbc.gpiochip_dup_line_labelasbuh1hhjTubj@)}(h h]h }(hjThhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjTubj)}(hjh]h*}(hjThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjTubjW)}(hgch]hgc}(hjThhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjTubeh}(h]h ]h"]h$]h&]noemphjnjouh1jhjTubj)}(hunsigned int offseth](j)}(hunsignedh]hunsigned}(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUubj@)}(h h]h }(hj&UhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjUubj)}(hinth]hint}(hj4UhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUubj@)}(h h]h }(hjBUhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjUubjW)}(hoffseth]hoffset}(hjPUhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjUubeh}(h]h ]h"]h$]h&]noemphjnjouh1jhjTubeh}(h]h ]h"]h$]h&]jnjouh1jhjXThhhjjThM ubeh}(h]h ]h"]h$]h&]jnjojvuh1j'jwjxhjTThhhjjThM ubah}(h]jOTah ](j|j}eh"]h$]h&]jj)jhuh1j!hjjThM hjQThhubj)}(hhh]h)}(h!Get a copy of the consumer label.h]h!Get a copy of the consumer label.}(hjzUhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chM hjwUhhubah}(h]h ]h"]h$]h&]uh1jhjQThhhjjThM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjUjjUjjjuh1jhhhhhNhNubj)}(hX**Parameters** ``struct gpio_chip *gc`` GPIO chip controlling this line. ``unsigned int offset`` Hardware offset of the line. **Return** Pointer to a copy of the consumer label if the line is requested or NULL if it's not. If a valid pointer was returned, it must be freed using kfree(). In case of a memory allocation error, the function returns ``ENOMEM``. **Description** Must not be called from atomic context.h](h)}(h**Parameters**h]j)}(hjUh]h Parameters}(hjUhhhNhNubah}(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.chM hjUubj)}(hhh](j)}(h:``struct gpio_chip *gc`` GPIO chip controlling this line. h](j)}(h``struct gpio_chip *gc``h]j )}(hjUh]hstruct gpio_chip *gc}(hjUhhhNhNubah}(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.chM hjUubj")}(hhh]h)}(h GPIO chip controlling this line.h]h GPIO chip controlling this line.}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjUhM hjUubah}(h]h ]h"]h$]h&]uh1j!hjUubeh}(h]h ]h"]h$]h&]uh1jhjUhM hjUubj)}(h5``unsigned int offset`` Hardware offset of the line. h](j)}(h``unsigned int offset``h]j )}(hjUh]hunsigned int offset}(hjUhhhNhNubah}(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.chM hjUubj")}(hhh]h)}(hHardware offset of the line.h]hHardware offset of the line.}(hj VhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj VhM hj Vubah}(h]h ]h"]h$]h&]uh1j!hjUubeh}(h]h ]h"]h$]h&]uh1jhj VhM hjUubeh}(h]h ]h"]h$]h&]uh1jhjUubh)}(h **Return**h]j)}(hj/Vh]hReturn}(hj1VhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj-Vubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chM hjUubh)}(hPointer to a copy of the consumer label if the line is requested or NULL if it's not. If a valid pointer was returned, it must be freed using kfree(). In case of a memory allocation error, the function returns ``ENOMEM``.h](hPointer to a copy of the consumer label if the line is requested or NULL if it’s not. If a valid pointer was returned, it must be freed using kfree(). In case of a memory allocation error, the function returns }(hjEVhhhNhNubj )}(h ``ENOMEM``h]hENOMEM}(hjMVhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjEVubh.}(hjEVhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chM hjUubh)}(h**Description**h]j)}(hjhVh]h Description}(hjjVhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjfVubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chM hjUubh)}(h'Must not be called from atomic context.h]h'Must not be called from atomic context.}(hj~VhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chM hjUubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubj )}(hhh]h}(h]h ]h"]h$]h&]entries](j&gpiochip_request_own_desc (C function)c.gpiochip_request_own_deschNtauh1j hhhhhNhNubj)}(hhh](j")}(hstruct gpio_desc * gpiochip_request_own_desc (struct gpio_chip *gc, unsigned int hwnum, const char *label, enum gpio_lookup_flags lflags, enum gpiod_flags dflags)h]j()}(hstruct gpio_desc *gpiochip_request_own_desc(struct gpio_chip *gc, unsigned int hwnum, const char *label, enum gpio_lookup_flags lflags, enum gpiod_flags dflags)h](j.)}(hj1h]hstruct}(hjVhhhNhNubah}(h]h ]j:ah"]h$]h&]uh1j-hjVhhh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chM ubj@)}(h h]h }(hjVhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjVhhhjVhM ubh)}(hhh]jW)}(h gpio_desch]h gpio_desc}(hjVhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjVubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjVmodnameN classnameNjj)}j]j)}jgpiochip_request_own_descsbc.gpiochip_request_own_descasbuh1hhjVhhhjVhM ubj@)}(h h]h }(hjVhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjVhhhjVhM ubj)}(hjh]h*}(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVhhhjVhM ubjQ)}(hgpiochip_request_own_desch]jW)}(hjVh]hgpiochip_request_own_desc}(hj WhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjWubah}(h]h ](jijjeh"]h$]h&]jnjouh1jPhjVhhhjVhM ubj)}(hu(struct gpio_chip *gc, unsigned int hwnum, const char *label, enum gpio_lookup_flags lflags, enum gpiod_flags dflags)h](j)}(hstruct gpio_chip *gch](j.)}(hj1h]hstruct}(hj'WhhhNhNubah}(h]h ]j:ah"]h$]h&]uh1j-hj#Wubj@)}(h h]h }(hj4WhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hj#Wubh)}(hhh]jW)}(h gpio_chiph]h gpio_chip}(hjEWhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjBWubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjGWmodnameN classnameNjj)}j]jVc.gpiochip_request_own_descasbuh1hhj#Wubj@)}(h h]h }(hjcWhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hj#Wubj)}(hjh]h*}(hjqWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj#WubjW)}(hgch]hgc}(hj~WhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhj#Wubeh}(h]h ]h"]h$]h&]noemphjnjouh1jhjWubj)}(hunsigned int hwnumh](j)}(hunsignedh]hunsigned}(hjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjWubj@)}(h h]h }(hjWhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjWubj)}(hinth]hint}(hjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjWubj@)}(h h]h }(hjWhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjWubjW)}(hhwnumh]hhwnum}(hjWhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjWubeh}(h]h ]h"]h$]h&]noemphjnjouh1jhjWubj)}(hconst char *labelh](j.)}(hj"h]hconst}(hjWhhhNhNubah}(h]h ]j:ah"]h$]h&]uh1j-hjWubj@)}(h h]h }(hjWhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjWubj)}(hcharh]hchar}(hjXhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjWubj@)}(h h]h }(hjXhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjWubj)}(hjh]h*}(hjXhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjWubjW)}(hlabelh]hlabel}(hj,XhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjWubeh}(h]h ]h"]h$]h&]noemphjnjouh1jhjWubj)}(henum gpio_lookup_flags lflagsh](j.)}(henumh]henum}(hjEXhhhNhNubah}(h]h ]j:ah"]h$]h&]uh1j-hjAXubj@)}(h h]h }(hjSXhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjAXubh)}(hhh]jW)}(hgpio_lookup_flagsh]hgpio_lookup_flags}(hjdXhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjaXubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjfXmodnameN classnameNjj)}j]jVc.gpiochip_request_own_descasbuh1hhjAXubj@)}(h h]h }(hjXhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjAXubjW)}(hlflagsh]hlflags}(hjXhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjAXubeh}(h]h ]h"]h$]h&]noemphjnjouh1jhjWubj)}(henum gpiod_flags dflagsh](j.)}(hjGXh]henum}(hjXhhhNhNubah}(h]h ]j:ah"]h$]h&]uh1j-hjXubj@)}(h h]h }(hjXhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjXubh)}(hhh]jW)}(h gpiod_flagsh]h gpiod_flags}(hjXhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjXubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjXmodnameN classnameNjj)}j]jVc.gpiochip_request_own_descasbuh1hhjXubj@)}(h h]h }(hjXhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjXubjW)}(hdflagsh]hdflags}(hjXhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjXubeh}(h]h ]h"]h$]h&]noemphjnjouh1jhjWubeh}(h]h ]h"]h$]h&]jnjouh1jhjVhhhjVhM ubeh}(h]h ]h"]h$]h&]jnjojvuh1j'jwjxhjVhhhjVhM ubah}(h]jVah ](j|j}eh"]h$]h&]jj)jhuh1j!hjVhM hjVhhubj)}(hhh]h)}(h-Allow GPIO chip to request its own descriptorh]h-Allow GPIO chip to request its own descriptor}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chM hjYhhubah}(h]h ]h"]h$]h&]uh1jhjVhhhjVhM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj5Yjj5Yjjjuh1jhhhhhNhNubj)}(hX**Parameters** ``struct gpio_chip *gc`` GPIO chip ``unsigned int hwnum`` hardware number of the GPIO for which to request the descriptor ``const char *label`` label for the GPIO ``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 ``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 **Description** 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). **Return** A pointer to the GPIO descriptor, or an ERR_PTR()-encoded negative error code on failure.h](h)}(h**Parameters**h]j)}(hj?Yh]h Parameters}(hjAYhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj=Yubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chM hj9Yubj)}(hhh](j)}(h#``struct gpio_chip *gc`` GPIO chip h](j)}(h``struct gpio_chip *gc``h]j )}(hj^Yh]hstruct gpio_chip *gc}(hj`YhhhNhNubah}(h]h ]h"]h$]h&]uh1j hj\Yubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chM hjXYubj")}(hhh]h)}(h GPIO chiph]h GPIO chip}(hjwYhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjsYhM hjtYubah}(h]h ]h"]h$]h&]uh1j!hjXYubeh}(h]h ]h"]h$]h&]uh1jhjsYhM hjUYubj)}(hW``unsigned int hwnum`` hardware number of the GPIO for which to request the descriptor h](j)}(h``unsigned int hwnum``h]j )}(hjYh]hunsigned int hwnum}(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.chM hjYubj")}(hhh]h)}(h?hardware number of the GPIO for which to request the descriptorh]h?hardware number of the GPIO for which to request the descriptor}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjYhM hjYubah}(h]h ]h"]h$]h&]uh1j!hjYubeh}(h]h ]h"]h$]h&]uh1jhjYhM hjUYubj)}(h)``const char *label`` label for the GPIO h](j)}(h``const char *label``h]j )}(hjYh]hconst char *label}(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.chM hjYubj")}(hhh]h)}(hlabel for the GPIOh]hlabel for the GPIO}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjYhM hjYubah}(h]h ]h"]h$]h&]uh1j!hjYubeh}(h]h ]h"]h$]h&]uh1jhjYhM hjUYubj)}(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 )}(hj Zh]henum gpio_lookup_flags lflags}(hj ZhhhNhNubah}(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)}(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}(hj"ZhhhNhNubah}(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 hjUYubj)}(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 )}(hjCZh]henum gpiod_flags dflags}(hjEZhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjAZubah}(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)}(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}(hj\ZhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chM hjYZubah}(h]h ]h"]h$]h&]uh1j!hj=Zubeh}(h]h ]h"]h$]h&]uh1jhjXZhM hjUYubeh}(h]h ]h"]h$]h&]uh1jhj9Yubh)}(h**Description**h]j)}(hjZh]h Description}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj}Zubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chM hj9Yubh)}(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 hj9Yubh)}(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.chM" hj9Yubh)}(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.}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chM# hj9Yubeh}(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}(hjZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZhhh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMH ubj@)}(h h]h }(hjZhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjZhhhjZhMH ubjQ)}(hgpiochip_free_own_desch]jW)}(hgpiochip_free_own_desch]hgpiochip_free_own_desc}(hj [hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhj[ubah}(h]h ](jijjeh"]h$]h&]jnjouh1jPhjZhhhjZhMH ubj)}(h(struct gpio_desc *desc)h]j)}(hstruct gpio_desc *desch](j.)}(hj1h]hstruct}(hj([hhhNhNubah}(h]h ]j:ah"]h$]h&]uh1j-hj$[ubj@)}(h h]h }(hj5[hhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hj$[ubh)}(hhh]jW)}(h gpio_desch]h gpio_desc}(hjF[hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjC[ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjH[modnameN classnameNjj)}j]j)}jj[sbc.gpiochip_free_own_descasbuh1hhj$[ubj@)}(h h]h }(hjf[hhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hj$[ubj)}(hjh]h*}(hjt[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$[ubjW)}(hdesch]hdesc}(hj[hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhj$[ubeh}(h]h ]h"]h$]h&]noemphjnjouh1jhj [ubah}(h]h ]h"]h$]h&]jnjouh1jhjZhhhjZhMH ubeh}(h]h ]h"]h$]h&]jnjojvuh1j'jwjxhjZhhhjZhMH ubah}(h]jZah ](j|j}eh"]h$]h&]jj)jhuh1j!hjZhMH hjZhhubj)}(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.chMH hj[hhubah}(h]h ]h"]h$]h&]uh1jhjZhhhjZhMH 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.chML hj[ubj)}(hhh]j)}(h3``struct gpio_desc *desc`` GPIO descriptor to free 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.chMI hj[ubj")}(hhh]h)}(hGPIO descriptor to freeh]hGPIO descriptor to free}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj\hMI hj\ubah}(h]h ]h"]h$]h&]uh1j!hj[ubeh}(h]h ]h"]h$]h&]uh1jhj\hMI 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.c hMK 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.chMJ 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}(hjl\hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjh\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_inputh]jW)}(hgpiod_direction_inputh]hgpiod_direction_input}(hj\hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhj\ubah}(h]h ](jijjeh"]h$]h&]jnjouh1jPhjh\hhhjz\hM ubj)}(h(struct gpio_desc *desc)h]j)}(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]j)}jj\sbc.gpiod_direction_inputasbuh1hhj\ubj@)}(h h]h }(hj\hhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hj\ubj)}(hjh]h*}(hj\hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\ubjW)}(hdesch]hdesc}(hj]hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhj\ubeh}(h]h ]h"]h$]h&]noemphjnjouh1jhj\ubah}(h]h ]h"]h$]h&]jnjouh1jhjh\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)}(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&]uh1jhja\hhhjz\hM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjD]jjD]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)}(hjN]h]h Parameters}(hjP]hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjL]ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chM hjH]ubj)}(hhh]j)}(h0``struct gpio_desc *desc`` GPIO to set to input h](j)}(h``struct gpio_desc *desc``h]j )}(hjm]h]hstruct gpio_desc *desc}(hjo]hhhNhNubah}(h]h ]h"]h$]h&]uh1j hjk]ubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chM hjg]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!hjg]ubeh}(h]h ]h"]h$]h&]uh1jhj]hM hjd]ubah}(h]h ]h"]h$]h&]uh1jhjH]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 hjH]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 hjH]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 hjH]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 hjH]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}(hj^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^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_output_rawh]jW)}(hgpiod_direction_output_rawh]hgpiod_direction_output_raw}(hj5^hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhj1^ubah}(h]h ](jijjeh"]h$]h&]jnjouh1jPhj^hhhj"^hM ubj)}(h#(struct gpio_desc *desc, int value)h](j)}(hstruct gpio_desc *desch](j.)}(hj1h]hstruct}(hjQ^hhhNhNubah}(h]h ]j:ah"]h$]h&]uh1j-hjM^ubj@)}(h h]h }(hj^^hhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjM^ubh)}(hhh]jW)}(h gpio_desch]h gpio_desc}(hjo^hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjl^ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjq^modnameN classnameNjj)}j]j)}jj7^sbc.gpiod_direction_output_rawasbuh1hhjM^ubj@)}(h h]h }(hj^hhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjM^ubj)}(hjh]h*}(hj^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjM^ubjW)}(hdesch]hdesc}(hj^hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjM^ubeh}(h]h ]h"]h$]h&]noemphjnjouh1jhjI^ubj)}(h int valueh](j)}(hinth]hint}(hj^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^ubj@)}(h h]h }(hj^hhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hj^ubjW)}(hvalueh]hvalue}(hj^hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhj^ubeh}(h]h ]h"]h$]h&]noemphjnjouh1jhjI^ubeh}(h]h ]h"]h$]h&]jnjouh1jhj^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 set the GPIO direction to outputh]h set the GPIO direction to output}(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** ``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 )}(hjJ_h]hstruct gpio_desc *desc}(hjL_hhhNhNubah}(h]h ]h"]h$]h&]uh1j hjH_ubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chM hjD_ubj")}(hhh]h)}(hGPIO to set to outputh]hGPIO to set to output}(hjc_hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj__hM hj`_ubah}(h]h ]h"]h$]h&]uh1j!hjD_ubeh}(h]h ]h"]h$]h&]uh1jhj__hM hjA_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 hjA_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.}(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 (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&]uh1jhj&`hhh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chM ubj@)}(h h]h }(hj9`hhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hj&`hhhj8`hM ubjQ)}(hgpiod_direction_outputh]jW)}(hgpiod_direction_outputh]hgpiod_direction_output}(hjK`hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjG`ubah}(h]h ](jijjeh"]h$]h&]jnjouh1jPhj&`hhhj8`hM ubj)}(h#(struct gpio_desc *desc, int value)h](j)}(hstruct gpio_desc *desch](j.)}(hj1h]hstruct}(hjg`hhhNhNubah}(h]h ]j:ah"]h$]h&]uh1j-hjc`ubj@)}(h h]h }(hjt`hhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjc`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)}jjM`sbc.gpiod_direction_outputasbuh1hhjc`ubj@)}(h h]h }(hj`hhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjc`ubj)}(hjh]h*}(hj`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjc`ubjW)}(hdesch]hdesc}(hj`hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjc`ubeh}(h]h ]h"]h$]h&]noemphjnjouh1jhj_`ubj)}(h int valueh](j)}(hinth]hint}(hj`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`ubj@)}(h h]h }(hj`hhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hj`ubjW)}(hvalueh]hvalue}(hj`hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhj`ubeh}(h]h ]h"]h$]h&]noemphjnjouh1jhj_`ubeh}(h]h ]h"]h$]h&]jnjouh1jhj&`hhhj8`hM ubeh}(h]h ]h"]h$]h&]jnjojvuh1j'jwjxhj"`hhhj8`hM ubah}(h]j`ah ](j|j}eh"]h$]h&]jj)jhuh1j!hj8`hM hj`hhubj)}(hhh]h)}(h set the GPIO direction to outputh]h set the GPIO direction to output}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chM hjahhubah}(h]h ]h"]h$]h&]uh1jhj`hhhj8`hM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj7ajj7ajjjuh1jhhhhhNhNubj)}(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)}(hjAah]h Parameters}(hjCahhhNhNubah}(h]h ]h"]h$]h&]uh1jhj?aubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chM hj;aubj)}(hhh](j)}(h1``struct gpio_desc *desc`` GPIO to set to output h](j)}(h``struct gpio_desc *desc``h]j )}(hj`ah]hstruct gpio_desc *desc}(hjbahhhNhNubah}(h]h ]h"]h$]h&]uh1j hj^aubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chM hjZaubj")}(hhh]h)}(hGPIO to set to outputh]hGPIO to set to output}(hjyahhhNhNubah}(h]h ]h"]h$]h&]uh1hhjuahM hjvaubah}(h]h ]h"]h$]h&]uh1j!hjZaubeh}(h]h ]h"]h$]h&]uh1jhjuahM hjWaubj)}(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}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1hhjahM hjaubah}(h]h ]h"]h$]h&]uh1j!hjaubeh}(h]h ]h"]h$]h&]uh1jhjahM hjWaubeh}(h]h ]h"]h$]h&]uh1jhj;aubh)}(h**Description**h]j)}(hjah]h Description}(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 hj;aubh)}(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.}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chM hj;aubh)}(h **Return**h]j)}(hjah]hReturn}(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 hj;aubh)}(h+0 on success, or negative errno on failure.h]h+0 on success, or negative errno on failure.}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chM hj;aubeh}(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}(hj@bhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdah ](j|j}eh"]h$]h&]jj)jhuh1j!hjYdhM hj@dhhubj)}(hhh]h)}(hDisable hardware timestamp.h]hDisable hardware timestamp.}(hj\ehhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chM hjYehhubah}(h]h ]h"]h$]h&]uh1jhj@dhhhjYdhM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjtejjtejjjuh1jhhhhhNhNubj)}(h**Parameters** ``struct gpio_desc *desc`` GPIO to disable. ``unsigned long flags`` Flags related to GPIO edge, same value as used during enable call. **Return** 0 on success, or negative errno on failure.h](h)}(h**Parameters**h]j)}(hj~eh]h Parameters}(hjehhhNhNubah}(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.chM! hjxeubj)}(hhh](j)}(h,``struct gpio_desc *desc`` GPIO to disable. h](j)}(h``struct gpio_desc *desc``h]j )}(hjeh]hstruct gpio_desc *desc}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1j hjeubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chM hjeubj")}(hhh]h)}(hGPIO to disable.h]hGPIO to disable.}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1hhjehM hjeubah}(h]h ]h"]h$]h&]uh1j!hjeubeh}(h]h ]h"]h$]h&]uh1jhjehM hjeubj)}(h[``unsigned long flags`` Flags related to GPIO edge, same value as used during enable call. h](j)}(h``unsigned long flags``h]j )}(hjeh]hunsigned long flags}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1j hjeubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chM hjeubj")}(hhh]h)}(hBFlags related to GPIO edge, same value as used during enable call.h]hBFlags related to GPIO edge, same value as used during enable call.}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1hhjehM hjeubah}(h]h ]h"]h$]h&]uh1j!hjeubeh}(h]h ]h"]h$]h&]uh1jhjehM hjeubeh}(h]h ]h"]h$]h&]uh1jhjxeubh)}(h **Return**h]j)}(hjfh]hReturn}(hjfhhhNhNubah}(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.chM" hjxeubh)}(h+0 on success, or negative errno on failure.h]h+0 on success, or negative errno on failure.}(hj'fhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chM" hjxeubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubj )}(hhh]h}(h]h ]h"]h$]h&]entries](jgpiod_set_config (C function)c.gpiod_set_confighNtauh1j hhhhhNhNubj)}(hhh](j")}(hCint gpiod_set_config (struct gpio_desc *desc, unsigned long config)h]j()}(hBint gpiod_set_config(struct gpio_desc *desc, unsigned long config)h](j)}(hinth]hint}(hjVfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRfhhh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chM? ubj@)}(h h]h }(hjefhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjRfhhhjdfhM? ubjQ)}(hgpiod_set_configh]jW)}(hgpiod_set_configh]hgpiod_set_config}(hjwfhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjsfubah}(h]h ](jijjeh"]h$]h&]jnjouh1jPhjRfhhhjdfhM? ubj)}(h.(struct gpio_desc *desc, unsigned long config)h](j)}(hstruct gpio_desc *desch](j.)}(hj1h]hstruct}(hjfhhhNhNubah}(h]h ]j:ah"]h$]h&]uh1j-hjfubj@)}(h h]h }(hjfhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjfubh)}(hhh]jW)}(h gpio_desch]h gpio_desc}(hjfhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjfubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjfmodnameN classnameNjj)}j]j)}jjyfsbc.gpiod_set_configasbuh1hhjfubj@)}(h h]h }(hjfhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjfubj)}(hjh]h*}(hjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjfubjW)}(hdesch]hdesc}(hjfhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjfubeh}(h]h ]h"]h$]h&]noemphjnjouh1jhjfubj)}(hunsigned long configh](j)}(hunsignedh]hunsigned}(hjghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjgubj@)}(h h]h }(hjghhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjgubj)}(hlongh]hlong}(hj!ghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjgubj@)}(h h]h }(hj/ghhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjgubjW)}(hconfigh]hconfig}(hj=ghhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjgubeh}(h]h ]h"]h$]h&]noemphjnjouh1jhjfubeh}(h]h ]h"]h$]h&]jnjouh1jhjRfhhhjdfhM? ubeh}(h]h ]h"]h$]h&]jnjojvuh1j'jwjxhjNfhhhjdfhM? ubah}(h]jIfah ](j|j}eh"]h$]h&]jj)jhuh1j!hjdfhM? hjKfhhubj)}(hhh]h)}(hsets **config** for a GPIOh](hsets }(hjgghhhNhNubj)}(h **config**h]hconfig}(hjoghhhNhNubah}(h]h ]h"]h$]h&]uh1jhjggubh for a GPIO}(hjgghhhNhNubeh}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chM? hjdghhubah}(h]h ]h"]h$]h&]uh1jhjKfhhhjdfhM? ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjgjjgjjjuh1jhhhhhNhNubj)}(hX**Parameters** ``struct gpio_desc *desc`` descriptor of the GPIO for which to set the configuration ``unsigned long config`` Same packed config format as generic pinconf **Return** 0 on success, ``-ENOTSUPP`` if the controller doesn't support setting the configuration.h](h)}(h**Parameters**h]j)}(hjgh]h Parameters}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1jhjgubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMC hjgubj)}(hhh](j)}(hU``struct gpio_desc *desc`` descriptor of the GPIO for which to set the configuration h](j)}(h``struct gpio_desc *desc``h]j )}(hjgh]hstruct gpio_desc *desc}(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.chM@ hjgubj")}(hhh]h)}(h9descriptor of the GPIO for which to set the configurationh]h9descriptor of the GPIO for which to set the configuration}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1hhjghM@ hjgubah}(h]h ]h"]h$]h&]uh1j!hjgubeh}(h]h ]h"]h$]h&]uh1jhjghM@ hjgubj)}(hF``unsigned long config`` Same packed config format as generic pinconf h](j)}(h``unsigned long config``h]j )}(hjgh]hunsigned long config}(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.chMA hjgubj")}(hhh]h)}(h,Same packed config format as generic pinconfh]h,Same packed config format as generic pinconf}(hj hhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhMA hj hubah}(h]h ]h"]h$]h&]uh1j!hjgubeh}(h]h ]h"]h$]h&]uh1jhjhhMA hjgubeh}(h]h ]h"]h$]h&]uh1jhjgubh)}(h **Return**h]j)}(hj.hh]hReturn}(hj0hhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj,hubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMC hjgubh)}(hX0 on success, ``-ENOTSUPP`` if the controller doesn't support setting the configuration.h](h0 on success, }(hjDhhhhNhNubj )}(h ``-ENOTSUPP``h]h -ENOTSUPP}(hjLhhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjDhubh? if the controller doesn’t support setting the configuration.}(hjDhhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMC hjgubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubj )}(hhh]h}(h]h ]h"]h$]h&]entries](jgpiod_set_debounce (C function)c.gpiod_set_debouncehNtauh1j hhhhhNhNubj)}(hhh](j")}(hFint gpiod_set_debounce (struct gpio_desc *desc, unsigned int debounce)h]j()}(hEint gpiod_set_debounce(struct gpio_desc *desc, unsigned int debounce)h](j)}(hinth]hint}(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMe ubj@)}(h h]h }(hjhhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjhhhhjhhMe ubjQ)}(hgpiod_set_debounceh]jW)}(hgpiod_set_debounceh]hgpiod_set_debounce}(hjhhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjhubah}(h]h ](jijjeh"]h$]h&]jnjouh1jPhjhhhhjhhMe ubj)}(h/(struct gpio_desc *desc, unsigned int debounce)h](j)}(hstruct gpio_desc *desch](j.)}(hj1h]hstruct}(hjhhhhNhNubah}(h]h ]j:ah"]h$]h&]uh1j-hjhubj@)}(h h]h }(hjhhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjhubh)}(hhh]jW)}(h gpio_desch]h gpio_desc}(hjhhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjhubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjhmodnameN classnameNjj)}j]j)}jjhsbc.gpiod_set_debounceasbuh1hhjhubj@)}(h h]h }(hjihhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjhubj)}(hjh]h*}(hjihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhubjW)}(hdesch]hdesc}(hjihhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjhubeh}(h]h ]h"]h$]h&]noemphjnjouh1jhjhubj)}(hunsigned int debounceh](j)}(hunsignedh]hunsigned}(hj4ihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0iubj@)}(h h]h }(hjBihhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hj0iubj)}(hinth]hint}(hjPihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0iubj@)}(h h]h }(hj^ihhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hj0iubjW)}(hdebounceh]hdebounce}(hjlihhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhj0iubeh}(h]h ]h"]h$]h&]noemphjnjouh1jhjhubeh}(h]h ]h"]h$]h&]jnjouh1jhjhhhhjhhMe ubeh}(h]h ]h"]h$]h&]jnjojvuh1j'jwjxhj}hhhhjhhMe ubah}(h]jxhah ](j|j}eh"]h$]h&]jj)jhuh1j!hjhhMe hjzhhhubj)}(hhh]h)}(h!sets **debounce** time for a GPIOh](hsets }(hjihhhNhNubj)}(h **debounce**h]hdebounce}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jhjiubh time for a GPIO}(hjihhhNhNubeh}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMe hjihhubah}(h]h ]h"]h$]h&]uh1jhjzhhhhjhhMe ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjijjijjjuh1jhhhhhNhNubj)}(hX**Parameters** ``struct gpio_desc *desc`` descriptor of the GPIO for which to set debounce time ``unsigned int debounce`` debounce time in microseconds **Return** 0 on success, ``-ENOTSUPP`` if the controller doesn't support setting the debounce time.h](h)}(h**Parameters**h]j)}(hjih]h Parameters}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jhjiubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMi hjiubj)}(hhh](j)}(hQ``struct gpio_desc *desc`` descriptor of the GPIO for which to set debounce time h](j)}(h``struct gpio_desc *desc``h]j )}(hjih]hstruct gpio_desc *desc}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1j hjiubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMf hjiubj")}(hhh]h)}(h5descriptor of the GPIO for which to set debounce timeh]h5descriptor of the GPIO for which to set debounce time}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjihMf hjiubah}(h]h ]h"]h$]h&]uh1j!hjiubeh}(h]h ]h"]h$]h&]uh1jhjihMf hjiubj)}(h8``unsigned int debounce`` debounce time in microseconds h](j)}(h``unsigned int debounce``h]j )}(hj"jh]hunsigned int debounce}(hj$jhhhNhNubah}(h]h ]h"]h$]h&]uh1j hj jubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMg hjjubj")}(hhh]h)}(hdebounce time in microsecondsh]hdebounce time in microseconds}(hj;jhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj7jhMg hj8jubah}(h]h ]h"]h$]h&]uh1j!hjjubeh}(h]h ]h"]h$]h&]uh1jhj7jhMg hjiubeh}(h]h ]h"]h$]h&]uh1jhjiubh)}(h **Return**h]j)}(hj]jh]hReturn}(hj_jhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj[jubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMi hjiubh)}(hX0 on success, ``-ENOTSUPP`` if the controller doesn't support setting the debounce time.h](h0 on success, }(hjsjhhhNhNubj )}(h ``-ENOTSUPP``h]h -ENOTSUPP}(hj{jhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjsjubh? if the controller doesn’t support setting the debounce time.}(hjsjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMi hjiubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubj )}(hhh]h}(h]h ]h"]h$]h&]entries](j gpiod_is_active_low (C function)c.gpiod_is_active_lowhNtauh1j hhhhhNhNubj)}(hhh](j")}(h6int gpiod_is_active_low (const struct gpio_desc *desc)h]j()}(h5int gpiod_is_active_low(const struct gpio_desc *desc)h](j)}(hinth]hint}(hjjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjhhh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chM ubj@)}(h h]h }(hjjhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjjhhhjjhM ubjQ)}(hgpiod_is_active_lowh]jW)}(hgpiod_is_active_lowh]hgpiod_is_active_low}(hjjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjjubah}(h]h ](jijjeh"]h$]h&]jnjouh1jPhjjhhhjjhM ubj)}(h(const struct gpio_desc *desc)h]j)}(hconst struct gpio_desc *desch](j.)}(hj"h]hconst}(hjjhhhNhNubah}(h]h ]j:ah"]h$]h&]uh1j-hjjubj@)}(h h]h }(hjjhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjjubj.)}(hj1h]hstruct}(hj khhhNhNubah}(h]h ]j:ah"]h$]h&]uh1j-hjjubj@)}(h h]h }(hjkhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjjubh)}(hhh]jW)}(h gpio_desch]h gpio_desc}(hj*khhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhj'kubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj,kmodnameN classnameNjj)}j]j)}jjjsbc.gpiod_is_active_lowasbuh1hhjjubj@)}(h h]h }(hjJkhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjjubj)}(hjh]h*}(hjXkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjubjW)}(hdesch]hdesc}(hjekhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjjubeh}(h]h ]h"]h$]h&]noemphjnjouh1jhjjubah}(h]h ]h"]h$]h&]jnjouh1jhjjhhhjjhM ubeh}(h]h ]h"]h$]h&]jnjojvuh1j'jwjxhjjhhhjjhM ubah}(h]jjah ](j|j}eh"]h$]h&]jj)jhuh1j!hjjhM hjjhhubj)}(hhh]h)}(h(test whether a GPIO is active-low or noth]h(test whether a GPIO is active-low or not}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chM hjkhhubah}(h]h ]h"]h$]h&]uh1jhjjhhhjjhM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjkjjkjjjuh1jhhhhhNhNubj)}(h**Parameters** ``const struct gpio_desc *desc`` the gpio descriptor to test **Return** 1 if the GPIO is active-low, 0 otherwise.h](h)}(h**Parameters**h]j)}(hjkh]h Parameters}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjkubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chM hjkubj)}(hhh]j)}(h=``const struct gpio_desc *desc`` the gpio descriptor to test h](j)}(h ``const struct gpio_desc *desc``h]j )}(hjkh]hconst struct gpio_desc *desc}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjkubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chM hjkubj")}(hhh]h)}(hthe gpio descriptor to testh]hthe gpio descriptor to test}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjkhM hjkubah}(h]h ]h"]h$]h&]uh1j!hjkubeh}(h]h ]h"]h$]h&]uh1jhjkhM hjkubah}(h]h ]h"]h$]h&]uh1jhjkubh)}(h **Return**h]j)}(hj lh]hReturn}(hj lhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj lubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chM hjkubh)}(h)1 if the GPIO is active-low, 0 otherwise.h]h)1 if the GPIO is active-low, 0 otherwise.}(hj!lhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chM hjkubeh}(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}(hjPlhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjLlhhh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chM ubj@)}(h h]h }(hj_lhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjLlhhhj^lhM ubjQ)}(hgpiod_toggle_active_lowh]jW)}(hgpiod_toggle_active_lowh]hgpiod_toggle_active_low}(hjqlhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjmlubah}(h]h ](jijjeh"]h$]h&]jnjouh1jPhjLlhhhj^lhM ubj)}(h(struct gpio_desc *desc)h]j)}(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}(hjlhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjlubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjlmodnameN classnameNjj)}j]j)}jjslsbc.gpiod_toggle_active_lowasbuh1hhjlubj@)}(h h]h }(hjlhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjlubj)}(hjh]h*}(hjlhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjlubjW)}(hdesch]hdesc}(hjlhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjlubeh}(h]h ]h"]h$]h&]noemphjnjouh1jhjlubah}(h]h ]h"]h$]h&]jnjouh1jhjLlhhhj^lhM ubeh}(h]h ]h"]h$]h&]jnjojvuh1j'jwjxhjHlhhhj^lhM ubah}(h]jClah ](j|j}eh"]h$]h&]jj)jhuh1j!hj^lhM hjElhhubj)}(hhh]h)}(h*toggle whether a GPIO is active-low or noth]h*toggle whether a GPIO is active-low or not}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chM hj mhhubah}(h]h ]h"]h$]h&]uh1jhjElhhhj^lhM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj(mjj(mjjjuh1jhhhhhNhNubj)}(hJ**Parameters** ``struct gpio_desc *desc`` the gpio descriptor to changeh](h)}(h**Parameters**h]j)}(hj2mh]h Parameters}(hj4mhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj0mubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chM hj,mubj)}(hhh]j)}(h8``struct gpio_desc *desc`` the gpio descriptor to changeh](j)}(h``struct gpio_desc *desc``h]j )}(hjQmh]hstruct gpio_desc *desc}(hjSmhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjOmubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chM hjKmubj")}(hhh]h)}(hthe gpio descriptor to changeh]hthe gpio descriptor to change}(hjjmhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chM hjgmubah}(h]h ]h"]h$]h&]uh1j!hjKmubeh}(h]h ]h"]h$]h&]uh1jhjfmhM hjHmubah}(h]h ]h"]h$]h&]uh1jhj,mubeh}(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}(hjmhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmhhh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chM ubj@)}(h h]h }(hjmhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjmhhhjmhM ubjQ)}(hgpiod_get_raw_valueh]jW)}(hgpiod_get_raw_valueh]hgpiod_get_raw_value}(hjmhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjmubah}(h]h ](jijjeh"]h$]h&]jnjouh1jPhjmhhhjmhM ubj)}(h(const struct gpio_desc *desc)h]j)}(hconst struct gpio_desc *desch](j.)}(hj"h]hconst}(hjmhhhNhNubah}(h]h ]j:ah"]h$]h&]uh1j-hjmubj@)}(h h]h }(hjmhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjmubj.)}(hj1h]hstruct}(hjnhhhNhNubah}(h]h ]j:ah"]h$]h&]uh1j-hjmubj@)}(h h]h }(hjnhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjmubh)}(hhh]jW)}(h gpio_desch]h gpio_desc}(hj!nhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjnubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj#nmodnameN classnameNjj)}j]j)}jjmsbc.gpiod_get_raw_valueasbuh1hhjmubj@)}(h h]h }(hjAnhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjmubj)}(hjh]h*}(hjOnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmubjW)}(hdesch]hdesc}(hj\nhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjmubeh}(h]h ]h"]h$]h&]noemphjnjouh1jhjmubah}(h]h ]h"]h$]h&]jnjouh1jhjmhhhjmhM ubeh}(h]h ]h"]h$]h&]jnjojvuh1j'jwjxhjmhhhjmhM ubah}(h]jmah ](j|j}eh"]h$]h&]jj)jhuh1j!hjmhM hjmhhubj)}(hhh]h)}(hreturn a gpio's raw valueh]hreturn a gpio’s raw value}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chM hjnhhubah}(h]h ]h"]h$]h&]uh1jhjmhhhjmhM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjnjjnjjjuh1jhhhhhNhNubj)}(hXp**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 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)}(hjnh]h Parameters}(hjnhhhNhNubah}(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.chM hjnubj)}(hhh]j)}(hC``const struct gpio_desc *desc`` gpio whose value will be returned h](j)}(h ``const struct gpio_desc *desc``h]j )}(hjnh]hconst struct gpio_desc *desc}(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.chM hjnubj")}(hhh]h)}(h!gpio whose value will be returnedh]h!gpio whose value will be returned}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjnhM hjnubah}(h]h ]h"]h$]h&]uh1j!hjnubeh}(h]h ]h"]h$]h&]uh1jhjnhM hjnubah}(h]h ]h"]h$]h&]uh1jhjnubh)}(h **Return**h]j)}(hjoh]hReturn}(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.chM hjnubh)}(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.}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chM hjnubh)}(h**Description**h]j)}(hj)oh]h Description}(hj+ohhhNhNubah}(h]h ]h"]h$]h&]uh1jhj'oubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chM hjnubh)}(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?ohhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chM hjnubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubj )}(hhh]h}(h]h ]h"]h$]h&]entries](jgpiod_get_value (C function)c.gpiod_get_valuehNtauh1j hhhhhNhNubj)}(hhh](j")}(h2int gpiod_get_value (const struct gpio_desc *desc)h]j()}(h1int gpiod_get_value(const struct gpio_desc *desc)h](j)}(hinth]hint}(hjnohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjohhh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chM ubj@)}(h h]h }(hj}ohhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjjohhhj|ohM ubjQ)}(hgpiod_get_valueh]jW)}(hgpiod_get_valueh]hgpiod_get_value}(hjohhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjoubah}(h]h ](jijjeh"]h$]h&]jnjouh1jPhjjohhhj|ohM ubj)}(h(const struct gpio_desc *desc)h]j)}(hconst struct gpio_desc *desch](j.)}(hj"h]hconst}(hjohhhNhNubah}(h]h ]j:ah"]h$]h&]uh1j-hjoubj@)}(h h]h }(hjohhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjoubj.)}(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_desch]h gpio_desc}(hjohhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjoubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjomodnameN classnameNjj)}j]j)}jjosbc.gpiod_get_valueasbuh1hhjoubj@)}(h h]h }(hjphhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjoubj)}(hjh]h*}(hjphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjoubjW)}(hdesch]hdesc}(hjphhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjoubeh}(h]h ]h"]h$]h&]noemphjnjouh1jhjoubah}(h]h ]h"]h$]h&]jnjouh1jhjjohhhj|ohM ubeh}(h]h ]h"]h$]h&]jnjojvuh1j'jwjxhjfohhhj|ohM ubah}(h]jaoah ](j|j}eh"]h$]h&]jj)jhuh1j!hj|ohM hjcohhubj)}(hhh]h)}(hreturn a gpio's valueh]hreturn a gpio’s value}(hjIphhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chM hjFphhubah}(h]h ]h"]h$]h&]uh1jhjcohhhj|ohM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjapjjapjjjuh1jhhhhhNhNubj)}(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)}(hjkph]h Parameters}(hjmphhhNhNubah}(h]h ]h"]h$]h&]uh1jhjipubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chM hjepubj)}(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&]uh1jhjepubh)}(h **Return**h]j)}(hjph]hReturn}(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 hjepubh)}(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.}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chM hjepubh)}(h**Description**h]j)}(hjph]h Description}(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 hjepubh)}(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.}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chM hjepubeh}(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}(hj1qhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-qhhh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chM ubj@)}(h h]h }(hj@qhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hj-qhhhj?qhM ubjQ)}(hgpiod_get_raw_array_valueh]jW)}(hgpiod_get_raw_array_valueh]hgpiod_get_raw_array_value}(hjRqhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjNqubah}(h]h ](jijjeh"]h$]h&]jnjouh1jPhj-qhhhj?qhM ubj)}(ht(unsigned int array_size, struct gpio_desc **desc_array, struct gpio_array *array_info, unsigned long *value_bitmap)h](j)}(hunsigned int array_sizeh](j)}(hunsignedh]hunsigned}(hjnqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjqubj@)}(h h]h }(hj|qhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjjqubj)}(hinth]hint}(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjqubj@)}(h h]h }(hjqhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjjqubjW)}(h array_sizeh]h array_size}(hjqhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjjqubeh}(h]h ]h"]h$]h&]noemphjnjouh1jhjfqubj)}(hstruct gpio_desc **desc_arrayh](j.)}(hj1h]hstruct}(hjqhhhNhNubah}(h]h ]j:ah"]h$]h&]uh1j-hjqubj@)}(h h]h }(hjqhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjqubh)}(hhh]jW)}(h gpio_desch]h gpio_desc}(hjqhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjqubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjqmodnameN classnameNjj)}j]j)}jjTqsbc.gpiod_get_raw_array_valueasbuh1hhjqubj@)}(h h]h }(hjqhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjqubj)}(hjh]h*}(hj rhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqubj)}(hjh]h*}(hjrhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqubjW)}(h desc_arrayh]h desc_array}(hj%rhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjqubeh}(h]h ]h"]h$]h&]noemphjnjouh1jhjfqubj)}(hstruct gpio_array *array_infoh](j.)}(hj1h]hstruct}(hj>rhhhNhNubah}(h]h ]j:ah"]h$]h&]uh1j-hj:rubj@)}(h h]h }(hjKrhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hj:rubh)}(hhh]jW)}(h gpio_arrayh]h gpio_array}(hj\rhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjYrubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj^rmodnameN classnameNjj)}j]jqc.gpiod_get_raw_array_valueasbuh1hhj:rubj@)}(h h]h }(hjzrhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hj:rubj)}(hjh]h*}(hjrhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:rubjW)}(h array_infoh]h array_info}(hjrhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhj:rubeh}(h]h ]h"]h$]h&]noemphjnjouh1jhjfqubj)}(hunsigned long *value_bitmaph](j)}(hunsignedh]hunsigned}(hjrhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjrubj@)}(h h]h }(hjrhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjrubj)}(hlongh]hlong}(hjrhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjrubj@)}(h h]h }(hjrhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjrubj)}(hjh]h*}(hjrhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjrubjW)}(h value_bitmaph]h value_bitmap}(hjrhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjrubeh}(h]h ]h"]h$]h&]noemphjnjouh1jhjfqubeh}(h]h ]h"]h$]h&]jnjouh1jhj-qhhhj?qhM ubeh}(h]h ]h"]h$]h&]jnjojvuh1j'jwjxhj)qhhhj?qhM ubah}(h]j$qah ](j|j}eh"]h$]h&]jj)jhuh1j!hj?qhM hj&qhhubj)}(hhh]h)}(h&read raw values from an array of GPIOsh]h&read raw values from an array of GPIOs}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chM hjshhubah}(h]h ]h"]h$]h&]uh1jhj&qhhhj?qhM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj5sjj5sjjjuh1jhhhhhNhNubj)}(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)}(hj?sh]h Parameters}(hjAshhhNhNubah}(h]h ]h"]h$]h&]uh1jhj=subah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chM hj9subj)}(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^sh]hunsigned int array_size}(hj`shhhNhNubah}(h]h ]h"]h$]h&]uh1j hj\subah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chM hjXsubj")}(hhh]h)}(h9number of elements in the descriptor array / value bitmaph]h9number of elements in the descriptor array / value bitmap}(hjwshhhNhNubah}(h]h ]h"]h$]h&]uh1hhjsshM hjtsubah}(h]h ]h"]h$]h&]uh1j!hjXsubeh}(h]h ]h"]h$]h&]uh1jhjsshM hjUsubj)}(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}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1hhjshM hjsubah}(h]h ]h"]h$]h&]uh1j!hjsubeh}(h]h ]h"]h$]h&]uh1jhjshM hjUsubj)}(h^``struct gpio_array *array_info`` information on applicability of fast bitmap processing path h](j)}(h!``struct gpio_array *array_info``h]j )}(hjsh]hstruct gpio_array *array_info}(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)}(h;information on applicability of fast bitmap processing pathh]h;information on applicability of fast bitmap processing path}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1hhjshM hjsubah}(h]h ]h"]h$]h&]uh1j!hjsubeh}(h]h ]h"]h$]h&]uh1jhjshM hjUsubj)}(h@``unsigned long *value_bitmap`` bitmap to store the read values h](j)}(h``unsigned long *value_bitmap``h]j )}(hj th]hunsigned long *value_bitmap}(hj thhhNhNubah}(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.chM hjtubj")}(hhh]h)}(hbitmap to store the read valuesh]hbitmap to store the read values}(hj"thhhNhNubah}(h]h ]h"]h$]h&]uh1hhjthM hjtubah}(h]h ]h"]h$]h&]uh1j!hjtubeh}(h]h ]h"]h$]h&]uh1jhjthM hjUsubeh}(h]h ]h"]h$]h&]uh1jhj9subh)}(h**Description**h]j)}(hjDth]h Description}(hjFthhhNhNubah}(h]h ]h"]h$]h&]uh1jhjBtubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chM hj9subh)}(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.}(hjZthhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chM hj9subh)}(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.}(hjithhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chM hj9subh)}(h **Return**h]j)}(hjzth]hReturn}(hj|thhhNhNubah}(h]h ]h"]h$]h&]uh1jhjxtubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chM hj9subh)}(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 hj9subeh}(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}(hjthhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjthhh\/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 ubjQ)}(hgpiod_get_array_valueh]jW)}(hgpiod_get_array_valueh]hgpiod_get_array_value}(hjthhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjtubah}(h]h ](jijjeh"]h$]h&]jnjouh1jPhjthhhjthM ubj)}(ht(unsigned int array_size, struct gpio_desc **desc_array, struct gpio_array *array_info, unsigned long *value_bitmap)h](j)}(hunsigned int array_sizeh](j)}(hunsignedh]hunsigned}(hjthhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjtubj@)}(h h]h }(hj uhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjtubj)}(hinth]hint}(hjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjtubj@)}(h h]h }(hj&uhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjtubjW)}(h array_sizeh]h array_size}(hj4uhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjtubeh}(h]h ]h"]h$]h&]noemphjnjouh1jhjtubj)}(hstruct gpio_desc **desc_arrayh](j.)}(hj1h]hstruct}(hjMuhhhNhNubah}(h]h ]j:ah"]h$]h&]uh1j-hjIuubj@)}(h h]h }(hjZuhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjIuubh)}(hhh]jW)}(h gpio_desch]h gpio_desc}(hjkuhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjhuubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmumodnameN classnameNjj)}j]j)}jjtsbc.gpiod_get_array_valueasbuh1hhjIuubj@)}(h h]h }(hjuhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjIuubj)}(hjh]h*}(hjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjIuubj)}(hjh]h*}(hjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjIuubjW)}(h desc_arrayh]h desc_array}(hjuhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjIuubeh}(h]h ]h"]h$]h&]noemphjnjouh1jhjtubj)}(hstruct gpio_array *array_infoh](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_arrayh]h gpio_array}(hjuhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjuubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjumodnameN classnameNjj)}j]juc.gpiod_get_array_valueasbuh1hhjuubj@)}(h h]h }(hjvhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjuubj)}(hjh]h*}(hjvhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjuubjW)}(h array_infoh]h array_info}(hj#vhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjuubeh}(h]h ]h"]h$]h&]noemphjnjouh1jhjtubj)}(hunsigned long *value_bitmaph](j)}(hunsignedh]hunsigned}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj:whM hj;wubah}(h]h ]h"]h$]h&]uh1j!hjwubeh}(h]h ]h"]h$]h&]uh1jhj:whM hjvubj)}(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^wh]hstruct gpio_array *array_info}(hj`whhhNhNubah}(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 hjXwubj")}(hhh]h)}(h;information on applicability of fast bitmap processing pathh]h;information on applicability of fast bitmap processing path}(hjwwhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjswhM hjtwubah}(h]h ]h"]h$]h&]uh1j!hjXwubeh}(h]h ]h"]h$]h&]uh1jhjswhM hjvubj)}(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}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjwhM hjwubah}(h]h ]h"]h$]h&]uh1j!hjwubeh}(h]h ]h"]h$]h&]uh1jhjwhM hjvubeh}(h]h ]h"]h$]h&]uh1jhjvubh)}(h**Description**h]j)}(hjwh]h Description}(hjwhhhNhNubah}(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.chM hjvubh)}(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.}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chM hjvubh)}(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.}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chM hjvubh)}(h **Return**h]j)}(hjxh]hReturn}(hj xhhhNhNubah}(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.chM hjvubh)}(h+0 on success, or negative errno on failure.h]h+0 on success, or negative errno on failure.}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chM hjvubeh}(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}(hjMxhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjIxhhh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMubj@)}(h h]h }(hj\xhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjIxhhhj[xhMubjQ)}(hgpiod_set_raw_valueh]jW)}(hgpiod_set_raw_valueh]hgpiod_set_raw_value}(hjnxhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjjxubah}(h]h ](jijjeh"]h$]h&]jnjouh1jPhjIxhhhj[xhMubj)}(h#(struct gpio_desc *desc, int value)h](j)}(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}(hjxhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjxubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjxmodnameN classnameNjj)}j]j)}jjpxsbc.gpiod_set_raw_valueasbuh1hhjxubj@)}(h h]h }(hjxhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjxubj)}(hjh]h*}(hjxhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjxubjW)}(hdesch]hdesc}(hjxhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjxubeh}(h]h ]h"]h$]h&]noemphjnjouh1jhjxubj)}(h int valueh](j)}(hinth]hint}(hjxhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjxubj@)}(h h]h }(hj yhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjxubjW)}(hvalueh]hvalue}(hjyhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjxubeh}(h]h ]h"]h$]h&]noemphjnjouh1jhjxubeh}(h]h ]h"]h$]h&]jnjouh1jhjIxhhhj[xhMubeh}(h]h ]h"]h$]h&]jnjojvuh1j'jwjxhjExhhhj[xhMubah}(h]j@xah ](j|j}eh"]h$]h&]jj)jhuh1j!hj[xhMhjBxhhubj)}(hhh]h)}(hassign a gpio's raw valueh]hassign a gpio’s raw value}(hjByhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMhj?yhhubah}(h]h ]h"]h$]h&]uh1jhjBxhhhj[xhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjZyjjZyjjjuh1jhhhhhNhNubj)}(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)}(hjdyh]h Parameters}(hjfyhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjbyubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMhj^yubj)}(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.chMhj}yubj")}(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!hj}yubeh}(h]h ]h"]h$]h&]uh1jhjyhMhjzyubj)}(h``int value`` value to assign h](j)}(h ``int value``h]j )}(hjyh]h int value}(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)}(hvalue to assignh]hvalue to assign}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjyhMhjyubah}(h]h ]h"]h$]h&]uh1j!hjyubeh}(h]h ]h"]h$]h&]uh1jhjyhMhjzyubeh}(h]h ]h"]h$]h&]uh1jhj^yubh)}(h**Description**h]j)}(hjyh]h Description}(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.chMhj^yubh)}(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.}(hj zhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMhj^yubh)}(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.}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMhj^yubh)}(h **Return**h]j)}(hj-zh]hReturn}(hj/zhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj+zubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMhj^yubh)}(h/0 on success, negative error number on failure.h]h/0 on success, negative error number on failure.}(hjCzhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMhj^yubeh}(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}(hjrzhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnzhhh\/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?hjnzhhhjzhMubjQ)}(hgpiod_set_valueh]jW)}(hgpiod_set_valueh]hgpiod_set_value}(hjzhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjzubah}(h]h ](jijjeh"]h$]h&]jnjouh1jPhjnzhhhjzhMubj)}(h#(struct gpio_desc *desc, int value)h](j)}(hstruct gpio_desc *desch](j.)}(hj1h]hstruct}(hjzhhhNhNubah}(h]h ]j:ah"]h$]h&]uh1j-hjzubj@)}(h h]h }(hjzhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjzubh)}(hhh]jW)}(h gpio_desch]h gpio_desc}(hjzhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjzubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjzmodnameN classnameNjj)}j]j)}jjzsbc.gpiod_set_valueasbuh1hhjzubj@)}(h h]h }(hjzhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjzubj)}(hjh]h*}(hjzhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjzubjW)}(hdesch]hdesc}(hj{hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjzubeh}(h]h ]h"]h$]h&]noemphjnjouh1jhjzubj)}(h int valueh](j)}(hinth]hint}(hj!{hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj{ubj@)}(h h]h }(hj/{hhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hj{ubjW)}(hvalueh]hvalue}(hj={hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhj{ubeh}(h]h ]h"]h$]h&]noemphjnjouh1jhjzubeh}(h]h ]h"]h$]h&]jnjouh1jhjnzhhhjzhMubeh}(h]h ]h"]h$]h&]jnjojvuh1j'jwjxhjjzhhhjzhMubah}(h]jezah ](j|j}eh"]h$]h&]jj)jhuh1j!hjzhMhjgzhhubj)}(hhh]h)}(hassign a gpio's valueh]hassign a gpio’s value}(hjg{hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMhjd{hhubah}(h]h ]h"]h$]h&]uh1jhjgzhhhjzhMubeh}(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 )}(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}(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{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.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.}(hj2|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.}(hjA|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)}(hjR|h]hReturn}(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.chMhj{ubh)}(h/0 on success, negative error number on failure.h]h/0 on success, negative error number on failure.}(hjh|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&]uh1jhj|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)ubj)}(ht(unsigned int array_size, struct gpio_desc **desc_array, struct gpio_array *array_info, unsigned long *value_bitmap)h](j)}(hunsigned int array_sizeh](j)}(hunsignedh]hunsigned}(hj|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|ubj@)}(h h]h }(hj|hhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hj|ubj)}(hinth]hint}(hj|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|ubj@)}(h h]h }(hj|hhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hj|ubjW)}(h array_sizeh]h array_size}(hj }hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhj|ubeh}(h]h ]h"]h$]h&]noemphjnjouh1jhj|ubj)}(hstruct gpio_desc **desc_arrayh](j.)}(hj1h]hstruct}(hj%}hhhNhNubah}(h]h ]j:ah"]h$]h&]uh1j-hj!}ubj@)}(h h]h }(hj2}hhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hj!}ubh)}(hhh]jW)}(h gpio_desch]h gpio_desc}(hjC}hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhj@}ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjE}modnameN classnameNjj)}j]j)}jj|sbc.gpiod_set_raw_array_valueasbuh1hhj!}ubj@)}(h h]h }(hjc}hhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hj!}ubj)}(hjh]h*}(hjq}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!}ubj)}(hjh]h*}(hj~}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!}ubjW)}(h desc_arrayh]h desc_array}(hj}hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhj!}ubeh}(h]h ]h"]h$]h&]noemphjnjouh1jhj|ubj)}(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 }(hj}hhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hj}ubj)}(hjh]h*}(hj}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj}ubjW)}(h array_infoh]h array_info}(hj}hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhj}ubeh}(h]h ]h"]h$]h&]noemphjnjouh1jhj|ubj)}(hunsigned long *value_bitmaph](j)}(hunsignedh]hunsigned}(hj~hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~ubj@)}(h h]h }(hj"~hhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hj~ubj)}(hlongh]hlong}(hj0~hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~ubj@)}(h h]h }(hj>~hhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hj~ubj)}(hjh]h*}(hjL~hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~ubjW)}(h value_bitmaph]h value_bitmap}(hjY~hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhj~ubeh}(h]h ]h"]h$]h&]noemphjnjouh1jhj|ubeh}(h]h ]h"]h$]h&]jnjouh1jhj|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 )}(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.chM*hj~ubj")}(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~hM*hj~ubah}(h]h ]h"]h$]h&]uh1j!hj~ubeh}(h]h ]h"]h$]h&]uh1jhj~hM*hj~ubj)}(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 )}(hj~h]hstruct gpio_desc **desc_array}(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)}(h7array of GPIO descriptors whose values will be assignedh]h7array of GPIO descriptors whose values will be assigned}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM+hjubah}(h]h ]h"]h$]h&]uh1j!hj~ubeh}(h]h ]h"]h$]h&]uh1jhjhM+hj~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 )}(hj6h]hstruct gpio_array *array_info}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1j hj4ubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chM,hj0ubj")}(hhh]h)}(h;information on applicability of fast bitmap processing pathh]h;information on applicability of fast bitmap processing path}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjKhM,hjLubah}(h]h ]h"]h$]h&]uh1j!hj0ubeh}(h]h ]h"]h$]h&]uh1jhjKhM,hj~ubj)}(h;``unsigned long *value_bitmap`` bitmap of values to assign h](j)}(h``unsigned long *value_bitmap``h]j )}(hjoh]hunsigned long *value_bitmap}(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.chM-hjiubj")}(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!hjiubeh}(h]h ]h"]h$]h&]uh1jhjhM-hj~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&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chM/hj~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.chM.hj~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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chM1hj~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.chM4hj~ubh)}(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.chM5hj~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&]uh1jhj!hhh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMEubj@)}(h h]h }(hj4hhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hj!hhhj3hMEubjQ)}(hgpiod_set_array_valueh]jW)}(hgpiod_set_array_valueh]hgpiod_set_array_value}(hjFhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjBubah}(h]h ](jijjeh"]h$]h&]jnjouh1jPhj!hhhj3hMEubj)}(ht(unsigned int array_size, struct gpio_desc **desc_array, struct gpio_array *array_info, unsigned long *value_bitmap)h](j)}(hunsigned int array_sizeh](j)}(hunsignedh]hunsigned}(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^ubj@)}(h h]h }(hjphhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hj^ubj)}(hinth]hint}(hj~hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^ubj@)}(h h]h }(hjhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hj^ubjW)}(h array_sizeh]h array_size}(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhj^ubeh}(h]h ]h"]h$]h&]noemphjnjouh1jhjZubj)}(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]j)}jjHsbc.gpiod_set_array_valueasbuh1hhjubj@)}(h h]h }(hjhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjW)}(h desc_arrayh]h desc_array}(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjubeh}(h]h ]h"]h$]h&]noemphjnjouh1jhjZubj)}(hstruct gpio_array *array_infoh](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)}(h gpio_arrayh]h gpio_array}(hjPhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjMubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjRmodnameN classnameNjj)}j]jc.gpiod_set_array_valueasbuh1hhj.ubj@)}(h h]h }(hjnhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hj.ubj)}(hjh]h*}(hj|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.ubjW)}(h array_infoh]h array_info}(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhj.ubeh}(h]h ]h"]h$]h&]noemphjnjouh1jhjZubj)}(hunsigned long *value_bitmaph](j)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj@)}(h h]h }(hjhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjubj)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj@)}(h h]h }(hj́hhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjubj)}(hjh]h*}(hjځhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjW)}(h value_bitmaph]h value_bitmap}(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjubeh}(h]h ]h"]h$]h&]noemphjnjouh1jhjZubeh}(h]h ]h"]h$]h&]jnjouh1jhj!hhhj3hMEubeh}(h]h ]h"]h$]h&]jnjojvuh1j'jwjxhjhhhj3hMEubah}(h]jah ](j|j}eh"]h$]h&]jj)jhuh1j!hj3hMEhjhhubj)}(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.chMEhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhj3hMEubeh}(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 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)}(hj3h]h Parameters}(hj5hhhNhNubah}(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.chMIhj-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 )}(hjRh]hunsigned int array_size}(hjThhhNhNubah}(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.chMFhjLubj")}(hhh]h)}(h9number of elements in the descriptor array / value bitmaph]h9number of elements in the descriptor array / value bitmap}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjghMFhjhubah}(h]h ]h"]h$]h&]uh1j!hjLubeh}(h]h ]h"]h$]h&]uh1jhjghMFhjIubj)}(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.chMGhjubj")}(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&]uh1hhjhMGhjubah}(h]h ]h"]h$]h&]uh1j!hjubeh}(h]h ]h"]h$]h&]uh1jhjhMGhjIubj)}(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.chMHhjubj")}(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قhMHhjڂubah}(h]h ]h"]h$]h&]uh1j!hjubeh}(h]h ]h"]h$]h&]uh1jhjقhMHhjIubj)}(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.chMIhjubj")}(hhh]h)}(hbitmap of values to assignh]hbitmap of values to assign}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMIhjubah}(h]h ]h"]h$]h&]uh1j!hjubeh}(h]h ]h"]h$]h&]uh1jhjhMIhjIubeh}(h]h ]h"]h$]h&]uh1jhj-ubh)}(h**Description**h]j)}(hj8h]h Description}(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.chMKhj-ubh)}(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.}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMJhj-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.chMMhj-ubh)}(h **Return**h]j)}(hjnh]hReturn}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1jhjlubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMPhj-ubh)}(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.chMQhj-ubeh}(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}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMbubj@)}(h h]h }(hjƒhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjhhhjhMbubjQ)}(hgpiod_cansleeph]jW)}(hgpiod_cansleeph]hgpiod_cansleep}(hjԃhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjЃubah}(h]h ](jijjeh"]h$]h&]jnjouh1jPhjhhhjhMbubj)}(h(const struct gpio_desc *desc)h]j)}(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}(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]j)}jjփsbc.gpiod_cansleepasbuh1hhjubj@)}(h h]h }(hjIhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjubj)}(hjh]h*}(hjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjW)}(hdesch]hdesc}(hjdhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjubeh}(h]h ]h"]h$]h&]noemphjnjouh1jhjubah}(h]h ]h"]h$]h&]jnjouh1jhjhhhjhMbubeh}(h]h ]h"]h$]h&]jnjojvuh1j'jwjxhjhhhjhMbubah}(h]jah ](j|j}eh"]h$]h&]jj)jhuh1j!hjhMbhjhhubj)}(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.chMbhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMbubeh}(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}(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.chMfhjubj)}(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.chMchjɄubj")}(hhh]h)}(h gpio to checkh]h gpio to check}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMchjubah}(h]h ]h"]h$]h&]uh1j!hjɄubeh}(h]h ]h"]h$]h&]uh1jhjhMchjƄubah}(h]h ]h"]h$]h&]uh1jhjubh)}(h **Return**h]j)}(hj h]hReturn}(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.chMehjubh)}(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.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMehjubeh}(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}(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKhhh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMpubj@)}(h h]h }(hj^hhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjKhhhj]hMpubjQ)}(hgpiod_set_consumer_nameh]jW)}(hgpiod_set_consumer_nameh]hgpiod_set_consumer_name}(hjphhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjlubah}(h]h ](jijjeh"]h$]h&]jnjouh1jPhjKhhhj]hMpubj)}(h*(struct gpio_desc *desc, const char *name)h](j)}(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]j)}jjrsbc.gpiod_set_consumer_nameasbuh1hhjubj@)}(h h]h }(hjʅhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjubj)}(hjh]h*}(hj؅hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjW)}(hdesch]hdesc}(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjubeh}(h]h ]h"]h$]h&]noemphjnjouh1jhjubj)}(hconst char *nameh](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&]uh1jhjubj@)}(h h]h }(hj'hhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjubj)}(hjh]h*}(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjW)}(hnameh]hname}(hjBhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjubeh}(h]h ]h"]h$]h&]noemphjnjouh1jhjubeh}(h]h ]h"]h$]h&]jnjouh1jhjKhhhj]hMpubeh}(h]h ]h"]h$]h&]jnjojvuh1j'jwjxhjGhhhj]hMpubah}(h]jBah ](j|j}eh"]h$]h&]jj)jhuh1j!hj]hMphjDhhubj)}(hhh]h)}(h(set the consumer name for the descriptorh]h(set the consumer name for the descriptor}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMphjihhubah}(h]h ]h"]h$]h&]uh1jhjDhhhj]hMpubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhhhNhNubj)}(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.chMthjubj)}(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.chMqhjubj")}(hhh]h)}(h gpio to set the consumer name onh]h gpio to set the consumer name on}(hjƆhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj†hMqhjÆubah}(h]h ]h"]h$]h&]uh1j!hjubeh}(h]h ]h"]h$]h&]uh1jhj†hMqhjubj)}(h+``const char *name`` the new consumer name 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&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMrhjubj")}(hhh]h)}(hthe new consumer nameh]hthe new consumer name}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMrhjubah}(h]h ]h"]h$]h&]uh1j!hjubeh}(h]h ]h"]h$]h&]uh1jhjhMrhjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h **Return**h]j)}(hj!h]hReturn}(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.chMthjubh)}(h+0 on success, or negative errno on failure.h]h+0 on success, or negative errno on failure.}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMthjubeh}(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}(hjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbhhh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMubj@)}(h h]h }(hjuhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjbhhhjthMubjQ)}(h gpiod_to_irqh]jW)}(h gpiod_to_irqh]h gpiod_to_irq}(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjubah}(h]h ](jijjeh"]h$]h&]jnjouh1jPhjbhhhjthMubj)}(h(const struct gpio_desc *desc)h]j)}(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}(hj܇hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjهubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjއmodnameN classnameNjj)}j]j)}jjsbc.gpiod_to_irqasbuh1hhjubj@)}(h h]h }(hjhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjubj)}(hjh]h*}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjW)}(hdesch]hdesc}(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjubeh}(h]h ]h"]h$]h&]noemphjnjouh1jhjubah}(h]h ]h"]h$]h&]jnjouh1jhjbhhhjthMubeh}(h]h ]h"]h$]h&]jnjojvuh1j'jwjxhj^hhhjthMubah}(h]jYah ](j|j}eh"]h$]h&]jj)jhuh1j!hjthMhj[hhubj)}(hhh]h)}(h&return the IRQ corresponding to a GPIOh]h&return the IRQ corresponding to a GPIO}(hjAhhhNhNubah}(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[hhhjthMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjYjjYjjjuh1jhhhhhNhNubj)}(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)}(hjch]h Parameters}(hjehhhNhNubah}(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.chMhj]ubj)}(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 )}(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.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&]uh1jhjhMhjyubah}(h]h ]h"]h$]h&]uh1jhj]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)}(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.chMhj]ubeh}(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}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhh\/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_lock_as_irqh]jW)}(hgpiochip_lock_as_irqh]hgpiochip_lock_as_irq}(hj#hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjubah}(h]h ](jijjeh"]h$]h&]jnjouh1jPhjhhhjhMubj)}(h+(struct gpio_chip *gc, unsigned int offset)h](j)}(hstruct gpio_chip *gch](j.)}(hj1h]hstruct}(hj?hhhNhNubah}(h]h ]j:ah"]h$]h&]uh1j-hj;ubj@)}(h h]h }(hjLhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hj;ubh)}(hhh]jW)}(h gpio_chiph]h gpio_chip}(hj]hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjZubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj_modnameN classnameNjj)}j]j)}jj%sbc.gpiochip_lock_as_irqasbuh1hhj;ubj@)}(h h]h }(hj}hhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hj;ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;ubjW)}(hgch]hgc}(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhj;ubeh}(h]h ]h"]h$]h&]noemphjnjouh1jhj7ubj)}(hunsigned int offseth](j)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj@)}(h h]h }(hjhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjubj)}(hinth]hint}(hj͉hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj@)}(h h]h }(hjۉhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjubjW)}(hoffseth]hoffset}(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjubeh}(h]h ]h"]h$]h&]noemphjnjouh1jhj7ubeh}(h]h ]h"]h$]h&]jnjouh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jnjojvuh1j'jwjxhjhhhjhMubah}(h]jah ](j|j}eh"]h$]h&]jj)jhuh1j!hjhMhjhhubj)}(hhh]h)}(hlock a GPIO to be used as IRQh]hlock a GPIO to be 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&]jjjj+jj+jjjuh1jhhhhhNhNubj)}(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)}(hj5h]h Parameters}(hj7hhhNhNubah}(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.chMhj/ubj)}(hhh](j)}(h>``struct gpio_chip *gc`` the chip the GPIO to lock belongs to h](j)}(h``struct gpio_chip *gc``h]j )}(hjTh]hstruct gpio_chip *gc}(hjVhhhNhNubah}(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.chMhjNubj")}(hhh]h)}(h$the chip the GPIO to lock belongs toh]h$the chip the GPIO to lock belongs to}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjihMhjjubah}(h]h ]h"]h$]h&]uh1j!hjNubeh}(h]h ]h"]h$]h&]uh1jhjihMhjKubj)}(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}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j!hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjKubeh}(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.chMhj/ubh)}(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.}(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)}(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)}(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.chMhj/ubeh}(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}(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0hhh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMubj@)}(h h]h }(hjChhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hj0hhhjBhMubjQ)}(hgpiochip_unlock_as_irqh]jW)}(hgpiochip_unlock_as_irqh]hgpiochip_unlock_as_irq}(hjUhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjQubah}(h]h ](jijjeh"]h$]h&]jnjouh1jPhj0hhhjBhMubj)}(h+(struct gpio_chip *gc, unsigned int offset)h](j)}(hstruct gpio_chip *gch](j.)}(hj1h]hstruct}(hjqhhhNhNubah}(h]h ]j:ah"]h$]h&]uh1j-hjmubj@)}(h h]h }(hj~hhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjmubh)}(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)}jjWsbc.gpiochip_unlock_as_irqasbuh1hhjmubj@)}(h h]h }(hjhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjmubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmubjW)}(hgch]hgc}(hjʋhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjmubeh}(h]h ]h"]h$]h&]noemphjnjouh1jhjiubj)}(hunsigned int offseth](j)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjߋubj@)}(h h]h }(hjhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjߋubj)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjߋubj@)}(h h]h }(hj hhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjߋubjW)}(hoffseth]hoffset}(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjߋubeh}(h]h ]h"]h$]h&]noemphjnjouh1jhjiubeh}(h]h ]h"]h$]h&]jnjouh1jhj0hhhjBhMubeh}(h]h ]h"]h$]h&]jnjojvuh1j'jwjxhj,hhhjBhMubah}(h]j'ah ](j|j}eh"]h$]h&]jj)jhuh1j!hjBhMhj)hhubj)}(hhh]h)}(hunlock a GPIO used as IRQh]hunlock a GPIO used as IRQ}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMhjBhhubah}(h]h ]h"]h$]h&]uh1jhj)hhhjBhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj]jj]jjjuh1jhhhhhNhNubj)}(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)}(hjgh]h Parameters}(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.chMhjaubj)}(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}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j!hjubeh}(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}(hj،hhhNhNubah}(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&]uh1jhjaubh)}(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.chMhjaubh)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMhjaubeh}(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}(hj?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;hhh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMSubj@)}(h h]h }(hjNhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hj;hhhjMhMSubjQ)}(hgpiod_get_raw_value_cansleeph]jW)}(hgpiod_get_raw_value_cansleeph]hgpiod_get_raw_value_cansleep}(hj`hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhj\ubah}(h]h ](jijjeh"]h$]h&]jnjouh1jPhj;hhhjMhMSubj)}(h(const struct gpio_desc *desc)h]j)}(hconst struct gpio_desc *desch](j.)}(hj"h]hconst}(hj|hhhNhNubah}(h]h ]j:ah"]h$]h&]uh1j-hjxubj@)}(h h]h }(hjhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjxubj.)}(hj1h]hstruct}(hjhhhNhNubah}(h]h ]j:ah"]h$]h&]uh1j-hjxubj@)}(h h]h }(hjhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjxubh)}(hhh]jW)}(h gpio_desch]h gpio_desc}(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]j)}jjbsbc.gpiod_get_raw_value_cansleepasbuh1hhjxubj@)}(h h]h }(hjՍhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjxubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjxubjW)}(hdesch]hdesc}(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjxubeh}(h]h ]h"]h$]h&]noemphjnjouh1jhjtubah}(h]h ]h"]h$]h&]jnjouh1jhj;hhhjMhMSubeh}(h]h ]h"]h$]h&]jnjojvuh1j'jwjxhj7hhhjMhMSubah}(h]j2ah ](j|j}eh"]h$]h&]jj)jhuh1j!hjMhMShj4hhubj)}(hhh]h)}(hreturn a gpio's raw valueh]hreturn a gpio’s raw value}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMShjhhubah}(h]h ]h"]h$]h&]uh1jhj4hhhjMhMSubeh}(h]h ](jfunctioneh"]h$]h&]jjjj2jj2jjjuh1jhhhhhNhNubj)}(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)}(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.chMWhj6ubj)}(hhh]j)}(hC``const struct gpio_desc *desc`` gpio whose value will be returned 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 hjYubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMThjUubj")}(hhh]h)}(h!gpio whose value will be returnedh]h!gpio whose value will be returned}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1hhjphMThjqubah}(h]h ]h"]h$]h&]uh1j!hjUubeh}(h]h ]h"]h$]h&]uh1jhjphMThjRubah}(h]h ]h"]h$]h&]uh1jhj6ubh)}(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.chMVhj6ubh)}(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.chMVhj6ubh)}(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.chMYhj6ubh)}(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.chMYhj6ubeh}(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}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMeubj@)}(h h]h }(hjhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjhhhjhMeubjQ)}(hgpiod_get_value_cansleeph]jW)}(hgpiod_get_value_cansleeph]hgpiod_get_value_cansleep}(hj#hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjubah}(h]h ](jijjeh"]h$]h&]jnjouh1jPhjhhhjhMeubj)}(h(const struct gpio_desc *desc)h]j)}(hconst struct gpio_desc *desch](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.)}(hj1h]hstruct}(hjZhhhNhNubah}(h]h ]j:ah"]h$]h&]uh1j-hj;ubj@)}(h h]h }(hjghhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hj;ubh)}(hhh]jW)}(h gpio_desch]h gpio_desc}(hjxhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjuubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjzmodnameN classnameNjj)}j]j)}jj%sbc.gpiod_get_value_cansleepasbuh1hhj;ubj@)}(h h]h }(hjhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hj;ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;ubjW)}(hdesch]hdesc}(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhj;ubeh}(h]h ]h"]h$]h&]noemphjnjouh1jhj7ubah}(h]h ]h"]h$]h&]jnjouh1jhjhhhjhMeubeh}(h]h ]h"]h$]h&]jnjojvuh1j'jwjxhjhhhjhMeubah}(h]jah ](j|j}eh"]h$]h&]jj)jhuh1j!hjhMehjhhubj)}(hhh]h)}(hreturn a gpio's valueh]hreturn 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.chMehjڏhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMeubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhhhNhNubj)}(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)}(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.chMihjubj)}(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}(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.chMfhjubj")}(hhh]h)}(h!gpio whose value will be returnedh]h!gpio whose value will be returned}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj3hMfhj4ubah}(h]h ]h"]h$]h&]uh1j!hjubeh}(h]h ]h"]h$]h&]uh1jhj3hMfhjubah}(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.chMhhjubh)}(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.}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMhhjubh)}(h**Description**h]j)}(hjh]h Description}(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.chMkhjubh)}(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.chMkhjubeh}(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}(hjŐhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhh\/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}(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjubah}(h]h ](jijjeh"]h$]h&]jnjouh1jPhjhhhjӐhMubj)}(ht(unsigned int array_size, struct gpio_desc **desc_array, struct gpio_array *array_info, unsigned long *value_bitmap)h](j)}(hunsigned int array_sizeh](j)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj@)}(h h]h }(hjhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjubj)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj@)}(h h]h }(hj,hhhNhNubah}(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&]noemphjnjouh1jhjubj)}(hstruct gpio_desc **desc_arrayh](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 gpio_desch]h gpio_desc}(hjqhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjnubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjsmodnameN classnameNjj)}j]j)}jjsb$c.gpiod_get_raw_array_value_cansleepasbuh1hhjOubj@)}(h h]h }(hjhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjOubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOubjW)}(h desc_arrayh]h desc_array}(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjOubeh}(h]h ]h"]h$]h&]noemphjnjouh1jhjubj)}(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}(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]j$c.gpiod_get_raw_array_value_cansleepasbuh1hhjΑubj@)}(h h]h }(hjhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjΑubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjΑubjW)}(h array_infoh]h array_info}(hj)hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjΑubeh}(h]h ]h"]h$]h&]noemphjnjouh1jhjubj)}(hunsigned long *value_bitmaph](j)}(hunsignedh]hunsigned}(hjBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>ubj@)}(h h]h }(hjPhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hj>ubj)}(hlongh]hlong}(hj^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>ubj@)}(h h]h }(hjlhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hj>ubj)}(hjh]h*}(hjzhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>ubjW)}(h value_bitmaph]h value_bitmap}(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhj>ubeh}(h]h ]h"]h$]h&]noemphjnjouh1jhjubeh}(h]h ]h"]h$]h&]jnjouh1jhjhhhjӐ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}(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&]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 )}(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&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j!hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(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+h]hstruct gpio_desc **desc_array}(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)}(h3array of GPIO descriptors whose values will be readh]h3array of GPIO descriptors whose values will be read}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj@hMhjAubah}(h]h ]h"]h$]h&]uh1j!hj%ubeh}(h]h ]h"]h$]h&]uh1jhj@hMhjubj)}(h^``struct gpio_array *array_info`` information on applicability of fast bitmap processing path h](j)}(h!``struct gpio_array *array_info``h]j )}(hjdh]hstruct gpio_array *array_info}(hjfhhhNhNubah}(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.chMhj^ubj")}(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&]uh1hhjyhMhjzubah}(h]h ]h"]h$]h&]uh1j!hj^ubeh}(h]h ]h"]h$]h&]uh1jhjyhMhjubj)}(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&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j!hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubeh}(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.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.}(hjhhhNhNubah}(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.}(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&]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, 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}(hjShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOhhh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMubj@)}(h h]h }(hjbhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjOhhhjahMubjQ)}(hgpiod_get_array_value_cansleeph]jW)}(hgpiod_get_array_value_cansleeph]hgpiod_get_array_value_cansleep}(hjthhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjpubah}(h]h ](jijjeh"]h$]h&]jnjouh1jPhjOhhhjahMubj)}(ht(unsigned int array_size, struct gpio_desc **desc_array, struct gpio_array *array_info, unsigned long *value_bitmap)h](j)}(hunsigned int array_sizeh](j)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj@)}(h h]h }(hjhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjubj)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj@)}(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&]noemphjnjouh1jhjubj)}(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}(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]j)}jjvsb c.gpiod_get_array_value_cansleepasbuh1hhjݔubj@)}(h h]h }(hjhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjݔubj)}(hjh]h*}(hj-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjݔubj)}(hjh]h*}(hj:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjݔubjW)}(h desc_arrayh]h desc_array}(hjGhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjݔubeh}(h]h ]h"]h$]h&]noemphjnjouh1jhjubj)}(hstruct gpio_array *array_infoh](j.)}(hj1h]hstruct}(hj`hhhNhNubah}(h]h ]j:ah"]h$]h&]uh1j-hj\ubj@)}(h h]h }(hjmhhhNhNubah}(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 reftargetjmodnameN classnameNjj)}j]j c.gpiod_get_array_value_cansleepasbuh1hhj\ubj@)}(h h]h }(hjhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hj\ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\ubjW)}(h array_infoh]h array_info}(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhj\ubeh}(h]h ]h"]h$]h&]noemphjnjouh1jhjubj)}(hunsigned long *value_bitmaph](j)}(hunsignedh]hunsigned}(hjЕhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj̕ubj@)}(h h]h }(hjޕhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hj̕ubj)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj̕ubj@)}(h h]h }(hjhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hj̕ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj̕ubjW)}(h value_bitmaph]h value_bitmap}(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhj̕ubeh}(h]h ]h"]h$]h&]noemphjnjouh1jhjubeh}(h]h ]h"]h$]h&]jnjouh1jhjOhhhjahMubeh}(h]h ]h"]h$]h&]jnjojvuh1j'jwjxhjKhhhjahMubah}(h]jFah ](j|j}eh"]h$]h&]jj)jhuh1j!hjahMhjHhhubj)}(hhh]h)}(h"read values from an array of GPIOsh]h"read 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.chMhj<hhubah}(h]h ]h"]h$]h&]uh1jhjHhhhjahMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjWjjWjjjuh1jhhhhhNhNubj)}(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)}(hjah]h Parameters}(hjchhhNhNubah}(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 )}(hjh]hunsigned int array_size}(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.chMhjzubj")}(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!hjzubeh}(h]h ]h"]h$]h&]uh1jhjhMhjwubj)}(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.chMhjubj")}(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!hjubeh}(h]h ]h"]h$]h&]uh1jhjΖhMhjwubj)}(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&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j!hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjwubj)}(h@``unsigned long *value_bitmap`` bitmap to store the read values h](j)}(h``unsigned long *value_bitmap``h]j )}(hj+h]hunsigned long *value_bitmap}(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)}(hbitmap to store the read valuesh]hbitmap to store the read values}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj@hMhjAubah}(h]h ]h"]h$]h&]uh1j!hj%ubeh}(h]h ]h"]h$]h&]uh1jhj@hMhjwubeh}(h]h ]h"]h$]h&]uh1jhj[ubh)}(h**Description**h]j)}(hjfh]h Description}(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)}(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.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.}(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)}(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.chMhj[ubeh}(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}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjݗ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ݗhhhjhMubjQ)}(hgpiod_set_raw_value_cansleeph]jW)}(hgpiod_set_raw_value_cansleeph]hgpiod_set_raw_value_cansleep}(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjubah}(h]h ](jijjeh"]h$]h&]jnjouh1jPhjݗhhhjhMubj)}(h#(struct gpio_desc *desc, int value)h](j)}(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}(hj<hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhj9ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj>modnameN classnameNjj)}j]j)}jjsbc.gpiod_set_raw_value_cansleepasbuh1hhjubj@)}(h h]h }(hj\hhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjubj)}(hjh]h*}(hjjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjW)}(hdesch]hdesc}(hjwhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjubeh}(h]h ]h"]h$]h&]noemphjnjouh1jhjubj)}(h int valueh](j)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj@)}(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&]noemphjnjouh1jhjubeh}(h]h ]h"]h$]h&]jnjouh1jhjݗhhhjhMubeh}(h]h ]h"]h$]h&]jnjojvuh1j'jwjxhjٗhhhjhMubah}(h]jԗah ](j|j}eh"]h$]h&]jj)jhuh1j!hjhMhj֗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֗hhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhhhNhNubj)}(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)}(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_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}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj,hMhj-ubah}(h]h ]h"]h$]h&]uh1j!hjubeh}(h]h ]h"]h$]h&]uh1jhj,hMhjubj)}(h``int value`` value to assign h](j)}(h ``int value``h]j )}(hjPh]h int value}(hjRhhhNhNubah}(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.chMhjJubj")}(hhh]h)}(hvalue to assignh]hvalue to assign}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1hhjehMhjfubah}(h]h ]h"]h$]h&]uh1j!hjJubeh}(h]h ]h"]h$]h&]uh1jhjehMhjubeh}(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)}(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.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}(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)}(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.chMhjubeh}(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}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhh\/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_set_value_cansleeph]jW)}(hgpiod_set_value_cansleeph]hgpiod_set_value_cansleep}(hj'hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhj#ubah}(h]h ](jijjeh"]h$]h&]jnjouh1jPhjhhhjhMubj)}(h#(struct gpio_desc *desc, int value)h](j)}(hstruct gpio_desc *desch](j.)}(hj1h]hstruct}(hjChhhNhNubah}(h]h ]j:ah"]h$]h&]uh1j-hj?ubj@)}(h h]h }(hjPhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hj?ubh)}(hhh]jW)}(h gpio_desch]h gpio_desc}(hjahhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhj^ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjcmodnameN classnameNjj)}j]j)}jj)sbc.gpiod_set_value_cansleepasbuh1hhj?ubj@)}(h h]h }(hjhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hj?ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj?ubjW)}(hdesch]hdesc}(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhj?ubeh}(h]h ]h"]h$]h&]noemphjnjouh1jhj;ubj)}(h int valueh](j)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj@)}(h h]h }(hjÚhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjubjW)}(hvalueh]hvalue}(hjњhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjubeh}(h]h ]h"]h$]h&]noemphjnjouh1jhj;ubeh}(h]h ]h"]h$]h&]jnjouh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jnjojvuh1j'jwjxhjhhhjhMubah}(h]jah ](j|j}eh"]h$]h&]jj)jhuh1j!hjhMhjhhubj)}(hhh]h)}(hassign a gpio's valueh]hassign a gpio’s value}(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)}(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)}(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_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.chMhj6ubj")}(hhh]h)}(h!gpio whose value will be assignedh]h!gpio whose value will be assigned}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjQhMhjRubah}(h]h ]h"]h$]h&]uh1j!hj6ubeh}(h]h ]h"]h$]h&]uh1jhjQhMhj3ubj)}(h``int value`` value to assign h](j)}(h ``int value``h]j )}(hjuh]h int value}(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.chMhjoubj")}(hhh]h)}(hvalue to assignh]hvalue to assign}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j!hjoubeh}(h]h ]h"]h$]h&]uh1jhjhMhj3ubeh}(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)}(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}(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.}(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&]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, negative error number on failure.h]h/0 on success, negative error number 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_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}(hj+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'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'hhhj9hMubjQ)}(h"gpiod_set_raw_array_value_cansleeph]jW)}(h"gpiod_set_raw_array_value_cansleeph]h"gpiod_set_raw_array_value_cansleep}(hjLhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjHubah}(h]h ](jijjeh"]h$]h&]jnjouh1jPhj'hhhj9hMubj)}(ht(unsigned int array_size, struct gpio_desc **desc_array, struct gpio_array *array_info, unsigned long *value_bitmap)h](j)}(hunsigned int array_sizeh](j)}(hunsignedh]hunsigned}(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdubj@)}(h h]h }(hjvhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjdubj)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdubj@)}(h h]h }(hjhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjdubjW)}(h array_sizeh]h array_size}(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjdubeh}(h]h ]h"]h$]h&]noemphjnjouh1jhj`ubj)}(hstruct gpio_desc **desc_arrayh](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}(hjלhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjԜubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjٜmodnameN classnameNjj)}j]j)}jjNsb$c.gpiod_set_raw_array_value_cansleepasbuh1hhjubj@)}(h h]h }(hjhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjW)}(h desc_arrayh]h desc_array}(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjubeh}(h]h ]h"]h$]h&]noemphjnjouh1jhj`ubj)}(hstruct gpio_array *array_infoh](j.)}(hj1h]hstruct}(hj8hhhNhNubah}(h]h ]j:ah"]h$]h&]uh1j-hj4ubj@)}(h h]h }(hjEhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hj4ubh)}(hhh]jW)}(h gpio_arrayh]h gpio_array}(hjVhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjSubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjXmodnameN classnameNjj)}j]j$c.gpiod_set_raw_array_value_cansleepasbuh1hhj4ubj@)}(h h]h }(hjthhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hj4ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4ubjW)}(h array_infoh]h array_info}(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhj4ubeh}(h]h ]h"]h$]h&]noemphjnjouh1jhj`ubj)}(hunsigned long *value_bitmaph](j)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj@)}(h h]h }(hjhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjubj)}(hlongh]hlong}(hjĝhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj@)}(h h]h }(hjҝhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjW)}(h value_bitmaph]h value_bitmap}(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjubeh}(h]h ]h"]h$]h&]noemphjnjouh1jhj`ubeh}(h]h ]h"]h$]h&]jnjouh1jhj'hhhj9hMubeh}(h]h ]h"]h$]h&]jnjojvuh1j'jwjxhj#hhhj9hMubah}(h]jah ](j|j}eh"]h$]h&]jj)jhuh1j!hj9hMhj hhubj)}(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&]uh1jhj hhhj9hMubeh}(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 is to be called from contexts that can sleep. **Return** 0 on success, or negative errno on failure.h](h)}(h**Parameters**h]j)}(hj9h]h Parameters}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj7ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMhj3ubj)}(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 )}(hjXh]hunsigned int array_size}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjVubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMhjRubj")}(hhh]h)}(h9number of elements in the descriptor array / value bitmaph]h9number of elements in the descriptor array / value bitmap}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjmhMhjnubah}(h]h ]h"]h$]h&]uh1j!hjRubeh}(h]h ]h"]h$]h&]uh1jhjmhMhjOubj)}(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&]uh1jhjhMhjOubj)}(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.chMhjĞubj")}(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&]uh1hhjߞhMhjubah}(h]h ]h"]h$]h&]uh1j!hjĞubeh}(h]h ]h"]h$]h&]uh1jhjߞhMhjOubj)}(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&]uh1jhjhMhjOubeh}(h]h ]h"]h$]h&]uh1jhj3ubh)}(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.chMhj3ubh)}(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.}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMhj3ubh)}(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.}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMhj3ubh)}(h **Return**h]j)}(hjth]hReturn}(hjvhhhNhNubah}(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.chMhj3ubh)}(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.chMhj3ubeh}(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&]uh1jhjhhh\/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)}(hgpiod_set_array_value_cansleeph]jW)}(hgpiod_set_array_value_cansleeph]hgpiod_set_array_value_cansleep}(hjڟhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhj֟ubah}(h]h ](jijjeh"]h$]h&]jnjouh1jPhjhhhjǟhMubj)}(ht(unsigned int array_size, struct gpio_desc **desc_array, struct gpio_array *array_info, unsigned long *value_bitmap)h](j)}(hunsigned int array_sizeh](j)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj@)}(h h]h }(hjhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjubj)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj@)}(h h]h }(hj hhhNhNubah}(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&]noemphjnjouh1jhjubj)}(hstruct gpio_desc **desc_arrayh](j.)}(hj1h]hstruct}(hjGhhhNhNubah}(h]h ]j:ah"]h$]h&]uh1j-hjCubj@)}(h h]h }(hjThhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjCubh)}(hhh]jW)}(h gpio_desch]h gpio_desc}(hjehhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjbubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjgmodnameN classnameNjj)}j]j)}jjܟsb c.gpiod_set_array_value_cansleepasbuh1hhjCubj@)}(h h]h }(hjhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjCubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjCubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjCubjW)}(h desc_arrayh]h desc_array}(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjCubeh}(h]h ]h"]h$]h&]noemphjnjouh1jhjubj)}(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}(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]j c.gpiod_set_array_value_cansleepasbuh1hhj ubj@)}(h h]h }(hjhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hj ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubjW)}(h array_infoh]h array_info}(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhj ubeh}(h]h ]h"]h$]h&]noemphjnjouh1jhjubj)}(hunsigned long *value_bitmaph](j)}(hunsignedh]hunsigned}(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2ubj@)}(h h]h }(hjDhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hj2ubj)}(hlongh]hlong}(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2ubj@)}(h h]h }(hj`hhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hj2ubj)}(hjh]h*}(hjnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2ubjW)}(h value_bitmaph]h value_bitmap}(hj{hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhj2ubeh}(h]h ]h"]h$]h&]noemphjnjouh1jhjubeh}(h]h ]h"]h$]h&]jnjouh1jhjhhhjǟhMubeh}(h]h ]h"]h$]h&]jnjojvuh1j'jwjxhjhhhjǟhMubah}(h]jah ](j|j}eh"]h$]h&]jj)jhuh1j!hjǟhMhjhhubj)}(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&]uh1jhjhhhjǟhMubeh}(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)}(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.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}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j!hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjݡubj)}(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}(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)}(h7array of GPIO descriptors whose values will be assignedh]h7array of GPIO descriptors whose values will be assigned}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj4hMhj5ubah}(h]h ]h"]h$]h&]uh1j!hjubeh}(h]h ]h"]h$]h&]uh1jhj4hMhjݡ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 )}(hjXh]hstruct gpio_array *array_info}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjVubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMhjRubj")}(hhh]h)}(h;information on applicability of fast bitmap processing pathh]h;information on applicability of fast bitmap processing path}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjmhMhjnubah}(h]h ]h"]h$]h&]uh1j!hjRubeh}(h]h ]h"]h$]h&]uh1jhjmhMhjݡubj)}(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&]uh1jhjhMhjݡubeh}(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.}(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)}(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.}(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_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}(hjGhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjChhh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chM3ubj@)}(h h]h }(hjVhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjChhhjUhM3ubjQ)}(hgpiod_add_lookup_tableh]jW)}(hgpiod_add_lookup_tableh]hgpiod_add_lookup_table}(hjhhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjdubah}(h]h ](jijjeh"]h$]h&]jnjouh1jPhjChhhjUhM3ubj)}(h"(struct gpiod_lookup_table *table)h]j)}(h struct gpiod_lookup_table *tableh](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)}(hgpiod_lookup_tableh]hgpiod_lookup_table}(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]j)}jjjsbc.gpiod_add_lookup_tableasbuh1hhjubj@)}(h h]h }(hj£hhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjubj)}(hjh]h*}(hjУhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjW)}(htableh]htable}(hjݣhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjubeh}(h]h ]h"]h$]h&]noemphjnjouh1jhj|ubah}(h]h ]h"]h$]h&]jnjouh1jhjChhhjUhM3ubeh}(h]h ]h"]h$]h&]jnjojvuh1j'jwjxhj?hhhjUhM3ubah}(h]j:ah ](j|j}eh"]h$]h&]jj)jhuh1j!hjUhM3hj<hhubj)}(hhh]h)}(hregister GPIO device consumersh]hregister GPIO device consumers}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chM3hjhhubah}(h]h ]h"]h$]h&]uh1jhj<hhhjUhM3ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhhhNhNubj)}(hU**Parameters** ``struct gpiod_lookup_table *table`` table of consumers to registerh](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.chM7hj#ubj)}(hhh]j)}(hC``struct gpiod_lookup_table *table`` table of consumers to registerh](j)}(h$``struct gpiod_lookup_table *table``h]j )}(hjHh]h struct gpiod_lookup_table *table}(hjJhhhNhNubah}(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.chM9hjBubj")}(hhh]h)}(htable of consumers to registerh]htable of consumers to register}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chM4hj^ubah}(h]h ]h"]h$]h&]uh1j!hjBubeh}(h]h ]h"]h$]h&]uh1jhj]hM9hj?ubah}(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&]uh1jhjhhh\/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)}(hgpiod_remove_lookup_tableh]jW)}(hgpiod_remove_lookup_tableh]hgpiod_remove_lookup_table}(hjähhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjubah}(h]h ](jijjeh"]h$]h&]jnjouh1jPhjhhhjhM=ubj)}(h"(struct gpiod_lookup_table *table)h]j)}(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]j)}jjŤsbc.gpiod_remove_lookup_tableasbuh1hhjۤubj@)}(h h]h }(hjhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjۤubj)}(hjh]h*}(hj+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjۤubjW)}(htableh]htable}(hj8hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjۤubeh}(h]h ]h"]h$]h&]noemphjnjouh1jhjפubah}(h]h ]h"]h$]h&]jnjouh1jhjhhhjhM=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}(hjbhhhNhNubah}(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&]uh1jhjhhhjhM=ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjzjjzjjjuh1jhhhhhNhNubj)}(hW**Parameters** ``struct gpiod_lookup_table *table`` table of consumers to unregisterh](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.chMAhj~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.chMChjubj")}(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&]uh1jhjhMChjubah}(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}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMMubj@)}(h h]h }(hj hhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjhhhj hMMubjQ)}(hgpiod_add_hogsh]jW)}(hgpiod_add_hogsh]hgpiod_add_hogs}(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjubah}(h]h ](jijjeh"]h$]h&]jnjouh1jPhjhhhj hMMubj)}(h(struct gpiod_hog *hogs)h]j)}(hstruct gpiod_hog *hogsh](j.)}(hj1h]hstruct}(hj:hhhNhNubah}(h]h ]j:ah"]h$]h&]uh1j-hj6ubj@)}(h h]h }(hjGhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hj6ubh)}(hhh]jW)}(h gpiod_hogh]h gpiod_hog}(hjXhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjUubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjZmodnameN classnameNjj)}j]j)}jj sbc.gpiod_add_hogsasbuh1hhj6ubj@)}(h h]h }(hjxhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hj6ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6ubjW)}(hhogsh]hhogs}(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhj6ubeh}(h]h ]h"]h$]h&]noemphjnjouh1jhj2ubah}(h]h ]h"]h$]h&]jnjouh1jhjhhhj hMMubeh}(h]h ]h"]h$]h&]jnjojvuh1j'jwjxhjhhhj hMMubah}(h]jah ](j|j}eh"]h$]h&]jj)jhuh1j!hj hMMhjhhubj)}(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.chMMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhj hMMubeh}(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)}(hjߦh]h Parameters}(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.chMQhj٦ubj)}(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 )}(hjh]hstruct gpiod_hog *hogs}(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.chMShjubj")}(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}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMNhjubah}(h]h ]h"]h$]h&]uh1j!hjubeh}(h]h ]h"]h$]h&]uh1jhjhMShjubah}(h]h ]h"]h$]h&]uh1jhj٦ubeh}(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}(hjXhhhNhNubah}(h]h ]j:ah"]h$]h&]uh1j-hjThhh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMFubj@)}(h h]h }(hjfhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjThhhjehMFubh)}(hhh]jW)}(h gpio_desch]h gpio_desc}(hjwhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjtubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjymodnameN classnameNjj)}j]j)}jfwnode_gpiod_get_indexsbc.fwnode_gpiod_get_indexasbuh1hhjThhhjehMFubj@)}(h h]h }(hjhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjThhhjehMFubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjThhhjehMFubjQ)}(hfwnode_gpiod_get_indexh]jW)}(hjh]hfwnode_gpiod_get_index}(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjubah}(h]h ](jijjeh"]h$]h&]jnjouh1jPhjThhhjehMFubj)}(hh(struct fwnode_handle *fwnode, const char *con_id, int index, enum gpiod_flags flags, const char *label)h](j)}(hstruct fwnode_handle *fwnodeh](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 fwnode_handleh]h fwnode_handle}(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]jc.fwnode_gpiod_get_indexasbuh1hhjΧubj@)}(h h]h }(hjhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjΧubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjΧubjW)}(hfwnodeh]hfwnode}(hj)hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjΧubeh}(h]h ]h"]h$]h&]noemphjnjouh1jhjʧubj)}(hconst char *con_idh](j.)}(hj"h]hconst}(hjBhhhNhNubah}(h]h ]j:ah"]h$]h&]uh1j-hj>ubj@)}(h h]h }(hjOhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hj>ubj)}(hcharh]hchar}(hj]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>ubj@)}(h h]h }(hjkhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hj>ubj)}(hjh]h*}(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>ubjW)}(hcon_idh]hcon_id}(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhj>ubeh}(h]h ]h"]h$]h&]noemphjnjouh1jhjʧubj)}(h int indexh](j)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj@)}(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&]noemphjnjouh1jhjʧubj)}(henum gpiod_flags flagsh](j.)}(hjGXh]henum}(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)}(h gpiod_flagsh]h gpiod_flags}(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]jc.fwnode_gpiod_get_indexasbuh1hhjШubj@)}(h h]h }(hjhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjШubjW)}(hflagsh]hflags}(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjШubeh}(h]h ]h"]h$]h&]noemphjnjouh1jhjʧubj)}(hconst char *labelh](j.)}(hj"h]hconst}(hj7hhhNhNubah}(h]h ]j:ah"]h$]h&]uh1j-hj3ubj@)}(h h]h }(hjDhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hj3ubj)}(hcharh]hchar}(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3ubj@)}(h h]h }(hj`hhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hj3ubj)}(hjh]h*}(hjnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3ubjW)}(hlabelh]hlabel}(hj{hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhj3ubeh}(h]h ]h"]h$]h&]noemphjnjouh1jhjʧubeh}(h]h ]h"]h$]h&]jnjouh1jhjThhhjehMFubeh}(h]h ]h"]h$]h&]jnjojvuh1j'jwjxhjPhhhjehMFubah}(h]jKah ](j|j}eh"]h$]h&]jj)jhuh1j!hjehMFhjMhhubj)}(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.chMFhjhhubah}(h]h ]h"]h$]h&]uh1jhjMhhhjehMFubeh}(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)}(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.chMJhjubj)}(hhh](j)}(h=``struct fwnode_handle *fwnode`` handle of the firmware node 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&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMGhjubj")}(hhh]h)}(hhandle of the firmware nodeh]hhandle of the firmware node}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMGhjubah}(h]h ]h"]h$]h&]uh1j!hjubeh}(h]h ]h"]h$]h&]uh1jhjhMGhjݩ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}(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.chMHhjubj")}(hhh]h)}(h!function within the GPIO consumerh]h!function within the GPIO consumer}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj4hMHhj5ubah}(h]h ]h"]h$]h&]uh1j!hjubeh}(h]h ]h"]h$]h&]uh1jhj4hMHhjݩubj)}(h;``int index`` index of the GPIO to obtain for the consumer h](j)}(h ``int index``h]j )}(hjXh]h int index}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjVubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMIhjRubj")}(hhh]h)}(h,index of the GPIO to obtain for the consumerh]h,index of the GPIO to obtain for the consumer}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjmhMIhjnubah}(h]h ]h"]h$]h&]uh1j!hjRubeh}(h]h ]h"]h$]h&]uh1jhjmhMIhjݩubj)}(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.chMJhjubj")}(hhh]h)}(hGPIO initialization flagsh]hGPIO initialization flags}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMJhjubah}(h]h ]h"]h$]h&]uh1j!hjubeh}(h]h ]h"]h$]h&]uh1jhjhMJhjݩubj)}(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.chMKhjĪ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&]uh1hhjߪhMKhjubah}(h]h ]h"]h$]h&]uh1j!hjĪubeh}(h]h ]h"]h$]h&]uh1jhjߪhMKhjݩ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.chMMhjubh)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMLhjubh)}(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.}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMOhjubh)}(h*In case of error an ERR_PTR() is returned.h]h*In case of error an ERR_PTR() is returned.}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMThjubh)}(h **Return**h]j)}(hjJh]hReturn}(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.chMVhjubh)}(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 }(hj`hhhNhNubj)}(h **flags**h]hflags}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj`ubh.}(hj`hhhNhNubeh}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMThjubeh}(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&]uh1jhjhhh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMeubj@)}(h h]h }(hjhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjhhhjhMeubjQ)}(h gpiod_counth]jW)}(h gpiod_counth]h gpiod_count}(hj«hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjubah}(h]h ](jijjeh"]h$]h&]jnjouh1jPhjhhhjhMeubj)}(h((struct device *dev, const char *con_id)h](j)}(hstruct device *devh](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)}(hdeviceh]hdevice}(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]j)}jjīsb c.gpiod_countasbuh1hhjګubj@)}(h h]h }(hjhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjګubj)}(hjh]h*}(hj*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjګubjW)}(hdevh]hdev}(hj7hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjګubeh}(h]h ]h"]h$]h&]noemphjnjouh1jhj֫ubj)}(hconst char *con_idh](j.)}(hj"h]hconst}(hjPhhhNhNubah}(h]h ]j:ah"]h$]h&]uh1j-hjLubj@)}(h h]h }(hj]hhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjLubj)}(hcharh]hchar}(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjLubj@)}(h h]h }(hjyhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjLubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjLubjW)}(hcon_idh]hcon_id}(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjLubeh}(h]h ]h"]h$]h&]noemphjnjouh1jhj֫ubeh}(h]h ]h"]h$]h&]jnjouh1jhjhhhjhMeubeh}(h]h ]h"]h$]h&]jnjojvuh1j'jwjxhjhhhjhMeubah}(h]jah ](j|j}eh"]h$]h&]jj)jhuh1j!hjhMehjhhubj)}(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.chMehjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMeubeh}(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)}(hjh]h Parameters}(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.chMihjڬ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.chMfhjubj")}(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&]uh1hhjhMfhjubah}(h]h ]h"]h$]h&]uh1j!hjubeh}(h]h ]h"]h$]h&]uh1jhjhMfhjubj)}(h9``const char *con_id`` function within the GPIO consumer h](j)}(h``const char *con_id``h]j )}(hj8h]hconst char *con_id}(hj:hhhNhNubah}(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.chMghj2ubj")}(hhh]h)}(h!function within the GPIO consumerh]h!function within the GPIO consumer}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjMhMghjNubah}(h]h ]h"]h$]h&]uh1j!hj2ubeh}(h]h ]h"]h$]h&]uh1jhjMhMghjubeh}(h]h ]h"]h$]h&]uh1jhjڬubh)}(h **Return**h]j)}(hjsh]hReturn}(hjuhhhNhNubah}(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.chMihjڬubh)}(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.chMihjڬubeh}(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-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ŭhMubh)}(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)}j gpiod_getsb c.gpiod_getasbuh1hhjhhhjŭhMubj@)}(h h]h }(hjhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjhhhjŭhMubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjŭhMubjQ)}(h gpiod_geth]jW)}(hjh]h gpiod_get}(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjubah}(h]h ](jijjeh"]h$]h&]jnjouh1jPhjhhhjŭhMubj)}(h@(struct device *dev, const char *con_id, enum gpiod_flags flags)h](j)}(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]j c.gpiod_getasbuh1hhj.ubj@)}(h h]h }(hjnhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hj.ubj)}(hjh]h*}(hj|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.ubjW)}(hdevh]hdev}(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhj.ubeh}(h]h ]h"]h$]h&]noemphjnjouh1jhj*ubj)}(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&]uh1jhjubj@)}(h h]h }(hjˮhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjubj)}(hjh]h*}(hjٮhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjW)}(hcon_idh]hcon_id}(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjubeh}(h]h ]h"]h$]h&]noemphjnjouh1jhj*ubj)}(henum gpiod_flags flagsh](j.)}(hjGXh]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}(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]j c.gpiod_getasbuh1hhjubj@)}(h h]h }(hj;hhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjubjW)}(hflagsh]hflags}(hjIhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjubeh}(h]h ]h"]h$]h&]noemphjnjouh1jhj*ubeh}(h]h ]h"]h$]h&]jnjouh1jhjhhhjŭhMubeh}(h]h ]h"]h$]h&]jnjojvuh1j'jwjxhjhhhjŭhMubah}(h]jah ](j|j}eh"]h$]h&]jj)jhuh1j!hjŭhMhjhhubj)}(hhh]h)}(h'obtain a GPIO for a given GPIO functionh]h'obtain a GPIO for a given GPIO function}(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&]uh1jhjhhhjŭhMubeh}(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 )}(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}(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 )}(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 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}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj;hMhj<ubah}(h]h ]h"]h$]h&]uh1j!hj ubeh}(h]h ]h"]h$]h&]uh1jhj;hMhjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h **Return**h]j)}(hjah]hReturn}(hjchhhNhNubah}(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, -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 }(hjwhhhNhNubj)}(h **con_id**h]hcon_id}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjwubh 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.}(hjwhhhNhNubeh}(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-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ŰhMubh)}(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)}jgpiod_get_optionalsbc.gpiod_get_optionalasbuh1hhjhhhjŰhMubj@)}(h h]h }(hjhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjhhhjŰhMubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjŰhMubjQ)}(hgpiod_get_optionalh]jW)}(hjh]hgpiod_get_optional}(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjubah}(h]h ](jijjeh"]h$]h&]jnjouh1jPhjhhhjŰhMubj)}(h@(struct device *dev, const char *con_id, enum gpiod_flags flags)h](j)}(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]jc.gpiod_get_optionalasbuh1hhj.ubj@)}(h h]h }(hjnhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hj.ubj)}(hjh]h*}(hj|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.ubjW)}(hdevh]hdev}(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhj.ubeh}(h]h ]h"]h$]h&]noemphjnjouh1jhj*ubj)}(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&]uh1jhjubj@)}(h h]h }(hj˱hhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjubj)}(hjh]h*}(hjٱhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjW)}(hcon_idh]hcon_id}(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjubeh}(h]h ]h"]h$]h&]noemphjnjouh1jhj*ubj)}(henum gpiod_flags flagsh](j.)}(hjGXh]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}(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]jc.gpiod_get_optionalasbuh1hhjubj@)}(h h]h }(hj;hhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjubjW)}(hflagsh]hflags}(hjIhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjubeh}(h]h ]h"]h$]h&]noemphjnjouh1jhj*ubeh}(h]h ]h"]h$]h&]jnjouh1jhjhhhjŰhMubeh}(h]h ]h"]h$]h&]jnjojvuh1j'jwjxhjhhhjŰhMubah}(h]jah ](j|j}eh"]h$]h&]jj)jhuh1j!hjŰhMhjhhubj)}(hhh]h)}(h1obtain an optional GPIO for a given GPIO functionh]h1obtain an optional GPIO for a given GPIO function}(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&]uh1jhjhhhjŰhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjj\jjuh1jhhhhhNhNubj)}(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 )}(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}(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 )}(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 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}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj;hMhj<ubah}(h]h ]h"]h$]h&]uh1j!hj ubeh}(h]h ]h"]h$]h&]uh1jhj;hMhjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjah]h Description}(hjchhhNhNubah}(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)}(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.}(hjwhhhNhNubah}(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)}(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}(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]j)}jgpiod_get_indexsbc.gpiod_get_indexasbuh1hhj۳hhhjhMubj@)}(h h]h }(hjhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hj۳hhhjhMubj)}(hjh]h*}(hj-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj۳hhhjhMubjQ)}(hgpiod_get_indexh]jW)}(hjh]hgpiod_get_index}(hj>hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhj:ubah}(h]h ](jijjeh"]h$]h&]jnjouh1jPhj۳hhhjhMubj)}(hR(struct device *dev, const char *con_id, unsigned int idx, enum gpiod_flags flags)h](j)}(hstruct device *devh](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)}(hdeviceh]hdevice}(hjwhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjtubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjymodnameN classnameNjj)}j]jc.gpiod_get_indexasbuh1hhjUubj@)}(h h]h }(hjhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjUubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUubjW)}(hdevh]hdev}(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjUubeh}(h]h ]h"]h$]h&]noemphjnjouh1jhjQubj)}(hconst char *con_idh](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)}(hcharh]hchar}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjŴubj@)}(h h]h }(hjhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjŴubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjŴubjW)}(hcon_idh]hcon_id}(hj hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjŴubeh}(h]h ]h"]h$]h&]noemphjnjouh1jhjQubj)}(hunsigned int idxh](j)}(hunsignedh]hunsigned}(hj&hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj"ubj@)}(h h]h }(hj4hhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hj"ubj)}(hinth]hint}(hjBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj"ubj@)}(h h]h }(hjPhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hj"ubjW)}(hidxh]hidx}(hj^hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhj"ubeh}(h]h ]h"]h$]h&]noemphjnjouh1jhjQubj)}(henum gpiod_flags flagsh](j.)}(hjGXh]henum}(hjwhhhNhNubah}(h]h ]j:ah"]h$]h&]uh1j-hjsubj@)}(h h]h }(hjhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjsubh)}(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_indexasbuh1hhjsubj@)}(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&]noemphjnjouh1jhjQubeh}(h]h ]h"]h$]h&]jnjouh1jhj۳hhhjhMubeh}(h]h ]h"]h$]h&]jnjojvuh1j'jwjxhj׳hhhjhMubah}(h]jҳah ](j|j}eh"]h$]h&]jj)jhuh1j!hjhMhjԳhhubj)}(hhh]h)}(h.obtain a GPIO from a multi-index GPIO functionh]h.obtain a 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.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjԳhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhhhNhNubj)}(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)}(hj h]h Parameters}(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.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.chMhj&ubj")}(hhh]h)}(h2GPIO consumer, can be NULL for system-global GPIOsh]h2GPIO consumer, can be NULL for system-global GPIOs}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjAhMhjBubah}(h]h ]h"]h$]h&]uh1j!hj&ubeh}(h]h ]h"]h$]h&]uh1jhjAhMhj#ubj)}(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&]uh1jhjzhMhj#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&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j!hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhj#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}(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&]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)}(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.}(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)}(hj9h]hReturn}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj7ubah}(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, -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.}(hjOhhhNhNubah}(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_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-hjzhhh\/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?hjzhhhjhMubh)}(hhh]jW)}(h gpio_desch]h gpio_desc}(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]j)}jgpiod_get_index_optionalsbc.gpiod_get_index_optionalasbuh1hhjzhhhjhMubj@)}(h h]h }(hjhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjzhhhjhMubj)}(hjh]h*}(hj̷hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjzhhhjhMubjQ)}(hgpiod_get_index_optionalh]jW)}(hjh]hgpiod_get_index_optional}(hjݷhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjٷubah}(h]h ](jijjeh"]h$]h&]jnjouh1jPhjzhhhjhMubj)}(hT(struct device *dev, const char *con_id, unsigned int index, enum gpiod_flags flags)h](j)}(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.gpiod_get_index_optionalasbuh1hhjubj@)}(h h]h }(hj4hhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjubj)}(hjh]h*}(hjBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjW)}(hdevh]hdev}(hjOhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjubeh}(h]h ]h"]h$]h&]noemphjnjouh1jhjubj)}(hconst char *con_idh](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&]uh1jhjdubj@)}(h h]h }(hjhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjdubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdubjW)}(hcon_idh]hcon_id}(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjdubeh}(h]h ]h"]h$]h&]noemphjnjouh1jhjubj)}(hunsigned int indexh](j)}(hunsignedh]hunsigned}(hjŸhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj@)}(h h]h }(hjӸhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjubj)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj@)}(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&]noemphjnjouh1jhjubj)}(henum gpiod_flags flagsh](j.)}(hjGXh]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}(hj4hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhj1ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj6modnameN classnameNjj)}j]jc.gpiod_get_index_optionalasbuh1hhjubj@)}(h h]h }(hjRhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjubjW)}(hflagsh]hflags}(hj`hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjubeh}(h]h ]h"]h$]h&]noemphjnjouh1jhjubeh}(h]h ]h"]h$]h&]jnjouh1jhjzhhhjhMubeh}(h]h ]h"]h$]h&]jnjojvuh1j'jwjxhjvhhhjhMubah}(h]jqah ](j|j}eh"]h$]h&]jj)jhuh1j!hjhMhjshhubj)}(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.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjshhhjhMubeh}(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.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}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j!hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhj¹ubj)}(hC``unsigned int index`` index of the GPIO to obtain in the consumer h](j)}(h``unsigned int index``h]j )}(hj=h]hunsigned int index}(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.chMhj7ubj")}(hhh]h)}(h+index of the GPIO to obtain in the consumerh]h+index of the GPIO to obtain in the consumer}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjRhMhjSubah}(h]h ]h"]h$]h&]uh1j!hj7ubeh}(h]h ]h"]h$]h&]uh1jhjRhMhj¹ubj)}(h>``enum gpiod_flags flags`` optional GPIO initialization flags h](j)}(h``enum gpiod_flags flags``h]j )}(hjvh]henum gpiod_flags flags}(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.chMhjpubj")}(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!hjpubeh}(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)}(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.}(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)}(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)}(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.}(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_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}(hjhhhNhNubah}(h]h ]j:ah"]h$]h&]uh1j-hjhhh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMkubj@)}(h h]h }(hj+hhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjhhhj*hMkubh)}(hhh]jW)}(h gpio_descsh]h gpio_descs}(hj<hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhj9ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj>modnameN classnameNjj)}j]j)}jgpiod_get_arraysbc.gpiod_get_arrayasbuh1hhjhhhj*hMkubj@)}(h h]h }(hj]hhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjhhhj*hMkubj)}(hjh]h*}(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhj*hMkubjQ)}(hgpiod_get_arrayh]jW)}(hjZh]hgpiod_get_array}(hj|hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjxubah}(h]h ](jijjeh"]h$]h&]jnjouh1jPhjhhhj*hMkubj)}(h@(struct device *dev, const char *con_id, enum gpiod_flags flags)h](j)}(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]jXc.gpiod_get_arrayasbuh1hhjubj@)}(h h]h }(hjӻhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjW)}(hdevh]hdev}(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjubeh}(h]h ]h"]h$]h&]noemphjnjouh1jhjubj)}(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&]uh1jhjubj@)}(h h]h }(hj0hhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjubj)}(hjh]h*}(hj>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjW)}(hcon_idh]hcon_id}(hjKhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjubeh}(h]h ]h"]h$]h&]noemphjnjouh1jhjubj)}(henum gpiod_flags flagsh](j.)}(hjGXh]henum}(hjdhhhNhNubah}(h]h ]j:ah"]h$]h&]uh1j-hj`ubj@)}(h h]h }(hjqhhhNhNubah}(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]jXc.gpiod_get_arrayasbuh1hhj`ubj@)}(h h]h }(hjhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hj`ubjW)}(hflagsh]hflags}(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhj`ubeh}(h]h ]h"]h$]h&]noemphjnjouh1jhjubeh}(h]h ]h"]h$]h&]jnjouh1jhjhhhj*hMkubeh}(h]h ]h"]h$]h&]jnjojvuh1j'jwjxhjhhhj*hMkubah}(h]jah ](j|j}eh"]h$]h&]jj)jhuh1j!hj*hMkhjhhubj)}(hhh]h)}(h6obtain multiple GPIOs from a multi-index GPIO functionh]h6obtain multiple GPIOs from a multi-index GPIO function}(hjؼhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMkhjռhhubah}(h]h ]h"]h$]h&]uh1jhjhhhj*hMkubeh}(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 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)}(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.chMohjubj)}(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.chMlhjubj")}(hhh]h)}(h2GPIO consumer, can be NULL for system-global GPIOsh]h2GPIO consumer, can be NULL for system-global GPIOs}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj.hMlhj/ubah}(h]h ]h"]h$]h&]uh1j!hjubeh}(h]h ]h"]h$]h&]uh1jhj.hMlhjubj)}(h9``const char *con_id`` function within the GPIO consumer h](j)}(h``const char *con_id``h]j )}(hjRh]hconst char *con_id}(hjThhhNhNubah}(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.chMmhjLubj")}(hhh]h)}(h!function within the GPIO consumerh]h!function within the GPIO consumer}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjghMmhjhubah}(h]h ]h"]h$]h&]uh1j!hjLubeh}(h]h ]h"]h$]h&]uh1jhjghMmhjubj)}(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.chMnhjubj")}(hhh]h)}(h"optional GPIO initialization flagsh]h"optional GPIO initialization flags}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMnhjubah}(h]h ]h"]h$]h&]uh1j!hjubeh}(h]h ]h"]h$]h&]uh1jhjhMnhjubeh}(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.chMphjubh)}(hDThis function acquires all the GPIOs defined under a given function.h]hDThis function acquires all the GPIOs defined under a given function.}(hjܽhhhNhNubah}(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)}(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.chMqhjubh)}(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}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh 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.}(hjhhhNhNubeh}(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](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}(hjDhhhNhNubah}(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 }(hjRhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hj@hhhjQhMubh)}(hhh]jW)}(h gpio_descsh]h gpio_descs}(hjchhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhj`ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjemodnameN classnameNjj)}j]j)}jgpiod_get_array_optionalsbc.gpiod_get_array_optionalasbuh1hhj@hhhjQhMubj@)}(h h]h }(hjhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hj@hhhjQhMubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@hhhjQhMubjQ)}(hgpiod_get_array_optionalh]jW)}(hjh]hgpiod_get_array_optional}(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjubah}(h]h ](jijjeh"]h$]h&]jnjouh1jPhj@hhhjQhMubj)}(h@(struct device *dev, const char *con_id, enum gpiod_flags flags)h](j)}(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}(hjܾhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjپubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj޾modnameN classnameNjj)}j]jc.gpiod_get_array_optionalasbuh1hhjubj@)}(h h]h }(hjhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjW)}(hdevh]hdev}(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjubeh}(h]h ]h"]h$]h&]noemphjnjouh1jhjubj)}(hconst char *con_idh](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)}(hcharh]hchar}(hjIhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*ubj@)}(h h]h }(hjWhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hj*ubj)}(hjh]h*}(hjehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*ubjW)}(hcon_idh]hcon_id}(hjrhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhj*ubeh}(h]h ]h"]h$]h&]noemphjnjouh1jhjubj)}(henum gpiod_flags flagsh](j.)}(hjGXh]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.gpiod_get_array_optionalasbuh1hhjubj@)}(h h]h }(hjǿhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjubjW)}(hflagsh]hflags}(hjտhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjubeh}(h]h ]h"]h$]h&]noemphjnjouh1jhjubeh}(h]h ]h"]h$]h&]jnjouh1jhj@hhhjQhMubeh}(h]h ]h"]h$]h&]jnjojvuh1j'jwjxhj<hhhjQhMubah}(h]j7ah ](j|j}eh"]h$]h&]jj)jhuh1j!hjQhMhj9hhubj)}(hhh]h)}(h6obtain multiple GPIOs from a multi-index GPIO functionh]h6obtain multiple GPIOs 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.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhj9hhhjQhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhhhNhNubj)}(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)}(hj!h]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)}(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}(hjBhhhNhNubah}(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)}(h2GPIO consumer, can be NULL for system-global GPIOsh]h2GPIO consumer, can be NULL for system-global GPIOs}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjUhMhjVubah}(h]h ]h"]h$]h&]uh1j!hj:ubeh}(h]h ]h"]h$]h&]uh1jhjUhMhj7ubj)}(h9``const char *con_id`` function within the GPIO consumer h](j)}(h``const char *con_id``h]j )}(hjyh]hconst char *con_id}(hj{hhhNhNubah}(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.chMhjsubj")}(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!hjsubeh}(h]h ]h"]h$]h&]uh1jhjhMhj7ubj)}(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.chMhjubj")}(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!hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhj7ubeh}(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)}(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.}(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)}(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 }(hj*hhhNhNubj)}(h **con_id**h]hcon_id}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj*ubh 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.}(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_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}(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjghhh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chM ubj@)}(h h]h }(hjzhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjghhhjyhM ubjQ)}(h gpiod_puth]jW)}(h gpiod_puth]h gpiod_put}(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjubah}(h]h ](jijjeh"]h$]h&]jnjouh1jPhjghhhjyhM ubj)}(h(struct gpio_desc *desc)h]j)}(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]j)}jjsb c.gpiod_putasbuh1hhjubj@)}(h h]h }(hjhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjW)}(hdesch]hdesc}(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjubeh}(h]h ]h"]h$]h&]noemphjnjouh1jhjubah}(h]h ]h"]h$]h&]jnjouh1jhjghhhjyhM ubeh}(h]h ]h"]h$]h&]jnjojvuh1j'jwjxhjchhhjyhM ubah}(h]j^ah ](j|j}eh"]h$]h&]jj)jhuh1j!hjyhM hj`hhubj)}(hhh]h)}(hdispose of a GPIO descriptorh]hdispose of a GPIO descriptor}(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`hhhjyhM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjCjjCjjjuh1jhhhhhNhNubj)}(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)}(hjMh]h Parameters}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjKubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMhjGubj)}(hhh]j)}(h9``struct gpio_desc *desc`` GPIO descriptor to dispose of h](j)}(h``struct gpio_desc *desc``h]j )}(hjlh]hstruct gpio_desc *desc}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjjubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chM hjfubj")}(hhh]h)}(hGPIO descriptor to dispose ofh]hGPIO descriptor to dispose of}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM hjubah}(h]h ]h"]h$]h&]uh1j!hjfubeh}(h]h ]h"]h$]h&]uh1jhjhM hjcubah}(h]h ]h"]h$]h&]uh1jhjGubh)}(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.chMhjGubh)}(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.chMhjGubeh}(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}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhh\/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_put_arrayh]jW)}(hgpiod_put_arrayh]hgpiod_put_array}(hj hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhj ubah}(h]h ](jijjeh"]h$]h&]jnjouh1jPhjhhhjhMubj)}(h(struct gpio_descs *descs)h]j)}(hstruct gpio_descs *descsh](j.)}(hj1h]hstruct}(hj)hhhNhNubah}(h]h ]j:ah"]h$]h&]uh1j-hj%ubj@)}(h h]h }(hj6hhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hj%ubh)}(hhh]jW)}(h gpio_descsh]h gpio_descs}(hjGhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjDubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjImodnameN classnameNjj)}j]j)}jjsbc.gpiod_put_arrayasbuh1hhj%ubj@)}(h h]h }(hjghhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hj%ubj)}(hjh]h*}(hjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%ubjW)}(hdescsh]hdescs}(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhj%ubeh}(h]h ]h"]h$]h&]noemphjnjouh1jhj!ubah}(h]h ]h"]h$]h&]jnjouh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jnjojvuh1j'jwjxhjhhhjhMubah}(h]jah ](j|j}eh"]h$]h&]jj)jhuh1j!hjhMhjhhubj)}(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&]uh1jhjhhhjhMubeh}(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)}(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)}(hQ``struct gpio_descs *descs`` struct gpio_descs containing an array of descriptorsh](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&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMhjubj")}(hhh]h)}(h4struct gpio_descs containing an array of descriptorsh]h4struct gpio_descs containing an array of descriptors}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:24: ./drivers/gpio/gpiolib.chMhjubah}(h]h ]h"]h$]h&]uh1j!hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubeh}(h]coreah ]h"]coreah$]h&]uh1hhhhhhhhKubh)}(hhh](h)}(h ACPI supporth]h ACPI support}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj6hhhhhKubj )}(hhh]h}(h]h ]h"]h$]h&]entries](j&acpi_gpio_get_io_resource (C function)c.acpi_gpio_get_io_resourcehNtauh1j hj6hhhNhNubj)}(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}(hj`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\hhhf/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:30: ./drivers/gpio/gpiolib-acpi-core.chKubj@)}(h h]h }(hjnhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hj\hhhjmhKubjQ)}(hacpi_gpio_get_io_resourceh]jW)}(hacpi_gpio_get_io_resourceh]hacpi_gpio_get_io_resource}(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhj|ubah}(h]h ](jijjeh"]h$]h&]jnjouh1jPhj\hhhjmhKubj)}(h?(struct acpi_resource *ares, struct acpi_resource_gpio **agpio)h](j)}(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]j)}jjsbc.acpi_gpio_get_io_resourceasbuh1hhjubj@)}(h h]h }(hjhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjW)}(haresh]hares}(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjubeh}(h]h ]h"]h$]h&]noemphjnjouh1jhjubj)}(h!struct acpi_resource_gpio **agpioh](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)}(hacpi_resource_gpioh]hacpi_resource_gpio}(hj,hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhj)ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj.modnameN classnameNjj)}j]jc.acpi_gpio_get_io_resourceasbuh1hhj ubj@)}(h h]h }(hjJhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hj ubj)}(hjh]h*}(hjXhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(hjh]h*}(hjehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubjW)}(hagpioh]hagpio}(hjrhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhj ubeh}(h]h ]h"]h$]h&]noemphjnjouh1jhjubeh}(h]h ]h"]h$]h&]jnjouh1jhj\hhhjmhKubeh}(h]h ]h"]h$]h&]jnjojvuh1j'jwjxhjXhhhjmhKubah}(h]jSah ](j|j}eh"]h$]h&]jj)jhuh1j!hjmhKhjUhhubj)}(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&]uh1jhjUhhhjmhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhj6hNhNubj)}(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 )}(hjh]hstruct acpi_resource *ares}(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.chKhjubj")}(hhh]h)}(h%Pointer to the ACPI resource to fetchh]h%Pointer to the ACPI resource to fetch}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1j!hjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubj)}(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 )}(hjh]h!struct acpi_resource_gpio **agpio}(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.chKhjubj")}(hhh]h)}(haPointer to a :c:type:`struct acpi_resource_gpio ` to store the output pointerh](h Pointer to a }(hj/hhhNhNubh)}(h8:c:type:`struct acpi_resource_gpio `h]j )}(hj9h]hstruct acpi_resource_gpio}(hj;hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1j hj7ubah}(h]h ]h"]h$]h&]refdoch׌ refdomainjreftypetype refexplicitrefwarnjjjacpi_resource_gpiouh1hhj+hKhj/ubh to store the output pointer}(hj/hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj+hKhj,ubah}(h]h ]h"]h$]h&]uh1j!hjubeh}(h]h ]h"]h$]h&]uh1jhj+hKhjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h **Return**h]j)}(hjth]hReturn}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjrubah}(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&]uh1jhj6hhhNhNubj )}(hhh]h}(h]h ]h"]h$]h&]entries](j-acpi_gpiochip_request_interrupts (C function)"c.acpi_gpiochip_request_interruptshNtauh1j hj6hhhNhNubj)}(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}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhf/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)}(h acpi_gpiochip_request_interruptsh]jW)}(h acpi_gpiochip_request_interruptsh]h acpi_gpiochip_request_interrupts}(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjubah}(h]h ](jijjeh"]h$]h&]jnjouh1jPhjhhhjhMubj)}(h(struct gpio_chip *chip)h]j)}(hstruct gpio_chip *chiph](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_chiph]h gpio_chip}(hj4hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhj1ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj6modnameN classnameNjj)}j]j)}jjsb"c.acpi_gpiochip_request_interruptsasbuh1hhjubj@)}(h h]h }(hjThhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjubj)}(hjh]h*}(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjW)}(hchiph]hchip}(hjohhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjubeh}(h]h ]h"]h$]h&]noemphjnjouh1jhjubah}(h]h ]h"]h$]h&]jnjouh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jnjojvuh1j'jwjxhjhhhjhMubah}(h]jah ](j|j}eh"]h$]h&]jj)jhuh1j!hjhMhjhhubj)}(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&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhj6hNhNubj)}(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.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)}(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.}(hj+hhhNhNubah}(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&]uh1jhj6hhhNhNubj )}(hhh]h}(h]h ]h"]h$]h&]entries](j*acpi_gpiochip_free_interrupts (C function)c.acpi_gpiochip_free_interruptshNtauh1j hj6hhhNhNubj)}(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}(hjZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVhhhf/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:30: ./drivers/gpio/gpiolib-acpi-core.chMubj@)}(h h]h }(hjihhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjVhhhjhhMubjQ)}(hacpi_gpiochip_free_interruptsh]jW)}(hacpi_gpiochip_free_interruptsh]hacpi_gpiochip_free_interrupts}(hj{hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjwubah}(h]h ](jijjeh"]h$]h&]jnjouh1jPhjVhhhjhhMubj)}(h(struct gpio_chip *chip)h]j)}(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}(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]j)}jj}sbc.acpi_gpiochip_free_interruptsasbuh1hhjubj@)}(h h]h }(hjhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjW)}(hchiph]hchip}(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjubeh}(h]h ]h"]h$]h&]noemphjnjouh1jhjubah}(h]h ]h"]h$]h&]jnjouh1jhjVhhhjhhMubeh}(h]h ]h"]h$]h&]jnjojvuh1j'jwjxhjRhhhjhhMubah}(h]jMah ](j|j}eh"]h$]h&]jj)jhuh1j!hjhhMhjOhhubj)}(hhh]h)}(h Free GPIO ACPI event interrupts.h]h Free GPIO ACPI event interrupts.}(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&]uh1jhjOhhhjhhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj2jj2jjjuh1jhhhj6hNhNubj)}(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)}(hj<h]h Parameters}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj:ubah}(h]h ]h"]h$]h&]uh1hhf/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:30: ./drivers/gpio/gpiolib-acpi-core.chMhj6ubj)}(hhh]j)}(h%``struct gpio_chip *chip`` GPIO chip h](j)}(h``struct gpio_chip *chip``h]j )}(hj[h]hstruct gpio_chip *chip}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1j hjYubah}(h]h ]h"]h$]h&]uh1jhf/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:30: ./drivers/gpio/gpiolib-acpi-core.chMhjUubj")}(hhh]h)}(h GPIO chiph]h GPIO chip}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1hhjphMhjqubah}(h]h ]h"]h$]h&]uh1j!hjUubeh}(h]h ]h"]h$]h&]uh1jhjphMhjRubah}(h]h ]h"]h$]h&]uh1jhj6ubh)}(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.chMhj6ubh)}(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.chMhj6ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj6hhhNhNubj )}(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 hj6hhhNhNubj)}(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}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhf/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_dev_gpio_irq_wake_get_byh]jW)}(hacpi_dev_gpio_irq_wake_get_byh]hacpi_dev_gpio_irq_wake_get_by}(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjubah}(h]h ](jijjeh"]h$]h&]jnjouh1jPhjhhhjhMubj)}(hM(struct acpi_device *adev, const char *con_id, int index, bool *wake_capable)h](j)}(hstruct acpi_device *adevh](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 acpi_deviceh]h acpi_device}(hj6hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhj3ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj8modnameN classnameNjj)}j]j)}jjsbc.acpi_dev_gpio_irq_wake_get_byasbuh1hhjubj@)}(h h]h }(hjVhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjubj)}(hjh]h*}(hjdhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjW)}(hadevh]hadev}(hjqhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjubeh}(h]h ]h"]h$]h&]noemphjnjouh1jhjubj)}(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&]uh1jhjubj@)}(h h]h }(hjhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjW)}(hcon_idh]hcon_id}(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjubeh}(h]h ]h"]h$]h&]noemphjnjouh1jhjubj)}(h int indexh](j)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj@)}(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&]noemphjnjouh1jhjubj)}(hbool *wake_capableh](j)}(hj-h]hbool}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj@)}(h h]h }(hj)hhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjubj)}(hjh]h*}(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjW)}(h wake_capableh]h wake_capable}(hjDhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjubeh}(h]h ]h"]h$]h&]noemphjnjouh1jhjubeh}(h]h ]h"]h$]h&]jnjouh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jnjojvuh1j'jwjxhjhhhjhMubah}(h]jah ](j|j}eh"]h$]h&]jj)jhuh1j!hjhMhjhhubj)}(hhh]h)}(h1Find GpioInt and translate it to Linux IRQ numberh]h1Find GpioInt and translate it to Linux IRQ number}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1hhf/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:30: ./drivers/gpio/gpiolib-acpi-core.chMhjkhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhj6hNhNubj)}(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}(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(pointer to a ACPI device to get IRQ fromh]h(pointer to a ACPI device to get IRQ from}(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`` optional name of GpioInt resource 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&]uh1jhf/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:30: ./drivers/gpio/gpiolib-acpi-core.chMhjubj")}(hhh]h)}(h!optional name of GpioInt resourceh]h!optional name of GpioInt resource}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j!hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h>``int index`` index of GpioInt resource (starting from ``0``) h](j)}(h ``int index``h]j )}(hj!h]h int index}(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/index of GpioInt resource (starting from ``0``)h](h)index of GpioInt resource (starting from }(hj:hhhNhNubj )}(h``0``h]h0}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1j hj:ubh)}(hj:hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj6hMhj7ubah}(h]h ]h"]h$]h&]uh1j!hjubeh}(h]h ]h"]h$]h&]uh1jhj6hMhjubj)}(h>``bool *wake_capable`` Set to true if the IRQ is wake capable h](j)}(h``bool *wake_capable``h]j )}(hjlh]hbool *wake_capable}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjjubah}(h]h ]h"]h$]h&]uh1jhf/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:30: ./drivers/gpio/gpiolib-acpi-core.chMhjfubj")}(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!hjfubeh}(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.}(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 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 }(hjhhhNhNubj)}(h **con_id**h]hcon_id}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh" parameter. If the resource has a }(hjhhhNhNubj)}(h **con_id**h]hcon_id}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh; in a property, then only those will be taken into account.}(hjhhhNhNubeh}(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.}(hjhhhNhNubah}(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)}(hjh]hReturn}(hj!hhhNhNubah}(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)}(h=Linux IRQ number (> 0) on success, negative errno on failure.h]h=Linux IRQ number (> 0) on success, negative errno on failure.}(hj5hhhNhNubah}(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&]uh1jhj6hhhNhNubeh}(h] acpi-supportah ]h"] acpi supportah$]h&]uh1hhhhhhhhKubh)}(hhh](h)}(hDevice tree supporth]hDevice tree support}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjShhhhhK"ubj )}(hhh]h}(h]h ]h"]h$]h&]entries](jof_get_named_gpio (C function)c.of_get_named_gpiohNtauh1j hjShhhNhNubj)}(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}(hj}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyhhh_/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?hjyhhhjhMubjQ)}(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&]jnjouh1jPhjyhhhjhMubj)}(h?(const struct device_node *np, const char *propname, int index)h](j)}(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}(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]j)}jjsbc.of_get_named_gpioasbuh1hhjubj@)}(h h]h }(hjhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjubj)}(hjh]h*}(hj!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjW)}(hnph]hnp}(hj.hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjubeh}(h]h ]h"]h$]h&]noemphjnjouh1jhjubj)}(hconst char *propnameh](j.)}(hj"h]hconst}(hjGhhhNhNubah}(h]h ]j:ah"]h$]h&]uh1j-hjCubj@)}(h h]h }(hjThhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjCubj)}(hcharh]hchar}(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjCubj@)}(h h]h }(hjphhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjCubj)}(hjh]h*}(hj~hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjCubjW)}(hpropnameh]hpropname}(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjCubeh}(h]h ]h"]h$]h&]noemphjnjouh1jhjubj)}(h int indexh](j)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj@)}(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&]noemphjnjouh1jhjubeh}(h]h ]h"]h$]h&]jnjouh1jhjyhhhjhMubeh}(h]h ]h"]h$]h&]jnjojvuh1j'jwjxhjuhhhjhMubah}(h]jpah ](j|j}eh"]h$]h&]jj)jhuh1j!hjhMhjrhhubj)}(hhh]h)}(h&Get a GPIO number to use with GPIO APIh]h&Get a GPIO number to use with GPIO API}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:36: ./drivers/gpio/gpiolib-of.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjrhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhjShNhNubj)}(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)}(hj h]h Parameters}(hjhhhNhNubah}(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.chMhjubj)}(hhh](j)}(h>``const struct device_node *np`` device node to get GPIO from h](j)}(h ``const struct device_node *np``h]j )}(hj+h]hconst struct 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.chMhj%ubj")}(hhh]h)}(hdevice node to get GPIO fromh]hdevice node to get GPIO from}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj@hMhjAubah}(h]h ]h"]h$]h&]uh1j!hj%ubeh}(h]h ]h"]h$]h&]uh1jhj@hMhj"ubj)}(hG``const char *propname`` Name of property containing gpio specifier(s) h](j)}(h``const char *propname``h]j )}(hjdh]hconst char *propname}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjbubah}(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)}(h-Name of property containing gpio specifier(s)h]h-Name of property containing gpio specifier(s)}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjyhMhjzubah}(h]h ]h"]h$]h&]uh1j!hj^ubeh}(h]h ]h"]h$]h&]uh1jhjyhMhj"ubj)}(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&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j!hjubeh}(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:36: ./drivers/gpio/gpiolib-of.chMhjubh)}(hL**DEPRECATED** This function is deprecated and must not be used in new code.h](j)}(h**DEPRECATED**h]h DEPRECATED}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh> This function is deprecated and must not be used in new code.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:36: ./drivers/gpio/gpiolib-of.chMhjubh)}(h **Return**h]j)}(hj h]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:36: ./drivers/gpio/gpiolib-of.chMhjubh)}(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.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjShhhNhNubj )}(hhh]h}(h]h ]h"]h$]h&]entries](j$of_mm_gpiochip_add_data (C function)c.of_mm_gpiochip_add_datahNtauh1j hjShhhNhNubj)}(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}(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjNhhh_/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:36: ./drivers/gpio/gpiolib-of.chM ubj@)}(h h]h }(hjahhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjNhhhj`hM ubjQ)}(hof_mm_gpiochip_add_datah]jW)}(hof_mm_gpiochip_add_datah]hof_mm_gpiochip_add_data}(hjshhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjoubah}(h]h ](jijjeh"]h$]h&]jnjouh1jPhjNhhhj`hM ubj)}(hC(struct device_node *np, struct of_mm_gpio_chip *mm_gc, void *data)h](j)}(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]j)}jjusbc.of_mm_gpiochip_add_dataasbuh1hhjubj@)}(h h]h }(hjhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjW)}(hnph]hnp}(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjubeh}(h]h ]h"]h$]h&]noemphjnjouh1jhjubj)}(hstruct of_mm_gpio_chip *mm_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)}(hof_mm_gpio_chiph]hof_mm_gpio_chip}(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj!modnameN classnameNjj)}j]jc.of_mm_gpiochip_add_dataasbuh1hhjubj@)}(h h]h }(hj=hhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjubj)}(hjh]h*}(hjKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjW)}(hmm_gch]hmm_gc}(hjXhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjubeh}(h]h ]h"]h$]h&]noemphjnjouh1jhjubj)}(h void *datah](j)}(hvoidh]hvoid}(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmubj@)}(h h]h }(hjhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjmubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmubjW)}(hdatah]hdata}(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjmubeh}(h]h ]h"]h$]h&]noemphjnjouh1jhjubeh}(h]h ]h"]h$]h&]jnjouh1jhjNhhhj`hM ubeh}(h]h ]h"]h$]h&]jnjojvuh1j'jwjxhjJhhhj`hM ubah}(h]jEah ](j|j}eh"]h$]h&]jj)jhuh1j!hj`hM hjGhhubj)}(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&]uh1jhjGhhhj`hM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhjShNhNubj)}(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)}(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.chMhjubj)}(hhh](j)}(h8``struct device_node *np`` device node of the GPIO chip h](j)}(h``struct device_node *np``h]j )}(hjh]hstruct 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.chMhjubj")}(hhh]h)}(hdevice node of the GPIO chiph]hdevice node of the GPIO chip}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j!hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(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 )}(hj>h]hstruct of_mm_gpio_chip *mm_gc}(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.chMhj8ubj")}(hhh]h)}(h2pointer to the of_mm_gpio_chip allocated structureh]h2pointer to the of_mm_gpio_chip allocated structure}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjShMhjTubah}(h]h ]h"]h$]h&]uh1j!hj8ubeh}(h]h ]h"]h$]h&]uh1jhjShMhjubj)}(h<``void *data`` driver data to store in the struct gpio_chip h](j)}(h``void *data``h]j )}(hjwh]h void *data}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjuubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:36: ./drivers/gpio/gpiolib-of.chMhjqubj")}(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!hjqubeh}(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:36: ./drivers/gpio/gpiolib-of.chMhjubh)}(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:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:36: ./drivers/gpio/gpiolib-of.chMhjubhenumerated_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)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:36: ./drivers/gpio/gpiolib-of.chMhjubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]enumtypearabicprefixhsuffixj7uh1jhjubj)}(hhh]j)}(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)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:36: ./drivers/gpio/gpiolib-of.chMhjubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]jjjhjj7startKuh1jhjubh)}(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.chMhjubh)}(h **Return**h]j)}(hj5h]hReturn}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3ubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:36: ./drivers/gpio/gpiolib-of.chMhjubh)}(h+0 on success, or negative errno on failure.h]h+0 on success, or negative errno on failure.}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:36: ./drivers/gpio/gpiolib-of.chM hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjShhhNhNubj )}(hhh]h}(h]h ]h"]h$]h&]entries](j"of_mm_gpiochip_remove (C function)c.of_mm_gpiochip_removehNtauh1j hjShhhNhNubj)}(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}(hjzhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvhhh_/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?hjvhhhjhMKubjQ)}(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&]jnjouh1jPhjvhhhjhMKubj)}(h(struct of_mm_gpio_chip *mm_gc)h]j)}(hstruct of_mm_gpio_chip *mm_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)}(hof_mm_gpio_chiph]hof_mm_gpio_chip}(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]j)}jjsbc.of_mm_gpiochip_removeasbuh1hhjubj@)}(h h]h }(hjhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjW)}(hmm_gch]hmm_gc}(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjubeh}(h]h ]h"]h$]h&]noemphjnjouh1jhjubah}(h]h ]h"]h$]h&]jnjouh1jhjvhhhjhMKubeh}(h]h ]h"]h$]h&]jnjojvuh1j'jwjxhjrhhhjhMKubah}(h]jmah ](j|j}eh"]h$]h&]jj)jhuh1j!hjhMKhjohhubj)}(hhh]h)}(h%Remove memory mapped GPIO chip (bank)h]h%Remove memory mapped GPIO chip (bank)}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:36: ./drivers/gpio/gpiolib-of.chMKhj7hhubah}(h]h ]h"]h$]h&]uh1jhjohhhjhMKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjRjjRjjjuh1jhhhjShNhNubj)}(hf**Parameters** ``struct of_mm_gpio_chip *mm_gc`` pointer to the of_mm_gpio_chip allocated structureh](h)}(h**Parameters**h]j)}(hj\h]h Parameters}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjZubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:36: ./drivers/gpio/gpiolib-of.chMOhjVubj)}(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 )}(hj{h]hstruct of_mm_gpio_chip *mm_gc}(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:36: ./drivers/gpio/gpiolib-of.chMQhjuubj")}(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!hjuubeh}(h]h ]h"]h$]h&]uh1jhjhMQhjrubah}(h]h ]h"]h$]h&]uh1jhjVubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjShhhNhNubeh}(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}(hjhhhNhNubah}(h]h ]j:ah"]h$]h&]uh1j-hjhhhc/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:42: ./drivers/gpio/gpiolib-devres.chK!ubj@)}(h h]h }(hjhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjhhhjhK!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]j)}jdevm_gpiod_getsbc.devm_gpiod_getasbuh1hhjhhhjhK!ubj@)}(h h]h }(hj.hhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjhhhjhK!ubj)}(hjh]h*}(hj<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhK!ubjQ)}(hdevm_gpiod_geth]jW)}(hj+h]hdevm_gpiod_get}(hjMhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjIubah}(h]h ](jijjeh"]h$]h&]jnjouh1jPhjhhhjhK!ubj)}(h@(struct device *dev, const char *con_id, enum gpiod_flags flags)h](j)}(hstruct device *devh](j.)}(hj1h]hstruct}(hjhhhhNhNubah}(h]h ]j:ah"]h$]h&]uh1j-hjdubj@)}(h h]h }(hjuhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjdubh)}(hhh]jW)}(hdeviceh]hdevice}(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]j)c.devm_gpiod_getasbuh1hhjdubj@)}(h h]h }(hjhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjdubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdubjW)}(hdevh]hdev}(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjdubeh}(h]h ]h"]h$]h&]noemphjnjouh1jhj`ubj)}(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&]uh1jhjubj@)}(h h]h }(hjhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjW)}(hcon_idh]hcon_id}(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjubeh}(h]h ]h"]h$]h&]noemphjnjouh1jhj`ubj)}(henum gpiod_flags flagsh](j.)}(hjGXh]henum}(hj5hhhNhNubah}(h]h ]j:ah"]h$]h&]uh1j-hj1ubj@)}(h h]h }(hjBhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hj1ubh)}(hhh]jW)}(h gpiod_flagsh]h gpiod_flags}(hjShhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjPubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjUmodnameN classnameNjj)}j]j)c.devm_gpiod_getasbuh1hhj1ubj@)}(h h]h }(hjqhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hj1ubjW)}(hflagsh]hflags}(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhj1ubeh}(h]h ]h"]h$]h&]noemphjnjouh1jhj`ubeh}(h]h ]h"]h$]h&]jnjouh1jhjhhhjhK!ubeh}(h]h ]h"]h$]h&]jnjojvuh1j'jwjxhjhhhjhK!ubah}(h]jah ](j|j}eh"]h$]h&]jj)jhuh1j!hjhK!hjhhubj)}(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&]uh1jhjhhhjhK!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)}(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.chK%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.chK"hjubj")}(hhh]h)}(h GPIO consumerh]h GPIO consumer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhK"hjubah}(h]h ]h"]h$]h&]uh1j!hjubeh}(h]h ]h"]h$]h&]uh1jhjhK"hjubj)}(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.chK#hjubj")}(hhh]h)}(h!function within the GPIO consumerh]h!function within the GPIO consumer}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj8hK#hj9ubah}(h]h ]h"]h$]h&]uh1j!hjubeh}(h]h ]h"]h$]h&]uh1jhj8hK#hjubj)}(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 hjZubah}(h]h ]h"]h$]h&]uh1jhc/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:42: ./drivers/gpio/gpiolib-devres.chK$hjVubj")}(hhh]h)}(h"optional GPIO initialization flagsh]h"optional GPIO initialization flags}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjqhK$hjrubah}(h]h ]h"]h$]h&]uh1j!hjVubeh}(h]h ]h"]h$]h&]uh1jhjqhK$hjubeh}(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 }(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.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}(hj'hhhNhNubah}(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 }(hj5hhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hj#hhhj4hK8ubh)}(hhh]jW)}(h gpio_desch]h gpio_desc}(hjFhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjCubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjHmodnameN classnameNjj)}j]j)}jdevm_gpiod_get_optionalsbc.devm_gpiod_get_optionalasbuh1hhj#hhhj4hK8ubj@)}(h h]h }(hjghhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hj#hhhj4hK8ubj)}(hjh]h*}(hjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj#hhhj4hK8ubjQ)}(hdevm_gpiod_get_optionalh]jW)}(hjdh]hdevm_gpiod_get_optional}(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjubah}(h]h ](jijjeh"]h$]h&]jnjouh1jPhj#hhhj4hK8ubj)}(h@(struct device *dev, const char *con_id, enum gpiod_flags flags)h](j)}(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]jbc.devm_gpiod_get_optionalasbuh1hhjubj@)}(h h]h }(hjhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjW)}(hdevh]hdev}(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjubeh}(h]h ]h"]h$]h&]noemphjnjouh1jhjubj)}(hconst char *con_idh](j.)}(hj"h]hconst}(hjhhhNhNubah}(h]h ]j:ah"]h$]h&]uh1j-hj ubj@)}(h h]h }(hjhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hj ubj)}(hcharh]hchar}(hj,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj@)}(h h]h }(hj:hhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hj ubj)}(hjh]h*}(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubjW)}(hcon_idh]hcon_id}(hjUhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhj ubeh}(h]h ]h"]h$]h&]noemphjnjouh1jhjubj)}(henum gpiod_flags flagsh](j.)}(hjGXh]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]jbc.devm_gpiod_get_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&]noemphjnjouh1jhjubeh}(h]h ]h"]h$]h&]jnjouh1jhj#hhhj4hK8ubeh}(h]h ]h"]h$]h&]jnjojvuh1j'jwjxhjhhhj4hK8ubah}(h]jah ](j|j}eh"]h$]h&]jj)jhuh1j!hj4hK8hjhhubj)}(hhh]h)}(h%Resource-managed gpiod_get_optional()h]h%Resource-managed gpiod_get_optional()}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhc/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:42: ./drivers/gpio/gpiolib-devres.chK8hjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhj4hK8ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhjhNhNubj)}(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)}(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.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;hjubeh}(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_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.}(hjhhhNhNubah}(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 )}(hjFh]henum gpiod_flags flags}(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.chKShj@ubj")}(hhh]h)}(h"optional GPIO initialization flagsh]h"optional GPIO initialization flags}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj[hKShj\ubah}(h]h ]h"]h$]h&]uh1j!hj@ubeh}(h]h ]h"]h$]h&]uh1jhj[hKShjubeh}(h]h ]h"]h$]h&]uh1jhjvubh)}(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.chKUhjvubh)}(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.chKThjvubh)}(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.chKXhjvubh)}(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.chKYhjvubeh}(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}(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.chKubj@)}(h h]h }(hjhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hj hhhjhKubh)}(hhh]jW)}(h gpio_desch]h gpio_desc}(hj0hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhj-ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj2modnameN classnameNjj)}j]j)}jdevm_fwnode_gpiod_get_indexsbc.devm_fwnode_gpiod_get_indexasbuh1hhj hhhjhKubj@)}(h h]h }(hjQhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hj hhhjhKubj)}(hjh]h*}(hj_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj hhhjhKubjQ)}(hdevm_fwnode_gpiod_get_indexh]jW)}(hjNh]hdevm_fwnode_gpiod_get_index}(hjphhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjlubah}(h]h ](jijjeh"]h$]h&]jnjouh1jPhj hhhjhKubj)}(h|(struct device *dev, struct fwnode_handle *fwnode, const char *con_id, int index, enum gpiod_flags flags, const char *label)h](j)}(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]jLc.devm_fwnode_gpiod_get_indexasbuh1hhjubj@)}(h h]h }(hjhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjW)}(hdevh]hdev}(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjubeh}(h]h ]h"]h$]h&]noemphjnjouh1jhjubj)}(hstruct fwnode_handle *fwnodeh](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 fwnode_handleh]h fwnode_handle}(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]jLc.devm_fwnode_gpiod_get_indexasbuh1hhjubj@)}(h h]h }(hj7hhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjubj)}(hjh]h*}(hjEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjW)}(hfwnodeh]hfwnode}(hjRhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjubeh}(h]h ]h"]h$]h&]noemphjnjouh1jhjubj)}(hconst char *con_idh](j.)}(hj"h]hconst}(hjkhhhNhNubah}(h]h ]j:ah"]h$]h&]uh1j-hjgubj@)}(h h]h }(hjxhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjgubj)}(hcharh]hchar}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjgubj@)}(h h]h }(hjhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjgubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjgubjW)}(hcon_idh]hcon_id}(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjgubeh}(h]h ]h"]h$]h&]noemphjnjouh1jhjubj)}(h int indexh](j)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj@)}(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&]noemphjnjouh1jhjubj)}(henum gpiod_flags flagsh](j.)}(hjGXh]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}(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]jLc.devm_fwnode_gpiod_get_indexasbuh1hhjubj@)}(h h]h }(hj9hhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjubjW)}(hflagsh]hflags}(hjGhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjubeh}(h]h ]h"]h$]h&]noemphjnjouh1jhjubj)}(hconst char *labelh](j.)}(hj"h]hconst}(hj`hhhNhNubah}(h]h ]j:ah"]h$]h&]uh1j-hj\ubj@)}(h h]h }(hjmhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hj\ubj)}(hcharh]hchar}(hj{hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\ubj@)}(h h]h }(hjhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hj\ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\ubjW)}(hlabelh]hlabel}(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhj\ubeh}(h]h ]h"]h$]h&]noemphjnjouh1jhjubeh}(h]h ]h"]h$]h&]jnjouh1jhj hhhjhKubeh}(h]h ]h"]h$]h&]jnjojvuh1j'jwjxhj hhhjhKubah}(h]jah ](j|j}eh"]h$]h&]jj)jhuh1j!hjhKhjhhubj)}(hhh]h)}(h'get a GPIO descriptor from a given nodeh]h'get a GPIO descriptor from a given node}(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)}(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)}(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.chKhj ubj")}(hhh]h)}(h GPIO consumerh]h GPIO 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$hKhjubj)}(hI``struct fwnode_handle *fwnode`` firmware node containing GPIO reference h](j)}(h ``struct fwnode_handle *fwnode``h]j )}(hjHh]hstruct fwnode_handle *fwnode}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjFubah}(h]h ]h"]h$]h&]uh1jhc/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:42: ./drivers/gpio/gpiolib-devres.chKhjBubj")}(hhh]h)}(h'firmware node containing GPIO referenceh]h'firmware node containing GPIO reference}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1hhj]hKhj^ubah}(h]h ]h"]h$]h&]uh1j!hjBubeh}(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 )}(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.chKhj{ubj")}(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!hj{ubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubj)}(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.chKhjubj")}(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&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1j!hjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubj)}(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&]uh1jhc/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:42: ./drivers/gpio/gpiolib-devres.chKhjubj")}(hhh]h)}(hGPIO initialization flagsh]hGPIO initialization flags}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhj ubah}(h]h ]h"]h$]h&]uh1j!hjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubj)}(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&]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}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjAhKhjBubah}(h]h ]h"]h$]h&]uh1j!hj&ubeh}(h]h ]h"]h$]h&]uh1jhjAhKhjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjgh]h Description}(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.chKhjubh)}(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.}(hj}hhhNhNubah}(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 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.chKhjubeh}(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}(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 }(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&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]j)}jdevm_gpiod_get_index_optionalsbc.devm_gpiod_get_index_optionalasbuh1hhjhhhjhKubj@)}(h h]h }(hj7hhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjhhhjhKubj)}(hjh]h*}(hjEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhKubjQ)}(hdevm_gpiod_get_index_optionalh]jW)}(hj4h]hdevm_gpiod_get_index_optional}(hjVhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjRubah}(h]h ](jijjeh"]h$]h&]jnjouh1jPhjhhhjhKubj)}(hT(struct device *dev, const char *con_id, unsigned int index, enum gpiod_flags flags)h](j)}(hstruct device *devh](j.)}(hj1h]hstruct}(hjqhhhNhNubah}(h]h ]j:ah"]h$]h&]uh1j-hjmubj@)}(h h]h }(hj~hhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjmubh)}(hhh]jW)}(hdeviceh]hdevice}(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]j2c.devm_gpiod_get_index_optionalasbuh1hhjmubj@)}(h h]h }(hjhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjmubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmubjW)}(hdevh]hdev}(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjmubeh}(h]h ]h"]h$]h&]noemphjnjouh1jhjiubj)}(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&]uh1jhjubj@)}(h h]h }(hj hhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjW)}(hcon_idh]hcon_id}(hj%hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjubeh}(h]h ]h"]h$]h&]noemphjnjouh1jhjiubj)}(hunsigned int indexh](j)}(hunsignedh]hunsigned}(hj>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:ubj@)}(h h]h }(hjLhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hj:ubj)}(hinth]hint}(hjZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:ubj@)}(h h]h }(hjhhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hj:ubjW)}(hindexh]hindex}(hjvhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhj:ubeh}(h]h ]h"]h$]h&]noemphjnjouh1jhjiubj)}(henum gpiod_flags flagsh](j.)}(hjGXh]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]j2c.devm_gpiod_get_index_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&]noemphjnjouh1jhjiubeh}(h]h ]h"]h$]h&]jnjouh1jhjhhhjhKubeh}(h]h ]h"]h$]h&]jnjojvuh1j'jwjxhjhhhjhKubah}(h]jah ](j|j}eh"]h$]h&]jj)jhuh1j!hjhKhjhhubj)}(hhh]h)}(h+Resource-managed gpiod_get_index_optional()h]h+Resource-managed gpiod_get_index_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&]uh1jhjhhhjhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhjhNhNubj)}(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}(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.chKhjubj)}(hhh](j)}(h%``struct device *dev`` GPIO consumer h](j)}(h``struct device *dev``h]j )}(hjDh]hstruct device *dev}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjBubah}(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 GPIO consumerh]h GPIO consumer}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjYhKhjZubah}(h]h ]h"]h$]h&]uh1j!hj>ubeh}(h]h ]h"]h$]h&]uh1jhjYhKhj;ubj)}(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}(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.chKhjwubj")}(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!hjwubeh}(h]h ]h"]h$]h&]uh1jhjhKhj;ubj)}(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&]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}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1j!hjubeh}(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&]uh1jhjubh)}(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.chKhjubh)}(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.}(hj@hhhNhNubah}(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)}(hjQh]hReturn}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1jhjOubah}(h]h ]h"]h$]h&]uh1hhc/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:42: ./drivers/gpio/gpiolib-devres.chKhjubh)}(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 }(hjghhhNhNubj)}(h **con_id**h]hcon_id}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jhjgubh of device dev, }(hjghhhNhNubj )}(h``NULL``h]hNULL}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjgubh 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.}(hjghhhNhNubeh}(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 (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 }(hjhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjhhhjhKubh)}(hhh]jW)}(h gpio_descsh]h gpio_descs}(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]j)}jdevm_gpiod_get_arraysbc.devm_gpiod_get_arrayasbuh1hhjhhhjhKubj@)}(h h]h }(hjhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjhhhjhKubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhKubjQ)}(hdevm_gpiod_get_arrayh]jW)}(hjh]hdevm_gpiod_get_array}(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjubah}(h]h ](jijjeh"]h$]h&]jnjouh1jPhjhhhjhKubj)}(h@(struct device *dev, const char *con_id, enum gpiod_flags flags)h](j)}(hstruct device *devh](j.)}(hj1h]hstruct}(hj4hhhNhNubah}(h]h ]j:ah"]h$]h&]uh1j-hj0ubj@)}(h h]h }(hjAhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hj0ubh)}(hhh]jW)}(hdeviceh]hdevice}(hjRhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjOubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjTmodnameN classnameNjj)}j]jc.devm_gpiod_get_arrayasbuh1hhj0ubj@)}(h h]h }(hjphhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hj0ubj)}(hjh]h*}(hj~hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0ubjW)}(hdevh]hdev}(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhj0ubeh}(h]h ]h"]h$]h&]noemphjnjouh1jhj,ubj)}(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&]uh1jhjubj@)}(h h]h }(hjhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjW)}(hcon_idh]hcon_id}(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjubeh}(h]h ]h"]h$]h&]noemphjnjouh1jhj,ubj)}(henum gpiod_flags flagsh](j.)}(hjGXh]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 reftargetj!modnameN classnameNjj)}j]jc.devm_gpiod_get_arrayasbuh1hhjubj@)}(h h]h }(hj=hhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjubjW)}(hflagsh]hflags}(hjKhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjubeh}(h]h ]h"]h$]h&]noemphjnjouh1jhj,ubeh}(h]h ]h"]h$]h&]jnjouh1jhjhhhjhKubeh}(h]h ]h"]h$]h&]jnjojvuh1j'jwjxhjhhhjhKubah}(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()}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1hhc/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:42: ./drivers/gpio/gpiolib-devres.chKhjrhhubah}(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 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)}(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&]uh1jhc/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:42: ./drivers/gpio/gpiolib-devres.chKhj"ubj")}(hhh]h)}(h"optional GPIO initialization flagsh]h"optional GPIO initialization flags}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj=hKhj>ubah}(h]h ]h"]h$]h&]uh1j!hj"ubeh}(h]h ]h"]h$]h&]uh1jhj=hKhjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjch]h Description}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1jhjaubah}(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.}(hjyhhhNhNubah}(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}(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 }(hjhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjhhhjhKubh)}(hhh]jW)}(h gpio_descsh]h gpio_descs}(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]j)}jdevm_gpiod_get_array_optionalsbc.devm_gpiod_get_array_optionalasbuh1hhjhhhjhKubj@)}(h h]h }(hj3hhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjhhhjhKubj)}(hjh]h*}(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhKubjQ)}(hdevm_gpiod_get_array_optionalh]jW)}(hj0h]hdevm_gpiod_get_array_optional}(hjRhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjNubah}(h]h ](jijjeh"]h$]h&]jnjouh1jPhjhhhjhKubj)}(h@(struct device *dev, const char *con_id, enum gpiod_flags flags)h](j)}(hstruct device *devh](j.)}(hj1h]hstruct}(hjmhhhNhNubah}(h]h ]j:ah"]h$]h&]uh1j-hjiubj@)}(h h]h }(hjzhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjiubh)}(hhh]jW)}(hdeviceh]hdevice}(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]j.c.devm_gpiod_get_array_optionalasbuh1hhjiubj@)}(h h]h }(hjhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjiubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjiubjW)}(hdevh]hdev}(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjiubeh}(h]h ]h"]h$]h&]noemphjnjouh1jhjeubj)}(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&]uh1jhjubj@)}(h h]h }(hjhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjW)}(hcon_idh]hcon_id}(hj!hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjubeh}(h]h ]h"]h$]h&]noemphjnjouh1jhjeubj)}(henum gpiod_flags flagsh](j.)}(hjGXh]henum}(hj:hhhNhNubah}(h]h ]j:ah"]h$]h&]uh1j-hj6ubj@)}(h h]h }(hjGhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hj6ubh)}(hhh]jW)}(h gpiod_flagsh]h gpiod_flags}(hjXhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjUubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjZmodnameN classnameNjj)}j]j.c.devm_gpiod_get_array_optionalasbuh1hhj6ubj@)}(h h]h }(hjvhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hj6ubjW)}(hflagsh]hflags}(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhj6ubeh}(h]h ]h"]h$]h&]noemphjnjouh1jhjeubeh}(h]h ]h"]h$]h&]jnjouh1jhjhhhjhKubeh}(h]h ]h"]h$]h&]jnjojvuh1j'jwjxhjhhhjhKubah}(h]jah ](j|j}eh"]h$]h&]jj)jhuh1j!hjhKhjhhubj)}(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&]uh1jhjhhhjhKubeh}(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)}(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 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 )}(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.chKhj"ubj")}(hhh]h)}(h!function within the GPIO consumerh]h!function within the GPIO consumer}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj=hKhj>ubah}(h]h ]h"]h$]h&]uh1j!hj"ubeh}(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 )}(hjah]henum gpiod_flags flags}(hjchhhNhNubah}(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.chKhj[ubj")}(hhh]h)}(h"optional GPIO initialization flagsh]h"optional GPIO initialization flags}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjvhKhjwubah}(h]h ]h"]h$]h&]uh1j!hj[ubeh}(h]h ]h"]h$]h&]uh1jhjvhKhjubeh}(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_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.}(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, ``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, }(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 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](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}(hj,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj(hhhc/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:42: ./drivers/gpio/gpiolib-devres.chMubj@)}(h h]h }(hj;hhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hj(hhhj:hMubjQ)}(hdevm_gpiod_puth]jW)}(hdevm_gpiod_puth]hdevm_gpiod_put}(hjMhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjIubah}(h]h ](jijjeh"]h$]h&]jnjouh1jPhj(hhhj:hMubj)}(h,(struct device *dev, struct gpio_desc *desc)h](j)}(hstruct device *devh](j.)}(hj1h]hstruct}(hjihhhNhNubah}(h]h ]j:ah"]h$]h&]uh1j-hjeubj@)}(h h]h }(hjvhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjeubh)}(hhh]jW)}(hdeviceh]hdevice}(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]j)}jjOsbc.devm_gpiod_putasbuh1hhjeubj@)}(h h]h }(hjhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjeubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjeubjW)}(hdevh]hdev}(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjeubeh}(h]h ]h"]h$]h&]noemphjnjouh1jhjaubj)}(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]jc.devm_gpiod_putasbuh1hhjubj@)}(h h]h }(hjhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjubj)}(hjh]h*}(hj%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjW)}(hdesch]hdesc}(hj2hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjubeh}(h]h ]h"]h$]h&]noemphjnjouh1jhjaubeh}(h]h ]h"]h$]h&]jnjouh1jhj(hhhj:hMubeh}(h]h ]h"]h$]h&]jnjojvuh1j'jwjxhj$hhhj:hMubah}(h]jah ](j|j}eh"]h$]h&]jj)jhuh1j!hj:hMhj!hhubj)}(hhh]h)}(hResource-managed gpiod_put()h]hResource-managed gpiod_put()}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1hhc/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:42: ./drivers/gpio/gpiolib-devres.chMhjYhhubah}(h]h ]h"]h$]h&]uh1jhj!hhhj:hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjtjjtjjjuh1jhhhjhNhNubj)}(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)}(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.chM hjxubj)}(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&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j!hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(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&]uh1jhc/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:42: ./drivers/gpio/gpiolib-devres.chM hjubj")}(hhh]h)}(hGPIO descriptor to dispose ofh]hGPIO descriptor to dispose of}(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&]uh1jhjxubh)}(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 hjxubh)}(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.}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1hhc/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:42: ./drivers/gpio/gpiolib-devres.chM hjxubeh}(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}(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRhhhc/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:42: ./drivers/gpio/gpiolib-devres.chMubj@)}(h h]h }(hjehhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjRhhhjdhMubjQ)}(hdevm_gpiod_unhingeh]jW)}(hdevm_gpiod_unhingeh]hdevm_gpiod_unhinge}(hjwhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjsubah}(h]h ](jijjeh"]h$]h&]jnjouh1jPhjRhhhjdhMubj)}(h,(struct device *dev, struct gpio_desc *desc)h](j)}(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]j)}jjysbc.devm_gpiod_unhingeasbuh1hhjubj@)}(h h]h }(hjhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjW)}(hdevh]hdev}(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjubeh}(h]h ]h"]h$]h&]noemphjnjouh1jhjubj)}(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}(hj#hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhj ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj%modnameN classnameNjj)}j]jc.devm_gpiod_unhingeasbuh1hhjubj@)}(h h]h }(hjAhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjubj)}(hjh]h*}(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjW)}(hdesch]hdesc}(hj\hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjubeh}(h]h ]h"]h$]h&]noemphjnjouh1jhjubeh}(h]h ]h"]h$]h&]jnjouh1jhjRhhhjdhMubeh}(h]h ]h"]h$]h&]jnjojvuh1j'jwjxhjNhhhjdhMubah}(h]jIah ](j|j}eh"]h$]h&]jj)jhuh1j!hjdhMhjKhhubj)}(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&]uh1jhjKhhhjdhMubeh}(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}(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&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j!hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(hN``struct gpio_desc *desc`` GPIO descriptor to remove resource management from 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&]uh1jhc/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:42: ./drivers/gpio/gpiolib-devres.chMhjubj")}(hhh]h)}(h2GPIO descriptor to remove resource management fromh]h2GPIO descriptor to remove resource management from}(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)}(hj;h]h Description}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj9ubah}(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](jt")}(h *DEPRECATED*h]h DEPRECATED}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1js"hjQubh 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.}(hjQhhhNhNubeh}(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.}(hjnhhhNhNubah}(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&]uh1jhjhhhc/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&]jnjouh1jPhjhhhjhM8ubj)}(h.(struct device *dev, struct gpio_descs *descs)h](j)}(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]j)}jjsbc.devm_gpiod_put_arrayasbuh1hhjubj@)}(h h]h }(hjhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjubj)}(hjh]h*}(hj&hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjW)}(hdevh]hdev}(hj3hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjubeh}(h]h ]h"]h$]h&]noemphjnjouh1jhjubj)}(hstruct gpio_descs *descsh](j.)}(hj1h]hstruct}(hjLhhhNhNubah}(h]h ]j:ah"]h$]h&]uh1j-hjHubj@)}(h h]h }(hjYhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjHubh)}(hhh]jW)}(h gpio_descsh]h gpio_descs}(hjjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjgubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjlmodnameN classnameNjj)}j]jc.devm_gpiod_put_arrayasbuh1hhjHubj@)}(h h]h }(hjhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjHubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjHubjW)}(hdescsh]hdescs}(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjHubeh}(h]h ]h"]h$]h&]noemphjnjouh1jhjubeh}(h]h ]h"]h$]h&]jnjouh1jhjhhhjhM8ubeh}(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()}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhc/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:42: ./drivers/gpio/gpiolib-devres.chM8hjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM8ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhjhNhNubj)}(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)}(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 hj ubah}(h]h ]h"]h$]h&]uh1jhc/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:42: ./drivers/gpio/gpiolib-devres.chM9hjubj")}(hhh]h)}(h GPIO consumerh]h GPIO consumer}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj#hM9hj$ubah}(h]h ]h"]h$]h&]uh1j!hjubeh}(h]h ]h"]h$]h&]uh1jhj#hM9hjubj)}(hA``struct gpio_descs *descs`` GPIO descriptor array to dispose of h](j)}(h``struct gpio_descs *descs``h]j )}(hjGh]hstruct gpio_descs *descs}(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.chM:hjAubj")}(hhh]h)}(h#GPIO descriptor array to dispose ofh]h#GPIO descriptor array to dispose of}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj\hM:hj]ubah}(h]h ]h"]h$]h&]uh1j!hjAubeh}(h]h ]h"]h$]h&]uh1jhj\hM:hjubeh}(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.chM<hjubh)}(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;hjubeh}(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&]uh1jhjhhhc/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:42: ./drivers/gpio/gpiolib-devres.chMNubj@)}(h h]h }(hjhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjhhhjhMNubjQ)}(hdevm_gpiochip_add_data_with_keyh]jW)}(hdevm_gpiochip_add_data_with_keyh]hdevm_gpiochip_add_data_with_key}(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjubah}(h]h ](jijjeh"]h$]h&]jnjouh1jPhjhhhjhMNubj)}(h{(struct device *dev, struct gpio_chip *gc, void *data, struct lock_class_key *lock_key, struct lock_class_key *request_key)h](j)}(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]j)}jjsb!c.devm_gpiochip_add_data_with_keyasbuh1hhjubj@)}(h h]h }(hjBhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjubj)}(hjh]h*}(hjPhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjW)}(hdevh]hdev}(hj]hhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjubeh}(h]h ]h"]h$]h&]noemphjnjouh1jhjubj)}(hstruct gpio_chip *gch](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_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_keyasbuh1hhjrubj@)}(h h]h }(hjhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjrubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjrubjW)}(hgch]hgc}(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjrubeh}(h]h ]h"]h$]h&]noemphjnjouh1jhjubj)}(h void *datah](j)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj@)}(h h]h }(hjhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjW)}(hdatah]hdata}(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjubeh}(h]h ]h"]h$]h&]noemphjnjouh1jhjubj)}(hstruct lock_class_key *lock_keyh](j.)}(hj1h]hstruct}(hj(hhhNhNubah}(h]h ]j:ah"]h$]h&]uh1j-hj$ubj@)}(h h]h }(hj5hhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hj$ubh)}(hhh]jW)}(hlock_class_keyh]hlock_class_key}(hjFhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjCubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjHmodnameN classnameNjj)}j]j>!c.devm_gpiochip_add_data_with_keyasbuh1hhj$ubj@)}(h h]h }(hjdhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hj$ubj)}(hjh]h*}(hjrhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$ubjW)}(hlock_keyh]hlock_key}(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhj$ubeh}(h]h ]h"]h$]h&]noemphjnjouh1jhjubj)}(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&]uh1jVhjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]j>!c.devm_gpiochip_add_data_with_keyasbuh1hhjubj@)}(h h]h }(hjhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjW)}(h request_keyh]h request_key}(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjubeh}(h]h ]h"]h$]h&]noemphjnjouh1jhjubeh}(h]h ]h"]h$]h&]jnjouh1jhjhhhjhMNubeh}(h]h ]h"]h$]h&]jnjojvuh1j'jwjxhjhhhjhMNubah}(h]jah ](j|j}eh"]h$]h&]jj)jhuh1j!hjhMNhjhhubj)}(hhh]h)}(h-Resource managed gpiochip_add_data_with_key()h]h-Resource managed gpiochip_add_data_with_key()}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhc/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:42: ./drivers/gpio/gpiolib-devres.chMNhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMNubeh}(h]h ](jfunctioneh"]h$]h&]jjjj1jj1jjjuh1jhhhjhNhNubj)}(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)}(hj;h]h Parameters}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj9ubah}(h]h ]h"]h$]h&]uh1hhc/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:42: ./drivers/gpio/gpiolib-devres.chMRhj5ubj)}(hhh](j)}(hH``struct device *dev`` pointer to the device that gpio_chip belongs to. h](j)}(h``struct device *dev``h]j )}(hjZh]hstruct device *dev}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1j hjXubah}(h]h ]h"]h$]h&]uh1jhc/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:42: ./drivers/gpio/gpiolib-devres.chMOhjTubj")}(hhh]h)}(h0pointer to the device that gpio_chip belongs to.h]h0pointer to the device that gpio_chip belongs to.}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1hhjohMOhjpubah}(h]h ]h"]h$]h&]uh1j!hjTubeh}(h]h ]h"]h$]h&]uh1jhjohMOhjQubj)}(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&]uh1jhjhMPhjQubj)}(h=``void *data`` driver-private data associated with this 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&]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}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMQhjubah}(h]h ]h"]h$]h&]uh1j!hjubeh}(h]h ]h"]h$]h&]uh1jhjhMQhjQubj)}(h?``struct lock_class_key *lock_key`` lockdep class for IRQ lock h](j)}(h#``struct lock_class_key *lock_key``h]j )}(hjh]hstruct lock_class_key *lock_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.chMRhjubj")}(hhh]h)}(hlockdep class for IRQ lockh]hlockdep class for IRQ lock}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMRhjubah}(h]h ]h"]h$]h&]uh1j!hjubeh}(h]h ]h"]h$]h&]uh1jhjhMRhjQubj)}(hE``struct lock_class_key *request_key`` lockdep class for IRQ request h](j)}(h&``struct lock_class_key *request_key``h]j )}(hj>h]h"struct lock_class_key *request_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.chMShj8ubj")}(hhh]h)}(hlockdep class for IRQ requesth]hlockdep class for IRQ request}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjShMShjTubah}(h]h ]h"]h$]h&]uh1j!hj8ubeh}(h]h ]h"]h$]h&]uh1jhjShMShjQubeh}(h]h ]h"]h$]h&]uh1jhj5ubh)}(h **Context**h]j)}(hjyh]hContext}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjwubah}(h]h ]h"]h$]h&]uh1hhc/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:42: ./drivers/gpio/gpiolib-devres.chMUhj5ubh)}(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.chMUhj5ubh)}(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.chMWhj5ubh)}(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.chMVhj5ubh)}(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.chMXhj5ubh)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhc/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:42: ./drivers/gpio/gpiolib-devres.chMYhj5ubeh}(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}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhK.ubj )}(hhh]h}(h]h ]h"]h$]h&]entries](jgpiod_export (C function)c.gpiod_exporthNtauh1j hjhhhNhNubj)}(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&]uh1jhj!hhhb/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:48: ./drivers/gpio/gpiolib-sysfs.chMubj@)}(h h]h }(hj4hhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hj!hhhj3hMubjQ)}(h gpiod_exporth]jW)}(h gpiod_exporth]h gpiod_export}(hjFhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjBubah}(h]h ](jijjeh"]h$]h&]jnjouh1jPhj!hhhj3hMubj)}(h3(struct gpio_desc *desc, bool direction_may_change)h](j)}(hstruct gpio_desc *desch](j.)}(hj1h]hstruct}(hjbhhhNhNubah}(h]h ]j:ah"]h$]h&]uh1j-hj^ubj@)}(h h]h }(hjohhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hj^ubh)}(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]j)}jjHsbc.gpiod_exportasbuh1hhj^ubj@)}(h h]h }(hjhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hj^ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^ubjW)}(hdesch]hdesc}(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhj^ubeh}(h]h ]h"]h$]h&]noemphjnjouh1jhjZubj)}(hbool direction_may_changeh](j)}(hj-h]hbool}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj@)}(h h]h }(hjhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjubjW)}(hdirection_may_changeh]hdirection_may_change}(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjubeh}(h]h ]h"]h$]h&]noemphjnjouh1jhjZubeh}(h]h ]h"]h$]h&]jnjouh1jhj!hhhj3hMubeh}(h]h ]h"]h$]h&]jnjojvuh1j'jwjxhjhhhj3hMubah}(h]jah ](j|j}eh"]h$]h&]jj)jhuh1j!hj3hMhjhhubj)}(hhh]h)}(hexport a GPIO through sysfsh]hexport a GPIO through sysfs}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:48: ./drivers/gpio/gpiolib-sysfs.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhj3hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj1jj1jjjuh1jhhhjhNhNubj)}(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)}(hj;h]h Parameters}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj9ubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:48: ./drivers/gpio/gpiolib-sysfs.chMhj5ubj)}(hhh](j)}(hE``struct gpio_desc *desc`` GPIO to make available, already requested h](j)}(h``struct gpio_desc *desc``h]j )}(hjZh]hstruct gpio_desc *desc}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1j hjXubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:48: ./drivers/gpio/gpiolib-sysfs.chMhjTubj")}(hhh]h)}(h)GPIO to make available, already requestedh]h)GPIO to make available, already requested}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1hhjohMhjpubah}(h]h ]h"]h$]h&]uh1j!hjTubeh}(h]h ]h"]h$]h&]uh1jhjohMhjQubj)}(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.chMhjubj")}(hhh]h)}(h+true if userspace may change GPIO directionh]h+true if userspace may change GPIO direction}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j!hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjQubeh}(h]h ]h"]h$]h&]uh1jhj5ubh)}(h **Context**h]j)}(hjh]hContext}(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.chMhj5ubh)}(harch_initcall or laterh]harch_initcall or later}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:48: ./drivers/gpio/gpiolib-sysfs.chMhj5ubh)}(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.chMhj5ubh)}(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.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:48: ./drivers/gpio/gpiolib-sysfs.chMhj5ubh)}(h **Return**h]j)}(hjh]hReturn}(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.chMhj5ubh)}(h+0 on success, or negative errno on failure.h]h+0 on success, or negative errno on failure.}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:48: ./drivers/gpio/gpiolib-sysfs.chMhj5ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubj )}(hhh]h}(h]h ]h"]h$]h&]entries](jgpiod_export_link (C function)c.gpiod_export_linkhNtauh1j hjhhhNhNubj)}(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}(hjahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]hhhb/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:48: ./drivers/gpio/gpiolib-sysfs.chMuubj@)}(h h]h }(hjphhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hj]hhhjohMuubjQ)}(hgpiod_export_linkh]jW)}(hgpiod_export_linkh]hgpiod_export_link}(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhj~ubah}(h]h ](jijjeh"]h$]h&]jnjouh1jPhj]hhhjohMuubj)}(h>(struct device *dev, const char *name, struct gpio_desc *desc)h](j)}(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]j)}jjsbc.gpiod_export_linkasbuh1hhjubj@)}(h h]h }(hjhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjW)}(hdevh]hdev}(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjubeh}(h]h ]h"]h$]h&]noemphjnjouh1jhjubj)}(hconst char *nameh](j.)}(hj"h]hconst}(hjhhhNhNubah}(h]h ]j:ah"]h$]h&]uh1j-hj ubj@)}(h h]h }(hjhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hj ubj)}(hcharh]hchar}(hj+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj@)}(h h]h }(hj9hhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hj ubj)}(hjh]h*}(hjGhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubjW)}(hnameh]hname}(hjThhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhj ubeh}(h]h ]h"]h$]h&]noemphjnjouh1jhjubj)}(hstruct gpio_desc *desch](j.)}(hj1h]hstruct}(hjmhhhNhNubah}(h]h ]j:ah"]h$]h&]uh1j-hjiubj@)}(h h]h }(hjzhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjiubh)}(hhh]jW)}(h gpio_desch]h gpio_desc}(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]jc.gpiod_export_linkasbuh1hhjiubj@)}(h h]h }(hjhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjiubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjiubjW)}(hdesch]hdesc}(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjiubeh}(h]h ]h"]h$]h&]noemphjnjouh1jhjubeh}(h]h ]h"]h$]h&]jnjouh1jhj]hhhjohMuubeh}(h]h ]h"]h$]h&]jnjojvuh1j'jwjxhjYhhhjohMuubah}(h]jTah ](j|j}eh"]h$]h&]jj)jhuh1j!hjohMuhjVhhubj)}(hhh]h)}(h,create a sysfs link to an exported GPIO nodeh]h,create a sysfs link to an exported GPIO node}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:48: ./drivers/gpio/gpiolib-sysfs.chMuhjhhubah}(h]h ]h"]h$]h&]uh1jhjVhhhjohMuubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhjhNhNubj)}(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)}(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.chMyhj ubj)}(hhh](j)}(h<``struct device *dev`` device under which to create symlink h](j)}(h``struct device *dev``h]j )}(hj/h]hstruct device *dev}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1j hj-ubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:48: ./drivers/gpio/gpiolib-sysfs.chMvhj)ubj")}(hhh]h)}(h$device under which to create symlinkh]h$device under which to create symlink}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjDhMvhjEubah}(h]h ]h"]h$]h&]uh1j!hj)ubeh}(h]h ]h"]h$]h&]uh1jhjDhMvhj&ubj)}(h)``const char *name`` name of the symlink h](j)}(h``const char *name``h]j )}(hjhh]hconst char *name}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjfubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:48: ./drivers/gpio/gpiolib-sysfs.chMwhjbubj")}(hhh]h)}(hname of the symlinkh]hname of the symlink}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj}hMwhj~ubah}(h]h ]h"]h$]h&]uh1j!hjbubeh}(h]h ]h"]h$]h&]uh1jhj}hMwhj&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.chMxhjubj")}(hhh]h)}(h+GPIO to create symlink to, already exportedh]h+GPIO to create symlink to, already exported}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMxhjubah}(h]h ]h"]h$]h&]uh1j!hjubeh}(h]h ]h"]h$]h&]uh1jhjhMxhj&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&]uh1hhb/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:48: ./drivers/gpio/gpiolib-sysfs.chMzhj ubh)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:48: ./drivers/gpio/gpiolib-sysfs.chMyhj ubh)}(h **Return**h]j)}(hjh]hReturn}(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|hj ubh)}(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.chM}hj ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubj )}(hhh]h}(h]h ]h"]h$]h&]entries](jgpiod_unexport (C function)c.gpiod_unexporthNtauh1j hjhhhNhNubj)}(hhh](j")}(h,void gpiod_unexport (struct gpio_desc *desc)h]j()}(h+void gpiod_unexport(struct gpio_desc *desc)h](j)}(hvoidh]hvoid}(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDhhhb/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:48: ./drivers/gpio/gpiolib-sysfs.chMubj@)}(h h]h }(hjWhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjDhhhjVhMubjQ)}(hgpiod_unexporth]jW)}(hgpiod_unexporth]hgpiod_unexport}(hjihhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjeubah}(h]h ](jijjeh"]h$]h&]jnjouh1jPhjDhhhjVhMubj)}(h(struct gpio_desc *desc)h]j)}(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]j)}jjksbc.gpiod_unexportasbuh1hhjubj@)}(h h]h }(hjhhhNhNubah}(h]h ]jLah"]h$]h&]uh1j?hjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjW)}(hdesch]hdesc}(hjhhhNhNubah}(h]h ]jbah"]h$]h&]uh1jVhjubeh}(h]h ]h"]h$]h&]noemphjnjouh1jhj}ubah}(h]h ]h"]h$]h&]jnjouh1jhjDhhhjVhMubeh}(h]h ]h"]h$]h&]jnjojvuh1j'jwjxhj@hhhjVhMubah}(h]j;ah ](j|j}eh"]h$]h&]jj)jhuh1j!hjVhMhj=hhubj)}(hhh]h)}(h reverse effect of gpiod_export()h]h reverse effect of gpiod_export()}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:48: ./drivers/gpio/gpiolib-sysfs.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhj=hhhjVhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj jj jjjuh1jhhhjhNhNubj)}(hy**Parameters** ``struct gpio_desc *desc`` GPIO to make unavailable **Description** This is implicit on gpiod_free().h](h)}(h**Parameters**h]j)}(hj*h]h Parameters}(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.chMhj$ubj)}(hhh]j)}(h4``struct gpio_desc *desc`` GPIO to make unavailable h](j)}(h``struct gpio_desc *desc``h]j )}(hjIh]hstruct gpio_desc *desc}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjGubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:48: ./drivers/gpio/gpiolib-sysfs.chMhjCubj")}(hhh]h)}(hGPIO to make unavailableh]hGPIO to make unavailable}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj^hMhj_ubah}(h]h ]h"]h$]h&]uh1j!hjCubeh}(h]h ]h"]h$]h&]uh1jhj^hMhj@ubah}(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&]uh1jhjhhhNhNubeh}(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_handlerjerror_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}(jjj3j0jPjMjjjjjju nametypes}(jj3jPjjjuh}(jhj0hjj#jA jF j+j0jj j[j`j1j6jjj[j`jj j"j"je$jj$jq&jv&jf(jk(j)j)j+j+j-j-j0j0j1j1j3j3j?5jD5j6j6jD:jI:j;j;j=j=j?j?j@j@jBjBj!Ej&Ej,Gj1GjIjIjKjKjOjOjRjRjOTjTTjVjVjZjZj_\jd\j^j ^j`j"`j3bj8bj>djCdjIfjNfjxhj}hjjjjjCljHljmjmjaojfoj$qj)qjtjtj@xjExjezjjzj|j|jjjjjBjGjYj^jjj'j,j2j7jjjjjFjKjԗjٗjjjj#jjj:j?jjjjjKjPjjjjjjjҳj׳jqjvjjj7j<j^jcjjjMj6jSjXjjjMjRjjjjSjpjujEjJjmjrjjjjjjjAjFjj jjjjjjjj$jIjNjjjjjjjjjTjYj;j@u 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)}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjGubah}(h]h ]h"]h$]h&]levelKtypeINFOsource_/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:36: ./drivers/gpio/gpiolib-of.clineMNuh1jEhjubatransform_messages] transformerN include_log] decorationNhhub.