Lines Matching refs:lineinfo
2373 struct gpioline_info lineinfo; in lineinfo_get_v1() local
2376 if (copy_from_user(&lineinfo, ip, sizeof(lineinfo))) in lineinfo_get_v1()
2380 desc = gpio_device_get_desc(cdev->gdev, lineinfo.line_offset); in lineinfo_get_v1()
2388 if (test_and_set_bit(lineinfo.line_offset, cdev->watched_lines)) in lineinfo_get_v1()
2393 gpio_v2_line_info_to_v1(&lineinfo_v2, &lineinfo); in lineinfo_get_v1()
2395 if (copy_to_user(ip, &lineinfo, sizeof(lineinfo))) { in lineinfo_get_v1()
2397 clear_bit(lineinfo.line_offset, cdev->watched_lines); in lineinfo_get_v1()
2409 struct gpio_v2_line_info lineinfo; in lineinfo_get() local
2411 if (copy_from_user(&lineinfo, ip, sizeof(lineinfo))) in lineinfo_get()
2414 if (!mem_is_zero(lineinfo.padding, sizeof(lineinfo.padding))) in lineinfo_get()
2417 desc = gpio_device_get_desc(cdev->gdev, lineinfo.offset); in lineinfo_get()
2426 if (test_and_set_bit(lineinfo.offset, cdev->watched_lines)) in lineinfo_get()
2429 gpio_desc_to_lineinfo(desc, &lineinfo, false); in lineinfo_get()
2431 if (copy_to_user(ip, &lineinfo, sizeof(lineinfo))) { in lineinfo_get()
2433 clear_bit(lineinfo.offset, cdev->watched_lines); in lineinfo_get()