Home
last modified time | relevance | path

Searched refs:win_p (Results 1 – 4 of 4) sorted by relevance

/titanic_44/usr/src/uts/sun4u/io/pci/
H A Dpci_dma.c1133 pci_dma_win_t *win_p = mp->dmai_winlst, *win2_p; in pci_dma_freewin() local
1134 for (win2_p = win_p; win_p; win2_p = win_p) { in pci_dma_freewin()
1135 win_p = win2_p->win_next; in pci_dma_freewin()
1184 pci_dma_win_t *win_p = kmem_alloc(sizeof (pci_dma_win_t) + sz, in pci_dma_newwin() local
1186 if (!win_p) in pci_dma_newwin()
1189 win_p->win_next = NULL; in pci_dma_newwin()
1190 win_p->win_ncookies = cookie_no; in pci_dma_newwin()
1191 win_p->win_curseg = 0; /* start from segment 0 */ in pci_dma_newwin()
1192 win_p->win_size = IOMMU_PTOB(end_idx - start_idx + 1); in pci_dma_newwin()
1195 cookie_p = (ddi_dma_cookie_t *)(win_p + 1); in pci_dma_newwin()
[all …]
H A Dpci.c851 pci_dma_win_t *win_p = mp->dmai_winlst; in pci_dma_win() local
853 for (i = 0; i < win; win_p = win_p->win_next, i++) in pci_dma_win()
855 ck_p = (ddi_dma_cookie_t *)(win_p + 1); in pci_dma_win()
857 mp->dmai_offset = win_p->win_offset; in pci_dma_win()
858 mp->dmai_size = win_p->win_size; in pci_dma_win()
861 win_p->win_curseg = 0; in pci_dma_win()
863 *ccountp = win_p->win_ncookies; in pci_dma_win()
/titanic_44/usr/src/uts/sun4/io/px/
H A Dpx_dma.c911 px_dma_win_t *win_p = mp->dmai_winlst, *win2_p; in px_dma_freewin() local
912 for (win2_p = win_p; win_p; win2_p = win_p) { in px_dma_freewin()
913 win_p = win2_p->win_next; in px_dma_freewin()
963 px_dma_win_t *win_p = kmem_zalloc(sizeof (px_dma_win_t) + sz, in px_dma_newwin() local
968 if (!win_p) in px_dma_newwin()
971 win_p->win_next = NULL; in px_dma_newwin()
972 win_p->win_ncookies = cookie_no; in px_dma_newwin()
973 win_p->win_curseg = 0; /* start from segment 0 */ in px_dma_newwin()
974 win_p->win_size = MMU_PTOB(end_idx - start_idx + 1); in px_dma_newwin()
977 cookie_p = (ddi_dma_cookie_t *)(win_p + 1); in px_dma_newwin()
[all …]
H A Dpx.c1128 px_dma_win_t *win_p = mp->dmai_winlst; in px_dma_win() local
1130 for (i = 0; i < win; win_p = win_p->win_next, i++) {}; in px_dma_win()
1131 ck_p = (ddi_dma_cookie_t *)(win_p + 1); in px_dma_win()
1133 mp->dmai_offset = win_p->win_offset; in px_dma_win()
1134 mp->dmai_size = win_p->win_size; in px_dma_win()
1137 win_p->win_curseg = 0; in px_dma_win()
1139 *ccountp = win_p->win_ncookies; in px_dma_win()