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()
3611 ahd_le32toh(hscb->sgptr),
5710 uint32_t sgptr; in ahd_handle_ign_wide_residue() local
5712 sgptr = ahd_inb_scbram(ahd, SCB_RESIDUAL_SGPTR); in ahd_handle_ign_wide_residue()
5713 if ((sgptr & SG_LIST_NULL) != 0 in ahd_handle_ign_wide_residue()
5728 sgptr = ahd_inl_scbram(ahd, SCB_RESIDUAL_SGPTR); in ahd_handle_ign_wide_residue()
5730 if ((sgptr & SG_LIST_NULL) != 0) { in ahd_handle_ign_wide_residue()
5741 sgptr &= SG_PTR_MASK; in ahd_handle_ign_wide_residue()
5745 sg = ahd_sg_bus_to_virt(ahd, scb, sgptr); in ahd_handle_ign_wide_residue()
5772 sgptr = ahd_sg_virt_to_bus(ahd, scb, in ahd_handle_ign_wide_residue()
5778 sg = ahd_sg_bus_to_virt(ahd, scb, sgptr); in ahd_handle_ign_wide_residue()
5805 sgptr = ahd_sg_virt_to_bus(ahd, scb, in ahd_handle_ign_wide_residue()
5819 ahd_outl(ahd, SCB_RESIDUAL_SGPTR, sgptr); in ahd_handle_ign_wide_residue()
5841 uint32_t sgptr; in ahd_reinitialize_dataptrs() local
5874 sgptr = ahd_inl_scbram(ahd, SCB_RESIDUAL_SGPTR); in ahd_reinitialize_dataptrs()
5875 sgptr &= SG_PTR_MASK; in ahd_reinitialize_dataptrs()
5884 sg = ahd_sg_bus_to_virt(ahd, scb, sgptr); in ahd_reinitialize_dataptrs()
5896 sg = ahd_sg_bus_to_virt(ahd, scb, sgptr); in ahd_reinitialize_dataptrs()
9092 uint32_t sgptr; in ahd_calc_residual() local
9113 sgptr = ahd_le32toh(hscb->sgptr); in ahd_calc_residual()
9114 if ((sgptr & SG_STATUS_VALID) == 0) in ahd_calc_residual()
9117 sgptr &= ~SG_STATUS_VALID; in ahd_calc_residual()
9119 if ((sgptr & SG_LIST_NULL) != 0) in ahd_calc_residual()
9131 if ((sgptr & SG_FULL_RESID) != 0) { in ahd_calc_residual()