| /linux/drivers/net/ethernet/meta/fbnic/ |
| H A D | fbnic_debugfs.c | 118 fbnic_dbg_desc_break(s, strnlen(hdr, sizeof(hdr))); in fbnic_dbg_twq_desc_seq_show() 143 fbnic_dbg_desc_break(s, strnlen(hdr, sizeof(hdr))); in fbnic_dbg_tcq_desc_seq_show() 192 fbnic_dbg_desc_break(s, strnlen(hdr, sizeof(hdr))); in fbnic_dbg_bdq_desc_seq_show() 269 fbnic_dbg_desc_break(s, strnlen(hdr, sizeof(hdr))); in fbnic_dbg_rcq_desc_seq_show() 390 fbnic_dbg_desc_break(s, strnlen(hdr, sizeof(hdr))); in fbnic_dbg_mac_addr_show() 416 fbnic_dbg_desc_break(s, strnlen(hdr, sizeof(hdr))); in fbnic_dbg_tce_tcam_show() 450 fbnic_dbg_desc_break(s, strnlen(hdr, sizeof(hdr))); in fbnic_dbg_act_tcam_show() 487 fbnic_dbg_desc_break(s, strnlen(hdr, sizeof(hdr))); in fbnic_dbg_ip_addr_show() 548 fbnic_dbg_desc_break(s, strnlen(hdr, sizeof(hdr))); in fbnic_dbg_fw_mbx_display()
|
| /linux/arch/riscv/purgatory/ |
| H A D | Makefile | 5 purgatory-y += strcmp.o strlen.o strncmp.o strnlen.o strchr.o strrchr.o 35 $(obj)/strnlen.o: $(srctree)/arch/riscv/lib/strnlen.S FORCE
|
| /linux/tools/include/nolibc/ |
| H A D | string.h | 172 size_t strnlen(const char *str, size_t maxlen) in strnlen() function 200 len = strnlen(str, maxlen); in strndup() 213 size_t len = strnlen(dst, size); in strlcat()
|
| /linux/arch/arm64/lib/ |
| H A D | strnlen.S | 161 SYM_FUNC_ALIAS_WEAK(strnlen, __pi_strnlen) 162 EXPORT_SYMBOL_NOKASAN(strnlen)
|
| /linux/lib/tests/ |
| H A D | string_kunit.c | 162 KUNIT_EXPECT_EQ(test, strnlen(s, len - 1), len - 1); in string_test_strnlen() 164 KUNIT_EXPECT_EQ(test, strnlen(s, len - 2), len - 2); in string_test_strnlen() 166 KUNIT_EXPECT_EQ(test, strnlen(s, len), len); in string_test_strnlen() 168 KUNIT_EXPECT_EQ(test, strnlen(s, len + 1), len); in string_test_strnlen() 169 KUNIT_EXPECT_EQ(test, strnlen(s, len + 2), len); in string_test_strnlen() 170 KUNIT_EXPECT_EQ(test, strnlen(s, len + 10), len); in string_test_strnlen() 871 STRING_BENCH_BUF(test, buf, len, strnlen, buf, len); in string_bench_strnlen()
|
| /linux/lib/ |
| H A D | net_utils.c | 12 if (strnlen(s, MAC_ADDR_STR_LEN) < MAC_ADDR_STR_LEN) in mac_pton()
|
| /linux/tools/testing/selftests/kvm/lib/ |
| H A D | string_override.c | 41 size_t strnlen(const char *s, size_t count) in strnlen() function
|
| /linux/arch/alpha/boot/ |
| H A D | stdio.c | 8 size_t strnlen(const char * s, size_t count) in strnlen() function 204 len = strnlen(s, precision); in vsprintf()
|
| /linux/net/netfilter/ |
| H A D | xt_cgroup.c | 68 if (strnlen(info->path, sizeof(info->path)) >= sizeof(info->path)) in cgroup_mt_check_v1() 108 if (strnlen(info->path, sizeof(info->path)) >= sizeof(info->path)) in cgroup_mt_check_v2()
|
| H A D | xt_bpf.c | 57 if (strnlen(path, XT_BPF_PATH_MAX) == XT_BPF_PATH_MAX) in __bpf_mt_check_path()
|
| H A D | xt_physdev.c | 118 #define X(memb) strnlen(info->memb, sizeof(info->memb)) >= sizeof(info->memb) in physdev_mt_check()
|
| /linux/arch/arm64/include/asm/ |
| H A D | string.h | 25 extern __kernel_size_t strnlen(const char *, __kernel_size_t);
|
| /linux/arch/riscv/include/asm/ |
| H A D | string.h | 33 extern asmlinkage __kernel_size_t strnlen(const char *, size_t);
|
| /linux/sound/soc/ |
| H A D | soc-topology.c | 650 if (strnlen(mc->hdr.name, SNDRV_CTL_ELEM_ID_NAME_MAXLEN) == SNDRV_CTL_ELEM_ID_NAME_MAXLEN) in soc_tplg_control_dmixer_create() 714 if (strnlen(ec->texts[i], SNDRV_CTL_ELEM_ID_NAME_MAXLEN) == in soc_tplg_denum_create_texts() 774 if (strnlen(ec->hdr.name, SNDRV_CTL_ELEM_ID_NAME_MAXLEN) == SNDRV_CTL_ELEM_ID_NAME_MAXLEN) in soc_tplg_control_denum_create() 843 if (strnlen(be->hdr.name, SNDRV_CTL_ELEM_ID_NAME_MAXLEN) == SNDRV_CTL_ELEM_ID_NAME_MAXLEN) in soc_tplg_control_dbytes_create() 1058 if ((strnlen(elem->source, maxlen) == maxlen) || in soc_tplg_dapm_graph_elems_load() 1059 (strnlen(elem->sink, maxlen) == maxlen) || in soc_tplg_dapm_graph_elems_load() 1060 (strnlen(elem->control, maxlen) == maxlen)) { in soc_tplg_dapm_graph_elems_load() 1072 if (strnlen(elem->control, maxlen) != 0) { in soc_tplg_dapm_graph_elems_load() 1116 if (strnlen(w->name, SNDRV_CTL_ELEM_ID_NAME_MAXLEN) == in soc_tplg_dapm_widget_create() 1119 if (strnlen( in soc_tplg_dapm_widget_create() [all...] |
| /linux/fs/qnx4/ |
| H A D | qnx4.h | 103 *size = strnlen(de->de_name, *size); in get_entry_fname()
|
| /linux/fs/smb/client/ |
| H A D | dns_resolve.c | 84 len = strnlen(dom, CIFS_MAX_DOMAINNAME_LEN) + namelen + 2; in dns_resolve_name()
|
| /linux/scripts/dtc/libfdt/ |
| H A D | libfdt_env.h | 76 #define strnlen fdt_strnlen global() macro
|
| H A D | fdt_ro.c | 764 length = strnlen(list, end - list) + 1; in fdt_stringlist_count() 791 length = strnlen(list, end - list) + 1; in fdt_stringlist_search() 825 length = strnlen(list, end - list) + 1; in fdt_stringlist_get()
|
| /linux/drivers/remoteproc/ |
| H A D | qcom_pil_info.c | 107 memcpy_toio(entry, image, strnlen(image, PIL_RELOC_NAME_LEN)); in qcom_pil_info_store()
|
| /linux/drivers/firmware/efi/libstub/ |
| H A D | string.c | 35 size_t strnlen(const char *s, size_t count) in strnlen() function
|
| /linux/drivers/net/ethernet/netronome/nfp/ |
| H A D | nfp_net_debugdump.c | 208 key_len = strnlen(spec->data, tl_len); in nfp_calc_hwinfo_field_sz() 243 key_len = strnlen(spec_rtsym->rtsym, tl_len); in nfp_calc_rtsym_dump_sz() 426 key_len = strnlen(spec->data, tl_len); in nfp_dump_hwinfo_field() 622 key_len = strnlen(spec->rtsym, tl_len); in nfp_dump_single_rtsym()
|
| /linux/drivers/of/ |
| H A D | property.c | 539 if (strnlen(prop->value, prop->length) >= prop->length) in of_property_read_string() 577 l = strnlen(p, end - p) + 1; in of_property_match_string() 615 l = strnlen(p, end - p) + 1; in of_property_read_string_helper() 665 len = strnlen(curv, end - curv); in of_prop_next_string() 674 len = strnlen(curv, end - curv); in of_prop_next_string()
|
| /linux/net/ethtool/ |
| H A D | netlink.h | 37 return nla_total_size(strnlen(s, ETH_GSTRING_LEN) + 1); in ethnl_strz_size() 53 unsigned int len = strnlen(s, ETH_GSTRING_LEN); in ethnl_put_strz()
|
| /linux/arch/arm/boot/compressed/ |
| H A D | string.c | 89 size_t strnlen(const char *s, size_t count) in strnlen() function
|
| /linux/drivers/net/ethernet/netronome/nfp/nfpcore/ |
| H A D | nfp_nsp.c | 930 if (strnlen(buf, size) == size) { in nfp_nsp_hwinfo_lookup() 946 if (strnlen(default_val, size) == size) in nfp_nsp_hwinfo_lookup_optional() 967 if (strnlen(buf, size) == size) { in nfp_nsp_hwinfo_lookup_optional() 1041 if (strnlen(&buf[buf_off], size - buf_off) == size - buf_off) in nfp_nsp_versions_get()
|