Lines Matching refs:size

23 #define ohci_dbg_sw(ohci, next, size, format, arg...) \  argument
27 s_len = scnprintf (*next, *size, format, ## arg ); \
28 *size -= s_len; *next += s_len; \
34 #define ohci_dbg_nosw(ohci, next, size, format, arg...) \ argument
37 s_len = scnprintf(*next, *size, format, ## arg); \
38 *size -= s_len; *next += s_len; \
47 unsigned *size) in ohci_dump_intr_mask() argument
49 ohci_dbg_sw (ohci, next, size, "%s 0x%08x%s%s%s%s%s%s%s%s%s\n", in ohci_dump_intr_mask()
69 unsigned *size) in maybe_print_eds() argument
72 ohci_dbg_sw (ohci, next, size, "%s %08x\n", label, value); in maybe_print_eds()
101 ohci_dump_status (struct ohci_hcd *controller, char **next, unsigned *size) in ohci_dump_status() argument
107 ohci_dbg_sw (controller, next, size, in ohci_dump_status()
114 ohci_dbg_sw (controller, next, size, in ohci_dump_status()
129 ohci_dbg_sw (controller, next, size, in ohci_dump_status()
140 next, size); in ohci_dump_status()
143 next, size); in ohci_dump_status()
148 next, size); in ohci_dump_status()
152 next, size); in ohci_dump_status()
155 next, size); in ohci_dump_status()
159 next, size); in ohci_dump_status()
162 next, size); in ohci_dump_status()
165 ohci_readl (controller, &regs->donehead), next, size); in ohci_dump_status()
168 #define dbg_port_sw(hc,num,value,next,size) \ argument
169 ohci_dbg_sw (hc, next, size, \
195 unsigned *size) in ohci_dump_roothub() argument
204 ohci_dbg_sw (controller, next, size, in ohci_dump_roothub()
215 ohci_dbg_sw (controller, next, size, in ohci_dump_roothub()
222 ohci_dbg_sw (controller, next, size, in ohci_dump_roothub()
236 dbg_port_sw (controller, i, temp, next, size); in ohci_dump_roothub()
402 unsigned temp, size = count; in show_list() local
418 temp = scnprintf (buf, size, in show_list()
430 size -= temp; in show_list()
440 temp = scnprintf (buf, size, in show_list()
452 size -= temp; in show_list()
456 temp = scnprintf (buf, size, "\n"); in show_list()
457 size -= temp; in show_list()
462 return count - size; in show_list()
468 size_t temp, size; in fill_async_buffer() local
472 size = PAGE_SIZE; in fill_async_buffer()
476 temp = show_list(ohci, buf->page, size, ohci->ed_controltail); in fill_async_buffer()
477 temp += show_list(ohci, buf->page + temp, size - temp, in fill_async_buffer()
491 unsigned temp, size, seen_count; in fill_periodic_buffer() local
502 size = PAGE_SIZE; in fill_periodic_buffer()
504 temp = scnprintf (next, size, "size = %d\n", NUM_INTS); in fill_periodic_buffer()
505 size -= temp; in fill_periodic_buffer()
515 temp = scnprintf (next, size, "%2d [%3d]:", i, ohci->load [i]); in fill_periodic_buffer()
516 size -= temp; in fill_periodic_buffer()
520 temp = scnprintf (next, size, " ed%d/%p", in fill_periodic_buffer()
522 size -= temp; in fill_periodic_buffer()
539 temp = scnprintf (next, size, in fill_periodic_buffer()
554 size -= temp; in fill_periodic_buffer()
570 temp = scnprintf (next, size, "\n"); in fill_periodic_buffer()
571 size -= temp; in fill_periodic_buffer()
577 return PAGE_SIZE - size; in fill_periodic_buffer()
587 unsigned temp, size; in fill_registers_buffer() local
595 size = PAGE_SIZE; in fill_registers_buffer()
601 ohci_dbg_nosw(ohci, &next, &size, in fill_registers_buffer()
611 size -= scnprintf (next, size, in fill_registers_buffer()
616 ohci_dump_status(ohci, &next, &size); in fill_registers_buffer()
620 ohci_dbg_nosw(ohci, &next, &size, in fill_registers_buffer()
625 temp = scnprintf (next, size, in fill_registers_buffer()
629 size -= temp; in fill_registers_buffer()
633 temp = scnprintf (next, size, "fmremaining 0x%08x %sFR=0x%04x\n", in fill_registers_buffer()
636 size -= temp; in fill_registers_buffer()
640 temp = scnprintf (next, size, "periodicstart 0x%04x\n", in fill_registers_buffer()
642 size -= temp; in fill_registers_buffer()
646 temp = scnprintf (next, size, "lsthresh 0x%04x\n", in fill_registers_buffer()
648 size -= temp; in fill_registers_buffer()
651 temp = scnprintf (next, size, "hub poll timer %s\n", in fill_registers_buffer()
653 size -= temp; in fill_registers_buffer()
657 ohci_dump_roothub (ohci, 1, &next, &size); in fill_registers_buffer()
662 return PAGE_SIZE - size; in fill_registers_buffer()