Home
last modified time | relevance | path

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

12

/drivers/media/dvb-core/
Ddvb_ringbuffer.c188 size_t pktlen; in dvb_ringbuffer_pkt_read_user() local
190 pktlen = rbuf->data[idx] << 8; in dvb_ringbuffer_pkt_read_user()
191 pktlen |= rbuf->data[(idx + 1) % rbuf->size]; in dvb_ringbuffer_pkt_read_user()
192 if (offset > pktlen) return -EINVAL; in dvb_ringbuffer_pkt_read_user()
193 if ((offset + len) > pktlen) len = pktlen - offset; in dvb_ringbuffer_pkt_read_user()
216 size_t pktlen; in dvb_ringbuffer_pkt_read() local
218 pktlen = rbuf->data[idx] << 8; in dvb_ringbuffer_pkt_read()
219 pktlen |= rbuf->data[(idx + 1) % rbuf->size]; in dvb_ringbuffer_pkt_read()
220 if (offset > pktlen) return -EINVAL; in dvb_ringbuffer_pkt_read()
221 if ((offset + len) > pktlen) len = pktlen - offset; in dvb_ringbuffer_pkt_read()
[all …]
Ddvb_ca_en50221.c1439 int pktlen; in dvb_ca_en50221_io_read() local
1467 pktlen = 2; in dvb_ca_en50221_io_read()
1479 if (pktlen < count) { in dvb_ca_en50221_io_read()
1480 if ((pktlen + fraglen - 2) > count) { in dvb_ca_en50221_io_read()
1481 fraglen = count - pktlen; in dvb_ca_en50221_io_read()
1487 buf + pktlen, fraglen)) < 0) { in dvb_ca_en50221_io_read()
1490 pktlen += fraglen; in dvb_ca_en50221_io_read()
1512 status = pktlen; in dvb_ca_en50221_io_read()
Ddvb_ringbuffer.h183 extern ssize_t dvb_ringbuffer_pkt_next(struct dvb_ringbuffer *rbuf, size_t idx, size_t* pktlen);
/drivers/net/ethernet/xircom/
Dxirc2ps_cs.c984 unsigned rsr, pktlen; in xirc2ps_interrupt() local
1036 pktlen = GetWord(XIRCREG0_RBC); in xirc2ps_interrupt()
1037 bytes_rcvd += pktlen; in xirc2ps_interrupt()
1039 pr_debug("rsr=%#02x packet_length=%u\n", rsr, pktlen); in xirc2ps_interrupt()
1042 skb = netdev_alloc_skb(dev, pktlen + 3); in xirc2ps_interrupt()
1056 if (rhsa + pktlen > 0x8000) { in xirc2ps_interrupt()
1058 u_char *buf = skb_put(skb, pktlen); in xirc2ps_interrupt()
1059 for (i=0; i < pktlen ; i++, rhsa++) { in xirc2ps_interrupt()
1068 skb_put(skb, pktlen), (pktlen+1)>>1); in xirc2ps_interrupt()
1082 u_long *p = skb_put(skb, pktlen); in xirc2ps_interrupt()
[all …]
/drivers/staging/wlags49_h2/
Dwl_netdev.c144 #define BLOCK_INPUT_DMA(buf, len) memcpy( buf, desc_next->buf_addr, pktlen )
893 hcf_16 pktlen; in wl_rx() local
925 pktlen = lp->hcfCtx.IFB_RxLen; in wl_rx()
926 if (pktlen != 0) { in wl_rx()
927 skb = ALLOC_SKB(pktlen); in wl_rx()
959 GET_PACKET( skb->dev, skb, pktlen ); in wl_rx()
966 lp->stats.rx_bytes += pktlen; in wl_rx()
972 lp->wds_port[port-1].stats.rx_bytes += pktlen; in wl_rx()
1877 hcf_16 pktlen; in wl_rx_dma() local
1953 pktlen = GET_BUF_CNT(desc_next); in wl_rx_dma()
[all …]
/drivers/net/ethernet/cadence/
Dat91_ether.c193 unsigned int pktlen; in at91ether_rx() local
197 pktlen = MACB_BF(RX_FRMLEN, lp->rx_ring[lp->rx_tail].ctrl); in at91ether_rx()
198 skb = netdev_alloc_skb(dev, pktlen + 2); in at91ether_rx()
201 memcpy(skb_put(skb, pktlen), p_recv, pktlen); in at91ether_rx()
205 lp->stats.rx_bytes += pktlen; in at91ether_rx()
/drivers/usb/serial/
Dkl5kusb105.c111 __u8 pktlen; /* always 5, it seems */ member
152 settings->pktlen, settings->baudrate, settings->databits, in klsi_105_chg_port_settings()
231 priv->cfg.pktlen = 5; in klsi_105_port_probe()
281 cfg->pktlen = 5; in klsi_105_open()
296 priv->cfg.pktlen = cfg->pktlen; in klsi_105_open()
/drivers/input/tablet/
Dwacom_sys.c265 features->pktlen = WACOM_PKGLEN_BBTOUCH3; in wacom_parse_logical_collection()
392 features->pktlen = WACOM_PKGLEN_TPC2FG; in wacom_parse_hid()
397 features->pktlen = WACOM_PKGLEN_MTOUCH; in wacom_parse_hid()
401 features->pktlen = WACOM_PKGLEN_MTTPC; in wacom_parse_hid()
405 features->pktlen = WACOM_PKGLEN_BBTOUCH; in wacom_parse_hid()
409 features->pktlen = WACOM_PKGLEN_GRAPHIRE; in wacom_parse_hid()
445 features->pktlen = WACOM_PKGLEN_GRAPHIRE; in wacom_parse_hid()
623 features->pktlen = WACOM_PKGLEN_BBTOUCH3; in wacom_retrieve_hid_descriptor()
1229 wacom_wac2->features.pktlen = WACOM_PKGLEN_BBTOUCH3; in wacom_wireless_work()
1273 if (features->pktlen > WACOM_PKGLEN_MAX) { in wacom_probe()
[all …]
Dwacom_wac.h100 int pktlen; member
/drivers/net/wireless/
Dwl3501_cs.c457 u16 bf, sig_bf, next, tmplen, pktlen; in wl3501_send_pkt() local
477 pktlen = len - 12; in wl3501_send_pkt()
488 sig.size = pktlen + 24 + 4 + 6; in wl3501_send_pkt()
489 if (pktlen > (254 - sizeof(struct wl3501_tx_hdr))) { in wl3501_send_pkt()
491 pktlen -= tmplen; in wl3501_send_pkt()
493 tmplen = pktlen; in wl3501_send_pkt()
494 pktlen = 0; in wl3501_send_pkt()
503 sig.size = pktlen + 24 + 4 - 2; in wl3501_send_pkt()
505 pktlen -= 2; in wl3501_send_pkt()
506 if (pktlen > (254 - sizeof(struct wl3501_tx_hdr) + 6)) { in wl3501_send_pkt()
[all …]
Dadm8211.c361 unsigned int pktlen; in adm8211_interrupt_rci() local
375 pktlen = status & RDES0_STATUS_FL; in adm8211_interrupt_rci()
376 if (pktlen > RX_PKT_SIZE) { in adm8211_interrupt_rci()
379 pktlen); in adm8211_interrupt_rci()
380 pktlen = RX_PKT_SIZE; in adm8211_interrupt_rci()
387 } else if (pktlen < RX_COPY_BREAK) { in adm8211_interrupt_rci()
388 skb = dev_alloc_skb(pktlen); in adm8211_interrupt_rci()
393 pktlen, PCI_DMA_FROMDEVICE); in adm8211_interrupt_rci()
394 memcpy(skb_put(skb, pktlen), in adm8211_interrupt_rci()
396 pktlen); in adm8211_interrupt_rci()
[all …]
/drivers/net/wireless/brcm80211/brcmfmac/
Dbcmsdh_sdmmc.c217 uint func, uint addr, struct sk_buff *pkt, uint pktlen) in brcmf_sdioh_request_data() argument
223 ((u8 *) (pkt->data)), pktlen); in brcmf_sdioh_request_data()
226 ((u8 *) (pkt->data)), pktlen); in brcmf_sdioh_request_data()
229 ((u8 *) (pkt->data)), addr, pktlen); in brcmf_sdioh_request_data()
233 addr, pktlen); in brcmf_sdioh_request_data()
/drivers/input/touchscreen/
Dwacom_w8001.c94 unsigned int pktlen; member
304 if (w8001->pktlen == w8001->idx) { in w8001_interrupt()
458 w8001->pktlen = W8001_PKTLEN_TOUCH93; in w8001_setup()
466 w8001->pktlen = W8001_PKTLEN_TOUCH9A; in w8001_setup()
472 w8001->pktlen = W8001_PKTLEN_TOUCH2FG; in w8001_setup()
/drivers/media/rc/
Dredrat3.c615 unsigned pktlen, pkttype; in redrat3_read_packet_start() local
620 pktlen = be16_to_cpu(header->length); in redrat3_read_packet_start()
623 if (pktlen > sizeof(rr3->irdata)) { in redrat3_read_packet_start()
624 dev_warn(rr3->dev, "packet length %u too large\n", pktlen); in redrat3_read_packet_start()
641 rr3->bytes_read, pktlen); in redrat3_read_packet_start()
646 pkttype, len, pktlen); in redrat3_read_packet_start()
/drivers/net/ethernet/micrel/
Dks8695net.c465 int pktlen; in ks8695_rx() local
504 pktlen = flags & RDES_FLEN; in ks8695_rx()
505 pktlen -= 4; /* Drop the CRC */ in ks8695_rx()
521 skb_put(skb, pktlen); in ks8695_rx()
527 ndev->stats.rx_bytes += pktlen; in ks8695_rx()
/drivers/net/hamradio/
Dbaycom_epp.c541 unsigned pktlen; in do_rxpacket() local
547 pktlen = bc->hdlcrx.bufcnt-2+1; /* KISS kludge */ in do_rxpacket()
548 if (!(skb = dev_alloc_skb(pktlen))) { in do_rxpacket()
553 cp = skb_put(skb, pktlen); in do_rxpacket()
555 memcpy(cp, bc->hdlcrx.buf, pktlen - 1); in do_rxpacket()
/drivers/staging/bcm/
DMisc.c224 unsigned int pktlen = 0; in CopyBufferToControlPacket() local
325 pktlen = pLeader->PLength; in CopyBufferToControlPacket()
334 atomic_read(&Adapter->index_wr_txcntrlpkt), ctrl_buff, ioBuffer, pktlen); in CopyBufferToControlPacket()
346 pktlen = pLeader->PLength; in CopyBufferToControlPacket()
347 Status = StoreCmControlResponseMessage(Adapter, pucAddIndication, &pktlen); in CopyBufferToControlPacket()
357 pLeader->PLength = pktlen; in CopyBufferToControlPacket()
361 if (pktlen + LEADER_SIZE > MAX_CNTL_PKT_SIZE) in CopyBufferToControlPacket()
364 memset(ctrl_buff, 0, pktlen+LEADER_SIZE); in CopyBufferToControlPacket()
/drivers/scsi/
Dps3rom.c54 u32 pktlen; /* should be 12 for ATAPI 8020 */ member
109 atapi_cmnd.pktlen = 12; in ps3rom_atapi_request()
/drivers/net/ethernet/via/
Dvia-velocity.c1723 size_t pktlen = max_t(size_t, skb->len, ETH_ZLEN); in velocity_free_tx_buf() local
1727 pktlen = max_t(size_t, pktlen, in velocity_free_tx_buf()
1731 le16_to_cpu(pktlen), PCI_DMA_TODEVICE); in velocity_free_tx_buf()
2521 int pktlen; in velocity_xmit() local
2535 pktlen = skb_shinfo(skb)->nr_frags == 0 ? in velocity_xmit()
2553 tdinfo->skb_dma[0] = pci_map_single(vptr->pdev, skb->data, pktlen, PCI_DMA_TODEVICE); in velocity_xmit()
2554 td_ptr->tdesc0.len = cpu_to_le16(pktlen); in velocity_xmit()
2557 td_ptr->td_buf[0].size = cpu_to_le16(pktlen); in velocity_xmit()
/drivers/staging/rtl8712/
Drtl871x_xmit.c245 pattrib->pktlen = pktfile.pkt_len; in r8712_update_attrib()
371 datalen = pattrib->pktlen - pattrib->hdrlen; in xmitframe_addmic()
620 pattrib->pktlen = pktfile.pkt_len; in r8712_xmitframe_coalesce()
674 pattrib->pktlen); in r8712_xmitframe_coalesce()
Drtl871x_xmit.h107 u16 pktlen; /* the original 802.3 pkt raw_data len member
/drivers/atm/
Dsolos-pci.c1139 int pktlen; in psend() local
1141 pktlen = skb->len; in psend()
1142 if (pktlen > (BUF_SIZE - sizeof(*header))) { in psend()
1166 header->size = cpu_to_le16(pktlen); in psend()
/drivers/net/wireless/rtlwifi/rtl8192cu/
Dtrx.c514 u16 pktlen = skb->len; in rtl92cu_tx_fill_desc() local
523 SET_TX_DESC_PKT_SIZE(txdesc, pktlen); in rtl92cu_tx_fill_desc()
/drivers/net/wireless/ath/ath5k/
Dbase.c676 unsigned int pktlen, flags, keyidx = AR5K_TXKEYIX_INVALID; in ath5k_txbuf_setup() local
704 pktlen = skb->len; in ath5k_txbuf_setup()
711 pktlen += info->control.hw_key->icv_len; in ath5k_txbuf_setup()
717 info->control.vif, pktlen, info)); in ath5k_txbuf_setup()
723 info->control.vif, pktlen, info)); in ath5k_txbuf_setup()
725 ret = ah->ah_setup_tx_desc(ah, ds, pktlen, in ath5k_txbuf_setup()
/drivers/net/wireless/iwlwifi/mvm/
Dd3.c1140 int pktlen = le32_to_cpu(status->wake_packet_length); in iwl_mvm_query_wakeup_reasons() local
1143 int truncated = pktlen - pktsize; in iwl_mvm_query_wakeup_reasons()
1204 wakeup.packet_len = pktlen - truncated; in iwl_mvm_query_wakeup_reasons()

12