Lines Matching refs:strlen
14 (3 + strlen(TEST_STRING_NAME) + 1)
19 (TEST_STRING_BUF_OFFSET + 3 + strlen(TEST_STRING_DATA) + 1)
21 (TEST_NAMED_U32_BUF_OFFSET + 3 + strlen(TEST_U32_NAME) + 1)
30 (TEST_NAMED_U64_BUF_OFFSET + 3 + strlen(TEST_U64_NAME) + 1)
37 (TEST_NAMED_BLOB_BUF_OFFSET + 3 + strlen(TEST_BLOB_NAME) + 1)
44 (TEST_NAMED_ARRAY_BUF_OFFSET + 3 + strlen(TEST_ARRAY_NAME) + 1)
68 *(buf + 1) = strlen(TEST_STRING_NAME) + 1; in build_aa_ext_struct()
73 *(buf + 1) = strlen(TEST_STRING_DATA) + 1; in build_aa_ext_struct()
78 *(buf + 1) = strlen(TEST_U32_NAME) + 1; in build_aa_ext_struct()
80 *(buf + 3 + strlen(TEST_U32_NAME) + 1) = AA_U32; in build_aa_ext_struct()
81 *((u32 *)(buf + 3 + strlen(TEST_U32_NAME) + 2)) = TEST_U32_DATA; in build_aa_ext_struct()
85 *(buf + 1) = strlen(TEST_U64_NAME) + 1; in build_aa_ext_struct()
87 *(buf + 3 + strlen(TEST_U64_NAME) + 1) = AA_U64; in build_aa_ext_struct()
88 *((u64 *)(buf + 3 + strlen(TEST_U64_NAME) + 2)) = TEST_U64_DATA; in build_aa_ext_struct()
92 *(buf + 1) = strlen(TEST_BLOB_NAME) + 1; in build_aa_ext_struct()
94 *(buf + 3 + strlen(TEST_BLOB_NAME) + 1) = AA_BLOB; in build_aa_ext_struct()
95 *(buf + 3 + strlen(TEST_BLOB_NAME) + 2) = TEST_BLOB_DATA_SIZE; in build_aa_ext_struct()
96 memcpy(buf + 3 + strlen(TEST_BLOB_NAME) + 6, in build_aa_ext_struct()
101 *(buf + 1) = strlen(TEST_ARRAY_NAME) + 1; in build_aa_ext_struct()
103 *(buf + 3 + strlen(TEST_ARRAY_NAME) + 1) = AA_ARRAY; in build_aa_ext_struct()
104 *((u16 *)(buf + 3 + strlen(TEST_ARRAY_NAME) + 2)) = TEST_ARRAY_SIZE; in build_aa_ext_struct()
240 KUNIT_EXPECT_EQ(test, size, strlen(TEST_STRING_DATA) + 1); in policy_unpack_test_unpack_str_with_null_name()
252 KUNIT_EXPECT_EQ(test, size, strlen(TEST_STRING_DATA) + 1); in policy_unpack_test_unpack_str_with_name()
264 + strlen(TEST_STRING_DATA) - 1; in policy_unpack_test_unpack_str_out_of_bounds()
281 KUNIT_EXPECT_EQ(test, size, strlen(TEST_STRING_DATA) + 1); in policy_unpack_test_unpack_strdup_with_null_name()
296 KUNIT_EXPECT_EQ(test, size, strlen(TEST_STRING_DATA) + 1); in policy_unpack_test_unpack_strdup_with_name()
311 + strlen(TEST_STRING_DATA) - 1; in policy_unpack_test_unpack_strdup_out_of_bounds()