Home
last modified time | relevance | path

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

12

/linux-6.1.9/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 if (packet_len > ec_dev->din_size) { in cros_ec_pkt_xfer_i2c()
80 i2c_msg[1].len = packet_len; in cros_ec_pkt_xfer_i2c()
83 packet_len = msg->outsize + request_header_size; in cros_ec_pkt_xfer_i2c()
84 if (packet_len > ec_dev->dout_size) { in cros_ec_pkt_xfer_i2c()
89 i2c_msg[0].len = packet_len; in cros_ec_pkt_xfer_i2c()
195 int packet_len; in cros_ec_cmd_xfer_i2c() local
210 packet_len = msg->insize + 3; in cros_ec_cmd_xfer_i2c()
211 in_buf = kzalloc(packet_len, GFP_KERNEL); in cros_ec_cmd_xfer_i2c()
[all …]
/linux-6.1.9/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.c271 u32 packet_len; in asix_tx_fixup() local
308 packet_len = ((skb->len ^ 0x0000ffff) << 16) + skb->len; in asix_tx_fixup()
310 put_unaligned_le32(packet_len, ptr); in asix_tx_fixup()
/linux-6.1.9/drivers/net/ethernet/qualcomm/rmnet/
Drmnet_map_data.c349 u32 packet_len; in rmnet_map_deaggregate() local
355 packet_len = ntohs(maph->pkt_len) + sizeof(*maph); in rmnet_map_deaggregate()
358 packet_len += sizeof(struct rmnet_map_dl_csum_trailer); in rmnet_map_deaggregate()
361 packet_len += sizeof(*next_hdr); in rmnet_map_deaggregate()
370 if (((int)skb->len - (int)packet_len) < 0) in rmnet_map_deaggregate()
384 skbn = alloc_skb(packet_len + RMNET_MAP_DEAGGR_SPACING, GFP_ATOMIC); in rmnet_map_deaggregate()
389 skb_put(skbn, packet_len); in rmnet_map_deaggregate()
390 memcpy(skbn->data, skb->data, packet_len); in rmnet_map_deaggregate()
391 skb_pull(skb, packet_len); in rmnet_map_deaggregate()
/linux-6.1.9/tools/testing/selftests/net/
Dpsock_tpacket.c373 size_t packet_len; in walk_tx() local
416 create_payload(packet, &packet_len); in walk_tx()
427 ppd.v1->tp_h.tp_snaplen = packet_len; in walk_tx()
428 ppd.v1->tp_h.tp_len = packet_len; in walk_tx()
432 packet_len); in walk_tx()
437 ppd.v2->tp_h.tp_snaplen = packet_len; in walk_tx()
438 ppd.v2->tp_h.tp_len = packet_len; in walk_tx()
442 packet_len); in walk_tx()
448 tx->tp_snaplen = packet_len; in walk_tx()
449 tx->tp_len = packet_len; in walk_tx()
[all …]
/linux-6.1.9/net/ipv6/
Doutput_core.c67 unsigned int packet_len = skb_tail_pointer(skb) - in ip6_find_1stfragopt() local
72 while (offset <= packet_len) { in ip6_find_1stfragopt()
94 if (offset + sizeof(struct ipv6_opt_hdr) > packet_len) in ip6_find_1stfragopt()
Dexthdrs_core.c119 int packet_len = skb_tail_pointer(skb) - skb_network_header(skb); in ipv6_find_tlv() local
123 if (offset + 2 > packet_len) in ipv6_find_tlv()
128 if (offset + len > packet_len) in ipv6_find_tlv()
/linux-6.1.9/net/batman-adv/
Dbat_iv_ogm.c315 batadv_iv_ogm_aggr_packet(int buff_pos, int packet_len, in batadv_iv_ogm_aggr_packet() argument
322 if (next_buff_pos > packet_len) in batadv_iv_ogm_aggr_packet()
328 return (next_buff_pos <= packet_len) && in batadv_iv_ogm_aggr_packet()
353 while (batadv_iv_ogm_aggr_packet(buff_pos, forw_packet->packet_len, in batadv_iv_ogm_send_to_if()
441 int packet_len, unsigned long send_time, in batadv_iv_ogm_can_aggregate() argument
448 int aggregated_bytes = forw_packet->packet_len + packet_len; in batadv_iv_ogm_can_aggregate()
538 int packet_len, unsigned long send_time, in batadv_iv_ogm_aggregate_new() argument
552 packet_len < BATADV_MAX_AGGREGATION_BYTES) in batadv_iv_ogm_aggregate_new()
555 skb_size = packet_len; in batadv_iv_ogm_aggregate_new()
573 skb_buff = skb_put(forw_packet_aggr->skb, packet_len); in batadv_iv_ogm_aggregate_new()
[all …]
Dbat_v_ogm.c530 size_t packet_len; in batadv_v_ogm_forward() local
565 packet_len = BATADV_OGM2_HLEN + tvlv_len; in batadv_v_ogm_forward()
567 ETH_HLEN + packet_len); in batadv_v_ogm_forward()
572 skb_buff = skb_put_data(skb, ogm_received, packet_len); in batadv_v_ogm_forward()
828 batadv_v_ogm_aggr_packet(int buff_pos, int packet_len, in batadv_v_ogm_aggr_packet() argument
835 if (next_buff_pos > packet_len) in batadv_v_ogm_aggr_packet()
841 return (next_buff_pos <= packet_len) && in batadv_v_ogm_aggr_packet()
Dtp_meter.c635 size_t packet_len, mss; in batadv_tp_recv_ack() local
638 packet_len = BATADV_TP_PLEN; in batadv_tp_recv_ack()
640 packet_len += sizeof(struct batadv_unicast_packet); in batadv_tp_recv_ack()
687 orig_node, recv_ack, packet_len, in batadv_tp_recv_ack()
727 packet_len, icmp->session, in batadv_tp_recv_ack()
811 size_t payload_len, packet_len; in batadv_tp_send() local
858 packet_len = payload_len + sizeof(struct batadv_unicast_packet); in batadv_tp_send()
862 packet_len, in batadv_tp_send()
/linux-6.1.9/drivers/input/mouse/
Dvsxxxaa.c162 static int vsxxxaa_check_packet(struct vsxxxaa *mouse, int packet_len) in vsxxxaa_check_packet() argument
168 DBG("vsck: len=%d, 1st=0x%02x\n", packet_len, mouse->buf[0]); in vsxxxaa_check_packet()
173 for (i = 1; i < packet_len; i++) { in vsxxxaa_check_packet()
179 packet_len, i, mouse->buf[i]); in vsxxxaa_check_packet()
/linux-6.1.9/drivers/net/can/usb/peak_usb/
Dpcan_usb_fd.c191 int packet_len; in pcan_usb_fd_send_cmd() local
208 packet_len = cmd_len; in pcan_usb_fd_send_cmd()
212 packet_len = min(packet_len, PCAN_UFD_LOSPD_PKT_SIZE); in pcan_usb_fd_send_cmd()
218 packet_ptr, packet_len, in pcan_usb_fd_send_cmd()
226 packet_ptr += packet_len; in pcan_usb_fd_send_cmd()
227 cmd_len -= packet_len; in pcan_usb_fd_send_cmd()
230 packet_len = cmd_len; in pcan_usb_fd_send_cmd()
232 } while (packet_len > 0); in pcan_usb_fd_send_cmd()
/linux-6.1.9/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()
/linux-6.1.9/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 …]
/linux-6.1.9/drivers/infiniband/hw/hfi1/
Dsdma_txreq.h72 u16 packet_len; member
Dsdma.h520 tx->packet_len = tlen; in sdma_txinit_ahg()
521 tx->tlen = tx->packet_len; in sdma_txinit_ahg()
661 if (tx->packet_len & (sizeof(u32) - 1)) { in _sdma_txadd_daddr()
/linux-6.1.9/drivers/net/wwan/t7xx/
Dt7xx_port_proxy.h44 __le32 packet_len; member
Dt7xx_port_proxy.c115 le32_to_cpu(ccci_h->packet_len)); in t7xx_port_next_rx_seq_num()
225 ccci_h->packet_len = cpu_to_le32(skb->len); in t7xx_port_send_ccci_skb()
/linux-6.1.9/net/xfrm/
Dxfrm_output.c85 unsigned int packet_len; in mip6_rthdr_offset() local
88 packet_len = skb_tail_pointer(skb) - nh; in mip6_rthdr_offset()
91 while (offset <= packet_len) { in mip6_rthdr_offset()
98 if (type == IPPROTO_ROUTING && offset + 3 <= packet_len) { in mip6_rthdr_offset()
125 if (offset + sizeof(struct ipv6_opt_hdr) > packet_len) in mip6_rthdr_offset()
/linux-6.1.9/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()
/linux-6.1.9/drivers/media/usb/dvb-usb/
Daf9005.c453 int ret, i, packet_len; in af9005_send_command() local
468 packet_len = wlen + 5; in af9005_send_command()
472 st->data[0] = (u8) (packet_len & 0xff); in af9005_send_command()
473 st->data[1] = (u8) ((packet_len & 0xff00) >> 8); in af9005_send_command()
/linux-6.1.9/drivers/net/ethernet/google/gve/
Dgve_desc_dqo.h212 u16 packet_len: 14; member
/linux-6.1.9/net/rose/
Drose_subr.c395 int rose_parse_facilities(unsigned char *p, unsigned packet_len, in rose_parse_facilities() argument
402 if (facilities_len == 0 || (unsigned int)facilities_len > packet_len) in rose_parse_facilities()

12