Lines Matching refs:temp

264 	uint8_t temp;
266 temp = MUSB2_READ_1(sc, MUSB2_REG_POWER);
268 temp |= MUSB2_MASK_SOFTC;
270 temp &= ~MUSB2_MASK_SOFTC;
272 MUSB2_WRITE_1(sc, MUSB2_REG_POWER, temp);
301 uint8_t temp;
307 temp = MUSB2_READ_1(sc, MUSB2_REG_POWER);
308 temp |= MUSB2_MASK_SUSPMODE;
309 MUSB2_WRITE_1(sc, MUSB2_REG_POWER, temp);
316 uint8_t temp;
322 temp = MUSB2_READ_1(sc, MUSB2_REG_POWER);
323 temp &= ~MUSB2_MASK_SUSPMODE;
324 temp |= MUSB2_MASK_RESUME;
325 MUSB2_WRITE_1(sc, MUSB2_REG_POWER, temp);
331 temp = MUSB2_READ_1(sc, MUSB2_REG_POWER);
332 temp &= ~MUSB2_MASK_RESUME;
333 MUSB2_WRITE_1(sc, MUSB2_REG_POWER, temp);
341 uint8_t temp;
347 temp = MUSB2_READ_1(sc, MUSB2_REG_POWER);
348 temp |= MUSB2_MASK_RESUME;
349 MUSB2_WRITE_1(sc, MUSB2_REG_POWER, temp);
355 temp = MUSB2_READ_1(sc, MUSB2_REG_POWER);
356 temp &= ~MUSB2_MASK_RESUME;
357 MUSB2_WRITE_1(sc, MUSB2_REG_POWER, temp);
667 uint32_t temp;
678 temp = count & ~3;
680 if (temp) {
684 temp / 4);
686 temp = count & 3;
687 if (temp) {
691 (void *)(&sc->sc_bounce_buf[count / 4]), temp);
709 temp = buf_res.length & ~3;
712 count -= temp;
713 td->offset += temp;
714 td->remainder -= temp;
785 uint32_t temp;
799 temp = count & ~3;
801 if (temp) {
805 temp / 4);
807 temp = count & 3;
808 if (temp) {
812 ((void *)&sc->sc_bounce_buf[count / 4]), temp);
827 temp = buf_res.length & ~3;
830 count -= temp;
831 td->offset += temp;
832 td->remainder -= temp;
959 uint32_t temp;
970 temp = count & ~3;
972 if (temp) {
976 temp / 4);
978 temp = count & 3;
979 if (temp) {
983 (void *)(&sc->sc_bounce_buf[count / 4]), temp);
1001 temp = buf_res.length & ~3;
1004 count -= temp;
1005 td->offset += temp;
1006 td->remainder -= temp;
1137 uint32_t temp;
1151 temp = count & ~3;
1153 if (temp) {
1157 sc->sc_bounce_buf, temp / 4);
1159 temp = count & 3;
1160 if (temp) {
1164 ((void *)&sc->sc_bounce_buf[count / 4]), temp);
1179 temp = buf_res.length & ~3;
1182 count -= temp;
1183 td->offset += temp;
1184 td->remainder -= temp;
1476 uint32_t temp;
1487 temp = count & ~3;
1489 if (temp) {
1493 temp / 4);
1495 temp = count & 3;
1496 if (temp) {
1500 ((void *)&sc->sc_bounce_buf[count / 4]), temp);
1518 temp = buf_res.length & ~3;
1521 count -= temp;
1522 td->offset += temp;
1523 td->remainder -= temp;
1602 uint32_t temp;
1616 temp = count & ~3;
1618 if (temp) {
1622 sc->sc_bounce_buf, temp / 4);
1624 temp = count & 3;
1625 if (temp) {
1629 ((void *)&sc->sc_bounce_buf[count / 4]), temp);
1644 temp = buf_res.length & ~3;
1647 count -= temp;
1648 td->offset += temp;
1649 td->remainder -= temp;
1825 uint32_t temp;
1836 temp = count & ~3;
1838 if (temp) {
1842 temp / 4);
1844 temp = count & 3;
1845 if (temp) {
1849 ((void *)&sc->sc_bounce_buf[count / 4]), temp);
1867 temp = buf_res.length & ~3;
1870 count -= temp;
1871 td->offset += temp;
1872 td->remainder -= temp;
2003 uint32_t temp;
2017 temp = count & ~3;
2019 if (temp) {
2023 sc->sc_bounce_buf, temp / 4);
2025 temp = count & 3;
2026 if (temp) {
2030 ((void *)&sc->sc_bounce_buf[count / 4]), temp);
2045 temp = buf_res.length & ~3;
2048 count -= temp;
2049 td->offset += temp;
2050 td->remainder -= temp;
2219 uint8_t temp;
2258 temp = MUSB2_READ_1(sc, MUSB2_REG_POWER);
2259 if (temp & MUSB2_MASK_HSMODE)
2268 temp = MUSB2_MASK_IRESET;
2270 temp &= ~MUSB2_MASK_IRESUME;
2272 temp |= MUSB2_MASK_ISUSP;
2273 MUSB2_WRITE_1(sc, MUSB2_REG_INTUSBE, temp);
2288 temp = MUSB2_READ_1(sc, MUSB2_REG_INTUSBE);
2290 temp &= ~MUSB2_MASK_IRESUME;
2292 temp |= MUSB2_MASK_ISUSP;
2293 MUSB2_WRITE_1(sc, MUSB2_REG_INTUSBE, temp);
2300 temp = MUSB2_READ_1(sc, MUSB2_REG_INTUSBE);
2302 temp &= ~MUSB2_MASK_ISUSP;
2304 temp |= MUSB2_MASK_IRESUME;
2305 MUSB2_WRITE_1(sc, MUSB2_REG_INTUSBE, temp);
2343 musbotg_setup_standard_chain_sub(struct musbotg_std_temp *temp)
2348 td = temp->td_next;
2349 temp->td = td;
2352 temp->td_next = td->obj_next;
2355 td->func = temp->func;
2356 td->pc = temp->pc;
2357 td->offset = temp->offset;
2358 td->remainder = temp->len;
2361 td->did_stall = temp->did_stall;
2362 td->short_pkt = temp->short_pkt;
2363 td->alt_next = temp->setup_alt_next;
2364 td->channel = temp->channel;
2365 td->dev_addr = temp->dev_addr;
2366 td->haddr = temp->haddr;
2367 td->hport = temp->hport;
2368 td->transfer_type = temp->transfer_type;
2374 struct musbotg_std_temp temp;
2391 temp.max_frame_size = xfer->max_frame_size;
2397 /* setup temp */
2402 temp.pc = NULL;
2403 temp.td = NULL;
2404 temp.td_next = xfer->td_start[0];
2405 temp.offset = 0;
2406 temp.setup_alt_next = xfer->flags_int.short_frames_ok;
2407 temp.did_stall = !xfer->flags_int.control_stall;
2408 temp.channel = -1;
2409 temp.dev_addr = dev_addr;
2410 temp.haddr = xfer->xroot->udev->hs_hub_addr;
2411 temp.hport = xfer->xroot->udev->hs_port_no;
2418 temp.transfer_type = MUSB2_MASK_TI_SPEED_LO;
2421 temp.transfer_type = MUSB2_MASK_TI_SPEED_FS;
2424 temp.transfer_type = MUSB2_MASK_TI_SPEED_HS;
2427 temp.transfer_type = 0;
2434 temp.transfer_type |= MUSB2_MASK_TI_PROTO_CTRL;
2437 temp.transfer_type |= MUSB2_MASK_TI_PROTO_ISOC;
2440 temp.transfer_type |= MUSB2_MASK_TI_PROTO_BULK;
2443 temp.transfer_type |= MUSB2_MASK_TI_PROTO_INTR;
2451 temp.transfer_type |= ep_no;
2461 temp.func = &musbotg_dev_ctrl_setup_rx;
2463 temp.func = &musbotg_host_ctrl_setup_tx;
2465 temp.len = xfer->frlengths[0];
2466 temp.pc = xfer->frbuffers + 0;
2467 temp.short_pkt = temp.len ? 1 : 0;
2469 musbotg_setup_standard_chain_sub(&temp);
2487 temp.func = &musbotg_host_ctrl_data_tx;
2489 temp.func = &musbotg_host_data_tx;
2492 temp.func = &musbotg_host_ctrl_data_rx;
2494 temp.func = &musbotg_host_data_rx;
2500 temp.func = &musbotg_dev_ctrl_data_tx;
2502 temp.func = &musbotg_dev_data_tx;
2505 temp.func = &musbotg_dev_ctrl_data_rx;
2507 temp.func = &musbotg_dev_data_rx;
2512 temp.pc = xfer->frbuffers + x;
2518 temp.len = xfer->frlengths[x];
2525 temp.setup_alt_next = 0;
2528 temp.setup_alt_next = 0;
2531 if (temp.len == 0) {
2535 temp.short_pkt = 0;
2542 temp.short_pkt = 1;
2545 temp.short_pkt = (xfer->flags.force_short_xfer ? 0 : 1);
2549 musbotg_setup_standard_chain_sub(&temp);
2552 temp.offset += temp.len;
2555 temp.pc = xfer->frbuffers + x;
2563 temp.pc = xfer->frbuffers + 0;
2564 temp.len = 0;
2565 temp.short_pkt = 0;
2566 temp.setup_alt_next = 0;
2575 temp.func = &musbotg_dev_ctrl_status;
2578 temp.func = musbotg_host_ctrl_status_tx;
2580 temp.func = musbotg_host_ctrl_status_rx;
2582 musbotg_setup_standard_chain_sub(&temp);
2586 td = temp.td;
2606 uint16_t temp;
2619 temp = MUSB2_READ_2(sc, MUSB2_REG_INTTXE);
2621 temp |= MUSB2_MASK_EPINT(0);
2623 temp &= ~MUSB2_MASK_EPINT(0);
2625 MUSB2_WRITE_2(sc, MUSB2_REG_INTTXE, temp);
2627 temp = MUSB2_READ_2(sc, MUSB2_REG_INTRXE);
2629 temp |= MUSB2_MASK_EPINT(channel);
2631 temp &= ~MUSB2_MASK_EPINT(channel);
2632 MUSB2_WRITE_2(sc, MUSB2_REG_INTRXE, temp);
2634 temp = MUSB2_READ_2(sc, MUSB2_REG_INTTXE);
2636 temp |= MUSB2_MASK_EPINT(channel);
2638 temp &= ~MUSB2_MASK_EPINT(channel);
2639 MUSB2_WRITE_2(sc, MUSB2_REG_INTTXE, temp);
2858 uint16_t temp;
2883 temp = 0;
2890 MUSB2_MASK_CSRH_TXMODE | temp);
2896 MUSB2_MASK_CSRH_TXISO | temp);
2901 MUSB2_MASK_CSRH_TXMODE | temp);
2926 temp = MUSB2_READ_2(sc, MUSB2_REG_TXDBDIS);
2930 temp &= ~(1 << ep_no);
2933 temp |= (1 << ep_no);
2935 MUSB2_WRITE_2(sc, MUSB2_REG_TXDBDIS, temp);
2944 temp = 0;
2951 MUSB2_MASK_CSRH_RXNYET | temp);
2957 MUSB2_MASK_CSRH_RXISO | temp);
2961 MUSB2_WRITE_1(sc, MUSB2_REG_RXCSRH, temp);
2986 temp = MUSB2_READ_2(sc, MUSB2_REG_RXDBDIS);
2990 temp &= ~(1 << ep_no);
2993 temp |= (1 << ep_no);
2995 MUSB2_WRITE_2(sc, MUSB2_REG_RXDBDIS, temp);
3040 uint8_t temp;
3065 temp = MUSB2_READ_1(sc, MUSB2_REG_DEVCTL);
3066 DPRINTF("pre-DEVCTL=0x%02x\n", temp);
3091 temp = MUSB2_READ_1(sc, MUSB2_REG_DEVCTL);
3092 temp &= ~MUSB2_MASK_SESS;
3093 MUSB2_WRITE_1(sc, MUSB2_REG_DEVCTL, temp);
3096 temp = MUSB2_READ_1(sc, MUSB2_REG_DEVCTL);
3097 temp |= MUSB2_MASK_SESS;
3098 MUSB2_WRITE_1(sc, MUSB2_REG_DEVCTL, temp);
3104 DPRINTF("DEVCTL=0x%02x\n", temp);
3155 for (temp = 1; temp <= sc->sc_ep_max; temp++) {
3156 pf = sc->sc_hw_ep_profile + temp;
3159 MUSB2_WRITE_1(sc, MUSB2_REG_EPINDEX, temp);
3166 temp, ftx, frx, dynfifo);
3169 if (frx && (temp <= nrx)) {
3170 if (temp == 1) {
3175 } else if (temp < 8) {
3191 if (ftx && (temp <= ntx)) {
3192 if (temp == 1) {
3197 } else if (temp < 8) {
3215 if (frx && ftx && (temp <= nrx) && (temp <= ntx)) {
3225 } else if (frx && (temp <= nrx)) {
3233 } else if (ftx && (temp <= ntx)) {
3439 uint32_t temp;
3454 temp = (nframes - xfer->endpoint->isoc_next) & MUSB2_MASK_FRAME;
3463 (temp < fs_frames)) {
3478 temp = (xfer->endpoint->isoc_next - nframes) & MUSB2_MASK_FRAME;
3484 usb_isoc_time_expand(&sc->sc_bus, nframes) + temp +