Home
last modified time | relevance | path

Searched refs:tlv (Results 1 – 10 of 10) sorted by relevance

/net/nfc/
Dllcp_commands.c44 static u8 llcp_tlv8(u8 *tlv, u8 type) in llcp_tlv8() argument
46 if (tlv[0] != type || tlv[1] != llcp_tlv_length[tlv[0]]) in llcp_tlv8()
49 return tlv[2]; in llcp_tlv8()
52 static u16 llcp_tlv16(u8 *tlv, u8 type) in llcp_tlv16() argument
54 if (tlv[0] != type || tlv[1] != llcp_tlv_length[tlv[0]]) in llcp_tlv16()
57 return be16_to_cpu(*((__be16 *)(tlv + 2))); in llcp_tlv16()
61 static u8 llcp_tlv_version(u8 *tlv) in llcp_tlv_version() argument
63 return llcp_tlv8(tlv, LLCP_TLV_VERSION); in llcp_tlv_version()
66 static u16 llcp_tlv_miux(u8 *tlv) in llcp_tlv_miux() argument
68 return llcp_tlv16(tlv, LLCP_TLV_MIUX) & 0x7ff; in llcp_tlv_miux()
[all …]
Dllcp_core.c816 u8 *tlv = &skb->data[2], type, length; in nfc_llcp_connect_sn() local
820 type = tlv[0]; in nfc_llcp_connect_sn()
821 length = tlv[1]; in nfc_llcp_connect_sn()
827 return &tlv[2]; in nfc_llcp_connect_sn()
831 tlv += length + 2; in nfc_llcp_connect_sn()
1228 u8 dsap, ssap, *tlv, type, length, tid, sap; in nfc_llcp_recv_snl() local
1247 tlv = &skb->data[LLCP_HEADER_SIZE]; in nfc_llcp_recv_snl()
1253 type = tlv[0]; in nfc_llcp_recv_snl()
1254 length = tlv[1]; in nfc_llcp_recv_snl()
1258 tid = tlv[2]; in nfc_llcp_recv_snl()
[all …]
Dllcp.h51 u8 *tlv; member
/net/tipc/
Dnetlink_compat.c92 struct tlv_desc *tlv = (struct tlv_desc *)skb_tail_pointer(skb); in tipc_add_tlv() local
98 tlv->tlv_type = htons(type); in tipc_add_tlv()
99 tlv->tlv_len = htons(TLV_LENGTH(len)); in tipc_add_tlv()
101 memcpy(TLV_DATA(tlv), data, len); in tipc_add_tlv()
108 struct tlv_desc *tlv = (struct tlv_desc *)skb->data; in tipc_tlv_init() local
110 TLV_SET_LEN(tlv, 0); in tipc_tlv_init()
111 TLV_SET_TYPE(tlv, type); in tipc_tlv_init()
121 struct tlv_desc *tlv; in tipc_tlv_sprintf() local
126 tlv = (struct tlv_desc *)skb->data; in tipc_tlv_sprintf()
127 len = TLV_GET_LEN(tlv); in tipc_tlv_sprintf()
[all …]
/net/sched/
Dact_ife.c53 u32 *tlv = (u32 *)(skbdata); in ife_tlv_meta_encode() local
55 char *dptr = (char *)tlv + NLA_HDRLEN; in ife_tlv_meta_encode()
58 *tlv = htonl(htlv); in ife_tlv_meta_encode()
657 struct meta_tlvhdr *tlv = (struct meta_tlvhdr *)(ifehdr->tlv_data); in tcf_ife_decode() local
678 u8 *tlvdata = (u8 *)tlv; in tcf_ife_decode()
679 u16 mtype = tlv->type; in tcf_ife_decode()
680 u16 mlen = tlv->len; in tcf_ife_decode()
699 tlv = (struct meta_tlvhdr *)tlvdata; in tcf_ife_decode()
Dem_meta.c719 static int meta_var_dump(struct sk_buff *skb, struct meta_value *v, int tlv) in meta_var_dump() argument
722 nla_put(skb, tlv, v->len, (void *) v->val)) in meta_var_dump()
771 static int meta_int_dump(struct sk_buff *skb, struct meta_value *v, int tlv) in meta_int_dump() argument
774 if (nla_put(skb, tlv, sizeof(unsigned long), &v->val)) in meta_int_dump()
777 if (nla_put_u32(skb, tlv, v->val)) in meta_int_dump()
Dematch.c436 int tcf_em_tree_dump(struct sk_buff *skb, struct tcf_ematch_tree *tree, int tlv) in tcf_em_tree_dump() argument
443 top_start = nla_nest_start(skb, tlv); in tcf_em_tree_dump()
/net/atm/
Dmpc.c1340 uint8_t tlv[4 + 1 + 1 + 1 + ATM_ESA_LEN]; in set_mpc_ctrl_addr_rcvd() local
1342 tlv[0] = 00; tlv[1] = 0xa0; tlv[2] = 0x3e; tlv[3] = 0x2a; /* type */ in set_mpc_ctrl_addr_rcvd()
1343 tlv[4] = 1 + 1 + ATM_ESA_LEN; /* length */ in set_mpc_ctrl_addr_rcvd()
1344 tlv[5] = 0x02; /* MPOA client */ in set_mpc_ctrl_addr_rcvd()
1345 tlv[6] = 0x00; /* number of MPS MAC addresses */ in set_mpc_ctrl_addr_rcvd()
1347 memcpy(&tlv[7], mesg->MPS_ctrl, ATM_ESA_LEN); /* MPC ctrl ATM addr */ in set_mpc_ctrl_addr_rcvd()
1352 for (i = 7; i < sizeof(tlv); i++) in set_mpc_ctrl_addr_rcvd()
1353 dprintk_cont(" %02x", tlv[i]); in set_mpc_ctrl_addr_rcvd()
1360 tlv, sizeof(tlv)); in set_mpc_ctrl_addr_rcvd()
Dlec_arpc.h57 struct tlv { struct
/net/ipv6/
Dcalipso.c829 unsigned char *tlv = (unsigned char *)opt; in calipso_tlv_len() local
834 if (tlv[offset] == IPV6_TLV_PAD1) in calipso_tlv_len()
838 tlv_len = tlv[offset + 1] + 2; in calipso_tlv_len()