/openbmc/linux/drivers/media/dvb-core/ |
H A 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 …]
|
H A D | dvb_ca_en50221.c | 1616 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()
|
/openbmc/linux/net/netfilter/ |
H A D | xt_length.c | 24 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()
|
/openbmc/linux/arch/m68k/emu/ |
H A 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()
|
/openbmc/linux/drivers/staging/rtl8723bs/hal/ |
H A 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 …]
|
/openbmc/linux/drivers/net/ethernet/xircom/ |
H A D | xirc2ps_cs.c | 981 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 …]
|
/openbmc/linux/drivers/staging/rtl8723bs/core/ |
H A D | rtw_mlme_ext.c | 1973 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 …]
|
H A D | rtw_xmit.c | 651 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 …]
|
/openbmc/u-boot/net/ |
H A D | sntp.c | 23 int pktlen = SNTP_PACKET_LEN; in sntp_send() local 35 (char *)&pkt, pktlen); in sntp_send() 41 sntp_our_port, pktlen); in sntp_send()
|
H A D | bootp.c | 713 int extlen, pktlen, iplen; in bootp_request() local 811 pktlen = eth_hdr_size + IP_UDP_HDR_SIZE + iplen; in bootp_request() 822 net_send_packet(net_tx_packet, pktlen); in bootp_request() 972 int pktlen, iplen, extlen; in dhcp_send_request_packet() local 1023 pktlen = eth_hdr_size + IP_UDP_HDR_SIZE + iplen; in dhcp_send_request_packet() 1030 debug("Transmitting DHCPREQUEST packet: len = %d\n", pktlen); in dhcp_send_request_packet() 1031 net_send_packet(net_tx_packet, pktlen); in dhcp_send_request_packet()
|
H A D | nfs.c | 178 int pktlen; in rpc_req() local 204 pktlen = (char *)p + datalen * sizeof(uint32_t) - (char *)&rpc_pkt; in rpc_req() 207 &rpc_pkt.u.data[0], pktlen); in rpc_req() 217 nfs_our_port, pktlen); in rpc_req()
|
/openbmc/linux/drivers/usb/serial/ |
H A D | kl5kusb105.c | 102 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()
|
/openbmc/u-boot/drivers/net/ |
H A D | smc911x.c | 195 u32 pktlen, tmplen; in smc911x_rx() local 200 pktlen = (status & RX_STS_PKT_LEN) >> 16; in smc911x_rx() 204 tmplen = (pktlen + 3) / 4; in smc911x_rx() 213 net_process_received_packet(net_rx_packets[0], pktlen); in smc911x_rx()
|
/openbmc/linux/drivers/net/wireless/legacy/ |
H A 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 …]
|
/openbmc/openbmc/meta-openembedded/meta-oe/recipes-security/nmap/files/ |
H A D | 0002-Fix-building-with-libc.patch | 68 @@ -650,7 +650,7 @@ clientid_t EchoServer::nep_match_packet(const u8 *pkt, size_t pktlen){ 74 if( (int)pktlen > (iplen+tcplen) ){ 75 … if( payload.storeRecvData(pkt+iplen+tcplen, pktlen-iplen-tcplen)!=OP_FAILURE)
|
/openbmc/qemu/hw/usb/ |
H A D | hcd-ohci.c | 877 size_t len = 0, pktlen = 0; in ohci_service_td() local 955 pktlen = len; in ohci_service_td() 958 pktlen = (ed->flags & OHCI_ED_MPS_MASK) >> OHCI_ED_MPS_SHIFT; in ohci_service_td() 959 if (pktlen > len) { in ohci_service_td() 960 pktlen = len; in ohci_service_td() 963 if (ohci_copy_td(ohci, &td, ohci->usb_buf, pktlen, in ohci_service_td() 972 trace_usb_ohci_td_pkt_hdr(addr, (int64_t)pktlen, (int64_t)len, str, in ohci_service_td() 974 ohci_td_pkt("OUT", ohci->usb_buf, pktlen); in ohci_service_td() 998 usb_packet_addbuf(&ohci->usb_packet, ohci->usb_buf, pktlen); in ohci_service_td() 1020 ohci_td_pkt("IN", ohci->usb_buf, pktlen); in ohci_service_td() [all …]
|
/openbmc/linux/drivers/input/touchscreen/ |
H A 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()
|
/openbmc/linux/drivers/net/wireless/mediatek/mt76/ |
H A D | mt76x02_mac.h | 34 DECLARE_EWMA(pktlen, 8, 8); 43 struct ewma_pktlen pktlen; member
|
/openbmc/linux/drivers/media/rc/ |
H A 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()
|
/openbmc/linux/drivers/net/wireless/admtek/ |
H A 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()
|
/openbmc/linux/net/caif/ |
H A 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()
|
/openbmc/linux/drivers/net/ipvlan/ |
H A D | ipvlan_core.c | 153 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()
|
/openbmc/linux/drivers/staging/rtl8723bs/include/ |
H A D | rtl8723b_recv.h | 14 u32 pktlen:14; member
|
/openbmc/linux/include/media/ |
H A D | dvb_ringbuffer.h | 278 size_t idx, size_t *pktlen);
|
/openbmc/linux/drivers/net/ethernet/arc/ |
H A D | emac_main.c | 186 unsigned int pktlen, info = le32_to_cpu(rxbd->info); in arc_emac_rx() local 245 pktlen = info & LEN_MASK; in arc_emac_rx() 247 stats->rx_bytes += pktlen; in arc_emac_rx() 248 skb_put(rx_buff->skb, pktlen); in arc_emac_rx()
|