Lines Matching defs:lines
27 * ioctl, including request and release for lines of gpio, read/write
29 * lines of gpio, user should use this type of api.
32 * following api will request gpio lines, do the operation and then
33 * release these lines.
37 * gpiotools_request_line() - request gpio lines in a gpiochip
40 * @lines: An array desired lines, specified by offset
42 * @num_lines: The number of lines to request.
49 * Request gpio lines through the ioctl provided by chardev. User
52 * gpiotools_release_line() to release these lines after that.
57 int gpiotools_request_line(const char *device_name, unsigned int *lines,
82 req.offsets[i] = lines[i];
184 unsigned int lines[] = {line};
186 ret = gpiotools_gets(device_name, lines, 1, &value);
194 * gpiotools_gets() - Get values from specific lines.
197 * @lines: An array desired lines, specified by offset
199 * @num_lines: The number of lines to request.
205 int gpiotools_gets(const char *device_name, unsigned int *lines,
216 ret = gpiotools_request_line(device_name, lines, num_lines,
245 unsigned int lines[] = {line};
247 return gpiotools_sets(device_name, lines, 1, &value);
251 * gpiotools_sets() - Set values to specific lines.
254 * @lines: An array desired lines, specified by offset
256 * @num_lines: The number of lines to request.
263 int gpiotools_sets(const char *device_name, unsigned int *lines,
278 ret = gpiotools_request_line(device_name, lines, num_lines,