Lines Matching full:lines
30 * ioctl, including request and release for lines of gpio, read/write
32 * lines of gpio, user should use this type of api.
35 * following api will request gpio lines, do the operation and then
36 * release these lines.
39 * gpiotools_request_linehandle() - request gpio lines in a gpiochip
42 * @lines: An array desired lines, specified by offset
44 * @nline: The number of lines to request.
53 * Request gpio lines through the ioctl provided by chardev. User
56 * gpiotools_release_linehandle() to release these lines after that.
61 int gpiotools_request_linehandle(const char *device_name, unsigned int *lines, in gpiotools_request_linehandle() argument
85 req.lineoffsets[i] = lines[i]; in gpiotools_request_linehandle()
89 req.lines = nlines; in gpiotools_request_linehandle()
187 unsigned int lines[] = {line}; in gpiotools_get() local
189 gpiotools_gets(device_name, lines, 1, &data); in gpiotools_get()
195 * gpiotools_gets(): Get values from specific lines.
198 * @lines: An array desired lines, specified by offset
200 * @nline: The number of lines to request.
206 int gpiotools_gets(const char *device_name, unsigned int *lines, in gpiotools_gets() argument
213 ret = gpiotools_request_linehandle(device_name, lines, nlines, in gpiotools_gets()
239 unsigned int lines[] = {line}; in gpiotools_set() local
242 return gpiotools_sets(device_name, lines, 1, &data); in gpiotools_set()
246 * gpiotools_sets(): Set values to specific lines.
249 * @lines: An array desired lines, specified by offset
251 * @nline: The number of lines to request.
258 int gpiotools_sets(const char *device_name, unsigned int *lines, in gpiotools_sets() argument
263 ret = gpiotools_request_linehandle(device_name, lines, nlines, in gpiotools_sets()