Lines Matching refs:lineinfo
2402 struct gpioline_info lineinfo; in lineinfo_get_v1() local
2405 if (copy_from_user(&lineinfo, ip, sizeof(lineinfo))) in lineinfo_get_v1()
2409 desc = gpiochip_get_desc(cdev->gdev->chip, lineinfo.line_offset); in lineinfo_get_v1()
2417 if (test_and_set_bit(lineinfo.line_offset, cdev->watched_lines)) in lineinfo_get_v1()
2422 gpio_v2_line_info_to_v1(&lineinfo_v2, &lineinfo); in lineinfo_get_v1()
2424 if (copy_to_user(ip, &lineinfo, sizeof(lineinfo))) { in lineinfo_get_v1()
2426 clear_bit(lineinfo.line_offset, cdev->watched_lines); in lineinfo_get_v1()
2438 struct gpio_v2_line_info lineinfo; in lineinfo_get() local
2440 if (copy_from_user(&lineinfo, ip, sizeof(lineinfo))) in lineinfo_get()
2443 if (memchr_inv(lineinfo.padding, 0, sizeof(lineinfo.padding))) in lineinfo_get()
2446 desc = gpiochip_get_desc(cdev->gdev->chip, lineinfo.offset); in lineinfo_get()
2455 if (test_and_set_bit(lineinfo.offset, cdev->watched_lines)) in lineinfo_get()
2458 gpio_desc_to_lineinfo(desc, &lineinfo); in lineinfo_get()
2460 if (copy_to_user(ip, &lineinfo, sizeof(lineinfo))) { in lineinfo_get()
2462 clear_bit(lineinfo.offset, cdev->watched_lines); in lineinfo_get()