Home
last modified time | relevance | path

Searched refs:cstr (Results 1 – 4 of 4) sorted by relevance

/linux/scripts/gcc-plugins/
H A Dgcc-common.h105 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 Dstr.rs465 let cstr = c"\xf0\x9f\xa6\x80"; in test_cstr_display()
466 let checked_str = cstr.to_str()?; in test_cstr_display()
473 let cstr = c"\xc3\x28"; in test_cstr_display()
474 assert!(cstr.to_str().is_err()); in test_cstr_display()
498 let cstr = CStr::from_bytes_with_nul(&bytes)?; in test_cstr_debug()
499 assert_eq!(format!("{cstr}"), ALL_ASCII_CHARS);
903 fn try_from(cstr: &'a CStr) -> Result<CString, AllocError> { in fmt()
906 buf.extend_from_slice(cstr.to_bytes_with_nul(), GFP_KERNEL)?;
451 let cstr = c"\xf0\x9f\xa6\x80"; test_cstr_to_str() localVariable
459 let cstr = c"\xc3\x28"; test_cstr_to_str_invalid_utf8() localVariable
484 let cstr = CStr::from_bytes_with_nul(&bytes)?; test_cstr_display_all_bytes() localVariable
/linux/tools/perf/
H A Dbuiltin-diff.c232 char *cstr = (char *) str; in setup_compute() local
257 cstr = buf; in setup_compute()
261 if (!strcmp(cstr, compute_names[i])) { in setup_compute()
/linux/drivers/net/wireless/realtek/rtw89/
H A Dphy.c2487 s8 cstr = S8_MAX; in rtw89_phy_get_tpe_constraint() local
2490 cstr = rtw89_phy_txpwr_dbm_without_tolerance(tpe->constraint); in rtw89_phy_get_tpe_constraint()
2492 return rtw89_phy_txpwr_dbm_to_mac(rtwdev, cstr); in rtw89_phy_get_tpe_constraint()
2592 s8 cstr; in rtw89_phy_read_txpwr_limit() local
2643 cstr = rtw89_phy_get_tpe_constraint(rtwdev, band); in rtw89_phy_read_txpwr_limit()
2645 return min3(lmt, sar, cstr); in rtw89_phy_read_txpwr_limit()
2877 s8 cstr; in rtw89_phy_read_txpwr_limit_ru() local
2923 cstr = rtw89_phy_get_tpe_constraint(rtwdev, band); in rtw89_phy_read_txpwr_limit_ru()
2925 return min3(lmt_ru, sar, cstr); in rtw89_phy_read_txpwr_limit_ru()