/linux/drivers/net/ethernet/netronome/nfp/nfd3/ |
H A D | dp.c | 744 void *data, void *pkt, unsigned int pkt_len, int meta_len) in nfp_nfd3_parse_meta() argument 925 unsigned int meta_len, data_len, meta_off, pkt_len, pkt_off; in nfp_nfd3_rx() local 964 meta_len = rxd->rxd.meta_len_dd & PCIE_DESC_RX_META_LEN_MASK; in nfp_nfd3_rx() 966 pkt_len = data_len - meta_len; in nfp_nfd3_rx() 970 pkt_off += meta_len; in nfp_nfd3_rx() 973 meta_off = pkt_off - meta_len; in nfp_nfd3_rx() 981 if (unlikely(meta_len > NFP_NET_MAX_PREPEND || in nfp_nfd3_rx() 982 (dp->rx_offset && meta_len > dp->rx_offset))) { in nfp_nfd3_rx() 984 meta_len); in nfp_nfd3_rx() 995 } else if (meta_len) { in nfp_nfd3_rx() [all …]
|
H A D | nfd3.h | 93 void *data, void *pkt, unsigned int pkt_len, int meta_len);
|
/linux/tools/testing/selftests/ring-buffer/ |
H A D | map_test.c | 217 unsigned long meta_len, data_len; in TEST_F() local 220 meta_len = desc->meta->meta_page_size; in TEST_F() 225 desc->cpu_fd, meta_len); in TEST_F() 232 desc->cpu_fd, meta_len); in TEST_F() 237 meta_len += desc->meta->subbuf_size * 2; in TEST_F() 239 desc->cpu_fd, meta_len); in TEST_F()
|
/linux/tools/testing/selftests/bpf/progs/ |
H A D | type_cast.c | 21 unsigned int meta_len, frag0_len, kskb_len, kskb2_len; variable 50 meta_len = shared_info->meta_len; in md_skb()
|
/linux/drivers/net/ethernet/netronome/nfp/nfdk/ |
H A D | dp.c | 744 void *data, void *pkt, unsigned int pkt_len, int meta_len) in nfp_nfdk_parse_meta() argument 1047 unsigned int meta_len, data_len, meta_off, pkt_len, pkt_off; in nfp_nfdk_rx() local 1086 meta_len = rxd->rxd.meta_len_dd & PCIE_DESC_RX_META_LEN_MASK; in nfp_nfdk_rx() 1088 pkt_len = data_len - meta_len; in nfp_nfdk_rx() 1092 pkt_off += meta_len; in nfp_nfdk_rx() 1095 meta_off = pkt_off - meta_len; in nfp_nfdk_rx() 1103 if (unlikely(meta_len > NFP_NET_MAX_PREPEND || in nfp_nfdk_rx() 1104 (dp->rx_offset && meta_len > dp->rx_offset))) { in nfp_nfdk_rx() 1106 meta_len); in nfp_nfdk_rx() 1114 if (meta_len) { in nfp_nfdk_rx() [all …]
|
/linux/drivers/gpio/ |
H A D | gpio-sloppy-logic-analyzer.c | 230 unsigned int i, meta_len = 0; in gpio_la_poll_probe() local 274 new_meta = devm_krealloc(dev, meta, meta_len + add_len, GFP_KERNEL); in gpio_la_poll_probe() 279 meta_len += snprintf(meta + meta_len, add_len, "probe%02u=%s\n", in gpio_la_poll_probe() 287 priv->meta.size = meta_len; in gpio_la_poll_probe()
|
/linux/drivers/nvme/host/ |
H A D | ioctl.c | 116 unsigned bufflen, void __user *meta_buffer, unsigned meta_len, in nvme_map_user_request() argument 123 bool has_metadata = meta_buffer && meta_len; in nvme_map_user_request() 155 ret = blk_rq_integrity_map_user(req, meta_buffer, meta_len, in nvme_map_user_request() 173 void __user *meta_buffer, unsigned meta_len, u32 meta_seed, in nvme_submit_user_cmd() argument 190 meta_len, meta_seed, NULL, flags); in nvme_submit_user_cmd() 216 unsigned length, meta_len; in nvme_submit_io() local 243 meta_len = 0; in nvme_submit_io() 246 meta_len = (io.nblocks + 1) * ns->head->ms; in nvme_submit_io() 251 length += meta_len; in nvme_submit_io() 252 meta_len = 0; in nvme_submit_io() [all …]
|
/linux/Documentation/trace/ |
H A D | ring-buffer-map.rst | 68 unsigned long meta_len, data_len; 81 meta_len = meta->meta_page_size; 89 data = mmap(NULL, data_len, PROT_READ, MAP_SHARED, fd, meta_len); 102 munmap(meta, meta_len);
|
/linux/net/psample/ |
H A D | psample.c | 376 int meta_len; in psample_sample_packet() local 384 meta_len = (in_ifindex ? nla_total_size(sizeof(u16)) : 0) + in psample_sample_packet() 401 meta_len += psample_tunnel_meta_len(tun_info); in psample_sample_packet() 405 if (meta_len + nla_total_size(data_len) > PSAMPLE_MAX_PACKET_SIZE) in psample_sample_packet() 406 data_len = PSAMPLE_MAX_PACKET_SIZE - meta_len - NLA_HDRLEN in psample_sample_packet() 409 nl_skb = genlmsg_new(meta_len + nla_total_size(data_len), GFP_ATOMIC); in psample_sample_packet()
|
/linux/net/xdp/ |
H A D | xsk.c | 230 u32 from_len, meta_len, rem, num_desc; in __xsk_rcv() local 236 meta_len = xdp->data - copy_from; in __xsk_rcv() 237 rem = len + meta_len; in __xsk_rcv() 247 memcpy(xsk_xdp->data - meta_len, copy_from, rem); in __xsk_rcv() 277 u32 to_len = frame_size + meta_len; in __xsk_rcv() 281 copy_to = xsk_xdp->data - meta_len; in __xsk_rcv() 287 __xsk_rcv_zc(xs, xskb, copied - meta_len, rem ? XDP_PKT_CONTD : 0); in __xsk_rcv() 288 meta_len = 0; in __xsk_rcv()
|
/linux/tools/testing/selftests/bpf/prog_tests/ |
H A D | type_cast.c | 69 ASSERT_EQ(skel->bss->meta_len, 0, "skb meta_len"); in test_tc()
|
/linux/drivers/net/ethernet/netronome/nfp/flower/ |
H A D | offload.c | 98 u32 meta_len, key_len, mask_len, act_len, tot_len; in nfp_flower_xmit_flow() local 102 meta_len = sizeof(struct nfp_fl_rule_metadata); in nfp_flower_xmit_flow() 107 tot_len = meta_len + key_len + mask_len + act_len; in nfp_flower_xmit_flow() 121 memcpy(msg, &nfp_flow->meta, meta_len); in nfp_flower_xmit_flow() 122 memcpy(&msg[meta_len], nfp_flow->unmasked_data, key_len); in nfp_flower_xmit_flow() 123 memcpy(&msg[meta_len + key_len], nfp_flow->mask_data, mask_len); in nfp_flower_xmit_flow() 124 memcpy(&msg[meta_len + key_len + mask_len], in nfp_flower_xmit_flow()
|
/linux/include/linux/ |
H A D | skbuff.h | 592 __u8 meta_len; member 4361 return skb_shinfo(skb)->meta_len; in skb_metadata_len() 4371 u8 meta_len) in __skb_metadata_differs() argument 4382 switch (meta_len) { in __skb_metadata_differs() 4403 return memcmp(a - meta_len, b - meta_len, meta_len); in __skb_metadata_differs() 4421 static inline void skb_metadata_set(struct sk_buff *skb, u8 meta_len) in skb_metadata_set() argument 4423 skb_shinfo(skb)->meta_len = meta_len; in skb_metadata_set()
|
/linux/net/bpf/ |
H A D | test_run.c | 137 size_t frm_len, meta_len; in xdp_test_run_init_page() local 143 meta_len = orig_ctx->data - orig_ctx->data_meta; in xdp_test_run_init_page() 144 headroom -= meta_len; in xdp_test_run_init_page() 153 new_ctx->data = new_ctx->data_meta + meta_len; in xdp_test_run_init_page()
|
/linux/include/net/ |
H A D | xdp.h | 374 meta_max = type_max(typeof_member(struct skb_shared_info, meta_len)); in xdp_metalen_invalid()
|
/linux/net/core/ |
H A D | skbuff.c | 6138 int mac_len, meta_len; in skb_reorder_vlan_header() local 6152 meta_len = skb_metadata_len(skb); in skb_reorder_vlan_header() 6153 if (meta_len) { in skb_reorder_vlan_header() 6154 meta = skb_metadata_end(skb) - meta_len; in skb_reorder_vlan_header() 6155 memmove(meta + VLAN_HLEN, meta, meta_len); in skb_reorder_vlan_header()
|
/linux/drivers/net/ethernet/xilinx/ |
H A D | xilinx_axienet_main.c | 1118 size_t meta_len, meta_max_len, rx_len; in axienet_dma_rx_cb() local 1125 app_metadata = dmaengine_desc_get_metadata_ptr(skbuf_dma->desc, &meta_len, in axienet_dma_rx_cb()
|