Home
last modified time | relevance | path

Searched refs:min_len (Results 1 – 25 of 41) sorted by relevance

12

/kernel/linux/linux-5.10/net/ipv4/
Dinet_diag.c832 int *min_len) in valid_devcond() argument
835 *min_len += sizeof(u32); in valid_devcond()
836 if (len < *min_len) in valid_devcond()
843 int *min_len) in valid_hostcond() argument
849 *min_len += sizeof(struct inet_diag_hostcond); in valid_hostcond()
850 if (len < *min_len) in valid_hostcond()
868 *min_len += addr_len; in valid_hostcond()
869 if (len < *min_len) in valid_hostcond()
881 int len, int *min_len) in valid_port_comparison() argument
884 *min_len += sizeof(struct inet_diag_bc_op); in valid_port_comparison()
[all …]
/kernel/linux/linux-5.10/net/netfilter/
Dnfnetlink.c219 int min_len = nlmsg_total_size(sizeof(struct nfgenmsg)); in nfnetlink_rcv_msg() local
222 struct nlattr *attr = (void *)nlh + min_len; in nfnetlink_rcv_msg()
223 int attrlen = nlh->nlmsg_len - min_len; in nfnetlink_rcv_msg()
436 int min_len = nlmsg_total_size(sizeof(struct nfgenmsg)); in nfnetlink_rcv_batch() local
439 struct nlattr *attr = (void *)nlh + min_len; in nfnetlink_rcv_batch()
440 int attrlen = nlh->nlmsg_len - min_len; in nfnetlink_rcv_batch()
547 int min_len = nlmsg_total_size(sizeof(struct nfgenmsg)); in nfnetlink_rcv_skb_batch() local
548 struct nlattr *attr = (void *)nlh + min_len; in nfnetlink_rcv_skb_batch()
550 int attrlen = nlh->nlmsg_len - min_len; in nfnetlink_rcv_skb_batch()
Dnfnetlink_queue.c842 unsigned int min_len = skb_transport_offset(e->skb); in nfqnl_mangle() local
844 if (data_len < min_len) in nfqnl_mangle()
/kernel/linux/linux-5.10/fs/ntfs/
Dunistr.c88 u32 cnt, min_len; in ntfs_collate_names() local
91 min_len = name1_len; in ntfs_collate_names()
93 min_len = name2_len; in ntfs_collate_names()
94 for (cnt = 0; cnt < min_len; ++cnt) { in ntfs_collate_names()
/kernel/linux/linux-5.10/drivers/net/wireless/ath/carl9170/
Dfwdesc.h252 u16 min_len, u8 compatible_revision) in carl9170fw_desc_cmp() argument
257 (le16_to_cpu(head->length) >= min_len)) in carl9170fw_desc_cmp()
/kernel/linux/linux-5.10/drivers/net/wireless/broadcom/brcm80211/brcmsmac/
Dscb.h51 u16 min_len; /* min mpdu len to support the density */ member
/kernel/linux/linux-5.10/include/rdma/
Duverbs_ioctl.h63 u16 min_len; member
97 u16 min_len; member
448 .u.ptr.min_len = _min_len, .u.ptr.len = _len
458 .u.ptr.min_len = sizeof(_type), .u.ptr.len = sizeof(_type)
496 .u2.objs_arr.min_len = _min_len, \
/kernel/linux/linux-5.10/drivers/net/ethernet/sfc/falcon/
Dtx.c150 unsigned int min_len = tx_queue->tx_min_size; in ef4_enqueue_skb_copy() local
166 if (unlikely(copy_len < min_len)) { in ef4_enqueue_skb_copy()
167 memset(copy_buffer + copy_len, 0, min_len - copy_len); in ef4_enqueue_skb_copy()
168 buffer->len = min_len; in ef4_enqueue_skb_copy()
/kernel/linux/linux-5.10/drivers/net/wireless/ath/ath10k/
Dwmi-tlv.c23 size_t min_len; member
28 = { .min_len = 0 },
30 = { .min_len = 0 },
32 = { .min_len = sizeof(struct wmi_scan_event) },
34 = { .min_len = sizeof(struct wmi_tlv_mgmt_rx_ev) },
36 = { .min_len = sizeof(struct wmi_chan_info_event) },
38 = { .min_len = sizeof(struct wmi_vdev_start_response_event) },
40 = { .min_len = sizeof(struct wmi_peer_sta_kickout_event) },
42 = { .min_len = sizeof(struct wmi_host_swba_event) },
44 = { .min_len = sizeof(struct wmi_tim_info) },
[all …]
Dhtc.c435 size_t min_len; in ath10k_htc_rx_completion_handler() local
478 min_len = sizeof(struct ath10k_ath10k_htc_record_hdr); in ath10k_htc_rx_completion_handler()
480 if ((trailer_len < min_len) || in ath10k_htc_rx_completion_handler()
/kernel/linux/linux-5.10/fs/ubifs/
Dsuper.c595 c->ranges[UBIFS_AUTH_NODE].min_len = UBIFS_AUTH_NODE_SZ; in init_constants_early()
598 c->ranges[UBIFS_SIG_NODE].min_len = UBIFS_SIG_NODE_SZ; in init_constants_early()
601 c->ranges[UBIFS_INO_NODE].min_len = UBIFS_INO_NODE_SZ; in init_constants_early()
603 c->ranges[UBIFS_ORPH_NODE].min_len = in init_constants_early()
606 c->ranges[UBIFS_DENT_NODE].min_len = UBIFS_DENT_NODE_SZ; in init_constants_early()
608 c->ranges[UBIFS_XENT_NODE].min_len = UBIFS_XENT_NODE_SZ; in init_constants_early()
610 c->ranges[UBIFS_DATA_NODE].min_len = UBIFS_DATA_NODE_SZ; in init_constants_early()
616 c->ranges[UBIFS_IDX_NODE].min_len = UBIFS_IDX_NODE_SZ + UBIFS_BRANCH_SZ; in init_constants_early()
687 c->ranges[UBIFS_IDX_NODE].min_len = tmp; in init_constants_sb()
Dtnc_misc.c352 } else if (zbr->len < c->ranges[type].min_len || in read_znode()
357 c->ranges[type].min_len, in read_znode()
Dmaster.c205 if (c->zroot.len < c->ranges[UBIFS_IDX_NODE].min_len || in validate_master()
/kernel/linux/linux-5.10/drivers/net/wireless/ath/ath11k/
Dwmi.c23 size_t min_len; member
78 = { .min_len = 0 },
80 = { .min_len = 0 },
82 = { .min_len = sizeof(struct wmi_service_ready_event) },
84 = { .min_len = sizeof(struct wmi_service_ready_ext_event) },
86 = { .min_len = sizeof(struct wmi_soc_mac_phy_hw_mode_caps) },
88 = { .min_len = sizeof(struct wmi_soc_hal_reg_capabilities) },
90 = { .min_len = sizeof(struct wmi_vdev_start_resp_event) },
92 = { .min_len = sizeof(struct wmi_peer_delete_resp_event) },
94 = { .min_len = sizeof(struct wmi_bcn_tx_status_event) },
[all …]
Dhtc.c243 size_t min_len; in ath11k_htc_rx_completion_handler() local
281 min_len = sizeof(struct ath11k_htc_record_hdr); in ath11k_htc_rx_completion_handler()
283 if ((trailer_len < min_len) || in ath11k_htc_rx_completion_handler()
/kernel/linux/linux-5.10/drivers/net/wireless/quantenna/qtnfmac/
Devent.c314 const size_t min_len = sizeof(*rxmgmt) + in qtnf_event_handle_mgmt_received() local
320 if (unlikely(len < min_len)) { in qtnf_event_handle_mgmt_received()
322 vif->mac->macid, vif->vifid, len, min_len); in qtnf_event_handle_mgmt_received()
/kernel/linux/linux-5.10/drivers/net/fddi/
Ddefza.c600 int len, min_len, max_len; in fza_rx_err() local
654 min_len = 37; in fza_rx_err()
656 min_len = 17; in fza_rx_err()
659 min_len = 20; in fza_rx_err()
662 min_len = 17; in fza_rx_err()
666 if (len < min_len || len > max_len) { in fza_rx_err()
/kernel/linux/linux-5.10/net/netfilter/ipset/
Dip_set_core.c1480 int min_len = nlmsg_total_size(sizeof(struct nfgenmsg)); in ip_set_dump_start() local
1482 struct nlattr *attr = (void *)nlh + min_len; in ip_set_dump_start()
1489 nlh->nlmsg_len - min_len, in ip_set_dump_start()
1725 int min_len = nlmsg_total_size(sizeof(struct nfgenmsg)); in call_ad() local
1738 cmdattr = (void *)&errmsg->msg + min_len; in call_ad()
1741 nlh->nlmsg_len - min_len, ip_set_adt_policy, in call_ad()
/kernel/linux/linux-5.10/drivers/infiniband/core/
Duverbs_ioctl.c182 if (array_len < spec->u2.objs_arr.min_len || in uverbs_process_idrs_array()
276 if (uattr->len < val_spec->u.ptr.min_len || in uverbs_process_attr()
/kernel/linux/linux-5.10/drivers/net/wireless/mediatek/mt76/
Dusb.c513 u16 dma_len, min_len; in mt76u_get_rx_entry_len() local
519 min_len = MT_DMA_HDR_LEN + MT_RX_RXWI_LEN + MT_FCE_INFO_LEN; in mt76u_get_rx_entry_len()
520 if (data_len < min_len || !dma_len || in mt76u_get_rx_entry_len()
/kernel/linux/linux-5.10/drivers/media/cec/core/
Dcec-adap.c1050 u8 min_len = 0; in cec_received_msg_ts() local
1103 min_len = cec_msg_size[cmd] & 0x1f; in cec_received_msg_ts()
1104 if (msg->len < min_len) in cec_received_msg_ts()
1115 if (valid_la && min_len) { in cec_received_msg_ts()
/kernel/linux/linux-5.10/fs/cifs/
Dsmb2pdu.c3386 u32 additional_info, size_t output_len, size_t min_len, void **data, in query_info() argument
3458 &rsp_iov, min_len, *data); in query_info()
5218 int resp_buftype, max_len, min_len; in SMB2_QFS_attr() local
5226 min_len = sizeof(FILE_SYSTEM_DEVICE_INFO); in SMB2_QFS_attr()
5229 min_len = MIN_FS_ATTR_INFO_SIZE; in SMB2_QFS_attr()
5232 min_len = sizeof(struct smb3_fs_ss_info); in SMB2_QFS_attr()
5235 min_len = sizeof(struct smb3_fs_vol_info); in SMB2_QFS_attr()
5265 rc = smb2_validate_iov(offset, rsp_len, &rsp_iov, min_len); in SMB2_QFS_attr()
/kernel/linux/linux-5.10/drivers/staging/rts5208/
Dsd.c3729 int min_len = (rsp_len < len) ? rsp_len : len; local
3731 memcpy(rsp, rtsx_get_cmd_data(chip), min_len);
3733 dev_dbg(rtsx_dev(chip), "min_len = %d\n", min_len);
4052 int min_len; local
4079 min_len = min(data_len, scsi_bufflen(srb));
4080 rtsx_stor_set_xfer_buf(buf, min_len, srb);
/kernel/linux/linux-5.10/drivers/scsi/ibmvscsi_tgt/
Dibmvscsi_tgt.c1618 u16 olen, len, status, min_len, cap_len; in ibmvscsis_cap_mad() local
1628 min_len = offsetof(struct capabilities, migration); in ibmvscsis_cap_mad()
1629 if ((olen < min_len) || (olen > PAGE_SIZE)) { in ibmvscsis_cap_mad()
1650 len = olen - min_len; in ibmvscsis_cap_mad()
/kernel/linux/patches/linux-4.19/prebuilts/usr/include/linux/
Dnl80211.h1135 __u32 min_len, max_len, bufsize; member

12