Lines Matching refs:sgptr

407 	     void *sgptr, dma_addr_t addr, bus_size_t len, int last)  in ahd_sg_setup()  argument
414 sg = (struct ahd_dma64_seg *)sgptr; in ahd_sg_setup()
421 sg = (struct ahd_dma_seg *)sgptr; in ahd_sg_setup()
484 scb->hscb->sgptr = ahd_htole32(scb->sg_list_busaddr|SG_FULL_RESID); in ahd_setup_data_scb()
490 scb->hscb->sgptr = ahd_htole32(SG_LIST_NULL); in ahd_setup_noxfer_scb()
1094 uint32_t sgptr; in ahd_update_residual() local
1096 sgptr = ahd_le32toh(scb->hscb->sgptr); in ahd_update_residual()
1097 if ((sgptr & SG_STATUS_VALID) != 0) in ahd_update_residual()
1104 uint32_t sgptr; in ahd_complete_scb() local
1106 sgptr = ahd_le32toh(scb->hscb->sgptr); in ahd_complete_scb()
1107 if ((sgptr & SG_STATUS_VALID) != 0) in ahd_complete_scb()
1431 uint32_t sgptr; in ahd_run_data_fifo() local
1436 sgptr = ahd_inl_scbram(ahd, SCB_SGPTR) & ~SG_FULL_RESID; in ahd_run_data_fifo()
1437 ahd_outb(ahd, SCB_SGPTR, sgptr); in ahd_run_data_fifo()
1444 sgptr |= LAST_SEG; in ahd_run_data_fifo()
1450 ahd_outb(ahd, SG_CACHE_PRE, sgptr); in ahd_run_data_fifo()
1457 ahd_outl(ahd, SCB_RESIDUAL_SGPTR, sgptr & SG_PTR_MASK); in ahd_run_data_fifo()
1476 uint32_t sgptr; in ahd_run_data_fifo() local
1505 sgptr = ahd_inl_scbram(ahd, SCB_RESIDUAL_SGPTR); in ahd_run_data_fifo()
1518 && (sgptr & 0x80) == 0) in ahd_run_data_fifo()
1519 sgptr -= 0x100; in ahd_run_data_fifo()
1520 sgptr &= ~0xFF; in ahd_run_data_fifo()
1521 sgptr |= ahd_inb(ahd, SG_CACHE_SHADOW) in ahd_run_data_fifo()
1523 ahd_outl(ahd, SCB_RESIDUAL_SGPTR, sgptr); in ahd_run_data_fifo()
1527 sgptr | SG_LIST_NULL); in ahd_run_data_fifo()
1534 ahd_outl(ahd, SCB_SGPTR, sgptr); in ahd_run_data_fifo()
1545 uint32_t sgptr; in ahd_run_data_fifo() local
1573 sgptr = ahd_inl_scbram(ahd, SCB_RESIDUAL_SGPTR); in ahd_run_data_fifo()
1574 sgptr &= SG_PTR_MASK; in ahd_run_data_fifo()
1578 sg = ahd_sg_bus_to_virt(ahd, scb, sgptr); in ahd_run_data_fifo()
1581 sgptr += sizeof(*sg); in ahd_run_data_fifo()
1585 sg = ahd_sg_bus_to_virt(ahd, scb, sgptr); in ahd_run_data_fifo()
1590 sgptr += sizeof(*sg); in ahd_run_data_fifo()
1597 ahd_outl(ahd, SCB_RESIDUAL_SGPTR, sgptr); in ahd_run_data_fifo()
1603 sgptr |= LAST_SEG; in ahd_run_data_fifo()
1608 ahd_outb(ahd, SG_CACHE_PRE, sgptr & 0xFF); in ahd_run_data_fifo()
3584 ahd_le32toh(hscb->sgptr),
5680 uint32_t sgptr; in ahd_handle_ign_wide_residue() local
5682 sgptr = ahd_inb_scbram(ahd, SCB_RESIDUAL_SGPTR); in ahd_handle_ign_wide_residue()
5683 if ((sgptr & SG_LIST_NULL) != 0 in ahd_handle_ign_wide_residue()
5698 sgptr = ahd_inl_scbram(ahd, SCB_RESIDUAL_SGPTR); in ahd_handle_ign_wide_residue()
5700 if ((sgptr & SG_LIST_NULL) != 0) { in ahd_handle_ign_wide_residue()
5711 sgptr &= SG_PTR_MASK; in ahd_handle_ign_wide_residue()
5715 sg = ahd_sg_bus_to_virt(ahd, scb, sgptr); in ahd_handle_ign_wide_residue()
5742 sgptr = ahd_sg_virt_to_bus(ahd, scb, in ahd_handle_ign_wide_residue()
5748 sg = ahd_sg_bus_to_virt(ahd, scb, sgptr); in ahd_handle_ign_wide_residue()
5775 sgptr = ahd_sg_virt_to_bus(ahd, scb, in ahd_handle_ign_wide_residue()
5789 ahd_outl(ahd, SCB_RESIDUAL_SGPTR, sgptr); in ahd_handle_ign_wide_residue()
5811 uint32_t sgptr; in ahd_reinitialize_dataptrs() local
5844 sgptr = ahd_inl_scbram(ahd, SCB_RESIDUAL_SGPTR); in ahd_reinitialize_dataptrs()
5845 sgptr &= SG_PTR_MASK; in ahd_reinitialize_dataptrs()
5854 sg = ahd_sg_bus_to_virt(ahd, scb, sgptr); in ahd_reinitialize_dataptrs()
5866 sg = ahd_sg_bus_to_virt(ahd, scb, sgptr); in ahd_reinitialize_dataptrs()
9048 uint32_t sgptr; in ahd_calc_residual() local
9069 sgptr = ahd_le32toh(hscb->sgptr); in ahd_calc_residual()
9070 if ((sgptr & SG_STATUS_VALID) == 0) in ahd_calc_residual()
9073 sgptr &= ~SG_STATUS_VALID; in ahd_calc_residual()
9075 if ((sgptr & SG_LIST_NULL) != 0) in ahd_calc_residual()
9087 if ((sgptr & SG_FULL_RESID) != 0) { in ahd_calc_residual()