| /drivers/char/ |
| 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 …]
|
| /drivers/net/ |
| A D | netconsole.c | 358 len = strnlen(s, maxlen); in trim_newline() 603 ret = strnlen(buf, count); in enabled_store() 632 ret = strnlen(buf, count); in release_store() 658 ret = strnlen(buf, count); in extended_store() 700 ret = strnlen(buf, count); in local_port_store() 722 ret = strnlen(buf, count); in remote_port_store() 759 ret = strnlen(buf, count); in local_ip_store() 796 ret = strnlen(buf, count); in remote_ip_store() 846 ret = strnlen(buf, count); in remote_mac_store() 986 ret = strnlen(buf, count); in sysdata_msgid_enabled_store() [all …]
|
| /drivers/net/ethernet/meta/fbnic/ |
| 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()
|
| /drivers/infiniband/core/ |
| A D | cma_configfs.c | 142 return !ret ? strnlen(buf, count) : ret; in default_roce_mode_store() 183 return ret ? ret : strnlen(buf, count); in default_roce_tos_store()
|
| /drivers/net/ethernet/netronome/nfp/ |
| 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()
|
| /drivers/remoteproc/ |
| A D | qcom_pil_info.c | 107 memcpy_toio(entry, image, strnlen(image, PIL_RELOC_NAME_LEN)); in qcom_pil_info_store()
|
| /drivers/firmware/efi/libstub/ |
| A D | string.c | 35 size_t strnlen(const char *s, size_t count) in strnlen() function
|
| /drivers/net/ethernet/netronome/nfp/nfpcore/ |
| 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()
|
| /drivers/scsi/libfc/ |
| A D | fc_encode.h | 139 len = strnlen(fc_host_symbolic_name(lport->host), in fc_ct_ns_fill() 150 len = strnlen(fc_host_symbolic_name(lport->host), in fc_ct_ns_fill() 554 strnlen(dev_name(&lport->host->shost_gendev), in fc_ct_ms_fill() 568 strnlen(fc_host_system_hostname(lport->host), in fc_ct_ms_fill()
|
| /drivers/firmware/smccc/ |
| A D | soc_id.c | 93 len = strnlen(smccc_soc_id_name, sizeof(smccc_soc_id_name)); in smccc_soc_name_init()
|
| /drivers/crypto/intel/qat/qat_common/ |
| A D | adf_cfg_services.c | 136 len = strnlen(services, ADF_CFG_MAX_VAL_LEN_IN_BYTES); in adf_get_service_mask()
|
| /drivers/video/fbdev/omap2/omapfb/dss/ |
| A D | omapdss-boot-init.c | 92 if (strnlen(prop->value, prop->length) >= prop->length) in omapdss_omapify_node()
|
| /drivers/mtd/ubi/ |
| A D | block.c | 108 len = strnlen(val, UBIBLOCK_PARAM_LEN); in ubiblock_set_param() 559 len = strnlen(name, UBI_VOL_NAME_MAX + 1); in match_volume_desc()
|
| A D | debug.c | 143 strnlen(vol->name, vol->name_len + 1) == vol->name_len) { in ubi_dump_vol_info() 175 strnlen(&r->name[0], name_len + 1) == name_len) { in ubi_dump_vtbl_record()
|
| /drivers/nfc/ |
| A D | virtual_ncidev.c | 128 if (strnlen(skb->data, count) != count) { in virtual_ncidev_write()
|
| /drivers/scsi/ |
| A D | scsi_devinfo.c | 458 if (vmax != strnlen(devinfo->vendor, in scsi_dev_info_list_find() 467 mlen = strnlen(devinfo->model, sizeof(devinfo->model)); in scsi_dev_info_list_find()
|
| /drivers/char/xillybus/ |
| A D | xillybus_class.c | 112 namelen = strnlen(idt, len); in xillybus_init_chrdev()
|
| /drivers/platform/x86/ |
| A D | classmate-laptop.c | 240 return strnlen(buf, count); in cmpc_accel_sensitivity_store_v4() 289 return strnlen(buf, count); in cmpc_accel_g_select_store_v4() 578 return strnlen(buf, count); in cmpc_accel_sensitivity_store()
|
| /drivers/of/ |
| A D | property.c | 505 if (strnlen(prop->value, prop->length) >= prop->length) in of_property_read_string() 543 l = strnlen(p, end - p) + 1; in of_property_match_string() 581 l = strnlen(p, end - p) + 1; in of_property_read_string_helper()
|
| /drivers/input/keyboard/ |
| A D | omap-keypad.c | 169 return strnlen(buf, count); in omap_kp_enable_store()
|
| /drivers/net/wireless/intel/ipw2x00/ |
| A D | libipw_module.c | 240 return strnlen(buf, len); in debug_level_proc_write()
|
| /drivers/soc/qcom/ |
| A D | cmd-db.c | 312 (int)strnlen(ent->id, sizeof(ent->id)), ent->id); in cmd_db_debugfs_dump()
|
| /drivers/net/ethernet/cavium/liquidio/ |
| A D | octeon_console.c | 902 if ((sizeof(h->bootcmd) - strnlen(h->bootcmd, sizeof(h->bootcmd))) < in octeon_download_firmware() 908 sizeof(h->bootcmd) - strnlen(h->bootcmd, sizeof(h->bootcmd))); in octeon_download_firmware()
|
| /drivers/hwmon/ |
| A D | cros_ec_hwmon.c | 216 sensor_name_size = strnlen(resp.sensor_name, sizeof(resp.sensor_name)); in cros_ec_hwmon_probe_temp_sensors()
|
| /drivers/target/ |
| A D | target_core_spc.c | 134 strnlen(dev->t10_wwn.vendor, INQUIRY_VENDOR_LEN)); in spc_emulate_inquiry_std() 136 strnlen(dev->t10_wwn.model, INQUIRY_MODEL_LEN)); in spc_emulate_inquiry_std() 138 strnlen(dev->t10_wwn.revision, INQUIRY_REVISION_LEN)); in spc_emulate_inquiry_std() 279 strnlen(dev->t10_wwn.vendor, INQUIRY_VENDOR_LEN)); in spc_emulate_evpd_83()
|