mep               179 arch/arc/plat-eznps/include/plat/ctop.h 			u32 mep:1, __reserved:31;
mep                69 arch/arc/plat-eznps/smp.c 	lpc.mep = 1;
mep               115 drivers/scsi/mac_esp.c 	struct mac_esp_priv *mep = MAC_ESP_GET_PRIV(esp);
mep               119 drivers/scsi/mac_esp.c 		if (mep->pdma_regs == NULL) {
mep               123 drivers/scsi/mac_esp.c 			if (nubus_readl(mep->pdma_regs) & 0x200)
mep               195 drivers/scsi/mac_esp.c 	     : "g" (count1), "a" (mep->pdma_io))
mep               200 drivers/scsi/mac_esp.c 	struct mac_esp_priv *mep = MAC_ESP_GET_PRIV(esp);
mep               296 drivers/scsi/mac_esp.c 	struct mac_esp_priv *mep;
mep               326 drivers/scsi/mac_esp.c 	mep = kzalloc(sizeof(struct mac_esp_priv), GFP_KERNEL);
mep               327 drivers/scsi/mac_esp.c 	if (!mep)
mep               329 drivers/scsi/mac_esp.c 	mep->esp = esp;
mep               330 drivers/scsi/mac_esp.c 	platform_set_drvdata(dev, mep);
mep               336 drivers/scsi/mac_esp.c 		mep->pdma_io   = esp->regs + MAC_ESP_PDMA_IO_OFFSET;
mep               337 drivers/scsi/mac_esp.c 		mep->pdma_regs = NULL;
mep               343 drivers/scsi/mac_esp.c 		mep->pdma_io   = esp->regs + MAC_ESP_PDMA_IO_OFFSET;
mep               344 drivers/scsi/mac_esp.c 		mep->pdma_regs = (void __iomem *)(MAC_ESP_PDMA_REG +
mep               346 drivers/scsi/mac_esp.c 		nubus_writel(0x1d1, mep->pdma_regs);
mep               354 drivers/scsi/mac_esp.c 		mep->pdma_io   = NULL;
mep               355 drivers/scsi/mac_esp.c 		mep->pdma_regs = NULL;
mep               362 drivers/scsi/mac_esp.c 	if (mep->pdma_io == NULL) {
mep               401 drivers/scsi/mac_esp.c 	kfree(mep);
mep               412 drivers/scsi/mac_esp.c 	struct mac_esp_priv *mep = platform_get_drvdata(dev);
mep               413 drivers/scsi/mac_esp.c 	struct esp *esp = mep->esp;
mep               426 drivers/scsi/mac_esp.c 	kfree(mep);
mep               303 drivers/usb/mtu3/mtu3.h 	struct mtu3_ep *mep;
mep               390 drivers/usb/mtu3/mtu3.h static inline struct mtu3_request *next_request(struct mtu3_ep *mep)
mep               392 drivers/usb/mtu3/mtu3.h 	return list_first_entry_or_null(&mep->req_list, struct mtu3_request,
mep               425 drivers/usb/mtu3/mtu3.h void mtu3_req_complete(struct mtu3_ep *mep,
mep               428 drivers/usb/mtu3/mtu3.h int mtu3_config_ep(struct mtu3 *mtu, struct mtu3_ep *mep,
mep               430 drivers/usb/mtu3/mtu3.h void mtu3_deconfig_ep(struct mtu3 *mtu, struct mtu3_ep *mep);
mep               431 drivers/usb/mtu3/mtu3.h void mtu3_ep_stall_set(struct mtu3_ep *mep, bool set);
mep                23 drivers/usb/mtu3/mtu3_core.c static int ep_fifo_alloc(struct mtu3_ep *mep, u32 seg_size)
mep                25 drivers/usb/mtu3/mtu3_core.c 	struct mtu3_fifo_info *fifo = mep->fifo;
mep                34 drivers/usb/mtu3/mtu3_core.c 	mep->fifo_seg_size = num_bits * MTU3_EP_FIFO_UNIT;
mep                35 drivers/usb/mtu3/mtu3_core.c 	num_bits = num_bits * (mep->slot + 1);
mep                42 drivers/usb/mtu3/mtu3_core.c 	mep->fifo_size = num_bits * MTU3_EP_FIFO_UNIT;
mep                43 drivers/usb/mtu3/mtu3_core.c 	mep->fifo_addr = fifo->base + MTU3_EP_FIFO_UNIT * start_bit;
mep                45 drivers/usb/mtu3/mtu3_core.c 	dev_dbg(mep->mtu->dev, "%s fifo:%#x/%#x, start_bit: %d\n",
mep                46 drivers/usb/mtu3/mtu3_core.c 		__func__, mep->fifo_seg_size, mep->fifo_size, start_bit);
mep                48 drivers/usb/mtu3/mtu3_core.c 	return mep->fifo_addr;
mep                51 drivers/usb/mtu3/mtu3_core.c static void ep_fifo_free(struct mtu3_ep *mep)
mep                53 drivers/usb/mtu3/mtu3_core.c 	struct mtu3_fifo_info *fifo = mep->fifo;
mep                54 drivers/usb/mtu3/mtu3_core.c 	u32 addr = mep->fifo_addr;
mep                55 drivers/usb/mtu3/mtu3_core.c 	u32 bits = mep->fifo_size / MTU3_EP_FIFO_UNIT;
mep                63 drivers/usb/mtu3/mtu3_core.c 	mep->fifo_size = 0;
mep                64 drivers/usb/mtu3/mtu3_core.c 	mep->fifo_seg_size = 0;
mep                66 drivers/usb/mtu3/mtu3_core.c 	dev_dbg(mep->mtu->dev, "%s size:%#x/%#x, start_bit: %d\n",
mep                67 drivers/usb/mtu3/mtu3_core.c 		__func__, mep->fifo_seg_size, mep->fifo_size, start_bit);
mep               206 drivers/usb/mtu3/mtu3_core.c static void mtu3_ep_reset(struct mtu3_ep *mep)
mep               208 drivers/usb/mtu3/mtu3_core.c 	struct mtu3 *mtu = mep->mtu;
mep               209 drivers/usb/mtu3/mtu3_core.c 	u32 rst_bit = EP_RST(mep->is_in, mep->epnum);
mep               216 drivers/usb/mtu3/mtu3_core.c void mtu3_ep_stall_set(struct mtu3_ep *mep, bool set)
mep               218 drivers/usb/mtu3/mtu3_core.c 	struct mtu3 *mtu = mep->mtu;
mep               220 drivers/usb/mtu3/mtu3_core.c 	u8 epnum = mep->epnum;
mep               223 drivers/usb/mtu3/mtu3_core.c 	if (mep->is_in) {	/* TX */
mep               240 drivers/usb/mtu3/mtu3_core.c 		mtu3_ep_reset(mep);
mep               241 drivers/usb/mtu3/mtu3_core.c 		mep->flags &= ~MTU3_EP_STALL;
mep               243 drivers/usb/mtu3/mtu3_core.c 		mep->flags |= MTU3_EP_STALL;
mep               246 drivers/usb/mtu3/mtu3_core.c 	dev_dbg(mtu->dev, "%s: %s\n", mep->name,
mep               301 drivers/usb/mtu3/mtu3_core.c int mtu3_config_ep(struct mtu3 *mtu, struct mtu3_ep *mep,
mep               306 drivers/usb/mtu3/mtu3_core.c 	int epnum = mep->epnum;
mep               311 drivers/usb/mtu3/mtu3_core.c 	fifo_addr = ep_fifo_alloc(mep, mep->maxp);
mep               313 drivers/usb/mtu3/mtu3_core.c 		dev_err(mtu->dev, "alloc ep fifo failed(%d)\n", mep->maxp);
mep               316 drivers/usb/mtu3/mtu3_core.c 	fifo_sgsz = ilog2(mep->fifo_seg_size);
mep               318 drivers/usb/mtu3/mtu3_core.c 		mep->fifo_seg_size, mep->fifo_size);
mep               320 drivers/usb/mtu3/mtu3_core.c 	if (mep->is_in) {
mep               321 drivers/usb/mtu3/mtu3_core.c 		csr0 = TX_TXMAXPKTSZ(mep->maxp);
mep               325 drivers/usb/mtu3/mtu3_core.c 		csr1 = TX_SS_BURST(burst) | TX_SLOT(mep->slot);
mep               331 drivers/usb/mtu3/mtu3_core.c 		switch (mep->type) {
mep               357 drivers/usb/mtu3/mtu3_core.c 		csr0 = RX_RXMAXPKTSZ(mep->maxp);
mep               361 drivers/usb/mtu3/mtu3_core.c 		csr1 = RX_SS_BURST(burst) | RX_SLOT(mep->slot);
mep               367 drivers/usb/mtu3/mtu3_core.c 		switch (mep->type) {
mep               396 drivers/usb/mtu3/mtu3_core.c 		__func__, mep->name, mep->fifo_addr, mep->fifo_size,
mep               397 drivers/usb/mtu3/mtu3_core.c 		fifo_sgsz, mep->fifo_seg_size);
mep               403 drivers/usb/mtu3/mtu3_core.c void mtu3_deconfig_ep(struct mtu3 *mtu, struct mtu3_ep *mep)
mep               406 drivers/usb/mtu3/mtu3_core.c 	int epnum = mep->epnum;
mep               408 drivers/usb/mtu3/mtu3_core.c 	if (mep->is_in) {
mep               420 drivers/usb/mtu3/mtu3_core.c 	mtu3_ep_reset(mep);
mep               421 drivers/usb/mtu3/mtu3_core.c 	ep_fifo_free(mep);
mep               423 drivers/usb/mtu3/mtu3_core.c 	dev_dbg(mtu->dev, "%s: %s\n", __func__, mep->name);
mep               526 drivers/usb/mtu3/mtu3_core.c 		struct mtu3_ep *mep = mtu->in_eps + i;
mep               528 drivers/usb/mtu3/mtu3_core.c 		mep->fifo = &mtu->tx_fifo;
mep               529 drivers/usb/mtu3/mtu3_core.c 		mep = mtu->out_eps + i;
mep               530 drivers/usb/mtu3/mtu3_core.c 		mep->fifo = &mtu->rx_fifo;
mep                93 drivers/usb/mtu3/mtu3_debugfs.c 	struct mtu3_ep *mep;
mep               101 drivers/usb/mtu3/mtu3_debugfs.c 		mep = mtu->in_eps + i;
mep               102 drivers/usb/mtu3/mtu3_debugfs.c 		if (mep->flags & MTU3_EP_ENABLED) {
mep               103 drivers/usb/mtu3/mtu3_debugfs.c 			seq_printf(sf, "%s - type: %d\n", mep->name, mep->type);
mep               107 drivers/usb/mtu3/mtu3_debugfs.c 		mep = mtu->out_eps + i;
mep               108 drivers/usb/mtu3/mtu3_debugfs.c 		if (mep->flags & MTU3_EP_ENABLED) {
mep               109 drivers/usb/mtu3/mtu3_debugfs.c 			seq_printf(sf, "%s - type: %d\n", mep->name, mep->type);
mep               143 drivers/usb/mtu3/mtu3_debugfs.c static void mtu3_debugfs_ep_regset(struct mtu3 *mtu, struct mtu3_ep *mep,
mep               147 drivers/usb/mtu3/mtu3_debugfs.c 	int epnum = mep->epnum;
mep               148 drivers/usb/mtu3/mtu3_debugfs.c 	int in = mep->is_in;
mep               174 drivers/usb/mtu3/mtu3_debugfs.c 	struct mtu3_ep *mep = sf->private;
mep               175 drivers/usb/mtu3/mtu3_debugfs.c 	struct mtu3 *mtu = mep->mtu;
mep               180 drivers/usb/mtu3/mtu3_debugfs.c 		   mep->type, mep->maxp, mep->slot, mep->flags);
mep               188 drivers/usb/mtu3/mtu3_debugfs.c 	struct mtu3_ep *mep = sf->private;
mep               189 drivers/usb/mtu3/mtu3_debugfs.c 	struct mtu3 *mtu = mep->mtu;
mep               194 drivers/usb/mtu3/mtu3_debugfs.c 		   mep->fifo_seg_size, mep->fifo_addr, mep->fifo_size);
mep               202 drivers/usb/mtu3/mtu3_debugfs.c 	struct mtu3_ep *mep = sf->private;
mep               203 drivers/usb/mtu3/mtu3_debugfs.c 	struct mtu3 *mtu = mep->mtu;
mep               207 drivers/usb/mtu3/mtu3_debugfs.c 	ring = &mep->gpd_ring;
mep               220 drivers/usb/mtu3/mtu3_debugfs.c 	struct mtu3_ep *mep = sf->private;
mep               221 drivers/usb/mtu3/mtu3_debugfs.c 	struct mtu3 *mtu = mep->mtu;
mep               229 drivers/usb/mtu3/mtu3_debugfs.c 	ring = &mep->gpd_ring;
mep               231 drivers/usb/mtu3/mtu3_debugfs.c 	if (!gpd || !(mep->flags & MTU3_EP_ENABLED)) {
mep               368 drivers/usb/mtu3/mtu3_debugfs.c static void mtu3_debugfs_create_ep_dir(struct mtu3_ep *mep,
mep               375 drivers/usb/mtu3/mtu3_debugfs.c 	dir_ep = debugfs_create_dir(mep->name, parent);
mep               376 drivers/usb/mtu3/mtu3_debugfs.c 	mtu3_debugfs_ep_regset(mep->mtu, mep, dir_ep);
mep               382 drivers/usb/mtu3/mtu3_debugfs.c 				    mep, &mtu3_ep_fops);
mep                13 drivers/usb/mtu3/mtu3_gadget.c void mtu3_req_complete(struct mtu3_ep *mep,
mep                15 drivers/usb/mtu3/mtu3_gadget.c __releases(mep->mtu->lock)
mep                16 drivers/usb/mtu3/mtu3_gadget.c __acquires(mep->mtu->lock)
mep                20 drivers/usb/mtu3/mtu3_gadget.c 	int busy = mep->busy;
mep                28 drivers/usb/mtu3/mtu3_gadget.c 	mep->busy = 1;
mep                34 drivers/usb/mtu3/mtu3_gadget.c 	if (mep->epnum)
mep                35 drivers/usb/mtu3/mtu3_gadget.c 		usb_gadget_unmap_request(&mtu->g, req, mep->is_in);
mep                37 drivers/usb/mtu3/mtu3_gadget.c 	dev_dbg(mtu->dev, "%s complete req: %p, sts %d, %d/%d\n", mep->name,
mep                40 drivers/usb/mtu3/mtu3_gadget.c 	usb_gadget_giveback_request(&mep->ep, &mreq->request);
mep                43 drivers/usb/mtu3/mtu3_gadget.c 	mep->busy = busy;
mep                46 drivers/usb/mtu3/mtu3_gadget.c static void nuke(struct mtu3_ep *mep, const int status)
mep                50 drivers/usb/mtu3/mtu3_gadget.c 	mep->busy = 1;
mep                51 drivers/usb/mtu3/mtu3_gadget.c 	if (list_empty(&mep->req_list))
mep                54 drivers/usb/mtu3/mtu3_gadget.c 	dev_dbg(mep->mtu->dev, "abort %s's req: sts %d\n", mep->name, status);
mep                57 drivers/usb/mtu3/mtu3_gadget.c 	if (mep->epnum)
mep                58 drivers/usb/mtu3/mtu3_gadget.c 		mtu3_qmu_flush(mep);
mep                60 drivers/usb/mtu3/mtu3_gadget.c 	while (!list_empty(&mep->req_list)) {
mep                61 drivers/usb/mtu3/mtu3_gadget.c 		mreq = list_first_entry(&mep->req_list,
mep                63 drivers/usb/mtu3/mtu3_gadget.c 		mtu3_req_complete(mep, &mreq->request, status);
mep                67 drivers/usb/mtu3/mtu3_gadget.c static int mtu3_ep_enable(struct mtu3_ep *mep)
mep                71 drivers/usb/mtu3/mtu3_gadget.c 	struct mtu3 *mtu = mep->mtu;
mep                78 drivers/usb/mtu3/mtu3_gadget.c 	desc = mep->desc;
mep                79 drivers/usb/mtu3/mtu3_gadget.c 	comp_desc = mep->comp_desc;
mep                80 drivers/usb/mtu3/mtu3_gadget.c 	mep->type = usb_endpoint_type(desc);
mep                82 drivers/usb/mtu3/mtu3_gadget.c 	mep->maxp = max_packet & GENMASK(10, 0);
mep               111 drivers/usb/mtu3/mtu3_gadget.c 		__func__, mep->maxp, interval, burst, mult);
mep               113 drivers/usb/mtu3/mtu3_gadget.c 	mep->ep.maxpacket = mep->maxp;
mep               114 drivers/usb/mtu3/mtu3_gadget.c 	mep->ep.desc = desc;
mep               115 drivers/usb/mtu3/mtu3_gadget.c 	mep->ep.comp_desc = comp_desc;
mep               118 drivers/usb/mtu3/mtu3_gadget.c 	mep->slot = usb_endpoint_xfer_int(desc) ? 0 : mtu->slot;
mep               120 drivers/usb/mtu3/mtu3_gadget.c 	ret = mtu3_config_ep(mtu, mep, interval, burst, mult);
mep               124 drivers/usb/mtu3/mtu3_gadget.c 	ret = mtu3_gpd_ring_alloc(mep);
mep               126 drivers/usb/mtu3/mtu3_gadget.c 		mtu3_deconfig_ep(mtu, mep);
mep               130 drivers/usb/mtu3/mtu3_gadget.c 	mtu3_qmu_start(mep);
mep               135 drivers/usb/mtu3/mtu3_gadget.c static int mtu3_ep_disable(struct mtu3_ep *mep)
mep               137 drivers/usb/mtu3/mtu3_gadget.c 	struct mtu3 *mtu = mep->mtu;
mep               139 drivers/usb/mtu3/mtu3_gadget.c 	mtu3_qmu_stop(mep);
mep               142 drivers/usb/mtu3/mtu3_gadget.c 	nuke(mep, -ESHUTDOWN);
mep               143 drivers/usb/mtu3/mtu3_gadget.c 	mtu3_deconfig_ep(mtu, mep);
mep               144 drivers/usb/mtu3/mtu3_gadget.c 	mtu3_gpd_ring_free(mep);
mep               146 drivers/usb/mtu3/mtu3_gadget.c 	mep->desc = NULL;
mep               147 drivers/usb/mtu3/mtu3_gadget.c 	mep->ep.desc = NULL;
mep               148 drivers/usb/mtu3/mtu3_gadget.c 	mep->comp_desc = NULL;
mep               149 drivers/usb/mtu3/mtu3_gadget.c 	mep->type = 0;
mep               150 drivers/usb/mtu3/mtu3_gadget.c 	mep->flags = 0;
mep               158 drivers/usb/mtu3/mtu3_gadget.c 	struct mtu3_ep *mep;
mep               172 drivers/usb/mtu3/mtu3_gadget.c 	mep = to_mtu3_ep(ep);
mep               173 drivers/usb/mtu3/mtu3_gadget.c 	mtu = mep->mtu;
mep               176 drivers/usb/mtu3/mtu3_gadget.c 	if (usb_endpoint_num(desc) != mep->epnum)
mep               179 drivers/usb/mtu3/mtu3_gadget.c 	if (!!usb_endpoint_dir_in(desc) ^ !!mep->is_in)
mep               184 drivers/usb/mtu3/mtu3_gadget.c 	if (mep->flags & MTU3_EP_ENABLED) {
mep               186 drivers/usb/mtu3/mtu3_gadget.c 				mep->name);
mep               191 drivers/usb/mtu3/mtu3_gadget.c 	mep->desc = desc;
mep               192 drivers/usb/mtu3/mtu3_gadget.c 	mep->comp_desc = ep->comp_desc;
mep               194 drivers/usb/mtu3/mtu3_gadget.c 	ret = mtu3_ep_enable(mep);
mep               198 drivers/usb/mtu3/mtu3_gadget.c 	mep->busy = 0;
mep               199 drivers/usb/mtu3/mtu3_gadget.c 	mep->wedged = 0;
mep               200 drivers/usb/mtu3/mtu3_gadget.c 	mep->flags |= MTU3_EP_ENABLED;
mep               207 drivers/usb/mtu3/mtu3_gadget.c 	trace_mtu3_gadget_ep_enable(mep);
mep               214 drivers/usb/mtu3/mtu3_gadget.c 	struct mtu3_ep *mep = to_mtu3_ep(ep);
mep               215 drivers/usb/mtu3/mtu3_gadget.c 	struct mtu3 *mtu = mep->mtu;
mep               218 drivers/usb/mtu3/mtu3_gadget.c 	dev_dbg(mtu->dev, "%s %s\n", __func__, mep->name);
mep               219 drivers/usb/mtu3/mtu3_gadget.c 	trace_mtu3_gadget_ep_disable(mep);
mep               221 drivers/usb/mtu3/mtu3_gadget.c 	if (!(mep->flags & MTU3_EP_ENABLED)) {
mep               222 drivers/usb/mtu3/mtu3_gadget.c 		dev_warn(mtu->dev, "%s is already disabled\n", mep->name);
mep               227 drivers/usb/mtu3/mtu3_gadget.c 	mtu3_ep_disable(mep);
mep               228 drivers/usb/mtu3/mtu3_gadget.c 	mep->flags &= ~MTU3_EP_ENABLED;
mep               240 drivers/usb/mtu3/mtu3_gadget.c 	struct mtu3_ep *mep = to_mtu3_ep(ep);
mep               248 drivers/usb/mtu3/mtu3_gadget.c 	mreq->epnum = mep->epnum;
mep               249 drivers/usb/mtu3/mtu3_gadget.c 	mreq->mep = mep;
mep               266 drivers/usb/mtu3/mtu3_gadget.c 	struct mtu3_ep *mep;
mep               278 drivers/usb/mtu3/mtu3_gadget.c 	mep = to_mtu3_ep(ep);
mep               279 drivers/usb/mtu3/mtu3_gadget.c 	mtu = mep->mtu;
mep               283 drivers/usb/mtu3/mtu3_gadget.c 	if (mreq->mep != mep)
mep               287 drivers/usb/mtu3/mtu3_gadget.c 		__func__, mep->is_in ? "TX" : "RX", mreq->epnum, ep->name,
mep               300 drivers/usb/mtu3/mtu3_gadget.c 	if (!mep->desc) {
mep               309 drivers/usb/mtu3/mtu3_gadget.c 	ret = usb_gadget_map_request(&mtu->g, req, mep->is_in);
mep               317 drivers/usb/mtu3/mtu3_gadget.c 	if (mtu3_prepare_transfer(mep)) {
mep               322 drivers/usb/mtu3/mtu3_gadget.c 	list_add_tail(&mreq->list, &mep->req_list);
mep               323 drivers/usb/mtu3/mtu3_gadget.c 	mtu3_insert_gpd(mep, mreq);
mep               324 drivers/usb/mtu3/mtu3_gadget.c 	mtu3_qmu_resume(mep);
mep               335 drivers/usb/mtu3/mtu3_gadget.c 	struct mtu3_ep *mep = to_mtu3_ep(ep);
mep               340 drivers/usb/mtu3/mtu3_gadget.c 	struct mtu3 *mtu = mep->mtu;
mep               342 drivers/usb/mtu3/mtu3_gadget.c 	if (!ep || !req || mreq->mep != mep)
mep               350 drivers/usb/mtu3/mtu3_gadget.c 	list_for_each_entry(r, &mep->req_list, list) {
mep               360 drivers/usb/mtu3/mtu3_gadget.c 	mtu3_qmu_flush(mep);  /* REVISIT: set BPS ?? */
mep               361 drivers/usb/mtu3/mtu3_gadget.c 	mtu3_req_complete(mep, req, -ECONNRESET);
mep               362 drivers/usb/mtu3/mtu3_gadget.c 	mtu3_qmu_start(mep);
mep               376 drivers/usb/mtu3/mtu3_gadget.c 	struct mtu3_ep *mep = to_mtu3_ep(ep);
mep               377 drivers/usb/mtu3/mtu3_gadget.c 	struct mtu3 *mtu = mep->mtu;
mep               389 drivers/usb/mtu3/mtu3_gadget.c 	if (mep->type == USB_ENDPOINT_XFER_ISOC) {
mep               394 drivers/usb/mtu3/mtu3_gadget.c 	mreq = next_request(mep);
mep               408 drivers/usb/mtu3/mtu3_gadget.c 		mep->wedged = 0;
mep               413 drivers/usb/mtu3/mtu3_gadget.c 	mtu3_ep_stall_set(mep, value);
mep               417 drivers/usb/mtu3/mtu3_gadget.c 	trace_mtu3_gadget_ep_set_halt(mep);
mep               425 drivers/usb/mtu3/mtu3_gadget.c 	struct mtu3_ep *mep = to_mtu3_ep(ep);
mep               430 drivers/usb/mtu3/mtu3_gadget.c 	mep->wedged = 1;
mep               613 drivers/usb/mtu3/mtu3_gadget.c static void init_hw_ep(struct mtu3 *mtu, struct mtu3_ep *mep,
mep               616 drivers/usb/mtu3/mtu3_gadget.c 	mep->epnum = epnum;
mep               617 drivers/usb/mtu3/mtu3_gadget.c 	mep->mtu = mtu;
mep               618 drivers/usb/mtu3/mtu3_gadget.c 	mep->is_in = is_in;
mep               620 drivers/usb/mtu3/mtu3_gadget.c 	INIT_LIST_HEAD(&mep->req_list);
mep               622 drivers/usb/mtu3/mtu3_gadget.c 	sprintf(mep->name, "ep%d%s", epnum,
mep               625 drivers/usb/mtu3/mtu3_gadget.c 	mep->ep.name = mep->name;
mep               626 drivers/usb/mtu3/mtu3_gadget.c 	INIT_LIST_HEAD(&mep->ep.ep_list);
mep               630 drivers/usb/mtu3/mtu3_gadget.c 		usb_ep_set_maxpacket_limit(&mep->ep, 512);
mep               631 drivers/usb/mtu3/mtu3_gadget.c 		mep->ep.caps.type_control = true;
mep               632 drivers/usb/mtu3/mtu3_gadget.c 		mep->ep.ops = &mtu3_ep0_ops;
mep               633 drivers/usb/mtu3/mtu3_gadget.c 		mtu->g.ep0 = &mep->ep;
mep               635 drivers/usb/mtu3/mtu3_gadget.c 		usb_ep_set_maxpacket_limit(&mep->ep, 1024);
mep               636 drivers/usb/mtu3/mtu3_gadget.c 		mep->ep.caps.type_iso = true;
mep               637 drivers/usb/mtu3/mtu3_gadget.c 		mep->ep.caps.type_bulk = true;
mep               638 drivers/usb/mtu3/mtu3_gadget.c 		mep->ep.caps.type_int = true;
mep               639 drivers/usb/mtu3/mtu3_gadget.c 		mep->ep.ops = &mtu3_ep_ops;
mep               640 drivers/usb/mtu3/mtu3_gadget.c 		list_add_tail(&mep->ep.ep_list, &mtu->g.ep_list);
mep               643 drivers/usb/mtu3/mtu3_gadget.c 	dev_dbg(mtu->dev, "%s, name=%s, maxp=%d\n", __func__, mep->ep.name,
mep               644 drivers/usb/mtu3/mtu3_gadget.c 		 mep->ep.maxpacket);
mep               647 drivers/usb/mtu3/mtu3_gadget.c 		mep->ep.caps.dir_in = true;
mep               648 drivers/usb/mtu3/mtu3_gadget.c 		mep->ep.caps.dir_out = true;
mep               650 drivers/usb/mtu3/mtu3_gadget.c 		mep->ep.caps.dir_in = true;
mep               652 drivers/usb/mtu3/mtu3_gadget.c 		mep->ep.caps.dir_out = true;
mep                80 drivers/usb/mtu3/mtu3_gadget_ep0.c static void ep0_write_fifo(struct mtu3_ep *mep, const u8 *src, u16 len)
mep                82 drivers/usb/mtu3/mtu3_gadget_ep0.c 	void __iomem *fifo = mep->mtu->mac_base + U3D_FIFO0;
mep                85 drivers/usb/mtu3/mtu3_gadget_ep0.c 	dev_dbg(mep->mtu->dev, "%s: ep%din, len=%d, buf=%p\n",
mep                86 drivers/usb/mtu3/mtu3_gadget_ep0.c 		__func__, mep->epnum, len, src);
mep               100 drivers/usb/mtu3/mtu3_gadget_ep0.c static void ep0_read_fifo(struct mtu3_ep *mep, u8 *dst, u16 len)
mep               102 drivers/usb/mtu3/mtu3_gadget_ep0.c 	void __iomem *fifo = mep->mtu->mac_base + U3D_FIFO0;
mep               106 drivers/usb/mtu3/mtu3_gadget_ep0.c 	dev_dbg(mep->mtu->dev, "%s: ep%dout len=%d buf=%p\n",
mep               107 drivers/usb/mtu3/mtu3_gadget_ep0.c 		 __func__, mep->epnum, len, dst);
mep               187 drivers/usb/mtu3/mtu3_gadget_ep0.c 	mtu->ep0_req.mep = mtu->ep0;
mep               199 drivers/usb/mtu3/mtu3_gadget_ep0.c 	struct mtu3_ep *mep = NULL;
mep               233 drivers/usb/mtu3/mtu3_gadget_ep0.c 		mep = (is_in ? mtu->in_eps : mtu->out_eps) + epnum;
mep               234 drivers/usb/mtu3/mtu3_gadget_ep0.c 		if (!mep->desc) {
mep               238 drivers/usb/mtu3/mtu3_gadget_ep0.c 		if (mep->flags & MTU3_EP_STALL)
mep               254 drivers/usb/mtu3/mtu3_gadget_ep0.c 		mtu->ep0_req.mep = mtu->ep0;
mep               374 drivers/usb/mtu3/mtu3_gadget_ep0.c 	struct mtu3_ep *mep;
mep               406 drivers/usb/mtu3/mtu3_gadget_ep0.c 		mep = (is_in ? mtu->in_eps : mtu->out_eps) + epnum;
mep               407 drivers/usb/mtu3/mtu3_gadget_ep0.c 		if (!mep->desc)
mep               412 drivers/usb/mtu3/mtu3_gadget_ep0.c 		if (mep->wedged)
mep               415 drivers/usb/mtu3/mtu3_gadget_ep0.c 		mtu3_ep_stall_set(mep, set);
mep               782 drivers/usb/mtu3/mtu3_gadget_ep0.c static int ep0_queue(struct mtu3_ep *mep, struct mtu3_request *mreq)
mep               784 drivers/usb/mtu3/mtu3_gadget_ep0.c 	struct mtu3 *mtu = mep->mtu;
mep               791 drivers/usb/mtu3/mtu3_gadget_ep0.c 		mep->name, decode_ep0_state(mtu), mreq->request.length);
mep               815 drivers/usb/mtu3/mtu3_gadget_ep0.c 	if (!list_empty(&mep->req_list))
mep               818 drivers/usb/mtu3/mtu3_gadget_ep0.c 	list_add_tail(&mreq->list, &mep->req_list);
mep               830 drivers/usb/mtu3/mtu3_gadget_ep0.c 	struct mtu3_ep *mep;
mep               839 drivers/usb/mtu3/mtu3_gadget_ep0.c 	mep = to_mtu3_ep(ep);
mep               840 drivers/usb/mtu3/mtu3_gadget_ep0.c 	mtu = mep->mtu;
mep               844 drivers/usb/mtu3/mtu3_gadget_ep0.c 	ret = ep0_queue(mep, mreq);
mep               857 drivers/usb/mtu3/mtu3_gadget_ep0.c 	struct mtu3_ep *mep;
mep               865 drivers/usb/mtu3/mtu3_gadget_ep0.c 	mep = to_mtu3_ep(ep);
mep               866 drivers/usb/mtu3/mtu3_gadget_ep0.c 	mtu = mep->mtu;
mep               872 drivers/usb/mtu3/mtu3_gadget_ep0.c 	if (!list_empty(&mep->req_list)) {
mep               154 drivers/usb/mtu3/mtu3_qmu.c static void reset_gpd_list(struct mtu3_ep *mep)
mep               156 drivers/usb/mtu3/mtu3_qmu.c 	struct mtu3_gpd_ring *ring = &mep->gpd_ring;
mep               165 drivers/usb/mtu3/mtu3_qmu.c int mtu3_gpd_ring_alloc(struct mtu3_ep *mep)
mep               168 drivers/usb/mtu3/mtu3_qmu.c 	struct mtu3_gpd_ring *ring = &mep->gpd_ring;
mep               171 drivers/usb/mtu3/mtu3_qmu.c 	gpd = dma_pool_zalloc(mep->mtu->qmu_gpd_pool, GFP_ATOMIC, &ring->dma);
mep               180 drivers/usb/mtu3/mtu3_qmu.c void mtu3_gpd_ring_free(struct mtu3_ep *mep)
mep               182 drivers/usb/mtu3/mtu3_qmu.c 	struct mtu3_gpd_ring *ring = &mep->gpd_ring;
mep               184 drivers/usb/mtu3/mtu3_qmu.c 	dma_pool_free(mep->mtu->qmu_gpd_pool,
mep               189 drivers/usb/mtu3/mtu3_qmu.c void mtu3_qmu_resume(struct mtu3_ep *mep)
mep               191 drivers/usb/mtu3/mtu3_qmu.c 	struct mtu3 *mtu = mep->mtu;
mep               193 drivers/usb/mtu3/mtu3_qmu.c 	int epnum = mep->epnum;
mep               196 drivers/usb/mtu3/mtu3_qmu.c 	offset = mep->is_in ? USB_QMU_TQCSR(epnum) : USB_QMU_RQCSR(epnum);
mep               238 drivers/usb/mtu3/mtu3_qmu.c int mtu3_prepare_transfer(struct mtu3_ep *mep)
mep               240 drivers/usb/mtu3/mtu3_qmu.c 	return gpd_ring_empty(&mep->gpd_ring);
mep               243 drivers/usb/mtu3/mtu3_qmu.c static int mtu3_prepare_tx_gpd(struct mtu3_ep *mep, struct mtu3_request *mreq)
mep               246 drivers/usb/mtu3/mtu3_qmu.c 	struct mtu3_gpd_ring *ring = &mep->gpd_ring;
mep               249 drivers/usb/mtu3/mtu3_qmu.c 	struct mtu3 *mtu = mep->mtu;
mep               261 drivers/usb/mtu3/mtu3_qmu.c 	dev_dbg(mep->mtu->dev, "TX-EP%d queue gpd=%p, enq=%p, qdma=%pad\n",
mep               262 drivers/usb/mtu3/mtu3_qmu.c 		mep->epnum, gpd, enq, &enq_dma);
mep               279 drivers/usb/mtu3/mtu3_qmu.c 	trace_mtu3_prepare_gpd(mep, gpd);
mep               284 drivers/usb/mtu3/mtu3_qmu.c static int mtu3_prepare_rx_gpd(struct mtu3_ep *mep, struct mtu3_request *mreq)
mep               287 drivers/usb/mtu3/mtu3_qmu.c 	struct mtu3_gpd_ring *ring = &mep->gpd_ring;
mep               290 drivers/usb/mtu3/mtu3_qmu.c 	struct mtu3 *mtu = mep->mtu;
mep               302 drivers/usb/mtu3/mtu3_qmu.c 	dev_dbg(mep->mtu->dev, "RX-EP%d queue gpd=%p, enq=%p, qdma=%pad\n",
mep               303 drivers/usb/mtu3/mtu3_qmu.c 		mep->epnum, gpd, enq, &enq_dma);
mep               312 drivers/usb/mtu3/mtu3_qmu.c 	trace_mtu3_prepare_gpd(mep, gpd);
mep               317 drivers/usb/mtu3/mtu3_qmu.c void mtu3_insert_gpd(struct mtu3_ep *mep, struct mtu3_request *mreq)
mep               320 drivers/usb/mtu3/mtu3_qmu.c 	if (mep->is_in)
mep               321 drivers/usb/mtu3/mtu3_qmu.c 		mtu3_prepare_tx_gpd(mep, mreq);
mep               323 drivers/usb/mtu3/mtu3_qmu.c 		mtu3_prepare_rx_gpd(mep, mreq);
mep               326 drivers/usb/mtu3/mtu3_qmu.c int mtu3_qmu_start(struct mtu3_ep *mep)
mep               328 drivers/usb/mtu3/mtu3_qmu.c 	struct mtu3 *mtu = mep->mtu;
mep               330 drivers/usb/mtu3/mtu3_qmu.c 	struct mtu3_gpd_ring *ring = &mep->gpd_ring;
mep               331 drivers/usb/mtu3/mtu3_qmu.c 	u8 epnum = mep->epnum;
mep               333 drivers/usb/mtu3/mtu3_qmu.c 	if (mep->is_in) {
mep               370 drivers/usb/mtu3/mtu3_qmu.c void mtu3_qmu_stop(struct mtu3_ep *mep)
mep               372 drivers/usb/mtu3/mtu3_qmu.c 	struct mtu3 *mtu = mep->mtu;
mep               374 drivers/usb/mtu3/mtu3_qmu.c 	int epnum = mep->epnum;
mep               379 drivers/usb/mtu3/mtu3_qmu.c 	qcsr = mep->is_in ? USB_QMU_TQCSR(epnum) : USB_QMU_RQCSR(epnum);
mep               382 drivers/usb/mtu3/mtu3_qmu.c 		dev_dbg(mtu->dev, "%s's qmu is inactive now!\n", mep->name);
mep               390 drivers/usb/mtu3/mtu3_qmu.c 		dev_err(mtu->dev, "stop %s's qmu failed\n", mep->name);
mep               394 drivers/usb/mtu3/mtu3_qmu.c 	dev_dbg(mtu->dev, "%s's qmu stop now!\n", mep->name);
mep               397 drivers/usb/mtu3/mtu3_qmu.c void mtu3_qmu_flush(struct mtu3_ep *mep)
mep               400 drivers/usb/mtu3/mtu3_qmu.c 	dev_dbg(mep->mtu->dev, "%s flush QMU %s\n", __func__,
mep               401 drivers/usb/mtu3/mtu3_qmu.c 		((mep->is_in) ? "TX" : "RX"));
mep               404 drivers/usb/mtu3/mtu3_qmu.c 	mtu3_qmu_stop(mep);
mep               405 drivers/usb/mtu3/mtu3_qmu.c 	reset_gpd_list(mep);
mep               415 drivers/usb/mtu3/mtu3_qmu.c 	struct mtu3_ep *mep = mtu->in_eps + epnum;
mep               416 drivers/usb/mtu3/mtu3_qmu.c 	struct mtu3_gpd_ring *ring = &mep->gpd_ring;
mep               424 drivers/usb/mtu3/mtu3_qmu.c 	mreq = next_request(mep);
mep               437 drivers/usb/mtu3/mtu3_qmu.c 	trace_mtu3_zlp_exp_gpd(mep, gpd_current);
mep               439 drivers/usb/mtu3/mtu3_qmu.c 	mtu3_clrbits(mbase, MU3D_EP_TXCR0(mep->epnum), TX_DMAREQEN);
mep               441 drivers/usb/mtu3/mtu3_qmu.c 	ret = readl_poll_timeout_atomic(mbase + MU3D_EP_TXCR0(mep->epnum),
mep               447 drivers/usb/mtu3/mtu3_qmu.c 	mtu3_setbits(mbase, MU3D_EP_TXCR0(mep->epnum), TX_TXPKTRDY);
mep               453 drivers/usb/mtu3/mtu3_qmu.c 	mtu3_setbits(mbase, MU3D_EP_TXCR0(mep->epnum), TX_DMAREQEN);
mep               454 drivers/usb/mtu3/mtu3_qmu.c 	mtu3_qmu_resume(mep);
mep               466 drivers/usb/mtu3/mtu3_qmu.c 	struct mtu3_ep *mep = mtu->in_eps + epnum;
mep               467 drivers/usb/mtu3/mtu3_qmu.c 	struct mtu3_gpd_ring *ring = &mep->gpd_ring;
mep               484 drivers/usb/mtu3/mtu3_qmu.c 		mreq = next_request(mep);
mep               493 drivers/usb/mtu3/mtu3_qmu.c 		trace_mtu3_complete_gpd(mep, gpd);
mep               494 drivers/usb/mtu3/mtu3_qmu.c 		mtu3_req_complete(mep, request, 0);
mep               506 drivers/usb/mtu3/mtu3_qmu.c 	struct mtu3_ep *mep = mtu->out_eps + epnum;
mep               507 drivers/usb/mtu3/mtu3_qmu.c 	struct mtu3_gpd_ring *ring = &mep->gpd_ring;
mep               523 drivers/usb/mtu3/mtu3_qmu.c 		mreq = next_request(mep);
mep               532 drivers/usb/mtu3/mtu3_qmu.c 		trace_mtu3_complete_gpd(mep, gpd);
mep               533 drivers/usb/mtu3/mtu3_qmu.c 		mtu3_req_complete(mep, req, 0);
mep                20 drivers/usb/mtu3/mtu3_qmu.h void mtu3_qmu_stop(struct mtu3_ep *mep);
mep                21 drivers/usb/mtu3/mtu3_qmu.h int mtu3_qmu_start(struct mtu3_ep *mep);
mep                22 drivers/usb/mtu3/mtu3_qmu.h void mtu3_qmu_resume(struct mtu3_ep *mep);
mep                23 drivers/usb/mtu3/mtu3_qmu.h void mtu3_qmu_flush(struct mtu3_ep *mep);
mep                25 drivers/usb/mtu3/mtu3_qmu.h void mtu3_insert_gpd(struct mtu3_ep *mep, struct mtu3_request *mreq);
mep                26 drivers/usb/mtu3/mtu3_qmu.h int mtu3_prepare_transfer(struct mtu3_ep *mep);
mep                28 drivers/usb/mtu3/mtu3_qmu.h int mtu3_gpd_ring_alloc(struct mtu3_ep *mep);
mep                29 drivers/usb/mtu3/mtu3_qmu.h void mtu3_gpd_ring_free(struct mtu3_ep *mep);
mep               122 drivers/usb/mtu3/mtu3_trace.h 		__string(name, mreq->mep->name)
mep               132 drivers/usb/mtu3/mtu3_trace.h 		__assign_str(name, mreq->mep->name);
mep               176 drivers/usb/mtu3/mtu3_trace.h 	TP_PROTO(struct mtu3_ep *mep, struct qmu_gpd *gpd),
mep               177 drivers/usb/mtu3/mtu3_trace.h 	TP_ARGS(mep, gpd),
mep               179 drivers/usb/mtu3/mtu3_trace.h 		__string(name, mep->name)
mep               187 drivers/usb/mtu3/mtu3_trace.h 		__assign_str(name, mep->name);
mep               202 drivers/usb/mtu3/mtu3_trace.h 	TP_PROTO(struct mtu3_ep *mep, struct qmu_gpd *gpd),
mep               203 drivers/usb/mtu3/mtu3_trace.h 	TP_ARGS(mep, gpd)
mep               207 drivers/usb/mtu3/mtu3_trace.h 	TP_PROTO(struct mtu3_ep *mep, struct qmu_gpd *gpd),
mep               208 drivers/usb/mtu3/mtu3_trace.h 	TP_ARGS(mep, gpd)
mep               212 drivers/usb/mtu3/mtu3_trace.h 	TP_PROTO(struct mtu3_ep *mep, struct qmu_gpd *gpd),
mep               213 drivers/usb/mtu3/mtu3_trace.h 	TP_ARGS(mep, gpd)
mep               217 drivers/usb/mtu3/mtu3_trace.h 	TP_PROTO(struct mtu3_ep *mep),
mep               218 drivers/usb/mtu3/mtu3_trace.h 	TP_ARGS(mep),
mep               220 drivers/usb/mtu3/mtu3_trace.h 		__string(name, mep->name)
mep               231 drivers/usb/mtu3/mtu3_trace.h 		__assign_str(name, mep->name);
mep               232 drivers/usb/mtu3/mtu3_trace.h 		__entry->type = mep->type;
mep               233 drivers/usb/mtu3/mtu3_trace.h 		__entry->slot = mep->slot;
mep               234 drivers/usb/mtu3/mtu3_trace.h 		__entry->maxp = mep->ep.maxpacket;
mep               235 drivers/usb/mtu3/mtu3_trace.h 		__entry->mult = mep->ep.mult;
mep               236 drivers/usb/mtu3/mtu3_trace.h 		__entry->maxburst = mep->ep.maxburst;
mep               237 drivers/usb/mtu3/mtu3_trace.h 		__entry->flags = mep->flags;
mep               238 drivers/usb/mtu3/mtu3_trace.h 		__entry->direction = mep->is_in;
mep               239 drivers/usb/mtu3/mtu3_trace.h 		__entry->gpd_ring = &mep->gpd_ring;
mep               255 drivers/usb/mtu3/mtu3_trace.h 	TP_PROTO(struct mtu3_ep *mep),
mep               256 drivers/usb/mtu3/mtu3_trace.h 	TP_ARGS(mep)
mep               260 drivers/usb/mtu3/mtu3_trace.h 	TP_PROTO(struct mtu3_ep *mep),
mep               261 drivers/usb/mtu3/mtu3_trace.h 	TP_ARGS(mep)
mep               265 drivers/usb/mtu3/mtu3_trace.h 	TP_PROTO(struct mtu3_ep *mep),
mep               266 drivers/usb/mtu3/mtu3_trace.h 	TP_ARGS(mep)
mep               229 tools/perf/util/metricgroup.c 	struct mep *a = container_of(rb_node, struct mep, nd);
mep               230 tools/perf/util/metricgroup.c 	struct mep *b = (struct mep *)entry;
mep               238 tools/perf/util/metricgroup.c 	struct mep *me = malloc(sizeof(struct mep));
mep               242 tools/perf/util/metricgroup.c 	memcpy(me, entry, sizeof(struct mep));
mep               257 tools/perf/util/metricgroup.c static struct mep *mep_lookup(struct rblist *groups, const char *name)
mep               260 tools/perf/util/metricgroup.c 	struct mep me = {
mep               265 tools/perf/util/metricgroup.c 		return container_of(nd, struct mep, nd);
mep               269 tools/perf/util/metricgroup.c 		return container_of(nd, struct mep, nd);
mep               276 tools/perf/util/metricgroup.c 	struct mep *me = container_of(nd, struct mep, nd);
mep               344 tools/perf/util/metricgroup.c 				struct mep *me;
mep               388 tools/perf/util/metricgroup.c 		struct mep *me = container_of(node, struct mep, nd);