Lines Matching refs:mem_array
2454 struct mem_array *mem_arr, *mem_arr_orig; in beiscsi_alloc_mem()
2492 mem_descr->mem_array = NULL; in beiscsi_alloc_mem()
2500 memset(mem_arr, 0, sizeof(struct mem_array) * in beiscsi_alloc_mem()
2529 mem_descr->mem_array = kmalloc_array(j, sizeof(*mem_arr), in beiscsi_alloc_mem()
2531 if (!mem_descr->mem_array) in beiscsi_alloc_mem()
2534 memcpy(mem_descr->mem_array, mem_arr_orig, in beiscsi_alloc_mem()
2535 sizeof(struct mem_array) * j); in beiscsi_alloc_mem()
2545 mem_descr->mem_array[j - 1].size, in beiscsi_alloc_mem()
2546 mem_descr->mem_array[j - 1]. in beiscsi_alloc_mem()
2549 mem_array[j - 1]. in beiscsi_alloc_mem()
2554 kfree(mem_descr->mem_array); in beiscsi_alloc_mem()
2580 (struct pdu_data_out *)mem_descr->mem_array[0].virtual_address; in iscsi_init_global_templates()
2587 (struct pdu_nop_out *)((unsigned char *)mem_descr->mem_array[0]. in iscsi_init_global_templates()
2647 mem_descr_wrbh->mem_array[idx].virtual_address; in beiscsi_init_wrb_handle()
2648 num_cxn_wrbh = ((mem_descr_wrbh->mem_array[idx].size) / in beiscsi_init_wrb_handle()
2674 pwrb = mem_descr_wrb->mem_array[idx].virtual_address; in beiscsi_init_wrb_handle()
2675 num_cxn_wrb = (mem_descr_wrb->mem_array[idx].size) / in beiscsi_init_wrb_handle()
2720 mem_descr->mem_array[0].virtual_address; in hwi_init_async_pdu_ctx()
2736 if (mem_descr->mem_array[0].virtual_address) { in hwi_init_async_pdu_ctx()
2741 mem_descr->mem_array[0]. in hwi_init_async_pdu_ctx()
2752 mem_descr->mem_array[0].virtual_address; in hwi_init_async_pdu_ctx()
2755 mem_descr->mem_array[0]. in hwi_init_async_pdu_ctx()
2762 if (mem_descr->mem_array[0].virtual_address) { in hwi_init_async_pdu_ctx()
2767 mem_descr->mem_array[0]. in hwi_init_async_pdu_ctx()
2776 mem_descr->mem_array[0].virtual_address; in hwi_init_async_pdu_ctx()
2782 if (mem_descr->mem_array[0].virtual_address) { in hwi_init_async_pdu_ctx()
2787 mem_descr->mem_array[0]. in hwi_init_async_pdu_ctx()
2796 mem_descr->mem_array[0].virtual_address; in hwi_init_async_pdu_ctx()
2802 if (mem_descr->mem_array[0].virtual_address) { in hwi_init_async_pdu_ctx()
2807 mem_descr->mem_array[0]. in hwi_init_async_pdu_ctx()
2816 mem_descr->mem_array[0].virtual_address; in hwi_init_async_pdu_ctx()
2822 if (!mem_descr->mem_array[0].virtual_address) in hwi_init_async_pdu_ctx()
2829 mem_descr->mem_array[0].virtual_address; in hwi_init_async_pdu_ctx()
2842 if (mem_descr->mem_array[0].virtual_address) { in hwi_init_async_pdu_ctx()
2847 mem_descr->mem_array[0]. in hwi_init_async_pdu_ctx()
2859 mem_descr->mem_array[idx].virtual_address; in hwi_init_async_pdu_ctx()
2861 mem_descr->mem_array[idx]. in hwi_init_async_pdu_ctx()
2864 num_async_data = ((mem_descr->mem_array[idx].size) / in hwi_init_async_pdu_ctx()
2899 mem_descr->mem_array[idx]. in hwi_init_async_pdu_ctx()
2903 mem_descr->mem_array[idx]. in hwi_init_async_pdu_ctx()
2906 ((mem_descr->mem_array[idx]. in hwi_init_async_pdu_ctx()
2956 struct mem_array *pmem, struct be_dma_mem *sgl) in hwi_build_be_sgl_arr()
2968 struct mem_array *pmem, struct be_dma_mem *sgl) in hwi_build_be_sgl_by_offset()
3145 dq_vaddress = mem_descr->mem_array[idx].virtual_address; in beiscsi_create_def_hdr()
3146 ret = be_fill_queue(dq, mem_descr->mem_array[0].size / in beiscsi_create_def_hdr()
3156 mem->dma = (unsigned long)mem_descr->mem_array[idx]. in beiscsi_create_def_hdr()
3197 dq_vaddress = mem_descr->mem_array[idx].virtual_address; in beiscsi_create_def_data()
3198 ret = be_fill_queue(dataq, mem_descr->mem_array[0].size / in beiscsi_create_def_data()
3209 mem->dma = (unsigned long)mem_descr->mem_array[idx]. in beiscsi_create_def_data()
3239 struct mem_array *pm_arr; in beiscsi_post_template_hdr()
3248 pm_arr = mem_descr->mem_array; in beiscsi_post_template_hdr()
3273 struct mem_array *pm_arr; in beiscsi_post_pages()
3280 pm_arr = mem_descr->mem_array; in beiscsi_post_pages()
3340 struct mem_array *pwrb_arr; in beiscsi_create_wrb_rings()
3360 wrb_vaddr = mem_descr->mem_array[idx].virtual_address; in beiscsi_create_wrb_rings()
3361 pa_addr_lo = mem_descr->mem_array[idx].bus_address.u.a64.address; in beiscsi_create_wrb_rings()
3362 num_wrb_rings = mem_descr->mem_array[idx].size / in beiscsi_create_wrb_rings()
3376 wrb_vaddr = mem_descr->mem_array[idx].virtual_address; in beiscsi_create_wrb_rings()
3377 pa_addr_lo = mem_descr->mem_array[idx].\ in beiscsi_create_wrb_rings()
3379 num_wrb_rings = mem_descr->mem_array[idx].size / in beiscsi_create_wrb_rings()
3825 init_mem[HWI_MEM_ADDN_CONTEXT].mem_array[0].virtual_address; in hwi_init_controller()
3866 mem_descr->mem_array[j - 1].size, in beiscsi_free_mem()
3867 mem_descr->mem_array[j - 1].virtual_address, in beiscsi_free_mem()
3868 (unsigned long)mem_descr->mem_array[j - 1]. in beiscsi_free_mem()
3872 kfree(mem_descr->mem_array); in beiscsi_free_mem()
3922 psgl_handle = mem_descr_sglh->mem_array[idx].virtual_address; in beiscsi_init_sgl_handle()
3924 for (i = 0; i < (mem_descr_sglh->mem_array[idx].size / in beiscsi_init_sgl_handle()
3962 pfrag = mem_descr_sg->mem_array[idx].virtual_address; in beiscsi_init_sgl_handle()
3965 i < (mem_descr_sg->mem_array[idx].size) / in beiscsi_init_sgl_handle()