Lines Matching refs:mem_array
2470 struct mem_array *mem_arr, *mem_arr_orig; in beiscsi_alloc_mem()
2508 mem_descr->mem_array = NULL; in beiscsi_alloc_mem()
2516 memset(mem_arr, 0, sizeof(struct mem_array) * in beiscsi_alloc_mem()
2545 mem_descr->mem_array = kmalloc_array(j, sizeof(*mem_arr), in beiscsi_alloc_mem()
2547 if (!mem_descr->mem_array) in beiscsi_alloc_mem()
2550 memcpy(mem_descr->mem_array, mem_arr_orig, in beiscsi_alloc_mem()
2551 sizeof(struct mem_array) * j); in beiscsi_alloc_mem()
2561 mem_descr->mem_array[j - 1].size, in beiscsi_alloc_mem()
2562 mem_descr->mem_array[j - 1]. in beiscsi_alloc_mem()
2565 mem_array[j - 1]. in beiscsi_alloc_mem()
2570 kfree(mem_descr->mem_array); in beiscsi_alloc_mem()
2596 (struct pdu_data_out *)mem_descr->mem_array[0].virtual_address; in iscsi_init_global_templates()
2603 (struct pdu_nop_out *)((unsigned char *)mem_descr->mem_array[0]. in iscsi_init_global_templates()
2663 mem_descr_wrbh->mem_array[idx].virtual_address; in beiscsi_init_wrb_handle()
2664 num_cxn_wrbh = ((mem_descr_wrbh->mem_array[idx].size) / in beiscsi_init_wrb_handle()
2690 pwrb = mem_descr_wrb->mem_array[idx].virtual_address; in beiscsi_init_wrb_handle()
2691 num_cxn_wrb = (mem_descr_wrb->mem_array[idx].size) / in beiscsi_init_wrb_handle()
2736 mem_descr->mem_array[0].virtual_address; in hwi_init_async_pdu_ctx()
2752 if (mem_descr->mem_array[0].virtual_address) { in hwi_init_async_pdu_ctx()
2757 mem_descr->mem_array[0]. in hwi_init_async_pdu_ctx()
2768 mem_descr->mem_array[0].virtual_address; in hwi_init_async_pdu_ctx()
2771 mem_descr->mem_array[0]. in hwi_init_async_pdu_ctx()
2778 if (mem_descr->mem_array[0].virtual_address) { in hwi_init_async_pdu_ctx()
2783 mem_descr->mem_array[0]. in hwi_init_async_pdu_ctx()
2792 mem_descr->mem_array[0].virtual_address; in hwi_init_async_pdu_ctx()
2798 if (mem_descr->mem_array[0].virtual_address) { in hwi_init_async_pdu_ctx()
2803 mem_descr->mem_array[0]. in hwi_init_async_pdu_ctx()
2812 mem_descr->mem_array[0].virtual_address; in hwi_init_async_pdu_ctx()
2818 if (mem_descr->mem_array[0].virtual_address) { in hwi_init_async_pdu_ctx()
2823 mem_descr->mem_array[0]. in hwi_init_async_pdu_ctx()
2832 mem_descr->mem_array[0].virtual_address; in hwi_init_async_pdu_ctx()
2838 if (!mem_descr->mem_array[0].virtual_address) in hwi_init_async_pdu_ctx()
2845 mem_descr->mem_array[0].virtual_address; in hwi_init_async_pdu_ctx()
2858 if (mem_descr->mem_array[0].virtual_address) { in hwi_init_async_pdu_ctx()
2863 mem_descr->mem_array[0]. in hwi_init_async_pdu_ctx()
2875 mem_descr->mem_array[idx].virtual_address; in hwi_init_async_pdu_ctx()
2877 mem_descr->mem_array[idx]. in hwi_init_async_pdu_ctx()
2880 num_async_data = ((mem_descr->mem_array[idx].size) / in hwi_init_async_pdu_ctx()
2915 mem_descr->mem_array[idx]. in hwi_init_async_pdu_ctx()
2919 mem_descr->mem_array[idx]. in hwi_init_async_pdu_ctx()
2922 ((mem_descr->mem_array[idx]. in hwi_init_async_pdu_ctx()
2972 struct mem_array *pmem, struct be_dma_mem *sgl) in hwi_build_be_sgl_arr()
2984 struct mem_array *pmem, struct be_dma_mem *sgl) in hwi_build_be_sgl_by_offset()
3158 dq_vaddress = mem_descr->mem_array[idx].virtual_address; in beiscsi_create_def_hdr()
3159 ret = be_fill_queue(dq, mem_descr->mem_array[0].size / in beiscsi_create_def_hdr()
3169 mem->dma = (unsigned long)mem_descr->mem_array[idx]. in beiscsi_create_def_hdr()
3210 dq_vaddress = mem_descr->mem_array[idx].virtual_address; in beiscsi_create_def_data()
3211 ret = be_fill_queue(dataq, mem_descr->mem_array[0].size / in beiscsi_create_def_data()
3222 mem->dma = (unsigned long)mem_descr->mem_array[idx]. in beiscsi_create_def_data()
3252 struct mem_array *pm_arr; in beiscsi_post_template_hdr()
3261 pm_arr = mem_descr->mem_array; in beiscsi_post_template_hdr()
3286 struct mem_array *pm_arr; in beiscsi_post_pages()
3293 pm_arr = mem_descr->mem_array; in beiscsi_post_pages()
3353 struct mem_array *pwrb_arr; in beiscsi_create_wrb_rings()
3373 wrb_vaddr = mem_descr->mem_array[idx].virtual_address; in beiscsi_create_wrb_rings()
3374 pa_addr_lo = mem_descr->mem_array[idx].bus_address.u.a64.address; in beiscsi_create_wrb_rings()
3375 num_wrb_rings = mem_descr->mem_array[idx].size / in beiscsi_create_wrb_rings()
3389 wrb_vaddr = mem_descr->mem_array[idx].virtual_address; in beiscsi_create_wrb_rings()
3390 pa_addr_lo = mem_descr->mem_array[idx]. in beiscsi_create_wrb_rings()
3392 num_wrb_rings = mem_descr->mem_array[idx].size / in beiscsi_create_wrb_rings()
3837 init_mem[HWI_MEM_ADDN_CONTEXT].mem_array[0].virtual_address; in hwi_init_controller()
3876 mem_descr->mem_array[j - 1].size, in beiscsi_free_mem()
3877 mem_descr->mem_array[j - 1].virtual_address, in beiscsi_free_mem()
3878 (unsigned long)mem_descr->mem_array[j - 1]. in beiscsi_free_mem()
3882 kfree(mem_descr->mem_array); in beiscsi_free_mem()
3932 psgl_handle = mem_descr_sglh->mem_array[idx].virtual_address; in beiscsi_init_sgl_handle()
3934 for (i = 0; i < (mem_descr_sglh->mem_array[idx].size / in beiscsi_init_sgl_handle()
3972 pfrag = mem_descr_sg->mem_array[idx].virtual_address; in beiscsi_init_sgl_handle()
3975 i < (mem_descr_sg->mem_array[idx].size) / in beiscsi_init_sgl_handle()