/kernel/linux/linux-5.10/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 …]
|
/kernel/linux/linux-5.10/net/batman-adv/ |
D | icmp_socket.c | 129 size_t packet_len; in batadv_socket_read() local 153 packet_len = min(count, socket_packet->icmp_len); in batadv_socket_read() 154 error = copy_to_user(buf, &socket_packet->icmp_packet, packet_len); in batadv_socket_read() 161 return packet_len; in batadv_socket_read() 175 size_t packet_len = sizeof(struct batadv_icmp_packet); in batadv_socket_write() local 192 packet_len = BATADV_ICMP_MAX_PACKET_SIZE; in batadv_socket_write() 194 packet_len = len; in batadv_socket_write() 196 skb = netdev_alloc_skb_ip_align(NULL, packet_len + ETH_HLEN); in batadv_socket_write() 204 icmp_header = skb_put(skb, packet_len); in batadv_socket_write() 206 if (copy_from_user(icmp_header, buff, packet_len)) { in batadv_socket_write() [all …]
|
D | bat_iv_ogm.c | 316 batadv_iv_ogm_aggr_packet(int buff_pos, int packet_len, in batadv_iv_ogm_aggr_packet() argument 323 if (next_buff_pos > packet_len) in batadv_iv_ogm_aggr_packet() 329 return (next_buff_pos <= packet_len) && in batadv_iv_ogm_aggr_packet() 354 while (batadv_iv_ogm_aggr_packet(buff_pos, forw_packet->packet_len, in batadv_iv_ogm_send_to_if() 442 int packet_len, unsigned long send_time, in batadv_iv_ogm_can_aggregate() argument 449 int aggregated_bytes = forw_packet->packet_len + packet_len; in batadv_iv_ogm_can_aggregate() 540 int packet_len, unsigned long send_time, in batadv_iv_ogm_aggregate_new() argument 554 packet_len < BATADV_MAX_AGGREGATION_BYTES) in batadv_iv_ogm_aggregate_new() 557 skb_size = packet_len; in batadv_iv_ogm_aggregate_new() 575 skb_buff = skb_put(forw_packet_aggr->skb, packet_len); in batadv_iv_ogm_aggregate_new() [all …]
|
D | bat_v_ogm.c | 529 size_t packet_len; in batadv_v_ogm_forward() local 564 packet_len = BATADV_OGM2_HLEN + tvlv_len; in batadv_v_ogm_forward() 566 ETH_HLEN + packet_len); in batadv_v_ogm_forward() 571 skb_buff = skb_put_data(skb, ogm_received, packet_len); in batadv_v_ogm_forward() 837 batadv_v_ogm_aggr_packet(int buff_pos, int packet_len, in batadv_v_ogm_aggr_packet() argument 844 if (next_buff_pos > packet_len) in batadv_v_ogm_aggr_packet() 850 return (next_buff_pos <= packet_len) && in batadv_v_ogm_aggr_packet()
|
D | tp_meter.c | 630 size_t packet_len, mss; in batadv_tp_recv_ack() local 634 packet_len = BATADV_TP_PLEN; in batadv_tp_recv_ack() 636 packet_len += sizeof(struct batadv_unicast_packet); in batadv_tp_recv_ack() 683 orig_node, recv_ack, packet_len, in batadv_tp_recv_ack() 723 packet_len, icmp->session, in batadv_tp_recv_ack() 810 size_t payload_len, packet_len; in batadv_tp_send() local 857 packet_len = payload_len + sizeof(struct batadv_unicast_packet); in batadv_tp_send() 861 packet_len, in batadv_tp_send()
|
/kernel/linux/linux-5.10/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 | 222 u32 packet_len; in asix_tx_fixup() local 259 packet_len = ((skb->len ^ 0x0000ffff) << 16) + skb->len; in asix_tx_fixup() 261 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()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/qualcomm/rmnet/ |
D | rmnet_map_data.c | 316 u32 packet_len; in rmnet_map_deaggregate() local 322 packet_len = ntohs(maph->pkt_len) + sizeof(struct rmnet_map_header); in rmnet_map_deaggregate() 325 packet_len += sizeof(struct rmnet_map_dl_csum_trailer); in rmnet_map_deaggregate() 327 if (((int)skb->len - (int)packet_len) < 0) in rmnet_map_deaggregate() 334 skbn = alloc_skb(packet_len + RMNET_MAP_DEAGGR_SPACING, GFP_ATOMIC); in rmnet_map_deaggregate() 339 skb_put(skbn, packet_len); in rmnet_map_deaggregate() 340 memcpy(skbn->data, skb->data, packet_len); in rmnet_map_deaggregate() 341 skb_pull(skb, packet_len); in rmnet_map_deaggregate()
|
/kernel/linux/linux-5.10/tools/testing/selftests/net/ |
D | psock_tpacket.c | 373 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 …]
|
/kernel/linux/linux-5.10/net/ipv6/ |
D | output_core.c | 67 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()
|
D | exthdrs_core.c | 119 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()
|
D | mip6.c | 257 unsigned int packet_len = skb_tail_pointer(skb) - in mip6_destopt_offset() local 263 while (offset + 1 <= packet_len) { in mip6_destopt_offset() 393 unsigned int packet_len = skb_tail_pointer(skb) - in mip6_rthdr_offset() local 399 while (offset + 1 <= packet_len) { in mip6_rthdr_offset() 405 if (offset + 3 <= packet_len) { in mip6_rthdr_offset()
|
/kernel/linux/linux-5.10/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()
|
/kernel/linux/linux-5.10/drivers/net/can/usb/peak_usb/ |
D | pcan_usb_fd.c | 179 int packet_len; in pcan_usb_fd_send_cmd() local 196 packet_len = cmd_len; in pcan_usb_fd_send_cmd() 200 packet_len = min(packet_len, PCAN_UFD_LOSPD_PKT_SIZE); in pcan_usb_fd_send_cmd() 206 packet_ptr, packet_len, in pcan_usb_fd_send_cmd() 214 packet_ptr += packet_len; in pcan_usb_fd_send_cmd() 215 cmd_len -= packet_len; in pcan_usb_fd_send_cmd() 218 packet_len = cmd_len; in pcan_usb_fd_send_cmd() 220 } while (packet_len > 0); in pcan_usb_fd_send_cmd()
|
/kernel/linux/linux-5.10/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 …]
|
/kernel/linux/linux-5.10/drivers/infiniband/hw/hfi1/ |
D | sdma_txreq.h | 114 u16 packet_len; member
|
D | sdma.h | 561 tx->packet_len = tlen; in sdma_txinit_ahg() 562 tx->tlen = tx->packet_len; in sdma_txinit_ahg() 702 if (tx->packet_len & (sizeof(u32) - 1)) { in _sdma_txadd_daddr()
|
/kernel/linux/linux-5.10/drivers/net/wireless/broadcom/brcm80211/brcmfmac/ |
D | fweh.c | 397 u32 packet_len, gfp_t gfp) in brcmf_fweh_process_event() argument 417 datalen + sizeof(*event_packet) > packet_len) in brcmf_fweh_process_event()
|
D | fweh.h | 322 u32 packet_len, gfp_t gfp);
|
/kernel/linux/linux-5.10/net/rose/ |
D | rose_subr.c | 395 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()
|
/kernel/linux/linux-5.10/drivers/media/usb/dvb-usb/ |
D | af9005.c | 453 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()
|
/kernel/linux/linux-5.10/arch/um/drivers/ |
D | vector_kern.c | 338 int packet_len; in vector_enqueue() local 348 packet_len = skb->len; in vector_enqueue() 372 packet_len = skb->len; in vector_enqueue() 374 netdev_completed_queue(qi->dev, 1, packet_len); in vector_enqueue()
|