Home
last modified time | relevance | path

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

/linux-4.4.14/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-4.4.14/net/irda/
Diriap.c368 int name_len, attr_len, skb_len; in iriap_getvaluebyclass_request() local
390 attr_len = strlen(attr); /* Up to IAS_MAX_ATTRIBNAME = 60 */ in iriap_getvaluebyclass_request()
392 skb_len = self->max_header_size+2+name_len+1+attr_len+4; in iriap_getvaluebyclass_request()
399 skb_put(tx_skb, 3+name_len+attr_len); in iriap_getvaluebyclass_request()
406 frame[2+name_len] = attr_len; /* Insert length of attr */ in iriap_getvaluebyclass_request()
407 memcpy(frame+3+name_len, attr, attr_len); /* Insert attr */ in iriap_getvaluebyclass_request()
636 int attr_len; in iriap_getvaluebyclass_indication() local
656 attr_len = fp[n++]; in iriap_getvaluebyclass_indication()
658 IRDA_ASSERT(attr_len < IAS_MAX_ATTRIBNAME + 1, return;); in iriap_getvaluebyclass_indication()
660 memcpy(attr, fp+n, attr_len); n+=attr_len; in iriap_getvaluebyclass_indication()
[all …]
/linux-4.4.14/fs/ntfs/
Daops.c407 u32 attr_len; in ntfs_readpage() local
496 attr_len = le32_to_cpu(ctx->attr->data.resident.value_length); in ntfs_readpage()
498 if (unlikely(attr_len > ni->initialized_size)) in ntfs_readpage()
499 attr_len = ni->initialized_size; in ntfs_readpage()
502 if (unlikely(attr_len > i_size)) { in ntfs_readpage()
504 attr_len = i_size; in ntfs_readpage()
510 attr_len); in ntfs_readpage()
512 memset(addr + attr_len, 0, PAGE_CACHE_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()
1567 u32 attr_len; in ntfs_commit_pages_after_write() local
1616 attr_len = le32_to_cpu(a->data.resident.value_length); in ntfs_commit_pages_after_write()
1618 BUG_ON(attr_len != i_size); in ntfs_commit_pages_after_write()
1619 BUG_ON(pos > attr_len); in ntfs_commit_pages_after_write()
1628 if (end > attr_len) { in ntfs_commit_pages_after_write()
1629 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.c2375 u32 attr_len; in ntfs_truncate() local
2749 attr_len = le32_to_cpu(a->length); in ntfs_truncate()
/linux-4.4.14/drivers/staging/rtl8723au/core/
Drtw_ieee80211.c633 u16 attr_len = attr_data_len + 4; in rtw_get_wps_attr23a() local
640 memcpy(buf_attr, attr_ptr, attr_len); in rtw_get_wps_attr23a()
643 *len_attr = attr_len; in rtw_get_wps_attr23a()
647 attr_ptr += attr_len; /* goto next */ in rtw_get_wps_attr23a()
671 u32 attr_len; in rtw_get_wps_attr_content23a() local
674 NULL, &attr_len); in rtw_get_wps_attr_content23a()
676 if (attr_ptr && attr_len) { in rtw_get_wps_attr_content23a()
678 memcpy(buf_content, attr_ptr + 4, attr_len - 4); in rtw_get_wps_attr_content23a()
/linux-4.4.14/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-4.4.14/drivers/staging/rtl8188eu/core/
Drtw_ieee80211.c813 u16 attr_len = attr_data_len + 4; in rtw_get_wps_attr() local
818 memcpy(buf_attr, attr_ptr, attr_len); in rtw_get_wps_attr()
820 *len_attr = attr_len; in rtw_get_wps_attr()
823 attr_ptr += attr_len; /* goto next */ in rtw_get_wps_attr()
842 u32 attr_len; in rtw_get_wps_attr_content() local
847 attr_ptr = rtw_get_wps_attr(wps_ie, wps_ielen, target_attr_id, NULL, &attr_len); in rtw_get_wps_attr_content()
849 if (attr_ptr && attr_len) { in rtw_get_wps_attr_content()
851 memcpy(buf_content, attr_ptr+4, attr_len-4); in rtw_get_wps_attr_content()
854 *len_content = attr_len-4; in rtw_get_wps_attr_content()
/linux-4.4.14/drivers/memstick/core/
Dmspro_block.c991 unsigned int addr, attr_offset = 0, attr_len = msb->page_size; in mspro_block_read_attributes() local
1004 msb->setup_transfer(card, attr_offset, attr_len); in mspro_block_read_attributes()
1036 buffer = kmalloc(attr_len, GFP_KERNEL); in mspro_block_read_attributes()
1041 memcpy(buffer, (char *)attr, attr_len); in mspro_block_read_attributes()
1088 if ((attr_offset + attr_len) < (addr + s_attr->size)) { in mspro_block_read_attributes()
1090 attr_len = (((addr + s_attr->size) / msb->page_size) in mspro_block_read_attributes()
1092 buffer = kmalloc(attr_len, GFP_KERNEL); in mspro_block_read_attributes()
1099 sg_init_one(&msb->req_sg[0], buffer, attr_len); in mspro_block_read_attributes()
1107 attr_offset, attr_len); in mspro_block_read_attributes()
1109 msb->setup_transfer(card, attr_offset, attr_len); in mspro_block_read_attributes()
/linux-4.4.14/net/wireless/
Dutil.c1253 u16 attr_len; in cfg80211_get_p2p_attr() local
1259 attr_len = get_unaligned_le16(iedata + 1); in cfg80211_get_p2p_attr()
1263 copy = min_t(unsigned int, attr_len, iedatalen); in cfg80211_get_p2p_attr()
1273 if (copy == attr_len) in cfg80211_get_p2p_attr()
1279 attr_remaining = attr_len - copy; in cfg80211_get_p2p_attr()
/linux-4.4.14/drivers/net/wireless/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-4.4.14/net/openvswitch/
Dflow_netlink.c360 static bool check_attr_len(unsigned int attr_len, unsigned int expected_len) in check_attr_len() argument
362 return expected_len == attr_len || in check_attr_len()
1740 int attr_len, bool log) in reserve_sfa_size() argument
1745 int req_size = NLA_ALIGN(attr_len); in reserve_sfa_size()
/linux-4.4.14/drivers/scsi/bfa/
Dbfa_fcs_lport.c1861 int len, attr_len; in bfa_fcs_lport_fdmi_send_rhba() local
1882 attr_len = in bfa_fcs_lport_fdmi_send_rhba()
1888 FC_CLASS_3, (len + attr_len), &fchs, in bfa_fcs_lport_fdmi_send_rhba()
2194 u16 len, attr_len; in bfa_fcs_lport_fdmi_send_rprt() local
2215 attr_len = in bfa_fcs_lport_fdmi_send_rprt()
2221 FC_CLASS_3, len + attr_len, &fchs, in bfa_fcs_lport_fdmi_send_rprt()
2517 u16 len, attr_len; in bfa_fcs_lport_fdmi_send_rpa() local
2538 attr_len = bfa_fcs_lport_fdmi_build_rpa_pyld(fdmi, in bfa_fcs_lport_fdmi_send_rpa()
2542 FC_CLASS_3, len + attr_len, &fchs, in bfa_fcs_lport_fdmi_send_rpa()