Lines Matching refs:idx

57 			u_int32_t req_id, u_int32_t idx, u_int32_t num_units,  in init_deinit_alloc_host_mem_chunk()  argument
88 info->mem_chunks[idx].vaddr = NULL; in init_deinit_alloc_host_mem_chunk()
90 while (!info->mem_chunks[idx].vaddr && num_units) { in init_deinit_alloc_host_mem_chunk()
91 info->mem_chunks[idx].vaddr = qdf_mem_alloc_consistent(qdf_dev, in init_deinit_alloc_host_mem_chunk()
93 if (!info->mem_chunks[idx].vaddr) { in init_deinit_alloc_host_mem_chunk()
98 idx); in init_deinit_alloc_host_mem_chunk()
104 info->mem_chunks[idx].paddr = paddr; in init_deinit_alloc_host_mem_chunk()
105 info->mem_chunks[idx].len = num_units*unit_len; in init_deinit_alloc_host_mem_chunk()
106 info->mem_chunks[idx].req_id = req_id; in init_deinit_alloc_host_mem_chunk()
110 req_id, idx, num_units, unit_len); in init_deinit_alloc_host_mem_chunk()
140 uint32_t idx; in init_deinit_alloc_host_mem() local
146 idx = info->num_mem_chunks; in init_deinit_alloc_host_mem()
150 if (idx == MAX_MEM_CHUNKS) { in init_deinit_alloc_host_mem()
157 info->num_mem_chunks = idx; in init_deinit_alloc_host_mem()
164 psoc, tgt_hdl, req_id, idx, in init_deinit_alloc_host_mem()
169 psoc, tgt_hdl, req_id, idx, in init_deinit_alloc_host_mem()
177 info->num_mem_chunks = idx; in init_deinit_alloc_host_mem()
181 ++idx; in init_deinit_alloc_host_mem()
183 info->num_mem_chunks = idx; in init_deinit_alloc_host_mem()
193 uint32_t idx; in init_deinit_free_num_units() local
212 for (idx = 0; idx < info->num_mem_chunks; idx++) { in init_deinit_free_num_units()
215 info->mem_chunks[idx].len, in init_deinit_free_num_units()
216 info->mem_chunks[idx].vaddr, in init_deinit_free_num_units()
217 info->mem_chunks[idx].paddr, in init_deinit_free_num_units()
219 (&info->mem_chunks[idx]), memctx)); in init_deinit_free_num_units()
221 info->mem_chunks[idx].vaddr = NULL; in init_deinit_free_num_units()
222 info->mem_chunks[idx].paddr = 0; in init_deinit_free_num_units()
223 info->mem_chunks[idx].len = 0; in init_deinit_free_num_units()
239 uint32_t idx; in init_deinit_handle_host_mem_req() local
264 for (idx = 0; idx < num_mem_reqs; idx++) { in init_deinit_handle_host_mem_req()
268 info->wlan_res_cfg.num_peers, i, idx); in init_deinit_handle_host_mem_req()