Lines Matching refs:temp
166 uint8_t temp; in uss820dci_update_shared_1() local
169 temp = USS820_READ_1(sc, reg); in uss820dci_update_shared_1()
170 temp &= (keep_mask); in uss820dci_update_shared_1()
171 temp |= (set_mask); in uss820dci_update_shared_1()
172 USS820_WRITE_1(sc, reg, temp); in uss820dci_update_shared_1()
196 uint8_t temp; in uss820dci_pull_up() local
206 temp = USS820_READ_1(sc, USS820_MCSR); in uss820dci_pull_up()
207 temp |= USS820_MCSR_DPEN; in uss820dci_pull_up()
208 USS820_WRITE_1(sc, USS820_MCSR, temp); in uss820dci_pull_up()
215 uint8_t temp; in uss820dci_pull_down() local
224 temp = USS820_READ_1(sc, USS820_MCSR); in uss820dci_pull_down()
225 temp &= ~USS820_MCSR_DPEN; in uss820dci_pull_down()
226 USS820_WRITE_1(sc, USS820_MCSR, temp); in uss820dci_pull_down()
253 uint8_t temp; in uss820dci_setup_rx() local
315 temp = USS820_READ_1(sc, USS820_RXCON); in uss820dci_setup_rx()
316 temp |= USS820_RXCON_RXFFRC; in uss820dci_setup_rx()
317 USS820_WRITE_1(sc, USS820_RXCON, temp); in uss820dci_setup_rx()
334 temp = USS820_READ_1(sc, USS820_TXCON); in uss820dci_setup_rx()
335 temp |= USS820_TXCON_TXCLR; in uss820dci_setup_rx()
336 USS820_WRITE_1(sc, USS820_TXCON, temp); in uss820dci_setup_rx()
337 temp &= ~USS820_TXCON_TXCLR; in uss820dci_setup_rx()
338 USS820_WRITE_1(sc, USS820_TXCON, temp); in uss820dci_setup_rx()
345 temp = USS820_READ_1(sc, USS820_RXCON); in uss820dci_setup_rx()
346 temp |= USS820_RXCON_RXFFRC; in uss820dci_setup_rx()
347 USS820_WRITE_1(sc, USS820_RXCON, temp); in uss820dci_setup_rx()
853 uss820dci_setup_standard_chain_sub(struct uss820_std_temp *temp) in uss820dci_setup_standard_chain_sub() argument
858 td = temp->td_next; in uss820dci_setup_standard_chain_sub()
859 temp->td = td; in uss820dci_setup_standard_chain_sub()
862 temp->td_next = td->obj_next; in uss820dci_setup_standard_chain_sub()
865 td->func = temp->func; in uss820dci_setup_standard_chain_sub()
866 td->pc = temp->pc; in uss820dci_setup_standard_chain_sub()
867 td->offset = temp->offset; in uss820dci_setup_standard_chain_sub()
868 td->remainder = temp->len; in uss820dci_setup_standard_chain_sub()
871 td->did_stall = temp->did_stall; in uss820dci_setup_standard_chain_sub()
872 td->short_pkt = temp->short_pkt; in uss820dci_setup_standard_chain_sub()
873 td->alt_next = temp->setup_alt_next; in uss820dci_setup_standard_chain_sub()
879 struct uss820_std_temp temp; in uss820dci_setup_standard_chain() local
887 temp.max_frame_size = xfer->max_frame_size; in uss820dci_setup_standard_chain()
895 temp.pc = NULL; in uss820dci_setup_standard_chain()
896 temp.td = NULL; in uss820dci_setup_standard_chain()
897 temp.td_next = xfer->td_start[0]; in uss820dci_setup_standard_chain()
898 temp.offset = 0; in uss820dci_setup_standard_chain()
899 temp.setup_alt_next = xfer->flags_int.short_frames_ok || in uss820dci_setup_standard_chain()
901 temp.did_stall = !xfer->flags_int.control_stall; in uss820dci_setup_standard_chain()
907 temp.func = &uss820dci_setup_rx; in uss820dci_setup_standard_chain()
908 temp.len = xfer->frlengths[0]; in uss820dci_setup_standard_chain()
909 temp.pc = xfer->frbuffers + 0; in uss820dci_setup_standard_chain()
910 temp.short_pkt = temp.len ? 1 : 0; in uss820dci_setup_standard_chain()
915 temp.setup_alt_next = 0; in uss820dci_setup_standard_chain()
918 uss820dci_setup_standard_chain_sub(&temp); in uss820dci_setup_standard_chain()
927 temp.func = &uss820dci_data_tx; in uss820dci_setup_standard_chain()
929 temp.func = &uss820dci_data_rx; in uss820dci_setup_standard_chain()
933 temp.pc = xfer->frbuffers + x; in uss820dci_setup_standard_chain()
938 temp.len = xfer->frlengths[x]; in uss820dci_setup_standard_chain()
945 temp.setup_alt_next = 0; in uss820dci_setup_standard_chain()
948 temp.setup_alt_next = 0; in uss820dci_setup_standard_chain()
951 if (temp.len == 0) { in uss820dci_setup_standard_chain()
954 temp.short_pkt = 0; in uss820dci_setup_standard_chain()
959 temp.short_pkt = (xfer->flags.force_short_xfer) ? 0 : 1; in uss820dci_setup_standard_chain()
962 uss820dci_setup_standard_chain_sub(&temp); in uss820dci_setup_standard_chain()
965 temp.offset += temp.len; in uss820dci_setup_standard_chain()
968 temp.pc = xfer->frbuffers + x; in uss820dci_setup_standard_chain()
977 temp.pc = xfer->frbuffers + 0; in uss820dci_setup_standard_chain()
978 temp.len = 0; in uss820dci_setup_standard_chain()
979 temp.short_pkt = 0; in uss820dci_setup_standard_chain()
980 temp.setup_alt_next = 0; in uss820dci_setup_standard_chain()
989 temp.func = &uss820dci_data_rx; in uss820dci_setup_standard_chain()
992 temp.func = &uss820dci_data_tx; in uss820dci_setup_standard_chain()
995 temp.len = 0; in uss820dci_setup_standard_chain()
996 temp.short_pkt = 0; in uss820dci_setup_standard_chain()
998 uss820dci_setup_standard_chain_sub(&temp); in uss820dci_setup_standard_chain()
1001 temp.func = &uss820dci_data_tx_sync; in uss820dci_setup_standard_chain()
1002 uss820dci_setup_standard_chain_sub(&temp); in uss820dci_setup_standard_chain()
1007 td = temp.td; in uss820dci_setup_standard_chain()
1030 uint8_t temp; in uss820dci_intr_set() local
1054 temp = USS820_READ_1(sc, ep_reg); in uss820dci_intr_set()
1056 temp |= ep_no; in uss820dci_intr_set()
1058 temp &= ~ep_no; in uss820dci_intr_set()
1060 USS820_WRITE_1(sc, ep_reg, temp); in uss820dci_intr_set()
1254 uint8_t temp; in uss820dci_set_stall() local
1274 temp = USS820_EPCON_TXSTL; in uss820dci_set_stall()
1276 temp = USS820_EPCON_RXSTL; in uss820dci_set_stall()
1278 uss820dci_update_shared_1(sc, USS820_EPCON, 0xFF, temp); in uss820dci_set_stall()
1286 uint8_t temp; in uss820dci_clear_stall_sub() local
1299 temp = 0xFF ^ (USS820_EPCON_TXOE | in uss820dci_clear_stall_sub()
1302 temp = 0xFF ^ (USS820_EPCON_RXIE | in uss820dci_clear_stall_sub()
1305 uss820dci_update_shared_1(sc, USS820_EPCON, temp, 0); in uss820dci_clear_stall_sub()
1313 temp = USS820_READ_1(sc, USS820_TXCON); in uss820dci_clear_stall_sub()
1314 temp |= USS820_TXCON_TXCLR; in uss820dci_clear_stall_sub()
1315 USS820_WRITE_1(sc, USS820_TXCON, temp); in uss820dci_clear_stall_sub()
1316 temp &= ~USS820_TXCON_TXCLR; in uss820dci_clear_stall_sub()
1317 USS820_WRITE_1(sc, USS820_TXCON, temp); in uss820dci_clear_stall_sub()
1324 temp = USS820_READ_1(sc, USS820_RXCON); in uss820dci_clear_stall_sub()
1325 temp |= USS820_RXCON_RXCLR; in uss820dci_clear_stall_sub()
1326 temp &= ~USS820_RXCON_RXFFRC; in uss820dci_clear_stall_sub()
1327 USS820_WRITE_1(sc, USS820_RXCON, temp); in uss820dci_clear_stall_sub()
1328 temp &= ~USS820_RXCON_RXCLR; in uss820dci_clear_stall_sub()
1329 USS820_WRITE_1(sc, USS820_RXCON, temp); in uss820dci_clear_stall_sub()
1367 uint8_t temp; in uss820dci_init() local
1387 temp = USS820_READ_1(sc, USS820_MCSR); in uss820dci_init()
1389 if (temp & USS820_MCSR_INIT) { in uss820dci_init()
1407 temp = USS820_READ_1(sc, USS820_REV); in uss820dci_init()
1409 if (temp < 0x13) { in uss820dci_init()
1461 temp = (USS820_TXCON_FFSZ_16_64 | in uss820dci_init()
1465 temp = (USS820_TXCON_FFSZ_64_256 | in uss820dci_init()
1469 temp = (USS820_TXCON_FFSZ_8_512 | in uss820dci_init()
1473 temp = (USS820_TXCON_FFSZ_32_1024 | in uss820dci_init()
1480 temp = (USS820_TXCON_FFSZ_8_512 | in uss820dci_init()
1483 temp = (USS820_TXCON_FFSZ_16_64 | in uss820dci_init()
1487 temp = (USS820_TXCON_FFSZ_32_1024 | in uss820dci_init()
1490 temp = (USS820_TXCON_FFSZ_64_256 | in uss820dci_init()
1498 USS820_WRITE_1(sc, USS820_TXCON, temp); in uss820dci_init()
1499 USS820_WRITE_1(sc, USS820_RXCON, temp); in uss820dci_init()
1502 temp = USS820_EPCON_CTLEP | in uss820dci_init()
1509 temp = USS820_EPCON_RXEPEN | USS820_EPCON_TXEPEN; in uss820dci_init()
1512 uss820dci_update_shared_1(sc, USS820_EPCON, 0, temp); in uss820dci_init()
1527 uint8_t temp; in uss820dci_uninit() local
1532 temp = USS820_READ_1(sc, USS820_SCR); in uss820dci_uninit()
1533 temp &= ~USS820_SCR_T_IRQ; in uss820dci_uninit()
1534 USS820_WRITE_1(sc, USS820_SCR, temp); in uss820dci_uninit()