Home
last modified time | relevance | path

Searched refs:nsh (Results 1 – 2 of 2) sorted by relevance

/linux-4.19.296/include/net/
Dnsh.h260 static inline u16 nsh_hdr_len(const struct nshhdr *nsh) in nsh_hdr_len() argument
262 return ((ntohs(nsh->ver_flags_ttl_len) & NSH_LEN_MASK) in nsh_hdr_len()
266 static inline u8 nsh_get_ver(const struct nshhdr *nsh) in nsh_get_ver() argument
268 return (ntohs(nsh->ver_flags_ttl_len) & NSH_VER_MASK) in nsh_get_ver()
272 static inline u8 nsh_get_flags(const struct nshhdr *nsh) in nsh_get_flags() argument
274 return (ntohs(nsh->ver_flags_ttl_len) & NSH_FLAGS_MASK) in nsh_get_flags()
278 static inline u8 nsh_get_ttl(const struct nshhdr *nsh) in nsh_get_ttl() argument
280 return (ntohs(nsh->ver_flags_ttl_len) & NSH_TTL_MASK) in nsh_get_ttl()
284 static inline void __nsh_set_xflag(struct nshhdr *nsh, u16 xflag, u16 xmask) in __nsh_set_xflag() argument
286 nsh->ver_flags_ttl_len in __nsh_set_xflag()
[all …]
/linux-4.19.296/drivers/bluetooth/
Ddtl1_cs.c97 struct nsh { struct
205 struct nsh *nsh; in dtl1_receive() local
230 nsh = (struct nsh *)info->rx_skb->data; in dtl1_receive()
239 info->rx_count = nsh->len + (nsh->len & 0x0001); in dtl1_receive()
242 hci_skb_pkt_type(info->rx_skb) = nsh->type; in dtl1_receive()
245 if (nsh->len & 0x0001) { in dtl1_receive()
388 struct nsh nsh; in dtl1_hci_send_frame() local
393 nsh.type = 0x81; in dtl1_hci_send_frame()
397 nsh.type = 0x82; in dtl1_hci_send_frame()
401 nsh.type = 0x83; in dtl1_hci_send_frame()
[all …]