Home
last modified time | relevance | path

Searched refs:packet_len (Results 1 – 25 of 31) sorted by relevance

12

/drivers/platform/chrome/
Dcros_ec_i2c.c58 int packet_len; in cros_ec_pkt_xfer_i2c() local
74 packet_len = msg->insize + response_header_size; in cros_ec_pkt_xfer_i2c()
75 BUG_ON(packet_len > ec_dev->din_size); in cros_ec_pkt_xfer_i2c()
77 i2c_msg[1].len = packet_len; in cros_ec_pkt_xfer_i2c()
80 packet_len = msg->outsize + request_header_size; in cros_ec_pkt_xfer_i2c()
81 BUG_ON(packet_len > ec_dev->dout_size); in cros_ec_pkt_xfer_i2c()
83 i2c_msg[0].len = packet_len; in cros_ec_pkt_xfer_i2c()
187 int packet_len; in cros_ec_cmd_xfer_i2c() local
202 packet_len = msg->insize + 3; in cros_ec_cmd_xfer_i2c()
203 in_buf = kzalloc(packet_len, GFP_KERNEL); in cros_ec_cmd_xfer_i2c()
[all …]
/drivers/net/usb/
Dnet1080.c46 __le16 packet_len; // payload size (including ethhdr) member
343 u16 hdr_len, packet_len; in net1080_rx_fixup() local
360 packet_len = le16_to_cpup(&header->packet_len); in net1080_rx_fixup()
361 if (FRAMED_SIZE(packet_len) > NC_MAX_PACKET) { in net1080_rx_fixup()
363 netdev_dbg(dev->net, "packet too big, %d\n", packet_len); in net1080_rx_fixup()
383 if ((packet_len & 0x01) == 0) { in net1080_rx_fixup()
384 if (skb->data [packet_len] != PAD_BYTE) { in net1080_rx_fixup()
391 if (skb->len != packet_len) { in net1080_rx_fixup()
394 skb->len, packet_len); in net1080_rx_fixup()
407 header->packet_len, header->packet_id); in net1080_rx_fixup()
[all …]
Dlg-vl600.c101 int packet_len, count; in vl600_rx_fixup() local
163 packet_len = sizeof(*packet) + le32_to_cpup(&packet->len); in vl600_rx_fixup()
164 if (packet_len > buf->len) { in vl600_rx_fixup()
204 skb_trim(clone, packet_len); in vl600_rx_fixup()
207 skb_pull(buf, (packet_len + 3) & ~3); in vl600_rx_fixup()
209 skb_trim(buf, packet_len); in vl600_rx_fixup()
Dgl620a.c143 __le32 *packet_len; in genelink_tx_fixup() local
166 packet_len = packet_count + 1; in genelink_tx_fixup()
169 *packet_len = cpu_to_le32(length); in genelink_tx_fixup()
Dasix_common.c250 u32 packet_len; in asix_tx_fixup() local
287 packet_len = ((skb->len ^ 0x0000ffff) << 16) + skb->len; in asix_tx_fixup()
289 put_unaligned_le32(packet_len, ptr); in asix_tx_fixup()
Dsr9800.c116 u32 packet_len; in sr_tx_fixup() local
138 packet_len = (((skb->len - 4) ^ 0x0000ffff) << 16) + (skb->len - 4); in sr_tx_fixup()
139 put_unaligned_le32(packet_len, ptr); in sr_tx_fixup()
/drivers/net/ethernet/qualcomm/rmnet/
Drmnet_map_data.c351 u32 packet_len; in rmnet_map_deaggregate() local
357 packet_len = ntohs(maph->pkt_len) + sizeof(*maph); in rmnet_map_deaggregate()
360 packet_len += sizeof(struct rmnet_map_dl_csum_trailer); in rmnet_map_deaggregate()
363 packet_len += sizeof(*next_hdr); in rmnet_map_deaggregate()
372 if (((int)skb->len - (int)packet_len) < 0) in rmnet_map_deaggregate()
386 skbn = alloc_skb(packet_len + RMNET_MAP_DEAGGR_SPACING, GFP_ATOMIC); in rmnet_map_deaggregate()
391 skb_put(skbn, packet_len); in rmnet_map_deaggregate()
392 memcpy(skbn->data, skb->data, packet_len); in rmnet_map_deaggregate()
393 skb_pull(skb, packet_len); in rmnet_map_deaggregate()
/drivers/input/mouse/
Dvsxxxaa.c165 static int vsxxxaa_check_packet(struct vsxxxaa *mouse, int packet_len) in vsxxxaa_check_packet() argument
171 DBG("vsck: len=%d, 1st=0x%02x\n", packet_len, mouse->buf[0]); in vsxxxaa_check_packet()
176 for (i = 1; i < packet_len; i++) { in vsxxxaa_check_packet()
182 packet_len, i, mouse->buf[i]); in vsxxxaa_check_packet()
/drivers/net/can/usb/peak_usb/
Dpcan_usb_fd.c177 int packet_len; in pcan_usb_fd_send_cmd() local
194 packet_len = cmd_len; in pcan_usb_fd_send_cmd()
198 packet_len = min(packet_len, PCAN_UFD_LOSPD_PKT_SIZE); in pcan_usb_fd_send_cmd()
204 packet_ptr, packet_len, in pcan_usb_fd_send_cmd()
212 packet_ptr += packet_len; in pcan_usb_fd_send_cmd()
213 cmd_len -= packet_len; in pcan_usb_fd_send_cmd()
216 packet_len = cmd_len; in pcan_usb_fd_send_cmd()
218 } while (packet_len > 0); in pcan_usb_fd_send_cmd()
/drivers/input/touchscreen/
Dilitek_ts_i2c.c152 int packet_len = 5; in ilitek_process_and_report_v6() local
186 status = buf[i * packet_len + 1] & 0x40; in ilitek_process_and_report_v6()
190 id = buf[i * packet_len + 1] & 0x3F; in ilitek_process_and_report_v6()
192 x = get_unaligned_le16(buf + i * packet_len + 2); in ilitek_process_and_report_v6()
193 y = get_unaligned_le16(buf + i * packet_len + 4); in ilitek_process_and_report_v6()
/drivers/net/ethernet/smsc/
Dsmc91x.c402 unsigned int packet_number, status, packet_len; in smc_rcv() local
416 SMC_GET_PKT_HDR(lp, status, packet_len); in smc_rcv()
417 packet_len &= 0x07ff; /* mask off top bits */ in smc_rcv()
419 packet_number, status, packet_len, packet_len); in smc_rcv()
422 if (unlikely(packet_len < 6 || status & RS_ERRORS)) { in smc_rcv()
423 if (status & RS_TOOLONG && packet_len <= (1514 + 4 + 6)) { in smc_rcv()
428 if (packet_len < 6) { in smc_rcv()
431 packet_len, status); in smc_rcv()
460 skb = netdev_alloc_skb(dev, packet_len); in smc_rcv()
480 data_len = packet_len - ((status & RS_ODDFRAME) ? 5 : 6); in smc_rcv()
[all …]
/drivers/infiniband/hw/hfi1/
Dsdma_txreq.h75 u16 packet_len; member
Dsdma.h520 tx->packet_len = tlen; in sdma_txinit_ahg()
521 tx->tlen = tx->packet_len; in sdma_txinit_ahg()
673 if (tx->packet_len & (sizeof(u32) - 1)) { in _sdma_txadd_daddr()
Dsdma.c3107 pad_len = tx->packet_len & (sizeof(u32) - 1); in ext_coal_sdma_tx_descs()
3112 tx->packet_len += pad_len; in ext_coal_sdma_tx_descs()
3174 sizeof(u32) - (tx->packet_len & (sizeof(u32) - 1)), in _pad_sdma_tx_descs()
/drivers/net/wireless/broadcom/brcm80211/brcmfmac/
Dfweh.c398 u32 packet_len, gfp_t gfp) in brcmf_fweh_process_event() argument
418 datalen + sizeof(*event_packet) > packet_len) in brcmf_fweh_process_event()
Dfweh.h322 u32 packet_len, gfp_t gfp);
/drivers/media/usb/dvb-usb/
Daf9005.c458 int ret, i, packet_len; in af9005_send_command() local
473 packet_len = wlen + 5; in af9005_send_command()
477 st->data[0] = (u8) (packet_len & 0xff); in af9005_send_command()
478 st->data[1] = (u8) ((packet_len & 0xff00) >> 8); in af9005_send_command()
/drivers/net/ethernet/google/gve/
Dgve_desc_dqo.h212 u16 packet_len: 14; member
Dgve_rx_dqo.c546 buf_len = compl_desc->packet_len; in gve_rx_dqo()
/drivers/staging/r8188eu/core/
Drtw_wlan_util.c875 int rtw_check_bcn_info(struct adapter *Adapter, u8 *pframe, u32 packet_len) in rtw_check_bcn_info() argument
899 len = packet_len - sizeof(struct rtw_ieee80211_hdr_3addr); in rtw_check_bcn_info()
/drivers/net/ethernet/micrel/
Dksz884x.c4908 int packet_len; in rx_proc() local
4915 packet_len = status.rx.frame_len - 4; in rx_proc()
4919 packet_len + 4, DMA_FROM_DEVICE); in rx_proc()
4923 skb = netdev_alloc_skb(dev, packet_len + 2); in rx_proc()
4935 skb_put_data(skb, dma_buf->skb->data, packet_len); in rx_proc()
4945 dev->stats.rx_bytes += packet_len; in rx_proc()
/drivers/staging/rtl8723bs/core/
Drtw_wlan_util.c1150 int rtw_check_bcn_info(struct adapter *Adapter, u8 *pframe, u32 packet_len) in rtw_check_bcn_info() argument
1175 len = packet_len - sizeof(struct ieee80211_hdr_3addr); in rtw_check_bcn_info()
/drivers/staging/r8188eu/include/
Drtw_mlme_ext.h500 int rtw_check_bcn_info(struct adapter *Adapter, u8 *pframe, u32 packet_len);
/drivers/staging/rtl8723bs/include/
Drtw_mlme_ext.h544 int rtw_check_bcn_info(struct adapter *Adapter, u8 *pframe, u32 packet_len);
/drivers/gpu/drm/omapdrm/dss/
Ddsi.c3099 unsigned int packet_len; in dsi_update_screen_dispc() local
3121 packet_len = packet_payload + 1; /* 1 byte for DCS cmd */ in dsi_update_screen_dispc()
3122 total_len = (bytespf / packet_payload) * packet_len; in dsi_update_screen_dispc()
3131 packet_len, 0); in dsi_update_screen_dispc()

12