Home
last modified time | relevance | path

Searched refs:str_len (Results 1 – 25 of 98) sorted by relevance

1234

/OK3568_Linux_fs/external/rkwifibt/drivers/rtl8852bs/phl/test/
H A Dphl_dbg_cmd.c668 void _convert_tx_rate(enum hal_rate_mode mode, u8 mcs_ss_idx, char *str, u32 str_len) in _convert_tx_rate() argument
673 case RTW_DATA_RATE_CCK1: _os_snprintf(str, str_len,"CCK 1"); break; in _convert_tx_rate()
674 case RTW_DATA_RATE_CCK2: _os_snprintf(str, str_len,"CCK 2"); break; in _convert_tx_rate()
675 case RTW_DATA_RATE_CCK5_5: _os_snprintf(str, str_len,"CCK 5_5"); break; in _convert_tx_rate()
676 case RTW_DATA_RATE_CCK11: _os_snprintf(str, str_len,"CCK 11"); break; in _convert_tx_rate()
677 case RTW_DATA_RATE_OFDM6: _os_snprintf(str, str_len,"OFDM 6"); break; in _convert_tx_rate()
678 case RTW_DATA_RATE_OFDM9: _os_snprintf(str, str_len,"OFDM 9"); break; in _convert_tx_rate()
679 case RTW_DATA_RATE_OFDM12: _os_snprintf(str, str_len,"OFDM 12"); break; in _convert_tx_rate()
680 case RTW_DATA_RATE_OFDM18: _os_snprintf(str, str_len,"OFDM 18"); break; in _convert_tx_rate()
681 case RTW_DATA_RATE_OFDM24: _os_snprintf(str, str_len,"OFDM 24"); break; in _convert_tx_rate()
[all …]
/OK3568_Linux_fs/external/rkwifibt/drivers/rtl8852be/phl/test/
H A Dphl_dbg_cmd.c668 void _convert_tx_rate(enum hal_rate_mode mode, u8 mcs_ss_idx, char *str, u32 str_len) in _convert_tx_rate() argument
673 case RTW_DATA_RATE_CCK1: _os_snprintf(str, str_len,"CCK 1"); break; in _convert_tx_rate()
674 case RTW_DATA_RATE_CCK2: _os_snprintf(str, str_len,"CCK 2"); break; in _convert_tx_rate()
675 case RTW_DATA_RATE_CCK5_5: _os_snprintf(str, str_len,"CCK 5_5"); break; in _convert_tx_rate()
676 case RTW_DATA_RATE_CCK11: _os_snprintf(str, str_len,"CCK 11"); break; in _convert_tx_rate()
677 case RTW_DATA_RATE_OFDM6: _os_snprintf(str, str_len,"OFDM 6"); break; in _convert_tx_rate()
678 case RTW_DATA_RATE_OFDM9: _os_snprintf(str, str_len,"OFDM 9"); break; in _convert_tx_rate()
679 case RTW_DATA_RATE_OFDM12: _os_snprintf(str, str_len,"OFDM 12"); break; in _convert_tx_rate()
680 case RTW_DATA_RATE_OFDM18: _os_snprintf(str, str_len,"OFDM 18"); break; in _convert_tx_rate()
681 case RTW_DATA_RATE_OFDM24: _os_snprintf(str, str_len,"OFDM 24"); break; in _convert_tx_rate()
[all …]
/OK3568_Linux_fs/app/forlinx/flapp/src/keyboard/pinyin/share/
H A Dsplparser.cpp30 uint16 SpellingParser::splstr_to_idxs(const char *splstr, uint16 str_len, in splstr_to_idxs() argument
33 if (NULL == splstr || 0 == max_size || 0 == str_len) in splstr_to_idxs()
49 while (str_pos < str_len) { in splstr_to_idxs()
143 uint16 SpellingParser::splstr_to_idxs_f(const char *splstr, uint16 str_len, in splstr_to_idxs_f() argument
146 uint16 idx_num = splstr_to_idxs(splstr, str_len, spl_idx, start_pos, in splstr_to_idxs_f()
159 uint16 SpellingParser::splstr16_to_idxs(const char16 *splstr, uint16 str_len, in splstr16_to_idxs() argument
162 if (NULL == splstr || 0 == max_size || 0 == str_len) in splstr16_to_idxs()
178 while (str_pos < str_len) { in splstr16_to_idxs()
272 uint16 SpellingParser::splstr16_to_idxs_f(const char16 *splstr, uint16 str_len, in splstr16_to_idxs_f() argument
275 uint16 idx_num = splstr16_to_idxs(splstr, str_len, spl_idx, start_pos, in splstr16_to_idxs_f()
[all …]
H A Ddictlist.cpp348 LemmaIdType DictList::get_lemma_id(const char16 *str, uint16 str_len) { in get_lemma_id() argument
349 if (NULL == str || str_len > kMaxLemmaSize) in get_lemma_id()
352 char16 *found = find_pos_startedbyhzs(str, str_len, cmp_func_[str_len - 1]); in get_lemma_id()
357 assert(static_cast<size_t>(found - buf_) >= start_pos_[str_len - 1]); in get_lemma_id()
359 (start_id_[str_len - 1] + in get_lemma_id()
360 (found - buf_ - start_pos_[str_len - 1]) / str_len); in get_lemma_id()
363 void DictList::convert_to_hanzis(char16 *str, uint16 str_len) { in convert_to_hanzis() argument
366 for (uint16 str_pos = 0; str_pos < str_len; str_pos++) { in convert_to_hanzis()
371 void DictList::convert_to_scis_ids(char16 *str, uint16 str_len) { in convert_to_scis_ids() argument
374 for (uint16 str_pos = 0; str_pos < str_len; str_pos++) { in convert_to_scis_ids()
H A Dmatrixsearch.cpp1678 uint16 str_len = get_lemma_str(idxs[id_num], str, kMaxLemmaSize + 1); in get_candidate0() local
1679 if (str_len > 0 && ((!only_unfixed && max_len - ret_pos > str_len) || in get_candidate0()
1680 (only_unfixed && max_len - ret_pos + fixed_hzs_ > str_len))) { in get_candidate0()
1682 utf16_strncpy(cand_str + ret_pos, str, str_len); in get_candidate0()
1684 utf16_strncpy(cand_str + ret_pos - fixed_hzs_, str, str_len); in get_candidate0()
1686 ret_pos += str_len; in get_candidate0()
1805 uint16 str_len = 0; in get_lemma_str() local
1808 str_len = dict_trie_->get_lemma_str(id_lemma, str_buf, str_max); in get_lemma_str()
1811 str_len = user_dict_->get_lemma_str(id_lemma, str_buf, str_max); in get_lemma_str()
1813 str_len = 0; in get_lemma_str()
[all …]
/OK3568_Linux_fs/app/forlinx/flapp/src/keyboard/pinyin/include/
H A Dsplparser.h42 uint16 splstr_to_idxs(const char *splstr, uint16 str_len, uint16 splidx[],
48 uint16 splstr_to_idxs_f(const char *splstr, uint16 str_len, uint16 splidx[],
53 uint16 splstr16_to_idxs(const char16 *splstr, uint16 str_len, uint16 splidx[],
58 uint16 splstr16_to_idxs_f(const char16 *splstr16, uint16 str_len,
67 uint16 get_splid_by_str(const char *splstr, uint16 str_len, bool *is_pre);
75 uint16 get_splid_by_str_f(const char *splstr, uint16 str_len, bool *is_pre);
90 uint16 get_splids_parallel(const char *splstr, uint16 str_len,
H A Ddictlist.h96 void convert_to_hanzis(char16 *str, uint16 str_len);
98 void convert_to_scis_ids(char16 *str, uint16 str_len);
116 LemmaIdType get_lemma_id(const char16 *str, uint16 str_len);
/OK3568_Linux_fs/app/forlinx/DWKeyboard/include/pinyin/include/
H A Dsplparser.h42 uint16 splstr_to_idxs(const char *splstr, uint16 str_len, uint16 splidx[],
48 uint16 splstr_to_idxs_f(const char *splstr, uint16 str_len, uint16 splidx[],
53 uint16 splstr16_to_idxs(const char16 *splstr, uint16 str_len, uint16 splidx[],
58 uint16 splstr16_to_idxs_f(const char16 *splstr16, uint16 str_len,
67 uint16 get_splid_by_str(const char *splstr, uint16 str_len, bool *is_pre);
75 uint16 get_splid_by_str_f(const char *splstr, uint16 str_len, bool *is_pre);
90 uint16 get_splids_parallel(const char *splstr, uint16 str_len,
H A Ddictlist.h96 void convert_to_hanzis(char16 *str, uint16 str_len);
98 void convert_to_scis_ids(char16 *str, uint16 str_len);
116 LemmaIdType get_lemma_id(const char16 *str, uint16 str_len);
/OK3568_Linux_fs/kernel/security/selinux/
H A Dxfrm.c81 u32 str_len; in selinux_xfrm_alloc_user() local
88 str_len = uctx->ctx_len; in selinux_xfrm_alloc_user()
89 if (str_len >= PAGE_SIZE) in selinux_xfrm_alloc_user()
92 ctx = kmalloc(sizeof(*ctx) + str_len + 1, gfp); in selinux_xfrm_alloc_user()
98 ctx->ctx_len = str_len; in selinux_xfrm_alloc_user()
99 memcpy(ctx->ctx_str, &uctx[1], str_len); in selinux_xfrm_alloc_user()
100 ctx->ctx_str[str_len] = '\0'; in selinux_xfrm_alloc_user()
101 rc = security_context_to_sid(&selinux_state, ctx->ctx_str, str_len, in selinux_xfrm_alloc_user()
350 u32 str_len; in selinux_xfrm_state_alloc_acquire() local
359 &str_len); in selinux_xfrm_state_alloc_acquire()
[all …]
/OK3568_Linux_fs/kernel/drivers/gpu/drm/amd/display/amdgpu_dm/
H A Damdgpu_dm_debugfs.c188 uint8_t str_len = 0; in dp_link_settings_read() local
200 str_len = strlen("Current: %d 0x%x %d "); in dp_link_settings_read()
201 snprintf(rd_buf_ptr, str_len, "Current: %d 0x%x %d ", in dp_link_settings_read()
205 rd_buf_ptr += str_len; in dp_link_settings_read()
207 str_len = strlen("Verified: %d 0x%x %d "); in dp_link_settings_read()
208 snprintf(rd_buf_ptr, str_len, "Verified: %d 0x%x %d ", in dp_link_settings_read()
212 rd_buf_ptr += str_len; in dp_link_settings_read()
214 str_len = strlen("Reported: %d 0x%x %d "); in dp_link_settings_read()
215 snprintf(rd_buf_ptr, str_len, "Reported: %d 0x%x %d ", in dp_link_settings_read()
219 rd_buf_ptr += str_len; in dp_link_settings_read()
[all …]
/OK3568_Linux_fs/external/rkwifibt/drivers/bcmdhd/
H A Ddhd_custom_sec.c730 int min_len, str_len = 0; local
748 snprintf(version_info+str_len, min_len, DHD_PREFIX " %s\n", dhd_ver);
749 str_len = strlen(version_info);
751 DHD_INFO(("[WIFI_SEC] Driver version_info len : %d\n", str_len));
761 snprintf(version_info+str_len, min_len, FIRM_PREFIX " %s\n", firm_ver);
762 str_len = strlen(version_info);
764 DHD_INFO(("[WIFI_SEC] Firmware version_info len : %d\n", str_len));
786 snprintf(version_info+str_len, tstr_len(temp_buf, NV_PREFIX),
788 str_len = strlen(version_info);
791 str_len, strlen(temp_buf)));
[all …]
/OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/rkwifi/bcmdhd/
H A Ddhd_custom_sec.c730 int min_len, str_len = 0; local
748 snprintf(version_info+str_len, min_len, DHD_PREFIX " %s\n", dhd_ver);
749 str_len = strlen(version_info);
751 DHD_INFO(("[WIFI_SEC] Driver version_info len : %d\n", str_len));
761 snprintf(version_info+str_len, min_len, FIRM_PREFIX " %s\n", firm_ver);
762 str_len = strlen(version_info);
764 DHD_INFO(("[WIFI_SEC] Firmware version_info len : %d\n", str_len));
786 snprintf(version_info+str_len, tstr_len(temp_buf, NV_PREFIX),
788 str_len = strlen(version_info);
791 str_len, strlen(temp_buf)));
[all …]
/OK3568_Linux_fs/buildroot/package/bluez5_utils/
H A D0003-OK3568-obex-fix.patch22 NULL, &str_len, &conv_err);
35 + str_len = hdr_len - 5;
37 header->vlen = (gsize) str_len;
/OK3568_Linux_fs/kernel/tools/power/acpi/os_specific/service_layers/
H A Dosunixdir.c95 int str_len; in acpi_os_get_next_filename() local
106 str_len = strlen(dir_entry->d_name) + in acpi_os_get_next_filename()
109 temp_str = calloc(str_len, 1); in acpi_os_get_next_filename()
/OK3568_Linux_fs/kernel/drivers/s390/net/
H A Dqeth_l3_sys.c370 int str_len = 0; in qeth_l3_dev_ipato_add_show() local
388 if (entry_len + 1 > PAGE_SIZE - str_len - 1) in qeth_l3_dev_ipato_add_show()
391 entry_len = scnprintf(buf, PAGE_SIZE - str_len, in qeth_l3_dev_ipato_add_show()
393 str_len += entry_len; in qeth_l3_dev_ipato_add_show()
398 return str_len ? str_len : scnprintf(buf, PAGE_SIZE, "\n"); in qeth_l3_dev_ipato_add_show()
590 int str_len = 0; in qeth_l3_dev_ip_add_show() local
607 if (entry_len + 1 > PAGE_SIZE - str_len - 1) in qeth_l3_dev_ip_add_show()
610 entry_len = scnprintf(buf, PAGE_SIZE - str_len, "%s\n", in qeth_l3_dev_ip_add_show()
612 str_len += entry_len; in qeth_l3_dev_ip_add_show()
617 return str_len ? str_len : scnprintf(buf, PAGE_SIZE, "\n"); in qeth_l3_dev_ip_add_show()
/OK3568_Linux_fs/kernel/lib/
H A Dparser.c59 size_t str_len = strlen(s); in match_one() local
61 if (str_len == 0) in match_one()
63 if (len == -1 || len > str_len) in match_one()
64 len = str_len; in match_one()
/OK3568_Linux_fs/kernel/tools/lib/bpf/
H A Dlibbpf_probes.c147 const char *str_sec, size_t str_len) in libbpf__load_raw_btf() argument
155 .str_len = str_len, in libbpf__load_raw_btf()
160 btf_len = hdr.hdr_len + hdr.type_len + hdr.str_len; in libbpf__load_raw_btf()
167 memcpy(raw_btf + hdr.hdr_len + hdr.type_len, str_sec, hdr.str_len); in libbpf__load_raw_btf()
H A Dbtf.c186 h->str_len = bswap_32(h->str_len); in btf_bswap_hdr()
219 if (meta_left < (long long)hdr->str_off + hdr->str_len) { in btf_parse_hdr()
226 hdr->type_off, hdr->type_len, hdr->str_off, hdr->str_len); in btf_parse_hdr()
242 const char *end = start + btf->hdr->str_len; in btf_parse_str_sec()
244 if (!hdr->str_len || hdr->str_len - 1 > BTF_MAX_STR_OFFSET || in btf_parse_str_sec()
744 btf->hdr->str_len = 1; /* empty string at offset 0 */ in btf__new_empty()
1158 data_sz = hdr->hdr_len + hdr->type_len + hdr->str_len; in btf_get_raw_data()
1184 memcpy(p, btf->strs_data, hdr->str_len); in btf_get_raw_data()
1185 p += hdr->str_len; in btf_get_raw_data()
1215 if (offset < btf->hdr->str_len) in btf__str_by_offset()
[all …]
/OK3568_Linux_fs/kernel/kernel/trace/
H A Dtrace_events_inject.c220 int str_len = strlen(addr) + 1; in parse_entry() local
224 entry_size += str_len; in parse_entry()
232 strlcpy(entry + (entry_size - str_len), addr, str_len); in parse_entry()
234 *str_item = (str_len << 16) | str_loc; in parse_entry()
/OK3568_Linux_fs/kernel/tools/power/x86/intel-speed-select/
H A Disst-display.c9 static void printcpulist(int str_len, char *str, int mask_size, in printcpulist() argument
15 snprintf(str, str_len, "none"); in printcpulist()
26 str_len - curr_index, ","); in printcpulist()
28 if (curr_index >= str_len) in printcpulist()
31 index = snprintf(&str[curr_index], str_len - curr_index, "%d", in printcpulist()
34 if (curr_index >= str_len) in printcpulist()
40 static void printcpumask(int str_len, char *str, int mask_size, in printcpumask() argument
68 index = snprintf(&str[curr_index], str_len - curr_index, "%08x", in printcpumask()
71 if (curr_index >= str_len) in printcpumask()
74 strncat(&str[curr_index], ",", str_len - curr_index); in printcpumask()
[all …]
/OK3568_Linux_fs/kernel/fs/udf/
H A Dunicode.c277 const uint8_t *str_i, int str_len) in udf_name_to_CS0() argument
300 for (i = 0; i < str_len; i += len) { in udf_name_to_CS0()
307 len = conv_f(&str_i[i], str_len - i, &wchar); in udf_name_to_CS0()
311 len = utf8_to_utf32(&str_i[i], str_len - i, in udf_name_to_CS0()
/OK3568_Linux_fs/kernel/security/tomoyo/
H A Drealpath.c23 char *tomoyo_encode2(const char *str, int str_len) in tomoyo_encode2() argument
33 for (i = 0; i < str_len; i++) { in tomoyo_encode2()
50 for (i = 0; i < str_len; i++) { in tomoyo_encode2()
/OK3568_Linux_fs/kernel/kernel/bpf/preload/iterators/
H A Diterators.bpf.c32 __u32 str_len; member
72 if (name_off >= btf->hdr.str_len) in get_name()
/OK3568_Linux_fs/buildroot/dl/sox/git/src/
H A Dutil.c51 size_t str_len = strlen(str), end_len = strlen(end); in lsx_strends() local
52 return str_len >= end_len && !strcmp(str + str_len - end_len, end); in lsx_strends()

1234