ep 16 arch/c6x/kernel/module.c long ep = (long)ip & ~31; ep 17 arch/c6x/kernel/module.c long delta = ((long)dest - ep) >> 2; ep 118 arch/ia64/kernel/sal.c struct ia64_sal_desc_entry_point *ep = p; ep 119 arch/ia64/kernel/sal.c ia64_pal_handler_init(__va(ep->pal_proc)); ep 120 arch/ia64/kernel/sal.c ia64_sal_handler_init(__va(ep->sal_proc), __va(ep->gp)); ep 2519 arch/powerpc/kernel/prom_init.c char *namep, *prev_name, *sstart, *p, *ep, *lp, *path; ep 2546 arch/powerpc/kernel/prom_init.c for (lp = p = namep, ep = namep + l; p < ep; p++) { ep 280 arch/powerpc/platforms/powermac/bootx_init.c char *namep, *p, *ep, *lp; ep 299 arch/powerpc/platforms/powermac/bootx_init.c for (lp = p = namep, ep = namep + l; p < ep; p++) { ep 631 arch/sparc/kernel/mdesc.c struct mdesc_elem *ep = node_block(&hp->mdesc); ep 641 arch/sparc/kernel/mdesc.c ret = ep[from_node].d.val; ep 645 arch/sparc/kernel/mdesc.c if (ep[ret].tag != MD_NODE) ep 647 arch/sparc/kernel/mdesc.c if (!strcmp(names + ep[ret].name_offset, name)) ep 649 arch/sparc/kernel/mdesc.c ret = ep[ret].d.val; ep 663 arch/sparc/kernel/mdesc.c struct mdesc_elem *ep; ep 668 arch/sparc/kernel/mdesc.c ep = node_block(&hp->mdesc) + node; ep 669 arch/sparc/kernel/mdesc.c ep++; ep 670 arch/sparc/kernel/mdesc.c for (; ep->tag != MD_NODE_END; ep++) { ep 674 arch/sparc/kernel/mdesc.c switch (ep->tag) { ep 676 arch/sparc/kernel/mdesc.c val = &ep->d.val; ep 682 arch/sparc/kernel/mdesc.c val = data + ep->d.data.data_offset; ep 683 arch/sparc/kernel/mdesc.c len = ep->d.data.data_len; ep 692 arch/sparc/kernel/mdesc.c if (!strcmp(names + ep->name_offset, name)) { ep 705 arch/sparc/kernel/mdesc.c struct mdesc_elem *ep, *base = node_block(&hp->mdesc); ep 712 arch/sparc/kernel/mdesc.c ep = base + from; ep 714 arch/sparc/kernel/mdesc.c ep++; ep 715 arch/sparc/kernel/mdesc.c for (; ep->tag != MD_NODE_END; ep++) { ep 716 arch/sparc/kernel/mdesc.c if (ep->tag != MD_PROP_ARC) ep 719 arch/sparc/kernel/mdesc.c if (strcmp(names + ep->name_offset, arc_type)) ep 722 arch/sparc/kernel/mdesc.c return ep - base; ep 731 arch/sparc/kernel/mdesc.c struct mdesc_elem *ep, *base = node_block(&hp->mdesc); ep 733 arch/sparc/kernel/mdesc.c ep = base + arc; ep 735 arch/sparc/kernel/mdesc.c return ep->d.val; ep 741 arch/sparc/kernel/mdesc.c struct mdesc_elem *ep, *base = node_block(&hp->mdesc); ep 748 arch/sparc/kernel/mdesc.c ep = base + node; ep 749 arch/sparc/kernel/mdesc.c if (ep->tag != MD_NODE) ep 752 arch/sparc/kernel/mdesc.c return names + ep->name_offset; ep 161 arch/sparc/kernel/pci_fire.c struct pci_msiq_entry *base, *ep; ep 164 arch/sparc/kernel/pci_fire.c ep = &base[*head]; ep 166 arch/sparc/kernel/pci_fire.c if ((ep->word0 & MSIQ_WORD0_FMT_TYPE) == 0) ep 169 arch/sparc/kernel/pci_fire.c type_fmt = ((ep->word0 & MSIQ_WORD0_FMT_TYPE) >> ep 176 arch/sparc/kernel/pci_fire.c *msi = msi_num = ((ep->word0 & MSIQ_WORD0_DATA0) >> ep 182 arch/sparc/kernel/pci_fire.c ep->word0 &= ~MSIQ_WORD0_FMT_TYPE; ep 981 arch/sparc/kernel/pci_sun4v.c struct pci_sun4v_msiq_entry *ep; ep 985 arch/sparc/kernel/pci_sun4v.c ep = (pbm->msi_queues + ((msiqid - pbm->msiq_first) * ep 990 arch/sparc/kernel/pci_sun4v.c if ((ep->version_type & MSIQ_TYPE_MASK) == 0) ep 993 arch/sparc/kernel/pci_sun4v.c type = (ep->version_type & MSIQ_TYPE_MASK) >> MSIQ_TYPE_SHIFT; ep 998 arch/sparc/kernel/pci_sun4v.c *msi = ep->msi_data; ep 1001 arch/sparc/kernel/pci_sun4v.c ep->msi_data /* msi_num */, ep 1007 arch/sparc/kernel/pci_sun4v.c ep->version_type &= ~MSIQ_TYPE_MASK; ep 90 arch/x86/kernel/dumpstack_64.c const struct estack_pages *ep; ep 112 arch/x86/kernel/dumpstack_64.c ep = &estack_pages[k]; ep 114 arch/x86/kernel/dumpstack_64.c if (!ep->size) ep 117 arch/x86/kernel/dumpstack_64.c begin += (unsigned long)ep->offs; ep 118 arch/x86/kernel/dumpstack_64.c end = begin + (unsigned long)ep->size; ep 121 arch/x86/kernel/dumpstack_64.c info->type = ep->type; ep 74 arch/x86/pci/sta2x11-fixup.c int ep; ep 77 arch/x86/pci/sta2x11-fixup.c ep = pdev->bus->number - instance->bus0; ep 78 arch/x86/pci/sta2x11-fixup.c if (ep >= 0 && ep < STA2X11_NR_EP) ep 98 arch/x86/pci/sta2x11-fixup.c int ep; ep 103 arch/x86/pci/sta2x11-fixup.c ep = sta2x11_pdev_to_ep(pdev); ep 104 arch/x86/pci/sta2x11-fixup.c return instance->map + ep; ep 48 arch/x86/platform/pvh/enlighten.c struct hvm_memmap_table_entry *ep; ep 51 arch/x86/platform/pvh/enlighten.c ep = __va(pvh_start_info.memmap_paddr); ep 54 arch/x86/platform/pvh/enlighten.c for (i = 0; i < pvh_bootparams.e820_entries ; i++, ep++) { ep 55 arch/x86/platform/pvh/enlighten.c pvh_bootparams.e820_table[i].addr = ep->addr; ep 56 arch/x86/platform/pvh/enlighten.c pvh_bootparams.e820_table[i].size = ep->size; ep 57 arch/x86/platform/pvh/enlighten.c pvh_bootparams.e820_table[i].type = ep->type; ep 20 drivers/base/devcon.c struct fwnode_handle *ep; ep 23 drivers/base/devcon.c fwnode_graph_for_each_endpoint(fwnode, ep) { ep 24 drivers/base/devcon.c con.fwnode = fwnode_graph_get_remote_port_parent(ep); ep 31 drivers/base/devcon.c fwnode_handle_put(ep); ep 106 drivers/base/devcon.c int ep; ep 118 drivers/base/devcon.c ep = match_string(con->endpoint, 2, devname); ep 119 drivers/base/devcon.c if (ep < 0) ep 125 drivers/base/devcon.c ret = match(con, !ep, data); ep 171 drivers/base/devcon.c static void *generic_match(struct device_connection *con, int ep, void *data) ep 180 drivers/base/devcon.c dev = bus_find_device_by_name(bus, NULL, con->endpoint[ep]); ep 1034 drivers/base/property.c struct fwnode_handle *ep = NULL, *best_ep = NULL; ep 1039 drivers/base/property.c while ((ep = fwnode_graph_get_next_endpoint(fwnode, ep))) { ep 1047 drivers/base/property.c dev_node = fwnode_graph_get_remote_port_parent(ep); ep 1054 drivers/base/property.c ret = fwnode_graph_parse_endpoint(ep, &fwnode_ep); ep 1062 drivers/base/property.c return ep; ep 1077 drivers/base/property.c best_ep = fwnode_handle_get(ep); ep 1750 drivers/block/drbd/drbd_int.h enum drbd_io_error_p ep; ep 1753 drivers/block/drbd/drbd_int.h ep = rcu_dereference(device->ldev->disk_conf)->on_io_error; ep 1755 drivers/block/drbd/drbd_int.h switch (ep) { ep 1092 drivers/char/lp.c char *ep; ep 1093 drivers/char/lp.c unsigned long r = simple_strtoul(parport[n], &ep, 0); ep 1094 drivers/char/lp.c if (ep != parport[n]) ep 125 drivers/char/xillybus/xillybus_core.c struct xilly_endpoint *ep = data; ep 133 drivers/char/xillybus/xillybus_core.c buf = ep->msgbuf_addr; ep 134 drivers/char/xillybus/xillybus_core.c buf_size = ep->msg_buf_size/sizeof(u32); ep 136 drivers/char/xillybus/xillybus_core.c ep->ephw->hw_sync_sgl_for_cpu(ep, ep 137 drivers/char/xillybus/xillybus_core.c ep->msgbuf_dma_addr, ep 138 drivers/char/xillybus/xillybus_core.c ep->msg_buf_size, ep 142 drivers/char/xillybus/xillybus_core.c if (((buf[i+1] >> 28) & 0xf) != ep->msg_counter) { ep 143 drivers/char/xillybus/xillybus_core.c malformed_message(ep, &buf[i]); ep 144 drivers/char/xillybus/xillybus_core.c dev_warn(ep->dev, ep 147 drivers/char/xillybus/xillybus_core.c ep->msg_counter, ep 150 drivers/char/xillybus/xillybus_core.c if (++ep->failed_messages > 10) { ep 151 drivers/char/xillybus/xillybus_core.c dev_err(ep->dev, ep 154 drivers/char/xillybus/xillybus_core.c ep->ephw->hw_sync_sgl_for_device( ep 155 drivers/char/xillybus/xillybus_core.c ep, ep 156 drivers/char/xillybus/xillybus_core.c ep->msgbuf_dma_addr, ep 157 drivers/char/xillybus/xillybus_core.c ep->msg_buf_size, ep 161 drivers/char/xillybus/xillybus_core.c ep->registers + fpga_msg_ctrl_reg); ep 169 drivers/char/xillybus/xillybus_core.c dev_err(ep->dev, "Bad interrupt message. Stopping.\n"); ep 185 drivers/char/xillybus/xillybus_core.c if ((msg_channel > ep->num_channels) || ep 187 drivers/char/xillybus/xillybus_core.c malformed_message(ep, &buf[i]); ep 191 drivers/char/xillybus/xillybus_core.c channel = ep->channels[msg_channel]; ep 195 drivers/char/xillybus/xillybus_core.c malformed_message(ep, &buf[i]); ep 212 drivers/char/xillybus/xillybus_core.c malformed_message(ep, &buf[i]); ep 231 drivers/char/xillybus/xillybus_core.c if ((msg_channel > ep->num_channels) || ep 233 drivers/char/xillybus/xillybus_core.c !ep->channels[msg_channel]->wr_supports_nonempty) { ep 234 drivers/char/xillybus/xillybus_core.c malformed_message(ep, &buf[i]); ep 238 drivers/char/xillybus/xillybus_core.c channel = ep->channels[msg_channel]; ep 241 drivers/char/xillybus/xillybus_core.c malformed_message(ep, &buf[i]); ep 253 drivers/char/xillybus/xillybus_core.c ep->idtlen = msg_data; ep 254 drivers/char/xillybus/xillybus_core.c wake_up_interruptible(&ep->ep_wait); ep 258 drivers/char/xillybus/xillybus_core.c if ((msg_channel > ep->num_channels) || ep 260 drivers/char/xillybus/xillybus_core.c !ep->channels[msg_channel]->num_wr_buffers) { ep 261 drivers/char/xillybus/xillybus_core.c malformed_message(ep, &buf[i]); ep 264 drivers/char/xillybus/xillybus_core.c channel = ep->channels[msg_channel]; ep 278 drivers/char/xillybus/xillybus_core.c ep->fatal_error = 1; ep 279 drivers/char/xillybus/xillybus_core.c wake_up_interruptible(&ep->ep_wait); /* For select() */ ep 280 drivers/char/xillybus/xillybus_core.c dev_err(ep->dev, ep 284 drivers/char/xillybus/xillybus_core.c malformed_message(ep, &buf[i]); ep 289 drivers/char/xillybus/xillybus_core.c ep->ephw->hw_sync_sgl_for_device(ep, ep 290 drivers/char/xillybus/xillybus_core.c ep->msgbuf_dma_addr, ep 291 drivers/char/xillybus/xillybus_core.c ep->msg_buf_size, ep 294 drivers/char/xillybus/xillybus_core.c ep->msg_counter = (ep->msg_counter + 1) & 0xf; ep 295 drivers/char/xillybus/xillybus_core.c ep->failed_messages = 0; ep 296 drivers/char/xillybus/xillybus_core.c iowrite32(0x03, ep->registers + fpga_msg_ctrl_reg); /* Message ACK */ ep 318 drivers/char/xillybus/xillybus_core.c static int xilly_get_dma_buffers(struct xilly_endpoint *ep, ep 325 drivers/char/xillybus/xillybus_core.c struct device *dev = ep->dev; ep 344 drivers/char/xillybus/xillybus_core.c dev_err(ep->dev, ep 369 drivers/char/xillybus/xillybus_core.c rc = ep->ephw->map_single(ep, s->salami, ep 376 drivers/char/xillybus/xillybus_core.c ep->registers + fpga_dma_bufaddr_lowaddr_reg); ep 378 drivers/char/xillybus/xillybus_core.c ep->registers + fpga_dma_bufaddr_highaddr_reg); ep 386 drivers/char/xillybus/xillybus_core.c ep->registers + fpga_dma_bufno_reg); ep 388 drivers/char/xillybus/xillybus_core.c ep->msgbuf_addr = s->salami; ep 389 drivers/char/xillybus/xillybus_core.c ep->msgbuf_dma_addr = dma_addr; ep 390 drivers/char/xillybus/xillybus_core.c ep->msg_buf_size = bytebufsize; ep 393 drivers/char/xillybus/xillybus_core.c ep->registers + fpga_dma_bufno_reg); ep 402 drivers/char/xillybus/xillybus_core.c static int xilly_setupchannels(struct xilly_endpoint *ep, ep 406 drivers/char/xillybus/xillybus_core.c struct device *dev = ep->dev; ep 431 drivers/char/xillybus/xillybus_core.c channel = devm_kcalloc(dev, ep->num_channels, ep 436 drivers/char/xillybus/xillybus_core.c ep->channels = devm_kcalloc(dev, ep->num_channels + 1, ep 439 drivers/char/xillybus/xillybus_core.c if (!ep->channels) ep 442 drivers/char/xillybus/xillybus_core.c ep->channels[0] = NULL; /* Channel 0 is message buf. */ ep 446 drivers/char/xillybus/xillybus_core.c for (i = 1; i <= ep->num_channels; i++) { ep 474 drivers/char/xillybus/xillybus_core.c channel->endpoint = ep; ep 479 drivers/char/xillybus/xillybus_core.c ep->channels[i] = channel++; ep 496 drivers/char/xillybus/xillybus_core.c if ((channelnum > ep->num_channels) || ep 498 drivers/char/xillybus/xillybus_core.c dev_err(ep->dev, ep 503 drivers/char/xillybus/xillybus_core.c channel = ep->channels[channelnum]; /* NULL for msg channel */ ep 530 drivers/char/xillybus/xillybus_core.c rc = xilly_get_dma_buffers(ep, &rd_alloc, buffers, ep 544 drivers/char/xillybus/xillybus_core.c rc = xilly_get_dma_buffers(ep, &wr_alloc, buffers, ep 547 drivers/char/xillybus/xillybus_core.c rc = xilly_get_dma_buffers(ep, &wr_alloc, NULL, ep 557 drivers/char/xillybus/xillybus_core.c dev_err(ep->dev, ep 35 drivers/char/xillybus/xillybus_of.c static void xilly_dma_sync_single_for_cpu_of(struct xilly_endpoint *ep, ep 40 drivers/char/xillybus/xillybus_of.c dma_sync_single_for_cpu(ep->dev, dma_handle, size, direction); ep 43 drivers/char/xillybus/xillybus_of.c static void xilly_dma_sync_single_for_device_of(struct xilly_endpoint *ep, ep 48 drivers/char/xillybus/xillybus_of.c dma_sync_single_for_device(ep->dev, dma_handle, size, direction); ep 51 drivers/char/xillybus/xillybus_of.c static void xilly_dma_sync_single_nop(struct xilly_endpoint *ep, ep 68 drivers/char/xillybus/xillybus_of.c static int xilly_map_single_of(struct xilly_endpoint *ep, ep 82 drivers/char/xillybus/xillybus_of.c addr = dma_map_single(ep->dev, ptr, size, direction); ep 84 drivers/char/xillybus/xillybus_of.c if (dma_mapping_error(ep->dev, addr)) { ep 89 drivers/char/xillybus/xillybus_of.c this->device = ep->dev; ep 96 drivers/char/xillybus/xillybus_of.c return devm_add_action_or_reset(ep->dev, xilly_of_unmap, this); ep 48 drivers/char/xillybus/xillybus_pcie.c static void xilly_dma_sync_single_for_cpu_pci(struct xilly_endpoint *ep, ep 53 drivers/char/xillybus/xillybus_pcie.c pci_dma_sync_single_for_cpu(ep->pdev, ep 59 drivers/char/xillybus/xillybus_pcie.c static void xilly_dma_sync_single_for_device_pci(struct xilly_endpoint *ep, ep 64 drivers/char/xillybus/xillybus_pcie.c pci_dma_sync_single_for_device(ep->pdev, ep 86 drivers/char/xillybus/xillybus_pcie.c static int xilly_map_single_pci(struct xilly_endpoint *ep, ep 103 drivers/char/xillybus/xillybus_pcie.c addr = pci_map_single(ep->pdev, ptr, size, pci_direction); ep 105 drivers/char/xillybus/xillybus_pcie.c if (pci_dma_mapping_error(ep->pdev, addr)) { ep 110 drivers/char/xillybus/xillybus_pcie.c this->device = ep->pdev; ep 117 drivers/char/xillybus/xillybus_pcie.c return devm_add_action_or_reset(ep->dev, xilly_pci_unmap, this); ep 410 drivers/gpio/gpiolib-acpi.c struct acpi_gpio_event *event, *ep; ep 430 drivers/gpio/gpiolib-acpi.c list_for_each_entry_safe_reverse(event, ep, &acpi_gpio->events, node) { ep 213 drivers/gpu/drm/armada/armada_drv.c struct device_node *ep, *remote; ep 215 drivers/gpu/drm/armada/armada_drv.c for_each_endpoint_of_node(dev_node, ep) { ep 216 drivers/gpu/drm/armada/armada_drv.c remote = of_graph_get_remote_port_parent(ep); ep 44 drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_output.c static int atmel_hlcdc_of_bus_fmt(const struct device_node *ep) ep 49 drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_output.c ret = of_property_read_u32(ep, "bus-width", &bus_width); ep 72 drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_output.c struct device_node *ep; ep 77 drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_output.c ep = of_graph_get_endpoint_by_regs(dev->dev->of_node, 0, endpoint); ep 78 drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_output.c if (!ep) ep 84 drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_output.c of_node_put(ep); ep 90 drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_output.c of_node_put(ep); ep 94 drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_output.c output->bus_fmt = atmel_hlcdc_of_bus_fmt(ep); ep 95 drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_output.c of_node_put(ep); ep 205 drivers/gpu/drm/bridge/ti-tfp410.c struct device_node *ep; ep 226 drivers/gpu/drm/bridge/ti-tfp410.c ep = of_graph_get_endpoint_by_regs(dvi->dev->of_node, 0, 0); ep 227 drivers/gpu/drm/bridge/ti-tfp410.c if (!ep) ep 231 drivers/gpu/drm/bridge/ti-tfp410.c of_property_read_u32(ep, "pclk-sample", &pclk_sample); ep 232 drivers/gpu/drm/bridge/ti-tfp410.c of_property_read_u32(ep, "bus-width", &bus_width); ep 233 drivers/gpu/drm/bridge/ti-tfp410.c of_node_put(ep); ep 65 drivers/gpu/drm/drm_of.c struct device_node *remote_port, *ep; ep 68 drivers/gpu/drm/drm_of.c for_each_endpoint_of_node(port, ep) { ep 69 drivers/gpu/drm/drm_of.c remote_port = of_graph_get_remote_port(ep); ep 71 drivers/gpu/drm/drm_of.c of_node_put(ep); ep 119 drivers/gpu/drm/drm_of.c struct device_node *ep, *port, *remote; ep 165 drivers/gpu/drm/drm_of.c for_each_child_of_node(port, ep) { ep 166 drivers/gpu/drm/drm_of.c remote = of_graph_get_remote_port_parent(ep); ep 200 drivers/gpu/drm/drm_of.c struct device_node *ep; ep 208 drivers/gpu/drm/drm_of.c for_each_endpoint_of_node(node, ep) { ep 209 drivers/gpu/drm/drm_of.c port = of_graph_get_remote_port(ep); ep 212 drivers/gpu/drm/drm_of.c ret = of_graph_parse_endpoint(ep, endpoint); ep 213 drivers/gpu/drm/drm_of.c of_node_put(ep); ep 1744 drivers/gpu/drm/exynos/exynos_hdmi.c struct device_node *ep, *np; ep 1746 drivers/gpu/drm/exynos/exynos_hdmi.c ep = of_graph_get_endpoint_by_regs(dev->of_node, 1, -1); ep 1747 drivers/gpu/drm/exynos/exynos_hdmi.c if (!ep) ep 1750 drivers/gpu/drm/exynos/exynos_hdmi.c np = of_graph_get_remote_port_parent(ep); ep 1751 drivers/gpu/drm/exynos/exynos_hdmi.c of_node_put(ep); ep 121 drivers/gpu/drm/meson/meson_drv.c struct device_node *ep, *remote; ep 124 drivers/gpu/drm/meson/meson_drv.c for_each_endpoint_of_node(dev->of_node, ep) { ep 126 drivers/gpu/drm/meson/meson_drv.c remote = of_graph_get_remote_port(ep); ep 397 drivers/gpu/drm/meson/meson_drv.c struct device_node *ep, *remote_node; ep 406 drivers/gpu/drm/meson/meson_drv.c for_each_endpoint_of_node(remote, ep) { ep 407 drivers/gpu/drm/meson/meson_drv.c remote_node = of_graph_get_remote_port_parent(ep); ep 427 drivers/gpu/drm/meson/meson_drv.c struct device_node *ep, *remote; ep 430 drivers/gpu/drm/meson/meson_drv.c for_each_endpoint_of_node(np, ep) { ep 431 drivers/gpu/drm/meson/meson_drv.c remote = of_graph_get_remote_port_parent(ep); ep 785 drivers/gpu/drm/meson/meson_dw_hdmi.c struct device_node *ep, *remote; ep 788 drivers/gpu/drm/meson/meson_dw_hdmi.c ep = of_graph_get_endpoint_by_regs(dev->of_node, 1, 0); ep 789 drivers/gpu/drm/meson/meson_dw_hdmi.c if (!ep) ep 793 drivers/gpu/drm/meson/meson_dw_hdmi.c remote = of_graph_get_remote_port(ep); ep 795 drivers/gpu/drm/meson/meson_dw_hdmi.c of_node_put(ep); ep 799 drivers/gpu/drm/meson/meson_dw_hdmi.c of_node_put(ep); ep 1661 drivers/gpu/drm/msm/dsi/dsi_host.c struct device_node *ep) ep 1668 drivers/gpu/drm/msm/dsi/dsi_host.c prop = of_find_property(ep, "data-lanes", &len); ep 1684 drivers/gpu/drm/msm/dsi/dsi_host.c ret = of_property_read_u32_array(ep, "data-lanes", lane_map, ep 1148 drivers/gpu/drm/msm/msm_drv.c struct of_endpoint ep; ep 1151 drivers/gpu/drm/msm/msm_drv.c ret = of_graph_parse_endpoint(ep_node, &ep); ep 1163 drivers/gpu/drm/msm/msm_drv.c ep.port == 0) ep 683 drivers/gpu/drm/omapdrm/dss/dpi.c struct device_node *ep; ep 691 drivers/gpu/drm/omapdrm/dss/dpi.c ep = of_get_next_child(port, NULL); ep 692 drivers/gpu/drm/omapdrm/dss/dpi.c if (!ep) ep 695 drivers/gpu/drm/omapdrm/dss/dpi.c r = of_property_read_u32(ep, "data-lines", &datalines); ep 696 drivers/gpu/drm/omapdrm/dss/dpi.c of_node_put(ep); ep 5149 drivers/gpu/drm/omapdrm/dss/dsi.c struct device_node *ep; ep 5152 drivers/gpu/drm/omapdrm/dss/dsi.c ep = of_graph_get_endpoint_by_regs(node, 0, 0); ep 5153 drivers/gpu/drm/omapdrm/dss/dsi.c if (!ep) ep 5156 drivers/gpu/drm/omapdrm/dss/dsi.c prop = of_find_property(ep, "lanes", &len); ep 5172 drivers/gpu/drm/omapdrm/dss/dsi.c r = of_property_read_u32_array(ep, "lanes", lane_arr, num_pins); ep 5188 drivers/gpu/drm/omapdrm/dss/dsi.c of_node_put(ep); ep 5193 drivers/gpu/drm/omapdrm/dss/dsi.c of_node_put(ep); ep 331 drivers/gpu/drm/omapdrm/dss/hdmi.h int hdmi_parse_lanes_of(struct platform_device *pdev, struct device_node *ep, ep 700 drivers/gpu/drm/omapdrm/dss/hdmi4.c struct device_node *ep; ep 703 drivers/gpu/drm/omapdrm/dss/hdmi4.c ep = of_graph_get_endpoint_by_regs(node, 0, 0); ep 704 drivers/gpu/drm/omapdrm/dss/hdmi4.c if (!ep) ep 707 drivers/gpu/drm/omapdrm/dss/hdmi4.c r = hdmi_parse_lanes_of(pdev, ep, &hdmi->phy); ep 708 drivers/gpu/drm/omapdrm/dss/hdmi4.c of_node_put(ep); ep 684 drivers/gpu/drm/omapdrm/dss/hdmi5.c struct device_node *ep; ep 687 drivers/gpu/drm/omapdrm/dss/hdmi5.c ep = of_graph_get_endpoint_by_regs(node, 0, 0); ep 688 drivers/gpu/drm/omapdrm/dss/hdmi5.c if (!ep) ep 691 drivers/gpu/drm/omapdrm/dss/hdmi5.c r = hdmi_parse_lanes_of(pdev, ep, &hdmi->phy); ep 692 drivers/gpu/drm/omapdrm/dss/hdmi5.c of_node_put(ep); ep 12 drivers/gpu/drm/omapdrm/dss/hdmi_common.c int hdmi_parse_lanes_of(struct platform_device *pdev, struct device_node *ep, ep 18 drivers/gpu/drm/omapdrm/dss/hdmi_common.c prop = of_find_property(ep, "lanes", &len); ep 27 drivers/gpu/drm/omapdrm/dss/hdmi_common.c r = of_property_read_u32_array(ep, "lanes", lanes, ep 293 drivers/gpu/drm/omapdrm/dss/sdi.c struct device_node *ep; ep 301 drivers/gpu/drm/omapdrm/dss/sdi.c ep = of_get_next_child(port, NULL); ep 302 drivers/gpu/drm/omapdrm/dss/sdi.c if (!ep) { ep 307 drivers/gpu/drm/omapdrm/dss/sdi.c r = of_property_read_u32(ep, "datapairs", &datapairs); ep 308 drivers/gpu/drm/omapdrm/dss/sdi.c of_node_put(ep); ep 778 drivers/gpu/drm/omapdrm/dss/venc.c struct device_node *ep; ep 782 drivers/gpu/drm/omapdrm/dss/venc.c ep = of_graph_get_endpoint_by_regs(node, 0, 0); ep 783 drivers/gpu/drm/omapdrm/dss/venc.c if (!ep) ep 786 drivers/gpu/drm/omapdrm/dss/venc.c venc->invert_polarity = of_property_read_bool(ep, "ti,invert-polarity"); ep 788 drivers/gpu/drm/omapdrm/dss/venc.c r = of_property_read_u32(ep, "ti,channels", &channels); ep 809 drivers/gpu/drm/omapdrm/dss/venc.c of_node_put(ep); ep 814 drivers/gpu/drm/omapdrm/dss/venc.c of_node_put(ep); ep 439 drivers/gpu/drm/rcar-du/rcar_du_kms.c struct of_endpoint *ep) ep 445 drivers/gpu/drm/rcar-du/rcar_du_kms.c entity = of_graph_get_remote_port_parent(ep->local_node); ep 448 drivers/gpu/drm/rcar-du/rcar_du_kms.c ep->local_node); ep 483 drivers/gpu/drm/rcar-du/rcar_du_kms.c struct of_endpoint ep; ep 487 drivers/gpu/drm/rcar-du/rcar_du_kms.c ret = of_graph_parse_endpoint(ep_node, &ep); ep 496 drivers/gpu/drm/rcar-du/rcar_du_kms.c rcdu->info->routes[i].port == ep.port) { ep 505 drivers/gpu/drm/rcar-du/rcar_du_kms.c ep.port); ep 510 drivers/gpu/drm/rcar-du/rcar_du_kms.c ret = rcar_du_encoders_init_one(rcdu, output, &ep); ep 272 drivers/gpu/drm/rockchip/rockchip_drm_drv.c int rockchip_drm_endpoint_is_subdriver(struct device_node *ep) ep 274 drivers/gpu/drm/rockchip/rockchip_drm_drv.c struct device_node *node = of_graph_get_remote_port_parent(ep); ep 60 drivers/gpu/drm/rockchip/rockchip_drm_drv.h int rockchip_drm_endpoint_is_subdriver(struct device_node *ep); ep 714 drivers/gpu/drm/sun4i/sun4i_backend.c struct device_node *ep, *remote; ep 718 drivers/gpu/drm/sun4i/sun4i_backend.c ep = of_graph_get_endpoint_by_regs(node, 0, -1); ep 719 drivers/gpu/drm/sun4i/sun4i_backend.c if (!ep) ep 722 drivers/gpu/drm/sun4i/sun4i_backend.c remote = of_graph_get_remote_endpoint(ep); ep 723 drivers/gpu/drm/sun4i/sun4i_backend.c of_node_put(ep); ep 736 drivers/gpu/drm/sun4i/sun4i_backend.c struct device_node *port, *ep, *remote; ep 743 drivers/gpu/drm/sun4i/sun4i_backend.c for_each_available_child_of_node(port, ep) { ep 744 drivers/gpu/drm/sun4i/sun4i_backend.c remote = of_graph_get_remote_port_parent(ep); ep 753 drivers/gpu/drm/sun4i/sun4i_backend.c of_node_put(ep); ep 242 drivers/gpu/drm/sun4i/sun4i_drv.c struct device_node *ep, *remote, *port; ep 250 drivers/gpu/drm/sun4i/sun4i_drv.c for_each_available_child_of_node(port, ep) { ep 251 drivers/gpu/drm/sun4i/sun4i_drv.c remote = of_graph_get_remote_port_parent(ep); ep 278 drivers/gpu/drm/sun4i/sun4i_drv.c if (of_graph_parse_endpoint(ep, &endpoint)) { ep 862 drivers/gpu/drm/sun4i/sun4i_tcon.c struct device_node *port, *ep, *remote; ep 883 drivers/gpu/drm/sun4i/sun4i_tcon.c ep = of_get_next_available_child(port, NULL); ep 884 drivers/gpu/drm/sun4i/sun4i_tcon.c if (!ep) ep 887 drivers/gpu/drm/sun4i/sun4i_tcon.c remote = of_graph_get_remote_port_parent(ep); ep 905 drivers/gpu/drm/sun4i/sun4i_tcon.c port = of_graph_get_remote_port(ep); ep 915 drivers/gpu/drm/sun4i/sun4i_tcon.c of_node_put(ep); ep 934 drivers/gpu/drm/sun4i/sun4i_tcon.c struct device_node *ep; ep 938 drivers/gpu/drm/sun4i/sun4i_tcon.c for_each_available_child_of_node(port, ep) { ep 942 drivers/gpu/drm/sun4i/sun4i_tcon.c remote = of_graph_get_remote_endpoint(ep); ep 71 drivers/gpu/drm/sun4i/sun8i_dw_hdmi.c struct device_node *port, *ep, *remote, *remote_port; ep 83 drivers/gpu/drm/sun4i/sun8i_dw_hdmi.c for_each_child_of_node(port, ep) { ep 84 drivers/gpu/drm/sun4i/sun8i_dw_hdmi.c remote_port = of_graph_get_remote_port(ep); ep 404 drivers/gpu/drm/sun4i/sun8i_mixer.c struct device_node *ep, *remote; ep 408 drivers/gpu/drm/sun4i/sun8i_mixer.c ep = of_graph_get_endpoint_by_regs(node, 1, -1); ep 409 drivers/gpu/drm/sun4i/sun8i_mixer.c if (!ep) ep 412 drivers/gpu/drm/sun4i/sun8i_mixer.c remote = of_graph_get_remote_endpoint(ep); ep 413 drivers/gpu/drm/sun4i/sun8i_mixer.c of_node_put(ep); ep 250 drivers/hid/hid-u2fzero.c struct usb_host_endpoint *ep; ep 260 drivers/hid/hid-u2fzero.c ep = usb_pipe_endpoint(udev, usbhid->urbin->pipe); ep 261 drivers/hid/hid-u2fzero.c if (!ep) ep 277 drivers/hid/hid-u2fzero.c ep->desc.bInterval); ep 61 drivers/hwtracing/coresight/coresight-platform.c static inline bool of_coresight_legacy_ep_is_input(struct device_node *ep) ep 63 drivers/hwtracing/coresight/coresight-platform.c return of_property_read_bool(ep, "slave-mode"); ep 69 drivers/hwtracing/coresight/coresight-platform.c struct device_node *ep = NULL; ep 73 drivers/hwtracing/coresight/coresight-platform.c ep = of_graph_get_next_endpoint(node, ep); ep 74 drivers/hwtracing/coresight/coresight-platform.c if (!ep) ep 77 drivers/hwtracing/coresight/coresight-platform.c if (of_coresight_legacy_ep_is_input(ep)) ep 82 drivers/hwtracing/coresight/coresight-platform.c } while (ep); ep 88 drivers/hwtracing/coresight/coresight-platform.c static struct device_node *of_coresight_get_port_parent(struct device_node *ep) ep 90 drivers/hwtracing/coresight/coresight-platform.c struct device_node *parent = of_graph_get_port_parent(ep); ep 119 drivers/hwtracing/coresight/coresight-platform.c struct device_node *ep = NULL; ep 121 drivers/hwtracing/coresight/coresight-platform.c while ((ep = of_graph_get_next_endpoint(port_parent, ep))) ep 180 drivers/hwtracing/coresight/coresight-platform.c struct device_node *ep, ep 192 drivers/hwtracing/coresight/coresight-platform.c if (of_graph_parse_endpoint(ep, &endpoint)) ep 198 drivers/hwtracing/coresight/coresight-platform.c rep = of_graph_get_remote_endpoint(ep); ep 242 drivers/hwtracing/coresight/coresight-platform.c struct device_node *ep = NULL; ep 273 drivers/hwtracing/coresight/coresight-platform.c while ((ep = of_graph_get_next_endpoint(parent, ep))) { ep 280 drivers/hwtracing/coresight/coresight-platform.c if (legacy_binding && of_coresight_legacy_ep_is_input(ep)) ep 283 drivers/hwtracing/coresight/coresight-platform.c ret = of_coresight_parse_endpoint(dev, ep, conn); ep 111 drivers/infiniband/hw/cxgb3/iwch_cm.c static void connect_reply_upcall(struct iwch_ep *ep, int status); ep 113 drivers/infiniband/hw/cxgb3/iwch_cm.c static void start_ep_timer(struct iwch_ep *ep) ep 115 drivers/infiniband/hw/cxgb3/iwch_cm.c pr_debug("%s ep %p\n", __func__, ep); ep 116 drivers/infiniband/hw/cxgb3/iwch_cm.c if (timer_pending(&ep->timer)) { ep 117 drivers/infiniband/hw/cxgb3/iwch_cm.c pr_debug("%s stopped / restarted timer ep %p\n", __func__, ep); ep 118 drivers/infiniband/hw/cxgb3/iwch_cm.c del_timer_sync(&ep->timer); ep 120 drivers/infiniband/hw/cxgb3/iwch_cm.c get_ep(&ep->com); ep 121 drivers/infiniband/hw/cxgb3/iwch_cm.c ep->timer.expires = jiffies + ep_timeout_secs * HZ; ep 122 drivers/infiniband/hw/cxgb3/iwch_cm.c add_timer(&ep->timer); ep 125 drivers/infiniband/hw/cxgb3/iwch_cm.c static void stop_ep_timer(struct iwch_ep *ep) ep 127 drivers/infiniband/hw/cxgb3/iwch_cm.c pr_debug("%s ep %p\n", __func__, ep); ep 128 drivers/infiniband/hw/cxgb3/iwch_cm.c if (!timer_pending(&ep->timer)) { ep 130 drivers/infiniband/hw/cxgb3/iwch_cm.c __func__, ep, ep->com.state); ep 133 drivers/infiniband/hw/cxgb3/iwch_cm.c del_timer_sync(&ep->timer); ep 134 drivers/infiniband/hw/cxgb3/iwch_cm.c put_ep(&ep->com); ep 184 drivers/infiniband/hw/cxgb3/iwch_cm.c int iwch_quiesce_tid(struct iwch_ep *ep) ep 193 drivers/infiniband/hw/cxgb3/iwch_cm.c req->wr.wr_lo = htonl(V_WR_TID(ep->hwtid)); ep 194 drivers/infiniband/hw/cxgb3/iwch_cm.c OPCODE_TID(req) = htonl(MK_OPCODE_TID(CPL_SET_TCB_FIELD, ep->hwtid)); ep 202 drivers/infiniband/hw/cxgb3/iwch_cm.c return iwch_cxgb3_ofld_send(ep->com.tdev, skb); ep 205 drivers/infiniband/hw/cxgb3/iwch_cm.c int iwch_resume_tid(struct iwch_ep *ep) ep 214 drivers/infiniband/hw/cxgb3/iwch_cm.c req->wr.wr_lo = htonl(V_WR_TID(ep->hwtid)); ep 215 drivers/infiniband/hw/cxgb3/iwch_cm.c OPCODE_TID(req) = htonl(MK_OPCODE_TID(CPL_SET_TCB_FIELD, ep->hwtid)); ep 223 drivers/infiniband/hw/cxgb3/iwch_cm.c return iwch_cxgb3_ofld_send(ep->com.tdev, skb); ep 226 drivers/infiniband/hw/cxgb3/iwch_cm.c static void set_emss(struct iwch_ep *ep, u16 opt) ep 228 drivers/infiniband/hw/cxgb3/iwch_cm.c pr_debug("%s ep %p opt %u\n", __func__, ep, opt); ep 229 drivers/infiniband/hw/cxgb3/iwch_cm.c ep->emss = T3C_DATA(ep->com.tdev)->mtus[G_TCPOPT_MSS(opt)] - 40; ep 231 drivers/infiniband/hw/cxgb3/iwch_cm.c ep->emss -= 12; ep 232 drivers/infiniband/hw/cxgb3/iwch_cm.c if (ep->emss < 128) ep 233 drivers/infiniband/hw/cxgb3/iwch_cm.c ep->emss = 128; ep 234 drivers/infiniband/hw/cxgb3/iwch_cm.c pr_debug("emss=%d\n", ep->emss); ep 280 drivers/infiniband/hw/cxgb3/iwch_cm.c struct iwch_ep *ep; ep 281 drivers/infiniband/hw/cxgb3/iwch_cm.c ep = container_of(container_of(kref, struct iwch_ep_common, kref), ep 284 drivers/infiniband/hw/cxgb3/iwch_cm.c __func__, ep, states[state_read(&ep->com)]); ep 285 drivers/infiniband/hw/cxgb3/iwch_cm.c if (test_bit(RELEASE_RESOURCES, &ep->com.flags)) { ep 286 drivers/infiniband/hw/cxgb3/iwch_cm.c cxgb3_remove_tid(ep->com.tdev, (void *)ep, ep->hwtid); ep 287 drivers/infiniband/hw/cxgb3/iwch_cm.c dst_release(ep->dst); ep 288 drivers/infiniband/hw/cxgb3/iwch_cm.c l2t_release(ep->com.tdev, ep->l2t); ep 290 drivers/infiniband/hw/cxgb3/iwch_cm.c kfree(ep); ep 293 drivers/infiniband/hw/cxgb3/iwch_cm.c static void release_ep_resources(struct iwch_ep *ep) ep 295 drivers/infiniband/hw/cxgb3/iwch_cm.c pr_debug("%s ep %p tid %d\n", __func__, ep, ep->hwtid); ep 296 drivers/infiniband/hw/cxgb3/iwch_cm.c set_bit(RELEASE_RESOURCES, &ep->com.flags); ep 297 drivers/infiniband/hw/cxgb3/iwch_cm.c put_ep(&ep->com); ep 386 drivers/infiniband/hw/cxgb3/iwch_cm.c static int send_halfclose(struct iwch_ep *ep, gfp_t gfp) ep 391 drivers/infiniband/hw/cxgb3/iwch_cm.c pr_debug("%s ep %p\n", __func__, ep); ep 401 drivers/infiniband/hw/cxgb3/iwch_cm.c req->wr.wr_lo = htonl(V_WR_TID(ep->hwtid)); ep 402 drivers/infiniband/hw/cxgb3/iwch_cm.c OPCODE_TID(req) = htonl(MK_OPCODE_TID(CPL_CLOSE_CON_REQ, ep->hwtid)); ep 403 drivers/infiniband/hw/cxgb3/iwch_cm.c return iwch_l2t_send(ep->com.tdev, skb, ep->l2t); ep 406 drivers/infiniband/hw/cxgb3/iwch_cm.c static int send_abort(struct iwch_ep *ep, struct sk_buff *skb, gfp_t gfp) ep 410 drivers/infiniband/hw/cxgb3/iwch_cm.c pr_debug("%s ep %p\n", __func__, ep); ep 420 drivers/infiniband/hw/cxgb3/iwch_cm.c req->wr.wr_lo = htonl(V_WR_TID(ep->hwtid)); ep 421 drivers/infiniband/hw/cxgb3/iwch_cm.c OPCODE_TID(req) = htonl(MK_OPCODE_TID(CPL_ABORT_REQ, ep->hwtid)); ep 423 drivers/infiniband/hw/cxgb3/iwch_cm.c return iwch_l2t_send(ep->com.tdev, skb, ep->l2t); ep 426 drivers/infiniband/hw/cxgb3/iwch_cm.c static int send_connect(struct iwch_ep *ep) ep 434 drivers/infiniband/hw/cxgb3/iwch_cm.c pr_debug("%s ep %p\n", __func__, ep); ep 441 drivers/infiniband/hw/cxgb3/iwch_cm.c mtu_idx = find_best_mtu(T3C_DATA(ep->com.tdev), dst_mtu(ep->dst)); ep 449 drivers/infiniband/hw/cxgb3/iwch_cm.c V_L2T_IDX(ep->l2t->idx) | V_TX_CHANNEL(ep->l2t->smt_idx); ep 450 drivers/infiniband/hw/cxgb3/iwch_cm.c opt0l = V_TOS((ep->tos >> 2) & M_TOS) | V_RCV_BUFSIZ(rcv_win>>10); ep 458 drivers/infiniband/hw/cxgb3/iwch_cm.c OPCODE_TID(req) = htonl(MK_OPCODE_TID(CPL_ACT_OPEN_REQ, ep->atid)); ep 459 drivers/infiniband/hw/cxgb3/iwch_cm.c req->local_port = ep->com.local_addr.sin_port; ep 460 drivers/infiniband/hw/cxgb3/iwch_cm.c req->peer_port = ep->com.remote_addr.sin_port; ep 461 drivers/infiniband/hw/cxgb3/iwch_cm.c req->local_ip = ep->com.local_addr.sin_addr.s_addr; ep 462 drivers/infiniband/hw/cxgb3/iwch_cm.c req->peer_ip = ep->com.remote_addr.sin_addr.s_addr; ep 467 drivers/infiniband/hw/cxgb3/iwch_cm.c return iwch_l2t_send(ep->com.tdev, skb, ep->l2t); ep 470 drivers/infiniband/hw/cxgb3/iwch_cm.c static void send_mpa_req(struct iwch_ep *ep, struct sk_buff *skb) ep 477 drivers/infiniband/hw/cxgb3/iwch_cm.c pr_debug("%s ep %p pd_len %d\n", __func__, ep, ep->plen); ep 481 drivers/infiniband/hw/cxgb3/iwch_cm.c mpalen = sizeof(*mpa) + ep->plen; ep 486 drivers/infiniband/hw/cxgb3/iwch_cm.c connect_reply_upcall(ep, -ENOMEM); ep 499 drivers/infiniband/hw/cxgb3/iwch_cm.c mpa->private_data_size = htons(ep->plen); ep 502 drivers/infiniband/hw/cxgb3/iwch_cm.c if (ep->plen) ep 503 drivers/infiniband/hw/cxgb3/iwch_cm.c memcpy(mpa->private_data, ep->mpa_pkt + sizeof(*mpa), ep->plen); ep 516 drivers/infiniband/hw/cxgb3/iwch_cm.c req->wr_lo = htonl(V_WR_TID(ep->hwtid)); ep 518 drivers/infiniband/hw/cxgb3/iwch_cm.c req->param = htonl(V_TX_PORT(ep->l2t->smt_idx) | ep 521 drivers/infiniband/hw/cxgb3/iwch_cm.c req->sndseq = htonl(ep->snd_seq); ep 522 drivers/infiniband/hw/cxgb3/iwch_cm.c BUG_ON(ep->mpa_skb); ep 523 drivers/infiniband/hw/cxgb3/iwch_cm.c ep->mpa_skb = skb; ep 524 drivers/infiniband/hw/cxgb3/iwch_cm.c iwch_l2t_send(ep->com.tdev, skb, ep->l2t); ep 525 drivers/infiniband/hw/cxgb3/iwch_cm.c start_ep_timer(ep); ep 526 drivers/infiniband/hw/cxgb3/iwch_cm.c state_set(&ep->com, MPA_REQ_SENT); ep 530 drivers/infiniband/hw/cxgb3/iwch_cm.c static int send_mpa_reject(struct iwch_ep *ep, const void *pdata, u8 plen) ep 537 drivers/infiniband/hw/cxgb3/iwch_cm.c pr_debug("%s ep %p plen %d\n", __func__, ep, plen); ep 567 drivers/infiniband/hw/cxgb3/iwch_cm.c req->wr_lo = htonl(V_WR_TID(ep->hwtid)); ep 569 drivers/infiniband/hw/cxgb3/iwch_cm.c req->param = htonl(V_TX_PORT(ep->l2t->smt_idx) | ep 572 drivers/infiniband/hw/cxgb3/iwch_cm.c req->sndseq = htonl(ep->snd_seq); ep 573 drivers/infiniband/hw/cxgb3/iwch_cm.c BUG_ON(ep->mpa_skb); ep 574 drivers/infiniband/hw/cxgb3/iwch_cm.c ep->mpa_skb = skb; ep 575 drivers/infiniband/hw/cxgb3/iwch_cm.c return iwch_l2t_send(ep->com.tdev, skb, ep->l2t); ep 578 drivers/infiniband/hw/cxgb3/iwch_cm.c static int send_mpa_reply(struct iwch_ep *ep, const void *pdata, u8 plen) ep 586 drivers/infiniband/hw/cxgb3/iwch_cm.c pr_debug("%s ep %p plen %d\n", __func__, ep, plen); ep 600 drivers/infiniband/hw/cxgb3/iwch_cm.c mpa->flags = (ep->mpa_attr.crc_enabled ? MPA_CRC : 0) | ep 618 drivers/infiniband/hw/cxgb3/iwch_cm.c req->wr_lo = htonl(V_WR_TID(ep->hwtid)); ep 620 drivers/infiniband/hw/cxgb3/iwch_cm.c req->param = htonl(V_TX_PORT(ep->l2t->smt_idx) | ep 623 drivers/infiniband/hw/cxgb3/iwch_cm.c req->sndseq = htonl(ep->snd_seq); ep 624 drivers/infiniband/hw/cxgb3/iwch_cm.c ep->mpa_skb = skb; ep 625 drivers/infiniband/hw/cxgb3/iwch_cm.c state_set(&ep->com, MPA_REP_SENT); ep 626 drivers/infiniband/hw/cxgb3/iwch_cm.c return iwch_l2t_send(ep->com.tdev, skb, ep->l2t); ep 631 drivers/infiniband/hw/cxgb3/iwch_cm.c struct iwch_ep *ep = ctx; ep 635 drivers/infiniband/hw/cxgb3/iwch_cm.c pr_debug("%s ep %p tid %d\n", __func__, ep, tid); ep 637 drivers/infiniband/hw/cxgb3/iwch_cm.c dst_confirm(ep->dst); ep 640 drivers/infiniband/hw/cxgb3/iwch_cm.c ep->hwtid = tid; ep 641 drivers/infiniband/hw/cxgb3/iwch_cm.c cxgb3_insert_tid(ep->com.tdev, &t3c_client, ep, tid); ep 643 drivers/infiniband/hw/cxgb3/iwch_cm.c ep->snd_seq = ntohl(req->snd_isn); ep 644 drivers/infiniband/hw/cxgb3/iwch_cm.c ep->rcv_seq = ntohl(req->rcv_isn); ep 646 drivers/infiniband/hw/cxgb3/iwch_cm.c set_emss(ep, ntohs(req->tcp_opt)); ep 649 drivers/infiniband/hw/cxgb3/iwch_cm.c cxgb3_free_atid(ep->com.tdev, ep->atid); ep 652 drivers/infiniband/hw/cxgb3/iwch_cm.c send_mpa_req(ep, skb); ep 657 drivers/infiniband/hw/cxgb3/iwch_cm.c static void abort_connection(struct iwch_ep *ep, struct sk_buff *skb, gfp_t gfp) ep 659 drivers/infiniband/hw/cxgb3/iwch_cm.c pr_debug("%s ep %p\n", __FILE__, ep); ep 660 drivers/infiniband/hw/cxgb3/iwch_cm.c state_set(&ep->com, ABORTING); ep 661 drivers/infiniband/hw/cxgb3/iwch_cm.c send_abort(ep, skb, gfp); ep 664 drivers/infiniband/hw/cxgb3/iwch_cm.c static void close_complete_upcall(struct iwch_ep *ep) ep 668 drivers/infiniband/hw/cxgb3/iwch_cm.c pr_debug("%s ep %p\n", __func__, ep); ep 671 drivers/infiniband/hw/cxgb3/iwch_cm.c if (ep->com.cm_id) { ep 673 drivers/infiniband/hw/cxgb3/iwch_cm.c ep, ep->com.cm_id, ep->hwtid); ep 674 drivers/infiniband/hw/cxgb3/iwch_cm.c ep->com.cm_id->event_handler(ep->com.cm_id, &event); ep 675 drivers/infiniband/hw/cxgb3/iwch_cm.c ep->com.cm_id->rem_ref(ep->com.cm_id); ep 676 drivers/infiniband/hw/cxgb3/iwch_cm.c ep->com.cm_id = NULL; ep 677 drivers/infiniband/hw/cxgb3/iwch_cm.c ep->com.qp = NULL; ep 681 drivers/infiniband/hw/cxgb3/iwch_cm.c static void peer_close_upcall(struct iwch_ep *ep) ep 685 drivers/infiniband/hw/cxgb3/iwch_cm.c pr_debug("%s ep %p\n", __func__, ep); ep 688 drivers/infiniband/hw/cxgb3/iwch_cm.c if (ep->com.cm_id) { ep 690 drivers/infiniband/hw/cxgb3/iwch_cm.c ep, ep->com.cm_id, ep->hwtid); ep 691 drivers/infiniband/hw/cxgb3/iwch_cm.c ep->com.cm_id->event_handler(ep->com.cm_id, &event); ep 695 drivers/infiniband/hw/cxgb3/iwch_cm.c static void peer_abort_upcall(struct iwch_ep *ep) ep 699 drivers/infiniband/hw/cxgb3/iwch_cm.c pr_debug("%s ep %p\n", __func__, ep); ep 703 drivers/infiniband/hw/cxgb3/iwch_cm.c if (ep->com.cm_id) { ep 704 drivers/infiniband/hw/cxgb3/iwch_cm.c pr_debug("abort delivered ep %p cm_id %p tid %d\n", ep, ep 705 drivers/infiniband/hw/cxgb3/iwch_cm.c ep->com.cm_id, ep->hwtid); ep 706 drivers/infiniband/hw/cxgb3/iwch_cm.c ep->com.cm_id->event_handler(ep->com.cm_id, &event); ep 707 drivers/infiniband/hw/cxgb3/iwch_cm.c ep->com.cm_id->rem_ref(ep->com.cm_id); ep 708 drivers/infiniband/hw/cxgb3/iwch_cm.c ep->com.cm_id = NULL; ep 709 drivers/infiniband/hw/cxgb3/iwch_cm.c ep->com.qp = NULL; ep 713 drivers/infiniband/hw/cxgb3/iwch_cm.c static void connect_reply_upcall(struct iwch_ep *ep, int status) ep 717 drivers/infiniband/hw/cxgb3/iwch_cm.c pr_debug("%s ep %p status %d\n", __func__, ep, status); ep 721 drivers/infiniband/hw/cxgb3/iwch_cm.c memcpy(&event.local_addr, &ep->com.local_addr, ep 722 drivers/infiniband/hw/cxgb3/iwch_cm.c sizeof(ep->com.local_addr)); ep 723 drivers/infiniband/hw/cxgb3/iwch_cm.c memcpy(&event.remote_addr, &ep->com.remote_addr, ep 724 drivers/infiniband/hw/cxgb3/iwch_cm.c sizeof(ep->com.remote_addr)); ep 727 drivers/infiniband/hw/cxgb3/iwch_cm.c event.private_data_len = ep->plen; ep 728 drivers/infiniband/hw/cxgb3/iwch_cm.c event.private_data = ep->mpa_pkt + sizeof(struct mpa_message); ep 730 drivers/infiniband/hw/cxgb3/iwch_cm.c if (ep->com.cm_id) { ep 731 drivers/infiniband/hw/cxgb3/iwch_cm.c pr_debug("%s ep %p tid %d status %d\n", __func__, ep, ep 732 drivers/infiniband/hw/cxgb3/iwch_cm.c ep->hwtid, status); ep 733 drivers/infiniband/hw/cxgb3/iwch_cm.c ep->com.cm_id->event_handler(ep->com.cm_id, &event); ep 736 drivers/infiniband/hw/cxgb3/iwch_cm.c ep->com.cm_id->rem_ref(ep->com.cm_id); ep 737 drivers/infiniband/hw/cxgb3/iwch_cm.c ep->com.cm_id = NULL; ep 738 drivers/infiniband/hw/cxgb3/iwch_cm.c ep->com.qp = NULL; ep 742 drivers/infiniband/hw/cxgb3/iwch_cm.c static void connect_request_upcall(struct iwch_ep *ep) ep 746 drivers/infiniband/hw/cxgb3/iwch_cm.c pr_debug("%s ep %p tid %d\n", __func__, ep, ep->hwtid); ep 749 drivers/infiniband/hw/cxgb3/iwch_cm.c memcpy(&event.local_addr, &ep->com.local_addr, ep 750 drivers/infiniband/hw/cxgb3/iwch_cm.c sizeof(ep->com.local_addr)); ep 751 drivers/infiniband/hw/cxgb3/iwch_cm.c memcpy(&event.remote_addr, &ep->com.remote_addr, ep 752 drivers/infiniband/hw/cxgb3/iwch_cm.c sizeof(ep->com.local_addr)); ep 753 drivers/infiniband/hw/cxgb3/iwch_cm.c event.private_data_len = ep->plen; ep 754 drivers/infiniband/hw/cxgb3/iwch_cm.c event.private_data = ep->mpa_pkt + sizeof(struct mpa_message); ep 755 drivers/infiniband/hw/cxgb3/iwch_cm.c event.provider_data = ep; ep 761 drivers/infiniband/hw/cxgb3/iwch_cm.c if (state_read(&ep->parent_ep->com) != DEAD) { ep 762 drivers/infiniband/hw/cxgb3/iwch_cm.c get_ep(&ep->com); ep 763 drivers/infiniband/hw/cxgb3/iwch_cm.c ep->parent_ep->com.cm_id->event_handler( ep 764 drivers/infiniband/hw/cxgb3/iwch_cm.c ep->parent_ep->com.cm_id, ep 767 drivers/infiniband/hw/cxgb3/iwch_cm.c put_ep(&ep->parent_ep->com); ep 768 drivers/infiniband/hw/cxgb3/iwch_cm.c ep->parent_ep = NULL; ep 771 drivers/infiniband/hw/cxgb3/iwch_cm.c static void established_upcall(struct iwch_ep *ep) ep 775 drivers/infiniband/hw/cxgb3/iwch_cm.c pr_debug("%s ep %p\n", __func__, ep); ep 783 drivers/infiniband/hw/cxgb3/iwch_cm.c if (ep->com.cm_id) { ep 784 drivers/infiniband/hw/cxgb3/iwch_cm.c pr_debug("%s ep %p tid %d\n", __func__, ep, ep->hwtid); ep 785 drivers/infiniband/hw/cxgb3/iwch_cm.c ep->com.cm_id->event_handler(ep->com.cm_id, &event); ep 789 drivers/infiniband/hw/cxgb3/iwch_cm.c static int update_rx_credits(struct iwch_ep *ep, u32 credits) ep 794 drivers/infiniband/hw/cxgb3/iwch_cm.c pr_debug("%s ep %p credits %u\n", __func__, ep, credits); ep 803 drivers/infiniband/hw/cxgb3/iwch_cm.c OPCODE_TID(req) = htonl(MK_OPCODE_TID(CPL_RX_DATA_ACK, ep->hwtid)); ep 806 drivers/infiniband/hw/cxgb3/iwch_cm.c iwch_cxgb3_ofld_send(ep->com.tdev, skb); ep 810 drivers/infiniband/hw/cxgb3/iwch_cm.c static void process_mpa_reply(struct iwch_ep *ep, struct sk_buff *skb) ep 818 drivers/infiniband/hw/cxgb3/iwch_cm.c pr_debug("%s ep %p\n", __func__, ep); ep 825 drivers/infiniband/hw/cxgb3/iwch_cm.c stop_ep_timer(ep); ep 826 drivers/infiniband/hw/cxgb3/iwch_cm.c if (state_read(&ep->com) != MPA_REQ_SENT) ep 833 drivers/infiniband/hw/cxgb3/iwch_cm.c if (ep->mpa_pkt_len + skb->len > sizeof(ep->mpa_pkt)) { ep 841 drivers/infiniband/hw/cxgb3/iwch_cm.c skb_copy_from_linear_data(skb, &(ep->mpa_pkt[ep->mpa_pkt_len]), ep 843 drivers/infiniband/hw/cxgb3/iwch_cm.c ep->mpa_pkt_len += skb->len; ep 848 drivers/infiniband/hw/cxgb3/iwch_cm.c if (ep->mpa_pkt_len < sizeof(*mpa)) ep 850 drivers/infiniband/hw/cxgb3/iwch_cm.c mpa = (struct mpa_message *) ep->mpa_pkt; ep 875 drivers/infiniband/hw/cxgb3/iwch_cm.c if (ep->mpa_pkt_len > (sizeof(*mpa) + plen)) { ep 880 drivers/infiniband/hw/cxgb3/iwch_cm.c ep->plen = (u8) plen; ep 886 drivers/infiniband/hw/cxgb3/iwch_cm.c if (ep->mpa_pkt_len < (sizeof(*mpa) + plen)) ep 899 drivers/infiniband/hw/cxgb3/iwch_cm.c state_set(&ep->com, FPDU_MODE); ep 900 drivers/infiniband/hw/cxgb3/iwch_cm.c ep->mpa_attr.initiator = 1; ep 901 drivers/infiniband/hw/cxgb3/iwch_cm.c ep->mpa_attr.crc_enabled = (mpa->flags & MPA_CRC) | crc_enabled ? 1 : 0; ep 902 drivers/infiniband/hw/cxgb3/iwch_cm.c ep->mpa_attr.recv_marker_enabled = markers_enabled; ep 903 drivers/infiniband/hw/cxgb3/iwch_cm.c ep->mpa_attr.xmit_marker_enabled = mpa->flags & MPA_MARKERS ? 1 : 0; ep 904 drivers/infiniband/hw/cxgb3/iwch_cm.c ep->mpa_attr.version = mpa_rev; ep 907 drivers/infiniband/hw/cxgb3/iwch_cm.c ep->mpa_attr.crc_enabled, ep->mpa_attr.recv_marker_enabled, ep 908 drivers/infiniband/hw/cxgb3/iwch_cm.c ep->mpa_attr.xmit_marker_enabled, ep->mpa_attr.version); ep 910 drivers/infiniband/hw/cxgb3/iwch_cm.c attrs.mpa_attr = ep->mpa_attr; ep 911 drivers/infiniband/hw/cxgb3/iwch_cm.c attrs.max_ird = ep->ird; ep 912 drivers/infiniband/hw/cxgb3/iwch_cm.c attrs.max_ord = ep->ord; ep 913 drivers/infiniband/hw/cxgb3/iwch_cm.c attrs.llp_stream_handle = ep; ep 921 drivers/infiniband/hw/cxgb3/iwch_cm.c err = iwch_modify_qp(ep->com.qp->rhp, ep 922 drivers/infiniband/hw/cxgb3/iwch_cm.c ep->com.qp, mask, &attrs, 1); ep 926 drivers/infiniband/hw/cxgb3/iwch_cm.c if (peer2peer && iwch_rqes_posted(ep->com.qp) == 0) { ep 927 drivers/infiniband/hw/cxgb3/iwch_cm.c iwch_post_zb_read(ep); ep 932 drivers/infiniband/hw/cxgb3/iwch_cm.c abort_connection(ep, skb, GFP_KERNEL); ep 934 drivers/infiniband/hw/cxgb3/iwch_cm.c connect_reply_upcall(ep, err); ep 938 drivers/infiniband/hw/cxgb3/iwch_cm.c static void process_mpa_request(struct iwch_ep *ep, struct sk_buff *skb) ep 943 drivers/infiniband/hw/cxgb3/iwch_cm.c pr_debug("%s ep %p\n", __func__, ep); ep 950 drivers/infiniband/hw/cxgb3/iwch_cm.c stop_ep_timer(ep); ep 951 drivers/infiniband/hw/cxgb3/iwch_cm.c if (state_read(&ep->com) != MPA_REQ_WAIT) ep 958 drivers/infiniband/hw/cxgb3/iwch_cm.c if (ep->mpa_pkt_len + skb->len > sizeof(ep->mpa_pkt)) { ep 959 drivers/infiniband/hw/cxgb3/iwch_cm.c abort_connection(ep, skb, GFP_KERNEL); ep 968 drivers/infiniband/hw/cxgb3/iwch_cm.c skb_copy_from_linear_data(skb, &(ep->mpa_pkt[ep->mpa_pkt_len]), ep 970 drivers/infiniband/hw/cxgb3/iwch_cm.c ep->mpa_pkt_len += skb->len; ep 976 drivers/infiniband/hw/cxgb3/iwch_cm.c if (ep->mpa_pkt_len < sizeof(*mpa)) ep 979 drivers/infiniband/hw/cxgb3/iwch_cm.c mpa = (struct mpa_message *) ep->mpa_pkt; ep 985 drivers/infiniband/hw/cxgb3/iwch_cm.c abort_connection(ep, skb, GFP_KERNEL); ep 990 drivers/infiniband/hw/cxgb3/iwch_cm.c abort_connection(ep, skb, GFP_KERNEL); ep 1000 drivers/infiniband/hw/cxgb3/iwch_cm.c abort_connection(ep, skb, GFP_KERNEL); ep 1007 drivers/infiniband/hw/cxgb3/iwch_cm.c if (ep->mpa_pkt_len > (sizeof(*mpa) + plen)) { ep 1008 drivers/infiniband/hw/cxgb3/iwch_cm.c abort_connection(ep, skb, GFP_KERNEL); ep 1011 drivers/infiniband/hw/cxgb3/iwch_cm.c ep->plen = (u8) plen; ep 1016 drivers/infiniband/hw/cxgb3/iwch_cm.c if (ep->mpa_pkt_len < (sizeof(*mpa) + plen)) ep 1023 drivers/infiniband/hw/cxgb3/iwch_cm.c ep->mpa_attr.initiator = 0; ep 1024 drivers/infiniband/hw/cxgb3/iwch_cm.c ep->mpa_attr.crc_enabled = (mpa->flags & MPA_CRC) | crc_enabled ? 1 : 0; ep 1025 drivers/infiniband/hw/cxgb3/iwch_cm.c ep->mpa_attr.recv_marker_enabled = markers_enabled; ep 1026 drivers/infiniband/hw/cxgb3/iwch_cm.c ep->mpa_attr.xmit_marker_enabled = mpa->flags & MPA_MARKERS ? 1 : 0; ep 1027 drivers/infiniband/hw/cxgb3/iwch_cm.c ep->mpa_attr.version = mpa_rev; ep 1030 drivers/infiniband/hw/cxgb3/iwch_cm.c ep->mpa_attr.crc_enabled, ep->mpa_attr.recv_marker_enabled, ep 1031 drivers/infiniband/hw/cxgb3/iwch_cm.c ep->mpa_attr.xmit_marker_enabled, ep->mpa_attr.version); ep 1033 drivers/infiniband/hw/cxgb3/iwch_cm.c state_set(&ep->com, MPA_REQ_RCVD); ep 1036 drivers/infiniband/hw/cxgb3/iwch_cm.c connect_request_upcall(ep); ep 1042 drivers/infiniband/hw/cxgb3/iwch_cm.c struct iwch_ep *ep = ctx; ep 1046 drivers/infiniband/hw/cxgb3/iwch_cm.c pr_debug("%s ep %p dlen %u\n", __func__, ep, dlen); ep 1051 drivers/infiniband/hw/cxgb3/iwch_cm.c ep->rcv_seq += dlen; ep 1052 drivers/infiniband/hw/cxgb3/iwch_cm.c BUG_ON(ep->rcv_seq != (ntohl(hdr->seq) + dlen)); ep 1054 drivers/infiniband/hw/cxgb3/iwch_cm.c switch (state_read(&ep->com)) { ep 1056 drivers/infiniband/hw/cxgb3/iwch_cm.c process_mpa_reply(ep, skb); ep 1059 drivers/infiniband/hw/cxgb3/iwch_cm.c process_mpa_request(ep, skb); ep 1065 drivers/infiniband/hw/cxgb3/iwch_cm.c __func__, ep, state_read(&ep->com), ep->hwtid); ep 1075 drivers/infiniband/hw/cxgb3/iwch_cm.c update_rx_credits(ep, dlen); ep 1087 drivers/infiniband/hw/cxgb3/iwch_cm.c struct iwch_ep *ep = ctx; ep 1093 drivers/infiniband/hw/cxgb3/iwch_cm.c pr_debug("%s ep %p credits %u\n", __func__, ep, credits); ep 1097 drivers/infiniband/hw/cxgb3/iwch_cm.c __func__, ep, state_read(&ep->com)); ep 1101 drivers/infiniband/hw/cxgb3/iwch_cm.c spin_lock_irqsave(&ep->com.lock, flags); ep 1103 drivers/infiniband/hw/cxgb3/iwch_cm.c dst_confirm(ep->dst); ep 1104 drivers/infiniband/hw/cxgb3/iwch_cm.c if (!ep->mpa_skb) { ep 1106 drivers/infiniband/hw/cxgb3/iwch_cm.c __func__, ep, ep->com.state); ep 1107 drivers/infiniband/hw/cxgb3/iwch_cm.c if (ep->mpa_attr.initiator) { ep 1109 drivers/infiniband/hw/cxgb3/iwch_cm.c __func__, ep, ep->com.state); ep 1110 drivers/infiniband/hw/cxgb3/iwch_cm.c if (peer2peer && ep->com.state == FPDU_MODE) ep 1114 drivers/infiniband/hw/cxgb3/iwch_cm.c __func__, ep, ep->com.state); ep 1115 drivers/infiniband/hw/cxgb3/iwch_cm.c if (ep->com.state == MPA_REQ_RCVD) { ep 1116 drivers/infiniband/hw/cxgb3/iwch_cm.c ep->com.rpl_done = 1; ep 1117 drivers/infiniband/hw/cxgb3/iwch_cm.c wake_up(&ep->com.waitq); ep 1122 drivers/infiniband/hw/cxgb3/iwch_cm.c __func__, ep, ep->com.state); ep 1123 drivers/infiniband/hw/cxgb3/iwch_cm.c kfree_skb(ep->mpa_skb); ep 1124 drivers/infiniband/hw/cxgb3/iwch_cm.c ep->mpa_skb = NULL; ep 1126 drivers/infiniband/hw/cxgb3/iwch_cm.c spin_unlock_irqrestore(&ep->com.lock, flags); ep 1128 drivers/infiniband/hw/cxgb3/iwch_cm.c iwch_post_zb_read(ep); ep 1134 drivers/infiniband/hw/cxgb3/iwch_cm.c struct iwch_ep *ep = ctx; ep 1138 drivers/infiniband/hw/cxgb3/iwch_cm.c pr_debug("%s ep %p\n", __func__, ep); ep 1139 drivers/infiniband/hw/cxgb3/iwch_cm.c BUG_ON(!ep); ep 1145 drivers/infiniband/hw/cxgb3/iwch_cm.c if (!test_and_set_bit(ABORT_REQ_IN_PROGRESS, &ep->com.flags)) { ep 1149 drivers/infiniband/hw/cxgb3/iwch_cm.c spin_lock_irqsave(&ep->com.lock, flags); ep 1150 drivers/infiniband/hw/cxgb3/iwch_cm.c switch (ep->com.state) { ep 1152 drivers/infiniband/hw/cxgb3/iwch_cm.c close_complete_upcall(ep); ep 1153 drivers/infiniband/hw/cxgb3/iwch_cm.c __state_set(&ep->com, DEAD); ep 1157 drivers/infiniband/hw/cxgb3/iwch_cm.c pr_err("%s ep %p state %d\n", __func__, ep, ep->com.state); ep 1160 drivers/infiniband/hw/cxgb3/iwch_cm.c spin_unlock_irqrestore(&ep->com.lock, flags); ep 1163 drivers/infiniband/hw/cxgb3/iwch_cm.c release_ep_resources(ep); ep 1178 drivers/infiniband/hw/cxgb3/iwch_cm.c struct iwch_ep *ep = ctx; ep 1181 drivers/infiniband/hw/cxgb3/iwch_cm.c pr_debug("%s ep %p status %u errno %d\n", __func__, ep, rpl->status, ep 1183 drivers/infiniband/hw/cxgb3/iwch_cm.c connect_reply_upcall(ep, status2errno(rpl->status)); ep 1184 drivers/infiniband/hw/cxgb3/iwch_cm.c state_set(&ep->com, DEAD); ep 1185 drivers/infiniband/hw/cxgb3/iwch_cm.c if (ep->com.tdev->type != T3A && act_open_has_tid(rpl->status)) ep 1186 drivers/infiniband/hw/cxgb3/iwch_cm.c release_tid(ep->com.tdev, GET_TID(rpl), NULL); ep 1187 drivers/infiniband/hw/cxgb3/iwch_cm.c cxgb3_free_atid(ep->com.tdev, ep->atid); ep 1188 drivers/infiniband/hw/cxgb3/iwch_cm.c dst_release(ep->dst); ep 1189 drivers/infiniband/hw/cxgb3/iwch_cm.c l2t_release(ep->com.tdev, ep->l2t); ep 1190 drivers/infiniband/hw/cxgb3/iwch_cm.c put_ep(&ep->com); ep 1194 drivers/infiniband/hw/cxgb3/iwch_cm.c static int listen_start(struct iwch_listen_ep *ep) ep 1199 drivers/infiniband/hw/cxgb3/iwch_cm.c pr_debug("%s ep %p\n", __func__, ep); ep 1208 drivers/infiniband/hw/cxgb3/iwch_cm.c OPCODE_TID(req) = htonl(MK_OPCODE_TID(CPL_PASS_OPEN_REQ, ep->stid)); ep 1209 drivers/infiniband/hw/cxgb3/iwch_cm.c req->local_port = ep->com.local_addr.sin_port; ep 1210 drivers/infiniband/hw/cxgb3/iwch_cm.c req->local_ip = ep->com.local_addr.sin_addr.s_addr; ep 1219 drivers/infiniband/hw/cxgb3/iwch_cm.c return iwch_cxgb3_ofld_send(ep->com.tdev, skb); ep 1224 drivers/infiniband/hw/cxgb3/iwch_cm.c struct iwch_listen_ep *ep = ctx; ep 1227 drivers/infiniband/hw/cxgb3/iwch_cm.c pr_debug("%s ep %p status %d error %d\n", __func__, ep, ep 1229 drivers/infiniband/hw/cxgb3/iwch_cm.c ep->com.rpl_err = status2errno(rpl->status); ep 1230 drivers/infiniband/hw/cxgb3/iwch_cm.c ep->com.rpl_done = 1; ep 1231 drivers/infiniband/hw/cxgb3/iwch_cm.c wake_up(&ep->com.waitq); ep 1236 drivers/infiniband/hw/cxgb3/iwch_cm.c static int listen_stop(struct iwch_listen_ep *ep) ep 1241 drivers/infiniband/hw/cxgb3/iwch_cm.c pr_debug("%s ep %p\n", __func__, ep); ep 1250 drivers/infiniband/hw/cxgb3/iwch_cm.c OPCODE_TID(req) = htonl(MK_OPCODE_TID(CPL_CLOSE_LISTSRV_REQ, ep->stid)); ep 1252 drivers/infiniband/hw/cxgb3/iwch_cm.c return iwch_cxgb3_ofld_send(ep->com.tdev, skb); ep 1258 drivers/infiniband/hw/cxgb3/iwch_cm.c struct iwch_listen_ep *ep = ctx; ep 1261 drivers/infiniband/hw/cxgb3/iwch_cm.c pr_debug("%s ep %p\n", __func__, ep); ep 1262 drivers/infiniband/hw/cxgb3/iwch_cm.c ep->com.rpl_err = status2errno(rpl->status); ep 1263 drivers/infiniband/hw/cxgb3/iwch_cm.c ep->com.rpl_done = 1; ep 1264 drivers/infiniband/hw/cxgb3/iwch_cm.c wake_up(&ep->com.waitq); ep 1268 drivers/infiniband/hw/cxgb3/iwch_cm.c static void accept_cr(struct iwch_ep *ep, __be32 peer_ip, struct sk_buff *skb) ep 1275 drivers/infiniband/hw/cxgb3/iwch_cm.c pr_debug("%s ep %p\n", __func__, ep); ep 1279 drivers/infiniband/hw/cxgb3/iwch_cm.c mtu_idx = find_best_mtu(T3C_DATA(ep->com.tdev), dst_mtu(ep->dst)); ep 1287 drivers/infiniband/hw/cxgb3/iwch_cm.c V_L2T_IDX(ep->l2t->idx) | V_TX_CHANNEL(ep->l2t->smt_idx); ep 1288 drivers/infiniband/hw/cxgb3/iwch_cm.c opt0l = V_TOS((ep->tos >> 2) & M_TOS) | V_RCV_BUFSIZ(rcv_win>>10); ep 1294 drivers/infiniband/hw/cxgb3/iwch_cm.c OPCODE_TID(rpl) = htonl(MK_OPCODE_TID(CPL_PASS_ACCEPT_RPL, ep->hwtid)); ep 1301 drivers/infiniband/hw/cxgb3/iwch_cm.c iwch_l2t_send(ep->com.tdev, skb, ep->l2t); ep 1412 drivers/infiniband/hw/cxgb3/iwch_cm.c struct iwch_ep *ep = ctx; ep 1415 drivers/infiniband/hw/cxgb3/iwch_cm.c pr_debug("%s ep %p\n", __func__, ep); ep 1416 drivers/infiniband/hw/cxgb3/iwch_cm.c ep->snd_seq = ntohl(req->snd_isn); ep 1417 drivers/infiniband/hw/cxgb3/iwch_cm.c ep->rcv_seq = ntohl(req->rcv_isn); ep 1419 drivers/infiniband/hw/cxgb3/iwch_cm.c set_emss(ep, ntohs(req->tcp_opt)); ep 1421 drivers/infiniband/hw/cxgb3/iwch_cm.c dst_confirm(ep->dst); ep 1422 drivers/infiniband/hw/cxgb3/iwch_cm.c state_set(&ep->com, MPA_REQ_WAIT); ep 1423 drivers/infiniband/hw/cxgb3/iwch_cm.c start_ep_timer(ep); ep 1430 drivers/infiniband/hw/cxgb3/iwch_cm.c struct iwch_ep *ep = ctx; ep 1436 drivers/infiniband/hw/cxgb3/iwch_cm.c pr_debug("%s ep %p\n", __func__, ep); ep 1437 drivers/infiniband/hw/cxgb3/iwch_cm.c dst_confirm(ep->dst); ep 1439 drivers/infiniband/hw/cxgb3/iwch_cm.c spin_lock_irqsave(&ep->com.lock, flags); ep 1440 drivers/infiniband/hw/cxgb3/iwch_cm.c switch (ep->com.state) { ep 1442 drivers/infiniband/hw/cxgb3/iwch_cm.c __state_set(&ep->com, CLOSING); ep 1445 drivers/infiniband/hw/cxgb3/iwch_cm.c __state_set(&ep->com, CLOSING); ep 1446 drivers/infiniband/hw/cxgb3/iwch_cm.c connect_reply_upcall(ep, -ECONNRESET); ep 1456 drivers/infiniband/hw/cxgb3/iwch_cm.c __state_set(&ep->com, CLOSING); ep 1457 drivers/infiniband/hw/cxgb3/iwch_cm.c ep->com.rpl_done = 1; ep 1458 drivers/infiniband/hw/cxgb3/iwch_cm.c ep->com.rpl_err = -ECONNRESET; ep 1459 drivers/infiniband/hw/cxgb3/iwch_cm.c pr_debug("waking up ep %p\n", ep); ep 1460 drivers/infiniband/hw/cxgb3/iwch_cm.c wake_up(&ep->com.waitq); ep 1463 drivers/infiniband/hw/cxgb3/iwch_cm.c __state_set(&ep->com, CLOSING); ep 1464 drivers/infiniband/hw/cxgb3/iwch_cm.c ep->com.rpl_done = 1; ep 1465 drivers/infiniband/hw/cxgb3/iwch_cm.c ep->com.rpl_err = -ECONNRESET; ep 1466 drivers/infiniband/hw/cxgb3/iwch_cm.c pr_debug("waking up ep %p\n", ep); ep 1467 drivers/infiniband/hw/cxgb3/iwch_cm.c wake_up(&ep->com.waitq); ep 1470 drivers/infiniband/hw/cxgb3/iwch_cm.c start_ep_timer(ep); ep 1471 drivers/infiniband/hw/cxgb3/iwch_cm.c __state_set(&ep->com, CLOSING); ep 1473 drivers/infiniband/hw/cxgb3/iwch_cm.c iwch_modify_qp(ep->com.qp->rhp, ep->com.qp, ep 1475 drivers/infiniband/hw/cxgb3/iwch_cm.c peer_close_upcall(ep); ep 1481 drivers/infiniband/hw/cxgb3/iwch_cm.c __state_set(&ep->com, MORIBUND); ep 1485 drivers/infiniband/hw/cxgb3/iwch_cm.c stop_ep_timer(ep); ep 1486 drivers/infiniband/hw/cxgb3/iwch_cm.c if (ep->com.cm_id && ep->com.qp) { ep 1488 drivers/infiniband/hw/cxgb3/iwch_cm.c iwch_modify_qp(ep->com.qp->rhp, ep->com.qp, ep 1491 drivers/infiniband/hw/cxgb3/iwch_cm.c close_complete_upcall(ep); ep 1492 drivers/infiniband/hw/cxgb3/iwch_cm.c __state_set(&ep->com, DEAD); ep 1502 drivers/infiniband/hw/cxgb3/iwch_cm.c spin_unlock_irqrestore(&ep->com.lock, flags); ep 1504 drivers/infiniband/hw/cxgb3/iwch_cm.c iwch_ep_disconnect(ep, 0, GFP_KERNEL); ep 1506 drivers/infiniband/hw/cxgb3/iwch_cm.c release_ep_resources(ep); ep 1522 drivers/infiniband/hw/cxgb3/iwch_cm.c struct iwch_ep *ep = ctx; ep 1531 drivers/infiniband/hw/cxgb3/iwch_cm.c pr_debug("%s neg_adv_abort ep %p tid %d\n", __func__, ep, ep 1532 drivers/infiniband/hw/cxgb3/iwch_cm.c ep->hwtid); ep 1533 drivers/infiniband/hw/cxgb3/iwch_cm.c t3_l2t_send_event(ep->com.tdev, ep->l2t); ep 1541 drivers/infiniband/hw/cxgb3/iwch_cm.c if (!test_and_set_bit(PEER_ABORT_IN_PROGRESS, &ep->com.flags)) { ep 1545 drivers/infiniband/hw/cxgb3/iwch_cm.c spin_lock_irqsave(&ep->com.lock, flags); ep 1546 drivers/infiniband/hw/cxgb3/iwch_cm.c pr_debug("%s ep %p state %u\n", __func__, ep, ep->com.state); ep 1547 drivers/infiniband/hw/cxgb3/iwch_cm.c switch (ep->com.state) { ep 1551 drivers/infiniband/hw/cxgb3/iwch_cm.c stop_ep_timer(ep); ep 1554 drivers/infiniband/hw/cxgb3/iwch_cm.c stop_ep_timer(ep); ep 1555 drivers/infiniband/hw/cxgb3/iwch_cm.c connect_reply_upcall(ep, -ECONNRESET); ep 1558 drivers/infiniband/hw/cxgb3/iwch_cm.c ep->com.rpl_done = 1; ep 1559 drivers/infiniband/hw/cxgb3/iwch_cm.c ep->com.rpl_err = -ECONNRESET; ep 1560 drivers/infiniband/hw/cxgb3/iwch_cm.c pr_debug("waking up ep %p\n", ep); ep 1561 drivers/infiniband/hw/cxgb3/iwch_cm.c wake_up(&ep->com.waitq); ep 1571 drivers/infiniband/hw/cxgb3/iwch_cm.c ep->com.rpl_done = 1; ep 1572 drivers/infiniband/hw/cxgb3/iwch_cm.c ep->com.rpl_err = -ECONNRESET; ep 1573 drivers/infiniband/hw/cxgb3/iwch_cm.c pr_debug("waking up ep %p\n", ep); ep 1574 drivers/infiniband/hw/cxgb3/iwch_cm.c wake_up(&ep->com.waitq); ep 1578 drivers/infiniband/hw/cxgb3/iwch_cm.c stop_ep_timer(ep); ep 1581 drivers/infiniband/hw/cxgb3/iwch_cm.c if (ep->com.cm_id && ep->com.qp) { ep 1583 drivers/infiniband/hw/cxgb3/iwch_cm.c ret = iwch_modify_qp(ep->com.qp->rhp, ep 1584 drivers/infiniband/hw/cxgb3/iwch_cm.c ep->com.qp, IWCH_QP_ATTR_NEXT_STATE, ep 1589 drivers/infiniband/hw/cxgb3/iwch_cm.c peer_abort_upcall(ep); ep 1595 drivers/infiniband/hw/cxgb3/iwch_cm.c spin_unlock_irqrestore(&ep->com.lock, flags); ep 1601 drivers/infiniband/hw/cxgb3/iwch_cm.c dst_confirm(ep->dst); ep 1602 drivers/infiniband/hw/cxgb3/iwch_cm.c if (ep->com.state != ABORTING) { ep 1603 drivers/infiniband/hw/cxgb3/iwch_cm.c __state_set(&ep->com, DEAD); ep 1606 drivers/infiniband/hw/cxgb3/iwch_cm.c spin_unlock_irqrestore(&ep->com.lock, flags); ep 1617 drivers/infiniband/hw/cxgb3/iwch_cm.c rpl->wr.wr_lo = htonl(V_WR_TID(ep->hwtid)); ep 1618 drivers/infiniband/hw/cxgb3/iwch_cm.c OPCODE_TID(rpl) = htonl(MK_OPCODE_TID(CPL_ABORT_RPL, ep->hwtid)); ep 1620 drivers/infiniband/hw/cxgb3/iwch_cm.c iwch_cxgb3_ofld_send(ep->com.tdev, rpl_skb); ep 1623 drivers/infiniband/hw/cxgb3/iwch_cm.c release_ep_resources(ep); ep 1629 drivers/infiniband/hw/cxgb3/iwch_cm.c struct iwch_ep *ep = ctx; ep 1634 drivers/infiniband/hw/cxgb3/iwch_cm.c pr_debug("%s ep %p\n", __func__, ep); ep 1635 drivers/infiniband/hw/cxgb3/iwch_cm.c BUG_ON(!ep); ep 1638 drivers/infiniband/hw/cxgb3/iwch_cm.c spin_lock_irqsave(&ep->com.lock, flags); ep 1639 drivers/infiniband/hw/cxgb3/iwch_cm.c switch (ep->com.state) { ep 1641 drivers/infiniband/hw/cxgb3/iwch_cm.c __state_set(&ep->com, MORIBUND); ep 1644 drivers/infiniband/hw/cxgb3/iwch_cm.c stop_ep_timer(ep); ep 1645 drivers/infiniband/hw/cxgb3/iwch_cm.c if ((ep->com.cm_id) && (ep->com.qp)) { ep 1647 drivers/infiniband/hw/cxgb3/iwch_cm.c iwch_modify_qp(ep->com.qp->rhp, ep 1648 drivers/infiniband/hw/cxgb3/iwch_cm.c ep->com.qp, ep 1652 drivers/infiniband/hw/cxgb3/iwch_cm.c close_complete_upcall(ep); ep 1653 drivers/infiniband/hw/cxgb3/iwch_cm.c __state_set(&ep->com, DEAD); ep 1663 drivers/infiniband/hw/cxgb3/iwch_cm.c spin_unlock_irqrestore(&ep->com.lock, flags); ep 1665 drivers/infiniband/hw/cxgb3/iwch_cm.c release_ep_resources(ep); ep 1683 drivers/infiniband/hw/cxgb3/iwch_cm.c struct iwch_ep *ep = ctx; ep 1685 drivers/infiniband/hw/cxgb3/iwch_cm.c if (state_read(&ep->com) != FPDU_MODE) ep 1688 drivers/infiniband/hw/cxgb3/iwch_cm.c pr_debug("%s ep %p\n", __func__, ep); ep 1691 drivers/infiniband/hw/cxgb3/iwch_cm.c skb_copy_from_linear_data(skb, ep->com.qp->attr.terminate_buffer, ep 1693 drivers/infiniband/hw/cxgb3/iwch_cm.c ep->com.qp->attr.terminate_msg_len = skb->len; ep 1694 drivers/infiniband/hw/cxgb3/iwch_cm.c ep->com.qp->attr.is_terminate_local = 0; ep 1701 drivers/infiniband/hw/cxgb3/iwch_cm.c struct iwch_ep *ep = ctx; ep 1703 drivers/infiniband/hw/cxgb3/iwch_cm.c pr_debug("%s ep %p tid %u status %d\n", __func__, ep, ep->hwtid, ep 1709 drivers/infiniband/hw/cxgb3/iwch_cm.c __func__, ep->hwtid); ep 1710 drivers/infiniband/hw/cxgb3/iwch_cm.c stop_ep_timer(ep); ep 1712 drivers/infiniband/hw/cxgb3/iwch_cm.c iwch_modify_qp(ep->com.qp->rhp, ep 1713 drivers/infiniband/hw/cxgb3/iwch_cm.c ep->com.qp, IWCH_QP_ATTR_NEXT_STATE, ep 1715 drivers/infiniband/hw/cxgb3/iwch_cm.c abort_connection(ep, NULL, GFP_KERNEL); ep 1722 drivers/infiniband/hw/cxgb3/iwch_cm.c struct iwch_ep *ep = from_timer(ep, t, timer); ep 1727 drivers/infiniband/hw/cxgb3/iwch_cm.c spin_lock_irqsave(&ep->com.lock, flags); ep 1728 drivers/infiniband/hw/cxgb3/iwch_cm.c pr_debug("%s ep %p tid %u state %d\n", __func__, ep, ep->hwtid, ep 1729 drivers/infiniband/hw/cxgb3/iwch_cm.c ep->com.state); ep 1730 drivers/infiniband/hw/cxgb3/iwch_cm.c switch (ep->com.state) { ep 1732 drivers/infiniband/hw/cxgb3/iwch_cm.c __state_set(&ep->com, ABORTING); ep 1733 drivers/infiniband/hw/cxgb3/iwch_cm.c connect_reply_upcall(ep, -ETIMEDOUT); ep 1736 drivers/infiniband/hw/cxgb3/iwch_cm.c __state_set(&ep->com, ABORTING); ep 1740 drivers/infiniband/hw/cxgb3/iwch_cm.c if (ep->com.cm_id && ep->com.qp) { ep 1742 drivers/infiniband/hw/cxgb3/iwch_cm.c iwch_modify_qp(ep->com.qp->rhp, ep 1743 drivers/infiniband/hw/cxgb3/iwch_cm.c ep->com.qp, IWCH_QP_ATTR_NEXT_STATE, ep 1746 drivers/infiniband/hw/cxgb3/iwch_cm.c __state_set(&ep->com, ABORTING); ep 1750 drivers/infiniband/hw/cxgb3/iwch_cm.c __func__, ep, ep->com.state); ep 1753 drivers/infiniband/hw/cxgb3/iwch_cm.c spin_unlock_irqrestore(&ep->com.lock, flags); ep 1755 drivers/infiniband/hw/cxgb3/iwch_cm.c abort_connection(ep, NULL, GFP_ATOMIC); ep 1756 drivers/infiniband/hw/cxgb3/iwch_cm.c put_ep(&ep->com); ep 1761 drivers/infiniband/hw/cxgb3/iwch_cm.c struct iwch_ep *ep = to_ep(cm_id); ep 1763 drivers/infiniband/hw/cxgb3/iwch_cm.c pr_debug("%s ep %p tid %u\n", __func__, ep, ep->hwtid); ep 1765 drivers/infiniband/hw/cxgb3/iwch_cm.c if (state_read(&ep->com) == DEAD) { ep 1766 drivers/infiniband/hw/cxgb3/iwch_cm.c put_ep(&ep->com); ep 1769 drivers/infiniband/hw/cxgb3/iwch_cm.c BUG_ON(state_read(&ep->com) != MPA_REQ_RCVD); ep 1771 drivers/infiniband/hw/cxgb3/iwch_cm.c abort_connection(ep, NULL, GFP_KERNEL); ep 1773 drivers/infiniband/hw/cxgb3/iwch_cm.c send_mpa_reject(ep, pdata, pdata_len); ep 1774 drivers/infiniband/hw/cxgb3/iwch_cm.c iwch_ep_disconnect(ep, 0, GFP_KERNEL); ep 1776 drivers/infiniband/hw/cxgb3/iwch_cm.c put_ep(&ep->com); ep 1785 drivers/infiniband/hw/cxgb3/iwch_cm.c struct iwch_ep *ep = to_ep(cm_id); ep 1789 drivers/infiniband/hw/cxgb3/iwch_cm.c pr_debug("%s ep %p tid %u\n", __func__, ep, ep->hwtid); ep 1790 drivers/infiniband/hw/cxgb3/iwch_cm.c if (state_read(&ep->com) == DEAD) { ep 1795 drivers/infiniband/hw/cxgb3/iwch_cm.c BUG_ON(state_read(&ep->com) != MPA_REQ_RCVD); ep 1800 drivers/infiniband/hw/cxgb3/iwch_cm.c abort_connection(ep, NULL, GFP_KERNEL); ep 1806 drivers/infiniband/hw/cxgb3/iwch_cm.c ep->com.cm_id = cm_id; ep 1807 drivers/infiniband/hw/cxgb3/iwch_cm.c ep->com.qp = qp; ep 1809 drivers/infiniband/hw/cxgb3/iwch_cm.c ep->ird = conn_param->ird; ep 1810 drivers/infiniband/hw/cxgb3/iwch_cm.c ep->ord = conn_param->ord; ep 1812 drivers/infiniband/hw/cxgb3/iwch_cm.c if (peer2peer && ep->ird == 0) ep 1813 drivers/infiniband/hw/cxgb3/iwch_cm.c ep->ird = 1; ep 1815 drivers/infiniband/hw/cxgb3/iwch_cm.c pr_debug("%s %d ird %d ord %d\n", __func__, __LINE__, ep->ird, ep->ord); ep 1818 drivers/infiniband/hw/cxgb3/iwch_cm.c attrs.mpa_attr = ep->mpa_attr; ep 1819 drivers/infiniband/hw/cxgb3/iwch_cm.c attrs.max_ird = ep->ird; ep 1820 drivers/infiniband/hw/cxgb3/iwch_cm.c attrs.max_ord = ep->ord; ep 1821 drivers/infiniband/hw/cxgb3/iwch_cm.c attrs.llp_stream_handle = ep; ep 1831 drivers/infiniband/hw/cxgb3/iwch_cm.c err = iwch_modify_qp(ep->com.qp->rhp, ep 1832 drivers/infiniband/hw/cxgb3/iwch_cm.c ep->com.qp, mask, &attrs, 1); ep 1838 drivers/infiniband/hw/cxgb3/iwch_cm.c wait_event(ep->com.waitq, ep->com.rpl_done); ep 1839 drivers/infiniband/hw/cxgb3/iwch_cm.c err = ep->com.rpl_err; ep 1844 drivers/infiniband/hw/cxgb3/iwch_cm.c err = send_mpa_reply(ep, conn_param->private_data, ep 1850 drivers/infiniband/hw/cxgb3/iwch_cm.c state_set(&ep->com, FPDU_MODE); ep 1851 drivers/infiniband/hw/cxgb3/iwch_cm.c established_upcall(ep); ep 1852 drivers/infiniband/hw/cxgb3/iwch_cm.c put_ep(&ep->com); ep 1855 drivers/infiniband/hw/cxgb3/iwch_cm.c ep->com.cm_id = NULL; ep 1856 drivers/infiniband/hw/cxgb3/iwch_cm.c ep->com.qp = NULL; ep 1859 drivers/infiniband/hw/cxgb3/iwch_cm.c put_ep(&ep->com); ep 1878 drivers/infiniband/hw/cxgb3/iwch_cm.c struct iwch_ep *ep; ep 1894 drivers/infiniband/hw/cxgb3/iwch_cm.c ep = alloc_ep(sizeof(*ep), GFP_KERNEL); ep 1895 drivers/infiniband/hw/cxgb3/iwch_cm.c if (!ep) { ep 1900 drivers/infiniband/hw/cxgb3/iwch_cm.c timer_setup(&ep->timer, ep_timeout, 0); ep 1901 drivers/infiniband/hw/cxgb3/iwch_cm.c ep->plen = conn_param->private_data_len; ep 1902 drivers/infiniband/hw/cxgb3/iwch_cm.c if (ep->plen) ep 1903 drivers/infiniband/hw/cxgb3/iwch_cm.c memcpy(ep->mpa_pkt + sizeof(struct mpa_message), ep 1904 drivers/infiniband/hw/cxgb3/iwch_cm.c conn_param->private_data, ep->plen); ep 1905 drivers/infiniband/hw/cxgb3/iwch_cm.c ep->ird = conn_param->ird; ep 1906 drivers/infiniband/hw/cxgb3/iwch_cm.c ep->ord = conn_param->ord; ep 1908 drivers/infiniband/hw/cxgb3/iwch_cm.c if (peer2peer && ep->ord == 0) ep 1909 drivers/infiniband/hw/cxgb3/iwch_cm.c ep->ord = 1; ep 1911 drivers/infiniband/hw/cxgb3/iwch_cm.c ep->com.tdev = h->rdev.t3cdev_p; ep 1914 drivers/infiniband/hw/cxgb3/iwch_cm.c ep->com.cm_id = cm_id; ep 1915 drivers/infiniband/hw/cxgb3/iwch_cm.c ep->com.qp = get_qhp(h, conn_param->qpn); ep 1916 drivers/infiniband/hw/cxgb3/iwch_cm.c BUG_ON(!ep->com.qp); ep 1918 drivers/infiniband/hw/cxgb3/iwch_cm.c ep->com.qp, cm_id); ep 1923 drivers/infiniband/hw/cxgb3/iwch_cm.c ep->atid = cxgb3_alloc_atid(h->rdev.t3cdev_p, &t3c_client, ep); ep 1924 drivers/infiniband/hw/cxgb3/iwch_cm.c if (ep->atid == -1) { ep 1939 drivers/infiniband/hw/cxgb3/iwch_cm.c ep->dst = &rt->dst; ep 1940 drivers/infiniband/hw/cxgb3/iwch_cm.c ep->l2t = t3_l2t_get(ep->com.tdev, ep->dst, NULL, ep 1942 drivers/infiniband/hw/cxgb3/iwch_cm.c if (!ep->l2t) { ep 1948 drivers/infiniband/hw/cxgb3/iwch_cm.c state_set(&ep->com, CONNECTING); ep 1949 drivers/infiniband/hw/cxgb3/iwch_cm.c ep->tos = IPTOS_LOWDELAY; ep 1950 drivers/infiniband/hw/cxgb3/iwch_cm.c memcpy(&ep->com.local_addr, &cm_id->m_local_addr, ep 1951 drivers/infiniband/hw/cxgb3/iwch_cm.c sizeof(ep->com.local_addr)); ep 1952 drivers/infiniband/hw/cxgb3/iwch_cm.c memcpy(&ep->com.remote_addr, &cm_id->m_remote_addr, ep 1953 drivers/infiniband/hw/cxgb3/iwch_cm.c sizeof(ep->com.remote_addr)); ep 1956 drivers/infiniband/hw/cxgb3/iwch_cm.c err = send_connect(ep); ep 1960 drivers/infiniband/hw/cxgb3/iwch_cm.c l2t_release(h->rdev.t3cdev_p, ep->l2t); ep 1962 drivers/infiniband/hw/cxgb3/iwch_cm.c dst_release(ep->dst); ep 1964 drivers/infiniband/hw/cxgb3/iwch_cm.c cxgb3_free_atid(ep->com.tdev, ep->atid); ep 1967 drivers/infiniband/hw/cxgb3/iwch_cm.c put_ep(&ep->com); ep 1976 drivers/infiniband/hw/cxgb3/iwch_cm.c struct iwch_listen_ep *ep; ep 1986 drivers/infiniband/hw/cxgb3/iwch_cm.c ep = alloc_ep(sizeof(*ep), GFP_KERNEL); ep 1987 drivers/infiniband/hw/cxgb3/iwch_cm.c if (!ep) { ep 1992 drivers/infiniband/hw/cxgb3/iwch_cm.c pr_debug("%s ep %p\n", __func__, ep); ep 1993 drivers/infiniband/hw/cxgb3/iwch_cm.c ep->com.tdev = h->rdev.t3cdev_p; ep 1995 drivers/infiniband/hw/cxgb3/iwch_cm.c ep->com.cm_id = cm_id; ep 1996 drivers/infiniband/hw/cxgb3/iwch_cm.c ep->backlog = backlog; ep 1997 drivers/infiniband/hw/cxgb3/iwch_cm.c memcpy(&ep->com.local_addr, &cm_id->m_local_addr, ep 1998 drivers/infiniband/hw/cxgb3/iwch_cm.c sizeof(ep->com.local_addr)); ep 2003 drivers/infiniband/hw/cxgb3/iwch_cm.c ep->stid = cxgb3_alloc_stid(h->rdev.t3cdev_p, &t3c_client, ep); ep 2004 drivers/infiniband/hw/cxgb3/iwch_cm.c if (ep->stid == -1) { ep 2010 drivers/infiniband/hw/cxgb3/iwch_cm.c state_set(&ep->com, LISTEN); ep 2011 drivers/infiniband/hw/cxgb3/iwch_cm.c err = listen_start(ep); ep 2016 drivers/infiniband/hw/cxgb3/iwch_cm.c wait_event(ep->com.waitq, ep->com.rpl_done); ep 2017 drivers/infiniband/hw/cxgb3/iwch_cm.c err = ep->com.rpl_err; ep 2019 drivers/infiniband/hw/cxgb3/iwch_cm.c cm_id->provider_data = ep; ep 2023 drivers/infiniband/hw/cxgb3/iwch_cm.c cxgb3_free_stid(ep->com.tdev, ep->stid); ep 2026 drivers/infiniband/hw/cxgb3/iwch_cm.c put_ep(&ep->com); ep 2035 drivers/infiniband/hw/cxgb3/iwch_cm.c struct iwch_listen_ep *ep = to_listen_ep(cm_id); ep 2037 drivers/infiniband/hw/cxgb3/iwch_cm.c pr_debug("%s ep %p\n", __func__, ep); ep 2040 drivers/infiniband/hw/cxgb3/iwch_cm.c state_set(&ep->com, DEAD); ep 2041 drivers/infiniband/hw/cxgb3/iwch_cm.c ep->com.rpl_done = 0; ep 2042 drivers/infiniband/hw/cxgb3/iwch_cm.c ep->com.rpl_err = 0; ep 2043 drivers/infiniband/hw/cxgb3/iwch_cm.c err = listen_stop(ep); ep 2046 drivers/infiniband/hw/cxgb3/iwch_cm.c wait_event(ep->com.waitq, ep->com.rpl_done); ep 2047 drivers/infiniband/hw/cxgb3/iwch_cm.c cxgb3_free_stid(ep->com.tdev, ep->stid); ep 2049 drivers/infiniband/hw/cxgb3/iwch_cm.c err = ep->com.rpl_err; ep 2051 drivers/infiniband/hw/cxgb3/iwch_cm.c put_ep(&ep->com); ep 2055 drivers/infiniband/hw/cxgb3/iwch_cm.c int iwch_ep_disconnect(struct iwch_ep *ep, int abrupt, gfp_t gfp) ep 2064 drivers/infiniband/hw/cxgb3/iwch_cm.c spin_lock_irqsave(&ep->com.lock, flags); ep 2066 drivers/infiniband/hw/cxgb3/iwch_cm.c pr_debug("%s ep %p state %s, abrupt %d\n", __func__, ep, ep 2067 drivers/infiniband/hw/cxgb3/iwch_cm.c states[ep->com.state], abrupt); ep 2069 drivers/infiniband/hw/cxgb3/iwch_cm.c tdev = (struct t3cdev *)ep->com.tdev; ep 2073 drivers/infiniband/hw/cxgb3/iwch_cm.c close_complete_upcall(ep); ep 2074 drivers/infiniband/hw/cxgb3/iwch_cm.c ep->com.state = DEAD; ep 2076 drivers/infiniband/hw/cxgb3/iwch_cm.c switch (ep->com.state) { ep 2084 drivers/infiniband/hw/cxgb3/iwch_cm.c ep->com.state = ABORTING; ep 2086 drivers/infiniband/hw/cxgb3/iwch_cm.c ep->com.state = CLOSING; ep 2087 drivers/infiniband/hw/cxgb3/iwch_cm.c start_ep_timer(ep); ep 2089 drivers/infiniband/hw/cxgb3/iwch_cm.c set_bit(CLOSE_SENT, &ep->com.flags); ep 2092 drivers/infiniband/hw/cxgb3/iwch_cm.c if (!test_and_set_bit(CLOSE_SENT, &ep->com.flags)) { ep 2095 drivers/infiniband/hw/cxgb3/iwch_cm.c stop_ep_timer(ep); ep 2096 drivers/infiniband/hw/cxgb3/iwch_cm.c ep->com.state = ABORTING; ep 2098 drivers/infiniband/hw/cxgb3/iwch_cm.c ep->com.state = MORIBUND; ep 2105 drivers/infiniband/hw/cxgb3/iwch_cm.c __func__, ep, ep->com.state); ep 2112 drivers/infiniband/hw/cxgb3/iwch_cm.c spin_unlock_irqrestore(&ep->com.lock, flags); ep 2115 drivers/infiniband/hw/cxgb3/iwch_cm.c ret = send_abort(ep, NULL, gfp); ep 2117 drivers/infiniband/hw/cxgb3/iwch_cm.c ret = send_halfclose(ep, gfp); ep 2122 drivers/infiniband/hw/cxgb3/iwch_cm.c release_ep_resources(ep); ep 2129 drivers/infiniband/hw/cxgb3/iwch_cm.c struct iwch_ep *ep = ctx; ep 2131 drivers/infiniband/hw/cxgb3/iwch_cm.c if (ep->dst != old) ep 2134 drivers/infiniband/hw/cxgb3/iwch_cm.c pr_debug("%s ep %p redirect to dst %p l2t %p\n", __func__, ep, new, ep 2137 drivers/infiniband/hw/cxgb3/iwch_cm.c l2t_release(ep->com.tdev, ep->l2t); ep 2138 drivers/infiniband/hw/cxgb3/iwch_cm.c ep->l2t = l2t; ep 2140 drivers/infiniband/hw/cxgb3/iwch_cm.c ep->dst = new; ep 2169 drivers/infiniband/hw/cxgb3/iwch_cm.c void *ep; ep 2174 drivers/infiniband/hw/cxgb3/iwch_cm.c ep = *((void **) (skb->cb)); ep 2176 drivers/infiniband/hw/cxgb3/iwch_cm.c ret = work_handlers[G_OPCODE(ntohl((__force __be32)skb->csum))](tdev, skb, ep); ep 2183 drivers/infiniband/hw/cxgb3/iwch_cm.c put_ep((struct iwch_ep_common *)ep); ep 56 drivers/infiniband/hw/cxgb3/iwch_cm.h #define put_ep(ep) { \ ep 58 drivers/infiniband/hw/cxgb3/iwch_cm.h __func__, __LINE__, ep, kref_read(&((ep)->kref))); \ ep 59 drivers/infiniband/hw/cxgb3/iwch_cm.h WARN_ON(kref_read(&((ep)->kref)) < 1); \ ep 60 drivers/infiniband/hw/cxgb3/iwch_cm.h kref_put(&((ep)->kref), __free_ep); \ ep 63 drivers/infiniband/hw/cxgb3/iwch_cm.h #define get_ep(ep) { \ ep 65 drivers/infiniband/hw/cxgb3/iwch_cm.h __func__, __LINE__, ep, kref_read(&((ep)->kref))); \ ep 66 drivers/infiniband/hw/cxgb3/iwch_cm.h kref_get(&((ep)->kref)); \ ep 222 drivers/infiniband/hw/cxgb3/iwch_cm.h int iwch_ep_disconnect(struct iwch_ep *ep, int abrupt, gfp_t gfp); ep 223 drivers/infiniband/hw/cxgb3/iwch_cm.h int iwch_quiesce_tid(struct iwch_ep *ep); ep 224 drivers/infiniband/hw/cxgb3/iwch_cm.h int iwch_resume_tid(struct iwch_ep *ep); ep 226 drivers/infiniband/hw/cxgb3/iwch_cm.h void iwch_rearp(struct iwch_ep *ep); ep 141 drivers/infiniband/hw/cxgb3/iwch_ev.c __func__, qhp->wq.qpid, qhp->ep); ep 142 drivers/infiniband/hw/cxgb3/iwch_ev.c iwch_ep_disconnect(qhp->ep, 0, GFP_ATOMIC); ep 148 drivers/infiniband/hw/cxgb3/iwch_ev.c iwch_ep_disconnect(qhp->ep, 0, GFP_ATOMIC); ep 175 drivers/infiniband/hw/cxgb3/iwch_ev.c if (qhp->ep && SQ_TYPE(rsp_msg->cqe)) ep 176 drivers/infiniband/hw/cxgb3/iwch_ev.c dst_confirm(qhp->ep->dst); ep 677 drivers/infiniband/hw/cxgb3/iwch_provider.c wait_event(qhp->wait, !qhp->ep); ep 164 drivers/infiniband/hw/cxgb3/iwch_provider.h struct iwch_ep *ep; ep 335 drivers/infiniband/hw/cxgb3/iwch_provider.h int iwch_post_zb_read(struct iwch_ep *ep); ep 661 drivers/infiniband/hw/cxgb3/iwch_qp.c int iwch_post_zb_read(struct iwch_ep *ep) ep 683 drivers/infiniband/hw/cxgb3/iwch_qp.c wqe->send.wrh.gen_tid_len = cpu_to_be32(V_FW_RIWR_TID(ep->hwtid)| ep 686 drivers/infiniband/hw/cxgb3/iwch_qp.c return iwch_cxgb3_ofld_send(ep->com.qp->rhp->rdev.t3cdev_p, skb); ep 715 drivers/infiniband/hw/cxgb3/iwch_qp.c wqe->send.wrh.gen_tid_len = cpu_to_be32(V_FW_RIWR_TID(qhp->ep->hwtid)); ep 822 drivers/infiniband/hw/cxgb3/iwch_qp.c init_attr.tid = qhp->ep->hwtid; ep 841 drivers/infiniband/hw/cxgb3/iwch_qp.c init_attr.tcp_emss = qhp->ep->emss; ep 848 drivers/infiniband/hw/cxgb3/iwch_qp.c init_attr.chan = qhp->ep->l2t->smt_idx; ep 857 drivers/infiniband/hw/cxgb3/iwch_qp.c init_attr.irs = qhp->ep->rcv_seq; ep 879 drivers/infiniband/hw/cxgb3/iwch_qp.c struct iwch_ep *ep = NULL; ep 882 drivers/infiniband/hw/cxgb3/iwch_qp.c qhp, qhp->wq.qpid, qhp->ep, qhp->attr.state, ep 937 drivers/infiniband/hw/cxgb3/iwch_qp.c qhp->ep = qhp->attr.llp_stream_handle; ep 946 drivers/infiniband/hw/cxgb3/iwch_qp.c get_ep(&qhp->ep->com); ep 965 drivers/infiniband/hw/cxgb3/iwch_qp.c BUG_ON(kref_read(&qhp->ep->com.kref) < 2); ep 970 drivers/infiniband/hw/cxgb3/iwch_qp.c ep = qhp->ep; ep 971 drivers/infiniband/hw/cxgb3/iwch_qp.c get_ep(&ep->com); ep 986 drivers/infiniband/hw/cxgb3/iwch_qp.c ep = qhp->ep; ep 987 drivers/infiniband/hw/cxgb3/iwch_qp.c get_ep(&ep->com); ep 1006 drivers/infiniband/hw/cxgb3/iwch_qp.c put_ep(&qhp->ep->com); ep 1007 drivers/infiniband/hw/cxgb3/iwch_qp.c qhp->ep = NULL; ep 1045 drivers/infiniband/hw/cxgb3/iwch_qp.c pr_debug("%s disassociating ep %p qpid 0x%x\n", __func__, qhp->ep, ep 1050 drivers/infiniband/hw/cxgb3/iwch_qp.c ep = qhp->ep; ep 1051 drivers/infiniband/hw/cxgb3/iwch_qp.c qhp->ep = NULL; ep 1055 drivers/infiniband/hw/cxgb3/iwch_qp.c BUG_ON(!ep); ep 1069 drivers/infiniband/hw/cxgb3/iwch_qp.c iwch_ep_disconnect(ep, abort, GFP_KERNEL); ep 1070 drivers/infiniband/hw/cxgb3/iwch_qp.c put_ep(&ep->com); ep 1078 drivers/infiniband/hw/cxgb3/iwch_qp.c put_ep(&ep->com); ep 144 drivers/infiniband/hw/cxgb4/cm.c static void connect_reply_upcall(struct c4iw_ep *ep, int status); ep 163 drivers/infiniband/hw/cxgb4/cm.c static void deref_qp(struct c4iw_ep *ep) ep 165 drivers/infiniband/hw/cxgb4/cm.c c4iw_qp_rem_ref(&ep->com.qp->ibqp); ep 166 drivers/infiniband/hw/cxgb4/cm.c clear_bit(QP_REFERENCED, &ep->com.flags); ep 167 drivers/infiniband/hw/cxgb4/cm.c set_bit(QP_DEREFED, &ep->com.history); ep 170 drivers/infiniband/hw/cxgb4/cm.c static void ref_qp(struct c4iw_ep *ep) ep 172 drivers/infiniband/hw/cxgb4/cm.c set_bit(QP_REFERENCED, &ep->com.flags); ep 173 drivers/infiniband/hw/cxgb4/cm.c set_bit(QP_REFED, &ep->com.history); ep 174 drivers/infiniband/hw/cxgb4/cm.c c4iw_qp_add_ref(&ep->com.qp->ibqp); ep 177 drivers/infiniband/hw/cxgb4/cm.c static void start_ep_timer(struct c4iw_ep *ep) ep 179 drivers/infiniband/hw/cxgb4/cm.c pr_debug("ep %p\n", ep); ep 180 drivers/infiniband/hw/cxgb4/cm.c if (timer_pending(&ep->timer)) { ep 182 drivers/infiniband/hw/cxgb4/cm.c __func__, ep); ep 185 drivers/infiniband/hw/cxgb4/cm.c clear_bit(TIMEOUT, &ep->com.flags); ep 186 drivers/infiniband/hw/cxgb4/cm.c c4iw_get_ep(&ep->com); ep 187 drivers/infiniband/hw/cxgb4/cm.c ep->timer.expires = jiffies + ep_timeout_secs * HZ; ep 188 drivers/infiniband/hw/cxgb4/cm.c add_timer(&ep->timer); ep 191 drivers/infiniband/hw/cxgb4/cm.c static int stop_ep_timer(struct c4iw_ep *ep) ep 193 drivers/infiniband/hw/cxgb4/cm.c pr_debug("ep %p stopping\n", ep); ep 194 drivers/infiniband/hw/cxgb4/cm.c del_timer_sync(&ep->timer); ep 195 drivers/infiniband/hw/cxgb4/cm.c if (!test_and_set_bit(TIMEOUT, &ep->com.flags)) { ep 196 drivers/infiniband/hw/cxgb4/cm.c c4iw_put_ep(&ep->com); ep 248 drivers/infiniband/hw/cxgb4/cm.c static void set_emss(struct c4iw_ep *ep, u16 opt) ep 250 drivers/infiniband/hw/cxgb4/cm.c ep->emss = ep->com.dev->rdev.lldi.mtus[TCPOPT_MSS_G(opt)] - ep 251 drivers/infiniband/hw/cxgb4/cm.c ((AF_INET == ep->com.remote_addr.ss_family) ? ep 254 drivers/infiniband/hw/cxgb4/cm.c ep->mss = ep->emss; ep 256 drivers/infiniband/hw/cxgb4/cm.c ep->emss -= round_up(TCPOLEN_TIMESTAMP, 4); ep 257 drivers/infiniband/hw/cxgb4/cm.c if (ep->emss < 128) ep 258 drivers/infiniband/hw/cxgb4/cm.c ep->emss = 128; ep 259 drivers/infiniband/hw/cxgb4/cm.c if (ep->emss & 7) ep 261 drivers/infiniband/hw/cxgb4/cm.c TCPOPT_MSS_G(opt), ep->mss, ep->emss); ep 262 drivers/infiniband/hw/cxgb4/cm.c pr_debug("mss_idx %u mss %u emss=%u\n", TCPOPT_MSS_G(opt), ep->mss, ep 263 drivers/infiniband/hw/cxgb4/cm.c ep->emss); ep 330 drivers/infiniband/hw/cxgb4/cm.c static void remove_ep_tid(struct c4iw_ep *ep) ep 334 drivers/infiniband/hw/cxgb4/cm.c xa_lock_irqsave(&ep->com.dev->hwtids, flags); ep 335 drivers/infiniband/hw/cxgb4/cm.c __xa_erase(&ep->com.dev->hwtids, ep->hwtid); ep 336 drivers/infiniband/hw/cxgb4/cm.c if (xa_empty(&ep->com.dev->hwtids)) ep 337 drivers/infiniband/hw/cxgb4/cm.c wake_up(&ep->com.dev->wait); ep 338 drivers/infiniband/hw/cxgb4/cm.c xa_unlock_irqrestore(&ep->com.dev->hwtids, flags); ep 341 drivers/infiniband/hw/cxgb4/cm.c static int insert_ep_tid(struct c4iw_ep *ep) ep 346 drivers/infiniband/hw/cxgb4/cm.c xa_lock_irqsave(&ep->com.dev->hwtids, flags); ep 347 drivers/infiniband/hw/cxgb4/cm.c err = __xa_insert(&ep->com.dev->hwtids, ep->hwtid, ep, GFP_KERNEL); ep 348 drivers/infiniband/hw/cxgb4/cm.c xa_unlock_irqrestore(&ep->com.dev->hwtids, flags); ep 358 drivers/infiniband/hw/cxgb4/cm.c struct c4iw_ep *ep; ep 362 drivers/infiniband/hw/cxgb4/cm.c ep = xa_load(&dev->hwtids, tid); ep 363 drivers/infiniband/hw/cxgb4/cm.c if (ep) ep 364 drivers/infiniband/hw/cxgb4/cm.c c4iw_get_ep(&ep->com); ep 366 drivers/infiniband/hw/cxgb4/cm.c return ep; ep 375 drivers/infiniband/hw/cxgb4/cm.c struct c4iw_listen_ep *ep; ep 379 drivers/infiniband/hw/cxgb4/cm.c ep = xa_load(&dev->stids, stid); ep 380 drivers/infiniband/hw/cxgb4/cm.c if (ep) ep 381 drivers/infiniband/hw/cxgb4/cm.c c4iw_get_ep(&ep->com); ep 383 drivers/infiniband/hw/cxgb4/cm.c return ep; ep 388 drivers/infiniband/hw/cxgb4/cm.c struct c4iw_ep *ep; ep 390 drivers/infiniband/hw/cxgb4/cm.c ep = container_of(kref, struct c4iw_ep, com.kref); ep 391 drivers/infiniband/hw/cxgb4/cm.c pr_debug("ep %p state %s\n", ep, states[ep->com.state]); ep 392 drivers/infiniband/hw/cxgb4/cm.c if (test_bit(QP_REFERENCED, &ep->com.flags)) ep 393 drivers/infiniband/hw/cxgb4/cm.c deref_qp(ep); ep 394 drivers/infiniband/hw/cxgb4/cm.c if (test_bit(RELEASE_RESOURCES, &ep->com.flags)) { ep 395 drivers/infiniband/hw/cxgb4/cm.c if (ep->com.remote_addr.ss_family == AF_INET6) { ep 398 drivers/infiniband/hw/cxgb4/cm.c &ep->com.local_addr; ep 401 drivers/infiniband/hw/cxgb4/cm.c ep->com.dev->rdev.lldi.ports[0], ep 405 drivers/infiniband/hw/cxgb4/cm.c cxgb4_remove_tid(ep->com.dev->rdev.lldi.tids, 0, ep->hwtid, ep 406 drivers/infiniband/hw/cxgb4/cm.c ep->com.local_addr.ss_family); ep 407 drivers/infiniband/hw/cxgb4/cm.c dst_release(ep->dst); ep 408 drivers/infiniband/hw/cxgb4/cm.c cxgb4_l2t_release(ep->l2t); ep 409 drivers/infiniband/hw/cxgb4/cm.c kfree_skb(ep->mpa_skb); ep 411 drivers/infiniband/hw/cxgb4/cm.c if (!skb_queue_empty(&ep->com.ep_skb_list)) ep 412 drivers/infiniband/hw/cxgb4/cm.c skb_queue_purge(&ep->com.ep_skb_list); ep 413 drivers/infiniband/hw/cxgb4/cm.c c4iw_put_wr_wait(ep->com.wr_waitp); ep 414 drivers/infiniband/hw/cxgb4/cm.c kfree(ep); ep 417 drivers/infiniband/hw/cxgb4/cm.c static void release_ep_resources(struct c4iw_ep *ep) ep 419 drivers/infiniband/hw/cxgb4/cm.c set_bit(RELEASE_RESOURCES, &ep->com.flags); ep 427 drivers/infiniband/hw/cxgb4/cm.c if (ep->hwtid != -1) ep 428 drivers/infiniband/hw/cxgb4/cm.c remove_ep_tid(ep); ep 429 drivers/infiniband/hw/cxgb4/cm.c c4iw_put_ep(&ep->com); ep 494 drivers/infiniband/hw/cxgb4/cm.c struct c4iw_ep *ep; ep 496 drivers/infiniband/hw/cxgb4/cm.c ep = *((struct c4iw_ep **)(skb->cb + 2 * sizeof(void *))); ep 497 drivers/infiniband/hw/cxgb4/cm.c release_ep_resources(ep); ep 503 drivers/infiniband/hw/cxgb4/cm.c struct c4iw_ep *ep; ep 505 drivers/infiniband/hw/cxgb4/cm.c ep = *((struct c4iw_ep **)(skb->cb + 2 * sizeof(void *))); ep 506 drivers/infiniband/hw/cxgb4/cm.c c4iw_put_ep(&ep->parent_ep->com); ep 507 drivers/infiniband/hw/cxgb4/cm.c release_ep_resources(ep); ep 517 drivers/infiniband/hw/cxgb4/cm.c static void queue_arp_failure_cpl(struct c4iw_ep *ep, struct sk_buff *skb, ep 529 drivers/infiniband/hw/cxgb4/cm.c *((struct c4iw_ep **)(skb->cb + 2 * sizeof(void *))) = ep; ep 530 drivers/infiniband/hw/cxgb4/cm.c sched(ep->com.dev, skb); ep 536 drivers/infiniband/hw/cxgb4/cm.c struct c4iw_ep *ep = handle; ep 539 drivers/infiniband/hw/cxgb4/cm.c ep->hwtid); ep 541 drivers/infiniband/hw/cxgb4/cm.c __state_set(&ep->com, DEAD); ep 542 drivers/infiniband/hw/cxgb4/cm.c queue_arp_failure_cpl(ep, skb, FAKE_CPL_PASS_PUT_EP_SAFE); ep 550 drivers/infiniband/hw/cxgb4/cm.c struct c4iw_ep *ep = handle; ep 553 drivers/infiniband/hw/cxgb4/cm.c connect_reply_upcall(ep, -EHOSTUNREACH); ep 554 drivers/infiniband/hw/cxgb4/cm.c __state_set(&ep->com, DEAD); ep 555 drivers/infiniband/hw/cxgb4/cm.c if (ep->com.remote_addr.ss_family == AF_INET6) { ep 557 drivers/infiniband/hw/cxgb4/cm.c (struct sockaddr_in6 *)&ep->com.local_addr; ep 558 drivers/infiniband/hw/cxgb4/cm.c cxgb4_clip_release(ep->com.dev->rdev.lldi.ports[0], ep 561 drivers/infiniband/hw/cxgb4/cm.c xa_erase_irq(&ep->com.dev->atids, ep->atid); ep 562 drivers/infiniband/hw/cxgb4/cm.c cxgb4_free_atid(ep->com.dev->rdev.lldi.tids, ep->atid); ep 563 drivers/infiniband/hw/cxgb4/cm.c queue_arp_failure_cpl(ep, skb, FAKE_CPL_PUT_EP_SAFE); ep 573 drivers/infiniband/hw/cxgb4/cm.c struct c4iw_ep *ep = handle; ep 574 drivers/infiniband/hw/cxgb4/cm.c struct c4iw_rdev *rdev = &ep->com.dev->rdev; ep 582 drivers/infiniband/hw/cxgb4/cm.c __state_set(&ep->com, DEAD); ep 583 drivers/infiniband/hw/cxgb4/cm.c queue_arp_failure_cpl(ep, skb, FAKE_CPL_PUT_EP_SAFE); ep 588 drivers/infiniband/hw/cxgb4/cm.c static int send_flowc(struct c4iw_ep *ep) ep 591 drivers/infiniband/hw/cxgb4/cm.c struct sk_buff *skb = skb_dequeue(&ep->com.ep_skb_list); ep 592 drivers/infiniband/hw/cxgb4/cm.c u16 vlan = ep->l2t->vlan; ep 614 drivers/infiniband/hw/cxgb4/cm.c FW_WR_FLOWID_V(ep->hwtid)); ep 618 drivers/infiniband/hw/cxgb4/cm.c (ep->com.dev->rdev.lldi.pf)); ep 620 drivers/infiniband/hw/cxgb4/cm.c flowc->mnemval[1].val = cpu_to_be32(ep->tx_chan); ep 622 drivers/infiniband/hw/cxgb4/cm.c flowc->mnemval[2].val = cpu_to_be32(ep->tx_chan); ep 624 drivers/infiniband/hw/cxgb4/cm.c flowc->mnemval[3].val = cpu_to_be32(ep->rss_qid); ep 626 drivers/infiniband/hw/cxgb4/cm.c flowc->mnemval[4].val = cpu_to_be32(ep->snd_seq); ep 628 drivers/infiniband/hw/cxgb4/cm.c flowc->mnemval[5].val = cpu_to_be32(ep->rcv_seq); ep 630 drivers/infiniband/hw/cxgb4/cm.c flowc->mnemval[6].val = cpu_to_be32(ep->snd_win); ep 632 drivers/infiniband/hw/cxgb4/cm.c flowc->mnemval[7].val = cpu_to_be32(ep->emss); ep 634 drivers/infiniband/hw/cxgb4/cm.c flowc->mnemval[8].val = cpu_to_be32(ep->snd_wscale); ep 642 drivers/infiniband/hw/cxgb4/cm.c set_wr_txq(skb, CPL_PRIORITY_DATA, ep->txq_idx); ep 643 drivers/infiniband/hw/cxgb4/cm.c return c4iw_ofld_send(&ep->com.dev->rdev, skb); ep 646 drivers/infiniband/hw/cxgb4/cm.c static int send_halfclose(struct c4iw_ep *ep) ep 648 drivers/infiniband/hw/cxgb4/cm.c struct sk_buff *skb = skb_dequeue(&ep->com.ep_skb_list); ep 651 drivers/infiniband/hw/cxgb4/cm.c pr_debug("ep %p tid %u\n", ep, ep->hwtid); ep 655 drivers/infiniband/hw/cxgb4/cm.c cxgb_mk_close_con_req(skb, wrlen, ep->hwtid, ep->txq_idx, ep 658 drivers/infiniband/hw/cxgb4/cm.c return c4iw_l2t_send(&ep->com.dev->rdev, skb, ep->l2t); ep 661 drivers/infiniband/hw/cxgb4/cm.c static void read_tcb(struct c4iw_ep *ep) ep 671 drivers/infiniband/hw/cxgb4/cm.c set_wr_txq(skb, CPL_PRIORITY_CONTROL, ep->ctrlq_idx); ep 674 drivers/infiniband/hw/cxgb4/cm.c INIT_TP_WR(req, ep->hwtid); ep 675 drivers/infiniband/hw/cxgb4/cm.c OPCODE_TID(req) = cpu_to_be32(MK_OPCODE_TID(CPL_GET_TCB, ep->hwtid)); ep 676 drivers/infiniband/hw/cxgb4/cm.c req->reply_ctrl = htons(REPLY_CHAN_V(0) | QUEUENO_V(ep->rss_qid)); ep 682 drivers/infiniband/hw/cxgb4/cm.c c4iw_get_ep(&ep->com); ep 683 drivers/infiniband/hw/cxgb4/cm.c if (WARN_ON(c4iw_ofld_send(&ep->com.dev->rdev, skb))) ep 684 drivers/infiniband/hw/cxgb4/cm.c c4iw_put_ep(&ep->com); ep 687 drivers/infiniband/hw/cxgb4/cm.c static int send_abort_req(struct c4iw_ep *ep) ep 690 drivers/infiniband/hw/cxgb4/cm.c struct sk_buff *req_skb = skb_dequeue(&ep->com.ep_skb_list); ep 692 drivers/infiniband/hw/cxgb4/cm.c pr_debug("ep %p tid %u\n", ep, ep->hwtid); ep 696 drivers/infiniband/hw/cxgb4/cm.c cxgb_mk_abort_req(req_skb, wrlen, ep->hwtid, ep->txq_idx, ep 697 drivers/infiniband/hw/cxgb4/cm.c ep, abort_arp_failure); ep 699 drivers/infiniband/hw/cxgb4/cm.c return c4iw_l2t_send(&ep->com.dev->rdev, req_skb, ep->l2t); ep 702 drivers/infiniband/hw/cxgb4/cm.c static int send_abort(struct c4iw_ep *ep) ep 704 drivers/infiniband/hw/cxgb4/cm.c if (!ep->com.qp || !ep->com.qp->srq) { ep 705 drivers/infiniband/hw/cxgb4/cm.c send_abort_req(ep); ep 708 drivers/infiniband/hw/cxgb4/cm.c set_bit(ABORT_REQ_IN_PROGRESS, &ep->com.flags); ep 709 drivers/infiniband/hw/cxgb4/cm.c read_tcb(ep); ep 713 drivers/infiniband/hw/cxgb4/cm.c static int send_connect(struct c4iw_ep *ep) ep 728 drivers/infiniband/hw/cxgb4/cm.c &ep->com.local_addr; ep 730 drivers/infiniband/hw/cxgb4/cm.c &ep->com.remote_addr; ep 732 drivers/infiniband/hw/cxgb4/cm.c &ep->com.local_addr; ep 734 drivers/infiniband/hw/cxgb4/cm.c &ep->com.remote_addr; ep 736 drivers/infiniband/hw/cxgb4/cm.c enum chip_type adapter_type = ep->com.dev->rdev.lldi.adapter_type; ep 741 drivers/infiniband/hw/cxgb4/cm.c netdev = ep->com.dev->rdev.lldi.ports[0]; ep 762 drivers/infiniband/hw/cxgb4/cm.c wrlen = (ep->com.remote_addr.ss_family == AF_INET) ? ep 766 drivers/infiniband/hw/cxgb4/cm.c pr_debug("ep %p atid %u\n", ep, ep->atid); ep 773 drivers/infiniband/hw/cxgb4/cm.c set_wr_txq(skb, CPL_PRIORITY_SETUP, ep->ctrlq_idx); ep 775 drivers/infiniband/hw/cxgb4/cm.c cxgb_best_mtu(ep->com.dev->rdev.lldi.mtus, ep->mtu, &mtu_idx, ep 777 drivers/infiniband/hw/cxgb4/cm.c (ep->com.remote_addr.ss_family == AF_INET) ? 0 : 1); ep 784 drivers/infiniband/hw/cxgb4/cm.c win = ep->rcv_win >> 10; ep 793 drivers/infiniband/hw/cxgb4/cm.c L2T_IDX_V(ep->l2t->idx) | ep 794 drivers/infiniband/hw/cxgb4/cm.c TX_CHAN_V(ep->tx_chan) | ep 795 drivers/infiniband/hw/cxgb4/cm.c SMAC_SEL_V(ep->smac_idx) | ep 796 drivers/infiniband/hw/cxgb4/cm.c DSCP_V(ep->tos >> 2) | ep 801 drivers/infiniband/hw/cxgb4/cm.c RSS_QUEUE_VALID_F | RSS_QUEUE_V(ep->rss_qid); ep 817 drivers/infiniband/hw/cxgb4/cm.c params = cxgb4_select_ntuple(netdev, ep->l2t); ep 819 drivers/infiniband/hw/cxgb4/cm.c if (ep->com.remote_addr.ss_family == AF_INET6) ep 820 drivers/infiniband/hw/cxgb4/cm.c cxgb4_clip_get(ep->com.dev->rdev.lldi.ports[0], ep 823 drivers/infiniband/hw/cxgb4/cm.c t4_set_arp_err_handler(skb, ep, act_open_req_arp_failure); ep 825 drivers/infiniband/hw/cxgb4/cm.c if (ep->com.remote_addr.ss_family == AF_INET) { ep 850 drivers/infiniband/hw/cxgb4/cm.c ((ep->rss_qid<<14) | ep->atid))); ep 857 drivers/infiniband/hw/cxgb4/cm.c if (is_t4(ep->com.dev->rdev.lldi.adapter_type)) { ep 861 drivers/infiniband/hw/cxgb4/cm.c if (is_t5(ep->com.dev->rdev.lldi.adapter_type)) { ep 900 drivers/infiniband/hw/cxgb4/cm.c ((ep->rss_qid<<14)|ep->atid))); ep 909 drivers/infiniband/hw/cxgb4/cm.c if (is_t4(ep->com.dev->rdev.lldi.adapter_type)) { ep 911 drivers/infiniband/hw/cxgb4/cm.c ep->l2t)); ep 914 drivers/infiniband/hw/cxgb4/cm.c if (is_t5(ep->com.dev->rdev.lldi.adapter_type)) { ep 931 drivers/infiniband/hw/cxgb4/cm.c set_bit(ACT_OPEN_REQ, &ep->com.history); ep 932 drivers/infiniband/hw/cxgb4/cm.c ret = c4iw_l2t_send(&ep->com.dev->rdev, skb, ep->l2t); ep 934 drivers/infiniband/hw/cxgb4/cm.c if (ret && ep->com.remote_addr.ss_family == AF_INET6) ep 935 drivers/infiniband/hw/cxgb4/cm.c cxgb4_clip_release(ep->com.dev->rdev.lldi.ports[0], ep 940 drivers/infiniband/hw/cxgb4/cm.c static int send_mpa_req(struct c4iw_ep *ep, struct sk_buff *skb, ep 949 drivers/infiniband/hw/cxgb4/cm.c ep, ep->hwtid, ep->plen); ep 951 drivers/infiniband/hw/cxgb4/cm.c mpalen = sizeof(*mpa) + ep->plen; ep 957 drivers/infiniband/hw/cxgb4/cm.c connect_reply_upcall(ep, -ENOMEM); ep 960 drivers/infiniband/hw/cxgb4/cm.c set_wr_txq(skb, CPL_PRIORITY_DATA, ep->txq_idx); ep 968 drivers/infiniband/hw/cxgb4/cm.c FW_WR_FLOWID_V(ep->hwtid) | ep 983 drivers/infiniband/hw/cxgb4/cm.c ep->mpa_attr.recv_marker_enabled = 1; ep 985 drivers/infiniband/hw/cxgb4/cm.c ep->mpa_attr.recv_marker_enabled = 0; ep 990 drivers/infiniband/hw/cxgb4/cm.c mpa->private_data_size = htons(ep->plen); ep 993 drivers/infiniband/hw/cxgb4/cm.c ep->tried_with_mpa_v1 = 1; ep 994 drivers/infiniband/hw/cxgb4/cm.c ep->retry_with_mpa_v1 = 0; ep 1001 drivers/infiniband/hw/cxgb4/cm.c pr_debug("initiator ird %u ord %u\n", ep->ird, ep 1002 drivers/infiniband/hw/cxgb4/cm.c ep->ord); ep 1003 drivers/infiniband/hw/cxgb4/cm.c mpa_v2_params.ird = htons((u16)ep->ird); ep 1004 drivers/infiniband/hw/cxgb4/cm.c mpa_v2_params.ord = htons((u16)ep->ord); ep 1018 drivers/infiniband/hw/cxgb4/cm.c if (ep->plen) ep 1021 drivers/infiniband/hw/cxgb4/cm.c ep->mpa_pkt + sizeof(*mpa), ep->plen); ep 1023 drivers/infiniband/hw/cxgb4/cm.c if (ep->plen) ep 1025 drivers/infiniband/hw/cxgb4/cm.c ep->mpa_pkt + sizeof(*mpa), ep->plen); ep 1034 drivers/infiniband/hw/cxgb4/cm.c ep->mpa_skb = skb; ep 1035 drivers/infiniband/hw/cxgb4/cm.c ret = c4iw_l2t_send(&ep->com.dev->rdev, skb, ep->l2t); ep 1038 drivers/infiniband/hw/cxgb4/cm.c start_ep_timer(ep); ep 1039 drivers/infiniband/hw/cxgb4/cm.c __state_set(&ep->com, MPA_REQ_SENT); ep 1040 drivers/infiniband/hw/cxgb4/cm.c ep->mpa_attr.initiator = 1; ep 1041 drivers/infiniband/hw/cxgb4/cm.c ep->snd_seq += mpalen; ep 1045 drivers/infiniband/hw/cxgb4/cm.c static int send_mpa_reject(struct c4iw_ep *ep, const void *pdata, u8 plen) ep 1054 drivers/infiniband/hw/cxgb4/cm.c ep, ep->hwtid, ep->plen); ep 1057 drivers/infiniband/hw/cxgb4/cm.c if (ep->mpa_attr.version == 2 && ep->mpa_attr.enhanced_rdma_conn) ep 1066 drivers/infiniband/hw/cxgb4/cm.c set_wr_txq(skb, CPL_PRIORITY_DATA, ep->txq_idx); ep 1074 drivers/infiniband/hw/cxgb4/cm.c FW_WR_FLOWID_V(ep->hwtid) | ep 1085 drivers/infiniband/hw/cxgb4/cm.c mpa->revision = ep->mpa_attr.version; ep 1088 drivers/infiniband/hw/cxgb4/cm.c if (ep->mpa_attr.version == 2 && ep->mpa_attr.enhanced_rdma_conn) { ep 1093 drivers/infiniband/hw/cxgb4/cm.c mpa_v2_params.ird = htons(((u16)ep->ird) | ep 1096 drivers/infiniband/hw/cxgb4/cm.c mpa_v2_params.ord = htons(((u16)ep->ord) | (peer2peer ? ep 1105 drivers/infiniband/hw/cxgb4/cm.c if (ep->plen) ep 1118 drivers/infiniband/hw/cxgb4/cm.c set_wr_txq(skb, CPL_PRIORITY_DATA, ep->txq_idx); ep 1120 drivers/infiniband/hw/cxgb4/cm.c ep->mpa_skb = skb; ep 1121 drivers/infiniband/hw/cxgb4/cm.c ep->snd_seq += mpalen; ep 1122 drivers/infiniband/hw/cxgb4/cm.c return c4iw_l2t_send(&ep->com.dev->rdev, skb, ep->l2t); ep 1125 drivers/infiniband/hw/cxgb4/cm.c static int send_mpa_reply(struct c4iw_ep *ep, const void *pdata, u8 plen) ep 1134 drivers/infiniband/hw/cxgb4/cm.c ep, ep->hwtid, ep->plen); ep 1137 drivers/infiniband/hw/cxgb4/cm.c if (ep->mpa_attr.version == 2 && ep->mpa_attr.enhanced_rdma_conn) ep 1146 drivers/infiniband/hw/cxgb4/cm.c set_wr_txq(skb, CPL_PRIORITY_DATA, ep->txq_idx); ep 1154 drivers/infiniband/hw/cxgb4/cm.c FW_WR_FLOWID_V(ep->hwtid) | ep 1165 drivers/infiniband/hw/cxgb4/cm.c if (ep->mpa_attr.crc_enabled) ep 1167 drivers/infiniband/hw/cxgb4/cm.c if (ep->mpa_attr.recv_marker_enabled) ep 1169 drivers/infiniband/hw/cxgb4/cm.c mpa->revision = ep->mpa_attr.version; ep 1172 drivers/infiniband/hw/cxgb4/cm.c if (ep->mpa_attr.version == 2 && ep->mpa_attr.enhanced_rdma_conn) { ep 1177 drivers/infiniband/hw/cxgb4/cm.c mpa_v2_params.ird = htons((u16)ep->ird); ep 1178 drivers/infiniband/hw/cxgb4/cm.c mpa_v2_params.ord = htons((u16)ep->ord); ep 1179 drivers/infiniband/hw/cxgb4/cm.c if (peer2peer && (ep->mpa_attr.p2p_type != ep 1194 drivers/infiniband/hw/cxgb4/cm.c if (ep->plen) ep 1208 drivers/infiniband/hw/cxgb4/cm.c ep->mpa_skb = skb; ep 1209 drivers/infiniband/hw/cxgb4/cm.c __state_set(&ep->com, MPA_REP_SENT); ep 1210 drivers/infiniband/hw/cxgb4/cm.c ep->snd_seq += mpalen; ep 1211 drivers/infiniband/hw/cxgb4/cm.c return c4iw_l2t_send(&ep->com.dev->rdev, skb, ep->l2t); ep 1216 drivers/infiniband/hw/cxgb4/cm.c struct c4iw_ep *ep; ep 1224 drivers/infiniband/hw/cxgb4/cm.c ep = lookup_atid(t, atid); ep 1226 drivers/infiniband/hw/cxgb4/cm.c pr_debug("ep %p tid %u snd_isn %u rcv_isn %u\n", ep, tid, ep 1229 drivers/infiniband/hw/cxgb4/cm.c mutex_lock(&ep->com.mutex); ep 1230 drivers/infiniband/hw/cxgb4/cm.c dst_confirm(ep->dst); ep 1233 drivers/infiniband/hw/cxgb4/cm.c ep->hwtid = tid; ep 1234 drivers/infiniband/hw/cxgb4/cm.c cxgb4_insert_tid(t, ep, tid, ep->com.local_addr.ss_family); ep 1235 drivers/infiniband/hw/cxgb4/cm.c insert_ep_tid(ep); ep 1237 drivers/infiniband/hw/cxgb4/cm.c ep->snd_seq = be32_to_cpu(req->snd_isn); ep 1238 drivers/infiniband/hw/cxgb4/cm.c ep->rcv_seq = be32_to_cpu(req->rcv_isn); ep 1239 drivers/infiniband/hw/cxgb4/cm.c ep->snd_wscale = TCPOPT_SND_WSCALE_G(tcp_opt); ep 1241 drivers/infiniband/hw/cxgb4/cm.c set_emss(ep, tcp_opt); ep 1244 drivers/infiniband/hw/cxgb4/cm.c xa_erase_irq(&ep->com.dev->atids, atid); ep 1246 drivers/infiniband/hw/cxgb4/cm.c set_bit(ACT_ESTAB, &ep->com.history); ep 1249 drivers/infiniband/hw/cxgb4/cm.c ret = send_flowc(ep); ep 1252 drivers/infiniband/hw/cxgb4/cm.c if (ep->retry_with_mpa_v1) ep 1253 drivers/infiniband/hw/cxgb4/cm.c ret = send_mpa_req(ep, skb, 1); ep 1255 drivers/infiniband/hw/cxgb4/cm.c ret = send_mpa_req(ep, skb, mpa_rev); ep 1258 drivers/infiniband/hw/cxgb4/cm.c mutex_unlock(&ep->com.mutex); ep 1261 drivers/infiniband/hw/cxgb4/cm.c mutex_unlock(&ep->com.mutex); ep 1262 drivers/infiniband/hw/cxgb4/cm.c connect_reply_upcall(ep, -ENOMEM); ep 1263 drivers/infiniband/hw/cxgb4/cm.c c4iw_ep_disconnect(ep, 0, GFP_KERNEL); ep 1267 drivers/infiniband/hw/cxgb4/cm.c static void close_complete_upcall(struct c4iw_ep *ep, int status) ep 1271 drivers/infiniband/hw/cxgb4/cm.c pr_debug("ep %p tid %u\n", ep, ep->hwtid); ep 1275 drivers/infiniband/hw/cxgb4/cm.c if (ep->com.cm_id) { ep 1277 drivers/infiniband/hw/cxgb4/cm.c ep, ep->com.cm_id, ep->hwtid); ep 1278 drivers/infiniband/hw/cxgb4/cm.c ep->com.cm_id->event_handler(ep->com.cm_id, &event); ep 1279 drivers/infiniband/hw/cxgb4/cm.c deref_cm_id(&ep->com); ep 1280 drivers/infiniband/hw/cxgb4/cm.c set_bit(CLOSE_UPCALL, &ep->com.history); ep 1284 drivers/infiniband/hw/cxgb4/cm.c static void peer_close_upcall(struct c4iw_ep *ep) ep 1288 drivers/infiniband/hw/cxgb4/cm.c pr_debug("ep %p tid %u\n", ep, ep->hwtid); ep 1291 drivers/infiniband/hw/cxgb4/cm.c if (ep->com.cm_id) { ep 1293 drivers/infiniband/hw/cxgb4/cm.c ep, ep->com.cm_id, ep->hwtid); ep 1294 drivers/infiniband/hw/cxgb4/cm.c ep->com.cm_id->event_handler(ep->com.cm_id, &event); ep 1295 drivers/infiniband/hw/cxgb4/cm.c set_bit(DISCONN_UPCALL, &ep->com.history); ep 1299 drivers/infiniband/hw/cxgb4/cm.c static void peer_abort_upcall(struct c4iw_ep *ep) ep 1303 drivers/infiniband/hw/cxgb4/cm.c pr_debug("ep %p tid %u\n", ep, ep->hwtid); ep 1307 drivers/infiniband/hw/cxgb4/cm.c if (ep->com.cm_id) { ep 1308 drivers/infiniband/hw/cxgb4/cm.c pr_debug("abort delivered ep %p cm_id %p tid %u\n", ep, ep 1309 drivers/infiniband/hw/cxgb4/cm.c ep->com.cm_id, ep->hwtid); ep 1310 drivers/infiniband/hw/cxgb4/cm.c ep->com.cm_id->event_handler(ep->com.cm_id, &event); ep 1311 drivers/infiniband/hw/cxgb4/cm.c deref_cm_id(&ep->com); ep 1312 drivers/infiniband/hw/cxgb4/cm.c set_bit(ABORT_UPCALL, &ep->com.history); ep 1316 drivers/infiniband/hw/cxgb4/cm.c static void connect_reply_upcall(struct c4iw_ep *ep, int status) ep 1321 drivers/infiniband/hw/cxgb4/cm.c ep, ep->hwtid, status); ep 1325 drivers/infiniband/hw/cxgb4/cm.c memcpy(&event.local_addr, &ep->com.local_addr, ep 1326 drivers/infiniband/hw/cxgb4/cm.c sizeof(ep->com.local_addr)); ep 1327 drivers/infiniband/hw/cxgb4/cm.c memcpy(&event.remote_addr, &ep->com.remote_addr, ep 1328 drivers/infiniband/hw/cxgb4/cm.c sizeof(ep->com.remote_addr)); ep 1331 drivers/infiniband/hw/cxgb4/cm.c if (!ep->tried_with_mpa_v1) { ep 1333 drivers/infiniband/hw/cxgb4/cm.c event.ord = ep->ird; ep 1334 drivers/infiniband/hw/cxgb4/cm.c event.ird = ep->ord; ep 1335 drivers/infiniband/hw/cxgb4/cm.c event.private_data_len = ep->plen - ep 1337 drivers/infiniband/hw/cxgb4/cm.c event.private_data = ep->mpa_pkt + ep 1342 drivers/infiniband/hw/cxgb4/cm.c event.ord = cur_max_read_depth(ep->com.dev); ep 1343 drivers/infiniband/hw/cxgb4/cm.c event.ird = cur_max_read_depth(ep->com.dev); ep 1344 drivers/infiniband/hw/cxgb4/cm.c event.private_data_len = ep->plen; ep 1345 drivers/infiniband/hw/cxgb4/cm.c event.private_data = ep->mpa_pkt + ep 1350 drivers/infiniband/hw/cxgb4/cm.c pr_debug("ep %p tid %u status %d\n", ep, ep 1351 drivers/infiniband/hw/cxgb4/cm.c ep->hwtid, status); ep 1352 drivers/infiniband/hw/cxgb4/cm.c set_bit(CONN_RPL_UPCALL, &ep->com.history); ep 1353 drivers/infiniband/hw/cxgb4/cm.c ep->com.cm_id->event_handler(ep->com.cm_id, &event); ep 1356 drivers/infiniband/hw/cxgb4/cm.c deref_cm_id(&ep->com); ep 1359 drivers/infiniband/hw/cxgb4/cm.c static int connect_request_upcall(struct c4iw_ep *ep) ep 1364 drivers/infiniband/hw/cxgb4/cm.c pr_debug("ep %p tid %u\n", ep, ep->hwtid); ep 1367 drivers/infiniband/hw/cxgb4/cm.c memcpy(&event.local_addr, &ep->com.local_addr, ep 1368 drivers/infiniband/hw/cxgb4/cm.c sizeof(ep->com.local_addr)); ep 1369 drivers/infiniband/hw/cxgb4/cm.c memcpy(&event.remote_addr, &ep->com.remote_addr, ep 1370 drivers/infiniband/hw/cxgb4/cm.c sizeof(ep->com.remote_addr)); ep 1371 drivers/infiniband/hw/cxgb4/cm.c event.provider_data = ep; ep 1372 drivers/infiniband/hw/cxgb4/cm.c if (!ep->tried_with_mpa_v1) { ep 1374 drivers/infiniband/hw/cxgb4/cm.c event.ord = ep->ord; ep 1375 drivers/infiniband/hw/cxgb4/cm.c event.ird = ep->ird; ep 1376 drivers/infiniband/hw/cxgb4/cm.c event.private_data_len = ep->plen - ep 1378 drivers/infiniband/hw/cxgb4/cm.c event.private_data = ep->mpa_pkt + sizeof(struct mpa_message) + ep 1382 drivers/infiniband/hw/cxgb4/cm.c event.ord = cur_max_read_depth(ep->com.dev); ep 1383 drivers/infiniband/hw/cxgb4/cm.c event.ird = cur_max_read_depth(ep->com.dev); ep 1384 drivers/infiniband/hw/cxgb4/cm.c event.private_data_len = ep->plen; ep 1385 drivers/infiniband/hw/cxgb4/cm.c event.private_data = ep->mpa_pkt + sizeof(struct mpa_message); ep 1387 drivers/infiniband/hw/cxgb4/cm.c c4iw_get_ep(&ep->com); ep 1388 drivers/infiniband/hw/cxgb4/cm.c ret = ep->parent_ep->com.cm_id->event_handler(ep->parent_ep->com.cm_id, ep 1391 drivers/infiniband/hw/cxgb4/cm.c c4iw_put_ep(&ep->com); ep 1392 drivers/infiniband/hw/cxgb4/cm.c set_bit(CONNREQ_UPCALL, &ep->com.history); ep 1393 drivers/infiniband/hw/cxgb4/cm.c c4iw_put_ep(&ep->parent_ep->com); ep 1397 drivers/infiniband/hw/cxgb4/cm.c static void established_upcall(struct c4iw_ep *ep) ep 1401 drivers/infiniband/hw/cxgb4/cm.c pr_debug("ep %p tid %u\n", ep, ep->hwtid); ep 1404 drivers/infiniband/hw/cxgb4/cm.c event.ird = ep->ord; ep 1405 drivers/infiniband/hw/cxgb4/cm.c event.ord = ep->ird; ep 1406 drivers/infiniband/hw/cxgb4/cm.c if (ep->com.cm_id) { ep 1407 drivers/infiniband/hw/cxgb4/cm.c pr_debug("ep %p tid %u\n", ep, ep->hwtid); ep 1408 drivers/infiniband/hw/cxgb4/cm.c ep->com.cm_id->event_handler(ep->com.cm_id, &event); ep 1409 drivers/infiniband/hw/cxgb4/cm.c set_bit(ESTAB_UPCALL, &ep->com.history); ep 1413 drivers/infiniband/hw/cxgb4/cm.c static int update_rx_credits(struct c4iw_ep *ep, u32 credits) ep 1420 drivers/infiniband/hw/cxgb4/cm.c ep, ep->hwtid, credits); ep 1432 drivers/infiniband/hw/cxgb4/cm.c if (ep->rcv_win > RCV_BUFSIZ_M * 1024) ep 1433 drivers/infiniband/hw/cxgb4/cm.c credits += ep->rcv_win - RCV_BUFSIZ_M * 1024; ep 1438 drivers/infiniband/hw/cxgb4/cm.c cxgb_mk_rx_data_ack(skb, wrlen, ep->hwtid, ep->ctrlq_idx, ep 1441 drivers/infiniband/hw/cxgb4/cm.c c4iw_ofld_send(&ep->com.dev->rdev, skb); ep 1459 drivers/infiniband/hw/cxgb4/cm.c static int process_mpa_reply(struct c4iw_ep *ep, struct sk_buff *skb) ep 1471 drivers/infiniband/hw/cxgb4/cm.c pr_debug("ep %p tid %u\n", ep, ep->hwtid); ep 1477 drivers/infiniband/hw/cxgb4/cm.c if (ep->mpa_pkt_len + skb->len > sizeof(ep->mpa_pkt)) { ep 1485 drivers/infiniband/hw/cxgb4/cm.c skb_copy_from_linear_data(skb, &(ep->mpa_pkt[ep->mpa_pkt_len]), ep 1487 drivers/infiniband/hw/cxgb4/cm.c ep->mpa_pkt_len += skb->len; ep 1492 drivers/infiniband/hw/cxgb4/cm.c if (ep->mpa_pkt_len < sizeof(*mpa)) ep 1494 drivers/infiniband/hw/cxgb4/cm.c mpa = (struct mpa_message *) ep->mpa_pkt; ep 1521 drivers/infiniband/hw/cxgb4/cm.c if (ep->mpa_pkt_len > (sizeof(*mpa) + plen)) { ep 1526 drivers/infiniband/hw/cxgb4/cm.c ep->plen = (u8) plen; ep 1532 drivers/infiniband/hw/cxgb4/cm.c if (ep->mpa_pkt_len < (sizeof(*mpa) + plen)) ep 1545 drivers/infiniband/hw/cxgb4/cm.c if (stop_ep_timer(ep)) ep 1553 drivers/infiniband/hw/cxgb4/cm.c __state_set(&ep->com, FPDU_MODE); ep 1554 drivers/infiniband/hw/cxgb4/cm.c ep->mpa_attr.crc_enabled = (mpa->flags & MPA_CRC) | crc_enabled ? 1 : 0; ep 1555 drivers/infiniband/hw/cxgb4/cm.c ep->mpa_attr.xmit_marker_enabled = mpa->flags & MPA_MARKERS ? 1 : 0; ep 1556 drivers/infiniband/hw/cxgb4/cm.c ep->mpa_attr.version = mpa->revision; ep 1557 drivers/infiniband/hw/cxgb4/cm.c ep->mpa_attr.p2p_type = FW_RI_INIT_P2PTYPE_DISABLED; ep 1560 drivers/infiniband/hw/cxgb4/cm.c ep->mpa_attr.enhanced_rdma_conn = ep 1562 drivers/infiniband/hw/cxgb4/cm.c if (ep->mpa_attr.enhanced_rdma_conn) { ep 1564 drivers/infiniband/hw/cxgb4/cm.c (ep->mpa_pkt + sizeof(*mpa)); ep 1570 drivers/infiniband/hw/cxgb4/cm.c resp_ird, resp_ord, ep->ird, ep->ord); ep 1577 drivers/infiniband/hw/cxgb4/cm.c if (ep->ird < resp_ord) { ep 1579 drivers/infiniband/hw/cxgb4/cm.c ep->com.dev->rdev.lldi.max_ordird_qp) ep 1580 drivers/infiniband/hw/cxgb4/cm.c ep->ird = resp_ord; ep 1583 drivers/infiniband/hw/cxgb4/cm.c } else if (ep->ird > resp_ord) { ep 1584 drivers/infiniband/hw/cxgb4/cm.c ep->ird = resp_ord; ep 1586 drivers/infiniband/hw/cxgb4/cm.c if (ep->ord > resp_ird) { ep 1588 drivers/infiniband/hw/cxgb4/cm.c ep->ord = resp_ird; ep 1594 drivers/infiniband/hw/cxgb4/cm.c ep->ird = resp_ord; ep 1595 drivers/infiniband/hw/cxgb4/cm.c ep->ord = resp_ird; ep 1602 drivers/infiniband/hw/cxgb4/cm.c ep->mpa_attr.p2p_type = ep 1606 drivers/infiniband/hw/cxgb4/cm.c ep->mpa_attr.p2p_type = ep 1612 drivers/infiniband/hw/cxgb4/cm.c ep->mpa_attr.p2p_type = p2p_type; ep 1615 drivers/infiniband/hw/cxgb4/cm.c ep->mpa_attr.crc_enabled, ep 1616 drivers/infiniband/hw/cxgb4/cm.c ep->mpa_attr.recv_marker_enabled, ep 1617 drivers/infiniband/hw/cxgb4/cm.c ep->mpa_attr.xmit_marker_enabled, ep->mpa_attr.version, ep 1618 drivers/infiniband/hw/cxgb4/cm.c ep->mpa_attr.p2p_type, p2p_type); ep 1626 drivers/infiniband/hw/cxgb4/cm.c if ((ep->mpa_attr.version == 2) && peer2peer && ep 1627 drivers/infiniband/hw/cxgb4/cm.c (ep->mpa_attr.p2p_type != p2p_type)) { ep 1628 drivers/infiniband/hw/cxgb4/cm.c ep->mpa_attr.p2p_type = FW_RI_INIT_P2PTYPE_DISABLED; ep 1632 drivers/infiniband/hw/cxgb4/cm.c attrs.mpa_attr = ep->mpa_attr; ep 1633 drivers/infiniband/hw/cxgb4/cm.c attrs.max_ird = ep->ird; ep 1634 drivers/infiniband/hw/cxgb4/cm.c attrs.max_ord = ep->ord; ep 1635 drivers/infiniband/hw/cxgb4/cm.c attrs.llp_stream_handle = ep; ep 1643 drivers/infiniband/hw/cxgb4/cm.c err = c4iw_modify_qp(ep->com.qp->rhp, ep 1644 drivers/infiniband/hw/cxgb4/cm.c ep->com.qp, mask, &attrs, 1); ep 1658 drivers/infiniband/hw/cxgb4/cm.c err = c4iw_modify_qp(ep->com.qp->rhp, ep->com.qp, ep 1677 drivers/infiniband/hw/cxgb4/cm.c err = c4iw_modify_qp(ep->com.qp->rhp, ep->com.qp, ep 1685 drivers/infiniband/hw/cxgb4/cm.c stop_ep_timer(ep); ep 1689 drivers/infiniband/hw/cxgb4/cm.c connect_reply_upcall(ep, err); ep 1705 drivers/infiniband/hw/cxgb4/cm.c static int process_mpa_request(struct c4iw_ep *ep, struct sk_buff *skb) ep 1711 drivers/infiniband/hw/cxgb4/cm.c pr_debug("ep %p tid %u\n", ep, ep->hwtid); ep 1717 drivers/infiniband/hw/cxgb4/cm.c if (ep->mpa_pkt_len + skb->len > sizeof(ep->mpa_pkt)) ep 1725 drivers/infiniband/hw/cxgb4/cm.c skb_copy_from_linear_data(skb, &(ep->mpa_pkt[ep->mpa_pkt_len]), ep 1727 drivers/infiniband/hw/cxgb4/cm.c ep->mpa_pkt_len += skb->len; ep 1733 drivers/infiniband/hw/cxgb4/cm.c if (ep->mpa_pkt_len < sizeof(*mpa)) ep 1737 drivers/infiniband/hw/cxgb4/cm.c mpa = (struct mpa_message *) ep->mpa_pkt; ep 1762 drivers/infiniband/hw/cxgb4/cm.c if (ep->mpa_pkt_len > (sizeof(*mpa) + plen)) ep 1764 drivers/infiniband/hw/cxgb4/cm.c ep->plen = (u8) plen; ep 1769 drivers/infiniband/hw/cxgb4/cm.c if (ep->mpa_pkt_len < (sizeof(*mpa) + plen)) ep 1776 drivers/infiniband/hw/cxgb4/cm.c ep->mpa_attr.initiator = 0; ep 1777 drivers/infiniband/hw/cxgb4/cm.c ep->mpa_attr.crc_enabled = (mpa->flags & MPA_CRC) | crc_enabled ? 1 : 0; ep 1778 drivers/infiniband/hw/cxgb4/cm.c ep->mpa_attr.recv_marker_enabled = markers_enabled; ep 1779 drivers/infiniband/hw/cxgb4/cm.c ep->mpa_attr.xmit_marker_enabled = mpa->flags & MPA_MARKERS ? 1 : 0; ep 1780 drivers/infiniband/hw/cxgb4/cm.c ep->mpa_attr.version = mpa->revision; ep 1782 drivers/infiniband/hw/cxgb4/cm.c ep->tried_with_mpa_v1 = 1; ep 1783 drivers/infiniband/hw/cxgb4/cm.c ep->mpa_attr.p2p_type = FW_RI_INIT_P2PTYPE_DISABLED; ep 1786 drivers/infiniband/hw/cxgb4/cm.c ep->mpa_attr.enhanced_rdma_conn = ep 1788 drivers/infiniband/hw/cxgb4/cm.c if (ep->mpa_attr.enhanced_rdma_conn) { ep 1790 drivers/infiniband/hw/cxgb4/cm.c (ep->mpa_pkt + sizeof(*mpa)); ep 1791 drivers/infiniband/hw/cxgb4/cm.c ep->ird = ntohs(mpa_v2_params->ird) & ep 1793 drivers/infiniband/hw/cxgb4/cm.c ep->ird = min_t(u32, ep->ird, ep 1794 drivers/infiniband/hw/cxgb4/cm.c cur_max_read_depth(ep->com.dev)); ep 1795 drivers/infiniband/hw/cxgb4/cm.c ep->ord = ntohs(mpa_v2_params->ord) & ep 1797 drivers/infiniband/hw/cxgb4/cm.c ep->ord = min_t(u32, ep->ord, ep 1798 drivers/infiniband/hw/cxgb4/cm.c cur_max_read_depth(ep->com.dev)); ep 1800 drivers/infiniband/hw/cxgb4/cm.c ep->ird, ep->ord); ep 1805 drivers/infiniband/hw/cxgb4/cm.c ep->mpa_attr.p2p_type = ep 1809 drivers/infiniband/hw/cxgb4/cm.c ep->mpa_attr.p2p_type = ep 1815 drivers/infiniband/hw/cxgb4/cm.c ep->mpa_attr.p2p_type = p2p_type; ep 1818 drivers/infiniband/hw/cxgb4/cm.c ep->mpa_attr.crc_enabled, ep->mpa_attr.recv_marker_enabled, ep 1819 drivers/infiniband/hw/cxgb4/cm.c ep->mpa_attr.xmit_marker_enabled, ep->mpa_attr.version, ep 1820 drivers/infiniband/hw/cxgb4/cm.c ep->mpa_attr.p2p_type); ep 1822 drivers/infiniband/hw/cxgb4/cm.c __state_set(&ep->com, MPA_REQ_RCVD); ep 1825 drivers/infiniband/hw/cxgb4/cm.c mutex_lock_nested(&ep->parent_ep->com.mutex, SINGLE_DEPTH_NESTING); ep 1826 drivers/infiniband/hw/cxgb4/cm.c if (ep->parent_ep->com.state != DEAD) { ep 1827 drivers/infiniband/hw/cxgb4/cm.c if (connect_request_upcall(ep)) ep 1832 drivers/infiniband/hw/cxgb4/cm.c mutex_unlock(&ep->parent_ep->com.mutex); ep 1836 drivers/infiniband/hw/cxgb4/cm.c mutex_unlock(&ep->parent_ep->com.mutex); ep 1839 drivers/infiniband/hw/cxgb4/cm.c (void)stop_ep_timer(ep); ep 1846 drivers/infiniband/hw/cxgb4/cm.c struct c4iw_ep *ep; ep 1853 drivers/infiniband/hw/cxgb4/cm.c ep = get_ep_from_tid(dev, tid); ep 1854 drivers/infiniband/hw/cxgb4/cm.c if (!ep) ep 1856 drivers/infiniband/hw/cxgb4/cm.c pr_debug("ep %p tid %u dlen %u\n", ep, ep->hwtid, dlen); ep 1859 drivers/infiniband/hw/cxgb4/cm.c mutex_lock(&ep->com.mutex); ep 1861 drivers/infiniband/hw/cxgb4/cm.c switch (ep->com.state) { ep 1863 drivers/infiniband/hw/cxgb4/cm.c update_rx_credits(ep, dlen); ep 1864 drivers/infiniband/hw/cxgb4/cm.c ep->rcv_seq += dlen; ep 1865 drivers/infiniband/hw/cxgb4/cm.c disconnect = process_mpa_reply(ep, skb); ep 1868 drivers/infiniband/hw/cxgb4/cm.c update_rx_credits(ep, dlen); ep 1869 drivers/infiniband/hw/cxgb4/cm.c ep->rcv_seq += dlen; ep 1870 drivers/infiniband/hw/cxgb4/cm.c disconnect = process_mpa_request(ep, skb); ep 1875 drivers/infiniband/hw/cxgb4/cm.c update_rx_credits(ep, dlen); ep 1879 drivers/infiniband/hw/cxgb4/cm.c __func__, ep->com.qp->wq.sq.qid, ep, ep 1880 drivers/infiniband/hw/cxgb4/cm.c ep->com.state, ep->hwtid, status); ep 1882 drivers/infiniband/hw/cxgb4/cm.c c4iw_modify_qp(ep->com.qp->rhp, ep->com.qp, ep 1890 drivers/infiniband/hw/cxgb4/cm.c mutex_unlock(&ep->com.mutex); ep 1892 drivers/infiniband/hw/cxgb4/cm.c c4iw_ep_disconnect(ep, disconnect == 2, GFP_KERNEL); ep 1893 drivers/infiniband/hw/cxgb4/cm.c c4iw_put_ep(&ep->com); ep 1897 drivers/infiniband/hw/cxgb4/cm.c static void complete_cached_srq_buffers(struct c4iw_ep *ep, u32 srqidx) ep 1901 drivers/infiniband/hw/cxgb4/cm.c adapter_type = ep->com.dev->rdev.lldi.adapter_type; ep 1910 drivers/infiniband/hw/cxgb4/cm.c if (ep->com.qp->ibqp.uobject) ep 1911 drivers/infiniband/hw/cxgb4/cm.c t4_set_wq_in_error(&ep->com.qp->wq, srqidx); ep 1913 drivers/infiniband/hw/cxgb4/cm.c c4iw_flush_srqidx(ep->com.qp, srqidx); ep 1920 drivers/infiniband/hw/cxgb4/cm.c struct c4iw_ep *ep; ep 1925 drivers/infiniband/hw/cxgb4/cm.c ep = get_ep_from_tid(dev, tid); ep 1926 drivers/infiniband/hw/cxgb4/cm.c if (!ep) { ep 1931 drivers/infiniband/hw/cxgb4/cm.c if (ep->com.qp && ep->com.qp->srq) { ep 1933 drivers/infiniband/hw/cxgb4/cm.c complete_cached_srq_buffers(ep, srqidx ? srqidx : ep->srqe_idx); ep 1936 drivers/infiniband/hw/cxgb4/cm.c pr_debug("ep %p tid %u\n", ep, ep->hwtid); ep 1937 drivers/infiniband/hw/cxgb4/cm.c mutex_lock(&ep->com.mutex); ep 1938 drivers/infiniband/hw/cxgb4/cm.c switch (ep->com.state) { ep 1940 drivers/infiniband/hw/cxgb4/cm.c c4iw_wake_up_noref(ep->com.wr_waitp, -ECONNRESET); ep 1941 drivers/infiniband/hw/cxgb4/cm.c __state_set(&ep->com, DEAD); ep 1945 drivers/infiniband/hw/cxgb4/cm.c pr_err("%s ep %p state %d\n", __func__, ep, ep->com.state); ep 1948 drivers/infiniband/hw/cxgb4/cm.c mutex_unlock(&ep->com.mutex); ep 1951 drivers/infiniband/hw/cxgb4/cm.c close_complete_upcall(ep, -ECONNRESET); ep 1952 drivers/infiniband/hw/cxgb4/cm.c release_ep_resources(ep); ep 1954 drivers/infiniband/hw/cxgb4/cm.c c4iw_put_ep(&ep->com); ep 1958 drivers/infiniband/hw/cxgb4/cm.c static int send_fw_act_open_req(struct c4iw_ep *ep, unsigned int atid) ep 1972 drivers/infiniband/hw/cxgb4/cm.c ep->com.dev->rdev.lldi.ports[0], ep 1973 drivers/infiniband/hw/cxgb4/cm.c ep->l2t)); ep 1974 drivers/infiniband/hw/cxgb4/cm.c sin = (struct sockaddr_in *)&ep->com.local_addr; ep 1977 drivers/infiniband/hw/cxgb4/cm.c sin = (struct sockaddr_in *)&ep->com.remote_addr; ep 1987 drivers/infiniband/hw/cxgb4/cm.c cxgb_best_mtu(ep->com.dev->rdev.lldi.mtus, ep->mtu, &mtu_idx, ep 1989 drivers/infiniband/hw/cxgb4/cm.c (ep->com.remote_addr.ss_family == AF_INET) ? 0 : 1); ep 1996 drivers/infiniband/hw/cxgb4/cm.c win = ep->rcv_win >> 10; ep 2006 drivers/infiniband/hw/cxgb4/cm.c L2T_IDX_V(ep->l2t->idx) | ep 2007 drivers/infiniband/hw/cxgb4/cm.c TX_CHAN_V(ep->tx_chan) | ep 2008 drivers/infiniband/hw/cxgb4/cm.c SMAC_SEL_V(ep->smac_idx) | ep 2009 drivers/infiniband/hw/cxgb4/cm.c DSCP_V(ep->tos >> 2) | ep 2013 drivers/infiniband/hw/cxgb4/cm.c TX_QUEUE_V(ep->com.dev->rdev.lldi.tx_modq[ep->tx_chan]) | ep 2016 drivers/infiniband/hw/cxgb4/cm.c RSS_QUEUE_VALID_F | RSS_QUEUE_V(ep->rss_qid)); ep 2025 drivers/infiniband/hw/cxgb4/cm.c set_wr_txq(skb, CPL_PRIORITY_CONTROL, ep->ctrlq_idx); ep 2026 drivers/infiniband/hw/cxgb4/cm.c set_bit(ACT_OFLD_CONN, &ep->com.history); ep 2027 drivers/infiniband/hw/cxgb4/cm.c return c4iw_l2t_send(&ep->com.dev->rdev, skb, ep->l2t); ep 2058 drivers/infiniband/hw/cxgb4/cm.c static void set_tcp_window(struct c4iw_ep *ep, struct port_info *pi) ep 2060 drivers/infiniband/hw/cxgb4/cm.c ep->snd_win = snd_win; ep 2061 drivers/infiniband/hw/cxgb4/cm.c ep->rcv_win = rcv_win; ep 2063 drivers/infiniband/hw/cxgb4/cm.c ep->snd_win, ep->rcv_win); ep 2068 drivers/infiniband/hw/cxgb4/cm.c static int import_ep(struct c4iw_ep *ep, int iptype, __u8 *peer_ip, ep 2099 drivers/infiniband/hw/cxgb4/cm.c ep->l2t = cxgb4_l2t_get(cdev->rdev.lldi.l2t, ep 2101 drivers/infiniband/hw/cxgb4/cm.c if (!ep->l2t) { ep 2105 drivers/infiniband/hw/cxgb4/cm.c ep->mtu = pdev->mtu; ep 2106 drivers/infiniband/hw/cxgb4/cm.c ep->tx_chan = cxgb4_port_chan(pdev); ep 2107 drivers/infiniband/hw/cxgb4/cm.c ep->smac_idx = ((struct port_info *)netdev_priv(pdev))->smt_idx; ep 2110 drivers/infiniband/hw/cxgb4/cm.c ep->txq_idx = cxgb4_port_idx(pdev) * step; ep 2113 drivers/infiniband/hw/cxgb4/cm.c ep->ctrlq_idx = cxgb4_port_idx(pdev); ep 2114 drivers/infiniband/hw/cxgb4/cm.c ep->rss_qid = cdev->rdev.lldi.rxq_ids[ ep 2116 drivers/infiniband/hw/cxgb4/cm.c set_tcp_window(ep, (struct port_info *)netdev_priv(pdev)); ep 2120 drivers/infiniband/hw/cxgb4/cm.c ep->l2t = cxgb4_l2t_get(cdev->rdev.lldi.l2t, ep 2122 drivers/infiniband/hw/cxgb4/cm.c if (!ep->l2t) ep 2124 drivers/infiniband/hw/cxgb4/cm.c ep->mtu = dst_mtu(dst); ep 2125 drivers/infiniband/hw/cxgb4/cm.c ep->tx_chan = cxgb4_port_chan(pdev); ep 2126 drivers/infiniband/hw/cxgb4/cm.c ep->smac_idx = ((struct port_info *)netdev_priv(pdev))->smt_idx; ep 2129 drivers/infiniband/hw/cxgb4/cm.c ep->txq_idx = cxgb4_port_idx(pdev) * step; ep 2130 drivers/infiniband/hw/cxgb4/cm.c ep->ctrlq_idx = cxgb4_port_idx(pdev); ep 2133 drivers/infiniband/hw/cxgb4/cm.c ep->rss_qid = cdev->rdev.lldi.rxq_ids[ ep 2135 drivers/infiniband/hw/cxgb4/cm.c set_tcp_window(ep, (struct port_info *)netdev_priv(pdev)); ep 2138 drivers/infiniband/hw/cxgb4/cm.c ep->retry_with_mpa_v1 = 0; ep 2139 drivers/infiniband/hw/cxgb4/cm.c ep->tried_with_mpa_v1 = 0; ep 2151 drivers/infiniband/hw/cxgb4/cm.c static int c4iw_reconnect(struct c4iw_ep *ep) ep 2156 drivers/infiniband/hw/cxgb4/cm.c &ep->com.cm_id->m_local_addr; ep 2158 drivers/infiniband/hw/cxgb4/cm.c &ep->com.cm_id->m_remote_addr; ep 2160 drivers/infiniband/hw/cxgb4/cm.c &ep->com.cm_id->m_local_addr; ep 2162 drivers/infiniband/hw/cxgb4/cm.c &ep->com.cm_id->m_remote_addr; ep 2166 drivers/infiniband/hw/cxgb4/cm.c pr_debug("qp %p cm_id %p\n", ep->com.qp, ep->com.cm_id); ep 2167 drivers/infiniband/hw/cxgb4/cm.c c4iw_init_wr_wait(ep->com.wr_waitp); ep 2178 drivers/infiniband/hw/cxgb4/cm.c size = (CN_MAX_CON_BUF - skb_queue_len(&ep->com.ep_skb_list)); ep 2179 drivers/infiniband/hw/cxgb4/cm.c if (alloc_ep_skb_list(&ep->com.ep_skb_list, size)) { ep 2187 drivers/infiniband/hw/cxgb4/cm.c ep->atid = cxgb4_alloc_atid(ep->com.dev->rdev.lldi.tids, ep); ep 2188 drivers/infiniband/hw/cxgb4/cm.c if (ep->atid == -1) { ep 2193 drivers/infiniband/hw/cxgb4/cm.c err = xa_insert_irq(&ep->com.dev->atids, ep->atid, ep, GFP_KERNEL); ep 2198 drivers/infiniband/hw/cxgb4/cm.c if (ep->com.cm_id->m_local_addr.ss_family == AF_INET) { ep 2199 drivers/infiniband/hw/cxgb4/cm.c ep->dst = cxgb_find_route(&ep->com.dev->rdev.lldi, get_real_dev, ep 2203 drivers/infiniband/hw/cxgb4/cm.c raddr->sin_port, ep->com.cm_id->tos); ep 2207 drivers/infiniband/hw/cxgb4/cm.c ep->dst = cxgb_find_route6(&ep->com.dev->rdev.lldi, ep 2213 drivers/infiniband/hw/cxgb4/cm.c ep->com.cm_id->tos, ep 2218 drivers/infiniband/hw/cxgb4/cm.c if (!ep->dst) { ep 2223 drivers/infiniband/hw/cxgb4/cm.c err = import_ep(ep, iptype, ra, ep->dst, ep->com.dev, false, ep 2224 drivers/infiniband/hw/cxgb4/cm.c ep->com.dev->rdev.lldi.adapter_type, ep 2225 drivers/infiniband/hw/cxgb4/cm.c ep->com.cm_id->tos); ep 2232 drivers/infiniband/hw/cxgb4/cm.c ep->txq_idx, ep->tx_chan, ep->smac_idx, ep->rss_qid, ep 2233 drivers/infiniband/hw/cxgb4/cm.c ep->l2t->idx); ep 2235 drivers/infiniband/hw/cxgb4/cm.c state_set(&ep->com, CONNECTING); ep 2236 drivers/infiniband/hw/cxgb4/cm.c ep->tos = ep->com.cm_id->tos; ep 2239 drivers/infiniband/hw/cxgb4/cm.c err = send_connect(ep); ep 2243 drivers/infiniband/hw/cxgb4/cm.c cxgb4_l2t_release(ep->l2t); ep 2245 drivers/infiniband/hw/cxgb4/cm.c dst_release(ep->dst); ep 2247 drivers/infiniband/hw/cxgb4/cm.c xa_erase_irq(&ep->com.dev->atids, ep->atid); ep 2249 drivers/infiniband/hw/cxgb4/cm.c cxgb4_free_atid(ep->com.dev->rdev.lldi.tids, ep->atid); ep 2257 drivers/infiniband/hw/cxgb4/cm.c connect_reply_upcall(ep, -ECONNRESET); ep 2259 drivers/infiniband/hw/cxgb4/cm.c c4iw_put_ep(&ep->com); ep 2266 drivers/infiniband/hw/cxgb4/cm.c struct c4iw_ep *ep; ep 2278 drivers/infiniband/hw/cxgb4/cm.c ep = lookup_atid(t, atid); ep 2279 drivers/infiniband/hw/cxgb4/cm.c la = (struct sockaddr_in *)&ep->com.local_addr; ep 2280 drivers/infiniband/hw/cxgb4/cm.c ra = (struct sockaddr_in *)&ep->com.remote_addr; ep 2281 drivers/infiniband/hw/cxgb4/cm.c la6 = (struct sockaddr_in6 *)&ep->com.local_addr; ep 2282 drivers/infiniband/hw/cxgb4/cm.c ra6 = (struct sockaddr_in6 *)&ep->com.remote_addr; ep 2284 drivers/infiniband/hw/cxgb4/cm.c pr_debug("ep %p atid %u status %u errno %d\n", ep, atid, ep 2290 drivers/infiniband/hw/cxgb4/cm.c ep->stats.connect_neg_adv++; ep 2297 drivers/infiniband/hw/cxgb4/cm.c set_bit(ACT_OPEN_RPL, &ep->com.history); ep 2310 drivers/infiniband/hw/cxgb4/cm.c if (ep->com.local_addr.ss_family == AF_INET && ep 2312 drivers/infiniband/hw/cxgb4/cm.c ret = send_fw_act_open_req(ep, TID_TID_G(AOPEN_ATID_G( ep 2320 drivers/infiniband/hw/cxgb4/cm.c if (ep->retry_count++ < ACT_OPEN_RETRY_COUNT) { ep 2321 drivers/infiniband/hw/cxgb4/cm.c set_bit(ACT_RETRY_INUSE, &ep->com.history); ep 2322 drivers/infiniband/hw/cxgb4/cm.c if (ep->com.remote_addr.ss_family == AF_INET6) { ep 2325 drivers/infiniband/hw/cxgb4/cm.c &ep->com.local_addr; ep 2327 drivers/infiniband/hw/cxgb4/cm.c ep->com.dev->rdev.lldi.ports[0], ep 2331 drivers/infiniband/hw/cxgb4/cm.c xa_erase_irq(&ep->com.dev->atids, atid); ep 2333 drivers/infiniband/hw/cxgb4/cm.c dst_release(ep->dst); ep 2334 drivers/infiniband/hw/cxgb4/cm.c cxgb4_l2t_release(ep->l2t); ep 2335 drivers/infiniband/hw/cxgb4/cm.c c4iw_reconnect(ep); ep 2340 drivers/infiniband/hw/cxgb4/cm.c if (ep->com.local_addr.ss_family == AF_INET) { ep 2355 drivers/infiniband/hw/cxgb4/cm.c connect_reply_upcall(ep, status2errno(status)); ep 2356 drivers/infiniband/hw/cxgb4/cm.c state_set(&ep->com, DEAD); ep 2358 drivers/infiniband/hw/cxgb4/cm.c if (ep->com.remote_addr.ss_family == AF_INET6) { ep 2360 drivers/infiniband/hw/cxgb4/cm.c (struct sockaddr_in6 *)&ep->com.local_addr; ep 2361 drivers/infiniband/hw/cxgb4/cm.c cxgb4_clip_release(ep->com.dev->rdev.lldi.ports[0], ep 2365 drivers/infiniband/hw/cxgb4/cm.c cxgb4_remove_tid(ep->com.dev->rdev.lldi.tids, 0, GET_TID(rpl), ep 2366 drivers/infiniband/hw/cxgb4/cm.c ep->com.local_addr.ss_family); ep 2368 drivers/infiniband/hw/cxgb4/cm.c xa_erase_irq(&ep->com.dev->atids, atid); ep 2370 drivers/infiniband/hw/cxgb4/cm.c dst_release(ep->dst); ep 2371 drivers/infiniband/hw/cxgb4/cm.c cxgb4_l2t_release(ep->l2t); ep 2372 drivers/infiniband/hw/cxgb4/cm.c c4iw_put_ep(&ep->com); ep 2381 drivers/infiniband/hw/cxgb4/cm.c struct c4iw_listen_ep *ep = get_ep_from_stid(dev, stid); ep 2383 drivers/infiniband/hw/cxgb4/cm.c if (!ep) { ep 2387 drivers/infiniband/hw/cxgb4/cm.c pr_debug("ep %p status %d error %d\n", ep, ep 2389 drivers/infiniband/hw/cxgb4/cm.c c4iw_wake_up_noref(ep->com.wr_waitp, status2errno(rpl->status)); ep 2390 drivers/infiniband/hw/cxgb4/cm.c c4iw_put_ep(&ep->com); ep 2399 drivers/infiniband/hw/cxgb4/cm.c struct c4iw_listen_ep *ep = get_ep_from_stid(dev, stid); ep 2401 drivers/infiniband/hw/cxgb4/cm.c if (!ep) { ep 2405 drivers/infiniband/hw/cxgb4/cm.c pr_debug("ep %p\n", ep); ep 2406 drivers/infiniband/hw/cxgb4/cm.c c4iw_wake_up_noref(ep->com.wr_waitp, status2errno(rpl->status)); ep 2407 drivers/infiniband/hw/cxgb4/cm.c c4iw_put_ep(&ep->com); ep 2412 drivers/infiniband/hw/cxgb4/cm.c static int accept_cr(struct c4iw_ep *ep, struct sk_buff *skb, ep 2422 drivers/infiniband/hw/cxgb4/cm.c enum chip_type adapter_type = ep->com.dev->rdev.lldi.adapter_type; ep 2424 drivers/infiniband/hw/cxgb4/cm.c pr_debug("ep %p tid %u\n", ep, ep->hwtid); ep 2425 drivers/infiniband/hw/cxgb4/cm.c cxgb_best_mtu(ep->com.dev->rdev.lldi.mtus, ep->mtu, &mtu_idx, ep 2427 drivers/infiniband/hw/cxgb4/cm.c (ep->com.remote_addr.ss_family == AF_INET) ? 0 : 1); ep 2434 drivers/infiniband/hw/cxgb4/cm.c win = ep->rcv_win >> 10; ep 2442 drivers/infiniband/hw/cxgb4/cm.c L2T_IDX_V(ep->l2t->idx) | ep 2443 drivers/infiniband/hw/cxgb4/cm.c TX_CHAN_V(ep->tx_chan) | ep 2444 drivers/infiniband/hw/cxgb4/cm.c SMAC_SEL_V(ep->smac_idx) | ep 2445 drivers/infiniband/hw/cxgb4/cm.c DSCP_V(ep->tos >> 2) | ep 2449 drivers/infiniband/hw/cxgb4/cm.c RSS_QUEUE_VALID_F | RSS_QUEUE_V(ep->rss_qid); ep 2476 drivers/infiniband/hw/cxgb4/cm.c INIT_TP_WR(rpl5, ep->hwtid); ep 2479 drivers/infiniband/hw/cxgb4/cm.c INIT_TP_WR(rpl, ep->hwtid); ep 2482 drivers/infiniband/hw/cxgb4/cm.c ep->hwtid)); ep 2499 drivers/infiniband/hw/cxgb4/cm.c set_wr_txq(skb, CPL_PRIORITY_SETUP, ep->ctrlq_idx); ep 2500 drivers/infiniband/hw/cxgb4/cm.c t4_set_arp_err_handler(skb, ep, pass_accept_rpl_arp_failure); ep 2502 drivers/infiniband/hw/cxgb4/cm.c return c4iw_l2t_send(&ep->com.dev->rdev, skb, ep->l2t); ep 2678 drivers/infiniband/hw/cxgb4/cm.c struct c4iw_ep *ep; ep 2684 drivers/infiniband/hw/cxgb4/cm.c ep = get_ep_from_tid(dev, tid); ep 2685 drivers/infiniband/hw/cxgb4/cm.c pr_debug("ep %p tid %u\n", ep, ep->hwtid); ep 2686 drivers/infiniband/hw/cxgb4/cm.c ep->snd_seq = be32_to_cpu(req->snd_isn); ep 2687 drivers/infiniband/hw/cxgb4/cm.c ep->rcv_seq = be32_to_cpu(req->rcv_isn); ep 2688 drivers/infiniband/hw/cxgb4/cm.c ep->snd_wscale = TCPOPT_SND_WSCALE_G(tcp_opt); ep 2690 drivers/infiniband/hw/cxgb4/cm.c pr_debug("ep %p hwtid %u tcp_opt 0x%02x\n", ep, tid, tcp_opt); ep 2692 drivers/infiniband/hw/cxgb4/cm.c set_emss(ep, tcp_opt); ep 2694 drivers/infiniband/hw/cxgb4/cm.c dst_confirm(ep->dst); ep 2695 drivers/infiniband/hw/cxgb4/cm.c mutex_lock(&ep->com.mutex); ep 2696 drivers/infiniband/hw/cxgb4/cm.c ep->com.state = MPA_REQ_WAIT; ep 2697 drivers/infiniband/hw/cxgb4/cm.c start_ep_timer(ep); ep 2698 drivers/infiniband/hw/cxgb4/cm.c set_bit(PASS_ESTAB, &ep->com.history); ep 2699 drivers/infiniband/hw/cxgb4/cm.c ret = send_flowc(ep); ep 2700 drivers/infiniband/hw/cxgb4/cm.c mutex_unlock(&ep->com.mutex); ep 2702 drivers/infiniband/hw/cxgb4/cm.c c4iw_ep_disconnect(ep, 1, GFP_KERNEL); ep 2703 drivers/infiniband/hw/cxgb4/cm.c c4iw_put_ep(&ep->com); ep 2711 drivers/infiniband/hw/cxgb4/cm.c struct c4iw_ep *ep; ep 2718 drivers/infiniband/hw/cxgb4/cm.c ep = get_ep_from_tid(dev, tid); ep 2719 drivers/infiniband/hw/cxgb4/cm.c if (!ep) ep 2722 drivers/infiniband/hw/cxgb4/cm.c pr_debug("ep %p tid %u\n", ep, ep->hwtid); ep 2723 drivers/infiniband/hw/cxgb4/cm.c dst_confirm(ep->dst); ep 2725 drivers/infiniband/hw/cxgb4/cm.c set_bit(PEER_CLOSE, &ep->com.history); ep 2726 drivers/infiniband/hw/cxgb4/cm.c mutex_lock(&ep->com.mutex); ep 2727 drivers/infiniband/hw/cxgb4/cm.c switch (ep->com.state) { ep 2729 drivers/infiniband/hw/cxgb4/cm.c __state_set(&ep->com, CLOSING); ep 2732 drivers/infiniband/hw/cxgb4/cm.c __state_set(&ep->com, CLOSING); ep 2733 drivers/infiniband/hw/cxgb4/cm.c connect_reply_upcall(ep, -ECONNRESET); ep 2743 drivers/infiniband/hw/cxgb4/cm.c __state_set(&ep->com, CLOSING); ep 2744 drivers/infiniband/hw/cxgb4/cm.c pr_debug("waking up ep %p tid %u\n", ep, ep->hwtid); ep 2745 drivers/infiniband/hw/cxgb4/cm.c c4iw_wake_up_noref(ep->com.wr_waitp, -ECONNRESET); ep 2748 drivers/infiniband/hw/cxgb4/cm.c __state_set(&ep->com, CLOSING); ep 2749 drivers/infiniband/hw/cxgb4/cm.c pr_debug("waking up ep %p tid %u\n", ep, ep->hwtid); ep 2750 drivers/infiniband/hw/cxgb4/cm.c c4iw_wake_up_noref(ep->com.wr_waitp, -ECONNRESET); ep 2753 drivers/infiniband/hw/cxgb4/cm.c start_ep_timer(ep); ep 2754 drivers/infiniband/hw/cxgb4/cm.c __state_set(&ep->com, CLOSING); ep 2756 drivers/infiniband/hw/cxgb4/cm.c ret = c4iw_modify_qp(ep->com.qp->rhp, ep->com.qp, ep 2759 drivers/infiniband/hw/cxgb4/cm.c peer_close_upcall(ep); ep 2767 drivers/infiniband/hw/cxgb4/cm.c __state_set(&ep->com, MORIBUND); ep 2771 drivers/infiniband/hw/cxgb4/cm.c (void)stop_ep_timer(ep); ep 2772 drivers/infiniband/hw/cxgb4/cm.c if (ep->com.cm_id && ep->com.qp) { ep 2774 drivers/infiniband/hw/cxgb4/cm.c c4iw_modify_qp(ep->com.qp->rhp, ep->com.qp, ep 2777 drivers/infiniband/hw/cxgb4/cm.c close_complete_upcall(ep, 0); ep 2778 drivers/infiniband/hw/cxgb4/cm.c __state_set(&ep->com, DEAD); ep 2786 drivers/infiniband/hw/cxgb4/cm.c WARN_ONCE(1, "Bad endpoint state %u\n", ep->com.state); ep 2788 drivers/infiniband/hw/cxgb4/cm.c mutex_unlock(&ep->com.mutex); ep 2790 drivers/infiniband/hw/cxgb4/cm.c c4iw_ep_disconnect(ep, 0, GFP_KERNEL); ep 2792 drivers/infiniband/hw/cxgb4/cm.c release_ep_resources(ep); ep 2793 drivers/infiniband/hw/cxgb4/cm.c c4iw_put_ep(&ep->com); ep 2797 drivers/infiniband/hw/cxgb4/cm.c static void finish_peer_abort(struct c4iw_dev *dev, struct c4iw_ep *ep) ep 2799 drivers/infiniband/hw/cxgb4/cm.c complete_cached_srq_buffers(ep, ep->srqe_idx); ep 2800 drivers/infiniband/hw/cxgb4/cm.c if (ep->com.cm_id && ep->com.qp) { ep 2804 drivers/infiniband/hw/cxgb4/cm.c c4iw_modify_qp(ep->com.qp->rhp, ep->com.qp, ep 2807 drivers/infiniband/hw/cxgb4/cm.c peer_abort_upcall(ep); ep 2808 drivers/infiniband/hw/cxgb4/cm.c release_ep_resources(ep); ep 2809 drivers/infiniband/hw/cxgb4/cm.c c4iw_put_ep(&ep->com); ep 2815 drivers/infiniband/hw/cxgb4/cm.c struct c4iw_ep *ep; ep 2826 drivers/infiniband/hw/cxgb4/cm.c ep = get_ep_from_tid(dev, tid); ep 2827 drivers/infiniband/hw/cxgb4/cm.c if (!ep) ep 2834 drivers/infiniband/hw/cxgb4/cm.c ep->hwtid, status, neg_adv_str(status)); ep 2835 drivers/infiniband/hw/cxgb4/cm.c ep->stats.abort_neg_adv++; ep 2842 drivers/infiniband/hw/cxgb4/cm.c pr_debug("ep %p tid %u state %u\n", ep, ep->hwtid, ep 2843 drivers/infiniband/hw/cxgb4/cm.c ep->com.state); ep 2844 drivers/infiniband/hw/cxgb4/cm.c set_bit(PEER_ABORT, &ep->com.history); ep 2851 drivers/infiniband/hw/cxgb4/cm.c if (ep->com.state != MPA_REQ_SENT) ep 2852 drivers/infiniband/hw/cxgb4/cm.c c4iw_wake_up_noref(ep->com.wr_waitp, -ECONNRESET); ep 2854 drivers/infiniband/hw/cxgb4/cm.c mutex_lock(&ep->com.mutex); ep 2855 drivers/infiniband/hw/cxgb4/cm.c switch (ep->com.state) { ep 2857 drivers/infiniband/hw/cxgb4/cm.c c4iw_put_ep(&ep->parent_ep->com); ep 2860 drivers/infiniband/hw/cxgb4/cm.c (void)stop_ep_timer(ep); ep 2863 drivers/infiniband/hw/cxgb4/cm.c (void)stop_ep_timer(ep); ep 2865 drivers/infiniband/hw/cxgb4/cm.c (mpa_rev == 2 && ep->tried_with_mpa_v1)) ep 2866 drivers/infiniband/hw/cxgb4/cm.c connect_reply_upcall(ep, -ECONNRESET); ep 2878 drivers/infiniband/hw/cxgb4/cm.c ep->retry_with_mpa_v1 = 1; ep 2887 drivers/infiniband/hw/cxgb4/cm.c stop_ep_timer(ep); ep 2890 drivers/infiniband/hw/cxgb4/cm.c if (ep->com.qp && ep->com.qp->srq) { ep 2894 drivers/infiniband/hw/cxgb4/cm.c complete_cached_srq_buffers(ep, srqidx); ep 2897 drivers/infiniband/hw/cxgb4/cm.c c4iw_get_ep(&ep->com); ep 2898 drivers/infiniband/hw/cxgb4/cm.c __state_set(&ep->com, ABORTING); ep 2899 drivers/infiniband/hw/cxgb4/cm.c set_bit(PEER_ABORT_IN_PROGRESS, &ep->com.flags); ep 2900 drivers/infiniband/hw/cxgb4/cm.c read_tcb(ep); ep 2906 drivers/infiniband/hw/cxgb4/cm.c if (ep->com.cm_id && ep->com.qp) { ep 2908 drivers/infiniband/hw/cxgb4/cm.c ret = c4iw_modify_qp(ep->com.qp->rhp, ep 2909 drivers/infiniband/hw/cxgb4/cm.c ep->com.qp, C4IW_QP_ATTR_NEXT_STATE, ep 2914 drivers/infiniband/hw/cxgb4/cm.c peer_abort_upcall(ep); ep 2920 drivers/infiniband/hw/cxgb4/cm.c mutex_unlock(&ep->com.mutex); ep 2923 drivers/infiniband/hw/cxgb4/cm.c WARN_ONCE(1, "Bad endpoint state %u\n", ep->com.state); ep 2926 drivers/infiniband/hw/cxgb4/cm.c dst_confirm(ep->dst); ep 2927 drivers/infiniband/hw/cxgb4/cm.c if (ep->com.state != ABORTING) { ep 2928 drivers/infiniband/hw/cxgb4/cm.c __state_set(&ep->com, DEAD); ep 2930 drivers/infiniband/hw/cxgb4/cm.c if (!ep->retry_with_mpa_v1) ep 2933 drivers/infiniband/hw/cxgb4/cm.c mutex_unlock(&ep->com.mutex); ep 2935 drivers/infiniband/hw/cxgb4/cm.c rpl_skb = skb_dequeue(&ep->com.ep_skb_list); ep 2941 drivers/infiniband/hw/cxgb4/cm.c cxgb_mk_abort_rpl(rpl_skb, len, ep->hwtid, ep->txq_idx); ep 2943 drivers/infiniband/hw/cxgb4/cm.c c4iw_ofld_send(&ep->com.dev->rdev, rpl_skb); ep 2946 drivers/infiniband/hw/cxgb4/cm.c release_ep_resources(ep); ep 2947 drivers/infiniband/hw/cxgb4/cm.c else if (ep->retry_with_mpa_v1) { ep 2948 drivers/infiniband/hw/cxgb4/cm.c if (ep->com.remote_addr.ss_family == AF_INET6) { ep 2951 drivers/infiniband/hw/cxgb4/cm.c &ep->com.local_addr; ep 2953 drivers/infiniband/hw/cxgb4/cm.c ep->com.dev->rdev.lldi.ports[0], ep 2957 drivers/infiniband/hw/cxgb4/cm.c xa_erase_irq(&ep->com.dev->hwtids, ep->hwtid); ep 2958 drivers/infiniband/hw/cxgb4/cm.c cxgb4_remove_tid(ep->com.dev->rdev.lldi.tids, 0, ep->hwtid, ep 2959 drivers/infiniband/hw/cxgb4/cm.c ep->com.local_addr.ss_family); ep 2960 drivers/infiniband/hw/cxgb4/cm.c dst_release(ep->dst); ep 2961 drivers/infiniband/hw/cxgb4/cm.c cxgb4_l2t_release(ep->l2t); ep 2962 drivers/infiniband/hw/cxgb4/cm.c c4iw_reconnect(ep); ep 2966 drivers/infiniband/hw/cxgb4/cm.c c4iw_put_ep(&ep->com); ep 2968 drivers/infiniband/hw/cxgb4/cm.c c4iw_put_ep(&ep->com); ep 2974 drivers/infiniband/hw/cxgb4/cm.c struct c4iw_ep *ep; ep 2980 drivers/infiniband/hw/cxgb4/cm.c ep = get_ep_from_tid(dev, tid); ep 2981 drivers/infiniband/hw/cxgb4/cm.c if (!ep) ep 2984 drivers/infiniband/hw/cxgb4/cm.c pr_debug("ep %p tid %u\n", ep, ep->hwtid); ep 2987 drivers/infiniband/hw/cxgb4/cm.c mutex_lock(&ep->com.mutex); ep 2988 drivers/infiniband/hw/cxgb4/cm.c set_bit(CLOSE_CON_RPL, &ep->com.history); ep 2989 drivers/infiniband/hw/cxgb4/cm.c switch (ep->com.state) { ep 2991 drivers/infiniband/hw/cxgb4/cm.c __state_set(&ep->com, MORIBUND); ep 2994 drivers/infiniband/hw/cxgb4/cm.c (void)stop_ep_timer(ep); ep 2995 drivers/infiniband/hw/cxgb4/cm.c if ((ep->com.cm_id) && (ep->com.qp)) { ep 2997 drivers/infiniband/hw/cxgb4/cm.c c4iw_modify_qp(ep->com.qp->rhp, ep 2998 drivers/infiniband/hw/cxgb4/cm.c ep->com.qp, ep 3002 drivers/infiniband/hw/cxgb4/cm.c close_complete_upcall(ep, 0); ep 3003 drivers/infiniband/hw/cxgb4/cm.c __state_set(&ep->com, DEAD); ep 3010 drivers/infiniband/hw/cxgb4/cm.c WARN_ONCE(1, "Bad endpoint state %u\n", ep->com.state); ep 3013 drivers/infiniband/hw/cxgb4/cm.c mutex_unlock(&ep->com.mutex); ep 3015 drivers/infiniband/hw/cxgb4/cm.c release_ep_resources(ep); ep 3016 drivers/infiniband/hw/cxgb4/cm.c c4iw_put_ep(&ep->com); ep 3024 drivers/infiniband/hw/cxgb4/cm.c struct c4iw_ep *ep; ep 3027 drivers/infiniband/hw/cxgb4/cm.c ep = get_ep_from_tid(dev, tid); ep 3029 drivers/infiniband/hw/cxgb4/cm.c if (ep) { ep 3030 drivers/infiniband/hw/cxgb4/cm.c if (ep->com.qp) { ep 3032 drivers/infiniband/hw/cxgb4/cm.c ep->com.qp->wq.sq.qid); ep 3034 drivers/infiniband/hw/cxgb4/cm.c c4iw_modify_qp(ep->com.qp->rhp, ep->com.qp, ep 3041 drivers/infiniband/hw/cxgb4/cm.c c4iw_ep_disconnect(ep, 1, GFP_KERNEL); ep 3042 drivers/infiniband/hw/cxgb4/cm.c c4iw_put_ep(&ep->com); ep 3056 drivers/infiniband/hw/cxgb4/cm.c struct c4iw_ep *ep; ep 3062 drivers/infiniband/hw/cxgb4/cm.c ep = get_ep_from_tid(dev, tid); ep 3063 drivers/infiniband/hw/cxgb4/cm.c if (!ep) ep 3066 drivers/infiniband/hw/cxgb4/cm.c ep, ep->hwtid, credits); ep 3069 drivers/infiniband/hw/cxgb4/cm.c ep, ep->hwtid, state_read(&ep->com)); ep 3073 drivers/infiniband/hw/cxgb4/cm.c dst_confirm(ep->dst); ep 3074 drivers/infiniband/hw/cxgb4/cm.c if (ep->mpa_skb) { ep 3076 drivers/infiniband/hw/cxgb4/cm.c ep, ep->hwtid, state_read(&ep->com), ep 3077 drivers/infiniband/hw/cxgb4/cm.c ep->mpa_attr.initiator ? 1 : 0); ep 3078 drivers/infiniband/hw/cxgb4/cm.c mutex_lock(&ep->com.mutex); ep 3079 drivers/infiniband/hw/cxgb4/cm.c kfree_skb(ep->mpa_skb); ep 3080 drivers/infiniband/hw/cxgb4/cm.c ep->mpa_skb = NULL; ep 3081 drivers/infiniband/hw/cxgb4/cm.c if (test_bit(STOP_MPA_TIMER, &ep->com.flags)) ep 3082 drivers/infiniband/hw/cxgb4/cm.c stop_ep_timer(ep); ep 3083 drivers/infiniband/hw/cxgb4/cm.c mutex_unlock(&ep->com.mutex); ep 3086 drivers/infiniband/hw/cxgb4/cm.c c4iw_put_ep(&ep->com); ep 3093 drivers/infiniband/hw/cxgb4/cm.c struct c4iw_ep *ep = to_ep(cm_id); ep 3095 drivers/infiniband/hw/cxgb4/cm.c pr_debug("ep %p tid %u\n", ep, ep->hwtid); ep 3097 drivers/infiniband/hw/cxgb4/cm.c mutex_lock(&ep->com.mutex); ep 3098 drivers/infiniband/hw/cxgb4/cm.c if (ep->com.state != MPA_REQ_RCVD) { ep 3099 drivers/infiniband/hw/cxgb4/cm.c mutex_unlock(&ep->com.mutex); ep 3100 drivers/infiniband/hw/cxgb4/cm.c c4iw_put_ep(&ep->com); ep 3103 drivers/infiniband/hw/cxgb4/cm.c set_bit(ULP_REJECT, &ep->com.history); ep 3107 drivers/infiniband/hw/cxgb4/cm.c abort = send_mpa_reject(ep, pdata, pdata_len); ep 3108 drivers/infiniband/hw/cxgb4/cm.c mutex_unlock(&ep->com.mutex); ep 3110 drivers/infiniband/hw/cxgb4/cm.c stop_ep_timer(ep); ep 3111 drivers/infiniband/hw/cxgb4/cm.c c4iw_ep_disconnect(ep, abort != 0, GFP_KERNEL); ep 3112 drivers/infiniband/hw/cxgb4/cm.c c4iw_put_ep(&ep->com); ep 3121 drivers/infiniband/hw/cxgb4/cm.c struct c4iw_ep *ep = to_ep(cm_id); ep 3126 drivers/infiniband/hw/cxgb4/cm.c pr_debug("ep %p tid %u\n", ep, ep->hwtid); ep 3128 drivers/infiniband/hw/cxgb4/cm.c mutex_lock(&ep->com.mutex); ep 3129 drivers/infiniband/hw/cxgb4/cm.c if (ep->com.state != MPA_REQ_RCVD) { ep 3139 drivers/infiniband/hw/cxgb4/cm.c set_bit(ULP_ACCEPT, &ep->com.history); ep 3140 drivers/infiniband/hw/cxgb4/cm.c if ((conn_param->ord > cur_max_read_depth(ep->com.dev)) || ep 3141 drivers/infiniband/hw/cxgb4/cm.c (conn_param->ird > cur_max_read_depth(ep->com.dev))) { ep 3146 drivers/infiniband/hw/cxgb4/cm.c if (ep->mpa_attr.version == 2 && ep->mpa_attr.enhanced_rdma_conn) { ep 3147 drivers/infiniband/hw/cxgb4/cm.c if (conn_param->ord > ep->ird) { ep 3149 drivers/infiniband/hw/cxgb4/cm.c conn_param->ord = ep->ird; ep 3151 drivers/infiniband/hw/cxgb4/cm.c ep->ird = conn_param->ird; ep 3152 drivers/infiniband/hw/cxgb4/cm.c ep->ord = conn_param->ord; ep 3153 drivers/infiniband/hw/cxgb4/cm.c send_mpa_reject(ep, conn_param->private_data, ep 3159 drivers/infiniband/hw/cxgb4/cm.c if (conn_param->ird < ep->ord) { ep 3161 drivers/infiniband/hw/cxgb4/cm.c ep->ord <= h->rdev.lldi.max_ordird_qp) { ep 3162 drivers/infiniband/hw/cxgb4/cm.c conn_param->ird = ep->ord; ep 3169 drivers/infiniband/hw/cxgb4/cm.c ep->ird = conn_param->ird; ep 3170 drivers/infiniband/hw/cxgb4/cm.c ep->ord = conn_param->ord; ep 3172 drivers/infiniband/hw/cxgb4/cm.c if (ep->mpa_attr.version == 1) { ep 3173 drivers/infiniband/hw/cxgb4/cm.c if (peer2peer && ep->ird == 0) ep 3174 drivers/infiniband/hw/cxgb4/cm.c ep->ird = 1; ep 3177 drivers/infiniband/hw/cxgb4/cm.c (ep->mpa_attr.p2p_type != FW_RI_INIT_P2PTYPE_DISABLED) && ep 3178 drivers/infiniband/hw/cxgb4/cm.c (p2p_type == FW_RI_INIT_P2PTYPE_READ_REQ) && ep->ird == 0) ep 3179 drivers/infiniband/hw/cxgb4/cm.c ep->ird = 1; ep 3182 drivers/infiniband/hw/cxgb4/cm.c pr_debug("ird %d ord %d\n", ep->ird, ep->ord); ep 3184 drivers/infiniband/hw/cxgb4/cm.c ep->com.cm_id = cm_id; ep 3185 drivers/infiniband/hw/cxgb4/cm.c ref_cm_id(&ep->com); ep 3186 drivers/infiniband/hw/cxgb4/cm.c ep->com.qp = qp; ep 3187 drivers/infiniband/hw/cxgb4/cm.c ref_qp(ep); ep 3190 drivers/infiniband/hw/cxgb4/cm.c attrs.mpa_attr = ep->mpa_attr; ep 3191 drivers/infiniband/hw/cxgb4/cm.c attrs.max_ird = ep->ird; ep 3192 drivers/infiniband/hw/cxgb4/cm.c attrs.max_ord = ep->ord; ep 3193 drivers/infiniband/hw/cxgb4/cm.c attrs.llp_stream_handle = ep; ep 3203 drivers/infiniband/hw/cxgb4/cm.c err = c4iw_modify_qp(ep->com.qp->rhp, ep 3204 drivers/infiniband/hw/cxgb4/cm.c ep->com.qp, mask, &attrs, 1); ep 3208 drivers/infiniband/hw/cxgb4/cm.c set_bit(STOP_MPA_TIMER, &ep->com.flags); ep 3209 drivers/infiniband/hw/cxgb4/cm.c err = send_mpa_reply(ep, conn_param->private_data, ep 3214 drivers/infiniband/hw/cxgb4/cm.c __state_set(&ep->com, FPDU_MODE); ep 3215 drivers/infiniband/hw/cxgb4/cm.c established_upcall(ep); ep 3216 drivers/infiniband/hw/cxgb4/cm.c mutex_unlock(&ep->com.mutex); ep 3217 drivers/infiniband/hw/cxgb4/cm.c c4iw_put_ep(&ep->com); ep 3220 drivers/infiniband/hw/cxgb4/cm.c deref_cm_id(&ep->com); ep 3224 drivers/infiniband/hw/cxgb4/cm.c mutex_unlock(&ep->com.mutex); ep 3226 drivers/infiniband/hw/cxgb4/cm.c c4iw_ep_disconnect(ep, 1, GFP_KERNEL); ep 3227 drivers/infiniband/hw/cxgb4/cm.c c4iw_put_ep(&ep->com); ep 3300 drivers/infiniband/hw/cxgb4/cm.c struct c4iw_ep *ep; ep 3314 drivers/infiniband/hw/cxgb4/cm.c ep = alloc_ep(sizeof(*ep), GFP_KERNEL); ep 3315 drivers/infiniband/hw/cxgb4/cm.c if (!ep) { ep 3321 drivers/infiniband/hw/cxgb4/cm.c skb_queue_head_init(&ep->com.ep_skb_list); ep 3322 drivers/infiniband/hw/cxgb4/cm.c if (alloc_ep_skb_list(&ep->com.ep_skb_list, CN_MAX_CON_BUF)) { ep 3327 drivers/infiniband/hw/cxgb4/cm.c timer_setup(&ep->timer, ep_timeout, 0); ep 3328 drivers/infiniband/hw/cxgb4/cm.c ep->plen = conn_param->private_data_len; ep 3329 drivers/infiniband/hw/cxgb4/cm.c if (ep->plen) ep 3330 drivers/infiniband/hw/cxgb4/cm.c memcpy(ep->mpa_pkt + sizeof(struct mpa_message), ep 3331 drivers/infiniband/hw/cxgb4/cm.c conn_param->private_data, ep->plen); ep 3332 drivers/infiniband/hw/cxgb4/cm.c ep->ird = conn_param->ird; ep 3333 drivers/infiniband/hw/cxgb4/cm.c ep->ord = conn_param->ord; ep 3335 drivers/infiniband/hw/cxgb4/cm.c if (peer2peer && ep->ord == 0) ep 3336 drivers/infiniband/hw/cxgb4/cm.c ep->ord = 1; ep 3338 drivers/infiniband/hw/cxgb4/cm.c ep->com.cm_id = cm_id; ep 3339 drivers/infiniband/hw/cxgb4/cm.c ref_cm_id(&ep->com); ep 3340 drivers/infiniband/hw/cxgb4/cm.c cm_id->provider_data = ep; ep 3341 drivers/infiniband/hw/cxgb4/cm.c ep->com.dev = dev; ep 3342 drivers/infiniband/hw/cxgb4/cm.c ep->com.qp = get_qhp(dev, conn_param->qpn); ep 3343 drivers/infiniband/hw/cxgb4/cm.c if (!ep->com.qp) { ep 3348 drivers/infiniband/hw/cxgb4/cm.c ref_qp(ep); ep 3350 drivers/infiniband/hw/cxgb4/cm.c ep->com.qp, cm_id); ep 3355 drivers/infiniband/hw/cxgb4/cm.c ep->atid = cxgb4_alloc_atid(dev->rdev.lldi.tids, ep); ep 3356 drivers/infiniband/hw/cxgb4/cm.c if (ep->atid == -1) { ep 3361 drivers/infiniband/hw/cxgb4/cm.c err = xa_insert_irq(&dev->atids, ep->atid, ep, GFP_KERNEL); ep 3365 drivers/infiniband/hw/cxgb4/cm.c memcpy(&ep->com.local_addr, &cm_id->m_local_addr, ep 3366 drivers/infiniband/hw/cxgb4/cm.c sizeof(ep->com.local_addr)); ep 3367 drivers/infiniband/hw/cxgb4/cm.c memcpy(&ep->com.remote_addr, &cm_id->m_remote_addr, ep 3368 drivers/infiniband/hw/cxgb4/cm.c sizeof(ep->com.remote_addr)); ep 3370 drivers/infiniband/hw/cxgb4/cm.c laddr = (struct sockaddr_in *)&ep->com.local_addr; ep 3371 drivers/infiniband/hw/cxgb4/cm.c raddr = (struct sockaddr_in *)&ep->com.remote_addr; ep 3372 drivers/infiniband/hw/cxgb4/cm.c laddr6 = (struct sockaddr_in6 *)&ep->com.local_addr; ep 3373 drivers/infiniband/hw/cxgb4/cm.c raddr6 = (struct sockaddr_in6 *) &ep->com.remote_addr; ep 3392 drivers/infiniband/hw/cxgb4/cm.c ep->dst = cxgb_find_route(&dev->rdev.lldi, get_real_dev, ep 3415 drivers/infiniband/hw/cxgb4/cm.c ep->dst = cxgb_find_route6(&dev->rdev.lldi, get_real_dev, ep 3422 drivers/infiniband/hw/cxgb4/cm.c if (!ep->dst) { ep 3428 drivers/infiniband/hw/cxgb4/cm.c err = import_ep(ep, iptype, ra, ep->dst, ep->com.dev, true, ep 3429 drivers/infiniband/hw/cxgb4/cm.c ep->com.dev->rdev.lldi.adapter_type, cm_id->tos); ep 3436 drivers/infiniband/hw/cxgb4/cm.c ep->txq_idx, ep->tx_chan, ep->smac_idx, ep->rss_qid, ep 3437 drivers/infiniband/hw/cxgb4/cm.c ep->l2t->idx); ep 3439 drivers/infiniband/hw/cxgb4/cm.c state_set(&ep->com, CONNECTING); ep 3440 drivers/infiniband/hw/cxgb4/cm.c ep->tos = cm_id->tos; ep 3443 drivers/infiniband/hw/cxgb4/cm.c err = send_connect(ep); ep 3447 drivers/infiniband/hw/cxgb4/cm.c cxgb4_l2t_release(ep->l2t); ep 3449 drivers/infiniband/hw/cxgb4/cm.c dst_release(ep->dst); ep 3451 drivers/infiniband/hw/cxgb4/cm.c xa_erase_irq(&ep->com.dev->atids, ep->atid); ep 3453 drivers/infiniband/hw/cxgb4/cm.c cxgb4_free_atid(ep->com.dev->rdev.lldi.tids, ep->atid); ep 3455 drivers/infiniband/hw/cxgb4/cm.c skb_queue_purge(&ep->com.ep_skb_list); ep 3456 drivers/infiniband/hw/cxgb4/cm.c deref_cm_id(&ep->com); ep 3458 drivers/infiniband/hw/cxgb4/cm.c c4iw_put_ep(&ep->com); ep 3463 drivers/infiniband/hw/cxgb4/cm.c static int create_server6(struct c4iw_dev *dev, struct c4iw_listen_ep *ep) ep 3467 drivers/infiniband/hw/cxgb4/cm.c &ep->com.local_addr; ep 3470 drivers/infiniband/hw/cxgb4/cm.c err = cxgb4_clip_get(ep->com.dev->rdev.lldi.ports[0], ep 3475 drivers/infiniband/hw/cxgb4/cm.c c4iw_init_wr_wait(ep->com.wr_waitp); ep 3476 drivers/infiniband/hw/cxgb4/cm.c err = cxgb4_create_server6(ep->com.dev->rdev.lldi.ports[0], ep 3477 drivers/infiniband/hw/cxgb4/cm.c ep->stid, &sin6->sin6_addr, ep 3479 drivers/infiniband/hw/cxgb4/cm.c ep->com.dev->rdev.lldi.rxq_ids[0]); ep 3481 drivers/infiniband/hw/cxgb4/cm.c err = c4iw_wait_for_reply(&ep->com.dev->rdev, ep 3482 drivers/infiniband/hw/cxgb4/cm.c ep->com.wr_waitp, ep 3487 drivers/infiniband/hw/cxgb4/cm.c cxgb4_clip_release(ep->com.dev->rdev.lldi.ports[0], ep 3490 drivers/infiniband/hw/cxgb4/cm.c err, ep->stid, ep 3496 drivers/infiniband/hw/cxgb4/cm.c static int create_server4(struct c4iw_dev *dev, struct c4iw_listen_ep *ep) ep 3500 drivers/infiniband/hw/cxgb4/cm.c &ep->com.local_addr; ep 3505 drivers/infiniband/hw/cxgb4/cm.c ep->com.dev->rdev.lldi.ports[0], ep->stid, ep 3507 drivers/infiniband/hw/cxgb4/cm.c ep->com.dev->rdev.lldi.rxq_ids[0], 0, 0); ep 3509 drivers/infiniband/hw/cxgb4/cm.c if (c4iw_fatal_error(&ep->com.dev->rdev)) { ep 3518 drivers/infiniband/hw/cxgb4/cm.c c4iw_init_wr_wait(ep->com.wr_waitp); ep 3519 drivers/infiniband/hw/cxgb4/cm.c err = cxgb4_create_server(ep->com.dev->rdev.lldi.ports[0], ep 3520 drivers/infiniband/hw/cxgb4/cm.c ep->stid, sin->sin_addr.s_addr, sin->sin_port, ep 3521 drivers/infiniband/hw/cxgb4/cm.c 0, ep->com.dev->rdev.lldi.rxq_ids[0]); ep 3523 drivers/infiniband/hw/cxgb4/cm.c err = c4iw_wait_for_reply(&ep->com.dev->rdev, ep 3524 drivers/infiniband/hw/cxgb4/cm.c ep->com.wr_waitp, ep 3531 drivers/infiniband/hw/cxgb4/cm.c , err, ep->stid, ep 3540 drivers/infiniband/hw/cxgb4/cm.c struct c4iw_listen_ep *ep; ep 3544 drivers/infiniband/hw/cxgb4/cm.c ep = alloc_ep(sizeof(*ep), GFP_KERNEL); ep 3545 drivers/infiniband/hw/cxgb4/cm.c if (!ep) { ep 3550 drivers/infiniband/hw/cxgb4/cm.c skb_queue_head_init(&ep->com.ep_skb_list); ep 3551 drivers/infiniband/hw/cxgb4/cm.c pr_debug("ep %p\n", ep); ep 3552 drivers/infiniband/hw/cxgb4/cm.c ep->com.cm_id = cm_id; ep 3553 drivers/infiniband/hw/cxgb4/cm.c ref_cm_id(&ep->com); ep 3554 drivers/infiniband/hw/cxgb4/cm.c ep->com.dev = dev; ep 3555 drivers/infiniband/hw/cxgb4/cm.c ep->backlog = backlog; ep 3556 drivers/infiniband/hw/cxgb4/cm.c memcpy(&ep->com.local_addr, &cm_id->m_local_addr, ep 3557 drivers/infiniband/hw/cxgb4/cm.c sizeof(ep->com.local_addr)); ep 3563 drivers/infiniband/hw/cxgb4/cm.c ep->com.local_addr.ss_family == AF_INET) ep 3564 drivers/infiniband/hw/cxgb4/cm.c ep->stid = cxgb4_alloc_sftid(dev->rdev.lldi.tids, ep 3565 drivers/infiniband/hw/cxgb4/cm.c cm_id->m_local_addr.ss_family, ep); ep 3567 drivers/infiniband/hw/cxgb4/cm.c ep->stid = cxgb4_alloc_stid(dev->rdev.lldi.tids, ep 3568 drivers/infiniband/hw/cxgb4/cm.c cm_id->m_local_addr.ss_family, ep); ep 3570 drivers/infiniband/hw/cxgb4/cm.c if (ep->stid == -1) { ep 3575 drivers/infiniband/hw/cxgb4/cm.c err = xa_insert_irq(&dev->stids, ep->stid, ep, GFP_KERNEL); ep 3579 drivers/infiniband/hw/cxgb4/cm.c state_set(&ep->com, LISTEN); ep 3580 drivers/infiniband/hw/cxgb4/cm.c if (ep->com.local_addr.ss_family == AF_INET) ep 3581 drivers/infiniband/hw/cxgb4/cm.c err = create_server4(dev, ep); ep 3583 drivers/infiniband/hw/cxgb4/cm.c err = create_server6(dev, ep); ep 3585 drivers/infiniband/hw/cxgb4/cm.c cm_id->provider_data = ep; ep 3588 drivers/infiniband/hw/cxgb4/cm.c xa_erase_irq(&ep->com.dev->stids, ep->stid); ep 3590 drivers/infiniband/hw/cxgb4/cm.c cxgb4_free_stid(ep->com.dev->rdev.lldi.tids, ep->stid, ep 3591 drivers/infiniband/hw/cxgb4/cm.c ep->com.local_addr.ss_family); ep 3593 drivers/infiniband/hw/cxgb4/cm.c deref_cm_id(&ep->com); ep 3594 drivers/infiniband/hw/cxgb4/cm.c c4iw_put_ep(&ep->com); ep 3603 drivers/infiniband/hw/cxgb4/cm.c struct c4iw_listen_ep *ep = to_listen_ep(cm_id); ep 3605 drivers/infiniband/hw/cxgb4/cm.c pr_debug("ep %p\n", ep); ep 3608 drivers/infiniband/hw/cxgb4/cm.c state_set(&ep->com, DEAD); ep 3609 drivers/infiniband/hw/cxgb4/cm.c if (ep->com.dev->rdev.lldi.enable_fw_ofld_conn && ep 3610 drivers/infiniband/hw/cxgb4/cm.c ep->com.local_addr.ss_family == AF_INET) { ep 3612 drivers/infiniband/hw/cxgb4/cm.c ep->com.dev->rdev.lldi.ports[0], ep->stid, ep 3613 drivers/infiniband/hw/cxgb4/cm.c ep->com.dev->rdev.lldi.rxq_ids[0], 0); ep 3616 drivers/infiniband/hw/cxgb4/cm.c c4iw_init_wr_wait(ep->com.wr_waitp); ep 3618 drivers/infiniband/hw/cxgb4/cm.c ep->com.dev->rdev.lldi.ports[0], ep->stid, ep 3619 drivers/infiniband/hw/cxgb4/cm.c ep->com.dev->rdev.lldi.rxq_ids[0], 0); ep 3622 drivers/infiniband/hw/cxgb4/cm.c err = c4iw_wait_for_reply(&ep->com.dev->rdev, ep->com.wr_waitp, ep 3624 drivers/infiniband/hw/cxgb4/cm.c sin6 = (struct sockaddr_in6 *)&ep->com.local_addr; ep 3625 drivers/infiniband/hw/cxgb4/cm.c cxgb4_clip_release(ep->com.dev->rdev.lldi.ports[0], ep 3628 drivers/infiniband/hw/cxgb4/cm.c xa_erase_irq(&ep->com.dev->stids, ep->stid); ep 3629 drivers/infiniband/hw/cxgb4/cm.c cxgb4_free_stid(ep->com.dev->rdev.lldi.tids, ep->stid, ep 3630 drivers/infiniband/hw/cxgb4/cm.c ep->com.local_addr.ss_family); ep 3632 drivers/infiniband/hw/cxgb4/cm.c deref_cm_id(&ep->com); ep 3633 drivers/infiniband/hw/cxgb4/cm.c c4iw_put_ep(&ep->com); ep 3637 drivers/infiniband/hw/cxgb4/cm.c int c4iw_ep_disconnect(struct c4iw_ep *ep, int abrupt, gfp_t gfp) ep 3644 drivers/infiniband/hw/cxgb4/cm.c mutex_lock(&ep->com.mutex); ep 3646 drivers/infiniband/hw/cxgb4/cm.c pr_debug("ep %p state %s, abrupt %d\n", ep, ep 3647 drivers/infiniband/hw/cxgb4/cm.c states[ep->com.state], abrupt); ep 3653 drivers/infiniband/hw/cxgb4/cm.c c4iw_get_ep(&ep->com); ep 3655 drivers/infiniband/hw/cxgb4/cm.c rdev = &ep->com.dev->rdev; ep 3658 drivers/infiniband/hw/cxgb4/cm.c close_complete_upcall(ep, -EIO); ep 3659 drivers/infiniband/hw/cxgb4/cm.c ep->com.state = DEAD; ep 3661 drivers/infiniband/hw/cxgb4/cm.c switch (ep->com.state) { ep 3670 drivers/infiniband/hw/cxgb4/cm.c ep->com.state = ABORTING; ep 3672 drivers/infiniband/hw/cxgb4/cm.c ep->com.state = CLOSING; ep 3678 drivers/infiniband/hw/cxgb4/cm.c if (ep->mpa_skb && ep 3679 drivers/infiniband/hw/cxgb4/cm.c test_bit(STOP_MPA_TIMER, &ep->com.flags)) { ep 3680 drivers/infiniband/hw/cxgb4/cm.c clear_bit(STOP_MPA_TIMER, &ep->com.flags); ep 3681 drivers/infiniband/hw/cxgb4/cm.c stop_ep_timer(ep); ep 3683 drivers/infiniband/hw/cxgb4/cm.c start_ep_timer(ep); ep 3685 drivers/infiniband/hw/cxgb4/cm.c set_bit(CLOSE_SENT, &ep->com.flags); ep 3688 drivers/infiniband/hw/cxgb4/cm.c if (!test_and_set_bit(CLOSE_SENT, &ep->com.flags)) { ep 3691 drivers/infiniband/hw/cxgb4/cm.c (void)stop_ep_timer(ep); ep 3692 drivers/infiniband/hw/cxgb4/cm.c ep->com.state = ABORTING; ep 3694 drivers/infiniband/hw/cxgb4/cm.c ep->com.state = MORIBUND; ep 3701 drivers/infiniband/hw/cxgb4/cm.c ep, ep->com.state); ep 3704 drivers/infiniband/hw/cxgb4/cm.c WARN_ONCE(1, "Bad endpoint state %u\n", ep->com.state); ep 3710 drivers/infiniband/hw/cxgb4/cm.c set_bit(EP_DISC_ABORT, &ep->com.history); ep 3711 drivers/infiniband/hw/cxgb4/cm.c ret = send_abort(ep); ep 3713 drivers/infiniband/hw/cxgb4/cm.c set_bit(EP_DISC_CLOSE, &ep->com.history); ep 3714 drivers/infiniband/hw/cxgb4/cm.c ret = send_halfclose(ep); ep 3717 drivers/infiniband/hw/cxgb4/cm.c set_bit(EP_DISC_FAIL, &ep->com.history); ep 3719 drivers/infiniband/hw/cxgb4/cm.c stop_ep_timer(ep); ep 3720 drivers/infiniband/hw/cxgb4/cm.c close_complete_upcall(ep, -EIO); ep 3722 drivers/infiniband/hw/cxgb4/cm.c if (ep->com.qp) { ep 3726 drivers/infiniband/hw/cxgb4/cm.c ret = c4iw_modify_qp(ep->com.qp->rhp, ep 3727 drivers/infiniband/hw/cxgb4/cm.c ep->com.qp, ep 3737 drivers/infiniband/hw/cxgb4/cm.c mutex_unlock(&ep->com.mutex); ep 3738 drivers/infiniband/hw/cxgb4/cm.c c4iw_put_ep(&ep->com); ep 3740 drivers/infiniband/hw/cxgb4/cm.c release_ep_resources(ep); ep 3747 drivers/infiniband/hw/cxgb4/cm.c struct c4iw_ep *ep; ep 3750 drivers/infiniband/hw/cxgb4/cm.c ep = (struct c4iw_ep *)lookup_atid(dev->rdev.lldi.tids, ep 3752 drivers/infiniband/hw/cxgb4/cm.c if (!ep) ep 3757 drivers/infiniband/hw/cxgb4/cm.c set_bit(ACT_RETRY_NOMEM, &ep->com.history); ep 3758 drivers/infiniband/hw/cxgb4/cm.c if (ep->retry_count++ < ACT_OPEN_RETRY_COUNT) { ep 3759 drivers/infiniband/hw/cxgb4/cm.c send_fw_act_open_req(ep, atid); ep 3764 drivers/infiniband/hw/cxgb4/cm.c set_bit(ACT_RETRY_INUSE, &ep->com.history); ep 3765 drivers/infiniband/hw/cxgb4/cm.c if (ep->retry_count++ < ACT_OPEN_RETRY_COUNT) { ep 3766 drivers/infiniband/hw/cxgb4/cm.c send_fw_act_open_req(ep, atid); ep 3780 drivers/infiniband/hw/cxgb4/cm.c connect_reply_upcall(ep, status2errno(req->retval)); ep 3781 drivers/infiniband/hw/cxgb4/cm.c state_set(&ep->com, DEAD); ep 3782 drivers/infiniband/hw/cxgb4/cm.c if (ep->com.remote_addr.ss_family == AF_INET6) { ep 3784 drivers/infiniband/hw/cxgb4/cm.c (struct sockaddr_in6 *)&ep->com.local_addr; ep 3785 drivers/infiniband/hw/cxgb4/cm.c cxgb4_clip_release(ep->com.dev->rdev.lldi.ports[0], ep 3790 drivers/infiniband/hw/cxgb4/cm.c dst_release(ep->dst); ep 3791 drivers/infiniband/hw/cxgb4/cm.c cxgb4_l2t_release(ep->l2t); ep 3792 drivers/infiniband/hw/cxgb4/cm.c c4iw_put_ep(&ep->com); ep 3849 drivers/infiniband/hw/cxgb4/cm.c struct c4iw_ep *ep; ep 3853 drivers/infiniband/hw/cxgb4/cm.c ep = get_ep_from_tid(dev, tid); ep 3854 drivers/infiniband/hw/cxgb4/cm.c if (!ep) ep 3867 drivers/infiniband/hw/cxgb4/cm.c c4iw_put_ep(&ep->com); /* from get_ep_from_tid() */ ep 3868 drivers/infiniband/hw/cxgb4/cm.c c4iw_put_ep(&ep->com); /* from read_tcb() */ ep 3872 drivers/infiniband/hw/cxgb4/cm.c if (++ep->rx_pdu_out_cnt >= 2) { ep 3876 drivers/infiniband/hw/cxgb4/cm.c read_tcb(ep); ep 3880 drivers/infiniband/hw/cxgb4/cm.c ep->srqe_idx = t4_tcb_get_field32(tcb, TCB_RQ_START_W, TCB_RQ_START_M, ep 3883 drivers/infiniband/hw/cxgb4/cm.c pr_debug("ep %p tid %u %016x\n", ep, ep->hwtid, ep->srqe_idx); ep 3885 drivers/infiniband/hw/cxgb4/cm.c if (test_bit(PEER_ABORT_IN_PROGRESS, &ep->com.flags)) ep 3886 drivers/infiniband/hw/cxgb4/cm.c finish_peer_abort(dev, ep); ep 3887 drivers/infiniband/hw/cxgb4/cm.c else if (test_bit(ABORT_REQ_IN_PROGRESS, &ep->com.flags)) ep 3888 drivers/infiniband/hw/cxgb4/cm.c send_abort_req(ep); ep 4222 drivers/infiniband/hw/cxgb4/cm.c static void process_timeout(struct c4iw_ep *ep) ep 4227 drivers/infiniband/hw/cxgb4/cm.c mutex_lock(&ep->com.mutex); ep 4228 drivers/infiniband/hw/cxgb4/cm.c pr_debug("ep %p tid %u state %d\n", ep, ep->hwtid, ep->com.state); ep 4229 drivers/infiniband/hw/cxgb4/cm.c set_bit(TIMEDOUT, &ep->com.history); ep 4230 drivers/infiniband/hw/cxgb4/cm.c switch (ep->com.state) { ep 4232 drivers/infiniband/hw/cxgb4/cm.c connect_reply_upcall(ep, -ETIMEDOUT); ep 4241 drivers/infiniband/hw/cxgb4/cm.c if (ep->com.cm_id && ep->com.qp) { ep 4243 drivers/infiniband/hw/cxgb4/cm.c c4iw_modify_qp(ep->com.qp->rhp, ep 4244 drivers/infiniband/hw/cxgb4/cm.c ep->com.qp, C4IW_QP_ATTR_NEXT_STATE, ep 4247 drivers/infiniband/hw/cxgb4/cm.c close_complete_upcall(ep, -ETIMEDOUT); ep 4261 drivers/infiniband/hw/cxgb4/cm.c __func__, ep, ep->hwtid, ep->com.state); ep 4264 drivers/infiniband/hw/cxgb4/cm.c mutex_unlock(&ep->com.mutex); ep 4266 drivers/infiniband/hw/cxgb4/cm.c c4iw_ep_disconnect(ep, 1, GFP_KERNEL); ep 4267 drivers/infiniband/hw/cxgb4/cm.c c4iw_put_ep(&ep->com); ep 4272 drivers/infiniband/hw/cxgb4/cm.c struct c4iw_ep *ep; ep 4283 drivers/infiniband/hw/cxgb4/cm.c ep = list_entry(tmp, struct c4iw_ep, entry); ep 4284 drivers/infiniband/hw/cxgb4/cm.c process_timeout(ep); ep 4321 drivers/infiniband/hw/cxgb4/cm.c struct c4iw_ep *ep = from_timer(ep, t, timer); ep 4325 drivers/infiniband/hw/cxgb4/cm.c if (!test_and_set_bit(TIMEOUT, &ep->com.flags)) { ep 4329 drivers/infiniband/hw/cxgb4/cm.c if (!ep->entry.next) { ep 4330 drivers/infiniband/hw/cxgb4/cm.c list_add_tail(&ep->entry, &timeout_list); ep 4403 drivers/infiniband/hw/cxgb4/cm.c struct c4iw_ep *ep; ep 4406 drivers/infiniband/hw/cxgb4/cm.c ep = get_ep_from_tid(dev, tid); ep 4408 drivers/infiniband/hw/cxgb4/cm.c if (!ep) { ep 4415 drivers/infiniband/hw/cxgb4/cm.c ep->hwtid, req->status, ep 4419 drivers/infiniband/hw/cxgb4/cm.c pr_debug("ep %p tid %u state %u\n", ep, ep->hwtid, ep->com.state); ep 4421 drivers/infiniband/hw/cxgb4/cm.c c4iw_wake_up_noref(ep->com.wr_waitp, -ECONNRESET); ep 207 drivers/infiniband/hw/cxgb4/device.c static void set_ep_sin_addrs(struct c4iw_ep *ep, ep 213 drivers/infiniband/hw/cxgb4/device.c struct iw_cm_id *id = ep->com.cm_id; ep 215 drivers/infiniband/hw/cxgb4/device.c *m_lsin = (struct sockaddr_in *)&ep->com.local_addr; ep 216 drivers/infiniband/hw/cxgb4/device.c *m_rsin = (struct sockaddr_in *)&ep->com.remote_addr; ep 226 drivers/infiniband/hw/cxgb4/device.c static void set_ep_sin6_addrs(struct c4iw_ep *ep, ep 232 drivers/infiniband/hw/cxgb4/device.c struct iw_cm_id *id = ep->com.cm_id; ep 234 drivers/infiniband/hw/cxgb4/device.c *m_lsin6 = (struct sockaddr_in6 *)&ep->com.local_addr; ep 235 drivers/infiniband/hw/cxgb4/device.c *m_rsin6 = (struct sockaddr_in6 *)&ep->com.remote_addr; ep 257 drivers/infiniband/hw/cxgb4/device.c if (qp->ep) { ep 258 drivers/infiniband/hw/cxgb4/device.c struct c4iw_ep *ep = qp->ep; ep 260 drivers/infiniband/hw/cxgb4/device.c if (ep->com.local_addr.ss_family == AF_INET) { ep 266 drivers/infiniband/hw/cxgb4/device.c set_ep_sin_addrs(ep, &lsin, &rsin, &m_lsin, &m_rsin); ep 275 drivers/infiniband/hw/cxgb4/device.c ep->hwtid, (int)ep->com.state, ep 286 drivers/infiniband/hw/cxgb4/device.c set_ep_sin6_addrs(ep, &lsin6, &rsin6, &m_lsin6, ep 295 drivers/infiniband/hw/cxgb4/device.c ep->hwtid, (int)ep->com.state, ep 558 drivers/infiniband/hw/cxgb4/device.c static int dump_ep(struct c4iw_ep *ep, struct c4iw_debugfs_data *epd) ep 567 drivers/infiniband/hw/cxgb4/device.c if (ep->com.local_addr.ss_family == AF_INET) { ep 573 drivers/infiniband/hw/cxgb4/device.c set_ep_sin_addrs(ep, &lsin, &rsin, &m_lsin, &m_rsin); ep 579 drivers/infiniband/hw/cxgb4/device.c ep, ep->com.cm_id, ep->com.qp, ep 580 drivers/infiniband/hw/cxgb4/device.c (int)ep->com.state, ep->com.flags, ep 581 drivers/infiniband/hw/cxgb4/device.c ep->com.history, ep->hwtid, ep->atid, ep 582 drivers/infiniband/hw/cxgb4/device.c ep->stats.connect_neg_adv, ep 583 drivers/infiniband/hw/cxgb4/device.c ep->stats.abort_neg_adv, ep 594 drivers/infiniband/hw/cxgb4/device.c set_ep_sin6_addrs(ep, &lsin6, &rsin6, &m_lsin6, &m_rsin6); ep 600 drivers/infiniband/hw/cxgb4/device.c ep, ep->com.cm_id, ep->com.qp, ep 601 drivers/infiniband/hw/cxgb4/device.c (int)ep->com.state, ep->com.flags, ep 602 drivers/infiniband/hw/cxgb4/device.c ep->com.history, ep->hwtid, ep->atid, ep 603 drivers/infiniband/hw/cxgb4/device.c ep->stats.connect_neg_adv, ep 604 drivers/infiniband/hw/cxgb4/device.c ep->stats.abort_neg_adv, ep 616 drivers/infiniband/hw/cxgb4/device.c int dump_listen_ep(struct c4iw_listen_ep *ep, struct c4iw_debugfs_data *epd) ep 625 drivers/infiniband/hw/cxgb4/device.c if (ep->com.local_addr.ss_family == AF_INET) { ep 627 drivers/infiniband/hw/cxgb4/device.c &ep->com.cm_id->local_addr; ep 629 drivers/infiniband/hw/cxgb4/device.c &ep->com.cm_id->m_local_addr; ep 634 drivers/infiniband/hw/cxgb4/device.c ep, ep->com.cm_id, (int)ep->com.state, ep 635 drivers/infiniband/hw/cxgb4/device.c ep->com.flags, ep->stid, ep->backlog, ep 640 drivers/infiniband/hw/cxgb4/device.c &ep->com.cm_id->local_addr; ep 642 drivers/infiniband/hw/cxgb4/device.c &ep->com.cm_id->m_local_addr; ep 647 drivers/infiniband/hw/cxgb4/device.c ep, ep->com.cm_id, (int)ep->com.state, ep 648 drivers/infiniband/hw/cxgb4/device.c ep->com.flags, ep->stid, ep->backlog, ep 671 drivers/infiniband/hw/cxgb4/device.c struct c4iw_ep *ep; ep 686 drivers/infiniband/hw/cxgb4/device.c xa_for_each(&epd->devp->hwtids, index, ep) ep 688 drivers/infiniband/hw/cxgb4/device.c xa_for_each(&epd->devp->atids, index, ep) ep 701 drivers/infiniband/hw/cxgb4/device.c xa_for_each(&epd->devp->hwtids, index, ep) ep 702 drivers/infiniband/hw/cxgb4/device.c dump_ep(ep, epd); ep 705 drivers/infiniband/hw/cxgb4/device.c xa_for_each(&epd->devp->atids, index, ep) ep 706 drivers/infiniband/hw/cxgb4/device.c dump_ep(ep, epd); ep 488 drivers/infiniband/hw/cxgb4/iw_cxgb4.h struct c4iw_ep *ep; ep 691 drivers/infiniband/hw/cxgb4/iw_cxgb4.h #define c4iw_put_ep(ep) { \ ep 693 drivers/infiniband/hw/cxgb4/iw_cxgb4.h ep, kref_read(&((ep)->kref))); \ ep 694 drivers/infiniband/hw/cxgb4/iw_cxgb4.h WARN_ON(kref_read(&((ep)->kref)) < 1); \ ep 695 drivers/infiniband/hw/cxgb4/iw_cxgb4.h kref_put(&((ep)->kref), _c4iw_free_ep); \ ep 698 drivers/infiniband/hw/cxgb4/iw_cxgb4.h #define c4iw_get_ep(ep) { \ ep 700 drivers/infiniband/hw/cxgb4/iw_cxgb4.h ep, kref_read(&((ep)->kref))); \ ep 701 drivers/infiniband/hw/cxgb4/iw_cxgb4.h kref_get(&((ep)->kref)); \ ep 1022 drivers/infiniband/hw/cxgb4/iw_cxgb4.h int c4iw_ep_disconnect(struct c4iw_ep *ep, int abrupt, gfp_t gfp); ep 1567 drivers/infiniband/hw/cxgb4/qp.c qhp->ep->hwtid); ep 1569 drivers/infiniband/hw/cxgb4/qp.c skb = skb_dequeue(&qhp->ep->com.ep_skb_list); ep 1573 drivers/infiniband/hw/cxgb4/qp.c set_wr_txq(skb, CPL_PRIORITY_DATA, qhp->ep->txq_idx); ep 1578 drivers/infiniband/hw/cxgb4/qp.c FW_WR_FLOWID_V(qhp->ep->hwtid) | ep 1692 drivers/infiniband/hw/cxgb4/qp.c struct c4iw_ep *ep) ep 1698 drivers/infiniband/hw/cxgb4/qp.c pr_debug("qhp %p qid 0x%x tid %u\n", qhp, qhp->wq.sq.qid, ep->hwtid); ep 1700 drivers/infiniband/hw/cxgb4/qp.c skb = skb_dequeue(&ep->com.ep_skb_list); ep 1704 drivers/infiniband/hw/cxgb4/qp.c set_wr_txq(skb, CPL_PRIORITY_DATA, ep->txq_idx); ep 1711 drivers/infiniband/hw/cxgb4/qp.c FW_WR_FLOWID_V(ep->hwtid) | ep 1713 drivers/infiniband/hw/cxgb4/qp.c wqe->cookie = (uintptr_t)ep->com.wr_waitp; ep 1717 drivers/infiniband/hw/cxgb4/qp.c ret = c4iw_ref_send_wait(&rhp->rdev, skb, ep->com.wr_waitp, ep 1718 drivers/infiniband/hw/cxgb4/qp.c qhp->ep->hwtid, qhp->wq.sq.qid, __func__); ep 1755 drivers/infiniband/hw/cxgb4/qp.c qhp->wq.sq.qid, qhp->ep->hwtid, qhp->ep->ird, qhp->ep->ord); ep 1768 drivers/infiniband/hw/cxgb4/qp.c set_wr_txq(skb, CPL_PRIORITY_DATA, qhp->ep->txq_idx); ep 1775 drivers/infiniband/hw/cxgb4/qp.c FW_WR_FLOWID_V(qhp->ep->hwtid) | ep 1778 drivers/infiniband/hw/cxgb4/qp.c wqe->cookie = (uintptr_t)qhp->ep->com.wr_waitp; ep 1815 drivers/infiniband/hw/cxgb4/qp.c wqe->u.init.iss = cpu_to_be32(qhp->ep->snd_seq); ep 1816 drivers/infiniband/hw/cxgb4/qp.c wqe->u.init.irs = cpu_to_be32(qhp->ep->rcv_seq); ep 1820 drivers/infiniband/hw/cxgb4/qp.c ret = c4iw_ref_send_wait(&rhp->rdev, skb, qhp->ep->com.wr_waitp, ep 1821 drivers/infiniband/hw/cxgb4/qp.c qhp->ep->hwtid, qhp->wq.sq.qid, __func__); ep 1842 drivers/infiniband/hw/cxgb4/qp.c struct c4iw_ep *ep = NULL; ep 1845 drivers/infiniband/hw/cxgb4/qp.c qhp, qhp->wq.sq.qid, qhp->wq.rq.qid, qhp->ep, qhp->attr.state, ep 1907 drivers/infiniband/hw/cxgb4/qp.c qhp->ep = qhp->attr.llp_stream_handle; ep 1916 drivers/infiniband/hw/cxgb4/qp.c c4iw_get_ep(&qhp->ep->com); ep 1935 drivers/infiniband/hw/cxgb4/qp.c ep = qhp->ep; ep 1939 drivers/infiniband/hw/cxgb4/qp.c c4iw_get_ep(&qhp->ep->com); ep 1941 drivers/infiniband/hw/cxgb4/qp.c ret = rdma_fini(rhp, qhp, ep); ep 1950 drivers/infiniband/hw/cxgb4/qp.c ep = qhp->ep; ep 1952 drivers/infiniband/hw/cxgb4/qp.c c4iw_get_ep(&ep->com); ep 1957 drivers/infiniband/hw/cxgb4/qp.c ret = rdma_fini(rhp, qhp, ep); ep 1968 drivers/infiniband/hw/cxgb4/qp.c ep = qhp->ep; ep 1969 drivers/infiniband/hw/cxgb4/qp.c c4iw_get_ep(&qhp->ep->com); ep 1993 drivers/infiniband/hw/cxgb4/qp.c c4iw_put_ep(&qhp->ep->com); ep 1994 drivers/infiniband/hw/cxgb4/qp.c qhp->ep = NULL; ep 2030 drivers/infiniband/hw/cxgb4/qp.c pr_debug("disassociating ep %p qpid 0x%x\n", qhp->ep, ep 2035 drivers/infiniband/hw/cxgb4/qp.c if (!ep) ep 2036 drivers/infiniband/hw/cxgb4/qp.c ep = qhp->ep; ep 2037 drivers/infiniband/hw/cxgb4/qp.c qhp->ep = NULL; ep 2055 drivers/infiniband/hw/cxgb4/qp.c c4iw_ep_disconnect(ep, abort, internal ? GFP_ATOMIC : ep 2057 drivers/infiniband/hw/cxgb4/qp.c c4iw_put_ep(&ep->com); ep 2065 drivers/infiniband/hw/cxgb4/qp.c c4iw_put_ep(&ep->com); ep 2086 drivers/infiniband/hw/cxgb4/qp.c wait_event(qhp->wait, !qhp->ep); ep 195 drivers/infiniband/hw/cxgb4/restrack.c struct c4iw_ep ep; ep 205 drivers/infiniband/hw/cxgb4/restrack.c struct c4iw_ep *ep = NULL; ep 231 drivers/infiniband/hw/cxgb4/restrack.c uep->ep = *(struct c4iw_ep *)epcp; ep 233 drivers/infiniband/hw/cxgb4/restrack.c ep = &uep->ep; ep 234 drivers/infiniband/hw/cxgb4/restrack.c epcp = &ep->com; ep 250 drivers/infiniband/hw/cxgb4/restrack.c if (rdma_nl_put_driver_u32(msg, "hwtid", ep->hwtid)) ep 252 drivers/infiniband/hw/cxgb4/restrack.c if (rdma_nl_put_driver_u32(msg, "ord", ep->ord)) ep 254 drivers/infiniband/hw/cxgb4/restrack.c if (rdma_nl_put_driver_u32(msg, "ird", ep->ird)) ep 256 drivers/infiniband/hw/cxgb4/restrack.c if (rdma_nl_put_driver_u32(msg, "emss", ep->emss)) ep 259 drivers/infiniband/hw/cxgb4/restrack.c if (!ep->parent_ep && rdma_nl_put_driver_u32(msg, "atid", ep 260 drivers/infiniband/hw/cxgb4/restrack.c ep->atid)) ep 92 drivers/infiniband/hw/qedr/qedr_iw_cm.c struct qedr_iw_ep *ep = container_of(ref, struct qedr_iw_ep, refcnt); ep 94 drivers/infiniband/hw/qedr/qedr_iw_cm.c if (ep->qp) ep 95 drivers/infiniband/hw/qedr/qedr_iw_cm.c kref_put(&ep->qp->refcnt, qedr_iw_free_qp); ep 97 drivers/infiniband/hw/qedr/qedr_iw_cm.c if (ep->cm_id) ep 98 drivers/infiniband/hw/qedr/qedr_iw_cm.c ep->cm_id->rem_ref(ep->cm_id); ep 100 drivers/infiniband/hw/qedr/qedr_iw_cm.c kfree(ep); ep 109 drivers/infiniband/hw/qedr/qedr_iw_cm.c struct qedr_iw_ep *ep; ep 111 drivers/infiniband/hw/qedr/qedr_iw_cm.c ep = kzalloc(sizeof(*ep), GFP_ATOMIC); ep 112 drivers/infiniband/hw/qedr/qedr_iw_cm.c if (!ep) ep 115 drivers/infiniband/hw/qedr/qedr_iw_cm.c ep->dev = dev; ep 116 drivers/infiniband/hw/qedr/qedr_iw_cm.c ep->qed_context = params->ep_context; ep 117 drivers/infiniband/hw/qedr/qedr_iw_cm.c kref_init(&ep->refcnt); ep 129 drivers/infiniband/hw/qedr/qedr_iw_cm.c event.provider_data = (void *)ep; ep 143 drivers/infiniband/hw/qedr/qedr_iw_cm.c struct qedr_iw_ep *ep = (struct qedr_iw_ep *)context; ep 157 drivers/infiniband/hw/qedr/qedr_iw_cm.c if (ep->cm_id) ep 158 drivers/infiniband/hw/qedr/qedr_iw_cm.c ep->cm_id->event_handler(ep->cm_id, &event); ep 164 drivers/infiniband/hw/qedr/qedr_iw_cm.c struct qedr_iw_ep *ep = (struct qedr_iw_ep *)context; ep 166 drivers/infiniband/hw/qedr/qedr_iw_cm.c if (ep->cm_id) ep 169 drivers/infiniband/hw/qedr/qedr_iw_cm.c kref_put(&ep->refcnt, qedr_iw_free_ep); ep 177 drivers/infiniband/hw/qedr/qedr_iw_cm.c struct qedr_iw_ep *ep = (struct qedr_iw_ep *)context; ep 178 drivers/infiniband/hw/qedr/qedr_iw_cm.c struct qedr_dev *dev = ep->dev; ep 179 drivers/infiniband/hw/qedr/qedr_iw_cm.c struct ib_qp *ibqp = &ep->qp->ibqp; ep 194 drivers/infiniband/hw/qedr/qedr_iw_cm.c struct qedr_iw_ep *ep; ep 204 drivers/infiniband/hw/qedr/qedr_iw_cm.c struct qedr_iw_ep *ep = dwork->ep; ep 205 drivers/infiniband/hw/qedr/qedr_iw_cm.c struct qedr_dev *dev = ep->dev; ep 206 drivers/infiniband/hw/qedr/qedr_iw_cm.c struct qedr_qp *qp = ep->qp; ep 230 drivers/infiniband/hw/qedr/qedr_iw_cm.c if (ep->cm_id) ep 231 drivers/infiniband/hw/qedr/qedr_iw_cm.c ep->cm_id->event_handler(ep->cm_id, &event); ep 238 drivers/infiniband/hw/qedr/qedr_iw_cm.c complete(&ep->qp->iwarp_cm_comp); ep 241 drivers/infiniband/hw/qedr/qedr_iw_cm.c kref_put(&ep->refcnt, qedr_iw_free_ep); ep 249 drivers/infiniband/hw/qedr/qedr_iw_cm.c struct qedr_iw_ep *ep = (struct qedr_iw_ep *)context; ep 250 drivers/infiniband/hw/qedr/qedr_iw_cm.c struct qedr_dev *dev = ep->dev; ep 260 drivers/infiniband/hw/qedr/qedr_iw_cm.c kref_get(&ep->refcnt); ep 262 drivers/infiniband/hw/qedr/qedr_iw_cm.c work->ep = ep; ep 274 drivers/infiniband/hw/qedr/qedr_iw_cm.c struct qedr_iw_ep *ep = (struct qedr_iw_ep *)context; ep 275 drivers/infiniband/hw/qedr/qedr_iw_cm.c struct qedr_dev *dev = ep->dev; ep 280 drivers/infiniband/hw/qedr/qedr_iw_cm.c if ((params->status == -ECONNREFUSED) && (!ep->qp)) { ep 283 drivers/infiniband/hw/qedr/qedr_iw_cm.c kref_put(&ep->refcnt, qedr_iw_free_ep); ep 287 drivers/infiniband/hw/qedr/qedr_iw_cm.c complete(&ep->qp->iwarp_cm_comp); ep 298 drivers/infiniband/hw/qedr/qedr_iw_cm.c struct qedr_iw_ep *ep = (struct qedr_iw_ep *)context; ep 300 drivers/infiniband/hw/qedr/qedr_iw_cm.c complete(&ep->qp->iwarp_cm_comp); ep 304 drivers/infiniband/hw/qedr/qedr_iw_cm.c kref_put(&ep->refcnt, qedr_iw_free_ep); ep 310 drivers/infiniband/hw/qedr/qedr_iw_cm.c struct qedr_iw_ep *ep = (struct qedr_iw_ep *)context; ep 311 drivers/infiniband/hw/qedr/qedr_iw_cm.c struct qedr_dev *dev = ep->dev; ep 322 drivers/infiniband/hw/qedr/qedr_iw_cm.c struct qedr_iw_ep *ep = (struct qedr_iw_ep *)context; ep 323 drivers/infiniband/hw/qedr/qedr_iw_cm.c struct qedr_dev *dev = ep->dev; ep 532 drivers/infiniband/hw/qedr/qedr_iw_cm.c struct qedr_iw_ep *ep; ep 553 drivers/infiniband/hw/qedr/qedr_iw_cm.c ep = kzalloc(sizeof(*ep), GFP_KERNEL); ep 554 drivers/infiniband/hw/qedr/qedr_iw_cm.c if (!ep) ep 557 drivers/infiniband/hw/qedr/qedr_iw_cm.c ep->dev = dev; ep 558 drivers/infiniband/hw/qedr/qedr_iw_cm.c kref_init(&ep->refcnt); ep 566 drivers/infiniband/hw/qedr/qedr_iw_cm.c ep->qp = qp; ep 568 drivers/infiniband/hw/qedr/qedr_iw_cm.c ep->cm_id = cm_id; ep 571 drivers/infiniband/hw/qedr/qedr_iw_cm.c in_params.cb_context = ep; ep 642 drivers/infiniband/hw/qedr/qedr_iw_cm.c kref_put(&ep->refcnt, qedr_iw_free_ep); ep 726 drivers/infiniband/hw/qedr/qedr_iw_cm.c struct qedr_iw_ep *ep = (struct qedr_iw_ep *)cm_id->provider_data; ep 727 drivers/infiniband/hw/qedr/qedr_iw_cm.c struct qedr_dev *dev = ep->dev; ep 740 drivers/infiniband/hw/qedr/qedr_iw_cm.c ep->qp = qp; ep 742 drivers/infiniband/hw/qedr/qedr_iw_cm.c ep->cm_id = cm_id; ep 744 drivers/infiniband/hw/qedr/qedr_iw_cm.c params.ep_context = ep->qed_context; ep 745 drivers/infiniband/hw/qedr/qedr_iw_cm.c params.cb_context = ep; ep 746 drivers/infiniband/hw/qedr/qedr_iw_cm.c params.qp = ep->qp->qed_qp; ep 765 drivers/infiniband/hw/qedr/qedr_iw_cm.c kref_put(&ep->refcnt, qedr_iw_free_ep); ep 772 drivers/infiniband/hw/qedr/qedr_iw_cm.c struct qedr_iw_ep *ep = (struct qedr_iw_ep *)cm_id->provider_data; ep 773 drivers/infiniband/hw/qedr/qedr_iw_cm.c struct qedr_dev *dev = ep->dev; ep 776 drivers/infiniband/hw/qedr/qedr_iw_cm.c params.ep_context = ep->qed_context; ep 777 drivers/infiniband/hw/qedr/qedr_iw_cm.c params.cb_context = ep; ep 780 drivers/infiniband/hw/qedr/qedr_iw_cm.c ep->qp = NULL; ep 464 drivers/infiniband/ulp/iser/iscsi_iser.c struct iscsi_endpoint *ep; ep 473 drivers/infiniband/ulp/iser/iscsi_iser.c ep = iscsi_lookup_endpoint(transport_eph); ep 474 drivers/infiniband/ulp/iser/iscsi_iser.c if (!ep) { ep 479 drivers/infiniband/ulp/iser/iscsi_iser.c iser_conn = ep->dd_data; ep 606 drivers/infiniband/ulp/iser/iscsi_iser.c iscsi_iser_session_create(struct iscsi_endpoint *ep, ep 631 drivers/infiniband/ulp/iser/iscsi_iser.c if (ep) { ep 632 drivers/infiniband/ulp/iser/iscsi_iser.c iser_conn = ep->dd_data; ep 765 drivers/infiniband/ulp/iser/iscsi_iser.c static int iscsi_iser_get_ep_param(struct iscsi_endpoint *ep, ep 768 drivers/infiniband/ulp/iser/iscsi_iser.c struct iser_conn *iser_conn = ep->dd_data; ep 806 drivers/infiniband/ulp/iser/iscsi_iser.c struct iscsi_endpoint *ep; ep 808 drivers/infiniband/ulp/iser/iscsi_iser.c ep = iscsi_create_endpoint(0); ep 809 drivers/infiniband/ulp/iser/iscsi_iser.c if (!ep) ep 818 drivers/infiniband/ulp/iser/iscsi_iser.c ep->dd_data = iser_conn; ep 819 drivers/infiniband/ulp/iser/iscsi_iser.c iser_conn->ep = ep; ep 826 drivers/infiniband/ulp/iser/iscsi_iser.c return ep; ep 828 drivers/infiniband/ulp/iser/iscsi_iser.c iscsi_destroy_endpoint(ep); ep 846 drivers/infiniband/ulp/iser/iscsi_iser.c iscsi_iser_ep_poll(struct iscsi_endpoint *ep, int timeout_ms) ep 848 drivers/infiniband/ulp/iser/iscsi_iser.c struct iser_conn *iser_conn = ep->dd_data; ep 882 drivers/infiniband/ulp/iser/iscsi_iser.c iscsi_iser_ep_disconnect(struct iscsi_endpoint *ep) ep 884 drivers/infiniband/ulp/iser/iscsi_iser.c struct iser_conn *iser_conn = ep->dd_data; ep 886 drivers/infiniband/ulp/iser/iscsi_iser.c iser_info("ep %p iser conn %p\n", ep, iser_conn); ep 907 drivers/infiniband/ulp/iser/iscsi_iser.c iscsi_destroy_endpoint(ep); ep 474 drivers/infiniband/ulp/iser/iscsi_iser.h struct iscsi_endpoint *ep; ep 579 drivers/infiniband/ulp/iser/iser_verbs.c iscsi_destroy_endpoint(iser_conn->ep); ep 1790 drivers/input/joystick/xpad.c struct usb_endpoint_descriptor *ep = ep 1793 drivers/input/joystick/xpad.c if (usb_endpoint_xfer_int(ep)) { ep 1794 drivers/input/joystick/xpad.c if (usb_endpoint_dir_in(ep)) ep 1795 drivers/input/joystick/xpad.c ep_irq_in = ep; ep 1797 drivers/input/joystick/xpad.c ep_irq_out = ep; ep 187 drivers/input/misc/ati_remote2.c struct usb_endpoint_descriptor *ep[2]; ep 641 drivers/input/misc/ati_remote2.c pipe = usb_rcvintpipe(udev, ar2->ep[i]->bEndpointAddress); ep 647 drivers/input/misc/ati_remote2.c ar2, ar2->ep[i]->bInterval); ep 823 drivers/input/misc/ati_remote2.c ar2->ep[0] = &alt->endpoint[0].desc; ep 846 drivers/input/misc/ati_remote2.c ar2->ep[1] = &alt->endpoint[0].desc; ep 295 drivers/input/mouse/synaptics_usb.c struct usb_endpoint_descriptor *ep; ep 310 drivers/input/mouse/synaptics_usb.c ep = synusb_get_in_endpoint(intf->cur_altsetting); ep 311 drivers/input/mouse/synaptics_usb.c if (!ep) ep 350 drivers/input/mouse/synaptics_usb.c usb_rcvintpipe(udev, ep->bEndpointAddress), ep 353 drivers/input/mouse/synaptics_usb.c ep->bInterval); ep 1915 drivers/isdn/hardware/mISDN/hfcsusb.c struct usb_host_endpoint *ep; ep 1960 drivers/isdn/hardware/mISDN/hfcsusb.c ep = iface->endpoint; ep 1965 drivers/isdn/hardware/mISDN/hfcsusb.c ep_addr = ep->desc.bEndpointAddress; ep 1974 drivers/isdn/hardware/mISDN/hfcsusb.c attr = ep->desc.bmAttributes; ep 1990 drivers/isdn/hardware/mISDN/hfcsusb.c ep->desc.bInterval < vcf[17]) { ep 1994 drivers/isdn/hardware/mISDN/hfcsusb.c ep++; ep 2023 drivers/isdn/hardware/mISDN/hfcsusb.c ep = iface->endpoint; ep 2029 drivers/isdn/hardware/mISDN/hfcsusb.c ep_addr = ep->desc.bEndpointAddress; ep 2038 drivers/isdn/hardware/mISDN/hfcsusb.c ep++; ep 2041 drivers/isdn/hardware/mISDN/hfcsusb.c switch (ep->desc.bmAttributes) { ep 2044 drivers/isdn/hardware/mISDN/hfcsusb.c ep->desc.bEndpointAddress); ep 2046 drivers/isdn/hardware/mISDN/hfcsusb.c packet_size = le16_to_cpu(ep->desc.wMaxPacketSize); ep 2051 drivers/isdn/hardware/mISDN/hfcsusb.c ep->desc.bEndpointAddress); ep 2054 drivers/isdn/hardware/mISDN/hfcsusb.c ep->desc.bEndpointAddress); ep 2056 drivers/isdn/hardware/mISDN/hfcsusb.c packet_size = le16_to_cpu(ep->desc.wMaxPacketSize); ep 2061 drivers/isdn/hardware/mISDN/hfcsusb.c ep->desc.bEndpointAddress); ep 2064 drivers/isdn/hardware/mISDN/hfcsusb.c ep->desc.bEndpointAddress); ep 2066 drivers/isdn/hardware/mISDN/hfcsusb.c iso_packet_size = le16_to_cpu(ep->desc.wMaxPacketSize); ep 2076 drivers/isdn/hardware/mISDN/hfcsusb.c le16_to_cpu(ep->desc.wMaxPacketSize); ep 2077 drivers/isdn/hardware/mISDN/hfcsusb.c f->intervall = ep->desc.bInterval; ep 2079 drivers/isdn/hardware/mISDN/hfcsusb.c ep++; ep 575 drivers/media/i2c/adv748x/adv748x-core.c struct device_node *ep) ep 585 drivers/media/i2c/adv748x/adv748x-core.c ret = v4l2_fwnode_endpoint_parse(of_fwnode_handle(ep), &vep); ep 619 drivers/media/i2c/adv748x/adv748x-core.c struct of_endpoint ep; ep 625 drivers/media/i2c/adv748x/adv748x-core.c of_graph_parse_endpoint(ep_np, &ep); ep 626 drivers/media/i2c/adv748x/adv748x-core.c adv_info(state, "Endpoint %pOF on port %d", ep.local_node, ep 627 drivers/media/i2c/adv748x/adv748x-core.c ep.port); ep 629 drivers/media/i2c/adv748x/adv748x-core.c if (ep.port >= ADV748X_PORT_MAX) { ep 631 drivers/media/i2c/adv748x/adv748x-core.c ep.local_node, ep.port); ep 636 drivers/media/i2c/adv748x/adv748x-core.c if (state->endpoints[ep.port]) { ep 643 drivers/media/i2c/adv748x/adv748x-core.c state->endpoints[ep.port] = ep_np; ep 649 drivers/media/i2c/adv748x/adv748x-core.c if (ep.port < ADV748X_PORT_TXA) ep 655 drivers/media/i2c/adv748x/adv748x-core.c ret = adv748x_parse_csi2_lanes(state, ep.port, ep_np); ep 2362 drivers/media/i2c/imx319.c struct fwnode_handle *ep; ep 2370 drivers/media/i2c/imx319.c ep = fwnode_graph_get_next_endpoint(fwnode, NULL); ep 2371 drivers/media/i2c/imx319.c if (!ep) ep 2374 drivers/media/i2c/imx319.c ret = v4l2_fwnode_endpoint_alloc_parse(ep, &bus_cfg); ep 2415 drivers/media/i2c/imx319.c fwnode_handle_put(ep); ep 2420 drivers/media/i2c/imx319.c fwnode_handle_put(ep); ep 1662 drivers/media/i2c/imx355.c struct fwnode_handle *ep; ep 1670 drivers/media/i2c/imx355.c ep = fwnode_graph_get_next_endpoint(fwnode, NULL); ep 1671 drivers/media/i2c/imx355.c if (!ep) ep 1674 drivers/media/i2c/imx355.c ret = v4l2_fwnode_endpoint_alloc_parse(ep, &bus_cfg); ep 1715 drivers/media/i2c/imx355.c fwnode_handle_put(ep); ep 1720 drivers/media/i2c/imx355.c fwnode_handle_put(ep); ep 223 drivers/media/i2c/ov5640.c struct v4l2_fwnode_endpoint ep; /* the parsed DT endpoint info */ ep 1203 drivers/media/i2c/ov5640.c unsigned int flags = sensor->ep.bus.parallel.flags; ep 1828 drivers/media/i2c/ov5640.c if (sensor->ep.bus_type == V4L2_MBUS_CSI2_DPHY) { ep 1829 drivers/media/i2c/ov5640.c rate = rate / sensor->ep.bus.mipi_csi2.num_data_lanes; ep 1832 drivers/media/i2c/ov5640.c rate = rate / sensor->ep.bus.parallel.bus_width; ep 2004 drivers/media/i2c/ov5640.c if (sensor->ep.bus_type != V4L2_MBUS_CSI2_DPHY) ep 2051 drivers/media/i2c/ov5640.c if (sensor->ep.bus_type == V4L2_MBUS_CSI2_DPHY) { ep 2864 drivers/media/i2c/ov5640.c if (sensor->ep.bus_type == V4L2_MBUS_CSI2_DPHY) ep 3004 drivers/media/i2c/ov5640.c ret = v4l2_fwnode_endpoint_parse(endpoint, &sensor->ep); ep 92 drivers/media/i2c/ov5645.c struct v4l2_fwnode_endpoint ep; ep 1076 drivers/media/i2c/ov5645.c &ov5645->ep); ep 1085 drivers/media/i2c/ov5645.c if (ov5645->ep.bus_type != V4L2_MBUS_CSI2_DPHY) { ep 536 drivers/media/i2c/ov5647.c struct device_node *ep; ep 540 drivers/media/i2c/ov5647.c ep = of_graph_get_next_endpoint(np, NULL); ep 541 drivers/media/i2c/ov5647.c if (!ep) ep 544 drivers/media/i2c/ov5647.c ret = v4l2_fwnode_endpoint_parse(of_fwnode_handle(ep), &bus_cfg); ep 546 drivers/media/i2c/ov5647.c of_node_put(ep); ep 1006 drivers/media/i2c/ov5675.c struct fwnode_handle *ep; ep 1030 drivers/media/i2c/ov5675.c ep = fwnode_graph_get_next_endpoint(fwnode, NULL); ep 1031 drivers/media/i2c/ov5675.c if (!ep) ep 1034 drivers/media/i2c/ov5675.c ret = v4l2_fwnode_endpoint_alloc_parse(ep, &bus_cfg); ep 1035 drivers/media/i2c/ov5675.c fwnode_handle_put(ep); ep 67 drivers/media/i2c/ov7251.c struct v4l2_fwnode_endpoint ep; ep 1275 drivers/media/i2c/ov7251.c ret = v4l2_fwnode_endpoint_parse(endpoint, &ov7251->ep); ep 1282 drivers/media/i2c/ov7251.c if (ov7251->ep.bus_type != V4L2_MBUS_CSI2_DPHY) { ep 1284 drivers/media/i2c/ov7251.c ov7251->ep.bus_type, V4L2_MBUS_CSI2_DPHY); ep 1806 drivers/media/i2c/ov7670.c struct fwnode_handle *ep; ep 1816 drivers/media/i2c/ov7670.c ep = fwnode_graph_get_next_endpoint(fwnode, NULL); ep 1817 drivers/media/i2c/ov7670.c if (!ep) ep 1820 drivers/media/i2c/ov7670.c ret = v4l2_fwnode_endpoint_parse(ep, &bus_cfg); ep 1821 drivers/media/i2c/ov7670.c fwnode_handle_put(ep); ep 1097 drivers/media/i2c/ov8856.c struct fwnode_handle *ep; ep 1118 drivers/media/i2c/ov8856.c ep = fwnode_graph_get_next_endpoint(fwnode, NULL); ep 1119 drivers/media/i2c/ov8856.c if (!ep) ep 1122 drivers/media/i2c/ov8856.c ret = v4l2_fwnode_endpoint_alloc_parse(ep, &bus_cfg); ep 1123 drivers/media/i2c/ov8856.c fwnode_handle_put(ep); ep 1598 drivers/media/i2c/s5c73m3/s5c73m3-core.c struct v4l2_fwnode_endpoint ep = { .bus_type = 0 }; ep 1634 drivers/media/i2c/s5c73m3/s5c73m3-core.c ret = v4l2_fwnode_endpoint_parse(of_fwnode_handle(node_ep), &ep); ep 1639 drivers/media/i2c/s5c73m3/s5c73m3-core.c if (ep.bus_type != V4L2_MBUS_CSI2_DPHY) { ep 1647 drivers/media/i2c/s5c73m3/s5c73m3-core.c if (ep.bus.mipi_csi2.num_data_lanes != S5C73M3_MIPI_DATA_LANES) ep 1841 drivers/media/i2c/s5k5baf.c struct v4l2_fwnode_endpoint ep = { .bus_type = 0 }; ep 1867 drivers/media/i2c/s5k5baf.c ret = v4l2_fwnode_endpoint_parse(of_fwnode_handle(node_ep), &ep); ep 1872 drivers/media/i2c/s5k5baf.c state->bus_type = ep.bus_type; ep 1876 drivers/media/i2c/s5k5baf.c state->nlanes = ep.bus.mipi_csi2.num_data_lanes; ep 2753 drivers/media/i2c/smiapp/smiapp-core.c struct fwnode_handle *ep; ep 2762 drivers/media/i2c/smiapp/smiapp-core.c ep = fwnode_graph_get_next_endpoint(fwnode, NULL); ep 2763 drivers/media/i2c/smiapp/smiapp-core.c if (!ep) ep 2767 drivers/media/i2c/smiapp/smiapp-core.c rval = v4l2_fwnode_endpoint_alloc_parse(ep, &bus_cfg); ep 2771 drivers/media/i2c/smiapp/smiapp-core.c rval = v4l2_fwnode_endpoint_alloc_parse(ep, &bus_cfg); ep 2841 drivers/media/i2c/smiapp/smiapp-core.c fwnode_handle_put(ep); ep 2846 drivers/media/i2c/smiapp/smiapp-core.c fwnode_handle_put(ep); ep 369 drivers/media/i2c/st-mipid02.c struct v4l2_fwnode_endpoint *ep = &bridge->rx; ep 379 drivers/media/i2c/st-mipid02.c return pixel_clock * bpp / (2 * ep->bus.mipi_csi2.num_data_lanes); ep 412 drivers/media/i2c/st-mipid02.c struct v4l2_fwnode_endpoint *ep = &bridge->rx; ep 413 drivers/media/i2c/st-mipid02.c bool *polarities = ep->bus.mipi_csi2.lane_polarities; ep 416 drivers/media/i2c/st-mipid02.c if (ep->bus.mipi_csi2.clock_lane != 0) { ep 461 drivers/media/i2c/st-mipid02.c struct v4l2_fwnode_endpoint *ep = &bridge->rx; ep 462 drivers/media/i2c/st-mipid02.c bool are_lanes_swap = ep->bus.mipi_csi2.data_lanes[0] == 2; ep 463 drivers/media/i2c/st-mipid02.c bool *polarities = ep->bus.mipi_csi2.lane_polarities; ep 464 drivers/media/i2c/st-mipid02.c int nb = ep->bus.mipi_csi2.num_data_lanes; ep 489 drivers/media/i2c/st-mipid02.c struct v4l2_fwnode_endpoint *ep = &bridge->tx; ep 492 drivers/media/i2c/st-mipid02.c bridge->r.pix_width_ctrl = ep->bus.parallel.bus_width; ep 493 drivers/media/i2c/st-mipid02.c bridge->r.pix_width_ctrl_emb = ep->bus.parallel.bus_width; ep 494 drivers/media/i2c/st-mipid02.c if (ep->bus.parallel.flags & V4L2_MBUS_HSYNC_ACTIVE_HIGH) ep 496 drivers/media/i2c/st-mipid02.c if (ep->bus.parallel.flags & V4L2_MBUS_VSYNC_ACTIVE_HIGH) ep 845 drivers/media/i2c/st-mipid02.c struct v4l2_fwnode_endpoint ep = { .bus_type = V4L2_MBUS_CSI2_DPHY }; ep 859 drivers/media/i2c/st-mipid02.c ret = v4l2_fwnode_endpoint_parse(of_fwnode_handle(ep_node), &ep); ep 867 drivers/media/i2c/st-mipid02.c if (ep.bus.mipi_csi2.num_data_lanes > 2) { ep 869 drivers/media/i2c/st-mipid02.c ep.bus.mipi_csi2.num_data_lanes); ep 875 drivers/media/i2c/st-mipid02.c bridge->rx = ep; ep 909 drivers/media/i2c/st-mipid02.c struct v4l2_fwnode_endpoint ep = { .bus_type = V4L2_MBUS_PARALLEL }; ep 923 drivers/media/i2c/st-mipid02.c ret = v4l2_fwnode_endpoint_parse(of_fwnode_handle(ep_node), &ep); ep 930 drivers/media/i2c/st-mipid02.c bridge->tx = ep; ep 1899 drivers/media/i2c/tc358743.c struct device_node *ep; ep 1912 drivers/media/i2c/tc358743.c ep = of_graph_get_next_endpoint(dev->of_node, NULL); ep 1913 drivers/media/i2c/tc358743.c if (!ep) { ep 1918 drivers/media/i2c/tc358743.c ret = v4l2_fwnode_endpoint_alloc_parse(of_fwnode_handle(ep), &endpoint); ep 2019 drivers/media/i2c/tc358743.c of_node_put(ep); ep 2273 drivers/media/i2c/tda1997x.c struct device_node *ep; ep 2292 drivers/media/i2c/tda1997x.c ep = of_graph_get_next_endpoint(np, NULL); ep 2293 drivers/media/i2c/tda1997x.c if (!ep) ep 2296 drivers/media/i2c/tda1997x.c ret = v4l2_fwnode_endpoint_parse(of_fwnode_handle(ep), &bus_cfg); ep 2298 drivers/media/i2c/tda1997x.c of_node_put(ep); ep 2301 drivers/media/i2c/tda1997x.c of_node_put(ep); ep 1597 drivers/media/i2c/tvp5150.c struct device_node *ep; ep 1607 drivers/media/i2c/tvp5150.c ep = of_graph_get_next_endpoint(np, NULL); ep 1608 drivers/media/i2c/tvp5150.c if (!ep) ep 1611 drivers/media/i2c/tvp5150.c ret = v4l2_fwnode_endpoint_parse(of_fwnode_handle(ep), &bus_cfg); ep 1689 drivers/media/i2c/tvp5150.c of_node_put(ep); ep 1488 drivers/media/pci/intel/ipu3/ipu3-cio2.c struct fwnode_handle *ep; ep 1490 drivers/media/pci/intel/ipu3/ipu3-cio2.c ep = fwnode_graph_get_endpoint_by_id( ep 1494 drivers/media/pci/intel/ipu3/ipu3-cio2.c if (!ep) ep 1497 drivers/media/pci/intel/ipu3/ipu3-cio2.c ret = v4l2_fwnode_endpoint_parse(ep, &vep); ep 1511 drivers/media/pci/intel/ipu3/ipu3-cio2.c &cio2->notifier, ep, &s_asd->asd); ep 1515 drivers/media/pci/intel/ipu3/ipu3-cio2.c fwnode_handle_put(ep); ep 1520 drivers/media/pci/intel/ipu3/ipu3-cio2.c fwnode_handle_put(ep); ep 790 drivers/media/platform/atmel/atmel-isi.c struct v4l2_fwnode_endpoint ep = { .bus_type = 0 }; ep 803 drivers/media/platform/atmel/atmel-isi.c err = v4l2_fwnode_endpoint_parse(of_fwnode_handle(np), &ep); ep 810 drivers/media/platform/atmel/atmel-isi.c switch (ep.bus.parallel.bus_width) { ep 820 drivers/media/platform/atmel/atmel-isi.c ep.bus.parallel.bus_width); ep 824 drivers/media/platform/atmel/atmel-isi.c if (ep.bus.parallel.flags & V4L2_MBUS_HSYNC_ACTIVE_LOW) ep 826 drivers/media/platform/atmel/atmel-isi.c if (ep.bus.parallel.flags & V4L2_MBUS_VSYNC_ACTIVE_LOW) ep 828 drivers/media/platform/atmel/atmel-isi.c if (ep.bus.parallel.flags & V4L2_MBUS_PCLK_SAMPLE_FALLING) ep 831 drivers/media/platform/atmel/atmel-isi.c if (ep.bus_type == V4L2_MBUS_BT656) ep 1103 drivers/media/platform/atmel/atmel-isi.c struct device_node *ep = NULL; ep 1106 drivers/media/platform/atmel/atmel-isi.c ep = of_graph_get_next_endpoint(node, ep); ep 1107 drivers/media/platform/atmel/atmel-isi.c if (!ep) ep 1110 drivers/media/platform/atmel/atmel-isi.c remote = of_graph_get_remote_port_parent(ep); ep 1111 drivers/media/platform/atmel/atmel-isi.c of_node_put(ep); ep 366 drivers/media/platform/cadence/cdns-csi2rx.c struct device_node *ep; ep 369 drivers/media/platform/cadence/cdns-csi2rx.c ep = of_graph_get_endpoint_by_regs(csi2rx->dev->of_node, 0, 0); ep 370 drivers/media/platform/cadence/cdns-csi2rx.c if (!ep) ep 373 drivers/media/platform/cadence/cdns-csi2rx.c fwh = of_fwnode_handle(ep); ep 377 drivers/media/platform/cadence/cdns-csi2rx.c of_node_put(ep); ep 384 drivers/media/platform/cadence/cdns-csi2rx.c of_node_put(ep); ep 394 drivers/media/platform/cadence/cdns-csi2rx.c of_node_put(ep); ep 400 drivers/media/platform/cadence/cdns-csi2rx.c of_node_put(ep); ep 495 drivers/media/platform/cadence/cdns-csi2tx.c struct device_node *ep; ep 498 drivers/media/platform/cadence/cdns-csi2tx.c ep = of_graph_get_endpoint_by_regs(csi2tx->dev->of_node, 0, 0); ep 499 drivers/media/platform/cadence/cdns-csi2tx.c if (!ep) ep 502 drivers/media/platform/cadence/cdns-csi2tx.c ret = v4l2_fwnode_endpoint_parse(of_fwnode_handle(ep), &v4l2_ep); ep 536 drivers/media/platform/cadence/cdns-csi2tx.c of_node_put(ep); ep 168 drivers/media/platform/exynos4-is/fimc-is.c struct device_node *ep, *port; ep 179 drivers/media/platform/exynos4-is/fimc-is.c ep = of_graph_get_next_endpoint(node, NULL); ep 180 drivers/media/platform/exynos4-is/fimc-is.c if (!ep) ep 183 drivers/media/platform/exynos4-is/fimc-is.c port = of_graph_get_remote_port(ep); ep 184 drivers/media/platform/exynos4-is/fimc-is.c of_node_put(ep); ep 193 drivers/media/platform/exynos4-is/media-dev.c static int __fimc_pipeline_enable(struct exynos_media_pipeline *ep, ep 196 drivers/media/platform/exynos4-is/media-dev.c struct fimc_pipeline *p = to_fimc_pipeline(ep); ep 225 drivers/media/platform/exynos4-is/media-dev.c static int __fimc_pipeline_open(struct exynos_media_pipeline *ep, ep 229 drivers/media/platform/exynos4-is/media-dev.c struct fimc_pipeline *p = to_fimc_pipeline(ep); ep 248 drivers/media/platform/exynos4-is/media-dev.c return __fimc_pipeline_enable(ep, fmd); ep 257 drivers/media/platform/exynos4-is/media-dev.c static int __fimc_pipeline_close(struct exynos_media_pipeline *ep) ep 259 drivers/media/platform/exynos4-is/media-dev.c struct fimc_pipeline *p = to_fimc_pipeline(ep); ep 285 drivers/media/platform/exynos4-is/media-dev.c static int __fimc_pipeline_s_stream(struct exynos_media_pipeline *ep, bool on) ep 291 drivers/media/platform/exynos4-is/media-dev.c struct fimc_pipeline *p = to_fimc_pipeline(ep); ep 324 drivers/media/platform/exynos4-is/media-dev.c ret = __fimc_pipeline_enable(ep, fmd); ep 367 drivers/media/platform/exynos4-is/media-dev.c p->ep.ops = &fimc_pipeline_ops; ep 368 drivers/media/platform/exynos4-is/media-dev.c return &p->ep; ep 388 drivers/media/platform/exynos4-is/media-dev.c struct device_node *rem, *ep, *np; ep 393 drivers/media/platform/exynos4-is/media-dev.c ep = of_get_next_child(port, NULL); ep 394 drivers/media/platform/exynos4-is/media-dev.c if (!ep) ep 397 drivers/media/platform/exynos4-is/media-dev.c ret = v4l2_fwnode_endpoint_parse(of_fwnode_handle(ep), &endpoint); ep 399 drivers/media/platform/exynos4-is/media-dev.c of_node_put(ep); ep 404 drivers/media/platform/exynos4-is/media-dev.c of_node_put(ep); ep 410 drivers/media/platform/exynos4-is/media-dev.c rem = of_graph_get_remote_port_parent(ep); ep 411 drivers/media/platform/exynos4-is/media-dev.c of_node_put(ep); ep 414 drivers/media/platform/exynos4-is/media-dev.c ep); ep 557 drivers/media/platform/exynos4-is/media-dev.c struct exynos_media_pipeline *ep; ep 567 drivers/media/platform/exynos4-is/media-dev.c ep = fimc_md_pipeline_create(fmd); ep 568 drivers/media/platform/exynos4-is/media-dev.c if (!ep) ep 571 drivers/media/platform/exynos4-is/media-dev.c v4l2_set_subdev_hostdata(sd, ep); ep 585 drivers/media/platform/exynos4-is/media-dev.c struct exynos_media_pipeline *ep; ep 594 drivers/media/platform/exynos4-is/media-dev.c ep = fimc_md_pipeline_create(fmd); ep 595 drivers/media/platform/exynos4-is/media-dev.c if (!ep) ep 598 drivers/media/platform/exynos4-is/media-dev.c v4l2_set_subdev_hostdata(sd, ep); ep 641 drivers/media/platform/exynos4-is/media-dev.c struct exynos_media_pipeline *ep; ep 645 drivers/media/platform/exynos4-is/media-dev.c ep = fimc_md_pipeline_create(fmd); ep 646 drivers/media/platform/exynos4-is/media-dev.c if (!ep) ep 649 drivers/media/platform/exynos4-is/media-dev.c v4l2_set_subdev_hostdata(sd, ep); ep 58 drivers/media/platform/exynos4-is/media-dev.h struct exynos_media_pipeline ep; ep 64 drivers/media/platform/exynos4-is/media-dev.h #define to_fimc_pipeline(_ep) container_of(_ep, struct fimc_pipeline, ep) ep 196 drivers/media/platform/exynos4-is/media-dev.h struct exynos_media_pipeline *ep, ep 199 drivers/media/platform/exynos4-is/media-dev.h struct fimc_pipeline *p = to_fimc_pipeline(ep); ep 223 drivers/media/platform/marvell-ccic/mmp-driver.c struct fwnode_handle *ep; ep 277 drivers/media/platform/marvell-ccic/mmp-driver.c ep = fwnode_graph_get_next_endpoint(of_fwnode_handle(pdev->dev.of_node), ep 279 drivers/media/platform/marvell-ccic/mmp-driver.c if (!ep) ep 283 drivers/media/platform/marvell-ccic/mmp-driver.c mcam->asd.match.fwnode = fwnode_graph_get_remote_port_parent(ep); ep 285 drivers/media/platform/marvell-ccic/mmp-driver.c fwnode_handle_put(ep); ep 2159 drivers/media/platform/omap3isp/isp.c struct fwnode_handle *ep; ep 2164 drivers/media/platform/omap3isp/isp.c ep = fwnode_graph_get_endpoint_by_id( ep 2168 drivers/media/platform/omap3isp/isp.c if (ep) { ep 2176 drivers/media/platform/omap3isp/isp.c ret = v4l2_fwnode_endpoint_parse(ep, &vep); ep 2187 drivers/media/platform/omap3isp/isp.c &isp->notifier, ep, &isd->asd); ep 2190 drivers/media/platform/omap3isp/isp.c fwnode_handle_put(ep); ep 2201 drivers/media/platform/omap3isp/isp.c ep = fwnode_graph_get_endpoint_by_id( ep 2205 drivers/media/platform/omap3isp/isp.c if (!ep) ep 2209 drivers/media/platform/omap3isp/isp.c to_of_node(ep)); ep 2215 drivers/media/platform/omap3isp/isp.c ret = v4l2_fwnode_endpoint_parse(ep, &vep); ep 2222 drivers/media/platform/omap3isp/isp.c ret = v4l2_fwnode_endpoint_parse(ep, &vep); ep 2227 drivers/media/platform/omap3isp/isp.c ret = v4l2_fwnode_endpoint_parse(ep, &vep); ep 2239 drivers/media/platform/omap3isp/isp.c &isp->notifier, ep, &isd->asd); ep 2241 drivers/media/platform/omap3isp/isp.c fwnode_handle_put(ep); ep 2294 drivers/media/platform/pxa_camera.c struct v4l2_fwnode_endpoint ep = { .bus_type = 0 }; ep 2308 drivers/media/platform/pxa_camera.c err = v4l2_fwnode_endpoint_parse(of_fwnode_handle(np), &ep); ep 2314 drivers/media/platform/pxa_camera.c switch (ep.bus.parallel.bus_width) { ep 2334 drivers/media/platform/pxa_camera.c if (ep.bus.parallel.flags & V4L2_MBUS_MASTER) ep 2336 drivers/media/platform/pxa_camera.c if (ep.bus.parallel.flags & V4L2_MBUS_HSYNC_ACTIVE_HIGH) ep 2338 drivers/media/platform/pxa_camera.c if (ep.bus.parallel.flags & V4L2_MBUS_VSYNC_ACTIVE_HIGH) ep 2340 drivers/media/platform/pxa_camera.c if (ep.bus.parallel.flags & V4L2_MBUS_PCLK_SAMPLE_RISING) ep 2342 drivers/media/platform/pxa_camera.c if (ep.bus.parallel.flags & V4L2_MBUS_PCLK_SAMPLE_FALLING) ep 813 drivers/media/platform/rcar-vin/rcar-csi2.c struct device_node *ep; ep 817 drivers/media/platform/rcar-vin/rcar-csi2.c ep = of_graph_get_endpoint_by_regs(priv->dev->of_node, 0, 0); ep 818 drivers/media/platform/rcar-vin/rcar-csi2.c if (!ep) { ep 823 drivers/media/platform/rcar-vin/rcar-csi2.c ret = v4l2_fwnode_endpoint_parse(of_fwnode_handle(ep), &v4l2_ep); ep 826 drivers/media/platform/rcar-vin/rcar-csi2.c of_node_put(ep); ep 832 drivers/media/platform/rcar-vin/rcar-csi2.c of_node_put(ep); ep 837 drivers/media/platform/rcar-vin/rcar-csi2.c fwnode_graph_get_remote_endpoint(of_fwnode_handle(ep)); ep 840 drivers/media/platform/rcar-vin/rcar-csi2.c of_node_put(ep); ep 227 drivers/media/platform/rcar_drif.c struct rcar_drif_graph_ep ep; /* Endpoint V4L2 async data */ ep 988 drivers/media/platform/rcar_drif.c return v4l2_subdev_call(sdr->ep.subdev, tuner, enum_freq_bands, band); ep 996 drivers/media/platform/rcar_drif.c return v4l2_subdev_call(sdr->ep.subdev, tuner, g_frequency, f); ep 1004 drivers/media/platform/rcar_drif.c return v4l2_subdev_call(sdr->ep.subdev, tuner, s_frequency, f); ep 1012 drivers/media/platform/rcar_drif.c return v4l2_subdev_call(sdr->ep.subdev, tuner, g_tuner, vt); ep 1020 drivers/media/platform/rcar_drif.c return v4l2_subdev_call(sdr->ep.subdev, tuner, s_tuner, vt); ep 1108 drivers/media/platform/rcar_drif.c if (sdr->ep.asd.match.fwnode != ep 1115 drivers/media/platform/rcar_drif.c sdr->ep.subdev = subdev; ep 1129 drivers/media/platform/rcar_drif.c if (sdr->ep.subdev != subdev) { ep 1137 drivers/media/platform/rcar_drif.c sdr->ep.subdev = NULL; ep 1168 drivers/media/platform/rcar_drif.c sdr->ep.subdev->ctrl_handler, NULL, true); ep 1216 drivers/media/platform/rcar_drif.c struct fwnode_handle *fwnode, *ep; ep 1221 drivers/media/platform/rcar_drif.c ep = fwnode_graph_get_next_endpoint(of_fwnode_handle(sdr->dev->of_node), ep 1223 drivers/media/platform/rcar_drif.c if (!ep) ep 1226 drivers/media/platform/rcar_drif.c fwnode = fwnode_graph_get_remote_port_parent(ep); ep 1229 drivers/media/platform/rcar_drif.c fwnode_handle_put(ep); ep 1233 drivers/media/platform/rcar_drif.c sdr->ep.asd.match.fwnode = fwnode; ep 1234 drivers/media/platform/rcar_drif.c sdr->ep.asd.match_type = V4L2_ASYNC_MATCH_FWNODE; ep 1235 drivers/media/platform/rcar_drif.c ret = v4l2_async_notifier_add_subdev(notifier, &sdr->ep.asd); ep 1242 drivers/media/platform/rcar_drif.c rcar_drif_get_ep_properties(sdr, ep); ep 1245 drivers/media/platform/rcar_drif.c fwnode_handle_put(ep); ep 1539 drivers/media/platform/renesas-ceu.c struct device_node *ep, *remote; ep 1565 drivers/media/platform/renesas-ceu.c ep = of_graph_get_endpoint_by_regs(of, 0, i); ep 1566 drivers/media/platform/renesas-ceu.c if (!ep) { ep 1573 drivers/media/platform/renesas-ceu.c ret = v4l2_fwnode_endpoint_parse(of_fwnode_handle(ep), &fw_ep); ep 1584 drivers/media/platform/renesas-ceu.c remote = of_graph_get_remote_port_parent(ep); ep 1596 drivers/media/platform/renesas-ceu.c of_node_put(ep); ep 1603 drivers/media/platform/renesas-ceu.c of_node_put(ep); ep 1780 drivers/media/platform/stm32/stm32-dcmi.c struct device_node *ep = NULL; ep 1783 drivers/media/platform/stm32/stm32-dcmi.c ep = of_graph_get_next_endpoint(node, ep); ep 1784 drivers/media/platform/stm32/stm32-dcmi.c if (!ep) ep 1787 drivers/media/platform/stm32/stm32-dcmi.c remote = of_graph_get_remote_port_parent(ep); ep 1788 drivers/media/platform/stm32/stm32-dcmi.c of_node_put(ep); ep 1836 drivers/media/platform/stm32/stm32-dcmi.c struct v4l2_fwnode_endpoint ep = { .bus_type = 0 }; ep 1867 drivers/media/platform/stm32/stm32-dcmi.c ret = v4l2_fwnode_endpoint_parse(of_fwnode_handle(np), &ep); ep 1874 drivers/media/platform/stm32/stm32-dcmi.c if (ep.bus_type == V4L2_MBUS_CSI2_DPHY) { ep 1878 drivers/media/platform/stm32/stm32-dcmi.c dcmi->bus.flags = ep.bus.parallel.flags; ep 1879 drivers/media/platform/stm32/stm32-dcmi.c dcmi->bus.bus_width = ep.bus.parallel.bus_width; ep 1880 drivers/media/platform/stm32/stm32-dcmi.c dcmi->bus.data_shift = ep.bus.parallel.data_shift; ep 114 drivers/media/platform/sunxi/sun4i-csi/sun4i_csi.c struct fwnode_handle *ep; ep 119 drivers/media/platform/sunxi/sun4i-csi/sun4i_csi.c ep = fwnode_graph_get_endpoint_by_id(dev_fwnode(csi->dev), 0, 0, ep 121 drivers/media/platform/sunxi/sun4i-csi/sun4i_csi.c if (!ep) ep 124 drivers/media/platform/sunxi/sun4i-csi/sun4i_csi.c ret = v4l2_fwnode_endpoint_parse(ep, &vep); ep 131 drivers/media/platform/sunxi/sun4i-csi/sun4i_csi.c ep, &csi->asd); ep 138 drivers/media/platform/sunxi/sun4i-csi/sun4i_csi.c fwnode_handle_put(ep); ep 1623 drivers/media/platform/ti-vpe/cal.c struct device_node *ep = NULL; ep 1629 drivers/media/platform/ti-vpe/cal.c ep = of_get_next_child(parent, prev); ep 1630 drivers/media/platform/ti-vpe/cal.c if (!ep) ep 1632 drivers/media/platform/ti-vpe/cal.c prev = ep; ep 1633 drivers/media/platform/ti-vpe/cal.c } while (!of_node_name_eq(ep, "endpoint")); ep 1635 drivers/media/platform/ti-vpe/cal.c return ep; ep 369 drivers/media/platform/video-mux.c struct device_node *ep; ep 390 drivers/media/platform/video-mux.c for_each_endpoint_of_node(np, ep) { ep 393 drivers/media/platform/video-mux.c of_graph_parse_endpoint(ep, &endpoint); ep 78 drivers/media/platform/xilinx/xilinx-vipp.c struct fwnode_handle *ep = NULL; ep 85 drivers/media/platform/xilinx/xilinx-vipp.c ep = fwnode_graph_get_next_endpoint(entity->asd.match.fwnode, ep 86 drivers/media/platform/xilinx/xilinx-vipp.c ep); ep 87 drivers/media/platform/xilinx/xilinx-vipp.c if (ep == NULL) ep 90 drivers/media/platform/xilinx/xilinx-vipp.c dev_dbg(xdev->dev, "processing endpoint %p\n", ep); ep 92 drivers/media/platform/xilinx/xilinx-vipp.c ret = v4l2_fwnode_parse_link(ep, &link); ep 95 drivers/media/platform/xilinx/xilinx-vipp.c ep); ep 168 drivers/media/platform/xilinx/xilinx-vipp.c fwnode_handle_put(ep); ep 195 drivers/media/platform/xilinx/xilinx-vipp.c struct device_node *ep = NULL; ep 203 drivers/media/platform/xilinx/xilinx-vipp.c ep = of_graph_get_next_endpoint(node, ep); ep 204 drivers/media/platform/xilinx/xilinx-vipp.c if (ep == NULL) ep 207 drivers/media/platform/xilinx/xilinx-vipp.c dev_dbg(xdev->dev, "processing endpoint %pOF\n", ep); ep 209 drivers/media/platform/xilinx/xilinx-vipp.c ret = v4l2_fwnode_parse_link(of_fwnode_handle(ep), &link); ep 212 drivers/media/platform/xilinx/xilinx-vipp.c ep); ep 279 drivers/media/platform/xilinx/xilinx-vipp.c of_node_put(ep); ep 356 drivers/media/platform/xilinx/xilinx-vipp.c struct fwnode_handle *ep = NULL; ep 364 drivers/media/platform/xilinx/xilinx-vipp.c ep = fwnode_graph_get_next_endpoint(fwnode, ep); ep 365 drivers/media/platform/xilinx/xilinx-vipp.c if (ep == NULL) ep 368 drivers/media/platform/xilinx/xilinx-vipp.c dev_dbg(xdev->dev, "handling endpoint %p\n", ep); ep 370 drivers/media/platform/xilinx/xilinx-vipp.c remote = fwnode_graph_get_remote_port_parent(ep); ep 376 drivers/media/platform/xilinx/xilinx-vipp.c fwnode_handle_put(ep); ep 399 drivers/media/platform/xilinx/xilinx-vipp.c fwnode_handle_put(ep); ep 143 drivers/media/rc/igorplugusb.c struct usb_endpoint_descriptor *ep; ep 156 drivers/media/rc/igorplugusb.c ep = &idesc->endpoint[0].desc; ep 157 drivers/media/rc/igorplugusb.c if (!usb_endpoint_dir_in(ep) || !usb_endpoint_xfer_control(ep)) { ep 2079 drivers/media/rc/imon.c struct usb_endpoint_descriptor *ep; ep 2095 drivers/media/rc/imon.c ep = &iface_desc->endpoint[i].desc; ep 2096 drivers/media/rc/imon.c ep_dir = ep->bEndpointAddress & USB_ENDPOINT_DIR_MASK; ep 2097 drivers/media/rc/imon.c ep_type = usb_endpoint_type(ep); ep 2102 drivers/media/rc/imon.c rx_endpoint = ep; ep 2108 drivers/media/rc/imon.c tx_endpoint = ep; ep 133 drivers/media/rc/imon_raw.c struct usb_endpoint_descriptor *ep = &idesc->endpoint[i].desc; ep 135 drivers/media/rc/imon_raw.c if (usb_endpoint_is_int_in(ep)) { ep 136 drivers/media/rc/imon_raw.c ir_ep = ep; ep 1662 drivers/media/rc/mceusb.c struct usb_endpoint_descriptor *ep = NULL; ep 1689 drivers/media/rc/mceusb.c ep = &idesc->endpoint[i].desc; ep 1692 drivers/media/rc/mceusb.c if (usb_endpoint_is_bulk_in(ep)) { ep 1693 drivers/media/rc/mceusb.c ep_in = ep; ep 1695 drivers/media/rc/mceusb.c } else if (usb_endpoint_is_int_in(ep)) { ep 1696 drivers/media/rc/mceusb.c ep_in = ep; ep 1703 drivers/media/rc/mceusb.c if (usb_endpoint_is_bulk_out(ep)) { ep 1704 drivers/media/rc/mceusb.c ep_out = ep; ep 1706 drivers/media/rc/mceusb.c } else if (usb_endpoint_is_int_out(ep)) { ep 1707 drivers/media/rc/mceusb.c ep_out = ep; ep 981 drivers/media/rc/redrat3.c struct usb_endpoint_descriptor *ep; ep 993 drivers/media/rc/redrat3.c ep = &uhi->endpoint[i].desc; ep 994 drivers/media/rc/redrat3.c addr = ep->bEndpointAddress; ep 995 drivers/media/rc/redrat3.c attrs = ep->bmAttributes; ep 1001 drivers/media/rc/redrat3.c ep->bEndpointAddress); ep 1003 drivers/media/rc/redrat3.c if (ep->bEndpointAddress == RR3_NARROW_IN_EP_ADDR) ep 1004 drivers/media/rc/redrat3.c ep_narrow = ep; ep 1005 drivers/media/rc/redrat3.c if (ep->bEndpointAddress == RR3_WIDE_IN_EP_ADDR) ep 1006 drivers/media/rc/redrat3.c ep_wide = ep; ep 1014 drivers/media/rc/redrat3.c ep->bEndpointAddress); ep 1015 drivers/media/rc/redrat3.c ep_out = ep; ep 374 drivers/media/usb/dvb-usb-v2/lmedm04.c struct usb_host_endpoint *ep; ep 391 drivers/media/usb/dvb-usb-v2/lmedm04.c ep = usb_pipe_endpoint(d->udev, lme_int->lme_urb->pipe); ep 393 drivers/media/usb/dvb-usb-v2/lmedm04.c if (usb_endpoint_type(&ep->desc) == USB_ENDPOINT_XFER_BULK) ep 460 drivers/media/usb/dvb-usb/cxusb.c int ep = d->props.generic_bulk_ctrl_endpoint; ep 472 drivers/media/usb/dvb-usb/cxusb.c usb_rcvbulkpipe(d->udev, ep), ep 3929 drivers/media/usb/dvb-usb/dib0700_devices.c #define DIB0700_DEFAULT_STREAMING_CONFIG(ep) \ ep 3934 drivers/media/usb/dvb-usb/dib0700_devices.c .endpoint = ep, \ ep 340 drivers/media/usb/dvb-usb/m920x.c int ep = adap->props.fe[0].stream.endpoint; ep 347 drivers/media/usb/dvb-usb/m920x.c if ((ret = m920x_set_filter(adap->dev, ep, 1, enabled)) != 0) ep 351 drivers/media/usb/dvb-usb/m920x.c if ((ret = m920x_set_filter(adap->dev, ep, i + 2, 0)) != 0) ep 360 drivers/media/usb/dvb-usb/m920x.c if ((ret = m920x_set_filter(adap->dev, ep, filter + 2, m->filters[adap->id][i])) != 0) ep 758 drivers/media/usb/em28xx/em28xx-audio.c struct usb_endpoint_descriptor *e, *ep = NULL; ep 782 drivers/media/usb/em28xx/em28xx-audio.c ep = e; ep 787 drivers/media/usb/em28xx/em28xx-audio.c if (!ep) { ep 792 drivers/media/usb/em28xx/em28xx-audio.c ep_size = em28xx_audio_ep_packet_size(udev, ep); ep 793 drivers/media/usb/em28xx/em28xx-audio.c interval = 1 << (ep->bInterval - 1); ep 3600 drivers/media/usb/em28xx/em28xx-cards.c int alt, int ep, ep 3633 drivers/media/usb/em28xx/em28xx-cards.c e = &intf->altsetting[alt].endpoint[ep].desc; ep 3763 drivers/media/usb/em28xx/em28xx-cards.c int ep; ep 3765 drivers/media/usb/em28xx/em28xx-cards.c for (ep = 0; ep 3766 drivers/media/usb/em28xx/em28xx-cards.c ep < intf->altsetting[i].desc.bNumEndpoints; ep 3767 drivers/media/usb/em28xx/em28xx-cards.c ep++) ep 3769 drivers/media/usb/em28xx/em28xx-cards.c i, ep, ep 155 drivers/media/usb/gspca/gspca.c struct usb_endpoint_descriptor *ep) ep 164 drivers/media/usb/gspca/gspca.c buffer_len = le16_to_cpu(ep->wMaxPacketSize); ep 165 drivers/media/usb/gspca/gspca.c interval = ep->bInterval; ep 167 drivers/media/usb/gspca/gspca.c ep->bEndpointAddress, buffer_len, interval); ep 184 drivers/media/usb/gspca/gspca.c usb_rcvintpipe(dev, ep->bEndpointAddress), ep 212 drivers/media/usb/gspca/gspca.c struct usb_endpoint_descriptor *ep; ep 219 drivers/media/usb/gspca/gspca.c ep = &intf_desc->endpoint[i].desc; ep 220 drivers/media/usb/gspca/gspca.c if (usb_endpoint_dir_in(ep) && ep 221 drivers/media/usb/gspca/gspca.c usb_endpoint_xfer_int(ep)) { ep 223 drivers/media/usb/gspca/gspca.c alloc_and_submit_int_urb(gspca_dev, ep); ep 513 drivers/media/usb/gspca/gspca.c struct usb_host_endpoint *ep; ep 517 drivers/media/usb/gspca/gspca.c ep = &alt->endpoint[i]; ep 518 drivers/media/usb/gspca/gspca.c attr = ep->desc.bmAttributes & USB_ENDPOINT_XFERTYPE_MASK; ep 520 drivers/media/usb/gspca/gspca.c && ep->desc.wMaxPacketSize != 0 ep 521 drivers/media/usb/gspca/gspca.c && usb_endpoint_dir_in(&ep->desc) ep 522 drivers/media/usb/gspca/gspca.c && (xfer_ep < 0 || ep->desc.bEndpointAddress == xfer_ep)) ep 523 drivers/media/usb/gspca/gspca.c return ep; ep 579 drivers/media/usb/gspca/gspca.c struct usb_host_endpoint *ep; ep 594 drivers/media/usb/gspca/gspca.c ep = alt_xfer(&intf->altsetting[j], ep 597 drivers/media/usb/gspca/gspca.c if (ep == NULL) ep 599 drivers/media/usb/gspca/gspca.c if (ep->desc.bInterval == 0) { ep 603 drivers/media/usb/gspca/gspca.c psize = le16_to_cpu(ep->desc.wMaxPacketSize); ep 609 drivers/media/usb/gspca/gspca.c bandwidth /= 1 << (ep->desc.bInterval - 1); ep 660 drivers/media/usb/gspca/gspca.c struct usb_host_endpoint *ep) ep 666 drivers/media/usb/gspca/gspca.c psize = le16_to_cpu(ep->desc.wMaxPacketSize); ep 714 drivers/media/usb/gspca/gspca.c ep->desc.bEndpointAddress); ep 717 drivers/media/usb/gspca/gspca.c urb->interval = 1 << (ep->desc.bInterval - 1); ep 726 drivers/media/usb/gspca/gspca.c ep->desc.bEndpointAddress); ep 757 drivers/media/usb/gspca/gspca.c struct usb_host_endpoint *ep; ep 783 drivers/media/usb/gspca/gspca.c ep = alt_xfer(&intf->altsetting[gspca_dev->alt], xfer, ep 785 drivers/media/usb/gspca/gspca.c if (ep == NULL) { ep 1233 drivers/media/usb/tm6000/tm6000-cards.c int ep; ep 1235 drivers/media/usb/tm6000/tm6000-cards.c for (ep = 0; ep < interface->altsetting[i].desc.bNumEndpoints; ep++) { ep 1239 drivers/media/usb/tm6000/tm6000-cards.c e = &interface->altsetting[i].endpoint[ep]; ep 74 drivers/media/usb/usbtv/usbtv-core.c struct usb_host_endpoint *ep; ep 82 drivers/media/usb/usbtv/usbtv-core.c ep = &intf->altsetting[1].endpoint[0]; ep 86 drivers/media/usb/usbtv/usbtv-core.c size = usb_endpoint_maxp(&ep->desc); ep 87 drivers/media/usb/usbtv/usbtv-core.c size = size * usb_endpoint_maxp_mult(&ep->desc); ep 226 drivers/media/usb/uvc/uvc_driver.c struct usb_host_endpoint *ep; ep 230 drivers/media/usb/uvc/uvc_driver.c ep = &alts->endpoint[i]; ep 231 drivers/media/usb/uvc/uvc_driver.c if (ep->desc.bEndpointAddress == epaddr) ep 232 drivers/media/usb/uvc/uvc_driver.c return ep; ep 756 drivers/media/usb/uvc/uvc_driver.c struct usb_host_endpoint *ep = &alts->endpoint[i]; ep 758 drivers/media/usb/uvc/uvc_driver.c if (ep->extralen == 0) ep 761 drivers/media/usb/uvc/uvc_driver.c if (ep->extralen > 2 && ep 762 drivers/media/usb/uvc/uvc_driver.c ep->extra[1] == USB_DT_CS_INTERFACE) { ep 939 drivers/media/usb/uvc/uvc_driver.c struct usb_host_endpoint *ep; ep 941 drivers/media/usb/uvc/uvc_driver.c ep = uvc_find_endpoint(alts, ep 943 drivers/media/usb/uvc/uvc_driver.c if (ep == NULL) ep 946 drivers/media/usb/uvc/uvc_driver.c psize = le16_to_cpu(ep->desc.wMaxPacketSize); ep 1367 drivers/media/usb/uvc/uvc_driver.c struct usb_host_endpoint *ep = &alts->endpoint[0]; ep 1368 drivers/media/usb/uvc/uvc_driver.c struct usb_endpoint_descriptor *desc = &ep->desc; ep 1375 drivers/media/usb/uvc/uvc_driver.c dev->int_ep = ep; ep 254 drivers/media/usb/uvc/uvc_status.c struct usb_host_endpoint *ep = dev->int_ep; ep 258 drivers/media/usb/uvc/uvc_status.c if (ep == NULL) ep 273 drivers/media/usb/uvc/uvc_status.c pipe = usb_rcvintpipe(dev->udev, ep->desc.bEndpointAddress); ep 278 drivers/media/usb/uvc/uvc_status.c interval = ep->desc.bInterval; ep 1676 drivers/media/usb/uvc/uvc_video.c struct usb_host_endpoint *ep) ep 1684 drivers/media/usb/uvc/uvc_video.c return le16_to_cpu(ep->ss_ep_comp.wBytesPerInterval); ep 1686 drivers/media/usb/uvc/uvc_video.c psize = usb_endpoint_maxp(&ep->desc); ep 1687 drivers/media/usb/uvc/uvc_video.c mult = usb_endpoint_maxp_mult(&ep->desc); ep 1690 drivers/media/usb/uvc/uvc_video.c psize = usb_endpoint_maxp(&ep->desc); ep 1693 drivers/media/usb/uvc/uvc_video.c psize = usb_endpoint_maxp(&ep->desc); ep 1703 drivers/media/usb/uvc/uvc_video.c struct usb_host_endpoint *ep, gfp_t gfp_flags) ep 1711 drivers/media/usb/uvc/uvc_video.c psize = uvc_endpoint_max_bpi(stream->dev->udev, ep); ep 1730 drivers/media/usb/uvc/uvc_video.c ep->desc.bEndpointAddress); ep 1737 drivers/media/usb/uvc/uvc_video.c urb->interval = ep->desc.bInterval; ep 1759 drivers/media/usb/uvc/uvc_video.c struct usb_host_endpoint *ep, gfp_t gfp_flags) ep 1767 drivers/media/usb/uvc/uvc_video.c psize = usb_endpoint_maxp(&ep->desc); ep 1777 drivers/media/usb/uvc/uvc_video.c if (usb_endpoint_dir_in(&ep->desc)) ep 1779 drivers/media/usb/uvc/uvc_video.c ep->desc.bEndpointAddress); ep 1782 drivers/media/usb/uvc/uvc_video.c ep->desc.bEndpointAddress); ep 1814 drivers/media/usb/uvc/uvc_video.c struct usb_host_endpoint *ep; ep 1851 drivers/media/usb/uvc/uvc_video.c ep = uvc_find_endpoint(alts, ep 1853 drivers/media/usb/uvc/uvc_video.c if (ep == NULL) ep 1857 drivers/media/usb/uvc/uvc_video.c psize = uvc_endpoint_max_bpi(stream->dev->udev, ep); ep 1861 drivers/media/usb/uvc/uvc_video.c best_ep = ep; ep 1881 drivers/media/usb/uvc/uvc_video.c ep = uvc_find_endpoint(&intf->altsetting[0], ep 1883 drivers/media/usb/uvc/uvc_video.c if (ep == NULL) ep 1886 drivers/media/usb/uvc/uvc_video.c ret = uvc_init_video_bulk(stream, ep, gfp_flags); ep 683 drivers/media/v4l2-core/v4l2-fwnode.c struct fwnode_endpoint ep; ep 685 drivers/media/v4l2-core/v4l2-fwnode.c ret = fwnode_graph_parse_endpoint(fwnode, &ep); ep 689 drivers/media/v4l2-core/v4l2-fwnode.c if (ep.port != port) ep 44 drivers/misc/mic/scif/scif_api.c struct scif_endpt *ep; ep 48 drivers/misc/mic/scif/scif_api.c ep = kzalloc(sizeof(*ep), GFP_KERNEL); ep 49 drivers/misc/mic/scif/scif_api.c if (!ep) ep 52 drivers/misc/mic/scif/scif_api.c ep->qp_info.qp = kzalloc(sizeof(*ep->qp_info.qp), GFP_KERNEL); ep 53 drivers/misc/mic/scif/scif_api.c if (!ep->qp_info.qp) ep 56 drivers/misc/mic/scif/scif_api.c err = scif_anon_inode_getfile(ep); ep 60 drivers/misc/mic/scif/scif_api.c spin_lock_init(&ep->lock); ep 61 drivers/misc/mic/scif/scif_api.c mutex_init(&ep->sendlock); ep 62 drivers/misc/mic/scif/scif_api.c mutex_init(&ep->recvlock); ep 64 drivers/misc/mic/scif/scif_api.c scif_rma_ep_init(ep); ep 65 drivers/misc/mic/scif/scif_api.c ep->state = SCIFEP_UNBOUND; ep 67 drivers/misc/mic/scif/scif_api.c "SCIFAPI open: ep %p success\n", ep); ep 68 drivers/misc/mic/scif/scif_api.c return ep; ep 71 drivers/misc/mic/scif/scif_api.c kfree(ep->qp_info.qp); ep 73 drivers/misc/mic/scif/scif_api.c kfree(ep); ep 83 drivers/misc/mic/scif/scif_api.c static struct scif_endpt *scif_disconnect_ep(struct scif_endpt *ep) ep 99 drivers/misc/mic/scif/scif_api.c wake_up_interruptible(&ep->sendwq); ep 100 drivers/misc/mic/scif/scif_api.c wake_up_interruptible(&ep->recvwq); ep 101 drivers/misc/mic/scif/scif_api.c mutex_lock(&ep->sendlock); ep 102 drivers/misc/mic/scif/scif_api.c mutex_unlock(&ep->sendlock); ep 103 drivers/misc/mic/scif/scif_api.c mutex_lock(&ep->recvlock); ep 104 drivers/misc/mic/scif/scif_api.c mutex_unlock(&ep->recvlock); ep 110 drivers/misc/mic/scif/scif_api.c if (tmpep == ep) { ep 113 drivers/misc/mic/scif/scif_api.c spin_lock(&ep->lock); ep 127 drivers/misc/mic/scif/scif_api.c if (tmpep == ep) { ep 136 drivers/misc/mic/scif/scif_api.c init_completion(&ep->discon); ep 138 drivers/misc/mic/scif/scif_api.c msg.src = ep->port; ep 139 drivers/misc/mic/scif/scif_api.c msg.dst = ep->peer; ep 140 drivers/misc/mic/scif/scif_api.c msg.payload[0] = (u64)ep; ep 141 drivers/misc/mic/scif/scif_api.c msg.payload[1] = ep->remote_ep; ep 143 drivers/misc/mic/scif/scif_api.c err = scif_nodeqp_send(ep->remote_dev, &msg); ep 144 drivers/misc/mic/scif/scif_api.c spin_unlock(&ep->lock); ep 149 drivers/misc/mic/scif/scif_api.c wait_for_completion_timeout(&ep->discon, ep 151 drivers/misc/mic/scif/scif_api.c return ep; ep 156 drivers/misc/mic/scif/scif_api.c struct scif_endpt *ep = (struct scif_endpt *)epd; ep 163 drivers/misc/mic/scif/scif_api.c ep, scif_ep_states[ep->state]); ep 165 drivers/misc/mic/scif/scif_api.c spin_lock(&ep->lock); ep 166 drivers/misc/mic/scif/scif_api.c flush_conn = (ep->conn_async_state == ASYNC_CONN_INPROGRESS); ep 167 drivers/misc/mic/scif/scif_api.c spin_unlock(&ep->lock); ep 172 drivers/misc/mic/scif/scif_api.c spin_lock(&ep->lock); ep 173 drivers/misc/mic/scif/scif_api.c oldstate = ep->state; ep 175 drivers/misc/mic/scif/scif_api.c ep->state = SCIFEP_CLOSING; ep 183 drivers/misc/mic/scif/scif_api.c spin_unlock(&ep->lock); ep 189 drivers/misc/mic/scif/scif_api.c if (tmpep == ep) { ep 199 drivers/misc/mic/scif/scif_api.c spin_unlock(&ep->lock); ep 205 drivers/misc/mic/scif/scif_api.c spin_unlock(&ep->lock); ep 207 drivers/misc/mic/scif/scif_api.c scif_disconnect_ep(ep); ep 217 drivers/misc/mic/scif/scif_api.c spin_unlock(&ep->lock); ep 223 drivers/misc/mic/scif/scif_api.c if (tmpep == ep) ep 227 drivers/misc/mic/scif/scif_api.c while (ep->acceptcnt) { ep 228 drivers/misc/mic/scif/scif_api.c aep = list_first_entry(&ep->li_accept, ep 262 drivers/misc/mic/scif/scif_api.c ep->acceptcnt--; ep 265 drivers/misc/mic/scif/scif_api.c spin_lock(&ep->lock); ep 269 drivers/misc/mic/scif/scif_api.c while (ep->conreqcnt) { ep 270 drivers/misc/mic/scif/scif_api.c conreq = list_first_entry(&ep->conlist, ep 286 drivers/misc/mic/scif/scif_api.c ep->conreqcnt--; ep 290 drivers/misc/mic/scif/scif_api.c spin_unlock(&ep->lock); ep 292 drivers/misc/mic/scif/scif_api.c wake_up_interruptible(&ep->conwq); ep 296 drivers/misc/mic/scif/scif_api.c scif_put_port(ep->port.port); ep 297 drivers/misc/mic/scif/scif_api.c scif_anon_inode_fput(ep); ep 298 drivers/misc/mic/scif/scif_api.c scif_teardown_ep(ep); ep 299 drivers/misc/mic/scif/scif_api.c scif_add_epd_to_zombie_list(ep, !SCIF_EPLOCK_HELD); ep 311 drivers/misc/mic/scif/scif_api.c struct scif_endpt *ep = (struct scif_endpt *)epd; ep 313 drivers/misc/mic/scif/scif_api.c switch (ep->state) { ep 316 drivers/misc/mic/scif/scif_api.c ep->state = SCIFEP_CLLISTEN; ep 319 drivers/misc/mic/scif/scif_api.c wake_up_interruptible(&ep->conwq); ep 330 drivers/misc/mic/scif/scif_api.c struct scif_endpt *ep = (struct scif_endpt *)epd; ep 336 drivers/misc/mic/scif/scif_api.c ep, scif_ep_states[ep->state], pn); ep 349 drivers/misc/mic/scif/scif_api.c spin_lock(&ep->lock); ep 350 drivers/misc/mic/scif/scif_api.c if (ep->state == SCIFEP_BOUND) { ep 353 drivers/misc/mic/scif/scif_api.c } else if (ep->state != SCIFEP_UNBOUND) { ep 371 drivers/misc/mic/scif/scif_api.c ep->state = SCIFEP_BOUND; ep 372 drivers/misc/mic/scif/scif_api.c ep->port.node = scif_info.nodeid; ep 373 drivers/misc/mic/scif/scif_api.c ep->port.port = pn; ep 374 drivers/misc/mic/scif/scif_api.c ep->conn_async_state = ASYNC_CONN_IDLE; ep 379 drivers/misc/mic/scif/scif_api.c spin_unlock(&ep->lock); ep 387 drivers/misc/mic/scif/scif_api.c struct scif_endpt *ep = (struct scif_endpt *)epd; ep 390 drivers/misc/mic/scif/scif_api.c "SCIFAPI listen: ep %p %s\n", ep, scif_ep_states[ep->state]); ep 391 drivers/misc/mic/scif/scif_api.c spin_lock(&ep->lock); ep 392 drivers/misc/mic/scif/scif_api.c switch (ep->state) { ep 398 drivers/misc/mic/scif/scif_api.c spin_unlock(&ep->lock); ep 404 drivers/misc/mic/scif/scif_api.c spin_unlock(&ep->lock); ep 410 drivers/misc/mic/scif/scif_api.c ep->state = SCIFEP_LISTENING; ep 411 drivers/misc/mic/scif/scif_api.c ep->backlog = backlog; ep 413 drivers/misc/mic/scif/scif_api.c ep->conreqcnt = 0; ep 414 drivers/misc/mic/scif/scif_api.c ep->acceptcnt = 0; ep 415 drivers/misc/mic/scif/scif_api.c INIT_LIST_HEAD(&ep->conlist); ep 416 drivers/misc/mic/scif/scif_api.c init_waitqueue_head(&ep->conwq); ep 417 drivers/misc/mic/scif/scif_api.c INIT_LIST_HEAD(&ep->li_accept); ep 418 drivers/misc/mic/scif/scif_api.c spin_unlock(&ep->lock); ep 424 drivers/misc/mic/scif/scif_api.c scif_teardown_ep(ep); ep 425 drivers/misc/mic/scif/scif_api.c ep->qp_info.qp = NULL; ep 428 drivers/misc/mic/scif/scif_api.c list_add_tail(&ep->list, &scif_info.listen); ep 462 drivers/misc/mic/scif/scif_api.c static int scif_conn_func(struct scif_endpt *ep) ep 468 drivers/misc/mic/scif/scif_api.c err = scif_reserve_dma_chan(ep); ep 470 drivers/misc/mic/scif/scif_api.c dev_err(&ep->remote_dev->sdev->dev, ep 472 drivers/misc/mic/scif/scif_api.c ep->state = SCIFEP_BOUND; ep 476 drivers/misc/mic/scif/scif_api.c err = scif_setup_qp_connect(ep->qp_info.qp, &ep->qp_info.qp_offset, ep 477 drivers/misc/mic/scif/scif_api.c SCIF_ENDPT_QP_SIZE, ep->remote_dev); ep 479 drivers/misc/mic/scif/scif_api.c dev_err(&ep->remote_dev->sdev->dev, ep 481 drivers/misc/mic/scif/scif_api.c __func__, err, ep->qp_info.qp_offset); ep 482 drivers/misc/mic/scif/scif_api.c ep->state = SCIFEP_BOUND; ep 486 drivers/misc/mic/scif/scif_api.c spdev = scif_get_peer_dev(ep->remote_dev); ep 492 drivers/misc/mic/scif/scif_api.c msg.src = ep->port; ep 493 drivers/misc/mic/scif/scif_api.c msg.dst = ep->conn_port; ep 495 drivers/misc/mic/scif/scif_api.c msg.payload[0] = (u64)ep; ep 496 drivers/misc/mic/scif/scif_api.c msg.payload[1] = ep->qp_info.qp_offset; ep 497 drivers/misc/mic/scif/scif_api.c err = _scif_nodeqp_send(ep->remote_dev, &msg); ep 505 drivers/misc/mic/scif/scif_api.c err = wait_event_timeout(ep->conwq, ep->state != SCIFEP_CONNECTING, ep 508 drivers/misc/mic/scif/scif_api.c dev_err(&ep->remote_dev->sdev->dev, ep 510 drivers/misc/mic/scif/scif_api.c ep->state = SCIFEP_BOUND; ep 512 drivers/misc/mic/scif/scif_api.c spdev = scif_get_peer_dev(ep->remote_dev); ep 517 drivers/misc/mic/scif/scif_api.c if (ep->state == SCIFEP_MAPPING) { ep 518 drivers/misc/mic/scif/scif_api.c err = scif_setup_qp_connect_response(ep->remote_dev, ep 519 drivers/misc/mic/scif/scif_api.c ep->qp_info.qp, ep 520 drivers/misc/mic/scif/scif_api.c ep->qp_info.gnt_pld); ep 526 drivers/misc/mic/scif/scif_api.c dev_err(&ep->remote_dev->sdev->dev, ep 529 drivers/misc/mic/scif/scif_api.c msg.payload[0] = ep->remote_ep; ep 530 drivers/misc/mic/scif/scif_api.c _scif_nodeqp_send(ep->remote_dev, &msg); ep 531 drivers/misc/mic/scif/scif_api.c ep->state = SCIFEP_BOUND; ep 536 drivers/misc/mic/scif/scif_api.c msg.payload[0] = ep->remote_ep; ep 537 drivers/misc/mic/scif/scif_api.c err = _scif_nodeqp_send(ep->remote_dev, &msg); ep 539 drivers/misc/mic/scif/scif_api.c ep->state = SCIFEP_BOUND; ep 542 drivers/misc/mic/scif/scif_api.c ep->state = SCIFEP_CONNECTED; ep 544 drivers/misc/mic/scif/scif_api.c list_add_tail(&ep->list, &scif_info.connected); ep 546 drivers/misc/mic/scif/scif_api.c dev_dbg(&ep->remote_dev->sdev->dev, ep 547 drivers/misc/mic/scif/scif_api.c "SCIFAPI connect: ep %p connected\n", ep); ep 548 drivers/misc/mic/scif/scif_api.c } else if (ep->state == SCIFEP_BOUND) { ep 549 drivers/misc/mic/scif/scif_api.c dev_dbg(&ep->remote_dev->sdev->dev, ep 550 drivers/misc/mic/scif/scif_api.c "SCIFAPI connect: ep %p connection refused\n", ep); ep 559 drivers/misc/mic/scif/scif_api.c scif_cleanup_ep_qp(ep); ep 572 drivers/misc/mic/scif/scif_api.c struct scif_endpt *ep; ep 575 drivers/misc/mic/scif/scif_api.c ep = NULL; ep 578 drivers/misc/mic/scif/scif_api.c ep = list_first_entry(&scif_info.nb_connect_list, ep 580 drivers/misc/mic/scif/scif_api.c list_del(&ep->conn_list); ep 583 drivers/misc/mic/scif/scif_api.c if (ep) { ep 584 drivers/misc/mic/scif/scif_api.c ep->conn_err = scif_conn_func(ep); ep 585 drivers/misc/mic/scif/scif_api.c wake_up_interruptible(&ep->conn_pend_wq); ep 587 drivers/misc/mic/scif/scif_api.c } while (ep); ep 592 drivers/misc/mic/scif/scif_api.c struct scif_endpt *ep = (struct scif_endpt *)epd; ep 597 drivers/misc/mic/scif/scif_api.c dev_dbg(scif_info.mdev.this_device, "SCIFAPI connect: ep %p %s\n", ep, ep 598 drivers/misc/mic/scif/scif_api.c scif_ep_states[ep->state]); ep 612 drivers/misc/mic/scif/scif_api.c spin_lock(&ep->lock); ep 613 drivers/misc/mic/scif/scif_api.c switch (ep->state) { ep 619 drivers/misc/mic/scif/scif_api.c if (ep->conn_async_state == ASYNC_CONN_INPROGRESS) ep 620 drivers/misc/mic/scif/scif_api.c ep->conn_async_state = ASYNC_CONN_FLUSH_WORK; ep 630 drivers/misc/mic/scif/scif_api.c if (ep->conn_async_state == ASYNC_CONN_INPROGRESS) ep 636 drivers/misc/mic/scif/scif_api.c if (ep->conn_async_state == ASYNC_CONN_INPROGRESS) ep 637 drivers/misc/mic/scif/scif_api.c ep->conn_async_state = ASYNC_CONN_FLUSH_WORK; ep 645 drivers/misc/mic/scif/scif_api.c ep->port.port = err; ep 646 drivers/misc/mic/scif/scif_api.c ep->port.node = scif_info.nodeid; ep 647 drivers/misc/mic/scif/scif_api.c ep->conn_async_state = ASYNC_CONN_IDLE; ep 662 drivers/misc/mic/scif/scif_api.c if (ep->conn_async_state == ASYNC_CONN_INPROGRESS) { ep 663 drivers/misc/mic/scif/scif_api.c ep->conn_async_state = ASYNC_CONN_FLUSH_WORK; ep 664 drivers/misc/mic/scif/scif_api.c } else if (ep->conn_async_state == ASYNC_CONN_FLUSH_WORK) { ep 667 drivers/misc/mic/scif/scif_api.c ep->conn_port = *dst; ep 668 drivers/misc/mic/scif/scif_api.c init_waitqueue_head(&ep->sendwq); ep 669 drivers/misc/mic/scif/scif_api.c init_waitqueue_head(&ep->recvwq); ep 670 drivers/misc/mic/scif/scif_api.c init_waitqueue_head(&ep->conwq); ep 671 drivers/misc/mic/scif/scif_api.c ep->conn_async_state = 0; ep 674 drivers/misc/mic/scif/scif_api.c ep->conn_async_state = ASYNC_CONN_INPROGRESS; ep 679 drivers/misc/mic/scif/scif_api.c if (err || ep->conn_async_state == ASYNC_CONN_FLUSH_WORK) ep 682 drivers/misc/mic/scif/scif_api.c ep->state = SCIFEP_CONNECTING; ep 683 drivers/misc/mic/scif/scif_api.c ep->remote_dev = &scif_dev[dst->node]; ep 684 drivers/misc/mic/scif/scif_api.c ep->qp_info.qp->magic = SCIFEP_MAGIC; ep 685 drivers/misc/mic/scif/scif_api.c if (ep->conn_async_state == ASYNC_CONN_INPROGRESS) { ep 686 drivers/misc/mic/scif/scif_api.c init_waitqueue_head(&ep->conn_pend_wq); ep 688 drivers/misc/mic/scif/scif_api.c list_add_tail(&ep->conn_list, &scif_info.nb_connect_list); ep 694 drivers/misc/mic/scif/scif_api.c spin_unlock(&ep->lock); ep 698 drivers/misc/mic/scif/scif_api.c } else if (ep->conn_async_state == ASYNC_CONN_FLUSH_WORK) { ep 700 drivers/misc/mic/scif/scif_api.c err = ep->conn_err; ep 701 drivers/misc/mic/scif/scif_api.c spin_lock(&ep->lock); ep 702 drivers/misc/mic/scif/scif_api.c ep->conn_async_state = ASYNC_CONN_IDLE; ep 703 drivers/misc/mic/scif/scif_api.c spin_unlock(&ep->lock); ep 705 drivers/misc/mic/scif/scif_api.c err = scif_conn_func(ep); ep 938 drivers/misc/mic/scif/scif_api.c struct scif_endpt *ep = (struct scif_endpt *)epd; ep 942 drivers/misc/mic/scif/scif_api.c struct scif_qp *qp = ep->qp_info.qp; ep 947 drivers/misc/mic/scif/scif_api.c spin_lock(&ep->lock); ep 948 drivers/misc/mic/scif/scif_api.c while (sent_len != len && SCIFEP_CONNECTED == ep->state) { ep 963 drivers/misc/mic/scif/scif_api.c notif_msg.src = ep->port; ep 965 drivers/misc/mic/scif/scif_api.c notif_msg.payload[0] = ep->remote_ep; ep 966 drivers/misc/mic/scif/scif_api.c ret = _scif_nodeqp_send(ep->remote_dev, ¬if_msg); ep 978 drivers/misc/mic/scif/scif_api.c spin_unlock(&ep->lock); ep 981 drivers/misc/mic/scif/scif_api.c wait_event_interruptible(ep->sendwq, ep 982 drivers/misc/mic/scif/scif_api.c (SCIFEP_CONNECTED != ep->state) || ep 985 drivers/misc/mic/scif/scif_api.c spin_lock(&ep->lock); ep 991 drivers/misc/mic/scif/scif_api.c else if (!ret && SCIFEP_CONNECTED != ep->state) ep 992 drivers/misc/mic/scif/scif_api.c ret = SCIFEP_DISCONNECTED == ep->state ? ep 994 drivers/misc/mic/scif/scif_api.c spin_unlock(&ep->lock); ep 1001 drivers/misc/mic/scif/scif_api.c struct scif_endpt *ep = (struct scif_endpt *)epd; ep 1005 drivers/misc/mic/scif/scif_api.c struct scif_qp *qp = ep->qp_info.qp; ep 1009 drivers/misc/mic/scif/scif_api.c spin_lock(&ep->lock); ep 1010 drivers/misc/mic/scif/scif_api.c while (remaining_len && (SCIFEP_CONNECTED == ep->state || ep 1011 drivers/misc/mic/scif/scif_api.c SCIFEP_DISCONNECTED == ep->state)) { ep 1022 drivers/misc/mic/scif/scif_api.c if (ep->state == SCIFEP_CONNECTED) { ep 1035 drivers/misc/mic/scif/scif_api.c notif_msg.src = ep->port; ep 1037 drivers/misc/mic/scif/scif_api.c notif_msg.payload[0] = ep->remote_ep; ep 1038 drivers/misc/mic/scif/scif_api.c ret = _scif_nodeqp_send(ep->remote_dev, ep 1051 drivers/misc/mic/scif/scif_api.c if (ep->state == SCIFEP_DISCONNECTED) ep 1060 drivers/misc/mic/scif/scif_api.c spin_unlock(&ep->lock); ep 1066 drivers/misc/mic/scif/scif_api.c wait_event_interruptible(ep->recvwq, ep 1067 drivers/misc/mic/scif/scif_api.c SCIFEP_CONNECTED != ep->state || ep 1071 drivers/misc/mic/scif/scif_api.c spin_lock(&ep->lock); ep 1077 drivers/misc/mic/scif/scif_api.c else if (!ret && ep->state != SCIFEP_CONNECTED) ep 1078 drivers/misc/mic/scif/scif_api.c ret = ep->state == SCIFEP_DISCONNECTED ? ep 1080 drivers/misc/mic/scif/scif_api.c spin_unlock(&ep->lock); ep 1096 drivers/misc/mic/scif/scif_api.c struct scif_endpt *ep = (struct scif_endpt *)epd; ep 1104 drivers/misc/mic/scif/scif_api.c "SCIFAPI send (U): ep %p %s\n", ep, scif_ep_states[ep->state]); ep 1122 drivers/misc/mic/scif/scif_api.c mutex_lock(&ep->sendlock); ep 1139 drivers/misc/mic/scif/scif_api.c mutex_unlock(&ep->sendlock); ep 1157 drivers/misc/mic/scif/scif_api.c struct scif_endpt *ep = (struct scif_endpt *)epd; ep 1165 drivers/misc/mic/scif/scif_api.c "SCIFAPI recv (U): ep %p %s\n", ep, scif_ep_states[ep->state]); ep 1183 drivers/misc/mic/scif/scif_api.c mutex_lock(&ep->recvlock); ep 1200 drivers/misc/mic/scif/scif_api.c mutex_unlock(&ep->recvlock); ep 1218 drivers/misc/mic/scif/scif_api.c struct scif_endpt *ep = (struct scif_endpt *)epd; ep 1222 drivers/misc/mic/scif/scif_api.c "SCIFAPI send (K): ep %p %s\n", ep, scif_ep_states[ep->state]); ep 1229 drivers/misc/mic/scif/scif_api.c if (!ep->remote_dev) ep 1238 drivers/misc/mic/scif/scif_api.c mutex_lock(&ep->sendlock); ep 1243 drivers/misc/mic/scif/scif_api.c mutex_unlock(&ep->sendlock); ep 1260 drivers/misc/mic/scif/scif_api.c struct scif_endpt *ep = (struct scif_endpt *)epd; ep 1264 drivers/misc/mic/scif/scif_api.c "SCIFAPI recv (K): ep %p %s\n", ep, scif_ep_states[ep->state]); ep 1278 drivers/misc/mic/scif/scif_api.c mutex_lock(&ep->recvlock); ep 1283 drivers/misc/mic/scif/scif_api.c mutex_unlock(&ep->recvlock); ep 1290 drivers/misc/mic/scif/scif_api.c poll_table *p, struct scif_endpt *ep) ep 1299 drivers/misc/mic/scif/scif_api.c spin_unlock(&ep->lock); ep 1301 drivers/misc/mic/scif/scif_api.c spin_lock(&ep->lock); ep 1305 drivers/misc/mic/scif/scif_api.c __scif_pollfd(struct file *f, poll_table *wait, struct scif_endpt *ep) ep 1310 drivers/misc/mic/scif/scif_api.c "SCIFAPI pollfd: ep %p %s\n", ep, scif_ep_states[ep->state]); ep 1312 drivers/misc/mic/scif/scif_api.c spin_lock(&ep->lock); ep 1315 drivers/misc/mic/scif/scif_api.c if (ep->conn_async_state == ASYNC_CONN_INPROGRESS) { ep 1316 drivers/misc/mic/scif/scif_api.c _scif_poll_wait(f, &ep->conn_pend_wq, wait, ep); ep 1317 drivers/misc/mic/scif/scif_api.c if (ep->conn_async_state == ASYNC_CONN_INPROGRESS) { ep 1318 drivers/misc/mic/scif/scif_api.c if (ep->state == SCIFEP_CONNECTED || ep 1319 drivers/misc/mic/scif/scif_api.c ep->state == SCIFEP_DISCONNECTED || ep 1320 drivers/misc/mic/scif/scif_api.c ep->conn_err) ep 1327 drivers/misc/mic/scif/scif_api.c if (ep->state == SCIFEP_LISTENING) { ep 1328 drivers/misc/mic/scif/scif_api.c _scif_poll_wait(f, &ep->conwq, wait, ep); ep 1329 drivers/misc/mic/scif/scif_api.c if (ep->state == SCIFEP_LISTENING) { ep 1330 drivers/misc/mic/scif/scif_api.c if (ep->conreqcnt) ep 1337 drivers/misc/mic/scif/scif_api.c if (ep->state == SCIFEP_CONNECTED || ep->state == SCIFEP_DISCONNECTED) { ep 1339 drivers/misc/mic/scif/scif_api.c _scif_poll_wait(f, &ep->recvwq, wait, ep); ep 1341 drivers/misc/mic/scif/scif_api.c _scif_poll_wait(f, &ep->sendwq, wait, ep); ep 1342 drivers/misc/mic/scif/scif_api.c if (ep->state == SCIFEP_CONNECTED || ep 1343 drivers/misc/mic/scif/scif_api.c ep->state == SCIFEP_DISCONNECTED) { ep 1345 drivers/misc/mic/scif/scif_api.c if (scif_rb_count(&ep->qp_info.qp->inbound_q, 1)) ep 1348 drivers/misc/mic/scif/scif_api.c if (scif_rb_space(&ep->qp_info.qp->outbound_q)) ep 1351 drivers/misc/mic/scif/scif_api.c if (ep->state == SCIFEP_DISCONNECTED) ep 1360 drivers/misc/mic/scif/scif_api.c spin_unlock(&ep->lock); ep 84 drivers/misc/mic/scif/scif_debugfs.c struct scif_endpt *ep; ep 89 drivers/misc/mic/scif/scif_debugfs.c ep = list_entry(pos, struct scif_endpt, list); ep 90 drivers/misc/mic/scif/scif_debugfs.c seq_printf(s, "ep %p self windows\n", ep); ep 91 drivers/misc/mic/scif/scif_debugfs.c mutex_lock(&ep->rma_info.rma_lock); ep 92 drivers/misc/mic/scif/scif_debugfs.c scif_display_all_windows(&ep->rma_info.reg_list, s); ep 93 drivers/misc/mic/scif/scif_debugfs.c seq_printf(s, "ep %p remote windows\n", ep); ep 94 drivers/misc/mic/scif/scif_debugfs.c scif_display_all_windows(&ep->rma_info.remote_reg_list, s); ep 95 drivers/misc/mic/scif/scif_debugfs.c mutex_unlock(&ep->rma_info.rma_lock); ep 76 drivers/misc/mic/scif/scif_dma.c int scif_reserve_dma_chan(struct scif_endpt *ep) ep 84 drivers/misc/mic/scif/scif_dma.c if (!scif_info.nodeid && scifdev_self(ep->remote_dev)) ep 89 drivers/misc/mic/scif/scif_dma.c scifdev = ep->remote_dev; ep 95 drivers/misc/mic/scif/scif_dma.c mutex_lock(&ep->rma_info.rma_lock); ep 96 drivers/misc/mic/scif/scif_dma.c ep->rma_info.dma_chan = chan; ep 97 drivers/misc/mic/scif/scif_dma.c mutex_unlock(&ep->rma_info.rma_lock); ep 135 drivers/misc/mic/scif/scif_dma.c struct scif_endpt *ep = mmn->ep; ep 137 drivers/misc/mic/scif/scif_dma.c spin_lock(&ep->rma_info.tc_lock); ep 139 drivers/misc/mic/scif/scif_dma.c spin_unlock(&ep->rma_info.tc_lock); ep 142 drivers/misc/mic/scif/scif_dma.c static void scif_rma_destroy_tcw_ep(struct scif_endpt *ep) ep 147 drivers/misc/mic/scif/scif_dma.c list_for_each_safe(item, tmp, &ep->rma_info.mmn_list) { ep 153 drivers/misc/mic/scif/scif_dma.c static void __scif_rma_destroy_tcw_ep(struct scif_endpt *ep) ep 158 drivers/misc/mic/scif/scif_dma.c spin_lock(&ep->rma_info.tc_lock); ep 159 drivers/misc/mic/scif/scif_dma.c list_for_each_safe(item, tmp, &ep->rma_info.mmn_list) { ep 163 drivers/misc/mic/scif/scif_dma.c spin_unlock(&ep->rma_info.tc_lock); ep 166 drivers/misc/mic/scif/scif_dma.c static bool scif_rma_tc_can_cache(struct scif_endpt *ep, size_t cur_bytes) ep 170 drivers/misc/mic/scif/scif_dma.c if ((atomic_read(&ep->rma_info.tcw_total_pages) ep 176 drivers/misc/mic/scif/scif_dma.c atomic_read(&ep->rma_info.tcw_total_pages), ep 179 drivers/misc/mic/scif/scif_dma.c __scif_rma_destroy_tcw_ep(ep); ep 220 drivers/misc/mic/scif/scif_dma.c static void scif_ep_unregister_mmu_notifier(struct scif_endpt *ep) ep 222 drivers/misc/mic/scif/scif_dma.c struct scif_endpt_rma_info *rma = &ep->rma_info; ep 226 drivers/misc/mic/scif/scif_dma.c mutex_lock(&ep->rma_info.mmn_lock); ep 233 drivers/misc/mic/scif/scif_dma.c mutex_unlock(&ep->rma_info.mmn_lock); ep 237 drivers/misc/mic/scif/scif_dma.c struct mm_struct *mm, struct scif_endpt *ep) ep 239 drivers/misc/mic/scif/scif_dma.c mmn->ep = ep; ep 258 drivers/misc/mic/scif/scif_dma.c scif_add_mmu_notifier(struct mm_struct *mm, struct scif_endpt *ep) ep 266 drivers/misc/mic/scif/scif_dma.c scif_init_mmu_notifier(mmn, current->mm, ep); ep 271 drivers/misc/mic/scif/scif_dma.c list_add(&mmn->list, &ep->rma_info.mmn_list); ep 282 drivers/misc/mic/scif/scif_dma.c struct scif_endpt *ep; ep 287 drivers/misc/mic/scif/scif_dma.c ep = list_entry(pos, struct scif_endpt, mmu_list); ep 288 drivers/misc/mic/scif/scif_dma.c list_del(&ep->mmu_list); ep 290 drivers/misc/mic/scif/scif_dma.c scif_rma_destroy_tcw_ep(ep); ep 291 drivers/misc/mic/scif/scif_dma.c scif_ep_unregister_mmu_notifier(ep); ep 310 drivers/misc/mic/scif/scif_dma.c scif_add_mmu_notifier(struct mm_struct *mm, struct scif_endpt *ep) ep 324 drivers/misc/mic/scif/scif_dma.c static bool scif_rma_tc_can_cache(struct scif_endpt *ep, size_t cur_bytes) ep 345 drivers/misc/mic/scif/scif_dma.c struct scif_endpt *ep = (struct scif_endpt *)epd; ep 360 drivers/misc/mic/scif/scif_dma.c err = scif_get_window_offset(ep, 0, 0, ep 367 drivers/misc/mic/scif/scif_dma.c *out_window = scif_create_window(ep, aligned_len >> PAGE_SHIFT, ep 370 drivers/misc/mic/scif/scif_dma.c scif_free_window_offset(ep, NULL, *out_offset); ep 380 drivers/misc/mic/scif/scif_dma.c err = scif_map_window(ep->remote_dev, *out_window); ep 383 drivers/misc/mic/scif/scif_dma.c scif_destroy_window(ep, *out_window); ep 391 drivers/misc/mic/scif/scif_dma.c dev_err(&ep->remote_dev->sdev->dev, ep 571 drivers/misc/mic/scif/scif_dma.c struct scif_endpt *ep; ep 580 drivers/misc/mic/scif/scif_dma.c ep = (struct scif_endpt *)window->ep; ep 581 drivers/misc/mic/scif/scif_dma.c chan = ep->rma_info.dma_chan; ep 585 drivers/misc/mic/scif/scif_dma.c if (!chan || !scifdev_alive(ep) || ep 586 drivers/misc/mic/scif/scif_dma.c !scif_drain_dma_intr(ep->remote_dev->sdev, ep 587 drivers/misc/mic/scif/scif_dma.c ep->rma_info.dma_chan)) ep 591 drivers/misc/mic/scif/scif_dma.c dev_warn(&ep->remote_dev->sdev->dev, ep 595 drivers/misc/mic/scif/scif_dma.c scif_destroy_window(ep, window); ep 598 drivers/misc/mic/scif/scif_dma.c atomic_dec(&ep->rma_info.tw_refcount); ep 615 drivers/misc/mic/scif/scif_dma.c struct scif_endpt *ep; ep 623 drivers/misc/mic/scif/scif_dma.c ep = (struct scif_endpt *)window->ep; ep 624 drivers/misc/mic/scif/scif_dma.c chan = ep->rma_info.dma_chan; ep 627 drivers/misc/mic/scif/scif_dma.c mutex_lock(&ep->rma_info.rma_lock); ep 628 drivers/misc/mic/scif/scif_dma.c if (!chan || !scifdev_alive(ep) || ep 629 drivers/misc/mic/scif/scif_dma.c !scif_drain_dma_intr(ep->remote_dev->sdev, ep 630 drivers/misc/mic/scif/scif_dma.c ep->rma_info.dma_chan)) { ep 632 drivers/misc/mic/scif/scif_dma.c &ep->rma_info.tcw_total_pages); ep 633 drivers/misc/mic/scif/scif_dma.c scif_destroy_window(ep, window); ep 634 drivers/misc/mic/scif/scif_dma.c atomic_dec(&ep->rma_info.tcw_refcount); ep 636 drivers/misc/mic/scif/scif_dma.c dev_warn(&ep->remote_dev->sdev->dev, ep 639 drivers/misc/mic/scif/scif_dma.c mutex_unlock(&ep->rma_info.rma_lock); ep 1638 drivers/misc/mic/scif/scif_dma.c struct scif_endpt *ep = (struct scif_endpt *)epd; ep 1651 drivers/misc/mic/scif/scif_dma.c err = scif_verify_epd(ep); ep 1659 drivers/misc/mic/scif/scif_dma.c loopback = scifdev_self(ep->remote_dev) ? true : false; ep 1681 drivers/misc/mic/scif/scif_dma.c remote_req.head = &ep->rma_info.remote_reg_list; ep 1683 drivers/misc/mic/scif/scif_dma.c spdev = scif_get_peer_dev(ep->remote_dev); ep 1690 drivers/misc/mic/scif/scif_dma.c mutex_lock(&ep->rma_info.mmn_lock); ep 1691 drivers/misc/mic/scif/scif_dma.c mmn = scif_find_mmu_notifier(current->mm, &ep->rma_info); ep 1693 drivers/misc/mic/scif/scif_dma.c mmn = scif_add_mmu_notifier(current->mm, ep); ep 1694 drivers/misc/mic/scif/scif_dma.c mutex_unlock(&ep->rma_info.mmn_lock); ep 1699 drivers/misc/mic/scif/scif_dma.c cache = cache && !scif_rma_tc_can_cache(ep, len); ep 1701 drivers/misc/mic/scif/scif_dma.c mutex_lock(&ep->rma_info.rma_lock); ep 1711 drivers/misc/mic/scif/scif_dma.c spin_lock(&ep->rma_info.tc_lock); ep 1713 drivers/misc/mic/scif/scif_dma.c err = scif_query_tcw(ep, &req); ep 1714 drivers/misc/mic/scif/scif_dma.c spin_unlock(&ep->rma_info.tc_lock); ep 1721 drivers/misc/mic/scif/scif_dma.c mutex_unlock(&ep->rma_info.rma_lock); ep 1726 drivers/misc/mic/scif/scif_dma.c atomic_inc(&ep->rma_info.tcw_refcount); ep 1728 drivers/misc/mic/scif/scif_dma.c &ep->rma_info.tcw_total_pages); ep 1730 drivers/misc/mic/scif/scif_dma.c spin_lock(&ep->rma_info.tc_lock); ep 1733 drivers/misc/mic/scif/scif_dma.c spin_unlock(&ep->rma_info.tc_lock); ep 1749 drivers/misc/mic/scif/scif_dma.c req.head = &ep->rma_info.reg_list; ep 1753 drivers/misc/mic/scif/scif_dma.c mutex_unlock(&ep->rma_info.rma_lock); ep 1761 drivers/misc/mic/scif/scif_dma.c mutex_unlock(&ep->rma_info.rma_lock); ep 1771 drivers/misc/mic/scif/scif_dma.c copy_work.remote_dev = ep->remote_dev; ep 1787 drivers/misc/mic/scif/scif_dma.c chan = ep->rma_info.dma_chan; ep 1792 drivers/misc/mic/scif/scif_dma.c atomic_inc(&ep->rma_info.tw_refcount); ep 1794 drivers/misc/mic/scif/scif_dma.c mutex_unlock(&ep->rma_info.rma_lock); ep 1797 drivers/misc/mic/scif/scif_dma.c struct scif_dev *rdev = ep->remote_dev; ep 1801 drivers/misc/mic/scif/scif_dma.c ep->rma_info.dma_chan); ep 1804 drivers/misc/mic/scif/scif_dma.c ep->rma_info.dma_chan); ep 1814 drivers/misc/mic/scif/scif_dma.c scif_destroy_window(ep, local_window); ep 12 drivers/misc/mic/scif/scif_epd.c void scif_cleanup_ep_qp(struct scif_endpt *ep) ep 14 drivers/misc/mic/scif/scif_epd.c struct scif_qp *qp = ep->qp_info.qp; ep 18 drivers/misc/mic/scif/scif_epd.c qp->outbound_q.size, ep->remote_dev); ep 23 drivers/misc/mic/scif/scif_epd.c sizeof(struct scif_qp), ep->remote_dev); ep 27 drivers/misc/mic/scif/scif_epd.c scif_unmap_single(qp->local_qp, ep->remote_dev, ep 32 drivers/misc/mic/scif/scif_epd.c scif_unmap_single(qp->local_buf, ep->remote_dev, ep 40 drivers/misc/mic/scif/scif_epd.c struct scif_endpt *ep = endpt; ep 41 drivers/misc/mic/scif/scif_epd.c struct scif_qp *qp = ep->qp_info.qp; ep 44 drivers/misc/mic/scif/scif_epd.c spin_lock(&ep->lock); ep 45 drivers/misc/mic/scif/scif_epd.c scif_cleanup_ep_qp(ep); ep 46 drivers/misc/mic/scif/scif_epd.c spin_unlock(&ep->lock); ep 56 drivers/misc/mic/scif/scif_epd.c void scif_add_epd_to_zombie_list(struct scif_endpt *ep, bool eplock_held) ep 60 drivers/misc/mic/scif/scif_epd.c spin_lock(&ep->lock); ep 61 drivers/misc/mic/scif/scif_epd.c ep->state = SCIFEP_ZOMBIE; ep 62 drivers/misc/mic/scif/scif_epd.c spin_unlock(&ep->lock); ep 63 drivers/misc/mic/scif/scif_epd.c list_add_tail(&ep->list, &scif_info.zombie); ep 72 drivers/misc/mic/scif/scif_epd.c struct scif_endpt *ep = NULL; ep 77 drivers/misc/mic/scif/scif_epd.c ep = list_entry(pos, struct scif_endpt, list); ep 78 drivers/misc/mic/scif/scif_epd.c if (ep->port.port == port) { ep 80 drivers/misc/mic/scif/scif_epd.c return ep; ep 90 drivers/misc/mic/scif/scif_epd.c struct scif_endpt *ep; ep 94 drivers/misc/mic/scif/scif_epd.c ep = list_entry(pos, struct scif_endpt, list); ep 95 drivers/misc/mic/scif/scif_epd.c if (scif_rma_ep_can_uninit(ep)) { ep 98 drivers/misc/mic/scif/scif_epd.c put_iova_domain(&ep->rma_info.iovad); ep 99 drivers/misc/mic/scif/scif_epd.c kfree(ep); ep 121 drivers/misc/mic/scif/scif_epd.c struct scif_endpt *ep = NULL; ep 129 drivers/misc/mic/scif/scif_epd.c ep = scif_find_listen_ep(msg->dst.port); ep 130 drivers/misc/mic/scif/scif_epd.c if (!ep) ep 134 drivers/misc/mic/scif/scif_epd.c spin_lock(&ep->lock); ep 136 drivers/misc/mic/scif/scif_epd.c if (ep->backlog <= ep->conreqcnt) { ep 138 drivers/misc/mic/scif/scif_epd.c spin_unlock(&ep->lock); ep 143 drivers/misc/mic/scif/scif_epd.c list_add_tail(&conreq->list, &ep->conlist); ep 144 drivers/misc/mic/scif/scif_epd.c ep->conreqcnt++; ep 145 drivers/misc/mic/scif/scif_epd.c wake_up_interruptible(&ep->conwq); ep 146 drivers/misc/mic/scif/scif_epd.c spin_unlock(&ep->lock); ep 167 drivers/misc/mic/scif/scif_epd.c struct scif_endpt *ep = (struct scif_endpt *)msg->payload[0]; ep 169 drivers/misc/mic/scif/scif_epd.c spin_lock(&ep->lock); ep 170 drivers/misc/mic/scif/scif_epd.c if (SCIFEP_CONNECTING == ep->state) { ep 171 drivers/misc/mic/scif/scif_epd.c ep->peer.node = msg->src.node; ep 172 drivers/misc/mic/scif/scif_epd.c ep->peer.port = msg->src.port; ep 173 drivers/misc/mic/scif/scif_epd.c ep->qp_info.gnt_pld = msg->payload[1]; ep 174 drivers/misc/mic/scif/scif_epd.c ep->remote_ep = msg->payload[2]; ep 175 drivers/misc/mic/scif/scif_epd.c ep->state = SCIFEP_MAPPING; ep 177 drivers/misc/mic/scif/scif_epd.c wake_up(&ep->conwq); ep 179 drivers/misc/mic/scif/scif_epd.c spin_unlock(&ep->lock); ep 192 drivers/misc/mic/scif/scif_epd.c struct scif_endpt *ep = (struct scif_endpt *)msg->payload[0]; ep 195 drivers/misc/mic/scif/scif_epd.c spin_lock(&ep->lock); ep 197 drivers/misc/mic/scif/scif_epd.c ep->state = SCIFEP_CONNECTED; ep 198 drivers/misc/mic/scif/scif_epd.c list_add_tail(&ep->list, &scif_info.connected); ep 199 drivers/misc/mic/scif/scif_epd.c wake_up(&ep->conwq); ep 200 drivers/misc/mic/scif/scif_epd.c spin_unlock(&ep->lock); ep 214 drivers/misc/mic/scif/scif_epd.c struct scif_endpt *ep = (struct scif_endpt *)msg->payload[0]; ep 216 drivers/misc/mic/scif/scif_epd.c spin_lock(&ep->lock); ep 217 drivers/misc/mic/scif/scif_epd.c ep->state = SCIFEP_CLOSING; ep 218 drivers/misc/mic/scif/scif_epd.c wake_up(&ep->conwq); ep 219 drivers/misc/mic/scif/scif_epd.c spin_unlock(&ep->lock); ep 231 drivers/misc/mic/scif/scif_epd.c struct scif_endpt *ep = (struct scif_endpt *)msg->payload[0]; ep 233 drivers/misc/mic/scif/scif_epd.c spin_lock(&ep->lock); ep 234 drivers/misc/mic/scif/scif_epd.c if (SCIFEP_CONNECTING == ep->state) { ep 235 drivers/misc/mic/scif/scif_epd.c ep->state = SCIFEP_BOUND; ep 236 drivers/misc/mic/scif/scif_epd.c wake_up(&ep->conwq); ep 238 drivers/misc/mic/scif/scif_epd.c spin_unlock(&ep->lock); ep 256 drivers/misc/mic/scif/scif_epd.c struct scif_endpt *ep = NULL; ep 272 drivers/misc/mic/scif/scif_epd.c ep = tmpep; ep 273 drivers/misc/mic/scif/scif_epd.c spin_lock(&ep->lock); ep 284 drivers/misc/mic/scif/scif_epd.c if (!ep) { ep 289 drivers/misc/mic/scif/scif_epd.c ep->state = SCIFEP_DISCONNECTED; ep 290 drivers/misc/mic/scif/scif_epd.c list_add_tail(&ep->list, &scif_info.disconnected); ep 292 drivers/misc/mic/scif/scif_epd.c wake_up_interruptible(&ep->sendwq); ep 293 drivers/misc/mic/scif/scif_epd.c wake_up_interruptible(&ep->recvwq); ep 294 drivers/misc/mic/scif/scif_epd.c spin_unlock(&ep->lock); ep 310 drivers/misc/mic/scif/scif_epd.c struct scif_endpt *ep = (struct scif_endpt *)msg->payload[0]; ep 312 drivers/misc/mic/scif/scif_epd.c spin_lock(&ep->lock); ep 313 drivers/misc/mic/scif/scif_epd.c ep->state = SCIFEP_DISCONNECTED; ep 314 drivers/misc/mic/scif/scif_epd.c spin_unlock(&ep->lock); ep 315 drivers/misc/mic/scif/scif_epd.c complete(&ep->discon); ep 326 drivers/misc/mic/scif/scif_epd.c struct scif_endpt *ep = (struct scif_endpt *)msg->payload[0]; ep 328 drivers/misc/mic/scif/scif_epd.c spin_lock(&ep->lock); ep 329 drivers/misc/mic/scif/scif_epd.c if (SCIFEP_CONNECTED == ep->state) ep 330 drivers/misc/mic/scif/scif_epd.c wake_up_interruptible(&ep->recvwq); ep 331 drivers/misc/mic/scif/scif_epd.c spin_unlock(&ep->lock); ep 342 drivers/misc/mic/scif/scif_epd.c struct scif_endpt *ep = (struct scif_endpt *)msg->payload[0]; ep 344 drivers/misc/mic/scif/scif_epd.c spin_lock(&ep->lock); ep 345 drivers/misc/mic/scif/scif_epd.c if (SCIFEP_CONNECTED == ep->state) ep 346 drivers/misc/mic/scif/scif_epd.c wake_up_interruptible(&ep->sendwq); ep 347 drivers/misc/mic/scif/scif_epd.c spin_unlock(&ep->lock); ep 130 drivers/misc/mic/scif/scif_epd.h static inline int scifdev_alive(struct scif_endpt *ep) ep 132 drivers/misc/mic/scif/scif_epd.h return _scifdev_alive(ep->remote_dev); ep 142 drivers/misc/mic/scif/scif_epd.h static inline int scif_verify_epd(struct scif_endpt *ep) ep 144 drivers/misc/mic/scif/scif_epd.h if (ep->state == SCIFEP_DISCONNECTED) ep 147 drivers/misc/mic/scif/scif_epd.h if (ep->state != SCIFEP_CONNECTED) ep 150 drivers/misc/mic/scif/scif_epd.h if (!scifdev_alive(ep)) ep 173 drivers/misc/mic/scif/scif_epd.h void scif_cleanup_ep_qp(struct scif_endpt *ep); ep 174 drivers/misc/mic/scif/scif_epd.h void scif_add_epd_to_zombie_list(struct scif_endpt *ep, bool eplock_held); ep 197 drivers/misc/mic/scif/scif_epd.h struct scif_endpt *ep); ep 44 drivers/misc/mic/scif/scif_fd.c struct scif_endpt *ep = f->private_data; ep 46 drivers/misc/mic/scif/scif_fd.c spin_lock(&ep->lock); ep 56 drivers/misc/mic/scif/scif_fd.c if (ep->files == id) ep 57 drivers/misc/mic/scif/scif_fd.c __scif_flush(ep); ep 58 drivers/misc/mic/scif/scif_fd.c spin_unlock(&ep->lock); ep 104 drivers/misc/mic/scif/scif_fd.c struct scif_endpt *ep = (struct scif_endpt *)priv; ep 113 drivers/misc/mic/scif/scif_fd.c req.self.node = ep->port.node; ep 114 drivers/misc/mic/scif/scif_fd.c req.self.port = ep->port.port; ep 131 drivers/misc/mic/scif/scif_fd.c scif_epd_t *ep = (scif_epd_t *)&request.endpt; ep 136 drivers/misc/mic/scif/scif_fd.c err = scif_accept(priv, &request.peer, ep, request.flags); ep 141 drivers/misc/mic/scif/scif_fd.c scif_close(*ep); ep 149 drivers/misc/mic/scif/scif_fd.c list_add_tail(&((*ep)->miacceptlist), &scif_info.uaccept); ep 150 drivers/misc/mic/scif/scif_fd.c list_add_tail(&((*ep)->liacceptlist), &priv->li_accept); ep 151 drivers/misc/mic/scif/scif_fd.c (*ep)->listenep = priv; ep 20 drivers/misc/mic/scif/scif_fence.c struct scif_endpt *ep = (struct scif_endpt *)msg->payload[0]; ep 24 drivers/misc/mic/scif/scif_fence.c err = _scif_fence_mark(ep, &mark); ep 29 drivers/misc/mic/scif/scif_fence.c msg->payload[0] = ep->remote_ep; ep 31 drivers/misc/mic/scif/scif_fence.c scif_nodeqp_send(ep->remote_dev, msg); ep 42 drivers/misc/mic/scif/scif_fence.c struct scif_endpt *ep = (struct scif_endpt *)msg->payload[0]; ep 46 drivers/misc/mic/scif/scif_fence.c mutex_lock(&ep->rma_info.rma_lock); ep 53 drivers/misc/mic/scif/scif_fence.c mutex_unlock(&ep->rma_info.rma_lock); ep 65 drivers/misc/mic/scif/scif_fence.c struct scif_endpt *ep = (struct scif_endpt *)msg->payload[0]; ep 75 drivers/misc/mic/scif/scif_fence.c msg->payload[0] = ep->remote_ep; ep 77 drivers/misc/mic/scif/scif_fence.c scif_nodeqp_send(ep->remote_dev, msg); ep 87 drivers/misc/mic/scif/scif_fence.c atomic_inc(&ep->rma_info.fence_refcount); ep 102 drivers/misc/mic/scif/scif_fence.c struct scif_endpt *ep = (struct scif_endpt *)msg->payload[0]; ep 106 drivers/misc/mic/scif/scif_fence.c mutex_lock(&ep->rma_info.rma_lock); ep 111 drivers/misc/mic/scif/scif_fence.c mutex_unlock(&ep->rma_info.rma_lock); ep 123 drivers/misc/mic/scif/scif_fence.c struct scif_endpt *ep = (struct scif_endpt *)msg->payload[0]; ep 126 drivers/misc/mic/scif/scif_fence.c err = scif_prog_signal(ep, msg->payload[1], msg->payload[2], ep 132 drivers/misc/mic/scif/scif_fence.c msg->payload[0] = ep->remote_ep; ep 133 drivers/misc/mic/scif/scif_fence.c scif_nodeqp_send(ep->remote_dev, msg); ep 144 drivers/misc/mic/scif/scif_fence.c struct scif_endpt *ep = (struct scif_endpt *)msg->payload[0]; ep 147 drivers/misc/mic/scif/scif_fence.c err = scif_prog_signal(ep, msg->payload[1], msg->payload[2], ep 153 drivers/misc/mic/scif/scif_fence.c msg->payload[0] = ep->remote_ep; ep 154 drivers/misc/mic/scif/scif_fence.c scif_nodeqp_send(ep->remote_dev, msg); ep 165 drivers/misc/mic/scif/scif_fence.c struct scif_endpt *ep = (struct scif_endpt *)msg->payload[0]; ep 169 drivers/misc/mic/scif/scif_fence.c mutex_lock(&ep->rma_info.rma_lock); ep 174 drivers/misc/mic/scif/scif_fence.c mutex_unlock(&ep->rma_info.rma_lock); ep 191 drivers/misc/mic/scif/scif_fence.c dma_pool_free(cb_arg->ep->remote_dev->signal_pool, cb_arg->status, ep 198 drivers/misc/mic/scif/scif_fence.c struct scif_endpt *ep = (struct scif_endpt *)epd; ep 199 drivers/misc/mic/scif/scif_fence.c struct dma_chan *chan = ep->rma_info.dma_chan; ep 212 drivers/misc/mic/scif/scif_fence.c dev_err(&ep->remote_dev->sdev->dev, "%s %d err %d\n", ep 219 drivers/misc/mic/scif/scif_fence.c dev_err(&ep->remote_dev->sdev->dev, "%s %d err %d\n", ep 231 drivers/misc/mic/scif/scif_fence.c status = dma_pool_alloc(ep->remote_dev->signal_pool, GFP_KERNEL, ep 235 drivers/misc/mic/scif/scif_fence.c dev_err(&ep->remote_dev->sdev->dev, "%s %d err %d\n", ep 241 drivers/misc/mic/scif/scif_fence.c status->ep = ep; ep 248 drivers/misc/mic/scif/scif_fence.c dev_err(&ep->remote_dev->sdev->dev, "%s %d err %d\n", ep 260 drivers/misc/mic/scif/scif_fence.c cb_arg->ep = ep; ep 267 drivers/misc/mic/scif/scif_fence.c dev_err(&ep->remote_dev->sdev->dev, "%s %d err %d\n", ep 275 drivers/misc/mic/scif/scif_fence.c dma_pool_free(ep->remote_dev->signal_pool, status, ep 296 drivers/misc/mic/scif/scif_fence.c struct scif_endpt *ep = (struct scif_endpt *)epd; ep 302 drivers/misc/mic/scif/scif_fence.c mutex_lock(&ep->rma_info.rma_lock); ep 309 drivers/misc/mic/scif/scif_fence.c req.head = &ep->rma_info.reg_list; ep 311 drivers/misc/mic/scif/scif_fence.c req.head = &ep->rma_info.remote_reg_list; ep 320 drivers/misc/mic/scif/scif_fence.c if (scif_is_mgmt_node() && scifdev_self(ep->remote_dev)) { ep 335 drivers/misc/mic/scif/scif_fence.c mutex_unlock(&ep->rma_info.rma_lock); ep 341 drivers/misc/mic/scif/scif_fence.c struct scif_endpt *ep = (struct scif_endpt *)epd; ep 346 drivers/misc/mic/scif/scif_fence.c err = wait_event_interruptible_timeout(ep->rma_info.markwq, ep 348 drivers/misc/mic/scif/scif_fence.c ep->rma_info.dma_chan, ep 368 drivers/misc/mic/scif/scif_fence.c struct scif_endpt *ep; ep 380 drivers/misc/mic/scif/scif_fence.c ep = (struct scif_endpt *)fence->msg.payload[0]; ep 382 drivers/misc/mic/scif/scif_fence.c err = _scif_fence_wait(ep, mark); ep 387 drivers/misc/mic/scif/scif_fence.c fence->msg.payload[0] = ep->remote_ep; ep 388 drivers/misc/mic/scif/scif_fence.c scif_nodeqp_send(ep->remote_dev, &fence->msg); ep 390 drivers/misc/mic/scif/scif_fence.c if (!atomic_sub_return(1, &ep->rma_info.fence_refcount)) ep 401 drivers/misc/mic/scif/scif_fence.c struct scif_endpt *ep = (struct scif_endpt *)epd; ep 412 drivers/misc/mic/scif/scif_fence.c msg.src = ep->port; ep 414 drivers/misc/mic/scif/scif_fence.c msg.payload[0] = ep->remote_ep; ep 418 drivers/misc/mic/scif/scif_fence.c spin_lock(&ep->lock); ep 419 drivers/misc/mic/scif/scif_fence.c if (ep->state == SCIFEP_CONNECTED) ep 420 drivers/misc/mic/scif/scif_fence.c err = scif_nodeqp_send(ep->remote_dev, &msg); ep 423 drivers/misc/mic/scif/scif_fence.c spin_unlock(&ep->lock); ep 430 drivers/misc/mic/scif/scif_fence.c if (!err && scifdev_alive(ep)) ep 436 drivers/misc/mic/scif/scif_fence.c mutex_lock(&ep->rma_info.rma_lock); ep 445 drivers/misc/mic/scif/scif_fence.c mutex_unlock(&ep->rma_info.rma_lock); ep 476 drivers/misc/mic/scif/scif_fence.c static int _scif_send_fence_signal_wait(struct scif_endpt *ep, ep 485 drivers/misc/mic/scif/scif_fence.c if (!err && scifdev_alive(ep)) ep 492 drivers/misc/mic/scif/scif_fence.c mutex_lock(&ep->rma_info.rma_lock); ep 495 drivers/misc/mic/scif/scif_fence.c mutex_unlock(&ep->rma_info.rma_lock); ep 519 drivers/misc/mic/scif/scif_fence.c struct scif_endpt *ep = (struct scif_endpt *)epd; ep 529 drivers/misc/mic/scif/scif_fence.c msg.src = ep->port; ep 532 drivers/misc/mic/scif/scif_fence.c msg.payload[0] = ep->remote_ep; ep 536 drivers/misc/mic/scif/scif_fence.c spin_lock(&ep->lock); ep 537 drivers/misc/mic/scif/scif_fence.c if (ep->state == SCIFEP_CONNECTED) ep 538 drivers/misc/mic/scif/scif_fence.c err = scif_nodeqp_send(ep->remote_dev, &msg); ep 541 drivers/misc/mic/scif/scif_fence.c spin_unlock(&ep->lock); ep 544 drivers/misc/mic/scif/scif_fence.c err = _scif_send_fence_signal_wait(ep, fence_req); ep 552 drivers/misc/mic/scif/scif_fence.c msg.payload[0] = ep->remote_ep; ep 556 drivers/misc/mic/scif/scif_fence.c spin_lock(&ep->lock); ep 557 drivers/misc/mic/scif/scif_fence.c if (ep->state == SCIFEP_CONNECTED) ep 558 drivers/misc/mic/scif/scif_fence.c err = scif_nodeqp_send(ep->remote_dev, &msg); ep 561 drivers/misc/mic/scif/scif_fence.c spin_unlock(&ep->lock); ep 564 drivers/misc/mic/scif/scif_fence.c err = _scif_send_fence_signal_wait(ep, fence_req); ep 574 drivers/misc/mic/scif/scif_fence.c struct scif_endpt *ep = (struct scif_endpt *)arg; ep 576 drivers/misc/mic/scif/scif_fence.c wake_up_interruptible(&ep->rma_info.markwq); ep 577 drivers/misc/mic/scif/scif_fence.c atomic_dec(&ep->rma_info.fence_refcount); ep 588 drivers/misc/mic/scif/scif_fence.c struct scif_endpt *ep = (struct scif_endpt *)epd; ep 589 drivers/misc/mic/scif/scif_fence.c struct dma_chan *chan = ep->rma_info.dma_chan; ep 598 drivers/misc/mic/scif/scif_fence.c dev_err(&ep->remote_dev->sdev->dev, "%s %d err %d\n", ep 605 drivers/misc/mic/scif/scif_fence.c dev_err(&ep->remote_dev->sdev->dev, "%s %d err %d\n", ep 613 drivers/misc/mic/scif/scif_fence.c dev_err(&ep->remote_dev->sdev->dev, "%s %d err %d\n", ep 618 drivers/misc/mic/scif/scif_fence.c tx->callback_param = ep; ep 622 drivers/misc/mic/scif/scif_fence.c dev_err(&ep->remote_dev->sdev->dev, "%s %d err %d\n", ep 626 drivers/misc/mic/scif/scif_fence.c atomic_inc(&ep->rma_info.fence_refcount); ep 635 drivers/misc/mic/scif/scif_fence.c struct scif_endpt *ep = (struct scif_endpt *)epd; ep 640 drivers/misc/mic/scif/scif_fence.c ep, flags, *mark); ep 641 drivers/misc/mic/scif/scif_fence.c err = scif_verify_epd(ep); ep 661 drivers/misc/mic/scif/scif_fence.c if (scifdev_self(ep->remote_dev) && scif_is_mgmt_node()) { ep 669 drivers/misc/mic/scif/scif_fence.c err = scif_send_fence_mark(ep, mark); ep 676 drivers/misc/mic/scif/scif_fence.c ep, flags, *mark, err); ep 683 drivers/misc/mic/scif/scif_fence.c struct scif_endpt *ep = (struct scif_endpt *)epd; ep 688 drivers/misc/mic/scif/scif_fence.c ep, mark); ep 689 drivers/misc/mic/scif/scif_fence.c err = scif_verify_epd(ep); ep 697 drivers/misc/mic/scif/scif_fence.c if (scifdev_self(ep->remote_dev) && scif_is_mgmt_node()) { ep 717 drivers/misc/mic/scif/scif_fence.c struct scif_endpt *ep = (struct scif_endpt *)epd; ep 722 drivers/misc/mic/scif/scif_fence.c ep, loff, lval, roff, rval, flags); ep 723 drivers/misc/mic/scif/scif_fence.c err = scif_verify_epd(ep); ep 28 drivers/misc/mic/scif/scif_mmap.c struct scif_endpt *ep; ep 30 drivers/misc/mic/scif/scif_mmap.c ep = (struct scif_endpt *)recv_window->ep; ep 36 drivers/misc/mic/scif/scif_mmap.c req.head = &ep->rma_info.reg_list; ep 37 drivers/misc/mic/scif/scif_mmap.c msg->payload[0] = ep->remote_ep; ep 39 drivers/misc/mic/scif/scif_mmap.c mutex_lock(&ep->rma_info.rma_lock); ep 51 drivers/misc/mic/scif/scif_mmap.c atomic_inc(&ep->rma_info.tw_refcount); ep 52 drivers/misc/mic/scif/scif_mmap.c ep->rma_info.async_list_del = 1; ep 54 drivers/misc/mic/scif/scif_mmap.c scif_free_window_offset(ep, window, window->offset); ep 57 drivers/misc/mic/scif/scif_mmap.c mutex_unlock(&ep->rma_info.rma_lock); ep 66 drivers/misc/mic/scif/scif_mmap.c static void __scif_zap_mmaps(struct scif_endpt *ep) ep 73 drivers/misc/mic/scif/scif_mmap.c spin_lock(&ep->lock); ep 74 drivers/misc/mic/scif/scif_mmap.c list_for_each(item, &ep->rma_info.vma_list) { ep 81 drivers/misc/mic/scif/scif_mmap.c __func__, ep, info->vma, size); ep 83 drivers/misc/mic/scif/scif_mmap.c spin_unlock(&ep->lock); ep 92 drivers/misc/mic/scif/scif_mmap.c struct scif_endpt *ep; ep 97 drivers/misc/mic/scif/scif_mmap.c ep = list_entry(item, struct scif_endpt, list); ep 98 drivers/misc/mic/scif/scif_mmap.c if (ep->remote_dev->node == node) ep 99 drivers/misc/mic/scif/scif_mmap.c __scif_zap_mmaps(ep); ep 122 drivers/misc/mic/scif/scif_mmap.c static void __scif_cleanup_rma_for_zombies(struct scif_endpt *ep) ep 127 drivers/misc/mic/scif/scif_mmap.c list_for_each_safe(pos, tmp, &ep->rma_info.remote_reg_list) { ep 136 drivers/misc/mic/scif/scif_mmap.c atomic_inc(&ep->rma_info.tw_refcount); ep 146 drivers/misc/mic/scif/scif_mmap.c struct scif_endpt *ep; ep 151 drivers/misc/mic/scif/scif_mmap.c ep = list_entry(item, struct scif_endpt, list); ep 152 drivers/misc/mic/scif/scif_mmap.c if (ep->remote_dev && ep->remote_dev->node == node) ep 153 drivers/misc/mic/scif/scif_mmap.c __scif_cleanup_rma_for_zombies(ep); ep 160 drivers/misc/mic/scif/scif_mmap.c static int scif_insert_vma(struct scif_endpt *ep, struct vm_area_struct *vma) ep 171 drivers/misc/mic/scif/scif_mmap.c spin_lock(&ep->lock); ep 172 drivers/misc/mic/scif/scif_mmap.c list_add_tail(&info->list, &ep->rma_info.vma_list); ep 173 drivers/misc/mic/scif/scif_mmap.c spin_unlock(&ep->lock); ep 179 drivers/misc/mic/scif/scif_mmap.c static void scif_delete_vma(struct scif_endpt *ep, struct vm_area_struct *vma) ep 184 drivers/misc/mic/scif/scif_mmap.c spin_lock(&ep->lock); ep 185 drivers/misc/mic/scif/scif_mmap.c list_for_each(item, &ep->rma_info.vma_list) { ep 193 drivers/misc/mic/scif/scif_mmap.c spin_unlock(&ep->lock); ep 196 drivers/misc/mic/scif/scif_mmap.c static phys_addr_t scif_get_phys(phys_addr_t phys, struct scif_endpt *ep) ep 198 drivers/misc/mic/scif/scif_mmap.c struct scif_dev *scifdev = (struct scif_dev *)ep->remote_dev; ep 215 drivers/misc/mic/scif/scif_mmap.c struct scif_endpt *ep = (struct scif_endpt *)epd; ep 222 drivers/misc/mic/scif/scif_mmap.c ep, offset, len); ep 223 drivers/misc/mic/scif/scif_mmap.c err = scif_verify_epd(ep); ep 240 drivers/misc/mic/scif/scif_mmap.c req.head = &ep->rma_info.remote_reg_list; ep 242 drivers/misc/mic/scif/scif_mmap.c mutex_lock(&ep->rma_info.rma_lock); ep 246 drivers/misc/mic/scif/scif_mmap.c dev_err(&ep->remote_dev->sdev->dev, ep 265 drivers/misc/mic/scif/scif_mmap.c if (scif_is_mgmt_node() && !scifdev_self(ep->remote_dev)) { ep 283 drivers/misc/mic/scif/scif_mmap.c ep); ep 284 drivers/misc/mic/scif/scif_mmap.c if (scif_is_mgmt_node() && !scifdev_self(ep->remote_dev)) ep 286 drivers/misc/mic/scif/scif_mmap.c ep->remote_dev->sdev->aper->va + ep 288 drivers/misc/mic/scif/scif_mmap.c ep->remote_dev->sdev->aper->pa; ep 293 drivers/misc/mic/scif/scif_mmap.c mutex_unlock(&ep->rma_info.rma_lock); ep 303 drivers/misc/mic/scif/scif_mmap.c dev_err(&ep->remote_dev->sdev->dev, ep 312 drivers/misc/mic/scif/scif_mmap.c struct scif_endpt *ep; ep 324 drivers/misc/mic/scif/scif_mmap.c ep = (struct scif_endpt *)window->ep; ep 331 drivers/misc/mic/scif/scif_mmap.c if (ep->state != SCIFEP_CONNECTED && ep->state != SCIFEP_DISCONNECTED) ep 334 drivers/misc/mic/scif/scif_mmap.c mutex_lock(&ep->rma_info.rma_lock); ep 341 drivers/misc/mic/scif/scif_mmap.c mutex_unlock(&ep->rma_info.rma_lock); ep 342 drivers/misc/mic/scif/scif_mmap.c scif_drain_dma_intr(ep->remote_dev->sdev, ep 343 drivers/misc/mic/scif/scif_mmap.c ep->rma_info.dma_chan); ep 346 drivers/misc/mic/scif/scif_mmap.c msg.src = ep->port; ep 349 drivers/misc/mic/scif/scif_mmap.c scif_nodeqp_send(ep->remote_dev, &msg); ep 353 drivers/misc/mic/scif/scif_mmap.c mutex_unlock(&ep->rma_info.rma_lock); ep 378 drivers/misc/mic/scif/scif_mmap.c struct scif_endpt *ep = (struct scif_endpt *)start_window->ep; ep 379 drivers/misc/mic/scif/scif_mmap.c struct list_head *head = &ep->rma_info.remote_reg_list; ep 397 drivers/misc/mic/scif/scif_mmap.c phys_addr = scif_get_phys(phys_addr, ep); ep 421 drivers/misc/mic/scif/scif_mmap.c head = &ep->rma_info.remote_reg_list; ep 455 drivers/misc/mic/scif/scif_mmap.c struct scif_endpt *ep = (struct scif_endpt *)start_window->ep; ep 456 drivers/misc/mic/scif/scif_mmap.c struct list_head *head = &ep->rma_info.remote_reg_list; ep 460 drivers/misc/mic/scif/scif_mmap.c msg.src = ep->port; ep 471 drivers/misc/mic/scif/scif_mmap.c struct scif_dev *rdev = ep->remote_dev; ep 474 drivers/misc/mic/scif/scif_mmap.c ep->rma_info.dma_chan); ep 478 drivers/misc/mic/scif/scif_mmap.c scif_nodeqp_send(ep->remote_dev, &msg); ep 495 drivers/misc/mic/scif/scif_mmap.c struct scif_endpt *ep; /* End point for remote window */ ep 531 drivers/misc/mic/scif/scif_mmap.c scif_insert_vma(vmapvt->ep, vma); ep 544 drivers/misc/mic/scif/scif_mmap.c struct scif_endpt *ep; ep 556 drivers/misc/mic/scif/scif_mmap.c ep = vmapvt->ep; ep 561 drivers/misc/mic/scif/scif_mmap.c ep, nr_pages, offset); ep 567 drivers/misc/mic/scif/scif_mmap.c req.head = &ep->rma_info.remote_reg_list; ep 569 drivers/misc/mic/scif/scif_mmap.c mutex_lock(&ep->rma_info.rma_lock); ep 578 drivers/misc/mic/scif/scif_mmap.c mutex_unlock(&ep->rma_info.rma_lock); ep 586 drivers/misc/mic/scif/scif_mmap.c scif_delete_vma(ep, vma); ep 606 drivers/misc/mic/scif/scif_mmap.c struct scif_endpt *ep = (struct scif_endpt *)epd; ep 614 drivers/misc/mic/scif/scif_mmap.c ep, start_offset, nr_pages); ep 615 drivers/misc/mic/scif/scif_mmap.c err = scif_verify_epd(ep); ep 621 drivers/misc/mic/scif/scif_mmap.c err = scif_insert_vma(ep, vma); ep 627 drivers/misc/mic/scif/scif_mmap.c scif_delete_vma(ep, vma); ep 631 drivers/misc/mic/scif/scif_mmap.c vmapvt->ep = ep; ep 639 drivers/misc/mic/scif/scif_mmap.c req.head = &ep->rma_info.remote_reg_list; ep 641 drivers/misc/mic/scif/scif_mmap.c mutex_lock(&ep->rma_info.rma_lock); ep 645 drivers/misc/mic/scif/scif_mmap.c dev_err(&ep->remote_dev->sdev->dev, ep 651 drivers/misc/mic/scif/scif_mmap.c if (!scifdev_self(ep->remote_dev)) ep 668 drivers/misc/mic/scif/scif_mmap.c if (!scifdev_self(ep->remote_dev)) ep 674 drivers/misc/mic/scif/scif_mmap.c dev_err(&ep->remote_dev->sdev->dev, ep 682 drivers/misc/mic/scif/scif_mmap.c mutex_unlock(&ep->rma_info.rma_lock); ep 685 drivers/misc/mic/scif/scif_mmap.c dev_err(&ep->remote_dev->sdev->dev, ep 687 drivers/misc/mic/scif/scif_mmap.c scif_delete_vma(ep, vma); ep 20 drivers/misc/mic/scif/scif_nm.c struct scif_endpt *ep; ep 26 drivers/misc/mic/scif/scif_nm.c ep = list_entry(pos, struct scif_endpt, list); ep 27 drivers/misc/mic/scif/scif_nm.c if (ep->remote_dev->node == node) { ep 28 drivers/misc/mic/scif/scif_nm.c scif_unmap_all_windows(ep); ep 29 drivers/misc/mic/scif/scif_nm.c spin_lock(&ep->lock); ep 30 drivers/misc/mic/scif/scif_nm.c scif_cleanup_ep_qp(ep); ep 31 drivers/misc/mic/scif/scif_nm.c spin_unlock(&ep->lock); ep 35 drivers/misc/mic/scif/scif_nm.c ep = list_entry(pos, struct scif_endpt, list); ep 36 drivers/misc/mic/scif/scif_nm.c if (ep->remote_dev->node == node) { ep 38 drivers/misc/mic/scif/scif_nm.c spin_lock(&ep->lock); ep 39 drivers/misc/mic/scif/scif_nm.c ep->state = SCIFEP_DISCONNECTED; ep 40 drivers/misc/mic/scif/scif_nm.c list_add_tail(&ep->list, &scif_info.disconnected); ep 41 drivers/misc/mic/scif/scif_nm.c scif_cleanup_ep_qp(ep); ep 42 drivers/misc/mic/scif/scif_nm.c wake_up_interruptible(&ep->sendwq); ep 43 drivers/misc/mic/scif/scif_nm.c wake_up_interruptible(&ep->recvwq); ep 44 drivers/misc/mic/scif/scif_nm.c spin_unlock(&ep->lock); ep 45 drivers/misc/mic/scif/scif_nm.c scif_unmap_all_windows(ep); ep 28 drivers/misc/mic/scif/scif_rma.c void scif_rma_ep_init(struct scif_endpt *ep) ep 30 drivers/misc/mic/scif/scif_rma.c struct scif_endpt_rma_info *rma = &ep->rma_info; ep 56 drivers/misc/mic/scif/scif_rma.c int scif_rma_ep_can_uninit(struct scif_endpt *ep) ep 60 drivers/misc/mic/scif/scif_rma.c mutex_lock(&ep->rma_info.rma_lock); ep 62 drivers/misc/mic/scif/scif_rma.c if (list_empty(&ep->rma_info.reg_list) && ep 63 drivers/misc/mic/scif/scif_rma.c list_empty(&ep->rma_info.remote_reg_list) && ep 64 drivers/misc/mic/scif/scif_rma.c list_empty(&ep->rma_info.mmn_list) && ep 65 drivers/misc/mic/scif/scif_rma.c !atomic_read(&ep->rma_info.tw_refcount) && ep 66 drivers/misc/mic/scif/scif_rma.c !atomic_read(&ep->rma_info.tcw_refcount) && ep 67 drivers/misc/mic/scif/scif_rma.c !atomic_read(&ep->rma_info.fence_refcount)) ep 69 drivers/misc/mic/scif/scif_rma.c mutex_unlock(&ep->rma_info.rma_lock); ep 139 drivers/misc/mic/scif/scif_rma.c struct scif_window *scif_create_window(struct scif_endpt *ep, int nr_pages, ep 158 drivers/misc/mic/scif/scif_rma.c window->ep = (u64)ep; ep 184 drivers/misc/mic/scif/scif_rma.c static void scif_destroy_incomplete_window(struct scif_endpt *ep, ep 197 drivers/misc/mic/scif/scif_rma.c if (!err && scifdev_alive(ep)) ep 200 drivers/misc/mic/scif/scif_rma.c mutex_lock(&ep->rma_info.rma_lock); ep 203 drivers/misc/mic/scif/scif_rma.c msg.src = ep->port; ep 204 drivers/misc/mic/scif/scif_rma.c msg.payload[0] = ep->remote_ep; ep 208 drivers/misc/mic/scif/scif_rma.c _scif_nodeqp_send(ep->remote_dev, &msg); ep 210 drivers/misc/mic/scif/scif_rma.c mutex_unlock(&ep->rma_info.rma_lock); ep 212 drivers/misc/mic/scif/scif_rma.c scif_free_window_offset(ep, window, window->offset); ep 303 drivers/misc/mic/scif/scif_rma.c int scif_destroy_window(struct scif_endpt *ep, struct scif_window *window) ep 316 drivers/misc/mic/scif/scif_rma.c scif_free_window_offset(ep, window, window->offset); ep 317 drivers/misc/mic/scif/scif_rma.c scif_unmap_window(ep->remote_dev, window); ep 627 drivers/misc/mic/scif/scif_rma.c static int scif_send_scif_unregister(struct scif_endpt *ep, ep 633 drivers/misc/mic/scif/scif_rma.c msg.src = ep->port; ep 636 drivers/misc/mic/scif/scif_rma.c return scif_nodeqp_send(ep->remote_dev, &msg); ep 648 drivers/misc/mic/scif/scif_rma.c struct scif_endpt *ep = (struct scif_endpt *)window->ep; ep 662 drivers/misc/mic/scif/scif_rma.c mutex_unlock(&ep->rma_info.rma_lock); ep 664 drivers/misc/mic/scif/scif_rma.c err = scif_send_scif_unregister(ep, window); ep 671 drivers/misc/mic/scif/scif_rma.c mutex_lock(&ep->rma_info.rma_lock); ep 679 drivers/misc/mic/scif/scif_rma.c if (!err && scifdev_alive(ep)) ep 690 drivers/misc/mic/scif/scif_rma.c mutex_lock(&ep->rma_info.rma_lock); ep 696 drivers/misc/mic/scif/scif_rma.c if (!scifdev_alive(ep)) { ep 712 drivers/misc/mic/scif/scif_rma.c atomic_inc(&ep->rma_info.tw_refcount); ep 714 drivers/misc/mic/scif/scif_rma.c scif_free_window_offset(ep, window, window->offset); ep 715 drivers/misc/mic/scif/scif_rma.c mutex_unlock(&ep->rma_info.rma_lock); ep 717 drivers/misc/mic/scif/scif_rma.c scifdev_alive(ep)) { ep 718 drivers/misc/mic/scif/scif_rma.c scif_drain_dma_intr(ep->remote_dev->sdev, ep 719 drivers/misc/mic/scif/scif_rma.c ep->rma_info.dma_chan); ep 728 drivers/misc/mic/scif/scif_rma.c mutex_lock(&ep->rma_info.rma_lock); ep 740 drivers/misc/mic/scif/scif_rma.c static int scif_send_alloc_request(struct scif_endpt *ep, ep 754 drivers/misc/mic/scif/scif_rma.c return _scif_nodeqp_send(ep->remote_dev, &msg); ep 765 drivers/misc/mic/scif/scif_rma.c static int scif_prep_remote_window(struct scif_endpt *ep, ep 777 drivers/misc/mic/scif/scif_rma.c map_err = scif_map_window(ep->remote_dev, window); ep 779 drivers/misc/mic/scif/scif_rma.c dev_err(&ep->remote_dev->sdev->dev, ep 788 drivers/misc/mic/scif/scif_rma.c mutex_lock(&ep->rma_info.rma_lock); ep 790 drivers/misc/mic/scif/scif_rma.c mutex_unlock(&ep->rma_info.rma_lock); ep 791 drivers/misc/mic/scif/scif_rma.c if (!err && scifdev_alive(ep)) ep 807 drivers/misc/mic/scif/scif_rma.c dev_err(&ep->remote_dev->sdev->dev, ep 810 drivers/misc/mic/scif/scif_rma.c msg.src = ep->port; ep 811 drivers/misc/mic/scif/scif_rma.c msg.payload[0] = ep->remote_ep; ep 815 drivers/misc/mic/scif/scif_rma.c spin_lock(&ep->lock); ep 816 drivers/misc/mic/scif/scif_rma.c if (ep->state == SCIFEP_CONNECTED) ep 817 drivers/misc/mic/scif/scif_rma.c err = _scif_nodeqp_send(ep->remote_dev, &msg); ep 820 drivers/misc/mic/scif/scif_rma.c spin_unlock(&ep->lock); ep 825 drivers/misc/mic/scif/scif_rma.c ep->remote_dev); ep 835 drivers/misc/mic/scif/scif_rma.c ep->remote_dev); ep 840 drivers/misc/mic/scif/scif_rma.c ep->remote_dev); ep 856 drivers/misc/mic/scif/scif_rma.c ep->remote_dev); ep 860 drivers/misc/mic/scif/scif_rma.c ep->remote_dev); ep 869 drivers/misc/mic/scif/scif_rma.c if (scifdev_is_p2p(ep->remote_dev)) { ep 879 drivers/misc/mic/scif/scif_rma.c ep->remote_dev->base_addr; ep 909 drivers/misc/mic/scif/scif_rma.c sizeof(*window->dma_addr), ep->remote_dev); ep 911 drivers/misc/mic/scif/scif_rma.c sizeof(*window->num_pages), ep->remote_dev); ep 919 drivers/misc/mic/scif/scif_rma.c remote_window->ep = ep->remote_ep; ep 923 drivers/misc/mic/scif/scif_rma.c ep->remote_dev); ep 927 drivers/misc/mic/scif/scif_rma.c ep->remote_dev); ep 928 drivers/misc/mic/scif/scif_rma.c scif_iounmap(remote_window, sizeof(*remote_window), ep->remote_dev); ep 942 drivers/misc/mic/scif/scif_rma.c static int scif_send_scif_register(struct scif_endpt *ep, ep 948 drivers/misc/mic/scif/scif_rma.c msg.src = ep->port; ep 949 drivers/misc/mic/scif/scif_rma.c msg.payload[0] = ep->remote_ep; ep 952 drivers/misc/mic/scif/scif_rma.c spin_lock(&ep->lock); ep 953 drivers/misc/mic/scif/scif_rma.c if (ep->state == SCIFEP_CONNECTED) { ep 956 drivers/misc/mic/scif/scif_rma.c err = _scif_nodeqp_send(ep->remote_dev, &msg); ep 957 drivers/misc/mic/scif/scif_rma.c spin_unlock(&ep->lock); ep 965 drivers/misc/mic/scif/scif_rma.c if (!err && scifdev_alive(ep)) ep 974 drivers/misc/mic/scif/scif_rma.c err = _scif_nodeqp_send(ep->remote_dev, &msg); ep 975 drivers/misc/mic/scif/scif_rma.c spin_unlock(&ep->lock); ep 992 drivers/misc/mic/scif/scif_rma.c int scif_get_window_offset(struct scif_endpt *ep, int flags, s64 offset, ep 1001 drivers/misc/mic/scif/scif_rma.c iova_ptr = reserve_iova(&ep->rma_info.iovad, page_index, ep 1006 drivers/misc/mic/scif/scif_rma.c iova_ptr = alloc_iova(&ep->rma_info.iovad, num_pages, ep 1025 drivers/misc/mic/scif/scif_rma.c void scif_free_window_offset(struct scif_endpt *ep, ep 1029 drivers/misc/mic/scif/scif_rma.c free_iova(&ep->rma_info.iovad, offset >> PAGE_SHIFT); ep 1081 drivers/misc/mic/scif/scif_rma.c struct scif_endpt *ep = (struct scif_endpt *)window->ep; ep 1083 drivers/misc/mic/scif/scif_rma.c mutex_lock(&ep->rma_info.rma_lock); ep 1091 drivers/misc/mic/scif/scif_rma.c mutex_unlock(&ep->rma_info.rma_lock); ep 1140 drivers/misc/mic/scif/scif_rma.c struct scif_endpt *ep = (struct scif_endpt *)msg->payload[0]; ep 1144 drivers/misc/mic/scif/scif_rma.c mutex_lock(&ep->rma_info.rma_lock); ep 1145 drivers/misc/mic/scif/scif_rma.c spin_lock(&ep->lock); ep 1146 drivers/misc/mic/scif/scif_rma.c if (ep->state == SCIFEP_CONNECTED) { ep 1148 drivers/misc/mic/scif/scif_rma.c scif_nodeqp_send(ep->remote_dev, msg); ep 1149 drivers/misc/mic/scif/scif_rma.c scif_fixup_aper_base(ep->remote_dev, window); ep 1151 drivers/misc/mic/scif/scif_rma.c scif_insert_window(window, &ep->rma_info.remote_reg_list); ep 1154 drivers/misc/mic/scif/scif_rma.c scif_nodeqp_send(ep->remote_dev, msg); ep 1156 drivers/misc/mic/scif/scif_rma.c spin_unlock(&ep->lock); ep 1157 drivers/misc/mic/scif/scif_rma.c mutex_unlock(&ep->rma_info.rma_lock); ep 1159 drivers/misc/mic/scif/scif_rma.c scif_destroy_remote_lookup(ep->remote_dev, window); ep 1180 drivers/misc/mic/scif/scif_rma.c struct scif_endpt *ep; ep 1183 drivers/misc/mic/scif/scif_rma.c ep = (struct scif_endpt *)recv_window->ep; ep 1189 drivers/misc/mic/scif/scif_rma.c req.head = &ep->rma_info.remote_reg_list; ep 1190 drivers/misc/mic/scif/scif_rma.c msg->payload[0] = ep->remote_ep; ep 1192 drivers/misc/mic/scif/scif_rma.c mutex_lock(&ep->rma_info.rma_lock); ep 1210 drivers/misc/mic/scif/scif_rma.c atomic_inc(&ep->rma_info.tw_refcount); ep 1211 drivers/misc/mic/scif/scif_rma.c ep->rma_info.async_list_del = 1; ep 1224 drivers/misc/mic/scif/scif_rma.c mutex_unlock(&ep->rma_info.rma_lock); ep 1226 drivers/misc/mic/scif/scif_rma.c scif_drain_dma_intr(ep->remote_dev->sdev, ep 1227 drivers/misc/mic/scif/scif_rma.c ep->rma_info.dma_chan); ep 1228 drivers/misc/mic/scif/scif_rma.c scif_nodeqp_send(ep->remote_dev, msg); ep 1243 drivers/misc/mic/scif/scif_rma.c struct scif_endpt *ep = (struct scif_endpt *)window->ep; ep 1245 drivers/misc/mic/scif/scif_rma.c mutex_lock(&ep->rma_info.rma_lock); ep 1248 drivers/misc/mic/scif/scif_rma.c mutex_unlock(&ep->rma_info.rma_lock); ep 1262 drivers/misc/mic/scif/scif_rma.c struct scif_endpt *ep = (struct scif_endpt *)window->ep; ep 1264 drivers/misc/mic/scif/scif_rma.c mutex_lock(&ep->rma_info.rma_lock); ep 1267 drivers/misc/mic/scif/scif_rma.c mutex_unlock(&ep->rma_info.rma_lock); ep 1280 drivers/misc/mic/scif/scif_rma.c struct scif_endpt *ep = (struct scif_endpt *)window->ep; ep 1282 drivers/misc/mic/scif/scif_rma.c mutex_lock(&ep->rma_info.rma_lock); ep 1285 drivers/misc/mic/scif/scif_rma.c mutex_unlock(&ep->rma_info.rma_lock); ep 1299 drivers/misc/mic/scif/scif_rma.c struct scif_endpt *ep = (struct scif_endpt *)window->ep; ep 1301 drivers/misc/mic/scif/scif_rma.c mutex_lock(&ep->rma_info.rma_lock); ep 1304 drivers/misc/mic/scif/scif_rma.c mutex_unlock(&ep->rma_info.rma_lock); ep 1459 drivers/misc/mic/scif/scif_rma.c scif_insert_local_window(struct scif_window *window, struct scif_endpt *ep) ep 1461 drivers/misc/mic/scif/scif_rma.c mutex_lock(&ep->rma_info.rma_lock); ep 1462 drivers/misc/mic/scif/scif_rma.c scif_insert_window(window, &ep->rma_info.reg_list); ep 1463 drivers/misc/mic/scif/scif_rma.c mutex_unlock(&ep->rma_info.rma_lock); ep 1470 drivers/misc/mic/scif/scif_rma.c struct scif_endpt *ep = (struct scif_endpt *)epd; ep 1495 drivers/misc/mic/scif/scif_rma.c err = scif_verify_epd(ep); ep 1506 drivers/misc/mic/scif/scif_rma.c err = scif_get_window_offset(ep, map_flags, offset, ep 1514 drivers/misc/mic/scif/scif_rma.c window = scif_create_window(ep, pinned_pages->nr_pages, ep 1518 drivers/misc/mic/scif/scif_rma.c scif_free_window_offset(ep, NULL, computed_offset); ep 1526 drivers/misc/mic/scif/scif_rma.c spdev = scif_get_peer_dev(ep->remote_dev); ep 1529 drivers/misc/mic/scif/scif_rma.c scif_destroy_window(ep, window); ep 1532 drivers/misc/mic/scif/scif_rma.c err = scif_send_alloc_request(ep, window); ep 1534 drivers/misc/mic/scif/scif_rma.c dev_err(&ep->remote_dev->sdev->dev, ep 1540 drivers/misc/mic/scif/scif_rma.c err = scif_prep_remote_window(ep, window); ep 1542 drivers/misc/mic/scif/scif_rma.c dev_err(&ep->remote_dev->sdev->dev, ep 1548 drivers/misc/mic/scif/scif_rma.c err = scif_send_scif_register(ep, window); ep 1550 drivers/misc/mic/scif/scif_rma.c dev_err(&ep->remote_dev->sdev->dev, ep 1557 drivers/misc/mic/scif/scif_rma.c scif_insert_local_window(window, ep); ep 1560 drivers/misc/mic/scif/scif_rma.c scif_destroy_window(ep, window); ep 1562 drivers/misc/mic/scif/scif_rma.c dev_err(&ep->remote_dev->sdev->dev, ep 1573 drivers/misc/mic/scif/scif_rma.c struct scif_endpt *ep = (struct scif_endpt *)epd; ep 1607 drivers/misc/mic/scif/scif_rma.c err = scif_verify_epd(ep); ep 1612 drivers/misc/mic/scif/scif_rma.c err = scif_get_window_offset(ep, map_flags, offset, ep 1617 drivers/misc/mic/scif/scif_rma.c spdev = scif_get_peer_dev(ep->remote_dev); ep 1620 drivers/misc/mic/scif/scif_rma.c scif_free_window_offset(ep, NULL, computed_offset); ep 1624 drivers/misc/mic/scif/scif_rma.c window = scif_create_window(ep, len >> PAGE_SHIFT, ep 1627 drivers/misc/mic/scif/scif_rma.c scif_free_window_offset(ep, NULL, computed_offset); ep 1634 drivers/misc/mic/scif/scif_rma.c err = scif_send_alloc_request(ep, window); ep 1636 drivers/misc/mic/scif/scif_rma.c scif_destroy_incomplete_window(ep, window); ep 1650 drivers/misc/mic/scif/scif_rma.c scif_destroy_incomplete_window(ep, window); ep 1660 drivers/misc/mic/scif/scif_rma.c err = scif_prep_remote_window(ep, window); ep 1662 drivers/misc/mic/scif/scif_rma.c dev_err(&ep->remote_dev->sdev->dev, ep 1668 drivers/misc/mic/scif/scif_rma.c err = scif_send_scif_register(ep, window); ep 1670 drivers/misc/mic/scif/scif_rma.c dev_err(&ep->remote_dev->sdev->dev, ep 1677 drivers/misc/mic/scif/scif_rma.c scif_insert_local_window(window, ep); ep 1678 drivers/misc/mic/scif/scif_rma.c dev_dbg(&ep->remote_dev->sdev->dev, ep 1683 drivers/misc/mic/scif/scif_rma.c scif_destroy_window(ep, window); ep 1686 drivers/misc/mic/scif/scif_rma.c dev_err(&ep->remote_dev->sdev->dev, ep 1695 drivers/misc/mic/scif/scif_rma.c struct scif_endpt *ep = (struct scif_endpt *)epd; ep 1703 drivers/misc/mic/scif/scif_rma.c ep, offset, len); ep 1715 drivers/misc/mic/scif/scif_rma.c err = scif_verify_epd(ep); ep 1727 drivers/misc/mic/scif/scif_rma.c req.head = &ep->rma_info.reg_list; ep 1729 drivers/misc/mic/scif/scif_rma.c spdev = scif_get_peer_dev(ep->remote_dev); ep 1734 drivers/misc/mic/scif/scif_rma.c mutex_lock(&ep->rma_info.rma_lock); ep 1738 drivers/misc/mic/scif/scif_rma.c dev_err(&ep->remote_dev->sdev->dev, ep 1745 drivers/misc/mic/scif/scif_rma.c dev_err(&ep->remote_dev->sdev->dev, ep 1748 drivers/misc/mic/scif/scif_rma.c mutex_unlock(&ep->rma_info.rma_lock); ep 205 drivers/misc/mic/scif/scif_rma.h struct scif_endpt *ep; ep 218 drivers/misc/mic/scif/scif_rma.h struct scif_endpt *ep; ep 264 drivers/misc/mic/scif/scif_rma.h u64 ep; ep 307 drivers/misc/mic/scif/scif_rma.h struct scif_endpt *ep; ep 318 drivers/misc/mic/scif/scif_rma.h void scif_rma_ep_init(struct scif_endpt *ep); ep 320 drivers/misc/mic/scif/scif_rma.h int scif_rma_ep_can_uninit(struct scif_endpt *ep); ep 322 drivers/misc/mic/scif/scif_rma.h int scif_get_window_offset(struct scif_endpt *ep, int flags, ep 325 drivers/misc/mic/scif/scif_rma.h void scif_free_window_offset(struct scif_endpt *ep, ep 328 drivers/misc/mic/scif/scif_rma.h struct scif_window *scif_create_window(struct scif_endpt *ep, int nr_pages, ep 331 drivers/misc/mic/scif/scif_rma.h int scif_destroy_window(struct scif_endpt *ep, struct scif_window *window); ep 348 drivers/misc/mic/scif/scif_rma.h int scif_reserve_dma_chan(struct scif_endpt *ep); ep 76 drivers/misc/mic/scif/scif_rma_list.c int scif_query_tcw(struct scif_endpt *ep, struct scif_rma_req *req) ep 197 drivers/misc/mic/scif/scif_rma_list.c struct scif_endpt *ep = (struct scif_endpt *)window->ep; ep 198 drivers/misc/mic/scif/scif_rma_list.c struct list_head *head = &ep->rma_info.reg_list; ep 229 drivers/misc/mic/scif/scif_rma_list.c struct scif_endpt *ep = (struct scif_endpt *)epd; ep 230 drivers/misc/mic/scif/scif_rma_list.c struct list_head *head = &ep->rma_info.reg_list; ep 232 drivers/misc/mic/scif/scif_rma_list.c mutex_lock(&ep->rma_info.rma_lock); ep 235 drivers/misc/mic/scif/scif_rma_list.c scif_unmap_window(ep->remote_dev, window); ep 237 drivers/misc/mic/scif/scif_rma_list.c mutex_unlock(&ep->rma_info.rma_lock); ep 251 drivers/misc/mic/scif/scif_rma_list.c struct scif_endpt *ep = (struct scif_endpt *)epd; ep 252 drivers/misc/mic/scif/scif_rma_list.c struct list_head *head = &ep->rma_info.reg_list; ep 255 drivers/misc/mic/scif/scif_rma_list.c mutex_lock(&ep->rma_info.rma_lock); ep 261 drivers/misc/mic/scif/scif_rma_list.c ep->rma_info.async_list_del = 0; ep 271 drivers/misc/mic/scif/scif_rma_list.c if (READ_ONCE(ep->rma_info.async_list_del)) ep 274 drivers/misc/mic/scif/scif_rma_list.c mutex_unlock(&ep->rma_info.rma_lock); ep 275 drivers/misc/mic/scif/scif_rma_list.c if (!list_empty(&ep->rma_info.mmn_list)) { ep 277 drivers/misc/mic/scif/scif_rma_list.c list_add_tail(&ep->mmu_list, &scif_info.mmu_notif_cleanup); ep 41 drivers/misc/mic/scif/scif_rma_list.h int scif_query_tcw(struct scif_endpt *ep, struct scif_rma_req *request); ep 2386 drivers/misc/vmw_vmci/vmci_queue_pair.c struct qp_guest_endpoint *ep; ep 2391 drivers/misc/vmw_vmci/vmci_queue_pair.c ep = (struct qp_guest_endpoint *)entry; ep 2401 drivers/misc/vmw_vmci/vmci_queue_pair.c qp_guest_endpoint_destroy(ep); ep 35 drivers/mtd/nand/raw/nand_onfi.c struct onfi_ext_param_page *ep; ep 44 drivers/mtd/nand/raw/nand_onfi.c ep = kmalloc(len, GFP_KERNEL); ep 45 drivers/mtd/nand/raw/nand_onfi.c if (!ep) ep 56 drivers/mtd/nand/raw/nand_onfi.c ep, len, true); ep 61 drivers/mtd/nand/raw/nand_onfi.c if ((onfi_crc16(ONFI_CRC_BASE, ((uint8_t *)ep) + 2, len - 2) ep 62 drivers/mtd/nand/raw/nand_onfi.c != le16_to_cpu(ep->crc))) { ep 71 drivers/mtd/nand/raw/nand_onfi.c if (strncmp(ep->sig, "EPPS", 4)) { ep 77 drivers/mtd/nand/raw/nand_onfi.c cursor = (uint8_t *)(ep + 1); ep 79 drivers/mtd/nand/raw/nand_onfi.c s = ep->sections + i; ep 102 drivers/mtd/nand/raw/nand_onfi.c kfree(ep); ep 3244 drivers/net/bonding/bond_main.c struct ethhdr *ep, hdr_tmp; ep 3246 drivers/net/bonding/bond_main.c ep = skb_header_pointer(skb, 0, sizeof(hdr_tmp), &hdr_tmp); ep 3247 drivers/net/bonding/bond_main.c if (ep) ep 3248 drivers/net/bonding/bond_main.c return ep->h_dest[5] ^ ep->h_source[5] ^ ep->h_proto; ep 1590 drivers/net/can/usb/kvaser_usb/kvaser_usb_hydra.c struct usb_endpoint_descriptor *ep; ep 1596 drivers/net/can/usb/kvaser_usb/kvaser_usb_hydra.c ep = &iface_desc->endpoint[i].desc; ep 1598 drivers/net/can/usb/kvaser_usb/kvaser_usb_hydra.c if (!dev->bulk_in && usb_endpoint_is_bulk_in(ep) && ep 1599 drivers/net/can/usb/kvaser_usb/kvaser_usb_hydra.c ep->bEndpointAddress == KVASER_USB_HYDRA_BULK_EP_IN_ADDR) ep 1600 drivers/net/can/usb/kvaser_usb/kvaser_usb_hydra.c dev->bulk_in = ep; ep 1602 drivers/net/can/usb/kvaser_usb/kvaser_usb_hydra.c if (!dev->bulk_out && usb_endpoint_is_bulk_out(ep) && ep 1603 drivers/net/can/usb/kvaser_usb/kvaser_usb_hydra.c ep->bEndpointAddress == KVASER_USB_HYDRA_BULK_EP_OUT_ADDR) ep 1604 drivers/net/can/usb/kvaser_usb/kvaser_usb_hydra.c dev->bulk_out = ep; ep 841 drivers/net/can/usb/peak_usb/pcan_usb.c struct usb_endpoint_descriptor *ep = &if_desc->endpoint[i].desc; ep 843 drivers/net/can/usb/peak_usb/pcan_usb.c switch (ep->bEndpointAddress) { ep 973 drivers/net/can/usb/peak_usb/pcan_usb_pro.c struct usb_endpoint_descriptor *ep = &if_desc->endpoint[i].desc; ep 979 drivers/net/can/usb/peak_usb/pcan_usb_pro.c switch (ep->bEndpointAddress) { ep 1307 drivers/net/can/usb/ucan.c struct usb_endpoint_descriptor *ep; ep 1348 drivers/net/can/usb/ucan.c ep = &iface_desc->endpoint[i].desc; ep 1350 drivers/net/can/usb/ucan.c if (((ep->bEndpointAddress & USB_ENDPOINT_DIR_MASK) != 0) && ep 1351 drivers/net/can/usb/ucan.c ((ep->bmAttributes & USB_ENDPOINT_XFERTYPE_MASK) == ep 1354 drivers/net/can/usb/ucan.c in_ep_addr = ep->bEndpointAddress; ep 1356 drivers/net/can/usb/ucan.c in_ep_size = le16_to_cpu(ep->wMaxPacketSize); ep 1357 drivers/net/can/usb/ucan.c } else if (((ep->bEndpointAddress & USB_ENDPOINT_DIR_MASK) == ep 1359 drivers/net/can/usb/ucan.c ((ep->bmAttributes & USB_ENDPOINT_XFERTYPE_MASK) == ep 1362 drivers/net/can/usb/ucan.c out_ep_addr = ep->bEndpointAddress; ep 1364 drivers/net/can/usb/ucan.c out_ep_size = le16_to_cpu(ep->wMaxPacketSize); ep 178 drivers/net/ethernet/cirrus/ep93xx_eth.c #define rdb(ep, off) __raw_readb((ep)->base_addr + (off)) ep 179 drivers/net/ethernet/cirrus/ep93xx_eth.c #define rdw(ep, off) __raw_readw((ep)->base_addr + (off)) ep 180 drivers/net/ethernet/cirrus/ep93xx_eth.c #define rdl(ep, off) __raw_readl((ep)->base_addr + (off)) ep 181 drivers/net/ethernet/cirrus/ep93xx_eth.c #define wrb(ep, off, val) __raw_writeb((val), (ep)->base_addr + (off)) ep 182 drivers/net/ethernet/cirrus/ep93xx_eth.c #define wrw(ep, off, val) __raw_writew((val), (ep)->base_addr + (off)) ep 183 drivers/net/ethernet/cirrus/ep93xx_eth.c #define wrl(ep, off, val) __raw_writel((val), (ep)->base_addr + (off)) ep 187 drivers/net/ethernet/cirrus/ep93xx_eth.c struct ep93xx_priv *ep = netdev_priv(dev); ep 191 drivers/net/ethernet/cirrus/ep93xx_eth.c wrl(ep, REG_MIICMD, REG_MIICMD_READ | (phy_id << 5) | reg); ep 194 drivers/net/ethernet/cirrus/ep93xx_eth.c if ((rdl(ep, REG_MIISTS) & REG_MIISTS_BUSY) == 0) ep 203 drivers/net/ethernet/cirrus/ep93xx_eth.c data = rdl(ep, REG_MIIDATA); ep 211 drivers/net/ethernet/cirrus/ep93xx_eth.c struct ep93xx_priv *ep = netdev_priv(dev); ep 214 drivers/net/ethernet/cirrus/ep93xx_eth.c wrl(ep, REG_MIIDATA, data); ep 215 drivers/net/ethernet/cirrus/ep93xx_eth.c wrl(ep, REG_MIICMD, REG_MIICMD_WRITE | (phy_id << 5) | reg); ep 218 drivers/net/ethernet/cirrus/ep93xx_eth.c if ((rdl(ep, REG_MIISTS) & REG_MIISTS_BUSY) == 0) ep 229 drivers/net/ethernet/cirrus/ep93xx_eth.c struct ep93xx_priv *ep = netdev_priv(dev); ep 240 drivers/net/ethernet/cirrus/ep93xx_eth.c entry = ep->rx_pointer; ep 241 drivers/net/ethernet/cirrus/ep93xx_eth.c rstat = ep->descs->rstat + entry; ep 283 drivers/net/ethernet/cirrus/ep93xx_eth.c struct ep93xx_rdesc *rxd = &ep->descs->rdesc[entry]; ep 287 drivers/net/ethernet/cirrus/ep93xx_eth.c skb_copy_to_linear_data(skb, ep->rx_buf[entry], length); ep 294 drivers/net/ethernet/cirrus/ep93xx_eth.c napi_gro_receive(&ep->napi, skb); ep 303 drivers/net/ethernet/cirrus/ep93xx_eth.c ep->rx_pointer = (entry + 1) & (RX_QUEUE_ENTRIES - 1); ep 312 drivers/net/ethernet/cirrus/ep93xx_eth.c struct ep93xx_priv *ep = container_of(napi, struct ep93xx_priv, napi); ep 313 drivers/net/ethernet/cirrus/ep93xx_eth.c struct net_device *dev = ep->dev; ep 318 drivers/net/ethernet/cirrus/ep93xx_eth.c spin_lock_irq(&ep->rx_lock); ep 319 drivers/net/ethernet/cirrus/ep93xx_eth.c wrl(ep, REG_INTEN, REG_INTEN_TX | REG_INTEN_RX); ep 320 drivers/net/ethernet/cirrus/ep93xx_eth.c spin_unlock_irq(&ep->rx_lock); ep 324 drivers/net/ethernet/cirrus/ep93xx_eth.c wrw(ep, REG_RXDENQ, rx); ep 325 drivers/net/ethernet/cirrus/ep93xx_eth.c wrw(ep, REG_RXSTSENQ, rx); ep 333 drivers/net/ethernet/cirrus/ep93xx_eth.c struct ep93xx_priv *ep = netdev_priv(dev); ep 343 drivers/net/ethernet/cirrus/ep93xx_eth.c entry = ep->tx_pointer; ep 344 drivers/net/ethernet/cirrus/ep93xx_eth.c ep->tx_pointer = (ep->tx_pointer + 1) & (TX_QUEUE_ENTRIES - 1); ep 346 drivers/net/ethernet/cirrus/ep93xx_eth.c txd = &ep->descs->tdesc[entry]; ep 351 drivers/net/ethernet/cirrus/ep93xx_eth.c skb_copy_and_csum_dev(skb, ep->tx_buf[entry]); ep 356 drivers/net/ethernet/cirrus/ep93xx_eth.c spin_lock_irq(&ep->tx_pending_lock); ep 357 drivers/net/ethernet/cirrus/ep93xx_eth.c ep->tx_pending++; ep 358 drivers/net/ethernet/cirrus/ep93xx_eth.c if (ep->tx_pending == TX_QUEUE_ENTRIES) ep 360 drivers/net/ethernet/cirrus/ep93xx_eth.c spin_unlock_irq(&ep->tx_pending_lock); ep 362 drivers/net/ethernet/cirrus/ep93xx_eth.c wrl(ep, REG_TXDENQ, 1); ep 369 drivers/net/ethernet/cirrus/ep93xx_eth.c struct ep93xx_priv *ep = netdev_priv(dev); ep 374 drivers/net/ethernet/cirrus/ep93xx_eth.c spin_lock(&ep->tx_pending_lock); ep 380 drivers/net/ethernet/cirrus/ep93xx_eth.c entry = ep->tx_clean_pointer; ep 381 drivers/net/ethernet/cirrus/ep93xx_eth.c tstat = ep->descs->tstat + entry; ep 395 drivers/net/ethernet/cirrus/ep93xx_eth.c int length = ep->descs->tdesc[entry].tdesc1 & 0xfff; ep 409 drivers/net/ethernet/cirrus/ep93xx_eth.c ep->tx_clean_pointer = (entry + 1) & (TX_QUEUE_ENTRIES - 1); ep 410 drivers/net/ethernet/cirrus/ep93xx_eth.c if (ep->tx_pending == TX_QUEUE_ENTRIES) ep 412 drivers/net/ethernet/cirrus/ep93xx_eth.c ep->tx_pending--; ep 414 drivers/net/ethernet/cirrus/ep93xx_eth.c spin_unlock(&ep->tx_pending_lock); ep 423 drivers/net/ethernet/cirrus/ep93xx_eth.c struct ep93xx_priv *ep = netdev_priv(dev); ep 426 drivers/net/ethernet/cirrus/ep93xx_eth.c status = rdl(ep, REG_INTSTSC); ep 431 drivers/net/ethernet/cirrus/ep93xx_eth.c spin_lock(&ep->rx_lock); ep 432 drivers/net/ethernet/cirrus/ep93xx_eth.c if (likely(napi_schedule_prep(&ep->napi))) { ep 433 drivers/net/ethernet/cirrus/ep93xx_eth.c wrl(ep, REG_INTEN, REG_INTEN_TX); ep 434 drivers/net/ethernet/cirrus/ep93xx_eth.c __napi_schedule(&ep->napi); ep 436 drivers/net/ethernet/cirrus/ep93xx_eth.c spin_unlock(&ep->rx_lock); ep 445 drivers/net/ethernet/cirrus/ep93xx_eth.c static void ep93xx_free_buffers(struct ep93xx_priv *ep) ep 447 drivers/net/ethernet/cirrus/ep93xx_eth.c struct device *dev = ep->dev->dev.parent; ep 450 drivers/net/ethernet/cirrus/ep93xx_eth.c if (!ep->descs) ep 456 drivers/net/ethernet/cirrus/ep93xx_eth.c d = ep->descs->rdesc[i].buf_addr; ep 460 drivers/net/ethernet/cirrus/ep93xx_eth.c kfree(ep->rx_buf[i]); ep 466 drivers/net/ethernet/cirrus/ep93xx_eth.c d = ep->descs->tdesc[i].buf_addr; ep 470 drivers/net/ethernet/cirrus/ep93xx_eth.c kfree(ep->tx_buf[i]); ep 473 drivers/net/ethernet/cirrus/ep93xx_eth.c dma_free_coherent(dev, sizeof(struct ep93xx_descs), ep->descs, ep 474 drivers/net/ethernet/cirrus/ep93xx_eth.c ep->descs_dma_addr); ep 475 drivers/net/ethernet/cirrus/ep93xx_eth.c ep->descs = NULL; ep 478 drivers/net/ethernet/cirrus/ep93xx_eth.c static int ep93xx_alloc_buffers(struct ep93xx_priv *ep) ep 480 drivers/net/ethernet/cirrus/ep93xx_eth.c struct device *dev = ep->dev->dev.parent; ep 483 drivers/net/ethernet/cirrus/ep93xx_eth.c ep->descs = dma_alloc_coherent(dev, sizeof(struct ep93xx_descs), ep 484 drivers/net/ethernet/cirrus/ep93xx_eth.c &ep->descs_dma_addr, GFP_KERNEL); ep 485 drivers/net/ethernet/cirrus/ep93xx_eth.c if (ep->descs == NULL) ep 502 drivers/net/ethernet/cirrus/ep93xx_eth.c ep->rx_buf[i] = buf; ep 503 drivers/net/ethernet/cirrus/ep93xx_eth.c ep->descs->rdesc[i].buf_addr = d; ep 504 drivers/net/ethernet/cirrus/ep93xx_eth.c ep->descs->rdesc[i].rdesc1 = (i << 16) | PKT_BUF_SIZE; ep 521 drivers/net/ethernet/cirrus/ep93xx_eth.c ep->tx_buf[i] = buf; ep 522 drivers/net/ethernet/cirrus/ep93xx_eth.c ep->descs->tdesc[i].buf_addr = d; ep 528 drivers/net/ethernet/cirrus/ep93xx_eth.c ep93xx_free_buffers(ep); ep 534 drivers/net/ethernet/cirrus/ep93xx_eth.c struct ep93xx_priv *ep = netdev_priv(dev); ep 538 drivers/net/ethernet/cirrus/ep93xx_eth.c wrl(ep, REG_SELFCTL, REG_SELFCTL_RESET); ep 540 drivers/net/ethernet/cirrus/ep93xx_eth.c if ((rdl(ep, REG_SELFCTL) & REG_SELFCTL_RESET) == 0) ep 550 drivers/net/ethernet/cirrus/ep93xx_eth.c wrl(ep, REG_SELFCTL, ((ep->mdc_divisor - 1) << 9)); ep 553 drivers/net/ethernet/cirrus/ep93xx_eth.c if ((ep93xx_mdio_read(dev, ep->mii.phy_id, MII_BMSR) & 0x0040) != 0) ep 554 drivers/net/ethernet/cirrus/ep93xx_eth.c wrl(ep, REG_SELFCTL, ((ep->mdc_divisor - 1) << 9) | (1 << 8)); ep 557 drivers/net/ethernet/cirrus/ep93xx_eth.c addr = ep->descs_dma_addr + offsetof(struct ep93xx_descs, rdesc); ep 558 drivers/net/ethernet/cirrus/ep93xx_eth.c wrl(ep, REG_RXDQBADD, addr); ep 559 drivers/net/ethernet/cirrus/ep93xx_eth.c wrl(ep, REG_RXDCURADD, addr); ep 560 drivers/net/ethernet/cirrus/ep93xx_eth.c wrw(ep, REG_RXDQBLEN, RX_QUEUE_ENTRIES * sizeof(struct ep93xx_rdesc)); ep 563 drivers/net/ethernet/cirrus/ep93xx_eth.c addr = ep->descs_dma_addr + offsetof(struct ep93xx_descs, rstat); ep 564 drivers/net/ethernet/cirrus/ep93xx_eth.c wrl(ep, REG_RXSTSQBADD, addr); ep 565 drivers/net/ethernet/cirrus/ep93xx_eth.c wrl(ep, REG_RXSTSQCURADD, addr); ep 566 drivers/net/ethernet/cirrus/ep93xx_eth.c wrw(ep, REG_RXSTSQBLEN, RX_QUEUE_ENTRIES * sizeof(struct ep93xx_rstat)); ep 569 drivers/net/ethernet/cirrus/ep93xx_eth.c addr = ep->descs_dma_addr + offsetof(struct ep93xx_descs, tdesc); ep 570 drivers/net/ethernet/cirrus/ep93xx_eth.c wrl(ep, REG_TXDQBADD, addr); ep 571 drivers/net/ethernet/cirrus/ep93xx_eth.c wrl(ep, REG_TXDQCURADD, addr); ep 572 drivers/net/ethernet/cirrus/ep93xx_eth.c wrw(ep, REG_TXDQBLEN, TX_QUEUE_ENTRIES * sizeof(struct ep93xx_tdesc)); ep 575 drivers/net/ethernet/cirrus/ep93xx_eth.c addr = ep->descs_dma_addr + offsetof(struct ep93xx_descs, tstat); ep 576 drivers/net/ethernet/cirrus/ep93xx_eth.c wrl(ep, REG_TXSTSQBADD, addr); ep 577 drivers/net/ethernet/cirrus/ep93xx_eth.c wrl(ep, REG_TXSTSQCURADD, addr); ep 578 drivers/net/ethernet/cirrus/ep93xx_eth.c wrw(ep, REG_TXSTSQBLEN, TX_QUEUE_ENTRIES * sizeof(struct ep93xx_tstat)); ep 580 drivers/net/ethernet/cirrus/ep93xx_eth.c wrl(ep, REG_BMCTL, REG_BMCTL_ENABLE_TX | REG_BMCTL_ENABLE_RX); ep 581 drivers/net/ethernet/cirrus/ep93xx_eth.c wrl(ep, REG_INTEN, REG_INTEN_TX | REG_INTEN_RX); ep 582 drivers/net/ethernet/cirrus/ep93xx_eth.c wrl(ep, REG_GIINTMSK, 0); ep 585 drivers/net/ethernet/cirrus/ep93xx_eth.c if ((rdl(ep, REG_BMSTS) & REG_BMSTS_RX_ACTIVE) != 0) ep 595 drivers/net/ethernet/cirrus/ep93xx_eth.c wrl(ep, REG_RXDENQ, RX_QUEUE_ENTRIES); ep 596 drivers/net/ethernet/cirrus/ep93xx_eth.c wrl(ep, REG_RXSTSENQ, RX_QUEUE_ENTRIES); ep 598 drivers/net/ethernet/cirrus/ep93xx_eth.c wrb(ep, REG_INDAD0, dev->dev_addr[0]); ep 599 drivers/net/ethernet/cirrus/ep93xx_eth.c wrb(ep, REG_INDAD1, dev->dev_addr[1]); ep 600 drivers/net/ethernet/cirrus/ep93xx_eth.c wrb(ep, REG_INDAD2, dev->dev_addr[2]); ep 601 drivers/net/ethernet/cirrus/ep93xx_eth.c wrb(ep, REG_INDAD3, dev->dev_addr[3]); ep 602 drivers/net/ethernet/cirrus/ep93xx_eth.c wrb(ep, REG_INDAD4, dev->dev_addr[4]); ep 603 drivers/net/ethernet/cirrus/ep93xx_eth.c wrb(ep, REG_INDAD5, dev->dev_addr[5]); ep 604 drivers/net/ethernet/cirrus/ep93xx_eth.c wrl(ep, REG_AFP, 0); ep 606 drivers/net/ethernet/cirrus/ep93xx_eth.c wrl(ep, REG_MAXFRMLEN, (MAX_PKT_SIZE << 16) | MAX_PKT_SIZE); ep 608 drivers/net/ethernet/cirrus/ep93xx_eth.c wrl(ep, REG_RXCTL, REG_RXCTL_DEFAULT); ep 609 drivers/net/ethernet/cirrus/ep93xx_eth.c wrl(ep, REG_TXCTL, REG_TXCTL_ENABLE); ep 616 drivers/net/ethernet/cirrus/ep93xx_eth.c struct ep93xx_priv *ep = netdev_priv(dev); ep 619 drivers/net/ethernet/cirrus/ep93xx_eth.c wrl(ep, REG_SELFCTL, REG_SELFCTL_RESET); ep 621 drivers/net/ethernet/cirrus/ep93xx_eth.c if ((rdl(ep, REG_SELFCTL) & REG_SELFCTL_RESET) == 0) ep 632 drivers/net/ethernet/cirrus/ep93xx_eth.c struct ep93xx_priv *ep = netdev_priv(dev); ep 635 drivers/net/ethernet/cirrus/ep93xx_eth.c if (ep93xx_alloc_buffers(ep)) ep 638 drivers/net/ethernet/cirrus/ep93xx_eth.c napi_enable(&ep->napi); ep 641 drivers/net/ethernet/cirrus/ep93xx_eth.c napi_disable(&ep->napi); ep 642 drivers/net/ethernet/cirrus/ep93xx_eth.c ep93xx_free_buffers(ep); ep 646 drivers/net/ethernet/cirrus/ep93xx_eth.c spin_lock_init(&ep->rx_lock); ep 647 drivers/net/ethernet/cirrus/ep93xx_eth.c ep->rx_pointer = 0; ep 648 drivers/net/ethernet/cirrus/ep93xx_eth.c ep->tx_clean_pointer = 0; ep 649 drivers/net/ethernet/cirrus/ep93xx_eth.c ep->tx_pointer = 0; ep 650 drivers/net/ethernet/cirrus/ep93xx_eth.c spin_lock_init(&ep->tx_pending_lock); ep 651 drivers/net/ethernet/cirrus/ep93xx_eth.c ep->tx_pending = 0; ep 653 drivers/net/ethernet/cirrus/ep93xx_eth.c err = request_irq(ep->irq, ep93xx_irq, IRQF_SHARED, dev->name, dev); ep 655 drivers/net/ethernet/cirrus/ep93xx_eth.c napi_disable(&ep->napi); ep 657 drivers/net/ethernet/cirrus/ep93xx_eth.c ep93xx_free_buffers(ep); ep 661 drivers/net/ethernet/cirrus/ep93xx_eth.c wrl(ep, REG_GIINTMSK, REG_GIINTMSK_ENABLE); ep 670 drivers/net/ethernet/cirrus/ep93xx_eth.c struct ep93xx_priv *ep = netdev_priv(dev); ep 672 drivers/net/ethernet/cirrus/ep93xx_eth.c napi_disable(&ep->napi); ep 675 drivers/net/ethernet/cirrus/ep93xx_eth.c wrl(ep, REG_GIINTMSK, 0); ep 676 drivers/net/ethernet/cirrus/ep93xx_eth.c free_irq(ep->irq, dev); ep 678 drivers/net/ethernet/cirrus/ep93xx_eth.c ep93xx_free_buffers(ep); ep 685 drivers/net/ethernet/cirrus/ep93xx_eth.c struct ep93xx_priv *ep = netdev_priv(dev); ep 688 drivers/net/ethernet/cirrus/ep93xx_eth.c return generic_mii_ioctl(&ep->mii, data, cmd, NULL); ep 700 drivers/net/ethernet/cirrus/ep93xx_eth.c struct ep93xx_priv *ep = netdev_priv(dev); ep 702 drivers/net/ethernet/cirrus/ep93xx_eth.c mii_ethtool_get_link_ksettings(&ep->mii, cmd); ep 710 drivers/net/ethernet/cirrus/ep93xx_eth.c struct ep93xx_priv *ep = netdev_priv(dev); ep 711 drivers/net/ethernet/cirrus/ep93xx_eth.c return mii_ethtool_set_link_ksettings(&ep->mii, cmd); ep 716 drivers/net/ethernet/cirrus/ep93xx_eth.c struct ep93xx_priv *ep = netdev_priv(dev); ep 717 drivers/net/ethernet/cirrus/ep93xx_eth.c return mii_nway_restart(&ep->mii); ep 722 drivers/net/ethernet/cirrus/ep93xx_eth.c struct ep93xx_priv *ep = netdev_priv(dev); ep 723 drivers/net/ethernet/cirrus/ep93xx_eth.c return mii_link_ok(&ep->mii); ep 765 drivers/net/ethernet/cirrus/ep93xx_eth.c struct ep93xx_priv *ep; ep 772 drivers/net/ethernet/cirrus/ep93xx_eth.c ep = netdev_priv(dev); ep 776 drivers/net/ethernet/cirrus/ep93xx_eth.c ep93xx_free_buffers(ep); ep 778 drivers/net/ethernet/cirrus/ep93xx_eth.c if (ep->base_addr != NULL) ep 779 drivers/net/ethernet/cirrus/ep93xx_eth.c iounmap(ep->base_addr); ep 781 drivers/net/ethernet/cirrus/ep93xx_eth.c if (ep->res != NULL) { ep 795 drivers/net/ethernet/cirrus/ep93xx_eth.c struct ep93xx_priv *ep; ep 814 drivers/net/ethernet/cirrus/ep93xx_eth.c ep = netdev_priv(dev); ep 815 drivers/net/ethernet/cirrus/ep93xx_eth.c ep->dev = dev; ep 817 drivers/net/ethernet/cirrus/ep93xx_eth.c netif_napi_add(dev, &ep->napi, ep93xx_poll, 64); ep 821 drivers/net/ethernet/cirrus/ep93xx_eth.c ep->res = request_mem_region(mem->start, resource_size(mem), ep 823 drivers/net/ethernet/cirrus/ep93xx_eth.c if (ep->res == NULL) { ep 829 drivers/net/ethernet/cirrus/ep93xx_eth.c ep->base_addr = ioremap(mem->start, resource_size(mem)); ep 830 drivers/net/ethernet/cirrus/ep93xx_eth.c if (ep->base_addr == NULL) { ep 835 drivers/net/ethernet/cirrus/ep93xx_eth.c ep->irq = irq; ep 837 drivers/net/ethernet/cirrus/ep93xx_eth.c ep->mii.phy_id = data->phy_id; ep 838 drivers/net/ethernet/cirrus/ep93xx_eth.c ep->mii.phy_id_mask = 0x1f; ep 839 drivers/net/ethernet/cirrus/ep93xx_eth.c ep->mii.reg_num_mask = 0x1f; ep 840 drivers/net/ethernet/cirrus/ep93xx_eth.c ep->mii.dev = dev; ep 841 drivers/net/ethernet/cirrus/ep93xx_eth.c ep->mii.mdio_read = ep93xx_mdio_read; ep 842 drivers/net/ethernet/cirrus/ep93xx_eth.c ep->mii.mdio_write = ep93xx_mdio_write; ep 843 drivers/net/ethernet/cirrus/ep93xx_eth.c ep->mdc_divisor = 40; /* Max HCLK 100 MHz, min MDIO clk 2.5 MHz. */ ep 855 drivers/net/ethernet/cirrus/ep93xx_eth.c dev->name, ep->irq, dev->dev_addr); ep 1338 drivers/net/ethernet/fealnx.c next->buffer = pci_map_single(ep->pci_dev, skb->data + BPT, ep 168 drivers/net/ethernet/freescale/fs_enet/fs_enet.h void __iomem *ep; /* parameter ram */ ep 177 drivers/net/ethernet/freescale/fs_enet/fs_enet.h void __iomem *ep; /* parameter ram */ ep 100 drivers/net/ethernet/freescale/fs_enet/mac-fcc.c fep->fcc.ep = of_iomap(ofdev->dev.of_node, 1); ep 101 drivers/net/ethernet/freescale/fs_enet/mac-fcc.c if (!fep->fcc.ep) ep 120 drivers/net/ethernet/freescale/fs_enet/mac-fcc.c iounmap(fep->fcc.ep); ep 187 drivers/net/ethernet/freescale/fs_enet/mac-fcc.c fcc_enet_t __iomem *ep = fep->fcc.ep; ep 189 drivers/net/ethernet/freescale/fs_enet/mac-fcc.c W32(ep, fen_gaddrh, 0); ep 190 drivers/net/ethernet/freescale/fs_enet/mac-fcc.c W32(ep, fen_gaddrl, 0); ep 196 drivers/net/ethernet/freescale/fs_enet/mac-fcc.c fcc_enet_t __iomem *ep = fep->fcc.ep; ep 203 drivers/net/ethernet/freescale/fs_enet/mac-fcc.c W16(ep, fen_taddrh, taddrh); ep 204 drivers/net/ethernet/freescale/fs_enet/mac-fcc.c W16(ep, fen_taddrm, taddrm); ep 205 drivers/net/ethernet/freescale/fs_enet/mac-fcc.c W16(ep, fen_taddrl, taddrl); ep 213 drivers/net/ethernet/freescale/fs_enet/mac-fcc.c fcc_enet_t __iomem *ep = fep->fcc.ep; ep 222 drivers/net/ethernet/freescale/fs_enet/mac-fcc.c W32(ep, fen_gaddrh, 0xffffffff); ep 223 drivers/net/ethernet/freescale/fs_enet/mac-fcc.c W32(ep, fen_gaddrl, 0xffffffff); ep 227 drivers/net/ethernet/freescale/fs_enet/mac-fcc.c fep->fcc.gaddrh = R32(ep, fen_gaddrh); ep 228 drivers/net/ethernet/freescale/fs_enet/mac-fcc.c fep->fcc.gaddrl = R32(ep, fen_gaddrl); ep 250 drivers/net/ethernet/freescale/fs_enet/mac-fcc.c fcc_enet_t __iomem *ep = fep->fcc.ep; ep 259 drivers/net/ethernet/freescale/fs_enet/mac-fcc.c for (i = 0; i < sizeof(*ep); i++) ep 260 drivers/net/ethernet/freescale/fs_enet/mac-fcc.c out_8((u8 __iomem *)ep + i, 0); ep 267 drivers/net/ethernet/freescale/fs_enet/mac-fcc.c W32(ep, fen_genfcc.fcc_rbase, rx_bd_base_phys); ep 268 drivers/net/ethernet/freescale/fs_enet/mac-fcc.c W32(ep, fen_genfcc.fcc_tbase, tx_bd_base_phys); ep 273 drivers/net/ethernet/freescale/fs_enet/mac-fcc.c W16(ep, fen_genfcc.fcc_mrblr, PKT_MAXBLR_SIZE); ep 275 drivers/net/ethernet/freescale/fs_enet/mac-fcc.c W32(ep, fen_genfcc.fcc_rstate, (CPMFCR_GBL | CPMFCR_EB) << 24); ep 276 drivers/net/ethernet/freescale/fs_enet/mac-fcc.c W32(ep, fen_genfcc.fcc_tstate, (CPMFCR_GBL | CPMFCR_EB) << 24); ep 284 drivers/net/ethernet/freescale/fs_enet/mac-fcc.c W16(ep, fen_genfcc.fcc_riptr, fpi->dpram_offset); ep 285 drivers/net/ethernet/freescale/fs_enet/mac-fcc.c W16(ep, fen_genfcc.fcc_tiptr, fpi->dpram_offset + 32); ep 287 drivers/net/ethernet/freescale/fs_enet/mac-fcc.c W16(ep, fen_padptr, fpi->dpram_offset + 64); ep 292 drivers/net/ethernet/freescale/fs_enet/mac-fcc.c W32(ep, fen_genfcc.fcc_rbptr, 0); ep 293 drivers/net/ethernet/freescale/fs_enet/mac-fcc.c W32(ep, fen_genfcc.fcc_tbptr, 0); ep 294 drivers/net/ethernet/freescale/fs_enet/mac-fcc.c W32(ep, fen_genfcc.fcc_rcrc, 0); ep 295 drivers/net/ethernet/freescale/fs_enet/mac-fcc.c W32(ep, fen_genfcc.fcc_tcrc, 0); ep 296 drivers/net/ethernet/freescale/fs_enet/mac-fcc.c W16(ep, fen_genfcc.fcc_res1, 0); ep 297 drivers/net/ethernet/freescale/fs_enet/mac-fcc.c W32(ep, fen_genfcc.fcc_res2, 0); ep 300 drivers/net/ethernet/freescale/fs_enet/mac-fcc.c W32(ep, fen_camptr, 0); ep 303 drivers/net/ethernet/freescale/fs_enet/mac-fcc.c W32(ep, fen_cmask, 0xdebb20e3); ep 304 drivers/net/ethernet/freescale/fs_enet/mac-fcc.c W32(ep, fen_cpres, 0xffffffff); ep 306 drivers/net/ethernet/freescale/fs_enet/mac-fcc.c W32(ep, fen_crcec, 0); /* CRC Error counter */ ep 307 drivers/net/ethernet/freescale/fs_enet/mac-fcc.c W32(ep, fen_alec, 0); /* alignment error counter */ ep 308 drivers/net/ethernet/freescale/fs_enet/mac-fcc.c W32(ep, fen_disfc, 0); /* discard frame counter */ ep 309 drivers/net/ethernet/freescale/fs_enet/mac-fcc.c W16(ep, fen_retlim, 15); /* Retry limit threshold */ ep 310 drivers/net/ethernet/freescale/fs_enet/mac-fcc.c W16(ep, fen_pper, 0); /* Normal persistence */ ep 313 drivers/net/ethernet/freescale/fs_enet/mac-fcc.c W32(ep, fen_gaddrh, fep->fcc.gaddrh); ep 314 drivers/net/ethernet/freescale/fs_enet/mac-fcc.c W32(ep, fen_gaddrl, fep->fcc.gaddrh); ep 317 drivers/net/ethernet/freescale/fs_enet/mac-fcc.c W32(ep, fen_iaddrh, 0); ep 318 drivers/net/ethernet/freescale/fs_enet/mac-fcc.c W32(ep, fen_iaddrl, 0); ep 321 drivers/net/ethernet/freescale/fs_enet/mac-fcc.c W16(ep, fen_tfcstat, 0); ep 322 drivers/net/ethernet/freescale/fs_enet/mac-fcc.c W16(ep, fen_tfclen, 0); ep 323 drivers/net/ethernet/freescale/fs_enet/mac-fcc.c W32(ep, fen_tfcptr, 0); ep 325 drivers/net/ethernet/freescale/fs_enet/mac-fcc.c W16(ep, fen_mflr, PKT_MAXBUF_SIZE); /* maximum frame length register */ ep 326 drivers/net/ethernet/freescale/fs_enet/mac-fcc.c W16(ep, fen_minflr, PKT_MINBUF_SIZE); /* minimum frame length register */ ep 334 drivers/net/ethernet/freescale/fs_enet/mac-fcc.c W16(ep, fen_paddrh, paddrh); ep 335 drivers/net/ethernet/freescale/fs_enet/mac-fcc.c W16(ep, fen_paddrm, paddrm); ep 336 drivers/net/ethernet/freescale/fs_enet/mac-fcc.c W16(ep, fen_paddrl, paddrl); ep 338 drivers/net/ethernet/freescale/fs_enet/mac-fcc.c W16(ep, fen_taddrh, 0); ep 339 drivers/net/ethernet/freescale/fs_enet/mac-fcc.c W16(ep, fen_taddrm, 0); ep 340 drivers/net/ethernet/freescale/fs_enet/mac-fcc.c W16(ep, fen_taddrl, 0); ep 342 drivers/net/ethernet/freescale/fs_enet/mac-fcc.c W16(ep, fen_maxd1, 1520); /* maximum DMA1 length */ ep 343 drivers/net/ethernet/freescale/fs_enet/mac-fcc.c W16(ep, fen_maxd2, 1520); /* maximum DMA2 length */ ep 346 drivers/net/ethernet/freescale/fs_enet/mac-fcc.c W32(ep, fen_octc, 0); ep 347 drivers/net/ethernet/freescale/fs_enet/mac-fcc.c W32(ep, fen_colc, 0); ep 348 drivers/net/ethernet/freescale/fs_enet/mac-fcc.c W32(ep, fen_broc, 0); ep 349 drivers/net/ethernet/freescale/fs_enet/mac-fcc.c W32(ep, fen_mulc, 0); ep 350 drivers/net/ethernet/freescale/fs_enet/mac-fcc.c W32(ep, fen_uspc, 0); ep 351 drivers/net/ethernet/freescale/fs_enet/mac-fcc.c W32(ep, fen_frgc, 0); ep 352 drivers/net/ethernet/freescale/fs_enet/mac-fcc.c W32(ep, fen_ospc, 0); ep 353 drivers/net/ethernet/freescale/fs_enet/mac-fcc.c W32(ep, fen_jbrc, 0); ep 354 drivers/net/ethernet/freescale/fs_enet/mac-fcc.c W32(ep, fen_p64c, 0); ep 355 drivers/net/ethernet/freescale/fs_enet/mac-fcc.c W32(ep, fen_p65c, 0); ep 356 drivers/net/ethernet/freescale/fs_enet/mac-fcc.c W32(ep, fen_p128c, 0); ep 357 drivers/net/ethernet/freescale/fs_enet/mac-fcc.c W32(ep, fen_p256c, 0); ep 358 drivers/net/ethernet/freescale/fs_enet/mac-fcc.c W32(ep, fen_p512c, 0); ep 359 drivers/net/ethernet/freescale/fs_enet/mac-fcc.c W32(ep, fen_p1024c, 0); ep 361 drivers/net/ethernet/freescale/fs_enet/mac-fcc.c W16(ep, fen_rfthr, 0); /* Suggested by manual */ ep 362 drivers/net/ethernet/freescale/fs_enet/mac-fcc.c W16(ep, fen_rfcnt, 0); ep 363 drivers/net/ethernet/freescale/fs_enet/mac-fcc.c W16(ep, fen_cftype, 0); ep 493 drivers/net/ethernet/freescale/fs_enet/mac-fcc.c memcpy_fromio(p, fep->fcc.ep, sizeof(fcc_enet_t)); ep 521 drivers/net/ethernet/freescale/fs_enet/mac-fcc.c fcc_enet_t __iomem *ep = fep->fcc.ep; ep 531 drivers/net/ethernet/freescale/fs_enet/mac-fcc.c ((R32(ep, fen_genfcc.fcc_tbptr) - fep->ring_mem_addr) + ep 550 drivers/net/ethernet/freescale/fs_enet/mac-fcc.c W32(ep, fen_genfcc.fcc_tbptr, ep 103 drivers/net/ethernet/freescale/fs_enet/mac-scc.c fep->scc.ep = of_iomap(ofdev->dev.of_node, 1); ep 104 drivers/net/ethernet/freescale/fs_enet/mac-scc.c if (!fep->scc.ep) { ep 172 drivers/net/ethernet/freescale/fs_enet/mac-scc.c scc_enet_t __iomem *ep = fep->scc.ep; ep 174 drivers/net/ethernet/freescale/fs_enet/mac-scc.c W16(ep, sen_gaddr1, 0); ep 175 drivers/net/ethernet/freescale/fs_enet/mac-scc.c W16(ep, sen_gaddr2, 0); ep 176 drivers/net/ethernet/freescale/fs_enet/mac-scc.c W16(ep, sen_gaddr3, 0); ep 177 drivers/net/ethernet/freescale/fs_enet/mac-scc.c W16(ep, sen_gaddr4, 0); ep 183 drivers/net/ethernet/freescale/fs_enet/mac-scc.c scc_enet_t __iomem *ep = fep->scc.ep; ep 190 drivers/net/ethernet/freescale/fs_enet/mac-scc.c W16(ep, sen_taddrh, taddrh); ep 191 drivers/net/ethernet/freescale/fs_enet/mac-scc.c W16(ep, sen_taddrm, taddrm); ep 192 drivers/net/ethernet/freescale/fs_enet/mac-scc.c W16(ep, sen_taddrl, taddrl); ep 200 drivers/net/ethernet/freescale/fs_enet/mac-scc.c scc_enet_t __iomem *ep = fep->scc.ep; ep 209 drivers/net/ethernet/freescale/fs_enet/mac-scc.c W16(ep, sen_gaddr1, 0xffff); ep 210 drivers/net/ethernet/freescale/fs_enet/mac-scc.c W16(ep, sen_gaddr2, 0xffff); ep 211 drivers/net/ethernet/freescale/fs_enet/mac-scc.c W16(ep, sen_gaddr3, 0xffff); ep 212 drivers/net/ethernet/freescale/fs_enet/mac-scc.c W16(ep, sen_gaddr4, 0xffff); ep 238 drivers/net/ethernet/freescale/fs_enet/mac-scc.c scc_enet_t __iomem *ep = fep->scc.ep; ep 247 drivers/net/ethernet/freescale/fs_enet/mac-scc.c for (i = 0; i < sizeof(*ep); i++) ep 248 drivers/net/ethernet/freescale/fs_enet/mac-scc.c __fs_out8((u8 __iomem *)ep + i, 0); ep 251 drivers/net/ethernet/freescale/fs_enet/mac-scc.c W16(ep, sen_genscc.scc_rbase, fep->ring_mem_addr); ep 252 drivers/net/ethernet/freescale/fs_enet/mac-scc.c W16(ep, sen_genscc.scc_tbase, ep 258 drivers/net/ethernet/freescale/fs_enet/mac-scc.c W8(ep, sen_genscc.scc_rfcr, SCC_EB | SCC_GBL); ep 259 drivers/net/ethernet/freescale/fs_enet/mac-scc.c W8(ep, sen_genscc.scc_tfcr, SCC_EB | SCC_GBL); ep 261 drivers/net/ethernet/freescale/fs_enet/mac-scc.c W8(ep, sen_genscc.scc_rfcr, SCC_EB); ep 262 drivers/net/ethernet/freescale/fs_enet/mac-scc.c W8(ep, sen_genscc.scc_tfcr, SCC_EB); ep 269 drivers/net/ethernet/freescale/fs_enet/mac-scc.c W16(ep, sen_genscc.scc_mrblr, 0x5f0); ep 273 drivers/net/ethernet/freescale/fs_enet/mac-scc.c W32(ep, sen_cpres, 0xffffffff); ep 274 drivers/net/ethernet/freescale/fs_enet/mac-scc.c W32(ep, sen_cmask, 0xdebb20e3); ep 276 drivers/net/ethernet/freescale/fs_enet/mac-scc.c W32(ep, sen_crcec, 0); /* CRC Error counter */ ep 277 drivers/net/ethernet/freescale/fs_enet/mac-scc.c W32(ep, sen_alec, 0); /* alignment error counter */ ep 278 drivers/net/ethernet/freescale/fs_enet/mac-scc.c W32(ep, sen_disfc, 0); /* discard frame counter */ ep 280 drivers/net/ethernet/freescale/fs_enet/mac-scc.c W16(ep, sen_pads, 0x8888); /* Tx short frame pad character */ ep 281 drivers/net/ethernet/freescale/fs_enet/mac-scc.c W16(ep, sen_retlim, 15); /* Retry limit threshold */ ep 283 drivers/net/ethernet/freescale/fs_enet/mac-scc.c W16(ep, sen_maxflr, 0x5ee); /* maximum frame length register */ ep 285 drivers/net/ethernet/freescale/fs_enet/mac-scc.c W16(ep, sen_minflr, PKT_MINBUF_SIZE); /* minimum frame length register */ ep 287 drivers/net/ethernet/freescale/fs_enet/mac-scc.c W16(ep, sen_maxd1, 0x000005f0); /* maximum DMA1 length */ ep 288 drivers/net/ethernet/freescale/fs_enet/mac-scc.c W16(ep, sen_maxd2, 0x000005f0); /* maximum DMA2 length */ ep 292 drivers/net/ethernet/freescale/fs_enet/mac-scc.c W16(ep, sen_gaddr1, 0); ep 293 drivers/net/ethernet/freescale/fs_enet/mac-scc.c W16(ep, sen_gaddr2, 0); ep 294 drivers/net/ethernet/freescale/fs_enet/mac-scc.c W16(ep, sen_gaddr3, 0); ep 295 drivers/net/ethernet/freescale/fs_enet/mac-scc.c W16(ep, sen_gaddr4, 0); ep 296 drivers/net/ethernet/freescale/fs_enet/mac-scc.c W16(ep, sen_iaddr1, 0); ep 297 drivers/net/ethernet/freescale/fs_enet/mac-scc.c W16(ep, sen_iaddr2, 0); ep 298 drivers/net/ethernet/freescale/fs_enet/mac-scc.c W16(ep, sen_iaddr3, 0); ep 299 drivers/net/ethernet/freescale/fs_enet/mac-scc.c W16(ep, sen_iaddr4, 0); ep 308 drivers/net/ethernet/freescale/fs_enet/mac-scc.c W16(ep, sen_paddrh, paddrh); ep 309 drivers/net/ethernet/freescale/fs_enet/mac-scc.c W16(ep, sen_paddrm, paddrm); ep 310 drivers/net/ethernet/freescale/fs_enet/mac-scc.c W16(ep, sen_paddrl, paddrl); ep 312 drivers/net/ethernet/freescale/fs_enet/mac-scc.c W16(ep, sen_pper, 0); ep 313 drivers/net/ethernet/freescale/fs_enet/mac-scc.c W16(ep, sen_taddrl, 0); ep 314 drivers/net/ethernet/freescale/fs_enet/mac-scc.c W16(ep, sen_taddrm, 0); ep 315 drivers/net/ethernet/freescale/fs_enet/mac-scc.c W16(ep, sen_taddrh, 0); ep 439 drivers/net/ethernet/freescale/fs_enet/mac-scc.c memcpy_fromio(p, fep->scc.ep, sizeof(scc_enet_t __iomem *)); ep 5490 drivers/net/ethernet/neterion/s2io.c struct ethtool_pauseparam *ep) ep 5498 drivers/net/ethernet/neterion/s2io.c ep->tx_pause = true; ep 5500 drivers/net/ethernet/neterion/s2io.c ep->rx_pause = true; ep 5501 drivers/net/ethernet/neterion/s2io.c ep->autoneg = false; ep 5517 drivers/net/ethernet/neterion/s2io.c struct ethtool_pauseparam *ep) ep 5524 drivers/net/ethernet/neterion/s2io.c if (ep->tx_pause) ep 5528 drivers/net/ethernet/neterion/s2io.c if (ep->rx_pause) ep 197 drivers/net/ethernet/neterion/vxge/vxge-ethtool.c struct ethtool_pauseparam *ep) ep 202 drivers/net/ethernet/neterion/vxge/vxge-ethtool.c vxge_hw_device_getpause_data(hldev, 0, &ep->tx_pause, &ep->rx_pause); ep 216 drivers/net/ethernet/neterion/vxge/vxge-ethtool.c struct ethtool_pauseparam *ep) ep 221 drivers/net/ethernet/neterion/vxge/vxge-ethtool.c vxge_hw_device_setpause_data(hldev, 0, ep->tx_pause, ep->rx_pause); ep 223 drivers/net/ethernet/neterion/vxge/vxge-ethtool.c vdev->config.tx_pause_enable = ep->tx_pause; ep 224 drivers/net/ethernet/neterion/vxge/vxge-ethtool.c vdev->config.rx_pause_enable = ep->rx_pause; ep 506 drivers/net/ethernet/qlogic/qed/qed_iwarp.c struct qed_iwarp_ep *ep, ep 510 drivers/net/ethernet/qlogic/qed/qed_iwarp.c sizeof(*ep->ep_buffer_virt), ep 511 drivers/net/ethernet/qlogic/qed/qed_iwarp.c ep->ep_buffer_virt, ep->ep_buffer_phys); ep 515 drivers/net/ethernet/qlogic/qed/qed_iwarp.c list_del(&ep->list_entry); ep 519 drivers/net/ethernet/qlogic/qed/qed_iwarp.c if (ep->qp) ep 520 drivers/net/ethernet/qlogic/qed/qed_iwarp.c ep->qp->ep = NULL; ep 522 drivers/net/ethernet/qlogic/qed/qed_iwarp.c kfree(ep); ep 527 drivers/net/ethernet/qlogic/qed/qed_iwarp.c struct qed_iwarp_ep *ep = qp->ep; ep 539 drivers/net/ethernet/qlogic/qed/qed_iwarp.c if (ep) { ep 540 drivers/net/ethernet/qlogic/qed/qed_iwarp.c while (READ_ONCE(ep->state) != QED_IWARP_EP_CLOSED && ep 544 drivers/net/ethernet/qlogic/qed/qed_iwarp.c if (ep->state != QED_IWARP_EP_CLOSED) ep 546 drivers/net/ethernet/qlogic/qed/qed_iwarp.c ep->state); ep 548 drivers/net/ethernet/qlogic/qed/qed_iwarp.c qed_iwarp_destroy_ep(p_hwfn, ep, false); ep 564 drivers/net/ethernet/qlogic/qed/qed_iwarp.c struct qed_iwarp_ep *ep; ep 567 drivers/net/ethernet/qlogic/qed/qed_iwarp.c ep = kzalloc(sizeof(*ep), GFP_KERNEL); ep 568 drivers/net/ethernet/qlogic/qed/qed_iwarp.c if (!ep) ep 571 drivers/net/ethernet/qlogic/qed/qed_iwarp.c ep->state = QED_IWARP_EP_INIT; ep 573 drivers/net/ethernet/qlogic/qed/qed_iwarp.c ep->ep_buffer_virt = dma_alloc_coherent(&p_hwfn->cdev->pdev->dev, ep 574 drivers/net/ethernet/qlogic/qed/qed_iwarp.c sizeof(*ep->ep_buffer_virt), ep 575 drivers/net/ethernet/qlogic/qed/qed_iwarp.c &ep->ep_buffer_phys, ep 577 drivers/net/ethernet/qlogic/qed/qed_iwarp.c if (!ep->ep_buffer_virt) { ep 582 drivers/net/ethernet/qlogic/qed/qed_iwarp.c ep->sig = QED_EP_SIG; ep 584 drivers/net/ethernet/qlogic/qed/qed_iwarp.c *ep_out = ep; ep 589 drivers/net/ethernet/qlogic/qed/qed_iwarp.c kfree(ep); ep 640 drivers/net/ethernet/qlogic/qed/qed_iwarp.c qed_iwarp_tcp_offload(struct qed_hwfn *p_hwfn, struct qed_iwarp_ep *ep) ep 655 drivers/net/ethernet/qlogic/qed/qed_iwarp.c init_data.cid = ep->tcp_cid; ep 657 drivers/net/ethernet/qlogic/qed/qed_iwarp.c if (ep->connect_mode == TCP_CONNECT_PASSIVE) ep 670 drivers/net/ethernet/qlogic/qed/qed_iwarp.c in_pdata_phys = ep->ep_buffer_phys + ep 676 drivers/net/ethernet/qlogic/qed/qed_iwarp.c cpu_to_le16(sizeof(ep->ep_buffer_virt->in_pdata)); ep 678 drivers/net/ethernet/qlogic/qed/qed_iwarp.c async_output_phys = ep->ep_buffer_phys + ep 683 drivers/net/ethernet/qlogic/qed/qed_iwarp.c p_tcp_ramrod->iwarp.handle_for_async.hi = cpu_to_le32(PTR_HI(ep)); ep 684 drivers/net/ethernet/qlogic/qed/qed_iwarp.c p_tcp_ramrod->iwarp.handle_for_async.lo = cpu_to_le32(PTR_LO(ep)); ep 695 drivers/net/ethernet/qlogic/qed/qed_iwarp.c &tcp->remote_mac_addr_lo, ep->remote_mac_addr); ep 697 drivers/net/ethernet/qlogic/qed/qed_iwarp.c &tcp->local_mac_addr_lo, ep->local_mac_addr); ep 699 drivers/net/ethernet/qlogic/qed/qed_iwarp.c tcp->vlan_id = cpu_to_le16(ep->cm_info.vlan); ep 709 drivers/net/ethernet/qlogic/qed/qed_iwarp.c tcp->ip_version = ep->cm_info.ip_version; ep 712 drivers/net/ethernet/qlogic/qed/qed_iwarp.c tcp->remote_ip[i] = cpu_to_le32(ep->cm_info.remote_ip[i]); ep 713 drivers/net/ethernet/qlogic/qed/qed_iwarp.c tcp->local_ip[i] = cpu_to_le32(ep->cm_info.local_ip[i]); ep 716 drivers/net/ethernet/qlogic/qed/qed_iwarp.c tcp->remote_port = cpu_to_le16(ep->cm_info.remote_port); ep 717 drivers/net/ethernet/qlogic/qed/qed_iwarp.c tcp->local_port = cpu_to_le16(ep->cm_info.local_port); ep 718 drivers/net/ethernet/qlogic/qed/qed_iwarp.c tcp->mss = cpu_to_le16(ep->mss); ep 730 drivers/net/ethernet/qlogic/qed/qed_iwarp.c tcp->connect_mode = ep->connect_mode; ep 732 drivers/net/ethernet/qlogic/qed/qed_iwarp.c if (ep->connect_mode == TCP_CONNECT_PASSIVE) { ep 734 drivers/net/ethernet/qlogic/qed/qed_iwarp.c cpu_to_le16(ep->syn_ip_payload_length); ep 735 drivers/net/ethernet/qlogic/qed/qed_iwarp.c tcp->syn_phy_addr_hi = DMA_HI_LE(ep->syn_phy_addr); ep 736 drivers/net/ethernet/qlogic/qed/qed_iwarp.c tcp->syn_phy_addr_lo = DMA_LO_LE(ep->syn_phy_addr); ep 744 drivers/net/ethernet/qlogic/qed/qed_iwarp.c "EP(0x%x) Offload completed rc=%d\n", ep->tcp_cid, rc); ep 750 drivers/net/ethernet/qlogic/qed/qed_iwarp.c qed_iwarp_mpa_received(struct qed_hwfn *p_hwfn, struct qed_iwarp_ep *ep) ep 760 drivers/net/ethernet/qlogic/qed/qed_iwarp.c async_data = &ep->ep_buffer_virt->async_output; ep 766 drivers/net/ethernet/qlogic/qed/qed_iwarp.c mpa_rev, *((u32 *)(ep->ep_buffer_virt->in_pdata))); ep 770 drivers/net/ethernet/qlogic/qed/qed_iwarp.c mpa_v2 = (struct mpa_v2_hdr *)ep->ep_buffer_virt->in_pdata; ep 779 drivers/net/ethernet/qlogic/qed/qed_iwarp.c ep->cm_info.ord = (u8)min_t(u16, ep 783 drivers/net/ethernet/qlogic/qed/qed_iwarp.c ep->cm_info.ird = (u8)min_t(u16, ep 788 drivers/net/ethernet/qlogic/qed/qed_iwarp.c ep->rtr_type = MPA_RTR_TYPE_NONE; ep 791 drivers/net/ethernet/qlogic/qed/qed_iwarp.c ep->rtr_type |= MPA_RTR_TYPE_ZERO_WRITE; ep 794 drivers/net/ethernet/qlogic/qed/qed_iwarp.c ep->rtr_type |= MPA_RTR_TYPE_ZERO_READ; ep 797 drivers/net/ethernet/qlogic/qed/qed_iwarp.c ep->rtr_type |= MPA_RTR_TYPE_ZERO_SEND; ep 799 drivers/net/ethernet/qlogic/qed/qed_iwarp.c ep->rtr_type &= iwarp_info->rtr_type; ep 802 drivers/net/ethernet/qlogic/qed/qed_iwarp.c if (ep->rtr_type == MPA_RTR_TYPE_NONE) ep 803 drivers/net/ethernet/qlogic/qed/qed_iwarp.c ep->rtr_type = iwarp_info->rtr_type; ep 806 drivers/net/ethernet/qlogic/qed/qed_iwarp.c ep->mpa_rev = MPA_NEGOTIATION_TYPE_ENHANCED; ep 808 drivers/net/ethernet/qlogic/qed/qed_iwarp.c ep->cm_info.ord = QED_IWARP_ORD_DEFAULT; ep 809 drivers/net/ethernet/qlogic/qed/qed_iwarp.c ep->cm_info.ird = QED_IWARP_IRD_DEFAULT; ep 810 drivers/net/ethernet/qlogic/qed/qed_iwarp.c ep->mpa_rev = MPA_NEGOTIATION_TYPE_BASIC; ep 815 drivers/net/ethernet/qlogic/qed/qed_iwarp.c mpa_rev, ep->cm_info.ord, ep->cm_info.ird, ep->rtr_type, ep 819 drivers/net/ethernet/qlogic/qed/qed_iwarp.c ep->cm_info.private_data = ep->ep_buffer_virt->in_pdata + mpa_hdr_size; ep 821 drivers/net/ethernet/qlogic/qed/qed_iwarp.c ep->cm_info.private_data_len = async_data->mpa_request.ulp_data_len - ep 825 drivers/net/ethernet/qlogic/qed/qed_iwarp.c params.cm_info = &ep->cm_info; ep 826 drivers/net/ethernet/qlogic/qed/qed_iwarp.c params.ep_context = ep; ep 829 drivers/net/ethernet/qlogic/qed/qed_iwarp.c ep->state = QED_IWARP_EP_MPA_REQ_RCVD; ep 830 drivers/net/ethernet/qlogic/qed/qed_iwarp.c ep->event_cb(ep->cb_context, ¶ms); ep 834 drivers/net/ethernet/qlogic/qed/qed_iwarp.c qed_iwarp_mpa_offload(struct qed_hwfn *p_hwfn, struct qed_iwarp_ep *ep) ep 847 drivers/net/ethernet/qlogic/qed/qed_iwarp.c if (!ep) ep 850 drivers/net/ethernet/qlogic/qed/qed_iwarp.c qp = ep->qp; ep 854 drivers/net/ethernet/qlogic/qed/qed_iwarp.c init_data.cid = reject ? ep->tcp_cid : qp->icid; ep 857 drivers/net/ethernet/qlogic/qed/qed_iwarp.c if (ep->connect_mode == TCP_CONNECT_ACTIVE) ep 869 drivers/net/ethernet/qlogic/qed/qed_iwarp.c out_pdata_phys = ep->ep_buffer_phys + ep 874 drivers/net/ethernet/qlogic/qed/qed_iwarp.c ep->cm_info.private_data_len; ep 877 drivers/net/ethernet/qlogic/qed/qed_iwarp.c p_mpa_ramrod->common.out_rq.ord = ep->cm_info.ord; ep 878 drivers/net/ethernet/qlogic/qed/qed_iwarp.c p_mpa_ramrod->common.out_rq.ird = ep->cm_info.ird; ep 880 drivers/net/ethernet/qlogic/qed/qed_iwarp.c p_mpa_ramrod->tcp_cid = p_hwfn->hw_info.opaque_fid << 16 | ep->tcp_cid; ep 882 drivers/net/ethernet/qlogic/qed/qed_iwarp.c in_pdata_phys = ep->ep_buffer_phys + ep 884 drivers/net/ethernet/qlogic/qed/qed_iwarp.c p_mpa_ramrod->tcp_connect_side = ep->connect_mode; ep 888 drivers/net/ethernet/qlogic/qed/qed_iwarp.c cpu_to_le16(sizeof(ep->ep_buffer_virt->in_pdata)); ep 889 drivers/net/ethernet/qlogic/qed/qed_iwarp.c async_output_phys = ep->ep_buffer_phys + ep 893 drivers/net/ethernet/qlogic/qed/qed_iwarp.c p_mpa_ramrod->handle_for_async.hi = cpu_to_le32(PTR_HI(ep)); ep 894 drivers/net/ethernet/qlogic/qed/qed_iwarp.c p_mpa_ramrod->handle_for_async.lo = cpu_to_le32(PTR_LO(ep)); ep 907 drivers/net/ethernet/qlogic/qed/qed_iwarp.c p_mpa_ramrod->mode = ep->mpa_rev; ep 909 drivers/net/ethernet/qlogic/qed/qed_iwarp.c IWARP_MPA_OFFLOAD_RAMROD_DATA_RTR_SUPPORTED, ep->rtr_type); ep 911 drivers/net/ethernet/qlogic/qed/qed_iwarp.c ep->state = QED_IWARP_EP_MPA_OFFLOADED; ep 914 drivers/net/ethernet/qlogic/qed/qed_iwarp.c ep->cid = qp->icid; /* Now they're migrated. */ ep 920 drivers/net/ethernet/qlogic/qed/qed_iwarp.c ep->tcp_cid, ep 922 drivers/net/ethernet/qlogic/qed/qed_iwarp.c ep->cm_info.ird, ep 923 drivers/net/ethernet/qlogic/qed/qed_iwarp.c ep->cm_info.ord, ep->rtr_type, ep->mpa_rev, reject); ep 928 drivers/net/ethernet/qlogic/qed/qed_iwarp.c qed_iwarp_return_ep(struct qed_hwfn *p_hwfn, struct qed_iwarp_ep *ep) ep 930 drivers/net/ethernet/qlogic/qed/qed_iwarp.c ep->state = QED_IWARP_EP_INIT; ep 931 drivers/net/ethernet/qlogic/qed/qed_iwarp.c if (ep->qp) ep 932 drivers/net/ethernet/qlogic/qed/qed_iwarp.c ep->qp->ep = NULL; ep 933 drivers/net/ethernet/qlogic/qed/qed_iwarp.c ep->qp = NULL; ep 934 drivers/net/ethernet/qlogic/qed/qed_iwarp.c memset(&ep->cm_info, 0, sizeof(ep->cm_info)); ep 936 drivers/net/ethernet/qlogic/qed/qed_iwarp.c if (ep->tcp_cid == QED_IWARP_INVALID_TCP_CID) { ep 940 drivers/net/ethernet/qlogic/qed/qed_iwarp.c qed_iwarp_alloc_tcp_cid(p_hwfn, &ep->tcp_cid); ep 944 drivers/net/ethernet/qlogic/qed/qed_iwarp.c list_move_tail(&ep->list_entry, ep 951 drivers/net/ethernet/qlogic/qed/qed_iwarp.c qed_iwarp_parse_private_data(struct qed_hwfn *p_hwfn, struct qed_iwarp_ep *ep) ep 960 drivers/net/ethernet/qlogic/qed/qed_iwarp.c (struct mpa_v2_hdr *)(ep->ep_buffer_virt->in_pdata); ep 965 drivers/net/ethernet/qlogic/qed/qed_iwarp.c ep->cm_info.ird = (u8)(mpa_ord & MPA_V2_IRD_ORD_MASK); ep 966 drivers/net/ethernet/qlogic/qed/qed_iwarp.c ep->cm_info.ord = (u8)(mpa_ird & MPA_V2_IRD_ORD_MASK); ep 968 drivers/net/ethernet/qlogic/qed/qed_iwarp.c async_data = &ep->ep_buffer_virt->async_output; ep 970 drivers/net/ethernet/qlogic/qed/qed_iwarp.c ep->cm_info.private_data = ep->ep_buffer_virt->in_pdata + mpa_data_size; ep 971 drivers/net/ethernet/qlogic/qed/qed_iwarp.c ep->cm_info.private_data_len = async_data->mpa_response.ulp_data_len - ep 976 drivers/net/ethernet/qlogic/qed/qed_iwarp.c qed_iwarp_mpa_reply_arrived(struct qed_hwfn *p_hwfn, struct qed_iwarp_ep *ep) ep 980 drivers/net/ethernet/qlogic/qed/qed_iwarp.c if (ep->connect_mode == TCP_CONNECT_PASSIVE) { ep 988 drivers/net/ethernet/qlogic/qed/qed_iwarp.c qed_iwarp_parse_private_data(p_hwfn, ep); ep 992 drivers/net/ethernet/qlogic/qed/qed_iwarp.c ep->mpa_rev, ep->cm_info.ord, ep->cm_info.ird); ep 994 drivers/net/ethernet/qlogic/qed/qed_iwarp.c params.cm_info = &ep->cm_info; ep 995 drivers/net/ethernet/qlogic/qed/qed_iwarp.c params.ep_context = ep; ep 998 drivers/net/ethernet/qlogic/qed/qed_iwarp.c ep->mpa_reply_processed = true; ep 1000 drivers/net/ethernet/qlogic/qed/qed_iwarp.c ep->event_cb(ep->cb_context, ¶ms); ep 1003 drivers/net/ethernet/qlogic/qed/qed_iwarp.c #define QED_IWARP_CONNECT_MODE_STRING(ep) \ ep 1004 drivers/net/ethernet/qlogic/qed/qed_iwarp.c ((ep)->connect_mode == TCP_CONNECT_PASSIVE) ? "Passive" : "Active" ep 1011 drivers/net/ethernet/qlogic/qed/qed_iwarp.c struct qed_iwarp_ep *ep, u8 fw_return_code) ep 1015 drivers/net/ethernet/qlogic/qed/qed_iwarp.c if (ep->connect_mode == TCP_CONNECT_ACTIVE) ep 1020 drivers/net/ethernet/qlogic/qed/qed_iwarp.c if (ep->connect_mode == TCP_CONNECT_ACTIVE && !ep->mpa_reply_processed) ep 1021 drivers/net/ethernet/qlogic/qed/qed_iwarp.c qed_iwarp_parse_private_data(p_hwfn, ep); ep 1025 drivers/net/ethernet/qlogic/qed/qed_iwarp.c ep->mpa_rev, ep->cm_info.ord, ep->cm_info.ird); ep 1027 drivers/net/ethernet/qlogic/qed/qed_iwarp.c params.cm_info = &ep->cm_info; ep 1029 drivers/net/ethernet/qlogic/qed/qed_iwarp.c params.ep_context = ep; ep 1033 drivers/net/ethernet/qlogic/qed/qed_iwarp.c ep->qp->max_rd_atomic_req = ep->cm_info.ord; ep 1034 drivers/net/ethernet/qlogic/qed/qed_iwarp.c ep->qp->max_rd_atomic_resp = ep->cm_info.ird; ep 1035 drivers/net/ethernet/qlogic/qed/qed_iwarp.c qed_iwarp_modify_qp(p_hwfn, ep->qp, QED_IWARP_QP_STATE_RTS, 1); ep 1036 drivers/net/ethernet/qlogic/qed/qed_iwarp.c ep->state = QED_IWARP_EP_ESTABLISHED; ep 1041 drivers/net/ethernet/qlogic/qed/qed_iwarp.c QED_IWARP_CONNECT_MODE_STRING(ep), ep->cid); ep 1046 drivers/net/ethernet/qlogic/qed/qed_iwarp.c QED_IWARP_CONNECT_MODE_STRING(ep), ep->cid); ep 1051 drivers/net/ethernet/qlogic/qed/qed_iwarp.c QED_IWARP_CONNECT_MODE_STRING(ep), ep->cid, ep 1052 drivers/net/ethernet/qlogic/qed/qed_iwarp.c ep->tcp_cid); ep 1057 drivers/net/ethernet/qlogic/qed/qed_iwarp.c QED_IWARP_CONNECT_MODE_STRING(ep), ep->cid); ep 1062 drivers/net/ethernet/qlogic/qed/qed_iwarp.c QED_IWARP_CONNECT_MODE_STRING(ep), ep->cid); ep 1067 drivers/net/ethernet/qlogic/qed/qed_iwarp.c QED_IWARP_CONNECT_MODE_STRING(ep), ep->cid); ep 1072 drivers/net/ethernet/qlogic/qed/qed_iwarp.c QED_IWARP_CONNECT_MODE_STRING(ep), ep->cid); ep 1077 drivers/net/ethernet/qlogic/qed/qed_iwarp.c QED_IWARP_CONNECT_MODE_STRING(ep), ep->cid); ep 1082 drivers/net/ethernet/qlogic/qed/qed_iwarp.c QED_IWARP_CONNECT_MODE_STRING(ep), ep->cid); ep 1092 drivers/net/ethernet/qlogic/qed/qed_iwarp.c smp_store_release(&ep->state, QED_IWARP_EP_CLOSED); ep 1094 drivers/net/ethernet/qlogic/qed/qed_iwarp.c ep->event_cb(ep->cb_context, ¶ms); ep 1102 drivers/net/ethernet/qlogic/qed/qed_iwarp.c ep->tcp_cid = QED_IWARP_INVALID_TCP_CID; ep 1103 drivers/net/ethernet/qlogic/qed/qed_iwarp.c if ((ep->connect_mode == TCP_CONNECT_PASSIVE) && ep 1104 drivers/net/ethernet/qlogic/qed/qed_iwarp.c (!ep->qp)) { /* Rejected */ ep 1105 drivers/net/ethernet/qlogic/qed/qed_iwarp.c qed_iwarp_return_ep(p_hwfn, ep); ep 1108 drivers/net/ethernet/qlogic/qed/qed_iwarp.c list_del(&ep->list_entry); ep 1116 drivers/net/ethernet/qlogic/qed/qed_iwarp.c struct qed_iwarp_ep *ep, u8 *mpa_data_size) ep 1122 drivers/net/ethernet/qlogic/qed/qed_iwarp.c if (MPA_REV2(ep->mpa_rev)) { ep 1124 drivers/net/ethernet/qlogic/qed/qed_iwarp.c (struct mpa_v2_hdr *)ep->ep_buffer_virt->out_pdata; ep 1127 drivers/net/ethernet/qlogic/qed/qed_iwarp.c mpa_ird = (u16)ep->cm_info.ird; ep 1128 drivers/net/ethernet/qlogic/qed/qed_iwarp.c mpa_ord = (u16)ep->cm_info.ord; ep 1130 drivers/net/ethernet/qlogic/qed/qed_iwarp.c if (ep->rtr_type != MPA_RTR_TYPE_NONE) { ep 1133 drivers/net/ethernet/qlogic/qed/qed_iwarp.c if (ep->rtr_type & MPA_RTR_TYPE_ZERO_SEND) ep 1136 drivers/net/ethernet/qlogic/qed/qed_iwarp.c if (ep->rtr_type & MPA_RTR_TYPE_ZERO_WRITE) ep 1139 drivers/net/ethernet/qlogic/qed/qed_iwarp.c if (ep->rtr_type & MPA_RTR_TYPE_ZERO_READ) ep 1167 drivers/net/ethernet/qlogic/qed/qed_iwarp.c struct qed_iwarp_ep *ep; ep 1189 drivers/net/ethernet/qlogic/qed/qed_iwarp.c rc = qed_iwarp_create_ep(p_hwfn, &ep); ep 1193 drivers/net/ethernet/qlogic/qed/qed_iwarp.c ep->tcp_cid = cid; ep 1196 drivers/net/ethernet/qlogic/qed/qed_iwarp.c list_add_tail(&ep->list_entry, &p_hwfn->p_rdma_info->iwarp.ep_list); ep 1199 drivers/net/ethernet/qlogic/qed/qed_iwarp.c ep->qp = iparams->qp; ep 1200 drivers/net/ethernet/qlogic/qed/qed_iwarp.c ep->qp->ep = ep; ep 1201 drivers/net/ethernet/qlogic/qed/qed_iwarp.c ether_addr_copy(ep->remote_mac_addr, iparams->remote_mac_addr); ep 1202 drivers/net/ethernet/qlogic/qed/qed_iwarp.c ether_addr_copy(ep->local_mac_addr, iparams->local_mac_addr); ep 1203 drivers/net/ethernet/qlogic/qed/qed_iwarp.c memcpy(&ep->cm_info, &iparams->cm_info, sizeof(ep->cm_info)); ep 1205 drivers/net/ethernet/qlogic/qed/qed_iwarp.c ep->cm_info.ord = iparams->cm_info.ord; ep 1206 drivers/net/ethernet/qlogic/qed/qed_iwarp.c ep->cm_info.ird = iparams->cm_info.ird; ep 1208 drivers/net/ethernet/qlogic/qed/qed_iwarp.c ep->rtr_type = iwarp_info->rtr_type; ep 1210 drivers/net/ethernet/qlogic/qed/qed_iwarp.c ep->rtr_type = MPA_RTR_TYPE_NONE; ep 1212 drivers/net/ethernet/qlogic/qed/qed_iwarp.c if ((ep->rtr_type & MPA_RTR_TYPE_ZERO_READ) && (ep->cm_info.ord == 0)) ep 1213 drivers/net/ethernet/qlogic/qed/qed_iwarp.c ep->cm_info.ord = 1; ep 1215 drivers/net/ethernet/qlogic/qed/qed_iwarp.c ep->mpa_rev = iwarp_info->mpa_rev; ep 1217 drivers/net/ethernet/qlogic/qed/qed_iwarp.c qed_iwarp_mpa_v2_set_private(p_hwfn, ep, &mpa_data_size); ep 1219 drivers/net/ethernet/qlogic/qed/qed_iwarp.c ep->cm_info.private_data = ep->ep_buffer_virt->out_pdata; ep 1220 drivers/net/ethernet/qlogic/qed/qed_iwarp.c ep->cm_info.private_data_len = iparams->cm_info.private_data_len + ep 1223 drivers/net/ethernet/qlogic/qed/qed_iwarp.c memcpy((u8 *)ep->ep_buffer_virt->out_pdata + mpa_data_size, ep 1227 drivers/net/ethernet/qlogic/qed/qed_iwarp.c ep->mss = iparams->mss; ep 1228 drivers/net/ethernet/qlogic/qed/qed_iwarp.c ep->mss = min_t(u16, QED_IWARP_MAX_FW_MSS, ep->mss); ep 1230 drivers/net/ethernet/qlogic/qed/qed_iwarp.c ep->event_cb = iparams->event_cb; ep 1231 drivers/net/ethernet/qlogic/qed/qed_iwarp.c ep->cb_context = iparams->cb_context; ep 1232 drivers/net/ethernet/qlogic/qed/qed_iwarp.c ep->connect_mode = TCP_CONNECT_ACTIVE; ep 1234 drivers/net/ethernet/qlogic/qed/qed_iwarp.c oparams->ep_context = ep; ep 1236 drivers/net/ethernet/qlogic/qed/qed_iwarp.c rc = qed_iwarp_tcp_offload(p_hwfn, ep); ep 1239 drivers/net/ethernet/qlogic/qed/qed_iwarp.c iparams->qp->icid, ep->tcp_cid, rc); ep 1242 drivers/net/ethernet/qlogic/qed/qed_iwarp.c qed_iwarp_destroy_ep(p_hwfn, ep, true); ep 1255 drivers/net/ethernet/qlogic/qed/qed_iwarp.c struct qed_iwarp_ep *ep = NULL; ep 1265 drivers/net/ethernet/qlogic/qed/qed_iwarp.c ep = list_first_entry(&p_hwfn->p_rdma_info->iwarp.ep_free_list, ep 1271 drivers/net/ethernet/qlogic/qed/qed_iwarp.c if (ep->tcp_cid == QED_IWARP_INVALID_TCP_CID) { ep 1272 drivers/net/ethernet/qlogic/qed/qed_iwarp.c rc = qed_iwarp_alloc_tcp_cid(p_hwfn, &ep->tcp_cid); ep 1279 drivers/net/ethernet/qlogic/qed/qed_iwarp.c ep->tcp_cid = QED_IWARP_INVALID_TCP_CID; ep 1280 drivers/net/ethernet/qlogic/qed/qed_iwarp.c ep = NULL; ep 1285 drivers/net/ethernet/qlogic/qed/qed_iwarp.c list_del(&ep->list_entry); ep 1289 drivers/net/ethernet/qlogic/qed/qed_iwarp.c return ep; ep 1352 drivers/net/ethernet/qlogic/qed/qed_iwarp.c struct qed_iwarp_ep *ep; ep 1357 drivers/net/ethernet/qlogic/qed/qed_iwarp.c ep = list_first_entry(&p_hwfn->p_rdma_info->iwarp.ep_free_list, ep 1360 drivers/net/ethernet/qlogic/qed/qed_iwarp.c if (!ep) { ep 1364 drivers/net/ethernet/qlogic/qed/qed_iwarp.c list_del(&ep->list_entry); ep 1368 drivers/net/ethernet/qlogic/qed/qed_iwarp.c if (ep->tcp_cid != QED_IWARP_INVALID_TCP_CID) ep 1369 drivers/net/ethernet/qlogic/qed/qed_iwarp.c qed_iwarp_cid_cleaned(p_hwfn, ep->tcp_cid); ep 1371 drivers/net/ethernet/qlogic/qed/qed_iwarp.c qed_iwarp_destroy_ep(p_hwfn, ep, false); ep 1377 drivers/net/ethernet/qlogic/qed/qed_iwarp.c struct qed_iwarp_ep *ep; ep 1385 drivers/net/ethernet/qlogic/qed/qed_iwarp.c rc = qed_iwarp_create_ep(p_hwfn, &ep); ep 1405 drivers/net/ethernet/qlogic/qed/qed_iwarp.c ep->tcp_cid = cid; ep 1408 drivers/net/ethernet/qlogic/qed/qed_iwarp.c list_add_tail(&ep->list_entry, ep 1416 drivers/net/ethernet/qlogic/qed/qed_iwarp.c qed_iwarp_destroy_ep(p_hwfn, ep, false); ep 1461 drivers/net/ethernet/qlogic/qed/qed_iwarp.c struct qed_iwarp_ep *ep; ep 1465 drivers/net/ethernet/qlogic/qed/qed_iwarp.c ep = iparams->ep_context; ep 1466 drivers/net/ethernet/qlogic/qed/qed_iwarp.c if (!ep) { ep 1472 drivers/net/ethernet/qlogic/qed/qed_iwarp.c iparams->qp->icid, ep->tcp_cid); ep 1480 drivers/net/ethernet/qlogic/qed/qed_iwarp.c ep->tcp_cid, iparams->ord, iparams->ord); ep 1486 drivers/net/ethernet/qlogic/qed/qed_iwarp.c ep->cb_context = iparams->cb_context; ep 1487 drivers/net/ethernet/qlogic/qed/qed_iwarp.c ep->qp = iparams->qp; ep 1488 drivers/net/ethernet/qlogic/qed/qed_iwarp.c ep->qp->ep = ep; ep 1490 drivers/net/ethernet/qlogic/qed/qed_iwarp.c if (ep->mpa_rev == MPA_NEGOTIATION_TYPE_ENHANCED) { ep 1494 drivers/net/ethernet/qlogic/qed/qed_iwarp.c if (iparams->ord > ep->cm_info.ird) ep 1495 drivers/net/ethernet/qlogic/qed/qed_iwarp.c iparams->ord = ep->cm_info.ird; ep 1497 drivers/net/ethernet/qlogic/qed/qed_iwarp.c if ((ep->rtr_type & MPA_RTR_TYPE_ZERO_READ) && ep 1503 drivers/net/ethernet/qlogic/qed/qed_iwarp.c ep->cm_info.ord = iparams->ord; ep 1504 drivers/net/ethernet/qlogic/qed/qed_iwarp.c ep->cm_info.ird = iparams->ird; ep 1506 drivers/net/ethernet/qlogic/qed/qed_iwarp.c qed_iwarp_mpa_v2_set_private(p_hwfn, ep, &mpa_data_size); ep 1508 drivers/net/ethernet/qlogic/qed/qed_iwarp.c ep->cm_info.private_data = ep->ep_buffer_virt->out_pdata; ep 1509 drivers/net/ethernet/qlogic/qed/qed_iwarp.c ep->cm_info.private_data_len = iparams->private_data_len + ep 1512 drivers/net/ethernet/qlogic/qed/qed_iwarp.c memcpy((u8 *)ep->ep_buffer_virt->out_pdata + mpa_data_size, ep 1515 drivers/net/ethernet/qlogic/qed/qed_iwarp.c rc = qed_iwarp_mpa_offload(p_hwfn, ep); ep 1526 drivers/net/ethernet/qlogic/qed/qed_iwarp.c struct qed_iwarp_ep *ep; ep 1529 drivers/net/ethernet/qlogic/qed/qed_iwarp.c ep = iparams->ep_context; ep 1530 drivers/net/ethernet/qlogic/qed/qed_iwarp.c if (!ep) { ep 1535 drivers/net/ethernet/qlogic/qed/qed_iwarp.c DP_VERBOSE(p_hwfn, QED_MSG_RDMA, "EP(0x%x)\n", ep->tcp_cid); ep 1537 drivers/net/ethernet/qlogic/qed/qed_iwarp.c ep->cb_context = iparams->cb_context; ep 1538 drivers/net/ethernet/qlogic/qed/qed_iwarp.c ep->qp = NULL; ep 1540 drivers/net/ethernet/qlogic/qed/qed_iwarp.c qed_iwarp_mpa_v2_set_private(p_hwfn, ep, &mpa_data_size); ep 1542 drivers/net/ethernet/qlogic/qed/qed_iwarp.c ep->cm_info.private_data = ep->ep_buffer_virt->out_pdata; ep 1543 drivers/net/ethernet/qlogic/qed/qed_iwarp.c ep->cm_info.private_data_len = iparams->private_data_len + ep 1546 drivers/net/ethernet/qlogic/qed/qed_iwarp.c memcpy((u8 *)ep->ep_buffer_virt->out_pdata + mpa_data_size, ep 1549 drivers/net/ethernet/qlogic/qed/qed_iwarp.c return qed_iwarp_mpa_offload(p_hwfn, ep); ep 1600 drivers/net/ethernet/qlogic/qed/qed_iwarp.c struct qed_iwarp_ep *ep = NULL; ep 1603 drivers/net/ethernet/qlogic/qed/qed_iwarp.c list_for_each_entry(ep, ep 1606 drivers/net/ethernet/qlogic/qed/qed_iwarp.c if ((ep->cm_info.local_port == cm_info->local_port) && ep 1607 drivers/net/ethernet/qlogic/qed/qed_iwarp.c (ep->cm_info.remote_port == cm_info->remote_port) && ep 1608 drivers/net/ethernet/qlogic/qed/qed_iwarp.c (ep->cm_info.vlan == cm_info->vlan) && ep 1609 drivers/net/ethernet/qlogic/qed/qed_iwarp.c !memcmp(&ep->cm_info.local_ip, cm_info->local_ip, ep 1611 drivers/net/ethernet/qlogic/qed/qed_iwarp.c !memcmp(&ep->cm_info.remote_ip, cm_info->remote_ip, ep 2350 drivers/net/ethernet/qlogic/qed/qed_iwarp.c struct qed_iwarp_ep *ep; ep 2416 drivers/net/ethernet/qlogic/qed/qed_iwarp.c ep = qed_iwarp_get_free_ep(p_hwfn); ep 2417 drivers/net/ethernet/qlogic/qed/qed_iwarp.c if (!ep) ep 2421 drivers/net/ethernet/qlogic/qed/qed_iwarp.c list_add_tail(&ep->list_entry, &p_hwfn->p_rdma_info->iwarp.ep_list); ep 2424 drivers/net/ethernet/qlogic/qed/qed_iwarp.c ether_addr_copy(ep->remote_mac_addr, remote_mac_addr); ep 2425 drivers/net/ethernet/qlogic/qed/qed_iwarp.c ether_addr_copy(ep->local_mac_addr, local_mac_addr); ep 2427 drivers/net/ethernet/qlogic/qed/qed_iwarp.c memcpy(&ep->cm_info, &cm_info, sizeof(ep->cm_info)); ep 2430 drivers/net/ethernet/qlogic/qed/qed_iwarp.c ep->mss = p_hwfn->p_rdma_info->iwarp.max_mtu - hdr_size; ep 2431 drivers/net/ethernet/qlogic/qed/qed_iwarp.c ep->mss = min_t(u16, QED_IWARP_MAX_FW_MSS, ep->mss); ep 2433 drivers/net/ethernet/qlogic/qed/qed_iwarp.c ep->event_cb = listener->event_cb; ep 2434 drivers/net/ethernet/qlogic/qed/qed_iwarp.c ep->cb_context = listener->cb_context; ep 2435 drivers/net/ethernet/qlogic/qed/qed_iwarp.c ep->connect_mode = TCP_CONNECT_PASSIVE; ep 2437 drivers/net/ethernet/qlogic/qed/qed_iwarp.c ep->syn = buf; ep 2438 drivers/net/ethernet/qlogic/qed/qed_iwarp.c ep->syn_ip_payload_length = (u16)payload_len; ep 2439 drivers/net/ethernet/qlogic/qed/qed_iwarp.c ep->syn_phy_addr = buf->data_phys_addr + data->u.placement_offset + ep 2442 drivers/net/ethernet/qlogic/qed/qed_iwarp.c rc = qed_iwarp_tcp_offload(p_hwfn, ep); ep 2444 drivers/net/ethernet/qlogic/qed/qed_iwarp.c qed_iwarp_return_ep(p_hwfn, ep); ep 2841 drivers/net/ethernet/qlogic/qed/qed_iwarp.c struct qed_iwarp_ep *ep, ep 2846 drivers/net/ethernet/qlogic/qed/qed_iwarp.c qed_iwarp_modify_qp(p_hwfn, ep->qp, QED_IWARP_QP_STATE_ERROR, true); ep 2849 drivers/net/ethernet/qlogic/qed/qed_iwarp.c params.ep_context = ep; ep 2850 drivers/net/ethernet/qlogic/qed/qed_iwarp.c params.cm_info = &ep->cm_info; ep 2855 drivers/net/ethernet/qlogic/qed/qed_iwarp.c smp_store_release(&ep->state, QED_IWARP_EP_CLOSED); ep 2858 drivers/net/ethernet/qlogic/qed/qed_iwarp.c list_del(&ep->list_entry); ep 2861 drivers/net/ethernet/qlogic/qed/qed_iwarp.c ep->event_cb(ep->cb_context, ¶ms); ep 2865 drivers/net/ethernet/qlogic/qed/qed_iwarp.c struct qed_iwarp_ep *ep, ep 2872 drivers/net/ethernet/qlogic/qed/qed_iwarp.c ep->cid, fw_ret_code); ep 2929 drivers/net/ethernet/qlogic/qed/qed_iwarp.c params.ep_context = ep; ep 2930 drivers/net/ethernet/qlogic/qed/qed_iwarp.c params.cm_info = &ep->cm_info; ep 2931 drivers/net/ethernet/qlogic/qed/qed_iwarp.c ep->event_cb(ep->cb_context, ¶ms); ep 2937 drivers/net/ethernet/qlogic/qed/qed_iwarp.c struct qed_iwarp_ep *ep, u8 fw_return_code) ep 2943 drivers/net/ethernet/qlogic/qed/qed_iwarp.c params.ep_context = ep; ep 2944 drivers/net/ethernet/qlogic/qed/qed_iwarp.c params.cm_info = &ep->cm_info; ep 2946 drivers/net/ethernet/qlogic/qed/qed_iwarp.c smp_store_release(&ep->state, QED_IWARP_EP_CLOSED); ep 2952 drivers/net/ethernet/qlogic/qed/qed_iwarp.c QED_IWARP_CONNECT_MODE_STRING(ep), ep->tcp_cid); ep 2958 drivers/net/ethernet/qlogic/qed/qed_iwarp.c QED_IWARP_CONNECT_MODE_STRING(ep), ep->tcp_cid); ep 2963 drivers/net/ethernet/qlogic/qed/qed_iwarp.c QED_IWARP_CONNECT_MODE_STRING(ep), ep->tcp_cid); ep 2968 drivers/net/ethernet/qlogic/qed/qed_iwarp.c QED_IWARP_CONNECT_MODE_STRING(ep), ep->tcp_cid); ep 2973 drivers/net/ethernet/qlogic/qed/qed_iwarp.c QED_IWARP_CONNECT_MODE_STRING(ep), ep->tcp_cid); ep 2979 drivers/net/ethernet/qlogic/qed/qed_iwarp.c QED_IWARP_CONNECT_MODE_STRING(ep), ep 2980 drivers/net/ethernet/qlogic/qed/qed_iwarp.c ep->tcp_cid, fw_return_code); ep 2985 drivers/net/ethernet/qlogic/qed/qed_iwarp.c if (ep->connect_mode == TCP_CONNECT_PASSIVE) { ep 2986 drivers/net/ethernet/qlogic/qed/qed_iwarp.c ep->tcp_cid = QED_IWARP_INVALID_TCP_CID; ep 2987 drivers/net/ethernet/qlogic/qed/qed_iwarp.c qed_iwarp_return_ep(p_hwfn, ep); ep 2989 drivers/net/ethernet/qlogic/qed/qed_iwarp.c ep->event_cb(ep->cb_context, ¶ms); ep 2991 drivers/net/ethernet/qlogic/qed/qed_iwarp.c list_del(&ep->list_entry); ep 2998 drivers/net/ethernet/qlogic/qed/qed_iwarp.c struct qed_iwarp_ep *ep, u8 fw_return_code) ep 3002 drivers/net/ethernet/qlogic/qed/qed_iwarp.c if (ep->connect_mode == TCP_CONNECT_PASSIVE) { ep 3004 drivers/net/ethernet/qlogic/qed/qed_iwarp.c qed_iwarp_ll2_post_rx(p_hwfn, ep->syn, ll2_syn_handle); ep 3006 drivers/net/ethernet/qlogic/qed/qed_iwarp.c ep->syn = NULL; ep 3010 drivers/net/ethernet/qlogic/qed/qed_iwarp.c qed_iwarp_mpa_received(p_hwfn, ep); ep 3012 drivers/net/ethernet/qlogic/qed/qed_iwarp.c qed_iwarp_tcp_connect_unsuccessful(p_hwfn, ep, ep 3016 drivers/net/ethernet/qlogic/qed/qed_iwarp.c qed_iwarp_mpa_offload(p_hwfn, ep); ep 3018 drivers/net/ethernet/qlogic/qed/qed_iwarp.c qed_iwarp_tcp_connect_unsuccessful(p_hwfn, ep, ep 3024 drivers/net/ethernet/qlogic/qed/qed_iwarp.c qed_iwarp_check_ep_ok(struct qed_hwfn *p_hwfn, struct qed_iwarp_ep *ep) ep 3026 drivers/net/ethernet/qlogic/qed/qed_iwarp.c if (!ep || (ep->sig != QED_EP_SIG)) { ep 3027 drivers/net/ethernet/qlogic/qed/qed_iwarp.c DP_ERR(p_hwfn, "ERROR ON ASYNC ep=%p\n", ep); ep 3041 drivers/net/ethernet/qlogic/qed/qed_iwarp.c struct qed_iwarp_ep *ep = NULL; ep 3046 drivers/net/ethernet/qlogic/qed/qed_iwarp.c ep = (struct qed_iwarp_ep *)(uintptr_t)HILO_64(fw_handle->hi, ep 3052 drivers/net/ethernet/qlogic/qed/qed_iwarp.c if (!qed_iwarp_check_ep_ok(p_hwfn, ep)) ep 3057 drivers/net/ethernet/qlogic/qed/qed_iwarp.c ep->tcp_cid, fw_return_code); ep 3058 drivers/net/ethernet/qlogic/qed/qed_iwarp.c qed_iwarp_connect_complete(p_hwfn, ep, fw_return_code); ep 3061 drivers/net/ethernet/qlogic/qed/qed_iwarp.c if (!qed_iwarp_check_ep_ok(p_hwfn, ep)) ep 3066 drivers/net/ethernet/qlogic/qed/qed_iwarp.c ep->cid, fw_return_code); ep 3067 drivers/net/ethernet/qlogic/qed/qed_iwarp.c qed_iwarp_exception_received(p_hwfn, ep, fw_return_code); ep 3071 drivers/net/ethernet/qlogic/qed/qed_iwarp.c if (!qed_iwarp_check_ep_ok(p_hwfn, ep)) ep 3076 drivers/net/ethernet/qlogic/qed/qed_iwarp.c ep->cid, fw_return_code); ep 3077 drivers/net/ethernet/qlogic/qed/qed_iwarp.c qed_iwarp_qp_in_error(p_hwfn, ep, fw_return_code); ep 3081 drivers/net/ethernet/qlogic/qed/qed_iwarp.c if (!qed_iwarp_check_ep_ok(p_hwfn, ep)) ep 3086 drivers/net/ethernet/qlogic/qed/qed_iwarp.c ep->cid, fw_return_code); ep 3087 drivers/net/ethernet/qlogic/qed/qed_iwarp.c qed_iwarp_mpa_reply_arrived(p_hwfn, ep); ep 3090 drivers/net/ethernet/qlogic/qed/qed_iwarp.c if (!qed_iwarp_check_ep_ok(p_hwfn, ep)) ep 3095 drivers/net/ethernet/qlogic/qed/qed_iwarp.c ep->cid, fw_return_code); ep 3096 drivers/net/ethernet/qlogic/qed/qed_iwarp.c qed_iwarp_mpa_complete(p_hwfn, ep, fw_return_code); ep 3200 drivers/net/ethernet/qlogic/qed/qed_iwarp.c struct qed_iwarp_ep *ep; ep 3204 drivers/net/ethernet/qlogic/qed/qed_iwarp.c ep = iparams->ep_context; ep 3205 drivers/net/ethernet/qlogic/qed/qed_iwarp.c if (!ep) { ep 3210 drivers/net/ethernet/qlogic/qed/qed_iwarp.c qp = ep->qp; ep 3213 drivers/net/ethernet/qlogic/qed/qed_iwarp.c qp->icid, ep->tcp_cid); ep 174 drivers/net/ethernet/qlogic/qed/qed_rdma.h struct qed_iwarp_ep *ep; ep 114 drivers/net/ethernet/qualcomm/rmnet/rmnet_config.c struct rmnet_endpoint *ep; ep 131 drivers/net/ethernet/qualcomm/rmnet/rmnet_config.c ep = kzalloc(sizeof(*ep), GFP_ATOMIC); ep 132 drivers/net/ethernet/qualcomm/rmnet/rmnet_config.c if (!ep) ep 142 drivers/net/ethernet/qualcomm/rmnet/rmnet_config.c err = rmnet_vnd_newlink(mux_id, dev, port, real_dev, ep); ep 153 drivers/net/ethernet/qualcomm/rmnet/rmnet_config.c hlist_add_head_rcu(&ep->hlnode, &port->muxed_ep[mux_id]); ep 169 drivers/net/ethernet/qualcomm/rmnet/rmnet_config.c rmnet_vnd_dellink(mux_id, port, ep); ep 173 drivers/net/ethernet/qualcomm/rmnet/rmnet_config.c kfree(ep); ep 182 drivers/net/ethernet/qualcomm/rmnet/rmnet_config.c struct rmnet_endpoint *ep; ep 197 drivers/net/ethernet/qualcomm/rmnet/rmnet_config.c ep = rmnet_get_endpoint(real_port, mux_id); ep 198 drivers/net/ethernet/qualcomm/rmnet/rmnet_config.c if (ep) { ep 199 drivers/net/ethernet/qualcomm/rmnet/rmnet_config.c hlist_del_init_rcu(&ep->hlnode); ep 200 drivers/net/ethernet/qualcomm/rmnet/rmnet_config.c rmnet_vnd_dellink(mux_id, real_port, ep); ep 201 drivers/net/ethernet/qualcomm/rmnet/rmnet_config.c kfree(ep); ep 212 drivers/net/ethernet/qualcomm/rmnet/rmnet_config.c struct rmnet_endpoint *ep; ep 222 drivers/net/ethernet/qualcomm/rmnet/rmnet_config.c hash_for_each_safe(port->muxed_ep, bkt_ep, tmp_ep, ep, hlnode) { ep 223 drivers/net/ethernet/qualcomm/rmnet/rmnet_config.c unregister_netdevice_queue(ep->egress_dev, &list); ep 224 drivers/net/ethernet/qualcomm/rmnet/rmnet_config.c netdev_upper_dev_unlink(real_dev, ep->egress_dev); ep 225 drivers/net/ethernet/qualcomm/rmnet/rmnet_config.c rmnet_vnd_dellink(ep->mux_id, port, ep); ep 226 drivers/net/ethernet/qualcomm/rmnet/rmnet_config.c hlist_del_init_rcu(&ep->hlnode); ep 227 drivers/net/ethernet/qualcomm/rmnet/rmnet_config.c kfree(ep); ep 298 drivers/net/ethernet/qualcomm/rmnet/rmnet_config.c struct rmnet_endpoint *ep; ep 300 drivers/net/ethernet/qualcomm/rmnet/rmnet_config.c ep = rmnet_get_endpoint(port, priv->mux_id); ep 301 drivers/net/ethernet/qualcomm/rmnet/rmnet_config.c if (!ep) ep 310 drivers/net/ethernet/qualcomm/rmnet/rmnet_config.c hlist_del_init_rcu(&ep->hlnode); ep 311 drivers/net/ethernet/qualcomm/rmnet/rmnet_config.c hlist_add_head_rcu(&ep->hlnode, ep 314 drivers/net/ethernet/qualcomm/rmnet/rmnet_config.c ep->mux_id = mux_id; ep 392 drivers/net/ethernet/qualcomm/rmnet/rmnet_config.c struct rmnet_endpoint *ep; ep 394 drivers/net/ethernet/qualcomm/rmnet/rmnet_config.c hlist_for_each_entry_rcu(ep, &port->muxed_ep[mux_id], hlnode) { ep 395 drivers/net/ethernet/qualcomm/rmnet/rmnet_config.c if (ep->mux_id == mux_id) ep 396 drivers/net/ethernet/qualcomm/rmnet/rmnet_config.c return ep; ep 59 drivers/net/ethernet/qualcomm/rmnet/rmnet_handlers.c struct rmnet_endpoint *ep; ep 77 drivers/net/ethernet/qualcomm/rmnet/rmnet_handlers.c ep = rmnet_get_endpoint(port, mux_id); ep 78 drivers/net/ethernet/qualcomm/rmnet/rmnet_handlers.c if (!ep) ep 81 drivers/net/ethernet/qualcomm/rmnet/rmnet_handlers.c skb->dev = ep->egress_dev; ep 15 drivers/net/ethernet/qualcomm/rmnet/rmnet_map_command.c struct rmnet_endpoint *ep; ep 27 drivers/net/ethernet/qualcomm/rmnet/rmnet_map_command.c ep = rmnet_get_endpoint(port, mux_id); ep 28 drivers/net/ethernet/qualcomm/rmnet/rmnet_map_command.c if (!ep) { ep 33 drivers/net/ethernet/qualcomm/rmnet/rmnet_map_command.c vnd = ep->egress_dev; ep 225 drivers/net/ethernet/qualcomm/rmnet/rmnet_vnd.c struct rmnet_endpoint *ep) ep 230 drivers/net/ethernet/qualcomm/rmnet/rmnet_vnd.c if (ep->egress_dev) ep 244 drivers/net/ethernet/qualcomm/rmnet/rmnet_vnd.c ep->egress_dev = rmnet_dev; ep 245 drivers/net/ethernet/qualcomm/rmnet/rmnet_vnd.c ep->mux_id = id; ep 259 drivers/net/ethernet/qualcomm/rmnet/rmnet_vnd.c struct rmnet_endpoint *ep) ep 261 drivers/net/ethernet/qualcomm/rmnet/rmnet_vnd.c if (id >= RMNET_MAX_LOGICAL_EP || !ep->egress_dev) ep 264 drivers/net/ethernet/qualcomm/rmnet/rmnet_vnd.c ep->egress_dev = NULL; ep 14 drivers/net/ethernet/qualcomm/rmnet/rmnet_vnd.h struct rmnet_endpoint *ep); ep 16 drivers/net/ethernet/qualcomm/rmnet/rmnet_vnd.h struct rmnet_endpoint *ep); ep 325 drivers/net/ethernet/smsc/epic100.c struct epic_private *ep; ep 355 drivers/net/ethernet/smsc/epic100.c dev = alloc_etherdev(sizeof (*ep)); ep 368 drivers/net/ethernet/smsc/epic100.c ep = netdev_priv(dev); ep 369 drivers/net/ethernet/smsc/epic100.c ep->ioaddr = ioaddr; ep 370 drivers/net/ethernet/smsc/epic100.c ep->mii.dev = dev; ep 371 drivers/net/ethernet/smsc/epic100.c ep->mii.mdio_read = mdio_read; ep 372 drivers/net/ethernet/smsc/epic100.c ep->mii.mdio_write = mdio_write; ep 373 drivers/net/ethernet/smsc/epic100.c ep->mii.phy_id_mask = 0x1f; ep 374 drivers/net/ethernet/smsc/epic100.c ep->mii.reg_num_mask = 0x1f; ep 379 drivers/net/ethernet/smsc/epic100.c ep->tx_ring = ring_space; ep 380 drivers/net/ethernet/smsc/epic100.c ep->tx_ring_dma = ring_dma; ep 385 drivers/net/ethernet/smsc/epic100.c ep->rx_ring = ring_space; ep 386 drivers/net/ethernet/smsc/epic100.c ep->rx_ring_dma = ring_dma; ep 398 drivers/net/ethernet/smsc/epic100.c spin_lock_init(&ep->lock); ep 399 drivers/net/ethernet/smsc/epic100.c spin_lock_init(&ep->napi_lock); ep 421 drivers/net/ethernet/smsc/epic100.c pr_cont(" %4.4x%s", read_eeprom(ep, i), ep 425 drivers/net/ethernet/smsc/epic100.c ep->pci_dev = pdev; ep 426 drivers/net/ethernet/smsc/epic100.c ep->chip_id = chip_idx; ep 427 drivers/net/ethernet/smsc/epic100.c ep->chip_flags = pci_id_tbl[chip_idx].drv_flags; ep 428 drivers/net/ethernet/smsc/epic100.c ep->irq_mask = ep 429 drivers/net/ethernet/smsc/epic100.c (ep->chip_flags & TYPE2_INTR ? PCIBusErr175 : PCIBusErr170) ep 437 drivers/net/ethernet/smsc/epic100.c for (phy = 1; phy < 32 && phy_idx < sizeof(ep->phys); phy++) { ep 440 drivers/net/ethernet/smsc/epic100.c ep->phys[phy_idx++] = phy; ep 447 drivers/net/ethernet/smsc/epic100.c ep->mii_phy_cnt = phy_idx; ep 449 drivers/net/ethernet/smsc/epic100.c phy = ep->phys[0]; ep 450 drivers/net/ethernet/smsc/epic100.c ep->mii.advertising = mdio_read(dev, phy, MII_ADVERTISE); ep 454 drivers/net/ethernet/smsc/epic100.c ep->mii.advertising, mdio_read(dev, phy, 5)); ep 455 drivers/net/ethernet/smsc/epic100.c } else if ( ! (ep->chip_flags & NO_MII)) { ep 459 drivers/net/ethernet/smsc/epic100.c ep->phys[0] = 3; ep 461 drivers/net/ethernet/smsc/epic100.c ep->mii.phy_id = ep->phys[0]; ep 465 drivers/net/ethernet/smsc/epic100.c if (ep->chip_flags & MII_PWRDWN) ep 471 drivers/net/ethernet/smsc/epic100.c ep->mii.force_media = ep->mii.full_duplex = 1; ep 474 drivers/net/ethernet/smsc/epic100.c dev->if_port = ep->default_port = option; ep 480 drivers/net/ethernet/smsc/epic100.c netif_napi_add(dev, &ep->napi, epic_poll, 64); ep 495 drivers/net/ethernet/smsc/epic100.c pci_free_consistent(pdev, RX_TOTAL_SIZE, ep->rx_ring, ep->rx_ring_dma); ep 497 drivers/net/ethernet/smsc/epic100.c pci_free_consistent(pdev, TX_TOTAL_SIZE, ep->tx_ring, ep->tx_ring_dma); ep 532 drivers/net/ethernet/smsc/epic100.c static void epic_disable_int(struct net_device *dev, struct epic_private *ep) ep 534 drivers/net/ethernet/smsc/epic100.c void __iomem *ioaddr = ep->ioaddr; ep 547 drivers/net/ethernet/smsc/epic100.c struct epic_private *ep) ep 549 drivers/net/ethernet/smsc/epic100.c void __iomem *ioaddr = ep->ioaddr; ep 551 drivers/net/ethernet/smsc/epic100.c ew32(INTMASK, ep->irq_mask & ~EpicNapiEvent); ep 556 drivers/net/ethernet/smsc/epic100.c struct epic_private *ep) ep 558 drivers/net/ethernet/smsc/epic100.c void __iomem *ioaddr = ep->ioaddr; ep 561 drivers/net/ethernet/smsc/epic100.c ew32(INTMASK, ep->irq_mask | EpicNapiEvent); ep 564 drivers/net/ethernet/smsc/epic100.c static int read_eeprom(struct epic_private *ep, int location) ep 566 drivers/net/ethernet/smsc/epic100.c void __iomem *ioaddr = ep->ioaddr; ep 602 drivers/net/ethernet/smsc/epic100.c struct epic_private *ep = netdev_priv(dev); ep 603 drivers/net/ethernet/smsc/epic100.c void __iomem *ioaddr = ep->ioaddr; ep 626 drivers/net/ethernet/smsc/epic100.c struct epic_private *ep = netdev_priv(dev); ep 627 drivers/net/ethernet/smsc/epic100.c void __iomem *ioaddr = ep->ioaddr; ep 642 drivers/net/ethernet/smsc/epic100.c struct epic_private *ep = netdev_priv(dev); ep 643 drivers/net/ethernet/smsc/epic100.c void __iomem *ioaddr = ep->ioaddr; ep 644 drivers/net/ethernet/smsc/epic100.c const int irq = ep->pci_dev->irq; ep 650 drivers/net/ethernet/smsc/epic100.c napi_enable(&ep->napi); ep 653 drivers/net/ethernet/smsc/epic100.c napi_disable(&ep->napi); ep 672 drivers/net/ethernet/smsc/epic100.c if (ep->chip_flags & MII_PWRDWN) ep 691 drivers/net/ethernet/smsc/epic100.c ep->tx_threshold = TX_FIFO_THRESH; ep 692 drivers/net/ethernet/smsc/epic100.c ew32(TxThresh, ep->tx_threshold); ep 695 drivers/net/ethernet/smsc/epic100.c if (ep->mii_phy_cnt) ep 696 drivers/net/ethernet/smsc/epic100.c mdio_write(dev, ep->phys[0], MII_BMCR, media2miictl[dev->if_port&15]); ep 700 drivers/net/ethernet/smsc/epic100.c mdio_read(dev, ep->phys[0], MII_BMSR)); ep 703 drivers/net/ethernet/smsc/epic100.c int mii_lpa = mdio_read(dev, ep->phys[0], MII_LPA); ep 706 drivers/net/ethernet/smsc/epic100.c ep->mii.full_duplex = 1; ep 708 drivers/net/ethernet/smsc/epic100.c mdio_write(dev, ep->phys[0], MII_BMCR, BMCR_ANENABLE|BMCR_ANRESTART); ep 711 drivers/net/ethernet/smsc/epic100.c ep->mii.full_duplex ? "full" ep 713 drivers/net/ethernet/smsc/epic100.c ep->phys[0], mii_lpa); ep 717 drivers/net/ethernet/smsc/epic100.c ew32(TxCtrl, ep->mii.full_duplex ? 0x7f : 0x79); ep 718 drivers/net/ethernet/smsc/epic100.c ew32(PRxCDAR, ep->rx_ring_dma); ep 719 drivers/net/ethernet/smsc/epic100.c ew32(PTxCDAR, ep->tx_ring_dma); ep 729 drivers/net/ethernet/smsc/epic100.c ((ep->chip_flags & TYPE2_INTR) ? PCIBusErr175 : PCIBusErr170) | ep 735 drivers/net/ethernet/smsc/epic100.c ep->mii.full_duplex ? "full" : "half"); ep 740 drivers/net/ethernet/smsc/epic100.c timer_setup(&ep->timer, epic_timer, 0); ep 741 drivers/net/ethernet/smsc/epic100.c ep->timer.expires = jiffies + 3*HZ; ep 742 drivers/net/ethernet/smsc/epic100.c add_timer(&ep->timer); ep 752 drivers/net/ethernet/smsc/epic100.c struct epic_private *ep = netdev_priv(dev); ep 753 drivers/net/ethernet/smsc/epic100.c void __iomem *ioaddr = ep->ioaddr; ep 775 drivers/net/ethernet/smsc/epic100.c struct epic_private *ep = netdev_priv(dev); ep 776 drivers/net/ethernet/smsc/epic100.c void __iomem *ioaddr = ep->ioaddr; ep 783 drivers/net/ethernet/smsc/epic100.c ep->cur_rx, ep->dirty_rx, ep->dirty_tx, ep->cur_tx); ep 796 drivers/net/ethernet/smsc/epic100.c if (ep->chip_flags & MII_PWRDWN) ep 802 drivers/net/ethernet/smsc/epic100.c ep->tx_threshold = TX_FIFO_THRESH; ep 803 drivers/net/ethernet/smsc/epic100.c ew32(TxThresh, ep->tx_threshold); ep 804 drivers/net/ethernet/smsc/epic100.c ew32(TxCtrl, ep->mii.full_duplex ? 0x7f : 0x79); ep 805 drivers/net/ethernet/smsc/epic100.c ew32(PRxCDAR, ep->rx_ring_dma + ep 806 drivers/net/ethernet/smsc/epic100.c (ep->cur_rx % RX_RING_SIZE) * sizeof(struct epic_rx_desc)); ep 807 drivers/net/ethernet/smsc/epic100.c ew32(PTxCDAR, ep->tx_ring_dma + ep 808 drivers/net/ethernet/smsc/epic100.c (ep->dirty_tx % TX_RING_SIZE) * sizeof(struct epic_tx_desc)); ep 816 drivers/net/ethernet/smsc/epic100.c ((ep->chip_flags & TYPE2_INTR) ? PCIBusErr175 : PCIBusErr170) | ep 825 drivers/net/ethernet/smsc/epic100.c struct epic_private *ep = netdev_priv(dev); ep 826 drivers/net/ethernet/smsc/epic100.c void __iomem *ioaddr = ep->ioaddr; ep 827 drivers/net/ethernet/smsc/epic100.c int mii_lpa = ep->mii_phy_cnt ? mdio_read(dev, ep->phys[0], MII_LPA) : 0; ep 828 drivers/net/ethernet/smsc/epic100.c int negotiated = mii_lpa & ep->mii.advertising; ep 831 drivers/net/ethernet/smsc/epic100.c if (ep->mii.force_media) ep 835 drivers/net/ethernet/smsc/epic100.c if (ep->mii.full_duplex != duplex) { ep 836 drivers/net/ethernet/smsc/epic100.c ep->mii.full_duplex = duplex; ep 838 drivers/net/ethernet/smsc/epic100.c ep->mii.full_duplex ? "full" : "half", ep 839 drivers/net/ethernet/smsc/epic100.c ep->phys[0], mii_lpa); ep 840 drivers/net/ethernet/smsc/epic100.c ew32(TxCtrl, ep->mii.full_duplex ? 0x7F : 0x79); ep 846 drivers/net/ethernet/smsc/epic100.c struct epic_private *ep = from_timer(ep, t, timer); ep 847 drivers/net/ethernet/smsc/epic100.c struct net_device *dev = ep->mii.dev; ep 848 drivers/net/ethernet/smsc/epic100.c void __iomem *ioaddr = ep->ioaddr; ep 860 drivers/net/ethernet/smsc/epic100.c ep->timer.expires = jiffies + next_tick; ep 861 drivers/net/ethernet/smsc/epic100.c add_timer(&ep->timer); ep 866 drivers/net/ethernet/smsc/epic100.c struct epic_private *ep = netdev_priv(dev); ep 867 drivers/net/ethernet/smsc/epic100.c void __iomem *ioaddr = ep->ioaddr; ep 874 drivers/net/ethernet/smsc/epic100.c ep->dirty_tx, ep->cur_tx); ep 887 drivers/net/ethernet/smsc/epic100.c if (!ep->tx_full) ep 894 drivers/net/ethernet/smsc/epic100.c struct epic_private *ep = netdev_priv(dev); ep 897 drivers/net/ethernet/smsc/epic100.c ep->tx_full = 0; ep 898 drivers/net/ethernet/smsc/epic100.c ep->dirty_tx = ep->cur_tx = 0; ep 899 drivers/net/ethernet/smsc/epic100.c ep->cur_rx = ep->dirty_rx = 0; ep 900 drivers/net/ethernet/smsc/epic100.c ep->rx_buf_sz = (dev->mtu <= 1500 ? PKT_BUF_SZ : dev->mtu + 32); ep 904 drivers/net/ethernet/smsc/epic100.c ep->rx_ring[i].rxstatus = 0; ep 905 drivers/net/ethernet/smsc/epic100.c ep->rx_ring[i].buflength = ep->rx_buf_sz; ep 906 drivers/net/ethernet/smsc/epic100.c ep->rx_ring[i].next = ep->rx_ring_dma + ep 908 drivers/net/ethernet/smsc/epic100.c ep->rx_skbuff[i] = NULL; ep 911 drivers/net/ethernet/smsc/epic100.c ep->rx_ring[i-1].next = ep->rx_ring_dma; ep 915 drivers/net/ethernet/smsc/epic100.c struct sk_buff *skb = netdev_alloc_skb(dev, ep->rx_buf_sz + 2); ep 916 drivers/net/ethernet/smsc/epic100.c ep->rx_skbuff[i] = skb; ep 920 drivers/net/ethernet/smsc/epic100.c ep->rx_ring[i].bufaddr = pci_map_single(ep->pci_dev, ep 921 drivers/net/ethernet/smsc/epic100.c skb->data, ep->rx_buf_sz, PCI_DMA_FROMDEVICE); ep 922 drivers/net/ethernet/smsc/epic100.c ep->rx_ring[i].rxstatus = DescOwn; ep 924 drivers/net/ethernet/smsc/epic100.c ep->dirty_rx = (unsigned int)(i - RX_RING_SIZE); ep 929 drivers/net/ethernet/smsc/epic100.c ep->tx_skbuff[i] = NULL; ep 930 drivers/net/ethernet/smsc/epic100.c ep->tx_ring[i].txstatus = 0x0000; ep 931 drivers/net/ethernet/smsc/epic100.c ep->tx_ring[i].next = ep->tx_ring_dma + ep 934 drivers/net/ethernet/smsc/epic100.c ep->tx_ring[i-1].next = ep->tx_ring_dma; ep 939 drivers/net/ethernet/smsc/epic100.c struct epic_private *ep = netdev_priv(dev); ep 940 drivers/net/ethernet/smsc/epic100.c void __iomem *ioaddr = ep->ioaddr; ep 952 drivers/net/ethernet/smsc/epic100.c spin_lock_irqsave(&ep->lock, flags); ep 953 drivers/net/ethernet/smsc/epic100.c free_count = ep->cur_tx - ep->dirty_tx; ep 954 drivers/net/ethernet/smsc/epic100.c entry = ep->cur_tx % TX_RING_SIZE; ep 956 drivers/net/ethernet/smsc/epic100.c ep->tx_skbuff[entry] = skb; ep 957 drivers/net/ethernet/smsc/epic100.c ep->tx_ring[entry].bufaddr = pci_map_single(ep->pci_dev, skb->data, ep 968 drivers/net/ethernet/smsc/epic100.c ep->tx_full = 1; ep 970 drivers/net/ethernet/smsc/epic100.c ep->tx_ring[entry].buflength = ctrl_word | skb->len; ep 971 drivers/net/ethernet/smsc/epic100.c ep->tx_ring[entry].txstatus = ep 975 drivers/net/ethernet/smsc/epic100.c ep->cur_tx++; ep 976 drivers/net/ethernet/smsc/epic100.c if (ep->tx_full) ep 979 drivers/net/ethernet/smsc/epic100.c spin_unlock_irqrestore(&ep->lock, flags); ep 990 drivers/net/ethernet/smsc/epic100.c static void epic_tx_error(struct net_device *dev, struct epic_private *ep, ep 1012 drivers/net/ethernet/smsc/epic100.c static void epic_tx(struct net_device *dev, struct epic_private *ep) ep 1020 drivers/net/ethernet/smsc/epic100.c cur_tx = ep->cur_tx; ep 1021 drivers/net/ethernet/smsc/epic100.c for (dirty_tx = ep->dirty_tx; cur_tx - dirty_tx > 0; dirty_tx++) { ep 1024 drivers/net/ethernet/smsc/epic100.c int txstatus = ep->tx_ring[entry].txstatus; ep 1032 drivers/net/ethernet/smsc/epic100.c dev->stats.tx_bytes += ep->tx_skbuff[entry]->len; ep 1034 drivers/net/ethernet/smsc/epic100.c epic_tx_error(dev, ep, txstatus); ep 1037 drivers/net/ethernet/smsc/epic100.c skb = ep->tx_skbuff[entry]; ep 1038 drivers/net/ethernet/smsc/epic100.c pci_unmap_single(ep->pci_dev, ep->tx_ring[entry].bufaddr, ep 1041 drivers/net/ethernet/smsc/epic100.c ep->tx_skbuff[entry] = NULL; ep 1047 drivers/net/ethernet/smsc/epic100.c dirty_tx, cur_tx, ep->tx_full); ep 1051 drivers/net/ethernet/smsc/epic100.c ep->dirty_tx = dirty_tx; ep 1052 drivers/net/ethernet/smsc/epic100.c if (ep->tx_full && cur_tx - dirty_tx < TX_QUEUE_LEN - 4) { ep 1054 drivers/net/ethernet/smsc/epic100.c ep->tx_full = 0; ep 1064 drivers/net/ethernet/smsc/epic100.c struct epic_private *ep = netdev_priv(dev); ep 1065 drivers/net/ethernet/smsc/epic100.c void __iomem *ioaddr = ep->ioaddr; ep 1084 drivers/net/ethernet/smsc/epic100.c spin_lock(&ep->napi_lock); ep 1085 drivers/net/ethernet/smsc/epic100.c if (napi_schedule_prep(&ep->napi)) { ep 1086 drivers/net/ethernet/smsc/epic100.c epic_napi_irq_off(dev, ep); ep 1087 drivers/net/ethernet/smsc/epic100.c __napi_schedule(&ep->napi); ep 1089 drivers/net/ethernet/smsc/epic100.c spin_unlock(&ep->napi_lock); ep 1107 drivers/net/ethernet/smsc/epic100.c ew32(TxThresh, ep->tx_threshold += 128); ep 1132 drivers/net/ethernet/smsc/epic100.c struct epic_private *ep = netdev_priv(dev); ep 1133 drivers/net/ethernet/smsc/epic100.c int entry = ep->cur_rx % RX_RING_SIZE; ep 1134 drivers/net/ethernet/smsc/epic100.c int rx_work_limit = ep->dirty_rx + RX_RING_SIZE - ep->cur_rx; ep 1139 drivers/net/ethernet/smsc/epic100.c ep->rx_ring[entry].rxstatus); ep 1145 drivers/net/ethernet/smsc/epic100.c while ((ep->rx_ring[entry].rxstatus & DescOwn) == 0) { ep 1146 drivers/net/ethernet/smsc/epic100.c int status = ep->rx_ring[entry].rxstatus; ep 1180 drivers/net/ethernet/smsc/epic100.c pci_dma_sync_single_for_cpu(ep->pci_dev, ep 1181 drivers/net/ethernet/smsc/epic100.c ep->rx_ring[entry].bufaddr, ep 1182 drivers/net/ethernet/smsc/epic100.c ep->rx_buf_sz, ep 1184 drivers/net/ethernet/smsc/epic100.c skb_copy_to_linear_data(skb, ep->rx_skbuff[entry]->data, pkt_len); ep 1186 drivers/net/ethernet/smsc/epic100.c pci_dma_sync_single_for_device(ep->pci_dev, ep 1187 drivers/net/ethernet/smsc/epic100.c ep->rx_ring[entry].bufaddr, ep 1188 drivers/net/ethernet/smsc/epic100.c ep->rx_buf_sz, ep 1191 drivers/net/ethernet/smsc/epic100.c pci_unmap_single(ep->pci_dev, ep 1192 drivers/net/ethernet/smsc/epic100.c ep->rx_ring[entry].bufaddr, ep 1193 drivers/net/ethernet/smsc/epic100.c ep->rx_buf_sz, PCI_DMA_FROMDEVICE); ep 1194 drivers/net/ethernet/smsc/epic100.c skb_put(skb = ep->rx_skbuff[entry], pkt_len); ep 1195 drivers/net/ethernet/smsc/epic100.c ep->rx_skbuff[entry] = NULL; ep 1203 drivers/net/ethernet/smsc/epic100.c entry = (++ep->cur_rx) % RX_RING_SIZE; ep 1207 drivers/net/ethernet/smsc/epic100.c for (; ep->cur_rx - ep->dirty_rx > 0; ep->dirty_rx++) { ep 1208 drivers/net/ethernet/smsc/epic100.c entry = ep->dirty_rx % RX_RING_SIZE; ep 1209 drivers/net/ethernet/smsc/epic100.c if (ep->rx_skbuff[entry] == NULL) { ep 1211 drivers/net/ethernet/smsc/epic100.c skb = ep->rx_skbuff[entry] = netdev_alloc_skb(dev, ep->rx_buf_sz + 2); ep 1215 drivers/net/ethernet/smsc/epic100.c ep->rx_ring[entry].bufaddr = pci_map_single(ep->pci_dev, ep 1216 drivers/net/ethernet/smsc/epic100.c skb->data, ep->rx_buf_sz, PCI_DMA_FROMDEVICE); ep 1220 drivers/net/ethernet/smsc/epic100.c ep->rx_ring[entry].rxstatus = DescOwn; ep 1225 drivers/net/ethernet/smsc/epic100.c static void epic_rx_err(struct net_device *dev, struct epic_private *ep) ep 1227 drivers/net/ethernet/smsc/epic100.c void __iomem *ioaddr = ep->ioaddr; ep 1242 drivers/net/ethernet/smsc/epic100.c struct epic_private *ep = container_of(napi, struct epic_private, napi); ep 1243 drivers/net/ethernet/smsc/epic100.c struct net_device *dev = ep->mii.dev; ep 1244 drivers/net/ethernet/smsc/epic100.c void __iomem *ioaddr = ep->ioaddr; ep 1247 drivers/net/ethernet/smsc/epic100.c epic_tx(dev, ep); ep 1251 drivers/net/ethernet/smsc/epic100.c epic_rx_err(dev, ep); ep 1256 drivers/net/ethernet/smsc/epic100.c spin_lock_irqsave(&ep->napi_lock, flags); ep 1259 drivers/net/ethernet/smsc/epic100.c epic_napi_irq_on(dev, ep); ep 1260 drivers/net/ethernet/smsc/epic100.c spin_unlock_irqrestore(&ep->napi_lock, flags); ep 1268 drivers/net/ethernet/smsc/epic100.c struct epic_private *ep = netdev_priv(dev); ep 1269 drivers/net/ethernet/smsc/epic100.c struct pci_dev *pdev = ep->pci_dev; ep 1270 drivers/net/ethernet/smsc/epic100.c void __iomem *ioaddr = ep->ioaddr; ep 1275 drivers/net/ethernet/smsc/epic100.c napi_disable(&ep->napi); ep 1281 drivers/net/ethernet/smsc/epic100.c del_timer_sync(&ep->timer); ep 1283 drivers/net/ethernet/smsc/epic100.c epic_disable_int(dev, ep); ep 1291 drivers/net/ethernet/smsc/epic100.c skb = ep->rx_skbuff[i]; ep 1292 drivers/net/ethernet/smsc/epic100.c ep->rx_skbuff[i] = NULL; ep 1293 drivers/net/ethernet/smsc/epic100.c ep->rx_ring[i].rxstatus = 0; /* Not owned by Epic chip. */ ep 1294 drivers/net/ethernet/smsc/epic100.c ep->rx_ring[i].buflength = 0; ep 1296 drivers/net/ethernet/smsc/epic100.c pci_unmap_single(pdev, ep->rx_ring[i].bufaddr, ep 1297 drivers/net/ethernet/smsc/epic100.c ep->rx_buf_sz, PCI_DMA_FROMDEVICE); ep 1300 drivers/net/ethernet/smsc/epic100.c ep->rx_ring[i].bufaddr = 0xBADF00D0; /* An invalid address. */ ep 1303 drivers/net/ethernet/smsc/epic100.c skb = ep->tx_skbuff[i]; ep 1304 drivers/net/ethernet/smsc/epic100.c ep->tx_skbuff[i] = NULL; ep 1307 drivers/net/ethernet/smsc/epic100.c pci_unmap_single(pdev, ep->tx_ring[i].bufaddr, skb->len, ep 1320 drivers/net/ethernet/smsc/epic100.c struct epic_private *ep = netdev_priv(dev); ep 1321 drivers/net/ethernet/smsc/epic100.c void __iomem *ioaddr = ep->ioaddr; ep 1341 drivers/net/ethernet/smsc/epic100.c struct epic_private *ep = netdev_priv(dev); ep 1342 drivers/net/ethernet/smsc/epic100.c void __iomem *ioaddr = ep->ioaddr; ep 1370 drivers/net/ethernet/smsc/epic100.c if (memcmp(mc_filter, ep->mc_filter, sizeof(mc_filter))) { ep 1373 drivers/net/ethernet/smsc/epic100.c memcpy(ep->mc_filter, mc_filter, sizeof(mc_filter)); ep 1435 drivers/net/ethernet/smsc/epic100.c struct epic_private *ep = netdev_priv(dev); ep 1436 drivers/net/ethernet/smsc/epic100.c void __iomem *ioaddr = ep->ioaddr; ep 1448 drivers/net/ethernet/smsc/epic100.c struct epic_private *ep = netdev_priv(dev); ep 1449 drivers/net/ethernet/smsc/epic100.c void __iomem *ioaddr = ep->ioaddr; ep 1500 drivers/net/ethernet/smsc/epic100.c struct epic_private *ep = netdev_priv(dev); ep 1502 drivers/net/ethernet/smsc/epic100.c pci_free_consistent(pdev, TX_TOTAL_SIZE, ep->tx_ring, ep->tx_ring_dma); ep 1503 drivers/net/ethernet/smsc/epic100.c pci_free_consistent(pdev, RX_TOTAL_SIZE, ep->rx_ring, ep->rx_ring_dma); ep 1505 drivers/net/ethernet/smsc/epic100.c pci_iounmap(pdev, ep->ioaddr); ep 1518 drivers/net/ethernet/smsc/epic100.c struct epic_private *ep = netdev_priv(dev); ep 1519 drivers/net/ethernet/smsc/epic100.c void __iomem *ioaddr = ep->ioaddr; ep 422 drivers/net/ethernet/stmicro/stmmac/enh_desc.c struct dma_extended_desc *ep = (struct dma_extended_desc *)head; ep 430 drivers/net/ethernet/stmicro/stmmac/enh_desc.c x = *(u64 *)ep; ep 432 drivers/net/ethernet/stmicro/stmmac/enh_desc.c i, (unsigned int)virt_to_phys(ep), ep 434 drivers/net/ethernet/stmicro/stmmac/enh_desc.c ep->basic.des2, ep->basic.des3); ep 435 drivers/net/ethernet/stmicro/stmmac/enh_desc.c ep++; ep 4040 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c struct dma_extended_desc *ep = (struct dma_extended_desc *)head; ep 4046 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c i, (unsigned int)virt_to_phys(ep), ep 4047 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c le32_to_cpu(ep->basic.des0), ep 4048 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c le32_to_cpu(ep->basic.des1), ep 4049 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c le32_to_cpu(ep->basic.des2), ep 4050 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c le32_to_cpu(ep->basic.des3)); ep 4051 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c ep++; ep 683 drivers/net/ethernet/sun/cassini.c const struct ethtool_link_ksettings *ep) ep 693 drivers/net/ethernet/sun/cassini.c if (!ep) ep 696 drivers/net/ethernet/sun/cassini.c if (ep->base.autoneg == AUTONEG_ENABLE) { ep 699 drivers/net/ethernet/sun/cassini.c u32 speed = ep->base.speed; ep 705 drivers/net/ethernet/sun/cassini.c if (ep->base.duplex == DUPLEX_FULL) ep 1257 drivers/net/ethernet/sun/sungem.c const struct ethtool_link_ksettings *ep) ep 1265 drivers/net/ethernet/sun/sungem.c if (ep) ep 1267 drivers/net/ethernet/sun/sungem.c &advertising, ep->link_modes.advertising); ep 1288 drivers/net/ethernet/sun/sungem.c if (!ep) ep 1290 drivers/net/ethernet/sun/sungem.c if (ep->base.autoneg == AUTONEG_ENABLE) { ep 1295 drivers/net/ethernet/sun/sungem.c speed = ep->base.speed; ep 1296 drivers/net/ethernet/sun/sungem.c duplex = ep->base.duplex; ep 1301 drivers/net/ethernet/sun/sunhme.c const struct ethtool_link_ksettings *ep) ep 1314 drivers/net/ethernet/sun/sunhme.c if (!ep || ep->base.autoneg == AUTONEG_ENABLE) { ep 1389 drivers/net/ethernet/sun/sunhme.c if (!ep || ep->base.autoneg == AUTONEG_ENABLE) { ep 1392 drivers/net/ethernet/sun/sunhme.c if (ep->base.speed == SPEED_100) ep 1396 drivers/net/ethernet/sun/sunhme.c if (ep->base.duplex == DUPLEX_FULL) ep 893 drivers/net/fddi/skfp/h/skfbi.h #define INC_PTR(sp,cp,ep) if (++cp == ep) cp = sp ep 681 drivers/net/usb/cdc_ncm.c u8 ep; ep 683 drivers/net/usb/cdc_ncm.c for (ep = 0; ep < intf->cur_altsetting->desc.bNumEndpoints; ep++) { ep 684 drivers/net/usb/cdc_ncm.c e = intf->cur_altsetting->endpoint + ep; ep 2880 drivers/net/usb/lan78xx.c unsigned ep; ep 2887 drivers/net/usb/lan78xx.c for (ep = 0; ep < alt->desc.bNumEndpoints; ep++) { ep 2891 drivers/net/usb/lan78xx.c e = alt->endpoint + ep; ep 89 drivers/net/usb/usbnet.c unsigned ep; ep 98 drivers/net/usb/usbnet.c for (ep = 0; ep < alt->desc.bNumEndpoints; ep++) { ep 102 drivers/net/usb/usbnet.c e = alt->endpoint + ep; ep 914 drivers/net/wimax/i2400m/i2400m.h struct usb_endpoint_descriptor *usb_get_epd(struct usb_interface *iface, int ep) ep 916 drivers/net/wimax/i2400m/i2400m.h return &iface->cur_altsetting->endpoint[ep].desc; ep 50 drivers/net/wireless/ath/ath10k/htc.c void ath10k_htc_notify_tx_completion(struct ath10k_htc_ep *ep, ep 53 drivers/net/wireless/ath/ath10k/htc.c struct ath10k *ar = ep->htc->ar; ep 56 drivers/net/wireless/ath/ath10k/htc.c ep->eid, skb); ep 58 drivers/net/wireless/ath/ath10k/htc.c ath10k_htc_restore_tx_skb(ep->htc, skb); ep 60 drivers/net/wireless/ath/ath10k/htc.c if (!ep->ep_ops.ep_tx_complete) { ep 61 drivers/net/wireless/ath/ath10k/htc.c ath10k_warn(ar, "no tx handler for eid %d\n", ep->eid); ep 66 drivers/net/wireless/ath/ath10k/htc.c ep->ep_ops.ep_tx_complete(ep->htc->ar, skb); ep 70 drivers/net/wireless/ath/ath10k/htc.c static void ath10k_htc_prepare_tx_skb(struct ath10k_htc_ep *ep, ep 78 drivers/net/wireless/ath/ath10k/htc.c hdr->eid = ep->eid; ep 81 drivers/net/wireless/ath/ath10k/htc.c if (ep->tx_credit_flow_enabled) ep 84 drivers/net/wireless/ath/ath10k/htc.c spin_lock_bh(&ep->htc->tx_lock); ep 85 drivers/net/wireless/ath/ath10k/htc.c hdr->seq_no = ep->seq_no++; ep 86 drivers/net/wireless/ath/ath10k/htc.c spin_unlock_bh(&ep->htc->tx_lock); ep 94 drivers/net/wireless/ath/ath10k/htc.c struct ath10k_htc_ep *ep = &htc->endpoint[eid]; ep 111 drivers/net/wireless/ath/ath10k/htc.c if (ep->tx_credit_flow_enabled) { ep 114 drivers/net/wireless/ath/ath10k/htc.c if (ep->tx_credits < credits) { ep 117 drivers/net/wireless/ath/ath10k/htc.c eid, credits, ep->tx_credits); ep 122 drivers/net/wireless/ath/ath10k/htc.c ep->tx_credits -= credits; ep 125 drivers/net/wireless/ath/ath10k/htc.c eid, credits, ep->tx_credits); ep 129 drivers/net/wireless/ath/ath10k/htc.c ath10k_htc_prepare_tx_skb(ep, skb); ep 142 drivers/net/wireless/ath/ath10k/htc.c sg_item.transfer_id = ep->eid; ep 148 drivers/net/wireless/ath/ath10k/htc.c ret = ath10k_hif_tx_sg(htc->ar, ep->ul_pipe_id, &sg_item, 1); ep 158 drivers/net/wireless/ath/ath10k/htc.c if (ep->tx_credit_flow_enabled) { ep 160 drivers/net/wireless/ath/ath10k/htc.c ep->tx_credits += credits; ep 163 drivers/net/wireless/ath/ath10k/htc.c eid, credits, ep->tx_credits); ep 166 drivers/net/wireless/ath/ath10k/htc.c if (ep->ep_ops.ep_tx_credits) ep 167 drivers/net/wireless/ath/ath10k/htc.c ep->ep_ops.ep_tx_credits(htc->ar); ep 178 drivers/net/wireless/ath/ath10k/htc.c struct ath10k_htc_ep *ep; ep 184 drivers/net/wireless/ath/ath10k/htc.c ep = &htc->endpoint[skb_cb->eid]; ep 186 drivers/net/wireless/ath/ath10k/htc.c ath10k_htc_notify_tx_completion(ep, skb); ep 202 drivers/net/wireless/ath/ath10k/htc.c struct ath10k_htc_ep *ep; ep 215 drivers/net/wireless/ath/ath10k/htc.c ep = &htc->endpoint[report->eid]; ep 216 drivers/net/wireless/ath/ath10k/htc.c ep->tx_credits += report->credits; ep 219 drivers/net/wireless/ath/ath10k/htc.c report->eid, report->credits, ep->tx_credits); ep 221 drivers/net/wireless/ath/ath10k/htc.c if (ep->ep_ops.ep_tx_credits) { ep 223 drivers/net/wireless/ath/ath10k/htc.c ep->ep_ops.ep_tx_credits(htc->ar); ep 391 drivers/net/wireless/ath/ath10k/htc.c struct ath10k_htc_ep *ep; ep 410 drivers/net/wireless/ath/ath10k/htc.c ep = &htc->endpoint[eid]; ep 465 drivers/net/wireless/ath/ath10k/htc.c ep->ep_ops.ep_rx_complete(ar, skb); ep 556 drivers/net/wireless/ath/ath10k/htc.c struct ath10k_htc_ep *ep; ep 560 drivers/net/wireless/ath/ath10k/htc.c ep = &htc->endpoint[i]; ep 561 drivers/net/wireless/ath/ath10k/htc.c ep->service_id = ATH10K_HTC_SVC_ID_UNUSED; ep 562 drivers/net/wireless/ath/ath10k/htc.c ep->max_ep_message_len = 0; ep 563 drivers/net/wireless/ath/ath10k/htc.c ep->max_tx_queue_depth = 0; ep 564 drivers/net/wireless/ath/ath10k/htc.c ep->eid = i; ep 565 drivers/net/wireless/ath/ath10k/htc.c ep->htc = htc; ep 566 drivers/net/wireless/ath/ath10k/htc.c ep->tx_credit_flow_enabled = true; ep 673 drivers/net/wireless/ath/ath10k/htc.c struct ath10k_htc_ep *ep; ep 779 drivers/net/wireless/ath/ath10k/htc.c ep = &htc->endpoint[assigned_eid]; ep 780 drivers/net/wireless/ath/ath10k/htc.c ep->eid = assigned_eid; ep 782 drivers/net/wireless/ath/ath10k/htc.c if (ep->service_id != ATH10K_HTC_SVC_ID_UNUSED) ep 790 drivers/net/wireless/ath/ath10k/htc.c ep->service_id = conn_req->service_id; ep 791 drivers/net/wireless/ath/ath10k/htc.c ep->max_tx_queue_depth = conn_req->max_send_queue_depth; ep 792 drivers/net/wireless/ath/ath10k/htc.c ep->max_ep_message_len = __le16_to_cpu(resp_msg->max_msg_size); ep 793 drivers/net/wireless/ath/ath10k/htc.c ep->tx_credits = tx_alloc; ep 796 drivers/net/wireless/ath/ath10k/htc.c ep->ep_ops = conn_req->ep_ops; ep 799 drivers/net/wireless/ath/ath10k/htc.c ep->service_id, ep 800 drivers/net/wireless/ath/ath10k/htc.c &ep->ul_pipe_id, ep 801 drivers/net/wireless/ath/ath10k/htc.c &ep->dl_pipe_id); ep 804 drivers/net/wireless/ath/ath10k/htc.c ep->service_id); ep 810 drivers/net/wireless/ath/ath10k/htc.c htc_service_name(ep->service_id), ep->ul_pipe_id, ep 811 drivers/net/wireless/ath/ath10k/htc.c ep->dl_pipe_id, ep->eid); ep 813 drivers/net/wireless/ath/ath10k/htc.c if (disable_credit_flow_ctrl && ep->tx_credit_flow_enabled) { ep 814 drivers/net/wireless/ath/ath10k/htc.c ep->tx_credit_flow_enabled = false; ep 817 drivers/net/wireless/ath/ath10k/htc.c htc_service_name(ep->service_id), assigned_eid); ep 375 drivers/net/wireless/ath/ath10k/htc.h void ath10k_htc_notify_tx_completion(struct ath10k_htc_ep *ep, ep 419 drivers/net/wireless/ath/ath10k/sdio.c struct ath10k_htc_ep *ep; ep 439 drivers/net/wireless/ath/ath10k/sdio.c ep = &htc->endpoint[id]; ep 441 drivers/net/wireless/ath/ath10k/sdio.c if (ep->service_id == 0) { ep 466 drivers/net/wireless/ath/ath10k/sdio.c ep->ep_ops.ep_rx_complete(ar_sdio->ar, pkt->skb); ep 1276 drivers/net/wireless/ath/ath10k/sdio.c struct ath10k_htc_ep *ep; ep 1287 drivers/net/wireless/ath/ath10k/sdio.c ep = &ar->htc.endpoint[req->eid]; ep 1288 drivers/net/wireless/ath/ath10k/sdio.c ath10k_htc_notify_tx_completion(ep, skb); ep 1794 drivers/net/wireless/ath/ath10k/sdio.c struct ath10k_htc_ep *ep; ep 1799 drivers/net/wireless/ath/ath10k/sdio.c ep = &ar->htc.endpoint[req->eid]; ep 1800 drivers/net/wireless/ath/ath10k/sdio.c ath10k_htc_notify_tx_completion(ep, req->skb); ep 284 drivers/net/wireless/ath/ath10k/usb.c struct ath10k_htc_ep *ep; ep 287 drivers/net/wireless/ath/ath10k/usb.c ep = &ar->htc.endpoint[htc_hdr->eid]; ep 288 drivers/net/wireless/ath/ath10k/usb.c ath10k_htc_notify_tx_completion(ep, skb); ep 297 drivers/net/wireless/ath/ath10k/usb.c struct ath10k_htc_ep *ep; ep 304 drivers/net/wireless/ath/ath10k/usb.c ep = &ar->htc.endpoint[eid]; ep 306 drivers/net/wireless/ath/ath10k/usb.c if (ep->service_id == 0) { ep 345 drivers/net/wireless/ath/ath10k/usb.c ep->ep_ops.ep_rx_complete(ar, skb); ep 907 drivers/net/wireless/ath/ath5k/debug.c struct eeprom_private *ep; ep 950 drivers/net/wireless/ath/ath5k/debug.c ep = kmalloc(sizeof(*ep), GFP_KERNEL); ep 951 drivers/net/wireless/ath/ath5k/debug.c if (!ep) { ep 956 drivers/net/wireless/ath/ath5k/debug.c ep->buf = buf; ep 957 drivers/net/wireless/ath/ath5k/debug.c ep->len = eesize * 2; ep 959 drivers/net/wireless/ath/ath5k/debug.c file->private_data = (void *)ep; ep 973 drivers/net/wireless/ath/ath5k/debug.c struct eeprom_private *ep = file->private_data; ep 975 drivers/net/wireless/ath/ath5k/debug.c return simple_read_from_buffer(user_buf, count, ppos, ep->buf, ep->len); ep 980 drivers/net/wireless/ath/ath5k/debug.c struct eeprom_private *ep = file->private_data; ep 982 drivers/net/wireless/ath/ath5k/debug.c vfree(ep->buf); ep 983 drivers/net/wireless/ath/ath5k/debug.c kfree(ep); ep 547 drivers/net/wireless/ath/ath6kl/htc_mbox.c struct htc_endpoint *ep, u8 *flags, ep 555 drivers/net/wireless/ath/ath6kl/htc_mbox.c *req_cred, ep->cred_dist.credits); ep 557 drivers/net/wireless/ath/ath6kl/htc_mbox.c if (ep->cred_dist.credits < *req_cred) { ep 562 drivers/net/wireless/ath/ath6kl/htc_mbox.c ep->cred_dist.seek_cred = *req_cred - ep->cred_dist.credits; ep 564 drivers/net/wireless/ath/ath6kl/htc_mbox.c ath6kl_credit_seek(target->credit_info, &ep->cred_dist); ep 566 drivers/net/wireless/ath/ath6kl/htc_mbox.c ep->cred_dist.seek_cred = 0; ep 568 drivers/net/wireless/ath/ath6kl/htc_mbox.c if (ep->cred_dist.credits < *req_cred) { ep 576 drivers/net/wireless/ath/ath6kl/htc_mbox.c ep->cred_dist.credits -= *req_cred; ep 577 drivers/net/wireless/ath/ath6kl/htc_mbox.c ep->ep_st.cred_cosumd += *req_cred; ep 580 drivers/net/wireless/ath/ath6kl/htc_mbox.c if (ep->cred_dist.credits < ep->cred_dist.cred_per_msg) { ep 581 drivers/net/wireless/ath/ath6kl/htc_mbox.c ep->cred_dist.seek_cred = ep 582 drivers/net/wireless/ath/ath6kl/htc_mbox.c ep->cred_dist.cred_per_msg - ep->cred_dist.credits; ep 584 drivers/net/wireless/ath/ath6kl/htc_mbox.c ath6kl_credit_seek(target->credit_info, &ep->cred_dist); ep 587 drivers/net/wireless/ath/ath6kl/htc_mbox.c if (ep->cred_dist.credits < ep->cred_dist.cred_per_msg) { ep 590 drivers/net/wireless/ath/ath6kl/htc_mbox.c ep->ep_st.cred_low_indicate += 1; ep 649 drivers/net/wireless/ath/ath6kl/htc_mbox.c struct htc_endpoint *ep) ep 659 drivers/net/wireless/ath/ath6kl/htc_mbox.c if (!(ep->conn_flags & HTC_FLGS_TX_BNDL_PAD_EN)) ep 1098 drivers/net/wireless/ath/ath6kl/htc_mbox.c int i, ep; ep 1106 drivers/net/wireless/ath/ath6kl/htc_mbox.c for (ep = ENDPOINT_1; ep < ENDPOINT_MAX; ep++) { ep 1107 drivers/net/wireless/ath/ath6kl/htc_mbox.c endpoint = &target->endpoint[ep]; ep 1114 drivers/net/wireless/ath/ath6kl/htc_mbox.c if (ep >= ENDPOINT_MAX) { ep 1280 drivers/net/wireless/ath/ath6kl/htc_mbox.c struct htc_endpoint *ep) ep 1285 drivers/net/wireless/ath/ath6kl/htc_mbox.c ep->ep_cb.rx(ep->target, packet); ep 1367 drivers/net/wireless/ath/ath6kl/htc_mbox.c struct htc_endpoint *ep, ep 1381 drivers/net/wireless/ath/ath6kl/htc_mbox.c if (!htc_valid_rx_frame_len(target, ep->eid, full_len)) { ep 1388 drivers/net/wireless/ath/ath6kl/htc_mbox.c ep_cb = ep->ep_cb; ep 1399 drivers/net/wireless/ath/ath6kl/htc_mbox.c ep->ep_st.rx_alloc_thresh_hit += 1; ep 1400 drivers/net/wireless/ath/ath6kl/htc_mbox.c ep->ep_st.rxalloc_thresh_byte += ep 1406 drivers/net/wireless/ath/ath6kl/htc_mbox.c packet = ep_cb.rx_allocthresh(ep->target, ep->eid, ep 1411 drivers/net/wireless/ath/ath6kl/htc_mbox.c if (list_empty(&ep->rx_bufq)) { ep 1414 drivers/net/wireless/ath/ath6kl/htc_mbox.c ep_cb.rx_refill(ep->target, ep->eid); ep 1419 drivers/net/wireless/ath/ath6kl/htc_mbox.c if (list_empty(&ep->rx_bufq)) { ep 1422 drivers/net/wireless/ath/ath6kl/htc_mbox.c packet = list_first_entry(&ep->rx_bufq, ep 1430 drivers/net/wireless/ath/ath6kl/htc_mbox.c target->ep_waiting = ep->eid; ep 2009 drivers/net/wireless/ath/ath6kl/htc_mbox.c struct htc_endpoint *ep; ep 2013 drivers/net/wireless/ath/ath6kl/htc_mbox.c ep = &target->endpoint[packet->endpoint]; ep 2033 drivers/net/wireless/ath/ath6kl/htc_mbox.c ep, packet); ep 2042 drivers/net/wireless/ath/ath6kl/htc_mbox.c ath6kl_htc_rx_update_stats(ep, *n_lk_ahd); ep 2045 drivers/net/wireless/ath/ath6kl/htc_mbox.c ep->ep_st.rx_bundl += 1; ep 2047 drivers/net/wireless/ath/ath6kl/htc_mbox.c ath6kl_htc_rx_complete(ep, packet); ep 37 drivers/net/wireless/ath/ath6kl/htc_pipe.c static void do_send_completion(struct htc_endpoint *ep, ep 47 drivers/net/wireless/ath/ath6kl/htc_pipe.c if (ep->ep_cb.tx_comp_multi != NULL) { ep 50 drivers/net/wireless/ath/ath6kl/htc_pipe.c __func__, ep->eid, ep 56 drivers/net/wireless/ath/ath6kl/htc_pipe.c ep->ep_cb.tx_comp_multi(ep->target, queue_to_indicate); ep 71 drivers/net/wireless/ath/ath6kl/htc_pipe.c __func__, ep->eid, packet); ep 72 drivers/net/wireless/ath/ath6kl/htc_pipe.c ep->ep_cb.tx_complete(ep->target, packet); ep 80 drivers/net/wireless/ath/ath6kl/htc_pipe.c struct htc_endpoint *ep = &target->endpoint[packet->endpoint]; ep 88 drivers/net/wireless/ath/ath6kl/htc_pipe.c do_send_completion(ep, &container); ep 92 drivers/net/wireless/ath/ath6kl/htc_pipe.c struct htc_endpoint *ep, ep 106 drivers/net/wireless/ath/ath6kl/htc_pipe.c if (list_empty(&ep->txq)) ep 110 drivers/net/wireless/ath/ath6kl/htc_pipe.c packet = list_first_entry(&ep->txq, struct htc_packet, list); ep 114 drivers/net/wireless/ath/ath6kl/htc_pipe.c __func__, packet, get_queue_depth(&ep->txq)); ep 130 drivers/net/wireless/ath/ath6kl/htc_pipe.c __func__, credits_required, ep->cred_dist.credits); ep 132 drivers/net/wireless/ath/ath6kl/htc_pipe.c if (ep->eid == ENDPOINT_0) { ep 140 drivers/net/wireless/ath/ath6kl/htc_pipe.c if (ep->cred_dist.credits < credits_required) ep 143 drivers/net/wireless/ath/ath6kl/htc_pipe.c ep->cred_dist.credits -= credits_required; ep 144 drivers/net/wireless/ath/ath6kl/htc_pipe.c ep->ep_st.cred_cosumd += credits_required; ep 147 drivers/net/wireless/ath/ath6kl/htc_pipe.c if (ep->cred_dist.credits < ep 148 drivers/net/wireless/ath/ath6kl/htc_pipe.c ep->cred_dist.cred_per_msg) { ep 151 drivers/net/wireless/ath/ath6kl/htc_pipe.c ep->ep_st.cred_low_indicate += 1; ep 159 drivers/net/wireless/ath/ath6kl/htc_pipe.c packet = list_first_entry(&ep->txq, struct htc_packet, list); ep 166 drivers/net/wireless/ath/ath6kl/htc_pipe.c packet->info.tx.seqno = ep->seqno; ep 167 drivers/net/wireless/ath/ath6kl/htc_pipe.c ep->seqno++; ep 174 drivers/net/wireless/ath/ath6kl/htc_pipe.c struct htc_endpoint *ep, ep 183 drivers/net/wireless/ath/ath6kl/htc_pipe.c if (list_empty(&ep->txq)) ep 186 drivers/net/wireless/ath/ath6kl/htc_pipe.c packet = list_first_entry(&ep->txq, struct htc_packet, list); ep 191 drivers/net/wireless/ath/ath6kl/htc_pipe.c __func__, packet, get_queue_depth(&ep->txq)); ep 192 drivers/net/wireless/ath/ath6kl/htc_pipe.c packet->info.tx.seqno = ep->seqno; ep 195 drivers/net/wireless/ath/ath6kl/htc_pipe.c ep->seqno++; ep 204 drivers/net/wireless/ath/ath6kl/htc_pipe.c struct htc_endpoint *ep, ep 250 drivers/net/wireless/ath/ath6kl/htc_pipe.c list_add_tail(&packet->list, &ep->pipe.tx_lookup_queue); ep 251 drivers/net/wireless/ath/ath6kl/htc_pipe.c ep->ep_st.tx_issued += 1; ep 255 drivers/net/wireless/ath/ath6kl/htc_pipe.c ep->pipe.pipeid_ul, NULL, skb); ep 272 drivers/net/wireless/ath/ath6kl/htc_pipe.c ep->cred_dist.credits += packet->info.tx.cred_used; ep 301 drivers/net/wireless/ath/ath6kl/htc_pipe.c struct htc_endpoint *ep, ep 330 drivers/net/wireless/ath/ath6kl/htc_pipe.c txqueue_depth = get_queue_depth(&ep->txq); ep 333 drivers/net/wireless/ath/ath6kl/htc_pipe.c if (txqueue_depth >= ep->max_txq_depth) { ep 341 drivers/net/wireless/ath/ath6kl/htc_pipe.c overflow -= ep->max_txq_depth; ep 348 drivers/net/wireless/ath/ath6kl/htc_pipe.c __func__, ep->eid, overflow, txqueue_depth, ep 349 drivers/net/wireless/ath/ath6kl/htc_pipe.c ep->max_txq_depth); ep 352 drivers/net/wireless/ath/ath6kl/htc_pipe.c (ep->ep_cb.tx_full == NULL)) { ep 387 drivers/net/wireless/ath/ath6kl/htc_pipe.c action = ep->ep_cb.tx_full(ep->target, packet); ep 390 drivers/net/wireless/ath/ath6kl/htc_pipe.c ep->ep_st.tx_dropped += 1; ep 410 drivers/net/wireless/ath/ath6kl/htc_pipe.c if (!ep->pipe.tx_credit_flow_enabled) { ep 413 drivers/net/wireless/ath/ath6kl/htc_pipe.c ep->pipe.pipeid_ul); ep 421 drivers/net/wireless/ath/ath6kl/htc_pipe.c list_splice_tail_init(&send_queue, &ep->txq); ep 431 drivers/net/wireless/ath/ath6kl/htc_pipe.c ep->tx_proc_cnt++; ep 433 drivers/net/wireless/ath/ath6kl/htc_pipe.c if (ep->tx_proc_cnt > 1) { ep 439 drivers/net/wireless/ath/ath6kl/htc_pipe.c ep->tx_proc_cnt--; ep 451 drivers/net/wireless/ath/ath6kl/htc_pipe.c if (get_queue_depth(&ep->txq) == 0) ep 454 drivers/net/wireless/ath/ath6kl/htc_pipe.c if (ep->pipe.tx_credit_flow_enabled) { ep 462 drivers/net/wireless/ath/ath6kl/htc_pipe.c get_htc_packet_credit_based(target, ep, &send_queue); ep 468 drivers/net/wireless/ath/ath6kl/htc_pipe.c get_htc_packet(target, ep, &send_queue, tx_resources); ep 482 drivers/net/wireless/ath/ath6kl/htc_pipe.c htc_issue_packets(target, ep, &send_queue); ep 484 drivers/net/wireless/ath/ath6kl/htc_pipe.c if (!ep->pipe.tx_credit_flow_enabled) { ep 485 drivers/net/wireless/ath/ath6kl/htc_pipe.c pipeid = ep->pipe.pipeid_ul; ep 494 drivers/net/wireless/ath/ath6kl/htc_pipe.c ep->tx_proc_cnt = 0; ep 660 drivers/net/wireless/ath/ath6kl/htc_pipe.c struct htc_endpoint *ep; ep 672 drivers/net/wireless/ath/ath6kl/htc_pipe.c ep = &target->endpoint[rpt->eid]; ep 673 drivers/net/wireless/ath/ath6kl/htc_pipe.c ep->cred_dist.credits += rpt->credits; ep 675 drivers/net/wireless/ath/ath6kl/htc_pipe.c if (ep->cred_dist.credits && get_queue_depth(&ep->txq)) { ep 677 drivers/net/wireless/ath/ath6kl/htc_pipe.c htc_try_send(target, ep, NULL); ep 692 drivers/net/wireless/ath/ath6kl/htc_pipe.c struct htc_endpoint *ep, u16 tag) ep 697 drivers/net/wireless/ath/ath6kl/htc_pipe.c while (get_queue_depth(&ep->txq)) { ep 698 drivers/net/wireless/ath/ath6kl/htc_pipe.c packet = list_first_entry(&ep->txq, struct htc_packet, list); ep 714 drivers/net/wireless/ath/ath6kl/htc_pipe.c struct htc_endpoint *ep, ep 726 drivers/net/wireless/ath/ath6kl/htc_pipe.c list_for_each_entry_safe(packet, tmp_pkt, &ep->pipe.tx_lookup_queue, ep 746 drivers/net/wireless/ath/ath6kl/htc_pipe.c struct htc_endpoint *ep; ep 755 drivers/net/wireless/ath/ath6kl/htc_pipe.c ep = &target->endpoint[ep_id]; ep 757 drivers/net/wireless/ath/ath6kl/htc_pipe.c packet = htc_lookup_tx_packet(target, ep, skb); ep 768 drivers/net/wireless/ath/ath6kl/htc_pipe.c if (!ep->pipe.tx_credit_flow_enabled) { ep 774 drivers/net/wireless/ath/ath6kl/htc_pipe.c htc_try_send(target, ep, NULL); ep 783 drivers/net/wireless/ath/ath6kl/htc_pipe.c struct htc_endpoint *ep; ep 796 drivers/net/wireless/ath/ath6kl/htc_pipe.c ep = &target->endpoint[packet->endpoint]; ep 798 drivers/net/wireless/ath/ath6kl/htc_pipe.c htc_try_send(target, ep, pkt_queue); ep 806 drivers/net/wireless/ath/ath6kl/htc_pipe.c do_send_completion(ep, pkt_queue); ep 909 drivers/net/wireless/ath/ath6kl/htc_pipe.c static void do_recv_completion(struct htc_endpoint *ep, ep 924 drivers/net/wireless/ath/ath6kl/htc_pipe.c ep->ep_cb.rx(ep->target, packet); ep 931 drivers/net/wireless/ath/ath6kl/htc_pipe.c struct htc_endpoint *ep, ep 939 drivers/net/wireless/ath/ath6kl/htc_pipe.c do_recv_completion(ep, &container); ep 950 drivers/net/wireless/ath/ath6kl/htc_pipe.c struct htc_endpoint *ep; ep 982 drivers/net/wireless/ath/ath6kl/htc_pipe.c ep = &target->endpoint[htc_hdr->eid]; ep 1083 drivers/net/wireless/ath/ath6kl/htc_pipe.c recv_packet_completion(target, ep, packet); ep 1096 drivers/net/wireless/ath/ath6kl/htc_pipe.c struct htc_endpoint *ep) ep 1104 drivers/net/wireless/ath/ath6kl/htc_pipe.c if (list_empty(&ep->rx_bufq)) ep 1107 drivers/net/wireless/ath/ath6kl/htc_pipe.c packet = list_first_entry(&ep->rx_bufq, ep 1124 drivers/net/wireless/ath/ath6kl/htc_pipe.c do_recv_completion(ep, &container); ep 1174 drivers/net/wireless/ath/ath6kl/htc_pipe.c struct htc_endpoint *ep; ep 1178 drivers/net/wireless/ath/ath6kl/htc_pipe.c ep = &target->endpoint[i]; ep 1179 drivers/net/wireless/ath/ath6kl/htc_pipe.c ep->svc_id = 0; ep 1180 drivers/net/wireless/ath/ath6kl/htc_pipe.c ep->len_max = 0; ep 1181 drivers/net/wireless/ath/ath6kl/htc_pipe.c ep->max_txq_depth = 0; ep 1182 drivers/net/wireless/ath/ath6kl/htc_pipe.c ep->eid = i; ep 1183 drivers/net/wireless/ath/ath6kl/htc_pipe.c INIT_LIST_HEAD(&ep->txq); ep 1184 drivers/net/wireless/ath/ath6kl/htc_pipe.c INIT_LIST_HEAD(&ep->pipe.tx_lookup_queue); ep 1185 drivers/net/wireless/ath/ath6kl/htc_pipe.c INIT_LIST_HEAD(&ep->rx_bufq); ep 1186 drivers/net/wireless/ath/ath6kl/htc_pipe.c ep->target = target; ep 1187 drivers/net/wireless/ath/ath6kl/htc_pipe.c ep->pipe.tx_credit_flow_enabled = true; ep 1229 drivers/net/wireless/ath/ath6kl/htc_pipe.c struct htc_endpoint *ep; ep 1352 drivers/net/wireless/ath/ath6kl/htc_pipe.c ep = &target->endpoint[assigned_epid]; ep 1353 drivers/net/wireless/ath/ath6kl/htc_pipe.c ep->eid = assigned_epid; ep 1354 drivers/net/wireless/ath/ath6kl/htc_pipe.c if (ep->svc_id != 0) { ep 1365 drivers/net/wireless/ath/ath6kl/htc_pipe.c ep->svc_id = conn_req->svc_id; /* this marks ep in use */ ep 1366 drivers/net/wireless/ath/ath6kl/htc_pipe.c ep->max_txq_depth = conn_req->max_txq_depth; ep 1367 drivers/net/wireless/ath/ath6kl/htc_pipe.c ep->len_max = max_msg_size; ep 1368 drivers/net/wireless/ath/ath6kl/htc_pipe.c ep->cred_dist.credits = tx_alloc; ep 1369 drivers/net/wireless/ath/ath6kl/htc_pipe.c ep->cred_dist.cred_sz = target->tgt_cred_sz; ep 1370 drivers/net/wireless/ath/ath6kl/htc_pipe.c ep->cred_dist.cred_per_msg = max_msg_size / target->tgt_cred_sz; ep 1372 drivers/net/wireless/ath/ath6kl/htc_pipe.c ep->cred_dist.cred_per_msg++; ep 1375 drivers/net/wireless/ath/ath6kl/htc_pipe.c ep->ep_cb = conn_req->ep_cb; ep 1378 drivers/net/wireless/ath/ath6kl/htc_pipe.c ep->tx_drop_packet_threshold = MAX_HI_COOKIE_NUM; ep 1380 drivers/net/wireless/ath/ath6kl/htc_pipe.c status = ath6kl_hif_pipe_map_service(ar, ep->svc_id, ep 1381 drivers/net/wireless/ath/ath6kl/htc_pipe.c &ep->pipe.pipeid_ul, ep 1382 drivers/net/wireless/ath/ath6kl/htc_pipe.c &ep->pipe.pipeid_dl); ep 1388 drivers/net/wireless/ath/ath6kl/htc_pipe.c ep->svc_id, ep->pipe.pipeid_ul, ep 1389 drivers/net/wireless/ath/ath6kl/htc_pipe.c ep->pipe.pipeid_dl, ep->eid); ep 1391 drivers/net/wireless/ath/ath6kl/htc_pipe.c if (disable_credit_flowctrl && ep->pipe.tx_credit_flow_enabled) { ep 1392 drivers/net/wireless/ath/ath6kl/htc_pipe.c ep->pipe.tx_credit_flow_enabled = false; ep 1395 drivers/net/wireless/ath/ath6kl/htc_pipe.c ep->svc_id, assigned_epid); ep 1408 drivers/net/wireless/ath/ath6kl/htc_pipe.c struct htc_endpoint *ep = NULL; ep 1443 drivers/net/wireless/ath/ath6kl/htc_pipe.c ep = &target->endpoint[ENDPOINT_0]; ep 1445 drivers/net/wireless/ath/ath6kl/htc_pipe.c ath6kl_hif_pipe_get_default(ar, &ep->pipe.pipeid_ul, ep 1446 drivers/net/wireless/ath/ath6kl/htc_pipe.c &ep->pipe.pipeid_dl); ep 1514 drivers/net/wireless/ath/ath6kl/htc_pipe.c struct htc_endpoint *ep; ep 1518 drivers/net/wireless/ath/ath6kl/htc_pipe.c ep = &target->endpoint[i]; ep 1519 drivers/net/wireless/ath/ath6kl/htc_pipe.c htc_flush_rx_queue(target, ep); ep 1520 drivers/net/wireless/ath/ath6kl/htc_pipe.c htc_flush_tx_endpoint(target, ep, HTC_TX_PACKET_TAG_ALL); ep 1611 drivers/net/wireless/ath/ath6kl/htc_pipe.c struct htc_endpoint *ep = &target->endpoint[endpoint]; ep 1613 drivers/net/wireless/ath/ath6kl/htc_pipe.c if (ep->svc_id == 0) { ep 1619 drivers/net/wireless/ath/ath6kl/htc_pipe.c htc_flush_tx_endpoint(target, ep, tag); ep 1626 drivers/net/wireless/ath/ath6kl/htc_pipe.c struct htc_endpoint *ep; ep 1643 drivers/net/wireless/ath/ath6kl/htc_pipe.c ep = &target->endpoint[first->endpoint]; ep 1648 drivers/net/wireless/ath/ath6kl/htc_pipe.c list_splice_tail_init(pkt_queue, &ep->rx_bufq); ep 1658 drivers/net/wireless/ath/ath6kl/htc_pipe.c do_recv_completion(ep, pkt_queue); ep 1665 drivers/net/wireless/ath/ath6kl/htc_pipe.c enum htc_endpoint_id ep, ep 275 drivers/net/wireless/ath/ath6kl/init.c enum htc_endpoint_id ep) ep 277 drivers/net/wireless/ath/ath6kl/init.c ar->ac2ep_map[ac] = ep; ep 278 drivers/net/wireless/ath/ath6kl/init.c ar->ep2ac_map[ep] = ac; ep 1039 drivers/net/wireless/ath/carl9170/usb.c struct usb_endpoint_descriptor *ep; ep 1064 drivers/net/wireless/ath/carl9170/usb.c ep = &intf->cur_altsetting->endpoint[i].desc; ep 1066 drivers/net/wireless/ath/carl9170/usb.c if (usb_endpoint_num(ep) == AR9170_USB_EP_CMD && ep 1067 drivers/net/wireless/ath/carl9170/usb.c usb_endpoint_dir_out(ep) && ep 1068 drivers/net/wireless/ath/carl9170/usb.c usb_endpoint_type(ep) == USB_ENDPOINT_XFER_BULK) ep 1318 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c u8 endpoint_num, ep; ep 1364 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c for (ep = 0; ep < num_of_eps; ep++) { ep 1365 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c endpoint = &intf->cur_altsetting->endpoint[ep].desc; ep 1578 drivers/net/wireless/intersil/orinoco/orinoco_usb.c struct usb_endpoint_descriptor *ep; ep 1614 drivers/net/wireless/intersil/orinoco/orinoco_usb.c ep = &interface->cur_altsetting->endpoint[i].desc; ep 1616 drivers/net/wireless/intersil/orinoco/orinoco_usb.c if (usb_endpoint_is_bulk_in(ep)) { ep 1626 drivers/net/wireless/intersil/orinoco/orinoco_usb.c if (le16_to_cpu(ep->wMaxPacketSize) != 64) ep 1628 drivers/net/wireless/intersil/orinoco/orinoco_usb.c if (ep->bEndpointAddress != (2 | USB_DIR_IN)) ep 1630 drivers/net/wireless/intersil/orinoco/orinoco_usb.c ep->bEndpointAddress); ep 1632 drivers/net/wireless/intersil/orinoco/orinoco_usb.c ep-> ep 1642 drivers/net/wireless/intersil/orinoco/orinoco_usb.c if (usb_endpoint_is_bulk_out(ep)) { ep 1649 drivers/net/wireless/intersil/orinoco/orinoco_usb.c if (le16_to_cpu(ep->wMaxPacketSize) != 64) ep 1651 drivers/net/wireless/intersil/orinoco/orinoco_usb.c if (ep->bEndpointAddress != 2) ep 1653 drivers/net/wireless/intersil/orinoco/orinoco_usb.c ep->bEndpointAddress); ep 1655 drivers/net/wireless/intersil/orinoco/orinoco_usb.c ep-> ep 397 drivers/net/wireless/intersil/p54/p54usb.c unsigned int ep; ep 401 drivers/net/wireless/intersil/p54/p54usb.c ep = usb_sndbulkpipe(priv->udev, P54U_PIPE_DEV); ep 403 drivers/net/wireless/intersil/p54/p54usb.c ep = usb_sndbulkpipe(priv->udev, P54U_PIPE_BRG); ep 409 drivers/net/wireless/intersil/p54/p54usb.c return usb_bulk_msg(priv->udev, ep, buf, sizeof(*buf), &alen, 1000); ep 418 drivers/net/wireless/intersil/p54/p54usb.c unsigned int ep; ep 422 drivers/net/wireless/intersil/p54/p54usb.c ep = P54U_PIPE_DEV; ep 424 drivers/net/wireless/intersil/p54/p54usb.c ep = P54U_PIPE_BRG; ep 429 drivers/net/wireless/intersil/p54/p54usb.c err = usb_bulk_msg(priv->udev, usb_sndbulkpipe(priv->udev, ep), ep 434 drivers/net/wireless/intersil/p54/p54usb.c err = usb_bulk_msg(priv->udev, usb_rcvbulkpipe(priv->udev, ep), ep 443 drivers/net/wireless/intersil/p54/p54usb.c static int p54u_bulk_msg(struct p54u_priv *priv, unsigned int ep, ep 447 drivers/net/wireless/intersil/p54/p54usb.c return usb_bulk_msg(priv->udev, usb_sndbulkpipe(priv->udev, ep), ep 468 drivers/net/wireless/marvell/mwifiex/sta_event.c u8 ep; ep 470 drivers/net/wireless/marvell/mwifiex/sta_event.c ep = grp_info->hid_num.usb_ep_num; ep 471 drivers/net/wireless/marvell/mwifiex/sta_event.c if (ep == MWIFIEX_USB_EP_DATA || ep 472 drivers/net/wireless/marvell/mwifiex/sta_event.c ep == MWIFIEX_USB_EP_DATA_CH2) ep 473 drivers/net/wireless/marvell/mwifiex/sta_event.c intf_priv->usb_port = ep; ep 59 drivers/net/wireless/marvell/mwifiex/usb.c struct sk_buff *skb, u8 ep) ep 74 drivers/net/wireless/marvell/mwifiex/usb.c switch (ep) { ep 150 drivers/net/wireless/marvell/mwifiex/usb.c "%s: unknown endport %#x\n", __func__, ep); ep 178 drivers/net/wireless/marvell/mwifiex/usb.c if (card->rx_cmd_ep == context->ep) ep 189 drivers/net/wireless/marvell/mwifiex/usb.c if (card->rx_cmd_ep != context->ep) ep 198 drivers/net/wireless/marvell/mwifiex/usb.c status = mwifiex_usb_recv(adapter, skb, context->ep); ep 210 drivers/net/wireless/marvell/mwifiex/usb.c if (card->rx_cmd_ep == context->ep) ep 218 drivers/net/wireless/marvell/mwifiex/usb.c if (card->rx_cmd_ep != context->ep) ep 231 drivers/net/wireless/marvell/mwifiex/usb.c if (card->rx_cmd_ep != context->ep) ep 238 drivers/net/wireless/marvell/mwifiex/usb.c if (card->rx_cmd_ep == context->ep) ep 243 drivers/net/wireless/marvell/mwifiex/usb.c if (card->rx_cmd_ep == context->ep) { ep 267 drivers/net/wireless/marvell/mwifiex/usb.c if (context->ep == card->tx_cmd_ep) { ep 279 drivers/net/wireless/marvell/mwifiex/usb.c if (context->ep == port->tx_data_ep) { ep 302 drivers/net/wireless/marvell/mwifiex/usb.c if (card->rx_cmd_ep == ctx->ep) { ep 310 drivers/net/wireless/marvell/mwifiex/usb.c __func__, ctx->ep); ep 314 drivers/net/wireless/marvell/mwifiex/usb.c if (card->rx_cmd_ep != ctx->ep) { ep 323 drivers/net/wireless/marvell/mwifiex/usb.c if (card->rx_cmd_ep == ctx->ep && ep 326 drivers/net/wireless/marvell/mwifiex/usb.c usb_rcvintpipe(card->udev, ctx->ep), ep 331 drivers/net/wireless/marvell/mwifiex/usb.c usb_rcvbulkpipe(card->udev, ctx->ep), ep 335 drivers/net/wireless/marvell/mwifiex/usb.c if (card->rx_cmd_ep == ctx->ep) ep 345 drivers/net/wireless/marvell/mwifiex/usb.c if (card->rx_cmd_ep == ctx->ep) ep 691 drivers/net/wireless/marvell/mwifiex/usb.c u32 *len, u8 ep, u32 timeout) ep 700 drivers/net/wireless/marvell/mwifiex/usb.c ret = usb_bulk_msg(card->udev, usb_sndbulkpipe(card->udev, ep), pbuf, ep 714 drivers/net/wireless/marvell/mwifiex/usb.c u32 *len, u8 ep, u32 timeout) ep 720 drivers/net/wireless/marvell/mwifiex/usb.c ret = usb_bulk_msg(card->udev, usb_rcvbulkpipe(card->udev, ep), pbuf, ep 806 drivers/net/wireless/marvell/mwifiex/usb.c struct usb_tx_data_port *port, u8 ep, ep 815 drivers/net/wireless/marvell/mwifiex/usb.c context->ep = ep; ep 819 drivers/net/wireless/marvell/mwifiex/usb.c if (ep == card->tx_cmd_ep && ep 822 drivers/net/wireless/marvell/mwifiex/usb.c usb_sndintpipe(card->udev, ep), skb_send->data, ep 827 drivers/net/wireless/marvell/mwifiex/usb.c usb_sndbulkpipe(card->udev, ep), ep 833 drivers/net/wireless/marvell/mwifiex/usb.c if (ep == card->tx_cmd_ep) ep 838 drivers/net/wireless/marvell/mwifiex/usb.c if (ep != card->tx_cmd_ep && ep 849 drivers/net/wireless/marvell/mwifiex/usb.c if (ep == card->tx_cmd_ep) { ep 951 drivers/net/wireless/marvell/mwifiex/usb.c static int mwifiex_usb_aggr_tx_data(struct mwifiex_adapter *adapter, u8 ep, ep 1070 drivers/net/wireless/marvell/mwifiex/usb.c ret = mwifiex_usb_construct_send_urb(adapter, port, ep, ep 1100 drivers/net/wireless/marvell/mwifiex/usb.c return mwifiex_usb_construct_send_urb(adapter, port, ep, ep 1164 drivers/net/wireless/marvell/mwifiex/usb.c static int mwifiex_usb_host_to_card(struct mwifiex_adapter *adapter, u8 ep, ep 1184 drivers/net/wireless/marvell/mwifiex/usb.c mwifiex_dbg(adapter, INFO, "%s: ep=%d\n", __func__, ep); ep 1186 drivers/net/wireless/marvell/mwifiex/usb.c if (ep == card->tx_cmd_ep) { ep 1191 drivers/net/wireless/marvell/mwifiex/usb.c if (ep == card->port[idx].tx_data_ep) { ep 1213 drivers/net/wireless/marvell/mwifiex/usb.c ret = mwifiex_usb_aggr_tx_data(adapter, ep, skb, ep 1222 drivers/net/wireless/marvell/mwifiex/usb.c return mwifiex_usb_construct_send_urb(adapter, port, ep, context, skb); ep 1232 drivers/net/wireless/marvell/mwifiex/usb.c card->tx_cmd.ep = card->tx_cmd_ep; ep 1250 drivers/net/wireless/marvell/mwifiex/usb.c port->tx_data_list[j].ep = port->tx_data_ep; ep 1274 drivers/net/wireless/marvell/mwifiex/usb.c card->rx_cmd.ep = card->rx_cmd_ep; ep 1289 drivers/net/wireless/marvell/mwifiex/usb.c card->rx_data_list[i].ep = card->rx_data_ep; ep 1533 drivers/net/wireless/marvell/mwifiex/usb.c static void mwifiex_submit_rx_urb(struct mwifiex_adapter *adapter, u8 ep) ep 1538 drivers/net/wireless/marvell/mwifiex/usb.c if ((ep == card->rx_cmd_ep) && ep 64 drivers/net/wireless/marvell/mwifiex/usb.h u8 ep; ep 69 drivers/net/wireless/mediatek/mt76/mt76x02_usb_core.c int pid, len = tx_info->skb->len, ep = q2ep(mdev->q_tx[qid].q->hw_idx); ep 90 drivers/net/wireless/mediatek/mt76/mt76x02_usb_core.c if ((mt76_is_skb_pktid(pid) && ampdu) || ep == MT_EP_OUT_HCCA) ep 296 drivers/net/wireless/mediatek/mt7601u/dma.c struct sk_buff *skb, u8 ep) ep 299 drivers/net/wireless/mediatek/mt7601u/dma.c unsigned snd_pipe = usb_sndbulkpipe(usb_dev, dev->out_eps[ep]); ep 301 drivers/net/wireless/mediatek/mt7601u/dma.c struct mt7601u_tx_queue *q = &dev->tx_q[ep]; ep 348 drivers/net/wireless/mediatek/mt7601u/dma.c static enum mt76_qsel ep2dmaq(u8 ep) ep 350 drivers/net/wireless/mediatek/mt7601u/dma.c if (ep == 5) ep 358 drivers/net/wireless/mediatek/mt7601u/dma.c u8 ep = q2ep(hw_q); ep 366 drivers/net/wireless/mediatek/mt7601u/dma.c ret = mt7601u_dma_skb_wrap_pkt(skb, ep2dmaq(ep), dma_flags); ep 370 drivers/net/wireless/mediatek/mt7601u/dma.c ret = mt7601u_dma_submit_tx(dev, skb, ep); ep 234 drivers/net/wireless/realtek/rtl818x/rtl8187/dev.c unsigned int ep; ep 285 drivers/net/wireless/realtek/rtl818x/rtl8187/dev.c ep = 2; ep 305 drivers/net/wireless/realtek/rtl818x/rtl8187/dev.c ep = 12; ep 307 drivers/net/wireless/realtek/rtl818x/rtl8187/dev.c ep = epmap[skb_get_queue_mapping(skb)]; ep 313 drivers/net/wireless/realtek/rtl818x/rtl8187/dev.c usb_fill_bulk_urb(urb, priv->udev, usb_sndbulkpipe(priv->udev, ep), ep 53 drivers/net/wireless/rsi/rsi_91x_usb.c int ep = dev->bulkout_endpoint_addr[endpoint - 1]; ep 60 drivers/net/wireless/rsi/rsi_91x_usb.c usb_sndbulkpipe(dev->usbdev, ep), ep 1582 drivers/net/wireless/zydas/zd1211rw/zd_usb.c struct usb_host_endpoint *ep; ep 1586 drivers/net/wireless/zydas/zd1211rw/zd_usb.c ep = usb_pipe_endpoint(udev, pipe); ep 1587 drivers/net/wireless/zydas/zd1211rw/zd_usb.c if (!ep) ep 1590 drivers/net/wireless/zydas/zd1211rw/zd_usb.c if (usb_endpoint_xfer_int(&ep->desc)) { ep 1874 drivers/net/wireless/zydas/zd1211rw/zd_usb.c struct usb_host_endpoint *ep; ep 1895 drivers/net/wireless/zydas/zd1211rw/zd_usb.c ep = usb_pipe_endpoint(udev, usb_sndintpipe(udev, EP_REGS_OUT)); ep 1896 drivers/net/wireless/zydas/zd1211rw/zd_usb.c if (!ep) ep 1920 drivers/net/wireless/zydas/zd1211rw/zd_usb.c if (usb_endpoint_xfer_int(&ep->desc)) ep 1923 drivers/net/wireless/zydas/zd1211rw/zd_usb.c ep->desc.bInterval); ep 3109 drivers/parport/parport_pc.c char *ep; ep 3110 drivers/parport/parport_pc.c unsigned long r = simple_strtoul(s, &ep, 0); ep 3111 drivers/parport/parport_pc.c if (ep != s) ep 296 drivers/pci/controller/dwc/pci-dra7xx.c struct dw_pcie_ep *ep = &pci->ep; ep 335 drivers/pci/controller/dwc/pci-dra7xx.c dw_pcie_ep_linkup(ep); ep 350 drivers/pci/controller/dwc/pci-dra7xx.c static void dra7xx_pcie_ep_init(struct dw_pcie_ep *ep) ep 352 drivers/pci/controller/dwc/pci-dra7xx.c struct dw_pcie *pci = to_dw_pcie_from_ep(ep); ep 379 drivers/pci/controller/dwc/pci-dra7xx.c static int dra7xx_pcie_raise_irq(struct dw_pcie_ep *ep, u8 func_no, ep 382 drivers/pci/controller/dwc/pci-dra7xx.c struct dw_pcie *pci = to_dw_pcie_from_ep(ep); ep 406 drivers/pci/controller/dwc/pci-dra7xx.c dra7xx_pcie_get_features(struct dw_pcie_ep *ep) ep 421 drivers/pci/controller/dwc/pci-dra7xx.c struct dw_pcie_ep *ep; ep 426 drivers/pci/controller/dwc/pci-dra7xx.c ep = &pci->ep; ep 427 drivers/pci/controller/dwc/pci-dra7xx.c ep->ops = &pcie_ep_ops; ep 443 drivers/pci/controller/dwc/pci-dra7xx.c ep->phys_base = res->start; ep 444 drivers/pci/controller/dwc/pci-dra7xx.c ep->addr_size = resource_size(res); ep 446 drivers/pci/controller/dwc/pci-dra7xx.c ret = dw_pcie_ep_init(ep); ep 76 drivers/pci/controller/dwc/pci-exynos.c struct exynos_pcie *ep); ep 77 drivers/pci/controller/dwc/pci-exynos.c int (*get_clk_resources)(struct exynos_pcie *ep); ep 78 drivers/pci/controller/dwc/pci-exynos.c int (*init_clk_resources)(struct exynos_pcie *ep); ep 79 drivers/pci/controller/dwc/pci-exynos.c void (*deinit_clk_resources)(struct exynos_pcie *ep); ep 83 drivers/pci/controller/dwc/pci-exynos.c struct exynos_pcie *ep) ep 85 drivers/pci/controller/dwc/pci-exynos.c struct dw_pcie *pci = ep->pci; ep 89 drivers/pci/controller/dwc/pci-exynos.c ep->mem_res = devm_kzalloc(dev, sizeof(*ep->mem_res), GFP_KERNEL); ep 90 drivers/pci/controller/dwc/pci-exynos.c if (!ep->mem_res) ep 94 drivers/pci/controller/dwc/pci-exynos.c ep->mem_res->elbi_base = devm_ioremap_resource(dev, res); ep 95 drivers/pci/controller/dwc/pci-exynos.c if (IS_ERR(ep->mem_res->elbi_base)) ep 96 drivers/pci/controller/dwc/pci-exynos.c return PTR_ERR(ep->mem_res->elbi_base); ep 101 drivers/pci/controller/dwc/pci-exynos.c static int exynos5440_pcie_get_clk_resources(struct exynos_pcie *ep) ep 103 drivers/pci/controller/dwc/pci-exynos.c struct dw_pcie *pci = ep->pci; ep 106 drivers/pci/controller/dwc/pci-exynos.c ep->clk_res = devm_kzalloc(dev, sizeof(*ep->clk_res), GFP_KERNEL); ep 107 drivers/pci/controller/dwc/pci-exynos.c if (!ep->clk_res) ep 110 drivers/pci/controller/dwc/pci-exynos.c ep->clk_res->clk = devm_clk_get(dev, "pcie"); ep 111 drivers/pci/controller/dwc/pci-exynos.c if (IS_ERR(ep->clk_res->clk)) { ep 113 drivers/pci/controller/dwc/pci-exynos.c return PTR_ERR(ep->clk_res->clk); ep 116 drivers/pci/controller/dwc/pci-exynos.c ep->clk_res->bus_clk = devm_clk_get(dev, "pcie_bus"); ep 117 drivers/pci/controller/dwc/pci-exynos.c if (IS_ERR(ep->clk_res->bus_clk)) { ep 119 drivers/pci/controller/dwc/pci-exynos.c return PTR_ERR(ep->clk_res->bus_clk); ep 125 drivers/pci/controller/dwc/pci-exynos.c static int exynos5440_pcie_init_clk_resources(struct exynos_pcie *ep) ep 127 drivers/pci/controller/dwc/pci-exynos.c struct dw_pcie *pci = ep->pci; ep 131 drivers/pci/controller/dwc/pci-exynos.c ret = clk_prepare_enable(ep->clk_res->clk); ep 137 drivers/pci/controller/dwc/pci-exynos.c ret = clk_prepare_enable(ep->clk_res->bus_clk); ep 146 drivers/pci/controller/dwc/pci-exynos.c clk_disable_unprepare(ep->clk_res->clk); ep 151 drivers/pci/controller/dwc/pci-exynos.c static void exynos5440_pcie_deinit_clk_resources(struct exynos_pcie *ep) ep 153 drivers/pci/controller/dwc/pci-exynos.c clk_disable_unprepare(ep->clk_res->bus_clk); ep 154 drivers/pci/controller/dwc/pci-exynos.c clk_disable_unprepare(ep->clk_res->clk); ep 174 drivers/pci/controller/dwc/pci-exynos.c static void exynos_pcie_sideband_dbi_w_mode(struct exynos_pcie *ep, bool on) ep 178 drivers/pci/controller/dwc/pci-exynos.c val = exynos_pcie_readl(ep->mem_res->elbi_base, PCIE_ELBI_SLV_AWMISC); ep 183 drivers/pci/controller/dwc/pci-exynos.c exynos_pcie_writel(ep->mem_res->elbi_base, val, PCIE_ELBI_SLV_AWMISC); ep 186 drivers/pci/controller/dwc/pci-exynos.c static void exynos_pcie_sideband_dbi_r_mode(struct exynos_pcie *ep, bool on) ep 190 drivers/pci/controller/dwc/pci-exynos.c val = exynos_pcie_readl(ep->mem_res->elbi_base, PCIE_ELBI_SLV_ARMISC); ep 195 drivers/pci/controller/dwc/pci-exynos.c exynos_pcie_writel(ep->mem_res->elbi_base, val, PCIE_ELBI_SLV_ARMISC); ep 198 drivers/pci/controller/dwc/pci-exynos.c static void exynos_pcie_assert_core_reset(struct exynos_pcie *ep) ep 202 drivers/pci/controller/dwc/pci-exynos.c val = exynos_pcie_readl(ep->mem_res->elbi_base, PCIE_CORE_RESET); ep 204 drivers/pci/controller/dwc/pci-exynos.c exynos_pcie_writel(ep->mem_res->elbi_base, val, PCIE_CORE_RESET); ep 205 drivers/pci/controller/dwc/pci-exynos.c exynos_pcie_writel(ep->mem_res->elbi_base, 0, PCIE_PWR_RESET); ep 206 drivers/pci/controller/dwc/pci-exynos.c exynos_pcie_writel(ep->mem_res->elbi_base, 0, PCIE_STICKY_RESET); ep 207 drivers/pci/controller/dwc/pci-exynos.c exynos_pcie_writel(ep->mem_res->elbi_base, 0, PCIE_NONSTICKY_RESET); ep 210 drivers/pci/controller/dwc/pci-exynos.c static void exynos_pcie_deassert_core_reset(struct exynos_pcie *ep) ep 214 drivers/pci/controller/dwc/pci-exynos.c val = exynos_pcie_readl(ep->mem_res->elbi_base, PCIE_CORE_RESET); ep 217 drivers/pci/controller/dwc/pci-exynos.c exynos_pcie_writel(ep->mem_res->elbi_base, val, PCIE_CORE_RESET); ep 218 drivers/pci/controller/dwc/pci-exynos.c exynos_pcie_writel(ep->mem_res->elbi_base, 1, PCIE_STICKY_RESET); ep 219 drivers/pci/controller/dwc/pci-exynos.c exynos_pcie_writel(ep->mem_res->elbi_base, 1, PCIE_NONSTICKY_RESET); ep 220 drivers/pci/controller/dwc/pci-exynos.c exynos_pcie_writel(ep->mem_res->elbi_base, 1, PCIE_APP_INIT_RESET); ep 221 drivers/pci/controller/dwc/pci-exynos.c exynos_pcie_writel(ep->mem_res->elbi_base, 0, PCIE_APP_INIT_RESET); ep 224 drivers/pci/controller/dwc/pci-exynos.c static void exynos_pcie_assert_reset(struct exynos_pcie *ep) ep 226 drivers/pci/controller/dwc/pci-exynos.c struct dw_pcie *pci = ep->pci; ep 229 drivers/pci/controller/dwc/pci-exynos.c if (ep->reset_gpio >= 0) ep 230 drivers/pci/controller/dwc/pci-exynos.c devm_gpio_request_one(dev, ep->reset_gpio, ep 234 drivers/pci/controller/dwc/pci-exynos.c static int exynos_pcie_establish_link(struct exynos_pcie *ep) ep 236 drivers/pci/controller/dwc/pci-exynos.c struct dw_pcie *pci = ep->pci; ep 245 drivers/pci/controller/dwc/pci-exynos.c exynos_pcie_assert_core_reset(ep); ep 247 drivers/pci/controller/dwc/pci-exynos.c phy_reset(ep->phy); ep 249 drivers/pci/controller/dwc/pci-exynos.c exynos_pcie_writel(ep->mem_res->elbi_base, 1, ep 252 drivers/pci/controller/dwc/pci-exynos.c phy_power_on(ep->phy); ep 253 drivers/pci/controller/dwc/pci-exynos.c phy_init(ep->phy); ep 255 drivers/pci/controller/dwc/pci-exynos.c exynos_pcie_deassert_core_reset(ep); ep 257 drivers/pci/controller/dwc/pci-exynos.c exynos_pcie_assert_reset(ep); ep 260 drivers/pci/controller/dwc/pci-exynos.c exynos_pcie_writel(ep->mem_res->elbi_base, PCIE_ELBI_LTSSM_ENABLE, ep 267 drivers/pci/controller/dwc/pci-exynos.c phy_power_off(ep->phy); ep 271 drivers/pci/controller/dwc/pci-exynos.c static void exynos_pcie_clear_irq_pulse(struct exynos_pcie *ep) ep 275 drivers/pci/controller/dwc/pci-exynos.c val = exynos_pcie_readl(ep->mem_res->elbi_base, PCIE_IRQ_PULSE); ep 276 drivers/pci/controller/dwc/pci-exynos.c exynos_pcie_writel(ep->mem_res->elbi_base, val, PCIE_IRQ_PULSE); ep 279 drivers/pci/controller/dwc/pci-exynos.c static void exynos_pcie_enable_irq_pulse(struct exynos_pcie *ep) ep 286 drivers/pci/controller/dwc/pci-exynos.c exynos_pcie_writel(ep->mem_res->elbi_base, val, PCIE_IRQ_EN_PULSE); ep 291 drivers/pci/controller/dwc/pci-exynos.c struct exynos_pcie *ep = arg; ep 293 drivers/pci/controller/dwc/pci-exynos.c exynos_pcie_clear_irq_pulse(ep); ep 297 drivers/pci/controller/dwc/pci-exynos.c static void exynos_pcie_msi_init(struct exynos_pcie *ep) ep 299 drivers/pci/controller/dwc/pci-exynos.c struct dw_pcie *pci = ep->pci; ep 306 drivers/pci/controller/dwc/pci-exynos.c val = exynos_pcie_readl(ep->mem_res->elbi_base, PCIE_IRQ_EN_LEVEL); ep 308 drivers/pci/controller/dwc/pci-exynos.c exynos_pcie_writel(ep->mem_res->elbi_base, val, PCIE_IRQ_EN_LEVEL); ep 311 drivers/pci/controller/dwc/pci-exynos.c static void exynos_pcie_enable_interrupts(struct exynos_pcie *ep) ep 313 drivers/pci/controller/dwc/pci-exynos.c exynos_pcie_enable_irq_pulse(ep); ep 316 drivers/pci/controller/dwc/pci-exynos.c exynos_pcie_msi_init(ep); ep 322 drivers/pci/controller/dwc/pci-exynos.c struct exynos_pcie *ep = to_exynos_pcie(pci); ep 325 drivers/pci/controller/dwc/pci-exynos.c exynos_pcie_sideband_dbi_r_mode(ep, true); ep 327 drivers/pci/controller/dwc/pci-exynos.c exynos_pcie_sideband_dbi_r_mode(ep, false); ep 334 drivers/pci/controller/dwc/pci-exynos.c struct exynos_pcie *ep = to_exynos_pcie(pci); ep 336 drivers/pci/controller/dwc/pci-exynos.c exynos_pcie_sideband_dbi_w_mode(ep, true); ep 338 drivers/pci/controller/dwc/pci-exynos.c exynos_pcie_sideband_dbi_w_mode(ep, false); ep 345 drivers/pci/controller/dwc/pci-exynos.c struct exynos_pcie *ep = to_exynos_pcie(pci); ep 348 drivers/pci/controller/dwc/pci-exynos.c exynos_pcie_sideband_dbi_r_mode(ep, true); ep 350 drivers/pci/controller/dwc/pci-exynos.c exynos_pcie_sideband_dbi_r_mode(ep, false); ep 358 drivers/pci/controller/dwc/pci-exynos.c struct exynos_pcie *ep = to_exynos_pcie(pci); ep 361 drivers/pci/controller/dwc/pci-exynos.c exynos_pcie_sideband_dbi_w_mode(ep, true); ep 363 drivers/pci/controller/dwc/pci-exynos.c exynos_pcie_sideband_dbi_w_mode(ep, false); ep 369 drivers/pci/controller/dwc/pci-exynos.c struct exynos_pcie *ep = to_exynos_pcie(pci); ep 372 drivers/pci/controller/dwc/pci-exynos.c val = exynos_pcie_readl(ep->mem_res->elbi_base, PCIE_ELBI_RDLH_LINKUP); ep 382 drivers/pci/controller/dwc/pci-exynos.c struct exynos_pcie *ep = to_exynos_pcie(pci); ep 384 drivers/pci/controller/dwc/pci-exynos.c exynos_pcie_establish_link(ep); ep 385 drivers/pci/controller/dwc/pci-exynos.c exynos_pcie_enable_interrupts(ep); ep 396 drivers/pci/controller/dwc/pci-exynos.c static int __init exynos_add_pcie_port(struct exynos_pcie *ep, ep 399 drivers/pci/controller/dwc/pci-exynos.c struct dw_pcie *pci = ep->pci; ep 410 drivers/pci/controller/dwc/pci-exynos.c IRQF_SHARED, "exynos-pcie", ep); ep 445 drivers/pci/controller/dwc/pci-exynos.c struct exynos_pcie *ep; ep 449 drivers/pci/controller/dwc/pci-exynos.c ep = devm_kzalloc(dev, sizeof(*ep), GFP_KERNEL); ep 450 drivers/pci/controller/dwc/pci-exynos.c if (!ep) ep 460 drivers/pci/controller/dwc/pci-exynos.c ep->pci = pci; ep 461 drivers/pci/controller/dwc/pci-exynos.c ep->ops = (const struct exynos_pcie_ops *) ep 464 drivers/pci/controller/dwc/pci-exynos.c ep->reset_gpio = of_get_named_gpio(np, "reset-gpio", 0); ep 466 drivers/pci/controller/dwc/pci-exynos.c ep->phy = devm_of_phy_get(dev, np, NULL); ep 467 drivers/pci/controller/dwc/pci-exynos.c if (IS_ERR(ep->phy)) { ep 468 drivers/pci/controller/dwc/pci-exynos.c if (PTR_ERR(ep->phy) != -ENODEV) ep 469 drivers/pci/controller/dwc/pci-exynos.c return PTR_ERR(ep->phy); ep 471 drivers/pci/controller/dwc/pci-exynos.c ep->phy = NULL; ep 474 drivers/pci/controller/dwc/pci-exynos.c if (ep->ops && ep->ops->get_mem_resources) { ep 475 drivers/pci/controller/dwc/pci-exynos.c ret = ep->ops->get_mem_resources(pdev, ep); ep 480 drivers/pci/controller/dwc/pci-exynos.c if (ep->ops && ep->ops->get_clk_resources && ep 481 drivers/pci/controller/dwc/pci-exynos.c ep->ops->init_clk_resources) { ep 482 drivers/pci/controller/dwc/pci-exynos.c ret = ep->ops->get_clk_resources(ep); ep 485 drivers/pci/controller/dwc/pci-exynos.c ret = ep->ops->init_clk_resources(ep); ep 490 drivers/pci/controller/dwc/pci-exynos.c platform_set_drvdata(pdev, ep); ep 492 drivers/pci/controller/dwc/pci-exynos.c ret = exynos_add_pcie_port(ep, pdev); ep 499 drivers/pci/controller/dwc/pci-exynos.c phy_exit(ep->phy); ep 501 drivers/pci/controller/dwc/pci-exynos.c if (ep->ops && ep->ops->deinit_clk_resources) ep 502 drivers/pci/controller/dwc/pci-exynos.c ep->ops->deinit_clk_resources(ep); ep 508 drivers/pci/controller/dwc/pci-exynos.c struct exynos_pcie *ep = platform_get_drvdata(pdev); ep 510 drivers/pci/controller/dwc/pci-exynos.c if (ep->ops && ep->ops->deinit_clk_resources) ep 511 drivers/pci/controller/dwc/pci-exynos.c ep->ops->deinit_clk_resources(ep); ep 919 drivers/pci/controller/dwc/pci-keystone.c static void ks_pcie_am654_ep_init(struct dw_pcie_ep *ep) ep 921 drivers/pci/controller/dwc/pci-keystone.c struct dw_pcie *pci = to_dw_pcie_from_ep(ep); ep 924 drivers/pci/controller/dwc/pci-keystone.c ep->page_size = AM654_WIN_SIZE; ep 948 drivers/pci/controller/dwc/pci-keystone.c static int ks_pcie_am654_raise_irq(struct dw_pcie_ep *ep, u8 func_no, ep 952 drivers/pci/controller/dwc/pci-keystone.c struct dw_pcie *pci = to_dw_pcie_from_ep(ep); ep 960 drivers/pci/controller/dwc/pci-keystone.c dw_pcie_ep_raise_msi_irq(ep, func_no, interrupt_num); ep 984 drivers/pci/controller/dwc/pci-keystone.c ks_pcie_am654_get_features(struct dw_pcie_ep *ep) ep 999 drivers/pci/controller/dwc/pci-keystone.c struct dw_pcie_ep *ep; ep 1004 drivers/pci/controller/dwc/pci-keystone.c ep = &pci->ep; ep 1010 drivers/pci/controller/dwc/pci-keystone.c ep->phys_base = res->start; ep 1011 drivers/pci/controller/dwc/pci-keystone.c ep->addr_size = resource_size(res); ep 1013 drivers/pci/controller/dwc/pci-keystone.c ret = dw_pcie_ep_init(ep); ep 1385 drivers/pci/controller/dwc/pci-keystone.c pci->ep.ops = ep_ops; ep 51 drivers/pci/controller/dwc/pci-layerscape-ep.c ls_pcie_ep_get_features(struct dw_pcie_ep *ep) ep 56 drivers/pci/controller/dwc/pci-layerscape-ep.c static void ls_pcie_ep_init(struct dw_pcie_ep *ep) ep 58 drivers/pci/controller/dwc/pci-layerscape-ep.c struct dw_pcie *pci = to_dw_pcie_from_ep(ep); ep 65 drivers/pci/controller/dwc/pci-layerscape-ep.c static int ls_pcie_ep_raise_irq(struct dw_pcie_ep *ep, u8 func_no, ep 68 drivers/pci/controller/dwc/pci-layerscape-ep.c struct dw_pcie *pci = to_dw_pcie_from_ep(ep); ep 72 drivers/pci/controller/dwc/pci-layerscape-ep.c return dw_pcie_ep_raise_legacy_irq(ep, func_no); ep 74 drivers/pci/controller/dwc/pci-layerscape-ep.c return dw_pcie_ep_raise_msi_irq(ep, func_no, interrupt_num); ep 76 drivers/pci/controller/dwc/pci-layerscape-ep.c return dw_pcie_ep_raise_msix_irq(ep, func_no, interrupt_num); ep 94 drivers/pci/controller/dwc/pci-layerscape-ep.c struct dw_pcie_ep *ep; ep 98 drivers/pci/controller/dwc/pci-layerscape-ep.c ep = &pci->ep; ep 99 drivers/pci/controller/dwc/pci-layerscape-ep.c ep->ops = &pcie_ep_ops; ep 105 drivers/pci/controller/dwc/pci-layerscape-ep.c ep->phys_base = res->start; ep 106 drivers/pci/controller/dwc/pci-layerscape-ep.c ep->addr_size = resource_size(res); ep 108 drivers/pci/controller/dwc/pci-layerscape-ep.c ret = dw_pcie_ep_init(ep); ep 111 drivers/pci/controller/dwc/pcie-artpec6.c struct dw_pcie_ep *ep = &pci->ep; ep 117 drivers/pci/controller/dwc/pcie-artpec6.c return pci_addr - ep->phys_base; ep 413 drivers/pci/controller/dwc/pcie-artpec6.c static void artpec6_pcie_ep_init(struct dw_pcie_ep *ep) ep 415 drivers/pci/controller/dwc/pcie-artpec6.c struct dw_pcie *pci = to_dw_pcie_from_ep(ep); ep 429 drivers/pci/controller/dwc/pcie-artpec6.c static int artpec6_pcie_raise_irq(struct dw_pcie_ep *ep, u8 func_no, ep 432 drivers/pci/controller/dwc/pcie-artpec6.c struct dw_pcie *pci = to_dw_pcie_from_ep(ep); ep 439 drivers/pci/controller/dwc/pcie-artpec6.c return dw_pcie_ep_raise_msi_irq(ep, func_no, interrupt_num); ep 456 drivers/pci/controller/dwc/pcie-artpec6.c struct dw_pcie_ep *ep; ep 461 drivers/pci/controller/dwc/pcie-artpec6.c ep = &pci->ep; ep 462 drivers/pci/controller/dwc/pcie-artpec6.c ep->ops = &pcie_ep_ops; ep 473 drivers/pci/controller/dwc/pcie-artpec6.c ep->phys_base = res->start; ep 474 drivers/pci/controller/dwc/pcie-artpec6.c ep->addr_size = resource_size(res); ep 476 drivers/pci/controller/dwc/pcie-artpec6.c ret = dw_pcie_ep_init(ep); ep 15 drivers/pci/controller/dwc/pcie-designware-ep.c void dw_pcie_ep_linkup(struct dw_pcie_ep *ep) ep 17 drivers/pci/controller/dwc/pcie-designware-ep.c struct pci_epc *epc = ep->epc; ep 46 drivers/pci/controller/dwc/pcie-designware-ep.c struct dw_pcie_ep *ep = epc_get_drvdata(epc); ep 47 drivers/pci/controller/dwc/pcie-designware-ep.c struct dw_pcie *pci = to_dw_pcie_from_ep(ep); ep 68 drivers/pci/controller/dwc/pcie-designware-ep.c static int dw_pcie_ep_inbound_atu(struct dw_pcie_ep *ep, enum pci_barno bar, ep 74 drivers/pci/controller/dwc/pcie-designware-ep.c struct dw_pcie *pci = to_dw_pcie_from_ep(ep); ep 76 drivers/pci/controller/dwc/pcie-designware-ep.c free_win = find_first_zero_bit(ep->ib_window_map, ep->num_ib_windows); ep 77 drivers/pci/controller/dwc/pcie-designware-ep.c if (free_win >= ep->num_ib_windows) { ep 89 drivers/pci/controller/dwc/pcie-designware-ep.c ep->bar_to_atu[bar] = free_win; ep 90 drivers/pci/controller/dwc/pcie-designware-ep.c set_bit(free_win, ep->ib_window_map); ep 95 drivers/pci/controller/dwc/pcie-designware-ep.c static int dw_pcie_ep_outbound_atu(struct dw_pcie_ep *ep, phys_addr_t phys_addr, ep 99 drivers/pci/controller/dwc/pcie-designware-ep.c struct dw_pcie *pci = to_dw_pcie_from_ep(ep); ep 101 drivers/pci/controller/dwc/pcie-designware-ep.c free_win = find_first_zero_bit(ep->ob_window_map, ep->num_ob_windows); ep 102 drivers/pci/controller/dwc/pcie-designware-ep.c if (free_win >= ep->num_ob_windows) { ep 110 drivers/pci/controller/dwc/pcie-designware-ep.c set_bit(free_win, ep->ob_window_map); ep 111 drivers/pci/controller/dwc/pcie-designware-ep.c ep->outbound_addr[free_win] = phys_addr; ep 119 drivers/pci/controller/dwc/pcie-designware-ep.c struct dw_pcie_ep *ep = epc_get_drvdata(epc); ep 120 drivers/pci/controller/dwc/pcie-designware-ep.c struct dw_pcie *pci = to_dw_pcie_from_ep(ep); ep 122 drivers/pci/controller/dwc/pcie-designware-ep.c u32 atu_index = ep->bar_to_atu[bar]; ep 127 drivers/pci/controller/dwc/pcie-designware-ep.c clear_bit(atu_index, ep->ib_window_map); ep 134 drivers/pci/controller/dwc/pcie-designware-ep.c struct dw_pcie_ep *ep = epc_get_drvdata(epc); ep 135 drivers/pci/controller/dwc/pcie-designware-ep.c struct dw_pcie *pci = to_dw_pcie_from_ep(ep); ep 147 drivers/pci/controller/dwc/pcie-designware-ep.c ret = dw_pcie_ep_inbound_atu(ep, bar, epf_bar->phys_addr, as_type); ep 166 drivers/pci/controller/dwc/pcie-designware-ep.c static int dw_pcie_find_index(struct dw_pcie_ep *ep, phys_addr_t addr, ep 171 drivers/pci/controller/dwc/pcie-designware-ep.c for (index = 0; index < ep->num_ob_windows; index++) { ep 172 drivers/pci/controller/dwc/pcie-designware-ep.c if (ep->outbound_addr[index] != addr) ep 186 drivers/pci/controller/dwc/pcie-designware-ep.c struct dw_pcie_ep *ep = epc_get_drvdata(epc); ep 187 drivers/pci/controller/dwc/pcie-designware-ep.c struct dw_pcie *pci = to_dw_pcie_from_ep(ep); ep 189 drivers/pci/controller/dwc/pcie-designware-ep.c ret = dw_pcie_find_index(ep, addr, &atu_index); ep 194 drivers/pci/controller/dwc/pcie-designware-ep.c clear_bit(atu_index, ep->ob_window_map); ep 202 drivers/pci/controller/dwc/pcie-designware-ep.c struct dw_pcie_ep *ep = epc_get_drvdata(epc); ep 203 drivers/pci/controller/dwc/pcie-designware-ep.c struct dw_pcie *pci = to_dw_pcie_from_ep(ep); ep 205 drivers/pci/controller/dwc/pcie-designware-ep.c ret = dw_pcie_ep_outbound_atu(ep, addr, pci_addr, size); ep 216 drivers/pci/controller/dwc/pcie-designware-ep.c struct dw_pcie_ep *ep = epc_get_drvdata(epc); ep 217 drivers/pci/controller/dwc/pcie-designware-ep.c struct dw_pcie *pci = to_dw_pcie_from_ep(ep); ep 220 drivers/pci/controller/dwc/pcie-designware-ep.c if (!ep->msi_cap) ep 223 drivers/pci/controller/dwc/pcie-designware-ep.c reg = ep->msi_cap + PCI_MSI_FLAGS; ep 235 drivers/pci/controller/dwc/pcie-designware-ep.c struct dw_pcie_ep *ep = epc_get_drvdata(epc); ep 236 drivers/pci/controller/dwc/pcie-designware-ep.c struct dw_pcie *pci = to_dw_pcie_from_ep(ep); ep 239 drivers/pci/controller/dwc/pcie-designware-ep.c if (!ep->msi_cap) ep 242 drivers/pci/controller/dwc/pcie-designware-ep.c reg = ep->msi_cap + PCI_MSI_FLAGS; ep 255 drivers/pci/controller/dwc/pcie-designware-ep.c struct dw_pcie_ep *ep = epc_get_drvdata(epc); ep 256 drivers/pci/controller/dwc/pcie-designware-ep.c struct dw_pcie *pci = to_dw_pcie_from_ep(ep); ep 259 drivers/pci/controller/dwc/pcie-designware-ep.c if (!ep->msix_cap) ep 262 drivers/pci/controller/dwc/pcie-designware-ep.c reg = ep->msix_cap + PCI_MSIX_FLAGS; ep 274 drivers/pci/controller/dwc/pcie-designware-ep.c struct dw_pcie_ep *ep = epc_get_drvdata(epc); ep 275 drivers/pci/controller/dwc/pcie-designware-ep.c struct dw_pcie *pci = to_dw_pcie_from_ep(ep); ep 278 drivers/pci/controller/dwc/pcie-designware-ep.c if (!ep->msix_cap) ep 281 drivers/pci/controller/dwc/pcie-designware-ep.c reg = ep->msix_cap + PCI_MSIX_FLAGS; ep 295 drivers/pci/controller/dwc/pcie-designware-ep.c struct dw_pcie_ep *ep = epc_get_drvdata(epc); ep 297 drivers/pci/controller/dwc/pcie-designware-ep.c if (!ep->ops->raise_irq) ep 300 drivers/pci/controller/dwc/pcie-designware-ep.c return ep->ops->raise_irq(ep, func_no, type, interrupt_num); ep 305 drivers/pci/controller/dwc/pcie-designware-ep.c struct dw_pcie_ep *ep = epc_get_drvdata(epc); ep 306 drivers/pci/controller/dwc/pcie-designware-ep.c struct dw_pcie *pci = to_dw_pcie_from_ep(ep); ep 316 drivers/pci/controller/dwc/pcie-designware-ep.c struct dw_pcie_ep *ep = epc_get_drvdata(epc); ep 317 drivers/pci/controller/dwc/pcie-designware-ep.c struct dw_pcie *pci = to_dw_pcie_from_ep(ep); ep 328 drivers/pci/controller/dwc/pcie-designware-ep.c struct dw_pcie_ep *ep = epc_get_drvdata(epc); ep 330 drivers/pci/controller/dwc/pcie-designware-ep.c if (!ep->ops->get_features) ep 333 drivers/pci/controller/dwc/pcie-designware-ep.c return ep->ops->get_features(ep); ep 352 drivers/pci/controller/dwc/pcie-designware-ep.c int dw_pcie_ep_raise_legacy_irq(struct dw_pcie_ep *ep, u8 func_no) ep 354 drivers/pci/controller/dwc/pcie-designware-ep.c struct dw_pcie *pci = to_dw_pcie_from_ep(ep); ep 362 drivers/pci/controller/dwc/pcie-designware-ep.c int dw_pcie_ep_raise_msi_irq(struct dw_pcie_ep *ep, u8 func_no, ep 365 drivers/pci/controller/dwc/pcie-designware-ep.c struct dw_pcie *pci = to_dw_pcie_from_ep(ep); ep 366 drivers/pci/controller/dwc/pcie-designware-ep.c struct pci_epc *epc = ep->epc; ep 374 drivers/pci/controller/dwc/pcie-designware-ep.c if (!ep->msi_cap) ep 378 drivers/pci/controller/dwc/pcie-designware-ep.c reg = ep->msi_cap + PCI_MSI_FLAGS; ep 381 drivers/pci/controller/dwc/pcie-designware-ep.c reg = ep->msi_cap + PCI_MSI_ADDRESS_LO; ep 384 drivers/pci/controller/dwc/pcie-designware-ep.c reg = ep->msi_cap + PCI_MSI_ADDRESS_HI; ep 386 drivers/pci/controller/dwc/pcie-designware-ep.c reg = ep->msi_cap + PCI_MSI_DATA_64; ep 390 drivers/pci/controller/dwc/pcie-designware-ep.c reg = ep->msi_cap + PCI_MSI_DATA_32; ep 396 drivers/pci/controller/dwc/pcie-designware-ep.c ret = dw_pcie_ep_map_addr(epc, func_no, ep->msi_mem_phys, msg_addr, ep 401 drivers/pci/controller/dwc/pcie-designware-ep.c writel(msg_data | (interrupt_num - 1), ep->msi_mem + aligned_offset); ep 403 drivers/pci/controller/dwc/pcie-designware-ep.c dw_pcie_ep_unmap_addr(epc, func_no, ep->msi_mem_phys); ep 408 drivers/pci/controller/dwc/pcie-designware-ep.c int dw_pcie_ep_raise_msix_irq(struct dw_pcie_ep *ep, u8 func_no, ep 411 drivers/pci/controller/dwc/pcie-designware-ep.c struct dw_pcie *pci = to_dw_pcie_from_ep(ep); ep 412 drivers/pci/controller/dwc/pcie-designware-ep.c struct pci_epc *epc = ep->epc; ep 421 drivers/pci/controller/dwc/pcie-designware-ep.c reg = ep->msix_cap + PCI_MSIX_TABLE; ep 437 drivers/pci/controller/dwc/pcie-designware-ep.c msix_tbl = ioremap_nocache(ep->phys_base + tbl_addr, ep 455 drivers/pci/controller/dwc/pcie-designware-ep.c ret = dw_pcie_ep_map_addr(epc, func_no, ep->msi_mem_phys, msg_addr, ep 460 drivers/pci/controller/dwc/pcie-designware-ep.c writel(msg_data, ep->msi_mem); ep 462 drivers/pci/controller/dwc/pcie-designware-ep.c dw_pcie_ep_unmap_addr(epc, func_no, ep->msi_mem_phys); ep 467 drivers/pci/controller/dwc/pcie-designware-ep.c void dw_pcie_ep_exit(struct dw_pcie_ep *ep) ep 469 drivers/pci/controller/dwc/pcie-designware-ep.c struct pci_epc *epc = ep->epc; ep 471 drivers/pci/controller/dwc/pcie-designware-ep.c pci_epc_mem_free_addr(epc, ep->msi_mem_phys, ep->msi_mem, ep 495 drivers/pci/controller/dwc/pcie-designware-ep.c int dw_pcie_ep_init(struct dw_pcie_ep *ep) ep 505 drivers/pci/controller/dwc/pcie-designware-ep.c struct dw_pcie *pci = to_dw_pcie_from_ep(ep); ep 514 drivers/pci/controller/dwc/pcie-designware-ep.c ret = of_property_read_u32(np, "num-ib-windows", &ep->num_ib_windows); ep 519 drivers/pci/controller/dwc/pcie-designware-ep.c if (ep->num_ib_windows > MAX_IATU_IN) { ep 524 drivers/pci/controller/dwc/pcie-designware-ep.c ret = of_property_read_u32(np, "num-ob-windows", &ep->num_ob_windows); ep 529 drivers/pci/controller/dwc/pcie-designware-ep.c if (ep->num_ob_windows > MAX_IATU_OUT) { ep 534 drivers/pci/controller/dwc/pcie-designware-ep.c ep->ib_window_map = devm_kcalloc(dev, ep 535 drivers/pci/controller/dwc/pcie-designware-ep.c BITS_TO_LONGS(ep->num_ib_windows), ep 538 drivers/pci/controller/dwc/pcie-designware-ep.c if (!ep->ib_window_map) ep 541 drivers/pci/controller/dwc/pcie-designware-ep.c ep->ob_window_map = devm_kcalloc(dev, ep 542 drivers/pci/controller/dwc/pcie-designware-ep.c BITS_TO_LONGS(ep->num_ob_windows), ep 545 drivers/pci/controller/dwc/pcie-designware-ep.c if (!ep->ob_window_map) ep 548 drivers/pci/controller/dwc/pcie-designware-ep.c addr = devm_kcalloc(dev, ep->num_ob_windows, sizeof(phys_addr_t), ep 552 drivers/pci/controller/dwc/pcie-designware-ep.c ep->outbound_addr = addr; ep 560 drivers/pci/controller/dwc/pcie-designware-ep.c ep->epc = epc; ep 561 drivers/pci/controller/dwc/pcie-designware-ep.c epc_set_drvdata(epc, ep); ep 563 drivers/pci/controller/dwc/pcie-designware-ep.c if (ep->ops->ep_init) ep 564 drivers/pci/controller/dwc/pcie-designware-ep.c ep->ops->ep_init(ep); ep 577 drivers/pci/controller/dwc/pcie-designware-ep.c ret = __pci_epc_mem_init(epc, ep->phys_base, ep->addr_size, ep 578 drivers/pci/controller/dwc/pcie-designware-ep.c ep->page_size); ep 584 drivers/pci/controller/dwc/pcie-designware-ep.c ep->msi_mem = pci_epc_mem_alloc_addr(epc, &ep->msi_mem_phys, ep 586 drivers/pci/controller/dwc/pcie-designware-ep.c if (!ep->msi_mem) { ep 590 drivers/pci/controller/dwc/pcie-designware-ep.c ep->msi_cap = dw_pcie_find_capability(pci, PCI_CAP_ID_MSI); ep 592 drivers/pci/controller/dwc/pcie-designware-ep.c ep->msix_cap = dw_pcie_find_capability(pci, PCI_CAP_ID_MSIX); ep 68 drivers/pci/controller/dwc/pcie-designware-plat.c static void dw_plat_pcie_ep_init(struct dw_pcie_ep *ep) ep 70 drivers/pci/controller/dwc/pcie-designware-plat.c struct dw_pcie *pci = to_dw_pcie_from_ep(ep); ep 77 drivers/pci/controller/dwc/pcie-designware-plat.c static int dw_plat_pcie_ep_raise_irq(struct dw_pcie_ep *ep, u8 func_no, ep 81 drivers/pci/controller/dwc/pcie-designware-plat.c struct dw_pcie *pci = to_dw_pcie_from_ep(ep); ep 85 drivers/pci/controller/dwc/pcie-designware-plat.c return dw_pcie_ep_raise_legacy_irq(ep, func_no); ep 87 drivers/pci/controller/dwc/pcie-designware-plat.c return dw_pcie_ep_raise_msi_irq(ep, func_no, interrupt_num); ep 89 drivers/pci/controller/dwc/pcie-designware-plat.c return dw_pcie_ep_raise_msix_irq(ep, func_no, interrupt_num); ep 104 drivers/pci/controller/dwc/pcie-designware-plat.c dw_plat_pcie_get_features(struct dw_pcie_ep *ep) ep 148 drivers/pci/controller/dwc/pcie-designware-plat.c struct dw_pcie_ep *ep; ep 153 drivers/pci/controller/dwc/pcie-designware-plat.c ep = &pci->ep; ep 154 drivers/pci/controller/dwc/pcie-designware-plat.c ep->ops = &pcie_ep_ops; ep 165 drivers/pci/controller/dwc/pcie-designware-plat.c ep->phys_base = res->start; ep 166 drivers/pci/controller/dwc/pcie-designware-plat.c ep->addr_size = resource_size(res); ep 168 drivers/pci/controller/dwc/pcie-designware-plat.c ret = dw_pcie_ep_init(ep); ep 205 drivers/pci/controller/dwc/pcie-designware.h void (*ep_init)(struct dw_pcie_ep *ep); ep 206 drivers/pci/controller/dwc/pcie-designware.h int (*raise_irq)(struct dw_pcie_ep *ep, u8 func_no, ep 208 drivers/pci/controller/dwc/pcie-designware.h const struct pci_epc_features* (*get_features)(struct dw_pcie_ep *ep); ep 253 drivers/pci/controller/dwc/pcie-designware.h struct dw_pcie_ep ep; ep 261 drivers/pci/controller/dwc/pcie-designware.h container_of((endpoint), struct dw_pcie, ep) ep 400 drivers/pci/controller/dwc/pcie-designware.h void dw_pcie_ep_linkup(struct dw_pcie_ep *ep); ep 401 drivers/pci/controller/dwc/pcie-designware.h int dw_pcie_ep_init(struct dw_pcie_ep *ep); ep 402 drivers/pci/controller/dwc/pcie-designware.h void dw_pcie_ep_exit(struct dw_pcie_ep *ep); ep 403 drivers/pci/controller/dwc/pcie-designware.h int dw_pcie_ep_raise_legacy_irq(struct dw_pcie_ep *ep, u8 func_no); ep 404 drivers/pci/controller/dwc/pcie-designware.h int dw_pcie_ep_raise_msi_irq(struct dw_pcie_ep *ep, u8 func_no, ep 406 drivers/pci/controller/dwc/pcie-designware.h int dw_pcie_ep_raise_msix_irq(struct dw_pcie_ep *ep, u8 func_no, ep 410 drivers/pci/controller/dwc/pcie-designware.h static inline void dw_pcie_ep_linkup(struct dw_pcie_ep *ep) ep 414 drivers/pci/controller/dwc/pcie-designware.h static inline int dw_pcie_ep_init(struct dw_pcie_ep *ep) ep 419 drivers/pci/controller/dwc/pcie-designware.h static inline void dw_pcie_ep_exit(struct dw_pcie_ep *ep) ep 423 drivers/pci/controller/dwc/pcie-designware.h static inline int dw_pcie_ep_raise_legacy_irq(struct dw_pcie_ep *ep, u8 func_no) ep 428 drivers/pci/controller/dwc/pcie-designware.h static inline int dw_pcie_ep_raise_msi_irq(struct dw_pcie_ep *ep, u8 func_no, ep 434 drivers/pci/controller/dwc/pcie-designware.h static inline int dw_pcie_ep_raise_msix_irq(struct dw_pcie_ep *ep, u8 func_no, ep 52 drivers/pci/controller/pcie-cadence-ep.c struct cdns_pcie_ep *ep = epc_get_drvdata(epc); ep 53 drivers/pci/controller/pcie-cadence-ep.c struct cdns_pcie *pcie = &ep->pcie; ep 83 drivers/pci/controller/pcie-cadence-ep.c struct cdns_pcie_ep *ep = epc_get_drvdata(epc); ep 84 drivers/pci/controller/pcie-cadence-ep.c struct cdns_pcie *pcie = &ep->pcie; ep 150 drivers/pci/controller/pcie-cadence-ep.c struct cdns_pcie_ep *ep = epc_get_drvdata(epc); ep 151 drivers/pci/controller/pcie-cadence-ep.c struct cdns_pcie *pcie = &ep->pcie; ep 177 drivers/pci/controller/pcie-cadence-ep.c struct cdns_pcie_ep *ep = epc_get_drvdata(epc); ep 178 drivers/pci/controller/pcie-cadence-ep.c struct cdns_pcie *pcie = &ep->pcie; ep 181 drivers/pci/controller/pcie-cadence-ep.c r = find_first_zero_bit(&ep->ob_region_map, ep 182 drivers/pci/controller/pcie-cadence-ep.c sizeof(ep->ob_region_map) * BITS_PER_LONG); ep 183 drivers/pci/controller/pcie-cadence-ep.c if (r >= ep->max_regions - 1) { ep 190 drivers/pci/controller/pcie-cadence-ep.c set_bit(r, &ep->ob_region_map); ep 191 drivers/pci/controller/pcie-cadence-ep.c ep->ob_addr[r] = addr; ep 199 drivers/pci/controller/pcie-cadence-ep.c struct cdns_pcie_ep *ep = epc_get_drvdata(epc); ep 200 drivers/pci/controller/pcie-cadence-ep.c struct cdns_pcie *pcie = &ep->pcie; ep 203 drivers/pci/controller/pcie-cadence-ep.c for (r = 0; r < ep->max_regions - 1; r++) ep 204 drivers/pci/controller/pcie-cadence-ep.c if (ep->ob_addr[r] == addr) ep 207 drivers/pci/controller/pcie-cadence-ep.c if (r == ep->max_regions - 1) ep 212 drivers/pci/controller/pcie-cadence-ep.c ep->ob_addr[r] = 0; ep 213 drivers/pci/controller/pcie-cadence-ep.c clear_bit(r, &ep->ob_region_map); ep 218 drivers/pci/controller/pcie-cadence-ep.c struct cdns_pcie_ep *ep = epc_get_drvdata(epc); ep 219 drivers/pci/controller/pcie-cadence-ep.c struct cdns_pcie *pcie = &ep->pcie; ep 238 drivers/pci/controller/pcie-cadence-ep.c struct cdns_pcie_ep *ep = epc_get_drvdata(epc); ep 239 drivers/pci/controller/pcie-cadence-ep.c struct cdns_pcie *pcie = &ep->pcie; ep 257 drivers/pci/controller/pcie-cadence-ep.c static void cdns_pcie_ep_assert_intx(struct cdns_pcie_ep *ep, u8 fn, ep 260 drivers/pci/controller/pcie-cadence-ep.c struct cdns_pcie *pcie = &ep->pcie; ep 268 drivers/pci/controller/pcie-cadence-ep.c if (unlikely(ep->irq_pci_addr != CDNS_PCIE_EP_IRQ_PCI_ADDR_LEGACY || ep 269 drivers/pci/controller/pcie-cadence-ep.c ep->irq_pci_fn != fn)) { ep 272 drivers/pci/controller/pcie-cadence-ep.c ep->irq_phys_addr); ep 273 drivers/pci/controller/pcie-cadence-ep.c ep->irq_pci_addr = CDNS_PCIE_EP_IRQ_PCI_ADDR_LEGACY; ep 274 drivers/pci/controller/pcie-cadence-ep.c ep->irq_pci_fn = fn; ep 278 drivers/pci/controller/pcie-cadence-ep.c ep->irq_pending |= BIT(intx); ep 281 drivers/pci/controller/pcie-cadence-ep.c ep->irq_pending &= ~BIT(intx); ep 286 drivers/pci/controller/pcie-cadence-ep.c if (((status & PCI_STATUS_INTERRUPT) != 0) ^ (ep->irq_pending != 0)) { ep 294 drivers/pci/controller/pcie-cadence-ep.c writel(0, ep->irq_cpu_addr + offset); ep 297 drivers/pci/controller/pcie-cadence-ep.c static int cdns_pcie_ep_send_legacy_irq(struct cdns_pcie_ep *ep, u8 fn, u8 intx) ep 301 drivers/pci/controller/pcie-cadence-ep.c cmd = cdns_pcie_ep_fn_readw(&ep->pcie, fn, PCI_COMMAND); ep 305 drivers/pci/controller/pcie-cadence-ep.c cdns_pcie_ep_assert_intx(ep, fn, intx, true); ep 311 drivers/pci/controller/pcie-cadence-ep.c cdns_pcie_ep_assert_intx(ep, fn, intx, false); ep 315 drivers/pci/controller/pcie-cadence-ep.c static int cdns_pcie_ep_send_msi_irq(struct cdns_pcie_ep *ep, u8 fn, ep 318 drivers/pci/controller/pcie-cadence-ep.c struct cdns_pcie *pcie = &ep->pcie; ep 347 drivers/pci/controller/pcie-cadence-ep.c if (unlikely(ep->irq_pci_addr != (pci_addr & ~pci_addr_mask) || ep 348 drivers/pci/controller/pcie-cadence-ep.c ep->irq_pci_fn != fn)) { ep 352 drivers/pci/controller/pcie-cadence-ep.c ep->irq_phys_addr, ep 355 drivers/pci/controller/pcie-cadence-ep.c ep->irq_pci_addr = (pci_addr & ~pci_addr_mask); ep 356 drivers/pci/controller/pcie-cadence-ep.c ep->irq_pci_fn = fn; ep 358 drivers/pci/controller/pcie-cadence-ep.c writel(data, ep->irq_cpu_addr + (pci_addr & pci_addr_mask)); ep 367 drivers/pci/controller/pcie-cadence-ep.c struct cdns_pcie_ep *ep = epc_get_drvdata(epc); ep 371 drivers/pci/controller/pcie-cadence-ep.c return cdns_pcie_ep_send_legacy_irq(ep, fn, 0); ep 374 drivers/pci/controller/pcie-cadence-ep.c return cdns_pcie_ep_send_msi_irq(ep, fn, interrupt_num); ep 385 drivers/pci/controller/pcie-cadence-ep.c struct cdns_pcie_ep *ep = epc_get_drvdata(epc); ep 386 drivers/pci/controller/pcie-cadence-ep.c struct cdns_pcie *pcie = &ep->pcie; ep 437 drivers/pci/controller/pcie-cadence-ep.c struct cdns_pcie_ep *ep; ep 444 drivers/pci/controller/pcie-cadence-ep.c ep = devm_kzalloc(dev, sizeof(*ep), GFP_KERNEL); ep 445 drivers/pci/controller/pcie-cadence-ep.c if (!ep) ep 448 drivers/pci/controller/pcie-cadence-ep.c pcie = &ep->pcie; ep 466 drivers/pci/controller/pcie-cadence-ep.c &ep->max_regions); ep 471 drivers/pci/controller/pcie-cadence-ep.c ep->ob_addr = devm_kcalloc(dev, ep 472 drivers/pci/controller/pcie-cadence-ep.c ep->max_regions, sizeof(*ep->ob_addr), ep 474 drivers/pci/controller/pcie-cadence-ep.c if (!ep->ob_addr) ep 500 drivers/pci/controller/pcie-cadence-ep.c epc_set_drvdata(epc, ep); ep 512 drivers/pci/controller/pcie-cadence-ep.c ep->irq_cpu_addr = pci_epc_mem_alloc_addr(epc, &ep->irq_phys_addr, ep 514 drivers/pci/controller/pcie-cadence-ep.c if (!ep->irq_cpu_addr) { ep 519 drivers/pci/controller/pcie-cadence-ep.c ep->irq_pci_addr = CDNS_PCIE_EP_IRQ_PCI_ADDR_NONE; ep 521 drivers/pci/controller/pcie-cadence-ep.c set_bit(0, &ep->ob_region_map); ep 127 drivers/pci/controller/pcie-rockchip-ep.c struct rockchip_pcie_ep *ep = epc_get_drvdata(epc); ep 128 drivers/pci/controller/pcie-rockchip-ep.c struct rockchip_pcie *rockchip = &ep->rockchip; ep 164 drivers/pci/controller/pcie-rockchip-ep.c struct rockchip_pcie_ep *ep = epc_get_drvdata(epc); ep 165 drivers/pci/controller/pcie-rockchip-ep.c struct rockchip_pcie *rockchip = &ep->rockchip; ep 232 drivers/pci/controller/pcie-rockchip-ep.c struct rockchip_pcie_ep *ep = epc_get_drvdata(epc); ep 233 drivers/pci/controller/pcie-rockchip-ep.c struct rockchip_pcie *rockchip = &ep->rockchip; ep 262 drivers/pci/controller/pcie-rockchip-ep.c struct rockchip_pcie_ep *ep = epc_get_drvdata(epc); ep 263 drivers/pci/controller/pcie-rockchip-ep.c struct rockchip_pcie *pcie = &ep->rockchip; ep 266 drivers/pci/controller/pcie-rockchip-ep.c r = find_first_zero_bit(&ep->ob_region_map, ep 267 drivers/pci/controller/pcie-rockchip-ep.c sizeof(ep->ob_region_map) * BITS_PER_LONG); ep 272 drivers/pci/controller/pcie-rockchip-ep.c if (r >= ep->max_regions - 1) { ep 280 drivers/pci/controller/pcie-rockchip-ep.c set_bit(r, &ep->ob_region_map); ep 281 drivers/pci/controller/pcie-rockchip-ep.c ep->ob_addr[r] = addr; ep 289 drivers/pci/controller/pcie-rockchip-ep.c struct rockchip_pcie_ep *ep = epc_get_drvdata(epc); ep 290 drivers/pci/controller/pcie-rockchip-ep.c struct rockchip_pcie *rockchip = &ep->rockchip; ep 293 drivers/pci/controller/pcie-rockchip-ep.c for (r = 0; r < ep->max_regions - 1; r++) ep 294 drivers/pci/controller/pcie-rockchip-ep.c if (ep->ob_addr[r] == addr) ep 301 drivers/pci/controller/pcie-rockchip-ep.c if (r == ep->max_regions - 1) ep 306 drivers/pci/controller/pcie-rockchip-ep.c ep->ob_addr[r] = 0; ep 307 drivers/pci/controller/pcie-rockchip-ep.c clear_bit(r, &ep->ob_region_map); ep 313 drivers/pci/controller/pcie-rockchip-ep.c struct rockchip_pcie_ep *ep = epc_get_drvdata(epc); ep 314 drivers/pci/controller/pcie-rockchip-ep.c struct rockchip_pcie *rockchip = &ep->rockchip; ep 333 drivers/pci/controller/pcie-rockchip-ep.c struct rockchip_pcie_ep *ep = epc_get_drvdata(epc); ep 334 drivers/pci/controller/pcie-rockchip-ep.c struct rockchip_pcie *rockchip = &ep->rockchip; ep 347 drivers/pci/controller/pcie-rockchip-ep.c static void rockchip_pcie_ep_assert_intx(struct rockchip_pcie_ep *ep, u8 fn, ep 350 drivers/pci/controller/pcie-rockchip-ep.c struct rockchip_pcie *rockchip = &ep->rockchip; ep 351 drivers/pci/controller/pcie-rockchip-ep.c u32 r = ep->max_regions - 1; ep 356 drivers/pci/controller/pcie-rockchip-ep.c if (unlikely(ep->irq_pci_addr != ROCKCHIP_PCIE_EP_PCI_LEGACY_IRQ_ADDR || ep 357 drivers/pci/controller/pcie-rockchip-ep.c ep->irq_pci_fn != fn)) { ep 360 drivers/pci/controller/pcie-rockchip-ep.c ep->irq_phys_addr, 0, 0); ep 361 drivers/pci/controller/pcie-rockchip-ep.c ep->irq_pci_addr = ROCKCHIP_PCIE_EP_PCI_LEGACY_IRQ_ADDR; ep 362 drivers/pci/controller/pcie-rockchip-ep.c ep->irq_pci_fn = fn; ep 367 drivers/pci/controller/pcie-rockchip-ep.c ep->irq_pending |= BIT(intx); ep 370 drivers/pci/controller/pcie-rockchip-ep.c ep->irq_pending &= ~BIT(intx); ep 379 drivers/pci/controller/pcie-rockchip-ep.c if ((status != 0) ^ (ep->irq_pending != 0)) { ep 389 drivers/pci/controller/pcie-rockchip-ep.c writel(0, ep->irq_cpu_addr + offset); ep 392 drivers/pci/controller/pcie-rockchip-ep.c static int rockchip_pcie_ep_send_legacy_irq(struct rockchip_pcie_ep *ep, u8 fn, ep 397 drivers/pci/controller/pcie-rockchip-ep.c cmd = rockchip_pcie_read(&ep->rockchip, ep 409 drivers/pci/controller/pcie-rockchip-ep.c rockchip_pcie_ep_assert_intx(ep, fn, intx, true); ep 411 drivers/pci/controller/pcie-rockchip-ep.c rockchip_pcie_ep_assert_intx(ep, fn, intx, false); ep 415 drivers/pci/controller/pcie-rockchip-ep.c static int rockchip_pcie_ep_send_msi_irq(struct rockchip_pcie_ep *ep, u8 fn, ep 418 drivers/pci/controller/pcie-rockchip-ep.c struct rockchip_pcie *rockchip = &ep->rockchip; ep 424 drivers/pci/controller/pcie-rockchip-ep.c flags = rockchip_pcie_read(&ep->rockchip, ep 458 drivers/pci/controller/pcie-rockchip-ep.c if (unlikely(ep->irq_pci_addr != (pci_addr & ~pci_addr_mask) || ep 459 drivers/pci/controller/pcie-rockchip-ep.c ep->irq_pci_fn != fn)) { ep 460 drivers/pci/controller/pcie-rockchip-ep.c rockchip_pcie_prog_ep_ob_atu(rockchip, fn, ep->max_regions - 1, ep 462 drivers/pci/controller/pcie-rockchip-ep.c ep->irq_phys_addr, ep 465 drivers/pci/controller/pcie-rockchip-ep.c ep->irq_pci_addr = (pci_addr & ~pci_addr_mask); ep 466 drivers/pci/controller/pcie-rockchip-ep.c ep->irq_pci_fn = fn; ep 469 drivers/pci/controller/pcie-rockchip-ep.c writew(data, ep->irq_cpu_addr + (pci_addr & pci_addr_mask)); ep 477 drivers/pci/controller/pcie-rockchip-ep.c struct rockchip_pcie_ep *ep = epc_get_drvdata(epc); ep 481 drivers/pci/controller/pcie-rockchip-ep.c return rockchip_pcie_ep_send_legacy_irq(ep, fn, 0); ep 483 drivers/pci/controller/pcie-rockchip-ep.c return rockchip_pcie_ep_send_msi_irq(ep, fn, interrupt_num); ep 491 drivers/pci/controller/pcie-rockchip-ep.c struct rockchip_pcie_ep *ep = epc_get_drvdata(epc); ep 492 drivers/pci/controller/pcie-rockchip-ep.c struct rockchip_pcie *rockchip = &ep->rockchip; ep 531 drivers/pci/controller/pcie-rockchip-ep.c struct rockchip_pcie_ep *ep) ep 546 drivers/pci/controller/pcie-rockchip-ep.c &ep->max_regions); ep 547 drivers/pci/controller/pcie-rockchip-ep.c if (err < 0 || ep->max_regions > MAX_REGION_LIMIT) ep 548 drivers/pci/controller/pcie-rockchip-ep.c ep->max_regions = MAX_REGION_LIMIT; ep 551 drivers/pci/controller/pcie-rockchip-ep.c &ep->epc->max_functions); ep 553 drivers/pci/controller/pcie-rockchip-ep.c ep->epc->max_functions = 1; ep 566 drivers/pci/controller/pcie-rockchip-ep.c struct rockchip_pcie_ep *ep; ep 572 drivers/pci/controller/pcie-rockchip-ep.c ep = devm_kzalloc(dev, sizeof(*ep), GFP_KERNEL); ep 573 drivers/pci/controller/pcie-rockchip-ep.c if (!ep) ep 576 drivers/pci/controller/pcie-rockchip-ep.c rockchip = &ep->rockchip; ep 586 drivers/pci/controller/pcie-rockchip-ep.c ep->epc = epc; ep 587 drivers/pci/controller/pcie-rockchip-ep.c epc_set_drvdata(epc, ep); ep 589 drivers/pci/controller/pcie-rockchip-ep.c err = rockchip_pcie_parse_ep_dt(rockchip, ep); ep 605 drivers/pci/controller/pcie-rockchip-ep.c max_regions = ep->max_regions; ep 606 drivers/pci/controller/pcie-rockchip-ep.c ep->ob_addr = devm_kcalloc(dev, max_regions, sizeof(*ep->ob_addr), ep 609 drivers/pci/controller/pcie-rockchip-ep.c if (!ep->ob_addr) { ep 624 drivers/pci/controller/pcie-rockchip-ep.c ep->irq_cpu_addr = pci_epc_mem_alloc_addr(epc, &ep->irq_phys_addr, ep 626 drivers/pci/controller/pcie-rockchip-ep.c if (!ep->irq_cpu_addr) { ep 632 drivers/pci/controller/pcie-rockchip-ep.c ep->irq_pci_addr = ROCKCHIP_PCIE_EP_DUMMY_IRQ_ADDR; ep 86 drivers/phy/samsung/phy-exynos-pcie.c struct exynos_pcie_phy *ep = phy_get_drvdata(phy); ep 89 drivers/phy/samsung/phy-exynos-pcie.c exynos_pcie_phy_writel(ep->phy_base, 0x29, PCIE_PHY_DCC_FEEDBACK); ep 92 drivers/phy/samsung/phy-exynos-pcie.c exynos_pcie_phy_writel(ep->phy_base, 0xd5, PCIE_PHY_IMPEDANCE); ep 95 drivers/phy/samsung/phy-exynos-pcie.c exynos_pcie_phy_writel(ep->phy_base, 0x14, PCIE_PHY_PLL_DIV_0); ep 96 drivers/phy/samsung/phy-exynos-pcie.c exynos_pcie_phy_writel(ep->phy_base, 0x12, PCIE_PHY_PLL_DIV_1); ep 99 drivers/phy/samsung/phy-exynos-pcie.c exynos_pcie_phy_writel(ep->phy_base, 0x7f, PCIE_PHY_TRSV0_DRV_LVL); ep 102 drivers/phy/samsung/phy-exynos-pcie.c exynos_pcie_phy_writel(ep->phy_base, 0x0, PCIE_PHY_TRSV0_EMP_LVL); ep 105 drivers/phy/samsung/phy-exynos-pcie.c exynos_pcie_phy_writel(ep->phy_base, 0xe7, PCIE_PHY_PLL_BIAS); ep 106 drivers/phy/samsung/phy-exynos-pcie.c exynos_pcie_phy_writel(ep->phy_base, 0x82, PCIE_PHY_TRSV0_RXCDR); ep 107 drivers/phy/samsung/phy-exynos-pcie.c exynos_pcie_phy_writel(ep->phy_base, 0x82, PCIE_PHY_TRSV1_RXCDR); ep 108 drivers/phy/samsung/phy-exynos-pcie.c exynos_pcie_phy_writel(ep->phy_base, 0x82, PCIE_PHY_TRSV2_RXCDR); ep 109 drivers/phy/samsung/phy-exynos-pcie.c exynos_pcie_phy_writel(ep->phy_base, 0x82, PCIE_PHY_TRSV3_RXCDR); ep 112 drivers/phy/samsung/phy-exynos-pcie.c exynos_pcie_phy_writel(ep->phy_base, 0x39, PCIE_PHY_TRSV0_EMP_LVL); ep 113 drivers/phy/samsung/phy-exynos-pcie.c exynos_pcie_phy_writel(ep->phy_base, 0x39, PCIE_PHY_TRSV1_EMP_LVL); ep 114 drivers/phy/samsung/phy-exynos-pcie.c exynos_pcie_phy_writel(ep->phy_base, 0x39, PCIE_PHY_TRSV2_EMP_LVL); ep 115 drivers/phy/samsung/phy-exynos-pcie.c exynos_pcie_phy_writel(ep->phy_base, 0x39, PCIE_PHY_TRSV3_EMP_LVL); ep 118 drivers/phy/samsung/phy-exynos-pcie.c exynos_pcie_phy_writel(ep->phy_base, 0x20, PCIE_PHY_TRSV0_LVCC); ep 119 drivers/phy/samsung/phy-exynos-pcie.c exynos_pcie_phy_writel(ep->phy_base, 0xa0, PCIE_PHY_TRSV1_LVCC); ep 120 drivers/phy/samsung/phy-exynos-pcie.c exynos_pcie_phy_writel(ep->phy_base, 0xa0, PCIE_PHY_TRSV2_LVCC); ep 121 drivers/phy/samsung/phy-exynos-pcie.c exynos_pcie_phy_writel(ep->phy_base, 0xa0, PCIE_PHY_TRSV3_LVCC); ep 124 drivers/phy/samsung/phy-exynos-pcie.c exynos_pcie_phy_writel(ep->blk_base, 1, PCIE_PHY_COMMON_RESET); ep 126 drivers/phy/samsung/phy-exynos-pcie.c exynos_pcie_phy_writel(ep->blk_base, 0, PCIE_PHY_COMMON_RESET); ep 133 drivers/phy/samsung/phy-exynos-pcie.c struct exynos_pcie_phy *ep = phy_get_drvdata(phy); ep 136 drivers/phy/samsung/phy-exynos-pcie.c exynos_pcie_phy_writel(ep->blk_base, 0, PCIE_PHY_COMMON_RESET); ep 137 drivers/phy/samsung/phy-exynos-pcie.c exynos_pcie_phy_writel(ep->blk_base, 0, PCIE_PHY_CMN_REG); ep 138 drivers/phy/samsung/phy-exynos-pcie.c exynos_pcie_phy_writel(ep->blk_base, 0, PCIE_PHY_TRSVREG_RESET); ep 139 drivers/phy/samsung/phy-exynos-pcie.c exynos_pcie_phy_writel(ep->blk_base, 0, PCIE_PHY_TRSV_RESET); ep 141 drivers/phy/samsung/phy-exynos-pcie.c val = exynos_pcie_phy_readl(ep->phy_base, PCIE_PHY_COMMON_POWER); ep 143 drivers/phy/samsung/phy-exynos-pcie.c exynos_pcie_phy_writel(ep->phy_base, val, PCIE_PHY_COMMON_POWER); ep 145 drivers/phy/samsung/phy-exynos-pcie.c val = exynos_pcie_phy_readl(ep->phy_base, PCIE_PHY_TRSV0_POWER); ep 147 drivers/phy/samsung/phy-exynos-pcie.c exynos_pcie_phy_writel(ep->phy_base, val, PCIE_PHY_TRSV0_POWER); ep 149 drivers/phy/samsung/phy-exynos-pcie.c val = exynos_pcie_phy_readl(ep->phy_base, PCIE_PHY_TRSV1_POWER); ep 151 drivers/phy/samsung/phy-exynos-pcie.c exynos_pcie_phy_writel(ep->phy_base, val, PCIE_PHY_TRSV1_POWER); ep 153 drivers/phy/samsung/phy-exynos-pcie.c val = exynos_pcie_phy_readl(ep->phy_base, PCIE_PHY_TRSV2_POWER); ep 155 drivers/phy/samsung/phy-exynos-pcie.c exynos_pcie_phy_writel(ep->phy_base, val, PCIE_PHY_TRSV2_POWER); ep 157 drivers/phy/samsung/phy-exynos-pcie.c val = exynos_pcie_phy_readl(ep->phy_base, PCIE_PHY_TRSV3_POWER); ep 159 drivers/phy/samsung/phy-exynos-pcie.c exynos_pcie_phy_writel(ep->phy_base, val, PCIE_PHY_TRSV3_POWER); ep 166 drivers/phy/samsung/phy-exynos-pcie.c struct exynos_pcie_phy *ep = phy_get_drvdata(phy); ep 169 drivers/phy/samsung/phy-exynos-pcie.c if (readl_poll_timeout(ep->phy_base + PCIE_PHY_PLL_LOCKED, val, ep 175 drivers/phy/samsung/phy-exynos-pcie.c val = exynos_pcie_phy_readl(ep->phy_base, PCIE_PHY_COMMON_POWER); ep 177 drivers/phy/samsung/phy-exynos-pcie.c exynos_pcie_phy_writel(ep->phy_base, val, PCIE_PHY_COMMON_POWER); ep 179 drivers/phy/samsung/phy-exynos-pcie.c val = exynos_pcie_phy_readl(ep->phy_base, PCIE_PHY_TRSV0_POWER); ep 181 drivers/phy/samsung/phy-exynos-pcie.c exynos_pcie_phy_writel(ep->phy_base, val, PCIE_PHY_TRSV0_POWER); ep 183 drivers/phy/samsung/phy-exynos-pcie.c val = exynos_pcie_phy_readl(ep->phy_base, PCIE_PHY_TRSV1_POWER); ep 185 drivers/phy/samsung/phy-exynos-pcie.c exynos_pcie_phy_writel(ep->phy_base, val, PCIE_PHY_TRSV1_POWER); ep 187 drivers/phy/samsung/phy-exynos-pcie.c val = exynos_pcie_phy_readl(ep->phy_base, PCIE_PHY_TRSV2_POWER); ep 189 drivers/phy/samsung/phy-exynos-pcie.c exynos_pcie_phy_writel(ep->phy_base, val, PCIE_PHY_TRSV2_POWER); ep 191 drivers/phy/samsung/phy-exynos-pcie.c val = exynos_pcie_phy_readl(ep->phy_base, PCIE_PHY_TRSV3_POWER); ep 193 drivers/phy/samsung/phy-exynos-pcie.c exynos_pcie_phy_writel(ep->phy_base, val, PCIE_PHY_TRSV3_POWER); ep 200 drivers/phy/samsung/phy-exynos-pcie.c struct exynos_pcie_phy *ep = phy_get_drvdata(phy); ep 202 drivers/phy/samsung/phy-exynos-pcie.c exynos_pcie_phy_writel(ep->blk_base, 0, PCIE_PHY_MAC_RESET); ep 203 drivers/phy/samsung/phy-exynos-pcie.c exynos_pcie_phy_writel(ep->blk_base, 1, PCIE_PHY_GLOBAL_RESET); ep 204 drivers/phy/samsung/phy-exynos-pcie.c exynos_pcie_phy_writel(ep->blk_base, 0, PCIE_PHY_GLOBAL_RESET); ep 2880 drivers/scsi/advansys.c ASCEEP_CONFIG *ep; ep 2888 drivers/scsi/advansys.c ep = &boardp->eep_config.asc_eep; ep 2894 drivers/scsi/advansys.c if (asc_get_eeprom_string((ushort *)&ep->adapter_info[0], serialstr) ep 2897 drivers/scsi/advansys.c else if (ep->adapter_info[5] == 0xBB) ep 2905 drivers/scsi/advansys.c ASC_EEP_GET_CHIP_ID(ep), ep->max_total_qng, ep 2906 drivers/scsi/advansys.c ep->max_tag_qng); ep 2909 drivers/scsi/advansys.c " cntl 0x%x, no_scam 0x%x\n", ep->cntl, ep->no_scam); ep 2918 drivers/scsi/advansys.c (ep->disc_enable & ADV_TID_TO_TIDMASK(i)) ? 'Y' : 'N'); ep 2923 drivers/scsi/advansys.c (ep->use_cmd_qng & ADV_TID_TO_TIDMASK(i)) ? 'Y' : 'N'); ep 2928 drivers/scsi/advansys.c (ep->start_motor & ADV_TID_TO_TIDMASK(i)) ? 'Y' : 'N'); ep 2933 drivers/scsi/advansys.c (ep->init_sdtr & ADV_TID_TO_TIDMASK(i)) ? 'Y' : 'N'); ep 2940 drivers/scsi/advansys.c isa_dma_speed[ASC_EEP_GET_DMA_SPD(ep)]); ep 11033 drivers/scsi/advansys.c ASCEEP_CONFIG *ep; ep 11044 drivers/scsi/advansys.c ep = &boardp->eep_config.asc_eep; ep 11046 drivers/scsi/advansys.c ep->init_sdtr = asc_dvc_varp->cfg->sdtr_enable; ep 11047 drivers/scsi/advansys.c ep->disc_enable = asc_dvc_varp->cfg->disc_enable; ep 11048 drivers/scsi/advansys.c ep->use_cmd_qng = asc_dvc_varp->cfg->cmd_qng_enabled; ep 11049 drivers/scsi/advansys.c ASC_EEP_SET_DMA_SPD(ep, asc_dvc_varp->cfg->isa_dma_speed); ep 11050 drivers/scsi/advansys.c ep->start_motor = asc_dvc_varp->start_motor; ep 11051 drivers/scsi/advansys.c ep->cntl = asc_dvc_varp->dvc_cntl; ep 11052 drivers/scsi/advansys.c ep->no_scam = asc_dvc_varp->no_scam; ep 11053 drivers/scsi/advansys.c ep->max_total_qng = asc_dvc_varp->max_total_qng; ep 11054 drivers/scsi/advansys.c ASC_EEP_SET_CHIP_ID(ep, asc_dvc_varp->cfg->chip_scsi_id); ep 11056 drivers/scsi/advansys.c ep->max_tag_qng = asc_dvc_varp->cfg->max_tag_qng[0]; ep 11057 drivers/scsi/advansys.c ep->adapter_info[0] = asc_dvc_varp->cfg->adapter_info[0]; ep 11058 drivers/scsi/advansys.c ep->adapter_info[1] = asc_dvc_varp->cfg->adapter_info[1]; ep 11059 drivers/scsi/advansys.c ep->adapter_info[2] = asc_dvc_varp->cfg->adapter_info[2]; ep 11060 drivers/scsi/advansys.c ep->adapter_info[3] = asc_dvc_varp->cfg->adapter_info[3]; ep 11061 drivers/scsi/advansys.c ep->adapter_info[4] = asc_dvc_varp->cfg->adapter_info[4]; ep 11062 drivers/scsi/advansys.c ep->adapter_info[5] = asc_dvc_varp->cfg->adapter_info[5]; ep 34 drivers/scsi/be2iscsi/be_iscsi.c struct iscsi_cls_session *beiscsi_session_create(struct iscsi_endpoint *ep, ep 48 drivers/scsi/be2iscsi/be_iscsi.c if (!ep) { ep 52 drivers/scsi/be2iscsi/be_iscsi.c beiscsi_ep = ep->dd_data; ep 153 drivers/scsi/be2iscsi/be_iscsi.c beiscsi_conn->ep = NULL; ep 181 drivers/scsi/be2iscsi/be_iscsi.c struct iscsi_endpoint *ep; ep 184 drivers/scsi/be2iscsi/be_iscsi.c ep = iscsi_lookup_endpoint(transport_fd); ep 185 drivers/scsi/be2iscsi/be_iscsi.c if (!ep) ep 188 drivers/scsi/be2iscsi/be_iscsi.c beiscsi_ep = ep->dd_data; ep 203 drivers/scsi/be2iscsi/be_iscsi.c beiscsi_ep != phba->conn_table[cri_index]->ep) { ep 215 drivers/scsi/be2iscsi/be_iscsi.c beiscsi_conn->ep = beiscsi_ep; ep 615 drivers/scsi/be2iscsi/be_iscsi.c int beiscsi_ep_get_param(struct iscsi_endpoint *ep, ep 618 drivers/scsi/be2iscsi/be_iscsi.c struct beiscsi_endpoint *beiscsi_ep = ep->dd_data; ep 908 drivers/scsi/be2iscsi/be_iscsi.c beiscsi_ep = beiscsi_conn->ep; ep 1036 drivers/scsi/be2iscsi/be_iscsi.c static int beiscsi_open_conn(struct iscsi_endpoint *ep, ep 1040 drivers/scsi/be2iscsi/be_iscsi.c struct beiscsi_endpoint *beiscsi_ep = ep->dd_data; ep 1062 drivers/scsi/be2iscsi/be_iscsi.c (beiscsi_ep->ep_cid)] = ep; ep 1113 drivers/scsi/be2iscsi/be_iscsi.c beiscsi_ep = ep->dd_data; ep 1138 drivers/scsi/be2iscsi/be_iscsi.c struct iscsi_endpoint *ep; ep 1161 drivers/scsi/be2iscsi/be_iscsi.c ep = iscsi_create_endpoint(sizeof(struct beiscsi_endpoint)); ep 1162 drivers/scsi/be2iscsi/be_iscsi.c if (!ep) { ep 1167 drivers/scsi/be2iscsi/be_iscsi.c beiscsi_ep = ep->dd_data; ep 1169 drivers/scsi/be2iscsi/be_iscsi.c beiscsi_ep->openiscsi_ep = ep; ep 1170 drivers/scsi/be2iscsi/be_iscsi.c ret = beiscsi_open_conn(ep, NULL, dst_addr, non_blocking); ep 1177 drivers/scsi/be2iscsi/be_iscsi.c return ep; ep 1180 drivers/scsi/be2iscsi/be_iscsi.c iscsi_destroy_endpoint(ep); ep 1191 drivers/scsi/be2iscsi/be_iscsi.c int beiscsi_ep_poll(struct iscsi_endpoint *ep, int timeout_ms) ep 1193 drivers/scsi/be2iscsi/be_iscsi.c struct beiscsi_endpoint *beiscsi_ep = ep->dd_data; ep 1290 drivers/scsi/be2iscsi/be_iscsi.c void beiscsi_ep_disconnect(struct iscsi_endpoint *ep) ep 1297 drivers/scsi/be2iscsi/be_iscsi.c beiscsi_ep = ep->dd_data; ep 36 drivers/scsi/be2iscsi/be_iscsi.h struct iscsi_cls_session *beiscsi_session_create(struct iscsi_endpoint *ep, ep 52 drivers/scsi/be2iscsi/be_iscsi.h int beiscsi_ep_get_param(struct iscsi_endpoint *ep, enum iscsi_param param, ep 69 drivers/scsi/be2iscsi/be_iscsi.h int beiscsi_ep_poll(struct iscsi_endpoint *ep, int timeout_ms); ep 71 drivers/scsi/be2iscsi/be_iscsi.h void beiscsi_ep_disconnect(struct iscsi_endpoint *ep); ep 1859 drivers/scsi/be2iscsi/be_main.c struct iscsi_endpoint *ep; ep 1892 drivers/scsi/be2iscsi/be_main.c ep = phba->ep_array[cri_index]; ep 1894 drivers/scsi/be2iscsi/be_main.c if (ep == NULL) { ep 1905 drivers/scsi/be2iscsi/be_main.c beiscsi_ep = ep->dd_data; ep 413 drivers/scsi/be2iscsi/be_main.h struct beiscsi_endpoint *ep; ep 296 drivers/scsi/bnx2i/bnx2i.h struct bnx2i_endpoint *ep; ep 852 drivers/scsi/bnx2i/bnx2i.h struct bnx2i_endpoint *ep); ep 855 drivers/scsi/bnx2i/bnx2i.h struct bnx2i_endpoint *ep); ep 858 drivers/scsi/bnx2i/bnx2i.h struct bnx2i_endpoint *ep); ep 860 drivers/scsi/bnx2i/bnx2i.h struct bnx2i_endpoint *ep); ep 867 drivers/scsi/bnx2i/bnx2i.h extern int bnx2i_map_ep_dbell_regs(struct bnx2i_endpoint *ep); ep 868 drivers/scsi/bnx2i/bnx2i.h extern int bnx2i_arm_cq_event_coalescing(struct bnx2i_endpoint *ep, u8 action); ep 30 drivers/scsi/bnx2i/bnx2i_hwi.c static u32 bnx2i_get_cid_num(struct bnx2i_endpoint *ep) ep 34 drivers/scsi/bnx2i/bnx2i_hwi.c if (test_bit(BNX2I_NX2_DEV_57710, &ep->hba->cnic_dev_type)) ep 35 drivers/scsi/bnx2i/bnx2i_hwi.c cid = ep->ep_cid; ep 37 drivers/scsi/bnx2i/bnx2i_hwi.c cid = GET_CID_NUM(ep->ep_cid); ep 138 drivers/scsi/bnx2i/bnx2i_hwi.c int bnx2i_arm_cq_event_coalescing(struct bnx2i_endpoint *ep, u8 action) ep 146 drivers/scsi/bnx2i/bnx2i_hwi.c if (!test_bit(BNX2I_NX2_DEV_57710, &ep->hba->cnic_dev_type)) ep 153 drivers/scsi/bnx2i/bnx2i_hwi.c cq_db = (struct bnx2i_5771x_cq_db *) ep->qp.cq_pgtbl_virt; ep 160 drivers/scsi/bnx2i/bnx2i_hwi.c num_active_cmds = atomic_read(&ep->num_active_cmds); ep 164 drivers/scsi/bnx2i/bnx2i_hwi.c next_index = num_active_cmds >> ep->ec_shift; ep 170 drivers/scsi/bnx2i/bnx2i_hwi.c cq_index = ep->qp.cqe_exp_seq_sn + next_index - 1; ep 171 drivers/scsi/bnx2i/bnx2i_hwi.c if (cq_index > ep->qp.cqe_size * 2) ep 172 drivers/scsi/bnx2i/bnx2i_hwi.c cq_index -= ep->qp.cqe_size * 2; ep 195 drivers/scsi/bnx2i/bnx2i_hwi.c if (!bnx2i_conn->ep->qp.rqe_left) ep 198 drivers/scsi/bnx2i/bnx2i_hwi.c bnx2i_conn->ep->qp.rqe_left--; ep 199 drivers/scsi/bnx2i/bnx2i_hwi.c memcpy(ptr, (u8 *) bnx2i_conn->ep->qp.rq_cons_qe, len); ep 200 drivers/scsi/bnx2i/bnx2i_hwi.c if (bnx2i_conn->ep->qp.rq_cons_qe == bnx2i_conn->ep->qp.rq_last_qe) { ep 201 drivers/scsi/bnx2i/bnx2i_hwi.c bnx2i_conn->ep->qp.rq_cons_qe = bnx2i_conn->ep->qp.rq_first_qe; ep 202 drivers/scsi/bnx2i/bnx2i_hwi.c bnx2i_conn->ep->qp.rq_cons_idx = 0; ep 204 drivers/scsi/bnx2i/bnx2i_hwi.c bnx2i_conn->ep->qp.rq_cons_qe++; ep 205 drivers/scsi/bnx2i/bnx2i_hwi.c bnx2i_conn->ep->qp.rq_cons_idx++; ep 220 drivers/scsi/bnx2i/bnx2i_hwi.c writel(cpu_to_le32(msg), conn->ep->qp.ctx_base); ep 234 drivers/scsi/bnx2i/bnx2i_hwi.c u16 hi_bit = (bnx2i_conn->ep->qp.rq_prod_idx & 0x8000); ep 235 drivers/scsi/bnx2i/bnx2i_hwi.c struct bnx2i_endpoint *ep = bnx2i_conn->ep; ep 237 drivers/scsi/bnx2i/bnx2i_hwi.c ep->qp.rqe_left += count; ep 238 drivers/scsi/bnx2i/bnx2i_hwi.c ep->qp.rq_prod_idx &= 0x7FFF; ep 239 drivers/scsi/bnx2i/bnx2i_hwi.c ep->qp.rq_prod_idx += count; ep 241 drivers/scsi/bnx2i/bnx2i_hwi.c if (ep->qp.rq_prod_idx > bnx2i_conn->hba->max_rqes) { ep 242 drivers/scsi/bnx2i/bnx2i_hwi.c ep->qp.rq_prod_idx %= bnx2i_conn->hba->max_rqes; ep 244 drivers/scsi/bnx2i/bnx2i_hwi.c ep->qp.rq_prod_idx |= 0x8000; ep 246 drivers/scsi/bnx2i/bnx2i_hwi.c ep->qp.rq_prod_idx |= hi_bit; ep 248 drivers/scsi/bnx2i/bnx2i_hwi.c if (test_bit(BNX2I_NX2_DEV_57710, &ep->hba->cnic_dev_type)) { ep 249 drivers/scsi/bnx2i/bnx2i_hwi.c rq_db = (struct bnx2i_5771x_sq_rq_db *) ep->qp.rq_pgtbl_virt; ep 250 drivers/scsi/bnx2i/bnx2i_hwi.c rq_db->prod_idx = ep->qp.rq_prod_idx; ep 253 drivers/scsi/bnx2i/bnx2i_hwi.c writew(ep->qp.rq_prod_idx, ep 254 drivers/scsi/bnx2i/bnx2i_hwi.c ep->qp.ctx_base + CNIC_RECV_DOORBELL); ep 271 drivers/scsi/bnx2i/bnx2i_hwi.c struct bnx2i_endpoint *ep = bnx2i_conn->ep; ep 273 drivers/scsi/bnx2i/bnx2i_hwi.c atomic_inc(&ep->num_active_cmds); ep 275 drivers/scsi/bnx2i/bnx2i_hwi.c if (test_bit(BNX2I_NX2_DEV_57710, &ep->hba->cnic_dev_type)) { ep 276 drivers/scsi/bnx2i/bnx2i_hwi.c sq_db = (struct bnx2i_5771x_sq_rq_db *) ep->qp.sq_pgtbl_virt; ep 277 drivers/scsi/bnx2i/bnx2i_hwi.c sq_db->prod_idx = ep->qp.sq_prod_idx; ep 280 drivers/scsi/bnx2i/bnx2i_hwi.c writew(count, ep->qp.ctx_base + CNIC_SEND_DOORBELL); ep 297 drivers/scsi/bnx2i/bnx2i_hwi.c if (bnx2i_conn->ep->qp.sq_prod_qe == ep 298 drivers/scsi/bnx2i/bnx2i_hwi.c bnx2i_conn->ep->qp.sq_last_qe) ep 299 drivers/scsi/bnx2i/bnx2i_hwi.c bnx2i_conn->ep->qp.sq_prod_qe = ep 300 drivers/scsi/bnx2i/bnx2i_hwi.c bnx2i_conn->ep->qp.sq_first_qe; ep 302 drivers/scsi/bnx2i/bnx2i_hwi.c bnx2i_conn->ep->qp.sq_prod_qe++; ep 304 drivers/scsi/bnx2i/bnx2i_hwi.c if ((bnx2i_conn->ep->qp.sq_prod_qe + count) <= ep 305 drivers/scsi/bnx2i/bnx2i_hwi.c bnx2i_conn->ep->qp.sq_last_qe) ep 306 drivers/scsi/bnx2i/bnx2i_hwi.c bnx2i_conn->ep->qp.sq_prod_qe += count; ep 308 drivers/scsi/bnx2i/bnx2i_hwi.c tmp_cnt = bnx2i_conn->ep->qp.sq_last_qe - ep 309 drivers/scsi/bnx2i/bnx2i_hwi.c bnx2i_conn->ep->qp.sq_prod_qe; ep 310 drivers/scsi/bnx2i/bnx2i_hwi.c bnx2i_conn->ep->qp.sq_prod_qe = ep 311 drivers/scsi/bnx2i/bnx2i_hwi.c &bnx2i_conn->ep->qp.sq_first_qe[count - ep 315 drivers/scsi/bnx2i/bnx2i_hwi.c bnx2i_conn->ep->qp.sq_prod_idx += count; ep 317 drivers/scsi/bnx2i/bnx2i_hwi.c bnx2i_ring_sq_dbell(bnx2i_conn, bnx2i_conn->ep->qp.sq_prod_idx); ep 338 drivers/scsi/bnx2i/bnx2i_hwi.c bnx2i_conn->ep->qp.sq_prod_qe; ep 395 drivers/scsi/bnx2i/bnx2i_hwi.c bnx2i_conn->ep->qp.sq_prod_qe; ep 464 drivers/scsi/bnx2i/bnx2i_hwi.c text_wqe = (struct bnx2i_text_request *) bnx2i_conn->ep->qp.sq_prod_qe; ep 510 drivers/scsi/bnx2i/bnx2i_hwi.c bnx2i_conn->ep->qp.sq_prod_qe; ep 534 drivers/scsi/bnx2i/bnx2i_hwi.c struct bnx2i_endpoint *ep = bnx2i_conn->ep; ep 539 drivers/scsi/bnx2i/bnx2i_hwi.c nopout_wqe = (struct bnx2i_nop_out_request *)ep->qp.sq_prod_qe; ep 548 drivers/scsi/bnx2i/bnx2i_hwi.c if (test_bit(BNX2I_NX2_DEV_57710, &ep->hba->cnic_dev_type)) ep 597 drivers/scsi/bnx2i/bnx2i_hwi.c bnx2i_conn->ep->qp.sq_prod_qe; ep 616 drivers/scsi/bnx2i/bnx2i_hwi.c bnx2i_conn->ep->state = EP_STATE_LOGOUT_SENT; ep 644 drivers/scsi/bnx2i/bnx2i_hwi.c if (test_bit(BNX2I_NX2_DEV_57710, &bnx2i_conn->ep->hba->cnic_dev_type)) ep 645 drivers/scsi/bnx2i/bnx2i_hwi.c update_wqe->context_id = bnx2i_conn->ep->ep_cid; ep 647 drivers/scsi/bnx2i/bnx2i_hwi.c update_wqe->context_id = (bnx2i_conn->ep->ep_cid >> 7); ep 687 drivers/scsi/bnx2i/bnx2i_hwi.c struct bnx2i_endpoint *ep = from_timer(ep, t, ofld_timer); ep 689 drivers/scsi/bnx2i/bnx2i_hwi.c if (ep->state == EP_STATE_OFLD_START) { ep 691 drivers/scsi/bnx2i/bnx2i_hwi.c ep->state = EP_STATE_OFLD_FAILED; ep 692 drivers/scsi/bnx2i/bnx2i_hwi.c } else if (ep->state == EP_STATE_DISCONN_START) { ep 694 drivers/scsi/bnx2i/bnx2i_hwi.c ep->state = EP_STATE_DISCONN_TIMEDOUT; ep 695 drivers/scsi/bnx2i/bnx2i_hwi.c } else if (ep->state == EP_STATE_CLEANUP_START) { ep 697 drivers/scsi/bnx2i/bnx2i_hwi.c ep->state = EP_STATE_CLEANUP_FAILED; ep 700 drivers/scsi/bnx2i/bnx2i_hwi.c wake_up_interruptible(&ep->ofld_wait); ep 731 drivers/scsi/bnx2i/bnx2i_hwi.c (struct bnx2i_cleanup_request *)cmd->conn->ep->qp.sq_prod_qe; ep 750 drivers/scsi/bnx2i/bnx2i_hwi.c int bnx2i_send_conn_destroy(struct bnx2i_hba *hba, struct bnx2i_endpoint *ep) ep 762 drivers/scsi/bnx2i/bnx2i_hwi.c if (test_bit(BNX2I_NX2_DEV_57710, &ep->hba->cnic_dev_type)) ep 763 drivers/scsi/bnx2i/bnx2i_hwi.c conn_cleanup.context_id = ep->ep_cid; ep 765 drivers/scsi/bnx2i/bnx2i_hwi.c conn_cleanup.context_id = (ep->ep_cid >> 7); ep 767 drivers/scsi/bnx2i/bnx2i_hwi.c conn_cleanup.reserved0 = (u16)ep->ep_iscsi_cid; ep 785 drivers/scsi/bnx2i/bnx2i_hwi.c struct bnx2i_endpoint *ep) ep 799 drivers/scsi/bnx2i/bnx2i_hwi.c ofld_req1.iscsi_conn_id = (u16) ep->ep_iscsi_cid; ep 801 drivers/scsi/bnx2i/bnx2i_hwi.c dma_addr = ep->qp.sq_pgtbl_phys; ep 805 drivers/scsi/bnx2i/bnx2i_hwi.c dma_addr = ep->qp.cq_pgtbl_phys; ep 813 drivers/scsi/bnx2i/bnx2i_hwi.c dma_addr = ep->qp.rq_pgtbl_phys; ep 817 drivers/scsi/bnx2i/bnx2i_hwi.c ptbl = (u32 *) ep->qp.sq_pgtbl_virt; ep 822 drivers/scsi/bnx2i/bnx2i_hwi.c ptbl = (u32 *) ep->qp.cq_pgtbl_virt; ep 845 drivers/scsi/bnx2i/bnx2i_hwi.c struct bnx2i_endpoint *ep) ep 860 drivers/scsi/bnx2i/bnx2i_hwi.c ofld_req1.iscsi_conn_id = (u16) ep->ep_iscsi_cid; ep 862 drivers/scsi/bnx2i/bnx2i_hwi.c dma_addr = ep->qp.sq_pgtbl_phys + ISCSI_SQ_DB_SIZE; ep 866 drivers/scsi/bnx2i/bnx2i_hwi.c dma_addr = ep->qp.cq_pgtbl_phys + ISCSI_CQ_DB_SIZE; ep 874 drivers/scsi/bnx2i/bnx2i_hwi.c dma_addr = ep->qp.rq_pgtbl_phys + ISCSI_RQ_DB_SIZE; ep 878 drivers/scsi/bnx2i/bnx2i_hwi.c ptbl = (u32 *)((u8 *)ep->qp.sq_pgtbl_virt + ISCSI_SQ_DB_SIZE); ep 882 drivers/scsi/bnx2i/bnx2i_hwi.c ptbl = (u32 *)((u8 *)ep->qp.cq_pgtbl_virt + ISCSI_CQ_DB_SIZE); ep 891 drivers/scsi/bnx2i/bnx2i_hwi.c ptbl = (u32 *)((u8 *)ep->qp.rq_pgtbl_virt + ISCSI_RQ_DB_SIZE); ep 913 drivers/scsi/bnx2i/bnx2i_hwi.c int bnx2i_send_conn_ofld_req(struct bnx2i_hba *hba, struct bnx2i_endpoint *ep) ep 918 drivers/scsi/bnx2i/bnx2i_hwi.c rc = bnx2i_5771x_send_conn_ofld_req(hba, ep); ep 920 drivers/scsi/bnx2i/bnx2i_hwi.c rc = bnx2i_570x_send_conn_ofld_req(hba, ep); ep 934 drivers/scsi/bnx2i/bnx2i_hwi.c static void setup_qp_page_tables(struct bnx2i_endpoint *ep) ep 941 drivers/scsi/bnx2i/bnx2i_hwi.c if (test_bit(BNX2I_NX2_DEV_57710, &ep->hba->cnic_dev_type)) ep 947 drivers/scsi/bnx2i/bnx2i_hwi.c memset(ep->qp.sq_pgtbl_virt, 0, ep->qp.sq_pgtbl_size); ep 948 drivers/scsi/bnx2i/bnx2i_hwi.c num_pages = ep->qp.sq_mem_size / CNIC_PAGE_SIZE; ep 949 drivers/scsi/bnx2i/bnx2i_hwi.c page = ep->qp.sq_phys; ep 952 drivers/scsi/bnx2i/bnx2i_hwi.c ptbl = (u32 *)((u8 *)ep->qp.sq_pgtbl_virt + ISCSI_SQ_DB_SIZE); ep 954 drivers/scsi/bnx2i/bnx2i_hwi.c ptbl = (u32 *) ep->qp.sq_pgtbl_virt; ep 975 drivers/scsi/bnx2i/bnx2i_hwi.c memset(ep->qp.rq_pgtbl_virt, 0, ep->qp.rq_pgtbl_size); ep 976 drivers/scsi/bnx2i/bnx2i_hwi.c num_pages = ep->qp.rq_mem_size / CNIC_PAGE_SIZE; ep 977 drivers/scsi/bnx2i/bnx2i_hwi.c page = ep->qp.rq_phys; ep 980 drivers/scsi/bnx2i/bnx2i_hwi.c ptbl = (u32 *)((u8 *)ep->qp.rq_pgtbl_virt + ISCSI_RQ_DB_SIZE); ep 982 drivers/scsi/bnx2i/bnx2i_hwi.c ptbl = (u32 *) ep->qp.rq_pgtbl_virt; ep 1003 drivers/scsi/bnx2i/bnx2i_hwi.c memset(ep->qp.cq_pgtbl_virt, 0, ep->qp.cq_pgtbl_size); ep 1004 drivers/scsi/bnx2i/bnx2i_hwi.c num_pages = ep->qp.cq_mem_size / CNIC_PAGE_SIZE; ep 1005 drivers/scsi/bnx2i/bnx2i_hwi.c page = ep->qp.cq_phys; ep 1008 drivers/scsi/bnx2i/bnx2i_hwi.c ptbl = (u32 *)((u8 *)ep->qp.cq_pgtbl_virt + ISCSI_CQ_DB_SIZE); ep 1010 drivers/scsi/bnx2i/bnx2i_hwi.c ptbl = (u32 *) ep->qp.cq_pgtbl_virt; ep 1042 drivers/scsi/bnx2i/bnx2i_hwi.c int bnx2i_alloc_qp_resc(struct bnx2i_hba *hba, struct bnx2i_endpoint *ep) ep 1046 drivers/scsi/bnx2i/bnx2i_hwi.c ep->hba = hba; ep 1047 drivers/scsi/bnx2i/bnx2i_hwi.c ep->conn = NULL; ep 1048 drivers/scsi/bnx2i/bnx2i_hwi.c ep->ep_cid = ep->ep_iscsi_cid = ep->ep_pg_cid = 0; ep 1051 drivers/scsi/bnx2i/bnx2i_hwi.c ep->qp.sq_mem_size = hba->max_sqes * BNX2I_SQ_WQE_SIZE; ep 1052 drivers/scsi/bnx2i/bnx2i_hwi.c ep->qp.sq_mem_size = ep 1053 drivers/scsi/bnx2i/bnx2i_hwi.c (ep->qp.sq_mem_size + (CNIC_PAGE_SIZE - 1)) & CNIC_PAGE_MASK; ep 1054 drivers/scsi/bnx2i/bnx2i_hwi.c ep->qp.sq_pgtbl_size = ep 1055 drivers/scsi/bnx2i/bnx2i_hwi.c (ep->qp.sq_mem_size / CNIC_PAGE_SIZE) * sizeof(void *); ep 1056 drivers/scsi/bnx2i/bnx2i_hwi.c ep->qp.sq_pgtbl_size = ep 1057 drivers/scsi/bnx2i/bnx2i_hwi.c (ep->qp.sq_pgtbl_size + (CNIC_PAGE_SIZE - 1)) & CNIC_PAGE_MASK; ep 1059 drivers/scsi/bnx2i/bnx2i_hwi.c ep->qp.sq_pgtbl_virt = ep 1060 drivers/scsi/bnx2i/bnx2i_hwi.c dma_alloc_coherent(&hba->pcidev->dev, ep->qp.sq_pgtbl_size, ep 1061 drivers/scsi/bnx2i/bnx2i_hwi.c &ep->qp.sq_pgtbl_phys, GFP_KERNEL); ep 1062 drivers/scsi/bnx2i/bnx2i_hwi.c if (!ep->qp.sq_pgtbl_virt) { ep 1064 drivers/scsi/bnx2i/bnx2i_hwi.c ep->qp.sq_pgtbl_size); ep 1069 drivers/scsi/bnx2i/bnx2i_hwi.c ep->qp.sq_virt = ep 1070 drivers/scsi/bnx2i/bnx2i_hwi.c dma_alloc_coherent(&hba->pcidev->dev, ep->qp.sq_mem_size, ep 1071 drivers/scsi/bnx2i/bnx2i_hwi.c &ep->qp.sq_phys, GFP_KERNEL); ep 1072 drivers/scsi/bnx2i/bnx2i_hwi.c if (!ep->qp.sq_virt) { ep 1074 drivers/scsi/bnx2i/bnx2i_hwi.c ep->qp.sq_mem_size); ep 1078 drivers/scsi/bnx2i/bnx2i_hwi.c ep->qp.sq_first_qe = ep->qp.sq_virt; ep 1079 drivers/scsi/bnx2i/bnx2i_hwi.c ep->qp.sq_prod_qe = ep->qp.sq_first_qe; ep 1080 drivers/scsi/bnx2i/bnx2i_hwi.c ep->qp.sq_cons_qe = ep->qp.sq_first_qe; ep 1081 drivers/scsi/bnx2i/bnx2i_hwi.c ep->qp.sq_last_qe = &ep->qp.sq_first_qe[hba->max_sqes - 1]; ep 1082 drivers/scsi/bnx2i/bnx2i_hwi.c ep->qp.sq_prod_idx = 0; ep 1083 drivers/scsi/bnx2i/bnx2i_hwi.c ep->qp.sq_cons_idx = 0; ep 1084 drivers/scsi/bnx2i/bnx2i_hwi.c ep->qp.sqe_left = hba->max_sqes; ep 1087 drivers/scsi/bnx2i/bnx2i_hwi.c ep->qp.cq_mem_size = hba->max_cqes * BNX2I_CQE_SIZE; ep 1088 drivers/scsi/bnx2i/bnx2i_hwi.c ep->qp.cq_mem_size = ep 1089 drivers/scsi/bnx2i/bnx2i_hwi.c (ep->qp.cq_mem_size + (CNIC_PAGE_SIZE - 1)) & CNIC_PAGE_MASK; ep 1090 drivers/scsi/bnx2i/bnx2i_hwi.c ep->qp.cq_pgtbl_size = ep 1091 drivers/scsi/bnx2i/bnx2i_hwi.c (ep->qp.cq_mem_size / CNIC_PAGE_SIZE) * sizeof(void *); ep 1092 drivers/scsi/bnx2i/bnx2i_hwi.c ep->qp.cq_pgtbl_size = ep 1093 drivers/scsi/bnx2i/bnx2i_hwi.c (ep->qp.cq_pgtbl_size + (CNIC_PAGE_SIZE - 1)) & CNIC_PAGE_MASK; ep 1095 drivers/scsi/bnx2i/bnx2i_hwi.c ep->qp.cq_pgtbl_virt = ep 1096 drivers/scsi/bnx2i/bnx2i_hwi.c dma_alloc_coherent(&hba->pcidev->dev, ep->qp.cq_pgtbl_size, ep 1097 drivers/scsi/bnx2i/bnx2i_hwi.c &ep->qp.cq_pgtbl_phys, GFP_KERNEL); ep 1098 drivers/scsi/bnx2i/bnx2i_hwi.c if (!ep->qp.cq_pgtbl_virt) { ep 1100 drivers/scsi/bnx2i/bnx2i_hwi.c ep->qp.cq_pgtbl_size); ep 1105 drivers/scsi/bnx2i/bnx2i_hwi.c ep->qp.cq_virt = ep 1106 drivers/scsi/bnx2i/bnx2i_hwi.c dma_alloc_coherent(&hba->pcidev->dev, ep->qp.cq_mem_size, ep 1107 drivers/scsi/bnx2i/bnx2i_hwi.c &ep->qp.cq_phys, GFP_KERNEL); ep 1108 drivers/scsi/bnx2i/bnx2i_hwi.c if (!ep->qp.cq_virt) { ep 1110 drivers/scsi/bnx2i/bnx2i_hwi.c ep->qp.cq_mem_size); ep 1114 drivers/scsi/bnx2i/bnx2i_hwi.c ep->qp.cq_first_qe = ep->qp.cq_virt; ep 1115 drivers/scsi/bnx2i/bnx2i_hwi.c ep->qp.cq_prod_qe = ep->qp.cq_first_qe; ep 1116 drivers/scsi/bnx2i/bnx2i_hwi.c ep->qp.cq_cons_qe = ep->qp.cq_first_qe; ep 1117 drivers/scsi/bnx2i/bnx2i_hwi.c ep->qp.cq_last_qe = &ep->qp.cq_first_qe[hba->max_cqes - 1]; ep 1118 drivers/scsi/bnx2i/bnx2i_hwi.c ep->qp.cq_prod_idx = 0; ep 1119 drivers/scsi/bnx2i/bnx2i_hwi.c ep->qp.cq_cons_idx = 0; ep 1120 drivers/scsi/bnx2i/bnx2i_hwi.c ep->qp.cqe_left = hba->max_cqes; ep 1121 drivers/scsi/bnx2i/bnx2i_hwi.c ep->qp.cqe_exp_seq_sn = ISCSI_INITIAL_SN; ep 1122 drivers/scsi/bnx2i/bnx2i_hwi.c ep->qp.cqe_size = hba->max_cqes; ep 1125 drivers/scsi/bnx2i/bnx2i_hwi.c cq_db = (struct bnx2i_5771x_cq_db *) ep->qp.cq_pgtbl_virt; ep 1129 drivers/scsi/bnx2i/bnx2i_hwi.c ep->qp.rq_mem_size = hba->max_rqes * BNX2I_RQ_WQE_SIZE; ep 1130 drivers/scsi/bnx2i/bnx2i_hwi.c ep->qp.rq_mem_size = ep 1131 drivers/scsi/bnx2i/bnx2i_hwi.c (ep->qp.rq_mem_size + (CNIC_PAGE_SIZE - 1)) & CNIC_PAGE_MASK; ep 1132 drivers/scsi/bnx2i/bnx2i_hwi.c ep->qp.rq_pgtbl_size = ep 1133 drivers/scsi/bnx2i/bnx2i_hwi.c (ep->qp.rq_mem_size / CNIC_PAGE_SIZE) * sizeof(void *); ep 1134 drivers/scsi/bnx2i/bnx2i_hwi.c ep->qp.rq_pgtbl_size = ep 1135 drivers/scsi/bnx2i/bnx2i_hwi.c (ep->qp.rq_pgtbl_size + (CNIC_PAGE_SIZE - 1)) & CNIC_PAGE_MASK; ep 1137 drivers/scsi/bnx2i/bnx2i_hwi.c ep->qp.rq_pgtbl_virt = ep 1138 drivers/scsi/bnx2i/bnx2i_hwi.c dma_alloc_coherent(&hba->pcidev->dev, ep->qp.rq_pgtbl_size, ep 1139 drivers/scsi/bnx2i/bnx2i_hwi.c &ep->qp.rq_pgtbl_phys, GFP_KERNEL); ep 1140 drivers/scsi/bnx2i/bnx2i_hwi.c if (!ep->qp.rq_pgtbl_virt) { ep 1142 drivers/scsi/bnx2i/bnx2i_hwi.c ep->qp.rq_pgtbl_size); ep 1147 drivers/scsi/bnx2i/bnx2i_hwi.c ep->qp.rq_virt = ep 1148 drivers/scsi/bnx2i/bnx2i_hwi.c dma_alloc_coherent(&hba->pcidev->dev, ep->qp.rq_mem_size, ep 1149 drivers/scsi/bnx2i/bnx2i_hwi.c &ep->qp.rq_phys, GFP_KERNEL); ep 1150 drivers/scsi/bnx2i/bnx2i_hwi.c if (!ep->qp.rq_virt) { ep 1152 drivers/scsi/bnx2i/bnx2i_hwi.c ep->qp.rq_mem_size); ep 1156 drivers/scsi/bnx2i/bnx2i_hwi.c ep->qp.rq_first_qe = ep->qp.rq_virt; ep 1157 drivers/scsi/bnx2i/bnx2i_hwi.c ep->qp.rq_prod_qe = ep->qp.rq_first_qe; ep 1158 drivers/scsi/bnx2i/bnx2i_hwi.c ep->qp.rq_cons_qe = ep->qp.rq_first_qe; ep 1159 drivers/scsi/bnx2i/bnx2i_hwi.c ep->qp.rq_last_qe = &ep->qp.rq_first_qe[hba->max_rqes - 1]; ep 1160 drivers/scsi/bnx2i/bnx2i_hwi.c ep->qp.rq_prod_idx = 0x8000; ep 1161 drivers/scsi/bnx2i/bnx2i_hwi.c ep->qp.rq_cons_idx = 0; ep 1162 drivers/scsi/bnx2i/bnx2i_hwi.c ep->qp.rqe_left = hba->max_rqes; ep 1164 drivers/scsi/bnx2i/bnx2i_hwi.c setup_qp_page_tables(ep); ep 1169 drivers/scsi/bnx2i/bnx2i_hwi.c bnx2i_free_qp_resc(hba, ep); ep 1182 drivers/scsi/bnx2i/bnx2i_hwi.c void bnx2i_free_qp_resc(struct bnx2i_hba *hba, struct bnx2i_endpoint *ep) ep 1184 drivers/scsi/bnx2i/bnx2i_hwi.c if (ep->qp.ctx_base) { ep 1185 drivers/scsi/bnx2i/bnx2i_hwi.c iounmap(ep->qp.ctx_base); ep 1186 drivers/scsi/bnx2i/bnx2i_hwi.c ep->qp.ctx_base = NULL; ep 1189 drivers/scsi/bnx2i/bnx2i_hwi.c if (ep->qp.sq_pgtbl_virt) { ep 1190 drivers/scsi/bnx2i/bnx2i_hwi.c dma_free_coherent(&hba->pcidev->dev, ep->qp.sq_pgtbl_size, ep 1191 drivers/scsi/bnx2i/bnx2i_hwi.c ep->qp.sq_pgtbl_virt, ep->qp.sq_pgtbl_phys); ep 1192 drivers/scsi/bnx2i/bnx2i_hwi.c ep->qp.sq_pgtbl_virt = NULL; ep 1193 drivers/scsi/bnx2i/bnx2i_hwi.c ep->qp.sq_pgtbl_phys = 0; ep 1195 drivers/scsi/bnx2i/bnx2i_hwi.c if (ep->qp.sq_virt) { ep 1196 drivers/scsi/bnx2i/bnx2i_hwi.c dma_free_coherent(&hba->pcidev->dev, ep->qp.sq_mem_size, ep 1197 drivers/scsi/bnx2i/bnx2i_hwi.c ep->qp.sq_virt, ep->qp.sq_phys); ep 1198 drivers/scsi/bnx2i/bnx2i_hwi.c ep->qp.sq_virt = NULL; ep 1199 drivers/scsi/bnx2i/bnx2i_hwi.c ep->qp.sq_phys = 0; ep 1203 drivers/scsi/bnx2i/bnx2i_hwi.c if (ep->qp.rq_pgtbl_virt) { ep 1204 drivers/scsi/bnx2i/bnx2i_hwi.c dma_free_coherent(&hba->pcidev->dev, ep->qp.rq_pgtbl_size, ep 1205 drivers/scsi/bnx2i/bnx2i_hwi.c ep->qp.rq_pgtbl_virt, ep->qp.rq_pgtbl_phys); ep 1206 drivers/scsi/bnx2i/bnx2i_hwi.c ep->qp.rq_pgtbl_virt = NULL; ep 1207 drivers/scsi/bnx2i/bnx2i_hwi.c ep->qp.rq_pgtbl_phys = 0; ep 1209 drivers/scsi/bnx2i/bnx2i_hwi.c if (ep->qp.rq_virt) { ep 1210 drivers/scsi/bnx2i/bnx2i_hwi.c dma_free_coherent(&hba->pcidev->dev, ep->qp.rq_mem_size, ep 1211 drivers/scsi/bnx2i/bnx2i_hwi.c ep->qp.rq_virt, ep->qp.rq_phys); ep 1212 drivers/scsi/bnx2i/bnx2i_hwi.c ep->qp.rq_virt = NULL; ep 1213 drivers/scsi/bnx2i/bnx2i_hwi.c ep->qp.rq_phys = 0; ep 1217 drivers/scsi/bnx2i/bnx2i_hwi.c if (ep->qp.cq_pgtbl_virt) { ep 1218 drivers/scsi/bnx2i/bnx2i_hwi.c dma_free_coherent(&hba->pcidev->dev, ep->qp.cq_pgtbl_size, ep 1219 drivers/scsi/bnx2i/bnx2i_hwi.c ep->qp.cq_pgtbl_virt, ep->qp.cq_pgtbl_phys); ep 1220 drivers/scsi/bnx2i/bnx2i_hwi.c ep->qp.cq_pgtbl_virt = NULL; ep 1221 drivers/scsi/bnx2i/bnx2i_hwi.c ep->qp.cq_pgtbl_phys = 0; ep 1223 drivers/scsi/bnx2i/bnx2i_hwi.c if (ep->qp.cq_virt) { ep 1224 drivers/scsi/bnx2i/bnx2i_hwi.c dma_free_coherent(&hba->pcidev->dev, ep->qp.cq_mem_size, ep 1225 drivers/scsi/bnx2i/bnx2i_hwi.c ep->qp.cq_virt, ep->qp.cq_phys); ep 1226 drivers/scsi/bnx2i/bnx2i_hwi.c ep->qp.cq_virt = NULL; ep 1227 drivers/scsi/bnx2i/bnx2i_hwi.c ep->qp.cq_phys = 0; ep 1632 drivers/scsi/bnx2i/bnx2i_hwi.c bnx2i_conn->ep->state = EP_STATE_LOGOUT_RESP_RCVD; ep 1962 drivers/scsi/bnx2i/bnx2i_hwi.c if (bnx2i_conn->ep == NULL) ep 1965 drivers/scsi/bnx2i/bnx2i_hwi.c qp = &bnx2i_conn->ep->qp; ep 2045 drivers/scsi/bnx2i/bnx2i_hwi.c if (!atomic_read(&bnx2i_conn->ep->num_active_cmds)) ep 2051 drivers/scsi/bnx2i/bnx2i_hwi.c atomic_dec(&bnx2i_conn->ep->num_active_cmds); ep 2097 drivers/scsi/bnx2i/bnx2i_hwi.c if (!bnx2i_conn->ep) { ep 2103 drivers/scsi/bnx2i/bnx2i_hwi.c nxt_idx = bnx2i_arm_cq_event_coalescing(bnx2i_conn->ep, ep 2106 drivers/scsi/bnx2i/bnx2i_hwi.c bnx2i_arm_cq_event_coalescing(bnx2i_conn->ep, CNIC_ARM_CQE_FP); ep 2130 drivers/scsi/bnx2i/bnx2i_hwi.c if (!conn->ep) { ep 2137 drivers/scsi/bnx2i/bnx2i_hwi.c conn->ep->state = EP_STATE_ULP_UPDATE_FAILED; ep 2139 drivers/scsi/bnx2i/bnx2i_hwi.c conn->ep->state = EP_STATE_ULP_UPDATE_COMPL; ep 2141 drivers/scsi/bnx2i/bnx2i_hwi.c wake_up_interruptible(&conn->ep->ofld_wait); ep 2368 drivers/scsi/bnx2i/bnx2i_hwi.c bnx2i_conn, bnx2i_conn->ep->ep_iscsi_cid, ep 2369 drivers/scsi/bnx2i/bnx2i_hwi.c bnx2i_conn->ep->ep_cid); ep 2391 drivers/scsi/bnx2i/bnx2i_hwi.c struct bnx2i_endpoint *ep; ep 2393 drivers/scsi/bnx2i/bnx2i_hwi.c ep = bnx2i_find_ep_in_destroy_list(hba, conn_destroy->iscsi_conn_id); ep 2394 drivers/scsi/bnx2i/bnx2i_hwi.c if (!ep) { ep 2400 drivers/scsi/bnx2i/bnx2i_hwi.c if (hba != ep->hba) { ep 2407 drivers/scsi/bnx2i/bnx2i_hwi.c ep->state = EP_STATE_CLEANUP_FAILED; ep 2409 drivers/scsi/bnx2i/bnx2i_hwi.c ep->state = EP_STATE_CLEANUP_CMPL; ep 2410 drivers/scsi/bnx2i/bnx2i_hwi.c wake_up_interruptible(&ep->ofld_wait); ep 2426 drivers/scsi/bnx2i/bnx2i_hwi.c struct bnx2i_endpoint *ep; ep 2428 drivers/scsi/bnx2i/bnx2i_hwi.c ep = bnx2i_find_ep_in_ofld_list(hba, ofld_kcqe->iscsi_conn_id); ep 2429 drivers/scsi/bnx2i/bnx2i_hwi.c if (!ep) { ep 2434 drivers/scsi/bnx2i/bnx2i_hwi.c if (hba != ep->hba) { ep 2440 drivers/scsi/bnx2i/bnx2i_hwi.c ep->state = EP_STATE_OFLD_FAILED; ep 2453 drivers/scsi/bnx2i/bnx2i_hwi.c ep->state = EP_STATE_OFLD_FAILED_CID_BUSY; ep 2459 drivers/scsi/bnx2i/bnx2i_hwi.c ep->state = EP_STATE_OFLD_COMPL; ep 2461 drivers/scsi/bnx2i/bnx2i_hwi.c ep->ep_cid = cid_addr; ep 2462 drivers/scsi/bnx2i/bnx2i_hwi.c ep->qp.ctx_base = NULL; ep 2464 drivers/scsi/bnx2i/bnx2i_hwi.c wake_up_interruptible(&ep->ofld_wait); ep 2570 drivers/scsi/bnx2i/bnx2i_hwi.c struct bnx2i_endpoint *ep = (struct bnx2i_endpoint *) cm_sk->context; ep 2572 drivers/scsi/bnx2i/bnx2i_hwi.c if (test_bit(ADAPTER_STATE_GOING_DOWN, &ep->hba->adapter_state)) ep 2573 drivers/scsi/bnx2i/bnx2i_hwi.c ep->state = EP_STATE_CONNECT_FAILED; ep 2575 drivers/scsi/bnx2i/bnx2i_hwi.c ep->state = EP_STATE_CONNECT_COMPL; ep 2577 drivers/scsi/bnx2i/bnx2i_hwi.c ep->state = EP_STATE_CONNECT_FAILED; ep 2579 drivers/scsi/bnx2i/bnx2i_hwi.c wake_up_interruptible(&ep->ofld_wait); ep 2592 drivers/scsi/bnx2i/bnx2i_hwi.c struct bnx2i_endpoint *ep = (struct bnx2i_endpoint *) cm_sk->context; ep 2594 drivers/scsi/bnx2i/bnx2i_hwi.c ep->state = EP_STATE_DISCONN_COMPL; ep 2595 drivers/scsi/bnx2i/bnx2i_hwi.c wake_up_interruptible(&ep->ofld_wait); ep 2608 drivers/scsi/bnx2i/bnx2i_hwi.c struct bnx2i_endpoint *ep = (struct bnx2i_endpoint *) cm_sk->context; ep 2610 drivers/scsi/bnx2i/bnx2i_hwi.c ep->state = EP_STATE_DISCONN_COMPL; ep 2611 drivers/scsi/bnx2i/bnx2i_hwi.c wake_up_interruptible(&ep->ofld_wait); ep 2625 drivers/scsi/bnx2i/bnx2i_hwi.c struct bnx2i_endpoint *ep = (struct bnx2i_endpoint *) cm_sk->context; ep 2627 drivers/scsi/bnx2i/bnx2i_hwi.c ep->state = EP_STATE_TCP_FIN_RCVD; ep 2628 drivers/scsi/bnx2i/bnx2i_hwi.c if (ep->conn) ep 2629 drivers/scsi/bnx2i/bnx2i_hwi.c bnx2i_recovery_que_add_conn(ep->hba, ep->conn); ep 2642 drivers/scsi/bnx2i/bnx2i_hwi.c struct bnx2i_endpoint *ep = (struct bnx2i_endpoint *) cm_sk->context; ep 2643 drivers/scsi/bnx2i/bnx2i_hwi.c u32 old_state = ep->state; ep 2645 drivers/scsi/bnx2i/bnx2i_hwi.c ep->state = EP_STATE_TCP_RST_RCVD; ep 2647 drivers/scsi/bnx2i/bnx2i_hwi.c wake_up_interruptible(&ep->ofld_wait); ep 2649 drivers/scsi/bnx2i/bnx2i_hwi.c if (ep->conn) ep 2650 drivers/scsi/bnx2i/bnx2i_hwi.c bnx2i_recovery_que_add_conn(ep->hba, ep->conn); ep 2703 drivers/scsi/bnx2i/bnx2i_hwi.c int bnx2i_map_ep_dbell_regs(struct bnx2i_endpoint *ep) ep 2712 drivers/scsi/bnx2i/bnx2i_hwi.c cid_num = bnx2i_get_cid_num(ep); ep 2714 drivers/scsi/bnx2i/bnx2i_hwi.c if (test_bit(BNX2I_NX2_DEV_57710, &ep->hba->cnic_dev_type)) { ep 2715 drivers/scsi/bnx2i/bnx2i_hwi.c reg_base = pci_resource_start(ep->hba->pcidev, ep 2718 drivers/scsi/bnx2i/bnx2i_hwi.c ep->qp.ctx_base = ioremap_nocache(reg_base + reg_off, 4); ep 2719 drivers/scsi/bnx2i/bnx2i_hwi.c if (!ep->qp.ctx_base) ep 2724 drivers/scsi/bnx2i/bnx2i_hwi.c if ((test_bit(BNX2I_NX2_DEV_5709, &ep->hba->cnic_dev_type)) && ep 2725 drivers/scsi/bnx2i/bnx2i_hwi.c (ep->hba->mail_queue_access == BNX2I_MQ_BIN_MODE)) { ep 2726 drivers/scsi/bnx2i/bnx2i_hwi.c config2 = REG_RD(ep->hba, BNX2_MQ_CONFIG2); ep 2739 drivers/scsi/bnx2i/bnx2i_hwi.c ep->qp.ctx_base = ioremap_nocache(ep->hba->reg_base + reg_off, ep 2741 drivers/scsi/bnx2i/bnx2i_hwi.c if (!ep->qp.ctx_base) ep 2745 drivers/scsi/bnx2i/bnx2i_hwi.c bnx2i_arm_cq_event_coalescing(ep, CNIC_ARM_CQE); ep 383 drivers/scsi/bnx2i/bnx2i_iscsi.c struct iscsi_endpoint *ep; ep 387 drivers/scsi/bnx2i/bnx2i_iscsi.c ep = iscsi_create_endpoint(sizeof(*bnx2i_ep)); ep 388 drivers/scsi/bnx2i/bnx2i_iscsi.c if (!ep) { ep 393 drivers/scsi/bnx2i/bnx2i_iscsi.c bnx2i_ep = ep->dd_data; ep 394 drivers/scsi/bnx2i/bnx2i_iscsi.c bnx2i_ep->cls_ep = ep; ep 407 drivers/scsi/bnx2i/bnx2i_iscsi.c return ep; ep 415 drivers/scsi/bnx2i/bnx2i_iscsi.c static void bnx2i_free_ep(struct iscsi_endpoint *ep) ep 417 drivers/scsi/bnx2i/bnx2i_iscsi.c struct bnx2i_endpoint *bnx2i_ep = ep->dd_data; ep 428 drivers/scsi/bnx2i/bnx2i_iscsi.c bnx2i_ep->conn->ep = NULL; ep 434 drivers/scsi/bnx2i/bnx2i_iscsi.c iscsi_destroy_endpoint(ep); ep 607 drivers/scsi/bnx2i/bnx2i_iscsi.c struct bnx2i_endpoint *ep) ep 610 drivers/scsi/bnx2i/bnx2i_iscsi.c list_add_tail(&ep->link, &hba->ep_destroy_list); ep 624 drivers/scsi/bnx2i/bnx2i_iscsi.c struct bnx2i_endpoint *ep) ep 627 drivers/scsi/bnx2i/bnx2i_iscsi.c list_del_init(&ep->link); ep 641 drivers/scsi/bnx2i/bnx2i_iscsi.c struct bnx2i_endpoint *ep) ep 644 drivers/scsi/bnx2i/bnx2i_iscsi.c list_add_tail(&ep->link, &hba->ep_ofld_list); ep 657 drivers/scsi/bnx2i/bnx2i_iscsi.c struct bnx2i_endpoint *ep) ep 660 drivers/scsi/bnx2i/bnx2i_iscsi.c list_del_init(&ep->link); ep 678 drivers/scsi/bnx2i/bnx2i_iscsi.c struct bnx2i_endpoint *ep = NULL; ep 682 drivers/scsi/bnx2i/bnx2i_iscsi.c ep = (struct bnx2i_endpoint *)list; ep 684 drivers/scsi/bnx2i/bnx2i_iscsi.c if (ep->ep_iscsi_cid == iscsi_cid) ep 686 drivers/scsi/bnx2i/bnx2i_iscsi.c ep = NULL; ep 690 drivers/scsi/bnx2i/bnx2i_iscsi.c if (!ep) ep 692 drivers/scsi/bnx2i/bnx2i_iscsi.c return ep; ep 706 drivers/scsi/bnx2i/bnx2i_iscsi.c struct bnx2i_endpoint *ep = NULL; ep 710 drivers/scsi/bnx2i/bnx2i_iscsi.c ep = (struct bnx2i_endpoint *)list; ep 712 drivers/scsi/bnx2i/bnx2i_iscsi.c if (ep->ep_iscsi_cid == iscsi_cid) ep 714 drivers/scsi/bnx2i/bnx2i_iscsi.c ep = NULL; ep 718 drivers/scsi/bnx2i/bnx2i_iscsi.c if (!ep) ep 721 drivers/scsi/bnx2i/bnx2i_iscsi.c return ep; ep 732 drivers/scsi/bnx2i/bnx2i_iscsi.c struct bnx2i_endpoint *ep) ep 735 drivers/scsi/bnx2i/bnx2i_iscsi.c list_add_tail(&ep->link, &hba->ep_active_list); ep 748 drivers/scsi/bnx2i/bnx2i_iscsi.c struct bnx2i_endpoint *ep) ep 751 drivers/scsi/bnx2i/bnx2i_iscsi.c list_del_init(&ep->link); ep 1234 drivers/scsi/bnx2i/bnx2i_iscsi.c if (atomic_read(&bnx2i_conn->ep->num_active_cmds) + 1 > ep 1287 drivers/scsi/bnx2i/bnx2i_iscsi.c bnx2i_session_create(struct iscsi_endpoint *ep, ep 1296 drivers/scsi/bnx2i/bnx2i_iscsi.c if (!ep) { ep 1301 drivers/scsi/bnx2i/bnx2i_iscsi.c bnx2i_ep = ep->dd_data; ep 1379 drivers/scsi/bnx2i/bnx2i_iscsi.c bnx2i_conn->ep = NULL; ep 1416 drivers/scsi/bnx2i/bnx2i_iscsi.c struct iscsi_endpoint *ep; ep 1419 drivers/scsi/bnx2i/bnx2i_iscsi.c ep = iscsi_lookup_endpoint(transport_fd); ep 1420 drivers/scsi/bnx2i/bnx2i_iscsi.c if (!ep) ep 1429 drivers/scsi/bnx2i/bnx2i_iscsi.c bnx2i_ep = ep->dd_data; ep 1450 drivers/scsi/bnx2i/bnx2i_iscsi.c bnx2i_conn->ep = bnx2i_ep; ep 1463 drivers/scsi/bnx2i/bnx2i_iscsi.c bnx2i_arm_cq_event_coalescing(bnx2i_conn->ep, CNIC_ARM_CQE); ep 1521 drivers/scsi/bnx2i/bnx2i_iscsi.c static int bnx2i_ep_get_param(struct iscsi_endpoint *ep, ep 1524 drivers/scsi/bnx2i/bnx2i_iscsi.c struct bnx2i_endpoint *bnx2i_ep = ep->dd_data; ep 1607 drivers/scsi/bnx2i/bnx2i_iscsi.c bnx2i_conn->ep->state = EP_STATE_ULP_UPDATE_START; ep 1614 drivers/scsi/bnx2i/bnx2i_iscsi.c timer_setup(&bnx2i_conn->ep->ofld_timer, bnx2i_ep_ofld_timer, 0); ep 1615 drivers/scsi/bnx2i/bnx2i_iscsi.c bnx2i_conn->ep->ofld_timer.expires = 1 * HZ + jiffies; ep 1616 drivers/scsi/bnx2i/bnx2i_iscsi.c add_timer(&bnx2i_conn->ep->ofld_timer); ep 1618 drivers/scsi/bnx2i/bnx2i_iscsi.c wait_event_interruptible(bnx2i_conn->ep->ofld_wait, ep 1619 drivers/scsi/bnx2i/bnx2i_iscsi.c bnx2i_conn->ep->state != EP_STATE_ULP_UPDATE_START); ep 1623 drivers/scsi/bnx2i/bnx2i_iscsi.c del_timer_sync(&bnx2i_conn->ep->ofld_timer); ep 1706 drivers/scsi/bnx2i/bnx2i_iscsi.c struct bnx2i_endpoint *ep) ep 1708 drivers/scsi/bnx2i/bnx2i_iscsi.c if (test_bit(BNX2I_CNIC_REGISTERED, &hba->reg_with_cnic) && ep->cm_sk) ep 1709 drivers/scsi/bnx2i/bnx2i_iscsi.c hba->cnic->cm_destroy(ep->cm_sk); ep 1712 drivers/scsi/bnx2i/bnx2i_iscsi.c ep->state == EP_STATE_DISCONN_TIMEDOUT) { ep 1713 drivers/scsi/bnx2i/bnx2i_iscsi.c if (ep->conn && ep->conn->cls_conn && ep 1714 drivers/scsi/bnx2i/bnx2i_iscsi.c ep->conn->cls_conn->dd_data) { ep 1715 drivers/scsi/bnx2i/bnx2i_iscsi.c struct iscsi_conn *conn = ep->conn->cls_conn->dd_data; ep 1730 drivers/scsi/bnx2i/bnx2i_iscsi.c ep->state = EP_STATE_CLEANUP_START; ep 1731 drivers/scsi/bnx2i/bnx2i_iscsi.c timer_setup(&ep->ofld_timer, bnx2i_ep_ofld_timer, 0); ep 1732 drivers/scsi/bnx2i/bnx2i_iscsi.c ep->ofld_timer.expires = hba->conn_ctx_destroy_tmo + jiffies; ep 1733 drivers/scsi/bnx2i/bnx2i_iscsi.c add_timer(&ep->ofld_timer); ep 1735 drivers/scsi/bnx2i/bnx2i_iscsi.c bnx2i_ep_destroy_list_add(hba, ep); ep 1738 drivers/scsi/bnx2i/bnx2i_iscsi.c if (bnx2i_send_conn_destroy(hba, ep)) ep 1739 drivers/scsi/bnx2i/bnx2i_iscsi.c ep->state = EP_STATE_CLEANUP_CMPL; ep 1741 drivers/scsi/bnx2i/bnx2i_iscsi.c wait_event_interruptible(ep->ofld_wait, ep 1742 drivers/scsi/bnx2i/bnx2i_iscsi.c (ep->state != EP_STATE_CLEANUP_START)); ep 1746 drivers/scsi/bnx2i/bnx2i_iscsi.c del_timer_sync(&ep->ofld_timer); ep 1748 drivers/scsi/bnx2i/bnx2i_iscsi.c bnx2i_ep_destroy_list_del(hba, ep); ep 1750 drivers/scsi/bnx2i/bnx2i_iscsi.c if (ep->state != EP_STATE_CLEANUP_CMPL) ep 1781 drivers/scsi/bnx2i/bnx2i_iscsi.c struct iscsi_endpoint *ep; ep 1805 drivers/scsi/bnx2i/bnx2i_iscsi.c ep = bnx2i_alloc_ep(hba); ep 1806 drivers/scsi/bnx2i/bnx2i_iscsi.c if (!ep) { ep 1810 drivers/scsi/bnx2i/bnx2i_iscsi.c bnx2i_ep = ep->dd_data; ep 1818 drivers/scsi/bnx2i/bnx2i_iscsi.c bnx2i_free_ep(ep); ep 1912 drivers/scsi/bnx2i/bnx2i_iscsi.c return ep; ep 1924 drivers/scsi/bnx2i/bnx2i_iscsi.c bnx2i_free_ep(ep); ep 1939 drivers/scsi/bnx2i/bnx2i_iscsi.c static int bnx2i_ep_poll(struct iscsi_endpoint *ep, int timeout_ms) ep 1944 drivers/scsi/bnx2i/bnx2i_iscsi.c bnx2i_ep = ep->dd_data; ep 2115 drivers/scsi/bnx2i/bnx2i_iscsi.c static void bnx2i_ep_disconnect(struct iscsi_endpoint *ep) ep 2122 drivers/scsi/bnx2i/bnx2i_iscsi.c bnx2i_ep = ep->dd_data; ep 2162 drivers/scsi/bnx2i/bnx2i_iscsi.c bnx2i_conn->ep = NULL; ep 2164 drivers/scsi/bnx2i/bnx2i_iscsi.c bnx2i_free_ep(ep); ep 2316 drivers/scsi/cxgbi/libcxgbi.c int cxgbi_get_ep_param(struct iscsi_endpoint *ep, enum iscsi_param param, ep 2319 drivers/scsi/cxgbi/libcxgbi.c struct cxgbi_endpoint *cep = ep->dd_data; ep 2323 drivers/scsi/cxgbi/libcxgbi.c "cls_conn 0x%p, param %d.\n", ep, param); ep 2377 drivers/scsi/cxgbi/libcxgbi.c struct iscsi_endpoint *ep; ep 2382 drivers/scsi/cxgbi/libcxgbi.c ep = iscsi_lookup_endpoint(transport_eph); ep 2383 drivers/scsi/cxgbi/libcxgbi.c if (!ep) ep 2387 drivers/scsi/cxgbi/libcxgbi.c cep = ep->dd_data; ep 2415 drivers/scsi/cxgbi/libcxgbi.c cls_session, cls_conn, ep, cconn, csk); ep 2423 drivers/scsi/cxgbi/libcxgbi.c struct iscsi_cls_session *cxgbi_create_session(struct iscsi_endpoint *ep, ep 2433 drivers/scsi/cxgbi/libcxgbi.c if (!ep) { ep 2438 drivers/scsi/cxgbi/libcxgbi.c cep = ep->dd_data; ep 2457 drivers/scsi/cxgbi/libcxgbi.c "ep 0x%p, cls sess 0x%p.\n", ep, cls_session); ep 2556 drivers/scsi/cxgbi/libcxgbi.c struct iscsi_endpoint *ep; ep 2626 drivers/scsi/cxgbi/libcxgbi.c ep = iscsi_create_endpoint(sizeof(*cep)); ep 2627 drivers/scsi/cxgbi/libcxgbi.c if (!ep) { ep 2633 drivers/scsi/cxgbi/libcxgbi.c cep = ep->dd_data; ep 2639 drivers/scsi/cxgbi/libcxgbi.c ep, cep, csk, hba, hba->ndev->name); ep 2640 drivers/scsi/cxgbi/libcxgbi.c return ep; ep 2650 drivers/scsi/cxgbi/libcxgbi.c int cxgbi_ep_poll(struct iscsi_endpoint *ep, int timeout_ms) ep 2652 drivers/scsi/cxgbi/libcxgbi.c struct cxgbi_endpoint *cep = ep->dd_data; ep 2661 drivers/scsi/cxgbi/libcxgbi.c void cxgbi_ep_disconnect(struct iscsi_endpoint *ep) ep 2663 drivers/scsi/cxgbi/libcxgbi.c struct cxgbi_endpoint *cep = ep->dd_data; ep 2669 drivers/scsi/cxgbi/libcxgbi.c ep, cep, cconn, csk, csk->state, csk->flags); ep 2678 drivers/scsi/cxgbi/libcxgbi.c iscsi_destroy_endpoint(ep); ep 593 drivers/scsi/cxgbi/libcxgbi.h int cxgbi_get_ep_param(struct iscsi_endpoint *ep, enum iscsi_param, char *); ep 835 drivers/scsi/iscsi_tcp.c iscsi_sw_tcp_session_create(struct iscsi_endpoint *ep, uint16_t cmds_max, ep 843 drivers/scsi/iscsi_tcp.c if (ep) { ep 844 drivers/scsi/iscsi_tcp.c printk(KERN_ERR "iscsi_tcp: invalid ep %p.\n", ep); ep 246 drivers/scsi/libfc/fc_exch.c static inline void fc_exch_hold(struct fc_exch *ep) ep 248 drivers/scsi/libfc/fc_exch.c atomic_inc(&ep->ex_refcnt); ep 261 drivers/scsi/libfc/fc_exch.c static void fc_exch_setup_hdr(struct fc_exch *ep, struct fc_frame *fp, ep 267 drivers/scsi/libfc/fc_exch.c fr_sof(fp) = ep->class; ep 268 drivers/scsi/libfc/fc_exch.c if (ep->seq.cnt) ep 269 drivers/scsi/libfc/fc_exch.c fr_sof(fp) = fc_sof_normal(ep->class); ep 273 drivers/scsi/libfc/fc_exch.c if (fc_sof_needs_ack(ep->class)) ep 297 drivers/scsi/libfc/fc_exch.c fh->fh_ox_id = htons(ep->oxid); ep 298 drivers/scsi/libfc/fc_exch.c fh->fh_rx_id = htons(ep->rxid); ep 299 drivers/scsi/libfc/fc_exch.c fh->fh_seq_id = ep->seq.id; ep 300 drivers/scsi/libfc/fc_exch.c fh->fh_seq_cnt = htons(ep->seq.cnt); ep 310 drivers/scsi/libfc/fc_exch.c static void fc_exch_release(struct fc_exch *ep) ep 314 drivers/scsi/libfc/fc_exch.c if (atomic_dec_and_test(&ep->ex_refcnt)) { ep 315 drivers/scsi/libfc/fc_exch.c mp = ep->em; ep 316 drivers/scsi/libfc/fc_exch.c if (ep->destructor) ep 317 drivers/scsi/libfc/fc_exch.c ep->destructor(&ep->seq, ep->arg); ep 318 drivers/scsi/libfc/fc_exch.c WARN_ON(!(ep->esb_stat & ESB_ST_COMPLETE)); ep 319 drivers/scsi/libfc/fc_exch.c mempool_free(ep, mp->ep_pool); ep 327 drivers/scsi/libfc/fc_exch.c static inline void fc_exch_timer_cancel(struct fc_exch *ep) ep 329 drivers/scsi/libfc/fc_exch.c if (cancel_delayed_work(&ep->timeout_work)) { ep 330 drivers/scsi/libfc/fc_exch.c FC_EXCH_DBG(ep, "Exchange timer canceled\n"); ep 331 drivers/scsi/libfc/fc_exch.c atomic_dec(&ep->ex_refcnt); /* drop hold for timer */ ep 344 drivers/scsi/libfc/fc_exch.c static inline void fc_exch_timer_set_locked(struct fc_exch *ep, ep 347 drivers/scsi/libfc/fc_exch.c if (ep->state & (FC_EX_RST_CLEANUP | FC_EX_DONE)) ep 350 drivers/scsi/libfc/fc_exch.c FC_EXCH_DBG(ep, "Exchange timer armed : %d msecs\n", timer_msec); ep 352 drivers/scsi/libfc/fc_exch.c fc_exch_hold(ep); /* hold for timer */ ep 353 drivers/scsi/libfc/fc_exch.c if (!queue_delayed_work(fc_exch_workqueue, &ep->timeout_work, ep 355 drivers/scsi/libfc/fc_exch.c FC_EXCH_DBG(ep, "Exchange already queued\n"); ep 356 drivers/scsi/libfc/fc_exch.c fc_exch_release(ep); ep 365 drivers/scsi/libfc/fc_exch.c static void fc_exch_timer_set(struct fc_exch *ep, unsigned int timer_msec) ep 367 drivers/scsi/libfc/fc_exch.c spin_lock_bh(&ep->ex_lock); ep 368 drivers/scsi/libfc/fc_exch.c fc_exch_timer_set_locked(ep, timer_msec); ep 369 drivers/scsi/libfc/fc_exch.c spin_unlock_bh(&ep->ex_lock); ep 378 drivers/scsi/libfc/fc_exch.c static int fc_exch_done_locked(struct fc_exch *ep) ep 388 drivers/scsi/libfc/fc_exch.c if (ep->state & FC_EX_DONE) ep 390 drivers/scsi/libfc/fc_exch.c ep->esb_stat |= ESB_ST_COMPLETE; ep 392 drivers/scsi/libfc/fc_exch.c if (!(ep->esb_stat & ESB_ST_REC_QUAL)) { ep 393 drivers/scsi/libfc/fc_exch.c ep->state |= FC_EX_DONE; ep 394 drivers/scsi/libfc/fc_exch.c fc_exch_timer_cancel(ep); ep 425 drivers/scsi/libfc/fc_exch.c struct fc_exch *ep) ep 427 drivers/scsi/libfc/fc_exch.c ((struct fc_exch **)(pool + 1))[index] = ep; ep 434 drivers/scsi/libfc/fc_exch.c static void fc_exch_delete(struct fc_exch *ep) ep 439 drivers/scsi/libfc/fc_exch.c pool = ep->pool; ep 445 drivers/scsi/libfc/fc_exch.c index = (ep->xid - ep->em->min_xid) >> fc_cpu_order; ep 446 drivers/scsi/libfc/fc_exch.c if (!(ep->state & FC_EX_QUARANTINE)) { ep 457 drivers/scsi/libfc/fc_exch.c list_del(&ep->ex_list); ep 459 drivers/scsi/libfc/fc_exch.c fc_exch_release(ep); /* drop hold for exch in mp */ ep 465 drivers/scsi/libfc/fc_exch.c struct fc_exch *ep; ep 471 drivers/scsi/libfc/fc_exch.c ep = fc_seq_exch(sp); ep 473 drivers/scsi/libfc/fc_exch.c if (ep->esb_stat & (ESB_ST_COMPLETE | ESB_ST_ABNORMAL)) { ep 478 drivers/scsi/libfc/fc_exch.c WARN_ON(!(ep->esb_stat & ESB_ST_SEQ_INIT)); ep 481 drivers/scsi/libfc/fc_exch.c fc_exch_setup_hdr(ep, fp, f_ctl); ep 482 drivers/scsi/libfc/fc_exch.c fr_encaps(fp) = ep->encaps; ep 508 drivers/scsi/libfc/fc_exch.c ep->f_ctl = f_ctl & ~FC_FC_FIRST_SEQ; /* not first seq */ ep 510 drivers/scsi/libfc/fc_exch.c ep->esb_stat &= ~ESB_ST_SEQ_INIT; ep 526 drivers/scsi/libfc/fc_exch.c struct fc_exch *ep; ep 528 drivers/scsi/libfc/fc_exch.c ep = fc_seq_exch(sp); ep 529 drivers/scsi/libfc/fc_exch.c spin_lock_bh(&ep->ex_lock); ep 531 drivers/scsi/libfc/fc_exch.c spin_unlock_bh(&ep->ex_lock); ep 545 drivers/scsi/libfc/fc_exch.c static struct fc_seq *fc_seq_alloc(struct fc_exch *ep, u8 seq_id) ep 549 drivers/scsi/libfc/fc_exch.c sp = &ep->seq; ep 563 drivers/scsi/libfc/fc_exch.c struct fc_exch *ep = fc_seq_exch(sp); ep 565 drivers/scsi/libfc/fc_exch.c sp = fc_seq_alloc(ep, ep->seq_id++); ep 566 drivers/scsi/libfc/fc_exch.c FC_EXCH_DBG(ep, "f_ctl %6x seq %2x\n", ep 567 drivers/scsi/libfc/fc_exch.c ep->f_ctl, sp->id); ep 578 drivers/scsi/libfc/fc_exch.c struct fc_exch *ep = fc_seq_exch(sp); ep 580 drivers/scsi/libfc/fc_exch.c spin_lock_bh(&ep->ex_lock); ep 582 drivers/scsi/libfc/fc_exch.c spin_unlock_bh(&ep->ex_lock); ep 597 drivers/scsi/libfc/fc_exch.c struct fc_exch *ep = fc_seq_exch(sp); ep 600 drivers/scsi/libfc/fc_exch.c spin_lock_bh(&ep->ex_lock); ep 601 drivers/scsi/libfc/fc_exch.c while (ep->resp_active && ep->resp_task != current) { ep 602 drivers/scsi/libfc/fc_exch.c prepare_to_wait(&ep->resp_wq, &wait, TASK_UNINTERRUPTIBLE); ep 603 drivers/scsi/libfc/fc_exch.c spin_unlock_bh(&ep->ex_lock); ep 607 drivers/scsi/libfc/fc_exch.c spin_lock_bh(&ep->ex_lock); ep 609 drivers/scsi/libfc/fc_exch.c finish_wait(&ep->resp_wq, &wait); ep 610 drivers/scsi/libfc/fc_exch.c ep->resp = resp; ep 611 drivers/scsi/libfc/fc_exch.c ep->arg = arg; ep 612 drivers/scsi/libfc/fc_exch.c spin_unlock_bh(&ep->ex_lock); ep 632 drivers/scsi/libfc/fc_exch.c static int fc_exch_abort_locked(struct fc_exch *ep, ep 639 drivers/scsi/libfc/fc_exch.c FC_EXCH_DBG(ep, "exch: abort, time %d msecs\n", timer_msec); ep 640 drivers/scsi/libfc/fc_exch.c if (ep->esb_stat & (ESB_ST_COMPLETE | ESB_ST_ABNORMAL) || ep 641 drivers/scsi/libfc/fc_exch.c ep->state & (FC_EX_DONE | FC_EX_RST_CLEANUP)) { ep 642 drivers/scsi/libfc/fc_exch.c FC_EXCH_DBG(ep, "exch: already completed esb %x state %x\n", ep 643 drivers/scsi/libfc/fc_exch.c ep->esb_stat, ep->state); ep 650 drivers/scsi/libfc/fc_exch.c sp = fc_seq_start_next_locked(&ep->seq); ep 655 drivers/scsi/libfc/fc_exch.c fc_exch_timer_set_locked(ep, timer_msec); ep 657 drivers/scsi/libfc/fc_exch.c if (ep->sid) { ep 661 drivers/scsi/libfc/fc_exch.c fp = fc_frame_alloc(ep->lp, 0); ep 663 drivers/scsi/libfc/fc_exch.c ep->esb_stat |= ESB_ST_SEQ_INIT; ep 664 drivers/scsi/libfc/fc_exch.c fc_fill_fc_hdr(fp, FC_RCTL_BA_ABTS, ep->did, ep->sid, ep 667 drivers/scsi/libfc/fc_exch.c error = fc_seq_send_locked(ep->lp, sp, fp); ep 678 drivers/scsi/libfc/fc_exch.c ep->esb_stat |= ESB_ST_ABNORMAL; ep 693 drivers/scsi/libfc/fc_exch.c struct fc_exch *ep; ep 696 drivers/scsi/libfc/fc_exch.c ep = fc_seq_exch(req_sp); ep 697 drivers/scsi/libfc/fc_exch.c spin_lock_bh(&ep->ex_lock); ep 698 drivers/scsi/libfc/fc_exch.c error = fc_exch_abort_locked(ep, timer_msec); ep 699 drivers/scsi/libfc/fc_exch.c spin_unlock_bh(&ep->ex_lock); ep 725 drivers/scsi/libfc/fc_exch.c static bool fc_invoke_resp(struct fc_exch *ep, struct fc_seq *sp, ep 732 drivers/scsi/libfc/fc_exch.c spin_lock_bh(&ep->ex_lock); ep 733 drivers/scsi/libfc/fc_exch.c ep->resp_active++; ep 734 drivers/scsi/libfc/fc_exch.c if (ep->resp_task != current) ep 735 drivers/scsi/libfc/fc_exch.c ep->resp_task = !ep->resp_task ? current : NULL; ep 736 drivers/scsi/libfc/fc_exch.c resp = ep->resp; ep 737 drivers/scsi/libfc/fc_exch.c arg = ep->arg; ep 738 drivers/scsi/libfc/fc_exch.c spin_unlock_bh(&ep->ex_lock); ep 745 drivers/scsi/libfc/fc_exch.c spin_lock_bh(&ep->ex_lock); ep 746 drivers/scsi/libfc/fc_exch.c if (--ep->resp_active == 0) ep 747 drivers/scsi/libfc/fc_exch.c ep->resp_task = NULL; ep 748 drivers/scsi/libfc/fc_exch.c spin_unlock_bh(&ep->ex_lock); ep 750 drivers/scsi/libfc/fc_exch.c if (ep->resp_active == 0) ep 751 drivers/scsi/libfc/fc_exch.c wake_up(&ep->resp_wq); ep 762 drivers/scsi/libfc/fc_exch.c struct fc_exch *ep = container_of(work, struct fc_exch, ep 764 drivers/scsi/libfc/fc_exch.c struct fc_seq *sp = &ep->seq; ep 768 drivers/scsi/libfc/fc_exch.c FC_EXCH_DBG(ep, "Exchange timed out state %x\n", ep->state); ep 770 drivers/scsi/libfc/fc_exch.c spin_lock_bh(&ep->ex_lock); ep 771 drivers/scsi/libfc/fc_exch.c if (ep->state & (FC_EX_RST_CLEANUP | FC_EX_DONE)) ep 774 drivers/scsi/libfc/fc_exch.c e_stat = ep->esb_stat; ep 776 drivers/scsi/libfc/fc_exch.c ep->esb_stat = e_stat & ~ESB_ST_REC_QUAL; ep 777 drivers/scsi/libfc/fc_exch.c spin_unlock_bh(&ep->ex_lock); ep 779 drivers/scsi/libfc/fc_exch.c fc_exch_rrq(ep); ep 783 drivers/scsi/libfc/fc_exch.c rc = fc_exch_done_locked(ep); ep 784 drivers/scsi/libfc/fc_exch.c spin_unlock_bh(&ep->ex_lock); ep 786 drivers/scsi/libfc/fc_exch.c fc_exch_delete(ep); ep 787 drivers/scsi/libfc/fc_exch.c fc_invoke_resp(ep, sp, ERR_PTR(-FC_EX_TIMEOUT)); ep 788 drivers/scsi/libfc/fc_exch.c fc_seq_set_resp(sp, NULL, ep->arg); ep 789 drivers/scsi/libfc/fc_exch.c fc_seq_exch_abort(sp, 2 * ep->r_a_tov); ep 793 drivers/scsi/libfc/fc_exch.c spin_unlock_bh(&ep->ex_lock); ep 798 drivers/scsi/libfc/fc_exch.c fc_exch_release(ep); ep 811 drivers/scsi/libfc/fc_exch.c struct fc_exch *ep; ep 817 drivers/scsi/libfc/fc_exch.c ep = mempool_alloc(mp->ep_pool, GFP_ATOMIC); ep 818 drivers/scsi/libfc/fc_exch.c if (!ep) { ep 822 drivers/scsi/libfc/fc_exch.c memset(ep, 0, sizeof(*ep)); ep 854 drivers/scsi/libfc/fc_exch.c fc_exch_hold(ep); /* hold for exch in mp */ ep 855 drivers/scsi/libfc/fc_exch.c spin_lock_init(&ep->ex_lock); ep 861 drivers/scsi/libfc/fc_exch.c spin_lock_bh(&ep->ex_lock); ep 863 drivers/scsi/libfc/fc_exch.c fc_exch_ptr_set(pool, index, ep); ep 864 drivers/scsi/libfc/fc_exch.c list_add_tail(&ep->ex_list, &pool->ex_list); ep 865 drivers/scsi/libfc/fc_exch.c fc_seq_alloc(ep, ep->seq_id++); ep 872 drivers/scsi/libfc/fc_exch.c ep->oxid = ep->xid = (index << fc_cpu_order | cpu) + mp->min_xid; ep 873 drivers/scsi/libfc/fc_exch.c ep->em = mp; ep 874 drivers/scsi/libfc/fc_exch.c ep->pool = pool; ep 875 drivers/scsi/libfc/fc_exch.c ep->lp = lport; ep 876 drivers/scsi/libfc/fc_exch.c ep->f_ctl = FC_FC_FIRST_SEQ; /* next seq is first seq */ ep 877 drivers/scsi/libfc/fc_exch.c ep->rxid = FC_XID_UNKNOWN; ep 878 drivers/scsi/libfc/fc_exch.c ep->class = mp->class; ep 879 drivers/scsi/libfc/fc_exch.c ep->resp_active = 0; ep 880 drivers/scsi/libfc/fc_exch.c init_waitqueue_head(&ep->resp_wq); ep 881 drivers/scsi/libfc/fc_exch.c INIT_DELAYED_WORK(&ep->timeout_work, fc_exch_timeout); ep 883 drivers/scsi/libfc/fc_exch.c return ep; ep 887 drivers/scsi/libfc/fc_exch.c mempool_free(ep, mp->ep_pool); ep 906 drivers/scsi/libfc/fc_exch.c struct fc_exch *ep; ep 910 drivers/scsi/libfc/fc_exch.c ep = fc_exch_em_alloc(lport, ema->mp); ep 911 drivers/scsi/libfc/fc_exch.c if (ep) ep 912 drivers/scsi/libfc/fc_exch.c return ep; ep 927 drivers/scsi/libfc/fc_exch.c struct fc_exch *ep = NULL; ep 942 drivers/scsi/libfc/fc_exch.c ep = fc_exch_ptr_get(pool, (xid - mp->min_xid) >> fc_cpu_order); ep 943 drivers/scsi/libfc/fc_exch.c if (ep == &fc_quarantine_exch) { ep 945 drivers/scsi/libfc/fc_exch.c ep = NULL; ep 947 drivers/scsi/libfc/fc_exch.c if (ep) { ep 948 drivers/scsi/libfc/fc_exch.c WARN_ON(ep->xid != xid); ep 949 drivers/scsi/libfc/fc_exch.c fc_exch_hold(ep); ep 953 drivers/scsi/libfc/fc_exch.c return ep; ep 966 drivers/scsi/libfc/fc_exch.c struct fc_exch *ep = fc_seq_exch(sp); ep 969 drivers/scsi/libfc/fc_exch.c spin_lock_bh(&ep->ex_lock); ep 970 drivers/scsi/libfc/fc_exch.c rc = fc_exch_done_locked(ep); ep 971 drivers/scsi/libfc/fc_exch.c spin_unlock_bh(&ep->ex_lock); ep 973 drivers/scsi/libfc/fc_exch.c fc_seq_set_resp(sp, NULL, ep->arg); ep 975 drivers/scsi/libfc/fc_exch.c fc_exch_delete(ep); ep 991 drivers/scsi/libfc/fc_exch.c struct fc_exch *ep; ep 994 drivers/scsi/libfc/fc_exch.c ep = fc_exch_alloc(lport, fp); ep 995 drivers/scsi/libfc/fc_exch.c if (ep) { ep 996 drivers/scsi/libfc/fc_exch.c ep->class = fc_frame_class(fp); ep 1001 drivers/scsi/libfc/fc_exch.c ep->f_ctl |= FC_FC_EX_CTX; /* we're responding */ ep 1002 drivers/scsi/libfc/fc_exch.c ep->f_ctl &= ~FC_FC_FIRST_SEQ; /* not new */ ep 1004 drivers/scsi/libfc/fc_exch.c ep->sid = ntoh24(fh->fh_d_id); ep 1005 drivers/scsi/libfc/fc_exch.c ep->did = ntoh24(fh->fh_s_id); ep 1006 drivers/scsi/libfc/fc_exch.c ep->oid = ep->did; ep 1013 drivers/scsi/libfc/fc_exch.c ep->rxid = ep->xid; ep 1014 drivers/scsi/libfc/fc_exch.c ep->oxid = ntohs(fh->fh_ox_id); ep 1015 drivers/scsi/libfc/fc_exch.c ep->esb_stat |= ESB_ST_RESP | ESB_ST_SEQ_INIT; ep 1017 drivers/scsi/libfc/fc_exch.c ep->esb_stat &= ~ESB_ST_SEQ_INIT; ep 1019 drivers/scsi/libfc/fc_exch.c fc_exch_hold(ep); /* hold for caller */ ep 1020 drivers/scsi/libfc/fc_exch.c spin_unlock_bh(&ep->ex_lock); /* lock from fc_exch_alloc */ ep 1022 drivers/scsi/libfc/fc_exch.c return ep; ep 1040 drivers/scsi/libfc/fc_exch.c struct fc_exch *ep = NULL; ep 1054 drivers/scsi/libfc/fc_exch.c ep = fc_exch_find(mp, xid); ep 1055 drivers/scsi/libfc/fc_exch.c if (!ep) { ep 1060 drivers/scsi/libfc/fc_exch.c if (ep->rxid == FC_XID_UNKNOWN) ep 1061 drivers/scsi/libfc/fc_exch.c ep->rxid = ntohs(fh->fh_rx_id); ep 1062 drivers/scsi/libfc/fc_exch.c else if (ep->rxid != ntohs(fh->fh_rx_id)) { ep 1083 drivers/scsi/libfc/fc_exch.c ep = fc_exch_find(mp, xid); ep 1085 drivers/scsi/libfc/fc_exch.c if (ep) { ep 1090 drivers/scsi/libfc/fc_exch.c ep = fc_exch_resp(lport, mp, fp); ep 1091 drivers/scsi/libfc/fc_exch.c if (!ep) { ep 1095 drivers/scsi/libfc/fc_exch.c xid = ep->xid; /* get our XID */ ep 1096 drivers/scsi/libfc/fc_exch.c } else if (!ep) { ep 1103 drivers/scsi/libfc/fc_exch.c spin_lock_bh(&ep->ex_lock); ep 1109 drivers/scsi/libfc/fc_exch.c sp = &ep->seq; ep 1113 drivers/scsi/libfc/fc_exch.c sp = &ep->seq; ep 1134 drivers/scsi/libfc/fc_exch.c spin_unlock_bh(&ep->ex_lock); ep 1142 drivers/scsi/libfc/fc_exch.c WARN_ON(ep != fc_seq_exch(sp)); ep 1145 drivers/scsi/libfc/fc_exch.c ep->esb_stat |= ESB_ST_SEQ_INIT; ep 1146 drivers/scsi/libfc/fc_exch.c spin_unlock_bh(&ep->ex_lock); ep 1152 drivers/scsi/libfc/fc_exch.c fc_exch_done(&ep->seq); ep 1153 drivers/scsi/libfc/fc_exch.c fc_exch_release(ep); /* hold from fc_exch_find/fc_exch_resp */ ep 1169 drivers/scsi/libfc/fc_exch.c struct fc_exch *ep; ep 1177 drivers/scsi/libfc/fc_exch.c ep = fc_exch_find(mp, xid); ep 1178 drivers/scsi/libfc/fc_exch.c if (!ep) ep 1180 drivers/scsi/libfc/fc_exch.c if (ep->seq.id == fh->fh_seq_id) { ep 1184 drivers/scsi/libfc/fc_exch.c sp = &ep->seq; ep 1186 drivers/scsi/libfc/fc_exch.c ep->rxid == FC_XID_UNKNOWN) { ep 1187 drivers/scsi/libfc/fc_exch.c ep->rxid = ntohs(fh->fh_rx_id); ep 1190 drivers/scsi/libfc/fc_exch.c fc_exch_release(ep); ep 1202 drivers/scsi/libfc/fc_exch.c static void fc_exch_set_addr(struct fc_exch *ep, ep 1205 drivers/scsi/libfc/fc_exch.c ep->oid = orig_id; ep 1206 drivers/scsi/libfc/fc_exch.c if (ep->esb_stat & ESB_ST_RESP) { ep 1207 drivers/scsi/libfc/fc_exch.c ep->sid = resp_id; ep 1208 drivers/scsi/libfc/fc_exch.c ep->did = orig_id; ep 1210 drivers/scsi/libfc/fc_exch.c ep->sid = orig_id; ep 1211 drivers/scsi/libfc/fc_exch.c ep->did = resp_id; ep 1257 drivers/scsi/libfc/fc_exch.c struct fc_exch *ep = fc_seq_exch(sp); ep 1260 drivers/scsi/libfc/fc_exch.c f_ctl |= ep->f_ctl; ep 1261 drivers/scsi/libfc/fc_exch.c fc_fill_fc_hdr(fp, rctl, ep->did, ep->sid, fh_type, f_ctl, 0); ep 1262 drivers/scsi/libfc/fc_exch.c fc_seq_send_locked(ep->lp, sp, fp); ep 1277 drivers/scsi/libfc/fc_exch.c struct fc_exch *ep = fc_seq_exch(sp); ep 1278 drivers/scsi/libfc/fc_exch.c struct fc_lport *lport = ep->lp; ep 1287 drivers/scsi/libfc/fc_exch.c FC_EXCH_DBG(ep, "Drop ACK request, out of memory\n"); ep 1311 drivers/scsi/libfc/fc_exch.c fc_exch_setup_hdr(ep, fp, f_ctl); ep 1408 drivers/scsi/libfc/fc_exch.c static void fc_exch_recv_abts(struct fc_exch *ep, struct fc_frame *rx_fp) ep 1415 drivers/scsi/libfc/fc_exch.c if (!ep) ep 1418 drivers/scsi/libfc/fc_exch.c FC_EXCH_DBG(ep, "exch: ABTS received\n"); ep 1419 drivers/scsi/libfc/fc_exch.c fp = fc_frame_alloc(ep->lp, sizeof(*ap)); ep 1421 drivers/scsi/libfc/fc_exch.c FC_EXCH_DBG(ep, "Drop ABTS request, out of memory\n"); ep 1425 drivers/scsi/libfc/fc_exch.c spin_lock_bh(&ep->ex_lock); ep 1426 drivers/scsi/libfc/fc_exch.c if (ep->esb_stat & ESB_ST_COMPLETE) { ep 1427 drivers/scsi/libfc/fc_exch.c spin_unlock_bh(&ep->ex_lock); ep 1428 drivers/scsi/libfc/fc_exch.c FC_EXCH_DBG(ep, "exch: ABTS rejected, exchange complete\n"); ep 1432 drivers/scsi/libfc/fc_exch.c if (!(ep->esb_stat & ESB_ST_REC_QUAL)) { ep 1433 drivers/scsi/libfc/fc_exch.c ep->esb_stat |= ESB_ST_REC_QUAL; ep 1434 drivers/scsi/libfc/fc_exch.c fc_exch_hold(ep); /* hold for REC_QUAL */ ep 1436 drivers/scsi/libfc/fc_exch.c fc_exch_timer_set_locked(ep, ep->r_a_tov); ep 1440 drivers/scsi/libfc/fc_exch.c sp = &ep->seq; ep 1450 drivers/scsi/libfc/fc_exch.c ep->esb_stat |= ESB_ST_ABNORMAL; ep 1451 drivers/scsi/libfc/fc_exch.c spin_unlock_bh(&ep->ex_lock); ep 1511 drivers/scsi/libfc/fc_exch.c struct fc_exch *ep = NULL; ep 1536 drivers/scsi/libfc/fc_exch.c ep = fc_seq_exch(sp); ep 1538 drivers/scsi/libfc/fc_exch.c ep->encaps = fr_encaps(fp); ep 1551 drivers/scsi/libfc/fc_exch.c if (!fc_invoke_resp(ep, sp, fp)) ep 1553 drivers/scsi/libfc/fc_exch.c fc_exch_release(ep); /* release from lookup */ ep 1572 drivers/scsi/libfc/fc_exch.c struct fc_exch *ep; ep 1577 drivers/scsi/libfc/fc_exch.c ep = fc_exch_find(mp, ntohs(fh->fh_ox_id)); ep 1578 drivers/scsi/libfc/fc_exch.c if (!ep) { ep 1582 drivers/scsi/libfc/fc_exch.c if (ep->esb_stat & ESB_ST_COMPLETE) { ep 1586 drivers/scsi/libfc/fc_exch.c if (ep->rxid == FC_XID_UNKNOWN) ep 1587 drivers/scsi/libfc/fc_exch.c ep->rxid = ntohs(fh->fh_rx_id); ep 1588 drivers/scsi/libfc/fc_exch.c if (ep->sid != 0 && ep->sid != ntoh24(fh->fh_d_id)) { ep 1592 drivers/scsi/libfc/fc_exch.c if (ep->did != ntoh24(fh->fh_s_id) && ep 1593 drivers/scsi/libfc/fc_exch.c ep->did != FC_FID_FLOGI) { ep 1598 drivers/scsi/libfc/fc_exch.c sp = &ep->seq; ep 1607 drivers/scsi/libfc/fc_exch.c spin_lock_bh(&ep->ex_lock); ep 1609 drivers/scsi/libfc/fc_exch.c ep->esb_stat |= ESB_ST_SEQ_INIT; ep 1610 drivers/scsi/libfc/fc_exch.c spin_unlock_bh(&ep->ex_lock); ep 1618 drivers/scsi/libfc/fc_exch.c spin_lock_bh(&ep->ex_lock); ep 1619 drivers/scsi/libfc/fc_exch.c rc = fc_exch_done_locked(ep); ep 1620 drivers/scsi/libfc/fc_exch.c WARN_ON(fc_seq_exch(sp) != ep); ep 1621 drivers/scsi/libfc/fc_exch.c spin_unlock_bh(&ep->ex_lock); ep 1623 drivers/scsi/libfc/fc_exch.c fc_exch_delete(ep); ep 1639 drivers/scsi/libfc/fc_exch.c if (!fc_invoke_resp(ep, sp, fp)) ep 1642 drivers/scsi/libfc/fc_exch.c fc_exch_release(ep); ep 1645 drivers/scsi/libfc/fc_exch.c fc_exch_release(ep); ep 1678 drivers/scsi/libfc/fc_exch.c static void fc_exch_abts_resp(struct fc_exch *ep, struct fc_frame *fp) ep 1688 drivers/scsi/libfc/fc_exch.c FC_EXCH_DBG(ep, "exch: BLS rctl %x - %s\n", fh->fh_r_ctl, ep 1691 drivers/scsi/libfc/fc_exch.c if (cancel_delayed_work_sync(&ep->timeout_work)) { ep 1692 drivers/scsi/libfc/fc_exch.c FC_EXCH_DBG(ep, "Exchange timer canceled due to ABTS response\n"); ep 1693 drivers/scsi/libfc/fc_exch.c fc_exch_release(ep); /* release from pending timer hold */ ep 1696 drivers/scsi/libfc/fc_exch.c spin_lock_bh(&ep->ex_lock); ep 1710 drivers/scsi/libfc/fc_exch.c if ((ep->esb_stat & ESB_ST_REC_QUAL) == 0 && ep 1712 drivers/scsi/libfc/fc_exch.c ap->ba_seq_id == ep->seq_id) && low != high) { ep 1713 drivers/scsi/libfc/fc_exch.c ep->esb_stat |= ESB_ST_REC_QUAL; ep 1714 drivers/scsi/libfc/fc_exch.c fc_exch_hold(ep); /* hold for recovery qualifier */ ep 1727 drivers/scsi/libfc/fc_exch.c sp = &ep->seq; ep 1731 drivers/scsi/libfc/fc_exch.c if (ep->fh_type != FC_TYPE_FCP && ep 1733 drivers/scsi/libfc/fc_exch.c rc = fc_exch_done_locked(ep); ep 1734 drivers/scsi/libfc/fc_exch.c spin_unlock_bh(&ep->ex_lock); ep 1736 drivers/scsi/libfc/fc_exch.c fc_exch_hold(ep); ep 1738 drivers/scsi/libfc/fc_exch.c fc_exch_delete(ep); ep 1739 drivers/scsi/libfc/fc_exch.c if (!fc_invoke_resp(ep, sp, fp)) ep 1742 drivers/scsi/libfc/fc_exch.c fc_exch_timer_set(ep, ep->r_a_tov); ep 1743 drivers/scsi/libfc/fc_exch.c fc_exch_release(ep); ep 1757 drivers/scsi/libfc/fc_exch.c struct fc_exch *ep; ep 1764 drivers/scsi/libfc/fc_exch.c ep = fc_exch_find(mp, (f_ctl & FC_FC_EX_CTX) ? ep 1766 drivers/scsi/libfc/fc_exch.c if (ep && (f_ctl & FC_FC_SEQ_INIT)) { ep 1767 drivers/scsi/libfc/fc_exch.c spin_lock_bh(&ep->ex_lock); ep 1768 drivers/scsi/libfc/fc_exch.c ep->esb_stat |= ESB_ST_SEQ_INIT; ep 1769 drivers/scsi/libfc/fc_exch.c spin_unlock_bh(&ep->ex_lock); ep 1781 drivers/scsi/libfc/fc_exch.c if (ep) ep 1782 drivers/scsi/libfc/fc_exch.c FC_EXCH_DBG(ep, "BLS rctl %x - %s received\n", ep 1792 drivers/scsi/libfc/fc_exch.c if (ep) ep 1793 drivers/scsi/libfc/fc_exch.c fc_exch_abts_resp(ep, fp); ep 1798 drivers/scsi/libfc/fc_exch.c if (ep) ep 1799 drivers/scsi/libfc/fc_exch.c fc_exch_recv_abts(ep, fp); ep 1808 drivers/scsi/libfc/fc_exch.c if (ep) ep 1809 drivers/scsi/libfc/fc_exch.c fc_exch_release(ep); /* release hold taken by fc_exch_find */ ep 1881 drivers/scsi/libfc/fc_exch.c static void fc_exch_reset(struct fc_exch *ep) ep 1886 drivers/scsi/libfc/fc_exch.c spin_lock_bh(&ep->ex_lock); ep 1887 drivers/scsi/libfc/fc_exch.c ep->state |= FC_EX_RST_CLEANUP; ep 1888 drivers/scsi/libfc/fc_exch.c fc_exch_timer_cancel(ep); ep 1889 drivers/scsi/libfc/fc_exch.c if (ep->esb_stat & ESB_ST_REC_QUAL) ep 1890 drivers/scsi/libfc/fc_exch.c atomic_dec(&ep->ex_refcnt); /* drop hold for rec_qual */ ep 1891 drivers/scsi/libfc/fc_exch.c ep->esb_stat &= ~ESB_ST_REC_QUAL; ep 1892 drivers/scsi/libfc/fc_exch.c sp = &ep->seq; ep 1893 drivers/scsi/libfc/fc_exch.c rc = fc_exch_done_locked(ep); ep 1894 drivers/scsi/libfc/fc_exch.c spin_unlock_bh(&ep->ex_lock); ep 1896 drivers/scsi/libfc/fc_exch.c fc_exch_hold(ep); ep 1899 drivers/scsi/libfc/fc_exch.c fc_exch_delete(ep); ep 1901 drivers/scsi/libfc/fc_exch.c fc_invoke_resp(ep, sp, ERR_PTR(-FC_EX_CLOSED)); ep 1902 drivers/scsi/libfc/fc_exch.c fc_seq_set_resp(sp, NULL, ep->arg); ep 1903 drivers/scsi/libfc/fc_exch.c fc_exch_release(ep); ep 1922 drivers/scsi/libfc/fc_exch.c struct fc_exch *ep; ep 1927 drivers/scsi/libfc/fc_exch.c list_for_each_entry_safe(ep, next, &pool->ex_list, ex_list) { ep 1928 drivers/scsi/libfc/fc_exch.c if ((lport == ep->lp) && ep 1929 drivers/scsi/libfc/fc_exch.c (sid == 0 || sid == ep->sid) && ep 1930 drivers/scsi/libfc/fc_exch.c (did == 0 || did == ep->did)) { ep 1931 drivers/scsi/libfc/fc_exch.c fc_exch_hold(ep); ep 1934 drivers/scsi/libfc/fc_exch.c fc_exch_reset(ep); ep 1936 drivers/scsi/libfc/fc_exch.c fc_exch_release(ep); ep 2004 drivers/scsi/libfc/fc_exch.c struct fc_exch *ep; ep 2032 drivers/scsi/libfc/fc_exch.c ep = fc_exch_lookup(lport, xid); ep 2033 drivers/scsi/libfc/fc_exch.c if (!ep) { ep 2039 drivers/scsi/libfc/fc_exch.c FC_EXCH_DBG(ep, "REC request from %x: rxid %x oxid %x\n", ep 2041 drivers/scsi/libfc/fc_exch.c if (ep->oid != sid || oxid != ep->oxid) ep 2043 drivers/scsi/libfc/fc_exch.c if (rxid != FC_XID_UNKNOWN && rxid != ep->rxid) ep 2047 drivers/scsi/libfc/fc_exch.c FC_EXCH_DBG(ep, "Drop REC request, out of memory\n"); ep 2056 drivers/scsi/libfc/fc_exch.c acc->reca_rx_id = htons(ep->rxid); ep 2057 drivers/scsi/libfc/fc_exch.c if (ep->sid == ep->oid) ep 2058 drivers/scsi/libfc/fc_exch.c hton24(acc->reca_rfid, ep->did); ep 2060 drivers/scsi/libfc/fc_exch.c hton24(acc->reca_rfid, ep->sid); ep 2061 drivers/scsi/libfc/fc_exch.c acc->reca_fc4value = htonl(ep->seq.rec_data); ep 2062 drivers/scsi/libfc/fc_exch.c acc->reca_e_stat = htonl(ep->esb_stat & (ESB_ST_RESP | ep 2068 drivers/scsi/libfc/fc_exch.c fc_exch_release(ep); ep 2072 drivers/scsi/libfc/fc_exch.c fc_exch_release(ep); ep 2167 drivers/scsi/libfc/fc_exch.c struct fc_exch *ep; ep 2173 drivers/scsi/libfc/fc_exch.c ep = fc_exch_alloc(lport, fp); ep 2174 drivers/scsi/libfc/fc_exch.c if (!ep) { ep 2178 drivers/scsi/libfc/fc_exch.c ep->esb_stat |= ESB_ST_SEQ_INIT; ep 2180 drivers/scsi/libfc/fc_exch.c fc_exch_set_addr(ep, ntoh24(fh->fh_s_id), ntoh24(fh->fh_d_id)); ep 2181 drivers/scsi/libfc/fc_exch.c ep->resp = resp; ep 2182 drivers/scsi/libfc/fc_exch.c ep->destructor = destructor; ep 2183 drivers/scsi/libfc/fc_exch.c ep->arg = arg; ep 2184 drivers/scsi/libfc/fc_exch.c ep->r_a_tov = lport->r_a_tov; ep 2185 drivers/scsi/libfc/fc_exch.c ep->lp = lport; ep 2186 drivers/scsi/libfc/fc_exch.c sp = &ep->seq; ep 2188 drivers/scsi/libfc/fc_exch.c ep->fh_type = fh->fh_type; /* save for possbile timeout handling */ ep 2189 drivers/scsi/libfc/fc_exch.c ep->f_ctl = ntoh24(fh->fh_f_ctl); ep 2190 drivers/scsi/libfc/fc_exch.c fc_exch_setup_hdr(ep, fp, ep->f_ctl); ep 2193 drivers/scsi/libfc/fc_exch.c if (ep->xid <= lport->lro_xid && fh->fh_r_ctl == FC_RCTL_DD_UNSOL_CMD) { ep 2195 drivers/scsi/libfc/fc_exch.c fc_fcp_ddp_setup(fr_fsp(fp), ep->xid); ep 2202 drivers/scsi/libfc/fc_exch.c fc_exch_timer_set_locked(ep, timer_msec); ep 2203 drivers/scsi/libfc/fc_exch.c ep->f_ctl &= ~FC_FC_FIRST_SEQ; /* not first seq */ ep 2205 drivers/scsi/libfc/fc_exch.c if (ep->f_ctl & FC_FC_SEQ_INIT) ep 2206 drivers/scsi/libfc/fc_exch.c ep->esb_stat &= ~ESB_ST_SEQ_INIT; ep 2207 drivers/scsi/libfc/fc_exch.c spin_unlock_bh(&ep->ex_lock); ep 2212 drivers/scsi/libfc/fc_exch.c rc = fc_exch_done_locked(ep); ep 2213 drivers/scsi/libfc/fc_exch.c spin_unlock_bh(&ep->ex_lock); ep 2215 drivers/scsi/libfc/fc_exch.c fc_exch_delete(ep); ep 2227 drivers/scsi/libfc/fc_exch.c static void fc_exch_rrq(struct fc_exch *ep) ep 2234 drivers/scsi/libfc/fc_exch.c lport = ep->lp; ep 2243 drivers/scsi/libfc/fc_exch.c hton24(rrq->rrq_s_id, ep->sid); ep 2244 drivers/scsi/libfc/fc_exch.c rrq->rrq_ox_id = htons(ep->oxid); ep 2245 drivers/scsi/libfc/fc_exch.c rrq->rrq_rx_id = htons(ep->rxid); ep 2247 drivers/scsi/libfc/fc_exch.c did = ep->did; ep 2248 drivers/scsi/libfc/fc_exch.c if (ep->esb_stat & ESB_ST_RESP) ep 2249 drivers/scsi/libfc/fc_exch.c did = ep->sid; ep 2255 drivers/scsi/libfc/fc_exch.c if (fc_exch_seq_send(lport, fp, fc_exch_rrq_resp, NULL, ep, ep 2260 drivers/scsi/libfc/fc_exch.c FC_EXCH_DBG(ep, "exch: RRQ send failed\n"); ep 2261 drivers/scsi/libfc/fc_exch.c spin_lock_bh(&ep->ex_lock); ep 2262 drivers/scsi/libfc/fc_exch.c if (ep->state & (FC_EX_RST_CLEANUP | FC_EX_DONE)) { ep 2263 drivers/scsi/libfc/fc_exch.c spin_unlock_bh(&ep->ex_lock); ep 2265 drivers/scsi/libfc/fc_exch.c fc_exch_release(ep); ep 2268 drivers/scsi/libfc/fc_exch.c ep->esb_stat |= ESB_ST_REC_QUAL; ep 2269 drivers/scsi/libfc/fc_exch.c fc_exch_timer_set_locked(ep, ep->r_a_tov); ep 2270 drivers/scsi/libfc/fc_exch.c spin_unlock_bh(&ep->ex_lock); ep 2280 drivers/scsi/libfc/fc_exch.c struct fc_exch *ep = NULL; /* request or subject exchange */ ep 2298 drivers/scsi/libfc/fc_exch.c ep = fc_exch_lookup(lport, xid); ep 2300 drivers/scsi/libfc/fc_exch.c if (!ep) ep 2302 drivers/scsi/libfc/fc_exch.c spin_lock_bh(&ep->ex_lock); ep 2303 drivers/scsi/libfc/fc_exch.c FC_EXCH_DBG(ep, "RRQ request from %x: xid %x rxid %x oxid %x\n", ep 2305 drivers/scsi/libfc/fc_exch.c if (ep->oxid != ntohs(rp->rrq_ox_id)) ep 2307 drivers/scsi/libfc/fc_exch.c if (ep->rxid != ntohs(rp->rrq_rx_id) && ep 2308 drivers/scsi/libfc/fc_exch.c ep->rxid != FC_XID_UNKNOWN) ep 2311 drivers/scsi/libfc/fc_exch.c if (ep->sid != sid) ep 2317 drivers/scsi/libfc/fc_exch.c if (ep->esb_stat & ESB_ST_REC_QUAL) { ep 2318 drivers/scsi/libfc/fc_exch.c ep->esb_stat &= ~ESB_ST_REC_QUAL; ep 2319 drivers/scsi/libfc/fc_exch.c atomic_dec(&ep->ex_refcnt); /* drop hold for rec qual */ ep 2321 drivers/scsi/libfc/fc_exch.c if (ep->esb_stat & ESB_ST_COMPLETE) ep 2322 drivers/scsi/libfc/fc_exch.c fc_exch_timer_cancel(ep); ep 2324 drivers/scsi/libfc/fc_exch.c spin_unlock_bh(&ep->ex_lock); ep 2333 drivers/scsi/libfc/fc_exch.c spin_unlock_bh(&ep->ex_lock); ep 2337 drivers/scsi/libfc/fc_exch.c if (ep) ep 2338 drivers/scsi/libfc/fc_exch.c fc_exch_release(ep); /* drop hold from fc_exch_find */ ep 596 drivers/scsi/libfc/fc_fcp.c struct fc_exch *ep; ep 717 drivers/scsi/libfc/fc_fcp.c ep = fc_seq_exch(seq); ep 718 drivers/scsi/libfc/fc_fcp.c fc_fill_fc_hdr(fp, FC_RCTL_DD_SOL_DATA, ep->did, ep->sid, ep 986 drivers/scsi/libfc/fc_fcp.c struct fc_exch *ep; ep 1022 drivers/scsi/libfc/fc_fcp.c ep = fc_seq_exch(seq); ep 1024 drivers/scsi/libfc/fc_fcp.c ep->did, ep->sid, ep 1561 drivers/scsi/libfc/fc_fcp.c struct fc_exch *ep = fc_seq_exch(fsp->seq_ptr); ep 1562 drivers/scsi/libfc/fc_fcp.c ep->state |= FC_EX_QUARANTINE; ep 1720 drivers/scsi/libfc/fc_fcp.c struct fc_exch *ep = fc_seq_exch(fsp->seq_ptr); ep 1738 drivers/scsi/libfc/fc_fcp.c srr->srr_ox_id = htons(ep->oxid); ep 1739 drivers/scsi/libfc/fc_fcp.c srr->srr_rx_id = htons(ep->rxid); ep 967 drivers/scsi/lpfc/lpfc_nvme.c struct nvme_fc_ersp_iu *ep; ep 1031 drivers/scsi/lpfc/lpfc_nvme.c ep = (struct nvme_fc_ersp_iu *)nCmd->rspaddr; ep 1049 drivers/scsi/lpfc/lpfc_nvme.c ep->iu_len = cpu_to_be16(8); ep 1050 drivers/scsi/lpfc/lpfc_nvme.c ep->rsn = wcqe->parameter; ep 1051 drivers/scsi/lpfc/lpfc_nvme.c ep->xfrd_len = cpu_to_be32(nCmd->payload_length); ep 1052 drivers/scsi/lpfc/lpfc_nvme.c ep->rsvd12 = 0; ep 1053 drivers/scsi/lpfc/lpfc_nvme.c ptr = (uint32_t *)&ep->cqe.result.u64; ep 1057 drivers/scsi/lpfc/lpfc_nvme.c ep->cqe.sq_head = sqhd; ep 1058 drivers/scsi/lpfc/lpfc_nvme.c ep->cqe.sq_id = nCmd->sqid; ep 1059 drivers/scsi/lpfc/lpfc_nvme.c ep->cqe.command_id = cid; ep 1060 drivers/scsi/lpfc/lpfc_nvme.c ep->cqe.status = 0; ep 791 drivers/scsi/ncr53c8xx.c char *ep; ep 797 drivers/scsi/ncr53c8xx.c v = simple_strtoul(p, &ep, 0); ep 826 drivers/scsi/ncr53c8xx.c p = ep; ep 975 drivers/scsi/qedi/qedi_fw.c dbell.sq_prod = qedi_conn->ep->fw_sq_prod_idx; ep 976 drivers/scsi/qedi/qedi_fw.c writel(*(u32 *)&dbell, qedi_conn->ep->p_doorbell); ep 985 drivers/scsi/qedi/qedi_fw.c qedi_conn->ep->sq_prod_idx, qedi_conn->ep->fw_sq_prod_idx, ep 991 drivers/scsi/qedi/qedi_fw.c struct qedi_endpoint *ep; ep 994 drivers/scsi/qedi/qedi_fw.c ep = qedi_conn->ep; ep 995 drivers/scsi/qedi/qedi_fw.c rval = ep->sq_prod_idx; ep 998 drivers/scsi/qedi/qedi_fw.c ep->sq_prod_idx++; ep 999 drivers/scsi/qedi/qedi_fw.c ep->fw_sq_prod_idx++; ep 1000 drivers/scsi/qedi/qedi_fw.c if (ep->sq_prod_idx == QEDI_SQ_SIZE) ep 1001 drivers/scsi/qedi/qedi_fw.c ep->sq_prod_idx = 0; ep 1018 drivers/scsi/qedi/qedi_fw.c struct qedi_endpoint *ep; ep 1025 drivers/scsi/qedi/qedi_fw.c ep = qedi_conn->ep; ep 1089 drivers/scsi/qedi/qedi_fw.c task_params.sqe = &ep->sq[sq_idx]; ep 1120 drivers/scsi/qedi/qedi_fw.c struct qedi_endpoint *ep; ep 1127 drivers/scsi/qedi/qedi_fw.c ep = qedi_conn->ep; ep 1163 drivers/scsi/qedi/qedi_fw.c task_params.sqe = &ep->sq[sq_idx]; ep 1259 drivers/scsi/qedi/qedi_fw.c qedi_conn->ep), ep 1303 drivers/scsi/qedi/qedi_fw.c qedi_ep = qedi_conn->ep; ep 1469 drivers/scsi/qedi/qedi_fw.c struct qedi_endpoint *ep; ep 1477 drivers/scsi/qedi/qedi_fw.c ep = qedi_conn->ep; ep 1478 drivers/scsi/qedi/qedi_fw.c if (!ep) ep 1534 drivers/scsi/qedi/qedi_fw.c task_params.sqe = &ep->sq[sq_idx]; ep 1608 drivers/scsi/qedi/qedi_fw.c struct qedi_endpoint *ep; ep 1617 drivers/scsi/qedi/qedi_fw.c ep = qedi_conn->ep; ep 1674 drivers/scsi/qedi/qedi_fw.c task_params.sqe = &ep->sq[sq_idx]; ep 1707 drivers/scsi/qedi/qedi_fw.c struct qedi_endpoint *ep; ep 1716 drivers/scsi/qedi/qedi_fw.c ep = qedi_conn->ep; ep 1791 drivers/scsi/qedi/qedi_fw.c task_params.sqe = &ep->sq[sq_idx]; ep 2049 drivers/scsi/qedi/qedi_fw.c struct qedi_endpoint *ep; ep 2056 drivers/scsi/qedi/qedi_fw.c ep = qedi_conn->ep; ep 2153 drivers/scsi/qedi/qedi_fw.c task_params.sqe = &ep->sq[sq_idx]; ep 2191 drivers/scsi/qedi/qedi_fw.c struct qedi_endpoint *ep; ep 2204 drivers/scsi/qedi/qedi_fw.c ep = qedi_conn->ep; ep 2208 drivers/scsi/qedi/qedi_fw.c task_params.sqe = &ep->sq[sq_idx]; ep 27 drivers/scsi/qedi/qedi_gbl.h int qedi_alloc_sq(struct qedi_ctx *qedi, struct qedi_endpoint *ep); ep 28 drivers/scsi/qedi/qedi_gbl.h void qedi_free_sq(struct qedi_ctx *qedi, struct qedi_endpoint *ep); ep 51 drivers/scsi/qedi/qedi_gbl.h void qedi_process_iscsi_error(struct qedi_endpoint *ep, ep 56 drivers/scsi/qedi/qedi_gbl.h void qedi_process_tcp_error(struct qedi_endpoint *ep, ep 238 drivers/scsi/qedi/qedi_iscsi.c qedi_session_create(struct iscsi_endpoint *ep, u16 cmds_max, ep 246 drivers/scsi/qedi/qedi_iscsi.c if (!ep) ep 249 drivers/scsi/qedi/qedi_iscsi.c qedi_ep = ep->dd_data; ep 312 drivers/scsi/qedi/qedi_iscsi.c qedi_conn->ep = NULL; ep 379 drivers/scsi/qedi/qedi_iscsi.c struct iscsi_endpoint *ep; ep 381 drivers/scsi/qedi/qedi_iscsi.c ep = iscsi_lookup_endpoint(transport_fd); ep 382 drivers/scsi/qedi/qedi_iscsi.c if (!ep) ep 385 drivers/scsi/qedi/qedi_iscsi.c qedi_ep = ep->dd_data; ep 394 drivers/scsi/qedi/qedi_iscsi.c qedi_conn->ep = qedi_ep; ep 418 drivers/scsi/qedi/qedi_iscsi.c qedi_ep = qedi_conn->ep; ep 611 drivers/scsi/qedi/qedi_iscsi.c static int qedi_ep_get_param(struct iscsi_endpoint *ep, ep 614 drivers/scsi/qedi/qedi_iscsi.c struct qedi_endpoint *qedi_ep = ep->dd_data; ep 805 drivers/scsi/qedi/qedi_iscsi.c struct iscsi_endpoint *ep; ep 835 drivers/scsi/qedi/qedi_iscsi.c ep = iscsi_create_endpoint(sizeof(struct qedi_endpoint)); ep 836 drivers/scsi/qedi/qedi_iscsi.c if (!ep) { ep 841 drivers/scsi/qedi/qedi_iscsi.c qedi_ep = ep->dd_data; ep 924 drivers/scsi/qedi/qedi_iscsi.c return ep; ep 935 drivers/scsi/qedi/qedi_iscsi.c iscsi_destroy_endpoint(ep); ep 939 drivers/scsi/qedi/qedi_iscsi.c static int qedi_ep_poll(struct iscsi_endpoint *ep, int timeout_ms) ep 947 drivers/scsi/qedi/qedi_iscsi.c qedi_ep = ep->dd_data; ep 982 drivers/scsi/qedi/qedi_iscsi.c static void qedi_ep_disconnect(struct iscsi_endpoint *ep) ep 994 drivers/scsi/qedi/qedi_iscsi.c qedi_ep = ep->dd_data; ep 1096 drivers/scsi/qedi/qedi_iscsi.c qedi_conn->ep = NULL; ep 1102 drivers/scsi/qedi/qedi_iscsi.c iscsi_destroy_endpoint(ep); ep 1552 drivers/scsi/qedi/qedi_iscsi.c void qedi_process_iscsi_error(struct qedi_endpoint *ep, ep 1565 drivers/scsi/qedi/qedi_iscsi.c if (!ep) ep 1568 drivers/scsi/qedi/qedi_iscsi.c qedi_conn = ep->conn; ep 1572 drivers/scsi/qedi/qedi_iscsi.c qedi = ep->qedi; ep 1599 drivers/scsi/qedi/qedi_iscsi.c void qedi_process_tcp_error(struct qedi_endpoint *ep, ep 1604 drivers/scsi/qedi/qedi_iscsi.c if (!ep) ep 1607 drivers/scsi/qedi/qedi_iscsi.c qedi_conn = ep->conn; ep 1611 drivers/scsi/qedi/qedi_iscsi.c QEDI_ERR(&ep->qedi->dbg_ctx, "async event TCP error:0x%x\n", ep 151 drivers/scsi/qedi/qedi_iscsi.h struct qedi_endpoint *ep; ep 975 drivers/scsi/qedi/qedi_main.c if (qedi_conn->ep->ip_type == TCP_IPV4) ep 977 drivers/scsi/qedi/qedi_main.c qedi_conn->ep->dst_addr); ep 980 drivers/scsi/qedi/qedi_main.c qedi_conn->ep->dst_addr); ep 1689 drivers/scsi/qedi/qedi_main.c int qedi_alloc_sq(struct qedi_ctx *qedi, struct qedi_endpoint *ep) ep 1696 drivers/scsi/qedi/qedi_main.c if (!ep) ep 1700 drivers/scsi/qedi/qedi_main.c ep->sq_mem_size = QEDI_SQ_SIZE * sizeof(struct iscsi_wqe); ep 1701 drivers/scsi/qedi/qedi_main.c ep->sq_mem_size += QEDI_PAGE_SIZE - 1; ep 1703 drivers/scsi/qedi/qedi_main.c ep->sq_pbl_size = (ep->sq_mem_size / QEDI_PAGE_SIZE) * sizeof(void *); ep 1704 drivers/scsi/qedi/qedi_main.c ep->sq_pbl_size = ep->sq_pbl_size + QEDI_PAGE_SIZE; ep 1706 drivers/scsi/qedi/qedi_main.c ep->sq = dma_alloc_coherent(&qedi->pdev->dev, ep->sq_mem_size, ep 1707 drivers/scsi/qedi/qedi_main.c &ep->sq_dma, GFP_KERNEL); ep 1708 drivers/scsi/qedi/qedi_main.c if (!ep->sq) { ep 1714 drivers/scsi/qedi/qedi_main.c ep->sq_pbl = dma_alloc_coherent(&qedi->pdev->dev, ep->sq_pbl_size, ep 1715 drivers/scsi/qedi/qedi_main.c &ep->sq_pbl_dma, GFP_KERNEL); ep 1716 drivers/scsi/qedi/qedi_main.c if (!ep->sq_pbl) { ep 1724 drivers/scsi/qedi/qedi_main.c num_pages = ep->sq_mem_size / QEDI_PAGE_SIZE; ep 1725 drivers/scsi/qedi/qedi_main.c page = ep->sq_dma; ep 1726 drivers/scsi/qedi/qedi_main.c pbl = (u32 *)ep->sq_pbl; ep 1739 drivers/scsi/qedi/qedi_main.c dma_free_coherent(&qedi->pdev->dev, ep->sq_mem_size, ep->sq, ep 1740 drivers/scsi/qedi/qedi_main.c ep->sq_dma); ep 1745 drivers/scsi/qedi/qedi_main.c void qedi_free_sq(struct qedi_ctx *qedi, struct qedi_endpoint *ep) ep 1747 drivers/scsi/qedi/qedi_main.c if (ep->sq_pbl) ep 1748 drivers/scsi/qedi/qedi_main.c dma_free_coherent(&qedi->pdev->dev, ep->sq_pbl_size, ep->sq_pbl, ep 1749 drivers/scsi/qedi/qedi_main.c ep->sq_pbl_dma); ep 1750 drivers/scsi/qedi/qedi_main.c if (ep->sq) ep 1751 drivers/scsi/qedi/qedi_main.c dma_free_coherent(&qedi->pdev->dev, ep->sq_mem_size, ep->sq, ep 1752 drivers/scsi/qedi/qedi_main.c ep->sq_dma); ep 2137 drivers/scsi/qla2xxx/qla_isr.c uint8_t *ep = &sts24->data[20]; ep 2149 drivers/scsi/qla2xxx/qla_isr.c e_guard = le16_to_cpu(*(uint16_t *)(ep + 2)); ep 2150 drivers/scsi/qla2xxx/qla_isr.c e_app_tag = le16_to_cpu(*(uint16_t *)(ep + 0)); ep 2151 drivers/scsi/qla2xxx/qla_isr.c e_ref_tag = le32_to_cpu(*(uint32_t *)(ep + 4)); ep 3442 drivers/scsi/qla2xxx/qla_target.c uint8_t *ep = &sts->expected_dif[0]; ep 3454 drivers/scsi/qla2xxx/qla_target.c cmd->e_guard = be16_to_cpu(*(uint16_t *)(ep + 0)); ep 3455 drivers/scsi/qla2xxx/qla_target.c cmd->e_app_tag = be16_to_cpu(*(uint16_t *)(ep + 2)); ep 3456 drivers/scsi/qla2xxx/qla_target.c cmd->e_ref_tag = be32_to_cpu(*(uint32_t *)(ep + 4)); ep 124 drivers/scsi/qla4xxx/ql4_os.c static int qla4xxx_ep_poll(struct iscsi_endpoint *ep, int timeout_ms); ep 125 drivers/scsi/qla4xxx/ql4_os.c static void qla4xxx_ep_disconnect(struct iscsi_endpoint *ep); ep 126 drivers/scsi/qla4xxx/ql4_os.c static int qla4xxx_get_ep_param(struct iscsi_endpoint *ep, ep 136 drivers/scsi/qla4xxx/ql4_os.c qla4xxx_session_create(struct iscsi_endpoint *ep, uint16_t cmds_max, ep 1678 drivers/scsi/qla4xxx/ql4_os.c struct iscsi_endpoint *ep; ep 1691 drivers/scsi/qla4xxx/ql4_os.c ep = iscsi_create_endpoint(sizeof(struct qla_endpoint)); ep 1692 drivers/scsi/qla4xxx/ql4_os.c if (!ep) { ep 1697 drivers/scsi/qla4xxx/ql4_os.c qla_ep = ep->dd_data; ep 1717 drivers/scsi/qla4xxx/ql4_os.c return ep; ep 1720 drivers/scsi/qla4xxx/ql4_os.c static int qla4xxx_ep_poll(struct iscsi_endpoint *ep, int timeout_ms) ep 1726 drivers/scsi/qla4xxx/ql4_os.c qla_ep = ep->dd_data; ep 1736 drivers/scsi/qla4xxx/ql4_os.c static void qla4xxx_ep_disconnect(struct iscsi_endpoint *ep) ep 1741 drivers/scsi/qla4xxx/ql4_os.c qla_ep = ep->dd_data; ep 1745 drivers/scsi/qla4xxx/ql4_os.c iscsi_destroy_endpoint(ep); ep 1748 drivers/scsi/qla4xxx/ql4_os.c static int qla4xxx_get_ep_param(struct iscsi_endpoint *ep, ep 1752 drivers/scsi/qla4xxx/ql4_os.c struct qla_endpoint *qla_ep = ep->dd_data; ep 3052 drivers/scsi/qla4xxx/ql4_os.c qla4xxx_session_create(struct iscsi_endpoint *ep, ep 3065 drivers/scsi/qla4xxx/ql4_os.c if (!ep) { ep 3070 drivers/scsi/qla4xxx/ql4_os.c qla_ep = ep->dd_data; ep 3191 drivers/scsi/qla4xxx/ql4_os.c struct iscsi_endpoint *ep; ep 3205 drivers/scsi/qla4xxx/ql4_os.c ep = iscsi_lookup_endpoint(transport_fd); ep 3206 drivers/scsi/qla4xxx/ql4_os.c if (!ep) ep 3210 drivers/scsi/qla4xxx/ql4_os.c qla_conn->qla_ep = ep->dd_data; ep 6553 drivers/scsi/qla4xxx/ql4_os.c struct iscsi_endpoint *ep; ep 6582 drivers/scsi/qla4xxx/ql4_os.c ep = qla4xxx_ep_connect(ha->host, (struct sockaddr *)dst_addr, 0); ep 6584 drivers/scsi/qla4xxx/ql4_os.c return ep; ep 6881 drivers/scsi/qla4xxx/ql4_os.c struct iscsi_endpoint *ep; ep 6926 drivers/scsi/qla4xxx/ql4_os.c ep = qla4xxx_get_ep_fwdb(ha, fw_ddb_entry); ep 6927 drivers/scsi/qla4xxx/ql4_os.c if (ep) { ep 6928 drivers/scsi/qla4xxx/ql4_os.c ep->conn = cls_conn; ep 6929 drivers/scsi/qla4xxx/ql4_os.c cls_conn->ep = ep; ep 7689 drivers/scsi/qla4xxx/ql4_os.c iscsi_destroy_endpoint(ddb_entry->conn->ep); ep 8972 drivers/scsi/qla4xxx/ql4_os.c iscsi_destroy_endpoint(ddb_entry->conn->ep); ep 165 drivers/scsi/scsi_transport_iscsi.c struct iscsi_endpoint *ep = iscsi_dev_to_endpoint(dev); ep 166 drivers/scsi/scsi_transport_iscsi.c kfree(ep); ep 177 drivers/scsi/scsi_transport_iscsi.c struct iscsi_endpoint *ep = iscsi_dev_to_endpoint(dev); ep 178 drivers/scsi/scsi_transport_iscsi.c return sprintf(buf, "%llu\n", (unsigned long long) ep->id); ep 180 drivers/scsi/scsi_transport_iscsi.c static ISCSI_ATTR(ep, handle, S_IRUGO, show_ep_handle, NULL); ep 195 drivers/scsi/scsi_transport_iscsi.c struct iscsi_endpoint *ep = iscsi_dev_to_endpoint(dev); ep 198 drivers/scsi/scsi_transport_iscsi.c return *epid == ep->id; ep 205 drivers/scsi/scsi_transport_iscsi.c struct iscsi_endpoint *ep; ep 223 drivers/scsi/scsi_transport_iscsi.c ep = kzalloc(sizeof(*ep) + dd_size, GFP_KERNEL); ep 224 drivers/scsi/scsi_transport_iscsi.c if (!ep) ep 227 drivers/scsi/scsi_transport_iscsi.c ep->id = id; ep 228 drivers/scsi/scsi_transport_iscsi.c ep->dev.class = &iscsi_endpoint_class; ep 229 drivers/scsi/scsi_transport_iscsi.c dev_set_name(&ep->dev, "ep-%llu", (unsigned long long) id); ep 230 drivers/scsi/scsi_transport_iscsi.c err = device_register(&ep->dev); ep 234 drivers/scsi/scsi_transport_iscsi.c err = sysfs_create_group(&ep->dev.kobj, &iscsi_endpoint_group); ep 239 drivers/scsi/scsi_transport_iscsi.c ep->dd_data = &ep[1]; ep 240 drivers/scsi/scsi_transport_iscsi.c return ep; ep 243 drivers/scsi/scsi_transport_iscsi.c device_unregister(&ep->dev); ep 247 drivers/scsi/scsi_transport_iscsi.c kfree(ep); ep 252 drivers/scsi/scsi_transport_iscsi.c void iscsi_destroy_endpoint(struct iscsi_endpoint *ep) ep 254 drivers/scsi/scsi_transport_iscsi.c sysfs_remove_group(&ep->dev.kobj, &iscsi_endpoint_group); ep 255 drivers/scsi/scsi_transport_iscsi.c device_unregister(&ep->dev); ep 261 drivers/scsi/scsi_transport_iscsi.c struct iscsi_endpoint *ep; ep 269 drivers/scsi/scsi_transport_iscsi.c ep = iscsi_dev_to_endpoint(dev); ep 275 drivers/scsi/scsi_transport_iscsi.c return ep; ep 2694 drivers/scsi/scsi_transport_iscsi.c iscsi_if_create_session(struct iscsi_internal *priv, struct iscsi_endpoint *ep, ep 2703 drivers/scsi/scsi_transport_iscsi.c session = transport->create_session(ep, cmds_max, queue_depth, ep 2790 drivers/scsi/scsi_transport_iscsi.c struct iscsi_endpoint *ep; ep 2811 drivers/scsi/scsi_transport_iscsi.c ep = transport->ep_connect(shost, dst_addr, non_blocking); ep 2812 drivers/scsi/scsi_transport_iscsi.c if (IS_ERR(ep)) { ep 2813 drivers/scsi/scsi_transport_iscsi.c err = PTR_ERR(ep); ep 2817 drivers/scsi/scsi_transport_iscsi.c ev->r.ep_connect_ret.handle = ep->id; ep 2828 drivers/scsi/scsi_transport_iscsi.c struct iscsi_endpoint *ep; ep 2833 drivers/scsi/scsi_transport_iscsi.c ep = iscsi_lookup_endpoint(ep_handle); ep 2834 drivers/scsi/scsi_transport_iscsi.c if (!ep) ep 2836 drivers/scsi/scsi_transport_iscsi.c conn = ep->conn; ep 2839 drivers/scsi/scsi_transport_iscsi.c conn->ep = NULL; ep 2843 drivers/scsi/scsi_transport_iscsi.c transport->ep_disconnect(ep); ep 2851 drivers/scsi/scsi_transport_iscsi.c struct iscsi_endpoint *ep; ep 2863 drivers/scsi/scsi_transport_iscsi.c ep = iscsi_lookup_endpoint(ev->u.ep_poll.ep_handle); ep 2864 drivers/scsi/scsi_transport_iscsi.c if (!ep) ep 2867 drivers/scsi/scsi_transport_iscsi.c ev->r.retcode = transport->ep_poll(ep, ep 3507 drivers/scsi/scsi_transport_iscsi.c struct iscsi_endpoint *ep = NULL; ep 3526 drivers/scsi/scsi_transport_iscsi.c err = iscsi_if_create_session(priv, ep, ev, ep 3533 drivers/scsi/scsi_transport_iscsi.c ep = iscsi_lookup_endpoint(ev->u.c_bound_session.ep_handle); ep 3534 drivers/scsi/scsi_transport_iscsi.c if (!ep) { ep 3539 drivers/scsi/scsi_transport_iscsi.c err = iscsi_if_create_session(priv, ep, ev, ep 3572 drivers/scsi/scsi_transport_iscsi.c if (conn && conn->ep) ep 3573 drivers/scsi/scsi_transport_iscsi.c iscsi_if_ep_disconnect(transport, conn->ep->id); ep 3586 drivers/scsi/scsi_transport_iscsi.c ep = iscsi_lookup_endpoint(ev->u.b_conn.transport_eph); ep 3587 drivers/scsi/scsi_transport_iscsi.c if (ep) { ep 3588 drivers/scsi/scsi_transport_iscsi.c ep->conn = conn; ep 3591 drivers/scsi/scsi_transport_iscsi.c conn->ep = ep; ep 3809 drivers/scsi/scsi_transport_iscsi.c struct iscsi_endpoint *ep; \ ep 3817 drivers/scsi/scsi_transport_iscsi.c ep = conn->ep; \ ep 3818 drivers/scsi/scsi_transport_iscsi.c if (!ep && t->ep_connect) { \ ep 3823 drivers/scsi/scsi_transport_iscsi.c if (ep) \ ep 3824 drivers/scsi/scsi_transport_iscsi.c rc = t->get_ep_param(ep, param, buf); \ ep 131 drivers/soc/fsl/dpio/qbman-portal.c int dp, int de, int ep) ep 144 drivers/soc/fsl/dpio/qbman-portal.c ep << SWP_CFG_EP_SHIFT); ep 634 drivers/staging/comedi/drivers/dt9812.c struct usb_endpoint_descriptor *ep; ep 645 drivers/staging/comedi/drivers/dt9812.c ep = &host->endpoint[i].desc; ep 653 drivers/staging/comedi/drivers/dt9812.c devpriv->cmd_wr.addr = ep->bEndpointAddress; ep 654 drivers/staging/comedi/drivers/dt9812.c devpriv->cmd_wr.size = usb_endpoint_maxp(ep); ep 658 drivers/staging/comedi/drivers/dt9812.c devpriv->cmd_rd.addr = ep->bEndpointAddress; ep 659 drivers/staging/comedi/drivers/dt9812.c devpriv->cmd_rd.size = usb_endpoint_maxp(ep); ep 670 drivers/staging/comedi/drivers/dt9812.c if ((ep->bEndpointAddress & USB_DIR_IN) != dir) { ep 182 drivers/staging/comedi/drivers/vmk80xx.c struct usb_endpoint_descriptor *ep; ep 190 drivers/staging/comedi/drivers/vmk80xx.c ep = devpriv->ep_rx; ep 191 drivers/staging/comedi/drivers/vmk80xx.c pipe = usb_rcvintpipe(usb, ep->bEndpointAddress); ep 193 drivers/staging/comedi/drivers/vmk80xx.c usb_endpoint_maxp(ep), NULL, ep 201 drivers/staging/comedi/drivers/vmk80xx.c struct usb_endpoint_descriptor *ep; ep 211 drivers/staging/comedi/drivers/vmk80xx.c ep = devpriv->ep_tx; ep 212 drivers/staging/comedi/drivers/vmk80xx.c pipe = usb_sndintpipe(usb, ep->bEndpointAddress); ep 214 drivers/staging/comedi/drivers/vmk80xx.c usb_endpoint_maxp(ep), NULL, ep 208 drivers/staging/emxx_udc/emxx_udc.c static int _nbu2ss_ep_init(struct nbu2ss_udc *udc, struct nbu2ss_ep *ep) ep 214 drivers/staging/emxx_udc/emxx_udc.c if (ep->epnum == 0) ep 217 drivers/staging/emxx_udc/emxx_udc.c num = ep->epnum - 1; ep 222 drivers/staging/emxx_udc/emxx_udc.c data = (begin_adrs << 16) | ep->ep.maxpacket; ep 227 drivers/staging/emxx_udc/emxx_udc.c data = 1 << (ep->epnum + 8); ep 233 drivers/staging/emxx_udc/emxx_udc.c switch (ep->ep_type) { ep 252 drivers/staging/emxx_udc/emxx_udc.c _nbu2ss_endpoint_toggle_reset(udc, (ep->epnum | ep->direct)); ep 254 drivers/staging/emxx_udc/emxx_udc.c if (ep->direct == USB_DIR_OUT) { ep 283 drivers/staging/emxx_udc/emxx_udc.c static int _nbu2ss_epn_exit(struct nbu2ss_udc *udc, struct nbu2ss_ep *ep) ep 288 drivers/staging/emxx_udc/emxx_udc.c if ((ep->epnum == 0) || (udc->vbus_active == 0)) ep 291 drivers/staging/emxx_udc/emxx_udc.c num = ep->epnum - 1; ep 299 drivers/staging/emxx_udc/emxx_udc.c data = 1 << (ep->epnum + 8); ep 302 drivers/staging/emxx_udc/emxx_udc.c if (ep->direct == USB_DIR_OUT) { ep 331 drivers/staging/emxx_udc/emxx_udc.c static void _nbu2ss_ep_dma_init(struct nbu2ss_udc *udc, struct nbu2ss_ep *ep) ep 337 drivers/staging/emxx_udc/emxx_udc.c if (((ep->epnum == 0) || (data & (1 << ep->epnum)) == 0)) ep 340 drivers/staging/emxx_udc/emxx_udc.c num = ep->epnum - 1; ep 342 drivers/staging/emxx_udc/emxx_udc.c if (ep->direct == USB_DIR_OUT) { ep 345 drivers/staging/emxx_udc/emxx_udc.c data = ep->ep.maxpacket; ep 371 drivers/staging/emxx_udc/emxx_udc.c static void _nbu2ss_ep_dma_exit(struct nbu2ss_udc *udc, struct nbu2ss_ep *ep) ep 381 drivers/staging/emxx_udc/emxx_udc.c if ((ep->epnum == 0) || ((data & (1 << ep->epnum)) == 0)) ep 384 drivers/staging/emxx_udc/emxx_udc.c num = ep->epnum - 1; ep 386 drivers/staging/emxx_udc/emxx_udc.c _nbu2ss_ep_dma_abort(udc, ep); ep 388 drivers/staging/emxx_udc/emxx_udc.c if (ep->direct == USB_DIR_OUT) { ep 404 drivers/staging/emxx_udc/emxx_udc.c static void _nbu2ss_ep_dma_abort(struct nbu2ss_udc *udc, struct nbu2ss_ep *ep) ep 408 drivers/staging/emxx_udc/emxx_udc.c _nbu2ss_bitclr(&preg->EP_DCR[ep->epnum - 1].EP_DCR1, DCR1_EPN_REQEN); ep 410 drivers/staging/emxx_udc/emxx_udc.c _nbu2ss_bitclr(&preg->EP_REGS[ep->epnum - 1].EP_DMA_CTRL, EPN_DMA_EN); ep 455 drivers/staging/emxx_udc/emxx_udc.c struct nbu2ss_ep *ep, ep 460 drivers/staging/emxx_udc/emxx_udc.c req->req.dma = ep->phys_buf; ep 485 drivers/staging/emxx_udc/emxx_udc.c struct nbu2ss_ep *ep, ep 504 drivers/staging/emxx_udc/emxx_udc.c memcpy(req->req.buf, ep->virt_buf, ep 846 drivers/staging/emxx_udc/emxx_udc.c static int _nbu2ss_epn_out_pio(struct nbu2ss_udc *udc, struct nbu2ss_ep *ep, ep 873 drivers/staging/emxx_udc/emxx_udc.c _nbu2ss_readl(&preg->EP_REGS[ep->epnum - 1].EP_READ); ep 884 drivers/staging/emxx_udc/emxx_udc.c _nbu2ss_readl(&preg->EP_REGS[ep->epnum - 1].EP_READ); ep 893 drivers/staging/emxx_udc/emxx_udc.c ((req->req.actual % ep->ep.maxpacket) != 0)) { ep 901 drivers/staging/emxx_udc/emxx_udc.c static int _nbu2ss_epn_out_data(struct nbu2ss_udc *udc, struct nbu2ss_ep *ep, ep 908 drivers/staging/emxx_udc/emxx_udc.c if (ep->epnum == 0) ep 911 drivers/staging/emxx_udc/emxx_udc.c num = ep->epnum - 1; ep 915 drivers/staging/emxx_udc/emxx_udc.c if ((ep->ep_type != USB_ENDPOINT_XFER_INT) && (req->req.dma != 0) && ep 919 drivers/staging/emxx_udc/emxx_udc.c i_buf_size = min_t(u32, i_buf_size, ep->ep.maxpacket); ep 920 drivers/staging/emxx_udc/emxx_udc.c nret = _nbu2ss_epn_out_pio(udc, ep, req, i_buf_size); ep 928 drivers/staging/emxx_udc/emxx_udc.c struct nbu2ss_ep *ep, ep 936 drivers/staging/emxx_udc/emxx_udc.c if (ep->epnum == 0) ep 939 drivers/staging/emxx_udc/emxx_udc.c num = ep->epnum - 1; ep 947 drivers/staging/emxx_udc/emxx_udc.c result = _nbu2ss_epn_out_data(udc, ep, req, i_recv_length); ep 948 drivers/staging/emxx_udc/emxx_udc.c if (i_recv_length < ep->ep.maxpacket) { ep 956 drivers/staging/emxx_udc/emxx_udc.c ((req->req.actual % ep->ep.maxpacket) != 0)) { ep 962 drivers/staging/emxx_udc/emxx_udc.c if ((req->req.actual % ep->ep.maxpacket) == 0) { ep 981 drivers/staging/emxx_udc/emxx_udc.c static int _nbu2ss_in_dma(struct nbu2ss_udc *udc, struct nbu2ss_ep *ep, ep 998 drivers/staging/emxx_udc/emxx_udc.c _nbu2ss_dma_map_single(udc, ep, req, USB_DIR_IN); ep 1052 drivers/staging/emxx_udc/emxx_udc.c static int _nbu2ss_epn_in_pio(struct nbu2ss_udc *udc, struct nbu2ss_ep *ep, ep 1075 drivers/staging/emxx_udc/emxx_udc.c &preg->EP_REGS[ep->epnum - 1].EP_WRITE ep 1085 drivers/staging/emxx_udc/emxx_udc.c if (result != ep->ep.maxpacket) { ep 1091 drivers/staging/emxx_udc/emxx_udc.c _nbu2ss_ep_in_end(udc, ep->epnum, temp_32.dw, data); ep 1101 drivers/staging/emxx_udc/emxx_udc.c static int _nbu2ss_epn_in_data(struct nbu2ss_udc *udc, struct nbu2ss_ep *ep, ep 1107 drivers/staging/emxx_udc/emxx_udc.c if (ep->epnum == 0) ep 1110 drivers/staging/emxx_udc/emxx_udc.c num = ep->epnum - 1; ep 1112 drivers/staging/emxx_udc/emxx_udc.c if ((ep->ep_type != USB_ENDPOINT_XFER_INT) && (req->req.dma != 0) && ep 1114 drivers/staging/emxx_udc/emxx_udc.c nret = _nbu2ss_in_dma(udc, ep, req, num, data_size); ep 1116 drivers/staging/emxx_udc/emxx_udc.c data_size = min_t(u32, data_size, ep->ep.maxpacket); ep 1117 drivers/staging/emxx_udc/emxx_udc.c nret = _nbu2ss_epn_in_pio(udc, ep, req, data_size); ep 1125 drivers/staging/emxx_udc/emxx_udc.c struct nbu2ss_ep *ep, struct nbu2ss_req *req) ep 1132 drivers/staging/emxx_udc/emxx_udc.c if (ep->epnum == 0) ep 1135 drivers/staging/emxx_udc/emxx_udc.c num = ep->epnum - 1; ep 1154 drivers/staging/emxx_udc/emxx_udc.c result = _nbu2ss_epn_in_data(udc, ep, req, i_buf_size); ep 1156 drivers/staging/emxx_udc/emxx_udc.c _nbu2ss_zero_len_pkt(udc, ep->epnum); ep 1163 drivers/staging/emxx_udc/emxx_udc.c struct nbu2ss_ep *ep, ep 1175 drivers/staging/emxx_udc/emxx_udc.c if ((req->req.length % ep->ep.maxpacket) == 0) ep 1181 drivers/staging/emxx_udc/emxx_udc.c if (ep->epnum == 0) { ep 1202 drivers/staging/emxx_udc/emxx_udc.c if (ep->direct == USB_DIR_OUT) { ep 1205 drivers/staging/emxx_udc/emxx_udc.c nret = _nbu2ss_epn_out_transfer(udc, ep, req); ep 1208 drivers/staging/emxx_udc/emxx_udc.c nret = _nbu2ss_epn_in_transfer(udc, ep, req); ep 1216 drivers/staging/emxx_udc/emxx_udc.c static void _nbu2ss_restert_transfer(struct nbu2ss_ep *ep) ep 1222 drivers/staging/emxx_udc/emxx_udc.c req = list_first_entry_or_null(&ep->queue, struct nbu2ss_req, queue); ep 1226 drivers/staging/emxx_udc/emxx_udc.c if (ep->epnum > 0) { ep 1228 drivers/staging/emxx_udc/emxx_udc.c &ep->udc->p_regs->EP_REGS[ep->epnum - 1].EP_LEN_DCNT); ep 1231 drivers/staging/emxx_udc/emxx_udc.c if (length < ep->ep.maxpacket) ep 1235 drivers/staging/emxx_udc/emxx_udc.c _nbu2ss_start_transfer(ep->udc, ep, req, bflag); ep 1265 drivers/staging/emxx_udc/emxx_udc.c struct nbu2ss_ep *ep; ep 1279 drivers/staging/emxx_udc/emxx_udc.c ep = &udc->ep[epnum]; ep 1283 drivers/staging/emxx_udc/emxx_udc.c ep->halted = true; ep 1293 drivers/staging/emxx_udc/emxx_udc.c ep->stalled = false; ep 1308 drivers/staging/emxx_udc/emxx_udc.c ep->stalled = false; ep 1309 drivers/staging/emxx_udc/emxx_udc.c if (ep->halted) { ep 1310 drivers/staging/emxx_udc/emxx_udc.c ep->halted = false; ep 1311 drivers/staging/emxx_udc/emxx_udc.c _nbu2ss_restert_transfer(ep); ep 1453 drivers/staging/emxx_udc/emxx_udc.c struct nbu2ss_ep *ep) ep 1461 drivers/staging/emxx_udc/emxx_udc.c if (ep->direct == USB_DIR_IN) { ep 1466 drivers/staging/emxx_udc/emxx_udc.c &preg->EP_REGS[ep->epnum - 1].EP_STATUS); ep 1475 drivers/staging/emxx_udc/emxx_udc.c ep_adrs = ep->epnum | ep->direct; ep 1679 drivers/staging/emxx_udc/emxx_udc.c struct nbu2ss_ep *ep = &udc->ep[0]; ep 1681 drivers/staging/emxx_udc/emxx_udc.c req = list_first_entry_or_null(&ep->queue, struct nbu2ss_req, queue); ep 1702 drivers/staging/emxx_udc/emxx_udc.c struct nbu2ss_ep *ep = &udc->ep[0]; ep 1704 drivers/staging/emxx_udc/emxx_udc.c req = list_first_entry_or_null(&ep->queue, struct nbu2ss_req, queue); ep 1725 drivers/staging/emxx_udc/emxx_udc.c struct nbu2ss_ep *ep = &udc->ep[0]; ep 1727 drivers/staging/emxx_udc/emxx_udc.c req = list_first_entry_or_null(&ep->queue, struct nbu2ss_req, queue); ep 1731 drivers/staging/emxx_udc/emxx_udc.c req->req.complete(&ep->ep, &req->req); ep 1735 drivers/staging/emxx_udc/emxx_udc.c _nbu2ss_ep_done(ep, req, 0); ep 1825 drivers/staging/emxx_udc/emxx_udc.c static void _nbu2ss_ep_done(struct nbu2ss_ep *ep, ep 1829 drivers/staging/emxx_udc/emxx_udc.c struct nbu2ss_udc *udc = ep->udc; ep 1834 drivers/staging/emxx_udc/emxx_udc.c _nbu2ss_fifo_flush(udc, ep); ep 1839 drivers/staging/emxx_udc/emxx_udc.c if (ep->stalled) { ep 1840 drivers/staging/emxx_udc/emxx_udc.c _nbu2ss_epn_set_stall(udc, ep); ep 1842 drivers/staging/emxx_udc/emxx_udc.c if (!list_empty(&ep->queue)) ep 1843 drivers/staging/emxx_udc/emxx_udc.c _nbu2ss_restert_transfer(ep); ep 1847 drivers/staging/emxx_udc/emxx_udc.c if ((ep->direct == USB_DIR_OUT) && (ep->epnum > 0) && ep 1849 drivers/staging/emxx_udc/emxx_udc.c _nbu2ss_dma_unmap_single(udc, ep, req, USB_DIR_OUT); ep 1853 drivers/staging/emxx_udc/emxx_udc.c req->req.complete(&ep->ep, &req->req); ep 1859 drivers/staging/emxx_udc/emxx_udc.c struct nbu2ss_ep *ep, ep 1876 drivers/staging/emxx_udc/emxx_udc.c result = _nbu2ss_epn_in_transfer(udc, ep, req); ep 1879 drivers/staging/emxx_udc/emxx_udc.c if (req->zero && ((req->req.actual % ep->ep.maxpacket) == 0)) { ep 1881 drivers/staging/emxx_udc/emxx_udc.c _nbu2ss_readl(&preg->EP_REGS[ep->epnum - 1].EP_STATUS); ep 1887 drivers/staging/emxx_udc/emxx_udc.c _nbu2ss_zero_len_pkt(udc, ep->epnum); ep 1896 drivers/staging/emxx_udc/emxx_udc.c _nbu2ss_ep_done(ep, req, result); ep 1902 drivers/staging/emxx_udc/emxx_udc.c struct nbu2ss_ep *ep, ep 1907 drivers/staging/emxx_udc/emxx_udc.c result = _nbu2ss_epn_out_transfer(udc, ep, req); ep 1909 drivers/staging/emxx_udc/emxx_udc.c _nbu2ss_ep_done(ep, req, result); ep 1914 drivers/staging/emxx_udc/emxx_udc.c struct nbu2ss_ep *ep, ep 1931 drivers/staging/emxx_udc/emxx_udc.c _nbu2ss_dma_unmap_single(udc, ep, req, USB_DIR_IN); ep 1935 drivers/staging/emxx_udc/emxx_udc.c _nbu2ss_epn_in_transfer(udc, ep, req); ep 1937 drivers/staging/emxx_udc/emxx_udc.c mpkt = ep->ep.maxpacket; ep 1941 drivers/staging/emxx_udc/emxx_udc.c _nbu2ss_ep_in_end(udc, ep->epnum, 0, 0); ep 1943 drivers/staging/emxx_udc/emxx_udc.c _nbu2ss_epn_in_int(udc, ep, req); ep 1950 drivers/staging/emxx_udc/emxx_udc.c struct nbu2ss_ep *ep, ep 1959 drivers/staging/emxx_udc/emxx_udc.c num = ep->epnum - 1; ep 1962 drivers/staging/emxx_udc/emxx_udc.c if ((req->req.length % ep->ep.maxpacket) && !req->zero) { ep 1965 drivers/staging/emxx_udc/emxx_udc.c _nbu2ss_ep_done(ep, req, 0); ep 1985 drivers/staging/emxx_udc/emxx_udc.c mpkt = ep->ep.maxpacket; ep 1990 drivers/staging/emxx_udc/emxx_udc.c if ((req->req.actual % ep->ep.maxpacket) > 0) { ep 1994 drivers/staging/emxx_udc/emxx_udc.c _nbu2ss_ep_done(ep, req, 0); ep 2003 drivers/staging/emxx_udc/emxx_udc.c _nbu2ss_epn_out_int(udc, ep, req); ep 2013 drivers/staging/emxx_udc/emxx_udc.c struct nbu2ss_ep *ep = &udc->ep[epnum]; ep 2023 drivers/staging/emxx_udc/emxx_udc.c req = list_first_entry_or_null(&ep->queue, struct nbu2ss_req, queue); ep 2031 drivers/staging/emxx_udc/emxx_udc.c _nbu2ss_epn_out_dma_int(udc, ep, req); ep 2035 drivers/staging/emxx_udc/emxx_udc.c _nbu2ss_epn_out_int(udc, ep, req); ep 2039 drivers/staging/emxx_udc/emxx_udc.c _nbu2ss_epn_in_dma_int(udc, ep, req); ep 2043 drivers/staging/emxx_udc/emxx_udc.c _nbu2ss_epn_in_int(udc, ep, req); ep 2064 drivers/staging/emxx_udc/emxx_udc.c struct nbu2ss_ep *ep, ep 2070 drivers/staging/emxx_udc/emxx_udc.c _nbu2ss_epn_exit(udc, ep); ep 2073 drivers/staging/emxx_udc/emxx_udc.c _nbu2ss_ep_dma_exit(udc, ep); ep 2075 drivers/staging/emxx_udc/emxx_udc.c if (list_empty(&ep->queue)) ep 2079 drivers/staging/emxx_udc/emxx_udc.c list_for_each_entry(req, &ep->queue, queue) { ep 2080 drivers/staging/emxx_udc/emxx_udc.c _nbu2ss_ep_done(ep, req, status); ep 2089 drivers/staging/emxx_udc/emxx_udc.c struct nbu2ss_ep *ep; ep 2093 drivers/staging/emxx_udc/emxx_udc.c _nbu2ss_nuke(udc, &udc->ep[0], -ESHUTDOWN); ep 2096 drivers/staging/emxx_udc/emxx_udc.c list_for_each_entry(ep, &udc->gadget.ep_list, ep.ep_list) { ep 2097 drivers/staging/emxx_udc/emxx_udc.c _nbu2ss_nuke(udc, ep, -ESHUTDOWN); ep 2131 drivers/staging/emxx_udc/emxx_udc.c static void _nbu2ss_fifo_flush(struct nbu2ss_udc *udc, struct nbu2ss_ep *ep) ep 2138 drivers/staging/emxx_udc/emxx_udc.c if (ep->epnum == 0) { ep 2144 drivers/staging/emxx_udc/emxx_udc.c _nbu2ss_ep_dma_abort(udc, ep); ep 2145 drivers/staging/emxx_udc/emxx_udc.c _nbu2ss_bitset(&p->EP_REGS[ep->epnum - 1].EP_CONTROL, EPN_BCLR); ep 2422 drivers/staging/emxx_udc/emxx_udc.c struct nbu2ss_ep *ep; ep 2430 drivers/staging/emxx_udc/emxx_udc.c ep = container_of(_ep, struct nbu2ss_ep, ep); ep 2431 drivers/staging/emxx_udc/emxx_udc.c if (!ep->udc) { ep 2443 drivers/staging/emxx_udc/emxx_udc.c udc = ep->udc; ep 2448 drivers/staging/emxx_udc/emxx_udc.c dev_err(ep->udc->dev, " *** %s, udc !!\n", __func__); ep 2454 drivers/staging/emxx_udc/emxx_udc.c ep->desc = desc; ep 2455 drivers/staging/emxx_udc/emxx_udc.c ep->epnum = usb_endpoint_num(desc); ep 2456 drivers/staging/emxx_udc/emxx_udc.c ep->direct = desc->bEndpointAddress & USB_ENDPOINT_DIR_MASK; ep 2457 drivers/staging/emxx_udc/emxx_udc.c ep->ep_type = ep_type; ep 2458 drivers/staging/emxx_udc/emxx_udc.c ep->wedged = 0; ep 2459 drivers/staging/emxx_udc/emxx_udc.c ep->halted = false; ep 2460 drivers/staging/emxx_udc/emxx_udc.c ep->stalled = false; ep 2462 drivers/staging/emxx_udc/emxx_udc.c ep->ep.maxpacket = le16_to_cpu(desc->wMaxPacketSize); ep 2465 drivers/staging/emxx_udc/emxx_udc.c _nbu2ss_ep_dma_init(udc, ep); ep 2468 drivers/staging/emxx_udc/emxx_udc.c _nbu2ss_ep_init(udc, ep); ep 2478 drivers/staging/emxx_udc/emxx_udc.c struct nbu2ss_ep *ep; ep 2487 drivers/staging/emxx_udc/emxx_udc.c ep = container_of(_ep, struct nbu2ss_ep, ep); ep 2488 drivers/staging/emxx_udc/emxx_udc.c if (!ep->udc) { ep 2493 drivers/staging/emxx_udc/emxx_udc.c udc = ep->udc; ep 2498 drivers/staging/emxx_udc/emxx_udc.c _nbu2ss_nuke(udc, ep, -EINPROGRESS); /* dequeue request */ ep 2505 drivers/staging/emxx_udc/emxx_udc.c static struct usb_request *nbu2ss_ep_alloc_request(struct usb_ep *ep, ep 2540 drivers/staging/emxx_udc/emxx_udc.c struct nbu2ss_ep *ep; ep 2573 drivers/staging/emxx_udc/emxx_udc.c ep = container_of(_ep, struct nbu2ss_ep, ep); ep 2574 drivers/staging/emxx_udc/emxx_udc.c udc = ep->udc; ep 2596 drivers/staging/emxx_udc/emxx_udc.c if (!ep->virt_buf) ep 2597 drivers/staging/emxx_udc/emxx_udc.c ep->virt_buf = dma_alloc_coherent(NULL, PAGE_SIZE, ep 2598 drivers/staging/emxx_udc/emxx_udc.c &ep->phys_buf, ep 2600 drivers/staging/emxx_udc/emxx_udc.c if (ep->epnum > 0) { ep 2601 drivers/staging/emxx_udc/emxx_udc.c if (ep->direct == USB_DIR_IN) ep 2602 drivers/staging/emxx_udc/emxx_udc.c memcpy(ep->virt_buf, req->req.buf, ep 2607 drivers/staging/emxx_udc/emxx_udc.c if ((ep->epnum > 0) && (ep->direct == USB_DIR_OUT) && ep 2609 drivers/staging/emxx_udc/emxx_udc.c _nbu2ss_dma_map_single(udc, ep, req, USB_DIR_OUT); ep 2615 drivers/staging/emxx_udc/emxx_udc.c bflag = list_empty(&ep->queue); ep 2616 drivers/staging/emxx_udc/emxx_udc.c list_add_tail(&req->queue, &ep->queue); ep 2618 drivers/staging/emxx_udc/emxx_udc.c if (bflag && !ep->stalled) { ep 2619 drivers/staging/emxx_udc/emxx_udc.c result = _nbu2ss_start_transfer(udc, ep, req, false); ep 2624 drivers/staging/emxx_udc/emxx_udc.c } else if ((ep->epnum > 0) && (ep->direct == USB_DIR_OUT)) { ep 2631 drivers/staging/emxx_udc/emxx_udc.c _nbu2ss_ep_done(ep, req, result); ep 2644 drivers/staging/emxx_udc/emxx_udc.c struct nbu2ss_ep *ep; ep 2654 drivers/staging/emxx_udc/emxx_udc.c ep = container_of(_ep, struct nbu2ss_ep, ep); ep 2656 drivers/staging/emxx_udc/emxx_udc.c udc = ep->udc; ep 2663 drivers/staging/emxx_udc/emxx_udc.c list_for_each_entry(req, &ep->queue, queue) { ep 2673 drivers/staging/emxx_udc/emxx_udc.c _nbu2ss_ep_done(ep, req, -ECONNRESET); ep 2686 drivers/staging/emxx_udc/emxx_udc.c struct nbu2ss_ep *ep; ep 2694 drivers/staging/emxx_udc/emxx_udc.c ep = container_of(_ep, struct nbu2ss_ep, ep); ep 2696 drivers/staging/emxx_udc/emxx_udc.c udc = ep->udc; ep 2698 drivers/staging/emxx_udc/emxx_udc.c dev_err(ep->udc->dev, " *** %s, bad udc\n", __func__); ep 2704 drivers/staging/emxx_udc/emxx_udc.c ep_adrs = ep->epnum | ep->direct; ep 2707 drivers/staging/emxx_udc/emxx_udc.c ep->stalled = false; ep 2709 drivers/staging/emxx_udc/emxx_udc.c if (list_empty(&ep->queue)) ep 2710 drivers/staging/emxx_udc/emxx_udc.c _nbu2ss_epn_set_stall(udc, ep); ep 2712 drivers/staging/emxx_udc/emxx_udc.c ep->stalled = true; ep 2716 drivers/staging/emxx_udc/emxx_udc.c ep->wedged = 0; ep 2732 drivers/staging/emxx_udc/emxx_udc.c struct nbu2ss_ep *ep; ep 2742 drivers/staging/emxx_udc/emxx_udc.c ep = container_of(_ep, struct nbu2ss_ep, ep); ep 2744 drivers/staging/emxx_udc/emxx_udc.c udc = ep->udc; ep 2746 drivers/staging/emxx_udc/emxx_udc.c dev_err(ep->udc->dev, "%s, bad udc\n", __func__); ep 2758 drivers/staging/emxx_udc/emxx_udc.c if (ep->epnum == 0) { ep 2762 drivers/staging/emxx_udc/emxx_udc.c data = _nbu2ss_readl(&preg->EP_REGS[ep->epnum - 1].EP_LEN_DCNT) ep 2775 drivers/staging/emxx_udc/emxx_udc.c struct nbu2ss_ep *ep; ep 2784 drivers/staging/emxx_udc/emxx_udc.c ep = container_of(_ep, struct nbu2ss_ep, ep); ep 2786 drivers/staging/emxx_udc/emxx_udc.c udc = ep->udc; ep 2788 drivers/staging/emxx_udc/emxx_udc.c dev_err(ep->udc->dev, "%s, bad udc\n", __func__); ep 2797 drivers/staging/emxx_udc/emxx_udc.c _nbu2ss_fifo_flush(udc, ep); ep 3016 drivers/staging/emxx_udc/emxx_udc.c udc->gadget.ep0 = &udc->ep[0].ep; ep 3019 drivers/staging/emxx_udc/emxx_udc.c struct nbu2ss_ep *ep = &udc->ep[i]; ep 3021 drivers/staging/emxx_udc/emxx_udc.c ep->udc = udc; ep 3022 drivers/staging/emxx_udc/emxx_udc.c ep->desc = NULL; ep 3024 drivers/staging/emxx_udc/emxx_udc.c ep->ep.driver_data = NULL; ep 3025 drivers/staging/emxx_udc/emxx_udc.c ep->ep.name = ep_info[i].name; ep 3026 drivers/staging/emxx_udc/emxx_udc.c ep->ep.caps = ep_info[i].caps; ep 3027 drivers/staging/emxx_udc/emxx_udc.c ep->ep.ops = &nbu2ss_ep_ops; ep 3029 drivers/staging/emxx_udc/emxx_udc.c usb_ep_set_maxpacket_limit(&ep->ep, ep 3033 drivers/staging/emxx_udc/emxx_udc.c list_add_tail(&ep->ep.ep_list, &udc->gadget.ep_list); ep 3034 drivers/staging/emxx_udc/emxx_udc.c INIT_LIST_HEAD(&ep->queue); ep 3037 drivers/staging/emxx_udc/emxx_udc.c list_del_init(&udc->ep[0].ep.ep_list); ep 3060 drivers/staging/emxx_udc/emxx_udc.c udc->gadget.ep0 = &udc->ep[0].ep; ep 3148 drivers/staging/emxx_udc/emxx_udc.c struct nbu2ss_ep *ep; ep 3154 drivers/staging/emxx_udc/emxx_udc.c ep = &udc->ep[i]; ep 3155 drivers/staging/emxx_udc/emxx_udc.c if (ep->virt_buf) ep 3156 drivers/staging/emxx_udc/emxx_udc.c dma_free_coherent(NULL, PAGE_SIZE, (void *)ep->virt_buf, ep 3157 drivers/staging/emxx_udc/emxx_udc.c ep->phys_buf); ep 535 drivers/staging/emxx_udc/emxx_udc.h struct usb_ep ep; ep 568 drivers/staging/emxx_udc/emxx_udc.h struct nbu2ss_ep ep[NUM_ENDPOINTS]; ep 857 drivers/staging/exfat/exfat.h void init_dos_entry(struct dos_dentry_t *ep, u32 type, u32 start_clu); ep 858 drivers/staging/exfat/exfat.h void init_ext_entry(struct ext_dentry_t *ep, s32 order, u8 chksum, ep 860 drivers/staging/exfat/exfat.h void init_file_entry(struct file_dentry_t *ep, u32 type); ep 861 drivers/staging/exfat/exfat.h void init_strm_entry(struct strm_dentry_t *ep, u8 flags, u32 start_clu, ep 863 drivers/staging/exfat/exfat.h void init_name_entry(struct name_dentry_t *ep, u16 *uniname); ep 883 drivers/staging/exfat/exfat.h struct dentry_t *ep, u32 count); ep 911 drivers/staging/exfat/exfat.h struct dos_dentry_t *ep, ep 919 drivers/staging/exfat/exfat.h s32 extract_uni_name_from_ext_entry(struct ext_dentry_t *ep, ep 921 drivers/staging/exfat/exfat.h s32 extract_uni_name_from_name_entry(struct name_dentry_t *ep, ep 513 drivers/staging/exfat/exfat_core.c struct bmap_dentry_t *ep; ep 525 drivers/staging/exfat/exfat_core.c ep = (struct bmap_dentry_t *)get_entry_in_dir(sb, &clu, ep 527 drivers/staging/exfat/exfat_core.c if (!ep) ep 530 drivers/staging/exfat/exfat_core.c type = p_fs->fs_func->get_entry_type((struct dentry_t *)ep); ep 537 drivers/staging/exfat/exfat_core.c if (ep->flags == 0x0) { ep 538 drivers/staging/exfat/exfat_core.c p_fs->map_clu = GET32_A(ep->start_clu); ep 539 drivers/staging/exfat/exfat_core.c map_size = (u32)GET64_A(ep->size); ep 850 drivers/staging/exfat/exfat_core.c struct case_dentry_t *ep; ep 862 drivers/staging/exfat/exfat_core.c ep = (struct case_dentry_t *)get_entry_in_dir(sb, &clu, ep 864 drivers/staging/exfat/exfat_core.c if (!ep) ep 867 drivers/staging/exfat/exfat_core.c type = p_fs->fs_func->get_entry_type((struct dentry_t *)ep); ep 874 drivers/staging/exfat/exfat_core.c tbl_clu = GET32_A(ep->start_clu); ep 875 drivers/staging/exfat/exfat_core.c tbl_size = (u32)GET64_A(ep->size); ep 880 drivers/staging/exfat/exfat_core.c GET32_A(ep->checksum)) != FFS_SUCCESS) ep 911 drivers/staging/exfat/exfat_core.c struct dos_dentry_t *ep = (struct dos_dentry_t *)p_entry; ep 913 drivers/staging/exfat/exfat_core.c if (*(ep->name) == 0x0) ep 916 drivers/staging/exfat/exfat_core.c else if (*(ep->name) == 0xE5) ep 919 drivers/staging/exfat/exfat_core.c else if (ep->attr == ATTR_EXTEND) ep 922 drivers/staging/exfat/exfat_core.c else if ((ep->attr & (ATTR_SUBDIR | ATTR_VOLUME)) == ATTR_VOLUME) ep 925 drivers/staging/exfat/exfat_core.c else if ((ep->attr & (ATTR_SUBDIR | ATTR_VOLUME)) == ATTR_SUBDIR) ep 933 drivers/staging/exfat/exfat_core.c struct file_dentry_t *ep = (struct file_dentry_t *)p_entry; ep 935 drivers/staging/exfat/exfat_core.c if (ep->type == 0x0) { ep 937 drivers/staging/exfat/exfat_core.c } else if (ep->type < 0x80) { ep 939 drivers/staging/exfat/exfat_core.c } else if (ep->type == 0x80) { ep 941 drivers/staging/exfat/exfat_core.c } else if (ep->type < 0xA0) { ep 942 drivers/staging/exfat/exfat_core.c if (ep->type == 0x81) { ep 944 drivers/staging/exfat/exfat_core.c } else if (ep->type == 0x82) { ep 946 drivers/staging/exfat/exfat_core.c } else if (ep->type == 0x83) { ep 948 drivers/staging/exfat/exfat_core.c } else if (ep->type == 0x85) { ep 949 drivers/staging/exfat/exfat_core.c if (GET16_A(ep->attr) & ATTR_SUBDIR) ep 955 drivers/staging/exfat/exfat_core.c } else if (ep->type < 0xC0) { ep 956 drivers/staging/exfat/exfat_core.c if (ep->type == 0xA0) ep 958 drivers/staging/exfat/exfat_core.c else if (ep->type == 0xA1) ep 960 drivers/staging/exfat/exfat_core.c else if (ep->type == 0xA2) ep 963 drivers/staging/exfat/exfat_core.c } else if (ep->type < 0xE0) { ep 964 drivers/staging/exfat/exfat_core.c if (ep->type == 0xC0) ep 966 drivers/staging/exfat/exfat_core.c else if (ep->type == 0xC1) ep 968 drivers/staging/exfat/exfat_core.c else if (ep->type == 0xC2) ep 978 drivers/staging/exfat/exfat_core.c struct dos_dentry_t *ep = (struct dos_dentry_t *)p_entry; ep 981 drivers/staging/exfat/exfat_core.c *(ep->name) = 0x0; ep 984 drivers/staging/exfat/exfat_core.c *(ep->name) = 0xE5; ep 987 drivers/staging/exfat/exfat_core.c ep->attr = ATTR_EXTEND; ep 990 drivers/staging/exfat/exfat_core.c ep->attr = ATTR_SUBDIR; ep 993 drivers/staging/exfat/exfat_core.c ep->attr = ATTR_ARCHIVE; ep 996 drivers/staging/exfat/exfat_core.c ep->attr = ATTR_ARCHIVE | ATTR_SYMLINK; ep 1001 drivers/staging/exfat/exfat_core.c struct file_dentry_t *ep = (struct file_dentry_t *)p_entry; ep 1004 drivers/staging/exfat/exfat_core.c ep->type = 0x0; ep 1006 drivers/staging/exfat/exfat_core.c ep->type &= ~0x80; ep 1008 drivers/staging/exfat/exfat_core.c ep->type = 0xC0; ep 1010 drivers/staging/exfat/exfat_core.c ep->type = 0xC1; ep 1012 drivers/staging/exfat/exfat_core.c ep->type = 0x81; ep 1014 drivers/staging/exfat/exfat_core.c ep->type = 0x82; ep 1016 drivers/staging/exfat/exfat_core.c ep->type = 0x83; ep 1018 drivers/staging/exfat/exfat_core.c ep->type = 0x85; ep 1019 drivers/staging/exfat/exfat_core.c SET16_A(ep->attr, ATTR_SUBDIR); ep 1021 drivers/staging/exfat/exfat_core.c ep->type = 0x85; ep 1022 drivers/staging/exfat/exfat_core.c SET16_A(ep->attr, ATTR_ARCHIVE); ep 1024 drivers/staging/exfat/exfat_core.c ep->type = 0x85; ep 1025 drivers/staging/exfat/exfat_core.c SET16_A(ep->attr, ATTR_ARCHIVE | ATTR_SYMLINK); ep 1031 drivers/staging/exfat/exfat_core.c struct dos_dentry_t *ep = (struct dos_dentry_t *)p_entry; ep 1033 drivers/staging/exfat/exfat_core.c return (u32)ep->attr; ep 1038 drivers/staging/exfat/exfat_core.c struct file_dentry_t *ep = (struct file_dentry_t *)p_entry; ep 1040 drivers/staging/exfat/exfat_core.c return (u32)GET16_A(ep->attr); ep 1045 drivers/staging/exfat/exfat_core.c struct dos_dentry_t *ep = (struct dos_dentry_t *)p_entry; ep 1047 drivers/staging/exfat/exfat_core.c ep->attr = (u8)attr; ep 1052 drivers/staging/exfat/exfat_core.c struct file_dentry_t *ep = (struct file_dentry_t *)p_entry; ep 1054 drivers/staging/exfat/exfat_core.c SET16_A(ep->attr, (u16)attr); ep 1064 drivers/staging/exfat/exfat_core.c struct strm_dentry_t *ep = (struct strm_dentry_t *)p_entry; ep 1066 drivers/staging/exfat/exfat_core.c return ep->flags; ep 1075 drivers/staging/exfat/exfat_core.c struct strm_dentry_t *ep = (struct strm_dentry_t *)p_entry; ep 1077 drivers/staging/exfat/exfat_core.c ep->flags = flags; ep 1082 drivers/staging/exfat/exfat_core.c struct dos_dentry_t *ep = (struct dos_dentry_t *)p_entry; ep 1084 drivers/staging/exfat/exfat_core.c return ((u32)GET16_A(ep->start_clu_hi) << 16) | ep 1085 drivers/staging/exfat/exfat_core.c GET16_A(ep->start_clu_lo); ep 1090 drivers/staging/exfat/exfat_core.c struct strm_dentry_t *ep = (struct strm_dentry_t *)p_entry; ep 1092 drivers/staging/exfat/exfat_core.c return GET32_A(ep->start_clu); ep 1097 drivers/staging/exfat/exfat_core.c struct dos_dentry_t *ep = (struct dos_dentry_t *)p_entry; ep 1099 drivers/staging/exfat/exfat_core.c SET16_A(ep->start_clu_lo, CLUSTER_16(start_clu)); ep 1100 drivers/staging/exfat/exfat_core.c SET16_A(ep->start_clu_hi, CLUSTER_16(start_clu >> 16)); ep 1105 drivers/staging/exfat/exfat_core.c struct strm_dentry_t *ep = (struct strm_dentry_t *)p_entry; ep 1107 drivers/staging/exfat/exfat_core.c SET32_A(ep->start_clu, start_clu); ep 1112 drivers/staging/exfat/exfat_core.c struct dos_dentry_t *ep = (struct dos_dentry_t *)p_entry; ep 1114 drivers/staging/exfat/exfat_core.c return (u64)GET32_A(ep->size); ep 1119 drivers/staging/exfat/exfat_core.c struct strm_dentry_t *ep = (struct strm_dentry_t *)p_entry; ep 1121 drivers/staging/exfat/exfat_core.c return GET64_A(ep->valid_size); ep 1126 drivers/staging/exfat/exfat_core.c struct dos_dentry_t *ep = (struct dos_dentry_t *)p_entry; ep 1128 drivers/staging/exfat/exfat_core.c SET32_A(ep->size, (u32)size); ep 1133 drivers/staging/exfat/exfat_core.c struct strm_dentry_t *ep = (struct strm_dentry_t *)p_entry; ep 1135 drivers/staging/exfat/exfat_core.c SET64_A(ep->valid_size, size); ep 1136 drivers/staging/exfat/exfat_core.c SET64_A(ep->size, size); ep 1143 drivers/staging/exfat/exfat_core.c struct dos_dentry_t *ep = (struct dos_dentry_t *)p_entry; ep 1147 drivers/staging/exfat/exfat_core.c t = GET16_A(ep->create_time); ep 1148 drivers/staging/exfat/exfat_core.c d = GET16_A(ep->create_date); ep 1151 drivers/staging/exfat/exfat_core.c t = GET16_A(ep->modify_time); ep 1152 drivers/staging/exfat/exfat_core.c d = GET16_A(ep->modify_date); ep 1168 drivers/staging/exfat/exfat_core.c struct file_dentry_t *ep = (struct file_dentry_t *)p_entry; ep 1172 drivers/staging/exfat/exfat_core.c t = GET16_A(ep->create_time); ep 1173 drivers/staging/exfat/exfat_core.c d = GET16_A(ep->create_date); ep 1176 drivers/staging/exfat/exfat_core.c t = GET16_A(ep->modify_time); ep 1177 drivers/staging/exfat/exfat_core.c d = GET16_A(ep->modify_date); ep 1180 drivers/staging/exfat/exfat_core.c t = GET16_A(ep->access_time); ep 1181 drivers/staging/exfat/exfat_core.c d = GET16_A(ep->access_date); ep 1197 drivers/staging/exfat/exfat_core.c struct dos_dentry_t *ep = (struct dos_dentry_t *)p_entry; ep 1204 drivers/staging/exfat/exfat_core.c SET16_A(ep->create_time, t); ep 1205 drivers/staging/exfat/exfat_core.c SET16_A(ep->create_date, d); ep 1208 drivers/staging/exfat/exfat_core.c SET16_A(ep->modify_time, t); ep 1209 drivers/staging/exfat/exfat_core.c SET16_A(ep->modify_date, d); ep 1218 drivers/staging/exfat/exfat_core.c struct file_dentry_t *ep = (struct file_dentry_t *)p_entry; ep 1225 drivers/staging/exfat/exfat_core.c SET16_A(ep->create_time, t); ep 1226 drivers/staging/exfat/exfat_core.c SET16_A(ep->create_date, d); ep 1229 drivers/staging/exfat/exfat_core.c SET16_A(ep->modify_time, t); ep 1230 drivers/staging/exfat/exfat_core.c SET16_A(ep->modify_date, d); ep 1233 drivers/staging/exfat/exfat_core.c SET16_A(ep->access_time, t); ep 1234 drivers/staging/exfat/exfat_core.c SET16_A(ep->access_date, d); ep 1383 drivers/staging/exfat/exfat_core.c void init_dos_entry(struct dos_dentry_t *ep, u32 type, u32 start_clu) ep 1387 drivers/staging/exfat/exfat_core.c fat_set_entry_type((struct dentry_t *)ep, type); ep 1388 drivers/staging/exfat/exfat_core.c SET16_A(ep->start_clu_lo, CLUSTER_16(start_clu)); ep 1389 drivers/staging/exfat/exfat_core.c SET16_A(ep->start_clu_hi, CLUSTER_16(start_clu >> 16)); ep 1390 drivers/staging/exfat/exfat_core.c SET32_A(ep->size, 0); ep 1393 drivers/staging/exfat/exfat_core.c fat_set_entry_time((struct dentry_t *)ep, tp, TM_CREATE); ep 1394 drivers/staging/exfat/exfat_core.c fat_set_entry_time((struct dentry_t *)ep, tp, TM_MODIFY); ep 1395 drivers/staging/exfat/exfat_core.c SET16_A(ep->access_date, 0); ep 1396 drivers/staging/exfat/exfat_core.c ep->create_time_ms = 0; ep 1399 drivers/staging/exfat/exfat_core.c void init_ext_entry(struct ext_dentry_t *ep, s32 order, u8 chksum, u16 *uniname) ep 1404 drivers/staging/exfat/exfat_core.c fat_set_entry_type((struct dentry_t *)ep, TYPE_EXTEND); ep 1405 drivers/staging/exfat/exfat_core.c ep->order = (u8)order; ep 1406 drivers/staging/exfat/exfat_core.c ep->sysid = 0; ep 1407 drivers/staging/exfat/exfat_core.c ep->checksum = chksum; ep 1408 drivers/staging/exfat/exfat_core.c SET16_A(ep->start_clu, 0); ep 1412 drivers/staging/exfat/exfat_core.c SET16(ep->unicode_0_4 + i, *uniname); ep 1418 drivers/staging/exfat/exfat_core.c SET16(ep->unicode_0_4 + i, 0xFFFF); ep 1424 drivers/staging/exfat/exfat_core.c SET16_A(ep->unicode_5_10 + i, *uniname); ep 1430 drivers/staging/exfat/exfat_core.c SET16_A(ep->unicode_5_10 + i, 0xFFFF); ep 1436 drivers/staging/exfat/exfat_core.c SET16_A(ep->unicode_11_12 + i, *uniname); ep 1442 drivers/staging/exfat/exfat_core.c SET16_A(ep->unicode_11_12 + i, 0xFFFF); ep 1447 drivers/staging/exfat/exfat_core.c void init_file_entry(struct file_dentry_t *ep, u32 type) ep 1451 drivers/staging/exfat/exfat_core.c exfat_set_entry_type((struct dentry_t *)ep, type); ep 1454 drivers/staging/exfat/exfat_core.c exfat_set_entry_time((struct dentry_t *)ep, tp, TM_CREATE); ep 1455 drivers/staging/exfat/exfat_core.c exfat_set_entry_time((struct dentry_t *)ep, tp, TM_MODIFY); ep 1456 drivers/staging/exfat/exfat_core.c exfat_set_entry_time((struct dentry_t *)ep, tp, TM_ACCESS); ep 1457 drivers/staging/exfat/exfat_core.c ep->create_time_ms = 0; ep 1458 drivers/staging/exfat/exfat_core.c ep->modify_time_ms = 0; ep 1459 drivers/staging/exfat/exfat_core.c ep->access_time_ms = 0; ep 1462 drivers/staging/exfat/exfat_core.c void init_strm_entry(struct strm_dentry_t *ep, u8 flags, u32 start_clu, u64 size) ep 1464 drivers/staging/exfat/exfat_core.c exfat_set_entry_type((struct dentry_t *)ep, TYPE_STREAM); ep 1465 drivers/staging/exfat/exfat_core.c ep->flags = flags; ep 1466 drivers/staging/exfat/exfat_core.c SET32_A(ep->start_clu, start_clu); ep 1467 drivers/staging/exfat/exfat_core.c SET64_A(ep->valid_size, size); ep 1468 drivers/staging/exfat/exfat_core.c SET64_A(ep->size, size); ep 1471 drivers/staging/exfat/exfat_core.c void init_name_entry(struct name_dentry_t *ep, u16 *uniname) ep 1475 drivers/staging/exfat/exfat_core.c exfat_set_entry_type((struct dentry_t *)ep, TYPE_EXTEND); ep 1476 drivers/staging/exfat/exfat_core.c ep->flags = 0x0; ep 1479 drivers/staging/exfat/exfat_core.c SET16_A(ep->unicode_0_14 + i, *uniname); ep 1491 drivers/staging/exfat/exfat_core.c struct dentry_t *ep; ep 1495 drivers/staging/exfat/exfat_core.c ep = get_entry_in_dir(sb, p_dir, entry - i, §or); ep 1496 drivers/staging/exfat/exfat_core.c if (!ep) ep 1499 drivers/staging/exfat/exfat_core.c p_fs->fs_func->set_entry_type(ep, TYPE_DELETED); ep 1509 drivers/staging/exfat/exfat_core.c struct dentry_t *ep; ep 1513 drivers/staging/exfat/exfat_core.c ep = get_entry_in_dir(sb, p_dir, entry + i, §or); ep 1514 drivers/staging/exfat/exfat_core.c if (!ep) ep 1517 drivers/staging/exfat/exfat_core.c p_fs->fs_func->set_entry_type(ep, TYPE_DELETED); ep 1529 drivers/staging/exfat/exfat_core.c struct dentry_t *ep; ep 1543 drivers/staging/exfat/exfat_core.c ep = get_entry_in_dir(sb, p_dir, entry + i, NULL); ep 1544 drivers/staging/exfat/exfat_core.c if (!ep) { ep 1549 drivers/staging/exfat/exfat_core.c chksum = calc_checksum_2byte((void *)ep, DENTRY_SIZE, chksum, ep 1561 drivers/staging/exfat/exfat_core.c struct dentry_t *ep; ep 1565 drivers/staging/exfat/exfat_core.c ep = (struct dentry_t *)&(es->__buf); ep 1567 drivers/staging/exfat/exfat_core.c pr_debug("%s ep %p\n", __func__, ep); ep 1568 drivers/staging/exfat/exfat_core.c chksum = calc_checksum_2byte((void *)ep, DENTRY_SIZE, chksum, ep 1570 drivers/staging/exfat/exfat_core.c ep++; ep 1574 drivers/staging/exfat/exfat_core.c ep = (struct dentry_t *)&(es->__buf); ep 1575 drivers/staging/exfat/exfat_core.c SET16_A(((struct file_dentry_t *)ep)->checksum, chksum); ep 1699 drivers/staging/exfat/exfat_core.c struct dentry_t *ep, *pos; ep 1727 drivers/staging/exfat/exfat_core.c ep = (struct dentry_t *)(buf + off); ep 1728 drivers/staging/exfat/exfat_core.c entry_type = p_fs->fs_func->get_entry_type(ep); ep 1735 drivers/staging/exfat/exfat_core.c num_entries = ((struct file_dentry_t *)ep)->num_ext + 1; ep 1759 drivers/staging/exfat/exfat_core.c entry_type = p_fs->fs_func->get_entry_type(ep); ep 1803 drivers/staging/exfat/exfat_core.c memcpy(pos, ep, sizeof(struct dentry_t)); ep 1826 drivers/staging/exfat/exfat_core.c ep = (struct dentry_t *)(buf); ep 1828 drivers/staging/exfat/exfat_core.c ep++; ep 1922 drivers/staging/exfat/exfat_core.c struct entry_set_cache_t *es, struct dentry_t *ep, u32 count) ep 1932 drivers/staging/exfat/exfat_core.c if (ep + count > ((struct dentry_t *)&(es->__buf)) + es->num_entries) ep 1941 drivers/staging/exfat/exfat_core.c byte_offset += ((void **)ep - &(es->__buf)) + es->offset; ep 1967 drivers/staging/exfat/exfat_core.c struct dentry_t *ep; ep 2004 drivers/staging/exfat/exfat_core.c ep = get_entry_in_dir(sb, &clu, i, NULL); ep 2005 drivers/staging/exfat/exfat_core.c if (!ep) ep 2008 drivers/staging/exfat/exfat_core.c type = p_fs->fs_func->get_entry_type(ep); ep 2061 drivers/staging/exfat/exfat_core.c struct dentry_t *ep = NULL; ep 2117 drivers/staging/exfat/exfat_core.c ep = get_entry_in_dir(sb, &fid->dir, ep 2119 drivers/staging/exfat/exfat_core.c if (!ep) ep 2121 drivers/staging/exfat/exfat_core.c p_fs->fs_func->set_entry_size(ep, size); ep 2122 drivers/staging/exfat/exfat_core.c p_fs->fs_func->set_entry_flag(ep, p_dir->flags); ep 2156 drivers/staging/exfat/exfat_core.c struct dentry_t *ep; ep 2182 drivers/staging/exfat/exfat_core.c ep = get_entry_in_dir(sb, &clu, i, NULL); ep 2183 drivers/staging/exfat/exfat_core.c if (!ep) ep 2186 drivers/staging/exfat/exfat_core.c entry_type = p_fs->fs_func->get_entry_type(ep); ep 2193 drivers/staging/exfat/exfat_core.c dos_ep = (struct dos_dentry_t *)ep; ep 2201 drivers/staging/exfat/exfat_core.c ext_ep = (struct ext_dentry_t *)ep; ep 2254 drivers/staging/exfat/exfat_core.c struct dentry_t *ep; ep 2285 drivers/staging/exfat/exfat_core.c ep = get_entry_in_dir(sb, &clu, i, NULL); ep 2286 drivers/staging/exfat/exfat_core.c if (!ep) ep 2289 drivers/staging/exfat/exfat_core.c entry_type = p_fs->fs_func->get_entry_type(ep); ep 2313 drivers/staging/exfat/exfat_core.c file_ep = (struct file_dentry_t *)ep; ep 2323 drivers/staging/exfat/exfat_core.c strm_ep = (struct strm_dentry_t *)ep; ep 2334 drivers/staging/exfat/exfat_core.c name_ep = (struct name_dentry_t *)ep; ep 2447 drivers/staging/exfat/exfat_core.c struct dentry_t *ep; ep 2464 drivers/staging/exfat/exfat_core.c ep = get_entry_in_dir(sb, &clu, i, NULL); ep 2465 drivers/staging/exfat/exfat_core.c if (!ep) ep 2468 drivers/staging/exfat/exfat_core.c entry_type = p_fs->fs_func->get_entry_type(ep); ep 2503 drivers/staging/exfat/exfat_core.c struct dentry_t *ep; ep 2520 drivers/staging/exfat/exfat_core.c ep = get_entry_in_dir(sb, &clu, i, NULL); ep 2521 drivers/staging/exfat/exfat_core.c if (!ep) ep 2524 drivers/staging/exfat/exfat_core.c type = p_fs->fs_func->get_entry_type(ep); ep 2603 drivers/staging/exfat/exfat_core.c struct dos_dentry_t *ep, ep 2611 drivers/staging/exfat/exfat_core.c dos_name.name_case = ep->lcase; ep 2613 drivers/staging/exfat/exfat_core.c memcpy(dos_name.name, ep->name, DOS_NAME_LENGTH); ep 2622 drivers/staging/exfat/exfat_core.c struct ext_dentry_t *ep; ep 2626 drivers/staging/exfat/exfat_core.c ep = (struct ext_dentry_t *)get_entry_in_dir(sb, p_dir, entry, ep 2628 drivers/staging/exfat/exfat_core.c if (!ep) ep 2631 drivers/staging/exfat/exfat_core.c if (p_fs->fs_func->get_entry_type((struct dentry_t *)ep) == ep 2633 drivers/staging/exfat/exfat_core.c extract_uni_name_from_ext_entry(ep, uniname, i); ep 2634 drivers/staging/exfat/exfat_core.c if (ep->order > 0x40) ep 2649 drivers/staging/exfat/exfat_core.c struct dentry_t *ep; ep 2653 drivers/staging/exfat/exfat_core.c es = get_entry_set_in_dir(sb, p_dir, entry, ES_ALL_ENTRIES, &ep); ep 2660 drivers/staging/exfat/exfat_core.c ep += 2; ep 2668 drivers/staging/exfat/exfat_core.c for (i = 2; i < es->num_entries; i++, ep++) { ep 2669 drivers/staging/exfat/exfat_core.c if (p_fs->fs_func->get_entry_type(ep) == TYPE_EXTEND) ep 2671 drivers/staging/exfat/exfat_core.c ep, uniname, i); ep 2681 drivers/staging/exfat/exfat_core.c s32 extract_uni_name_from_ext_entry(struct ext_dentry_t *ep, u16 *uniname, ep 2687 drivers/staging/exfat/exfat_core.c *uniname = GET16(ep->unicode_0_4 + i); ep 2696 drivers/staging/exfat/exfat_core.c *uniname = GET16_A(ep->unicode_5_10 + i); ep 2704 drivers/staging/exfat/exfat_core.c *uniname = GET16_A(ep->unicode_5_10 + i); ep 2715 drivers/staging/exfat/exfat_core.c *uniname = GET16_A(ep->unicode_11_12 + i); ep 2726 drivers/staging/exfat/exfat_core.c s32 extract_uni_name_from_name_entry(struct name_dentry_t *ep, u16 *uniname, ep 2732 drivers/staging/exfat/exfat_core.c *uniname = GET16_A(ep->unicode_0_14 + i); ep 2752 drivers/staging/exfat/exfat_core.c struct dos_dentry_t *ep; ep 2771 drivers/staging/exfat/exfat_core.c ep = (struct dos_dentry_t *)get_entry_in_dir(sb, &clu, ep 2773 drivers/staging/exfat/exfat_core.c if (!ep) ep 2777 drivers/staging/exfat/exfat_core.c ep); ep 2788 drivers/staging/exfat/exfat_core.c if (ep->name[j] == ' ') ep 2791 drivers/staging/exfat/exfat_core.c if (ep->name[j] == '~') { ep 2794 drivers/staging/exfat/exfat_core.c if ((ep->name[j] >= '0') && ep 2795 drivers/staging/exfat/exfat_core.c (ep->name[j] <= '9')) { ep 2797 drivers/staging/exfat/exfat_core.c (ep->name[j] - '0'); ep 3359 drivers/staging/exfat/exfat_core.c struct dentry_t *ep; ep 3364 drivers/staging/exfat/exfat_core.c ep = get_entry_in_dir(sb, p_dir, entry, §or); ep 3365 drivers/staging/exfat/exfat_core.c if (!ep) ep 3371 drivers/staging/exfat/exfat_core.c num_entries = fs_func->count_ext_entries(sb, p_dir, entry, ep); ep 553 drivers/staging/exfat/exfat_super.c struct dentry_t *ep, *ep2; ep 602 drivers/staging/exfat/exfat_super.c ES_2_ENTRIES, &ep); ep 607 drivers/staging/exfat/exfat_super.c ep2 = ep + 1; ep 609 drivers/staging/exfat/exfat_super.c ep = get_entry_in_dir(sb, &dir, dentry, NULL); ep 610 drivers/staging/exfat/exfat_super.c if (!ep) { ep 614 drivers/staging/exfat/exfat_super.c ep2 = ep; ep 617 drivers/staging/exfat/exfat_super.c fid->type = p_fs->fs_func->get_entry_type(ep); ep 620 drivers/staging/exfat/exfat_super.c fid->attr = p_fs->fs_func->get_entry_attr(ep); ep 821 drivers/staging/exfat/exfat_super.c struct dentry_t *ep, *ep2; ep 1007 drivers/staging/exfat/exfat_super.c ES_ALL_ENTRIES, &ep); ep 1010 drivers/staging/exfat/exfat_super.c ep2 = ep + 1; ep 1012 drivers/staging/exfat/exfat_super.c ep = get_entry_in_dir(sb, &(fid->dir), fid->entry, §or); ep 1013 drivers/staging/exfat/exfat_super.c if (!ep) ep 1015 drivers/staging/exfat/exfat_super.c ep2 = ep; ep 1018 drivers/staging/exfat/exfat_super.c p_fs->fs_func->set_entry_time(ep, tm_current(&tm), TM_MODIFY); ep 1019 drivers/staging/exfat/exfat_super.c p_fs->fs_func->set_entry_attr(ep, fid->attr); ep 1074 drivers/staging/exfat/exfat_super.c struct dentry_t *ep, *ep2; ep 1138 drivers/staging/exfat/exfat_super.c ES_ALL_ENTRIES, &ep); ep 1143 drivers/staging/exfat/exfat_super.c ep2 = ep + 1; ep 1145 drivers/staging/exfat/exfat_super.c ep = get_entry_in_dir(sb, &(fid->dir), fid->entry, §or); ep 1146 drivers/staging/exfat/exfat_super.c if (!ep) { ep 1150 drivers/staging/exfat/exfat_super.c ep2 = ep; ep 1153 drivers/staging/exfat/exfat_super.c p_fs->fs_func->set_entry_time(ep, tm_current(&tm), TM_MODIFY); ep 1154 drivers/staging/exfat/exfat_super.c p_fs->fs_func->set_entry_attr(ep, fid->attr); ep 1224 drivers/staging/exfat/exfat_super.c struct dentry_t *ep; ep 1260 drivers/staging/exfat/exfat_super.c ep = get_entry_in_dir(sb, &olddir, dentry, NULL); ep 1261 drivers/staging/exfat/exfat_super.c if (!ep) { ep 1266 drivers/staging/exfat/exfat_super.c if (p_fs->fs_func->get_entry_attr(ep) & ATTR_READONLY) { ep 1282 drivers/staging/exfat/exfat_super.c ep = get_entry_in_dir(sb, p_dir, new_entry, NULL); ep 1283 drivers/staging/exfat/exfat_super.c if (!ep) ep 1286 drivers/staging/exfat/exfat_super.c entry_type = p_fs->fs_func->get_entry_type(ep); ep 1319 drivers/staging/exfat/exfat_super.c ep = get_entry_in_dir(sb, p_dir, new_entry, NULL); ep 1320 drivers/staging/exfat/exfat_super.c if (!ep) ep 1324 drivers/staging/exfat/exfat_super.c new_entry, ep); ep 1350 drivers/staging/exfat/exfat_super.c struct dentry_t *ep; ep 1367 drivers/staging/exfat/exfat_super.c ep = get_entry_in_dir(sb, &dir, dentry, NULL); ep 1368 drivers/staging/exfat/exfat_super.c if (!ep) { ep 1373 drivers/staging/exfat/exfat_super.c if (p_fs->fs_func->get_entry_attr(ep) & ATTR_READONLY) { ep 1414 drivers/staging/exfat/exfat_super.c struct dentry_t *ep; ep 1442 drivers/staging/exfat/exfat_super.c ES_ALL_ENTRIES, &ep); ep 1448 drivers/staging/exfat/exfat_super.c ep = get_entry_in_dir(sb, &(fid->dir), fid->entry, §or); ep 1449 drivers/staging/exfat/exfat_super.c if (!ep) { ep 1455 drivers/staging/exfat/exfat_super.c type = p_fs->fs_func->get_entry_type(ep); ep 1473 drivers/staging/exfat/exfat_super.c p_fs->fs_func->set_entry_attr(ep, attr); ep 1505 drivers/staging/exfat/exfat_super.c struct dentry_t *ep, *ep2; ep 1558 drivers/staging/exfat/exfat_super.c ES_2_ENTRIES, &ep); ep 1563 drivers/staging/exfat/exfat_super.c ep2 = ep + 1; ep 1565 drivers/staging/exfat/exfat_super.c ep = get_entry_in_dir(sb, &(fid->dir), fid->entry, §or); ep 1566 drivers/staging/exfat/exfat_super.c if (!ep) { ep 1570 drivers/staging/exfat/exfat_super.c ep2 = ep; ep 1575 drivers/staging/exfat/exfat_super.c info->Attr = p_fs->fs_func->get_entry_attr(ep); ep 1577 drivers/staging/exfat/exfat_super.c p_fs->fs_func->get_entry_time(ep, &tm, TM_CREATE); ep 1586 drivers/staging/exfat/exfat_super.c p_fs->fs_func->get_entry_time(ep, &tm, TM_MODIFY); ep 1604 drivers/staging/exfat/exfat_super.c get_uni_name_from_dos_entry(sb, (struct dos_dentry_t *)ep, ep 1612 drivers/staging/exfat/exfat_super.c get_uni_name_from_dos_entry(sb, (struct dos_dentry_t *)ep, ep 1655 drivers/staging/exfat/exfat_super.c struct dentry_t *ep, *ep2; ep 1682 drivers/staging/exfat/exfat_super.c ES_ALL_ENTRIES, &ep); ep 1687 drivers/staging/exfat/exfat_super.c ep2 = ep + 1; ep 1690 drivers/staging/exfat/exfat_super.c ep = get_entry_in_dir(sb, &(fid->dir), fid->entry, §or); ep 1691 drivers/staging/exfat/exfat_super.c if (!ep) { ep 1695 drivers/staging/exfat/exfat_super.c ep2 = ep; ep 1698 drivers/staging/exfat/exfat_super.c p_fs->fs_func->set_entry_attr(ep, info->Attr); ep 1707 drivers/staging/exfat/exfat_super.c p_fs->fs_func->set_entry_time(ep, &tm, TM_CREATE); ep 1715 drivers/staging/exfat/exfat_super.c p_fs->fs_func->set_entry_time(ep, &tm, TM_MODIFY); ep 1746 drivers/staging/exfat/exfat_super.c struct dentry_t *ep; ep 1836 drivers/staging/exfat/exfat_super.c ES_ALL_ENTRIES, &ep); ep 1842 drivers/staging/exfat/exfat_super.c ep++; ep 1848 drivers/staging/exfat/exfat_super.c ep = get_entry_in_dir(sb, &(fid->dir), ep 1850 drivers/staging/exfat/exfat_super.c if (!ep) { ep 1856 drivers/staging/exfat/exfat_super.c if (p_fs->fs_func->get_entry_flag(ep) != fid->flags) ep 1857 drivers/staging/exfat/exfat_super.c p_fs->fs_func->set_entry_flag(ep, fid->flags); ep 1859 drivers/staging/exfat/exfat_super.c if (p_fs->fs_func->get_entry_clu0(ep) != fid->start_clu) ep 1860 drivers/staging/exfat/exfat_super.c p_fs->fs_func->set_entry_clu0(ep, ep 1944 drivers/staging/exfat/exfat_super.c struct dentry_t *ep; ep 2024 drivers/staging/exfat/exfat_super.c ep = get_entry_in_dir(sb, &clu, i, §or); ep 2025 drivers/staging/exfat/exfat_super.c if (!ep) { ep 2029 drivers/staging/exfat/exfat_super.c type = fs_func->get_entry_type(ep); ep 2038 drivers/staging/exfat/exfat_super.c dir_entry->Attr = fs_func->get_entry_attr(ep); ep 2040 drivers/staging/exfat/exfat_super.c fs_func->get_entry_time(ep, &tm, TM_CREATE); ep 2049 drivers/staging/exfat/exfat_super.c fs_func->get_entry_time(ep, &tm, TM_MODIFY); ep 2066 drivers/staging/exfat/exfat_super.c (struct dos_dentry_t *)ep, ep 2072 drivers/staging/exfat/exfat_super.c ep = get_entry_in_dir(sb, &clu, i + 1, NULL); ep 2073 drivers/staging/exfat/exfat_super.c if (!ep) { ep 2079 drivers/staging/exfat/exfat_super.c (struct dos_dentry_t *)ep, ep 2085 drivers/staging/exfat/exfat_super.c dir_entry->Size = fs_func->get_entry_size(ep); ep 121 drivers/staging/media/imx/imx-media-csi.c static inline bool is_parallel_bus(struct v4l2_fwnode_endpoint *ep) ep 123 drivers/staging/media/imx/imx-media-csi.c return ep->bus_type != V4L2_MBUS_CSI2_DPHY; ep 126 drivers/staging/media/imx/imx-media-csi.c static inline bool is_parallel_16bit_bus(struct v4l2_fwnode_endpoint *ep) ep 128 drivers/staging/media/imx/imx-media-csi.c return is_parallel_bus(ep) && ep->bus.parallel.bus_width >= 16; ep 139 drivers/staging/media/imx/imx-media-csi.c static inline bool requires_passthrough(struct v4l2_fwnode_endpoint *ep, ep 143 drivers/staging/media/imx/imx-media-csi.c return incc->bayer || is_parallel_16bit_bus(ep) || ep 144 drivers/staging/media/imx/imx-media-csi.c (is_parallel_bus(ep) && ep 158 drivers/staging/media/imx/imx-media-csi.c struct v4l2_fwnode_endpoint *ep) ep 214 drivers/staging/media/imx/imx-media-csi.c v4l2_fwnode_endpoint_parse(of_fwnode_handle(endpoint), ep); ep 130 drivers/staging/media/imx/imx-media-of.c struct device_node *ep; ep 133 drivers/staging/media/imx/imx-media-of.c for_each_endpoint_of_node(sd->dev->of_node, ep) { ep 134 drivers/staging/media/imx/imx-media-of.c ret = v4l2_fwnode_parse_link(of_fwnode_handle(ep), &link); ep 156 drivers/staging/media/imx/imx-media-of.c struct device_node *ep; ep 158 drivers/staging/media/imx/imx-media-of.c for_each_child_of_node(csi_np, ep) { ep 168 drivers/staging/media/imx/imx-media-of.c csi_ep = of_fwnode_handle(ep); ep 432 drivers/staging/media/imx/imx7-media-csi.c struct v4l2_fwnode_endpoint *ep, ep 480 drivers/staging/media/imx/imx7-media-csi.c v4l2_fwnode_endpoint_parse(of_fwnode_handle(endpoint), ep); ep 848 drivers/staging/media/imx/imx7-mipi-csis.c struct v4l2_fwnode_endpoint *ep, ep 854 drivers/staging/media/imx/imx7-mipi-csis.c if (ep->bus_type != V4L2_MBUS_CSI2_DPHY) { ep 859 drivers/staging/media/imx/imx7-mipi-csis.c state->bus = ep->bus.mipi_csi2; ep 1507 drivers/staging/media/soc_camera/soc_camera.c struct device_node *ep, ep 178 drivers/staging/most/usb/usb.c static inline int start_sync_ep(struct usb_device *usb_dev, u16 ep) ep 180 drivers/staging/most/usb/usb.c return drci_wr_reg(usb_dev, DRCI_REG_BASE + DRCI_COMMAND + ep * 16, 1); ep 724 drivers/staging/most/usb/usb.c u16 ep = mdev->ep_address[channel]; ep 726 drivers/staging/most/usb/usb.c if (start_sync_ep(mdev->usb_device, ep) < 0) ep 727 drivers/staging/most/usb/usb.c dev_warn(dev, "sync for ep%02x failed", ep); ep 3075 drivers/staging/octeon-usb/octeon-hcd.c struct usb_host_endpoint *ep = urb->ep; ep 3087 drivers/staging/octeon-usb/octeon-hcd.c if (!ep->hcpriv) { ep 3151 drivers/staging/octeon-usb/octeon-hcd.c le16_to_cpu(ep->desc.wMaxPacketSize) ep 3158 drivers/staging/octeon-usb/octeon-hcd.c (le16_to_cpu(ep->desc.wMaxPacketSize) ep 3167 drivers/staging/octeon-usb/octeon-hcd.c ep->hcpriv = pipe; ep 3169 drivers/staging/octeon-usb/octeon-hcd.c pipe = ep->hcpriv; ep 3260 drivers/staging/octeon-usb/octeon-hcd.c cvmx_usb_cancel(usb, urb->ep->hcpriv, urb->hcpriv); ep 3269 drivers/staging/octeon-usb/octeon-hcd.c struct usb_host_endpoint *ep) ep 3273 drivers/staging/octeon-usb/octeon-hcd.c if (ep->hcpriv) { ep 3275 drivers/staging/octeon-usb/octeon-hcd.c struct cvmx_usb_pipe *pipe = ep->hcpriv; ep 3283 drivers/staging/octeon-usb/octeon-hcd.c ep->hcpriv = NULL; ep 203 drivers/staging/wusbcore/host/hwa-hc.c return wa_urb_enqueue(&hwahc->wa, urb->ep, urb, gfp); ep 221 drivers/staging/wusbcore/host/hwa-hc.c struct usb_host_endpoint *ep) ep 226 drivers/staging/wusbcore/host/hwa-hc.c rpipe_ep_disable(&hwahc->wa, ep); ep 162 drivers/staging/wusbcore/host/whci/hcd.c struct usb_host_endpoint *ep) ep 168 drivers/staging/wusbcore/host/whci/hcd.c qset = ep->hcpriv; ep 170 drivers/staging/wusbcore/host/whci/hcd.c ep->hcpriv = NULL; ep 171 drivers/staging/wusbcore/host/whci/hcd.c if (usb_endpoint_xfer_bulk(&ep->desc) ep 172 drivers/staging/wusbcore/host/whci/hcd.c || usb_endpoint_xfer_control(&ep->desc)) ep 180 drivers/staging/wusbcore/host/whci/hcd.c struct usb_host_endpoint *ep) ep 189 drivers/staging/wusbcore/host/whci/hcd.c qset = ep->hcpriv; ep 194 drivers/staging/wusbcore/host/whci/hcd.c if (usb_endpoint_xfer_bulk(&ep->desc) ep 195 drivers/staging/wusbcore/host/whci/hcd.c || usb_endpoint_xfer_control(&ep->desc)) ep 56 drivers/staging/wusbcore/host/whci/pzl.c uint8_t bInterval = qset->ep->desc.bInterval; ep 51 drivers/staging/wusbcore/host/whci/qset.c qset->max_packet = le16_to_cpu(urb->ep->desc.wMaxPacketSize); ep 53 drivers/staging/wusbcore/host/whci/qset.c epcd = (struct usb_wireless_ep_comp_descriptor *)qset->ep->extra; ep 151 drivers/staging/wusbcore/host/whci/qset.c qset = urb->ep->hcpriv; ep 157 drivers/staging/wusbcore/host/whci/qset.c qset->ep = urb->ep; ep 158 drivers/staging/wusbcore/host/whci/qset.c urb->ep->hcpriv = qset; ep 349 drivers/staging/wusbcore/host/whci/qset.c dma_addr_t sp, ep; ep 360 drivers/staging/wusbcore/host/whci/qset.c ep = dma_addr + std->len; ep 361 drivers/staging/wusbcore/host/whci/qset.c std->num_pointers = DIV_ROUND_UP(ep - sp, WHCI_PAGE_SIZE); ep 441 drivers/staging/wusbcore/host/whci/qset.c dma_addr_t sp, ep; ep 497 drivers/staging/wusbcore/host/whci/qset.c ep = dma_addr + dma_len; ep 498 drivers/staging/wusbcore/host/whci/qset.c num_pointers = DIV_ROUND_UP(ep - sp, WHCI_PAGE_SIZE); ep 516 drivers/staging/wusbcore/host/whci/qset.c prev_end = dma_addr = ep; ep 238 drivers/staging/wusbcore/host/whci/whci-hc.h struct usb_host_endpoint *ep; ep 102 drivers/staging/wusbcore/wa-hc.h struct usb_host_endpoint *ep; ep 161 drivers/staging/wusbcore/wa-rpipe.c if (rpipe->ep) ep 162 drivers/staging/wusbcore/wa-rpipe.c rpipe->ep->hcpriv = NULL; ep 250 drivers/staging/wusbcore/wa-rpipe.c struct device *dev, struct usb_host_endpoint *ep) ep 257 drivers/staging/wusbcore/wa-rpipe.c if (ep->desc.bEndpointAddress == 0) { ep 261 drivers/staging/wusbcore/wa-rpipe.c itr = ep->extra; ep 262 drivers/staging/wusbcore/wa-rpipe.c itr_size = ep->extralen; ep 268 drivers/staging/wusbcore/wa-rpipe.c ep->desc.bEndpointAddress, ep 269 drivers/staging/wusbcore/wa-rpipe.c itr - (void *) ep->extra, itr_size); ep 281 drivers/staging/wusbcore/wa-rpipe.c ep->desc.bEndpointAddress, ep 282 drivers/staging/wusbcore/wa-rpipe.c itr - (void *) ep->extra, hdr->bDescriptorType, ep 300 drivers/staging/wusbcore/wa-rpipe.c struct usb_host_endpoint *ep, struct urb *urb, gfp_t gfp) ep 309 drivers/staging/wusbcore/wa-rpipe.c epcd = rpipe_epc_find(dev, ep); ep 312 drivers/staging/wusbcore/wa-rpipe.c ep->desc.bEndpointAddress); ep 323 drivers/staging/wusbcore/wa-rpipe.c if (usb_endpoint_xfer_isoc(&ep->desc)) ep 326 drivers/staging/wusbcore/wa-rpipe.c rpipe->descr.wMaxPacketSize = ep->desc.wMaxPacketSize; ep 343 drivers/staging/wusbcore/wa-rpipe.c rpipe->descr.bEndpointAddress = ep->desc.bEndpointAddress; ep 353 drivers/staging/wusbcore/wa-rpipe.c rpipe->descr.bInterval = ep->desc.bInterval; ep 354 drivers/staging/wusbcore/wa-rpipe.c if (usb_endpoint_xfer_isoc(&ep->desc)) ep 359 drivers/staging/wusbcore/wa-rpipe.c rpipe->descr.bmAttribute = (ep->desc.bmAttributes & ep 383 drivers/staging/wusbcore/wa-rpipe.c const struct usb_host_endpoint *ep, ep 404 drivers/staging/wusbcore/wa-rpipe.c AIM_CHECK(bEndpointAddress, ep->desc.bEndpointAddress, "(%u vs %u)"); ep 405 drivers/staging/wusbcore/wa-rpipe.c AIM_CHECK(bInterval, ep->desc.bInterval, "(%u vs %u)"); ep 406 drivers/staging/wusbcore/wa-rpipe.c AIM_CHECK(bmAttribute, ep->desc.bmAttributes & 0x03, "(%u vs %u)"); ep 423 drivers/staging/wusbcore/wa-rpipe.c int rpipe_get_by_ep(struct wahc *wa, struct usb_host_endpoint *ep, ep 432 drivers/staging/wusbcore/wa-rpipe.c rpipe = ep->hcpriv; ep 435 drivers/staging/wusbcore/wa-rpipe.c result = rpipe_check_aim(rpipe, wa, ep, urb, gfp); ep 441 drivers/staging/wusbcore/wa-rpipe.c ep->desc.bEndpointAddress, ep 446 drivers/staging/wusbcore/wa-rpipe.c eptype = ep->desc.bmAttributes & 0x03; ep 450 drivers/staging/wusbcore/wa-rpipe.c result = rpipe_aim(rpipe, wa, ep, urb, gfp); ep 455 drivers/staging/wusbcore/wa-rpipe.c ep->hcpriv = rpipe; ep 456 drivers/staging/wusbcore/wa-rpipe.c rpipe->ep = ep; ep 459 drivers/staging/wusbcore/wa-rpipe.c ep->desc.bEndpointAddress, ep 501 drivers/staging/wusbcore/wa-rpipe.c void rpipe_ep_disable(struct wahc *wa, struct usb_host_endpoint *ep) ep 506 drivers/staging/wusbcore/wa-rpipe.c rpipe = ep->hcpriv; ep 522 drivers/staging/wusbcore/wa-rpipe.c void rpipe_clear_feature_stalled(struct wahc *wa, struct usb_host_endpoint *ep) ep 527 drivers/staging/wusbcore/wa-rpipe.c rpipe = ep->hcpriv; ep 140 drivers/staging/wusbcore/wa-xfer.c struct usb_host_endpoint *ep; ep 289 drivers/staging/wusbcore/wa-xfer.c rpipe_put(xfer->ep->hcpriv); ep 449 drivers/staging/wusbcore/wa-xfer.c struct wa_rpipe *rpipe = xfer->ep->hcpriv; ep 499 drivers/staging/wusbcore/wa-xfer.c struct wa_rpipe *rpipe = xfer->ep->hcpriv; ep 585 drivers/staging/wusbcore/wa-xfer.c struct wa_rpipe *rpipe = xfer->ep->hcpriv; ep 683 drivers/staging/wusbcore/wa-xfer.c struct wa_rpipe *rpipe = xfer->ep->hcpriv; ep 832 drivers/staging/wusbcore/wa-xfer.c rpipe = xfer->ep->hcpriv; ep 898 drivers/staging/wusbcore/wa-xfer.c rpipe = xfer->ep->hcpriv; ep 973 drivers/staging/wusbcore/wa-xfer.c rpipe = xfer->ep->hcpriv; ep 1549 drivers/staging/wusbcore/wa-xfer.c struct wa_rpipe *rpipe = xfer->ep->hcpriv; ep 1649 drivers/staging/wusbcore/wa-xfer.c result = rpipe_get_by_ep(wa, xfer->ep, urb, xfer->gfp); ep 1711 drivers/staging/wusbcore/wa-xfer.c rpipe_put(xfer->ep->hcpriv); ep 1787 drivers/staging/wusbcore/wa-xfer.c struct usb_host_endpoint *ep; ep 1792 drivers/staging/wusbcore/wa-xfer.c ep = xfer->ep; ep 1793 drivers/staging/wusbcore/wa-xfer.c rpipe = ep->hcpriv; ep 1797 drivers/staging/wusbcore/wa-xfer.c rpipe_clear_feature_stalled(wa, ep); ep 1820 drivers/staging/wusbcore/wa-xfer.c int wa_urb_enqueue(struct wahc *wa, struct usb_host_endpoint *ep, ep 1855 drivers/staging/wusbcore/wa-xfer.c xfer->ep = ep; ep 1948 drivers/staging/wusbcore/wa-xfer.c rpipe = xfer->ep->hcpriv; ep 2129 drivers/staging/wusbcore/wa-xfer.c struct wa_rpipe *rpipe = xfer->ep->hcpriv; ep 2296 drivers/staging/wusbcore/wa-xfer.c rpipe = xfer->ep->hcpriv; ep 2388 drivers/staging/wusbcore/wa-xfer.c usb_endpoint_xfer_control(&xfer->ep->desc) && ep 2462 drivers/staging/wusbcore/wa-xfer.c rpipe = xfer->ep->hcpriv; ep 2603 drivers/staging/wusbcore/wa-xfer.c rpipe = xfer->ep->hcpriv; ep 34 drivers/target/tcm_fc/tfc_cmd.c struct fc_exch *ep; ep 56 drivers/target/tcm_fc/tfc_cmd.c ep = fc_seq_exch(sp); ep 59 drivers/target/tcm_fc/tfc_cmd.c caller, cmd, ep->sid, ep->did, ep->oxid, ep->rxid, ep 60 drivers/target/tcm_fc/tfc_cmd.c sp->id, ep->esb_stat); ep 107 drivers/target/tcm_fc/tfc_cmd.c struct fc_exch *ep; ep 114 drivers/target/tcm_fc/tfc_cmd.c ep = fc_seq_exch(cmd->seq); ep 115 drivers/target/tcm_fc/tfc_cmd.c lport = ep->lp; ep 150 drivers/target/tcm_fc/tfc_cmd.c fc_fill_fc_hdr(fp, FC_RCTL_DD_CMD_STATUS, ep->did, ep->sid, FC_TYPE_FCP, ep 156 drivers/target/tcm_fc/tfc_cmd.c "xid <0x%x>\n", __func__, fp, ep->xid); ep 184 drivers/target/tcm_fc/tfc_cmd.c struct fc_exch *ep; ep 192 drivers/target/tcm_fc/tfc_cmd.c ep = fc_seq_exch(cmd->seq); ep 193 drivers/target/tcm_fc/tfc_cmd.c lport = ep->lp; ep 203 drivers/target/tcm_fc/tfc_cmd.c fc_fill_fc_hdr(fp, FC_RCTL_DD_DATA_DESC, ep->did, ep->sid, FC_TYPE_FCP, ep 214 drivers/target/tcm_fc/tfc_cmd.c if ((ep->xid <= lport->lro_xid) && ep 217 drivers/target/tcm_fc/tfc_cmd.c lport->tt.ddp_target(lport, ep->xid, ep 46 drivers/target/tcm_fc/tfc_io.c struct fc_exch *ep; ep 71 drivers/target/tcm_fc/tfc_io.c ep = fc_seq_exch(cmd->seq); ep 72 drivers/target/tcm_fc/tfc_io.c lport = ep->lp; ep 96 drivers/target/tcm_fc/tfc_io.c __func__, ep->xid); ep 162 drivers/target/tcm_fc/tfc_io.c fc_fill_fc_hdr(fp, FC_RCTL_DD_SOL_DATA, ep->did, ep->sid, ep 169 drivers/target/tcm_fc/tfc_io.c __func__, fp, ep->xid, ep 200 drivers/target/tcm_fc/tfc_io.c struct fc_exch *ep; ep 221 drivers/target/tcm_fc/tfc_io.c ep = fc_seq_exch(seq); ep 222 drivers/target/tcm_fc/tfc_io.c lport = ep->lp; ep 224 drivers/target/tcm_fc/tfc_io.c BUG_ON(!ep); ep 237 drivers/target/tcm_fc/tfc_io.c "not set\n", __func__, ep->xid, f_ctl, ep 332 drivers/target/tcm_fc/tfc_io.c struct fc_exch *ep = NULL; ep 340 drivers/target/tcm_fc/tfc_io.c ep = fc_seq_exch(seq); ep 341 drivers/target/tcm_fc/tfc_io.c if (ep) { ep 342 drivers/target/tcm_fc/tfc_io.c lport = ep->lp; ep 343 drivers/target/tcm_fc/tfc_io.c if (lport && (ep->xid <= lport->lro_xid)) { ep 349 drivers/target/tcm_fc/tfc_io.c ep->xid); ep 134 drivers/thunderbolt/icm.c const struct ep_name_entry *ep = ep_name; ep 136 drivers/thunderbolt/icm.c if (!ep->len) ep 138 drivers/thunderbolt/icm.c if (ep_name + ep->len > end) ep 141 drivers/thunderbolt/icm.c if (ep->type == EP_NAME_INTEL_VSS) ep 142 drivers/thunderbolt/icm.c return (const struct intel_vss *)ep->data; ep 144 drivers/thunderbolt/icm.c ep_name += ep->len; ep 38 drivers/usb/atm/xusbatm.c static struct usb_interface *xusbatm_find_intf(struct usb_device *usb_dev, int altsetting, u8 ep) ep 47 drivers/usb/atm/xusbatm.c if (alt->endpoint[j].desc.bEndpointAddress == ep) ep 110 drivers/usb/c67x00/c67x00-hcd.h struct usb_host_endpoint *ep); ep 233 drivers/usb/c67x00/c67x00-sched.c struct usb_host_endpoint *hep = urb->ep; ep 305 drivers/usb/c67x00/c67x00-sched.c void c67x00_endpoint_disable(struct usb_hcd *hcd, struct usb_host_endpoint *ep) ep 310 drivers/usb/c67x00/c67x00-sched.c if (!list_empty(&ep->urb_list)) ep 316 drivers/usb/c67x00/c67x00-sched.c while (c67x00_ep_data_free(ep)) { ep 91 drivers/usb/c67x00/c67x00.h #define DEVICE_N_ENDPOINT_N_CTL_REG(dev, ep) ((dev) \ ep 92 drivers/usb/c67x00/c67x00.h ? (0x0280 + (ep << 4)) \ ep 93 drivers/usb/c67x00/c67x00.h : (0x0200 + (ep << 4))) ep 94 drivers/usb/c67x00/c67x00.h #define DEVICE_N_ENDPOINT_N_STAT_REG(dev, ep) ((dev) \ ep 95 drivers/usb/c67x00/c67x00.h ? (0x0286 + (ep << 4)) \ ep 96 drivers/usb/c67x00/c67x00.h : (0x0206 + (ep << 4))) ep 666 drivers/usb/cdns3/ep0.c static int cdns3_gadget_ep0_enable(struct usb_ep *ep, ep 677 drivers/usb/cdns3/ep0.c static int cdns3_gadget_ep0_disable(struct usb_ep *ep) ep 689 drivers/usb/cdns3/ep0.c static int cdns3_gadget_ep0_set_halt(struct usb_ep *ep, int value) ep 703 drivers/usb/cdns3/ep0.c static int cdns3_gadget_ep0_queue(struct usb_ep *ep, ep 707 drivers/usb/cdns3/ep0.c struct cdns3_endpoint *priv_ep = ep_to_cdns3_ep(ep); ep 767 drivers/usb/cdns3/ep0.c (request->length % ep->maxpacket == 0)) ep 783 drivers/usb/cdns3/ep0.c int cdns3_gadget_ep_set_wedge(struct usb_ep *ep) ep 785 drivers/usb/cdns3/ep0.c struct cdns3_endpoint *priv_ep = ep_to_cdns3_ep(ep); ep 788 drivers/usb/cdns3/ep0.c dev_dbg(priv_dev->dev, "Wedge for %s\n", ep->name); ep 789 drivers/usb/cdns3/ep0.c cdns3_gadget_ep_set_halt(ep, 1); ep 70 drivers/usb/cdns3/gadget.c static int __cdns3_gadget_ep_queue(struct usb_ep *ep, ep 144 drivers/usb/cdns3/gadget.c void cdns3_select_ep(struct cdns3_device *priv_dev, u32 ep) ep 146 drivers/usb/cdns3/gadget.c if (priv_dev->selected_ep == ep) ep 149 drivers/usb/cdns3/gadget.c priv_dev->selected_ep = ep; ep 150 drivers/usb/cdns3/gadget.c writel(ep, &priv_dev->regs->ep_sel); ep 1019 drivers/usb/cdns3/gadget.c struct usb_ep *ep; ep 1037 drivers/usb/cdns3/gadget.c list_for_each_entry(ep, &priv_dev->gadget.ep_list, ep_list) { ep 1038 drivers/usb/cdns3/gadget.c if (ep->enabled) { ep 1039 drivers/usb/cdns3/gadget.c priv_ep = ep_to_cdns3_ep(ep); ep 1654 drivers/usb/cdns3/gadget.c struct usb_ep *ep; ep 1657 drivers/usb/cdns3/gadget.c list_for_each_entry(ep, &priv_dev->gadget.ep_list, ep_list) { ep 1661 drivers/usb/cdns3/gadget.c char c[2] = {ep->name[2], '\0'}; ep 1667 drivers/usb/cdns3/gadget.c priv_ep = ep_to_cdns3_ep(ep); ep 1730 drivers/usb/cdns3/gadget.c struct usb_request *cdns3_gadget_ep_alloc_request(struct usb_ep *ep, ep 1733 drivers/usb/cdns3/gadget.c struct cdns3_endpoint *priv_ep = ep_to_cdns3_ep(ep); ep 1751 drivers/usb/cdns3/gadget.c void cdns3_gadget_ep_free_request(struct usb_ep *ep, ep 1770 drivers/usb/cdns3/gadget.c static int cdns3_gadget_ep_enable(struct usb_ep *ep, ep 1782 drivers/usb/cdns3/gadget.c priv_ep = ep_to_cdns3_ep(ep); ep 1785 drivers/usb/cdns3/gadget.c if (!ep || !desc || desc->bDescriptorType != USB_DT_ENDPOINT) { ep 1859 drivers/usb/cdns3/gadget.c ep->desc = desc; ep 1883 drivers/usb/cdns3/gadget.c static int cdns3_gadget_ep_disable(struct usb_ep *ep) ep 1894 drivers/usb/cdns3/gadget.c if (!ep) { ep 1899 drivers/usb/cdns3/gadget.c priv_ep = ep_to_cdns3_ep(ep); ep 1910 drivers/usb/cdns3/gadget.c cdns3_select_ep(priv_dev, ep->desc->bEndpointAddress); ep 1958 drivers/usb/cdns3/gadget.c ep->desc = NULL; ep 1974 drivers/usb/cdns3/gadget.c static int __cdns3_gadget_ep_queue(struct usb_ep *ep, ep 1978 drivers/usb/cdns3/gadget.c struct cdns3_endpoint *priv_ep = ep_to_cdns3_ep(ep); ep 2001 drivers/usb/cdns3/gadget.c usb_endpoint_dir_in(ep->desc)); ep 2019 drivers/usb/cdns3/gadget.c static int cdns3_gadget_ep_queue(struct usb_ep *ep, struct usb_request *request, ep 2028 drivers/usb/cdns3/gadget.c if (!request || !ep) ep 2031 drivers/usb/cdns3/gadget.c priv_ep = ep_to_cdns3_ep(ep); ep 2036 drivers/usb/cdns3/gadget.c ret = __cdns3_gadget_ep_queue(ep, request, gfp_flags); ep 2039 drivers/usb/cdns3/gadget.c (request->length % ep->maxpacket == 0)) { ep 2042 drivers/usb/cdns3/gadget.c zlp_request = cdns3_gadget_ep_alloc_request(ep, GFP_ATOMIC); ep 2051 drivers/usb/cdns3/gadget.c ret = __cdns3_gadget_ep_queue(ep, zlp_request, gfp_flags); ep 2065 drivers/usb/cdns3/gadget.c int cdns3_gadget_ep_dequeue(struct usb_ep *ep, ep 2068 drivers/usb/cdns3/gadget.c struct cdns3_endpoint *priv_ep = ep_to_cdns3_ep(ep); ep 2077 drivers/usb/cdns3/gadget.c if (!ep || !request || !ep->desc) ep 2086 drivers/usb/cdns3/gadget.c cdns3_select_ep(priv_dev, ep->desc->bEndpointAddress); ep 2197 drivers/usb/cdns3/gadget.c int cdns3_gadget_ep_set_halt(struct usb_ep *ep, int value) ep 2199 drivers/usb/cdns3/gadget.c struct cdns3_endpoint *priv_ep = ep_to_cdns3_ep(ep); ep 2209 drivers/usb/cdns3/gadget.c cdns3_select_ep(priv_dev, ep->desc->bEndpointAddress); ep 2397 drivers/usb/cdns3/gadget.c struct usb_ep *ep; ep 2407 drivers/usb/cdns3/gadget.c list_for_each_entry(ep, &priv_dev->gadget.ep_list, ep_list) { ep 2408 drivers/usb/cdns3/gadget.c priv_ep = ep_to_cdns3_ep(ep); ep 962 drivers/usb/cdns3/gadget.h #define ep_to_cdns3_ep(ep) (container_of(ep, struct cdns3_endpoint, endpoint)) ep 1310 drivers/usb/cdns3/gadget.h void cdns3_select_ep(struct cdns3_device *priv_dev, u32 ep); ep 1318 drivers/usb/cdns3/gadget.h int cdns3_gadget_ep_set_wedge(struct usb_ep *ep); ep 1319 drivers/usb/cdns3/gadget.h int cdns3_gadget_ep_set_halt(struct usb_ep *ep, int value); ep 1322 drivers/usb/cdns3/gadget.h struct usb_request *cdns3_gadget_ep_alloc_request(struct usb_ep *ep, ep 1324 drivers/usb/cdns3/gadget.h void cdns3_gadget_ep_free_request(struct usb_ep *ep, ep 1326 drivers/usb/cdns3/gadget.h int cdns3_gadget_ep_dequeue(struct usb_ep *ep, struct usb_request *request); ep 87 drivers/usb/chipidea/ci.h struct usb_ep ep; ep 361 drivers/usb/chipidea/udc.c u32 mul = hwreq->req.length / hwep->ep.maxpacket; ep 364 drivers/usb/chipidea/udc.c || hwreq->req.length % hwep->ep.maxpacket) ep 398 drivers/usb/chipidea/udc.c static inline u8 _usb_addr(struct ci_hw_ep *ep) ep 400 drivers/usb/chipidea/udc.c return ((ep->dir == TX) ? USB_ENDPOINT_DIR_MASK : 0) | ep->num; ep 453 drivers/usb/chipidea/udc.c && (hwreq->req.length % hwep->ep.maxpacket == 0)) { ep 501 drivers/usb/chipidea/udc.c u32 mul = hwreq->req.length / hwep->ep.maxpacket; ep 504 drivers/usb/chipidea/udc.c || hwreq->req.length % hwep->ep.maxpacket) ep 651 drivers/usb/chipidea/udc.c usb_gadget_giveback_request(&hwep->ep, &hwreq->req); ep 662 drivers/usb/chipidea/udc.c static int _ep_set_halt(struct usb_ep *ep, int value, bool check_transfer) ep 664 drivers/usb/chipidea/udc.c struct ci_hw_ep *hwep = container_of(ep, struct ci_hw_ep, ep); ep 668 drivers/usb/chipidea/udc.c if (ep == NULL || hwep->ep.desc == NULL) ep 671 drivers/usb/chipidea/udc.c if (usb_endpoint_xfer_isoc(hwep->ep.desc)) ep 678 drivers/usb/chipidea/udc.c !usb_endpoint_xfer_control(hwep->ep.desc)) { ep 708 drivers/usb/chipidea/udc.c struct usb_ep *ep; ep 713 drivers/usb/chipidea/udc.c gadget_for_each_ep(ep, gadget) { ep 714 drivers/usb/chipidea/udc.c usb_ep_fifo_flush(ep); ep 716 drivers/usb/chipidea/udc.c usb_ep_fifo_flush(&ci->ep0out->ep); ep 717 drivers/usb/chipidea/udc.c usb_ep_fifo_flush(&ci->ep0in->ep); ep 720 drivers/usb/chipidea/udc.c gadget_for_each_ep(ep, gadget) { ep 721 drivers/usb/chipidea/udc.c usb_ep_disable(ep); ep 725 drivers/usb/chipidea/udc.c usb_ep_free_request(&ci->ep0in->ep, ci->status); ep 765 drivers/usb/chipidea/udc.c ci->status = usb_ep_alloc_request(&ci->ep0in->ep, GFP_ATOMIC); ep 783 drivers/usb/chipidea/udc.c static void isr_get_status_complete(struct usb_ep *ep, struct usb_request *req) ep 785 drivers/usb/chipidea/udc.c if (ep == NULL || req == NULL) ep 789 drivers/usb/chipidea/udc.c usb_ep_free_request(ep, req); ep 801 drivers/usb/chipidea/udc.c static int _ep_queue(struct usb_ep *ep, struct usb_request *req, ep 804 drivers/usb/chipidea/udc.c struct ci_hw_ep *hwep = container_of(ep, struct ci_hw_ep, ep); ep 809 drivers/usb/chipidea/udc.c if (ep == NULL || req == NULL || hwep->ep.desc == NULL) ep 823 drivers/usb/chipidea/udc.c if (usb_endpoint_xfer_isoc(hwep->ep.desc) && ep 824 drivers/usb/chipidea/udc.c hwreq->req.length > hwep->ep.mult * hwep->ep.maxpacket) { ep 870 drivers/usb/chipidea/udc.c req = usb_ep_alloc_request(&hwep->ep, gfp_flags); ep 895 drivers/usb/chipidea/udc.c retval = _ep_queue(&hwep->ep, req, gfp_flags); ep 905 drivers/usb/chipidea/udc.c usb_ep_free_request(&hwep->ep, req); ep 919 drivers/usb/chipidea/udc.c isr_setup_status_complete(struct usb_ep *ep, struct usb_request *req) ep 960 drivers/usb/chipidea/udc.c return _ep_queue(&hwep->ep, ci->status, GFP_ATOMIC); ep 989 drivers/usb/chipidea/udc.c usb_gadget_giveback_request(&hweptemp->ep, &hwreq->req); ep 1054 drivers/usb/chipidea/udc.c &ci->ci_hw_ep[num].ep); ep 1105 drivers/usb/chipidea/udc.c err = _ep_set_halt(&ci->ci_hw_ep[num].ep, 1, false); ep 1171 drivers/usb/chipidea/udc.c if (_ep_set_halt(&hwep->ep, 1, false)) ep 1193 drivers/usb/chipidea/udc.c if (hwep->ep.desc == NULL) ep 1203 drivers/usb/chipidea/udc.c if (_ep_set_halt(&hwep->ep, 1, false)) ep 1226 drivers/usb/chipidea/udc.c static int ep_enable(struct usb_ep *ep, ep 1229 drivers/usb/chipidea/udc.c struct ci_hw_ep *hwep = container_of(ep, struct ci_hw_ep, ep); ep 1234 drivers/usb/chipidea/udc.c if (ep == NULL || desc == NULL) ep 1247 drivers/usb/chipidea/udc.c hwep->ep.desc = desc; ep 1253 drivers/usb/chipidea/udc.c hwep->ep.maxpacket = usb_endpoint_maxp(desc); ep 1254 drivers/usb/chipidea/udc.c hwep->ep.mult = usb_endpoint_maxp_mult(desc); ep 1260 drivers/usb/chipidea/udc.c cap |= (hwep->ep.maxpacket << __ffs(QH_MAX_PKT)) & QH_MAX_PKT; ep 1294 drivers/usb/chipidea/udc.c static int ep_disable(struct usb_ep *ep) ep 1296 drivers/usb/chipidea/udc.c struct ci_hw_ep *hwep = container_of(ep, struct ci_hw_ep, ep); ep 1300 drivers/usb/chipidea/udc.c if (ep == NULL) ep 1302 drivers/usb/chipidea/udc.c else if (hwep->ep.desc == NULL) ep 1323 drivers/usb/chipidea/udc.c hwep->ep.desc = NULL; ep 1334 drivers/usb/chipidea/udc.c static struct usb_request *ep_alloc_request(struct usb_ep *ep, gfp_t gfp_flags) ep 1338 drivers/usb/chipidea/udc.c if (ep == NULL) ep 1355 drivers/usb/chipidea/udc.c static void ep_free_request(struct usb_ep *ep, struct usb_request *req) ep 1357 drivers/usb/chipidea/udc.c struct ci_hw_ep *hwep = container_of(ep, struct ci_hw_ep, ep); ep 1362 drivers/usb/chipidea/udc.c if (ep == NULL || req == NULL) { ep 1388 drivers/usb/chipidea/udc.c static int ep_queue(struct usb_ep *ep, struct usb_request *req, ep 1391 drivers/usb/chipidea/udc.c struct ci_hw_ep *hwep = container_of(ep, struct ci_hw_ep, ep); ep 1395 drivers/usb/chipidea/udc.c if (ep == NULL || req == NULL || hwep->ep.desc == NULL) ep 1403 drivers/usb/chipidea/udc.c retval = _ep_queue(ep, req, gfp_flags); ep 1413 drivers/usb/chipidea/udc.c static int ep_dequeue(struct usb_ep *ep, struct usb_request *req) ep 1415 drivers/usb/chipidea/udc.c struct ci_hw_ep *hwep = container_of(ep, struct ci_hw_ep, ep); ep 1420 drivers/usb/chipidea/udc.c if (ep == NULL || req == NULL || hwreq->req.status != -EALREADY || ep 1421 drivers/usb/chipidea/udc.c hwep->ep.desc == NULL || list_empty(&hwreq->queue) || ep 1444 drivers/usb/chipidea/udc.c usb_gadget_giveback_request(&hwep->ep, &hwreq->req); ep 1457 drivers/usb/chipidea/udc.c static int ep_set_halt(struct usb_ep *ep, int value) ep 1459 drivers/usb/chipidea/udc.c return _ep_set_halt(ep, value, true); ep 1467 drivers/usb/chipidea/udc.c static int ep_set_wedge(struct usb_ep *ep) ep 1469 drivers/usb/chipidea/udc.c struct ci_hw_ep *hwep = container_of(ep, struct ci_hw_ep, ep); ep 1472 drivers/usb/chipidea/udc.c if (ep == NULL || hwep->ep.desc == NULL) ep 1479 drivers/usb/chipidea/udc.c return usb_ep_set_halt(ep); ep 1487 drivers/usb/chipidea/udc.c static void ep_fifo_flush(struct usb_ep *ep) ep 1489 drivers/usb/chipidea/udc.c struct ci_hw_ep *hwep = container_of(ep, struct ci_hw_ep, ep); ep 1492 drivers/usb/chipidea/udc.c if (ep == NULL) { ep 1648 drivers/usb/chipidea/udc.c struct usb_ep *ep; ep 1651 drivers/usb/chipidea/udc.c list_for_each_entry_reverse(ep, &ci->gadget.ep_list, ep_list) { ep 1652 drivers/usb/chipidea/udc.c if (ep->caps.dir_in && !ep->claimed) ep 1653 drivers/usb/chipidea/udc.c return ep; ep 1692 drivers/usb/chipidea/udc.c hwep->ep.name = hwep->name; ep 1693 drivers/usb/chipidea/udc.c hwep->ep.ops = &usb_ep_ops; ep 1696 drivers/usb/chipidea/udc.c hwep->ep.caps.type_control = true; ep 1698 drivers/usb/chipidea/udc.c hwep->ep.caps.type_iso = true; ep 1699 drivers/usb/chipidea/udc.c hwep->ep.caps.type_bulk = true; ep 1700 drivers/usb/chipidea/udc.c hwep->ep.caps.type_int = true; ep 1704 drivers/usb/chipidea/udc.c hwep->ep.caps.dir_in = true; ep 1706 drivers/usb/chipidea/udc.c hwep->ep.caps.dir_out = true; ep 1713 drivers/usb/chipidea/udc.c usb_ep_set_maxpacket_limit(&hwep->ep, (unsigned short)~0); ep 1731 drivers/usb/chipidea/udc.c usb_ep_set_maxpacket_limit(&hwep->ep, CTRL_PAYLOAD_MAX); ep 1735 drivers/usb/chipidea/udc.c list_add_tail(&hwep->ep.ep_list, &ci->gadget.ep_list); ep 1770 drivers/usb/chipidea/udc.c ci->ep0out->ep.desc = &ctrl_endpt_out_desc; ep 1771 drivers/usb/chipidea/udc.c retval = usb_ep_enable(&ci->ep0out->ep); ep 1775 drivers/usb/chipidea/udc.c ci->ep0in->ep.desc = &ctrl_endpt_in_desc; ep 1776 drivers/usb/chipidea/udc.c retval = usb_ep_enable(&ci->ep0in->ep); ep 1964 drivers/usb/chipidea/udc.c ci->gadget.ep0 = &ci->ep0in->ep; ep 790 drivers/usb/class/cdc-wdm.c static int wdm_create(struct usb_interface *intf, struct usb_endpoint_descriptor *ep, ep 812 drivers/usb/class/cdc-wdm.c if (!usb_endpoint_is_int_in(ep)) ep 815 drivers/usb/class/cdc-wdm.c desc->wMaxPacketSize = usb_endpoint_maxp(ep); ep 851 drivers/usb/class/cdc-wdm.c usb_rcvintpipe(interface_to_usbdev(intf), ep->bEndpointAddress), ep 856 drivers/usb/class/cdc-wdm.c ep->bInterval ep 913 drivers/usb/class/cdc-wdm.c struct usb_endpoint_descriptor *ep; ep 930 drivers/usb/class/cdc-wdm.c ep = &iface->endpoint[0].desc; ep 932 drivers/usb/class/cdc-wdm.c rv = wdm_create(intf, ep, maxcom, &wdm_manage_power); ep 958 drivers/usb/class/cdc-wdm.c struct usb_endpoint_descriptor *ep, ep 964 drivers/usb/class/cdc-wdm.c rv = wdm_create(intf, ep, bufsize, manage_power); ep 52 drivers/usb/core/config.c int cfgno, int inum, int asnum, struct usb_host_endpoint *ep, ep 66 drivers/usb/core/config.c cfgno, inum, asnum, ep->desc.bEndpointAddress); ep 69 drivers/usb/core/config.c memcpy(&ep->ssp_isoc_ep_comp, desc, USB_DT_SSP_ISOC_EP_COMP_SIZE); ep 73 drivers/usb/core/config.c int inum, int asnum, struct usb_host_endpoint *ep, ep 89 drivers/usb/core/config.c cfgno, inum, asnum, ep->desc.bEndpointAddress); ep 98 drivers/usb/core/config.c ep->ss_ep_comp.bLength = USB_DT_SS_EP_COMP_SIZE; ep 99 drivers/usb/core/config.c ep->ss_ep_comp.bDescriptorType = USB_DT_SS_ENDPOINT_COMP; ep 100 drivers/usb/core/config.c if (usb_endpoint_xfer_isoc(&ep->desc) || ep 101 drivers/usb/core/config.c usb_endpoint_xfer_int(&ep->desc)) ep 102 drivers/usb/core/config.c ep->ss_ep_comp.wBytesPerInterval = ep 103 drivers/usb/core/config.c ep->desc.wMaxPacketSize; ep 108 drivers/usb/core/config.c memcpy(&ep->ss_ep_comp, desc, USB_DT_SS_EP_COMP_SIZE); ep 111 drivers/usb/core/config.c if (usb_endpoint_xfer_control(&ep->desc) && desc->bMaxBurst != 0) { ep 115 drivers/usb/core/config.c cfgno, inum, asnum, ep->desc.bEndpointAddress); ep 116 drivers/usb/core/config.c ep->ss_ep_comp.bMaxBurst = 0; ep 121 drivers/usb/core/config.c cfgno, inum, asnum, ep->desc.bEndpointAddress); ep 122 drivers/usb/core/config.c ep->ss_ep_comp.bMaxBurst = 15; ep 125 drivers/usb/core/config.c if ((usb_endpoint_xfer_control(&ep->desc) || ep 126 drivers/usb/core/config.c usb_endpoint_xfer_int(&ep->desc)) && ep 131 drivers/usb/core/config.c usb_endpoint_xfer_control(&ep->desc) ? "Control" : "Bulk", ep 133 drivers/usb/core/config.c cfgno, inum, asnum, ep->desc.bEndpointAddress); ep 134 drivers/usb/core/config.c ep->ss_ep_comp.bmAttributes = 0; ep 135 drivers/usb/core/config.c } else if (usb_endpoint_xfer_bulk(&ep->desc) && ep 140 drivers/usb/core/config.c cfgno, inum, asnum, ep->desc.bEndpointAddress); ep 141 drivers/usb/core/config.c ep->ss_ep_comp.bmAttributes = 16; ep 142 drivers/usb/core/config.c } else if (usb_endpoint_xfer_isoc(&ep->desc) && ep 149 drivers/usb/core/config.c cfgno, inum, asnum, ep->desc.bEndpointAddress); ep 150 drivers/usb/core/config.c ep->ss_ep_comp.bmAttributes = 2; ep 153 drivers/usb/core/config.c if (usb_endpoint_xfer_isoc(&ep->desc)) ep 156 drivers/usb/core/config.c usb_endpoint_maxp(&ep->desc); ep 157 drivers/usb/core/config.c else if (usb_endpoint_xfer_int(&ep->desc)) ep 158 drivers/usb/core/config.c max_tx = usb_endpoint_maxp(&ep->desc) * ep 166 drivers/usb/core/config.c usb_endpoint_xfer_isoc(&ep->desc) ? "Isoc" : "Int", ep 168 drivers/usb/core/config.c cfgno, inum, asnum, ep->desc.bEndpointAddress, ep 170 drivers/usb/core/config.c ep->ss_ep_comp.wBytesPerInterval = cpu_to_le16(max_tx); ep 173 drivers/usb/core/config.c if (usb_endpoint_xfer_isoc(&ep->desc) && ep 176 drivers/usb/core/config.c ep, buffer, size); ep 473 drivers/usb/core/devio.c int ep; ep 479 drivers/usb/core/devio.c ep = usb_pipeendpoint(pipe); ep 487 drivers/usb/core/devio.c userurb, ep, t, d, length); ep 491 drivers/usb/core/devio.c userurb, ep, t, d, length, ep 497 drivers/usb/core/devio.c ep, t, d, length, timeout_or_status); ep 501 drivers/usb/core/devio.c ep, t, d, length, timeout_or_status); ep 831 drivers/usb/core/devio.c static int findintfep(struct usb_device *dev, unsigned int ep) ep 838 drivers/usb/core/devio.c if (ep & ~(USB_DIR_IN|0xf)) ep 848 drivers/usb/core/devio.c if (endpt->bEndpointAddress == ep) ep 916 drivers/usb/core/devio.c unsigned char ep) ep 918 drivers/usb/core/devio.c if (ep & USB_ENDPOINT_DIR_MASK) ep 919 drivers/usb/core/devio.c return dev->ep_in[ep & USB_ENDPOINT_NUMBER_MASK]; ep 921 drivers/usb/core/devio.c return dev->ep_out[ep & USB_ENDPOINT_NUMBER_MASK]; ep 934 drivers/usb/core/devio.c unsigned char ep; ep 953 drivers/usb/core/devio.c if (get_user(ep, &streams->eps[i])) { ep 957 drivers/usb/core/devio.c eps[i] = ep_to_host_endpoint(ps->dev, ep); ep 964 drivers/usb/core/devio.c ifnum = findintfep(ps->dev, ep); ep 1203 drivers/usb/core/devio.c ret = findintfep(ps->dev, bulk.ep); ep 1209 drivers/usb/core/devio.c if (bulk.ep & USB_DIR_IN) ep 1210 drivers/usb/core/devio.c pipe = usb_rcvbulkpipe(dev, bulk.ep & 0x7f); ep 1212 drivers/usb/core/devio.c pipe = usb_sndbulkpipe(dev, bulk.ep & 0x7f); ep 1213 drivers/usb/core/devio.c if (!usb_maxpacket(dev, pipe, !(bulk.ep & USB_DIR_IN))) ep 1227 drivers/usb/core/devio.c if (bulk.ep & 0x80) { ep 1270 drivers/usb/core/devio.c struct usb_host_endpoint *ep; ep 1273 drivers/usb/core/devio.c ep = eps[epnum & 0x0f]; ep 1274 drivers/usb/core/devio.c if (ep && !list_empty(&ep->urb_list)) ep 1282 drivers/usb/core/devio.c unsigned int ep; ep 1285 drivers/usb/core/devio.c if (get_user(ep, (unsigned int __user *)arg)) ep 1287 drivers/usb/core/devio.c ret = findintfep(ps->dev, ep); ep 1293 drivers/usb/core/devio.c check_reset_of_active_ep(ps->dev, ep, "RESETEP"); ep 1294 drivers/usb/core/devio.c usb_reset_endpoint(ps->dev, ep); ep 1300 drivers/usb/core/devio.c unsigned int ep; ep 1304 drivers/usb/core/devio.c if (get_user(ep, (unsigned int __user *)arg)) ep 1306 drivers/usb/core/devio.c ret = findintfep(ps->dev, ep); ep 1312 drivers/usb/core/devio.c check_reset_of_active_ep(ps->dev, ep, "CLEAR_HALT"); ep 1313 drivers/usb/core/devio.c if (ep & USB_DIR_IN) ep 1314 drivers/usb/core/devio.c pipe = usb_rcvbulkpipe(ps->dev, ep & 0x7f); ep 1316 drivers/usb/core/devio.c pipe = usb_sndbulkpipe(ps->dev, ep & 0x7f); ep 1508 drivers/usb/core/devio.c struct usb_host_endpoint *ep; ep 1544 drivers/usb/core/devio.c ep = ep_to_host_endpoint(ps->dev, uurb->endpoint); ep 1545 drivers/usb/core/devio.c if (!ep) ep 1552 drivers/usb/core/devio.c if (!usb_endpoint_xfer_control(&ep->desc)) ep 1598 drivers/usb/core/devio.c switch (usb_endpoint_type(&ep->desc)) { ep 1610 drivers/usb/core/devio.c if (ep->streams) ep 1615 drivers/usb/core/devio.c if (!usb_endpoint_xfer_int(&ep->desc)) ep 1629 drivers/usb/core/devio.c if (!usb_endpoint_xfer_isoc(&ep->desc)) ep 1785 drivers/usb/core/devio.c if (ep->desc.bInterval) { ep 1790 drivers/usb/core/devio.c min(15, ep->desc.bInterval - 1); ep 1792 drivers/usb/core/devio.c as->urb->interval = ep->desc.bInterval; ep 1827 drivers/usb/core/devio.c if (usb_endpoint_xfer_bulk(&ep->desc)) { ep 1834 drivers/usb/core/devio.c as->bulk_addr = usb_endpoint_num(&ep->desc) | ep 1835 drivers/usb/core/devio.c ((ep->desc.bEndpointAddress & USB_ENDPOINT_DIR_MASK) ep 1946 drivers/usb/core/devio.c if (usb_endpoint_xfer_isoc(&urb->ep->desc)) { ep 2044 drivers/usb/core/devio.c if (get_user(n, &p32->ep) || put_user(n, &p->ep) || ep 2119 drivers/usb/core/devio.c if (usb_endpoint_xfer_isoc(&urb->ep->desc)) { ep 397 drivers/usb/core/driver.c struct usb_host_endpoint *ep, **eps = NULL; ep 427 drivers/usb/core/driver.c ep = &intf->cur_altsetting->endpoint[i]; ep 428 drivers/usb/core/driver.c if (ep->streams == 0) ep 436 drivers/usb/core/driver.c eps[j++] = ep; ep 41 drivers/usb/core/endpoint.c struct ep_device *ep = to_ep_device(dev); \ ep 42 drivers/usb/core/endpoint.c return sprintf(buf, format_string, ep->desc->field); \ ep 54 drivers/usb/core/endpoint.c struct ep_device *ep = to_ep_device(dev); ep 55 drivers/usb/core/endpoint.c return sprintf(buf, "%04x\n", usb_endpoint_maxp(ep->desc)); ep 62 drivers/usb/core/endpoint.c struct ep_device *ep = to_ep_device(dev); ep 65 drivers/usb/core/endpoint.c switch (usb_endpoint_type(ep->desc)) { ep 86 drivers/usb/core/endpoint.c struct ep_device *ep = to_ep_device(dev); ep 91 drivers/usb/core/endpoint.c in = (ep->desc->bEndpointAddress & USB_DIR_IN); ep 93 drivers/usb/core/endpoint.c switch (usb_endpoint_type(ep->desc)) { ep 95 drivers/usb/core/endpoint.c if (ep->udev->speed == USB_SPEED_HIGH) ep 97 drivers/usb/core/endpoint.c interval = ep->desc->bInterval; ep 101 drivers/usb/core/endpoint.c interval = 1 << (ep->desc->bInterval - 1); ep 105 drivers/usb/core/endpoint.c if (ep->udev->speed == USB_SPEED_HIGH && !in) ep 107 drivers/usb/core/endpoint.c interval = ep->desc->bInterval; ep 111 drivers/usb/core/endpoint.c if (ep->udev->speed == USB_SPEED_HIGH) ep 112 drivers/usb/core/endpoint.c interval = 1 << (ep->desc->bInterval - 1); ep 114 drivers/usb/core/endpoint.c interval = ep->desc->bInterval; ep 117 drivers/usb/core/endpoint.c interval *= (ep->udev->speed == USB_SPEED_HIGH) ? 125 : 1000; ep 132 drivers/usb/core/endpoint.c struct ep_device *ep = to_ep_device(dev); ep 135 drivers/usb/core/endpoint.c if (usb_endpoint_xfer_control(ep->desc)) ep 137 drivers/usb/core/endpoint.c else if (usb_endpoint_dir_in(ep->desc)) ep 838 drivers/usb/core/hcd.c if (usb_endpoint_xfer_int(&urb->ep->desc)) ep 840 drivers/usb/core/hcd.c if (usb_endpoint_xfer_control(&urb->ep->desc)) ep 860 drivers/usb/core/hcd.c if (usb_endpoint_num(&urb->ep->desc) == 0) { /* Control URB */ ep 1156 drivers/usb/core/hcd.c if (unlikely(!urb->ep->enabled)) { ep 1172 drivers/usb/core/hcd.c list_add_tail(&urb->urb_list, &urb->ep->urb_list); ep 1208 drivers/usb/core/hcd.c list_for_each(tmp, &urb->ep->urb_list) { ep 1409 drivers/usb/core/hcd.c if (usb_endpoint_xfer_control(&urb->ep->desc)) { ep 1460 drivers/usb/core/hcd.c if (usb_endpoint_xfer_isoc(&urb->ep->desc)) { ep 1679 drivers/usb/core/hcd.c bh->completing_ep = urb->ep; ep 1752 drivers/usb/core/hcd.c struct usb_host_endpoint *ep) ep 1757 drivers/usb/core/hcd.c if (!ep) ep 1765 drivers/usb/core/hcd.c list_for_each_entry_reverse(urb, &ep->urb_list, urb_list) { ep 1778 drivers/usb/core/hcd.c urb, usb_endpoint_num(&ep->desc), ep 1780 drivers/usb/core/hcd.c usb_ep_type_string(usb_endpoint_type(&ep->desc))); ep 1790 drivers/usb/core/hcd.c while (!list_empty (&ep->urb_list)) { ep 1795 drivers/usb/core/hcd.c if (!list_empty (&ep->urb_list)) { ep 1796 drivers/usb/core/hcd.c urb = list_entry (ep->urb_list.prev, struct urb, ep 1839 drivers/usb/core/hcd.c struct usb_host_endpoint *ep; ep 1848 drivers/usb/core/hcd.c ep = udev->ep_out[i]; ep 1849 drivers/usb/core/hcd.c if (ep) ep 1850 drivers/usb/core/hcd.c hcd->driver->drop_endpoint(hcd, udev, ep); ep 1851 drivers/usb/core/hcd.c ep = udev->ep_in[i]; ep 1852 drivers/usb/core/hcd.c if (ep) ep 1853 drivers/usb/core/hcd.c hcd->driver->drop_endpoint(hcd, udev, ep); ep 1869 drivers/usb/core/hcd.c ep = udev->ep_out[i]; ep 1870 drivers/usb/core/hcd.c if (ep) { ep 1871 drivers/usb/core/hcd.c ret = hcd->driver->drop_endpoint(hcd, udev, ep); ep 1875 drivers/usb/core/hcd.c ep = udev->ep_in[i]; ep 1876 drivers/usb/core/hcd.c if (ep) { ep 1877 drivers/usb/core/hcd.c ret = hcd->driver->drop_endpoint(hcd, udev, ep); ep 1953 drivers/usb/core/hcd.c struct usb_host_endpoint *ep) ep 1960 drivers/usb/core/hcd.c hcd->driver->endpoint_disable(hcd, ep); ep 1972 drivers/usb/core/hcd.c struct usb_host_endpoint *ep) ep 1977 drivers/usb/core/hcd.c hcd->driver->endpoint_reset(hcd, ep); ep 1979 drivers/usb/core/hcd.c int epnum = usb_endpoint_num(&ep->desc); ep 1980 drivers/usb/core/hcd.c int is_out = usb_endpoint_dir_out(&ep->desc); ep 1981 drivers/usb/core/hcd.c int is_control = usb_endpoint_xfer_control(&ep->desc); ep 803 drivers/usb/core/hub.c (drv->clear_tt_buffer_complete)(clear->hcd, clear->ep); ep 888 drivers/usb/core/hub.c clear->ep = urb->ep; ep 69 drivers/usb/core/message.c usb_endpoint_num(&urb->ep->desc), ep 233 drivers/usb/core/message.c struct usb_host_endpoint *ep; ep 235 drivers/usb/core/message.c ep = usb_pipe_endpoint(usb_dev, pipe); ep 236 drivers/usb/core/message.c if (!ep || len < 0) ep 243 drivers/usb/core/message.c if ((ep->desc.bmAttributes & USB_ENDPOINT_XFERTYPE_MASK) == ep 248 drivers/usb/core/message.c ep->desc.bInterval); ep 295 drivers/usb/core/message.c usb_endpoint_num(&urb->ep->desc), ep 1139 drivers/usb/core/message.c struct usb_host_endpoint *ep; ep 1145 drivers/usb/core/message.c ep = dev->ep_out[epnum]; ep 1149 drivers/usb/core/message.c ep = dev->ep_in[epnum]; ep 1153 drivers/usb/core/message.c if (ep) { ep 1154 drivers/usb/core/message.c ep->enabled = 0; ep 1155 drivers/usb/core/message.c usb_hcd_flush_endpoint(dev, ep); ep 1157 drivers/usb/core/message.c usb_hcd_disable_endpoint(dev, ep); ep 1173 drivers/usb/core/message.c struct usb_host_endpoint *ep; ep 1176 drivers/usb/core/message.c ep = dev->ep_out[epnum]; ep 1178 drivers/usb/core/message.c ep = dev->ep_in[epnum]; ep 1179 drivers/usb/core/message.c if (ep) ep 1180 drivers/usb/core/message.c usb_hcd_reset_endpoint(dev, ep); ep 1293 drivers/usb/core/message.c void usb_enable_endpoint(struct usb_device *dev, struct usb_host_endpoint *ep, ep 1296 drivers/usb/core/message.c int epnum = usb_endpoint_num(&ep->desc); ep 1297 drivers/usb/core/message.c int is_out = usb_endpoint_dir_out(&ep->desc); ep 1298 drivers/usb/core/message.c int is_control = usb_endpoint_xfer_control(&ep->desc); ep 1301 drivers/usb/core/message.c usb_hcd_reset_endpoint(dev, ep); ep 1303 drivers/usb/core/message.c dev->ep_out[epnum] = ep; ep 1305 drivers/usb/core/message.c dev->ep_in[epnum] = ep; ep 1306 drivers/usb/core/message.c ep->enabled = 1; ep 204 drivers/usb/core/urb.c const struct usb_host_endpoint *ep; ep 206 drivers/usb/core/urb.c ep = usb_pipe_endpoint(urb->dev, urb->pipe); ep 207 drivers/usb/core/urb.c if (!ep) ep 209 drivers/usb/core/urb.c if (usb_pipetype(urb->pipe) != pipetypes[usb_endpoint_type(&ep->desc)]) ep 356 drivers/usb/core/urb.c struct usb_host_endpoint *ep; ep 375 drivers/usb/core/urb.c ep = usb_pipe_endpoint(dev, urb->pipe); ep 376 drivers/usb/core/urb.c if (!ep) ep 379 drivers/usb/core/urb.c urb->ep = ep; ep 386 drivers/usb/core/urb.c xfertype = usb_endpoint_type(&ep->desc); ep 396 drivers/usb/core/urb.c is_out = usb_endpoint_dir_out(&ep->desc); ep 410 drivers/usb/core/urb.c max = usb_endpoint_maxp(&ep->desc); ep 414 drivers/usb/core/urb.c usb_endpoint_num(&ep->desc), is_out ? "out" : "in", ep 430 drivers/usb/core/urb.c int burst = 1 + ep->ss_ep_comp.bMaxBurst; ep 431 drivers/usb/core/urb.c int mult = USB_SS_MULT(ep->ss_ep_comp.bmAttributes); ep 437 drivers/usb/core/urb.c USB_SS_SSP_ISOC_COMP(ep->ss_ep_comp.bmAttributes)) { ep 440 drivers/usb/core/urb.c isoc_ep_comp = &ep->ssp_isoc_ep_comp; ep 446 drivers/usb/core/urb.c max *= usb_endpoint_maxp_mult(&ep->desc); ep 655 drivers/usb/core/urb.c if (!urb->ep) ep 691 drivers/usb/core/urb.c if (!(urb && urb->dev && urb->ep)) ep 736 drivers/usb/core/urb.c if (!urb->dev || !urb->ep) ep 24 drivers/usb/core/usb.h struct usb_host_endpoint *ep, bool reset_toggle); ep 150 drivers/usb/dwc2/core.h struct usb_ep ep; ep 226 drivers/usb/dwc2/debugfs.c struct dwc2_hsotg_ep *ep = seq->private; ep 227 drivers/usb/dwc2/debugfs.c struct dwc2_hsotg *hsotg = ep->parent; ep 229 drivers/usb/dwc2/debugfs.c int index = ep->index; ep 234 drivers/usb/dwc2/debugfs.c ep->index, ep->ep.name, decode_direction(ep->dir_in)); ep 255 drivers/usb/dwc2/debugfs.c seq_printf(seq, "mps %d\n", ep->ep.maxpacket); ep 256 drivers/usb/dwc2/debugfs.c seq_printf(seq, "total_data=%ld\n", ep->total_data); ep 259 drivers/usb/dwc2/debugfs.c ep->queue.next, ep->queue.prev); ep 263 drivers/usb/dwc2/debugfs.c list_for_each_entry(req, &ep->queue, queue) { ep 270 drivers/usb/dwc2/debugfs.c req == ep->req ? '*' : ' ', ep 280 drivers/usb/dwc2/debugfs.c DEFINE_SHOW_ATTRIBUTE(ep); ep 305 drivers/usb/dwc2/debugfs.c struct dwc2_hsotg_ep *ep; ep 307 drivers/usb/dwc2/debugfs.c ep = hsotg->eps_out[epidx]; ep 308 drivers/usb/dwc2/debugfs.c if (ep) ep 309 drivers/usb/dwc2/debugfs.c debugfs_create_file(ep->name, 0444, root, ep, &ep_fops); ep 313 drivers/usb/dwc2/debugfs.c struct dwc2_hsotg_ep *ep; ep 315 drivers/usb/dwc2/debugfs.c ep = hsotg->eps_in[epidx]; ep 316 drivers/usb/dwc2/debugfs.c if (ep) ep 317 drivers/usb/dwc2/debugfs.c debugfs_create_file(ep->name, 0444, root, ep, &ep_fops); ep 42 drivers/usb/dwc2/gadget.c static inline struct dwc2_hsotg_ep *our_ep(struct usb_ep *ep) ep 44 drivers/usb/dwc2/gadget.c return container_of(ep, struct dwc2_hsotg_ep, ep); ep 190 drivers/usb/dwc2/gadget.c unsigned int ep, unsigned int dir_in, ep 194 drivers/usb/dwc2/gadget.c u32 bit = 1 << ep; ep 298 drivers/usb/dwc2/gadget.c unsigned int ep; ep 331 drivers/usb/dwc2/gadget.c for (ep = 1; ep < MAX_EPS_CHANNELS; ep++) { ep 332 drivers/usb/dwc2/gadget.c if (!txfsz[ep]) ep 335 drivers/usb/dwc2/gadget.c val |= txfsz[ep] << FIFOSIZE_DEPTH_SHIFT; ep 336 drivers/usb/dwc2/gadget.c WARN_ONCE(addr + txfsz[ep] > hsotg->fifo_mem, ep 338 drivers/usb/dwc2/gadget.c addr += txfsz[ep]; ep 340 drivers/usb/dwc2/gadget.c dwc2_writel(hsotg, val, DPTXFSIZN(ep)); ep 341 drivers/usb/dwc2/gadget.c val = dwc2_readl(hsotg, DPTXFSIZN(ep)); ep 383 drivers/usb/dwc2/gadget.c static struct usb_request *dwc2_hsotg_ep_alloc_request(struct usb_ep *ep, ep 571 drivers/usb/dwc2/gadget.c max_transfer = hs_ep->ep.maxpacket * hs_ep->mc; ep 681 drivers/usb/dwc2/gadget.c if ((maxpkt * hs_ep->ep.maxpacket) < maxsize) ep 682 drivers/usb/dwc2/gadget.c maxsize = maxpkt * hs_ep->ep.maxpacket; ep 745 drivers/usb/dwc2/gadget.c u32 mps = hs_ep->ep.maxpacket; ep 778 drivers/usb/dwc2/gadget.c u32 mps = hs_ep->ep.maxpacket; ep 917 drivers/usb/dwc2/gadget.c pid = DIV_ROUND_UP(len, hs_ep->ep.maxpacket); ep 922 drivers/usb/dwc2/gadget.c ((len % hs_ep->ep.maxpacket) ? ep 1069 drivers/usb/dwc2/gadget.c int round = maxreq % hs_ep->ep.maxpacket; ep 1082 drivers/usb/dwc2/gadget.c packets = DIV_ROUND_UP(length, hs_ep->ep.maxpacket); ep 1100 drivers/usb/dwc2/gadget.c if ((ureq->length >= hs_ep->ep.maxpacket) && ep 1101 drivers/usb/dwc2/gadget.c !(ureq->length % hs_ep->ep.maxpacket)) ep 1116 drivers/usb/dwc2/gadget.c u32 mps = hs_ep->ep.maxpacket; ep 1259 drivers/usb/dwc2/gadget.c hs_ep->ep.name, req_buf, hs_req->req.length); ep 1288 drivers/usb/dwc2/gadget.c hs_ep->ep.name, hs_req->req.status, hs_req->req.actual); ep 1361 drivers/usb/dwc2/gadget.c static int dwc2_hsotg_ep_queue(struct usb_ep *ep, struct usb_request *req, ep 1365 drivers/usb/dwc2/gadget.c struct dwc2_hsotg_ep *hs_ep = our_ep(ep); ep 1374 drivers/usb/dwc2/gadget.c ep->name, req, req->length, req->buf, req->no_interrupt, ep 1391 drivers/usb/dwc2/gadget.c req->length > (hs_ep->mc * hs_ep->ep.maxpacket)) { ep 1407 drivers/usb/dwc2/gadget.c if (!hs_ep->dir_in && req->length > hs_ep->ep.maxpacket) { ep 1409 drivers/usb/dwc2/gadget.c req->length, hs_ep->ep.maxpacket); ep 1481 drivers/usb/dwc2/gadget.c static int dwc2_hsotg_ep_queue_lock(struct usb_ep *ep, struct usb_request *req, ep 1484 drivers/usb/dwc2/gadget.c struct dwc2_hsotg_ep *hs_ep = our_ep(ep); ep 1490 drivers/usb/dwc2/gadget.c ret = dwc2_hsotg_ep_queue(ep, req, gfp_flags); ep 1496 drivers/usb/dwc2/gadget.c static void dwc2_hsotg_ep_free_request(struct usb_ep *ep, ep 1512 drivers/usb/dwc2/gadget.c static void dwc2_hsotg_complete_oursetup(struct usb_ep *ep, ep 1515 drivers/usb/dwc2/gadget.c struct dwc2_hsotg_ep *hs_ep = our_ep(ep); ep 1518 drivers/usb/dwc2/gadget.c dev_dbg(hsotg->dev, "%s: ep %p, req %p\n", __func__, ep, req); ep 1520 drivers/usb/dwc2/gadget.c dwc2_hsotg_ep_free_request(ep, req); ep 1534 drivers/usb/dwc2/gadget.c struct dwc2_hsotg_ep *ep; ep 1544 drivers/usb/dwc2/gadget.c ep = index_to_ep(hsotg, idx, dir); ep 1546 drivers/usb/dwc2/gadget.c if (idx && ep->dir_in != dir) ep 1549 drivers/usb/dwc2/gadget.c return ep; ep 1589 drivers/usb/dwc2/gadget.c struct dwc2_hsotg_ep *ep, ep 1598 drivers/usb/dwc2/gadget.c req = dwc2_hsotg_ep_alloc_request(&ep->ep, GFP_ATOMIC); ep 1617 drivers/usb/dwc2/gadget.c ret = dwc2_hsotg_ep_queue(&ep->ep, req, GFP_ATOMIC); ep 1635 drivers/usb/dwc2/gadget.c struct dwc2_hsotg_ep *ep; ep 1661 drivers/usb/dwc2/gadget.c ep = ep_from_windex(hsotg, le16_to_cpu(ctrl->wIndex)); ep 1662 drivers/usb/dwc2/gadget.c if (!ep) ep 1665 drivers/usb/dwc2/gadget.c reply = cpu_to_le16(ep->halted ? 1 : 0); ep 1684 drivers/usb/dwc2/gadget.c static int dwc2_hsotg_ep_sethalt(struct usb_ep *ep, int value, bool now); ep 1745 drivers/usb/dwc2/gadget.c struct dwc2_hsotg_ep *ep; ep 1790 drivers/usb/dwc2/gadget.c ep = ep_from_windex(hsotg, wIndex); ep 1791 drivers/usb/dwc2/gadget.c if (!ep) { ep 1799 drivers/usb/dwc2/gadget.c halted = ep->halted; ep 1801 drivers/usb/dwc2/gadget.c dwc2_hsotg_ep_sethalt(&ep->ep, set, true); ep 1820 drivers/usb/dwc2/gadget.c if (ep->req) { ep 1821 drivers/usb/dwc2/gadget.c hs_req = ep->req; ep 1822 drivers/usb/dwc2/gadget.c ep->req = NULL; ep 1827 drivers/usb/dwc2/gadget.c &ep->ep, &hs_req->req); ep 1833 drivers/usb/dwc2/gadget.c if (!ep->req) ep 1834 drivers/usb/dwc2/gadget.c dwc2_gadget_start_next_request(ep); ep 1976 drivers/usb/dwc2/gadget.c static void dwc2_hsotg_complete_setup(struct usb_ep *ep, ep 1979 drivers/usb/dwc2/gadget.c struct dwc2_hsotg_ep *hs_ep = our_ep(ep); ep 2024 drivers/usb/dwc2/gadget.c ret = dwc2_hsotg_ep_queue(&hsotg->eps_out[0]->ep, req, GFP_ATOMIC); ep 2093 drivers/usb/dwc2/gadget.c hs_ep, hs_ep->ep.name, hs_req, result, hs_req->req.complete); ep 2118 drivers/usb/dwc2/gadget.c usb_gadget_giveback_request(&hs_ep->ep, &hs_req->req); ep 2554 drivers/usb/dwc2/gadget.c unsigned int ep, unsigned int mps, ep 2560 drivers/usb/dwc2/gadget.c hs_ep = index_to_ep(hsotg, ep, dir_in); ep 2564 drivers/usb/dwc2/gadget.c if (ep == 0) { ep 2571 drivers/usb/dwc2/gadget.c hs_ep->ep.maxpacket = mps_bytes; ep 2579 drivers/usb/dwc2/gadget.c hs_ep->ep.maxpacket = mps; ep 2583 drivers/usb/dwc2/gadget.c reg = dwc2_readl(hsotg, DIEPCTL(ep)); ep 2586 drivers/usb/dwc2/gadget.c dwc2_writel(hsotg, reg, DIEPCTL(ep)); ep 2588 drivers/usb/dwc2/gadget.c reg = dwc2_readl(hsotg, DOEPCTL(ep)); ep 2591 drivers/usb/dwc2/gadget.c dwc2_writel(hsotg, reg, DOEPCTL(ep)); ep 2597 drivers/usb/dwc2/gadget.c dev_err(hsotg->dev, "ep%d: bad mps of %d\n", ep, mps); ep 2856 drivers/usb/dwc2/gadget.c static void dwc2_gadget_handle_out_token_ep_disabled(struct dwc2_hsotg_ep *ep) ep 2858 drivers/usb/dwc2/gadget.c struct dwc2_hsotg *hsotg = ep->parent; ep 2859 drivers/usb/dwc2/gadget.c int dir_in = ep->dir_in; ep 2862 drivers/usb/dwc2/gadget.c if (dir_in || !ep->isochronous) ep 2866 drivers/usb/dwc2/gadget.c if (ep->target_frame == TARGET_FRAME_INITIAL) { ep 2868 drivers/usb/dwc2/gadget.c ep->target_frame = hsotg->frame_number; ep 2869 drivers/usb/dwc2/gadget.c dwc2_gadget_start_isoc_ddma(ep); ep 2874 drivers/usb/dwc2/gadget.c if (ep->interval > 1 && ep 2875 drivers/usb/dwc2/gadget.c ep->target_frame == TARGET_FRAME_INITIAL) { ep 2878 drivers/usb/dwc2/gadget.c ep->target_frame = hsotg->frame_number; ep 2879 drivers/usb/dwc2/gadget.c dwc2_gadget_incr_frame_num(ep); ep 2881 drivers/usb/dwc2/gadget.c ctrl = dwc2_readl(hsotg, DOEPCTL(ep->index)); ep 2882 drivers/usb/dwc2/gadget.c if (ep->target_frame & 0x1) ep 2887 drivers/usb/dwc2/gadget.c dwc2_writel(hsotg, ctrl, DOEPCTL(ep->index)); ep 2890 drivers/usb/dwc2/gadget.c dwc2_gadget_start_next_request(ep); ep 3230 drivers/usb/dwc2/gadget.c struct dwc2_hsotg_ep *ep, ep 3235 drivers/usb/dwc2/gadget.c ep->req = NULL; ep 3237 drivers/usb/dwc2/gadget.c while (!list_empty(&ep->queue)) { ep 3238 drivers/usb/dwc2/gadget.c struct dwc2_hsotg_req *req = get_ep_head(ep); ep 3240 drivers/usb/dwc2/gadget.c dwc2_hsotg_complete_request(hsotg, ep, req, result); ep 3245 drivers/usb/dwc2/gadget.c size = (dwc2_readl(hsotg, DTXFSTS(ep->fifo_index)) & 0xffff) * 4; ep 3246 drivers/usb/dwc2/gadget.c if (size < ep->fifo_size) ep 3247 drivers/usb/dwc2/gadget.c dwc2_hsotg_txfifo_flush(hsotg, ep->fifo_index); ep 3260 drivers/usb/dwc2/gadget.c unsigned int ep; ep 3269 drivers/usb/dwc2/gadget.c for (ep = 0; ep < hsotg->num_of_eps; ep++) { ep 3270 drivers/usb/dwc2/gadget.c if (hsotg->eps_in[ep]) ep 3271 drivers/usb/dwc2/gadget.c kill_all_requests(hsotg, hsotg->eps_in[ep], ep 3273 drivers/usb/dwc2/gadget.c if (hsotg->eps_out[ep]) ep 3274 drivers/usb/dwc2/gadget.c kill_all_requests(hsotg, hsotg->eps_out[ep], ep 3291 drivers/usb/dwc2/gadget.c struct dwc2_hsotg_ep *ep; ep 3296 drivers/usb/dwc2/gadget.c ep = index_to_ep(hsotg, epno, 1); ep 3298 drivers/usb/dwc2/gadget.c if (!ep) ep 3301 drivers/usb/dwc2/gadget.c if (!ep->dir_in) ep 3304 drivers/usb/dwc2/gadget.c if ((periodic && !ep->periodic) || ep 3305 drivers/usb/dwc2/gadget.c (!periodic && ep->periodic)) ep 3308 drivers/usb/dwc2/gadget.c ret = dwc2_hsotg_trytx(hsotg, ep); ep 3319 drivers/usb/dwc2/gadget.c static int dwc2_hsotg_ep_disable(struct usb_ep *ep); ep 3334 drivers/usb/dwc2/gadget.c int ep; ep 3344 drivers/usb/dwc2/gadget.c for (ep = 1; ep < hsotg->num_of_eps; ep++) { ep 3345 drivers/usb/dwc2/gadget.c if (hsotg->eps_in[ep]) ep 3346 drivers/usb/dwc2/gadget.c dwc2_hsotg_ep_disable(&hsotg->eps_in[ep]->ep); ep 3347 drivers/usb/dwc2/gadget.c if (hsotg->eps_out[ep]) ep 3348 drivers/usb/dwc2/gadget.c dwc2_hsotg_ep_disable(&hsotg->eps_out[ep]->ep); ep 3500 drivers/usb/dwc2/gadget.c dwc2_writel(hsotg, dwc2_hsotg_ep0_mps(hsotg->eps_out[0]->ep.maxpacket) | ep 3506 drivers/usb/dwc2/gadget.c dwc2_writel(hsotg, dwc2_hsotg_ep0_mps(hsotg->eps_out[0]->ep.maxpacket) | ep 3709 drivers/usb/dwc2/gadget.c int ep; ep 3717 drivers/usb/dwc2/gadget.c for (ep = 0; ep < hsotg->num_of_eps && daint_out; ep 3718 drivers/usb/dwc2/gadget.c ep++, daint_out >>= 1) { ep 3720 drivers/usb/dwc2/gadget.c dwc2_hsotg_epint(hsotg, ep, 0); ep 3723 drivers/usb/dwc2/gadget.c for (ep = 0; ep < hsotg->num_of_eps && daint_in; ep 3724 drivers/usb/dwc2/gadget.c ep++, daint_in >>= 1) { ep 3726 drivers/usb/dwc2/gadget.c dwc2_hsotg_epint(hsotg, ep, 1); ep 3921 drivers/usb/dwc2/gadget.c static int dwc2_hsotg_ep_enable(struct usb_ep *ep, ep 3924 drivers/usb/dwc2/gadget.c struct dwc2_hsotg_ep *hs_ep = our_ep(ep); ep 3941 drivers/usb/dwc2/gadget.c __func__, ep->name, desc->bEndpointAddress, desc->bmAttributes, ep 4069 drivers/usb/dwc2/gadget.c size = hs_ep->ep.maxpacket * hs_ep->mc; ep 4149 drivers/usb/dwc2/gadget.c static int dwc2_hsotg_ep_disable(struct usb_ep *ep) ep 4151 drivers/usb/dwc2/gadget.c struct dwc2_hsotg_ep *hs_ep = our_ep(ep); ep 4158 drivers/usb/dwc2/gadget.c dev_dbg(hsotg->dev, "%s(ep %p)\n", __func__, ep); ep 4160 drivers/usb/dwc2/gadget.c if (ep == &hsotg->eps_out[0]->ep) { ep 4197 drivers/usb/dwc2/gadget.c static int dwc2_hsotg_ep_disable_lock(struct usb_ep *ep) ep 4199 drivers/usb/dwc2/gadget.c struct dwc2_hsotg_ep *hs_ep = our_ep(ep); ep 4205 drivers/usb/dwc2/gadget.c ret = dwc2_hsotg_ep_disable(ep); ep 4215 drivers/usb/dwc2/gadget.c static bool on_list(struct dwc2_hsotg_ep *ep, struct dwc2_hsotg_req *test) ep 4219 drivers/usb/dwc2/gadget.c list_for_each_entry_safe(req, treq, &ep->queue, queue) { ep 4232 drivers/usb/dwc2/gadget.c static int dwc2_hsotg_ep_dequeue(struct usb_ep *ep, struct usb_request *req) ep 4235 drivers/usb/dwc2/gadget.c struct dwc2_hsotg_ep *hs_ep = our_ep(ep); ep 4239 drivers/usb/dwc2/gadget.c dev_dbg(hs->dev, "ep_dequeue(%p,%p)\n", ep, req); ep 4268 drivers/usb/dwc2/gadget.c static int dwc2_hsotg_ep_sethalt(struct usb_ep *ep, int value, bool now) ep 4270 drivers/usb/dwc2/gadget.c struct dwc2_hsotg_ep *hs_ep = our_ep(ep); ep 4277 drivers/usb/dwc2/gadget.c dev_info(hs->dev, "%s(ep %p %s, %d)\n", __func__, ep, ep->name, value); ep 4289 drivers/usb/dwc2/gadget.c dev_err(hs->dev, "%s is Isochronous Endpoint\n", ep->name); ep 4295 drivers/usb/dwc2/gadget.c ep->name); ep 4341 drivers/usb/dwc2/gadget.c static int dwc2_hsotg_ep_sethalt_lock(struct usb_ep *ep, int value) ep 4343 drivers/usb/dwc2/gadget.c struct dwc2_hsotg_ep *hs_ep = our_ep(ep); ep 4349 drivers/usb/dwc2/gadget.c ret = dwc2_hsotg_ep_sethalt(ep, value, false); ep 4477 drivers/usb/dwc2/gadget.c int ep; ep 4483 drivers/usb/dwc2/gadget.c for (ep = 1; ep < hsotg->num_of_eps; ep++) { ep 4484 drivers/usb/dwc2/gadget.c if (hsotg->eps_in[ep]) ep 4485 drivers/usb/dwc2/gadget.c dwc2_hsotg_ep_disable_lock(&hsotg->eps_in[ep]->ep); ep 4486 drivers/usb/dwc2/gadget.c if (hsotg->eps_out[ep]) ep 4487 drivers/usb/dwc2/gadget.c dwc2_hsotg_ep_disable_lock(&hsotg->eps_out[ep]->ep); ep 4647 drivers/usb/dwc2/gadget.c INIT_LIST_HEAD(&hs_ep->ep.ep_list); ep 4651 drivers/usb/dwc2/gadget.c list_add_tail(&hs_ep->ep.ep_list, &hsotg->gadget.ep_list); ep 4654 drivers/usb/dwc2/gadget.c hs_ep->ep.name = hs_ep->name; ep 4657 drivers/usb/dwc2/gadget.c usb_ep_set_maxpacket_limit(&hs_ep->ep, 8); ep 4659 drivers/usb/dwc2/gadget.c usb_ep_set_maxpacket_limit(&hs_ep->ep, ep 4661 drivers/usb/dwc2/gadget.c hs_ep->ep.ops = &dwc2_hsotg_ep_ops; ep 4664 drivers/usb/dwc2/gadget.c hs_ep->ep.caps.type_control = true; ep 4667 drivers/usb/dwc2/gadget.c hs_ep->ep.caps.type_iso = true; ep 4668 drivers/usb/dwc2/gadget.c hs_ep->ep.caps.type_bulk = true; ep 4670 drivers/usb/dwc2/gadget.c hs_ep->ep.caps.type_int = true; ep 4674 drivers/usb/dwc2/gadget.c hs_ep->ep.caps.dir_in = true; ep 4676 drivers/usb/dwc2/gadget.c hs_ep->ep.caps.dir_out = true; ep 4868 drivers/usb/dwc2/gadget.c hsotg->gadget.ep0 = &hsotg->eps_out[0]->ep; ep 4872 drivers/usb/dwc2/gadget.c hsotg->ctrl_req = dwc2_hsotg_ep_alloc_request(&hsotg->eps_out[0]->ep, ep 4891 drivers/usb/dwc2/gadget.c dwc2_hsotg_ep_free_request(&hsotg->eps_out[0]->ep, ep 4908 drivers/usb/dwc2/gadget.c dwc2_hsotg_ep_free_request(&hsotg->eps_out[0]->ep, hsotg->ctrl_req); ep 4921 drivers/usb/dwc2/gadget.c int ep; ep 4933 drivers/usb/dwc2/gadget.c for (ep = 0; ep < hsotg->num_of_eps; ep++) { ep 4934 drivers/usb/dwc2/gadget.c if (hsotg->eps_in[ep]) ep 4935 drivers/usb/dwc2/gadget.c dwc2_hsotg_ep_disable_lock(&hsotg->eps_in[ep]->ep); ep 4936 drivers/usb/dwc2/gadget.c if (hsotg->eps_out[ep]) ep 4937 drivers/usb/dwc2/gadget.c dwc2_hsotg_ep_disable_lock(&hsotg->eps_out[ep]->ep); ep 1997 drivers/usb/dwc2/hcd.c struct usb_host_endpoint *ep, int retry) ep 2006 drivers/usb/dwc2/hcd.c qh = ep->hcpriv; ep 2023 drivers/usb/dwc2/hcd.c qh = ep->hcpriv; ep 2036 drivers/usb/dwc2/hcd.c ep->hcpriv = NULL; ep 2048 drivers/usb/dwc2/hcd.c ep->hcpriv = NULL; ep 2056 drivers/usb/dwc2/hcd.c struct usb_host_endpoint *ep) ep 2058 drivers/usb/dwc2/hcd.c struct dwc2_qh *qh = ep->hcpriv; ep 4152 drivers/usb/dwc2/hcd.c struct usb_host_endpoint *ep = urb->ep; ep 4154 drivers/usb/dwc2/hcd.c if (ep) ep 4156 drivers/usb/dwc2/hcd.c dwc2_hcd_get_ep_bandwidth(hsotg, ep), ep 4521 drivers/usb/dwc2/hcd.c usb_endpoint_maxp(&urb->ep->desc), ep 4522 drivers/usb/dwc2/hcd.c usb_endpoint_maxp_mult(&urb->ep->desc)); ep 4554 drivers/usb/dwc2/hcd.c struct usb_host_endpoint *ep = urb->ep; ep 4572 drivers/usb/dwc2/hcd.c if (!ep) ep 4578 drivers/usb/dwc2/hcd.c if (!dwc2_hcd_is_bandwidth_allocated(hsotg, ep)) ep 4606 drivers/usb/dwc2/hcd.c usb_endpoint_maxp(&ep->desc), ep 4607 drivers/usb/dwc2/hcd.c usb_endpoint_maxp_mult(&ep->desc)); ep 4642 drivers/usb/dwc2/hcd.c qh = (struct dwc2_qh *)ep->hcpriv; ep 4650 drivers/usb/dwc2/hcd.c ep->hcpriv = qh; ep 4671 drivers/usb/dwc2/hcd.c dwc2_hcd_get_ep_bandwidth(hsotg, ep), ep 4692 drivers/usb/dwc2/hcd.c ep->hcpriv = NULL; ep 4756 drivers/usb/dwc2/hcd.c struct usb_host_endpoint *ep) ep 4762 drivers/usb/dwc2/hcd.c ep->desc.bEndpointAddress, ep->hcpriv); ep 4763 drivers/usb/dwc2/hcd.c dwc2_hcd_endpoint_disable(hsotg, ep, 250); ep 4772 drivers/usb/dwc2/hcd.c struct usb_host_endpoint *ep) ep 4779 drivers/usb/dwc2/hcd.c ep->desc.bEndpointAddress); ep 4782 drivers/usb/dwc2/hcd.c dwc2_hcd_endpoint_reset(hsotg, ep); ep 4825 drivers/usb/dwc2/hcd.c struct usb_host_endpoint *ep) ep 4831 drivers/usb/dwc2/hcd.c qh = ep->hcpriv; ep 735 drivers/usb/dwc2/hcd.h struct usb_host_endpoint *ep) ep 737 drivers/usb/dwc2/hcd.h struct dwc2_qh *qh = ep->hcpriv; ep 746 drivers/usb/dwc2/hcd.h struct usb_host_endpoint *ep) ep 748 drivers/usb/dwc2/hcd.h struct dwc2_qh *qh = ep->hcpriv; ep 188 drivers/usb/dwc3/ep0.c int dwc3_gadget_ep0_queue(struct usb_ep *ep, struct usb_request *request, ep 192 drivers/usb/dwc3/ep0.c struct dwc3_ep *dep = to_dwc3_ep(ep); ep 246 drivers/usb/dwc3/ep0.c int __dwc3_gadget_ep0_set_halt(struct usb_ep *ep, int value) ep 248 drivers/usb/dwc3/ep0.c struct dwc3_ep *dep = to_dwc3_ep(ep); ep 256 drivers/usb/dwc3/ep0.c int dwc3_gadget_ep0_set_halt(struct usb_ep *ep, int value) ep 258 drivers/usb/dwc3/ep0.c struct dwc3_ep *dep = to_dwc3_ep(ep); ep 264 drivers/usb/dwc3/ep0.c ret = __dwc3_gadget_ep0_set_halt(ep, value); ep 301 drivers/usb/dwc3/ep0.c static void dwc3_ep0_status_cmpl(struct usb_ep *ep, struct usb_request *req) ep 653 drivers/usb/dwc3/ep0.c static void dwc3_ep0_set_sel_cmpl(struct usb_ep *ep, struct usb_request *req) ep 655 drivers/usb/dwc3/ep0.c struct dwc3_ep *dep = to_dwc3_ep(ep); ep 760 drivers/usb/dwc3/gadget.c static int dwc3_gadget_ep0_enable(struct usb_ep *ep, ep 766 drivers/usb/dwc3/gadget.c static int dwc3_gadget_ep0_disable(struct usb_ep *ep) ep 773 drivers/usb/dwc3/gadget.c static int dwc3_gadget_ep_enable(struct usb_ep *ep, ep 781 drivers/usb/dwc3/gadget.c if (!ep || !desc || desc->bDescriptorType != USB_DT_ENDPOINT) { ep 791 drivers/usb/dwc3/gadget.c dep = to_dwc3_ep(ep); ep 806 drivers/usb/dwc3/gadget.c static int dwc3_gadget_ep_disable(struct usb_ep *ep) ep 813 drivers/usb/dwc3/gadget.c if (!ep) { ep 818 drivers/usb/dwc3/gadget.c dep = to_dwc3_ep(ep); ep 833 drivers/usb/dwc3/gadget.c static struct usb_request *dwc3_gadget_ep_alloc_request(struct usb_ep *ep, ep 837 drivers/usb/dwc3/gadget.c struct dwc3_ep *dep = to_dwc3_ep(ep); ep 853 drivers/usb/dwc3/gadget.c static void dwc3_gadget_ep_free_request(struct usb_ep *ep, ep 954 drivers/usb/dwc3/gadget.c struct usb_ep *ep = &dep->endpoint; ep 956 drivers/usb/dwc3/gadget.c unsigned int maxp = usb_endpoint_maxp(ep->desc); ep 1486 drivers/usb/dwc3/gadget.c static int dwc3_gadget_ep_queue(struct usb_ep *ep, struct usb_request *request, ep 1490 drivers/usb/dwc3/gadget.c struct dwc3_ep *dep = to_dwc3_ep(ep); ep 1540 drivers/usb/dwc3/gadget.c static int dwc3_gadget_ep_dequeue(struct usb_ep *ep, ep 1546 drivers/usb/dwc3/gadget.c struct dwc3_ep *dep = to_dwc3_ep(ep); ep 1580 drivers/usb/dwc3/gadget.c request, ep->name); ep 1646 drivers/usb/dwc3/gadget.c static int dwc3_gadget_ep_set_halt(struct usb_ep *ep, int value) ep 1648 drivers/usb/dwc3/gadget.c struct dwc3_ep *dep = to_dwc3_ep(ep); ep 1662 drivers/usb/dwc3/gadget.c static int dwc3_gadget_ep_set_wedge(struct usb_ep *ep) ep 1664 drivers/usb/dwc3/gadget.c struct dwc3_ep *dep = to_dwc3_ep(ep); ep 1673 drivers/usb/dwc3/gadget.c ret = __dwc3_gadget_ep0_set_halt(ep, 1); ep 19 drivers/usb/dwc3/gadget.h #define to_dwc3_ep(ep) (container_of(ep, struct dwc3_ep, endpoint)) ep 109 drivers/usb/dwc3/gadget.h int __dwc3_gadget_ep0_set_halt(struct usb_ep *ep, int value); ep 110 drivers/usb/dwc3/gadget.h int dwc3_gadget_ep0_set_halt(struct usb_ep *ep, int value); ep 111 drivers/usb/dwc3/gadget.h int dwc3_gadget_ep0_queue(struct usb_ep *ep, struct usb_request *request, ep 826 drivers/usb/gadget/composite.c struct usb_endpoint_descriptor *ep; ep 832 drivers/usb/gadget/composite.c ep = (struct usb_endpoint_descriptor *)*descriptors; ep 833 drivers/usb/gadget/composite.c addr = ((ep->bEndpointAddress & 0x80) >> 3) ep 834 drivers/usb/gadget/composite.c | (ep->bEndpointAddress & 0x0f); ep 1379 drivers/usb/gadget/composite.c static void composite_setup_complete(struct usb_ep *ep, struct usb_request *req) ep 1384 drivers/usb/gadget/composite.c DBG((struct usb_composite_dev *) ep->driver_data, ep 2173 drivers/usb/gadget/composite.c struct usb_ep *ep, *tmp_ep; ep 2209 drivers/usb/gadget/composite.c list_for_each_entry_safe(ep, tmp_ep, ep 2211 drivers/usb/gadget/composite.c if (ep->ops->dispose) ep 2212 drivers/usb/gadget/composite.c ep->ops->dispose(ep); ep 69 drivers/usb/gadget/epautoconf.c struct usb_ep *ep; ep 72 drivers/usb/gadget/epautoconf.c ep = gadget->ops->match_ep(gadget, desc, ep_comp); ep 73 drivers/usb/gadget/epautoconf.c if (ep) ep 78 drivers/usb/gadget/epautoconf.c list_for_each_entry (ep, &gadget->ep_list, ep_list) { ep 79 drivers/usb/gadget/epautoconf.c if (usb_gadget_ep_match_desc(gadget, ep, desc, ep_comp)) ep 92 drivers/usb/gadget/epautoconf.c desc->wMaxPacketSize = cpu_to_le16(ep->maxpacket_limit); ep 96 drivers/usb/gadget/epautoconf.c if (isdigit(ep->name[2])) { ep 97 drivers/usb/gadget/epautoconf.c u8 num = simple_strtoul(&ep->name[2], NULL, 10); ep 109 drivers/usb/gadget/epautoconf.c ep->address = desc->bEndpointAddress; ep 110 drivers/usb/gadget/epautoconf.c ep->desc = NULL; ep 111 drivers/usb/gadget/epautoconf.c ep->comp_desc = NULL; ep 112 drivers/usb/gadget/epautoconf.c ep->claimed = true; ep 113 drivers/usb/gadget/epautoconf.c return ep; ep 154 drivers/usb/gadget/epautoconf.c struct usb_ep *ep; ep 157 drivers/usb/gadget/epautoconf.c ep = usb_ep_autoconfig_ss(gadget, desc, NULL); ep 158 drivers/usb/gadget/epautoconf.c if (!ep) ep 165 drivers/usb/gadget/epautoconf.c int size = ep->maxpacket_limit; ep 173 drivers/usb/gadget/epautoconf.c return ep; ep 187 drivers/usb/gadget/epautoconf.c void usb_ep_autoconfig_release(struct usb_ep *ep) ep 189 drivers/usb/gadget/epautoconf.c ep->claimed = false; ep 190 drivers/usb/gadget/epautoconf.c ep->driver_data = NULL; ep 205 drivers/usb/gadget/epautoconf.c struct usb_ep *ep; ep 207 drivers/usb/gadget/epautoconf.c list_for_each_entry (ep, &gadget->ep_list, ep_list) { ep 208 drivers/usb/gadget/epautoconf.c ep->claimed = false; ep 209 drivers/usb/gadget/epautoconf.c ep->driver_data = NULL; ep 305 drivers/usb/gadget/function/f_acm.c static void acm_complete_set_line_coding(struct usb_ep *ep, ep 308 drivers/usb/gadget/function/f_acm.c struct f_acm *acm = ep->driver_data; ep 321 drivers/usb/gadget/function/f_acm.c usb_ep_set_halt(ep); ep 493 drivers/usb/gadget/function/f_acm.c struct usb_ep *ep = acm->notify; ep 518 drivers/usb/gadget/function/f_acm.c status = usb_ep_queue(ep, req, GFP_ATOMIC); ep 552 drivers/usb/gadget/function/f_acm.c static void acm_cdc_notify_complete(struct usb_ep *ep, struct usb_request *req) ep 612 drivers/usb/gadget/function/f_acm.c struct usb_ep *ep; ep 649 drivers/usb/gadget/function/f_acm.c ep = usb_ep_autoconfig(cdev->gadget, &acm_fs_in_desc); ep 650 drivers/usb/gadget/function/f_acm.c if (!ep) ep 652 drivers/usb/gadget/function/f_acm.c acm->port.in = ep; ep 654 drivers/usb/gadget/function/f_acm.c ep = usb_ep_autoconfig(cdev->gadget, &acm_fs_out_desc); ep 655 drivers/usb/gadget/function/f_acm.c if (!ep) ep 657 drivers/usb/gadget/function/f_acm.c acm->port.out = ep; ep 659 drivers/usb/gadget/function/f_acm.c ep = usb_ep_autoconfig(cdev->gadget, &acm_fs_notify_desc); ep 660 drivers/usb/gadget/function/f_acm.c if (!ep) ep 662 drivers/usb/gadget/function/f_acm.c acm->notify = ep; ep 665 drivers/usb/gadget/function/f_acm.c acm->notify_req = gs_alloc_req(ep, ep 443 drivers/usb/gadget/function/f_ecm.c static void ecm_notify_complete(struct usb_ep *ep, struct usb_request *req) ep 689 drivers/usb/gadget/function/f_ecm.c struct usb_ep *ep; ep 748 drivers/usb/gadget/function/f_ecm.c ep = usb_ep_autoconfig(cdev->gadget, &fs_ecm_in_desc); ep 749 drivers/usb/gadget/function/f_ecm.c if (!ep) ep 751 drivers/usb/gadget/function/f_ecm.c ecm->port.in_ep = ep; ep 753 drivers/usb/gadget/function/f_ecm.c ep = usb_ep_autoconfig(cdev->gadget, &fs_ecm_out_desc); ep 754 drivers/usb/gadget/function/f_ecm.c if (!ep) ep 756 drivers/usb/gadget/function/f_ecm.c ecm->port.out_ep = ep; ep 762 drivers/usb/gadget/function/f_ecm.c ep = usb_ep_autoconfig(cdev->gadget, &fs_ecm_notify_desc); ep 763 drivers/usb/gadget/function/f_ecm.c if (!ep) ep 765 drivers/usb/gadget/function/f_ecm.c ecm->notify = ep; ep 770 drivers/usb/gadget/function/f_ecm.c ecm->notify_req = usb_ep_alloc_request(ep, GFP_KERNEL); ep 246 drivers/usb/gadget/function/f_eem.c struct usb_ep *ep; ep 284 drivers/usb/gadget/function/f_eem.c ep = usb_ep_autoconfig(cdev->gadget, &eem_fs_in_desc); ep 285 drivers/usb/gadget/function/f_eem.c if (!ep) ep 287 drivers/usb/gadget/function/f_eem.c eem->port.in_ep = ep; ep 289 drivers/usb/gadget/function/f_eem.c ep = usb_ep_autoconfig(cdev->gadget, &eem_fs_out_desc); ep 290 drivers/usb/gadget/function/f_eem.c if (!ep) ep 292 drivers/usb/gadget/function/f_eem.c eem->port.out_ep = ep; ep 323 drivers/usb/gadget/function/f_eem.c static void eem_cmd_complete(struct usb_ep *ep, struct usb_request *req) ep 118 drivers/usb/gadget/function/f_fs.c struct usb_ep *ep; /* P: ffs->eps_lock */ ep 134 drivers/usb/gadget/function/f_fs.c struct ffs_ep *ep; /* P: ffs->eps_lock */ ep 224 drivers/usb/gadget/function/f_fs.c struct usb_ep *ep; ep 268 drivers/usb/gadget/function/f_fs.c static void ffs_ep0_complete(struct usb_ep *ep, struct usb_request *req) ep 710 drivers/usb/gadget/function/f_fs.c struct ffs_ep *ep = _ep->driver_data; ep 711 drivers/usb/gadget/function/f_fs.c ep->status = req->status ? req->status : req->actual; ep 841 drivers/usb/gadget/function/f_fs.c usb_ep_free_request(io_data->ep, io_data->req); ep 947 drivers/usb/gadget/function/f_fs.c struct ffs_ep *ep; ep 957 drivers/usb/gadget/function/f_fs.c ep = epfile->ep; ep 958 drivers/usb/gadget/function/f_fs.c if (!ep) { ep 963 drivers/usb/gadget/function/f_fs.c epfile->ffs->wait, (ep = epfile->ep)); ep 1004 drivers/usb/gadget/function/f_fs.c if (epfile->ep != ep) { ep 1014 drivers/usb/gadget/function/f_fs.c data_len = usb_ep_align_maybe(gadget, ep->ep, data_len); ep 1033 drivers/usb/gadget/function/f_fs.c if (epfile->ep != ep) { ep 1037 drivers/usb/gadget/function/f_fs.c ret = usb_ep_set_halt(ep->ep); ep 1058 drivers/usb/gadget/function/f_fs.c req = ep->req; ep 1074 drivers/usb/gadget/function/f_fs.c ret = usb_ep_queue(ep->ep, req, GFP_ATOMIC); ep 1087 drivers/usb/gadget/function/f_fs.c usb_ep_dequeue(ep->ep, req); ep 1089 drivers/usb/gadget/function/f_fs.c interrupted = ep->status < 0; ep 1094 drivers/usb/gadget/function/f_fs.c else if (io_data->read && ep->status > 0) ep 1095 drivers/usb/gadget/function/f_fs.c ret = __ffs_epfile_read_data(epfile, data, ep->status, ep 1098 drivers/usb/gadget/function/f_fs.c ret = ep->status; ep 1100 drivers/usb/gadget/function/f_fs.c } else if (!(req = usb_ep_alloc_request(ep->ep, GFP_ATOMIC))) { ep 1114 drivers/usb/gadget/function/f_fs.c io_data->ep = ep->ep; ep 1121 drivers/usb/gadget/function/f_fs.c ret = usb_ep_queue(ep->ep, req, GFP_ATOMIC); ep 1124 drivers/usb/gadget/function/f_fs.c usb_ep_free_request(ep->ep, req); ep 1173 drivers/usb/gadget/function/f_fs.c if (likely(io_data && io_data->ep && io_data->req)) ep 1174 drivers/usb/gadget/function/f_fs.c value = usb_ep_dequeue(io_data->ep, io_data->req); ep 1286 drivers/usb/gadget/function/f_fs.c struct ffs_ep *ep; ep 1295 drivers/usb/gadget/function/f_fs.c ep = epfile->ep; ep 1296 drivers/usb/gadget/function/f_fs.c if (!ep) { ep 1301 drivers/usb/gadget/function/f_fs.c epfile->ffs->wait, (ep = epfile->ep)); ep 1309 drivers/usb/gadget/function/f_fs.c if (epfile->ep != ep) { ep 1316 drivers/usb/gadget/function/f_fs.c ret = usb_ep_fifo_status(epfile->ep->ep); ep 1319 drivers/usb/gadget/function/f_fs.c usb_ep_fifo_flush(epfile->ep->ep); ep 1323 drivers/usb/gadget/function/f_fs.c ret = usb_ep_clear_halt(epfile->ep->ep); ep 1326 drivers/usb/gadget/function/f_fs.c ret = epfile->ep->num; ep 1343 drivers/usb/gadget/function/f_fs.c desc = epfile->ep->descs[desc_idx]; ep 1940 drivers/usb/gadget/function/f_fs.c struct ffs_ep *ep = func->eps; ep 1948 drivers/usb/gadget/function/f_fs.c if (likely(ep->ep)) ep 1949 drivers/usb/gadget/function/f_fs.c usb_ep_disable(ep->ep); ep 1950 drivers/usb/gadget/function/f_fs.c ++ep; ep 1953 drivers/usb/gadget/function/f_fs.c epfile->ep = NULL; ep 1964 drivers/usb/gadget/function/f_fs.c struct ffs_ep *ep = func->eps; ep 1972 drivers/usb/gadget/function/f_fs.c ep->ep->driver_data = ep; ep 1974 drivers/usb/gadget/function/f_fs.c ret = config_ep_by_speed(func->gadget, &func->function, ep->ep); ep 1977 drivers/usb/gadget/function/f_fs.c __func__, ep->ep->name, ret); ep 1981 drivers/usb/gadget/function/f_fs.c ret = usb_ep_enable(ep->ep); ep 1983 drivers/usb/gadget/function/f_fs.c epfile->ep = ep; ep 1984 drivers/usb/gadget/function/f_fs.c epfile->in = usb_endpoint_dir_in(ep->ep->desc); ep 1985 drivers/usb/gadget/function/f_fs.c epfile->isoc = usb_endpoint_xfer_isoc(ep->ep->desc); ep 1990 drivers/usb/gadget/function/f_fs.c ++ep; ep 2858 drivers/usb/gadget/function/f_fs.c if (ffs_ep->ep) { ep 2864 drivers/usb/gadget/function/f_fs.c struct usb_ep *ep; ep 2879 drivers/usb/gadget/function/f_fs.c ep = usb_ep_autoconfig(func->gadget, ds); ep 2880 drivers/usb/gadget/function/f_fs.c if (unlikely(!ep)) ep 2882 drivers/usb/gadget/function/f_fs.c ep->driver_data = func->eps + idx; ep 2884 drivers/usb/gadget/function/f_fs.c req = usb_ep_alloc_request(ep, GFP_KERNEL); ep 2888 drivers/usb/gadget/function/f_fs.c ffs_ep->ep = ep; ep 2948 drivers/usb/gadget/function/f_fs.c if (unlikely(!func->eps[idx].ep)) ep 3573 drivers/usb/gadget/function/f_fs.c struct ffs_ep *ep = func->eps; ep 3589 drivers/usb/gadget/function/f_fs.c if (ep->ep && ep->req) ep 3590 drivers/usb/gadget/function/f_fs.c usb_ep_free_request(ep->ep, ep->req); ep 3591 drivers/usb/gadget/function/f_fs.c ep->req = NULL; ep 3592 drivers/usb/gadget/function/f_fs.c ++ep; ep 318 drivers/usb/gadget/function/f_hid.c static void f_hidg_req_complete(struct usb_ep *ep, struct usb_request *req) ep 320 drivers/usb/gadget/function/f_hid.c struct f_hidg *hidg = (struct f_hidg *)ep->driver_data; ep 455 drivers/usb/gadget/function/f_hid.c static inline struct usb_request *hidg_alloc_ep_req(struct usb_ep *ep, ep 458 drivers/usb/gadget/function/f_hid.c return alloc_ep_req(ep, length); ep 461 drivers/usb/gadget/function/f_hid.c static void hidg_set_report_complete(struct usb_ep *ep, struct usb_request *req) ep 491 drivers/usb/gadget/function/f_hid.c free_ep_req(ep, req); ep 746 drivers/usb/gadget/function/f_hid.c struct usb_ep *ep; ep 768 drivers/usb/gadget/function/f_hid.c ep = usb_ep_autoconfig(c->cdev->gadget, &hidg_fs_in_ep_desc); ep 769 drivers/usb/gadget/function/f_hid.c if (!ep) ep 771 drivers/usb/gadget/function/f_hid.c hidg->in_ep = ep; ep 773 drivers/usb/gadget/function/f_hid.c ep = usb_ep_autoconfig(c->cdev->gadget, &hidg_fs_out_ep_desc); ep 774 drivers/usb/gadget/function/f_hid.c if (!ep) ep 776 drivers/usb/gadget/function/f_hid.c hidg->out_ep = ep; ep 235 drivers/usb/gadget/function/f_loopback.c static void loopback_complete(struct usb_ep *ep, struct usb_request *req) ep 237 drivers/usb/gadget/function/f_loopback.c struct f_loopback *loop = ep->driver_data; ep 243 drivers/usb/gadget/function/f_loopback.c if (ep == loop->out_ep) { ep 252 drivers/usb/gadget/function/f_loopback.c ep = loop->in_ep; ep 260 drivers/usb/gadget/function/f_loopback.c ep = loop->out_ep; ep 264 drivers/usb/gadget/function/f_loopback.c status = usb_ep_queue(ep, req, GFP_ATOMIC); ep 269 drivers/usb/gadget/function/f_loopback.c ep->name, status); ep 275 drivers/usb/gadget/function/f_loopback.c ERROR(cdev, "%s loop complete --> %d, %d/%d\n", ep->name, ep 288 drivers/usb/gadget/function/f_loopback.c usb_ep_free_request(ep == loop->in_ep ? ep 291 drivers/usb/gadget/function/f_loopback.c free_ep_req(ep, req); ep 305 drivers/usb/gadget/function/f_loopback.c static inline struct usb_request *lb_alloc_ep_req(struct usb_ep *ep, int len) ep 307 drivers/usb/gadget/function/f_loopback.c return alloc_ep_req(ep, len); ep 361 drivers/usb/gadget/function/f_loopback.c struct f_loopback *loop, struct usb_ep *ep) ep 365 drivers/usb/gadget/function/f_loopback.c result = config_ep_by_speed(cdev->gadget, &(loop->function), ep); ep 369 drivers/usb/gadget/function/f_loopback.c result = usb_ep_enable(ep); ep 372 drivers/usb/gadget/function/f_loopback.c ep->driver_data = loop; ep 376 drivers/usb/gadget/function/f_mass_storage.c static int fsg_set_halt(struct fsg_dev *fsg, struct usb_ep *ep) ep 380 drivers/usb/gadget/function/f_mass_storage.c if (ep == fsg->bulk_in) ep 382 drivers/usb/gadget/function/f_mass_storage.c else if (ep == fsg->bulk_out) ep 385 drivers/usb/gadget/function/f_mass_storage.c name = ep->name; ep 387 drivers/usb/gadget/function/f_mass_storage.c return usb_ep_set_halt(ep); ep 443 drivers/usb/gadget/function/f_mass_storage.c static void bulk_in_complete(struct usb_ep *ep, struct usb_request *req) ep 445 drivers/usb/gadget/function/f_mass_storage.c struct fsg_common *common = ep->driver_data; ep 452 drivers/usb/gadget/function/f_mass_storage.c usb_ep_fifo_flush(ep); ep 459 drivers/usb/gadget/function/f_mass_storage.c static void bulk_out_complete(struct usb_ep *ep, struct usb_request *req) ep 461 drivers/usb/gadget/function/f_mass_storage.c struct fsg_common *common = ep->driver_data; ep 469 drivers/usb/gadget/function/f_mass_storage.c usb_ep_fifo_flush(ep); ep 549 drivers/usb/gadget/function/f_mass_storage.c static int start_transfer(struct fsg_dev *fsg, struct usb_ep *ep, ep 554 drivers/usb/gadget/function/f_mass_storage.c if (ep == fsg->bulk_in) ep 557 drivers/usb/gadget/function/f_mass_storage.c rc = usb_ep_queue(ep, req, GFP_KERNEL); ep 570 drivers/usb/gadget/function/f_mass_storage.c ep->name, rc); ep 2185 drivers/usb/gadget/function/f_mass_storage.c static int alloc_request(struct fsg_common *common, struct usb_ep *ep, ep 2188 drivers/usb/gadget/function/f_mass_storage.c *preq = usb_ep_alloc_request(ep, GFP_ATOMIC); ep 2191 drivers/usb/gadget/function/f_mass_storage.c ERROR(common, "can't allocate request for %s\n", ep->name); ep 2900 drivers/usb/gadget/function/f_mass_storage.c struct usb_ep *ep; ep 2946 drivers/usb/gadget/function/f_mass_storage.c ep = usb_ep_autoconfig(gadget, &fsg_fs_bulk_in_desc); ep 2947 drivers/usb/gadget/function/f_mass_storage.c if (!ep) ep 2949 drivers/usb/gadget/function/f_mass_storage.c fsg->bulk_in = ep; ep 2951 drivers/usb/gadget/function/f_mass_storage.c ep = usb_ep_autoconfig(gadget, &fsg_fs_bulk_out_desc); ep 2952 drivers/usb/gadget/function/f_mass_storage.c if (!ep) ep 2954 drivers/usb/gadget/function/f_mass_storage.c fsg->bulk_out = ep; ep 227 drivers/usb/gadget/function/f_midi.c static inline struct usb_request *midi_alloc_ep_req(struct usb_ep *ep, ep 230 drivers/usb/gadget/function/f_midi.c return alloc_ep_req(ep, length); ep 240 drivers/usb/gadget/function/f_midi.c static void f_midi_read_data(struct usb_ep *ep, int cable, ep 243 drivers/usb/gadget/function/f_midi.c struct f_midi *midi = ep->driver_data; ep 256 drivers/usb/gadget/function/f_midi.c static void f_midi_handle_out_data(struct usb_ep *ep, struct usb_request *req) ep 265 drivers/usb/gadget/function/f_midi.c f_midi_read_data(ep, cable, &buf[i + 1], length); ep 270 drivers/usb/gadget/function/f_midi.c f_midi_complete(struct usb_ep *ep, struct usb_request *req) ep 272 drivers/usb/gadget/function/f_midi.c struct f_midi *midi = ep->driver_data; ep 278 drivers/usb/gadget/function/f_midi.c if (ep == midi->out_ep) { ep 280 drivers/usb/gadget/function/f_midi.c f_midi_handle_out_data(ep, req); ep 281 drivers/usb/gadget/function/f_midi.c } else if (ep == midi->in_ep) { ep 294 drivers/usb/gadget/function/f_midi.c VDBG(cdev, "%s gone (%d), %d/%d\n", ep->name, status, ep 296 drivers/usb/gadget/function/f_midi.c if (ep == midi->out_ep) { ep 297 drivers/usb/gadget/function/f_midi.c f_midi_handle_out_data(ep, req); ep 300 drivers/usb/gadget/function/f_midi.c free_ep_req(ep, req); ep 308 drivers/usb/gadget/function/f_midi.c DBG(cdev, "%s complete --> %d, %d/%d\n", ep->name, ep 315 drivers/usb/gadget/function/f_midi.c status = usb_ep_queue(ep, req, GFP_ATOMIC); ep 318 drivers/usb/gadget/function/f_midi.c ep->name, req->length, status); ep 319 drivers/usb/gadget/function/f_midi.c usb_ep_set_halt(ep); ep 339 drivers/usb/gadget/function/f_midi.c struct usb_ep *ep) ep 344 drivers/usb/gadget/function/f_midi.c usb_ep_disable(ep); ep 346 drivers/usb/gadget/function/f_midi.c err = config_ep_by_speed(midi->gadget, f, ep); ep 348 drivers/usb/gadget/function/f_midi.c ERROR(cdev, "can't configure %s: %d\n", ep->name, err); ep 352 drivers/usb/gadget/function/f_midi.c err = usb_ep_enable(ep); ep 354 drivers/usb/gadget/function/f_midi.c ERROR(cdev, "can't start %s: %d\n", ep->name, err); ep 358 drivers/usb/gadget/function/f_midi.c ep->driver_data = midi; ep 606 drivers/usb/gadget/function/f_midi.c static int f_midi_do_transmit(struct f_midi *midi, struct usb_ep *ep) ep 658 drivers/usb/gadget/function/f_midi.c err = usb_ep_queue(ep, req, GFP_ATOMIC); ep 675 drivers/usb/gadget/function/f_midi.c struct usb_ep *ep = midi->in_ep; ep 680 drivers/usb/gadget/function/f_midi.c if (!ep || !ep->enabled) ep 686 drivers/usb/gadget/function/f_midi.c ret = f_midi_do_transmit(midi, ep); ep 626 drivers/usb/gadget/function/f_ncm.c static void ncm_notify_complete(struct usb_ep *ep, struct usb_request *req) ep 654 drivers/usb/gadget/function/f_ncm.c static void ncm_ep0out_complete(struct usb_ep *ep, struct usb_request *req) ep 680 drivers/usb/gadget/function/f_ncm.c usb_ep_set_halt(ep); ep 1392 drivers/usb/gadget/function/f_ncm.c struct usb_ep *ep; ep 1463 drivers/usb/gadget/function/f_ncm.c ep = usb_ep_autoconfig(cdev->gadget, &fs_ncm_in_desc); ep 1464 drivers/usb/gadget/function/f_ncm.c if (!ep) ep 1466 drivers/usb/gadget/function/f_ncm.c ncm->port.in_ep = ep; ep 1468 drivers/usb/gadget/function/f_ncm.c ep = usb_ep_autoconfig(cdev->gadget, &fs_ncm_out_desc); ep 1469 drivers/usb/gadget/function/f_ncm.c if (!ep) ep 1471 drivers/usb/gadget/function/f_ncm.c ncm->port.out_ep = ep; ep 1473 drivers/usb/gadget/function/f_ncm.c ep = usb_ep_autoconfig(cdev->gadget, &fs_ncm_notify_desc); ep 1474 drivers/usb/gadget/function/f_ncm.c if (!ep) ep 1476 drivers/usb/gadget/function/f_ncm.c ncm->notify = ep; ep 1481 drivers/usb/gadget/function/f_ncm.c ncm->notify_req = usb_ep_alloc_request(ep, GFP_KERNEL); ep 308 drivers/usb/gadget/function/f_obex.c struct usb_ep *ep; ep 343 drivers/usb/gadget/function/f_obex.c ep = usb_ep_autoconfig(cdev->gadget, &obex_fs_ep_in_desc); ep 344 drivers/usb/gadget/function/f_obex.c if (!ep) ep 346 drivers/usb/gadget/function/f_obex.c obex->port.in = ep; ep 348 drivers/usb/gadget/function/f_obex.c ep = usb_ep_autoconfig(cdev->gadget, &obex_fs_ep_out_desc); ep 349 drivers/usb/gadget/function/f_obex.c if (!ep) ep 351 drivers/usb/gadget/function/f_obex.c obex->port.out = ep; ep 200 drivers/usb/gadget/function/f_phonet.c static void pn_tx_complete(struct usb_ep *ep, struct usb_request *req) ep 202 drivers/usb/gadget/function/f_phonet.c struct f_phonet *fp = ep->driver_data; ep 311 drivers/usb/gadget/function/f_phonet.c static void pn_rx_complete(struct usb_ep *ep, struct usb_request *req) ep 313 drivers/usb/gadget/function/f_phonet.c struct f_phonet *fp = ep->driver_data; ep 483 drivers/usb/gadget/function/f_phonet.c struct usb_ep *ep; ep 521 drivers/usb/gadget/function/f_phonet.c ep = usb_ep_autoconfig(gadget, &pn_fs_sink_desc); ep 522 drivers/usb/gadget/function/f_phonet.c if (!ep) ep 524 drivers/usb/gadget/function/f_phonet.c fp->out_ep = ep; ep 526 drivers/usb/gadget/function/f_phonet.c ep = usb_ep_autoconfig(gadget, &pn_fs_source_desc); ep 527 drivers/usb/gadget/function/f_phonet.c if (!ep) ep 529 drivers/usb/gadget/function/f_phonet.c fp->in_ep = ep; ep 222 drivers/usb/gadget/function/f_printer.c printer_req_alloc(struct usb_ep *ep, unsigned len, gfp_t gfp_flags) ep 226 drivers/usb/gadget/function/f_printer.c req = usb_ep_alloc_request(ep, gfp_flags); ep 232 drivers/usb/gadget/function/f_printer.c usb_ep_free_request(ep, req); ep 241 drivers/usb/gadget/function/f_printer.c printer_req_free(struct usb_ep *ep, struct usb_request *req) ep 243 drivers/usb/gadget/function/f_printer.c if (ep != NULL && req != NULL) { ep 245 drivers/usb/gadget/function/f_printer.c usb_ep_free_request(ep, req); ep 251 drivers/usb/gadget/function/f_printer.c static void rx_complete(struct usb_ep *ep, struct usb_request *req) ep 253 drivers/usb/gadget/function/f_printer.c struct printer_dev *dev = ep->driver_data; ep 282 drivers/usb/gadget/function/f_printer.c DBG(dev, "rx %s reset\n", ep->name); ep 300 drivers/usb/gadget/function/f_printer.c static void tx_complete(struct usb_ep *ep, struct usb_request *req) ep 302 drivers/usb/gadget/function/f_printer.c struct printer_dev *dev = ep->driver_data; ep 409 drivers/usb/gadget/function/f_rndis.c static void rndis_response_complete(struct usb_ep *ep, struct usb_request *req) ep 427 drivers/usb/gadget/function/f_rndis.c ep->name, status, ep 431 drivers/usb/gadget/function/f_rndis.c if (ep != rndis->notify) ep 448 drivers/usb/gadget/function/f_rndis.c static void rndis_command_complete(struct usb_ep *ep, struct usb_request *req) ep 673 drivers/usb/gadget/function/f_rndis.c struct usb_ep *ep; ep 745 drivers/usb/gadget/function/f_rndis.c ep = usb_ep_autoconfig(cdev->gadget, &fs_in_desc); ep 746 drivers/usb/gadget/function/f_rndis.c if (!ep) ep 748 drivers/usb/gadget/function/f_rndis.c rndis->port.in_ep = ep; ep 750 drivers/usb/gadget/function/f_rndis.c ep = usb_ep_autoconfig(cdev->gadget, &fs_out_desc); ep 751 drivers/usb/gadget/function/f_rndis.c if (!ep) ep 753 drivers/usb/gadget/function/f_rndis.c rndis->port.out_ep = ep; ep 759 drivers/usb/gadget/function/f_rndis.c ep = usb_ep_autoconfig(cdev->gadget, &fs_notify_desc); ep 760 drivers/usb/gadget/function/f_rndis.c if (!ep) ep 762 drivers/usb/gadget/function/f_rndis.c rndis->notify = ep; ep 767 drivers/usb/gadget/function/f_rndis.c rndis->notify_req = usb_ep_alloc_request(ep, GFP_KERNEL); ep 191 drivers/usb/gadget/function/f_serial.c struct usb_ep *ep; ep 215 drivers/usb/gadget/function/f_serial.c ep = usb_ep_autoconfig(cdev->gadget, &gser_fs_in_desc); ep 216 drivers/usb/gadget/function/f_serial.c if (!ep) ep 218 drivers/usb/gadget/function/f_serial.c gser->port.in = ep; ep 220 drivers/usb/gadget/function/f_serial.c ep = usb_ep_autoconfig(cdev->gadget, &gser_fs_out_desc); ep 221 drivers/usb/gadget/function/f_serial.c if (!ep) ep 223 drivers/usb/gadget/function/f_serial.c gser->port.out = ep; ep 290 drivers/usb/gadget/function/f_sourcesink.c static inline struct usb_request *ss_alloc_ep_req(struct usb_ep *ep, int len) ep 292 drivers/usb/gadget/function/f_sourcesink.c return alloc_ep_req(ep, len); ep 295 drivers/usb/gadget/function/f_sourcesink.c static void disable_ep(struct usb_composite_dev *cdev, struct usb_ep *ep) ep 299 drivers/usb/gadget/function/f_sourcesink.c value = usb_ep_disable(ep); ep 301 drivers/usb/gadget/function/f_sourcesink.c DBG(cdev, "disable %s --> %d\n", ep->name, value); ep 501 drivers/usb/gadget/function/f_sourcesink.c static void reinit_write_data(struct usb_ep *ep, struct usb_request *req) ep 505 drivers/usb/gadget/function/f_sourcesink.c int max_packet_size = le16_to_cpu(ep->desc->wMaxPacketSize); ep 506 drivers/usb/gadget/function/f_sourcesink.c struct f_sourcesink *ss = ep->driver_data; ep 521 drivers/usb/gadget/function/f_sourcesink.c static void source_sink_complete(struct usb_ep *ep, struct usb_request *req) ep 524 drivers/usb/gadget/function/f_sourcesink.c struct f_sourcesink *ss = ep->driver_data; ep 536 drivers/usb/gadget/function/f_sourcesink.c if (ep == ss->out_ep) { ep 547 drivers/usb/gadget/function/f_sourcesink.c VDBG(cdev, "%s gone (%d), %d/%d\n", ep->name, status, ep 549 drivers/usb/gadget/function/f_sourcesink.c if (ep == ss->out_ep) ep 551 drivers/usb/gadget/function/f_sourcesink.c free_ep_req(ep, req); ep 560 drivers/usb/gadget/function/f_sourcesink.c DBG(cdev, "%s complete --> %d, %d/%d\n", ep->name, ep 567 drivers/usb/gadget/function/f_sourcesink.c status = usb_ep_queue(ep, req, GFP_ATOMIC); ep 570 drivers/usb/gadget/function/f_sourcesink.c ep->name, req->length, status); ep 571 drivers/usb/gadget/function/f_sourcesink.c usb_ep_set_halt(ep); ep 579 drivers/usb/gadget/function/f_sourcesink.c struct usb_ep *ep; ep 598 drivers/usb/gadget/function/f_sourcesink.c ep = is_in ? ss->iso_in_ep : ss->iso_out_ep; ep 601 drivers/usb/gadget/function/f_sourcesink.c ep = is_in ? ss->in_ep : ss->out_ep; ep 607 drivers/usb/gadget/function/f_sourcesink.c req = ss_alloc_ep_req(ep, size); ep 613 drivers/usb/gadget/function/f_sourcesink.c reinit_write_data(ep, req); ep 617 drivers/usb/gadget/function/f_sourcesink.c status = usb_ep_queue(ep, req, GFP_ATOMIC); ep 624 drivers/usb/gadget/function/f_sourcesink.c ep->name, status); ep 625 drivers/usb/gadget/function/f_sourcesink.c free_ep_req(ep, req); ep 649 drivers/usb/gadget/function/f_sourcesink.c struct usb_ep *ep; ep 652 drivers/usb/gadget/function/f_sourcesink.c ep = ss->in_ep; ep 653 drivers/usb/gadget/function/f_sourcesink.c result = config_ep_by_speed(cdev->gadget, &(ss->function), ep); ep 656 drivers/usb/gadget/function/f_sourcesink.c result = usb_ep_enable(ep); ep 659 drivers/usb/gadget/function/f_sourcesink.c ep->driver_data = ss; ep 664 drivers/usb/gadget/function/f_sourcesink.c ep = ss->in_ep; ep 665 drivers/usb/gadget/function/f_sourcesink.c usb_ep_disable(ep); ep 670 drivers/usb/gadget/function/f_sourcesink.c ep = ss->out_ep; ep 671 drivers/usb/gadget/function/f_sourcesink.c result = config_ep_by_speed(cdev->gadget, &(ss->function), ep); ep 674 drivers/usb/gadget/function/f_sourcesink.c result = usb_ep_enable(ep); ep 677 drivers/usb/gadget/function/f_sourcesink.c ep->driver_data = ss; ep 682 drivers/usb/gadget/function/f_sourcesink.c ep = ss->out_ep; ep 683 drivers/usb/gadget/function/f_sourcesink.c usb_ep_disable(ep); ep 691 drivers/usb/gadget/function/f_sourcesink.c ep = ss->iso_in_ep; ep 692 drivers/usb/gadget/function/f_sourcesink.c if (ep) { ep 693 drivers/usb/gadget/function/f_sourcesink.c result = config_ep_by_speed(cdev->gadget, &(ss->function), ep); ep 696 drivers/usb/gadget/function/f_sourcesink.c result = usb_ep_enable(ep); ep 699 drivers/usb/gadget/function/f_sourcesink.c ep->driver_data = ss; ep 704 drivers/usb/gadget/function/f_sourcesink.c ep = ss->iso_in_ep; ep 705 drivers/usb/gadget/function/f_sourcesink.c if (ep) ep 706 drivers/usb/gadget/function/f_sourcesink.c usb_ep_disable(ep); ep 712 drivers/usb/gadget/function/f_sourcesink.c ep = ss->iso_out_ep; ep 713 drivers/usb/gadget/function/f_sourcesink.c if (ep) { ep 714 drivers/usb/gadget/function/f_sourcesink.c result = config_ep_by_speed(cdev->gadget, &(ss->function), ep); ep 717 drivers/usb/gadget/function/f_sourcesink.c result = usb_ep_enable(ep); ep 720 drivers/usb/gadget/function/f_sourcesink.c ep->driver_data = ss; ep 724 drivers/usb/gadget/function/f_sourcesink.c usb_ep_disable(ep); ep 298 drivers/usb/gadget/function/f_subset.c struct usb_ep *ep; ep 338 drivers/usb/gadget/function/f_subset.c ep = usb_ep_autoconfig(cdev->gadget, &fs_subset_in_desc); ep 339 drivers/usb/gadget/function/f_subset.c if (!ep) ep 341 drivers/usb/gadget/function/f_subset.c geth->port.in_ep = ep; ep 343 drivers/usb/gadget/function/f_subset.c ep = usb_ep_autoconfig(cdev->gadget, &fs_subset_out_desc); ep 344 drivers/usb/gadget/function/f_subset.c if (!ep) ep 346 drivers/usb/gadget/function/f_subset.c geth->port.out_ep = ep; ep 59 drivers/usb/gadget/function/f_tcm.c static void bot_status_complete(struct usb_ep *ep, struct usb_request *req) ep 89 drivers/usb/gadget/function/f_tcm.c static void bot_err_compl(struct usb_ep *ep, struct usb_request *req) ep 98 drivers/usb/gadget/function/f_tcm.c if (cmd->data_len > ep->maxpacket) { ep 99 drivers/usb/gadget/function/f_tcm.c req->length = ep->maxpacket; ep 100 drivers/usb/gadget/function/f_tcm.c cmd->data_len -= ep->maxpacket; ep 106 drivers/usb/gadget/function/f_tcm.c usb_ep_queue(ep, req, GFP_ATOMIC); ep 117 drivers/usb/gadget/function/f_tcm.c struct usb_ep *ep; ep 123 drivers/usb/gadget/function/f_tcm.c ep = fu->ep_in; ep 126 drivers/usb/gadget/function/f_tcm.c ep = fu->ep_out; ep 131 drivers/usb/gadget/function/f_tcm.c req->length = ep->maxpacket; ep 132 drivers/usb/gadget/function/f_tcm.c cmd->data_len -= ep->maxpacket; ep 140 drivers/usb/gadget/function/f_tcm.c usb_ep_queue(ep, req, GFP_KERNEL); ep 192 drivers/usb/gadget/function/f_tcm.c static void bot_read_compl(struct usb_ep *ep, struct usb_request *req) ep 290 drivers/usb/gadget/function/f_tcm.c static void bot_cmd_complete(struct usb_ep *ep, struct usb_request *req) ep 508 drivers/usb/gadget/function/f_tcm.c static void uasp_status_data_cmpl(struct usb_ep *ep, struct usb_request *req); ep 563 drivers/usb/gadget/function/f_tcm.c static void uasp_status_data_cmpl(struct usb_ep *ep, struct usb_request *req) ep 719 drivers/usb/gadget/function/f_tcm.c static void uasp_cmd_complete(struct usb_ep *ep, struct usb_request *req) ep 952 drivers/usb/gadget/function/f_tcm.c static void usbg_data_write_cmpl(struct usb_ep *ep, struct usb_request *req) ep 1992 drivers/usb/gadget/function/f_tcm.c struct usb_ep *ep; ep 2019 drivers/usb/gadget/function/f_tcm.c ep = usb_ep_autoconfig_ss(gadget, &uasp_ss_bi_desc, ep 2021 drivers/usb/gadget/function/f_tcm.c if (!ep) ep 2024 drivers/usb/gadget/function/f_tcm.c fu->ep_in = ep; ep 2026 drivers/usb/gadget/function/f_tcm.c ep = usb_ep_autoconfig_ss(gadget, &uasp_ss_bo_desc, ep 2028 drivers/usb/gadget/function/f_tcm.c if (!ep) ep 2030 drivers/usb/gadget/function/f_tcm.c fu->ep_out = ep; ep 2032 drivers/usb/gadget/function/f_tcm.c ep = usb_ep_autoconfig_ss(gadget, &uasp_ss_status_desc, ep 2034 drivers/usb/gadget/function/f_tcm.c if (!ep) ep 2036 drivers/usb/gadget/function/f_tcm.c fu->ep_status = ep; ep 2038 drivers/usb/gadget/function/f_tcm.c ep = usb_ep_autoconfig_ss(gadget, &uasp_ss_cmd_desc, ep 2040 drivers/usb/gadget/function/f_tcm.c if (!ep) ep 2042 drivers/usb/gadget/function/f_tcm.c fu->ep_cmd = ep; ep 326 drivers/usb/gadget/function/f_uac1.c u16 ep = le16_to_cpu(ctrl->wIndex); ep 331 drivers/usb/gadget/function/f_uac1.c ctrl->bRequest, w_value, len, ep); ep 362 drivers/usb/gadget/function/f_uac1.c u8 ep = ((le16_to_cpu(ctrl->wIndex) >> 8) & 0xFF); ep 367 drivers/usb/gadget/function/f_uac1.c ctrl->bRequest, w_value, len, ep); ep 515 drivers/usb/gadget/function/f_uac1.c struct usb_ep *ep = NULL; ep 589 drivers/usb/gadget/function/f_uac1.c ep = usb_ep_autoconfig(cdev->gadget, &as_out_ep_desc); ep 590 drivers/usb/gadget/function/f_uac1.c if (!ep) ep 592 drivers/usb/gadget/function/f_uac1.c audio->out_ep = ep; ep 595 drivers/usb/gadget/function/f_uac1.c ep = usb_ep_autoconfig(cdev->gadget, &as_in_ep_desc); ep 596 drivers/usb/gadget/function/f_uac1.c if (!ep) ep 598 drivers/usb/gadget/function/f_uac1.c audio->in_ep = ep; ep 321 drivers/usb/gadget/function/f_uac1_legacy.c static int f_audio_out_ep_complete(struct usb_ep *ep, struct usb_request *req) ep 350 drivers/usb/gadget/function/f_uac1_legacy.c err = usb_ep_queue(ep, req, GFP_ATOMIC); ep 352 drivers/usb/gadget/function/f_uac1_legacy.c ERROR(cdev, "%s queue req: %d\n", ep->name, err); ep 358 drivers/usb/gadget/function/f_uac1_legacy.c static void f_audio_complete(struct usb_ep *ep, struct usb_request *req) ep 368 drivers/usb/gadget/function/f_uac1_legacy.c if (ep == out_ep) ep 369 drivers/usb/gadget/function/f_uac1_legacy.c f_audio_out_ep_complete(ep, req); ep 461 drivers/usb/gadget/function/f_uac1_legacy.c u16 ep = le16_to_cpu(ctrl->wIndex); ep 466 drivers/usb/gadget/function/f_uac1_legacy.c ctrl->bRequest, w_value, len, ep); ep 497 drivers/usb/gadget/function/f_uac1_legacy.c u8 ep = ((le16_to_cpu(ctrl->wIndex) >> 8) & 0xFF); ep 502 drivers/usb/gadget/function/f_uac1_legacy.c ctrl->bRequest, w_value, len, ep); ep 704 drivers/usb/gadget/function/f_uac1_legacy.c struct usb_ep *ep = NULL; ep 749 drivers/usb/gadget/function/f_uac1_legacy.c ep = usb_ep_autoconfig(cdev->gadget, &as_out_ep_desc); ep 750 drivers/usb/gadget/function/f_uac1_legacy.c if (!ep) ep 752 drivers/usb/gadget/function/f_uac1_legacy.c audio->out_ep = ep; ep 205 drivers/usb/gadget/function/f_uvc.c uvc_function_ep0_complete(struct usb_ep *ep, struct usb_request *req) ep 271 drivers/usb/gadget/function/f_uvc.c return uvc->video.ep->enabled ? 1 : 0; ep 323 drivers/usb/gadget/function/f_uvc.c if (uvc->video.ep) ep 324 drivers/usb/gadget/function/f_uvc.c usb_ep_disable(uvc->video.ep); ep 337 drivers/usb/gadget/function/f_uvc.c if (!uvc->video.ep) ep 341 drivers/usb/gadget/function/f_uvc.c usb_ep_disable(uvc->video.ep); ep 344 drivers/usb/gadget/function/f_uvc.c &(uvc->func), uvc->video.ep); ep 347 drivers/usb/gadget/function/f_uvc.c usb_ep_enable(uvc->video.ep); ep 373 drivers/usb/gadget/function/f_uvc.c usb_ep_disable(uvc->video.ep); ep 576 drivers/usb/gadget/function/f_uvc.c uvc_streaming_header->bEndpointAddress = uvc->video.ep->address; ep 592 drivers/usb/gadget/function/f_uvc.c struct usb_ep *ep; ep 647 drivers/usb/gadget/function/f_uvc.c ep = usb_ep_autoconfig(cdev->gadget, &uvc_control_ep); ep 648 drivers/usb/gadget/function/f_uvc.c if (!ep) { ep 652 drivers/usb/gadget/function/f_uvc.c uvc->control_ep = ep; ep 655 drivers/usb/gadget/function/f_uvc.c ep = usb_ep_autoconfig_ss(cdev->gadget, &uvc_ss_streaming_ep, ep 658 drivers/usb/gadget/function/f_uvc.c ep = usb_ep_autoconfig(cdev->gadget, &uvc_hs_streaming_ep); ep 660 drivers/usb/gadget/function/f_uvc.c ep = usb_ep_autoconfig(cdev->gadget, &uvc_fs_streaming_ep); ep 662 drivers/usb/gadget/function/f_uvc.c if (!ep) { ep 666 drivers/usb/gadget/function/f_uvc.c uvc->video.ep = ep; ep 668 drivers/usb/gadget/function/f_uvc.c uvc_fs_streaming_ep.bEndpointAddress = uvc->video.ep->address; ep 669 drivers/usb/gadget/function/f_uvc.c uvc_hs_streaming_ep.bEndpointAddress = uvc->video.ep->address; ep 670 drivers/usb/gadget/function/f_uvc.c uvc_ss_streaming_ep.bEndpointAddress = uvc->video.ep->address; ep 79 drivers/usb/gadget/function/u_audio.c static void u_audio_iso_complete(struct usb_ep *ep, struct usb_request *req) ep 181 drivers/usb/gadget/function/u_audio.c if (usb_ep_queue(ep, req, GFP_ATOMIC)) ep 337 drivers/usb/gadget/function/u_audio.c static inline void free_ep(struct uac_rtd_params *prm, struct usb_ep *ep) ep 354 drivers/usb/gadget/function/u_audio.c usb_ep_dequeue(ep, prm->ureq[i].req); ep 355 drivers/usb/gadget/function/u_audio.c usb_ep_free_request(ep, prm->ureq[i].req); ep 360 drivers/usb/gadget/function/u_audio.c if (usb_ep_disable(ep)) ep 371 drivers/usb/gadget/function/u_audio.c struct usb_ep *ep; ep 376 drivers/usb/gadget/function/u_audio.c ep = audio_dev->out_ep; ep 378 drivers/usb/gadget/function/u_audio.c config_ep_by_speed(gadget, &audio_dev->func, ep); ep 382 drivers/usb/gadget/function/u_audio.c usb_ep_enable(ep); ep 386 drivers/usb/gadget/function/u_audio.c req = usb_ep_alloc_request(ep, GFP_ATOMIC); ep 400 drivers/usb/gadget/function/u_audio.c if (usb_ep_queue(ep, prm->ureq[i].req, GFP_ATOMIC)) ep 422 drivers/usb/gadget/function/u_audio.c struct usb_ep *ep; ep 429 drivers/usb/gadget/function/u_audio.c ep = audio_dev->in_ep; ep 431 drivers/usb/gadget/function/u_audio.c config_ep_by_speed(gadget, &audio_dev->func, ep); ep 433 drivers/usb/gadget/function/u_audio.c ep_desc = ep->desc; ep 458 drivers/usb/gadget/function/u_audio.c usb_ep_enable(ep); ep 462 drivers/usb/gadget/function/u_audio.c req = usb_ep_alloc_request(ep, GFP_ATOMIC); ep 476 drivers/usb/gadget/function/u_audio.c if (usb_ep_queue(ep, prm->ureq[i].req, GFP_ATOMIC)) ep 172 drivers/usb/gadget/function/u_ether.c static void rx_complete(struct usb_ep *ep, struct usb_request *req); ep 253 drivers/usb/gadget/function/u_ether.c static void rx_complete(struct usb_ep *ep, struct usb_request *req) ep 256 drivers/usb/gadget/function/u_ether.c struct eth_dev *dev = ep->driver_data; ep 315 drivers/usb/gadget/function/u_ether.c DBG(dev, "rx %s reset\n", ep->name); ep 345 drivers/usb/gadget/function/u_ether.c static int prealloc(struct list_head *list, struct usb_ep *ep, unsigned n) ep 360 drivers/usb/gadget/function/u_ether.c req = usb_ep_alloc_request(ep, GFP_ATOMIC); ep 374 drivers/usb/gadget/function/u_ether.c usb_ep_free_request(ep, req); ep 438 drivers/usb/gadget/function/u_ether.c static void tx_complete(struct usb_ep *ep, struct usb_request *req) ep 441 drivers/usb/gadget/function/u_ether.c struct eth_dev *dev = ep->driver_data; ep 159 drivers/usb/gadget/function/u_serial.c gs_alloc_req(struct usb_ep *ep, unsigned len, gfp_t kmalloc_flags) ep 163 drivers/usb/gadget/function/u_serial.c req = usb_ep_alloc_request(ep, kmalloc_flags); ep 169 drivers/usb/gadget/function/u_serial.c usb_ep_free_request(ep, req); ep 183 drivers/usb/gadget/function/u_serial.c void gs_free_req(struct usb_ep *ep, struct usb_request *req) ep 186 drivers/usb/gadget/function/u_serial.c usb_ep_free_request(ep, req); ep 448 drivers/usb/gadget/function/u_serial.c static void gs_read_complete(struct usb_ep *ep, struct usb_request *req) ep 450 drivers/usb/gadget/function/u_serial.c struct gs_port *port = ep->driver_data; ep 459 drivers/usb/gadget/function/u_serial.c static void gs_write_complete(struct usb_ep *ep, struct usb_request *req) ep 461 drivers/usb/gadget/function/u_serial.c struct gs_port *port = ep->driver_data; ep 471 drivers/usb/gadget/function/u_serial.c __func__, ep->name, req->status); ep 480 drivers/usb/gadget/function/u_serial.c pr_vdebug("%s: %s shutdown\n", __func__, ep->name); ep 487 drivers/usb/gadget/function/u_serial.c static void gs_free_requests(struct usb_ep *ep, struct list_head *head, ep 495 drivers/usb/gadget/function/u_serial.c gs_free_req(ep, req); ep 501 drivers/usb/gadget/function/u_serial.c static int gs_alloc_requests(struct usb_ep *ep, struct list_head *head, ep 514 drivers/usb/gadget/function/u_serial.c req = gs_alloc_req(ep, ep->maxpacket, GFP_ATOMIC); ep 537 drivers/usb/gadget/function/u_serial.c struct usb_ep *ep = port->port_usb->out; ep 547 drivers/usb/gadget/function/u_serial.c status = gs_alloc_requests(ep, head, gs_read_complete, ep 555 drivers/usb/gadget/function/u_serial.c gs_free_requests(ep, head, &port->read_allocated); ep 569 drivers/usb/gadget/function/u_serial.c gs_free_requests(ep, head, &port->read_allocated); ep 897 drivers/usb/gadget/function/u_serial.c static struct usb_request *gs_request_new(struct usb_ep *ep) ep 899 drivers/usb/gadget/function/u_serial.c struct usb_request *req = usb_ep_alloc_request(ep, GFP_ATOMIC); ep 903 drivers/usb/gadget/function/u_serial.c req->buf = kmalloc(ep->maxpacket, GFP_ATOMIC); ep 905 drivers/usb/gadget/function/u_serial.c usb_ep_free_request(ep, req); ep 912 drivers/usb/gadget/function/u_serial.c static void gs_request_free(struct usb_request *req, struct usb_ep *ep) ep 918 drivers/usb/gadget/function/u_serial.c usb_ep_free_request(ep, req); ep 921 drivers/usb/gadget/function/u_serial.c static void gs_complete_out(struct usb_ep *ep, struct usb_request *req) ep 928 drivers/usb/gadget/function/u_serial.c __func__, ep->name, req->status); ep 940 drivers/usb/gadget/function/u_serial.c pr_vdebug("%s: %s shutdown\n", __func__, ep->name); ep 949 drivers/usb/gadget/function/u_serial.c struct usb_ep *ep; ep 958 drivers/usb/gadget/function/u_serial.c ep = port->port_usb->in; ep 960 drivers/usb/gadget/function/u_serial.c info->console_req = gs_request_new(ep); ep 974 drivers/usb/gadget/function/u_serial.c static void gs_console_disconnect(struct usb_ep *ep) ep 979 drivers/usb/gadget/function/u_serial.c gs_request_free(req, ep); ep 988 drivers/usb/gadget/function/u_serial.c struct usb_ep *ep; ep 999 drivers/usb/gadget/function/u_serial.c ep = port->port_usb->in; ep 1003 drivers/usb/gadget/function/u_serial.c size = ep->maxpacket; ep 1014 drivers/usb/gadget/function/u_serial.c ret = usb_ep_queue(ep, req, GFP_ATOMIC); ep 1120 drivers/usb/gadget/function/u_serial.c static void gs_console_disconnect(struct usb_ep *ep) ep 53 drivers/usb/gadget/function/u_serial.h struct usb_request *gs_alloc_req(struct usb_ep *ep, unsigned len, gfp_t flags); ep 78 drivers/usb/gadget/function/uvc.h struct usb_ep *ep; ep 132 drivers/usb/gadget/function/uvc_video.c ret = usb_ep_queue(video->ep, req, GFP_ATOMIC); ep 138 drivers/usb/gadget/function/uvc_video.c if (usb_endpoint_xfer_bulk(video->ep->desc)) ep 139 drivers/usb/gadget/function/uvc_video.c usb_ep_set_halt(video->ep); ep 176 drivers/usb/gadget/function/uvc_video.c uvc_video_complete(struct usb_ep *ep, struct usb_request *req) ep 233 drivers/usb/gadget/function/uvc_video.c usb_ep_free_request(video->ep, video->req[i]); ep 257 drivers/usb/gadget/function/uvc_video.c req_size = video->ep->maxpacket ep 258 drivers/usb/gadget/function/uvc_video.c * max_t(unsigned int, video->ep->maxburst, 1) ep 259 drivers/usb/gadget/function/uvc_video.c * (video->ep->mult); ep 266 drivers/usb/gadget/function/uvc_video.c video->req[i] = usb_ep_alloc_request(video->ep, GFP_KERNEL); ep 359 drivers/usb/gadget/function/uvc_video.c if (video->ep == NULL) { ep 368 drivers/usb/gadget/function/uvc_video.c usb_ep_dequeue(video->ep, video->req[i]); ep 81 drivers/usb/gadget/legacy/dbgp.c static void __disable_ep(struct usb_ep *ep) ep 83 drivers/usb/gadget/legacy/dbgp.c usb_ep_disable(ep); ep 92 drivers/usb/gadget/legacy/dbgp.c static void dbgp_complete(struct usb_ep *ep, struct usb_request *req) ep 98 drivers/usb/gadget/legacy/dbgp.c if (ep == dbgp.i_ep) { ep 111 drivers/usb/gadget/legacy/dbgp.c err = usb_ep_queue(ep, req, GFP_ATOMIC); ep 128 drivers/usb/gadget/legacy/dbgp.c static int dbgp_enable_ep_req(struct usb_ep *ep) ep 133 drivers/usb/gadget/legacy/dbgp.c req = usb_ep_alloc_request(ep, GFP_KERNEL); ep 149 drivers/usb/gadget/legacy/dbgp.c err = usb_ep_queue(ep, req, GFP_ATOMIC); ep 167 drivers/usb/gadget/legacy/dbgp.c static int __enable_ep(struct usb_ep *ep, struct usb_endpoint_descriptor *desc) ep 170 drivers/usb/gadget/legacy/dbgp.c ep->desc = desc; ep 171 drivers/usb/gadget/legacy/dbgp.c err = usb_ep_enable(ep); ep 330 drivers/usb/gadget/legacy/dbgp.c static void dbgp_setup_complete(struct usb_ep *ep, ep 195 drivers/usb/gadget/legacy/inode.c struct usb_ep *ep; ep 271 drivers/usb/gadget/legacy/inode.c static void epio_complete (struct usb_ep *ep, struct usb_request *req) ep 273 drivers/usb/gadget/legacy/inode.c struct ep_data *epdata = ep->driver_data; ep 334 drivers/usb/gadget/legacy/inode.c if (likely (epdata->ep != NULL)) { ep 341 drivers/usb/gadget/legacy/inode.c value = usb_ep_queue (epdata->ep, req, GFP_ATOMIC); ep 350 drivers/usb/gadget/legacy/inode.c if (likely (epdata->ep != NULL)) { ep 353 drivers/usb/gadget/legacy/inode.c usb_ep_dequeue (epdata->ep, epdata->req); ep 386 drivers/usb/gadget/legacy/inode.c usb_ep_disable(data->ep); ep 402 drivers/usb/gadget/legacy/inode.c if (likely (data->ep != NULL)) { ep 405 drivers/usb/gadget/legacy/inode.c status = usb_ep_fifo_status (data->ep); ep 408 drivers/usb/gadget/legacy/inode.c usb_ep_fifo_flush (data->ep); ep 411 drivers/usb/gadget/legacy/inode.c status = usb_ep_clear_halt (data->ep); ep 448 drivers/usb/gadget/legacy/inode.c if (likely(epdata && epdata->ep && priv->req)) ep 449 drivers/usb/gadget/legacy/inode.c value = usb_ep_dequeue (epdata->ep, priv->req); ep 479 drivers/usb/gadget/legacy/inode.c static void ep_aio_complete(struct usb_ep *ep, struct usb_request *req) ep 507 drivers/usb/gadget/legacy/inode.c ep->name, req->status, req->actual); ep 515 drivers/usb/gadget/legacy/inode.c usb_ep_free_request(ep, req); ep 543 drivers/usb/gadget/legacy/inode.c if (unlikely(epdata->ep == NULL)) ep 546 drivers/usb/gadget/legacy/inode.c req = usb_ep_alloc_request(epdata->ep, GFP_ATOMIC); ep 556 drivers/usb/gadget/legacy/inode.c value = usb_ep_queue(epdata->ep, req, GFP_ATOMIC); ep 558 drivers/usb/gadget/legacy/inode.c usb_ep_free_request(epdata->ep, req); ep 593 drivers/usb/gadget/legacy/inode.c if (likely(epdata->ep != NULL)) ep 594 drivers/usb/gadget/legacy/inode.c usb_ep_set_halt(epdata->ep); ep 655 drivers/usb/gadget/legacy/inode.c if (likely(epdata->ep != NULL)) ep 656 drivers/usb/gadget/legacy/inode.c usb_ep_set_halt(epdata->ep); ep 722 drivers/usb/gadget/legacy/inode.c struct usb_ep *ep; ep 772 drivers/usb/gadget/legacy/inode.c ep = data->ep; ep 773 drivers/usb/gadget/legacy/inode.c if (ep == NULL) { ep 781 drivers/usb/gadget/legacy/inode.c ep->desc = &data->desc; ep 785 drivers/usb/gadget/legacy/inode.c ep->desc = &data->hs_desc; ep 793 drivers/usb/gadget/legacy/inode.c value = usb_ep_enable(ep); ep 851 drivers/usb/gadget/legacy/inode.c static void clean_req (struct usb_ep *ep, struct usb_request *req) ep 853 drivers/usb/gadget/legacy/inode.c struct dev_data *dev = ep->driver_data; ep 863 drivers/usb/gadget/legacy/inode.c static void ep0_complete (struct usb_ep *ep, struct usb_request *req) ep 865 drivers/usb/gadget/legacy/inode.c struct dev_data *dev = ep->driver_data; ep 881 drivers/usb/gadget/legacy/inode.c clean_req (ep, req); ep 886 drivers/usb/gadget/legacy/inode.c static int setup_req (struct usb_ep *ep, struct usb_request *req, u16 len) ep 888 drivers/usb/gadget/legacy/inode.c struct dev_data *dev = ep->driver_data; ep 936 drivers/usb/gadget/legacy/inode.c struct usb_ep *ep = dev->gadget->ep0; ep 939 drivers/usb/gadget/legacy/inode.c if ((retval = setup_req (ep, req, 0)) == 0) { ep 942 drivers/usb/gadget/legacy/inode.c retval = usb_ep_queue (ep, req, GFP_KERNEL); ep 1535 drivers/usb/gadget/legacy/inode.c struct ep_data *ep; ep 1540 drivers/usb/gadget/legacy/inode.c ep = list_first_entry (&dev->epfiles, struct ep_data, epfiles); ep 1541 drivers/usb/gadget/legacy/inode.c list_del_init (&ep->epfiles); ep 1544 drivers/usb/gadget/legacy/inode.c dentry = ep->dentry; ep 1545 drivers/usb/gadget/legacy/inode.c ep->dentry = NULL; ep 1549 drivers/usb/gadget/legacy/inode.c mutex_lock(&ep->lock); ep 1550 drivers/usb/gadget/legacy/inode.c if (ep->state == STATE_EP_ENABLED) ep 1551 drivers/usb/gadget/legacy/inode.c (void) usb_ep_disable (ep->ep); ep 1552 drivers/usb/gadget/legacy/inode.c ep->state = STATE_EP_UNBOUND; ep 1553 drivers/usb/gadget/legacy/inode.c usb_ep_free_request (ep->ep, ep->req); ep 1554 drivers/usb/gadget/legacy/inode.c ep->ep = NULL; ep 1555 drivers/usb/gadget/legacy/inode.c mutex_unlock(&ep->lock); ep 1557 drivers/usb/gadget/legacy/inode.c wake_up (&ep->wait); ep 1558 drivers/usb/gadget/legacy/inode.c put_ep (ep); ep 1578 drivers/usb/gadget/legacy/inode.c struct usb_ep *ep; ep 1581 drivers/usb/gadget/legacy/inode.c gadget_for_each_ep (ep, dev->gadget) { ep 1590 drivers/usb/gadget/legacy/inode.c strncpy (data->name, ep->name, sizeof (data->name) - 1); ep 1595 drivers/usb/gadget/legacy/inode.c data->ep = ep; ep 1596 drivers/usb/gadget/legacy/inode.c ep->driver_data = data; ep 1598 drivers/usb/gadget/legacy/inode.c data->req = usb_ep_alloc_request (ep, GFP_KERNEL); ep 1611 drivers/usb/gadget/legacy/inode.c usb_ep_free_request (ep, data->req); ep 14 drivers/usb/gadget/u_f.c struct usb_request *alloc_ep_req(struct usb_ep *ep, size_t len) ep 18 drivers/usb/gadget/u_f.c req = usb_ep_alloc_request(ep, GFP_ATOMIC); ep 20 drivers/usb/gadget/u_f.c req->length = usb_endpoint_dir_out(ep->desc) ? ep 21 drivers/usb/gadget/u_f.c usb_ep_align(ep, len) : len; ep 24 drivers/usb/gadget/u_f.c usb_ep_free_request(ep, req); ep 59 drivers/usb/gadget/u_f.h struct usb_request *alloc_ep_req(struct usb_ep *ep, size_t len); ep 62 drivers/usb/gadget/u_f.h static inline void free_ep_req(struct usb_ep *ep, struct usb_request *req) ep 67 drivers/usb/gadget/u_f.h usb_ep_free_request(ep, req); ep 498 drivers/usb/gadget/udc/amd5536udc.h struct usb_ep ep; ep 533 drivers/usb/gadget/udc/amd5536udc.h struct udc_ep ep[UDC_EP_NUM]; ep 592 drivers/usb/gadget/udc/amd5536udc.h void empty_req_queue(struct udc_ep *ep); ep 35 drivers/usb/gadget/udc/aspeed-vhub/core.c void ast_vhub_done(struct ast_vhub_ep *ep, struct ast_vhub_req *req, ep 40 drivers/usb/gadget/udc/aspeed-vhub/core.c EPVDBG(ep, "completing request @%p, status %d\n", req, status); ep 48 drivers/usb/gadget/udc/aspeed-vhub/core.c if (!WARN_ON(!ep->dev)) ep 49 drivers/usb/gadget/udc/aspeed-vhub/core.c usb_gadget_unmap_request(&ep->dev->gadget, ep 50 drivers/usb/gadget/udc/aspeed-vhub/core.c &req->req, ep->epn.is_in); ep 59 drivers/usb/gadget/udc/aspeed-vhub/core.c spin_unlock(&ep->vhub->lock); ep 60 drivers/usb/gadget/udc/aspeed-vhub/core.c usb_gadget_giveback_request(&ep->ep, &req->req); ep 61 drivers/usb/gadget/udc/aspeed-vhub/core.c spin_lock(&ep->vhub->lock); ep 65 drivers/usb/gadget/udc/aspeed-vhub/core.c void ast_vhub_nuke(struct ast_vhub_ep *ep, int status) ep 71 drivers/usb/gadget/udc/aspeed-vhub/core.c while (!list_empty(&ep->queue)) { ep 72 drivers/usb/gadget/udc/aspeed-vhub/core.c req = list_first_entry(&ep->queue, struct ast_vhub_req, queue); ep 73 drivers/usb/gadget/udc/aspeed-vhub/core.c ast_vhub_done(ep, req, status); ep 77 drivers/usb/gadget/udc/aspeed-vhub/core.c EPDBG(ep, "Nuked %d request(s)\n", count); ep 81 drivers/usb/gadget/udc/aspeed-vhub/dev.c struct ast_vhub_ep *ep = d->epns[i]; ep 83 drivers/usb/gadget/udc/aspeed-vhub/dev.c if (ep && (ep->epn.stalled || ep->epn.wedged)) { ep 84 drivers/usb/gadget/udc/aspeed-vhub/dev.c ep->epn.stalled = false; ep 85 drivers/usb/gadget/udc/aspeed-vhub/dev.c ep->epn.wedged = false; ep 86 drivers/usb/gadget/udc/aspeed-vhub/dev.c ast_vhub_update_epn_stall(ep); ep 132 drivers/usb/gadget/udc/aspeed-vhub/dev.c struct ast_vhub_ep *ep; ep 145 drivers/usb/gadget/udc/aspeed-vhub/dev.c ep = d->epns[ep_num - 1]; ep 146 drivers/usb/gadget/udc/aspeed-vhub/dev.c if (WARN_ON(!ep)) ep 149 drivers/usb/gadget/udc/aspeed-vhub/dev.c if (!ep->epn.enabled || !ep->ep.desc || ep->epn.is_iso || ep 150 drivers/usb/gadget/udc/aspeed-vhub/dev.c ep->epn.is_in != !!(wIndex & USB_DIR_IN)) ep 155 drivers/usb/gadget/udc/aspeed-vhub/dev.c ep->epn.stalled = is_set; ep 156 drivers/usb/gadget/udc/aspeed-vhub/dev.c ast_vhub_update_epn_stall(ep); ep 179 drivers/usb/gadget/udc/aspeed-vhub/dev.c struct ast_vhub_ep *ep; ep 187 drivers/usb/gadget/udc/aspeed-vhub/dev.c ep = d->epns[ep_num - 1]; ep 188 drivers/usb/gadget/udc/aspeed-vhub/dev.c if (!ep) ep 190 drivers/usb/gadget/udc/aspeed-vhub/dev.c if (!ep->epn.enabled || !ep->ep.desc || ep->epn.is_iso || ep 191 drivers/usb/gadget/udc/aspeed-vhub/dev.c ep->epn.is_in != !!(wIndex & USB_DIR_IN)) ep 193 drivers/usb/gadget/udc/aspeed-vhub/dev.c if (ep->epn.stalled) ep 212 drivers/usb/gadget/udc/aspeed-vhub/dev.c int ast_vhub_std_dev_request(struct ast_vhub_ep *ep, ep 215 drivers/usb/gadget/udc/aspeed-vhub/dev.c struct ast_vhub_dev *d = ep->dev; ep 220 drivers/usb/gadget/udc/aspeed-vhub/dev.c EPDBG(ep, ep 234 drivers/usb/gadget/udc/aspeed-vhub/dev.c d->gadget.speed = ep->vhub->speed; ep 254 drivers/usb/gadget/udc/aspeed-vhub/dev.c return ast_vhub_simple_reply(ep, 0, 0); ep 359 drivers/usb/gadget/udc/aspeed-vhub/dev.c struct ast_vhub_ep *ep; ep 430 drivers/usb/gadget/udc/aspeed-vhub/dev.c ep = ast_vhub_alloc_epn(d, addr); ep 431 drivers/usb/gadget/udc/aspeed-vhub/dev.c if (!ep) ep 434 drivers/usb/gadget/udc/aspeed-vhub/dev.c ep->epn.g_idx, addr); ep 436 drivers/usb/gadget/udc/aspeed-vhub/dev.c return &ep->ep; ep 568 drivers/usb/gadget/udc/aspeed-vhub/dev.c d->gadget.ep0 = &d->ep0.ep; ep 35 drivers/usb/gadget/udc/aspeed-vhub/ep0.c int ast_vhub_reply(struct ast_vhub_ep *ep, char *ptr, int len) ep 37 drivers/usb/gadget/udc/aspeed-vhub/ep0.c struct usb_request *req = &ep->ep0.req.req; ep 40 drivers/usb/gadget/udc/aspeed-vhub/ep0.c if (WARN_ON(ep->d_idx != 0)) ep 42 drivers/usb/gadget/udc/aspeed-vhub/ep0.c if (WARN_ON(!ep->ep0.dir_in)) ep 59 drivers/usb/gadget/udc/aspeed-vhub/ep0.c spin_unlock(&ep->vhub->lock); ep 60 drivers/usb/gadget/udc/aspeed-vhub/ep0.c if (ep->ep.ops->queue(&ep->ep, req, GFP_ATOMIC)) ep 64 drivers/usb/gadget/udc/aspeed-vhub/ep0.c spin_lock(&ep->vhub->lock); ep 68 drivers/usb/gadget/udc/aspeed-vhub/ep0.c int __ast_vhub_simple_reply(struct ast_vhub_ep *ep, int len, ...) ep 70 drivers/usb/gadget/udc/aspeed-vhub/ep0.c u8 *buffer = ep->buf; ep 82 drivers/usb/gadget/udc/aspeed-vhub/ep0.c return ast_vhub_reply(ep, NULL, len); ep 85 drivers/usb/gadget/udc/aspeed-vhub/ep0.c void ast_vhub_ep0_handle_setup(struct ast_vhub_ep *ep) ep 91 drivers/usb/gadget/udc/aspeed-vhub/ep0.c if (WARN_ON(ep->d_idx != 0)) ep 98 drivers/usb/gadget/udc/aspeed-vhub/ep0.c memcpy_fromio(&crq, ep->ep0.setup, sizeof(crq)); ep 100 drivers/usb/gadget/udc/aspeed-vhub/ep0.c EPDBG(ep, "SETUP packet %02x/%02x/%04x/%04x/%04x [%s] st=%d\n", ep 106 drivers/usb/gadget/udc/aspeed-vhub/ep0.c ep->ep0.state); ep 118 drivers/usb/gadget/udc/aspeed-vhub/ep0.c if (ep->ep0.state != ep0_state_token && ep 119 drivers/usb/gadget/udc/aspeed-vhub/ep0.c ep->ep0.state != ep0_state_stall) { ep 120 drivers/usb/gadget/udc/aspeed-vhub/ep0.c EPDBG(ep, "wrong state\n"); ep 121 drivers/usb/gadget/udc/aspeed-vhub/ep0.c ast_vhub_nuke(ep, -EIO); ep 125 drivers/usb/gadget/udc/aspeed-vhub/ep0.c ep->ep0.state = ep0_state_data; ep 126 drivers/usb/gadget/udc/aspeed-vhub/ep0.c ep->ep0.dir_in = !!(crq.bRequestType & USB_DIR_IN); ep 130 drivers/usb/gadget/udc/aspeed-vhub/ep0.c if (ep->dev == NULL) { ep 132 drivers/usb/gadget/udc/aspeed-vhub/ep0.c std_req_rc = ast_vhub_std_hub_request(ep, &crq); ep 134 drivers/usb/gadget/udc/aspeed-vhub/ep0.c std_req_rc = ast_vhub_class_hub_request(ep, &crq); ep 138 drivers/usb/gadget/udc/aspeed-vhub/ep0.c std_req_rc = ast_vhub_std_dev_request(ep, &crq); ep 153 drivers/usb/gadget/udc/aspeed-vhub/ep0.c if (WARN_ON(!ep->dev)) ep 155 drivers/usb/gadget/udc/aspeed-vhub/ep0.c if (ep->dev->driver) { ep 156 drivers/usb/gadget/udc/aspeed-vhub/ep0.c EPDBG(ep, "forwarding to gadget...\n"); ep 157 drivers/usb/gadget/udc/aspeed-vhub/ep0.c spin_unlock(&ep->vhub->lock); ep 158 drivers/usb/gadget/udc/aspeed-vhub/ep0.c rc = ep->dev->driver->setup(&ep->dev->gadget, &crq); ep 159 drivers/usb/gadget/udc/aspeed-vhub/ep0.c spin_lock(&ep->vhub->lock); ep 160 drivers/usb/gadget/udc/aspeed-vhub/ep0.c EPDBG(ep, "driver returned %d\n", rc); ep 162 drivers/usb/gadget/udc/aspeed-vhub/ep0.c EPDBG(ep, "no gadget for request !\n"); ep 168 drivers/usb/gadget/udc/aspeed-vhub/ep0.c EPDBG(ep, "stalling\n"); ep 169 drivers/usb/gadget/udc/aspeed-vhub/ep0.c writel(VHUB_EP0_CTRL_STALL, ep->ep0.ctlstat); ep 170 drivers/usb/gadget/udc/aspeed-vhub/ep0.c ep->ep0.state = ep0_state_stall; ep 171 drivers/usb/gadget/udc/aspeed-vhub/ep0.c ep->ep0.dir_in = false; ep 175 drivers/usb/gadget/udc/aspeed-vhub/ep0.c EPVDBG(ep, "sending [in] status with no data\n"); ep 176 drivers/usb/gadget/udc/aspeed-vhub/ep0.c writel(VHUB_EP0_TX_BUFF_RDY, ep->ep0.ctlstat); ep 177 drivers/usb/gadget/udc/aspeed-vhub/ep0.c ep->ep0.state = ep0_state_status; ep 178 drivers/usb/gadget/udc/aspeed-vhub/ep0.c ep->ep0.dir_in = false; ep 182 drivers/usb/gadget/udc/aspeed-vhub/ep0.c static void ast_vhub_ep0_do_send(struct ast_vhub_ep *ep, ep 196 drivers/usb/gadget/udc/aspeed-vhub/ep0.c EPVDBG(ep, "complete send %d/%d\n", ep 198 drivers/usb/gadget/udc/aspeed-vhub/ep0.c ep->ep0.state = ep0_state_status; ep 199 drivers/usb/gadget/udc/aspeed-vhub/ep0.c writel(VHUB_EP0_RX_BUFF_RDY, ep->ep0.ctlstat); ep 200 drivers/usb/gadget/udc/aspeed-vhub/ep0.c ast_vhub_done(ep, req, 0); ep 209 drivers/usb/gadget/udc/aspeed-vhub/ep0.c if (chunk > ep->ep.maxpacket) ep 210 drivers/usb/gadget/udc/aspeed-vhub/ep0.c chunk = ep->ep.maxpacket; ep 211 drivers/usb/gadget/udc/aspeed-vhub/ep0.c else if ((chunk < ep->ep.maxpacket) || !req->req.zero) ep 214 drivers/usb/gadget/udc/aspeed-vhub/ep0.c EPVDBG(ep, "send chunk=%d last=%d, req->act=%d mp=%d\n", ep 215 drivers/usb/gadget/udc/aspeed-vhub/ep0.c chunk, req->last_desc, req->req.actual, ep->ep.maxpacket); ep 222 drivers/usb/gadget/udc/aspeed-vhub/ep0.c memcpy(ep->buf, req->req.buf + req->req.actual, chunk); ep 224 drivers/usb/gadget/udc/aspeed-vhub/ep0.c vhub_dma_workaround(ep->buf); ep 228 drivers/usb/gadget/udc/aspeed-vhub/ep0.c writel(reg, ep->ep0.ctlstat); ep 229 drivers/usb/gadget/udc/aspeed-vhub/ep0.c writel(reg | VHUB_EP0_TX_BUFF_RDY, ep->ep0.ctlstat); ep 233 drivers/usb/gadget/udc/aspeed-vhub/ep0.c static void ast_vhub_ep0_rx_prime(struct ast_vhub_ep *ep) ep 235 drivers/usb/gadget/udc/aspeed-vhub/ep0.c EPVDBG(ep, "rx prime\n"); ep 238 drivers/usb/gadget/udc/aspeed-vhub/ep0.c writel(VHUB_EP0_RX_BUFF_RDY, ep->ep0.ctlstat); ep 241 drivers/usb/gadget/udc/aspeed-vhub/ep0.c static void ast_vhub_ep0_do_receive(struct ast_vhub_ep *ep, struct ast_vhub_req *req, ep 250 drivers/usb/gadget/udc/aspeed-vhub/ep0.c EPVDBG(ep, "receive got=%d remain=%d\n", len, remain); ep 254 drivers/usb/gadget/udc/aspeed-vhub/ep0.c EPDBG(ep, "receiving too much (ovf: %d) !\n", ep 260 drivers/usb/gadget/udc/aspeed-vhub/ep0.c memcpy(req->req.buf + req->req.actual, ep->buf, len); ep 264 drivers/usb/gadget/udc/aspeed-vhub/ep0.c if (len < ep->ep.maxpacket || len == remain) { ep 265 drivers/usb/gadget/udc/aspeed-vhub/ep0.c ep->ep0.state = ep0_state_status; ep 266 drivers/usb/gadget/udc/aspeed-vhub/ep0.c writel(VHUB_EP0_TX_BUFF_RDY, ep->ep0.ctlstat); ep 267 drivers/usb/gadget/udc/aspeed-vhub/ep0.c ast_vhub_done(ep, req, rc); ep 269 drivers/usb/gadget/udc/aspeed-vhub/ep0.c ast_vhub_ep0_rx_prime(ep); ep 272 drivers/usb/gadget/udc/aspeed-vhub/ep0.c void ast_vhub_ep0_handle_ack(struct ast_vhub_ep *ep, bool in_ack) ep 275 drivers/usb/gadget/udc/aspeed-vhub/ep0.c struct ast_vhub *vhub = ep->vhub; ep 281 drivers/usb/gadget/udc/aspeed-vhub/ep0.c stat = readl(ep->ep0.ctlstat); ep 284 drivers/usb/gadget/udc/aspeed-vhub/ep0.c req = list_first_entry_or_null(&ep->queue, struct ast_vhub_req, queue); ep 286 drivers/usb/gadget/udc/aspeed-vhub/ep0.c EPVDBG(ep, "ACK status=%08x,state=%d is_in=%d in_ack=%d req=%p\n", ep 287 drivers/usb/gadget/udc/aspeed-vhub/ep0.c stat, ep->ep0.state, ep->ep0.dir_in, in_ack, req); ep 289 drivers/usb/gadget/udc/aspeed-vhub/ep0.c switch(ep->ep0.state) { ep 294 drivers/usb/gadget/udc/aspeed-vhub/ep0.c ast_vhub_nuke(ep, -EINVAL); ep 301 drivers/usb/gadget/udc/aspeed-vhub/ep0.c if ((ep->ep0.dir_in && (stat & VHUB_EP0_TX_BUFF_RDY)) || ep 302 drivers/usb/gadget/udc/aspeed-vhub/ep0.c (!ep->ep0.dir_in && (stat & VHUB_EP0_RX_BUFF_RDY)) || ep 303 drivers/usb/gadget/udc/aspeed-vhub/ep0.c (ep->ep0.dir_in != in_ack)) { ep 319 drivers/usb/gadget/udc/aspeed-vhub/ep0.c if (ep->ep0.dir_in) ep 320 drivers/usb/gadget/udc/aspeed-vhub/ep0.c ast_vhub_ep0_do_send(ep, req); ep 322 drivers/usb/gadget/udc/aspeed-vhub/ep0.c ast_vhub_ep0_do_receive(ep, req, VHUB_EP0_RX_LEN(stat)); ep 328 drivers/usb/gadget/udc/aspeed-vhub/ep0.c ast_vhub_nuke(ep, -EINVAL); ep 336 drivers/usb/gadget/udc/aspeed-vhub/ep0.c if (ep->ep0.dir_in == in_ack) { ep 346 drivers/usb/gadget/udc/aspeed-vhub/ep0.c ast_vhub_nuke(ep, -EIO); ep 352 drivers/usb/gadget/udc/aspeed-vhub/ep0.c writel(VHUB_EP0_CTRL_STALL, ep->ep0.ctlstat); ep 353 drivers/usb/gadget/udc/aspeed-vhub/ep0.c ep->ep0.state = ep0_state_stall; ep 355 drivers/usb/gadget/udc/aspeed-vhub/ep0.c ep->ep0.state = ep0_state_token; ep 362 drivers/usb/gadget/udc/aspeed-vhub/ep0.c struct ast_vhub_ep *ep = to_ast_ep(u_ep); ep 363 drivers/usb/gadget/udc/aspeed-vhub/ep0.c struct ast_vhub *vhub = ep->vhub; ep 378 drivers/usb/gadget/udc/aspeed-vhub/ep0.c if (WARN_ON(ep->d_idx != 0)) ep 382 drivers/usb/gadget/udc/aspeed-vhub/ep0.c if (ep->dev && !ep->dev->enabled) ep 391 drivers/usb/gadget/udc/aspeed-vhub/ep0.c EPVDBG(ep, "enqueue req @%p\n", req); ep 392 drivers/usb/gadget/udc/aspeed-vhub/ep0.c EPVDBG(ep, " l=%d zero=%d noshort=%d is_in=%d\n", ep 394 drivers/usb/gadget/udc/aspeed-vhub/ep0.c u_req->short_not_ok, ep->ep0.dir_in); ep 405 drivers/usb/gadget/udc/aspeed-vhub/ep0.c if (!list_empty(&ep->queue) || ep 406 drivers/usb/gadget/udc/aspeed-vhub/ep0.c ep->ep0.state == ep0_state_token || ep 407 drivers/usb/gadget/udc/aspeed-vhub/ep0.c ep->ep0.state == ep0_state_stall) { ep 409 drivers/usb/gadget/udc/aspeed-vhub/ep0.c EPVDBG(ep, "EP0: list_empty=%d state=%d\n", ep 410 drivers/usb/gadget/udc/aspeed-vhub/ep0.c list_empty(&ep->queue), ep->ep0.state); ep 416 drivers/usb/gadget/udc/aspeed-vhub/ep0.c list_add_tail(&req->queue, &ep->queue); ep 418 drivers/usb/gadget/udc/aspeed-vhub/ep0.c if (ep->ep0.dir_in) { ep 420 drivers/usb/gadget/udc/aspeed-vhub/ep0.c ast_vhub_ep0_do_send(ep, req); ep 423 drivers/usb/gadget/udc/aspeed-vhub/ep0.c EPVDBG(ep, "0-length rx completion\n"); ep 424 drivers/usb/gadget/udc/aspeed-vhub/ep0.c ep->ep0.state = ep0_state_status; ep 425 drivers/usb/gadget/udc/aspeed-vhub/ep0.c writel(VHUB_EP0_TX_BUFF_RDY, ep->ep0.ctlstat); ep 426 drivers/usb/gadget/udc/aspeed-vhub/ep0.c ast_vhub_done(ep, req, 0); ep 429 drivers/usb/gadget/udc/aspeed-vhub/ep0.c ast_vhub_ep0_rx_prime(ep); ep 439 drivers/usb/gadget/udc/aspeed-vhub/ep0.c struct ast_vhub_ep *ep = to_ast_ep(u_ep); ep 440 drivers/usb/gadget/udc/aspeed-vhub/ep0.c struct ast_vhub *vhub = ep->vhub; ep 448 drivers/usb/gadget/udc/aspeed-vhub/ep0.c req = list_first_entry_or_null(&ep->queue, struct ast_vhub_req, queue); ep 452 drivers/usb/gadget/udc/aspeed-vhub/ep0.c EPVDBG(ep, "dequeue req @%p\n", req); ep 458 drivers/usb/gadget/udc/aspeed-vhub/ep0.c ast_vhub_done(ep, req, -ECONNRESET); ep 461 drivers/usb/gadget/udc/aspeed-vhub/ep0.c writel(VHUB_EP0_CTRL_STALL, ep->ep0.ctlstat); ep 462 drivers/usb/gadget/udc/aspeed-vhub/ep0.c ep->ep0.state = ep0_state_status; ep 463 drivers/usb/gadget/udc/aspeed-vhub/ep0.c ep->ep0.dir_in = false; ep 480 drivers/usb/gadget/udc/aspeed-vhub/ep0.c struct ast_vhub_ep *ep = &dev->ep0; ep 482 drivers/usb/gadget/udc/aspeed-vhub/ep0.c ast_vhub_nuke(ep, -EIO); ep 483 drivers/usb/gadget/udc/aspeed-vhub/ep0.c ep->ep0.state = ep0_state_token; ep 487 drivers/usb/gadget/udc/aspeed-vhub/ep0.c void ast_vhub_init_ep0(struct ast_vhub *vhub, struct ast_vhub_ep *ep, ep 490 drivers/usb/gadget/udc/aspeed-vhub/ep0.c memset(ep, 0, sizeof(*ep)); ep 492 drivers/usb/gadget/udc/aspeed-vhub/ep0.c INIT_LIST_HEAD(&ep->ep.ep_list); ep 493 drivers/usb/gadget/udc/aspeed-vhub/ep0.c INIT_LIST_HEAD(&ep->queue); ep 494 drivers/usb/gadget/udc/aspeed-vhub/ep0.c ep->ep.ops = &ast_vhub_ep0_ops; ep 495 drivers/usb/gadget/udc/aspeed-vhub/ep0.c ep->ep.name = "ep0"; ep 496 drivers/usb/gadget/udc/aspeed-vhub/ep0.c ep->ep.caps.type_control = true; ep 497 drivers/usb/gadget/udc/aspeed-vhub/ep0.c usb_ep_set_maxpacket_limit(&ep->ep, AST_VHUB_EP0_MAX_PACKET); ep 498 drivers/usb/gadget/udc/aspeed-vhub/ep0.c ep->d_idx = 0; ep 499 drivers/usb/gadget/udc/aspeed-vhub/ep0.c ep->dev = dev; ep 500 drivers/usb/gadget/udc/aspeed-vhub/ep0.c ep->vhub = vhub; ep 501 drivers/usb/gadget/udc/aspeed-vhub/ep0.c ep->ep0.state = ep0_state_token; ep 502 drivers/usb/gadget/udc/aspeed-vhub/ep0.c INIT_LIST_HEAD(&ep->ep0.req.queue); ep 503 drivers/usb/gadget/udc/aspeed-vhub/ep0.c ep->ep0.req.internal = true; ep 507 drivers/usb/gadget/udc/aspeed-vhub/ep0.c ep->ep0.ctlstat = dev->regs + AST_VHUB_DEV_EP0_CTRL; ep 508 drivers/usb/gadget/udc/aspeed-vhub/ep0.c ep->ep0.setup = vhub->regs + ep 510 drivers/usb/gadget/udc/aspeed-vhub/ep0.c ep->buf = vhub->ep0_bufs + ep 512 drivers/usb/gadget/udc/aspeed-vhub/ep0.c ep->buf_dma = vhub->ep0_bufs_dma + ep 515 drivers/usb/gadget/udc/aspeed-vhub/ep0.c ep->ep0.ctlstat = vhub->regs + AST_VHUB_EP0_CTRL; ep 516 drivers/usb/gadget/udc/aspeed-vhub/ep0.c ep->ep0.setup = vhub->regs + AST_VHUB_SETUP0; ep 517 drivers/usb/gadget/udc/aspeed-vhub/ep0.c ep->buf = vhub->ep0_bufs; ep 518 drivers/usb/gadget/udc/aspeed-vhub/ep0.c ep->buf_dma = vhub->ep0_bufs_dma; ep 38 drivers/usb/gadget/udc/aspeed-vhub/epn.c #define CHECK(ep, expr, fmt...) \ ep 40 drivers/usb/gadget/udc/aspeed-vhub/epn.c if (!(expr)) EPDBG(ep, "CHECK:" fmt); \ ep 43 drivers/usb/gadget/udc/aspeed-vhub/epn.c #define CHECK(ep, expr, fmt...) do { } while(0) ep 46 drivers/usb/gadget/udc/aspeed-vhub/epn.c static void ast_vhub_epn_kick(struct ast_vhub_ep *ep, struct ast_vhub_req *req) ep 57 drivers/usb/gadget/udc/aspeed-vhub/epn.c if (chunk > ep->ep.maxpacket) ep 58 drivers/usb/gadget/udc/aspeed-vhub/epn.c chunk = ep->ep.maxpacket; ep 59 drivers/usb/gadget/udc/aspeed-vhub/epn.c else if ((chunk < ep->ep.maxpacket) || !req->req.zero) ep 62 drivers/usb/gadget/udc/aspeed-vhub/epn.c EPVDBG(ep, "kick req %p act=%d/%d chunk=%d last=%d\n", ep 69 drivers/usb/gadget/udc/aspeed-vhub/epn.c if (ep->epn.is_in) { ep 70 drivers/usb/gadget/udc/aspeed-vhub/epn.c memcpy(ep->buf, req->req.buf + act, chunk); ep 71 drivers/usb/gadget/udc/aspeed-vhub/epn.c vhub_dma_workaround(ep->buf); ep 73 drivers/usb/gadget/udc/aspeed-vhub/epn.c writel(ep->buf_dma, ep->epn.regs + AST_VHUB_EP_DESC_BASE); ep 75 drivers/usb/gadget/udc/aspeed-vhub/epn.c if (ep->epn.is_in) ep 77 drivers/usb/gadget/udc/aspeed-vhub/epn.c writel(req->req.dma + act, ep->epn.regs + AST_VHUB_EP_DESC_BASE); ep 83 drivers/usb/gadget/udc/aspeed-vhub/epn.c ep->epn.regs + AST_VHUB_EP_DESC_STATUS); ep 85 drivers/usb/gadget/udc/aspeed-vhub/epn.c ep->epn.regs + AST_VHUB_EP_DESC_STATUS); ep 88 drivers/usb/gadget/udc/aspeed-vhub/epn.c static void ast_vhub_epn_handle_ack(struct ast_vhub_ep *ep) ep 95 drivers/usb/gadget/udc/aspeed-vhub/epn.c stat = readl(ep->epn.regs + AST_VHUB_EP_DESC_STATUS); ep 98 drivers/usb/gadget/udc/aspeed-vhub/epn.c req = list_first_entry_or_null(&ep->queue, struct ast_vhub_req, queue); ep 100 drivers/usb/gadget/udc/aspeed-vhub/epn.c EPVDBG(ep, "ACK status=%08x is_in=%d, req=%p (active=%d)\n", ep 101 drivers/usb/gadget/udc/aspeed-vhub/epn.c stat, ep->epn.is_in, req, req ? req->active : 0); ep 116 drivers/usb/gadget/udc/aspeed-vhub/epn.c EPDBG(ep, "DMA read pointer not 0 !\n"); ep 127 drivers/usb/gadget/udc/aspeed-vhub/epn.c if (!req->req.dma && !ep->epn.is_in && len) ep 128 drivers/usb/gadget/udc/aspeed-vhub/epn.c memcpy(req->req.buf + req->req.actual, ep->buf, len); ep 134 drivers/usb/gadget/udc/aspeed-vhub/epn.c if (len < ep->ep.maxpacket) ep 139 drivers/usb/gadget/udc/aspeed-vhub/epn.c ast_vhub_done(ep, req, 0); ep 140 drivers/usb/gadget/udc/aspeed-vhub/epn.c req = list_first_entry_or_null(&ep->queue, struct ast_vhub_req, ep 152 drivers/usb/gadget/udc/aspeed-vhub/epn.c ast_vhub_epn_kick(ep, req); ep 155 drivers/usb/gadget/udc/aspeed-vhub/epn.c static inline unsigned int ast_vhub_count_free_descs(struct ast_vhub_ep *ep) ep 162 drivers/usb/gadget/udc/aspeed-vhub/epn.c return (ep->epn.d_last + AST_VHUB_DESCS_COUNT - ep->epn.d_next - 1) & ep 166 drivers/usb/gadget/udc/aspeed-vhub/epn.c static void ast_vhub_epn_kick_desc(struct ast_vhub_ep *ep, ep 181 drivers/usb/gadget/udc/aspeed-vhub/epn.c EPVDBG(ep, "kick act=%d/%d chunk_max=%d free_descs=%d\n", ep 182 drivers/usb/gadget/udc/aspeed-vhub/epn.c act, len, ep->epn.chunk_max, ast_vhub_count_free_descs(ep)); ep 185 drivers/usb/gadget/udc/aspeed-vhub/epn.c while (ast_vhub_count_free_descs(ep) && req->last_desc < 0) { ep 189 drivers/usb/gadget/udc/aspeed-vhub/epn.c d_num = ep->epn.d_next; ep 190 drivers/usb/gadget/udc/aspeed-vhub/epn.c desc = &ep->epn.descs[d_num]; ep 191 drivers/usb/gadget/udc/aspeed-vhub/epn.c ep->epn.d_next = (d_num + 1) & (AST_VHUB_DESCS_COUNT - 1); ep 195 drivers/usb/gadget/udc/aspeed-vhub/epn.c if (chunk <= ep->epn.chunk_max) { ep 204 drivers/usb/gadget/udc/aspeed-vhub/epn.c if (!chunk || !req->req.zero || (chunk % ep->ep.maxpacket) != 0) ep 207 drivers/usb/gadget/udc/aspeed-vhub/epn.c chunk = ep->epn.chunk_max; ep 210 drivers/usb/gadget/udc/aspeed-vhub/epn.c EPVDBG(ep, " chunk: act=%d/%d chunk=%d last=%d desc=%d free=%d\n", ep 212 drivers/usb/gadget/udc/aspeed-vhub/epn.c ast_vhub_count_free_descs(ep)); ep 228 drivers/usb/gadget/udc/aspeed-vhub/epn.c if (req->last_desc >= 0 || !ast_vhub_count_free_descs(ep)) ep 239 drivers/usb/gadget/udc/aspeed-vhub/epn.c writel(VHUB_EP_DMA_SET_CPU_WPTR(ep->epn.d_next), ep 240 drivers/usb/gadget/udc/aspeed-vhub/epn.c ep->epn.regs + AST_VHUB_EP_DESC_STATUS); ep 242 drivers/usb/gadget/udc/aspeed-vhub/epn.c EPVDBG(ep, "HW kicked, d_next=%d dstat=%08x\n", ep 243 drivers/usb/gadget/udc/aspeed-vhub/epn.c ep->epn.d_next, readl(ep->epn.regs + AST_VHUB_EP_DESC_STATUS)); ep 246 drivers/usb/gadget/udc/aspeed-vhub/epn.c static void ast_vhub_epn_handle_ack_desc(struct ast_vhub_ep *ep) ep 254 drivers/usb/gadget/udc/aspeed-vhub/epn.c stat = readl(ep->epn.regs + AST_VHUB_EP_DESC_STATUS); ep 255 drivers/usb/gadget/udc/aspeed-vhub/epn.c stat1 = readl(ep->epn.regs + AST_VHUB_EP_DESC_STATUS); ep 262 drivers/usb/gadget/udc/aspeed-vhub/epn.c req = list_first_entry_or_null(&ep->queue, struct ast_vhub_req, queue); ep 264 drivers/usb/gadget/udc/aspeed-vhub/epn.c EPVDBG(ep, "ACK status=%08x is_in=%d ep->d_last=%d..%d\n", ep 265 drivers/usb/gadget/udc/aspeed-vhub/epn.c stat, ep->epn.is_in, ep->epn.d_last, d_last); ep 268 drivers/usb/gadget/udc/aspeed-vhub/epn.c while (ep->epn.d_last != d_last) { ep 274 drivers/usb/gadget/udc/aspeed-vhub/epn.c d_num = ep->epn.d_last; ep 275 drivers/usb/gadget/udc/aspeed-vhub/epn.c desc = &ep->epn.descs[d_num]; ep 276 drivers/usb/gadget/udc/aspeed-vhub/epn.c ep->epn.d_last = (d_num + 1) & (AST_VHUB_DESCS_COUNT - 1); ep 281 drivers/usb/gadget/udc/aspeed-vhub/epn.c EPVDBG(ep, " desc %d len=%d req=%p (act=%d)\n", ep 293 drivers/usb/gadget/udc/aspeed-vhub/epn.c CHECK(ep, is_last_desc == (len < ep->ep.maxpacket || ep 299 drivers/usb/gadget/udc/aspeed-vhub/epn.c req->req.zero, ep->ep.maxpacket); ep 307 drivers/usb/gadget/udc/aspeed-vhub/epn.c CHECK(ep, d_last == ep->epn.d_last, ep 309 drivers/usb/gadget/udc/aspeed-vhub/epn.c d_last, ep->epn.d_last); ep 312 drivers/usb/gadget/udc/aspeed-vhub/epn.c ast_vhub_done(ep, req, 0); ep 313 drivers/usb/gadget/udc/aspeed-vhub/epn.c req = list_first_entry_or_null(&ep->queue, ep 322 drivers/usb/gadget/udc/aspeed-vhub/epn.c ast_vhub_epn_kick_desc(ep, req); ep 325 drivers/usb/gadget/udc/aspeed-vhub/epn.c void ast_vhub_epn_ack_irq(struct ast_vhub_ep *ep) ep 327 drivers/usb/gadget/udc/aspeed-vhub/epn.c if (ep->epn.desc_mode) ep 328 drivers/usb/gadget/udc/aspeed-vhub/epn.c ast_vhub_epn_handle_ack_desc(ep); ep 330 drivers/usb/gadget/udc/aspeed-vhub/epn.c ast_vhub_epn_handle_ack(ep); ep 337 drivers/usb/gadget/udc/aspeed-vhub/epn.c struct ast_vhub_ep *ep = to_ast_ep(u_ep); ep 338 drivers/usb/gadget/udc/aspeed-vhub/epn.c struct ast_vhub *vhub = ep->vhub; ep 354 drivers/usb/gadget/udc/aspeed-vhub/epn.c if (!ep->epn.enabled || !u_ep->desc || !ep->dev || !ep->d_idx || ep 355 drivers/usb/gadget/udc/aspeed-vhub/epn.c !ep->dev->enabled) { ep 356 drivers/usb/gadget/udc/aspeed-vhub/epn.c EPDBG(ep, "Enqueuing request on wrong or disabled EP\n"); ep 376 drivers/usb/gadget/udc/aspeed-vhub/epn.c if (ep->epn.desc_mode || ep 378 drivers/usb/gadget/udc/aspeed-vhub/epn.c (ep->epn.is_in || !(u_req->length & (u_ep->maxpacket - 1))))) { ep 379 drivers/usb/gadget/udc/aspeed-vhub/epn.c rc = usb_gadget_map_request(&ep->dev->gadget, u_req, ep 380 drivers/usb/gadget/udc/aspeed-vhub/epn.c ep->epn.is_in); ep 389 drivers/usb/gadget/udc/aspeed-vhub/epn.c EPVDBG(ep, "enqueue req @%p\n", req); ep 390 drivers/usb/gadget/udc/aspeed-vhub/epn.c EPVDBG(ep, " l=%d dma=0x%x zero=%d noshort=%d noirq=%d is_in=%d\n", ep 393 drivers/usb/gadget/udc/aspeed-vhub/epn.c ep->epn.is_in); ep 402 drivers/usb/gadget/udc/aspeed-vhub/epn.c empty = list_empty(&ep->queue); ep 405 drivers/usb/gadget/udc/aspeed-vhub/epn.c list_add_tail(&req->queue, &ep->queue); ep 407 drivers/usb/gadget/udc/aspeed-vhub/epn.c if (ep->epn.desc_mode) ep 408 drivers/usb/gadget/udc/aspeed-vhub/epn.c ast_vhub_epn_kick_desc(ep, req); ep 410 drivers/usb/gadget/udc/aspeed-vhub/epn.c ast_vhub_epn_kick(ep, req); ep 417 drivers/usb/gadget/udc/aspeed-vhub/epn.c static void ast_vhub_stop_active_req(struct ast_vhub_ep *ep, ep 423 drivers/usb/gadget/udc/aspeed-vhub/epn.c writel(0, ep->epn.regs + AST_VHUB_EP_DMA_CTLSTAT); ep 427 drivers/usb/gadget/udc/aspeed-vhub/epn.c state = readl(ep->epn.regs + AST_VHUB_EP_DMA_CTLSTAT); ep 435 drivers/usb/gadget/udc/aspeed-vhub/epn.c dev_warn(&ep->vhub->pdev->dev, "Timeout waiting for DMA\n"); ep 442 drivers/usb/gadget/udc/aspeed-vhub/epn.c if (ep->epn.desc_mode) { ep 453 drivers/usb/gadget/udc/aspeed-vhub/epn.c reg = VHUB_EP_DMA_SET_RPTR(ep->epn.d_next) | ep 454 drivers/usb/gadget/udc/aspeed-vhub/epn.c VHUB_EP_DMA_SET_CPU_WPTR(ep->epn.d_next); ep 455 drivers/usb/gadget/udc/aspeed-vhub/epn.c writel(reg, ep->epn.regs + AST_VHUB_EP_DESC_STATUS); ep 458 drivers/usb/gadget/udc/aspeed-vhub/epn.c writel(ep->epn.dma_conf, ep 459 drivers/usb/gadget/udc/aspeed-vhub/epn.c ep->epn.regs + AST_VHUB_EP_DMA_CTLSTAT); ep 462 drivers/usb/gadget/udc/aspeed-vhub/epn.c writel(ep->epn.dma_conf, ep 463 drivers/usb/gadget/udc/aspeed-vhub/epn.c ep->epn.regs + AST_VHUB_EP_DMA_CTLSTAT); ep 469 drivers/usb/gadget/udc/aspeed-vhub/epn.c struct ast_vhub_ep *ep = to_ast_ep(u_ep); ep 470 drivers/usb/gadget/udc/aspeed-vhub/epn.c struct ast_vhub *vhub = ep->vhub; ep 478 drivers/usb/gadget/udc/aspeed-vhub/epn.c list_for_each_entry (req, &ep->queue, queue) { ep 484 drivers/usb/gadget/udc/aspeed-vhub/epn.c EPVDBG(ep, "dequeue req @%p active=%d\n", ep 487 drivers/usb/gadget/udc/aspeed-vhub/epn.c ast_vhub_stop_active_req(ep, true); ep 488 drivers/usb/gadget/udc/aspeed-vhub/epn.c ast_vhub_done(ep, req, -ECONNRESET); ep 496 drivers/usb/gadget/udc/aspeed-vhub/epn.c void ast_vhub_update_epn_stall(struct ast_vhub_ep *ep) ep 500 drivers/usb/gadget/udc/aspeed-vhub/epn.c if (WARN_ON(ep->d_idx == 0)) ep 502 drivers/usb/gadget/udc/aspeed-vhub/epn.c reg = readl(ep->epn.regs + AST_VHUB_EP_CONFIG); ep 503 drivers/usb/gadget/udc/aspeed-vhub/epn.c if (ep->epn.stalled || ep->epn.wedged) ep 507 drivers/usb/gadget/udc/aspeed-vhub/epn.c writel(reg, ep->epn.regs + AST_VHUB_EP_CONFIG); ep 509 drivers/usb/gadget/udc/aspeed-vhub/epn.c if (!ep->epn.stalled && !ep->epn.wedged) ep 510 drivers/usb/gadget/udc/aspeed-vhub/epn.c writel(VHUB_EP_TOGGLE_SET_EPNUM(ep->epn.g_idx), ep 511 drivers/usb/gadget/udc/aspeed-vhub/epn.c ep->vhub->regs + AST_VHUB_EP_TOGGLE); ep 517 drivers/usb/gadget/udc/aspeed-vhub/epn.c struct ast_vhub_ep *ep = to_ast_ep(u_ep); ep 518 drivers/usb/gadget/udc/aspeed-vhub/epn.c struct ast_vhub *vhub = ep->vhub; ep 521 drivers/usb/gadget/udc/aspeed-vhub/epn.c EPDBG(ep, "Set halt (%d) & wedge (%d)\n", halt, wedge); ep 525 drivers/usb/gadget/udc/aspeed-vhub/epn.c if (ep->d_idx == 0) ep 527 drivers/usb/gadget/udc/aspeed-vhub/epn.c if (ep->epn.is_iso) ep 533 drivers/usb/gadget/udc/aspeed-vhub/epn.c if (halt && ep->epn.is_in && !list_empty(&ep->queue)) { ep 537 drivers/usb/gadget/udc/aspeed-vhub/epn.c ep->epn.stalled = halt; ep 538 drivers/usb/gadget/udc/aspeed-vhub/epn.c ep->epn.wedged = wedge; ep 539 drivers/usb/gadget/udc/aspeed-vhub/epn.c ast_vhub_update_epn_stall(ep); ep 558 drivers/usb/gadget/udc/aspeed-vhub/epn.c struct ast_vhub_ep *ep = to_ast_ep(u_ep); ep 559 drivers/usb/gadget/udc/aspeed-vhub/epn.c struct ast_vhub *vhub = ep->vhub; ep 563 drivers/usb/gadget/udc/aspeed-vhub/epn.c EPDBG(ep, "Disabling !\n"); ep 567 drivers/usb/gadget/udc/aspeed-vhub/epn.c ep->epn.enabled = false; ep 570 drivers/usb/gadget/udc/aspeed-vhub/epn.c ast_vhub_stop_active_req(ep, false); ep 573 drivers/usb/gadget/udc/aspeed-vhub/epn.c writel(0, ep->epn.regs + AST_VHUB_EP_CONFIG); ep 576 drivers/usb/gadget/udc/aspeed-vhub/epn.c imask = VHUB_EP_IRQ(ep->epn.g_idx); ep 583 drivers/usb/gadget/udc/aspeed-vhub/epn.c ast_vhub_nuke(ep, -ESHUTDOWN); ep 586 drivers/usb/gadget/udc/aspeed-vhub/epn.c ep->ep.desc = NULL; ep 596 drivers/usb/gadget/udc/aspeed-vhub/epn.c struct ast_vhub_ep *ep = to_ast_ep(u_ep); ep 608 drivers/usb/gadget/udc/aspeed-vhub/epn.c if (!ep->d_idx || !ep->dev || ep 610 drivers/usb/gadget/udc/aspeed-vhub/epn.c maxpacket == 0 || maxpacket > ep->ep.maxpacket) { ep 611 drivers/usb/gadget/udc/aspeed-vhub/epn.c EPDBG(ep, "Invalid EP enable,d_idx=%d,dev=%p,type=%d,mp=%d/%d\n", ep 612 drivers/usb/gadget/udc/aspeed-vhub/epn.c ep->d_idx, ep->dev, desc->bDescriptorType, ep 613 drivers/usb/gadget/udc/aspeed-vhub/epn.c maxpacket, ep->ep.maxpacket); ep 616 drivers/usb/gadget/udc/aspeed-vhub/epn.c if (ep->d_idx != usb_endpoint_num(desc)) { ep 617 drivers/usb/gadget/udc/aspeed-vhub/epn.c EPDBG(ep, "EP number mismatch !\n"); ep 621 drivers/usb/gadget/udc/aspeed-vhub/epn.c if (ep->epn.enabled) { ep 622 drivers/usb/gadget/udc/aspeed-vhub/epn.c EPDBG(ep, "Already enabled\n"); ep 625 drivers/usb/gadget/udc/aspeed-vhub/epn.c dev = ep->dev; ep 626 drivers/usb/gadget/udc/aspeed-vhub/epn.c vhub = ep->vhub; ep 630 drivers/usb/gadget/udc/aspeed-vhub/epn.c EPDBG(ep, "Bogus device state: driver=%p speed=%d\n", ep 636 drivers/usb/gadget/udc/aspeed-vhub/epn.c ep->epn.is_in = usb_endpoint_dir_in(desc); ep 637 drivers/usb/gadget/udc/aspeed-vhub/epn.c ep->ep.maxpacket = maxpacket; ep 639 drivers/usb/gadget/udc/aspeed-vhub/epn.c ep->epn.d_next = ep->epn.d_last = 0; ep 640 drivers/usb/gadget/udc/aspeed-vhub/epn.c ep->epn.is_iso = false; ep 641 drivers/usb/gadget/udc/aspeed-vhub/epn.c ep->epn.stalled = false; ep 642 drivers/usb/gadget/udc/aspeed-vhub/epn.c ep->epn.wedged = false; ep 644 drivers/usb/gadget/udc/aspeed-vhub/epn.c EPDBG(ep, "Enabling [%s] %s num %d maxpacket=%d\n", ep 645 drivers/usb/gadget/udc/aspeed-vhub/epn.c ep->epn.is_in ? "in" : "out", usb_ep_type_string(type), ep 649 drivers/usb/gadget/udc/aspeed-vhub/epn.c ep->epn.desc_mode = ep->epn.descs && ep->epn.is_in; ep 650 drivers/usb/gadget/udc/aspeed-vhub/epn.c if (ep->epn.desc_mode) ep 651 drivers/usb/gadget/udc/aspeed-vhub/epn.c memset(ep->epn.descs, 0, 8 * AST_VHUB_DESCS_COUNT); ep 657 drivers/usb/gadget/udc/aspeed-vhub/epn.c ep->epn.chunk_max = ep->ep.maxpacket; ep 658 drivers/usb/gadget/udc/aspeed-vhub/epn.c if (ep->epn.is_in) { ep 659 drivers/usb/gadget/udc/aspeed-vhub/epn.c ep->epn.chunk_max <<= 3; ep 660 drivers/usb/gadget/udc/aspeed-vhub/epn.c while (ep->epn.chunk_max > 4095) ep 661 drivers/usb/gadget/udc/aspeed-vhub/epn.c ep->epn.chunk_max -= ep->ep.maxpacket; ep 666 drivers/usb/gadget/udc/aspeed-vhub/epn.c EPDBG(ep, "Only one control endpoint\n"); ep 676 drivers/usb/gadget/udc/aspeed-vhub/epn.c ep->epn.is_iso = true; ep 685 drivers/usb/gadget/udc/aspeed-vhub/epn.c if (!ep->epn.is_in) ep 690 drivers/usb/gadget/udc/aspeed-vhub/epn.c EPVDBG(ep, "config=%08x\n", ep_conf); ep 695 drivers/usb/gadget/udc/aspeed-vhub/epn.c writel(0, ep->epn.regs + AST_VHUB_EP_CONFIG); ep 697 drivers/usb/gadget/udc/aspeed-vhub/epn.c ep->epn.regs + AST_VHUB_EP_DMA_CTLSTAT); ep 700 drivers/usb/gadget/udc/aspeed-vhub/epn.c writel(ep_conf, ep->epn.regs + AST_VHUB_EP_CONFIG); ep 702 drivers/usb/gadget/udc/aspeed-vhub/epn.c if (ep->epn.desc_mode) { ep 704 drivers/usb/gadget/udc/aspeed-vhub/epn.c writel(0, ep->epn.regs + AST_VHUB_EP_DESC_STATUS); ep 707 drivers/usb/gadget/udc/aspeed-vhub/epn.c writel(ep->epn.descs_dma, ep 708 drivers/usb/gadget/udc/aspeed-vhub/epn.c ep->epn.regs + AST_VHUB_EP_DESC_BASE); ep 711 drivers/usb/gadget/udc/aspeed-vhub/epn.c ep->epn.dma_conf = VHUB_EP_DMA_DESC_MODE; ep 712 drivers/usb/gadget/udc/aspeed-vhub/epn.c if (ep->epn.is_in) ep 713 drivers/usb/gadget/udc/aspeed-vhub/epn.c ep->epn.dma_conf |= VHUB_EP_DMA_IN_LONG_MODE; ep 716 drivers/usb/gadget/udc/aspeed-vhub/epn.c writel(ep->epn.dma_conf | VHUB_EP_DMA_CTRL_RESET, ep 717 drivers/usb/gadget/udc/aspeed-vhub/epn.c ep->epn.regs + AST_VHUB_EP_DMA_CTLSTAT); ep 720 drivers/usb/gadget/udc/aspeed-vhub/epn.c writel(ep->epn.dma_conf, ep 721 drivers/usb/gadget/udc/aspeed-vhub/epn.c ep->epn.regs + AST_VHUB_EP_DMA_CTLSTAT); ep 724 drivers/usb/gadget/udc/aspeed-vhub/epn.c ep->epn.dma_conf = VHUB_EP_DMA_SINGLE_STAGE; ep 727 drivers/usb/gadget/udc/aspeed-vhub/epn.c writel(ep->epn.dma_conf | VHUB_EP_DMA_CTRL_RESET, ep 728 drivers/usb/gadget/udc/aspeed-vhub/epn.c ep->epn.regs + AST_VHUB_EP_DMA_CTLSTAT); ep 729 drivers/usb/gadget/udc/aspeed-vhub/epn.c writel(ep->epn.dma_conf, ep 730 drivers/usb/gadget/udc/aspeed-vhub/epn.c ep->epn.regs + AST_VHUB_EP_DMA_CTLSTAT); ep 731 drivers/usb/gadget/udc/aspeed-vhub/epn.c writel(0, ep->epn.regs + AST_VHUB_EP_DESC_STATUS); ep 735 drivers/usb/gadget/udc/aspeed-vhub/epn.c writel(VHUB_EP_TOGGLE_SET_EPNUM(ep->epn.g_idx), ep 739 drivers/usb/gadget/udc/aspeed-vhub/epn.c imask = VHUB_EP_IRQ(ep->epn.g_idx); ep 746 drivers/usb/gadget/udc/aspeed-vhub/epn.c ep->epn.enabled = true; ep 755 drivers/usb/gadget/udc/aspeed-vhub/epn.c struct ast_vhub_ep *ep = to_ast_ep(u_ep); ep 757 drivers/usb/gadget/udc/aspeed-vhub/epn.c if (WARN_ON(!ep->dev || !ep->d_idx)) ep 760 drivers/usb/gadget/udc/aspeed-vhub/epn.c EPDBG(ep, "Releasing endpoint\n"); ep 763 drivers/usb/gadget/udc/aspeed-vhub/epn.c list_del_init(&ep->ep.ep_list); ep 766 drivers/usb/gadget/udc/aspeed-vhub/epn.c ep->dev->epns[ep->d_idx - 1] = NULL; ep 769 drivers/usb/gadget/udc/aspeed-vhub/epn.c kfree(ep->ep.name); ep 770 drivers/usb/gadget/udc/aspeed-vhub/epn.c ep->ep.name = NULL; ep 771 drivers/usb/gadget/udc/aspeed-vhub/epn.c dma_free_coherent(&ep->vhub->pdev->dev, ep 774 drivers/usb/gadget/udc/aspeed-vhub/epn.c ep->buf, ep->buf_dma); ep 775 drivers/usb/gadget/udc/aspeed-vhub/epn.c ep->buf = NULL; ep 776 drivers/usb/gadget/udc/aspeed-vhub/epn.c ep->epn.descs = NULL; ep 779 drivers/usb/gadget/udc/aspeed-vhub/epn.c ep->dev = NULL; ep 797 drivers/usb/gadget/udc/aspeed-vhub/epn.c struct ast_vhub_ep *ep; ep 812 drivers/usb/gadget/udc/aspeed-vhub/epn.c ep = &vhub->epns[i]; ep 813 drivers/usb/gadget/udc/aspeed-vhub/epn.c ep->dev = d; ep 817 drivers/usb/gadget/udc/aspeed-vhub/epn.c INIT_LIST_HEAD(&ep->queue); ep 818 drivers/usb/gadget/udc/aspeed-vhub/epn.c ep->d_idx = addr; ep 819 drivers/usb/gadget/udc/aspeed-vhub/epn.c ep->vhub = vhub; ep 820 drivers/usb/gadget/udc/aspeed-vhub/epn.c ep->ep.ops = &ast_vhub_epn_ops; ep 821 drivers/usb/gadget/udc/aspeed-vhub/epn.c ep->ep.name = kasprintf(GFP_KERNEL, "ep%d", addr); ep 822 drivers/usb/gadget/udc/aspeed-vhub/epn.c d->epns[addr-1] = ep; ep 823 drivers/usb/gadget/udc/aspeed-vhub/epn.c ep->epn.g_idx = i; ep 824 drivers/usb/gadget/udc/aspeed-vhub/epn.c ep->epn.regs = vhub->regs + 0x200 + (i * 0x10); ep 826 drivers/usb/gadget/udc/aspeed-vhub/epn.c ep->buf = dma_alloc_coherent(&vhub->pdev->dev, ep 829 drivers/usb/gadget/udc/aspeed-vhub/epn.c &ep->buf_dma, GFP_KERNEL); ep 830 drivers/usb/gadget/udc/aspeed-vhub/epn.c if (!ep->buf) { ep 831 drivers/usb/gadget/udc/aspeed-vhub/epn.c kfree(ep->ep.name); ep 832 drivers/usb/gadget/udc/aspeed-vhub/epn.c ep->ep.name = NULL; ep 835 drivers/usb/gadget/udc/aspeed-vhub/epn.c ep->epn.descs = ep->buf + AST_VHUB_EPn_MAX_PACKET; ep 836 drivers/usb/gadget/udc/aspeed-vhub/epn.c ep->epn.descs_dma = ep->buf_dma + AST_VHUB_EPn_MAX_PACKET; ep 838 drivers/usb/gadget/udc/aspeed-vhub/epn.c usb_ep_set_maxpacket_limit(&ep->ep, AST_VHUB_EPn_MAX_PACKET); ep 839 drivers/usb/gadget/udc/aspeed-vhub/epn.c list_add_tail(&ep->ep.ep_list, &d->gadget.ep_list); ep 840 drivers/usb/gadget/udc/aspeed-vhub/epn.c ep->ep.caps.type_iso = true; ep 841 drivers/usb/gadget/udc/aspeed-vhub/epn.c ep->ep.caps.type_bulk = true; ep 842 drivers/usb/gadget/udc/aspeed-vhub/epn.c ep->ep.caps.type_int = true; ep 843 drivers/usb/gadget/udc/aspeed-vhub/epn.c ep->ep.caps.dir_in = true; ep 844 drivers/usb/gadget/udc/aspeed-vhub/epn.c ep->ep.caps.dir_out = true; ep 846 drivers/usb/gadget/udc/aspeed-vhub/epn.c return ep; ep 99 drivers/usb/gadget/udc/aspeed-vhub/hub.c struct usb_endpoint_descriptor ep; ep 124 drivers/usb/gadget/udc/aspeed-vhub/hub.c .ep = { ep 172 drivers/usb/gadget/udc/aspeed-vhub/hub.c static int ast_vhub_hub_dev_status(struct ast_vhub_ep *ep, ep 177 drivers/usb/gadget/udc/aspeed-vhub/hub.c EPDBG(ep, "GET_STATUS(dev)\n"); ep 189 drivers/usb/gadget/udc/aspeed-vhub/hub.c if (ep->vhub->wakeup_en) ep 192 drivers/usb/gadget/udc/aspeed-vhub/hub.c return ast_vhub_simple_reply(ep, st0, 0); ep 195 drivers/usb/gadget/udc/aspeed-vhub/hub.c static int ast_vhub_hub_ep_status(struct ast_vhub_ep *ep, ep 202 drivers/usb/gadget/udc/aspeed-vhub/hub.c EPDBG(ep, "GET_STATUS(ep%d)\n", ep_num); ep 206 drivers/usb/gadget/udc/aspeed-vhub/hub.c if (ep->vhub->ep1_stalled) ep 211 drivers/usb/gadget/udc/aspeed-vhub/hub.c return ast_vhub_simple_reply(ep, st0, 0); ep 214 drivers/usb/gadget/udc/aspeed-vhub/hub.c static int ast_vhub_hub_dev_feature(struct ast_vhub_ep *ep, ep 218 drivers/usb/gadget/udc/aspeed-vhub/hub.c EPDBG(ep, "%s_FEATURE(dev val=%02x)\n", ep 224 drivers/usb/gadget/udc/aspeed-vhub/hub.c ep->vhub->wakeup_en = is_set; ep 225 drivers/usb/gadget/udc/aspeed-vhub/hub.c EPDBG(ep, "Hub remote wakeup %s\n", ep 231 drivers/usb/gadget/udc/aspeed-vhub/hub.c static int ast_vhub_hub_ep_feature(struct ast_vhub_ep *ep, ep 239 drivers/usb/gadget/udc/aspeed-vhub/hub.c EPDBG(ep, "%s_FEATURE(ep%d val=%02x)\n", ep 249 drivers/usb/gadget/udc/aspeed-vhub/hub.c EPDBG(ep, "%s stall on EP 1\n", ep 252 drivers/usb/gadget/udc/aspeed-vhub/hub.c ep->vhub->ep1_stalled = is_set; ep 253 drivers/usb/gadget/udc/aspeed-vhub/hub.c reg = readl(ep->vhub->regs + AST_VHUB_EP1_CTRL); ep 260 drivers/usb/gadget/udc/aspeed-vhub/hub.c writel(reg, ep->vhub->regs + AST_VHUB_EP1_CTRL); ep 265 drivers/usb/gadget/udc/aspeed-vhub/hub.c static int ast_vhub_rep_desc(struct ast_vhub_ep *ep, ep 270 drivers/usb/gadget/udc/aspeed-vhub/hub.c EPDBG(ep, "GET_DESCRIPTOR(type:%d)\n", desc_type); ep 284 drivers/usb/gadget/udc/aspeed-vhub/hub.c memcpy(ep->buf, &ast_vhub_dev_desc, dsize); ep 290 drivers/usb/gadget/udc/aspeed-vhub/hub.c memcpy(ep->buf, &ast_vhub_conf_desc, dsize); ep 296 drivers/usb/gadget/udc/aspeed-vhub/hub.c memcpy(ep->buf, &ast_vhub_hub_desc, dsize); ep 309 drivers/usb/gadget/udc/aspeed-vhub/hub.c if (desc_type == USB_DT_DEVICE && ep->vhub->force_usb1) ep 310 drivers/usb/gadget/udc/aspeed-vhub/hub.c ast_vhub_patch_dev_desc_usb1(ep->buf); ep 313 drivers/usb/gadget/udc/aspeed-vhub/hub.c return ast_vhub_reply(ep, NULL, len); ep 316 drivers/usb/gadget/udc/aspeed-vhub/hub.c static int ast_vhub_rep_string(struct ast_vhub_ep *ep, ep 320 drivers/usb/gadget/udc/aspeed-vhub/hub.c int rc = usb_gadget_get_string (&ast_vhub_strings, string_id, ep->buf); ep 332 drivers/usb/gadget/udc/aspeed-vhub/hub.c return ast_vhub_reply(ep, NULL, min_t(u16, rc, len)); ep 335 drivers/usb/gadget/udc/aspeed-vhub/hub.c enum std_req_rc ast_vhub_std_hub_request(struct ast_vhub_ep *ep, ep 338 drivers/usb/gadget/udc/aspeed-vhub/hub.c struct ast_vhub *vhub = ep->vhub; ep 359 drivers/usb/gadget/udc/aspeed-vhub/hub.c EPDBG(ep, "SET_ADDRESS: Got address %x\n", wValue); ep 365 drivers/usb/gadget/udc/aspeed-vhub/hub.c return ast_vhub_hub_dev_status(ep, wIndex, wValue); ep 367 drivers/usb/gadget/udc/aspeed-vhub/hub.c return ast_vhub_simple_reply(ep, 0, 0); ep 369 drivers/usb/gadget/udc/aspeed-vhub/hub.c return ast_vhub_hub_ep_status(ep, wIndex, wValue); ep 373 drivers/usb/gadget/udc/aspeed-vhub/hub.c return ast_vhub_hub_dev_feature(ep, wIndex, wValue, true); ep 375 drivers/usb/gadget/udc/aspeed-vhub/hub.c return ast_vhub_hub_dev_feature(ep, wIndex, wValue, false); ep 377 drivers/usb/gadget/udc/aspeed-vhub/hub.c return ast_vhub_hub_ep_feature(ep, wIndex, wValue, true); ep 379 drivers/usb/gadget/udc/aspeed-vhub/hub.c return ast_vhub_hub_ep_feature(ep, wIndex, wValue, false); ep 383 drivers/usb/gadget/udc/aspeed-vhub/hub.c return ast_vhub_simple_reply(ep, 1); ep 394 drivers/usb/gadget/udc/aspeed-vhub/hub.c return ast_vhub_rep_desc(ep, wValue >> 8, ep 397 drivers/usb/gadget/udc/aspeed-vhub/hub.c return ast_vhub_rep_string(ep, wValue & 0xff, ep 404 drivers/usb/gadget/udc/aspeed-vhub/hub.c return ast_vhub_simple_reply(ep, 0); ep 584 drivers/usb/gadget/udc/aspeed-vhub/hub.c static enum std_req_rc ast_vhub_set_port_feature(struct ast_vhub_ep *ep, ep 587 drivers/usb/gadget/udc/aspeed-vhub/hub.c struct ast_vhub *vhub = ep->vhub; ep 605 drivers/usb/gadget/udc/aspeed-vhub/hub.c EPDBG(ep, "Port reset !\n"); ep 627 drivers/usb/gadget/udc/aspeed-vhub/hub.c static enum std_req_rc ast_vhub_clr_port_feature(struct ast_vhub_ep *ep, ep 630 drivers/usb/gadget/udc/aspeed-vhub/hub.c struct ast_vhub *vhub = ep->vhub; ep 673 drivers/usb/gadget/udc/aspeed-vhub/hub.c static enum std_req_rc ast_vhub_get_port_stat(struct ast_vhub_ep *ep, ep 676 drivers/usb/gadget/udc/aspeed-vhub/hub.c struct ast_vhub *vhub = ep->vhub; ep 689 drivers/usb/gadget/udc/aspeed-vhub/hub.c EPDBG(ep, " port status=%04x change=%04x\n", stat, chg); ep 691 drivers/usb/gadget/udc/aspeed-vhub/hub.c return ast_vhub_simple_reply(ep, ep 698 drivers/usb/gadget/udc/aspeed-vhub/hub.c enum std_req_rc ast_vhub_class_hub_request(struct ast_vhub_ep *ep, ep 709 drivers/usb/gadget/udc/aspeed-vhub/hub.c EPDBG(ep, "GetHubStatus\n"); ep 710 drivers/usb/gadget/udc/aspeed-vhub/hub.c return ast_vhub_simple_reply(ep, 0, 0, 0, 0); ep 712 drivers/usb/gadget/udc/aspeed-vhub/hub.c EPDBG(ep, "GetPortStatus(%d)\n", wIndex & 0xff); ep 713 drivers/usb/gadget/udc/aspeed-vhub/hub.c return ast_vhub_get_port_stat(ep, wIndex & 0xf); ep 717 drivers/usb/gadget/udc/aspeed-vhub/hub.c EPDBG(ep, "GetHubDescriptor(%d)\n", wIndex & 0xff); ep 718 drivers/usb/gadget/udc/aspeed-vhub/hub.c return ast_vhub_rep_desc(ep, USB_DT_HUB, wLength); ep 721 drivers/usb/gadget/udc/aspeed-vhub/hub.c EPDBG(ep, "Get/SetHubFeature(%d)\n", wValue); ep 728 drivers/usb/gadget/udc/aspeed-vhub/hub.c EPDBG(ep, "SetPortFeature(%d,%d)\n", wIndex & 0xf, wValue); ep 729 drivers/usb/gadget/udc/aspeed-vhub/hub.c return ast_vhub_set_port_feature(ep, wIndex & 0xf, wValue); ep 731 drivers/usb/gadget/udc/aspeed-vhub/hub.c EPDBG(ep, "ClearPortFeature(%d,%d)\n", wIndex & 0xf, wValue); ep 732 drivers/usb/gadget/udc/aspeed-vhub/hub.c return ast_vhub_clr_port_feature(ep, wIndex & 0xf, wValue); ep 738 drivers/usb/gadget/udc/aspeed-vhub/hub.c return ast_vhub_simple_reply(ep, 0, 0, 0, 0); ep 740 drivers/usb/gadget/udc/aspeed-vhub/hub.c EPDBG(ep, "Unknown class request\n"); ep 269 drivers/usb/gadget/udc/aspeed-vhub/vhub.h struct usb_ep ep; ep 338 drivers/usb/gadget/udc/aspeed-vhub/vhub.h #define to_ast_ep(__uep) container_of(__uep, struct ast_vhub_ep, ep) ep 425 drivers/usb/gadget/udc/aspeed-vhub/vhub.h #define EPVDBG(ep, fmt, ...) do { \ ep 426 drivers/usb/gadget/udc/aspeed-vhub/vhub.h dev_dbg(&(ep)->vhub->pdev->dev, \ ep 428 drivers/usb/gadget/udc/aspeed-vhub/vhub.h (ep)->dev ? (ep)->dev->name : "hub", \ ep 429 drivers/usb/gadget/udc/aspeed-vhub/vhub.h (ep)->d_idx, ##__VA_ARGS__); \ ep 440 drivers/usb/gadget/udc/aspeed-vhub/vhub.h #define EPVDBG(ep, fmt, ...) do { } while(0) ep 447 drivers/usb/gadget/udc/aspeed-vhub/vhub.h #define EPDBG(ep, fmt, ...) do { \ ep 448 drivers/usb/gadget/udc/aspeed-vhub/vhub.h dev_dbg(&(ep)->vhub->pdev->dev, \ ep 450 drivers/usb/gadget/udc/aspeed-vhub/vhub.h (ep)->dev ? (ep)->dev->name : "hub", \ ep 451 drivers/usb/gadget/udc/aspeed-vhub/vhub.h (ep)->d_idx, ##__VA_ARGS__); \ ep 461 drivers/usb/gadget/udc/aspeed-vhub/vhub.h #define EPDBG(ep, fmt, ...) do { } while(0) ep 499 drivers/usb/gadget/udc/aspeed-vhub/vhub.h void ast_vhub_done(struct ast_vhub_ep *ep, struct ast_vhub_req *req, ep 501 drivers/usb/gadget/udc/aspeed-vhub/vhub.h void ast_vhub_nuke(struct ast_vhub_ep *ep, int status); ep 508 drivers/usb/gadget/udc/aspeed-vhub/vhub.h void ast_vhub_ep0_handle_ack(struct ast_vhub_ep *ep, bool in_ack); ep 509 drivers/usb/gadget/udc/aspeed-vhub/vhub.h void ast_vhub_ep0_handle_setup(struct ast_vhub_ep *ep); ep 511 drivers/usb/gadget/udc/aspeed-vhub/vhub.h void ast_vhub_init_ep0(struct ast_vhub *vhub, struct ast_vhub_ep *ep, ep 513 drivers/usb/gadget/udc/aspeed-vhub/vhub.h int ast_vhub_reply(struct ast_vhub_ep *ep, char *ptr, int len); ep 514 drivers/usb/gadget/udc/aspeed-vhub/vhub.h int __ast_vhub_simple_reply(struct ast_vhub_ep *ep, int len, ...); ep 522 drivers/usb/gadget/udc/aspeed-vhub/vhub.h enum std_req_rc ast_vhub_std_hub_request(struct ast_vhub_ep *ep, ep 524 drivers/usb/gadget/udc/aspeed-vhub/vhub.h enum std_req_rc ast_vhub_class_hub_request(struct ast_vhub_ep *ep, ep 537 drivers/usb/gadget/udc/aspeed-vhub/vhub.h int ast_vhub_std_dev_request(struct ast_vhub_ep *ep, ep 541 drivers/usb/gadget/udc/aspeed-vhub/vhub.h void ast_vhub_epn_ack_irq(struct ast_vhub_ep *ep); ep 542 drivers/usb/gadget/udc/aspeed-vhub/vhub.h void ast_vhub_update_epn_stall(struct ast_vhub_ep *ep); ep 105 drivers/usb/gadget/udc/at91_udc.c static void proc_ep_show(struct seq_file *s, struct at91_ep *ep) ep 114 drivers/usb/gadget/udc/at91_udc.c struct at91_udc *udc = ep->udc; ep 118 drivers/usb/gadget/udc/at91_udc.c csr = __raw_readl(ep->creg); ep 124 drivers/usb/gadget/udc/at91_udc.c ep->ep.name, ep->ep.maxpacket, ep 125 drivers/usb/gadget/udc/at91_udc.c ep->is_in ? "in" : "out", ep 126 drivers/usb/gadget/udc/at91_udc.c ep->is_iso ? " iso" : "", ep 127 drivers/usb/gadget/udc/at91_udc.c ep->is_pingpong ep 128 drivers/usb/gadget/udc/at91_udc.c ? (ep->fifo_bank ? "pong" : "ping") ep 130 drivers/usb/gadget/udc/at91_udc.c ep->stopped ? " stopped" : ""); ep 150 drivers/usb/gadget/udc/at91_udc.c if (list_empty (&ep->queue)) ep 153 drivers/usb/gadget/udc/at91_udc.c else list_for_each_entry (req, &ep->queue, queue) { ep 185 drivers/usb/gadget/udc/at91_udc.c struct at91_ep *ep; ep 228 drivers/usb/gadget/udc/at91_udc.c proc_ep_show(s, &udc->ep[0]); ep 229 drivers/usb/gadget/udc/at91_udc.c list_for_each_entry (ep, &udc->gadget.ep_list, ep.ep_list) { ep 230 drivers/usb/gadget/udc/at91_udc.c if (ep->ep.desc) ep 231 drivers/usb/gadget/udc/at91_udc.c proc_ep_show(s, ep); ep 259 drivers/usb/gadget/udc/at91_udc.c static void done(struct at91_ep *ep, struct at91_request *req, int status) ep 261 drivers/usb/gadget/udc/at91_udc.c unsigned stopped = ep->stopped; ep 262 drivers/usb/gadget/udc/at91_udc.c struct at91_udc *udc = ep->udc; ep 270 drivers/usb/gadget/udc/at91_udc.c VDBG("%s done %p, status %d\n", ep->ep.name, req, status); ep 272 drivers/usb/gadget/udc/at91_udc.c ep->stopped = 1; ep 274 drivers/usb/gadget/udc/at91_udc.c usb_gadget_giveback_request(&ep->ep, &req->req); ep 276 drivers/usb/gadget/udc/at91_udc.c ep->stopped = stopped; ep 279 drivers/usb/gadget/udc/at91_udc.c if (list_empty(&ep->queue) && ep->int_mask != (1 << 0)) ep 280 drivers/usb/gadget/udc/at91_udc.c at91_udp_write(udc, AT91_UDP_IDR, ep->int_mask); ep 310 drivers/usb/gadget/udc/at91_udc.c static int read_fifo (struct at91_ep *ep, struct at91_request *req) ep 312 drivers/usb/gadget/udc/at91_udc.c u32 __iomem *creg = ep->creg; ep 313 drivers/usb/gadget/udc/at91_udc.c u8 __iomem *dreg = ep->creg + (AT91_UDP_FDR(0) - AT91_UDP_CSR(0)); ep 331 drivers/usb/gadget/udc/at91_udc.c if (count > ep->ep.maxpacket) ep 332 drivers/usb/gadget/udc/at91_udc.c count = ep->ep.maxpacket; ep 334 drivers/usb/gadget/udc/at91_udc.c DBG("%s buffer overflow\n", ep->ep.name); ep 342 drivers/usb/gadget/udc/at91_udc.c if (ep->is_pingpong) { ep 343 drivers/usb/gadget/udc/at91_udc.c if (ep->fifo_bank == 0) { ep 345 drivers/usb/gadget/udc/at91_udc.c ep->fifo_bank = 1; ep 348 drivers/usb/gadget/udc/at91_udc.c ep->fifo_bank = 0; ep 355 drivers/usb/gadget/udc/at91_udc.c is_done = (count < ep->ep.maxpacket); ep 359 drivers/usb/gadget/udc/at91_udc.c PACKET("%s %p out/%d%s\n", ep->ep.name, &req->req, count, ep 367 drivers/usb/gadget/udc/at91_udc.c done(ep, req, 0); ep 368 drivers/usb/gadget/udc/at91_udc.c else if (ep->is_pingpong) { ep 385 drivers/usb/gadget/udc/at91_udc.c static int write_fifo(struct at91_ep *ep, struct at91_request *req) ep 387 drivers/usb/gadget/udc/at91_udc.c u32 __iomem *creg = ep->creg; ep 389 drivers/usb/gadget/udc/at91_udc.c u8 __iomem *dreg = ep->creg + (AT91_UDP_FDR(0) - AT91_UDP_CSR(0)); ep 419 drivers/usb/gadget/udc/at91_udc.c if (ep->ep.maxpacket < total) { ep 420 drivers/usb/gadget/udc/at91_udc.c count = ep->ep.maxpacket; ep 424 drivers/usb/gadget/udc/at91_udc.c is_last = (count < ep->ep.maxpacket) || !req->req.zero; ep 446 drivers/usb/gadget/udc/at91_udc.c PACKET("%s %p in/%d%s\n", ep->ep.name, &req->req, count, ep 449 drivers/usb/gadget/udc/at91_udc.c done(ep, req, 0); ep 453 drivers/usb/gadget/udc/at91_udc.c static void nuke(struct at91_ep *ep, int status) ep 458 drivers/usb/gadget/udc/at91_udc.c ep->stopped = 1; ep 459 drivers/usb/gadget/udc/at91_udc.c if (list_empty(&ep->queue)) ep 462 drivers/usb/gadget/udc/at91_udc.c VDBG("%s %s\n", __func__, ep->ep.name); ep 463 drivers/usb/gadget/udc/at91_udc.c while (!list_empty(&ep->queue)) { ep 464 drivers/usb/gadget/udc/at91_udc.c req = list_entry(ep->queue.next, struct at91_request, queue); ep 465 drivers/usb/gadget/udc/at91_udc.c done(ep, req, status); ep 474 drivers/usb/gadget/udc/at91_udc.c struct at91_ep *ep = container_of(_ep, struct at91_ep, ep); ep 480 drivers/usb/gadget/udc/at91_udc.c if (!_ep || !ep ep 484 drivers/usb/gadget/udc/at91_udc.c || maxpacket > ep->maxpacket) { ep 489 drivers/usb/gadget/udc/at91_udc.c udc = ep->udc; ep 516 drivers/usb/gadget/udc/at91_udc.c if (!ep->is_pingpong) { ep 527 drivers/usb/gadget/udc/at91_udc.c ep->is_in = usb_endpoint_dir_in(desc); ep 528 drivers/usb/gadget/udc/at91_udc.c ep->is_iso = (tmp == USB_ENDPOINT_XFER_ISOC); ep 529 drivers/usb/gadget/udc/at91_udc.c ep->stopped = 0; ep 530 drivers/usb/gadget/udc/at91_udc.c if (ep->is_in) ep 534 drivers/usb/gadget/udc/at91_udc.c __raw_writel(tmp, ep->creg); ep 536 drivers/usb/gadget/udc/at91_udc.c ep->ep.maxpacket = maxpacket; ep 542 drivers/usb/gadget/udc/at91_udc.c at91_udp_write(udc, AT91_UDP_RST_EP, ep->int_mask); ep 551 drivers/usb/gadget/udc/at91_udc.c struct at91_ep *ep = container_of(_ep, struct at91_ep, ep); ep 552 drivers/usb/gadget/udc/at91_udc.c struct at91_udc *udc = ep->udc; ep 555 drivers/usb/gadget/udc/at91_udc.c if (ep == &ep->udc->ep[0]) ep 560 drivers/usb/gadget/udc/at91_udc.c nuke(ep, -ESHUTDOWN); ep 563 drivers/usb/gadget/udc/at91_udc.c ep->ep.desc = NULL; ep 564 drivers/usb/gadget/udc/at91_udc.c ep->ep.maxpacket = ep->maxpacket; ep 567 drivers/usb/gadget/udc/at91_udc.c if (ep->udc->clocked) { ep 568 drivers/usb/gadget/udc/at91_udc.c at91_udp_write(udc, AT91_UDP_RST_EP, ep->int_mask); ep 570 drivers/usb/gadget/udc/at91_udc.c __raw_writel(0, ep->creg); ep 608 drivers/usb/gadget/udc/at91_udc.c struct at91_ep *ep; ep 614 drivers/usb/gadget/udc/at91_udc.c ep = container_of(_ep, struct at91_ep, ep); ep 622 drivers/usb/gadget/udc/at91_udc.c if (!_ep || (!ep->ep.desc && ep->ep.name != ep0name)) { ep 627 drivers/usb/gadget/udc/at91_udc.c udc = ep->udc; ep 640 drivers/usb/gadget/udc/at91_udc.c if (list_empty(&ep->queue) && !ep->stopped) { ep 651 drivers/usb/gadget/udc/at91_udc.c is_ep0 = (ep->ep.name == ep0name); ep 674 drivers/usb/gadget/udc/at91_udc.c tmp = __raw_readl(ep->creg); ep 677 drivers/usb/gadget/udc/at91_udc.c __raw_writel(tmp, ep->creg); ep 683 drivers/usb/gadget/udc/at91_udc.c if (ep->is_in) ep 684 drivers/usb/gadget/udc/at91_udc.c status = write_fifo(ep, req); ep 686 drivers/usb/gadget/udc/at91_udc.c status = read_fifo(ep, req); ep 696 drivers/usb/gadget/udc/at91_udc.c list_add_tail (&req->queue, &ep->queue); ep 697 drivers/usb/gadget/udc/at91_udc.c at91_udp_write(udc, AT91_UDP_IER, ep->int_mask); ep 706 drivers/usb/gadget/udc/at91_udc.c struct at91_ep *ep; ep 711 drivers/usb/gadget/udc/at91_udc.c ep = container_of(_ep, struct at91_ep, ep); ep 712 drivers/usb/gadget/udc/at91_udc.c if (!_ep || ep->ep.name == ep0name) ep 715 drivers/usb/gadget/udc/at91_udc.c udc = ep->udc; ep 720 drivers/usb/gadget/udc/at91_udc.c list_for_each_entry (req, &ep->queue, queue) { ep 729 drivers/usb/gadget/udc/at91_udc.c done(ep, req, -ECONNRESET); ep 736 drivers/usb/gadget/udc/at91_udc.c struct at91_ep *ep = container_of(_ep, struct at91_ep, ep); ep 737 drivers/usb/gadget/udc/at91_udc.c struct at91_udc *udc = ep->udc; ep 743 drivers/usb/gadget/udc/at91_udc.c if (!_ep || ep->is_iso || !ep->udc->clocked) ep 746 drivers/usb/gadget/udc/at91_udc.c creg = ep->creg; ep 756 drivers/usb/gadget/udc/at91_udc.c if (ep->is_in && (!list_empty(&ep->queue) || (csr >> 16) != 0)) ep 763 drivers/usb/gadget/udc/at91_udc.c VDBG("halt %s\n", ep->ep.name); ep 765 drivers/usb/gadget/udc/at91_udc.c at91_udp_write(udc, AT91_UDP_RST_EP, ep->int_mask); ep 833 drivers/usb/gadget/udc/at91_udc.c struct at91_ep *ep = &udc->ep[i]; ep 836 drivers/usb/gadget/udc/at91_udc.c list_add_tail(&ep->ep.ep_list, &udc->gadget.ep_list); ep 837 drivers/usb/gadget/udc/at91_udc.c ep->ep.desc = NULL; ep 838 drivers/usb/gadget/udc/at91_udc.c ep->stopped = 0; ep 839 drivers/usb/gadget/udc/at91_udc.c ep->fifo_bank = 0; ep 840 drivers/usb/gadget/udc/at91_udc.c usb_ep_set_maxpacket_limit(&ep->ep, ep->maxpacket); ep 841 drivers/usb/gadget/udc/at91_udc.c ep->creg = (void __iomem *) udc->udp_baseaddr + AT91_UDP_CSR(i); ep 843 drivers/usb/gadget/udc/at91_udc.c INIT_LIST_HEAD(&ep->queue); ep 858 drivers/usb/gadget/udc/at91_udc.c struct at91_ep *ep = &udc->ep[i]; ep 860 drivers/usb/gadget/udc/at91_udc.c ep->stopped = 1; ep 861 drivers/usb/gadget/udc/at91_udc.c nuke(ep, -ESHUTDOWN); ep 883 drivers/usb/gadget/udc/at91_udc.c struct at91_ep *ep = &udc->ep[i]; ep 884 drivers/usb/gadget/udc/at91_udc.c ep->stopped = 1; ep 885 drivers/usb/gadget/udc/at91_udc.c nuke(ep, -ESHUTDOWN); ep 1003 drivers/usb/gadget/udc/at91_udc.c static int handle_ep(struct at91_ep *ep) ep 1006 drivers/usb/gadget/udc/at91_udc.c u32 __iomem *creg = ep->creg; ep 1009 drivers/usb/gadget/udc/at91_udc.c if (!list_empty(&ep->queue)) ep 1010 drivers/usb/gadget/udc/at91_udc.c req = list_entry(ep->queue.next, ep 1015 drivers/usb/gadget/udc/at91_udc.c if (ep->is_in) { ep 1022 drivers/usb/gadget/udc/at91_udc.c return write_fifo(ep, req); ep 1027 drivers/usb/gadget/udc/at91_udc.c if (ep->is_iso && req) ep 1035 drivers/usb/gadget/udc/at91_udc.c return read_fifo(ep, req); ep 1045 drivers/usb/gadget/udc/at91_udc.c static void handle_setup(struct at91_udc *udc, struct at91_ep *ep, u32 csr) ep 1047 drivers/usb/gadget/udc/at91_udc.c u32 __iomem *creg = ep->creg; ep 1048 drivers/usb/gadget/udc/at91_udc.c u8 __iomem *dreg = ep->creg + (AT91_UDP_FDR(0) - AT91_UDP_CSR(0)); ep 1061 drivers/usb/gadget/udc/at91_udc.c ep->is_in = 1; ep 1064 drivers/usb/gadget/udc/at91_udc.c ep->is_in = 0; ep 1076 drivers/usb/gadget/udc/at91_udc.c ep->stopped = 0; ep 1174 drivers/usb/gadget/udc/at91_udc.c ep = &udc->ep[tmp]; ep 1175 drivers/usb/gadget/udc/at91_udc.c if (tmp >= NUM_ENDPOINTS || (tmp && !ep->ep.desc)) ep 1180 drivers/usb/gadget/udc/at91_udc.c if (!ep->is_in) ep 1182 drivers/usb/gadget/udc/at91_udc.c } else if (ep->is_in) ep 1185 drivers/usb/gadget/udc/at91_udc.c PACKET("get %s status\n", ep->ep.name); ep 1186 drivers/usb/gadget/udc/at91_udc.c if (__raw_readl(ep->creg) & AT91_UDP_FORCESTALL) ep 1197 drivers/usb/gadget/udc/at91_udc.c ep = &udc->ep[tmp]; ep 1200 drivers/usb/gadget/udc/at91_udc.c if (!ep->ep.desc || ep->is_iso) ep 1203 drivers/usb/gadget/udc/at91_udc.c if (!ep->is_in) ep 1205 drivers/usb/gadget/udc/at91_udc.c } else if (ep->is_in) ep 1208 drivers/usb/gadget/udc/at91_udc.c tmp = __raw_readl(ep->creg); ep 1211 drivers/usb/gadget/udc/at91_udc.c __raw_writel(tmp, ep->creg); ep 1216 drivers/usb/gadget/udc/at91_udc.c ep = &udc->ep[tmp]; ep 1221 drivers/usb/gadget/udc/at91_udc.c if (!ep->ep.desc || ep->is_iso) ep 1224 drivers/usb/gadget/udc/at91_udc.c if (!ep->is_in) ep 1226 drivers/usb/gadget/udc/at91_udc.c } else if (ep->is_in) ep 1229 drivers/usb/gadget/udc/at91_udc.c at91_udp_write(udc, AT91_UDP_RST_EP, ep->int_mask); ep 1231 drivers/usb/gadget/udc/at91_udc.c tmp = __raw_readl(ep->creg); ep 1234 drivers/usb/gadget/udc/at91_udc.c __raw_writel(tmp, ep->creg); ep 1235 drivers/usb/gadget/udc/at91_udc.c if (!list_empty(&ep->queue)) ep 1236 drivers/usb/gadget/udc/at91_udc.c handle_ep(ep); ep 1273 drivers/usb/gadget/udc/at91_udc.c struct at91_ep *ep0 = &udc->ep[0]; ep 1488 drivers/usb/gadget/udc/at91_udc.c struct at91_ep *ep = &udc->ep[1]; ep 1495 drivers/usb/gadget/udc/at91_udc.c handle_ep(ep); ep 1496 drivers/usb/gadget/udc/at91_udc.c ep++; ep 1597 drivers/usb/gadget/udc/at91_udc.c struct at91_ep *ep; ep 1602 drivers/usb/gadget/udc/at91_udc.c ep = &udc->ep[i]; ep 1607 drivers/usb/gadget/udc/at91_udc.c ep->maxpacket = 8; ep 1610 drivers/usb/gadget/udc/at91_udc.c ep->maxpacket = 64; ep 1613 drivers/usb/gadget/udc/at91_udc.c ep->maxpacket = 256; ep 1653 drivers/usb/gadget/udc/at91_udc.c struct at91_ep *ep; ep 1657 drivers/usb/gadget/udc/at91_udc.c ep = &udc->ep[i]; ep 1661 drivers/usb/gadget/udc/at91_udc.c ep->maxpacket = 64; ep 1664 drivers/usb/gadget/udc/at91_udc.c ep->maxpacket = 512; ep 1691 drivers/usb/gadget/udc/at91_udc.c struct at91_ep *ep; ep 1695 drivers/usb/gadget/udc/at91_udc.c ep = &udc->ep[i]; ep 1699 drivers/usb/gadget/udc/at91_udc.c ep->maxpacket = 8; ep 1702 drivers/usb/gadget/udc/at91_udc.c ep->maxpacket = 64; ep 1705 drivers/usb/gadget/udc/at91_udc.c ep->maxpacket = 256; ep 1733 drivers/usb/gadget/udc/at91_udc.c struct at91_ep *ep; ep 1737 drivers/usb/gadget/udc/at91_udc.c ep = &udc->ep[i]; ep 1744 drivers/usb/gadget/udc/at91_udc.c ep->maxpacket = 64; ep 1748 drivers/usb/gadget/udc/at91_udc.c ep->maxpacket = 256; ep 1812 drivers/usb/gadget/udc/at91_udc.c struct at91_ep *ep; ep 1827 drivers/usb/gadget/udc/at91_udc.c udc->gadget.ep0 = &udc->ep[0].ep; ep 1832 drivers/usb/gadget/udc/at91_udc.c ep = &udc->ep[i]; ep 1833 drivers/usb/gadget/udc/at91_udc.c ep->ep.name = ep_info[i].name; ep 1834 drivers/usb/gadget/udc/at91_udc.c ep->ep.caps = ep_info[i].caps; ep 1835 drivers/usb/gadget/udc/at91_udc.c ep->ep.ops = &at91_ep_ops; ep 1836 drivers/usb/gadget/udc/at91_udc.c ep->udc = udc; ep 1837 drivers/usb/gadget/udc/at91_udc.c ep->int_mask = BIT(i); ep 1839 drivers/usb/gadget/udc/at91_udc.c ep->is_pingpong = 1; ep 91 drivers/usb/gadget/udc/at91_udc.h struct usb_ep ep; ep 125 drivers/usb/gadget/udc/at91_udc.h struct at91_ep ep[NUM_ENDPOINTS]; ep 38 drivers/usb/gadget/udc/atmel_usba_udc.c struct usba_ep *ep = inode->i_private; ep 47 drivers/usb/gadget/udc/atmel_usba_udc.c spin_lock_irq(&ep->udc->lock); ep 48 drivers/usb/gadget/udc/atmel_usba_udc.c list_for_each_entry(req, &ep->queue, queue) { ep 54 drivers/usb/gadget/udc/atmel_usba_udc.c spin_unlock_irq(&ep->udc->lock); ep 60 drivers/usb/gadget/udc/atmel_usba_udc.c spin_unlock_irq(&ep->udc->lock); ep 204 drivers/usb/gadget/udc/atmel_usba_udc.c struct usba_ep *ep) ep 208 drivers/usb/gadget/udc/atmel_usba_udc.c ep_root = debugfs_create_dir(ep->ep.name, udc->debugfs_root); ep 209 drivers/usb/gadget/udc/atmel_usba_udc.c ep->debugfs_dir = ep_root; ep 211 drivers/usb/gadget/udc/atmel_usba_udc.c debugfs_create_file("queue", 0400, ep_root, ep, &queue_dbg_fops); ep 212 drivers/usb/gadget/udc/atmel_usba_udc.c if (ep->can_dma) ep 214 drivers/usb/gadget/udc/atmel_usba_udc.c &ep->last_dma_status); ep 215 drivers/usb/gadget/udc/atmel_usba_udc.c if (ep_is_control(ep)) ep 216 drivers/usb/gadget/udc/atmel_usba_udc.c debugfs_create_u32("state", 0400, ep_root, &ep->state); ep 219 drivers/usb/gadget/udc/atmel_usba_udc.c static void usba_ep_cleanup_debugfs(struct usba_ep *ep) ep 221 drivers/usb/gadget/udc/atmel_usba_udc.c debugfs_remove_recursive(ep->debugfs_dir); ep 251 drivers/usb/gadget/udc/atmel_usba_udc.c struct usba_ep *ep) ep 256 drivers/usb/gadget/udc/atmel_usba_udc.c static inline void usba_ep_cleanup_debugfs(struct usba_ep *ep) ep 406 drivers/usb/gadget/udc/atmel_usba_udc.c static void next_fifo_transaction(struct usba_ep *ep, struct usba_request *req) ep 412 drivers/usb/gadget/udc/atmel_usba_udc.c if (transaction_len > ep->ep.maxpacket) { ep 413 drivers/usb/gadget/udc/atmel_usba_udc.c transaction_len = ep->ep.maxpacket; ep 415 drivers/usb/gadget/udc/atmel_usba_udc.c } else if (transaction_len == ep->ep.maxpacket && req->req.zero) ep 419 drivers/usb/gadget/udc/atmel_usba_udc.c ep->ep.name, req, transaction_len, ep 422 drivers/usb/gadget/udc/atmel_usba_udc.c memcpy_toio(ep->fifo, req->req.buf + req->req.actual, transaction_len); ep 423 drivers/usb/gadget/udc/atmel_usba_udc.c usba_ep_writel(ep, SET_STA, USBA_TX_PK_RDY); ep 427 drivers/usb/gadget/udc/atmel_usba_udc.c static void submit_request(struct usba_ep *ep, struct usba_request *req) ep 430 drivers/usb/gadget/udc/atmel_usba_udc.c ep->ep.name, req, req->req.length); ep 437 drivers/usb/gadget/udc/atmel_usba_udc.c usba_ep_writel(ep, CTL_ENB, USBA_TX_PK_RDY); ep 442 drivers/usb/gadget/udc/atmel_usba_udc.c usba_ep_writel(ep, CTL_ENB, USBA_SHORT_PACKET); ep 444 drivers/usb/gadget/udc/atmel_usba_udc.c usba_ep_writel(ep, CTL_DIS, USBA_SHORT_PACKET); ep 446 drivers/usb/gadget/udc/atmel_usba_udc.c usba_dma_writel(ep, ADDRESS, req->req.dma); ep 447 drivers/usb/gadget/udc/atmel_usba_udc.c usba_dma_writel(ep, CONTROL, req->ctrl); ep 449 drivers/usb/gadget/udc/atmel_usba_udc.c next_fifo_transaction(ep, req); ep 451 drivers/usb/gadget/udc/atmel_usba_udc.c usba_ep_writel(ep, CTL_DIS, USBA_TX_PK_RDY); ep 452 drivers/usb/gadget/udc/atmel_usba_udc.c if (ep_is_control(ep)) ep 453 drivers/usb/gadget/udc/atmel_usba_udc.c usba_ep_writel(ep, CTL_ENB, USBA_TX_COMPLETE); ep 455 drivers/usb/gadget/udc/atmel_usba_udc.c if (ep_is_control(ep)) ep 456 drivers/usb/gadget/udc/atmel_usba_udc.c usba_ep_writel(ep, CTL_DIS, USBA_TX_COMPLETE); ep 457 drivers/usb/gadget/udc/atmel_usba_udc.c usba_ep_writel(ep, CTL_ENB, USBA_TX_PK_RDY); ep 462 drivers/usb/gadget/udc/atmel_usba_udc.c static void submit_next_request(struct usba_ep *ep) ep 466 drivers/usb/gadget/udc/atmel_usba_udc.c if (list_empty(&ep->queue)) { ep 467 drivers/usb/gadget/udc/atmel_usba_udc.c usba_ep_writel(ep, CTL_DIS, USBA_TX_PK_RDY | USBA_RX_BK_RDY); ep 471 drivers/usb/gadget/udc/atmel_usba_udc.c req = list_entry(ep->queue.next, struct usba_request, queue); ep 473 drivers/usb/gadget/udc/atmel_usba_udc.c submit_request(ep, req); ep 476 drivers/usb/gadget/udc/atmel_usba_udc.c static void send_status(struct usba_udc *udc, struct usba_ep *ep) ep 478 drivers/usb/gadget/udc/atmel_usba_udc.c ep->state = STATUS_STAGE_IN; ep 479 drivers/usb/gadget/udc/atmel_usba_udc.c usba_ep_writel(ep, SET_STA, USBA_TX_PK_RDY); ep 480 drivers/usb/gadget/udc/atmel_usba_udc.c usba_ep_writel(ep, CTL_ENB, USBA_TX_COMPLETE); ep 483 drivers/usb/gadget/udc/atmel_usba_udc.c static void receive_data(struct usba_ep *ep) ep 485 drivers/usb/gadget/udc/atmel_usba_udc.c struct usba_udc *udc = ep->udc; ep 491 drivers/usb/gadget/udc/atmel_usba_udc.c status = usba_ep_readl(ep, STA); ep 497 drivers/usb/gadget/udc/atmel_usba_udc.c if (list_empty(&ep->queue)) { ep 498 drivers/usb/gadget/udc/atmel_usba_udc.c usba_ep_writel(ep, CTL_DIS, USBA_RX_BK_RDY); ep 501 drivers/usb/gadget/udc/atmel_usba_udc.c req = list_entry(ep->queue.next, ep 514 drivers/usb/gadget/udc/atmel_usba_udc.c ep->fifo, bytecount); ep 517 drivers/usb/gadget/udc/atmel_usba_udc.c usba_ep_writel(ep, CLR_STA, USBA_RX_BK_RDY); ep 520 drivers/usb/gadget/udc/atmel_usba_udc.c DBG(DBG_QUEUE, "%s: request done\n", ep->ep.name); ep 523 drivers/usb/gadget/udc/atmel_usba_udc.c usba_ep_writel(ep, CTL_DIS, USBA_RX_BK_RDY); ep 525 drivers/usb/gadget/udc/atmel_usba_udc.c usb_gadget_giveback_request(&ep->ep, &req->req); ep 529 drivers/usb/gadget/udc/atmel_usba_udc.c status = usba_ep_readl(ep, STA); ep 532 drivers/usb/gadget/udc/atmel_usba_udc.c if (is_complete && ep_is_control(ep)) { ep 533 drivers/usb/gadget/udc/atmel_usba_udc.c send_status(udc, ep); ep 540 drivers/usb/gadget/udc/atmel_usba_udc.c request_complete(struct usba_ep *ep, struct usba_request *req, int status) ep 542 drivers/usb/gadget/udc/atmel_usba_udc.c struct usba_udc *udc = ep->udc; ep 550 drivers/usb/gadget/udc/atmel_usba_udc.c usb_gadget_unmap_request(&udc->gadget, &req->req, ep->is_in); ep 554 drivers/usb/gadget/udc/atmel_usba_udc.c ep->ep.name, req, req->req.status, req->req.actual); ep 557 drivers/usb/gadget/udc/atmel_usba_udc.c usb_gadget_giveback_request(&ep->ep, &req->req); ep 562 drivers/usb/gadget/udc/atmel_usba_udc.c request_complete_list(struct usba_ep *ep, struct list_head *list, int status) ep 568 drivers/usb/gadget/udc/atmel_usba_udc.c request_complete(ep, req, status); ep 575 drivers/usb/gadget/udc/atmel_usba_udc.c struct usba_ep *ep = to_usba_ep(_ep); ep 576 drivers/usb/gadget/udc/atmel_usba_udc.c struct usba_udc *udc = ep->udc; ep 580 drivers/usb/gadget/udc/atmel_usba_udc.c DBG(DBG_GADGET, "%s: ep_enable: desc=%p\n", ep->ep.name, desc); ep 584 drivers/usb/gadget/udc/atmel_usba_udc.c if (((desc->bEndpointAddress & USB_ENDPOINT_NUMBER_MASK) != ep->index) ep 585 drivers/usb/gadget/udc/atmel_usba_udc.c || ep->index == 0 ep 588 drivers/usb/gadget/udc/atmel_usba_udc.c || maxpacket > ep->fifo_size) { ep 593 drivers/usb/gadget/udc/atmel_usba_udc.c ep->is_isoc = 0; ep 594 drivers/usb/gadget/udc/atmel_usba_udc.c ep->is_in = 0; ep 597 drivers/usb/gadget/udc/atmel_usba_udc.c ep->ep.name, ep->ept_cfg, maxpacket); ep 600 drivers/usb/gadget/udc/atmel_usba_udc.c ep->is_in = 1; ep 601 drivers/usb/gadget/udc/atmel_usba_udc.c ep->ept_cfg |= USBA_EPT_DIR_IN; ep 606 drivers/usb/gadget/udc/atmel_usba_udc.c ep->ept_cfg |= USBA_BF(EPT_TYPE, USBA_EPT_TYPE_CONTROL); ep 609 drivers/usb/gadget/udc/atmel_usba_udc.c if (!ep->can_isoc) { ep 611 drivers/usb/gadget/udc/atmel_usba_udc.c ep->ep.name); ep 623 drivers/usb/gadget/udc/atmel_usba_udc.c ep->is_isoc = 1; ep 624 drivers/usb/gadget/udc/atmel_usba_udc.c ep->ept_cfg |= USBA_BF(EPT_TYPE, USBA_EPT_TYPE_ISO); ep 625 drivers/usb/gadget/udc/atmel_usba_udc.c ep->ept_cfg |= USBA_BF(NB_TRANS, nr_trans); ep 629 drivers/usb/gadget/udc/atmel_usba_udc.c ep->ept_cfg |= USBA_BF(EPT_TYPE, USBA_EPT_TYPE_BULK); ep 632 drivers/usb/gadget/udc/atmel_usba_udc.c ep->ept_cfg |= USBA_BF(EPT_TYPE, USBA_EPT_TYPE_INT); ep 636 drivers/usb/gadget/udc/atmel_usba_udc.c spin_lock_irqsave(&ep->udc->lock, flags); ep 638 drivers/usb/gadget/udc/atmel_usba_udc.c ep->ep.desc = desc; ep 639 drivers/usb/gadget/udc/atmel_usba_udc.c ep->ep.maxpacket = maxpacket; ep 641 drivers/usb/gadget/udc/atmel_usba_udc.c usba_ep_writel(ep, CFG, ep->ept_cfg); ep 642 drivers/usb/gadget/udc/atmel_usba_udc.c usba_ep_writel(ep, CTL_ENB, USBA_EPT_ENABLE); ep 644 drivers/usb/gadget/udc/atmel_usba_udc.c if (ep->can_dma) { ep 647 drivers/usb/gadget/udc/atmel_usba_udc.c usba_int_enb_set(udc, USBA_BF(EPT_INT, 1 << ep->index) | ep 648 drivers/usb/gadget/udc/atmel_usba_udc.c USBA_BF(DMA_INT, 1 << ep->index)); ep 650 drivers/usb/gadget/udc/atmel_usba_udc.c usba_ep_writel(ep, CTL_ENB, ctrl); ep 652 drivers/usb/gadget/udc/atmel_usba_udc.c usba_int_enb_set(udc, USBA_BF(EPT_INT, 1 << ep->index)); ep 657 drivers/usb/gadget/udc/atmel_usba_udc.c DBG(DBG_HW, "EPT_CFG%d after init: %#08lx\n", ep->index, ep 658 drivers/usb/gadget/udc/atmel_usba_udc.c (unsigned long)usba_ep_readl(ep, CFG)); ep 667 drivers/usb/gadget/udc/atmel_usba_udc.c struct usba_ep *ep = to_usba_ep(_ep); ep 668 drivers/usb/gadget/udc/atmel_usba_udc.c struct usba_udc *udc = ep->udc; ep 672 drivers/usb/gadget/udc/atmel_usba_udc.c DBG(DBG_GADGET, "ep_disable: %s\n", ep->ep.name); ep 676 drivers/usb/gadget/udc/atmel_usba_udc.c if (!ep->ep.desc) { ep 684 drivers/usb/gadget/udc/atmel_usba_udc.c ep->ep.name); ep 687 drivers/usb/gadget/udc/atmel_usba_udc.c ep->ep.desc = NULL; ep 689 drivers/usb/gadget/udc/atmel_usba_udc.c list_splice_init(&ep->queue, &req_list); ep 690 drivers/usb/gadget/udc/atmel_usba_udc.c if (ep->can_dma) { ep 691 drivers/usb/gadget/udc/atmel_usba_udc.c usba_dma_writel(ep, CONTROL, 0); ep 692 drivers/usb/gadget/udc/atmel_usba_udc.c usba_dma_writel(ep, ADDRESS, 0); ep 693 drivers/usb/gadget/udc/atmel_usba_udc.c usba_dma_readl(ep, STATUS); ep 695 drivers/usb/gadget/udc/atmel_usba_udc.c usba_ep_writel(ep, CTL_DIS, USBA_EPT_ENABLE); ep 696 drivers/usb/gadget/udc/atmel_usba_udc.c usba_int_enb_clear(udc, USBA_BF(EPT_INT, 1 << ep->index)); ep 698 drivers/usb/gadget/udc/atmel_usba_udc.c request_complete_list(ep, &req_list, -ESHUTDOWN); ep 731 drivers/usb/gadget/udc/atmel_usba_udc.c static int queue_dma(struct usba_udc *udc, struct usba_ep *ep, ep 738 drivers/usb/gadget/udc/atmel_usba_udc.c ep->ep.name, req->req.length, &req->req.dma, ep 749 drivers/usb/gadget/udc/atmel_usba_udc.c ret = usb_gadget_map_request(&udc->gadget, &req->req, ep->is_in); ep 758 drivers/usb/gadget/udc/atmel_usba_udc.c if (!ep->is_in) ep 768 drivers/usb/gadget/udc/atmel_usba_udc.c if (ep->ep.desc) { ep 769 drivers/usb/gadget/udc/atmel_usba_udc.c if (list_empty(&ep->queue)) ep 770 drivers/usb/gadget/udc/atmel_usba_udc.c submit_request(ep, req); ep 772 drivers/usb/gadget/udc/atmel_usba_udc.c list_add_tail(&req->queue, &ep->queue); ep 784 drivers/usb/gadget/udc/atmel_usba_udc.c struct usba_ep *ep = to_usba_ep(_ep); ep 785 drivers/usb/gadget/udc/atmel_usba_udc.c struct usba_udc *udc = ep->udc; ep 790 drivers/usb/gadget/udc/atmel_usba_udc.c ep->ep.name, req, _req->length); ep 793 drivers/usb/gadget/udc/atmel_usba_udc.c !ep->ep.desc) ep 803 drivers/usb/gadget/udc/atmel_usba_udc.c if (ep->can_dma) ep 804 drivers/usb/gadget/udc/atmel_usba_udc.c return queue_dma(udc, ep, req, gfp_flags); ep 809 drivers/usb/gadget/udc/atmel_usba_udc.c if (ep->ep.desc) { ep 810 drivers/usb/gadget/udc/atmel_usba_udc.c list_add_tail(&req->queue, &ep->queue); ep 812 drivers/usb/gadget/udc/atmel_usba_udc.c if ((!ep_is_control(ep) && ep->is_in) || ep 813 drivers/usb/gadget/udc/atmel_usba_udc.c (ep_is_control(ep) ep 814 drivers/usb/gadget/udc/atmel_usba_udc.c && (ep->state == DATA_STAGE_IN ep 815 drivers/usb/gadget/udc/atmel_usba_udc.c || ep->state == STATUS_STAGE_IN))) ep 816 drivers/usb/gadget/udc/atmel_usba_udc.c usba_ep_writel(ep, CTL_ENB, USBA_TX_PK_RDY); ep 818 drivers/usb/gadget/udc/atmel_usba_udc.c usba_ep_writel(ep, CTL_ENB, USBA_RX_BK_RDY); ep 827 drivers/usb/gadget/udc/atmel_usba_udc.c usba_update_req(struct usba_ep *ep, struct usba_request *req, u32 status) ep 832 drivers/usb/gadget/udc/atmel_usba_udc.c static int stop_dma(struct usba_ep *ep, u32 *pstatus) ep 841 drivers/usb/gadget/udc/atmel_usba_udc.c usba_dma_writel(ep, CONTROL, 0); ep 845 drivers/usb/gadget/udc/atmel_usba_udc.c status = usba_dma_readl(ep, STATUS); ep 855 drivers/usb/gadget/udc/atmel_usba_udc.c dev_err(&ep->udc->pdev->dev, ep 857 drivers/usb/gadget/udc/atmel_usba_udc.c ep->ep.name); ep 866 drivers/usb/gadget/udc/atmel_usba_udc.c struct usba_ep *ep = to_usba_ep(_ep); ep 867 drivers/usb/gadget/udc/atmel_usba_udc.c struct usba_udc *udc = ep->udc; ep 873 drivers/usb/gadget/udc/atmel_usba_udc.c ep->ep.name, req); ep 877 drivers/usb/gadget/udc/atmel_usba_udc.c list_for_each_entry(req, &ep->queue, queue) { ep 892 drivers/usb/gadget/udc/atmel_usba_udc.c if (ep->queue.next == &req->queue) { ep 893 drivers/usb/gadget/udc/atmel_usba_udc.c status = usba_dma_readl(ep, STATUS); ep 895 drivers/usb/gadget/udc/atmel_usba_udc.c stop_dma(ep, &status); ep 898 drivers/usb/gadget/udc/atmel_usba_udc.c ep->last_dma_status = status; ep 901 drivers/usb/gadget/udc/atmel_usba_udc.c usba_writel(udc, EPT_RST, 1 << ep->index); ep 903 drivers/usb/gadget/udc/atmel_usba_udc.c usba_update_req(ep, req, status); ep 913 drivers/usb/gadget/udc/atmel_usba_udc.c request_complete(ep, req, -ECONNRESET); ep 916 drivers/usb/gadget/udc/atmel_usba_udc.c submit_next_request(ep); ep 924 drivers/usb/gadget/udc/atmel_usba_udc.c struct usba_ep *ep = to_usba_ep(_ep); ep 925 drivers/usb/gadget/udc/atmel_usba_udc.c struct usba_udc *udc = ep->udc; ep 929 drivers/usb/gadget/udc/atmel_usba_udc.c DBG(DBG_GADGET, "endpoint %s: %s HALT\n", ep->ep.name, ep 932 drivers/usb/gadget/udc/atmel_usba_udc.c if (!ep->ep.desc) { ep 934 drivers/usb/gadget/udc/atmel_usba_udc.c ep->ep.name); ep 937 drivers/usb/gadget/udc/atmel_usba_udc.c if (ep->is_isoc) { ep 939 drivers/usb/gadget/udc/atmel_usba_udc.c ep->ep.name); ep 949 drivers/usb/gadget/udc/atmel_usba_udc.c if (!list_empty(&ep->queue) ep 950 drivers/usb/gadget/udc/atmel_usba_udc.c || ((value && ep->is_in && (usba_ep_readl(ep, STA) ep 955 drivers/usb/gadget/udc/atmel_usba_udc.c usba_ep_writel(ep, SET_STA, USBA_FORCE_STALL); ep 957 drivers/usb/gadget/udc/atmel_usba_udc.c usba_ep_writel(ep, CLR_STA, ep 959 drivers/usb/gadget/udc/atmel_usba_udc.c usba_ep_readl(ep, STA); ep 969 drivers/usb/gadget/udc/atmel_usba_udc.c struct usba_ep *ep = to_usba_ep(_ep); ep 971 drivers/usb/gadget/udc/atmel_usba_udc.c return USBA_BFEXT(BYTE_COUNT, usba_ep_readl(ep, STA)); ep 976 drivers/usb/gadget/udc/atmel_usba_udc.c struct usba_ep *ep = to_usba_ep(_ep); ep 977 drivers/usb/gadget/udc/atmel_usba_udc.c struct usba_udc *udc = ep->udc; ep 979 drivers/usb/gadget/udc/atmel_usba_udc.c usba_writel(udc, EPT_RST, 1 << ep->index); ep 1045 drivers/usb/gadget/udc/atmel_usba_udc.c struct usba_ep *ep; ep 1059 drivers/usb/gadget/udc/atmel_usba_udc.c ep = to_usba_ep(_ep); ep 1066 drivers/usb/gadget/udc/atmel_usba_udc.c ep->fifo_size = 1024; ep 1067 drivers/usb/gadget/udc/atmel_usba_udc.c ep->nr_banks = 2; ep 1071 drivers/usb/gadget/udc/atmel_usba_udc.c ep->fifo_size = 512; ep 1072 drivers/usb/gadget/udc/atmel_usba_udc.c ep->nr_banks = 1; ep 1077 drivers/usb/gadget/udc/atmel_usba_udc.c ep->fifo_size = ep 1080 drivers/usb/gadget/udc/atmel_usba_udc.c ep->fifo_size = ep 1082 drivers/usb/gadget/udc/atmel_usba_udc.c ep->nr_banks = 1; ep 1087 drivers/usb/gadget/udc/atmel_usba_udc.c usb_ep_set_maxpacket_limit(&ep->ep, ep->fifo_size); ep 1090 drivers/usb/gadget/udc/atmel_usba_udc.c if (ep->fifo_size <= 8) ep 1091 drivers/usb/gadget/udc/atmel_usba_udc.c ep->ept_cfg = USBA_BF(EPT_SIZE, USBA_EPT_SIZE_8); ep 1094 drivers/usb/gadget/udc/atmel_usba_udc.c ep->ept_cfg = ep 1095 drivers/usb/gadget/udc/atmel_usba_udc.c USBA_BF(EPT_SIZE, fls(ep->fifo_size - 1) - 3); ep 1097 drivers/usb/gadget/udc/atmel_usba_udc.c ep->ept_cfg |= USBA_BF(BK_NUMBER, ep->nr_banks); ep 1099 drivers/usb/gadget/udc/atmel_usba_udc.c ep->udc->configured_ep++; ep 1135 drivers/usb/gadget/udc/atmel_usba_udc.c struct usba_ep *ep; ep 1140 drivers/usb/gadget/udc/atmel_usba_udc.c ep = to_usba_ep(udc->gadget.ep0); ep 1141 drivers/usb/gadget/udc/atmel_usba_udc.c list_for_each_entry_safe(req, tmp_req, &ep->queue, queue) { ep 1143 drivers/usb/gadget/udc/atmel_usba_udc.c request_complete(ep, req, -ECONNRESET); ep 1149 drivers/usb/gadget/udc/atmel_usba_udc.c struct usba_ep *ep; ep 1154 drivers/usb/gadget/udc/atmel_usba_udc.c list_for_each_entry (ep, &udc->gadget.ep_list, ep.ep_list) { ep 1157 drivers/usb/gadget/udc/atmel_usba_udc.c if (!ep->ep.desc) ep 1159 drivers/usb/gadget/udc/atmel_usba_udc.c bEndpointAddress = ep->ep.desc->bEndpointAddress; ep 1164 drivers/usb/gadget/udc/atmel_usba_udc.c return ep; ep 1171 drivers/usb/gadget/udc/atmel_usba_udc.c static inline void set_protocol_stall(struct usba_udc *udc, struct usba_ep *ep) ep 1173 drivers/usb/gadget/udc/atmel_usba_udc.c usba_ep_writel(ep, SET_STA, USBA_FORCE_STALL); ep 1174 drivers/usb/gadget/udc/atmel_usba_udc.c ep->state = WAIT_FOR_SETUP; ep 1177 drivers/usb/gadget/udc/atmel_usba_udc.c static inline int is_stalled(struct usba_udc *udc, struct usba_ep *ep) ep 1179 drivers/usb/gadget/udc/atmel_usba_udc.c if (usba_ep_readl(ep, STA) & USBA_FORCE_STALL) ep 1211 drivers/usb/gadget/udc/atmel_usba_udc.c struct usba_ep *ep; ep 1236 drivers/usb/gadget/udc/atmel_usba_udc.c ep = &udc->usba_ep[0]; ep 1239 drivers/usb/gadget/udc/atmel_usba_udc.c usba_ep_writel(ep, CFG, ep 1244 drivers/usb/gadget/udc/atmel_usba_udc.c if (!(usba_ep_readl(ep, CFG) & USBA_EPT_MAPPED)) { ep 1245 drivers/usb/gadget/udc/atmel_usba_udc.c set_protocol_stall(udc, ep); ep 1248 drivers/usb/gadget/udc/atmel_usba_udc.c usba_ep_writel(ep, CTL_ENB, USBA_EPT_ENABLE); ep 1254 drivers/usb/gadget/udc/atmel_usba_udc.c ep = &udc->usba_ep[0]; ep 1255 drivers/usb/gadget/udc/atmel_usba_udc.c usba_ep_writel(ep, CFG, ep 1260 drivers/usb/gadget/udc/atmel_usba_udc.c if (!(usba_ep_readl(ep, CFG) & USBA_EPT_MAPPED)) { ep 1261 drivers/usb/gadget/udc/atmel_usba_udc.c set_protocol_stall(udc, ep); ep 1264 drivers/usb/gadget/udc/atmel_usba_udc.c usba_ep_writel(ep, CTL_ENB, USBA_EPT_ENABLE); ep 1266 drivers/usb/gadget/udc/atmel_usba_udc.c memcpy_toio(ep->fifo, test_packet_buffer, ep 1268 drivers/usb/gadget/udc/atmel_usba_udc.c usba_ep_writel(ep, SET_STA, USBA_TX_PK_RDY); ep 1302 drivers/usb/gadget/udc/atmel_usba_udc.c static int handle_ep0_setup(struct usba_udc *udc, struct usba_ep *ep, ep 1333 drivers/usb/gadget/udc/atmel_usba_udc.c ep->state = DATA_STAGE_IN; ep 1334 drivers/usb/gadget/udc/atmel_usba_udc.c writew_relaxed(status, ep->fifo); ep 1335 drivers/usb/gadget/udc/atmel_usba_udc.c usba_ep_writel(ep, SET_STA, USBA_TX_PK_RDY); ep 1365 drivers/usb/gadget/udc/atmel_usba_udc.c send_status(udc, ep); ep 1372 drivers/usb/gadget/udc/atmel_usba_udc.c send_status(udc, ep); ep 1373 drivers/usb/gadget/udc/atmel_usba_udc.c ep->state = STATUS_STAGE_TEST; ep 1396 drivers/usb/gadget/udc/atmel_usba_udc.c send_status(udc, ep); ep 1405 drivers/usb/gadget/udc/atmel_usba_udc.c send_status(udc, ep); ep 1406 drivers/usb/gadget/udc/atmel_usba_udc.c ep->state = STATUS_STAGE_ADDR; ep 1421 drivers/usb/gadget/udc/atmel_usba_udc.c ep->ep.name, crq->bRequestType, crq->bRequest, ep 1424 drivers/usb/gadget/udc/atmel_usba_udc.c set_protocol_stall(udc, ep); ep 1428 drivers/usb/gadget/udc/atmel_usba_udc.c static void usba_control_irq(struct usba_udc *udc, struct usba_ep *ep) ep 1435 drivers/usb/gadget/udc/atmel_usba_udc.c epstatus = usba_ep_readl(ep, STA); ep 1436 drivers/usb/gadget/udc/atmel_usba_udc.c epctrl = usba_ep_readl(ep, CTL); ep 1439 drivers/usb/gadget/udc/atmel_usba_udc.c ep->ep.name, ep->state, epstatus, epctrl); ep 1442 drivers/usb/gadget/udc/atmel_usba_udc.c if (!list_empty(&ep->queue)) ep 1443 drivers/usb/gadget/udc/atmel_usba_udc.c req = list_entry(ep->queue.next, ep 1448 drivers/usb/gadget/udc/atmel_usba_udc.c next_fifo_transaction(ep, req); ep 1450 drivers/usb/gadget/udc/atmel_usba_udc.c submit_request(ep, req); ep 1453 drivers/usb/gadget/udc/atmel_usba_udc.c usba_ep_writel(ep, CTL_DIS, USBA_TX_PK_RDY); ep 1454 drivers/usb/gadget/udc/atmel_usba_udc.c usba_ep_writel(ep, CTL_ENB, USBA_TX_COMPLETE); ep 1459 drivers/usb/gadget/udc/atmel_usba_udc.c usba_ep_writel(ep, CLR_STA, USBA_TX_COMPLETE); ep 1461 drivers/usb/gadget/udc/atmel_usba_udc.c switch (ep->state) { ep 1463 drivers/usb/gadget/udc/atmel_usba_udc.c usba_ep_writel(ep, CTL_ENB, USBA_RX_BK_RDY); ep 1464 drivers/usb/gadget/udc/atmel_usba_udc.c usba_ep_writel(ep, CTL_DIS, USBA_TX_COMPLETE); ep 1465 drivers/usb/gadget/udc/atmel_usba_udc.c ep->state = STATUS_STAGE_OUT; ep 1471 drivers/usb/gadget/udc/atmel_usba_udc.c usba_ep_writel(ep, CTL_DIS, USBA_TX_COMPLETE); ep 1472 drivers/usb/gadget/udc/atmel_usba_udc.c ep->state = WAIT_FOR_SETUP; ep 1477 drivers/usb/gadget/udc/atmel_usba_udc.c request_complete(ep, req, 0); ep 1478 drivers/usb/gadget/udc/atmel_usba_udc.c submit_next_request(ep); ep 1480 drivers/usb/gadget/udc/atmel_usba_udc.c usba_ep_writel(ep, CTL_DIS, USBA_TX_COMPLETE); ep 1481 drivers/usb/gadget/udc/atmel_usba_udc.c ep->state = WAIT_FOR_SETUP; ep 1484 drivers/usb/gadget/udc/atmel_usba_udc.c usba_ep_writel(ep, CTL_DIS, USBA_TX_COMPLETE); ep 1485 drivers/usb/gadget/udc/atmel_usba_udc.c ep->state = WAIT_FOR_SETUP; ep 1487 drivers/usb/gadget/udc/atmel_usba_udc.c set_protocol_stall(udc, ep); ep 1492 drivers/usb/gadget/udc/atmel_usba_udc.c ep->ep.name, ep->state); ep 1493 drivers/usb/gadget/udc/atmel_usba_udc.c set_protocol_stall(udc, ep); ep 1500 drivers/usb/gadget/udc/atmel_usba_udc.c switch (ep->state) { ep 1502 drivers/usb/gadget/udc/atmel_usba_udc.c usba_ep_writel(ep, CLR_STA, USBA_RX_BK_RDY); ep 1503 drivers/usb/gadget/udc/atmel_usba_udc.c usba_ep_writel(ep, CTL_DIS, USBA_RX_BK_RDY); ep 1507 drivers/usb/gadget/udc/atmel_usba_udc.c request_complete(ep, req, 0); ep 1509 drivers/usb/gadget/udc/atmel_usba_udc.c ep->state = WAIT_FOR_SETUP; ep 1513 drivers/usb/gadget/udc/atmel_usba_udc.c receive_data(ep); ep 1517 drivers/usb/gadget/udc/atmel_usba_udc.c usba_ep_writel(ep, CLR_STA, USBA_RX_BK_RDY); ep 1518 drivers/usb/gadget/udc/atmel_usba_udc.c usba_ep_writel(ep, CTL_DIS, USBA_RX_BK_RDY); ep 1521 drivers/usb/gadget/udc/atmel_usba_udc.c ep->ep.name, ep->state); ep 1522 drivers/usb/gadget/udc/atmel_usba_udc.c set_protocol_stall(udc, ep); ep 1536 drivers/usb/gadget/udc/atmel_usba_udc.c if (ep->state != WAIT_FOR_SETUP) { ep 1549 drivers/usb/gadget/udc/atmel_usba_udc.c if (ep->state == STATUS_STAGE_OUT ep 1550 drivers/usb/gadget/udc/atmel_usba_udc.c || ep->state == STATUS_STAGE_IN) { ep 1551 drivers/usb/gadget/udc/atmel_usba_udc.c usba_ep_writel(ep, CTL_DIS, USBA_RX_BK_RDY); ep 1557 drivers/usb/gadget/udc/atmel_usba_udc.c request_complete(ep, req, status); ep 1561 drivers/usb/gadget/udc/atmel_usba_udc.c pkt_len = USBA_BFEXT(BYTE_COUNT, usba_ep_readl(ep, STA)); ep 1566 drivers/usb/gadget/udc/atmel_usba_udc.c set_protocol_stall(udc, ep); ep 1570 drivers/usb/gadget/udc/atmel_usba_udc.c DBG(DBG_FIFO, "Copying ctrl request from 0x%p:\n", ep->fifo); ep 1571 drivers/usb/gadget/udc/atmel_usba_udc.c memcpy_fromio(crq.data, ep->fifo, sizeof(crq)); ep 1575 drivers/usb/gadget/udc/atmel_usba_udc.c usba_ep_writel(ep, CLR_STA, USBA_RX_SETUP); ep 1588 drivers/usb/gadget/udc/atmel_usba_udc.c ep->state = DATA_STAGE_IN; ep 1591 drivers/usb/gadget/udc/atmel_usba_udc.c ep->state = DATA_STAGE_OUT; ep 1593 drivers/usb/gadget/udc/atmel_usba_udc.c ep->state = STATUS_STAGE_IN; ep 1597 drivers/usb/gadget/udc/atmel_usba_udc.c if (ep->index == 0) ep 1598 drivers/usb/gadget/udc/atmel_usba_udc.c ret = handle_ep0_setup(udc, ep, &crq.crq); ep 1607 drivers/usb/gadget/udc/atmel_usba_udc.c le16_to_cpu(crq.crq.wLength), ep->state, ret); ep 1611 drivers/usb/gadget/udc/atmel_usba_udc.c set_protocol_stall(udc, ep); ep 1616 drivers/usb/gadget/udc/atmel_usba_udc.c static void usba_ep_irq(struct usba_udc *udc, struct usba_ep *ep) ep 1622 drivers/usb/gadget/udc/atmel_usba_udc.c epstatus = usba_ep_readl(ep, STA); ep 1623 drivers/usb/gadget/udc/atmel_usba_udc.c epctrl = usba_ep_readl(ep, CTL); ep 1625 drivers/usb/gadget/udc/atmel_usba_udc.c DBG(DBG_INT, "%s: interrupt, status: 0x%08x\n", ep->ep.name, epstatus); ep 1628 drivers/usb/gadget/udc/atmel_usba_udc.c DBG(DBG_BUS, "%s: TX PK ready\n", ep->ep.name); ep 1630 drivers/usb/gadget/udc/atmel_usba_udc.c if (list_empty(&ep->queue)) { ep 1632 drivers/usb/gadget/udc/atmel_usba_udc.c usba_ep_writel(ep, CTL_DIS, USBA_TX_PK_RDY); ep 1636 drivers/usb/gadget/udc/atmel_usba_udc.c req = list_entry(ep->queue.next, struct usba_request, queue); ep 1640 drivers/usb/gadget/udc/atmel_usba_udc.c usba_ep_writel(ep, SET_STA, ep 1642 drivers/usb/gadget/udc/atmel_usba_udc.c usba_ep_writel(ep, CTL_DIS, ep 1645 drivers/usb/gadget/udc/atmel_usba_udc.c submit_next_request(ep); ep 1646 drivers/usb/gadget/udc/atmel_usba_udc.c request_complete(ep, req, 0); ep 1649 drivers/usb/gadget/udc/atmel_usba_udc.c next_fifo_transaction(ep, req); ep 1651 drivers/usb/gadget/udc/atmel_usba_udc.c submit_request(ep, req); ep 1655 drivers/usb/gadget/udc/atmel_usba_udc.c submit_next_request(ep); ep 1656 drivers/usb/gadget/udc/atmel_usba_udc.c request_complete(ep, req, 0); ep 1660 drivers/usb/gadget/udc/atmel_usba_udc.c epstatus = usba_ep_readl(ep, STA); ep 1661 drivers/usb/gadget/udc/atmel_usba_udc.c epctrl = usba_ep_readl(ep, CTL); ep 1664 drivers/usb/gadget/udc/atmel_usba_udc.c DBG(DBG_BUS, "%s: RX data ready\n", ep->ep.name); ep 1665 drivers/usb/gadget/udc/atmel_usba_udc.c receive_data(ep); ep 1669 drivers/usb/gadget/udc/atmel_usba_udc.c static void usba_dma_irq(struct usba_udc *udc, struct usba_ep *ep) ep 1674 drivers/usb/gadget/udc/atmel_usba_udc.c status = usba_dma_readl(ep, STATUS); ep 1675 drivers/usb/gadget/udc/atmel_usba_udc.c control = usba_dma_readl(ep, CONTROL); ep 1677 drivers/usb/gadget/udc/atmel_usba_udc.c ep->last_dma_status = status; ep 1695 drivers/usb/gadget/udc/atmel_usba_udc.c if (list_empty(&ep->queue)) ep 1700 drivers/usb/gadget/udc/atmel_usba_udc.c req = list_entry(ep->queue.next, struct usba_request, queue); ep 1701 drivers/usb/gadget/udc/atmel_usba_udc.c usba_update_req(ep, req, status); ep 1704 drivers/usb/gadget/udc/atmel_usba_udc.c submit_next_request(ep); ep 1705 drivers/usb/gadget/udc/atmel_usba_udc.c request_complete(ep, req, 0); ep 1791 drivers/usb/gadget/udc/atmel_usba_udc.c struct usba_ep *ep0, *ep; ep 1815 drivers/usb/gadget/udc/atmel_usba_udc.c ep0->ep.desc = &usba_ep0_desc; ep 1842 drivers/usb/gadget/udc/atmel_usba_udc.c ep = &udc->usba_ep[i]; ep 1843 drivers/usb/gadget/udc/atmel_usba_udc.c usba_ep_writel(ep, CFG, ep->ept_cfg); ep 1844 drivers/usb/gadget/udc/atmel_usba_udc.c if (!(usba_ep_readl(ep, CFG) & USBA_EPT_MAPPED)) ep 2062 drivers/usb/gadget/udc/atmel_usba_udc.c struct usba_ep *eps, *ep; ep 2096 drivers/usb/gadget/udc/atmel_usba_udc.c udc->gadget.ep0 = &eps[0].ep; ep 2098 drivers/usb/gadget/udc/atmel_usba_udc.c INIT_LIST_HEAD(&eps[0].ep.ep_list); ep 2103 drivers/usb/gadget/udc/atmel_usba_udc.c ep = &eps[i]; ep 2110 drivers/usb/gadget/udc/atmel_usba_udc.c ep->index = fifo_mode ? udc->fifo_cfg[i].hw_ep_num : val; ep 2121 drivers/usb/gadget/udc/atmel_usba_udc.c ep->fifo_size = val; ep 2123 drivers/usb/gadget/udc/atmel_usba_udc.c ep->fifo_size = udc->fifo_cfg[i].fifo_size; ep 2126 drivers/usb/gadget/udc/atmel_usba_udc.c ep->fifo_size = val; ep 2138 drivers/usb/gadget/udc/atmel_usba_udc.c ep->nr_banks = val; ep 2140 drivers/usb/gadget/udc/atmel_usba_udc.c ep->nr_banks = udc->fifo_cfg[i].nr_banks; ep 2143 drivers/usb/gadget/udc/atmel_usba_udc.c ep->nr_banks = val; ep 2146 drivers/usb/gadget/udc/atmel_usba_udc.c ep->can_dma = of_property_read_bool(pp, "atmel,can-dma"); ep 2147 drivers/usb/gadget/udc/atmel_usba_udc.c ep->can_isoc = of_property_read_bool(pp, "atmel,can-isoc"); ep 2149 drivers/usb/gadget/udc/atmel_usba_udc.c sprintf(ep->name, "ep%d", ep->index); ep 2150 drivers/usb/gadget/udc/atmel_usba_udc.c ep->ep.name = ep->name; ep 2152 drivers/usb/gadget/udc/atmel_usba_udc.c ep->ep_regs = udc->regs + USBA_EPT_BASE(i); ep 2153 drivers/usb/gadget/udc/atmel_usba_udc.c ep->dma_regs = udc->regs + USBA_DMA_BASE(i); ep 2154 drivers/usb/gadget/udc/atmel_usba_udc.c ep->fifo = udc->fifo + USBA_FIFO_BASE(i); ep 2155 drivers/usb/gadget/udc/atmel_usba_udc.c ep->ep.ops = &usba_ep_ops; ep 2156 drivers/usb/gadget/udc/atmel_usba_udc.c usb_ep_set_maxpacket_limit(&ep->ep, ep->fifo_size); ep 2157 drivers/usb/gadget/udc/atmel_usba_udc.c ep->udc = udc; ep 2158 drivers/usb/gadget/udc/atmel_usba_udc.c INIT_LIST_HEAD(&ep->queue); ep 2160 drivers/usb/gadget/udc/atmel_usba_udc.c if (ep->index == 0) { ep 2161 drivers/usb/gadget/udc/atmel_usba_udc.c ep->ep.caps.type_control = true; ep 2163 drivers/usb/gadget/udc/atmel_usba_udc.c ep->ep.caps.type_iso = ep->can_isoc; ep 2164 drivers/usb/gadget/udc/atmel_usba_udc.c ep->ep.caps.type_bulk = true; ep 2165 drivers/usb/gadget/udc/atmel_usba_udc.c ep->ep.caps.type_int = true; ep 2168 drivers/usb/gadget/udc/atmel_usba_udc.c ep->ep.caps.dir_in = true; ep 2169 drivers/usb/gadget/udc/atmel_usba_udc.c ep->ep.caps.dir_out = true; ep 2176 drivers/usb/gadget/udc/atmel_usba_udc.c if (ep->fifo_size <= 8) ep 2177 drivers/usb/gadget/udc/atmel_usba_udc.c ep->ept_cfg = USBA_BF(EPT_SIZE, USBA_EPT_SIZE_8); ep 2180 drivers/usb/gadget/udc/atmel_usba_udc.c ep->ept_cfg = ep 2181 drivers/usb/gadget/udc/atmel_usba_udc.c USBA_BF(EPT_SIZE, fls(ep->fifo_size - 1) - 3); ep 2183 drivers/usb/gadget/udc/atmel_usba_udc.c ep->ept_cfg |= USBA_BF(BK_NUMBER, ep->nr_banks); ep 2187 drivers/usb/gadget/udc/atmel_usba_udc.c list_add_tail(&ep->ep.ep_list, &udc->gadget.ep_list); ep 192 drivers/usb/gadget/udc/atmel_usba_udc.h #define usba_ep_readl(ep, reg) \ ep 193 drivers/usb/gadget/udc/atmel_usba_udc.h readl_relaxed((ep)->ep_regs + USBA_EPT_##reg) ep 194 drivers/usb/gadget/udc/atmel_usba_udc.h #define usba_ep_writel(ep, reg, value) \ ep 195 drivers/usb/gadget/udc/atmel_usba_udc.h writel_relaxed((value), (ep)->ep_regs + USBA_EPT_##reg) ep 196 drivers/usb/gadget/udc/atmel_usba_udc.h #define usba_dma_readl(ep, reg) \ ep 197 drivers/usb/gadget/udc/atmel_usba_udc.h readl_relaxed((ep)->dma_regs + USBA_DMA_##reg) ep 198 drivers/usb/gadget/udc/atmel_usba_udc.h #define usba_dma_writel(ep, reg, value) \ ep 199 drivers/usb/gadget/udc/atmel_usba_udc.h writel_relaxed((value), (ep)->dma_regs + USBA_DMA_##reg) ep 274 drivers/usb/gadget/udc/atmel_usba_udc.h struct usb_ep ep; ep 350 drivers/usb/gadget/udc/atmel_usba_udc.h static inline struct usba_ep *to_usba_ep(struct usb_ep *ep) ep 352 drivers/usb/gadget/udc/atmel_usba_udc.h return container_of(ep, struct usba_ep, ep); ep 365 drivers/usb/gadget/udc/atmel_usba_udc.h #define ep_is_control(ep) ((ep)->index == 0) ep 366 drivers/usb/gadget/udc/atmel_usba_udc.h #define ep_is_idle(ep) ((ep)->state == EP_STATE_IDLE) ep 240 drivers/usb/gadget/udc/bcm63xx_udc.c struct usb_ep ep; ep 344 drivers/usb/gadget/udc/bcm63xx_udc.c static inline struct bcm63xx_ep *our_ep(struct usb_ep *ep) ep 346 drivers/usb/gadget/udc/bcm63xx_udc.c return container_of(ep, struct bcm63xx_ep, ep); ep 568 drivers/usb/gadget/udc/bcm63xx_udc.c usb_ep_set_maxpacket_limit(&udc->bep[idx].ep, max_pkt); ep 957 drivers/usb/gadget/udc/bcm63xx_udc.c bep->ep.name = bcm63xx_ep_info[i].name; ep 958 drivers/usb/gadget/udc/bcm63xx_udc.c bep->ep.caps = bcm63xx_ep_info[i].caps; ep 960 drivers/usb/gadget/udc/bcm63xx_udc.c bep->ep.ops = &bcm63xx_udc_ep_ops; ep 961 drivers/usb/gadget/udc/bcm63xx_udc.c list_add_tail(&bep->ep.ep_list, &udc->gadget.ep_list); ep 963 drivers/usb/gadget/udc/bcm63xx_udc.c usb_ep_set_maxpacket_limit(&bep->ep, BCM63XX_MAX_CTRL_PKT); ep 965 drivers/usb/gadget/udc/bcm63xx_udc.c bep->ep.desc = NULL; ep 969 drivers/usb/gadget/udc/bcm63xx_udc.c udc->gadget.ep0 = &udc->bep[0].ep; ep 970 drivers/usb/gadget/udc/bcm63xx_udc.c list_del(&udc->bep[0].ep.ep_list); ep 1032 drivers/usb/gadget/udc/bcm63xx_udc.c static int bcm63xx_ep_enable(struct usb_ep *ep, ep 1035 drivers/usb/gadget/udc/bcm63xx_udc.c struct bcm63xx_ep *bep = our_ep(ep); ep 1040 drivers/usb/gadget/udc/bcm63xx_udc.c if (!ep || !desc || ep->name == bcm63xx_ep0name) ep 1061 drivers/usb/gadget/udc/bcm63xx_udc.c ep->desc = desc; ep 1062 drivers/usb/gadget/udc/bcm63xx_udc.c ep->maxpacket = usb_endpoint_maxp(desc); ep 1072 drivers/usb/gadget/udc/bcm63xx_udc.c static int bcm63xx_ep_disable(struct usb_ep *ep) ep 1074 drivers/usb/gadget/udc/bcm63xx_udc.c struct bcm63xx_ep *bep = our_ep(ep); ep 1080 drivers/usb/gadget/udc/bcm63xx_udc.c if (!ep || !ep->desc) ep 1100 drivers/usb/gadget/udc/bcm63xx_udc.c usb_gadget_giveback_request(&iudma->bep->ep, &breq->req); ep 1104 drivers/usb/gadget/udc/bcm63xx_udc.c ep->desc = NULL; ep 1115 drivers/usb/gadget/udc/bcm63xx_udc.c static struct usb_request *bcm63xx_udc_alloc_request(struct usb_ep *ep, ep 1131 drivers/usb/gadget/udc/bcm63xx_udc.c static void bcm63xx_udc_free_request(struct usb_ep *ep, ep 1152 drivers/usb/gadget/udc/bcm63xx_udc.c static int bcm63xx_udc_queue(struct usb_ep *ep, struct usb_request *req, ep 1155 drivers/usb/gadget/udc/bcm63xx_udc.c struct bcm63xx_ep *bep = our_ep(ep); ep 1161 drivers/usb/gadget/udc/bcm63xx_udc.c if (unlikely(!req || !req->complete || !req->buf || !ep)) ep 1205 drivers/usb/gadget/udc/bcm63xx_udc.c static int bcm63xx_udc_dequeue(struct usb_ep *ep, struct usb_request *req) ep 1207 drivers/usb/gadget/udc/bcm63xx_udc.c struct bcm63xx_ep *bep = our_ep(ep); ep 1241 drivers/usb/gadget/udc/bcm63xx_udc.c req->complete(ep, req); ep 1253 drivers/usb/gadget/udc/bcm63xx_udc.c static int bcm63xx_udc_set_halt(struct usb_ep *ep, int value) ep 1255 drivers/usb/gadget/udc/bcm63xx_udc.c struct bcm63xx_ep *bep = our_ep(ep); ep 1273 drivers/usb/gadget/udc/bcm63xx_udc.c static int bcm63xx_udc_set_wedge(struct usb_ep *ep) ep 1275 drivers/usb/gadget/udc/bcm63xx_udc.c struct bcm63xx_ep *bep = our_ep(ep); ep 1412 drivers/usb/gadget/udc/bcm63xx_udc.c req->complete(&udc->bep[0].ep, req); ep 2110 drivers/usb/gadget/udc/bcm63xx_udc.c req->complete(&bep->ep, req); ep 336 drivers/usb/gadget/udc/bdc/bdc.h struct bdc_ep *ep; ep 108 drivers/usb/gadget/udc/bdc/bdc_cmd.c int bdc_dconfig_ep(struct bdc *bdc, struct bdc_ep *ep) ep 112 drivers/usb/gadget/udc/bdc/bdc_cmd.c cmd_sc = BDC_SUB_CMD_DRP_EP|BDC_CMD_EPN(ep->ep_num)|BDC_CMD_EPC; ep 114 drivers/usb/gadget/udc/bdc/bdc_cmd.c ep->ep_num, cmd_sc); ep 120 drivers/usb/gadget/udc/bdc/bdc_cmd.c static void ep_bd_list_reinit(struct bdc_ep *ep) ep 122 drivers/usb/gadget/udc/bdc/bdc_cmd.c struct bdc *bdc = ep->bdc; ep 125 drivers/usb/gadget/udc/bdc/bdc_cmd.c ep->bd_list.eqp_bdi = 0; ep 126 drivers/usb/gadget/udc/bdc/bdc_cmd.c ep->bd_list.hwd_bdi = 0; ep 127 drivers/usb/gadget/udc/bdc/bdc_cmd.c bd = ep->bd_list.bd_table_array[0]->start_bd; ep 128 drivers/usb/gadget/udc/bdc/bdc_cmd.c dev_dbg(bdc->dev, "%s ep:%p bd:%p\n", __func__, ep, bd); ep 134 drivers/usb/gadget/udc/bdc/bdc_cmd.c int bdc_config_ep(struct bdc *bdc, struct bdc_ep *ep) ep 142 drivers/usb/gadget/udc/bdc/bdc_cmd.c desc = ep->desc; ep 143 drivers/usb/gadget/udc/bdc/bdc_cmd.c comp_desc = ep->comp_desc; ep 145 drivers/usb/gadget/udc/bdc/bdc_cmd.c param0 = lower_32_bits(ep->bd_list.bd_table_array[0]->dma); ep 146 drivers/usb/gadget/udc/bdc/bdc_cmd.c param1 = upper_32_bits(ep->bd_list.bd_table_array[0]->dma); ep 206 drivers/usb/gadget/udc/bdc/bdc_cmd.c cmd_sc |= BDC_CMD_EPC|BDC_CMD_EPN(ep->ep_num)|BDC_SUB_CMD_ADD_EP; ep 214 drivers/usb/gadget/udc/bdc/bdc_cmd.c ep_bd_list_reinit(ep); ep 223 drivers/usb/gadget/udc/bdc/bdc_cmd.c int bdc_ep_bla(struct bdc *bdc, struct bdc_ep *ep, dma_addr_t dma_addr) ep 235 drivers/usb/gadget/udc/bdc/bdc_cmd.c cmd_sc |= BDC_CMD_EPN(ep->ep_num)|BDC_CMD_BLA; ep 300 drivers/usb/gadget/udc/bdc/bdc_cmd.c struct bdc_ep *ep; ep 305 drivers/usb/gadget/udc/bdc/bdc_cmd.c ep = bdc->bdc_ep_array[epnum]; ep 312 drivers/usb/gadget/udc/bdc/bdc_cmd.c if (!(ep->flags & BDC_EP_STALL)) { ep 338 drivers/usb/gadget/udc/bdc/bdc_cmd.c struct bdc_ep *ep; ep 342 drivers/usb/gadget/udc/bdc/bdc_cmd.c ep = bdc->bdc_ep_array[epnum]; ep 344 drivers/usb/gadget/udc/bdc/bdc_cmd.c ep->name, ep->flags); ep 346 drivers/usb/gadget/udc/bdc/bdc_cmd.c if (!(ep->flags & BDC_EP_ENABLED)) { ep 350 drivers/usb/gadget/udc/bdc/bdc_cmd.c if ((ep->flags & BDC_EP_STALL) || (ep->flags & BDC_EP_STOP)) ep 361 drivers/usb/gadget/udc/bdc/bdc_cmd.c ret, ep->name); ep 364 drivers/usb/gadget/udc/bdc/bdc_cmd.c ep->flags |= BDC_EP_STOP; ep 85 drivers/usb/gadget/udc/bdc/bdc_dbg.c void bdc_dbg_bd_list(struct bdc *bdc, struct bdc_ep *ep) ep 87 drivers/usb/gadget/udc/bdc/bdc_dbg.c struct bd_list *bd_list = &ep->bd_list; ep 96 drivers/usb/gadget/udc/bdc/bdc_dbg.c ep->name, ep->ep_num); ep 26 drivers/usb/gadget/udc/bdc/bdc_dbg.h static inline void bdc_dbg_bd_list(struct bdc *bdc, struct bdc_ep *ep) ep 52 drivers/usb/gadget/udc/bdc/bdc_ep.c static void ep_bd_list_free(struct bdc_ep *ep, u32 num_tabs) ep 54 drivers/usb/gadget/udc/bdc/bdc_ep.c struct bd_list *bd_list = &ep->bd_list; ep 55 drivers/usb/gadget/udc/bdc/bdc_ep.c struct bdc *bdc = ep->bdc; ep 60 drivers/usb/gadget/udc/bdc/bdc_ep.c __func__, ep->name, num_tabs); ep 63 drivers/usb/gadget/udc/bdc/bdc_ep.c dev_dbg(bdc->dev, "%s already freed\n", ep->name); ep 95 drivers/usb/gadget/udc/bdc/bdc_ep.c kfree(ep->bd_list.bd_table_array); ep 121 drivers/usb/gadget/udc/bdc/bdc_ep.c static int ep_bd_list_alloc(struct bdc_ep *ep) ep 125 drivers/usb/gadget/udc/bdc/bdc_ep.c struct bdc *bdc = ep->bdc; ep 129 drivers/usb/gadget/udc/bdc/bdc_ep.c if (usb_endpoint_xfer_isoc(ep->desc)) ep 138 drivers/usb/gadget/udc/bdc/bdc_ep.c __func__, ep, num_tabs); ep 141 drivers/usb/gadget/udc/bdc/bdc_ep.c ep->bd_list.bd_table_array = kcalloc(num_tabs, ep 144 drivers/usb/gadget/udc/bdc/bdc_ep.c if (!ep->bd_list.bd_table_array) ep 169 drivers/usb/gadget/udc/bdc/bdc_ep.c ep->bd_list.bd_table_array[index] = bd_table; ep 175 drivers/usb/gadget/udc/bdc/bdc_ep.c chain_table(prev_table, ep->bd_list.bd_table_array[0], bd_p_tab); ep 177 drivers/usb/gadget/udc/bdc/bdc_ep.c ep->bd_list.num_tabs = num_tabs; ep 178 drivers/usb/gadget/udc/bdc/bdc_ep.c ep->bd_list.max_bdi = (num_tabs * bd_p_tab) - 1; ep 179 drivers/usb/gadget/udc/bdc/bdc_ep.c ep->bd_list.num_tabs = num_tabs; ep 180 drivers/usb/gadget/udc/bdc/bdc_ep.c ep->bd_list.num_bds_table = bd_p_tab; ep 181 drivers/usb/gadget/udc/bdc/bdc_ep.c ep->bd_list.eqp_bdi = 0; ep 182 drivers/usb/gadget/udc/bdc/bdc_ep.c ep->bd_list.hwd_bdi = 0; ep 187 drivers/usb/gadget/udc/bdc/bdc_ep.c ep_bd_list_free(ep, num_tabs); ep 215 drivers/usb/gadget/udc/bdc/bdc_ep.c static int bd_add_to_bdi(struct bdc_ep *ep, dma_addr_t bd_dma_addr) ep 217 drivers/usb/gadget/udc/bdc/bdc_ep.c struct bd_list *bd_list = &ep->bd_list; ep 219 drivers/usb/gadget/udc/bdc/bdc_ep.c struct bdc *bdc = ep->bdc; ep 258 drivers/usb/gadget/udc/bdc/bdc_ep.c static int bdi_to_tbi(struct bdc_ep *ep, int bdi) ep 262 drivers/usb/gadget/udc/bdc/bdc_ep.c tbi = bdi / ep->bd_list.num_bds_table; ep 263 drivers/usb/gadget/udc/bdc/bdc_ep.c dev_vdbg(ep->bdc->dev, ep 265 drivers/usb/gadget/udc/bdc/bdc_ep.c bdi, ep->bd_list.num_bds_table, tbi); ep 271 drivers/usb/gadget/udc/bdc/bdc_ep.c static inline int find_end_bdi(struct bdc_ep *ep, int next_hwd_bdi) ep 277 drivers/usb/gadget/udc/bdc/bdc_ep.c end_bdi = ep->bd_list.max_bdi - 1; ep 278 drivers/usb/gadget/udc/bdc/bdc_ep.c else if ((end_bdi % (ep->bd_list.num_bds_table-1)) == 0) ep 288 drivers/usb/gadget/udc/bdc/bdc_ep.c static int bd_available_ep(struct bdc_ep *ep) ep 290 drivers/usb/gadget/udc/bdc/bdc_ep.c struct bd_list *bd_list = &ep->bd_list; ep 292 drivers/usb/gadget/udc/bdc/bdc_ep.c struct bdc *bdc = ep->bdc; ep 321 drivers/usb/gadget/udc/bdc/bdc_ep.c if (!(bdi_to_tbi(ep, bd_list->hwd_bdi) ep 322 drivers/usb/gadget/udc/bdc/bdc_ep.c == bdi_to_tbi(ep, bd_list->eqp_bdi))) { ep 343 drivers/usb/gadget/udc/bdc/bdc_ep.c struct bdc_ep *ep = bdc->bdc_ep_array[epnum]; ep 350 drivers/usb/gadget/udc/bdc/bdc_ep.c if (unlikely(ep->flags & BDC_EP_STOP)) ep 351 drivers/usb/gadget/udc/bdc/bdc_ep.c ep->flags &= ~BDC_EP_STOP; ep 357 drivers/usb/gadget/udc/bdc/bdc_ep.c static struct bdc_bd *bdi_to_bd(struct bdc_ep *ep, int bdi) ep 359 drivers/usb/gadget/udc/bdc/bdc_ep.c int tbi = bdi_to_tbi(ep, bdi); ep 362 drivers/usb/gadget/udc/bdc/bdc_ep.c local_bdi = bdi - (tbi * ep->bd_list.num_bds_table); ep 363 drivers/usb/gadget/udc/bdc/bdc_ep.c dev_vdbg(ep->bdc->dev, ep 367 drivers/usb/gadget/udc/bdc/bdc_ep.c return (ep->bd_list.bd_table_array[tbi]->start_bd + local_bdi); ep 371 drivers/usb/gadget/udc/bdc/bdc_ep.c static void ep_bdlist_eqp_adv(struct bdc_ep *ep) ep 373 drivers/usb/gadget/udc/bdc/bdc_ep.c ep->bd_list.eqp_bdi++; ep 375 drivers/usb/gadget/udc/bdc/bdc_ep.c if (((ep->bd_list.eqp_bdi + 1) % ep->bd_list.num_bds_table) == 0) ep 376 drivers/usb/gadget/udc/bdc/bdc_ep.c ep->bd_list.eqp_bdi++; ep 379 drivers/usb/gadget/udc/bdc/bdc_ep.c if (ep->bd_list.eqp_bdi == (ep->bd_list.max_bdi + 1)) ep 380 drivers/usb/gadget/udc/bdc/bdc_ep.c ep->bd_list.eqp_bdi = 0; ep 389 drivers/usb/gadget/udc/bdc/bdc_ep.c req->ep->dir = 0; ep 431 drivers/usb/gadget/udc/bdc/bdc_ep.c struct bdc_ep *ep; ep 436 drivers/usb/gadget/udc/bdc/bdc_ep.c ep = req->ep; ep 437 drivers/usb/gadget/udc/bdc/bdc_ep.c bd_list = &ep->bd_list; ep 441 drivers/usb/gadget/udc/bdc/bdc_ep.c bd = bdi_to_bd(ep, bd_list->eqp_bdi); ep 443 drivers/usb/gadget/udc/bdc/bdc_ep.c maxp = usb_endpoint_maxp(ep->desc); ep 447 drivers/usb/gadget/udc/bdc/bdc_ep.c __func__, ep->name, num_bds, tfs, req_len, bd); ep 456 drivers/usb/gadget/udc/bdc/bdc_ep.c if (ep->ep_num == 1) { ep 462 drivers/usb/gadget/udc/bdc/bdc_ep.c if (!req->ep->dir) ep 476 drivers/usb/gadget/udc/bdc/bdc_ep.c bd = bdi_to_bd(ep, ep->bd_list.eqp_bdi); ep 487 drivers/usb/gadget/udc/bdc/bdc_ep.c ep_bdlist_eqp_adv(ep); ep 492 drivers/usb/gadget/udc/bdc/bdc_ep.c ep->bd_list.eqp_bdi); ep 493 drivers/usb/gadget/udc/bdc/bdc_ep.c bd = bdi_to_bd(ep, ep->bd_list.eqp_bdi); ep 497 drivers/usb/gadget/udc/bdc/bdc_ep.c bd = bdi_to_bd(ep, bd_xfr->start_bdi); ep 501 drivers/usb/gadget/udc/bdc/bdc_ep.c bd_xfr->next_hwd_bdi = ep->bd_list.eqp_bdi; ep 512 drivers/usb/gadget/udc/bdc/bdc_ep.c struct bdc_ep *ep; ep 515 drivers/usb/gadget/udc/bdc/bdc_ep.c ep = req->ep; ep 518 drivers/usb/gadget/udc/bdc/bdc_ep.c ep->bd_list.eqp_bdi, ep->bd_list.hwd_bdi); ep 521 drivers/usb/gadget/udc/bdc/bdc_ep.c bd_available = bd_available_ep(ep); ep 530 drivers/usb/gadget/udc/bdc/bdc_ep.c list_add_tail(&req->queue, &ep->queue); ep 531 drivers/usb/gadget/udc/bdc/bdc_ep.c bdc_dbg_bd_list(bdc, ep); ep 532 drivers/usb/gadget/udc/bdc/bdc_ep.c bdc_notify_xfr(bdc, ep->ep_num); ep 538 drivers/usb/gadget/udc/bdc/bdc_ep.c static void bdc_req_complete(struct bdc_ep *ep, struct bdc_req *req, ep 541 drivers/usb/gadget/udc/bdc/bdc_ep.c struct bdc *bdc = ep->bdc; ep 546 drivers/usb/gadget/udc/bdc/bdc_ep.c dev_dbg(bdc->dev, "%s ep:%s status:%d\n", __func__, ep->name, status); ep 549 drivers/usb/gadget/udc/bdc/bdc_ep.c usb_gadget_unmap_request(&bdc->gadget, &req->usb_req, ep->dir); ep 552 drivers/usb/gadget/udc/bdc/bdc_ep.c usb_gadget_giveback_request(&ep->usb_ep, &req->usb_req); ep 558 drivers/usb/gadget/udc/bdc/bdc_ep.c int bdc_ep_disable(struct bdc_ep *ep) ep 565 drivers/usb/gadget/udc/bdc/bdc_ep.c bdc = ep->bdc; ep 566 drivers/usb/gadget/udc/bdc/bdc_ep.c dev_dbg(bdc->dev, "%s() ep->ep_num=%d\n", __func__, ep->ep_num); ep 568 drivers/usb/gadget/udc/bdc/bdc_ep.c ret = bdc_stop_ep(bdc, ep->ep_num); ep 575 drivers/usb/gadget/udc/bdc/bdc_ep.c while (!list_empty(&ep->queue)) { ep 576 drivers/usb/gadget/udc/bdc/bdc_ep.c req = list_entry(ep->queue.next, struct bdc_req, ep 578 drivers/usb/gadget/udc/bdc/bdc_ep.c bdc_req_complete(ep, req, -ESHUTDOWN); ep 581 drivers/usb/gadget/udc/bdc/bdc_ep.c ret = bdc_dconfig_ep(bdc, ep); ep 586 drivers/usb/gadget/udc/bdc/bdc_ep.c ep->flags = 0; ep 588 drivers/usb/gadget/udc/bdc/bdc_ep.c if (ep->ep_num == 1) ep 592 drivers/usb/gadget/udc/bdc/bdc_ep.c ep_bd_list_free(ep, ep->bd_list.num_tabs); ep 593 drivers/usb/gadget/udc/bdc/bdc_ep.c ep->desc = NULL; ep 594 drivers/usb/gadget/udc/bdc/bdc_ep.c ep->comp_desc = NULL; ep 595 drivers/usb/gadget/udc/bdc/bdc_ep.c ep->usb_ep.desc = NULL; ep 596 drivers/usb/gadget/udc/bdc/bdc_ep.c ep->ep_type = 0; ep 602 drivers/usb/gadget/udc/bdc/bdc_ep.c int bdc_ep_enable(struct bdc_ep *ep) ep 607 drivers/usb/gadget/udc/bdc/bdc_ep.c bdc = ep->bdc; ep 611 drivers/usb/gadget/udc/bdc/bdc_ep.c ret = ep_bd_list_alloc(ep); ep 616 drivers/usb/gadget/udc/bdc/bdc_ep.c bdc_dbg_bd_list(bdc, ep); ep 618 drivers/usb/gadget/udc/bdc/bdc_ep.c ep->flags |= BDC_EP_ENABLED; ep 619 drivers/usb/gadget/udc/bdc/bdc_ep.c if (ep->ep_num == 1) ep 623 drivers/usb/gadget/udc/bdc/bdc_ep.c ret = bdc_config_ep(bdc, ep); ep 627 drivers/usb/gadget/udc/bdc/bdc_ep.c ep->usb_ep.maxpacket = usb_endpoint_maxp(ep->desc); ep 628 drivers/usb/gadget/udc/bdc/bdc_ep.c ep->usb_ep.desc = ep->desc; ep 629 drivers/usb/gadget/udc/bdc/bdc_ep.c ep->usb_ep.comp_desc = ep->comp_desc; ep 630 drivers/usb/gadget/udc/bdc/bdc_ep.c ep->ep_type = usb_endpoint_type(ep->desc); ep 631 drivers/usb/gadget/udc/bdc/bdc_ep.c ep->flags |= BDC_EP_ENABLED; ep 642 drivers/usb/gadget/udc/bdc/bdc_ep.c struct bdc_ep *ep; ep 645 drivers/usb/gadget/udc/bdc/bdc_ep.c ep = bdc->bdc_ep_array[1]; ep 646 drivers/usb/gadget/udc/bdc/bdc_ep.c status_req->ep = ep; ep 657 drivers/usb/gadget/udc/bdc/bdc_ep.c static int ep0_queue(struct bdc_ep *ep, struct bdc_req *req) ep 662 drivers/usb/gadget/udc/bdc/bdc_ep.c bdc = ep->bdc; ep 666 drivers/usb/gadget/udc/bdc/bdc_ep.c req->epnum = ep->ep_num; ep 687 drivers/usb/gadget/udc/bdc/bdc_ep.c ret = usb_gadget_map_request(&bdc->gadget, &req->usb_req, ep->dir); ep 689 drivers/usb/gadget/udc/bdc/bdc_ep.c dev_err(bdc->dev, "dma mapping failed %s\n", ep->name); ep 699 drivers/usb/gadget/udc/bdc/bdc_ep.c struct bdc_ep *ep; ep 702 drivers/usb/gadget/udc/bdc/bdc_ep.c ep = bdc->bdc_ep_array[1]; ep 703 drivers/usb/gadget/udc/bdc/bdc_ep.c bdc->ep0_req.ep = ep; ep 706 drivers/usb/gadget/udc/bdc/bdc_ep.c return ep0_queue(ep, &bdc->ep0_req); ep 710 drivers/usb/gadget/udc/bdc/bdc_ep.c static int ep_queue(struct bdc_ep *ep, struct bdc_req *req) ep 715 drivers/usb/gadget/udc/bdc/bdc_ep.c if (!req || !ep->usb_ep.desc) ep 718 drivers/usb/gadget/udc/bdc/bdc_ep.c bdc = ep->bdc; ep 722 drivers/usb/gadget/udc/bdc/bdc_ep.c req->epnum = ep->ep_num; ep 724 drivers/usb/gadget/udc/bdc/bdc_ep.c ret = usb_gadget_map_request(&bdc->gadget, &req->usb_req, ep->dir); ep 734 drivers/usb/gadget/udc/bdc/bdc_ep.c static int ep_dequeue(struct bdc_ep *ep, struct bdc_req *req) ep 748 drivers/usb/gadget/udc/bdc/bdc_ep.c bdc = ep->bdc; ep 750 drivers/usb/gadget/udc/bdc/bdc_ep.c eqp_bdi = ep->bd_list.eqp_bdi - 1; ep 753 drivers/usb/gadget/udc/bdc/bdc_ep.c eqp_bdi = ep->bd_list.max_bdi; ep 756 drivers/usb/gadget/udc/bdc/bdc_ep.c end_bdi = find_end_bdi(ep, req->bd_xfr.next_hwd_bdi); ep 759 drivers/usb/gadget/udc/bdc/bdc_ep.c __func__, ep->name, start_bdi, end_bdi); ep 761 drivers/usb/gadget/udc/bdc/bdc_ep.c ep, (void *)ep->usb_ep.desc); ep 763 drivers/usb/gadget/udc/bdc/bdc_ep.c ret = bdc_stop_ep(bdc, ep->ep_num); ep 780 drivers/usb/gadget/udc/bdc/bdc_ep.c curr_hw_dqpi = bd_add_to_bdi(ep, deq_ptr_64); ep 820 drivers/usb/gadget/udc/bdc/bdc_ep.c tbi = bdi_to_tbi(ep, req->bd_xfr.next_hwd_bdi); ep 821 drivers/usb/gadget/udc/bdc/bdc_ep.c table = ep->bd_list.bd_table_array[tbi]; ep 824 drivers/usb/gadget/udc/bdc/bdc_ep.c tbi * ep->bd_list.num_bds_table); ep 826 drivers/usb/gadget/udc/bdc/bdc_ep.c first_req = list_first_entry(&ep->queue, struct bdc_req, ep 842 drivers/usb/gadget/udc/bdc/bdc_ep.c bd_start = bdi_to_bd(ep, start_bdi); ep 847 drivers/usb/gadget/udc/bdc/bdc_ep.c bdc_dbg_bd_list(bdc, ep); ep 853 drivers/usb/gadget/udc/bdc/bdc_ep.c ret = bdc_ep_bla(bdc, ep, next_bd_dma); ep 864 drivers/usb/gadget/udc/bdc/bdc_ep.c static int ep_set_halt(struct bdc_ep *ep, u32 value) ep 869 drivers/usb/gadget/udc/bdc/bdc_ep.c bdc = ep->bdc; ep 870 drivers/usb/gadget/udc/bdc/bdc_ep.c dev_dbg(bdc->dev, "%s ep:%s value=%d\n", __func__, ep->name, value); ep 874 drivers/usb/gadget/udc/bdc/bdc_ep.c if (ep->ep_num == 1) ep 877 drivers/usb/gadget/udc/bdc/bdc_ep.c ret = bdc_ep_set_stall(bdc, ep->ep_num); ep 880 drivers/usb/gadget/udc/bdc/bdc_ep.c ep->name); ep 882 drivers/usb/gadget/udc/bdc/bdc_ep.c ep->flags |= BDC_EP_STALL; ep 886 drivers/usb/gadget/udc/bdc/bdc_ep.c ret = bdc_ep_clear_stall(bdc, ep->ep_num); ep 889 drivers/usb/gadget/udc/bdc/bdc_ep.c ep->name); ep 891 drivers/usb/gadget/udc/bdc/bdc_ep.c ep->flags &= ~BDC_EP_STALL; ep 901 drivers/usb/gadget/udc/bdc/bdc_ep.c struct bdc_ep *ep; ep 906 drivers/usb/gadget/udc/bdc/bdc_ep.c ep = bdc->bdc_ep_array[epnum]; ep 907 drivers/usb/gadget/udc/bdc/bdc_ep.c if (!ep) ep 910 drivers/usb/gadget/udc/bdc/bdc_ep.c if (ep->flags & BDC_EP_ENABLED) ep 911 drivers/usb/gadget/udc/bdc/bdc_ep.c ep_bd_list_free(ep, ep->bd_list.num_tabs); ep 915 drivers/usb/gadget/udc/bdc/bdc_ep.c list_del(&ep->usb_ep.ep_list); ep 917 drivers/usb/gadget/udc/bdc/bdc_ep.c kfree(ep); ep 950 drivers/usb/gadget/udc/bdc/bdc_ep.c static void handle_xsr_succ_status(struct bdc *bdc, struct bdc_ep *ep, ep 954 drivers/usb/gadget/udc/bdc/bdc_ep.c struct bd_list *bd_list = &ep->bd_list; ep 964 drivers/usb/gadget/udc/bdc/bdc_ep.c dev_dbg(bdc->dev, "%s ep:%p\n", __func__, ep); ep 967 drivers/usb/gadget/udc/bdc/bdc_ep.c if (ep->ignore_next_sr) { ep 968 drivers/usb/gadget/udc/bdc/bdc_ep.c ep->ignore_next_sr = false; ep 972 drivers/usb/gadget/udc/bdc/bdc_ep.c if (unlikely(list_empty(&ep->queue))) { ep 976 drivers/usb/gadget/udc/bdc/bdc_ep.c req = list_entry(ep->queue.next, struct bdc_req, ep 996 drivers/usb/gadget/udc/bdc/bdc_ep.c short_bdi = bd_add_to_bdi(ep, deq_ptr_64); ep 1008 drivers/usb/gadget/udc/bdc/bdc_ep.c if (!(bdi_to_tbi(ep, start_bdi) == ep 1009 drivers/usb/gadget/udc/bdc/bdc_ep.c bdi_to_tbi(ep, short_bdi))) ep 1025 drivers/usb/gadget/udc/bdc/bdc_ep.c end_bdi = find_end_bdi(ep, bd_xfr->next_hwd_bdi); ep 1027 drivers/usb/gadget/udc/bdc/bdc_ep.c ep->ignore_next_sr = true; ep 1030 drivers/usb/gadget/udc/bdc/bdc_ep.c short_bd = bdi_to_bd(ep, short_bdi); ep 1047 drivers/usb/gadget/udc/bdc/bdc_ep.c ep->bd_list.hwd_bdi = bd_xfr->next_hwd_bdi; ep 1049 drivers/usb/gadget/udc/bdc/bdc_ep.c dev_dbg(bdc->dev, "short xfr on %d\n", ep->ep_num); ep 1053 drivers/usb/gadget/udc/bdc/bdc_ep.c bdc_req_complete(ep, bd_xfr->req, status); ep 1088 drivers/usb/gadget/udc/bdc/bdc_ep.c struct bdc_ep *ep = bdc->bdc_ep_array[1]; ep 1093 drivers/usb/gadget/udc/bdc/bdc_ep.c ep_set_halt(ep, 1); ep 1096 drivers/usb/gadget/udc/bdc/bdc_ep.c while (!list_empty(&ep->queue)) { ep 1097 drivers/usb/gadget/udc/bdc/bdc_ep.c req = list_entry(ep->queue.next, struct bdc_req, ep 1099 drivers/usb/gadget/udc/bdc/bdc_ep.c bdc_req_complete(ep, req, -ESHUTDOWN); ep 1231 drivers/usb/gadget/udc/bdc/bdc_ep.c struct bdc_ep *ep; ep 1288 drivers/usb/gadget/udc/bdc/bdc_ep.c ep = bdc->bdc_ep_array[epnum]; ep 1289 drivers/usb/gadget/udc/bdc/bdc_ep.c if (!ep) ep 1292 drivers/usb/gadget/udc/bdc/bdc_ep.c return ep_set_halt(ep, set); ep 1306 drivers/usb/gadget/udc/bdc/bdc_ep.c struct bdc_ep *ep; ep 1354 drivers/usb/gadget/udc/bdc/bdc_ep.c ep = bdc->bdc_ep_array[epnum]; ep 1355 drivers/usb/gadget/udc/bdc/bdc_ep.c if (!ep) { ep 1359 drivers/usb/gadget/udc/bdc/bdc_ep.c if (ep->flags & BDC_EP_STALL) ep 1386 drivers/usb/gadget/udc/bdc/bdc_ep.c struct bdc_ep *ep; ep 1395 drivers/usb/gadget/udc/bdc/bdc_ep.c ep = bdc->bdc_ep_array[1]; ep 1396 drivers/usb/gadget/udc/bdc/bdc_ep.c bdc->ep0_req.ep = ep; ep 1414 drivers/usb/gadget/udc/bdc/bdc_ep.c bdc->ep0_req.ep = bdc->bdc_ep_array[1]; ep 1510 drivers/usb/gadget/udc/bdc/bdc_ep.c struct bdc_ep *ep; ep 1514 drivers/usb/gadget/udc/bdc/bdc_ep.c ep = bdc->bdc_ep_array[1]; ep 1516 drivers/usb/gadget/udc/bdc/bdc_ep.c if (ep->flags & BDC_EP_STALL) { ep 1517 drivers/usb/gadget/udc/bdc/bdc_ep.c ret = ep_set_halt(ep, 0); ep 1549 drivers/usb/gadget/udc/bdc/bdc_ep.c struct bdc_ep *ep; ep 1555 drivers/usb/gadget/udc/bdc/bdc_ep.c ep = bdc->bdc_ep_array[1]; ep 1561 drivers/usb/gadget/udc/bdc/bdc_ep.c if (ep->flags & BDC_EP_STALL) { ep 1562 drivers/usb/gadget/udc/bdc/bdc_ep.c ret = ep_set_halt(ep, 0); ep 1644 drivers/usb/gadget/udc/bdc/bdc_ep.c struct bdc_ep *ep; ep 1649 drivers/usb/gadget/udc/bdc/bdc_ep.c ep = bdc->bdc_ep_array[ep_num]; ep 1650 drivers/usb/gadget/udc/bdc/bdc_ep.c if (!ep || !(ep->flags & BDC_EP_ENABLED)) { ep 1665 drivers/usb/gadget/udc/bdc/bdc_ep.c __func__, sr_status, ep->name); ep 1670 drivers/usb/gadget/udc/bdc/bdc_ep.c handle_xsr_succ_status(bdc, ep, sreport); ep 1713 drivers/usb/gadget/udc/bdc/bdc_ep.c struct bdc_ep *ep; ep 1723 drivers/usb/gadget/udc/bdc/bdc_ep.c ep = to_bdc_ep(_ep); ep 1725 drivers/usb/gadget/udc/bdc/bdc_ep.c bdc = ep->bdc; ep 1726 drivers/usb/gadget/udc/bdc/bdc_ep.c dev_dbg(bdc->dev, "%s ep:%p req:%p\n", __func__, ep, req); ep 1728 drivers/usb/gadget/udc/bdc/bdc_ep.c _req, ep->name, _req->length, _req->zero); ep 1730 drivers/usb/gadget/udc/bdc/bdc_ep.c if (!ep->usb_ep.desc) { ep 1733 drivers/usb/gadget/udc/bdc/bdc_ep.c _req, ep->name); ep 1744 drivers/usb/gadget/udc/bdc/bdc_ep.c if (ep == bdc->bdc_ep_array[1]) ep 1745 drivers/usb/gadget/udc/bdc/bdc_ep.c ret = ep0_queue(ep, req); ep 1747 drivers/usb/gadget/udc/bdc/bdc_ep.c ret = ep_queue(ep, req); ep 1759 drivers/usb/gadget/udc/bdc/bdc_ep.c struct bdc_ep *ep; ep 1766 drivers/usb/gadget/udc/bdc/bdc_ep.c ep = to_bdc_ep(_ep); ep 1768 drivers/usb/gadget/udc/bdc/bdc_ep.c bdc = ep->bdc; ep 1769 drivers/usb/gadget/udc/bdc/bdc_ep.c dev_dbg(bdc->dev, "%s ep:%s req:%p\n", __func__, ep->name, req); ep 1770 drivers/usb/gadget/udc/bdc/bdc_ep.c bdc_dbg_bd_list(bdc, ep); ep 1773 drivers/usb/gadget/udc/bdc/bdc_ep.c list_for_each_entry(req, &ep->queue, queue) { ep 1782 drivers/usb/gadget/udc/bdc/bdc_ep.c ret = ep_dequeue(ep, req); ep 1787 drivers/usb/gadget/udc/bdc/bdc_ep.c bdc_req_complete(ep, req, -ECONNRESET); ep 1790 drivers/usb/gadget/udc/bdc/bdc_ep.c bdc_dbg_bd_list(bdc, ep); ep 1799 drivers/usb/gadget/udc/bdc/bdc_ep.c struct bdc_ep *ep; ep 1803 drivers/usb/gadget/udc/bdc/bdc_ep.c ep = to_bdc_ep(_ep); ep 1804 drivers/usb/gadget/udc/bdc/bdc_ep.c bdc = ep->bdc; ep 1805 drivers/usb/gadget/udc/bdc/bdc_ep.c dev_dbg(bdc->dev, "%s ep:%s value=%d\n", __func__, ep->name, value); ep 1807 drivers/usb/gadget/udc/bdc/bdc_ep.c if (usb_endpoint_xfer_isoc(ep->usb_ep.desc)) ep 1809 drivers/usb/gadget/udc/bdc/bdc_ep.c else if (!list_empty(&ep->queue)) ep 1812 drivers/usb/gadget/udc/bdc/bdc_ep.c ret = ep_set_halt(ep, value); ep 1823 drivers/usb/gadget/udc/bdc/bdc_ep.c struct bdc_ep *ep; ep 1829 drivers/usb/gadget/udc/bdc/bdc_ep.c ep = to_bdc_ep(_ep); ep 1830 drivers/usb/gadget/udc/bdc/bdc_ep.c req->ep = ep; ep 1831 drivers/usb/gadget/udc/bdc/bdc_ep.c req->epnum = ep->ep_num; ep 1833 drivers/usb/gadget/udc/bdc/bdc_ep.c dev_dbg(ep->bdc->dev, "%s ep:%s req:%p\n", __func__, ep->name, req); ep 1854 drivers/usb/gadget/udc/bdc/bdc_ep.c struct bdc_ep *ep; ep 1868 drivers/usb/gadget/udc/bdc/bdc_ep.c ep = to_bdc_ep(_ep); ep 1869 drivers/usb/gadget/udc/bdc/bdc_ep.c bdc = ep->bdc; ep 1872 drivers/usb/gadget/udc/bdc/bdc_ep.c if (ep == bdc->bdc_ep_array[1]) ep 1880 drivers/usb/gadget/udc/bdc/bdc_ep.c dev_dbg(bdc->dev, "%s Enabling %s\n", __func__, ep->name); ep 1882 drivers/usb/gadget/udc/bdc/bdc_ep.c ep->desc = desc; ep 1883 drivers/usb/gadget/udc/bdc/bdc_ep.c ep->comp_desc = _ep->comp_desc; ep 1884 drivers/usb/gadget/udc/bdc/bdc_ep.c ret = bdc_ep_enable(ep); ep 1893 drivers/usb/gadget/udc/bdc/bdc_ep.c struct bdc_ep *ep; ep 1901 drivers/usb/gadget/udc/bdc/bdc_ep.c ep = to_bdc_ep(_ep); ep 1902 drivers/usb/gadget/udc/bdc/bdc_ep.c bdc = ep->bdc; ep 1905 drivers/usb/gadget/udc/bdc/bdc_ep.c if (ep == bdc->bdc_ep_array[1]) { ep 1911 drivers/usb/gadget/udc/bdc/bdc_ep.c __func__, ep->name, ep->flags); ep 1913 drivers/usb/gadget/udc/bdc/bdc_ep.c if (!(ep->flags & BDC_EP_ENABLED)) { ep 1914 drivers/usb/gadget/udc/bdc/bdc_ep.c dev_warn(bdc->dev, "%s is already disabled\n", ep->name); ep 1918 drivers/usb/gadget/udc/bdc/bdc_ep.c ret = bdc_ep_disable(ep); ep 1937 drivers/usb/gadget/udc/bdc/bdc_ep.c struct bdc_ep *ep; ep 1940 drivers/usb/gadget/udc/bdc/bdc_ep.c ep = kzalloc(sizeof(*ep), GFP_KERNEL); ep 1941 drivers/usb/gadget/udc/bdc/bdc_ep.c if (!ep) ep 1944 drivers/usb/gadget/udc/bdc/bdc_ep.c ep->bdc = bdc; ep 1945 drivers/usb/gadget/udc/bdc/bdc_ep.c ep->dir = dir; ep 1948 drivers/usb/gadget/udc/bdc/bdc_ep.c ep->usb_ep.caps.dir_in = true; ep 1950 drivers/usb/gadget/udc/bdc/bdc_ep.c ep->usb_ep.caps.dir_out = true; ep 1954 drivers/usb/gadget/udc/bdc/bdc_ep.c ep->ep_num = 1; ep 1955 drivers/usb/gadget/udc/bdc/bdc_ep.c bdc->bdc_ep_array[ep->ep_num] = ep; ep 1956 drivers/usb/gadget/udc/bdc/bdc_ep.c snprintf(ep->name, sizeof(ep->name), "ep%d", epnum - 1); ep 1957 drivers/usb/gadget/udc/bdc/bdc_ep.c usb_ep_set_maxpacket_limit(&ep->usb_ep, EP0_MAX_PKT_SIZE); ep 1958 drivers/usb/gadget/udc/bdc/bdc_ep.c ep->usb_ep.caps.type_control = true; ep 1959 drivers/usb/gadget/udc/bdc/bdc_ep.c ep->comp_desc = NULL; ep 1960 drivers/usb/gadget/udc/bdc/bdc_ep.c bdc->gadget.ep0 = &ep->usb_ep; ep 1963 drivers/usb/gadget/udc/bdc/bdc_ep.c ep->ep_num = epnum * 2 - 1; ep 1965 drivers/usb/gadget/udc/bdc/bdc_ep.c ep->ep_num = epnum * 2 - 2; ep 1967 drivers/usb/gadget/udc/bdc/bdc_ep.c bdc->bdc_ep_array[ep->ep_num] = ep; ep 1968 drivers/usb/gadget/udc/bdc/bdc_ep.c snprintf(ep->name, sizeof(ep->name), "ep%d%s", epnum - 1, ep 1971 drivers/usb/gadget/udc/bdc/bdc_ep.c usb_ep_set_maxpacket_limit(&ep->usb_ep, 1024); ep 1972 drivers/usb/gadget/udc/bdc/bdc_ep.c ep->usb_ep.caps.type_iso = true; ep 1973 drivers/usb/gadget/udc/bdc/bdc_ep.c ep->usb_ep.caps.type_bulk = true; ep 1974 drivers/usb/gadget/udc/bdc/bdc_ep.c ep->usb_ep.caps.type_int = true; ep 1975 drivers/usb/gadget/udc/bdc/bdc_ep.c ep->usb_ep.max_streams = 0; ep 1976 drivers/usb/gadget/udc/bdc/bdc_ep.c list_add_tail(&ep->usb_ep.ep_list, &bdc->gadget.ep_list); ep 1978 drivers/usb/gadget/udc/bdc/bdc_ep.c ep->usb_ep.ops = &bdc_gadget_ep_ops; ep 1979 drivers/usb/gadget/udc/bdc/bdc_ep.c ep->usb_ep.name = ep->name; ep 1980 drivers/usb/gadget/udc/bdc/bdc_ep.c ep->flags = 0; ep 1981 drivers/usb/gadget/udc/bdc/bdc_ep.c ep->ignore_next_sr = false; ep 1983 drivers/usb/gadget/udc/bdc/bdc_ep.c ep, ep->usb_ep.name, epnum, ep->ep_num); ep 1985 drivers/usb/gadget/udc/bdc/bdc_ep.c INIT_LIST_HEAD(&ep->queue); ep 131 drivers/usb/gadget/udc/bdc/bdc_udc.c struct bdc_ep *ep; ep 138 drivers/usb/gadget/udc/bdc/bdc_udc.c ep = bdc->bdc_ep_array[1]; ep 139 drivers/usb/gadget/udc/bdc/bdc_udc.c if (ep && (ep->flags & BDC_EP_ENABLED)) ep 141 drivers/usb/gadget/udc/bdc/bdc_udc.c bdc_ep_disable(ep); ep 62 drivers/usb/gadget/udc/core.c void usb_ep_set_maxpacket_limit(struct usb_ep *ep, ep 65 drivers/usb/gadget/udc/core.c ep->maxpacket_limit = maxpacket_limit; ep 66 drivers/usb/gadget/udc/core.c ep->maxpacket = maxpacket_limit; ep 68 drivers/usb/gadget/udc/core.c trace_usb_ep_set_maxpacket_limit(ep, 0); ep 94 drivers/usb/gadget/udc/core.c int usb_ep_enable(struct usb_ep *ep) ep 98 drivers/usb/gadget/udc/core.c if (ep->enabled) ep 102 drivers/usb/gadget/udc/core.c if (usb_endpoint_maxp(ep->desc) == 0) { ep 112 drivers/usb/gadget/udc/core.c ret = ep->ops->enable(ep, ep->desc); ep 116 drivers/usb/gadget/udc/core.c ep->enabled = true; ep 119 drivers/usb/gadget/udc/core.c trace_usb_ep_enable(ep, ret); ep 139 drivers/usb/gadget/udc/core.c int usb_ep_disable(struct usb_ep *ep) ep 143 drivers/usb/gadget/udc/core.c if (!ep->enabled) ep 146 drivers/usb/gadget/udc/core.c ret = ep->ops->disable(ep); ep 150 drivers/usb/gadget/udc/core.c ep->enabled = false; ep 153 drivers/usb/gadget/udc/core.c trace_usb_ep_disable(ep, ret); ep 173 drivers/usb/gadget/udc/core.c struct usb_request *usb_ep_alloc_request(struct usb_ep *ep, ep 178 drivers/usb/gadget/udc/core.c req = ep->ops->alloc_request(ep, gfp_flags); ep 180 drivers/usb/gadget/udc/core.c trace_usb_ep_alloc_request(ep, req, req ? 0 : -ENOMEM); ep 195 drivers/usb/gadget/udc/core.c void usb_ep_free_request(struct usb_ep *ep, ep 198 drivers/usb/gadget/udc/core.c trace_usb_ep_free_request(ep, req, 0); ep 199 drivers/usb/gadget/udc/core.c ep->ops->free_request(ep, req); ep 271 drivers/usb/gadget/udc/core.c int usb_ep_queue(struct usb_ep *ep, ep 276 drivers/usb/gadget/udc/core.c if (WARN_ON_ONCE(!ep->enabled && ep->address)) { ep 281 drivers/usb/gadget/udc/core.c ret = ep->ops->queue(ep, req, gfp_flags); ep 284 drivers/usb/gadget/udc/core.c trace_usb_ep_queue(ep, req, ret); ep 307 drivers/usb/gadget/udc/core.c int usb_ep_dequeue(struct usb_ep *ep, struct usb_request *req) ep 311 drivers/usb/gadget/udc/core.c ret = ep->ops->dequeue(ep, req); ep 312 drivers/usb/gadget/udc/core.c trace_usb_ep_dequeue(ep, req, ret); ep 341 drivers/usb/gadget/udc/core.c int usb_ep_set_halt(struct usb_ep *ep) ep 345 drivers/usb/gadget/udc/core.c ret = ep->ops->set_halt(ep, 1); ep 346 drivers/usb/gadget/udc/core.c trace_usb_ep_set_halt(ep, ret); ep 367 drivers/usb/gadget/udc/core.c int usb_ep_clear_halt(struct usb_ep *ep) ep 371 drivers/usb/gadget/udc/core.c ret = ep->ops->set_halt(ep, 0); ep 372 drivers/usb/gadget/udc/core.c trace_usb_ep_clear_halt(ep, ret); ep 390 drivers/usb/gadget/udc/core.c int usb_ep_set_wedge(struct usb_ep *ep) ep 394 drivers/usb/gadget/udc/core.c if (ep->ops->set_wedge) ep 395 drivers/usb/gadget/udc/core.c ret = ep->ops->set_wedge(ep); ep 397 drivers/usb/gadget/udc/core.c ret = ep->ops->set_halt(ep, 1); ep 399 drivers/usb/gadget/udc/core.c trace_usb_ep_set_wedge(ep, ret); ep 422 drivers/usb/gadget/udc/core.c int usb_ep_fifo_status(struct usb_ep *ep) ep 426 drivers/usb/gadget/udc/core.c if (ep->ops->fifo_status) ep 427 drivers/usb/gadget/udc/core.c ret = ep->ops->fifo_status(ep); ep 431 drivers/usb/gadget/udc/core.c trace_usb_ep_fifo_status(ep, ret); ep 448 drivers/usb/gadget/udc/core.c void usb_ep_fifo_flush(struct usb_ep *ep) ep 450 drivers/usb/gadget/udc/core.c if (ep->ops->fifo_flush) ep 451 drivers/usb/gadget/udc/core.c ep->ops->fifo_flush(ep); ep 453 drivers/usb/gadget/udc/core.c trace_usb_ep_fifo_flush(ep, 0); ep 899 drivers/usb/gadget/udc/core.c void usb_gadget_giveback_request(struct usb_ep *ep, ep 905 drivers/usb/gadget/udc/core.c trace_usb_gadget_giveback_request(ep, req, 0); ep 907 drivers/usb/gadget/udc/core.c req->complete(ep, req); ep 921 drivers/usb/gadget/udc/core.c struct usb_ep *ep; ep 923 drivers/usb/gadget/udc/core.c gadget_for_each_ep(ep, g) { ep 924 drivers/usb/gadget/udc/core.c if (!strcmp(ep->name, name)) ep 925 drivers/usb/gadget/udc/core.c return ep; ep 935 drivers/usb/gadget/udc/core.c struct usb_ep *ep, struct usb_endpoint_descriptor *desc, ep 943 drivers/usb/gadget/udc/core.c if (ep->claimed) ep 949 drivers/usb/gadget/udc/core.c if (usb_endpoint_dir_in(desc) && !ep->caps.dir_in) ep 951 drivers/usb/gadget/udc/core.c if (usb_endpoint_dir_out(desc) && !ep->caps.dir_out) ep 954 drivers/usb/gadget/udc/core.c if (max > ep->maxpacket_limit) ep 966 drivers/usb/gadget/udc/core.c if (!ep->caps.type_iso) ep 973 drivers/usb/gadget/udc/core.c if (!ep->caps.type_bulk) ep 981 drivers/usb/gadget/udc/core.c if (num_req_streams > ep->max_streams) ep 989 drivers/usb/gadget/udc/core.c if (!ep->caps.type_int && !ep->caps.type_bulk) ep 87 drivers/usb/gadget/udc/dummy_hcd.c struct usb_ep ep; ep 102 drivers/usb/gadget/udc/dummy_hcd.c return container_of(_ep, struct dummy_ep, ep); ep 266 drivers/usb/gadget/udc/dummy_hcd.c struct dummy_ep ep[DUMMY_ENDPOINTS]; ep 305 drivers/usb/gadget/udc/dummy_hcd.c static inline struct dummy *ep_to_dummy(struct dummy_ep *ep) ep 307 drivers/usb/gadget/udc/dummy_hcd.c return container_of(ep->gadget, struct dummy, gadget); ep 329 drivers/usb/gadget/udc/dummy_hcd.c static void nuke(struct dummy *dum, struct dummy_ep *ep) ep 331 drivers/usb/gadget/udc/dummy_hcd.c while (!list_empty(&ep->queue)) { ep 334 drivers/usb/gadget/udc/dummy_hcd.c req = list_entry(ep->queue.next, struct dummy_request, queue); ep 339 drivers/usb/gadget/udc/dummy_hcd.c usb_gadget_giveback_request(&ep->ep, &req->req); ep 356 drivers/usb/gadget/udc/dummy_hcd.c nuke(dum, &dum->ep[i]); ep 503 drivers/usb/gadget/udc/dummy_hcd.c struct dummy_ep *ep; ep 507 drivers/usb/gadget/udc/dummy_hcd.c ep = usb_ep_to_dummy_ep(_ep); ep 508 drivers/usb/gadget/udc/dummy_hcd.c if (!_ep || !desc || ep->desc || _ep->name == ep0name ep 511 drivers/usb/gadget/udc/dummy_hcd.c dum = ep_to_dummy(ep); ep 537 drivers/usb/gadget/udc/dummy_hcd.c if (strstr(ep->ep.name, "-iso") ep 538 drivers/usb/gadget/udc/dummy_hcd.c || strstr(ep->ep.name, "-int")) { ep 560 drivers/usb/gadget/udc/dummy_hcd.c if (strstr(ep->ep.name, "-iso")) /* bulk is ok */ ep 582 drivers/usb/gadget/udc/dummy_hcd.c if (strstr(ep->ep.name, "-bulk") ep 583 drivers/usb/gadget/udc/dummy_hcd.c || strstr(ep->ep.name, "-int")) ep 613 drivers/usb/gadget/udc/dummy_hcd.c ep->stream_en = 1; ep 615 drivers/usb/gadget/udc/dummy_hcd.c ep->desc = desc; ep 622 drivers/usb/gadget/udc/dummy_hcd.c max, ep->stream_en ? "enabled" : "disabled"); ep 627 drivers/usb/gadget/udc/dummy_hcd.c ep->halted = ep->wedged = 0; ep 635 drivers/usb/gadget/udc/dummy_hcd.c struct dummy_ep *ep; ep 639 drivers/usb/gadget/udc/dummy_hcd.c ep = usb_ep_to_dummy_ep(_ep); ep 640 drivers/usb/gadget/udc/dummy_hcd.c if (!_ep || !ep->desc || _ep->name == ep0name) ep 642 drivers/usb/gadget/udc/dummy_hcd.c dum = ep_to_dummy(ep); ep 645 drivers/usb/gadget/udc/dummy_hcd.c ep->desc = NULL; ep 646 drivers/usb/gadget/udc/dummy_hcd.c ep->stream_en = 0; ep 647 drivers/usb/gadget/udc/dummy_hcd.c nuke(dum, ep); ep 683 drivers/usb/gadget/udc/dummy_hcd.c static void fifo_complete(struct usb_ep *ep, struct usb_request *req) ep 690 drivers/usb/gadget/udc/dummy_hcd.c struct dummy_ep *ep; ep 700 drivers/usb/gadget/udc/dummy_hcd.c ep = usb_ep_to_dummy_ep(_ep); ep 701 drivers/usb/gadget/udc/dummy_hcd.c if (!_ep || (!ep->desc && _ep->name != ep0name)) ep 704 drivers/usb/gadget/udc/dummy_hcd.c dum = ep_to_dummy(ep); ep 711 drivers/usb/gadget/udc/dummy_hcd.c ep, _req, _ep->name, _req->length, _req->buf); ep 718 drivers/usb/gadget/udc/dummy_hcd.c if (ep->desc && (ep->desc->bEndpointAddress & USB_DIR_IN) && ep 720 drivers/usb/gadget/udc/dummy_hcd.c list_empty(&ep->queue) && ep 729 drivers/usb/gadget/udc/dummy_hcd.c list_add_tail(&req->queue, &ep->queue); ep 736 drivers/usb/gadget/udc/dummy_hcd.c list_add_tail(&req->queue, &ep->queue); ep 747 drivers/usb/gadget/udc/dummy_hcd.c struct dummy_ep *ep; ep 755 drivers/usb/gadget/udc/dummy_hcd.c ep = usb_ep_to_dummy_ep(_ep); ep 756 drivers/usb/gadget/udc/dummy_hcd.c dum = ep_to_dummy(ep); ep 763 drivers/usb/gadget/udc/dummy_hcd.c list_for_each_entry(req, &ep->queue, queue) { ep 786 drivers/usb/gadget/udc/dummy_hcd.c struct dummy_ep *ep; ep 791 drivers/usb/gadget/udc/dummy_hcd.c ep = usb_ep_to_dummy_ep(_ep); ep 792 drivers/usb/gadget/udc/dummy_hcd.c dum = ep_to_dummy(ep); ep 796 drivers/usb/gadget/udc/dummy_hcd.c ep->halted = ep->wedged = 0; ep 797 drivers/usb/gadget/udc/dummy_hcd.c else if (ep->desc && (ep->desc->bEndpointAddress & USB_DIR_IN) && ep 798 drivers/usb/gadget/udc/dummy_hcd.c !list_empty(&ep->queue)) ep 801 drivers/usb/gadget/udc/dummy_hcd.c ep->halted = 1; ep 803 drivers/usb/gadget/udc/dummy_hcd.c ep->wedged = 1; ep 886 drivers/usb/gadget/udc/dummy_hcd.c dum->ep[0].ep.maxpacket = 9; ep 888 drivers/usb/gadget/udc/dummy_hcd.c dum->ep[0].ep.maxpacket = 64; ep 1028 drivers/usb/gadget/udc/dummy_hcd.c struct dummy_ep *ep = &dum->ep[i]; ep 1032 drivers/usb/gadget/udc/dummy_hcd.c ep->ep.name = ep_info[i].name; ep 1033 drivers/usb/gadget/udc/dummy_hcd.c ep->ep.caps = ep_info[i].caps; ep 1034 drivers/usb/gadget/udc/dummy_hcd.c ep->ep.ops = &dummy_ep_ops; ep 1035 drivers/usb/gadget/udc/dummy_hcd.c list_add_tail(&ep->ep.ep_list, &dum->gadget.ep_list); ep 1036 drivers/usb/gadget/udc/dummy_hcd.c ep->halted = ep->wedged = ep->already_seen = ep 1037 drivers/usb/gadget/udc/dummy_hcd.c ep->setup_stage = 0; ep 1038 drivers/usb/gadget/udc/dummy_hcd.c usb_ep_set_maxpacket_limit(&ep->ep, ~0); ep 1039 drivers/usb/gadget/udc/dummy_hcd.c ep->ep.max_streams = 16; ep 1040 drivers/usb/gadget/udc/dummy_hcd.c ep->last_io = jiffies; ep 1041 drivers/usb/gadget/udc/dummy_hcd.c ep->gadget = &dum->gadget; ep 1042 drivers/usb/gadget/udc/dummy_hcd.c ep->desc = NULL; ep 1043 drivers/usb/gadget/udc/dummy_hcd.c INIT_LIST_HEAD(&ep->queue); ep 1046 drivers/usb/gadget/udc/dummy_hcd.c dum->gadget.ep0 = &dum->ep[0].ep; ep 1047 drivers/usb/gadget/udc/dummy_hcd.c list_del_init(&dum->ep[0].ep.ep_list); ep 1167 drivers/usb/gadget/udc/dummy_hcd.c const struct usb_endpoint_descriptor *desc = &urb->ep->desc; ep 1381 drivers/usb/gadget/udc/dummy_hcd.c struct dummy_ep *ep, int limit, int *status) ep 1389 drivers/usb/gadget/udc/dummy_hcd.c list_for_each_entry(req, &ep->queue, queue) { ep 1417 drivers/usb/gadget/udc/dummy_hcd.c if (limit < ep->ep.maxpacket && limit < len) ep 1424 drivers/usb/gadget/udc/dummy_hcd.c if (len >= ep->ep.maxpacket) { ep 1426 drivers/usb/gadget/udc/dummy_hcd.c if (len % ep->ep.maxpacket) ep 1428 drivers/usb/gadget/udc/dummy_hcd.c len -= len % ep->ep.maxpacket; ep 1435 drivers/usb/gadget/udc/dummy_hcd.c ep->last_io = jiffies; ep 1496 drivers/usb/gadget/udc/dummy_hcd.c usb_gadget_giveback_request(&ep->ep, &req->req); ep 1514 drivers/usb/gadget/udc/dummy_hcd.c static int periodic_bytes(struct dummy *dum, struct dummy_ep *ep) ep 1516 drivers/usb/gadget/udc/dummy_hcd.c int limit = ep->ep.maxpacket; ep 1522 drivers/usb/gadget/udc/dummy_hcd.c tmp = usb_endpoint_maxp_mult(ep->desc); ep 1527 drivers/usb/gadget/udc/dummy_hcd.c switch (usb_endpoint_type(ep->desc)) { ep 1559 drivers/usb/gadget/udc/dummy_hcd.c return &dum->ep[0]; ep 1561 drivers/usb/gadget/udc/dummy_hcd.c struct dummy_ep *ep = &dum->ep[i]; ep 1563 drivers/usb/gadget/udc/dummy_hcd.c if (!ep->desc) ep 1565 drivers/usb/gadget/udc/dummy_hcd.c if (ep->desc->bEndpointAddress == address) ep 1566 drivers/usb/gadget/udc/dummy_hcd.c return ep; ep 1661 drivers/usb/gadget/udc/dummy_hcd.c if (!ep2 || ep2->ep.name == ep0name) { ep 1806 drivers/usb/gadget/udc/dummy_hcd.c dum->ep[i].already_seen = 0; ep 1814 drivers/usb/gadget/udc/dummy_hcd.c struct dummy_ep *ep = NULL; ep 1835 drivers/usb/gadget/udc/dummy_hcd.c ep = find_endpoint(dum, address); ep 1836 drivers/usb/gadget/udc/dummy_hcd.c if (!ep) { ep 1845 drivers/usb/gadget/udc/dummy_hcd.c if (ep->already_seen) ep 1847 drivers/usb/gadget/udc/dummy_hcd.c ep->already_seen = 1; ep 1848 drivers/usb/gadget/udc/dummy_hcd.c if (ep == &dum->ep[0] && urb->error_count) { ep 1849 drivers/usb/gadget/udc/dummy_hcd.c ep->setup_stage = 1; /* a new urb */ ep 1852 drivers/usb/gadget/udc/dummy_hcd.c if (ep->halted && !ep->setup_stage) { ep 1855 drivers/usb/gadget/udc/dummy_hcd.c ep->ep.name, urb); ep 1862 drivers/usb/gadget/udc/dummy_hcd.c if (ep == &dum->ep[0] && ep->setup_stage) { ep 1868 drivers/usb/gadget/udc/dummy_hcd.c list_for_each_entry(req, &ep->queue, queue) { ep 1875 drivers/usb/gadget/udc/dummy_hcd.c usb_gadget_giveback_request(&ep->ep, &req->req); ep 1877 drivers/usb/gadget/udc/dummy_hcd.c ep->already_seen = 0; ep 1885 drivers/usb/gadget/udc/dummy_hcd.c ep->last_io = jiffies; ep 1886 drivers/usb/gadget/udc/dummy_hcd.c ep->setup_stage = 0; ep 1887 drivers/usb/gadget/udc/dummy_hcd.c ep->halted = 0; ep 1936 drivers/usb/gadget/udc/dummy_hcd.c limit = max(limit, periodic_bytes(dum, ep)); ep 1944 drivers/usb/gadget/udc/dummy_hcd.c limit = max(limit, periodic_bytes(dum, ep)); ep 1949 drivers/usb/gadget/udc/dummy_hcd.c ep->last_io = jiffies; ep 1950 drivers/usb/gadget/udc/dummy_hcd.c total -= transfer(dum_hcd, urb, ep, limit, &status); ep 1961 drivers/usb/gadget/udc/dummy_hcd.c if (ep) ep 1962 drivers/usb/gadget/udc/dummy_hcd.c ep->already_seen = ep->setup_stage = 0; ep 2365 drivers/usb/gadget/udc/dummy_hcd.c int ep = usb_pipeendpoint(urb->pipe); ep 2388 drivers/usb/gadget/udc/dummy_hcd.c ep, ep ? (usb_urb_dir_in(urb) ? "in" : "out") : "", ep 28 drivers/usb/gadget/udc/fotg210-udc.c static void fotg210_disable_fifo_int(struct fotg210_ep *ep) ep 30 drivers/usb/gadget/udc/fotg210-udc.c u32 value = ioread32(ep->fotg210->reg + FOTG210_DMISGR1); ep 32 drivers/usb/gadget/udc/fotg210-udc.c if (ep->dir_in) ep 33 drivers/usb/gadget/udc/fotg210-udc.c value |= DMISGR1_MF_IN_INT(ep->epnum - 1); ep 35 drivers/usb/gadget/udc/fotg210-udc.c value |= DMISGR1_MF_OUTSPK_INT(ep->epnum - 1); ep 36 drivers/usb/gadget/udc/fotg210-udc.c iowrite32(value, ep->fotg210->reg + FOTG210_DMISGR1); ep 39 drivers/usb/gadget/udc/fotg210-udc.c static void fotg210_enable_fifo_int(struct fotg210_ep *ep) ep 41 drivers/usb/gadget/udc/fotg210-udc.c u32 value = ioread32(ep->fotg210->reg + FOTG210_DMISGR1); ep 43 drivers/usb/gadget/udc/fotg210-udc.c if (ep->dir_in) ep 44 drivers/usb/gadget/udc/fotg210-udc.c value &= ~DMISGR1_MF_IN_INT(ep->epnum - 1); ep 46 drivers/usb/gadget/udc/fotg210-udc.c value &= ~DMISGR1_MF_OUTSPK_INT(ep->epnum - 1); ep 47 drivers/usb/gadget/udc/fotg210-udc.c iowrite32(value, ep->fotg210->reg + FOTG210_DMISGR1); ep 58 drivers/usb/gadget/udc/fotg210-udc.c static void fotg210_done(struct fotg210_ep *ep, struct fotg210_request *req, ep 64 drivers/usb/gadget/udc/fotg210-udc.c if (ep->fotg210->gadget.speed == USB_SPEED_UNKNOWN) ep 69 drivers/usb/gadget/udc/fotg210-udc.c spin_unlock(&ep->fotg210->lock); ep 70 drivers/usb/gadget/udc/fotg210-udc.c usb_gadget_giveback_request(&ep->ep, &req->req); ep 71 drivers/usb/gadget/udc/fotg210-udc.c spin_lock(&ep->fotg210->lock); ep 73 drivers/usb/gadget/udc/fotg210-udc.c if (ep->epnum) { ep 74 drivers/usb/gadget/udc/fotg210-udc.c if (list_empty(&ep->queue)) ep 75 drivers/usb/gadget/udc/fotg210-udc.c fotg210_disable_fifo_int(ep); ep 77 drivers/usb/gadget/udc/fotg210-udc.c fotg210_set_cxdone(ep->fotg210); ep 81 drivers/usb/gadget/udc/fotg210-udc.c static void fotg210_fifo_ep_mapping(struct fotg210_ep *ep, u32 epnum, ep 84 drivers/usb/gadget/udc/fotg210-udc.c struct fotg210_udc *fotg210 = ep->fotg210; ep 109 drivers/usb/gadget/udc/fotg210-udc.c static void fotg210_set_fifo_dir(struct fotg210_ep *ep, u32 epnum, u32 dir_in) ep 111 drivers/usb/gadget/udc/fotg210-udc.c struct fotg210_udc *fotg210 = ep->fotg210; ep 119 drivers/usb/gadget/udc/fotg210-udc.c static void fotg210_set_tfrtype(struct fotg210_ep *ep, u32 epnum, u32 type) ep 121 drivers/usb/gadget/udc/fotg210-udc.c struct fotg210_udc *fotg210 = ep->fotg210; ep 129 drivers/usb/gadget/udc/fotg210-udc.c static void fotg210_set_mps(struct fotg210_ep *ep, u32 epnum, u32 mps, ep 132 drivers/usb/gadget/udc/fotg210-udc.c struct fotg210_udc *fotg210 = ep->fotg210; ep 142 drivers/usb/gadget/udc/fotg210-udc.c static int fotg210_config_ep(struct fotg210_ep *ep, ep 145 drivers/usb/gadget/udc/fotg210-udc.c struct fotg210_udc *fotg210 = ep->fotg210; ep 147 drivers/usb/gadget/udc/fotg210-udc.c fotg210_set_fifo_dir(ep, ep->epnum, ep->dir_in); ep 148 drivers/usb/gadget/udc/fotg210-udc.c fotg210_set_tfrtype(ep, ep->epnum, ep->type); ep 149 drivers/usb/gadget/udc/fotg210-udc.c fotg210_set_mps(ep, ep->epnum, ep->ep.maxpacket, ep->dir_in); ep 150 drivers/usb/gadget/udc/fotg210-udc.c fotg210_fifo_ep_mapping(ep, ep->epnum, ep->dir_in); ep 152 drivers/usb/gadget/udc/fotg210-udc.c fotg210->ep[ep->epnum] = ep; ep 160 drivers/usb/gadget/udc/fotg210-udc.c struct fotg210_ep *ep; ep 162 drivers/usb/gadget/udc/fotg210-udc.c ep = container_of(_ep, struct fotg210_ep, ep); ep 164 drivers/usb/gadget/udc/fotg210-udc.c ep->desc = desc; ep 165 drivers/usb/gadget/udc/fotg210-udc.c ep->epnum = usb_endpoint_num(desc); ep 166 drivers/usb/gadget/udc/fotg210-udc.c ep->type = usb_endpoint_type(desc); ep 167 drivers/usb/gadget/udc/fotg210-udc.c ep->dir_in = usb_endpoint_dir_in(desc); ep 168 drivers/usb/gadget/udc/fotg210-udc.c ep->ep.maxpacket = usb_endpoint_maxp(desc); ep 170 drivers/usb/gadget/udc/fotg210-udc.c return fotg210_config_ep(ep, desc); ep 175 drivers/usb/gadget/udc/fotg210-udc.c struct fotg210_ep *ep = fotg210->ep[epnum]; ep 179 drivers/usb/gadget/udc/fotg210-udc.c reg = (ep->dir_in) ? ep 196 drivers/usb/gadget/udc/fotg210-udc.c static int fotg210_ep_release(struct fotg210_ep *ep) ep 198 drivers/usb/gadget/udc/fotg210-udc.c if (!ep->epnum) ep 200 drivers/usb/gadget/udc/fotg210-udc.c ep->epnum = 0; ep 201 drivers/usb/gadget/udc/fotg210-udc.c ep->stall = 0; ep 202 drivers/usb/gadget/udc/fotg210-udc.c ep->wedged = 0; ep 204 drivers/usb/gadget/udc/fotg210-udc.c fotg210_reset_tseq(ep->fotg210, ep->epnum); ep 211 drivers/usb/gadget/udc/fotg210-udc.c struct fotg210_ep *ep; ep 217 drivers/usb/gadget/udc/fotg210-udc.c ep = container_of(_ep, struct fotg210_ep, ep); ep 219 drivers/usb/gadget/udc/fotg210-udc.c while (!list_empty(&ep->queue)) { ep 220 drivers/usb/gadget/udc/fotg210-udc.c req = list_entry(ep->queue.next, ep 222 drivers/usb/gadget/udc/fotg210-udc.c spin_lock_irqsave(&ep->fotg210->lock, flags); ep 223 drivers/usb/gadget/udc/fotg210-udc.c fotg210_done(ep, req, -ECONNRESET); ep 224 drivers/usb/gadget/udc/fotg210-udc.c spin_unlock_irqrestore(&ep->fotg210->lock, flags); ep 227 drivers/usb/gadget/udc/fotg210-udc.c return fotg210_ep_release(ep); ep 253 drivers/usb/gadget/udc/fotg210-udc.c static void fotg210_enable_dma(struct fotg210_ep *ep, ep 257 drivers/usb/gadget/udc/fotg210-udc.c struct fotg210_udc *fotg210 = ep->fotg210; ep 262 drivers/usb/gadget/udc/fotg210-udc.c value |= DMACPSR1_DMA_LEN(len) | DMACPSR1_DMA_TYPE(ep->dir_in); ep 267 drivers/usb/gadget/udc/fotg210-udc.c if (ep->epnum) ep 268 drivers/usb/gadget/udc/fotg210-udc.c value |= DMATFNR_ACC_FN(ep->epnum - 1); ep 287 drivers/usb/gadget/udc/fotg210-udc.c static void fotg210_disable_dma(struct fotg210_ep *ep) ep 289 drivers/usb/gadget/udc/fotg210-udc.c iowrite32(DMATFNR_DISDMA, ep->fotg210->reg + FOTG210_DMATFNR); ep 292 drivers/usb/gadget/udc/fotg210-udc.c static void fotg210_wait_dma_done(struct fotg210_ep *ep) ep 297 drivers/usb/gadget/udc/fotg210-udc.c value = ioread32(ep->fotg210->reg + FOTG210_DISGR2); ep 304 drivers/usb/gadget/udc/fotg210-udc.c iowrite32(value, ep->fotg210->reg + FOTG210_DISGR2); ep 308 drivers/usb/gadget/udc/fotg210-udc.c value = ioread32(ep->fotg210->reg + FOTG210_DMACPSR1); ep 310 drivers/usb/gadget/udc/fotg210-udc.c iowrite32(value, ep->fotg210->reg + FOTG210_DMACPSR1); ep 313 drivers/usb/gadget/udc/fotg210-udc.c if (ep->epnum) { ep 314 drivers/usb/gadget/udc/fotg210-udc.c value = ioread32(ep->fotg210->reg + ep 315 drivers/usb/gadget/udc/fotg210-udc.c FOTG210_FIBCR(ep->epnum - 1)); ep 317 drivers/usb/gadget/udc/fotg210-udc.c iowrite32(value, ep->fotg210->reg + ep 318 drivers/usb/gadget/udc/fotg210-udc.c FOTG210_FIBCR(ep->epnum - 1)); ep 320 drivers/usb/gadget/udc/fotg210-udc.c value = ioread32(ep->fotg210->reg + FOTG210_DCFESR); ep 322 drivers/usb/gadget/udc/fotg210-udc.c iowrite32(value, ep->fotg210->reg + FOTG210_DCFESR); ep 326 drivers/usb/gadget/udc/fotg210-udc.c static void fotg210_start_dma(struct fotg210_ep *ep, ep 329 drivers/usb/gadget/udc/fotg210-udc.c struct device *dev = &ep->fotg210->gadget.dev; ep 334 drivers/usb/gadget/udc/fotg210-udc.c if (ep->epnum) { ep 335 drivers/usb/gadget/udc/fotg210-udc.c if (ep->dir_in) { ep 340 drivers/usb/gadget/udc/fotg210-udc.c length = ioread32(ep->fotg210->reg + ep 341 drivers/usb/gadget/udc/fotg210-udc.c FOTG210_FIBCR(ep->epnum - 1)); ep 346 drivers/usb/gadget/udc/fotg210-udc.c if (req->req.length - req->req.actual > ep->ep.maxpacket) ep 347 drivers/usb/gadget/udc/fotg210-udc.c length = ep->ep.maxpacket; ep 353 drivers/usb/gadget/udc/fotg210-udc.c ep->dir_in ? DMA_TO_DEVICE : DMA_FROM_DEVICE); ep 360 drivers/usb/gadget/udc/fotg210-udc.c fotg210_enable_dma(ep, d, length); ep 363 drivers/usb/gadget/udc/fotg210-udc.c fotg210_wait_dma_done(ep); ep 365 drivers/usb/gadget/udc/fotg210-udc.c fotg210_disable_dma(ep); ep 373 drivers/usb/gadget/udc/fotg210-udc.c static void fotg210_ep0_queue(struct fotg210_ep *ep, ep 377 drivers/usb/gadget/udc/fotg210-udc.c fotg210_done(ep, req, 0); ep 380 drivers/usb/gadget/udc/fotg210-udc.c if (ep->dir_in) { /* if IN */ ep 381 drivers/usb/gadget/udc/fotg210-udc.c fotg210_start_dma(ep, req); ep 383 drivers/usb/gadget/udc/fotg210-udc.c (req->req.actual < ep->ep.maxpacket)) ep 384 drivers/usb/gadget/udc/fotg210-udc.c fotg210_done(ep, req, 0); ep 386 drivers/usb/gadget/udc/fotg210-udc.c u32 value = ioread32(ep->fotg210->reg + FOTG210_DMISGR0); ep 389 drivers/usb/gadget/udc/fotg210-udc.c iowrite32(value, ep->fotg210->reg + FOTG210_DMISGR0); ep 396 drivers/usb/gadget/udc/fotg210-udc.c struct fotg210_ep *ep; ep 401 drivers/usb/gadget/udc/fotg210-udc.c ep = container_of(_ep, struct fotg210_ep, ep); ep 404 drivers/usb/gadget/udc/fotg210-udc.c if (ep->fotg210->gadget.speed == USB_SPEED_UNKNOWN) ep 407 drivers/usb/gadget/udc/fotg210-udc.c spin_lock_irqsave(&ep->fotg210->lock, flags); ep 409 drivers/usb/gadget/udc/fotg210-udc.c if (list_empty(&ep->queue)) ep 412 drivers/usb/gadget/udc/fotg210-udc.c list_add_tail(&req->queue, &ep->queue); ep 417 drivers/usb/gadget/udc/fotg210-udc.c if (!ep->epnum) /* ep0 */ ep 418 drivers/usb/gadget/udc/fotg210-udc.c fotg210_ep0_queue(ep, req); ep 419 drivers/usb/gadget/udc/fotg210-udc.c else if (request && !ep->stall) ep 420 drivers/usb/gadget/udc/fotg210-udc.c fotg210_enable_fifo_int(ep); ep 422 drivers/usb/gadget/udc/fotg210-udc.c spin_unlock_irqrestore(&ep->fotg210->lock, flags); ep 429 drivers/usb/gadget/udc/fotg210-udc.c struct fotg210_ep *ep; ep 433 drivers/usb/gadget/udc/fotg210-udc.c ep = container_of(_ep, struct fotg210_ep, ep); ep 436 drivers/usb/gadget/udc/fotg210-udc.c spin_lock_irqsave(&ep->fotg210->lock, flags); ep 437 drivers/usb/gadget/udc/fotg210-udc.c if (!list_empty(&ep->queue)) ep 438 drivers/usb/gadget/udc/fotg210-udc.c fotg210_done(ep, req, -ECONNRESET); ep 439 drivers/usb/gadget/udc/fotg210-udc.c spin_unlock_irqrestore(&ep->fotg210->lock, flags); ep 444 drivers/usb/gadget/udc/fotg210-udc.c static void fotg210_set_epnstall(struct fotg210_ep *ep) ep 446 drivers/usb/gadget/udc/fotg210-udc.c struct fotg210_udc *fotg210 = ep->fotg210; ep 451 drivers/usb/gadget/udc/fotg210-udc.c if (ep->dir_in) { ep 454 drivers/usb/gadget/udc/fotg210-udc.c } while (!(value & DCFESR_FIFO_EMPTY(ep->epnum - 1))); ep 457 drivers/usb/gadget/udc/fotg210-udc.c reg = (ep->dir_in) ? ep 458 drivers/usb/gadget/udc/fotg210-udc.c fotg210->reg + FOTG210_INEPMPSR(ep->epnum) : ep 459 drivers/usb/gadget/udc/fotg210-udc.c fotg210->reg + FOTG210_OUTEPMPSR(ep->epnum); ep 465 drivers/usb/gadget/udc/fotg210-udc.c static void fotg210_clear_epnstall(struct fotg210_ep *ep) ep 467 drivers/usb/gadget/udc/fotg210-udc.c struct fotg210_udc *fotg210 = ep->fotg210; ep 471 drivers/usb/gadget/udc/fotg210-udc.c reg = (ep->dir_in) ? ep 472 drivers/usb/gadget/udc/fotg210-udc.c fotg210->reg + FOTG210_INEPMPSR(ep->epnum) : ep 473 drivers/usb/gadget/udc/fotg210-udc.c fotg210->reg + FOTG210_OUTEPMPSR(ep->epnum); ep 481 drivers/usb/gadget/udc/fotg210-udc.c struct fotg210_ep *ep; ep 485 drivers/usb/gadget/udc/fotg210-udc.c ep = container_of(_ep, struct fotg210_ep, ep); ep 487 drivers/usb/gadget/udc/fotg210-udc.c fotg210 = ep->fotg210; ep 489 drivers/usb/gadget/udc/fotg210-udc.c spin_lock_irqsave(&ep->fotg210->lock, flags); ep 492 drivers/usb/gadget/udc/fotg210-udc.c fotg210_set_epnstall(ep); ep 493 drivers/usb/gadget/udc/fotg210-udc.c ep->stall = 1; ep 495 drivers/usb/gadget/udc/fotg210-udc.c ep->wedged = 1; ep 497 drivers/usb/gadget/udc/fotg210-udc.c fotg210_reset_tseq(fotg210, ep->epnum); ep 498 drivers/usb/gadget/udc/fotg210-udc.c fotg210_clear_epnstall(ep); ep 499 drivers/usb/gadget/udc/fotg210-udc.c ep->stall = 0; ep 500 drivers/usb/gadget/udc/fotg210-udc.c ep->wedged = 0; ep 501 drivers/usb/gadget/udc/fotg210-udc.c if (!list_empty(&ep->queue)) ep 502 drivers/usb/gadget/udc/fotg210-udc.c fotg210_enable_fifo_int(ep); ep 505 drivers/usb/gadget/udc/fotg210-udc.c spin_unlock_irqrestore(&ep->fotg210->lock, flags); ep 654 drivers/usb/gadget/udc/fotg210-udc.c fotg210_set_epnstall(fotg210->ep[epnum]); ep 669 drivers/usb/gadget/udc/fotg210-udc.c struct fotg210_ep *ep = ep 670 drivers/usb/gadget/udc/fotg210-udc.c fotg210->ep[ctrl->wIndex & USB_ENDPOINT_NUMBER_MASK]; ep 681 drivers/usb/gadget/udc/fotg210-udc.c if (ep->wedged) { ep 685 drivers/usb/gadget/udc/fotg210-udc.c if (ep->stall) ep 686 drivers/usb/gadget/udc/fotg210-udc.c fotg210_set_halt_and_wedge(&ep->ep, 0, 0); ep 696 drivers/usb/gadget/udc/fotg210-udc.c static int fotg210_is_epnstall(struct fotg210_ep *ep) ep 698 drivers/usb/gadget/udc/fotg210-udc.c struct fotg210_udc *fotg210 = ep->fotg210; ep 702 drivers/usb/gadget/udc/fotg210-udc.c reg = (ep->dir_in) ? ep 703 drivers/usb/gadget/udc/fotg210-udc.c fotg210->reg + FOTG210_INEPMPSR(ep->epnum) : ep 704 drivers/usb/gadget/udc/fotg210-udc.c fotg210->reg + FOTG210_OUTEPMPSR(ep->epnum); ep 725 drivers/usb/gadget/udc/fotg210-udc.c fotg210_is_epnstall(fotg210->ep[epnum]) ep 752 drivers/usb/gadget/udc/fotg210-udc.c fotg210->ep[0]->dir_in = ctrl->bRequestType & USB_DIR_IN; ep 792 drivers/usb/gadget/udc/fotg210-udc.c struct fotg210_ep *ep = fotg210->ep[0]; ep 794 drivers/usb/gadget/udc/fotg210-udc.c if (!list_empty(&ep->queue) && !ep->dir_in) { ep 797 drivers/usb/gadget/udc/fotg210-udc.c req = list_first_entry(&ep->queue, ep 801 drivers/usb/gadget/udc/fotg210-udc.c fotg210_start_dma(ep, req); ep 803 drivers/usb/gadget/udc/fotg210-udc.c if ((req->req.length - req->req.actual) < ep->ep.maxpacket) ep 804 drivers/usb/gadget/udc/fotg210-udc.c fotg210_done(ep, req, 0); ep 812 drivers/usb/gadget/udc/fotg210-udc.c struct fotg210_ep *ep = fotg210->ep[0]; ep 814 drivers/usb/gadget/udc/fotg210-udc.c if ((!list_empty(&ep->queue)) && (ep->dir_in)) { ep 817 drivers/usb/gadget/udc/fotg210-udc.c req = list_entry(ep->queue.next, ep 821 drivers/usb/gadget/udc/fotg210-udc.c fotg210_start_dma(ep, req); ep 823 drivers/usb/gadget/udc/fotg210-udc.c if ((req->req.length - req->req.actual) < ep->ep.maxpacket) ep 824 drivers/usb/gadget/udc/fotg210-udc.c fotg210_done(ep, req, 0); ep 838 drivers/usb/gadget/udc/fotg210-udc.c static void fotg210_in_fifo_handler(struct fotg210_ep *ep) ep 840 drivers/usb/gadget/udc/fotg210-udc.c struct fotg210_request *req = list_entry(ep->queue.next, ep 844 drivers/usb/gadget/udc/fotg210-udc.c fotg210_start_dma(ep, req); ep 845 drivers/usb/gadget/udc/fotg210-udc.c fotg210_done(ep, req, 0); ep 848 drivers/usb/gadget/udc/fotg210-udc.c static void fotg210_out_fifo_handler(struct fotg210_ep *ep) ep 850 drivers/usb/gadget/udc/fotg210-udc.c struct fotg210_request *req = list_entry(ep->queue.next, ep 853 drivers/usb/gadget/udc/fotg210-udc.c fotg210_start_dma(ep, req); ep 857 drivers/usb/gadget/udc/fotg210-udc.c req->req.actual < ep->ep.maxpacket) ep 858 drivers/usb/gadget/udc/fotg210-udc.c fotg210_done(ep, req, 0); ep 978 drivers/usb/gadget/udc/fotg210-udc.c fotg210_in_fifo_handler(fotg210->ep[fifo + 1]); ep 982 drivers/usb/gadget/udc/fotg210-udc.c fotg210_out_fifo_handler(fotg210->ep[fifo + 1]); ep 1068 drivers/usb/gadget/udc/fotg210-udc.c fotg210_ep_free_request(&fotg210->ep[0]->ep, fotg210->ep0_req); ep 1070 drivers/usb/gadget/udc/fotg210-udc.c kfree(fotg210->ep[i]); ep 1107 drivers/usb/gadget/udc/fotg210-udc.c fotg210->ep[i] = _ep[i]; ep 1130 drivers/usb/gadget/udc/fotg210-udc.c struct fotg210_ep *ep = fotg210->ep[i]; ep 1133 drivers/usb/gadget/udc/fotg210-udc.c INIT_LIST_HEAD(&fotg210->ep[i]->ep.ep_list); ep 1134 drivers/usb/gadget/udc/fotg210-udc.c list_add_tail(&fotg210->ep[i]->ep.ep_list, ep 1137 drivers/usb/gadget/udc/fotg210-udc.c ep->fotg210 = fotg210; ep 1138 drivers/usb/gadget/udc/fotg210-udc.c INIT_LIST_HEAD(&ep->queue); ep 1139 drivers/usb/gadget/udc/fotg210-udc.c ep->ep.name = fotg210_ep_name[i]; ep 1140 drivers/usb/gadget/udc/fotg210-udc.c ep->ep.ops = &fotg210_ep_ops; ep 1141 drivers/usb/gadget/udc/fotg210-udc.c usb_ep_set_maxpacket_limit(&ep->ep, (unsigned short) ~0); ep 1144 drivers/usb/gadget/udc/fotg210-udc.c ep->ep.caps.type_control = true; ep 1146 drivers/usb/gadget/udc/fotg210-udc.c ep->ep.caps.type_iso = true; ep 1147 drivers/usb/gadget/udc/fotg210-udc.c ep->ep.caps.type_bulk = true; ep 1148 drivers/usb/gadget/udc/fotg210-udc.c ep->ep.caps.type_int = true; ep 1151 drivers/usb/gadget/udc/fotg210-udc.c ep->ep.caps.dir_in = true; ep 1152 drivers/usb/gadget/udc/fotg210-udc.c ep->ep.caps.dir_out = true; ep 1154 drivers/usb/gadget/udc/fotg210-udc.c usb_ep_set_maxpacket_limit(&fotg210->ep[0]->ep, 0x40); ep 1155 drivers/usb/gadget/udc/fotg210-udc.c fotg210->gadget.ep0 = &fotg210->ep[0]->ep; ep 1158 drivers/usb/gadget/udc/fotg210-udc.c fotg210->ep0_req = fotg210_ep_alloc_request(&fotg210->ep[0]->ep, ep 1186 drivers/usb/gadget/udc/fotg210-udc.c fotg210_ep_free_request(&fotg210->ep[0]->ep, fotg210->ep0_req); ep 1193 drivers/usb/gadget/udc/fotg210-udc.c kfree(fotg210->ep[i]); ep 148 drivers/usb/gadget/udc/fotg210.h #define FOTG210_INEPMPSR(ep) (0x160 + 4 * ((ep) - 1)) ep 154 drivers/usb/gadget/udc/fotg210.h #define FOTG210_OUTEPMPSR(ep) (0x180 + 4 * ((ep) - 1)) ep 158 drivers/usb/gadget/udc/fotg210.h #define EPMAP_FIFONO(ep, dir) \ ep 159 drivers/usb/gadget/udc/fotg210.h ((((ep) - 1) << ((ep) - 1) * 8) << ((dir) ? 0 : 4)) ep 160 drivers/usb/gadget/udc/fotg210.h #define EPMAP_FIFONOMSK(ep, dir) \ ep 161 drivers/usb/gadget/udc/fotg210.h ((3 << ((ep) - 1) * 8) << ((dir) ? 0 : 4)) ep 169 drivers/usb/gadget/udc/fotg210.h #define FIFOMAP_EPNO(ep) ((ep) << ((ep) - 1) * 8) ep 170 drivers/usb/gadget/udc/fotg210.h #define FIFOMAP_EPNOMSK(ep) (0xF << ((ep) - 1) * 8) ep 216 drivers/usb/gadget/udc/fotg210.h struct usb_ep ep; ep 240 drivers/usb/gadget/udc/fotg210.h struct fotg210_ep *ep[FOTG210_MAX_NUM_EP]; ep 76 drivers/usb/gadget/udc/fsl_qe_udc.c static void done(struct qe_ep *ep, struct qe_req *req, int status) ep 78 drivers/usb/gadget/udc/fsl_qe_udc.c struct qe_udc *udc = ep->udc; ep 79 drivers/usb/gadget/udc/fsl_qe_udc.c unsigned char stopped = ep->stopped; ep 96 drivers/usb/gadget/udc/fsl_qe_udc.c ep_is_in(ep) ep 104 drivers/usb/gadget/udc/fsl_qe_udc.c ep_is_in(ep) ep 110 drivers/usb/gadget/udc/fsl_qe_udc.c ep->ep.name, &req->req, status, ep 114 drivers/usb/gadget/udc/fsl_qe_udc.c ep->stopped = 1; ep 117 drivers/usb/gadget/udc/fsl_qe_udc.c usb_gadget_giveback_request(&ep->ep, &req->req); ep 121 drivers/usb/gadget/udc/fsl_qe_udc.c ep->stopped = stopped; ep 127 drivers/usb/gadget/udc/fsl_qe_udc.c static void nuke(struct qe_ep *ep, int status) ep 130 drivers/usb/gadget/udc/fsl_qe_udc.c while (!list_empty(&ep->queue)) { ep 132 drivers/usb/gadget/udc/fsl_qe_udc.c req = list_entry(ep->queue.next, struct qe_req, queue); ep 134 drivers/usb/gadget/udc/fsl_qe_udc.c done(ep, req, status); ep 142 drivers/usb/gadget/udc/fsl_qe_udc.c static int qe_eprx_stall_change(struct qe_ep *ep, int value) ep 145 drivers/usb/gadget/udc/fsl_qe_udc.c u8 epnum = ep->epnum; ep 146 drivers/usb/gadget/udc/fsl_qe_udc.c struct qe_udc *udc = ep->udc; ep 152 drivers/usb/gadget/udc/fsl_qe_udc.c else if (ep->dir == USB_DIR_IN) ep 159 drivers/usb/gadget/udc/fsl_qe_udc.c static int qe_eptx_stall_change(struct qe_ep *ep, int value) ep 162 drivers/usb/gadget/udc/fsl_qe_udc.c u8 epnum = ep->epnum; ep 163 drivers/usb/gadget/udc/fsl_qe_udc.c struct qe_udc *udc = ep->udc; ep 169 drivers/usb/gadget/udc/fsl_qe_udc.c else if (ep->dir == USB_DIR_OUT) ep 186 drivers/usb/gadget/udc/fsl_qe_udc.c static int qe_eprx_nack(struct qe_ep *ep) ep 188 drivers/usb/gadget/udc/fsl_qe_udc.c u8 epnum = ep->epnum; ep 189 drivers/usb/gadget/udc/fsl_qe_udc.c struct qe_udc *udc = ep->udc; ep 191 drivers/usb/gadget/udc/fsl_qe_udc.c if (ep->state == EP_STATE_IDLE) { ep 200 drivers/usb/gadget/udc/fsl_qe_udc.c ep->state = EP_STATE_NACK; ep 205 drivers/usb/gadget/udc/fsl_qe_udc.c static int qe_eprx_normal(struct qe_ep *ep) ep 207 drivers/usb/gadget/udc/fsl_qe_udc.c struct qe_udc *udc = ep->udc; ep 209 drivers/usb/gadget/udc/fsl_qe_udc.c if (ep->state == EP_STATE_NACK) { ep 210 drivers/usb/gadget/udc/fsl_qe_udc.c clrsetbits_be16(&udc->usb_regs->usb_usep[ep->epnum], ep 219 drivers/usb/gadget/udc/fsl_qe_udc.c ep->state = EP_STATE_IDLE; ep 220 drivers/usb/gadget/udc/fsl_qe_udc.c ep->has_data = 0; ep 226 drivers/usb/gadget/udc/fsl_qe_udc.c static int qe_ep_cmd_stoptx(struct qe_ep *ep) ep 228 drivers/usb/gadget/udc/fsl_qe_udc.c if (ep->udc->soc_type == PORT_CPM) ep 229 drivers/usb/gadget/udc/fsl_qe_udc.c cpm_command(CPM_USB_STOP_TX | (ep->epnum << CPM_USB_EP_SHIFT), ep 233 drivers/usb/gadget/udc/fsl_qe_udc.c ep->epnum, 0); ep 238 drivers/usb/gadget/udc/fsl_qe_udc.c static int qe_ep_cmd_restarttx(struct qe_ep *ep) ep 240 drivers/usb/gadget/udc/fsl_qe_udc.c if (ep->udc->soc_type == PORT_CPM) ep 241 drivers/usb/gadget/udc/fsl_qe_udc.c cpm_command(CPM_USB_RESTART_TX | (ep->epnum << ep 245 drivers/usb/gadget/udc/fsl_qe_udc.c ep->epnum, 0); ep 250 drivers/usb/gadget/udc/fsl_qe_udc.c static int qe_ep_flushtxfifo(struct qe_ep *ep) ep 252 drivers/usb/gadget/udc/fsl_qe_udc.c struct qe_udc *udc = ep->udc; ep 255 drivers/usb/gadget/udc/fsl_qe_udc.c i = (int)ep->epnum; ep 257 drivers/usb/gadget/udc/fsl_qe_udc.c qe_ep_cmd_stoptx(ep); ep 259 drivers/usb/gadget/udc/fsl_qe_udc.c USB_CMD_FLUSH_FIFO | (USB_CMD_EP_MASK & (ep->epnum))); ep 264 drivers/usb/gadget/udc/fsl_qe_udc.c ep->c_txbd = ep->txbase; ep 265 drivers/usb/gadget/udc/fsl_qe_udc.c ep->n_txbd = ep->txbase; ep 266 drivers/usb/gadget/udc/fsl_qe_udc.c qe_ep_cmd_restarttx(ep); ep 270 drivers/usb/gadget/udc/fsl_qe_udc.c static int qe_ep_filltxfifo(struct qe_ep *ep) ep 272 drivers/usb/gadget/udc/fsl_qe_udc.c struct qe_udc *udc = ep->udc; ep 275 drivers/usb/gadget/udc/fsl_qe_udc.c USB_CMD_STR_FIFO | (USB_CMD_EP_MASK & (ep->epnum))); ep 281 drivers/usb/gadget/udc/fsl_qe_udc.c struct qe_ep *ep; ep 286 drivers/usb/gadget/udc/fsl_qe_udc.c ep = &udc->eps[pipe_num]; ep 288 drivers/usb/gadget/udc/fsl_qe_udc.c if (ep->dir == USB_DIR_OUT) ep 293 drivers/usb/gadget/udc/fsl_qe_udc.c bd = ep->rxbase; ep 300 drivers/usb/gadget/udc/fsl_qe_udc.c bd = ep->txbase; ep 313 drivers/usb/gadget/udc/fsl_qe_udc.c struct qe_ep *ep; ep 316 drivers/usb/gadget/udc/fsl_qe_udc.c ep = &udc->eps[pipe_num]; ep 320 drivers/usb/gadget/udc/fsl_qe_udc.c switch (ep->dir) { ep 322 drivers/usb/gadget/udc/fsl_qe_udc.c qe_ep_flushtxfifo(ep); ep 328 drivers/usb/gadget/udc/fsl_qe_udc.c qe_ep_flushtxfifo(ep); ep 341 drivers/usb/gadget/udc/fsl_qe_udc.c static int qe_ep_toggledata01(struct qe_ep *ep) ep 343 drivers/usb/gadget/udc/fsl_qe_udc.c ep->data01 ^= 0x1; ep 349 drivers/usb/gadget/udc/fsl_qe_udc.c struct qe_ep *ep = &udc->eps[pipe_num]; ep 356 drivers/usb/gadget/udc/fsl_qe_udc.c if (ep->dir == USB_DIR_OUT) ep 375 drivers/usb/gadget/udc/fsl_qe_udc.c ep->rxbase = cpm_muram_addr(tmp_addr); ep 376 drivers/usb/gadget/udc/fsl_qe_udc.c ep->txbase = cpm_muram_addr(tmp_addr + (sizeof(struct qe_bd) ep 378 drivers/usb/gadget/udc/fsl_qe_udc.c ep->n_rxbd = ep->rxbase; ep 379 drivers/usb/gadget/udc/fsl_qe_udc.c ep->e_rxbd = ep->rxbase; ep 380 drivers/usb/gadget/udc/fsl_qe_udc.c ep->n_txbd = ep->txbase; ep 381 drivers/usb/gadget/udc/fsl_qe_udc.c ep->c_txbd = ep->txbase; ep 382 drivers/usb/gadget/udc/fsl_qe_udc.c ep->data01 = 0; /* data0 */ ep 385 drivers/usb/gadget/udc/fsl_qe_udc.c bd = ep->rxbase; ep 394 drivers/usb/gadget/udc/fsl_qe_udc.c bd = ep->txbase; ep 406 drivers/usb/gadget/udc/fsl_qe_udc.c static int qe_ep_rxbd_update(struct qe_ep *ep) ep 414 drivers/usb/gadget/udc/fsl_qe_udc.c if (ep->rxbase == NULL) ep 417 drivers/usb/gadget/udc/fsl_qe_udc.c bd = ep->rxbase; ep 419 drivers/usb/gadget/udc/fsl_qe_udc.c ep->rxframe = kmalloc(sizeof(*ep->rxframe), GFP_ATOMIC); ep 420 drivers/usb/gadget/udc/fsl_qe_udc.c if (!ep->rxframe) ep 423 drivers/usb/gadget/udc/fsl_qe_udc.c qe_frame_init(ep->rxframe); ep 425 drivers/usb/gadget/udc/fsl_qe_udc.c if (ep->dir == USB_DIR_OUT) ep 430 drivers/usb/gadget/udc/fsl_qe_udc.c size = (ep->ep.maxpacket + USB_CRC_SIZE + 2) * (bdring_len + 1); ep 431 drivers/usb/gadget/udc/fsl_qe_udc.c ep->rxbuffer = kzalloc(size, GFP_ATOMIC); ep 432 drivers/usb/gadget/udc/fsl_qe_udc.c if (!ep->rxbuffer) { ep 433 drivers/usb/gadget/udc/fsl_qe_udc.c kfree(ep->rxframe); ep 437 drivers/usb/gadget/udc/fsl_qe_udc.c ep->rxbuf_d = virt_to_phys((void *)ep->rxbuffer); ep 438 drivers/usb/gadget/udc/fsl_qe_udc.c if (ep->rxbuf_d == DMA_ADDR_INVALID) { ep 439 drivers/usb/gadget/udc/fsl_qe_udc.c ep->rxbuf_d = dma_map_single(ep->udc->gadget.dev.parent, ep 440 drivers/usb/gadget/udc/fsl_qe_udc.c ep->rxbuffer, ep 443 drivers/usb/gadget/udc/fsl_qe_udc.c ep->rxbufmap = 1; ep 445 drivers/usb/gadget/udc/fsl_qe_udc.c dma_sync_single_for_device(ep->udc->gadget.dev.parent, ep 446 drivers/usb/gadget/udc/fsl_qe_udc.c ep->rxbuf_d, size, ep 448 drivers/usb/gadget/udc/fsl_qe_udc.c ep->rxbufmap = 0; ep 451 drivers/usb/gadget/udc/fsl_qe_udc.c size = ep->ep.maxpacket + USB_CRC_SIZE + 2; ep 452 drivers/usb/gadget/udc/fsl_qe_udc.c tmp = ep->rxbuf_d; ep 469 drivers/usb/gadget/udc/fsl_qe_udc.c struct qe_ep *ep = &udc->eps[pipe_num]; ep 478 drivers/usb/gadget/udc/fsl_qe_udc.c logepnum = (ep->ep.desc->bEndpointAddress & USB_ENDPOINT_NUMBER_MASK); ep 481 drivers/usb/gadget/udc/fsl_qe_udc.c switch (ep->ep.desc->bmAttributes & 0x03) { ep 496 drivers/usb/gadget/udc/fsl_qe_udc.c switch (ep->dir) { ep 512 drivers/usb/gadget/udc/fsl_qe_udc.c tmp = (u16)(ep->ep.maxpacket + USB_CRC_SIZE); ep 524 drivers/usb/gadget/udc/fsl_qe_udc.c struct qe_ep *ep = &udc->eps[pipe_num]; ep 537 drivers/usb/gadget/udc/fsl_qe_udc.c if (strstr(ep->ep.name, "-iso") ep 538 drivers/usb/gadget/udc/fsl_qe_udc.c || strstr(ep->ep.name, "-int")) ep 559 drivers/usb/gadget/udc/fsl_qe_udc.c if (strstr(ep->ep.name, "-iso")) /* bulk is ok */ ep 575 drivers/usb/gadget/udc/fsl_qe_udc.c if (strstr(ep->ep.name, "-bulk") ep 576 drivers/usb/gadget/udc/fsl_qe_udc.c || strstr(ep->ep.name, "-int")) ep 590 drivers/usb/gadget/udc/fsl_qe_udc.c if (strstr(ep->ep.name, "-iso") ep 591 drivers/usb/gadget/udc/fsl_qe_udc.c || strstr(ep->ep.name, "-int")) ep 631 drivers/usb/gadget/udc/fsl_qe_udc.c ep->ep.maxpacket = max; ep 632 drivers/usb/gadget/udc/fsl_qe_udc.c ep->tm = (u8)(desc->bmAttributes & USB_ENDPOINT_XFERTYPE_MASK); ep 633 drivers/usb/gadget/udc/fsl_qe_udc.c ep->ep.desc = desc; ep 634 drivers/usb/gadget/udc/fsl_qe_udc.c ep->stopped = 0; ep 635 drivers/usb/gadget/udc/fsl_qe_udc.c ep->init = 1; ep 638 drivers/usb/gadget/udc/fsl_qe_udc.c ep->dir = USB_DIR_BOTH; ep 644 drivers/usb/gadget/udc/fsl_qe_udc.c ep->dir = USB_DIR_OUT; ep 647 drivers/usb/gadget/udc/fsl_qe_udc.c ep->dir = USB_DIR_IN; ep 655 drivers/usb/gadget/udc/fsl_qe_udc.c if ((ep->tm == USBP_TM_CTL) || (ep->dir == USB_DIR_OUT)) { ep 656 drivers/usb/gadget/udc/fsl_qe_udc.c reval = qe_ep_rxbd_update(ep); ep 661 drivers/usb/gadget/udc/fsl_qe_udc.c if ((ep->tm == USBP_TM_CTL) || (ep->dir == USB_DIR_IN)) { ep 662 drivers/usb/gadget/udc/fsl_qe_udc.c ep->txframe = kmalloc(sizeof(*ep->txframe), GFP_ATOMIC); ep 663 drivers/usb/gadget/udc/fsl_qe_udc.c if (!ep->txframe) ep 665 drivers/usb/gadget/udc/fsl_qe_udc.c qe_frame_init(ep->txframe); ep 676 drivers/usb/gadget/udc/fsl_qe_udc.c kfree(ep->rxbuffer); ep 677 drivers/usb/gadget/udc/fsl_qe_udc.c kfree(ep->rxframe); ep 681 drivers/usb/gadget/udc/fsl_qe_udc.c dev_err(udc->dev, "failed to initialize %s\n", ep->ep.name); ep 703 drivers/usb/gadget/udc/fsl_qe_udc.c static void recycle_one_rxbd(struct qe_ep *ep) ep 707 drivers/usb/gadget/udc/fsl_qe_udc.c bdstatus = in_be32((u32 __iomem *)ep->e_rxbd); ep 709 drivers/usb/gadget/udc/fsl_qe_udc.c out_be32((u32 __iomem *)ep->e_rxbd, bdstatus); ep 712 drivers/usb/gadget/udc/fsl_qe_udc.c ep->e_rxbd = ep->rxbase; ep 714 drivers/usb/gadget/udc/fsl_qe_udc.c ep->e_rxbd++; ep 717 drivers/usb/gadget/udc/fsl_qe_udc.c static void recycle_rxbds(struct qe_ep *ep, unsigned char stopatnext) ep 723 drivers/usb/gadget/udc/fsl_qe_udc.c nextbd = ep->n_rxbd; ep 724 drivers/usb/gadget/udc/fsl_qe_udc.c bd = ep->e_rxbd; ep 732 drivers/usb/gadget/udc/fsl_qe_udc.c bd = ep->rxbase; ep 741 drivers/usb/gadget/udc/fsl_qe_udc.c ep->e_rxbd = bd; ep 744 drivers/usb/gadget/udc/fsl_qe_udc.c static void ep_recycle_rxbds(struct qe_ep *ep) ep 746 drivers/usb/gadget/udc/fsl_qe_udc.c struct qe_bd __iomem *bd = ep->n_rxbd; ep 748 drivers/usb/gadget/udc/fsl_qe_udc.c u8 epnum = ep->epnum; ep 749 drivers/usb/gadget/udc/fsl_qe_udc.c struct qe_udc *udc = ep->udc; ep 753 drivers/usb/gadget/udc/fsl_qe_udc.c bd = ep->rxbase + ep 760 drivers/usb/gadget/udc/fsl_qe_udc.c bd = ep->rxbase; ep 764 drivers/usb/gadget/udc/fsl_qe_udc.c ep->e_rxbd = bd; ep 765 drivers/usb/gadget/udc/fsl_qe_udc.c recycle_rxbds(ep, 0); ep 766 drivers/usb/gadget/udc/fsl_qe_udc.c ep->e_rxbd = ep->n_rxbd; ep 768 drivers/usb/gadget/udc/fsl_qe_udc.c recycle_rxbds(ep, 1); ep 773 drivers/usb/gadget/udc/fsl_qe_udc.c if (ep->has_data <= 0 && (!list_empty(&ep->queue))) ep 774 drivers/usb/gadget/udc/fsl_qe_udc.c qe_eprx_normal(ep); ep 776 drivers/usb/gadget/udc/fsl_qe_udc.c ep->localnack = 0; ep 781 drivers/usb/gadget/udc/fsl_qe_udc.c static int qe_ep_rxframe_handle(struct qe_ep *ep); ep 786 drivers/usb/gadget/udc/fsl_qe_udc.c struct qe_ep *ep = &udc->eps[0]; ep 791 drivers/usb/gadget/udc/fsl_qe_udc.c pframe = ep->rxframe; ep 799 drivers/usb/gadget/udc/fsl_qe_udc.c ep->data01 = 1; ep 810 drivers/usb/gadget/udc/fsl_qe_udc.c struct qe_ep *ep = &udc->eps[0]; ep 816 drivers/usb/gadget/udc/fsl_qe_udc.c pframe = ep->rxframe; ep 818 drivers/usb/gadget/udc/fsl_qe_udc.c if (ep->dir == USB_DIR_IN) { ep 823 drivers/usb/gadget/udc/fsl_qe_udc.c bd = ep->n_rxbd; ep 856 drivers/usb/gadget/udc/fsl_qe_udc.c qe_ep_rxframe_handle(ep); ep 863 drivers/usb/gadget/udc/fsl_qe_udc.c recycle_one_rxbd(ep); ep 867 drivers/usb/gadget/udc/fsl_qe_udc.c bd = ep->rxbase; ep 876 drivers/usb/gadget/udc/fsl_qe_udc.c ep->n_rxbd = bd; ep 881 drivers/usb/gadget/udc/fsl_qe_udc.c static int qe_ep_rxframe_handle(struct qe_ep *ep) ep 889 drivers/usb/gadget/udc/fsl_qe_udc.c pframe = ep->rxframe; ep 894 drivers/usb/gadget/udc/fsl_qe_udc.c if (framepid != ep->data01) { ep 895 drivers/usb/gadget/udc/fsl_qe_udc.c dev_err(ep->udc->dev, "the data01 error!\n"); ep 900 drivers/usb/gadget/udc/fsl_qe_udc.c if (list_empty(&ep->queue)) { ep 901 drivers/usb/gadget/udc/fsl_qe_udc.c dev_err(ep->udc->dev, "the %s have no requeue!\n", ep->name); ep 903 drivers/usb/gadget/udc/fsl_qe_udc.c req = list_entry(ep->queue.next, struct qe_req, queue); ep 909 drivers/usb/gadget/udc/fsl_qe_udc.c if ((fsize < ep->ep.maxpacket) || ep 911 drivers/usb/gadget/udc/fsl_qe_udc.c if (ep->epnum == 0) ep 912 drivers/usb/gadget/udc/fsl_qe_udc.c ep0_req_complete(ep->udc, req); ep 914 drivers/usb/gadget/udc/fsl_qe_udc.c done(ep, req, 0); ep 915 drivers/usb/gadget/udc/fsl_qe_udc.c if (list_empty(&ep->queue) && ep->epnum != 0) ep 916 drivers/usb/gadget/udc/fsl_qe_udc.c qe_eprx_nack(ep); ep 921 drivers/usb/gadget/udc/fsl_qe_udc.c qe_ep_toggledata01(ep); ep 929 drivers/usb/gadget/udc/fsl_qe_udc.c struct qe_ep *ep; ep 939 drivers/usb/gadget/udc/fsl_qe_udc.c ep = &udc->eps[i]; ep 941 drivers/usb/gadget/udc/fsl_qe_udc.c if (ep->dir == USB_DIR_IN || ep->enable_tasklet == 0) { ep 947 drivers/usb/gadget/udc/fsl_qe_udc.c pframe = ep->rxframe; ep 948 drivers/usb/gadget/udc/fsl_qe_udc.c bd = ep->n_rxbd; ep 953 drivers/usb/gadget/udc/fsl_qe_udc.c if (list_empty(&ep->queue)) { ep 954 drivers/usb/gadget/udc/fsl_qe_udc.c qe_eprx_nack(ep); ep 957 drivers/usb/gadget/udc/fsl_qe_udc.c ep->has_data); ep 981 drivers/usb/gadget/udc/fsl_qe_udc.c qe_ep_rxframe_handle(ep); ep 989 drivers/usb/gadget/udc/fsl_qe_udc.c ep->has_data--; ep 990 drivers/usb/gadget/udc/fsl_qe_udc.c if (!(ep->localnack)) ep 991 drivers/usb/gadget/udc/fsl_qe_udc.c recycle_one_rxbd(ep); ep 995 drivers/usb/gadget/udc/fsl_qe_udc.c bd = ep->rxbase; ep 1003 drivers/usb/gadget/udc/fsl_qe_udc.c ep->n_rxbd = bd; ep 1005 drivers/usb/gadget/udc/fsl_qe_udc.c if (ep->localnack) ep 1006 drivers/usb/gadget/udc/fsl_qe_udc.c ep_recycle_rxbds(ep); ep 1008 drivers/usb/gadget/udc/fsl_qe_udc.c ep->enable_tasklet = 0; ep 1014 drivers/usb/gadget/udc/fsl_qe_udc.c static int qe_ep_rx(struct qe_ep *ep) ep 1021 drivers/usb/gadget/udc/fsl_qe_udc.c udc = ep->udc; ep 1022 drivers/usb/gadget/udc/fsl_qe_udc.c pframe = ep->rxframe; ep 1024 drivers/usb/gadget/udc/fsl_qe_udc.c if (ep->dir == USB_DIR_IN) { ep 1029 drivers/usb/gadget/udc/fsl_qe_udc.c bd = ep->n_rxbd; ep 1031 drivers/usb/gadget/udc/fsl_qe_udc.c swoffs = (u16)(bd - ep->rxbase); ep 1032 drivers/usb/gadget/udc/fsl_qe_udc.c ucoffs = (u16)((in_be16(&udc->ep_param[ep->epnum]->rbptr) - ep 1033 drivers/usb/gadget/udc/fsl_qe_udc.c in_be16(&udc->ep_param[ep->epnum]->rbase)) >> 3); ep 1040 drivers/usb/gadget/udc/fsl_qe_udc.c qe_eprx_nack(ep); ep 1041 drivers/usb/gadget/udc/fsl_qe_udc.c ep->localnack = 1; ep 1044 drivers/usb/gadget/udc/fsl_qe_udc.c ep->has_data = USB_BDRING_LEN_RX - emptybds; ep 1046 drivers/usb/gadget/udc/fsl_qe_udc.c if (list_empty(&ep->queue)) { ep 1047 drivers/usb/gadget/udc/fsl_qe_udc.c qe_eprx_nack(ep); ep 1049 drivers/usb/gadget/udc/fsl_qe_udc.c ep->has_data); ep 1054 drivers/usb/gadget/udc/fsl_qe_udc.c ep->enable_tasklet = 1; ep 1060 drivers/usb/gadget/udc/fsl_qe_udc.c static int qe_ep_tx(struct qe_ep *ep, struct qe_frame *frame) ep 1062 drivers/usb/gadget/udc/fsl_qe_udc.c struct qe_udc *udc = ep->udc; ep 1068 drivers/usb/gadget/udc/fsl_qe_udc.c if (ep->dir == USB_DIR_OUT) { ep 1078 drivers/usb/gadget/udc/fsl_qe_udc.c bd = ep->n_txbd; ep 1098 drivers/usb/gadget/udc/fsl_qe_udc.c if ((ep->epnum == 0) && (udc->ep0_state == DATA_STATE_NEED_ZLP)) ep 1099 drivers/usb/gadget/udc/fsl_qe_udc.c ep->data01 = 0x1; ep 1101 drivers/usb/gadget/udc/fsl_qe_udc.c if (ep->data01) { ep 1111 drivers/usb/gadget/udc/fsl_qe_udc.c qe_ep_filltxfifo(ep); ep 1116 drivers/usb/gadget/udc/fsl_qe_udc.c qe_ep_toggledata01(ep); ep 1118 drivers/usb/gadget/udc/fsl_qe_udc.c ep->n_txbd = ep->txbase; ep 1120 drivers/usb/gadget/udc/fsl_qe_udc.c ep->n_txbd++; ep 1132 drivers/usb/gadget/udc/fsl_qe_udc.c static int txcomplete(struct qe_ep *ep, unsigned char restart) ep 1134 drivers/usb/gadget/udc/fsl_qe_udc.c if (ep->tx_req != NULL) { ep 1135 drivers/usb/gadget/udc/fsl_qe_udc.c struct qe_req *req = ep->tx_req; ep 1138 drivers/usb/gadget/udc/fsl_qe_udc.c last_len = min_t(unsigned, req->req.length - ep->sent, ep 1139 drivers/usb/gadget/udc/fsl_qe_udc.c ep->ep.maxpacket); ep 1142 drivers/usb/gadget/udc/fsl_qe_udc.c int asent = ep->last; ep 1143 drivers/usb/gadget/udc/fsl_qe_udc.c ep->sent += asent; ep 1144 drivers/usb/gadget/udc/fsl_qe_udc.c ep->last -= asent; ep 1146 drivers/usb/gadget/udc/fsl_qe_udc.c ep->last = 0; ep 1152 drivers/usb/gadget/udc/fsl_qe_udc.c (req->req.length % ep->ep.maxpacket) != 0) ep 1160 drivers/usb/gadget/udc/fsl_qe_udc.c if (((ep->tx_req->req.length - ep->sent) <= 0) && !zlp) { ep 1161 drivers/usb/gadget/udc/fsl_qe_udc.c done(ep, ep->tx_req, 0); ep 1162 drivers/usb/gadget/udc/fsl_qe_udc.c ep->tx_req = NULL; ep 1163 drivers/usb/gadget/udc/fsl_qe_udc.c ep->last = 0; ep 1164 drivers/usb/gadget/udc/fsl_qe_udc.c ep->sent = 0; ep 1169 drivers/usb/gadget/udc/fsl_qe_udc.c if (ep->tx_req == NULL) { ep 1170 drivers/usb/gadget/udc/fsl_qe_udc.c if (!list_empty(&ep->queue)) { ep 1171 drivers/usb/gadget/udc/fsl_qe_udc.c ep->tx_req = list_entry(ep->queue.next, struct qe_req, ep 1173 drivers/usb/gadget/udc/fsl_qe_udc.c ep->last = 0; ep 1174 drivers/usb/gadget/udc/fsl_qe_udc.c ep->sent = 0; ep 1182 drivers/usb/gadget/udc/fsl_qe_udc.c static int qe_usb_senddata(struct qe_ep *ep, struct qe_frame *frame) ep 1188 drivers/usb/gadget/udc/fsl_qe_udc.c size = min_t(u32, (ep->tx_req->req.length - ep->sent), ep 1189 drivers/usb/gadget/udc/fsl_qe_udc.c ep->ep.maxpacket); ep 1190 drivers/usb/gadget/udc/fsl_qe_udc.c buf = (u8 *)ep->tx_req->req.buf + ep->sent; ep 1192 drivers/usb/gadget/udc/fsl_qe_udc.c ep->last = size; ep 1193 drivers/usb/gadget/udc/fsl_qe_udc.c ep->tx_req->req.actual += size; ep 1198 drivers/usb/gadget/udc/fsl_qe_udc.c return qe_ep_tx(ep, frame); ep 1204 drivers/usb/gadget/udc/fsl_qe_udc.c static int sendnulldata(struct qe_ep *ep, struct qe_frame *frame, uint infor) ep 1206 drivers/usb/gadget/udc/fsl_qe_udc.c struct qe_udc *udc = ep->udc; ep 1217 drivers/usb/gadget/udc/fsl_qe_udc.c return qe_ep_tx(ep, frame); ep 1220 drivers/usb/gadget/udc/fsl_qe_udc.c static int frame_create_tx(struct qe_ep *ep, struct qe_frame *frame) ep 1222 drivers/usb/gadget/udc/fsl_qe_udc.c struct qe_req *req = ep->tx_req; ep 1228 drivers/usb/gadget/udc/fsl_qe_udc.c if ((req->req.length - ep->sent) > 0) ep 1229 drivers/usb/gadget/udc/fsl_qe_udc.c reval = qe_usb_senddata(ep, frame); ep 1231 drivers/usb/gadget/udc/fsl_qe_udc.c reval = sendnulldata(ep, frame, 0); ep 1242 drivers/usb/gadget/udc/fsl_qe_udc.c struct qe_ep *ep = &udc->eps[0]; ep 1247 drivers/usb/gadget/udc/fsl_qe_udc.c sendnulldata(ep, ep->txframe, SETUP_STATUS | NO_REQ); ep 1259 drivers/usb/gadget/udc/fsl_qe_udc.c struct qe_ep *ep = &udc->eps[0]; ep 1264 drivers/usb/gadget/udc/fsl_qe_udc.c done(ep, req, 0); ep 1271 drivers/usb/gadget/udc/fsl_qe_udc.c done(ep, req, 0); ep 1276 drivers/usb/gadget/udc/fsl_qe_udc.c done(ep, req, 0); ep 1283 drivers/usb/gadget/udc/fsl_qe_udc.c done(ep, req, 0); ep 1297 drivers/usb/gadget/udc/fsl_qe_udc.c static int ep0_txcomplete(struct qe_ep *ep, unsigned char restart) ep 1300 drivers/usb/gadget/udc/fsl_qe_udc.c struct qe_frame *frame = ep->txframe; ep 1304 drivers/usb/gadget/udc/fsl_qe_udc.c ep->udc->ep0_state = WAIT_FOR_SETUP; ep 1306 drivers/usb/gadget/udc/fsl_qe_udc.c sendnulldata(ep, ep->txframe, SETUP_STATUS | NO_REQ); ep 1310 drivers/usb/gadget/udc/fsl_qe_udc.c tx_req = ep->tx_req; ep 1313 drivers/usb/gadget/udc/fsl_qe_udc.c int asent = ep->last; ep 1314 drivers/usb/gadget/udc/fsl_qe_udc.c ep->sent += asent; ep 1315 drivers/usb/gadget/udc/fsl_qe_udc.c ep->last -= asent; ep 1317 drivers/usb/gadget/udc/fsl_qe_udc.c ep->last = 0; ep 1321 drivers/usb/gadget/udc/fsl_qe_udc.c if ((ep->tx_req->req.length - ep->sent) <= 0) { ep 1322 drivers/usb/gadget/udc/fsl_qe_udc.c ep->tx_req->req.actual = (unsigned int)ep->sent; ep 1323 drivers/usb/gadget/udc/fsl_qe_udc.c ep0_req_complete(ep->udc, ep->tx_req); ep 1324 drivers/usb/gadget/udc/fsl_qe_udc.c ep->tx_req = NULL; ep 1325 drivers/usb/gadget/udc/fsl_qe_udc.c ep->last = 0; ep 1326 drivers/usb/gadget/udc/fsl_qe_udc.c ep->sent = 0; ep 1329 drivers/usb/gadget/udc/fsl_qe_udc.c dev_vdbg(ep->udc->dev, "the ep0_controller have no req\n"); ep 1335 drivers/usb/gadget/udc/fsl_qe_udc.c static int ep0_txframe_handle(struct qe_ep *ep) ep 1338 drivers/usb/gadget/udc/fsl_qe_udc.c if (frame_get_status(ep->txframe) & FRAME_ERROR) { ep 1339 drivers/usb/gadget/udc/fsl_qe_udc.c qe_ep_flushtxfifo(ep); ep 1340 drivers/usb/gadget/udc/fsl_qe_udc.c dev_vdbg(ep->udc->dev, "The EP0 transmit data have error!\n"); ep 1341 drivers/usb/gadget/udc/fsl_qe_udc.c if (frame_get_info(ep->txframe) & PID_DATA0) ep 1342 drivers/usb/gadget/udc/fsl_qe_udc.c ep->data01 = 0; ep 1344 drivers/usb/gadget/udc/fsl_qe_udc.c ep->data01 = 1; ep 1346 drivers/usb/gadget/udc/fsl_qe_udc.c ep0_txcomplete(ep, 1); ep 1348 drivers/usb/gadget/udc/fsl_qe_udc.c ep0_txcomplete(ep, 0); ep 1350 drivers/usb/gadget/udc/fsl_qe_udc.c frame_create_tx(ep, ep->txframe); ep 1354 drivers/usb/gadget/udc/fsl_qe_udc.c static int qe_ep0_txconf(struct qe_ep *ep) ep 1360 drivers/usb/gadget/udc/fsl_qe_udc.c bd = ep->c_txbd; ep 1363 drivers/usb/gadget/udc/fsl_qe_udc.c pframe = ep->txframe; ep 1369 drivers/usb/gadget/udc/fsl_qe_udc.c ep->c_txbd = ep->txbase; ep 1371 drivers/usb/gadget/udc/fsl_qe_udc.c ep->c_txbd++; ep 1373 drivers/usb/gadget/udc/fsl_qe_udc.c if (ep->c_txbd == ep->n_txbd) { ep 1381 drivers/usb/gadget/udc/fsl_qe_udc.c ep0_txframe_handle(ep); ep 1384 drivers/usb/gadget/udc/fsl_qe_udc.c bd = ep->c_txbd; ep 1391 drivers/usb/gadget/udc/fsl_qe_udc.c static int ep_txframe_handle(struct qe_ep *ep) ep 1393 drivers/usb/gadget/udc/fsl_qe_udc.c if (frame_get_status(ep->txframe) & FRAME_ERROR) { ep 1394 drivers/usb/gadget/udc/fsl_qe_udc.c qe_ep_flushtxfifo(ep); ep 1395 drivers/usb/gadget/udc/fsl_qe_udc.c dev_vdbg(ep->udc->dev, "The EP0 transmit data have error!\n"); ep 1396 drivers/usb/gadget/udc/fsl_qe_udc.c if (frame_get_info(ep->txframe) & PID_DATA0) ep 1397 drivers/usb/gadget/udc/fsl_qe_udc.c ep->data01 = 0; ep 1399 drivers/usb/gadget/udc/fsl_qe_udc.c ep->data01 = 1; ep 1401 drivers/usb/gadget/udc/fsl_qe_udc.c txcomplete(ep, 1); ep 1403 drivers/usb/gadget/udc/fsl_qe_udc.c txcomplete(ep, 0); ep 1405 drivers/usb/gadget/udc/fsl_qe_udc.c frame_create_tx(ep, ep->txframe); /* send the data */ ep 1410 drivers/usb/gadget/udc/fsl_qe_udc.c static int qe_ep_txconf(struct qe_ep *ep) ep 1417 drivers/usb/gadget/udc/fsl_qe_udc.c bd = ep->c_txbd; ep 1420 drivers/usb/gadget/udc/fsl_qe_udc.c pframe = ep->txframe; ep 1433 drivers/usb/gadget/udc/fsl_qe_udc.c ep->c_txbd = ep->txbase; ep 1435 drivers/usb/gadget/udc/fsl_qe_udc.c ep->c_txbd++; ep 1438 drivers/usb/gadget/udc/fsl_qe_udc.c ep_txframe_handle(ep); ep 1439 drivers/usb/gadget/udc/fsl_qe_udc.c bd = ep->c_txbd; ep 1449 drivers/usb/gadget/udc/fsl_qe_udc.c static int ep_req_send(struct qe_ep *ep, struct qe_req *req) ep 1453 drivers/usb/gadget/udc/fsl_qe_udc.c if (ep->tx_req == NULL) { ep 1454 drivers/usb/gadget/udc/fsl_qe_udc.c ep->sent = 0; ep 1455 drivers/usb/gadget/udc/fsl_qe_udc.c ep->last = 0; ep 1456 drivers/usb/gadget/udc/fsl_qe_udc.c txcomplete(ep, 0); /* can gain a new tx_req */ ep 1457 drivers/usb/gadget/udc/fsl_qe_udc.c reval = frame_create_tx(ep, ep->txframe); ep 1463 drivers/usb/gadget/udc/fsl_qe_udc.c static int ep_req_rx(struct qe_ep *ep, struct qe_req *req) ep 1465 drivers/usb/gadget/udc/fsl_qe_udc.c struct qe_udc *udc = ep->udc; ep 1474 drivers/usb/gadget/udc/fsl_qe_udc.c if (list_empty(&ep->queue)) { ep 1478 drivers/usb/gadget/udc/fsl_qe_udc.c pframe = ep->rxframe; ep 1480 drivers/usb/gadget/udc/fsl_qe_udc.c bd = ep->n_rxbd; ep 1507 drivers/usb/gadget/udc/fsl_qe_udc.c if (framepid != ep->data01) { ep 1516 drivers/usb/gadget/udc/fsl_qe_udc.c if ((fsize < ep->ep.maxpacket) ep 1520 drivers/usb/gadget/udc/fsl_qe_udc.c done(ep, req, 0); ep 1521 drivers/usb/gadget/udc/fsl_qe_udc.c if (list_empty(&ep->queue)) ep 1522 drivers/usb/gadget/udc/fsl_qe_udc.c qe_eprx_nack(ep); ep 1525 drivers/usb/gadget/udc/fsl_qe_udc.c qe_ep_toggledata01(ep); ep 1534 drivers/usb/gadget/udc/fsl_qe_udc.c ep->has_data--; ep 1538 drivers/usb/gadget/udc/fsl_qe_udc.c bd = ep->rxbase; ep 1546 drivers/usb/gadget/udc/fsl_qe_udc.c ep->n_rxbd = bd; ep 1547 drivers/usb/gadget/udc/fsl_qe_udc.c ep_recycle_rxbds(ep); ep 1553 drivers/usb/gadget/udc/fsl_qe_udc.c static int ep_req_receive(struct qe_ep *ep, struct qe_req *req) ep 1555 drivers/usb/gadget/udc/fsl_qe_udc.c if (ep->state == EP_STATE_NACK) { ep 1556 drivers/usb/gadget/udc/fsl_qe_udc.c if (ep->has_data <= 0) { ep 1558 drivers/usb/gadget/udc/fsl_qe_udc.c qe_eprx_normal(ep); ep 1561 drivers/usb/gadget/udc/fsl_qe_udc.c ep_req_rx(ep, req); ep 1579 drivers/usb/gadget/udc/fsl_qe_udc.c struct qe_ep *ep; ep 1583 drivers/usb/gadget/udc/fsl_qe_udc.c ep = container_of(_ep, struct qe_ep, ep); ep 1590 drivers/usb/gadget/udc/fsl_qe_udc.c udc = ep->udc; ep 1598 drivers/usb/gadget/udc/fsl_qe_udc.c cpm_muram_free(cpm_muram_offset(ep->rxbase)); ep 1599 drivers/usb/gadget/udc/fsl_qe_udc.c dev_dbg(udc->dev, "enable ep%d failed\n", ep->epnum); ep 1602 drivers/usb/gadget/udc/fsl_qe_udc.c dev_dbg(udc->dev, "enable ep%d successful\n", ep->epnum); ep 1609 drivers/usb/gadget/udc/fsl_qe_udc.c struct qe_ep *ep; ep 1613 drivers/usb/gadget/udc/fsl_qe_udc.c ep = container_of(_ep, struct qe_ep, ep); ep 1614 drivers/usb/gadget/udc/fsl_qe_udc.c udc = ep->udc; ep 1616 drivers/usb/gadget/udc/fsl_qe_udc.c if (!_ep || !ep->ep.desc) { ep 1617 drivers/usb/gadget/udc/fsl_qe_udc.c dev_dbg(udc->dev, "%s not enabled\n", _ep ? ep->ep.name : NULL); ep 1623 drivers/usb/gadget/udc/fsl_qe_udc.c nuke(ep, -ESHUTDOWN); ep 1624 drivers/usb/gadget/udc/fsl_qe_udc.c ep->ep.desc = NULL; ep 1625 drivers/usb/gadget/udc/fsl_qe_udc.c ep->stopped = 1; ep 1626 drivers/usb/gadget/udc/fsl_qe_udc.c ep->tx_req = NULL; ep 1627 drivers/usb/gadget/udc/fsl_qe_udc.c qe_ep_reset(udc, ep->epnum); ep 1630 drivers/usb/gadget/udc/fsl_qe_udc.c cpm_muram_free(cpm_muram_offset(ep->rxbase)); ep 1632 drivers/usb/gadget/udc/fsl_qe_udc.c if (ep->dir == USB_DIR_OUT) ep 1633 drivers/usb/gadget/udc/fsl_qe_udc.c size = (ep->ep.maxpacket + USB_CRC_SIZE + 2) * ep 1636 drivers/usb/gadget/udc/fsl_qe_udc.c size = (ep->ep.maxpacket + USB_CRC_SIZE + 2) * ep 1639 drivers/usb/gadget/udc/fsl_qe_udc.c if (ep->dir != USB_DIR_IN) { ep 1640 drivers/usb/gadget/udc/fsl_qe_udc.c kfree(ep->rxframe); ep 1641 drivers/usb/gadget/udc/fsl_qe_udc.c if (ep->rxbufmap) { ep 1643 drivers/usb/gadget/udc/fsl_qe_udc.c ep->rxbuf_d, size, ep 1645 drivers/usb/gadget/udc/fsl_qe_udc.c ep->rxbuf_d = DMA_ADDR_INVALID; ep 1649 drivers/usb/gadget/udc/fsl_qe_udc.c ep->rxbuf_d, size, ep 1652 drivers/usb/gadget/udc/fsl_qe_udc.c kfree(ep->rxbuffer); ep 1655 drivers/usb/gadget/udc/fsl_qe_udc.c if (ep->dir != USB_DIR_OUT) ep 1656 drivers/usb/gadget/udc/fsl_qe_udc.c kfree(ep->txframe); ep 1689 drivers/usb/gadget/udc/fsl_qe_udc.c struct qe_ep *ep = container_of(_ep, struct qe_ep, ep); ep 1694 drivers/usb/gadget/udc/fsl_qe_udc.c udc = ep->udc; ep 1701 drivers/usb/gadget/udc/fsl_qe_udc.c if (!_ep || (!ep->ep.desc && ep_index(ep))) { ep 1709 drivers/usb/gadget/udc/fsl_qe_udc.c req->ep = ep; ep 1713 drivers/usb/gadget/udc/fsl_qe_udc.c req->req.dma = dma_map_single(ep->udc->gadget.dev.parent, ep 1716 drivers/usb/gadget/udc/fsl_qe_udc.c ep_is_in(ep) ep 1721 drivers/usb/gadget/udc/fsl_qe_udc.c dma_sync_single_for_device(ep->udc->gadget.dev.parent, ep 1723 drivers/usb/gadget/udc/fsl_qe_udc.c ep_is_in(ep) ep 1732 drivers/usb/gadget/udc/fsl_qe_udc.c list_add_tail(&req->queue, &ep->queue); ep 1734 drivers/usb/gadget/udc/fsl_qe_udc.c ep->name, req->req.length); ep 1737 drivers/usb/gadget/udc/fsl_qe_udc.c if (ep_is_in(ep)) ep 1738 drivers/usb/gadget/udc/fsl_qe_udc.c reval = ep_req_send(ep, req); ep 1741 drivers/usb/gadget/udc/fsl_qe_udc.c if (ep_index(ep) == 0 && req->req.length > 0) { ep 1742 drivers/usb/gadget/udc/fsl_qe_udc.c if (ep_is_in(ep)) ep 1748 drivers/usb/gadget/udc/fsl_qe_udc.c if (ep->dir == USB_DIR_OUT) ep 1749 drivers/usb/gadget/udc/fsl_qe_udc.c reval = ep_req_receive(ep, req); ep 1758 drivers/usb/gadget/udc/fsl_qe_udc.c struct qe_ep *ep = container_of(_ep, struct qe_ep, ep); ep 1759 drivers/usb/gadget/udc/fsl_qe_udc.c struct qe_udc *udc = ep->udc; ep 1772 drivers/usb/gadget/udc/fsl_qe_udc.c struct qe_ep *ep = container_of(_ep, struct qe_ep, ep); ep 1779 drivers/usb/gadget/udc/fsl_qe_udc.c spin_lock_irqsave(&ep->udc->lock, flags); ep 1782 drivers/usb/gadget/udc/fsl_qe_udc.c list_for_each_entry(req, &ep->queue, queue) { ep 1788 drivers/usb/gadget/udc/fsl_qe_udc.c spin_unlock_irqrestore(&ep->udc->lock, flags); ep 1792 drivers/usb/gadget/udc/fsl_qe_udc.c done(ep, req, -ECONNRESET); ep 1794 drivers/usb/gadget/udc/fsl_qe_udc.c spin_unlock_irqrestore(&ep->udc->lock, flags); ep 1806 drivers/usb/gadget/udc/fsl_qe_udc.c struct qe_ep *ep; ep 1811 drivers/usb/gadget/udc/fsl_qe_udc.c ep = container_of(_ep, struct qe_ep, ep); ep 1812 drivers/usb/gadget/udc/fsl_qe_udc.c if (!_ep || !ep->ep.desc) { ep 1817 drivers/usb/gadget/udc/fsl_qe_udc.c udc = ep->udc; ep 1820 drivers/usb/gadget/udc/fsl_qe_udc.c if (value && ep_is_in(ep) && !list_empty(&ep->queue)) { ep 1826 drivers/usb/gadget/udc/fsl_qe_udc.c spin_lock_irqsave(&ep->udc->lock, flags); ep 1827 drivers/usb/gadget/udc/fsl_qe_udc.c qe_eptx_stall_change(ep, value); ep 1828 drivers/usb/gadget/udc/fsl_qe_udc.c qe_eprx_stall_change(ep, value); ep 1829 drivers/usb/gadget/udc/fsl_qe_udc.c spin_unlock_irqrestore(&ep->udc->lock, flags); ep 1831 drivers/usb/gadget/udc/fsl_qe_udc.c if (ep->epnum == 0) { ep 1838 drivers/usb/gadget/udc/fsl_qe_udc.c ep->data01 = 0; ep 1840 drivers/usb/gadget/udc/fsl_qe_udc.c dev_vdbg(udc->dev, "%s %s halt stat %d\n", ep->ep.name, ep 1891 drivers/usb/gadget/udc/fsl_qe_udc.c struct qe_ep *ep = &udc->eps[pipe]; ep 1893 drivers/usb/gadget/udc/fsl_qe_udc.c nuke(ep, -ECONNRESET); ep 1894 drivers/usb/gadget/udc/fsl_qe_udc.c ep->tx_req = NULL; ep 1939 drivers/usb/gadget/udc/fsl_qe_udc.c struct qe_ep *ep; ep 1942 drivers/usb/gadget/udc/fsl_qe_udc.c ep = &udc->eps[0]; ep 1957 drivers/usb/gadget/udc/fsl_qe_udc.c if (!target_ep->ep.desc) ep 1974 drivers/usb/gadget/udc/fsl_qe_udc.c req = container_of(qe_alloc_request(&ep->ep, GFP_KERNEL), ep 1986 drivers/usb/gadget/udc/fsl_qe_udc.c status = __qe_ep_queue(&ep->ep, &req->req); ep 2040 drivers/usb/gadget/udc/fsl_qe_udc.c struct qe_ep *ep; ep 2045 drivers/usb/gadget/udc/fsl_qe_udc.c ep = &udc->eps[pipe]; ep 2048 drivers/usb/gadget/udc/fsl_qe_udc.c qe_ep_set_halt(&ep->ep, ep 2161 drivers/usb/gadget/udc/fsl_qe_udc.c struct qe_ep *ep; ep 2170 drivers/usb/gadget/udc/fsl_qe_udc.c ep = &udc->eps[i]; ep 2171 drivers/usb/gadget/udc/fsl_qe_udc.c if (ep && ep->init && (ep->dir != USB_DIR_OUT)) { ep 2172 drivers/usb/gadget/udc/fsl_qe_udc.c bd = ep->c_txbd; ep 2176 drivers/usb/gadget/udc/fsl_qe_udc.c if (ep->epnum == 0) ep 2177 drivers/usb/gadget/udc/fsl_qe_udc.c res = qe_ep0_txconf(ep); ep 2179 drivers/usb/gadget/udc/fsl_qe_udc.c res = qe_ep_txconf(ep); ep 2190 drivers/usb/gadget/udc/fsl_qe_udc.c struct qe_ep *ep; ep 2195 drivers/usb/gadget/udc/fsl_qe_udc.c ep = &udc->eps[i]; ep 2196 drivers/usb/gadget/udc/fsl_qe_udc.c if (ep && ep->init && (ep->dir != USB_DIR_IN)) { ep 2197 drivers/usb/gadget/udc/fsl_qe_udc.c bd = ep->n_rxbd; ep 2200 drivers/usb/gadget/udc/fsl_qe_udc.c if (ep->epnum == 0) { ep 2204 drivers/usb/gadget/udc/fsl_qe_udc.c qe_ep_rx(ep); ep 2316 drivers/usb/gadget/udc/fsl_qe_udc.c list_for_each_entry(loop_ep, &udc->gadget.ep_list, ep.ep_list) ep 2399 drivers/usb/gadget/udc/fsl_qe_udc.c struct qe_ep *ep = &udc->eps[pipe_num]; ep 2401 drivers/usb/gadget/udc/fsl_qe_udc.c ep->udc = udc; ep 2402 drivers/usb/gadget/udc/fsl_qe_udc.c strcpy(ep->name, ep_name[pipe_num]); ep 2403 drivers/usb/gadget/udc/fsl_qe_udc.c ep->ep.name = ep_name[pipe_num]; ep 2406 drivers/usb/gadget/udc/fsl_qe_udc.c ep->ep.caps.type_control = true; ep 2408 drivers/usb/gadget/udc/fsl_qe_udc.c ep->ep.caps.type_iso = true; ep 2409 drivers/usb/gadget/udc/fsl_qe_udc.c ep->ep.caps.type_bulk = true; ep 2410 drivers/usb/gadget/udc/fsl_qe_udc.c ep->ep.caps.type_int = true; ep 2413 drivers/usb/gadget/udc/fsl_qe_udc.c ep->ep.caps.dir_in = true; ep 2414 drivers/usb/gadget/udc/fsl_qe_udc.c ep->ep.caps.dir_out = true; ep 2416 drivers/usb/gadget/udc/fsl_qe_udc.c ep->ep.ops = &qe_ep_ops; ep 2417 drivers/usb/gadget/udc/fsl_qe_udc.c ep->stopped = 1; ep 2418 drivers/usb/gadget/udc/fsl_qe_udc.c usb_ep_set_maxpacket_limit(&ep->ep, (unsigned short) ~0); ep 2419 drivers/usb/gadget/udc/fsl_qe_udc.c ep->ep.desc = NULL; ep 2420 drivers/usb/gadget/udc/fsl_qe_udc.c ep->dir = 0xff; ep 2421 drivers/usb/gadget/udc/fsl_qe_udc.c ep->epnum = (u8)pipe_num; ep 2422 drivers/usb/gadget/udc/fsl_qe_udc.c ep->sent = 0; ep 2423 drivers/usb/gadget/udc/fsl_qe_udc.c ep->last = 0; ep 2424 drivers/usb/gadget/udc/fsl_qe_udc.c ep->init = 0; ep 2425 drivers/usb/gadget/udc/fsl_qe_udc.c ep->rxframe = NULL; ep 2426 drivers/usb/gadget/udc/fsl_qe_udc.c ep->txframe = NULL; ep 2427 drivers/usb/gadget/udc/fsl_qe_udc.c ep->tx_req = NULL; ep 2428 drivers/usb/gadget/udc/fsl_qe_udc.c ep->state = EP_STATE_IDLE; ep 2429 drivers/usb/gadget/udc/fsl_qe_udc.c ep->has_data = 0; ep 2432 drivers/usb/gadget/udc/fsl_qe_udc.c INIT_LIST_HEAD(&ep->queue); ep 2436 drivers/usb/gadget/udc/fsl_qe_udc.c list_add_tail(&ep->ep.ep_list, &udc->gadget.ep_list); ep 2438 drivers/usb/gadget/udc/fsl_qe_udc.c ep->gadget = &udc->gadget; ep 2466 drivers/usb/gadget/udc/fsl_qe_udc.c struct qe_ep *ep; ep 2502 drivers/usb/gadget/udc/fsl_qe_udc.c udc->gadget.ep0 = &udc->eps[0].ep; ep 2600 drivers/usb/gadget/udc/fsl_qe_udc.c ep = &udc->eps[0]; ep 2601 drivers/usb/gadget/udc/fsl_qe_udc.c cpm_muram_free(cpm_muram_offset(ep->rxbase)); ep 2602 drivers/usb/gadget/udc/fsl_qe_udc.c kfree(ep->rxframe); ep 2603 drivers/usb/gadget/udc/fsl_qe_udc.c kfree(ep->rxbuffer); ep 2604 drivers/usb/gadget/udc/fsl_qe_udc.c kfree(ep->txframe); ep 2627 drivers/usb/gadget/udc/fsl_qe_udc.c struct qe_ep *ep; ep 2647 drivers/usb/gadget/udc/fsl_qe_udc.c ep = &udc->eps[0]; ep 2648 drivers/usb/gadget/udc/fsl_qe_udc.c cpm_muram_free(cpm_muram_offset(ep->rxbase)); ep 2649 drivers/usb/gadget/udc/fsl_qe_udc.c size = (ep->ep.maxpacket + USB_CRC_SIZE + 2) * (USB_BDRING_LEN + 1); ep 2651 drivers/usb/gadget/udc/fsl_qe_udc.c kfree(ep->rxframe); ep 2652 drivers/usb/gadget/udc/fsl_qe_udc.c if (ep->rxbufmap) { ep 2654 drivers/usb/gadget/udc/fsl_qe_udc.c ep->rxbuf_d, size, ep 2656 drivers/usb/gadget/udc/fsl_qe_udc.c ep->rxbuf_d = DMA_ADDR_INVALID; ep 2659 drivers/usb/gadget/udc/fsl_qe_udc.c ep->rxbuf_d, size, ep 2663 drivers/usb/gadget/udc/fsl_qe_udc.c kfree(ep->rxbuffer); ep 2664 drivers/usb/gadget/udc/fsl_qe_udc.c kfree(ep->txframe); ep 152 drivers/usb/gadget/udc/fsl_qe_udc.h #define ep_index(EP) ((EP)->ep.desc->bEndpointAddress & 0xF) ep 153 drivers/usb/gadget/udc/fsl_qe_udc.h #define ep_maxpacket(EP) ((EP)->ep.maxpacket) ep 155 drivers/usb/gadget/udc/fsl_qe_udc.h USB_DIR_IN) : ((EP)->ep.desc->bEndpointAddress \ ep 257 drivers/usb/gadget/udc/fsl_qe_udc.h struct qe_ep *ep; ep 262 drivers/usb/gadget/udc/fsl_qe_udc.h struct usb_ep ep; ep 157 drivers/usb/gadget/udc/fsl_udc_core.c static void done(struct fsl_ep *ep, struct fsl_req *req, int status) ep 158 drivers/usb/gadget/udc/fsl_udc_core.c __releases(ep->udc->lock) ep 159 drivers/usb/gadget/udc/fsl_udc_core.c __acquires(ep->udc->lock) ep 162 drivers/usb/gadget/udc/fsl_udc_core.c unsigned char stopped = ep->stopped; ep 166 drivers/usb/gadget/udc/fsl_udc_core.c udc = (struct fsl_udc *)ep->udc; ep 186 drivers/usb/gadget/udc/fsl_udc_core.c usb_gadget_unmap_request(&ep->udc->gadget, &req->req, ep_is_in(ep)); ep 190 drivers/usb/gadget/udc/fsl_udc_core.c ep->ep.name, &req->req, status, ep 193 drivers/usb/gadget/udc/fsl_udc_core.c ep->stopped = 1; ep 195 drivers/usb/gadget/udc/fsl_udc_core.c spin_unlock(&ep->udc->lock); ep 197 drivers/usb/gadget/udc/fsl_udc_core.c usb_gadget_giveback_request(&ep->ep, &req->req); ep 199 drivers/usb/gadget/udc/fsl_udc_core.c spin_lock(&ep->udc->lock); ep 200 drivers/usb/gadget/udc/fsl_udc_core.c ep->stopped = stopped; ep 207 drivers/usb/gadget/udc/fsl_udc_core.c static void nuke(struct fsl_ep *ep, int status) ep 209 drivers/usb/gadget/udc/fsl_udc_core.c ep->stopped = 1; ep 212 drivers/usb/gadget/udc/fsl_udc_core.c fsl_ep_fifo_flush(&ep->ep); ep 215 drivers/usb/gadget/udc/fsl_udc_core.c while (!list_empty(&ep->queue)) { ep 218 drivers/usb/gadget/udc/fsl_udc_core.c req = list_entry(ep->queue.next, struct fsl_req, queue); ep 219 drivers/usb/gadget/udc/fsl_udc_core.c done(ep, req, status); ep 547 drivers/usb/gadget/udc/fsl_udc_core.c struct fsl_ep *ep = NULL; ep 553 drivers/usb/gadget/udc/fsl_udc_core.c ep = container_of(_ep, struct fsl_ep, ep); ep 560 drivers/usb/gadget/udc/fsl_udc_core.c udc = ep->udc; ep 595 drivers/usb/gadget/udc/fsl_udc_core.c ep->ep.maxpacket = max; ep 596 drivers/usb/gadget/udc/fsl_udc_core.c ep->ep.desc = desc; ep 597 drivers/usb/gadget/udc/fsl_udc_core.c ep->stopped = 0; ep 602 drivers/usb/gadget/udc/fsl_udc_core.c struct_ep_qh_setup(udc, (unsigned char) ep_index(ep), ep 610 drivers/usb/gadget/udc/fsl_udc_core.c dr_ep_setup((unsigned char) ep_index(ep), ep 619 drivers/usb/gadget/udc/fsl_udc_core.c VDBG("enabled %s (ep%d%s) maxpacket %d",ep->ep.name, ep 620 drivers/usb/gadget/udc/fsl_udc_core.c ep->ep.desc->bEndpointAddress & 0x0f, ep 634 drivers/usb/gadget/udc/fsl_udc_core.c struct fsl_ep *ep = NULL; ep 639 drivers/usb/gadget/udc/fsl_udc_core.c ep = container_of(_ep, struct fsl_ep, ep); ep 640 drivers/usb/gadget/udc/fsl_udc_core.c if (!_ep || !ep->ep.desc) { ep 641 drivers/usb/gadget/udc/fsl_udc_core.c VDBG("%s not enabled", _ep ? ep->ep.name : NULL); ep 646 drivers/usb/gadget/udc/fsl_udc_core.c ep_num = ep_index(ep); ep 648 drivers/usb/gadget/udc/fsl_udc_core.c if (ep_is_in(ep)) { ep 657 drivers/usb/gadget/udc/fsl_udc_core.c udc = (struct fsl_udc *)ep->udc; ep 661 drivers/usb/gadget/udc/fsl_udc_core.c nuke(ep, -ESHUTDOWN); ep 663 drivers/usb/gadget/udc/fsl_udc_core.c ep->ep.desc = NULL; ep 664 drivers/usb/gadget/udc/fsl_udc_core.c ep->stopped = 1; ep 702 drivers/usb/gadget/udc/fsl_udc_core.c static void fsl_prime_ep(struct fsl_ep *ep, struct ep_td_struct *td) ep 704 drivers/usb/gadget/udc/fsl_udc_core.c struct ep_queue_head *qh = get_qh_by_ep(ep); ep 718 drivers/usb/gadget/udc/fsl_udc_core.c fsl_writel(ep_is_in(ep) ? (1 << (ep_index(ep) + 16)) ep 719 drivers/usb/gadget/udc/fsl_udc_core.c : (1 << (ep_index(ep))), &dr_regs->endpointprime); ep 723 drivers/usb/gadget/udc/fsl_udc_core.c static void fsl_queue_td(struct fsl_ep *ep, struct fsl_req *req) ep 730 drivers/usb/gadget/udc/fsl_udc_core.c bitmask = ep_is_in(ep) ep 731 drivers/usb/gadget/udc/fsl_udc_core.c ? (1 << (ep_index(ep) + 16)) ep 732 drivers/usb/gadget/udc/fsl_udc_core.c : (1 << (ep_index(ep))); ep 735 drivers/usb/gadget/udc/fsl_udc_core.c if (!(list_empty(&ep->queue)) && !(ep_index(ep) == 0)) { ep 738 drivers/usb/gadget/udc/fsl_udc_core.c lastreq = list_entry(ep->queue.prev, struct fsl_req, queue); ep 765 drivers/usb/gadget/udc/fsl_udc_core.c fsl_prime_ep(ep, req->head); ep 806 drivers/usb/gadget/udc/fsl_udc_core.c if (*length == 0 || (*length % req->ep->ep.maxpacket) != 0) ep 870 drivers/usb/gadget/udc/fsl_udc_core.c struct fsl_ep *ep = container_of(_ep, struct fsl_ep, ep); ep 882 drivers/usb/gadget/udc/fsl_udc_core.c if (unlikely(!_ep || !ep->ep.desc)) { ep 886 drivers/usb/gadget/udc/fsl_udc_core.c if (usb_endpoint_xfer_isoc(ep->ep.desc)) { ep 887 drivers/usb/gadget/udc/fsl_udc_core.c if (req->req.length > ep->ep.maxpacket) ep 891 drivers/usb/gadget/udc/fsl_udc_core.c udc = ep->udc; ep 895 drivers/usb/gadget/udc/fsl_udc_core.c req->ep = ep; ep 897 drivers/usb/gadget/udc/fsl_udc_core.c ret = usb_gadget_map_request(&ep->udc->gadget, &req->req, ep_is_in(ep)); ep 908 drivers/usb/gadget/udc/fsl_udc_core.c fsl_queue_td(ep, req); ep 915 drivers/usb/gadget/udc/fsl_udc_core.c list_add_tail(&req->queue, &ep->queue); ep 924 drivers/usb/gadget/udc/fsl_udc_core.c struct fsl_ep *ep = container_of(_ep, struct fsl_ep, ep); ep 933 drivers/usb/gadget/udc/fsl_udc_core.c spin_lock_irqsave(&ep->udc->lock, flags); ep 934 drivers/usb/gadget/udc/fsl_udc_core.c stopped = ep->stopped; ep 937 drivers/usb/gadget/udc/fsl_udc_core.c ep->stopped = 1; ep 938 drivers/usb/gadget/udc/fsl_udc_core.c ep_num = ep_index(ep); ep 940 drivers/usb/gadget/udc/fsl_udc_core.c if (ep_is_in(ep)) ep 947 drivers/usb/gadget/udc/fsl_udc_core.c list_for_each_entry(req, &ep->queue, queue) { ep 957 drivers/usb/gadget/udc/fsl_udc_core.c if (ep->queue.next == &req->queue) { ep 962 drivers/usb/gadget/udc/fsl_udc_core.c if (req->queue.next != &ep->queue) { ep 969 drivers/usb/gadget/udc/fsl_udc_core.c fsl_prime_ep(ep, next_req->head); ep 979 drivers/usb/gadget/udc/fsl_udc_core.c done(ep, req, -ECONNRESET); ep 983 drivers/usb/gadget/udc/fsl_udc_core.c if (ep_is_in(ep)) ep 988 drivers/usb/gadget/udc/fsl_udc_core.c ep->stopped = stopped; ep 990 drivers/usb/gadget/udc/fsl_udc_core.c spin_unlock_irqrestore(&ep->udc->lock, flags); ep 1004 drivers/usb/gadget/udc/fsl_udc_core.c struct fsl_ep *ep = NULL; ep 1010 drivers/usb/gadget/udc/fsl_udc_core.c ep = container_of(_ep, struct fsl_ep, ep); ep 1011 drivers/usb/gadget/udc/fsl_udc_core.c udc = ep->udc; ep 1012 drivers/usb/gadget/udc/fsl_udc_core.c if (!_ep || !ep->ep.desc) { ep 1017 drivers/usb/gadget/udc/fsl_udc_core.c if (usb_endpoint_xfer_isoc(ep->ep.desc)) { ep 1024 drivers/usb/gadget/udc/fsl_udc_core.c if (value && ep_is_in(ep) && !list_empty(&ep->queue)) { ep 1030 drivers/usb/gadget/udc/fsl_udc_core.c ep_dir = ep_is_in(ep) ? USB_SEND : USB_RECV; ep 1031 drivers/usb/gadget/udc/fsl_udc_core.c ep_num = (unsigned char)(ep_index(ep)); ep 1032 drivers/usb/gadget/udc/fsl_udc_core.c spin_lock_irqsave(&ep->udc->lock, flags); ep 1034 drivers/usb/gadget/udc/fsl_udc_core.c spin_unlock_irqrestore(&ep->udc->lock, flags); ep 1036 drivers/usb/gadget/udc/fsl_udc_core.c if (ep_index(ep) == 0) { ep 1041 drivers/usb/gadget/udc/fsl_udc_core.c VDBG(" %s %s halt stat %d", ep->ep.name, ep 1049 drivers/usb/gadget/udc/fsl_udc_core.c struct fsl_ep *ep; ep 1055 drivers/usb/gadget/udc/fsl_udc_core.c ep = container_of(_ep, struct fsl_ep, ep); ep 1056 drivers/usb/gadget/udc/fsl_udc_core.c if (!_ep || (!ep->ep.desc && ep_index(ep) != 0)) ep 1059 drivers/usb/gadget/udc/fsl_udc_core.c udc = (struct fsl_udc *)ep->udc; ep 1064 drivers/usb/gadget/udc/fsl_udc_core.c qh = get_qh_by_ep(ep); ep 1066 drivers/usb/gadget/udc/fsl_udc_core.c bitmask = (ep_is_in(ep)) ? (1 << (ep_index(ep) + 16)) : ep 1067 drivers/usb/gadget/udc/fsl_udc_core.c (1 << (ep_index(ep))); ep 1079 drivers/usb/gadget/udc/fsl_udc_core.c struct fsl_ep *ep; ep 1088 drivers/usb/gadget/udc/fsl_udc_core.c ep = container_of(_ep, struct fsl_ep, ep); ep 1089 drivers/usb/gadget/udc/fsl_udc_core.c if (!ep->ep.desc) ep 1092 drivers/usb/gadget/udc/fsl_udc_core.c ep_num = ep_index(ep); ep 1093 drivers/usb/gadget/udc/fsl_udc_core.c ep_dir = ep_is_in(ep) ? USB_SEND : USB_RECV; ep 1252 drivers/usb/gadget/udc/fsl_udc_core.c static void fsl_noop_complete(struct usb_ep *ep, struct usb_request *req) { } ep 1272 drivers/usb/gadget/udc/fsl_udc_core.c struct fsl_ep *ep; ep 1280 drivers/usb/gadget/udc/fsl_udc_core.c ep = &udc->eps[0]; ep 1284 drivers/usb/gadget/udc/fsl_udc_core.c req->ep = ep; ep 1291 drivers/usb/gadget/udc/fsl_udc_core.c ret = usb_gadget_map_request(&ep->udc->gadget, &req->req, ep_is_in(ep)); ep 1296 drivers/usb/gadget/udc/fsl_udc_core.c fsl_queue_td(ep, req); ep 1300 drivers/usb/gadget/udc/fsl_udc_core.c list_add_tail(&req->queue, &ep->queue); ep 1307 drivers/usb/gadget/udc/fsl_udc_core.c struct fsl_ep *ep = get_ep_by_pipe(udc, pipe); ep 1309 drivers/usb/gadget/udc/fsl_udc_core.c if (ep->ep.name) ep 1310 drivers/usb/gadget/udc/fsl_udc_core.c nuke(ep, -ESHUTDOWN); ep 1335 drivers/usb/gadget/udc/fsl_udc_core.c struct fsl_ep *ep; ep 1338 drivers/usb/gadget/udc/fsl_udc_core.c ep = &udc->eps[0]; ep 1355 drivers/usb/gadget/udc/fsl_udc_core.c if (!target_ep->ep.desc) ep 1367 drivers/usb/gadget/udc/fsl_udc_core.c req->ep = ep; ep 1374 drivers/usb/gadget/udc/fsl_udc_core.c ret = usb_gadget_map_request(&ep->udc->gadget, &req->req, ep_is_in(ep)); ep 1380 drivers/usb/gadget/udc/fsl_udc_core.c fsl_queue_td(ep, req); ep 1384 drivers/usb/gadget/udc/fsl_udc_core.c list_add_tail(&req->queue, &ep->queue); ep 1433 drivers/usb/gadget/udc/fsl_udc_core.c struct fsl_ep *ep; ep 1437 drivers/usb/gadget/udc/fsl_udc_core.c ep = get_ep_by_pipe(udc, pipe); ep 1440 drivers/usb/gadget/udc/fsl_udc_core.c rc = fsl_ep_set_halt(&ep->ep, ep 1697 drivers/usb/gadget/udc/fsl_udc_core.c if (!curr_ep->ep.name) { ep 2004 drivers/usb/gadget/udc/fsl_udc_core.c ep.ep_list) ep 2027 drivers/usb/gadget/udc/fsl_udc_core.c struct fsl_ep *ep = NULL; ep 2170 drivers/usb/gadget/udc/fsl_udc_core.c ep = &udc->eps[0]; ep 2172 drivers/usb/gadget/udc/fsl_udc_core.c ep->ep.name, ep_maxpacket(ep), ep_index(ep)); ep 2174 drivers/usb/gadget/udc/fsl_udc_core.c if (list_empty(&ep->queue)) { ep 2177 drivers/usb/gadget/udc/fsl_udc_core.c list_for_each_entry(req, &ep->queue, queue) { ep 2185 drivers/usb/gadget/udc/fsl_udc_core.c list_for_each_entry(ep, &udc->gadget.ep_list, ep.ep_list) { ep 2186 drivers/usb/gadget/udc/fsl_udc_core.c if (ep->ep.desc) { ep 2190 drivers/usb/gadget/udc/fsl_udc_core.c ep->ep.name, ep_maxpacket(ep), ep 2191 drivers/usb/gadget/udc/fsl_udc_core.c ep_index(ep)); ep 2193 drivers/usb/gadget/udc/fsl_udc_core.c if (list_empty(&ep->queue)) { ep 2196 drivers/usb/gadget/udc/fsl_udc_core.c list_for_each_entry(req, &ep->queue, queue) { ep 2319 drivers/usb/gadget/udc/fsl_udc_core.c struct fsl_ep *ep = &udc->eps[index]; ep 2321 drivers/usb/gadget/udc/fsl_udc_core.c ep->udc = udc; ep 2322 drivers/usb/gadget/udc/fsl_udc_core.c strcpy(ep->name, name); ep 2323 drivers/usb/gadget/udc/fsl_udc_core.c ep->ep.name = ep->name; ep 2325 drivers/usb/gadget/udc/fsl_udc_core.c ep->ep.ops = &fsl_ep_ops; ep 2326 drivers/usb/gadget/udc/fsl_udc_core.c ep->stopped = 0; ep 2329 drivers/usb/gadget/udc/fsl_udc_core.c ep->ep.caps.type_control = true; ep 2331 drivers/usb/gadget/udc/fsl_udc_core.c ep->ep.caps.type_iso = true; ep 2332 drivers/usb/gadget/udc/fsl_udc_core.c ep->ep.caps.type_bulk = true; ep 2333 drivers/usb/gadget/udc/fsl_udc_core.c ep->ep.caps.type_int = true; ep 2337 drivers/usb/gadget/udc/fsl_udc_core.c ep->ep.caps.dir_in = true; ep 2339 drivers/usb/gadget/udc/fsl_udc_core.c ep->ep.caps.dir_out = true; ep 2344 drivers/usb/gadget/udc/fsl_udc_core.c usb_ep_set_maxpacket_limit(&ep->ep, (unsigned short) ~0); ep 2347 drivers/usb/gadget/udc/fsl_udc_core.c INIT_LIST_HEAD(&ep->queue); ep 2351 drivers/usb/gadget/udc/fsl_udc_core.c list_add_tail(&ep->ep.ep_list, &udc->gadget.ep_list); ep 2352 drivers/usb/gadget/udc/fsl_udc_core.c ep->gadget = &udc->gadget; ep 2353 drivers/usb/gadget/udc/fsl_udc_core.c ep->qh = &udc->ep_qh[index]; ep 2479 drivers/usb/gadget/udc/fsl_udc_core.c udc_controller->gadget.ep0 = &udc_controller->eps[0].ep; ep 2499 drivers/usb/gadget/udc/fsl_udc_core.c udc_controller->eps[0].ep.desc = &fsl_ep0_desc; ep 2500 drivers/usb/gadget/udc/fsl_udc_core.c usb_ep_set_maxpacket_limit(&udc_controller->eps[0].ep, ep 448 drivers/usb/gadget/udc/fsl_usb2_udc.h struct fsl_ep *ep; ep 459 drivers/usb/gadget/udc/fsl_usb2_udc.h struct usb_ep ep; ep 570 drivers/usb/gadget/udc/fsl_usb2_udc.h #define ep_index(EP) ((EP)->ep.desc->bEndpointAddress&0xF) ep 571 drivers/usb/gadget/udc/fsl_usb2_udc.h #define ep_maxpacket(EP) ((EP)->ep.maxpacket) ep 573 drivers/usb/gadget/udc/fsl_usb2_udc.h USB_DIR_IN) : ((EP)->ep.desc->bEndpointAddress \ ep 581 drivers/usb/gadget/udc/fsl_usb2_udc.h static inline struct ep_queue_head *get_qh_by_ep(struct fsl_ep *ep) ep 584 drivers/usb/gadget/udc/fsl_usb2_udc.h if (ep_index(ep) != 0) ep 585 drivers/usb/gadget/udc/fsl_usb2_udc.h return ep->qh; ep 587 drivers/usb/gadget/udc/fsl_usb2_udc.h return &ep->udc->ep_qh[(ep->udc->ep0_dir == ep 33 drivers/usb/gadget/udc/fusb300_udc.c static void done(struct fusb300_ep *ep, struct fusb300_request *req, ep 55 drivers/usb/gadget/udc/fusb300_udc.c static void fusb300_ep_setting(struct fusb300_ep *ep, ep 58 drivers/usb/gadget/udc/fusb300_udc.c ep->epnum = info.epnum; ep 59 drivers/usb/gadget/udc/fusb300_udc.c ep->type = info.type; ep 62 drivers/usb/gadget/udc/fusb300_udc.c static int fusb300_ep_release(struct fusb300_ep *ep) ep 64 drivers/usb/gadget/udc/fusb300_udc.c if (!ep->epnum) ep 66 drivers/usb/gadget/udc/fusb300_udc.c ep->epnum = 0; ep 67 drivers/usb/gadget/udc/fusb300_udc.c ep->stall = 0; ep 68 drivers/usb/gadget/udc/fusb300_udc.c ep->wedged = 0; ep 73 drivers/usb/gadget/udc/fusb300_udc.c u32 ep) ep 75 drivers/usb/gadget/udc/fusb300_udc.c u32 val = ioread32(fusb300->reg + FUSB300_OFFSET_EPSET1(ep)); ep 79 drivers/usb/gadget/udc/fusb300_udc.c iowrite32(val, fusb300->reg + FUSB300_OFFSET_EPSET1(ep)); ep 83 drivers/usb/gadget/udc/fusb300_udc.c u8 ep) ep 85 drivers/usb/gadget/udc/fusb300_udc.c u32 reg = ioread32(fusb300->reg + FUSB300_OFFSET_EPSET1(ep)); ep 90 drivers/usb/gadget/udc/fusb300_udc.c iowrite32(reg, fusb300->reg + FUSB300_OFFSET_EPSET1(ep)); ep 143 drivers/usb/gadget/udc/fusb300_udc.c u8 ep) ep 145 drivers/usb/gadget/udc/fusb300_udc.c u32 reg = ioread32(fusb300->reg + FUSB300_OFFSET_EPSET1(ep)); ep 148 drivers/usb/gadget/udc/fusb300_udc.c iowrite32(reg, fusb300->reg + FUSB300_OFFSET_EPSET1(ep)); ep 197 drivers/usb/gadget/udc/fusb300_udc.c static int config_ep(struct fusb300_ep *ep, ep 200 drivers/usb/gadget/udc/fusb300_udc.c struct fusb300 *fusb300 = ep->fusb300; ep 203 drivers/usb/gadget/udc/fusb300_udc.c ep->ep.desc = desc; ep 225 drivers/usb/gadget/udc/fusb300_udc.c fusb300_ep_setting(ep, info); ep 227 drivers/usb/gadget/udc/fusb300_udc.c fusb300->ep[info.epnum] = ep; ep 235 drivers/usb/gadget/udc/fusb300_udc.c struct fusb300_ep *ep; ep 237 drivers/usb/gadget/udc/fusb300_udc.c ep = container_of(_ep, struct fusb300_ep, ep); ep 239 drivers/usb/gadget/udc/fusb300_udc.c if (ep->fusb300->reenum) { ep 240 drivers/usb/gadget/udc/fusb300_udc.c ep->fusb300->fifo_entry_num = 0; ep 241 drivers/usb/gadget/udc/fusb300_udc.c ep->fusb300->addrofs = 0; ep 242 drivers/usb/gadget/udc/fusb300_udc.c ep->fusb300->reenum = 0; ep 245 drivers/usb/gadget/udc/fusb300_udc.c return config_ep(ep, desc); ep 250 drivers/usb/gadget/udc/fusb300_udc.c struct fusb300_ep *ep; ep 254 drivers/usb/gadget/udc/fusb300_udc.c ep = container_of(_ep, struct fusb300_ep, ep); ep 256 drivers/usb/gadget/udc/fusb300_udc.c BUG_ON(!ep); ep 258 drivers/usb/gadget/udc/fusb300_udc.c while (!list_empty(&ep->queue)) { ep 259 drivers/usb/gadget/udc/fusb300_udc.c req = list_entry(ep->queue.next, struct fusb300_request, queue); ep 260 drivers/usb/gadget/udc/fusb300_udc.c spin_lock_irqsave(&ep->fusb300->lock, flags); ep 261 drivers/usb/gadget/udc/fusb300_udc.c done(ep, req, -ECONNRESET); ep 262 drivers/usb/gadget/udc/fusb300_udc.c spin_unlock_irqrestore(&ep->fusb300->lock, flags); ep 265 drivers/usb/gadget/udc/fusb300_udc.c return fusb300_ep_release(ep); ep 289 drivers/usb/gadget/udc/fusb300_udc.c static int enable_fifo_int(struct fusb300_ep *ep) ep 291 drivers/usb/gadget/udc/fusb300_udc.c struct fusb300 *fusb300 = ep->fusb300; ep 293 drivers/usb/gadget/udc/fusb300_udc.c if (ep->epnum) { ep 295 drivers/usb/gadget/udc/fusb300_udc.c FUSB300_IGER0_EEPn_FIFO_INT(ep->epnum)); ep 304 drivers/usb/gadget/udc/fusb300_udc.c static int disable_fifo_int(struct fusb300_ep *ep) ep 306 drivers/usb/gadget/udc/fusb300_udc.c struct fusb300 *fusb300 = ep->fusb300; ep 308 drivers/usb/gadget/udc/fusb300_udc.c if (ep->epnum) { ep 310 drivers/usb/gadget/udc/fusb300_udc.c FUSB300_IGER0_EEPn_FIFO_INT(ep->epnum)); ep 330 drivers/usb/gadget/udc/fusb300_udc.c static void fusb300_wrcxf(struct fusb300_ep *ep, ep 336 drivers/usb/gadget/udc/fusb300_udc.c struct fusb300 *fusb300 = ep->fusb300; ep 382 drivers/usb/gadget/udc/fusb300_udc.c static void fusb300_set_epnstall(struct fusb300 *fusb300, u8 ep) ep 384 drivers/usb/gadget/udc/fusb300_udc.c fusb300_enable_bit(fusb300, FUSB300_OFFSET_EPSET0(ep), ep 388 drivers/usb/gadget/udc/fusb300_udc.c static void fusb300_clear_epnstall(struct fusb300 *fusb300, u8 ep) ep 390 drivers/usb/gadget/udc/fusb300_udc.c u32 reg = ioread32(fusb300->reg + FUSB300_OFFSET_EPSET0(ep)); ep 393 drivers/usb/gadget/udc/fusb300_udc.c printk(KERN_DEBUG "EP%d stall... Clear!!\n", ep); ep 395 drivers/usb/gadget/udc/fusb300_udc.c iowrite32(reg, fusb300->reg + FUSB300_OFFSET_EPSET0(ep)); ep 399 drivers/usb/gadget/udc/fusb300_udc.c static void ep0_queue(struct fusb300_ep *ep, struct fusb300_request *req) ep 401 drivers/usb/gadget/udc/fusb300_udc.c if (ep->fusb300->ep0_dir) { /* if IN */ ep 403 drivers/usb/gadget/udc/fusb300_udc.c fusb300_wrcxf(ep, req); ep 408 drivers/usb/gadget/udc/fusb300_udc.c (req->req.actual < ep->ep.maxpacket)) ep 409 drivers/usb/gadget/udc/fusb300_udc.c done(ep, req, 0); ep 412 drivers/usb/gadget/udc/fusb300_udc.c done(ep, req, 0); ep 414 drivers/usb/gadget/udc/fusb300_udc.c fusb300_enable_bit(ep->fusb300, FUSB300_OFFSET_IGER1, ep 422 drivers/usb/gadget/udc/fusb300_udc.c struct fusb300_ep *ep; ep 427 drivers/usb/gadget/udc/fusb300_udc.c ep = container_of(_ep, struct fusb300_ep, ep); ep 430 drivers/usb/gadget/udc/fusb300_udc.c if (ep->fusb300->gadget.speed == USB_SPEED_UNKNOWN) ep 433 drivers/usb/gadget/udc/fusb300_udc.c spin_lock_irqsave(&ep->fusb300->lock, flags); ep 435 drivers/usb/gadget/udc/fusb300_udc.c if (list_empty(&ep->queue)) ep 438 drivers/usb/gadget/udc/fusb300_udc.c list_add_tail(&req->queue, &ep->queue); ep 443 drivers/usb/gadget/udc/fusb300_udc.c if (ep->ep.desc == NULL) /* ep0 */ ep 444 drivers/usb/gadget/udc/fusb300_udc.c ep0_queue(ep, req); ep 445 drivers/usb/gadget/udc/fusb300_udc.c else if (request && !ep->stall) ep 446 drivers/usb/gadget/udc/fusb300_udc.c enable_fifo_int(ep); ep 448 drivers/usb/gadget/udc/fusb300_udc.c spin_unlock_irqrestore(&ep->fusb300->lock, flags); ep 455 drivers/usb/gadget/udc/fusb300_udc.c struct fusb300_ep *ep; ep 459 drivers/usb/gadget/udc/fusb300_udc.c ep = container_of(_ep, struct fusb300_ep, ep); ep 462 drivers/usb/gadget/udc/fusb300_udc.c spin_lock_irqsave(&ep->fusb300->lock, flags); ep 463 drivers/usb/gadget/udc/fusb300_udc.c if (!list_empty(&ep->queue)) ep 464 drivers/usb/gadget/udc/fusb300_udc.c done(ep, req, -ECONNRESET); ep 465 drivers/usb/gadget/udc/fusb300_udc.c spin_unlock_irqrestore(&ep->fusb300->lock, flags); ep 472 drivers/usb/gadget/udc/fusb300_udc.c struct fusb300_ep *ep; ep 477 drivers/usb/gadget/udc/fusb300_udc.c ep = container_of(_ep, struct fusb300_ep, ep); ep 479 drivers/usb/gadget/udc/fusb300_udc.c fusb300 = ep->fusb300; ep 481 drivers/usb/gadget/udc/fusb300_udc.c spin_lock_irqsave(&ep->fusb300->lock, flags); ep 483 drivers/usb/gadget/udc/fusb300_udc.c if (!list_empty(&ep->queue)) { ep 489 drivers/usb/gadget/udc/fusb300_udc.c fusb300_set_epnstall(fusb300, ep->epnum); ep 490 drivers/usb/gadget/udc/fusb300_udc.c ep->stall = 1; ep 492 drivers/usb/gadget/udc/fusb300_udc.c ep->wedged = 1; ep 494 drivers/usb/gadget/udc/fusb300_udc.c fusb300_clear_epnstall(fusb300, ep->epnum); ep 495 drivers/usb/gadget/udc/fusb300_udc.c ep->stall = 0; ep 496 drivers/usb/gadget/udc/fusb300_udc.c ep->wedged = 0; ep 500 drivers/usb/gadget/udc/fusb300_udc.c spin_unlock_irqrestore(&ep->fusb300->lock, flags); ep 600 drivers/usb/gadget/udc/fusb300_udc.c static void fusb300_rdfifo(struct fusb300_ep *ep, ep 607 drivers/usb/gadget/udc/fusb300_udc.c struct fusb300 *fusb300 = ep->fusb300; ep 617 drivers/usb/gadget/udc/fusb300_udc.c FUSB300_OFFSET_EPPORT(ep->epnum)); ep 628 drivers/usb/gadget/udc/fusb300_udc.c FUSB300_OFFSET_EPPORT(ep->epnum)); ep 633 drivers/usb/gadget/udc/fusb300_udc.c FUSB300_OFFSET_EPPORT(ep->epnum)); ep 639 drivers/usb/gadget/udc/fusb300_udc.c FUSB300_OFFSET_EPPORT(ep->epnum)); ep 657 drivers/usb/gadget/udc/fusb300_udc.c static u8 fusb300_get_epnstall(struct fusb300 *fusb300, u8 ep) ep 660 drivers/usb/gadget/udc/fusb300_udc.c u32 reg = ioread32(fusb300->reg + FUSB300_OFFSET_EPSET0(ep)); ep 687 drivers/usb/gadget/udc/fusb300_udc.c u8 ep; ep 699 drivers/usb/gadget/udc/fusb300_udc.c ep = w_index & USB_ENDPOINT_NUMBER_MASK; ep 700 drivers/usb/gadget/udc/fusb300_udc.c if (ep) { ep 701 drivers/usb/gadget/udc/fusb300_udc.c if (fusb300_get_epnstall(fusb300, ep)) ep 725 drivers/usb/gadget/udc/fusb300_udc.c u8 ep; ep 737 drivers/usb/gadget/udc/fusb300_udc.c ep = w_index & USB_ENDPOINT_NUMBER_MASK; ep 738 drivers/usb/gadget/udc/fusb300_udc.c if (ep) ep 739 drivers/usb/gadget/udc/fusb300_udc.c fusb300_set_epnstall(fusb300, ep); ep 751 drivers/usb/gadget/udc/fusb300_udc.c static void fusb300_clear_seqnum(struct fusb300 *fusb300, u8 ep) ep 753 drivers/usb/gadget/udc/fusb300_udc.c fusb300_enable_bit(fusb300, FUSB300_OFFSET_EPSET0(ep), ep 759 drivers/usb/gadget/udc/fusb300_udc.c struct fusb300_ep *ep = ep 760 drivers/usb/gadget/udc/fusb300_udc.c fusb300->ep[ctrl->wIndex & USB_ENDPOINT_NUMBER_MASK]; ep 771 drivers/usb/gadget/udc/fusb300_udc.c if (ep->wedged) { ep 775 drivers/usb/gadget/udc/fusb300_udc.c if (ep->stall) { ep 776 drivers/usb/gadget/udc/fusb300_udc.c ep->stall = 0; ep 777 drivers/usb/gadget/udc/fusb300_udc.c fusb300_clear_seqnum(fusb300, ep->epnum); ep 778 drivers/usb/gadget/udc/fusb300_udc.c fusb300_clear_epnstall(fusb300, ep->epnum); ep 779 drivers/usb/gadget/udc/fusb300_udc.c if (!list_empty(&ep->queue)) ep 780 drivers/usb/gadget/udc/fusb300_udc.c enable_fifo_int(ep); ep 864 drivers/usb/gadget/udc/fusb300_udc.c static void done(struct fusb300_ep *ep, struct fusb300_request *req, ep 870 drivers/usb/gadget/udc/fusb300_udc.c if (ep->fusb300->gadget.speed == USB_SPEED_UNKNOWN) ep 875 drivers/usb/gadget/udc/fusb300_udc.c spin_unlock(&ep->fusb300->lock); ep 876 drivers/usb/gadget/udc/fusb300_udc.c usb_gadget_giveback_request(&ep->ep, &req->req); ep 877 drivers/usb/gadget/udc/fusb300_udc.c spin_lock(&ep->fusb300->lock); ep 879 drivers/usb/gadget/udc/fusb300_udc.c if (ep->epnum) { ep 880 drivers/usb/gadget/udc/fusb300_udc.c disable_fifo_int(ep); ep 881 drivers/usb/gadget/udc/fusb300_udc.c if (!list_empty(&ep->queue)) ep 882 drivers/usb/gadget/udc/fusb300_udc.c enable_fifo_int(ep); ep 884 drivers/usb/gadget/udc/fusb300_udc.c fusb300_set_cxdone(ep->fusb300); ep 887 drivers/usb/gadget/udc/fusb300_udc.c static void fusb300_fill_idma_prdtbl(struct fusb300_ep *ep, dma_addr_t d, ep 895 drivers/usb/gadget/udc/fusb300_udc.c reg = ioread32(ep->fusb300->reg + ep 896 drivers/usb/gadget/udc/fusb300_udc.c FUSB300_OFFSET_EPPRD_W0(ep->epnum)); ep 900 drivers/usb/gadget/udc/fusb300_udc.c iowrite32(d, ep->fusb300->reg + FUSB300_OFFSET_EPPRD_W1(ep->epnum)); ep 904 drivers/usb/gadget/udc/fusb300_udc.c iowrite32(value, ep->fusb300->reg + FUSB300_OFFSET_EPPRD_W0(ep->epnum)); ep 906 drivers/usb/gadget/udc/fusb300_udc.c iowrite32(0x0, ep->fusb300->reg + FUSB300_OFFSET_EPPRD_W2(ep->epnum)); ep 908 drivers/usb/gadget/udc/fusb300_udc.c fusb300_enable_bit(ep->fusb300, FUSB300_OFFSET_EPPRDRDY, ep 909 drivers/usb/gadget/udc/fusb300_udc.c FUSB300_EPPRDR_EP_PRD_RDY(ep->epnum)); ep 912 drivers/usb/gadget/udc/fusb300_udc.c static void fusb300_wait_idma_finished(struct fusb300_ep *ep) ep 917 drivers/usb/gadget/udc/fusb300_udc.c reg = ioread32(ep->fusb300->reg + FUSB300_OFFSET_IGR1); ep 924 drivers/usb/gadget/udc/fusb300_udc.c reg = ioread32(ep->fusb300->reg + FUSB300_OFFSET_IGR0); ep 925 drivers/usb/gadget/udc/fusb300_udc.c reg &= FUSB300_IGR0_EPn_PRD_INT(ep->epnum); ep 928 drivers/usb/gadget/udc/fusb300_udc.c fusb300_clear_int(ep->fusb300, FUSB300_OFFSET_IGR0, ep 929 drivers/usb/gadget/udc/fusb300_udc.c FUSB300_IGR0_EPn_PRD_INT(ep->epnum)); ep 933 drivers/usb/gadget/udc/fusb300_udc.c reg = ioread32(ep->fusb300->reg + FUSB300_OFFSET_IGER0); ep 934 drivers/usb/gadget/udc/fusb300_udc.c reg &= ~FUSB300_IGER0_EEPn_PRD_INT(ep->epnum); ep 935 drivers/usb/gadget/udc/fusb300_udc.c iowrite32(reg, ep->fusb300->reg + FUSB300_OFFSET_IGER0); ep 938 drivers/usb/gadget/udc/fusb300_udc.c static void fusb300_set_idma(struct fusb300_ep *ep, ep 943 drivers/usb/gadget/udc/fusb300_udc.c ret = usb_gadget_map_request(&ep->fusb300->gadget, ep 948 drivers/usb/gadget/udc/fusb300_udc.c fusb300_enable_bit(ep->fusb300, FUSB300_OFFSET_IGER0, ep 949 drivers/usb/gadget/udc/fusb300_udc.c FUSB300_IGER0_EEPn_PRD_INT(ep->epnum)); ep 951 drivers/usb/gadget/udc/fusb300_udc.c fusb300_fill_idma_prdtbl(ep, req->req.dma, req->req.length); ep 953 drivers/usb/gadget/udc/fusb300_udc.c fusb300_wait_idma_finished(ep); ep 955 drivers/usb/gadget/udc/fusb300_udc.c usb_gadget_unmap_request(&ep->fusb300->gadget, ep 959 drivers/usb/gadget/udc/fusb300_udc.c static void in_ep_fifo_handler(struct fusb300_ep *ep) ep 961 drivers/usb/gadget/udc/fusb300_udc.c struct fusb300_request *req = list_entry(ep->queue.next, ep 965 drivers/usb/gadget/udc/fusb300_udc.c fusb300_set_idma(ep, req); ep 966 drivers/usb/gadget/udc/fusb300_udc.c done(ep, req, 0); ep 969 drivers/usb/gadget/udc/fusb300_udc.c static void out_ep_fifo_handler(struct fusb300_ep *ep) ep 971 drivers/usb/gadget/udc/fusb300_udc.c struct fusb300 *fusb300 = ep->fusb300; ep 972 drivers/usb/gadget/udc/fusb300_udc.c struct fusb300_request *req = list_entry(ep->queue.next, ep 974 drivers/usb/gadget/udc/fusb300_udc.c u32 reg = ioread32(fusb300->reg + FUSB300_OFFSET_EPFFR(ep->epnum)); ep 977 drivers/usb/gadget/udc/fusb300_udc.c fusb300_rdfifo(ep, req, length); ep 980 drivers/usb/gadget/udc/fusb300_udc.c if ((req->req.length == req->req.actual) || (length < ep->ep.maxpacket)) ep 981 drivers/usb/gadget/udc/fusb300_udc.c done(ep, req, 0); ep 1008 drivers/usb/gadget/udc/fusb300_udc.c struct fusb300_ep *ep = fusb300->ep[0]; ep 1011 drivers/usb/gadget/udc/fusb300_udc.c if (!list_empty(&ep->queue)) { ep 1014 drivers/usb/gadget/udc/fusb300_udc.c req = list_first_entry(&ep->queue, ep 1017 drivers/usb/gadget/udc/fusb300_udc.c fusb300_rdcxf(ep->fusb300, req->req.buf, ep 1019 drivers/usb/gadget/udc/fusb300_udc.c done(ep, req, 0); ep 1030 drivers/usb/gadget/udc/fusb300_udc.c struct fusb300_ep *ep = fusb300->ep[0]; ep 1032 drivers/usb/gadget/udc/fusb300_udc.c if ((!list_empty(&ep->queue)) && (fusb300->ep0_dir)) { ep 1033 drivers/usb/gadget/udc/fusb300_udc.c req = list_entry(ep->queue.next, ep 1036 drivers/usb/gadget/udc/fusb300_udc.c fusb300_wrcxf(ep, req); ep 1037 drivers/usb/gadget/udc/fusb300_udc.c if ((req->req.length - req->req.actual) < ep->ep.maxpacket) ep 1038 drivers/usb/gadget/udc/fusb300_udc.c done(ep, req, 0); ep 1244 drivers/usb/gadget/udc/fusb300_udc.c in_ep_fifo_handler(fusb300->ep[i]); ep 1246 drivers/usb/gadget/udc/fusb300_udc.c out_ep_fifo_handler(fusb300->ep[i]); ep 1351 drivers/usb/gadget/udc/fusb300_udc.c fusb300_free_request(&fusb300->ep[0]->ep, fusb300->ep0_req); ep 1353 drivers/usb/gadget/udc/fusb300_udc.c kfree(fusb300->ep[i]); ep 1411 drivers/usb/gadget/udc/fusb300_udc.c fusb300->ep[i] = _ep[i]; ep 1441 drivers/usb/gadget/udc/fusb300_udc.c struct fusb300_ep *ep = fusb300->ep[i]; ep 1444 drivers/usb/gadget/udc/fusb300_udc.c INIT_LIST_HEAD(&fusb300->ep[i]->ep.ep_list); ep 1445 drivers/usb/gadget/udc/fusb300_udc.c list_add_tail(&fusb300->ep[i]->ep.ep_list, ep 1448 drivers/usb/gadget/udc/fusb300_udc.c ep->fusb300 = fusb300; ep 1449 drivers/usb/gadget/udc/fusb300_udc.c INIT_LIST_HEAD(&ep->queue); ep 1450 drivers/usb/gadget/udc/fusb300_udc.c ep->ep.name = fusb300_ep_name[i]; ep 1451 drivers/usb/gadget/udc/fusb300_udc.c ep->ep.ops = &fusb300_ep_ops; ep 1452 drivers/usb/gadget/udc/fusb300_udc.c usb_ep_set_maxpacket_limit(&ep->ep, HS_BULK_MAX_PACKET_SIZE); ep 1455 drivers/usb/gadget/udc/fusb300_udc.c ep->ep.caps.type_control = true; ep 1457 drivers/usb/gadget/udc/fusb300_udc.c ep->ep.caps.type_iso = true; ep 1458 drivers/usb/gadget/udc/fusb300_udc.c ep->ep.caps.type_bulk = true; ep 1459 drivers/usb/gadget/udc/fusb300_udc.c ep->ep.caps.type_int = true; ep 1462 drivers/usb/gadget/udc/fusb300_udc.c ep->ep.caps.dir_in = true; ep 1463 drivers/usb/gadget/udc/fusb300_udc.c ep->ep.caps.dir_out = true; ep 1465 drivers/usb/gadget/udc/fusb300_udc.c usb_ep_set_maxpacket_limit(&fusb300->ep[0]->ep, HS_CTL_MAX_PACKET_SIZE); ep 1466 drivers/usb/gadget/udc/fusb300_udc.c fusb300->ep[0]->epnum = 0; ep 1467 drivers/usb/gadget/udc/fusb300_udc.c fusb300->gadget.ep0 = &fusb300->ep[0]->ep; ep 1470 drivers/usb/gadget/udc/fusb300_udc.c fusb300->ep0_req = fusb300_alloc_request(&fusb300->ep[0]->ep, ep 1487 drivers/usb/gadget/udc/fusb300_udc.c fusb300_free_request(&fusb300->ep[0]->ep, fusb300->ep0_req); ep 1495 drivers/usb/gadget/udc/fusb300_udc.c fusb300_free_request(&fusb300->ep[0]->ep, ep 1498 drivers/usb/gadget/udc/fusb300_udc.c kfree(fusb300->ep[i]); ep 640 drivers/usb/gadget/udc/fusb300_udc.h struct usb_ep ep; ep 661 drivers/usb/gadget/udc/fusb300_udc.h struct fusb300_ep *ep[FUSB300_MAX_NUM_EP]; ep 94 drivers/usb/gadget/udc/goku_udc.c struct goku_ep *ep; ep 99 drivers/usb/gadget/udc/goku_udc.c ep = container_of(_ep, struct goku_ep, ep); ep 103 drivers/usb/gadget/udc/goku_udc.c dev = ep->dev; ep 104 drivers/usb/gadget/udc/goku_udc.c if (ep == &dev->ep[0]) ep 108 drivers/usb/gadget/udc/goku_udc.c if (ep->num != usb_endpoint_num(desc)) ep 119 drivers/usb/gadget/udc/goku_udc.c if ((readl(ep->reg_status) & EPxSTATUS_EP_MASK) ep 144 drivers/usb/gadget/udc/goku_udc.c ep->is_in = usb_endpoint_dir_in(desc); ep 145 drivers/usb/gadget/udc/goku_udc.c if (ep->is_in) { ep 147 drivers/usb/gadget/udc/goku_udc.c ep->dma = (use_dma != 0) && (ep->num == UDC_MSTRD_ENDPOINT); ep 149 drivers/usb/gadget/udc/goku_udc.c ep->dma = (use_dma == 2) && (ep->num == UDC_MSTWR_ENDPOINT); ep 150 drivers/usb/gadget/udc/goku_udc.c if (ep->dma) ep 152 drivers/usb/gadget/udc/goku_udc.c ep->ep.name); ep 155 drivers/usb/gadget/udc/goku_udc.c spin_lock_irqsave(&ep->dev->lock, flags); ep 158 drivers/usb/gadget/udc/goku_udc.c if (ep->num < 3) { ep 159 drivers/usb/gadget/udc/goku_udc.c struct goku_udc_regs __iomem *regs = ep->dev->regs; ep 163 drivers/usb/gadget/udc/goku_udc.c tmp = ((ep->dma || !ep->is_in) ep 166 drivers/usb/gadget/udc/goku_udc.c ) << ep->num; ep 170 drivers/usb/gadget/udc/goku_udc.c tmp = (ep->dma ? 0x10/*dma*/ : 0x11/*pio*/) << ep->num; ep 174 drivers/usb/gadget/udc/goku_udc.c writel(mode, ep->reg_mode); ep 175 drivers/usb/gadget/udc/goku_udc.c command(ep->dev->regs, COMMAND_RESET, ep->num); ep 176 drivers/usb/gadget/udc/goku_udc.c ep->ep.maxpacket = max; ep 177 drivers/usb/gadget/udc/goku_udc.c ep->stopped = 0; ep 178 drivers/usb/gadget/udc/goku_udc.c ep->ep.desc = desc; ep 179 drivers/usb/gadget/udc/goku_udc.c spin_unlock_irqrestore(&ep->dev->lock, flags); ep 181 drivers/usb/gadget/udc/goku_udc.c DBG(dev, "enable %s %s %s maxpacket %u\n", ep->ep.name, ep 182 drivers/usb/gadget/udc/goku_udc.c ep->is_in ? "IN" : "OUT", ep 183 drivers/usb/gadget/udc/goku_udc.c ep->dma ? "dma" : "pio", ep 189 drivers/usb/gadget/udc/goku_udc.c static void ep_reset(struct goku_udc_regs __iomem *regs, struct goku_ep *ep) ep 191 drivers/usb/gadget/udc/goku_udc.c struct goku_udc *dev = ep->dev; ep 194 drivers/usb/gadget/udc/goku_udc.c command(regs, COMMAND_INVALID, ep->num); ep 195 drivers/usb/gadget/udc/goku_udc.c if (ep->num) { ep 196 drivers/usb/gadget/udc/goku_udc.c if (ep->num == UDC_MSTWR_ENDPOINT) ep 199 drivers/usb/gadget/udc/goku_udc.c else if (ep->num == UDC_MSTRD_ENDPOINT) ep 201 drivers/usb/gadget/udc/goku_udc.c dev->int_enable &= ~INT_EPxDATASET (ep->num); ep 206 drivers/usb/gadget/udc/goku_udc.c if (ep->num < 3) { ep 207 drivers/usb/gadget/udc/goku_udc.c struct goku_udc_regs __iomem *r = ep->dev->regs; ep 211 drivers/usb/gadget/udc/goku_udc.c tmp &= ~(0x11 << ep->num); ep 215 drivers/usb/gadget/udc/goku_udc.c tmp &= ~(0x11 << ep->num); ep 219 drivers/usb/gadget/udc/goku_udc.c if (ep->dma) { ep 223 drivers/usb/gadget/udc/goku_udc.c if (ep->num == UDC_MSTWR_ENDPOINT) { ep 234 drivers/usb/gadget/udc/goku_udc.c usb_ep_set_maxpacket_limit(&ep->ep, MAX_FIFO_SIZE); ep 235 drivers/usb/gadget/udc/goku_udc.c ep->ep.desc = NULL; ep 236 drivers/usb/gadget/udc/goku_udc.c ep->stopped = 1; ep 237 drivers/usb/gadget/udc/goku_udc.c ep->irqs = 0; ep 238 drivers/usb/gadget/udc/goku_udc.c ep->dma = 0; ep 243 drivers/usb/gadget/udc/goku_udc.c struct goku_ep *ep; ep 247 drivers/usb/gadget/udc/goku_udc.c ep = container_of(_ep, struct goku_ep, ep); ep 248 drivers/usb/gadget/udc/goku_udc.c if (!_ep || !ep->ep.desc) ep 250 drivers/usb/gadget/udc/goku_udc.c dev = ep->dev; ep 257 drivers/usb/gadget/udc/goku_udc.c nuke(ep, -ESHUTDOWN); ep 258 drivers/usb/gadget/udc/goku_udc.c ep_reset(dev->regs, ep); ep 297 drivers/usb/gadget/udc/goku_udc.c done(struct goku_ep *ep, struct goku_request *req, int status) ep 300 drivers/usb/gadget/udc/goku_udc.c unsigned stopped = ep->stopped; ep 309 drivers/usb/gadget/udc/goku_udc.c dev = ep->dev; ep 311 drivers/usb/gadget/udc/goku_udc.c if (ep->dma) ep 312 drivers/usb/gadget/udc/goku_udc.c usb_gadget_unmap_request(&dev->gadget, &req->req, ep->is_in); ep 318 drivers/usb/gadget/udc/goku_udc.c ep->ep.name, &req->req, status, ep 322 drivers/usb/gadget/udc/goku_udc.c ep->stopped = 1; ep 324 drivers/usb/gadget/udc/goku_udc.c usb_gadget_giveback_request(&ep->ep, &req->req); ep 326 drivers/usb/gadget/udc/goku_udc.c ep->stopped = stopped; ep 346 drivers/usb/gadget/udc/goku_udc.c static int write_fifo(struct goku_ep *ep, struct goku_request *req) ep 348 drivers/usb/gadget/udc/goku_udc.c struct goku_udc *dev = ep->dev; ep 358 drivers/usb/gadget/udc/goku_udc.c dev = ep->dev; ep 359 drivers/usb/gadget/udc/goku_udc.c if (unlikely(ep->num == 0 && dev->ep0state != EP0_IN)) ep 363 drivers/usb/gadget/udc/goku_udc.c if (unlikely((tmp & DATASET_A(ep->num)) != 0)) ep 367 drivers/usb/gadget/udc/goku_udc.c if (ep->num != 0) ep 368 drivers/usb/gadget/udc/goku_udc.c writel(~INT_EPxDATASET(ep->num), &dev->regs->int_status); ep 370 drivers/usb/gadget/udc/goku_udc.c count = write_packet(ep->reg_fifo, buf, req, ep->ep.maxpacket); ep 373 drivers/usb/gadget/udc/goku_udc.c if (unlikely(count != ep->ep.maxpacket)) { ep 374 drivers/usb/gadget/udc/goku_udc.c writel(~(1<<ep->num), &dev->regs->EOP); ep 375 drivers/usb/gadget/udc/goku_udc.c if (ep->num == 0) { ep 376 drivers/usb/gadget/udc/goku_udc.c dev->ep[0].stopped = 1; ep 390 drivers/usb/gadget/udc/goku_udc.c ep->ep.name, count, is_last ? "/last" : "", ep 398 drivers/usb/gadget/udc/goku_udc.c done(ep, req, 0); ep 405 drivers/usb/gadget/udc/goku_udc.c static int read_fifo(struct goku_ep *ep, struct goku_request *req) ep 412 drivers/usb/gadget/udc/goku_udc.c regs = ep->dev->regs; ep 417 drivers/usb/gadget/udc/goku_udc.c if (unlikely(ep->num == 0 && ep->dev->ep0state != EP0_OUT)) ep 420 drivers/usb/gadget/udc/goku_udc.c dbuff = (ep->num == 1 || ep->num == 2); ep 423 drivers/usb/gadget/udc/goku_udc.c if (ep->num != 0) ep 424 drivers/usb/gadget/udc/goku_udc.c writel(~INT_EPxDATASET(ep->num), ®s->int_status); ep 426 drivers/usb/gadget/udc/goku_udc.c set = readl(®s->DataSet) & DATASET_AB(ep->num); ep 427 drivers/usb/gadget/udc/goku_udc.c size = readl(®s->EPxSizeLA[ep->num]); ep 431 drivers/usb/gadget/udc/goku_udc.c if (likely(ep->num != 0 || bufferspace != 0)) { ep 436 drivers/usb/gadget/udc/goku_udc.c size = readl(®s->EPxSizeLB[ep->num]); ep 447 drivers/usb/gadget/udc/goku_udc.c is_short = (size < ep->ep.maxpacket); ep 449 drivers/usb/gadget/udc/goku_udc.c VDBG(ep->dev, "read %s %u bytes%s OUT req %p %u/%u\n", ep 450 drivers/usb/gadget/udc/goku_udc.c ep->ep.name, size, is_short ? "/S" : "", ep 454 drivers/usb/gadget/udc/goku_udc.c u8 byte = (u8) readl(ep->reg_fifo); ep 462 drivers/usb/gadget/udc/goku_udc.c DBG(ep->dev, "%s overflow %u\n", ep 463 drivers/usb/gadget/udc/goku_udc.c ep->ep.name, size); ep 473 drivers/usb/gadget/udc/goku_udc.c if (unlikely(ep->num == 0)) { ep 475 drivers/usb/gadget/udc/goku_udc.c if (ep->dev->req_config) ep 476 drivers/usb/gadget/udc/goku_udc.c writel(ep->dev->configured ep 482 drivers/usb/gadget/udc/goku_udc.c ep->stopped = 1; ep 483 drivers/usb/gadget/udc/goku_udc.c ep->dev->ep0state = EP0_STATUS; ep 485 drivers/usb/gadget/udc/goku_udc.c done(ep, req, 0); ep 488 drivers/usb/gadget/udc/goku_udc.c if (dbuff && !list_empty(&ep->queue)) { ep 489 drivers/usb/gadget/udc/goku_udc.c req = list_entry(ep->queue.next, ep 518 drivers/usb/gadget/udc/goku_udc.c pio_advance(struct goku_ep *ep) ep 522 drivers/usb/gadget/udc/goku_udc.c if (unlikely(list_empty (&ep->queue))) ep 524 drivers/usb/gadget/udc/goku_udc.c req = list_entry(ep->queue.next, struct goku_request, queue); ep 525 drivers/usb/gadget/udc/goku_udc.c (ep->is_in ? write_fifo : read_fifo)(ep, req); ep 532 drivers/usb/gadget/udc/goku_udc.c static int start_dma(struct goku_ep *ep, struct goku_request *req) ep 534 drivers/usb/gadget/udc/goku_udc.c struct goku_udc_regs __iomem *regs = ep->dev->regs; ep 542 drivers/usb/gadget/udc/goku_udc.c if (likely(ep->is_in)) { ep 544 drivers/usb/gadget/udc/goku_udc.c DBG (ep->dev, "start, IN active dma %03x!!\n", ep 554 drivers/usb/gadget/udc/goku_udc.c else if ((req->req.length % ep->ep.maxpacket) != 0 ep 560 drivers/usb/gadget/udc/goku_udc.c ep->dev->int_enable |= INT_MSTRDEND; ep 569 drivers/usb/gadget/udc/goku_udc.c DBG (ep->dev, "start, OUT active dma %03x!!\n", ep 579 drivers/usb/gadget/udc/goku_udc.c ep->dev->int_enable |= INT_MSTWREND|INT_MSTWRTMOUT; ep 583 drivers/usb/gadget/udc/goku_udc.c writel(ep->dev->int_enable, ®s->int_enable); ep 587 drivers/usb/gadget/udc/goku_udc.c static void dma_advance(struct goku_udc *dev, struct goku_ep *ep) ep 590 drivers/usb/gadget/udc/goku_udc.c struct goku_udc_regs __iomem *regs = ep->dev->regs; ep 595 drivers/usb/gadget/udc/goku_udc.c if (unlikely(list_empty(&ep->queue))) { ep 597 drivers/usb/gadget/udc/goku_udc.c if (ep->is_in) ep 604 drivers/usb/gadget/udc/goku_udc.c req = list_entry(ep->queue.next, struct goku_request, queue); ep 607 drivers/usb/gadget/udc/goku_udc.c if (likely(ep->is_in)) { ep 625 drivers/usb/gadget/udc/goku_udc.c ep->ep.name, ep->is_in ? "IN" : "OUT", ep 628 drivers/usb/gadget/udc/goku_udc.c done(ep, req, 0); ep 629 drivers/usb/gadget/udc/goku_udc.c if (list_empty(&ep->queue)) ep 631 drivers/usb/gadget/udc/goku_udc.c req = list_entry(ep->queue.next, struct goku_request, queue); ep 632 drivers/usb/gadget/udc/goku_udc.c (void) start_dma(ep, req); ep 635 drivers/usb/gadget/udc/goku_udc.c static void abort_dma(struct goku_ep *ep, int status) ep 637 drivers/usb/gadget/udc/goku_udc.c struct goku_udc_regs __iomem *regs = ep->dev->regs; ep 648 drivers/usb/gadget/udc/goku_udc.c command(regs, COMMAND_FIFO_DISABLE, ep->num); ep 649 drivers/usb/gadget/udc/goku_udc.c req = list_entry(ep->queue.next, struct goku_request, queue); ep 657 drivers/usb/gadget/udc/goku_udc.c if (ep->is_in) { ep 670 drivers/usb/gadget/udc/goku_udc.c DBG(ep->dev, "IN dma active after reset!\n"); ep 685 drivers/usb/gadget/udc/goku_udc.c DBG(ep->dev, "OUT dma active after reset!\n"); ep 690 drivers/usb/gadget/udc/goku_udc.c VDBG(ep->dev, "%s %s %s %d/%d\n", __func__, ep->ep.name, ep 691 drivers/usb/gadget/udc/goku_udc.c ep->is_in ? "IN" : "OUT", ep 694 drivers/usb/gadget/udc/goku_udc.c command(regs, COMMAND_FIFO_ENABLE, ep->num); ep 700 drivers/usb/gadget/udc/goku_udc.c command(regs, COMMAND_FIFO_ENABLE, ep->num); ep 711 drivers/usb/gadget/udc/goku_udc.c struct goku_ep *ep; ep 721 drivers/usb/gadget/udc/goku_udc.c ep = container_of(_ep, struct goku_ep, ep); ep 722 drivers/usb/gadget/udc/goku_udc.c if (unlikely(!_ep || (!ep->ep.desc && ep->num != 0))) ep 724 drivers/usb/gadget/udc/goku_udc.c dev = ep->dev; ep 733 drivers/usb/gadget/udc/goku_udc.c if (ep->dma) { ep 735 drivers/usb/gadget/udc/goku_udc.c ep->is_in); ep 753 drivers/usb/gadget/udc/goku_udc.c if (unlikely(ep->num == 0 && ep->is_in)) ep 758 drivers/usb/gadget/udc/goku_udc.c if (list_empty(&ep->queue) && likely(!ep->stopped)) { ep 762 drivers/usb/gadget/udc/goku_udc.c if (ep->dma) ep 763 drivers/usb/gadget/udc/goku_udc.c status = start_dma(ep, req); ep 765 drivers/usb/gadget/udc/goku_udc.c status = (ep->is_in ? write_fifo : read_fifo)(ep, req); ep 776 drivers/usb/gadget/udc/goku_udc.c list_add_tail(&req->queue, &ep->queue); ep 778 drivers/usb/gadget/udc/goku_udc.c if (likely(!list_empty(&ep->queue)) ep 779 drivers/usb/gadget/udc/goku_udc.c && likely(ep->num != 0) ep 780 drivers/usb/gadget/udc/goku_udc.c && !ep->dma ep 781 drivers/usb/gadget/udc/goku_udc.c && !(dev->int_enable & INT_EPxDATASET (ep->num))) ep 782 drivers/usb/gadget/udc/goku_udc.c pio_irq_enable(dev, dev->regs, ep->num); ep 791 drivers/usb/gadget/udc/goku_udc.c static void nuke(struct goku_ep *ep, int status) ep 795 drivers/usb/gadget/udc/goku_udc.c ep->stopped = 1; ep 796 drivers/usb/gadget/udc/goku_udc.c if (list_empty(&ep->queue)) ep 798 drivers/usb/gadget/udc/goku_udc.c if (ep->dma) ep 799 drivers/usb/gadget/udc/goku_udc.c abort_dma(ep, status); ep 800 drivers/usb/gadget/udc/goku_udc.c while (!list_empty(&ep->queue)) { ep 801 drivers/usb/gadget/udc/goku_udc.c req = list_entry(ep->queue.next, struct goku_request, queue); ep 802 drivers/usb/gadget/udc/goku_udc.c done(ep, req, status); ep 810 drivers/usb/gadget/udc/goku_udc.c struct goku_ep *ep; ep 814 drivers/usb/gadget/udc/goku_udc.c ep = container_of(_ep, struct goku_ep, ep); ep 815 drivers/usb/gadget/udc/goku_udc.c if (!_ep || !_req || (!ep->ep.desc && ep->num != 0)) ep 817 drivers/usb/gadget/udc/goku_udc.c dev = ep->dev; ep 826 drivers/usb/gadget/udc/goku_udc.c ep->is_in ? "IN" : "OUT", ep 827 drivers/usb/gadget/udc/goku_udc.c ep->dma ? "dma" : "pio", ep 833 drivers/usb/gadget/udc/goku_udc.c list_for_each_entry (req, &ep->queue, queue) { ep 842 drivers/usb/gadget/udc/goku_udc.c if (ep->dma && ep->queue.next == &req->queue && !ep->stopped) { ep 843 drivers/usb/gadget/udc/goku_udc.c abort_dma(ep, -ECONNRESET); ep 844 drivers/usb/gadget/udc/goku_udc.c done(ep, req, -ECONNRESET); ep 845 drivers/usb/gadget/udc/goku_udc.c dma_advance(dev, ep); ep 847 drivers/usb/gadget/udc/goku_udc.c done(ep, req, -ECONNRESET); ep 857 drivers/usb/gadget/udc/goku_udc.c static void goku_clear_halt(struct goku_ep *ep) ep 860 drivers/usb/gadget/udc/goku_udc.c VDBG(ep->dev, "%s clear halt\n", ep->ep.name); ep 861 drivers/usb/gadget/udc/goku_udc.c command(ep->dev->regs, COMMAND_SETDATA0, ep->num); ep 862 drivers/usb/gadget/udc/goku_udc.c command(ep->dev->regs, COMMAND_STALL_CLEAR, ep->num); ep 863 drivers/usb/gadget/udc/goku_udc.c if (ep->stopped) { ep 864 drivers/usb/gadget/udc/goku_udc.c ep->stopped = 0; ep 865 drivers/usb/gadget/udc/goku_udc.c if (ep->dma) { ep 868 drivers/usb/gadget/udc/goku_udc.c if (list_empty(&ep->queue)) ep 870 drivers/usb/gadget/udc/goku_udc.c req = list_entry(ep->queue.next, struct goku_request, ep 872 drivers/usb/gadget/udc/goku_udc.c (void) start_dma(ep, req); ep 874 drivers/usb/gadget/udc/goku_udc.c pio_advance(ep); ep 880 drivers/usb/gadget/udc/goku_udc.c struct goku_ep *ep; ep 886 drivers/usb/gadget/udc/goku_udc.c ep = container_of (_ep, struct goku_ep, ep); ep 888 drivers/usb/gadget/udc/goku_udc.c if (ep->num == 0) { ep 890 drivers/usb/gadget/udc/goku_udc.c ep->dev->ep0state = EP0_STALL; ep 891 drivers/usb/gadget/udc/goku_udc.c ep->dev->ep[0].stopped = 1; ep 896 drivers/usb/gadget/udc/goku_udc.c } else if (!ep->ep.desc) { ep 897 drivers/usb/gadget/udc/goku_udc.c DBG(ep->dev, "%s %s inactive?\n", __func__, ep->ep.name); ep 901 drivers/usb/gadget/udc/goku_udc.c spin_lock_irqsave(&ep->dev->lock, flags); ep 902 drivers/usb/gadget/udc/goku_udc.c if (!list_empty(&ep->queue)) ep 904 drivers/usb/gadget/udc/goku_udc.c else if (ep->is_in && value ep 906 drivers/usb/gadget/udc/goku_udc.c && (readl(&ep->dev->regs->DataSet) ep 907 drivers/usb/gadget/udc/goku_udc.c & DATASET_AB(ep->num))) ep 910 drivers/usb/gadget/udc/goku_udc.c goku_clear_halt(ep); ep 912 drivers/usb/gadget/udc/goku_udc.c ep->stopped = 1; ep 913 drivers/usb/gadget/udc/goku_udc.c VDBG(ep->dev, "%s set halt\n", ep->ep.name); ep 914 drivers/usb/gadget/udc/goku_udc.c command(ep->dev->regs, COMMAND_STALL, ep->num); ep 915 drivers/usb/gadget/udc/goku_udc.c readl(ep->reg_status); ep 917 drivers/usb/gadget/udc/goku_udc.c spin_unlock_irqrestore(&ep->dev->lock, flags); ep 923 drivers/usb/gadget/udc/goku_udc.c struct goku_ep *ep; ep 929 drivers/usb/gadget/udc/goku_udc.c ep = container_of(_ep, struct goku_ep, ep); ep 932 drivers/usb/gadget/udc/goku_udc.c if (ep->is_in) ep 936 drivers/usb/gadget/udc/goku_udc.c regs = ep->dev->regs; ep 937 drivers/usb/gadget/udc/goku_udc.c size = readl(®s->EPxSizeLA[ep->num]) & DATASIZE; ep 938 drivers/usb/gadget/udc/goku_udc.c size += readl(®s->EPxSizeLB[ep->num]) & DATASIZE; ep 939 drivers/usb/gadget/udc/goku_udc.c VDBG(ep->dev, "%s %s %u\n", __func__, ep->ep.name, size); ep 945 drivers/usb/gadget/udc/goku_udc.c struct goku_ep *ep; ep 951 drivers/usb/gadget/udc/goku_udc.c ep = container_of(_ep, struct goku_ep, ep); ep 952 drivers/usb/gadget/udc/goku_udc.c VDBG(ep->dev, "%s %s\n", __func__, ep->ep.name); ep 955 drivers/usb/gadget/udc/goku_udc.c if (!ep->ep.desc && ep->num != 0) { ep 956 drivers/usb/gadget/udc/goku_udc.c DBG(ep->dev, "%s %s inactive?\n", __func__, ep->ep.name); ep 960 drivers/usb/gadget/udc/goku_udc.c regs = ep->dev->regs; ep 961 drivers/usb/gadget/udc/goku_udc.c size = readl(®s->EPxSizeLA[ep->num]); ep 969 drivers/usb/gadget/udc/goku_udc.c command(regs, COMMAND_FIFO_CLEAR, ep->num); ep 999 drivers/usb/gadget/udc/goku_udc.c struct usb_ep *ep; ep 1004 drivers/usb/gadget/udc/goku_udc.c ep = &dev->ep[3].ep; ep 1005 drivers/usb/gadget/udc/goku_udc.c if (usb_gadget_ep_match_desc(g, ep, desc, ep_comp)) ep 1006 drivers/usb/gadget/udc/goku_udc.c return ep; ep 1011 drivers/usb/gadget/udc/goku_udc.c ep = &dev->ep[2].ep; ep 1012 drivers/usb/gadget/udc/goku_udc.c if (usb_gadget_ep_match_desc(g, ep, desc, ep_comp)) ep 1013 drivers/usb/gadget/udc/goku_udc.c return ep; ep 1194 drivers/usb/gadget/udc/goku_udc.c struct goku_ep *ep = &dev->ep [i]; ep 1197 drivers/usb/gadget/udc/goku_udc.c if (i && !ep->ep.desc) ep 1200 drivers/usb/gadget/udc/goku_udc.c tmp = readl(ep->reg_status); ep 1202 drivers/usb/gadget/udc/goku_udc.c ep->ep.name, ep 1203 drivers/usb/gadget/udc/goku_udc.c ep->is_in ? "in" : "out", ep 1204 drivers/usb/gadget/udc/goku_udc.c ep->ep.maxpacket, ep 1205 drivers/usb/gadget/udc/goku_udc.c ep->dma ? "dma" : "pio", ep 1206 drivers/usb/gadget/udc/goku_udc.c ep->irqs, ep 1215 drivers/usb/gadget/udc/goku_udc.c if (list_empty(&ep->queue)) { ep 1221 drivers/usb/gadget/udc/goku_udc.c list_for_each_entry(req, &ep->queue, queue) { ep 1222 drivers/usb/gadget/udc/goku_udc.c if (ep->dma && req->queue.prev == &ep->queue) { ep 1255 drivers/usb/gadget/udc/goku_udc.c dev->gadget.ep0 = &dev->ep [0].ep; ep 1261 drivers/usb/gadget/udc/goku_udc.c struct goku_ep *ep = &dev->ep[i]; ep 1263 drivers/usb/gadget/udc/goku_udc.c ep->num = i; ep 1264 drivers/usb/gadget/udc/goku_udc.c ep->ep.name = names[i]; ep 1265 drivers/usb/gadget/udc/goku_udc.c ep->reg_fifo = &dev->regs->ep_fifo [i]; ep 1266 drivers/usb/gadget/udc/goku_udc.c ep->reg_status = &dev->regs->ep_status [i]; ep 1267 drivers/usb/gadget/udc/goku_udc.c ep->reg_mode = &dev->regs->ep_mode[i]; ep 1269 drivers/usb/gadget/udc/goku_udc.c ep->ep.ops = &goku_ep_ops; ep 1270 drivers/usb/gadget/udc/goku_udc.c list_add_tail (&ep->ep.ep_list, &dev->gadget.ep_list); ep 1271 drivers/usb/gadget/udc/goku_udc.c ep->dev = dev; ep 1272 drivers/usb/gadget/udc/goku_udc.c INIT_LIST_HEAD (&ep->queue); ep 1274 drivers/usb/gadget/udc/goku_udc.c ep_reset(NULL, ep); ep 1277 drivers/usb/gadget/udc/goku_udc.c ep->ep.caps.type_control = true; ep 1279 drivers/usb/gadget/udc/goku_udc.c ep->ep.caps.type_bulk = true; ep 1281 drivers/usb/gadget/udc/goku_udc.c ep->ep.caps.dir_in = true; ep 1282 drivers/usb/gadget/udc/goku_udc.c ep->ep.caps.dir_out = true; ep 1285 drivers/usb/gadget/udc/goku_udc.c dev->ep[0].reg_mode = NULL; ep 1286 drivers/usb/gadget/udc/goku_udc.c usb_ep_set_maxpacket_limit(&dev->ep[0].ep, MAX_EP0_SIZE); ep 1287 drivers/usb/gadget/udc/goku_udc.c list_del_init (&dev->ep[0].ep.ep_list); ep 1326 drivers/usb/gadget/udc/goku_udc.c dev->ep[i].irqs = 0; ep 1394 drivers/usb/gadget/udc/goku_udc.c nuke(&dev->ep [i], -ESHUTDOWN); ep 1432 drivers/usb/gadget/udc/goku_udc.c nuke(&dev->ep[0], 0); ep 1433 drivers/usb/gadget/udc/goku_udc.c dev->ep[0].stopped = 0; ep 1435 drivers/usb/gadget/udc/goku_udc.c dev->ep[0].is_in = 1; ep 1440 drivers/usb/gadget/udc/goku_udc.c dev->ep[0].is_in = 0; ep 1454 drivers/usb/gadget/udc/goku_udc.c (!dev->ep[tmp].ep.desc && tmp != 0)) ep 1458 drivers/usb/gadget/udc/goku_udc.c if (!dev->ep[tmp].is_in) ep 1461 drivers/usb/gadget/udc/goku_udc.c if (dev->ep[tmp].is_in) ep 1468 drivers/usb/gadget/udc/goku_udc.c goku_clear_halt(&dev->ep[tmp]); ep 1472 drivers/usb/gadget/udc/goku_udc.c dev->ep[0].stopped = 1; ep 1518 drivers/usb/gadget/udc/goku_udc.c dev->ep[0].stopped = 1; ep 1535 drivers/usb/gadget/udc/goku_udc.c struct goku_ep *ep; ep 1625 drivers/usb/gadget/udc/goku_udc.c dev->ep[0].irqs++; ep 1631 drivers/usb/gadget/udc/goku_udc.c ep = &dev->ep[0]; ep 1632 drivers/usb/gadget/udc/goku_udc.c ep->irqs++; ep 1633 drivers/usb/gadget/udc/goku_udc.c nuke(ep, 0); ep 1640 drivers/usb/gadget/udc/goku_udc.c ep = &dev->ep[0]; ep 1641 drivers/usb/gadget/udc/goku_udc.c ep->irqs++; ep 1642 drivers/usb/gadget/udc/goku_udc.c pio_advance(ep); ep 1648 drivers/usb/gadget/udc/goku_udc.c ep = &dev->ep[UDC_MSTRD_ENDPOINT]; ep 1649 drivers/usb/gadget/udc/goku_udc.c ep->irqs++; ep 1650 drivers/usb/gadget/udc/goku_udc.c dma_advance(dev, ep); ep 1654 drivers/usb/gadget/udc/goku_udc.c ep = &dev->ep[UDC_MSTWR_ENDPOINT]; ep 1655 drivers/usb/gadget/udc/goku_udc.c ep->irqs++; ep 1656 drivers/usb/gadget/udc/goku_udc.c dma_advance(dev, ep); ep 1660 drivers/usb/gadget/udc/goku_udc.c ep = &dev->ep[UDC_MSTWR_ENDPOINT]; ep 1661 drivers/usb/gadget/udc/goku_udc.c ep->irqs++; ep 1662 drivers/usb/gadget/udc/goku_udc.c ERROR(dev, "%s write timeout ?\n", ep->ep.name); ep 1672 drivers/usb/gadget/udc/goku_udc.c ep = &dev->ep[i]; ep 1673 drivers/usb/gadget/udc/goku_udc.c pio_advance(ep); ep 1674 drivers/usb/gadget/udc/goku_udc.c if (list_empty (&ep->queue)) ep 1678 drivers/usb/gadget/udc/goku_udc.c ep->irqs++; ep 205 drivers/usb/gadget/udc/goku_udc.h struct usb_ep ep; ep 242 drivers/usb/gadget/udc/goku_udc.h struct goku_ep ep[4]; ep 91 drivers/usb/gadget/udc/gr_udc.c static void gr_dbgprint_request(const char *str, struct gr_ep *ep, ep 94 drivers/usb/gadget/udc/gr_udc.c int buflen = ep->is_in ? req->req.length : req->req.actual; ep 98 drivers/usb/gadget/udc/gr_udc.c dev_dbg(ep->dev->dev, "%s: 0x%p, %d bytes data%s:\n", str, req, buflen, ep 112 drivers/usb/gadget/udc/gr_udc.c static void gr_dbgprint_request(const char *str, struct gr_ep *ep, ep 125 drivers/usb/gadget/udc/gr_udc.c static void gr_seq_ep_show(struct seq_file *seq, struct gr_ep *ep) ep 127 drivers/usb/gadget/udc/gr_udc.c u32 epctrl = gr_read32(&ep->regs->epctrl); ep 128 drivers/usb/gadget/udc/gr_udc.c u32 epstat = gr_read32(&ep->regs->epstat); ep 132 drivers/usb/gadget/udc/gr_udc.c seq_printf(seq, "%s:\n", ep->ep.name); ep 137 drivers/usb/gadget/udc/gr_udc.c seq_printf(seq, " dma_start = %d\n", ep->dma_start); ep 138 drivers/usb/gadget/udc/gr_udc.c seq_printf(seq, " stopped = %d\n", ep->stopped); ep 139 drivers/usb/gadget/udc/gr_udc.c seq_printf(seq, " wedged = %d\n", ep->wedged); ep 140 drivers/usb/gadget/udc/gr_udc.c seq_printf(seq, " callback = %d\n", ep->callback); ep 141 drivers/usb/gadget/udc/gr_udc.c seq_printf(seq, " maxpacket = %d\n", ep->ep.maxpacket); ep 142 drivers/usb/gadget/udc/gr_udc.c seq_printf(seq, " maxpacket_limit = %d\n", ep->ep.maxpacket_limit); ep 143 drivers/usb/gadget/udc/gr_udc.c seq_printf(seq, " bytes_per_buffer = %d\n", ep->bytes_per_buffer); ep 157 drivers/usb/gadget/udc/gr_udc.c if (list_empty(&ep->queue)) { ep 163 drivers/usb/gadget/udc/gr_udc.c list_for_each_entry(req, &ep->queue, queue) { ep 187 drivers/usb/gadget/udc/gr_udc.c struct gr_ep *ep; ep 200 drivers/usb/gadget/udc/gr_udc.c list_for_each_entry(ep, &dev->ep_list, ep_list) ep 201 drivers/usb/gadget/udc/gr_udc.c gr_seq_ep_show(seq, ep); ep 231 drivers/usb/gadget/udc/gr_udc.c static struct gr_dma_desc *gr_alloc_dma_desc(struct gr_ep *ep, gfp_t gfp_flags) ep 236 drivers/usb/gadget/udc/gr_udc.c dma_desc = dma_pool_zalloc(ep->dev->desc_pool, gfp_flags, &paddr); ep 238 drivers/usb/gadget/udc/gr_udc.c dev_err(ep->dev->dev, "Could not allocate from DMA pool\n"); ep 282 drivers/usb/gadget/udc/gr_udc.c static void gr_finish_request(struct gr_ep *ep, struct gr_request *req, ep 296 drivers/usb/gadget/udc/gr_udc.c dev = ep->dev; ep 297 drivers/usb/gadget/udc/gr_udc.c usb_gadget_unmap_request(&dev->gadget, &req->req, ep->is_in); ep 300 drivers/usb/gadget/udc/gr_udc.c if (ep->is_in) { /* For OUT, req->req.actual gets updated bit by bit */ ep 310 drivers/usb/gadget/udc/gr_udc.c memcpy(buftail, ep->tailbuf, req->oddlen); ep 314 drivers/usb/gadget/udc/gr_udc.c dev_dbg(ep->dev->dev, "Overflow for ep %s\n", ep 315 drivers/usb/gadget/udc/gr_udc.c ep->ep.name); ep 316 drivers/usb/gadget/udc/gr_udc.c gr_dbgprint_request("OVFL", ep, req); ep 322 drivers/usb/gadget/udc/gr_udc.c if (ep->is_in) ep 323 drivers/usb/gadget/udc/gr_udc.c gr_dbgprint_request("SENT", ep, req); ep 325 drivers/usb/gadget/udc/gr_udc.c gr_dbgprint_request("RECV", ep, req); ep 329 drivers/usb/gadget/udc/gr_udc.c ep->callback = 1; ep 339 drivers/usb/gadget/udc/gr_udc.c usb_gadget_giveback_request(&ep->ep, &req->req); ep 343 drivers/usb/gadget/udc/gr_udc.c ep->callback = 0; ep 364 drivers/usb/gadget/udc/gr_udc.c static void gr_start_dma(struct gr_ep *ep) ep 369 drivers/usb/gadget/udc/gr_udc.c if (list_empty(&ep->queue)) { ep 370 drivers/usb/gadget/udc/gr_udc.c ep->dma_start = 0; ep 374 drivers/usb/gadget/udc/gr_udc.c req = list_first_entry(&ep->queue, struct gr_request, queue); ep 385 drivers/usb/gadget/udc/gr_udc.c if (!ep->is_in && req->oddlen) ep 386 drivers/usb/gadget/udc/gr_udc.c req->last_desc->data = ep->tailbuf_paddr; ep 391 drivers/usb/gadget/udc/gr_udc.c gr_write32(&ep->regs->dmaaddr, req->curr_desc->paddr); ep 394 drivers/usb/gadget/udc/gr_udc.c dmactrl = gr_read32(&ep->regs->dmactrl); ep 395 drivers/usb/gadget/udc/gr_udc.c gr_write32(&ep->regs->dmactrl, dmactrl | GR_DMACTRL_DA); ep 397 drivers/usb/gadget/udc/gr_udc.c ep->dma_start = 1; ep 406 drivers/usb/gadget/udc/gr_udc.c static void gr_dma_advance(struct gr_ep *ep, int status) ep 410 drivers/usb/gadget/udc/gr_udc.c req = list_first_entry(&ep->queue, struct gr_request, queue); ep 411 drivers/usb/gadget/udc/gr_udc.c gr_finish_request(ep, req, status); ep 412 drivers/usb/gadget/udc/gr_udc.c gr_start_dma(ep); /* Regardless of ep->dma_start */ ep 421 drivers/usb/gadget/udc/gr_udc.c static void gr_abort_dma(struct gr_ep *ep) ep 425 drivers/usb/gadget/udc/gr_udc.c dmactrl = gr_read32(&ep->regs->dmactrl); ep 426 drivers/usb/gadget/udc/gr_udc.c gr_write32(&ep->regs->dmactrl, dmactrl | GR_DMACTRL_AD); ep 436 drivers/usb/gadget/udc/gr_udc.c static int gr_add_dma_desc(struct gr_ep *ep, struct gr_request *req, ep 441 drivers/usb/gadget/udc/gr_udc.c desc = gr_alloc_dma_desc(ep, gfp_flags); ep 446 drivers/usb/gadget/udc/gr_udc.c if (ep->is_in) ep 475 drivers/usb/gadget/udc/gr_udc.c static int gr_setup_out_desc_list(struct gr_ep *ep, struct gr_request *req, ep 487 drivers/usb/gadget/udc/gr_udc.c u16 size = min(bytes_left, ep->bytes_per_buffer); ep 489 drivers/usb/gadget/udc/gr_udc.c if (size < ep->bytes_per_buffer) { ep 495 drivers/usb/gadget/udc/gr_udc.c ret = gr_add_dma_desc(ep, req, start, size, gfp_flags); ep 508 drivers/usb/gadget/udc/gr_udc.c gr_free_dma_desc_chain(ep->dev, req); ep 528 drivers/usb/gadget/udc/gr_udc.c static int gr_setup_in_desc_list(struct gr_ep *ep, struct gr_request *req, ep 540 drivers/usb/gadget/udc/gr_udc.c u16 size = min(bytes_left, ep->bytes_per_buffer); ep 542 drivers/usb/gadget/udc/gr_udc.c ret = gr_add_dma_desc(ep, req, start, size, gfp_flags); ep 555 drivers/usb/gadget/udc/gr_udc.c if (req->req.zero && (req->req.length % ep->ep.maxpacket == 0)) { ep 556 drivers/usb/gadget/udc/gr_udc.c ret = gr_add_dma_desc(ep, req, 0, 0, gfp_flags); ep 570 drivers/usb/gadget/udc/gr_udc.c gr_free_dma_desc_chain(ep->dev, req); ep 576 drivers/usb/gadget/udc/gr_udc.c static int gr_queue(struct gr_ep *ep, struct gr_request *req, gfp_t gfp_flags) ep 578 drivers/usb/gadget/udc/gr_udc.c struct gr_udc *dev = ep->dev; ep 581 drivers/usb/gadget/udc/gr_udc.c if (unlikely(!ep->ep.desc && ep->num != 0)) { ep 582 drivers/usb/gadget/udc/gr_udc.c dev_err(dev->dev, "No ep descriptor for %s\n", ep->ep.name); ep 589 drivers/usb/gadget/udc/gr_udc.c ep->ep.name, req->req.buf, list_empty(&req->queue)); ep 605 drivers/usb/gadget/udc/gr_udc.c ret = usb_gadget_map_request(&dev->gadget, &req->req, ep->is_in); ep 611 drivers/usb/gadget/udc/gr_udc.c if (ep->is_in) ep 612 drivers/usb/gadget/udc/gr_udc.c ret = gr_setup_in_desc_list(ep, req, gfp_flags); ep 614 drivers/usb/gadget/udc/gr_udc.c ret = gr_setup_out_desc_list(ep, req, gfp_flags); ep 620 drivers/usb/gadget/udc/gr_udc.c list_add_tail(&req->queue, &ep->queue); ep 623 drivers/usb/gadget/udc/gr_udc.c if (!ep->dma_start && likely(!ep->stopped)) ep 624 drivers/usb/gadget/udc/gr_udc.c gr_start_dma(ep); ep 634 drivers/usb/gadget/udc/gr_udc.c static inline int gr_queue_int(struct gr_ep *ep, struct gr_request *req, ep 637 drivers/usb/gadget/udc/gr_udc.c if (ep->is_in) ep 638 drivers/usb/gadget/udc/gr_udc.c gr_dbgprint_request("RESP", ep, req); ep 640 drivers/usb/gadget/udc/gr_udc.c return gr_queue(ep, req, gfp_flags); ep 651 drivers/usb/gadget/udc/gr_udc.c static void gr_ep_nuke(struct gr_ep *ep) ep 655 drivers/usb/gadget/udc/gr_udc.c ep->stopped = 1; ep 656 drivers/usb/gadget/udc/gr_udc.c ep->dma_start = 0; ep 657 drivers/usb/gadget/udc/gr_udc.c gr_abort_dma(ep); ep 659 drivers/usb/gadget/udc/gr_udc.c while (!list_empty(&ep->queue)) { ep 660 drivers/usb/gadget/udc/gr_udc.c req = list_first_entry(&ep->queue, struct gr_request, queue); ep 661 drivers/usb/gadget/udc/gr_udc.c gr_finish_request(ep, req, -ESHUTDOWN); ep 670 drivers/usb/gadget/udc/gr_udc.c static void gr_ep_reset(struct gr_ep *ep) ep 672 drivers/usb/gadget/udc/gr_udc.c gr_write32(&ep->regs->epctrl, 0); ep 673 drivers/usb/gadget/udc/gr_udc.c gr_write32(&ep->regs->dmactrl, 0); ep 675 drivers/usb/gadget/udc/gr_udc.c ep->ep.maxpacket = MAX_CTRL_PL_SIZE; ep 676 drivers/usb/gadget/udc/gr_udc.c ep->ep.desc = NULL; ep 677 drivers/usb/gadget/udc/gr_udc.c ep->stopped = 1; ep 678 drivers/usb/gadget/udc/gr_udc.c ep->dma_start = 0; ep 703 drivers/usb/gadget/udc/gr_udc.c static int gr_ep_halt_wedge(struct gr_ep *ep, int halt, int wedge, int fromhost) ep 708 drivers/usb/gadget/udc/gr_udc.c if (ep->num && !ep->ep.desc) ep 711 drivers/usb/gadget/udc/gr_udc.c if (ep->num && ep->ep.desc->bmAttributes == USB_ENDPOINT_XFER_ISOC) ep 715 drivers/usb/gadget/udc/gr_udc.c if (!ep->num) { ep 718 drivers/usb/gadget/udc/gr_udc.c gr_control_stall(ep->dev); ep 719 drivers/usb/gadget/udc/gr_udc.c dev_dbg(ep->dev->dev, "EP: stall ep0\n"); ep 725 drivers/usb/gadget/udc/gr_udc.c dev_dbg(ep->dev->dev, "EP: %s halt %s\n", ep 726 drivers/usb/gadget/udc/gr_udc.c (halt ? (wedge ? "wedge" : "set") : "clear"), ep->ep.name); ep 728 drivers/usb/gadget/udc/gr_udc.c epctrl = gr_read32(&ep->regs->epctrl); ep 731 drivers/usb/gadget/udc/gr_udc.c gr_write32(&ep->regs->epctrl, epctrl | GR_EPCTRL_EH); ep 732 drivers/usb/gadget/udc/gr_udc.c ep->stopped = 1; ep 734 drivers/usb/gadget/udc/gr_udc.c ep->wedged = 1; ep 736 drivers/usb/gadget/udc/gr_udc.c gr_write32(&ep->regs->epctrl, epctrl & ~GR_EPCTRL_EH); ep 737 drivers/usb/gadget/udc/gr_udc.c ep->stopped = 0; ep 738 drivers/usb/gadget/udc/gr_udc.c ep->wedged = 0; ep 741 drivers/usb/gadget/udc/gr_udc.c if (!ep->dma_start) ep 742 drivers/usb/gadget/udc/gr_udc.c gr_start_dma(ep); ep 776 drivers/usb/gadget/udc/gr_udc.c struct gr_ep *ep; ep 778 drivers/usb/gadget/udc/gr_udc.c list_for_each_entry(ep, &dev->ep_list, ep_list) ep 779 drivers/usb/gadget/udc/gr_udc.c gr_ep_nuke(ep); ep 793 drivers/usb/gadget/udc/gr_udc.c struct gr_ep *ep; ep 797 drivers/usb/gadget/udc/gr_udc.c ep = container_of(_ep, struct gr_ep, ep); ep 798 drivers/usb/gadget/udc/gr_udc.c dev = ep->dev; ep 820 drivers/usb/gadget/udc/gr_udc.c void (*complete)(struct usb_ep *ep, ep 981 drivers/usb/gadget/udc/gr_udc.c struct gr_ep *ep; ep 993 drivers/usb/gadget/udc/gr_udc.c ep = (is_in ? &dev->epi[epnum] : &dev->epo[epnum]); ep 997 drivers/usb/gadget/udc/gr_udc.c halted = gr_read32(&ep->regs->epctrl) & GR_EPCTRL_EH; ep 1003 drivers/usb/gadget/udc/gr_udc.c status = gr_ep_halt_wedge(ep, 1, 0, 1); ep 1013 drivers/usb/gadget/udc/gr_udc.c if (ep->wedged) ep 1015 drivers/usb/gadget/udc/gr_udc.c status = gr_ep_halt_wedge(ep, 0, 0, 1); ep 1236 drivers/usb/gadget/udc/gr_udc.c static int gr_handle_in_ep(struct gr_ep *ep) ep 1240 drivers/usb/gadget/udc/gr_udc.c req = list_first_entry(&ep->queue, struct gr_request, queue); ep 1247 drivers/usb/gadget/udc/gr_udc.c if (gr_read32(&ep->regs->epstat) & (GR_EPSTAT_B1 | GR_EPSTAT_B0)) ep 1251 drivers/usb/gadget/udc/gr_udc.c gr_dma_advance(ep, 0); ep 1261 drivers/usb/gadget/udc/gr_udc.c static int gr_handle_out_ep(struct gr_ep *ep) ep 1267 drivers/usb/gadget/udc/gr_udc.c struct gr_udc *dev = ep->dev; ep 1269 drivers/usb/gadget/udc/gr_udc.c req = list_first_entry(&ep->queue, struct gr_request, queue); ep 1283 drivers/usb/gadget/udc/gr_udc.c if (len < ep->ep.maxpacket || req->req.actual >= req->req.length) { ep 1286 drivers/usb/gadget/udc/gr_udc.c if ((ep == &dev->epo[0]) && (dev->ep0state == GR_EP0_OSTATUS)) { ep 1297 drivers/usb/gadget/udc/gr_udc.c gr_dma_advance(ep, 0); ep 1303 drivers/usb/gadget/udc/gr_udc.c ep_dmactrl = gr_read32(&ep->regs->dmactrl); ep 1304 drivers/usb/gadget/udc/gr_udc.c gr_write32(&ep->regs->dmactrl, ep_dmactrl | GR_DMACTRL_DA); ep 1398 drivers/usb/gadget/udc/gr_udc.c struct gr_ep *ep; ep 1414 drivers/usb/gadget/udc/gr_udc.c ep = &dev->epi[i]; ep 1415 drivers/usb/gadget/udc/gr_udc.c if (!ep->stopped && !ep->callback && !list_empty(&ep->queue)) ep 1416 drivers/usb/gadget/udc/gr_udc.c handled = gr_handle_in_ep(ep) || handled; ep 1421 drivers/usb/gadget/udc/gr_udc.c ep = &dev->epo[i]; ep 1422 drivers/usb/gadget/udc/gr_udc.c if (!ep->stopped && !ep->callback && !list_empty(&ep->queue)) ep 1423 drivers/usb/gadget/udc/gr_udc.c handled = gr_handle_out_ep(ep) || handled; ep 1434 drivers/usb/gadget/udc/gr_udc.c list_for_each_entry(ep, &dev->ep_list, ep_list) { ep 1435 drivers/usb/gadget/udc/gr_udc.c if (gr_read32(&ep->regs->dmactrl) & GR_DMACTRL_AE) { ep 1438 drivers/usb/gadget/udc/gr_udc.c ep->ep.name); ep 1469 drivers/usb/gadget/udc/gr_udc.c struct gr_ep *ep; ep 1476 drivers/usb/gadget/udc/gr_udc.c ep = container_of(_ep, struct gr_ep, ep); ep 1480 drivers/usb/gadget/udc/gr_udc.c dev = ep->dev; ep 1483 drivers/usb/gadget/udc/gr_udc.c if (ep == &dev->epo[0] || ep == &dev->epi[0]) ep 1490 drivers/usb/gadget/udc/gr_udc.c epctrl = gr_read32(&ep->regs->epctrl); ep 1495 drivers/usb/gadget/udc/gr_udc.c if (!ep->is_in != !usb_endpoint_dir_in(desc)) ep 1499 drivers/usb/gadget/udc/gr_udc.c if ((!ep->is_in && ep->num >= dev->nepo) || ep 1500 drivers/usb/gadget/udc/gr_udc.c (ep->is_in && ep->num >= dev->nepi)) ep 1513 drivers/usb/gadget/udc/gr_udc.c ep->ep.name); ep 1540 drivers/usb/gadget/udc/gr_udc.c } else if (max > ep->ep.maxpacket_limit) { ep 1542 drivers/usb/gadget/udc/gr_udc.c max, ep->ep.maxpacket_limit); ep 1546 drivers/usb/gadget/udc/gr_udc.c spin_lock(&ep->dev->lock); ep 1548 drivers/usb/gadget/udc/gr_udc.c if (!ep->stopped) { ep 1549 drivers/usb/gadget/udc/gr_udc.c spin_unlock(&ep->dev->lock); ep 1553 drivers/usb/gadget/udc/gr_udc.c ep->stopped = 0; ep 1554 drivers/usb/gadget/udc/gr_udc.c ep->wedged = 0; ep 1555 drivers/usb/gadget/udc/gr_udc.c ep->ep.desc = desc; ep 1556 drivers/usb/gadget/udc/gr_udc.c ep->ep.maxpacket = max; ep 1557 drivers/usb/gadget/udc/gr_udc.c ep->dma_start = 0; ep 1565 drivers/usb/gadget/udc/gr_udc.c ep->bytes_per_buffer = (nt + 1) * max; ep 1566 drivers/usb/gadget/udc/gr_udc.c } else if (ep->is_in) { ep 1572 drivers/usb/gadget/udc/gr_udc.c ep->bytes_per_buffer = (buffer_size / max) * max; ep 1578 drivers/usb/gadget/udc/gr_udc.c ep->bytes_per_buffer = max; ep 1585 drivers/usb/gadget/udc/gr_udc.c if (ep->is_in) ep 1587 drivers/usb/gadget/udc/gr_udc.c gr_write32(&ep->regs->epctrl, epctrl); ep 1589 drivers/usb/gadget/udc/gr_udc.c gr_write32(&ep->regs->dmactrl, GR_DMACTRL_IE | GR_DMACTRL_AI); ep 1591 drivers/usb/gadget/udc/gr_udc.c spin_unlock(&ep->dev->lock); ep 1593 drivers/usb/gadget/udc/gr_udc.c dev_dbg(ep->dev->dev, "EP: %s enabled - %s with %d bytes/buffer\n", ep 1594 drivers/usb/gadget/udc/gr_udc.c ep->ep.name, gr_modestring[mode], ep->bytes_per_buffer); ep 1601 drivers/usb/gadget/udc/gr_udc.c struct gr_ep *ep; ep 1605 drivers/usb/gadget/udc/gr_udc.c ep = container_of(_ep, struct gr_ep, ep); ep 1606 drivers/usb/gadget/udc/gr_udc.c if (!_ep || !ep->ep.desc) ep 1609 drivers/usb/gadget/udc/gr_udc.c dev = ep->dev; ep 1612 drivers/usb/gadget/udc/gr_udc.c if (ep == &dev->epo[0] || ep == &dev->epi[0]) ep 1618 drivers/usb/gadget/udc/gr_udc.c dev_dbg(ep->dev->dev, "EP: disable %s\n", ep->ep.name); ep 1622 drivers/usb/gadget/udc/gr_udc.c gr_ep_nuke(ep); ep 1623 drivers/usb/gadget/udc/gr_udc.c gr_ep_reset(ep); ep 1624 drivers/usb/gadget/udc/gr_udc.c ep->ep.desc = NULL; ep 1654 drivers/usb/gadget/udc/gr_udc.c struct gr_ep *ep; ep 1662 drivers/usb/gadget/udc/gr_udc.c ep = container_of(_ep, struct gr_ep, ep); ep 1664 drivers/usb/gadget/udc/gr_udc.c dev = ep->dev; ep 1666 drivers/usb/gadget/udc/gr_udc.c spin_lock(&ep->dev->lock); ep 1674 drivers/usb/gadget/udc/gr_udc.c if ((ep == &dev->epi[0]) && (dev->ep0state == GR_EP0_ODATA)) { ep 1675 drivers/usb/gadget/udc/gr_udc.c ep = &dev->epo[0]; ep 1676 drivers/usb/gadget/udc/gr_udc.c ep->ep.driver_data = dev->epi[0].ep.driver_data; ep 1679 drivers/usb/gadget/udc/gr_udc.c if (ep->is_in) ep 1680 drivers/usb/gadget/udc/gr_udc.c gr_dbgprint_request("EXTERN", ep, req); ep 1682 drivers/usb/gadget/udc/gr_udc.c ret = gr_queue(ep, req, GFP_ATOMIC); ep 1684 drivers/usb/gadget/udc/gr_udc.c spin_unlock(&ep->dev->lock); ep 1693 drivers/usb/gadget/udc/gr_udc.c struct gr_ep *ep; ep 1698 drivers/usb/gadget/udc/gr_udc.c ep = container_of(_ep, struct gr_ep, ep); ep 1699 drivers/usb/gadget/udc/gr_udc.c if (!_ep || !_req || (!ep->ep.desc && ep->num != 0)) ep 1701 drivers/usb/gadget/udc/gr_udc.c dev = ep->dev; ep 1712 drivers/usb/gadget/udc/gr_udc.c list_for_each_entry(req, &ep->queue, queue) { ep 1721 drivers/usb/gadget/udc/gr_udc.c if (list_first_entry(&ep->queue, struct gr_request, queue) == req) { ep 1723 drivers/usb/gadget/udc/gr_udc.c gr_abort_dma(ep); ep 1724 drivers/usb/gadget/udc/gr_udc.c if (ep->stopped) ep 1725 drivers/usb/gadget/udc/gr_udc.c gr_finish_request(ep, req, -ECONNRESET); ep 1727 drivers/usb/gadget/udc/gr_udc.c gr_dma_advance(ep, -ECONNRESET); ep 1730 drivers/usb/gadget/udc/gr_udc.c gr_finish_request(ep, req, -ECONNRESET); ep 1745 drivers/usb/gadget/udc/gr_udc.c struct gr_ep *ep; ep 1749 drivers/usb/gadget/udc/gr_udc.c ep = container_of(_ep, struct gr_ep, ep); ep 1751 drivers/usb/gadget/udc/gr_udc.c spin_lock(&ep->dev->lock); ep 1754 drivers/usb/gadget/udc/gr_udc.c if (halt && ep->is_in && !list_empty(&ep->queue)) { ep 1759 drivers/usb/gadget/udc/gr_udc.c ret = gr_ep_halt_wedge(ep, halt, wedge, 0); ep 1762 drivers/usb/gadget/udc/gr_udc.c spin_unlock(&ep->dev->lock); ep 1785 drivers/usb/gadget/udc/gr_udc.c struct gr_ep *ep; ep 1791 drivers/usb/gadget/udc/gr_udc.c ep = container_of(_ep, struct gr_ep, ep); ep 1793 drivers/usb/gadget/udc/gr_udc.c epstat = gr_read32(&ep->regs->epstat); ep 1807 drivers/usb/gadget/udc/gr_udc.c struct gr_ep *ep; ep 1812 drivers/usb/gadget/udc/gr_udc.c ep = container_of(_ep, struct gr_ep, ep); ep 1813 drivers/usb/gadget/udc/gr_udc.c dev_vdbg(ep->dev->dev, "EP: flush fifo %s\n", ep->ep.name); ep 1815 drivers/usb/gadget/udc/gr_udc.c spin_lock(&ep->dev->lock); ep 1817 drivers/usb/gadget/udc/gr_udc.c epctrl = gr_read32(&ep->regs->epctrl); ep 1819 drivers/usb/gadget/udc/gr_udc.c gr_write32(&ep->regs->epctrl, epctrl); ep 1821 drivers/usb/gadget/udc/gr_udc.c spin_unlock(&ep->dev->lock); ep 1959 drivers/usb/gadget/udc/gr_udc.c struct gr_ep *ep; ep 1965 drivers/usb/gadget/udc/gr_udc.c ep = &dev->epi[num]; ep 1966 drivers/usb/gadget/udc/gr_udc.c ep->ep.name = inames[num]; ep 1967 drivers/usb/gadget/udc/gr_udc.c ep->regs = &dev->regs->epi[num]; ep 1969 drivers/usb/gadget/udc/gr_udc.c ep = &dev->epo[num]; ep 1970 drivers/usb/gadget/udc/gr_udc.c ep->ep.name = onames[num]; ep 1971 drivers/usb/gadget/udc/gr_udc.c ep->regs = &dev->regs->epo[num]; ep 1974 drivers/usb/gadget/udc/gr_udc.c gr_ep_reset(ep); ep 1975 drivers/usb/gadget/udc/gr_udc.c ep->num = num; ep 1976 drivers/usb/gadget/udc/gr_udc.c ep->is_in = is_in; ep 1977 drivers/usb/gadget/udc/gr_udc.c ep->dev = dev; ep 1978 drivers/usb/gadget/udc/gr_udc.c ep->ep.ops = &gr_ep_ops; ep 1979 drivers/usb/gadget/udc/gr_udc.c INIT_LIST_HEAD(&ep->queue); ep 1982 drivers/usb/gadget/udc/gr_udc.c _req = gr_alloc_request(&ep->ep, GFP_ATOMIC); ep 1998 drivers/usb/gadget/udc/gr_udc.c usb_ep_set_maxpacket_limit(&ep->ep, MAX_CTRL_PL_SIZE); ep 1999 drivers/usb/gadget/udc/gr_udc.c ep->bytes_per_buffer = MAX_CTRL_PL_SIZE; ep 2001 drivers/usb/gadget/udc/gr_udc.c ep->ep.caps.type_control = true; ep 2003 drivers/usb/gadget/udc/gr_udc.c usb_ep_set_maxpacket_limit(&ep->ep, (u16)maxplimit); ep 2004 drivers/usb/gadget/udc/gr_udc.c list_add_tail(&ep->ep.ep_list, &dev->gadget.ep_list); ep 2006 drivers/usb/gadget/udc/gr_udc.c ep->ep.caps.type_iso = true; ep 2007 drivers/usb/gadget/udc/gr_udc.c ep->ep.caps.type_bulk = true; ep 2008 drivers/usb/gadget/udc/gr_udc.c ep->ep.caps.type_int = true; ep 2010 drivers/usb/gadget/udc/gr_udc.c list_add_tail(&ep->ep_list, &dev->ep_list); ep 2013 drivers/usb/gadget/udc/gr_udc.c ep->ep.caps.dir_in = true; ep 2015 drivers/usb/gadget/udc/gr_udc.c ep->ep.caps.dir_out = true; ep 2017 drivers/usb/gadget/udc/gr_udc.c ep->tailbuf = dma_alloc_coherent(dev->dev, ep->ep.maxpacket_limit, ep 2018 drivers/usb/gadget/udc/gr_udc.c &ep->tailbuf_paddr, GFP_ATOMIC); ep 2019 drivers/usb/gadget/udc/gr_udc.c if (!ep->tailbuf) ep 2039 drivers/usb/gadget/udc/gr_udc.c dev->gadget.ep0 = &dev->epi[0].ep; ep 2076 drivers/usb/gadget/udc/gr_udc.c struct gr_ep *ep; ep 2079 drivers/usb/gadget/udc/gr_udc.c ep = &dev->epi[num]; ep 2081 drivers/usb/gadget/udc/gr_udc.c ep = &dev->epo[num]; ep 2083 drivers/usb/gadget/udc/gr_udc.c if (ep->tailbuf) ep 2084 drivers/usb/gadget/udc/gr_udc.c dma_free_coherent(dev->dev, ep->ep.maxpacket_limit, ep 2085 drivers/usb/gadget/udc/gr_udc.c ep->tailbuf, ep->tailbuf_paddr); ep 2102 drivers/usb/gadget/udc/gr_udc.c gr_free_request(&dev->epi[0].ep, &dev->ep0reqi->req); ep 2103 drivers/usb/gadget/udc/gr_udc.c gr_free_request(&dev->epo[0].ep, &dev->ep0reqo->req); ep 139 drivers/usb/gadget/udc/gr_udc.h struct usb_ep ep; ep 69 drivers/usb/gadget/udc/lpc32xx_udc.c #define EP_MASK_SEL(ep, dir) (1 << (((ep) * 2) + dir)) ep 99 drivers/usb/gadget/udc/lpc32xx_udc.c struct usb_ep ep; ep 163 drivers/usb/gadget/udc/lpc32xx_udc.c struct lpc32xx_ep ep[NUM_ENDPOINTS]; ep 474 drivers/usb/gadget/udc/lpc32xx_udc.c static void proc_ep_show(struct seq_file *s, struct lpc32xx_ep *ep) ep 480 drivers/usb/gadget/udc/lpc32xx_udc.c ep->ep.name, ep->ep.maxpacket, ep 481 drivers/usb/gadget/udc/lpc32xx_udc.c ep->is_in ? "in" : "out"); ep 482 drivers/usb/gadget/udc/lpc32xx_udc.c seq_printf(s, " type %4s", epnames[ep->eptype]); ep 483 drivers/usb/gadget/udc/lpc32xx_udc.c seq_printf(s, " ints: %12d", ep->totalints); ep 485 drivers/usb/gadget/udc/lpc32xx_udc.c if (list_empty(&ep->queue)) ep 488 drivers/usb/gadget/udc/lpc32xx_udc.c list_for_each_entry(req, &ep->queue, queue) { ep 501 drivers/usb/gadget/udc/lpc32xx_udc.c struct lpc32xx_ep *ep; ep 517 drivers/usb/gadget/udc/lpc32xx_udc.c proc_ep_show(s, &udc->ep[0]); ep 518 drivers/usb/gadget/udc/lpc32xx_udc.c list_for_each_entry(ep, &udc->gadget.ep_list, ep.ep_list) ep 519 drivers/usb/gadget/udc/lpc32xx_udc.c proc_ep_show(s, ep); ep 987 drivers/usb/gadget/udc/lpc32xx_udc.c static int udc_ep_in_req_dma(struct lpc32xx_udc *udc, struct lpc32xx_ep *ep) ep 990 drivers/usb/gadget/udc/lpc32xx_udc.c u32 hwep = ep->hwep_num; ep 992 drivers/usb/gadget/udc/lpc32xx_udc.c ep->req_pending = 1; ep 995 drivers/usb/gadget/udc/lpc32xx_udc.c req = list_entry(ep->queue.next, struct lpc32xx_request, queue); ep 1004 drivers/usb/gadget/udc/lpc32xx_udc.c if (req->req.length % ep->ep.maxpacket) ep 1013 drivers/usb/gadget/udc/lpc32xx_udc.c static int udc_ep_out_req_dma(struct lpc32xx_udc *udc, struct lpc32xx_ep *ep) ep 1016 drivers/usb/gadget/udc/lpc32xx_udc.c u32 hwep = ep->hwep_num; ep 1018 drivers/usb/gadget/udc/lpc32xx_udc.c ep->req_pending = 1; ep 1021 drivers/usb/gadget/udc/lpc32xx_udc.c req = list_entry(ep->queue.next, struct lpc32xx_request, queue); ep 1067 drivers/usb/gadget/udc/lpc32xx_udc.c struct lpc32xx_ep *ep = &udc->ep[0]; ep 1087 drivers/usb/gadget/udc/lpc32xx_udc.c udc_realize_hwep(udc, i, ep->ep.maxpacket); ep 1352 drivers/usb/gadget/udc/lpc32xx_udc.c struct lpc32xx_ep *ep = &udc->ep[i]; ep 1353 drivers/usb/gadget/udc/lpc32xx_udc.c ep->req_pending = 0; ep 1396 drivers/usb/gadget/udc/lpc32xx_udc.c struct lpc32xx_ep *ep = &udc->ep[i]; ep 1399 drivers/usb/gadget/udc/lpc32xx_udc.c list_add_tail(&ep->ep.ep_list, &udc->gadget.ep_list); ep 1400 drivers/usb/gadget/udc/lpc32xx_udc.c usb_ep_set_maxpacket_limit(&ep->ep, ep->maxpacket); ep 1401 drivers/usb/gadget/udc/lpc32xx_udc.c INIT_LIST_HEAD(&ep->queue); ep 1402 drivers/usb/gadget/udc/lpc32xx_udc.c ep->req_pending = 0; ep 1409 drivers/usb/gadget/udc/lpc32xx_udc.c static void done(struct lpc32xx_ep *ep, struct lpc32xx_request *req, int status) ep 1411 drivers/usb/gadget/udc/lpc32xx_udc.c struct lpc32xx_udc *udc = ep->udc; ep 1419 drivers/usb/gadget/udc/lpc32xx_udc.c if (ep->lep) { ep 1420 drivers/usb/gadget/udc/lpc32xx_udc.c usb_gadget_unmap_request(&udc->gadget, &req->req, ep->is_in); ep 1427 drivers/usb/gadget/udc/lpc32xx_udc.c ep_dbg(ep, "%s done %p, status %d\n", ep->ep.name, req, status); ep 1429 drivers/usb/gadget/udc/lpc32xx_udc.c ep->req_pending = 0; ep 1431 drivers/usb/gadget/udc/lpc32xx_udc.c usb_gadget_giveback_request(&ep->ep, &req->req); ep 1436 drivers/usb/gadget/udc/lpc32xx_udc.c static void nuke(struct lpc32xx_ep *ep, int status) ep 1440 drivers/usb/gadget/udc/lpc32xx_udc.c while (!list_empty(&ep->queue)) { ep 1441 drivers/usb/gadget/udc/lpc32xx_udc.c req = list_entry(ep->queue.next, struct lpc32xx_request, queue); ep 1442 drivers/usb/gadget/udc/lpc32xx_udc.c done(ep, req, status); ep 1446 drivers/usb/gadget/udc/lpc32xx_udc.c uda_disable_hwepint(ep->udc, ep->hwep_num); ep 1447 drivers/usb/gadget/udc/lpc32xx_udc.c udc_disable_hwep(ep->udc, ep->hwep_num); ep 1455 drivers/usb/gadget/udc/lpc32xx_udc.c struct lpc32xx_ep *ep0 = &udc->ep[0]; ep 1471 drivers/usb/gadget/udc/lpc32xx_udc.c } else if (ts > ep0->ep.maxpacket) ep 1472 drivers/usb/gadget/udc/lpc32xx_udc.c ts = ep0->ep.maxpacket; /* Just send what we can */ ep 1480 drivers/usb/gadget/udc/lpc32xx_udc.c if (tsend >= ep0->ep.maxpacket) ep 1493 drivers/usb/gadget/udc/lpc32xx_udc.c struct lpc32xx_ep *ep0 = &udc->ep[0]; ep 1512 drivers/usb/gadget/udc/lpc32xx_udc.c if (bufferspace > ep0->ep.maxpacket) ep 1513 drivers/usb/gadget/udc/lpc32xx_udc.c bufferspace = ep0->ep.maxpacket; ep 1521 drivers/usb/gadget/udc/lpc32xx_udc.c if (tr < ep0->ep.maxpacket) { ep 1545 drivers/usb/gadget/udc/lpc32xx_udc.c struct lpc32xx_ep *ep = &udc->ep[i]; ep 1546 drivers/usb/gadget/udc/lpc32xx_udc.c nuke(ep, -ESHUTDOWN); ep 1578 drivers/usb/gadget/udc/lpc32xx_udc.c struct lpc32xx_ep *ep = container_of(_ep, struct lpc32xx_ep, ep); ep 1579 drivers/usb/gadget/udc/lpc32xx_udc.c struct lpc32xx_udc *udc = ep->udc; ep 1582 drivers/usb/gadget/udc/lpc32xx_udc.c if ((ep->hwep_num_base == 0) || (ep->hwep_num == 0)) ep 1586 drivers/usb/gadget/udc/lpc32xx_udc.c nuke(ep, -ESHUTDOWN); ep 1589 drivers/usb/gadget/udc/lpc32xx_udc.c udc_ep_dma_disable(udc, ep->hwep_num); ep 1590 drivers/usb/gadget/udc/lpc32xx_udc.c writel(1 << ep->hwep_num, USBD_EOTINTCLR(udc->udp_baseaddr)); ep 1591 drivers/usb/gadget/udc/lpc32xx_udc.c writel(1 << ep->hwep_num, USBD_NDDRTINTCLR(udc->udp_baseaddr)); ep 1592 drivers/usb/gadget/udc/lpc32xx_udc.c writel(1 << ep->hwep_num, USBD_SYSERRTINTCLR(udc->udp_baseaddr)); ep 1593 drivers/usb/gadget/udc/lpc32xx_udc.c writel(1 << ep->hwep_num, USBD_DMARCLR(udc->udp_baseaddr)); ep 1596 drivers/usb/gadget/udc/lpc32xx_udc.c udc->udca_v_base[ep->hwep_num] = 0; ep 1599 drivers/usb/gadget/udc/lpc32xx_udc.c uda_clear_hwepint(udc, ep->hwep_num); ep 1600 drivers/usb/gadget/udc/lpc32xx_udc.c udc_unrealize_hwep(udc, ep->hwep_num); ep 1602 drivers/usb/gadget/udc/lpc32xx_udc.c ep->hwep_num = 0; ep 1616 drivers/usb/gadget/udc/lpc32xx_udc.c struct lpc32xx_ep *ep = container_of(_ep, struct lpc32xx_ep, ep); ep 1617 drivers/usb/gadget/udc/lpc32xx_udc.c struct lpc32xx_udc *udc = ep->udc; ep 1623 drivers/usb/gadget/udc/lpc32xx_udc.c if ((!_ep) || (!ep) || (!desc) || ep 1629 drivers/usb/gadget/udc/lpc32xx_udc.c if ((maxpacket == 0) || (maxpacket > ep->maxpacket)) { ep 1635 drivers/usb/gadget/udc/lpc32xx_udc.c if (ep->hwep_num_base == 0) { ep 1652 drivers/usb/gadget/udc/lpc32xx_udc.c if (maxpacket > ep->maxpacket) { ep 1680 drivers/usb/gadget/udc/lpc32xx_udc.c ep->is_in = (desc->bEndpointAddress & USB_DIR_IN) != 0; ep 1681 drivers/usb/gadget/udc/lpc32xx_udc.c ep->ep.maxpacket = maxpacket; ep 1684 drivers/usb/gadget/udc/lpc32xx_udc.c if (ep->is_in) ep 1686 drivers/usb/gadget/udc/lpc32xx_udc.c ep->hwep_num = ep->hwep_num_base + EP_IN; ep 1688 drivers/usb/gadget/udc/lpc32xx_udc.c ep->hwep_num = ep->hwep_num_base; ep 1690 drivers/usb/gadget/udc/lpc32xx_udc.c ep_dbg(ep, "EP enabled: %s, HW:%d, MP:%d IN:%d\n", ep->ep.name, ep 1691 drivers/usb/gadget/udc/lpc32xx_udc.c ep->hwep_num, maxpacket, (ep->is_in == 1)); ep 1695 drivers/usb/gadget/udc/lpc32xx_udc.c udc_realize_hwep(udc, ep->hwep_num, ep->ep.maxpacket); ep 1696 drivers/usb/gadget/udc/lpc32xx_udc.c udc_clr_buffer_hwep(udc, ep->hwep_num); ep 1697 drivers/usb/gadget/udc/lpc32xx_udc.c uda_disable_hwepint(udc, ep->hwep_num); ep 1698 drivers/usb/gadget/udc/lpc32xx_udc.c udc_clrstall_hwep(udc, ep->hwep_num); ep 1701 drivers/usb/gadget/udc/lpc32xx_udc.c udc_ep_dma_disable(udc, ep->hwep_num); ep 1702 drivers/usb/gadget/udc/lpc32xx_udc.c writel(1 << ep->hwep_num, USBD_EOTINTCLR(udc->udp_baseaddr)); ep 1703 drivers/usb/gadget/udc/lpc32xx_udc.c writel(1 << ep->hwep_num, USBD_NDDRTINTCLR(udc->udp_baseaddr)); ep 1704 drivers/usb/gadget/udc/lpc32xx_udc.c writel(1 << ep->hwep_num, USBD_SYSERRTINTCLR(udc->udp_baseaddr)); ep 1705 drivers/usb/gadget/udc/lpc32xx_udc.c writel(1 << ep->hwep_num, USBD_DMARCLR(udc->udp_baseaddr)); ep 1749 drivers/usb/gadget/udc/lpc32xx_udc.c struct lpc32xx_ep *ep; ep 1755 drivers/usb/gadget/udc/lpc32xx_udc.c ep = container_of(_ep, struct lpc32xx_ep, ep); ep 1761 drivers/usb/gadget/udc/lpc32xx_udc.c udc = ep->udc; ep 1766 drivers/usb/gadget/udc/lpc32xx_udc.c if (ep->lep) { ep 1769 drivers/usb/gadget/udc/lpc32xx_udc.c status = usb_gadget_map_request(&udc->gadget, _req, ep->is_in); ep 1787 drivers/usb/gadget/udc/lpc32xx_udc.c if (ep->eptype == EP_ISO_TYPE) { ep 1792 drivers/usb/gadget/udc/lpc32xx_udc.c if (ep->is_in) ep 1797 drivers/usb/gadget/udc/lpc32xx_udc.c dd->dd_setup = DD_SETUP_PACKETLEN(ep->ep.maxpacket) | ep 1801 drivers/usb/gadget/udc/lpc32xx_udc.c ep_dbg(ep, "%s queue req %p len %d buf %p (in=%d) z=%d\n", _ep->name, ep 1802 drivers/usb/gadget/udc/lpc32xx_udc.c _req, _req->length, _req->buf, ep->is_in, _req->zero); ep 1811 drivers/usb/gadget/udc/lpc32xx_udc.c if (list_empty(&ep->queue)) { ep 1812 drivers/usb/gadget/udc/lpc32xx_udc.c list_add_tail(&req->queue, &ep->queue); ep 1814 drivers/usb/gadget/udc/lpc32xx_udc.c if (ep->hwep_num_base == 0) { ep 1816 drivers/usb/gadget/udc/lpc32xx_udc.c if (ep->is_in) { ep 1825 drivers/usb/gadget/udc/lpc32xx_udc.c } else if (ep->is_in) { ep 1827 drivers/usb/gadget/udc/lpc32xx_udc.c if (!ep->req_pending) ep 1828 drivers/usb/gadget/udc/lpc32xx_udc.c udc_ep_in_req_dma(udc, ep); ep 1831 drivers/usb/gadget/udc/lpc32xx_udc.c if (!ep->req_pending) ep 1832 drivers/usb/gadget/udc/lpc32xx_udc.c udc_ep_out_req_dma(udc, ep); ep 1834 drivers/usb/gadget/udc/lpc32xx_udc.c list_add_tail(&req->queue, &ep->queue); ep 1844 drivers/usb/gadget/udc/lpc32xx_udc.c struct lpc32xx_ep *ep; ep 1848 drivers/usb/gadget/udc/lpc32xx_udc.c ep = container_of(_ep, struct lpc32xx_ep, ep); ep 1849 drivers/usb/gadget/udc/lpc32xx_udc.c if (!_ep || ep->hwep_num_base == 0) ep 1852 drivers/usb/gadget/udc/lpc32xx_udc.c spin_lock_irqsave(&ep->udc->lock, flags); ep 1855 drivers/usb/gadget/udc/lpc32xx_udc.c list_for_each_entry(req, &ep->queue, queue) { ep 1860 drivers/usb/gadget/udc/lpc32xx_udc.c spin_unlock_irqrestore(&ep->udc->lock, flags); ep 1864 drivers/usb/gadget/udc/lpc32xx_udc.c done(ep, req, -ECONNRESET); ep 1866 drivers/usb/gadget/udc/lpc32xx_udc.c spin_unlock_irqrestore(&ep->udc->lock, flags); ep 1874 drivers/usb/gadget/udc/lpc32xx_udc.c struct lpc32xx_ep *ep = container_of(_ep, struct lpc32xx_ep, ep); ep 1875 drivers/usb/gadget/udc/lpc32xx_udc.c struct lpc32xx_udc *udc = ep->udc; ep 1878 drivers/usb/gadget/udc/lpc32xx_udc.c if ((!ep) || (ep->hwep_num <= 1)) ep 1882 drivers/usb/gadget/udc/lpc32xx_udc.c if (ep->is_in) ep 1889 drivers/usb/gadget/udc/lpc32xx_udc.c udc_protocol_cmd_data_w(udc, CMD_SET_EP_STAT(ep->hwep_num), ep 1893 drivers/usb/gadget/udc/lpc32xx_udc.c ep->wedge = 0; ep 1894 drivers/usb/gadget/udc/lpc32xx_udc.c udc_protocol_cmd_data_w(udc, CMD_SET_EP_STAT(ep->hwep_num), ep 1906 drivers/usb/gadget/udc/lpc32xx_udc.c struct lpc32xx_ep *ep = container_of(_ep, struct lpc32xx_ep, ep); ep 1908 drivers/usb/gadget/udc/lpc32xx_udc.c if (!_ep || !ep->udc) ep 1911 drivers/usb/gadget/udc/lpc32xx_udc.c ep->wedge = 1; ep 1928 drivers/usb/gadget/udc/lpc32xx_udc.c void udc_send_in_zlp(struct lpc32xx_udc *udc, struct lpc32xx_ep *ep) ep 1931 drivers/usb/gadget/udc/lpc32xx_udc.c udc_clearep_getsts(udc, ep->hwep_num); ep 1934 drivers/usb/gadget/udc/lpc32xx_udc.c udc_write_hwep(udc, ep->hwep_num, NULL, 0); ep 1942 drivers/usb/gadget/udc/lpc32xx_udc.c void udc_handle_eps(struct lpc32xx_udc *udc, struct lpc32xx_ep *ep) ep 1947 drivers/usb/gadget/udc/lpc32xx_udc.c if (ep->hwep_num <= 0) ep 1950 drivers/usb/gadget/udc/lpc32xx_udc.c uda_clear_hwepint(udc, ep->hwep_num); ep 1953 drivers/usb/gadget/udc/lpc32xx_udc.c if (!(udc->enabled_hwepints & (1 << ep->hwep_num))) ep 1957 drivers/usb/gadget/udc/lpc32xx_udc.c epstatus = udc_clearep_getsts(udc, ep->hwep_num); ep 1966 drivers/usb/gadget/udc/lpc32xx_udc.c if (ep->is_in) { ep 1967 drivers/usb/gadget/udc/lpc32xx_udc.c udc_send_in_zlp(udc, ep); ep 1968 drivers/usb/gadget/udc/lpc32xx_udc.c uda_disable_hwepint(udc, ep->hwep_num); ep 1973 drivers/usb/gadget/udc/lpc32xx_udc.c req = list_entry(ep->queue.next, struct lpc32xx_request, queue); ep 1975 drivers/usb/gadget/udc/lpc32xx_udc.c done(ep, req, 0); ep 1978 drivers/usb/gadget/udc/lpc32xx_udc.c if (!list_empty(&ep->queue)) { ep 1979 drivers/usb/gadget/udc/lpc32xx_udc.c if (ep->is_in) ep 1980 drivers/usb/gadget/udc/lpc32xx_udc.c udc_ep_in_req_dma(udc, ep); ep 1982 drivers/usb/gadget/udc/lpc32xx_udc.c udc_ep_out_req_dma(udc, ep); ep 1984 drivers/usb/gadget/udc/lpc32xx_udc.c ep->req_pending = 0; ep 1990 drivers/usb/gadget/udc/lpc32xx_udc.c static void udc_handle_dma_ep(struct lpc32xx_udc *udc, struct lpc32xx_ep *ep) ep 1997 drivers/usb/gadget/udc/lpc32xx_udc.c ep->totalints++; ep 2000 drivers/usb/gadget/udc/lpc32xx_udc.c req = list_entry(ep->queue.next, struct lpc32xx_request, queue); ep 2002 drivers/usb/gadget/udc/lpc32xx_udc.c ep_err(ep, "DMA interrupt on no req!\n"); ep 2009 drivers/usb/gadget/udc/lpc32xx_udc.c ep_warn(ep, "DMA descriptor did not retire\n"); ep 2012 drivers/usb/gadget/udc/lpc32xx_udc.c udc_ep_dma_disable(udc, ep->hwep_num); ep 2013 drivers/usb/gadget/udc/lpc32xx_udc.c writel((1 << ep->hwep_num), USBD_EOTINTCLR(udc->udp_baseaddr)); ep 2014 drivers/usb/gadget/udc/lpc32xx_udc.c writel((1 << ep->hwep_num), USBD_NDDRTINTCLR(udc->udp_baseaddr)); ep 2018 drivers/usb/gadget/udc/lpc32xx_udc.c (1 << ep->hwep_num)) { ep 2019 drivers/usb/gadget/udc/lpc32xx_udc.c writel((1 << ep->hwep_num), ep 2021 drivers/usb/gadget/udc/lpc32xx_udc.c ep_err(ep, "AHB critical error!\n"); ep 2022 drivers/usb/gadget/udc/lpc32xx_udc.c ep->req_pending = 0; ep 2027 drivers/usb/gadget/udc/lpc32xx_udc.c done(ep, req, -ECONNABORTED); ep 2036 drivers/usb/gadget/udc/lpc32xx_udc.c ep->req_pending = 0; ep 2037 drivers/usb/gadget/udc/lpc32xx_udc.c ep_err(ep, "DMA critical EP error: DD not serviced (0x%x)!\n", ep 2040 drivers/usb/gadget/udc/lpc32xx_udc.c done(ep, req, -ECONNABORTED); ep 2045 drivers/usb/gadget/udc/lpc32xx_udc.c ep->req_pending = 0; ep 2046 drivers/usb/gadget/udc/lpc32xx_udc.c ep_err(ep, "DMA critical EP error: EOT prior to service completion (0x%x)!\n", ep 2048 drivers/usb/gadget/udc/lpc32xx_udc.c done(ep, req, -ECONNABORTED); ep 2059 drivers/usb/gadget/udc/lpc32xx_udc.c ep->req_pending = 0; ep 2060 drivers/usb/gadget/udc/lpc32xx_udc.c ep_err(ep, "DMA critical EP error: System error (0x%x)!\n", ep 2062 drivers/usb/gadget/udc/lpc32xx_udc.c done(ep, req, -ECONNABORTED); ep 2067 drivers/usb/gadget/udc/lpc32xx_udc.c if (ep->eptype == EP_ISO_TYPE) { ep 2068 drivers/usb/gadget/udc/lpc32xx_udc.c if (ep->is_in) ep 2083 drivers/usb/gadget/udc/lpc32xx_udc.c if (udc_clearep_getsts(udc, ep->hwep_num) & EP_SEL_F) { ep 2084 drivers/usb/gadget/udc/lpc32xx_udc.c udc_clearep_getsts(udc, ep->hwep_num); ep 2085 drivers/usb/gadget/udc/lpc32xx_udc.c uda_enable_hwepint(udc, ep->hwep_num); ep 2086 drivers/usb/gadget/udc/lpc32xx_udc.c udc_clearep_getsts(udc, ep->hwep_num); ep 2091 drivers/usb/gadget/udc/lpc32xx_udc.c udc_send_in_zlp(udc, ep); ep 2095 drivers/usb/gadget/udc/lpc32xx_udc.c done(ep, req, 0); ep 2098 drivers/usb/gadget/udc/lpc32xx_udc.c udc_clearep_getsts(udc, ep->hwep_num); ep 2099 drivers/usb/gadget/udc/lpc32xx_udc.c if (!list_empty((&ep->queue))) { ep 2100 drivers/usb/gadget/udc/lpc32xx_udc.c if (ep->is_in) ep 2101 drivers/usb/gadget/udc/lpc32xx_udc.c udc_ep_in_req_dma(udc, ep); ep 2103 drivers/usb/gadget/udc/lpc32xx_udc.c udc_ep_out_req_dma(udc, ep); ep 2105 drivers/usb/gadget/udc/lpc32xx_udc.c ep->req_pending = 0; ep 2148 drivers/usb/gadget/udc/lpc32xx_udc.c struct lpc32xx_ep *ep; ep 2163 drivers/usb/gadget/udc/lpc32xx_udc.c ep = &udc->ep[tmp]; ep 2168 drivers/usb/gadget/udc/lpc32xx_udc.c if (!ep->is_in) ep 2170 drivers/usb/gadget/udc/lpc32xx_udc.c } else if (ep->is_in) ep 2174 drivers/usb/gadget/udc/lpc32xx_udc.c udc_protocol_cmd_w(udc, CMD_SEL_EP(ep->hwep_num)); ep 2175 drivers/usb/gadget/udc/lpc32xx_udc.c tmp = udc_protocol_cmd_r(udc, DAT_SEL_EP(ep->hwep_num)); ep 2195 drivers/usb/gadget/udc/lpc32xx_udc.c struct lpc32xx_ep *ep, *ep0 = &udc->ep[0]; ep 2249 drivers/usb/gadget/udc/lpc32xx_udc.c ep = &udc->ep[tmp]; ep 2250 drivers/usb/gadget/udc/lpc32xx_udc.c tmp = ep->hwep_num; ep 2256 drivers/usb/gadget/udc/lpc32xx_udc.c else if (!ep->wedge) ep 2334 drivers/usb/gadget/udc/lpc32xx_udc.c struct lpc32xx_ep *ep0 = &udc->ep[0]; ep 2368 drivers/usb/gadget/udc/lpc32xx_udc.c struct lpc32xx_ep *ep0 = &udc->ep[0]; ep 2524 drivers/usb/gadget/udc/lpc32xx_udc.c .ep[0] = { ep 2525 drivers/usb/gadget/udc/lpc32xx_udc.c .ep = { ep 2537 drivers/usb/gadget/udc/lpc32xx_udc.c .ep[1] = { ep 2538 drivers/usb/gadget/udc/lpc32xx_udc.c .ep = { ep 2550 drivers/usb/gadget/udc/lpc32xx_udc.c .ep[2] = { ep 2551 drivers/usb/gadget/udc/lpc32xx_udc.c .ep = { ep 2563 drivers/usb/gadget/udc/lpc32xx_udc.c .ep[3] = { ep 2564 drivers/usb/gadget/udc/lpc32xx_udc.c .ep = { ep 2576 drivers/usb/gadget/udc/lpc32xx_udc.c .ep[4] = { ep 2577 drivers/usb/gadget/udc/lpc32xx_udc.c .ep = { ep 2589 drivers/usb/gadget/udc/lpc32xx_udc.c .ep[5] = { ep 2590 drivers/usb/gadget/udc/lpc32xx_udc.c .ep = { ep 2602 drivers/usb/gadget/udc/lpc32xx_udc.c .ep[6] = { ep 2603 drivers/usb/gadget/udc/lpc32xx_udc.c .ep = { ep 2615 drivers/usb/gadget/udc/lpc32xx_udc.c .ep[7] = { ep 2616 drivers/usb/gadget/udc/lpc32xx_udc.c .ep = { ep 2628 drivers/usb/gadget/udc/lpc32xx_udc.c .ep[8] = { ep 2629 drivers/usb/gadget/udc/lpc32xx_udc.c .ep = { ep 2641 drivers/usb/gadget/udc/lpc32xx_udc.c .ep[9] = { ep 2642 drivers/usb/gadget/udc/lpc32xx_udc.c .ep = { ep 2654 drivers/usb/gadget/udc/lpc32xx_udc.c .ep[10] = { ep 2655 drivers/usb/gadget/udc/lpc32xx_udc.c .ep = { ep 2667 drivers/usb/gadget/udc/lpc32xx_udc.c .ep[11] = { ep 2668 drivers/usb/gadget/udc/lpc32xx_udc.c .ep = { ep 2680 drivers/usb/gadget/udc/lpc32xx_udc.c .ep[12] = { ep 2681 drivers/usb/gadget/udc/lpc32xx_udc.c .ep = { ep 2693 drivers/usb/gadget/udc/lpc32xx_udc.c .ep[13] = { ep 2694 drivers/usb/gadget/udc/lpc32xx_udc.c .ep = { ep 2706 drivers/usb/gadget/udc/lpc32xx_udc.c .ep[14] = { ep 2707 drivers/usb/gadget/udc/lpc32xx_udc.c .ep = { ep 2719 drivers/usb/gadget/udc/lpc32xx_udc.c .ep[15] = { ep 2720 drivers/usb/gadget/udc/lpc32xx_udc.c .ep = { ep 2804 drivers/usb/gadget/udc/lpc32xx_udc.c if (tmp & (1 << udc->ep[i].hwep_num)) ep 2805 drivers/usb/gadget/udc/lpc32xx_udc.c udc_handle_eps(udc, &udc->ep[i]); ep 2829 drivers/usb/gadget/udc/lpc32xx_udc.c if (tmp & (1 << udc->ep[i].hwep_num)) ep 2830 drivers/usb/gadget/udc/lpc32xx_udc.c udc_handle_dma_ep(udc, &udc->ep[i]); ep 3012 drivers/usb/gadget/udc/lpc32xx_udc.c udc->ep[i].udc = udc; ep 3013 drivers/usb/gadget/udc/lpc32xx_udc.c udc->gadget.ep0 = &udc->ep[0].ep; ep 35 drivers/usb/gadget/udc/m66592-udc.c static void irq_ep0_write(struct m66592_ep *ep, struct m66592_request *req); ep 36 drivers/usb/gadget/udc/m66592-udc.c static void irq_packet_write(struct m66592_ep *ep, struct m66592_request *req); ep 40 drivers/usb/gadget/udc/m66592-udc.c static void transfer_complete(struct m66592_ep *ep, ep 99 drivers/usb/gadget/udc/m66592-udc.c INIT_LIST_HEAD(&m66592->ep[0].queue); ep 208 drivers/usb/gadget/udc/m66592-udc.c struct m66592_ep *ep = m66592->pipenum2ep[pipenum]; ep 211 drivers/usb/gadget/udc/m66592-udc.c if (ep->use_dma) ep 214 drivers/usb/gadget/udc/m66592-udc.c m66592_mdfy(m66592, pipenum, M66592_CURPIPE, ep->fifosel); ep 223 drivers/usb/gadget/udc/m66592-udc.c m66592_bset(m66592, mbw, ep->fifosel); ep 300 drivers/usb/gadget/udc/m66592-udc.c static void pipe_initialize(struct m66592_ep *ep) ep 302 drivers/usb/gadget/udc/m66592-udc.c struct m66592 *m66592 = ep->m66592; ep 305 drivers/usb/gadget/udc/m66592-udc.c m66592_mdfy(m66592, 0, M66592_CURPIPE, ep->fifosel); ep 307 drivers/usb/gadget/udc/m66592-udc.c m66592_write(m66592, M66592_ACLRM, ep->pipectr); ep 308 drivers/usb/gadget/udc/m66592-udc.c m66592_write(m66592, 0, ep->pipectr); ep 309 drivers/usb/gadget/udc/m66592-udc.c m66592_write(m66592, M66592_SQCLR, ep->pipectr); ep 310 drivers/usb/gadget/udc/m66592-udc.c if (ep->use_dma) { ep 311 drivers/usb/gadget/udc/m66592-udc.c m66592_mdfy(m66592, ep->pipenum, M66592_CURPIPE, ep->fifosel); ep 320 drivers/usb/gadget/udc/m66592-udc.c m66592_bset(m66592, mbw, ep->fifosel); ep 324 drivers/usb/gadget/udc/m66592-udc.c static void m66592_ep_setting(struct m66592 *m66592, struct m66592_ep *ep, ep 331 drivers/usb/gadget/udc/m66592-udc.c ep->use_dma = 1; ep 332 drivers/usb/gadget/udc/m66592-udc.c ep->fifoaddr = M66592_D0FIFO; ep 333 drivers/usb/gadget/udc/m66592-udc.c ep->fifosel = M66592_D0FIFOSEL; ep 334 drivers/usb/gadget/udc/m66592-udc.c ep->fifoctr = M66592_D0FIFOCTR; ep 335 drivers/usb/gadget/udc/m66592-udc.c ep->fifotrn = M66592_D0FIFOTRN; ep 338 drivers/usb/gadget/udc/m66592-udc.c ep->use_dma = 1; ep 339 drivers/usb/gadget/udc/m66592-udc.c ep->fifoaddr = M66592_D1FIFO; ep 340 drivers/usb/gadget/udc/m66592-udc.c ep->fifosel = M66592_D1FIFOSEL; ep 341 drivers/usb/gadget/udc/m66592-udc.c ep->fifoctr = M66592_D1FIFOCTR; ep 342 drivers/usb/gadget/udc/m66592-udc.c ep->fifotrn = M66592_D1FIFOTRN; ep 344 drivers/usb/gadget/udc/m66592-udc.c ep->use_dma = 0; ep 345 drivers/usb/gadget/udc/m66592-udc.c ep->fifoaddr = M66592_CFIFO; ep 346 drivers/usb/gadget/udc/m66592-udc.c ep->fifosel = M66592_CFIFOSEL; ep 347 drivers/usb/gadget/udc/m66592-udc.c ep->fifoctr = M66592_CFIFOCTR; ep 348 drivers/usb/gadget/udc/m66592-udc.c ep->fifotrn = 0; ep 351 drivers/usb/gadget/udc/m66592-udc.c ep->use_dma = 0; ep 352 drivers/usb/gadget/udc/m66592-udc.c ep->fifoaddr = M66592_CFIFO; ep 353 drivers/usb/gadget/udc/m66592-udc.c ep->fifosel = M66592_CFIFOSEL; ep 354 drivers/usb/gadget/udc/m66592-udc.c ep->fifoctr = M66592_CFIFOCTR; ep 355 drivers/usb/gadget/udc/m66592-udc.c ep->fifotrn = 0; ep 358 drivers/usb/gadget/udc/m66592-udc.c ep->pipectr = get_pipectr_addr(pipenum); ep 359 drivers/usb/gadget/udc/m66592-udc.c ep->pipenum = pipenum; ep 360 drivers/usb/gadget/udc/m66592-udc.c ep->ep.maxpacket = usb_endpoint_maxp(desc); ep 361 drivers/usb/gadget/udc/m66592-udc.c m66592->pipenum2ep[pipenum] = ep; ep 362 drivers/usb/gadget/udc/m66592-udc.c m66592->epaddr2ep[desc->bEndpointAddress&USB_ENDPOINT_NUMBER_MASK] = ep; ep 363 drivers/usb/gadget/udc/m66592-udc.c INIT_LIST_HEAD(&ep->queue); ep 366 drivers/usb/gadget/udc/m66592-udc.c static void m66592_ep_release(struct m66592_ep *ep) ep 368 drivers/usb/gadget/udc/m66592-udc.c struct m66592 *m66592 = ep->m66592; ep 369 drivers/usb/gadget/udc/m66592-udc.c u16 pipenum = ep->pipenum; ep 374 drivers/usb/gadget/udc/m66592-udc.c if (ep->use_dma) ep 376 drivers/usb/gadget/udc/m66592-udc.c ep->pipenum = 0; ep 377 drivers/usb/gadget/udc/m66592-udc.c ep->busy = 0; ep 378 drivers/usb/gadget/udc/m66592-udc.c ep->use_dma = 0; ep 381 drivers/usb/gadget/udc/m66592-udc.c static int alloc_pipe_config(struct m66592_ep *ep, ep 384 drivers/usb/gadget/udc/m66592-udc.c struct m66592 *m66592 = ep->m66592; ep 390 drivers/usb/gadget/udc/m66592-udc.c ep->ep.desc = desc; ep 392 drivers/usb/gadget/udc/m66592-udc.c BUG_ON(ep->pipenum); ep 434 drivers/usb/gadget/udc/m66592-udc.c ep->type = info.type; ep 454 drivers/usb/gadget/udc/m66592-udc.c m66592_ep_setting(m66592, ep, desc, info.pipe, dma); ep 455 drivers/usb/gadget/udc/m66592-udc.c pipe_initialize(ep); ep 460 drivers/usb/gadget/udc/m66592-udc.c static int free_pipe_config(struct m66592_ep *ep) ep 462 drivers/usb/gadget/udc/m66592-udc.c struct m66592 *m66592 = ep->m66592; ep 465 drivers/usb/gadget/udc/m66592-udc.c info.pipe = ep->pipenum; ep 466 drivers/usb/gadget/udc/m66592-udc.c info.type = ep->type; ep 468 drivers/usb/gadget/udc/m66592-udc.c m66592_ep_release(ep); ep 489 drivers/usb/gadget/udc/m66592-udc.c m66592->ep[0].internal_ccpl = ccpl; ep 494 drivers/usb/gadget/udc/m66592-udc.c static void start_ep0_write(struct m66592_ep *ep, struct m66592_request *req) ep 496 drivers/usb/gadget/udc/m66592-udc.c struct m66592 *m66592 = ep->m66592; ep 498 drivers/usb/gadget/udc/m66592-udc.c pipe_change(m66592, ep->pipenum); ep 502 drivers/usb/gadget/udc/m66592-udc.c m66592_write(m66592, M66592_BCLR, ep->fifoctr); ep 504 drivers/usb/gadget/udc/m66592-udc.c m66592_bset(m66592, M66592_BVAL, ep->fifoctr); ep 506 drivers/usb/gadget/udc/m66592-udc.c transfer_complete(ep, req, 0); ep 509 drivers/usb/gadget/udc/m66592-udc.c irq_ep0_write(ep, req); ep 513 drivers/usb/gadget/udc/m66592-udc.c static void start_packet_write(struct m66592_ep *ep, struct m66592_request *req) ep 515 drivers/usb/gadget/udc/m66592-udc.c struct m66592 *m66592 = ep->m66592; ep 518 drivers/usb/gadget/udc/m66592-udc.c pipe_change(m66592, ep->pipenum); ep 519 drivers/usb/gadget/udc/m66592-udc.c disable_irq_empty(m66592, ep->pipenum); ep 520 drivers/usb/gadget/udc/m66592-udc.c pipe_start(m66592, ep->pipenum); ep 522 drivers/usb/gadget/udc/m66592-udc.c tmp = m66592_read(m66592, ep->fifoctr); ep 524 drivers/usb/gadget/udc/m66592-udc.c pipe_irq_enable(m66592, ep->pipenum); ep 526 drivers/usb/gadget/udc/m66592-udc.c irq_packet_write(ep, req); ep 529 drivers/usb/gadget/udc/m66592-udc.c static void start_packet_read(struct m66592_ep *ep, struct m66592_request *req) ep 531 drivers/usb/gadget/udc/m66592-udc.c struct m66592 *m66592 = ep->m66592; ep 532 drivers/usb/gadget/udc/m66592-udc.c u16 pipenum = ep->pipenum; ep 534 drivers/usb/gadget/udc/m66592-udc.c if (ep->pipenum == 0) { ep 538 drivers/usb/gadget/udc/m66592-udc.c m66592_write(m66592, M66592_BCLR, ep->fifoctr); ep 542 drivers/usb/gadget/udc/m66592-udc.c if (ep->use_dma) { ep 543 drivers/usb/gadget/udc/m66592-udc.c m66592_bset(m66592, M66592_TRCLR, ep->fifosel); ep 545 drivers/usb/gadget/udc/m66592-udc.c m66592_bset(m66592, M66592_TRENB, ep->fifosel); ep 547 drivers/usb/gadget/udc/m66592-udc.c (req->req.length + ep->ep.maxpacket - 1) ep 548 drivers/usb/gadget/udc/m66592-udc.c / ep->ep.maxpacket, ep 549 drivers/usb/gadget/udc/m66592-udc.c ep->fifotrn); ep 556 drivers/usb/gadget/udc/m66592-udc.c static void start_packet(struct m66592_ep *ep, struct m66592_request *req) ep 558 drivers/usb/gadget/udc/m66592-udc.c if (ep->ep.desc->bEndpointAddress & USB_DIR_IN) ep 559 drivers/usb/gadget/udc/m66592-udc.c start_packet_write(ep, req); ep 561 drivers/usb/gadget/udc/m66592-udc.c start_packet_read(ep, req); ep 564 drivers/usb/gadget/udc/m66592-udc.c static void start_ep0(struct m66592_ep *ep, struct m66592_request *req) ep 568 drivers/usb/gadget/udc/m66592-udc.c ctsq = m66592_read(ep->m66592, M66592_INTSTS0) & M66592_CTSQ; ep 572 drivers/usb/gadget/udc/m66592-udc.c start_ep0_write(ep, req); ep 575 drivers/usb/gadget/udc/m66592-udc.c start_packet_read(ep, req); ep 579 drivers/usb/gadget/udc/m66592-udc.c control_end(ep->m66592, 0); ep 705 drivers/usb/gadget/udc/m66592-udc.c static void transfer_complete(struct m66592_ep *ep, ep 712 drivers/usb/gadget/udc/m66592-udc.c if (unlikely(ep->pipenum == 0)) { ep 713 drivers/usb/gadget/udc/m66592-udc.c if (ep->internal_ccpl) { ep 714 drivers/usb/gadget/udc/m66592-udc.c ep->internal_ccpl = 0; ep 720 drivers/usb/gadget/udc/m66592-udc.c if (ep->m66592->gadget.speed == USB_SPEED_UNKNOWN) ep 725 drivers/usb/gadget/udc/m66592-udc.c if (!list_empty(&ep->queue)) ep 728 drivers/usb/gadget/udc/m66592-udc.c spin_unlock(&ep->m66592->lock); ep 729 drivers/usb/gadget/udc/m66592-udc.c usb_gadget_giveback_request(&ep->ep, &req->req); ep 730 drivers/usb/gadget/udc/m66592-udc.c spin_lock(&ep->m66592->lock); ep 733 drivers/usb/gadget/udc/m66592-udc.c req = list_entry(ep->queue.next, struct m66592_request, queue); ep 734 drivers/usb/gadget/udc/m66592-udc.c if (ep->ep.desc) ep 735 drivers/usb/gadget/udc/m66592-udc.c start_packet(ep, req); ep 739 drivers/usb/gadget/udc/m66592-udc.c static void irq_ep0_write(struct m66592_ep *ep, struct m66592_request *req) ep 746 drivers/usb/gadget/udc/m66592-udc.c u16 pipenum = ep->pipenum; ep 747 drivers/usb/gadget/udc/m66592-udc.c struct m66592 *m66592 = ep->m66592; ep 750 drivers/usb/gadget/udc/m66592-udc.c m66592_bset(m66592, M66592_ISEL, ep->fifosel); ep 754 drivers/usb/gadget/udc/m66592-udc.c tmp = m66592_read(m66592, ep->fifoctr); ep 771 drivers/usb/gadget/udc/m66592-udc.c m66592_write_fifo(m66592, ep, buf, size); ep 772 drivers/usb/gadget/udc/m66592-udc.c if ((size == 0) || ((size % ep->ep.maxpacket) != 0)) ep 773 drivers/usb/gadget/udc/m66592-udc.c m66592_bset(m66592, M66592_BVAL, ep->fifoctr); ep 781 drivers/usb/gadget/udc/m66592-udc.c || (size % ep->ep.maxpacket) ep 792 drivers/usb/gadget/udc/m66592-udc.c static void irq_packet_write(struct m66592_ep *ep, struct m66592_request *req) ep 798 drivers/usb/gadget/udc/m66592-udc.c u16 pipenum = ep->pipenum; ep 799 drivers/usb/gadget/udc/m66592-udc.c struct m66592 *m66592 = ep->m66592; ep 802 drivers/usb/gadget/udc/m66592-udc.c tmp = m66592_read(m66592, ep->fifoctr); ep 817 drivers/usb/gadget/udc/m66592-udc.c m66592_write_fifo(m66592, ep, buf, size); ep 819 drivers/usb/gadget/udc/m66592-udc.c || ((size % ep->ep.maxpacket) != 0) ep 820 drivers/usb/gadget/udc/m66592-udc.c || ((bufsize != ep->ep.maxpacket) ep 822 drivers/usb/gadget/udc/m66592-udc.c m66592_bset(m66592, M66592_BVAL, ep->fifoctr); ep 829 drivers/usb/gadget/udc/m66592-udc.c || (size % ep->ep.maxpacket) ep 839 drivers/usb/gadget/udc/m66592-udc.c static void irq_packet_read(struct m66592_ep *ep, struct m66592_request *req) ep 845 drivers/usb/gadget/udc/m66592-udc.c u16 pipenum = ep->pipenum; ep 846 drivers/usb/gadget/udc/m66592-udc.c struct m66592 *m66592 = ep->m66592; ep 850 drivers/usb/gadget/udc/m66592-udc.c tmp = m66592_read(m66592, ep->fifoctr); ep 875 drivers/usb/gadget/udc/m66592-udc.c || (size % ep->ep.maxpacket) ep 885 drivers/usb/gadget/udc/m66592-udc.c m66592_write(m66592, M66592_BCLR, ep->fifoctr); ep 887 drivers/usb/gadget/udc/m66592-udc.c m66592_read_fifo(m66592, ep->fifoaddr, buf, size); ep 890 drivers/usb/gadget/udc/m66592-udc.c if ((ep->pipenum != 0) && finish) ep 891 drivers/usb/gadget/udc/m66592-udc.c transfer_complete(ep, req, 0); ep 898 drivers/usb/gadget/udc/m66592-udc.c struct m66592_ep *ep; ep 906 drivers/usb/gadget/udc/m66592-udc.c ep = &m66592->ep[0]; ep 907 drivers/usb/gadget/udc/m66592-udc.c req = list_entry(ep->queue.next, struct m66592_request, queue); ep 908 drivers/usb/gadget/udc/m66592-udc.c irq_packet_read(ep, req); ep 914 drivers/usb/gadget/udc/m66592-udc.c ep = m66592->pipenum2ep[pipenum]; ep 915 drivers/usb/gadget/udc/m66592-udc.c req = list_entry(ep->queue.next, ep 917 drivers/usb/gadget/udc/m66592-udc.c if (ep->ep.desc->bEndpointAddress & USB_DIR_IN) ep 918 drivers/usb/gadget/udc/m66592-udc.c irq_packet_write(ep, req); ep 920 drivers/usb/gadget/udc/m66592-udc.c irq_packet_read(ep, req); ep 931 drivers/usb/gadget/udc/m66592-udc.c struct m66592_ep *ep; ep 937 drivers/usb/gadget/udc/m66592-udc.c ep = &m66592->ep[0]; ep 938 drivers/usb/gadget/udc/m66592-udc.c req = list_entry(ep->queue.next, struct m66592_request, queue); ep 939 drivers/usb/gadget/udc/m66592-udc.c irq_ep0_write(ep, req); ep 950 drivers/usb/gadget/udc/m66592-udc.c ep = m66592->pipenum2ep[pipenum]; ep 951 drivers/usb/gadget/udc/m66592-udc.c req = list_entry(ep->queue.next, ep 954 drivers/usb/gadget/udc/m66592-udc.c if (!list_empty(&ep->queue)) ep 955 drivers/usb/gadget/udc/m66592-udc.c transfer_complete(ep, req, 0); ep 966 drivers/usb/gadget/udc/m66592-udc.c struct m66592_ep *ep; ep 979 drivers/usb/gadget/udc/m66592-udc.c ep = m66592->epaddr2ep[w_index & USB_ENDPOINT_NUMBER_MASK]; ep 980 drivers/usb/gadget/udc/m66592-udc.c pid = control_reg_get_pid(m66592, ep->pipenum); ep 1010 drivers/usb/gadget/udc/m66592-udc.c struct m66592_ep *ep; ep 1014 drivers/usb/gadget/udc/m66592-udc.c ep = m66592->epaddr2ep[w_index & USB_ENDPOINT_NUMBER_MASK]; ep 1015 drivers/usb/gadget/udc/m66592-udc.c pipe_stop(m66592, ep->pipenum); ep 1016 drivers/usb/gadget/udc/m66592-udc.c control_reg_sqclr(m66592, ep->pipenum); ep 1020 drivers/usb/gadget/udc/m66592-udc.c req = list_entry(ep->queue.next, ep 1022 drivers/usb/gadget/udc/m66592-udc.c if (ep->busy) { ep 1023 drivers/usb/gadget/udc/m66592-udc.c ep->busy = 0; ep 1024 drivers/usb/gadget/udc/m66592-udc.c if (list_empty(&ep->queue)) ep 1026 drivers/usb/gadget/udc/m66592-udc.c start_packet(ep, req); ep 1027 drivers/usb/gadget/udc/m66592-udc.c } else if (!list_empty(&ep->queue)) ep 1028 drivers/usb/gadget/udc/m66592-udc.c pipe_start(m66592, ep->pipenum); ep 1068 drivers/usb/gadget/udc/m66592-udc.c struct m66592_ep *ep; ep 1071 drivers/usb/gadget/udc/m66592-udc.c ep = m66592->epaddr2ep[w_index & USB_ENDPOINT_NUMBER_MASK]; ep 1072 drivers/usb/gadget/udc/m66592-udc.c pipe_stall(m66592, ep->pipenum); ep 1166 drivers/usb/gadget/udc/m66592-udc.c struct m66592_ep *ep; ep 1168 drivers/usb/gadget/udc/m66592-udc.c ep = &m66592->ep[0]; ep 1169 drivers/usb/gadget/udc/m66592-udc.c req = list_entry(ep->queue.next, struct m66592_request, queue); ep 1170 drivers/usb/gadget/udc/m66592-udc.c transfer_complete(ep, req, 0); ep 1302 drivers/usb/gadget/udc/m66592-udc.c struct m66592_ep *ep; ep 1304 drivers/usb/gadget/udc/m66592-udc.c ep = container_of(_ep, struct m66592_ep, ep); ep 1305 drivers/usb/gadget/udc/m66592-udc.c return alloc_pipe_config(ep, desc); ep 1310 drivers/usb/gadget/udc/m66592-udc.c struct m66592_ep *ep; ep 1314 drivers/usb/gadget/udc/m66592-udc.c ep = container_of(_ep, struct m66592_ep, ep); ep 1315 drivers/usb/gadget/udc/m66592-udc.c BUG_ON(!ep); ep 1317 drivers/usb/gadget/udc/m66592-udc.c while (!list_empty(&ep->queue)) { ep 1318 drivers/usb/gadget/udc/m66592-udc.c req = list_entry(ep->queue.next, struct m66592_request, queue); ep 1319 drivers/usb/gadget/udc/m66592-udc.c spin_lock_irqsave(&ep->m66592->lock, flags); ep 1320 drivers/usb/gadget/udc/m66592-udc.c transfer_complete(ep, req, -ECONNRESET); ep 1321 drivers/usb/gadget/udc/m66592-udc.c spin_unlock_irqrestore(&ep->m66592->lock, flags); ep 1324 drivers/usb/gadget/udc/m66592-udc.c pipe_irq_disable(ep->m66592, ep->pipenum); ep 1325 drivers/usb/gadget/udc/m66592-udc.c return free_pipe_config(ep); ep 1353 drivers/usb/gadget/udc/m66592-udc.c struct m66592_ep *ep; ep 1358 drivers/usb/gadget/udc/m66592-udc.c ep = container_of(_ep, struct m66592_ep, ep); ep 1361 drivers/usb/gadget/udc/m66592-udc.c if (ep->m66592->gadget.speed == USB_SPEED_UNKNOWN) ep 1364 drivers/usb/gadget/udc/m66592-udc.c spin_lock_irqsave(&ep->m66592->lock, flags); ep 1366 drivers/usb/gadget/udc/m66592-udc.c if (list_empty(&ep->queue)) ep 1369 drivers/usb/gadget/udc/m66592-udc.c list_add_tail(&req->queue, &ep->queue); ep 1373 drivers/usb/gadget/udc/m66592-udc.c if (ep->ep.desc == NULL) /* control */ ep 1374 drivers/usb/gadget/udc/m66592-udc.c start_ep0(ep, req); ep 1376 drivers/usb/gadget/udc/m66592-udc.c if (request && !ep->busy) ep 1377 drivers/usb/gadget/udc/m66592-udc.c start_packet(ep, req); ep 1380 drivers/usb/gadget/udc/m66592-udc.c spin_unlock_irqrestore(&ep->m66592->lock, flags); ep 1387 drivers/usb/gadget/udc/m66592-udc.c struct m66592_ep *ep; ep 1391 drivers/usb/gadget/udc/m66592-udc.c ep = container_of(_ep, struct m66592_ep, ep); ep 1394 drivers/usb/gadget/udc/m66592-udc.c spin_lock_irqsave(&ep->m66592->lock, flags); ep 1395 drivers/usb/gadget/udc/m66592-udc.c if (!list_empty(&ep->queue)) ep 1396 drivers/usb/gadget/udc/m66592-udc.c transfer_complete(ep, req, -ECONNRESET); ep 1397 drivers/usb/gadget/udc/m66592-udc.c spin_unlock_irqrestore(&ep->m66592->lock, flags); ep 1404 drivers/usb/gadget/udc/m66592-udc.c struct m66592_ep *ep = container_of(_ep, struct m66592_ep, ep); ep 1408 drivers/usb/gadget/udc/m66592-udc.c spin_lock_irqsave(&ep->m66592->lock, flags); ep 1409 drivers/usb/gadget/udc/m66592-udc.c if (!list_empty(&ep->queue)) { ep 1412 drivers/usb/gadget/udc/m66592-udc.c ep->busy = 1; ep 1413 drivers/usb/gadget/udc/m66592-udc.c pipe_stall(ep->m66592, ep->pipenum); ep 1415 drivers/usb/gadget/udc/m66592-udc.c ep->busy = 0; ep 1416 drivers/usb/gadget/udc/m66592-udc.c pipe_stop(ep->m66592, ep->pipenum); ep 1418 drivers/usb/gadget/udc/m66592-udc.c spin_unlock_irqrestore(&ep->m66592->lock, flags); ep 1424 drivers/usb/gadget/udc/m66592-udc.c struct m66592_ep *ep; ep 1427 drivers/usb/gadget/udc/m66592-udc.c ep = container_of(_ep, struct m66592_ep, ep); ep 1428 drivers/usb/gadget/udc/m66592-udc.c spin_lock_irqsave(&ep->m66592->lock, flags); ep 1429 drivers/usb/gadget/udc/m66592-udc.c if (list_empty(&ep->queue) && !ep->busy) { ep 1430 drivers/usb/gadget/udc/m66592-udc.c pipe_stop(ep->m66592, ep->pipenum); ep 1431 drivers/usb/gadget/udc/m66592-udc.c m66592_bclr(ep->m66592, M66592_BCLR, ep->fifoctr); ep 1433 drivers/usb/gadget/udc/m66592-udc.c spin_unlock_irqrestore(&ep->m66592->lock, flags); ep 1525 drivers/usb/gadget/udc/m66592-udc.c m66592_free_request(&m66592->ep[0].ep, m66592->ep0_req); ep 1534 drivers/usb/gadget/udc/m66592-udc.c static void nop_completion(struct usb_ep *ep, struct usb_request *r) ep 1615 drivers/usb/gadget/udc/m66592-udc.c m66592->gadget.ep0 = &m66592->ep[0].ep; ep 1618 drivers/usb/gadget/udc/m66592-udc.c struct m66592_ep *ep = &m66592->ep[i]; ep 1621 drivers/usb/gadget/udc/m66592-udc.c INIT_LIST_HEAD(&m66592->ep[i].ep.ep_list); ep 1622 drivers/usb/gadget/udc/m66592-udc.c list_add_tail(&m66592->ep[i].ep.ep_list, ep 1625 drivers/usb/gadget/udc/m66592-udc.c ep->m66592 = m66592; ep 1626 drivers/usb/gadget/udc/m66592-udc.c INIT_LIST_HEAD(&ep->queue); ep 1627 drivers/usb/gadget/udc/m66592-udc.c ep->ep.name = m66592_ep_name[i]; ep 1628 drivers/usb/gadget/udc/m66592-udc.c ep->ep.ops = &m66592_ep_ops; ep 1629 drivers/usb/gadget/udc/m66592-udc.c usb_ep_set_maxpacket_limit(&ep->ep, 512); ep 1632 drivers/usb/gadget/udc/m66592-udc.c ep->ep.caps.type_control = true; ep 1634 drivers/usb/gadget/udc/m66592-udc.c ep->ep.caps.type_iso = true; ep 1635 drivers/usb/gadget/udc/m66592-udc.c ep->ep.caps.type_bulk = true; ep 1636 drivers/usb/gadget/udc/m66592-udc.c ep->ep.caps.type_int = true; ep 1639 drivers/usb/gadget/udc/m66592-udc.c ep->ep.caps.dir_in = true; ep 1640 drivers/usb/gadget/udc/m66592-udc.c ep->ep.caps.dir_out = true; ep 1642 drivers/usb/gadget/udc/m66592-udc.c usb_ep_set_maxpacket_limit(&m66592->ep[0].ep, 64); ep 1643 drivers/usb/gadget/udc/m66592-udc.c m66592->ep[0].pipenum = 0; ep 1644 drivers/usb/gadget/udc/m66592-udc.c m66592->ep[0].fifoaddr = M66592_CFIFO; ep 1645 drivers/usb/gadget/udc/m66592-udc.c m66592->ep[0].fifosel = M66592_CFIFOSEL; ep 1646 drivers/usb/gadget/udc/m66592-udc.c m66592->ep[0].fifoctr = M66592_CFIFOCTR; ep 1647 drivers/usb/gadget/udc/m66592-udc.c m66592->ep[0].fifotrn = 0; ep 1648 drivers/usb/gadget/udc/m66592-udc.c m66592->ep[0].pipectr = get_pipectr_addr(0); ep 1649 drivers/usb/gadget/udc/m66592-udc.c m66592->pipenum2ep[0] = &m66592->ep[0]; ep 1650 drivers/usb/gadget/udc/m66592-udc.c m66592->epaddr2ep[0] = &m66592->ep[0]; ep 1652 drivers/usb/gadget/udc/m66592-udc.c m66592->ep0_req = m66592_alloc_request(&m66592->ep[0].ep, GFP_KERNEL); ep 1669 drivers/usb/gadget/udc/m66592-udc.c m66592_free_request(&m66592->ep[0].ep, m66592->ep0_req); ep 1681 drivers/usb/gadget/udc/m66592-udc.c m66592_free_request(&m66592->ep[0].ep, m66592->ep0_req); ep 442 drivers/usb/gadget/udc/m66592-udc.h struct usb_ep ep; ep 472 drivers/usb/gadget/udc/m66592-udc.h struct m66592_ep ep[M66592_MAX_NUM_PIPE]; ep 563 drivers/usb/gadget/udc/m66592-udc.h struct m66592_ep *ep, ep 566 drivers/usb/gadget/udc/m66592-udc.h void __iomem *fifoaddr = m66592->reg + ep->fifoaddr; ep 593 drivers/usb/gadget/udc/m66592-udc.h m66592_bclr(m66592, M66592_MBW_16, ep->fifosel); ep 596 drivers/usb/gadget/udc/m66592-udc.h m66592_bset(m66592, M66592_MBW_16, ep->fifosel); ep 117 drivers/usb/gadget/udc/mv_u3d.h #define mv_u3d_ep_dir(ep) (((ep)->ep_num == 0) ? \ ep 118 drivers/usb/gadget/udc/mv_u3d.h ((ep)->u3d->ep0_dir) : ((ep)->direction)) ep 288 drivers/usb/gadget/udc/mv_u3d.h struct usb_ep ep; ep 307 drivers/usb/gadget/udc/mv_u3d.h struct mv_u3d_ep *ep; ep 37 drivers/usb/gadget/udc/mv_u3d_core.c static void mv_u3d_nuke(struct mv_u3d_ep *ep, int status); ep 52 drivers/usb/gadget/udc/mv_u3d_core.c struct mv_u3d_ep *ep; ep 57 drivers/usb/gadget/udc/mv_u3d_core.c ep = &u3d->eps[i]; ep 58 drivers/usb/gadget/udc/mv_u3d_core.c ep->u3d = u3d; ep 61 drivers/usb/gadget/udc/mv_u3d_core.c ep->ep_context = &u3d->ep_context[1]; ep 175 drivers/usb/gadget/udc/mv_u3d_core.c void mv_u3d_done(struct mv_u3d_ep *ep, struct mv_u3d_req *req, int status) ep 176 drivers/usb/gadget/udc/mv_u3d_core.c __releases(&ep->udc->lock) ep 177 drivers/usb/gadget/udc/mv_u3d_core.c __acquires(&ep->udc->lock) ep 179 drivers/usb/gadget/udc/mv_u3d_core.c struct mv_u3d *u3d = (struct mv_u3d *)ep->u3d; ep 196 drivers/usb/gadget/udc/mv_u3d_core.c dma_unmap_single(ep->u3d->gadget.dev.parent, ep 204 drivers/usb/gadget/udc/mv_u3d_core.c usb_gadget_unmap_request(&u3d->gadget, &req->req, mv_u3d_ep_dir(ep)); ep 208 drivers/usb/gadget/udc/mv_u3d_core.c ep->ep.name, &req->req, status, ep 212 drivers/usb/gadget/udc/mv_u3d_core.c spin_unlock(&ep->u3d->lock); ep 214 drivers/usb/gadget/udc/mv_u3d_core.c usb_gadget_giveback_request(&ep->ep, &req->req); ep 216 drivers/usb/gadget/udc/mv_u3d_core.c spin_lock(&ep->u3d->lock); ep 219 drivers/usb/gadget/udc/mv_u3d_core.c static int mv_u3d_queue_trb(struct mv_u3d_ep *ep, struct mv_u3d_req *req) ep 226 drivers/usb/gadget/udc/mv_u3d_core.c u3d = ep->u3d; ep 227 drivers/usb/gadget/udc/mv_u3d_core.c direction = mv_u3d_ep_dir(ep); ep 230 drivers/usb/gadget/udc/mv_u3d_core.c if (ep->ep_num == 0) ep 233 drivers/usb/gadget/udc/mv_u3d_core.c ep_context = &(u3d->ep_context[ep->ep_num * 2 + direction]); ep 236 drivers/usb/gadget/udc/mv_u3d_core.c if (!list_empty(&ep->queue)) { ep 257 drivers/usb/gadget/udc/mv_u3d_core.c if (ep->ep_num == 0) ep 260 drivers/usb/gadget/udc/mv_u3d_core.c tmp = ep->ep_num * 2 ep 281 drivers/usb/gadget/udc/mv_u3d_core.c u3d = req->ep->u3d; ep 310 drivers/usb/gadget/udc/mv_u3d_core.c if (req->ep->ep_num == 0) ep 317 drivers/usb/gadget/udc/mv_u3d_core.c direction = mv_u3d_ep_dir(req->ep); ep 344 drivers/usb/gadget/udc/mv_u3d_core.c u3d = req->ep->u3d; ep 356 drivers/usb/gadget/udc/mv_u3d_core.c if (req->ep->ep_num == 0) ep 363 drivers/usb/gadget/udc/mv_u3d_core.c direction = mv_u3d_ep_dir(req->ep); ep 371 drivers/usb/gadget/udc/mv_u3d_core.c if (*length == 0 || (*length % req->ep->ep.maxpacket) != 0) ep 411 drivers/usb/gadget/udc/mv_u3d_core.c u3d = req->ep->u3d; ep 476 drivers/usb/gadget/udc/mv_u3d_core.c mv_u3d_start_queue(struct mv_u3d_ep *ep) ep 478 drivers/usb/gadget/udc/mv_u3d_core.c struct mv_u3d *u3d = ep->u3d; ep 482 drivers/usb/gadget/udc/mv_u3d_core.c if (!list_empty(&ep->req_list) && !ep->processing) ep 483 drivers/usb/gadget/udc/mv_u3d_core.c req = list_entry(ep->req_list.next, struct mv_u3d_req, list); ep 487 drivers/usb/gadget/udc/mv_u3d_core.c ep->processing = 1; ep 491 drivers/usb/gadget/udc/mv_u3d_core.c mv_u3d_ep_dir(ep)); ep 507 drivers/usb/gadget/udc/mv_u3d_core.c ret = mv_u3d_queue_trb(ep, req); ep 512 drivers/usb/gadget/udc/mv_u3d_core.c list_add_tail(&req->queue, &ep->queue); ep 517 drivers/usb/gadget/udc/mv_u3d_core.c ep->processing = 0; ep 525 drivers/usb/gadget/udc/mv_u3d_core.c struct mv_u3d_ep *ep; ep 533 drivers/usb/gadget/udc/mv_u3d_core.c ep = container_of(_ep, struct mv_u3d_ep, ep); ep 534 drivers/usb/gadget/udc/mv_u3d_core.c u3d = ep->u3d; ep 539 drivers/usb/gadget/udc/mv_u3d_core.c direction = mv_u3d_ep_dir(ep); ep 557 drivers/usb/gadget/udc/mv_u3d_core.c "maxburst: %d on bulk %s\n", maxburst, ep->name); ep 586 drivers/usb/gadget/udc/mv_u3d_core.c ep->ep.maxpacket = max; ep 587 drivers/usb/gadget/udc/mv_u3d_core.c ep->ep.desc = desc; ep 588 drivers/usb/gadget/udc/mv_u3d_core.c ep->enabled = 1; ep 592 drivers/usb/gadget/udc/mv_u3d_core.c epxcr = ioread32(&u3d->vuc_regs->epcr[ep->ep_num].epxoutcr0); ep 594 drivers/usb/gadget/udc/mv_u3d_core.c iowrite32(epxcr, &u3d->vuc_regs->epcr[ep->ep_num].epxoutcr0); ep 597 drivers/usb/gadget/udc/mv_u3d_core.c iowrite32(epxcr, &u3d->vuc_regs->epcr[ep->ep_num].epxoutcr0); ep 603 drivers/usb/gadget/udc/mv_u3d_core.c iowrite32(epxcr, &u3d->vuc_regs->epcr[ep->ep_num].epxoutcr1); ep 605 drivers/usb/gadget/udc/mv_u3d_core.c epxcr = ioread32(&u3d->vuc_regs->epcr[ep->ep_num].epxincr0); ep 607 drivers/usb/gadget/udc/mv_u3d_core.c iowrite32(epxcr, &u3d->vuc_regs->epcr[ep->ep_num].epxincr0); ep 610 drivers/usb/gadget/udc/mv_u3d_core.c iowrite32(epxcr, &u3d->vuc_regs->epcr[ep->ep_num].epxincr0); ep 616 drivers/usb/gadget/udc/mv_u3d_core.c iowrite32(epxcr, &u3d->vuc_regs->epcr[ep->ep_num].epxincr1); ep 627 drivers/usb/gadget/udc/mv_u3d_core.c struct mv_u3d_ep *ep; ep 634 drivers/usb/gadget/udc/mv_u3d_core.c ep = container_of(_ep, struct mv_u3d_ep, ep); ep 635 drivers/usb/gadget/udc/mv_u3d_core.c if (!ep->ep.desc) ep 638 drivers/usb/gadget/udc/mv_u3d_core.c u3d = ep->u3d; ep 640 drivers/usb/gadget/udc/mv_u3d_core.c direction = mv_u3d_ep_dir(ep); ep 644 drivers/usb/gadget/udc/mv_u3d_core.c mv_u3d_nuke(ep, -ESHUTDOWN); ep 649 drivers/usb/gadget/udc/mv_u3d_core.c epxcr = ioread32(&u3d->vuc_regs->epcr[ep->ep_num].epxoutcr1); ep 652 drivers/usb/gadget/udc/mv_u3d_core.c iowrite32(epxcr, &u3d->vuc_regs->epcr[ep->ep_num].epxoutcr1); ep 654 drivers/usb/gadget/udc/mv_u3d_core.c epxcr = ioread32(&u3d->vuc_regs->epcr[ep->ep_num].epxincr1); ep 657 drivers/usb/gadget/udc/mv_u3d_core.c iowrite32(epxcr, &u3d->vuc_regs->epcr[ep->ep_num].epxincr1); ep 660 drivers/usb/gadget/udc/mv_u3d_core.c ep->enabled = 0; ep 662 drivers/usb/gadget/udc/mv_u3d_core.c ep->ep.desc = NULL; ep 691 drivers/usb/gadget/udc/mv_u3d_core.c struct mv_u3d_ep *ep = container_of(_ep, struct mv_u3d_ep, ep); ep 696 drivers/usb/gadget/udc/mv_u3d_core.c if (!ep->enabled) ep 699 drivers/usb/gadget/udc/mv_u3d_core.c u3d = ep->u3d; ep 700 drivers/usb/gadget/udc/mv_u3d_core.c direction = mv_u3d_ep_dir(ep); ep 703 drivers/usb/gadget/udc/mv_u3d_core.c if (!ep->ep_num) { ep 723 drivers/usb/gadget/udc/mv_u3d_core.c tmp = ioread32(&u3d->vuc_regs->epcr[ep->ep_num].epxoutcr0); ep 725 drivers/usb/gadget/udc/mv_u3d_core.c iowrite32(tmp, &u3d->vuc_regs->epcr[ep->ep_num].epxoutcr0); ep 729 drivers/usb/gadget/udc/mv_u3d_core.c while (ioread32(&u3d->vuc_regs->epcr[ep->ep_num].epxoutcr0) & ep 737 drivers/usb/gadget/udc/mv_u3d_core.c "EP FLUSH TIMEOUT for ep%d%s\n", ep->ep_num, ep 745 drivers/usb/gadget/udc/mv_u3d_core.c tmp = ioread32(&u3d->vuc_regs->epcr[ep->ep_num].epxincr0); ep 747 drivers/usb/gadget/udc/mv_u3d_core.c iowrite32(tmp, &u3d->vuc_regs->epcr[ep->ep_num].epxincr0); ep 751 drivers/usb/gadget/udc/mv_u3d_core.c while (ioread32(&u3d->vuc_regs->epcr[ep->ep_num].epxincr0) & ep 759 drivers/usb/gadget/udc/mv_u3d_core.c "EP FLUSH TIMEOUT for ep%d%s\n", ep->ep_num, ep 773 drivers/usb/gadget/udc/mv_u3d_core.c struct mv_u3d_ep *ep; ep 782 drivers/usb/gadget/udc/mv_u3d_core.c ep = container_of(_ep, struct mv_u3d_ep, ep); ep 783 drivers/usb/gadget/udc/mv_u3d_core.c u3d = ep->u3d; ep 787 drivers/usb/gadget/udc/mv_u3d_core.c if (!ep->ep_num ep 810 drivers/usb/gadget/udc/mv_u3d_core.c if (unlikely(!ep->ep.desc)) { ep 814 drivers/usb/gadget/udc/mv_u3d_core.c if (ep->ep.desc->bmAttributes == USB_ENDPOINT_XFER_ISOC) { ep 815 drivers/usb/gadget/udc/mv_u3d_core.c if (req->req.length > ep->ep.maxpacket) ep 825 drivers/usb/gadget/udc/mv_u3d_core.c req->ep = ep; ep 828 drivers/usb/gadget/udc/mv_u3d_core.c spin_lock_irqsave(&ep->req_lock, flags); ep 829 drivers/usb/gadget/udc/mv_u3d_core.c is_first_req = list_empty(&ep->req_list); ep 830 drivers/usb/gadget/udc/mv_u3d_core.c list_add_tail(&req->list, &ep->req_list); ep 831 drivers/usb/gadget/udc/mv_u3d_core.c spin_unlock_irqrestore(&ep->req_lock, flags); ep 839 drivers/usb/gadget/udc/mv_u3d_core.c mv_u3d_start_queue(ep); ep 847 drivers/usb/gadget/udc/mv_u3d_core.c struct mv_u3d_ep *ep; ep 859 drivers/usb/gadget/udc/mv_u3d_core.c ep = container_of(_ep, struct mv_u3d_ep, ep); ep 860 drivers/usb/gadget/udc/mv_u3d_core.c u3d = ep->u3d; ep 862 drivers/usb/gadget/udc/mv_u3d_core.c spin_lock_irqsave(&ep->u3d->lock, flags); ep 865 drivers/usb/gadget/udc/mv_u3d_core.c list_for_each_entry(req, &ep->queue, queue) { ep 875 drivers/usb/gadget/udc/mv_u3d_core.c if (ep->queue.next == &req->queue) { ep 880 drivers/usb/gadget/udc/mv_u3d_core.c if (req->queue.next != &ep->queue) { ep 883 drivers/usb/gadget/udc/mv_u3d_core.c ep_context = ep->ep_context; ep 892 drivers/usb/gadget/udc/mv_u3d_core.c ep_context = ep->ep_context; ep 900 drivers/usb/gadget/udc/mv_u3d_core.c mv_u3d_done(ep, req, -ECONNRESET); ep 903 drivers/usb/gadget/udc/mv_u3d_core.c if (!list_empty(&ep->req_list)) { ep 905 drivers/usb/gadget/udc/mv_u3d_core.c curr_req = list_entry(ep->req_list.next, ep 909 drivers/usb/gadget/udc/mv_u3d_core.c ep->processing = 0; ep 914 drivers/usb/gadget/udc/mv_u3d_core.c spin_unlock_irqrestore(&ep->u3d->lock, flags); ep 922 drivers/usb/gadget/udc/mv_u3d_core.c struct mv_u3d_ep *ep = u3d->eps; ep 926 drivers/usb/gadget/udc/mv_u3d_core.c tmp = ioread32(&u3d->vuc_regs->epcr[ep->ep_num].epxoutcr0); ep 931 drivers/usb/gadget/udc/mv_u3d_core.c iowrite32(tmp, &u3d->vuc_regs->epcr[ep->ep_num].epxoutcr0); ep 933 drivers/usb/gadget/udc/mv_u3d_core.c tmp = ioread32(&u3d->vuc_regs->epcr[ep->ep_num].epxincr0); ep 938 drivers/usb/gadget/udc/mv_u3d_core.c iowrite32(tmp, &u3d->vuc_regs->epcr[ep->ep_num].epxincr0); ep 944 drivers/usb/gadget/udc/mv_u3d_core.c struct mv_u3d_ep *ep; ep 949 drivers/usb/gadget/udc/mv_u3d_core.c ep = container_of(_ep, struct mv_u3d_ep, ep); ep 950 drivers/usb/gadget/udc/mv_u3d_core.c u3d = ep->u3d; ep 951 drivers/usb/gadget/udc/mv_u3d_core.c if (!ep->ep.desc) { ep 956 drivers/usb/gadget/udc/mv_u3d_core.c if (ep->ep.desc->bmAttributes == USB_ENDPOINT_XFER_ISOC) { ep 965 drivers/usb/gadget/udc/mv_u3d_core.c if (halt && (mv_u3d_ep_dir(ep) == MV_U3D_EP_DIR_IN) ep 966 drivers/usb/gadget/udc/mv_u3d_core.c && !list_empty(&ep->queue)) { ep 971 drivers/usb/gadget/udc/mv_u3d_core.c spin_lock_irqsave(&ep->u3d->lock, flags); ep 972 drivers/usb/gadget/udc/mv_u3d_core.c mv_u3d_ep_set_stall(u3d, ep->ep_num, mv_u3d_ep_dir(ep), halt); ep 974 drivers/usb/gadget/udc/mv_u3d_core.c ep->wedge = 1; ep 976 drivers/usb/gadget/udc/mv_u3d_core.c ep->wedge = 0; ep 977 drivers/usb/gadget/udc/mv_u3d_core.c spin_unlock_irqrestore(&ep->u3d->lock, flags); ep 979 drivers/usb/gadget/udc/mv_u3d_core.c if (ep->ep_num == 0) ep 1303 drivers/usb/gadget/udc/mv_u3d_core.c struct mv_u3d_ep *ep; ep 1308 drivers/usb/gadget/udc/mv_u3d_core.c ep = &u3d->eps[1]; ep 1309 drivers/usb/gadget/udc/mv_u3d_core.c ep->u3d = u3d; ep 1310 drivers/usb/gadget/udc/mv_u3d_core.c strncpy(ep->name, "ep0", sizeof(ep->name)); ep 1311 drivers/usb/gadget/udc/mv_u3d_core.c ep->ep.name = ep->name; ep 1312 drivers/usb/gadget/udc/mv_u3d_core.c ep->ep.ops = &mv_u3d_ep_ops; ep 1313 drivers/usb/gadget/udc/mv_u3d_core.c ep->wedge = 0; ep 1314 drivers/usb/gadget/udc/mv_u3d_core.c usb_ep_set_maxpacket_limit(&ep->ep, MV_U3D_EP0_MAX_PKT_SIZE); ep 1315 drivers/usb/gadget/udc/mv_u3d_core.c ep->ep.caps.type_control = true; ep 1316 drivers/usb/gadget/udc/mv_u3d_core.c ep->ep.caps.dir_in = true; ep 1317 drivers/usb/gadget/udc/mv_u3d_core.c ep->ep.caps.dir_out = true; ep 1318 drivers/usb/gadget/udc/mv_u3d_core.c ep->ep_num = 0; ep 1319 drivers/usb/gadget/udc/mv_u3d_core.c ep->ep.desc = &mv_u3d_ep0_desc; ep 1320 drivers/usb/gadget/udc/mv_u3d_core.c INIT_LIST_HEAD(&ep->queue); ep 1321 drivers/usb/gadget/udc/mv_u3d_core.c INIT_LIST_HEAD(&ep->req_list); ep 1322 drivers/usb/gadget/udc/mv_u3d_core.c ep->ep_type = USB_ENDPOINT_XFER_CONTROL; ep 1325 drivers/usb/gadget/udc/mv_u3d_core.c ep->ep_context = &u3d->ep_context[1]; ep 1329 drivers/usb/gadget/udc/mv_u3d_core.c ep = &u3d->eps[i]; ep 1332 drivers/usb/gadget/udc/mv_u3d_core.c ep->direction = MV_U3D_EP_DIR_IN; ep 1333 drivers/usb/gadget/udc/mv_u3d_core.c ep->ep.caps.dir_in = true; ep 1336 drivers/usb/gadget/udc/mv_u3d_core.c ep->direction = MV_U3D_EP_DIR_OUT; ep 1337 drivers/usb/gadget/udc/mv_u3d_core.c ep->ep.caps.dir_out = true; ep 1339 drivers/usb/gadget/udc/mv_u3d_core.c ep->u3d = u3d; ep 1340 drivers/usb/gadget/udc/mv_u3d_core.c strncpy(ep->name, name, sizeof(ep->name)); ep 1341 drivers/usb/gadget/udc/mv_u3d_core.c ep->ep.name = ep->name; ep 1343 drivers/usb/gadget/udc/mv_u3d_core.c ep->ep.caps.type_iso = true; ep 1344 drivers/usb/gadget/udc/mv_u3d_core.c ep->ep.caps.type_bulk = true; ep 1345 drivers/usb/gadget/udc/mv_u3d_core.c ep->ep.caps.type_int = true; ep 1347 drivers/usb/gadget/udc/mv_u3d_core.c ep->ep.ops = &mv_u3d_ep_ops; ep 1348 drivers/usb/gadget/udc/mv_u3d_core.c usb_ep_set_maxpacket_limit(&ep->ep, (unsigned short) ~0); ep 1349 drivers/usb/gadget/udc/mv_u3d_core.c ep->ep_num = i / 2; ep 1351 drivers/usb/gadget/udc/mv_u3d_core.c INIT_LIST_HEAD(&ep->queue); ep 1352 drivers/usb/gadget/udc/mv_u3d_core.c list_add_tail(&ep->ep.ep_list, &u3d->gadget.ep_list); ep 1354 drivers/usb/gadget/udc/mv_u3d_core.c INIT_LIST_HEAD(&ep->req_list); ep 1355 drivers/usb/gadget/udc/mv_u3d_core.c spin_lock_init(&ep->req_lock); ep 1356 drivers/usb/gadget/udc/mv_u3d_core.c ep->ep_context = &u3d->ep_context[i]; ep 1363 drivers/usb/gadget/udc/mv_u3d_core.c static void mv_u3d_nuke(struct mv_u3d_ep *ep, int status) ep 1366 drivers/usb/gadget/udc/mv_u3d_core.c mv_u3d_ep_fifo_flush(&ep->ep); ep 1368 drivers/usb/gadget/udc/mv_u3d_core.c while (!list_empty(&ep->queue)) { ep 1370 drivers/usb/gadget/udc/mv_u3d_core.c req = list_entry(ep->queue.next, struct mv_u3d_req, queue); ep 1371 drivers/usb/gadget/udc/mv_u3d_core.c mv_u3d_done(ep, req, status); ep 1379 drivers/usb/gadget/udc/mv_u3d_core.c struct mv_u3d_ep *ep; ep 1383 drivers/usb/gadget/udc/mv_u3d_core.c list_for_each_entry(ep, &u3d->gadget.ep_list, ep.ep_list) { ep 1384 drivers/usb/gadget/udc/mv_u3d_core.c mv_u3d_nuke(ep, -ESHUTDOWN); ep 1936 drivers/usb/gadget/udc/mv_u3d_core.c u3d->gadget.ep0 = &u3d->eps[1].ep; /* gadget ep0 */ ep 226 drivers/usb/gadget/udc/mv_udc.h struct usb_ep ep; ep 242 drivers/usb/gadget/udc/mv_udc.h struct mv_ep *ep; ep 39 drivers/usb/gadget/udc/mv_udc_core.c #define ep_dir(ep) (((ep)->ep_num == 0) ? \ ep 40 drivers/usb/gadget/udc/mv_udc_core.c ((ep)->udc->ep0_dir) : ((ep)->direction)) ep 58 drivers/usb/gadget/udc/mv_udc_core.c static void nuke(struct mv_ep *ep, int status); ep 72 drivers/usb/gadget/udc/mv_udc_core.c struct mv_ep *ep; ep 78 drivers/usb/gadget/udc/mv_udc_core.c ep = &udc->eps[i]; ep 79 drivers/usb/gadget/udc/mv_udc_core.c ep->udc = udc; ep 82 drivers/usb/gadget/udc/mv_udc_core.c ep->dqh = &udc->ep_dqh[i]; ep 85 drivers/usb/gadget/udc/mv_udc_core.c ep->dqh->max_packet_length = ep 89 drivers/usb/gadget/udc/mv_udc_core.c ep->dqh->next_dtd_ptr = EP_QUEUE_HEAD_NEXT_TERMINATE; ep 184 drivers/usb/gadget/udc/mv_udc_core.c bit_pos = 1 << curr_req->ep->ep_num; ep 186 drivers/usb/gadget/udc/mv_udc_core.c bit_pos = 1 << (16 + curr_req->ep->ep_num); ep 207 drivers/usb/gadget/udc/mv_udc_core.c static void done(struct mv_ep *ep, struct mv_req *req, int status) ep 208 drivers/usb/gadget/udc/mv_udc_core.c __releases(&ep->udc->lock) ep 209 drivers/usb/gadget/udc/mv_udc_core.c __acquires(&ep->udc->lock) ep 212 drivers/usb/gadget/udc/mv_udc_core.c unsigned char stopped = ep->stopped; ep 216 drivers/usb/gadget/udc/mv_udc_core.c udc = (struct mv_udc *)ep->udc; ep 235 drivers/usb/gadget/udc/mv_udc_core.c usb_gadget_unmap_request(&udc->gadget, &req->req, ep_dir(ep)); ep 239 drivers/usb/gadget/udc/mv_udc_core.c ep->ep.name, &req->req, status, ep 242 drivers/usb/gadget/udc/mv_udc_core.c ep->stopped = 1; ep 244 drivers/usb/gadget/udc/mv_udc_core.c spin_unlock(&ep->udc->lock); ep 246 drivers/usb/gadget/udc/mv_udc_core.c usb_gadget_giveback_request(&ep->ep, &req->req); ep 248 drivers/usb/gadget/udc/mv_udc_core.c spin_lock(&ep->udc->lock); ep 249 drivers/usb/gadget/udc/mv_udc_core.c ep->stopped = stopped; ep 252 drivers/usb/gadget/udc/mv_udc_core.c static int queue_dtd(struct mv_ep *ep, struct mv_req *req) ep 261 drivers/usb/gadget/udc/mv_udc_core.c udc = ep->udc; ep 262 drivers/usb/gadget/udc/mv_udc_core.c direction = ep_dir(ep); ep 263 drivers/usb/gadget/udc/mv_udc_core.c dqh = &(udc->ep_dqh[ep->ep_num * 2 + direction]); ep 264 drivers/usb/gadget/udc/mv_udc_core.c bit_pos = 1 << (((direction == EP_DIR_OUT) ? 0 : 16) + ep->ep_num); ep 267 drivers/usb/gadget/udc/mv_udc_core.c if (!(list_empty(&ep->queue))) { ep 269 drivers/usb/gadget/udc/mv_udc_core.c lastreq = list_entry(ep->queue.prev, struct mv_req, queue); ep 344 drivers/usb/gadget/udc/mv_udc_core.c if (usb_endpoint_xfer_isoc(req->ep->ep.desc)) { ep 345 drivers/usb/gadget/udc/mv_udc_core.c dqh = req->ep->dqh; ep 349 drivers/usb/gadget/udc/mv_udc_core.c (unsigned)(mult * req->ep->ep.maxpacket)); ep 354 drivers/usb/gadget/udc/mv_udc_core.c udc = req->ep->udc; ep 378 drivers/usb/gadget/udc/mv_udc_core.c if (*length == 0 || (*length % req->ep->ep.maxpacket) != 0) ep 439 drivers/usb/gadget/udc/mv_udc_core.c struct mv_ep *ep; ep 447 drivers/usb/gadget/udc/mv_udc_core.c ep = container_of(_ep, struct mv_ep, ep); ep 448 drivers/usb/gadget/udc/mv_udc_core.c udc = ep->udc; ep 457 drivers/usb/gadget/udc/mv_udc_core.c direction = ep_dir(ep); ep 464 drivers/usb/gadget/udc/mv_udc_core.c bit_pos = 1 << ((direction == EP_DIR_OUT ? 0 : 16) + ep->ep_num); ep 472 drivers/usb/gadget/udc/mv_udc_core.c (unsigned)ep->ep_num, direction ? "SEND" : "RECV", ep 502 drivers/usb/gadget/udc/mv_udc_core.c dqh = ep->dqh; ep 510 drivers/usb/gadget/udc/mv_udc_core.c ep->ep.maxpacket = max; ep 511 drivers/usb/gadget/udc/mv_udc_core.c ep->ep.desc = desc; ep 512 drivers/usb/gadget/udc/mv_udc_core.c ep->stopped = 0; ep 515 drivers/usb/gadget/udc/mv_udc_core.c epctrlx = readl(&udc->op_regs->epctrlx[ep->ep_num]); ep 527 drivers/usb/gadget/udc/mv_udc_core.c writel(epctrlx, &udc->op_regs->epctrlx[ep->ep_num]); ep 533 drivers/usb/gadget/udc/mv_udc_core.c epctrlx = readl(&udc->op_regs->epctrlx[ep->ep_num]); ep 537 drivers/usb/gadget/udc/mv_udc_core.c writel(epctrlx, &udc->op_regs->epctrlx[ep->ep_num]); ep 540 drivers/usb/gadget/udc/mv_udc_core.c epctrlx = readl(&udc->op_regs->epctrlx[ep->ep_num]); ep 544 drivers/usb/gadget/udc/mv_udc_core.c writel(epctrlx, &udc->op_regs->epctrlx[ep->ep_num]); ep 557 drivers/usb/gadget/udc/mv_udc_core.c struct mv_ep *ep; ep 562 drivers/usb/gadget/udc/mv_udc_core.c ep = container_of(_ep, struct mv_ep, ep); ep 563 drivers/usb/gadget/udc/mv_udc_core.c if ((_ep == NULL) || !ep->ep.desc) ep 566 drivers/usb/gadget/udc/mv_udc_core.c udc = ep->udc; ep 569 drivers/usb/gadget/udc/mv_udc_core.c dqh = ep->dqh; ep 573 drivers/usb/gadget/udc/mv_udc_core.c direction = ep_dir(ep); ep 579 drivers/usb/gadget/udc/mv_udc_core.c epctrlx = readl(&udc->op_regs->epctrlx[ep->ep_num]); ep 583 drivers/usb/gadget/udc/mv_udc_core.c writel(epctrlx, &udc->op_regs->epctrlx[ep->ep_num]); ep 586 drivers/usb/gadget/udc/mv_udc_core.c nuke(ep, -ESHUTDOWN); ep 588 drivers/usb/gadget/udc/mv_udc_core.c ep->ep.desc = NULL; ep 589 drivers/usb/gadget/udc/mv_udc_core.c ep->stopped = 1; ep 625 drivers/usb/gadget/udc/mv_udc_core.c struct mv_ep *ep; ep 631 drivers/usb/gadget/udc/mv_udc_core.c ep = container_of(_ep, struct mv_ep, ep); ep 632 drivers/usb/gadget/udc/mv_udc_core.c if (!ep->ep.desc) ep 635 drivers/usb/gadget/udc/mv_udc_core.c udc = ep->udc; ep 636 drivers/usb/gadget/udc/mv_udc_core.c direction = ep_dir(ep); ep 638 drivers/usb/gadget/udc/mv_udc_core.c if (ep->ep_num == 0) ep 641 drivers/usb/gadget/udc/mv_udc_core.c bit_pos = 1 << ep->ep_num; ep 643 drivers/usb/gadget/udc/mv_udc_core.c bit_pos = 1 << (16 + ep->ep_num); ep 685 drivers/usb/gadget/udc/mv_udc_core.c struct mv_ep *ep = container_of(_ep, struct mv_ep, ep); ep 687 drivers/usb/gadget/udc/mv_udc_core.c struct mv_udc *udc = ep->udc; ep 697 drivers/usb/gadget/udc/mv_udc_core.c if (unlikely(!_ep || !ep->ep.desc)) { ep 702 drivers/usb/gadget/udc/mv_udc_core.c udc = ep->udc; ep 706 drivers/usb/gadget/udc/mv_udc_core.c req->ep = ep; ep 709 drivers/usb/gadget/udc/mv_udc_core.c retval = usb_gadget_map_request(&udc->gadget, _req, ep_dir(ep)); ep 721 drivers/usb/gadget/udc/mv_udc_core.c retval = queue_dtd(ep, req); ep 735 drivers/usb/gadget/udc/mv_udc_core.c if (ep->ep_num == 0) ep 739 drivers/usb/gadget/udc/mv_udc_core.c list_add_tail(&req->queue, &ep->queue); ep 745 drivers/usb/gadget/udc/mv_udc_core.c usb_gadget_unmap_request(&udc->gadget, _req, ep_dir(ep)); ep 750 drivers/usb/gadget/udc/mv_udc_core.c static void mv_prime_ep(struct mv_ep *ep, struct mv_req *req) ep 752 drivers/usb/gadget/udc/mv_udc_core.c struct mv_dqh *dqh = ep->dqh; ep 765 drivers/usb/gadget/udc/mv_udc_core.c bit_pos = 1 << (((ep_dir(ep) == EP_DIR_OUT) ? 0 : 16) + ep->ep_num); ep 768 drivers/usb/gadget/udc/mv_udc_core.c writel(bit_pos, &ep->udc->op_regs->epprime); ep 774 drivers/usb/gadget/udc/mv_udc_core.c struct mv_ep *ep = container_of(_ep, struct mv_ep, ep); ep 776 drivers/usb/gadget/udc/mv_udc_core.c struct mv_udc *udc = ep->udc; ep 784 drivers/usb/gadget/udc/mv_udc_core.c spin_lock_irqsave(&ep->udc->lock, flags); ep 785 drivers/usb/gadget/udc/mv_udc_core.c stopped = ep->stopped; ep 788 drivers/usb/gadget/udc/mv_udc_core.c ep->stopped = 1; ep 789 drivers/usb/gadget/udc/mv_udc_core.c epctrlx = readl(&udc->op_regs->epctrlx[ep->ep_num]); ep 790 drivers/usb/gadget/udc/mv_udc_core.c if (ep_dir(ep) == EP_DIR_IN) ep 794 drivers/usb/gadget/udc/mv_udc_core.c writel(epctrlx, &udc->op_regs->epctrlx[ep->ep_num]); ep 797 drivers/usb/gadget/udc/mv_udc_core.c list_for_each_entry(req, &ep->queue, queue) { ep 807 drivers/usb/gadget/udc/mv_udc_core.c if (ep->queue.next == &req->queue) { ep 812 drivers/usb/gadget/udc/mv_udc_core.c if (req->queue.next != &ep->queue) { ep 819 drivers/usb/gadget/udc/mv_udc_core.c mv_prime_ep(ep, next_req); ep 823 drivers/usb/gadget/udc/mv_udc_core.c qh = ep->dqh; ep 838 drivers/usb/gadget/udc/mv_udc_core.c done(ep, req, -ECONNRESET); ep 842 drivers/usb/gadget/udc/mv_udc_core.c epctrlx = readl(&udc->op_regs->epctrlx[ep->ep_num]); ep 843 drivers/usb/gadget/udc/mv_udc_core.c if (ep_dir(ep) == EP_DIR_IN) ep 847 drivers/usb/gadget/udc/mv_udc_core.c writel(epctrlx, &udc->op_regs->epctrlx[ep->ep_num]); ep 848 drivers/usb/gadget/udc/mv_udc_core.c ep->stopped = stopped; ep 850 drivers/usb/gadget/udc/mv_udc_core.c spin_unlock_irqrestore(&ep->udc->lock, flags); ep 891 drivers/usb/gadget/udc/mv_udc_core.c struct mv_ep *ep; ep 896 drivers/usb/gadget/udc/mv_udc_core.c ep = container_of(_ep, struct mv_ep, ep); ep 897 drivers/usb/gadget/udc/mv_udc_core.c udc = ep->udc; ep 898 drivers/usb/gadget/udc/mv_udc_core.c if (!_ep || !ep->ep.desc) { ep 903 drivers/usb/gadget/udc/mv_udc_core.c if (ep->ep.desc->bmAttributes == USB_ENDPOINT_XFER_ISOC) { ep 912 drivers/usb/gadget/udc/mv_udc_core.c if (halt && (ep_dir(ep) == EP_DIR_IN) && !list_empty(&ep->queue)) { ep 917 drivers/usb/gadget/udc/mv_udc_core.c spin_lock_irqsave(&ep->udc->lock, flags); ep 918 drivers/usb/gadget/udc/mv_udc_core.c ep_set_stall(udc, ep->ep_num, ep_dir(ep), halt); ep 920 drivers/usb/gadget/udc/mv_udc_core.c ep->wedge = 1; ep 922 drivers/usb/gadget/udc/mv_udc_core.c ep->wedge = 0; ep 923 drivers/usb/gadget/udc/mv_udc_core.c spin_unlock_irqrestore(&ep->udc->lock, flags); ep 925 drivers/usb/gadget/udc/mv_udc_core.c if (ep->ep_num == 0) { ep 1238 drivers/usb/gadget/udc/mv_udc_core.c struct mv_ep *ep; ep 1243 drivers/usb/gadget/udc/mv_udc_core.c ep = &udc->eps[0]; ep 1244 drivers/usb/gadget/udc/mv_udc_core.c ep->udc = udc; ep 1245 drivers/usb/gadget/udc/mv_udc_core.c strncpy(ep->name, "ep0", sizeof(ep->name)); ep 1246 drivers/usb/gadget/udc/mv_udc_core.c ep->ep.name = ep->name; ep 1247 drivers/usb/gadget/udc/mv_udc_core.c ep->ep.ops = &mv_ep_ops; ep 1248 drivers/usb/gadget/udc/mv_udc_core.c ep->wedge = 0; ep 1249 drivers/usb/gadget/udc/mv_udc_core.c ep->stopped = 0; ep 1250 drivers/usb/gadget/udc/mv_udc_core.c usb_ep_set_maxpacket_limit(&ep->ep, EP0_MAX_PKT_SIZE); ep 1251 drivers/usb/gadget/udc/mv_udc_core.c ep->ep.caps.type_control = true; ep 1252 drivers/usb/gadget/udc/mv_udc_core.c ep->ep.caps.dir_in = true; ep 1253 drivers/usb/gadget/udc/mv_udc_core.c ep->ep.caps.dir_out = true; ep 1254 drivers/usb/gadget/udc/mv_udc_core.c ep->ep_num = 0; ep 1255 drivers/usb/gadget/udc/mv_udc_core.c ep->ep.desc = &mv_ep0_desc; ep 1256 drivers/usb/gadget/udc/mv_udc_core.c INIT_LIST_HEAD(&ep->queue); ep 1258 drivers/usb/gadget/udc/mv_udc_core.c ep->ep_type = USB_ENDPOINT_XFER_CONTROL; ep 1262 drivers/usb/gadget/udc/mv_udc_core.c ep = &udc->eps[i]; ep 1265 drivers/usb/gadget/udc/mv_udc_core.c ep->direction = EP_DIR_IN; ep 1266 drivers/usb/gadget/udc/mv_udc_core.c ep->ep.caps.dir_in = true; ep 1269 drivers/usb/gadget/udc/mv_udc_core.c ep->direction = EP_DIR_OUT; ep 1270 drivers/usb/gadget/udc/mv_udc_core.c ep->ep.caps.dir_out = true; ep 1272 drivers/usb/gadget/udc/mv_udc_core.c ep->udc = udc; ep 1273 drivers/usb/gadget/udc/mv_udc_core.c strncpy(ep->name, name, sizeof(ep->name)); ep 1274 drivers/usb/gadget/udc/mv_udc_core.c ep->ep.name = ep->name; ep 1276 drivers/usb/gadget/udc/mv_udc_core.c ep->ep.caps.type_iso = true; ep 1277 drivers/usb/gadget/udc/mv_udc_core.c ep->ep.caps.type_bulk = true; ep 1278 drivers/usb/gadget/udc/mv_udc_core.c ep->ep.caps.type_int = true; ep 1280 drivers/usb/gadget/udc/mv_udc_core.c ep->ep.ops = &mv_ep_ops; ep 1281 drivers/usb/gadget/udc/mv_udc_core.c ep->stopped = 0; ep 1282 drivers/usb/gadget/udc/mv_udc_core.c usb_ep_set_maxpacket_limit(&ep->ep, (unsigned short) ~0); ep 1283 drivers/usb/gadget/udc/mv_udc_core.c ep->ep_num = i / 2; ep 1285 drivers/usb/gadget/udc/mv_udc_core.c INIT_LIST_HEAD(&ep->queue); ep 1286 drivers/usb/gadget/udc/mv_udc_core.c list_add_tail(&ep->ep.ep_list, &udc->gadget.ep_list); ep 1288 drivers/usb/gadget/udc/mv_udc_core.c ep->dqh = &udc->ep_dqh[i]; ep 1295 drivers/usb/gadget/udc/mv_udc_core.c static void nuke(struct mv_ep *ep, int status) ep 1298 drivers/usb/gadget/udc/mv_udc_core.c ep->stopped = 1; ep 1301 drivers/usb/gadget/udc/mv_udc_core.c mv_ep_fifo_flush(&ep->ep); ep 1303 drivers/usb/gadget/udc/mv_udc_core.c while (!list_empty(&ep->queue)) { ep 1305 drivers/usb/gadget/udc/mv_udc_core.c req = list_entry(ep->queue.next, struct mv_req, queue); ep 1306 drivers/usb/gadget/udc/mv_udc_core.c done(ep, req, status); ep 1312 drivers/usb/gadget/udc/mv_udc_core.c struct mv_ep *ep; ep 1316 drivers/usb/gadget/udc/mv_udc_core.c list_for_each_entry(ep, &udc->gadget.ep_list, ep.ep_list) { ep 1317 drivers/usb/gadget/udc/mv_udc_core.c nuke(ep, -ESHUTDOWN); ep 1330 drivers/usb/gadget/udc/mv_udc_core.c struct mv_ep *ep; ep 1334 drivers/usb/gadget/udc/mv_udc_core.c list_for_each_entry(ep, &udc->gadget.ep_list, ep.ep_list) { ep 1335 drivers/usb/gadget/udc/mv_udc_core.c nuke(ep, -ESHUTDOWN); ep 1422 drivers/usb/gadget/udc/mv_udc_core.c static void prime_status_complete(struct usb_ep *ep, struct usb_request *_req) ep 1424 drivers/usb/gadget/udc/mv_udc_core.c struct mv_ep *mvep = container_of(ep, struct mv_ep, ep); ep 1446 drivers/usb/gadget/udc/mv_udc_core.c struct mv_ep *ep; ep 1448 drivers/usb/gadget/udc/mv_udc_core.c ep = &udc->eps[0]; ep 1461 drivers/usb/gadget/udc/mv_udc_core.c req->ep = ep; ep 1473 drivers/usb/gadget/udc/mv_udc_core.c req->req.dma = dma_map_single(ep->udc->gadget.dev.parent, ep 1475 drivers/usb/gadget/udc/mv_udc_core.c ep_dir(ep) ? DMA_TO_DEVICE : DMA_FROM_DEVICE); ep 1481 drivers/usb/gadget/udc/mv_udc_core.c retval = queue_dtd(ep, req); ep 1494 drivers/usb/gadget/udc/mv_udc_core.c list_add_tail(&req->queue, &ep->queue); ep 1498 drivers/usb/gadget/udc/mv_udc_core.c usb_gadget_unmap_request(&udc->gadget, &req->req, ep_dir(ep)); ep 1564 drivers/usb/gadget/udc/mv_udc_core.c struct mv_ep *ep; ep 1585 drivers/usb/gadget/udc/mv_udc_core.c ep = &udc->eps[ep_num * 2 + direction]; ep 1586 drivers/usb/gadget/udc/mv_udc_core.c if (ep->wedge == 1) ep 1658 drivers/usb/gadget/udc/mv_udc_core.c __releases(&ep->udc->lock) ep 1659 drivers/usb/gadget/udc/mv_udc_core.c __acquires(&ep->udc->lock) ep 2259 drivers/usb/gadget/udc/mv_udc_core.c udc->gadget.ep0 = &udc->eps[0].ep; /* gadget ep0 */ ep 107 drivers/usb/gadget/udc/net2272.c static void assert_out_naking(struct net2272_ep *ep, const char *where) ep 115 drivers/usb/gadget/udc/net2272.c tmp = net2272_ep_read(ep, EP_STAT0); ep 117 drivers/usb/gadget/udc/net2272.c dev_dbg(ep->dev->dev, "%s %s %02x !NAK\n", ep 118 drivers/usb/gadget/udc/net2272.c ep->ep.name, where, tmp); ep 119 drivers/usb/gadget/udc/net2272.c net2272_ep_write(ep, EP_RSPSET, 1 << ALT_NAK_OUT_PACKETS); ep 122 drivers/usb/gadget/udc/net2272.c #define ASSERT_OUT_NAKING(ep) assert_out_naking(ep, __func__) ep 124 drivers/usb/gadget/udc/net2272.c static void stop_out_naking(struct net2272_ep *ep) ep 126 drivers/usb/gadget/udc/net2272.c u8 tmp = net2272_ep_read(ep, EP_STAT0); ep 129 drivers/usb/gadget/udc/net2272.c net2272_ep_write(ep, EP_RSPCLR, 1 << ALT_NAK_OUT_PACKETS); ep 179 drivers/usb/gadget/udc/net2272.c struct net2272_ep *ep; ep 184 drivers/usb/gadget/udc/net2272.c ep = container_of(_ep, struct net2272_ep, ep); ep 185 drivers/usb/gadget/udc/net2272.c if (!_ep || !desc || ep->desc || _ep->name == ep0name ep 188 drivers/usb/gadget/udc/net2272.c dev = ep->dev; ep 196 drivers/usb/gadget/udc/net2272.c ep->desc = desc; ep 199 drivers/usb/gadget/udc/net2272.c ep->stopped = 0; ep 200 drivers/usb/gadget/udc/net2272.c ep->wedged = 0; ep 203 drivers/usb/gadget/udc/net2272.c net2272_ep_write(ep, EP_MAXPKT0, max & 0xff); ep 204 drivers/usb/gadget/udc/net2272.c net2272_ep_write(ep, EP_MAXPKT1, (max & 0xff00) >> 8); ep 207 drivers/usb/gadget/udc/net2272.c net2272_ep_write(ep, EP_STAT1, 1 << BUFFER_FLUSH); ep 217 drivers/usb/gadget/udc/net2272.c ep->is_iso = usb_endpoint_xfer_isoc(desc) ? 1 : 0; ep 224 drivers/usb/gadget/udc/net2272.c ep->is_in = usb_endpoint_dir_in(desc); ep 225 drivers/usb/gadget/udc/net2272.c if (!ep->is_in) ep 226 drivers/usb/gadget/udc/net2272.c net2272_ep_write(ep, EP_RSPSET, 1 << ALT_NAK_OUT_PACKETS); ep 228 drivers/usb/gadget/udc/net2272.c net2272_ep_write(ep, EP_CFG, tmp); ep 231 drivers/usb/gadget/udc/net2272.c tmp = (1 << ep->num) | net2272_read(dev, IRQENB0); ep 236 drivers/usb/gadget/udc/net2272.c | net2272_ep_read(ep, EP_IRQENB); ep 237 drivers/usb/gadget/udc/net2272.c net2272_ep_write(ep, EP_IRQENB, tmp); ep 243 drivers/usb/gadget/udc/net2272.c net2272_ep_read(ep, EP_CFG)); ep 249 drivers/usb/gadget/udc/net2272.c static void net2272_ep_reset(struct net2272_ep *ep) ep 253 drivers/usb/gadget/udc/net2272.c ep->desc = NULL; ep 254 drivers/usb/gadget/udc/net2272.c INIT_LIST_HEAD(&ep->queue); ep 256 drivers/usb/gadget/udc/net2272.c usb_ep_set_maxpacket_limit(&ep->ep, ~0); ep 257 drivers/usb/gadget/udc/net2272.c ep->ep.ops = &net2272_ep_ops; ep 260 drivers/usb/gadget/udc/net2272.c net2272_ep_write(ep, EP_IRQENB, 0); ep 266 drivers/usb/gadget/udc/net2272.c net2272_ep_write(ep, EP_RSPSET, tmp); ep 269 drivers/usb/gadget/udc/net2272.c if (ep->num != 0) ep 272 drivers/usb/gadget/udc/net2272.c net2272_ep_write(ep, EP_RSPCLR, tmp); ep 275 drivers/usb/gadget/udc/net2272.c net2272_ep_write(ep, EP_STAT0, ep 282 drivers/usb/gadget/udc/net2272.c net2272_ep_write(ep, EP_STAT1, ep 297 drivers/usb/gadget/udc/net2272.c struct net2272_ep *ep; ep 300 drivers/usb/gadget/udc/net2272.c ep = container_of(_ep, struct net2272_ep, ep); ep 301 drivers/usb/gadget/udc/net2272.c if (!_ep || !ep->desc || _ep->name == ep0name) ep 304 drivers/usb/gadget/udc/net2272.c spin_lock_irqsave(&ep->dev->lock, flags); ep 305 drivers/usb/gadget/udc/net2272.c net2272_dequeue_all(ep); ep 306 drivers/usb/gadget/udc/net2272.c net2272_ep_reset(ep); ep 308 drivers/usb/gadget/udc/net2272.c dev_vdbg(ep->dev->dev, "disabled %s\n", _ep->name); ep 310 drivers/usb/gadget/udc/net2272.c spin_unlock_irqrestore(&ep->dev->lock, flags); ep 347 drivers/usb/gadget/udc/net2272.c net2272_done(struct net2272_ep *ep, struct net2272_request *req, int status) ep 350 drivers/usb/gadget/udc/net2272.c unsigned stopped = ep->stopped; ep 352 drivers/usb/gadget/udc/net2272.c if (ep->num == 0) { ep 353 drivers/usb/gadget/udc/net2272.c if (ep->dev->protocol_stall) { ep 354 drivers/usb/gadget/udc/net2272.c ep->stopped = 1; ep 355 drivers/usb/gadget/udc/net2272.c set_halt(ep); ep 357 drivers/usb/gadget/udc/net2272.c allow_status(ep); ep 367 drivers/usb/gadget/udc/net2272.c dev = ep->dev; ep 368 drivers/usb/gadget/udc/net2272.c if (use_dma && ep->dma) ep 370 drivers/usb/gadget/udc/net2272.c ep->is_in); ep 374 drivers/usb/gadget/udc/net2272.c ep->ep.name, &req->req, status, ep 378 drivers/usb/gadget/udc/net2272.c ep->stopped = 1; ep 380 drivers/usb/gadget/udc/net2272.c usb_gadget_giveback_request(&ep->ep, &req->req); ep 382 drivers/usb/gadget/udc/net2272.c ep->stopped = stopped; ep 386 drivers/usb/gadget/udc/net2272.c net2272_write_packet(struct net2272_ep *ep, u8 *buf, ep 389 drivers/usb/gadget/udc/net2272.c u16 __iomem *ep_data = net2272_reg_addr(ep->dev, EP_DATA); ep 397 drivers/usb/gadget/udc/net2272.c dev_vdbg(ep->dev->dev, "write packet %s req %p max %u len %u avail %u\n", ep 398 drivers/usb/gadget/udc/net2272.c ep->ep.name, req, max, length, ep 399 drivers/usb/gadget/udc/net2272.c (net2272_ep_read(ep, EP_AVAIL1) << 8) | net2272_ep_read(ep, EP_AVAIL0)); ep 413 drivers/usb/gadget/udc/net2272.c tmp = net2272_read(ep->dev, LOCCTL); ep 414 drivers/usb/gadget/udc/net2272.c net2272_write(ep->dev, LOCCTL, tmp & ~(1 << DATA_WIDTH)); ep 416 drivers/usb/gadget/udc/net2272.c net2272_write(ep->dev, LOCCTL, tmp); ep 423 drivers/usb/gadget/udc/net2272.c net2272_write_fifo(struct net2272_ep *ep, struct net2272_request *req) ep 429 drivers/usb/gadget/udc/net2272.c dev_vdbg(ep->dev->dev, "write_fifo %s actual %d len %d\n", ep 430 drivers/usb/gadget/udc/net2272.c ep->ep.name, req->req.actual, req->req.length); ep 442 drivers/usb/gadget/udc/net2272.c net2272_ep_write(ep, EP_STAT0, (1 << DATA_PACKET_TRANSMITTED_INTERRUPT)); ep 443 drivers/usb/gadget/udc/net2272.c while (!(net2272_ep_read(ep, EP_STAT0) & (1 << BUFFER_FULL))) { ep 448 drivers/usb/gadget/udc/net2272.c net2272_ep_read(ep, EP_STAT0); ep 450 drivers/usb/gadget/udc/net2272.c max = (net2272_ep_read(ep, EP_AVAIL1) << 8) | ep 451 drivers/usb/gadget/udc/net2272.c (net2272_ep_read(ep, EP_AVAIL0)); ep 453 drivers/usb/gadget/udc/net2272.c if (max < ep->ep.maxpacket) ep 454 drivers/usb/gadget/udc/net2272.c max = (net2272_ep_read(ep, EP_AVAIL1) << 8) ep 455 drivers/usb/gadget/udc/net2272.c | (net2272_ep_read(ep, EP_AVAIL0)); ep 457 drivers/usb/gadget/udc/net2272.c count = net2272_write_packet(ep, buf, req, max); ep 461 drivers/usb/gadget/udc/net2272.c if (count < ep->ep.maxpacket) ep 462 drivers/usb/gadget/udc/net2272.c set_fifo_bytecount(ep, 0); ep 463 drivers/usb/gadget/udc/net2272.c net2272_done(ep, req, 0); ep 465 drivers/usb/gadget/udc/net2272.c if (!list_empty(&ep->queue)) { ep 466 drivers/usb/gadget/udc/net2272.c req = list_entry(ep->queue.next, ep 469 drivers/usb/gadget/udc/net2272.c status = net2272_kick_dma(ep, req); ep 472 drivers/usb/gadget/udc/net2272.c if ((net2272_ep_read(ep, EP_STAT0) ep 478 drivers/usb/gadget/udc/net2272.c net2272_ep_write(ep, EP_STAT0, (1 << DATA_PACKET_TRANSMITTED_INTERRUPT)); ep 484 drivers/usb/gadget/udc/net2272.c net2272_out_flush(struct net2272_ep *ep) ep 486 drivers/usb/gadget/udc/net2272.c ASSERT_OUT_NAKING(ep); ep 488 drivers/usb/gadget/udc/net2272.c net2272_ep_write(ep, EP_STAT0, (1 << DATA_OUT_TOKEN_INTERRUPT) ep 490 drivers/usb/gadget/udc/net2272.c net2272_ep_write(ep, EP_STAT1, 1 << BUFFER_FLUSH); ep 494 drivers/usb/gadget/udc/net2272.c net2272_read_packet(struct net2272_ep *ep, u8 *buf, ep 497 drivers/usb/gadget/udc/net2272.c u16 __iomem *ep_data = net2272_reg_addr(ep->dev, EP_DATA); ep 503 drivers/usb/gadget/udc/net2272.c dev_vdbg(ep->dev->dev, "read packet %s req %p len %u avail %u\n", ep 504 drivers/usb/gadget/udc/net2272.c ep->ep.name, req, avail, ep 505 drivers/usb/gadget/udc/net2272.c (net2272_ep_read(ep, EP_AVAIL1) << 8) | net2272_ep_read(ep, EP_AVAIL0)); ep 507 drivers/usb/gadget/udc/net2272.c is_short = (avail < ep->ep.maxpacket); ep 529 drivers/usb/gadget/udc/net2272.c if (net2272_ep_read(ep, EP_STAT0) & (1 << SHORT_PACKET_TRANSFERRED_INTERRUPT)) ep 530 drivers/usb/gadget/udc/net2272.c net2272_ep_read(ep, EP_STAT0); ep 536 drivers/usb/gadget/udc/net2272.c net2272_read_fifo(struct net2272_ep *ep, struct net2272_request *req) ep 545 drivers/usb/gadget/udc/net2272.c dev_vdbg(ep->dev->dev, "read_fifo %s actual %d len %d\n", ep 546 drivers/usb/gadget/udc/net2272.c ep->ep.name, req->req.actual, req->req.length); ep 553 drivers/usb/gadget/udc/net2272.c count = (net2272_ep_read(ep, EP_AVAIL1) << 8) ep 554 drivers/usb/gadget/udc/net2272.c | net2272_ep_read(ep, EP_AVAIL0); ep 556 drivers/usb/gadget/udc/net2272.c net2272_ep_write(ep, EP_STAT0, ep 563 drivers/usb/gadget/udc/net2272.c if ((tmp % ep->ep.maxpacket) != 0) { ep 564 drivers/usb/gadget/udc/net2272.c dev_err(ep->dev->dev, ep 566 drivers/usb/gadget/udc/net2272.c ep->ep.name, count, tmp); ep 572 drivers/usb/gadget/udc/net2272.c is_short = net2272_read_packet(ep, buf, req, count); ep 579 drivers/usb/gadget/udc/net2272.c net2272_out_flush(ep); ep 580 drivers/usb/gadget/udc/net2272.c net2272_done(ep, req, -EOVERFLOW); ep 582 drivers/usb/gadget/udc/net2272.c net2272_done(ep, req, 0); ep 588 drivers/usb/gadget/udc/net2272.c if (unlikely(ep->num == 0)) { ep 589 drivers/usb/gadget/udc/net2272.c net2272_ep_write(ep, EP_TRANSFER2, 0); ep 590 drivers/usb/gadget/udc/net2272.c net2272_ep_write(ep, EP_TRANSFER1, 0); ep 591 drivers/usb/gadget/udc/net2272.c net2272_ep_write(ep, EP_TRANSFER0, 0); ep 594 drivers/usb/gadget/udc/net2272.c if (!list_empty(&ep->queue)) { ep 595 drivers/usb/gadget/udc/net2272.c req = list_entry(ep->queue.next, ep 597 drivers/usb/gadget/udc/net2272.c status = net2272_kick_dma(ep, req); ep 599 drivers/usb/gadget/udc/net2272.c !(net2272_ep_read(ep, EP_STAT0) & (1 << BUFFER_EMPTY))) ep 604 drivers/usb/gadget/udc/net2272.c } while (!(net2272_ep_read(ep, EP_STAT0) & (1 << BUFFER_EMPTY))); ep 610 drivers/usb/gadget/udc/net2272.c net2272_pio_advance(struct net2272_ep *ep) ep 614 drivers/usb/gadget/udc/net2272.c if (unlikely(list_empty(&ep->queue))) ep 617 drivers/usb/gadget/udc/net2272.c req = list_entry(ep->queue.next, struct net2272_request, queue); ep 618 drivers/usb/gadget/udc/net2272.c (ep->is_in ? net2272_write_fifo : net2272_read_fifo)(ep, req); ep 623 drivers/usb/gadget/udc/net2272.c net2272_request_dma(struct net2272 *dev, unsigned ep, u32 buf, ep 627 drivers/usb/gadget/udc/net2272.c ep, buf, len, dir); ep 679 drivers/usb/gadget/udc/net2272.c ((ep >> 1) << DMA_ENDPOINT_SELECT)); ep 702 drivers/usb/gadget/udc/net2272.c net2272_kick_dma(struct net2272_ep *ep, struct net2272_request *req) ep 707 drivers/usb/gadget/udc/net2272.c if (!use_dma || (ep->num < 1) || (ep->num > 2) || !ep->dma) ep 716 drivers/usb/gadget/udc/net2272.c dev_vdbg(ep->dev->dev, "kick_dma %s req %p dma %08llx\n", ep 717 drivers/usb/gadget/udc/net2272.c ep->ep.name, req, (unsigned long long) req->req.dma); ep 719 drivers/usb/gadget/udc/net2272.c net2272_ep_write(ep, EP_RSPSET, 1 << ALT_NAK_OUT_PACKETS); ep 722 drivers/usb/gadget/udc/net2272.c if (ep->dev->dma_busy) ep 732 drivers/usb/gadget/udc/net2272.c if (ep->is_in) { ep 734 drivers/usb/gadget/udc/net2272.c if (net2272_request_dma(ep->dev, ep->num, req->req.dma, size, 0)) ep 741 drivers/usb/gadget/udc/net2272.c tmp = net2272_ep_read(ep, EP_STAT0); ep 744 drivers/usb/gadget/udc/net2272.c if (net2272_request_dma(ep->dev, ep->num, req->req.dma, size, 1)) ep 749 drivers/usb/gadget/udc/net2272.c ep->not_empty = 1; ep 751 drivers/usb/gadget/udc/net2272.c ep->not_empty = 0; ep 755 drivers/usb/gadget/udc/net2272.c net2272_ep_write(ep, EP_RSPCLR, 1 << ALT_NAK_OUT_PACKETS); ep 763 drivers/usb/gadget/udc/net2272.c net2272_write(ep->dev, DMAREQ, ep 767 drivers/usb/gadget/udc/net2272.c (ep->dev->dma_eot_polarity << EOT_POLARITY) | ep 768 drivers/usb/gadget/udc/net2272.c (ep->dev->dma_dack_polarity << DACK_POLARITY) | ep 769 drivers/usb/gadget/udc/net2272.c (ep->dev->dma_dreq_polarity << DREQ_POLARITY) | ep 770 drivers/usb/gadget/udc/net2272.c ((ep->num >> 1) << DMA_ENDPOINT_SELECT)); ep 777 drivers/usb/gadget/udc/net2272.c net2272_ep_write(ep, EP_IRQENB, 0); ep 779 drivers/usb/gadget/udc/net2272.c net2272_start_dma(ep->dev); ep 811 drivers/usb/gadget/udc/net2272.c struct net2272_ep *ep; ep 821 drivers/usb/gadget/udc/net2272.c ep = container_of(_ep, struct net2272_ep, ep); ep 822 drivers/usb/gadget/udc/net2272.c if (!_ep || (!ep->desc && ep->num != 0)) ep 824 drivers/usb/gadget/udc/net2272.c dev = ep->dev; ep 829 drivers/usb/gadget/udc/net2272.c if (use_dma && ep->dma) { ep 831 drivers/usb/gadget/udc/net2272.c ep->is_in); ep 846 drivers/usb/gadget/udc/net2272.c if (list_empty(&ep->queue) && !ep->stopped) { ep 848 drivers/usb/gadget/udc/net2272.c if (ep->num == 0 && _req->length == 0) { ep 849 drivers/usb/gadget/udc/net2272.c net2272_done(ep, req, 0); ep 850 drivers/usb/gadget/udc/net2272.c dev_vdbg(dev->dev, "%s status ack\n", ep->ep.name); ep 855 drivers/usb/gadget/udc/net2272.c s = net2272_ep_read(ep, EP_STAT0); ep 859 drivers/usb/gadget/udc/net2272.c net2272_ep_read(ep, EP_STAT1) & (1 << LOCAL_OUT_ZLP)) { ep 865 drivers/usb/gadget/udc/net2272.c status = net2272_read_fifo(ep, req); ep 867 drivers/usb/gadget/udc/net2272.c net2272_ep_write(ep, EP_STAT0, (1 << NAK_OUT_PACKETS)); ep 873 drivers/usb/gadget/udc/net2272.c status = net2272_kick_dma(ep, req); ep 881 drivers/usb/gadget/udc/net2272.c if (ep->is_in) ep 882 drivers/usb/gadget/udc/net2272.c status = net2272_write_fifo(ep, req); ep 884 drivers/usb/gadget/udc/net2272.c s = net2272_ep_read(ep, EP_STAT0); ep 886 drivers/usb/gadget/udc/net2272.c status = net2272_read_fifo(ep, req); ep 897 drivers/usb/gadget/udc/net2272.c list_add_tail(&req->queue, &ep->queue); ep 899 drivers/usb/gadget/udc/net2272.c if (likely(!list_empty(&ep->queue))) ep 900 drivers/usb/gadget/udc/net2272.c net2272_ep_write(ep, EP_RSPCLR, 1 << ALT_NAK_OUT_PACKETS); ep 909 drivers/usb/gadget/udc/net2272.c net2272_dequeue_all(struct net2272_ep *ep) ep 914 drivers/usb/gadget/udc/net2272.c ep->stopped = 1; ep 916 drivers/usb/gadget/udc/net2272.c while (!list_empty(&ep->queue)) { ep 917 drivers/usb/gadget/udc/net2272.c req = list_entry(ep->queue.next, ep 920 drivers/usb/gadget/udc/net2272.c net2272_done(ep, req, -ESHUTDOWN); ep 928 drivers/usb/gadget/udc/net2272.c struct net2272_ep *ep; ep 933 drivers/usb/gadget/udc/net2272.c ep = container_of(_ep, struct net2272_ep, ep); ep 934 drivers/usb/gadget/udc/net2272.c if (!_ep || (!ep->desc && ep->num != 0) || !_req) ep 937 drivers/usb/gadget/udc/net2272.c spin_lock_irqsave(&ep->dev->lock, flags); ep 938 drivers/usb/gadget/udc/net2272.c stopped = ep->stopped; ep 939 drivers/usb/gadget/udc/net2272.c ep->stopped = 1; ep 942 drivers/usb/gadget/udc/net2272.c list_for_each_entry(req, &ep->queue, queue) { ep 947 drivers/usb/gadget/udc/net2272.c ep->stopped = stopped; ep 948 drivers/usb/gadget/udc/net2272.c spin_unlock_irqrestore(&ep->dev->lock, flags); ep 953 drivers/usb/gadget/udc/net2272.c if (ep->queue.next == &req->queue) { ep 954 drivers/usb/gadget/udc/net2272.c dev_dbg(ep->dev->dev, "unlink (%s) pio\n", _ep->name); ep 955 drivers/usb/gadget/udc/net2272.c net2272_done(ep, req, -ECONNRESET); ep 958 drivers/usb/gadget/udc/net2272.c ep->stopped = stopped; ep 960 drivers/usb/gadget/udc/net2272.c spin_unlock_irqrestore(&ep->dev->lock, flags); ep 969 drivers/usb/gadget/udc/net2272.c struct net2272_ep *ep; ep 973 drivers/usb/gadget/udc/net2272.c ep = container_of(_ep, struct net2272_ep, ep); ep 974 drivers/usb/gadget/udc/net2272.c if (!_ep || (!ep->desc && ep->num != 0)) ep 976 drivers/usb/gadget/udc/net2272.c if (!ep->dev->driver || ep->dev->gadget.speed == USB_SPEED_UNKNOWN) ep 978 drivers/usb/gadget/udc/net2272.c if (ep->desc /* not ep0 */ && usb_endpoint_xfer_isoc(ep->desc)) ep 981 drivers/usb/gadget/udc/net2272.c spin_lock_irqsave(&ep->dev->lock, flags); ep 982 drivers/usb/gadget/udc/net2272.c if (!list_empty(&ep->queue)) ep 984 drivers/usb/gadget/udc/net2272.c else if (ep->is_in && value && net2272_fifo_status(_ep) != 0) ep 987 drivers/usb/gadget/udc/net2272.c dev_vdbg(ep->dev->dev, "%s %s %s\n", _ep->name, ep 992 drivers/usb/gadget/udc/net2272.c if (ep->num == 0) ep 993 drivers/usb/gadget/udc/net2272.c ep->dev->protocol_stall = 1; ep 995 drivers/usb/gadget/udc/net2272.c set_halt(ep); ep 997 drivers/usb/gadget/udc/net2272.c ep->wedged = 1; ep 999 drivers/usb/gadget/udc/net2272.c clear_halt(ep); ep 1000 drivers/usb/gadget/udc/net2272.c ep->wedged = 0; ep 1003 drivers/usb/gadget/udc/net2272.c spin_unlock_irqrestore(&ep->dev->lock, flags); ep 1025 drivers/usb/gadget/udc/net2272.c struct net2272_ep *ep; ep 1028 drivers/usb/gadget/udc/net2272.c ep = container_of(_ep, struct net2272_ep, ep); ep 1029 drivers/usb/gadget/udc/net2272.c if (!_ep || (!ep->desc && ep->num != 0)) ep 1031 drivers/usb/gadget/udc/net2272.c if (!ep->dev->driver || ep->dev->gadget.speed == USB_SPEED_UNKNOWN) ep 1034 drivers/usb/gadget/udc/net2272.c avail = net2272_ep_read(ep, EP_AVAIL1) << 8; ep 1035 drivers/usb/gadget/udc/net2272.c avail |= net2272_ep_read(ep, EP_AVAIL0); ep 1036 drivers/usb/gadget/udc/net2272.c if (avail > ep->fifo_size) ep 1038 drivers/usb/gadget/udc/net2272.c if (ep->is_in) ep 1039 drivers/usb/gadget/udc/net2272.c avail = ep->fifo_size - avail; ep 1046 drivers/usb/gadget/udc/net2272.c struct net2272_ep *ep; ep 1048 drivers/usb/gadget/udc/net2272.c ep = container_of(_ep, struct net2272_ep, ep); ep 1049 drivers/usb/gadget/udc/net2272.c if (!_ep || (!ep->desc && ep->num != 0)) ep 1051 drivers/usb/gadget/udc/net2272.c if (!ep->dev->driver || ep->dev->gadget.speed == USB_SPEED_UNKNOWN) ep 1054 drivers/usb/gadget/udc/net2272.c net2272_ep_write(ep, EP_STAT1, 1 << BUFFER_FLUSH); ep 1226 drivers/usb/gadget/udc/net2272.c struct net2272_ep *ep; ep 1228 drivers/usb/gadget/udc/net2272.c ep = &dev->ep[i]; ep 1229 drivers/usb/gadget/udc/net2272.c if (i && !ep->desc) ep 1232 drivers/usb/gadget/udc/net2272.c t1 = net2272_ep_read(ep, EP_CFG); ep 1233 drivers/usb/gadget/udc/net2272.c t2 = net2272_ep_read(ep, EP_RSPSET); ep 1237 drivers/usb/gadget/udc/net2272.c ep->ep.name, t1, t2, ep 1246 drivers/usb/gadget/udc/net2272.c net2272_ep_read(ep, EP_IRQENB)); ep 1253 drivers/usb/gadget/udc/net2272.c net2272_ep_read(ep, EP_STAT0), ep 1254 drivers/usb/gadget/udc/net2272.c net2272_ep_read(ep, EP_STAT1), ep 1255 drivers/usb/gadget/udc/net2272.c (net2272_ep_read(ep, EP_AVAIL1) << 8) | net2272_ep_read(ep, EP_AVAIL0), ep 1257 drivers/usb/gadget/udc/net2272.c ep->is_in ? "in" : "out", ep 1259 drivers/usb/gadget/udc/net2272.c ep->stopped ? "*" : ""); ep 1265 drivers/usb/gadget/udc/net2272.c ((net2272_ep_read(ep, EP_TRANSFER2) & 0xff) << 16) | ep 1266 drivers/usb/gadget/udc/net2272.c ((net2272_ep_read(ep, EP_TRANSFER1) & 0xff) << 8) | ep 1267 drivers/usb/gadget/udc/net2272.c ((net2272_ep_read(ep, EP_TRANSFER0) & 0xff))); ep 1271 drivers/usb/gadget/udc/net2272.c t1 = net2272_ep_read(ep, EP_BUFF_STATES) & 0x03; ep 1272 drivers/usb/gadget/udc/net2272.c t2 = (net2272_ep_read(ep, EP_BUFF_STATES) >> 2) & 0x03; ep 1301 drivers/usb/gadget/udc/net2272.c list_add_tail(&dev->ep[1].ep.ep_list, &dev->gadget.ep_list); ep 1305 drivers/usb/gadget/udc/net2272.c list_add_tail(&dev->ep[2].ep.ep_list, &dev->gadget.ep_list); ep 1306 drivers/usb/gadget/udc/net2272.c dev->ep[1].fifo_size = dev->ep[2].fifo_size = 512; ep 1309 drivers/usb/gadget/udc/net2272.c list_add_tail(&dev->ep[2].ep.ep_list, &dev->gadget.ep_list); ep 1310 drivers/usb/gadget/udc/net2272.c dev->ep[1].fifo_size = 1024; ep 1311 drivers/usb/gadget/udc/net2272.c dev->ep[2].fifo_size = 512; ep 1314 drivers/usb/gadget/udc/net2272.c list_add_tail(&dev->ep[2].ep.ep_list, &dev->gadget.ep_list); ep 1315 drivers/usb/gadget/udc/net2272.c dev->ep[1].fifo_size = dev->ep[2].fifo_size = 1024; ep 1318 drivers/usb/gadget/udc/net2272.c dev->ep[1].fifo_size = 1024; ep 1323 drivers/usb/gadget/udc/net2272.c list_add_tail(&dev->ep[3].ep.ep_list, &dev->gadget.ep_list); ep 1324 drivers/usb/gadget/udc/net2272.c dev->ep[3].fifo_size = 512; ep 1370 drivers/usb/gadget/udc/net2272.c struct net2272_ep *ep = &dev->ep[i]; ep 1372 drivers/usb/gadget/udc/net2272.c ep->ep.name = ep_name[i]; ep 1373 drivers/usb/gadget/udc/net2272.c ep->dev = dev; ep 1374 drivers/usb/gadget/udc/net2272.c ep->num = i; ep 1375 drivers/usb/gadget/udc/net2272.c ep->not_empty = 0; ep 1377 drivers/usb/gadget/udc/net2272.c if (use_dma && ep->num == dma_ep) ep 1378 drivers/usb/gadget/udc/net2272.c ep->dma = 1; ep 1381 drivers/usb/gadget/udc/net2272.c ep->fifo_size = 512; ep 1383 drivers/usb/gadget/udc/net2272.c ep->fifo_size = 64; ep 1384 drivers/usb/gadget/udc/net2272.c net2272_ep_reset(ep); ep 1387 drivers/usb/gadget/udc/net2272.c ep->ep.caps.type_control = true; ep 1389 drivers/usb/gadget/udc/net2272.c ep->ep.caps.type_iso = true; ep 1390 drivers/usb/gadget/udc/net2272.c ep->ep.caps.type_bulk = true; ep 1391 drivers/usb/gadget/udc/net2272.c ep->ep.caps.type_int = true; ep 1394 drivers/usb/gadget/udc/net2272.c ep->ep.caps.dir_in = true; ep 1395 drivers/usb/gadget/udc/net2272.c ep->ep.caps.dir_out = true; ep 1397 drivers/usb/gadget/udc/net2272.c usb_ep_set_maxpacket_limit(&dev->ep[0].ep, 64); ep 1399 drivers/usb/gadget/udc/net2272.c dev->gadget.ep0 = &dev->ep[0].ep; ep 1400 drivers/usb/gadget/udc/net2272.c dev->ep[0].stopped = 0; ep 1407 drivers/usb/gadget/udc/net2272.c struct net2272_ep *ep0 = &dev->ep[0]; ep 1448 drivers/usb/gadget/udc/net2272.c dev->ep[i].irqs = 0; ep 1476 drivers/usb/gadget/udc/net2272.c net2272_dequeue_all(&dev->ep[i]); ep 1507 drivers/usb/gadget/udc/net2272.c net2272_handle_dma(struct net2272_ep *ep) ep 1513 drivers/usb/gadget/udc/net2272.c if (!list_empty(&ep->queue)) ep 1514 drivers/usb/gadget/udc/net2272.c req = list_entry(ep->queue.next, ep 1519 drivers/usb/gadget/udc/net2272.c dev_vdbg(ep->dev->dev, "handle_dma %s req %p\n", ep->ep.name, req); ep 1522 drivers/usb/gadget/udc/net2272.c net2272_write(ep->dev, DMAREQ, ep 1526 drivers/usb/gadget/udc/net2272.c | (ep->dev->dma_eot_polarity << EOT_POLARITY) ep 1527 drivers/usb/gadget/udc/net2272.c | (ep->dev->dma_dack_polarity << DACK_POLARITY) ep 1528 drivers/usb/gadget/udc/net2272.c | (ep->dev->dma_dreq_polarity << DREQ_POLARITY) ep 1529 drivers/usb/gadget/udc/net2272.c | (ep->dma << DMA_ENDPOINT_SELECT)); ep 1531 drivers/usb/gadget/udc/net2272.c ep->dev->dma_busy = 0; ep 1533 drivers/usb/gadget/udc/net2272.c net2272_ep_write(ep, EP_IRQENB, ep 1536 drivers/usb/gadget/udc/net2272.c | net2272_ep_read(ep, EP_IRQENB)); ep 1539 drivers/usb/gadget/udc/net2272.c if (ep->is_in) { ep 1541 drivers/usb/gadget/udc/net2272.c if ((req->req.length % ep->ep.maxpacket != 0) || ep 1543 drivers/usb/gadget/udc/net2272.c set_fifo_bytecount(ep, 0); ep 1545 drivers/usb/gadget/udc/net2272.c net2272_done(ep, req, 0); ep 1546 drivers/usb/gadget/udc/net2272.c if (!list_empty(&ep->queue)) { ep 1547 drivers/usb/gadget/udc/net2272.c req = list_entry(ep->queue.next, ep 1549 drivers/usb/gadget/udc/net2272.c status = net2272_kick_dma(ep, req); ep 1551 drivers/usb/gadget/udc/net2272.c net2272_pio_advance(ep); ep 1557 drivers/usb/gadget/udc/net2272.c if (net2272_read(ep->dev, IRQSTAT0) & ep 1560 drivers/usb/gadget/udc/net2272.c net2272_cancel_dma(ep->dev); ep 1568 drivers/usb/gadget/udc/net2272.c len = (net2272_ep_read(ep, EP_TRANSFER2) << 16) ep 1569 drivers/usb/gadget/udc/net2272.c | (net2272_ep_read(ep, EP_TRANSFER1) << 8) ep 1570 drivers/usb/gadget/udc/net2272.c | (net2272_ep_read(ep, EP_TRANSFER0)); ep 1572 drivers/usb/gadget/udc/net2272.c if (ep->not_empty) ep 1578 drivers/usb/gadget/udc/net2272.c net2272_pio_advance(ep); ep 1585 drivers/usb/gadget/udc/net2272.c net2272_handle_ep(struct net2272_ep *ep) ep 1590 drivers/usb/gadget/udc/net2272.c if (!list_empty(&ep->queue)) ep 1591 drivers/usb/gadget/udc/net2272.c req = list_entry(ep->queue.next, ep 1597 drivers/usb/gadget/udc/net2272.c stat0 = net2272_ep_read(ep, EP_STAT0); ep 1598 drivers/usb/gadget/udc/net2272.c stat1 = net2272_ep_read(ep, EP_STAT1); ep 1599 drivers/usb/gadget/udc/net2272.c ep->irqs++; ep 1601 drivers/usb/gadget/udc/net2272.c dev_vdbg(ep->dev->dev, "%s ack ep_stat0 %02x, ep_stat1 %02x, req %p\n", ep 1602 drivers/usb/gadget/udc/net2272.c ep->ep.name, stat0, stat1, req ? &req->req : NULL); ep 1604 drivers/usb/gadget/udc/net2272.c net2272_ep_write(ep, EP_STAT0, stat0 & ep 1607 drivers/usb/gadget/udc/net2272.c net2272_ep_write(ep, EP_STAT1, stat1); ep 1613 drivers/usb/gadget/udc/net2272.c if (!ep->is_in && (stat0 & (1 << DATA_PACKET_RECEIVED_INTERRUPT))) ep 1614 drivers/usb/gadget/udc/net2272.c net2272_pio_advance(ep); ep 1617 drivers/usb/gadget/udc/net2272.c net2272_pio_advance(ep); ep 1623 drivers/usb/gadget/udc/net2272.c struct net2272_ep *ep; ep 1626 drivers/usb/gadget/udc/net2272.c return &dev->ep[0]; ep 1628 drivers/usb/gadget/udc/net2272.c list_for_each_entry(ep, &dev->gadget.ep_list, ep.ep_list) { ep 1631 drivers/usb/gadget/udc/net2272.c if (!ep->desc) ep 1633 drivers/usb/gadget/udc/net2272.c bEndpointAddress = ep->desc->bEndpointAddress; ep 1637 drivers/usb/gadget/udc/net2272.c return ep; ep 1707 drivers/usb/gadget/udc/net2272.c struct net2272_ep *ep; ep 1728 drivers/usb/gadget/udc/net2272.c ep = &dev->ep[0]; ep 1729 drivers/usb/gadget/udc/net2272.c ep->irqs++; ep 1733 drivers/usb/gadget/udc/net2272.c while (!list_empty(&ep->queue)) { ep 1734 drivers/usb/gadget/udc/net2272.c req = list_entry(ep->queue.next, ep 1736 drivers/usb/gadget/udc/net2272.c net2272_done(ep, req, ep 1739 drivers/usb/gadget/udc/net2272.c ep->stopped = 0; ep 1741 drivers/usb/gadget/udc/net2272.c net2272_ep_write(ep, EP_STAT0, ep 1747 drivers/usb/gadget/udc/net2272.c net2272_ep_write(ep, EP_STAT1, ep 1793 drivers/usb/gadget/udc/net2272.c ep->is_in = (u.r.bRequestType & USB_DIR_IN) != 0; ep 1794 drivers/usb/gadget/udc/net2272.c if (ep->is_in) { ep 1798 drivers/usb/gadget/udc/net2272.c stop_out_naking(ep); ep 1803 drivers/usb/gadget/udc/net2272.c net2272_ep_write(ep, EP_IRQENB, scratch); ep 1823 drivers/usb/gadget/udc/net2272.c net2272_ep_write(&dev->ep[0], EP_IRQENB, 0); ep 1825 drivers/usb/gadget/udc/net2272.c set_fifo_bytecount(&dev->ep[0], 0); ep 1826 drivers/usb/gadget/udc/net2272.c allow_status(ep); ep 1828 drivers/usb/gadget/udc/net2272.c ep->ep.name, status); ep 1837 drivers/usb/gadget/udc/net2272.c net2272_ep_write(&dev->ep[0], EP_IRQENB, 0); ep 1839 drivers/usb/gadget/udc/net2272.c set_fifo_bytecount(&dev->ep[0], 0); ep 1840 drivers/usb/gadget/udc/net2272.c allow_status(ep); ep 1848 drivers/usb/gadget/udc/net2272.c net2272_ep_write(&dev->ep[0], EP_IRQENB, 0); ep 1850 drivers/usb/gadget/udc/net2272.c set_fifo_bytecount(&dev->ep[0], 0); ep 1851 drivers/usb/gadget/udc/net2272.c allow_status(ep); ep 1871 drivers/usb/gadget/udc/net2272.c ep->ep.name); ep 1873 drivers/usb/gadget/udc/net2272.c dev_vdbg(dev->dev, "%s clear halt\n", ep->ep.name); ep 1876 drivers/usb/gadget/udc/net2272.c allow_status(ep); ep 1885 drivers/usb/gadget/udc/net2272.c allow_status(ep); ep 1897 drivers/usb/gadget/udc/net2272.c allow_status(ep); ep 1898 drivers/usb/gadget/udc/net2272.c dev_vdbg(dev->dev, "%s set halt\n", ep->ep.name); ep 1903 drivers/usb/gadget/udc/net2272.c allow_status(ep); ep 1912 drivers/usb/gadget/udc/net2272.c net2272_ep_read(ep, EP_CFG)); ep 1933 drivers/usb/gadget/udc/net2272.c ep = &dev->ep[num]; ep 1934 drivers/usb/gadget/udc/net2272.c net2272_handle_dma(ep); ep 1950 drivers/usb/gadget/udc/net2272.c ep = &dev->ep[num]; ep 1951 drivers/usb/gadget/udc/net2272.c net2272_handle_ep(ep); ep 2073 drivers/usb/gadget/udc/net2272.c net2272_handle_dma(&dev->ep[2]); ep 2075 drivers/usb/gadget/udc/net2272.c net2272_handle_dma(&dev->ep[1]); ep 420 drivers/usb/gadget/udc/net2272.h struct usb_ep ep; ep 444 drivers/usb/gadget/udc/net2272.h struct net2272_ep ep[4]; ep 524 drivers/usb/gadget/udc/net2272.h net2272_ep_write(struct net2272_ep *ep, unsigned int reg, u8 value) ep 526 drivers/usb/gadget/udc/net2272.h struct net2272 *dev = ep->dev; ep 528 drivers/usb/gadget/udc/net2272.h if (dev->pagesel != ep->num) { ep 529 drivers/usb/gadget/udc/net2272.h net2272_write(dev, PAGESEL, ep->num); ep 530 drivers/usb/gadget/udc/net2272.h dev->pagesel = ep->num; ep 536 drivers/usb/gadget/udc/net2272.h net2272_ep_read(struct net2272_ep *ep, unsigned int reg) ep 538 drivers/usb/gadget/udc/net2272.h struct net2272 *dev = ep->dev; ep 540 drivers/usb/gadget/udc/net2272.h if (dev->pagesel != ep->num) { ep 541 drivers/usb/gadget/udc/net2272.h net2272_write(dev, PAGESEL, ep->num); ep 542 drivers/usb/gadget/udc/net2272.h dev->pagesel = ep->num; ep 547 drivers/usb/gadget/udc/net2272.h static void allow_status(struct net2272_ep *ep) ep 550 drivers/usb/gadget/udc/net2272.h net2272_ep_write(ep, EP_RSPCLR, ep 554 drivers/usb/gadget/udc/net2272.h ep->stopped = 1; ep 557 drivers/usb/gadget/udc/net2272.h static void set_halt(struct net2272_ep *ep) ep 560 drivers/usb/gadget/udc/net2272.h net2272_ep_write(ep, EP_RSPCLR, 1 << CONTROL_STATUS_PHASE_HANDSHAKE); ep 561 drivers/usb/gadget/udc/net2272.h net2272_ep_write(ep, EP_RSPSET, 1 << ENDPOINT_HALT); ep 564 drivers/usb/gadget/udc/net2272.h static void clear_halt(struct net2272_ep *ep) ep 567 drivers/usb/gadget/udc/net2272.h net2272_ep_write(ep, EP_RSPCLR, ep 572 drivers/usb/gadget/udc/net2272.h static void set_fifo_bytecount(struct net2272_ep *ep, unsigned count) ep 575 drivers/usb/gadget/udc/net2272.h net2272_ep_write(ep, EP_TRANSFER2, count >> 16); ep 576 drivers/usb/gadget/udc/net2272.h net2272_ep_write(ep, EP_TRANSFER1, count >> 8); ep 577 drivers/usb/gadget/udc/net2272.h net2272_ep_write(ep, EP_TRANSFER0, count); ep 161 drivers/usb/gadget/udc/net2280.c static void ep_clear_seqnum(struct net2280_ep *ep); ep 167 drivers/usb/gadget/udc/net2280.c static inline void enable_pciirqenb(struct net2280_ep *ep) ep 169 drivers/usb/gadget/udc/net2280.c u32 tmp = readl(&ep->dev->regs->pciirqenb0); ep 171 drivers/usb/gadget/udc/net2280.c if (ep->dev->quirks & PLX_LEGACY) ep 172 drivers/usb/gadget/udc/net2280.c tmp |= BIT(ep->num); ep 174 drivers/usb/gadget/udc/net2280.c tmp |= BIT(ep_bit[ep->num]); ep 175 drivers/usb/gadget/udc/net2280.c writel(tmp, &ep->dev->regs->pciirqenb0); ep 184 drivers/usb/gadget/udc/net2280.c struct net2280_ep *ep; ep 192 drivers/usb/gadget/udc/net2280.c ep = container_of(_ep, struct net2280_ep, ep); ep 193 drivers/usb/gadget/udc/net2280.c if (!_ep || !desc || ep->desc || _ep->name == ep0name || ep 198 drivers/usb/gadget/udc/net2280.c dev = ep->dev; ep 215 drivers/usb/gadget/udc/net2280.c ep->is_in = !!usb_endpoint_dir_in(desc); ep 216 drivers/usb/gadget/udc/net2280.c if (dev->enhanced_mode && ep->is_in && ep_key[ep->num]) { ep 224 drivers/usb/gadget/udc/net2280.c if (ep->num > 4 && max > 64 && (dev->quirks & PLX_LEGACY)) { ep 231 drivers/usb/gadget/udc/net2280.c ep->desc = desc; ep 234 drivers/usb/gadget/udc/net2280.c ep->stopped = 0; ep 235 drivers/usb/gadget/udc/net2280.c ep->wedged = 0; ep 236 drivers/usb/gadget/udc/net2280.c ep->out_overflow = 0; ep 239 drivers/usb/gadget/udc/net2280.c set_max_speed(ep, max); ep 242 drivers/usb/gadget/udc/net2280.c writel(BIT(FIFO_FLUSH), &ep->regs->ep_stat); ep 245 drivers/usb/gadget/udc/net2280.c tmp = readl(&ep->cfg->ep_cfg); ep 252 drivers/usb/gadget/udc/net2280.c if (ep->is_in) ep 264 drivers/usb/gadget/udc/net2280.c &ep->regs->ep_rsp); ep 275 drivers/usb/gadget/udc/net2280.c ep->is_iso = (type == USB_ENDPOINT_XFER_ISOC); ep 283 drivers/usb/gadget/udc/net2280.c ep->is_in = (tmp & USB_DIR_IN) != 0; ep 286 drivers/usb/gadget/udc/net2280.c if (dev->enhanced_mode && ep->is_in) { ep 292 drivers/usb/gadget/udc/net2280.c tmp |= (ep->is_in << ENDPOINT_DIRECTION); ep 298 drivers/usb/gadget/udc/net2280.c tmp |= (ep->ep.maxburst << MAX_BURST_SIZE); ep 305 drivers/usb/gadget/udc/net2280.c if (!ep->is_in) ep 306 drivers/usb/gadget/udc/net2280.c writel(BIT(SET_NAK_OUT_PACKETS), &ep->regs->ep_rsp); ep 312 drivers/usb/gadget/udc/net2280.c BIT(CLEAR_NAK_OUT_PACKETS_MODE), &ep->regs->ep_rsp); ep 316 drivers/usb/gadget/udc/net2280.c ep_clear_seqnum(ep); ep 317 drivers/usb/gadget/udc/net2280.c writel(tmp, &ep->cfg->ep_cfg); ep 320 drivers/usb/gadget/udc/net2280.c if (!ep->dma) { /* pio, per-packet */ ep 321 drivers/usb/gadget/udc/net2280.c enable_pciirqenb(ep); ep 326 drivers/usb/gadget/udc/net2280.c tmp |= readl(&ep->regs->ep_irqenb); ep 327 drivers/usb/gadget/udc/net2280.c writel(tmp, &ep->regs->ep_irqenb); ep 329 drivers/usb/gadget/udc/net2280.c tmp = BIT((8 + ep->num)); /* completion */ ep 339 drivers/usb/gadget/udc/net2280.c writel(tmp, &ep->regs->ep_irqenb); ep 341 drivers/usb/gadget/udc/net2280.c enable_pciirqenb(ep); ep 349 drivers/usb/gadget/udc/net2280.c ep->dma ? "dma" : "pio", max); ep 356 drivers/usb/gadget/udc/net2280.c dev_err(&ep->dev->pdev->dev, "%s: error=%d\n", __func__, ret); ep 380 drivers/usb/gadget/udc/net2280.c struct net2280_ep *ep) ep 384 drivers/usb/gadget/udc/net2280.c ep->desc = NULL; ep 385 drivers/usb/gadget/udc/net2280.c INIT_LIST_HEAD(&ep->queue); ep 387 drivers/usb/gadget/udc/net2280.c usb_ep_set_maxpacket_limit(&ep->ep, ~0); ep 388 drivers/usb/gadget/udc/net2280.c ep->ep.ops = &net2280_ep_ops; ep 391 drivers/usb/gadget/udc/net2280.c if (ep->dma) { ep 392 drivers/usb/gadget/udc/net2280.c writel(0, &ep->dma->dmactl); ep 396 drivers/usb/gadget/udc/net2280.c &ep->dma->dmastat); ep 399 drivers/usb/gadget/udc/net2280.c tmp &= ~BIT(ep->num); ep 403 drivers/usb/gadget/udc/net2280.c tmp &= ~BIT((8 + ep->num)); /* completion */ ep 406 drivers/usb/gadget/udc/net2280.c writel(0, &ep->regs->ep_irqenb); ep 411 drivers/usb/gadget/udc/net2280.c if (!ep->is_in || (ep->dev->quirks & PLX_2280)) { ep 424 drivers/usb/gadget/udc/net2280.c if (ep->num != 0) { ep 428 drivers/usb/gadget/udc/net2280.c writel(tmp, &ep->regs->ep_rsp); ep 431 drivers/usb/gadget/udc/net2280.c if (ep->dev->quirks & PLX_2280) ep 450 drivers/usb/gadget/udc/net2280.c &ep->regs->ep_stat); ep 456 drivers/usb/gadget/udc/net2280.c struct net2280_ep *ep) ep 460 drivers/usb/gadget/udc/net2280.c ep->desc = NULL; ep 461 drivers/usb/gadget/udc/net2280.c INIT_LIST_HEAD(&ep->queue); ep 463 drivers/usb/gadget/udc/net2280.c usb_ep_set_maxpacket_limit(&ep->ep, ~0); ep 464 drivers/usb/gadget/udc/net2280.c ep->ep.ops = &net2280_ep_ops; ep 467 drivers/usb/gadget/udc/net2280.c if (ep->dma) { ep 468 drivers/usb/gadget/udc/net2280.c writel(0, &ep->dma->dmactl); ep 474 drivers/usb/gadget/udc/net2280.c &ep->dma->dmastat); ep 476 drivers/usb/gadget/udc/net2280.c dmastat = readl(&ep->dma->dmastat); ep 478 drivers/usb/gadget/udc/net2280.c ep_warn(ep->dev, "The dmastat return = %x!!\n", ep 480 drivers/usb/gadget/udc/net2280.c writel(0x5a, &ep->dma->dmastat); ep 484 drivers/usb/gadget/udc/net2280.c tmp &= ~BIT(ep_bit[ep->num]); ep 487 drivers/usb/gadget/udc/net2280.c if (ep->num < 5) { ep 489 drivers/usb/gadget/udc/net2280.c tmp &= ~BIT((8 + ep->num)); /* completion */ ep 493 drivers/usb/gadget/udc/net2280.c writel(0, &ep->regs->ep_irqenb); ep 501 drivers/usb/gadget/udc/net2280.c BIT(DATA_IN_TOKEN_INTERRUPT), &ep->regs->ep_stat); ep 503 drivers/usb/gadget/udc/net2280.c tmp = readl(&ep->cfg->ep_cfg); ep 504 drivers/usb/gadget/udc/net2280.c if (ep->is_in) ep 508 drivers/usb/gadget/udc/net2280.c writel(tmp, &ep->cfg->ep_cfg); ep 515 drivers/usb/gadget/udc/net2280.c struct net2280_ep *ep; ep 518 drivers/usb/gadget/udc/net2280.c ep = container_of(_ep, struct net2280_ep, ep); ep 523 drivers/usb/gadget/udc/net2280.c spin_lock_irqsave(&ep->dev->lock, flags); ep 524 drivers/usb/gadget/udc/net2280.c nuke(ep); ep 526 drivers/usb/gadget/udc/net2280.c if (ep->dev->quirks & PLX_PCIE) ep 527 drivers/usb/gadget/udc/net2280.c ep_reset_338x(ep->dev->regs, ep); ep 529 drivers/usb/gadget/udc/net2280.c ep_reset_228x(ep->dev->regs, ep); ep 531 drivers/usb/gadget/udc/net2280.c ep_vdbg(ep->dev, "disabled %s %s\n", ep 532 drivers/usb/gadget/udc/net2280.c ep->dma ? "dma" : "pio", _ep->name); ep 535 drivers/usb/gadget/udc/net2280.c (void)readl(&ep->cfg->ep_cfg); ep 537 drivers/usb/gadget/udc/net2280.c if (!ep->dma && ep->num >= 1 && ep->num <= 4) ep 538 drivers/usb/gadget/udc/net2280.c ep->dma = &ep->dev->dma[ep->num - 1]; ep 540 drivers/usb/gadget/udc/net2280.c spin_unlock_irqrestore(&ep->dev->lock, flags); ep 549 drivers/usb/gadget/udc/net2280.c struct net2280_ep *ep; ep 556 drivers/usb/gadget/udc/net2280.c ep = container_of(_ep, struct net2280_ep, ep); ep 565 drivers/usb/gadget/udc/net2280.c if (ep->dma) { ep 568 drivers/usb/gadget/udc/net2280.c td = dma_pool_alloc(ep->dev->requests, gfp_flags, ep 583 drivers/usb/gadget/udc/net2280.c struct net2280_ep *ep; ep 586 drivers/usb/gadget/udc/net2280.c ep = container_of(_ep, struct net2280_ep, ep); ep 588 drivers/usb/gadget/udc/net2280.c dev_err(&ep->dev->pdev->dev, "%s: Invalid ep=%p or req=%p\n", ep 596 drivers/usb/gadget/udc/net2280.c dma_pool_free(ep->dev->requests, req->td, req->td_dma); ep 609 drivers/usb/gadget/udc/net2280.c static void write_fifo(struct net2280_ep *ep, struct usb_request *req) ep 611 drivers/usb/gadget/udc/net2280.c struct net2280_ep_regs __iomem *regs = ep->regs; ep 628 drivers/usb/gadget/udc/net2280.c count = ep->ep.maxpacket; ep 632 drivers/usb/gadget/udc/net2280.c ep_vdbg(ep->dev, "write %s fifo (IN) %d bytes%s req %p\n", ep 633 drivers/usb/gadget/udc/net2280.c ep->ep.name, count, ep 634 drivers/usb/gadget/udc/net2280.c (count != ep->ep.maxpacket) ? " (short)" : "", ep 652 drivers/usb/gadget/udc/net2280.c if (count || total < ep->ep.maxpacket) { ep 655 drivers/usb/gadget/udc/net2280.c set_fifo_bytecount(ep, count & 0x03); ep 669 drivers/usb/gadget/udc/net2280.c static void out_flush(struct net2280_ep *ep) ep 674 drivers/usb/gadget/udc/net2280.c statp = &ep->regs->ep_stat; ep 678 drivers/usb/gadget/udc/net2280.c ep_dbg(ep->dev, "%s %s %08x !NAK\n", ep 679 drivers/usb/gadget/udc/net2280.c ep->ep.name, __func__, tmp); ep 680 drivers/usb/gadget/udc/net2280.c writel(BIT(SET_NAK_OUT_PACKETS), &ep->regs->ep_rsp); ep 692 drivers/usb/gadget/udc/net2280.c ep->dev->gadget.speed == USB_SPEED_FULL) { ep 709 drivers/usb/gadget/udc/net2280.c static int read_fifo(struct net2280_ep *ep, struct net2280_request *req) ep 711 drivers/usb/gadget/udc/net2280.c struct net2280_ep_regs __iomem *regs = ep->regs; ep 719 drivers/usb/gadget/udc/net2280.c if (ep->dev->chiprev == 0x0100 && ep 720 drivers/usb/gadget/udc/net2280.c ep->dev->gadget.speed == USB_SPEED_FULL) { ep 722 drivers/usb/gadget/udc/net2280.c tmp = readl(&ep->regs->ep_stat); ep 726 drivers/usb/gadget/udc/net2280.c start_out_naking(ep); ep 739 drivers/usb/gadget/udc/net2280.c tmp = readl(&ep->regs->ep_stat); ep 749 drivers/usb/gadget/udc/net2280.c if ((tmp % ep->ep.maxpacket) != 0) { ep 750 drivers/usb/gadget/udc/net2280.c ep_err(ep->dev, ep 752 drivers/usb/gadget/udc/net2280.c ep->ep.name, count, tmp); ep 763 drivers/usb/gadget/udc/net2280.c is_short = (count == 0) || ((count % ep->ep.maxpacket) != 0); ep 765 drivers/usb/gadget/udc/net2280.c ep_vdbg(ep->dev, "read %s fifo (OUT) %d bytes%s%s%s req %p %d/%d\n", ep 766 drivers/usb/gadget/udc/net2280.c ep->ep.name, count, is_short ? " (short)" : "", ep 786 drivers/usb/gadget/udc/net2280.c out_flush(ep); ep 788 drivers/usb/gadget/udc/net2280.c writel(BIT(CLEAR_NAK_OUT_PACKETS), &ep->regs->ep_rsp); ep 789 drivers/usb/gadget/udc/net2280.c (void) readl(&ep->regs->ep_rsp); ep 796 drivers/usb/gadget/udc/net2280.c static void fill_dma_desc(struct net2280_ep *ep, ep 807 drivers/usb/gadget/udc/net2280.c if (ep->is_in) ep 809 drivers/usb/gadget/udc/net2280.c if ((!ep->is_in && (dmacount % ep->ep.maxpacket) != 0) || ep 810 drivers/usb/gadget/udc/net2280.c !(ep->dev->quirks & PLX_2280)) ep 848 drivers/usb/gadget/udc/net2280.c static void start_queue(struct net2280_ep *ep, u32 dmactl, u32 td_dma) ep 850 drivers/usb/gadget/udc/net2280.c struct net2280_dma_regs __iomem *dma = ep->dma; ep 851 drivers/usb/gadget/udc/net2280.c unsigned int tmp = BIT(VALID_BIT) | (ep->is_in << DMA_DIRECTION); ep 853 drivers/usb/gadget/udc/net2280.c if (!(ep->dev->quirks & PLX_2280)) ep 860 drivers/usb/gadget/udc/net2280.c if (ep->dev->quirks & PLX_PCIE) ep 865 drivers/usb/gadget/udc/net2280.c (void) readl(&ep->dev->pci->pcimstctl); ep 870 drivers/usb/gadget/udc/net2280.c static void start_dma(struct net2280_ep *ep, struct net2280_request *req) ep 873 drivers/usb/gadget/udc/net2280.c struct net2280_dma_regs __iomem *dma = ep->dma; ep 879 drivers/usb/gadget/udc/net2280.c writel(0, &ep->dma->dmactl); ep 882 drivers/usb/gadget/udc/net2280.c if (!ep->is_in && (readl(&ep->regs->ep_stat) & ep 885 drivers/usb/gadget/udc/net2280.c &ep->regs->ep_stat); ep 887 drivers/usb/gadget/udc/net2280.c tmp = readl(&ep->regs->ep_avail); ep 906 drivers/usb/gadget/udc/net2280.c stop_out_naking(ep); ep 915 drivers/usb/gadget/udc/net2280.c if (ep->is_in) { ep 916 drivers/usb/gadget/udc/net2280.c if (likely((req->req.length % ep->ep.maxpacket) || ep 919 drivers/usb/gadget/udc/net2280.c ep->in_fifo_validate = 1; ep 921 drivers/usb/gadget/udc/net2280.c ep->in_fifo_validate = 0; ep 925 drivers/usb/gadget/udc/net2280.c req->td->dmadesc = cpu_to_le32 (ep->td_dma); ep 926 drivers/usb/gadget/udc/net2280.c fill_dma_desc(ep, req, 1); ep 930 drivers/usb/gadget/udc/net2280.c start_queue(ep, tmp, req->td_dma); ep 934 drivers/usb/gadget/udc/net2280.c queue_dma(struct net2280_ep *ep, struct net2280_request *req, int valid) ep 940 drivers/usb/gadget/udc/net2280.c end = ep->dummy; ep 941 drivers/usb/gadget/udc/net2280.c ep->dummy = req->td; ep 944 drivers/usb/gadget/udc/net2280.c tmp = ep->td_dma; ep 945 drivers/usb/gadget/udc/net2280.c ep->td_dma = req->td_dma; ep 948 drivers/usb/gadget/udc/net2280.c end->dmadesc = cpu_to_le32 (ep->td_dma); ep 950 drivers/usb/gadget/udc/net2280.c fill_dma_desc(ep, req, valid); ep 954 drivers/usb/gadget/udc/net2280.c done(struct net2280_ep *ep, struct net2280_request *req, int status) ep 957 drivers/usb/gadget/udc/net2280.c unsigned stopped = ep->stopped; ep 966 drivers/usb/gadget/udc/net2280.c dev = ep->dev; ep 967 drivers/usb/gadget/udc/net2280.c if (ep->dma) ep 968 drivers/usb/gadget/udc/net2280.c usb_gadget_unmap_request(&dev->gadget, &req->req, ep->is_in); ep 972 drivers/usb/gadget/udc/net2280.c ep->ep.name, &req->req, status, ep 976 drivers/usb/gadget/udc/net2280.c ep->stopped = 1; ep 978 drivers/usb/gadget/udc/net2280.c usb_gadget_giveback_request(&ep->ep, &req->req); ep 980 drivers/usb/gadget/udc/net2280.c ep->stopped = stopped; ep 989 drivers/usb/gadget/udc/net2280.c struct net2280_ep *ep; ep 997 drivers/usb/gadget/udc/net2280.c ep = container_of(_ep, struct net2280_ep, ep); ep 998 drivers/usb/gadget/udc/net2280.c if (!_ep || (!ep->desc && ep->num != 0)) { ep 1012 drivers/usb/gadget/udc/net2280.c dev = ep->dev; ep 1019 drivers/usb/gadget/udc/net2280.c if (ep->dma && _req->length == 0) { ep 1025 drivers/usb/gadget/udc/net2280.c if (ep->dma) { ep 1027 drivers/usb/gadget/udc/net2280.c ep->is_in); ep 1041 drivers/usb/gadget/udc/net2280.c if (list_empty(&ep->queue) && !ep->stopped && ep 1042 drivers/usb/gadget/udc/net2280.c !((dev->quirks & PLX_PCIE) && ep->dma && ep 1043 drivers/usb/gadget/udc/net2280.c (readl(&ep->regs->ep_rsp) & BIT(CLEAR_ENDPOINT_HALT)))) { ep 1046 drivers/usb/gadget/udc/net2280.c if (ep->dma) ep 1047 drivers/usb/gadget/udc/net2280.c start_dma(ep, req); ep 1050 drivers/usb/gadget/udc/net2280.c if (ep->num == 0 && _req->length == 0) { ep 1051 drivers/usb/gadget/udc/net2280.c allow_status(ep); ep 1052 drivers/usb/gadget/udc/net2280.c done(ep, req, 0); ep 1053 drivers/usb/gadget/udc/net2280.c ep_vdbg(dev, "%s status ack\n", ep->ep.name); ep 1058 drivers/usb/gadget/udc/net2280.c if (ep->is_in) ep 1059 drivers/usb/gadget/udc/net2280.c write_fifo(ep, _req); ep 1064 drivers/usb/gadget/udc/net2280.c s = readl(&ep->regs->ep_stat); ep 1072 drivers/usb/gadget/udc/net2280.c if (read_fifo(ep, req) && ep 1073 drivers/usb/gadget/udc/net2280.c ep->num == 0) { ep 1074 drivers/usb/gadget/udc/net2280.c done(ep, req, 0); ep 1075 drivers/usb/gadget/udc/net2280.c allow_status(ep); ep 1078 drivers/usb/gadget/udc/net2280.c } else if (read_fifo(ep, req) && ep 1079 drivers/usb/gadget/udc/net2280.c ep->num != 0) { ep 1080 drivers/usb/gadget/udc/net2280.c done(ep, req, 0); ep 1083 drivers/usb/gadget/udc/net2280.c s = readl(&ep->regs->ep_stat); ep 1089 drivers/usb/gadget/udc/net2280.c &ep->regs->ep_rsp); ep 1093 drivers/usb/gadget/udc/net2280.c } else if (ep->dma) { ep 1096 drivers/usb/gadget/udc/net2280.c if (ep->is_in) { ep 1103 drivers/usb/gadget/udc/net2280.c (req->req.length % ep->ep.maxpacket)); ep 1104 drivers/usb/gadget/udc/net2280.c if (expect != ep->in_fifo_validate) ep 1107 drivers/usb/gadget/udc/net2280.c queue_dma(ep, req, valid); ep 1111 drivers/usb/gadget/udc/net2280.c ep->responded = 1; ep 1113 drivers/usb/gadget/udc/net2280.c list_add_tail(&req->queue, &ep->queue); ep 1121 drivers/usb/gadget/udc/net2280.c dev_err(&ep->dev->pdev->dev, "%s: error=%d\n", __func__, ret); ep 1126 drivers/usb/gadget/udc/net2280.c dma_done(struct net2280_ep *ep, struct net2280_request *req, u32 dmacount, ep 1130 drivers/usb/gadget/udc/net2280.c done(ep, req, status); ep 1133 drivers/usb/gadget/udc/net2280.c static int scan_dma_completions(struct net2280_ep *ep) ep 1140 drivers/usb/gadget/udc/net2280.c while (!list_empty(&ep->queue)) { ep 1144 drivers/usb/gadget/udc/net2280.c req = list_entry(ep->queue.next, ep 1159 drivers/usb/gadget/udc/net2280.c u32 const ep_dmacount = readl(&ep->dma->dmacount); ep 1164 drivers/usb/gadget/udc/net2280.c dma_done(ep, req, req_dma_count, 0); ep 1167 drivers/usb/gadget/udc/net2280.c } else if (!ep->is_in && ep 1168 drivers/usb/gadget/udc/net2280.c (req->req.length % ep->ep.maxpacket) && ep 1169 drivers/usb/gadget/udc/net2280.c !(ep->dev->quirks & PLX_PCIE)) { ep 1171 drivers/usb/gadget/udc/net2280.c u32 const ep_stat = readl(&ep->regs->ep_stat); ep 1177 drivers/usb/gadget/udc/net2280.c ep_warn(ep->dev, "%s lost packet sync!\n", ep 1178 drivers/usb/gadget/udc/net2280.c ep->ep.name); ep 1181 drivers/usb/gadget/udc/net2280.c u32 const ep_avail = readl(&ep->regs->ep_avail); ep 1184 drivers/usb/gadget/udc/net2280.c ep->out_overflow = 1; ep 1185 drivers/usb/gadget/udc/net2280.c ep_dbg(ep->dev, ep 1187 drivers/usb/gadget/udc/net2280.c ep->ep.name, ep_avail, ep 1193 drivers/usb/gadget/udc/net2280.c dma_done(ep, req, req_dma_count, 0); ep 1200 drivers/usb/gadget/udc/net2280.c static void restart_dma(struct net2280_ep *ep) ep 1204 drivers/usb/gadget/udc/net2280.c if (ep->stopped) ep 1206 drivers/usb/gadget/udc/net2280.c req = list_entry(ep->queue.next, struct net2280_request, queue); ep 1208 drivers/usb/gadget/udc/net2280.c start_dma(ep, req); ep 1211 drivers/usb/gadget/udc/net2280.c static void abort_dma(struct net2280_ep *ep) ep 1214 drivers/usb/gadget/udc/net2280.c if (likely(!list_empty(&ep->queue))) { ep 1216 drivers/usb/gadget/udc/net2280.c writel(BIT(DMA_ABORT), &ep->dma->dmastat); ep 1217 drivers/usb/gadget/udc/net2280.c spin_stop_dma(ep->dma); ep 1219 drivers/usb/gadget/udc/net2280.c stop_dma(ep->dma); ep 1220 drivers/usb/gadget/udc/net2280.c scan_dma_completions(ep); ep 1224 drivers/usb/gadget/udc/net2280.c static void nuke(struct net2280_ep *ep) ep 1229 drivers/usb/gadget/udc/net2280.c ep->stopped = 1; ep 1230 drivers/usb/gadget/udc/net2280.c if (ep->dma) ep 1231 drivers/usb/gadget/udc/net2280.c abort_dma(ep); ep 1232 drivers/usb/gadget/udc/net2280.c while (!list_empty(&ep->queue)) { ep 1233 drivers/usb/gadget/udc/net2280.c req = list_entry(ep->queue.next, ep 1236 drivers/usb/gadget/udc/net2280.c done(ep, req, -ESHUTDOWN); ep 1243 drivers/usb/gadget/udc/net2280.c struct net2280_ep *ep; ep 1249 drivers/usb/gadget/udc/net2280.c ep = container_of(_ep, struct net2280_ep, ep); ep 1250 drivers/usb/gadget/udc/net2280.c if (!_ep || (!ep->desc && ep->num != 0) || !_req) { ep 1256 drivers/usb/gadget/udc/net2280.c spin_lock_irqsave(&ep->dev->lock, flags); ep 1257 drivers/usb/gadget/udc/net2280.c stopped = ep->stopped; ep 1261 drivers/usb/gadget/udc/net2280.c ep->stopped = 1; ep 1262 drivers/usb/gadget/udc/net2280.c if (ep->dma) { ep 1263 drivers/usb/gadget/udc/net2280.c dmactl = readl(&ep->dma->dmactl); ep 1265 drivers/usb/gadget/udc/net2280.c stop_dma(ep->dma); ep 1266 drivers/usb/gadget/udc/net2280.c scan_dma_completions(ep); ep 1270 drivers/usb/gadget/udc/net2280.c list_for_each_entry(req, &ep->queue, queue) { ep 1275 drivers/usb/gadget/udc/net2280.c ep->stopped = stopped; ep 1276 drivers/usb/gadget/udc/net2280.c spin_unlock_irqrestore(&ep->dev->lock, flags); ep 1277 drivers/usb/gadget/udc/net2280.c ep_dbg(ep->dev, "%s: Request mismatch\n", __func__); ep 1282 drivers/usb/gadget/udc/net2280.c if (ep->queue.next == &req->queue) { ep 1283 drivers/usb/gadget/udc/net2280.c if (ep->dma) { ep 1284 drivers/usb/gadget/udc/net2280.c ep_dbg(ep->dev, "unlink (%s) dma\n", _ep->name); ep 1286 drivers/usb/gadget/udc/net2280.c abort_dma(ep); ep 1287 drivers/usb/gadget/udc/net2280.c if (likely(ep->queue.next == &req->queue)) { ep 1290 drivers/usb/gadget/udc/net2280.c dma_done(ep, req, ep 1291 drivers/usb/gadget/udc/net2280.c readl(&ep->dma->dmacount), ep 1295 drivers/usb/gadget/udc/net2280.c ep_dbg(ep->dev, "unlink (%s) pio\n", _ep->name); ep 1296 drivers/usb/gadget/udc/net2280.c done(ep, req, -ECONNRESET); ep 1302 drivers/usb/gadget/udc/net2280.c done(ep, req, -ECONNRESET); ep 1303 drivers/usb/gadget/udc/net2280.c ep->stopped = stopped; ep 1305 drivers/usb/gadget/udc/net2280.c if (ep->dma) { ep 1307 drivers/usb/gadget/udc/net2280.c if (list_empty(&ep->queue)) ep 1308 drivers/usb/gadget/udc/net2280.c stop_dma(ep->dma); ep 1309 drivers/usb/gadget/udc/net2280.c else if (!ep->stopped) { ep 1312 drivers/usb/gadget/udc/net2280.c writel(dmactl, &ep->dma->dmactl); ep 1314 drivers/usb/gadget/udc/net2280.c start_dma(ep, list_entry(ep->queue.next, ep 1319 drivers/usb/gadget/udc/net2280.c spin_unlock_irqrestore(&ep->dev->lock, flags); ep 1330 drivers/usb/gadget/udc/net2280.c struct net2280_ep *ep; ep 1334 drivers/usb/gadget/udc/net2280.c ep = container_of(_ep, struct net2280_ep, ep); ep 1335 drivers/usb/gadget/udc/net2280.c if (!_ep || (!ep->desc && ep->num != 0)) { ep 1339 drivers/usb/gadget/udc/net2280.c if (!ep->dev->driver || ep->dev->gadget.speed == USB_SPEED_UNKNOWN) { ep 1343 drivers/usb/gadget/udc/net2280.c if (ep->desc /* not ep0 */ && (ep->desc->bmAttributes & 0x03) ep 1349 drivers/usb/gadget/udc/net2280.c spin_lock_irqsave(&ep->dev->lock, flags); ep 1350 drivers/usb/gadget/udc/net2280.c if (!list_empty(&ep->queue)) { ep 1353 drivers/usb/gadget/udc/net2280.c } else if (ep->is_in && value && net2280_fifo_status(_ep) != 0) { ep 1357 drivers/usb/gadget/udc/net2280.c ep_vdbg(ep->dev, "%s %s %s\n", _ep->name, ep 1362 drivers/usb/gadget/udc/net2280.c if (ep->num == 0) ep 1363 drivers/usb/gadget/udc/net2280.c ep->dev->protocol_stall = 1; ep 1365 drivers/usb/gadget/udc/net2280.c set_halt(ep); ep 1367 drivers/usb/gadget/udc/net2280.c ep->wedged = 1; ep 1369 drivers/usb/gadget/udc/net2280.c clear_halt(ep); ep 1370 drivers/usb/gadget/udc/net2280.c if (ep->dev->quirks & PLX_PCIE && ep 1371 drivers/usb/gadget/udc/net2280.c !list_empty(&ep->queue) && ep->td_dma) ep 1372 drivers/usb/gadget/udc/net2280.c restart_dma(ep); ep 1373 drivers/usb/gadget/udc/net2280.c ep->wedged = 0; ep 1375 drivers/usb/gadget/udc/net2280.c (void) readl(&ep->regs->ep_rsp); ep 1377 drivers/usb/gadget/udc/net2280.c spin_unlock_irqrestore(&ep->dev->lock, flags); ep 1382 drivers/usb/gadget/udc/net2280.c spin_unlock_irqrestore(&ep->dev->lock, flags); ep 1384 drivers/usb/gadget/udc/net2280.c dev_err(&ep->dev->pdev->dev, "%s: error=%d\n", __func__, retval); ep 1404 drivers/usb/gadget/udc/net2280.c struct net2280_ep *ep; ep 1407 drivers/usb/gadget/udc/net2280.c ep = container_of(_ep, struct net2280_ep, ep); ep 1408 drivers/usb/gadget/udc/net2280.c if (!_ep || (!ep->desc && ep->num != 0)) { ep 1412 drivers/usb/gadget/udc/net2280.c if (!ep->dev->driver || ep->dev->gadget.speed == USB_SPEED_UNKNOWN) { ep 1413 drivers/usb/gadget/udc/net2280.c dev_err(&ep->dev->pdev->dev, ep 1415 drivers/usb/gadget/udc/net2280.c __func__, ep->dev->driver, ep->dev->gadget.speed); ep 1419 drivers/usb/gadget/udc/net2280.c avail = readl(&ep->regs->ep_avail) & (BIT(12) - 1); ep 1420 drivers/usb/gadget/udc/net2280.c if (avail > ep->fifo_size) { ep 1421 drivers/usb/gadget/udc/net2280.c dev_err(&ep->dev->pdev->dev, "%s: Fifo overflow\n", __func__); ep 1424 drivers/usb/gadget/udc/net2280.c if (ep->is_in) ep 1425 drivers/usb/gadget/udc/net2280.c avail = ep->fifo_size - avail; ep 1431 drivers/usb/gadget/udc/net2280.c struct net2280_ep *ep; ep 1433 drivers/usb/gadget/udc/net2280.c ep = container_of(_ep, struct net2280_ep, ep); ep 1434 drivers/usb/gadget/udc/net2280.c if (!_ep || (!ep->desc && ep->num != 0)) { ep 1438 drivers/usb/gadget/udc/net2280.c if (!ep->dev->driver || ep->dev->gadget.speed == USB_SPEED_UNKNOWN) { ep 1439 drivers/usb/gadget/udc/net2280.c dev_err(&ep->dev->pdev->dev, ep 1441 drivers/usb/gadget/udc/net2280.c __func__, ep->dev->driver, ep->dev->gadget.speed); ep 1445 drivers/usb/gadget/udc/net2280.c writel(BIT(FIFO_FLUSH), &ep->regs->ep_stat); ep 1446 drivers/usb/gadget/udc/net2280.c (void) readl(&ep->regs->ep_rsp); ep 1558 drivers/usb/gadget/udc/net2280.c struct usb_ep *ep; ep 1562 drivers/usb/gadget/udc/net2280.c ep = gadget_find_ep_by_name(_gadget, "ep-e"); ep 1563 drivers/usb/gadget/udc/net2280.c if (ep && usb_gadget_ep_match_desc(_gadget, ep, desc, ep_comp)) ep 1564 drivers/usb/gadget/udc/net2280.c return ep; ep 1565 drivers/usb/gadget/udc/net2280.c ep = gadget_find_ep_by_name(_gadget, "ep-f"); ep 1566 drivers/usb/gadget/udc/net2280.c if (ep && usb_gadget_ep_match_desc(_gadget, ep, desc, ep_comp)) ep 1567 drivers/usb/gadget/udc/net2280.c return ep; ep 1576 drivers/usb/gadget/udc/net2280.c ep = gadget_find_ep_by_name(_gadget, "ep2in"); ep 1577 drivers/usb/gadget/udc/net2280.c if (ep && usb_gadget_ep_match_desc(_gadget, ep, desc, ep_comp)) ep 1578 drivers/usb/gadget/udc/net2280.c return ep; ep 1579 drivers/usb/gadget/udc/net2280.c ep = gadget_find_ep_by_name(_gadget, "ep4in"); ep 1580 drivers/usb/gadget/udc/net2280.c if (ep && usb_gadget_ep_match_desc(_gadget, ep, desc, ep_comp)) ep 1581 drivers/usb/gadget/udc/net2280.c return ep; ep 1584 drivers/usb/gadget/udc/net2280.c ep = gadget_find_ep_by_name(_gadget, "ep1out"); ep 1585 drivers/usb/gadget/udc/net2280.c if (ep && usb_gadget_ep_match_desc(_gadget, ep, desc, ep_comp)) ep 1586 drivers/usb/gadget/udc/net2280.c return ep; ep 1587 drivers/usb/gadget/udc/net2280.c ep = gadget_find_ep_by_name(_gadget, "ep3out"); ep 1588 drivers/usb/gadget/udc/net2280.c if (ep && usb_gadget_ep_match_desc(_gadget, ep, desc, ep_comp)) ep 1589 drivers/usb/gadget/udc/net2280.c return ep; ep 1592 drivers/usb/gadget/udc/net2280.c ep = gadget_find_ep_by_name(_gadget, "ep1in"); ep 1593 drivers/usb/gadget/udc/net2280.c if (ep && usb_gadget_ep_match_desc(_gadget, ep, desc, ep_comp)) ep 1594 drivers/usb/gadget/udc/net2280.c return ep; ep 1595 drivers/usb/gadget/udc/net2280.c ep = gadget_find_ep_by_name(_gadget, "ep3in"); ep 1596 drivers/usb/gadget/udc/net2280.c if (ep && usb_gadget_ep_match_desc(_gadget, ep, desc, ep_comp)) ep 1597 drivers/usb/gadget/udc/net2280.c return ep; ep 1600 drivers/usb/gadget/udc/net2280.c ep = gadget_find_ep_by_name(_gadget, "ep2out"); ep 1601 drivers/usb/gadget/udc/net2280.c if (ep && usb_gadget_ep_match_desc(_gadget, ep, desc, ep_comp)) ep 1602 drivers/usb/gadget/udc/net2280.c return ep; ep 1603 drivers/usb/gadget/udc/net2280.c ep = gadget_find_ep_by_name(_gadget, "ep4out"); ep 1604 drivers/usb/gadget/udc/net2280.c if (ep && usb_gadget_ep_match_desc(_gadget, ep, desc, ep_comp)) ep 1605 drivers/usb/gadget/udc/net2280.c return ep; ep 1611 drivers/usb/gadget/udc/net2280.c ep = gadget_find_ep_by_name(_gadget, name); ep 1612 drivers/usb/gadget/udc/net2280.c if (ep && usb_gadget_ep_match_desc(_gadget, ep, desc, ep_comp)) ep 1613 drivers/usb/gadget/udc/net2280.c return ep; ep 1719 drivers/usb/gadget/udc/net2280.c struct net2280_ep *ep; ep 1721 drivers/usb/gadget/udc/net2280.c ep = &dev->ep[i]; ep 1722 drivers/usb/gadget/udc/net2280.c if (i && !ep->desc) ep 1725 drivers/usb/gadget/udc/net2280.c t1 = readl(&ep->cfg->ep_cfg); ep 1726 drivers/usb/gadget/udc/net2280.c t2 = readl(&ep->regs->ep_rsp) & 0xff; ep 1730 drivers/usb/gadget/udc/net2280.c ep->ep.name, t1, t2, ep 1747 drivers/usb/gadget/udc/net2280.c readl(&ep->regs->ep_irqenb)); ep 1754 drivers/usb/gadget/udc/net2280.c readl(&ep->regs->ep_stat), ep 1755 drivers/usb/gadget/udc/net2280.c readl(&ep->regs->ep_avail), ep 1758 drivers/usb/gadget/udc/net2280.c ep->stopped ? "*" : ""); ep 1762 drivers/usb/gadget/udc/net2280.c if (!ep->dma) ep 1768 drivers/usb/gadget/udc/net2280.c readl(&ep->dma->dmactl), ep 1769 drivers/usb/gadget/udc/net2280.c readl(&ep->dma->dmastat), ep 1770 drivers/usb/gadget/udc/net2280.c readl(&ep->dma->dmacount), ep 1771 drivers/usb/gadget/udc/net2280.c readl(&ep->dma->dmaaddr), ep 1772 drivers/usb/gadget/udc/net2280.c readl(&ep->dma->dmadesc)); ep 1785 drivers/usb/gadget/udc/net2280.c struct net2280_ep *ep; ep 1787 drivers/usb/gadget/udc/net2280.c ep = &dev->ep[i]; ep 1788 drivers/usb/gadget/udc/net2280.c if (i && !ep->irqs) ep 1790 drivers/usb/gadget/udc/net2280.c t = scnprintf(next, size, " %s/%lu", ep->ep.name, ep->irqs); ep 1820 drivers/usb/gadget/udc/net2280.c struct net2280_ep *ep = &dev->ep[i]; ep 1827 drivers/usb/gadget/udc/net2280.c d = ep->desc; ep 1833 drivers/usb/gadget/udc/net2280.c ep->ep.name, t & USB_ENDPOINT_NUMBER_MASK, ep 1837 drivers/usb/gadget/udc/net2280.c ep->dma ? "dma" : "pio", ep->fifo_size ep 1841 drivers/usb/gadget/udc/net2280.c ep->is_in ? "in" : "out"); ep 1847 drivers/usb/gadget/udc/net2280.c if (list_empty(&ep->queue)) { ep 1855 drivers/usb/gadget/udc/net2280.c list_for_each_entry(req, &ep->queue, queue) { ep 1856 drivers/usb/gadget/udc/net2280.c if (ep->dma && req->td_dma == readl(&ep->dma->dmadesc)) ep 1862 drivers/usb/gadget/udc/net2280.c readl(&ep->dma->dmacount)); ep 1873 drivers/usb/gadget/udc/net2280.c if (ep->dma) { ep 1918 drivers/usb/gadget/udc/net2280.c list_add_tail(&dev->ep[1].ep.ep_list, &dev->gadget.ep_list); ep 1919 drivers/usb/gadget/udc/net2280.c list_add_tail(&dev->ep[2].ep.ep_list, &dev->gadget.ep_list); ep 1922 drivers/usb/gadget/udc/net2280.c list_add_tail(&dev->ep[3].ep.ep_list, &dev->gadget.ep_list); ep 1923 drivers/usb/gadget/udc/net2280.c list_add_tail(&dev->ep[4].ep.ep_list, &dev->gadget.ep_list); ep 1924 drivers/usb/gadget/udc/net2280.c dev->ep[1].fifo_size = dev->ep[2].fifo_size = 1024; ep 1927 drivers/usb/gadget/udc/net2280.c dev->ep[1].fifo_size = dev->ep[2].fifo_size = 2048; ep 1930 drivers/usb/gadget/udc/net2280.c list_add_tail(&dev->ep[3].ep.ep_list, &dev->gadget.ep_list); ep 1931 drivers/usb/gadget/udc/net2280.c dev->ep[1].fifo_size = 2048; ep 1932 drivers/usb/gadget/udc/net2280.c dev->ep[2].fifo_size = 1024; ep 1936 drivers/usb/gadget/udc/net2280.c list_add_tail(&dev->ep[5].ep.ep_list, &dev->gadget.ep_list); ep 1937 drivers/usb/gadget/udc/net2280.c list_add_tail(&dev->ep[6].ep.ep_list, &dev->gadget.ep_list); ep 1947 drivers/usb/gadget/udc/net2280.c struct net2280_ep *ep; ep 1953 drivers/usb/gadget/udc/net2280.c ep = &dev->ep[i]; ep 1954 drivers/usb/gadget/udc/net2280.c writel(i, &ep->cfg->ep_cfg); ep 2005 drivers/usb/gadget/udc/net2280.c writel(tmp, &dev->ep[i].cfg->ep_cfg); ep 2077 drivers/usb/gadget/udc/net2280.c struct net2280_ep *ep = &dev->ep[tmp + 1]; ep 2078 drivers/usb/gadget/udc/net2280.c if (ep->dma) ep 2079 drivers/usb/gadget/udc/net2280.c abort_dma(ep); ep 2115 drivers/usb/gadget/udc/net2280.c struct net2280_ep *ep = &dev->ep[tmp + 1]; ep 2118 drivers/usb/gadget/udc/net2280.c if (ep->dma) { ep 2119 drivers/usb/gadget/udc/net2280.c abort_dma(ep); ep 2144 drivers/usb/gadget/udc/net2280.c list_add_tail(&dev->ep[tmp].ep.ep_list, &dev->gadget.ep_list); ep 2161 drivers/usb/gadget/udc/net2280.c struct net2280_ep *ep = &dev->ep[tmp]; ep 2163 drivers/usb/gadget/udc/net2280.c ep->ep.name = ep_info_dft[tmp].name; ep 2164 drivers/usb/gadget/udc/net2280.c ep->ep.caps = ep_info_dft[tmp].caps; ep 2165 drivers/usb/gadget/udc/net2280.c ep->dev = dev; ep 2166 drivers/usb/gadget/udc/net2280.c ep->num = tmp; ep 2169 drivers/usb/gadget/udc/net2280.c ep->fifo_size = 1024; ep 2170 drivers/usb/gadget/udc/net2280.c ep->dma = &dev->dma[tmp - 1]; ep 2172 drivers/usb/gadget/udc/net2280.c ep->fifo_size = 64; ep 2173 drivers/usb/gadget/udc/net2280.c ep->regs = &dev->epregs[tmp]; ep 2174 drivers/usb/gadget/udc/net2280.c ep->cfg = &dev->epregs[tmp]; ep 2175 drivers/usb/gadget/udc/net2280.c ep_reset_228x(dev->regs, ep); ep 2177 drivers/usb/gadget/udc/net2280.c usb_ep_set_maxpacket_limit(&dev->ep[0].ep, 64); ep 2178 drivers/usb/gadget/udc/net2280.c usb_ep_set_maxpacket_limit(&dev->ep[5].ep, 64); ep 2179 drivers/usb/gadget/udc/net2280.c usb_ep_set_maxpacket_limit(&dev->ep[6].ep, 64); ep 2181 drivers/usb/gadget/udc/net2280.c dev->gadget.ep0 = &dev->ep[0].ep; ep 2182 drivers/usb/gadget/udc/net2280.c dev->ep[0].stopped = 0; ep 2202 drivers/usb/gadget/udc/net2280.c struct net2280_ep *ep = &dev->ep[i]; ep 2204 drivers/usb/gadget/udc/net2280.c ep->ep.name = dev->enhanced_mode ? ep_info_adv[i].name : ep 2206 drivers/usb/gadget/udc/net2280.c ep->ep.caps = dev->enhanced_mode ? ep_info_adv[i].caps : ep 2208 drivers/usb/gadget/udc/net2280.c ep->dev = dev; ep 2209 drivers/usb/gadget/udc/net2280.c ep->num = i; ep 2212 drivers/usb/gadget/udc/net2280.c ep->dma = &dev->dma[i - 1]; ep 2215 drivers/usb/gadget/udc/net2280.c ep->cfg = &dev->epregs[ne[i]]; ep 2221 drivers/usb/gadget/udc/net2280.c writel(ne[i], &ep->cfg->ep_cfg); ep 2222 drivers/usb/gadget/udc/net2280.c ep->regs = (struct net2280_ep_regs __iomem *) ep 2226 drivers/usb/gadget/udc/net2280.c ep->cfg = &dev->epregs[i]; ep 2227 drivers/usb/gadget/udc/net2280.c ep->regs = &dev->epregs[i]; ep 2230 drivers/usb/gadget/udc/net2280.c ep->fifo_size = (i != 0) ? 2048 : 512; ep 2232 drivers/usb/gadget/udc/net2280.c ep_reset_338x(dev->regs, ep); ep 2234 drivers/usb/gadget/udc/net2280.c usb_ep_set_maxpacket_limit(&dev->ep[0].ep, 512); ep 2236 drivers/usb/gadget/udc/net2280.c dev->gadget.ep0 = &dev->ep[0].ep; ep 2237 drivers/usb/gadget/udc/net2280.c dev->ep[0].stopped = 0; ep 2427 drivers/usb/gadget/udc/net2280.c dev->ep[i].irqs = 0; ep 2473 drivers/usb/gadget/udc/net2280.c nuke(&dev->ep[i]); ep 2512 drivers/usb/gadget/udc/net2280.c static void handle_ep_small(struct net2280_ep *ep) ep 2519 drivers/usb/gadget/udc/net2280.c if (!list_empty(&ep->queue)) ep 2520 drivers/usb/gadget/udc/net2280.c req = list_entry(ep->queue.next, ep 2526 drivers/usb/gadget/udc/net2280.c t = readl(&ep->regs->ep_stat); ep 2527 drivers/usb/gadget/udc/net2280.c ep->irqs++; ep 2529 drivers/usb/gadget/udc/net2280.c ep_vdbg(ep->dev, "%s ack ep_stat %08x, req %p\n", ep 2530 drivers/usb/gadget/udc/net2280.c ep->ep.name, t, req ? &req->req : NULL); ep 2532 drivers/usb/gadget/udc/net2280.c if (!ep->is_in || (ep->dev->quirks & PLX_2280)) ep 2533 drivers/usb/gadget/udc/net2280.c writel(t & ~BIT(NAK_OUT_PACKETS), &ep->regs->ep_stat); ep 2536 drivers/usb/gadget/udc/net2280.c writel(t, &ep->regs->ep_stat); ep 2548 drivers/usb/gadget/udc/net2280.c if (unlikely(ep->num == 0)) { ep 2549 drivers/usb/gadget/udc/net2280.c if (ep->is_in) { ep 2552 drivers/usb/gadget/udc/net2280.c if (ep->dev->protocol_stall) { ep 2553 drivers/usb/gadget/udc/net2280.c ep->stopped = 1; ep 2554 drivers/usb/gadget/udc/net2280.c set_halt(ep); ep 2557 drivers/usb/gadget/udc/net2280.c allow_status(ep); ep 2561 drivers/usb/gadget/udc/net2280.c if (ep->dev->protocol_stall) { ep 2562 drivers/usb/gadget/udc/net2280.c ep->stopped = 1; ep 2563 drivers/usb/gadget/udc/net2280.c set_halt(ep); ep 2565 drivers/usb/gadget/udc/net2280.c } else if (ep->responded && ep 2566 drivers/usb/gadget/udc/net2280.c !req && !ep->stopped) ep 2567 drivers/usb/gadget/udc/net2280.c write_fifo(ep, NULL); ep 2572 drivers/usb/gadget/udc/net2280.c if (ep->dev->protocol_stall) { ep 2573 drivers/usb/gadget/udc/net2280.c ep->stopped = 1; ep 2574 drivers/usb/gadget/udc/net2280.c set_halt(ep); ep 2581 drivers/usb/gadget/udc/net2280.c (ep->responded && !req)) { ep 2582 drivers/usb/gadget/udc/net2280.c ep->dev->protocol_stall = 1; ep 2583 drivers/usb/gadget/udc/net2280.c set_halt(ep); ep 2584 drivers/usb/gadget/udc/net2280.c ep->stopped = 1; ep 2586 drivers/usb/gadget/udc/net2280.c done(ep, req, -EOVERFLOW); ep 2596 drivers/usb/gadget/udc/net2280.c if (likely(ep->dma)) { ep 2599 drivers/usb/gadget/udc/net2280.c int stopped = ep->stopped; ep 2608 drivers/usb/gadget/udc/net2280.c ep->stopped = 1; ep 2609 drivers/usb/gadget/udc/net2280.c for (count = 0; ; t = readl(&ep->regs->ep_stat)) { ep 2614 drivers/usb/gadget/udc/net2280.c num_completed = scan_dma_completions(ep); ep 2615 drivers/usb/gadget/udc/net2280.c if (unlikely(list_empty(&ep->queue) || ep 2616 drivers/usb/gadget/udc/net2280.c ep->out_overflow)) { ep 2620 drivers/usb/gadget/udc/net2280.c req = list_entry(ep->queue.next, ep 2627 drivers/usb/gadget/udc/net2280.c count = readl(&ep->dma->dmacount); ep 2629 drivers/usb/gadget/udc/net2280.c if (readl(&ep->dma->dmadesc) ep 2640 drivers/usb/gadget/udc/net2280.c readl(&ep->dma->dmadesc) != ep 2643 drivers/usb/gadget/udc/net2280.c &ep->dma->dmacount); ep 2646 drivers/usb/gadget/udc/net2280.c ep_dbg(ep->dev, "%s escape stuck %d, count %u\n", ep 2647 drivers/usb/gadget/udc/net2280.c ep->ep.name, stuck, ep 2663 drivers/usb/gadget/udc/net2280.c writel(BIT(DMA_ABORT), &ep->dma->dmastat); ep 2664 drivers/usb/gadget/udc/net2280.c spin_stop_dma(ep->dma); ep 2668 drivers/usb/gadget/udc/net2280.c t = readl(&ep->regs->ep_avail); ep 2669 drivers/usb/gadget/udc/net2280.c dma_done(ep, req, count, ep 2670 drivers/usb/gadget/udc/net2280.c (ep->out_overflow || t) ep 2675 drivers/usb/gadget/udc/net2280.c if (unlikely(ep->out_overflow || ep 2676 drivers/usb/gadget/udc/net2280.c (ep->dev->chiprev == 0x0100 && ep 2677 drivers/usb/gadget/udc/net2280.c ep->dev->gadget.speed ep 2679 drivers/usb/gadget/udc/net2280.c out_flush(ep); ep 2680 drivers/usb/gadget/udc/net2280.c ep->out_overflow = 0; ep 2684 drivers/usb/gadget/udc/net2280.c ep->stopped = stopped; ep 2685 drivers/usb/gadget/udc/net2280.c if (!list_empty(&ep->queue)) ep 2686 drivers/usb/gadget/udc/net2280.c restart_dma(ep); ep 2688 drivers/usb/gadget/udc/net2280.c ep_dbg(ep->dev, "%s dma ep_stat %08x ??\n", ep 2689 drivers/usb/gadget/udc/net2280.c ep->ep.name, t); ep 2694 drivers/usb/gadget/udc/net2280.c if (read_fifo(ep, req) && ep->num != 0) ep 2702 drivers/usb/gadget/udc/net2280.c if (len > ep->ep.maxpacket) ep 2703 drivers/usb/gadget/udc/net2280.c len = ep->ep.maxpacket; ep 2709 drivers/usb/gadget/udc/net2280.c (!req->req.zero || len != ep->ep.maxpacket) && ep->num) ep 2719 drivers/usb/gadget/udc/net2280.c done(ep, req, 0); ep 2722 drivers/usb/gadget/udc/net2280.c if (ep->num == 0) { ep 2727 drivers/usb/gadget/udc/net2280.c if (!ep->stopped) ep 2728 drivers/usb/gadget/udc/net2280.c allow_status(ep); ep 2731 drivers/usb/gadget/udc/net2280.c if (!list_empty(&ep->queue) && !ep->stopped) ep 2732 drivers/usb/gadget/udc/net2280.c req = list_entry(ep->queue.next, ep 2736 drivers/usb/gadget/udc/net2280.c if (req && !ep->is_in) ep 2737 drivers/usb/gadget/udc/net2280.c stop_out_naking(ep); ep 2744 drivers/usb/gadget/udc/net2280.c if (req && !ep->stopped) { ep 2748 drivers/usb/gadget/udc/net2280.c write_fifo(ep, &req->req); ep 2754 drivers/usb/gadget/udc/net2280.c struct net2280_ep *ep; ep 2757 drivers/usb/gadget/udc/net2280.c return &dev->ep[0]; ep 2758 drivers/usb/gadget/udc/net2280.c list_for_each_entry(ep, &dev->gadget.ep_list, ep.ep_list) { ep 2761 drivers/usb/gadget/udc/net2280.c if (!ep->desc) ep 2763 drivers/usb/gadget/udc/net2280.c bEndpointAddress = ep->desc->bEndpointAddress; ep 2767 drivers/usb/gadget/udc/net2280.c return ep; ep 2846 drivers/usb/gadget/udc/net2280.c static void ep_clear_seqnum(struct net2280_ep *ep) ep 2848 drivers/usb/gadget/udc/net2280.c struct net2280 *dev = ep->dev; ep 2853 drivers/usb/gadget/udc/net2280.c val |= ep_pl[ep->num]; ep 2862 drivers/usb/gadget/udc/net2280.c struct net2280_ep *ep, struct usb_ctrlrequest r) ep 2887 drivers/usb/gadget/udc/net2280.c set_fifo_bytecount(ep, sizeof(status)); ep 2889 drivers/usb/gadget/udc/net2280.c allow_status_338x(ep); ep 2899 drivers/usb/gadget/udc/net2280.c set_fifo_bytecount(ep, sizeof(status)); ep 2901 drivers/usb/gadget/udc/net2280.c allow_status_338x(ep); ep 2919 drivers/usb/gadget/udc/net2280.c allow_status_338x(ep); ep 2927 drivers/usb/gadget/udc/net2280.c allow_status_338x(ep); ep 2935 drivers/usb/gadget/udc/net2280.c allow_status_338x(ep); ep 2947 drivers/usb/gadget/udc/net2280.c allow_status_338x(ep); ep 2958 drivers/usb/gadget/udc/net2280.c ep_vdbg(dev, "%s clear halt\n", e->ep.name); ep 2967 drivers/usb/gadget/udc/net2280.c allow_status(ep); ep 2968 drivers/usb/gadget/udc/net2280.c ep->stopped = 1; ep 2985 drivers/usb/gadget/udc/net2280.c allow_status_338x(ep); ep 2993 drivers/usb/gadget/udc/net2280.c allow_status_338x(ep); ep 3001 drivers/usb/gadget/udc/net2280.c allow_status_338x(ep); ep 3013 drivers/usb/gadget/udc/net2280.c allow_status_338x(ep); ep 3022 drivers/usb/gadget/udc/net2280.c ep->stopped = 1; ep 3023 drivers/usb/gadget/udc/net2280.c if (ep->num == 0) ep 3024 drivers/usb/gadget/udc/net2280.c ep->dev->protocol_stall = 1; ep 3026 drivers/usb/gadget/udc/net2280.c if (ep->dma) ep 3027 drivers/usb/gadget/udc/net2280.c abort_dma(ep); ep 3028 drivers/usb/gadget/udc/net2280.c set_halt(ep); ep 3030 drivers/usb/gadget/udc/net2280.c allow_status_338x(ep); ep 3044 drivers/usb/gadget/udc/net2280.c readl(&ep->cfg->ep_cfg)); ep 3046 drivers/usb/gadget/udc/net2280.c ep->responded = 0; ep 3057 drivers/usb/gadget/udc/net2280.c set_halt(ep); ep 3085 drivers/usb/gadget/udc/net2280.c handle_ep_small(&dev->ep[index]); ep 3091 drivers/usb/gadget/udc/net2280.c struct net2280_ep *ep; ep 3113 drivers/usb/gadget/udc/net2280.c usb_ep_set_maxpacket_limit(&dev->ep[0].ep, ep 3117 drivers/usb/gadget/udc/net2280.c usb_ep_set_maxpacket_limit(&dev->ep[0].ep, ep 3121 drivers/usb/gadget/udc/net2280.c usb_ep_set_maxpacket_limit(&dev->ep[0].ep, ep 3129 drivers/usb/gadget/udc/net2280.c ep = &dev->ep[0]; ep 3130 drivers/usb/gadget/udc/net2280.c ep->irqs++; ep 3134 drivers/usb/gadget/udc/net2280.c while (!list_empty(&ep->queue)) { ep 3135 drivers/usb/gadget/udc/net2280.c req = list_entry(ep->queue.next, ep 3137 drivers/usb/gadget/udc/net2280.c done(ep, req, (req->req.actual == req->req.length) ep 3140 drivers/usb/gadget/udc/net2280.c ep->stopped = 0; ep 3143 drivers/usb/gadget/udc/net2280.c if (ep->dev->quirks & PLX_2280) ep 3161 drivers/usb/gadget/udc/net2280.c &ep->regs->ep_stat); ep 3187 drivers/usb/gadget/udc/net2280.c ep->is_in = (u.r.bRequestType & USB_DIR_IN) != 0; ep 3188 drivers/usb/gadget/udc/net2280.c if (ep->is_in) { ep 3192 drivers/usb/gadget/udc/net2280.c stop_out_naking(ep); ep 3202 drivers/usb/gadget/udc/net2280.c ep->responded = 1; ep 3205 drivers/usb/gadget/udc/net2280.c handle_stat0_irqs_superspeed(dev, ep, u.r); ep 3228 drivers/usb/gadget/udc/net2280.c set_fifo_bytecount(ep, w_length); ep 3230 drivers/usb/gadget/udc/net2280.c allow_status(ep); ep 3231 drivers/usb/gadget/udc/net2280.c ep_vdbg(dev, "%s stat %02x\n", ep->ep.name, status); ep 3248 drivers/usb/gadget/udc/net2280.c ep->ep.name); ep 3250 drivers/usb/gadget/udc/net2280.c ep_vdbg(dev, "%s clear halt\n", e->ep.name); ep 3252 drivers/usb/gadget/udc/net2280.c if ((ep->dev->quirks & PLX_PCIE) && ep 3256 drivers/usb/gadget/udc/net2280.c allow_status(ep); ep 3271 drivers/usb/gadget/udc/net2280.c if (e->ep.name == ep0name) ep 3276 drivers/usb/gadget/udc/net2280.c allow_status(ep); ep 3277 drivers/usb/gadget/udc/net2280.c ep_vdbg(dev, "%s set halt\n", ep->ep.name); ep 3287 drivers/usb/gadget/udc/net2280.c readl(&ep->cfg->ep_cfg)); ep 3288 drivers/usb/gadget/udc/net2280.c ep->responded = 0; ep 3335 drivers/usb/gadget/udc/net2280.c ep = &dev->ep[num]; ep 3336 drivers/usb/gadget/udc/net2280.c handle_ep_small(ep); ep 3357 drivers/usb/gadget/udc/net2280.c struct net2280_ep *ep; ep 3469 drivers/usb/gadget/udc/net2280.c ep = &dev->ep[num + 1]; ep 3470 drivers/usb/gadget/udc/net2280.c dma = ep->dma; ep 3482 drivers/usb/gadget/udc/net2280.c if (!ep->is_in && (r_dmacount & 0x00FFFFFF) && ep 3488 drivers/usb/gadget/udc/net2280.c ep_dbg(ep->dev, "%s no xact done? %08x\n", ep 3489 drivers/usb/gadget/udc/net2280.c ep->ep.name, tmp); ep 3492 drivers/usb/gadget/udc/net2280.c stop_dma(ep->dma); ep 3504 drivers/usb/gadget/udc/net2280.c scan_dma_completions(ep); ep 3507 drivers/usb/gadget/udc/net2280.c if (!list_empty(&ep->queue)) { ep 3509 drivers/usb/gadget/udc/net2280.c restart_dma(ep); ep 3511 drivers/usb/gadget/udc/net2280.c ep->irqs++; ep 3584 drivers/usb/gadget/udc/net2280.c if (!dev->ep[i].dummy) ep 3586 drivers/usb/gadget/udc/net2280.c dma_pool_free(dev->requests, dev->ep[i].dummy, ep 3587 drivers/usb/gadget/udc/net2280.c dev->ep[i].td_dma); ep 3740 drivers/usb/gadget/udc/net2280.c &dev->ep[i].td_dma); ep 3748 drivers/usb/gadget/udc/net2280.c dev->ep[i].dummy = td; ep 91 drivers/usb/gadget/udc/net2280.h struct usb_ep ep; ep 114 drivers/usb/gadget/udc/net2280.h static inline void allow_status(struct net2280_ep *ep) ep 120 drivers/usb/gadget/udc/net2280.h &ep->regs->ep_rsp); ep 121 drivers/usb/gadget/udc/net2280.h ep->stopped = 1; ep 124 drivers/usb/gadget/udc/net2280.h static inline void allow_status_338x(struct net2280_ep *ep) ep 131 drivers/usb/gadget/udc/net2280.h writel(BIT(CLEAR_CONTROL_STATUS_PHASE_HANDSHAKE), &ep->regs->ep_rsp); ep 133 drivers/usb/gadget/udc/net2280.h ep->stopped = 1; ep 136 drivers/usb/gadget/udc/net2280.h ep->responded = 0; ep 152 drivers/usb/gadget/udc/net2280.h struct net2280_ep ep[9]; ep 187 drivers/usb/gadget/udc/net2280.h static inline void set_halt(struct net2280_ep *ep) ep 192 drivers/usb/gadget/udc/net2280.h ((ep->dev->chiprev == CHIPREV_1) << SET_NAK_OUT_PACKETS) | ep 194 drivers/usb/gadget/udc/net2280.h &ep->regs->ep_rsp); ep 197 drivers/usb/gadget/udc/net2280.h static inline void clear_halt(struct net2280_ep *ep) ep 206 drivers/usb/gadget/udc/net2280.h ((ep->dev->chiprev == CHIPREV_1) << CLEAR_NAK_OUT_PACKETS), ep 207 drivers/usb/gadget/udc/net2280.h &ep->regs->ep_rsp); ep 331 drivers/usb/gadget/udc/net2280.h static inline void set_fifo_bytecount(struct net2280_ep *ep, unsigned count) ep 333 drivers/usb/gadget/udc/net2280.h if (ep->dev->pdev->vendor == 0x17cc) ep 334 drivers/usb/gadget/udc/net2280.h writeb(count, 2 + (u8 __iomem *) &ep->regs->ep_cfg); ep 336 drivers/usb/gadget/udc/net2280.h u32 tmp = readl(&ep->cfg->ep_cfg) & ep 338 drivers/usb/gadget/udc/net2280.h writel(tmp | (count << EP_FIFO_BYTE_COUNT), &ep->cfg->ep_cfg); ep 342 drivers/usb/gadget/udc/net2280.h static inline void start_out_naking(struct net2280_ep *ep) ep 345 drivers/usb/gadget/udc/net2280.h writel(BIT(SET_NAK_OUT_PACKETS), &ep->regs->ep_rsp); ep 347 drivers/usb/gadget/udc/net2280.h readl(&ep->regs->ep_rsp); ep 350 drivers/usb/gadget/udc/net2280.h static inline void stop_out_naking(struct net2280_ep *ep) ep 354 drivers/usb/gadget/udc/net2280.h tmp = readl(&ep->regs->ep_stat); ep 356 drivers/usb/gadget/udc/net2280.h writel(BIT(CLEAR_NAK_OUT_PACKETS), &ep->regs->ep_rsp); ep 360 drivers/usb/gadget/udc/net2280.h static inline void set_max_speed(struct net2280_ep *ep, u32 max) ep 366 drivers/usb/gadget/udc/net2280.h if (ep->dev->enhanced_mode) { ep 367 drivers/usb/gadget/udc/net2280.h reg = ep_enhanced[ep->num]; ep 368 drivers/usb/gadget/udc/net2280.h switch (ep->dev->gadget.speed) { ep 380 drivers/usb/gadget/udc/net2280.h reg = (ep->num + 1) * 0x10; ep 381 drivers/usb/gadget/udc/net2280.h if (ep->dev->gadget.speed != USB_SPEED_HIGH) ep 385 drivers/usb/gadget/udc/net2280.h set_idx_reg(ep->dev->regs, reg, max); ep 118 drivers/usb/gadget/udc/omap_udc.c static void use_ep(struct omap_ep *ep, u16 select) ep 120 drivers/usb/gadget/udc/omap_udc.c u16 num = ep->bEndpointAddress & 0x0f; ep 122 drivers/usb/gadget/udc/omap_udc.c if (ep->bEndpointAddress & USB_DIR_IN) ep 138 drivers/usb/gadget/udc/omap_udc.c static void dma_channel_claim(struct omap_ep *ep, unsigned preferred); ep 145 drivers/usb/gadget/udc/omap_udc.c struct omap_ep *ep = container_of(_ep, struct omap_ep, ep); ep 153 drivers/usb/gadget/udc/omap_udc.c || ep->bEndpointAddress != desc->bEndpointAddress ep 154 drivers/usb/gadget/udc/omap_udc.c || ep->maxpacket < usb_endpoint_maxp(desc)) { ep 160 drivers/usb/gadget/udc/omap_udc.c && maxp != ep->maxpacket) ep 161 drivers/usb/gadget/udc/omap_udc.c || usb_endpoint_maxp(desc) > ep->maxpacket ep 183 drivers/usb/gadget/udc/omap_udc.c if (ep->bmAttributes != desc->bmAttributes ep 184 drivers/usb/gadget/udc/omap_udc.c && ep->bmAttributes != USB_ENDPOINT_XFER_BULK ep 190 drivers/usb/gadget/udc/omap_udc.c udc = ep->udc; ep 198 drivers/usb/gadget/udc/omap_udc.c ep->ep.desc = desc; ep 199 drivers/usb/gadget/udc/omap_udc.c ep->irqs = 0; ep 200 drivers/usb/gadget/udc/omap_udc.c ep->stopped = 0; ep 201 drivers/usb/gadget/udc/omap_udc.c ep->ep.maxpacket = maxp; ep 204 drivers/usb/gadget/udc/omap_udc.c ep->dma_channel = 0; ep 205 drivers/usb/gadget/udc/omap_udc.c ep->has_dma = 0; ep 206 drivers/usb/gadget/udc/omap_udc.c ep->lch = -1; ep 207 drivers/usb/gadget/udc/omap_udc.c use_ep(ep, UDC_EP_SEL); ep 209 drivers/usb/gadget/udc/omap_udc.c ep->ackwait = 0; ep 212 drivers/usb/gadget/udc/omap_udc.c if (ep->bmAttributes == USB_ENDPOINT_XFER_ISOC) ep 213 drivers/usb/gadget/udc/omap_udc.c list_add(&ep->iso, &udc->iso); ep 218 drivers/usb/gadget/udc/omap_udc.c dma_channel_claim(ep, 0); ep 222 drivers/usb/gadget/udc/omap_udc.c && !ep->has_dma ep 223 drivers/usb/gadget/udc/omap_udc.c && !(ep->bEndpointAddress & USB_DIR_IN)) { ep 225 drivers/usb/gadget/udc/omap_udc.c ep->ackwait = 1 + ep->double_buf; ep 237 drivers/usb/gadget/udc/omap_udc.c struct omap_ep *ep = container_of(_ep, struct omap_ep, ep); ep 240 drivers/usb/gadget/udc/omap_udc.c if (!_ep || !ep->ep.desc) { ep 242 drivers/usb/gadget/udc/omap_udc.c _ep ? ep->ep.name : NULL); ep 246 drivers/usb/gadget/udc/omap_udc.c spin_lock_irqsave(&ep->udc->lock, flags); ep 247 drivers/usb/gadget/udc/omap_udc.c ep->ep.desc = NULL; ep 248 drivers/usb/gadget/udc/omap_udc.c nuke(ep, -ESHUTDOWN); ep 249 drivers/usb/gadget/udc/omap_udc.c ep->ep.maxpacket = ep->maxpacket; ep 250 drivers/usb/gadget/udc/omap_udc.c ep->has_dma = 0; ep 252 drivers/usb/gadget/udc/omap_udc.c list_del_init(&ep->iso); ep 253 drivers/usb/gadget/udc/omap_udc.c del_timer(&ep->timer); ep 255 drivers/usb/gadget/udc/omap_udc.c spin_unlock_irqrestore(&ep->udc->lock, flags); ep 264 drivers/usb/gadget/udc/omap_udc.c omap_alloc_request(struct usb_ep *ep, gfp_t gfp_flags) ep 278 drivers/usb/gadget/udc/omap_udc.c omap_free_request(struct usb_ep *ep, struct usb_request *_req) ep 288 drivers/usb/gadget/udc/omap_udc.c done(struct omap_ep *ep, struct omap_req *req, int status) ep 290 drivers/usb/gadget/udc/omap_udc.c struct omap_udc *udc = ep->udc; ep 291 drivers/usb/gadget/udc/omap_udc.c unsigned stopped = ep->stopped; ep 300 drivers/usb/gadget/udc/omap_udc.c if (use_dma && ep->has_dma) ep 302 drivers/usb/gadget/udc/omap_udc.c (ep->bEndpointAddress & USB_DIR_IN)); ep 308 drivers/usb/gadget/udc/omap_udc.c ep->ep.name, &req->req, status, ep 312 drivers/usb/gadget/udc/omap_udc.c ep->stopped = 1; ep 313 drivers/usb/gadget/udc/omap_udc.c spin_unlock(&ep->udc->lock); ep 314 drivers/usb/gadget/udc/omap_udc.c usb_gadget_giveback_request(&ep->ep, &req->req); ep 315 drivers/usb/gadget/udc/omap_udc.c spin_lock(&ep->udc->lock); ep 316 drivers/usb/gadget/udc/omap_udc.c ep->stopped = stopped; ep 354 drivers/usb/gadget/udc/omap_udc.c static int write_fifo(struct omap_ep *ep, struct omap_req *req) ep 369 drivers/usb/gadget/udc/omap_udc.c count = ep->ep.maxpacket; ep 372 drivers/usb/gadget/udc/omap_udc.c ep->ackwait = 1; ep 375 drivers/usb/gadget/udc/omap_udc.c if (count != ep->ep.maxpacket) ep 388 drivers/usb/gadget/udc/omap_udc.c done(ep, req, 0); ep 416 drivers/usb/gadget/udc/omap_udc.c static int read_fifo(struct omap_ep *ep, struct omap_req *req) ep 430 drivers/usb/gadget/udc/omap_udc.c if (!ep->double_buf) ep 432 drivers/usb/gadget/udc/omap_udc.c ep->fnf = 1; ep 438 drivers/usb/gadget/udc/omap_udc.c avail = ep->ep.maxpacket; ep 441 drivers/usb/gadget/udc/omap_udc.c ep->fnf = ep->double_buf; ep 446 drivers/usb/gadget/udc/omap_udc.c if (count < ep->ep.maxpacket) { ep 460 drivers/usb/gadget/udc/omap_udc.c if (!ep->bEndpointAddress) ep 463 drivers/usb/gadget/udc/omap_udc.c done(ep, req, 0); ep 471 drivers/usb/gadget/udc/omap_udc.c static u16 dma_src_len(struct omap_ep *ep, dma_addr_t start) ep 481 drivers/usb/gadget/udc/omap_udc.c end = omap_get_dma_src_pos(ep->lch); ep 482 drivers/usb/gadget/udc/omap_udc.c if (end == ep->dma_counter) ep 491 drivers/usb/gadget/udc/omap_udc.c static u16 dma_dest_len(struct omap_ep *ep, dma_addr_t start) ep 495 drivers/usb/gadget/udc/omap_udc.c end = omap_get_dma_dst_pos(ep->lch); ep 496 drivers/usb/gadget/udc/omap_udc.c if (end == ep->dma_counter) ep 513 drivers/usb/gadget/udc/omap_udc.c static void next_in_dma(struct omap_ep *ep, struct omap_req *req) ep 524 drivers/usb/gadget/udc/omap_udc.c || (cpu_is_omap15xx() && length < ep->maxpacket)) { ep 526 drivers/usb/gadget/udc/omap_udc.c omap_set_dma_transfer_params(ep->lch, OMAP_DMA_DATA_TYPE_S8, ep 529 drivers/usb/gadget/udc/omap_udc.c length = min(length / ep->maxpacket, ep 532 drivers/usb/gadget/udc/omap_udc.c omap_set_dma_transfer_params(ep->lch, OMAP_DMA_DATA_TYPE_S16, ep 533 drivers/usb/gadget/udc/omap_udc.c ep->ep.maxpacket >> 1, length, sync_mode, ep 535 drivers/usb/gadget/udc/omap_udc.c length *= ep->maxpacket; ep 537 drivers/usb/gadget/udc/omap_udc.c omap_set_dma_src_params(ep->lch, OMAP_DMA_PORT_EMIFF, ep 541 drivers/usb/gadget/udc/omap_udc.c omap_start_dma(ep->lch); ep 542 drivers/usb/gadget/udc/omap_udc.c ep->dma_counter = omap_get_dma_src_pos(ep->lch); ep 544 drivers/usb/gadget/udc/omap_udc.c w |= UDC_TX_DONE_IE(ep->dma_channel); ep 546 drivers/usb/gadget/udc/omap_udc.c omap_writew(UDC_TXN_START | txdma_ctrl, UDC_TXDMA(ep->dma_channel)); ep 550 drivers/usb/gadget/udc/omap_udc.c static void finish_in_dma(struct omap_ep *ep, struct omap_req *req, int status) ep 562 drivers/usb/gadget/udc/omap_udc.c && (req->req.actual % ep->maxpacket) == 0) ep 565 drivers/usb/gadget/udc/omap_udc.c req->req.actual += dma_src_len(ep, req->req.dma ep 569 drivers/usb/gadget/udc/omap_udc.c omap_stop_dma(ep->lch); ep 571 drivers/usb/gadget/udc/omap_udc.c w &= ~UDC_TX_DONE_IE(ep->dma_channel); ep 573 drivers/usb/gadget/udc/omap_udc.c done(ep, req, status); ep 576 drivers/usb/gadget/udc/omap_udc.c static void next_out_dma(struct omap_ep *ep, struct omap_req *req) ep 583 drivers/usb/gadget/udc/omap_udc.c packets /= ep->ep.maxpacket; ep 585 drivers/usb/gadget/udc/omap_udc.c req->dma_bytes = packets * ep->ep.maxpacket; ep 586 drivers/usb/gadget/udc/omap_udc.c omap_set_dma_transfer_params(ep->lch, OMAP_DMA_DATA_TYPE_S16, ep 587 drivers/usb/gadget/udc/omap_udc.c ep->ep.maxpacket >> 1, packets, ep 590 drivers/usb/gadget/udc/omap_udc.c omap_set_dma_dest_params(ep->lch, OMAP_DMA_PORT_EMIFF, ep 593 drivers/usb/gadget/udc/omap_udc.c ep->dma_counter = omap_get_dma_dst_pos(ep->lch); ep 595 drivers/usb/gadget/udc/omap_udc.c omap_writew(UDC_RXN_STOP | (packets - 1), UDC_RXDMA(ep->dma_channel)); ep 597 drivers/usb/gadget/udc/omap_udc.c w |= UDC_RX_EOT_IE(ep->dma_channel); ep 599 drivers/usb/gadget/udc/omap_udc.c omap_writew(ep->bEndpointAddress & 0xf, UDC_EP_NUM); ep 602 drivers/usb/gadget/udc/omap_udc.c omap_start_dma(ep->lch); ep 606 drivers/usb/gadget/udc/omap_udc.c finish_out_dma(struct omap_ep *ep, struct omap_req *req, int status, int one) ep 611 drivers/usb/gadget/udc/omap_udc.c ep->dma_counter = (u16) (req->req.dma + req->req.actual); ep 612 drivers/usb/gadget/udc/omap_udc.c count = dma_dest_len(ep, req->req.dma + req->req.actual); ep 620 drivers/usb/gadget/udc/omap_udc.c omap_stop_dma(ep->lch); ep 628 drivers/usb/gadget/udc/omap_udc.c w &= ~UDC_RX_EOT_IE(ep->dma_channel); ep 630 drivers/usb/gadget/udc/omap_udc.c done(ep, req, status); ep 636 drivers/usb/gadget/udc/omap_udc.c struct omap_ep *ep; ep 641 drivers/usb/gadget/udc/omap_udc.c ep = &udc->ep[16 + UDC_DMA_TX_SRC(dman_stat)]; ep 642 drivers/usb/gadget/udc/omap_udc.c ep->irqs++; ep 644 drivers/usb/gadget/udc/omap_udc.c if (!list_empty(&ep->queue)) { ep 645 drivers/usb/gadget/udc/omap_udc.c req = container_of(ep->queue.next, ep 647 drivers/usb/gadget/udc/omap_udc.c finish_in_dma(ep, req, 0); ep 651 drivers/usb/gadget/udc/omap_udc.c if (!list_empty(&ep->queue)) { ep 652 drivers/usb/gadget/udc/omap_udc.c req = container_of(ep->queue.next, ep 654 drivers/usb/gadget/udc/omap_udc.c next_in_dma(ep, req); ep 660 drivers/usb/gadget/udc/omap_udc.c ep = &udc->ep[UDC_DMA_RX_SRC(dman_stat)]; ep 661 drivers/usb/gadget/udc/omap_udc.c ep->irqs++; ep 663 drivers/usb/gadget/udc/omap_udc.c if (!list_empty(&ep->queue)) { ep 664 drivers/usb/gadget/udc/omap_udc.c req = container_of(ep->queue.next, ep 666 drivers/usb/gadget/udc/omap_udc.c finish_out_dma(ep, req, 0, dman_stat & UDC_DMA_RX_SB); ep 670 drivers/usb/gadget/udc/omap_udc.c if (!list_empty(&ep->queue)) { ep 671 drivers/usb/gadget/udc/omap_udc.c req = container_of(ep->queue.next, ep 673 drivers/usb/gadget/udc/omap_udc.c next_out_dma(ep, req); ep 678 drivers/usb/gadget/udc/omap_udc.c ep = &udc->ep[UDC_DMA_RX_SRC(dman_stat)]; ep 679 drivers/usb/gadget/udc/omap_udc.c ep->irqs++; ep 681 drivers/usb/gadget/udc/omap_udc.c VDBG("%s, RX_CNT irq?\n", ep->ep.name); ep 688 drivers/usb/gadget/udc/omap_udc.c struct omap_ep *ep = data; ep 692 drivers/usb/gadget/udc/omap_udc.c ERR("%s dma error, lch %d status %02x\n", ep->ep.name, lch, ch_status); ep 697 drivers/usb/gadget/udc/omap_udc.c static void dma_channel_claim(struct omap_ep *ep, unsigned channel) ep 703 drivers/usb/gadget/udc/omap_udc.c is_in = ep->bEndpointAddress & USB_DIR_IN; ep 710 drivers/usb/gadget/udc/omap_udc.c ep->dma_channel = 0; ep 711 drivers/usb/gadget/udc/omap_udc.c ep->lch = -1; ep 724 drivers/usb/gadget/udc/omap_udc.c reg |= (0x0f & ep->bEndpointAddress) << (4 * (channel - 1)); ep 725 drivers/usb/gadget/udc/omap_udc.c ep->dma_channel = channel; ep 730 drivers/usb/gadget/udc/omap_udc.c ep->ep.name, dma_error, ep, &ep->lch); ep 734 drivers/usb/gadget/udc/omap_udc.c omap_set_dma_src_burst_mode(ep->lch, ep 736 drivers/usb/gadget/udc/omap_udc.c omap_set_dma_src_data_pack(ep->lch, 1); ep 738 drivers/usb/gadget/udc/omap_udc.c omap_set_dma_dest_params(ep->lch, ep 747 drivers/usb/gadget/udc/omap_udc.c ep->ep.name, dma_error, ep, &ep->lch); ep 751 drivers/usb/gadget/udc/omap_udc.c omap_set_dma_src_params(ep->lch, ep 757 drivers/usb/gadget/udc/omap_udc.c omap_set_dma_dest_burst_mode(ep->lch, ep 759 drivers/usb/gadget/udc/omap_udc.c omap_set_dma_dest_data_pack(ep->lch, 1); ep 763 drivers/usb/gadget/udc/omap_udc.c ep->dma_channel = 0; ep 765 drivers/usb/gadget/udc/omap_udc.c ep->has_dma = 1; ep 766 drivers/usb/gadget/udc/omap_udc.c omap_disable_dma_irq(ep->lch, OMAP_DMA_BLOCK_IRQ); ep 770 drivers/usb/gadget/udc/omap_udc.c omap_set_dma_channel_mode(ep->lch, OMAP_DMA_LCH_P); ep 775 drivers/usb/gadget/udc/omap_udc.c restart = !ep->stopped && !list_empty(&ep->queue); ep 778 drivers/usb/gadget/udc/omap_udc.c DBG("%s no dma channel: %d%s\n", ep->ep.name, status, ep 781 drivers/usb/gadget/udc/omap_udc.c DBG("%s claimed %cxdma%d lch %d%s\n", ep->ep.name, ep 783 drivers/usb/gadget/udc/omap_udc.c ep->dma_channel - 1, ep->lch, ep 788 drivers/usb/gadget/udc/omap_udc.c req = container_of(ep->queue.next, struct omap_req, queue); ep 789 drivers/usb/gadget/udc/omap_udc.c if (ep->has_dma) ep 790 drivers/usb/gadget/udc/omap_udc.c (is_in ? next_in_dma : next_out_dma)(ep, req); ep 792 drivers/usb/gadget/udc/omap_udc.c use_ep(ep, UDC_EP_SEL); ep 793 drivers/usb/gadget/udc/omap_udc.c (is_in ? write_fifo : read_fifo)(ep, req); ep 797 drivers/usb/gadget/udc/omap_udc.c ep->ackwait = 1 + ep->double_buf; ep 804 drivers/usb/gadget/udc/omap_udc.c static void dma_channel_release(struct omap_ep *ep) ep 806 drivers/usb/gadget/udc/omap_udc.c int shift = 4 * (ep->dma_channel - 1); ep 812 drivers/usb/gadget/udc/omap_udc.c if (!list_empty(&ep->queue)) ep 813 drivers/usb/gadget/udc/omap_udc.c req = container_of(ep->queue.next, struct omap_req, queue); ep 817 drivers/usb/gadget/udc/omap_udc.c active = omap_get_dma_active_status(ep->lch); ep 819 drivers/usb/gadget/udc/omap_udc.c DBG("%s release %s %cxdma%d %p\n", ep->ep.name, ep 821 drivers/usb/gadget/udc/omap_udc.c (ep->bEndpointAddress & USB_DIR_IN) ? 't' : 'r', ep 822 drivers/usb/gadget/udc/omap_udc.c ep->dma_channel - 1, req); ep 829 drivers/usb/gadget/udc/omap_udc.c if (ep->bEndpointAddress & USB_DIR_IN) { ep 834 drivers/usb/gadget/udc/omap_udc.c finish_in_dma(ep, req, -ECONNRESET); ep 837 drivers/usb/gadget/udc/omap_udc.c use_ep(ep, UDC_EP_SEL); ep 851 drivers/usb/gadget/udc/omap_udc.c finish_out_dma(ep, req, -ECONNRESET, 0); ep 853 drivers/usb/gadget/udc/omap_udc.c omap_free_dma(ep->lch); ep 854 drivers/usb/gadget/udc/omap_udc.c ep->dma_channel = 0; ep 855 drivers/usb/gadget/udc/omap_udc.c ep->lch = -1; ep 865 drivers/usb/gadget/udc/omap_udc.c struct omap_ep *ep = container_of(_ep, struct omap_ep, ep); ep 877 drivers/usb/gadget/udc/omap_udc.c if (!_ep || (!ep->ep.desc && ep->bEndpointAddress)) { ep 881 drivers/usb/gadget/udc/omap_udc.c if (ep->bmAttributes == USB_ENDPOINT_XFER_ISOC) { ep 882 drivers/usb/gadget/udc/omap_udc.c if (req->req.length > ep->ep.maxpacket) ep 891 drivers/usb/gadget/udc/omap_udc.c && ep->has_dma ep 892 drivers/usb/gadget/udc/omap_udc.c && ep->bEndpointAddress != 0 ep 893 drivers/usb/gadget/udc/omap_udc.c && (ep->bEndpointAddress & USB_DIR_IN) == 0 ep 894 drivers/usb/gadget/udc/omap_udc.c && (req->req.length % ep->ep.maxpacket) != 0) { ep 899 drivers/usb/gadget/udc/omap_udc.c udc = ep->udc; ep 903 drivers/usb/gadget/udc/omap_udc.c if (use_dma && ep->has_dma) ep 905 drivers/usb/gadget/udc/omap_udc.c (ep->bEndpointAddress & USB_DIR_IN)); ep 908 drivers/usb/gadget/udc/omap_udc.c ep->ep.name, _req, _req->length, _req->buf); ep 922 drivers/usb/gadget/udc/omap_udc.c } else if (list_empty(&ep->queue) && !ep->stopped && !ep->ackwait) { ep 925 drivers/usb/gadget/udc/omap_udc.c if (ep->bEndpointAddress == 0) { ep 926 drivers/usb/gadget/udc/omap_udc.c if (!udc->ep0_pending || !list_empty(&ep->queue)) { ep 961 drivers/usb/gadget/udc/omap_udc.c done(ep, req, 0); ep 974 drivers/usb/gadget/udc/omap_udc.c is_in = ep->bEndpointAddress & USB_DIR_IN; ep 975 drivers/usb/gadget/udc/omap_udc.c if (!ep->has_dma) ep 976 drivers/usb/gadget/udc/omap_udc.c use_ep(ep, UDC_EP_SEL); ep 980 drivers/usb/gadget/udc/omap_udc.c if (ep->has_dma) ep 981 drivers/usb/gadget/udc/omap_udc.c (is_in ? next_in_dma : next_out_dma)(ep, req); ep 983 drivers/usb/gadget/udc/omap_udc.c if ((is_in ? write_fifo : read_fifo)(ep, req) == 1) ep 988 drivers/usb/gadget/udc/omap_udc.c ep->ackwait = 1 + ep->double_buf; ep 997 drivers/usb/gadget/udc/omap_udc.c list_add_tail(&req->queue, &ep->queue); ep 1005 drivers/usb/gadget/udc/omap_udc.c struct omap_ep *ep = container_of(_ep, struct omap_ep, ep); ep 1012 drivers/usb/gadget/udc/omap_udc.c spin_lock_irqsave(&ep->udc->lock, flags); ep 1015 drivers/usb/gadget/udc/omap_udc.c list_for_each_entry(req, &ep->queue, queue) { ep 1020 drivers/usb/gadget/udc/omap_udc.c spin_unlock_irqrestore(&ep->udc->lock, flags); ep 1024 drivers/usb/gadget/udc/omap_udc.c if (use_dma && ep->dma_channel && ep->queue.next == &req->queue) { ep 1025 drivers/usb/gadget/udc/omap_udc.c int channel = ep->dma_channel; ep 1030 drivers/usb/gadget/udc/omap_udc.c dma_channel_release(ep); ep 1031 drivers/usb/gadget/udc/omap_udc.c dma_channel_claim(ep, channel); ep 1033 drivers/usb/gadget/udc/omap_udc.c done(ep, req, -ECONNRESET); ep 1034 drivers/usb/gadget/udc/omap_udc.c spin_unlock_irqrestore(&ep->udc->lock, flags); ep 1042 drivers/usb/gadget/udc/omap_udc.c struct omap_ep *ep = container_of(_ep, struct omap_ep, ep); ep 1046 drivers/usb/gadget/udc/omap_udc.c spin_lock_irqsave(&ep->udc->lock, flags); ep 1049 drivers/usb/gadget/udc/omap_udc.c if (ep->bEndpointAddress == 0) { ep 1050 drivers/usb/gadget/udc/omap_udc.c if (!ep->udc->ep0_pending) ep 1053 drivers/usb/gadget/udc/omap_udc.c if (ep->udc->ep0_set_config) { ep 1058 drivers/usb/gadget/udc/omap_udc.c ep->udc->ep0_pending = 0; ep 1064 drivers/usb/gadget/udc/omap_udc.c } else if (ep->bmAttributes != USB_ENDPOINT_XFER_ISOC && ep->ep.desc) { ep 1067 drivers/usb/gadget/udc/omap_udc.c if ((ep->bEndpointAddress & USB_DIR_IN) ep 1068 drivers/usb/gadget/udc/omap_udc.c && !list_empty(&ep->queue)) { ep 1076 drivers/usb/gadget/udc/omap_udc.c if (use_dma && ep->dma_channel ep 1077 drivers/usb/gadget/udc/omap_udc.c && !list_empty(&ep->queue)) { ep 1078 drivers/usb/gadget/udc/omap_udc.c channel = ep->dma_channel; ep 1079 drivers/usb/gadget/udc/omap_udc.c dma_channel_release(ep); ep 1083 drivers/usb/gadget/udc/omap_udc.c use_ep(ep, UDC_EP_SEL); ep 1092 drivers/usb/gadget/udc/omap_udc.c dma_channel_claim(ep, channel); ep 1094 drivers/usb/gadget/udc/omap_udc.c use_ep(ep, 0); ep 1095 drivers/usb/gadget/udc/omap_udc.c omap_writew(ep->udc->clr_halt, UDC_CTRL); ep 1096 drivers/usb/gadget/udc/omap_udc.c ep->ackwait = 0; ep 1097 drivers/usb/gadget/udc/omap_udc.c if (!(ep->bEndpointAddress & USB_DIR_IN)) { ep 1099 drivers/usb/gadget/udc/omap_udc.c ep->ackwait = 1 + ep->double_buf; ep 1104 drivers/usb/gadget/udc/omap_udc.c VDBG("%s %s halt stat %d\n", ep->ep.name, ep 1107 drivers/usb/gadget/udc/omap_udc.c spin_unlock_irqrestore(&ep->udc->lock, flags); ep 1327 drivers/usb/gadget/udc/omap_udc.c static void nuke(struct omap_ep *ep, int status) ep 1331 drivers/usb/gadget/udc/omap_udc.c ep->stopped = 1; ep 1333 drivers/usb/gadget/udc/omap_udc.c if (use_dma && ep->dma_channel) ep 1334 drivers/usb/gadget/udc/omap_udc.c dma_channel_release(ep); ep 1336 drivers/usb/gadget/udc/omap_udc.c use_ep(ep, 0); ep 1338 drivers/usb/gadget/udc/omap_udc.c if (ep->bEndpointAddress && ep->bmAttributes != USB_ENDPOINT_XFER_ISOC) ep 1341 drivers/usb/gadget/udc/omap_udc.c while (!list_empty(&ep->queue)) { ep 1342 drivers/usb/gadget/udc/omap_udc.c req = list_entry(ep->queue.next, struct omap_req, queue); ep 1343 drivers/usb/gadget/udc/omap_udc.c done(ep, req, status); ep 1350 drivers/usb/gadget/udc/omap_udc.c struct omap_ep *ep; ep 1353 drivers/usb/gadget/udc/omap_udc.c nuke(&udc->ep[0], -ESHUTDOWN); ep 1354 drivers/usb/gadget/udc/omap_udc.c list_for_each_entry(ep, &udc->gadget.ep_list, ep.ep_list) ep 1355 drivers/usb/gadget/udc/omap_udc.c nuke(ep, -ESHUTDOWN); ep 1391 drivers/usb/gadget/udc/omap_udc.c struct omap_ep *ep0 = &udc->ep[0]; ep 1511 drivers/usb/gadget/udc/omap_udc.c struct omap_ep *ep; ep 1565 drivers/usb/gadget/udc/omap_udc.c ep = &udc->ep[w_index & 0xf]; ep 1566 drivers/usb/gadget/udc/omap_udc.c if (ep != ep0) { ep 1568 drivers/usb/gadget/udc/omap_udc.c ep += 16; ep 1569 drivers/usb/gadget/udc/omap_udc.c if (ep->bmAttributes == USB_ENDPOINT_XFER_ISOC ep 1570 drivers/usb/gadget/udc/omap_udc.c || !ep->ep.desc) ep 1572 drivers/usb/gadget/udc/omap_udc.c use_ep(ep, 0); ep 1574 drivers/usb/gadget/udc/omap_udc.c ep->ackwait = 0; ep 1575 drivers/usb/gadget/udc/omap_udc.c if (!(ep->bEndpointAddress & USB_DIR_IN)) { ep 1577 drivers/usb/gadget/udc/omap_udc.c ep->ackwait = 1 + ep->double_buf; ep 1585 drivers/usb/gadget/udc/omap_udc.c VDBG("%s halt cleared by host\n", ep->name); ep 1594 drivers/usb/gadget/udc/omap_udc.c ep = &udc->ep[w_index & 0xf]; ep 1596 drivers/usb/gadget/udc/omap_udc.c ep += 16; ep 1597 drivers/usb/gadget/udc/omap_udc.c if (ep->bmAttributes == USB_ENDPOINT_XFER_ISOC ep 1598 drivers/usb/gadget/udc/omap_udc.c || ep == ep0 || !ep->ep.desc) ep 1600 drivers/usb/gadget/udc/omap_udc.c if (use_dma && ep->has_dma) { ep 1604 drivers/usb/gadget/udc/omap_udc.c DBG("%s host set_halt, NYET\n", ep->name); ep 1607 drivers/usb/gadget/udc/omap_udc.c use_ep(ep, 0); ep 1611 drivers/usb/gadget/udc/omap_udc.c VDBG("%s halted by host\n", ep->name); ep 1630 drivers/usb/gadget/udc/omap_udc.c ep = &udc->ep[w_index & 0xf]; ep 1632 drivers/usb/gadget/udc/omap_udc.c ep += 16; ep 1633 drivers/usb/gadget/udc/omap_udc.c if (!ep->ep.desc) ep 1637 drivers/usb/gadget/udc/omap_udc.c if (ep->bmAttributes == USB_ENDPOINT_XFER_ISOC) ep 1641 drivers/usb/gadget/udc/omap_udc.c ERR("%s status, can't report\n", ep->ep.name); ep 1859 drivers/usb/gadget/udc/omap_udc.c struct omap_ep *ep = from_timer(ep, t, timer); ep 1863 drivers/usb/gadget/udc/omap_udc.c spin_lock_irqsave(&ep->udc->lock, flags); ep 1864 drivers/usb/gadget/udc/omap_udc.c if (!list_empty(&ep->queue) && ep->ackwait) { ep 1865 drivers/usb/gadget/udc/omap_udc.c use_ep(ep, UDC_EP_SEL); ep 1869 drivers/usb/gadget/udc/omap_udc.c || (ep->double_buf && HALF_FULL(stat_flg)))) { ep 1872 drivers/usb/gadget/udc/omap_udc.c VDBG("%s: lose, %04x\n", ep->ep.name, stat_flg); ep 1873 drivers/usb/gadget/udc/omap_udc.c req = container_of(ep->queue.next, ep 1875 drivers/usb/gadget/udc/omap_udc.c (void) read_fifo(ep, req); ep 1876 drivers/usb/gadget/udc/omap_udc.c omap_writew(ep->bEndpointAddress, UDC_EP_NUM); ep 1878 drivers/usb/gadget/udc/omap_udc.c ep->ackwait = 1 + ep->double_buf; ep 1882 drivers/usb/gadget/udc/omap_udc.c mod_timer(&ep->timer, PIO_OUT_TIMEOUT); ep 1883 drivers/usb/gadget/udc/omap_udc.c spin_unlock_irqrestore(&ep->udc->lock, flags); ep 1890 drivers/usb/gadget/udc/omap_udc.c struct omap_ep *ep; ep 1905 drivers/usb/gadget/udc/omap_udc.c ep = &udc->ep[epnum]; ep 1906 drivers/usb/gadget/udc/omap_udc.c ep->irqs++; ep 1909 drivers/usb/gadget/udc/omap_udc.c ep->fnf = 0; ep 1911 drivers/usb/gadget/udc/omap_udc.c ep->ackwait--; ep 1912 drivers/usb/gadget/udc/omap_udc.c if (!list_empty(&ep->queue)) { ep 1914 drivers/usb/gadget/udc/omap_udc.c req = container_of(ep->queue.next, ep 1916 drivers/usb/gadget/udc/omap_udc.c stat = read_fifo(ep, req); ep 1917 drivers/usb/gadget/udc/omap_udc.c if (!ep->double_buf) ep 1918 drivers/usb/gadget/udc/omap_udc.c ep->fnf = 1; ep 1929 drivers/usb/gadget/udc/omap_udc.c if (ep->fnf) { ep 1931 drivers/usb/gadget/udc/omap_udc.c ep->ackwait = 1 + ep->double_buf; ep 1933 drivers/usb/gadget/udc/omap_udc.c mod_timer(&ep->timer, PIO_OUT_TIMEOUT); ep 1941 drivers/usb/gadget/udc/omap_udc.c ep = &udc->ep[16 + epnum]; ep 1942 drivers/usb/gadget/udc/omap_udc.c ep->irqs++; ep 1946 drivers/usb/gadget/udc/omap_udc.c ep->ackwait = 0; ep 1947 drivers/usb/gadget/udc/omap_udc.c if (!list_empty(&ep->queue)) { ep 1948 drivers/usb/gadget/udc/omap_udc.c req = container_of(ep->queue.next, ep 1950 drivers/usb/gadget/udc/omap_udc.c (void) write_fifo(ep, req); ep 1968 drivers/usb/gadget/udc/omap_udc.c struct omap_ep *ep; ep 1975 drivers/usb/gadget/udc/omap_udc.c list_for_each_entry(ep, &udc->iso, iso) { ep 1979 drivers/usb/gadget/udc/omap_udc.c if (ep->has_dma || list_empty(&ep->queue)) ep 1981 drivers/usb/gadget/udc/omap_udc.c req = list_entry(ep->queue.next, struct omap_req, queue); ep 1983 drivers/usb/gadget/udc/omap_udc.c use_ep(ep, UDC_EP_SEL); ep 1989 drivers/usb/gadget/udc/omap_udc.c if (ep->bEndpointAddress & USB_DIR_IN) { ep 1993 drivers/usb/gadget/udc/omap_udc.c write_fifo(ep, req); ep 2007 drivers/usb/gadget/udc/omap_udc.c read_fifo(ep, req); ep 2012 drivers/usb/gadget/udc/omap_udc.c ep->irqs++; ep 2013 drivers/usb/gadget/udc/omap_udc.c if (!list_empty(&ep->queue)) ep 2046 drivers/usb/gadget/udc/omap_udc.c struct omap_ep *ep; ep 2052 drivers/usb/gadget/udc/omap_udc.c list_for_each_entry(ep, &udc->gadget.ep_list, ep.ep_list) { ep 2053 drivers/usb/gadget/udc/omap_udc.c ep->irqs = 0; ep 2054 drivers/usb/gadget/udc/omap_udc.c if (ep->bmAttributes == USB_ENDPOINT_XFER_ISOC) ep 2056 drivers/usb/gadget/udc/omap_udc.c use_ep(ep, 0); ep 2060 drivers/usb/gadget/udc/omap_udc.c udc->ep[0].irqs = 0; ep 2141 drivers/usb/gadget/udc/omap_udc.c static void proc_ep_show(struct seq_file *s, struct omap_ep *ep) ep 2147 drivers/usb/gadget/udc/omap_udc.c use_ep(ep, 0); ep 2149 drivers/usb/gadget/udc/omap_udc.c if (use_dma && ep->has_dma) ep 2151 drivers/usb/gadget/udc/omap_udc.c (ep->bEndpointAddress & USB_DIR_IN) ? 't' : 'r', ep 2152 drivers/usb/gadget/udc/omap_udc.c ep->dma_channel - 1, ep->lch); ep 2159 drivers/usb/gadget/udc/omap_udc.c ep->name, buf, ep 2160 drivers/usb/gadget/udc/omap_udc.c ep->double_buf ? "dbuf " : "", ep 2162 drivers/usb/gadget/udc/omap_udc.c switch (ep->ackwait) { ep 2176 drivers/usb/gadget/udc/omap_udc.c ep->irqs, stat_flg, ep 2191 drivers/usb/gadget/udc/omap_udc.c if (list_empty(&ep->queue)) ep 2194 drivers/usb/gadget/udc/omap_udc.c list_for_each_entry(req, &ep->queue, queue) { ep 2198 drivers/usb/gadget/udc/omap_udc.c length += ((ep->bEndpointAddress & USB_DIR_IN) ep 2200 drivers/usb/gadget/udc/omap_udc.c (ep, req->req.dma + length); ep 2297 drivers/usb/gadget/udc/omap_udc.c struct omap_ep *ep; ep 2423 drivers/usb/gadget/udc/omap_udc.c proc_ep_show(s, &udc->ep[0]); ep 2425 drivers/usb/gadget/udc/omap_udc.c list_for_each_entry(ep, &udc->gadget.ep_list, ep 2426 drivers/usb/gadget/udc/omap_udc.c ep.ep_list) { ep 2427 drivers/usb/gadget/udc/omap_udc.c if (ep->ep.desc) ep 2428 drivers/usb/gadget/udc/omap_udc.c proc_ep_show(s, ep); ep 2467 drivers/usb/gadget/udc/omap_udc.c struct omap_ep *ep; ep 2471 drivers/usb/gadget/udc/omap_udc.c ep = &udc->ep[addr & 0xf]; ep 2473 drivers/usb/gadget/udc/omap_udc.c ep += 16; ep 2476 drivers/usb/gadget/udc/omap_udc.c BUG_ON(ep->name[0]); ep 2533 drivers/usb/gadget/udc/omap_udc.c timer_setup(&ep->timer, pio_out_timer, 0); ep 2555 drivers/usb/gadget/udc/omap_udc.c BUG_ON(strlen(name) >= sizeof ep->name); ep 2556 drivers/usb/gadget/udc/omap_udc.c strlcpy(ep->name, name, sizeof ep->name); ep 2557 drivers/usb/gadget/udc/omap_udc.c INIT_LIST_HEAD(&ep->queue); ep 2558 drivers/usb/gadget/udc/omap_udc.c INIT_LIST_HEAD(&ep->iso); ep 2559 drivers/usb/gadget/udc/omap_udc.c ep->bEndpointAddress = addr; ep 2560 drivers/usb/gadget/udc/omap_udc.c ep->bmAttributes = type; ep 2561 drivers/usb/gadget/udc/omap_udc.c ep->double_buf = dbuf; ep 2562 drivers/usb/gadget/udc/omap_udc.c ep->udc = udc; ep 2566 drivers/usb/gadget/udc/omap_udc.c ep->ep.caps.type_control = true; ep 2567 drivers/usb/gadget/udc/omap_udc.c ep->ep.caps.dir_in = true; ep 2568 drivers/usb/gadget/udc/omap_udc.c ep->ep.caps.dir_out = true; ep 2571 drivers/usb/gadget/udc/omap_udc.c ep->ep.caps.type_iso = true; ep 2574 drivers/usb/gadget/udc/omap_udc.c ep->ep.caps.type_bulk = true; ep 2577 drivers/usb/gadget/udc/omap_udc.c ep->ep.caps.type_int = true; ep 2582 drivers/usb/gadget/udc/omap_udc.c ep->ep.caps.dir_in = true; ep 2584 drivers/usb/gadget/udc/omap_udc.c ep->ep.caps.dir_out = true; ep 2586 drivers/usb/gadget/udc/omap_udc.c ep->ep.name = ep->name; ep 2587 drivers/usb/gadget/udc/omap_udc.c ep->ep.ops = &omap_ep_ops; ep 2588 drivers/usb/gadget/udc/omap_udc.c ep->maxpacket = maxp; ep 2589 drivers/usb/gadget/udc/omap_udc.c usb_ep_set_maxpacket_limit(&ep->ep, ep->maxpacket); ep 2590 drivers/usb/gadget/udc/omap_udc.c list_add_tail(&ep->ep.ep_list, &udc->gadget.ep_list); ep 2638 drivers/usb/gadget/udc/omap_udc.c udc->gadget.ep0 = &udc->ep[0].ep; ep 2650 drivers/usb/gadget/udc/omap_udc.c list_del_init(&udc->ep[0].ep.ep_list); ep 140 drivers/usb/gadget/udc/omap_udc.h struct usb_ep ep; ep 164 drivers/usb/gadget/udc/omap_udc.h struct omap_ep ep[32]; ep 176 drivers/usb/gadget/udc/pch_udc.c #define PCH_UDC_CSR(ep) (UDC_CSR_ADDR + ep*4) ep 183 drivers/usb/gadget/udc/pch_udc.c #define UDC_EPIN_IDX(ep) (ep * 2) ep 184 drivers/usb/gadget/udc/pch_udc.c #define UDC_EPOUT_IDX(ep) (ep * 2 + 1) ep 288 drivers/usb/gadget/udc/pch_udc.c struct usb_ep ep; ep 345 drivers/usb/gadget/udc/pch_udc.c struct pch_udc_ep ep[PCH_UDC_EP_NUM]; ep 433 drivers/usb/gadget/udc/pch_udc.c static inline u32 pch_udc_ep_readl(struct pch_udc_ep *ep, unsigned long reg) ep 435 drivers/usb/gadget/udc/pch_udc.c return ioread32(ep->dev->base_addr + ep->offset_addr + reg); ep 438 drivers/usb/gadget/udc/pch_udc.c static inline void pch_udc_ep_writel(struct pch_udc_ep *ep, ep 441 drivers/usb/gadget/udc/pch_udc.c iowrite32(val, ep->dev->base_addr + ep->offset_addr + reg); ep 444 drivers/usb/gadget/udc/pch_udc.c static inline void pch_udc_ep_bit_set(struct pch_udc_ep *ep, ep 448 drivers/usb/gadget/udc/pch_udc.c pch_udc_ep_writel(ep, pch_udc_ep_readl(ep, reg) | bitmask, reg); ep 451 drivers/usb/gadget/udc/pch_udc.c static inline void pch_udc_ep_bit_clr(struct pch_udc_ep *ep, ep 455 drivers/usb/gadget/udc/pch_udc.c pch_udc_ep_writel(ep, pch_udc_ep_readl(ep, reg) & ~(bitmask), reg); ep 481 drivers/usb/gadget/udc/pch_udc.c unsigned int ep) ep 483 drivers/usb/gadget/udc/pch_udc.c unsigned long reg = PCH_UDC_CSR(ep); ep 497 drivers/usb/gadget/udc/pch_udc.c static u32 pch_udc_read_csr(struct pch_udc_dev *dev, unsigned int ep) ep 499 drivers/usb/gadget/udc/pch_udc.c unsigned long reg = PCH_UDC_CSR(ep); ep 621 drivers/usb/gadget/udc/pch_udc.c static void pch_udc_ep_set_stall(struct pch_udc_ep *ep) ep 623 drivers/usb/gadget/udc/pch_udc.c if (ep->in) { ep 624 drivers/usb/gadget/udc/pch_udc.c pch_udc_ep_bit_set(ep, UDC_EPCTL_ADDR, UDC_EPCTL_F); ep 625 drivers/usb/gadget/udc/pch_udc.c pch_udc_ep_bit_set(ep, UDC_EPCTL_ADDR, UDC_EPCTL_S); ep 627 drivers/usb/gadget/udc/pch_udc.c pch_udc_ep_bit_set(ep, UDC_EPCTL_ADDR, UDC_EPCTL_S); ep 635 drivers/usb/gadget/udc/pch_udc.c static inline void pch_udc_ep_clear_stall(struct pch_udc_ep *ep) ep 638 drivers/usb/gadget/udc/pch_udc.c pch_udc_ep_bit_clr(ep, UDC_EPCTL_ADDR, UDC_EPCTL_S); ep 640 drivers/usb/gadget/udc/pch_udc.c pch_udc_ep_bit_set(ep, UDC_EPCTL_ADDR, UDC_EPCTL_CNAK); ep 648 drivers/usb/gadget/udc/pch_udc.c static inline void pch_udc_ep_set_trfr_type(struct pch_udc_ep *ep, ep 651 drivers/usb/gadget/udc/pch_udc.c pch_udc_ep_writel(ep, ((type << UDC_EPCTL_ET_SHIFT) & ep 660 drivers/usb/gadget/udc/pch_udc.c static void pch_udc_ep_set_bufsz(struct pch_udc_ep *ep, ep 665 drivers/usb/gadget/udc/pch_udc.c data = pch_udc_ep_readl(ep, UDC_BUFIN_FRAMENUM_ADDR); ep 667 drivers/usb/gadget/udc/pch_udc.c pch_udc_ep_writel(ep, data, UDC_BUFIN_FRAMENUM_ADDR); ep 669 drivers/usb/gadget/udc/pch_udc.c data = pch_udc_ep_readl(ep, UDC_BUFOUT_MAXPKT_ADDR); ep 671 drivers/usb/gadget/udc/pch_udc.c pch_udc_ep_writel(ep, data, UDC_BUFOUT_MAXPKT_ADDR); ep 680 drivers/usb/gadget/udc/pch_udc.c static void pch_udc_ep_set_maxpkt(struct pch_udc_ep *ep, u32 pkt_size) ep 682 drivers/usb/gadget/udc/pch_udc.c u32 data = pch_udc_ep_readl(ep, UDC_BUFOUT_MAXPKT_ADDR); ep 684 drivers/usb/gadget/udc/pch_udc.c pch_udc_ep_writel(ep, data, UDC_BUFOUT_MAXPKT_ADDR); ep 692 drivers/usb/gadget/udc/pch_udc.c static inline void pch_udc_ep_set_subptr(struct pch_udc_ep *ep, u32 addr) ep 694 drivers/usb/gadget/udc/pch_udc.c pch_udc_ep_writel(ep, addr, UDC_SUBPTR_ADDR); ep 702 drivers/usb/gadget/udc/pch_udc.c static inline void pch_udc_ep_set_ddptr(struct pch_udc_ep *ep, u32 addr) ep 704 drivers/usb/gadget/udc/pch_udc.c pch_udc_ep_writel(ep, addr, UDC_DESPTR_ADDR); ep 711 drivers/usb/gadget/udc/pch_udc.c static inline void pch_udc_ep_set_pd(struct pch_udc_ep *ep) ep 713 drivers/usb/gadget/udc/pch_udc.c pch_udc_ep_bit_set(ep, UDC_EPCTL_ADDR, UDC_EPCTL_P); ep 720 drivers/usb/gadget/udc/pch_udc.c static inline void pch_udc_ep_set_rrdy(struct pch_udc_ep *ep) ep 722 drivers/usb/gadget/udc/pch_udc.c pch_udc_ep_bit_set(ep, UDC_EPCTL_ADDR, UDC_EPCTL_RRDY); ep 729 drivers/usb/gadget/udc/pch_udc.c static inline void pch_udc_ep_clear_rrdy(struct pch_udc_ep *ep) ep 731 drivers/usb/gadget/udc/pch_udc.c pch_udc_ep_bit_clr(ep, UDC_EPCTL_ADDR, UDC_EPCTL_RRDY); ep 877 drivers/usb/gadget/udc/pch_udc.c static inline u32 pch_udc_read_ep_control(struct pch_udc_ep *ep) ep 879 drivers/usb/gadget/udc/pch_udc.c return pch_udc_ep_readl(ep, UDC_EPCTL_ADDR); ep 887 drivers/usb/gadget/udc/pch_udc.c static inline void pch_udc_clear_ep_control(struct pch_udc_ep *ep) ep 889 drivers/usb/gadget/udc/pch_udc.c return pch_udc_ep_writel(ep, 0, UDC_EPCTL_ADDR); ep 897 drivers/usb/gadget/udc/pch_udc.c static inline u32 pch_udc_read_ep_status(struct pch_udc_ep *ep) ep 899 drivers/usb/gadget/udc/pch_udc.c return pch_udc_ep_readl(ep, UDC_EPSTS_ADDR); ep 907 drivers/usb/gadget/udc/pch_udc.c static inline void pch_udc_clear_ep_status(struct pch_udc_ep *ep, ep 910 drivers/usb/gadget/udc/pch_udc.c return pch_udc_ep_writel(ep, stat, UDC_EPSTS_ADDR); ep 918 drivers/usb/gadget/udc/pch_udc.c static inline void pch_udc_ep_set_nak(struct pch_udc_ep *ep) ep 920 drivers/usb/gadget/udc/pch_udc.c pch_udc_ep_bit_set(ep, UDC_EPCTL_ADDR, UDC_EPCTL_SNAK); ep 928 drivers/usb/gadget/udc/pch_udc.c static void pch_udc_ep_clear_nak(struct pch_udc_ep *ep) ep 931 drivers/usb/gadget/udc/pch_udc.c struct pch_udc_dev *dev = ep->dev; ep 933 drivers/usb/gadget/udc/pch_udc.c if (!(pch_udc_ep_readl(ep, UDC_EPCTL_ADDR) & UDC_EPCTL_NAK)) ep 935 drivers/usb/gadget/udc/pch_udc.c if (!ep->in) { ep 937 drivers/usb/gadget/udc/pch_udc.c while (!(pch_udc_read_ep_status(ep) & UDC_EPSTS_MRXFIFO_EMP) && ep 945 drivers/usb/gadget/udc/pch_udc.c while ((pch_udc_read_ep_control(ep) & UDC_EPCTL_NAK) && --loopcnt) { ep 946 drivers/usb/gadget/udc/pch_udc.c pch_udc_ep_bit_set(ep, UDC_EPCTL_ADDR, UDC_EPCTL_CNAK); ep 951 drivers/usb/gadget/udc/pch_udc.c __func__, ep->num, (ep->in ? "in" : "out")); ep 961 drivers/usb/gadget/udc/pch_udc.c static void pch_udc_ep_fifo_flush(struct pch_udc_ep *ep, int dir) ep 964 drivers/usb/gadget/udc/pch_udc.c pch_udc_ep_bit_set(ep, UDC_EPCTL_ADDR, UDC_EPCTL_F); ep 974 drivers/usb/gadget/udc/pch_udc.c static void pch_udc_ep_enable(struct pch_udc_ep *ep, ep 981 drivers/usb/gadget/udc/pch_udc.c pch_udc_ep_set_trfr_type(ep, desc->bmAttributes); ep 982 drivers/usb/gadget/udc/pch_udc.c if (ep->in) ep 986 drivers/usb/gadget/udc/pch_udc.c pch_udc_ep_set_bufsz(ep, buff_size, ep->in); ep 987 drivers/usb/gadget/udc/pch_udc.c pch_udc_ep_set_maxpkt(ep, usb_endpoint_maxp(desc)); ep 988 drivers/usb/gadget/udc/pch_udc.c pch_udc_ep_set_nak(ep); ep 989 drivers/usb/gadget/udc/pch_udc.c pch_udc_ep_fifo_flush(ep, ep->in); ep 991 drivers/usb/gadget/udc/pch_udc.c val = ep->num << UDC_CSR_NE_NUM_SHIFT | ep->in << UDC_CSR_NE_DIR_SHIFT | ep 999 drivers/usb/gadget/udc/pch_udc.c if (ep->in) ep 1000 drivers/usb/gadget/udc/pch_udc.c pch_udc_write_csr(ep->dev, val, UDC_EPIN_IDX(ep->num)); ep 1002 drivers/usb/gadget/udc/pch_udc.c pch_udc_write_csr(ep->dev, val, UDC_EPOUT_IDX(ep->num)); ep 1009 drivers/usb/gadget/udc/pch_udc.c static void pch_udc_ep_disable(struct pch_udc_ep *ep) ep 1011 drivers/usb/gadget/udc/pch_udc.c if (ep->in) { ep 1013 drivers/usb/gadget/udc/pch_udc.c pch_udc_ep_writel(ep, UDC_EPCTL_F, UDC_EPCTL_ADDR); ep 1015 drivers/usb/gadget/udc/pch_udc.c pch_udc_ep_writel(ep, UDC_EPCTL_SNAK, UDC_EPCTL_ADDR); ep 1016 drivers/usb/gadget/udc/pch_udc.c pch_udc_ep_bit_set(ep, UDC_EPSTS_ADDR, UDC_EPSTS_IN); ep 1019 drivers/usb/gadget/udc/pch_udc.c pch_udc_ep_writel(ep, UDC_EPCTL_SNAK, UDC_EPCTL_ADDR); ep 1022 drivers/usb/gadget/udc/pch_udc.c pch_udc_ep_writel(ep, 0, UDC_DESPTR_ADDR); ep 1029 drivers/usb/gadget/udc/pch_udc.c static void pch_udc_wait_ep_stall(struct pch_udc_ep *ep) ep 1034 drivers/usb/gadget/udc/pch_udc.c while ((pch_udc_read_ep_control(ep) & UDC_EPCTL_S) && --count) ep 1037 drivers/usb/gadget/udc/pch_udc.c dev_err(&ep->dev->pdev->dev, "%s: wait error\n", __func__); ep 1431 drivers/usb/gadget/udc/pch_udc.c static void complete_req(struct pch_udc_ep *ep, struct pch_udc_request *req, ep 1437 drivers/usb/gadget/udc/pch_udc.c unsigned halted = ep->halted; ep 1447 drivers/usb/gadget/udc/pch_udc.c dev = ep->dev; ep 1450 drivers/usb/gadget/udc/pch_udc.c if (ep->in) ep 1460 drivers/usb/gadget/udc/pch_udc.c if (ep->in) ep 1475 drivers/usb/gadget/udc/pch_udc.c ep->halted = 1; ep 1477 drivers/usb/gadget/udc/pch_udc.c if (!ep->in) ep 1478 drivers/usb/gadget/udc/pch_udc.c pch_udc_ep_clear_rrdy(ep); ep 1479 drivers/usb/gadget/udc/pch_udc.c usb_gadget_giveback_request(&ep->ep, &req->req); ep 1481 drivers/usb/gadget/udc/pch_udc.c ep->halted = halted; ep 1488 drivers/usb/gadget/udc/pch_udc.c static void empty_req_queue(struct pch_udc_ep *ep) ep 1492 drivers/usb/gadget/udc/pch_udc.c ep->halted = 1; ep 1493 drivers/usb/gadget/udc/pch_udc.c while (!list_empty(&ep->queue)) { ep 1494 drivers/usb/gadget/udc/pch_udc.c req = list_entry(ep->queue.next, struct pch_udc_request, queue); ep 1495 drivers/usb/gadget/udc/pch_udc.c complete_req(ep, req, -ESHUTDOWN); /* Remove from list */ ep 1539 drivers/usb/gadget/udc/pch_udc.c static int pch_udc_create_dma_chain(struct pch_udc_ep *ep, ep 1550 drivers/usb/gadget/udc/pch_udc.c pch_udc_free_dma_chain(ep->dev, req); ep 1563 drivers/usb/gadget/udc/pch_udc.c td = dma_pool_alloc(ep->dev->data_requests, gfp_flags, ep 1581 drivers/usb/gadget/udc/pch_udc.c pch_udc_free_dma_chain(ep->dev, req); ep 1598 drivers/usb/gadget/udc/pch_udc.c static int prepare_dma(struct pch_udc_ep *ep, struct pch_udc_request *req, ep 1604 drivers/usb/gadget/udc/pch_udc.c retval = pch_udc_create_dma_chain(ep, req, ep->ep.maxpacket, gfp); ep 1609 drivers/usb/gadget/udc/pch_udc.c if (ep->in) ep 1621 drivers/usb/gadget/udc/pch_udc.c static void process_zlp(struct pch_udc_ep *ep, struct pch_udc_request *req) ep 1623 drivers/usb/gadget/udc/pch_udc.c struct pch_udc_dev *dev = ep->dev; ep 1626 drivers/usb/gadget/udc/pch_udc.c complete_req(ep, req, 0); ep 1637 drivers/usb/gadget/udc/pch_udc.c pch_udc_ep_clear_nak(&(dev->ep[UDC_EP0IN_IDX])); ep 1647 drivers/usb/gadget/udc/pch_udc.c static void pch_udc_start_rxrequest(struct pch_udc_ep *ep, ep 1652 drivers/usb/gadget/udc/pch_udc.c pch_udc_clear_dma(ep->dev, DMA_DIR_RX); ep 1663 drivers/usb/gadget/udc/pch_udc.c pch_udc_ep_set_ddptr(ep, req->td_data_phys); ep 1665 drivers/usb/gadget/udc/pch_udc.c pch_udc_enable_ep_interrupts(ep->dev, UDC_EPINT_OUT_EP0 << ep->num); ep 1666 drivers/usb/gadget/udc/pch_udc.c pch_udc_set_dma(ep->dev, DMA_DIR_RX); ep 1667 drivers/usb/gadget/udc/pch_udc.c pch_udc_ep_clear_nak(ep); ep 1668 drivers/usb/gadget/udc/pch_udc.c pch_udc_ep_set_rrdy(ep); ep 1685 drivers/usb/gadget/udc/pch_udc.c struct pch_udc_ep *ep; ep 1693 drivers/usb/gadget/udc/pch_udc.c ep = container_of(usbep, struct pch_udc_ep, ep); ep 1694 drivers/usb/gadget/udc/pch_udc.c dev = ep->dev; ep 1698 drivers/usb/gadget/udc/pch_udc.c ep->ep.desc = desc; ep 1699 drivers/usb/gadget/udc/pch_udc.c ep->halted = 0; ep 1700 drivers/usb/gadget/udc/pch_udc.c pch_udc_ep_enable(ep, &ep->dev->cfg_data, desc); ep 1701 drivers/usb/gadget/udc/pch_udc.c ep->ep.maxpacket = usb_endpoint_maxp(desc); ep 1702 drivers/usb/gadget/udc/pch_udc.c pch_udc_enable_ep_interrupts(ep->dev, PCH_UDC_EPINT(ep->in, ep->num)); ep 1718 drivers/usb/gadget/udc/pch_udc.c struct pch_udc_ep *ep; ep 1724 drivers/usb/gadget/udc/pch_udc.c ep = container_of(usbep, struct pch_udc_ep, ep); ep 1725 drivers/usb/gadget/udc/pch_udc.c if ((usbep->name == ep0_string) || !ep->ep.desc) ep 1728 drivers/usb/gadget/udc/pch_udc.c spin_lock_irqsave(&ep->dev->lock, iflags); ep 1729 drivers/usb/gadget/udc/pch_udc.c empty_req_queue(ep); ep 1730 drivers/usb/gadget/udc/pch_udc.c ep->halted = 1; ep 1731 drivers/usb/gadget/udc/pch_udc.c pch_udc_ep_disable(ep); ep 1732 drivers/usb/gadget/udc/pch_udc.c pch_udc_disable_ep_interrupts(ep->dev, PCH_UDC_EPINT(ep->in, ep->num)); ep 1733 drivers/usb/gadget/udc/pch_udc.c ep->ep.desc = NULL; ep 1734 drivers/usb/gadget/udc/pch_udc.c INIT_LIST_HEAD(&ep->queue); ep 1735 drivers/usb/gadget/udc/pch_udc.c spin_unlock_irqrestore(&ep->dev->lock, iflags); ep 1753 drivers/usb/gadget/udc/pch_udc.c struct pch_udc_ep *ep; ep 1758 drivers/usb/gadget/udc/pch_udc.c ep = container_of(usbep, struct pch_udc_ep, ep); ep 1765 drivers/usb/gadget/udc/pch_udc.c if (!ep->dev->dma_addr) ep 1768 drivers/usb/gadget/udc/pch_udc.c dma_desc = dma_pool_alloc(ep->dev->data_requests, gfp, ep 1792 drivers/usb/gadget/udc/pch_udc.c struct pch_udc_ep *ep; ep 1798 drivers/usb/gadget/udc/pch_udc.c ep = container_of(usbep, struct pch_udc_ep, ep); ep 1800 drivers/usb/gadget/udc/pch_udc.c dev = ep->dev; ep 1806 drivers/usb/gadget/udc/pch_udc.c pch_udc_free_dma_chain(ep->dev, req); ep 1807 drivers/usb/gadget/udc/pch_udc.c dma_pool_free(ep->dev->data_requests, req->td_data, ep 1828 drivers/usb/gadget/udc/pch_udc.c struct pch_udc_ep *ep; ep 1835 drivers/usb/gadget/udc/pch_udc.c ep = container_of(usbep, struct pch_udc_ep, ep); ep 1836 drivers/usb/gadget/udc/pch_udc.c dev = ep->dev; ep 1837 drivers/usb/gadget/udc/pch_udc.c if (!ep->ep.desc && ep->num) ep 1849 drivers/usb/gadget/udc/pch_udc.c if (ep->in) ep 1865 drivers/usb/gadget/udc/pch_udc.c if (ep->in) { ep 1880 drivers/usb/gadget/udc/pch_udc.c retval = prepare_dma(ep, req, GFP_ATOMIC); ep 1887 drivers/usb/gadget/udc/pch_udc.c if (list_empty(&ep->queue) && !ep->halted) { ep 1890 drivers/usb/gadget/udc/pch_udc.c process_zlp(ep, req); ep 1894 drivers/usb/gadget/udc/pch_udc.c if (!ep->in) { ep 1895 drivers/usb/gadget/udc/pch_udc.c pch_udc_start_rxrequest(ep, req); ep 1902 drivers/usb/gadget/udc/pch_udc.c pch_udc_wait_ep_stall(ep); ep 1903 drivers/usb/gadget/udc/pch_udc.c pch_udc_ep_clear_nak(ep); ep 1904 drivers/usb/gadget/udc/pch_udc.c pch_udc_enable_ep_interrupts(ep->dev, (1 << ep->num)); ep 1909 drivers/usb/gadget/udc/pch_udc.c list_add_tail(&req->queue, &ep->queue); ep 1929 drivers/usb/gadget/udc/pch_udc.c struct pch_udc_ep *ep; ep 1934 drivers/usb/gadget/udc/pch_udc.c ep = container_of(usbep, struct pch_udc_ep, ep); ep 1935 drivers/usb/gadget/udc/pch_udc.c if (!usbep || !usbreq || (!ep->ep.desc && ep->num)) ep 1938 drivers/usb/gadget/udc/pch_udc.c spin_lock_irqsave(&ep->dev->lock, flags); ep 1940 drivers/usb/gadget/udc/pch_udc.c list_for_each_entry(req, &ep->queue, queue) { ep 1942 drivers/usb/gadget/udc/pch_udc.c pch_udc_ep_set_nak(ep); ep 1944 drivers/usb/gadget/udc/pch_udc.c complete_req(ep, req, -ECONNRESET); ep 1949 drivers/usb/gadget/udc/pch_udc.c spin_unlock_irqrestore(&ep->dev->lock, flags); ep 1965 drivers/usb/gadget/udc/pch_udc.c struct pch_udc_ep *ep; ep 1971 drivers/usb/gadget/udc/pch_udc.c ep = container_of(usbep, struct pch_udc_ep, ep); ep 1972 drivers/usb/gadget/udc/pch_udc.c if (!ep->ep.desc && !ep->num) ep 1974 drivers/usb/gadget/udc/pch_udc.c if (!ep->dev->driver || (ep->dev->gadget.speed == USB_SPEED_UNKNOWN)) ep 1977 drivers/usb/gadget/udc/pch_udc.c if (list_empty(&ep->queue)) { ep 1979 drivers/usb/gadget/udc/pch_udc.c if (ep->num == PCH_UDC_EP0) ep 1980 drivers/usb/gadget/udc/pch_udc.c ep->dev->stall = 1; ep 1981 drivers/usb/gadget/udc/pch_udc.c pch_udc_ep_set_stall(ep); ep 1983 drivers/usb/gadget/udc/pch_udc.c ep->dev, PCH_UDC_EPINT(ep->in, ep->num)); ep 1985 drivers/usb/gadget/udc/pch_udc.c pch_udc_ep_clear_stall(ep); ep 2007 drivers/usb/gadget/udc/pch_udc.c struct pch_udc_ep *ep; ep 2013 drivers/usb/gadget/udc/pch_udc.c ep = container_of(usbep, struct pch_udc_ep, ep); ep 2014 drivers/usb/gadget/udc/pch_udc.c if (!ep->ep.desc && !ep->num) ep 2016 drivers/usb/gadget/udc/pch_udc.c if (!ep->dev->driver || (ep->dev->gadget.speed == USB_SPEED_UNKNOWN)) ep 2019 drivers/usb/gadget/udc/pch_udc.c if (!list_empty(&ep->queue)) { ep 2022 drivers/usb/gadget/udc/pch_udc.c if (ep->num == PCH_UDC_EP0) ep 2023 drivers/usb/gadget/udc/pch_udc.c ep->dev->stall = 1; ep 2024 drivers/usb/gadget/udc/pch_udc.c pch_udc_ep_set_stall(ep); ep 2025 drivers/usb/gadget/udc/pch_udc.c pch_udc_enable_ep_interrupts(ep->dev, ep 2026 drivers/usb/gadget/udc/pch_udc.c PCH_UDC_EPINT(ep->in, ep->num)); ep 2027 drivers/usb/gadget/udc/pch_udc.c ep->dev->prot_stall = 1; ep 2040 drivers/usb/gadget/udc/pch_udc.c struct pch_udc_ep *ep; ep 2045 drivers/usb/gadget/udc/pch_udc.c ep = container_of(usbep, struct pch_udc_ep, ep); ep 2046 drivers/usb/gadget/udc/pch_udc.c if (ep->ep.desc || !ep->num) ep 2047 drivers/usb/gadget/udc/pch_udc.c pch_udc_ep_fifo_flush(ep, ep->in); ep 2083 drivers/usb/gadget/udc/pch_udc.c static void pch_udc_start_next_txrequest(struct pch_udc_ep *ep) ep 2088 drivers/usb/gadget/udc/pch_udc.c if (pch_udc_read_ep_control(ep) & UDC_EPCTL_P) ep 2091 drivers/usb/gadget/udc/pch_udc.c if (list_empty(&ep->queue)) ep 2095 drivers/usb/gadget/udc/pch_udc.c req = list_entry(ep->queue.next, struct pch_udc_request, queue); ep 2100 drivers/usb/gadget/udc/pch_udc.c pch_udc_wait_ep_stall(ep); ep 2102 drivers/usb/gadget/udc/pch_udc.c pch_udc_ep_set_ddptr(ep, 0); ep 2111 drivers/usb/gadget/udc/pch_udc.c pch_udc_ep_set_ddptr(ep, req->td_data_phys); ep 2112 drivers/usb/gadget/udc/pch_udc.c pch_udc_set_dma(ep->dev, DMA_DIR_TX); ep 2113 drivers/usb/gadget/udc/pch_udc.c pch_udc_ep_set_pd(ep); ep 2114 drivers/usb/gadget/udc/pch_udc.c pch_udc_enable_ep_interrupts(ep->dev, PCH_UDC_EPINT(ep->in, ep->num)); ep 2115 drivers/usb/gadget/udc/pch_udc.c pch_udc_ep_clear_nak(ep); ep 2122 drivers/usb/gadget/udc/pch_udc.c static void pch_udc_complete_transfer(struct pch_udc_ep *ep) ep 2125 drivers/usb/gadget/udc/pch_udc.c struct pch_udc_dev *dev = ep->dev; ep 2127 drivers/usb/gadget/udc/pch_udc.c if (list_empty(&ep->queue)) ep 2129 drivers/usb/gadget/udc/pch_udc.c req = list_entry(ep->queue.next, struct pch_udc_request, queue); ep 2138 drivers/usb/gadget/udc/pch_udc.c (int)(ep->epsts)); ep 2145 drivers/usb/gadget/udc/pch_udc.c complete_req(ep, req, 0); ep 2147 drivers/usb/gadget/udc/pch_udc.c if (!list_empty(&ep->queue)) { ep 2148 drivers/usb/gadget/udc/pch_udc.c pch_udc_wait_ep_stall(ep); ep 2149 drivers/usb/gadget/udc/pch_udc.c pch_udc_ep_clear_nak(ep); ep 2150 drivers/usb/gadget/udc/pch_udc.c pch_udc_enable_ep_interrupts(ep->dev, ep 2151 drivers/usb/gadget/udc/pch_udc.c PCH_UDC_EPINT(ep->in, ep->num)); ep 2153 drivers/usb/gadget/udc/pch_udc.c pch_udc_disable_ep_interrupts(ep->dev, ep 2154 drivers/usb/gadget/udc/pch_udc.c PCH_UDC_EPINT(ep->in, ep->num)); ep 2162 drivers/usb/gadget/udc/pch_udc.c static void pch_udc_complete_receiver(struct pch_udc_ep *ep) ep 2165 drivers/usb/gadget/udc/pch_udc.c struct pch_udc_dev *dev = ep->dev; ep 2170 drivers/usb/gadget/udc/pch_udc.c if (list_empty(&ep->queue)) ep 2173 drivers/usb/gadget/udc/pch_udc.c req = list_entry(ep->queue.next, struct pch_udc_request, queue); ep 2174 drivers/usb/gadget/udc/pch_udc.c pch_udc_clear_dma(ep->dev, DMA_DIR_RX); ep 2175 drivers/usb/gadget/udc/pch_udc.c pch_udc_ep_set_ddptr(ep, 0); ep 2187 drivers/usb/gadget/udc/pch_udc.c (int)(ep->epsts)); ep 2210 drivers/usb/gadget/udc/pch_udc.c complete_req(ep, req, 0); ep 2212 drivers/usb/gadget/udc/pch_udc.c if (!list_empty(&ep->queue)) { ep 2213 drivers/usb/gadget/udc/pch_udc.c req = list_entry(ep->queue.next, struct pch_udc_request, queue); ep 2214 drivers/usb/gadget/udc/pch_udc.c pch_udc_start_rxrequest(ep, req); ep 2227 drivers/usb/gadget/udc/pch_udc.c struct pch_udc_ep *ep; ep 2229 drivers/usb/gadget/udc/pch_udc.c ep = &dev->ep[UDC_EPIN_IDX(ep_num)]; ep 2230 drivers/usb/gadget/udc/pch_udc.c epsts = ep->epsts; ep 2231 drivers/usb/gadget/udc/pch_udc.c ep->epsts = 0; ep 2242 drivers/usb/gadget/udc/pch_udc.c pch_udc_ep_set_stall(ep); ep 2243 drivers/usb/gadget/udc/pch_udc.c pch_udc_enable_ep_interrupts(ep->dev, ep 2244 drivers/usb/gadget/udc/pch_udc.c PCH_UDC_EPINT(ep->in, ep->num)); ep 2248 drivers/usb/gadget/udc/pch_udc.c pch_udc_ep_clear_stall(ep); ep 2250 drivers/usb/gadget/udc/pch_udc.c pch_udc_ep_set_stall(ep); ep 2251 drivers/usb/gadget/udc/pch_udc.c pch_udc_enable_ep_interrupts(ep->dev, ep 2252 drivers/usb/gadget/udc/pch_udc.c PCH_UDC_EPINT(ep->in, ep->num)); ep 2256 drivers/usb/gadget/udc/pch_udc.c pch_udc_complete_transfer(ep); ep 2260 drivers/usb/gadget/udc/pch_udc.c pch_udc_start_next_txrequest(ep); ep 2271 drivers/usb/gadget/udc/pch_udc.c struct pch_udc_ep *ep; ep 2274 drivers/usb/gadget/udc/pch_udc.c ep = &dev->ep[UDC_EPOUT_IDX(ep_num)]; ep 2275 drivers/usb/gadget/udc/pch_udc.c epsts = ep->epsts; ep 2276 drivers/usb/gadget/udc/pch_udc.c ep->epsts = 0; ep 2278 drivers/usb/gadget/udc/pch_udc.c if ((epsts & UDC_EPSTS_BNA) && (!list_empty(&ep->queue))) { ep 2280 drivers/usb/gadget/udc/pch_udc.c req = list_entry(ep->queue.next, struct pch_udc_request, ep 2285 drivers/usb/gadget/udc/pch_udc.c pch_udc_start_rxrequest(ep, req); ep 2292 drivers/usb/gadget/udc/pch_udc.c pch_udc_ep_set_stall(ep); ep 2293 drivers/usb/gadget/udc/pch_udc.c pch_udc_enable_ep_interrupts(ep->dev, ep 2294 drivers/usb/gadget/udc/pch_udc.c PCH_UDC_EPINT(ep->in, ep->num)); ep 2298 drivers/usb/gadget/udc/pch_udc.c pch_udc_ep_clear_stall(ep); ep 2300 drivers/usb/gadget/udc/pch_udc.c pch_udc_ep_set_stall(ep); ep 2301 drivers/usb/gadget/udc/pch_udc.c pch_udc_enable_ep_interrupts(ep->dev, ep 2302 drivers/usb/gadget/udc/pch_udc.c PCH_UDC_EPINT(ep->in, ep->num)); ep 2307 drivers/usb/gadget/udc/pch_udc.c if (ep->dev->prot_stall == 1) { ep 2308 drivers/usb/gadget/udc/pch_udc.c pch_udc_ep_set_stall(ep); ep 2309 drivers/usb/gadget/udc/pch_udc.c pch_udc_enable_ep_interrupts(ep->dev, ep 2310 drivers/usb/gadget/udc/pch_udc.c PCH_UDC_EPINT(ep->in, ep->num)); ep 2312 drivers/usb/gadget/udc/pch_udc.c pch_udc_complete_receiver(ep); ep 2315 drivers/usb/gadget/udc/pch_udc.c if (list_empty(&ep->queue)) ep 2326 drivers/usb/gadget/udc/pch_udc.c struct pch_udc_ep *ep; ep 2329 drivers/usb/gadget/udc/pch_udc.c ep = &dev->ep[UDC_EP0IN_IDX]; ep 2330 drivers/usb/gadget/udc/pch_udc.c ep_out = &dev->ep[UDC_EP0OUT_IDX]; ep 2331 drivers/usb/gadget/udc/pch_udc.c epsts = ep->epsts; ep 2332 drivers/usb/gadget/udc/pch_udc.c ep->epsts = 0; ep 2343 drivers/usb/gadget/udc/pch_udc.c pch_udc_complete_transfer(ep); ep 2355 drivers/usb/gadget/udc/pch_udc.c pch_udc_start_next_txrequest(ep); ep 2369 drivers/usb/gadget/udc/pch_udc.c struct pch_udc_ep *ep; ep 2371 drivers/usb/gadget/udc/pch_udc.c ep = &dev->ep[UDC_EP0OUT_IDX]; ep 2372 drivers/usb/gadget/udc/pch_udc.c stat = ep->epsts; ep 2373 drivers/usb/gadget/udc/pch_udc.c ep->epsts = 0; ep 2379 drivers/usb/gadget/udc/pch_udc.c dev->ep[UDC_EP0IN_IDX].halted = 0; ep 2380 drivers/usb/gadget/udc/pch_udc.c dev->ep[UDC_EP0OUT_IDX].halted = 0; ep 2381 drivers/usb/gadget/udc/pch_udc.c dev->setup_data = ep->td_stp->request; ep 2382 drivers/usb/gadget/udc/pch_udc.c pch_udc_init_setup_buff(ep->td_stp); ep 2384 drivers/usb/gadget/udc/pch_udc.c pch_udc_ep_fifo_flush(&(dev->ep[UDC_EP0IN_IDX]), ep 2385 drivers/usb/gadget/udc/pch_udc.c dev->ep[UDC_EP0IN_IDX].in); ep 2387 drivers/usb/gadget/udc/pch_udc.c dev->gadget.ep0 = &dev->ep[UDC_EP0IN_IDX].ep; ep 2389 drivers/usb/gadget/udc/pch_udc.c dev->gadget.ep0 = &ep->ep; ep 2401 drivers/usb/gadget/udc/pch_udc.c ep->td_data->status = (ep->td_data->status & ep 2404 drivers/usb/gadget/udc/pch_udc.c pch_udc_ep_set_ddptr(ep, ep->td_data_phys); ep 2409 drivers/usb/gadget/udc/pch_udc.c pch_udc_ep_clear_nak(&(dev->ep[UDC_EP0IN_IDX])); ep 2414 drivers/usb/gadget/udc/pch_udc.c pch_udc_ep_clear_nak(ep); ep 2418 drivers/usb/gadget/udc/pch_udc.c pch_udc_ep_set_stall(&(dev->ep[UDC_EP0IN_IDX])); ep 2419 drivers/usb/gadget/udc/pch_udc.c pch_udc_enable_ep_interrupts(ep->dev, ep 2420 drivers/usb/gadget/udc/pch_udc.c PCH_UDC_EPINT(ep->in, ep->num)); ep 2429 drivers/usb/gadget/udc/pch_udc.c pch_udc_ep_set_ddptr(ep, 0); ep 2430 drivers/usb/gadget/udc/pch_udc.c if (!list_empty(&ep->queue)) { ep 2431 drivers/usb/gadget/udc/pch_udc.c ep->epsts = stat; ep 2436 drivers/usb/gadget/udc/pch_udc.c pch_udc_ep_set_rrdy(ep); ep 2448 drivers/usb/gadget/udc/pch_udc.c struct pch_udc_ep *ep = &dev->ep[UDC_EPIN_IDX(ep_num)]; ep 2449 drivers/usb/gadget/udc/pch_udc.c if (list_empty(&ep->queue)) ep 2451 drivers/usb/gadget/udc/pch_udc.c pch_udc_enable_ep_interrupts(ep->dev, PCH_UDC_EPINT(ep->in, ep->num)); ep 2452 drivers/usb/gadget/udc/pch_udc.c pch_udc_ep_clear_nak(ep); ep 2463 drivers/usb/gadget/udc/pch_udc.c struct pch_udc_ep *ep; ep 2468 drivers/usb/gadget/udc/pch_udc.c ep = &dev->ep[UDC_EPIN_IDX(i)]; ep 2469 drivers/usb/gadget/udc/pch_udc.c ep->epsts = pch_udc_read_ep_status(ep); ep 2470 drivers/usb/gadget/udc/pch_udc.c pch_udc_clear_ep_status(ep, ep->epsts); ep 2474 drivers/usb/gadget/udc/pch_udc.c ep = &dev->ep[UDC_EPOUT_IDX(i)]; ep 2475 drivers/usb/gadget/udc/pch_udc.c ep->epsts = pch_udc_read_ep_status(ep); ep 2476 drivers/usb/gadget/udc/pch_udc.c pch_udc_clear_ep_status(ep, ep->epsts); ep 2488 drivers/usb/gadget/udc/pch_udc.c struct pch_udc_ep *ep; ep 2492 drivers/usb/gadget/udc/pch_udc.c ep = &dev->ep[UDC_EP0IN_IDX]; ep 2493 drivers/usb/gadget/udc/pch_udc.c pch_udc_clear_ep_control(ep); ep 2494 drivers/usb/gadget/udc/pch_udc.c pch_udc_ep_fifo_flush(ep, ep->in); ep 2495 drivers/usb/gadget/udc/pch_udc.c pch_udc_ep_set_bufsz(ep, UDC_EP0IN_BUFF_SIZE, ep->in); ep 2496 drivers/usb/gadget/udc/pch_udc.c pch_udc_ep_set_maxpkt(ep, UDC_EP0IN_MAX_PKT_SIZE); ep 2498 drivers/usb/gadget/udc/pch_udc.c ep->td_data = NULL; ep 2499 drivers/usb/gadget/udc/pch_udc.c ep->td_stp = NULL; ep 2500 drivers/usb/gadget/udc/pch_udc.c ep->td_data_phys = 0; ep 2501 drivers/usb/gadget/udc/pch_udc.c ep->td_stp_phys = 0; ep 2504 drivers/usb/gadget/udc/pch_udc.c ep = &dev->ep[UDC_EP0OUT_IDX]; ep 2505 drivers/usb/gadget/udc/pch_udc.c pch_udc_clear_ep_control(ep); ep 2506 drivers/usb/gadget/udc/pch_udc.c pch_udc_ep_fifo_flush(ep, ep->in); ep 2507 drivers/usb/gadget/udc/pch_udc.c pch_udc_ep_set_bufsz(ep, UDC_EP0OUT_BUFF_SIZE, ep->in); ep 2508 drivers/usb/gadget/udc/pch_udc.c pch_udc_ep_set_maxpkt(ep, UDC_EP0OUT_MAX_PKT_SIZE); ep 2510 drivers/usb/gadget/udc/pch_udc.c pch_udc_write_csr(ep->dev, val, UDC_EP0OUT_IDX); ep 2513 drivers/usb/gadget/udc/pch_udc.c pch_udc_init_setup_buff(ep->td_stp); ep 2515 drivers/usb/gadget/udc/pch_udc.c pch_udc_ep_set_subptr(ep, ep->td_stp_phys); ep 2517 drivers/usb/gadget/udc/pch_udc.c pch_udc_ep_set_ddptr(ep, ep->td_data_phys); ep 2520 drivers/usb/gadget/udc/pch_udc.c ep->td_data->status = PCH_UDC_DMA_LAST; ep 2521 drivers/usb/gadget/udc/pch_udc.c ep->td_data->dataptr = dev->dma_addr; ep 2522 drivers/usb/gadget/udc/pch_udc.c ep->td_data->next = ep->td_data_phys; ep 2524 drivers/usb/gadget/udc/pch_udc.c pch_udc_ep_clear_nak(ep); ep 2534 drivers/usb/gadget/udc/pch_udc.c struct pch_udc_ep *ep; ep 2545 drivers/usb/gadget/udc/pch_udc.c ep = &dev->ep[i]; ep 2546 drivers/usb/gadget/udc/pch_udc.c pch_udc_clear_ep_status(ep, UDC_EPSTS_ALL_CLR_MASK); ep 2547 drivers/usb/gadget/udc/pch_udc.c pch_udc_clear_ep_control(ep); ep 2548 drivers/usb/gadget/udc/pch_udc.c pch_udc_ep_set_ddptr(ep, 0); ep 2549 drivers/usb/gadget/udc/pch_udc.c pch_udc_write_csr(ep->dev, 0x00, i); ep 2558 drivers/usb/gadget/udc/pch_udc.c ep = &dev->ep[i]; ep 2559 drivers/usb/gadget/udc/pch_udc.c pch_udc_ep_set_nak(ep); ep 2560 drivers/usb/gadget/udc/pch_udc.c pch_udc_ep_fifo_flush(ep, ep->in); ep 2562 drivers/usb/gadget/udc/pch_udc.c empty_req_queue(ep); ep 2602 drivers/usb/gadget/udc/pch_udc.c pch_udc_ep_set_rrdy(&(dev->ep[UDC_EP0OUT_IDX])); ep 2642 drivers/usb/gadget/udc/pch_udc.c pch_udc_ep_clear_stall(&(dev->ep[i])); ep 2643 drivers/usb/gadget/udc/pch_udc.c dev->ep[i].halted = 0; ep 2677 drivers/usb/gadget/udc/pch_udc.c pch_udc_ep_clear_stall(&(dev->ep[i])); ep 2678 drivers/usb/gadget/udc/pch_udc.c dev->ep[i].halted = 0; ep 2846 drivers/usb/gadget/udc/pch_udc.c memset(dev->ep, 0, sizeof dev->ep); ep 2848 drivers/usb/gadget/udc/pch_udc.c struct pch_udc_ep *ep = &dev->ep[i]; ep 2849 drivers/usb/gadget/udc/pch_udc.c ep->dev = dev; ep 2850 drivers/usb/gadget/udc/pch_udc.c ep->halted = 1; ep 2851 drivers/usb/gadget/udc/pch_udc.c ep->num = i / 2; ep 2852 drivers/usb/gadget/udc/pch_udc.c ep->in = ~i & 1; ep 2853 drivers/usb/gadget/udc/pch_udc.c ep->ep.name = ep_string[i]; ep 2854 drivers/usb/gadget/udc/pch_udc.c ep->ep.ops = &pch_udc_ep_ops; ep 2855 drivers/usb/gadget/udc/pch_udc.c if (ep->in) { ep 2856 drivers/usb/gadget/udc/pch_udc.c ep->offset_addr = ep->num * UDC_EP_REG_SHIFT; ep 2857 drivers/usb/gadget/udc/pch_udc.c ep->ep.caps.dir_in = true; ep 2859 drivers/usb/gadget/udc/pch_udc.c ep->offset_addr = (UDC_EPINT_OUT_SHIFT + ep->num) * ep 2861 drivers/usb/gadget/udc/pch_udc.c ep->ep.caps.dir_out = true; ep 2864 drivers/usb/gadget/udc/pch_udc.c ep->ep.caps.type_control = true; ep 2866 drivers/usb/gadget/udc/pch_udc.c ep->ep.caps.type_iso = true; ep 2867 drivers/usb/gadget/udc/pch_udc.c ep->ep.caps.type_bulk = true; ep 2868 drivers/usb/gadget/udc/pch_udc.c ep->ep.caps.type_int = true; ep 2871 drivers/usb/gadget/udc/pch_udc.c usb_ep_set_maxpacket_limit(&ep->ep, UDC_BULK_MAX_PKT_SIZE); ep 2872 drivers/usb/gadget/udc/pch_udc.c list_add_tail(&ep->ep.ep_list, &dev->gadget.ep_list); ep 2873 drivers/usb/gadget/udc/pch_udc.c INIT_LIST_HEAD(&ep->queue); ep 2875 drivers/usb/gadget/udc/pch_udc.c usb_ep_set_maxpacket_limit(&dev->ep[UDC_EP0IN_IDX].ep, UDC_EP0IN_MAX_PKT_SIZE); ep 2876 drivers/usb/gadget/udc/pch_udc.c usb_ep_set_maxpacket_limit(&dev->ep[UDC_EP0OUT_IDX].ep, UDC_EP0OUT_MAX_PKT_SIZE); ep 2879 drivers/usb/gadget/udc/pch_udc.c list_del_init(&dev->ep[UDC_EP0IN_IDX].ep.ep_list); ep 2880 drivers/usb/gadget/udc/pch_udc.c list_del_init(&dev->ep[UDC_EP0OUT_IDX].ep.ep_list); ep 2882 drivers/usb/gadget/udc/pch_udc.c dev->gadget.ep0 = &dev->ep[UDC_EP0IN_IDX].ep; ep 2930 drivers/usb/gadget/udc/pch_udc.c &dev->ep[UDC_EP0OUT_IDX].td_stp_phys); ep 2936 drivers/usb/gadget/udc/pch_udc.c dev->ep[UDC_EP0OUT_IDX].td_stp = td_stp; ep 2940 drivers/usb/gadget/udc/pch_udc.c &dev->ep[UDC_EP0OUT_IDX].td_data_phys); ep 2946 drivers/usb/gadget/udc/pch_udc.c dev->ep[UDC_EP0OUT_IDX].td_data = td_data; ep 2947 drivers/usb/gadget/udc/pch_udc.c dev->ep[UDC_EP0IN_IDX].td_stp = NULL; ep 2948 drivers/usb/gadget/udc/pch_udc.c dev->ep[UDC_EP0IN_IDX].td_stp_phys = 0; ep 2949 drivers/usb/gadget/udc/pch_udc.c dev->ep[UDC_EP0IN_IDX].td_data = NULL; ep 2950 drivers/usb/gadget/udc/pch_udc.c dev->ep[UDC_EP0IN_IDX].td_data_phys = 0; ep 3023 drivers/usb/gadget/udc/pch_udc.c if (dev->ep[UDC_EP0OUT_IDX].td_stp) { ep 3025 drivers/usb/gadget/udc/pch_udc.c dev->ep[UDC_EP0OUT_IDX].td_stp, ep 3026 drivers/usb/gadget/udc/pch_udc.c dev->ep[UDC_EP0OUT_IDX].td_stp_phys); ep 3028 drivers/usb/gadget/udc/pch_udc.c if (dev->ep[UDC_EP0OUT_IDX].td_data) { ep 3030 drivers/usb/gadget/udc/pch_udc.c dev->ep[UDC_EP0OUT_IDX].td_data, ep 3031 drivers/usb/gadget/udc/pch_udc.c dev->ep[UDC_EP0OUT_IDX].td_data_phys); ep 262 drivers/usb/gadget/udc/pxa25x_udc.c static void pxa25x_ep_fifo_flush (struct usb_ep *ep); ep 318 drivers/usb/gadget/udc/pxa25x_udc.c static void pio_irq_enable(struct pxa25x_ep *ep) ep 320 drivers/usb/gadget/udc/pxa25x_udc.c u32 bEndpointAddress = ep->bEndpointAddress & 0xf; ep 323 drivers/usb/gadget/udc/pxa25x_udc.c udc_set_reg(ep->dev, UICR0, udc_get_reg(ep->dev, UICR0) & ep 327 drivers/usb/gadget/udc/pxa25x_udc.c udc_set_reg(ep->dev, UICR1, udc_get_reg(ep->dev, UICR1) & ep 332 drivers/usb/gadget/udc/pxa25x_udc.c static void pio_irq_disable(struct pxa25x_ep *ep) ep 334 drivers/usb/gadget/udc/pxa25x_udc.c u32 bEndpointAddress = ep->bEndpointAddress & 0xf; ep 337 drivers/usb/gadget/udc/pxa25x_udc.c udc_set_reg(ep->dev, UICR0, udc_get_reg(ep->dev, UICR0) | ep 341 drivers/usb/gadget/udc/pxa25x_udc.c udc_set_reg(ep->dev, UICR1, udc_get_reg(ep->dev, UICR1) | ep 373 drivers/usb/gadget/udc/pxa25x_udc.c static inline u32 udc_ep_get_UDCCS(struct pxa25x_ep *ep) ep 375 drivers/usb/gadget/udc/pxa25x_udc.c return udc_get_reg(ep->dev, ep->regoff_udccs); ep 378 drivers/usb/gadget/udc/pxa25x_udc.c static inline void udc_ep_set_UDCCS(struct pxa25x_ep *ep, u32 data) ep 380 drivers/usb/gadget/udc/pxa25x_udc.c udc_set_reg(ep->dev, data, ep->regoff_udccs); ep 393 drivers/usb/gadget/udc/pxa25x_udc.c static inline u32 udc_ep_get_UDDR(struct pxa25x_ep *ep) ep 395 drivers/usb/gadget/udc/pxa25x_udc.c return udc_get_reg(ep->dev, ep->regoff_uddr); ep 398 drivers/usb/gadget/udc/pxa25x_udc.c static inline void udc_ep_set_UDDR(struct pxa25x_ep *ep, u32 data) ep 400 drivers/usb/gadget/udc/pxa25x_udc.c udc_set_reg(ep->dev, data, ep->regoff_uddr); ep 403 drivers/usb/gadget/udc/pxa25x_udc.c static inline u32 udc_ep_get_UBCR(struct pxa25x_ep *ep) ep 405 drivers/usb/gadget/udc/pxa25x_udc.c return udc_get_reg(ep->dev, ep->regoff_ubcr); ep 425 drivers/usb/gadget/udc/pxa25x_udc.c struct pxa25x_ep *ep; ep 428 drivers/usb/gadget/udc/pxa25x_udc.c ep = container_of (_ep, struct pxa25x_ep, ep); ep 431 drivers/usb/gadget/udc/pxa25x_udc.c || ep->bEndpointAddress != desc->bEndpointAddress ep 432 drivers/usb/gadget/udc/pxa25x_udc.c || ep->fifo_size < usb_endpoint_maxp (desc)) { ep 438 drivers/usb/gadget/udc/pxa25x_udc.c if (ep->bmAttributes != desc->bmAttributes ep 439 drivers/usb/gadget/udc/pxa25x_udc.c && ep->bmAttributes != USB_ENDPOINT_XFER_BULK ep 454 drivers/usb/gadget/udc/pxa25x_udc.c dev = ep->dev; ep 460 drivers/usb/gadget/udc/pxa25x_udc.c ep->ep.desc = desc; ep 461 drivers/usb/gadget/udc/pxa25x_udc.c ep->stopped = 0; ep 462 drivers/usb/gadget/udc/pxa25x_udc.c ep->pio_irqs = 0; ep 463 drivers/usb/gadget/udc/pxa25x_udc.c ep->ep.maxpacket = usb_endpoint_maxp (desc); ep 476 drivers/usb/gadget/udc/pxa25x_udc.c struct pxa25x_ep *ep; ep 479 drivers/usb/gadget/udc/pxa25x_udc.c ep = container_of (_ep, struct pxa25x_ep, ep); ep 480 drivers/usb/gadget/udc/pxa25x_udc.c if (!_ep || !ep->ep.desc) { ep 482 drivers/usb/gadget/udc/pxa25x_udc.c _ep ? ep->ep.name : NULL); ep 487 drivers/usb/gadget/udc/pxa25x_udc.c nuke (ep, -ESHUTDOWN); ep 492 drivers/usb/gadget/udc/pxa25x_udc.c ep->ep.desc = NULL; ep 493 drivers/usb/gadget/udc/pxa25x_udc.c ep->stopped = 1; ep 542 drivers/usb/gadget/udc/pxa25x_udc.c static void done(struct pxa25x_ep *ep, struct pxa25x_request *req, int status) ep 544 drivers/usb/gadget/udc/pxa25x_udc.c unsigned stopped = ep->stopped; ep 555 drivers/usb/gadget/udc/pxa25x_udc.c ep->ep.name, &req->req, status, ep 559 drivers/usb/gadget/udc/pxa25x_udc.c ep->stopped = 1; ep 560 drivers/usb/gadget/udc/pxa25x_udc.c usb_gadget_giveback_request(&ep->ep, &req->req); ep 561 drivers/usb/gadget/udc/pxa25x_udc.c ep->stopped = stopped; ep 571 drivers/usb/gadget/udc/pxa25x_udc.c write_packet(struct pxa25x_ep *ep, struct pxa25x_request *req, unsigned max) ep 585 drivers/usb/gadget/udc/pxa25x_udc.c udc_ep_set_UDDR(ep, *buf++); ep 596 drivers/usb/gadget/udc/pxa25x_udc.c write_fifo (struct pxa25x_ep *ep, struct pxa25x_request *req) ep 600 drivers/usb/gadget/udc/pxa25x_udc.c max = usb_endpoint_maxp(ep->ep.desc); ep 605 drivers/usb/gadget/udc/pxa25x_udc.c count = write_packet(ep, req, max); ep 617 drivers/usb/gadget/udc/pxa25x_udc.c is_short = unlikely (max < ep->fifo_size); ep 621 drivers/usb/gadget/udc/pxa25x_udc.c ep->ep.name, count, ep 629 drivers/usb/gadget/udc/pxa25x_udc.c udc_ep_set_UDCCS(ep, UDCCS_BI_TPC); ep 631 drivers/usb/gadget/udc/pxa25x_udc.c udc_ep_set_UDCCS(ep, UDCCS_BI_TSP); ep 635 drivers/usb/gadget/udc/pxa25x_udc.c done (ep, req, 0); ep 636 drivers/usb/gadget/udc/pxa25x_udc.c if (list_empty(&ep->queue)) ep 637 drivers/usb/gadget/udc/pxa25x_udc.c pio_irq_disable(ep); ep 645 drivers/usb/gadget/udc/pxa25x_udc.c } while (udc_ep_get_UDCCS(ep) & UDCCS_BI_TFS); ep 663 drivers/usb/gadget/udc/pxa25x_udc.c write_ep0_fifo (struct pxa25x_ep *ep, struct pxa25x_request *req) ep 665 drivers/usb/gadget/udc/pxa25x_udc.c struct pxa25x_udc *dev = ep->dev; ep 669 drivers/usb/gadget/udc/pxa25x_udc.c count = write_packet(&dev->ep[0], req, EP0_FIFO_SIZE); ep 670 drivers/usb/gadget/udc/pxa25x_udc.c ep->dev->stats.write.bytes += count; ep 679 drivers/usb/gadget/udc/pxa25x_udc.c if (ep->dev->req_pending) ep 680 drivers/usb/gadget/udc/pxa25x_udc.c ep0start(ep->dev, UDCCS0_IPR, "short IN"); ep 685 drivers/usb/gadget/udc/pxa25x_udc.c done (ep, req, 0); ep 686 drivers/usb/gadget/udc/pxa25x_udc.c ep0_idle(ep->dev); ep 709 drivers/usb/gadget/udc/pxa25x_udc.c } else if (ep->dev->req_pending) ep 710 drivers/usb/gadget/udc/pxa25x_udc.c ep0start(ep->dev, 0, "IN"); ep 724 drivers/usb/gadget/udc/pxa25x_udc.c read_fifo (struct pxa25x_ep *ep, struct pxa25x_request *req) ep 735 drivers/usb/gadget/udc/pxa25x_udc.c udccs = udc_ep_get_UDCCS(ep); ep 744 drivers/usb/gadget/udc/pxa25x_udc.c count = 1 + (0x0ff & udc_ep_get_UBCR(ep)); ep 748 drivers/usb/gadget/udc/pxa25x_udc.c is_short = (count < ep->ep.maxpacket); ep 750 drivers/usb/gadget/udc/pxa25x_udc.c ep->ep.name, udccs, count, ep 754 drivers/usb/gadget/udc/pxa25x_udc.c u8 byte = (u8) udc_ep_get_UDDR(ep); ep 763 drivers/usb/gadget/udc/pxa25x_udc.c ep->ep.name, count); ep 770 drivers/usb/gadget/udc/pxa25x_udc.c udc_ep_set_UDCCS(ep, UDCCS_BO_RPC); ep 774 drivers/usb/gadget/udc/pxa25x_udc.c if (ep->bmAttributes == USB_ENDPOINT_XFER_ISOC) { ep 783 drivers/usb/gadget/udc/pxa25x_udc.c done (ep, req, 0); ep 784 drivers/usb/gadget/udc/pxa25x_udc.c if (list_empty(&ep->queue)) ep 785 drivers/usb/gadget/udc/pxa25x_udc.c pio_irq_disable(ep); ep 801 drivers/usb/gadget/udc/pxa25x_udc.c read_ep0_fifo (struct pxa25x_ep *ep, struct pxa25x_request *req) ep 809 drivers/usb/gadget/udc/pxa25x_udc.c while (udc_ep_get_UDCCS(ep) & UDCCS0_RNE) { ep 818 drivers/usb/gadget/udc/pxa25x_udc.c DMSG("%s overflow\n", ep->ep.name); ep 827 drivers/usb/gadget/udc/pxa25x_udc.c udc_ep_set_UDCCS(ep, UDCCS0_OPR | UDCCS0_IPR); ep 843 drivers/usb/gadget/udc/pxa25x_udc.c struct pxa25x_ep *ep; ep 854 drivers/usb/gadget/udc/pxa25x_udc.c ep = container_of(_ep, struct pxa25x_ep, ep); ep 855 drivers/usb/gadget/udc/pxa25x_udc.c if (unlikely(!_ep || (!ep->ep.desc && ep->ep.name != ep0name))) { ep 860 drivers/usb/gadget/udc/pxa25x_udc.c dev = ep->dev; ep 870 drivers/usb/gadget/udc/pxa25x_udc.c if (unlikely (ep->bmAttributes == USB_ENDPOINT_XFER_ISOC ep 871 drivers/usb/gadget/udc/pxa25x_udc.c && req->req.length > usb_endpoint_maxp(ep->ep.desc))) ep 883 drivers/usb/gadget/udc/pxa25x_udc.c if (list_empty(&ep->queue) && !ep->stopped) { ep 884 drivers/usb/gadget/udc/pxa25x_udc.c if (ep->ep.desc == NULL/* ep0 */) { ep 890 drivers/usb/gadget/udc/pxa25x_udc.c if (write_ep0_fifo(ep, req)) ep 903 drivers/usb/gadget/udc/pxa25x_udc.c done(ep, req, 0); ep 911 drivers/usb/gadget/udc/pxa25x_udc.c && read_ep0_fifo(ep, req))) { ep 913 drivers/usb/gadget/udc/pxa25x_udc.c done(ep, req, 0); ep 924 drivers/usb/gadget/udc/pxa25x_udc.c } else if ((ep->bEndpointAddress & USB_DIR_IN) != 0) { ep 925 drivers/usb/gadget/udc/pxa25x_udc.c if ((udc_ep_get_UDCCS(ep) & UDCCS_BI_TFS) != 0 ep 926 drivers/usb/gadget/udc/pxa25x_udc.c && write_fifo(ep, req)) ep 928 drivers/usb/gadget/udc/pxa25x_udc.c } else if ((udc_ep_get_UDCCS(ep) & UDCCS_BO_RFS) != 0 ep 929 drivers/usb/gadget/udc/pxa25x_udc.c && read_fifo(ep, req)) { ep 933 drivers/usb/gadget/udc/pxa25x_udc.c if (likely(req && ep->ep.desc)) ep 934 drivers/usb/gadget/udc/pxa25x_udc.c pio_irq_enable(ep); ep 939 drivers/usb/gadget/udc/pxa25x_udc.c list_add_tail(&req->queue, &ep->queue); ep 949 drivers/usb/gadget/udc/pxa25x_udc.c static void nuke(struct pxa25x_ep *ep, int status) ep 954 drivers/usb/gadget/udc/pxa25x_udc.c while (!list_empty(&ep->queue)) { ep 955 drivers/usb/gadget/udc/pxa25x_udc.c req = list_entry(ep->queue.next, ep 958 drivers/usb/gadget/udc/pxa25x_udc.c done(ep, req, status); ep 960 drivers/usb/gadget/udc/pxa25x_udc.c if (ep->ep.desc) ep 961 drivers/usb/gadget/udc/pxa25x_udc.c pio_irq_disable(ep); ep 968 drivers/usb/gadget/udc/pxa25x_udc.c struct pxa25x_ep *ep; ep 972 drivers/usb/gadget/udc/pxa25x_udc.c ep = container_of(_ep, struct pxa25x_ep, ep); ep 973 drivers/usb/gadget/udc/pxa25x_udc.c if (!_ep || ep->ep.name == ep0name) ep 979 drivers/usb/gadget/udc/pxa25x_udc.c list_for_each_entry (req, &ep->queue, queue) { ep 988 drivers/usb/gadget/udc/pxa25x_udc.c done(ep, req, -ECONNRESET); ep 998 drivers/usb/gadget/udc/pxa25x_udc.c struct pxa25x_ep *ep; ep 1001 drivers/usb/gadget/udc/pxa25x_udc.c ep = container_of(_ep, struct pxa25x_ep, ep); ep 1003 drivers/usb/gadget/udc/pxa25x_udc.c || (!ep->ep.desc && ep->ep.name != ep0name)) ep 1004 drivers/usb/gadget/udc/pxa25x_udc.c || ep->bmAttributes == USB_ENDPOINT_XFER_ISOC) { ep 1020 drivers/usb/gadget/udc/pxa25x_udc.c if ((ep->bEndpointAddress & USB_DIR_IN) != 0 ep 1021 drivers/usb/gadget/udc/pxa25x_udc.c && ((udc_ep_get_UDCCS(ep) & UDCCS_BI_TFS) == 0 ep 1022 drivers/usb/gadget/udc/pxa25x_udc.c || !list_empty(&ep->queue))) { ep 1028 drivers/usb/gadget/udc/pxa25x_udc.c udc_ep_set_UDCCS(ep, UDCCS_BI_FST|UDCCS_BI_FTF); ep 1031 drivers/usb/gadget/udc/pxa25x_udc.c if (!ep->ep.desc) { ep 1032 drivers/usb/gadget/udc/pxa25x_udc.c start_watchdog(ep->dev); ep 1033 drivers/usb/gadget/udc/pxa25x_udc.c ep->dev->req_pending = 0; ep 1034 drivers/usb/gadget/udc/pxa25x_udc.c ep->dev->ep0state = EP0_STALL; ep 1040 drivers/usb/gadget/udc/pxa25x_udc.c if (udc_ep_get_UDCCS(ep) & UDCCS_BI_SST) ep 1053 drivers/usb/gadget/udc/pxa25x_udc.c struct pxa25x_ep *ep; ep 1055 drivers/usb/gadget/udc/pxa25x_udc.c ep = container_of(_ep, struct pxa25x_ep, ep); ep 1061 drivers/usb/gadget/udc/pxa25x_udc.c if ((ep->bEndpointAddress & USB_DIR_IN) != 0) ep 1063 drivers/usb/gadget/udc/pxa25x_udc.c if (ep->dev->gadget.speed == USB_SPEED_UNKNOWN ep 1064 drivers/usb/gadget/udc/pxa25x_udc.c || (udc_ep_get_UDCCS(ep) & UDCCS_BO_RFS) == 0) ep 1067 drivers/usb/gadget/udc/pxa25x_udc.c return (udc_ep_get_UBCR(ep) & 0xfff) + 1; ep 1072 drivers/usb/gadget/udc/pxa25x_udc.c struct pxa25x_ep *ep; ep 1074 drivers/usb/gadget/udc/pxa25x_udc.c ep = container_of(_ep, struct pxa25x_ep, ep); ep 1075 drivers/usb/gadget/udc/pxa25x_udc.c if (!_ep || ep->ep.name == ep0name || !list_empty(&ep->queue)) { ep 1083 drivers/usb/gadget/udc/pxa25x_udc.c if ((ep->bEndpointAddress & USB_DIR_IN) == 0) { ep 1084 drivers/usb/gadget/udc/pxa25x_udc.c while (((udc_ep_get_UDCCS(ep)) & UDCCS_BO_RNE) != 0) ep 1085 drivers/usb/gadget/udc/pxa25x_udc.c (void)udc_ep_get_UDDR(ep); ep 1090 drivers/usb/gadget/udc/pxa25x_udc.c udc_ep_set_UDCCS(ep, UDCCS_BI_TPC|UDCCS_BI_FTF|UDCCS_BI_TUR ep 1091 drivers/usb/gadget/udc/pxa25x_udc.c | (ep->bmAttributes == USB_ENDPOINT_XFER_ISOC ep 1301 drivers/usb/gadget/udc/pxa25x_udc.c struct pxa25x_ep *ep = &dev->ep [i]; ep 1307 drivers/usb/gadget/udc/pxa25x_udc.c desc = ep->ep.desc; ep 1310 drivers/usb/gadget/udc/pxa25x_udc.c tmp = udc_ep_get_UDCCS(&dev->ep[i]); ep 1313 drivers/usb/gadget/udc/pxa25x_udc.c ep->ep.name, usb_endpoint_maxp(desc), ep 1314 drivers/usb/gadget/udc/pxa25x_udc.c "pio", tmp, ep->pio_irqs); ep 1319 drivers/usb/gadget/udc/pxa25x_udc.c ep->pio_irqs); ep 1321 drivers/usb/gadget/udc/pxa25x_udc.c if (list_empty(&ep->queue)) { ep 1325 drivers/usb/gadget/udc/pxa25x_udc.c list_for_each_entry(req, &ep->queue, queue) { ep 1391 drivers/usb/gadget/udc/pxa25x_udc.c struct pxa25x_ep *ep = &dev->ep[i]; ep 1394 drivers/usb/gadget/udc/pxa25x_udc.c list_add_tail (&ep->ep.ep_list, &dev->gadget.ep_list); ep 1396 drivers/usb/gadget/udc/pxa25x_udc.c ep->ep.desc = NULL; ep 1397 drivers/usb/gadget/udc/pxa25x_udc.c ep->stopped = 0; ep 1398 drivers/usb/gadget/udc/pxa25x_udc.c INIT_LIST_HEAD (&ep->queue); ep 1399 drivers/usb/gadget/udc/pxa25x_udc.c ep->pio_irqs = 0; ep 1400 drivers/usb/gadget/udc/pxa25x_udc.c usb_ep_set_maxpacket_limit(&ep->ep, ep->ep.maxpacket); ep 1502 drivers/usb/gadget/udc/pxa25x_udc.c struct pxa25x_ep *ep = &dev->ep[i]; ep 1504 drivers/usb/gadget/udc/pxa25x_udc.c ep->stopped = 1; ep 1505 drivers/usb/gadget/udc/pxa25x_udc.c nuke(ep, -ESHUTDOWN); ep 1529 drivers/usb/gadget/udc/pxa25x_udc.c struct pxa25x_ep *ep = &dev->ep[i]; ep 1531 drivers/usb/gadget/udc/pxa25x_udc.c ep->stopped = 1; ep 1532 drivers/usb/gadget/udc/pxa25x_udc.c nuke(ep, -ESHUTDOWN); ep 1610 drivers/usb/gadget/udc/pxa25x_udc.c nuke(&dev->ep[i], -ECONNABORTED); ep 1631 drivers/usb/gadget/udc/pxa25x_udc.c struct pxa25x_ep *ep = &dev->ep [0]; ep 1639 drivers/usb/gadget/udc/pxa25x_udc.c if (list_empty(&ep->queue)) ep 1642 drivers/usb/gadget/udc/pxa25x_udc.c req = list_entry(ep->queue.next, struct pxa25x_request, queue); ep 1646 drivers/usb/gadget/udc/pxa25x_udc.c nuke(ep, -EPIPE); ep 1654 drivers/usb/gadget/udc/pxa25x_udc.c nuke(ep, 0); ep 1669 drivers/usb/gadget/udc/pxa25x_udc.c nuke (ep, -EPROTO); ep 1786 drivers/usb/gadget/udc/pxa25x_udc.c nuke(ep, -EPROTO); ep 1811 drivers/usb/gadget/udc/pxa25x_udc.c done(ep, req, 0); ep 1816 drivers/usb/gadget/udc/pxa25x_udc.c (void) write_ep0_fifo(ep, req); ep 1824 drivers/usb/gadget/udc/pxa25x_udc.c if (read_ep0_fifo(ep, req)) ep 1825 drivers/usb/gadget/udc/pxa25x_udc.c done(ep, req, 0); ep 1831 drivers/usb/gadget/udc/pxa25x_udc.c done(ep, req, 0); ep 1837 drivers/usb/gadget/udc/pxa25x_udc.c done(ep, req, 0); ep 1852 drivers/usb/gadget/udc/pxa25x_udc.c static void handle_ep(struct pxa25x_ep *ep) ep 1855 drivers/usb/gadget/udc/pxa25x_udc.c int is_in = ep->bEndpointAddress & USB_DIR_IN; ep 1861 drivers/usb/gadget/udc/pxa25x_udc.c if (likely (!list_empty(&ep->queue))) ep 1862 drivers/usb/gadget/udc/pxa25x_udc.c req = list_entry(ep->queue.next, ep 1869 drivers/usb/gadget/udc/pxa25x_udc.c udccs = udc_ep_get_UDCCS(ep); ep 1872 drivers/usb/gadget/udc/pxa25x_udc.c if (likely(ep->bmAttributes == USB_ENDPOINT_XFER_BULK)) ep 1876 drivers/usb/gadget/udc/pxa25x_udc.c udc_ep_set_UDCCS(ep, tmp); ep 1878 drivers/usb/gadget/udc/pxa25x_udc.c completed = write_fifo(ep, req); ep 1881 drivers/usb/gadget/udc/pxa25x_udc.c if (likely(ep->bmAttributes == USB_ENDPOINT_XFER_BULK)) ep 1887 drivers/usb/gadget/udc/pxa25x_udc.c udc_ep_set_UDCCS(ep, tmp); ep 1891 drivers/usb/gadget/udc/pxa25x_udc.c completed = read_fifo(ep, req); ep 1893 drivers/usb/gadget/udc/pxa25x_udc.c pio_irq_disable(ep); ep 1895 drivers/usb/gadget/udc/pxa25x_udc.c ep->pio_irqs++; ep 1977 drivers/usb/gadget/udc/pxa25x_udc.c dev->ep[0].pio_irqs++; ep 1987 drivers/usb/gadget/udc/pxa25x_udc.c handle_ep(&dev->ep[i]); ep 1994 drivers/usb/gadget/udc/pxa25x_udc.c handle_ep(&dev->ep[i+8]); ep 2023 drivers/usb/gadget/udc/pxa25x_udc.c .ep0 = &memory.ep[0].ep, ep 2032 drivers/usb/gadget/udc/pxa25x_udc.c .ep[0] = { ep 2033 drivers/usb/gadget/udc/pxa25x_udc.c .ep = { ep 2046 drivers/usb/gadget/udc/pxa25x_udc.c .ep[1] = { ep 2047 drivers/usb/gadget/udc/pxa25x_udc.c .ep = { ep 2061 drivers/usb/gadget/udc/pxa25x_udc.c .ep[2] = { ep 2062 drivers/usb/gadget/udc/pxa25x_udc.c .ep = { ep 2078 drivers/usb/gadget/udc/pxa25x_udc.c .ep[3] = { ep 2079 drivers/usb/gadget/udc/pxa25x_udc.c .ep = { ep 2093 drivers/usb/gadget/udc/pxa25x_udc.c .ep[4] = { ep 2094 drivers/usb/gadget/udc/pxa25x_udc.c .ep = { ep 2109 drivers/usb/gadget/udc/pxa25x_udc.c .ep[5] = { ep 2110 drivers/usb/gadget/udc/pxa25x_udc.c .ep = { ep 2125 drivers/usb/gadget/udc/pxa25x_udc.c .ep[6] = { ep 2126 drivers/usb/gadget/udc/pxa25x_udc.c .ep = { ep 2140 drivers/usb/gadget/udc/pxa25x_udc.c .ep[7] = { ep 2141 drivers/usb/gadget/udc/pxa25x_udc.c .ep = { ep 2156 drivers/usb/gadget/udc/pxa25x_udc.c .ep[8] = { ep 2157 drivers/usb/gadget/udc/pxa25x_udc.c .ep = { ep 2171 drivers/usb/gadget/udc/pxa25x_udc.c .ep[9] = { ep 2172 drivers/usb/gadget/udc/pxa25x_udc.c .ep = { ep 2187 drivers/usb/gadget/udc/pxa25x_udc.c .ep[10] = { ep 2188 drivers/usb/gadget/udc/pxa25x_udc.c .ep = { ep 2203 drivers/usb/gadget/udc/pxa25x_udc.c .ep[11] = { ep 2204 drivers/usb/gadget/udc/pxa25x_udc.c .ep = { ep 2218 drivers/usb/gadget/udc/pxa25x_udc.c .ep[12] = { ep 2219 drivers/usb/gadget/udc/pxa25x_udc.c .ep = { ep 2234 drivers/usb/gadget/udc/pxa25x_udc.c .ep[13] = { ep 2235 drivers/usb/gadget/udc/pxa25x_udc.c .ep = { ep 2249 drivers/usb/gadget/udc/pxa25x_udc.c .ep[14] = { ep 2250 drivers/usb/gadget/udc/pxa25x_udc.c .ep = { ep 2265 drivers/usb/gadget/udc/pxa25x_udc.c .ep[15] = { ep 2266 drivers/usb/gadget/udc/pxa25x_udc.c .ep = { ep 36 drivers/usb/gadget/udc/pxa25x_udc.h struct usb_ep ep; ep 118 drivers/usb/gadget/udc/pxa25x_udc.h struct pxa25x_ep ep [PXA_UDC_NUM_ENDPOINTS]; ep 227 drivers/usb/gadget/udc/pxa25x_udc.h if (dev->ep[i].ep.desc == NULL) ep 229 drivers/usb/gadget/udc/pxa25x_udc.h DMSG ("udccs%d = %02x\n", i, udc_ep_get_UDCCS(&dev->ep[i])); ep 79 drivers/usb/gadget/udc/pxa27x_udc.c static void handle_ep(struct pxa_ep *ep); ep 139 drivers/usb/gadget/udc/pxa27x_udc.c struct pxa_ep *ep; ep 148 drivers/usb/gadget/udc/pxa27x_udc.c ep = &udc->pxa_ep[i]; ep 149 drivers/usb/gadget/udc/pxa27x_udc.c maxpkt = ep->fifo_size; ep 151 drivers/usb/gadget/udc/pxa27x_udc.c EPNAME(ep), maxpkt, "pio"); ep 153 drivers/usb/gadget/udc/pxa27x_udc.c if (list_empty(&ep->queue)) { ep 158 drivers/usb/gadget/udc/pxa27x_udc.c list_for_each_entry(req, &ep->queue, queue) { ep 172 drivers/usb/gadget/udc/pxa27x_udc.c struct pxa_ep *ep; ep 179 drivers/usb/gadget/udc/pxa27x_udc.c ep = &udc->pxa_ep[0]; ep 180 drivers/usb/gadget/udc/pxa27x_udc.c tmp = udc_ep_readl(ep, UDCCSR); ep 191 drivers/usb/gadget/udc/pxa27x_udc.c ep = &udc->pxa_ep[i]; ep 192 drivers/usb/gadget/udc/pxa27x_udc.c tmp = i? udc_ep_readl(ep, UDCCR) : udc_readl(udc, UDCCR); ep 194 drivers/usb/gadget/udc/pxa27x_udc.c EPNAME(ep), ep 195 drivers/usb/gadget/udc/pxa27x_udc.c ep->stats.in_bytes, ep->stats.in_ops, ep 196 drivers/usb/gadget/udc/pxa27x_udc.c ep->stats.out_bytes, ep->stats.out_ops, ep 197 drivers/usb/gadget/udc/pxa27x_udc.c ep->stats.irqs, ep 198 drivers/usb/gadget/udc/pxa27x_udc.c tmp, udc_ep_readl(ep, UDCCSR), ep 199 drivers/usb/gadget/udc/pxa27x_udc.c udc_ep_readl(ep, UDCBCR)); ep 243 drivers/usb/gadget/udc/pxa27x_udc.c static int is_match_usb_pxa(struct udc_usb_ep *udc_usb_ep, struct pxa_ep *ep, ep 246 drivers/usb/gadget/udc/pxa27x_udc.c if (usb_endpoint_num(&udc_usb_ep->desc) != ep->addr) ep 248 drivers/usb/gadget/udc/pxa27x_udc.c if (usb_endpoint_dir_in(&udc_usb_ep->desc) != ep->dir_in) ep 250 drivers/usb/gadget/udc/pxa27x_udc.c if (usb_endpoint_type(&udc_usb_ep->desc) != ep->type) ep 252 drivers/usb/gadget/udc/pxa27x_udc.c if ((ep->config != config) || (ep->interface != interface) ep 253 drivers/usb/gadget/udc/pxa27x_udc.c || (ep->alternate != altsetting)) ep 287 drivers/usb/gadget/udc/pxa27x_udc.c struct pxa_ep *ep; ep 296 drivers/usb/gadget/udc/pxa27x_udc.c ep = &udc->pxa_ep[i]; ep 297 drivers/usb/gadget/udc/pxa27x_udc.c if (is_match_usb_pxa(udc_usb_ep, ep, cfg, iface, alt)) ep 298 drivers/usb/gadget/udc/pxa27x_udc.c return ep; ep 329 drivers/usb/gadget/udc/pxa27x_udc.c static void pio_irq_enable(struct pxa_ep *ep) ep 331 drivers/usb/gadget/udc/pxa27x_udc.c struct pxa_udc *udc = ep->dev; ep 332 drivers/usb/gadget/udc/pxa27x_udc.c int index = EPIDX(ep); ep 346 drivers/usb/gadget/udc/pxa27x_udc.c static void pio_irq_disable(struct pxa_ep *ep) ep 348 drivers/usb/gadget/udc/pxa27x_udc.c struct pxa_udc *udc = ep->dev; ep 349 drivers/usb/gadget/udc/pxa27x_udc.c int index = EPIDX(ep); ep 397 drivers/usb/gadget/udc/pxa27x_udc.c static inline void ep_write_UDCCSR(struct pxa_ep *ep, int mask) ep 399 drivers/usb/gadget/udc/pxa27x_udc.c if (is_ep0(ep)) ep 401 drivers/usb/gadget/udc/pxa27x_udc.c udc_ep_writel(ep, UDCCSR, mask); ep 410 drivers/usb/gadget/udc/pxa27x_udc.c static int ep_count_bytes_remain(struct pxa_ep *ep) ep 412 drivers/usb/gadget/udc/pxa27x_udc.c if (ep->dir_in) ep 414 drivers/usb/gadget/udc/pxa27x_udc.c return udc_ep_readl(ep, UDCBCR) & 0x3ff; ep 427 drivers/usb/gadget/udc/pxa27x_udc.c static int ep_is_empty(struct pxa_ep *ep) ep 431 drivers/usb/gadget/udc/pxa27x_udc.c if (!is_ep0(ep) && ep->dir_in) ep 433 drivers/usb/gadget/udc/pxa27x_udc.c if (is_ep0(ep)) ep 434 drivers/usb/gadget/udc/pxa27x_udc.c ret = !(udc_ep_readl(ep, UDCCSR) & UDCCSR0_RNE); ep 436 drivers/usb/gadget/udc/pxa27x_udc.c ret = !(udc_ep_readl(ep, UDCCSR) & UDCCSR_BNE); ep 449 drivers/usb/gadget/udc/pxa27x_udc.c static int ep_is_full(struct pxa_ep *ep) ep 451 drivers/usb/gadget/udc/pxa27x_udc.c if (is_ep0(ep)) ep 452 drivers/usb/gadget/udc/pxa27x_udc.c return (udc_ep_readl(ep, UDCCSR) & UDCCSR0_IPR); ep 453 drivers/usb/gadget/udc/pxa27x_udc.c if (!ep->dir_in) ep 455 drivers/usb/gadget/udc/pxa27x_udc.c return (!(udc_ep_readl(ep, UDCCSR) & UDCCSR_BNF)); ep 464 drivers/usb/gadget/udc/pxa27x_udc.c static int epout_has_pkt(struct pxa_ep *ep) ep 466 drivers/usb/gadget/udc/pxa27x_udc.c if (!is_ep0(ep) && ep->dir_in) ep 468 drivers/usb/gadget/udc/pxa27x_udc.c if (is_ep0(ep)) ep 469 drivers/usb/gadget/udc/pxa27x_udc.c return (udc_ep_readl(ep, UDCCSR) & UDCCSR0_OPC); ep 470 drivers/usb/gadget/udc/pxa27x_udc.c return (udc_ep_readl(ep, UDCCSR) & UDCCSR_PC); ep 480 drivers/usb/gadget/udc/pxa27x_udc.c struct pxa_ep *ep = &udc->pxa_ep[0]; ep 484 drivers/usb/gadget/udc/pxa27x_udc.c ep_dbg(ep, "state=%s->%s, udccsr0=0x%03x, udcbcr=%d\n", old_stname, ep 485 drivers/usb/gadget/udc/pxa27x_udc.c EP0_STNAME(udc), udc_ep_readl(ep, UDCCSR), ep 486 drivers/usb/gadget/udc/pxa27x_udc.c udc_ep_readl(ep, UDCBCR)); ep 505 drivers/usb/gadget/udc/pxa27x_udc.c static void inc_ep_stats_reqs(struct pxa_ep *ep, int is_in) ep 508 drivers/usb/gadget/udc/pxa27x_udc.c ep->stats.in_ops++; ep 510 drivers/usb/gadget/udc/pxa27x_udc.c ep->stats.out_ops++; ep 519 drivers/usb/gadget/udc/pxa27x_udc.c static void inc_ep_stats_bytes(struct pxa_ep *ep, int count, int is_in) ep 522 drivers/usb/gadget/udc/pxa27x_udc.c ep->stats.in_bytes += count; ep 524 drivers/usb/gadget/udc/pxa27x_udc.c ep->stats.out_bytes += count; ep 533 drivers/usb/gadget/udc/pxa27x_udc.c static void pxa_ep_setup(struct pxa_ep *ep) ep 537 drivers/usb/gadget/udc/pxa27x_udc.c new_udccr = ((ep->config << UDCCONR_CN_S) & UDCCONR_CN) ep 538 drivers/usb/gadget/udc/pxa27x_udc.c | ((ep->interface << UDCCONR_IN_S) & UDCCONR_IN) ep 539 drivers/usb/gadget/udc/pxa27x_udc.c | ((ep->alternate << UDCCONR_AISN_S) & UDCCONR_AISN) ep 540 drivers/usb/gadget/udc/pxa27x_udc.c | ((EPADDR(ep) << UDCCONR_EN_S) & UDCCONR_EN) ep 541 drivers/usb/gadget/udc/pxa27x_udc.c | ((EPXFERTYPE(ep) << UDCCONR_ET_S) & UDCCONR_ET) ep 542 drivers/usb/gadget/udc/pxa27x_udc.c | ((ep->dir_in) ? UDCCONR_ED : 0) ep 543 drivers/usb/gadget/udc/pxa27x_udc.c | ((ep->fifo_size << UDCCONR_MPS_S) & UDCCONR_MPS) ep 546 drivers/usb/gadget/udc/pxa27x_udc.c udc_ep_writel(ep, UDCCR, new_udccr); ep 616 drivers/usb/gadget/udc/pxa27x_udc.c static void ep_add_request(struct pxa_ep *ep, struct pxa27x_request *req) ep 620 drivers/usb/gadget/udc/pxa27x_udc.c ep_vdbg(ep, "req:%p, lg=%d, udccsr=0x%03x\n", req, ep 621 drivers/usb/gadget/udc/pxa27x_udc.c req->req.length, udc_ep_readl(ep, UDCCSR)); ep 624 drivers/usb/gadget/udc/pxa27x_udc.c list_add_tail(&req->queue, &ep->queue); ep 625 drivers/usb/gadget/udc/pxa27x_udc.c pio_irq_enable(ep); ep 639 drivers/usb/gadget/udc/pxa27x_udc.c static void ep_del_request(struct pxa_ep *ep, struct pxa27x_request *req) ep 643 drivers/usb/gadget/udc/pxa27x_udc.c ep_vdbg(ep, "req:%p, lg=%d, udccsr=0x%03x\n", req, ep 644 drivers/usb/gadget/udc/pxa27x_udc.c req->req.length, udc_ep_readl(ep, UDCCSR)); ep 648 drivers/usb/gadget/udc/pxa27x_udc.c if (!is_ep0(ep) && list_empty(&ep->queue)) ep 649 drivers/usb/gadget/udc/pxa27x_udc.c pio_irq_disable(ep); ep 663 drivers/usb/gadget/udc/pxa27x_udc.c static void req_done(struct pxa_ep *ep, struct pxa27x_request *req, int status, ep 668 drivers/usb/gadget/udc/pxa27x_udc.c ep_del_request(ep, req); ep 675 drivers/usb/gadget/udc/pxa27x_udc.c ep_dbg(ep, "complete req %p stat %d len %u/%u\n", ep 680 drivers/usb/gadget/udc/pxa27x_udc.c spin_unlock_irqrestore(&ep->lock, *pflags); ep 685 drivers/usb/gadget/udc/pxa27x_udc.c spin_lock_irqsave(&ep->lock, *pflags); ep 698 drivers/usb/gadget/udc/pxa27x_udc.c static void ep_end_out_req(struct pxa_ep *ep, struct pxa27x_request *req, ep 701 drivers/usb/gadget/udc/pxa27x_udc.c inc_ep_stats_reqs(ep, !USB_DIR_IN); ep 702 drivers/usb/gadget/udc/pxa27x_udc.c req_done(ep, req, 0, pflags); ep 716 drivers/usb/gadget/udc/pxa27x_udc.c static void ep0_end_out_req(struct pxa_ep *ep, struct pxa27x_request *req, ep 719 drivers/usb/gadget/udc/pxa27x_udc.c set_ep0state(ep->dev, OUT_STATUS_STAGE); ep 720 drivers/usb/gadget/udc/pxa27x_udc.c ep_end_out_req(ep, req, pflags); ep 721 drivers/usb/gadget/udc/pxa27x_udc.c ep0_idle(ep->dev); ep 734 drivers/usb/gadget/udc/pxa27x_udc.c static void ep_end_in_req(struct pxa_ep *ep, struct pxa27x_request *req, ep 737 drivers/usb/gadget/udc/pxa27x_udc.c inc_ep_stats_reqs(ep, USB_DIR_IN); ep 738 drivers/usb/gadget/udc/pxa27x_udc.c req_done(ep, req, 0, pflags); ep 752 drivers/usb/gadget/udc/pxa27x_udc.c static void ep0_end_in_req(struct pxa_ep *ep, struct pxa27x_request *req, ep 755 drivers/usb/gadget/udc/pxa27x_udc.c set_ep0state(ep->dev, IN_STATUS_STAGE); ep 756 drivers/usb/gadget/udc/pxa27x_udc.c ep_end_in_req(ep, req, pflags); ep 769 drivers/usb/gadget/udc/pxa27x_udc.c static void nuke(struct pxa_ep *ep, int status) ep 774 drivers/usb/gadget/udc/pxa27x_udc.c spin_lock_irqsave(&ep->lock, flags); ep 775 drivers/usb/gadget/udc/pxa27x_udc.c while (!list_empty(&ep->queue)) { ep 776 drivers/usb/gadget/udc/pxa27x_udc.c req = list_entry(ep->queue.next, struct pxa27x_request, queue); ep 777 drivers/usb/gadget/udc/pxa27x_udc.c req_done(ep, req, status, &flags); ep 779 drivers/usb/gadget/udc/pxa27x_udc.c spin_unlock_irqrestore(&ep->lock, flags); ep 793 drivers/usb/gadget/udc/pxa27x_udc.c static int read_packet(struct pxa_ep *ep, struct pxa27x_request *req) ep 798 drivers/usb/gadget/udc/pxa27x_udc.c bytes_ep = ep_count_bytes_remain(ep); ep 804 drivers/usb/gadget/udc/pxa27x_udc.c if (likely(!ep_is_empty(ep))) ep 810 drivers/usb/gadget/udc/pxa27x_udc.c *buf++ = udc_ep_readl(ep, UDCDR); ep 813 drivers/usb/gadget/udc/pxa27x_udc.c ep_write_UDCCSR(ep, UDCCSR_PC); ep 830 drivers/usb/gadget/udc/pxa27x_udc.c static int write_packet(struct pxa_ep *ep, struct pxa27x_request *req, ep 846 drivers/usb/gadget/udc/pxa27x_udc.c udc_ep_writel(ep, UDCDR, *buf++); ep 850 drivers/usb/gadget/udc/pxa27x_udc.c udc_ep_writeb(ep, UDCDR, *buf_8++); ep 852 drivers/usb/gadget/udc/pxa27x_udc.c ep_vdbg(ep, "length=%d+%d, udccsr=0x%03x\n", count, remain, ep 853 drivers/usb/gadget/udc/pxa27x_udc.c udc_ep_readl(ep, UDCCSR)); ep 872 drivers/usb/gadget/udc/pxa27x_udc.c static int read_fifo(struct pxa_ep *ep, struct pxa27x_request *req) ep 876 drivers/usb/gadget/udc/pxa27x_udc.c while (epout_has_pkt(ep)) { ep 877 drivers/usb/gadget/udc/pxa27x_udc.c count = read_packet(ep, req); ep 878 drivers/usb/gadget/udc/pxa27x_udc.c inc_ep_stats_bytes(ep, count, !USB_DIR_IN); ep 880 drivers/usb/gadget/udc/pxa27x_udc.c is_short = (count < ep->fifo_size); ep 881 drivers/usb/gadget/udc/pxa27x_udc.c ep_dbg(ep, "read udccsr:%03x, count:%d bytes%s req %p %d/%d\n", ep 882 drivers/usb/gadget/udc/pxa27x_udc.c udc_ep_readl(ep, UDCCSR), count, is_short ? "/S" : "", ep 907 drivers/usb/gadget/udc/pxa27x_udc.c static int write_fifo(struct pxa_ep *ep, struct pxa27x_request *req) ep 913 drivers/usb/gadget/udc/pxa27x_udc.c max = ep->fifo_size; ep 915 drivers/usb/gadget/udc/pxa27x_udc.c udccsr = udc_ep_readl(ep, UDCCSR); ep 917 drivers/usb/gadget/udc/pxa27x_udc.c ep_vdbg(ep, "Clearing Transmit Complete, udccsr=%x\n", ep 919 drivers/usb/gadget/udc/pxa27x_udc.c ep_write_UDCCSR(ep, UDCCSR_PC); ep 922 drivers/usb/gadget/udc/pxa27x_udc.c ep_vdbg(ep, "Clearing Underrun on, udccsr=%x\n", ep 924 drivers/usb/gadget/udc/pxa27x_udc.c ep_write_UDCCSR(ep, UDCCSR_TRN); ep 927 drivers/usb/gadget/udc/pxa27x_udc.c count = write_packet(ep, req, max); ep 928 drivers/usb/gadget/udc/pxa27x_udc.c inc_ep_stats_bytes(ep, count, USB_DIR_IN); ep 942 drivers/usb/gadget/udc/pxa27x_udc.c is_short = unlikely(max < ep->fifo_size); ep 946 drivers/usb/gadget/udc/pxa27x_udc.c ep_write_UDCCSR(ep, UDCCSR_SP); ep 953 drivers/usb/gadget/udc/pxa27x_udc.c } while (!ep_is_full(ep)); ep 955 drivers/usb/gadget/udc/pxa27x_udc.c ep_dbg(ep, "wrote count:%d bytes%s%s, left:%d req=%p\n", ep 973 drivers/usb/gadget/udc/pxa27x_udc.c static int read_ep0_fifo(struct pxa_ep *ep, struct pxa27x_request *req) ep 977 drivers/usb/gadget/udc/pxa27x_udc.c while (epout_has_pkt(ep)) { ep 978 drivers/usb/gadget/udc/pxa27x_udc.c count = read_packet(ep, req); ep 979 drivers/usb/gadget/udc/pxa27x_udc.c ep_write_UDCCSR(ep, UDCCSR0_OPC); ep 980 drivers/usb/gadget/udc/pxa27x_udc.c inc_ep_stats_bytes(ep, count, !USB_DIR_IN); ep 982 drivers/usb/gadget/udc/pxa27x_udc.c is_short = (count < ep->fifo_size); ep 983 drivers/usb/gadget/udc/pxa27x_udc.c ep_dbg(ep, "read udccsr:%03x, count:%d bytes%s req %p %d/%d\n", ep 984 drivers/usb/gadget/udc/pxa27x_udc.c udc_ep_readl(ep, UDCCSR), count, is_short ? "/S" : "", ep 1011 drivers/usb/gadget/udc/pxa27x_udc.c static int write_ep0_fifo(struct pxa_ep *ep, struct pxa27x_request *req) ep 1016 drivers/usb/gadget/udc/pxa27x_udc.c count = write_packet(ep, req, EP0_FIFO_SIZE); ep 1017 drivers/usb/gadget/udc/pxa27x_udc.c inc_ep_stats_bytes(ep, count, USB_DIR_IN); ep 1024 drivers/usb/gadget/udc/pxa27x_udc.c ep_write_UDCCSR(ep, UDCCSR0_IPR); ep 1026 drivers/usb/gadget/udc/pxa27x_udc.c ep_dbg(ep, "in %d bytes%s%s, %d left, req=%p, udccsr0=0x%03x\n", ep 1029 drivers/usb/gadget/udc/pxa27x_udc.c &req->req, udc_ep_readl(ep, UDCCSR)); ep 1050 drivers/usb/gadget/udc/pxa27x_udc.c struct pxa_ep *ep; ep 1068 drivers/usb/gadget/udc/pxa27x_udc.c ep = udc_usb_ep->pxa_ep; ep 1069 drivers/usb/gadget/udc/pxa27x_udc.c if (unlikely(!ep)) ep 1072 drivers/usb/gadget/udc/pxa27x_udc.c dev = ep->dev; ep 1074 drivers/usb/gadget/udc/pxa27x_udc.c ep_dbg(ep, "bogus device state\n"); ep 1081 drivers/usb/gadget/udc/pxa27x_udc.c if (unlikely(EPXFERTYPE_is_ISO(ep) ep 1082 drivers/usb/gadget/udc/pxa27x_udc.c && req->req.length > ep->fifo_size)) ep 1085 drivers/usb/gadget/udc/pxa27x_udc.c spin_lock_irqsave(&ep->lock, flags); ep 1086 drivers/usb/gadget/udc/pxa27x_udc.c recursion_detected = ep->in_handle_ep; ep 1088 drivers/usb/gadget/udc/pxa27x_udc.c is_first_req = list_empty(&ep->queue); ep 1089 drivers/usb/gadget/udc/pxa27x_udc.c ep_dbg(ep, "queue req %p(first=%s), len %d buf %p\n", ep 1093 drivers/usb/gadget/udc/pxa27x_udc.c if (!ep->enabled) { ep 1100 drivers/usb/gadget/udc/pxa27x_udc.c ep_err(ep, "refusing to queue req %p (already queued)\n", req); ep 1108 drivers/usb/gadget/udc/pxa27x_udc.c ep_add_request(ep, req); ep 1109 drivers/usb/gadget/udc/pxa27x_udc.c spin_unlock_irqrestore(&ep->lock, flags); ep 1111 drivers/usb/gadget/udc/pxa27x_udc.c if (is_ep0(ep)) { ep 1115 drivers/usb/gadget/udc/pxa27x_udc.c ep_end_in_req(ep, req, NULL); ep 1117 drivers/usb/gadget/udc/pxa27x_udc.c ep_err(ep, "got a request of %d bytes while" ep 1120 drivers/usb/gadget/udc/pxa27x_udc.c ep_del_request(ep, req); ep 1123 drivers/usb/gadget/udc/pxa27x_udc.c ep0_idle(ep->dev); ep 1126 drivers/usb/gadget/udc/pxa27x_udc.c if (!ep_is_full(ep)) ep 1127 drivers/usb/gadget/udc/pxa27x_udc.c if (write_ep0_fifo(ep, req)) ep 1128 drivers/usb/gadget/udc/pxa27x_udc.c ep0_end_in_req(ep, req, NULL); ep 1131 drivers/usb/gadget/udc/pxa27x_udc.c if ((length == 0) || !epout_has_pkt(ep)) ep 1132 drivers/usb/gadget/udc/pxa27x_udc.c if (read_ep0_fifo(ep, req)) ep 1133 drivers/usb/gadget/udc/pxa27x_udc.c ep0_end_out_req(ep, req, NULL); ep 1136 drivers/usb/gadget/udc/pxa27x_udc.c ep_err(ep, "odd state %s to send me a request\n", ep 1137 drivers/usb/gadget/udc/pxa27x_udc.c EP0_STNAME(ep->dev)); ep 1138 drivers/usb/gadget/udc/pxa27x_udc.c ep_del_request(ep, req); ep 1144 drivers/usb/gadget/udc/pxa27x_udc.c handle_ep(ep); ep 1150 drivers/usb/gadget/udc/pxa27x_udc.c spin_unlock_irqrestore(&ep->lock, flags); ep 1163 drivers/usb/gadget/udc/pxa27x_udc.c struct pxa_ep *ep; ep 1172 drivers/usb/gadget/udc/pxa27x_udc.c ep = udc_usb_ep->pxa_ep; ep 1173 drivers/usb/gadget/udc/pxa27x_udc.c if (!ep || is_ep0(ep)) ep 1176 drivers/usb/gadget/udc/pxa27x_udc.c spin_lock_irqsave(&ep->lock, flags); ep 1179 drivers/usb/gadget/udc/pxa27x_udc.c list_for_each_entry(req, &ep->queue, queue) { ep 1186 drivers/usb/gadget/udc/pxa27x_udc.c spin_unlock_irqrestore(&ep->lock, flags); ep 1188 drivers/usb/gadget/udc/pxa27x_udc.c req_done(ep, req, -ECONNRESET, NULL); ep 1201 drivers/usb/gadget/udc/pxa27x_udc.c struct pxa_ep *ep; ep 1210 drivers/usb/gadget/udc/pxa27x_udc.c ep = udc_usb_ep->pxa_ep; ep 1211 drivers/usb/gadget/udc/pxa27x_udc.c if (!ep || is_ep0(ep)) ep 1221 drivers/usb/gadget/udc/pxa27x_udc.c ep_dbg(ep, "only host can clear halt\n"); ep 1225 drivers/usb/gadget/udc/pxa27x_udc.c spin_lock_irqsave(&ep->lock, flags); ep 1228 drivers/usb/gadget/udc/pxa27x_udc.c if (ep->dir_in && (ep_is_full(ep) || !list_empty(&ep->queue))) ep 1233 drivers/usb/gadget/udc/pxa27x_udc.c ep_write_UDCCSR(ep, UDCCSR_FST | UDCCSR_FEF); ep 1234 drivers/usb/gadget/udc/pxa27x_udc.c if (is_ep0(ep)) ep 1235 drivers/usb/gadget/udc/pxa27x_udc.c set_ep0state(ep->dev, STALL); ep 1238 drivers/usb/gadget/udc/pxa27x_udc.c spin_unlock_irqrestore(&ep->lock, flags); ep 1250 drivers/usb/gadget/udc/pxa27x_udc.c struct pxa_ep *ep; ep 1256 drivers/usb/gadget/udc/pxa27x_udc.c ep = udc_usb_ep->pxa_ep; ep 1257 drivers/usb/gadget/udc/pxa27x_udc.c if (!ep || is_ep0(ep)) ep 1260 drivers/usb/gadget/udc/pxa27x_udc.c if (ep->dir_in) ep 1262 drivers/usb/gadget/udc/pxa27x_udc.c if (ep->dev->gadget.speed == USB_SPEED_UNKNOWN || ep_is_empty(ep)) ep 1265 drivers/usb/gadget/udc/pxa27x_udc.c return ep_count_bytes_remain(ep) + 1; ep 1276 drivers/usb/gadget/udc/pxa27x_udc.c struct pxa_ep *ep; ep 1283 drivers/usb/gadget/udc/pxa27x_udc.c ep = udc_usb_ep->pxa_ep; ep 1284 drivers/usb/gadget/udc/pxa27x_udc.c if (!ep || is_ep0(ep)) ep 1287 drivers/usb/gadget/udc/pxa27x_udc.c spin_lock_irqsave(&ep->lock, flags); ep 1289 drivers/usb/gadget/udc/pxa27x_udc.c if (unlikely(!list_empty(&ep->queue))) ep 1290 drivers/usb/gadget/udc/pxa27x_udc.c ep_dbg(ep, "called while queue list not empty\n"); ep 1291 drivers/usb/gadget/udc/pxa27x_udc.c ep_dbg(ep, "called\n"); ep 1294 drivers/usb/gadget/udc/pxa27x_udc.c if (!ep->dir_in) { ep 1295 drivers/usb/gadget/udc/pxa27x_udc.c while (!ep_is_empty(ep)) ep 1296 drivers/usb/gadget/udc/pxa27x_udc.c udc_ep_readl(ep, UDCDR); ep 1299 drivers/usb/gadget/udc/pxa27x_udc.c ep_write_UDCCSR(ep, ep 1301 drivers/usb/gadget/udc/pxa27x_udc.c | (EPXFERTYPE_is_ISO(ep) ? 0 : UDCCSR_SST)); ep 1304 drivers/usb/gadget/udc/pxa27x_udc.c spin_unlock_irqrestore(&ep->lock, flags); ep 1320 drivers/usb/gadget/udc/pxa27x_udc.c struct pxa_ep *ep; ep 1329 drivers/usb/gadget/udc/pxa27x_udc.c ep = udc_usb_ep->pxa_ep; ep 1330 drivers/usb/gadget/udc/pxa27x_udc.c ep_warn(ep, "usb_ep %s already enabled, doing nothing\n", ep 1333 drivers/usb/gadget/udc/pxa27x_udc.c ep = find_pxa_ep(udc_usb_ep->dev, udc_usb_ep); ep 1336 drivers/usb/gadget/udc/pxa27x_udc.c if (!ep || is_ep0(ep)) { ep 1344 drivers/usb/gadget/udc/pxa27x_udc.c || (ep->type != usb_endpoint_type(desc))) { ep 1345 drivers/usb/gadget/udc/pxa27x_udc.c ep_err(ep, "type mismatch\n"); ep 1349 drivers/usb/gadget/udc/pxa27x_udc.c if (ep->fifo_size < usb_endpoint_maxp(desc)) { ep 1350 drivers/usb/gadget/udc/pxa27x_udc.c ep_err(ep, "bad maxpacket\n"); ep 1354 drivers/usb/gadget/udc/pxa27x_udc.c udc_usb_ep->pxa_ep = ep; ep 1355 drivers/usb/gadget/udc/pxa27x_udc.c udc = ep->dev; ep 1358 drivers/usb/gadget/udc/pxa27x_udc.c ep_err(ep, "bogus device state\n"); ep 1362 drivers/usb/gadget/udc/pxa27x_udc.c ep->enabled = 1; ep 1367 drivers/usb/gadget/udc/pxa27x_udc.c ep_dbg(ep, "enabled\n"); ep 1381 drivers/usb/gadget/udc/pxa27x_udc.c struct pxa_ep *ep; ep 1388 drivers/usb/gadget/udc/pxa27x_udc.c ep = udc_usb_ep->pxa_ep; ep 1389 drivers/usb/gadget/udc/pxa27x_udc.c if (!ep || is_ep0(ep) || !list_empty(&ep->queue)) ep 1392 drivers/usb/gadget/udc/pxa27x_udc.c ep->enabled = 0; ep 1393 drivers/usb/gadget/udc/pxa27x_udc.c nuke(ep, -ESHUTDOWN); ep 1398 drivers/usb/gadget/udc/pxa27x_udc.c ep_dbg(ep, "disabled\n"); ep 1662 drivers/usb/gadget/udc/pxa27x_udc.c struct pxa_ep *ep; ep 1673 drivers/usb/gadget/udc/pxa27x_udc.c ep = &dev->pxa_ep[i]; ep 1675 drivers/usb/gadget/udc/pxa27x_udc.c ep->enabled = is_ep0(ep); ep 1676 drivers/usb/gadget/udc/pxa27x_udc.c INIT_LIST_HEAD(&ep->queue); ep 1677 drivers/usb/gadget/udc/pxa27x_udc.c spin_lock_init(&ep->lock); ep 1821 drivers/usb/gadget/udc/pxa27x_udc.c struct pxa_ep *ep = &udc->pxa_ep[0]; ep 1830 drivers/usb/gadget/udc/pxa27x_udc.c nuke(ep, -EPROTO); ep 1831 drivers/usb/gadget/udc/pxa27x_udc.c spin_lock_irqsave(&ep->lock, flags); ep 1839 drivers/usb/gadget/udc/pxa27x_udc.c if (epout_has_pkt(ep) && (ep_count_bytes_remain(ep) == 0)) ep 1840 drivers/usb/gadget/udc/pxa27x_udc.c ep_write_UDCCSR(ep, UDCCSR0_OPC); ep 1844 drivers/usb/gadget/udc/pxa27x_udc.c if (unlikely(ep_is_empty(ep))) ep 1846 drivers/usb/gadget/udc/pxa27x_udc.c u.word[i] = udc_ep_readl(ep, UDCDR); ep 1849 drivers/usb/gadget/udc/pxa27x_udc.c have_extrabytes = !ep_is_empty(ep); ep 1850 drivers/usb/gadget/udc/pxa27x_udc.c while (!ep_is_empty(ep)) { ep 1851 drivers/usb/gadget/udc/pxa27x_udc.c i = udc_ep_readl(ep, UDCDR); ep 1852 drivers/usb/gadget/udc/pxa27x_udc.c ep_err(ep, "wrong to have extra bytes for setup : 0x%08x\n", i); ep 1855 drivers/usb/gadget/udc/pxa27x_udc.c ep_dbg(ep, "SETUP %02x.%02x v%04x i%04x l%04x\n", ep 1868 drivers/usb/gadget/udc/pxa27x_udc.c ep_write_UDCCSR(ep, UDCCSR0_SA | UDCCSR0_OPC); ep 1870 drivers/usb/gadget/udc/pxa27x_udc.c spin_unlock_irqrestore(&ep->lock, flags); ep 1872 drivers/usb/gadget/udc/pxa27x_udc.c spin_lock_irqsave(&ep->lock, flags); ep 1876 drivers/usb/gadget/udc/pxa27x_udc.c spin_unlock_irqrestore(&ep->lock, flags); ep 1879 drivers/usb/gadget/udc/pxa27x_udc.c ep_dbg(ep, "protocol STALL, udccsr0=%03x err %d\n", ep 1880 drivers/usb/gadget/udc/pxa27x_udc.c udc_ep_readl(ep, UDCCSR), i); ep 1881 drivers/usb/gadget/udc/pxa27x_udc.c ep_write_UDCCSR(ep, UDCCSR0_FST | UDCCSR0_FTF); ep 1937 drivers/usb/gadget/udc/pxa27x_udc.c struct pxa_ep *ep = &udc->pxa_ep[0]; ep 1941 drivers/usb/gadget/udc/pxa27x_udc.c if (!list_empty(&ep->queue)) ep 1942 drivers/usb/gadget/udc/pxa27x_udc.c req = list_entry(ep->queue.next, struct pxa27x_request, queue); ep 1944 drivers/usb/gadget/udc/pxa27x_udc.c udccsr0 = udc_ep_readl(ep, UDCCSR); ep 1945 drivers/usb/gadget/udc/pxa27x_udc.c ep_dbg(ep, "state=%s, req=%p, udccsr0=0x%03x, udcbcr=%d, irq_msk=%x\n", ep 1946 drivers/usb/gadget/udc/pxa27x_udc.c EP0_STNAME(udc), req, udccsr0, udc_ep_readl(ep, UDCBCR), ep 1950 drivers/usb/gadget/udc/pxa27x_udc.c ep_dbg(ep, "clearing stall status\n"); ep 1951 drivers/usb/gadget/udc/pxa27x_udc.c nuke(ep, -EPIPE); ep 1952 drivers/usb/gadget/udc/pxa27x_udc.c ep_write_UDCCSR(ep, UDCCSR0_SST); ep 1957 drivers/usb/gadget/udc/pxa27x_udc.c nuke(ep, 0); ep 1976 drivers/usb/gadget/udc/pxa27x_udc.c if (epout_has_pkt(ep)) ep 1977 drivers/usb/gadget/udc/pxa27x_udc.c ep_write_UDCCSR(ep, UDCCSR0_OPC); ep 1978 drivers/usb/gadget/udc/pxa27x_udc.c if (req && !ep_is_full(ep)) ep 1979 drivers/usb/gadget/udc/pxa27x_udc.c completed = write_ep0_fifo(ep, req); ep 1981 drivers/usb/gadget/udc/pxa27x_udc.c ep0_end_in_req(ep, req, NULL); ep 1984 drivers/usb/gadget/udc/pxa27x_udc.c if (epout_has_pkt(ep) && req) ep 1985 drivers/usb/gadget/udc/pxa27x_udc.c completed = read_ep0_fifo(ep, req); ep 1987 drivers/usb/gadget/udc/pxa27x_udc.c ep0_end_out_req(ep, req, NULL); ep 1990 drivers/usb/gadget/udc/pxa27x_udc.c ep_write_UDCCSR(ep, UDCCSR0_FST); ep 2003 drivers/usb/gadget/udc/pxa27x_udc.c ep_warn(ep, "should never get in %s state here!!!\n", ep 2004 drivers/usb/gadget/udc/pxa27x_udc.c EP0_STNAME(ep->dev)); ep 2019 drivers/usb/gadget/udc/pxa27x_udc.c static void handle_ep(struct pxa_ep *ep) ep 2024 drivers/usb/gadget/udc/pxa27x_udc.c int is_in = ep->dir_in; ep 2028 drivers/usb/gadget/udc/pxa27x_udc.c spin_lock_irqsave(&ep->lock, flags); ep 2029 drivers/usb/gadget/udc/pxa27x_udc.c if (ep->in_handle_ep) ep 2031 drivers/usb/gadget/udc/pxa27x_udc.c ep->in_handle_ep = 1; ep 2035 drivers/usb/gadget/udc/pxa27x_udc.c udccsr = udc_ep_readl(ep, UDCCSR); ep 2037 drivers/usb/gadget/udc/pxa27x_udc.c if (likely(!list_empty(&ep->queue))) ep 2038 drivers/usb/gadget/udc/pxa27x_udc.c req = list_entry(ep->queue.next, ep 2043 drivers/usb/gadget/udc/pxa27x_udc.c ep_dbg(ep, "req:%p, udccsr 0x%03x loop=%d\n", ep 2047 drivers/usb/gadget/udc/pxa27x_udc.c udc_ep_writel(ep, UDCCSR, ep 2053 drivers/usb/gadget/udc/pxa27x_udc.c if (likely(!ep_is_full(ep))) ep 2054 drivers/usb/gadget/udc/pxa27x_udc.c completed = write_fifo(ep, req); ep 2056 drivers/usb/gadget/udc/pxa27x_udc.c if (likely(epout_has_pkt(ep))) ep 2057 drivers/usb/gadget/udc/pxa27x_udc.c completed = read_fifo(ep, req); ep 2062 drivers/usb/gadget/udc/pxa27x_udc.c ep_end_in_req(ep, req, &flags); ep 2064 drivers/usb/gadget/udc/pxa27x_udc.c ep_end_out_req(ep, req, &flags); ep 2068 drivers/usb/gadget/udc/pxa27x_udc.c ep->in_handle_ep = 0; ep 2070 drivers/usb/gadget/udc/pxa27x_udc.c spin_unlock_irqrestore(&ep->lock, flags); ep 2141 drivers/usb/gadget/udc/pxa27x_udc.c struct pxa_ep *ep; ep 2161 drivers/usb/gadget/udc/pxa27x_udc.c ep = &udc->pxa_ep[i]; ep 2162 drivers/usb/gadget/udc/pxa27x_udc.c ep->stats.irqs++; ep 2163 drivers/usb/gadget/udc/pxa27x_udc.c handle_ep(ep); ep 2174 drivers/usb/gadget/udc/pxa27x_udc.c ep = &udc->pxa_ep[i]; ep 2175 drivers/usb/gadget/udc/pxa27x_udc.c ep->stats.irqs++; ep 2176 drivers/usb/gadget/udc/pxa27x_udc.c handle_ep(ep); ep 2243 drivers/usb/gadget/udc/pxa27x_udc.c struct pxa_ep *ep = &udc->pxa_ep[0]; ep 2256 drivers/usb/gadget/udc/pxa27x_udc.c nuke(ep, -EPROTO); ep 2257 drivers/usb/gadget/udc/pxa27x_udc.c ep_write_UDCCSR(ep, UDCCSR0_FTF | UDCCSR0_OPC); ep 2498 drivers/usb/gadget/udc/pxa27x_udc.c struct pxa_ep *ep; ep 2500 drivers/usb/gadget/udc/pxa27x_udc.c ep = &udc->pxa_ep[0]; ep 2501 drivers/usb/gadget/udc/pxa27x_udc.c udc->udccsr0 = udc_ep_readl(ep, UDCCSR); ep 2523 drivers/usb/gadget/udc/pxa27x_udc.c struct pxa_ep *ep; ep 2525 drivers/usb/gadget/udc/pxa27x_udc.c ep = &udc->pxa_ep[0]; ep 2526 drivers/usb/gadget/udc/pxa27x_udc.c udc_ep_writel(ep, UDCCSR, udc->udccsr0 & (UDCCSR0_FST | UDCCSR0_DME)); ep 174 drivers/usb/gadget/udc/pxa27x_udc.h #define ofs_UDCCR(ep) (UDCCRn(ep->idx)) ep 175 drivers/usb/gadget/udc/pxa27x_udc.h #define ofs_UDCCSR(ep) (UDCCSRn(ep->idx)) ep 176 drivers/usb/gadget/udc/pxa27x_udc.h #define ofs_UDCBCR(ep) (UDCBCRn(ep->idx)) ep 177 drivers/usb/gadget/udc/pxa27x_udc.h #define ofs_UDCDR(ep) (UDCDRn(ep->idx)) ep 180 drivers/usb/gadget/udc/pxa27x_udc.h #define udc_ep_readl(ep, reg) \ ep 181 drivers/usb/gadget/udc/pxa27x_udc.h __raw_readl((ep)->dev->regs + ofs_##reg(ep)) ep 182 drivers/usb/gadget/udc/pxa27x_udc.h #define udc_ep_writel(ep, reg, value) \ ep 183 drivers/usb/gadget/udc/pxa27x_udc.h __raw_writel((value), ep->dev->regs + ofs_##reg(ep)) ep 184 drivers/usb/gadget/udc/pxa27x_udc.h #define udc_ep_readb(ep, reg) \ ep 185 drivers/usb/gadget/udc/pxa27x_udc.h __raw_readb((ep)->dev->regs + ofs_##reg(ep)) ep 186 drivers/usb/gadget/udc/pxa27x_udc.h #define udc_ep_writeb(ep, reg, value) \ ep 187 drivers/usb/gadget/udc/pxa27x_udc.h __raw_writeb((value), ep->dev->regs + ofs_##reg(ep)) ep 198 drivers/usb/gadget/udc/pxa27x_udc.h #define EPIDX(ep) (ep->idx) ep 199 drivers/usb/gadget/udc/pxa27x_udc.h #define EPADDR(ep) (ep->addr) ep 200 drivers/usb/gadget/udc/pxa27x_udc.h #define EPXFERTYPE(ep) (ep->type) ep 201 drivers/usb/gadget/udc/pxa27x_udc.h #define EPNAME(ep) (ep->name) ep 202 drivers/usb/gadget/udc/pxa27x_udc.h #define is_ep0(ep) (!ep->idx) ep 203 drivers/usb/gadget/udc/pxa27x_udc.h #define EPXFERTYPE_is_ISO(ep) (EPXFERTYPE(ep) == USB_ENDPOINT_XFER_ISOC) ep 491 drivers/usb/gadget/udc/pxa27x_udc.h #define ep_dbg(ep, fmt, arg...) \ ep 492 drivers/usb/gadget/udc/pxa27x_udc.h dev_dbg(ep->dev->dev, "%s:%s: " fmt, EPNAME(ep), __func__, ## arg) ep 493 drivers/usb/gadget/udc/pxa27x_udc.h #define ep_vdbg(ep, fmt, arg...) \ ep 494 drivers/usb/gadget/udc/pxa27x_udc.h dev_vdbg(ep->dev->dev, "%s:%s: " fmt, EPNAME(ep), __func__, ## arg) ep 495 drivers/usb/gadget/udc/pxa27x_udc.h #define ep_err(ep, fmt, arg...) \ ep 496 drivers/usb/gadget/udc/pxa27x_udc.h dev_err(ep->dev->dev, "%s:%s: " fmt, EPNAME(ep), __func__, ## arg) ep 497 drivers/usb/gadget/udc/pxa27x_udc.h #define ep_info(ep, fmt, arg...) \ ep 498 drivers/usb/gadget/udc/pxa27x_udc.h dev_info(ep->dev->dev, "%s:%s: " fmt, EPNAME(ep), __func__, ## arg) ep 499 drivers/usb/gadget/udc/pxa27x_udc.h #define ep_warn(ep, fmt, arg...) \ ep 500 drivers/usb/gadget/udc/pxa27x_udc.h dev_warn(ep->dev->dev, "%s:%s:" fmt, EPNAME(ep), __func__, ## arg) ep 35 drivers/usb/gadget/udc/r8a66597-udc.c static void irq_ep0_write(struct r8a66597_ep *ep, struct r8a66597_request *req); ep 36 drivers/usb/gadget/udc/r8a66597-udc.c static void irq_packet_write(struct r8a66597_ep *ep, ep 41 drivers/usb/gadget/udc/r8a66597-udc.c static void transfer_complete(struct r8a66597_ep *ep, ep 98 drivers/usb/gadget/udc/r8a66597-udc.c INIT_LIST_HEAD(&r8a66597->ep[0].queue); ep 298 drivers/usb/gadget/udc/r8a66597-udc.c struct r8a66597_ep *ep = r8a66597->pipenum2ep[pipenum]; ep 300 drivers/usb/gadget/udc/r8a66597-udc.c if (ep->use_dma) ep 301 drivers/usb/gadget/udc/r8a66597-udc.c r8a66597_bclr(r8a66597, DREQE, ep->fifosel); ep 303 drivers/usb/gadget/udc/r8a66597-udc.c r8a66597_mdfy(r8a66597, pipenum, CURPIPE, ep->fifosel); ep 307 drivers/usb/gadget/udc/r8a66597-udc.c if (r8a66597_is_sudmac(r8a66597) && ep->use_dma) ep 308 drivers/usb/gadget/udc/r8a66597-udc.c r8a66597_bclr(r8a66597, mbw_value(r8a66597), ep->fifosel); ep 310 drivers/usb/gadget/udc/r8a66597-udc.c r8a66597_bset(r8a66597, mbw_value(r8a66597), ep->fifosel); ep 312 drivers/usb/gadget/udc/r8a66597-udc.c if (ep->use_dma) ep 313 drivers/usb/gadget/udc/r8a66597-udc.c r8a66597_bset(r8a66597, DREQE, ep->fifosel); ep 391 drivers/usb/gadget/udc/r8a66597-udc.c static void pipe_initialize(struct r8a66597_ep *ep) ep 393 drivers/usb/gadget/udc/r8a66597-udc.c struct r8a66597 *r8a66597 = ep->r8a66597; ep 395 drivers/usb/gadget/udc/r8a66597-udc.c r8a66597_mdfy(r8a66597, 0, CURPIPE, ep->fifosel); ep 397 drivers/usb/gadget/udc/r8a66597-udc.c r8a66597_write(r8a66597, ACLRM, ep->pipectr); ep 398 drivers/usb/gadget/udc/r8a66597-udc.c r8a66597_write(r8a66597, 0, ep->pipectr); ep 399 drivers/usb/gadget/udc/r8a66597-udc.c r8a66597_write(r8a66597, SQCLR, ep->pipectr); ep 400 drivers/usb/gadget/udc/r8a66597-udc.c if (ep->use_dma) { ep 401 drivers/usb/gadget/udc/r8a66597-udc.c r8a66597_mdfy(r8a66597, ep->pipenum, CURPIPE, ep->fifosel); ep 405 drivers/usb/gadget/udc/r8a66597-udc.c r8a66597_bset(r8a66597, mbw_value(r8a66597), ep->fifosel); ep 410 drivers/usb/gadget/udc/r8a66597-udc.c struct r8a66597_ep *ep, ep 414 drivers/usb/gadget/udc/r8a66597-udc.c ep->use_dma = 0; ep 415 drivers/usb/gadget/udc/r8a66597-udc.c ep->fifoaddr = CFIFO; ep 416 drivers/usb/gadget/udc/r8a66597-udc.c ep->fifosel = CFIFOSEL; ep 417 drivers/usb/gadget/udc/r8a66597-udc.c ep->fifoctr = CFIFOCTR; ep 419 drivers/usb/gadget/udc/r8a66597-udc.c ep->pipectr = get_pipectr_addr(pipenum); ep 421 drivers/usb/gadget/udc/r8a66597-udc.c ep->pipetre = get_pipetre_addr(pipenum); ep 422 drivers/usb/gadget/udc/r8a66597-udc.c ep->pipetrn = get_pipetrn_addr(pipenum); ep 424 drivers/usb/gadget/udc/r8a66597-udc.c ep->pipetre = 0; ep 425 drivers/usb/gadget/udc/r8a66597-udc.c ep->pipetrn = 0; ep 427 drivers/usb/gadget/udc/r8a66597-udc.c ep->pipenum = pipenum; ep 428 drivers/usb/gadget/udc/r8a66597-udc.c ep->ep.maxpacket = usb_endpoint_maxp(desc); ep 429 drivers/usb/gadget/udc/r8a66597-udc.c r8a66597->pipenum2ep[pipenum] = ep; ep 431 drivers/usb/gadget/udc/r8a66597-udc.c = ep; ep 432 drivers/usb/gadget/udc/r8a66597-udc.c INIT_LIST_HEAD(&ep->queue); ep 435 drivers/usb/gadget/udc/r8a66597-udc.c static void r8a66597_ep_release(struct r8a66597_ep *ep) ep 437 drivers/usb/gadget/udc/r8a66597-udc.c struct r8a66597 *r8a66597 = ep->r8a66597; ep 438 drivers/usb/gadget/udc/r8a66597-udc.c u16 pipenum = ep->pipenum; ep 443 drivers/usb/gadget/udc/r8a66597-udc.c if (ep->use_dma) ep 445 drivers/usb/gadget/udc/r8a66597-udc.c ep->pipenum = 0; ep 446 drivers/usb/gadget/udc/r8a66597-udc.c ep->busy = 0; ep 447 drivers/usb/gadget/udc/r8a66597-udc.c ep->use_dma = 0; ep 450 drivers/usb/gadget/udc/r8a66597-udc.c static int alloc_pipe_config(struct r8a66597_ep *ep, ep 453 drivers/usb/gadget/udc/r8a66597-udc.c struct r8a66597 *r8a66597 = ep->r8a66597; ep 459 drivers/usb/gadget/udc/r8a66597-udc.c ep->ep.desc = desc; ep 461 drivers/usb/gadget/udc/r8a66597-udc.c if (ep->pipenum) /* already allocated pipe */ ep 507 drivers/usb/gadget/udc/r8a66597-udc.c ep->type = info.type; ep 528 drivers/usb/gadget/udc/r8a66597-udc.c r8a66597_ep_setting(r8a66597, ep, desc, info.pipe, dma); ep 529 drivers/usb/gadget/udc/r8a66597-udc.c pipe_initialize(ep); ep 534 drivers/usb/gadget/udc/r8a66597-udc.c static int free_pipe_config(struct r8a66597_ep *ep) ep 536 drivers/usb/gadget/udc/r8a66597-udc.c struct r8a66597 *r8a66597 = ep->r8a66597; ep 539 drivers/usb/gadget/udc/r8a66597-udc.c info.pipe = ep->pipenum; ep 540 drivers/usb/gadget/udc/r8a66597-udc.c info.type = ep->type; ep 542 drivers/usb/gadget/udc/r8a66597-udc.c r8a66597_ep_release(ep); ep 563 drivers/usb/gadget/udc/r8a66597-udc.c r8a66597->ep[0].internal_ccpl = ccpl; ep 568 drivers/usb/gadget/udc/r8a66597-udc.c static void start_ep0_write(struct r8a66597_ep *ep, ep 571 drivers/usb/gadget/udc/r8a66597-udc.c struct r8a66597 *r8a66597 = ep->r8a66597; ep 573 drivers/usb/gadget/udc/r8a66597-udc.c pipe_change(r8a66597, ep->pipenum); ep 575 drivers/usb/gadget/udc/r8a66597-udc.c r8a66597_write(r8a66597, BCLR, ep->fifoctr); ep 577 drivers/usb/gadget/udc/r8a66597-udc.c r8a66597_bset(r8a66597, BVAL, ep->fifoctr); ep 579 drivers/usb/gadget/udc/r8a66597-udc.c transfer_complete(ep, req, 0); ep 582 drivers/usb/gadget/udc/r8a66597-udc.c irq_ep0_write(ep, req); ep 599 drivers/usb/gadget/udc/r8a66597-udc.c struct r8a66597_ep *ep = r8a66597->pipenum2ep[pipenum]; ep 623 drivers/usb/gadget/udc/r8a66597-udc.c r8a66597_bset(r8a66597, ACLRM, ep->pipectr); ep 624 drivers/usb/gadget/udc/r8a66597-udc.c r8a66597_bclr(r8a66597, ACLRM, ep->pipectr); ep 630 drivers/usb/gadget/udc/r8a66597-udc.c struct r8a66597_ep *ep, ep 639 drivers/usb/gadget/udc/r8a66597-udc.c if (!is_bulk_pipe(ep->pipenum)) ep 648 drivers/usb/gadget/udc/r8a66597-udc.c if (ep->ep.desc->bEndpointAddress & USB_DIR_IN) { ep 652 drivers/usb/gadget/udc/r8a66597-udc.c change_bfre_mode(r8a66597, ep->pipenum, 1); ep 656 drivers/usb/gadget/udc/r8a66597-udc.c ep->use_dma = 1; ep 657 drivers/usb/gadget/udc/r8a66597-udc.c ep->dma = dma; ep 658 drivers/usb/gadget/udc/r8a66597-udc.c ep->fifoaddr = D0FIFO; ep 659 drivers/usb/gadget/udc/r8a66597-udc.c ep->fifosel = D0FIFOSEL; ep 660 drivers/usb/gadget/udc/r8a66597-udc.c ep->fifoctr = D0FIFOCTR; ep 667 drivers/usb/gadget/udc/r8a66597-udc.c struct r8a66597_ep *ep, ep 673 drivers/usb/gadget/udc/r8a66597-udc.c usb_gadget_unmap_request(&r8a66597->gadget, &req->req, ep->dma->dir); ep 675 drivers/usb/gadget/udc/r8a66597-udc.c r8a66597_bclr(r8a66597, DREQE, ep->fifosel); ep 676 drivers/usb/gadget/udc/r8a66597-udc.c r8a66597_change_curpipe(r8a66597, 0, 0, ep->fifosel); ep 678 drivers/usb/gadget/udc/r8a66597-udc.c ep->dma->used = 0; ep 679 drivers/usb/gadget/udc/r8a66597-udc.c ep->use_dma = 0; ep 680 drivers/usb/gadget/udc/r8a66597-udc.c ep->fifoaddr = CFIFO; ep 681 drivers/usb/gadget/udc/r8a66597-udc.c ep->fifosel = CFIFOSEL; ep 682 drivers/usb/gadget/udc/r8a66597-udc.c ep->fifoctr = CFIFOCTR; ep 685 drivers/usb/gadget/udc/r8a66597-udc.c static void sudmac_start(struct r8a66597 *r8a66597, struct r8a66597_ep *ep, ep 698 drivers/usb/gadget/udc/r8a66597-udc.c static void start_packet_write(struct r8a66597_ep *ep, ep 701 drivers/usb/gadget/udc/r8a66597-udc.c struct r8a66597 *r8a66597 = ep->r8a66597; ep 704 drivers/usb/gadget/udc/r8a66597-udc.c pipe_change(r8a66597, ep->pipenum); ep 705 drivers/usb/gadget/udc/r8a66597-udc.c disable_irq_empty(r8a66597, ep->pipenum); ep 706 drivers/usb/gadget/udc/r8a66597-udc.c pipe_start(r8a66597, ep->pipenum); ep 709 drivers/usb/gadget/udc/r8a66597-udc.c transfer_complete(ep, req, 0); ep 711 drivers/usb/gadget/udc/r8a66597-udc.c r8a66597_write(r8a66597, ~(1 << ep->pipenum), BRDYSTS); ep 712 drivers/usb/gadget/udc/r8a66597-udc.c if (sudmac_alloc_channel(r8a66597, ep, req) < 0) { ep 714 drivers/usb/gadget/udc/r8a66597-udc.c pipe_change(r8a66597, ep->pipenum); ep 715 drivers/usb/gadget/udc/r8a66597-udc.c disable_irq_empty(r8a66597, ep->pipenum); ep 716 drivers/usb/gadget/udc/r8a66597-udc.c pipe_start(r8a66597, ep->pipenum); ep 717 drivers/usb/gadget/udc/r8a66597-udc.c tmp = r8a66597_read(r8a66597, ep->fifoctr); ep 719 drivers/usb/gadget/udc/r8a66597-udc.c pipe_irq_enable(r8a66597, ep->pipenum); ep 721 drivers/usb/gadget/udc/r8a66597-udc.c irq_packet_write(ep, req); ep 724 drivers/usb/gadget/udc/r8a66597-udc.c pipe_change(r8a66597, ep->pipenum); ep 725 drivers/usb/gadget/udc/r8a66597-udc.c disable_irq_nrdy(r8a66597, ep->pipenum); ep 726 drivers/usb/gadget/udc/r8a66597-udc.c pipe_start(r8a66597, ep->pipenum); ep 727 drivers/usb/gadget/udc/r8a66597-udc.c enable_irq_nrdy(r8a66597, ep->pipenum); ep 728 drivers/usb/gadget/udc/r8a66597-udc.c sudmac_start(r8a66597, ep, req); ep 733 drivers/usb/gadget/udc/r8a66597-udc.c static void start_packet_read(struct r8a66597_ep *ep, ep 736 drivers/usb/gadget/udc/r8a66597-udc.c struct r8a66597 *r8a66597 = ep->r8a66597; ep 737 drivers/usb/gadget/udc/r8a66597-udc.c u16 pipenum = ep->pipenum; ep 739 drivers/usb/gadget/udc/r8a66597-udc.c if (ep->pipenum == 0) { ep 741 drivers/usb/gadget/udc/r8a66597-udc.c r8a66597_write(r8a66597, BCLR, ep->fifoctr); ep 746 drivers/usb/gadget/udc/r8a66597-udc.c if (ep->pipetre) { ep 748 drivers/usb/gadget/udc/r8a66597-udc.c r8a66597_write(r8a66597, TRCLR, ep->pipetre); ep 750 drivers/usb/gadget/udc/r8a66597-udc.c DIV_ROUND_UP(req->req.length, ep->ep.maxpacket), ep 751 drivers/usb/gadget/udc/r8a66597-udc.c ep->pipetrn); ep 752 drivers/usb/gadget/udc/r8a66597-udc.c r8a66597_bset(r8a66597, TRENB, ep->pipetre); ep 755 drivers/usb/gadget/udc/r8a66597-udc.c if (sudmac_alloc_channel(r8a66597, ep, req) < 0) { ep 757 drivers/usb/gadget/udc/r8a66597-udc.c change_bfre_mode(r8a66597, ep->pipenum, 0); ep 762 drivers/usb/gadget/udc/r8a66597-udc.c sudmac_start(r8a66597, ep, req); ep 768 drivers/usb/gadget/udc/r8a66597-udc.c static void start_packet(struct r8a66597_ep *ep, struct r8a66597_request *req) ep 770 drivers/usb/gadget/udc/r8a66597-udc.c if (ep->ep.desc->bEndpointAddress & USB_DIR_IN) ep 771 drivers/usb/gadget/udc/r8a66597-udc.c start_packet_write(ep, req); ep 773 drivers/usb/gadget/udc/r8a66597-udc.c start_packet_read(ep, req); ep 776 drivers/usb/gadget/udc/r8a66597-udc.c static void start_ep0(struct r8a66597_ep *ep, struct r8a66597_request *req) ep 780 drivers/usb/gadget/udc/r8a66597-udc.c ctsq = r8a66597_read(ep->r8a66597, INTSTS0) & CTSQ; ep 784 drivers/usb/gadget/udc/r8a66597-udc.c start_ep0_write(ep, req); ep 787 drivers/usb/gadget/udc/r8a66597-udc.c start_packet_read(ep, req); ep 791 drivers/usb/gadget/udc/r8a66597-udc.c control_end(ep->r8a66597, 0); ep 794 drivers/usb/gadget/udc/r8a66597-udc.c dev_err(r8a66597_to_dev(ep->r8a66597), ep 892 drivers/usb/gadget/udc/r8a66597-udc.c static struct r8a66597_request *get_request_from_ep(struct r8a66597_ep *ep) ep 894 drivers/usb/gadget/udc/r8a66597-udc.c return list_entry(ep->queue.next, struct r8a66597_request, queue); ep 898 drivers/usb/gadget/udc/r8a66597-udc.c static void transfer_complete(struct r8a66597_ep *ep, ep 905 drivers/usb/gadget/udc/r8a66597-udc.c if (unlikely(ep->pipenum == 0)) { ep 906 drivers/usb/gadget/udc/r8a66597-udc.c if (ep->internal_ccpl) { ep 907 drivers/usb/gadget/udc/r8a66597-udc.c ep->internal_ccpl = 0; ep 913 drivers/usb/gadget/udc/r8a66597-udc.c if (ep->r8a66597->gadget.speed == USB_SPEED_UNKNOWN) ep 918 drivers/usb/gadget/udc/r8a66597-udc.c if (!list_empty(&ep->queue)) ep 921 drivers/usb/gadget/udc/r8a66597-udc.c if (ep->use_dma) ep 922 drivers/usb/gadget/udc/r8a66597-udc.c sudmac_free_channel(ep->r8a66597, ep, req); ep 924 drivers/usb/gadget/udc/r8a66597-udc.c spin_unlock(&ep->r8a66597->lock); ep 925 drivers/usb/gadget/udc/r8a66597-udc.c usb_gadget_giveback_request(&ep->ep, &req->req); ep 926 drivers/usb/gadget/udc/r8a66597-udc.c spin_lock(&ep->r8a66597->lock); ep 929 drivers/usb/gadget/udc/r8a66597-udc.c req = get_request_from_ep(ep); ep 930 drivers/usb/gadget/udc/r8a66597-udc.c if (ep->ep.desc) ep 931 drivers/usb/gadget/udc/r8a66597-udc.c start_packet(ep, req); ep 935 drivers/usb/gadget/udc/r8a66597-udc.c static void irq_ep0_write(struct r8a66597_ep *ep, struct r8a66597_request *req) ep 942 drivers/usb/gadget/udc/r8a66597-udc.c u16 pipenum = ep->pipenum; ep 943 drivers/usb/gadget/udc/r8a66597-udc.c struct r8a66597 *r8a66597 = ep->r8a66597; ep 946 drivers/usb/gadget/udc/r8a66597-udc.c r8a66597_bset(r8a66597, ISEL, ep->fifosel); ep 950 drivers/usb/gadget/udc/r8a66597-udc.c tmp = r8a66597_read(r8a66597, ep->fifoctr); ep 968 drivers/usb/gadget/udc/r8a66597-udc.c r8a66597_write_fifo(r8a66597, ep, buf, size); ep 969 drivers/usb/gadget/udc/r8a66597-udc.c if ((size == 0) || ((size % ep->ep.maxpacket) != 0)) ep 970 drivers/usb/gadget/udc/r8a66597-udc.c r8a66597_bset(r8a66597, BVAL, ep->fifoctr); ep 978 drivers/usb/gadget/udc/r8a66597-udc.c || (size % ep->ep.maxpacket) ep 989 drivers/usb/gadget/udc/r8a66597-udc.c static void irq_packet_write(struct r8a66597_ep *ep, ep 996 drivers/usb/gadget/udc/r8a66597-udc.c u16 pipenum = ep->pipenum; ep 997 drivers/usb/gadget/udc/r8a66597-udc.c struct r8a66597 *r8a66597 = ep->r8a66597; ep 1000 drivers/usb/gadget/udc/r8a66597-udc.c tmp = r8a66597_read(r8a66597, ep->fifoctr); ep 1016 drivers/usb/gadget/udc/r8a66597-udc.c r8a66597_write_fifo(r8a66597, ep, buf, size); ep 1018 drivers/usb/gadget/udc/r8a66597-udc.c || ((size % ep->ep.maxpacket) != 0) ep 1019 drivers/usb/gadget/udc/r8a66597-udc.c || ((bufsize != ep->ep.maxpacket) ep 1021 drivers/usb/gadget/udc/r8a66597-udc.c r8a66597_bset(r8a66597, BVAL, ep->fifoctr); ep 1028 drivers/usb/gadget/udc/r8a66597-udc.c || (size % ep->ep.maxpacket) ep 1038 drivers/usb/gadget/udc/r8a66597-udc.c static void irq_packet_read(struct r8a66597_ep *ep, ep 1045 drivers/usb/gadget/udc/r8a66597-udc.c u16 pipenum = ep->pipenum; ep 1046 drivers/usb/gadget/udc/r8a66597-udc.c struct r8a66597 *r8a66597 = ep->r8a66597; ep 1050 drivers/usb/gadget/udc/r8a66597-udc.c tmp = r8a66597_read(r8a66597, ep->fifoctr); ep 1075 drivers/usb/gadget/udc/r8a66597-udc.c || (size % ep->ep.maxpacket) ep 1085 drivers/usb/gadget/udc/r8a66597-udc.c r8a66597_write(r8a66597, BCLR, ep->fifoctr); ep 1087 drivers/usb/gadget/udc/r8a66597-udc.c r8a66597_read_fifo(r8a66597, ep->fifoaddr, buf, size); ep 1091 drivers/usb/gadget/udc/r8a66597-udc.c if ((ep->pipenum != 0) && finish) ep 1092 drivers/usb/gadget/udc/r8a66597-udc.c transfer_complete(ep, req, 0); ep 1099 drivers/usb/gadget/udc/r8a66597-udc.c struct r8a66597_ep *ep; ep 1106 drivers/usb/gadget/udc/r8a66597-udc.c ep = &r8a66597->ep[0]; ep 1107 drivers/usb/gadget/udc/r8a66597-udc.c req = get_request_from_ep(ep); ep 1108 drivers/usb/gadget/udc/r8a66597-udc.c irq_packet_read(ep, req); ep 1114 drivers/usb/gadget/udc/r8a66597-udc.c ep = r8a66597->pipenum2ep[pipenum]; ep 1115 drivers/usb/gadget/udc/r8a66597-udc.c req = get_request_from_ep(ep); ep 1116 drivers/usb/gadget/udc/r8a66597-udc.c if (ep->ep.desc->bEndpointAddress & USB_DIR_IN) ep 1117 drivers/usb/gadget/udc/r8a66597-udc.c irq_packet_write(ep, req); ep 1119 drivers/usb/gadget/udc/r8a66597-udc.c irq_packet_read(ep, req); ep 1130 drivers/usb/gadget/udc/r8a66597-udc.c struct r8a66597_ep *ep; ep 1136 drivers/usb/gadget/udc/r8a66597-udc.c ep = &r8a66597->ep[0]; ep 1137 drivers/usb/gadget/udc/r8a66597-udc.c req = get_request_from_ep(ep); ep 1138 drivers/usb/gadget/udc/r8a66597-udc.c irq_ep0_write(ep, req); ep 1149 drivers/usb/gadget/udc/r8a66597-udc.c ep = r8a66597->pipenum2ep[pipenum]; ep 1150 drivers/usb/gadget/udc/r8a66597-udc.c req = get_request_from_ep(ep); ep 1151 drivers/usb/gadget/udc/r8a66597-udc.c if (!list_empty(&ep->queue)) ep 1152 drivers/usb/gadget/udc/r8a66597-udc.c transfer_complete(ep, req, 0); ep 1163 drivers/usb/gadget/udc/r8a66597-udc.c struct r8a66597_ep *ep; ep 1176 drivers/usb/gadget/udc/r8a66597-udc.c ep = r8a66597->epaddr2ep[w_index & USB_ENDPOINT_NUMBER_MASK]; ep 1177 drivers/usb/gadget/udc/r8a66597-udc.c pid = control_reg_get_pid(r8a66597, ep->pipenum); ep 1208 drivers/usb/gadget/udc/r8a66597-udc.c struct r8a66597_ep *ep; ep 1212 drivers/usb/gadget/udc/r8a66597-udc.c ep = r8a66597->epaddr2ep[w_index & USB_ENDPOINT_NUMBER_MASK]; ep 1213 drivers/usb/gadget/udc/r8a66597-udc.c if (!ep->wedge) { ep 1214 drivers/usb/gadget/udc/r8a66597-udc.c pipe_stop(r8a66597, ep->pipenum); ep 1215 drivers/usb/gadget/udc/r8a66597-udc.c control_reg_sqclr(r8a66597, ep->pipenum); ep 1217 drivers/usb/gadget/udc/r8a66597-udc.c usb_ep_clear_halt(&ep->ep); ep 1223 drivers/usb/gadget/udc/r8a66597-udc.c req = get_request_from_ep(ep); ep 1224 drivers/usb/gadget/udc/r8a66597-udc.c if (ep->busy) { ep 1225 drivers/usb/gadget/udc/r8a66597-udc.c ep->busy = 0; ep 1226 drivers/usb/gadget/udc/r8a66597-udc.c if (list_empty(&ep->queue)) ep 1228 drivers/usb/gadget/udc/r8a66597-udc.c start_packet(ep, req); ep 1229 drivers/usb/gadget/udc/r8a66597-udc.c } else if (!list_empty(&ep->queue)) ep 1230 drivers/usb/gadget/udc/r8a66597-udc.c pipe_start(r8a66597, ep->pipenum); ep 1269 drivers/usb/gadget/udc/r8a66597-udc.c struct r8a66597_ep *ep; ep 1272 drivers/usb/gadget/udc/r8a66597-udc.c ep = r8a66597->epaddr2ep[w_index & USB_ENDPOINT_NUMBER_MASK]; ep 1273 drivers/usb/gadget/udc/r8a66597-udc.c pipe_stall(r8a66597, ep->pipenum); ep 1370 drivers/usb/gadget/udc/r8a66597-udc.c struct r8a66597_ep *ep; ep 1372 drivers/usb/gadget/udc/r8a66597-udc.c ep = &r8a66597->ep[0]; ep 1373 drivers/usb/gadget/udc/r8a66597-udc.c req = get_request_from_ep(ep); ep 1374 drivers/usb/gadget/udc/r8a66597-udc.c transfer_complete(ep, req, 0); ep 1400 drivers/usb/gadget/udc/r8a66597-udc.c static void sudmac_finish(struct r8a66597 *r8a66597, struct r8a66597_ep *ep) ep 1407 drivers/usb/gadget/udc/r8a66597-udc.c pipenum = ep->pipenum; ep 1410 drivers/usb/gadget/udc/r8a66597-udc.c while (!(r8a66597_read(r8a66597, ep->fifoctr) & FRDY)) { ep 1420 drivers/usb/gadget/udc/r8a66597-udc.c r8a66597_bset(r8a66597, BCLR, ep->fifoctr); ep 1421 drivers/usb/gadget/udc/r8a66597-udc.c req = get_request_from_ep(ep); ep 1432 drivers/usb/gadget/udc/r8a66597-udc.c || (len % ep->ep.maxpacket)) { ep 1433 drivers/usb/gadget/udc/r8a66597-udc.c if (ep->dma->dir) { ep 1439 drivers/usb/gadget/udc/r8a66597-udc.c transfer_complete(ep, req, 0); ep 1447 drivers/usb/gadget/udc/r8a66597-udc.c struct r8a66597_ep *ep; ep 1454 drivers/usb/gadget/udc/r8a66597-udc.c ep = r8a66597->pipenum2ep[pipenum]; ep 1455 drivers/usb/gadget/udc/r8a66597-udc.c sudmac_finish(r8a66597, ep); ep 1552 drivers/usb/gadget/udc/r8a66597-udc.c struct r8a66597_ep *ep; ep 1554 drivers/usb/gadget/udc/r8a66597-udc.c ep = container_of(_ep, struct r8a66597_ep, ep); ep 1555 drivers/usb/gadget/udc/r8a66597-udc.c return alloc_pipe_config(ep, desc); ep 1560 drivers/usb/gadget/udc/r8a66597-udc.c struct r8a66597_ep *ep; ep 1564 drivers/usb/gadget/udc/r8a66597-udc.c ep = container_of(_ep, struct r8a66597_ep, ep); ep 1565 drivers/usb/gadget/udc/r8a66597-udc.c BUG_ON(!ep); ep 1567 drivers/usb/gadget/udc/r8a66597-udc.c while (!list_empty(&ep->queue)) { ep 1568 drivers/usb/gadget/udc/r8a66597-udc.c req = get_request_from_ep(ep); ep 1569 drivers/usb/gadget/udc/r8a66597-udc.c spin_lock_irqsave(&ep->r8a66597->lock, flags); ep 1570 drivers/usb/gadget/udc/r8a66597-udc.c transfer_complete(ep, req, -ECONNRESET); ep 1571 drivers/usb/gadget/udc/r8a66597-udc.c spin_unlock_irqrestore(&ep->r8a66597->lock, flags); ep 1574 drivers/usb/gadget/udc/r8a66597-udc.c pipe_irq_disable(ep->r8a66597, ep->pipenum); ep 1575 drivers/usb/gadget/udc/r8a66597-udc.c return free_pipe_config(ep); ep 1603 drivers/usb/gadget/udc/r8a66597-udc.c struct r8a66597_ep *ep; ep 1608 drivers/usb/gadget/udc/r8a66597-udc.c ep = container_of(_ep, struct r8a66597_ep, ep); ep 1611 drivers/usb/gadget/udc/r8a66597-udc.c if (ep->r8a66597->gadget.speed == USB_SPEED_UNKNOWN) ep 1614 drivers/usb/gadget/udc/r8a66597-udc.c spin_lock_irqsave(&ep->r8a66597->lock, flags); ep 1616 drivers/usb/gadget/udc/r8a66597-udc.c if (list_empty(&ep->queue)) ep 1619 drivers/usb/gadget/udc/r8a66597-udc.c list_add_tail(&req->queue, &ep->queue); ep 1623 drivers/usb/gadget/udc/r8a66597-udc.c if (ep->ep.desc == NULL) /* control */ ep 1624 drivers/usb/gadget/udc/r8a66597-udc.c start_ep0(ep, req); ep 1626 drivers/usb/gadget/udc/r8a66597-udc.c if (request && !ep->busy) ep 1627 drivers/usb/gadget/udc/r8a66597-udc.c start_packet(ep, req); ep 1630 drivers/usb/gadget/udc/r8a66597-udc.c spin_unlock_irqrestore(&ep->r8a66597->lock, flags); ep 1637 drivers/usb/gadget/udc/r8a66597-udc.c struct r8a66597_ep *ep; ep 1641 drivers/usb/gadget/udc/r8a66597-udc.c ep = container_of(_ep, struct r8a66597_ep, ep); ep 1644 drivers/usb/gadget/udc/r8a66597-udc.c spin_lock_irqsave(&ep->r8a66597->lock, flags); ep 1645 drivers/usb/gadget/udc/r8a66597-udc.c if (!list_empty(&ep->queue)) ep 1646 drivers/usb/gadget/udc/r8a66597-udc.c transfer_complete(ep, req, -ECONNRESET); ep 1647 drivers/usb/gadget/udc/r8a66597-udc.c spin_unlock_irqrestore(&ep->r8a66597->lock, flags); ep 1654 drivers/usb/gadget/udc/r8a66597-udc.c struct r8a66597_ep *ep = container_of(_ep, struct r8a66597_ep, ep); ep 1658 drivers/usb/gadget/udc/r8a66597-udc.c spin_lock_irqsave(&ep->r8a66597->lock, flags); ep 1659 drivers/usb/gadget/udc/r8a66597-udc.c if (!list_empty(&ep->queue)) { ep 1662 drivers/usb/gadget/udc/r8a66597-udc.c ep->busy = 1; ep 1663 drivers/usb/gadget/udc/r8a66597-udc.c pipe_stall(ep->r8a66597, ep->pipenum); ep 1665 drivers/usb/gadget/udc/r8a66597-udc.c ep->busy = 0; ep 1666 drivers/usb/gadget/udc/r8a66597-udc.c ep->wedge = 0; ep 1667 drivers/usb/gadget/udc/r8a66597-udc.c pipe_stop(ep->r8a66597, ep->pipenum); ep 1669 drivers/usb/gadget/udc/r8a66597-udc.c spin_unlock_irqrestore(&ep->r8a66597->lock, flags); ep 1675 drivers/usb/gadget/udc/r8a66597-udc.c struct r8a66597_ep *ep; ep 1678 drivers/usb/gadget/udc/r8a66597-udc.c ep = container_of(_ep, struct r8a66597_ep, ep); ep 1680 drivers/usb/gadget/udc/r8a66597-udc.c if (!ep || !ep->ep.desc) ep 1683 drivers/usb/gadget/udc/r8a66597-udc.c spin_lock_irqsave(&ep->r8a66597->lock, flags); ep 1684 drivers/usb/gadget/udc/r8a66597-udc.c ep->wedge = 1; ep 1685 drivers/usb/gadget/udc/r8a66597-udc.c spin_unlock_irqrestore(&ep->r8a66597->lock, flags); ep 1692 drivers/usb/gadget/udc/r8a66597-udc.c struct r8a66597_ep *ep; ep 1695 drivers/usb/gadget/udc/r8a66597-udc.c ep = container_of(_ep, struct r8a66597_ep, ep); ep 1696 drivers/usb/gadget/udc/r8a66597-udc.c spin_lock_irqsave(&ep->r8a66597->lock, flags); ep 1697 drivers/usb/gadget/udc/r8a66597-udc.c if (list_empty(&ep->queue) && !ep->busy) { ep 1698 drivers/usb/gadget/udc/r8a66597-udc.c pipe_stop(ep->r8a66597, ep->pipenum); ep 1699 drivers/usb/gadget/udc/r8a66597-udc.c r8a66597_bclr(ep->r8a66597, BCLR, ep->fifoctr); ep 1700 drivers/usb/gadget/udc/r8a66597-udc.c r8a66597_write(ep->r8a66597, ACLRM, ep->pipectr); ep 1701 drivers/usb/gadget/udc/r8a66597-udc.c r8a66597_write(ep->r8a66597, 0, ep->pipectr); ep 1703 drivers/usb/gadget/udc/r8a66597-udc.c spin_unlock_irqrestore(&ep->r8a66597->lock, flags); ep 1814 drivers/usb/gadget/udc/r8a66597-udc.c r8a66597_free_request(&r8a66597->ep[0].ep, r8a66597->ep0_req); ep 1823 drivers/usb/gadget/udc/r8a66597-udc.c static void nop_completion(struct usb_ep *ep, struct usb_request *r) ep 1906 drivers/usb/gadget/udc/r8a66597-udc.c r8a66597->gadget.ep0 = &r8a66597->ep[0].ep; ep 1909 drivers/usb/gadget/udc/r8a66597-udc.c struct r8a66597_ep *ep = &r8a66597->ep[i]; ep 1912 drivers/usb/gadget/udc/r8a66597-udc.c INIT_LIST_HEAD(&r8a66597->ep[i].ep.ep_list); ep 1913 drivers/usb/gadget/udc/r8a66597-udc.c list_add_tail(&r8a66597->ep[i].ep.ep_list, ep 1916 drivers/usb/gadget/udc/r8a66597-udc.c ep->r8a66597 = r8a66597; ep 1917 drivers/usb/gadget/udc/r8a66597-udc.c INIT_LIST_HEAD(&ep->queue); ep 1918 drivers/usb/gadget/udc/r8a66597-udc.c ep->ep.name = r8a66597_ep_name[i]; ep 1919 drivers/usb/gadget/udc/r8a66597-udc.c ep->ep.ops = &r8a66597_ep_ops; ep 1920 drivers/usb/gadget/udc/r8a66597-udc.c usb_ep_set_maxpacket_limit(&ep->ep, 512); ep 1923 drivers/usb/gadget/udc/r8a66597-udc.c ep->ep.caps.type_control = true; ep 1925 drivers/usb/gadget/udc/r8a66597-udc.c ep->ep.caps.type_iso = true; ep 1926 drivers/usb/gadget/udc/r8a66597-udc.c ep->ep.caps.type_bulk = true; ep 1927 drivers/usb/gadget/udc/r8a66597-udc.c ep->ep.caps.type_int = true; ep 1929 drivers/usb/gadget/udc/r8a66597-udc.c ep->ep.caps.dir_in = true; ep 1930 drivers/usb/gadget/udc/r8a66597-udc.c ep->ep.caps.dir_out = true; ep 1932 drivers/usb/gadget/udc/r8a66597-udc.c usb_ep_set_maxpacket_limit(&r8a66597->ep[0].ep, 64); ep 1933 drivers/usb/gadget/udc/r8a66597-udc.c r8a66597->ep[0].pipenum = 0; ep 1934 drivers/usb/gadget/udc/r8a66597-udc.c r8a66597->ep[0].fifoaddr = CFIFO; ep 1935 drivers/usb/gadget/udc/r8a66597-udc.c r8a66597->ep[0].fifosel = CFIFOSEL; ep 1936 drivers/usb/gadget/udc/r8a66597-udc.c r8a66597->ep[0].fifoctr = CFIFOCTR; ep 1937 drivers/usb/gadget/udc/r8a66597-udc.c r8a66597->ep[0].pipectr = get_pipectr_addr(0); ep 1938 drivers/usb/gadget/udc/r8a66597-udc.c r8a66597->pipenum2ep[0] = &r8a66597->ep[0]; ep 1939 drivers/usb/gadget/udc/r8a66597-udc.c r8a66597->epaddr2ep[0] = &r8a66597->ep[0]; ep 1941 drivers/usb/gadget/udc/r8a66597-udc.c r8a66597->ep0_req = r8a66597_alloc_request(&r8a66597->ep[0].ep, ep 1957 drivers/usb/gadget/udc/r8a66597-udc.c r8a66597_free_request(&r8a66597->ep[0].ep, r8a66597->ep0_req); ep 1963 drivers/usb/gadget/udc/r8a66597-udc.c r8a66597_free_request(&r8a66597->ep[0].ep, r8a66597->ep0_req); ep 56 drivers/usb/gadget/udc/r8a66597-udc.h struct usb_ep ep; ep 95 drivers/usb/gadget/udc/r8a66597-udc.h struct r8a66597_ep ep[R8A66597_MAX_NUM_PIPE]; ep 195 drivers/usb/gadget/udc/r8a66597-udc.h struct r8a66597_ep *ep, ep 199 drivers/usb/gadget/udc/r8a66597-udc.h void __iomem *fifoaddr = r8a66597->reg + ep->fifoaddr; ep 228 drivers/usb/gadget/udc/r8a66597-udc.h r8a66597_bclr(r8a66597, MBW_16, ep->fifosel); ep 232 drivers/usb/gadget/udc/r8a66597-udc.h r8a66597_bclr(r8a66597, MBW_16, ep->fifosel); ep 311 drivers/usb/gadget/udc/renesas_usb3.c struct usb_ep ep; ep 373 drivers/usb/gadget/udc/renesas_usb3.c #define usb_ep_to_usb3_ep(_ep) container_of(_ep, struct renesas_usb3_ep, ep) ep 904 drivers/usb/gadget/udc/renesas_usb3.c usb_gadget_giveback_request(&usb3_ep->ep, &usb3_req->req); ep 1049 drivers/usb/gadget/udc/renesas_usb3.c (req->actual % usb3_ep->ep.maxpacket) || (req->length == 0)) ep 1082 drivers/usb/gadget/udc/renesas_usb3.c usb3_ep->ep.maxpacket); ep 1227 drivers/usb/gadget/udc/renesas_usb3.c switch (usb3_ep->ep.maxpacket) { ep 1558 drivers/usb/gadget/udc/renesas_usb3.c void (*complete)(struct usb_ep *ep, ep 1570 drivers/usb/gadget/udc/renesas_usb3.c renesas_usb3_ep_queue(&usb3_ep->ep, usb3->ep0_req, GFP_ATOMIC); ep 1573 drivers/usb/gadget/udc/renesas_usb3.c static void usb3_pipe0_get_status_completion(struct usb_ep *ep, ep 1752 drivers/usb/gadget/udc/renesas_usb3.c static void usb3_pipe0_set_sel_completion(struct usb_ep *ep, ep 2593 drivers/usb/gadget/udc/renesas_usb3.c usb3_ep->ep.name = usb3_ep->ep_name; ep 2594 drivers/usb/gadget/udc/renesas_usb3.c usb3_ep->ep.ops = &renesas_usb3_ep_ops; ep 2596 drivers/usb/gadget/udc/renesas_usb3.c INIT_LIST_HEAD(&usb3_ep->ep.ep_list); ep 2599 drivers/usb/gadget/udc/renesas_usb3.c usb3->gadget.ep0 = &usb3_ep->ep; ep 2600 drivers/usb/gadget/udc/renesas_usb3.c usb_ep_set_maxpacket_limit(&usb3_ep->ep, ep 2602 drivers/usb/gadget/udc/renesas_usb3.c usb3_ep->ep.caps.type_control = true; ep 2603 drivers/usb/gadget/udc/renesas_usb3.c usb3_ep->ep.caps.dir_in = true; ep 2604 drivers/usb/gadget/udc/renesas_usb3.c usb3_ep->ep.caps.dir_out = true; ep 2609 drivers/usb/gadget/udc/renesas_usb3.c usb_ep_set_maxpacket_limit(&usb3_ep->ep, ~0); ep 2610 drivers/usb/gadget/udc/renesas_usb3.c list_add_tail(&usb3_ep->ep.ep_list, &usb3->gadget.ep_list); ep 2611 drivers/usb/gadget/udc/renesas_usb3.c usb3_ep->ep.caps.type_bulk = true; ep 2612 drivers/usb/gadget/udc/renesas_usb3.c usb3_ep->ep.caps.type_int = true; ep 2614 drivers/usb/gadget/udc/renesas_usb3.c usb3_ep->ep.caps.dir_in = true; ep 2616 drivers/usb/gadget/udc/renesas_usb3.c usb3_ep->ep.caps.dir_out = true; ep 2642 drivers/usb/gadget/udc/renesas_usb3.c if (usb3_ep->ep.caps.dir_in) { ep 108 drivers/usb/gadget/udc/s3c-hsudc.c struct usb_ep ep; ep 152 drivers/usb/gadget/udc/s3c-hsudc.c struct s3c_hsudc_ep ep[]; ep 155 drivers/usb/gadget/udc/s3c-hsudc.c #define ep_maxpacket(_ep) ((_ep)->ep.maxpacket) ep 168 drivers/usb/gadget/udc/s3c-hsudc.c static inline struct s3c_hsudc_ep *our_ep(struct usb_ep *ep) ep 170 drivers/usb/gadget/udc/s3c-hsudc.c return container_of(ep, struct s3c_hsudc_ep, ep); ep 258 drivers/usb/gadget/udc/s3c-hsudc.c usb_gadget_giveback_request(&hsep->ep, &hsreq->req); ep 294 drivers/usb/gadget/udc/s3c-hsudc.c hsep = &hsudc->ep[epnum]; ep 397 drivers/usb/gadget/udc/s3c-hsudc.c is_short = (rlen < hsep->ep.maxpacket); ep 429 drivers/usb/gadget/udc/s3c-hsudc.c struct s3c_hsudc_ep *hsep = &hsudc->ep[ep_idx]; ep 462 drivers/usb/gadget/udc/s3c-hsudc.c struct s3c_hsudc_ep *hsep = &hsudc->ep[ep_idx]; ep 566 drivers/usb/gadget/udc/s3c-hsudc.c hsep = &hsudc->ep[ep_num]; ep 570 drivers/usb/gadget/udc/s3c-hsudc.c s3c_hsudc_set_halt(&hsep->ep, set); ep 588 drivers/usb/gadget/udc/s3c-hsudc.c struct s3c_hsudc_ep *hsep0 = &hsudc->ep[0]; ep 605 drivers/usb/gadget/udc/s3c-hsudc.c hsep = &hsudc->ep[epnum]; ep 627 drivers/usb/gadget/udc/s3c-hsudc.c struct s3c_hsudc_ep *hsep = &hsudc->ep[0]; ep 677 drivers/usb/gadget/udc/s3c-hsudc.c s3c_hsudc_set_halt(&hsep->ep, 1); ep 693 drivers/usb/gadget/udc/s3c-hsudc.c struct s3c_hsudc_ep *hsep = &hsudc->ep[0]; ep 779 drivers/usb/gadget/udc/s3c-hsudc.c hsep->ep.desc = desc; ep 780 drivers/usb/gadget/udc/s3c-hsudc.c hsep->ep.maxpacket = usb_endpoint_maxp(desc); ep 802 drivers/usb/gadget/udc/s3c-hsudc.c if (!_ep || !hsep->ep.desc) ep 812 drivers/usb/gadget/udc/s3c-hsudc.c hsep->ep.desc = NULL; ep 846 drivers/usb/gadget/udc/s3c-hsudc.c static void s3c_hsudc_free_request(struct usb_ep *ep, struct usb_request *_req) ep 933 drivers/usb/gadget/udc/s3c-hsudc.c if (!_ep || hsep->ep.name == ep0name) ep 992 drivers/usb/gadget/udc/s3c-hsudc.c INIT_LIST_HEAD(&hsep->ep.ep_list); ep 994 drivers/usb/gadget/udc/s3c-hsudc.c list_add_tail(&hsep->ep.ep_list, &hsudc->gadget.ep_list); ep 997 drivers/usb/gadget/udc/s3c-hsudc.c hsep->ep.name = hsep->name; ep 998 drivers/usb/gadget/udc/s3c-hsudc.c usb_ep_set_maxpacket_limit(&hsep->ep, epnum ? 512 : 64); ep 999 drivers/usb/gadget/udc/s3c-hsudc.c hsep->ep.ops = &s3c_hsudc_ep_ops; ep 1001 drivers/usb/gadget/udc/s3c-hsudc.c hsep->ep.desc = NULL; ep 1006 drivers/usb/gadget/udc/s3c-hsudc.c hsep->ep.caps.type_control = true; ep 1007 drivers/usb/gadget/udc/s3c-hsudc.c hsep->ep.caps.dir_in = true; ep 1008 drivers/usb/gadget/udc/s3c-hsudc.c hsep->ep.caps.dir_out = true; ep 1010 drivers/usb/gadget/udc/s3c-hsudc.c hsep->ep.caps.type_iso = true; ep 1011 drivers/usb/gadget/udc/s3c-hsudc.c hsep->ep.caps.type_bulk = true; ep 1012 drivers/usb/gadget/udc/s3c-hsudc.c hsep->ep.caps.type_int = true; ep 1016 drivers/usb/gadget/udc/s3c-hsudc.c hsep->ep.caps.dir_in = true; ep 1018 drivers/usb/gadget/udc/s3c-hsudc.c hsep->ep.caps.dir_out = true; ep 1021 drivers/usb/gadget/udc/s3c-hsudc.c writel(hsep->ep.maxpacket, hsudc->regs + S3C_MPR); ep 1037 drivers/usb/gadget/udc/s3c-hsudc.c s3c_hsudc_initep(hsudc, &hsudc->ep[epnum], epnum); ep 1114 drivers/usb/gadget/udc/s3c-hsudc.c hsep = &hsudc->ep[ep_idx]; ep 1133 drivers/usb/gadget/udc/s3c-hsudc.c hsep = &hsudc->ep[ep_idx]; ep 1306 drivers/usb/gadget/udc/s3c-hsudc.c hsudc->gadget.ep0 = &hsudc->ep[0].ep; ep 234 drivers/usb/gadget/udc/s3c2410_udc.c static void s3c2410_udc_done(struct s3c2410_ep *ep, ep 237 drivers/usb/gadget/udc/s3c2410_udc.c unsigned halted = ep->halted; ep 246 drivers/usb/gadget/udc/s3c2410_udc.c ep->halted = 1; ep 247 drivers/usb/gadget/udc/s3c2410_udc.c usb_gadget_giveback_request(&ep->ep, &req->req); ep 248 drivers/usb/gadget/udc/s3c2410_udc.c ep->halted = halted; ep 252 drivers/usb/gadget/udc/s3c2410_udc.c struct s3c2410_ep *ep, int status) ep 255 drivers/usb/gadget/udc/s3c2410_udc.c if (&ep->queue == NULL) ep 258 drivers/usb/gadget/udc/s3c2410_udc.c while (!list_empty(&ep->queue)) { ep 260 drivers/usb/gadget/udc/s3c2410_udc.c req = list_entry(ep->queue.next, struct s3c2410_request, ep 262 drivers/usb/gadget/udc/s3c2410_udc.c s3c2410_udc_done(ep, req, status); ep 302 drivers/usb/gadget/udc/s3c2410_udc.c static int s3c2410_udc_write_fifo(struct s3c2410_ep *ep, ep 311 drivers/usb/gadget/udc/s3c2410_udc.c idx = ep->bEndpointAddress & 0x7F; ep 333 drivers/usb/gadget/udc/s3c2410_udc.c count = s3c2410_udc_write_packet(fifo_reg, req, ep->ep.maxpacket); ep 336 drivers/usb/gadget/udc/s3c2410_udc.c if (count != ep->ep.maxpacket) ep 359 drivers/usb/gadget/udc/s3c2410_udc.c ep->dev->ep0state = EP0_IDLE; ep 368 drivers/usb/gadget/udc/s3c2410_udc.c s3c2410_udc_done(ep, req, 0); ep 403 drivers/usb/gadget/udc/s3c2410_udc.c static int s3c2410_udc_read_fifo(struct s3c2410_ep *ep, ep 415 drivers/usb/gadget/udc/s3c2410_udc.c idx = ep->bEndpointAddress & 0x7F; ep 453 drivers/usb/gadget/udc/s3c2410_udc.c if (fifo_count > ep->ep.maxpacket) ep 454 drivers/usb/gadget/udc/s3c2410_udc.c avail = ep->ep.maxpacket; ep 463 drivers/usb/gadget/udc/s3c2410_udc.c if (idx != 0 && fifo_count < ep->ep.maxpacket) { ep 483 drivers/usb/gadget/udc/s3c2410_udc.c ep->dev->ep0state = EP0_IDLE; ep 492 drivers/usb/gadget/udc/s3c2410_udc.c s3c2410_udc_done(ep, req, 0); ep 584 drivers/usb/gadget/udc/s3c2410_udc.c struct s3c2410_ep *ep, ep 594 drivers/usb/gadget/udc/s3c2410_udc.c s3c2410_udc_nuke(dev, ep, -EPROTO); ep 665 drivers/usb/gadget/udc/s3c2410_udc.c s3c2410_udc_set_halt(&dev->ep[crq->wIndex & 0x7f].ep, 0); ep 678 drivers/usb/gadget/udc/s3c2410_udc.c s3c2410_udc_set_halt(&dev->ep[crq->wIndex & 0x7f].ep, 1); ep 726 drivers/usb/gadget/udc/s3c2410_udc.c struct s3c2410_ep *ep = &dev->ep[0]; ep 730 drivers/usb/gadget/udc/s3c2410_udc.c if (list_empty(&ep->queue)) ep 733 drivers/usb/gadget/udc/s3c2410_udc.c req = list_entry(ep->queue.next, struct s3c2410_request, queue); ep 746 drivers/usb/gadget/udc/s3c2410_udc.c s3c2410_udc_nuke(dev, ep, -EPIPE); ep 756 drivers/usb/gadget/udc/s3c2410_udc.c s3c2410_udc_nuke(dev, ep, 0); ep 763 drivers/usb/gadget/udc/s3c2410_udc.c s3c2410_udc_handle_ep0_idle(dev, ep, &crq, ep0csr); ep 769 drivers/usb/gadget/udc/s3c2410_udc.c s3c2410_udc_write_fifo(ep, req); ep 775 drivers/usb/gadget/udc/s3c2410_udc.c s3c2410_udc_read_fifo(ep, req); ep 794 drivers/usb/gadget/udc/s3c2410_udc.c static void s3c2410_udc_handle_ep(struct s3c2410_ep *ep) ep 797 drivers/usb/gadget/udc/s3c2410_udc.c int is_in = ep->bEndpointAddress & USB_DIR_IN; ep 801 drivers/usb/gadget/udc/s3c2410_udc.c if (likely(!list_empty(&ep->queue))) ep 802 drivers/usb/gadget/udc/s3c2410_udc.c req = list_entry(ep->queue.next, ep 807 drivers/usb/gadget/udc/s3c2410_udc.c idx = ep->bEndpointAddress & 0x7F; ep 824 drivers/usb/gadget/udc/s3c2410_udc.c s3c2410_udc_write_fifo(ep, req); ep 838 drivers/usb/gadget/udc/s3c2410_udc.c s3c2410_udc_read_fifo(ep, req); ep 900 drivers/usb/gadget/udc/s3c2410_udc.c udc_write((dev->ep[0].ep.maxpacket & 0x7ff) >> 3, ep 966 drivers/usb/gadget/udc/s3c2410_udc.c s3c2410_udc_handle_ep(&dev->ep[i]); ep 977 drivers/usb/gadget/udc/s3c2410_udc.c s3c2410_udc_handle_ep(&dev->ep[i]); ep 995 drivers/usb/gadget/udc/s3c2410_udc.c static inline struct s3c2410_ep *to_s3c2410_ep(struct usb_ep *ep) ep 997 drivers/usb/gadget/udc/s3c2410_udc.c return container_of(ep, struct s3c2410_ep, ep); ep 1017 drivers/usb/gadget/udc/s3c2410_udc.c struct s3c2410_ep *ep; ep 1023 drivers/usb/gadget/udc/s3c2410_udc.c ep = to_s3c2410_ep(_ep); ep 1030 drivers/usb/gadget/udc/s3c2410_udc.c dev = ep->dev; ep 1038 drivers/usb/gadget/udc/s3c2410_udc.c ep->ep.desc = desc; ep 1039 drivers/usb/gadget/udc/s3c2410_udc.c ep->halted = 0; ep 1040 drivers/usb/gadget/udc/s3c2410_udc.c ep->bEndpointAddress = desc->bEndpointAddress; ep 1043 drivers/usb/gadget/udc/s3c2410_udc.c udc_write(ep->num, S3C2410_UDC_INDEX_REG); ep 1051 drivers/usb/gadget/udc/s3c2410_udc.c udc_write(ep->num, S3C2410_UDC_INDEX_REG); ep 1053 drivers/usb/gadget/udc/s3c2410_udc.c udc_write(ep->num, S3C2410_UDC_INDEX_REG); ep 1060 drivers/usb/gadget/udc/s3c2410_udc.c udc_write(ep->num, S3C2410_UDC_INDEX_REG); ep 1062 drivers/usb/gadget/udc/s3c2410_udc.c udc_write(ep->num, S3C2410_UDC_INDEX_REG); ep 1068 drivers/usb/gadget/udc/s3c2410_udc.c udc_write(ep->num, S3C2410_UDC_INDEX_REG); ep 1070 drivers/usb/gadget/udc/s3c2410_udc.c udc_write(ep->num, S3C2410_UDC_INDEX_REG); ep 1076 drivers/usb/gadget/udc/s3c2410_udc.c udc_write(int_en_reg | (1 << ep->num), S3C2410_UDC_EP_INT_EN_REG); ep 1081 drivers/usb/gadget/udc/s3c2410_udc.c _ep->name, ep->num, tmp, ep 1095 drivers/usb/gadget/udc/s3c2410_udc.c struct s3c2410_ep *ep = to_s3c2410_ep(_ep); ep 1099 drivers/usb/gadget/udc/s3c2410_udc.c if (!_ep || !ep->ep.desc) { ep 1101 drivers/usb/gadget/udc/s3c2410_udc.c _ep ? ep->ep.name : NULL); ep 1109 drivers/usb/gadget/udc/s3c2410_udc.c ep->ep.desc = NULL; ep 1110 drivers/usb/gadget/udc/s3c2410_udc.c ep->halted = 1; ep 1112 drivers/usb/gadget/udc/s3c2410_udc.c s3c2410_udc_nuke(ep->dev, ep, -ESHUTDOWN); ep 1116 drivers/usb/gadget/udc/s3c2410_udc.c udc_write(int_en_reg & ~(1<<ep->num), S3C2410_UDC_EP_INT_EN_REG); ep 1152 drivers/usb/gadget/udc/s3c2410_udc.c struct s3c2410_ep *ep = to_s3c2410_ep(_ep); ep 1157 drivers/usb/gadget/udc/s3c2410_udc.c if (!ep || !_req || (!ep->ep.desc && _ep->name != ep0name)) ep 1171 drivers/usb/gadget/udc/s3c2410_udc.c struct s3c2410_ep *ep = to_s3c2410_ep(_ep); ep 1177 drivers/usb/gadget/udc/s3c2410_udc.c if (unlikely(!_ep || (!ep->ep.desc && ep->ep.name != ep0name))) { ep 1182 drivers/usb/gadget/udc/s3c2410_udc.c dev = ep->dev; ep 1208 drivers/usb/gadget/udc/s3c2410_udc.c __func__, ep->bEndpointAddress, _req->length); ep 1210 drivers/usb/gadget/udc/s3c2410_udc.c if (ep->bEndpointAddress) { ep 1211 drivers/usb/gadget/udc/s3c2410_udc.c udc_write(ep->bEndpointAddress & 0x7F, S3C2410_UDC_INDEX_REG); ep 1213 drivers/usb/gadget/udc/s3c2410_udc.c ep_csr = udc_read((ep->bEndpointAddress & USB_DIR_IN) ep 1224 drivers/usb/gadget/udc/s3c2410_udc.c if (list_empty(&ep->queue) && !ep->halted) { ep 1225 drivers/usb/gadget/udc/s3c2410_udc.c if (ep->bEndpointAddress == 0 /* ep0 */) { ep 1229 drivers/usb/gadget/udc/s3c2410_udc.c && s3c2410_udc_write_fifo(ep, ep 1239 drivers/usb/gadget/udc/s3c2410_udc.c && s3c2410_udc_read_fifo(ep, ep 1250 drivers/usb/gadget/udc/s3c2410_udc.c } else if ((ep->bEndpointAddress & USB_DIR_IN) != 0 ep 1252 drivers/usb/gadget/udc/s3c2410_udc.c && s3c2410_udc_write_fifo(ep, req)) { ep 1256 drivers/usb/gadget/udc/s3c2410_udc.c && s3c2410_udc_read_fifo(ep, req)) { ep 1263 drivers/usb/gadget/udc/s3c2410_udc.c list_add_tail(&req->queue, &ep->queue); ep 1276 drivers/usb/gadget/udc/s3c2410_udc.c struct s3c2410_ep *ep = to_s3c2410_ep(_ep); ep 1290 drivers/usb/gadget/udc/s3c2410_udc.c udc = to_s3c2410_udc(ep->gadget); ep 1294 drivers/usb/gadget/udc/s3c2410_udc.c list_for_each_entry(req, &ep->queue, queue) { ep 1308 drivers/usb/gadget/udc/s3c2410_udc.c s3c2410_udc_done(ep, req, -ECONNRESET); ep 1320 drivers/usb/gadget/udc/s3c2410_udc.c struct s3c2410_ep *ep = to_s3c2410_ep(_ep); ep 1325 drivers/usb/gadget/udc/s3c2410_udc.c if (unlikely(!_ep || (!ep->ep.desc && ep->ep.name != ep0name))) { ep 1332 drivers/usb/gadget/udc/s3c2410_udc.c idx = ep->bEndpointAddress & 0x7F; ep 1339 drivers/usb/gadget/udc/s3c2410_udc.c ep_csr = udc_read((ep->bEndpointAddress & USB_DIR_IN) ep 1343 drivers/usb/gadget/udc/s3c2410_udc.c if ((ep->bEndpointAddress & USB_DIR_IN) != 0) { ep 1366 drivers/usb/gadget/udc/s3c2410_udc.c ep->halted = value ? 1 : 0; ep 1586 drivers/usb/gadget/udc/s3c2410_udc.c struct s3c2410_ep *ep = &dev->ep[i]; ep 1589 drivers/usb/gadget/udc/s3c2410_udc.c list_add_tail(&ep->ep.ep_list, &dev->gadget.ep_list); ep 1591 drivers/usb/gadget/udc/s3c2410_udc.c ep->dev = dev; ep 1592 drivers/usb/gadget/udc/s3c2410_udc.c ep->ep.desc = NULL; ep 1593 drivers/usb/gadget/udc/s3c2410_udc.c ep->halted = 0; ep 1594 drivers/usb/gadget/udc/s3c2410_udc.c INIT_LIST_HEAD(&ep->queue); ep 1595 drivers/usb/gadget/udc/s3c2410_udc.c usb_ep_set_maxpacket_limit(&ep->ep, ep->ep.maxpacket); ep 1614 drivers/usb/gadget/udc/s3c2410_udc.c udc_write((dev->ep[i].ep.maxpacket & 0x7ff) >> 3, ep 1664 drivers/usb/gadget/udc/s3c2410_udc.c .ep0 = &memory.ep[0].ep, ep 1672 drivers/usb/gadget/udc/s3c2410_udc.c .ep[0] = { ep 1674 drivers/usb/gadget/udc/s3c2410_udc.c .ep = { ep 1685 drivers/usb/gadget/udc/s3c2410_udc.c .ep[1] = { ep 1687 drivers/usb/gadget/udc/s3c2410_udc.c .ep = { ep 1699 drivers/usb/gadget/udc/s3c2410_udc.c .ep[2] = { ep 1701 drivers/usb/gadget/udc/s3c2410_udc.c .ep = { ep 1713 drivers/usb/gadget/udc/s3c2410_udc.c .ep[3] = { ep 1715 drivers/usb/gadget/udc/s3c2410_udc.c .ep = { ep 1727 drivers/usb/gadget/udc/s3c2410_udc.c .ep[4] = { ep 1729 drivers/usb/gadget/udc/s3c2410_udc.c .ep = { ep 1778 drivers/usb/gadget/udc/s3c2410_udc.c memory.ep[1].fifo_size = S3C2440_EP_FIFO_SIZE; ep 1779 drivers/usb/gadget/udc/s3c2410_udc.c memory.ep[2].fifo_size = S3C2440_EP_FIFO_SIZE; ep 1780 drivers/usb/gadget/udc/s3c2410_udc.c memory.ep[3].fifo_size = S3C2440_EP_FIFO_SIZE; ep 1781 drivers/usb/gadget/udc/s3c2410_udc.c memory.ep[4].fifo_size = S3C2440_EP_FIFO_SIZE; ep 18 drivers/usb/gadget/udc/s3c2410_udc.h struct usb_ep ep; ep 75 drivers/usb/gadget/udc/s3c2410_udc.h struct s3c2410_ep ep[S3C2410_ENDPOINTS]; ep 42 drivers/usb/gadget/udc/snps_udc_core.c static struct udc_request *udc_alloc_bna_dummy(struct udc_ep *ep); ep 285 drivers/usb/gadget/udc/snps_udc_core.c static int udc_set_txfifo_addr(struct udc_ep *ep) ep 291 drivers/usb/gadget/udc/snps_udc_core.c if (!ep || !(ep->in)) ep 294 drivers/usb/gadget/udc/snps_udc_core.c dev = ep->dev; ep 295 drivers/usb/gadget/udc/snps_udc_core.c ep->txfifo = dev->txfifo; ep 298 drivers/usb/gadget/udc/snps_udc_core.c for (i = 0; i < ep->num; i++) { ep 299 drivers/usb/gadget/udc/snps_udc_core.c if (dev->ep[i].regs) { ep 301 drivers/usb/gadget/udc/snps_udc_core.c tmp = readl(&dev->ep[i].regs->bufin_framenum); ep 303 drivers/usb/gadget/udc/snps_udc_core.c ep->txfifo += tmp; ep 312 drivers/usb/gadget/udc/snps_udc_core.c static void UDC_QUEUE_CNAK(struct udc_ep *ep, unsigned num) ep 314 drivers/usb/gadget/udc/snps_udc_core.c if (readl(&ep->regs->ctl) & AMD_BIT(UDC_EPCTL_NAK)) { ep 315 drivers/usb/gadget/udc/snps_udc_core.c DBG(ep->dev, "NAK could not be cleared for ep%d\n", num); ep 317 drivers/usb/gadget/udc/snps_udc_core.c ep->naking = 1; ep 327 drivers/usb/gadget/udc/snps_udc_core.c struct udc_ep *ep; ep 340 drivers/usb/gadget/udc/snps_udc_core.c ep = container_of(usbep, struct udc_ep, ep); ep 341 drivers/usb/gadget/udc/snps_udc_core.c dev = ep->dev; ep 343 drivers/usb/gadget/udc/snps_udc_core.c DBG(dev, "udc_ep_enable() ep %d\n", ep->num); ep 349 drivers/usb/gadget/udc/snps_udc_core.c ep->ep.desc = desc; ep 351 drivers/usb/gadget/udc/snps_udc_core.c ep->halted = 0; ep 354 drivers/usb/gadget/udc/snps_udc_core.c tmp = readl(&dev->ep[ep->num].regs->ctl); ep 356 drivers/usb/gadget/udc/snps_udc_core.c writel(tmp, &dev->ep[ep->num].regs->ctl); ep 360 drivers/usb/gadget/udc/snps_udc_core.c tmp = readl(&dev->ep[ep->num].regs->bufout_maxpkt); ep 362 drivers/usb/gadget/udc/snps_udc_core.c ep->ep.maxpacket = maxpacket; ep 363 drivers/usb/gadget/udc/snps_udc_core.c writel(tmp, &dev->ep[ep->num].regs->bufout_maxpkt); ep 366 drivers/usb/gadget/udc/snps_udc_core.c if (ep->in) { ep 369 drivers/usb/gadget/udc/snps_udc_core.c udc_csr_epix = ep->num; ep 372 drivers/usb/gadget/udc/snps_udc_core.c tmp = readl(&dev->ep[ep->num].regs->bufin_framenum); ep 379 drivers/usb/gadget/udc/snps_udc_core.c writel(tmp, &dev->ep[ep->num].regs->bufin_framenum); ep 382 drivers/usb/gadget/udc/snps_udc_core.c udc_set_txfifo_addr(ep); ep 385 drivers/usb/gadget/udc/snps_udc_core.c tmp = readl(&ep->regs->ctl); ep 387 drivers/usb/gadget/udc/snps_udc_core.c writel(tmp, &ep->regs->ctl); ep 392 drivers/usb/gadget/udc/snps_udc_core.c udc_csr_epix = ep->num - UDC_CSR_EP_OUT_IX_OFS; ep 395 drivers/usb/gadget/udc/snps_udc_core.c tmp = readl(&dev->csr->ne[ep->num - UDC_CSR_EP_OUT_IX_OFS]); ep 398 drivers/usb/gadget/udc/snps_udc_core.c writel(tmp, &dev->csr->ne[ep->num - UDC_CSR_EP_OUT_IX_OFS]); ep 400 drivers/usb/gadget/udc/snps_udc_core.c if (use_dma && !ep->in) { ep 402 drivers/usb/gadget/udc/snps_udc_core.c ep->bna_dummy_req = udc_alloc_bna_dummy(ep); ep 403 drivers/usb/gadget/udc/snps_udc_core.c ep->bna_occurred = 0; ep 406 drivers/usb/gadget/udc/snps_udc_core.c if (ep->num != UDC_EP0OUT_IX) ep 417 drivers/usb/gadget/udc/snps_udc_core.c tmp = AMD_ADDBITS(tmp, ep->in, UDC_CSR_NE_DIR); ep 421 drivers/usb/gadget/udc/snps_udc_core.c tmp = AMD_ADDBITS(tmp, ep->dev->cur_config, UDC_CSR_NE_CFG); ep 423 drivers/usb/gadget/udc/snps_udc_core.c tmp = AMD_ADDBITS(tmp, ep->dev->cur_intf, UDC_CSR_NE_INTF); ep 425 drivers/usb/gadget/udc/snps_udc_core.c tmp = AMD_ADDBITS(tmp, ep->dev->cur_alt, UDC_CSR_NE_ALT); ep 431 drivers/usb/gadget/udc/snps_udc_core.c tmp &= AMD_UNMASK_BIT(ep->num); ep 438 drivers/usb/gadget/udc/snps_udc_core.c if (!use_dma || ep->in) { ep 439 drivers/usb/gadget/udc/snps_udc_core.c tmp = readl(&ep->regs->ctl); ep 441 drivers/usb/gadget/udc/snps_udc_core.c writel(tmp, &ep->regs->ctl); ep 442 drivers/usb/gadget/udc/snps_udc_core.c ep->naking = 0; ep 443 drivers/usb/gadget/udc/snps_udc_core.c UDC_QUEUE_CNAK(ep, ep->num); ep 453 drivers/usb/gadget/udc/snps_udc_core.c static void ep_init(struct udc_regs __iomem *regs, struct udc_ep *ep) ep 457 drivers/usb/gadget/udc/snps_udc_core.c VDBG(ep->dev, "ep-%d reset\n", ep->num); ep 458 drivers/usb/gadget/udc/snps_udc_core.c ep->ep.desc = NULL; ep 459 drivers/usb/gadget/udc/snps_udc_core.c ep->ep.ops = &udc_ep_ops; ep 460 drivers/usb/gadget/udc/snps_udc_core.c INIT_LIST_HEAD(&ep->queue); ep 462 drivers/usb/gadget/udc/snps_udc_core.c usb_ep_set_maxpacket_limit(&ep->ep,(u16) ~0); ep 464 drivers/usb/gadget/udc/snps_udc_core.c tmp = readl(&ep->regs->ctl); ep 466 drivers/usb/gadget/udc/snps_udc_core.c writel(tmp, &ep->regs->ctl); ep 467 drivers/usb/gadget/udc/snps_udc_core.c ep->naking = 1; ep 471 drivers/usb/gadget/udc/snps_udc_core.c tmp |= AMD_BIT(ep->num); ep 474 drivers/usb/gadget/udc/snps_udc_core.c if (ep->in) { ep 476 drivers/usb/gadget/udc/snps_udc_core.c tmp = readl(&ep->regs->ctl); ep 478 drivers/usb/gadget/udc/snps_udc_core.c writel(tmp, &ep->regs->ctl); ep 480 drivers/usb/gadget/udc/snps_udc_core.c tmp = readl(&ep->regs->sts); ep 482 drivers/usb/gadget/udc/snps_udc_core.c writel(tmp, &ep->regs->sts); ep 485 drivers/usb/gadget/udc/snps_udc_core.c tmp = readl(&ep->regs->ctl); ep 487 drivers/usb/gadget/udc/snps_udc_core.c writel(tmp, &ep->regs->ctl); ep 491 drivers/usb/gadget/udc/snps_udc_core.c writel(0, &ep->regs->desptr); ep 497 drivers/usb/gadget/udc/snps_udc_core.c struct udc_ep *ep = NULL; ep 503 drivers/usb/gadget/udc/snps_udc_core.c ep = container_of(usbep, struct udc_ep, ep); ep 504 drivers/usb/gadget/udc/snps_udc_core.c if (usbep->name == ep0_string || !ep->ep.desc) ep 507 drivers/usb/gadget/udc/snps_udc_core.c DBG(ep->dev, "Disable ep-%d\n", ep->num); ep 509 drivers/usb/gadget/udc/snps_udc_core.c spin_lock_irqsave(&ep->dev->lock, iflags); ep 510 drivers/usb/gadget/udc/snps_udc_core.c udc_free_request(&ep->ep, &ep->bna_dummy_req->req); ep 511 drivers/usb/gadget/udc/snps_udc_core.c empty_req_queue(ep); ep 512 drivers/usb/gadget/udc/snps_udc_core.c ep_init(ep->dev->regs, ep); ep 513 drivers/usb/gadget/udc/snps_udc_core.c spin_unlock_irqrestore(&ep->dev->lock, iflags); ep 524 drivers/usb/gadget/udc/snps_udc_core.c struct udc_ep *ep; ep 529 drivers/usb/gadget/udc/snps_udc_core.c ep = container_of(usbep, struct udc_ep, ep); ep 531 drivers/usb/gadget/udc/snps_udc_core.c VDBG(ep->dev, "udc_alloc_req(): ep%d\n", ep->num); ep 539 drivers/usb/gadget/udc/snps_udc_core.c if (ep->dma) { ep 541 drivers/usb/gadget/udc/snps_udc_core.c dma_desc = dma_pool_alloc(ep->dev->data_requests, gfp, ep 548 drivers/usb/gadget/udc/snps_udc_core.c VDBG(ep->dev, "udc_alloc_req: req = %p dma_desc = %p, " ep 589 drivers/usb/gadget/udc/snps_udc_core.c struct udc_ep *ep; ep 595 drivers/usb/gadget/udc/snps_udc_core.c ep = container_of(usbep, struct udc_ep, ep); ep 597 drivers/usb/gadget/udc/snps_udc_core.c VDBG(ep->dev, "free_req req=%p\n", req); ep 600 drivers/usb/gadget/udc/snps_udc_core.c VDBG(ep->dev, "req->td_data=%p\n", req->td_data); ep 604 drivers/usb/gadget/udc/snps_udc_core.c udc_free_dma_chain(ep->dev, req); ep 606 drivers/usb/gadget/udc/snps_udc_core.c dma_pool_free(ep->dev->data_requests, req->td_data, ep 633 drivers/usb/gadget/udc/snps_udc_core.c static struct udc_request *udc_alloc_bna_dummy(struct udc_ep *ep) ep 639 drivers/usb/gadget/udc/snps_udc_core.c _req = udc_alloc_request(&ep->ep, GFP_ATOMIC); ep 642 drivers/usb/gadget/udc/snps_udc_core.c ep->bna_dummy_req = req; ep 650 drivers/usb/gadget/udc/snps_udc_core.c udc_txfifo_write(struct udc_ep *ep, struct usb_request *req) ep 658 drivers/usb/gadget/udc/snps_udc_core.c if (!req || !ep) ep 667 drivers/usb/gadget/udc/snps_udc_core.c bytes = ep->ep.maxpacket; ep 673 drivers/usb/gadget/udc/snps_udc_core.c writel(*(buf + i), ep->txfifo); ep 678 drivers/usb/gadget/udc/snps_udc_core.c ep->txfifo); ep 682 drivers/usb/gadget/udc/snps_udc_core.c writel(0, &ep->regs->confirm); ep 723 drivers/usb/gadget/udc/snps_udc_core.c udc_rxfifo_read(struct udc_ep *ep, struct udc_request *req) ep 731 drivers/usb/gadget/udc/snps_udc_core.c bytes = readl(&ep->regs->sts); ep 737 drivers/usb/gadget/udc/snps_udc_core.c if ((buf_space % ep->ep.maxpacket) != 0) { ep 738 drivers/usb/gadget/udc/snps_udc_core.c DBG(ep->dev, ep 740 drivers/usb/gadget/udc/snps_udc_core.c ep->ep.name, bytes, buf_space); ep 748 drivers/usb/gadget/udc/snps_udc_core.c if (((bytes % ep->ep.maxpacket) != 0) || (!bytes) ep 753 drivers/usb/gadget/udc/snps_udc_core.c VDBG(ep->dev, "ep %s: rxfifo read %d bytes\n", ep->ep.name, bytes); ep 754 drivers/usb/gadget/udc/snps_udc_core.c udc_rxfifo_read_bytes(ep->dev, buf, bytes); ep 761 drivers/usb/gadget/udc/snps_udc_core.c struct udc_ep *ep, ep 775 drivers/usb/gadget/udc/snps_udc_core.c VDBG(ep->dev, "udc_create_dma_chain: bytes=%ld buf_len=%ld\n", ep 780 drivers/usb/gadget/udc/snps_udc_core.c if (!ep->in) ep 784 drivers/usb/gadget/udc/snps_udc_core.c len = req->req.length / ep->ep.maxpacket; ep 785 drivers/usb/gadget/udc/snps_udc_core.c if (req->req.length % ep->ep.maxpacket) ep 791 drivers/usb/gadget/udc/snps_udc_core.c udc_free_dma_chain(ep->dev, req); ep 801 drivers/usb/gadget/udc/snps_udc_core.c td = dma_pool_alloc(ep->dev->data_requests, ep 839 drivers/usb/gadget/udc/snps_udc_core.c if (ep->in) { ep 843 drivers/usb/gadget/udc/snps_udc_core.c ep->ep.maxpacket, ep 857 drivers/usb/gadget/udc/snps_udc_core.c if (ep->in) { ep 877 drivers/usb/gadget/udc/snps_udc_core.c static int prep_dma(struct udc_ep *ep, struct udc_request *req, gfp_t gfp) ep 882 drivers/usb/gadget/udc/snps_udc_core.c VDBG(ep->dev, "prep_dma\n"); ep 883 drivers/usb/gadget/udc/snps_udc_core.c VDBG(ep->dev, "prep_dma ep%d req->td_data=%p\n", ep 884 drivers/usb/gadget/udc/snps_udc_core.c ep->num, req->td_data); ep 895 drivers/usb/gadget/udc/snps_udc_core.c retval = udc_create_dma_chain(ep, req, ep->ep.maxpacket, gfp); ep 898 drivers/usb/gadget/udc/snps_udc_core.c DBG(ep->dev, "Out of DMA memory\n"); ep 901 drivers/usb/gadget/udc/snps_udc_core.c if (ep->in) { ep 902 drivers/usb/gadget/udc/snps_udc_core.c if (req->req.length == ep->ep.maxpacket) { ep 906 drivers/usb/gadget/udc/snps_udc_core.c ep->ep.maxpacket, ep 914 drivers/usb/gadget/udc/snps_udc_core.c if (ep->in) { ep 915 drivers/usb/gadget/udc/snps_udc_core.c VDBG(ep->dev, "IN: use_dma_ppb=%d req->req.len=%d " ep 918 drivers/usb/gadget/udc/snps_udc_core.c ep->ep.maxpacket, ep->num); ep 923 drivers/usb/gadget/udc/snps_udc_core.c if (!use_dma_ppb || req->req.length < ep->ep.maxpacket ep 924 drivers/usb/gadget/udc/snps_udc_core.c || ep->num == UDC_EP0OUT_IX ep 925 drivers/usb/gadget/udc/snps_udc_core.c || ep->num == UDC_EP0IN_IX) { ep 943 drivers/usb/gadget/udc/snps_udc_core.c VDBG(ep->dev, "OUT set host ready\n"); ep 951 drivers/usb/gadget/udc/snps_udc_core.c if (ep->naking) { ep 952 drivers/usb/gadget/udc/snps_udc_core.c tmp = readl(&ep->regs->ctl); ep 954 drivers/usb/gadget/udc/snps_udc_core.c writel(tmp, &ep->regs->ctl); ep 955 drivers/usb/gadget/udc/snps_udc_core.c ep->naking = 0; ep 956 drivers/usb/gadget/udc/snps_udc_core.c UDC_QUEUE_CNAK(ep, ep->num); ep 966 drivers/usb/gadget/udc/snps_udc_core.c complete_req(struct udc_ep *ep, struct udc_request *req, int sts) ep 967 drivers/usb/gadget/udc/snps_udc_core.c __releases(ep->dev->lock) ep 968 drivers/usb/gadget/udc/snps_udc_core.c __acquires(ep->dev->lock) ep 973 drivers/usb/gadget/udc/snps_udc_core.c VDBG(ep->dev, "complete_req(): ep%d\n", ep->num); ep 975 drivers/usb/gadget/udc/snps_udc_core.c dev = ep->dev; ep 977 drivers/usb/gadget/udc/snps_udc_core.c if (ep->dma) ep 978 drivers/usb/gadget/udc/snps_udc_core.c usb_gadget_unmap_request(&dev->gadget, &req->req, ep->in); ep 980 drivers/usb/gadget/udc/snps_udc_core.c halted = ep->halted; ep 981 drivers/usb/gadget/udc/snps_udc_core.c ep->halted = 1; ep 990 drivers/usb/gadget/udc/snps_udc_core.c VDBG(ep->dev, "req %p => complete %d bytes at %s with sts %d\n", ep 991 drivers/usb/gadget/udc/snps_udc_core.c &req->req, req->req.length, ep->ep.name, sts); ep 994 drivers/usb/gadget/udc/snps_udc_core.c usb_gadget_giveback_request(&ep->ep, &req->req); ep 996 drivers/usb/gadget/udc/snps_udc_core.c ep->halted = halted; ep 1059 drivers/usb/gadget/udc/snps_udc_core.c struct udc_ep *ep; ep 1071 drivers/usb/gadget/udc/snps_udc_core.c ep = container_of(usbep, struct udc_ep, ep); ep 1072 drivers/usb/gadget/udc/snps_udc_core.c if (!ep->ep.desc && (ep->num != 0 && ep->num != UDC_EP0OUT_IX)) ep 1075 drivers/usb/gadget/udc/snps_udc_core.c VDBG(ep->dev, "udc_queue(): ep%d-in=%d\n", ep->num, ep->in); ep 1076 drivers/usb/gadget/udc/snps_udc_core.c dev = ep->dev; ep 1082 drivers/usb/gadget/udc/snps_udc_core.c if (ep->dma) { ep 1084 drivers/usb/gadget/udc/snps_udc_core.c retval = usb_gadget_map_request(&udc->gadget, usbreq, ep->in); ep 1099 drivers/usb/gadget/udc/snps_udc_core.c if (list_empty(&ep->queue)) { ep 1103 drivers/usb/gadget/udc/snps_udc_core.c complete_req(ep, req, 0); ep 1104 drivers/usb/gadget/udc/snps_udc_core.c VDBG(dev, "%s: zlp\n", ep->ep.name); ep 1118 drivers/usb/gadget/udc/snps_udc_core.c tmp = readl(&dev->ep[UDC_EP0IN_IX].regs->ctl); ep 1120 drivers/usb/gadget/udc/snps_udc_core.c writel(tmp, &dev->ep[UDC_EP0IN_IX].regs->ctl); ep 1121 drivers/usb/gadget/udc/snps_udc_core.c dev->ep[UDC_EP0IN_IX].naking = 0; ep 1122 drivers/usb/gadget/udc/snps_udc_core.c UDC_QUEUE_CNAK(&dev->ep[UDC_EP0IN_IX], ep 1128 drivers/usb/gadget/udc/snps_udc_core.c if (ep->dma) { ep 1129 drivers/usb/gadget/udc/snps_udc_core.c retval = prep_dma(ep, req, GFP_ATOMIC); ep 1133 drivers/usb/gadget/udc/snps_udc_core.c if (ep->in) { ep 1142 drivers/usb/gadget/udc/snps_udc_core.c if (!ep->in) { ep 1158 drivers/usb/gadget/udc/snps_udc_core.c if (ep->bna_occurred) { ep 1160 drivers/usb/gadget/udc/snps_udc_core.c memcpy(ep->bna_dummy_req->td_data, ep 1166 drivers/usb/gadget/udc/snps_udc_core.c writel(req->td_phys, &ep->regs->desptr); ep 1169 drivers/usb/gadget/udc/snps_udc_core.c if (ep->naking) { ep 1170 drivers/usb/gadget/udc/snps_udc_core.c tmp = readl(&ep->regs->ctl); ep 1172 drivers/usb/gadget/udc/snps_udc_core.c writel(tmp, &ep->regs->ctl); ep 1173 drivers/usb/gadget/udc/snps_udc_core.c ep->naking = 0; ep 1174 drivers/usb/gadget/udc/snps_udc_core.c UDC_QUEUE_CNAK(ep, ep->num); ep 1177 drivers/usb/gadget/udc/snps_udc_core.c if (ep->in) { ep 1180 drivers/usb/gadget/udc/snps_udc_core.c tmp &= AMD_UNMASK_BIT(ep->num); ep 1183 drivers/usb/gadget/udc/snps_udc_core.c } else if (ep->in) { ep 1186 drivers/usb/gadget/udc/snps_udc_core.c tmp &= AMD_UNMASK_BIT(ep->num); ep 1190 drivers/usb/gadget/udc/snps_udc_core.c } else if (ep->dma) { ep 1196 drivers/usb/gadget/udc/snps_udc_core.c if (ep->in) { ep 1197 drivers/usb/gadget/udc/snps_udc_core.c retval = prep_dma(ep, req, GFP_ATOMIC); ep 1206 drivers/usb/gadget/udc/snps_udc_core.c list_add_tail(&req->queue, &ep->queue); ep 1213 drivers/usb/gadget/udc/snps_udc_core.c if (ep->num != UDC_EP0OUT_IX) ep 1217 drivers/usb/gadget/udc/snps_udc_core.c if (!ep->in) { ep 1225 drivers/usb/gadget/udc/snps_udc_core.c if (udc_rxfifo_read(ep, req)) { ep 1227 drivers/usb/gadget/udc/snps_udc_core.c complete_req(ep, req, 0); ep 1241 drivers/usb/gadget/udc/snps_udc_core.c void empty_req_queue(struct udc_ep *ep) ep 1245 drivers/usb/gadget/udc/snps_udc_core.c ep->halted = 1; ep 1246 drivers/usb/gadget/udc/snps_udc_core.c while (!list_empty(&ep->queue)) { ep 1247 drivers/usb/gadget/udc/snps_udc_core.c req = list_entry(ep->queue.next, ep 1250 drivers/usb/gadget/udc/snps_udc_core.c complete_req(ep, req, -ESHUTDOWN); ep 1258 drivers/usb/gadget/udc/snps_udc_core.c struct udc_ep *ep; ep 1263 drivers/usb/gadget/udc/snps_udc_core.c ep = container_of(usbep, struct udc_ep, ep); ep 1264 drivers/usb/gadget/udc/snps_udc_core.c if (!usbep || !usbreq || (!ep->ep.desc && (ep->num != 0 ep 1265 drivers/usb/gadget/udc/snps_udc_core.c && ep->num != UDC_EP0OUT_IX))) ep 1270 drivers/usb/gadget/udc/snps_udc_core.c spin_lock_irqsave(&ep->dev->lock, iflags); ep 1271 drivers/usb/gadget/udc/snps_udc_core.c halted = ep->halted; ep 1272 drivers/usb/gadget/udc/snps_udc_core.c ep->halted = 1; ep 1274 drivers/usb/gadget/udc/snps_udc_core.c if (ep->queue.next == &req->queue) { ep 1275 drivers/usb/gadget/udc/snps_udc_core.c if (ep->dma && req->dma_going) { ep 1276 drivers/usb/gadget/udc/snps_udc_core.c if (ep->in) ep 1277 drivers/usb/gadget/udc/snps_udc_core.c ep->cancel_transfer = 1; ep 1292 drivers/usb/gadget/udc/snps_udc_core.c ep->cancel_transfer = 1; ep 1294 drivers/usb/gadget/udc/snps_udc_core.c udc_init_bna_dummy(ep->req); ep 1295 drivers/usb/gadget/udc/snps_udc_core.c writel(ep->bna_dummy_req->td_phys, ep 1296 drivers/usb/gadget/udc/snps_udc_core.c &ep->regs->desptr); ep 1302 drivers/usb/gadget/udc/snps_udc_core.c complete_req(ep, req, -ECONNRESET); ep 1303 drivers/usb/gadget/udc/snps_udc_core.c ep->halted = halted; ep 1305 drivers/usb/gadget/udc/snps_udc_core.c spin_unlock_irqrestore(&ep->dev->lock, iflags); ep 1313 drivers/usb/gadget/udc/snps_udc_core.c struct udc_ep *ep; ep 1323 drivers/usb/gadget/udc/snps_udc_core.c ep = container_of(usbep, struct udc_ep, ep); ep 1324 drivers/usb/gadget/udc/snps_udc_core.c if (!ep->ep.desc && (ep->num != 0 && ep->num != UDC_EP0OUT_IX)) ep 1326 drivers/usb/gadget/udc/snps_udc_core.c if (!ep->dev->driver || ep->dev->gadget.speed == USB_SPEED_UNKNOWN) ep 1332 drivers/usb/gadget/udc/snps_udc_core.c if (ep->num == 0) ep 1333 drivers/usb/gadget/udc/snps_udc_core.c ep->dev->stall_ep0in = 1; ep 1339 drivers/usb/gadget/udc/snps_udc_core.c tmp = readl(&ep->regs->ctl); ep 1341 drivers/usb/gadget/udc/snps_udc_core.c writel(tmp, &ep->regs->ctl); ep 1342 drivers/usb/gadget/udc/snps_udc_core.c ep->halted = 1; ep 1350 drivers/usb/gadget/udc/snps_udc_core.c DBG(ep->dev, "start polltimer\n"); ep 1357 drivers/usb/gadget/udc/snps_udc_core.c if (ep->halted) { ep 1358 drivers/usb/gadget/udc/snps_udc_core.c tmp = readl(&ep->regs->ctl); ep 1363 drivers/usb/gadget/udc/snps_udc_core.c writel(tmp, &ep->regs->ctl); ep 1364 drivers/usb/gadget/udc/snps_udc_core.c ep->halted = 0; ep 1365 drivers/usb/gadget/udc/snps_udc_core.c UDC_QUEUE_CNAK(ep, ep->num); ep 1444 drivers/usb/gadget/udc/snps_udc_core.c list_add_tail(&dev->ep[UDC_EPIN_STATUS_IX].ep.ep_list, ep 1446 drivers/usb/gadget/udc/snps_udc_core.c list_add_tail(&dev->ep[UDC_EPIN_IX].ep.ep_list, ep 1448 drivers/usb/gadget/udc/snps_udc_core.c list_add_tail(&dev->ep[UDC_EPOUT_IX].ep.ep_list, ep 1452 drivers/usb/gadget/udc/snps_udc_core.c dev->ep[UDC_EPIN_STATUS_IX].fifo_depth = UDC_EPIN_SMALLINT_BUFF_SIZE; ep 1454 drivers/usb/gadget/udc/snps_udc_core.c dev->ep[UDC_EPIN_IX].fifo_depth = UDC_FS_EPIN_BUFF_SIZE; ep 1456 drivers/usb/gadget/udc/snps_udc_core.c dev->ep[UDC_EPIN_IX].fifo_depth = hs_tx_buf; ep 1457 drivers/usb/gadget/udc/snps_udc_core.c dev->ep[UDC_EPOUT_IX].fifo_depth = UDC_RXFIFO_SIZE; ep 1529 drivers/usb/gadget/udc/snps_udc_core.c struct udc_ep *ep; ep 1545 drivers/usb/gadget/udc/snps_udc_core.c ep = &dev->ep[tmp]; ep 1546 drivers/usb/gadget/udc/snps_udc_core.c ep->dev = dev; ep 1547 drivers/usb/gadget/udc/snps_udc_core.c ep->ep.name = ep_info[tmp].name; ep 1548 drivers/usb/gadget/udc/snps_udc_core.c ep->ep.caps = ep_info[tmp].caps; ep 1549 drivers/usb/gadget/udc/snps_udc_core.c ep->num = tmp; ep 1551 drivers/usb/gadget/udc/snps_udc_core.c ep->txfifo = dev->txfifo; ep 1555 drivers/usb/gadget/udc/snps_udc_core.c ep->fifo_depth = UDC_TXFIFO_SIZE; ep 1556 drivers/usb/gadget/udc/snps_udc_core.c ep->in = 1; ep 1558 drivers/usb/gadget/udc/snps_udc_core.c ep->fifo_depth = UDC_RXFIFO_SIZE; ep 1559 drivers/usb/gadget/udc/snps_udc_core.c ep->in = 0; ep 1562 drivers/usb/gadget/udc/snps_udc_core.c ep->regs = &dev->ep_regs[tmp]; ep 1568 drivers/usb/gadget/udc/snps_udc_core.c if (!ep->ep.desc) ep 1569 drivers/usb/gadget/udc/snps_udc_core.c ep_init(dev->regs, ep); ep 1577 drivers/usb/gadget/udc/snps_udc_core.c ep->dma = &dev->regs->ctl; ep 1583 drivers/usb/gadget/udc/snps_udc_core.c reg = readl(&dev->ep[tmp].regs->ctl); ep 1585 drivers/usb/gadget/udc/snps_udc_core.c writel(reg, &dev->ep[tmp].regs->ctl); ep 1586 drivers/usb/gadget/udc/snps_udc_core.c dev->ep[tmp].naking = 1; ep 1593 drivers/usb/gadget/udc/snps_udc_core.c usb_ep_set_maxpacket_limit(&dev->ep[UDC_EP0IN_IX].ep, ep 1595 drivers/usb/gadget/udc/snps_udc_core.c usb_ep_set_maxpacket_limit(&dev->ep[UDC_EP0OUT_IX].ep, ep 1598 drivers/usb/gadget/udc/snps_udc_core.c usb_ep_set_maxpacket_limit(&dev->ep[UDC_EP0IN_IX].ep, ep 1600 drivers/usb/gadget/udc/snps_udc_core.c usb_ep_set_maxpacket_limit(&dev->ep[UDC_EP0OUT_IX].ep, ep 1608 drivers/usb/gadget/udc/snps_udc_core.c dev->gadget.ep0 = &dev->ep[UDC_EP0IN_IX].ep; ep 1609 drivers/usb/gadget/udc/snps_udc_core.c dev->ep[UDC_EP0IN_IX].halted = 0; ep 1677 drivers/usb/gadget/udc/snps_udc_core.c empty_req_queue(&dev->ep[tmp]); ep 1683 drivers/usb/gadget/udc/snps_udc_core.c &dev->ep[UDC_EP0IN_IX]); ep 1781 drivers/usb/gadget/udc/snps_udc_core.c static void udc_handle_halt_state(struct udc_ep *ep) ep 1785 drivers/usb/gadget/udc/snps_udc_core.c if (ep->halted == 1) { ep 1786 drivers/usb/gadget/udc/snps_udc_core.c tmp = readl(&ep->regs->ctl); ep 1803 drivers/usb/gadget/udc/snps_udc_core.c writel(tmp, &ep->regs->ctl); ep 1804 drivers/usb/gadget/udc/snps_udc_core.c ep->halted = 0; ep 1805 drivers/usb/gadget/udc/snps_udc_core.c UDC_QUEUE_CNAK(ep, ep->num); ep 1813 drivers/usb/gadget/udc/snps_udc_core.c struct udc_ep *ep; ep 1821 drivers/usb/gadget/udc/snps_udc_core.c ep = &udc->ep[UDC_EPIN_IX]; ep 1822 drivers/usb/gadget/udc/snps_udc_core.c udc_handle_halt_state(ep); ep 1823 drivers/usb/gadget/udc/snps_udc_core.c if (ep->halted) ep 1826 drivers/usb/gadget/udc/snps_udc_core.c ep = &udc->ep[UDC_EPOUT_IX]; ep 1827 drivers/usb/gadget/udc/snps_udc_core.c udc_handle_halt_state(ep); ep 1828 drivers/usb/gadget/udc/snps_udc_core.c if (ep->halted) ep 1852 drivers/usb/gadget/udc/snps_udc_core.c tmp = readl(&dev->ep[UDC_EP0IN_IX].regs->ctl); ep 1854 drivers/usb/gadget/udc/snps_udc_core.c writel(tmp, &dev->ep[UDC_EP0IN_IX].regs->ctl); ep 1857 drivers/usb/gadget/udc/snps_udc_core.c dev->ep[UDC_EP0IN_IX].in = 1; ep 1858 drivers/usb/gadget/udc/snps_udc_core.c dev->ep[UDC_EP0OUT_IX].in = 0; ep 1861 drivers/usb/gadget/udc/snps_udc_core.c tmp = readl(&dev->ep[UDC_EP0IN_IX].regs->bufin_framenum); ep 1868 drivers/usb/gadget/udc/snps_udc_core.c writel(tmp, &dev->ep[UDC_EP0IN_IX].regs->bufin_framenum); ep 1871 drivers/usb/gadget/udc/snps_udc_core.c tmp = readl(&dev->ep[UDC_EP0IN_IX].regs->bufout_maxpkt); ep 1878 drivers/usb/gadget/udc/snps_udc_core.c writel(tmp, &dev->ep[UDC_EP0IN_IX].regs->bufout_maxpkt); ep 1881 drivers/usb/gadget/udc/snps_udc_core.c tmp = readl(&dev->ep[UDC_EP0OUT_IX].regs->bufout_maxpkt); ep 1888 drivers/usb/gadget/udc/snps_udc_core.c writel(tmp, &dev->ep[UDC_EP0OUT_IX].regs->bufout_maxpkt); ep 1901 drivers/usb/gadget/udc/snps_udc_core.c dev->ep[UDC_EP0OUT_IX].td->status |= ep 1904 drivers/usb/gadget/udc/snps_udc_core.c writel(dev->ep[UDC_EP0OUT_IX].td_stp_dma, ep 1905 drivers/usb/gadget/udc/snps_udc_core.c &dev->ep[UDC_EP0OUT_IX].regs->subptr); ep 1906 drivers/usb/gadget/udc/snps_udc_core.c writel(dev->ep[UDC_EP0OUT_IX].td_phys, ep 1907 drivers/usb/gadget/udc/snps_udc_core.c &dev->ep[UDC_EP0OUT_IX].regs->desptr); ep 1929 drivers/usb/gadget/udc/snps_udc_core.c tmp = readl(&dev->ep[UDC_EP0IN_IX].regs->ctl); ep 1931 drivers/usb/gadget/udc/snps_udc_core.c writel(tmp, &dev->ep[UDC_EP0IN_IX].regs->ctl); ep 1932 drivers/usb/gadget/udc/snps_udc_core.c dev->ep[UDC_EP0IN_IX].naking = 0; ep 1933 drivers/usb/gadget/udc/snps_udc_core.c UDC_QUEUE_CNAK(&dev->ep[UDC_EP0IN_IX], UDC_EP0IN_IX); ep 1936 drivers/usb/gadget/udc/snps_udc_core.c tmp = readl(&dev->ep[UDC_EP0OUT_IX].regs->ctl); ep 1938 drivers/usb/gadget/udc/snps_udc_core.c writel(tmp, &dev->ep[UDC_EP0OUT_IX].regs->ctl); ep 1939 drivers/usb/gadget/udc/snps_udc_core.c dev->ep[UDC_EP0OUT_IX].naking = 0; ep 1940 drivers/usb/gadget/udc/snps_udc_core.c UDC_QUEUE_CNAK(&dev->ep[UDC_EP0OUT_IX], UDC_EP0OUT_IX); ep 1968 drivers/usb/gadget/udc/snps_udc_core.c dev->ep[UDC_EP0OUT_IX].ep.driver_data = ep 1969 drivers/usb/gadget/udc/snps_udc_core.c dev->ep[UDC_EP0IN_IX].ep.driver_data; ep 1996 drivers/usb/gadget/udc/snps_udc_core.c empty_req_queue(&dev->ep[tmp]); ep 2035 drivers/usb/gadget/udc/snps_udc_core.c reg = readl(&dev->ep[tmp].regs->ctl); ep 2037 drivers/usb/gadget/udc/snps_udc_core.c writel(reg, &dev->ep[tmp].regs->ctl); ep 2038 drivers/usb/gadget/udc/snps_udc_core.c dev->ep[tmp].naking = 0; ep 2039 drivers/usb/gadget/udc/snps_udc_core.c UDC_QUEUE_CNAK(&dev->ep[tmp], dev->ep[tmp].num); ep 2046 drivers/usb/gadget/udc/snps_udc_core.c reg = readl(&dev->ep[UDC_EP0OUT_IX].regs->ctl); ep 2048 drivers/usb/gadget/udc/snps_udc_core.c writel(reg, &dev->ep[UDC_EP0OUT_IX].regs->ctl); ep 2049 drivers/usb/gadget/udc/snps_udc_core.c dev->ep[UDC_EP0OUT_IX].naking = 0; ep 2050 drivers/usb/gadget/udc/snps_udc_core.c UDC_QUEUE_CNAK(&dev->ep[UDC_EP0OUT_IX], ep 2051 drivers/usb/gadget/udc/snps_udc_core.c dev->ep[UDC_EP0OUT_IX].num); ep 2087 drivers/usb/gadget/udc/snps_udc_core.c struct udc_ep *ep; ep 2094 drivers/usb/gadget/udc/snps_udc_core.c ep = &dev->ep[ep_ix]; ep 2096 drivers/usb/gadget/udc/snps_udc_core.c tmp = readl(&ep->regs->sts); ep 2101 drivers/usb/gadget/udc/snps_udc_core.c ep->num, readl(&ep->regs->desptr)); ep 2103 drivers/usb/gadget/udc/snps_udc_core.c writel(tmp | AMD_BIT(UDC_EPSTS_BNA), &ep->regs->sts); ep 2104 drivers/usb/gadget/udc/snps_udc_core.c if (!ep->cancel_transfer) ep 2105 drivers/usb/gadget/udc/snps_udc_core.c ep->bna_occurred = 1; ep 2107 drivers/usb/gadget/udc/snps_udc_core.c ep->cancel_transfer = 0; ep 2114 drivers/usb/gadget/udc/snps_udc_core.c dev_err(dev->dev, "HE ep%dout occurred\n", ep->num); ep 2117 drivers/usb/gadget/udc/snps_udc_core.c writel(tmp | AMD_BIT(UDC_EPSTS_HE), &ep->regs->sts); ep 2122 drivers/usb/gadget/udc/snps_udc_core.c if (!list_empty(&ep->queue)) { ep 2125 drivers/usb/gadget/udc/snps_udc_core.c req = list_entry(ep->queue.next, ep 2136 drivers/usb/gadget/udc/snps_udc_core.c if (req && udc_rxfifo_read(ep, req)) { ep 2140 drivers/usb/gadget/udc/snps_udc_core.c complete_req(ep, req, 0); ep 2142 drivers/usb/gadget/udc/snps_udc_core.c if (!list_empty(&ep->queue) && !ep->halted) { ep 2143 drivers/usb/gadget/udc/snps_udc_core.c req = list_entry(ep->queue.next, ep 2150 drivers/usb/gadget/udc/snps_udc_core.c } else if (!ep->cancel_transfer && req) { ep 2163 drivers/usb/gadget/udc/snps_udc_core.c if (ep->bna_occurred) { ep 2165 drivers/usb/gadget/udc/snps_udc_core.c memcpy(req->td_data, ep->bna_dummy_req->td_data, ep 2167 drivers/usb/gadget/udc/snps_udc_core.c ep->bna_occurred = 0; ep 2168 drivers/usb/gadget/udc/snps_udc_core.c udc_init_bna_dummy(ep->req); ep 2206 drivers/usb/gadget/udc/snps_udc_core.c if ((tmp % ep->ep.maxpacket) != 0) { ep 2208 drivers/usb/gadget/udc/snps_udc_core.c ep->ep.name, count, tmp); ep 2216 drivers/usb/gadget/udc/snps_udc_core.c complete_req(ep, req, 0); ep 2219 drivers/usb/gadget/udc/snps_udc_core.c if (!list_empty(&ep->queue) && !ep->halted) { ep 2220 drivers/usb/gadget/udc/snps_udc_core.c req = list_entry(ep->queue.next, ep 2231 drivers/usb/gadget/udc/snps_udc_core.c if (prep_dma(ep, req, GFP_ATOMIC) != 0) ep 2235 drivers/usb/gadget/udc/snps_udc_core.c &ep->regs->desptr); ep 2245 drivers/usb/gadget/udc/snps_udc_core.c if (ep->bna_dummy_req) { ep 2247 drivers/usb/gadget/udc/snps_udc_core.c writel(ep->bna_dummy_req->td_phys, ep 2248 drivers/usb/gadget/udc/snps_udc_core.c &ep->regs->desptr); ep 2249 drivers/usb/gadget/udc/snps_udc_core.c ep->bna_occurred = 0; ep 2266 drivers/usb/gadget/udc/snps_udc_core.c if (ep->num != UDC_EP0OUT_IX) ep 2278 drivers/usb/gadget/udc/snps_udc_core.c } else if (ep->cancel_transfer) { ep 2280 drivers/usb/gadget/udc/snps_udc_core.c ep->cancel_transfer = 0; ep 2291 drivers/usb/gadget/udc/snps_udc_core.c writel(UDC_EPSTS_OUT_CLEAR, &ep->regs->sts); ep 2302 drivers/usb/gadget/udc/snps_udc_core.c struct udc_ep *ep; ep 2307 drivers/usb/gadget/udc/snps_udc_core.c ep = &dev->ep[ep_ix]; ep 2309 drivers/usb/gadget/udc/snps_udc_core.c epsts = readl(&ep->regs->sts); ep 2315 drivers/usb/gadget/udc/snps_udc_core.c ep->num, ep 2316 drivers/usb/gadget/udc/snps_udc_core.c (unsigned long) readl(&ep->regs->desptr)); ep 2319 drivers/usb/gadget/udc/snps_udc_core.c writel(epsts, &ep->regs->sts); ep 2328 drivers/usb/gadget/udc/snps_udc_core.c ep->num, (unsigned long) readl(&ep->regs->desptr)); ep 2331 drivers/usb/gadget/udc/snps_udc_core.c writel(epsts | AMD_BIT(UDC_EPSTS_HE), &ep->regs->sts); ep 2340 drivers/usb/gadget/udc/snps_udc_core.c if (!ep->cancel_transfer && !list_empty(&ep->queue)) { ep 2341 drivers/usb/gadget/udc/snps_udc_core.c req = list_entry(ep->queue.next, ep 2358 drivers/usb/gadget/udc/snps_udc_core.c complete_req(ep, req, 0); ep 2361 drivers/usb/gadget/udc/snps_udc_core.c if (list_empty(&ep->queue)) { ep 2364 drivers/usb/gadget/udc/snps_udc_core.c tmp |= AMD_BIT(ep->num); ep 2369 drivers/usb/gadget/udc/snps_udc_core.c ep->cancel_transfer = 0; ep 2379 drivers/usb/gadget/udc/snps_udc_core.c if (!list_empty(&ep->queue)) { ep 2381 drivers/usb/gadget/udc/snps_udc_core.c req = list_entry(ep->queue.next, ep 2386 drivers/usb/gadget/udc/snps_udc_core.c udc_txfifo_write(ep, &req->req); ep 2388 drivers/usb/gadget/udc/snps_udc_core.c if (len > ep->ep.maxpacket) ep 2389 drivers/usb/gadget/udc/snps_udc_core.c len = ep->ep.maxpacket; ep 2392 drivers/usb/gadget/udc/snps_udc_core.c || (len != ep->ep.maxpacket)) { ep 2394 drivers/usb/gadget/udc/snps_udc_core.c complete_req(ep, req, 0); ep 2409 drivers/usb/gadget/udc/snps_udc_core.c ep->ep.maxpacket) { ep 2416 drivers/usb/gadget/udc/snps_udc_core.c writel(req->td_phys, &ep->regs->desptr); ep 2426 drivers/usb/gadget/udc/snps_udc_core.c tmp = readl(&ep->regs->ctl); ep 2428 drivers/usb/gadget/udc/snps_udc_core.c writel(tmp, &ep->regs->ctl); ep 2432 drivers/usb/gadget/udc/snps_udc_core.c } else if (!use_dma && ep->in) { ep 2436 drivers/usb/gadget/udc/snps_udc_core.c tmp |= AMD_BIT(ep->num); ep 2442 drivers/usb/gadget/udc/snps_udc_core.c writel(epsts, &ep->regs->sts); ep 2459 drivers/usb/gadget/udc/snps_udc_core.c struct udc_ep *ep; ep 2462 drivers/usb/gadget/udc/snps_udc_core.c ep = &dev->ep[UDC_EP0OUT_IX]; ep 2467 drivers/usb/gadget/udc/snps_udc_core.c tmp = readl(&dev->ep[UDC_EP0OUT_IX].regs->sts); ep 2472 drivers/usb/gadget/udc/snps_udc_core.c &dev->ep[UDC_EP0OUT_IX].regs->sts); ep 2473 drivers/usb/gadget/udc/snps_udc_core.c ep->bna_occurred = 1; ep 2486 drivers/usb/gadget/udc/snps_udc_core.c ep->dev->stall_ep0in = 0; ep 2490 drivers/usb/gadget/udc/snps_udc_core.c tmp = readl(&dev->ep[UDC_EP0IN_IX].regs->ctl); ep 2492 drivers/usb/gadget/udc/snps_udc_core.c writel(tmp, &dev->ep[UDC_EP0IN_IX].regs->ctl); ep 2493 drivers/usb/gadget/udc/snps_udc_core.c dev->ep[UDC_EP0IN_IX].naking = 1; ep 2499 drivers/usb/gadget/udc/snps_udc_core.c &dev->ep[UDC_EP0OUT_IX].regs->sts); ep 2502 drivers/usb/gadget/udc/snps_udc_core.c dev->ep[UDC_EP0OUT_IX].td_stp->data12; ep 2504 drivers/usb/gadget/udc/snps_udc_core.c dev->ep[UDC_EP0OUT_IX].td_stp->data34; ep 2506 drivers/usb/gadget/udc/snps_udc_core.c dev->ep[UDC_EP0OUT_IX].td_stp->status = ep 2515 drivers/usb/gadget/udc/snps_udc_core.c dev->gadget.ep0 = &dev->ep[UDC_EP0IN_IX].ep; ep 2520 drivers/usb/gadget/udc/snps_udc_core.c dev->gadget.ep0 = &dev->ep[UDC_EP0OUT_IX].ep; ep 2525 drivers/usb/gadget/udc/snps_udc_core.c if (ep->bna_dummy_req) { ep 2527 drivers/usb/gadget/udc/snps_udc_core.c writel(ep->bna_dummy_req->td_phys, ep 2528 drivers/usb/gadget/udc/snps_udc_core.c &dev->ep[UDC_EP0OUT_IX].regs->desptr); ep 2529 drivers/usb/gadget/udc/snps_udc_core.c ep->bna_occurred = 0; ep 2533 drivers/usb/gadget/udc/snps_udc_core.c dev->ep[UDC_EP0OUT_IX].naking = 1; ep 2560 drivers/usb/gadget/udc/snps_udc_core.c ep_tmp = &udc->ep[UDC_EPIN_IX]; ep 2561 drivers/usb/gadget/udc/snps_udc_core.c udc_set_halt(&ep_tmp->ep, 0); ep 2562 drivers/usb/gadget/udc/snps_udc_core.c ep_tmp = &udc->ep[UDC_EPOUT_IX]; ep 2563 drivers/usb/gadget/udc/snps_udc_core.c udc_set_halt(&ep_tmp->ep, 0); ep 2572 drivers/usb/gadget/udc/snps_udc_core.c tmp = readl(&dev->ep[UDC_EP0IN_IX].regs->ctl); ep 2578 drivers/usb/gadget/udc/snps_udc_core.c writel(tmp, &dev->ep[UDC_EP0IN_IX].regs->ctl); ep 2579 drivers/usb/gadget/udc/snps_udc_core.c dev->ep[UDC_EP0IN_IX].naking = 0; ep 2580 drivers/usb/gadget/udc/snps_udc_core.c UDC_QUEUE_CNAK(&dev->ep[UDC_EP0IN_IX], UDC_EP0IN_IX); ep 2585 drivers/usb/gadget/udc/snps_udc_core.c writel(tmp, &dev->ep[UDC_EP0IN_IX].regs->ctl); ep 2592 drivers/usb/gadget/udc/snps_udc_core.c tmp = readl(&dev->ep[UDC_EP0OUT_IX].regs->ctl); ep 2594 drivers/usb/gadget/udc/snps_udc_core.c writel(tmp, &dev->ep[UDC_EP0OUT_IX].regs->ctl); ep 2595 drivers/usb/gadget/udc/snps_udc_core.c dev->ep[UDC_EP0OUT_IX].naking = 0; ep 2596 drivers/usb/gadget/udc/snps_udc_core.c UDC_QUEUE_CNAK(&dev->ep[UDC_EP0OUT_IX], UDC_EP0OUT_IX); ep 2602 drivers/usb/gadget/udc/snps_udc_core.c &dev->ep[UDC_EP0OUT_IX].regs->sts); ep 2608 drivers/usb/gadget/udc/snps_udc_core.c writel(UDC_EPSTS_OUT_CLEAR, &dev->ep[UDC_EP0OUT_IX].regs->sts); ep 2613 drivers/usb/gadget/udc/snps_udc_core.c if (list_empty(&dev->ep[UDC_EP0OUT_IX].queue)) { ep 2617 drivers/usb/gadget/udc/snps_udc_core.c dev->ep[UDC_EP0OUT_IX].td->status = ep 2619 drivers/usb/gadget/udc/snps_udc_core.c dev->ep[UDC_EP0OUT_IX].td->status, ep 2630 drivers/usb/gadget/udc/snps_udc_core.c writel(dev->ep[UDC_EP0OUT_IX].td_phys, ep 2631 drivers/usb/gadget/udc/snps_udc_core.c &dev->ep[UDC_EP0OUT_IX].regs->desptr); ep 2638 drivers/usb/gadget/udc/snps_udc_core.c count = readl(&dev->ep[UDC_EP0OUT_IX].regs->sts); ep 2648 drivers/usb/gadget/udc/snps_udc_core.c readl(&dev->ep[UDC_EP0OUT_IX].regs->confirm); ep 2670 drivers/usb/gadget/udc/snps_udc_core.c struct udc_ep *ep; ep 2674 drivers/usb/gadget/udc/snps_udc_core.c ep = &dev->ep[UDC_EP0IN_IX]; ep 2679 drivers/usb/gadget/udc/snps_udc_core.c tmp = readl(&dev->ep[UDC_EP0IN_IX].regs->sts); ep 2687 drivers/usb/gadget/udc/snps_udc_core.c &dev->ep[UDC_EP0IN_IX].regs->sts); ep 2693 drivers/usb/gadget/udc/snps_udc_core.c if (ep->dma) { ep 2696 drivers/usb/gadget/udc/snps_udc_core.c &dev->ep[UDC_EP0IN_IX].regs->sts); ep 2701 drivers/usb/gadget/udc/snps_udc_core.c tmp = readl(&ep->regs->ctl); ep 2703 drivers/usb/gadget/udc/snps_udc_core.c writel(tmp, &ep->regs->ctl); ep 2705 drivers/usb/gadget/udc/snps_udc_core.c if (!list_empty(&ep->queue)) { ep 2707 drivers/usb/gadget/udc/snps_udc_core.c req = list_entry(ep->queue.next, ep 2710 drivers/usb/gadget/udc/snps_udc_core.c if (ep->dma) { ep 2712 drivers/usb/gadget/udc/snps_udc_core.c writel(req->td_phys, &ep->regs->desptr); ep 2722 drivers/usb/gadget/udc/snps_udc_core.c readl(&dev->ep[UDC_EP0IN_IX].regs->ctl); ep 2725 drivers/usb/gadget/udc/snps_udc_core.c &dev->ep[UDC_EP0IN_IX].regs->ctl); ep 2731 drivers/usb/gadget/udc/snps_udc_core.c complete_req(ep, req, 0); ep 2735 drivers/usb/gadget/udc/snps_udc_core.c udc_txfifo_write(ep, &req->req); ep 2739 drivers/usb/gadget/udc/snps_udc_core.c if (len > ep->ep.maxpacket) ep 2740 drivers/usb/gadget/udc/snps_udc_core.c len = ep->ep.maxpacket; ep 2744 drivers/usb/gadget/udc/snps_udc_core.c || (len != ep->ep.maxpacket)) { ep 2746 drivers/usb/gadget/udc/snps_udc_core.c complete_req(ep, req, 0); ep 2752 drivers/usb/gadget/udc/snps_udc_core.c ep->halted = 0; ep 2754 drivers/usb/gadget/udc/snps_udc_core.c if (!ep->dma) { ep 2757 drivers/usb/gadget/udc/snps_udc_core.c &dev->ep[UDC_EP0IN_IX].regs->sts); ep 2773 drivers/usb/gadget/udc/snps_udc_core.c struct udc_ep *ep; ep 2795 drivers/usb/gadget/udc/snps_udc_core.c ep = &dev->ep[i]; ep 2796 drivers/usb/gadget/udc/snps_udc_core.c if (ep->in) { ep 2799 drivers/usb/gadget/udc/snps_udc_core.c udc_csr_epix = ep->num; ep 2805 drivers/usb/gadget/udc/snps_udc_core.c udc_csr_epix = ep->num - UDC_CSR_EP_OUT_IX_OFS; ep 2810 drivers/usb/gadget/udc/snps_udc_core.c tmp = AMD_ADDBITS(tmp, ep->dev->cur_config, ep 2816 drivers/usb/gadget/udc/snps_udc_core.c ep->halted = 0; ep 2817 drivers/usb/gadget/udc/snps_udc_core.c tmp = readl(&ep->regs->ctl); ep 2819 drivers/usb/gadget/udc/snps_udc_core.c writel(tmp, &ep->regs->ctl); ep 2848 drivers/usb/gadget/udc/snps_udc_core.c ep = &dev->ep[i]; ep 2849 drivers/usb/gadget/udc/snps_udc_core.c if (ep->in) { ep 2852 drivers/usb/gadget/udc/snps_udc_core.c udc_csr_epix = ep->num; ep 2858 drivers/usb/gadget/udc/snps_udc_core.c udc_csr_epix = ep->num - UDC_CSR_EP_OUT_IX_OFS; ep 2865 drivers/usb/gadget/udc/snps_udc_core.c tmp = AMD_ADDBITS(tmp, ep->dev->cur_intf, ep 2869 drivers/usb/gadget/udc/snps_udc_core.c tmp = AMD_ADDBITS(tmp, ep->dev->cur_alt, ep 2875 drivers/usb/gadget/udc/snps_udc_core.c ep->halted = 0; ep 2876 drivers/usb/gadget/udc/snps_udc_core.c tmp = readl(&ep->regs->ctl); ep 2878 drivers/usb/gadget/udc/snps_udc_core.c writel(tmp, &ep->regs->ctl); ep 2910 drivers/usb/gadget/udc/snps_udc_core.c empty_req_queue(&dev->ep[UDC_EP0IN_IX]); ep 2911 drivers/usb/gadget/udc/snps_udc_core.c ep_init(dev->regs, &dev->ep[UDC_EP0IN_IX]); ep 2959 drivers/usb/gadget/udc/snps_udc_core.c empty_req_queue(&dev->ep[UDC_EP0IN_IX]); ep 2960 drivers/usb/gadget/udc/snps_udc_core.c ep_init(dev->regs, &dev->ep[UDC_EP0IN_IX]); ep 3078 drivers/usb/gadget/udc/snps_udc_core.c dma_pool_free(dev->stp_requests, dev->ep[UDC_EP0OUT_IX].td, ep 3079 drivers/usb/gadget/udc/snps_udc_core.c dev->ep[UDC_EP0OUT_IX].td_phys); ep 3080 drivers/usb/gadget/udc/snps_udc_core.c dma_pool_free(dev->stp_requests, dev->ep[UDC_EP0OUT_IX].td_stp, ep 3081 drivers/usb/gadget/udc/snps_udc_core.c dev->ep[UDC_EP0OUT_IX].td_stp_dma); ep 3111 drivers/usb/gadget/udc/snps_udc_core.c dev->ep[UDC_EP0IN_IX].dma = &dev->regs->ctl; ep 3123 drivers/usb/gadget/udc/snps_udc_core.c &dev->ep[UDC_EP0OUT_IX].td_stp_dma); ep 3128 drivers/usb/gadget/udc/snps_udc_core.c dev->ep[UDC_EP0OUT_IX].td_stp = td_stp; ep 3132 drivers/usb/gadget/udc/snps_udc_core.c &dev->ep[UDC_EP0OUT_IX].td_phys); ep 3137 drivers/usb/gadget/udc/snps_udc_core.c dev->ep[UDC_EP0OUT_IX].td = td_data; ep 3141 drivers/usb/gadget/udc/snps_udc_core.c dma_pool_free(dev->stp_requests, dev->ep[UDC_EP0OUT_IX].td_stp, ep 3142 drivers/usb/gadget/udc/snps_udc_core.c dev->ep[UDC_EP0OUT_IX].td_stp_dma); ep 63 drivers/usb/gadget/udc/snps_udc_plat.c empty_req_queue(&udc->ep[tmp]); ep 140 drivers/usb/gadget/udc/trace.h TP_PROTO(struct usb_ep *ep, int ret), ep 141 drivers/usb/gadget/udc/trace.h TP_ARGS(ep, ret), ep 155 drivers/usb/gadget/udc/trace.h snprintf(__get_str(name), UDC_TRACE_STR_MAX, "%s", ep->name); ep 156 drivers/usb/gadget/udc/trace.h __entry->maxpacket = ep->maxpacket; ep 157 drivers/usb/gadget/udc/trace.h __entry->maxpacket_limit = ep->maxpacket_limit; ep 158 drivers/usb/gadget/udc/trace.h __entry->max_streams = ep->max_streams; ep 159 drivers/usb/gadget/udc/trace.h __entry->mult = ep->mult; ep 160 drivers/usb/gadget/udc/trace.h __entry->maxburst = ep->maxburst; ep 161 drivers/usb/gadget/udc/trace.h __entry->address = ep->address, ep 162 drivers/usb/gadget/udc/trace.h __entry->claimed = ep->claimed; ep 163 drivers/usb/gadget/udc/trace.h __entry->enabled = ep->enabled; ep 174 drivers/usb/gadget/udc/trace.h TP_PROTO(struct usb_ep *ep, int ret), ep 175 drivers/usb/gadget/udc/trace.h TP_ARGS(ep, ret) ep 179 drivers/usb/gadget/udc/trace.h TP_PROTO(struct usb_ep *ep, int ret), ep 180 drivers/usb/gadget/udc/trace.h TP_ARGS(ep, ret) ep 184 drivers/usb/gadget/udc/trace.h TP_PROTO(struct usb_ep *ep, int ret), ep 185 drivers/usb/gadget/udc/trace.h TP_ARGS(ep, ret) ep 189 drivers/usb/gadget/udc/trace.h TP_PROTO(struct usb_ep *ep, int ret), ep 190 drivers/usb/gadget/udc/trace.h TP_ARGS(ep, ret) ep 194 drivers/usb/gadget/udc/trace.h TP_PROTO(struct usb_ep *ep, int ret), ep 195 drivers/usb/gadget/udc/trace.h TP_ARGS(ep, ret) ep 199 drivers/usb/gadget/udc/trace.h TP_PROTO(struct usb_ep *ep, int ret), ep 200 drivers/usb/gadget/udc/trace.h TP_ARGS(ep, ret) ep 204 drivers/usb/gadget/udc/trace.h TP_PROTO(struct usb_ep *ep, int ret), ep 205 drivers/usb/gadget/udc/trace.h TP_ARGS(ep, ret) ep 209 drivers/usb/gadget/udc/trace.h TP_PROTO(struct usb_ep *ep, int ret), ep 210 drivers/usb/gadget/udc/trace.h TP_ARGS(ep, ret) ep 214 drivers/usb/gadget/udc/trace.h TP_PROTO(struct usb_ep *ep, struct usb_request *req, int ret), ep 215 drivers/usb/gadget/udc/trace.h TP_ARGS(ep, req, ret), ep 231 drivers/usb/gadget/udc/trace.h snprintf(__get_str(name), UDC_TRACE_STR_MAX, "%s", ep->name); ep 255 drivers/usb/gadget/udc/trace.h TP_PROTO(struct usb_ep *ep, struct usb_request *req, int ret), ep 256 drivers/usb/gadget/udc/trace.h TP_ARGS(ep, req, ret) ep 260 drivers/usb/gadget/udc/trace.h TP_PROTO(struct usb_ep *ep, struct usb_request *req, int ret), ep 261 drivers/usb/gadget/udc/trace.h TP_ARGS(ep, req, ret) ep 265 drivers/usb/gadget/udc/trace.h TP_PROTO(struct usb_ep *ep, struct usb_request *req, int ret), ep 266 drivers/usb/gadget/udc/trace.h TP_ARGS(ep, req, ret) ep 270 drivers/usb/gadget/udc/trace.h TP_PROTO(struct usb_ep *ep, struct usb_request *req, int ret), ep 271 drivers/usb/gadget/udc/trace.h TP_ARGS(ep, req, ret) ep 275 drivers/usb/gadget/udc/trace.h TP_PROTO(struct usb_ep *ep, struct usb_request *req, int ret), ep 276 drivers/usb/gadget/udc/trace.h TP_ARGS(ep, req, ret) ep 106 drivers/usb/gadget/udc/udc-xilinx.c #define to_xusb_ep(ep) container_of((ep), struct xusb_ep, ep_usb) ep 118 drivers/usb/gadget/udc/udc-xilinx.c struct xusb_ep *ep; ep 179 drivers/usb/gadget/udc/udc-xilinx.c struct xusb_ep ep[8]; ep 260 drivers/usb/gadget/udc/udc-xilinx.c struct xusb_ep *ep0 = &udc->ep[XUSB_EP_NUMBER_ZERO]; ep 278 drivers/usb/gadget/udc/udc-xilinx.c static void xudc_epconfig(struct xusb_ep *ep, struct xusb_udc *udc) ep 286 drivers/usb/gadget/udc/udc-xilinx.c epcfgreg = ((ep->is_in << 29) | (ep->is_iso << 28) | ep 287 drivers/usb/gadget/udc/udc-xilinx.c (ep->ep_usb.maxpacket << 15) | (ep->rambase)); ep 288 drivers/usb/gadget/udc/udc-xilinx.c udc->write_fn(udc->addr, ep->offset, epcfgreg); ep 291 drivers/usb/gadget/udc/udc-xilinx.c udc->write_fn(udc->addr, ep->offset + XUSB_EP_BUF0COUNT_OFFSET, ep 292 drivers/usb/gadget/udc/udc-xilinx.c ep->buffer0count); ep 293 drivers/usb/gadget/udc/udc-xilinx.c udc->write_fn(udc->addr, ep->offset + XUSB_EP_BUF1COUNT_OFFSET, ep 294 drivers/usb/gadget/udc/udc-xilinx.c ep->buffer1count); ep 295 drivers/usb/gadget/udc/udc-xilinx.c if (ep->buffer0ready) ep 297 drivers/usb/gadget/udc/udc-xilinx.c 1 << ep->epnumber); ep 298 drivers/usb/gadget/udc/udc-xilinx.c if (ep->buffer1ready) ep 300 drivers/usb/gadget/udc/udc-xilinx.c 1 << (ep->epnumber + XUSB_STATUS_EP_BUFF2_SHIFT)); ep 315 drivers/usb/gadget/udc/udc-xilinx.c static int xudc_start_dma(struct xusb_ep *ep, dma_addr_t src, ep 318 drivers/usb/gadget/udc/udc-xilinx.c struct xusb_udc *udc = ep->udc; ep 375 drivers/usb/gadget/udc/udc-xilinx.c static int xudc_dma_send(struct xusb_ep *ep, struct xusb_req *req, ep 381 drivers/usb/gadget/udc/udc-xilinx.c struct xusb_udc *udc = ep->udc; ep 387 drivers/usb/gadget/udc/udc-xilinx.c if (!ep->curbufnum && !ep->buffer0ready) { ep 389 drivers/usb/gadget/udc/udc-xilinx.c eprambase = (u32 __force *)(udc->addr + ep->rambase); ep 391 drivers/usb/gadget/udc/udc-xilinx.c udc->write_fn(udc->addr, ep->offset + ep 394 drivers/usb/gadget/udc/udc-xilinx.c XUSB_DMA_BRR_CTRL | (1 << ep->epnumber)); ep 395 drivers/usb/gadget/udc/udc-xilinx.c ep->buffer0ready = 1; ep 396 drivers/usb/gadget/udc/udc-xilinx.c ep->curbufnum = 1; ep 397 drivers/usb/gadget/udc/udc-xilinx.c } else if (ep->curbufnum && !ep->buffer1ready) { ep 399 drivers/usb/gadget/udc/udc-xilinx.c eprambase = (u32 __force *)(udc->addr + ep->rambase + ep 400 drivers/usb/gadget/udc/udc-xilinx.c ep->ep_usb.maxpacket); ep 402 drivers/usb/gadget/udc/udc-xilinx.c udc->write_fn(udc->addr, ep->offset + ep 405 drivers/usb/gadget/udc/udc-xilinx.c XUSB_DMA_BRR_CTRL | (1 << (ep->epnumber + ep 407 drivers/usb/gadget/udc/udc-xilinx.c ep->buffer1ready = 1; ep 408 drivers/usb/gadget/udc/udc-xilinx.c ep->curbufnum = 0; ep 414 drivers/usb/gadget/udc/udc-xilinx.c return xudc_start_dma(ep, src, dst, length); ep 429 drivers/usb/gadget/udc/udc-xilinx.c static int xudc_dma_receive(struct xusb_ep *ep, struct xusb_req *req, ep 435 drivers/usb/gadget/udc/udc-xilinx.c struct xusb_udc *udc = ep->udc; ep 438 drivers/usb/gadget/udc/udc-xilinx.c if (!ep->curbufnum && !ep->buffer0ready) { ep 440 drivers/usb/gadget/udc/udc-xilinx.c eprambase = (u32 __force *)(udc->addr + ep->rambase); ep 444 drivers/usb/gadget/udc/udc-xilinx.c (1 << ep->epnumber)); ep 445 drivers/usb/gadget/udc/udc-xilinx.c ep->buffer0ready = 1; ep 446 drivers/usb/gadget/udc/udc-xilinx.c ep->curbufnum = 1; ep 447 drivers/usb/gadget/udc/udc-xilinx.c } else if (ep->curbufnum && !ep->buffer1ready) { ep 450 drivers/usb/gadget/udc/udc-xilinx.c ep->rambase + ep->ep_usb.maxpacket); ep 454 drivers/usb/gadget/udc/udc-xilinx.c (1 << (ep->epnumber + ep 456 drivers/usb/gadget/udc/udc-xilinx.c ep->buffer1ready = 1; ep 457 drivers/usb/gadget/udc/udc-xilinx.c ep->curbufnum = 0; ep 463 drivers/usb/gadget/udc/udc-xilinx.c return xudc_start_dma(ep, src, dst, length); ep 478 drivers/usb/gadget/udc/udc-xilinx.c static int xudc_eptxrx(struct xusb_ep *ep, struct xusb_req *req, ep 484 drivers/usb/gadget/udc/udc-xilinx.c struct xusb_udc *udc = ep->udc; ep 488 drivers/usb/gadget/udc/udc-xilinx.c if (ep->is_in) ep 489 drivers/usb/gadget/udc/udc-xilinx.c rc = xudc_dma_send(ep, req, bufferptr, bufferlen); ep 491 drivers/usb/gadget/udc/udc-xilinx.c rc = xudc_dma_receive(ep, req, bufferptr, bufferlen); ep 495 drivers/usb/gadget/udc/udc-xilinx.c if (!ep->curbufnum && !ep->buffer0ready) { ep 497 drivers/usb/gadget/udc/udc-xilinx.c eprambase = (u32 __force *)(udc->addr + ep->rambase); ep 498 drivers/usb/gadget/udc/udc-xilinx.c if (ep->is_in) { ep 500 drivers/usb/gadget/udc/udc-xilinx.c udc->write_fn(udc->addr, ep->offset + ep 509 drivers/usb/gadget/udc/udc-xilinx.c 1 << ep->epnumber); ep 510 drivers/usb/gadget/udc/udc-xilinx.c ep->buffer0ready = 1; ep 511 drivers/usb/gadget/udc/udc-xilinx.c ep->curbufnum = 1; ep 512 drivers/usb/gadget/udc/udc-xilinx.c } else if (ep->curbufnum && !ep->buffer1ready) { ep 514 drivers/usb/gadget/udc/udc-xilinx.c eprambase = (u32 __force *)(udc->addr + ep->rambase + ep 515 drivers/usb/gadget/udc/udc-xilinx.c ep->ep_usb.maxpacket); ep 516 drivers/usb/gadget/udc/udc-xilinx.c if (ep->is_in) { ep 518 drivers/usb/gadget/udc/udc-xilinx.c udc->write_fn(udc->addr, ep->offset + ep 527 drivers/usb/gadget/udc/udc-xilinx.c 1 << (ep->epnumber + XUSB_STATUS_EP_BUFF2_SHIFT)); ep 528 drivers/usb/gadget/udc/udc-xilinx.c ep->buffer1ready = 1; ep 529 drivers/usb/gadget/udc/udc-xilinx.c ep->curbufnum = 0; ep 546 drivers/usb/gadget/udc/udc-xilinx.c static void xudc_done(struct xusb_ep *ep, struct xusb_req *req, int status) ep 548 drivers/usb/gadget/udc/udc-xilinx.c struct xusb_udc *udc = ep->udc; ep 559 drivers/usb/gadget/udc/udc-xilinx.c ep->ep_usb.name, req, status); ep 561 drivers/usb/gadget/udc/udc-xilinx.c if (udc->dma_enabled && ep->epnumber && req->usb_req.length) ep 563 drivers/usb/gadget/udc/udc-xilinx.c ep->is_in); ep 567 drivers/usb/gadget/udc/udc-xilinx.c req->usb_req.complete(&ep->ep_usb, &req->usb_req); ep 581 drivers/usb/gadget/udc/udc-xilinx.c static int xudc_read_fifo(struct xusb_ep *ep, struct xusb_req *req) ep 589 drivers/usb/gadget/udc/udc-xilinx.c struct xusb_udc *udc = ep->udc; ep 591 drivers/usb/gadget/udc/udc-xilinx.c if (ep->buffer0ready && ep->buffer1ready) { ep 596 drivers/usb/gadget/udc/udc-xilinx.c if (ep->curbufnum) ep 601 drivers/usb/gadget/udc/udc-xilinx.c count = udc->read_fn(udc->addr + ep->offset + bufoffset); ep 603 drivers/usb/gadget/udc/udc-xilinx.c if (!ep->buffer0ready && !ep->buffer1ready) ep 609 drivers/usb/gadget/udc/udc-xilinx.c is_short = count < ep->ep_usb.maxpacket; ep 619 drivers/usb/gadget/udc/udc-xilinx.c ep->ep_usb.name, count); ep 621 drivers/usb/gadget/udc/udc-xilinx.c xudc_done(ep, req, -EOVERFLOW); ep 625 drivers/usb/gadget/udc/udc-xilinx.c ret = xudc_eptxrx(ep, req, buf, count); ep 630 drivers/usb/gadget/udc/udc-xilinx.c ep->ep_usb.name, count, is_short ? "/S" : "", req, ep 640 drivers/usb/gadget/udc/udc-xilinx.c xudc_done(ep, req, 0); ep 654 drivers/usb/gadget/udc/udc-xilinx.c xudc_done(ep, req, -ECONNRESET); ep 671 drivers/usb/gadget/udc/udc-xilinx.c static int xudc_write_fifo(struct xusb_ep *ep, struct xusb_req *req) ep 677 drivers/usb/gadget/udc/udc-xilinx.c struct xusb_udc *udc = ep->udc; ep 681 drivers/usb/gadget/udc/udc-xilinx.c max = le16_to_cpu(ep->desc->wMaxPacketSize); ep 687 drivers/usb/gadget/udc/udc-xilinx.c ret = xudc_eptxrx(ep, req, buf, length); ep 701 drivers/usb/gadget/udc/udc-xilinx.c __func__, ep->ep_usb.name, length, is_last ? "/L" : "", ep 706 drivers/usb/gadget/udc/udc-xilinx.c xudc_done(ep, req, 0); ep 716 drivers/usb/gadget/udc/udc-xilinx.c xudc_done(ep, req, -ECONNRESET); ep 729 drivers/usb/gadget/udc/udc-xilinx.c static void xudc_nuke(struct xusb_ep *ep, int status) ep 733 drivers/usb/gadget/udc/udc-xilinx.c while (!list_empty(&ep->queue)) { ep 734 drivers/usb/gadget/udc/udc-xilinx.c req = list_first_entry(&ep->queue, struct xusb_req, queue); ep 735 drivers/usb/gadget/udc/udc-xilinx.c xudc_done(ep, req, status); ep 748 drivers/usb/gadget/udc/udc-xilinx.c struct xusb_ep *ep = to_xusb_ep(_ep); ep 753 drivers/usb/gadget/udc/udc-xilinx.c if (!_ep || (!ep->desc && ep->epnumber)) { ep 757 drivers/usb/gadget/udc/udc-xilinx.c udc = ep->udc; ep 759 drivers/usb/gadget/udc/udc-xilinx.c if (ep->is_in && (!list_empty(&ep->queue)) && value) { ep 764 drivers/usb/gadget/udc/udc-xilinx.c if (ep->buffer0ready || ep->buffer1ready) { ep 773 drivers/usb/gadget/udc/udc-xilinx.c epcfgreg = udc->read_fn(udc->addr + ep->offset); ep 775 drivers/usb/gadget/udc/udc-xilinx.c udc->write_fn(udc->addr, ep->offset, epcfgreg); ep 778 drivers/usb/gadget/udc/udc-xilinx.c epcfgreg = udc->read_fn(udc->addr + ep->offset); ep 780 drivers/usb/gadget/udc/udc-xilinx.c udc->write_fn(udc->addr, ep->offset, epcfgreg); ep 781 drivers/usb/gadget/udc/udc-xilinx.c if (ep->epnumber) { ep 783 drivers/usb/gadget/udc/udc-xilinx.c epcfgreg = udc->read_fn(ep->udc->addr + ep->offset); ep 785 drivers/usb/gadget/udc/udc-xilinx.c udc->write_fn(udc->addr, ep->offset, epcfgreg); ep 800 drivers/usb/gadget/udc/udc-xilinx.c static int __xudc_ep_enable(struct xusb_ep *ep, ep 803 drivers/usb/gadget/udc/udc-xilinx.c struct xusb_udc *udc = ep->udc; ep 809 drivers/usb/gadget/udc/udc-xilinx.c ep->is_in = ((desc->bEndpointAddress & USB_DIR_IN) != 0); ep 811 drivers/usb/gadget/udc/udc-xilinx.c ep->epnumber = (desc->bEndpointAddress & 0x0f); ep 812 drivers/usb/gadget/udc/udc-xilinx.c ep->desc = desc; ep 813 drivers/usb/gadget/udc/udc-xilinx.c ep->ep_usb.desc = desc; ep 815 drivers/usb/gadget/udc/udc-xilinx.c ep->ep_usb.maxpacket = maxpacket = le16_to_cpu(desc->wMaxPacketSize); ep 821 drivers/usb/gadget/udc/udc-xilinx.c ep->is_iso = 0; ep 825 drivers/usb/gadget/udc/udc-xilinx.c ep->is_iso = 0; ep 833 drivers/usb/gadget/udc/udc-xilinx.c ep->is_iso = 0; ep 842 drivers/usb/gadget/udc/udc-xilinx.c ep->is_iso = 1; ep 846 drivers/usb/gadget/udc/udc-xilinx.c ep->buffer0ready = 0; ep 847 drivers/usb/gadget/udc/udc-xilinx.c ep->buffer1ready = 0; ep 848 drivers/usb/gadget/udc/udc-xilinx.c ep->curbufnum = 0; ep 849 drivers/usb/gadget/udc/udc-xilinx.c ep->rambase = rambase[ep->epnumber]; ep 850 drivers/usb/gadget/udc/udc-xilinx.c xudc_epconfig(ep, udc); ep 853 drivers/usb/gadget/udc/udc-xilinx.c ep->epnumber, maxpacket); ep 856 drivers/usb/gadget/udc/udc-xilinx.c epcfg = udc->read_fn(udc->addr + ep->offset); ep 858 drivers/usb/gadget/udc/udc-xilinx.c udc->write_fn(udc->addr, ep->offset, epcfg); ep 859 drivers/usb/gadget/udc/udc-xilinx.c if (ep->epnumber) ep 860 drivers/usb/gadget/udc/udc-xilinx.c ep->rambase <<= 2; ep 864 drivers/usb/gadget/udc/udc-xilinx.c ier |= (XUSB_STATUS_INTR_BUFF_COMP_SHIFT_MASK << ep->epnumber); ep 868 drivers/usb/gadget/udc/udc-xilinx.c if (ep->epnumber && !ep->is_in) { ep 870 drivers/usb/gadget/udc/udc-xilinx.c 1 << ep->epnumber); ep 871 drivers/usb/gadget/udc/udc-xilinx.c ep->buffer0ready = 1; ep 873 drivers/usb/gadget/udc/udc-xilinx.c (1 << (ep->epnumber + ep 875 drivers/usb/gadget/udc/udc-xilinx.c ep->buffer1ready = 1; ep 891 drivers/usb/gadget/udc/udc-xilinx.c struct xusb_ep *ep; ep 901 drivers/usb/gadget/udc/udc-xilinx.c ep = to_xusb_ep(_ep); ep 902 drivers/usb/gadget/udc/udc-xilinx.c udc = ep->udc; ep 910 drivers/usb/gadget/udc/udc-xilinx.c ret = __xudc_ep_enable(ep, desc); ep 924 drivers/usb/gadget/udc/udc-xilinx.c struct xusb_ep *ep; ep 934 drivers/usb/gadget/udc/udc-xilinx.c ep = to_xusb_ep(_ep); ep 935 drivers/usb/gadget/udc/udc-xilinx.c udc = ep->udc; ep 939 drivers/usb/gadget/udc/udc-xilinx.c xudc_nuke(ep, -ESHUTDOWN); ep 942 drivers/usb/gadget/udc/udc-xilinx.c ep->desc = NULL; ep 943 drivers/usb/gadget/udc/udc-xilinx.c ep->ep_usb.desc = NULL; ep 945 drivers/usb/gadget/udc/udc-xilinx.c dev_dbg(udc->dev, "USB Ep %d disable\n ", ep->epnumber); ep 947 drivers/usb/gadget/udc/udc-xilinx.c epcfg = udc->read_fn(udc->addr + ep->offset); ep 949 drivers/usb/gadget/udc/udc-xilinx.c udc->write_fn(udc->addr, ep->offset, epcfg); ep 965 drivers/usb/gadget/udc/udc-xilinx.c struct xusb_ep *ep = to_xusb_ep(_ep); ep 972 drivers/usb/gadget/udc/udc-xilinx.c req->ep = ep; ep 1075 drivers/usb/gadget/udc/udc-xilinx.c struct xusb_ep *ep = to_xusb_ep(_ep); ep 1076 drivers/usb/gadget/udc/udc-xilinx.c struct xusb_udc *udc = ep->udc; ep 1080 drivers/usb/gadget/udc/udc-xilinx.c if (!ep->desc) { ep 1082 drivers/usb/gadget/udc/udc-xilinx.c __func__, ep->name); ep 1098 drivers/usb/gadget/udc/udc-xilinx.c ep->is_in); ep 1101 drivers/usb/gadget/udc/udc-xilinx.c ep->epnumber); ep 1107 drivers/usb/gadget/udc/udc-xilinx.c if (list_empty(&ep->queue)) { ep 1108 drivers/usb/gadget/udc/udc-xilinx.c if (ep->is_in) { ep 1110 drivers/usb/gadget/udc/udc-xilinx.c if (!xudc_write_fifo(ep, req)) ep 1114 drivers/usb/gadget/udc/udc-xilinx.c if (!xudc_read_fifo(ep, req)) ep 1120 drivers/usb/gadget/udc/udc-xilinx.c list_add_tail(&req->queue, &ep->queue); ep 1135 drivers/usb/gadget/udc/udc-xilinx.c struct xusb_ep *ep = to_xusb_ep(_ep); ep 1137 drivers/usb/gadget/udc/udc-xilinx.c struct xusb_udc *udc = ep->udc; ep 1142 drivers/usb/gadget/udc/udc-xilinx.c list_for_each_entry(req, &ep->queue, queue) { ep 1150 drivers/usb/gadget/udc/udc-xilinx.c xudc_done(ep, req, -ECONNRESET); ep 1165 drivers/usb/gadget/udc/udc-xilinx.c static int xudc_ep0_enable(struct usb_ep *ep, ep 1179 drivers/usb/gadget/udc/udc-xilinx.c static int xudc_ep0_disable(struct usb_ep *ep) ep 1301 drivers/usb/gadget/udc/udc-xilinx.c struct xusb_ep *ep = &udc->ep[ep_number]; ep 1304 drivers/usb/gadget/udc/udc-xilinx.c list_add_tail(&ep->ep_usb.ep_list, ep 1306 drivers/usb/gadget/udc/udc-xilinx.c usb_ep_set_maxpacket_limit(&ep->ep_usb, ep 1308 drivers/usb/gadget/udc/udc-xilinx.c snprintf(ep->name, EPNAME_SIZE, "ep%d", ep_number); ep 1309 drivers/usb/gadget/udc/udc-xilinx.c ep->ep_usb.name = ep->name; ep 1310 drivers/usb/gadget/udc/udc-xilinx.c ep->ep_usb.ops = &xusb_ep_ops; ep 1312 drivers/usb/gadget/udc/udc-xilinx.c ep->ep_usb.caps.type_iso = true; ep 1313 drivers/usb/gadget/udc/udc-xilinx.c ep->ep_usb.caps.type_bulk = true; ep 1314 drivers/usb/gadget/udc/udc-xilinx.c ep->ep_usb.caps.type_int = true; ep 1316 drivers/usb/gadget/udc/udc-xilinx.c ep->ep_usb.name = ep0name; ep 1317 drivers/usb/gadget/udc/udc-xilinx.c usb_ep_set_maxpacket_limit(&ep->ep_usb, EP0_MAX_PACKET); ep 1318 drivers/usb/gadget/udc/udc-xilinx.c ep->ep_usb.ops = &xusb_ep0_ops; ep 1320 drivers/usb/gadget/udc/udc-xilinx.c ep->ep_usb.caps.type_control = true; ep 1323 drivers/usb/gadget/udc/udc-xilinx.c ep->ep_usb.caps.dir_in = true; ep 1324 drivers/usb/gadget/udc/udc-xilinx.c ep->ep_usb.caps.dir_out = true; ep 1326 drivers/usb/gadget/udc/udc-xilinx.c ep->udc = udc; ep 1327 drivers/usb/gadget/udc/udc-xilinx.c ep->epnumber = ep_number; ep 1328 drivers/usb/gadget/udc/udc-xilinx.c ep->desc = NULL; ep 1333 drivers/usb/gadget/udc/udc-xilinx.c ep->offset = XUSB_EP0_CONFIG_OFFSET + (ep_number * 0x10); ep 1334 drivers/usb/gadget/udc/udc-xilinx.c ep->is_in = 0; ep 1335 drivers/usb/gadget/udc/udc-xilinx.c ep->is_iso = 0; ep 1336 drivers/usb/gadget/udc/udc-xilinx.c ep->maxpacket = 0; ep 1337 drivers/usb/gadget/udc/udc-xilinx.c xudc_epconfig(ep, udc); ep 1340 drivers/usb/gadget/udc/udc-xilinx.c INIT_LIST_HEAD(&ep->queue); ep 1351 drivers/usb/gadget/udc/udc-xilinx.c struct xusb_ep *ep; ep 1354 drivers/usb/gadget/udc/udc-xilinx.c ep = &udc->ep[i]; ep 1355 drivers/usb/gadget/udc/udc-xilinx.c xudc_nuke(ep, -ESHUTDOWN); ep 1370 drivers/usb/gadget/udc/udc-xilinx.c struct xusb_ep *ep0 = &udc->ep[XUSB_EP_NUMBER_ZERO]; ep 1441 drivers/usb/gadget/udc/udc-xilinx.c struct xusb_ep *ep; ep 1446 drivers/usb/gadget/udc/udc-xilinx.c ep = &udc->ep[i]; ep 1447 drivers/usb/gadget/udc/udc-xilinx.c epcfgreg = udc->read_fn(udc->addr + ep->offset); ep 1449 drivers/usb/gadget/udc/udc-xilinx.c udc->write_fn(udc->addr, ep->offset, epcfgreg); ep 1450 drivers/usb/gadget/udc/udc-xilinx.c if (ep->epnumber) { ep 1452 drivers/usb/gadget/udc/udc-xilinx.c epcfgreg = udc->read_fn(udc->addr + ep->offset); ep 1454 drivers/usb/gadget/udc/udc-xilinx.c udc->write_fn(udc->addr, ep->offset, epcfgreg); ep 1560 drivers/usb/gadget/udc/udc-xilinx.c struct xusb_ep *ep0 = &udc->ep[XUSB_EP_NUMBER_ZERO]; ep 1575 drivers/usb/gadget/udc/udc-xilinx.c struct xusb_ep *ep0 = &udc->ep[0]; ep 1596 drivers/usb/gadget/udc/udc-xilinx.c struct xusb_ep *ep0 = &udc->ep[0]; ep 1616 drivers/usb/gadget/udc/udc-xilinx.c target_ep = &udc->ep[epnum]; ep 1651 drivers/usb/gadget/udc/udc-xilinx.c struct xusb_ep *ep0 = &udc->ep[0]; ep 1683 drivers/usb/gadget/udc/udc-xilinx.c target_ep = &udc->ep[endpoint]; ep 1737 drivers/usb/gadget/udc/udc-xilinx.c struct xusb_ep *ep0 = &udc->ep[0]; ep 1803 drivers/usb/gadget/udc/udc-xilinx.c struct xusb_ep *ep0 = &udc->ep[0]; ep 1852 drivers/usb/gadget/udc/udc-xilinx.c struct xusb_ep *ep0 = &udc->ep[0]; ep 1950 drivers/usb/gadget/udc/udc-xilinx.c struct xusb_ep *ep; ep 1952 drivers/usb/gadget/udc/udc-xilinx.c ep = &udc->ep[epnum]; ep 1955 drivers/usb/gadget/udc/udc-xilinx.c ep->buffer0ready = 0; ep 1957 drivers/usb/gadget/udc/udc-xilinx.c ep->buffer1ready = 0; ep 1959 drivers/usb/gadget/udc/udc-xilinx.c if (list_empty(&ep->queue)) ep 1962 drivers/usb/gadget/udc/udc-xilinx.c req = list_first_entry(&ep->queue, struct xusb_req, queue); ep 1964 drivers/usb/gadget/udc/udc-xilinx.c if (ep->is_in) ep 1965 drivers/usb/gadget/udc/udc-xilinx.c xudc_write_fifo(ep, req); ep 1967 drivers/usb/gadget/udc/udc-xilinx.c xudc_read_fifo(ep, req); ep 2092 drivers/usb/gadget/udc/udc-xilinx.c udc->gadget.ep0 = &udc->ep[XUSB_EP_NUMBER_ZERO].ep_usb; ep 580 drivers/usb/host/ehci-dbg.c ps->ep->desc.bEndpointAddress, ep 944 drivers/usb/host/ehci-hcd.c ehci_endpoint_disable (struct usb_hcd *hcd, struct usb_host_endpoint *ep) ep 955 drivers/usb/host/ehci-hcd.c qh = ep->hcpriv; ep 963 drivers/usb/host/ehci-hcd.c struct ehci_iso_stream *stream = ep->hcpriv; ep 981 drivers/usb/host/ehci-hcd.c if (usb_endpoint_type(&ep->desc) != USB_ENDPOINT_XFER_INT) ep 1008 drivers/usb/host/ehci-hcd.c qh, ep->desc.bEndpointAddress, qh->qh_state, ep 1013 drivers/usb/host/ehci-hcd.c ep->hcpriv = NULL; ep 1018 drivers/usb/host/ehci-hcd.c ehci_endpoint_reset(struct usb_hcd *hcd, struct usb_host_endpoint *ep) ep 1022 drivers/usb/host/ehci-hcd.c int eptype = usb_endpoint_type(&ep->desc); ep 1023 drivers/usb/host/ehci-hcd.c int epnum = usb_endpoint_num(&ep->desc); ep 1024 drivers/usb/host/ehci-hcd.c int is_out = usb_endpoint_dir_out(&ep->desc); ep 1031 drivers/usb/host/ehci-hcd.c qh = ep->hcpriv; ep 758 drivers/usb/host/ehci-hub.c struct usb_host_endpoint *ep; ep 765 drivers/usb/host/ehci-hub.c ep = (usb_pipein(urb->pipe) ? udev->ep_in : udev->ep_out) ep 767 drivers/usb/host/ehci-hub.c if (!ep) { ep 772 drivers/usb/host/ehci-hub.c urb->ep = ep; ep 141 drivers/usb/host/ehci-q.c struct usb_host_endpoint *ep) ep 144 drivers/usb/host/ehci-q.c struct ehci_qh *qh = ep->hcpriv; ep 357 drivers/usb/host/ehci-q.c usb_endpoint_num(&urb->ep->desc), ep 358 drivers/usb/host/ehci-q.c usb_endpoint_dir_in(&urb->ep->desc) ? "in" : "out", ep 766 drivers/usb/host/ehci-q.c struct usb_host_endpoint *ep; ep 785 drivers/usb/host/ehci-q.c ep = usb_pipe_endpoint (urb->dev, urb->pipe); ep 786 drivers/usb/host/ehci-q.c maxp = usb_endpoint_maxp (&ep->desc); ep 787 drivers/usb/host/ehci-q.c mult = usb_endpoint_maxp_mult (&ep->desc); ep 829 drivers/usb/host/ehci-q.c 1 << (urb->ep->desc.bInterval - 1)); ep 860 drivers/usb/host/ehci-q.c urb->ep->desc.bInterval); ep 871 drivers/usb/host/ehci-q.c qh->ps.ep = urb->ep; ep 1113 drivers/usb/host/ehci-q.c epnum = urb->ep->desc.bEndpointAddress; ep 1124 drivers/usb/host/ehci-q.c qtd, urb->ep->hcpriv); ep 1137 drivers/usb/host/ehci-q.c qh = qh_append_tds(ehci, urb, qtd_list, epnum, &urb->ep->hcpriv); ep 199 drivers/usb/host/ehci-sched.c ps->ep->desc.bEndpointAddress, ep 930 drivers/usb/host/ehci-sched.c epnum = urb->ep->desc.bEndpointAddress; ep 944 drivers/usb/host/ehci-sched.c qh = qh_append_tds(ehci, urb, &empty, epnum, &urb->ep->hcpriv); ep 956 drivers/usb/host/ehci-sched.c qh = qh_append_tds(ehci, urb, qtd_list, epnum, &urb->ep->hcpriv); ep 1050 drivers/usb/host/ehci-sched.c maxp = usb_endpoint_maxp(&urb->ep->desc); ep 1055 drivers/usb/host/ehci-sched.c unsigned multi = usb_endpoint_maxp_mult(&urb->ep->desc); ep 1073 drivers/usb/host/ehci-sched.c 1 << (urb->ep->desc.bInterval - 1)); ep 1116 drivers/usb/host/ehci-sched.c 1 << (urb->ep->desc.bInterval - 1)); ep 1132 drivers/usb/host/ehci-sched.c stream->ps.ep = urb->ep; ep 1143 drivers/usb/host/ehci-sched.c struct usb_host_endpoint *ep; ep 1148 drivers/usb/host/ehci-sched.c ep = urb->dev->ep_in[epnum]; ep 1150 drivers/usb/host/ehci-sched.c ep = urb->dev->ep_out[epnum]; ep 1153 drivers/usb/host/ehci-sched.c stream = ep->hcpriv; ep 1158 drivers/usb/host/ehci-sched.c ep->hcpriv = stream; ep 1501 drivers/usb/host/ehci-sched.c ehci_to_hcd(ehci), urb->ep))) { ep 50 drivers/usb/host/ehci.h struct usb_host_endpoint *ep; ep 507 drivers/usb/host/fhci-hcd.c struct usb_host_endpoint *ep) ep 515 drivers/usb/host/fhci-hcd.c ed = ep->hcpriv; ep 522 drivers/usb/host/fhci-hcd.c ep->hcpriv = NULL; ep 699 drivers/usb/host/fhci-sched.c struct ed *ed = urb->ep->hcpriv; ep 730 drivers/usb/host/fhci-sched.c ed->max_pkt_size = usb_endpoint_maxp(&urb->ep->desc); ep 731 drivers/usb/host/fhci-sched.c urb->ep->hcpriv = ed; ep 770 drivers/usb/host/fhci-sched.c usb_endpoint_maxp(&urb->ep->desc)) == 0)) ep 808 drivers/usb/host/fhci-sched.c ed->max_pkt_size = usb_endpoint_maxp(&urb->ep->desc); ep 82 drivers/usb/host/fhci-tds.c void fhci_push_dummy_bd(struct endpoint *ep) ep 84 drivers/usb/host/fhci-tds.c if (!ep->already_pushed_dummy_bd) { ep 85 drivers/usb/host/fhci-tds.c u16 td_status = in_be16(&ep->empty_td->status); ep 87 drivers/usb/host/fhci-tds.c out_be32(&ep->empty_td->buf_ptr, DUMMY_BD_BUFFER); ep 89 drivers/usb/host/fhci-tds.c ep->empty_td = next_bd(ep->td_base, ep->empty_td, td_status); ep 90 drivers/usb/host/fhci-tds.c ep->already_pushed_dummy_bd = true; ep 97 drivers/usb/host/fhci-tds.c struct endpoint *ep; ep 100 drivers/usb/host/fhci-tds.c ep = usb->ep0; ep 101 drivers/usb/host/fhci-tds.c if (ep) { ep 102 drivers/usb/host/fhci-tds.c if (ep->td_base) ep 103 drivers/usb/host/fhci-tds.c cpm_muram_free(cpm_muram_offset(ep->td_base)); ep 105 drivers/usb/host/fhci-tds.c if (kfifo_initialized(&ep->conf_frame_Q)) { ep 106 drivers/usb/host/fhci-tds.c size = cq_howmany(&ep->conf_frame_Q); ep 108 drivers/usb/host/fhci-tds.c struct packet *pkt = cq_get(&ep->conf_frame_Q); ep 112 drivers/usb/host/fhci-tds.c cq_delete(&ep->conf_frame_Q); ep 115 drivers/usb/host/fhci-tds.c if (kfifo_initialized(&ep->empty_frame_Q)) { ep 116 drivers/usb/host/fhci-tds.c size = cq_howmany(&ep->empty_frame_Q); ep 118 drivers/usb/host/fhci-tds.c struct packet *pkt = cq_get(&ep->empty_frame_Q); ep 122 drivers/usb/host/fhci-tds.c cq_delete(&ep->empty_frame_Q); ep 125 drivers/usb/host/fhci-tds.c if (kfifo_initialized(&ep->dummy_packets_Q)) { ep 126 drivers/usb/host/fhci-tds.c size = cq_howmany(&ep->dummy_packets_Q); ep 128 drivers/usb/host/fhci-tds.c u8 *buff = cq_get(&ep->dummy_packets_Q); ep 132 drivers/usb/host/fhci-tds.c cq_delete(&ep->dummy_packets_Q); ep 135 drivers/usb/host/fhci-tds.c kfree(ep); ep 151 drivers/usb/host/fhci-tds.c struct endpoint *ep; ep 164 drivers/usb/host/fhci-tds.c ep = kzalloc(sizeof(*ep), GFP_KERNEL); ep 165 drivers/usb/host/fhci-tds.c if (!ep) ep 172 drivers/usb/host/fhci-tds.c ep->td_base = cpm_muram_addr(ep_offset); ep 175 drivers/usb/host/fhci-tds.c if (cq_new(&ep->conf_frame_Q, ring_len + 2) || ep 176 drivers/usb/host/fhci-tds.c cq_new(&ep->empty_frame_Q, ring_len + 2) || ep 177 drivers/usb/host/fhci-tds.c cq_new(&ep->dummy_packets_Q, ring_len + 2)) { ep 198 drivers/usb/host/fhci-tds.c cq_put(&ep->empty_frame_Q, pkt); ep 199 drivers/usb/host/fhci-tds.c cq_put(&ep->dummy_packets_Q, buff); ep 203 drivers/usb/host/fhci-tds.c ep->ep_pram_ptr = (void __iomem *)ep->td_base + sizeof(*td) * ring_len; ep 205 drivers/usb/host/fhci-tds.c ep->conf_td = ep->td_base; ep 206 drivers/usb/host/fhci-tds.c ep->empty_td = ep->td_base; ep 208 drivers/usb/host/fhci-tds.c ep->already_pushed_dummy_bd = false; ep 211 drivers/usb/host/fhci-tds.c td = ep->td_base; ep 224 drivers/usb/host/fhci-tds.c usb->ep0 = ep; ep 229 drivers/usb/host/fhci-tds.c kfree(ep); ep 242 drivers/usb/host/fhci-tds.c void fhci_init_ep_registers(struct fhci_usb *usb, struct endpoint *ep, ep 251 drivers/usb/host/fhci-tds.c cpm_muram_offset(ep->ep_pram_ptr)); ep 258 drivers/usb/host/fhci-tds.c out_8(&ep->ep_pram_ptr->rx_func_code, rt); ep 259 drivers/usb/host/fhci-tds.c out_8(&ep->ep_pram_ptr->tx_func_code, rt); ep 260 drivers/usb/host/fhci-tds.c out_be16(&ep->ep_pram_ptr->rx_buff_len, 1028); ep 261 drivers/usb/host/fhci-tds.c out_be16(&ep->ep_pram_ptr->rx_base, 0); ep 262 drivers/usb/host/fhci-tds.c out_be16(&ep->ep_pram_ptr->tx_base, cpm_muram_offset(ep->td_base)); ep 263 drivers/usb/host/fhci-tds.c out_be16(&ep->ep_pram_ptr->rx_bd_ptr, 0); ep 264 drivers/usb/host/fhci-tds.c out_be16(&ep->ep_pram_ptr->tx_bd_ptr, cpm_muram_offset(ep->td_base)); ep 265 drivers/usb/host/fhci-tds.c out_be32(&ep->ep_pram_ptr->tx_state, 0); ep 279 drivers/usb/host/fhci-tds.c struct endpoint *ep = usb->ep0; ep 293 drivers/usb/host/fhci-tds.c td = ep->conf_td; ep 312 drivers/usb/host/fhci-tds.c ep->conf_td = next_bd(ep->td_base, ep->conf_td, td_status); ep 318 drivers/usb/host/fhci-tds.c pkt = cq_get(&ep->conf_frame_Q); ep 385 drivers/usb/host/fhci-tds.c struct endpoint *ep = usb->ep0; ep 392 drivers/usb/host/fhci-tds.c td = ep->empty_td; ep 402 drivers/usb/host/fhci-tds.c ep->empty_td = next_bd(ep->td_base, ep->empty_td, td_status); ep 459 drivers/usb/host/fhci-tds.c cq_put(&ep->conf_frame_Q, pkt); ep 461 drivers/usb/host/fhci-tds.c if (cq_howmany(&ep->conf_frame_Q) == 1) ep 474 drivers/usb/host/fhci-tds.c struct endpoint *ep = usb->ep0; ep 476 drivers/usb/host/fhci-tds.c td = ep->td_base; ep 497 drivers/usb/host/fhci-tds.c td = ep->td_base; ep 510 drivers/usb/host/fhci-tds.c out_be16(&ep->ep_pram_ptr->tx_bd_ptr, ep 511 drivers/usb/host/fhci-tds.c in_be16(&ep->ep_pram_ptr->tx_base)); ep 512 drivers/usb/host/fhci-tds.c out_be32(&ep->ep_pram_ptr->tx_state, 0); ep 513 drivers/usb/host/fhci-tds.c out_be16(&ep->ep_pram_ptr->tx_cnt, 0); ep 514 drivers/usb/host/fhci-tds.c ep->empty_td = ep->td_base; ep 515 drivers/usb/host/fhci-tds.c ep->conf_td = ep->td_base; ep 531 drivers/usb/host/fhci-tds.c struct endpoint *ep = usb->ep0; ep 537 drivers/usb/host/fhci-tds.c tb_ptr = in_be16(&ep->ep_pram_ptr->tx_bd_ptr); ep 547 drivers/usb/host/fhci-tds.c ep->already_pushed_dummy_bd = false; ep 552 drivers/usb/host/fhci-tds.c td = next_bd(ep->td_base, td, td_status); ep 560 drivers/usb/host/fhci-tds.c out_be16(&ep->ep_pram_ptr->tx_bd_ptr, ep 561 drivers/usb/host/fhci-tds.c in_be16(&ep->ep_pram_ptr->tx_base)); ep 562 drivers/usb/host/fhci-tds.c out_be32(&ep->ep_pram_ptr->tx_state, 0); ep 563 drivers/usb/host/fhci-tds.c out_be16(&ep->ep_pram_ptr->tx_cnt, 0); ep 564 drivers/usb/host/fhci-tds.c ep->empty_td = ep->td_base; ep 565 drivers/usb/host/fhci-tds.c ep->conf_td = ep->td_base; ep 595 drivers/usb/host/fhci-tds.c struct endpoint *ep = usb->ep0; ep 597 drivers/usb/host/fhci-tds.c tb_ptr = in_be16(&ep->ep_pram_ptr->tx_bd_ptr); ep 603 drivers/usb/host/fhci-tds.c ep->already_pushed_dummy_bd = false; ep 606 drivers/usb/host/fhci-tds.c td = next_bd(ep->td_base, td, td_status); ep 608 drivers/usb/host/fhci-tds.c out_be16(&ep->ep_pram_ptr->tx_bd_ptr, tb_ptr); ep 614 drivers/usb/host/fhci-tds.c if (in_be32(&ep->conf_td->buf_ptr) == DUMMY_BD_BUFFER) { ep 616 drivers/usb/host/fhci-tds.c ep->conf_td = next_bd(ep->td_base, ep->conf_td, ep 543 drivers/usb/host/fhci.h void fhci_push_dummy_bd(struct endpoint *ep); ep 547 drivers/usb/host/fhci.h struct endpoint *ep, ep 2097 drivers/usb/host/fotg210-hcd.c struct usb_host_endpoint *ep) ep 2100 drivers/usb/host/fotg210-hcd.c struct fotg210_qh *qh = ep->hcpriv; ep 2316 drivers/usb/host/fotg210-hcd.c urb, usb_endpoint_num(&urb->ep->desc), ep 2317 drivers/usb/host/fotg210-hcd.c usb_endpoint_dir_in(&urb->ep->desc) ep 3029 drivers/usb/host/fotg210-hcd.c epnum = urb->ep->desc.bEndpointAddress; ep 3042 drivers/usb/host/fotg210-hcd.c qtd, urb->ep->hcpriv); ep 3055 drivers/usb/host/fotg210-hcd.c qh = qh_append_tds(fotg210, urb, qtd_list, epnum, &urb->ep->hcpriv); ep 3835 drivers/usb/host/fotg210-hcd.c epnum = urb->ep->desc.bEndpointAddress; ep 3849 drivers/usb/host/fotg210-hcd.c qh = qh_append_tds(fotg210, urb, &empty, epnum, &urb->ep->hcpriv); ep 3861 drivers/usb/host/fotg210-hcd.c qh = qh_append_tds(fotg210, urb, qtd_list, epnum, &urb->ep->hcpriv); ep 3980 drivers/usb/host/fotg210-hcd.c struct usb_host_endpoint *ep; ep 3985 drivers/usb/host/fotg210-hcd.c ep = urb->dev->ep_in[epnum]; ep 3987 drivers/usb/host/fotg210-hcd.c ep = urb->dev->ep_out[epnum]; ep 3990 drivers/usb/host/fotg210-hcd.c stream = ep->hcpriv; ep 3995 drivers/usb/host/fotg210-hcd.c ep->hcpriv = stream; ep 3996 drivers/usb/host/fotg210-hcd.c stream->ep = ep; ep 5372 drivers/usb/host/fotg210-hcd.c struct usb_host_endpoint *ep) ep 5383 drivers/usb/host/fotg210-hcd.c qh = ep->hcpriv; ep 5391 drivers/usb/host/fotg210-hcd.c struct fotg210_iso_stream *stream = ep->hcpriv; ep 5435 drivers/usb/host/fotg210-hcd.c qh, ep->desc.bEndpointAddress, qh->qh_state, ep 5440 drivers/usb/host/fotg210-hcd.c ep->hcpriv = NULL; ep 5445 drivers/usb/host/fotg210-hcd.c struct usb_host_endpoint *ep) ep 5449 drivers/usb/host/fotg210-hcd.c int eptype = usb_endpoint_type(&ep->desc); ep 5450 drivers/usb/host/fotg210-hcd.c int epnum = usb_endpoint_num(&ep->desc); ep 5451 drivers/usb/host/fotg210-hcd.c int is_out = usb_endpoint_dir_out(&ep->desc); ep 5458 drivers/usb/host/fotg210-hcd.c qh = ep->hcpriv; ep 509 drivers/usb/host/fotg210.h struct usb_host_endpoint *ep; ep 161 drivers/usb/host/imx21-dbg.c static char *format_ep(struct usb_host_endpoint *ep, char *buf, int bufsize) ep 163 drivers/usb/host/imx21-dbg.c if (ep) ep 165 drivers/usb/host/imx21-dbg.c ep->desc.bEndpointAddress, ep 166 drivers/usb/host/imx21-dbg.c usb_endpoint_type(&ep->desc), ep 167 drivers/usb/host/imx21-dbg.c ep); ep 264 drivers/usb/host/imx21-dbg.c format_ep(dmem->ep, ep_text, sizeof(ep_text))); ep 303 drivers/usb/host/imx21-dbg.c format_ep(etd->ep, buf, sizeof(buf)), ep 189 drivers/usb/host/imx21-hcd.c etd->ep = NULL; ep 352 drivers/usb/host/imx21-hcd.c struct usb_host_endpoint *ep) ep 380 drivers/usb/host/imx21-hcd.c area->ep = ep; ep 440 drivers/usb/host/imx21-hcd.c offset = alloc_dmem(imx21, etd->dmem_size, etd->ep); ep 448 drivers/usb/host/imx21-hcd.c static void free_epdmem(struct imx21 *imx21, struct usb_host_endpoint *ep) ep 453 drivers/usb/host/imx21-hcd.c if (area->ep == ep) { ep 456 drivers/usb/host/imx21-hcd.c area->offset, ep); ep 498 drivers/usb/host/imx21-hcd.c if (list_empty(&ep_priv->ep->urb_list)) { ep 503 drivers/usb/host/imx21-hcd.c &ep_priv->ep->urb_list, struct urb, urb_list)); ep 512 drivers/usb/host/imx21-hcd.c struct ep_priv *ep_priv = urb->ep->hcpriv; ep 525 drivers/usb/host/imx21-hcd.c if (list_empty(&ep_priv->ep->urb_list)) ep 532 drivers/usb/host/imx21-hcd.c struct usb_host_endpoint *ep = etd->ep; ep 537 drivers/usb/host/imx21-hcd.c if (!list_empty(&ep->urb_list)) { ep 539 drivers/usb/host/imx21-hcd.c &ep->urb_list, struct urb, urb_list); ep 552 drivers/usb/host/imx21-hcd.c struct usb_host_endpoint *ep) ep 555 drivers/usb/host/imx21-hcd.c struct ep_priv *ep_priv = ep->hcpriv; ep 596 drivers/usb/host/imx21-hcd.c etd->ep = td->ep; ep 626 drivers/usb/host/imx21-hcd.c struct usb_host_endpoint *ep = etd->ep; ep 672 drivers/usb/host/imx21-hcd.c etd->ep = NULL; ep 677 drivers/usb/host/imx21-hcd.c schedule_isoc_etds(hcd, ep); ep 681 drivers/usb/host/imx21-hcd.c struct imx21 *imx21, struct usb_host_endpoint *ep) ep 694 drivers/usb/host/imx21-hcd.c ep_priv->ep = ep; ep 695 drivers/usb/host/imx21-hcd.c ep->hcpriv = ep_priv; ep 712 drivers/usb/host/imx21-hcd.c imx21->etd[etd_num].ep = ep_priv->ep; ep 727 drivers/usb/host/imx21-hcd.c struct usb_host_endpoint *ep, ep 753 drivers/usb/host/imx21-hcd.c if (ep->hcpriv == NULL) { ep 754 drivers/usb/host/imx21-hcd.c ep_priv = alloc_isoc_ep(imx21, ep); ep 760 drivers/usb/host/imx21-hcd.c ep_priv = ep->hcpriv; ep 775 drivers/usb/host/imx21-hcd.c urb_priv->ep = ep; ep 791 drivers/usb/host/imx21-hcd.c etd->dmem_offset = alloc_dmem(imx21, maxpacket, ep); ep 834 drivers/usb/host/imx21-hcd.c td->ep = ep; ep 848 drivers/usb/host/imx21-hcd.c schedule_isoc_etds(hcd, ep); ep 902 drivers/usb/host/imx21-hcd.c struct ep_priv *ep_priv = urb_priv->ep->hcpriv; ep 971 drivers/usb/host/imx21-hcd.c etd->ep = urb_priv->ep; ep 1006 drivers/usb/host/imx21-hcd.c etd->dmem_offset = alloc_dmem(imx21, etd->dmem_size, urb_priv->ep); ep 1155 drivers/usb/host/imx21-hcd.c struct usb_host_endpoint *ep = urb->ep; ep 1165 drivers/usb/host/imx21-hcd.c urb, ep, ep 1171 drivers/usb/host/imx21-hcd.c return imx21_hc_urb_enqueue_isoc(hcd, ep, urb, mem_flags); ep 1179 drivers/usb/host/imx21-hcd.c ep_priv = ep->hcpriv; ep 1186 drivers/usb/host/imx21-hcd.c ep->hcpriv = ep_priv; ep 1187 drivers/usb/host/imx21-hcd.c ep_priv->ep = ep; ep 1198 drivers/usb/host/imx21-hcd.c urb_priv->ep = ep; ep 1252 drivers/usb/host/imx21-hcd.c struct usb_host_endpoint *ep; ep 1265 drivers/usb/host/imx21-hcd.c ep = urb_priv->ep; ep 1266 drivers/usb/host/imx21-hcd.c ep_priv = ep->hcpriv; ep 1272 drivers/usb/host/imx21-hcd.c schedule_isoc_etds(hcd, ep); ep 1372 drivers/usb/host/imx21-hcd.c if (etd->ep == NULL || etd->urb == NULL) { ep 1376 drivers/usb/host/imx21-hcd.c etd_num, etd->ep, etd->urb); ep 1416 drivers/usb/host/imx21-hcd.c struct usb_host_endpoint *ep) ep 1423 drivers/usb/host/imx21-hcd.c if (ep == NULL) ep 1427 drivers/usb/host/imx21-hcd.c ep_priv = ep->hcpriv; ep 1428 drivers/usb/host/imx21-hcd.c dev_vdbg(imx21->dev, "disable ep=%p, ep->hcpriv=%p\n", ep, ep_priv); ep 1430 drivers/usb/host/imx21-hcd.c if (!list_empty(&ep->urb_list)) ep 1442 drivers/usb/host/imx21-hcd.c ep->hcpriv = NULL; ep 1446 drivers/usb/host/imx21-hcd.c if (imx21->etd[i].alloc && imx21->etd[i].ep == ep) { ep 1448 drivers/usb/host/imx21-hcd.c "Active etd %d for disabled ep=%p!\n", i, ep); ep 1452 drivers/usb/host/imx21-hcd.c free_epdmem(imx21, ep); ep 319 drivers/usb/host/imx21-hcd.h struct usb_host_endpoint *ep; ep 329 drivers/usb/host/imx21-hcd.h struct usb_host_endpoint *ep; ep 340 drivers/usb/host/imx21-hcd.h struct usb_host_endpoint *ep; ep 350 drivers/usb/host/imx21-hcd.h struct usb_host_endpoint *ep; ep 373 drivers/usb/host/imx21-hcd.h struct usb_host_endpoint *ep; ep 168 drivers/usb/host/isp116x-hcd.c struct isp116x_ep *ep; ep 176 drivers/usb/host/isp116x-hcd.c for (ep = isp116x->atl_active; ep; ep = ep->active) { ep 177 drivers/usb/host/isp116x-hcd.c ptd = &ep->ptd; ep 179 drivers/usb/host/isp116x-hcd.c dump_ptd_out_data(ptd, ep->data); ep 186 drivers/usb/host/isp116x-hcd.c if (ep->active || (isp116x->atl_last_dir != PTD_DIR_IN)) { ep 187 drivers/usb/host/isp116x-hcd.c write_ptddata_to_fifo(isp116x, ep->data, ep->length); ep 188 drivers/usb/host/isp116x-hcd.c buflen -= ALIGN(ep->length, 4); ep 200 drivers/usb/host/isp116x-hcd.c struct isp116x_ep *ep; ep 208 drivers/usb/host/isp116x-hcd.c for (ep = isp116x->atl_active; ep; ep = ep->active) { ep 209 drivers/usb/host/isp116x-hcd.c ptd = &ep->ptd; ep 216 drivers/usb/host/isp116x-hcd.c if (ep->active || (isp116x->atl_last_dir == PTD_DIR_IN)) { ep 217 drivers/usb/host/isp116x-hcd.c read_ptddata_from_fifo(isp116x, ep->data, ep->length); ep 218 drivers/usb/host/isp116x-hcd.c buflen -= ALIGN(ep->length, 4); ep 221 drivers/usb/host/isp116x-hcd.c dump_ptd_in_data(ptd, ep->data); ep 233 drivers/usb/host/isp116x-hcd.c struct isp116x_ep *ep; ep 238 drivers/usb/host/isp116x-hcd.c for (ep = isp116x->atl_active; ep; ep = ep->active) { ep 241 drivers/usb/host/isp116x-hcd.c BUG_ON(list_empty(&ep->hep->urb_list)); ep 242 drivers/usb/host/isp116x-hcd.c urb = container_of(ep->hep->urb_list.next, ep 244 drivers/usb/host/isp116x-hcd.c ptd = &ep->ptd; ep 245 drivers/usb/host/isp116x-hcd.c len = ep->length; ep 246 drivers/usb/host/isp116x-hcd.c ep->data = (unsigned char *)urb->transfer_buffer ep 249 drivers/usb/host/isp116x-hcd.c switch (ep->nextpid) { ep 251 drivers/usb/host/isp116x-hcd.c toggle = usb_gettoggle(urb->dev, ep->epnum, 0); ep 255 drivers/usb/host/isp116x-hcd.c toggle = usb_gettoggle(urb->dev, ep->epnum, 1); ep 260 drivers/usb/host/isp116x-hcd.c ep->data = urb->setup_packet; ep 271 drivers/usb/host/isp116x-hcd.c ep->nextpid); ep 276 drivers/usb/host/isp116x-hcd.c ptd->mps = PTD_MPS(ep->maxpacket) ep 278 drivers/usb/host/isp116x-hcd.c | PTD_EP(ep->epnum); ep 281 drivers/usb/host/isp116x-hcd.c if (!ep->active) { ep 294 drivers/usb/host/isp116x-hcd.c static void finish_request(struct isp116x *isp116x, struct isp116x_ep *ep, ep 300 drivers/usb/host/isp116x-hcd.c ep->error_count = 0; ep 303 drivers/usb/host/isp116x-hcd.c ep->nextpid = USB_PID_SETUP; ep 313 drivers/usb/host/isp116x-hcd.c if (!list_empty(&ep->hep->urb_list)) ep 317 drivers/usb/host/isp116x-hcd.c if (!list_empty(&ep->schedule)) { ep 318 drivers/usb/host/isp116x-hcd.c list_del_init(&ep->schedule); ep 323 drivers/usb/host/isp116x-hcd.c DBG("deschedule qh%d/%p branch %d\n", ep->period, ep, ep->branch); ep 324 drivers/usb/host/isp116x-hcd.c for (i = ep->branch; i < PERIODIC_SIZE; i += ep->period) { ep 328 drivers/usb/host/isp116x-hcd.c while (*prev && ((temp = *prev) != ep)) ep 331 drivers/usb/host/isp116x-hcd.c *prev = ep->next; ep 332 drivers/usb/host/isp116x-hcd.c isp116x->load[i] -= ep->load; ep 334 drivers/usb/host/isp116x-hcd.c ep->branch = PERIODIC_SIZE; ep 336 drivers/usb/host/isp116x-hcd.c ep->load / ep->period; ep 350 drivers/usb/host/isp116x-hcd.c struct isp116x_ep *ep; ep 358 drivers/usb/host/isp116x-hcd.c for (ep = isp116x->atl_active; ep; ep = ep->active) { ep 359 drivers/usb/host/isp116x-hcd.c BUG_ON(list_empty(&ep->hep->urb_list)); ep 361 drivers/usb/host/isp116x-hcd.c container_of(ep->hep->urb_list.next, struct urb, urb_list); ep 363 drivers/usb/host/isp116x-hcd.c ptd = &ep->ptd; ep 380 drivers/usb/host/isp116x-hcd.c ep->error_count = 1; ep 381 drivers/usb/host/isp116x-hcd.c usb_settoggle(udev, ep->epnum, ep 382 drivers/usb/host/isp116x-hcd.c ep->nextpid == USB_PID_OUT, ep 391 drivers/usb/host/isp116x-hcd.c && (++ep->error_count >= 3 || cc == TD_CC_STALL ep 394 drivers/usb/host/isp116x-hcd.c if (ep->nextpid == USB_PID_ACK) ep 395 drivers/usb/host/isp116x-hcd.c ep->nextpid = 0; ep 408 drivers/usb/host/isp116x-hcd.c if (ep->error_count ep 410 drivers/usb/host/isp116x-hcd.c ep->error_count = 0; ep 414 drivers/usb/host/isp116x-hcd.c if (ep->nextpid == USB_PID_OUT) ep 415 drivers/usb/host/isp116x-hcd.c usb_settoggle(udev, ep->epnum, 1, PTD_GET_TOGGLE(ptd) ep 416 drivers/usb/host/isp116x-hcd.c ^ (ep->error_count > 0)); ep 417 drivers/usb/host/isp116x-hcd.c else if (ep->nextpid == USB_PID_IN) ep 418 drivers/usb/host/isp116x-hcd.c usb_settoggle(udev, ep->epnum, 0, PTD_GET_TOGGLE(ptd) ep 419 drivers/usb/host/isp116x-hcd.c ^ (ep->error_count > 0)); ep 421 drivers/usb/host/isp116x-hcd.c switch (ep->nextpid) { ep 433 drivers/usb/host/isp116x-hcd.c && ep->nextpid == USB_PID_OUT ep 434 drivers/usb/host/isp116x-hcd.c && !(PTD_GET_COUNT(ptd) % ep->maxpacket)) { ep 441 drivers/usb/host/isp116x-hcd.c ep->nextpid = USB_PID_ACK; ep 450 drivers/usb/host/isp116x-hcd.c ep->nextpid = USB_PID_ACK; ep 453 drivers/usb/host/isp116x-hcd.c ep->nextpid = USB_PID_OUT; ep 456 drivers/usb/host/isp116x-hcd.c ep->nextpid = USB_PID_IN; ep 464 drivers/usb/host/isp116x-hcd.c ep->nextpid = 0; ep 472 drivers/usb/host/isp116x-hcd.c finish_request(isp116x, ep, urb, status); ep 482 drivers/usb/host/isp116x-hcd.c struct isp116x_ep *last_ep = NULL, *ep; ep 517 drivers/usb/host/isp116x-hcd.c list_for_each_entry(ep, &isp116x->async, schedule) { ep 518 drivers/usb/host/isp116x-hcd.c urb = container_of(ep->hep->urb_list.next, ep 524 drivers/usb/host/isp116x-hcd.c if (ep->nextpid == USB_PID_SETUP) { ep 526 drivers/usb/host/isp116x-hcd.c } else if (ep->nextpid == USB_PID_ACK) { ep 542 drivers/usb/host/isp116x-hcd.c len -= len % ep->maxpacket; ep 555 drivers/usb/host/isp116x-hcd.c ep->active = NULL; ep 556 drivers/usb/host/isp116x-hcd.c ep->length = len; ep 558 drivers/usb/host/isp116x-hcd.c last_ep->active = ep; ep 560 drivers/usb/host/isp116x-hcd.c isp116x->atl_active = ep; ep 561 drivers/usb/host/isp116x-hcd.c last_ep = ep; ep 691 drivers/usb/host/isp116x-hcd.c struct usb_host_endpoint *hep = urb->ep; ep 692 drivers/usb/host/isp116x-hcd.c struct isp116x_ep *ep = NULL; ep 706 drivers/usb/host/isp116x-hcd.c ep = kzalloc(sizeof *ep, mem_flags); ep 707 drivers/usb/host/isp116x-hcd.c if (!ep) ep 713 drivers/usb/host/isp116x-hcd.c kfree(ep); ep 719 drivers/usb/host/isp116x-hcd.c kfree(ep); ep 724 drivers/usb/host/isp116x-hcd.c ep = hep->hcpriv; ep 726 drivers/usb/host/isp116x-hcd.c INIT_LIST_HEAD(&ep->schedule); ep 727 drivers/usb/host/isp116x-hcd.c ep->udev = udev; ep 728 drivers/usb/host/isp116x-hcd.c ep->epnum = epnum; ep 729 drivers/usb/host/isp116x-hcd.c ep->maxpacket = usb_maxpacket(udev, urb->pipe, is_out); ep 733 drivers/usb/host/isp116x-hcd.c ep->nextpid = USB_PID_SETUP; ep 735 drivers/usb/host/isp116x-hcd.c ep->nextpid = USB_PID_OUT; ep 737 drivers/usb/host/isp116x-hcd.c ep->nextpid = USB_PID_IN; ep 755 drivers/usb/host/isp116x-hcd.c ep->period = urb->interval >> 1; ep 756 drivers/usb/host/isp116x-hcd.c ep->branch = PERIODIC_SIZE; ep 757 drivers/usb/host/isp116x-hcd.c ep->load = usb_calc_bus_time(udev->speed, ep 764 drivers/usb/host/isp116x-hcd.c hep->hcpriv = ep; ep 765 drivers/usb/host/isp116x-hcd.c ep->hep = hep; ep 772 drivers/usb/host/isp116x-hcd.c if (list_empty(&ep->schedule)) ep 773 drivers/usb/host/isp116x-hcd.c list_add_tail(&ep->schedule, &isp116x->async); ep 776 drivers/usb/host/isp116x-hcd.c urb->interval = ep->period; ep 777 drivers/usb/host/isp116x-hcd.c ep->length = min_t(u32, ep->maxpacket, ep 781 drivers/usb/host/isp116x-hcd.c if (ep->branch < PERIODIC_SIZE) ep 784 drivers/usb/host/isp116x-hcd.c ep->branch = ret = balance(isp116x, ep->period, ep->load); ep 790 drivers/usb/host/isp116x-hcd.c + ep->branch; ep 795 drivers/usb/host/isp116x-hcd.c DBG("schedule qh%d/%p branch %d\n", ep->period, ep, ep->branch); ep 796 drivers/usb/host/isp116x-hcd.c for (i = ep->branch; i < PERIODIC_SIZE; i += ep->period) { ep 800 drivers/usb/host/isp116x-hcd.c while (here && ep != here) { ep 801 drivers/usb/host/isp116x-hcd.c if (ep->period > here->period) ep 806 drivers/usb/host/isp116x-hcd.c if (ep != here) { ep 807 drivers/usb/host/isp116x-hcd.c ep->next = here; ep 808 drivers/usb/host/isp116x-hcd.c *prev = ep; ep 810 drivers/usb/host/isp116x-hcd.c isp116x->load[i] += ep->load; ep 812 drivers/usb/host/isp116x-hcd.c hcd->self.bandwidth_allocated += ep->load / ep->period; ep 842 drivers/usb/host/isp116x-hcd.c struct isp116x_ep *ep, *ep_act; ep 852 drivers/usb/host/isp116x-hcd.c ep = hep->hcpriv; ep 853 drivers/usb/host/isp116x-hcd.c WARN_ON(hep != ep->hep); ep 856 drivers/usb/host/isp116x-hcd.c if (ep->hep->urb_list.next == &urb->urb_list) ep 860 drivers/usb/host/isp116x-hcd.c if (ep_act == ep) { ep 868 drivers/usb/host/isp116x-hcd.c finish_request(isp116x, ep, urb, status); ep 878 drivers/usb/host/isp116x-hcd.c struct isp116x_ep *ep = hep->hcpriv; ep 880 drivers/usb/host/isp116x-hcd.c if (!ep) ep 887 drivers/usb/host/isp116x-hcd.c WARNING("ep %p not empty?\n", ep); ep 889 drivers/usb/host/isp116x-hcd.c kfree(ep); ep 187 drivers/usb/host/isp1362-hcd.c struct isp1362_ep *ep, u16 len) ep 198 drivers/usb/host/isp1362-hcd.c if (ep->num_ptds) ep 201 drivers/usb/host/isp1362-hcd.c BUG_ON(ep->num_ptds != 0); ep 212 drivers/usb/host/isp1362-hcd.c ep->ptd_offset = ptd_offset; ep 213 drivers/usb/host/isp1362-hcd.c ep->num_ptds += num_ptds; ep 216 drivers/usb/host/isp1362-hcd.c ep->ptd_index = found; ep 219 drivers/usb/host/isp1362-hcd.c __func__, epq->name, ep->ptd_index, ep->ptd_offset, ep 225 drivers/usb/host/isp1362-hcd.c static inline void release_ptd_buffers(struct isp1362_ep_queue *epq, struct isp1362_ep *ep) ep 227 drivers/usb/host/isp1362-hcd.c int last = ep->ptd_index + ep->num_ptds; ep 231 drivers/usb/host/isp1362-hcd.c __func__, ep, ep->num_req, ep->length, epq->name, ep->ptd_index, ep 232 drivers/usb/host/isp1362-hcd.c ep->ptd_offset, ep->num_ptds, epq->buf_count, epq->buf_avail, ep 236 drivers/usb/host/isp1362-hcd.c bitmap_clear(&epq->buf_map, ep->ptd_index, ep->num_ptds); ep 237 drivers/usb/host/isp1362-hcd.c bitmap_set(&epq->skip_map, ep->ptd_index, ep->num_ptds); ep 238 drivers/usb/host/isp1362-hcd.c epq->buf_avail += ep->num_ptds; ep 246 drivers/usb/host/isp1362-hcd.c ep->ptd_offset, ep->num_ptds, epq->buf_avail, epq->buf_count); ep 250 drivers/usb/host/isp1362-hcd.c ep->num_ptds = 0; ep 251 drivers/usb/host/isp1362-hcd.c ep->ptd_offset = -EINVAL; ep 252 drivers/usb/host/isp1362-hcd.c ep->ptd_index = -EINVAL; ep 261 drivers/usb/host/isp1362-hcd.c struct isp1362_ep *ep, struct isp1362_ep_queue *epq, ep 270 drivers/usb/host/isp1362-hcd.c DBG(3, "%s: %s ep %p\n", __func__, epq->name, ep); ep 272 drivers/usb/host/isp1362-hcd.c ptd = &ep->ptd; ep 274 drivers/usb/host/isp1362-hcd.c ep->data = (unsigned char *)urb->transfer_buffer + urb->actual_length; ep 276 drivers/usb/host/isp1362-hcd.c switch (ep->nextpid) { ep 278 drivers/usb/host/isp1362-hcd.c toggle = usb_gettoggle(urb->dev, ep->epnum, 0); ep 281 drivers/usb/host/isp1362-hcd.c len = min_t(size_t, ep->maxpacket, buf_len); ep 284 drivers/usb/host/isp1362-hcd.c ep->data = urb->transfer_buffer + urb->iso_frame_desc[fno].offset; ep 286 drivers/usb/host/isp1362-hcd.c len = max_transfer_size(epq, buf_len, ep->maxpacket); ep 287 drivers/usb/host/isp1362-hcd.c DBG(1, "%s: IN len %d/%d/%d from URB\n", __func__, len, ep->maxpacket, ep 291 drivers/usb/host/isp1362-hcd.c toggle = usb_gettoggle(urb->dev, ep->epnum, 1); ep 294 drivers/usb/host/isp1362-hcd.c len = min_t(size_t, ep->maxpacket, buf_len); ep 298 drivers/usb/host/isp1362-hcd.c len = max_transfer_size(epq, buf_len, ep->maxpacket); ep 302 drivers/usb/host/isp1362-hcd.c DBG(1, "%s: OUT len %d/%d/%d from URB\n", __func__, len, ep->maxpacket, ep 310 drivers/usb/host/isp1362-hcd.c ep->data = urb->setup_packet; ep 321 drivers/usb/host/isp1362-hcd.c pr_err("%s@%d: ep->nextpid %02x\n", __func__, __LINE__, ep->nextpid); ep 325 drivers/usb/host/isp1362-hcd.c ep->length = len; ep 327 drivers/usb/host/isp1362-hcd.c ep->data = NULL; ep 330 drivers/usb/host/isp1362-hcd.c ptd->mps = PTD_MPS(ep->maxpacket) | PTD_SPD(urb->dev->speed == USB_SPEED_LOW) | ep 331 drivers/usb/host/isp1362-hcd.c PTD_EP(ep->epnum); ep 336 drivers/usb/host/isp1362-hcd.c ptd->faddr |= PTD_SF_INT(ep->branch); ep 337 drivers/usb/host/isp1362-hcd.c ptd->faddr |= PTD_PR(ep->interval ? __ffs(ep->interval) : 0); ep 345 drivers/usb/host/isp1362-hcd.c static void isp1362_write_ptd(struct isp1362_hcd *isp1362_hcd, struct isp1362_ep *ep, ep 348 drivers/usb/host/isp1362-hcd.c struct ptd *ptd = &ep->ptd; ep 349 drivers/usb/host/isp1362-hcd.c int len = PTD_GET_DIR(ptd) == PTD_DIR_IN ? 0 : ep->length; ep 352 drivers/usb/host/isp1362-hcd.c isp1362_write_buffer(isp1362_hcd, ptd, ep->ptd_offset, PTD_HEADER_SIZE); ep 354 drivers/usb/host/isp1362-hcd.c isp1362_write_buffer(isp1362_hcd, ep->data, ep 355 drivers/usb/host/isp1362-hcd.c ep->ptd_offset + PTD_HEADER_SIZE, len); ep 358 drivers/usb/host/isp1362-hcd.c dump_ptd_out_data(ptd, ep->data); ep 361 drivers/usb/host/isp1362-hcd.c static void isp1362_read_ptd(struct isp1362_hcd *isp1362_hcd, struct isp1362_ep *ep, ep 364 drivers/usb/host/isp1362-hcd.c struct ptd *ptd = &ep->ptd; ep 367 drivers/usb/host/isp1362-hcd.c WARN_ON(list_empty(&ep->active)); ep 368 drivers/usb/host/isp1362-hcd.c BUG_ON(ep->ptd_offset < 0); ep 370 drivers/usb/host/isp1362-hcd.c list_del_init(&ep->active); ep 371 drivers/usb/host/isp1362-hcd.c DBG(1, "%s: ep %p removed from active list %p\n", __func__, ep, &epq->active); ep 374 drivers/usb/host/isp1362-hcd.c isp1362_read_buffer(isp1362_hcd, ptd, ep->ptd_offset, PTD_HEADER_SIZE); ep 379 drivers/usb/host/isp1362-hcd.c if (act_len > ep->length) ep 380 drivers/usb/host/isp1362-hcd.c pr_err("%s: ep %p PTD $%04x act_len %d ep->length %d\n", __func__, ep, ep 381 drivers/usb/host/isp1362-hcd.c ep->ptd_offset, act_len, ep->length); ep 382 drivers/usb/host/isp1362-hcd.c BUG_ON(act_len > ep->length); ep 387 drivers/usb/host/isp1362-hcd.c prefetchw(ep->data); ep 388 drivers/usb/host/isp1362-hcd.c isp1362_read_buffer(isp1362_hcd, ep->data, ep 389 drivers/usb/host/isp1362-hcd.c ep->ptd_offset + PTD_HEADER_SIZE, act_len); ep 390 drivers/usb/host/isp1362-hcd.c dump_ptd_in_data(ptd, ep->data); ep 398 drivers/usb/host/isp1362-hcd.c static void remove_ptd(struct isp1362_hcd *isp1362_hcd, struct isp1362_ep *ep) ep 404 drivers/usb/host/isp1362-hcd.c DBG(1, "%s: ep %p PTD[%d] $%04x\n", __func__, ep, ep->ptd_index, ep->ptd_offset); ep 405 drivers/usb/host/isp1362-hcd.c BUG_ON(ep->ptd_offset < 0); ep 407 drivers/usb/host/isp1362-hcd.c epq = get_ptd_queue(isp1362_hcd, ep->ptd_offset); ep 411 drivers/usb/host/isp1362-hcd.c WARN_ON(!list_empty(&ep->remove_list)); ep 412 drivers/usb/host/isp1362-hcd.c list_add_tail(&ep->remove_list, &isp1362_hcd->remove_list); ep 416 drivers/usb/host/isp1362-hcd.c index = ep->ptd_index; ep 422 drivers/usb/host/isp1362-hcd.c index, ep->ptd_offset, epq->skip_map, 1 << index); ep 445 drivers/usb/host/isp1362-hcd.c static void finish_request(struct isp1362_hcd *isp1362_hcd, struct isp1362_ep *ep, ep 451 drivers/usb/host/isp1362-hcd.c ep->error_count = 0; ep 454 drivers/usb/host/isp1362-hcd.c ep->nextpid = USB_PID_SETUP; ep 457 drivers/usb/host/isp1362-hcd.c ep->num_req, usb_pipedevice(urb->pipe), ep 475 drivers/usb/host/isp1362-hcd.c if (!list_empty(&ep->hep->urb_list)) ep 479 drivers/usb/host/isp1362-hcd.c if (!list_empty(&ep->schedule)) { ep 480 drivers/usb/host/isp1362-hcd.c list_del_init(&ep->schedule); ep 485 drivers/usb/host/isp1362-hcd.c if (ep->interval) { ep 487 drivers/usb/host/isp1362-hcd.c DBG(1, "deschedule qh%d/%p branch %d load %d bandwidth %d -> %d\n", ep->interval, ep 488 drivers/usb/host/isp1362-hcd.c ep, ep->branch, ep->load, ep 489 drivers/usb/host/isp1362-hcd.c isp1362_hcd->load[ep->branch], ep 490 drivers/usb/host/isp1362-hcd.c isp1362_hcd->load[ep->branch] - ep->load); ep 491 drivers/usb/host/isp1362-hcd.c isp1362_hcd->load[ep->branch] -= ep->load; ep 492 drivers/usb/host/isp1362-hcd.c ep->branch = PERIODIC_SIZE; ep 499 drivers/usb/host/isp1362-hcd.c static void postproc_ep(struct isp1362_hcd *isp1362_hcd, struct isp1362_ep *ep) ep 501 drivers/usb/host/isp1362-hcd.c struct urb *urb = get_urb(ep); ep 509 drivers/usb/host/isp1362-hcd.c DBG(2, "%s: ep %p req %d\n", __func__, ep, ep->num_req); ep 512 drivers/usb/host/isp1362-hcd.c ptd = &ep->ptd; ep 516 drivers/usb/host/isp1362-hcd.c ep->num_req, ptd); ep 532 drivers/usb/host/isp1362-hcd.c __func__, ep->num_req, short_ok ? "" : "not_", ep 533 drivers/usb/host/isp1362-hcd.c PTD_GET_COUNT(ptd), ep->maxpacket, len); ep 538 drivers/usb/host/isp1362-hcd.c __func__, ep->num_req, ep 539 drivers/usb/host/isp1362-hcd.c usb_pipein(urb->pipe) ? "IN" : "OUT", ep->nextpid, ep 541 drivers/usb/host/isp1362-hcd.c PTD_GET_COUNT(ptd), ep->maxpacket, len); ep 547 drivers/usb/host/isp1362-hcd.c ep->nextpid = USB_PID_ACK; ep 553 drivers/usb/host/isp1362-hcd.c usb_settoggle(udev, ep->epnum, ep->nextpid == USB_PID_OUT, ep 562 drivers/usb/host/isp1362-hcd.c if (++ep->error_count >= 3 || cc == PTD_CC_STALL || cc == PTD_DATAOVERRUN) { ep 565 drivers/usb/host/isp1362-hcd.c __func__, ep->num_req, ep->nextpid, urbstat, cc, ep 566 drivers/usb/host/isp1362-hcd.c ep->error_count); ep 571 drivers/usb/host/isp1362-hcd.c switch (ep->nextpid) { ep 573 drivers/usb/host/isp1362-hcd.c if (PTD_GET_COUNT(ptd) != ep->length) ep 575 drivers/usb/host/isp1362-hcd.c PTD_GET_COUNT(ptd), ep->length); ep 576 drivers/usb/host/isp1362-hcd.c BUG_ON(PTD_GET_COUNT(ptd) != ep->length); ep 577 drivers/usb/host/isp1362-hcd.c urb->actual_length += ep->length; ep 579 drivers/usb/host/isp1362-hcd.c usb_settoggle(udev, ep->epnum, 1, PTD_GET_TOGGLE(ptd)); ep 582 drivers/usb/host/isp1362-hcd.c ep->num_req, len, ep->maxpacket, urbstat); ep 585 drivers/usb/host/isp1362-hcd.c ep->num_req, ep 587 drivers/usb/host/isp1362-hcd.c ep->nextpid = USB_PID_ACK; ep 589 drivers/usb/host/isp1362-hcd.c if (len % ep->maxpacket || ep 593 drivers/usb/host/isp1362-hcd.c __func__, ep->num_req, usb_pipein(urb->pipe) ? "IN" : "OUT", ep 594 drivers/usb/host/isp1362-hcd.c urbstat, len, ep->maxpacket, urb->actual_length); ep 601 drivers/usb/host/isp1362-hcd.c BUG_ON(len > ep->length); ep 604 drivers/usb/host/isp1362-hcd.c usb_settoggle(udev, ep->epnum, 0, PTD_GET_TOGGLE(ptd)); ep 607 drivers/usb/host/isp1362-hcd.c len % ep->maxpacket) { ep 609 drivers/usb/host/isp1362-hcd.c ep->num_req, len, ep->maxpacket, urbstat); ep 612 drivers/usb/host/isp1362-hcd.c ep->num_req, ep 614 drivers/usb/host/isp1362-hcd.c ep->nextpid = USB_PID_ACK; ep 618 drivers/usb/host/isp1362-hcd.c __func__, ep->num_req, usb_pipein(urb->pipe) ? "IN" : "OUT", ep 619 drivers/usb/host/isp1362-hcd.c urbstat, len, ep->maxpacket, urb->actual_length); ep 625 drivers/usb/host/isp1362-hcd.c ep->nextpid = USB_PID_ACK; ep 628 drivers/usb/host/isp1362-hcd.c ep->nextpid = USB_PID_OUT; ep 631 drivers/usb/host/isp1362-hcd.c ep->nextpid = USB_PID_IN; ep 635 drivers/usb/host/isp1362-hcd.c DBG(3, "%s: req %d got ACK %d -> 0\n", __func__, ep->num_req, ep 639 drivers/usb/host/isp1362-hcd.c ep->nextpid = 0; ep 648 drivers/usb/host/isp1362-hcd.c ep, ep->num_req, urb, urbstat); ep 649 drivers/usb/host/isp1362-hcd.c finish_request(isp1362_hcd, ep, urb, urbstat); ep 655 drivers/usb/host/isp1362-hcd.c struct isp1362_ep *ep; ep 658 drivers/usb/host/isp1362-hcd.c list_for_each_entry_safe(ep, tmp, &isp1362_hcd->remove_list, remove_list) { ep 660 drivers/usb/host/isp1362-hcd.c get_ptd_queue(isp1362_hcd, ep->ptd_offset); ep 661 drivers/usb/host/isp1362-hcd.c int index = ep->ptd_index; ep 665 drivers/usb/host/isp1362-hcd.c DBG(1, "%s: remove PTD[%d] $%04x\n", __func__, index, ep->ptd_offset); ep 666 drivers/usb/host/isp1362-hcd.c BUG_ON(ep->num_ptds == 0); ep 667 drivers/usb/host/isp1362-hcd.c release_ptd_buffers(epq, ep); ep 669 drivers/usb/host/isp1362-hcd.c if (!list_empty(&ep->hep->urb_list)) { ep 670 drivers/usb/host/isp1362-hcd.c struct urb *urb = get_urb(ep); ep 673 drivers/usb/host/isp1362-hcd.c ep->num_req, ep); ep 674 drivers/usb/host/isp1362-hcd.c finish_request(isp1362_hcd, ep, urb, -ESHUTDOWN); ep 676 drivers/usb/host/isp1362-hcd.c WARN_ON(list_empty(&ep->active)); ep 677 drivers/usb/host/isp1362-hcd.c if (!list_empty(&ep->active)) { ep 678 drivers/usb/host/isp1362-hcd.c list_del_init(&ep->active); ep 679 drivers/usb/host/isp1362-hcd.c DBG(1, "%s: ep %p removed from active list\n", __func__, ep); ep 681 drivers/usb/host/isp1362-hcd.c list_del_init(&ep->remove_list); ep 682 drivers/usb/host/isp1362-hcd.c DBG(1, "%s: ep %p removed from remove_list\n", __func__, ep); ep 714 drivers/usb/host/isp1362-hcd.c struct isp1362_ep *ep, struct isp1362_ep_queue *epq) ep 718 drivers/usb/host/isp1362-hcd.c prepare_ptd(isp1362_hcd, urb, ep, epq, 0); ep 719 drivers/usb/host/isp1362-hcd.c index = claim_ptd_buffers(epq, ep, ep->length); ep 722 drivers/usb/host/isp1362-hcd.c ep->num_req, epq->name, ep->num_ptds, epq->buf_map, epq->skip_map); ep 726 drivers/usb/host/isp1362-hcd.c __func__, ep->num_req, ep->length, epq->name, ep->num_ptds, ep 731 drivers/usb/host/isp1362-hcd.c list_add_tail(&ep->active, &epq->active); ep 733 drivers/usb/host/isp1362-hcd.c ep, ep->num_req, ep->length, &epq->active); ep 735 drivers/usb/host/isp1362-hcd.c ep->ptd_offset, ep, ep->num_req); ep 736 drivers/usb/host/isp1362-hcd.c isp1362_write_ptd(isp1362_hcd, ep, epq); ep 737 drivers/usb/host/isp1362-hcd.c __clear_bit(ep->ptd_index, &epq->skip_map); ep 746 drivers/usb/host/isp1362-hcd.c struct isp1362_ep *ep; ep 754 drivers/usb/host/isp1362-hcd.c list_for_each_entry(ep, &isp1362_hcd->async, schedule) { ep 755 drivers/usb/host/isp1362-hcd.c struct urb *urb = get_urb(ep); ep 758 drivers/usb/host/isp1362-hcd.c if (!list_empty(&ep->active)) { ep 759 drivers/usb/host/isp1362-hcd.c DBG(2, "%s: Skipping active %s ep %p\n", __func__, epq->name, ep); ep 764 drivers/usb/host/isp1362-hcd.c ep, ep->num_req); ep 766 drivers/usb/host/isp1362-hcd.c ret = submit_req(isp1362_hcd, urb, ep, epq); ep 775 drivers/usb/host/isp1362-hcd.c defer = ep->nextpid == USB_PID_SETUP; ep 799 drivers/usb/host/isp1362-hcd.c struct isp1362_ep *ep; ep 806 drivers/usb/host/isp1362-hcd.c list_for_each_entry(ep, &isp1362_hcd->periodic, schedule) { ep 807 drivers/usb/host/isp1362-hcd.c struct urb *urb = get_urb(ep); ep 810 drivers/usb/host/isp1362-hcd.c if (!list_empty(&ep->active)) { ep 812 drivers/usb/host/isp1362-hcd.c epq->name, ep); ep 817 drivers/usb/host/isp1362-hcd.c epq->name, ep, ep->num_req); ep 818 drivers/usb/host/isp1362-hcd.c ret = submit_req(isp1362_hcd, urb, ep, epq); ep 841 drivers/usb/host/isp1362-hcd.c static inline int next_ptd(struct isp1362_ep_queue *epq, struct isp1362_ep *ep) ep 843 drivers/usb/host/isp1362-hcd.c u16 ptd_offset = ep->ptd_offset; ep 844 drivers/usb/host/isp1362-hcd.c int num_ptds = (ep->length + PTD_HEADER_SIZE + (epq->blk_size - 1)) / epq->blk_size; ep 847 drivers/usb/host/isp1362-hcd.c ep->length, num_ptds, epq->blk_size, ptd_offset + num_ptds * epq->blk_size); ep 862 drivers/usb/host/isp1362-hcd.c struct isp1362_ep *ep; ep 877 drivers/usb/host/isp1362-hcd.c list_for_each_entry_safe(ep, tmp, &isp1362_hcd->isoc, schedule) { ep 878 drivers/usb/host/isp1362-hcd.c struct urb *urb = get_urb(ep); ep 881 drivers/usb/host/isp1362-hcd.c DBG(1, "%s: Processing %s ep %p\n", __func__, epq->name, ep); ep 885 drivers/usb/host/isp1362-hcd.c finish_request(isp1362_hcd, ep, urb, -EOVERFLOW); ep 895 drivers/usb/host/isp1362-hcd.c prepare_ptd(isp1362_hcd, urb, ep, epq, fno); ep 896 drivers/usb/host/isp1362-hcd.c if (ptd_offset + PTD_HEADER_SIZE + ep->length > ep 899 drivers/usb/host/isp1362-hcd.c __func__, ep->length); ep 902 drivers/usb/host/isp1362-hcd.c ep->ptd_offset = ptd_offset; ep 903 drivers/usb/host/isp1362-hcd.c list_add_tail(&ep->active, &epq->active); ep 905 drivers/usb/host/isp1362-hcd.c ptd_offset = next_ptd(epq, ep); ep 908 drivers/usb/host/isp1362-hcd.c __func__, ep->num_req, epq->name); ep 913 drivers/usb/host/isp1362-hcd.c list_for_each_entry(ep, &epq->active, active) { ep 914 drivers/usb/host/isp1362-hcd.c if (epq->active.next == &ep->active) ep 915 drivers/usb/host/isp1362-hcd.c ep->ptd.mps |= PTD_LAST_MSK; ep 916 drivers/usb/host/isp1362-hcd.c isp1362_write_ptd(isp1362_hcd, ep, epq); ep 940 drivers/usb/host/isp1362-hcd.c struct isp1362_ep *ep; ep 951 drivers/usb/host/isp1362-hcd.c list_for_each_entry_safe(ep, tmp, &epq->active, active) { ep 952 drivers/usb/host/isp1362-hcd.c int index = ep->ptd_index; ep 955 drivers/usb/host/isp1362-hcd.c index, ep->ptd_offset); ep 959 drivers/usb/host/isp1362-hcd.c isp1362_read_ptd(isp1362_hcd, ep, epq); ep 961 drivers/usb/host/isp1362-hcd.c BUG_ON(ep->num_ptds == 0); ep 962 drivers/usb/host/isp1362-hcd.c release_ptd_buffers(epq, ep); ep 965 drivers/usb/host/isp1362-hcd.c ep, ep->num_req); ep 966 drivers/usb/host/isp1362-hcd.c if (!list_empty(&ep->remove_list)) { ep 967 drivers/usb/host/isp1362-hcd.c list_del_init(&ep->remove_list); ep 968 drivers/usb/host/isp1362-hcd.c DBG(1, "%s: ep %p removed from remove list\n", __func__, ep); ep 971 drivers/usb/host/isp1362-hcd.c ep, ep->num_req); ep 972 drivers/usb/host/isp1362-hcd.c postproc_ep(isp1362_hcd, ep); ep 985 drivers/usb/host/isp1362-hcd.c struct isp1362_ep *ep; ep 996 drivers/usb/host/isp1362-hcd.c list_for_each_entry_safe(ep, tmp, &epq->active, active) { ep 997 drivers/usb/host/isp1362-hcd.c DBG(1, "%s: Checking PTD $%04x\n", __func__, ep->ptd_offset); ep 999 drivers/usb/host/isp1362-hcd.c isp1362_read_ptd(isp1362_hcd, ep, epq); ep 1000 drivers/usb/host/isp1362-hcd.c DBG(1, "%s: Postprocessing %s ep %p\n", __func__, epq->name, ep); ep 1001 drivers/usb/host/isp1362-hcd.c postproc_ep(isp1362_hcd, ep); ep 1226 drivers/usb/host/isp1362-hcd.c struct usb_host_endpoint *hep = urb->ep; ep 1227 drivers/usb/host/isp1362-hcd.c struct isp1362_ep *ep = NULL; ep 1252 drivers/usb/host/isp1362-hcd.c ep = kzalloc(sizeof *ep, mem_flags); ep 1253 drivers/usb/host/isp1362-hcd.c if (!ep) ep 1262 drivers/usb/host/isp1362-hcd.c kfree(ep); ep 1269 drivers/usb/host/isp1362-hcd.c kfree(ep); ep 1274 drivers/usb/host/isp1362-hcd.c ep = hep->hcpriv; ep 1276 drivers/usb/host/isp1362-hcd.c INIT_LIST_HEAD(&ep->schedule); ep 1277 drivers/usb/host/isp1362-hcd.c INIT_LIST_HEAD(&ep->active); ep 1278 drivers/usb/host/isp1362-hcd.c INIT_LIST_HEAD(&ep->remove_list); ep 1279 drivers/usb/host/isp1362-hcd.c ep->udev = usb_get_dev(udev); ep 1280 drivers/usb/host/isp1362-hcd.c ep->hep = hep; ep 1281 drivers/usb/host/isp1362-hcd.c ep->epnum = epnum; ep 1282 drivers/usb/host/isp1362-hcd.c ep->maxpacket = usb_maxpacket(udev, urb->pipe, is_out); ep 1283 drivers/usb/host/isp1362-hcd.c ep->ptd_offset = -EINVAL; ep 1284 drivers/usb/host/isp1362-hcd.c ep->ptd_index = -EINVAL; ep 1288 drivers/usb/host/isp1362-hcd.c ep->nextpid = USB_PID_SETUP; ep 1290 drivers/usb/host/isp1362-hcd.c ep->nextpid = USB_PID_OUT; ep 1292 drivers/usb/host/isp1362-hcd.c ep->nextpid = USB_PID_IN; ep 1299 drivers/usb/host/isp1362-hcd.c ep->interval = urb->interval; ep 1300 drivers/usb/host/isp1362-hcd.c ep->branch = PERIODIC_SIZE; ep 1301 drivers/usb/host/isp1362-hcd.c ep->load = usb_calc_bus_time(udev->speed, !is_out, ep 1306 drivers/usb/host/isp1362-hcd.c hep->hcpriv = ep; ep 1308 drivers/usb/host/isp1362-hcd.c ep->num_req = isp1362_hcd->req_serial++; ep 1314 drivers/usb/host/isp1362-hcd.c if (list_empty(&ep->schedule)) { ep 1316 drivers/usb/host/isp1362-hcd.c __func__, ep, ep->num_req); ep 1317 drivers/usb/host/isp1362-hcd.c list_add_tail(&ep->schedule, &isp1362_hcd->async); ep 1322 drivers/usb/host/isp1362-hcd.c urb->interval = ep->interval; ep 1325 drivers/usb/host/isp1362-hcd.c if (ep->branch < PERIODIC_SIZE) ep 1328 drivers/usb/host/isp1362-hcd.c retval = balance(isp1362_hcd, ep->interval, ep->load); ep 1333 drivers/usb/host/isp1362-hcd.c ep->branch = retval; ep 1337 drivers/usb/host/isp1362-hcd.c __func__, isp1362_hcd->fmindex, ep->branch, ep 1339 drivers/usb/host/isp1362-hcd.c ~(PERIODIC_SIZE - 1)) + ep->branch, ep 1340 drivers/usb/host/isp1362-hcd.c (isp1362_hcd->fmindex & (PERIODIC_SIZE - 1)) + ep->branch); ep 1342 drivers/usb/host/isp1362-hcd.c if (list_empty(&ep->schedule)) { ep 1346 drivers/usb/host/isp1362-hcd.c frame += max_t(u16, 8, ep->interval); ep 1347 drivers/usb/host/isp1362-hcd.c frame &= ~(ep->interval - 1); ep 1348 drivers/usb/host/isp1362-hcd.c frame |= ep->branch; ep 1350 drivers/usb/host/isp1362-hcd.c frame += ep->interval; ep 1353 drivers/usb/host/isp1362-hcd.c DBG(1, "%s: Adding ep %p to isoc schedule\n", __func__, ep); ep 1354 drivers/usb/host/isp1362-hcd.c list_add_tail(&ep->schedule, &isp1362_hcd->isoc); ep 1356 drivers/usb/host/isp1362-hcd.c DBG(1, "%s: Adding ep %p to periodic schedule\n", __func__, ep); ep 1357 drivers/usb/host/isp1362-hcd.c list_add_tail(&ep->schedule, &isp1362_hcd->periodic); ep 1360 drivers/usb/host/isp1362-hcd.c DBG(1, "%s: ep %p already scheduled\n", __func__, ep); ep 1363 drivers/usb/host/isp1362-hcd.c ep->load / ep->interval, isp1362_hcd->load[ep->branch], ep 1364 drivers/usb/host/isp1362-hcd.c isp1362_hcd->load[ep->branch] + ep->load); ep 1365 drivers/usb/host/isp1362-hcd.c isp1362_hcd->load[ep->branch] += ep->load; ep 1402 drivers/usb/host/isp1362-hcd.c struct isp1362_ep *ep; ep 1419 drivers/usb/host/isp1362-hcd.c ep = hep->hcpriv; ep 1420 drivers/usb/host/isp1362-hcd.c if (ep) { ep 1422 drivers/usb/host/isp1362-hcd.c if (ep->hep->urb_list.next == &urb->urb_list) { ep 1423 drivers/usb/host/isp1362-hcd.c if (!list_empty(&ep->active)) { ep 1425 drivers/usb/host/isp1362-hcd.c urb, ep, ep->num_req, ep->ptd_index, ep->ptd_offset); ep 1427 drivers/usb/host/isp1362-hcd.c remove_ptd(isp1362_hcd, ep); ep 1432 drivers/usb/host/isp1362-hcd.c DBG(1, "%s: Finishing ep %p req %d\n", __func__, ep, ep 1433 drivers/usb/host/isp1362-hcd.c ep->num_req); ep 1434 drivers/usb/host/isp1362-hcd.c finish_request(isp1362_hcd, ep, urb, status); ep 1451 drivers/usb/host/isp1362-hcd.c struct isp1362_ep *ep = hep->hcpriv; ep 1455 drivers/usb/host/isp1362-hcd.c DBG(1, "%s: ep %p\n", __func__, ep); ep 1456 drivers/usb/host/isp1362-hcd.c if (!ep) ep 1460 drivers/usb/host/isp1362-hcd.c if (!list_empty(&ep->active) && list_empty(&ep->remove_list)) { ep 1462 drivers/usb/host/isp1362-hcd.c ep, ep->num_req, ep->ptd_index, ep->ptd_offset); ep 1463 drivers/usb/host/isp1362-hcd.c remove_ptd(isp1362_hcd, ep); ep 1469 drivers/usb/host/isp1362-hcd.c while (!list_empty(&ep->active)) ep 1472 drivers/usb/host/isp1362-hcd.c DBG(1, "%s: Freeing EP %p\n", __func__, ep); ep 1474 drivers/usb/host/isp1362-hcd.c usb_put_dev(ep->udev); ep 1475 drivers/usb/host/isp1362-hcd.c kfree(ep); ep 2062 drivers/usb/host/isp1362-hcd.c struct isp1362_ep *ep; ep 2095 drivers/usb/host/isp1362-hcd.c list_for_each_entry(ep, &isp1362_hcd->async, schedule) { ep 2098 drivers/usb/host/isp1362-hcd.c seq_printf(s, "%p, ep%d%s, maxpacket %d:\n", ep, ep->epnum, ep 2101 drivers/usb/host/isp1362-hcd.c switch (ep->nextpid) { ep 2118 drivers/usb/host/isp1362-hcd.c s;}), ep->maxpacket) ; ep 2119 drivers/usb/host/isp1362-hcd.c list_for_each_entry(urb, &ep->hep->urb_list, urb_list) { ep 2131 drivers/usb/host/isp1362-hcd.c list_for_each_entry(ep, &isp1362_hcd->periodic, schedule) { ep 2132 drivers/usb/host/isp1362-hcd.c seq_printf(s, "branch:%2d load:%3d PTD[%d] $%04x:\n", ep->branch, ep 2133 drivers/usb/host/isp1362-hcd.c isp1362_hcd->load[ep->branch], ep->ptd_index, ep->ptd_offset); ep 2136 drivers/usb/host/isp1362-hcd.c ep->interval, ep, ep 2137 drivers/usb/host/isp1362-hcd.c (ep->udev->speed == USB_SPEED_FULL) ? "" : "ls ", ep 2138 drivers/usb/host/isp1362-hcd.c ep->udev->devnum, ep->epnum, ep 2139 drivers/usb/host/isp1362-hcd.c (ep->epnum == 0) ? "" : ep 2140 drivers/usb/host/isp1362-hcd.c ((ep->nextpid == USB_PID_IN) ? ep 2141 drivers/usb/host/isp1362-hcd.c "in" : "out"), ep->maxpacket); ep 2147 drivers/usb/host/isp1362-hcd.c list_for_each_entry(ep, &isp1362_hcd->isoc, schedule) { ep 2149 drivers/usb/host/isp1362-hcd.c ep->interval, ep, ep 2150 drivers/usb/host/isp1362-hcd.c (ep->udev->speed == USB_SPEED_FULL) ? "" : "ls ", ep 2151 drivers/usb/host/isp1362-hcd.c ep->udev->devnum, ep->epnum, ep 2152 drivers/usb/host/isp1362-hcd.c (ep->epnum == 0) ? "" : ep 2153 drivers/usb/host/isp1362-hcd.c ((ep->nextpid == USB_PID_IN) ? ep 2154 drivers/usb/host/isp1362-hcd.c "in" : "out"), ep->maxpacket); ep 576 drivers/usb/host/isp1362.h #define get_urb(ep) ({ \ ep 577 drivers/usb/host/isp1362.h BUG_ON(list_empty(&ep->hep->urb_list)); \ ep 578 drivers/usb/host/isp1362.h container_of(ep->hep->urb_list.next, struct urb, urb_list); \ ep 953 drivers/usb/host/isp1362.h struct isp1362_ep *ep; ep 957 drivers/usb/host/isp1362.h list_for_each_entry(ep, &epq->active, active) { ep 958 drivers/usb/host/isp1362.h dump_ptd(&ep->ptd); ep 959 drivers/usb/host/isp1362.h dump_data(ep->data, ep->length); ep 170 drivers/usb/host/max3421-hcd.c struct usb_host_endpoint *ep; ep 324 drivers/usb/host/max3421-hcd.c #define MAX3421_HXFR_BULK_IN(ep) (0x00 | (ep)) /* bulk or interrupt */ ep 326 drivers/usb/host/max3421-hcd.c #define MAX3421_HXFR_BULK_OUT(ep) (0x20 | (ep)) /* bulk or interrupt */ ep 327 drivers/usb/host/max3421-hcd.c #define MAX3421_HXFR_ISO_IN(ep) (0x40 | (ep)) ep 328 drivers/usb/host/max3421-hcd.c #define MAX3421_HXFR_ISO_OUT(ep) (0x60 | (ep)) ep 614 drivers/usb/host/max3421-hcd.c max3421_ep = urb->ep->hcpriv; ep 671 drivers/usb/host/max3421-hcd.c struct usb_host_endpoint *ep; ep 684 drivers/usb/host/max3421-hcd.c ep = max3421_ep->ep; ep 686 drivers/usb/host/max3421-hcd.c switch (usb_endpoint_type(&ep->desc)) { ep 702 drivers/usb/host/max3421-hcd.c if (list_empty(&ep->urb_list)) ep 704 drivers/usb/host/max3421-hcd.c urb = list_first_entry(&ep->urb_list, struct urb, ep 716 drivers/usb/host/max3421-hcd.c switch (usb_endpoint_type(&ep->desc)) { ep 766 drivers/usb/host/max3421-hcd.c epnum = usb_endpoint_num(&urb->ep->desc); ep 772 drivers/usb/host/max3421-hcd.c if (usb_endpoint_xfer_control(&ep->desc)) { ep 805 drivers/usb/host/max3421-hcd.c struct usb_host_endpoint *ep; ep 812 drivers/usb/host/max3421-hcd.c ep = max3421_ep->ep; ep 813 drivers/usb/host/max3421-hcd.c list_for_each_entry_safe(urb, next, &ep->urb_list, urb_list) { ep 840 drivers/usb/host/max3421-hcd.c max3421_ep = urb->ep->hcpriv; ep 886 drivers/usb/host/max3421-hcd.c struct max3421_ep *max3421_ep = urb->ep->hcpriv; ep 1061 drivers/usb/host/max3421-hcd.c max3421_ep = urb->ep->hcpriv; ep 1187 drivers/usb/host/max3421-hcd.c struct usb_host_endpoint *ep; ep 1195 drivers/usb/host/max3421-hcd.c ep = max3421_ep->ep; ep 1200 drivers/usb/host/max3421-hcd.c list_for_each_entry(urb, &ep->urb_list, urb_list) { ep 1211 drivers/usb/host/max3421-hcd.c epnum = usb_endpoint_num(&ep->desc); ep 1546 drivers/usb/host/max3421-hcd.c max3421_ep = urb->ep->hcpriv; ep 1554 drivers/usb/host/max3421-hcd.c max3421_ep->ep = urb->ep; ep 1556 drivers/usb/host/max3421-hcd.c urb->ep->hcpriv = max3421_ep; ep 1596 drivers/usb/host/max3421-hcd.c max3421_endpoint_disable(struct usb_hcd *hcd, struct usb_host_endpoint *ep) ep 1603 drivers/usb/host/max3421-hcd.c if (ep->hcpriv) { ep 1604 drivers/usb/host/max3421-hcd.c struct max3421_ep *max3421_ep = ep->hcpriv; ep 1610 drivers/usb/host/max3421-hcd.c ep->hcpriv = NULL; ep 161 drivers/usb/host/ohci-hcd.c ed = ed_get(ohci, urb->ep, urb->dev, pipe, urb->interval); ep 350 drivers/usb/host/ohci-hcd.c ohci_endpoint_disable (struct usb_hcd *hcd, struct usb_host_endpoint *ep) ep 354 drivers/usb/host/ohci-hcd.c struct ed *ed = ep->hcpriv; ep 394 drivers/usb/host/ohci-hcd.c ed, ep->desc.bEndpointAddress, ed->state, ep 399 drivers/usb/host/ohci-hcd.c ep->hcpriv = NULL; ep 46 drivers/usb/host/ohci-q.c struct usb_host_endpoint *ep = urb->ep; ep 91 drivers/usb/host/ohci-q.c if (!list_empty(&ep->urb_list)) { ep 92 drivers/usb/host/ohci-q.c urb = list_first_entry(&ep->urb_list, struct urb, urb_list); ep 402 drivers/usb/host/ohci-q.c struct usb_host_endpoint *ep, ep 412 drivers/usb/host/ohci-q.c ed = ep->hcpriv; ep 437 drivers/usb/host/ohci-q.c is_out = !(ep->desc.bEndpointAddress & USB_DIR_IN); ep 445 drivers/usb/host/ohci-q.c info |= (ep->desc.bEndpointAddress & ~USB_DIR_IN) << 7; ep 446 drivers/usb/host/ohci-q.c info |= usb_endpoint_maxp(&ep->desc) << 16; ep 462 drivers/usb/host/ohci-q.c usb_endpoint_maxp(&ep->desc)) ep 468 drivers/usb/host/ohci-q.c ep->hcpriv = ed; ep 220 drivers/usb/host/oxu210hp-hcd.c #define DBGP_EPADDR(dev, ep) (((dev)<<8)|(ep)) ep 2047 drivers/usb/host/oxu210hp-hcd.c epnum = urb->ep->desc.bEndpointAddress; ep 2054 drivers/usb/host/oxu210hp-hcd.c qtd, urb->ep->hcpriv); ep 2063 drivers/usb/host/oxu210hp-hcd.c qh = qh_append_tds(oxu, urb, qtd_list, epnum, &urb->ep->hcpriv); ep 2622 drivers/usb/host/oxu210hp-hcd.c epnum = urb->ep->desc.bEndpointAddress; ep 2633 drivers/usb/host/oxu210hp-hcd.c qh = qh_append_tds(oxu, urb, &empty, epnum, &urb->ep->hcpriv); ep 2645 drivers/usb/host/oxu210hp-hcd.c qh = qh_append_tds(oxu, urb, qtd_list, epnum, &urb->ep->hcpriv); ep 3414 drivers/usb/host/oxu210hp-hcd.c struct usb_host_endpoint *ep) ep 3425 drivers/usb/host/oxu210hp-hcd.c qh = ep->hcpriv; ep 3467 drivers/usb/host/oxu210hp-hcd.c qh, ep->desc.bEndpointAddress, qh->qh_state, ep 3471 drivers/usb/host/oxu210hp-hcd.c ep->hcpriv = NULL; ep 655 drivers/usb/host/r8a66597-hcd.c struct usb_endpoint_descriptor *ep) ep 660 drivers/usb/host/r8a66597-hcd.c switch (usb_endpoint_type(ep)) { ep 662 drivers/usb/host/r8a66597-hcd.c if (usb_endpoint_dir_in(ep)) ep 670 drivers/usb/host/r8a66597-hcd.c if (usb_endpoint_dir_in(ep)) { ep 678 drivers/usb/host/r8a66597-hcd.c if (usb_endpoint_dir_in(ep)) ep 937 drivers/usb/host/r8a66597-hcd.c struct usb_endpoint_descriptor *ep) ep 941 drivers/usb/host/r8a66597-hcd.c info.pipenum = get_empty_pipenum(r8a66597, ep); ep 943 drivers/usb/host/r8a66597-hcd.c info.epnum = usb_endpoint_num(ep); ep 944 drivers/usb/host/r8a66597-hcd.c info.maxpacket = usb_endpoint_maxp(ep); ep 945 drivers/usb/host/r8a66597-hcd.c info.type = get_r8a66597_type(usb_endpoint_type(ep)); ep 952 drivers/usb/host/r8a66597-hcd.c info.interval = get_interval(urb, ep->bInterval); ep 953 drivers/usb/host/r8a66597-hcd.c info.timer_interval = get_timer_interval(urb, ep->bInterval); ep 955 drivers/usb/host/r8a66597-hcd.c if (usb_endpoint_dir_in(ep)) ep 1889 drivers/usb/host/r8a66597-hcd.c struct usb_host_endpoint *hep = urb->ep; ep 136 drivers/usb/host/sl811-hcd.c struct sl811h_ep *ep, ep 160 drivers/usb/host/sl811-hcd.c ep->length = 0; ep 161 drivers/usb/host/sl811-hcd.c PACKET("SETUP qh%p\n", ep); ep 167 drivers/usb/host/sl811-hcd.c struct sl811h_ep *ep, ep 190 drivers/usb/host/sl811-hcd.c ep->length = 0; ep 191 drivers/usb/host/sl811-hcd.c PACKET("STATUS%s/%s qh%p\n", ep->nak_count ? "/retry" : "", ep 192 drivers/usb/host/sl811-hcd.c do_out ? "out" : "in", ep); ep 201 drivers/usb/host/sl811-hcd.c struct sl811h_ep *ep, ep 212 drivers/usb/host/sl811-hcd.c len = ep->maxpacket; ep 215 drivers/usb/host/sl811-hcd.c && usb_gettoggle(urb->dev, ep->epnum, 0)) ep 222 drivers/usb/host/sl811-hcd.c writeb(SL_IN | ep->epnum, data_reg); ep 226 drivers/usb/host/sl811-hcd.c ep->length = min_t(u32, len, ep 228 drivers/usb/host/sl811-hcd.c PACKET("IN%s/%d qh%p len%d\n", ep->nak_count ? "/retry" : "", ep 229 drivers/usb/host/sl811-hcd.c !!usb_gettoggle(urb->dev, ep->epnum, 0), ep, len); ep 237 drivers/usb/host/sl811-hcd.c struct sl811h_ep *ep, ep 251 drivers/usb/host/sl811-hcd.c len = min_t(u32, ep->maxpacket, ep 255 drivers/usb/host/sl811-hcd.c && usb_gettoggle(urb->dev, ep->epnum, 1)) ep 265 drivers/usb/host/sl811-hcd.c writeb(SL_OUT | ep->epnum, data_reg); ep 270 drivers/usb/host/sl811-hcd.c ep->length = len; ep 271 drivers/usb/host/sl811-hcd.c PACKET("OUT%s/%d qh%p len%d\n", ep->nak_count ? "/retry" : "", ep 272 drivers/usb/host/sl811-hcd.c !!usb_gettoggle(urb->dev, ep->epnum, 1), ep, len); ep 304 drivers/usb/host/sl811-hcd.c struct sl811h_ep *ep; ep 311 drivers/usb/host/sl811-hcd.c ep = sl811->next_periodic; ep 312 drivers/usb/host/sl811-hcd.c sl811->next_periodic = ep->next; ep 315 drivers/usb/host/sl811-hcd.c ep = sl811->next_async; ep 317 drivers/usb/host/sl811-hcd.c ep = container_of(sl811->async.next, ep 327 drivers/usb/host/sl811-hcd.c if ((bank && sl811->active_b == ep) || sl811->active_a == ep) ep 331 drivers/usb/host/sl811-hcd.c if (ep->schedule.next == &sl811->async) ep 334 drivers/usb/host/sl811-hcd.c sl811->next_async = container_of(ep->schedule.next, ep 338 drivers/usb/host/sl811-hcd.c if (unlikely(list_empty(&ep->hep->urb_list))) { ep 340 drivers/usb/host/sl811-hcd.c "empty %p queue?\n", ep); ep 344 drivers/usb/host/sl811-hcd.c urb = container_of(ep->hep->urb_list.next, struct urb, urb_list); ep 345 drivers/usb/host/sl811-hcd.c control = ep->defctrl; ep 357 drivers/usb/host/sl811-hcd.c fclock -= ep->maxpacket << 8; ep 361 drivers/usb/host/sl811-hcd.c if (ep->period) ep 369 drivers/usb/host/sl811-hcd.c if (ep->period) ep 374 drivers/usb/host/sl811-hcd.c } else if (ep->nak_count) ep 379 drivers/usb/host/sl811-hcd.c switch (ep->nextpid) { ep 381 drivers/usb/host/sl811-hcd.c in_packet(sl811, ep, urb, bank, control); ep 384 drivers/usb/host/sl811-hcd.c out_packet(sl811, ep, urb, bank, control); ep 387 drivers/usb/host/sl811-hcd.c setup_packet(sl811, ep, urb, bank, control); ep 390 drivers/usb/host/sl811-hcd.c status_packet(sl811, ep, urb, bank, control); ep 394 drivers/usb/host/sl811-hcd.c "bad ep%p pid %02x\n", ep, ep->nextpid); ep 395 drivers/usb/host/sl811-hcd.c ep = NULL; ep 397 drivers/usb/host/sl811-hcd.c return ep; ep 422 drivers/usb/host/sl811-hcd.c struct sl811h_ep *ep, ep 430 drivers/usb/host/sl811-hcd.c ep->nextpid = USB_PID_SETUP; ep 438 drivers/usb/host/sl811-hcd.c if (!list_empty(&ep->hep->urb_list)) ep 442 drivers/usb/host/sl811-hcd.c if (!list_empty(&ep->schedule)) { ep 443 drivers/usb/host/sl811-hcd.c list_del_init(&ep->schedule); ep 444 drivers/usb/host/sl811-hcd.c if (ep == sl811->next_async) ep 451 drivers/usb/host/sl811-hcd.c "deschedule qh%d/%p branch %d\n", ep->period, ep, ep->branch); ep 452 drivers/usb/host/sl811-hcd.c for (i = ep->branch; i < PERIODIC_SIZE; i += ep->period) { ep 456 drivers/usb/host/sl811-hcd.c while (*prev && ((temp = *prev) != ep)) ep 459 drivers/usb/host/sl811-hcd.c *prev = ep->next; ep 460 drivers/usb/host/sl811-hcd.c sl811->load[i] -= ep->load; ep 462 drivers/usb/host/sl811-hcd.c ep->branch = PERIODIC_SIZE; ep 465 drivers/usb/host/sl811-hcd.c -= ep->load / ep->period; ep 466 drivers/usb/host/sl811-hcd.c if (ep == sl811->next_periodic) ep 467 drivers/usb/host/sl811-hcd.c sl811->next_periodic = ep->next; ep 475 drivers/usb/host/sl811-hcd.c done(struct sl811 *sl811, struct sl811h_ep *ep, u8 bank) ep 481 drivers/usb/host/sl811-hcd.c if (unlikely(!ep)) ep 486 drivers/usb/host/sl811-hcd.c urb = container_of(ep->hep->urb_list.next, struct urb, urb_list); ep 491 drivers/usb/host/sl811-hcd.c if (!ep->period) ep 492 drivers/usb/host/sl811-hcd.c ep->nak_count++; ep 493 drivers/usb/host/sl811-hcd.c ep->error_count = 0; ep 503 drivers/usb/host/sl811-hcd.c ep->nak_count = ep->error_count = 0; ep 504 drivers/usb/host/sl811-hcd.c switch (ep->nextpid) { ep 507 drivers/usb/host/sl811-hcd.c urb->actual_length += ep->length; ep 508 drivers/usb/host/sl811-hcd.c usb_dotoggle(udev, ep->epnum, 1); ep 512 drivers/usb/host/sl811-hcd.c ep->nextpid = USB_PID_ACK; ep 517 drivers/usb/host/sl811-hcd.c else if (ep->length < ep->maxpacket ep 527 drivers/usb/host/sl811-hcd.c len = ep->maxpacket - sl811_read(sl811, ep 529 drivers/usb/host/sl811-hcd.c if (len > ep->length) { ep 530 drivers/usb/host/sl811-hcd.c len = ep->length; ep 536 drivers/usb/host/sl811-hcd.c usb_dotoggle(udev, ep->epnum, 0); ep 538 drivers/usb/host/sl811-hcd.c (len < ep->maxpacket || ep 542 drivers/usb/host/sl811-hcd.c ep->nextpid = USB_PID_ACK; ep 550 drivers/usb/host/sl811-hcd.c ep->nextpid = USB_PID_ACK; ep 553 drivers/usb/host/sl811-hcd.c ep->nextpid = USB_PID_OUT; ep 556 drivers/usb/host/sl811-hcd.c ep->nextpid = USB_PID_IN; ep 567 drivers/usb/host/sl811-hcd.c PACKET("...STALL_%02x qh%p\n", bank, ep); ep 568 drivers/usb/host/sl811-hcd.c ep->nak_count = ep->error_count = 0; ep 572 drivers/usb/host/sl811-hcd.c } else if (++ep->error_count >= 3) { ep 579 drivers/usb/host/sl811-hcd.c ep->error_count = 0; ep 581 drivers/usb/host/sl811-hcd.c bank, status, ep, urbstat); ep 585 drivers/usb/host/sl811-hcd.c finish_request(sl811, ep, urb, urbstat); ep 801 drivers/usb/host/sl811-hcd.c struct sl811h_ep *ep = NULL; ep 805 drivers/usb/host/sl811-hcd.c struct usb_host_endpoint *hep = urb->ep; ep 814 drivers/usb/host/sl811-hcd.c ep = kzalloc(sizeof *ep, mem_flags); ep 815 drivers/usb/host/sl811-hcd.c if (ep == NULL) ep 825 drivers/usb/host/sl811-hcd.c kfree(ep); ep 830 drivers/usb/host/sl811-hcd.c kfree(ep); ep 835 drivers/usb/host/sl811-hcd.c kfree(ep); ep 836 drivers/usb/host/sl811-hcd.c ep = hep->hcpriv; ep 837 drivers/usb/host/sl811-hcd.c } else if (!ep) { ep 842 drivers/usb/host/sl811-hcd.c INIT_LIST_HEAD(&ep->schedule); ep 843 drivers/usb/host/sl811-hcd.c ep->udev = udev; ep 844 drivers/usb/host/sl811-hcd.c ep->epnum = epnum; ep 845 drivers/usb/host/sl811-hcd.c ep->maxpacket = usb_maxpacket(udev, urb->pipe, is_out); ep 846 drivers/usb/host/sl811-hcd.c ep->defctrl = SL11H_HCTLMASK_ARM | SL11H_HCTLMASK_ENABLE; ep 850 drivers/usb/host/sl811-hcd.c ep->nextpid = USB_PID_SETUP; ep 852 drivers/usb/host/sl811-hcd.c ep->nextpid = USB_PID_OUT; ep 854 drivers/usb/host/sl811-hcd.c ep->nextpid = USB_PID_IN; ep 856 drivers/usb/host/sl811-hcd.c if (ep->maxpacket > H_MAXPACKET) { ep 860 drivers/usb/host/sl811-hcd.c epnum, ep->maxpacket); ep 862 drivers/usb/host/sl811-hcd.c kfree(ep); ep 869 drivers/usb/host/sl811-hcd.c ep->defctrl |= SL11H_HCTLMASK_PREAMBLE; ep 876 drivers/usb/host/sl811-hcd.c ep->period = urb->interval; ep 877 drivers/usb/host/sl811-hcd.c ep->branch = PERIODIC_SIZE; ep 879 drivers/usb/host/sl811-hcd.c ep->defctrl |= SL11H_HCTLMASK_ISOCH; ep 880 drivers/usb/host/sl811-hcd.c ep->load = usb_calc_bus_time(udev->speed, !is_out, ep 887 drivers/usb/host/sl811-hcd.c ep->hep = hep; ep 888 drivers/usb/host/sl811-hcd.c hep->hcpriv = ep; ep 895 drivers/usb/host/sl811-hcd.c if (list_empty(&ep->schedule)) ep 896 drivers/usb/host/sl811-hcd.c list_add_tail(&ep->schedule, &sl811->async); ep 900 drivers/usb/host/sl811-hcd.c urb->interval = ep->period; ep 901 drivers/usb/host/sl811-hcd.c if (ep->branch < PERIODIC_SIZE) { ep 908 drivers/usb/host/sl811-hcd.c + ep->branch; ep 912 drivers/usb/host/sl811-hcd.c retval = balance(sl811, ep->period, ep->load); ep 915 drivers/usb/host/sl811-hcd.c ep->branch = retval; ep 918 drivers/usb/host/sl811-hcd.c + ep->branch; ep 925 drivers/usb/host/sl811-hcd.c ep->period, ep, ep->branch); ep 926 drivers/usb/host/sl811-hcd.c for (i = ep->branch; i < PERIODIC_SIZE; i += ep->period) { ep 930 drivers/usb/host/sl811-hcd.c while (here && ep != here) { ep 931 drivers/usb/host/sl811-hcd.c if (ep->period > here->period) ep 936 drivers/usb/host/sl811-hcd.c if (ep != here) { ep 937 drivers/usb/host/sl811-hcd.c ep->next = here; ep 938 drivers/usb/host/sl811-hcd.c *prev = ep; ep 940 drivers/usb/host/sl811-hcd.c sl811->load[i] += ep->load; ep 943 drivers/usb/host/sl811-hcd.c hcd->self.bandwidth_allocated += ep->load / ep->period; ep 963 drivers/usb/host/sl811-hcd.c struct sl811h_ep *ep; ep 972 drivers/usb/host/sl811-hcd.c ep = hep->hcpriv; ep 973 drivers/usb/host/sl811-hcd.c if (ep) { ep 977 drivers/usb/host/sl811-hcd.c if (ep->hep->urb_list.next != &urb->urb_list) { ep 981 drivers/usb/host/sl811-hcd.c } else if (sl811->active_a == ep) { ep 996 drivers/usb/host/sl811-hcd.c } else if (sl811->active_b == ep) { ep 1016 drivers/usb/host/sl811-hcd.c finish_request(sl811, ep, urb, 0); ep 1020 drivers/usb/host/sl811-hcd.c (sl811->active_a == ep) ? "A" : "B"); ep 1031 drivers/usb/host/sl811-hcd.c struct sl811h_ep *ep = hep->hcpriv; ep 1033 drivers/usb/host/sl811-hcd.c if (!ep) ep 1040 drivers/usb/host/sl811-hcd.c dev_warn(hcd->self.controller, "ep %p not empty?\n", ep); ep 1042 drivers/usb/host/sl811-hcd.c kfree(ep); ep 1387 drivers/usb/host/sl811-hcd.c struct sl811h_ep *ep; ep 1435 drivers/usb/host/sl811-hcd.c list_for_each_entry (ep, &sl811->async, schedule) { ep 1440 drivers/usb/host/sl811-hcd.c (ep == sl811->active_a) ? "(A) " : "", ep 1441 drivers/usb/host/sl811-hcd.c (ep == sl811->active_b) ? "(B) " : "", ep 1442 drivers/usb/host/sl811-hcd.c ep, ep->epnum, ep 1443 drivers/usb/host/sl811-hcd.c ({ char *s; switch (ep->nextpid) { ep 1450 drivers/usb/host/sl811-hcd.c ep->maxpacket, ep 1451 drivers/usb/host/sl811-hcd.c ep->nak_count, ep->error_count); ep 1452 drivers/usb/host/sl811-hcd.c list_for_each_entry (urb, &ep->hep->urb_list, urb_list) { ep 1464 drivers/usb/host/sl811-hcd.c ep = sl811->periodic[i]; ep 1465 drivers/usb/host/sl811-hcd.c if (!ep) ep 1474 drivers/usb/host/sl811-hcd.c (ep == sl811->active_a) ? "(A) " : "", ep 1475 drivers/usb/host/sl811-hcd.c (ep == sl811->active_b) ? "(B) " : "", ep 1476 drivers/usb/host/sl811-hcd.c ep->period, ep, ep 1477 drivers/usb/host/sl811-hcd.c (ep->udev->speed == USB_SPEED_FULL) ep 1479 drivers/usb/host/sl811-hcd.c ep->udev->devnum, ep->epnum, ep 1480 drivers/usb/host/sl811-hcd.c (ep->epnum == 0) ? "" ep 1481 drivers/usb/host/sl811-hcd.c : ((ep->nextpid == USB_PID_IN) ep 1484 drivers/usb/host/sl811-hcd.c ep->maxpacket, ep->error_count); ep 1485 drivers/usb/host/sl811-hcd.c ep = ep->next; ep 1486 drivers/usb/host/sl811-hcd.c } while (ep); ep 1874 drivers/usb/host/u132-hcd.c urb->ep->hcpriv = u132->endp[endp_number - 1] = endp; ep 1891 drivers/usb/host/u132-hcd.c endp->hep = urb->ep; ep 1973 drivers/usb/host/u132-hcd.c urb->ep->hcpriv = u132->endp[endp_number - 1] = endp; ep 1982 drivers/usb/host/u132-hcd.c endp->hep = urb->ep; ep 2069 drivers/usb/host/u132-hcd.c urb->ep->hcpriv = u132->endp[endp_number - 1] = endp; ep 2086 drivers/usb/host/u132-hcd.c endp->hep = urb->ep; ep 2259 drivers/usb/host/u132-hcd.c struct u132_endp *endp = urb->ep->hcpriv; ep 2301 drivers/usb/host/u132-hcd.c struct u132_endp *endp = urb->ep->hcpriv; ep 2334 drivers/usb/host/u132-hcd.c struct u132_endp *endp = urb->ep->hcpriv; ep 1428 drivers/usb/host/uhci-q.c if (urb->ep->hcpriv) ep 1429 drivers/usb/host/uhci-q.c qh = urb->ep->hcpriv; ep 1431 drivers/usb/host/uhci-q.c qh = uhci_alloc_qh(uhci, urb->dev, urb->ep); ep 464 drivers/usb/host/xhci-hub.c struct xhci_virt_ep *ep; ep 467 drivers/usb/host/xhci-hub.c ep = &xhci->devs[slot_id]->eps[i]; ep 469 drivers/usb/host/xhci-hub.c if (ep->ep_state & EP_HAS_STREAMS) { ep 470 drivers/usb/host/xhci-hub.c for (s = 1; s < ep->stream_info->num_streams; s++) ep 472 drivers/usb/host/xhci-hub.c } else if (ep->ring && ep->ring->dequeue) { ep 577 drivers/usb/host/xhci-mem.c struct xhci_virt_ep *ep, ep 580 drivers/usb/host/xhci-mem.c if (ep->ep_state & EP_HAS_STREAMS) ep 581 drivers/usb/host/xhci-mem.c return radix_tree_lookup(&ep->stream_info->trb_address_map, ep 583 drivers/usb/host/xhci-mem.c return ep->ring; ep 591 drivers/usb/host/xhci-mem.c struct xhci_virt_ep *ep = &dev->eps[ep_index]; ep 594 drivers/usb/host/xhci-mem.c return ep->ring; ep 595 drivers/usb/host/xhci-mem.c if (!ep->stream_info) ep 598 drivers/usb/host/xhci-mem.c if (stream_id >= ep->stream_info->num_streams) ep 600 drivers/usb/host/xhci-mem.c return ep->stream_info->stream_rings[stream_id]; ep 750 drivers/usb/host/xhci-mem.c struct xhci_virt_ep *ep) ep 754 drivers/usb/host/xhci-mem.c addr = xhci_trb_virt_to_dma(ep->ring->deq_seg, ep->ring->dequeue); ep 755 drivers/usb/host/xhci-mem.c ep_ctx->deq = cpu_to_le64(addr | ep->ring->cycle_state); ep 795 drivers/usb/host/xhci-mem.c struct xhci_virt_ep *ep) ep 797 drivers/usb/host/xhci-mem.c timer_setup(&ep->stop_cmd_timer, xhci_stop_endpoint_command_watchdog, ep 799 drivers/usb/host/xhci-mem.c ep->xhci = xhci; ep 1221 drivers/usb/host/xhci-mem.c struct usb_host_endpoint *ep) ep 1225 drivers/usb/host/xhci-mem.c interval = clamp_val(ep->desc.bInterval, 1, 16) - 1; ep 1226 drivers/usb/host/xhci-mem.c if (interval != ep->desc.bInterval - 1) ep 1229 drivers/usb/host/xhci-mem.c ep->desc.bEndpointAddress, ep 1250 drivers/usb/host/xhci-mem.c struct usb_host_endpoint *ep, unsigned int desc_interval, ep 1260 drivers/usb/host/xhci-mem.c ep->desc.bEndpointAddress, ep 1268 drivers/usb/host/xhci-mem.c struct usb_host_endpoint *ep) ep 1270 drivers/usb/host/xhci-mem.c if (ep->desc.bInterval == 0) ep 1272 drivers/usb/host/xhci-mem.c return xhci_microframes_to_exponent(udev, ep, ep 1273 drivers/usb/host/xhci-mem.c ep->desc.bInterval, 0, 15); ep 1278 drivers/usb/host/xhci-mem.c struct usb_host_endpoint *ep) ep 1280 drivers/usb/host/xhci-mem.c return xhci_microframes_to_exponent(udev, ep, ep 1281 drivers/usb/host/xhci-mem.c ep->desc.bInterval * 8, 3, 10); ep 1293 drivers/usb/host/xhci-mem.c struct usb_host_endpoint *ep) ep 1300 drivers/usb/host/xhci-mem.c if (usb_endpoint_xfer_control(&ep->desc) || ep 1301 drivers/usb/host/xhci-mem.c usb_endpoint_xfer_bulk(&ep->desc)) { ep 1302 drivers/usb/host/xhci-mem.c interval = xhci_parse_microframe_interval(udev, ep); ep 1309 drivers/usb/host/xhci-mem.c if (usb_endpoint_xfer_int(&ep->desc) || ep 1310 drivers/usb/host/xhci-mem.c usb_endpoint_xfer_isoc(&ep->desc)) { ep 1311 drivers/usb/host/xhci-mem.c interval = xhci_parse_exponent_interval(udev, ep); ep 1316 drivers/usb/host/xhci-mem.c if (usb_endpoint_xfer_isoc(&ep->desc)) { ep 1317 drivers/usb/host/xhci-mem.c interval = xhci_parse_exponent_interval(udev, ep); ep 1328 drivers/usb/host/xhci-mem.c if (usb_endpoint_xfer_int(&ep->desc) || ep 1329 drivers/usb/host/xhci-mem.c usb_endpoint_xfer_isoc(&ep->desc)) { ep 1331 drivers/usb/host/xhci-mem.c interval = xhci_parse_frame_interval(udev, ep); ep 1347 drivers/usb/host/xhci-mem.c struct usb_host_endpoint *ep) ep 1350 drivers/usb/host/xhci-mem.c !usb_endpoint_xfer_isoc(&ep->desc)) ep 1352 drivers/usb/host/xhci-mem.c return ep->ss_ep_comp.bmAttributes; ep 1356 drivers/usb/host/xhci-mem.c struct usb_host_endpoint *ep) ep 1360 drivers/usb/host/xhci-mem.c return ep->ss_ep_comp.bMaxBurst; ep 1363 drivers/usb/host/xhci-mem.c (usb_endpoint_xfer_isoc(&ep->desc) || ep 1364 drivers/usb/host/xhci-mem.c usb_endpoint_xfer_int(&ep->desc))) ep 1365 drivers/usb/host/xhci-mem.c return usb_endpoint_maxp_mult(&ep->desc) - 1; ep 1370 drivers/usb/host/xhci-mem.c static u32 xhci_get_endpoint_type(struct usb_host_endpoint *ep) ep 1374 drivers/usb/host/xhci-mem.c in = usb_endpoint_dir_in(&ep->desc); ep 1376 drivers/usb/host/xhci-mem.c switch (usb_endpoint_type(&ep->desc)) { ep 1394 drivers/usb/host/xhci-mem.c struct usb_host_endpoint *ep) ep 1400 drivers/usb/host/xhci-mem.c if (usb_endpoint_xfer_control(&ep->desc) || ep 1401 drivers/usb/host/xhci-mem.c usb_endpoint_xfer_bulk(&ep->desc)) ep 1406 drivers/usb/host/xhci-mem.c USB_SS_SSP_ISOC_COMP(ep->ss_ep_comp.bmAttributes)) ep 1407 drivers/usb/host/xhci-mem.c return le32_to_cpu(ep->ssp_isoc_ep_comp.dwBytesPerInterval); ep 1410 drivers/usb/host/xhci-mem.c return le16_to_cpu(ep->ss_ep_comp.wBytesPerInterval); ep 1412 drivers/usb/host/xhci-mem.c max_packet = usb_endpoint_maxp(&ep->desc); ep 1413 drivers/usb/host/xhci-mem.c max_burst = usb_endpoint_maxp_mult(&ep->desc); ep 1424 drivers/usb/host/xhci-mem.c struct usb_host_endpoint *ep, ep 1440 drivers/usb/host/xhci-mem.c ep_index = xhci_get_endpoint_index(&ep->desc); ep 1443 drivers/usb/host/xhci-mem.c endpoint_type = xhci_get_endpoint_type(ep); ep 1447 drivers/usb/host/xhci-mem.c ring_type = usb_endpoint_type(&ep->desc); ep 1455 drivers/usb/host/xhci-mem.c max_esit_payload = xhci_get_max_esit_payload(udev, ep); ep 1456 drivers/usb/host/xhci-mem.c interval = xhci_get_endpoint_interval(udev, ep); ep 1459 drivers/usb/host/xhci-mem.c if (usb_endpoint_xfer_int(&ep->desc) || ep 1460 drivers/usb/host/xhci-mem.c usb_endpoint_xfer_isoc(&ep->desc)) { ep 1468 drivers/usb/host/xhci-mem.c mult = xhci_get_endpoint_mult(udev, ep); ep 1469 drivers/usb/host/xhci-mem.c max_packet = usb_endpoint_maxp(&ep->desc); ep 1470 drivers/usb/host/xhci-mem.c max_burst = xhci_get_endpoint_max_burst(udev, ep); ep 1476 drivers/usb/host/xhci-mem.c if (!usb_endpoint_xfer_isoc(&ep->desc)) ep 1479 drivers/usb/host/xhci-mem.c if (usb_endpoint_xfer_bulk(&ep->desc)) { ep 1488 drivers/usb/host/xhci-mem.c if (usb_endpoint_xfer_control(&ep->desc) && xhci->hci_version >= 0x100) ep 1522 drivers/usb/host/xhci-mem.c struct usb_host_endpoint *ep) ep 1527 drivers/usb/host/xhci-mem.c ep_index = xhci_get_endpoint_index(&ep->desc); ep 1867 drivers/usb/host/xhci-mem.c struct list_head *ep = &bwt->interval_bw[j].endpoints; ep 1868 drivers/usb/host/xhci-mem.c while (!list_empty(ep)) ep 1869 drivers/usb/host/xhci-mem.c list_del_init(ep->next); ep 53 drivers/usb/host/xhci-mtk-sch.c struct usb_host_endpoint *ep) ep 61 drivers/usb/host/xhci-mtk-sch.c if (usb_endpoint_dir_out(&ep->desc)) ep 172 drivers/usb/host/xhci-mtk-sch.c struct usb_host_endpoint *ep, struct xhci_ep_ctx *ep_ctx) ep 182 drivers/usb/host/xhci-mtk-sch.c && usb_endpoint_xfer_isoc(&ep->desc)) ep 202 drivers/usb/host/xhci-mtk-sch.c sch_ep->ep = ep; ep 544 drivers/usb/host/xhci-mtk-sch.c static bool need_bw_sch(struct usb_host_endpoint *ep, ep 548 drivers/usb/host/xhci-mtk-sch.c if (usb_endpoint_xfer_control(&ep->desc) ep 549 drivers/usb/host/xhci-mtk-sch.c || usb_endpoint_xfer_bulk(&ep->desc)) ep 593 drivers/usb/host/xhci-mtk-sch.c struct usb_host_endpoint *ep) ep 609 drivers/usb/host/xhci-mtk-sch.c ep_index = xhci_get_endpoint_index(&ep->desc); ep 615 drivers/usb/host/xhci-mtk-sch.c __func__, usb_endpoint_type(&ep->desc), udev->speed, ep 616 drivers/usb/host/xhci-mtk-sch.c usb_endpoint_maxp(&ep->desc), ep 617 drivers/usb/host/xhci-mtk-sch.c usb_endpoint_dir_in(&ep->desc), ep); ep 619 drivers/usb/host/xhci-mtk-sch.c if (!need_bw_sch(ep, udev->speed, slot_ctx->tt_info & TT_SLOT)) { ep 624 drivers/usb/host/xhci-mtk-sch.c if (usb_endpoint_xfer_int(&ep->desc) ep 625 drivers/usb/host/xhci-mtk-sch.c || usb_endpoint_xfer_isoc(&ep->desc)) ep 631 drivers/usb/host/xhci-mtk-sch.c bw_index = get_bw_index(xhci, udev, ep); ep 634 drivers/usb/host/xhci-mtk-sch.c sch_ep = create_sch_ep(udev, ep, ep_ctx); ep 666 drivers/usb/host/xhci-mtk-sch.c struct usb_host_endpoint *ep) ep 683 drivers/usb/host/xhci-mtk-sch.c __func__, usb_endpoint_type(&ep->desc), udev->speed, ep 684 drivers/usb/host/xhci-mtk-sch.c usb_endpoint_maxp(&ep->desc), ep 685 drivers/usb/host/xhci-mtk-sch.c usb_endpoint_dir_in(&ep->desc), ep); ep 687 drivers/usb/host/xhci-mtk-sch.c if (!need_bw_sch(ep, udev->speed, slot_ctx->tt_info & TT_SLOT)) ep 690 drivers/usb/host/xhci-mtk-sch.c bw_index = get_bw_index(xhci, udev, ep); ep 694 drivers/usb/host/xhci-mtk-sch.c if (sch_ep->ep == ep) { ep 88 drivers/usb/host/xhci-mtk.h void *ep; ep 166 drivers/usb/host/xhci-mtk.h struct usb_host_endpoint *ep); ep 168 drivers/usb/host/xhci-mtk.h struct usb_host_endpoint *ep); ep 172 drivers/usb/host/xhci-mtk.h struct usb_device *udev, struct usb_host_endpoint *ep) ep 178 drivers/usb/host/xhci-mtk.h struct usb_device *udev, struct usb_host_endpoint *ep) ep 392 drivers/usb/host/xhci-ring.c struct xhci_virt_ep *ep = &xhci->devs[slot_id]->eps[ep_index]; ep 393 drivers/usb/host/xhci-ring.c unsigned int ep_state = ep->ep_state; ep 416 drivers/usb/host/xhci-ring.c struct xhci_virt_ep *ep; ep 418 drivers/usb/host/xhci-ring.c ep = &xhci->devs[slot_id]->eps[ep_index]; ep 421 drivers/usb/host/xhci-ring.c if (!(ep->ep_state & EP_HAS_STREAMS)) { ep 422 drivers/usb/host/xhci-ring.c if (ep->ring && !(list_empty(&ep->ring->td_list))) ep 427 drivers/usb/host/xhci-ring.c for (stream_id = 1; stream_id < ep->stream_info->num_streams; ep 429 drivers/usb/host/xhci-ring.c struct xhci_stream_info *stream_info = ep->stream_info; ep 451 drivers/usb/host/xhci-ring.c struct xhci_virt_ep *ep; ep 453 drivers/usb/host/xhci-ring.c ep = &xhci->devs[slot_id]->eps[ep_index]; ep 455 drivers/usb/host/xhci-ring.c if (!(ep->ep_state & EP_HAS_STREAMS)) ep 456 drivers/usb/host/xhci-ring.c return ep->ring; ep 466 drivers/usb/host/xhci-ring.c if (stream_id < ep->stream_info->num_streams) ep 467 drivers/usb/host/xhci-ring.c return ep->stream_info->stream_rings[stream_id]; ep 474 drivers/usb/host/xhci-ring.c ep->stream_info->num_streams - 1, ep 491 drivers/usb/host/xhci-ring.c struct xhci_virt_ep *ep; ep 493 drivers/usb/host/xhci-ring.c ep = &vdev->eps[ep_index]; ep 495 drivers/usb/host/xhci-ring.c if (ep->ep_state & EP_HAS_STREAMS) { ep 496 drivers/usb/host/xhci-ring.c st_ctx = &ep->stream_info->stream_ctx_array[stream_id]; ep 527 drivers/usb/host/xhci-ring.c struct xhci_virt_ep *ep = &dev->eps[ep_index]; ep 594 drivers/usb/host/xhci-ring.c if (new_deq == ep->ring->dequeue) { ep 645 drivers/usb/host/xhci-ring.c struct xhci_virt_ep *ep) ep 647 drivers/usb/host/xhci-ring.c ep->ep_state &= ~EP_STOP_CMD_PENDING; ep 649 drivers/usb/host/xhci-ring.c del_timer(&ep->stop_cmd_timer); ep 722 drivers/usb/host/xhci-ring.c struct xhci_virt_ep *ep; ep 745 drivers/usb/host/xhci-ring.c ep = &xhci->devs[slot_id]->eps[ep_index]; ep 746 drivers/usb/host/xhci-ring.c last_unlinked_td = list_last_entry(&ep->cancelled_td_list, ep 749 drivers/usb/host/xhci-ring.c if (list_empty(&ep->cancelled_td_list)) { ep 750 drivers/usb/host/xhci-ring.c xhci_stop_watchdog_timer_in_irq(xhci, ep); ep 760 drivers/usb/host/xhci-ring.c list_for_each_entry(cur_td, &ep->cancelled_td_list, cancelled_td_list) { ep 810 drivers/usb/host/xhci-ring.c xhci_stop_watchdog_timer_in_irq(xhci, ep); ep 829 drivers/usb/host/xhci-ring.c cur_td = list_first_entry(&ep->cancelled_td_list, ep 877 drivers/usb/host/xhci-ring.c struct xhci_virt_ep *ep; ep 880 drivers/usb/host/xhci-ring.c ep = &xhci->devs[slot_id]->eps[ep_index]; ep 881 drivers/usb/host/xhci-ring.c if ((ep->ep_state & EP_HAS_STREAMS) || ep 882 drivers/usb/host/xhci-ring.c (ep->ep_state & EP_GETTING_NO_STREAMS)) { ep 885 drivers/usb/host/xhci-ring.c for (stream_id = 1; stream_id < ep->stream_info->num_streams; ep 887 drivers/usb/host/xhci-ring.c ring = ep->stream_info->stream_rings[stream_id]; ep 897 drivers/usb/host/xhci-ring.c ring = ep->ring; ep 906 drivers/usb/host/xhci-ring.c list_for_each_entry_safe(cur_td, tmp, &ep->cancelled_td_list, ep 969 drivers/usb/host/xhci-ring.c struct xhci_virt_ep *ep = from_timer(ep, t, stop_cmd_timer); ep 970 drivers/usb/host/xhci-ring.c struct xhci_hcd *xhci = ep->xhci; ep 976 drivers/usb/host/xhci-ring.c if (!(ep->ep_state & EP_STOP_CMD_PENDING) || ep 977 drivers/usb/host/xhci-ring.c timer_pending(&ep->stop_cmd_timer)) { ep 984 drivers/usb/host/xhci-ring.c ep->ep_state &= ~EP_STOP_CMD_PENDING; ep 1060 drivers/usb/host/xhci-ring.c struct xhci_virt_ep *ep; ep 1067 drivers/usb/host/xhci-ring.c ep = &dev->eps[ep_index]; ep 1117 drivers/usb/host/xhci-ring.c if (ep->ep_state & EP_HAS_STREAMS) { ep 1119 drivers/usb/host/xhci-ring.c &ep->stream_info->stream_ctx_array[stream_id]; ep 1126 drivers/usb/host/xhci-ring.c if (xhci_trb_virt_to_dma(ep->queued_deq_seg, ep 1127 drivers/usb/host/xhci-ring.c ep->queued_deq_ptr) == deq) { ep 1136 drivers/usb/host/xhci-ring.c ep->queued_deq_seg, ep->queued_deq_ptr); ep 1828 drivers/usb/host/xhci-ring.c struct xhci_virt_ep *ep) ep 1836 drivers/usb/host/xhci-ring.c !(ep->ep_state & EP_CLEARING_TT)) { ep 1837 drivers/usb/host/xhci-ring.c ep->ep_state |= EP_CLEARING_TT; ep 1838 drivers/usb/host/xhci-ring.c td->urb->ep->hcpriv = td->urb->dev; ep 1840 drivers/usb/host/xhci-ring.c ep->ep_state &= ~EP_CLEARING_TT; ep 1849 drivers/usb/host/xhci-ring.c struct xhci_virt_ep *ep = &xhci->devs[slot_id]->eps[ep_index]; ep 1863 drivers/usb/host/xhci-ring.c ep->ep_state |= EP_HALTED; ep 1868 drivers/usb/host/xhci-ring.c ep->ep_state |= EP_HARD_CLEAR_TOGGLE; ep 1947 drivers/usb/host/xhci-ring.c (*status != 0 && !usb_endpoint_xfer_isoc(&urb->ep->desc))) ep 1963 drivers/usb/host/xhci-ring.c struct xhci_virt_ep *ep, int *status) ep 1975 drivers/usb/host/xhci-ring.c ep_ring = xhci_dma_to_transfer_ring(ep, le64_to_cpu(event->buffer)); ep 2002 drivers/usb/host/xhci-ring.c xhci_clear_hub_tt_buffer(xhci, td, ep); ep 2035 drivers/usb/host/xhci-ring.c struct xhci_virt_ep *ep, int *status) ep 2129 drivers/usb/host/xhci-ring.c return finish_td(xhci, td, event, ep, status); ep 2137 drivers/usb/host/xhci-ring.c struct xhci_virt_ep *ep, int *status) ep 2148 drivers/usb/host/xhci-ring.c ep_ring = xhci_dma_to_transfer_ring(ep, le64_to_cpu(event->buffer)); ep 2216 drivers/usb/host/xhci-ring.c return finish_td(xhci, td, event, ep, status); ep 2221 drivers/usb/host/xhci-ring.c struct xhci_virt_ep *ep, int *status) ep 2228 drivers/usb/host/xhci-ring.c ep_ring = xhci_dma_to_transfer_ring(ep, le64_to_cpu(event->buffer)); ep 2252 drivers/usb/host/xhci-ring.c struct xhci_virt_ep *ep, int *status) ep 2264 drivers/usb/host/xhci-ring.c ep_ring = xhci_dma_to_transfer_ring(ep, le64_to_cpu(event->buffer)); ep 2277 drivers/usb/host/xhci-ring.c td->urb->ep->desc.bEndpointAddress, ep 2284 drivers/usb/host/xhci-ring.c td->urb->ep->desc.bEndpointAddress, ep 2321 drivers/usb/host/xhci-ring.c return finish_td(xhci, td, event, ep, status); ep 2333 drivers/usb/host/xhci-ring.c struct xhci_virt_ep *ep; ep 2360 drivers/usb/host/xhci-ring.c ep = &xdev->eps[ep_index]; ep 2361 drivers/usb/host/xhci-ring.c ep_ring = xhci_dma_to_transfer_ring(ep, ep_trb_dma); ep 2393 drivers/usb/host/xhci-ring.c if (ep->skip) { ep 2434 drivers/usb/host/xhci-ring.c ep->ep_state |= EP_HALTED; ep 2500 drivers/usb/host/xhci-ring.c ep->skip = true; ep 2506 drivers/usb/host/xhci-ring.c ep->skip = true; ep 2550 drivers/usb/host/xhci-ring.c if (ep->skip) { ep 2551 drivers/usb/host/xhci-ring.c ep->skip = false; ep 2568 drivers/usb/host/xhci-ring.c if (ep->skip && td_num == 0) { ep 2569 drivers/usb/host/xhci-ring.c ep->skip = false; ep 2577 drivers/usb/host/xhci-ring.c if (ep->skip) ep 2598 drivers/usb/host/xhci-ring.c if (!ep->skip || ep 2599 drivers/usb/host/xhci-ring.c !usb_endpoint_xfer_isoc(&td->urb->ep->desc)) { ep 2621 drivers/usb/host/xhci-ring.c skip_isoc_td(xhci, td, event, ep, &status); ep 2629 drivers/usb/host/xhci-ring.c if (ep->skip) { ep 2633 drivers/usb/host/xhci-ring.c ep->skip = false; ep 2661 drivers/usb/host/xhci-ring.c if (usb_endpoint_xfer_control(&td->urb->ep->desc)) ep 2662 drivers/usb/host/xhci-ring.c process_ctrl_td(xhci, td, ep_trb, event, ep, &status); ep 2663 drivers/usb/host/xhci-ring.c else if (usb_endpoint_xfer_isoc(&td->urb->ep->desc)) ep 2664 drivers/usb/host/xhci-ring.c process_isoc_td(xhci, td, ep_trb, event, ep, &status); ep 2666 drivers/usb/host/xhci-ring.c process_bulk_intr_td(xhci, td, ep_trb, event, ep, ep 2669 drivers/usb/host/xhci-ring.c handling_skipped_tds = ep->skip && ep 3110 drivers/usb/host/xhci-ring.c urb->ep->desc.bEndpointAddress, ep 3218 drivers/usb/host/xhci-ring.c maxp = usb_endpoint_maxp(&urb->ep->desc); ep 3235 drivers/usb/host/xhci-ring.c max_pkt = usb_endpoint_maxp(&urb->ep->desc); ep 3599 drivers/usb/host/xhci-ring.c max_burst = urb->ep->ss_ep_comp.bMaxBurst; ep 3622 drivers/usb/host/xhci-ring.c max_burst = urb->ep->ss_ep_comp.bMaxBurst; ep 3770 drivers/usb/host/xhci-ring.c max_pkt = usb_endpoint_maxp(&urb->ep->desc); ep 4130 drivers/usb/host/xhci-ring.c struct xhci_virt_ep *ep; ep 4151 drivers/usb/host/xhci-ring.c ep = &xhci->devs[slot_id]->eps[ep_index]; ep 4152 drivers/usb/host/xhci-ring.c if ((ep->ep_state & SET_DEQ_PENDING)) { ep 4163 drivers/usb/host/xhci-ring.c ep->queued_deq_seg = deq_state->new_deq_seg; ep 4164 drivers/usb/host/xhci-ring.c ep->queued_deq_ptr = deq_state->new_deq_ptr; ep 4181 drivers/usb/host/xhci-ring.c ep->ep_state |= SET_DEQ_PENDING; ep 285 drivers/usb/host/xhci-trace.h __entry->epnum = usb_endpoint_num(&urb->ep->desc); ep 286 drivers/usb/host/xhci-trace.h __entry->dir_in = usb_endpoint_dir_in(&urb->ep->desc); ep 287 drivers/usb/host/xhci-trace.h __entry->type = usb_endpoint_type(&urb->ep->desc); ep 1338 drivers/usb/host/xhci.c struct usb_host_endpoint *ep, int check_ep, bool check_virt_dev, ep 1343 drivers/usb/host/xhci.c if (!hcd || (check_ep && !ep) || !udev) { ep 1467 drivers/usb/host/xhci.c if (!urb || xhci_check_args(hcd, urb->dev, urb->ep, ep 1472 drivers/usb/host/xhci.c ep_index = xhci_get_endpoint_index(&urb->ep->desc); ep 1485 drivers/usb/host/xhci.c if (usb_endpoint_xfer_isoc(&urb->ep->desc)) ep 1487 drivers/usb/host/xhci.c else if (usb_endpoint_is_bulk_out(&urb->ep->desc) && ep 1490 drivers/usb/host/xhci.c !(urb->transfer_buffer_length % usb_endpoint_maxp(&urb->ep->desc))) ep 1505 drivers/usb/host/xhci.c if (usb_endpoint_xfer_control(&urb->ep->desc)) { ep 1524 drivers/usb/host/xhci.c urb->ep->desc.bEndpointAddress, urb); ep 1540 drivers/usb/host/xhci.c switch (usb_endpoint_type(&urb->ep->desc)) { ep 1609 drivers/usb/host/xhci.c struct xhci_virt_ep *ep; ep 1629 drivers/usb/host/xhci.c ep_index = xhci_get_endpoint_index(&urb->ep->desc); ep 1630 drivers/usb/host/xhci.c ep = &vdev->eps[ep_index]; ep 1632 drivers/usb/host/xhci.c if (!ep || !ep_ring) ep 1678 drivers/usb/host/xhci.c urb->ep->desc.bEndpointAddress, ep 1685 drivers/usb/host/xhci.c list_add_tail(&td->cancelled_td_list, &ep->cancelled_td_list); ep 1691 drivers/usb/host/xhci.c if (!(ep->ep_state & EP_STOP_CMD_PENDING)) { ep 1697 drivers/usb/host/xhci.c ep->ep_state |= EP_STOP_CMD_PENDING; ep 1698 drivers/usb/host/xhci.c ep->stop_cmd_timer.expires = jiffies + ep 1700 drivers/usb/host/xhci.c add_timer(&ep->stop_cmd_timer); ep 1732 drivers/usb/host/xhci.c struct usb_host_endpoint *ep) ep 1743 drivers/usb/host/xhci.c ret = xhci_check_args(hcd, udev, ep, 1, true, __func__); ep 1751 drivers/usb/host/xhci.c drop_flag = xhci_get_endpoint_flag(&ep->desc); ep 1767 drivers/usb/host/xhci.c ep_index = xhci_get_endpoint_index(&ep->desc); ep 1774 drivers/usb/host/xhci.c xhci_get_endpoint_flag(&ep->desc)) { ep 1778 drivers/usb/host/xhci.c __func__, ep); ep 1790 drivers/usb/host/xhci.c xhci_endpoint_zero(xhci, xhci->devs[udev->slot_id], ep); ep 1793 drivers/usb/host/xhci.c xhci_mtk_drop_ep_quirk(hcd, udev, ep); ep 1796 drivers/usb/host/xhci.c (unsigned int) ep->desc.bEndpointAddress, ep 1817 drivers/usb/host/xhci.c struct usb_host_endpoint *ep) ep 1829 drivers/usb/host/xhci.c ret = xhci_check_args(hcd, udev, ep, 1, true, __func__); ep 1832 drivers/usb/host/xhci.c ep->hcpriv = NULL; ep 1839 drivers/usb/host/xhci.c added_ctxs = xhci_get_endpoint_flag(&ep->desc); ep 1859 drivers/usb/host/xhci.c ep_index = xhci_get_endpoint_index(&ep->desc); ep 1867 drivers/usb/host/xhci.c (unsigned int) ep->desc.bEndpointAddress); ep 1876 drivers/usb/host/xhci.c __func__, ep); ep 1885 drivers/usb/host/xhci.c if (xhci_endpoint_init(xhci, virt_dev, udev, ep, GFP_NOIO) < 0) { ep 1887 drivers/usb/host/xhci.c __func__, ep->desc.bEndpointAddress); ep 1892 drivers/usb/host/xhci.c ret = xhci_mtk_add_ep_quirk(hcd, udev, ep); ep 1912 drivers/usb/host/xhci.c ep->hcpriv = udev; ep 1920 drivers/usb/host/xhci.c (unsigned int) ep->desc.bEndpointAddress, ep 2841 drivers/usb/host/xhci.c struct xhci_virt_ep *ep = &vdev->eps[i]; ep 2843 drivers/usb/host/xhci.c if (ep->ep_state & EP_HAS_STREAMS) { ep 2846 drivers/usb/host/xhci.c xhci_free_stream_info(xhci, ep->stream_info); ep 2847 drivers/usb/host/xhci.c ep->stream_info = NULL; ep 2848 drivers/usb/host/xhci.c ep->ep_state &= ~EP_HAS_STREAMS; ep 3078 drivers/usb/host/xhci.c struct xhci_virt_ep *ep; ep 3096 drivers/usb/host/xhci.c ep = &vdev->eps[ep_index]; ep 3097 drivers/usb/host/xhci.c if (!ep) ep 3101 drivers/usb/host/xhci.c if (ep->ep_state & EP_CLEARING_TT) { ep 3107 drivers/usb/host/xhci.c if (ep->ep_state) ep 3109 drivers/usb/host/xhci.c ep->ep_state); ep 3133 drivers/usb/host/xhci.c struct xhci_virt_ep *ep; ep 3155 drivers/usb/host/xhci.c ep = &vdev->eps[ep_index]; ep 3156 drivers/usb/host/xhci.c if (!ep) ep 3160 drivers/usb/host/xhci.c if (ep->ep_state & EP_HARD_CLEAR_TOGGLE) { ep 3161 drivers/usb/host/xhci.c ep->ep_state &= ~EP_HARD_CLEAR_TOGGLE; ep 3185 drivers/usb/host/xhci.c ep->ep_state |= EP_SOFT_CLEAR_TOGGLE; ep 3193 drivers/usb/host/xhci.c if (!list_empty(&ep->ring->td_list)) { ep 3238 drivers/usb/host/xhci.c ep->ep_state &= ~EP_SOFT_CLEAR_TOGGLE; ep 3245 drivers/usb/host/xhci.c struct usb_device *udev, struct usb_host_endpoint *ep, ep 3252 drivers/usb/host/xhci.c if (!ep) ep 3254 drivers/usb/host/xhci.c ret = xhci_check_args(xhci_to_hcd(xhci), udev, ep, 1, true, __func__); ep 3257 drivers/usb/host/xhci.c if (usb_ss_max_streams(&ep->ss_ep_comp) == 0) { ep 3260 drivers/usb/host/xhci.c ep->desc.bEndpointAddress); ep 3264 drivers/usb/host/xhci.c ep_index = xhci_get_endpoint_index(&ep->desc); ep 3270 drivers/usb/host/xhci.c ep->desc.bEndpointAddress); ep 3278 drivers/usb/host/xhci.c ep->desc.bEndpointAddress); ep 3818 drivers/usb/host/xhci.c struct xhci_virt_ep *ep = &virt_dev->eps[i]; ep 3820 drivers/usb/host/xhci.c if (ep->ep_state & EP_HAS_STREAMS) { ep 3823 drivers/usb/host/xhci.c xhci_free_stream_info(xhci, ep->stream_info); ep 3824 drivers/usb/host/xhci.c ep->stream_info = NULL; ep 3825 drivers/usb/host/xhci.c ep->ep_state &= ~EP_HAS_STREAMS; ep 3828 drivers/usb/host/xhci.c if (ep->ring) { ep 5274 drivers/usb/host/xhci.c struct usb_host_endpoint *ep) ep 5285 drivers/usb/host/xhci.c udev = (struct usb_device *)ep->hcpriv; ep 5287 drivers/usb/host/xhci.c ep_index = xhci_get_endpoint_index(&ep->desc); ep 549 drivers/usb/host/xhci.h #define DB_VALUE(ep, stream) ((((ep) + 1) & 0xff) | ((stream) << 16)) ep 1988 drivers/usb/host/xhci.h void xhci_endpoint_zero(struct xhci_hcd *xhci, struct xhci_virt_device *virt_dev, struct usb_host_endpoint *ep); ep 2005 drivers/usb/host/xhci.h struct usb_device *udev, struct usb_host_endpoint *ep, ep 2031 drivers/usb/host/xhci.h struct xhci_virt_ep *ep); ep 2035 drivers/usb/host/xhci.h struct xhci_virt_ep *ep, ep 2175 drivers/usb/host/xhci.h xhci_get_endpoint_index(&urb->ep->desc), ep 2186 drivers/usb/host/xhci.h if (!usb_endpoint_xfer_isoc(&urb->ep->desc) && usb_urb_dir_out(urb) && ep 2187 drivers/usb/host/xhci.h usb_endpoint_maxp(&urb->ep->desc) >= TRB_IDT_MAX_SIZE && ep 1549 drivers/usb/isp1760/isp1760-hcd.c qh = urb->ep->hcpriv; ep 1569 drivers/usb/isp1760/isp1760-hcd.c urb->ep->hcpriv = qh; ep 1656 drivers/usb/isp1760/isp1760-hcd.c qh = urb->ep->hcpriv; ep 1678 drivers/usb/isp1760/isp1760-hcd.c struct usb_host_endpoint *ep) ep 1687 drivers/usb/isp1760/isp1760-hcd.c qh = ep->hcpriv; ep 1701 drivers/usb/isp1760/isp1760-hcd.c ep->hcpriv = NULL; ep 2120 drivers/usb/isp1760/isp1760-hcd.c struct usb_host_endpoint *ep) ep 2123 drivers/usb/isp1760/isp1760-hcd.c struct isp1760_qh *qh = ep->hcpriv; ep 29 drivers/usb/isp1760/isp1760-udc.c struct isp1760_ep *ep; ep 38 drivers/usb/isp1760/isp1760-udc.c static inline struct isp1760_ep *ep_to_udc_ep(struct usb_ep *ep) ep 40 drivers/usb/isp1760/isp1760-udc.c return container_of(ep, struct isp1760_ep, ep); ep 68 drivers/usb/isp1760/isp1760-udc.c return &udc->ep[0]; ep 70 drivers/usb/isp1760/isp1760-udc.c for (i = 1; i < ARRAY_SIZE(udc->ep); ++i) { ep 71 drivers/usb/isp1760/isp1760-udc.c if (udc->ep[i].addr == index) ep 72 drivers/usb/isp1760/isp1760-udc.c return udc->ep[i].desc ? &udc->ep[i] : NULL; ep 78 drivers/usb/isp1760/isp1760-udc.c static void __isp1760_udc_select_ep(struct isp1760_ep *ep, int dir) ep 80 drivers/usb/isp1760/isp1760-udc.c isp1760_udc_write(ep->udc, DC_EPINDEX, ep 81 drivers/usb/isp1760/isp1760-udc.c DC_ENDPIDX(ep->addr & USB_ENDPOINT_NUMBER_MASK) | ep 96 drivers/usb/isp1760/isp1760-udc.c static void isp1760_udc_select_ep(struct isp1760_ep *ep) ep 98 drivers/usb/isp1760/isp1760-udc.c __isp1760_udc_select_ep(ep, ep->addr & USB_ENDPOINT_DIR_MASK); ep 102 drivers/usb/isp1760/isp1760-udc.c static void isp1760_udc_ctrl_send_status(struct isp1760_ep *ep, int dir) ep 104 drivers/usb/isp1760/isp1760-udc.c struct isp1760_udc *udc = ep->udc; ep 123 drivers/usb/isp1760/isp1760-udc.c static void isp1760_udc_request_complete(struct isp1760_ep *ep, ep 127 drivers/usb/isp1760/isp1760-udc.c struct isp1760_udc *udc = ep->udc; ep 130 drivers/usb/isp1760/isp1760-udc.c dev_dbg(ep->udc->isp->dev, "completing request %p with status %d\n", ep 133 drivers/usb/isp1760/isp1760-udc.c req->ep = NULL; ep 135 drivers/usb/isp1760/isp1760-udc.c req->req.complete(&ep->ep, &req->req); ep 144 drivers/usb/isp1760/isp1760-udc.c if (status == 0 && ep->addr == 0 && udc->ep0_dir == USB_DIR_OUT) ep 145 drivers/usb/isp1760/isp1760-udc.c isp1760_udc_ctrl_send_status(ep, USB_DIR_OUT); ep 150 drivers/usb/isp1760/isp1760-udc.c static void isp1760_udc_ctrl_send_stall(struct isp1760_ep *ep) ep 152 drivers/usb/isp1760/isp1760-udc.c struct isp1760_udc *udc = ep->udc; ep 155 drivers/usb/isp1760/isp1760-udc.c dev_dbg(ep->udc->isp->dev, "%s(ep%02x)\n", __func__, ep->addr); ep 160 drivers/usb/isp1760/isp1760-udc.c __isp1760_udc_select_ep(ep, USB_DIR_OUT); ep 162 drivers/usb/isp1760/isp1760-udc.c __isp1760_udc_select_ep(ep, USB_DIR_IN); ep 176 drivers/usb/isp1760/isp1760-udc.c static bool isp1760_udc_receive(struct isp1760_ep *ep, ep 179 drivers/usb/isp1760/isp1760-udc.c struct isp1760_udc *udc = ep->udc; ep 184 drivers/usb/isp1760/isp1760-udc.c isp1760_udc_select_ep(ep); ep 225 drivers/usb/isp1760/isp1760-udc.c __func__, req, req->req.actual, req->req.length, ep->maxpacket, ep 228 drivers/usb/isp1760/isp1760-udc.c ep->rx_pending = false; ep 234 drivers/usb/isp1760/isp1760-udc.c if (req->req.actual == req->req.length || len < ep->maxpacket) { ep 242 drivers/usb/isp1760/isp1760-udc.c static void isp1760_udc_transmit(struct isp1760_ep *ep, ep 245 drivers/usb/isp1760/isp1760-udc.c struct isp1760_udc *udc = ep->udc; ep 250 drivers/usb/isp1760/isp1760-udc.c ep->maxpacket); ep 256 drivers/usb/isp1760/isp1760-udc.c __isp1760_udc_select_ep(ep, USB_DIR_IN); ep 272 drivers/usb/isp1760/isp1760-udc.c if (ep->addr == 0) ep 278 drivers/usb/isp1760/isp1760-udc.c static void isp1760_ep_rx_ready(struct isp1760_ep *ep) ep 280 drivers/usb/isp1760/isp1760-udc.c struct isp1760_udc *udc = ep->udc; ep 286 drivers/usb/isp1760/isp1760-udc.c if (ep->addr == 0 && udc->ep0_state != ISP1760_CTRL_DATA_OUT) { ep 293 drivers/usb/isp1760/isp1760-udc.c if (ep->addr != 0 && !ep->desc) { ep 296 drivers/usb/isp1760/isp1760-udc.c ep->addr); ep 300 drivers/usb/isp1760/isp1760-udc.c if (list_empty(&ep->queue)) { ep 301 drivers/usb/isp1760/isp1760-udc.c ep->rx_pending = true; ep 304 drivers/usb/isp1760/isp1760-udc.c __func__, ep->addr, ep); ep 308 drivers/usb/isp1760/isp1760-udc.c req = list_first_entry(&ep->queue, struct isp1760_request, ep 310 drivers/usb/isp1760/isp1760-udc.c complete = isp1760_udc_receive(ep, req); ep 315 drivers/usb/isp1760/isp1760-udc.c isp1760_udc_request_complete(ep, req, 0); ep 318 drivers/usb/isp1760/isp1760-udc.c static void isp1760_ep_tx_complete(struct isp1760_ep *ep) ep 320 drivers/usb/isp1760/isp1760-udc.c struct isp1760_udc *udc = ep->udc; ep 327 drivers/usb/isp1760/isp1760-udc.c if (ep->addr == 0 && udc->ep0_state != ISP1760_CTRL_DATA_IN) { ep 334 drivers/usb/isp1760/isp1760-udc.c if (list_empty(&ep->queue)) { ep 340 drivers/usb/isp1760/isp1760-udc.c if (ep->addr == 0) { ep 341 drivers/usb/isp1760/isp1760-udc.c isp1760_udc_ctrl_send_status(ep, USB_DIR_IN); ep 348 drivers/usb/isp1760/isp1760-udc.c __func__, ep->addr); ep 352 drivers/usb/isp1760/isp1760-udc.c req = list_first_entry(&ep->queue, struct isp1760_request, ep 357 drivers/usb/isp1760/isp1760-udc.c !(req->req.length % ep->maxpacket) && ep 362 drivers/usb/isp1760/isp1760-udc.c req, req->req.actual, req->req.length, ep->maxpacket, ep 373 drivers/usb/isp1760/isp1760-udc.c if (ep->addr == 0) ep 374 drivers/usb/isp1760/isp1760-udc.c isp1760_udc_ctrl_send_status(ep, USB_DIR_IN); ep 376 drivers/usb/isp1760/isp1760-udc.c if (!list_empty(&ep->queue)) ep 377 drivers/usb/isp1760/isp1760-udc.c req = list_first_entry(&ep->queue, ep 390 drivers/usb/isp1760/isp1760-udc.c isp1760_udc_transmit(ep, req); ep 395 drivers/usb/isp1760/isp1760-udc.c isp1760_udc_request_complete(ep, complete, 0); ep 398 drivers/usb/isp1760/isp1760-udc.c static int __isp1760_udc_set_halt(struct isp1760_ep *ep, bool halt) ep 400 drivers/usb/isp1760/isp1760-udc.c struct isp1760_udc *udc = ep->udc; ep 403 drivers/usb/isp1760/isp1760-udc.c halt ? "set" : "clear", ep->addr); ep 405 drivers/usb/isp1760/isp1760-udc.c if (ep->desc && usb_endpoint_xfer_isoc(ep->desc)) { ep 407 drivers/usb/isp1760/isp1760-udc.c ep->addr); ep 411 drivers/usb/isp1760/isp1760-udc.c isp1760_udc_select_ep(ep); ep 414 drivers/usb/isp1760/isp1760-udc.c if (ep->addr == 0) { ep 416 drivers/usb/isp1760/isp1760-udc.c __isp1760_udc_select_ep(ep, USB_DIR_IN); ep 432 drivers/usb/isp1760/isp1760-udc.c if ((ep->addr & USB_DIR_IN) && !list_empty(&ep->queue)) { ep 435 drivers/usb/isp1760/isp1760-udc.c req = list_first_entry(&ep->queue, ep 437 drivers/usb/isp1760/isp1760-udc.c isp1760_udc_transmit(ep, req); ep 441 drivers/usb/isp1760/isp1760-udc.c ep->halted = halt; ep 453 drivers/usb/isp1760/isp1760-udc.c struct isp1760_ep *ep; ep 469 drivers/usb/isp1760/isp1760-udc.c ep = isp1760_udc_find_ep(udc, le16_to_cpu(req->wIndex)); ep 470 drivers/usb/isp1760/isp1760-udc.c if (!ep) ep 474 drivers/usb/isp1760/isp1760-udc.c if (ep->halted) ep 514 drivers/usb/isp1760/isp1760-udc.c isp1760_udc_ctrl_send_status(&udc->ep[0], USB_DIR_OUT); ep 538 drivers/usb/isp1760/isp1760-udc.c struct isp1760_ep *ep; ep 544 drivers/usb/isp1760/isp1760-udc.c ep = isp1760_udc_find_ep(udc, index); ep 545 drivers/usb/isp1760/isp1760-udc.c if (!ep) ep 555 drivers/usb/isp1760/isp1760-udc.c if (!ep->wedged) ep 556 drivers/usb/isp1760/isp1760-udc.c stall = __isp1760_udc_set_halt(ep, false); ep 561 drivers/usb/isp1760/isp1760-udc.c isp1760_udc_ctrl_send_status(&udc->ep[0], ep 582 drivers/usb/isp1760/isp1760-udc.c struct isp1760_ep *ep; ep 588 drivers/usb/isp1760/isp1760-udc.c ep = isp1760_udc_find_ep(udc, index); ep 589 drivers/usb/isp1760/isp1760-udc.c if (!ep) ep 594 drivers/usb/isp1760/isp1760-udc.c stall = __isp1760_udc_set_halt(ep, true); ep 596 drivers/usb/isp1760/isp1760-udc.c isp1760_udc_ctrl_send_status(&udc->ep[0], ep 662 drivers/usb/isp1760/isp1760-udc.c isp1760_udc_ctrl_send_stall(&udc->ep[0]); ep 700 drivers/usb/isp1760/isp1760-udc.c isp1760_udc_ctrl_send_stall(&udc->ep[0]); ep 707 drivers/usb/isp1760/isp1760-udc.c static int isp1760_ep_enable(struct usb_ep *ep, ep 710 drivers/usb/isp1760/isp1760-udc.c struct isp1760_ep *uep = ep_to_udc_ep(ep); ep 724 drivers/usb/isp1760/isp1760-udc.c le16_to_cpu(desc->wMaxPacketSize) > ep->maxpacket) { ep 729 drivers/usb/isp1760/isp1760-udc.c le16_to_cpu(desc->wMaxPacketSize), ep->maxpacket); ep 768 drivers/usb/isp1760/isp1760-udc.c static int isp1760_ep_disable(struct usb_ep *ep) ep 770 drivers/usb/isp1760/isp1760-udc.c struct isp1760_ep *uep = ep_to_udc_ep(ep); ep 806 drivers/usb/isp1760/isp1760-udc.c static struct usb_request *isp1760_ep_alloc_request(struct usb_ep *ep, ep 818 drivers/usb/isp1760/isp1760-udc.c static void isp1760_ep_free_request(struct usb_ep *ep, struct usb_request *_req) ep 825 drivers/usb/isp1760/isp1760-udc.c static int isp1760_ep_queue(struct usb_ep *ep, struct usb_request *_req, ep 829 drivers/usb/isp1760/isp1760-udc.c struct isp1760_ep *uep = ep_to_udc_ep(ep); ep 844 drivers/usb/isp1760/isp1760-udc.c req->ep = uep; ep 898 drivers/usb/isp1760/isp1760-udc.c req->ep = NULL; ep 908 drivers/usb/isp1760/isp1760-udc.c static int isp1760_ep_dequeue(struct usb_ep *ep, struct usb_request *_req) ep 911 drivers/usb/isp1760/isp1760-udc.c struct isp1760_ep *uep = ep_to_udc_ep(ep); ep 919 drivers/usb/isp1760/isp1760-udc.c if (req->ep != uep) ep 988 drivers/usb/isp1760/isp1760-udc.c static int isp1760_ep_set_halt(struct usb_ep *ep, int value) ep 990 drivers/usb/isp1760/isp1760-udc.c struct isp1760_ep *uep = ep_to_udc_ep(ep); ep 1004 drivers/usb/isp1760/isp1760-udc.c static int isp1760_ep_set_wedge(struct usb_ep *ep) ep 1006 drivers/usb/isp1760/isp1760-udc.c struct isp1760_ep *uep = ep_to_udc_ep(ep); ep 1020 drivers/usb/isp1760/isp1760-udc.c static void isp1760_ep_fifo_flush(struct usb_ep *ep) ep 1022 drivers/usb/isp1760/isp1760-udc.c struct isp1760_ep *uep = ep_to_udc_ep(ep); ep 1288 drivers/usb/isp1760/isp1760-udc.c struct isp1760_ep *ep = &udc->ep[i*2]; ep 1292 drivers/usb/isp1760/isp1760-udc.c isp1760_ep_tx_complete(ep); ep 1297 drivers/usb/isp1760/isp1760-udc.c isp1760_ep_rx_ready(i ? ep - 1 : ep); ep 1357 drivers/usb/isp1760/isp1760-udc.c for (i = 0; i < ARRAY_SIZE(udc->ep); ++i) { ep 1358 drivers/usb/isp1760/isp1760-udc.c struct isp1760_ep *ep = &udc->ep[i]; ep 1362 drivers/usb/isp1760/isp1760-udc.c ep->udc = udc; ep 1364 drivers/usb/isp1760/isp1760-udc.c INIT_LIST_HEAD(&ep->queue); ep 1366 drivers/usb/isp1760/isp1760-udc.c ep->addr = (ep_num && is_in ? USB_DIR_IN : USB_DIR_OUT) ep 1368 drivers/usb/isp1760/isp1760-udc.c ep->desc = NULL; ep 1370 drivers/usb/isp1760/isp1760-udc.c sprintf(ep->name, "ep%u%s", ep_num, ep 1373 drivers/usb/isp1760/isp1760-udc.c ep->ep.ops = &isp1760_ep_ops; ep 1374 drivers/usb/isp1760/isp1760-udc.c ep->ep.name = ep->name; ep 1382 drivers/usb/isp1760/isp1760-udc.c usb_ep_set_maxpacket_limit(&ep->ep, 64); ep 1383 drivers/usb/isp1760/isp1760-udc.c ep->ep.caps.type_control = true; ep 1384 drivers/usb/isp1760/isp1760-udc.c ep->ep.caps.dir_in = true; ep 1385 drivers/usb/isp1760/isp1760-udc.c ep->ep.caps.dir_out = true; ep 1386 drivers/usb/isp1760/isp1760-udc.c ep->maxpacket = 64; ep 1387 drivers/usb/isp1760/isp1760-udc.c udc->gadget.ep0 = &ep->ep; ep 1389 drivers/usb/isp1760/isp1760-udc.c usb_ep_set_maxpacket_limit(&ep->ep, 512); ep 1390 drivers/usb/isp1760/isp1760-udc.c ep->ep.caps.type_iso = true; ep 1391 drivers/usb/isp1760/isp1760-udc.c ep->ep.caps.type_bulk = true; ep 1392 drivers/usb/isp1760/isp1760-udc.c ep->ep.caps.type_int = true; ep 1393 drivers/usb/isp1760/isp1760-udc.c ep->maxpacket = 0; ep 1394 drivers/usb/isp1760/isp1760-udc.c list_add_tail(&ep->ep.ep_list, &udc->gadget.ep_list); ep 1398 drivers/usb/isp1760/isp1760-udc.c ep->ep.caps.dir_in = true; ep 1400 drivers/usb/isp1760/isp1760-udc.c ep->ep.caps.dir_out = true; ep 32 drivers/usb/isp1760/isp1760-udc.h struct usb_ep ep; ep 75 drivers/usb/isp1760/isp1760-udc.h struct isp1760_ep ep[15]; ep 329 drivers/usb/misc/sisusbvga/sisusb.c static int sisusb_send_bulk_msg(struct sisusb_usb_data *sisusb, int ep, int len, ep 359 drivers/usb/misc/sisusbvga/sisusb.c pipe = usb_sndbulkpipe(sisusb->sisusb_dev, ep); ep 450 drivers/usb/misc/sisusbvga/sisusb.c static int sisusb_recv_bulk_msg(struct sisusb_usb_data *sisusb, int ep, int len, ep 465 drivers/usb/misc/sisusbvga/sisusb.c pipe = usb_rcvbulkpipe(sisusb->sisusb_dev, ep); ep 153 drivers/usb/misc/usbtest.c unsigned ep; ep 167 drivers/usb/misc/usbtest.c for (ep = 0; ep < alt->desc.bNumEndpoints; ep++) { ep 171 drivers/usb/misc/usbtest.c e = alt->endpoint + ep; ep 344 drivers/usb/misc/usbtest.c struct usb_host_endpoint *ep; ep 346 drivers/usb/misc/usbtest.c ep = usb_pipe_endpoint(udev, pipe); ep 347 drivers/usb/misc/usbtest.c return le16_to_cpup(&ep->desc.wMaxPacketSize); ep 352 drivers/usb/misc/usbtest.c struct usb_host_endpoint *ep = usb_pipe_endpoint(udev, pipe); ep 354 drivers/usb/misc/usbtest.c return USB_SS_MULT(ep->ss_ep_comp.bmAttributes) ep 355 drivers/usb/misc/usbtest.c * (1 + ep->ss_ep_comp.bMaxBurst); ep 1629 drivers/usb/misc/usbtest.c static int verify_not_halted(struct usbtest_dev *tdev, int ep, struct urb *urb) ep 1635 drivers/usb/misc/usbtest.c retval = usb_get_std_status(urb->dev, USB_RECIP_ENDPOINT, ep, &status); ep 1638 drivers/usb/misc/usbtest.c ep, retval); ep 1642 drivers/usb/misc/usbtest.c ERROR(tdev, "ep %02x bogus status: %04x != 0\n", ep, status); ep 1651 drivers/usb/misc/usbtest.c static int verify_halted(struct usbtest_dev *tdev, int ep, struct urb *urb) ep 1657 drivers/usb/misc/usbtest.c retval = usb_get_std_status(urb->dev, USB_RECIP_ENDPOINT, ep, &status); ep 1660 drivers/usb/misc/usbtest.c ep, retval); ep 1664 drivers/usb/misc/usbtest.c ERROR(tdev, "ep %02x bogus status: %04x != 1\n", ep, status); ep 1676 drivers/usb/misc/usbtest.c static int test_halt(struct usbtest_dev *tdev, int ep, struct urb *urb) ep 1681 drivers/usb/misc/usbtest.c retval = verify_not_halted(tdev, ep, urb); ep 1688 drivers/usb/misc/usbtest.c USB_ENDPOINT_HALT, ep, ep 1691 drivers/usb/misc/usbtest.c ERROR(tdev, "ep %02x couldn't set halt, %d\n", ep, retval); ep 1694 drivers/usb/misc/usbtest.c retval = verify_halted(tdev, ep, urb); ep 1702 drivers/usb/misc/usbtest.c ep, ret); ep 1710 drivers/usb/misc/usbtest.c ERROR(tdev, "ep %02x couldn't clear halt, %d\n", ep, retval); ep 1713 drivers/usb/misc/usbtest.c retval = verify_not_halted(tdev, ep, urb); ep 1722 drivers/usb/misc/usbtest.c static int test_toggle_sync(struct usbtest_dev *tdev, int ep, struct urb *urb) ep 1729 drivers/usb/misc/usbtest.c ERROR(tdev, "ep %02x couldn't clear halt, %d\n", ep, retval); ep 1741 drivers/usb/misc/usbtest.c ERROR(tdev, "ep %02x couldn't clear halt, %d\n", ep, retval); ep 1753 drivers/usb/misc/usbtest.c int ep; ep 1766 drivers/usb/misc/usbtest.c ep = usb_pipeendpoint(dev->in_pipe) | USB_DIR_IN; ep 1768 drivers/usb/misc/usbtest.c retval = test_halt(dev, ep, urb); ep 1774 drivers/usb/misc/usbtest.c ep = usb_pipeendpoint(dev->out_pipe); ep 1776 drivers/usb/misc/usbtest.c retval = test_halt(dev, ep, urb); ep 1785 drivers/usb/misc/usbtest.c int ep; ep 1802 drivers/usb/misc/usbtest.c ep = usb_pipeendpoint(dev->out_pipe); ep 1804 drivers/usb/misc/usbtest.c retval = test_toggle_sync(dev, ep, urb); ep 385 drivers/usb/mon/mon_bin.c struct mon_bin_hdr *ep; ep 387 drivers/usb/mon/mon_bin.c ep = MON_OFF2HDR(rp, offset); ep 388 drivers/usb/mon/mon_bin.c memset(ep, 0, PKT_SIZE); ep 389 drivers/usb/mon/mon_bin.c ep->type = '@'; ep 390 drivers/usb/mon/mon_bin.c ep->len_cap = size - PKT_SIZE; ep 488 drivers/usb/mon/mon_bin.c const struct usb_endpoint_descriptor *epd = &urb->ep->desc; ep 497 drivers/usb/mon/mon_bin.c struct mon_bin_hdr *ep; ep 560 drivers/usb/mon/mon_bin.c ep = MON_OFF2HDR(rp, offset); ep 566 drivers/usb/mon/mon_bin.c memset(ep, 0, PKT_SIZE); ep 567 drivers/usb/mon/mon_bin.c ep->type = ev_type; ep 568 drivers/usb/mon/mon_bin.c ep->xfer_type = xfer_to_pipe[usb_endpoint_type(epd)]; ep 569 drivers/usb/mon/mon_bin.c ep->epnum = dir | usb_endpoint_num(epd); ep 570 drivers/usb/mon/mon_bin.c ep->devnum = urb->dev->devnum; ep 571 drivers/usb/mon/mon_bin.c ep->busnum = urb->dev->bus->busnum; ep 572 drivers/usb/mon/mon_bin.c ep->id = (unsigned long) urb; ep 573 drivers/usb/mon/mon_bin.c ep->ts_sec = ts.tv_sec; ep 574 drivers/usb/mon/mon_bin.c ep->ts_usec = ts.tv_nsec / NSEC_PER_USEC; ep 575 drivers/usb/mon/mon_bin.c ep->status = status; ep 576 drivers/usb/mon/mon_bin.c ep->len_urb = urb_length; ep 577 drivers/usb/mon/mon_bin.c ep->len_cap = length + lendesc; ep 578 drivers/usb/mon/mon_bin.c ep->xfer_flags = urb->transfer_flags; ep 581 drivers/usb/mon/mon_bin.c ep->interval = urb->interval; ep 583 drivers/usb/mon/mon_bin.c ep->interval = urb->interval; ep 584 drivers/usb/mon/mon_bin.c ep->start_frame = urb->start_frame; ep 585 drivers/usb/mon/mon_bin.c ep->s.iso.error_count = urb->error_count; ep 586 drivers/usb/mon/mon_bin.c ep->s.iso.numdesc = urb->number_of_packets; ep 590 drivers/usb/mon/mon_bin.c ep->flag_setup = mon_bin_get_setup(ep->s.setup, urb, ev_type); ep 592 drivers/usb/mon/mon_bin.c ep->flag_setup = '-'; ep 596 drivers/usb/mon/mon_bin.c ep->ndesc = ndesc; ep 604 drivers/usb/mon/mon_bin.c &ep->flag_data); ep 606 drivers/usb/mon/mon_bin.c delta = (ep->len_cap + PKT_ALIGN-1) & ~(PKT_ALIGN-1); ep 607 drivers/usb/mon/mon_bin.c ep->len_cap -= length; ep 608 drivers/usb/mon/mon_bin.c delta -= (ep->len_cap + PKT_ALIGN-1) & ~(PKT_ALIGN-1); ep 612 drivers/usb/mon/mon_bin.c ep->flag_data = data_tag; ep 638 drivers/usb/mon/mon_bin.c struct mon_bin_hdr *ep; ep 651 drivers/usb/mon/mon_bin.c ep = MON_OFF2HDR(rp, offset); ep 653 drivers/usb/mon/mon_bin.c memset(ep, 0, PKT_SIZE); ep 654 drivers/usb/mon/mon_bin.c ep->type = 'E'; ep 655 drivers/usb/mon/mon_bin.c ep->xfer_type = xfer_to_pipe[usb_endpoint_type(&urb->ep->desc)]; ep 656 drivers/usb/mon/mon_bin.c ep->epnum = usb_urb_dir_in(urb) ? USB_DIR_IN : 0; ep 657 drivers/usb/mon/mon_bin.c ep->epnum |= usb_endpoint_num(&urb->ep->desc); ep 658 drivers/usb/mon/mon_bin.c ep->devnum = urb->dev->devnum; ep 659 drivers/usb/mon/mon_bin.c ep->busnum = urb->dev->bus->busnum; ep 660 drivers/usb/mon/mon_bin.c ep->id = (unsigned long) urb; ep 661 drivers/usb/mon/mon_bin.c ep->ts_sec = ts.tv_sec; ep 662 drivers/usb/mon/mon_bin.c ep->ts_usec = ts.tv_nsec / NSEC_PER_USEC; ep 663 drivers/usb/mon/mon_bin.c ep->status = error; ep 665 drivers/usb/mon/mon_bin.c ep->flag_setup = '-'; ep 666 drivers/usb/mon/mon_bin.c ep->flag_data = 'E'; ep 742 drivers/usb/mon/mon_bin.c struct mon_bin_hdr *ep; ep 754 drivers/usb/mon/mon_bin.c ep = MON_OFF2HDR(rp, rp->b_out); ep 756 drivers/usb/mon/mon_bin.c if (copy_to_user(hdr, ep, hdrbytes)) { ep 761 drivers/usb/mon/mon_bin.c step_len = min(ep->len_cap, nbytes); ep 770 drivers/usb/mon/mon_bin.c mon_buff_area_free(rp, PKT_SIZE + ep->len_cap); ep 806 drivers/usb/mon/mon_bin.c struct mon_bin_hdr *ep; ep 820 drivers/usb/mon/mon_bin.c ep = MON_OFF2HDR(rp, rp->b_out); ep 824 drivers/usb/mon/mon_bin.c ptr = ((char *)ep) + rp->b_read; ep 836 drivers/usb/mon/mon_bin.c step_len = ep->len_cap; ep 857 drivers/usb/mon/mon_bin.c if (rp->b_read >= hdrbytes + ep->len_cap) { ep 859 drivers/usb/mon/mon_bin.c mon_buff_area_free(rp, PKT_SIZE + ep->len_cap); ep 875 drivers/usb/mon/mon_bin.c struct mon_bin_hdr *ep; ep 884 drivers/usb/mon/mon_bin.c ep = MON_OFF2HDR(rp, rp->b_out); ep 885 drivers/usb/mon/mon_bin.c mon_buff_area_free(rp, PKT_SIZE + ep->len_cap); ep 905 drivers/usb/mon/mon_bin.c struct mon_bin_hdr *ep; ep 927 drivers/usb/mon/mon_bin.c ep = MON_OFF2HDR(rp, cur_out); ep 934 drivers/usb/mon/mon_bin.c size = ep->len_cap + PKT_SIZE; ep 955 drivers/usb/mon/mon_bin.c struct mon_bin_hdr *ep; ep 968 drivers/usb/mon/mon_bin.c ep = MON_OFF2HDR(rp, cur_out); ep 971 drivers/usb/mon/mon_bin.c size = ep->len_cap + PKT_SIZE; ep 989 drivers/usb/mon/mon_bin.c struct mon_bin_hdr *ep; ep 1000 drivers/usb/mon/mon_bin.c ep = MON_OFF2HDR(rp, rp->b_out); ep 1001 drivers/usb/mon/mon_bin.c ret = ep->len_cap; ep 108 drivers/usb/mon/mon_text.c struct mon_text_ptr *p, const struct mon_event_text *ep); ep 110 drivers/usb/mon/mon_text.c struct mon_text_ptr *p, const struct mon_event_text *ep); ep 112 drivers/usb/mon/mon_text.c struct mon_text_ptr *p, const struct mon_event_text *ep); ep 114 drivers/usb/mon/mon_text.c struct mon_text_ptr *p, const struct mon_event_text *ep); ep 116 drivers/usb/mon/mon_text.c struct mon_text_ptr *p, const struct mon_event_text *ep); ep 118 drivers/usb/mon/mon_text.c struct mon_text_ptr *p, const struct mon_event_text *ep); ep 120 drivers/usb/mon/mon_text.c struct mon_text_ptr *p, const struct mon_event_text *ep); ep 131 drivers/usb/mon/mon_text.c static inline char mon_text_get_setup(struct mon_event_text *ep, ep 135 drivers/usb/mon/mon_text.c if (ep->xfertype != USB_ENDPOINT_XFER_CONTROL || ev_type != 'S') ep 141 drivers/usb/mon/mon_text.c memcpy(ep->setup, urb->setup_packet, SETUP_MAX); ep 145 drivers/usb/mon/mon_text.c static inline char mon_text_get_data(struct mon_event_text *ep, struct urb *urb, ep 155 drivers/usb/mon/mon_text.c if (ep->is_in) { ep 178 drivers/usb/mon/mon_text.c memcpy(ep->data, src, len); ep 196 drivers/usb/mon/mon_text.c struct mon_event_text *ep; ep 205 drivers/usb/mon/mon_text.c (ep = kmem_cache_alloc(rp->e_slab, GFP_ATOMIC)) == NULL) { ep 210 drivers/usb/mon/mon_text.c ep->type = ev_type; ep 211 drivers/usb/mon/mon_text.c ep->id = (unsigned long) urb; ep 212 drivers/usb/mon/mon_text.c ep->busnum = urb->dev->bus->busnum; ep 213 drivers/usb/mon/mon_text.c ep->devnum = urb->dev->devnum; ep 214 drivers/usb/mon/mon_text.c ep->epnum = usb_endpoint_num(&urb->ep->desc); ep 215 drivers/usb/mon/mon_text.c ep->xfertype = usb_endpoint_type(&urb->ep->desc); ep 216 drivers/usb/mon/mon_text.c ep->is_in = usb_urb_dir_in(urb); ep 217 drivers/usb/mon/mon_text.c ep->tstamp = stamp; ep 218 drivers/usb/mon/mon_text.c ep->length = (ev_type == 'S') ? ep 221 drivers/usb/mon/mon_text.c ep->status = status; ep 223 drivers/usb/mon/mon_text.c if (ep->xfertype == USB_ENDPOINT_XFER_INT) { ep 224 drivers/usb/mon/mon_text.c ep->interval = urb->interval; ep 225 drivers/usb/mon/mon_text.c } else if (ep->xfertype == USB_ENDPOINT_XFER_ISOC) { ep 226 drivers/usb/mon/mon_text.c ep->interval = urb->interval; ep 227 drivers/usb/mon/mon_text.c ep->start_frame = urb->start_frame; ep 228 drivers/usb/mon/mon_text.c ep->error_count = urb->error_count; ep 230 drivers/usb/mon/mon_text.c ep->numdesc = urb->number_of_packets; ep 231 drivers/usb/mon/mon_text.c if (ep->xfertype == USB_ENDPOINT_XFER_ISOC && ep 236 drivers/usb/mon/mon_text.c dp = ep->isodesc; ep 247 drivers/usb/mon/mon_text.c ep->length = urb->transfer_buffer_length; ep 250 drivers/usb/mon/mon_text.c ep->setup_flag = mon_text_get_setup(ep, urb, ev_type, rp->r.m_bus); ep 251 drivers/usb/mon/mon_text.c ep->data_flag = mon_text_get_data(ep, urb, ep->length, ev_type, ep 255 drivers/usb/mon/mon_text.c list_add_tail(&ep->e_link, &rp->e_list); ep 274 drivers/usb/mon/mon_text.c struct mon_event_text *ep; ep 277 drivers/usb/mon/mon_text.c (ep = kmem_cache_alloc(rp->e_slab, GFP_ATOMIC)) == NULL) { ep 282 drivers/usb/mon/mon_text.c ep->type = 'E'; ep 283 drivers/usb/mon/mon_text.c ep->id = (unsigned long) urb; ep 284 drivers/usb/mon/mon_text.c ep->busnum = urb->dev->bus->busnum; ep 285 drivers/usb/mon/mon_text.c ep->devnum = urb->dev->devnum; ep 286 drivers/usb/mon/mon_text.c ep->epnum = usb_endpoint_num(&urb->ep->desc); ep 287 drivers/usb/mon/mon_text.c ep->xfertype = usb_endpoint_type(&urb->ep->desc); ep 288 drivers/usb/mon/mon_text.c ep->is_in = usb_urb_dir_in(urb); ep 289 drivers/usb/mon/mon_text.c ep->tstamp = mon_get_timestamp(); ep 290 drivers/usb/mon/mon_text.c ep->length = 0; ep 291 drivers/usb/mon/mon_text.c ep->status = error; ep 293 drivers/usb/mon/mon_text.c ep->setup_flag = '-'; ep 294 drivers/usb/mon/mon_text.c ep->data_flag = 'E'; ep 297 drivers/usb/mon/mon_text.c list_add_tail(&ep->e_link, &rp->e_list); ep 398 drivers/usb/mon/mon_text.c struct mon_event_text *ep; ep 406 drivers/usb/mon/mon_text.c ep = mon_text_read_wait(rp, file); ep 407 drivers/usb/mon/mon_text.c if (IS_ERR(ep)) { ep 409 drivers/usb/mon/mon_text.c return PTR_ERR(ep); ep 415 drivers/usb/mon/mon_text.c mon_text_read_head_t(rp, &ptr, ep); ep 416 drivers/usb/mon/mon_text.c mon_text_read_statset(rp, &ptr, ep); ep 418 drivers/usb/mon/mon_text.c " %d", ep->length); ep 419 drivers/usb/mon/mon_text.c mon_text_read_data(rp, &ptr, ep); ep 424 drivers/usb/mon/mon_text.c kmem_cache_free(rp->e_slab, ep); ep 437 drivers/usb/mon/mon_text.c struct mon_event_text *ep; ep 445 drivers/usb/mon/mon_text.c ep = mon_text_read_wait(rp, file); ep 446 drivers/usb/mon/mon_text.c if (IS_ERR(ep)) { ep 448 drivers/usb/mon/mon_text.c return PTR_ERR(ep); ep 454 drivers/usb/mon/mon_text.c mon_text_read_head_u(rp, &ptr, ep); ep 455 drivers/usb/mon/mon_text.c if (ep->type == 'E') { ep 456 drivers/usb/mon/mon_text.c mon_text_read_statset(rp, &ptr, ep); ep 457 drivers/usb/mon/mon_text.c } else if (ep->xfertype == USB_ENDPOINT_XFER_ISOC) { ep 458 drivers/usb/mon/mon_text.c mon_text_read_isostat(rp, &ptr, ep); ep 459 drivers/usb/mon/mon_text.c mon_text_read_isodesc(rp, &ptr, ep); ep 460 drivers/usb/mon/mon_text.c } else if (ep->xfertype == USB_ENDPOINT_XFER_INT) { ep 461 drivers/usb/mon/mon_text.c mon_text_read_intstat(rp, &ptr, ep); ep 463 drivers/usb/mon/mon_text.c mon_text_read_statset(rp, &ptr, ep); ep 466 drivers/usb/mon/mon_text.c " %d", ep->length); ep 467 drivers/usb/mon/mon_text.c mon_text_read_data(rp, &ptr, ep); ep 472 drivers/usb/mon/mon_text.c kmem_cache_free(rp->e_slab, ep); ep 485 drivers/usb/mon/mon_text.c struct mon_event_text *ep; ep 489 drivers/usb/mon/mon_text.c while ((ep = mon_text_fetch(rp, mbus)) == NULL) { ep 508 drivers/usb/mon/mon_text.c return ep; ep 512 drivers/usb/mon/mon_text.c struct mon_text_ptr *p, const struct mon_event_text *ep) ep 516 drivers/usb/mon/mon_text.c udir = (ep->is_in ? 'i' : 'o'); ep 517 drivers/usb/mon/mon_text.c switch (ep->xfertype) { ep 525 drivers/usb/mon/mon_text.c ep->id, ep->tstamp, ep->type, ep 526 drivers/usb/mon/mon_text.c utype, udir, ep->devnum, ep->epnum); ep 530 drivers/usb/mon/mon_text.c struct mon_text_ptr *p, const struct mon_event_text *ep) ep 534 drivers/usb/mon/mon_text.c udir = (ep->is_in ? 'i' : 'o'); ep 535 drivers/usb/mon/mon_text.c switch (ep->xfertype) { ep 543 drivers/usb/mon/mon_text.c ep->id, ep->tstamp, ep->type, ep 544 drivers/usb/mon/mon_text.c utype, udir, ep->busnum, ep->devnum, ep->epnum); ep 548 drivers/usb/mon/mon_text.c struct mon_text_ptr *p, const struct mon_event_text *ep) ep 551 drivers/usb/mon/mon_text.c if (ep->setup_flag == 0) { /* Setup packet is present and captured */ ep 554 drivers/usb/mon/mon_text.c ep->setup[0], ep 555 drivers/usb/mon/mon_text.c ep->setup[1], ep 556 drivers/usb/mon/mon_text.c (ep->setup[3] << 8) | ep->setup[2], ep 557 drivers/usb/mon/mon_text.c (ep->setup[5] << 8) | ep->setup[4], ep 558 drivers/usb/mon/mon_text.c (ep->setup[7] << 8) | ep->setup[6]); ep 559 drivers/usb/mon/mon_text.c } else if (ep->setup_flag != '-') { /* Unable to capture setup packet */ ep 561 drivers/usb/mon/mon_text.c " %c __ __ ____ ____ ____", ep->setup_flag); ep 564 drivers/usb/mon/mon_text.c " %d", ep->status); ep 569 drivers/usb/mon/mon_text.c struct mon_text_ptr *p, const struct mon_event_text *ep) ep 572 drivers/usb/mon/mon_text.c " %d:%d", ep->status, ep->interval); ep 576 drivers/usb/mon/mon_text.c struct mon_text_ptr *p, const struct mon_event_text *ep) ep 578 drivers/usb/mon/mon_text.c if (ep->type == 'S') { ep 580 drivers/usb/mon/mon_text.c " %d:%d:%d", ep->status, ep->interval, ep->start_frame); ep 584 drivers/usb/mon/mon_text.c ep->status, ep->interval, ep->start_frame, ep->error_count); ep 589 drivers/usb/mon/mon_text.c struct mon_text_ptr *p, const struct mon_event_text *ep) ep 596 drivers/usb/mon/mon_text.c " %d", ep->numdesc); ep 597 drivers/usb/mon/mon_text.c ndesc = ep->numdesc; ep 602 drivers/usb/mon/mon_text.c dp = ep->isodesc; ep 611 drivers/usb/mon/mon_text.c struct mon_text_ptr *p, const struct mon_event_text *ep) ep 615 drivers/usb/mon/mon_text.c if ((data_len = ep->length) > 0) { ep 616 drivers/usb/mon/mon_text.c if (ep->data_flag == 0) { ep 629 drivers/usb/mon/mon_text.c "%02x", ep->data[i]); ep 635 drivers/usb/mon/mon_text.c " %c\n", ep->data_flag); ep 648 drivers/usb/mon/mon_text.c struct mon_event_text *ep; ep 670 drivers/usb/mon/mon_text.c ep = list_entry(p, struct mon_event_text, e_link); ep 673 drivers/usb/mon/mon_text.c kmem_cache_free(rp->e_slab, ep); ep 277 drivers/usb/mtu3/mtu3.h struct usb_ep ep; ep 385 drivers/usb/mtu3/mtu3.h static inline struct mtu3_ep *to_mtu3_ep(struct usb_ep *ep) ep 387 drivers/usb/mtu3/mtu3.h return ep ? container_of(ep, struct mtu3_ep, ep) : NULL; ep 423 drivers/usb/mtu3/mtu3.h struct usb_request *mtu3_alloc_request(struct usb_ep *ep, gfp_t gfp_flags); ep 424 drivers/usb/mtu3/mtu3.h void mtu3_free_request(struct usb_ep *ep, struct usb_request *req); ep 40 drivers/usb/mtu3/mtu3_gadget.c usb_gadget_giveback_request(&mep->ep, &mreq->request); ep 113 drivers/usb/mtu3/mtu3_gadget.c mep->ep.maxpacket = mep->maxp; ep 114 drivers/usb/mtu3/mtu3_gadget.c mep->ep.desc = desc; ep 115 drivers/usb/mtu3/mtu3_gadget.c mep->ep.comp_desc = comp_desc; ep 147 drivers/usb/mtu3/mtu3_gadget.c mep->ep.desc = NULL; ep 155 drivers/usb/mtu3/mtu3_gadget.c static int mtu3_gadget_ep_enable(struct usb_ep *ep, ep 163 drivers/usb/mtu3/mtu3_gadget.c if (!ep || !desc || desc->bDescriptorType != USB_DT_ENDPOINT) { ep 172 drivers/usb/mtu3/mtu3_gadget.c mep = to_mtu3_ep(ep); ep 182 drivers/usb/mtu3/mtu3_gadget.c dev_dbg(mtu->dev, "%s %s\n", __func__, ep->name); ep 192 drivers/usb/mtu3/mtu3_gadget.c mep->comp_desc = ep->comp_desc; ep 212 drivers/usb/mtu3/mtu3_gadget.c static int mtu3_gadget_ep_disable(struct usb_ep *ep) ep 214 drivers/usb/mtu3/mtu3_gadget.c struct mtu3_ep *mep = to_mtu3_ep(ep); ep 238 drivers/usb/mtu3/mtu3_gadget.c struct usb_request *mtu3_alloc_request(struct usb_ep *ep, gfp_t gfp_flags) ep 240 drivers/usb/mtu3/mtu3_gadget.c struct mtu3_ep *mep = to_mtu3_ep(ep); ep 255 drivers/usb/mtu3/mtu3_gadget.c void mtu3_free_request(struct usb_ep *ep, struct usb_request *req) ep 263 drivers/usb/mtu3/mtu3_gadget.c static int mtu3_gadget_queue(struct usb_ep *ep, ep 272 drivers/usb/mtu3/mtu3_gadget.c if (!ep || !req) ep 278 drivers/usb/mtu3/mtu3_gadget.c mep = to_mtu3_ep(ep); ep 287 drivers/usb/mtu3/mtu3_gadget.c __func__, mep->is_in ? "TX" : "RX", mreq->epnum, ep->name, ep 288 drivers/usb/mtu3/mtu3_gadget.c mreq, ep->maxpacket, mreq->request.length); ep 302 drivers/usb/mtu3/mtu3_gadget.c req, ep->name); ep 333 drivers/usb/mtu3/mtu3_gadget.c static int mtu3_gadget_dequeue(struct usb_ep *ep, struct usb_request *req) ep 335 drivers/usb/mtu3/mtu3_gadget.c struct mtu3_ep *mep = to_mtu3_ep(ep); ep 342 drivers/usb/mtu3/mtu3_gadget.c if (!ep || !req || mreq->mep != mep) ep 355 drivers/usb/mtu3/mtu3_gadget.c dev_dbg(mtu->dev, "req=%p not queued to %s\n", req, ep->name); ep 374 drivers/usb/mtu3/mtu3_gadget.c static int mtu3_gadget_ep_set_halt(struct usb_ep *ep, int value) ep 376 drivers/usb/mtu3/mtu3_gadget.c struct mtu3_ep *mep = to_mtu3_ep(ep); ep 382 drivers/usb/mtu3/mtu3_gadget.c if (!ep) ep 385 drivers/usb/mtu3/mtu3_gadget.c dev_dbg(mtu->dev, "%s : %s...", __func__, ep->name); ep 403 drivers/usb/mtu3/mtu3_gadget.c ep->name); ep 411 drivers/usb/mtu3/mtu3_gadget.c dev_dbg(mtu->dev, "%s %s stall\n", ep->name, value ? "set" : "clear"); ep 423 drivers/usb/mtu3/mtu3_gadget.c static int mtu3_gadget_ep_set_wedge(struct usb_ep *ep) ep 425 drivers/usb/mtu3/mtu3_gadget.c struct mtu3_ep *mep = to_mtu3_ep(ep); ep 427 drivers/usb/mtu3/mtu3_gadget.c if (!ep) ep 432 drivers/usb/mtu3/mtu3_gadget.c return usb_ep_set_halt(ep); ep 625 drivers/usb/mtu3/mtu3_gadget.c mep->ep.name = mep->name; ep 626 drivers/usb/mtu3/mtu3_gadget.c INIT_LIST_HEAD(&mep->ep.ep_list); ep 630 drivers/usb/mtu3/mtu3_gadget.c usb_ep_set_maxpacket_limit(&mep->ep, 512); ep 631 drivers/usb/mtu3/mtu3_gadget.c mep->ep.caps.type_control = true; ep 632 drivers/usb/mtu3/mtu3_gadget.c mep->ep.ops = &mtu3_ep0_ops; ep 633 drivers/usb/mtu3/mtu3_gadget.c mtu->g.ep0 = &mep->ep; ep 635 drivers/usb/mtu3/mtu3_gadget.c usb_ep_set_maxpacket_limit(&mep->ep, 1024); ep 636 drivers/usb/mtu3/mtu3_gadget.c mep->ep.caps.type_iso = true; ep 637 drivers/usb/mtu3/mtu3_gadget.c mep->ep.caps.type_bulk = true; ep 638 drivers/usb/mtu3/mtu3_gadget.c mep->ep.caps.type_int = true; ep 639 drivers/usb/mtu3/mtu3_gadget.c mep->ep.ops = &mtu3_ep_ops; ep 640 drivers/usb/mtu3/mtu3_gadget.c list_add_tail(&mep->ep.ep_list, &mtu->g.ep_list); ep 643 drivers/usb/mtu3/mtu3_gadget.c dev_dbg(mtu->dev, "%s, name=%s, maxp=%d\n", __func__, mep->ep.name, ep 644 drivers/usb/mtu3/mtu3_gadget.c mep->ep.maxpacket); ep 647 drivers/usb/mtu3/mtu3_gadget.c mep->ep.caps.dir_in = true; ep 648 drivers/usb/mtu3/mtu3_gadget.c mep->ep.caps.dir_out = true; ep 650 drivers/usb/mtu3/mtu3_gadget.c mep->ep.caps.dir_in = true; ep 652 drivers/usb/mtu3/mtu3_gadget.c mep->ep.caps.dir_out = true; ep 158 drivers/usb/mtu3/mtu3_gadget_ep0.c static void ep0_dummy_complete(struct usb_ep *ep, struct usb_request *req) ep 161 drivers/usb/mtu3/mtu3_gadget_ep0.c static void ep0_set_sel_complete(struct usb_ep *ep, struct usb_request *req) ep 769 drivers/usb/mtu3/mtu3_gadget_ep0.c static int mtu3_ep0_enable(struct usb_ep *ep, ep 776 drivers/usb/mtu3/mtu3_gadget_ep0.c static int mtu3_ep0_disable(struct usb_ep *ep) ep 827 drivers/usb/mtu3/mtu3_gadget_ep0.c static int mtu3_ep0_queue(struct usb_ep *ep, ep 836 drivers/usb/mtu3/mtu3_gadget_ep0.c if (!ep || !req) ep 839 drivers/usb/mtu3/mtu3_gadget_ep0.c mep = to_mtu3_ep(ep); ep 849 drivers/usb/mtu3/mtu3_gadget_ep0.c static int mtu3_ep0_dequeue(struct usb_ep *ep, struct usb_request *req) ep 855 drivers/usb/mtu3/mtu3_gadget_ep0.c static int mtu3_ep0_halt(struct usb_ep *ep, int value) ep 862 drivers/usb/mtu3/mtu3_gadget_ep0.c if (!ep || !value) ep 865 drivers/usb/mtu3/mtu3_gadget_ep0.c mep = to_mtu3_ep(ep); ep 234 drivers/usb/mtu3/mtu3_trace.h __entry->maxp = mep->ep.maxpacket; ep 235 drivers/usb/mtu3/mtu3_trace.h __entry->mult = mep->ep.mult; ep 236 drivers/usb/mtu3/mtu3_trace.h __entry->maxburst = mep->ep.maxburst; ep 282 drivers/usb/musb/cppi_dma.c struct musb_hw_ep *ep, u8 transmit) ep 295 drivers/usb/musb/cppi_dma.c index = ep->epnum - 1; ep 312 drivers/usb/musb/cppi_dma.c core_rxirq_disable(tibase, ep->epnum); ep 321 drivers/usb/musb/cppi_dma.c cppi_ch->hw_ep = ep; ep 977 drivers/usb/musb/musb_core.c struct musb_hw_ep *ep; ep 986 drivers/usb/musb/musb_core.c ep = musb->endpoints; ep 989 drivers/usb/musb/musb_core.c epnum++, ep++) { ep 994 drivers/usb/musb/musb_core.c if (ep->dwWaitFrame >= frame) { ep 995 drivers/usb/musb/musb_core.c ep->dwWaitFrame = 0; ep 997 drivers/usb/musb/musb_core.c ep->tx_channel ? " DMA" : "", ep 999 drivers/usb/musb/musb_core.c if (!ep->tx_channel) ep 1998 drivers/usb/musb/musb_core.c struct musb_hw_ep *ep; ep 2018 drivers/usb/musb/musb_core.c for (epnum = 0, ep = musb->endpoints; ep 2020 drivers/usb/musb/musb_core.c epnum++, ep++) { ep 2021 drivers/usb/musb/musb_core.c ep->musb = musb; ep 2022 drivers/usb/musb/musb_core.c ep->epnum = epnum; ep 487 drivers/usb/musb/musb_core.h extern void musb_write_fifo(struct musb_hw_ep *ep, u16 len, const u8 *src); ep 488 drivers/usb/musb/musb_core.h extern void musb_read_fifo(struct musb_hw_ep *ep, u16 len, u8 *dst); ep 329 drivers/usb/musb/musb_cppi41.c static u32 update_ep_mode(unsigned ep, unsigned mode, u32 old) ep 333 drivers/usb/musb/musb_cppi41.c shift = (ep - 1) * 2; ep 86 drivers/usb/musb/musb_gadget.c struct musb_ep *musb_ep = request->ep; ep 123 drivers/usb/musb/musb_gadget.c struct musb_ep *ep, ep 126 drivers/usb/musb/musb_gadget.c __releases(ep->musb->lock) ep 127 drivers/usb/musb/musb_gadget.c __acquires(ep->musb->lock) ep 131 drivers/usb/musb/musb_gadget.c int busy = ep->busy; ep 140 drivers/usb/musb/musb_gadget.c ep->busy = 1; ep 147 drivers/usb/musb/musb_gadget.c usb_gadget_giveback_request(&req->ep->end_point, &req->request); ep 149 drivers/usb/musb/musb_gadget.c ep->busy = busy; ep 158 drivers/usb/musb/musb_gadget.c static void nuke(struct musb_ep *ep, const int status) ep 160 drivers/usb/musb/musb_gadget.c struct musb *musb = ep->musb; ep 162 drivers/usb/musb/musb_gadget.c void __iomem *epio = ep->musb->endpoints[ep->current_epnum].regs; ep 164 drivers/usb/musb/musb_gadget.c ep->busy = 1; ep 166 drivers/usb/musb/musb_gadget.c if (is_dma_capable() && ep->dma) { ep 167 drivers/usb/musb/musb_gadget.c struct dma_controller *c = ep->musb->dma_controller; ep 170 drivers/usb/musb/musb_gadget.c if (ep->is_in) { ep 187 drivers/usb/musb/musb_gadget.c value = c->channel_abort(ep->dma); ep 188 drivers/usb/musb/musb_gadget.c musb_dbg(musb, "%s: abort DMA --> %d", ep->name, value); ep 189 drivers/usb/musb/musb_gadget.c c->channel_release(ep->dma); ep 190 drivers/usb/musb/musb_gadget.c ep->dma = NULL; ep 193 drivers/usb/musb/musb_gadget.c while (!list_empty(&ep->req_list)) { ep 194 drivers/usb/musb/musb_gadget.c req = list_first_entry(&ep->req_list, struct musb_request, list); ep 195 drivers/usb/musb/musb_gadget.c musb_g_giveback(ep, &req->request, status); ep 208 drivers/usb/musb/musb_gadget.c static inline int max_ep_writesize(struct musb *musb, struct musb_ep *ep) ep 210 drivers/usb/musb/musb_gadget.c if (can_bulk_split(musb, ep->type)) ep 211 drivers/usb/musb/musb_gadget.c return ep->hw_ep->max_packet_sz_tx; ep 213 drivers/usb/musb/musb_gadget.c return ep->packet_sz; ep 232 drivers/usb/musb/musb_gadget.c musb_ep = req->ep; ep 905 drivers/usb/musb/musb_gadget.c static int musb_gadget_enable(struct usb_ep *ep, ep 919 drivers/usb/musb/musb_gadget.c if (!ep || !desc) ep 922 drivers/usb/musb/musb_gadget.c musb_ep = to_musb_ep(ep); ep 1081 drivers/usb/musb/musb_gadget.c static int musb_gadget_disable(struct usb_ep *ep) ep 1090 drivers/usb/musb/musb_gadget.c musb_ep = to_musb_ep(ep); ep 1128 drivers/usb/musb/musb_gadget.c struct usb_request *musb_alloc_request(struct usb_ep *ep, gfp_t gfp_flags) ep 1130 drivers/usb/musb/musb_gadget.c struct musb_ep *musb_ep = to_musb_ep(ep); ep 1139 drivers/usb/musb/musb_gadget.c request->ep = musb_ep; ep 1149 drivers/usb/musb/musb_gadget.c void musb_free_request(struct usb_ep *ep, struct usb_request *req) ep 1188 drivers/usb/musb/musb_gadget.c static int musb_gadget_queue(struct usb_ep *ep, struct usb_request *req, ep 1197 drivers/usb/musb/musb_gadget.c if (!ep || !req) ep 1202 drivers/usb/musb/musb_gadget.c musb_ep = to_musb_ep(ep); ep 1208 drivers/usb/musb/musb_gadget.c if (request->ep != musb_ep) ep 1237 drivers/usb/musb/musb_gadget.c req, ep->name, "disabled"); ep 1264 drivers/usb/musb/musb_gadget.c static int musb_gadget_dequeue(struct usb_ep *ep, struct usb_request *request) ep 1266 drivers/usb/musb/musb_gadget.c struct musb_ep *musb_ep = to_musb_ep(ep); ep 1273 drivers/usb/musb/musb_gadget.c if (!ep || !request || req->ep != musb_ep) ep 1286 drivers/usb/musb/musb_gadget.c request, ep->name); ep 1324 drivers/usb/musb/musb_gadget.c static int musb_gadget_set_halt(struct usb_ep *ep, int value) ep 1326 drivers/usb/musb/musb_gadget.c struct musb_ep *musb_ep = to_musb_ep(ep); ep 1336 drivers/usb/musb/musb_gadget.c if (!ep) ep 1353 drivers/usb/musb/musb_gadget.c ep->name); ep 1362 drivers/usb/musb/musb_gadget.c ep->name); ep 1371 drivers/usb/musb/musb_gadget.c musb_dbg(musb, "%s: %s stall", ep->name, value ? "set" : "clear"); ep 1410 drivers/usb/musb/musb_gadget.c static int musb_gadget_set_wedge(struct usb_ep *ep) ep 1412 drivers/usb/musb/musb_gadget.c struct musb_ep *musb_ep = to_musb_ep(ep); ep 1414 drivers/usb/musb/musb_gadget.c if (!ep) ep 1419 drivers/usb/musb/musb_gadget.c return usb_ep_set_halt(ep); ep 1422 drivers/usb/musb/musb_gadget.c static int musb_gadget_fifo_status(struct usb_ep *ep) ep 1424 drivers/usb/musb/musb_gadget.c struct musb_ep *musb_ep = to_musb_ep(ep); ep 1445 drivers/usb/musb/musb_gadget.c static void musb_gadget_fifo_flush(struct usb_ep *ep) ep 1447 drivers/usb/musb/musb_gadget.c struct musb_ep *musb_ep = to_musb_ep(ep); ep 1691 drivers/usb/musb/musb_gadget.c init_peripheral_ep(struct musb *musb, struct musb_ep *ep, u8 epnum, int is_in) ep 1695 drivers/usb/musb/musb_gadget.c memset(ep, 0, sizeof *ep); ep 1697 drivers/usb/musb/musb_gadget.c ep->current_epnum = epnum; ep 1698 drivers/usb/musb/musb_gadget.c ep->musb = musb; ep 1699 drivers/usb/musb/musb_gadget.c ep->hw_ep = hw_ep; ep 1700 drivers/usb/musb/musb_gadget.c ep->is_in = is_in; ep 1702 drivers/usb/musb/musb_gadget.c INIT_LIST_HEAD(&ep->req_list); ep 1704 drivers/usb/musb/musb_gadget.c sprintf(ep->name, "ep%d%s", epnum, ep 1707 drivers/usb/musb/musb_gadget.c ep->end_point.name = ep->name; ep 1708 drivers/usb/musb/musb_gadget.c INIT_LIST_HEAD(&ep->end_point.ep_list); ep 1710 drivers/usb/musb/musb_gadget.c usb_ep_set_maxpacket_limit(&ep->end_point, 64); ep 1711 drivers/usb/musb/musb_gadget.c ep->end_point.caps.type_control = true; ep 1712 drivers/usb/musb/musb_gadget.c ep->end_point.ops = &musb_g_ep0_ops; ep 1713 drivers/usb/musb/musb_gadget.c musb->g.ep0 = &ep->end_point; ep 1716 drivers/usb/musb/musb_gadget.c usb_ep_set_maxpacket_limit(&ep->end_point, hw_ep->max_packet_sz_tx); ep 1718 drivers/usb/musb/musb_gadget.c usb_ep_set_maxpacket_limit(&ep->end_point, hw_ep->max_packet_sz_rx); ep 1719 drivers/usb/musb/musb_gadget.c ep->end_point.caps.type_iso = true; ep 1720 drivers/usb/musb/musb_gadget.c ep->end_point.caps.type_bulk = true; ep 1721 drivers/usb/musb/musb_gadget.c ep->end_point.caps.type_int = true; ep 1722 drivers/usb/musb/musb_gadget.c ep->end_point.ops = &musb_ep_ops; ep 1723 drivers/usb/musb/musb_gadget.c list_add_tail(&ep->end_point.ep_list, &musb->g.ep_list); ep 1727 drivers/usb/musb/musb_gadget.c ep->end_point.caps.dir_in = true; ep 1728 drivers/usb/musb/musb_gadget.c ep->end_point.caps.dir_out = true; ep 1730 drivers/usb/musb/musb_gadget.c ep->end_point.caps.dir_in = true; ep 1732 drivers/usb/musb/musb_gadget.c ep->end_point.caps.dir_out = true; ep 56 drivers/usb/musb/musb_gadget.h struct musb_ep *ep; ep 66 drivers/usb/musb/musb_gadget.h musb_alloc_request(struct usb_ep *ep, gfp_t gfp_flags); ep 67 drivers/usb/musb/musb_gadget.h extern void musb_free_request(struct usb_ep *ep, struct usb_request *req); ep 99 drivers/usb/musb/musb_gadget.h #define to_musb_ep(ep) container_of((ep), struct musb_ep, end_point) ep 101 drivers/usb/musb/musb_gadget.h static inline struct musb_request *next_request(struct musb_ep *ep) ep 103 drivers/usb/musb/musb_gadget.h struct list_head *queue = &ep->req_list; ep 81 drivers/usb/musb/musb_gadget_ep0.c struct musb_ep *ep; ep 99 drivers/usb/musb/musb_gadget_ep0.c ep = &musb->endpoints[epnum].ep_in; ep 101 drivers/usb/musb/musb_gadget_ep0.c ep = &musb->endpoints[epnum].ep_out; ep 104 drivers/usb/musb/musb_gadget_ep0.c if (!ep->desc) { ep 239 drivers/usb/musb/musb_gadget_ep0.c struct musb_hw_ep *ep; ep 249 drivers/usb/musb/musb_gadget_ep0.c ep = musb->endpoints + epnum; ep 250 drivers/usb/musb/musb_gadget_ep0.c regs = ep->regs; ep 253 drivers/usb/musb/musb_gadget_ep0.c musb_ep = &ep->ep_in; ep 255 drivers/usb/musb/musb_gadget_ep0.c musb_ep = &ep->ep_out; ep 404 drivers/usb/musb/musb_gadget_ep0.c struct musb_hw_ep *ep; ep 413 drivers/usb/musb/musb_gadget_ep0.c ep = musb->endpoints + epnum; ep 414 drivers/usb/musb/musb_gadget_ep0.c regs = ep->regs; ep 417 drivers/usb/musb/musb_gadget_ep0.c musb_ep = &ep->ep_in; ep 419 drivers/usb/musb/musb_gadget_ep0.c musb_ep = &ep->ep_out; ep 894 drivers/usb/musb/musb_gadget_ep0.c musb_g_ep0_enable(struct usb_ep *ep, const struct usb_endpoint_descriptor *desc) ep 909 drivers/usb/musb/musb_gadget_ep0.c struct musb_ep *ep; ep 919 drivers/usb/musb/musb_gadget_ep0.c ep = to_musb_ep(e); ep 920 drivers/usb/musb/musb_gadget_ep0.c musb = ep->musb; ep 927 drivers/usb/musb/musb_gadget_ep0.c req->tx = ep->is_in; ep 931 drivers/usb/musb/musb_gadget_ep0.c if (!list_empty(&ep->req_list)) { ep 950 drivers/usb/musb/musb_gadget_ep0.c list_add_tail(&req->list, &ep->req_list); ep 953 drivers/usb/musb/musb_gadget_ep0.c ep->name, ep->is_in ? "IN/TX" : "OUT/RX", ep 971 drivers/usb/musb/musb_gadget_ep0.c musb_g_ep0_giveback(ep->musb, r); ep 988 drivers/usb/musb/musb_gadget_ep0.c static int musb_g_ep0_dequeue(struct usb_ep *ep, struct usb_request *req) ep 996 drivers/usb/musb/musb_gadget_ep0.c struct musb_ep *ep; ep 1006 drivers/usb/musb/musb_gadget_ep0.c ep = to_musb_ep(e); ep 1007 drivers/usb/musb/musb_gadget_ep0.c musb = ep->musb; ep 1014 drivers/usb/musb/musb_gadget_ep0.c if (!list_empty(&ep->req_list)) { ep 86 drivers/usb/musb/musb_host.c static void musb_h_tx_flush_fifo(struct musb_hw_ep *ep) ep 88 drivers/usb/musb/musb_host.c struct musb *musb = ep->musb; ep 89 drivers/usb/musb/musb_host.c void __iomem *epio = ep->regs; ep 115 drivers/usb/musb/musb_host.c ep->epnum, csr)) ep 121 drivers/usb/musb/musb_host.c static void musb_h_ep0_flush_fifo(struct musb_hw_ep *ep) ep 123 drivers/usb/musb/musb_host.c void __iomem *epio = ep->regs; ep 138 drivers/usb/musb/musb_host.c ep->epnum, csr); ep 148 drivers/usb/musb/musb_host.c static inline void musb_h_tx_start(struct musb_hw_ep *ep) ep 153 drivers/usb/musb/musb_host.c if (ep->epnum) { ep 154 drivers/usb/musb/musb_host.c txcsr = musb_readw(ep->regs, MUSB_TXCSR); ep 156 drivers/usb/musb/musb_host.c musb_writew(ep->regs, MUSB_TXCSR, txcsr); ep 159 drivers/usb/musb/musb_host.c musb_writew(ep->regs, MUSB_CSR0, txcsr); ep 164 drivers/usb/musb/musb_host.c static inline void musb_h_tx_dma_start(struct musb_hw_ep *ep) ep 169 drivers/usb/musb/musb_host.c txcsr = musb_readw(ep->regs, MUSB_TXCSR); ep 171 drivers/usb/musb/musb_host.c if (is_cppi_enabled(ep->musb)) ep 173 drivers/usb/musb/musb_host.c musb_writew(ep->regs, MUSB_TXCSR, txcsr); ep 176 drivers/usb/musb/musb_host.c static void musb_ep_set_qh(struct musb_hw_ep *ep, int is_in, struct musb_qh *qh) ep 178 drivers/usb/musb/musb_host.c if (is_in != 0 || ep->is_shared_fifo) ep 179 drivers/usb/musb/musb_host.c ep->in_qh = qh; ep 180 drivers/usb/musb/musb_host.c if (is_in == 0 || ep->is_shared_fifo) ep 181 drivers/usb/musb/musb_host.c ep->out_qh = qh; ep 184 drivers/usb/musb/musb_host.c static struct musb_qh *musb_ep_get_qh(struct musb_hw_ep *ep, int is_in) ep 186 drivers/usb/musb/musb_host.c return is_in ? ep->in_qh : ep->out_qh; ep 320 drivers/usb/musb/musb_host.c struct musb_hw_ep *ep = qh->hw_ep; ep 350 drivers/usb/musb/musb_host.c ep->rx_reinit = 1; ep 351 drivers/usb/musb/musb_host.c if (ep->rx_channel) { ep 352 drivers/usb/musb/musb_host.c dma->channel_release(ep->rx_channel); ep 353 drivers/usb/musb/musb_host.c ep->rx_channel = NULL; ep 356 drivers/usb/musb/musb_host.c ep->tx_reinit = 1; ep 357 drivers/usb/musb/musb_host.c if (ep->tx_channel) { ep 358 drivers/usb/musb/musb_host.c dma->channel_release(ep->tx_channel); ep 359 drivers/usb/musb/musb_host.c ep->tx_channel = NULL; ep 364 drivers/usb/musb/musb_host.c musb_ep_set_qh(ep, is_in, NULL); ep 528 drivers/usb/musb/musb_host.c struct musb_hw_ep *ep = musb->endpoints + epnum; ep 537 drivers/usb/musb/musb_host.c if (ep->is_shared_fifo) { ep 538 drivers/usb/musb/musb_host.c csr = musb_readw(ep->regs, MUSB_TXCSR); ep 540 drivers/usb/musb/musb_host.c musb_h_tx_flush_fifo(ep); ep 541 drivers/usb/musb/musb_host.c csr = musb_readw(ep->regs, MUSB_TXCSR); ep 542 drivers/usb/musb/musb_host.c musb_writew(ep->regs, MUSB_TXCSR, ep 551 drivers/usb/musb/musb_host.c musb_writew(ep->regs, MUSB_TXCSR, MUSB_TXCSR_DMAMODE); ep 552 drivers/usb/musb/musb_host.c musb_writew(ep->regs, MUSB_TXCSR, 0); ep 556 drivers/usb/musb/musb_host.c csr = musb_readw(ep->regs, MUSB_RXCSR); ep 558 drivers/usb/musb/musb_host.c WARNING("rx%d, packet/%d ready?\n", ep->epnum, ep 559 drivers/usb/musb/musb_host.c musb_readw(ep->regs, MUSB_RXCOUNT)); ep 561 drivers/usb/musb/musb_host.c musb_h_flush_rxfifo(ep, MUSB_RXCSR_CLRDATATOG); ep 572 drivers/usb/musb/musb_host.c musb_writeb(ep->regs, MUSB_RXTYPE, qh->type_reg); ep 573 drivers/usb/musb/musb_host.c musb_writeb(ep->regs, MUSB_RXINTERVAL, qh->intv_reg); ep 578 drivers/usb/musb/musb_host.c musb_writew(ep->regs, MUSB_RXMAXP, ep 581 drivers/usb/musb/musb_host.c ep->rx_reinit = 0; ep 927 drivers/usb/musb/musb_host.c static void musb_bulk_nak_timeout(struct musb *musb, struct musb_hw_ep *ep, ep 933 drivers/usb/musb/musb_host.c void __iomem *epio = ep->regs; ep 937 drivers/usb/musb/musb_host.c musb_ep_select(mbase, ep->epnum); ep 939 drivers/usb/musb/musb_host.c dma = is_dma_capable() ? ep->rx_channel : NULL; ep 955 drivers/usb/musb/musb_host.c dma = is_dma_capable() ? ep->tx_channel : NULL; ep 983 drivers/usb/musb/musb_host.c ep->rx_reinit = 1; ep 992 drivers/usb/musb/musb_host.c ep->tx_reinit = 1; ep 2140 drivers/usb/musb/musb_host.c struct usb_host_endpoint *hep = urb->ep; ep 2330 drivers/usb/musb/musb_host.c struct musb_hw_ep *ep = qh->hw_ep; ep 2331 drivers/usb/musb/musb_host.c struct musb *musb = ep->musb; ep 2332 drivers/usb/musb/musb_host.c void __iomem *epio = ep->regs; ep 2333 drivers/usb/musb/musb_host.c unsigned hw_end = ep->epnum; ep 2334 drivers/usb/musb/musb_host.c void __iomem *regs = ep->musb->mregs; ep 2343 drivers/usb/musb/musb_host.c dma = is_in ? ep->rx_channel : ep->tx_channel; ep 2345 drivers/usb/musb/musb_host.c status = ep->musb->dma_controller->channel_abort(dma); ep 2347 drivers/usb/musb/musb_host.c is_in ? 'R' : 'T', ep->epnum, ep 2354 drivers/usb/musb/musb_host.c if (ep->epnum && is_in) { ep 2356 drivers/usb/musb/musb_host.c csr = musb_h_flush_rxfifo(ep, 0); ep 2360 drivers/usb/musb/musb_host.c musb_platform_clear_ep_rxintr(musb, ep->epnum); ep 2361 drivers/usb/musb/musb_host.c } else if (ep->epnum) { ep 2362 drivers/usb/musb/musb_host.c musb_h_tx_flush_fifo(ep); ep 2376 drivers/usb/musb/musb_host.c musb_h_ep0_flush_fifo(ep); ep 2379 drivers/usb/musb/musb_host.c musb_advance_schedule(ep->musb, urb, ep, is_in); ep 201 drivers/usb/musb/tusb6010.h #define TUSB_EP_FIFO(ep) (TUSB_FIFO_BASE + (ep) * 0x20) ep 30 drivers/usb/renesas_usbhs/mod_gadget.c struct usb_ep ep; ep 93 drivers/usb/renesas_usbhs/mod_gadget.c #define usbhsg_ep_to_uep(e) container_of(e, struct usbhsg_uep, ep) ep 132 drivers/usb/renesas_usbhs/mod_gadget.c usb_gadget_giveback_request(&uep->ep, &ureq->req); ep 301 drivers/usb/renesas_usbhs/mod_gadget.c static void __usbhsg_recip_send_complete(struct usb_ep *ep, ep 308 drivers/usb/renesas_usbhs/mod_gadget.c usb_ep_free_request(ep, req); ep 321 drivers/usb/renesas_usbhs/mod_gadget.c req = usb_ep_alloc_request(&dcp->ep, GFP_ATOMIC); ep 330 drivers/usb/renesas_usbhs/mod_gadget.c usb_ep_free_request(&dcp->ep, req); ep 579 drivers/usb/renesas_usbhs/mod_gadget.c static int usbhsg_ep_enable(struct usb_ep *ep, ep 582 drivers/usb/renesas_usbhs/mod_gadget.c struct usbhsg_uep *uep = usbhsg_ep_to_uep(ep); ep 636 drivers/usb/renesas_usbhs/mod_gadget.c static int usbhsg_ep_disable(struct usb_ep *ep) ep 638 drivers/usb/renesas_usbhs/mod_gadget.c struct usbhsg_uep *uep = usbhsg_ep_to_uep(ep); ep 659 drivers/usb/renesas_usbhs/mod_gadget.c static struct usb_request *usbhsg_ep_alloc_request(struct usb_ep *ep, ep 673 drivers/usb/renesas_usbhs/mod_gadget.c static void usbhsg_ep_free_request(struct usb_ep *ep, ep 682 drivers/usb/renesas_usbhs/mod_gadget.c static int usbhsg_ep_queue(struct usb_ep *ep, struct usb_request *req, ep 685 drivers/usb/renesas_usbhs/mod_gadget.c struct usbhsg_uep *uep = usbhsg_ep_to_uep(ep); ep 701 drivers/usb/renesas_usbhs/mod_gadget.c static int usbhsg_ep_dequeue(struct usb_ep *ep, struct usb_request *req) ep 703 drivers/usb/renesas_usbhs/mod_gadget.c struct usbhsg_uep *uep = usbhsg_ep_to_uep(ep); ep 723 drivers/usb/renesas_usbhs/mod_gadget.c static int __usbhsg_ep_set_halt_wedge(struct usb_ep *ep, int halt, int wedge) ep 725 drivers/usb/renesas_usbhs/mod_gadget.c struct usbhsg_uep *uep = usbhsg_ep_to_uep(ep); ep 768 drivers/usb/renesas_usbhs/mod_gadget.c static int usbhsg_ep_set_halt(struct usb_ep *ep, int value) ep 770 drivers/usb/renesas_usbhs/mod_gadget.c return __usbhsg_ep_set_halt_wedge(ep, value, 0); ep 773 drivers/usb/renesas_usbhs/mod_gadget.c static int usbhsg_ep_set_wedge(struct usb_ep *ep) ep 775 drivers/usb/renesas_usbhs/mod_gadget.c return __usbhsg_ep_set_halt_wedge(ep, 1, 1); ep 914 drivers/usb/renesas_usbhs/mod_gadget.c usbhsg_ep_disable(&uep->ep); ep 1142 drivers/usb/renesas_usbhs/mod_gadget.c uep->ep.name = uep->ep_name; ep 1143 drivers/usb/renesas_usbhs/mod_gadget.c uep->ep.ops = &usbhsg_ep_ops; ep 1144 drivers/usb/renesas_usbhs/mod_gadget.c INIT_LIST_HEAD(&uep->ep.ep_list); ep 1149 drivers/usb/renesas_usbhs/mod_gadget.c gpriv->gadget.ep0 = &uep->ep; ep 1150 drivers/usb/renesas_usbhs/mod_gadget.c usb_ep_set_maxpacket_limit(&uep->ep, 64); ep 1151 drivers/usb/renesas_usbhs/mod_gadget.c uep->ep.caps.type_control = true; ep 1155 drivers/usb/renesas_usbhs/mod_gadget.c uep->ep.caps.type_iso = true; ep 1157 drivers/usb/renesas_usbhs/mod_gadget.c uep->ep.caps.type_bulk = true; ep 1159 drivers/usb/renesas_usbhs/mod_gadget.c uep->ep.caps.type_int = true; ep 1160 drivers/usb/renesas_usbhs/mod_gadget.c usb_ep_set_maxpacket_limit(&uep->ep, ep 1162 drivers/usb/renesas_usbhs/mod_gadget.c list_add_tail(&uep->ep.ep_list, &gpriv->gadget.ep_list); ep 1164 drivers/usb/renesas_usbhs/mod_gadget.c uep->ep.caps.dir_in = true; ep 1165 drivers/usb/renesas_usbhs/mod_gadget.c uep->ep.caps.dir_out = true; ep 77 drivers/usb/renesas_usbhs/mod_host.c struct usb_host_endpoint *ep; ep 126 drivers/usb/renesas_usbhs/mod_host.c #define usbhsh_uep_to_ep(u) ((u)->ep) ep 204 drivers/usb/renesas_usbhs/mod_host.c int maxp = usb_endpoint_maxp(&urb->ep->desc); ep 248 drivers/usb/renesas_usbhs/mod_host.c struct usbhsh_ep *uep = usbhsh_ep_to_uep(urb->ep); ep 251 drivers/usb/renesas_usbhs/mod_host.c struct usb_endpoint_descriptor *desc = &urb->ep->desc; ep 345 drivers/usb/renesas_usbhs/mod_host.c struct usb_host_endpoint *ep = usbhsh_uep_to_ep(uep); ep 354 drivers/usb/renesas_usbhs/mod_host.c usb_endpoint_num(&ep->desc), ep 371 drivers/usb/renesas_usbhs/mod_host.c struct usb_host_endpoint *ep = urb->ep; ep 374 drivers/usb/renesas_usbhs/mod_host.c struct usb_endpoint_descriptor *desc = &ep->desc; ep 392 drivers/usb/renesas_usbhs/mod_host.c usbhsh_uep_to_ep(uep) = ep; ep 393 drivers/usb/renesas_usbhs/mod_host.c usbhsh_ep_to_uep(ep) = uep; ep 406 drivers/usb/renesas_usbhs/mod_host.c struct usb_host_endpoint *ep) ep 410 drivers/usb/renesas_usbhs/mod_host.c struct usbhsh_ep *uep = usbhsh_ep_to_uep(ep); ep 418 drivers/usb/renesas_usbhs/mod_host.c usb_endpoint_num(&ep->desc)); ep 431 drivers/usb/renesas_usbhs/mod_host.c usbhsh_ep_to_uep(ep) = NULL; ep 653 drivers/usb/renesas_usbhs/mod_host.c usbhsh_pipe_detach(hpriv, usbhsh_ep_to_uep(urb->ep)); ep 664 drivers/usb/renesas_usbhs/mod_host.c struct usbhsh_ep *uep = usbhsh_ep_to_uep(urb->ep); ep 870 drivers/usb/renesas_usbhs/mod_host.c struct usbhsh_ep *uep = usbhsh_ep_to_uep(urb->ep); ep 955 drivers/usb/renesas_usbhs/mod_host.c struct usb_host_endpoint *ep = urb->ep; ep 991 drivers/usb/renesas_usbhs/mod_host.c if (!usbhsh_ep_to_uep(ep)) { ep 1020 drivers/usb/renesas_usbhs/mod_host.c usbhsh_endpoint_detach(hpriv, ep); ep 1048 drivers/usb/renesas_usbhs/mod_host.c struct usb_host_endpoint *ep) ep 1050 drivers/usb/renesas_usbhs/mod_host.c struct usbhsh_ep *uep = usbhsh_ep_to_uep(ep); ep 1064 drivers/usb/renesas_usbhs/mod_host.c usbhsh_endpoint_detach(hpriv, ep); ep 88 drivers/usb/roles/class.c static void *usb_role_switch_match(struct device_connection *con, int ep, ep 99 drivers/usb/roles/class.c dev = class_find_device_by_name(role_class, con->endpoint[ep]); ep 566 drivers/usb/serial/io_edgeport.c static int get_epic_descriptor(struct edgeport_serial *ep) ep 569 drivers/usb/serial/io_edgeport.c struct usb_serial *serial = ep->serial; ep 570 drivers/usb/serial/io_edgeport.c struct edgeport_product_info *product_info = &ep->product_info; ep 575 drivers/usb/serial/io_edgeport.c ep->is_epic = 0; ep 587 drivers/usb/serial/io_edgeport.c ep->is_epic = 1; ep 588 drivers/usb/serial/io_edgeport.c memcpy(&ep->epic_descriptor, epic, sizeof(*epic)); ep 600 drivers/usb/serial/io_edgeport.c dump_product_info(ep, product_info); ep 602 drivers/usb/serial/io_edgeport.c bits = &ep->epic_descriptor.Supports; ep 1710 drivers/usb/serial/keyspan.c struct usb_endpoint_descriptor *ep; ep 1715 drivers/usb/serial/keyspan.c ep = &iface_desc->endpoint[i].desc; ep 1716 drivers/usb/serial/keyspan.c if (ep->bEndpointAddress == endpoint) ep 1717 drivers/usb/serial/keyspan.c return ep; ep 208 drivers/usb/typec/class.c static void *typec_port_match(struct device_connection *con, int ep, void *data) ep 219 drivers/usb/typec/class.c dev = class_find_device_by_name(typec_class, con->endpoint[ep]); ep 42 drivers/usb/typec/mux.c static void *typec_switch_match(struct device_connection *con, int ep, ep 55 drivers/usb/typec/mux.c con->endpoint[ep], name_match); ep 185 drivers/usb/typec/mux.c static void *typec_mux_match(struct device_connection *con, int ep, void *data) ep 196 drivers/usb/typec/mux.c con->endpoint[ep], name_match); ep 328 drivers/usb/usbip/stub_rx.c struct usb_host_endpoint *ep; ep 330 drivers/usb/usbip/stub_rx.c int epnum = pdu->base.ep; ep 337 drivers/usb/usbip/stub_rx.c ep = udev->ep_in[epnum & 0x7f]; ep 339 drivers/usb/usbip/stub_rx.c ep = udev->ep_out[epnum & 0x7f]; ep 340 drivers/usb/usbip/stub_rx.c if (!ep) ep 343 drivers/usb/usbip/stub_rx.c epd = &ep->desc; ep 392 drivers/usb/usbip/stub_rx.c struct usb_host_endpoint *ep; ep 402 drivers/usb/usbip/stub_rx.c ep = (usb_pipein(urb->pipe) ? dev->ep_in : dev->ep_out) ep 404 drivers/usb/usbip/stub_rx.c if (!ep) ep 407 drivers/usb/usbip/stub_rx.c xfertype = usb_endpoint_type(&ep->desc); ep 417 drivers/usb/usbip/stub_rx.c is_out = usb_endpoint_dir_out(&ep->desc); ep 113 drivers/usb/usbip/stub_tx.c base->ep = 0; ep 61 drivers/usb/usbip/usbip_common.c unsigned char ep = usb_pipeendpoint(p); ep 65 drivers/usb/usbip/usbip_common.c pr_debug("dev(%d) ep(%d) [%s] ", dev, ep, dir ? "IN" : "OUT"); ep 266 drivers/usb/usbip/usbip_common.c pdu->base.ep); ep 422 drivers/usb/usbip/usbip_common.c base->ep = cpu_to_be32(base->ep); ep 428 drivers/usb/usbip/usbip_common.c base->ep = be32_to_cpu(base->ep); ep 146 drivers/usb/usbip/usbip_common.h __u32 ep; ep 26 drivers/usb/usbip/vhci_tx.c pdup->base.ep = usb_pipeendpoint(urb->pipe); ep 107 drivers/usb/usbip/vhci_tx.c !usb_endpoint_xfer_isoc(&urb->ep->desc)) { ep 210 drivers/usb/usbip/vhci_tx.c pdu_header.base.ep = 0; ep 26 drivers/usb/usbip/vudc.h struct usb_ep ep; ep 47 drivers/usb/usbip/vudc.h struct vep *ep; ep 104 drivers/usb/usbip/vudc.h struct vep *ep; ep 124 drivers/usb/usbip/vudc.h return container_of(_ep, struct vep, ep); ep 139 drivers/usb/usbip/vudc.h static inline struct vudc *ep_to_vudc(struct vep *ep) ep 141 drivers/usb/usbip/vudc.h return container_of(ep->gadget, struct vudc, gadget); ep 51 drivers/usb/usbip/vudc_dev.c urb_p->ep = NULL; ep 73 drivers/usb/usbip/vudc_dev.c static void nuke(struct vudc *udc, struct vep *ep) ep 77 drivers/usb/usbip/vudc_dev.c while (!list_empty(&ep->req_queue)) { ep 78 drivers/usb/usbip/vudc_dev.c req = list_first_entry(&ep->req_queue, struct vrequest, ep 84 drivers/usb/usbip/vudc_dev.c usb_gadget_giveback_request(&ep->ep, &req->req); ep 98 drivers/usb/usbip/vudc_dev.c nuke(udc, &udc->ep[i]); ep 111 drivers/usb/usbip/vudc_dev.c return &udc->ep[0]; ep 114 drivers/usb/usbip/vudc_dev.c struct vep *ep = &udc->ep[i]; ep 116 drivers/usb/usbip/vudc_dev.c if (!ep->desc) ep 118 drivers/usb/usbip/vudc_dev.c if (ep->desc->bEndpointAddress == address) ep 119 drivers/usb/usbip/vudc_dev.c return ep; ep 164 drivers/usb/usbip/vudc_dev.c udc->ep[0].ep.maxpacket = 64; ep 232 drivers/usb/usbip/vudc_dev.c struct vep *ep; ep 237 drivers/usb/usbip/vudc_dev.c ep = to_vep(_ep); ep 238 drivers/usb/usbip/vudc_dev.c udc = ep_to_vudc(ep); ep 240 drivers/usb/usbip/vudc_dev.c if (!_ep || !desc || ep->desc || _ep->caps.type_control ep 251 drivers/usb/usbip/vudc_dev.c ep->desc = desc; ep 252 drivers/usb/usbip/vudc_dev.c ep->type = usb_endpoint_type(desc); ep 253 drivers/usb/usbip/vudc_dev.c ep->halted = ep->wedged = 0; ep 262 drivers/usb/usbip/vudc_dev.c struct vep *ep; ep 266 drivers/usb/usbip/vudc_dev.c ep = to_vep(_ep); ep 267 drivers/usb/usbip/vudc_dev.c udc = ep_to_vudc(ep); ep 268 drivers/usb/usbip/vudc_dev.c if (!_ep || !ep->desc || _ep->caps.type_control) ep 272 drivers/usb/usbip/vudc_dev.c ep->desc = NULL; ep 273 drivers/usb/usbip/vudc_dev.c nuke(udc, ep); ep 311 drivers/usb/usbip/vudc_dev.c struct vep *ep; ep 319 drivers/usb/usbip/vudc_dev.c ep = to_vep(_ep); ep 321 drivers/usb/usbip/vudc_dev.c udc = ep_to_vudc(ep); ep 327 drivers/usb/usbip/vudc_dev.c list_add_tail(&req->req_entry, &ep->req_queue); ep 335 drivers/usb/usbip/vudc_dev.c struct vep *ep; ep 345 drivers/usb/usbip/vudc_dev.c ep = to_vep(_ep); ep 353 drivers/usb/usbip/vudc_dev.c list_for_each_entry(lst, &ep->req_queue, req_entry) { ep 372 drivers/usb/usbip/vudc_dev.c struct vep *ep; ep 377 drivers/usb/usbip/vudc_dev.c ep = to_vep(_ep); ep 381 drivers/usb/usbip/vudc_dev.c udc = ep_to_vudc(ep); ep 387 drivers/usb/usbip/vudc_dev.c ep->halted = ep->wedged = 0; ep 388 drivers/usb/usbip/vudc_dev.c else if (ep->desc && (ep->desc->bEndpointAddress & USB_DIR_IN) && ep 389 drivers/usb/usbip/vudc_dev.c !list_empty(&ep->req_queue)) ep 392 drivers/usb/usbip/vudc_dev.c ep->halted = 1; ep 394 drivers/usb/usbip/vudc_dev.c ep->wedged = 1; ep 520 drivers/usb/usbip/vudc_dev.c struct vep *ep; ep 522 drivers/usb/usbip/vudc_dev.c udc->ep = kcalloc(VIRTUAL_ENDPOINTS, sizeof(*udc->ep), GFP_KERNEL); ep 523 drivers/usb/usbip/vudc_dev.c if (!udc->ep) ep 533 drivers/usb/usbip/vudc_dev.c ep = &udc->ep[i]; ep 535 drivers/usb/usbip/vudc_dev.c sprintf(ep->name, "ep%d%s", num, ep 537 drivers/usb/usbip/vudc_dev.c ep->ep.name = ep->name; ep 539 drivers/usb/usbip/vudc_dev.c ep->ep.ops = &vep_ops; ep 541 drivers/usb/usbip/vudc_dev.c usb_ep_set_maxpacket_limit(&ep->ep, ~0); ep 542 drivers/usb/usbip/vudc_dev.c ep->ep.max_streams = 16; ep 543 drivers/usb/usbip/vudc_dev.c ep->gadget = &udc->gadget; ep 544 drivers/usb/usbip/vudc_dev.c INIT_LIST_HEAD(&ep->req_queue); ep 548 drivers/usb/usbip/vudc_dev.c ep->ep.caps.type_control = true; ep 549 drivers/usb/usbip/vudc_dev.c ep->ep.caps.dir_out = true; ep 550 drivers/usb/usbip/vudc_dev.c ep->ep.caps.dir_in = true; ep 552 drivers/usb/usbip/vudc_dev.c udc->gadget.ep0 = &ep->ep; ep 555 drivers/usb/usbip/vudc_dev.c ep->ep.caps.type_iso = true; ep 556 drivers/usb/usbip/vudc_dev.c ep->ep.caps.type_int = true; ep 557 drivers/usb/usbip/vudc_dev.c ep->ep.caps.type_bulk = true; ep 560 drivers/usb/usbip/vudc_dev.c ep->ep.caps.dir_out = true; ep 562 drivers/usb/usbip/vudc_dev.c ep->ep.caps.dir_in = true; ep 564 drivers/usb/usbip/vudc_dev.c list_add_tail(&ep->ep.ep_list, &udc->gadget.ep_list); ep 591 drivers/usb/usbip/vudc_dev.c kfree(udc->ep); ep 103 drivers/usb/usbip/vudc_rx.c address = pdu->base.ep; ep 108 drivers/usb/usbip/vudc_rx.c urb_p->ep = vudc_find_endpoint(udc, address); ep 109 drivers/usb/usbip/vudc_rx.c if (!urb_p->ep) { ep 117 drivers/usb/usbip/vudc_rx.c urb_p->type = urb_p->ep->type; ep 123 drivers/usb/usbip/vudc_rx.c if (urb_p->ep->type == USB_ENDPOINT_XFER_ISOC) { ep 127 drivers/usb/usbip/vudc_rx.c maxp = usb_endpoint_maxp(urb_p->ep->desc); ep 128 drivers/usb/usbip/vudc_rx.c maxp *= usb_endpoint_maxp_mult(urb_p->ep->desc); ep 142 drivers/usb/usbip/vudc_rx.c ret = alloc_urb_from_cmd(&urb_p->urb, pdu, urb_p->ep->type); ep 153 drivers/usb/usbip/vudc_rx.c switch (urb_p->ep->type) { ep 61 drivers/usb/usbip/vudc_sysfs.c usb_gadget_giveback_request(&(ep0->ep), &(usb_req->req)); ep 102 drivers/usb/usbip/vudc_transfer.c if (!ep2 || ep2->ep.name == udc->ep[0].ep.name) { ep 184 drivers/usb/usbip/vudc_transfer.c struct urb *urb, struct vep *ep, int limit) ep 190 drivers/usb/usbip/vudc_transfer.c list_for_each_entry(req, &ep->req_queue, req_entry) { ep 213 drivers/usb/usbip/vudc_transfer.c if (len >= ep->ep.maxpacket) { ep 215 drivers/usb/usbip/vudc_transfer.c if (len % ep->ep.maxpacket > 0) ep 217 drivers/usb/usbip/vudc_transfer.c len -= len % ep->ep.maxpacket; ep 284 drivers/usb/usbip/vudc_transfer.c usb_gadget_giveback_request(&ep->ep, &req->req); ep 309 drivers/usb/usbip/vudc_transfer.c struct vep *ep; ep 331 drivers/usb/usbip/vudc_transfer.c udc->ep[0].already_seen = 0; ep 333 drivers/usb/usbip/vudc_transfer.c ep = to_vep(_ep); ep 334 drivers/usb/usbip/vudc_transfer.c ep->already_seen = 0; ep 341 drivers/usb/usbip/vudc_transfer.c ep = urb_p->ep; ep 347 drivers/usb/usbip/vudc_transfer.c if (!ep) { ep 353 drivers/usb/usbip/vudc_transfer.c if (total <= 0 && ep->type == USB_ENDPOINT_XFER_BULK) ep 356 drivers/usb/usbip/vudc_transfer.c if (ep->already_seen) ep 358 drivers/usb/usbip/vudc_transfer.c ep->already_seen = 1; ep 359 drivers/usb/usbip/vudc_transfer.c if (ep == &udc->ep[0] && urb_p->new) { ep 360 drivers/usb/usbip/vudc_transfer.c ep->setup_stage = 1; ep 363 drivers/usb/usbip/vudc_transfer.c if (ep->halted && !ep->setup_stage) { ep 368 drivers/usb/usbip/vudc_transfer.c if (ep == &udc->ep[0] && ep->setup_stage) { ep 370 drivers/usb/usbip/vudc_transfer.c ep->setup_stage = 0; ep 371 drivers/usb/usbip/vudc_transfer.c ep->halted = 0; ep 395 drivers/usb/usbip/vudc_transfer.c switch (ep->type) { ep 410 drivers/usb/usbip/vudc_transfer.c total -= transfer(udc, urb, ep, limit); ep 416 drivers/usb/usbip/vudc_transfer.c if (ep) ep 417 drivers/usb/usbip/vudc_transfer.c ep->already_seen = ep->setup_stage = 0; ep 21 drivers/usb/usbip/vudc_tx.c base->ep = 0; ep 841 drivers/video/fbdev/omap2/omapfb/dss/dpi.c struct device_node *ep; ep 849 drivers/video/fbdev/omap2/omapfb/dss/dpi.c ep = omapdss_of_get_next_endpoint(port, NULL); ep 850 drivers/video/fbdev/omap2/omapfb/dss/dpi.c if (!ep) ep 853 drivers/video/fbdev/omap2/omapfb/dss/dpi.c r = of_property_read_u32(ep, "data-lines", &datalines); ep 861 drivers/video/fbdev/omap2/omapfb/dss/dpi.c of_node_put(ep); ep 875 drivers/video/fbdev/omap2/omapfb/dss/dpi.c of_node_put(ep); ep 5078 drivers/video/fbdev/omap2/omapfb/dss/dsi.c struct device_node *ep; ep 5081 drivers/video/fbdev/omap2/omapfb/dss/dsi.c ep = omapdss_of_get_first_endpoint(node); ep 5082 drivers/video/fbdev/omap2/omapfb/dss/dsi.c if (!ep) ep 5085 drivers/video/fbdev/omap2/omapfb/dss/dsi.c prop = of_find_property(ep, "lanes", &len); ep 5101 drivers/video/fbdev/omap2/omapfb/dss/dsi.c r = of_property_read_u32_array(ep, "lanes", lane_arr, num_pins); ep 5117 drivers/video/fbdev/omap2/omapfb/dss/dsi.c of_node_put(ep); ep 5122 drivers/video/fbdev/omap2/omapfb/dss/dsi.c of_node_put(ep); ep 68 drivers/video/fbdev/omap2/omapfb/dss/dss-of.c struct device_node *ep = NULL; ep 74 drivers/video/fbdev/omap2/omapfb/dss/dss-of.c ep = of_get_next_child(parent, prev); ep 75 drivers/video/fbdev/omap2/omapfb/dss/dss-of.c if (!ep) ep 77 drivers/video/fbdev/omap2/omapfb/dss/dss-of.c prev = ep; ep 78 drivers/video/fbdev/omap2/omapfb/dss/dss-of.c } while (!of_node_name_eq(ep, "endpoint")); ep 80 drivers/video/fbdev/omap2/omapfb/dss/dss-of.c return ep; ep 136 drivers/video/fbdev/omap2/omapfb/dss/dss-of.c struct device_node *port, *ep; ep 143 drivers/video/fbdev/omap2/omapfb/dss/dss-of.c ep = omapdss_of_get_next_endpoint(port, NULL); ep 147 drivers/video/fbdev/omap2/omapfb/dss/dss-of.c return ep; ep 154 drivers/video/fbdev/omap2/omapfb/dss/dss-of.c struct device_node *ep; ep 158 drivers/video/fbdev/omap2/omapfb/dss/dss-of.c ep = omapdss_of_get_first_endpoint(node); ep 159 drivers/video/fbdev/omap2/omapfb/dss/dss-of.c if (!ep) ep 162 drivers/video/fbdev/omap2/omapfb/dss/dss-of.c src_port = omapdss_of_get_remote_port(ep); ep 164 drivers/video/fbdev/omap2/omapfb/dss/dss-of.c of_node_put(ep); ep 168 drivers/video/fbdev/omap2/omapfb/dss/dss-of.c of_node_put(ep); ep 313 drivers/video/fbdev/omap2/omapfb/dss/hdmi.h int hdmi_parse_lanes_of(struct platform_device *pdev, struct device_node *ep, ep 532 drivers/video/fbdev/omap2/omapfb/dss/hdmi4.c struct device_node *ep; ep 535 drivers/video/fbdev/omap2/omapfb/dss/hdmi4.c ep = omapdss_of_get_first_endpoint(node); ep 536 drivers/video/fbdev/omap2/omapfb/dss/hdmi4.c if (!ep) ep 539 drivers/video/fbdev/omap2/omapfb/dss/hdmi4.c r = hdmi_parse_lanes_of(pdev, ep, &hdmi.phy); ep 543 drivers/video/fbdev/omap2/omapfb/dss/hdmi4.c of_node_put(ep); ep 547 drivers/video/fbdev/omap2/omapfb/dss/hdmi4.c of_node_put(ep); ep 562 drivers/video/fbdev/omap2/omapfb/dss/hdmi5.c struct device_node *ep; ep 565 drivers/video/fbdev/omap2/omapfb/dss/hdmi5.c ep = omapdss_of_get_first_endpoint(node); ep 566 drivers/video/fbdev/omap2/omapfb/dss/hdmi5.c if (!ep) ep 569 drivers/video/fbdev/omap2/omapfb/dss/hdmi5.c r = hdmi_parse_lanes_of(pdev, ep, &hdmi.phy); ep 573 drivers/video/fbdev/omap2/omapfb/dss/hdmi5.c of_node_put(ep); ep 577 drivers/video/fbdev/omap2/omapfb/dss/hdmi5.c of_node_put(ep); ep 12 drivers/video/fbdev/omap2/omapfb/dss/hdmi_common.c int hdmi_parse_lanes_of(struct platform_device *pdev, struct device_node *ep, ep 18 drivers/video/fbdev/omap2/omapfb/dss/hdmi_common.c prop = of_find_property(ep, "lanes", &len); ep 27 drivers/video/fbdev/omap2/omapfb/dss/hdmi_common.c r = of_property_read_u32_array(ep, "lanes", lanes, ep 405 drivers/video/fbdev/omap2/omapfb/dss/sdi.c struct device_node *ep; ep 409 drivers/video/fbdev/omap2/omapfb/dss/sdi.c ep = omapdss_of_get_next_endpoint(port, NULL); ep 410 drivers/video/fbdev/omap2/omapfb/dss/sdi.c if (!ep) ep 413 drivers/video/fbdev/omap2/omapfb/dss/sdi.c r = of_property_read_u32(ep, "datapairs", &datapairs); ep 421 drivers/video/fbdev/omap2/omapfb/dss/sdi.c of_node_put(ep); ep 432 drivers/video/fbdev/omap2/omapfb/dss/sdi.c of_node_put(ep); ep 805 drivers/video/fbdev/omap2/omapfb/dss/venc.c struct device_node *ep; ep 809 drivers/video/fbdev/omap2/omapfb/dss/venc.c ep = omapdss_of_get_first_endpoint(node); ep 810 drivers/video/fbdev/omap2/omapfb/dss/venc.c if (!ep) ep 813 drivers/video/fbdev/omap2/omapfb/dss/venc.c venc.invert_polarity = of_property_read_bool(ep, "ti,invert-polarity"); ep 815 drivers/video/fbdev/omap2/omapfb/dss/venc.c r = of_property_read_u32(ep, "ti,channels", &channels); ep 835 drivers/video/fbdev/omap2/omapfb/dss/venc.c of_node_put(ep); ep 839 drivers/video/fbdev/omap2/omapfb/dss/venc.c of_node_put(ep); ep 55 drivers/video/fbdev/sunxvr500.c static int e3d_get_props(struct e3d_info *ep) ep 57 drivers/video/fbdev/sunxvr500.c ep->width = of_getintprop_default(ep->of_node, "width", 0); ep 58 drivers/video/fbdev/sunxvr500.c ep->height = of_getintprop_default(ep->of_node, "height", 0); ep 59 drivers/video/fbdev/sunxvr500.c ep->depth = of_getintprop_default(ep->of_node, "depth", 8); ep 61 drivers/video/fbdev/sunxvr500.c if (!ep->width || !ep->height) { ep 63 drivers/video/fbdev/sunxvr500.c pci_name(ep->pdev)); ep 98 drivers/video/fbdev/sunxvr500.c static void e3d_clut_write(struct e3d_info *ep, int index, u32 val) ep 100 drivers/video/fbdev/sunxvr500.c void __iomem *ramdac = ep->ramdac; ep 103 drivers/video/fbdev/sunxvr500.c spin_lock_irqsave(&ep->lock, flags); ep 108 drivers/video/fbdev/sunxvr500.c spin_unlock_irqrestore(&ep->lock, flags); ep 115 drivers/video/fbdev/sunxvr500.c struct e3d_info *ep = info->par; ep 138 drivers/video/fbdev/sunxvr500.c e3d_clut_write(ep, regno, value); ep 152 drivers/video/fbdev/sunxvr500.c struct e3d_info *ep = info->par; ep 155 drivers/video/fbdev/sunxvr500.c spin_lock_irqsave(&ep->lock, flags); ep 157 drivers/video/fbdev/sunxvr500.c info->screen_base += ep->fb8_buf_diff; ep 159 drivers/video/fbdev/sunxvr500.c info->screen_base -= ep->fb8_buf_diff; ep 160 drivers/video/fbdev/sunxvr500.c spin_unlock_irqrestore(&ep->lock, flags); ep 165 drivers/video/fbdev/sunxvr500.c struct e3d_info *ep = info->par; ep 168 drivers/video/fbdev/sunxvr500.c spin_lock_irqsave(&ep->lock, flags); ep 170 drivers/video/fbdev/sunxvr500.c info->screen_base += ep->fb8_buf_diff; ep 172 drivers/video/fbdev/sunxvr500.c info->screen_base -= ep->fb8_buf_diff; ep 173 drivers/video/fbdev/sunxvr500.c spin_unlock_irqrestore(&ep->lock, flags); ep 178 drivers/video/fbdev/sunxvr500.c struct e3d_info *ep = info->par; ep 181 drivers/video/fbdev/sunxvr500.c spin_lock_irqsave(&ep->lock, flags); ep 183 drivers/video/fbdev/sunxvr500.c info->screen_base += ep->fb8_buf_diff; ep 185 drivers/video/fbdev/sunxvr500.c info->screen_base -= ep->fb8_buf_diff; ep 186 drivers/video/fbdev/sunxvr500.c spin_unlock_irqrestore(&ep->lock, flags); ep 197 drivers/video/fbdev/sunxvr500.c static int e3d_set_fbinfo(struct e3d_info *ep) ep 199 drivers/video/fbdev/sunxvr500.c struct fb_info *info = ep->info; ep 204 drivers/video/fbdev/sunxvr500.c info->screen_base = ep->fb_base; ep 205 drivers/video/fbdev/sunxvr500.c info->screen_size = ep->fb_size; ep 207 drivers/video/fbdev/sunxvr500.c info->pseudo_palette = ep->pseudo_palette; ep 211 drivers/video/fbdev/sunxvr500.c info->fix.smem_start = ep->fb_base_phys; ep 212 drivers/video/fbdev/sunxvr500.c info->fix.smem_len = ep->fb_size; ep 214 drivers/video/fbdev/sunxvr500.c if (ep->depth == 32 || ep->depth == 24) ep 219 drivers/video/fbdev/sunxvr500.c var->xres = ep->width; ep 220 drivers/video/fbdev/sunxvr500.c var->yres = ep->height; ep 223 drivers/video/fbdev/sunxvr500.c var->bits_per_pixel = ep->depth; ep 248 drivers/video/fbdev/sunxvr500.c struct e3d_info *ep; ep 279 drivers/video/fbdev/sunxvr500.c ep = info->par; ep 280 drivers/video/fbdev/sunxvr500.c ep->info = info; ep 281 drivers/video/fbdev/sunxvr500.c ep->pdev = pdev; ep 282 drivers/video/fbdev/sunxvr500.c spin_lock_init(&ep->lock); ep 283 drivers/video/fbdev/sunxvr500.c ep->of_node = of_node; ep 290 drivers/video/fbdev/sunxvr500.c &ep->fb_base_reg); ep 291 drivers/video/fbdev/sunxvr500.c ep->fb_base_reg &= PCI_BASE_ADDRESS_MEM_MASK; ep 293 drivers/video/fbdev/sunxvr500.c ep->regs_base_phys = pci_resource_start (pdev, 1); ep 300 drivers/video/fbdev/sunxvr500.c ep->ramdac = ioremap(ep->regs_base_phys + 0x8000, 0x1000); ep 301 drivers/video/fbdev/sunxvr500.c if (!ep->ramdac) { ep 306 drivers/video/fbdev/sunxvr500.c ep->fb8_0_off = readl(ep->ramdac + RAMDAC_VID_8FB_0); ep 307 drivers/video/fbdev/sunxvr500.c ep->fb8_0_off -= ep->fb_base_reg; ep 309 drivers/video/fbdev/sunxvr500.c ep->fb8_1_off = readl(ep->ramdac + RAMDAC_VID_8FB_1); ep 310 drivers/video/fbdev/sunxvr500.c ep->fb8_1_off -= ep->fb_base_reg; ep 312 drivers/video/fbdev/sunxvr500.c ep->fb8_buf_diff = ep->fb8_1_off - ep->fb8_0_off; ep 314 drivers/video/fbdev/sunxvr500.c ep->fb_base_phys = pci_resource_start (pdev, 0); ep 315 drivers/video/fbdev/sunxvr500.c ep->fb_base_phys += ep->fb8_0_off; ep 324 drivers/video/fbdev/sunxvr500.c err = e3d_get_props(ep); ep 328 drivers/video/fbdev/sunxvr500.c line_length = (readl(ep->ramdac + RAMDAC_VID_CFG) >> 16) & 0xff; ep 331 drivers/video/fbdev/sunxvr500.c switch (ep->depth) { ep 345 drivers/video/fbdev/sunxvr500.c ep->fb_size = info->fix.line_length * ep->height; ep 347 drivers/video/fbdev/sunxvr500.c ep->fb_base = ioremap(ep->fb_base_phys, ep->fb_size); ep 348 drivers/video/fbdev/sunxvr500.c if (!ep->fb_base) { ep 353 drivers/video/fbdev/sunxvr500.c err = e3d_set_fbinfo(ep); ep 374 drivers/video/fbdev/sunxvr500.c iounmap(ep->fb_base); ep 380 drivers/video/fbdev/sunxvr500.c iounmap(ep->ramdac); ep 129 drivers/w1/masters/ds2490.c int ep[NUM_EP]; ep 172 drivers/w1/masters/ds2490.c err = usb_control_msg(dev->udev, usb_sndctrlpipe(dev->udev, dev->ep[EP_CONTROL]), ep 187 drivers/w1/masters/ds2490.c err = usb_control_msg(dev->udev, usb_sndctrlpipe(dev->udev, dev->ep[EP_CONTROL]), ep 202 drivers/w1/masters/ds2490.c err = usb_control_msg(dev->udev, usb_sndctrlpipe(dev->udev, dev->ep[EP_CONTROL]), ep 222 drivers/w1/masters/ds2490.c pr_info("0x%x: count=%d, status: ", dev->ep[EP_STATUS], count); ep 282 drivers/w1/masters/ds2490.c dev->ep[EP_STATUS]), ep 287 drivers/w1/masters/ds2490.c dev->ep[EP_STATUS], err); ep 331 drivers/w1/masters/ds2490.c err = usb_bulk_msg(dev->udev, usb_rcvbulkpipe(dev->udev, dev->ep[EP_DATA_IN]), ep 334 drivers/w1/masters/ds2490.c pr_info("Clearing ep0x%x.\n", dev->ep[EP_DATA_IN]); ep 335 drivers/w1/masters/ds2490.c usb_clear_halt(dev->udev, usb_rcvbulkpipe(dev->udev, dev->ep[EP_DATA_IN])); ep 358 drivers/w1/masters/ds2490.c err = usb_bulk_msg(dev->udev, usb_sndbulkpipe(dev->udev, dev->ep[EP_DATA_OUT]), buf, len, &count, 1000); ep 361 drivers/w1/masters/ds2490.c "err=%d.\n", dev->ep[EP_DATA_OUT], err); ep 433 drivers/w1/masters/ds2490.c printk("0x%x: count=%d, status: ", dev->ep[EP_STATUS], err); ep 991 drivers/w1/masters/ds2490.c memset(dev->ep, 0, sizeof(dev->ep)); ep 1028 drivers/w1/masters/ds2490.c dev->ep[i+1] = endpoint->bEndpointAddress; ep 116 fs/autofs/waitq.c struct autofs_packet_expire_multi *ep = ep 119 fs/autofs/waitq.c pktsz = sizeof(*ep); ep 121 fs/autofs/waitq.c ep->wait_queue_token = wq->wait_queue_token; ep 122 fs/autofs/waitq.c ep->len = wq->name.len; ep 123 fs/autofs/waitq.c memcpy(ep->name, wq->name.name, wq->name.len); ep 124 fs/autofs/waitq.c ep->name[wq->name.len] = '\0'; ep 164 fs/eventpoll.c struct eventpoll *ep; ep 378 fs/eventpoll.c static inline int ep_events_available(struct eventpoll *ep) ep 380 fs/eventpoll.c return !list_empty_careful(&ep->rdllist) || ep 381 fs/eventpoll.c READ_ONCE(ep->ovflist) != EP_UNACTIVE_PTR; ep 387 fs/eventpoll.c struct eventpoll *ep = p; ep 389 fs/eventpoll.c return ep_events_available(ep) || busy_loop_timeout(start_time); ep 398 fs/eventpoll.c static void ep_busy_loop(struct eventpoll *ep, int nonblock) ep 400 fs/eventpoll.c unsigned int napi_id = READ_ONCE(ep->napi_id); ep 403 fs/eventpoll.c napi_busy_loop(napi_id, nonblock ? NULL : ep_busy_loop_end, ep); ep 406 fs/eventpoll.c static inline void ep_reset_busy_poll_napi_id(struct eventpoll *ep) ep 408 fs/eventpoll.c if (ep->napi_id) ep 409 fs/eventpoll.c ep->napi_id = 0; ep 417 fs/eventpoll.c struct eventpoll *ep; ep 435 fs/eventpoll.c ep = epi->ep; ep 441 fs/eventpoll.c if (napi_id < MIN_NAPI_ID || napi_id == ep->napi_id) ep 445 fs/eventpoll.c ep->napi_id = napi_id; ep 450 fs/eventpoll.c static inline void ep_busy_loop(struct eventpoll *ep, int nonblock) ep 454 fs/eventpoll.c static inline void ep_reset_busy_poll_napi_id(struct eventpoll *ep) ep 609 fs/eventpoll.c static void ep_unregister_pollwait(struct eventpoll *ep, struct epitem *epi) ep 626 fs/eventpoll.c return rcu_dereference_check(epi->ws, lockdep_is_held(&epi->ep->mtx)); ep 668 fs/eventpoll.c static __poll_t ep_scan_ready_list(struct eventpoll *ep, ep 686 fs/eventpoll.c mutex_lock_nested(&ep->mtx, depth); ep 696 fs/eventpoll.c write_lock_irq(&ep->lock); ep 697 fs/eventpoll.c list_splice_init(&ep->rdllist, &txlist); ep 698 fs/eventpoll.c WRITE_ONCE(ep->ovflist, NULL); ep 699 fs/eventpoll.c write_unlock_irq(&ep->lock); ep 704 fs/eventpoll.c res = (*sproc)(ep, &txlist, priv); ep 706 fs/eventpoll.c write_lock_irq(&ep->lock); ep 712 fs/eventpoll.c for (nepi = READ_ONCE(ep->ovflist); (epi = nepi) != NULL; ep 725 fs/eventpoll.c list_add(&epi->rdllink, &ep->rdllist); ep 734 fs/eventpoll.c WRITE_ONCE(ep->ovflist, EP_UNACTIVE_PTR); ep 739 fs/eventpoll.c list_splice(&txlist, &ep->rdllist); ep 740 fs/eventpoll.c __pm_relax(ep->ws); ep 742 fs/eventpoll.c if (!list_empty(&ep->rdllist)) { ep 747 fs/eventpoll.c if (waitqueue_active(&ep->wq)) ep 748 fs/eventpoll.c wake_up(&ep->wq); ep 749 fs/eventpoll.c if (waitqueue_active(&ep->poll_wait)) ep 752 fs/eventpoll.c write_unlock_irq(&ep->lock); ep 755 fs/eventpoll.c mutex_unlock(&ep->mtx); ep 759 fs/eventpoll.c ep_poll_safewake(&ep->poll_wait); ep 774 fs/eventpoll.c static int ep_remove(struct eventpoll *ep, struct epitem *epi) ep 783 fs/eventpoll.c ep_unregister_pollwait(ep, epi); ep 790 fs/eventpoll.c rb_erase_cached(&epi->rbn, &ep->rbr); ep 792 fs/eventpoll.c write_lock_irq(&ep->lock); ep 795 fs/eventpoll.c write_unlock_irq(&ep->lock); ep 807 fs/eventpoll.c atomic_long_dec(&ep->user->epoll_watches); ep 812 fs/eventpoll.c static void ep_free(struct eventpoll *ep) ep 818 fs/eventpoll.c if (waitqueue_active(&ep->poll_wait)) ep 819 fs/eventpoll.c ep_poll_safewake(&ep->poll_wait); ep 834 fs/eventpoll.c for (rbp = rb_first_cached(&ep->rbr); rbp; rbp = rb_next(rbp)) { ep 837 fs/eventpoll.c ep_unregister_pollwait(ep, epi); ep 849 fs/eventpoll.c mutex_lock(&ep->mtx); ep 850 fs/eventpoll.c while ((rbp = rb_first_cached(&ep->rbr)) != NULL) { ep 852 fs/eventpoll.c ep_remove(ep, epi); ep 855 fs/eventpoll.c mutex_unlock(&ep->mtx); ep 858 fs/eventpoll.c mutex_destroy(&ep->mtx); ep 859 fs/eventpoll.c free_uid(ep->user); ep 860 fs/eventpoll.c wakeup_source_unregister(ep->ws); ep 861 fs/eventpoll.c kfree(ep); ep 866 fs/eventpoll.c struct eventpoll *ep = file->private_data; ep 868 fs/eventpoll.c if (ep) ep 869 fs/eventpoll.c ep_free(ep); ep 874 fs/eventpoll.c static __poll_t ep_read_events_proc(struct eventpoll *ep, struct list_head *head, ep 887 fs/eventpoll.c struct eventpoll *ep; ep 894 fs/eventpoll.c ep = epi->ffd.file->private_data; ep 895 fs/eventpoll.c poll_wait(epi->ffd.file, &ep->poll_wait, pt); ep 903 fs/eventpoll.c static __poll_t ep_read_events_proc(struct eventpoll *ep, struct list_head *head, ep 932 fs/eventpoll.c struct eventpoll *ep = file->private_data; ep 936 fs/eventpoll.c poll_wait(file, &ep->poll_wait, wait); ep 942 fs/eventpoll.c return ep_scan_ready_list(ep, ep_read_events_proc, ep 949 fs/eventpoll.c struct eventpoll *ep = f->private_data; ep 952 fs/eventpoll.c mutex_lock(&ep->mtx); ep 953 fs/eventpoll.c for (rbp = rb_first_cached(&ep->rbr); rbp; rbp = rb_next(rbp)) { ep 966 fs/eventpoll.c mutex_unlock(&ep->mtx); ep 987 fs/eventpoll.c struct eventpoll *ep; ep 1005 fs/eventpoll.c ep = epi->ep; ep 1006 fs/eventpoll.c mutex_lock_nested(&ep->mtx, 0); ep 1007 fs/eventpoll.c ep_remove(ep, epi); ep 1008 fs/eventpoll.c mutex_unlock(&ep->mtx); ep 1017 fs/eventpoll.c struct eventpoll *ep; ep 1021 fs/eventpoll.c ep = kzalloc(sizeof(*ep), GFP_KERNEL); ep 1022 fs/eventpoll.c if (unlikely(!ep)) ep 1025 fs/eventpoll.c mutex_init(&ep->mtx); ep 1026 fs/eventpoll.c rwlock_init(&ep->lock); ep 1027 fs/eventpoll.c init_waitqueue_head(&ep->wq); ep 1028 fs/eventpoll.c init_waitqueue_head(&ep->poll_wait); ep 1029 fs/eventpoll.c INIT_LIST_HEAD(&ep->rdllist); ep 1030 fs/eventpoll.c ep->rbr = RB_ROOT_CACHED; ep 1031 fs/eventpoll.c ep->ovflist = EP_UNACTIVE_PTR; ep 1032 fs/eventpoll.c ep->user = user; ep 1034 fs/eventpoll.c *pep = ep; ep 1048 fs/eventpoll.c static struct epitem *ep_find(struct eventpoll *ep, struct file *file, int fd) ep 1056 fs/eventpoll.c for (rbp = ep->rbr.rb_root.rb_node; rbp; ) { ep 1073 fs/eventpoll.c static struct epitem *ep_find_tfd(struct eventpoll *ep, int tfd, unsigned long toff) ep 1078 fs/eventpoll.c for (rbp = rb_first_cached(&ep->rbr); rbp; rbp = rb_next(rbp)) { ep 1096 fs/eventpoll.c struct eventpoll *ep; ep 1102 fs/eventpoll.c ep = file->private_data; ep 1104 fs/eventpoll.c mutex_lock(&ep->mtx); ep 1105 fs/eventpoll.c epi = ep_find_tfd(ep, tfd, toff); ep 1110 fs/eventpoll.c mutex_unlock(&ep->mtx); ep 1177 fs/eventpoll.c struct eventpoll *ep = epi->ep; ep 1188 fs/eventpoll.c epi->next = xchg(&ep->ovflist, epi); ep 1215 fs/eventpoll.c struct eventpoll *ep = epi->ep; ep 1220 fs/eventpoll.c read_lock_irqsave(&ep->lock, flags); ep 1248 fs/eventpoll.c if (READ_ONCE(ep->ovflist) != EP_UNACTIVE_PTR) { ep 1253 fs/eventpoll.c if (list_add_tail_lockless(&epi->rdllink, &ep->rdllist)) ep 1261 fs/eventpoll.c if (waitqueue_active(&ep->wq)) { ep 1278 fs/eventpoll.c wake_up(&ep->wq); ep 1280 fs/eventpoll.c if (waitqueue_active(&ep->poll_wait)) ep 1284 fs/eventpoll.c read_unlock_irqrestore(&ep->lock, flags); ep 1288 fs/eventpoll.c ep_poll_safewake(&ep->poll_wait); ep 1338 fs/eventpoll.c static void ep_rbtree_insert(struct eventpoll *ep, struct epitem *epi) ep 1341 fs/eventpoll.c struct rb_node **p = &ep->rbr.rb_root.rb_node, *parent = NULL; ep 1356 fs/eventpoll.c rb_insert_color_cached(&epi->rbn, &ep->rbr, leftmost); ep 1405 fs/eventpoll.c child_file = epi->ep->file; ep 1461 fs/eventpoll.c if (!epi->ep->ws) { ep 1462 fs/eventpoll.c epi->ep->ws = wakeup_source_register(NULL, "eventpoll"); ep 1463 fs/eventpoll.c if (!epi->ep->ws) ep 1496 fs/eventpoll.c static int ep_insert(struct eventpoll *ep, const struct epoll_event *event, ep 1507 fs/eventpoll.c user_watches = atomic_long_read(&ep->user->epoll_watches); ep 1517 fs/eventpoll.c epi->ep = ep; ep 1561 fs/eventpoll.c ep_rbtree_insert(ep, epi); ep 1569 fs/eventpoll.c write_lock_irq(&ep->lock); ep 1576 fs/eventpoll.c list_add_tail(&epi->rdllink, &ep->rdllist); ep 1580 fs/eventpoll.c if (waitqueue_active(&ep->wq)) ep 1581 fs/eventpoll.c wake_up(&ep->wq); ep 1582 fs/eventpoll.c if (waitqueue_active(&ep->poll_wait)) ep 1586 fs/eventpoll.c write_unlock_irq(&ep->lock); ep 1588 fs/eventpoll.c atomic_long_inc(&ep->user->epoll_watches); ep 1592 fs/eventpoll.c ep_poll_safewake(&ep->poll_wait); ep 1601 fs/eventpoll.c rb_erase_cached(&epi->rbn, &ep->rbr); ep 1604 fs/eventpoll.c ep_unregister_pollwait(ep, epi); ep 1612 fs/eventpoll.c write_lock_irq(&ep->lock); ep 1615 fs/eventpoll.c write_unlock_irq(&ep->lock); ep 1629 fs/eventpoll.c static int ep_modify(struct eventpoll *ep, struct epitem *epi, ep 1680 fs/eventpoll.c write_lock_irq(&ep->lock); ep 1682 fs/eventpoll.c list_add_tail(&epi->rdllink, &ep->rdllist); ep 1686 fs/eventpoll.c if (waitqueue_active(&ep->wq)) ep 1687 fs/eventpoll.c wake_up(&ep->wq); ep 1688 fs/eventpoll.c if (waitqueue_active(&ep->poll_wait)) ep 1691 fs/eventpoll.c write_unlock_irq(&ep->lock); ep 1696 fs/eventpoll.c ep_poll_safewake(&ep->poll_wait); ep 1701 fs/eventpoll.c static __poll_t ep_send_events_proc(struct eventpoll *ep, struct list_head *head, ep 1719 fs/eventpoll.c lockdep_assert_held(&ep->mtx); ep 1737 fs/eventpoll.c __pm_stay_awake(ep->ws); ep 1777 fs/eventpoll.c list_add_tail(&epi->rdllink, &ep->rdllist); ep 1785 fs/eventpoll.c static int ep_send_events(struct eventpoll *ep, ep 1793 fs/eventpoll.c ep_scan_ready_list(ep, ep_send_events_proc, &esed, 0, false); ep 1825 fs/eventpoll.c static int ep_poll(struct eventpoll *ep, struct epoll_event __user *events, ep 1851 fs/eventpoll.c write_lock_irq(&ep->lock); ep 1852 fs/eventpoll.c eavail = ep_events_available(ep); ep 1853 fs/eventpoll.c write_unlock_irq(&ep->lock); ep 1860 fs/eventpoll.c if (!ep_events_available(ep)) ep 1861 fs/eventpoll.c ep_busy_loop(ep, timed_out); ep 1863 fs/eventpoll.c eavail = ep_events_available(ep); ep 1872 fs/eventpoll.c ep_reset_busy_poll_napi_id(ep); ep 1887 fs/eventpoll.c write_lock_irq(&ep->lock); ep 1888 fs/eventpoll.c __add_wait_queue_exclusive(&ep->wq, &wait); ep 1889 fs/eventpoll.c write_unlock_irq(&ep->lock); ep 1908 fs/eventpoll.c eavail = ep_events_available(ep); ep 1929 fs/eventpoll.c write_lock_irq(&ep->lock); ep 1930 fs/eventpoll.c __remove_wait_queue(&ep->wq, &wait); ep 1931 fs/eventpoll.c write_unlock_irq(&ep->lock); ep 1941 fs/eventpoll.c !(res = ep_send_events(ep, events, maxevents)) && !timed_out) ep 1966 fs/eventpoll.c struct eventpoll *ep = file->private_data; ep 1971 fs/eventpoll.c mutex_lock_nested(&ep->mtx, call_nests + 1); ep 1972 fs/eventpoll.c ep->visited = 1; ep 1973 fs/eventpoll.c list_add(&ep->visited_list_link, &visited_list); ep 1974 fs/eventpoll.c for (rbp = rb_first_cached(&ep->rbr); rbp; rbp = rb_next(rbp)) { ep 1999 fs/eventpoll.c mutex_unlock(&ep->mtx); ep 2015 fs/eventpoll.c static int ep_loop_check(struct eventpoll *ep, struct file *file) ep 2021 fs/eventpoll.c ep_loop_check_proc, file, ep, current); ep 2050 fs/eventpoll.c struct eventpoll *ep = NULL; ep 2061 fs/eventpoll.c error = ep_alloc(&ep); ep 2073 fs/eventpoll.c file = anon_inode_getfile("[eventpoll]", &eventpoll_fops, ep, ep 2079 fs/eventpoll.c ep->file = file; ep 2086 fs/eventpoll.c ep_free(ep); ep 2114 fs/eventpoll.c struct eventpoll *ep; ep 2169 fs/eventpoll.c ep = f.file->private_data; ep 2186 fs/eventpoll.c mutex_lock_nested(&ep->mtx, 0); ep 2191 fs/eventpoll.c mutex_unlock(&ep->mtx); ep 2195 fs/eventpoll.c if (ep_loop_check(ep, tf.file) != 0) { ep 2202 fs/eventpoll.c mutex_lock_nested(&ep->mtx, 0); ep 2215 fs/eventpoll.c epi = ep_find(ep, tf.file, fd); ep 2222 fs/eventpoll.c error = ep_insert(ep, &epds, tf.file, fd, full_check); ep 2230 fs/eventpoll.c error = ep_remove(ep, epi); ep 2238 fs/eventpoll.c error = ep_modify(ep, epi, &epds); ep 2246 fs/eventpoll.c mutex_unlock(&ep->mtx); ep 2269 fs/eventpoll.c struct eventpoll *ep; ep 2296 fs/eventpoll.c ep = f.file->private_data; ep 2299 fs/eventpoll.c error = ep_poll(ep, events, maxevents, timeout); ep 202 fs/f2fs/node.c nid_t start, unsigned int nr, struct nat_entry **ep) ep 204 fs/f2fs/node.c return radix_tree_gang_lookup(&nm_i->nat_root, (void **)ep, start, nr); ep 280 fs/f2fs/node.c nid_t start, unsigned int nr, struct nat_entry_set **ep) ep 282 fs/f2fs/node.c return radix_tree_gang_lookup(&nm_i->nat_set_root, (void **)ep, ep 80 fs/nfsd/export.c char *ep; ep 106 fs/nfsd/export.c fsidtype = simple_strtoul(buf, &ep, 10); ep 107 fs/nfsd/export.c if (*ep) ep 328 fs/xfs/libxfs/xfs_bmap.c xfs_bmbt_rec_t *ep; /* pointer to current extent */ ep 421 fs/xfs/libxfs/xfs_bmap.c ep = XFS_BMBT_REC_ADDR(mp, block, 1); ep 425 fs/xfs/libxfs/xfs_bmap.c xfs_bmbt_disk_get_startoff(ep)); ep 429 fs/xfs/libxfs/xfs_bmap.c ASSERT(xfs_bmbt_disk_get_startoff(ep) + ep 430 fs/xfs/libxfs/xfs_bmap.c xfs_bmbt_disk_get_blockcount(ep) <= ep 432 fs/xfs/libxfs/xfs_bmap.c ep = nextp; ep 435 fs/xfs/libxfs/xfs_bmap.c last = *ep; ep 1017 include/linux/device.h typedef void *(*devcon_match_fn_t)(struct device_connection *con, int ep, ep 1753 include/linux/lsm_hooks.h int (*sctp_assoc_request)(struct sctp_endpoint *ep, ep 1757 include/linux/lsm_hooks.h void (*sctp_sk_clone)(struct sctp_endpoint *ep, struct sock *sk, ep 1322 include/linux/security.h int security_sctp_assoc_request(struct sctp_endpoint *ep, struct sk_buff *skb); ep 1325 include/linux/security.h void security_sctp_sk_clone(struct sctp_endpoint *ep, struct sock *sk, ep 1526 include/linux/security.h static inline int security_sctp_assoc_request(struct sctp_endpoint *ep, ep 1539 include/linux/security.h static inline void security_sctp_sk_clone(struct sctp_endpoint *ep, ep 243 include/linux/sunrpc/cache.h char *ep; ep 252 include/linux/sunrpc/cache.h rv = simple_strtol(buf, &ep, 0); ep 253 include/linux/sunrpc/cache.h if (*ep) ep 1564 include/linux/usb.h struct usb_host_endpoint *ep; /* (internal) pointer to endpoint */ ep 1962 include/linux/usb.h struct usb_host_endpoint *ep; ep 1967 include/linux/usb.h ep = udev->ep_out[epnum]; ep 1970 include/linux/usb.h ep = udev->ep_in[epnum]; ep 1972 include/linux/usb.h if (!ep) ep 1976 include/linux/usb.h return usb_endpoint_maxp(&ep->desc); ep 18 include/linux/usb/cdc-wdm.h struct usb_endpoint_descriptor *ep, ep 43 include/linux/usb/ehci-dbgp.h #define DBGP_EPADDR(dev, ep) (((dev)<<8)|(ep)) ep 112 include/linux/usb/gadget.h void (*complete)(struct usb_ep *ep, ep 133 include/linux/usb/gadget.h int (*enable) (struct usb_ep *ep, ep 135 include/linux/usb/gadget.h int (*disable) (struct usb_ep *ep); ep 136 include/linux/usb/gadget.h void (*dispose) (struct usb_ep *ep); ep 138 include/linux/usb/gadget.h struct usb_request *(*alloc_request) (struct usb_ep *ep, ep 140 include/linux/usb/gadget.h void (*free_request) (struct usb_ep *ep, struct usb_request *req); ep 142 include/linux/usb/gadget.h int (*queue) (struct usb_ep *ep, struct usb_request *req, ep 144 include/linux/usb/gadget.h int (*dequeue) (struct usb_ep *ep, struct usb_request *req); ep 146 include/linux/usb/gadget.h int (*set_halt) (struct usb_ep *ep, int value); ep 147 include/linux/usb/gadget.h int (*set_wedge) (struct usb_ep *ep); ep 149 include/linux/usb/gadget.h int (*fifo_status) (struct usb_ep *ep); ep 150 include/linux/usb/gadget.h void (*fifo_flush) (struct usb_ep *ep); ep 244 include/linux/usb/gadget.h void usb_ep_set_maxpacket_limit(struct usb_ep *ep, unsigned maxpacket_limit); ep 245 include/linux/usb/gadget.h int usb_ep_enable(struct usb_ep *ep); ep 246 include/linux/usb/gadget.h int usb_ep_disable(struct usb_ep *ep); ep 247 include/linux/usb/gadget.h struct usb_request *usb_ep_alloc_request(struct usb_ep *ep, gfp_t gfp_flags); ep 248 include/linux/usb/gadget.h void usb_ep_free_request(struct usb_ep *ep, struct usb_request *req); ep 249 include/linux/usb/gadget.h int usb_ep_queue(struct usb_ep *ep, struct usb_request *req, gfp_t gfp_flags); ep 250 include/linux/usb/gadget.h int usb_ep_dequeue(struct usb_ep *ep, struct usb_request *req); ep 251 include/linux/usb/gadget.h int usb_ep_set_halt(struct usb_ep *ep); ep 252 include/linux/usb/gadget.h int usb_ep_clear_halt(struct usb_ep *ep); ep 253 include/linux/usb/gadget.h int usb_ep_set_wedge(struct usb_ep *ep); ep 254 include/linux/usb/gadget.h int usb_ep_fifo_status(struct usb_ep *ep); ep 255 include/linux/usb/gadget.h void usb_ep_fifo_flush(struct usb_ep *ep); ep 257 include/linux/usb/gadget.h static inline void usb_ep_set_maxpacket_limit(struct usb_ep *ep, ep 260 include/linux/usb/gadget.h static inline int usb_ep_enable(struct usb_ep *ep) ep 262 include/linux/usb/gadget.h static inline int usb_ep_disable(struct usb_ep *ep) ep 264 include/linux/usb/gadget.h static inline struct usb_request *usb_ep_alloc_request(struct usb_ep *ep, ep 267 include/linux/usb/gadget.h static inline void usb_ep_free_request(struct usb_ep *ep, ep 270 include/linux/usb/gadget.h static inline int usb_ep_queue(struct usb_ep *ep, struct usb_request *req, ep 273 include/linux/usb/gadget.h static inline int usb_ep_dequeue(struct usb_ep *ep, struct usb_request *req) ep 275 include/linux/usb/gadget.h static inline int usb_ep_set_halt(struct usb_ep *ep) ep 277 include/linux/usb/gadget.h static inline int usb_ep_clear_halt(struct usb_ep *ep) ep 279 include/linux/usb/gadget.h static inline int usb_ep_set_wedge(struct usb_ep *ep) ep 281 include/linux/usb/gadget.h static inline int usb_ep_fifo_status(struct usb_ep *ep) ep 283 include/linux/usb/gadget.h static inline void usb_ep_fifo_flush(struct usb_ep *ep) ep 453 include/linux/usb/gadget.h static inline size_t usb_ep_align(struct usb_ep *ep, size_t len) ep 455 include/linux/usb/gadget.h int max_packet_size = (size_t)usb_endpoint_maxp(ep->desc) & 0x7ff; ep 471 include/linux/usb/gadget.h usb_ep_align_maybe(struct usb_gadget *g, struct usb_ep *ep, size_t len) ep 473 include/linux/usb/gadget.h return g->quirk_ep_out_aligned_size ? usb_ep_align(ep, len) : len; ep 856 include/linux/usb/gadget.h extern void usb_gadget_giveback_request(struct usb_ep *ep, ep 871 include/linux/usb/gadget.h struct usb_ep *ep, struct usb_endpoint_descriptor *desc, ep 313 include/linux/usb/hcd.h struct usb_host_endpoint *ep); ep 318 include/linux/usb/hcd.h struct usb_host_endpoint *ep); ep 421 include/linux/usb/hcd.h struct usb_host_endpoint *ep) ep 423 include/linux/usb/hcd.h return hcd->high_prio_bh.completing_ep == ep; ep 445 include/linux/usb/hcd.h struct usb_host_endpoint *ep); ep 447 include/linux/usb/hcd.h struct usb_host_endpoint *ep); ep 449 include/linux/usb/hcd.h struct usb_host_endpoint *ep); ep 515 include/linux/usb/hcd.h #define usb_gettoggle(dev, ep, out) (((dev)->toggle[out] >> (ep)) & 1) ep 516 include/linux/usb/hcd.h #define usb_dotoggle(dev, ep, out) ((dev)->toggle[out] ^= (1 << (ep))) ep 517 include/linux/usb/hcd.h #define usb_settoggle(dev, ep, out, bit) \ ep 518 include/linux/usb/hcd.h ((dev)->toggle[out] = ((dev)->toggle[out] & ~(1 << (ep))) | \ ep 519 include/linux/usb/hcd.h ((bit) << (ep))) ep 570 include/linux/usb/hcd.h struct usb_host_endpoint *ep; ep 44 include/linux/usb/musb.h #define MUSB_EP_FIFO(ep, st, m, pkt) \ ep 46 include/linux/usb/musb.h .hw_ep_num = ep, \ ep 52 include/linux/usb/musb.h #define MUSB_EP_FIFO_SINGLE(ep, st, pkt) \ ep 53 include/linux/usb/musb.h MUSB_EP_FIFO(ep, st, BUF_SINGLE, pkt) ep 55 include/linux/usb/musb.h #define MUSB_EP_FIFO_DOUBLE(ep, st, pkt) \ ep 56 include/linux/usb/musb.h MUSB_EP_FIFO(ep, st, BUF_DOUBLE, pkt) ep 48 include/linux/usbdevice_fs.h compat_uint_t ep; ep 77 include/net/sctp/auth.h int sctp_auth_asoc_copy_shkeys(const struct sctp_endpoint *ep, ep 80 include/net/sctp/auth.h int sctp_auth_init_hmacs(struct sctp_endpoint *ep, gfp_t gfp); ep 99 include/net/sctp/auth.h int sctp_auth_ep_add_chunkid(struct sctp_endpoint *ep, __u8 chunk_id); ep 100 include/net/sctp/auth.h int sctp_auth_ep_set_hmacs(struct sctp_endpoint *ep, ep 102 include/net/sctp/auth.h int sctp_auth_set_key(struct sctp_endpoint *ep, struct sctp_association *asoc, ep 104 include/net/sctp/auth.h int sctp_auth_set_active_key(struct sctp_endpoint *ep, ep 106 include/net/sctp/auth.h int sctp_auth_del_key_id(struct sctp_endpoint *ep, ep 108 include/net/sctp/auth.h int sctp_auth_deact_key_id(struct sctp_endpoint *ep, ep 110 include/net/sctp/auth.h int sctp_auth_init(struct sctp_endpoint *ep, gfp_t gfp); ep 111 include/net/sctp/auth.h void sctp_auth_free(struct sctp_endpoint *ep); ep 140 include/net/sctp/sctp.h int sctp_hash_endpoint(struct sctp_endpoint *ep); ep 164 include/net/sctp/sctp.h const struct sctp_endpoint *ep, ep 163 include/net/sctp/structs.h struct sctp_endpoint *ep; ep 1351 include/net/sctp/structs.h struct sctp_endpoint *ep; ep 1353 include/net/sctp/structs.h ep = container_of(base, struct sctp_endpoint, base); ep 1354 include/net/sctp/structs.h return ep; ep 1364 include/net/sctp/structs.h const struct sctp_endpoint *ep, ep 1367 include/net/sctp/structs.h bool sctp_endpoint_is_peeled_off(struct sctp_endpoint *ep, ep 1374 include/net/sctp/structs.h int sctp_verify_init(struct net *net, const struct sctp_endpoint *ep, ep 1569 include/net/sctp/structs.h struct sctp_endpoint *ep; ep 2103 include/net/sctp/structs.h sctp_association_new(const struct sctp_endpoint *ep, const struct sock *sk, ep 631 include/scsi/fc_encode.h struct fc_exch *ep = fc_seq_exch(fr_seq(fp)); ep 637 include/scsi/fc_encode.h rec->rec_ox_id = htons(ep->oxid); ep 638 include/scsi/fc_encode.h rec->rec_rx_id = htons(ep->rxid); ep 79 include/scsi/scsi_transport_iscsi.h struct iscsi_cls_session *(*create_session) (struct iscsi_endpoint *ep, ep 93 include/scsi/scsi_transport_iscsi.h int (*get_ep_param) (struct iscsi_endpoint *ep, enum iscsi_param param, ep 124 include/scsi/scsi_transport_iscsi.h int (*ep_poll) (struct iscsi_endpoint *ep, int timeout_ms); ep 125 include/scsi/scsi_transport_iscsi.h void (*ep_disconnect) (struct iscsi_endpoint *ep); ep 197 include/scsi/scsi_transport_iscsi.h struct iscsi_endpoint *ep; ep 431 include/scsi/scsi_transport_iscsi.h extern void iscsi_destroy_endpoint(struct iscsi_endpoint *ep); ep 369 include/sound/soc-component.h struct device_node *ep); ep 1311 include/sound/soc.h int snd_soc_get_dai_id(struct device_node *ep); ep 52 include/trace/events/sctp.h TP_PROTO(const struct sctp_endpoint *ep, ep 56 include/trace/events/sctp.h TP_ARGS(ep, asoc, chunk), ep 73 include/trace/events/sctp.h __entry->bind_port = ep->base.bind_addr.port; ep 116 include/uapi/linux/ethtool.h static inline void ethtool_cmd_speed_set(struct ethtool_cmd *ep, ep 119 include/uapi/linux/ethtool.h ep->speed = (__u16)(speed & 0xFFFF); ep 120 include/uapi/linux/ethtool.h ep->speed_hi = (__u16)(speed >> 16); ep 123 include/uapi/linux/ethtool.h static inline __u32 ethtool_cmd_speed(const struct ethtool_cmd *ep) ep 125 include/uapi/linux/ethtool.h return (ep->speed_hi << 16) | ep->speed; ep 51 include/uapi/linux/usbdevice_fs.h unsigned int ep; ep 231 kernel/debug/kdb/kdb_main.c char **ep = __env; ep 236 kernel/debug/kdb/kdb_main.c char *e = *ep++; ep 272 kernel/debug/kdb/kdb_main.c char *ep = NULL; ep 275 kernel/debug/kdb/kdb_main.c ep = &envbuffer[envbufsize]; ep 278 kernel/debug/kdb/kdb_main.c return ep; ep 293 kernel/debug/kdb/kdb_main.c char *ep; ep 295 kernel/debug/kdb/kdb_main.c ep = kdbgetenv(match); ep 296 kernel/debug/kdb/kdb_main.c if (!ep) ep 298 kernel/debug/kdb/kdb_main.c if (strlen(ep) == 0) ep 301 kernel/debug/kdb/kdb_main.c *value = simple_strtoul(ep, NULL, 0); ep 385 kernel/debug/kdb/kdb_main.c char *ep; ep 428 kernel/debug/kdb/kdb_main.c ep = kdballocenv(varlen + vallen + 2); ep 429 kernel/debug/kdb/kdb_main.c if (ep == (char *)0) ep 432 kernel/debug/kdb/kdb_main.c sprintf(ep, "%s=%s", argv[1], argv[2]); ep 434 kernel/debug/kdb/kdb_main.c ep[varlen+vallen+1] = '\0'; ep 441 kernel/debug/kdb/kdb_main.c __env[i] = ep; ep 451 kernel/debug/kdb/kdb_main.c __env[i] = ep; ep 30 lib/mpi/mpi-pow.c mpi_ptr_t rp, ep, mp, bp; ep 47 lib/mpi/mpi-pow.c ep = exp->d; ep 108 lib/mpi/mpi-pow.c if (rp == ep || rp == mp || rp == bp) { ep 127 lib/mpi/mpi-pow.c if (rp == ep) { ep 129 lib/mpi/mpi-pow.c ep = ep_marker = mpi_alloc_limb_space(esize); ep 130 lib/mpi/mpi-pow.c if (!ep) ep 132 lib/mpi/mpi-pow.c MPN_COPY(ep, rp, esize); ep 159 lib/mpi/mpi-pow.c negative_result = (ep[0] & 1) && base->sign; ep 162 lib/mpi/mpi-pow.c e = ep[i]; ep 251 lib/mpi/mpi-pow.c e = ep[i]; ep 187 net/netfilter/ipvs/ip_vs_ftp.c const char *ep; ep 204 net/netfilter/ipvs/ip_vs_ftp.c &ep) <= 0) ep 208 net/netfilter/ipvs/ip_vs_ftp.c &ep) <= 0) ep 211 net/netfilter/ipvs/ip_vs_ftp.c s = (char *) ep; ep 152 net/netfilter/ipvs/ip_vs_lblcr.c struct ip_vs_dest_set_elem *e, *ep; ep 154 net/netfilter/ipvs/ip_vs_lblcr.c list_for_each_entry_safe(e, ep, &set->list, list) { ep 122 net/qrtr/qrtr.c struct qrtr_endpoint *ep; ep 202 net/qrtr/qrtr.c if (node->ep) ep 203 net/qrtr/qrtr.c rc = node->ep->xmit(node->ep, skb); ep 251 net/qrtr/qrtr.c int qrtr_endpoint_post(struct qrtr_endpoint *ep, const void *data, size_t len) ep 253 net/qrtr/qrtr.c struct qrtr_node *node = ep->node; ep 418 net/qrtr/qrtr.c int qrtr_endpoint_register(struct qrtr_endpoint *ep, unsigned int nid) ep 422 net/qrtr/qrtr.c if (!ep || !ep->xmit) ep 434 net/qrtr/qrtr.c node->ep = ep; ep 441 net/qrtr/qrtr.c ep->node = node; ep 451 net/qrtr/qrtr.c void qrtr_endpoint_unregister(struct qrtr_endpoint *ep) ep 453 net/qrtr/qrtr.c struct qrtr_node *node = ep->node; ep 460 net/qrtr/qrtr.c node->ep = NULL; ep 471 net/qrtr/qrtr.c ep->node = NULL; ep 21 net/qrtr/qrtr.h int (*xmit)(struct qrtr_endpoint *ep, struct sk_buff *skb); ep 26 net/qrtr/qrtr.h int qrtr_endpoint_register(struct qrtr_endpoint *ep, unsigned int nid); ep 28 net/qrtr/qrtr.h void qrtr_endpoint_unregister(struct qrtr_endpoint *ep); ep 30 net/qrtr/qrtr.h int qrtr_endpoint_post(struct qrtr_endpoint *ep, const void *data, size_t len); ep 14 net/qrtr/smd.c struct qrtr_endpoint ep; ep 29 net/qrtr/smd.c rc = qrtr_endpoint_post(&qdev->ep, data, len); ep 40 net/qrtr/smd.c static int qcom_smd_qrtr_send(struct qrtr_endpoint *ep, struct sk_buff *skb) ep 42 net/qrtr/smd.c struct qrtr_smd_dev *qdev = container_of(ep, struct qrtr_smd_dev, ep); ep 70 net/qrtr/smd.c qdev->ep.xmit = qcom_smd_qrtr_send; ep 72 net/qrtr/smd.c rc = qrtr_endpoint_register(&qdev->ep, QRTR_EP_NID_AUTO); ep 87 net/qrtr/smd.c qrtr_endpoint_unregister(&qdev->ep); ep 13 net/qrtr/tun.c struct qrtr_endpoint ep; ep 19 net/qrtr/tun.c static int qrtr_tun_send(struct qrtr_endpoint *ep, struct sk_buff *skb) ep 21 net/qrtr/tun.c struct qrtr_tun *tun = container_of(ep, struct qrtr_tun, ep); ep 42 net/qrtr/tun.c tun->ep.xmit = qrtr_tun_send; ep 46 net/qrtr/tun.c return qrtr_endpoint_register(&tun->ep, QRTR_EP_NID_AUTO); ep 92 net/qrtr/tun.c ret = qrtr_endpoint_post(&tun->ep, kbuf, len); ep 116 net/qrtr/tun.c qrtr_endpoint_unregister(&tun->ep); ep 53 net/sctp/associola.c const struct sctp_endpoint *ep, ep 65 net/sctp/associola.c asoc->ep = (struct sctp_endpoint *)ep; ep 69 net/sctp/associola.c sctp_endpoint_hold(asoc->ep); ep 79 net/sctp/associola.c sctp_bind_addr_init(&asoc->base.bind_addr, ep->base.bind_addr.port); ep 172 net/sctp/associola.c asoc->c.my_vtag = sctp_generate_tag(ep); ep 173 net/sctp/associola.c asoc->c.my_port = ep->base.bind_addr.port; ep 175 net/sctp/associola.c asoc->c.initial_tsn = sctp_generate_tsn(ep); ep 252 net/sctp/associola.c if (sctp_auth_asoc_copy_shkeys(ep, asoc, gfp)) ep 255 net/sctp/associola.c asoc->active_key_id = ep->active_key_id; ep 256 net/sctp/associola.c asoc->strreset_enable = ep->strreset_enable; ep 259 net/sctp/associola.c if (ep->auth_hmacs_list) ep 260 net/sctp/associola.c memcpy(asoc->c.auth_hmacs, ep->auth_hmacs_list, ep 261 net/sctp/associola.c ntohs(ep->auth_hmacs_list->param_hdr.length)); ep 262 net/sctp/associola.c if (ep->auth_chunk_list) ep 263 net/sctp/associola.c memcpy(asoc->c.auth_chunks, ep->auth_chunk_list, ep 264 net/sctp/associola.c ntohs(ep->auth_chunk_list->param_hdr.length)); ep 278 net/sctp/associola.c sctp_endpoint_put(asoc->ep); ep 283 net/sctp/associola.c struct sctp_association *sctp_association_new(const struct sctp_endpoint *ep, ep 293 net/sctp/associola.c if (!sctp_association_init(asoc, ep, sk, scope, gfp)) ep 404 net/sctp/associola.c sctp_endpoint_put(asoc->ep); ep 983 net/sctp/associola.c struct sctp_endpoint *ep; ep 991 net/sctp/associola.c ep = asoc->ep; ep 1050 net/sctp/associola.c state, ep, asoc, chunk, GFP_ATOMIC); ep 1084 net/sctp/associola.c sctp_endpoint_put(assoc->ep); ep 1088 net/sctp/associola.c assoc->ep = newsp->ep; ep 1089 net/sctp/associola.c sctp_endpoint_hold(assoc->ep); ep 1096 net/sctp/associola.c sctp_endpoint_add_asoc(newsp->ep, assoc); ep 1537 net/sctp/associola.c if (asoc->ep->rcvbuf_policy) ep 1585 net/sctp/associola.c &asoc->ep->base.bind_addr, ep 1599 net/sctp/associola.c asoc->ep->base.bind_addr.port, gfp); ep 353 net/sctp/auth.c int sctp_auth_asoc_copy_shkeys(const struct sctp_endpoint *ep, ep 362 net/sctp/auth.c key_for_each(sh_key, &ep->endpoint_shared_keys) { ep 454 net/sctp/auth.c int sctp_auth_init_hmacs(struct sctp_endpoint *ep, gfp_t gfp) ep 460 net/sctp/auth.c if (ep->auth_hmacs) ep 464 net/sctp/auth.c ep->auth_hmacs = kcalloc(SCTP_AUTH_NUM_HMACS, ep 467 net/sctp/auth.c if (!ep->auth_hmacs) ep 481 net/sctp/auth.c if (ep->auth_hmacs[id]) ep 489 net/sctp/auth.c ep->auth_hmacs[id] = tfm; ep 496 net/sctp/auth.c sctp_auth_destroy_hmacs(ep->auth_hmacs); ep 608 net/sctp/auth.c struct sctp_endpoint *ep; ep 619 net/sctp/auth.c ep = asoc->ep; ep 628 net/sctp/auth.c if (ep->auth_hmacs[id]) { ep 738 net/sctp/auth.c tfm = asoc->ep->auth_hmacs[hmac_id]; ep 761 net/sctp/auth.c int sctp_auth_ep_add_chunkid(struct sctp_endpoint *ep, __u8 chunk_id) ep 763 net/sctp/auth.c struct sctp_chunks_param *p = ep->auth_chunk_list; ep 783 net/sctp/auth.c int sctp_auth_ep_set_hmacs(struct sctp_endpoint *ep, ep 810 net/sctp/auth.c ep->auth_hmacs_list->hmac_ids[i] = ep 812 net/sctp/auth.c ep->auth_hmacs_list->param_hdr.length = ep 822 net/sctp/auth.c int sctp_auth_set_key(struct sctp_endpoint *ep, ep 839 net/sctp/auth.c if (!ep->auth_enable) ep 841 net/sctp/auth.c sh_keys = &ep->endpoint_shared_keys; ep 874 net/sctp/auth.c int sctp_auth_set_active_key(struct sctp_endpoint *ep, ep 888 net/sctp/auth.c if (!ep->auth_enable) ep 890 net/sctp/auth.c sh_keys = &ep->endpoint_shared_keys; ep 907 net/sctp/auth.c ep->active_key_id = key_id; ep 912 net/sctp/auth.c int sctp_auth_del_key_id(struct sctp_endpoint *ep, ep 931 net/sctp/auth.c if (!ep->auth_enable) ep 933 net/sctp/auth.c if (ep->active_key_id == key_id) ep 936 net/sctp/auth.c sh_keys = &ep->endpoint_shared_keys; ep 956 net/sctp/auth.c int sctp_auth_deact_key_id(struct sctp_endpoint *ep, ep 974 net/sctp/auth.c if (!ep->auth_enable) ep 976 net/sctp/auth.c if (ep->active_key_id == key_id) ep 979 net/sctp/auth.c sh_keys = &ep->endpoint_shared_keys; ep 1011 net/sctp/auth.c int sctp_auth_init(struct sctp_endpoint *ep, gfp_t gfp) ep 1019 net/sctp/auth.c if (!ep->auth_hmacs_list) { ep 1035 net/sctp/auth.c ep->auth_hmacs_list = auth_hmacs; ep 1038 net/sctp/auth.c if (!ep->auth_chunk_list) { ep 1049 net/sctp/auth.c ep->auth_chunk_list = auth_chunks; ep 1055 net/sctp/auth.c err = sctp_auth_init_hmacs(ep, gfp); ep 1063 net/sctp/auth.c kfree(ep->auth_hmacs_list); ep 1064 net/sctp/auth.c kfree(ep->auth_chunk_list); ep 1065 net/sctp/auth.c ep->auth_hmacs_list = NULL; ep 1066 net/sctp/auth.c ep->auth_chunk_list = NULL; ep 1070 net/sctp/auth.c void sctp_auth_free(struct sctp_endpoint *ep) ep 1072 net/sctp/auth.c kfree(ep->auth_hmacs_list); ep 1073 net/sctp/auth.c kfree(ep->auth_chunk_list); ep 1074 net/sctp/auth.c ep->auth_hmacs_list = NULL; ep 1075 net/sctp/auth.c ep->auth_chunk_list = NULL; ep 1076 net/sctp/auth.c sctp_auth_destroy_hmacs(ep->auth_hmacs); ep 1077 net/sctp/auth.c ep->auth_hmacs = NULL; ep 328 net/sctp/bind_addr.c struct sctp_bind_addr *bp2 = &sp2->ep->base.bind_addr; ep 329 net/sctp/bind_addr.c struct sctp_bind_addr *bp = &sp->ep->base.bind_addr; ep 541 net/sctp/bind_addr.c bp = &sctp_sk(sk)->ep->base.bind_addr; ep 131 net/sctp/diag.c struct sctp_endpoint *ep = sctp_sk(sk)->ep; ep 163 net/sctp/diag.c if (asoc && asoc->ep->sndbuf_policy) ep 168 net/sctp/diag.c if (asoc && asoc->ep->rcvbuf_policy) ep 201 net/sctp/diag.c : &ep->base.bind_addr.address_list; ep 297 net/sctp/diag.c struct sctp_endpoint *ep = tsp->asoc->ep; ep 299 net/sctp/diag.c struct sock *sk = ep->base.sk; ep 307 net/sctp/diag.c list_for_each_entry(assoc, &ep->asocs, asocs) { ep 351 net/sctp/diag.c struct sctp_endpoint *ep = tsp->asoc->ep; ep 353 net/sctp/diag.c struct sock *sk = ep->base.sk; ep 356 net/sctp/diag.c list_entry(ep->asocs.next, struct sctp_association, asocs); ep 368 net/sctp/diag.c static int sctp_ep_dump(struct sctp_endpoint *ep, void *p) ep 371 net/sctp/diag.c struct sock *sk = ep->base.sk; ep 385 net/sctp/diag.c if (!(r->idiag_states & TCPF_LISTEN) && !list_empty(&ep->asocs)) ep 41 net/sctp/endpointola.c static struct sctp_endpoint *sctp_endpoint_init(struct sctp_endpoint *ep, ep 48 net/sctp/endpointola.c ep->digest = kzalloc(SCTP_SIGNATURE_SIZE, gfp); ep 49 net/sctp/endpointola.c if (!ep->digest) ep 52 net/sctp/endpointola.c ep->asconf_enable = net->sctp.addip_enable; ep 53 net/sctp/endpointola.c ep->auth_enable = net->sctp.auth_enable; ep 54 net/sctp/endpointola.c if (ep->auth_enable) { ep 55 net/sctp/endpointola.c if (sctp_auth_init(ep, gfp)) ep 57 net/sctp/endpointola.c if (ep->asconf_enable) { ep 58 net/sctp/endpointola.c sctp_auth_ep_add_chunkid(ep, SCTP_CID_ASCONF); ep 59 net/sctp/endpointola.c sctp_auth_ep_add_chunkid(ep, SCTP_CID_ASCONF_ACK); ep 65 net/sctp/endpointola.c ep->base.type = SCTP_EP_TYPE_SOCKET; ep 68 net/sctp/endpointola.c refcount_set(&ep->base.refcnt, 1); ep 69 net/sctp/endpointola.c ep->base.dead = false; ep 72 net/sctp/endpointola.c sctp_inq_init(&ep->base.inqueue); ep 75 net/sctp/endpointola.c sctp_inq_set_th_handler(&ep->base.inqueue, sctp_endpoint_bh_rcv); ep 78 net/sctp/endpointola.c sctp_bind_addr_init(&ep->base.bind_addr, 0); ep 81 net/sctp/endpointola.c INIT_LIST_HEAD(&ep->asocs); ep 84 net/sctp/endpointola.c ep->sndbuf_policy = net->sctp.sndbuf_policy; ep 91 net/sctp/endpointola.c ep->rcvbuf_policy = net->sctp.rcvbuf_policy; ep 94 net/sctp/endpointola.c get_random_bytes(ep->secret_key, sizeof(ep->secret_key)); ep 97 net/sctp/endpointola.c INIT_LIST_HEAD(&ep->endpoint_shared_keys); ep 102 net/sctp/endpointola.c list_add(&null_key->key_list, &ep->endpoint_shared_keys); ep 107 net/sctp/endpointola.c ep->prsctp_enable = net->sctp.prsctp_enable; ep 108 net/sctp/endpointola.c ep->reconf_enable = net->sctp.reconf_enable; ep 109 net/sctp/endpointola.c ep->ecn_enable = net->sctp.ecn_enable; ep 112 net/sctp/endpointola.c ep->base.sk = sk; ep 113 net/sctp/endpointola.c ep->base.net = sock_net(sk); ep 114 net/sctp/endpointola.c sock_hold(ep->base.sk); ep 116 net/sctp/endpointola.c return ep; ep 119 net/sctp/endpointola.c sctp_auth_free(ep); ep 121 net/sctp/endpointola.c kfree(ep->digest); ep 131 net/sctp/endpointola.c struct sctp_endpoint *ep; ep 134 net/sctp/endpointola.c ep = kzalloc(sizeof(*ep), gfp); ep 135 net/sctp/endpointola.c if (!ep) ep 138 net/sctp/endpointola.c if (!sctp_endpoint_init(ep, sk, gfp)) ep 141 net/sctp/endpointola.c SCTP_DBG_OBJCNT_INC(ep); ep 142 net/sctp/endpointola.c return ep; ep 145 net/sctp/endpointola.c kfree(ep); ep 151 net/sctp/endpointola.c void sctp_endpoint_add_asoc(struct sctp_endpoint *ep, ep 154 net/sctp/endpointola.c struct sock *sk = ep->base.sk; ep 164 net/sctp/endpointola.c list_add_tail(&asoc->asocs, &ep->asocs); ep 174 net/sctp/endpointola.c void sctp_endpoint_free(struct sctp_endpoint *ep) ep 176 net/sctp/endpointola.c ep->base.dead = true; ep 178 net/sctp/endpointola.c inet_sk_set_state(ep->base.sk, SCTP_SS_CLOSED); ep 181 net/sctp/endpointola.c sctp_unhash_endpoint(ep); ep 183 net/sctp/endpointola.c sctp_endpoint_put(ep); ep 187 net/sctp/endpointola.c static void sctp_endpoint_destroy(struct sctp_endpoint *ep) ep 191 net/sctp/endpointola.c if (unlikely(!ep->base.dead)) { ep 192 net/sctp/endpointola.c WARN(1, "Attempt to destroy undead endpoint %p!\n", ep); ep 197 net/sctp/endpointola.c kfree(ep->digest); ep 202 net/sctp/endpointola.c sctp_auth_destroy_keys(&ep->endpoint_shared_keys); ep 203 net/sctp/endpointola.c sctp_auth_free(ep); ep 206 net/sctp/endpointola.c sctp_inq_free(&ep->base.inqueue); ep 207 net/sctp/endpointola.c sctp_bind_addr_free(&ep->base.bind_addr); ep 209 net/sctp/endpointola.c memset(ep->secret_key, 0, sizeof(ep->secret_key)); ep 211 net/sctp/endpointola.c sk = ep->base.sk; ep 216 net/sctp/endpointola.c sctp_sk(sk)->ep = NULL; ep 220 net/sctp/endpointola.c kfree(ep); ep 221 net/sctp/endpointola.c SCTP_DBG_OBJCNT_DEC(ep); ep 225 net/sctp/endpointola.c void sctp_endpoint_hold(struct sctp_endpoint *ep) ep 227 net/sctp/endpointola.c refcount_inc(&ep->base.refcnt); ep 233 net/sctp/endpointola.c void sctp_endpoint_put(struct sctp_endpoint *ep) ep 235 net/sctp/endpointola.c if (refcount_dec_and_test(&ep->base.refcnt)) ep 236 net/sctp/endpointola.c sctp_endpoint_destroy(ep); ep 240 net/sctp/endpointola.c struct sctp_endpoint *sctp_endpoint_is_match(struct sctp_endpoint *ep, ep 246 net/sctp/endpointola.c if ((htons(ep->base.bind_addr.port) == laddr->v4.sin_port) && ep 247 net/sctp/endpointola.c net_eq(sock_net(ep->base.sk), net)) { ep 248 net/sctp/endpointola.c if (sctp_bind_addr_match(&ep->base.bind_addr, laddr, ep 249 net/sctp/endpointola.c sctp_sk(ep->base.sk))) ep 250 net/sctp/endpointola.c retval = ep; ep 261 net/sctp/endpointola.c const struct sctp_endpoint *ep, ep 273 net/sctp/endpointola.c if (!ep->base.bind_addr.port) ep 277 net/sctp/endpointola.c t = sctp_epaddr_lookup_transport(ep, paddr); ep 291 net/sctp/endpointola.c bool sctp_endpoint_is_peeled_off(struct sctp_endpoint *ep, ep 296 net/sctp/endpointola.c struct net *net = sock_net(ep->base.sk); ep 298 net/sctp/endpointola.c bp = &ep->base.bind_addr; ep 315 net/sctp/endpointola.c struct sctp_endpoint *ep = ep 329 net/sctp/endpointola.c if (ep->base.dead) ep 333 net/sctp/endpointola.c inqueue = &ep->base.inqueue; ep 334 net/sctp/endpointola.c sk = ep->base.sk; ep 370 net/sctp/endpointola.c asoc = sctp_endpoint_lookup_assoc(ep, ep 387 net/sctp/endpointola.c SCTP_INC_STATS(sock_net(ep->base.sk), SCTP_MIB_INCTRLCHUNKS); ep 396 net/sctp/endpointola.c ep, asoc, chunk, GFP_ATOMIC); ep 404 net/sctp/endpointola.c if (!sctp_sk(sk)->ep) ep 89 net/sctp/input.c struct sctp_endpoint *ep = NULL; ep 162 net/sctp/input.c ep = __sctp_rcv_lookup_endpoint(net, skb, &dest, &src); ep 165 net/sctp/input.c rcvr = asoc ? &asoc->base : &ep->base; ep 178 net/sctp/input.c sctp_endpoint_put(ep); ep 179 net/sctp/input.c ep = NULL; ep 182 net/sctp/input.c ep = sctp_sk(sk)->ep; ep 183 net/sctp/input.c sctp_endpoint_hold(ep); ep 184 net/sctp/input.c rcvr = &ep->base; ep 265 net/sctp/input.c sctp_endpoint_put(ep); ep 279 net/sctp/input.c sctp_endpoint_put(ep); ep 465 net/sctp/input.c asoc->state, asoc->ep, asoc, t, ep 718 net/sctp/input.c static int __sctp_hash_endpoint(struct sctp_endpoint *ep) ep 720 net/sctp/input.c struct sock *sk = ep->base.sk; ep 725 net/sctp/input.c epb = &ep->base; ep 735 net/sctp/input.c list_for_each(list, &ep->base.bind_addr.address_list) ep 772 net/sctp/input.c int sctp_hash_endpoint(struct sctp_endpoint *ep) ep 777 net/sctp/input.c err = __sctp_hash_endpoint(ep); ep 784 net/sctp/input.c static void __sctp_unhash_endpoint(struct sctp_endpoint *ep) ep 786 net/sctp/input.c struct sock *sk = ep->base.sk; ep 790 net/sctp/input.c epb = &ep->base; ep 805 net/sctp/input.c void sctp_unhash_endpoint(struct sctp_endpoint *ep) ep 808 net/sctp/input.c __sctp_unhash_endpoint(ep); ep 834 net/sctp/input.c struct sctp_endpoint *ep; ep 844 net/sctp/input.c ep = sctp_ep(epb); ep 845 net/sctp/input.c if (sctp_endpoint_is_match(ep, net, laddr)) ep 849 net/sctp/input.c ep = sctp_sk(net->sctp.ctl_sock)->ep; ep 852 net/sctp/input.c sk = ep->base.sk; ep 859 net/sctp/input.c ep = sctp_sk(sk)->ep; ep 861 net/sctp/input.c sctp_endpoint_hold(ep); ep 863 net/sctp/input.c return ep; ep 949 net/sctp/input.c if (transport->asoc->ep == t->asoc->ep) { ep 1004 net/sctp/input.c const struct sctp_endpoint *ep, ep 1007 net/sctp/input.c struct net *net = sock_net(ep->base.sk); ep 1013 net/sctp/input.c .lport = htons(ep->base.bind_addr.port), ep 1020 net/sctp/input.c if (ep == t->asoc->ep) ep 32 net/sctp/objcnt.c SCTP_DBG_OBJCNT(ep); ep 47 net/sctp/objcnt.c SCTP_DBG_OBJCNT_ENTRY(ep), ep 43 net/sctp/primitive.c struct sctp_endpoint *ep; \ ep 48 net/sctp/primitive.c ep = asoc ? asoc->ep : NULL; \ ep 50 net/sctp/primitive.c error = sctp_do_sm(net, event_type, subtype, state, ep, asoc, \ ep 165 net/sctp/proc.c struct sctp_endpoint *ep; ep 175 net/sctp/proc.c ep = sctp_ep(epb); ep 179 net/sctp/proc.c seq_printf(seq, "%8pK %8pK %-3d %-3d %-4d %-5d %5u %5lu ", ep, sk, ep 58 net/sctp/sm_make_chunk.c const struct sctp_endpoint *ep, ep 215 net/sctp/sm_make_chunk.c struct sctp_endpoint *ep = asoc->ep; ep 248 net/sctp/sm_make_chunk.c if (asoc->ep->ecn_enable) ep 251 net/sctp/sm_make_chunk.c if (asoc->ep->prsctp_enable) ep 259 net/sctp/sm_make_chunk.c if (asoc->ep->asconf_enable) { ep 265 net/sctp/sm_make_chunk.c if (asoc->ep->reconf_enable) { ep 273 net/sctp/sm_make_chunk.c if (asoc->ep->intl_enable) { ep 281 net/sctp/sm_make_chunk.c if (ep->auth_enable) { ep 340 net/sctp/sm_make_chunk.c if (asoc->ep->ecn_enable) ep 353 net/sctp/sm_make_chunk.c if (asoc->ep->prsctp_enable) ep 364 net/sctp/sm_make_chunk.c if (ep->auth_enable) { ep 411 net/sctp/sm_make_chunk.c cookie = sctp_pack_cookie(asoc->ep, asoc, chunk, &cookie_len, ep 1583 net/sctp/sm_make_chunk.c struct sctp_association *sctp_make_temp_asoc(const struct sctp_endpoint *ep, ep 1593 net/sctp/sm_make_chunk.c asoc = sctp_association_new(ep, ep->base.sk, scope, gfp); ep 1609 net/sctp/sm_make_chunk.c const struct sctp_endpoint *ep, ep 1672 net/sctp/sm_make_chunk.c if (sctp_sk(ep->base.sk)->hmac) { ep 1673 net/sctp/sm_make_chunk.c SHASH_DESC_ON_STACK(desc, sctp_sk(ep->base.sk)->hmac); ep 1677 net/sctp/sm_make_chunk.c desc->tfm = sctp_sk(ep->base.sk)->hmac; ep 1679 net/sctp/sm_make_chunk.c err = crypto_shash_setkey(desc->tfm, ep->secret_key, ep 1680 net/sctp/sm_make_chunk.c sizeof(ep->secret_key)) ?: ep 1699 net/sctp/sm_make_chunk.c const struct sctp_endpoint *ep, ep 1709 net/sctp/sm_make_chunk.c __u8 *digest = ep->digest; ep 1739 net/sctp/sm_make_chunk.c if (!sctp_sk(ep->base.sk)->hmac) ep 1744 net/sctp/sm_make_chunk.c SHASH_DESC_ON_STACK(desc, sctp_sk(ep->base.sk)->hmac); ep 1747 net/sctp/sm_make_chunk.c desc->tfm = sctp_sk(ep->base.sk)->hmac; ep 1749 net/sctp/sm_make_chunk.c err = crypto_shash_setkey(desc->tfm, ep->secret_key, ep 1750 net/sctp/sm_make_chunk.c sizeof(ep->secret_key)) ?: ep 1793 net/sctp/sm_make_chunk.c if (sock_flag(ep->base.sk, SOCK_TIMESTAMP)) ep 1823 net/sctp/sm_make_chunk.c retval = sctp_association_new(ep, ep->base.sk, scope, gfp); ep 1974 net/sctp/sm_make_chunk.c const struct sctp_endpoint *ep, ep 2002 net/sctp/sm_make_chunk.c if (ep->asconf_enable && !have_auth && have_asconf) ep 2017 net/sctp/sm_make_chunk.c if (asoc->ep->reconf_enable) ep 2021 net/sctp/sm_make_chunk.c if (asoc->ep->prsctp_enable) ep 2028 net/sctp/sm_make_chunk.c if (asoc->ep->auth_enable) ep 2033 net/sctp/sm_make_chunk.c if (asoc->ep->asconf_enable) ep 2037 net/sctp/sm_make_chunk.c if (asoc->ep->intl_enable) ep 2125 net/sctp/sm_make_chunk.c const struct sctp_endpoint *ep, ep 2155 net/sctp/sm_make_chunk.c if (!sctp_verify_ext_param(net, ep, param)) ep 2160 net/sctp/sm_make_chunk.c if (ep->asconf_enable) ep 2171 net/sctp/sm_make_chunk.c if (ep->prsctp_enable) ep 2176 net/sctp/sm_make_chunk.c if (!ep->auth_enable) ep 2193 net/sctp/sm_make_chunk.c if (!ep->auth_enable) ep 2209 net/sctp/sm_make_chunk.c if (!ep->auth_enable) ep 2245 net/sctp/sm_make_chunk.c int sctp_verify_init(struct net *net, const struct sctp_endpoint *ep, ep 2288 net/sctp/sm_make_chunk.c result = sctp_verify_param(net, ep, asoc, param, cid, ep 2499 net/sctp/sm_make_chunk.c struct sctp_endpoint *ep = asoc->ep; ep 2607 net/sctp/sm_make_chunk.c if (asoc->ep->ecn_enable) { ep 2620 net/sctp/sm_make_chunk.c if (!ep->asconf_enable) ep 2650 net/sctp/sm_make_chunk.c if (asoc->ep->prsctp_enable) { ep 2658 net/sctp/sm_make_chunk.c if (!ep->auth_enable) ep 2672 net/sctp/sm_make_chunk.c if (!ep->auth_enable) ep 2689 net/sctp/sm_make_chunk.c if (!ep->auth_enable) ep 2714 net/sctp/sm_make_chunk.c __u32 sctp_generate_tag(const struct sctp_endpoint *ep) ep 2729 net/sctp/sm_make_chunk.c __u32 sctp_generate_tsn(const struct sctp_endpoint *ep) ep 3067 net/sctp/sm_make_chunk.c if (security_sctp_bind_connect(asoc->ep->base.sk, ep 3139 net/sctp/sm_make_chunk.c if (security_sctp_bind_connect(asoc->ep->base.sk, ep 43 net/sctp/sm_sideeffect.c struct sctp_endpoint *ep, ep 52 net/sctp/sm_sideeffect.c struct sctp_endpoint *ep, ep 256 net/sctp/sm_sideeffect.c asoc->ep, asoc, ep 297 net/sctp/sm_sideeffect.c asoc->state, asoc->ep, asoc, ep 393 net/sctp/sm_sideeffect.c asoc->state, asoc->ep, asoc, ep 434 net/sctp/sm_sideeffect.c asoc->state, asoc->ep, asoc, transport, GFP_ATOMIC); ep 463 net/sctp/sm_sideeffect.c asoc->state, asoc->ep, asoc, ep 801 net/sctp/sm_sideeffect.c asoc->state, asoc->ep, asoc, NULL, ep 1111 net/sctp/sm_sideeffect.c ep, sctp_evttype_tbl[event_type], (*debug_fn)(subtype), \ ep 1120 net/sctp/sm_sideeffect.c asoc, sctp_state_tbl[(asoc && sctp_id2assoc(ep->base.sk, \ ep 1131 net/sctp/sm_sideeffect.c struct sctp_endpoint *ep, struct sctp_association *asoc, ep 1152 net/sctp/sm_sideeffect.c status = state_fn->fn(net, ep, asoc, subtype, event_arg, &commands); ep 1156 net/sctp/sm_sideeffect.c ep, &asoc, event_arg, status, ep 1169 net/sctp/sm_sideeffect.c struct sctp_endpoint *ep, ep 1185 net/sctp/sm_sideeffect.c ep, *asoc, ep 1255 net/sctp/sm_sideeffect.c struct sctp_endpoint *ep, ep 1262 net/sctp/sm_sideeffect.c struct sctp_sock *sp = sctp_sk(ep->base.sk); ep 1300 net/sctp/sm_sideeffect.c sctp_endpoint_add_asoc(ep, asoc); ep 52 net/sctp/sm_statefuns.c const struct sctp_endpoint *ep, ep 64 net/sctp/sm_statefuns.c const struct sctp_endpoint *ep, ep 71 net/sctp/sm_statefuns.c const struct sctp_endpoint *ep, ep 78 net/sctp/sm_statefuns.c const struct sctp_endpoint *ep, ep 85 net/sctp/sm_statefuns.c const struct sctp_endpoint *ep, ep 101 net/sctp/sm_statefuns.c const struct sctp_endpoint *ep, ep 110 net/sctp/sm_statefuns.c const struct sctp_endpoint *ep, ep 118 net/sctp/sm_statefuns.c const struct sctp_endpoint *ep, ep 126 net/sctp/sm_statefuns.c const struct sctp_endpoint *ep, ep 134 net/sctp/sm_statefuns.c const struct sctp_endpoint *ep, ep 146 net/sctp/sm_statefuns.c const struct sctp_endpoint *ep, ep 219 net/sctp/sm_statefuns.c const struct sctp_endpoint *ep, ep 228 net/sctp/sm_statefuns.c return sctp_sf_pdiscard(net, ep, asoc, type, arg, commands); ep 236 net/sctp/sm_statefuns.c return sctp_sf_violation_chunk(net, ep, asoc, type, arg, commands); ep 240 net/sctp/sm_statefuns.c return sctp_sf_violation_chunklen(net, ep, asoc, type, arg, ep 304 net/sctp/sm_statefuns.c const struct sctp_endpoint *ep, ep 317 net/sctp/sm_statefuns.c if (security_sctp_assoc_request((struct sctp_endpoint *)ep, ep 319 net/sctp/sm_statefuns.c return sctp_sf_pdiscard(net, ep, asoc, type, arg, commands); ep 331 net/sctp/sm_statefuns.c return sctp_sf_pdiscard(net, ep, asoc, type, arg, commands); ep 336 net/sctp/sm_statefuns.c if (ep == sctp_sk(net->sctp.ctl_sock)->ep) { ep 338 net/sctp/sm_statefuns.c return sctp_sf_tabort_8_4_8(net, ep, asoc, type, arg, commands); ep 345 net/sctp/sm_statefuns.c return sctp_sf_tabort_8_4_8(net, ep, asoc, type, arg, commands); ep 353 net/sctp/sm_statefuns.c return sctp_sf_pdiscard(net, ep, asoc, type, arg, commands); ep 361 net/sctp/sm_statefuns.c if (sctp_sstate(ep->base.sk, CLOSING)) ep 362 net/sctp/sm_statefuns.c return sctp_sf_tabort_8_4_8(net, ep, asoc, type, arg, commands); ep 366 net/sctp/sm_statefuns.c if (!sctp_verify_init(net, ep, asoc, chunk->chunk_hdr->type, ep 373 net/sctp/sm_statefuns.c packet = sctp_abort_pkt_new(net, ep, asoc, arg, ep 390 net/sctp/sm_statefuns.c return sctp_sf_tabort_8_4_8(net, ep, asoc, type, arg, ep 401 net/sctp/sm_statefuns.c new_asoc = sctp_make_temp_asoc(ep, chunk, GFP_ATOMIC); ep 503 net/sctp/sm_statefuns.c const struct sctp_endpoint *ep, ep 515 net/sctp/sm_statefuns.c return sctp_sf_pdiscard(net, ep, asoc, type, arg, commands); ep 522 net/sctp/sm_statefuns.c return sctp_sf_violation_chunk(net, ep, asoc, type, arg, commands); ep 526 net/sctp/sm_statefuns.c return sctp_sf_violation_chunklen(net, ep, asoc, type, arg, ep 533 net/sctp/sm_statefuns.c if (!sctp_verify_init(net, ep, asoc, chunk->chunk_hdr->type, ep 545 net/sctp/sm_statefuns.c packet = sctp_abort_pkt_new(net, ep, asoc, arg, ep 573 net/sctp/sm_statefuns.c return sctp_sf_pdiscard(net, ep, asoc, type, arg, commands); ep 685 net/sctp/sm_statefuns.c const struct sctp_endpoint *ep, ep 703 net/sctp/sm_statefuns.c if (ep == sctp_sk(net->sctp.ctl_sock)->ep) { ep 705 net/sctp/sm_statefuns.c return sctp_sf_tabort_8_4_8(net, ep, asoc, type, arg, commands); ep 714 net/sctp/sm_statefuns.c return sctp_sf_pdiscard(net, ep, asoc, type, arg, commands); ep 720 net/sctp/sm_statefuns.c sk = ep->base.sk; ep 723 net/sctp/sm_statefuns.c return sctp_sf_tabort_8_4_8(net, ep, asoc, type, arg, commands); ep 738 net/sctp/sm_statefuns.c new_asoc = sctp_unpack_cookie(ep, asoc, chunk, GFP_ATOMIC, &error, ep 756 net/sctp/sm_statefuns.c sctp_send_stale_cookie_err(net, ep, asoc, chunk, commands, ep 758 net/sctp/sm_statefuns.c return sctp_sf_pdiscard(net, ep, asoc, type, arg, commands); ep 762 net/sctp/sm_statefuns.c return sctp_sf_pdiscard(net, ep, asoc, type, arg, commands); ep 792 net/sctp/sm_statefuns.c return sctp_sf_pdiscard(net, ep, asoc, type, arg, commands); ep 899 net/sctp/sm_statefuns.c const struct sctp_endpoint *ep, ep 909 net/sctp/sm_statefuns.c return sctp_sf_pdiscard(net, ep, asoc, type, arg, commands); ep 915 net/sctp/sm_statefuns.c return sctp_sf_violation_chunklen(net, ep, asoc, type, arg, ep 927 net/sctp/sm_statefuns.c security_inet_conn_established(ep->base.sk, chunk->skb); ep 990 net/sctp/sm_statefuns.c const struct sctp_endpoint *ep, ep 1016 net/sctp/sm_statefuns.c const struct sctp_endpoint *ep, ep 1044 net/sctp/sm_statefuns.c sctp_sf_heartbeat(ep, asoc, type, arg, ep 1064 net/sctp/sm_statefuns.c const struct sctp_endpoint *ep, ep 1116 net/sctp/sm_statefuns.c const struct sctp_endpoint *ep, ep 1127 net/sctp/sm_statefuns.c return sctp_sf_pdiscard(net, ep, asoc, type, arg, commands); ep 1132 net/sctp/sm_statefuns.c return sctp_sf_violation_chunklen(net, ep, asoc, type, arg, ep 1144 net/sctp/sm_statefuns.c return sctp_sf_violation_paramlen(net, ep, asoc, type, arg, ep 1190 net/sctp/sm_statefuns.c const struct sctp_endpoint *ep, ep 1203 net/sctp/sm_statefuns.c return sctp_sf_pdiscard(net, ep, asoc, type, arg, commands); ep 1208 net/sctp/sm_statefuns.c return sctp_sf_violation_chunklen(net, ep, asoc, type, arg, ep 1272 net/sctp/sm_statefuns.c struct sctp_endpoint *ep; ep 1290 net/sctp/sm_statefuns.c ep = sctp_sk(net->sctp.ctl_sock)->ep; ep 1295 net/sctp/sm_statefuns.c pkt = sctp_abort_pkt_new(net, ep, NULL, init, errhdr, len); ep 1453 net/sctp/sm_statefuns.c const struct sctp_endpoint *ep, ep 1467 net/sctp/sm_statefuns.c if (security_sctp_assoc_request((struct sctp_endpoint *)ep, ep 1469 net/sctp/sm_statefuns.c return sctp_sf_pdiscard(net, ep, asoc, type, arg, commands); ep 1481 net/sctp/sm_statefuns.c return sctp_sf_pdiscard(net, ep, asoc, type, arg, commands); ep 1487 net/sctp/sm_statefuns.c return sctp_sf_tabort_8_4_8(net, ep, asoc, type, arg, commands); ep 1494 net/sctp/sm_statefuns.c return sctp_sf_violation_chunklen(net, ep, asoc, type, arg, ep 1504 net/sctp/sm_statefuns.c if (!sctp_verify_init(net, ep, asoc, chunk->chunk_hdr->type, ep 1511 net/sctp/sm_statefuns.c packet = sctp_abort_pkt_new(net, ep, asoc, arg, ep 1527 net/sctp/sm_statefuns.c return sctp_sf_tabort_8_4_8(net, ep, asoc, type, arg, ep 1539 net/sctp/sm_statefuns.c new_asoc = sctp_make_temp_asoc(ep, chunk, GFP_ATOMIC); ep 1671 net/sctp/sm_statefuns.c const struct sctp_endpoint *ep, ep 1680 net/sctp/sm_statefuns.c return sctp_sf_do_unexpected_init(net, ep, asoc, type, arg, commands); ep 1726 net/sctp/sm_statefuns.c const struct sctp_endpoint *ep, ep 1735 net/sctp/sm_statefuns.c return sctp_sf_do_unexpected_init(net, ep, asoc, type, arg, commands); ep 1750 net/sctp/sm_statefuns.c const struct sctp_endpoint *ep, ep 1759 net/sctp/sm_statefuns.c if (ep == sctp_sk(net->sctp.ctl_sock)->ep) ep 1760 net/sctp/sm_statefuns.c return sctp_sf_ootb(net, ep, asoc, type, arg, commands); ep 1762 net/sctp/sm_statefuns.c return sctp_sf_discard_chunk(net, ep, asoc, type, arg, commands); ep 1772 net/sctp/sm_statefuns.c const struct sctp_endpoint *ep, ep 1813 net/sctp/sm_statefuns.c disposition = sctp_sf_do_9_2_reshutack(net, ep, asoc, ep 1868 net/sctp/sm_statefuns.c return sctp_sf_do_9_2_start_shutdown(net, ep, asoc, ep 1894 net/sctp/sm_statefuns.c const struct sctp_endpoint *ep, ep 1975 net/sctp/sm_statefuns.c const struct sctp_endpoint *ep, ep 1998 net/sctp/sm_statefuns.c const struct sctp_endpoint *ep, ep 2110 net/sctp/sm_statefuns.c const struct sctp_endpoint *ep, ep 2129 net/sctp/sm_statefuns.c return sctp_sf_violation_chunklen(net, ep, asoc, type, arg, ep 2145 net/sctp/sm_statefuns.c new_asoc = sctp_unpack_cookie(ep, asoc, chunk, GFP_ATOMIC, &error, ep 2163 net/sctp/sm_statefuns.c sctp_send_stale_cookie_err(net, ep, asoc, chunk, commands, ep 2165 net/sctp/sm_statefuns.c return sctp_sf_pdiscard(net, ep, asoc, type, arg, commands); ep 2168 net/sctp/sm_statefuns.c return sctp_sf_pdiscard(net, ep, asoc, type, arg, commands); ep 2173 net/sctp/sm_statefuns.c if (security_sctp_assoc_request((struct sctp_endpoint *)ep, ep 2176 net/sctp/sm_statefuns.c return sctp_sf_pdiscard(net, ep, asoc, type, arg, commands); ep 2189 net/sctp/sm_statefuns.c retval = sctp_sf_do_dupcook_a(net, ep, asoc, chunk, commands, ep 2194 net/sctp/sm_statefuns.c retval = sctp_sf_do_dupcook_b(net, ep, asoc, chunk, commands, ep 2199 net/sctp/sm_statefuns.c retval = sctp_sf_do_dupcook_c(net, ep, asoc, chunk, commands, ep 2204 net/sctp/sm_statefuns.c retval = sctp_sf_do_dupcook_d(net, ep, asoc, chunk, commands, ep 2209 net/sctp/sm_statefuns.c retval = sctp_sf_pdiscard(net, ep, asoc, type, arg, commands); ep 2236 net/sctp/sm_statefuns.c const struct sctp_endpoint *ep, ep 2245 net/sctp/sm_statefuns.c return sctp_sf_pdiscard(net, ep, asoc, type, arg, commands); ep 2258 net/sctp/sm_statefuns.c return sctp_sf_pdiscard(net, ep, asoc, type, arg, commands); ep 2267 net/sctp/sm_statefuns.c return sctp_sf_discard_chunk(net, ep, asoc, type, arg, commands); ep 2270 net/sctp/sm_statefuns.c return sctp_sf_pdiscard(net, ep, asoc, type, arg, commands); ep 2272 net/sctp/sm_statefuns.c return __sctp_sf_do_9_1_abort(net, ep, asoc, type, arg, commands); ep 2282 net/sctp/sm_statefuns.c const struct sctp_endpoint *ep, ep 2291 net/sctp/sm_statefuns.c return sctp_sf_pdiscard(net, ep, asoc, type, arg, commands); ep 2304 net/sctp/sm_statefuns.c return sctp_sf_pdiscard(net, ep, asoc, type, arg, commands); ep 2313 net/sctp/sm_statefuns.c return sctp_sf_discard_chunk(net, ep, asoc, type, arg, commands); ep 2316 net/sctp/sm_statefuns.c return sctp_sf_pdiscard(net, ep, asoc, type, arg, commands); ep 2326 net/sctp/sm_statefuns.c return __sctp_sf_do_9_1_abort(net, ep, asoc, type, arg, commands); ep 2336 net/sctp/sm_statefuns.c const struct sctp_endpoint *ep, ep 2345 net/sctp/sm_statefuns.c return sctp_sf_shutdown_sent_abort(net, ep, asoc, type, arg, commands); ep 2364 net/sctp/sm_statefuns.c const struct sctp_endpoint *ep, ep 2374 net/sctp/sm_statefuns.c return sctp_sf_pdiscard(net, ep, asoc, type, arg, commands); ep 2380 net/sctp/sm_statefuns.c return sctp_sf_violation_chunklen(net, ep, asoc, type, arg, ep 2390 net/sctp/sm_statefuns.c return sctp_sf_do_5_2_6_stale(net, ep, asoc, type, ep 2399 net/sctp/sm_statefuns.c return sctp_sf_pdiscard(net, ep, asoc, type, arg, commands); ep 2429 net/sctp/sm_statefuns.c const struct sctp_endpoint *ep, ep 2552 net/sctp/sm_statefuns.c const struct sctp_endpoint *ep, ep 2561 net/sctp/sm_statefuns.c return sctp_sf_pdiscard(net, ep, asoc, type, arg, commands); ep 2574 net/sctp/sm_statefuns.c return sctp_sf_pdiscard(net, ep, asoc, type, arg, commands); ep 2583 net/sctp/sm_statefuns.c return sctp_sf_discard_chunk(net, ep, asoc, type, arg, commands); ep 2586 net/sctp/sm_statefuns.c return sctp_sf_pdiscard(net, ep, asoc, type, arg, commands); ep 2588 net/sctp/sm_statefuns.c return __sctp_sf_do_9_1_abort(net, ep, asoc, type, arg, commands); ep 2593 net/sctp/sm_statefuns.c const struct sctp_endpoint *ep, ep 2624 net/sctp/sm_statefuns.c const struct sctp_endpoint *ep, ep 2635 net/sctp/sm_statefuns.c return sctp_sf_pdiscard(net, ep, asoc, type, arg, commands); ep 2648 net/sctp/sm_statefuns.c return sctp_sf_pdiscard(net, ep, asoc, type, arg, commands); ep 2664 net/sctp/sm_statefuns.c const struct sctp_endpoint *ep, ep 2680 net/sctp/sm_statefuns.c const struct sctp_endpoint *ep, ep 2689 net/sctp/sm_statefuns.c return sctp_sf_cookie_wait_abort(net, ep, asoc, type, arg, commands); ep 2754 net/sctp/sm_statefuns.c const struct sctp_endpoint *ep, ep 2767 net/sctp/sm_statefuns.c return sctp_sf_pdiscard(net, ep, asoc, type, arg, commands); ep 2771 net/sctp/sm_statefuns.c return sctp_sf_violation_chunklen(net, ep, asoc, type, arg, ep 2792 net/sctp/sm_statefuns.c return sctp_sf_violation_ctsn(net, ep, asoc, type, arg, commands); ep 2816 net/sctp/sm_statefuns.c disposition = sctp_sf_do_9_2_shutdown_ack(net, ep, asoc, type, ep 2844 net/sctp/sm_statefuns.c const struct sctp_endpoint *ep, ep 2855 net/sctp/sm_statefuns.c return sctp_sf_pdiscard(net, ep, asoc, type, arg, commands); ep 2859 net/sctp/sm_statefuns.c return sctp_sf_violation_chunklen(net, ep, asoc, type, arg, ep 2877 net/sctp/sm_statefuns.c return sctp_sf_violation_ctsn(net, ep, asoc, type, arg, commands); ep 2898 net/sctp/sm_statefuns.c const struct sctp_endpoint *ep, ep 2909 net/sctp/sm_statefuns.c return sctp_sf_violation_chunklen(net, ep, asoc, type, arg, ep 2962 net/sctp/sm_statefuns.c const struct sctp_endpoint *ep, ep 2973 net/sctp/sm_statefuns.c return sctp_sf_pdiscard(net, ep, asoc, type, arg, commands); ep 2976 net/sctp/sm_statefuns.c return sctp_sf_violation_chunklen(net, ep, asoc, type, arg, ep 3018 net/sctp/sm_statefuns.c const struct sctp_endpoint *ep, ep 3027 net/sctp/sm_statefuns.c return sctp_sf_pdiscard(net, ep, asoc, type, arg, commands); ep 3030 net/sctp/sm_statefuns.c return sctp_sf_violation_chunklen(net, ep, asoc, type, arg, ep 3074 net/sctp/sm_statefuns.c const struct sctp_endpoint *ep, ep 3087 net/sctp/sm_statefuns.c return sctp_sf_pdiscard(net, ep, asoc, type, arg, commands); ep 3091 net/sctp/sm_statefuns.c return sctp_sf_violation_chunklen(net, ep, asoc, type, arg, ep 3109 net/sctp/sm_statefuns.c return sctp_sf_abort_violation(net, ep, asoc, chunk, commands, ep 3195 net/sctp/sm_statefuns.c const struct sctp_endpoint *ep, ep 3207 net/sctp/sm_statefuns.c return sctp_sf_pdiscard(net, ep, asoc, type, arg, commands); ep 3211 net/sctp/sm_statefuns.c return sctp_sf_violation_chunklen(net, ep, asoc, type, arg, ep 3225 net/sctp/sm_statefuns.c return sctp_sf_abort_violation(net, ep, asoc, chunk, commands, ep 3286 net/sctp/sm_statefuns.c const struct sctp_endpoint *ep, ep 3296 net/sctp/sm_statefuns.c trace_sctp_probe(ep, asoc, chunk); ep 3299 net/sctp/sm_statefuns.c return sctp_sf_pdiscard(net, ep, asoc, type, arg, commands); ep 3303 net/sctp/sm_statefuns.c return sctp_sf_violation_chunklen(net, ep, asoc, type, arg, ep 3310 net/sctp/sm_statefuns.c return sctp_sf_pdiscard(net, ep, asoc, type, arg, commands); ep 3332 net/sctp/sm_statefuns.c return sctp_sf_violation_ctsn(net, ep, asoc, type, arg, commands); ep 3363 net/sctp/sm_statefuns.c const struct sctp_endpoint *ep, ep 3391 net/sctp/sm_statefuns.c abort->skb->sk = ep->base.sk; ep 3400 net/sctp/sm_statefuns.c sctp_sf_pdiscard(net, ep, asoc, type, arg, commands); ep 3413 net/sctp/sm_statefuns.c const struct sctp_endpoint *ep, ep 3423 net/sctp/sm_statefuns.c return sctp_sf_pdiscard(net, ep, asoc, type, arg, commands); ep 3427 net/sctp/sm_statefuns.c return sctp_sf_violation_chunklen(net, ep, asoc, type, arg, ep 3431 net/sctp/sm_statefuns.c return sctp_sf_violation_paramlen(net, ep, asoc, type, arg, ep 3451 net/sctp/sm_statefuns.c const struct sctp_endpoint *ep, ep 3462 net/sctp/sm_statefuns.c return sctp_sf_pdiscard(net, ep, asoc, type, arg, commands); ep 3466 net/sctp/sm_statefuns.c return sctp_sf_violation_chunklen(net, ep, asoc, type, arg, ep 3534 net/sctp/sm_statefuns.c const struct sctp_endpoint *ep, ep 3553 net/sctp/sm_statefuns.c return sctp_sf_violation_chunklen(net, ep, asoc, type, arg, ep 3559 net/sctp/sm_statefuns.c return sctp_sf_violation_chunklen(net, ep, asoc, type, arg, ep 3574 net/sctp/sm_statefuns.c return sctp_sf_pdiscard(net, ep, asoc, type, arg, commands); ep 3597 net/sctp/sm_statefuns.c return sctp_sf_shut_8_4_5(net, ep, asoc, type, arg, commands); ep 3599 net/sctp/sm_statefuns.c return sctp_sf_pdiscard(net, ep, asoc, type, arg, commands); ep 3601 net/sctp/sm_statefuns.c return sctp_sf_tabort_8_4_8(net, ep, asoc, type, arg, commands); ep 3627 net/sctp/sm_statefuns.c const struct sctp_endpoint *ep, ep 3655 net/sctp/sm_statefuns.c shut->skb->sk = ep->base.sk; ep 3668 net/sctp/sm_statefuns.c return sctp_sf_pdiscard(net, ep, asoc, type, arg, commands); ep 3674 net/sctp/sm_statefuns.c return sctp_sf_pdiscard(net, ep, asoc, type, arg, commands); ep 3689 net/sctp/sm_statefuns.c const struct sctp_endpoint *ep, ep 3699 net/sctp/sm_statefuns.c return sctp_sf_violation_chunklen(net, ep, asoc, type, arg, ep 3709 net/sctp/sm_statefuns.c return sctp_sf_shut_8_4_5(net, ep, NULL, type, arg, commands); ep 3714 net/sctp/sm_statefuns.c const struct sctp_endpoint *ep, ep 3729 net/sctp/sm_statefuns.c return sctp_sf_pdiscard(net, ep, asoc, type, arg, commands); ep 3740 net/sctp/sm_statefuns.c return sctp_sf_discard_chunk(net, ep, asoc, type, arg, ep 3745 net/sctp/sm_statefuns.c return sctp_sf_violation_chunklen(net, ep, asoc, type, arg, ep 3753 net/sctp/sm_statefuns.c return sctp_sf_violation_paramlen(net, ep, asoc, type, arg, ep 3820 net/sctp/sm_statefuns.c sctp_sf_heartbeat(ep, asoc, type, asoc->new_transport, commands); ep 3829 net/sctp/sm_statefuns.c const struct sctp_endpoint *ep, ep 3847 net/sctp/sm_statefuns.c return sctp_sf_do_prm_asconf(net, ep, asoc, type, asconf, commands); ep 3856 net/sctp/sm_statefuns.c const struct sctp_endpoint *ep, ep 3872 net/sctp/sm_statefuns.c return sctp_sf_pdiscard(net, ep, asoc, type, arg, commands); ep 3883 net/sctp/sm_statefuns.c return sctp_sf_discard_chunk(net, ep, asoc, type, arg, ep 3889 net/sctp/sm_statefuns.c return sctp_sf_violation_chunklen(net, ep, asoc, type, arg, ep 3897 net/sctp/sm_statefuns.c return sctp_sf_violation_paramlen(net, ep, asoc, type, arg, ep 3943 net/sctp/sm_statefuns.c return sctp_send_next_asconf(net, ep, ep 3972 net/sctp/sm_statefuns.c const struct sctp_endpoint *ep, ep 3986 net/sctp/sm_statefuns.c return sctp_sf_pdiscard(net, ep, asoc, type, arg, commands); ep 3991 net/sctp/sm_statefuns.c return sctp_sf_violation_chunklen(net, ep, asoc, type, arg, ep 3995 net/sctp/sm_statefuns.c return sctp_sf_violation_paramlen(net, ep, asoc, type, arg, ep 4049 net/sctp/sm_statefuns.c const struct sctp_endpoint *ep, ep 4063 net/sctp/sm_statefuns.c return sctp_sf_pdiscard(net, ep, asoc, type, arg, commands); ep 4067 net/sctp/sm_statefuns.c return sctp_sf_unk_chunk(net, ep, asoc, type, arg, commands); ep 4071 net/sctp/sm_statefuns.c return sctp_sf_violation_chunklen(net, ep, asoc, type, arg, ep 4116 net/sctp/sm_statefuns.c const struct sctp_endpoint *ep, ep 4130 net/sctp/sm_statefuns.c return sctp_sf_pdiscard(net, ep, asoc, type, arg, commands); ep 4134 net/sctp/sm_statefuns.c return sctp_sf_unk_chunk(net, ep, asoc, type, arg, commands); ep 4138 net/sctp/sm_statefuns.c return sctp_sf_violation_chunklen(net, ep, asoc, type, arg, ep 4278 net/sctp/sm_statefuns.c const struct sctp_endpoint *ep, ep 4290 net/sctp/sm_statefuns.c return sctp_sf_unk_chunk(net, ep, asoc, type, arg, commands); ep 4295 net/sctp/sm_statefuns.c return sctp_sf_pdiscard(net, ep, asoc, type, arg, commands); ep 4300 net/sctp/sm_statefuns.c return sctp_sf_violation_chunklen(net, ep, asoc, type, arg, ep 4321 net/sctp/sm_statefuns.c return sctp_sf_pdiscard(net, ep, asoc, type, arg, commands); ep 4324 net/sctp/sm_statefuns.c return sctp_sf_violation_chunklen(net, ep, asoc, type, arg, ep 4374 net/sctp/sm_statefuns.c const struct sctp_endpoint *ep, ep 4387 net/sctp/sm_statefuns.c return sctp_sf_pdiscard(net, ep, asoc, type, arg, commands); ep 4394 net/sctp/sm_statefuns.c return sctp_sf_violation_chunklen(net, ep, asoc, type, arg, ep 4400 net/sctp/sm_statefuns.c return sctp_sf_pdiscard(net, ep, asoc, type, arg, commands); ep 4414 net/sctp/sm_statefuns.c sctp_sf_pdiscard(net, ep, asoc, type, arg, commands); ep 4454 net/sctp/sm_statefuns.c const struct sctp_endpoint *ep, ep 4467 net/sctp/sm_statefuns.c return sctp_sf_violation_chunklen(net, ep, asoc, type, arg, ep 4494 net/sctp/sm_statefuns.c const struct sctp_endpoint *ep, ep 4521 net/sctp/sm_statefuns.c const struct sctp_endpoint *ep, ep 4531 net/sctp/sm_statefuns.c return sctp_sf_violation_chunklen(net, ep, asoc, type, arg, ep 4542 net/sctp/sm_statefuns.c const struct sctp_endpoint *ep, ep 4616 net/sctp/sm_statefuns.c abort->skb->sk = ep->base.sk; ep 4629 net/sctp/sm_statefuns.c sctp_sf_pdiscard(net, ep, asoc, SCTP_ST_CHUNK(0), arg, commands); ep 4659 net/sctp/sm_statefuns.c const struct sctp_endpoint *ep, ep 4667 net/sctp/sm_statefuns.c return sctp_sf_abort_violation(net, ep, asoc, arg, commands, err_str, ep 4679 net/sctp/sm_statefuns.c const struct sctp_endpoint *ep, ep 4708 net/sctp/sm_statefuns.c sctp_sf_pdiscard(net, ep, asoc, SCTP_ST_CHUNK(0), arg, commands); ep 4722 net/sctp/sm_statefuns.c const struct sctp_endpoint *ep, ep 4730 net/sctp/sm_statefuns.c return sctp_sf_abort_violation(net, ep, asoc, arg, commands, err_str, ep 4742 net/sctp/sm_statefuns.c const struct sctp_endpoint *ep, ep 4751 net/sctp/sm_statefuns.c return sctp_sf_violation(net, ep, asoc, type, arg, commands); ep 4753 net/sctp/sm_statefuns.c return sctp_sf_abort_violation(net, ep, asoc, arg, commands, err_str, ep 4817 net/sctp/sm_statefuns.c const struct sctp_endpoint *ep, ep 4929 net/sctp/sm_statefuns.c const struct sctp_endpoint *ep, ep 4969 net/sctp/sm_statefuns.c const struct sctp_endpoint *ep, ep 4990 net/sctp/sm_statefuns.c disposition = sctp_sf_do_9_2_start_shutdown(net, ep, asoc, type, ep 5026 net/sctp/sm_statefuns.c const struct sctp_endpoint *ep, ep 5063 net/sctp/sm_statefuns.c const struct sctp_endpoint *ep, ep 5078 net/sctp/sm_statefuns.c const struct sctp_endpoint *ep, ep 5105 net/sctp/sm_statefuns.c const struct sctp_endpoint *ep, ep 5140 net/sctp/sm_statefuns.c const struct sctp_endpoint *ep, ep 5149 net/sctp/sm_statefuns.c return sctp_sf_cookie_wait_prm_shutdown(net, ep, asoc, type, arg, commands); ep 5168 net/sctp/sm_statefuns.c const struct sctp_endpoint *ep, ep 5217 net/sctp/sm_statefuns.c const struct sctp_endpoint *ep, ep 5226 net/sctp/sm_statefuns.c return sctp_sf_cookie_wait_prm_abort(net, ep, asoc, type, arg, commands); ep 5243 net/sctp/sm_statefuns.c const struct sctp_endpoint *ep, ep 5253 net/sctp/sm_statefuns.c return sctp_sf_do_9_1_prm_abort(net, ep, asoc, type, arg, commands); ep 5270 net/sctp/sm_statefuns.c const struct sctp_endpoint *ep, ep 5284 net/sctp/sm_statefuns.c return sctp_sf_do_9_1_prm_abort(net, ep, asoc, type, arg, commands); ep 5301 net/sctp/sm_statefuns.c const struct sctp_endpoint *ep, ep 5310 net/sctp/sm_statefuns.c return sctp_sf_shutdown_sent_prm_abort(net, ep, asoc, type, arg, commands); ep 5337 net/sctp/sm_statefuns.c const struct sctp_endpoint *ep, ep 5343 net/sctp/sm_statefuns.c if (SCTP_DISPOSITION_NOMEM == sctp_sf_heartbeat(ep, asoc, type, ep 5369 net/sctp/sm_statefuns.c const struct sctp_endpoint *ep, ep 5386 net/sctp/sm_statefuns.c const struct sctp_endpoint *ep, ep 5405 net/sctp/sm_statefuns.c const struct sctp_endpoint *ep, ep 5429 net/sctp/sm_statefuns.c const struct sctp_endpoint *ep, ep 5461 net/sctp/sm_statefuns.c const struct sctp_endpoint *ep, ep 5531 net/sctp/sm_statefuns.c const struct sctp_endpoint *ep, ep 5549 net/sctp/sm_statefuns.c return sctp_sf_pdiscard(net, ep, asoc, type, arg, ep 5555 net/sctp/sm_statefuns.c return sctp_sf_violation_chunklen(net, ep, asoc, type, ep 5604 net/sctp/sm_statefuns.c const struct sctp_endpoint *ep, ep 5632 net/sctp/sm_statefuns.c const struct sctp_endpoint *ep, ep 5720 net/sctp/sm_statefuns.c const struct sctp_endpoint *ep, ep 5752 net/sctp/sm_statefuns.c const struct sctp_endpoint *ep, ep 5817 net/sctp/sm_statefuns.c const struct sctp_endpoint *ep, ep 5868 net/sctp/sm_statefuns.c const struct sctp_endpoint *ep, ep 5939 net/sctp/sm_statefuns.c const struct sctp_endpoint *ep, ep 6011 net/sctp/sm_statefuns.c const struct sctp_endpoint *ep, ep 6048 net/sctp/sm_statefuns.c const struct sctp_endpoint *ep, ep 6071 net/sctp/sm_statefuns.c disposition = sctp_sf_do_9_2_start_shutdown(net, ep, asoc, type, ep 6091 net/sctp/sm_statefuns.c const struct sctp_endpoint *ep, ep 6108 net/sctp/sm_statefuns.c const struct sctp_endpoint *ep, ep 6128 net/sctp/sm_statefuns.c const struct sctp_endpoint *ep, ep 6173 net/sctp/sm_statefuns.c const struct sctp_endpoint *ep, ep 6203 net/sctp/sm_statefuns.c abort->skb->sk = ep->base.sk; ep 6295 net/sctp/sm_statefuns.c const struct sctp_endpoint *ep, ep 6313 net/sctp/sm_statefuns.c err_chunk->skb->sk = ep->base.sk; ep 109 net/sctp/socket.c return asoc->ep->sndbuf_policy ? sk->sk_sndbuf - asoc->sndbuf_used ep 244 net/sctp/socket.c if (!list_empty(&sctp_sk(sk)->ep->asocs)) ep 245 net/sctp/socket.c asoc = list_entry(sctp_sk(sk)->ep->asocs.next, ep 279 net/sctp/socket.c addr_asoc = sctp_endpoint_lookup_assoc(sctp_sk(sk)->ep, ep 316 net/sctp/socket.c if (!sctp_sk(sk)->ep->base.bind_addr.port) ep 365 net/sctp/socket.c struct sctp_endpoint *ep = sp->ep; ep 366 net/sctp/socket.c struct sctp_bind_addr *bp = &ep->base.bind_addr; ep 544 net/sctp/socket.c struct sctp_endpoint *ep; ep 558 net/sctp/socket.c ep = sp->ep; ep 560 net/sctp/socket.c if (!ep->asconf_enable) ep 566 net/sctp/socket.c list_for_each_entry(asoc, &ep->asocs, asocs) { ep 665 net/sctp/socket.c struct sctp_endpoint *ep = sp->ep; ep 667 net/sctp/socket.c struct sctp_bind_addr *bp = &ep->base.bind_addr; ep 746 net/sctp/socket.c struct sctp_endpoint *ep; ep 761 net/sctp/socket.c ep = sp->ep; ep 763 net/sctp/socket.c if (!ep->asconf_enable) ep 769 net/sctp/socket.c list_for_each_entry(asoc, &ep->asocs, asocs) { ep 901 net/sctp/socket.c addr->v4.sin_port = htons(sp->ep->base.bind_addr.port); ep 1061 net/sctp/socket.c static int sctp_connect_new_asoc(struct sctp_endpoint *ep, ep 1067 net/sctp/socket.c struct sock *sk = ep->base.sk; ep 1072 net/sctp/socket.c if (sctp_endpoint_is_peeled_off(ep, daddr)) ep 1075 net/sctp/socket.c if (!ep->base.bind_addr.port) { ep 1079 net/sctp/socket.c if (ep->base.bind_addr.port < inet_prot_sock(net) && ep 1085 net/sctp/socket.c asoc = sctp_association_new(ep, sk, scope, GFP_KERNEL); ep 1131 net/sctp/socket.c struct sctp_endpoint *ep = asoc->ep; ep 1136 net/sctp/socket.c err = sctp_verify_addr(ep->base.sk, daddr, addr_len); ep 1140 net/sctp/socket.c old = sctp_endpoint_lookup_assoc(ep, daddr, &t); ep 1145 net/sctp/socket.c if (sctp_endpoint_is_peeled_off(ep, daddr)) ep 1164 net/sctp/socket.c struct sctp_endpoint *ep = sp->ep; ep 1186 net/sctp/socket.c asoc = sctp_endpoint_lookup_assoc(ep, daddr, &transport); ep 1191 net/sctp/socket.c err = sctp_connect_new_asoc(ep, daddr, NULL, &transport); ep 1488 net/sctp/socket.c struct sctp_endpoint *ep; ep 1499 net/sctp/socket.c ep = sctp_sk(sk)->ep; ep 1506 net/sctp/socket.c list_for_each_safe(pos, temp, &ep->asocs) { ep 1664 net/sctp/socket.c struct sctp_endpoint *ep = sctp_sk(sk)->ep; ep 1695 net/sctp/socket.c err = sctp_connect_new_asoc(ep, daddr, cmsgs->init, tp); ep 1846 net/sctp/socket.c if (asoc->ep->intl_enable) { ep 1946 net/sctp/socket.c struct sctp_endpoint *ep = sctp_sk(sk)->ep; ep 1975 net/sctp/socket.c list_for_each_entry_safe(asoc, tmp, &ep->asocs, asocs) { ep 1998 net/sctp/socket.c asoc = sctp_endpoint_lookup_assoc(ep, daddr, &transport); ep 2242 net/sctp/socket.c list_for_each_entry(asoc, &sp->ep->asocs, asocs) ep 2863 net/sctp/socket.c list_for_each_entry(asoc, &sp->ep->asocs, asocs) ep 2962 net/sctp/socket.c list_for_each_entry(asoc, &sp->ep->asocs, asocs) { ep 3021 net/sctp/socket.c list_for_each_entry(asoc, &sp->ep->asocs, asocs) { ep 3356 net/sctp/socket.c if (!sp->ep->asconf_enable) ep 3469 net/sctp/socket.c list_for_each_entry(asoc, &sp->ep->asocs, asocs) ep 3513 net/sctp/socket.c sctp_sk(sk)->ep->intl_enable = 0; ep 3611 net/sctp/socket.c list_for_each_entry(asoc, &sp->ep->asocs, asocs) ep 3628 net/sctp/socket.c struct sctp_endpoint *ep = sctp_sk(sk)->ep; ep 3631 net/sctp/socket.c if (!ep->auth_enable) ep 3648 net/sctp/socket.c return sctp_auth_ep_add_chunkid(ep, val.sauth_chunk); ep 3661 net/sctp/socket.c struct sctp_endpoint *ep = sctp_sk(sk)->ep; ep 3666 net/sctp/socket.c if (!ep->auth_enable) ep 3685 net/sctp/socket.c err = sctp_auth_ep_set_hmacs(ep, hmacs); ep 3701 net/sctp/socket.c struct sctp_endpoint *ep = sctp_sk(sk)->ep; ep 3726 net/sctp/socket.c ret = sctp_auth_set_key(ep, asoc, authkey); ep 3735 net/sctp/socket.c ret = sctp_auth_set_key(ep, asoc, authkey); ep 3744 net/sctp/socket.c list_for_each_entry(asoc, &ep->asocs, asocs) { ep 3745 net/sctp/socket.c int res = sctp_auth_set_key(ep, asoc, authkey); ep 3767 net/sctp/socket.c struct sctp_endpoint *ep = sctp_sk(sk)->ep; ep 3783 net/sctp/socket.c return sctp_auth_set_active_key(ep, asoc, val.scact_keynumber); ep 3790 net/sctp/socket.c ret = sctp_auth_set_active_key(ep, asoc, val.scact_keynumber); ep 3797 net/sctp/socket.c list_for_each_entry(asoc, &ep->asocs, asocs) { ep 3798 net/sctp/socket.c int res = sctp_auth_set_active_key(ep, asoc, ep 3818 net/sctp/socket.c struct sctp_endpoint *ep = sctp_sk(sk)->ep; ep 3834 net/sctp/socket.c return sctp_auth_del_key_id(ep, asoc, val.scact_keynumber); ep 3841 net/sctp/socket.c ret = sctp_auth_del_key_id(ep, asoc, val.scact_keynumber); ep 3848 net/sctp/socket.c list_for_each_entry(asoc, &ep->asocs, asocs) { ep 3849 net/sctp/socket.c int res = sctp_auth_del_key_id(ep, asoc, ep 3868 net/sctp/socket.c struct sctp_endpoint *ep = sctp_sk(sk)->ep; ep 3884 net/sctp/socket.c return sctp_auth_deact_key_id(ep, asoc, val.scact_keynumber); ep 3891 net/sctp/socket.c ret = sctp_auth_deact_key_id(ep, asoc, val.scact_keynumber); ep 3898 net/sctp/socket.c list_for_each_entry(asoc, &ep->asocs, asocs) { ep 3899 net/sctp/socket.c int res = sctp_auth_deact_key_id(ep, asoc, ep 4063 net/sctp/socket.c sctp_sk(sk)->ep->prsctp_enable = !!params.assoc_value; ep 4115 net/sctp/socket.c list_for_each_entry(asoc, &sp->ep->asocs, asocs) { ep 4146 net/sctp/socket.c sctp_sk(sk)->ep->reconf_enable = !!params.assoc_value; ep 4158 net/sctp/socket.c struct sctp_endpoint *ep = sctp_sk(sk)->ep; ep 4191 net/sctp/socket.c ep->strreset_enable = params.assoc_value; ep 4195 net/sctp/socket.c list_for_each_entry(asoc, &ep->asocs, asocs) ep 4323 net/sctp/socket.c list_for_each_entry(asoc, &sp->ep->asocs, asocs) { ep 4365 net/sctp/socket.c list_for_each_entry(asoc, &sctp_sk(sk)->ep->asocs, asocs) { ep 4404 net/sctp/socket.c sp->ep->intl_enable = !!params.assoc_value; ep 4420 net/sctp/socket.c if (sctp_sk(sk)->ep->base.bind_addr.port) ep 4492 net/sctp/socket.c list_for_each_entry(asoc, &sp->ep->asocs, asocs) { ep 4509 net/sctp/socket.c struct sctp_endpoint *ep; ep 4525 net/sctp/socket.c ep = sctp_sk(sk)->ep; ep 4526 net/sctp/socket.c ep->asconf_enable = !!params.assoc_value; ep 4528 net/sctp/socket.c if (ep->asconf_enable && ep->auth_enable) { ep 4529 net/sctp/socket.c sctp_auth_ep_add_chunkid(ep, SCTP_CID_ASCONF); ep 4530 net/sctp/socket.c sctp_auth_ep_add_chunkid(ep, SCTP_CID_ASCONF_ACK); ep 4545 net/sctp/socket.c struct sctp_endpoint *ep; ep 4561 net/sctp/socket.c ep = sctp_sk(sk)->ep; ep 4563 net/sctp/socket.c retval = sctp_auth_init(ep, GFP_KERNEL); ep 4566 net/sctp/socket.c if (ep->asconf_enable) { ep 4567 net/sctp/socket.c sctp_auth_ep_add_chunkid(ep, SCTP_CID_ASCONF); ep 4568 net/sctp/socket.c sctp_auth_ep_add_chunkid(ep, SCTP_CID_ASCONF_ACK); ep 4572 net/sctp/socket.c ep->auth_enable = !!params.assoc_value; ep 4600 net/sctp/socket.c sctp_sk(sk)->ep->ecn_enable = !!params.assoc_value; ep 4890 net/sctp/socket.c struct sctp_endpoint *ep; ep 4899 net/sctp/socket.c ep = sp->ep; ep 4920 net/sctp/socket.c asoc = list_entry(ep->asocs.next, struct sctp_association, asocs); ep 5104 net/sctp/socket.c sp->ep = sctp_endpoint_new(sk, GFP_KERNEL); ep 5105 net/sctp/socket.c if (!sp->ep) ep 5150 net/sctp/socket.c if (sp->ep == NULL) ep 5157 net/sctp/socket.c sctp_endpoint_free(sp->ep); ep 5194 net/sctp/socket.c struct sctp_endpoint *ep; ep 5199 net/sctp/socket.c ep = sctp_sk(sk)->ep; ep 5200 net/sctp/socket.c if (how & SEND_SHUTDOWN && !list_empty(&ep->asocs)) { ep 5204 net/sctp/socket.c asoc = list_entry(ep->asocs.next, ep 6289 net/sctp/socket.c bp = &sctp_sk(sk)->ep->base.bind_addr; ep 6913 net/sctp/socket.c struct sctp_endpoint *ep = sctp_sk(sk)->ep; ep 6920 net/sctp/socket.c if (!ep->auth_enable) ep 6923 net/sctp/socket.c hmacs = ep->auth_hmacs_list; ep 6949 net/sctp/socket.c struct sctp_endpoint *ep = sctp_sk(sk)->ep; ep 6969 net/sctp/socket.c if (!ep->auth_enable) ep 6971 net/sctp/socket.c val.scact_keynumber = ep->active_key_id; ep 7029 net/sctp/socket.c struct sctp_endpoint *ep = sctp_sk(sk)->ep; ep 7054 net/sctp/socket.c if (!ep->auth_enable) ep 7056 net/sctp/socket.c ch = ep->auth_chunk_list; ep 7097 net/sctp/socket.c list_for_each_entry(asoc, &(sp->ep->asocs), asocs) { ep 7152 net/sctp/socket.c list_for_each_entry(asoc, &(sp->ep->asocs), asocs) { ep 7167 net/sctp/socket.c list_for_each_entry(asoc, &(sp->ep->asocs), asocs) { ep 7365 net/sctp/socket.c : sctp_sk(sk)->ep->prsctp_enable; ep 7573 net/sctp/socket.c : sctp_sk(sk)->ep->reconf_enable; ep 7612 net/sctp/socket.c : sctp_sk(sk)->ep->strreset_enable; ep 7732 net/sctp/socket.c : sctp_sk(sk)->ep->intl_enable; ep 7826 net/sctp/socket.c : sctp_sk(sk)->ep->asconf_enable; ep 7865 net/sctp/socket.c : sctp_sk(sk)->ep->auth_enable; ep 7904 net/sctp/socket.c : sctp_sk(sk)->ep->ecn_enable; ep 8264 net/sctp/socket.c struct sctp_endpoint *ep2 = sp2->ep; ep 8356 net/sctp/socket.c struct sctp_endpoint *ep = sp->ep; ep 8384 net/sctp/socket.c if (!ep->base.bind_addr.port) { ep 8395 net/sctp/socket.c return sctp_hash_endpoint(ep); ep 8415 net/sctp/socket.c struct sctp_endpoint *ep = sctp_sk(sk)->ep; ep 8439 net/sctp/socket.c sctp_unhash_endpoint(ep); ep 8488 net/sctp/socket.c return (!list_empty(&sp->ep->asocs)) ? ep 8814 net/sctp/socket.c if (list_empty(&sctp_sk(sk)->ep->asocs) && !sctp_sstate(sk, LISTENING)) ep 8945 net/sctp/socket.c if (asoc->ep->sndbuf_policy) ep 8967 net/sctp/socket.c if (&tmp->asocs == &((sctp_sk(sk))->ep->asocs)) ep 9127 net/sctp/socket.c list_for_each_entry(asoc, &((sctp_sk(sk))->ep->asocs), asocs) { ep 9215 net/sctp/socket.c struct sctp_endpoint *ep; ep 9219 net/sctp/socket.c ep = sctp_sk(sk)->ep; ep 9226 net/sctp/socket.c if (list_empty(&ep->asocs)) { ep 9237 net/sctp/socket.c if (!list_empty(&ep->asocs)) ep 9260 net/sctp/socket.c if (list_empty(&sctp_sk(sk)->ep->asocs)) ep 9291 net/sctp/socket.c struct sctp_endpoint *ep = sp->ep; ep 9338 net/sctp/socket.c security_sctp_sk_clone(ep, sk, newsk); ep 9364 net/sctp/socket.c struct sctp_endpoint *newep = newsp->ep; ep 9381 net/sctp/socket.c newsp->ep = newep; ep 9397 net/sctp/socket.c err = sctp_bind_addr_dup(&newsp->ep->base.bind_addr, ep 9398 net/sctp/socket.c &oldsp->ep->base.bind_addr, GFP_KERNEL); ep 9406 net/sctp/socket.c if (oldsp->ep->auth_hmacs) { ep 9407 net/sctp/socket.c err = sctp_auth_init_hmacs(newsp->ep, GFP_KERNEL); ep 463 net/sctp/sysctl.c sctp_sk(sk)->ep->auth_enable = new_value; ep 632 net/sctp/ulpevent.c if (asoc->ep->rcvbuf_policy) ep 200 net/sunrpc/auth_gss/svcauth_gss.c char *ep; ep 239 net/sunrpc/auth_gss/svcauth_gss.c rsii.major_status = simple_strtoul(buf, &ep, 10); ep 240 net/sunrpc/auth_gss/svcauth_gss.c if (*ep) ep 245 net/sunrpc/auth_gss/svcauth_gss.c rsii.minor_status = simple_strtoul(buf, &ep, 10); ep 246 net/sunrpc/auth_gss/svcauth_gss.c if (*ep) ep 1490 net/sunrpc/cache.c char *ep; ep 1498 net/sunrpc/cache.c simple_strtoul(tbuf, &ep, 0); ep 1499 net/sunrpc/cache.c if (*ep && *ep != '\n') ep 47 net/sunrpc/xprtrdma/backchannel.c struct rpcrdma_ep *ep = &r_xprt->rx_ep; ep 50 net/sunrpc/xprtrdma/backchannel.c maxmsg = min_t(unsigned int, ep->rep_inline_send, ep->rep_inline_recv); ep 217 net/sunrpc/xprtrdma/frwr_ops.c int frwr_open(struct rpcrdma_ia *ia, struct rpcrdma_ep *ep) ep 266 net/sunrpc/xprtrdma/frwr_ops.c if (ep->rep_max_requests > max_qp_wr) ep 267 net/sunrpc/xprtrdma/frwr_ops.c ep->rep_max_requests = max_qp_wr; ep 268 net/sunrpc/xprtrdma/frwr_ops.c ep->rep_attr.cap.max_send_wr = ep->rep_max_requests * depth; ep 269 net/sunrpc/xprtrdma/frwr_ops.c if (ep->rep_attr.cap.max_send_wr > max_qp_wr) { ep 270 net/sunrpc/xprtrdma/frwr_ops.c ep->rep_max_requests = max_qp_wr / depth; ep 271 net/sunrpc/xprtrdma/frwr_ops.c if (!ep->rep_max_requests) ep 273 net/sunrpc/xprtrdma/frwr_ops.c ep->rep_attr.cap.max_send_wr = ep->rep_max_requests * depth; ep 275 net/sunrpc/xprtrdma/frwr_ops.c ep->rep_attr.cap.max_send_wr += RPCRDMA_BACKWARD_WRS; ep 276 net/sunrpc/xprtrdma/frwr_ops.c ep->rep_attr.cap.max_send_wr += 1; /* for ib_drain_sq */ ep 277 net/sunrpc/xprtrdma/frwr_ops.c ep->rep_attr.cap.max_recv_wr = ep->rep_max_requests; ep 278 net/sunrpc/xprtrdma/frwr_ops.c ep->rep_attr.cap.max_recv_wr += RPCRDMA_BACKWARD_WRS; ep 279 net/sunrpc/xprtrdma/frwr_ops.c ep->rep_attr.cap.max_recv_wr += 1; /* for ib_drain_rq */ ep 119 net/sunrpc/xprtrdma/rpc_rdma.c struct rpcrdma_ep *ep = &r_xprt->rx_ep; ep 121 net/sunrpc/xprtrdma/rpc_rdma.c ep->rep_max_inline_send = ep 122 net/sunrpc/xprtrdma/rpc_rdma.c ep->rep_inline_send - rpcrdma_max_call_header_size(maxsegs); ep 123 net/sunrpc/xprtrdma/rpc_rdma.c ep->rep_max_inline_recv = ep 124 net/sunrpc/xprtrdma/rpc_rdma.c ep->rep_inline_recv - rpcrdma_max_reply_header_size(maxsegs); ep 409 net/sunrpc/xprtrdma/transport.c struct rpcrdma_ep *ep = &r_xprt->rx_ep; ep 424 net/sunrpc/xprtrdma/transport.c if (ep->rep_connected == -ENODEV) ep 426 net/sunrpc/xprtrdma/transport.c rpcrdma_ep_disconnect(ep, ia); ep 118 net/sunrpc/xprtrdma/verbs.c struct rpcrdma_ep *ep = context; ep 119 net/sunrpc/xprtrdma/verbs.c struct rpcrdma_xprt *r_xprt = container_of(ep, struct rpcrdma_xprt, ep 222 net/sunrpc/xprtrdma/verbs.c struct rpcrdma_ep *ep = &r_xprt->rx_ep; ep 250 net/sunrpc/xprtrdma/verbs.c ep->rep_connected = -ENODEV; ep 259 net/sunrpc/xprtrdma/verbs.c ep->rep_connected = 1; ep 261 net/sunrpc/xprtrdma/verbs.c wake_up_all(&ep->rep_connect_wait); ep 264 net/sunrpc/xprtrdma/verbs.c ep->rep_connected = -ENOTCONN; ep 267 net/sunrpc/xprtrdma/verbs.c ep->rep_connected = -ENETUNREACH; ep 273 net/sunrpc/xprtrdma/verbs.c ep->rep_connected = -ECONNREFUSED; ep 275 net/sunrpc/xprtrdma/verbs.c ep->rep_connected = -EAGAIN; ep 278 net/sunrpc/xprtrdma/verbs.c ep->rep_connected = -ECONNABORTED; ep 281 net/sunrpc/xprtrdma/verbs.c wake_up_all(&ep->rep_connect_wait); ep 406 net/sunrpc/xprtrdma/verbs.c struct rpcrdma_ep *ep = &r_xprt->rx_ep; ep 424 net/sunrpc/xprtrdma/verbs.c ib_free_cq(ep->rep_attr.recv_cq); ep 425 net/sunrpc/xprtrdma/verbs.c ep->rep_attr.recv_cq = NULL; ep 426 net/sunrpc/xprtrdma/verbs.c ib_free_cq(ep->rep_attr.send_cq); ep 427 net/sunrpc/xprtrdma/verbs.c ep->rep_attr.send_cq = NULL; ep 477 net/sunrpc/xprtrdma/verbs.c struct rpcrdma_ep *ep = &r_xprt->rx_ep; ep 479 net/sunrpc/xprtrdma/verbs.c struct rpcrdma_connect_private *pmsg = &ep->rep_cm_private; ep 484 net/sunrpc/xprtrdma/verbs.c ep->rep_max_requests = xprt_rdma_slot_table_entries; ep 485 net/sunrpc/xprtrdma/verbs.c ep->rep_inline_send = xprt_rdma_max_inline_write; ep 486 net/sunrpc/xprtrdma/verbs.c ep->rep_inline_recv = xprt_rdma_max_inline_read; ep 496 net/sunrpc/xprtrdma/verbs.c rc = frwr_open(ia, ep); ep 500 net/sunrpc/xprtrdma/verbs.c ep->rep_attr.event_handler = rpcrdma_qp_event_handler; ep 501 net/sunrpc/xprtrdma/verbs.c ep->rep_attr.qp_context = ep; ep 502 net/sunrpc/xprtrdma/verbs.c ep->rep_attr.srq = NULL; ep 503 net/sunrpc/xprtrdma/verbs.c ep->rep_attr.cap.max_send_sge = max_sge; ep 504 net/sunrpc/xprtrdma/verbs.c ep->rep_attr.cap.max_recv_sge = 1; ep 505 net/sunrpc/xprtrdma/verbs.c ep->rep_attr.cap.max_inline_data = 0; ep 506 net/sunrpc/xprtrdma/verbs.c ep->rep_attr.sq_sig_type = IB_SIGNAL_REQ_WR; ep 507 net/sunrpc/xprtrdma/verbs.c ep->rep_attr.qp_type = IB_QPT_RC; ep 508 net/sunrpc/xprtrdma/verbs.c ep->rep_attr.port_num = ~0; ep 513 net/sunrpc/xprtrdma/verbs.c ep->rep_attr.cap.max_send_wr, ep 514 net/sunrpc/xprtrdma/verbs.c ep->rep_attr.cap.max_recv_wr, ep 515 net/sunrpc/xprtrdma/verbs.c ep->rep_attr.cap.max_send_sge, ep 516 net/sunrpc/xprtrdma/verbs.c ep->rep_attr.cap.max_recv_sge); ep 518 net/sunrpc/xprtrdma/verbs.c ep->rep_send_batch = ep->rep_max_requests >> 3; ep 519 net/sunrpc/xprtrdma/verbs.c ep->rep_send_count = ep->rep_send_batch; ep 520 net/sunrpc/xprtrdma/verbs.c init_waitqueue_head(&ep->rep_connect_wait); ep 521 net/sunrpc/xprtrdma/verbs.c ep->rep_receive_count = 0; ep 524 net/sunrpc/xprtrdma/verbs.c ep->rep_attr.cap.max_send_wr + 1, ep 532 net/sunrpc/xprtrdma/verbs.c ep->rep_attr.cap.max_recv_wr + 1, ep 539 net/sunrpc/xprtrdma/verbs.c ep->rep_attr.send_cq = sendcq; ep 540 net/sunrpc/xprtrdma/verbs.c ep->rep_attr.recv_cq = recvcq; ep 543 net/sunrpc/xprtrdma/verbs.c memset(&ep->rep_remote_cma, 0, sizeof(ep->rep_remote_cma)); ep 549 net/sunrpc/xprtrdma/verbs.c pmsg->cp_send_size = rpcrdma_encode_buffer_size(ep->rep_inline_send); ep 550 net/sunrpc/xprtrdma/verbs.c pmsg->cp_recv_size = rpcrdma_encode_buffer_size(ep->rep_inline_recv); ep 551 net/sunrpc/xprtrdma/verbs.c ep->rep_remote_cma.private_data = pmsg; ep 552 net/sunrpc/xprtrdma/verbs.c ep->rep_remote_cma.private_data_len = sizeof(*pmsg); ep 555 net/sunrpc/xprtrdma/verbs.c ep->rep_remote_cma.initiator_depth = 0; ep 556 net/sunrpc/xprtrdma/verbs.c ep->rep_remote_cma.responder_resources = ep 563 net/sunrpc/xprtrdma/verbs.c ep->rep_remote_cma.retry_count = 6; ep 569 net/sunrpc/xprtrdma/verbs.c ep->rep_remote_cma.flow_control = 0; ep 570 net/sunrpc/xprtrdma/verbs.c ep->rep_remote_cma.rnr_retry_count = 0; ep 587 net/sunrpc/xprtrdma/verbs.c struct rpcrdma_ep *ep = &r_xprt->rx_ep; ep 591 net/sunrpc/xprtrdma/verbs.c rpcrdma_ep_disconnect(ep, ia); ep 596 net/sunrpc/xprtrdma/verbs.c if (ep->rep_attr.recv_cq) ep 597 net/sunrpc/xprtrdma/verbs.c ib_free_cq(ep->rep_attr.recv_cq); ep 598 net/sunrpc/xprtrdma/verbs.c if (ep->rep_attr.send_cq) ep 599 net/sunrpc/xprtrdma/verbs.c ib_free_cq(ep->rep_attr.send_cq); ep 610 net/sunrpc/xprtrdma/verbs.c struct rpcrdma_ep *ep = &r_xprt->rx_ep; ep 625 net/sunrpc/xprtrdma/verbs.c memcpy(qp_init_attr, &ep->rep_attr, sizeof(*qp_init_attr)); ep 696 net/sunrpc/xprtrdma/verbs.c rpcrdma_ep_connect(struct rpcrdma_ep *ep, struct rpcrdma_ia *ia) ep 705 net/sunrpc/xprtrdma/verbs.c memcpy(&qp_init_attr, &ep->rep_attr, sizeof(qp_init_attr)); ep 706 net/sunrpc/xprtrdma/verbs.c switch (ep->rep_connected) { ep 726 net/sunrpc/xprtrdma/verbs.c ep->rep_connected = 0; ep 731 net/sunrpc/xprtrdma/verbs.c rc = rdma_connect(ia->ri_id, &ep->rep_remote_cma); ep 737 net/sunrpc/xprtrdma/verbs.c wait_event_interruptible(ep->rep_connect_wait, ep->rep_connected != 0); ep 738 net/sunrpc/xprtrdma/verbs.c if (ep->rep_connected <= 0) { ep 739 net/sunrpc/xprtrdma/verbs.c if (ep->rep_connected == -EAGAIN) ep 741 net/sunrpc/xprtrdma/verbs.c rc = ep->rep_connected; ep 749 net/sunrpc/xprtrdma/verbs.c ep->rep_connected = rc; ep 767 net/sunrpc/xprtrdma/verbs.c rpcrdma_ep_disconnect(struct rpcrdma_ep *ep, struct rpcrdma_ia *ia) ep 769 net/sunrpc/xprtrdma/verbs.c struct rpcrdma_xprt *r_xprt = container_of(ep, struct rpcrdma_xprt, ep 776 net/sunrpc/xprtrdma/verbs.c wait_event_interruptible(ep->rep_connect_wait, ep 777 net/sunrpc/xprtrdma/verbs.c ep->rep_connected != 1); ep 779 net/sunrpc/xprtrdma/verbs.c ep->rep_connected = rc; ep 1469 net/sunrpc/xprtrdma/verbs.c struct rpcrdma_ep *ep, ep 1475 net/sunrpc/xprtrdma/verbs.c if (!ep->rep_send_count || kref_read(&req->rl_kref) > 1) { ep 1477 net/sunrpc/xprtrdma/verbs.c ep->rep_send_count = ep->rep_send_batch; ep 1480 net/sunrpc/xprtrdma/verbs.c --ep->rep_send_count; ep 1499 net/sunrpc/xprtrdma/verbs.c struct rpcrdma_ep *ep = &r_xprt->rx_ep; ep 1508 net/sunrpc/xprtrdma/verbs.c if (likely(ep->rep_receive_count > needed)) ep 1510 net/sunrpc/xprtrdma/verbs.c needed -= ep->rep_receive_count; ep 1558 net/sunrpc/xprtrdma/verbs.c ep->rep_receive_count += count; ep 550 net/sunrpc/xprtrdma/xprt_rdma.h int frwr_open(struct rpcrdma_ia *ia, struct rpcrdma_ep *ep); ep 295 scripts/kconfig/menu.c struct expr *parentdep, *basedep, *dep, *dep2, **ep; ep 527 scripts/kconfig/menu.c for (ep = &prop->expr; *ep; ep = &(*ep)->left.expr) ep 529 scripts/kconfig/menu.c *ep = expr_alloc_one(E_LIST, NULL); ep 530 scripts/kconfig/menu.c (*ep)->right.sym = menu->sym; ep 828 scripts/unifdef.c char *ep; ep 855 scripts/unifdef.c *valp = strtol(cp, &ep, 0); ep 856 scripts/unifdef.c if (ep == cp) ep 892 scripts/unifdef.c *valp = strtol(value[sym], &ep, 0); ep 893 scripts/unifdef.c if (*ep != '\0' || ep == value[sym]) ep 2175 security/security.c int security_sctp_assoc_request(struct sctp_endpoint *ep, struct sk_buff *skb) ep 2177 security/security.c return call_int_hook(sctp_assoc_request, 0, ep, skb); ep 2189 security/security.c void security_sctp_sk_clone(struct sctp_endpoint *ep, struct sock *sk, ep 2192 security/security.c call_void_hook(sctp_sk_clone, ep, sk, newsk); ep 5192 security/selinux/hooks.c static int selinux_sctp_assoc_request(struct sctp_endpoint *ep, ep 5195 security/selinux/hooks.c struct sk_security_struct *sksec = ep->base.sk->sk_security; ep 5212 security/selinux/hooks.c err = selinux_skb_peerlbl_sid(skb, ep->base.sk->sk_family, ep 5236 security/selinux/hooks.c ad.u.net->sk = ep->base.sk; ep 5254 security/selinux/hooks.c ep->secid = conn_sid; ep 5255 security/selinux/hooks.c ep->peer_secid = peer_sid; ep 5258 security/selinux/hooks.c return selinux_netlbl_sctp_assoc_request(ep, skb); ep 5343 security/selinux/hooks.c static void selinux_sctp_sk_clone(struct sctp_endpoint *ep, struct sock *sk, ep 5355 security/selinux/hooks.c newsksec->sid = ep->secid; ep 5356 security/selinux/hooks.c newsksec->peer_sid = ep->peer_secid; ep 42 security/selinux/include/netlabel.h int selinux_netlbl_sctp_assoc_request(struct sctp_endpoint *ep, ep 107 security/selinux/include/netlabel.h static inline int selinux_netlbl_sctp_assoc_request(struct sctp_endpoint *ep, ep 271 security/selinux/netlabel.c int selinux_netlbl_sctp_assoc_request(struct sctp_endpoint *ep, ep 276 security/selinux/netlabel.c struct sk_security_struct *sksec = ep->base.sk->sk_security; ep 280 security/selinux/netlabel.c if (ep->base.sk->sk_family != PF_INET && ep 281 security/selinux/netlabel.c ep->base.sk->sk_family != PF_INET6) ep 286 security/selinux/netlabel.c ep->secid, &secattr); ep 296 security/selinux/netlabel.c rc = netlbl_conn_setattr(ep->base.sk, (void *)&addr4, &secattr); ep 300 security/selinux/netlabel.c rc = netlbl_conn_setattr(ep->base.sk, (void *)&addr6, &secattr); ep 162 security/tomoyo/realpath.c char *ep; ep 163 security/tomoyo/realpath.c const pid_t pid = (pid_t) simple_strtoul(pos + 1, &ep, 10); ep 165 security/tomoyo/realpath.c if (*ep == '/' && pid && pid == ep 167 security/tomoyo/realpath.c pos = ep - 5; ep 186 security/tomoyo/util.c char *ep; ep 200 security/tomoyo/util.c *result = simple_strtoul(cp, &ep, base); ep 201 security/tomoyo/util.c if (cp == ep) ep 203 security/tomoyo/util.c *str = ep; ep 60 sound/soc/generic/audio-graph-card.c static int graph_get_dai_id(struct device_node *ep) ep 70 sound/soc/generic/audio-graph-card.c ret = snd_soc_get_dai_id(ep); ep 75 sound/soc/generic/audio-graph-card.c ret = of_graph_parse_endpoint(ep, &info); ep 83 sound/soc/generic/audio-graph-card.c if (of_get_property(ep, "reg", NULL)) ep 86 sound/soc/generic/audio-graph-card.c node = of_get_parent(ep); ep 92 sound/soc/generic/audio-graph-card.c node = of_graph_get_port_parent(ep); ep 101 sound/soc/generic/audio-graph-card.c if (endpoint == ep) ep 114 sound/soc/generic/audio-graph-card.c static int asoc_simple_parse_dai(struct device_node *ep, ep 122 sound/soc/generic/audio-graph-card.c if (!ep) ep 125 sound/soc/generic/audio-graph-card.c node = of_graph_get_port_parent(ep); ep 129 sound/soc/generic/audio-graph-card.c args.args[0] = graph_get_dai_id(ep); ep 164 sound/soc/generic/audio-graph-card.c struct device_node *ep, ep 168 sound/soc/generic/audio-graph-card.c struct device_node *port = of_get_parent(ep); ep 170 sound/soc/generic/audio-graph-card.c struct device_node *node = of_graph_get_port_parent(ep); ep 176 sound/soc/generic/audio-graph-card.c asoc_simple_parse_convert(dev, ep, NULL, adata); ep 184 sound/soc/generic/audio-graph-card.c struct device_node *ep, ep 187 sound/soc/generic/audio-graph-card.c struct device_node *port = of_get_parent(ep); ep 189 sound/soc/generic/audio-graph-card.c struct device_node *node = of_graph_get_port_parent(ep); ep 194 sound/soc/generic/audio-graph-card.c of_property_read_u32(ep, "mclk-fs", &props->mclk_fs); ep 211 sound/soc/generic/audio-graph-card.c struct device_node *ep = li->cpu ? cpu_ep : codec_ep; ep 224 sound/soc/generic/audio-graph-card.c port = of_get_parent(ep); ep 226 sound/soc/generic/audio-graph-card.c node = of_graph_get_port_parent(ep); ep 230 sound/soc/generic/audio-graph-card.c dev_dbg(dev, "link_of DPCM (%pOF)\n", ep); ep 247 sound/soc/generic/audio-graph-card.c ret = asoc_simple_parse_cpu(ep, dai_link, &is_single_links); ep 251 sound/soc/generic/audio-graph-card.c ret = asoc_simple_parse_clk_cpu(dev, ep, dai_link, dai); ep 281 sound/soc/generic/audio-graph-card.c ret = asoc_simple_parse_codec(ep, dai_link); ep 285 sound/soc/generic/audio-graph-card.c ret = asoc_simple_parse_clk_codec(dev, ep, dai_link, dai); ep 306 sound/soc/generic/audio-graph-card.c graph_parse_convert(dev, ep, &dai_props->adata); ep 307 sound/soc/generic/audio-graph-card.c graph_parse_mclk_fs(top, ep, dai_props); ep 311 sound/soc/generic/audio-graph-card.c ret = asoc_simple_parse_tdm(ep, dai); ep 410 sound/soc/soc-component.c struct device_node *ep) ep 413 sound/soc/soc-component.c return component->driver->of_xlate_dai_id(component, ep); ep 3311 sound/soc/soc-core.c int snd_soc_get_dai_id(struct device_node *ep) ep 3317 sound/soc/soc-core.c dlc.of_node = of_graph_get_port_parent(ep); ep 3329 sound/soc/soc-core.c ret = snd_soc_component_of_xlate_dai_id(component, ep); ep 2701 sound/soc/soc-dapm.c unsigned int ep; ep 2708 sound/soc/soc-dapm.c ep = SND_SOC_DAPM_EP_SOURCE; ep 2714 sound/soc/soc-dapm.c ep = 0; ep 2723 sound/soc/soc-dapm.c ep = SND_SOC_DAPM_EP_SINK; ep 2729 sound/soc/soc-dapm.c ep = 0; ep 2735 sound/soc/soc-dapm.c ep = 0; ep 2738 sound/soc/soc-dapm.c ep |= SND_SOC_DAPM_DIR_TO_EP(dir); ep 2745 sound/soc/soc-dapm.c w->is_ep = ep; ep 4380 sound/soc/soc-dapm.c unsigned int ep; ep 4391 sound/soc/soc-dapm.c ep = SND_SOC_DAPM_EP_SOURCE; ep 4394 sound/soc/soc-dapm.c ep = SND_SOC_DAPM_EP_SINK; ep 4401 sound/soc/soc-dapm.c w->is_ep = ep; ep 567 sound/usb/6fire/pcm.c struct sfire_chip *chip, bool in, int ep, ep 576 sound/usb/6fire/pcm.c urb->instance.pipe = in ? usb_rcvisocpipe(chip->dev, ep) ep 577 sound/usb/6fire/pcm.c : usb_sndisocpipe(chip->dev, ep); ep 339 sound/usb/card.c struct snd_usb_endpoint *ep, *n; ep 341 sound/usb/card.c list_for_each_entry_safe(ep, n, &chip->ep_list, list) ep 342 sound/usb/card.c snd_usb_endpoint_free(ep); ep 710 sound/usb/card.c struct snd_usb_endpoint *ep; ep 724 sound/usb/card.c list_for_each_entry(ep, &chip->ep_list, list) { ep 725 sound/usb/card.c snd_usb_endpoint_release(ep); ep 47 sound/usb/card.h struct snd_usb_endpoint *ep; ep 452 sound/usb/clock.c unsigned int ep; ep 458 sound/usb/clock.c ep = get_endpoint(alts, 0)->bEndpointAddress; ep 469 sound/usb/clock.c UAC_EP_CS_ATTR_SAMPLE_RATE << 8, ep, ep 473 sound/usb/clock.c iface, fmt->altsetting, rate, ep); ep 487 sound/usb/clock.c UAC_EP_CS_ATTR_SAMPLE_RATE << 8, ep, ep 491 sound/usb/clock.c iface, fmt->altsetting, ep); ep 77 sound/usb/endpoint.c usb_free_coherent(u->ep->chip->dev, u->buffer_size, ep 117 sound/usb/endpoint.c int snd_usb_endpoint_implicit_feedback_sink(struct snd_usb_endpoint *ep) ep 119 sound/usb/endpoint.c return ep->sync_master && ep 120 sound/usb/endpoint.c ep->sync_master->type == SND_USB_ENDPOINT_TYPE_DATA && ep 121 sound/usb/endpoint.c ep->type == SND_USB_ENDPOINT_TYPE_DATA && ep 122 sound/usb/endpoint.c usb_pipeout(ep->pipe); ep 132 sound/usb/endpoint.c int snd_usb_endpoint_next_packet_size(struct snd_usb_endpoint *ep) ep 137 sound/usb/endpoint.c if (ep->fill_max) ep 138 sound/usb/endpoint.c return ep->maxframesize; ep 140 sound/usb/endpoint.c spin_lock_irqsave(&ep->lock, flags); ep 141 sound/usb/endpoint.c ep->phase = (ep->phase & 0xffff) ep 142 sound/usb/endpoint.c + (ep->freqm << ep->datainterval); ep 143 sound/usb/endpoint.c ret = min(ep->phase >> 16, ep->maxframesize); ep 144 sound/usb/endpoint.c spin_unlock_irqrestore(&ep->lock, flags); ep 149 sound/usb/endpoint.c static void retire_outbound_urb(struct snd_usb_endpoint *ep, ep 152 sound/usb/endpoint.c if (ep->retire_data_urb) ep 153 sound/usb/endpoint.c ep->retire_data_urb(ep->data_subs, urb_ctx->urb); ep 156 sound/usb/endpoint.c static void retire_inbound_urb(struct snd_usb_endpoint *ep, ep 161 sound/usb/endpoint.c if (unlikely(ep->skip_packets > 0)) { ep 162 sound/usb/endpoint.c ep->skip_packets--; ep 166 sound/usb/endpoint.c if (ep->sync_slave) ep 167 sound/usb/endpoint.c snd_usb_handle_sync_urb(ep->sync_slave, ep, urb); ep 169 sound/usb/endpoint.c if (ep->retire_data_urb) ep 170 sound/usb/endpoint.c ep->retire_data_urb(ep->data_subs, urb); ep 173 sound/usb/endpoint.c static void prepare_silent_urb(struct snd_usb_endpoint *ep, ep 183 sound/usb/endpoint.c if (ep->chip->tx_length_quirk) ep 194 sound/usb/endpoint.c counts = snd_usb_endpoint_next_packet_size(ep); ep 196 sound/usb/endpoint.c length = counts * ep->stride; /* number of silent bytes */ ep 197 sound/usb/endpoint.c offset = offs * ep->stride + extra * i; ep 206 sound/usb/endpoint.c ep->silence_value, length); ep 211 sound/usb/endpoint.c urb->transfer_buffer_length = offs * ep->stride + ctx->packets * extra; ep 217 sound/usb/endpoint.c static void prepare_outbound_urb(struct snd_usb_endpoint *ep, ep 223 sound/usb/endpoint.c urb->dev = ep->chip->dev; /* we need to set this at each time */ ep 225 sound/usb/endpoint.c switch (ep->type) { ep 227 sound/usb/endpoint.c if (ep->prepare_data_urb) { ep 228 sound/usb/endpoint.c ep->prepare_data_urb(ep->data_subs, urb); ep 231 sound/usb/endpoint.c prepare_silent_urb(ep, ctx); ep 236 sound/usb/endpoint.c if (snd_usb_get_speed(ep->chip->dev) >= USB_SPEED_HIGH) { ep 243 sound/usb/endpoint.c cp[0] = ep->freqn; ep 244 sound/usb/endpoint.c cp[1] = ep->freqn >> 8; ep 245 sound/usb/endpoint.c cp[2] = ep->freqn >> 16; ep 246 sound/usb/endpoint.c cp[3] = ep->freqn >> 24; ep 254 sound/usb/endpoint.c cp[0] = ep->freqn >> 2; ep 255 sound/usb/endpoint.c cp[1] = ep->freqn >> 10; ep 256 sound/usb/endpoint.c cp[2] = ep->freqn >> 18; ep 266 sound/usb/endpoint.c static inline void prepare_inbound_urb(struct snd_usb_endpoint *ep, ep 272 sound/usb/endpoint.c urb->dev = ep->chip->dev; /* we need to set this at each time */ ep 274 sound/usb/endpoint.c switch (ep->type) { ep 279 sound/usb/endpoint.c urb->iso_frame_desc[i].length = ep->curpacksize; ep 280 sound/usb/endpoint.c offs += ep->curpacksize; ep 288 sound/usb/endpoint.c urb->iso_frame_desc[0].length = min(4u, ep->syncmaxsize); ep 308 sound/usb/endpoint.c static void queue_pending_output_urbs(struct snd_usb_endpoint *ep) ep 310 sound/usb/endpoint.c while (test_bit(EP_FLAG_RUNNING, &ep->flags)) { ep 317 sound/usb/endpoint.c spin_lock_irqsave(&ep->lock, flags); ep 318 sound/usb/endpoint.c if (ep->next_packet_read_pos != ep->next_packet_write_pos) { ep 319 sound/usb/endpoint.c packet = ep->next_packet + ep->next_packet_read_pos; ep 320 sound/usb/endpoint.c ep->next_packet_read_pos++; ep 321 sound/usb/endpoint.c ep->next_packet_read_pos %= MAX_URBS; ep 324 sound/usb/endpoint.c if (!list_empty(&ep->ready_playback_urbs)) ep 325 sound/usb/endpoint.c ctx = list_first_entry(&ep->ready_playback_urbs, ep 328 sound/usb/endpoint.c spin_unlock_irqrestore(&ep->lock, flags); ep 340 sound/usb/endpoint.c prepare_outbound_urb(ep, ctx); ep 344 sound/usb/endpoint.c usb_audio_err(ep->chip, ep 348 sound/usb/endpoint.c set_bit(ctx->index, &ep->active_mask); ep 358 sound/usb/endpoint.c struct snd_usb_endpoint *ep = ctx->ep; ep 369 sound/usb/endpoint.c if (unlikely(atomic_read(&ep->chip->shutdown))) ep 372 sound/usb/endpoint.c if (unlikely(!test_bit(EP_FLAG_RUNNING, &ep->flags))) ep 375 sound/usb/endpoint.c if (usb_pipeout(ep->pipe)) { ep 376 sound/usb/endpoint.c retire_outbound_urb(ep, ctx); ep 378 sound/usb/endpoint.c if (unlikely(!test_bit(EP_FLAG_RUNNING, &ep->flags))) ep 381 sound/usb/endpoint.c if (snd_usb_endpoint_implicit_feedback_sink(ep)) { ep 382 sound/usb/endpoint.c spin_lock_irqsave(&ep->lock, flags); ep 383 sound/usb/endpoint.c list_add_tail(&ctx->ready_list, &ep->ready_playback_urbs); ep 384 sound/usb/endpoint.c spin_unlock_irqrestore(&ep->lock, flags); ep 385 sound/usb/endpoint.c queue_pending_output_urbs(ep); ep 390 sound/usb/endpoint.c prepare_outbound_urb(ep, ctx); ep 392 sound/usb/endpoint.c if (unlikely(!test_bit(EP_FLAG_RUNNING, &ep->flags))) ep 395 sound/usb/endpoint.c retire_inbound_urb(ep, ctx); ep 397 sound/usb/endpoint.c if (unlikely(!test_bit(EP_FLAG_RUNNING, &ep->flags))) ep 400 sound/usb/endpoint.c prepare_inbound_urb(ep, ctx); ep 407 sound/usb/endpoint.c usb_audio_err(ep->chip, "cannot submit urb (err = %d)\n", err); ep 408 sound/usb/endpoint.c if (ep->data_subs && ep->data_subs->pcm_substream) { ep 409 sound/usb/endpoint.c substream = ep->data_subs->pcm_substream; ep 414 sound/usb/endpoint.c clear_bit(ctx->index, &ep->active_mask); ep 440 sound/usb/endpoint.c struct snd_usb_endpoint *ep; ep 448 sound/usb/endpoint.c list_for_each_entry(ep, &chip->ep_list, list) { ep 449 sound/usb/endpoint.c if (ep->ep_num == ep_num && ep 450 sound/usb/endpoint.c ep->iface == alts->desc.bInterfaceNumber && ep 451 sound/usb/endpoint.c ep->altsetting == alts->desc.bAlternateSetting) { ep 452 sound/usb/endpoint.c usb_audio_dbg(ep->chip, ep 454 sound/usb/endpoint.c ep_num, ep->iface, ep->altsetting, ep); ep 464 sound/usb/endpoint.c ep = kzalloc(sizeof(*ep), GFP_KERNEL); ep 465 sound/usb/endpoint.c if (!ep) ep 468 sound/usb/endpoint.c ep->chip = chip; ep 469 sound/usb/endpoint.c spin_lock_init(&ep->lock); ep 470 sound/usb/endpoint.c ep->type = type; ep 471 sound/usb/endpoint.c ep->ep_num = ep_num; ep 472 sound/usb/endpoint.c ep->iface = alts->desc.bInterfaceNumber; ep 473 sound/usb/endpoint.c ep->altsetting = alts->desc.bAlternateSetting; ep 474 sound/usb/endpoint.c INIT_LIST_HEAD(&ep->ready_playback_urbs); ep 478 sound/usb/endpoint.c ep->pipe = usb_sndisocpipe(chip->dev, ep_num); ep 480 sound/usb/endpoint.c ep->pipe = usb_rcvisocpipe(chip->dev, ep_num); ep 486 sound/usb/endpoint.c ep->syncinterval = get_endpoint(alts, 1)->bRefresh; ep 488 sound/usb/endpoint.c ep->syncinterval = 1; ep 491 sound/usb/endpoint.c ep->syncinterval = get_endpoint(alts, 1)->bInterval - 1; ep 493 sound/usb/endpoint.c ep->syncinterval = 3; ep 495 sound/usb/endpoint.c ep->syncmaxsize = le16_to_cpu(get_endpoint(alts, 1)->wMaxPacketSize); ep 498 sound/usb/endpoint.c list_add_tail(&ep->list, &chip->ep_list); ep 503 sound/usb/endpoint.c return ep; ep 509 sound/usb/endpoint.c static int wait_clear_urbs(struct snd_usb_endpoint *ep) ep 515 sound/usb/endpoint.c alive = bitmap_weight(&ep->active_mask, ep->nurbs); ep 523 sound/usb/endpoint.c usb_audio_err(ep->chip, ep 525 sound/usb/endpoint.c alive, ep->ep_num); ep 526 sound/usb/endpoint.c clear_bit(EP_FLAG_STOPPING, &ep->flags); ep 528 sound/usb/endpoint.c ep->data_subs = NULL; ep 529 sound/usb/endpoint.c ep->sync_slave = NULL; ep 530 sound/usb/endpoint.c ep->retire_data_urb = NULL; ep 531 sound/usb/endpoint.c ep->prepare_data_urb = NULL; ep 539 sound/usb/endpoint.c void snd_usb_endpoint_sync_pending_stop(struct snd_usb_endpoint *ep) ep 541 sound/usb/endpoint.c if (ep && test_bit(EP_FLAG_STOPPING, &ep->flags)) ep 542 sound/usb/endpoint.c wait_clear_urbs(ep); ep 548 sound/usb/endpoint.c static int deactivate_urbs(struct snd_usb_endpoint *ep, bool force) ep 552 sound/usb/endpoint.c if (!force && atomic_read(&ep->chip->shutdown)) /* to be sure... */ ep 555 sound/usb/endpoint.c clear_bit(EP_FLAG_RUNNING, &ep->flags); ep 557 sound/usb/endpoint.c INIT_LIST_HEAD(&ep->ready_playback_urbs); ep 558 sound/usb/endpoint.c ep->next_packet_read_pos = 0; ep 559 sound/usb/endpoint.c ep->next_packet_write_pos = 0; ep 561 sound/usb/endpoint.c for (i = 0; i < ep->nurbs; i++) { ep 562 sound/usb/endpoint.c if (test_bit(i, &ep->active_mask)) { ep 563 sound/usb/endpoint.c if (!test_and_set_bit(i, &ep->unlink_mask)) { ep 564 sound/usb/endpoint.c struct urb *u = ep->urb[i].urb; ep 576 sound/usb/endpoint.c static void release_urbs(struct snd_usb_endpoint *ep, int force) ep 581 sound/usb/endpoint.c ep->retire_data_urb = NULL; ep 582 sound/usb/endpoint.c ep->prepare_data_urb = NULL; ep 585 sound/usb/endpoint.c deactivate_urbs(ep, force); ep 586 sound/usb/endpoint.c wait_clear_urbs(ep); ep 588 sound/usb/endpoint.c for (i = 0; i < ep->nurbs; i++) ep 589 sound/usb/endpoint.c release_urb_ctx(&ep->urb[i]); ep 591 sound/usb/endpoint.c if (ep->syncbuf) ep 592 sound/usb/endpoint.c usb_free_coherent(ep->chip->dev, SYNC_URBS * 4, ep 593 sound/usb/endpoint.c ep->syncbuf, ep->sync_dma); ep 595 sound/usb/endpoint.c ep->syncbuf = NULL; ep 596 sound/usb/endpoint.c ep->nurbs = 0; ep 602 sound/usb/endpoint.c static int data_ep_set_params(struct snd_usb_endpoint *ep, ep 615 sound/usb/endpoint.c int tx_length_quirk = (ep->chip->tx_length_quirk && ep 616 sound/usb/endpoint.c usb_pipeout(ep->pipe)); ep 627 sound/usb/endpoint.c ep->datainterval = fmt->datainterval; ep 628 sound/usb/endpoint.c ep->stride = frame_bits >> 3; ep 632 sound/usb/endpoint.c ep->silence_value = 0x80; ep 639 sound/usb/endpoint.c ep->silence_value = 0x69; ep 642 sound/usb/endpoint.c ep->silence_value = 0; ep 646 sound/usb/endpoint.c ep->freqmax = ep->freqn + (ep->freqn >> 1); ep 662 sound/usb/endpoint.c maxsize = (((ep->freqmax << ep->datainterval) + 0xffff) >> 16) * ep 667 sound/usb/endpoint.c if (ep->maxpacksize && ep->maxpacksize < maxsize) { ep 669 sound/usb/endpoint.c unsigned int data_maxsize = maxsize = ep->maxpacksize; ep 674 sound/usb/endpoint.c ep->freqmax = (data_maxsize / (frame_bits >> 3)) ep 675 sound/usb/endpoint.c << (16 - ep->datainterval); ep 678 sound/usb/endpoint.c if (ep->fill_max) ep 679 sound/usb/endpoint.c ep->curpacksize = ep->maxpacksize; ep 681 sound/usb/endpoint.c ep->curpacksize = maxsize; ep 683 sound/usb/endpoint.c if (snd_usb_get_speed(ep->chip->dev) != USB_SPEED_FULL) { ep 684 sound/usb/endpoint.c packs_per_ms = 8 >> ep->datainterval; ep 690 sound/usb/endpoint.c if (sync_ep && !snd_usb_endpoint_implicit_feedback_sink(ep)) ep 693 sound/usb/endpoint.c max_packs_per_urb = max(1u, max_packs_per_urb >> ep->datainterval); ep 703 sound/usb/endpoint.c if (usb_pipein(ep->pipe) || ep 704 sound/usb/endpoint.c snd_usb_endpoint_implicit_feedback_sink(ep)) { ep 713 sound/usb/endpoint.c if (snd_usb_get_speed(ep->chip->dev) == USB_SPEED_WIRELESS) { ep 714 sound/usb/endpoint.c int interval = ep->datainterval; ep 724 sound/usb/endpoint.c ep->nurbs = MAX_URBS; ep 734 sound/usb/endpoint.c minsize = (ep->freqn >> (16 - ep->datainterval)) * ep 751 sound/usb/endpoint.c ep->max_urb_frames = DIV_ROUND_UP(frames_per_period, ep 757 sound/usb/endpoint.c ep->nurbs = min(max_urbs, urbs_per_period * periods_per_buffer); ep 761 sound/usb/endpoint.c for (i = 0; i < ep->nurbs; i++) { ep 762 sound/usb/endpoint.c struct snd_urb_ctx *u = &ep->urb[i]; ep 764 sound/usb/endpoint.c u->ep = ep; ep 775 sound/usb/endpoint.c usb_alloc_coherent(ep->chip->dev, u->buffer_size, ep 779 sound/usb/endpoint.c u->urb->pipe = ep->pipe; ep 781 sound/usb/endpoint.c u->urb->interval = 1 << ep->datainterval; ep 790 sound/usb/endpoint.c release_urbs(ep, 0); ep 797 sound/usb/endpoint.c static int sync_ep_set_params(struct snd_usb_endpoint *ep) ep 801 sound/usb/endpoint.c ep->syncbuf = usb_alloc_coherent(ep->chip->dev, SYNC_URBS * 4, ep 802 sound/usb/endpoint.c GFP_KERNEL, &ep->sync_dma); ep 803 sound/usb/endpoint.c if (!ep->syncbuf) ep 807 sound/usb/endpoint.c struct snd_urb_ctx *u = &ep->urb[i]; ep 809 sound/usb/endpoint.c u->ep = ep; ep 814 sound/usb/endpoint.c u->urb->transfer_buffer = ep->syncbuf + i * 4; ep 815 sound/usb/endpoint.c u->urb->transfer_dma = ep->sync_dma + i * 4; ep 817 sound/usb/endpoint.c u->urb->pipe = ep->pipe; ep 820 sound/usb/endpoint.c u->urb->interval = 1 << ep->syncinterval; ep 825 sound/usb/endpoint.c ep->nurbs = SYNC_URBS; ep 830 sound/usb/endpoint.c release_urbs(ep, 0); ep 851 sound/usb/endpoint.c int snd_usb_endpoint_set_params(struct snd_usb_endpoint *ep, ep 863 sound/usb/endpoint.c if (ep->use_count != 0) { ep 864 sound/usb/endpoint.c usb_audio_warn(ep->chip, ep 866 sound/usb/endpoint.c ep->ep_num); ep 871 sound/usb/endpoint.c release_urbs(ep, 0); ep 873 sound/usb/endpoint.c ep->datainterval = fmt->datainterval; ep 874 sound/usb/endpoint.c ep->maxpacksize = fmt->maxpacksize; ep 875 sound/usb/endpoint.c ep->fill_max = !!(fmt->attributes & UAC_EP_CS_ATTR_FILL_MAX); ep 877 sound/usb/endpoint.c if (snd_usb_get_speed(ep->chip->dev) == USB_SPEED_FULL) ep 878 sound/usb/endpoint.c ep->freqn = get_usb_full_speed_rate(rate); ep 880 sound/usb/endpoint.c ep->freqn = get_usb_high_speed_rate(rate); ep 883 sound/usb/endpoint.c ep->freqm = ep->freqn; ep 884 sound/usb/endpoint.c ep->freqshift = INT_MIN; ep 886 sound/usb/endpoint.c ep->phase = 0; ep 888 sound/usb/endpoint.c switch (ep->type) { ep 890 sound/usb/endpoint.c err = data_ep_set_params(ep, pcm_format, channels, ep 895 sound/usb/endpoint.c err = sync_ep_set_params(ep); ep 901 sound/usb/endpoint.c usb_audio_dbg(ep->chip, ep 903 sound/usb/endpoint.c ep->ep_num, ep->type, ep->nurbs, err); ep 921 sound/usb/endpoint.c int snd_usb_endpoint_start(struct snd_usb_endpoint *ep) ep 926 sound/usb/endpoint.c if (atomic_read(&ep->chip->shutdown)) ep 930 sound/usb/endpoint.c if (++ep->use_count != 1) ep 934 sound/usb/endpoint.c deactivate_urbs(ep, false); ep 936 sound/usb/endpoint.c ep->active_mask = 0; ep 937 sound/usb/endpoint.c ep->unlink_mask = 0; ep 938 sound/usb/endpoint.c ep->phase = 0; ep 940 sound/usb/endpoint.c snd_usb_endpoint_start_quirk(ep); ep 949 sound/usb/endpoint.c set_bit(EP_FLAG_RUNNING, &ep->flags); ep 951 sound/usb/endpoint.c if (snd_usb_endpoint_implicit_feedback_sink(ep)) { ep 952 sound/usb/endpoint.c for (i = 0; i < ep->nurbs; i++) { ep 953 sound/usb/endpoint.c struct snd_urb_ctx *ctx = ep->urb + i; ep 954 sound/usb/endpoint.c list_add_tail(&ctx->ready_list, &ep->ready_playback_urbs); ep 960 sound/usb/endpoint.c for (i = 0; i < ep->nurbs; i++) { ep 961 sound/usb/endpoint.c struct urb *urb = ep->urb[i].urb; ep 966 sound/usb/endpoint.c if (usb_pipeout(ep->pipe)) { ep 967 sound/usb/endpoint.c prepare_outbound_urb(ep, urb->context); ep 969 sound/usb/endpoint.c prepare_inbound_urb(ep, urb->context); ep 974 sound/usb/endpoint.c usb_audio_err(ep->chip, ep 979 sound/usb/endpoint.c set_bit(i, &ep->active_mask); ep 985 sound/usb/endpoint.c clear_bit(EP_FLAG_RUNNING, &ep->flags); ep 986 sound/usb/endpoint.c ep->use_count--; ep 987 sound/usb/endpoint.c deactivate_urbs(ep, false); ep 1005 sound/usb/endpoint.c void snd_usb_endpoint_stop(struct snd_usb_endpoint *ep) ep 1007 sound/usb/endpoint.c if (!ep) ep 1010 sound/usb/endpoint.c if (snd_BUG_ON(ep->use_count == 0)) ep 1013 sound/usb/endpoint.c if (--ep->use_count == 0) { ep 1014 sound/usb/endpoint.c deactivate_urbs(ep, false); ep 1015 sound/usb/endpoint.c set_bit(EP_FLAG_STOPPING, &ep->flags); ep 1029 sound/usb/endpoint.c void snd_usb_endpoint_deactivate(struct snd_usb_endpoint *ep) ep 1031 sound/usb/endpoint.c if (!ep) ep 1034 sound/usb/endpoint.c if (ep->use_count != 0) ep 1037 sound/usb/endpoint.c deactivate_urbs(ep, true); ep 1038 sound/usb/endpoint.c wait_clear_urbs(ep); ep 1049 sound/usb/endpoint.c void snd_usb_endpoint_release(struct snd_usb_endpoint *ep) ep 1051 sound/usb/endpoint.c release_urbs(ep, 1); ep 1061 sound/usb/endpoint.c void snd_usb_endpoint_free(struct snd_usb_endpoint *ep) ep 1063 sound/usb/endpoint.c kfree(ep); ep 1076 sound/usb/endpoint.c void snd_usb_handle_sync_urb(struct snd_usb_endpoint *ep, ep 1084 sound/usb/endpoint.c snd_BUG_ON(ep == sender); ep 1092 sound/usb/endpoint.c if (snd_usb_endpoint_implicit_feedback_sink(ep) && ep 1093 sound/usb/endpoint.c ep->use_count != 0) { ep 1114 sound/usb/endpoint.c spin_lock_irqsave(&ep->lock, flags); ep 1115 sound/usb/endpoint.c out_packet = ep->next_packet + ep->next_packet_write_pos; ep 1136 sound/usb/endpoint.c ep->next_packet_write_pos++; ep 1137 sound/usb/endpoint.c ep->next_packet_write_pos %= MAX_URBS; ep 1138 sound/usb/endpoint.c spin_unlock_irqrestore(&ep->lock, flags); ep 1139 sound/usb/endpoint.c queue_pending_output_urbs(ep); ep 1178 sound/usb/endpoint.c if (f < ep->freqn - 0x8000) ep 1180 sound/usb/endpoint.c else if (f > ep->freqn + 0x8000) ep 1182 sound/usb/endpoint.c } else if (unlikely(ep->freqshift == INT_MIN)) { ep 1190 sound/usb/endpoint.c while (f < ep->freqn - ep->freqn / 4) { ep 1194 sound/usb/endpoint.c while (f > ep->freqn + ep->freqn / 2) { ep 1198 sound/usb/endpoint.c ep->freqshift = shift; ep 1199 sound/usb/endpoint.c } else if (ep->freqshift >= 0) ep 1200 sound/usb/endpoint.c f <<= ep->freqshift; ep 1202 sound/usb/endpoint.c f >>= -ep->freqshift; ep 1204 sound/usb/endpoint.c if (likely(f >= ep->freqn - ep->freqn / 8 && f <= ep->freqmax)) { ep 1209 sound/usb/endpoint.c spin_lock_irqsave(&ep->lock, flags); ep 1210 sound/usb/endpoint.c ep->freqm = f; ep 1211 sound/usb/endpoint.c spin_unlock_irqrestore(&ep->lock, flags); ep 1217 sound/usb/endpoint.c ep->freqshift = INT_MIN; ep 12 sound/usb/endpoint.h int snd_usb_endpoint_set_params(struct snd_usb_endpoint *ep, ep 22 sound/usb/endpoint.h int snd_usb_endpoint_start(struct snd_usb_endpoint *ep); ep 23 sound/usb/endpoint.h void snd_usb_endpoint_stop(struct snd_usb_endpoint *ep); ep 24 sound/usb/endpoint.h void snd_usb_endpoint_sync_pending_stop(struct snd_usb_endpoint *ep); ep 25 sound/usb/endpoint.h int snd_usb_endpoint_activate(struct snd_usb_endpoint *ep); ep 26 sound/usb/endpoint.h void snd_usb_endpoint_deactivate(struct snd_usb_endpoint *ep); ep 27 sound/usb/endpoint.h void snd_usb_endpoint_release(struct snd_usb_endpoint *ep); ep 28 sound/usb/endpoint.h void snd_usb_endpoint_free(struct snd_usb_endpoint *ep); ep 30 sound/usb/endpoint.h int snd_usb_endpoint_implicit_feedback_sink(struct snd_usb_endpoint *ep); ep 31 sound/usb/endpoint.h int snd_usb_endpoint_next_packet_size(struct snd_usb_endpoint *ep); ep 33 sound/usb/endpoint.h void snd_usb_handle_sync_urb(struct snd_usb_endpoint *ep, ep 72 sound/usb/helper.c struct usb_host_endpoint *ep; ep 74 sound/usb/helper.c ep = usb_pipe_endpoint(dev, pipe); ep 75 sound/usb/helper.c if (!ep || usb_pipetype(pipe) != pipetypes[usb_endpoint_type(&ep->desc)]) ep 23 sound/usb/helper.h #define get_endpoint(alt,ep) (&(alt)->endpoint[ep].desc) ep 24 sound/usb/helper.h #define get_ep_desc(ep) (&(ep)->desc) ep 526 sound/usb/hiface/pcm.c unsigned int ep, ep 537 sound/usb/hiface/pcm.c usb_sndbulkpipe(chip->dev, ep), (void *)urb->buffer, ep 509 sound/usb/line6/driver.c struct usb_host_endpoint *ep = NULL; ep 519 sound/usb/line6/driver.c ep = usbdev->ep_in[usb_pipeendpoint(pipe)]; ep 523 sound/usb/line6/driver.c if (ep) { ep 524 sound/usb/line6/driver.c line6->interval = ep->desc.bInterval; ep 525 sound/usb/line6/driver.c line6->max_packet_size = le16_to_cpu(ep->desc.wMaxPacketSize); ep 103 sound/usb/midi.c void (*output)(struct snd_usb_midi_out_endpoint *ep, struct urb *urb); ep 140 sound/usb/midi.c struct snd_usb_midi_out_endpoint *ep; ep 150 sound/usb/midi.c struct snd_usb_midi_out_endpoint *ep; ep 183 sound/usb/midi.c static void snd_usbmidi_do_output(struct snd_usb_midi_out_endpoint *ep); ep 226 sound/usb/midi.c static void snd_usbmidi_input_data(struct snd_usb_midi_in_endpoint *ep, ep 229 sound/usb/midi.c struct usbmidi_in_port *port = &ep->ports[portidx]; ep 232 sound/usb/midi.c dev_dbg(&ep->umidi->dev->dev, "unexpected port %d!\n", portidx); ep 235 sound/usb/midi.c if (!test_bit(port->substream->number, &ep->umidi->input_triggered)) ep 257 sound/usb/midi.c struct snd_usb_midi_in_endpoint *ep = urb->context; ep 261 sound/usb/midi.c ep->umidi->usb_protocol_ops->input(ep, urb->transfer_buffer, ep 267 sound/usb/midi.c ep->error_resubmit = 1; ep 268 sound/usb/midi.c mod_timer(&ep->umidi->error_timer, ep 275 sound/usb/midi.c urb->dev = ep->umidi->dev; ep 282 sound/usb/midi.c struct snd_usb_midi_out_endpoint *ep = context->ep; ep 286 sound/usb/midi.c spin_lock_irqsave(&ep->buffer_lock, flags); ep 287 sound/usb/midi.c urb_index = context - ep->urbs; ep 288 sound/usb/midi.c ep->active_urbs &= ~(1 << urb_index); ep 289 sound/usb/midi.c if (unlikely(ep->drain_urbs)) { ep 290 sound/usb/midi.c ep->drain_urbs &= ~(1 << urb_index); ep 291 sound/usb/midi.c wake_up(&ep->drain_wait); ep 293 sound/usb/midi.c spin_unlock_irqrestore(&ep->buffer_lock, flags); ep 298 sound/usb/midi.c mod_timer(&ep->umidi->error_timer, ep 303 sound/usb/midi.c snd_usbmidi_do_output(ep); ep 310 sound/usb/midi.c static void snd_usbmidi_do_output(struct snd_usb_midi_out_endpoint *ep) ep 316 sound/usb/midi.c spin_lock_irqsave(&ep->buffer_lock, flags); ep 317 sound/usb/midi.c if (ep->umidi->disconnected) { ep 318 sound/usb/midi.c spin_unlock_irqrestore(&ep->buffer_lock, flags); ep 322 sound/usb/midi.c urb_index = ep->next_urb; ep 324 sound/usb/midi.c if (!(ep->active_urbs & (1 << urb_index))) { ep 325 sound/usb/midi.c urb = ep->urbs[urb_index].urb; ep 327 sound/usb/midi.c ep->umidi->usb_protocol_ops->output(ep, urb); ep 333 sound/usb/midi.c urb->dev = ep->umidi->dev; ep 336 sound/usb/midi.c ep->active_urbs |= 1 << urb_index; ep 340 sound/usb/midi.c if (urb_index == ep->next_urb) ep 343 sound/usb/midi.c ep->next_urb = urb_index; ep 344 sound/usb/midi.c spin_unlock_irqrestore(&ep->buffer_lock, flags); ep 349 sound/usb/midi.c struct snd_usb_midi_out_endpoint *ep = ep 352 sound/usb/midi.c snd_usbmidi_do_output(ep); ep 384 sound/usb/midi.c static int send_bulk_static_data(struct snd_usb_midi_out_endpoint *ep, ep 392 sound/usb/midi.c if (ep->urbs[0].urb) ep 393 sound/usb/midi.c err = usb_bulk_msg(ep->umidi->dev, ep->urbs[0].urb->pipe, ep 405 sound/usb/midi.c static void snd_usbmidi_standard_input(struct snd_usb_midi_in_endpoint *ep, ep 414 sound/usb/midi.c snd_usbmidi_input_data(ep, cable, &buffer[i + 1], ep 419 sound/usb/midi.c static void snd_usbmidi_midiman_input(struct snd_usb_midi_in_endpoint *ep, ep 428 sound/usb/midi.c snd_usbmidi_input_data(ep, port, &buffer[i], length); ep 437 sound/usb/midi.c struct snd_usb_midi_in_endpoint *ep, ep 446 sound/usb/midi.c struct usbmidi_in_port *port = &ep->ports[cable]; ep 468 sound/usb/midi.c snd_usbmidi_input_data(ep, cable, &buffer[i + 1], ep 477 sound/usb/midi.c static void ch345_broken_sysex_input(struct snd_usb_midi_in_endpoint *ep, ep 486 sound/usb/midi.c if (ep->in_sysex && ep 487 sound/usb/midi.c cin == ep->last_cin && ep 499 sound/usb/midi.c snd_usbmidi_input_data(ep, 0, &buffer[i + 1], length); ep 500 sound/usb/midi.c ep->in_sysex = cin == 0x4; ep 501 sound/usb/midi.c if (!ep->in_sysex) ep 502 sound/usb/midi.c ep->last_cin = cin; ep 510 sound/usb/midi.c static void snd_usbmidi_cme_input(struct snd_usb_midi_in_endpoint *ep, ep 514 sound/usb/midi.c snd_usbmidi_standard_input(ep, buffer, buffer_length); ep 516 sound/usb/midi.c snd_usbmidi_input_data(ep, buffer[0] >> 4, ep 562 sound/usb/midi.c port->ep->umidi->usb_protocol_ops->output_packet; ep 654 sound/usb/midi.c static void snd_usbmidi_standard_output(struct snd_usb_midi_out_endpoint *ep, ep 661 sound/usb/midi.c struct usbmidi_out_port *port = &ep->ports[p]; ep 664 sound/usb/midi.c while (urb->transfer_buffer_length + 3 < ep->max_transfer) { ep 721 sound/usb/midi.c static void snd_usbmidi_akai_input(struct snd_usb_midi_in_endpoint *ep, ep 731 sound/usb/midi.c snd_usbmidi_input_data(ep, 0, &buffer[pos], msg_len); ep 738 sound/usb/midi.c static void snd_usbmidi_akai_output(struct snd_usb_midi_out_endpoint *ep, ep 744 sound/usb/midi.c struct snd_rawmidi_substream *substream = ep->ports[0].substream; ep 746 sound/usb/midi.c if (!ep->ports[0].active) ep 750 sound/usb/midi.c buf_end = ep->max_transfer - MAX_AKAI_SYSEX_LEN - 1; ep 757 sound/usb/midi.c ep->ports[0].active = 0; ep 792 sound/usb/midi.c ep->ports[0].active = 0; ep 811 sound/usb/midi.c static void snd_usbmidi_novation_input(struct snd_usb_midi_in_endpoint *ep, ep 816 sound/usb/midi.c snd_usbmidi_input_data(ep, 0, &buffer[2], buffer[0] - 1); ep 819 sound/usb/midi.c static void snd_usbmidi_novation_output(struct snd_usb_midi_out_endpoint *ep, ep 825 sound/usb/midi.c if (!ep->ports[0].active) ep 828 sound/usb/midi.c count = snd_rawmidi_transmit(ep->ports[0].substream, ep 830 sound/usb/midi.c ep->max_transfer - 2); ep 832 sound/usb/midi.c ep->ports[0].active = 0; ep 849 sound/usb/midi.c static void snd_usbmidi_raw_input(struct snd_usb_midi_in_endpoint *ep, ep 852 sound/usb/midi.c snd_usbmidi_input_data(ep, 0, buffer, buffer_length); ep 855 sound/usb/midi.c static void snd_usbmidi_raw_output(struct snd_usb_midi_out_endpoint *ep, ep 860 sound/usb/midi.c if (!ep->ports[0].active) ep 862 sound/usb/midi.c count = snd_rawmidi_transmit(ep->ports[0].substream, ep 864 sound/usb/midi.c ep->max_transfer); ep 866 sound/usb/midi.c ep->ports[0].active = 0; ep 881 sound/usb/midi.c static void snd_usbmidi_ftdi_input(struct snd_usb_midi_in_endpoint *ep, ep 885 sound/usb/midi.c snd_usbmidi_input_data(ep, 0, buffer + 2, buffer_length - 2); ep 893 sound/usb/midi.c static void snd_usbmidi_us122l_input(struct snd_usb_midi_in_endpoint *ep, ep 902 sound/usb/midi.c snd_usbmidi_input_data(ep, 0, buffer, buffer_length); ep 905 sound/usb/midi.c static void snd_usbmidi_us122l_output(struct snd_usb_midi_out_endpoint *ep, ep 910 sound/usb/midi.c if (!ep->ports[0].active) ep 912 sound/usb/midi.c switch (snd_usb_get_speed(ep->umidi->dev)) { ep 921 sound/usb/midi.c count = snd_rawmidi_transmit(ep->ports[0].substream, ep 925 sound/usb/midi.c ep->ports[0].active = 0; ep 929 sound/usb/midi.c memset(urb->transfer_buffer + count, 0xFD, ep->max_transfer - count); ep 930 sound/usb/midi.c urb->transfer_buffer_length = ep->max_transfer; ep 942 sound/usb/midi.c static void snd_usbmidi_emagic_init_out(struct snd_usb_midi_out_endpoint *ep) ep 954 sound/usb/midi.c send_bulk_static_data(ep, init_data, sizeof(init_data)); ep 956 sound/usb/midi.c send_bulk_static_data(ep, init_data, sizeof(init_data)); ep 959 sound/usb/midi.c static void snd_usbmidi_emagic_finish_out(struct snd_usb_midi_out_endpoint *ep) ep 972 sound/usb/midi.c send_bulk_static_data(ep, finish_data, sizeof(finish_data)); ep 975 sound/usb/midi.c static void snd_usbmidi_emagic_input(struct snd_usb_midi_in_endpoint *ep, ep 988 sound/usb/midi.c if (ep->seen_f5) ep 996 sound/usb/midi.c snd_usbmidi_input_data(ep, ep->current_port, buffer, i); ep 1003 sound/usb/midi.c ep->seen_f5 = 1; ep 1011 sound/usb/midi.c ep->current_port = (buffer[0] - 1) & 15; ep 1015 sound/usb/midi.c ep->seen_f5 = 0; ep 1019 sound/usb/midi.c static void snd_usbmidi_emagic_output(struct snd_usb_midi_out_endpoint *ep, ep 1022 sound/usb/midi.c int port0 = ep->current_port; ep 1024 sound/usb/midi.c int buf_free = ep->max_transfer; ep 1030 sound/usb/midi.c struct usbmidi_out_port *port = &ep->ports[portnum]; ep 1039 sound/usb/midi.c if (portnum != ep->current_port) { ep 1042 sound/usb/midi.c ep->current_port = portnum; ep 1059 sound/usb/midi.c if (buf_free < ep->max_transfer && buf_free > 0) { ep 1063 sound/usb/midi.c urb->transfer_buffer_length = ep->max_transfer - buf_free; ep 1175 sound/usb/midi.c if (port->ep->umidi->disconnected) { ep 1181 sound/usb/midi.c tasklet_schedule(&port->ep->tasklet); ep 1188 sound/usb/midi.c struct snd_usb_midi_out_endpoint *ep = port->ep; ep 1193 sound/usb/midi.c if (ep->umidi->disconnected) ep 1199 sound/usb/midi.c spin_lock_irq(&ep->buffer_lock); ep 1200 sound/usb/midi.c drain_urbs = ep->active_urbs; ep 1202 sound/usb/midi.c ep->drain_urbs |= drain_urbs; ep 1204 sound/usb/midi.c prepare_to_wait(&ep->drain_wait, &wait, ep 1206 sound/usb/midi.c spin_unlock_irq(&ep->buffer_lock); ep 1208 sound/usb/midi.c spin_lock_irq(&ep->buffer_lock); ep 1209 sound/usb/midi.c drain_urbs &= ep->drain_urbs; ep 1211 sound/usb/midi.c finish_wait(&ep->drain_wait, &wait); ep 1213 sound/usb/midi.c spin_unlock_irq(&ep->buffer_lock); ep 1262 sound/usb/midi.c static void snd_usbmidi_in_endpoint_delete(struct snd_usb_midi_in_endpoint *ep) ep 1267 sound/usb/midi.c if (ep->urbs[i]) ep 1268 sound/usb/midi.c free_urb_and_buffer(ep->umidi, ep->urbs[i], ep 1269 sound/usb/midi.c ep->urbs[i]->transfer_buffer_length); ep 1270 sound/usb/midi.c kfree(ep); ep 1280 sound/usb/midi.c struct snd_usb_midi_in_endpoint *ep; ep 1288 sound/usb/midi.c ep = kzalloc(sizeof(*ep), GFP_KERNEL); ep 1289 sound/usb/midi.c if (!ep) ep 1291 sound/usb/midi.c ep->umidi = umidi; ep 1294 sound/usb/midi.c ep->urbs[i] = usb_alloc_urb(0, GFP_KERNEL); ep 1295 sound/usb/midi.c if (!ep->urbs[i]) { ep 1307 sound/usb/midi.c &ep->urbs[i]->transfer_dma); ep 1313 sound/usb/midi.c usb_fill_int_urb(ep->urbs[i], umidi->dev, ep 1316 sound/usb/midi.c ep, ep_info->in_interval); ep 1318 sound/usb/midi.c usb_fill_bulk_urb(ep->urbs[i], umidi->dev, ep 1320 sound/usb/midi.c snd_usbmidi_in_urb_complete, ep); ep 1321 sound/usb/midi.c ep->urbs[i]->transfer_flags = URB_NO_TRANSFER_DMA_MAP; ep 1322 sound/usb/midi.c err = usb_urb_ep_type_check(ep->urbs[i]); ep 1330 sound/usb/midi.c rep->in = ep; ep 1334 sound/usb/midi.c snd_usbmidi_in_endpoint_delete(ep); ep 1342 sound/usb/midi.c static void snd_usbmidi_out_endpoint_clear(struct snd_usb_midi_out_endpoint *ep) ep 1347 sound/usb/midi.c if (ep->urbs[i].urb) { ep 1348 sound/usb/midi.c free_urb_and_buffer(ep->umidi, ep->urbs[i].urb, ep 1349 sound/usb/midi.c ep->max_transfer); ep 1350 sound/usb/midi.c ep->urbs[i].urb = NULL; ep 1354 sound/usb/midi.c static void snd_usbmidi_out_endpoint_delete(struct snd_usb_midi_out_endpoint *ep) ep 1356 sound/usb/midi.c snd_usbmidi_out_endpoint_clear(ep); ep 1357 sound/usb/midi.c kfree(ep); ep 1367 sound/usb/midi.c struct snd_usb_midi_out_endpoint *ep; ep 1374 sound/usb/midi.c ep = kzalloc(sizeof(*ep), GFP_KERNEL); ep 1375 sound/usb/midi.c if (!ep) ep 1377 sound/usb/midi.c ep->umidi = umidi; ep 1380 sound/usb/midi.c ep->urbs[i].urb = usb_alloc_urb(0, GFP_KERNEL); ep 1381 sound/usb/midi.c if (!ep->urbs[i].urb) { ep 1385 sound/usb/midi.c ep->urbs[i].ep = ep; ep 1393 sound/usb/midi.c ep->max_transfer = usb_maxpacket(umidi->dev, pipe, 1); ep 1406 sound/usb/midi.c ep->max_transfer = 4; ep 1413 sound/usb/midi.c ep->max_transfer = 9; ep 1418 sound/usb/midi.c ep->max_transfer, GFP_KERNEL, ep 1419 sound/usb/midi.c &ep->urbs[i].urb->transfer_dma); ep 1425 sound/usb/midi.c usb_fill_int_urb(ep->urbs[i].urb, umidi->dev, ep 1426 sound/usb/midi.c pipe, buffer, ep->max_transfer, ep 1428 sound/usb/midi.c &ep->urbs[i], ep_info->out_interval); ep 1430 sound/usb/midi.c usb_fill_bulk_urb(ep->urbs[i].urb, umidi->dev, ep 1431 sound/usb/midi.c pipe, buffer, ep->max_transfer, ep 1433 sound/usb/midi.c &ep->urbs[i]); ep 1434 sound/usb/midi.c err = usb_urb_ep_type_check(ep->urbs[i].urb); ep 1440 sound/usb/midi.c ep->urbs[i].urb->transfer_flags = URB_NO_TRANSFER_DMA_MAP; ep 1443 sound/usb/midi.c spin_lock_init(&ep->buffer_lock); ep 1444 sound/usb/midi.c tasklet_init(&ep->tasklet, snd_usbmidi_out_tasklet, (unsigned long)ep); ep 1445 sound/usb/midi.c init_waitqueue_head(&ep->drain_wait); ep 1449 sound/usb/midi.c ep->ports[i].ep = ep; ep 1450 sound/usb/midi.c ep->ports[i].cable = i << 4; ep 1454 sound/usb/midi.c umidi->usb_protocol_ops->init_out_endpoint(ep); ep 1456 sound/usb/midi.c rep->out = ep; ep 1460 sound/usb/midi.c snd_usbmidi_out_endpoint_delete(ep); ep 1472 sound/usb/midi.c struct snd_usb_midi_endpoint *ep = &umidi->endpoints[i]; ep 1473 sound/usb/midi.c if (ep->out) ep 1474 sound/usb/midi.c snd_usbmidi_out_endpoint_delete(ep->out); ep 1475 sound/usb/midi.c if (ep->in) ep 1476 sound/usb/midi.c snd_usbmidi_in_endpoint_delete(ep->in); ep 1503 sound/usb/midi.c struct snd_usb_midi_endpoint *ep = &umidi->endpoints[i]; ep 1504 sound/usb/midi.c if (ep->out) ep 1505 sound/usb/midi.c tasklet_kill(&ep->out->tasklet); ep 1506 sound/usb/midi.c if (ep->out) { ep 1508 sound/usb/midi.c usb_kill_urb(ep->out->urbs[j].urb); ep 1510 sound/usb/midi.c umidi->usb_protocol_ops->finish_out_endpoint(ep->out); ep 1511 sound/usb/midi.c ep->out->active_urbs = 0; ep 1512 sound/usb/midi.c if (ep->out->drain_urbs) { ep 1513 sound/usb/midi.c ep->out->drain_urbs = 0; ep 1514 sound/usb/midi.c wake_up(&ep->out->drain_wait); ep 1517 sound/usb/midi.c if (ep->in) ep 1519 sound/usb/midi.c usb_kill_urb(ep->in->urbs[j]); ep 1521 sound/usb/midi.c if (ep->out) ep 1522 sound/usb/midi.c snd_usbmidi_out_endpoint_clear(ep->out); ep 1523 sound/usb/midi.c if (ep->in) { ep 1524 sound/usb/midi.c snd_usbmidi_in_endpoint_delete(ep->in); ep 1525 sound/usb/midi.c ep->in = NULL; ep 1840 sound/usb/midi.c struct usb_endpoint_descriptor *ep; ep 1863 sound/usb/midi.c ep = get_ep_desc(hostep); ep 1864 sound/usb/midi.c if (!usb_endpoint_xfer_bulk(ep) && !usb_endpoint_xfer_int(ep)) ep 1872 sound/usb/midi.c if (usb_endpoint_dir_out(ep)) { ep 1880 sound/usb/midi.c endpoints[epidx].out_ep = usb_endpoint_num(ep); ep 1881 sound/usb/midi.c if (usb_endpoint_xfer_int(ep)) ep 1882 sound/usb/midi.c endpoints[epidx].out_interval = ep->bInterval; ep 1893 sound/usb/midi.c ep->bEndpointAddress, ms_ep->bNumEmbMIDIJack); ep 1902 sound/usb/midi.c endpoints[epidx].in_ep = usb_endpoint_num(ep); ep 1903 sound/usb/midi.c if (usb_endpoint_xfer_int(ep)) ep 1904 sound/usb/midi.c endpoints[epidx].in_interval = ep->bInterval; ep 1910 sound/usb/midi.c ep->bEndpointAddress, ms_ep->bNumEmbMIDIJack); ep 2276 sound/usb/midi.c struct snd_usb_midi_endpoint *ep = &umidi->endpoints[i]; ep 2277 sound/usb/midi.c if (ep->in) ep 2279 sound/usb/midi.c usb_kill_urb(ep->in->urbs[j]); ep 2285 sound/usb/midi.c static void snd_usbmidi_input_start_ep(struct snd_usb_midi_in_endpoint *ep) ep 2289 sound/usb/midi.c if (!ep) ep 2292 sound/usb/midi.c struct urb *urb = ep->urbs[i]; ep 2293 sound/usb/midi.c urb->dev = ep->umidi->dev; ep 3389 sound/usb/mixer.c struct usb_endpoint_descriptor *ep; ep 3397 sound/usb/mixer.c ep = get_endpoint(mixer->hostif, 0); ep 3398 sound/usb/mixer.c if (!usb_endpoint_dir_in(ep) || !usb_endpoint_xfer_int(ep)) ep 3401 sound/usb/mixer.c epnum = usb_endpoint_num(ep); ep 3402 sound/usb/mixer.c buffer_length = le16_to_cpu(ep->wMaxPacketSize); ep 3414 sound/usb/mixer.c snd_usb_mixer_interrupt, mixer, ep->bInterval); ep 1497 sound/usb/mixer_quirks.c unsigned int ep; ep 1520 sound/usb/mixer_quirks.c ep = get_endpoint(alts, 0)->bEndpointAddress; ep 1527 sound/usb/mixer_quirks.c ep, ep 146 sound/usb/pcm.c unsigned int ep; ep 152 sound/usb/pcm.c ep = get_endpoint(alts, 0)->bEndpointAddress; ep 157 sound/usb/pcm.c UAC_EP_CS_ATTR_PITCH_CONTROL << 8, ep, ep 161 sound/usb/pcm.c iface, ep); ep 219 sound/usb/pcm.c struct snd_usb_endpoint *ep = subs->data_endpoint; ep 221 sound/usb/pcm.c dev_dbg(&subs->dev->dev, "Starting data EP @%p\n", ep); ep 223 sound/usb/pcm.c ep->data_subs = subs; ep 224 sound/usb/pcm.c err = snd_usb_endpoint_start(ep); ep 233 sound/usb/pcm.c struct snd_usb_endpoint *ep = subs->sync_endpoint; ep 250 sound/usb/pcm.c dev_dbg(&subs->dev->dev, "Starting sync EP @%p\n", ep); ep 252 sound/usb/pcm.c ep->sync_slave = subs->data_endpoint; ep 253 sound/usb/pcm.c err = snd_usb_endpoint_start(ep); ep 280 sound/usb/pcm.c unsigned int *ep) ep 302 sound/usb/pcm.c *ep = epd->bEndpointAddress; ep 316 sound/usb/pcm.c unsigned int ep; ep 326 sound/usb/pcm.c ep = 0x81; ep 331 sound/usb/pcm.c ep = 0x81; ep 335 sound/usb/pcm.c ep = 0x86; ep 339 sound/usb/pcm.c ep = 0x81; ep 344 sound/usb/pcm.c ep = 0x81; ep 348 sound/usb/pcm.c ep = 0x84; ep 352 sound/usb/pcm.c ep = 0x81; ep 367 sound/usb/pcm.c &alts, &ep) >= 0) { ep 384 sound/usb/pcm.c alts, ep, !subs->direction, ep 401 sound/usb/pcm.c unsigned int ep, attr; ep 465 sound/usb/pcm.c ep = get_endpoint(alts, 1)->bEndpointAddress; ep 468 sound/usb/pcm.c ((is_playback && ep != (unsigned int)(get_endpoint(alts, 0)->bSynchAddress | USB_DIR_IN)) || ep 469 sound/usb/pcm.c (!is_playback && ep != (unsigned int)(get_endpoint(alts, 0)->bSynchAddress & ~USB_DIR_IN)))) { ep 473 sound/usb/pcm.c is_playback, ep, get_endpoint(alts, 0)->bSynchAddress); ep 483 sound/usb/pcm.c alts, ep, !subs->direction, ep 1563 sound/usb/pcm.c struct snd_usb_endpoint *ep = subs->data_endpoint; ep 1574 sound/usb/pcm.c subs->frame_limit += ep->max_urb_frames; ep 1579 sound/usb/pcm.c counts = snd_usb_endpoint_next_packet_size(ep); ep 1582 sound/usb/pcm.c urb->iso_frame_desc[i].offset = frames * ep->stride; ep 1583 sound/usb/pcm.c urb->iso_frame_desc[i].length = counts * ep->stride; ep 1598 sound/usb/pcm.c counts * ep->stride; ep 1605 sound/usb/pcm.c frames * ep->stride; ep 1615 sound/usb/pcm.c !snd_usb_endpoint_implicit_feedback_sink(ep)) ep 1618 sound/usb/pcm.c bytes = frames * ep->stride; ep 1677 sound/usb/pcm.c struct snd_usb_endpoint *ep = subs->data_endpoint; ep 1678 sound/usb/pcm.c int processed = urb->transfer_buffer_length / ep->stride; ep 1516 sound/usb/quirks.c void snd_usb_endpoint_start_quirk(struct snd_usb_endpoint *ep) ep 1522 sound/usb/quirks.c if (USB_ID_VENDOR(ep->chip->usb_id) == 0x23ba && ep 1523 sound/usb/quirks.c ep->type == SND_USB_ENDPOINT_TYPE_SYNC) ep 1524 sound/usb/quirks.c ep->skip_packets = 4; ep 1533 sound/usb/quirks.c if ((ep->chip->usb_id == USB_ID(0x0763, 0x2030) || ep 1534 sound/usb/quirks.c ep->chip->usb_id == USB_ID(0x0763, 0x2031)) && ep 1535 sound/usb/quirks.c ep->type == SND_USB_ENDPOINT_TYPE_DATA) ep 1536 sound/usb/quirks.c ep->skip_packets = 16; ep 1539 sound/usb/quirks.c if ((ep->chip->usb_id == USB_ID(0x0644, 0x8038) || /* TEAC UD-H01 */ ep 1540 sound/usb/quirks.c ep->chip->usb_id == USB_ID(0x1852, 0x5034)) && /* T+A Dac8 */ ep 1541 sound/usb/quirks.c ep->syncmaxsize == 4) ep 1542 sound/usb/quirks.c ep->tenor_fb_quirk = 1; ep 36 sound/usb/quirks.h void snd_usb_endpoint_start_quirk(struct snd_usb_endpoint *ep); ep 301 sound/usb/usx2y/us122l.c unsigned int ep = 0x81; ep 310 sound/usb/usx2y/us122l.c UAC_EP_CS_ATTR_SAMPLE_RATE << 8, ep, data, 3, 1000); ep 313 sound/usb/usx2y/us122l.c dev->devnum, rate, ep); ep 51 tools/include/uapi/linux/usbdevice_fs.h unsigned int ep; ep 560 tools/lib/bpf/libbpf.c GElf_Ehdr *ep; ep 600 tools/lib/bpf/libbpf.c ep = &obj->efile.ehdr; ep 603 tools/lib/bpf/libbpf.c if (ep->e_type != ET_REL || ep 604 tools/lib/bpf/libbpf.c (ep->e_machine && ep->e_machine != EM_BPF)) { ep 675 tools/lib/bpf/libbpf.c const GElf_Ehdr *ep = &obj->efile.ehdr; ep 692 tools/lib/bpf/libbpf.c sec_name = elf_strptr(elf, ep->e_shstrndx, sh.sh_name); ep 1522 tools/lib/bpf/libbpf.c GElf_Ehdr *ep = &obj->efile.ehdr; ep 1529 tools/lib/bpf/libbpf.c if (!elf_rawdata(elf_getscn(elf, ep->e_shstrndx), NULL)) { ep 1546 tools/lib/bpf/libbpf.c name = elf_strptr(elf, ep->e_shstrndx, sh.sh_name); ep 82 tools/perf/util/strfilter.c const char **ep) ep 146 tools/perf/util/strfilter.c *ep = s; ep 151 tools/perf/util/strfilter.c *ep = s; ep 163 tools/perf/util/strfilter.c const char *ep = NULL; ep 166 tools/perf/util/strfilter.c filter->root = strfilter_node__new(rules, &ep); ep 168 tools/perf/util/strfilter.c if (!filter || !filter->root || *ep != '\0') { ep 170 tools/perf/util/strfilter.c *err = ep; ep 182 tools/perf/util/strfilter.c const char *ep = NULL; ep 187 tools/perf/util/strfilter.c right = strfilter_node__new(rules, &ep); ep 188 tools/perf/util/strfilter.c if (!right || *ep != '\0') { ep 190 tools/perf/util/strfilter.c *err = ep; ep 195 tools/perf/util/strfilter.c ep = NULL; ep 204 tools/perf/util/strfilter.c return ep ? -EINVAL : -ENOMEM; ep 207 tools/perf/util/symbol-elf.c Elf_Scn *elf_section_by_name(Elf *elf, GElf_Ehdr *ep, ep 214 tools/perf/util/symbol-elf.c if (!elf_rawdata(elf_getscn(elf, ep->e_shstrndx), NULL)) ep 221 tools/perf/util/symbol-elf.c str = elf_strptr(elf, ep->e_shstrndx, shp->sh_name); ep 37 tools/perf/util/symbol.h Elf_Scn *elf_section_by_name(Elf *elf, GElf_Ehdr *ep, ep 210 tools/usb/ffs-aio-example/simple/device_app/aio_simple.c int ep[2]; ep 250 tools/usb/ffs-aio-example/simple/device_app/aio_simple.c ep[i] = open(ep_path, O_RDWR); ep 251 tools/usb/ffs-aio-example/simple/device_app/aio_simple.c if (ep[i] < 0) { ep 314 tools/usb/ffs-aio-example/simple/device_app/aio_simple.c if (e[i].obj->aio_fildes == ep[0]) { ep 317 tools/usb/ffs-aio-example/simple/device_app/aio_simple.c } else if (e[i].obj->aio_fildes == ep[1]) { ep 326 tools/usb/ffs-aio-example/simple/device_app/aio_simple.c io_prep_pwrite(iocb_in, ep[0], buf_in, BUF_LEN, 0); ep 340 tools/usb/ffs-aio-example/simple/device_app/aio_simple.c io_prep_pread(iocb_out, ep[1], buf_out, BUF_LEN, 0); ep 364 tools/usb/ffs-aio-example/simple/device_app/aio_simple.c close(ep[i]);