Lines Matching refs:lflags
181 static void linehandle_flags_to_desc_flags(u32 lflags, unsigned long *flagsp) in linehandle_flags_to_desc_flags() argument
184 lflags & GPIOHANDLE_REQUEST_ACTIVE_LOW); in linehandle_flags_to_desc_flags()
186 lflags & GPIOHANDLE_REQUEST_OPEN_DRAIN); in linehandle_flags_to_desc_flags()
188 lflags & GPIOHANDLE_REQUEST_OPEN_SOURCE); in linehandle_flags_to_desc_flags()
190 lflags & GPIOHANDLE_REQUEST_BIAS_PULL_UP); in linehandle_flags_to_desc_flags()
192 lflags & GPIOHANDLE_REQUEST_BIAS_PULL_DOWN); in linehandle_flags_to_desc_flags()
194 lflags & GPIOHANDLE_REQUEST_BIAS_DISABLE); in linehandle_flags_to_desc_flags()
203 u32 lflags; in linehandle_set_config() local
208 lflags = gcnf.flags; in linehandle_set_config()
209 ret = linehandle_validate_flags(lflags); in linehandle_set_config()
221 if (lflags & GPIOHANDLE_REQUEST_OUTPUT) { in linehandle_set_config()
227 } else if (lflags & GPIOHANDLE_REQUEST_INPUT) { in linehandle_set_config()
348 u32 lflags; in linehandle_create() local
355 lflags = handlereq.flags; in linehandle_create()
357 ret = linehandle_validate_flags(lflags); in linehandle_create()
403 if (lflags & GPIOHANDLE_REQUEST_OUTPUT) { in linehandle_create()
409 } else if (lflags & GPIOHANDLE_REQUEST_INPUT) { in linehandle_create()
2089 u32 lflags; in lineevent_create() local
2099 lflags = eventreq.handleflags; in lineevent_create()
2107 if ((lflags & ~GPIOHANDLE_REQUEST_VALID_FLAGS) || in lineevent_create()
2112 if ((lflags & GPIOHANDLE_REQUEST_OUTPUT) || in lineevent_create()
2113 (lflags & GPIOHANDLE_REQUEST_OPEN_DRAIN) || in lineevent_create()
2114 (lflags & GPIOHANDLE_REQUEST_OPEN_SOURCE)) in lineevent_create()
2118 if (((lflags & GPIOHANDLE_REQUEST_BIAS_DISABLE) && in lineevent_create()
2119 (lflags & (GPIOHANDLE_REQUEST_BIAS_PULL_DOWN | in lineevent_create()
2121 ((lflags & GPIOHANDLE_REQUEST_BIAS_PULL_DOWN) && in lineevent_create()
2122 (lflags & GPIOHANDLE_REQUEST_BIAS_PULL_UP))) in lineevent_create()
2147 linehandle_flags_to_desc_flags(lflags, &desc->flags); in lineevent_create()