Searched refs:tci (Results 1 – 6 of 6) sorted by relevance
/Zephyr-Core-3.7.0/include/zephyr/net/ |
D | ethernet_vlan.h | 41 static inline uint16_t net_eth_vlan_get_vid(uint16_t tci) in net_eth_vlan_get_vid() argument 43 return tci & 0x0fff; in net_eth_vlan_get_vid() 53 static inline uint8_t net_eth_vlan_get_dei(uint16_t tci) in net_eth_vlan_get_dei() argument 55 return (tci >> 12) & 0x01; in net_eth_vlan_get_dei() 65 static inline uint8_t net_eth_vlan_get_pcp(uint16_t tci) in net_eth_vlan_get_pcp() argument 67 return (tci >> 13) & 0x07; in net_eth_vlan_get_pcp() 78 static inline uint16_t net_eth_vlan_set_vid(uint16_t tci, uint16_t vid) in net_eth_vlan_set_vid() argument 80 return (tci & 0xf000) | (vid & 0x0fff); in net_eth_vlan_set_vid() 91 static inline uint16_t net_eth_vlan_set_dei(uint16_t tci, bool dei) in net_eth_vlan_set_dei() argument 93 return (tci & 0xefff) | ((!!dei) << 12); in net_eth_vlan_set_dei() [all …]
|
D | net_pkt.h | 1002 static inline void net_pkt_set_vlan_tci(struct net_pkt *pkt, uint16_t tci) in net_pkt_set_vlan_tci() argument 1004 pkt->vlan_tci = tci; in net_pkt_set_vlan_tci() 1052 static inline void net_pkt_set_vlan_tci(struct net_pkt *pkt, uint16_t tci) in net_pkt_set_vlan_tci() argument 1055 ARG_UNUSED(tci); in net_pkt_set_vlan_tci()
|
D | ethernet.h | 730 uint16_t tci; /* tag control info */ member
|
/Zephyr-Core-3.7.0/tests/net/vlan/src/ |
D | main.c | 148 net_eth_vlan_get_vid(ntohs(hdr->vlan.tci)), in eth_tx() 431 uint16_t tci; in ZTEST() local 510 tci = 0U; in ZTEST() 514 tci = net_eth_vlan_set_vid(tci, tag); in ZTEST() 515 tci = net_eth_vlan_set_pcp(tci, priority); in ZTEST() 517 zassert_equal(tag, net_eth_vlan_get_vid(tci), "Invalid VLAN tag"); in ZTEST() 518 zassert_equal(priority, net_eth_vlan_get_pcp(tci), in ZTEST()
|
/Zephyr-Core-3.7.0/subsys/net/l2/ethernet/ |
D | ethernet.c | 99 #define print_vlan_ll_addrs(pkt, type, tci, len, src, dst, tagstrip) \ argument 113 type, net_eth_vlan_get_vid(tci), \ 115 net_eth_vlan_get_pcp(tci), (size_t)len); \ 278 net_pkt_set_vlan_tci(pkt, ntohs(hdr_vlan->vlan.tci)); in ethernet_recv() 549 hdr_vlan->vlan.tci = htons(net_pkt_vlan_tci(pkt)); in ethernet_fill_header()
|
/Zephyr-Core-3.7.0/drivers/net/ |
D | slip.c | 174 net_pkt_set_vlan_tci(pkt, ntohs(hdr_vlan->vlan.tci)); in process_msg()
|