/Linux-v5.15/drivers/media/dvb-core/ |
D | dvb_ringbuffer.c | 257 size_t pktlen; in dvb_ringbuffer_pkt_read_user() local 259 pktlen = rbuf->data[idx] << 8; in dvb_ringbuffer_pkt_read_user() 260 pktlen |= rbuf->data[(idx + 1) % rbuf->size]; in dvb_ringbuffer_pkt_read_user() 261 if (offset > pktlen) return -EINVAL; in dvb_ringbuffer_pkt_read_user() 262 if ((offset + len) > pktlen) len = pktlen - offset; in dvb_ringbuffer_pkt_read_user() 285 size_t pktlen; in dvb_ringbuffer_pkt_read() local 287 pktlen = rbuf->data[idx] << 8; in dvb_ringbuffer_pkt_read() 288 pktlen |= rbuf->data[(idx + 1) % rbuf->size]; in dvb_ringbuffer_pkt_read() 289 if (offset > pktlen) return -EINVAL; in dvb_ringbuffer_pkt_read() 290 if ((offset + len) > pktlen) len = pktlen - offset; in dvb_ringbuffer_pkt_read() [all …]
|
D | dvb_ca_en50221.c | 1608 int pktlen; in dvb_ca_en50221_io_read() local 1640 pktlen = 2; in dvb_ca_en50221_io_read() 1653 if (pktlen < count) { in dvb_ca_en50221_io_read() 1654 if ((pktlen + fraglen - 2) > count) in dvb_ca_en50221_io_read() 1655 fraglen = count - pktlen; in dvb_ca_en50221_io_read() 1662 buf + pktlen, in dvb_ca_en50221_io_read() 1667 pktlen += fraglen; in dvb_ca_en50221_io_read() 1689 status = pktlen; in dvb_ca_en50221_io_read()
|
/Linux-v5.15/net/netfilter/ |
D | xt_length.c | 24 u_int16_t pktlen = ntohs(ip_hdr(skb)->tot_len); in length_mt() local 26 return (pktlen >= info->min && pktlen <= info->max) ^ info->invert; in length_mt() 33 const u_int16_t pktlen = ntohs(ipv6_hdr(skb)->payload_len) + in length_mt6() local 36 return (pktlen >= info->min && pktlen <= info->max) ^ info->invert; in length_mt6()
|
/Linux-v5.15/drivers/staging/r8188eu/hal/ |
D | rtl8188e_cmd.c | 240 u32 rate_len, pktlen; in ConstructBeacon() local 259 pktlen = sizeof(struct rtw_ieee80211_hdr_3addr); in ConstructBeacon() 263 pktlen += 8; in ConstructBeacon() 269 pktlen += 2; in ConstructBeacon() 275 pktlen += 2; in ConstructBeacon() 278 pktlen += cur_network->IELength - sizeof(struct ndis_802_11_fixed_ie); in ConstructBeacon() 279 memcpy(pframe, cur_network->IEs + sizeof(struct ndis_802_11_fixed_ie), pktlen); in ConstructBeacon() 287 …ame = rtw_set_ie(pframe, _SSID_IE_, cur_network->Ssid.SsidLength, cur_network->Ssid.Ssid, &pktlen); in ConstructBeacon() 291 …frame, _SUPPORTEDRATES_IE_, ((rate_len > 8) ? 8 : rate_len), cur_network->SupportedRates, &pktlen); in ConstructBeacon() 294 … rtw_set_ie(pframe, _DSSET_IE_, 1, (unsigned char *)&cur_network->Configuration.DSConfig, &pktlen); in ConstructBeacon() [all …]
|
/Linux-v5.15/drivers/staging/r8188eu/core/ |
D | rtw_iol.c | 36 pattrib->pktlen = 0; in rtw_IOL_accquire_xmit_frame() 49 ori_len = buf_offset + pattrib->pktlen; in rtw_IOL_append_cmds() 58 memcpy(xmit_frame->buf_addr + buf_offset + pattrib->pktlen, IOL_cmds, cmd_len); in rtw_IOL_append_cmds() 59 pattrib->pktlen += cmd_len; in rtw_IOL_append_cmds() 167 if (((pxmit_frame->attrib.pktlen + 32) % 256) + 8 >= 256) { in rtw_IOL_cmd_boundary_handle() 169 pxmit_frame->attrib.pktlen = ((((pxmit_frame->attrib.pktlen + 32) / 256) + 1) * 256); in rtw_IOL_cmd_boundary_handle() 171 pxmit_frame->attrib.last_txcmdsz = pxmit_frame->attrib.pktlen; in rtw_IOL_cmd_boundary_handle()
|
D | rtw_mlme_ext.c | 1855 pattrib->pktlen = sizeof(struct rtw_ieee80211_hdr_3addr); in issue_p2p_GO_request() 1857 pframe = rtw_set_fixed_ie(pframe, 1, &category, &pattrib->pktlen); in issue_p2p_GO_request() 1858 pframe = rtw_set_fixed_ie(pframe, 1, &action, &pattrib->pktlen); in issue_p2p_GO_request() 1859 pframe = rtw_set_fixed_ie(pframe, 4, (unsigned char *)&p2poui, &pattrib->pktlen); in issue_p2p_GO_request() 1860 pframe = rtw_set_fixed_ie(pframe, 1, &oui_subtype, &pattrib->pktlen); in issue_p2p_GO_request() 1862 pframe = rtw_set_fixed_ie(pframe, 1, &pwdinfo->negotiation_dialog_token, &pattrib->pktlen); in issue_p2p_GO_request() 1902 …ame = rtw_set_ie(pframe, _VENDOR_SPECIFIC_IE_, wpsielen, (unsigned char *)wpsie, &pattrib->pktlen); in issue_p2p_GO_request() 2135 …ame = rtw_set_ie(pframe, _VENDOR_SPECIFIC_IE_, p2pielen, (unsigned char *)p2pie, &pattrib->pktlen); in issue_p2p_GO_request() 2137 pattrib->last_txcmdsz = pattrib->pktlen; in issue_p2p_GO_request() 2191 pattrib->pktlen = sizeof(struct rtw_ieee80211_hdr_3addr); in issue_p2p_GO_response() [all …]
|
D | rtw_p2p.c | 155 pattrib->pktlen = sizeof(struct rtw_ieee80211_hdr_3addr); in issue_group_disc_req() 158 pframe = rtw_set_fixed_ie(pframe, 1, &category, &pattrib->pktlen); in issue_group_disc_req() 159 pframe = rtw_set_fixed_ie(pframe, 4, (unsigned char *)&p2poui, &pattrib->pktlen); in issue_group_disc_req() 160 pframe = rtw_set_fixed_ie(pframe, 1, &oui_subtype, &pattrib->pktlen); in issue_group_disc_req() 161 pframe = rtw_set_fixed_ie(pframe, 1, &dialogToken, &pattrib->pktlen); in issue_group_disc_req() 165 pattrib->last_txcmdsz = pattrib->pktlen; in issue_group_disc_req() 214 pattrib->pktlen = sizeof(struct rtw_ieee80211_hdr_3addr); in issue_p2p_devdisc_resp() 217 pframe = rtw_set_fixed_ie(pframe, 1, &category, &pattrib->pktlen); in issue_p2p_devdisc_resp() 218 pframe = rtw_set_fixed_ie(pframe, 1, &action, &pattrib->pktlen); in issue_p2p_devdisc_resp() 219 pframe = rtw_set_fixed_ie(pframe, 4, (unsigned char *)&p2poui, &pattrib->pktlen); in issue_p2p_devdisc_resp() [all …]
|
/Linux-v5.15/arch/m68k/emu/ |
D | nfeth.c | 93 unsigned short pktlen; in recv_packet() local 97 pktlen = nf_call(nfEtherID + XIF_READLENGTH, priv->ethX); in recv_packet() 99 netdev_dbg(dev, "%s: %u\n", __func__, pktlen); in recv_packet() 101 if (!pktlen) { in recv_packet() 107 skb = dev_alloc_skb(pktlen + 2); in recv_packet() 117 skb_put(skb, pktlen); /* make room */ in recv_packet() 119 pktlen); in recv_packet() 124 dev->stats.rx_bytes += pktlen; in recv_packet()
|
/Linux-v5.15/drivers/staging/rtl8723bs/hal/ |
D | rtl8723b_cmd.c | 112 u32 rate_len, pktlen; in ConstructBeacon() local 131 pktlen = sizeof(struct ieee80211_hdr_3addr); in ConstructBeacon() 135 pktlen += 8; in ConstructBeacon() 141 pktlen += 2; in ConstructBeacon() 147 pktlen += 2; in ConstructBeacon() 150 pktlen += cur_network->ie_length - sizeof(struct ndis_802_11_fix_ie); in ConstructBeacon() 151 memcpy(pframe, cur_network->ies+sizeof(struct ndis_802_11_fix_ie), pktlen); in ConstructBeacon() 159 … rtw_set_ie(pframe, WLAN_EID_SSID, cur_network->ssid.ssid_length, cur_network->ssid.ssid, &pktlen); in ConstructBeacon() 163 …rame, WLAN_EID_SUPP_RATES, ((rate_len > 8) ? 8 : rate_len), cur_network->supported_rates, &pktlen); in ConstructBeacon() 166 …(pframe, WLAN_EID_DS_PARAMS, 1, (unsigned char *)&(cur_network->configuration.ds_config), &pktlen); in ConstructBeacon() [all …]
|
/Linux-v5.15/drivers/net/ethernet/xircom/ |
D | xirc2ps_cs.c | 980 unsigned rsr, pktlen; in xirc2ps_interrupt() local 1032 pktlen = GetWord(XIRCREG0_RBC); in xirc2ps_interrupt() 1033 bytes_rcvd += pktlen; in xirc2ps_interrupt() 1035 pr_debug("rsr=%#02x packet_length=%u\n", rsr, pktlen); in xirc2ps_interrupt() 1038 skb = netdev_alloc_skb(dev, pktlen + 3); in xirc2ps_interrupt() 1052 if (rhsa + pktlen > 0x8000) { in xirc2ps_interrupt() 1054 u_char *buf = skb_put(skb, pktlen); in xirc2ps_interrupt() 1055 for (i=0; i < pktlen ; i++, rhsa++) { in xirc2ps_interrupt() 1064 skb_put(skb, pktlen), (pktlen+1)>>1); in xirc2ps_interrupt() 1078 u_long *p = skb_put(skb, pktlen); in xirc2ps_interrupt() [all …]
|
/Linux-v5.15/drivers/staging/rtl8723bs/core/ |
D | rtw_mlme_ext.c | 1994 pattrib->pktlen = 0; in update_mgntframe_attrib() 2178 pattrib->pktlen = sizeof(struct ieee80211_hdr_3addr); in issue_beacon() 2189 pattrib->pktlen += (cur_network->ie_length+len_diff); in issue_beacon() 2198 pattrib->pktlen-sizeof(struct ieee80211_hdr_3addr)-_BEACON_IE_OFFSET_, NULL, &wps_ielen); in issue_beacon() 2216 pattrib->pktlen += 8; in issue_beacon() 2223 pattrib->pktlen += 2; in issue_beacon() 2230 pattrib->pktlen += 2; in issue_beacon() 2233 …ie(pframe, WLAN_EID_SSID, cur_network->ssid.ssid_length, cur_network->ssid.ssid, &pattrib->pktlen); in issue_beacon() 2237 …N_EID_SUPP_RATES, ((rate_len > 8) ? 8 : rate_len), cur_network->supported_rates, &pattrib->pktlen); in issue_beacon() 2240 …WLAN_EID_DS_PARAMS, 1, (unsigned char *)&(cur_network->configuration.ds_config), &pattrib->pktlen); in issue_beacon() [all …]
|
D | rtw_xmit.c | 643 pattrib->pktlen = pktfile.pkt_len; in update_attrib() 996 len += pattrib->pktlen; in rtw_calculate_wlan_pkt_size_by_attribue() 1084 mem_sz = _rtw_pktfile_read(&pktfile, pframe, pattrib->pktlen); in rtw_xmitframe_coalesce() 1151 ori_len = BIP_AAD_SIZE+pattrib->pktlen; in rtw_mgmt_xmitframe_coalesce() 1180 pframe += pattrib->pktlen; in rtw_mgmt_xmitframe_coalesce() 1191 MME, &pattrib->pktlen); in rtw_mgmt_xmitframe_coalesce() 1192 pattrib->last_txcmdsz = pattrib->pktlen; in rtw_mgmt_xmitframe_coalesce() 1194 frame_body_len = pattrib->pktlen - sizeof(struct ieee80211_hdr_3addr); in rtw_mgmt_xmitframe_coalesce() 1239 memcpy(tmp_buf, pframe, pattrib->pktlen); in rtw_mgmt_xmitframe_coalesce() 1260 memcpy(pframe, tmp_buf+pattrib->hdrlen, pattrib->pktlen-pattrib->hdrlen); in rtw_mgmt_xmitframe_coalesce() [all …]
|
/Linux-v5.15/drivers/usb/serial/ |
D | kl5kusb105.c | 101 u8 pktlen; /* always 5, it seems */ member 142 settings->pktlen, settings->baudrate, settings->databits, in klsi_105_chg_port_settings() 219 priv->cfg.pktlen = 5; in klsi_105_port_probe() 262 cfg->pktlen = 5; in klsi_105_open() 270 priv->cfg.pktlen = cfg->pktlen; in klsi_105_open()
|
/Linux-v5.15/drivers/net/wireless/ |
D | wl3501_cs.c | 468 u16 bf, sig_bf, next, tmplen, pktlen; in wl3501_send_pkt() local 489 pktlen = len - sig_addr_len; in wl3501_send_pkt() 500 sig.size = pktlen + 24 + 4 + 6; in wl3501_send_pkt() 501 if (pktlen > (254 - sizeof(struct wl3501_tx_hdr))) { in wl3501_send_pkt() 503 pktlen -= tmplen; in wl3501_send_pkt() 505 tmplen = pktlen; in wl3501_send_pkt() 506 pktlen = 0; in wl3501_send_pkt() 515 sig.size = pktlen + 24 + 4 - 2; in wl3501_send_pkt() 517 pktlen -= 2; in wl3501_send_pkt() 518 if (pktlen > (254 - sizeof(struct wl3501_tx_hdr) + 6)) { in wl3501_send_pkt() [all …]
|
/Linux-v5.15/drivers/input/touchscreen/ |
D | wacom_w8001.c | 96 unsigned int pktlen; member 303 if (w8001->pktlen == w8001->idx) { in w8001_interrupt() 506 w8001->pktlen = W8001_PKTLEN_TOUCH93; in w8001_setup_touch() 514 w8001->pktlen = W8001_PKTLEN_TOUCH9A; in w8001_setup_touch() 520 w8001->pktlen = W8001_PKTLEN_TOUCH2FG; in w8001_setup_touch()
|
/Linux-v5.15/drivers/net/wireless/mediatek/mt76/ |
D | mt76x02_mac.h | 34 DECLARE_EWMA(pktlen, 8, 8); 43 struct ewma_pktlen pktlen; member
|
/Linux-v5.15/drivers/media/rc/ |
D | redrat3.c | 601 unsigned pktlen, pkttype; in redrat3_read_packet_start() local 604 pktlen = be16_to_cpu(header->length); in redrat3_read_packet_start() 607 if (pktlen > sizeof(rr3->irdata)) { in redrat3_read_packet_start() 608 dev_warn(rr3->dev, "packet length %u too large\n", pktlen); in redrat3_read_packet_start() 625 rr3->bytes_read, pktlen); in redrat3_read_packet_start() 630 pkttype, len, pktlen); in redrat3_read_packet_start()
|
/Linux-v5.15/drivers/net/wireless/admtek/ |
D | adm8211.c | 355 unsigned int pktlen; in adm8211_interrupt_rci() local 369 pktlen = status & RDES0_STATUS_FL; in adm8211_interrupt_rci() 370 if (pktlen > RX_PKT_SIZE) { in adm8211_interrupt_rci() 373 pktlen); in adm8211_interrupt_rci() 374 pktlen = RX_PKT_SIZE; in adm8211_interrupt_rci() 381 } else if (pktlen < RX_COPY_BREAK) { in adm8211_interrupt_rci() 382 skb = dev_alloc_skb(pktlen); in adm8211_interrupt_rci() 386 pktlen, in adm8211_interrupt_rci() 390 pktlen); in adm8211_interrupt_rci() 400 skb_put(skb, pktlen); in adm8211_interrupt_rci()
|
/Linux-v5.15/net/caif/ |
D | chnl_net.c | 60 int pktlen; in chnl_recv_cb() local 69 pktlen = skb->len; in chnl_recv_cb() 106 priv->netdev->stats.rx_bytes += pktlen; in chnl_recv_cb()
|
/Linux-v5.15/drivers/staging/rtl8723bs/include/ |
D | rtl8723b_recv.h | 14 u32 pktlen:14; member
|
/Linux-v5.15/drivers/net/ipvlan/ |
D | ipvlan_core.c | 153 u32 pktlen; in ipvlan_get_L3_hdr() local 160 pktlen = ntohs(ip4h->tot_len); in ipvlan_get_L3_hdr() 163 if (skb->len < pktlen || pktlen < (ip4h->ihl * 4)) in ipvlan_get_L3_hdr()
|
/Linux-v5.15/include/media/ |
D | dvb_ringbuffer.h | 278 size_t idx, size_t *pktlen);
|
/Linux-v5.15/net/decnet/ |
D | dn_dev.c | 837 __le16 *pktlen; in dn_send_endnode_hello() local 866 pktlen = skb_push(skb, 2); in dn_send_endnode_hello() 867 *pktlen = cpu_to_le16(skb->len - 2); in dn_send_endnode_hello() 910 __le16 *pktlen; in dn_send_router_hello() local 958 pktlen = skb_push(skb, 2); in dn_send_router_hello() 959 *pktlen = cpu_to_le16(skb->len - 2); in dn_send_router_hello()
|
/Linux-v5.15/drivers/scsi/ |
D | ps3rom.c | 42 u32 pktlen; /* should be 12 for ATAPI 8020 */ member 97 atapi_cmnd.pktlen = 12; in ps3rom_atapi_request()
|
/Linux-v5.15/drivers/net/ethernet/arc/ |
D | emac_main.c | 184 unsigned int pktlen, info = le32_to_cpu(rxbd->info); in arc_emac_rx() local 243 pktlen = info & LEN_MASK; in arc_emac_rx() 245 stats->rx_bytes += pktlen; in arc_emac_rx() 246 skb_put(rx_buff->skb, pktlen); in arc_emac_rx()
|