Lines Matching defs:temp

686 	uint8_t temp;
691 temp = (sqtd->qtd_next & htohc32(sc, EHCI_LINK_TERMINATE)) ? 1 : 0;
692 return (temp);
1483 ehci_setup_standard_chain_sub(struct ehci_std_temp *temp)
1497 terminate = temp->sc->sc_terminate_self;
1498 qtd_altnext = temp->sc->sc_terminate_self;
1501 shortpkt_old = temp->shortpkt;
1502 len_old = temp->len;
1507 td = temp->td;
1508 td_next = temp->td_next;
1511 if (temp->len == 0) {
1512 if (temp->shortpkt) {
1517 temp->shortpkt = 1;
1521 average = temp->average;
1523 if (temp->len < average) {
1524 if (temp->len % temp->max_frame_size) {
1525 temp->shortpkt = 1;
1527 average = temp->len;
1544 temp->len -= average;
1551 temp->qtd_status |
1552 htohc32(temp->sc, EHCI_QTD_IOC |
1556 if (temp->auto_data_toggle == 0) {
1559 temp->qtd_status ^=
1560 htohc32(temp->sc, EHCI_QTD_TOGGLE_MASK);
1578 if (temp->auto_data_toggle == 0) {
1581 if (((average + temp->max_frame_size - 1) /
1582 temp->max_frame_size) & 1) {
1583 temp->qtd_status ^=
1584 htohc32(temp->sc, EHCI_QTD_TOGGLE_MASK);
1591 temp->len -= average;
1595 usbd_get_page(temp->pc, buf_offset, &buf_res);
1598 htohc32(temp->sc, buf_res.physaddr);
1600 htohc32(temp->sc, (unsigned int)buf_res.buffer);
1609 usbd_get_page(temp->pc, buf_offset, &buf_res);
1611 htohc32(temp->sc,
1630 usbd_get_page(temp->pc, buf_offset - 1, &buf_res);
1632 htohc32(temp->sc,
1663 if (temp->last_frame) {
1669 if (temp->setup_alt_next && td_next) {
1677 temp->shortpkt = shortpkt_old;
1678 temp->len = len_old;
1681 temp->td = td;
1682 temp->td_next = td_next;
1688 struct ehci_std_temp temp;
1701 temp.average = xfer->max_hc_frame_size;
1702 temp.max_frame_size = xfer->max_frame_size;
1703 temp.sc = EHCI_BUS2SC(xfer->xroot->bus);
1714 temp.td = NULL;
1715 temp.td_next = td;
1716 temp.qtd_status = 0;
1717 temp.last_frame = 0;
1718 temp.setup_alt_next = xfer->flags_int.short_frames_ok;
1723 temp.qtd_status |=
1724 htohc32(temp.sc, EHCI_QTD_SET_TOGGLE(1U));
1726 temp.auto_data_toggle = 0;
1728 temp.auto_data_toggle = 1;
1734 temp.qtd_status |=
1735 htohc32(temp.sc, EHCI_QTD_SET_CERR(3));
1743 temp.qtd_status &=
1744 htohc32(temp.sc, EHCI_QTD_SET_CERR(3));
1745 temp.qtd_status |= htohc32(temp.sc,
1750 temp.len = xfer->frlengths[0];
1751 temp.pc = xfer->frbuffers + 0;
1752 temp.shortpkt = temp.len ? 1 : 0;
1757 temp.last_frame = 1;
1758 temp.setup_alt_next = 0;
1761 ehci_setup_standard_chain_sub(&temp);
1771 temp.len = xfer->frlengths[x];
1772 temp.pc = xfer->frbuffers + x;
1780 temp.last_frame = 1;
1781 temp.setup_alt_next = 0;
1784 temp.last_frame = 1;
1785 temp.setup_alt_next = 0;
1790 temp.qtd_status &=
1791 htohc32(temp.sc, EHCI_QTD_SET_CERR(3) |
1794 if (temp.len == 0) {
1797 temp.shortpkt = 0;
1802 temp.shortpkt = (xfer->flags.force_short_xfer) ? 0 : 1;
1807 temp.qtd_status |=
1809 htohc32(temp.sc, EHCI_QTD_ACTIVE |
1811 htohc32(temp.sc, EHCI_QTD_ACTIVE |
1814 ehci_setup_standard_chain_sub(&temp);
1826 temp.qtd_status &= htohc32(temp.sc, EHCI_QTD_SET_CERR(3) |
1828 temp.qtd_status |=
1830 htohc32(temp.sc, EHCI_QTD_ACTIVE |
1833 htohc32(temp.sc, EHCI_QTD_ACTIVE |
1837 temp.len = 0;
1838 temp.pc = NULL;
1839 temp.shortpkt = 0;
1840 temp.last_frame = 1;
1841 temp.setup_alt_next = 0;
1843 ehci_setup_standard_chain_sub(&temp);
1845 td = temp.td;
1850 td->qtd_next = htohc32(temp.sc, EHCI_LINK_TERMINATE);
1851 td->qtd_altnext = htohc32(temp.sc, EHCI_LINK_TERMINATE);
1863 ehci_dump_sqtds(temp.sc,
1899 if (temp.auto_data_toggle == 0) {
1904 qh->qh_endp = htohc32(temp.sc, qh_endp);
1913 qh->qh_endphub = htohc32(temp.sc, qh_endphub);
1918 if (temp.auto_data_toggle && xfer->endpoint->toggle_next) {
1920 qh->qh_qtd.qtd_status = htohc32(temp.sc, EHCI_QTD_SET_TOGGLE(1U));
1929 htohc32(temp.sc, EHCI_LINK_TERMINATE);
2180 uint32_t temp;
2189 temp = EOREAD4(sc, EHCI_USBCMD);
2190 if (!(temp & EHCI_CMD_IAAD))
2191 EOWRITE4(sc, EHCI_USBCMD, temp | EHCI_CMD_IAAD);
2404 uint32_t temp;
2531 temp = buf_res.physaddr & ~0xFFF;
2533 temp = (unsigned int)buf_res.buffer & ~0xFFF;
2537 temp = 0;
2543 temp |= 1; /* T-count = 1, TP = ALL */
2548 temp |= (uint32_t)tlen; /* T-count = [1..6] */
2549 temp |= 8; /* TP = Begin */
2571 td->sitd_bp[1] = htohc32(sc, temp);
2649 uint32_t temp;
2673 temp =
2678 temp |= EHCI_ITD_SET_DIR_IN;
2681 td->itd_bp[1] = htohc32(sc, temp);
3070 sc->sc_hub_desc.temp[0] = sc->sc_conf;
3125 sc->sc_hub_desc.temp,
3126 sizeof(sc->sc_hub_desc.temp),
3136 sc->sc_hub_desc.temp[0] = 0;
3266 (void)memset_s(sc->sc_hub_desc.temp, sizeof(sc->sc_hub_desc.temp), 0, len);
3840 uint32_t temp;
3849 temp = EOREAD4(sc, EHCI_USBCMD);
3851 temp &= ~(EHCI_CMD_ASE | EHCI_CMD_PSE);
3856 temp |= EHCI_CMD_ASE;
3861 temp |= EHCI_CMD_PSE;
3863 EOWRITE4(sc, EHCI_USBCMD, temp);