/linux-6.6.21/net/ipv4/ |
D | inet_diag.c | 837 int *min_len) in valid_devcond() argument 840 *min_len += sizeof(u32); in valid_devcond() 841 if (len < *min_len) in valid_devcond() 848 int *min_len) in valid_hostcond() argument 854 *min_len += sizeof(struct inet_diag_hostcond); in valid_hostcond() 855 if (len < *min_len) in valid_hostcond() 873 *min_len += addr_len; in valid_hostcond() 874 if (len < *min_len) in valid_hostcond() 886 int len, int *min_len) in valid_port_comparison() argument 889 *min_len += sizeof(struct inet_diag_bc_op); in valid_port_comparison() [all …]
|
/linux-6.6.21/net/netfilter/ |
D | nfnetlink.c | 254 int min_len = nlmsg_total_size(sizeof(struct nfgenmsg)); in nfnetlink_rcv_msg() local 258 struct nlattr *attr = (void *)nlh + min_len; in nfnetlink_rcv_msg() 259 int attrlen = nlh->nlmsg_len - min_len; in nfnetlink_rcv_msg() 492 int min_len = nlmsg_total_size(sizeof(struct nfgenmsg)); in nfnetlink_rcv_batch() local 495 struct nlattr *attr = (void *)nlh + min_len; in nfnetlink_rcv_batch() 497 int attrlen = nlh->nlmsg_len - min_len; in nfnetlink_rcv_batch() 606 int min_len = nlmsg_total_size(sizeof(struct nfgenmsg)); in nfnetlink_rcv_skb_batch() local 607 struct nlattr *attr = (void *)nlh + min_len; in nfnetlink_rcv_skb_batch() 609 int attrlen = nlh->nlmsg_len - min_len; in nfnetlink_rcv_skb_batch()
|
D | nfnetlink_queue.c | 872 unsigned int min_len = skb_transport_offset(e->skb); in nfqnl_mangle() local 874 if (data_len < min_len) in nfqnl_mangle()
|
/linux-6.6.21/fs/ntfs/ |
D | unistr.c | 88 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()
|
/linux-6.6.21/drivers/net/wireless/ath/carl9170/ |
D | fwdesc.h | 252 u16 min_len, u8 compatible_revision) in carl9170fw_desc_cmp() argument 257 (le16_to_cpu(head->length) >= min_len)) in carl9170fw_desc_cmp()
|
/linux-6.6.21/drivers/net/ethernet/sfc/falcon/ |
D | tx.c | 151 unsigned int min_len = tx_queue->tx_min_size; in ef4_enqueue_skb_copy() local 167 if (unlikely(copy_len < min_len)) { in ef4_enqueue_skb_copy() 168 memset(copy_buffer + copy_len, 0, min_len - copy_len); in ef4_enqueue_skb_copy() 169 buffer->len = min_len; in ef4_enqueue_skb_copy()
|
/linux-6.6.21/include/rdma/ |
D | uverbs_ioctl.h | 64 u16 min_len; member 98 u16 min_len; member 451 .u.ptr.min_len = _min_len, .u.ptr.len = _len 461 .u.ptr.min_len = sizeof(_type), .u.ptr.len = sizeof(_type) 499 .u2.objs_arr.min_len = _min_len, \
|
/linux-6.6.21/drivers/net/wireless/ath/ath10k/ |
D | wmi-tlv.c | 23 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 …]
|
D | htc.c | 444 size_t min_len; in ath10k_htc_rx_completion_handler() local 491 min_len = sizeof(struct ath10k_ath10k_htc_record_hdr); in ath10k_htc_rx_completion_handler() 493 if ((trailer_len < min_len) || in ath10k_htc_rx_completion_handler()
|
/linux-6.6.21/drivers/net/wireless/ath/ath12k/ |
D | wmi.c | 103 size_t min_len; member 113 [WMI_TAG_ARRAY_BYTE] = { .min_len = 0 }, 114 [WMI_TAG_ARRAY_UINT32] = { .min_len = 0 }, 116 .min_len = sizeof(struct wmi_service_ready_event) }, 118 .min_len = sizeof(struct wmi_service_ready_ext_event) }, 120 .min_len = sizeof(struct ath12k_wmi_soc_mac_phy_hw_mode_caps_params) }, 122 .min_len = sizeof(struct ath12k_wmi_soc_hal_reg_caps_params) }, 124 .min_len = sizeof(struct wmi_vdev_start_resp_event) }, 126 .min_len = sizeof(struct wmi_peer_delete_resp_event) }, 128 .min_len = sizeof(struct wmi_bcn_tx_status_event) }, [all …]
|
D | htc.c | 256 size_t min_len; in ath12k_htc_rx_completion_handler() local 295 min_len = sizeof(struct ath12k_htc_record_hdr); in ath12k_htc_rx_completion_handler() 297 if ((trailer_len < min_len) || in ath12k_htc_rx_completion_handler()
|
/linux-6.6.21/fs/ubifs/ |
D | super.c | 595 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()
|
D | tnc_misc.c | 352 } else if (zbr->len < c->ranges[type].min_len || in read_znode() 357 c->ranges[type].min_len, in read_znode()
|
D | master.c | 205 if (c->zroot.len < c->ranges[UBIFS_IDX_NODE].min_len || in validate_master()
|
/linux-6.6.21/drivers/net/wireless/ath/ath11k/ |
D | htc.c | 293 size_t min_len; in ath11k_htc_rx_completion_handler() local 334 min_len = sizeof(struct ath11k_htc_record_hdr); in ath11k_htc_rx_completion_handler() 336 if ((trailer_len < min_len) || in ath11k_htc_rx_completion_handler()
|
D | wmi.c | 25 size_t min_len; member 94 = { .min_len = 0 }, 96 = { .min_len = 0 }, 98 = { .min_len = sizeof(struct wmi_service_ready_event) }, 100 = { .min_len = sizeof(struct wmi_service_ready_ext_event) }, 102 = { .min_len = sizeof(struct wmi_soc_mac_phy_hw_mode_caps) }, 104 = { .min_len = sizeof(struct wmi_soc_hal_reg_capabilities) }, 106 = { .min_len = sizeof(struct wmi_vdev_start_resp_event) }, 108 = { .min_len = sizeof(struct wmi_peer_delete_resp_event) }, 110 = { .min_len = sizeof(struct wmi_bcn_tx_status_event) }, [all …]
|
/linux-6.6.21/drivers/net/wireless/quantenna/qtnfmac/ |
D | event.c | 315 const size_t min_len = sizeof(*rxmgmt) + in qtnf_event_handle_mgmt_received() local 321 if (unlikely(len < min_len)) { in qtnf_event_handle_mgmt_received() 323 vif->mac->macid, vif->vifid, len, min_len); in qtnf_event_handle_mgmt_received()
|
/linux-6.6.21/drivers/net/fddi/ |
D | defza.c | 600 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()
|
/linux-6.6.21/net/netfilter/ipset/ |
D | ip_set_core.c | 1495 int min_len = nlmsg_total_size(sizeof(struct nfgenmsg)); in ip_set_dump_start() local 1497 struct nlattr *attr = (void *)nlh + min_len; in ip_set_dump_start() 1504 nlh->nlmsg_len - min_len, in ip_set_dump_start() 1746 int min_len = nlmsg_total_size(sizeof(struct nfgenmsg)); in call_ad() local 1761 cmdattr = (void *)&errmsg->msg + min_len; in call_ad() 1764 nlh->nlmsg_len - min_len, ip_set_adt_policy, in call_ad()
|
/linux-6.6.21/drivers/net/wireless/mediatek/mt76/ |
D | usb.c | 458 u16 dma_len, min_len; in mt76u_get_rx_entry_len() local 464 min_len = MT_DMA_HDR_LEN + MT_RX_RXWI_LEN + MT_FCE_INFO_LEN; in mt76u_get_rx_entry_len() 465 if (data_len < min_len || !dma_len || in mt76u_get_rx_entry_len()
|
/linux-6.6.21/net/bluetooth/ |
D | hci_event.c | 4025 .min_len = _min, \ 4038 u16 min_len; member 4215 if (skb->len < cc->min_len) { in hci_cc_func() 4217 cc->op, skb->len, cc->min_len); in hci_cc_func() 4229 data = hci_cc_skb_pull(hdev, skb, cc->op, cc->min_len); in hci_cc_func() 7234 .min_len = _min_len, \ 7251 u16 min_len; member 7349 if (skb->len < subev->min_len) { in hci_le_meta_evt() 7351 ev->subevent, skb->len, subev->min_len); in hci_le_meta_evt() 7362 data = hci_le_ev_skb_pull(hdev, skb, ev->subevent, subev->min_len); in hci_le_meta_evt() [all …]
|
/linux-6.6.21/drivers/infiniband/core/ |
D | uverbs_ioctl.c | 182 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()
|
/linux-6.6.21/drivers/media/cec/core/ |
D | cec-adap.c | 1056 u8 min_len = 0; in cec_received_msg_ts() local 1112 min_len = cec_msg_size[cmd] & 0x1f; in cec_received_msg_ts() 1113 if (msg->len < min_len) in cec_received_msg_ts() 1124 if (valid_la && min_len) { in cec_received_msg_ts()
|
/linux-6.6.21/fs/smb/client/ |
D | smb2pdu.c | 3680 u32 additional_info, size_t output_len, size_t min_len, void **data, in query_info() argument 3752 &rsp_iov, dlen ? *dlen : min_len, *data); in query_info() 5671 int resp_buftype, max_len, min_len; in SMB2_QFS_attr() local 5679 min_len = sizeof(FILE_SYSTEM_DEVICE_INFO); in SMB2_QFS_attr() 5682 min_len = MIN_FS_ATTR_INFO_SIZE; in SMB2_QFS_attr() 5685 min_len = sizeof(struct smb3_fs_ss_info); in SMB2_QFS_attr() 5688 min_len = sizeof(struct smb3_fs_vol_info); in SMB2_QFS_attr() 5718 rc = smb2_validate_iov(offset, rsp_len, &rsp_iov, min_len); in SMB2_QFS_attr()
|
/linux-6.6.21/drivers/staging/rts5208/ |
D | sd.c | 3729 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);
|