Lines Matching refs:htohc32
308 sc->sc_terminate_self = htohc32(sc, buf_res.physaddr); in ehci_init()
312 htohc32(sc, EHCI_LINK_TERMINATE); in ehci_init()
314 htohc32(sc, EHCI_LINK_TERMINATE); in ehci_init()
316 htohc32(sc, EHCI_QTD_HALTED); in ehci_init()
332 htohc32(sc, buf_res.physaddr) | in ehci_init()
333 htohc32(sc, EHCI_LINK_QH); in ehci_init()
336 htohc32(sc, EHCI_QH_SET_EPS(EHCI_QH_SPEED_HIGH)); in ehci_init()
338 htohc32(sc, EHCI_QH_SET_MULT(1)); in ehci_init()
342 htohc32(sc, EHCI_LINK_TERMINATE); in ehci_init()
344 htohc32(sc, EHCI_LINK_TERMINATE); in ehci_init()
346 htohc32(sc, EHCI_QTD_HALTED); in ehci_init()
378 qh_t->qh_link = htohc32(sc, EHCI_LINK_TERMINATE); in ehci_init()
398 htohc32(sc, buf_res.physaddr) | in ehci_init()
399 htohc32(sc, EHCI_LINK_SITD); in ehci_init()
402 htohc32(sc, EHCI_LINK_TERMINATE); in ehci_init()
423 htohc32(sc, buf_res.physaddr) | in ehci_init()
424 htohc32(sc, EHCI_LINK_ITD); in ehci_init()
459 htohc32(sc, buf_res.physaddr) | in ehci_init()
460 htohc32(sc, EHCI_LINK_QH); in ehci_init()
464 htohc32(sc, EHCI_QH_SET_EPS(EHCI_QH_SPEED_HIGH) | EHCI_QH_HRECL); in ehci_init()
465 qh_t->qh_endphub = htohc32(sc, EHCI_QH_SET_MULT(1)); in ehci_init()
470 qh_t->qh_qtd.qtd_next = htohc32(sc, EHCI_LINK_TERMINATE); in ehci_init()
471 qh_t->qh_qtd.qtd_altnext = htohc32(sc, EHCI_LINK_TERMINATE); in ehci_init()
472 qh_t->qh_qtd.qtd_status = htohc32(sc, EHCI_QTD_HALTED); in ehci_init()
693 temp = (sqtd->qtd_next & htohc32(sc, EHCI_LINK_TERMINATE)) ? 1 : 0; in ehci_dump_sqtd()
753 (sitd->sitd_portaddr & htohc32(sc, EHCI_SITD_SET_DIR_IN)) in ehci_dump_sitd()
761 (sitd->sitd_status & htohc32(sc, EHCI_SITD_ACTIVE)) ? "ACTIVE" : "", in ehci_dump_sitd()
778 (itd->itd_status[0] & htohc32(sc, EHCI_ITD_ACTIVE)) ? "ACTIVE" : ""); in ehci_dump_itd()
780 (itd->itd_status[1] & htohc32(sc, EHCI_ITD_ACTIVE)) ? "ACTIVE" : ""); in ehci_dump_itd()
782 (itd->itd_status[2] & htohc32(sc, EHCI_ITD_ACTIVE)) ? "ACTIVE" : ""); in ehci_dump_itd()
784 (itd->itd_status[3] & htohc32(sc, EHCI_ITD_ACTIVE)) ? "ACTIVE" : ""); in ehci_dump_itd()
786 (itd->itd_status[4] & htohc32(sc, EHCI_ITD_ACTIVE)) ? "ACTIVE" : ""); in ehci_dump_itd()
788 (itd->itd_status[5] & htohc32(sc, EHCI_ITD_ACTIVE)) ? "ACTIVE" : ""); in ehci_dump_itd()
790 (itd->itd_status[6] & htohc32(sc, EHCI_ITD_ACTIVE)) ? "ACTIVE" : ""); in ehci_dump_itd()
792 (itd->itd_status[7] & htohc32(sc, EHCI_ITD_ACTIVE)) ? "ACTIVE" : ""); in ehci_dump_itd()
1256 if (!(status & htohc32(sc, EHCI_ITD_ACTIVE))) { in ehci_check_transfer()
1562 htohc32(temp->sc, EHCI_QTD_IOC | in ehci_setup_standard_chain_sub()
1572 htohc32(temp->sc, EHCI_QTD_TOGGLE_MASK); in ehci_setup_standard_chain_sub()
1598 htohc32(temp->sc, EHCI_QTD_TOGGLE_MASK); in ehci_setup_standard_chain_sub()
1612 htohc32(temp->sc, buf_res.physaddr); in ehci_setup_standard_chain_sub()
1614 htohc32(temp->sc, (unsigned int)buf_res.buffer); in ehci_setup_standard_chain_sub()
1625 htohc32(temp->sc, in ehci_setup_standard_chain_sub()
1646 htohc32(temp->sc, in ehci_setup_standard_chain_sub()
1738 htohc32(temp.sc, EHCI_QTD_SET_TOGGLE(1U)); in ehci_setup_standard_chain()
1749 htohc32(temp.sc, EHCI_QTD_SET_CERR(3)); in ehci_setup_standard_chain()
1759 htohc32(temp.sc, EHCI_QTD_SET_CERR(3)); in ehci_setup_standard_chain()
1760 temp.qtd_status |= htohc32(temp.sc, in ehci_setup_standard_chain()
1807 htohc32(temp.sc, EHCI_QTD_SET_CERR(3) | in ehci_setup_standard_chain()
1827 htohc32(temp.sc, EHCI_QTD_ACTIVE | in ehci_setup_standard_chain()
1829 htohc32(temp.sc, EHCI_QTD_ACTIVE | in ehci_setup_standard_chain()
1845 temp.qtd_status &= htohc32(temp.sc, EHCI_QTD_SET_CERR(3) | in ehci_setup_standard_chain()
1849 htohc32(temp.sc, EHCI_QTD_ACTIVE | in ehci_setup_standard_chain()
1852 htohc32(temp.sc, EHCI_QTD_ACTIVE | in ehci_setup_standard_chain()
1869 td->qtd_next = htohc32(temp.sc, EHCI_LINK_TERMINATE); in ehci_setup_standard_chain()
1870 td->qtd_altnext = htohc32(temp.sc, EHCI_LINK_TERMINATE); in ehci_setup_standard_chain()
1924 qh->qh_endp = htohc32(temp.sc, qh_endp); in ehci_setup_standard_chain()
1933 qh->qh_endphub = htohc32(temp.sc, qh_endphub); in ehci_setup_standard_chain()
1940 qh->qh_qtd.qtd_status = htohc32(temp.sc, EHCI_QTD_SET_TOGGLE(1U)); in ehci_setup_standard_chain()
1949 htohc32(temp.sc, EHCI_LINK_TERMINATE); in ehci_setup_standard_chain()
2386 sitd_portaddr = htohc32(sc, sitd_portaddr); in ehci_device_isoc_fs_open()
2403 td->sitd_back = htohc32(sc, EHCI_LINK_TERMINATE); in ehci_device_isoc_fs_open()
2542 td->sitd_bp[0] = htohc32(sc, buf_res.physaddr); in ehci_device_isoc_fs_enter()
2544 td->sitd_bp[0] = htohc32(sc, (unsigned int)buf_res.buffer); in ehci_device_isoc_fs_enter()
2594 td->sitd_bp[1] = htohc32(sc, temp); in ehci_device_isoc_fs_enter()
2596 td->sitd_mask = htohc32(sc, sitd_mask); in ehci_device_isoc_fs_enter()
2599 td->sitd_status = htohc32(sc, in ehci_device_isoc_fs_enter()
2604 td->sitd_status = htohc32(sc, in ehci_device_isoc_fs_enter()
2694 td->itd_bp[0] = htohc32(sc, in ehci_device_isoc_hs_open()
2706 td->itd_bp[1] = htohc32(sc, temp); in ehci_device_isoc_hs_open()
2709 td->itd_bp[2] = htohc32(sc, xfer->max_packet_count & 3); in ehci_device_isoc_hs_open()
2836 td->itd_status[td_no] = htohc32(sc, status);
2869 td->itd_bp[0] &= htohc32(sc, 0xFFF);
2870 td->itd_bp[0] |= htohc32(sc, page_addr);
2880 td->itd_status[x] |= htohc32(sc, status);
2910 td->itd_bp[page_no] &= htohc32(sc, 0xFFF);
2911 td->itd_bp[page_no] |= htohc32(sc, page_addr);
2917 td->itd_status[td_no - 1] |= htohc32(sc, EHCI_ITD_IOC);
3612 td->itd_self = htohc32(sc, page_info.physaddr | EHCI_LINK_ITD);
3614 td->itd_self = htohc32(sc, (unsigned int)page_info.buffer | EHCI_LINK_ITD);
3640 td->sitd_self = htohc32(sc, page_info.physaddr | EHCI_LINK_SITD);
3642 td->sitd_self = htohc32(sc, (unsigned int)page_info.buffer | EHCI_LINK_SITD);
3668 qtd->qtd_self = htohc32(sc, page_info.physaddr);
3670 qtd->qtd_self = htohc32(sc, (unsigned int)page_info.buffer);
3700 qh->qh_self = htohc32(sc, page_info.physaddr | EHCI_LINK_QH);
3702 qh->qh_self = htohc32(sc, (unsigned int)page_info.buffer | EHCI_LINK_QH);