Home
last modified time | relevance | path

Searched refs:strnlen (Results 1 – 25 of 94) sorted by relevance

1234

/drivers/char/
A Dtlclk.c342 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 Dnetconsole.c358 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 Dfbnic_debugfs.c31 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 Dcma_configfs.c142 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 Dnfp_net_debugdump.c208 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 Dqcom_pil_info.c107 memcpy_toio(entry, image, strnlen(image, PIL_RELOC_NAME_LEN)); in qcom_pil_info_store()
/drivers/firmware/efi/libstub/
A Dstring.c35 size_t strnlen(const char *s, size_t count) in strnlen() function
/drivers/net/ethernet/netronome/nfp/nfpcore/
A Dnfp_nsp.c930 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 Dfc_encode.h139 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 Dsoc_id.c93 len = strnlen(smccc_soc_id_name, sizeof(smccc_soc_id_name)); in smccc_soc_name_init()
/drivers/crypto/intel/qat/qat_common/
A Dadf_cfg_services.c136 len = strnlen(services, ADF_CFG_MAX_VAL_LEN_IN_BYTES); in adf_get_service_mask()
/drivers/video/fbdev/omap2/omapfb/dss/
A Domapdss-boot-init.c92 if (strnlen(prop->value, prop->length) >= prop->length) in omapdss_omapify_node()
/drivers/mtd/ubi/
A Dblock.c108 len = strnlen(val, UBIBLOCK_PARAM_LEN); in ubiblock_set_param()
559 len = strnlen(name, UBI_VOL_NAME_MAX + 1); in match_volume_desc()
A Ddebug.c143 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 Dvirtual_ncidev.c128 if (strnlen(skb->data, count) != count) { in virtual_ncidev_write()
/drivers/scsi/
A Dscsi_devinfo.c458 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 Dxillybus_class.c112 namelen = strnlen(idt, len); in xillybus_init_chrdev()
/drivers/platform/x86/
A Dclassmate-laptop.c240 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 Dproperty.c505 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 Domap-keypad.c169 return strnlen(buf, count); in omap_kp_enable_store()
/drivers/net/wireless/intel/ipw2x00/
A Dlibipw_module.c240 return strnlen(buf, len); in debug_level_proc_write()
/drivers/soc/qcom/
A Dcmd-db.c312 (int)strnlen(ent->id, sizeof(ent->id)), ent->id); in cmd_db_debugfs_dump()
/drivers/net/ethernet/cavium/liquidio/
A Docteon_console.c902 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 Dcros_ec_hwmon.c216 sensor_name_size = strnlen(resp.sensor_name, sizeof(resp.sensor_name)); in cros_ec_hwmon_probe_temp_sensors()
/drivers/target/
A Dtarget_core_spc.c134 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()

Completed in 810 milliseconds

1234