Lines Matching refs:lflags
134 static void linehandle_flags_to_desc_flags(u32 lflags, unsigned long *flagsp) in linehandle_flags_to_desc_flags() argument
137 lflags & GPIOHANDLE_REQUEST_ACTIVE_LOW); in linehandle_flags_to_desc_flags()
139 lflags & GPIOHANDLE_REQUEST_OPEN_DRAIN); in linehandle_flags_to_desc_flags()
141 lflags & GPIOHANDLE_REQUEST_OPEN_SOURCE); in linehandle_flags_to_desc_flags()
143 lflags & GPIOHANDLE_REQUEST_BIAS_PULL_UP); in linehandle_flags_to_desc_flags()
145 lflags & GPIOHANDLE_REQUEST_BIAS_PULL_DOWN); in linehandle_flags_to_desc_flags()
147 lflags & GPIOHANDLE_REQUEST_BIAS_DISABLE); in linehandle_flags_to_desc_flags()
156 u32 lflags; in linehandle_set_config() local
161 lflags = gcnf.flags; in linehandle_set_config()
162 ret = linehandle_validate_flags(lflags); in linehandle_set_config()
174 if (lflags & GPIOHANDLE_REQUEST_OUTPUT) { in linehandle_set_config()
180 } else if (lflags & GPIOHANDLE_REQUEST_INPUT) { in linehandle_set_config()
291 u32 lflags; in linehandle_create() local
298 lflags = handlereq.flags; in linehandle_create()
300 ret = linehandle_validate_flags(lflags); in linehandle_create()
347 if (lflags & GPIOHANDLE_REQUEST_OUTPUT) { in linehandle_create()
353 } else if (lflags & GPIOHANDLE_REQUEST_INPUT) { in linehandle_create()
1699 u32 lflags; in lineevent_create() local
1709 lflags = eventreq.handleflags; in lineevent_create()
1717 if ((lflags & ~GPIOHANDLE_REQUEST_VALID_FLAGS) || in lineevent_create()
1722 if ((lflags & GPIOHANDLE_REQUEST_OUTPUT) || in lineevent_create()
1723 (lflags & GPIOHANDLE_REQUEST_OPEN_DRAIN) || in lineevent_create()
1724 (lflags & GPIOHANDLE_REQUEST_OPEN_SOURCE)) in lineevent_create()
1728 if (((lflags & GPIOHANDLE_REQUEST_BIAS_DISABLE) && in lineevent_create()
1729 (lflags & (GPIOHANDLE_REQUEST_BIAS_PULL_DOWN | in lineevent_create()
1731 ((lflags & GPIOHANDLE_REQUEST_BIAS_PULL_DOWN) && in lineevent_create()
1732 (lflags & GPIOHANDLE_REQUEST_BIAS_PULL_UP))) in lineevent_create()
1758 linehandle_flags_to_desc_flags(lflags, &desc->flags); in lineevent_create()