Lines Matching refs:be
27 non-forgeable handler that must be obtained through a call to one of the
36 device that displays digits), an additional index argument can be specified:
46 for the GPIO. Values can be:
48 * GPIOD_ASIS or 0 to not initialize the GPIO at all. The direction must be set
55 with IS_ERR() (they will never return a NULL pointer). -ENOENT will be returned
61 gpiod_get_index_optional() functions can be used. These functions return NULL
73 For a function using multiple GPIOs all of those can be obtained with one call:
121 A GPIO descriptor can be disposed of using the gpiod_put() function:
125 For an array of GPIOs this function can be used:
152 The return value is zero for success, else a negative errno. It should be
174 Most GPIO controllers can be accessed with memory read/write instructions. Those
175 don't need to sleep, and can safely be done from inside hard (non-threaded) IRQ
184 of an output pin, the value returned should be what's seen on the pin. That
191 Also, using these calls for GPIOs that can't safely be accessed without sleeping
197 Some GPIO controllers must be accessed using message based buses like I2C or
200 sleeping, which can't be done from inside IRQ handlers.
213 IRQ handler, and those accessors must be used instead of spinlock-safe
217 that can't be accessed from hardIRQ handlers, these calls act the same as the
235 The active-low state of a GPIO can also be queried using the following call:
239 Note that these functions should only be used with great moderation ; a driver
249 This means that they check whether the GPIO is configured to be active-low,
255 level will be driven accordingly.
259 will be driven low.
271 Please note again that the set_raw/get_raw functions should be avoided as much
293 The array can be an arbitrary set of GPIOs. The functions will try to set
296 can be expected. If simultaneous setting is not possible the GPIOs will be set
304 The descriptor array can be obtained using the gpiod_get_array() function
306 matches the desired group of GPIOs, those GPIOs can be set by simply using
314 descriptors may be obtained using any combination of gpiod_get() and
315 gpiod_get_array(). Afterwards the array of descriptors has to be setup
316 manually before it can be used with gpiod_set_array().
318 Note that for optimal performance GPIOs belonging to the same chip should be
324 GPIO lines can quite often be used as IRQs. You can get the IRQ number
329 It will return an IRQ number, or a negative errno code if the mapping can't be
330 done (most likely because that particular GPIO cannot be used as IRQ). It is an
335 Non-error values returned from gpiod_to_irq() can be passed to request_irq() or
336 free_irq(). They will often be stored into IRQ resources for platform devices,
351 which, among other things, may be used to provide connection IDs for specific
353 case, it will be handled by the GPIO subsystem automatically. However, if the
355 connection IDs need to be provided by device drivers.
370 The GPIO number returned by desc_to_gpio() can be safely used as long as the