Home
last modified time | relevance | path

Searched refs:expected_len (Results 1 – 15 of 15) sorted by relevance

/linux-6.1.9/drivers/char/tpm/
Dtpm_i2c_atmel.c72 u32 expected_len; in i2c_atmel_recv() local
81 expected_len = be32_to_cpu(hdr->length); in i2c_atmel_recv()
82 if (expected_len > count) in i2c_atmel_recv()
85 if (priv->len >= expected_len) { in i2c_atmel_recv()
88 (int)min_t(size_t, 64, expected_len), buf, count, in i2c_atmel_recv()
89 expected_len); in i2c_atmel_recv()
90 memcpy(buf, priv->buffer, expected_len); in i2c_atmel_recv()
91 return expected_len; in i2c_atmel_recv()
94 rc = i2c_master_recv(client, buf, expected_len); in i2c_atmel_recv()
97 (int)min_t(size_t, 64, expected_len), buf, count, in i2c_atmel_recv()
[all …]
/linux-6.1.9/drivers/net/can/usb/etas_es58x/
Des58x_core.h443 size_t actual_len, size_t expected_len) in __es58x_check_msg_len() argument
445 if (expected_len != actual_len) { in __es58x_check_msg_len()
448 stringified_msg, expected_len, actual_len); in __es58x_check_msg_len()
474 size_t expected_len) in __es58x_check_msg_max_len() argument
476 if (actual_len > expected_len) { in __es58x_check_msg_max_len()
479 stringified_msg, expected_len, actual_len); in __es58x_check_msg_max_len()
/linux-6.1.9/drivers/cxl/
Dacpi.c33 int rc, expected_len; in cxl_acpi_cfmws_verify() local
58 expected_len = struct_size(cfmws, interleave_targets, ways); in cxl_acpi_cfmws_verify()
60 if (cfmws->header.length < expected_len) { in cxl_acpi_cfmws_verify()
62 cfmws->header.length, expected_len); in cxl_acpi_cfmws_verify()
66 if (cfmws->header.length > expected_len) in cxl_acpi_cfmws_verify()
68 cfmws->header.length, expected_len); in cxl_acpi_cfmws_verify()
/linux-6.1.9/drivers/iio/imu/bno055/
Dbno055_ser_core.c154 int expected_len; member
433 priv->rx.expected_len = buf[0]; in bno055_ser_receive_buf()
444 if (priv->rx.databuf_count + remaining > priv->rx.expected_len) { in bno055_ser_receive_buf()
480 if (priv->rx.databuf_count == priv->rx.expected_len) { in bno055_ser_receive_buf()
/linux-6.1.9/drivers/net/usb/
Dkalmia.c57 u8 *buffer, u8 expected_len) in kalmia_send_init_packet() argument
82 buffer, expected_len, &act_len, KALMIA_USB_TIMEOUT); in kalmia_send_init_packet()
88 else if (act_len != expected_len) in kalmia_send_init_packet()
/linux-6.1.9/tools/testing/selftests/net/
Dpsock_snd.c274 static void do_rx(int fd, int expected_len, char *expected) in do_rx() argument
281 if (ret != expected_len) in do_rx()
282 error(1, 0, "recv: %u != %u", ret, expected_len); in do_rx()
/linux-6.1.9/drivers/misc/ocxl/
Dconfig.c385 u16 len, expected_len; in ocxl_config_check_afu_index() local
405 expected_len = OCXL_TEMPL_LEN_1_0; in ocxl_config_check_afu_index()
408 expected_len = OCXL_TEMPL_LEN_1_1; in ocxl_config_check_afu_index()
413 expected_len = len; in ocxl_config_check_afu_index()
415 if (len != expected_len) in ocxl_config_check_afu_index()
418 len, expected_len, templ_version); in ocxl_config_check_afu_index()
/linux-6.1.9/drivers/misc/mei/
Dinterrupt.c301 u32 expected_len = 0; in hdr_is_valid() local
308 expected_len += MEI_SLOT_SIZE; in hdr_is_valid()
310 expected_len += MEI_SLOT_SIZE; in hdr_is_valid()
311 if (mei_hdr->length < expected_len) in hdr_is_valid()
/linux-6.1.9/drivers/scsi/libfc/
Dfc_fcp.c850 u32 expected_len; in fc_fcp_resp() local
864 expected_len = fsp->data_len; in fc_fcp_resp()
917 expected_len -= fsp->scsi_resid; in fc_fcp_resp()
929 fsp->xfer_len != expected_len)) { in fc_fcp_resp()
930 if (fsp->xfer_len < expected_len) { in fc_fcp_resp()
944 fsp->xfer_len, expected_len, fsp->data_len); in fc_fcp_resp()
952 fsp->xfer_len, expected_len, fsp->data_len); in fc_fcp_resp()
/linux-6.1.9/drivers/pnp/pnpacpi/
Drsparser.c125 int expected_len) in vendor_resource_matches() argument
138 if (expected_len && expected_len != actual_len) { in vendor_resource_matches()
141 expected_len, actual_len); in vendor_resource_matches()
/linux-6.1.9/net/bluetooth/
Dmgmt.c2838 u16 key_count, expected_len; in load_link_keys() local
2856 expected_len = struct_size(cp, keys, key_count); in load_link_keys()
2857 if (expected_len != len) { in load_link_keys()
2859 expected_len, len); in load_link_keys()
4185 u16 key_count, expected_len; in set_blocked_keys() local
4197 expected_len = struct_size(keys, keys, key_count); in set_blocked_keys()
4198 if (expected_len != len) { in set_blocked_keys()
4200 expected_len, len); in set_blocked_keys()
5988 u16 uuid_count, expected_len; in start_service_discovery() local
6032 expected_len = sizeof(*cp) + uuid_count * 16; in start_service_discovery()
[all …]
/linux-6.1.9/net/openvswitch/
Dflow_netlink.c445 static bool check_attr_len(unsigned int attr_len, unsigned int expected_len) in check_attr_len() argument
447 return expected_len == attr_len || in check_attr_len()
448 expected_len == OVS_ATTR_NESTED || in check_attr_len()
449 expected_len == OVS_ATTR_VARIABLE; in check_attr_len()
477 int expected_len; in __parse_flow_nlattrs() local
497 expected_len = ovs_key_lens[type].len; in __parse_flow_nlattrs()
498 if (!check_attr_len(nla_len(nla), expected_len)) { in __parse_flow_nlattrs()
500 type, nla_len(nla), expected_len); in __parse_flow_nlattrs()
/linux-6.1.9/tools/testing/selftests/bpf/
Dxskxceiver.c1112 socklen_t optlen, expected_len; in get_xsk_stats() local
1122 expected_len = sizeof(struct xdp_statistics); in get_xsk_stats()
1123 if (optlen != expected_len) { in get_xsk_stats()
1125 __func__, expected_len, optlen); in get_xsk_stats()
/linux-6.1.9/drivers/net/wireless/
Drndis_wlan.c2960 int list_len, expected_len, i; in rndis_wlan_pmkid_cand_list_indication() local
2971 expected_len = sizeof(struct ndis_80211_pmkid_cand_list) + list_len + in rndis_wlan_pmkid_cand_list_indication()
2974 if (len < expected_len) { in rndis_wlan_pmkid_cand_list_indication()
2976 len, expected_len); in rndis_wlan_pmkid_cand_list_indication()
/linux-6.1.9/drivers/net/wireless/ath/ath6kl/
Dwmi.c3337 u32 expected_len; in ath6kl_wmi_get_pmkid_list_event_rx() local
3343 expected_len = sizeof(reply->num_pmkid) + in ath6kl_wmi_get_pmkid_list_event_rx()
3346 if (len < expected_len) in ath6kl_wmi_get_pmkid_list_event_rx()