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()
2737 mem_descr->mem_array[0].virtual_address; in hwi_init_async_pdu_ctx()
2753 if (mem_descr->mem_array[0].virtual_address) { in hwi_init_async_pdu_ctx()
2758 mem_descr->mem_array[0]. in hwi_init_async_pdu_ctx()
2769 mem_descr->mem_array[0].virtual_address; in hwi_init_async_pdu_ctx()
2772 mem_descr->mem_array[0]. in hwi_init_async_pdu_ctx()
2779 if (mem_descr->mem_array[0].virtual_address) { in hwi_init_async_pdu_ctx()
2784 mem_descr->mem_array[0]. in hwi_init_async_pdu_ctx()
2793 mem_descr->mem_array[0].virtual_address; in hwi_init_async_pdu_ctx()
2799 if (mem_descr->mem_array[0].virtual_address) { in hwi_init_async_pdu_ctx()
2804 mem_descr->mem_array[0]. in hwi_init_async_pdu_ctx()
2813 mem_descr->mem_array[0].virtual_address; in hwi_init_async_pdu_ctx()
2819 if (mem_descr->mem_array[0].virtual_address) { in hwi_init_async_pdu_ctx()
2824 mem_descr->mem_array[0]. in hwi_init_async_pdu_ctx()
2833 mem_descr->mem_array[0].virtual_address; in hwi_init_async_pdu_ctx()
2839 if (!mem_descr->mem_array[0].virtual_address) in hwi_init_async_pdu_ctx()
2846 mem_descr->mem_array[0].virtual_address; in hwi_init_async_pdu_ctx()
2859 if (mem_descr->mem_array[0].virtual_address) { in hwi_init_async_pdu_ctx()
2864 mem_descr->mem_array[0]. in hwi_init_async_pdu_ctx()
2876 mem_descr->mem_array[idx].virtual_address; in hwi_init_async_pdu_ctx()
2878 mem_descr->mem_array[idx]. in hwi_init_async_pdu_ctx()
2881 num_async_data = ((mem_descr->mem_array[idx].size) / in hwi_init_async_pdu_ctx()
2916 mem_descr->mem_array[idx]. in hwi_init_async_pdu_ctx()
2920 mem_descr->mem_array[idx]. in hwi_init_async_pdu_ctx()
2923 ((mem_descr->mem_array[idx]. in hwi_init_async_pdu_ctx()
2973 struct mem_array *pmem, struct be_dma_mem *sgl) in hwi_build_be_sgl_arr()
2985 struct mem_array *pmem, struct be_dma_mem *sgl) in hwi_build_be_sgl_by_offset()
3159 dq_vaddress = mem_descr->mem_array[idx].virtual_address; in beiscsi_create_def_hdr()
3160 ret = be_fill_queue(dq, mem_descr->mem_array[0].size / in beiscsi_create_def_hdr()
3170 mem->dma = (unsigned long)mem_descr->mem_array[idx]. in beiscsi_create_def_hdr()
3211 dq_vaddress = mem_descr->mem_array[idx].virtual_address; in beiscsi_create_def_data()
3212 ret = be_fill_queue(dataq, mem_descr->mem_array[0].size / in beiscsi_create_def_data()
3223 mem->dma = (unsigned long)mem_descr->mem_array[idx]. in beiscsi_create_def_data()
3253 struct mem_array *pm_arr; in beiscsi_post_template_hdr()
3262 pm_arr = mem_descr->mem_array; in beiscsi_post_template_hdr()
3287 struct mem_array *pm_arr; in beiscsi_post_pages()
3294 pm_arr = mem_descr->mem_array; in beiscsi_post_pages()
3354 struct mem_array *pwrb_arr; in beiscsi_create_wrb_rings()
3374 wrb_vaddr = mem_descr->mem_array[idx].virtual_address; in beiscsi_create_wrb_rings()
3375 pa_addr_lo = mem_descr->mem_array[idx].bus_address.u.a64.address; in beiscsi_create_wrb_rings()
3376 num_wrb_rings = mem_descr->mem_array[idx].size / in beiscsi_create_wrb_rings()
3390 wrb_vaddr = mem_descr->mem_array[idx].virtual_address; in beiscsi_create_wrb_rings()
3391 pa_addr_lo = mem_descr->mem_array[idx]. in beiscsi_create_wrb_rings()
3393 num_wrb_rings = mem_descr->mem_array[idx].size / in beiscsi_create_wrb_rings()
3838 init_mem[HWI_MEM_ADDN_CONTEXT].mem_array[0].virtual_address; in hwi_init_controller()
3877 mem_descr->mem_array[j - 1].size, in beiscsi_free_mem()
3878 mem_descr->mem_array[j - 1].virtual_address, in beiscsi_free_mem()
3879 (unsigned long)mem_descr->mem_array[j - 1]. in beiscsi_free_mem()
3883 kfree(mem_descr->mem_array); in beiscsi_free_mem()
3933 psgl_handle = mem_descr_sglh->mem_array[idx].virtual_address; in beiscsi_init_sgl_handle()
3935 for (i = 0; i < (mem_descr_sglh->mem_array[idx].size / in beiscsi_init_sgl_handle()
3973 pfrag = mem_descr_sg->mem_array[idx].virtual_address; in beiscsi_init_sgl_handle()
3976 i < (mem_descr_sg->mem_array[idx].size) / in beiscsi_init_sgl_handle()