Lines Matching refs:temp
306 uint32_t temp; in at91dci_setup_rx() local
314 temp = csr; in at91dci_setup_rx()
315 temp &= (AT91_UDP_CSR_RX_DATA_BK0 | in at91dci_setup_rx()
367 AT91_CSR_ACK(csr, temp); in at91dci_setup_rx()
375 temp |= AT91_UDP_CSR_FORCESTALL; in at91dci_setup_rx()
380 if (temp) { in at91dci_setup_rx()
381 DPRINTFN(5, "clearing 0x%08x\n", temp); in at91dci_setup_rx()
382 AT91_CSR_ACK(csr, temp); in at91dci_setup_rx()
393 uint32_t temp; in at91dci_data_rx() local
424 temp = csr; in at91dci_data_rx()
425 temp &= AT91_UDP_CSR_STALLSENT; in at91dci_data_rx()
430 if (temp) { in at91dci_data_rx()
432 AT91_CSR_ACK(csr, temp); in at91dci_data_rx()
479 temp |= AT91_UDP_CSR_RX_DATA_BK1; in at91dci_data_rx()
482 temp |= AT91_UDP_CSR_RX_DATA_BK0; in at91dci_data_rx()
485 temp |= (AT91_UDP_CSR_RX_DATA_BK0 | in at91dci_data_rx()
490 AT91_CSR_ACK(csr, temp); in at91dci_data_rx()
517 uint32_t temp; in at91dci_data_tx() local
539 temp = csr; in at91dci_data_tx()
540 temp &= AT91_UDP_CSR_STALLSENT; in at91dci_data_tx()
543 if (temp) { in at91dci_data_tx()
545 AT91_CSR_ACK(csr, temp); in at91dci_data_tx()
551 temp |= (AT91_UDP_CSR_TXCOMP | in at91dci_data_tx()
579 AT91_CSR_ACK(csr, temp); in at91dci_data_tx()
599 uint32_t temp; in at91dci_data_tx_sync() local
611 temp = csr; in at91dci_data_tx_sync()
612 temp &= (AT91_UDP_CSR_STALLSENT | in at91dci_data_tx_sync()
631 AT91_CSR_ACK(csr, temp); in at91dci_data_tx_sync()
637 if (temp) { in at91dci_data_tx_sync()
639 AT91_CSR_ACK(csr, temp); in at91dci_data_tx_sync()
650 uint8_t temp; in at91dci_xfer_do_fifo() local
681 temp = 0; in at91dci_xfer_do_fifo()
683 temp |= 1; in at91dci_xfer_do_fifo()
686 if (temp & 1) in at91dci_xfer_do_fifo()
692 temp = (xfer->endpointno & UE_ADDR); in at91dci_xfer_do_fifo()
696 sc->sc_ep_flags[temp].fifo_bank = 1; in at91dci_xfer_do_fifo()
698 sc->sc_ep_flags[temp].fifo_bank = 0; in at91dci_xfer_do_fifo()
877 at91dci_setup_standard_chain_sub(struct at91dci_std_temp *temp) in at91dci_setup_standard_chain_sub() argument
882 td = temp->td_next; in at91dci_setup_standard_chain_sub()
883 temp->td = td; in at91dci_setup_standard_chain_sub()
886 temp->td_next = td->obj_next; in at91dci_setup_standard_chain_sub()
889 td->func = temp->func; in at91dci_setup_standard_chain_sub()
890 td->pc = temp->pc; in at91dci_setup_standard_chain_sub()
891 td->offset = temp->offset; in at91dci_setup_standard_chain_sub()
892 td->remainder = temp->len; in at91dci_setup_standard_chain_sub()
895 td->did_stall = temp->did_stall; in at91dci_setup_standard_chain_sub()
896 td->short_pkt = temp->short_pkt; in at91dci_setup_standard_chain_sub()
897 td->alt_next = temp->setup_alt_next; in at91dci_setup_standard_chain_sub()
903 struct at91dci_std_temp temp; in at91dci_setup_standard_chain() local
914 temp.max_frame_size = xfer->max_frame_size; in at91dci_setup_standard_chain()
922 temp.pc = NULL; in at91dci_setup_standard_chain()
923 temp.td = NULL; in at91dci_setup_standard_chain()
924 temp.td_next = xfer->td_start[0]; in at91dci_setup_standard_chain()
925 temp.offset = 0; in at91dci_setup_standard_chain()
926 temp.setup_alt_next = xfer->flags_int.short_frames_ok; in at91dci_setup_standard_chain()
927 temp.did_stall = !xfer->flags_int.control_stall; in at91dci_setup_standard_chain()
937 temp.func = &at91dci_setup_rx; in at91dci_setup_standard_chain()
938 temp.len = xfer->frlengths[0]; in at91dci_setup_standard_chain()
939 temp.pc = xfer->frbuffers + 0; in at91dci_setup_standard_chain()
940 temp.short_pkt = temp.len ? 1 : 0; in at91dci_setup_standard_chain()
945 temp.setup_alt_next = 0; in at91dci_setup_standard_chain()
948 at91dci_setup_standard_chain_sub(&temp); in at91dci_setup_standard_chain()
957 temp.func = &at91dci_data_tx; in at91dci_setup_standard_chain()
960 temp.func = &at91dci_data_rx; in at91dci_setup_standard_chain()
965 temp.pc = xfer->frbuffers + x; in at91dci_setup_standard_chain()
973 temp.len = xfer->frlengths[x]; in at91dci_setup_standard_chain()
980 temp.setup_alt_next = 0; in at91dci_setup_standard_chain()
983 temp.setup_alt_next = 0; in at91dci_setup_standard_chain()
986 if (temp.len == 0) { in at91dci_setup_standard_chain()
990 temp.short_pkt = 0; in at91dci_setup_standard_chain()
996 temp.short_pkt = (xfer->flags.force_short_xfer) ? 0 : 1; in at91dci_setup_standard_chain()
999 at91dci_setup_standard_chain_sub(&temp); in at91dci_setup_standard_chain()
1002 temp.offset += temp.len; in at91dci_setup_standard_chain()
1005 temp.pc = xfer->frbuffers + x; in at91dci_setup_standard_chain()
1013 temp.pc = xfer->frbuffers + 0; in at91dci_setup_standard_chain()
1014 temp.len = 0; in at91dci_setup_standard_chain()
1015 temp.short_pkt = 0; in at91dci_setup_standard_chain()
1016 temp.setup_alt_next = 0; in at91dci_setup_standard_chain()
1021 temp.func = &at91dci_data_tx_sync; in at91dci_setup_standard_chain()
1022 at91dci_setup_standard_chain_sub(&temp); in at91dci_setup_standard_chain()
1033 temp.func = &at91dci_data_rx; in at91dci_setup_standard_chain()
1036 temp.func = &at91dci_data_tx; in at91dci_setup_standard_chain()
1040 at91dci_setup_standard_chain_sub(&temp); in at91dci_setup_standard_chain()
1043 temp.func = &at91dci_data_tx_sync; in at91dci_setup_standard_chain()
1044 at91dci_setup_standard_chain_sub(&temp); in at91dci_setup_standard_chain()
1050 td = temp.td; in at91dci_setup_standard_chain()
1301 uint32_t temp; in at91dci_clear_stall_sub() local
1347 temp = AT91_UDP_CSR_RX_DATA_BK1; in at91dci_clear_stall_sub()
1350 temp = AT91_UDP_CSR_RX_DATA_BK0; in at91dci_clear_stall_sub()
1353 temp = (AT91_UDP_CSR_RX_DATA_BK0 | in at91dci_clear_stall_sub()
1357 temp = 0; in at91dci_clear_stall_sub()
1361 temp |= AT91_UDP_CSR_STALLSENT; in at91dci_clear_stall_sub()
1363 AT91_CSR_ACK(csr_val, temp); in at91dci_clear_stall_sub()
1666 uint32_t temp; in at91dci_device_isoc_fs_enter() local
1680 temp = (nframes - xfer->endpoint->isoc_next) & AT91_UDP_FRM_MASK; in at91dci_device_isoc_fs_enter()
1683 (temp < xfer->nframes)) { in at91dci_device_isoc_fs_enter()
1698 temp = (xfer->endpoint->isoc_next - nframes) & AT91_UDP_FRM_MASK; in at91dci_device_isoc_fs_enter()
1704 usb_isoc_time_expand(&sc->sc_bus, nframes) + temp + in at91dci_device_isoc_fs_enter()