Lines Matching refs:sgptr
415 void *sgptr, dma_addr_t addr, bus_size_t len, int last) in ahd_sg_setup() argument
422 sg = (struct ahd_dma64_seg *)sgptr; in ahd_sg_setup()
429 sg = (struct ahd_dma_seg *)sgptr; in ahd_sg_setup()
492 scb->hscb->sgptr = ahd_htole32(scb->sg_list_busaddr|SG_FULL_RESID); in ahd_setup_data_scb()
498 scb->hscb->sgptr = ahd_htole32(SG_LIST_NULL); in ahd_setup_noxfer_scb()
1102 uint32_t sgptr; in ahd_update_residual() local
1104 sgptr = ahd_le32toh(scb->hscb->sgptr); in ahd_update_residual()
1105 if ((sgptr & SG_STATUS_VALID) != 0) in ahd_update_residual()
1112 uint32_t sgptr; in ahd_complete_scb() local
1114 sgptr = ahd_le32toh(scb->hscb->sgptr); in ahd_complete_scb()
1115 if ((sgptr & SG_STATUS_VALID) != 0) in ahd_complete_scb()
1439 uint32_t sgptr; in ahd_run_data_fifo() local
1444 sgptr = ahd_inl_scbram(ahd, SCB_SGPTR) & ~SG_FULL_RESID; in ahd_run_data_fifo()
1445 ahd_outb(ahd, SCB_SGPTR, sgptr); in ahd_run_data_fifo()
1452 sgptr |= LAST_SEG; in ahd_run_data_fifo()
1458 ahd_outb(ahd, SG_CACHE_PRE, sgptr); in ahd_run_data_fifo()
1465 ahd_outl(ahd, SCB_RESIDUAL_SGPTR, sgptr & SG_PTR_MASK); in ahd_run_data_fifo()
1484 uint32_t sgptr; in ahd_run_data_fifo() local
1513 sgptr = ahd_inl_scbram(ahd, SCB_RESIDUAL_SGPTR); in ahd_run_data_fifo()
1526 && (sgptr & 0x80) == 0) in ahd_run_data_fifo()
1527 sgptr -= 0x100; in ahd_run_data_fifo()
1528 sgptr &= ~0xFF; in ahd_run_data_fifo()
1529 sgptr |= ahd_inb(ahd, SG_CACHE_SHADOW) in ahd_run_data_fifo()
1531 ahd_outl(ahd, SCB_RESIDUAL_SGPTR, sgptr); in ahd_run_data_fifo()
1535 sgptr | SG_LIST_NULL); in ahd_run_data_fifo()
1542 ahd_outl(ahd, SCB_SGPTR, sgptr); in ahd_run_data_fifo()
1553 uint32_t sgptr; in ahd_run_data_fifo() local
1581 sgptr = ahd_inl_scbram(ahd, SCB_RESIDUAL_SGPTR); in ahd_run_data_fifo()
1582 sgptr &= SG_PTR_MASK; in ahd_run_data_fifo()
1586 sg = ahd_sg_bus_to_virt(ahd, scb, sgptr); in ahd_run_data_fifo()
1589 sgptr += sizeof(*sg); in ahd_run_data_fifo()
1593 sg = ahd_sg_bus_to_virt(ahd, scb, sgptr); in ahd_run_data_fifo()
1598 sgptr += sizeof(*sg); in ahd_run_data_fifo()
1605 ahd_outl(ahd, SCB_RESIDUAL_SGPTR, sgptr); in ahd_run_data_fifo()
1611 sgptr |= LAST_SEG; in ahd_run_data_fifo()
1616 ahd_outb(ahd, SG_CACHE_PRE, sgptr & 0xFF); in ahd_run_data_fifo()
3617 ahd_le32toh(hscb->sgptr),
5716 uint32_t sgptr; in ahd_handle_ign_wide_residue() local
5718 sgptr = ahd_inb_scbram(ahd, SCB_RESIDUAL_SGPTR); in ahd_handle_ign_wide_residue()
5719 if ((sgptr & SG_LIST_NULL) != 0 in ahd_handle_ign_wide_residue()
5734 sgptr = ahd_inl_scbram(ahd, SCB_RESIDUAL_SGPTR); in ahd_handle_ign_wide_residue()
5736 if ((sgptr & SG_LIST_NULL) != 0) { in ahd_handle_ign_wide_residue()
5747 sgptr &= SG_PTR_MASK; in ahd_handle_ign_wide_residue()
5751 sg = ahd_sg_bus_to_virt(ahd, scb, sgptr); in ahd_handle_ign_wide_residue()
5778 sgptr = ahd_sg_virt_to_bus(ahd, scb, in ahd_handle_ign_wide_residue()
5784 sg = ahd_sg_bus_to_virt(ahd, scb, sgptr); in ahd_handle_ign_wide_residue()
5811 sgptr = ahd_sg_virt_to_bus(ahd, scb, in ahd_handle_ign_wide_residue()
5825 ahd_outl(ahd, SCB_RESIDUAL_SGPTR, sgptr); in ahd_handle_ign_wide_residue()
5847 uint32_t sgptr; in ahd_reinitialize_dataptrs() local
5880 sgptr = ahd_inl_scbram(ahd, SCB_RESIDUAL_SGPTR); in ahd_reinitialize_dataptrs()
5881 sgptr &= SG_PTR_MASK; in ahd_reinitialize_dataptrs()
5890 sg = ahd_sg_bus_to_virt(ahd, scb, sgptr); in ahd_reinitialize_dataptrs()
5902 sg = ahd_sg_bus_to_virt(ahd, scb, sgptr); in ahd_reinitialize_dataptrs()
9144 uint32_t sgptr; in ahd_calc_residual() local
9165 sgptr = ahd_le32toh(hscb->sgptr); in ahd_calc_residual()
9166 if ((sgptr & SG_STATUS_VALID) == 0) in ahd_calc_residual()
9169 sgptr &= ~SG_STATUS_VALID; in ahd_calc_residual()
9171 if ((sgptr & SG_LIST_NULL) != 0) in ahd_calc_residual()
9183 if ((sgptr & SG_FULL_RESID) != 0) { in ahd_calc_residual()