Lines Matching refs:temp

177 	uint32_t temp;  in avr32dci_mod_ctrl()  local
179 temp = AVR32_READ_4(sc, AVR32_CTRL); in avr32dci_mod_ctrl()
180 temp |= set; in avr32dci_mod_ctrl()
181 temp &= ~clear; in avr32dci_mod_ctrl()
182 AVR32_WRITE_4(sc, AVR32_CTRL, temp); in avr32dci_mod_ctrl()
188 uint32_t temp; in avr32dci_mod_ien() local
190 temp = AVR32_READ_4(sc, AVR32_IEN); in avr32dci_mod_ien()
191 temp |= set; in avr32dci_mod_ien()
192 temp &= ~clear; in avr32dci_mod_ien()
193 AVR32_WRITE_4(sc, AVR32_IEN, temp); in avr32dci_mod_ien()
281 uint32_t temp; in avr32dci_setup_rx() local
287 temp = AVR32_READ_4(sc, AVR32_EPTSTA(td->ep_no)); in avr32dci_setup_rx()
289 DPRINTFN(5, "EPTSTA(%u)=0x%08x\n", td->ep_no, temp); in avr32dci_setup_rx()
291 if (!(temp & AVR32_EPTSTA_RX_SETUP)) { in avr32dci_setup_rx()
297 count = AVR32_EPTSTA_BYTE_COUNT(temp); in avr32dci_setup_rx()
336 if (temp & AVR32_EPTSTA_RX_SETUP) { in avr32dci_setup_rx()
356 uint32_t temp; in avr32dci_data_rx() local
369 temp = AVR32_READ_4(sc, AVR32_EPTSTA(td->ep_no)); in avr32dci_data_rx()
371 DPRINTFN(5, "EPTSTA(%u)=0x%08x\n", td->ep_no, temp); in avr32dci_data_rx()
373 if (temp & AVR32_EPTSTA_RX_SETUP) { in avr32dci_data_rx()
389 if (!(temp & AVR32_EPTSTA_RX_BK_RDY)) { in avr32dci_data_rx()
394 count = AVR32_EPTSTA_BYTE_COUNT(temp); in avr32dci_data_rx()
423 (AVR32_EPTSTA_CURRENT_BANK(temp) << td->bank_shift) + in avr32dci_data_rx()
456 uint32_t temp; in avr32dci_data_tx() local
466 temp = AVR32_READ_4(sc, AVR32_EPTSTA(td->ep_no)); in avr32dci_data_tx()
468 DPRINTFN(5, "EPTSTA(%u)=0x%08x\n", td->ep_no, temp); in avr32dci_data_tx()
470 if (temp & AVR32_EPTSTA_RX_SETUP) { in avr32dci_data_tx()
478 if (temp & AVR32_EPTSTA_TX_PK_RDY) { in avr32dci_data_tx()
498 (AVR32_EPTSTA_CURRENT_BANK(temp) << td->bank_shift) + in avr32dci_data_tx()
528 uint32_t temp; in avr32dci_data_tx_sync() local
534 temp = AVR32_READ_4(sc, AVR32_EPTSTA(td->ep_no)); in avr32dci_data_tx_sync()
536 DPRINTFN(5, "EPTSTA(%u)=0x%08x\n", td->ep_no, temp); in avr32dci_data_tx_sync()
538 if (temp & AVR32_EPTSTA_RX_SETUP) { in avr32dci_data_tx_sync()
547 if (AVR32_EPTSTA_BUSY_BANK_STA(temp) != 0) { in avr32dci_data_tx_sync()
728 avr32dci_setup_standard_chain_sub(struct avr32dci_std_temp *temp) in avr32dci_setup_standard_chain_sub() argument
733 td = temp->td_next; in avr32dci_setup_standard_chain_sub()
734 temp->td = td; in avr32dci_setup_standard_chain_sub()
737 temp->td_next = td->obj_next; in avr32dci_setup_standard_chain_sub()
740 td->func = temp->func; in avr32dci_setup_standard_chain_sub()
741 td->pc = temp->pc; in avr32dci_setup_standard_chain_sub()
742 td->offset = temp->offset; in avr32dci_setup_standard_chain_sub()
743 td->remainder = temp->len; in avr32dci_setup_standard_chain_sub()
745 td->did_stall = temp->did_stall; in avr32dci_setup_standard_chain_sub()
746 td->short_pkt = temp->short_pkt; in avr32dci_setup_standard_chain_sub()
747 td->alt_next = temp->setup_alt_next; in avr32dci_setup_standard_chain_sub()
753 struct avr32dci_std_temp temp; in avr32dci_setup_standard_chain() local
764 temp.max_frame_size = xfer->max_frame_size; in avr32dci_setup_standard_chain()
772 temp.pc = NULL; in avr32dci_setup_standard_chain()
773 temp.td = NULL; in avr32dci_setup_standard_chain()
774 temp.td_next = xfer->td_start[0]; in avr32dci_setup_standard_chain()
775 temp.offset = 0; in avr32dci_setup_standard_chain()
776 temp.setup_alt_next = xfer->flags_int.short_frames_ok || in avr32dci_setup_standard_chain()
778 temp.did_stall = !xfer->flags_int.control_stall; in avr32dci_setup_standard_chain()
788 temp.func = &avr32dci_setup_rx; in avr32dci_setup_standard_chain()
789 temp.len = xfer->frlengths[0]; in avr32dci_setup_standard_chain()
790 temp.pc = xfer->frbuffers + 0; in avr32dci_setup_standard_chain()
791 temp.short_pkt = temp.len ? 1 : 0; in avr32dci_setup_standard_chain()
796 temp.setup_alt_next = 0; in avr32dci_setup_standard_chain()
798 avr32dci_setup_standard_chain_sub(&temp); in avr32dci_setup_standard_chain()
807 temp.func = &avr32dci_data_tx; in avr32dci_setup_standard_chain()
810 temp.func = &avr32dci_data_rx; in avr32dci_setup_standard_chain()
815 temp.pc = xfer->frbuffers + x; in avr32dci_setup_standard_chain()
823 temp.len = xfer->frlengths[x]; in avr32dci_setup_standard_chain()
830 temp.setup_alt_next = 0; in avr32dci_setup_standard_chain()
833 temp.setup_alt_next = 0; in avr32dci_setup_standard_chain()
836 if (temp.len == 0) { in avr32dci_setup_standard_chain()
840 temp.short_pkt = 0; in avr32dci_setup_standard_chain()
846 temp.short_pkt = (xfer->flags.force_short_xfer) ? 0 : 1; in avr32dci_setup_standard_chain()
849 avr32dci_setup_standard_chain_sub(&temp); in avr32dci_setup_standard_chain()
852 temp.offset += temp.len; in avr32dci_setup_standard_chain()
855 temp.pc = xfer->frbuffers + x; in avr32dci_setup_standard_chain()
862 temp.pc = xfer->frbuffers + 0; in avr32dci_setup_standard_chain()
863 temp.len = 0; in avr32dci_setup_standard_chain()
864 temp.short_pkt = 0; in avr32dci_setup_standard_chain()
865 temp.setup_alt_next = 0; in avr32dci_setup_standard_chain()
870 temp.func = &avr32dci_data_tx_sync; in avr32dci_setup_standard_chain()
871 avr32dci_setup_standard_chain_sub(&temp); in avr32dci_setup_standard_chain()
881 temp.func = &avr32dci_data_rx; in avr32dci_setup_standard_chain()
884 temp.func = &avr32dci_data_tx; in avr32dci_setup_standard_chain()
888 avr32dci_setup_standard_chain_sub(&temp); in avr32dci_setup_standard_chain()
891 temp.func = &avr32dci_data_tx_sync; in avr32dci_setup_standard_chain()
892 avr32dci_setup_standard_chain_sub(&temp); in avr32dci_setup_standard_chain()
897 td = temp.td; in avr32dci_setup_standard_chain()
1117 uint32_t temp; in avr32dci_clear_stall_sub() local
1138 temp = AVR32_EPTCFG_TYPE_BULK; in avr32dci_clear_stall_sub()
1140 temp = AVR32_EPTCFG_TYPE_INTR; in avr32dci_clear_stall_sub()
1142 temp = AVR32_EPTCFG_TYPE_ISOC | in avr32dci_clear_stall_sub()
1146 temp |= AVR32_EPTCFG_EPDIR_IN; in avr32dci_clear_stall_sub()
1155 temp |= AVR32_EPTCFG_EPSIZE(n); in avr32dci_clear_stall_sub()
1159 temp |= AVR32_EPTCFG_NBANK(1); in avr32dci_clear_stall_sub()
1161 temp |= AVR32_EPTCFG_NBANK(2); in avr32dci_clear_stall_sub()
1163 temp |= AVR32_EPTCFG_NBANK(3); in avr32dci_clear_stall_sub()
1165 AVR32_WRITE_4(sc, AVR32_EPTCFG(ep_no), temp); in avr32dci_clear_stall_sub()
1167 temp = AVR32_READ_4(sc, AVR32_EPTCFG(ep_no)); in avr32dci_clear_stall_sub()
1169 if (!(temp & AVR32_EPTCFG_EPT_MAPD)) { in avr32dci_clear_stall_sub()
1374 uint32_t temp; in avr32dci_device_isoc_fs_enter() local
1391 temp = (nframes - xfer->endpoint->isoc_next) & AVR32_FRAME_MASK; in avr32dci_device_isoc_fs_enter()
1394 (temp < xfer->nframes)) { in avr32dci_device_isoc_fs_enter()
1409 temp = (xfer->endpoint->isoc_next - nframes) & AVR32_FRAME_MASK; in avr32dci_device_isoc_fs_enter()
1415 usb_isoc_time_expand(&sc->sc_bus, nframes) + temp + in avr32dci_device_isoc_fs_enter()
1530 uint32_t temp; in avr32dci_roothub_exec() local
1838 temp = AVR32_READ_4(sc, AVR32_EPTCFG(0)); in avr32dci_roothub_exec()
1840 if (!(temp & AVR32_EPTCFG_EPT_MAPD)) { in avr32dci_roothub_exec()
2016 uint32_t temp; in avr32dci_xfer_setup() local
2023 temp = pf->max_in_frame_size | pf->max_out_frame_size; in avr32dci_xfer_setup()
2025 while ((temp /= 2)) in avr32dci_xfer_setup()