Lines Matching refs:mem_array

2678 	struct mem_array *mem_arr, *mem_arr_orig;  in beiscsi_alloc_mem()
2713 mem_descr->mem_array = NULL; in beiscsi_alloc_mem()
2721 memset(mem_arr, 0, sizeof(struct mem_array) * in beiscsi_alloc_mem()
2751 mem_descr->mem_array = kmalloc(sizeof(*mem_arr) * j, in beiscsi_alloc_mem()
2753 if (!mem_descr->mem_array) in beiscsi_alloc_mem()
2756 memcpy(mem_descr->mem_array, mem_arr_orig, in beiscsi_alloc_mem()
2757 sizeof(struct mem_array) * j); in beiscsi_alloc_mem()
2767 mem_descr->mem_array[j - 1].size, in beiscsi_alloc_mem()
2768 mem_descr->mem_array[j - 1]. in beiscsi_alloc_mem()
2771 mem_array[j - 1]. in beiscsi_alloc_mem()
2776 kfree(mem_descr->mem_array); in beiscsi_alloc_mem()
2802 (struct pdu_data_out *)mem_descr->mem_array[0].virtual_address; in iscsi_init_global_templates()
2809 (struct pdu_nop_out *)((unsigned char *)mem_descr->mem_array[0]. in iscsi_init_global_templates()
2867 mem_descr_wrbh->mem_array[idx].virtual_address; in beiscsi_init_wrb_handle()
2868 num_cxn_wrbh = ((mem_descr_wrbh->mem_array[idx].size) / in beiscsi_init_wrb_handle()
2893 pwrb = mem_descr_wrb->mem_array[idx].virtual_address; in beiscsi_init_wrb_handle()
2894 num_cxn_wrb = (mem_descr_wrb->mem_array[idx].size) / in beiscsi_init_wrb_handle()
2939 mem_descr->mem_array[0].virtual_address; in hwi_init_async_pdu_ctx()
2956 if (mem_descr->mem_array[0].virtual_address) { in hwi_init_async_pdu_ctx()
2961 mem_descr->mem_array[0]. in hwi_init_async_pdu_ctx()
2970 mem_descr->mem_array[0].virtual_address; in hwi_init_async_pdu_ctx()
2973 mem_descr->mem_array[0]. in hwi_init_async_pdu_ctx()
2979 if (mem_descr->mem_array[0].virtual_address) { in hwi_init_async_pdu_ctx()
2984 mem_descr->mem_array[0]. in hwi_init_async_pdu_ctx()
2993 mem_descr->mem_array[0].virtual_address; in hwi_init_async_pdu_ctx()
2998 if (mem_descr->mem_array[0].virtual_address) { in hwi_init_async_pdu_ctx()
3003 mem_descr->mem_array[0]. in hwi_init_async_pdu_ctx()
3012 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()
3038 if (!mem_descr->mem_array[0].virtual_address) in hwi_init_async_pdu_ctx()
3045 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()
3064 mem_descr->mem_array[0]. in hwi_init_async_pdu_ctx()
3074 mem_descr->mem_array[idx].virtual_address; in hwi_init_async_pdu_ctx()
3076 mem_descr->mem_array[idx]. in hwi_init_async_pdu_ctx()
3079 num_async_data = ((mem_descr->mem_array[idx].size) / in hwi_init_async_pdu_ctx()
3117 mem_descr->mem_array[idx]. in hwi_init_async_pdu_ctx()
3121 mem_descr->mem_array[idx]. in hwi_init_async_pdu_ctx()
3124 ((mem_descr->mem_array[idx]. in hwi_init_async_pdu_ctx()
3185 struct mem_array *pmem, struct be_dma_mem *sgl) in hwi_build_be_sgl_arr()
3197 struct mem_array *pmem, struct be_dma_mem *sgl) in hwi_build_be_sgl_by_offset()
3369 dq_vaddress = mem_descr->mem_array[idx].virtual_address; in beiscsi_create_def_hdr()
3370 ret = be_fill_queue(dq, mem_descr->mem_array[0].size / in beiscsi_create_def_hdr()
3380 mem->dma = (unsigned long)mem_descr->mem_array[idx]. in beiscsi_create_def_hdr()
3422 dq_vaddress = mem_descr->mem_array[idx].virtual_address; in beiscsi_create_def_data()
3423 ret = be_fill_queue(dataq, mem_descr->mem_array[0].size / in beiscsi_create_def_data()
3434 mem->dma = (unsigned long)mem_descr->mem_array[idx]. in beiscsi_create_def_data()
3466 struct mem_array *pm_arr; in beiscsi_post_template_hdr()
3475 pm_arr = mem_descr->mem_array; in beiscsi_post_template_hdr()
3500 struct mem_array *pm_arr; in beiscsi_post_pages()
3507 pm_arr = mem_descr->mem_array; in beiscsi_post_pages()
3566 struct mem_array *pwrb_arr; in beiscsi_create_wrb_rings()
3585 wrb_vaddr = mem_descr->mem_array[idx].virtual_address; in beiscsi_create_wrb_rings()
3586 pa_addr_lo = mem_descr->mem_array[idx].bus_address.u.a64.address; in beiscsi_create_wrb_rings()
3587 num_wrb_rings = mem_descr->mem_array[idx].size / in beiscsi_create_wrb_rings()
3601 wrb_vaddr = mem_descr->mem_array[idx].virtual_address; in beiscsi_create_wrb_rings()
3602 pa_addr_lo = mem_descr->mem_array[idx].\ in beiscsi_create_wrb_rings()
3604 num_wrb_rings = mem_descr->mem_array[idx].size / in beiscsi_create_wrb_rings()
3959 init_mem[HWI_MEM_ADDN_CONTEXT].mem_array[0].virtual_address; in hwi_init_controller()
4000 mem_descr->mem_array[j - 1].size, in beiscsi_free_mem()
4001 mem_descr->mem_array[j - 1].virtual_address, in beiscsi_free_mem()
4002 (unsigned long)mem_descr->mem_array[j - 1]. in beiscsi_free_mem()
4006 kfree(mem_descr->mem_array); in beiscsi_free_mem()
4081 psgl_handle = mem_descr_sglh->mem_array[idx].virtual_address; in beiscsi_init_sgl_handle()
4083 for (i = 0; i < (mem_descr_sglh->mem_array[idx].size / in beiscsi_init_sgl_handle()
4121 pfrag = mem_descr_sg->mem_array[idx].virtual_address; in beiscsi_init_sgl_handle()
4124 i < (mem_descr_sg->mem_array[idx].size) / in beiscsi_init_sgl_handle()