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.cpp102 struct ring_buf_cb *rbc; in ring_buffer_init() local
105 rbc = (struct ring_buf_cb *)malloc(sizeof(struct ring_buf_cb)); in ring_buffer_init()
106 if (rbc == NULL) { in ring_buffer_init()
110 memset(rbc, 0, sizeof(struct ring_buf_cb)); in ring_buffer_init()
112 rbc->bufs = (rb_entry_t *)malloc(num_bufs * sizeof(rb_entry_t)); in ring_buffer_init()
113 if (rbc->bufs == NULL) { in ring_buffer_init()
114 free(rbc); in ring_buffer_init()
118 memset(rbc->bufs, 0, (num_bufs * sizeof(rb_entry_t))); in ring_buffer_init()
120 rbc->each_buf_size = size_of_buf; in ring_buffer_init()
121 rbc->max_num_bufs = num_bufs; in ring_buffer_init()
[all …]