Lines Matching refs:attr_len
355 uint32_t attr_len, uint8_t* p_val) { in SDP_AddAttribute() argument
367 uint32_t len = (attr_len > 200) ? 200 : attr_len; in SDP_AddAttribute()
377 handle, attr_id, attr_type, attr_len, p_val, num_array); in SDP_AddAttribute()
382 handle, attr_id, attr_type, attr_len, p_val, *p_val); in SDP_AddAttribute()
387 handle, attr_id, attr_type, attr_len, p_val, p_val); in SDP_AddAttribute()
419 p_attr->len = attr_len; in SDP_AddAttribute()
421 if (p_rec->free_pad_ptr + attr_len >= SDP_MAX_PAD_LEN) { in SDP_AddAttribute()
426 attr_len, SDP_MAX_PAD_LEN - p_rec->free_pad_ptr); in SDP_AddAttribute()
428 attr_len = SDP_MAX_PAD_LEN - p_rec->free_pad_ptr; in SDP_AddAttribute()
432 attr_len = 0; in SDP_AddAttribute()
435 if ((attr_len > 0) && (p_val != 0)) { in SDP_AddAttribute()
436 p_attr->len = attr_len; in SDP_AddAttribute()
437 memcpy(&p_rec->attr_pad[p_rec->free_pad_ptr], p_val, (size_t)attr_len); in SDP_AddAttribute()
439 p_rec->free_pad_ptr += attr_len; in SDP_AddAttribute()
440 } else if ((attr_len == 0 && in SDP_AddAttribute()
446 attr_id, attr_len); in SDP_AddAttribute()