Lines Matching full:sg
250 struct ahd_dma64_seg *sg; in ahd_sg_setup() local
252 sg = (struct ahd_dma64_seg *)sgptr; in ahd_sg_setup()
253 sg->addr = aic_htole64(addr); in ahd_sg_setup()
254 sg->len = aic_htole32(len | (last ? AHD_DMA_LAST_SEG : 0)); in ahd_sg_setup()
255 return (sg + 1); in ahd_sg_setup()
257 struct ahd_dma_seg *sg; in ahd_sg_setup() local
259 sg = (struct ahd_dma_seg *)sgptr; in ahd_sg_setup()
260 sg->addr = aic_htole32(addr & 0xFFFFFFFF); in ahd_sg_setup()
261 sg->len = aic_htole32(len | ((addr >> 8) & 0x7F000000) in ahd_sg_setup()
263 return (sg + 1); in ahd_sg_setup()
292 * Copy the first SG into the "current" data ponter area. in ahd_setup_data_scb()
295 struct ahd_dma64_seg *sg; in ahd_setup_data_scb() local
297 sg = (struct ahd_dma64_seg *)scb->sg_list; in ahd_setup_data_scb()
298 scb->hscb->dataptr = sg->addr; in ahd_setup_data_scb()
299 scb->hscb->datacnt = sg->len; in ahd_setup_data_scb()
301 struct ahd_dma_seg *sg; in ahd_setup_data_scb() local
304 sg = (struct ahd_dma_seg *)scb->sg_list; in ahd_setup_data_scb()
306 dataptr_words[0] = sg->addr; in ahd_setup_data_scb()
311 high_addr = aic_le32toh(sg->len) & 0x7F000000; in ahd_setup_data_scb()
314 scb->hscb->datacnt = sg->len; in ahd_setup_data_scb()
317 * Note where to find the SG entries in bus space. in ahd_setup_data_scb()
342 void *sg);
372 ahd_sg_virt_to_bus(struct ahd_softc *ahd, struct scb *scb, void *sg) in ahd_sg_virt_to_bus() argument
377 sg_offset = ((uint8_t *)sg - (uint8_t *)scb->sg_list) in ahd_sg_virt_to_bus()