Home
last modified time | relevance | path

Searched refs:sizeof_buf (Results 1 – 3 of 3) sorted by relevance

/linux-6.15/lib/tests/
H A Dfortify_kunit.c538 size_t sizeof_buf = sizeof(pad.buf); in fortify_test_strncpy() local
540 OPTIMIZER_HIDE_VAR(sizeof_buf); in fortify_test_strncpy()
544 KUNIT_EXPECT_EQ(test, pad.buf[sizeof_buf - 1], '\0'); in fortify_test_strncpy()
545 KUNIT_EXPECT_EQ(test, pad.buf[sizeof_buf - 2], '\0'); in fortify_test_strncpy()
546 KUNIT_EXPECT_EQ(test, pad.buf[sizeof_buf - 3], '\0'); in fortify_test_strncpy()
554 KUNIT_EXPECT_EQ(test, pad.buf[sizeof_buf - 1], '\0'); in fortify_test_strncpy()
555 KUNIT_EXPECT_NE(test, pad.buf[sizeof_buf - 2], '\0'); in fortify_test_strncpy()
556 KUNIT_EXPECT_NE(test, pad.buf[sizeof_buf - 3], '\0'); in fortify_test_strncpy()
563 KUNIT_EXPECT_NE(test, pad.buf[sizeof_buf - 1], '\0'); in fortify_test_strncpy()
596 size_t sizeof_buf = sizeof(pad.buf); in fortify_test_strscpy() local
[all …]
/linux-6.15/drivers/input/tablet/
H A Dpegasus_notetaker.c93 const int sizeof_buf = len + 2; in pegasus_control_msg() local
98 cmd_buf = kmalloc(sizeof_buf, GFP_KERNEL); in pegasus_control_msg()
110 0, 0, cmd_buf, sizeof_buf, in pegasus_control_msg()
115 if (unlikely(result != sizeof_buf)) { in pegasus_control_msg()
H A Daiptek.c886 const int sizeof_buf = 3 * sizeof(u8); in aiptek_command() local
890 buf = kmalloc(sizeof_buf, GFP_KERNEL); in aiptek_command()
899 aiptek_set_report(aiptek, 3, 2, buf, sizeof_buf)) != sizeof_buf) { in aiptek_command()
916 const int sizeof_buf = 3 * sizeof(u8); in aiptek_query() local
920 buf = kmalloc(sizeof_buf, GFP_KERNEL); in aiptek_query()
934 if (aiptek_get_report(aiptek, 3, 2, buf, sizeof_buf) != sizeof_buf) { in aiptek_query()