| /net/nfc/ |
| A D | llcp_commands.c | 34 if (tlv[0] != type || tlv[1] != llcp_tlv_length[tlv[0]]) in llcp_tlv8() 37 return tlv[2]; in llcp_tlv8() 42 if (tlv[0] != type || tlv[1] != llcp_tlv_length[tlv[0]]) in llcp_tlv16() 81 u8 *tlv, length; in nfc_llcp_build_tlv() local 96 if (tlv == NULL) in nfc_llcp_build_tlv() 97 return tlv; in nfc_llcp_build_tlv() 99 tlv[0] = type; in nfc_llcp_build_tlv() 100 tlv[1] = length; in nfc_llcp_build_tlv() 103 return tlv; in nfc_llcp_build_tlv() 204 type = tlv[0]; in nfc_llcp_parse_gb_tlv() [all …]
|
| A D | llcp_core.c | 854 type = tlv[0]; in nfc_llcp_connect_sn() 855 length = tlv[1]; in nfc_llcp_connect_sn() 861 return &tlv[2]; in nfc_llcp_connect_sn() 865 tlv += length + 2; in nfc_llcp_connect_sn() 1274 const u8 *tlv; in nfc_llcp_recv_snl() local 1299 type = tlv[0]; in nfc_llcp_recv_snl() 1300 length = tlv[1]; in nfc_llcp_recv_snl() 1304 tid = tlv[2]; in nfc_llcp_recv_snl() 1373 if (sdp->tid != tlv[2]) in nfc_llcp_recv_snl() 1376 sdp->sap = tlv[3]; in nfc_llcp_recv_snl() [all …]
|
| A D | llcp.h | 38 u8 *tlv; member
|
| /net/ife/ |
| A D | ife.c | 102 const struct meta_tlvhdr *tlv; in __ife_tlv_meta_valid() local 108 tlv = (const struct meta_tlvhdr *)skbdata; in __ife_tlv_meta_valid() 109 tlvlen = ntohs(tlv->len); in __ife_tlv_meta_valid() 130 struct meta_tlvhdr *tlv; in ife_tlv_meta_decode() local 135 tlv = (struct meta_tlvhdr *)skbdata; in ife_tlv_meta_decode() 136 *dlen = ntohs(tlv->len) - NLA_HDRLEN; in ife_tlv_meta_decode() 137 *attrtype = ntohs(tlv->type); in ife_tlv_meta_decode() 149 u16 tlvlen = ntohs(tlv->len); in ife_tlv_meta_next() 161 __be32 *tlv = (__be32 *) (skbdata); in ife_tlv_meta_encode() local 163 char *dptr = (char *) tlv + NLA_HDRLEN; in ife_tlv_meta_encode() [all …]
|
| /net/ipv6/ |
| A D | seg6_hmac.c | 93 struct sr6_tlv_hmac *tlv; in seg6_get_tlv_hmac() local 101 tlv = (struct sr6_tlv_hmac *) in seg6_get_tlv_hmac() 104 if (tlv->tlvhdr.type != SR6_TLV_HMAC || tlv->tlvhdr.len != 38) in seg6_get_tlv_hmac() 107 return tlv; in seg6_get_tlv_hmac() 250 struct sr6_tlv_hmac *tlv; in seg6_hmac_validate_skb() local 259 tlv = seg6_get_tlv_hmac(srh); in seg6_hmac_validate_skb() 263 if (require_hmac > 0 && !tlv) in seg6_hmac_validate_skb() 271 if (require_hmac == 0 && !tlv) in seg6_hmac_validate_skb() 340 struct sr6_tlv_hmac *tlv; in seg6_push_hmac() local 343 tlv = seg6_get_tlv_hmac(srh); in seg6_push_hmac() [all …]
|
| A D | seg6.c | 57 struct sr6_tlv *tlv; in seg6_validate_srh() local 60 if (trailing < sizeof(*tlv)) in seg6_validate_srh() 63 tlv = (struct sr6_tlv *)((unsigned char *)srh + tlv_offset); in seg6_validate_srh() 64 tlv_len = sizeof(*tlv) + tlv->len; in seg6_validate_srh()
|
| A D | calipso.c | 807 unsigned char *tlv = (unsigned char *)opt; in calipso_tlv_len() local 812 if (tlv[offset] == IPV6_TLV_PAD1) in calipso_tlv_len() 816 tlv_len = tlv[offset + 1] + 2; in calipso_tlv_len()
|
| /net/tipc/ |
| A D | netlink_compat.c | 105 memset(tlv, 0, TLV_SPACE(len)); in tipc_add_tlv() 106 tlv->tlv_type = htons(type); in tipc_add_tlv() 107 tlv->tlv_len = htons(TLV_LENGTH(len)); in tipc_add_tlv() 109 memcpy(TLV_DATA(tlv), data, len); in tipc_add_tlv() 118 TLV_SET_LEN(tlv, 0); in tipc_tlv_init() 119 TLV_SET_TYPE(tlv, type); in tipc_tlv_init() 130 struct tlv_desc *tlv; in tipc_tlv_sprintf() local 135 tlv = (struct tlv_desc *)skb->data; in tipc_tlv_sprintf() 136 len = TLV_GET_LEN(tlv); in tipc_tlv_sprintf() 137 buf = TLV_DATA(tlv) + len; in tipc_tlv_sprintf() [all …]
|
| /net/bluetooth/ |
| A D | mgmt_config.c | 125 #define TLV_GET_LE16(tlv) le16_to_cpu(*((__le16 *)(TO_TLV(tlv)->value))) argument 126 #define TLV_GET_U8(tlv) (*((__u8 *)(TO_TLV(tlv)->value))) argument
|
| /net/hsr/ |
| A D | hsr_forward.c | 76 if (hsr_sup_tag->tlv.HSR_TLV_type != HSR_TLV_ANNOUNCE && in is_supervision_frame() 77 hsr_sup_tag->tlv.HSR_TLV_type != HSR_TLV_LIFE_CHECK && in is_supervision_frame() 78 hsr_sup_tag->tlv.HSR_TLV_type != PRP_TLV_LIFE_CHECK_DD && in is_supervision_frame() 79 hsr_sup_tag->tlv.HSR_TLV_type != PRP_TLV_LIFE_CHECK_DA) in is_supervision_frame() 81 if (hsr_sup_tag->tlv.HSR_TLV_length != 12 && in is_supervision_frame() 82 hsr_sup_tag->tlv.HSR_TLV_length != sizeof(struct hsr_sup_payload)) in is_supervision_frame() 86 total_length += hsr_sup_tag->tlv.HSR_TLV_length; in is_supervision_frame()
|
| A D | hsr_device.c | 333 hsr_stag->tlv.HSR_TLV_type = type; in send_hsr_supervision_frame() 335 hsr_stag->tlv.HSR_TLV_length = hsr->prot_version ? in send_hsr_supervision_frame() 387 hsr_stag->tlv.HSR_TLV_type = PRP_TLV_LIFE_CHECK_DD; in send_prp_supervision_frame() 388 hsr_stag->tlv.HSR_TLV_length = sizeof(struct hsr_sup_payload); in send_prp_supervision_frame()
|
| A D | hsr_main.h | 96 struct hsr_sup_tlv tlv; member
|
| /net/atm/ |
| A D | mpc.c | 1342 uint8_t tlv[4 + 1 + 1 + 1 + ATM_ESA_LEN]; in set_mpc_ctrl_addr_rcvd() local 1344 tlv[0] = 00; tlv[1] = 0xa0; tlv[2] = 0x3e; tlv[3] = 0x2a; /* type */ in set_mpc_ctrl_addr_rcvd() 1345 tlv[4] = 1 + 1 + ATM_ESA_LEN; /* length */ in set_mpc_ctrl_addr_rcvd() 1346 tlv[5] = 0x02; /* MPOA client */ in set_mpc_ctrl_addr_rcvd() 1347 tlv[6] = 0x00; /* number of MPS MAC addresses */ in set_mpc_ctrl_addr_rcvd() 1349 memcpy(&tlv[7], mesg->MPS_ctrl, ATM_ESA_LEN); /* MPC ctrl ATM addr */ in set_mpc_ctrl_addr_rcvd() 1354 for (i = 7; i < sizeof(tlv); i++) in set_mpc_ctrl_addr_rcvd() 1355 dprintk_cont(" %02x", tlv[i]); in set_mpc_ctrl_addr_rcvd() 1362 tlv, sizeof(tlv)); in set_mpc_ctrl_addr_rcvd()
|
| A D | lec_arpc.h | 58 struct tlv { struct
|
| /net/sched/ |
| A D | em_meta.c | 720 static int meta_var_dump(struct sk_buff *skb, struct meta_value *v, int tlv) in meta_var_dump() argument 723 nla_put(skb, tlv, v->len, (void *) v->val)) in meta_var_dump() 772 static int meta_int_dump(struct sk_buff *skb, struct meta_value *v, int tlv) in meta_int_dump() argument 775 if (nla_put(skb, tlv, sizeof(unsigned long), &v->val)) in meta_int_dump() 778 if (nla_put_u32(skb, tlv, v->val)) in meta_int_dump()
|
| A D | ematch.c | 437 int tcf_em_tree_dump(struct sk_buff *skb, struct tcf_ematch_tree *tree, int tlv) in tcf_em_tree_dump() argument 444 top_start = nla_nest_start_noflag(skb, tlv); in tcf_em_tree_dump()
|