Lines Matching refs:desc
271 struct dbri_mem desc[DBRI_NO_DESCS]; /* Xmit/receive descriptors */ member
285 int desc; /* Index of active descriptor */ member
769 dbri->pipes[n].desc = dbri->pipes[n].first_desc = -1; in dbri_initialize()
813 return ((pipe >= 0) && (dbri->pipes[pipe].desc != -1)); in pipe_active()
824 int desc; in reset_pipe() local
846 desc = dbri->pipes[pipe].first_desc; in reset_pipe()
847 if (desc >= 0) in reset_pipe()
849 dbri->dma->desc[desc].ba = 0; in reset_pipe()
850 dbri->dma->desc[desc].nda = 0; in reset_pipe()
851 desc = dbri->next_desc[desc]; in reset_pipe()
852 } while (desc != -1 && desc != dbri->pipes[pipe].first_desc); in reset_pipe()
854 dbri->pipes[pipe].desc = -1; in reset_pipe()
883 dbri->pipes[pipe].desc = -1; in setup_pipe()
1090 int desc; in setup_descs() local
1136 desc = dbri->pipes[info->pipe].first_desc; in setup_descs()
1137 if (desc >= 0) in setup_descs()
1139 dbri->dma->desc[desc].ba = 0; in setup_descs()
1140 dbri->dma->desc[desc].nda = 0; in setup_descs()
1141 desc = dbri->next_desc[desc]; in setup_descs()
1142 } while (desc != -1 && in setup_descs()
1143 desc != dbri->pipes[info->pipe].first_desc); in setup_descs()
1145 dbri->pipes[info->pipe].desc = -1; in setup_descs()
1148 desc = 0; in setup_descs()
1152 for (; desc < DBRI_NO_DESCS; desc++) { in setup_descs()
1153 if (!dbri->dma->desc[desc].ba) in setup_descs()
1157 if (desc == DBRI_NO_DESCS) { in setup_descs()
1170 dbri->next_desc[desc] = -1; in setup_descs()
1171 dbri->dma->desc[desc].ba = dvma_buffer; in setup_descs()
1172 dbri->dma->desc[desc].nda = 0; in setup_descs()
1175 dbri->dma->desc[desc].word1 = DBRI_TD_CNT(mylen); in setup_descs()
1176 dbri->dma->desc[desc].word4 = 0; in setup_descs()
1177 dbri->dma->desc[desc].word1 |= DBRI_TD_F | DBRI_TD_B; in setup_descs()
1179 dbri->dma->desc[desc].word1 = 0; in setup_descs()
1180 dbri->dma->desc[desc].word4 = in setup_descs()
1185 first_desc = desc; in setup_descs()
1187 dbri->next_desc[last_desc] = desc; in setup_descs()
1188 dbri->dma->desc[last_desc].nda = in setup_descs()
1189 dvma_addr + dbri_dma_off(desc, desc); in setup_descs()
1192 last_desc = desc; in setup_descs()
1203 dbri->dma->desc[last_desc].nda = in setup_descs()
1204 dvma_addr + dbri_dma_off(desc, first_desc); in setup_descs()
1207 dbri->pipes[info->pipe].desc = first_desc; in setup_descs()
1210 for (desc = first_desc; desc != -1;) { in setup_descs()
1212 desc, in setup_descs()
1213 dbri->dma->desc[desc].word1, in setup_descs()
1214 dbri->dma->desc[desc].ba, in setup_descs()
1215 dbri->dma->desc[desc].nda, dbri->dma->desc[desc].word4); in setup_descs()
1216 desc = dbri->next_desc[desc]; in setup_descs()
1217 if (desc == first_desc) in setup_descs()
1733 dbri_dma_off(desc, first_td); in xmit_descs()
1737 dbri->pipes[info->pipe].desc = first_td; in xmit_descs()
1755 dbri_dma_off(desc, first_td); in xmit_descs()
1759 dbri->pipes[info->pipe].desc = first_td; in xmit_descs()
1783 int td = dbri->pipes[pipe].desc; in transmission_complete_intr()
1792 status = DBRI_TD_STATUS(dbri->dma->desc[td].word4); in transmission_complete_intr()
1798 dbri->dma->desc[td].word4 = 0; /* Reset it for next time. */ in transmission_complete_intr()
1799 info->offset += DBRI_RD_CNT(dbri->dma->desc[td].word1); in transmission_complete_intr()
1802 dbri->pipes[pipe].desc = td; in transmission_complete_intr()
1814 int rd = dbri->pipes[pipe].desc; in reception_complete_intr()
1822 dbri->pipes[pipe].desc = dbri->next_desc[rd]; in reception_complete_intr()
1823 status = dbri->dma->desc[rd].word1; in reception_complete_intr()
1824 dbri->dma->desc[rd].word1 = 0; /* Reset it for next time. */ in reception_complete_intr()
1880 int td = dbri->pipes[pipe].desc; in dbri_process_one_interrupt()
1882 dbri->dma->desc[td].word4 = 0; in dbri_process_one_interrupt()
1887 *(cmd++) = dbri->dma_dvma + dbri_dma_off(desc, td); in dbri_process_one_interrupt()
2497 pptr->sdp, pptr->desc, in dbri_debug_read()