Searched refs:DEVICE_MAJOR_VALID (Results 1 – 7 of 7) sorted by relevance
31 assert_se(DEVICE_MAJOR_VALID(0U)); in TEST()34 assert_se(DEVICE_MAJOR_VALID(1U)); in TEST()37 assert_se(!DEVICE_MAJOR_VALID(-1U)); in TEST()40 assert_se(DEVICE_MAJOR_VALID(1U << 10)); in TEST()43 assert_se(DEVICE_MAJOR_VALID((1U << 12) - 1)); in TEST()46 assert_se(!DEVICE_MAJOR_VALID((1U << 12))); in TEST()49 assert_se(!DEVICE_MAJOR_VALID(1U << 25)); in TEST()52 assert_se(!DEVICE_MAJOR_VALID(UINT32_MAX)); in TEST()55 assert_se(!DEVICE_MAJOR_VALID(UINT64_MAX)); in TEST()58 assert_se(DEVICE_MAJOR_VALID(major(0))); in TEST()
18 #define DEVICE_MAJOR_VALID(x) \ macro
35 if (!DEVICE_MAJOR_VALID(x) || !DEVICE_MINOR_VALID(y)) in parse_devnum()
430 if (!DEVICE_MAJOR_VALID(major) || !DEVICE_MINOR_VALID(minor)) in method_take_device()480 if (!DEVICE_MAJOR_VALID(major) || !DEVICE_MINOR_VALID(minor)) in method_release_device()511 if (!DEVICE_MAJOR_VALID(major) || !DEVICE_MINOR_VALID(minor)) in method_pause_device_complete()
431 if (safe_atou(name, &maj) >= 0 && DEVICE_MAJOR_VALID(maj)) in bpf_devices_allow_list_major()
615 if (!DEVICE_MAJOR_VALID(maj)) in device_set_devnum()
811 if (!DEVICE_MAJOR_VALID(k)) in oci_device_major()