Lines Matching refs:mem_array

2451 	struct mem_array *mem_arr, *mem_arr_orig;  in beiscsi_alloc_mem()
2489 mem_descr->mem_array = NULL; in beiscsi_alloc_mem()
2497 memset(mem_arr, 0, sizeof(struct mem_array) * in beiscsi_alloc_mem()
2526 mem_descr->mem_array = kmalloc_array(j, sizeof(*mem_arr), in beiscsi_alloc_mem()
2528 if (!mem_descr->mem_array) in beiscsi_alloc_mem()
2531 memcpy(mem_descr->mem_array, mem_arr_orig, in beiscsi_alloc_mem()
2532 sizeof(struct mem_array) * j); in beiscsi_alloc_mem()
2542 mem_descr->mem_array[j - 1].size, in beiscsi_alloc_mem()
2543 mem_descr->mem_array[j - 1]. in beiscsi_alloc_mem()
2546 mem_array[j - 1]. in beiscsi_alloc_mem()
2551 kfree(mem_descr->mem_array); in beiscsi_alloc_mem()
2577 (struct pdu_data_out *)mem_descr->mem_array[0].virtual_address; in iscsi_init_global_templates()
2584 (struct pdu_nop_out *)((unsigned char *)mem_descr->mem_array[0]. in iscsi_init_global_templates()
2644 mem_descr_wrbh->mem_array[idx].virtual_address; in beiscsi_init_wrb_handle()
2645 num_cxn_wrbh = ((mem_descr_wrbh->mem_array[idx].size) / in beiscsi_init_wrb_handle()
2671 pwrb = mem_descr_wrb->mem_array[idx].virtual_address; in beiscsi_init_wrb_handle()
2672 num_cxn_wrb = (mem_descr_wrb->mem_array[idx].size) / in beiscsi_init_wrb_handle()
2717 mem_descr->mem_array[0].virtual_address; in hwi_init_async_pdu_ctx()
2733 if (mem_descr->mem_array[0].virtual_address) { in hwi_init_async_pdu_ctx()
2738 mem_descr->mem_array[0]. in hwi_init_async_pdu_ctx()
2749 mem_descr->mem_array[0].virtual_address; in hwi_init_async_pdu_ctx()
2752 mem_descr->mem_array[0]. in hwi_init_async_pdu_ctx()
2759 if (mem_descr->mem_array[0].virtual_address) { in hwi_init_async_pdu_ctx()
2764 mem_descr->mem_array[0]. in hwi_init_async_pdu_ctx()
2773 mem_descr->mem_array[0].virtual_address; 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()
2826 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()
2844 mem_descr->mem_array[0]. in hwi_init_async_pdu_ctx()
2856 mem_descr->mem_array[idx].virtual_address; in hwi_init_async_pdu_ctx()
2858 mem_descr->mem_array[idx]. in hwi_init_async_pdu_ctx()
2861 num_async_data = ((mem_descr->mem_array[idx].size) / in hwi_init_async_pdu_ctx()
2896 mem_descr->mem_array[idx]. in hwi_init_async_pdu_ctx()
2900 mem_descr->mem_array[idx]. in hwi_init_async_pdu_ctx()
2903 ((mem_descr->mem_array[idx]. in hwi_init_async_pdu_ctx()
2953 struct mem_array *pmem, struct be_dma_mem *sgl) in hwi_build_be_sgl_arr()
2965 struct mem_array *pmem, struct be_dma_mem *sgl) in hwi_build_be_sgl_by_offset()
3139 dq_vaddress = mem_descr->mem_array[idx].virtual_address; in beiscsi_create_def_hdr()
3140 ret = be_fill_queue(dq, mem_descr->mem_array[0].size / in beiscsi_create_def_hdr()
3150 mem->dma = (unsigned long)mem_descr->mem_array[idx]. in beiscsi_create_def_hdr()
3191 dq_vaddress = mem_descr->mem_array[idx].virtual_address; in beiscsi_create_def_data()
3192 ret = be_fill_queue(dataq, mem_descr->mem_array[0].size / in beiscsi_create_def_data()
3203 mem->dma = (unsigned long)mem_descr->mem_array[idx]. in beiscsi_create_def_data()
3233 struct mem_array *pm_arr; in beiscsi_post_template_hdr()
3242 pm_arr = mem_descr->mem_array; in beiscsi_post_template_hdr()
3267 struct mem_array *pm_arr; in beiscsi_post_pages()
3274 pm_arr = mem_descr->mem_array; in beiscsi_post_pages()
3334 struct mem_array *pwrb_arr; in beiscsi_create_wrb_rings()
3354 wrb_vaddr = mem_descr->mem_array[idx].virtual_address; in beiscsi_create_wrb_rings()
3355 pa_addr_lo = mem_descr->mem_array[idx].bus_address.u.a64.address; in beiscsi_create_wrb_rings()
3356 num_wrb_rings = mem_descr->mem_array[idx].size / in beiscsi_create_wrb_rings()
3370 wrb_vaddr = mem_descr->mem_array[idx].virtual_address; in beiscsi_create_wrb_rings()
3371 pa_addr_lo = mem_descr->mem_array[idx]. in beiscsi_create_wrb_rings()
3373 num_wrb_rings = mem_descr->mem_array[idx].size / in beiscsi_create_wrb_rings()
3818 init_mem[HWI_MEM_ADDN_CONTEXT].mem_array[0].virtual_address; in hwi_init_controller()
3857 mem_descr->mem_array[j - 1].size, in beiscsi_free_mem()
3858 mem_descr->mem_array[j - 1].virtual_address, in beiscsi_free_mem()
3859 (unsigned long)mem_descr->mem_array[j - 1]. in beiscsi_free_mem()
3863 kfree(mem_descr->mem_array); in beiscsi_free_mem()
3913 psgl_handle = mem_descr_sglh->mem_array[idx].virtual_address; in beiscsi_init_sgl_handle()
3915 for (i = 0; i < (mem_descr_sglh->mem_array[idx].size / in beiscsi_init_sgl_handle()
3953 pfrag = mem_descr_sg->mem_array[idx].virtual_address; in beiscsi_init_sgl_handle()
3956 i < (mem_descr_sg->mem_array[idx].size) / in beiscsi_init_sgl_handle()