Home
last modified time | relevance | path

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

/linux/fs/ntfs/
H A Diomap.c89 u32 attr_len; in ntfs_read_iomap_begin_resident() local
110 attr_len = le32_to_cpu(ctx->attr->data.resident.value_length); in ntfs_read_iomap_begin_resident()
111 if (unlikely(attr_len > ni->initialized_size)) in ntfs_read_iomap_begin_resident()
112 attr_len = ni->initialized_size; in ntfs_read_iomap_begin_resident()
115 if (unlikely(attr_len > i_size)) { in ntfs_read_iomap_begin_resident()
117 attr_len = i_size; in ntfs_read_iomap_begin_resident()
120 if (offset >= attr_len) { in ntfs_read_iomap_begin_resident()
139 memcpy(page_address(ipage), kattr, attr_len); in ntfs_read_iomap_begin_resident()
143 iomap->length = attr_len; in ntfs_read_iomap_begin_resident()
659 u32 attr_len; in ntfs_write_iomap_begin_resident() local
[all …]
H A Dinode.c3444 u32 attr_len, total = 0, offset; in ntfs_inode_attr_pread() local
3498 attr_len = min_t(size_t, (size_t)count, folio_size(folio) - offset); in ntfs_inode_attr_pread()
3501 memcpy_from_folio(buf, folio, offset, attr_len); in ntfs_inode_attr_pread()
3505 total += attr_len; in ntfs_inode_attr_pread()
3506 buf += attr_len; in ntfs_inode_attr_pread()
3507 pos += attr_len; in ntfs_inode_attr_pread()
3508 count -= attr_len; in ntfs_inode_attr_pread()
3615 size_t attr_len; in __ntfs_inode_non_resident_attr_pwrite() local
3644 attr_len = count; in __ntfs_inode_non_resident_attr_pwrite()
3647 attr_len = min_t(size_t, (size_t)count, folio_size(folio) - offset); in __ntfs_inode_non_resident_attr_pwrite()
[all …]
H A Dattrib.c665 u32 attr_len; in ntfs_attr_find() local
696 attr_len = le32_to_cpu(a->length); in ntfs_attr_find()
699 if (name_offset > attr_len || in ntfs_attr_find()
700 attr_len - name_offset < name_size) { in ntfs_attr_find()
954 u32 attr_len, mft_free_len; in ntfs_external_attr_find() local
1228 attr_len = le32_to_cpu(a->length); in ntfs_external_attr_find()
1229 if (!attr_len || in ntfs_external_attr_find()
1230 attr_len < offsetof(struct attr_record, data.resident.reserved) + in ntfs_external_attr_find()
1232 attr_len > mft_free_len) in ntfs_external_attr_find()
1245 a->name_length * sizeof(__le16)) > attr_len)) in ntfs_external_attr_find()
[all …]
/linux/drivers/net/wireless/ath/ath10k/
H A Dp2p.c19 u16 attr_len; in ath10k_p2p_noa_ie_fill() local
49 attr_len = 2; /* index + oppps_ctwindow */ in ath10k_p2p_noa_ie_fill()
50 attr_len += noa_descriptors * sizeof(struct ieee80211_p2p_noa_desc); in ath10k_p2p_noa_ie_fill()
51 *noa_attr_len = __cpu_to_le16(attr_len); in ath10k_p2p_noa_ie_fill()
/linux/drivers/net/wireless/ath/ath11k/
H A Dp2p.c18 u16 attr_len; in ath11k_p2p_noa_ie_fill() local
55 attr_len = 2; /* index + oppps_ctwindow */ in ath11k_p2p_noa_ie_fill()
56 attr_len += noa_descriptors * sizeof(struct ieee80211_p2p_noa_desc); in ath11k_p2p_noa_ie_fill()
57 *noa_attr_len = __cpu_to_le16(attr_len); in ath11k_p2p_noa_ie_fill()
/linux/drivers/net/wireless/ath/ath12k/
H A Dp2p.c19 u16 attr_len; in ath12k_p2p_noa_ie_fill() local
51 attr_len = 2; /* index + oppps_ctwindow */ in ath12k_p2p_noa_ie_fill()
52 attr_len += noa_descriptors * sizeof(struct ieee80211_p2p_noa_desc); in ath12k_p2p_noa_ie_fill()
53 *noa_attr_len = __cpu_to_le16(attr_len); in ath12k_p2p_noa_ie_fill()
/linux/drivers/staging/rtl8723bs/core/
H A Drtw_ieee80211.c714 u16 attr_len = attr_data_len + 4; in rtw_get_wps_attr() local
720 memcpy(buf_attr, attr_ptr, attr_len); in rtw_get_wps_attr()
723 *len_attr = attr_len; in rtw_get_wps_attr()
727 attr_ptr += attr_len; /* goto next */ in rtw_get_wps_attr()
746 u32 attr_len; in rtw_get_wps_attr_content() local
751 attr_ptr = rtw_get_wps_attr(wps_ie, wps_ielen, target_attr_id, NULL, &attr_len); in rtw_get_wps_attr_content()
753 if (attr_ptr && attr_len) { in rtw_get_wps_attr_content()
755 memcpy(buf_content, attr_ptr + 4, attr_len - 4); in rtw_get_wps_attr_content()
758 *len_content = attr_len - 4; in rtw_get_wps_attr_content()
/linux/drivers/memstick/core/
H A Dmspro_block.c906 unsigned int addr, attr_offset = 0, attr_len = msb->page_size; in mspro_block_read_attributes() local
919 msb->setup_transfer(card, attr_offset, attr_len); in mspro_block_read_attributes()
950 buffer = kmemdup(attr, attr_len, GFP_KERNEL); in mspro_block_read_attributes()
1001 if ((attr_offset + attr_len) < (addr + s_attr->size)) { in mspro_block_read_attributes()
1003 attr_len = (((addr + s_attr->size) / msb->page_size) in mspro_block_read_attributes()
1005 buffer = kmalloc(attr_len, GFP_KERNEL); in mspro_block_read_attributes()
1012 sg_init_one(&msb->req_sg[0], buffer, attr_len); in mspro_block_read_attributes()
1020 attr_offset, attr_len); in mspro_block_read_attributes()
1022 msb->setup_transfer(card, attr_offset, attr_len); in mspro_block_read_attributes()
/linux/drivers/s390/crypto/
H A Dzcrypt_ccamisc.c617 u16 attr_len; in cca_sec2protkey() member
622 u16 attr_len; in cca_sec2protkey() member
632 u16 attr_len; in cca_sec2protkey() member
665 preqparm->lv1.attr_len = sizeof(struct lv1) - sizeof(preqparm->lv1.len); in cca_sec2protkey()
668 preqparm->lv2.attr_len = sizeof(struct lv2) in cca_sec2protkey()
/linux/net/wireless/
H A Dutil.c1971 u16 attr_len; in cfg80211_get_p2p_attr()
1977 attr_len = get_unaligned_le16(iedata + 1); in cfg80211_get_p2p_attr()
1981 copy = min_t(unsigned int, attr_len, iedatalen); in cfg80211_get_p2p_attr()
1991 if (copy == attr_len) in cfg80211_get_p2p_attr()
1997 attr_remaining = attr_len - copy; in ieee80211_id_in_list()
1955 u16 attr_len; cfg80211_get_p2p_attr() local
H A Dnl80211.c341 u16 attr_len; in validate_nan_avail_blob() local
358 attr_len = get_unaligned_le16(&data[1]); in validate_nan_avail_blob()
360 if (attr_len != len - 3) { in validate_nan_avail_blob()
363 attr_len, len - 3); in validate_nan_avail_blob()
378 u16 attr_len; in validate_nan_ulw() local
397 attr_len = get_unaligned_le16(&data[pos]); in validate_nan_ulw()
406 if (attr_len != 16 && attr_len != 18 && attr_len != 21 && in validate_nan_ulw()
407 attr_len != 23) { in validate_nan_ulw()
410 attr_len); in validate_nan_ulw()
414 if (pos + attr_len > len) { in validate_nan_ulw()
[all …]
/linux/drivers/scsi/bfa/
H A Dbfa_fcs_lport.c1819 int len, attr_len; in bfa_fcs_lport_fdmi_send_rhba() local
1840 attr_len = in bfa_fcs_lport_fdmi_send_rhba()
1844 if (attr_len < 0) in bfa_fcs_lport_fdmi_send_rhba()
1848 FC_CLASS_3, (len + attr_len), &fchs, in bfa_fcs_lport_fdmi_send_rhba()
2160 u16 len, attr_len; in bfa_fcs_lport_fdmi_send_rprt() local
2181 attr_len = in bfa_fcs_lport_fdmi_send_rprt()
2187 FC_CLASS_3, len + attr_len, &fchs, in bfa_fcs_lport_fdmi_send_rprt()
2483 u16 len, attr_len; in bfa_fcs_lport_fdmi_send_rpa() local
2504 attr_len = bfa_fcs_lport_fdmi_build_rpa_pyld(fdmi, in bfa_fcs_lport_fdmi_send_rpa()
2508 FC_CLASS_3, len + attr_len, &fchs, in bfa_fcs_lport_fdmi_send_rpa()
/linux/net/openvswitch/
H A Dflow_netlink.c456 static bool check_attr_len(unsigned int attr_len, unsigned int expected_len) in check_attr_len() argument
458 return expected_len == attr_len || in check_attr_len()
2428 int attr_len, bool log) in reserve_sfa_size() argument
2433 size_t req_size = NLA_ALIGN(attr_len); in reserve_sfa_size()