Lines Matching refs:temp

218 	uint8_t temp;
224 temp = ATMEGA_READ_1(sc, ATMEGA_UDCON);
225 ATMEGA_WRITE_1(sc, ATMEGA_UDCON, temp | ATMEGA_UDCON_RMWKUP);
250 uint8_t temp;
259 temp = ATMEGA_READ_1(sc, ATMEGA_UEINTX);
261 DPRINTFN(5, "UEINTX=0x%02x\n", temp);
263 if (!(temp & ATMEGA_UEINTX_RXSTPI)) {
320 if (temp & ATMEGA_UEINTX_RXSTPI) {
335 uint8_t temp;
351 temp = ATMEGA_READ_1(sc, ATMEGA_UEINTX);
353 DPRINTFN(5, "temp=0x%02x rem=%u\n", temp, td->remainder);
355 if (temp & ATMEGA_UEINTX_RXSTPI) {
371 if (!(temp & (ATMEGA_UEINTX_FIFOCON |
450 uint8_t temp;
463 temp = ATMEGA_READ_1(sc, ATMEGA_UEINTX);
465 DPRINTFN(5, "temp=0x%02x rem=%u\n", temp, td->remainder);
467 if (temp & ATMEGA_UEINTX_RXSTPI) {
476 temp = ATMEGA_READ_1(sc, ATMEGA_UESTA0X);
477 if (temp & 3) {
533 uint8_t temp;
542 temp = ATMEGA_READ_1(sc, ATMEGA_UEINTX);
544 DPRINTFN(5, "temp=0x%02x\n", temp);
546 if (temp & ATMEGA_UEINTX_RXSTPI) {
555 temp = ATMEGA_READ_1(sc, ATMEGA_UESTA0X);
556 if (temp & 3) {
739 uint8_t temp;
743 temp = ATMEGA_READ_1(sc, ATMEGA_USBSTA);
744 atmegadci_vbus_interrupt(sc, temp & ATMEGA_USBSTA_VBUS);
759 atmegadci_setup_standard_chain_sub(struct atmegadci_std_temp *temp)
764 td = temp->td_next;
765 temp->td = td;
768 temp->td_next = td->obj_next;
771 td->func = temp->func;
772 td->pc = temp->pc;
773 td->offset = temp->offset;
774 td->remainder = temp->len;
776 td->did_stall = temp->did_stall;
777 td->short_pkt = temp->short_pkt;
778 td->alt_next = temp->setup_alt_next;
784 struct atmegadci_std_temp temp;
795 temp.max_frame_size = xfer->max_frame_size;
801 /* setup temp */
803 temp.pc = NULL;
804 temp.td = NULL;
805 temp.td_next = xfer->td_start[0];
806 temp.offset = 0;
807 temp.setup_alt_next = xfer->flags_int.short_frames_ok;
808 temp.did_stall = !xfer->flags_int.control_stall;
818 temp.func = &atmegadci_setup_rx;
819 temp.len = xfer->frlengths[0];
820 temp.pc = xfer->frbuffers + 0;
821 temp.short_pkt = temp.len ? 1 : 0;
826 temp.setup_alt_next = 0;
829 atmegadci_setup_standard_chain_sub(&temp);
838 temp.func = &atmegadci_data_tx;
841 temp.func = &atmegadci_data_rx;
846 temp.pc = xfer->frbuffers + x;
854 temp.len = xfer->frlengths[x];
861 temp.setup_alt_next = 0;
864 temp.setup_alt_next = 0;
867 if (temp.len == 0) {
871 temp.short_pkt = 0;
877 temp.short_pkt = (xfer->flags.force_short_xfer) ? 0 : 1;
880 atmegadci_setup_standard_chain_sub(&temp);
883 temp.offset += temp.len;
886 temp.pc = xfer->frbuffers + x;
893 temp.pc = xfer->frbuffers + 0;
894 temp.len = 0;
895 temp.short_pkt = 0;
896 temp.setup_alt_next = 0;
901 temp.func = &atmegadci_data_tx_sync;
902 atmegadci_setup_standard_chain_sub(&temp);
913 temp.func = &atmegadci_data_rx;
916 temp.func = &atmegadci_data_tx;
920 atmegadci_setup_standard_chain_sub(&temp);
923 temp.func = &atmegadci_data_tx_sync;
924 atmegadci_setup_standard_chain_sub(&temp);
929 td = temp.td;
1150 uint8_t temp;
1182 temp = ATMEGA_UECFG0X_EPTYPE2;
1184 temp = ATMEGA_UECFG0X_EPTYPE3;
1186 temp = ATMEGA_UECFG0X_EPTYPE1;
1189 temp |= ATMEGA_UECFG0X_EPDIR;
1192 ATMEGA_WRITE_1(sc, ATMEGA_UECFG0X, temp);
1198 temp = ATMEGA_READ_1(sc, ATMEGA_UESTA0X);
1199 if (!(temp & ATMEGA_UESTA0X_CFGOK)) {
1440 uint32_t temp;
1458 temp = (nframes - xfer->endpoint->isoc_next) & ATMEGA_FRAME_MASK;
1461 (temp < xfer->nframes)) {
1476 temp = (xfer->endpoint->isoc_next - nframes) & ATMEGA_FRAME_MASK;
1482 usb_isoc_time_expand(&sc->sc_bus, nframes) + temp +
1586 uint8_t temp;
1903 temp = ATMEGA_READ_1(sc, ATMEGA_UESTA0X);
1904 if (!(temp & ATMEGA_UESTA0X_CFGOK)) {