Lines Matching refs:tlv_offset

1911 necp_buffer_get_tlv_type(u_int8_t *buffer, int tlv_offset)  in necp_buffer_get_tlv_type()  argument
1919 type = (u_int8_t *)((u_int8_t *)buffer + tlv_offset); in necp_buffer_get_tlv_type()
1924 necp_buffer_get_tlv_length(u_int8_t *buffer, int tlv_offset) in necp_buffer_get_tlv_length() argument
1932 length = (u_int32_t *)(void *)((u_int8_t *)buffer + tlv_offset + sizeof(u_int8_t)); in necp_buffer_get_tlv_length()
1937 necp_buffer_get_tlv_value(u_int8_t *buffer, int tlv_offset, u_int32_t *value_size) in necp_buffer_get_tlv_value() argument
1940 u_int32_t length = necp_buffer_get_tlv_length(buffer, tlv_offset); in necp_buffer_get_tlv_value()
1949 value = (u_int8_t *)((u_int8_t *)buffer + tlv_offset + sizeof(u_int8_t) + sizeof(u_int32_t)); in necp_buffer_get_tlv_value()
2013 int tlv_offset, u_int32_t out_buffer_length, void *out_buffer, u_int32_t *value_size) in necp_get_tlv_at_offset() argument
2023 if (tlv_offset + sizeof(u_int8_t) + sizeof(u_int32_t) > buffer_length) { in necp_get_tlv_at_offset()
2025 buffer_length, tlv_offset + sizeof(u_int8_t) + sizeof(u_int32_t)); in necp_get_tlv_at_offset()
2030 u_int32_t tlv_length = necp_buffer_get_tlv_length(buffer, tlv_offset); in necp_get_tlv_at_offset()
2031 if (tlv_length > buffer_length - (tlv_offset + sizeof(u_int8_t) + sizeof(u_int32_t))) { in necp_get_tlv_at_offset()
2033 tlv_length, buffer_length, tlv_offset + sizeof(u_int8_t) + sizeof(u_int32_t) + tlv_length); in necp_get_tlv_at_offset()
2046 u_int8_t *tlv_value = necp_buffer_get_tlv_value(buffer, tlv_offset, NULL); in necp_get_tlv_at_offset()
2070 int tlv_offset = necp_find_tlv(buffer, buffer_length, offset, type, &error, 0); in necp_get_tlv() local
2071 if (tlv_offset < 0) { in necp_get_tlv()
2075 return necp_get_tlv_at_offset(buffer, buffer_length, tlv_offset, buff_len, buff, value_size); in necp_get_tlv()