endp 820 arch/arm/kernel/setup.c char *endp; endp 834 arch/arm/kernel/setup.c size = memparse(p, &endp); endp 835 arch/arm/kernel/setup.c if (*endp == '@') endp 836 arch/arm/kernel/setup.c start = memparse(endp + 1, NULL); endp 873 arch/arm/mach-davinci/devices-da8xx.c char *endp; endp 878 arch/arm/mach-davinci/devices-da8xx.c rproc_size = memparse(p, &endp); endp 879 arch/arm/mach-davinci/devices-da8xx.c if (*endp == '@') endp 880 arch/arm/mach-davinci/devices-da8xx.c rproc_base = memparse(endp + 1, NULL); endp 73 arch/arm/mach-mvebu/board-v7.c const __be32 *reg, *endp; endp 85 arch/arm/mach-mvebu/board-v7.c endp = reg + (l / sizeof(__be32)); endp 86 arch/arm/mach-mvebu/board-v7.c while ((endp - reg) >= (dt_root_addr_cells + dt_root_size_cells)) { endp 135 arch/arm/mach-shmobile/setup-rcar-gen2.c const __be32 *reg, *endp; endp 150 arch/arm/mach-shmobile/setup-rcar-gen2.c endp = reg + (l / sizeof(__be32)); endp 151 arch/arm/mach-shmobile/setup-rcar-gen2.c while ((endp - reg) >= (dt_root_addr_cells + dt_root_size_cells)) { endp 129 arch/hexagon/mm/init.c char *endp; endp 131 arch/hexagon/mm/init.c size = memparse(p, &endp); endp 26 arch/ia64/include/asm/asmmacro.h .endp name endp 94 arch/mips/pmcs-msp71xx/msp_serial.c char *endp; endp 102 arch/mips/pmcs-msp71xx/msp_serial.c if(!(s && *s && (uartclk = simple_strtoul(s, &endp, 10)) && *endp == 0)) endp 35 arch/mips/pmcs-msp71xx/msp_time.c char *endp, *s; endp 40 arch/mips/pmcs-msp71xx/msp_time.c cpu_rate = simple_strtoul(s, &endp, 10); endp 41 arch/mips/pmcs-msp71xx/msp_time.c if (endp != NULL && *endp != 0) { endp 50 arch/mips/pmcs-msp71xx/msp_time.c cpu_rate = 1000 * simple_strtoul(s, &endp, 10); endp 51 arch/mips/pmcs-msp71xx/msp_time.c if (endp != NULL && *endp != 0) { endp 702 arch/powerpc/kernel/prom_init.c static unsigned long prom_strtoul(const char *cp, const char **endp) endp 721 arch/powerpc/kernel/prom_init.c if (endp) endp 722 arch/powerpc/kernel/prom_init.c *endp = cp; endp 1597 arch/powerpc/kernel/prom_init.c cell_t *p, *endp; endp 1637 arch/powerpc/kernel/prom_init.c endp = p + (plen / sizeof(cell_t)); endp 1646 arch/powerpc/kernel/prom_init.c while ((endp - p) >= (rac + rsc)) { endp 621 arch/powerpc/platforms/pseries/lparcfg.c char *endp; endp 622 arch/powerpc/platforms/pseries/lparcfg.c *new_entitled_ptr = (u64) simple_strtoul(tmp, &endp, 10); endp 623 arch/powerpc/platforms/pseries/lparcfg.c if (endp == tmp) endp 628 arch/powerpc/platforms/pseries/lparcfg.c char *endp; endp 629 arch/powerpc/platforms/pseries/lparcfg.c *new_weight_ptr = (u8) simple_strtoul(tmp, &endp, 10); endp 630 arch/powerpc/platforms/pseries/lparcfg.c if (endp == tmp) endp 635 arch/powerpc/platforms/pseries/lparcfg.c char *endp; endp 636 arch/powerpc/platforms/pseries/lparcfg.c *new_entitled_ptr = (u64) simple_strtoul(tmp, &endp, 10); endp 637 arch/powerpc/platforms/pseries/lparcfg.c if (endp == tmp) endp 642 arch/powerpc/platforms/pseries/lparcfg.c char *endp; endp 643 arch/powerpc/platforms/pseries/lparcfg.c *new_weight_ptr = (u8) simple_strtoul(tmp, &endp, 10); endp 644 arch/powerpc/platforms/pseries/lparcfg.c if (endp == tmp) endp 1539 arch/powerpc/xmon/xmon.c unsigned long *endp) endp 1544 arch/powerpc/xmon/xmon.c *startp = *endp = 0; endp 1553 arch/powerpc/xmon/xmon.c *endp = pc - offset + size; endp 178 arch/s390/boot/ipl_parm.c char *endp; endp 187 arch/s390/boot/ipl_parm.c val = simple_strtoull(str, &endp, 0); endp 188 arch/s390/boot/ipl_parm.c if (str == endp) endp 190 arch/s390/boot/ipl_parm.c str = endp; endp 193 arch/s390/boot/ipl_parm.c endval = simple_strtoull(str, &endp, 0); endp 194 arch/s390/boot/ipl_parm.c if (str == endp) endp 196 arch/s390/boot/ipl_parm.c str = endp; endp 70 arch/s390/boot/string.c unsigned long long simple_strtoull(const char *cp, char **endp, endp 90 arch/s390/boot/string.c if (endp) endp 91 arch/s390/boot/string.c *endp = (char *)cp; endp 96 arch/s390/boot/string.c long simple_strtol(const char *cp, char **endp, unsigned int base) endp 99 arch/s390/boot/string.c return -simple_strtoull(cp + 1, endp, base); endp 101 arch/s390/boot/string.c return simple_strtoull(cp, endp, base); endp 239 arch/s390/mm/cmm.c static int cmm_skip_blanks(char *cp, char **endp) endp 245 arch/s390/mm/cmm.c *endp = str; endp 168 arch/unicore32/kernel/setup.c char *endp; endp 181 arch/unicore32/kernel/setup.c size = memparse(p, &endp); endp 182 arch/unicore32/kernel/setup.c if (*endp == '@') endp 183 arch/unicore32/kernel/setup.c start = memparse(endp + 1, NULL); endp 330 arch/x86/boot/boot.h unsigned long long simple_strtoull(const char *cp, char **endp, unsigned int base); endp 121 arch/x86/boot/string.c unsigned long long simple_strtoull(const char *cp, char **endp, unsigned int base) endp 140 arch/x86/boot/string.c if (endp) endp 141 arch/x86/boot/string.c *endp = (char *)cp; endp 146 arch/x86/boot/string.c long simple_strtol(const char *cp, char **endp, unsigned int base) endp 149 arch/x86/boot/string.c return -simple_strtoull(cp + 1, endp, base); endp 151 arch/x86/boot/string.c return simple_strtoull(cp, endp, base); endp 29 arch/x86/boot/string.h extern unsigned long long simple_strtoull(const char *cp, char **endp, endp 1070 block/bfq-cgroup.c char *endp; endp 1077 block/bfq-cgroup.c v = simple_strtoull(buf, &endp, 0); endp 1078 block/bfq-cgroup.c if (*endp == '\0' || sscanf(buf, "default %llu", &v) == 1) { endp 6955 drivers/ata/libata-core.c char *id, *val, *endp; endp 6985 drivers/ata/libata-core.c force_ent->device = simple_strtoul(p, &endp, 10); endp 6986 drivers/ata/libata-core.c if (p == endp || *endp != '\0') { endp 6992 drivers/ata/libata-core.c force_ent->port = simple_strtoul(id, &endp, 10); endp 6993 drivers/ata/libata-core.c if (id == endp || *endp != '\0') { endp 781 drivers/block/amiflop.c ushort *ptr = (ushort *)raw, *endp = (ushort *)end; endp 783 drivers/block/amiflop.c while (ptr < endp && *ptr++ != 0x4489) endp 785 drivers/block/amiflop.c if (ptr < endp) { endp 786 drivers/block/amiflop.c while (*ptr == 0x4489 && ptr < endp) endp 178 drivers/char/ipmi/ipmi_watchdog.c char *endp; endp 184 drivers/char/ipmi/ipmi_watchdog.c l = simple_strtoul(val, &endp, 0); endp 185 drivers/char/ipmi/ipmi_watchdog.c if (endp == val) endp 975 drivers/clk/sunxi/clk-sunxi.c char *endp; endp 979 drivers/clk/sunxi/clk-sunxi.c endp = strchr(clk_name, '_'); endp 980 drivers/clk/sunxi/clk-sunxi.c if (endp) { endp 981 drivers/clk/sunxi/clk-sunxi.c derived_name = kstrndup(clk_name, endp - clk_name, endp 212 drivers/gpio/gpiolib-acpi.c char *endp; endp 223 drivers/gpio/gpiolib-acpi.c pin = simple_strtoul(pin_str + 1, &endp, 10); endp 224 drivers/gpio/gpiolib-acpi.c if (*endp != 0 && *endp != ',') endp 196 drivers/macintosh/windfarm_core.c char *endp; endp 198 drivers/macintosh/windfarm_core.c val = simple_strtoul(buf, &endp, 0); endp 199 drivers/macintosh/windfarm_core.c while (endp < buf + count && (*endp == ' ' || *endp == '\n')) endp 200 drivers/macintosh/windfarm_core.c ++endp; endp 201 drivers/macintosh/windfarm_core.c if (endp - buf < count) endp 305 drivers/media/tuners/tuner-xc2028.c const unsigned char *p, *endp; endp 313 drivers/media/tuners/tuner-xc2028.c endp = p + fw->size; endp 344 drivers/media/tuners/tuner-xc2028.c while (p < endp) { endp 356 drivers/media/tuners/tuner-xc2028.c if (endp - p < sizeof(type) + sizeof(id) + sizeof(size)) endp 368 drivers/media/tuners/tuner-xc2028.c if (endp - p < sizeof(size)) endp 375 drivers/media/tuners/tuner-xc2028.c if (!size || size > endp - p) { endp 380 drivers/media/tuners/tuner-xc2028.c type, (unsigned long long)id, (endp - p), size); endp 547 drivers/media/tuners/tuner-xc2028.c unsigned char *p, *endp, buf[MAX_XFER_SIZE]; endp 564 drivers/media/tuners/tuner-xc2028.c endp = p + priv->firm[pos].size; endp 566 drivers/media/tuners/tuner-xc2028.c while (p < endp) { endp 570 drivers/media/tuners/tuner-xc2028.c if (p + sizeof(size) > endp) { endp 616 drivers/media/tuners/tuner-xc2028.c if ((size + p > endp)) { endp 618 drivers/media/tuners/tuner-xc2028.c size, (endp - p)); endp 709 drivers/media/tuners/xc4000.c const unsigned char *p, *endp; endp 746 drivers/media/tuners/xc4000.c endp = p + fw->size; endp 777 drivers/media/tuners/xc4000.c while (p < endp) { endp 789 drivers/media/tuners/xc4000.c if (endp - p < sizeof(type) + sizeof(id) + sizeof(size)) endp 801 drivers/media/tuners/xc4000.c if (endp - p < sizeof(size)) endp 808 drivers/media/tuners/xc4000.c if (!size || size > endp - p) { endp 811 drivers/media/tuners/xc4000.c endp - p, size); endp 1157 drivers/media/usb/tm6000/tm6000-cards.c tm_ep->endp = curr_e; endp 1301 drivers/media/usb/tm6000/tm6000-cards.c if (!dev->isoc_in.endp) { endp 122 drivers/media/usb/tm6000/tm6000-dvb.c pipe = usb_rcvbulkpipe(dev->udev, dev->bulk_in.endp->desc.bEndpointAddress endp 340 drivers/media/usb/tm6000/tm6000-input.c dev->int_in.endp->desc.bEndpointAddress endp 351 drivers/media/usb/tm6000/tm6000-input.c dprintk(1, "int interval: %d\n", dev->int_in.endp->desc.bInterval); endp 356 drivers/media/usb/tm6000/tm6000-input.c dev->int_in.endp->desc.bInterval); endp 433 drivers/media/usb/tm6000/tm6000-input.c if (dev->int_in.endp) { endp 120 drivers/media/usb/tm6000/tm6000-video.c u8 *ptr = data, *endp = data+len; endp 140 drivers/media/usb/tm6000/tm6000-video.c for (ptr = data; ptr < endp;) { endp 155 drivers/media/usb/tm6000/tm6000-video.c if (ptr + 3 >= endp) { endp 157 drivers/media/usb/tm6000/tm6000-video.c dev->isoc_ctl.tmp_buf_len = endp - ptr; endp 163 drivers/media/usb/tm6000/tm6000-video.c for (; ptr < endp - 3; ptr++) { endp 231 drivers/media/usb/tm6000/tm6000-video.c cpysize = (endp - ptr > size) ? size : endp - ptr; endp 261 drivers/media/usb/tm6000/tm6000-video.c if (ptr + pktsize > endp) { endp 270 drivers/media/usb/tm6000/tm6000-video.c dev->isoc_ctl.pktsize = pktsize - (endp - ptr); endp 271 drivers/media/usb/tm6000/tm6000-video.c ptr += endp - ptr; endp 569 drivers/media/usb/tm6000/tm6000-video.c dev->isoc_in.endp->desc.bEndpointAddress & endp 629 drivers/media/usb/tm6000/tm6000-video.c urb->interval = dev->isoc_in.endp->desc.bInterval; endp 1481 drivers/media/usb/tm6000/tm6000-video.c if (dev->int_in.endp) endp 153 drivers/media/usb/tm6000/tm6000.h struct usb_host_endpoint *endp; endp 326 drivers/mtd/devices/block2mtd.c static int ustrtoul(const char *cp, char **endp, unsigned int base) endp 328 drivers/mtd/devices/block2mtd.c unsigned long result = simple_strtoul(cp, endp, base); endp 329 drivers/mtd/devices/block2mtd.c switch (**endp) { endp 340 drivers/mtd/devices/block2mtd.c if ((*endp)[1] == 'i') { endp 341 drivers/mtd/devices/block2mtd.c if ((*endp)[2] == 'B') endp 342 drivers/mtd/devices/block2mtd.c (*endp) += 3; endp 344 drivers/mtd/devices/block2mtd.c (*endp) += 2; endp 353 drivers/mtd/devices/block2mtd.c char *endp; endp 356 drivers/mtd/devices/block2mtd.c n = (size_t) ustrtoul(token, &endp, 0); endp 357 drivers/mtd/devices/block2mtd.c if (*endp) endp 369 drivers/mtd/mtdoops.c char *endp; endp 386 drivers/mtd/mtdoops.c mtd_index = simple_strtoul(mtddev, &endp, 0); endp 387 drivers/mtd/mtdoops.c if (*endp == '\0') endp 1153 drivers/mtd/ubi/build.c char *endp; endp 1155 drivers/mtd/ubi/build.c mtd_num = simple_strtoul(mtd_dev, &endp, 0); endp 1156 drivers/mtd/ubi/build.c if (*endp != '\0' || mtd_dev == endp) { endp 1312 drivers/mtd/ubi/build.c char *endp; endp 1315 drivers/mtd/ubi/build.c result = simple_strtoul(str, &endp, 0); endp 1316 drivers/mtd/ubi/build.c if (str == endp || result >= INT_MAX) { endp 1321 drivers/mtd/ubi/build.c switch (*endp) { endp 1330 drivers/mtd/ubi/build.c if (endp[1] == 'i' && endp[2] == 'B') endp 1331 drivers/mtd/ubi/build.c endp += 2; endp 187 drivers/net/usb/hso.c struct usb_endpoint_descriptor *endp; endp 1433 drivers/net/usb/hso.c tiocmget->endp-> endp 1438 drivers/net/usb/hso.c tiocmget->endp->bInterval); endp 2628 drivers/net/usb/hso.c tiocmget->endp = hso_get_ep(interface, endp 2631 drivers/net/usb/hso.c if (!tiocmget->endp) { endp 3144 drivers/net/usb/hso.c struct usb_endpoint_descriptor *endp; endp 3147 drivers/net/usb/hso.c endp = &iface->endpoint[i].desc; endp 3148 drivers/net/usb/hso.c if (((endp->bEndpointAddress & USB_ENDPOINT_DIR_MASK) == dir) && endp 3149 drivers/net/usb/hso.c (usb_endpoint_type(endp) == type)) endp 3150 drivers/net/usb/hso.c return endp; endp 434 drivers/net/usb/ipheth.c struct usb_endpoint_descriptor *endp; endp 462 drivers/net/usb/ipheth.c endp = &hintf->endpoint[i].desc; endp 463 drivers/net/usb/ipheth.c if (usb_endpoint_is_bulk_in(endp)) endp 464 drivers/net/usb/ipheth.c dev->bulk_in = endp->bEndpointAddress; endp 465 drivers/net/usb/ipheth.c else if (usb_endpoint_is_bulk_out(endp)) endp 466 drivers/net/usb/ipheth.c dev->bulk_out = endp->bEndpointAddress; endp 2111 drivers/net/xen-netfront.c char *endp; endp 2117 drivers/net/xen-netfront.c target = simple_strtoul(buf, &endp, 0); endp 2118 drivers/net/xen-netfront.c if (endp == buf) endp 1000 drivers/of/fdt.c const __be32 *reg, *endp; endp 1014 drivers/of/fdt.c endp = reg + (l / sizeof(__be32)); endp 1019 drivers/of/fdt.c while ((endp - reg) >= (dt_root_addr_cells + dt_root_size_cells)) { endp 86 drivers/pci/hotplug/cpqphp_core.c void __iomem *endp; endp 90 drivers/pci/hotplug/cpqphp_core.c endp = (end - sizeof(u32) + 1); endp 92 drivers/pci/hotplug/cpqphp_core.c for (fp = begin; fp <= endp; fp += 16) { endp 42 drivers/pci/hotplug/cpqphp_pci.c void __iomem *endp; endp 46 drivers/pci/hotplug/cpqphp_pci.c endp = (end - sizeof(struct hrt) + 1); endp 48 drivers/pci/hotplug/cpqphp_pci.c for (fp = begin; fp <= endp; fp += 16) { endp 1090 drivers/platform/x86/thinkpad_acpi.c char *endp; endp 1092 drivers/platform/x86/thinkpad_acpi.c *value = simple_strtoul(skip_spaces(buf), &endp, 0); endp 1093 drivers/platform/x86/thinkpad_acpi.c endp = skip_spaces(endp); endp 1094 drivers/platform/x86/thinkpad_acpi.c if (*endp || *value > max) endp 333 drivers/s390/char/sclp_cpi_sys.c char *endp; endp 335 drivers/s390/char/sclp_cpi_sys.c level = simple_strtoull(buf, &endp, 16); endp 337 drivers/s390/char/sclp_cpi_sys.c if (endp == buf) endp 339 drivers/s390/char/sclp_cpi_sys.c if (*endp == '\n') endp 340 drivers/s390/char/sclp_cpi_sys.c endp++; endp 341 drivers/s390/char/sclp_cpi_sys.c if (*endp) endp 444 drivers/scsi/scsi_transport_spi.c char *endp; endp 446 drivers/scsi/scsi_transport_spi.c picosec = simple_strtoul(buf, &endp, 10) * 1000; endp 447 drivers/scsi/scsi_transport_spi.c if (*endp == '.') { endp 450 drivers/scsi/scsi_transport_spi.c endp++; endp 451 drivers/scsi/scsi_transport_spi.c if (!isdigit(*endp)) endp 453 drivers/scsi/scsi_transport_spi.c picosec += (*endp - '0') * mult; endp 154 drivers/spi/spi-tle62x0.c char *endp; endp 156 drivers/spi/spi-tle62x0.c val = simple_strtoul(buf, &endp, 0); endp 157 drivers/spi/spi-tle62x0.c if (buf == endp) endp 1063 drivers/usb/core/message.c int endp = usb_pipeendpoint(pipe); endp 1066 drivers/usb/core/message.c endp |= USB_DIR_IN; endp 1074 drivers/usb/core/message.c USB_ENDPOINT_HALT, endp, NULL, 0, endp 1089 drivers/usb/core/message.c usb_reset_endpoint(dev, endp); endp 1595 drivers/usb/gadget/composite.c u8 endp; endp 1935 drivers/usb/gadget/composite.c endp = ((w_index & 0x80) >> 3) | (w_index & 0x0f); endp 1937 drivers/usb/gadget/composite.c if (test_bit(endp, f->endpoints)) endp 203 drivers/usb/host/u132-hcd.c struct u132_endp *endp[MAX_U132_ENDPS]; endp 331 drivers/usb/host/u132-hcd.c struct u132_endp *endp = kref_to_u132_endp(kref); endp 332 drivers/usb/host/u132-hcd.c struct u132 *u132 = endp->u132; endp 333 drivers/usb/host/u132-hcd.c u8 usb_addr = endp->usb_addr; endp 334 drivers/usb/host/u132-hcd.c u8 usb_endp = endp->usb_endp; endp 337 drivers/usb/host/u132-hcd.c u8 endp_number = endp->endp_number; endp 338 drivers/usb/host/u132-hcd.c struct usb_host_endpoint *hep = endp->hep; endp 339 drivers/usb/host/u132-hcd.c struct u132_ring *ring = endp->ring; endp 340 drivers/usb/host/u132-hcd.c struct list_head *head = &endp->endp_ring; endp 342 drivers/usb/host/u132-hcd.c if (endp == ring->curr_endp) { endp 354 drivers/usb/host/u132-hcd.c if (endp->input) { endp 358 drivers/usb/host/u132-hcd.c if (endp->output) { endp 362 drivers/usb/host/u132-hcd.c u132->endp[endp_number - 1] = NULL; endp 364 drivers/usb/host/u132-hcd.c kfree(endp); endp 368 drivers/usb/host/u132-hcd.c static inline void u132_endp_put_kref(struct u132 *u132, struct u132_endp *endp) endp 370 drivers/usb/host/u132-hcd.c kref_put(&endp->kref, u132_endp_delete); endp 373 drivers/usb/host/u132-hcd.c static inline void u132_endp_get_kref(struct u132 *u132, struct u132_endp *endp) endp 375 drivers/usb/host/u132-hcd.c kref_get(&endp->kref); endp 379 drivers/usb/host/u132-hcd.c struct u132_endp *endp) endp 381 drivers/usb/host/u132-hcd.c kref_init(&endp->kref); endp 385 drivers/usb/host/u132-hcd.c static void u132_endp_queue_work(struct u132 *u132, struct u132_endp *endp, endp 388 drivers/usb/host/u132-hcd.c if (queue_delayed_work(workqueue, &endp->scheduler, delta)) endp 389 drivers/usb/host/u132-hcd.c kref_get(&endp->kref); endp 392 drivers/usb/host/u132-hcd.c static void u132_endp_cancel_work(struct u132 *u132, struct u132_endp *endp) endp 394 drivers/usb/host/u132-hcd.c if (cancel_delayed_work(&endp->scheduler)) endp 395 drivers/usb/host/u132-hcd.c kref_put(&endp->kref, u132_endp_delete); endp 507 drivers/usb/host/u132-hcd.c static void u132_hcd_giveback_urb(struct u132 *u132, struct u132_endp *endp, endp 514 drivers/usb/host/u132-hcd.c spin_lock_irqsave(&endp->queue_lock.slock, irqs); endp 516 drivers/usb/host/u132-hcd.c endp->queue_next += 1; endp 517 drivers/usb/host/u132-hcd.c if (ENDP_QUEUE_SIZE > --endp->queue_size) { endp 518 drivers/usb/host/u132-hcd.c endp->active = 0; endp 519 drivers/usb/host/u132-hcd.c spin_unlock_irqrestore(&endp->queue_lock.slock, irqs); endp 521 drivers/usb/host/u132-hcd.c struct list_head *next = endp->urb_more.next; endp 525 drivers/usb/host/u132-hcd.c endp->urb_list[ENDP_QUEUE_MASK & endp->queue_last++] = endp 527 drivers/usb/host/u132-hcd.c endp->active = 0; endp 528 drivers/usb/host/u132-hcd.c spin_unlock_irqrestore(&endp->queue_lock.slock, irqs); endp 532 drivers/usb/host/u132-hcd.c ring = endp->ring; endp 537 drivers/usb/host/u132-hcd.c u132_endp_put_kref(u132, endp); endp 541 drivers/usb/host/u132-hcd.c static void u132_hcd_forget_urb(struct u132 *u132, struct u132_endp *endp, endp 544 drivers/usb/host/u132-hcd.c u132_endp_put_kref(u132, endp); endp 547 drivers/usb/host/u132-hcd.c static void u132_hcd_abandon_urb(struct u132 *u132, struct u132_endp *endp, endp 553 drivers/usb/host/u132-hcd.c spin_lock_irqsave(&endp->queue_lock.slock, irqs); endp 555 drivers/usb/host/u132-hcd.c endp->queue_next += 1; endp 556 drivers/usb/host/u132-hcd.c if (ENDP_QUEUE_SIZE > --endp->queue_size) { endp 557 drivers/usb/host/u132-hcd.c endp->active = 0; endp 558 drivers/usb/host/u132-hcd.c spin_unlock_irqrestore(&endp->queue_lock.slock, irqs); endp 560 drivers/usb/host/u132-hcd.c struct list_head *next = endp->urb_more.next; endp 564 drivers/usb/host/u132-hcd.c endp->urb_list[ENDP_QUEUE_MASK & endp->queue_last++] = endp 566 drivers/usb/host/u132-hcd.c endp->active = 0; endp 567 drivers/usb/host/u132-hcd.c spin_unlock_irqrestore(&endp->queue_lock.slock, irqs); endp 574 drivers/usb/host/u132-hcd.c struct u132_endp *endp, struct urb *urb, u8 address, u8 toggle_bits, endp 575 drivers/usb/host/u132-hcd.c void (*callback) (void *endp, struct urb *urb, u8 *buf, int len, endp 579 drivers/usb/host/u132-hcd.c return usb_ftdi_elan_edset_input(u132->platform_dev, ring->number, endp, endp 580 drivers/usb/host/u132-hcd.c urb, address, endp->usb_endp, toggle_bits, callback); endp 584 drivers/usb/host/u132-hcd.c struct u132_endp *endp, struct urb *urb, u8 address, u8 toggle_bits, endp 585 drivers/usb/host/u132-hcd.c void (*callback) (void *endp, struct urb *urb, u8 *buf, int len, endp 589 drivers/usb/host/u132-hcd.c return usb_ftdi_elan_edset_setup(u132->platform_dev, ring->number, endp, endp 590 drivers/usb/host/u132-hcd.c urb, address, endp->usb_endp, toggle_bits, callback); endp 594 drivers/usb/host/u132-hcd.c struct u132_endp *endp, struct urb *urb, u8 address, u8 toggle_bits, endp 595 drivers/usb/host/u132-hcd.c void (*callback) (void *endp, struct urb *urb, u8 *buf, int len, endp 600 drivers/usb/host/u132-hcd.c endp, urb, address, endp->usb_endp, toggle_bits, callback); endp 604 drivers/usb/host/u132-hcd.c struct u132_endp *endp, struct urb *urb, u8 address, u8 toggle_bits, endp 605 drivers/usb/host/u132-hcd.c void (*callback) (void *endp, struct urb *urb, u8 *buf, int len, endp 610 drivers/usb/host/u132-hcd.c endp, urb, address, endp->usb_endp, toggle_bits, callback); endp 622 drivers/usb/host/u132-hcd.c struct u132_endp *endp = data; endp 623 drivers/usb/host/u132-hcd.c struct u132 *u132 = endp->u132; endp 624 drivers/usb/host/u132-hcd.c u8 address = u132->addr[endp->usb_addr].address; endp 631 drivers/usb/host/u132-hcd.c u132_hcd_forget_urb(u132, endp, urb, -ENODEV); endp 633 drivers/usb/host/u132-hcd.c } else if (endp->dequeueing) { endp 634 drivers/usb/host/u132-hcd.c endp->dequeueing = 0; endp 636 drivers/usb/host/u132-hcd.c u132_hcd_giveback_urb(u132, endp, urb, -EINTR); endp 642 drivers/usb/host/u132-hcd.c u132_hcd_giveback_urb(u132, endp, urb, -ENODEV); endp 645 drivers/usb/host/u132-hcd.c struct u132_ring *ring = endp->ring; endp 656 drivers/usb/host/u132-hcd.c endp->toggle_bits = toggle_bits; endp 657 drivers/usb/host/u132-hcd.c usb_settoggle(udev->usb_device, endp->usb_endp, 0, endp 662 drivers/usb/host/u132-hcd.c retval = edset_single(u132, ring, endp, urb, endp 663 drivers/usb/host/u132-hcd.c address, endp->toggle_bits, endp 666 drivers/usb/host/u132-hcd.c u132_hcd_giveback_urb(u132, endp, urb, endp 670 drivers/usb/host/u132-hcd.c endp->active = 0; endp 671 drivers/usb/host/u132-hcd.c endp->jiffies = jiffies + endp 676 drivers/usb/host/u132-hcd.c u132_endp_put_kref(u132, endp); endp 681 drivers/usb/host/u132-hcd.c endp->toggle_bits = toggle_bits; endp 682 drivers/usb/host/u132-hcd.c usb_settoggle(udev->usb_device, endp->usb_endp, 0, endp 685 drivers/usb/host/u132-hcd.c u132_hcd_giveback_urb(u132, endp, urb, 0); endp 689 drivers/usb/host/u132-hcd.c endp->toggle_bits = toggle_bits; endp 690 drivers/usb/host/u132-hcd.c usb_settoggle(udev->usb_device, endp->usb_endp, endp 693 drivers/usb/host/u132-hcd.c endp->toggle_bits = 0x2; endp 694 drivers/usb/host/u132-hcd.c usb_settoggle(udev->usb_device, endp->usb_endp, endp 697 drivers/usb/host/u132-hcd.c endp->toggle_bits = 0x2; endp 698 drivers/usb/host/u132-hcd.c usb_settoggle(udev->usb_device, endp->usb_endp, endp 705 drivers/usb/host/u132-hcd.c u132_hcd_giveback_urb(u132, endp, urb, endp 713 drivers/usb/host/u132-hcd.c u132_hcd_giveback_urb(u132, endp, urb, 0); endp 722 drivers/usb/host/u132-hcd.c struct u132_endp *endp = data; endp 723 drivers/usb/host/u132-hcd.c struct u132 *u132 = endp->u132; endp 724 drivers/usb/host/u132-hcd.c u8 address = u132->addr[endp->usb_addr].address; endp 730 drivers/usb/host/u132-hcd.c u132_hcd_forget_urb(u132, endp, urb, -ENODEV); endp 732 drivers/usb/host/u132-hcd.c } else if (endp->dequeueing) { endp 733 drivers/usb/host/u132-hcd.c endp->dequeueing = 0; endp 735 drivers/usb/host/u132-hcd.c u132_hcd_giveback_urb(u132, endp, urb, -EINTR); endp 741 drivers/usb/host/u132-hcd.c u132_hcd_giveback_urb(u132, endp, urb, -ENODEV); endp 744 drivers/usb/host/u132-hcd.c struct u132_ring *ring = endp->ring; endp 746 drivers/usb/host/u132-hcd.c endp->toggle_bits = toggle_bits; endp 750 drivers/usb/host/u132-hcd.c retval = edset_output(u132, ring, endp, urb, address, endp 751 drivers/usb/host/u132-hcd.c endp->toggle_bits, u132_hcd_bulk_output_sent); endp 753 drivers/usb/host/u132-hcd.c u132_hcd_giveback_urb(u132, endp, urb, retval); endp 757 drivers/usb/host/u132-hcd.c u132_hcd_giveback_urb(u132, endp, urb, 0); endp 764 drivers/usb/host/u132-hcd.c u132_hcd_giveback_urb(u132, endp, urb, 0); endp 773 drivers/usb/host/u132-hcd.c struct u132_endp *endp = data; endp 774 drivers/usb/host/u132-hcd.c struct u132 *u132 = endp->u132; endp 775 drivers/usb/host/u132-hcd.c u8 address = u132->addr[endp->usb_addr].address; endp 782 drivers/usb/host/u132-hcd.c u132_hcd_forget_urb(u132, endp, urb, -ENODEV); endp 784 drivers/usb/host/u132-hcd.c } else if (endp->dequeueing) { endp 785 drivers/usb/host/u132-hcd.c endp->dequeueing = 0; endp 787 drivers/usb/host/u132-hcd.c u132_hcd_giveback_urb(u132, endp, urb, -EINTR); endp 793 drivers/usb/host/u132-hcd.c u132_hcd_giveback_urb(u132, endp, urb, -ENODEV); endp 796 drivers/usb/host/u132-hcd.c struct u132_ring *ring = endp->ring; endp 808 drivers/usb/host/u132-hcd.c endp->toggle_bits = toggle_bits; endp 809 drivers/usb/host/u132-hcd.c usb_settoggle(udev->usb_device, endp->usb_endp, 0, endp 813 drivers/usb/host/u132-hcd.c ring->number, endp, urb, address, endp 814 drivers/usb/host/u132-hcd.c endp->usb_endp, endp->toggle_bits, endp 817 drivers/usb/host/u132-hcd.c u132_hcd_giveback_urb(u132, endp, urb, retval); endp 820 drivers/usb/host/u132-hcd.c endp->toggle_bits = toggle_bits; endp 821 drivers/usb/host/u132-hcd.c usb_settoggle(udev->usb_device, endp->usb_endp, 0, endp 824 drivers/usb/host/u132-hcd.c u132_hcd_giveback_urb(u132, endp, urb, endp 829 drivers/usb/host/u132-hcd.c endp->toggle_bits = toggle_bits; endp 830 drivers/usb/host/u132-hcd.c usb_settoggle(udev->usb_device, endp->usb_endp, 0, endp 833 drivers/usb/host/u132-hcd.c u132_hcd_giveback_urb(u132, endp, urb, 0); endp 836 drivers/usb/host/u132-hcd.c endp->toggle_bits = toggle_bits; endp 837 drivers/usb/host/u132-hcd.c usb_settoggle(udev->usb_device, endp->usb_endp, 0, endp 843 drivers/usb/host/u132-hcd.c u132_hcd_giveback_urb(u132, endp, urb, 0); endp 846 drivers/usb/host/u132-hcd.c endp->toggle_bits = 0x2; endp 847 drivers/usb/host/u132-hcd.c usb_settoggle(udev->usb_device, endp->usb_endp, 0, 0); endp 849 drivers/usb/host/u132-hcd.c u132_hcd_giveback_urb(u132, endp, urb, endp 853 drivers/usb/host/u132-hcd.c endp->toggle_bits = 0x2; endp 854 drivers/usb/host/u132-hcd.c usb_settoggle(udev->usb_device, endp->usb_endp, 0, 0); endp 859 drivers/usb/host/u132-hcd.c u132_hcd_giveback_urb(u132, endp, urb, endp 867 drivers/usb/host/u132-hcd.c u132_hcd_giveback_urb(u132, endp, urb, 0); endp 876 drivers/usb/host/u132-hcd.c struct u132_endp *endp = data; endp 877 drivers/usb/host/u132-hcd.c struct u132 *u132 = endp->u132; endp 883 drivers/usb/host/u132-hcd.c u132_hcd_forget_urb(u132, endp, urb, -ENODEV); endp 885 drivers/usb/host/u132-hcd.c } else if (endp->dequeueing) { endp 886 drivers/usb/host/u132-hcd.c endp->dequeueing = 0; endp 888 drivers/usb/host/u132-hcd.c u132_hcd_giveback_urb(u132, endp, urb, -EINTR); endp 894 drivers/usb/host/u132-hcd.c u132_hcd_giveback_urb(u132, endp, urb, -ENODEV); endp 898 drivers/usb/host/u132-hcd.c u132_hcd_giveback_urb(u132, endp, urb, 0); endp 904 drivers/usb/host/u132-hcd.c u132_hcd_giveback_urb(u132, endp, urb, 0); endp 913 drivers/usb/host/u132-hcd.c struct u132_endp *endp = data; endp 914 drivers/usb/host/u132-hcd.c struct u132 *u132 = endp->u132; endp 915 drivers/usb/host/u132-hcd.c u8 address = u132->addr[endp->usb_addr].address; endp 921 drivers/usb/host/u132-hcd.c u132_hcd_forget_urb(u132, endp, urb, -ENODEV); endp 923 drivers/usb/host/u132-hcd.c } else if (endp->dequeueing) { endp 924 drivers/usb/host/u132-hcd.c endp->dequeueing = 0; endp 926 drivers/usb/host/u132-hcd.c u132_hcd_giveback_urb(u132, endp, urb, -EINTR); endp 932 drivers/usb/host/u132-hcd.c u132_hcd_giveback_urb(u132, endp, urb, -ENODEV); endp 935 drivers/usb/host/u132-hcd.c struct u132_ring *ring = endp->ring; endp 950 drivers/usb/host/u132-hcd.c ring->number, endp, urb, address, endp 951 drivers/usb/host/u132-hcd.c endp->usb_endp, 0x3, endp 954 drivers/usb/host/u132-hcd.c u132_hcd_giveback_urb(u132, endp, urb, retval); endp 960 drivers/usb/host/u132-hcd.c u132_hcd_giveback_urb(u132, endp, urb, endp 968 drivers/usb/host/u132-hcd.c u132_hcd_giveback_urb(u132, endp, urb, endp 976 drivers/usb/host/u132-hcd.c u132_hcd_giveback_urb(u132, endp, urb, 0); endp 985 drivers/usb/host/u132-hcd.c struct u132_endp *endp = data; endp 986 drivers/usb/host/u132-hcd.c struct u132 *u132 = endp->u132; endp 992 drivers/usb/host/u132-hcd.c u132_hcd_forget_urb(u132, endp, urb, -ENODEV); endp 994 drivers/usb/host/u132-hcd.c } else if (endp->dequeueing) { endp 995 drivers/usb/host/u132-hcd.c endp->dequeueing = 0; endp 997 drivers/usb/host/u132-hcd.c u132_hcd_giveback_urb(u132, endp, urb, -EINTR); endp 1003 drivers/usb/host/u132-hcd.c u132_hcd_giveback_urb(u132, endp, urb, -ENODEV); endp 1007 drivers/usb/host/u132-hcd.c u132_hcd_giveback_urb(u132, endp, urb, 0); endp 1013 drivers/usb/host/u132-hcd.c u132_hcd_giveback_urb(u132, endp, urb, 0); endp 1022 drivers/usb/host/u132-hcd.c struct u132_endp *endp = data; endp 1023 drivers/usb/host/u132-hcd.c struct u132 *u132 = endp->u132; endp 1024 drivers/usb/host/u132-hcd.c u8 address = u132->addr[endp->usb_addr].address; endp 1030 drivers/usb/host/u132-hcd.c u132_hcd_forget_urb(u132, endp, urb, -ENODEV); endp 1032 drivers/usb/host/u132-hcd.c } else if (endp->dequeueing) { endp 1033 drivers/usb/host/u132-hcd.c endp->dequeueing = 0; endp 1035 drivers/usb/host/u132-hcd.c u132_hcd_giveback_urb(u132, endp, urb, -EINTR); endp 1041 drivers/usb/host/u132-hcd.c u132_hcd_giveback_urb(u132, endp, urb, -ENODEV); endp 1046 drivers/usb/host/u132-hcd.c struct u132_ring *ring = endp->ring; endp 1049 drivers/usb/host/u132-hcd.c ring->number, endp, urb, address, endp 1050 drivers/usb/host/u132-hcd.c endp->usb_endp, 0, endp 1053 drivers/usb/host/u132-hcd.c u132_hcd_giveback_urb(u132, endp, urb, retval); endp 1057 drivers/usb/host/u132-hcd.c struct u132_ring *ring = endp->ring; endp 1060 drivers/usb/host/u132-hcd.c ring->number, endp, urb, address, endp 1061 drivers/usb/host/u132-hcd.c endp->usb_endp, 0, endp 1064 drivers/usb/host/u132-hcd.c u132_hcd_giveback_urb(u132, endp, urb, retval); endp 1071 drivers/usb/host/u132-hcd.c u132_hcd_giveback_urb(u132, endp, urb, 0); endp 1080 drivers/usb/host/u132-hcd.c struct u132_endp *endp = data; endp 1081 drivers/usb/host/u132-hcd.c struct u132 *u132 = endp->u132; endp 1082 drivers/usb/host/u132-hcd.c u8 address = u132->addr[endp->usb_addr].address; endp 1089 drivers/usb/host/u132-hcd.c u132_hcd_forget_urb(u132, endp, urb, -ENODEV); endp 1091 drivers/usb/host/u132-hcd.c } else if (endp->dequeueing) { endp 1092 drivers/usb/host/u132-hcd.c endp->dequeueing = 0; endp 1094 drivers/usb/host/u132-hcd.c u132_hcd_giveback_urb(u132, endp, urb, -EINTR); endp 1100 drivers/usb/host/u132-hcd.c u132_hcd_giveback_urb(u132, endp, urb, -ENODEV); endp 1104 drivers/usb/host/u132-hcd.c endp->usb_addr = udev->usb_addr; endp 1106 drivers/usb/host/u132-hcd.c u132_hcd_giveback_urb(u132, endp, urb, 0); endp 1112 drivers/usb/host/u132-hcd.c u132_hcd_giveback_urb(u132, endp, urb, 0); endp 1121 drivers/usb/host/u132-hcd.c struct u132_endp *endp = data; endp 1122 drivers/usb/host/u132-hcd.c struct u132 *u132 = endp->u132; endp 1128 drivers/usb/host/u132-hcd.c u132_hcd_forget_urb(u132, endp, urb, -ENODEV); endp 1130 drivers/usb/host/u132-hcd.c } else if (endp->dequeueing) { endp 1131 drivers/usb/host/u132-hcd.c endp->dequeueing = 0; endp 1133 drivers/usb/host/u132-hcd.c u132_hcd_giveback_urb(u132, endp, urb, -EINTR); endp 1139 drivers/usb/host/u132-hcd.c u132_hcd_giveback_urb(u132, endp, urb, -ENODEV); endp 1143 drivers/usb/host/u132-hcd.c struct u132_ring *ring = endp->ring; endp 1146 drivers/usb/host/u132-hcd.c ring->number, endp, urb, 0, endp->usb_endp, 0, endp 1149 drivers/usb/host/u132-hcd.c u132_hcd_giveback_urb(u132, endp, urb, retval); endp 1155 drivers/usb/host/u132-hcd.c u132_hcd_giveback_urb(u132, endp, urb, 0); endp 1164 drivers/usb/host/u132-hcd.c struct u132_endp *endp = data; endp 1165 drivers/usb/host/u132-hcd.c struct u132 *u132 = endp->u132; endp 1171 drivers/usb/host/u132-hcd.c u132_hcd_forget_urb(u132, endp, urb, -ENODEV); endp 1173 drivers/usb/host/u132-hcd.c } else if (endp->dequeueing) { endp 1174 drivers/usb/host/u132-hcd.c endp->dequeueing = 0; endp 1176 drivers/usb/host/u132-hcd.c u132_hcd_giveback_urb(u132, endp, urb, -EINTR); endp 1182 drivers/usb/host/u132-hcd.c u132_hcd_giveback_urb(u132, endp, urb, -ENODEV); endp 1186 drivers/usb/host/u132-hcd.c u132_hcd_giveback_urb(u132, endp, urb, 0); endp 1192 drivers/usb/host/u132-hcd.c u132_hcd_giveback_urb(u132, endp, urb, 0); endp 1201 drivers/usb/host/u132-hcd.c struct u132_endp *endp = data; endp 1202 drivers/usb/host/u132-hcd.c struct u132 *u132 = endp->u132; endp 1203 drivers/usb/host/u132-hcd.c u8 address = u132->addr[endp->usb_addr].address; endp 1209 drivers/usb/host/u132-hcd.c u132_hcd_forget_urb(u132, endp, urb, -ENODEV); endp 1211 drivers/usb/host/u132-hcd.c } else if (endp->dequeueing) { endp 1212 drivers/usb/host/u132-hcd.c endp->dequeueing = 0; endp 1214 drivers/usb/host/u132-hcd.c u132_hcd_giveback_urb(u132, endp, urb, -EINTR); endp 1220 drivers/usb/host/u132-hcd.c u132_hcd_giveback_urb(u132, endp, urb, -ENODEV); endp 1224 drivers/usb/host/u132-hcd.c struct u132_ring *ring = endp->ring; endp 1235 drivers/usb/host/u132-hcd.c ring->number, endp, urb, address, endp->usb_endp, 0x3, endp 1238 drivers/usb/host/u132-hcd.c u132_hcd_giveback_urb(u132, endp, urb, retval); endp 1244 drivers/usb/host/u132-hcd.c u132_hcd_giveback_urb(u132, endp, urb, 0); endp 1253 drivers/usb/host/u132-hcd.c struct u132_endp *endp = data; endp 1254 drivers/usb/host/u132-hcd.c struct u132 *u132 = endp->u132; endp 1255 drivers/usb/host/u132-hcd.c u8 address = u132->addr[endp->usb_addr].address; endp 1261 drivers/usb/host/u132-hcd.c u132_hcd_forget_urb(u132, endp, urb, -ENODEV); endp 1263 drivers/usb/host/u132-hcd.c } else if (endp->dequeueing) { endp 1264 drivers/usb/host/u132-hcd.c endp->dequeueing = 0; endp 1266 drivers/usb/host/u132-hcd.c u132_hcd_giveback_urb(u132, endp, urb, -EINTR); endp 1272 drivers/usb/host/u132-hcd.c u132_hcd_giveback_urb(u132, endp, urb, -ENODEV); endp 1276 drivers/usb/host/u132-hcd.c struct u132_ring *ring = endp->ring; endp 1279 drivers/usb/host/u132-hcd.c ring->number, endp, urb, address, endp->usb_endp, 0, endp 1282 drivers/usb/host/u132-hcd.c u132_hcd_giveback_urb(u132, endp, urb, retval); endp 1288 drivers/usb/host/u132-hcd.c u132_hcd_giveback_urb(u132, endp, urb, 0); endp 1308 drivers/usb/host/u132-hcd.c struct u132_endp *endp, *last_endp = ring->curr_endp; endp 1310 drivers/usb/host/u132-hcd.c list_for_each_entry(endp, &last_endp->endp_ring, endp_ring) { endp 1311 drivers/usb/host/u132-hcd.c if (endp->queue_next == endp->queue_last) { endp 1312 drivers/usb/host/u132-hcd.c } else if ((endp->delayed == 0) endp 1313 drivers/usb/host/u132-hcd.c || time_after_eq(jiffies, endp->jiffies)) { endp 1314 drivers/usb/host/u132-hcd.c ring->curr_endp = endp; endp 1321 drivers/usb/host/u132-hcd.c unsigned long delta = endp->jiffies - jiffies; endp 1358 drivers/usb/host/u132-hcd.c struct u132_endp *endp = endp 1360 drivers/usb/host/u132-hcd.c struct u132 *u132 = endp->u132; endp 1362 drivers/usb/host/u132-hcd.c ring = endp->ring; endp 1363 drivers/usb/host/u132-hcd.c if (endp->edset_flush) { endp 1364 drivers/usb/host/u132-hcd.c endp->edset_flush = 0; endp 1365 drivers/usb/host/u132-hcd.c if (endp->dequeueing) endp 1367 drivers/usb/host/u132-hcd.c ring->number, endp); endp 1369 drivers/usb/host/u132-hcd.c u132_endp_put_kref(u132, endp); endp 1371 drivers/usb/host/u132-hcd.c } else if (endp->active) { endp 1373 drivers/usb/host/u132-hcd.c u132_endp_put_kref(u132, endp); endp 1377 drivers/usb/host/u132-hcd.c u132_endp_put_kref(u132, endp); endp 1379 drivers/usb/host/u132-hcd.c } else if (endp->queue_next == endp->queue_last) { endp 1381 drivers/usb/host/u132-hcd.c u132_endp_put_kref(u132, endp); endp 1383 drivers/usb/host/u132-hcd.c } else if (endp->pipetype == PIPE_INTERRUPT) { endp 1384 drivers/usb/host/u132-hcd.c u8 address = u132->addr[endp->usb_addr].address; endp 1387 drivers/usb/host/u132-hcd.c u132_endp_put_kref(u132, endp); endp 1391 drivers/usb/host/u132-hcd.c struct urb *urb = endp->urb_list[ENDP_QUEUE_MASK & endp 1392 drivers/usb/host/u132-hcd.c endp->queue_next]; endp 1393 drivers/usb/host/u132-hcd.c endp->active = 1; endp 1394 drivers/usb/host/u132-hcd.c ring->curr_endp = endp; endp 1397 drivers/usb/host/u132-hcd.c retval = edset_single(u132, ring, endp, urb, address, endp 1398 drivers/usb/host/u132-hcd.c endp->toggle_bits, u132_hcd_interrupt_recv); endp 1400 drivers/usb/host/u132-hcd.c u132_hcd_giveback_urb(u132, endp, urb, retval); endp 1403 drivers/usb/host/u132-hcd.c } else if (endp->pipetype == PIPE_CONTROL) { endp 1404 drivers/usb/host/u132-hcd.c u8 address = u132->addr[endp->usb_addr].address; endp 1407 drivers/usb/host/u132-hcd.c u132_endp_put_kref(u132, endp); endp 1411 drivers/usb/host/u132-hcd.c struct urb *urb = endp->urb_list[ENDP_QUEUE_MASK & endp 1412 drivers/usb/host/u132-hcd.c endp->queue_next]; endp 1413 drivers/usb/host/u132-hcd.c endp->active = 1; endp 1414 drivers/usb/host/u132-hcd.c ring->curr_endp = endp; endp 1417 drivers/usb/host/u132-hcd.c retval = edset_setup(u132, ring, endp, urb, address, endp 1420 drivers/usb/host/u132-hcd.c u132_hcd_giveback_urb(u132, endp, urb, retval); endp 1422 drivers/usb/host/u132-hcd.c } else if (endp->usb_addr == 0) { endp 1424 drivers/usb/host/u132-hcd.c struct urb *urb = endp->urb_list[ENDP_QUEUE_MASK & endp 1425 drivers/usb/host/u132-hcd.c endp->queue_next]; endp 1426 drivers/usb/host/u132-hcd.c endp->active = 1; endp 1427 drivers/usb/host/u132-hcd.c ring->curr_endp = endp; endp 1430 drivers/usb/host/u132-hcd.c retval = edset_setup(u132, ring, endp, urb, 0, 0x2, endp 1433 drivers/usb/host/u132-hcd.c u132_hcd_giveback_urb(u132, endp, urb, retval); endp 1437 drivers/usb/host/u132-hcd.c struct urb *urb = endp->urb_list[ENDP_QUEUE_MASK & endp 1438 drivers/usb/host/u132-hcd.c endp->queue_next]; endp 1439 drivers/usb/host/u132-hcd.c address = u132->addr[endp->usb_addr].address; endp 1440 drivers/usb/host/u132-hcd.c endp->active = 1; endp 1441 drivers/usb/host/u132-hcd.c ring->curr_endp = endp; endp 1444 drivers/usb/host/u132-hcd.c retval = edset_setup(u132, ring, endp, urb, address, endp 1447 drivers/usb/host/u132-hcd.c u132_hcd_giveback_urb(u132, endp, urb, retval); endp 1451 drivers/usb/host/u132-hcd.c if (endp->input) { endp 1452 drivers/usb/host/u132-hcd.c u8 address = u132->addr[endp->usb_addr].address; endp 1455 drivers/usb/host/u132-hcd.c u132_endp_put_kref(u132, endp); endp 1459 drivers/usb/host/u132-hcd.c struct urb *urb = endp->urb_list[ endp 1460 drivers/usb/host/u132-hcd.c ENDP_QUEUE_MASK & endp->queue_next]; endp 1461 drivers/usb/host/u132-hcd.c endp->active = 1; endp 1462 drivers/usb/host/u132-hcd.c ring->curr_endp = endp; endp 1465 drivers/usb/host/u132-hcd.c retval = edset_input(u132, ring, endp, urb, endp 1466 drivers/usb/host/u132-hcd.c address, endp->toggle_bits, endp 1470 drivers/usb/host/u132-hcd.c u132_hcd_giveback_urb(u132, endp, urb, endp 1475 drivers/usb/host/u132-hcd.c u8 address = u132->addr[endp->usb_addr].address; endp 1478 drivers/usb/host/u132-hcd.c u132_endp_put_kref(u132, endp); endp 1482 drivers/usb/host/u132-hcd.c struct urb *urb = endp->urb_list[ endp 1483 drivers/usb/host/u132-hcd.c ENDP_QUEUE_MASK & endp->queue_next]; endp 1484 drivers/usb/host/u132-hcd.c endp->active = 1; endp 1485 drivers/usb/host/u132-hcd.c ring->curr_endp = endp; endp 1488 drivers/usb/host/u132-hcd.c retval = edset_output(u132, ring, endp, urb, endp 1489 drivers/usb/host/u132-hcd.c address, endp->toggle_bits, endp 1493 drivers/usb/host/u132-hcd.c u132_hcd_giveback_urb(u132, endp, urb, endp 1859 drivers/usb/host/u132-hcd.c struct u132_endp *endp = kmalloc(sizeof(struct u132_endp), mem_flags); endp 1861 drivers/usb/host/u132-hcd.c if (!endp) endp 1864 drivers/usb/host/u132-hcd.c spin_lock_init(&endp->queue_lock.slock); endp 1865 drivers/usb/host/u132-hcd.c spin_lock_irqsave(&endp->queue_lock.slock, irqs); endp 1868 drivers/usb/host/u132-hcd.c spin_unlock_irqrestore(&endp->queue_lock.slock, irqs); endp 1869 drivers/usb/host/u132-hcd.c kfree(endp); endp 1874 drivers/usb/host/u132-hcd.c urb->ep->hcpriv = u132->endp[endp_number - 1] = endp; endp 1875 drivers/usb/host/u132-hcd.c INIT_DELAYED_WORK(&endp->scheduler, u132_hcd_endp_work_scheduler); endp 1876 drivers/usb/host/u132-hcd.c INIT_LIST_HEAD(&endp->urb_more); endp 1877 drivers/usb/host/u132-hcd.c ring = endp->ring = &u132->ring[0]; endp 1879 drivers/usb/host/u132-hcd.c list_add_tail(&endp->endp_ring, &ring->curr_endp->endp_ring); endp 1881 drivers/usb/host/u132-hcd.c INIT_LIST_HEAD(&endp->endp_ring); endp 1882 drivers/usb/host/u132-hcd.c ring->curr_endp = endp; endp 1885 drivers/usb/host/u132-hcd.c endp->dequeueing = 0; endp 1886 drivers/usb/host/u132-hcd.c endp->edset_flush = 0; endp 1887 drivers/usb/host/u132-hcd.c endp->active = 0; endp 1888 drivers/usb/host/u132-hcd.c endp->delayed = 0; endp 1889 drivers/usb/host/u132-hcd.c endp->endp_number = endp_number; endp 1890 drivers/usb/host/u132-hcd.c endp->u132 = u132; endp 1891 drivers/usb/host/u132-hcd.c endp->hep = urb->ep; endp 1892 drivers/usb/host/u132-hcd.c endp->pipetype = usb_pipetype(urb->pipe); endp 1893 drivers/usb/host/u132-hcd.c u132_endp_init_kref(u132, endp); endp 1895 drivers/usb/host/u132-hcd.c endp->toggle_bits = 0x2; endp 1897 drivers/usb/host/u132-hcd.c endp->input = 1; endp 1898 drivers/usb/host/u132-hcd.c endp->output = 0; endp 1902 drivers/usb/host/u132-hcd.c endp->toggle_bits = 0x2; endp 1904 drivers/usb/host/u132-hcd.c endp->input = 0; endp 1905 drivers/usb/host/u132-hcd.c endp->output = 1; endp 1910 drivers/usb/host/u132-hcd.c endp->delayed = 1; endp 1911 drivers/usb/host/u132-hcd.c endp->jiffies = jiffies + msecs_to_jiffies(urb->interval); endp 1912 drivers/usb/host/u132-hcd.c endp->udev_number = address; endp 1913 drivers/usb/host/u132-hcd.c endp->usb_addr = usb_addr; endp 1914 drivers/usb/host/u132-hcd.c endp->usb_endp = usb_endp; endp 1915 drivers/usb/host/u132-hcd.c endp->queue_size = 1; endp 1916 drivers/usb/host/u132-hcd.c endp->queue_last = 0; endp 1917 drivers/usb/host/u132-hcd.c endp->queue_next = 0; endp 1918 drivers/usb/host/u132-hcd.c endp->urb_list[ENDP_QUEUE_MASK & endp->queue_last++] = urb; endp 1919 drivers/usb/host/u132-hcd.c spin_unlock_irqrestore(&endp->queue_lock.slock, irqs); endp 1920 drivers/usb/host/u132-hcd.c u132_endp_queue_work(u132, endp, msecs_to_jiffies(urb->interval)); endp 1926 drivers/usb/host/u132-hcd.c struct usb_device *usb_dev, struct u132_endp *endp, u8 usb_addr, endp 1930 drivers/usb/host/u132-hcd.c endp->delayed = 1; endp 1931 drivers/usb/host/u132-hcd.c endp->jiffies = jiffies + msecs_to_jiffies(urb->interval); endp 1932 drivers/usb/host/u132-hcd.c if (endp->queue_size++ < ENDP_QUEUE_SIZE) { endp 1933 drivers/usb/host/u132-hcd.c endp->urb_list[ENDP_QUEUE_MASK & endp->queue_last++] = urb; endp 1938 drivers/usb/host/u132-hcd.c endp->queue_size -= 1; endp 1941 drivers/usb/host/u132-hcd.c list_add_tail(&urbq->urb_more, &endp->urb_more); endp 1958 drivers/usb/host/u132-hcd.c struct u132_endp *endp = kmalloc(sizeof(struct u132_endp), mem_flags); endp 1960 drivers/usb/host/u132-hcd.c if (!endp) endp 1963 drivers/usb/host/u132-hcd.c spin_lock_init(&endp->queue_lock.slock); endp 1964 drivers/usb/host/u132-hcd.c spin_lock_irqsave(&endp->queue_lock.slock, irqs); endp 1967 drivers/usb/host/u132-hcd.c spin_unlock_irqrestore(&endp->queue_lock.slock, irqs); endp 1968 drivers/usb/host/u132-hcd.c kfree(endp); endp 1973 drivers/usb/host/u132-hcd.c urb->ep->hcpriv = u132->endp[endp_number - 1] = endp; endp 1974 drivers/usb/host/u132-hcd.c INIT_DELAYED_WORK(&endp->scheduler, u132_hcd_endp_work_scheduler); endp 1975 drivers/usb/host/u132-hcd.c INIT_LIST_HEAD(&endp->urb_more); endp 1976 drivers/usb/host/u132-hcd.c endp->dequeueing = 0; endp 1977 drivers/usb/host/u132-hcd.c endp->edset_flush = 0; endp 1978 drivers/usb/host/u132-hcd.c endp->active = 0; endp 1979 drivers/usb/host/u132-hcd.c endp->delayed = 0; endp 1980 drivers/usb/host/u132-hcd.c endp->endp_number = endp_number; endp 1981 drivers/usb/host/u132-hcd.c endp->u132 = u132; endp 1982 drivers/usb/host/u132-hcd.c endp->hep = urb->ep; endp 1983 drivers/usb/host/u132-hcd.c endp->pipetype = usb_pipetype(urb->pipe); endp 1984 drivers/usb/host/u132-hcd.c u132_endp_init_kref(u132, endp); endp 1986 drivers/usb/host/u132-hcd.c endp->toggle_bits = 0x2; endp 1989 drivers/usb/host/u132-hcd.c endp->input = 1; endp 1990 drivers/usb/host/u132-hcd.c endp->output = 0; endp 1994 drivers/usb/host/u132-hcd.c endp->toggle_bits = 0x2; endp 1997 drivers/usb/host/u132-hcd.c endp->input = 0; endp 1998 drivers/usb/host/u132-hcd.c endp->output = 1; endp 2002 drivers/usb/host/u132-hcd.c ring = endp->ring = &u132->ring[ring_number - 1]; endp 2004 drivers/usb/host/u132-hcd.c list_add_tail(&endp->endp_ring, &ring->curr_endp->endp_ring); endp 2006 drivers/usb/host/u132-hcd.c INIT_LIST_HEAD(&endp->endp_ring); endp 2007 drivers/usb/host/u132-hcd.c ring->curr_endp = endp; endp 2011 drivers/usb/host/u132-hcd.c endp->udev_number = address; endp 2012 drivers/usb/host/u132-hcd.c endp->usb_addr = usb_addr; endp 2013 drivers/usb/host/u132-hcd.c endp->usb_endp = usb_endp; endp 2014 drivers/usb/host/u132-hcd.c endp->queue_size = 1; endp 2015 drivers/usb/host/u132-hcd.c endp->queue_last = 0; endp 2016 drivers/usb/host/u132-hcd.c endp->queue_next = 0; endp 2017 drivers/usb/host/u132-hcd.c endp->urb_list[ENDP_QUEUE_MASK & endp->queue_last++] = urb; endp 2018 drivers/usb/host/u132-hcd.c spin_unlock_irqrestore(&endp->queue_lock.slock, irqs); endp 2019 drivers/usb/host/u132-hcd.c u132_endp_queue_work(u132, endp, 0); endp 2025 drivers/usb/host/u132-hcd.c struct usb_device *usb_dev, struct u132_endp *endp, u8 usb_addr, endp 2029 drivers/usb/host/u132-hcd.c if (endp->queue_size++ < ENDP_QUEUE_SIZE) { endp 2030 drivers/usb/host/u132-hcd.c endp->urb_list[ENDP_QUEUE_MASK & endp->queue_last++] = urb; endp 2035 drivers/usb/host/u132-hcd.c endp->queue_size -= 1; endp 2038 drivers/usb/host/u132-hcd.c list_add_tail(&urbq->urb_more, &endp->urb_more); endp 2054 drivers/usb/host/u132-hcd.c struct u132_endp *endp = kmalloc(sizeof(struct u132_endp), mem_flags); endp 2056 drivers/usb/host/u132-hcd.c if (!endp) endp 2059 drivers/usb/host/u132-hcd.c spin_lock_init(&endp->queue_lock.slock); endp 2060 drivers/usb/host/u132-hcd.c spin_lock_irqsave(&endp->queue_lock.slock, irqs); endp 2063 drivers/usb/host/u132-hcd.c spin_unlock_irqrestore(&endp->queue_lock.slock, irqs); endp 2064 drivers/usb/host/u132-hcd.c kfree(endp); endp 2069 drivers/usb/host/u132-hcd.c urb->ep->hcpriv = u132->endp[endp_number - 1] = endp; endp 2070 drivers/usb/host/u132-hcd.c INIT_DELAYED_WORK(&endp->scheduler, u132_hcd_endp_work_scheduler); endp 2071 drivers/usb/host/u132-hcd.c INIT_LIST_HEAD(&endp->urb_more); endp 2072 drivers/usb/host/u132-hcd.c ring = endp->ring = &u132->ring[0]; endp 2074 drivers/usb/host/u132-hcd.c list_add_tail(&endp->endp_ring, &ring->curr_endp->endp_ring); endp 2076 drivers/usb/host/u132-hcd.c INIT_LIST_HEAD(&endp->endp_ring); endp 2077 drivers/usb/host/u132-hcd.c ring->curr_endp = endp; endp 2080 drivers/usb/host/u132-hcd.c endp->dequeueing = 0; endp 2081 drivers/usb/host/u132-hcd.c endp->edset_flush = 0; endp 2082 drivers/usb/host/u132-hcd.c endp->active = 0; endp 2083 drivers/usb/host/u132-hcd.c endp->delayed = 0; endp 2084 drivers/usb/host/u132-hcd.c endp->endp_number = endp_number; endp 2085 drivers/usb/host/u132-hcd.c endp->u132 = u132; endp 2086 drivers/usb/host/u132-hcd.c endp->hep = urb->ep; endp 2087 drivers/usb/host/u132-hcd.c u132_endp_init_kref(u132, endp); endp 2088 drivers/usb/host/u132-hcd.c u132_endp_get_kref(u132, endp); endp 2092 drivers/usb/host/u132-hcd.c endp->udev_number = address; endp 2093 drivers/usb/host/u132-hcd.c endp->usb_addr = usb_addr; endp 2094 drivers/usb/host/u132-hcd.c endp->usb_endp = usb_endp; endp 2095 drivers/usb/host/u132-hcd.c endp->input = 1; endp 2096 drivers/usb/host/u132-hcd.c endp->output = 1; endp 2097 drivers/usb/host/u132-hcd.c endp->pipetype = usb_pipetype(urb->pipe); endp 2103 drivers/usb/host/u132-hcd.c endp->queue_size = 1; endp 2104 drivers/usb/host/u132-hcd.c endp->queue_last = 0; endp 2105 drivers/usb/host/u132-hcd.c endp->queue_next = 0; endp 2106 drivers/usb/host/u132-hcd.c endp->urb_list[ENDP_QUEUE_MASK & endp->queue_last++] = urb; endp 2107 drivers/usb/host/u132-hcd.c spin_unlock_irqrestore(&endp->queue_lock.slock, irqs); endp 2108 drivers/usb/host/u132-hcd.c u132_endp_queue_work(u132, endp, 0); endp 2113 drivers/usb/host/u132-hcd.c endp->udev_number = address; endp 2114 drivers/usb/host/u132-hcd.c endp->usb_addr = usb_addr; endp 2115 drivers/usb/host/u132-hcd.c endp->usb_endp = usb_endp; endp 2116 drivers/usb/host/u132-hcd.c endp->input = 1; endp 2117 drivers/usb/host/u132-hcd.c endp->output = 1; endp 2118 drivers/usb/host/u132-hcd.c endp->pipetype = usb_pipetype(urb->pipe); endp 2124 drivers/usb/host/u132-hcd.c endp->queue_size = 1; endp 2125 drivers/usb/host/u132-hcd.c endp->queue_last = 0; endp 2126 drivers/usb/host/u132-hcd.c endp->queue_next = 0; endp 2127 drivers/usb/host/u132-hcd.c endp->urb_list[ENDP_QUEUE_MASK & endp->queue_last++] = urb; endp 2128 drivers/usb/host/u132-hcd.c spin_unlock_irqrestore(&endp->queue_lock.slock, irqs); endp 2129 drivers/usb/host/u132-hcd.c u132_endp_queue_work(u132, endp, 0); endp 2136 drivers/usb/host/u132-hcd.c struct usb_device *usb_dev, struct u132_endp *endp, u8 usb_addr, endp 2142 drivers/usb/host/u132-hcd.c if (endp->queue_size++ < ENDP_QUEUE_SIZE) { endp 2143 drivers/usb/host/u132-hcd.c endp->urb_list[ENDP_QUEUE_MASK & endp 2144 drivers/usb/host/u132-hcd.c endp->queue_last++] = urb; endp 2150 drivers/usb/host/u132-hcd.c endp->queue_size -= 1; endp 2154 drivers/usb/host/u132-hcd.c &endp->urb_more); endp 2170 drivers/usb/host/u132-hcd.c endp->udev_number = i; endp 2175 drivers/usb/host/u132-hcd.c endp->endp_number; endp 2178 drivers/usb/host/u132-hcd.c endp->endp_number; endp 2192 drivers/usb/host/u132-hcd.c if (endp->queue_size++ < ENDP_QUEUE_SIZE) { endp 2193 drivers/usb/host/u132-hcd.c endp->urb_list[ENDP_QUEUE_MASK & endp 2194 drivers/usb/host/u132-hcd.c endp->queue_last++] = urb; endp 2200 drivers/usb/host/u132-hcd.c endp->queue_size -= 1; endp 2204 drivers/usb/host/u132-hcd.c &endp->urb_more); endp 2216 drivers/usb/host/u132-hcd.c if (endp->queue_size++ < ENDP_QUEUE_SIZE) { endp 2217 drivers/usb/host/u132-hcd.c endp->urb_list[ENDP_QUEUE_MASK & endp->queue_last++] = endp 2223 drivers/usb/host/u132-hcd.c endp->queue_size -= 1; endp 2226 drivers/usb/host/u132-hcd.c list_add_tail(&urbq->urb_more, &endp->urb_more); endp 2259 drivers/usb/host/u132-hcd.c struct u132_endp *endp = urb->ep->hcpriv; endp 2261 drivers/usb/host/u132-hcd.c if (endp) { endp 2264 drivers/usb/host/u132-hcd.c spin_lock_irqsave(&endp->queue_lock.slock, endp 2270 drivers/usb/host/u132-hcd.c usb_dev, endp, endp 2277 drivers/usb/host/u132-hcd.c spin_unlock_irqrestore(&endp->queue_lock.slock, endp 2282 drivers/usb/host/u132-hcd.c u132_endp_queue_work(u132, endp, endp 2301 drivers/usb/host/u132-hcd.c struct u132_endp *endp = urb->ep->hcpriv; endp 2303 drivers/usb/host/u132-hcd.c if (endp) { endp 2306 drivers/usb/host/u132-hcd.c spin_lock_irqsave(&endp->queue_lock.slock, endp 2312 drivers/usb/host/u132-hcd.c usb_dev, endp, endp 2319 drivers/usb/host/u132-hcd.c spin_unlock_irqrestore(&endp->queue_lock.slock, endp 2324 drivers/usb/host/u132-hcd.c u132_endp_queue_work(u132, endp, 0); endp 2334 drivers/usb/host/u132-hcd.c struct u132_endp *endp = urb->ep->hcpriv; endp 2352 drivers/usb/host/u132-hcd.c if (endp) { endp 2355 drivers/usb/host/u132-hcd.c spin_lock_irqsave(&endp->queue_lock.slock, endp 2361 drivers/usb/host/u132-hcd.c endp, usb_addr, endp 2367 drivers/usb/host/u132-hcd.c spin_unlock_irqrestore(&endp->queue_lock.slock, endp 2372 drivers/usb/host/u132-hcd.c u132_endp_queue_work(u132, endp, 0); endp 2386 drivers/usb/host/u132-hcd.c struct u132_endp *endp, struct urb *urb) endp 2390 drivers/usb/host/u132-hcd.c list_for_each_entry(urbq, &endp->urb_more, urb_more) { endp 2394 drivers/usb/host/u132-hcd.c endp->queue_size -= 1; endp 2403 drivers/usb/host/u132-hcd.c "\n", urb, endp->endp_number, endp, endp->ring->number, endp 2404 drivers/usb/host/u132-hcd.c endp->input ? 'I' : ' ', endp->output ? 'O' : ' ', endp 2405 drivers/usb/host/u132-hcd.c endp->usb_endp, endp->usb_addr, endp->queue_size, endp 2406 drivers/usb/host/u132-hcd.c endp->queue_next, endp->queue_last); endp 2410 drivers/usb/host/u132-hcd.c static int u132_endp_urb_dequeue(struct u132 *u132, struct u132_endp *endp, endp 2416 drivers/usb/host/u132-hcd.c spin_lock_irqsave(&endp->queue_lock.slock, irqs); endp 2419 drivers/usb/host/u132-hcd.c spin_unlock_irqrestore(&endp->queue_lock.slock, irqs); endp 2422 drivers/usb/host/u132-hcd.c if (endp->queue_size == 0) { endp 2425 drivers/usb/host/u132-hcd.c endp->endp_number, endp, endp->ring->number, endp 2426 drivers/usb/host/u132-hcd.c endp->input ? 'I' : ' ', endp->output ? 'O' : ' ', endp 2427 drivers/usb/host/u132-hcd.c endp->usb_endp, endp->usb_addr); endp 2428 drivers/usb/host/u132-hcd.c spin_unlock_irqrestore(&endp->queue_lock.slock, irqs); endp 2431 drivers/usb/host/u132-hcd.c if (urb == endp->urb_list[ENDP_QUEUE_MASK & endp->queue_next]) { endp 2432 drivers/usb/host/u132-hcd.c if (endp->active) { endp 2433 drivers/usb/host/u132-hcd.c endp->dequeueing = 1; endp 2434 drivers/usb/host/u132-hcd.c endp->edset_flush = 1; endp 2435 drivers/usb/host/u132-hcd.c u132_endp_queue_work(u132, endp, 0); endp 2436 drivers/usb/host/u132-hcd.c spin_unlock_irqrestore(&endp->queue_lock.slock, irqs); endp 2439 drivers/usb/host/u132-hcd.c spin_unlock_irqrestore(&endp->queue_lock.slock, irqs); endp 2440 drivers/usb/host/u132-hcd.c u132_hcd_abandon_urb(u132, endp, urb, status); endp 2445 drivers/usb/host/u132-hcd.c u16 queue_size = endp->queue_size; endp 2446 drivers/usb/host/u132-hcd.c u16 queue_scan = endp->queue_next; endp 2449 drivers/usb/host/u132-hcd.c if (urb == endp->urb_list[ENDP_QUEUE_MASK & endp 2451 drivers/usb/host/u132-hcd.c urb_slot = &endp->urb_list[ENDP_QUEUE_MASK & endp 2458 drivers/usb/host/u132-hcd.c *urb_slot = endp->urb_list[ENDP_QUEUE_MASK & endp 2460 drivers/usb/host/u132-hcd.c urb_slot = &endp->urb_list[ENDP_QUEUE_MASK & endp 2467 drivers/usb/host/u132-hcd.c endp->queue_size -= 1; endp 2468 drivers/usb/host/u132-hcd.c if (list_empty(&endp->urb_more)) { endp 2469 drivers/usb/host/u132-hcd.c spin_unlock_irqrestore(&endp->queue_lock.slock, endp 2472 drivers/usb/host/u132-hcd.c struct list_head *next = endp->urb_more.next; endp 2477 drivers/usb/host/u132-hcd.c spin_unlock_irqrestore(&endp->queue_lock.slock, endp 2484 drivers/usb/host/u132-hcd.c } else if (list_empty(&endp->urb_more)) { endp 2488 drivers/usb/host/u132-hcd.c endp->endp_number, endp, endp->ring->number, endp 2489 drivers/usb/host/u132-hcd.c endp->input ? 'I' : ' ', endp 2490 drivers/usb/host/u132-hcd.c endp->output ? 'O' : ' ', endp->usb_endp, endp 2491 drivers/usb/host/u132-hcd.c endp->usb_addr, endp->queue_size, endp 2492 drivers/usb/host/u132-hcd.c endp->queue_next, endp->queue_last); endp 2493 drivers/usb/host/u132-hcd.c spin_unlock_irqrestore(&endp->queue_lock.slock, irqs); endp 2499 drivers/usb/host/u132-hcd.c retval = dequeue_from_overflow_chain(u132, endp, endp 2501 drivers/usb/host/u132-hcd.c spin_unlock_irqrestore(&endp->queue_lock.slock, irqs); endp 2521 drivers/usb/host/u132-hcd.c struct u132_endp *endp = u132->endp[endp_number - 1]; endp 2522 drivers/usb/host/u132-hcd.c return u132_endp_urb_dequeue(u132, endp, urb, status); endp 2525 drivers/usb/host/u132-hcd.c struct u132_endp *endp = u132->endp[endp_number - 1]; endp 2526 drivers/usb/host/u132-hcd.c return u132_endp_urb_dequeue(u132, endp, urb, status); endp 2540 drivers/usb/host/u132-hcd.c struct u132_endp *endp = hep->hcpriv; endp 2541 drivers/usb/host/u132-hcd.c if (endp) endp 2542 drivers/usb/host/u132-hcd.c u132_endp_put_kref(u132, endp); endp 2987 drivers/usb/host/u132-hcd.c struct u132_endp *endp = u132->endp[endps]; endp 2988 drivers/usb/host/u132-hcd.c if (endp) endp 2989 drivers/usb/host/u132-hcd.c u132_endp_cancel_work(u132, endp); endp 3055 drivers/usb/host/u132-hcd.c u132->endp[endps] = NULL; endp 126 drivers/usb/misc/ftdi-elan.c void *endp; endp 138 drivers/usb/misc/ftdi-elan.c void (*callback)(void *endp, struct urb *urb, u8 *buf, int len, endp 842 drivers/usb/misc/ftdi-elan.c (*callback) (target->endp, urb, buffer, length, toggle_bits, endp 1427 drivers/usb/misc/ftdi-elan.c void *endp, struct urb *urb, u8 address, u8 ep_number, u8 toggle_bits, endp 1428 drivers/usb/misc/ftdi-elan.c void (*callback) (void *endp, struct urb *urb, u8 *buf, int len, endp 1455 drivers/usb/misc/ftdi-elan.c target->endp = endp; endp 1471 drivers/usb/misc/ftdi-elan.c void *endp, struct urb *urb, u8 address, u8 ep_number, u8 toggle_bits, endp 1472 drivers/usb/misc/ftdi-elan.c void (*callback) (void *endp, struct urb *urb, u8 *buf, int len, endp 1477 drivers/usb/misc/ftdi-elan.c return ftdi_elan_edset_setup(ftdi, ed_number, endp, urb, address, endp 1484 drivers/usb/misc/ftdi-elan.c void *endp, struct urb *urb, u8 address, u8 ep_number, u8 toggle_bits, endp 1485 drivers/usb/misc/ftdi-elan.c void (*callback) (void *endp, struct urb *urb, u8 *buf, int len, endp 1520 drivers/usb/misc/ftdi-elan.c target->endp = endp; endp 1536 drivers/usb/misc/ftdi-elan.c void *endp, struct urb *urb, u8 address, u8 ep_number, u8 toggle_bits, endp 1537 drivers/usb/misc/ftdi-elan.c void (*callback) (void *endp, struct urb *urb, u8 *buf, int len, endp 1542 drivers/usb/misc/ftdi-elan.c return ftdi_elan_edset_input(ftdi, ed_number, endp, urb, address, endp 1549 drivers/usb/misc/ftdi-elan.c void *endp, struct urb *urb, u8 address, u8 ep_number, u8 toggle_bits, endp 1550 drivers/usb/misc/ftdi-elan.c void (*callback) (void *endp, struct urb *urb, u8 *buf, int len, endp 1577 drivers/usb/misc/ftdi-elan.c target->endp = endp; endp 1593 drivers/usb/misc/ftdi-elan.c void *endp, struct urb *urb, u8 address, u8 ep_number, u8 toggle_bits, endp 1594 drivers/usb/misc/ftdi-elan.c void (*callback) (void *endp, struct urb *urb, u8 *buf, int len, endp 1599 drivers/usb/misc/ftdi-elan.c return ftdi_elan_edset_empty(ftdi, ed_number, endp, urb, address, endp 1606 drivers/usb/misc/ftdi-elan.c void *endp, struct urb *urb, u8 address, u8 ep_number, u8 toggle_bits, endp 1607 drivers/usb/misc/ftdi-elan.c void (*callback) (void *endp, struct urb *urb, u8 *buf, int len, endp 1656 drivers/usb/misc/ftdi-elan.c target->endp = endp; endp 1672 drivers/usb/misc/ftdi-elan.c void *endp, struct urb *urb, u8 address, u8 ep_number, u8 toggle_bits, endp 1673 drivers/usb/misc/ftdi-elan.c void (*callback) (void *endp, struct urb *urb, u8 *buf, int len, endp 1678 drivers/usb/misc/ftdi-elan.c return ftdi_elan_edset_output(ftdi, ed_number, endp, urb, address, endp 1685 drivers/usb/misc/ftdi-elan.c void *endp, struct urb *urb, u8 address, u8 ep_number, u8 toggle_bits, endp 1686 drivers/usb/misc/ftdi-elan.c void (*callback) (void *endp, struct urb *urb, u8 *buf, int len, endp 1721 drivers/usb/misc/ftdi-elan.c target->endp = endp; endp 1737 drivers/usb/misc/ftdi-elan.c void *endp, struct urb *urb, u8 address, u8 ep_number, u8 toggle_bits, endp 1738 drivers/usb/misc/ftdi-elan.c void (*callback) (void *endp, struct urb *urb, u8 *buf, int len, endp 1743 drivers/usb/misc/ftdi-elan.c return ftdi_elan_edset_single(ftdi, ed_number, endp, urb, address, endp 1750 drivers/usb/misc/ftdi-elan.c void *endp) endp 1796 drivers/usb/misc/ftdi-elan.c void *endp) endp 1799 drivers/usb/misc/ftdi-elan.c return ftdi_elan_edset_flush(ftdi, ed_number, endp); endp 68 drivers/usb/misc/usb_u132.h void *endp, struct urb *urb, u8 address, u8 ep_number, u8 toggle_bits, endp 69 drivers/usb/misc/usb_u132.h void (*callback) (void *endp, struct urb *urb, u8 *buf, int len, endp 73 drivers/usb/misc/usb_u132.h void *endp, struct urb *urb, u8 address, u8 ep_number, u8 toggle_bits, endp 74 drivers/usb/misc/usb_u132.h void (*callback) (void *endp, struct urb *urb, u8 *buf, int len, endp 78 drivers/usb/misc/usb_u132.h void *endp, struct urb *urb, u8 address, u8 ep_number, u8 toggle_bits, endp 79 drivers/usb/misc/usb_u132.h void (*callback) (void *endp, struct urb *urb, u8 *buf, int len, endp 83 drivers/usb/misc/usb_u132.h void *endp, struct urb *urb, u8 address, u8 ep_number, u8 toggle_bits, endp 84 drivers/usb/misc/usb_u132.h void (*callback) (void *endp, struct urb *urb, u8 *buf, int len, endp 88 drivers/usb/misc/usb_u132.h void *endp, struct urb *urb, u8 address, u8 ep_number, u8 toggle_bits, endp 89 drivers/usb/misc/usb_u132.h void (*callback) (void *endp, struct urb *urb, u8 *buf, int len, endp 93 drivers/usb/misc/usb_u132.h void *endp); endp 2899 drivers/usb/serial/keyspan.c int endp; endp 2938 drivers/usb/serial/keyspan.c endp = d_details->indat_endpoints[port_num]; endp 2939 drivers/usb/serial/keyspan.c for (i = 0; i <= d_details->indat_endp_flip; ++i, ++endp) { endp 2940 drivers/usb/serial/keyspan.c p_priv->in_urbs[i] = keyspan_setup_urb(serial, endp, endp 2947 drivers/usb/serial/keyspan.c endp = d_details->outdat_endpoints[port_num]; endp 2948 drivers/usb/serial/keyspan.c for (i = 0; i <= d_details->outdat_endp_flip; ++i, ++endp) { endp 2949 drivers/usb/serial/keyspan.c p_priv->out_urbs[i] = keyspan_setup_urb(serial, endp, endp 230 drivers/usb/storage/transport.c int endp = usb_pipeendpoint(pipe); endp 233 drivers/usb/storage/transport.c endp |= USB_DIR_IN; endp 237 drivers/usb/storage/transport.c USB_ENDPOINT_HALT, endp, endp 241 drivers/usb/storage/transport.c usb_reset_endpoint(us->pusb_dev, endp); endp 1208 drivers/video/fbdev/sh_mobile_lcdcfb.c char *endp; endp 1210 drivers/video/fbdev/sh_mobile_lcdcfb.c alpha = simple_strtoul(buf, &endp, 10); endp 1211 drivers/video/fbdev/sh_mobile_lcdcfb.c if (isspace(*endp)) endp 1212 drivers/video/fbdev/sh_mobile_lcdcfb.c endp++; endp 1214 drivers/video/fbdev/sh_mobile_lcdcfb.c if (endp - buf != count) endp 1246 drivers/video/fbdev/sh_mobile_lcdcfb.c char *endp; endp 1248 drivers/video/fbdev/sh_mobile_lcdcfb.c mode = simple_strtoul(buf, &endp, 10); endp 1249 drivers/video/fbdev/sh_mobile_lcdcfb.c if (isspace(*endp)) endp 1250 drivers/video/fbdev/sh_mobile_lcdcfb.c endp++; endp 1252 drivers/video/fbdev/sh_mobile_lcdcfb.c if (endp - buf != count) endp 1284 drivers/video/fbdev/sh_mobile_lcdcfb.c char *endp; endp 1288 drivers/video/fbdev/sh_mobile_lcdcfb.c pos_x = simple_strtol(buf, &endp, 10); endp 1289 drivers/video/fbdev/sh_mobile_lcdcfb.c if (*endp != ',') endp 1292 drivers/video/fbdev/sh_mobile_lcdcfb.c pos_y = simple_strtol(endp + 1, &endp, 10); endp 1293 drivers/video/fbdev/sh_mobile_lcdcfb.c if (isspace(*endp)) endp 1294 drivers/video/fbdev/sh_mobile_lcdcfb.c endp++; endp 1296 drivers/video/fbdev/sh_mobile_lcdcfb.c if (endp - buf != count) endp 1326 drivers/video/fbdev/sh_mobile_lcdcfb.c char *endp; endp 1328 drivers/video/fbdev/sh_mobile_lcdcfb.c rop3 = simple_strtoul(buf, &endp, 10); endp 1329 drivers/video/fbdev/sh_mobile_lcdcfb.c if (isspace(*endp)) endp 1330 drivers/video/fbdev/sh_mobile_lcdcfb.c endp++; endp 1332 drivers/video/fbdev/sh_mobile_lcdcfb.c if (endp - buf != count) endp 1002 fs/fat/dir.c struct msdos_dir_entry *de, *endp; endp 1013 fs/fat/dir.c endp = (struct msdos_dir_entry *)(bh->b_data + sb->s_blocksize); endp 1014 fs/fat/dir.c while (nr_slots && de < endp) { endp 626 fs/lockd/svc.c char *endp; \ endp 627 fs/lockd/svc.c __typeof__(type) num = which_strtol(val, &endp, 0); \ endp 628 fs/lockd/svc.c if (endp == val || *endp || num < (min) || num > (max)) \ endp 924 fs/xfs/libxfs/xfs_attr_leaf.c char *endp; endp 940 fs/xfs/libxfs/xfs_attr_leaf.c endp = (char *)sfp + size; endp 950 fs/xfs/libxfs/xfs_attr_leaf.c if (((char *)sfep + sizeof(*sfep)) >= endp) endp 963 fs/xfs/libxfs/xfs_attr_leaf.c if ((char *)next_sfep > endp) endp 984 fs/xfs/libxfs/xfs_attr_leaf.c if ((void *)sfep != (void *)endp) endp 44 fs/xfs/libxfs/xfs_dir2_data.c char *endp; /* end of useful data */ endp 99 fs/xfs/libxfs/xfs_dir2_data.c endp = xfs_dir3_data_endp(geo, hdr); endp 100 fs/xfs/libxfs/xfs_dir2_data.c if (!endp) endp 131 fs/xfs/libxfs/xfs_dir2_data.c while (p < endp) { endp 143 fs/xfs/libxfs/xfs_dir2_data.c if (endp < p + be16_to_cpu(dup->length)) endp 176 fs/xfs/libxfs/xfs_dir2_data.c if (endp < p + ops->data_entsize(dep->namelen)) endp 573 fs/xfs/libxfs/xfs_dir2_data.c char *endp; /* end of block's data */ endp 591 fs/xfs/libxfs/xfs_dir2_data.c endp = xfs_dir3_data_endp(geo, hdr); endp 595 fs/xfs/libxfs/xfs_dir2_data.c while (p < endp) { endp 624 fs/xfs/libxfs/xfs_dir2_sf.c char *endp; endp 653 fs/xfs/libxfs/xfs_dir2_sf.c endp = (char *)sfp + size; endp 671 fs/xfs/libxfs/xfs_dir2_sf.c if (((char *)sfep + sizeof(*sfep)) >= endp) endp 684 fs/xfs/libxfs/xfs_dir2_sf.c if (endp < (char *)next_sfep) endp 710 fs/xfs/libxfs/xfs_dir2_sf.c if ((void *)sfep != (void *)endp) endp 208 fs/xfs/libxfs/xfs_symlink_remote.c char *endp; endp 216 fs/xfs/libxfs/xfs_symlink_remote.c endp = sfp + size; endp 234 fs/xfs/libxfs/xfs_symlink_remote.c if (*endp != 0) endp 190 fs/xfs/scrub/dir.c char *p, *endp; endp 237 fs/xfs/scrub/dir.c endp = xfs_dir3_data_endp(mp->m_dir_geo, bp->b_addr); endp 238 fs/xfs/scrub/dir.c if (!endp) { endp 242 fs/xfs/scrub/dir.c while (p < endp) { endp 256 fs/xfs/scrub/dir.c if (p >= endp) { endp 35 init/do_mounts_initrd.c char *endp; endp 37 init/do_mounts_initrd.c start = memparse(p, &endp); endp 38 init/do_mounts_initrd.c if (*endp == ',') { endp 39 init/do_mounts_initrd.c size = memparse(endp + 1, NULL); endp 339 kernel/debug/kdb/kdb_main.c char *endp; endp 342 kernel/debug/kdb/kdb_main.c val = simple_strtoul(arg, &endp, 0); endp 344 kernel/debug/kdb/kdb_main.c if (endp == arg) { endp 349 kernel/debug/kdb/kdb_main.c val = simple_strtoul(arg, &endp, 16); endp 350 kernel/debug/kdb/kdb_main.c if (endp == arg) endp 361 kernel/debug/kdb/kdb_main.c char *endp; endp 364 kernel/debug/kdb/kdb_main.c val = simple_strtoull(arg, &endp, 0); endp 366 kernel/debug/kdb/kdb_main.c if (endp == arg) { endp 368 kernel/debug/kdb/kdb_main.c val = simple_strtoull(arg, &endp, 16); endp 369 kernel/debug/kdb/kdb_main.c if (endp == arg) endp 2453 kernel/debug/kdb/kdb_main.c char *endp; endp 2459 kernel/debug/kdb/kdb_main.c sig = simple_strtol(argv[1], &endp, 0); endp 2460 kernel/debug/kdb/kdb_main.c if (*endp) endp 2468 kernel/debug/kdb/kdb_main.c pid = simple_strtol(argv[2], &endp, 0); endp 2469 kernel/debug/kdb/kdb_main.c if (*endp) endp 861 kernel/printk/printk.c char *endp = NULL; endp 864 kernel/printk/printk.c u = simple_strtoul(line + 1, &endp, 10); endp 865 kernel/printk/printk.c if (endp && endp[0] == '>') { endp 869 kernel/printk/printk.c endp++; endp 870 kernel/printk/printk.c len -= endp - line; endp 871 kernel/printk/printk.c line = endp; endp 2162 kernel/sysctl.c static int strtoul_lenient(const char *cp, char **endp, unsigned int base, endp 2175 kernel/sysctl.c if (endp) endp 2176 kernel/sysctl.c *endp = (char *)cp; endp 80 lib/digsig.c const uint8_t *endp; endp 108 lib/digsig.c endp = ukp->data + ukp->datalen; endp 111 lib/digsig.c unsigned int remaining = endp - datap; endp 128 lib/parser.c char *endp; endp 138 lib/parser.c val = simple_strtol(buf, &endp, base); endp 139 lib/parser.c if (endp == buf) endp 61 lib/vsprintf.c unsigned long long simple_strtoull(const char *cp, char **endp, unsigned int base) endp 71 lib/vsprintf.c if (endp) endp 72 lib/vsprintf.c *endp = (char *)cp; endp 86 lib/vsprintf.c unsigned long simple_strtoul(const char *cp, char **endp, unsigned int base) endp 88 lib/vsprintf.c return simple_strtoull(cp, endp, base); endp 100 lib/vsprintf.c long simple_strtol(const char *cp, char **endp, unsigned int base) endp 103 lib/vsprintf.c return -simple_strtoul(cp + 1, endp, base); endp 105 lib/vsprintf.c return simple_strtoul(cp, endp, base); endp 117 lib/vsprintf.c long long simple_strtoll(const char *cp, char **endp, unsigned int base) endp 120 lib/vsprintf.c return -simple_strtoull(cp + 1, endp, base); endp 122 lib/vsprintf.c return simple_strtoull(cp, endp, base); endp 4706 mm/memcontrol.c char *endp; endp 4711 mm/memcontrol.c efd = simple_strtoul(buf, &endp, 10); endp 4712 mm/memcontrol.c if (*endp != ' ') endp 4714 mm/memcontrol.c buf = endp + 1; endp 4716 mm/memcontrol.c cfd = simple_strtoul(buf, &endp, 10); endp 4717 mm/memcontrol.c if ((*endp != ' ') && (*endp != '\0')) endp 4719 mm/memcontrol.c buf = endp + 1; endp 32 net/bridge/br_sysfs_br.c char *endp; endp 39 net/bridge/br_sysfs_br.c val = simple_strtoul(buf, &endp, 0); endp 40 net/bridge/br_sysfs_br.c if (endp == buf) endp 311 net/bridge/br_sysfs_if.c char *endp; endp 332 net/bridge/br_sysfs_if.c val = simple_strtoul(buf, &endp, 0); endp 333 net/bridge/br_sysfs_if.c if (endp == buf) endp 144 net/netfilter/nf_conntrack_sip.c const char **endp, union nf_inet_addr *addr, endp 179 net/netfilter/nf_conntrack_sip.c if (endp) endp 180 net/netfilter/nf_conntrack_sip.c *endp = end; endp 647 net/netfilter/nf_conntrack_sip.c const char **endp, union nf_inet_addr *addr, endp 667 net/netfilter/nf_conntrack_sip.c if (endp) endp 668 net/netfilter/nf_conntrack_sip.c *endp = end; endp 529 scripts/kconfig/conf.c char *endp; endp 530 scripts/kconfig/conf.c int tmp = (int)strtol(seed_env, &endp, 0); endp 531 scripts/kconfig/conf.c if (*endp == '\0') { endp 1254 scripts/kconfig/confdata.c char *endp; endp 1255 scripts/kconfig/confdata.c int tmp = strtol( env, &endp, 10 ); endp 1263 scripts/kconfig/confdata.c env = (*endp == ':') ? endp+1 : endp; endp 860 scripts/mod/modpost.c const char *endp = p + strlen(p) - 1; endp 863 scripts/mod/modpost.c if (*p == '*' && *endp == '*') { endp 877 scripts/mod/modpost.c else if (*endp == '*') { endp 1904 tools/perf/util/evsel.c static inline bool overflow(const void *endp, u16 max_size, const void *offset, endp 1907 tools/perf/util/evsel.c return size > max_size || offset + size > endp; endp 1912 tools/perf/util/evsel.c if (overflow(endp, (max_size), (offset), (size))) \ endp 1940 tools/perf/util/evsel.c const void *endp = (void *)event + max_size; endp 1134 tools/perf/util/machine.c char *endp; endp 1151 tools/perf/util/machine.c pid = (pid_t)strtol(namelist[i]->d_name, &endp, 10); endp 1152 tools/perf/util/machine.c if ((*endp != '\0') || endp 1153 tools/perf/util/machine.c (endp == namelist[i]->d_name) || endp 93 tools/power/cpupower/lib/cpufreq.c char *endp; endp 104 tools/power/cpupower/lib/cpufreq.c value = strtoul(linebuf, &endp, 0); endp 106 tools/power/cpupower/lib/cpufreq.c if (endp == linebuf || errno == ERANGE) endp 140 tools/power/cpupower/lib/cpuidle.c char *endp; endp 151 tools/power/cpupower/lib/cpuidle.c value = strtoull(linebuf, &endp, 0); endp 153 tools/power/cpupower/lib/cpuidle.c if (endp == linebuf || errno == ERANGE) endp 53 tools/power/cpupower/lib/cpupower.c char *endp; endp 81 tools/power/cpupower/lib/cpupower.c value = strtoull(linebuf, &endp, 0); endp 92 tools/power/cpupower/lib/cpupower.c char *endp; endp 99 tools/power/cpupower/lib/cpupower.c *result = strtol(linebuf, &endp, 0); endp 100 tools/power/cpupower/lib/cpupower.c if (endp == linebuf || errno == ERANGE) endp 54 tools/power/cpupower/utils/helpers/sysfs.c char *endp; endp 82 tools/power/cpupower/utils/helpers/sysfs.c value = strtoull(linebuf, &endp, 0); endp 210 tools/power/cpupower/utils/helpers/sysfs.c char *endp; endp 221 tools/power/cpupower/utils/helpers/sysfs.c value = strtoull(linebuf, &endp, 0); endp 223 tools/power/cpupower/utils/helpers/sysfs.c if (endp == linebuf || errno == ERANGE) endp 375 tools/power/x86/x86_energy_perf_policy/x86_energy_perf_policy.c char *startp, *endp; endp 398 tools/power/x86/x86_energy_perf_policy/x86_energy_perf_policy.c end_cpu = strtol(startp, &endp, 10); endp 399 tools/power/x86/x86_energy_perf_policy/x86_energy_perf_policy.c if (startp == endp) endp 408 tools/power/x86/x86_energy_perf_policy/x86_energy_perf_policy.c startp = endp; endp 443 tools/power/x86/x86_energy_perf_policy/x86_energy_perf_policy.c cpu = strtol(startp, &endp, 10); endp 444 tools/power/x86/x86_energy_perf_policy/x86_energy_perf_policy.c if (startp == endp) endp 449 tools/power/x86/x86_energy_perf_policy/x86_energy_perf_policy.c startp = endp; endp 458 tools/power/x86/x86_energy_perf_policy/x86_energy_perf_policy.c char *startp, *endp; endp 478 tools/power/x86/x86_energy_perf_policy/x86_energy_perf_policy.c end_pkg = strtol(startp, &endp, 10); endp 479 tools/power/x86/x86_energy_perf_policy/x86_energy_perf_policy.c if (startp == endp) endp 488 tools/power/x86/x86_energy_perf_policy/x86_energy_perf_policy.c startp = endp; endp 497 tools/power/x86/x86_energy_perf_policy/x86_energy_perf_policy.c pkg = strtol(startp, &endp, 10); endp 501 tools/power/x86/x86_energy_perf_policy/x86_energy_perf_policy.c startp = endp;