Lines Matching refs:epriv
447 struct xhci_ep_priv *epriv; in xhci_debugfs_create_endpoint() local
456 epriv = kzalloc(sizeof(*epriv), GFP_KERNEL); in xhci_debugfs_create_endpoint()
457 if (!epriv) in xhci_debugfs_create_endpoint()
460 epriv->show_ring = dev->eps[ep_index].ring; in xhci_debugfs_create_endpoint()
462 snprintf(epriv->name, sizeof(epriv->name), "ep%02d", ep_index); in xhci_debugfs_create_endpoint()
463 epriv->root = xhci_debugfs_create_ring_dir(xhci, in xhci_debugfs_create_endpoint()
464 &epriv->show_ring, in xhci_debugfs_create_endpoint()
465 epriv->name, in xhci_debugfs_create_endpoint()
467 spriv->eps[ep_index] = epriv; in xhci_debugfs_create_endpoint()
474 struct xhci_ep_priv *epriv; in xhci_debugfs_remove_endpoint() local
480 epriv = spriv->eps[ep_index]; in xhci_debugfs_remove_endpoint()
481 debugfs_remove_recursive(epriv->root); in xhci_debugfs_remove_endpoint()
483 kfree(epriv); in xhci_debugfs_remove_endpoint()
488 struct xhci_ep_priv *epriv = s->private; in xhci_stream_id_show() local
490 if (!epriv->stream_info) in xhci_stream_id_show()
494 epriv->stream_id, epriv->stream_info->num_streams - 1); in xhci_stream_id_show()
508 struct xhci_ep_priv *epriv = s->private; in xhci_stream_id_write() local
512 if (!epriv->stream_info) in xhci_stream_id_write()
520 if (stream_id == 0 || stream_id >= epriv->stream_info->num_streams) in xhci_stream_id_write()
523 epriv->stream_id = stream_id; in xhci_stream_id_write()
524 epriv->show_ring = epriv->stream_info->stream_rings[stream_id]; in xhci_stream_id_write()
539 struct xhci_ep_priv *epriv = s->private; in xhci_stream_context_array_show() local
544 if (!epriv->stream_info) in xhci_stream_context_array_show()
548 epriv->stream_info->num_streams, in xhci_stream_context_array_show()
549 epriv->stream_info->num_stream_ctxs); in xhci_stream_context_array_show()
551 for (id = 0; id < epriv->stream_info->num_stream_ctxs; id++) { in xhci_stream_context_array_show()
552 stream_ctx = epriv->stream_info->stream_ctx_array + id; in xhci_stream_context_array_show()
553 dma = epriv->stream_info->ctx_array_dma + id * 16; in xhci_stream_context_array_show()
554 if (id < epriv->stream_info->num_streams) in xhci_stream_context_array_show()
571 struct xhci_ep_priv *epriv; in xhci_debugfs_create_stream_files() local
577 epriv = spriv->eps[ep_index]; in xhci_debugfs_create_stream_files()
578 epriv->stream_info = dev->eps[ep_index].stream_info; in xhci_debugfs_create_stream_files()
581 epriv->stream_id = 1; in xhci_debugfs_create_stream_files()
582 epriv->show_ring = epriv->stream_info->stream_rings[1]; in xhci_debugfs_create_stream_files()
584 epriv->root, epriv, in xhci_debugfs_create_stream_files()
587 epriv->root, epriv, in xhci_debugfs_create_stream_files()