Lines Matching refs:mem_array
2472 struct mem_array *mem_arr, *mem_arr_orig; in beiscsi_alloc_mem()
2510 mem_descr->mem_array = NULL; in beiscsi_alloc_mem()
2518 memset(mem_arr, 0, sizeof(struct mem_array) * in beiscsi_alloc_mem()
2548 mem_descr->mem_array = kmalloc_array(j, sizeof(*mem_arr), in beiscsi_alloc_mem()
2550 if (!mem_descr->mem_array) in beiscsi_alloc_mem()
2553 memcpy(mem_descr->mem_array, mem_arr_orig, in beiscsi_alloc_mem()
2554 sizeof(struct mem_array) * j); in beiscsi_alloc_mem()
2564 mem_descr->mem_array[j - 1].size, in beiscsi_alloc_mem()
2565 mem_descr->mem_array[j - 1]. in beiscsi_alloc_mem()
2568 mem_array[j - 1]. in beiscsi_alloc_mem()
2573 kfree(mem_descr->mem_array); in beiscsi_alloc_mem()
2599 (struct pdu_data_out *)mem_descr->mem_array[0].virtual_address; in iscsi_init_global_templates()
2606 (struct pdu_nop_out *)((unsigned char *)mem_descr->mem_array[0]. in iscsi_init_global_templates()
2666 mem_descr_wrbh->mem_array[idx].virtual_address; in beiscsi_init_wrb_handle()
2667 num_cxn_wrbh = ((mem_descr_wrbh->mem_array[idx].size) / in beiscsi_init_wrb_handle()
2693 pwrb = mem_descr_wrb->mem_array[idx].virtual_address; in beiscsi_init_wrb_handle()
2694 num_cxn_wrb = (mem_descr_wrb->mem_array[idx].size) / in beiscsi_init_wrb_handle()
2739 mem_descr->mem_array[0].virtual_address; in hwi_init_async_pdu_ctx()
2755 if (mem_descr->mem_array[0].virtual_address) { in hwi_init_async_pdu_ctx()
2760 mem_descr->mem_array[0]. in hwi_init_async_pdu_ctx()
2771 mem_descr->mem_array[0].virtual_address; in hwi_init_async_pdu_ctx()
2774 mem_descr->mem_array[0]. in hwi_init_async_pdu_ctx()
2781 if (mem_descr->mem_array[0].virtual_address) { in hwi_init_async_pdu_ctx()
2786 mem_descr->mem_array[0]. in hwi_init_async_pdu_ctx()
2795 mem_descr->mem_array[0].virtual_address; in hwi_init_async_pdu_ctx()
2801 if (mem_descr->mem_array[0].virtual_address) { in hwi_init_async_pdu_ctx()
2806 mem_descr->mem_array[0]. in hwi_init_async_pdu_ctx()
2815 mem_descr->mem_array[0].virtual_address; in hwi_init_async_pdu_ctx()
2821 if (mem_descr->mem_array[0].virtual_address) { in hwi_init_async_pdu_ctx()
2826 mem_descr->mem_array[0]. in hwi_init_async_pdu_ctx()
2835 mem_descr->mem_array[0].virtual_address; in hwi_init_async_pdu_ctx()
2841 if (!mem_descr->mem_array[0].virtual_address) in hwi_init_async_pdu_ctx()
2848 mem_descr->mem_array[0].virtual_address; in hwi_init_async_pdu_ctx()
2861 if (mem_descr->mem_array[0].virtual_address) { in hwi_init_async_pdu_ctx()
2866 mem_descr->mem_array[0]. in hwi_init_async_pdu_ctx()
2878 mem_descr->mem_array[idx].virtual_address; in hwi_init_async_pdu_ctx()
2880 mem_descr->mem_array[idx]. in hwi_init_async_pdu_ctx()
2883 num_async_data = ((mem_descr->mem_array[idx].size) / in hwi_init_async_pdu_ctx()
2918 mem_descr->mem_array[idx]. in hwi_init_async_pdu_ctx()
2922 mem_descr->mem_array[idx]. in hwi_init_async_pdu_ctx()
2925 ((mem_descr->mem_array[idx]. in hwi_init_async_pdu_ctx()
2975 struct mem_array *pmem, struct be_dma_mem *sgl) in hwi_build_be_sgl_arr()
2987 struct mem_array *pmem, struct be_dma_mem *sgl) in hwi_build_be_sgl_by_offset()
3164 dq_vaddress = mem_descr->mem_array[idx].virtual_address; in beiscsi_create_def_hdr()
3165 ret = be_fill_queue(dq, mem_descr->mem_array[0].size / in beiscsi_create_def_hdr()
3175 mem->dma = (unsigned long)mem_descr->mem_array[idx]. in beiscsi_create_def_hdr()
3216 dq_vaddress = mem_descr->mem_array[idx].virtual_address; in beiscsi_create_def_data()
3217 ret = be_fill_queue(dataq, mem_descr->mem_array[0].size / in beiscsi_create_def_data()
3228 mem->dma = (unsigned long)mem_descr->mem_array[idx]. in beiscsi_create_def_data()
3258 struct mem_array *pm_arr; in beiscsi_post_template_hdr()
3267 pm_arr = mem_descr->mem_array; in beiscsi_post_template_hdr()
3292 struct mem_array *pm_arr; in beiscsi_post_pages()
3299 pm_arr = mem_descr->mem_array; in beiscsi_post_pages()
3358 struct mem_array *pwrb_arr; in beiscsi_create_wrb_rings()
3378 wrb_vaddr = mem_descr->mem_array[idx].virtual_address; in beiscsi_create_wrb_rings()
3379 pa_addr_lo = mem_descr->mem_array[idx].bus_address.u.a64.address; in beiscsi_create_wrb_rings()
3380 num_wrb_rings = mem_descr->mem_array[idx].size / in beiscsi_create_wrb_rings()
3394 wrb_vaddr = mem_descr->mem_array[idx].virtual_address; in beiscsi_create_wrb_rings()
3395 pa_addr_lo = mem_descr->mem_array[idx].\ in beiscsi_create_wrb_rings()
3397 num_wrb_rings = mem_descr->mem_array[idx].size / in beiscsi_create_wrb_rings()
3843 init_mem[HWI_MEM_ADDN_CONTEXT].mem_array[0].virtual_address; in hwi_init_controller()
3884 mem_descr->mem_array[j - 1].size, in beiscsi_free_mem()
3885 mem_descr->mem_array[j - 1].virtual_address, in beiscsi_free_mem()
3886 (unsigned long)mem_descr->mem_array[j - 1]. in beiscsi_free_mem()
3890 kfree(mem_descr->mem_array); in beiscsi_free_mem()
3940 psgl_handle = mem_descr_sglh->mem_array[idx].virtual_address; in beiscsi_init_sgl_handle()
3942 for (i = 0; i < (mem_descr_sglh->mem_array[idx].size / in beiscsi_init_sgl_handle()
3980 pfrag = mem_descr_sg->mem_array[idx].virtual_address; in beiscsi_init_sgl_handle()
3983 i < (mem_descr_sg->mem_array[idx].size) / in beiscsi_init_sgl_handle()