Lines Matching refs:mem_array

2470 	struct mem_array *mem_arr, *mem_arr_orig;  in beiscsi_alloc_mem()
2504 mem_descr->mem_array = NULL; in beiscsi_alloc_mem()
2512 memset(mem_arr, 0, sizeof(struct mem_array) * in beiscsi_alloc_mem()
2541 mem_descr->mem_array = kmalloc_objs(*mem_arr, j); in beiscsi_alloc_mem()
2542 if (!mem_descr->mem_array) in beiscsi_alloc_mem()
2545 memcpy(mem_descr->mem_array, mem_arr_orig, in beiscsi_alloc_mem()
2546 sizeof(struct mem_array) * j); in beiscsi_alloc_mem()
2556 mem_descr->mem_array[j - 1].size, in beiscsi_alloc_mem()
2557 mem_descr->mem_array[j - 1]. in beiscsi_alloc_mem()
2560 mem_array[j - 1]. in beiscsi_alloc_mem()
2565 kfree(mem_descr->mem_array); in beiscsi_alloc_mem()
2591 (struct pdu_data_out *)mem_descr->mem_array[0].virtual_address; in iscsi_init_global_templates()
2598 (struct pdu_nop_out *)((unsigned char *)mem_descr->mem_array[0]. in iscsi_init_global_templates()
2655 mem_descr_wrbh->mem_array[idx].virtual_address; in beiscsi_init_wrb_handle()
2656 num_cxn_wrbh = ((mem_descr_wrbh->mem_array[idx].size) / in beiscsi_init_wrb_handle()
2682 pwrb = mem_descr_wrb->mem_array[idx].virtual_address; in beiscsi_init_wrb_handle()
2683 num_cxn_wrb = (mem_descr_wrb->mem_array[idx].size) / in beiscsi_init_wrb_handle()
2729 mem_descr->mem_array[0].virtual_address; in hwi_init_async_pdu_ctx()
2745 if (mem_descr->mem_array[0].virtual_address) { in hwi_init_async_pdu_ctx()
2750 mem_descr->mem_array[0]. in hwi_init_async_pdu_ctx()
2761 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()
2771 if (mem_descr->mem_array[0].virtual_address) { in hwi_init_async_pdu_ctx()
2776 mem_descr->mem_array[0]. in hwi_init_async_pdu_ctx()
2785 mem_descr->mem_array[0].virtual_address; in hwi_init_async_pdu_ctx()
2791 if (mem_descr->mem_array[0].virtual_address) { in hwi_init_async_pdu_ctx()
2796 mem_descr->mem_array[0]. in hwi_init_async_pdu_ctx()
2805 mem_descr->mem_array[0].virtual_address; in hwi_init_async_pdu_ctx()
2811 if (mem_descr->mem_array[0].virtual_address) { in hwi_init_async_pdu_ctx()
2816 mem_descr->mem_array[0]. in hwi_init_async_pdu_ctx()
2825 mem_descr->mem_array[0].virtual_address; in hwi_init_async_pdu_ctx()
2831 if (!mem_descr->mem_array[0].virtual_address) in hwi_init_async_pdu_ctx()
2838 mem_descr->mem_array[0].virtual_address; in hwi_init_async_pdu_ctx()
2851 if (mem_descr->mem_array[0].virtual_address) { in hwi_init_async_pdu_ctx()
2856 mem_descr->mem_array[0]. in hwi_init_async_pdu_ctx()
2868 mem_descr->mem_array[idx].virtual_address; in hwi_init_async_pdu_ctx()
2870 mem_descr->mem_array[idx]. in hwi_init_async_pdu_ctx()
2873 num_async_data = ((mem_descr->mem_array[idx].size) / in hwi_init_async_pdu_ctx()
2908 mem_descr->mem_array[idx]. in hwi_init_async_pdu_ctx()
2912 mem_descr->mem_array[idx]. in hwi_init_async_pdu_ctx()
2915 ((mem_descr->mem_array[idx]. in hwi_init_async_pdu_ctx()
2965 struct mem_array *pmem, struct be_dma_mem *sgl) in hwi_build_be_sgl_arr()
2977 struct mem_array *pmem, struct be_dma_mem *sgl) in hwi_build_be_sgl_by_offset()
3151 dq_vaddress = mem_descr->mem_array[idx].virtual_address; in beiscsi_create_def_hdr()
3152 ret = be_fill_queue(dq, mem_descr->mem_array[0].size / in beiscsi_create_def_hdr()
3162 mem->dma = (unsigned long)mem_descr->mem_array[idx]. in beiscsi_create_def_hdr()
3203 dq_vaddress = mem_descr->mem_array[idx].virtual_address; in beiscsi_create_def_data()
3204 ret = be_fill_queue(dataq, mem_descr->mem_array[0].size / in beiscsi_create_def_data()
3215 mem->dma = (unsigned long)mem_descr->mem_array[idx]. in beiscsi_create_def_data()
3245 struct mem_array *pm_arr; in beiscsi_post_template_hdr()
3254 pm_arr = mem_descr->mem_array; in beiscsi_post_template_hdr()
3279 struct mem_array *pm_arr; in beiscsi_post_pages()
3286 pm_arr = mem_descr->mem_array; in beiscsi_post_pages()
3346 struct mem_array *pwrb_arr; in beiscsi_create_wrb_rings()
3364 wrb_vaddr = mem_descr->mem_array[idx].virtual_address; in beiscsi_create_wrb_rings()
3365 pa_addr_lo = mem_descr->mem_array[idx].bus_address.u.a64.address; in beiscsi_create_wrb_rings()
3366 num_wrb_rings = mem_descr->mem_array[idx].size / in beiscsi_create_wrb_rings()
3380 wrb_vaddr = mem_descr->mem_array[idx].virtual_address; in beiscsi_create_wrb_rings()
3381 pa_addr_lo = mem_descr->mem_array[idx]. in beiscsi_create_wrb_rings()
3383 num_wrb_rings = mem_descr->mem_array[idx].size / in beiscsi_create_wrb_rings()
3828 init_mem[HWI_MEM_ADDN_CONTEXT].mem_array[0].virtual_address; in hwi_init_controller()
3867 mem_descr->mem_array[j - 1].size, in beiscsi_free_mem()
3868 mem_descr->mem_array[j - 1].virtual_address, in beiscsi_free_mem()
3869 (unsigned long)mem_descr->mem_array[j - 1]. in beiscsi_free_mem()
3873 kfree(mem_descr->mem_array); in beiscsi_free_mem()
3921 psgl_handle = mem_descr_sglh->mem_array[idx].virtual_address; in beiscsi_init_sgl_handle()
3923 for (i = 0; i < (mem_descr_sglh->mem_array[idx].size / in beiscsi_init_sgl_handle()
3961 pfrag = mem_descr_sg->mem_array[idx].virtual_address; in beiscsi_init_sgl_handle()
3964 i < (mem_descr_sg->mem_array[idx].size) / in beiscsi_init_sgl_handle()