| /linux/tools/testing/selftests/bpf/prog_tests/ |
| H A D | xdp_bpf2bpf.c | 15 int pkt_size; member 29 ASSERT_EQ(meta->pkt_len, tst_ctx->pkt_size, "check_meta_pkt_len"); in on_sample() 46 int pkt_size) in run_xdp_bpf2bpf_pkt_size() argument 52 if (!ASSERT_LE(pkt_size, BUF_SZ, "pkt_size") || in run_xdp_bpf2bpf_pkt_size() 53 !ASSERT_GE(pkt_size, sizeof(pkt_v4), "pkt_size")) in run_xdp_bpf2bpf_pkt_size() 67 test_ctx.pkt_size = pkt_size; in run_xdp_bpf2bpf_pkt_size() 70 if (pkt_size > sizeof(pkt_v4)) { in run_xdp_bpf2bpf_pkt_size() 71 for (int i = 0; i < (pkt_size - sizeof(pkt_v4)); i++) in run_xdp_bpf2bpf_pkt_size() 77 topts.data_size_in = pkt_size; in run_xdp_bpf2bpf_pkt_size() 85 ASSERT_EQ(topts.data_size_out, pkt_size, "ipv4 size"); in run_xdp_bpf2bpf_pkt_size()
|
| H A D | sockmap_strp.c | 291 int zero = 0, pkt_size = STRP_PKT_FULL_LEN, sent, recvd, avail; in test_sockmap_strp_pass() local 310 sent = xsend(c, packet, pkt_size, 0); in test_sockmap_strp_pass() 311 if (!ASSERT_EQ(sent, pkt_size, "xsend(pre-data)")) in test_sockmap_strp_pass() 329 sent = xsend(c, packet, pkt_size, 0); in test_sockmap_strp_pass() 330 if (!ASSERT_EQ(sent, pkt_size, "xsend(c)")) in test_sockmap_strp_pass() 335 if (!ASSERT_EQ(recvd, pkt_size, "recv_timeout(p)") || in test_sockmap_strp_pass() 336 !ASSERT_OK(memcmp(packet, rcv, pkt_size), in test_sockmap_strp_pass() 342 sent = xsend(c, packet, pkt_size, 0); in test_sockmap_strp_pass() 343 if (!ASSERT_EQ(sent, pkt_size, "second xsend(c)")) in test_sockmap_strp_pass() 348 !ASSERT_EQ(avail, pkt_size, "ioctl(FIONREAD)")) in test_sockmap_strp_pass() [all …]
|
| /linux/sound/soc/qcom/qdsp6/ |
| H A D | q6asm.c | 283 uint32_t pkt_size, bool cmd_flg, in q6asm_add_hdr() argument 289 hdr->pkt_size = pkt_size; in q6asm_add_hdr() 337 int rc, pkt_size; in __q6asm_memory_unmap() local 345 pkt_size = APR_HDR_SIZE + sizeof(*mem_unmap); in __q6asm_memory_unmap() 346 p = kzalloc(pkt_size, GFP_KERNEL); in __q6asm_memory_unmap() 356 pkt->hdr.pkt_size = pkt_size; in __q6asm_memory_unmap() 434 int i, pkt_size; in __q6asm_memory_map_regions() local 447 pkt_size = APR_HDR_SIZE + sizeof(*cmd) + in __q6asm_memory_map_regions() 450 p = kzalloc(pkt_size, GFP_KERNEL); in __q6asm_memory_map_regions() 461 pkt->hdr.pkt_size = pkt_size; in __q6asm_memory_map_regions() [all …]
|
| H A D | q6afe.c | 1078 int ret, pkt_size = APR_HDR_SIZE + sizeof(*param) + sizeof(*pdata) + psize; in q6afe_set_param() local 1080 void *p __free(kfree) = kzalloc(pkt_size, GFP_KERNEL); in q6afe_set_param() 1093 pkt->hdr.pkt_size = pkt_size; in q6afe_set_param() 1129 int ret, pkt_size = APR_HDR_SIZE + sizeof(*param) + sizeof(*pdata) + psize; in q6afe_port_set_param_v2() local 1131 void *p __free(kfree) = kzalloc(pkt_size, GFP_KERNEL); in q6afe_port_set_param_v2() 1144 pkt->hdr.pkt_size = pkt_size; in q6afe_port_set_param_v2() 1279 int index, pkt_size; in q6afe_port_stop() local 1288 pkt_size = APR_HDR_SIZE + sizeof(*stop); in q6afe_port_stop() 1289 p = kzalloc(pkt_size, GFP_KERNEL); in q6afe_port_stop() 1299 pkt->hdr.pkt_size = pkt_size; in q6afe_port_stop() [all …]
|
| H A D | q6adm.c | 162 close.hdr.pkt_size = sizeof(close); in q6adm_callback() 333 int ret, pkt_size = APR_HDR_SIZE + sizeof(*open); in q6adm_device_open() 334 void *p __free(kfree) = kzalloc(pkt_size, GFP_KERNEL); in q6adm_device_open() 343 pkt->hdr.pkt_size = pkt_size; in q6adm_device_open() 467 int pkt_size = (APR_HDR_SIZE + sizeof(*route) + sizeof(*node) + in q6adm_matrix_map() local 469 void *matrix_map __free(kfree) = kzalloc(pkt_size, GFP_KERNEL); in q6adm_matrix_map() 481 pkt->hdr.pkt_size = pkt_size; in q6adm_matrix_map() 329 int ret, pkt_size; q6adm_device_open() local
|
| H A D | q6core.c | 159 pkt.hdr.pkt_size = APR_HDR_SIZE; in q6core_get_fwk_versions() 189 pkt.hdr.pkt_size = APR_HDR_SIZE; in q6core_get_svc_versions() 216 pkt.hdr.pkt_size = APR_HDR_SIZE; in __q6core_is_adsp_ready()
|
| H A D | audioreach.c | 210 int pkt_size = GPR_HDR_SIZE + payload_size; in __audioreach_alloc_pkt() local 213 pkt_size += APM_CMD_HDR_SIZE; in __audioreach_alloc_pkt() 215 p = kzalloc(pkt_size, GFP_KERNEL); in __audioreach_alloc_pkt() 222 pkt->hdr.pkt_size = pkt_size; in __audioreach_alloc_pkt() 249 void *audioreach_alloc_apm_pkt(int pkt_size, uint32_t opcode, uint32_t token, uint32_t src_port) in audioreach_alloc_apm_pkt() argument 251 return __audioreach_alloc_pkt(pkt_size, opcode, token, src_port, APM_MODULE_INSTANCE_ID, in audioreach_alloc_apm_pkt() 263 void *audioreach_alloc_apm_cmd_pkt(int pkt_size, uint32_t opcode, uint32_t token) in audioreach_alloc_apm_cmd_pkt() argument 265 return __audioreach_alloc_pkt(pkt_size, opcode, token, GPR_APM_MODULE_IID, in audioreach_alloc_apm_cmd_pkt()
|
| /linux/tools/testing/selftests/drivers/net/ |
| H A D | gro.c | 342 int payload_len, pkt_size, flag, i; in send_flags() local 346 pkt_size = total_hdr_len + payload_len; in send_flags() 361 write_packet(fd, flag_buf, pkt_size, daddr); in send_flags() 520 int pkt_size = total_hdr_len + PAYLOAD_LEN; in send_changed_checksum() local 523 write_packet(fd, buf, pkt_size, daddr); in send_changed_checksum() 527 write_packet(fd, buf, pkt_size, daddr); in send_changed_checksum() 535 int pkt_size = total_hdr_len + PAYLOAD_LEN; in send_changed_seq() local 538 write_packet(fd, buf, pkt_size, daddr); in send_changed_seq() 544 write_packet(fd, buf, pkt_size, daddr); in send_changed_seq() 554 int pkt_size = total_hdr_len + PAYLOAD_LEN + TCPOLEN_TSTAMP_APPA; in send_changed_ts() local [all …]
|
| /linux/tools/testing/selftests/net/forwarding/ |
| H A D | min_max_mtu.sh | 160 local pkt_size=$((mtu - ping_headers_len)) 162 ping_do $h1.10 192.0.2.1 "-s $pkt_size -M do" 163 check_err_fail $should_fail $? "Ping, packet size: $pkt_size" 173 local pkt_size=$((mtu - ping6_headers_len)) 175 ping6_do $h1.10 2001:db8:1::1 "-s $pkt_size -M do" 176 check_err_fail $should_fail $? "Ping6, packet size: $pkt_size"
|
| /linux/drivers/net/ethernet/marvell/ |
| H A D | mvneta_bm.h | 87 #define MVNETA_RX_BUF_SIZE(pkt_size) ((pkt_size) + NET_SKB_PAD) argument 117 int pkt_size; member 146 int pkt_size); 178 int pkt_size) in mvneta_bm_pool_use() argument
|
| /linux/drivers/soc/qcom/ |
| H A D | apr.c | 70 ret = rpmsg_trysend(apr->ch, pkt, hdr->pkt_size); in apr_send_pkt() 73 return ret ? ret : hdr->pkt_size; in apr_send_pkt() 136 ret = rpmsg_trysend(pr->ch, pkt, hdr->pkt_size); in pkt_router_send_svc_pkt() 139 return ret ? ret : hdr->pkt_size; in pkt_router_send_svc_pkt() 213 if (hdr->pkt_size < APR_HDR_SIZE || hdr->pkt_size != len) { in apr_do_rx_callback() 248 resp.payload_size = hdr->pkt_size - hdr_size; in apr_do_rx_callback() 283 if (hdr->pkt_size < GPR_PKT_HEADER_BYTE_SIZE || hdr->pkt_size != len) { in gpr_do_rx_callback() 289 resp.payload_size = hdr->pkt_size - (hdr_size * 4); in gpr_do_rx_callback()
|
| /linux/drivers/input/rmi4/ |
| H A D | rmi_f11.c | 666 sensor->pkt_size = DIV_ROUND_UP(sensor->nbr_fingers, 4); in f11_2d_construct_data() 669 sensor->pkt_size += (sensor->nbr_fingers * 5); in f11_2d_construct_data() 670 sensor->attn_size = sensor->pkt_size; in f11_2d_construct_data() 674 sensor->pkt_size += (sensor->nbr_fingers * 2); in f11_2d_construct_data() 678 sensor->pkt_size += sizeof(u8); in f11_2d_construct_data() 682 sensor->pkt_size += sizeof(u8); in f11_2d_construct_data() 685 sensor->pkt_size += 3; in f11_2d_construct_data() 687 sensor->pkt_size--; in f11_2d_construct_data() 689 sensor->pkt_size--; in f11_2d_construct_data() 693 sensor->pkt_size += in f11_2d_construct_data() [all …]
|
| H A D | rmi_f12.c | 229 int valid_bytes = sensor->pkt_size; in rmi_f12_attention() 242 sensor->data_pkt, sensor->pkt_size); in rmi_f12_attention() 429 sensor->pkt_size = rmi_register_desc_calc_size(&f12->data_reg_desc); in rmi_f12_probe() 443 sensor->pkt_size); in rmi_f12_probe() 444 sensor->data_pkt = devm_kzalloc(&fn->dev, sensor->pkt_size, GFP_KERNEL); in rmi_f12_probe()
|
| /linux/drivers/media/platform/qcom/iris/ |
| H A D | iris_hfi_queue.c | 112 int iris_hfi_queue_cmd_write_locked(struct iris_core *core, void *pkt, u32 pkt_size) in iris_hfi_queue_cmd_write_locked() argument 119 if (!iris_hfi_queue_write(q_info, pkt, pkt_size)) { in iris_hfi_queue_cmd_write_locked() 129 int iris_hfi_queue_cmd_write(struct iris_core *core, void *pkt, u32 pkt_size) in iris_hfi_queue_cmd_write() argument 138 ret = iris_hfi_queue_cmd_write_locked(core, pkt, pkt_size); in iris_hfi_queue_cmd_write() 207 iface_q->qhdr->pkt_size = 0; /* variable packet size */ in iris_hfi_queue_set_header()
|
| /linux/net/sctp/ |
| H A D | output.c | 442 int pkt_count = 0, pkt_size; in sctp_packet_pack() local 452 pkt_size = packet->size; in sctp_packet_pack() 458 pkt_size = packet->overhead; in sctp_packet_pack() 468 else if (pkt_size + padded > tp->pathmtu) in sctp_packet_pack() 470 pkt_size += padded; in sctp_packet_pack() 472 nskb = alloc_skb(pkt_size + MAX_HEADER, gfp); in sctp_packet_pack() 479 pkt_size -= packet->overhead; in sctp_packet_pack() 510 pkt_size -= SCTP_PAD4(chunk->skb->len); in sctp_packet_pack() 515 if (!pkt_size) in sctp_packet_pack()
|
| /linux/drivers/net/ethernet/netronome/nfp/bpf/ |
| H A D | offload.c | 450 u32 pkt_size, data_size, map_id; in nfp_bpf_event_output() local 456 pkt_size = be32_to_cpu(cbe->pkt_size); in nfp_bpf_event_output() 461 if (size_add(pkt_size, data_size) > INT_MAX || in nfp_bpf_event_output() 462 len < sizeof(struct cmsg_bpf_event) + pkt_size + data_size) in nfp_bpf_event_output() 478 &cbe->data[round_up(pkt_size, 4)], data_size, in nfp_bpf_event_output() 479 cbe->data, pkt_size, nfp_bpf_perf_event_copy); in nfp_bpf_event_output()
|
| H A D | fw.h | 122 __be32 pkt_size; member
|
| /linux/include/linux/soc/qcom/ |
| H A D | apr.h | 57 uint16_t pkt_size; member 82 uint32_t pkt_size:24; member
|
| /linux/drivers/net/ethernet/atheros/atlx/ |
| H A D | atl2.h | 223 unsigned pkt_size:11; member 237 unsigned pkt_size:11; member 286 unsigned pkt_size:11; /* packet size, max 2047 bytes */ member
|
| /linux/drivers/net/ethernet/silan/ |
| H A D | sc92031.c | 760 unsigned rx_size, rx_size_align, pkt_size; in _sc92031_rx_tasklet() local 768 pkt_size = rx_size - 4; // Omit the four octet CRC from the length. in _sc92031_rx_tasklet() 788 skb = netdev_alloc_skb_ip_align(dev, pkt_size); in _sc92031_rx_tasklet() 792 dev->name, pkt_size); in _sc92031_rx_tasklet() 796 if ((rx_ring_offset + pkt_size) > RX_BUF_LEN) { in _sc92031_rx_tasklet() 800 pkt_size - (RX_BUF_LEN - rx_ring_offset)); in _sc92031_rx_tasklet() 802 skb_put_data(skb, rx_ring + rx_ring_offset, pkt_size); in _sc92031_rx_tasklet() 808 dev->stats.rx_bytes += pkt_size; in _sc92031_rx_tasklet()
|
| /linux/drivers/staging/greybus/ |
| H A D | camera.c | 227 unsigned int pkt_size; in gb_camera_get_max_pkt_size() local 237 pkt_size = le32_to_cpu(cfg->max_pkt_size); in gb_camera_get_max_pkt_size() 239 if (pkt_size == 0) { in gb_camera_get_max_pkt_size() 246 pkt_size = le16_to_cpu(cfg->width) * fmt_info->bpp / 8; in gb_camera_get_max_pkt_size() 248 if (pkt_size != le32_to_cpu(cfg->max_pkt_size)) { in gb_camera_get_max_pkt_size() 251 i, pkt_size, cfg->max_pkt_size); in gb_camera_get_max_pkt_size() 256 max_pkt_size = max(pkt_size, max_pkt_size); in gb_camera_get_max_pkt_size()
|
| /linux/drivers/net/ethernet/cisco/enic/ |
| H A D | enic_rq.c | 15 static void enic_intr_update_pkt_size(struct vnic_rx_bytes_counter *pkt_size, in enic_intr_update_pkt_size() argument 19 pkt_size->large_pkt_bytes_cnt += pkt_len; in enic_intr_update_pkt_size() 21 pkt_size->small_pkt_bytes_cnt += pkt_len; in enic_intr_update_pkt_size()
|
| /linux/drivers/net/wireless/realtek/rtw88/ |
| H A D | mac.c | 654 u32 pkt_size; in download_firmware_to_mem() local 669 pkt_size = max_size; in download_firmware_to_mem() 671 pkt_size = residue_size; in download_firmware_to_mem() 674 data + mem_offset, pkt_size); in download_firmware_to_mem() 680 dst + mem_offset, pkt_size, in download_firmware_to_mem() 686 mem_offset += pkt_size; in download_firmware_to_mem() 687 residue_size -= pkt_size; in download_firmware_to_mem()
|
| /linux/drivers/net/ethernet/sis/ |
| H A D | sis190.c | 532 struct sk_buff **sk_buff, int pkt_size, in sis190_try_rx_copy() argument 538 if (pkt_size >= rx_copybreak) in sis190_try_rx_copy() 541 skb = netdev_alloc_skb_ip_align(tp->dev, pkt_size); in sis190_try_rx_copy() 547 skb_copy_to_linear_data(skb, sk_buff[0]->data, pkt_size); in sis190_try_rx_copy() 601 int pkt_size = (status & RxSizeMask) - 4; in sis190_rx_interrupt() local 604 if (unlikely(pkt_size > tp->rx_buf_sz)) { in sis190_rx_interrupt() 614 if (sis190_try_rx_copy(tp, &skb, pkt_size, addr)) { in sis190_rx_interrupt() 627 skb_put(skb, pkt_size); in sis190_rx_interrupt() 633 stats->rx_bytes += pkt_size; in sis190_rx_interrupt()
|
| /linux/sound/soc/ti/ |
| H A D | omap-mcbsp.c | 922 int pkt_size = 0; in omap_mcbsp_dai_hw_params() local 967 pkt_size = period_words / divider; in omap_mcbsp_dai_hw_params() 970 pkt_size = channels; in omap_mcbsp_dai_hw_params() 973 latency = (buffer_size - pkt_size) / channels; in omap_mcbsp_dai_hw_params() 978 omap_mcbsp_set_threshold(substream, pkt_size); in omap_mcbsp_dai_hw_params() 981 dma_data->maxburst = pkt_size; in omap_mcbsp_dai_hw_params()
|