Lines Matching full:mbus

132     struct urb *urb, char ev_type, struct mon_bus *mbus)  in mon_text_get_setup()  argument
146 int len, char ev_type, struct mon_bus *mbus) in mon_text_get_data() argument
305 struct mon_bus *mbus) in mon_text_fetch() argument
310 spin_lock_irqsave(&mbus->lock, flags); in mon_text_fetch()
312 spin_unlock_irqrestore(&mbus->lock, flags); in mon_text_fetch()
318 spin_unlock_irqrestore(&mbus->lock, flags); in mon_text_fetch()
326 struct mon_bus *mbus; in mon_text_open() local
331 mbus = inode->i_private; in mon_text_open()
349 rp->r.m_bus = mbus; in mon_text_open()
364 mon_reader_add(mbus, &rp->r); in mon_text_open()
483 struct mon_bus *mbus = rp->r.m_bus; in mon_text_read_wait() local
489 while ((ep = mon_text_fetch(rp, mbus)) == NULL) { in mon_text_read_wait()
645 struct mon_bus *mbus; in mon_text_release() local
651 mbus = inode->i_private; in mon_text_release()
653 if (mbus->nreaders <= 0) { in mon_text_release()
658 mon_reader_del(mbus, &rp->r); in mon_text_release()
661 * In theory, e_list is protected by mbus->lock. However, in mon_text_release()
664 * - whole mbus may be dropped if it was orphaned. in mon_text_release()
665 * So, we better not touch mbus. in mon_text_release()
667 /* spin_lock_irqsave(&mbus->lock, flags); */ in mon_text_release()
675 /* spin_unlock_irqrestore(&mbus->lock, flags); */ in mon_text_release()
699 int mon_text_add(struct mon_bus *mbus, const struct usb_bus *ubus) in mon_text_add() argument
710 mbus->dent_t = debugfs_create_file(name, 0600, mon_dir, mbus, in mon_text_add()
715 mbus->dent_u = debugfs_create_file(name, 0600, mon_dir, mbus, in mon_text_add()
719 mbus->dent_s = debugfs_create_file(name, 0600, mon_dir, mbus, in mon_text_add()
725 void mon_text_del(struct mon_bus *mbus) in mon_text_del() argument
727 debugfs_remove(mbus->dent_u); in mon_text_del()
728 debugfs_remove(mbus->dent_t); in mon_text_del()
729 debugfs_remove(mbus->dent_s); in mon_text_del()