Searched refs:cstr (Results 1 – 4 of 4) sorted by relevance
| /linux/fs/crypto/ |
| H A D | hooks.c | 360 struct fscrypt_str cstr, pstr; in fscrypt_get_symlink() local 390 cstr.name = (unsigned char *)sd->encrypted_path; in fscrypt_get_symlink() 391 cstr.len = le16_to_cpu(sd->len); in fscrypt_get_symlink() 393 if (cstr.len == 0) in fscrypt_get_symlink() 396 if (cstr.len + sizeof(*sd) > max_size) in fscrypt_get_symlink() 399 err = fscrypt_fname_alloc_buffer(cstr.len, &pstr); in fscrypt_get_symlink() 403 err = fscrypt_fname_disk_to_usr(inode, 0, 0, &cstr, &pstr); in fscrypt_get_symlink()
|
| /linux/scripts/gcc-plugins/ |
| H A D | gcc-common.h | 105 tree cstr, elem, index, type; in build_const_char_string() local 107 cstr = build_string(len, str); in build_const_char_string() 111 TREE_TYPE(cstr) = type; in build_const_char_string() 112 TREE_CONSTANT(cstr) = 1; in build_const_char_string() 113 TREE_READONLY(cstr) = 1; in build_const_char_string() 114 TREE_STATIC(cstr) = 1; in build_const_char_string() 115 return cstr; in build_const_char_string()
|
| /linux/rust/kernel/ |
| H A D | str.rs | 435 let cstr = c"\xf0\x9f\xa6\x80"; in test_cstr_to_str() localVariable 436 let checked_str = cstr.to_str()?; in test_cstr_to_str() 443 let cstr = c"\xc3\x28"; in test_cstr_to_str_invalid_utf8() localVariable 444 assert!(cstr.to_str().is_err()); in test_cstr_to_str_invalid_utf8() 468 let cstr = CStr::from_bytes_with_nul(&bytes)?; in test_cstr_display_all_bytes() localVariable 870 fn try_from(cstr: &'a CStr) -> Result<CString, AllocError> { in try_from() 873 buf.extend_from_slice(cstr.to_bytes_with_nul(), GFP_KERNEL)?; in try_from()
|
| /linux/tools/perf/ |
| H A D | builtin-diff.c | 234 char *cstr = (char *) str; in setup_compute() local 259 cstr = buf; in setup_compute() 263 if (!strcmp(cstr, compute_names[i])) { in setup_compute()
|