Lines Matching refs:temp

175 	uint32_t temp;
177 temp = AVR32_READ_4(sc, AVR32_CTRL);
178 temp |= set;
179 temp &= ~clear;
180 AVR32_WRITE_4(sc, AVR32_CTRL, temp);
186 uint32_t temp;
188 temp = AVR32_READ_4(sc, AVR32_IEN);
189 temp |= set;
190 temp &= ~clear;
191 AVR32_WRITE_4(sc, AVR32_IEN, temp);
279 uint32_t temp;
285 temp = AVR32_READ_4(sc, AVR32_EPTSTA(td->ep_no));
287 DPRINTFN(5, "EPTSTA(%u)=0x%08x\n", td->ep_no, temp);
289 if (!(temp & AVR32_EPTSTA_RX_SETUP)) {
295 count = AVR32_EPTSTA_BYTE_COUNT(temp);
334 if (temp & AVR32_EPTSTA_RX_SETUP) {
354 uint32_t temp;
367 temp = AVR32_READ_4(sc, AVR32_EPTSTA(td->ep_no));
369 DPRINTFN(5, "EPTSTA(%u)=0x%08x\n", td->ep_no, temp);
371 if (temp & AVR32_EPTSTA_RX_SETUP) {
387 if (!(temp & AVR32_EPTSTA_RX_BK_RDY)) {
392 count = AVR32_EPTSTA_BYTE_COUNT(temp);
421 (AVR32_EPTSTA_CURRENT_BANK(temp) << td->bank_shift) +
454 uint32_t temp;
464 temp = AVR32_READ_4(sc, AVR32_EPTSTA(td->ep_no));
466 DPRINTFN(5, "EPTSTA(%u)=0x%08x\n", td->ep_no, temp);
468 if (temp & AVR32_EPTSTA_RX_SETUP) {
476 if (temp & AVR32_EPTSTA_TX_PK_RDY) {
496 (AVR32_EPTSTA_CURRENT_BANK(temp) << td->bank_shift) +
526 uint32_t temp;
532 temp = AVR32_READ_4(sc, AVR32_EPTSTA(td->ep_no));
534 DPRINTFN(5, "EPTSTA(%u)=0x%08x\n", td->ep_no, temp);
536 if (temp & AVR32_EPTSTA_RX_SETUP) {
545 if (AVR32_EPTSTA_BUSY_BANK_STA(temp) != 0) {
726 avr32dci_setup_standard_chain_sub(struct avr32dci_std_temp *temp)
731 td = temp->td_next;
732 temp->td = td;
735 temp->td_next = td->obj_next;
738 td->func = temp->func;
739 td->pc = temp->pc;
740 td->offset = temp->offset;
741 td->remainder = temp->len;
743 td->did_stall = temp->did_stall;
744 td->short_pkt = temp->short_pkt;
745 td->alt_next = temp->setup_alt_next;
751 struct avr32dci_std_temp temp;
762 temp.max_frame_size = xfer->max_frame_size;
768 /* setup temp */
770 temp.pc = NULL;
771 temp.td = NULL;
772 temp.td_next = xfer->td_start[0];
773 temp.offset = 0;
774 temp.setup_alt_next = xfer->flags_int.short_frames_ok;
775 temp.did_stall = !xfer->flags_int.control_stall;
785 temp.func = &avr32dci_setup_rx;
786 temp.len = xfer->frlengths[0];
787 temp.pc = xfer->frbuffers + 0;
788 temp.short_pkt = temp.len ? 1 : 0;
793 temp.setup_alt_next = 0;
795 avr32dci_setup_standard_chain_sub(&temp);
804 temp.func = &avr32dci_data_tx;
807 temp.func = &avr32dci_data_rx;
812 temp.pc = xfer->frbuffers + x;
820 temp.len = xfer->frlengths[x];
827 temp.setup_alt_next = 0;
830 temp.setup_alt_next = 0;
833 if (temp.len == 0) {
837 temp.short_pkt = 0;
843 temp.short_pkt = (xfer->flags.force_short_xfer) ? 0 : 1;
846 avr32dci_setup_standard_chain_sub(&temp);
849 temp.offset += temp.len;
852 temp.pc = xfer->frbuffers + x;
859 temp.pc = xfer->frbuffers + 0;
860 temp.len = 0;
861 temp.short_pkt = 0;
862 temp.setup_alt_next = 0;
867 temp.func = &avr32dci_data_tx_sync;
868 avr32dci_setup_standard_chain_sub(&temp);
878 temp.func = &avr32dci_data_rx;
881 temp.func = &avr32dci_data_tx;
885 avr32dci_setup_standard_chain_sub(&temp);
888 temp.func = &avr32dci_data_tx_sync;
889 avr32dci_setup_standard_chain_sub(&temp);
894 td = temp.td;
1113 uint32_t temp;
1134 temp = AVR32_EPTCFG_TYPE_BULK;
1136 temp = AVR32_EPTCFG_TYPE_INTR;
1138 temp = AVR32_EPTCFG_TYPE_ISOC |
1142 temp |= AVR32_EPTCFG_EPDIR_IN;
1151 temp |= AVR32_EPTCFG_EPSIZE(n);
1155 temp |= AVR32_EPTCFG_NBANK(1);
1157 temp |= AVR32_EPTCFG_NBANK(2);
1159 temp |= AVR32_EPTCFG_NBANK(3);
1161 AVR32_WRITE_4(sc, AVR32_EPTCFG(ep_no), temp);
1163 temp = AVR32_READ_4(sc, AVR32_EPTCFG(ep_no));
1165 if (!(temp & AVR32_EPTCFG_EPT_MAPD)) {
1370 uint32_t temp;
1387 temp = (nframes - xfer->endpoint->isoc_next) & AVR32_FRAME_MASK;
1390 (temp < xfer->nframes)) {
1405 temp = (xfer->endpoint->isoc_next - nframes) & AVR32_FRAME_MASK;
1411 usb_isoc_time_expand(&sc->sc_bus, nframes) + temp +
1526 uint32_t temp;
1834 temp = AVR32_READ_4(sc, AVR32_EPTCFG(0));
1836 if (!(temp & AVR32_EPTCFG_EPT_MAPD)) {
2012 uint32_t temp;
2019 temp = pf->max_in_frame_size | pf->max_out_frame_size;
2021 while ((temp /= 2))