Lines Matching refs:sg_arr
55 struct sg_el *sg_arr, in asd_map_scatterlist() argument
71 sg_arr[0].bus_addr = cpu_to_le64((u64)dma); in asd_map_scatterlist()
72 sg_arr[0].size = cpu_to_le32(task->total_xfer_len); in asd_map_scatterlist()
73 sg_arr[0].flags |= ASD_SG_EL_LIST_EOL; in asd_map_scatterlist()
90 ascb->sg_arr = asd_alloc_coherent(asd_ha, in asd_map_scatterlist()
93 if (!ascb->sg_arr) { in asd_map_scatterlist()
99 &((struct sg_el *)ascb->sg_arr->vaddr)[i]; in asd_map_scatterlist()
107 sg_arr[i].bus_addr = in asd_map_scatterlist()
109 sg_arr[i].size = cpu_to_le32((u32)sg_dma_len(sc)); in asd_map_scatterlist()
111 sg_arr[1].next_sg_offs = 2 * sizeof(*sg_arr); in asd_map_scatterlist()
112 sg_arr[1].flags |= ASD_SG_EL_LIST_EOS; in asd_map_scatterlist()
114 memset(&sg_arr[2], 0, sizeof(*sg_arr)); in asd_map_scatterlist()
115 sg_arr[2].bus_addr=cpu_to_le64((u64)ascb->sg_arr->dma_handle); in asd_map_scatterlist()
119 sg_arr[i].bus_addr = in asd_map_scatterlist()
121 sg_arr[i].size = cpu_to_le32((u32)sg_dma_len(sc)); in asd_map_scatterlist()
123 sg_arr[i-1].flags |= ASD_SG_EL_LIST_EOL; in asd_map_scatterlist()
150 asd_free_coherent(asd_ha, ascb->sg_arr); in asd_unmap_scatterlist()