Lines Matching refs:temp
12 #define edstring(ed_type) ({ char *temp; \
14 case PIPE_CONTROL: temp = "ctrl"; break; \
15 case PIPE_BULK: temp = "bulk"; break; \
16 case PIPE_INTERRUPT: temp = "intr"; break; \
17 default: temp = "isoc"; break; \
18 } temp;})
103 u32 temp; in ohci_dump_status() local
105 temp = ohci_readl (controller, ®s->revision) & 0xff; in ohci_dump_status()
108 0x03 & (temp >> 4), (temp & 0x0f), in ohci_dump_status()
109 (temp & 0x0100) ? "with" : "NO", in ohci_dump_status()
112 temp = ohci_readl (controller, ®s->control); in ohci_dump_status()
115 temp, in ohci_dump_status()
116 (temp & OHCI_CTRL_RWE) ? " RWE" : "", in ohci_dump_status()
117 (temp & OHCI_CTRL_RWC) ? " RWC" : "", in ohci_dump_status()
118 (temp & OHCI_CTRL_IR) ? " IR" : "", in ohci_dump_status()
119 hcfs2string (temp & OHCI_CTRL_HCFS), in ohci_dump_status()
120 (temp & OHCI_CTRL_BLE) ? " BLE" : "", in ohci_dump_status()
121 (temp & OHCI_CTRL_CLE) ? " CLE" : "", in ohci_dump_status()
122 (temp & OHCI_CTRL_IE) ? " IE" : "", in ohci_dump_status()
123 (temp & OHCI_CTRL_PLE) ? " PLE" : "", in ohci_dump_status()
124 temp & OHCI_CTRL_CBSR in ohci_dump_status()
127 temp = ohci_readl (controller, ®s->cmdstatus); in ohci_dump_status()
129 "cmdstatus 0x%05x SOC=%d%s%s%s%s\n", temp, in ohci_dump_status()
130 (temp & OHCI_SOC) >> 16, in ohci_dump_status()
131 (temp & OHCI_OCR) ? " OCR" : "", in ohci_dump_status()
132 (temp & OHCI_BLF) ? " BLF" : "", in ohci_dump_status()
133 (temp & OHCI_CLF) ? " CLF" : "", in ohci_dump_status()
134 (temp & OHCI_HCR) ? " HCR" : "" in ohci_dump_status()
171 num, temp, \
172 (temp & RH_PS_PRSC) ? " PRSC" : "", \
173 (temp & RH_PS_OCIC) ? " OCIC" : "", \
174 (temp & RH_PS_PSSC) ? " PSSC" : "", \
175 (temp & RH_PS_PESC) ? " PESC" : "", \
176 (temp & RH_PS_CSC) ? " CSC" : "", \
178 (temp & RH_PS_LSDA) ? " LSDA" : "", \
179 (temp & RH_PS_PPS) ? " PPS" : "", \
180 (temp & RH_PS_PRS) ? " PRS" : "", \
181 (temp & RH_PS_POCI) ? " POCI" : "", \
182 (temp & RH_PS_PSS) ? " PSS" : "", \
184 (temp & RH_PS_PES) ? " PES" : "", \
185 (temp & RH_PS_CCS) ? " CCS" : "" \
196 u32 temp, i; in ohci_dump_roothub() local
198 temp = roothub_a (controller); in ohci_dump_roothub()
199 if (temp == ~(u32)0) in ohci_dump_roothub()
204 "roothub.a %08x POTPGT=%d%s%s%s%s%s NDP=%d(%d)\n", temp, in ohci_dump_roothub()
205 ((temp & RH_A_POTPGT) >> 24) & 0xff, in ohci_dump_roothub()
206 (temp & RH_A_NOCP) ? " NOCP" : "", in ohci_dump_roothub()
207 (temp & RH_A_OCPM) ? " OCPM" : "", in ohci_dump_roothub()
208 (temp & RH_A_DT) ? " DT" : "", in ohci_dump_roothub()
209 (temp & RH_A_NPS) ? " NPS" : "", in ohci_dump_roothub()
210 (temp & RH_A_PSM) ? " PSM" : "", in ohci_dump_roothub()
211 (temp & RH_A_NDP), controller->num_ports in ohci_dump_roothub()
213 temp = roothub_b (controller); in ohci_dump_roothub()
216 temp, in ohci_dump_roothub()
217 (temp & RH_B_PPCM) >> 16, in ohci_dump_roothub()
218 (temp & RH_B_DR) in ohci_dump_roothub()
220 temp = roothub_status (controller); in ohci_dump_roothub()
223 temp, in ohci_dump_roothub()
224 (temp & RH_HS_CRWE) ? " CRWE" : "", in ohci_dump_roothub()
225 (temp & RH_HS_OCIC) ? " OCIC" : "", in ohci_dump_roothub()
226 (temp & RH_HS_LPSC) ? " LPSC" : "", in ohci_dump_roothub()
227 (temp & RH_HS_DRWE) ? " DRWE" : "", in ohci_dump_roothub()
228 (temp & RH_HS_OCI) ? " OCI" : "", in ohci_dump_roothub()
229 (temp & RH_HS_LPS) ? " LPS" : "" in ohci_dump_roothub()
234 temp = roothub_portstatus (controller, i); in ohci_dump_roothub()
235 dbg_port_sw (controller, i, temp, next, size); in ohci_dump_roothub()
401 unsigned temp, size = count; in show_list() local
417 temp = scnprintf (buf, size, in show_list()
429 size -= temp; in show_list()
430 buf += temp; in show_list()
439 temp = scnprintf (buf, size, in show_list()
451 size -= temp; in show_list()
452 buf += temp; in show_list()
455 temp = scnprintf (buf, size, "\n"); in show_list()
456 size -= temp; in show_list()
457 buf += temp; in show_list()
467 size_t temp, size; in fill_async_buffer() local
475 temp = show_list(ohci, buf->page, size, ohci->ed_controltail); in fill_async_buffer()
476 temp += show_list(ohci, buf->page + temp, size - temp, in fill_async_buffer()
480 return temp; in fill_async_buffer()
490 unsigned temp, size, seen_count; in fill_periodic_buffer() local
503 temp = scnprintf (next, size, "size = %d\n", NUM_INTS); in fill_periodic_buffer()
504 size -= temp; in fill_periodic_buffer()
505 next += temp; in fill_periodic_buffer()
514 temp = scnprintf (next, size, "%2d [%3d]:", i, ohci->load [i]); in fill_periodic_buffer()
515 size -= temp; in fill_periodic_buffer()
516 next += temp; in fill_periodic_buffer()
519 temp = scnprintf (next, size, " ed%d/%p", in fill_periodic_buffer()
521 size -= temp; in fill_periodic_buffer()
522 next += temp; in fill_periodic_buffer()
523 for (temp = 0; temp < seen_count; temp++) { in fill_periodic_buffer()
524 if (seen [temp] == ed) in fill_periodic_buffer()
529 if (temp == seen_count) { in fill_periodic_buffer()
538 temp = scnprintf (next, size, in fill_periodic_buffer()
553 size -= temp; in fill_periodic_buffer()
554 next += temp; in fill_periodic_buffer()
563 temp = 0; in fill_periodic_buffer()
569 temp = scnprintf (next, size, "\n"); in fill_periodic_buffer()
570 size -= temp; in fill_periodic_buffer()
571 next += temp; in fill_periodic_buffer()
586 unsigned temp, size; in fill_registers_buffer() local
624 temp = scnprintf (next, size, in fill_registers_buffer()
628 size -= temp; in fill_registers_buffer()
629 next += temp; in fill_registers_buffer()
632 temp = scnprintf (next, size, "fmremaining 0x%08x %sFR=0x%04x\n", in fill_registers_buffer()
635 size -= temp; in fill_registers_buffer()
636 next += temp; in fill_registers_buffer()
639 temp = scnprintf (next, size, "periodicstart 0x%04x\n", in fill_registers_buffer()
641 size -= temp; in fill_registers_buffer()
642 next += temp; in fill_registers_buffer()
645 temp = scnprintf (next, size, "lsthresh 0x%04x\n", in fill_registers_buffer()
647 size -= temp; in fill_registers_buffer()
648 next += temp; in fill_registers_buffer()
650 temp = scnprintf (next, size, "hub poll timer %s\n", in fill_registers_buffer()
652 size -= temp; in fill_registers_buffer()
653 next += temp; in fill_registers_buffer()