Home
last modified time | relevance | path

Searched refs:anchor (Results 1 – 10 of 10) sorted by relevance

/drivers/usb/core/
Durb.c124 void usb_anchor_urb(struct urb *urb, struct usb_anchor *anchor) in usb_anchor_urb() argument
128 spin_lock_irqsave(&anchor->lock, flags); in usb_anchor_urb()
130 list_add_tail(&urb->anchor_list, &anchor->urb_list); in usb_anchor_urb()
131 urb->anchor = anchor; in usb_anchor_urb()
133 if (unlikely(anchor->poisoned)) in usb_anchor_urb()
136 spin_unlock_irqrestore(&anchor->lock, flags); in usb_anchor_urb()
140 static int usb_anchor_check_wakeup(struct usb_anchor *anchor) in usb_anchor_check_wakeup() argument
142 return atomic_read(&anchor->suspend_wakeups) == 0 && in usb_anchor_check_wakeup()
143 list_empty(&anchor->urb_list); in usb_anchor_check_wakeup()
147 static void __usb_unanchor_urb(struct urb *urb, struct usb_anchor *anchor) in __usb_unanchor_urb() argument
[all …]
Dhcd.c1725 struct usb_anchor *anchor = urb->anchor; in __usb_hcd_giveback_urb() local
1737 usb_anchor_suspend_wakeups(anchor); in __usb_hcd_giveback_urb()
1759 usb_anchor_resume_wakeups(anchor); in __usb_hcd_giveback_urb()
/drivers/staging/most/hdm-usb/
Dhdm_usb.c200 struct buf_anchor *anchor, *tmp; in free_anchored_buffers() local
204 list_for_each_entry_safe(anchor, tmp, &mdev->anchor_list[channel], in free_anchored_buffers()
206 struct urb *urb = anchor->urb; in free_anchored_buffers()
215 wait_for_completion(&anchor->urb_compl); in free_anchored_buffers()
225 list_del(&anchor->list); in free_anchored_buffers()
226 kfree(anchor); in free_anchored_buffers()
385 struct buf_anchor *anchor; in hdm_write_completion() local
392 anchor = mbo->priv; in hdm_write_completion()
399 complete(&anchor->urb_compl); in hdm_write_completion()
413 INIT_WORK(&anchor->clear_work_obj, wq_clear_halt); in hdm_write_completion()
[all …]
/drivers/staging/lustre/lustre/obdclass/
Dcl_io.c902 struct cl_sync_io *anchor = &cl_env_info(env)->clt_anchor; in cl_io_submit_sync() local
908 pg->cp_sync_io = anchor; in cl_io_submit_sync()
911 cl_sync_io_init(anchor, queue->c2_qin.pl_nr); in cl_io_submit_sync()
922 cl_sync_io_note(anchor, 1); in cl_io_submit_sync()
927 anchor, timeout); in cl_io_submit_sync()
1531 void cl_sync_io_init(struct cl_sync_io *anchor, int nrpages) in cl_sync_io_init() argument
1533 init_waitqueue_head(&anchor->csi_waitq); in cl_sync_io_init()
1534 atomic_set(&anchor->csi_sync_nr, nrpages); in cl_sync_io_init()
1535 atomic_set(&anchor->csi_barrier, nrpages > 0); in cl_sync_io_init()
1536 anchor->csi_sync_rc = 0; in cl_sync_io_init()
[all …]
Dcl_page.c1215 struct cl_sync_io *anchor = pg->cp_sync_io; in cl_page_completion() local
1234 if (anchor) { in cl_page_completion()
1236 LASSERT(pg->cp_sync_io == anchor); in cl_page_completion()
1246 if (anchor) in cl_page_completion()
1247 cl_sync_io_note(anchor, ioret); in cl_page_completion()
/drivers/mtd/ubi/
Dfastmap-wl.c90 struct ubi_wl_entry *ubi_wl_get_fm_peb(struct ubi_device *ubi, int anchor) in ubi_wl_get_fm_peb() argument
97 if (anchor) in ubi_wl_get_fm_peb()
306 wrk->anchor = 1; in ubi_ensure_anchor_pebs()
Dwl.c651 int anchor = wrk->anchor; local
689 if (!anchor)
690 anchor = !anchor_pebs_avalible(&ubi->free);
692 if (anchor) {
1022 wrk->anchor = 0;
Dubi.h777 int anchor; member
864 struct ubi_wl_entry *ubi_wl_get_fm_peb(struct ubi_device *ubi, int anchor);
/drivers/pci/hotplug/
Dcpqphp.h89 char anchor[4]; member
107 ANCHOR = offsetof(struct smbios_entry_point, anchor[0]),
/drivers/staging/lustre/lustre/include/
Dcl_object.h3173 void cl_sync_io_init(struct cl_sync_io *anchor, int nrpages);
3175 struct cl_page_list *queue, struct cl_sync_io *anchor,
3177 void cl_sync_io_note(struct cl_sync_io *anchor, int ioret);