Home
last modified time | relevance | path

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

/linux-4.4.14/drivers/usb/core/
Durb.c123 void usb_anchor_urb(struct urb *urb, struct usb_anchor *anchor) in usb_anchor_urb() argument
127 spin_lock_irqsave(&anchor->lock, flags); in usb_anchor_urb()
129 list_add_tail(&urb->anchor_list, &anchor->urb_list); in usb_anchor_urb()
130 urb->anchor = anchor; in usb_anchor_urb()
132 if (unlikely(anchor->poisoned)) in usb_anchor_urb()
135 spin_unlock_irqrestore(&anchor->lock, flags); in usb_anchor_urb()
139 static int usb_anchor_check_wakeup(struct usb_anchor *anchor) in usb_anchor_check_wakeup() argument
141 return atomic_read(&anchor->suspend_wakeups) == 0 && in usb_anchor_check_wakeup()
142 list_empty(&anchor->urb_list); in usb_anchor_check_wakeup()
146 static void __usb_unanchor_urb(struct urb *urb, struct usb_anchor *anchor) in __usb_unanchor_urb() argument
[all …]
Dhcd.c1708 struct usb_anchor *anchor = urb->anchor; in __usb_hcd_giveback_urb() local
1720 usb_anchor_suspend_wakeups(anchor); in __usb_hcd_giveback_urb()
1742 usb_anchor_resume_wakeups(anchor); in __usb_hcd_giveback_urb()
/linux-4.4.14/lib/lz4/
Dlz4_compress.c65 const u8 *anchor = ip; in lz4_compressctx() local
111 while ((ip > anchor) && (ref > (u8 *)source) && in lz4_compressctx()
118 length = (int)(ip - anchor); in lz4_compressctx()
136 LZ4_BLINDCOPY(anchor, op, length); in lz4_compressctx()
145 anchor = ip; in lz4_compressctx()
174 length = (int)(ip - anchor); in lz4_compressctx()
195 anchor = ip; in lz4_compressctx()
212 anchor = ip++; in lz4_compressctx()
218 lastrun = (int)(iend - anchor); in lz4_compressctx()
231 memcpy(op, anchor, iend - anchor); in lz4_compressctx()
[all …]
Dlz4hc_compress.c269 static inline int lz4_encodesequence(const u8 **ip, u8 **op, const u8 **anchor, in lz4_encodesequence() argument
276 length = (int)(*ip - *anchor); in lz4_encodesequence()
288 LZ4_BLINDCOPY(*anchor, *op, length); in lz4_encodesequence()
312 *anchor = *ip; in lz4_encodesequence()
323 const u8 *anchor = ip; in lz4_compresshcctx() local
362 lz4_encodesequence(&ip, &op, &anchor, ml, ref); in lz4_compresshcctx()
423 lz4_encodesequence(&ip, &op, &anchor, ml, ref); in lz4_compresshcctx()
425 lz4_encodesequence(&ip, &op, &anchor, ml2, ref2); in lz4_compresshcctx()
449 lz4_encodesequence(&ip, &op, &anchor, ml, ref); in lz4_compresshcctx()
487 lz4_encodesequence(&ip, &op, &anchor, ml, ref); in lz4_compresshcctx()
[all …]
/linux-4.4.14/Documentation/usb/
Danchors.txt1 What is anchor?
8 for them. The anchor is a data structure takes care of
15 There's no API to allocate an anchor. It is simply declared
22 Once it has no more URBs associated with it, the anchor can be
28 An association of URBs to an anchor is made by an explicit
32 all URBs associated with an anchor.
41 This function kills all URBs associated with an anchor. The URBs
48 This function unlinks all URBs associated with an anchor. The URBs
58 All URBs of an anchor are unanchored en masse.
63 This function waits for all URBs associated with an anchor to finish
[all …]
/linux-4.4.14/fs/jfs/
Djfs_unicode.h44 wchar_t *anchor = ucs1; /* save the start of result string */ in UniStrcpy() local
47 return anchor; in UniStrcpy()
58 __le16 *anchor = ucs1; in UniStrncpy_le() local
66 return anchor; in UniStrncpy_le()
90 __le16 *anchor = ucs1; in UniStrncpy_to_le() local
98 return anchor; in UniStrncpy_to_le()
107 wchar_t *anchor = ucs1; in UniStrncpy_from_le() local
115 return anchor; in UniStrncpy_from_le()
/linux-4.4.14/fs/cifs/
Dcifs_unicode.h134 wchar_t *anchor = ucs1; /* save a pointer to start of ucs1 */ in UniStrcat() local
139 return anchor; in UniStrcat()
184 wchar_t *anchor = ucs1; /* save the start of result string */ in UniStrcpy() local
187 return anchor; in UniStrcpy()
226 wchar_t *anchor = ucs1; /* save pointer to string 1 */ in UniStrncat() local
235 return (anchor); in UniStrncat()
274 wchar_t *anchor = ucs1; in UniStrncpy() local
282 return anchor; in UniStrncpy()
291 wchar_t *anchor = ucs1; in UniStrncpy_le() local
299 return anchor; in UniStrncpy_le()
/linux-4.4.14/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 …]
/linux-4.4.14/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()
/linux-4.4.14/include/linux/
Dusb.h1261 static inline void init_usb_anchor(struct usb_anchor *anchor) in init_usb_anchor() argument
1263 memset(anchor, 0, sizeof(*anchor)); in init_usb_anchor()
1264 INIT_LIST_HEAD(&anchor->urb_list); in init_usb_anchor()
1265 init_waitqueue_head(&anchor->wait); in init_usb_anchor()
1266 spin_lock_init(&anchor->lock); in init_usb_anchor()
1466 struct usb_anchor *anchor; member
1620 extern void usb_kill_anchored_urbs(struct usb_anchor *anchor);
1621 extern void usb_poison_anchored_urbs(struct usb_anchor *anchor);
1622 extern void usb_unpoison_anchored_urbs(struct usb_anchor *anchor);
1623 extern void usb_unlink_anchored_urbs(struct usb_anchor *anchor);
[all …]
/linux-4.4.14/Documentation/DocBook/
Dusb.xml.db37 API-usb-anchor-urb
48 API-usb-anchor-suspend-wakeups
49 API-usb-anchor-resume-wakeups
50 API-usb-wait-anchor-empty-timeout
51 API-usb-get-from-anchor
53 API-usb-anchor-empty
/linux-4.4.14/sound/usb/bcd2000/
Dbcd2000.c66 struct usb_anchor anchor; member
271 init_usb_anchor(&bcd2k->anchor); in bcd2000_init_device()
272 usb_anchor_urb(bcd2k->midi_out_urb, &bcd2k->anchor); in bcd2000_init_device()
273 usb_anchor_urb(bcd2k->midi_in_urb, &bcd2k->anchor); in bcd2000_init_device()
296 usb_wait_anchor_empty_timeout(&bcd2k->anchor, 1000); in bcd2000_init_device()
/linux-4.4.14/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()
304 wrk->anchor = 1; in ubi_ensure_anchor_pebs()
Dwl.c648 int anchor = wrk->anchor; local
685 if (!anchor)
686 anchor = !anchor_pebs_avalible(&ubi->free);
688 if (anchor) {
997 wrk->anchor = 0;
Dubi.h771 int anchor; member
858 struct ubi_wl_entry *ubi_wl_get_fm_peb(struct ubi_device *ubi, int anchor);
/linux-4.4.14/Documentation/filesystems/
Dudf.txt61 anchor= Override standard anchor location. (default= 256)
/linux-4.4.14/fs/udf/
Dsuper.c217 unsigned int anchor; member
495 uopt->anchor = 0; in udf_parse_options()
584 uopt->anchor = option; in udf_parse_options()
1738 struct anchorVolDescPtr *anchor; in udf_load_sequence() local
1742 anchor = (struct anchorVolDescPtr *)bh->b_data; in udf_load_sequence()
1745 main_s = le32_to_cpu(anchor->mainVolDescSeqExt.extLocation); in udf_load_sequence()
1746 main_e = le32_to_cpu(anchor->mainVolDescSeqExt.extLength); in udf_load_sequence()
1751 reserve_s = le32_to_cpu(anchor->reserveVolDescSeqExt.extLocation); in udf_load_sequence()
1752 reserve_e = le32_to_cpu(anchor->reserveVolDescSeqExt.extLength); in udf_load_sequence()
1952 sbi->s_anchor = uopt->anchor; in udf_load_vrs()
/linux-4.4.14/drivers/pci/hotplug/
Dcpqphp.h89 char anchor[4]; member
107 ANCHOR = offsetof(struct smbios_entry_point, anchor[0]),
/linux-4.4.14/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);
/linux-4.4.14/Documentation/networking/
Dswitchdev.txt78 controller (the kernel) and the network, as well as an anchor point for higher
Drxrpc.txt928 serves to anchor the peer data and keeps the connection ID counter.
/linux-4.4.14/Documentation/
DCodingStyle508 (let* ((anchor (c-langelem-pos c-syntactic-element))
510 (offset (- (1+ column) anchor))
/linux-4.4.14/sound/pci/hda/
Dhda_generic.c3216 const char *label, int anchor) in parse_capture_source() argument
3230 path = snd_hda_add_new_path(codec, pin, adc, anchor); in parse_capture_source()
/linux-4.4.14/Documentation/scsi/
Dscsi_mid_low_api.txt975 * @buffer: anchor point to output to (0==writeto1_read0) or fetch from