/kernel/linux/linux-5.10/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 | 1611 int pktlen; in dvb_ca_en50221_io_read() local 1643 pktlen = 2; in dvb_ca_en50221_io_read() 1656 if (pktlen < count) { in dvb_ca_en50221_io_read() 1657 if ((pktlen + fraglen - 2) > count) in dvb_ca_en50221_io_read() 1658 fraglen = count - pktlen; in dvb_ca_en50221_io_read() 1665 buf + pktlen, in dvb_ca_en50221_io_read() 1670 pktlen += fraglen; in dvb_ca_en50221_io_read() 1692 status = pktlen; in dvb_ca_en50221_io_read()
|
/kernel/linux/linux-5.10/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()
|
/kernel/linux/linux-5.10/drivers/staging/rtl8188eu/hal/ |
D | rtl8188e_cmd.c | 205 u32 rate_len, pktlen; in ConstructBeacon() local 224 pktlen = sizeof(struct ieee80211_hdr_3addr); in ConstructBeacon() 228 pktlen += 8; in ConstructBeacon() 234 pktlen += 2; in ConstructBeacon() 240 pktlen += 2; in ConstructBeacon() 243 pktlen += cur_network->ie_length - sizeof(struct ndis_802_11_fixed_ie); in ConstructBeacon() 244 memcpy(pframe, cur_network->ies + sizeof(struct ndis_802_11_fixed_ie), pktlen); in ConstructBeacon() 252 …me = rtw_set_ie(pframe, _SSID_IE_, cur_network->ssid.ssid_length, cur_network->ssid.ssid, &pktlen); in ConstructBeacon() 256 …set_ie(pframe, _SUPPORTEDRATES_IE_, min_t(u32, rate_len, 8), cur_network->SupportedRates, &pktlen); in ConstructBeacon() 259 … rtw_set_ie(pframe, _DSSET_IE_, 1, (unsigned char *)&cur_network->Configuration.DSConfig, &pktlen); in ConstructBeacon() [all …]
|
/kernel/linux/linux-5.10/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()
|
/kernel/linux/linux-5.10/drivers/staging/rtl8723bs/hal/ |
D | rtl8723b_cmd.c | 126 u32 rate_len, pktlen; in ConstructBeacon() local 149 pktlen = sizeof(struct ieee80211_hdr_3addr); in ConstructBeacon() 153 pktlen += 8; in ConstructBeacon() 159 pktlen += 2; in ConstructBeacon() 165 pktlen += 2; in ConstructBeacon() 169 pktlen += cur_network->IELength - sizeof(struct ndis_802_11_fix_ie); in ConstructBeacon() 170 memcpy(pframe, cur_network->IEs+sizeof(struct ndis_802_11_fix_ie), pktlen); in ConstructBeacon() 178 …ame = rtw_set_ie(pframe, _SSID_IE_, cur_network->Ssid.SsidLength, cur_network->Ssid.Ssid, &pktlen); in ConstructBeacon() 182 …frame, _SUPPORTEDRATES_IE_, ((rate_len > 8) ? 8 : rate_len), cur_network->SupportedRates, &pktlen); in ConstructBeacon() 185 …tw_set_ie(pframe, _DSSET_IE_, 1, (unsigned char *)&(cur_network->Configuration.DSConfig), &pktlen); in ConstructBeacon() [all …]
|
/kernel/linux/linux-5.10/drivers/staging/rtl8188eu/core/ |
D | rtw_mlme_ext.c | 195 pattrib->pktlen = 0; in update_mgntframe_attrib() 350 pattrib->pktlen = sizeof(struct ieee80211_hdr_3addr); in issue_beacon() 365 pattrib->pktlen += (cur_network->ie_length + len_diff); in issue_beacon() 367 pattrib->pktlen - sizeof(struct ieee80211_hdr_3addr) - _BEACON_IE_OFFSET_, NULL, &wps_ielen); in issue_beacon() 382 pattrib->pktlen += 8; in issue_beacon() 389 pattrib->pktlen += 2; in issue_beacon() 396 pattrib->pktlen += 2; in issue_beacon() 399 …set_ie(pframe, _SSID_IE_, cur_network->ssid.ssid_length, cur_network->ssid.ssid, &pattrib->pktlen); in issue_beacon() 403 …PPORTEDRATES_IE_, min_t(unsigned int, rate_len, 8), cur_network->SupportedRates, &pattrib->pktlen); in issue_beacon() 406 …ie(pframe, _DSSET_IE_, 1, (unsigned char *)&cur_network->Configuration.DSConfig, &pattrib->pktlen); in issue_beacon() [all …]
|
/kernel/linux/linux-5.10/drivers/net/ethernet/xircom/ |
D | xirc2ps_cs.c | 987 unsigned rsr, pktlen; in xirc2ps_interrupt() local 1039 pktlen = GetWord(XIRCREG0_RBC); in xirc2ps_interrupt() 1040 bytes_rcvd += pktlen; in xirc2ps_interrupt() 1042 pr_debug("rsr=%#02x packet_length=%u\n", rsr, pktlen); in xirc2ps_interrupt() 1045 skb = netdev_alloc_skb(dev, pktlen + 3); in xirc2ps_interrupt() 1059 if (rhsa + pktlen > 0x8000) { in xirc2ps_interrupt() 1061 u_char *buf = skb_put(skb, pktlen); in xirc2ps_interrupt() 1062 for (i=0; i < pktlen ; i++, rhsa++) { in xirc2ps_interrupt() 1071 skb_put(skb, pktlen), (pktlen+1)>>1); in xirc2ps_interrupt() 1085 u_long *p = skb_put(skb, pktlen); in xirc2ps_interrupt() [all …]
|
/kernel/linux/linux-5.10/drivers/staging/rtl8723bs/core/ |
D | rtw_mlme_ext.c | 2292 pattrib->pktlen = 0; in update_mgntframe_attrib() 2483 pattrib->pktlen = sizeof(struct ieee80211_hdr_3addr); in issue_beacon() 2497 pattrib->pktlen += (cur_network->IELength+len_diff); in issue_beacon() 2506 pattrib->pktlen-sizeof(struct ieee80211_hdr_3addr)-_BEACON_IE_OFFSET_, NULL, &wps_ielen); in issue_beacon() 2524 pattrib->pktlen += 8; in issue_beacon() 2531 pattrib->pktlen += 2; in issue_beacon() 2538 pattrib->pktlen += 2; in issue_beacon() 2541 …_set_ie(pframe, _SSID_IE_, cur_network->Ssid.SsidLength, cur_network->Ssid.Ssid, &pattrib->pktlen); in issue_beacon() 2545 …UPPORTEDRATES_IE_, ((rate_len > 8) ? 8 : rate_len), cur_network->SupportedRates, &pattrib->pktlen); in issue_beacon() 2548 …(pframe, _DSSET_IE_, 1, (unsigned char *)&(cur_network->Configuration.DSConfig), &pattrib->pktlen); in issue_beacon() [all …]
|
D | rtw_xmit.c | 685 pattrib->pktlen = pktfile.pkt_len; in update_attrib() 1085 len += pattrib->pktlen; in rtw_calculate_wlan_pkt_size_by_attribue() 1184 mem_sz = _rtw_pktfile_read(&pktfile, pframe, pattrib->pktlen); in rtw_xmitframe_coalesce() 1253 ori_len = BIP_AAD_SIZE+pattrib->pktlen; in rtw_mgmt_xmitframe_coalesce() 1283 pframe += pattrib->pktlen; in rtw_mgmt_xmitframe_coalesce() 1294 MME, &pattrib->pktlen); in rtw_mgmt_xmitframe_coalesce() 1295 pattrib->last_txcmdsz = pattrib->pktlen; in rtw_mgmt_xmitframe_coalesce() 1297 frame_body_len = pattrib->pktlen - sizeof(struct ieee80211_hdr_3addr); in rtw_mgmt_xmitframe_coalesce() 1346 memcpy(tmp_buf, pframe, pattrib->pktlen); in rtw_mgmt_xmitframe_coalesce() 1367 memcpy(pframe, tmp_buf+pattrib->hdrlen, pattrib->pktlen-pattrib->hdrlen); in rtw_mgmt_xmitframe_coalesce() [all …]
|
/kernel/linux/linux-5.10/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() 264 cfg->pktlen = 5; in klsi_105_open() 272 priv->cfg.pktlen = cfg->pktlen; in klsi_105_open()
|
/kernel/linux/linux-5.10/drivers/net/wireless/ |
D | wl3501_cs.c | 470 u16 bf, sig_bf, next, tmplen, pktlen; in wl3501_send_pkt() local 491 pktlen = len - sig_addr_len; in wl3501_send_pkt() 502 sig.size = pktlen + 24 + 4 + 6; in wl3501_send_pkt() 503 if (pktlen > (254 - sizeof(struct wl3501_tx_hdr))) { in wl3501_send_pkt() 505 pktlen -= tmplen; in wl3501_send_pkt() 507 tmplen = pktlen; in wl3501_send_pkt() 508 pktlen = 0; in wl3501_send_pkt() 517 sig.size = pktlen + 24 + 4 - 2; in wl3501_send_pkt() 519 pktlen -= 2; in wl3501_send_pkt() 520 if (pktlen > (254 - sizeof(struct wl3501_tx_hdr) + 6)) { in wl3501_send_pkt() [all …]
|
/kernel/linux/linux-5.10/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()
|
/kernel/linux/linux-5.10/drivers/net/wireless/mediatek/mt76/ |
D | mt76x02_mac.h | 34 DECLARE_EWMA(pktlen, 8, 8); 43 struct ewma_pktlen pktlen; member
|
/kernel/linux/linux-5.10/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()
|
/kernel/linux/linux-5.10/drivers/net/wireless/admtek/ |
D | adm8211.c | 356 unsigned int pktlen; in adm8211_interrupt_rci() local 370 pktlen = status & RDES0_STATUS_FL; in adm8211_interrupt_rci() 371 if (pktlen > RX_PKT_SIZE) { in adm8211_interrupt_rci() 374 pktlen); in adm8211_interrupt_rci() 375 pktlen = RX_PKT_SIZE; in adm8211_interrupt_rci() 382 } else if (pktlen < RX_COPY_BREAK) { in adm8211_interrupt_rci() 383 skb = dev_alloc_skb(pktlen); in adm8211_interrupt_rci() 387 pktlen, in adm8211_interrupt_rci() 391 pktlen); in adm8211_interrupt_rci() 401 skb_put(skb, pktlen); in adm8211_interrupt_rci()
|
/kernel/linux/linux-5.10/net/caif/ |
D | chnl_net.c | 60 int pktlen; in chnl_recv_cb() local 71 pktlen = skb->len; in chnl_recv_cb() 111 priv->netdev->stats.rx_bytes += pktlen; in chnl_recv_cb()
|
/kernel/linux/linux-5.10/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()
|
/kernel/linux/linux-5.10/include/media/ |
D | dvb_ringbuffer.h | 278 size_t idx, size_t *pktlen);
|
/kernel/linux/linux-5.10/net/decnet/ |
D | dn_dev.c | 839 __le16 *pktlen; in dn_send_endnode_hello() local 868 pktlen = skb_push(skb, 2); in dn_send_endnode_hello() 869 *pktlen = cpu_to_le16(skb->len - 2); in dn_send_endnode_hello() 912 __le16 *pktlen; in dn_send_router_hello() local 960 pktlen = skb_push(skb, 2); in dn_send_router_hello() 961 *pktlen = cpu_to_le16(skb->len - 2); in dn_send_router_hello()
|
/kernel/linux/linux-5.10/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()
|
/kernel/linux/linux-5.10/drivers/staging/rtl8723bs/include/ |
D | rtl8723b_recv.h | 14 u32 pktlen:14; member
|
/kernel/linux/linux-5.10/drivers/net/wireless/broadcom/brcm80211/brcmfmac/ |
D | msgbuf.c | 903 u32 pktlen; in brcmf_msgbuf_rxbuf_data_post() local 931 pktlen = skb->len; in brcmf_msgbuf_rxbuf_data_post() 951 pktlen = skb->len; in brcmf_msgbuf_rxbuf_data_post() 958 rx_bufpost->data_buf_len = cpu_to_le16((u16)pktlen); in brcmf_msgbuf_rxbuf_data_post() 1011 u32 pktlen; in brcmf_msgbuf_rxbuf_ctrl_post() local 1041 pktlen = skb->len; in brcmf_msgbuf_rxbuf_ctrl_post() 1058 rx_bufpost->host_buf_len = cpu_to_le16((u16)pktlen); in brcmf_msgbuf_rxbuf_ctrl_post()
|
/kernel/linux/linux-5.10/drivers/scsi/ |
D | ps3rom.c | 42 u32 pktlen; /* should be 12 for ATAPI 8020 */ member 97 atapi_cmnd.pktlen = 12; in ps3rom_atapi_request()
|
/kernel/linux/linux-5.10/drivers/net/hamradio/ |
D | baycom_epp.c | 531 unsigned pktlen; in do_rxpacket() local 537 pktlen = bc->hdlcrx.bufcnt-2+1; /* KISS kludge */ in do_rxpacket() 538 if (!(skb = dev_alloc_skb(pktlen))) { in do_rxpacket() 543 cp = skb_put(skb, pktlen); in do_rxpacket() 545 memcpy(cp, bc->hdlcrx.buf, pktlen - 1); in do_rxpacket()
|