Home
last modified time | relevance | path

Searched refs:pktlen (Results 1 – 25 of 66) sorted by relevance

123

/Linux-v6.6/drivers/media/dvb-core/
Ddvb_ringbuffer.c257 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 …]
Ddvb_ca_en50221.c1616 int pktlen; in dvb_ca_en50221_io_read() local
1648 pktlen = 2; in dvb_ca_en50221_io_read()
1661 if (pktlen < count) { in dvb_ca_en50221_io_read()
1662 if ((pktlen + fraglen - 2) > count) in dvb_ca_en50221_io_read()
1663 fraglen = count - pktlen; in dvb_ca_en50221_io_read()
1670 buf + pktlen, in dvb_ca_en50221_io_read()
1675 pktlen += fraglen; in dvb_ca_en50221_io_read()
1697 status = pktlen; in dvb_ca_en50221_io_read()
/Linux-v6.6/net/netfilter/
Dxt_length.c24 u32 pktlen = skb_ip_totlen(skb); in length_mt() local
26 return (pktlen >= info->min && pktlen <= info->max) ^ info->invert; in length_mt()
33 u32 pktlen = skb->len; in length_mt6() local
35 return (pktlen >= info->min && pktlen <= info->max) ^ info->invert; in length_mt6()
/Linux-v6.6/arch/m68k/emu/
Dnfeth.c93 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-v6.6/drivers/staging/rtl8723bs/hal/
Drtl8723b_cmd.c112 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 …]
Drtl8723bs_recv.c44 pattrib->pkt_len = (u16)prxreport->pktlen; in update_recvframe_attrib()
66 pattrib->pkt_len = (u16)prxreport->pktlen; in update_recvframe_attrib()
/Linux-v6.6/drivers/net/ethernet/xircom/
Dxirc2ps_cs.c981 unsigned rsr, pktlen; in xirc2ps_interrupt() local
1033 pktlen = GetWord(XIRCREG0_RBC); in xirc2ps_interrupt()
1034 bytes_rcvd += pktlen; in xirc2ps_interrupt()
1036 pr_debug("rsr=%#02x packet_length=%u\n", rsr, pktlen); in xirc2ps_interrupt()
1039 skb = netdev_alloc_skb(dev, pktlen + 3); in xirc2ps_interrupt()
1053 if (rhsa + pktlen > 0x8000) { in xirc2ps_interrupt()
1055 u_char *buf = skb_put(skb, pktlen); in xirc2ps_interrupt()
1056 for (i=0; i < pktlen ; i++, rhsa++) { in xirc2ps_interrupt()
1065 skb_put(skb, pktlen), (pktlen+1)>>1); in xirc2ps_interrupt()
1079 u_long *p = skb_put(skb, pktlen); in xirc2ps_interrupt()
[all …]
/Linux-v6.6/drivers/staging/rtl8723bs/core/
Drtw_mlme_ext.c1973 pattrib->pktlen = 0; in update_mgntframe_attrib()
2157 pattrib->pktlen = sizeof(struct ieee80211_hdr_3addr); in issue_beacon()
2168 pattrib->pktlen += (cur_network->ie_length+len_diff); in issue_beacon()
2177 pattrib->pktlen-sizeof(struct ieee80211_hdr_3addr)-_BEACON_IE_OFFSET_, NULL, &wps_ielen); in issue_beacon()
2194 pattrib->pktlen += 8; in issue_beacon()
2201 pattrib->pktlen += 2; in issue_beacon()
2208 pattrib->pktlen += 2; in issue_beacon()
2211 …ie(pframe, WLAN_EID_SSID, cur_network->ssid.ssid_length, cur_network->ssid.ssid, &pattrib->pktlen); in issue_beacon()
2215 …N_EID_SUPP_RATES, ((rate_len > 8) ? 8 : rate_len), cur_network->supported_rates, &pattrib->pktlen); in issue_beacon()
2218 …WLAN_EID_DS_PARAMS, 1, (unsigned char *)&(cur_network->configuration.ds_config), &pattrib->pktlen); in issue_beacon()
[all …]
Drtw_xmit.c651 pattrib->pktlen = pktfile.pkt_len; in update_attrib()
1004 len += pattrib->pktlen; in rtw_calculate_wlan_pkt_size_by_attribue()
1092 mem_sz = _rtw_pktfile_read(&pktfile, pframe, pattrib->pktlen); in rtw_xmitframe_coalesce()
1159 ori_len = BIP_AAD_SIZE+pattrib->pktlen; in rtw_mgmt_xmitframe_coalesce()
1188 pframe += pattrib->pktlen; in rtw_mgmt_xmitframe_coalesce()
1199 MME, &pattrib->pktlen); in rtw_mgmt_xmitframe_coalesce()
1200 pattrib->last_txcmdsz = pattrib->pktlen; in rtw_mgmt_xmitframe_coalesce()
1202 frame_body_len = pattrib->pktlen - sizeof(struct ieee80211_hdr_3addr); in rtw_mgmt_xmitframe_coalesce()
1247 memcpy(tmp_buf, pframe, pattrib->pktlen); in rtw_mgmt_xmitframe_coalesce()
1268 memcpy(pframe, tmp_buf+pattrib->hdrlen, pattrib->pktlen-pattrib->hdrlen); in rtw_mgmt_xmitframe_coalesce()
[all …]
/Linux-v6.6/drivers/usb/serial/
Dkl5kusb105.c102 u8 pktlen; /* always 5, it seems */ member
145 settings->pktlen, settings->baudrate, settings->databits, in klsi_105_chg_port_settings()
198 priv->cfg.pktlen = 5; in klsi_105_port_probe()
238 cfg.pktlen = 5; in klsi_105_open()
246 priv->cfg.pktlen = cfg.pktlen; in klsi_105_open()
/Linux-v6.6/drivers/net/wireless/legacy/
Dwl3501_cs.c468 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-v6.6/drivers/input/touchscreen/
Dwacom_w8001.c96 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-v6.6/drivers/net/wireless/mediatek/mt76/
Dmt76x02_mac.h34 DECLARE_EWMA(pktlen, 8, 8);
43 struct ewma_pktlen pktlen; member
/Linux-v6.6/drivers/media/rc/
Dredrat3.c601 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-v6.6/drivers/net/wireless/admtek/
Dadm8211.c355 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-v6.6/net/caif/
Dchnl_net.c60 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-v6.6/drivers/net/ipvlan/
Dipvlan_core.c153 u32 pktlen; in ipvlan_get_L3_hdr() local
160 pktlen = skb_ip_totlen(skb); in ipvlan_get_L3_hdr()
163 if (skb->len < pktlen || pktlen < (ip4h->ihl * 4)) in ipvlan_get_L3_hdr()
/Linux-v6.6/drivers/staging/rtl8723bs/include/
Drtl8723b_recv.h14 u32 pktlen:14; member
/Linux-v6.6/include/media/
Ddvb_ringbuffer.h278 size_t idx, size_t *pktlen);
/Linux-v6.6/drivers/scsi/
Dps3rom.c42 u32 pktlen; /* should be 12 for ATAPI 8020 */ member
97 atapi_cmnd.pktlen = 12; in ps3rom_atapi_request()
/Linux-v6.6/drivers/net/ethernet/arc/
Demac_main.c184 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()
/Linux-v6.6/drivers/net/wireless/broadcom/brcm80211/brcmfmac/
Dmsgbuf.c910 u32 pktlen; in brcmf_msgbuf_rxbuf_data_post() local
938 pktlen = skb->len; in brcmf_msgbuf_rxbuf_data_post()
958 pktlen = skb->len; in brcmf_msgbuf_rxbuf_data_post()
965 rx_bufpost->data_buf_len = cpu_to_le16((u16)pktlen); in brcmf_msgbuf_rxbuf_data_post()
1018 u32 pktlen; in brcmf_msgbuf_rxbuf_ctrl_post() local
1048 pktlen = skb->len; in brcmf_msgbuf_rxbuf_ctrl_post()
1065 rx_bufpost->host_buf_len = cpu_to_le16((u16)pktlen); in brcmf_msgbuf_rxbuf_ctrl_post()
/Linux-v6.6/drivers/net/hamradio/
Dbaycom_epp.c531 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()
/Linux-v6.6/drivers/net/ethernet/chelsio/inline_crypto/ch_ktls/
Dchcr_ktls.c1001 int len16, pktlen; in chcr_ktls_write_tcp_options() local
1015 pktlen = skb_tcp_all_headers(skb); in chcr_ktls_write_tcp_options()
1017 ctrl = sizeof(*cpl) + pktlen; in chcr_ktls_write_tcp_options()
1049 cpl->len = htons(pktlen); in chcr_ktls_write_tcp_options()
1051 memcpy(buf, skb->data, pktlen); in chcr_ktls_write_tcp_options()
1055 ip->tot_len = htons(pktlen - maclen); in chcr_ktls_write_tcp_options()
1059 ip6->payload_len = htons(pktlen - maclen - iplen); in chcr_ktls_write_tcp_options()
1081 chcr_copy_to_txd(buf, &q->q, pos, pktlen); in chcr_ktls_write_tcp_options()
/Linux-v6.6/drivers/rpmsg/
Dqcom_smd.c580 __le32 pktlen; in qcom_smd_channel_intr() local
611 qcom_smd_channel_peek(channel, &pktlen, sizeof(pktlen)); in qcom_smd_channel_intr()
613 channel->pkt_size = le32_to_cpu(pktlen); in qcom_smd_channel_intr()

123