/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 | 1613 int pktlen; in dvb_ca_en50221_io_read() local 1645 pktlen = 2; in dvb_ca_en50221_io_read() 1658 if (pktlen < count) { in dvb_ca_en50221_io_read() 1659 if ((pktlen + fraglen - 2) > count) in dvb_ca_en50221_io_read() 1660 fraglen = count - pktlen; in dvb_ca_en50221_io_read() 1667 buf + pktlen, in dvb_ca_en50221_io_read() 1672 pktlen += fraglen; in dvb_ca_en50221_io_read() 1694 status = pktlen; in dvb_ca_en50221_io_read()
|
/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 …]
|
/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 …]
|
/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 …]
|
D | rtl8723bs_recv.c | 46 pattrib->pkt_len = (u16)prxreport->pktlen; in update_recvframe_attrib() 68 pattrib->pkt_len = (u16)prxreport->pktlen; in update_recvframe_attrib()
|
/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 …]
|
/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 …]
|
/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()
|
/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 …]
|
/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()
|
/drivers/net/wireless/mediatek/mt76/ |
D | mt76x02_mac.h | 34 DECLARE_EWMA(pktlen, 8, 8); 43 struct ewma_pktlen pktlen; member
|
/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()
|
/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()
|
/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()
|
/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()
|
/drivers/net/wireless/broadcom/brcm80211/brcmfmac/ |
D | msgbuf.c | 906 u32 pktlen; in brcmf_msgbuf_rxbuf_data_post() local 934 pktlen = skb->len; in brcmf_msgbuf_rxbuf_data_post() 954 pktlen = skb->len; in brcmf_msgbuf_rxbuf_data_post() 961 rx_bufpost->data_buf_len = cpu_to_le16((u16)pktlen); in brcmf_msgbuf_rxbuf_data_post() 1014 u32 pktlen; in brcmf_msgbuf_rxbuf_ctrl_post() local 1044 pktlen = skb->len; in brcmf_msgbuf_rxbuf_ctrl_post() 1061 rx_bufpost->host_buf_len = cpu_to_le16((u16)pktlen); in brcmf_msgbuf_rxbuf_ctrl_post()
|
/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()
|
/drivers/scsi/ |
D | ps3rom.c | 42 u32 pktlen; /* should be 12 for ATAPI 8020 */ member 97 atapi_cmnd.pktlen = 12; in ps3rom_atapi_request()
|
/drivers/staging/rtl8723bs/include/ |
D | rtl8723b_recv.h | 14 u32 pktlen:14; member
|
/drivers/net/ethernet/chelsio/inline_crypto/ch_ktls/ |
D | chcr_ktls.c | 1002 int len16, pktlen; in chcr_ktls_write_tcp_options() local 1016 pktlen = skb_transport_offset(skb) + tcp_hdrlen(skb); in chcr_ktls_write_tcp_options() 1018 ctrl = sizeof(*cpl) + pktlen; in chcr_ktls_write_tcp_options() 1050 cpl->len = htons(pktlen); in chcr_ktls_write_tcp_options() 1052 memcpy(buf, skb->data, pktlen); in chcr_ktls_write_tcp_options() 1056 ip->tot_len = htons(pktlen - maclen); in chcr_ktls_write_tcp_options() 1060 ip6->payload_len = htons(pktlen - maclen - iplen); in chcr_ktls_write_tcp_options() 1082 chcr_copy_to_txd(buf, &q->q, pos, pktlen); in chcr_ktls_write_tcp_options()
|
/drivers/net/ |
D | veth.c | 658 u32 pktlen, headroom, act, metalen; in veth_xdp_rcv_skb() local 674 pktlen = skb->len + mac_len; in veth_xdp_rcv_skb() 684 size = SKB_DATA_ALIGN(VETH_XDP_HEADROOM + pktlen) + in veth_xdp_rcv_skb() 695 if (skb_copy_bits(skb, -mac_len, start, pktlen)) { in veth_xdp_rcv_skb() 716 xdp.data_end = xdp.data + pktlen; in veth_xdp_rcv_skb()
|
/drivers/infiniband/sw/rxe/ |
D | rxe_resp.c | 397 u32 pktlen; in check_rkey() local 430 pktlen = payload_size(pkt); in check_rkey() 450 if (pktlen != mtu || bth_pad(pkt)) { in check_rkey() 455 if (pktlen != resid) { in check_rkey()
|
/drivers/rpmsg/ |
D | qcom_smd.c | 580 __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()
|