| /linux-6.15/drivers/char/ |
| H A D | tlclk.c | 342 return strnlen(buf, count); in store_received_ref_clk3a() 364 return strnlen(buf, count); in store_received_ref_clk3b() 386 return strnlen(buf, count); in store_enable_clk3b_output() 407 return strnlen(buf, count); in store_enable_clk3a_output() 428 return strnlen(buf, count); in store_enable_clkb1_output() 450 return strnlen(buf, count); in store_enable_clka1_output() 471 return strnlen(buf, count); in store_enable_clkb0_output() 492 return strnlen(buf, count); in store_enable_clka0_output() 534 return strnlen(buf, count); in store_select_amcb2_transmit_clock() 576 return strnlen(buf, count); in store_select_amcb1_transmit_clock() [all …]
|
| /linux-6.15/drivers/net/ |
| H A D | netconsole.c | 331 len = strnlen(s, maxlen); in trim_newline() 522 ret = strnlen(buf, count); in enabled_store() 551 ret = strnlen(buf, count); in release_store() 577 ret = strnlen(buf, count); in extended_store() 619 ret = strnlen(buf, count); in local_port_store() 641 ret = strnlen(buf, count); in remote_port_store() 678 ret = strnlen(buf, count); in local_ip_store() 715 ret = strnlen(buf, count); in remote_ip_store() 763 ret = strnlen(buf, count); in remote_mac_store() 903 ret = strnlen(buf, count); in sysdata_release_enabled_store() [all …]
|
| /linux-6.15/fs/xfs/scrub/ |
| H A D | symlink.c | 76 len > strnlen(ifp->if_data, xfs_inode_data_fork_size(ip))) in xchk_symlink() 85 if (strnlen(sc->buf, XFS_SYMLINK_MAXLEN) < len) in xchk_symlink()
|
| /linux-6.15/drivers/net/ethernet/meta/fbnic/ |
| H A D | fbnic_debugfs.c | 31 fbnic_dbg_desc_break(s, strnlen(hdr, sizeof(hdr))); in fbnic_dbg_mac_addr_show() 57 fbnic_dbg_desc_break(s, strnlen(hdr, sizeof(hdr))); in fbnic_dbg_tce_tcam_show() 91 fbnic_dbg_desc_break(s, strnlen(hdr, sizeof(hdr))); in fbnic_dbg_act_tcam_show() 128 fbnic_dbg_desc_break(s, strnlen(hdr, sizeof(hdr))); in fbnic_dbg_ip_addr_show()
|
| /linux-6.15/include/linux/ |
| H A D | fortify-string.h | 32 macro(strnlen), \ 208 extern __kernel_size_t __real_strnlen(const char *, __kernel_size_t) __RENAME(strnlen); 219 __FORTIFY_INLINE __kernel_size_t strnlen(const char * const POS p, __kernel_size_t maxlen) in strnlen() function 269 ret = strnlen(p, p_size); in __fortify_strlen() 309 len = strnlen(q, size); in sized_strscpy() 370 p_len = strnlen(p, avail); in strlcat() 453 copy_len = strnlen(q, count); in strncat()
|
| H A D | string.h | 204 extern __kernel_size_t strnlen(const char *,__kernel_size_t); 426 strnlen(src, min(_src_len, _dest_len)), pad); \ 451 memcpy(dest, src, strnlen(src, min(_src_len, _dest_len))); \ 470 const size_t _src_chars = strnlen(src, _src_len); \ 498 const size_t _src_chars = strnlen(src, _src_len); \
|
| /linux-6.15/tools/include/nolibc/ |
| H A D | string.h | 154 size_t strnlen(const char *str, size_t maxlen) in strnlen() function 182 len = strnlen(str, maxlen); in strndup() 195 size_t len = strnlen(dst, size); in strlcat()
|
| /linux-6.15/arch/x86/lib/ |
| H A D | string_32.c | 218 size_t strnlen(const char *s, size_t count) in strnlen() function 236 EXPORT_SYMBOL(strnlen);
|
| /linux-6.15/arch/um/kernel/skas/ |
| H A D | uaccess.c | 174 n = strnlen(to, len); in strncpy_chunk_from_user() 193 return strnlen(dst, count); in strncpy_from_user() 213 n = strnlen((void *) str, len); in strnlen_chunk()
|
| /linux-6.15/arch/arm64/lib/ |
| H A D | strnlen.S | 161 SYM_FUNC_ALIAS_WEAK(strnlen, __pi_strnlen) 162 EXPORT_SYMBOL_NOKASAN(strnlen)
|
| H A D | Makefile | 6 strnlen.o strchr.o strrchr.o tishift.o
|
| /linux-6.15/arch/s390/include/asm/ |
| H A D | string.h | 192 static inline size_t strnlen(const char * s, size_t n) in strnlen() function 213 size_t strnlen(const char * s, size_t n);
|
| /linux-6.15/arch/s390/lib/ |
| H A D | string.c | 73 size_t strnlen(const char *s, size_t n) in strnlen() function 77 EXPORT_SYMBOL(strnlen);
|
| /linux-6.15/net/bluetooth/ |
| H A D | eir.c | 26 complete_len = strnlen(hdev->dev_name, sizeof(hdev->dev_name)); in eir_append_local_name() 32 short_len = strnlen(hdev->short_name, sizeof(hdev->short_name)); in eir_append_local_name() 180 name_len = strnlen(hdev->dev_name, sizeof(hdev->dev_name)); in eir_create()
|
| /linux-6.15/lib/ |
| H A D | net_utils.c | 12 if (strnlen(s, MAC_ADDR_STR_LEN) < MAC_ADDR_STR_LEN) in mac_pton()
|
| /linux-6.15/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-6.15/arch/powerpc/boot/ |
| H A D | string.h | 14 extern size_t strnlen(const char *s, size_t count);
|
| H A D | stdio.c | 11 size_t strnlen(const char * s, size_t count) in strnlen() function 240 len = strnlen(s, precision); in vsprintf()
|
| /linux-6.15/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-6.15/arch/m68k/include/asm/ |
| H A D | string.h | 9 static inline size_t strnlen(const char *s, size_t count) in strnlen() function
|
| /linux-6.15/arch/m68k/kernel/ |
| H A D | uboot.c | 96 n = strnlen(commandp, size); in process_uboot_commandline()
|
| /linux-6.15/fs/ocfs2/ |
| H A D | symlink.c | 72 len = strnlen(link, ocfs2_fast_symlink_chars(inode->i_sb)); in ocfs2_fast_symlink_read_folio()
|
| /linux-6.15/arch/arm64/include/asm/ |
| H A D | string.h | 25 extern __kernel_size_t strnlen(const char *, __kernel_size_t);
|
| /linux-6.15/arch/x86/boot/ |
| H A D | string.h | 26 extern size_t strnlen(const char *s, size_t maxlen);
|
| /linux-6.15/sound/soc/ |
| H A D | soc-topology.c | 643 if (strnlen(mc->hdr.name, SNDRV_CTL_ELEM_ID_NAME_MAXLEN) == SNDRV_CTL_ELEM_ID_NAME_MAXLEN) in soc_tplg_control_dmixer_create() 707 if (strnlen(ec->texts[i], SNDRV_CTL_ELEM_ID_NAME_MAXLEN) == in soc_tplg_denum_create_texts() 767 if (strnlen(ec->hdr.name, SNDRV_CTL_ELEM_ID_NAME_MAXLEN) == SNDRV_CTL_ELEM_ID_NAME_MAXLEN) in soc_tplg_control_denum_create() 1051 if ((strnlen(elem->source, maxlen) == maxlen) || in soc_tplg_dapm_graph_elems_load() 1052 (strnlen(elem->sink, maxlen) == maxlen) || in soc_tplg_dapm_graph_elems_load() 1053 (strnlen(elem->control, maxlen) == maxlen)) { in soc_tplg_dapm_graph_elems_load() 1065 if (strnlen(elem->control, maxlen) != 0) { in soc_tplg_dapm_graph_elems_load() 1109 if (strnlen(w->name, SNDRV_CTL_ELEM_ID_NAME_MAXLEN) == in soc_tplg_dapm_widget_create() 1112 if (strnlen(w->sname, SNDRV_CTL_ELEM_ID_NAME_MAXLEN) == in soc_tplg_dapm_widget_create() 1726 len = strnlen(cfg->name, SNDRV_CTL_ELEM_ID_NAME_MAXLEN); in soc_tplg_link_config() [all …]
|