Home
last modified time | relevance | path

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

/linux-5.19.10/drivers/staging/r8188eu/core/
Drtw_ieee80211.c594 u16 attr_len = attr_data_len + 4; in rtw_get_wps_attr() local
599 memcpy(buf_attr, attr_ptr, attr_len); in rtw_get_wps_attr()
601 *len_attr = attr_len; in rtw_get_wps_attr()
604 attr_ptr += attr_len; /* goto next */ in rtw_get_wps_attr()
622 u32 attr_len; in rtw_get_wps_attr_content() local
627 attr_ptr = rtw_get_wps_attr(wps_ie, wps_ielen, target_attr_id, NULL, &attr_len); in rtw_get_wps_attr_content()
629 if (attr_ptr && attr_len) { in rtw_get_wps_attr_content()
631 memcpy(buf_content, attr_ptr + 4, attr_len - 4); in rtw_get_wps_attr_content()
634 *len_content = attr_len - 4; in rtw_get_wps_attr_content()
935 u16 attr_len = attr_data_len + 3; in rtw_get_p2p_attr() local
[all …]
Drtw_p2p.c27 u16 attr_len = 0; in go_add_group_info_attr() local
94 attr_len += tmplen; in go_add_group_info_attr()
102 if (attr_len > 0) in go_add_group_info_attr()
103 len = rtw_set_p2p_attr_content(pbuf, P2P_ATTR_GROUP_INFO, attr_len, pdata_attr); in go_add_group_info_attr()
/linux-5.19.10/drivers/net/wireless/ath/ath10k/
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-5.19.10/fs/ntfs/
Daops.c388 u32 attr_len; in ntfs_read_folio() local
477 attr_len = le32_to_cpu(ctx->attr->data.resident.value_length); in ntfs_read_folio()
479 if (unlikely(attr_len > ni->initialized_size)) in ntfs_read_folio()
480 attr_len = ni->initialized_size; in ntfs_read_folio()
483 if (unlikely(attr_len > i_size)) { in ntfs_read_folio()
485 attr_len = i_size; in ntfs_read_folio()
491 attr_len); in ntfs_read_folio()
493 memset(addr + attr_len, 0, PAGE_SIZE - attr_len); in ntfs_read_folio()
1346 u32 attr_len; in ntfs_writepage() local
1469 attr_len = le32_to_cpu(ctx->attr->data.resident.value_length); in ntfs_writepage()
[all …]
Dfile.c111 u32 attr_len; in ntfs_attr_extend_initialized() local
154 attr_len = le32_to_cpu(a->data.resident.value_length); in ntfs_attr_extend_initialized()
155 BUG_ON(old_i_size != (loff_t)attr_len); in ntfs_attr_extend_initialized()
161 memset(kattr + attr_len, 0, new_init_size - attr_len); in ntfs_attr_extend_initialized()
1550 u32 attr_len; in ntfs_commit_pages_after_write() local
1599 attr_len = le32_to_cpu(a->data.resident.value_length); in ntfs_commit_pages_after_write()
1601 BUG_ON(attr_len != i_size); in ntfs_commit_pages_after_write()
1602 BUG_ON(pos > attr_len); in ntfs_commit_pages_after_write()
1611 if (end > attr_len) { in ntfs_commit_pages_after_write()
1612 attr_len = end; in ntfs_commit_pages_after_write()
[all …]
Dattrib.c1908 u32 attr_len = 0; /* Silence stupid gcc warning. */ in ntfs_attr_extend_allocation() local
2034 attr_len = le32_to_cpu(a->data.resident.value_length); in ntfs_attr_extend_allocation()
2050 BUG_ON(new_data_size < attr_len); in ntfs_attr_extend_allocation()
2071 err = ntfs_attr_make_non_resident(ni, attr_len); in ntfs_attr_extend_allocation()
2271 attr_len = le32_to_cpu(a->length); in ntfs_attr_extend_allocation()
2430 if (ntfs_attr_record_resize(m, a, attr_len)) { in ntfs_attr_extend_allocation()
2438 mapping_pairs_offset), attr_len - in ntfs_attr_extend_allocation()
/linux-5.19.10/drivers/staging/rtl8723bs/core/
Drtw_ieee80211.c730 u16 attr_len = attr_data_len + 4; in rtw_get_wps_attr() local
736 memcpy(buf_attr, attr_ptr, attr_len); in rtw_get_wps_attr()
739 *len_attr = attr_len; in rtw_get_wps_attr()
743 attr_ptr += attr_len; /* goto next */ in rtw_get_wps_attr()
762 u32 attr_len; in rtw_get_wps_attr_content() local
767 attr_ptr = rtw_get_wps_attr(wps_ie, wps_ielen, target_attr_id, NULL, &attr_len); in rtw_get_wps_attr_content()
769 if (attr_ptr && attr_len) { in rtw_get_wps_attr_content()
771 memcpy(buf_content, attr_ptr+4, attr_len-4); in rtw_get_wps_attr_content()
774 *len_content = attr_len-4; in rtw_get_wps_attr_content()
/linux-5.19.10/drivers/memstick/core/
Dmspro_block.c942 unsigned int addr, attr_offset = 0, attr_len = msb->page_size; in mspro_block_read_attributes() local
955 msb->setup_transfer(card, attr_offset, attr_len); in mspro_block_read_attributes()
987 buffer = kmemdup(attr, attr_len, GFP_KERNEL); in mspro_block_read_attributes()
1038 if ((attr_offset + attr_len) < (addr + s_attr->size)) { in mspro_block_read_attributes()
1040 attr_len = (((addr + s_attr->size) / msb->page_size) in mspro_block_read_attributes()
1042 buffer = kmalloc(attr_len, GFP_KERNEL); in mspro_block_read_attributes()
1049 sg_init_one(&msb->req_sg[0], buffer, attr_len); in mspro_block_read_attributes()
1057 attr_offset, attr_len); in mspro_block_read_attributes()
1059 msb->setup_transfer(card, attr_offset, attr_len); in mspro_block_read_attributes()
/linux-5.19.10/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
382 if (*cor_offset > attr_len) { in prism2_plx_check_cis()
/linux-5.19.10/drivers/s390/crypto/
Dzcrypt_ep11misc.c682 u8 attr_len; in ep11_genaeskey() member
736 req_pl->attr_len = 5 * sizeof(u32); in ep11_genaeskey()
937 u8 attr_len; in ep11_unwrapkey() member
984 req_pl->attr_len = 7 * sizeof(u32); in ep11_unwrapkey()
Dzcrypt_ccamisc.c592 u16 attr_len; in cca_sec2protkey() member
597 u16 attr_len; in cca_sec2protkey() member
607 u16 attr_len; in cca_sec2protkey() member
639 preqparm->lv1.attr_len = sizeof(struct lv1) - sizeof(preqparm->lv1.len); in cca_sec2protkey()
642 preqparm->lv2.attr_len = sizeof(struct lv2) in cca_sec2protkey()
/linux-5.19.10/net/wireless/
Dutil.c1646 u16 attr_len; in cfg80211_get_p2p_attr() local
1652 attr_len = get_unaligned_le16(iedata + 1); in cfg80211_get_p2p_attr()
1656 copy = min_t(unsigned int, attr_len, iedatalen); in cfg80211_get_p2p_attr()
1666 if (copy == attr_len) in cfg80211_get_p2p_attr()
1672 attr_remaining = attr_len - copy; in cfg80211_get_p2p_attr()
/linux-5.19.10/drivers/net/wireless/microchip/wilc1000/
Dcfg80211.c80 __le16 attr_len; member
86 __le16 attr_len; member
94 __le16 attr_len; member
953 index += le16_to_cpu(e->attr_len) + sizeof(*e); in wilc_wfi_cfg_parse_ch_attr()
962 attr_size = le16_to_cpu(ch_list->attr_len); in wilc_wfi_cfg_parse_ch_attr()
/linux-5.19.10/drivers/scsi/bfa/
Dbfa_fcs_lport.c1865 int len, attr_len; in bfa_fcs_lport_fdmi_send_rhba() local
1886 attr_len = in bfa_fcs_lport_fdmi_send_rhba()
1890 if (attr_len < 0) in bfa_fcs_lport_fdmi_send_rhba()
1894 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-5.19.10/drivers/staging/r8188eu/include/
Dieee80211.h801 u32 rtw_set_p2p_attr_content(u8 *pbuf, u8 attr_id, u16 attr_len,
/linux-5.19.10/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()
2453 int attr_len, bool log) in reserve_sfa_size() argument
2458 size_t req_size = NLA_ALIGN(attr_len); in reserve_sfa_size()