Lines Matching refs:mem_array

2699 	struct mem_array *mem_arr, *mem_arr_orig;  in beiscsi_alloc_mem()
2734 mem_descr->mem_array = NULL; in beiscsi_alloc_mem()
2742 memset(mem_arr, 0, sizeof(struct mem_array) * in beiscsi_alloc_mem()
2772 mem_descr->mem_array = kmalloc(sizeof(*mem_arr) * j, in beiscsi_alloc_mem()
2774 if (!mem_descr->mem_array) in beiscsi_alloc_mem()
2777 memcpy(mem_descr->mem_array, mem_arr_orig, in beiscsi_alloc_mem()
2778 sizeof(struct mem_array) * j); in beiscsi_alloc_mem()
2788 mem_descr->mem_array[j - 1].size, in beiscsi_alloc_mem()
2789 mem_descr->mem_array[j - 1]. in beiscsi_alloc_mem()
2792 mem_array[j - 1]. in beiscsi_alloc_mem()
2797 kfree(mem_descr->mem_array); in beiscsi_alloc_mem()
2823 (struct pdu_data_out *)mem_descr->mem_array[0].virtual_address; in iscsi_init_global_templates()
2830 (struct pdu_nop_out *)((unsigned char *)mem_descr->mem_array[0]. in iscsi_init_global_templates()
2888 mem_descr_wrbh->mem_array[idx].virtual_address; in beiscsi_init_wrb_handle()
2889 num_cxn_wrbh = ((mem_descr_wrbh->mem_array[idx].size) / in beiscsi_init_wrb_handle()
2914 pwrb = mem_descr_wrb->mem_array[idx].virtual_address; in beiscsi_init_wrb_handle()
2915 num_cxn_wrb = (mem_descr_wrb->mem_array[idx].size) / in beiscsi_init_wrb_handle()
2960 mem_descr->mem_array[0].virtual_address; in hwi_init_async_pdu_ctx()
2977 if (mem_descr->mem_array[0].virtual_address) { in hwi_init_async_pdu_ctx()
2982 mem_descr->mem_array[0]. in hwi_init_async_pdu_ctx()
2991 mem_descr->mem_array[0].virtual_address; in hwi_init_async_pdu_ctx()
2994 mem_descr->mem_array[0]. in hwi_init_async_pdu_ctx()
3000 if (mem_descr->mem_array[0].virtual_address) { in hwi_init_async_pdu_ctx()
3005 mem_descr->mem_array[0]. in hwi_init_async_pdu_ctx()
3014 mem_descr->mem_array[0].virtual_address; in hwi_init_async_pdu_ctx()
3019 if (mem_descr->mem_array[0].virtual_address) { in hwi_init_async_pdu_ctx()
3024 mem_descr->mem_array[0]. in hwi_init_async_pdu_ctx()
3033 mem_descr->mem_array[0].virtual_address; in hwi_init_async_pdu_ctx()
3040 if (mem_descr->mem_array[0].virtual_address) { in hwi_init_async_pdu_ctx()
3045 mem_descr->mem_array[0]. in hwi_init_async_pdu_ctx()
3054 mem_descr->mem_array[0].virtual_address; in hwi_init_async_pdu_ctx()
3059 if (!mem_descr->mem_array[0].virtual_address) in hwi_init_async_pdu_ctx()
3066 mem_descr->mem_array[0].virtual_address; in hwi_init_async_pdu_ctx()
3080 if (mem_descr->mem_array[0].virtual_address) { in hwi_init_async_pdu_ctx()
3085 mem_descr->mem_array[0]. in hwi_init_async_pdu_ctx()
3095 mem_descr->mem_array[idx].virtual_address; in hwi_init_async_pdu_ctx()
3097 mem_descr->mem_array[idx]. in hwi_init_async_pdu_ctx()
3100 num_async_data = ((mem_descr->mem_array[idx].size) / in hwi_init_async_pdu_ctx()
3138 mem_descr->mem_array[idx]. in hwi_init_async_pdu_ctx()
3142 mem_descr->mem_array[idx]. in hwi_init_async_pdu_ctx()
3145 ((mem_descr->mem_array[idx]. in hwi_init_async_pdu_ctx()
3206 struct mem_array *pmem, struct be_dma_mem *sgl) in hwi_build_be_sgl_arr()
3218 struct mem_array *pmem, struct be_dma_mem *sgl) in hwi_build_be_sgl_by_offset()
3390 dq_vaddress = mem_descr->mem_array[idx].virtual_address; in beiscsi_create_def_hdr()
3391 ret = be_fill_queue(dq, mem_descr->mem_array[0].size / in beiscsi_create_def_hdr()
3401 mem->dma = (unsigned long)mem_descr->mem_array[idx]. in beiscsi_create_def_hdr()
3443 dq_vaddress = mem_descr->mem_array[idx].virtual_address; in beiscsi_create_def_data()
3444 ret = be_fill_queue(dataq, mem_descr->mem_array[0].size / in beiscsi_create_def_data()
3455 mem->dma = (unsigned long)mem_descr->mem_array[idx]. in beiscsi_create_def_data()
3487 struct mem_array *pm_arr; in beiscsi_post_template_hdr()
3496 pm_arr = mem_descr->mem_array; in beiscsi_post_template_hdr()
3521 struct mem_array *pm_arr; in beiscsi_post_pages()
3528 pm_arr = mem_descr->mem_array; in beiscsi_post_pages()
3587 struct mem_array *pwrb_arr; in beiscsi_create_wrb_rings()
3606 wrb_vaddr = mem_descr->mem_array[idx].virtual_address; in beiscsi_create_wrb_rings()
3607 pa_addr_lo = mem_descr->mem_array[idx].bus_address.u.a64.address; in beiscsi_create_wrb_rings()
3608 num_wrb_rings = mem_descr->mem_array[idx].size / in beiscsi_create_wrb_rings()
3622 wrb_vaddr = mem_descr->mem_array[idx].virtual_address; in beiscsi_create_wrb_rings()
3623 pa_addr_lo = mem_descr->mem_array[idx].\ in beiscsi_create_wrb_rings()
3625 num_wrb_rings = mem_descr->mem_array[idx].size / in beiscsi_create_wrb_rings()
3986 init_mem[HWI_MEM_ADDN_CONTEXT].mem_array[0].virtual_address; in hwi_init_controller()
4027 mem_descr->mem_array[j - 1].size, in beiscsi_free_mem()
4028 mem_descr->mem_array[j - 1].virtual_address, in beiscsi_free_mem()
4029 (unsigned long)mem_descr->mem_array[j - 1]. in beiscsi_free_mem()
4033 kfree(mem_descr->mem_array); in beiscsi_free_mem()
4108 psgl_handle = mem_descr_sglh->mem_array[idx].virtual_address; in beiscsi_init_sgl_handle()
4110 for (i = 0; i < (mem_descr_sglh->mem_array[idx].size / in beiscsi_init_sgl_handle()
4148 pfrag = mem_descr_sg->mem_array[idx].virtual_address; in beiscsi_init_sgl_handle()
4151 i < (mem_descr_sg->mem_array[idx].size) / in beiscsi_init_sgl_handle()