/kernel/linux/linux-5.10/include/net/ |
D | erspan.h | 141 static inline void set_hwid(struct erspan_md2 *md2, u8 hwid) in set_hwid() argument 143 md2->hwid = hwid & 0xf; in set_hwid() 144 md2->hwid_upper = (hwid >> 4) & 0x3; in set_hwid() 147 static inline u8 get_hwid(const struct erspan_md2 *md2) in get_hwid() argument 149 return (md2->hwid_upper << 4) + md2->hwid; in get_hwid() 270 struct erspan_md2 *md2; in erspan_build_header_v2() local 307 md2 = (struct erspan_md2 *)(ershdr + 1); in erspan_build_header_v2() 308 md2->timestamp = erspan_get_timestamp(); in erspan_build_header_v2() 309 md2->sgt = htons(sgt); in erspan_build_header_v2() 310 md2->p = 1; in erspan_build_header_v2() [all …]
|
D | nsh.h | 215 struct nsh_md2_tlv md2; member
|
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/progs/ |
D | test_tunnel_kern.c | 157 md.u.md2.dir = direction; in _erspan_set_tunnel() 158 md.u.md2.hwid = hwid & 0xf; in _erspan_set_tunnel() 159 md.u.md2.hwid_upper = (hwid >> 4) & 0x3; in _erspan_set_tunnel() 204 md.u.md2.dir, in _erspan_get_tunnel() 205 (md.u.md2.hwid_upper << 4) + md.u.md2.hwid, in _erspan_get_tunnel() 206 bpf_ntohl(md.u.md2.timestamp)); in _erspan_get_tunnel() 242 md.u.md2.dir = direction; in _ip4ip6erspan_set_tunnel() 243 md.u.md2.hwid = hwid & 0xf; in _ip4ip6erspan_set_tunnel() 244 md.u.md2.hwid_upper = (hwid >> 4) & 0x3; in _ip4ip6erspan_set_tunnel() 290 md.u.md2.dir, in _ip4ip6erspan_get_tunnel() [all …]
|
/kernel/linux/linux-5.10/drivers/net/wan/ |
D | hd64572.c | 371 u8 md2 = sca_in(msci + MD2, card); in sca_set_port() local 412 md2 |= MD2_LOOPBACK; in sca_set_port() 414 md2 &= ~MD2_LOOPBACK; in sca_set_port() 416 sca_out(md2, msci + MD2, card); in sca_set_port() 426 u8 md0, md2; in sca_open() local 429 case ENCODING_NRZ: md2 = MD2_NRZ; break; in sca_open() 430 case ENCODING_NRZI: md2 = MD2_NRZI; break; in sca_open() 431 case ENCODING_FM_MARK: md2 = MD2_FM_MARK; break; in sca_open() 432 case ENCODING_FM_SPACE: md2 = MD2_FM_SPACE; break; in sca_open() 433 default: md2 = MD2_MANCHESTER; in sca_open() [all …]
|
D | hd64570.c | 408 u8 md2 = sca_in(msci + MD2, card); in sca_set_port() local 448 md2 |= MD2_LOOPBACK; in sca_set_port() 450 md2 &= ~MD2_LOOPBACK; in sca_set_port() 452 sca_out(md2, msci + MD2, card); in sca_set_port() 462 u8 md0, md2; in sca_open() local 465 case ENCODING_NRZ: md2 = MD2_NRZ; break; in sca_open() 466 case ENCODING_NRZI: md2 = MD2_NRZI; break; in sca_open() 467 case ENCODING_FM_MARK: md2 = MD2_FM_MARK; break; in sca_open() 468 case ENCODING_FM_SPACE: md2 = MD2_FM_SPACE; break; in sca_open() 469 default: md2 = MD2_MANCHESTER; in sca_open() [all …]
|
/kernel/linux/linux-5.10/tools/include/uapi/linux/ |
D | erspan.h | 48 struct erspan_md2 md2; /* Version 2 (type III) */ member
|
/kernel/linux/patches/linux-4.19/prebuilts/usr/include/linux/ |
D | erspan.h | 37 struct erspan_md2 md2; member
|
/kernel/linux/linux-5.10/include/uapi/linux/ |
D | erspan.h | 48 struct erspan_md2 md2; /* Version 2 (type III) */ member
|
/kernel/linux/patches/linux-5.10/prebuilts/usr/include/linux/ |
D | erspan.h | 40 struct erspan_md2 md2; member
|
/kernel/linux/linux-5.10/net/netfilter/ |
D | nft_tunnel.c | 292 set_hwid(&opts->u.erspan.u.md2, hwid); in nft_tunnel_obj_erspan_init() 293 opts->u.erspan.u.md2.dir = dir; in nft_tunnel_obj_erspan_init() 581 get_hwid(&opts->u.erspan.u.md2)) || in nft_tunnel_opts_dump() 583 opts->u.erspan.u.md2.dir)) in nft_tunnel_opts_dump()
|
/kernel/linux/linux-5.10/net/sched/ |
D | act_tunnel_key.c | 209 md->u.md2.dir = nla_get_u8(nla); in tunnel_key_copy_erspan_opt() 211 set_hwid(&md->u.md2, nla_get_u8(nla)); in tunnel_key_copy_erspan_opt() 637 md->u.md2.dir) || in tunnel_key_erspan_opts_dump() 639 get_hwid(&md->u.md2)))) in tunnel_key_erspan_opts_dump()
|
D | cls_flower.c | 1247 md->u.md2.dir = nla_get_u8(nla); in fl_set_erspan_opt() 1251 set_hwid(&md->u.md2, nla_get_u8(nla)); in fl_set_erspan_opt() 2729 md->u.md2.dir) || in fl_dump_key_erspan_opt() 2731 get_hwid(&md->u.md2)))) in fl_dump_key_erspan_opt()
|
/kernel/linux/linux-5.10/net/ipv4/ |
D | ip_tunnel_core.c | 581 md->u.md2.dir = nla_get_u8(attr); in ip_tun_parse_opts_erspan() 583 set_hwid(&md->u.md2, nla_get_u8(attr)); in ip_tun_parse_opts_erspan() 805 (nla_put_u8(skb, LWTUNNEL_IP_OPT_ERSPAN_DIR, md->u.md2.dir) || in ip_tun_fill_encap_opts_erspan() 807 get_hwid(&md->u.md2)))) in ip_tun_fill_encap_opts_erspan()
|
D | ip_gre.c | 269 struct erspan_md2 *md2; in erspan_rcv() local 329 md2 = &md->u.md2; in erspan_rcv() 330 memcpy(md2, pkt_md, ver == 1 ? ERSPAN_V1_MDSIZE : in erspan_rcv() 570 md->u.md2.dir, in erspan_fb_xmit() 571 get_hwid(&md->u.md2), in erspan_fb_xmit()
|
/kernel/linux/linux-5.10/net/ipv6/ |
D | ip6_gre.c | 532 struct erspan_md2 *md2; in ip6erspan_rcv() local 582 md2 = &md->u.md2; in ip6erspan_rcv() 583 memcpy(md2, pkt_md, ver == 1 ? ERSPAN_V1_MDSIZE : in ip6erspan_rcv() 1012 md->u.md2.dir, in ip6erspan_tunnel_xmit() 1013 get_hwid(&md->u.md2), in ip6erspan_tunnel_xmit()
|
/kernel/liteos_a/lib/libmbedtls/ |
D | BUILD.gn | 70 "$LITEOSTHIRDPARTY/mbedtls/library/md2.c",
|
/kernel/linux/linux-5.10/Documentation/admin-guide/ |
D | md.rst | 36 2 md2
|
/kernel/linux/linux-5.10/net/openvswitch/ |
D | flow_netlink.c | 1321 memcpy(&nh->md2, nla_data(a), mdlen); in nsh_hdr_from_nlattr()
|