Home
last modified time | relevance | path

Searched refs:attr_len (Results 1 – 14 of 14) sorted by relevance

/Linux-v4.19/drivers/net/wireless/ath/ath10k/
Dp2p.c30 u16 attr_len; in ath10k_p2p_noa_ie_fill() local
60 attr_len = 2; /* index + oppps_ctwindow */ in ath10k_p2p_noa_ie_fill()
61 attr_len += noa_descriptors * sizeof(struct ieee80211_p2p_noa_desc); in ath10k_p2p_noa_ie_fill()
62 *noa_attr_len = __cpu_to_le16(attr_len); in ath10k_p2p_noa_ie_fill()
/Linux-v4.19/fs/ntfs/
Daops.c404 u32 attr_len; in ntfs_readpage() local
493 attr_len = le32_to_cpu(ctx->attr->data.resident.value_length); in ntfs_readpage()
495 if (unlikely(attr_len > ni->initialized_size)) in ntfs_readpage()
496 attr_len = ni->initialized_size; in ntfs_readpage()
499 if (unlikely(attr_len > i_size)) { in ntfs_readpage()
501 attr_len = i_size; in ntfs_readpage()
507 attr_len); in ntfs_readpage()
509 memset(addr + attr_len, 0, PAGE_SIZE - attr_len); in ntfs_readpage()
1361 u32 attr_len; in ntfs_writepage() local
1483 attr_len = le32_to_cpu(ctx->attr->data.resident.value_length); in ntfs_writepage()
[all …]
Dfile.c124 u32 attr_len; in ntfs_attr_extend_initialized() local
167 attr_len = le32_to_cpu(a->data.resident.value_length); in ntfs_attr_extend_initialized()
168 BUG_ON(old_i_size != (loff_t)attr_len); in ntfs_attr_extend_initialized()
174 memset(kattr + attr_len, 0, new_init_size - attr_len); in ntfs_attr_extend_initialized()
1566 u32 attr_len; in ntfs_commit_pages_after_write() local
1615 attr_len = le32_to_cpu(a->data.resident.value_length); in ntfs_commit_pages_after_write()
1617 BUG_ON(attr_len != i_size); in ntfs_commit_pages_after_write()
1618 BUG_ON(pos > attr_len); in ntfs_commit_pages_after_write()
1627 if (end > attr_len) { in ntfs_commit_pages_after_write()
1628 attr_len = end; in ntfs_commit_pages_after_write()
[all …]
Dattrib.c1918 u32 attr_len = 0; /* Silence stupid gcc warning. */ in ntfs_attr_extend_allocation() local
2044 attr_len = le32_to_cpu(a->data.resident.value_length); in ntfs_attr_extend_allocation()
2060 BUG_ON(new_data_size < attr_len); in ntfs_attr_extend_allocation()
2081 err = ntfs_attr_make_non_resident(ni, attr_len); in ntfs_attr_extend_allocation()
2281 attr_len = le32_to_cpu(a->length); in ntfs_attr_extend_allocation()
2440 if (ntfs_attr_record_resize(m, a, attr_len)) { in ntfs_attr_extend_allocation()
2448 mapping_pairs_offset), attr_len - in ntfs_attr_extend_allocation()
Dinode.c2366 u32 attr_len; in ntfs_truncate() local
2740 attr_len = le32_to_cpu(a->length); in ntfs_truncate()
/Linux-v4.19/net/wimax/
Dop-msg.c369 size_t attr_len = nla_len(attr); in wimax_gnl_doit_msg_from_user() local
372 pipe_name = kstrndup(nla_data(attr), attr_len + 1, GFP_KERNEL); in wimax_gnl_doit_msg_from_user()
375 pipe_name[attr_len] = 0; in wimax_gnl_doit_msg_from_user()
/Linux-v4.19/drivers/staging/rtl8188eu/core/
Drtw_ieee80211.c644 u16 attr_len = attr_data_len + 4; in rtw_get_wps_attr() local
649 memcpy(buf_attr, attr_ptr, attr_len); in rtw_get_wps_attr()
651 *len_attr = attr_len; in rtw_get_wps_attr()
654 attr_ptr += attr_len; /* goto next */ in rtw_get_wps_attr()
673 u32 attr_len; in rtw_get_wps_attr_content() local
678 attr_ptr = rtw_get_wps_attr(wps_ie, wps_ielen, target_attr_id, NULL, &attr_len); in rtw_get_wps_attr_content()
680 if (attr_ptr && attr_len) { in rtw_get_wps_attr_content()
682 memcpy(buf_content, attr_ptr + 4, attr_len - 4); in rtw_get_wps_attr_content()
685 *len_content = attr_len - 4; in rtw_get_wps_attr_content()
/Linux-v4.19/drivers/staging/rtl8723bs/core/
Drtw_ieee80211.c807 u16 attr_len = attr_data_len + 4; in rtw_get_wps_attr() local
814 memcpy(buf_attr, attr_ptr, attr_len); in rtw_get_wps_attr()
817 *len_attr = attr_len; in rtw_get_wps_attr()
821 attr_ptr += attr_len; /* goto next */ in rtw_get_wps_attr()
841 u32 attr_len; in rtw_get_wps_attr_content() local
846 attr_ptr = rtw_get_wps_attr(wps_ie, wps_ielen, target_attr_id, NULL, &attr_len); in rtw_get_wps_attr_content()
848 if (attr_ptr && attr_len) { in rtw_get_wps_attr_content()
850 memcpy(buf_content, attr_ptr+4, attr_len-4); in rtw_get_wps_attr_content()
853 *len_content = attr_len-4; in rtw_get_wps_attr_content()
/Linux-v4.19/drivers/memstick/core/
Dmspro_block.c980 unsigned int addr, attr_offset = 0, attr_len = msb->page_size; in mspro_block_read_attributes() local
993 msb->setup_transfer(card, attr_offset, attr_len); in mspro_block_read_attributes()
1025 buffer = kmemdup(attr, attr_len, GFP_KERNEL); in mspro_block_read_attributes()
1076 if ((attr_offset + attr_len) < (addr + s_attr->size)) { in mspro_block_read_attributes()
1078 attr_len = (((addr + s_attr->size) / msb->page_size) in mspro_block_read_attributes()
1080 buffer = kmalloc(attr_len, GFP_KERNEL); in mspro_block_read_attributes()
1087 sg_init_one(&msb->req_sg[0], buffer, attr_len); in mspro_block_read_attributes()
1095 attr_offset, attr_len); in mspro_block_read_attributes()
1097 msb->setup_transfer(card, attr_offset, attr_len); in mspro_block_read_attributes()
/Linux-v4.19/drivers/s390/crypto/
Dpkey_api.c495 u16 attr_len; in pkey_sec2protkey() member
500 u16 attr_len; in pkey_sec2protkey() member
510 u16 attr_len; in pkey_sec2protkey() member
542 preqparm->lv1.attr_len = sizeof(struct lv1) - sizeof(preqparm->lv1.len); in pkey_sec2protkey()
545 preqparm->lv2.attr_len = sizeof(struct lv2) in pkey_sec2protkey()
/Linux-v4.19/net/wireless/
Dutil.c1299 u16 attr_len; in cfg80211_get_p2p_attr() local
1305 attr_len = get_unaligned_le16(iedata + 1); in cfg80211_get_p2p_attr()
1309 copy = min_t(unsigned int, attr_len, iedatalen); in cfg80211_get_p2p_attr()
1319 if (copy == attr_len) in cfg80211_get_p2p_attr()
1325 attr_remaining = attr_len - copy; in cfg80211_get_p2p_attr()
/Linux-v4.19/drivers/net/wireless/intersil/hostap/
Dhostap_plx.c334 static int prism2_plx_check_cis(void __iomem *attr_mem, int attr_len, in prism2_plx_check_cis() argument
383 if (*cor_offset > attr_len) { in prism2_plx_check_cis()
/Linux-v4.19/drivers/scsi/bfa/
Dbfa_fcs_lport.c1873 int len, attr_len; in bfa_fcs_lport_fdmi_send_rhba() local
1894 attr_len = in bfa_fcs_lport_fdmi_send_rhba()
1900 FC_CLASS_3, (len + attr_len), &fchs, in bfa_fcs_lport_fdmi_send_rhba()
2206 u16 len, attr_len; in bfa_fcs_lport_fdmi_send_rprt() local
2227 attr_len = in bfa_fcs_lport_fdmi_send_rprt()
2233 FC_CLASS_3, len + attr_len, &fchs, in bfa_fcs_lport_fdmi_send_rprt()
2529 u16 len, attr_len; in bfa_fcs_lport_fdmi_send_rpa() local
2550 attr_len = bfa_fcs_lport_fdmi_build_rpa_pyld(fdmi, in bfa_fcs_lport_fdmi_send_rpa()
2554 FC_CLASS_3, len + attr_len, &fchs, in bfa_fcs_lport_fdmi_send_rpa()
/Linux-v4.19/net/openvswitch/
Dflow_netlink.c451 static bool check_attr_len(unsigned int attr_len, unsigned int expected_len) in check_attr_len() argument
453 return expected_len == attr_len || in check_attr_len()
2304 int attr_len, bool log) in reserve_sfa_size() argument
2309 int req_size = NLA_ALIGN(attr_len); in reserve_sfa_size()