Home
last modified time | relevance | path

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

/hardware/qcom/wlan/qcwcn/wifi_hal/
Dring_buffer.cpp101 struct ring_buf_cb *rbc; in ring_buffer_init() local
104 rbc = (struct ring_buf_cb *)malloc(sizeof(struct ring_buf_cb)); in ring_buffer_init()
105 if (rbc == NULL) { in ring_buffer_init()
109 memset(rbc, 0, sizeof(struct ring_buf_cb)); in ring_buffer_init()
111 rbc->bufs = (rb_entry_t *)malloc(num_bufs * sizeof(rb_entry_t)); in ring_buffer_init()
112 if (rbc->bufs == NULL) { in ring_buffer_init()
113 free(rbc); in ring_buffer_init()
117 memset(rbc->bufs, 0, (num_bufs * sizeof(rb_entry_t))); in ring_buffer_init()
119 rbc->each_buf_size = size_of_buf; in ring_buffer_init()
120 rbc->max_num_bufs = num_bufs; in ring_buffer_init()
[all …]