Lines Matching refs:memdesc
106 struct esas2r_mem_desc *memdesc = kzalloc( in alloc_vda_req() local
109 if (memdesc == NULL) { in alloc_vda_req()
114 memdesc->size = sizeof(union atto_vda_req) + in alloc_vda_req()
117 if (!esas2r_initmem_alloc(a, memdesc, 256)) { in alloc_vda_req()
119 kfree(memdesc); in alloc_vda_req()
124 list_add(&memdesc->next_desc, &a->vrq_mds_head); in alloc_vda_req()
126 rq->vrq_md = memdesc; in alloc_vda_req()
127 rq->vrq = (union atto_vda_req *)memdesc->virt_addr; in alloc_vda_req()
437 struct esas2r_mem_desc *memdesc, *next; in esas2r_adapter_power_down() local
512 list_for_each_entry_safe(memdesc, next, &a->free_sg_list_head, in esas2r_adapter_power_down()
514 esas2r_initmem_free(a, memdesc); in esas2r_adapter_power_down()
518 list_for_each_entry_safe(memdesc, next, &a->vrq_mds_head, next_desc) { in esas2r_adapter_power_down()
519 esas2r_initmem_free(a, memdesc); in esas2r_adapter_power_down()
520 list_del(&memdesc->next_desc); in esas2r_adapter_power_down()
521 kfree(memdesc); in esas2r_adapter_power_down()