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:
43 for the GPIO. Values can be:
45 * GPIOD_ASIS or 0 to not initialize the GPIO at all. The direction must be set
52 with IS_ERR() (they will never return a NULL pointer). -ENOENT will be returned
58 gpiod_get_index_optional() functions can be used. These functions return NULL
70 For a function using multiple GPIOs all of those can be obtained with one call:
118 A GPIO descriptor can be disposed of using the gpiod_put() function:
122 For an array of GPIOs this function can be used:
149 The return value is zero for success, else a negative errno. It should be
171 Most GPIO controllers can be accessed with memory read/write instructions. Those
172 don't need to sleep, and can safely be done from inside hard (non-threaded) IRQ
181 of an output pin, the value returned should be what's seen on the pin. That
188 Also, using these calls for GPIOs that can't safely be accessed without sleeping
194 Some GPIO controllers must be accessed using message based buses like I2C or
197 sleeping, which can't be done from inside IRQ handlers.
210 IRQ handler, and those accessors must be used instead of spinlock-safe
214 that can't be accessed from hardIRQ handlers, these calls act the same as the
232 The active-low state of a GPIO can also be queried using the following call:
236 Note that these functions should only be used with great moderation ; a driver
257 The array can be an arbitrary set of GPIOs. The functions will try to set
260 can be expected. If simultaneous setting is not possible the GPIOs will be set
268 The descriptor array can be obtained using the gpiod_get_array() function
270 matches the desired group of GPIOs, those GPIOs can be set by simply using
278 descriptors may be obtained using any combination of gpiod_get() and
279 gpiod_get_array(). Afterwards the array of descriptors has to be setup
280 manually before it can be used with gpiod_set_array().
282 Note that for optimal performance GPIOs belonging to the same chip should be
288 GPIO lines can quite often be used as IRQs. You can get the IRQ number
293 It will return an IRQ number, or an negative errno code if the mapping can't be
294 done (most likely because that particular GPIO cannot be used as IRQ). It is an
299 Non-error values returned from gpiod_to_irq() can be passed to request_irq() or
300 free_irq(). They will often be stored into IRQ resources for platform devices,
315 which, among other things, may be used to provide connection IDs for specific
317 case, it will be handled by the GPIO subsystem automatically. However, if the
319 connection IDs need to be provided by device drivers.
334 The GPIO number returned by desc_to_gpio() can be safely used as long as the