/drivers/platform/chrome/ |
D | cros_ec_i2c.c | 58 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/ |
D | net1080.c | 46 __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 …]
|
D | lg-vl600.c | 101 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()
|
D | gl620a.c | 143 __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()
|
D | asix_common.c | 250 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()
|
D | sr9800.c | 116 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/ |
D | rmnet_map_data.c | 351 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/ |
D | vsxxxaa.c | 165 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/ |
D | pcan_usb_fd.c | 177 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/ |
D | ilitek_ts_i2c.c | 152 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/ |
D | smc91x.c | 402 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/ |
D | sdma_txreq.h | 75 u16 packet_len; member
|
D | sdma.h | 520 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()
|
D | sdma.c | 3107 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/ |
D | fweh.c | 398 u32 packet_len, gfp_t gfp) in brcmf_fweh_process_event() argument 418 datalen + sizeof(*event_packet) > packet_len) in brcmf_fweh_process_event()
|
D | fweh.h | 322 u32 packet_len, gfp_t gfp);
|
/drivers/media/usb/dvb-usb/ |
D | af9005.c | 458 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/ |
D | gve_desc_dqo.h | 212 u16 packet_len: 14; member
|
D | gve_rx_dqo.c | 546 buf_len = compl_desc->packet_len; in gve_rx_dqo()
|
/drivers/staging/r8188eu/core/ |
D | rtw_wlan_util.c | 875 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/ |
D | ksz884x.c | 4908 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/ |
D | rtw_wlan_util.c | 1150 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/ |
D | rtw_mlme_ext.h | 500 int rtw_check_bcn_info(struct adapter *Adapter, u8 *pframe, u32 packet_len);
|
/drivers/staging/rtl8723bs/include/ |
D | rtw_mlme_ext.h | 544 int rtw_check_bcn_info(struct adapter *Adapter, u8 *pframe, u32 packet_len);
|
/drivers/gpu/drm/omapdrm/dss/ |
D | dsi.c | 3099 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()
|