Home
last modified time | relevance | path

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

12

/Linux-v5.4/drivers/usb/core/
Durb.c125 void usb_anchor_urb(struct urb *urb, struct usb_anchor *anchor) in usb_anchor_urb() argument
129 spin_lock_irqsave(&anchor->lock, flags); in usb_anchor_urb()
131 list_add_tail(&urb->anchor_list, &anchor->urb_list); in usb_anchor_urb()
132 urb->anchor = anchor; in usb_anchor_urb()
134 if (unlikely(anchor->poisoned)) in usb_anchor_urb()
137 spin_unlock_irqrestore(&anchor->lock, flags); in usb_anchor_urb()
141 static int usb_anchor_check_wakeup(struct usb_anchor *anchor) in usb_anchor_check_wakeup() argument
143 return atomic_read(&anchor->suspend_wakeups) == 0 && in usb_anchor_check_wakeup()
144 list_empty(&anchor->urb_list); in usb_anchor_check_wakeup()
148 static void __usb_unanchor_urb(struct urb *urb, struct usb_anchor *anchor) in __usb_unanchor_urb() argument
[all …]
Dhcd.c1636 struct usb_anchor *anchor = urb->anchor; in __usb_hcd_giveback_urb() local
1647 usb_anchor_suspend_wakeups(anchor); in __usb_hcd_giveback_urb()
1656 usb_anchor_resume_wakeups(anchor); in __usb_hcd_giveback_urb()
/Linux-v5.4/Documentation/driver-api/usb/
Danchors.rst4 What is anchor?
11 for them. The anchor is a data structure takes care of
18 There's no API to allocate an anchor. It is simply declared
25 Once it has no more URBs associated with it, the anchor can be
31 An association of URBs to an anchor is made by an explicit
35 all URBs associated with an anchor.
44 This function kills all URBs associated with an anchor. The URBs
52 This function unlinks all URBs associated with an anchor. The URBs
62 All URBs of an anchor are unanchored en masse.
67 This function waits for all URBs associated with an anchor to finish
[all …]
/Linux-v5.4/fs/jfs/
Djfs_unicode.h31 wchar_t *anchor = ucs1; /* save the start of result string */ in UniStrcpy() local
34 return anchor; in UniStrcpy()
45 __le16 *anchor = ucs1; in UniStrncpy_le() local
53 return anchor; in UniStrncpy_le()
77 __le16 *anchor = ucs1; in UniStrncpy_to_le() local
85 return anchor; in UniStrncpy_to_le()
94 wchar_t *anchor = ucs1; in UniStrncpy_from_le() local
102 return anchor; in UniStrncpy_from_le()
/Linux-v5.4/fs/cifs/
Dcifs_unicode.h120 __le16 *anchor = ucs1; /* save a pointer to start of ucs1 */ in UniStrcat() local
125 return anchor; in UniStrcat()
170 wchar_t *anchor = ucs1; /* save the start of result string */ in UniStrcpy() local
173 return anchor; in UniStrcpy()
212 wchar_t *anchor = ucs1; /* save pointer to string 1 */ in UniStrncat() local
221 return (anchor); in UniStrncat()
260 wchar_t *anchor = ucs1; in UniStrncpy() local
268 return anchor; in UniStrncpy()
277 wchar_t *anchor = ucs1; in UniStrncpy_le() local
285 return anchor; in UniStrncpy_le()
/Linux-v5.4/lib/zstd/
Dzstd_opt.h412 const BYTE *anchor = istart; in ZSTD_compressBlock_opt_generic() local
444 litlen = (U32)(ip - anchor); in ZSTD_compressBlock_opt_generic()
448 U32 i, last_i = ZSTD_REP_CHECK + (ip == anchor); in ZSTD_compressBlock_opt_generic()
449 for (i = (ip == anchor); i < last_i; i++) { in ZSTD_compressBlock_opt_generic()
461 best_off = i - (ip == anchor); in ZSTD_compressBlock_opt_generic()
463 price = ZSTD_getPrice(seqStorePtr, litlen, anchor, best_off, mlen - MINMATCH, ultra); in ZSTD_compressBlock_opt_generic()
493 price = ZSTD_getPrice(seqStorePtr, litlen, anchor, matches[u].off - 1, mlen - MINMATCH, ultra); in ZSTD_compressBlock_opt_generic()
523 price = ZSTD_getLiteralPrice(seqStorePtr, litlen, anchor); in ZSTD_compressBlock_opt_generic()
577 price = ZSTD_getPrice(seqStorePtr, litlen, anchor, best_off, mlen - MINMATCH, ultra); in ZSTD_compressBlock_opt_generic()
612 … price = ZSTD_getPrice(seqStorePtr, litlen, anchor, matches[u].off - 1, mlen - MINMATCH, ultra); in ZSTD_compressBlock_opt_generic()
[all …]
Dcompress.c1016 const BYTE *anchor = istart; in ZSTD_compressBlock_fast_generic() local
1046 ZSTD_storeSeq(seqStorePtr, ip - anchor, anchor, 0, mLength - MINMATCH); in ZSTD_compressBlock_fast_generic()
1050 ip += ((ip - anchor) >> g_searchStrength) + 1; in ZSTD_compressBlock_fast_generic()
1055 while (((ip > anchor) & (match > lowest)) && (ip[-1] == match[-1])) { in ZSTD_compressBlock_fast_generic()
1063 ZSTD_storeSeq(seqStorePtr, ip - anchor, anchor, offset + ZSTD_REP_MOVE, mLength - MINMATCH); in ZSTD_compressBlock_fast_generic()
1068 anchor = ip; in ZSTD_compressBlock_fast_generic()
1084 ZSTD_storeSeq(seqStorePtr, 0, anchor, 0, rLength - MINMATCH); in ZSTD_compressBlock_fast_generic()
1086 anchor = ip; in ZSTD_compressBlock_fast_generic()
1098 size_t const lastLLSize = iend - anchor; in ZSTD_compressBlock_fast_generic()
1099 memcpy(seqStorePtr->lit, anchor, lastLLSize); in ZSTD_compressBlock_fast_generic()
[all …]
/Linux-v5.4/lib/lz4/
Dlz4hc_compress.c265 const BYTE **anchor, in LZ4HC_encodeSequence() argument
275 length = (int)(*ip - *anchor); in LZ4HC_encodeSequence()
296 LZ4_wildCopy(*op, *anchor, (*op) + length); in LZ4HC_encodeSequence()
333 *anchor = *ip; in LZ4HC_encodeSequence()
349 const BYTE *anchor = ip; in LZ4HC_compress_generic() local
403 &anchor, ml, ref, limit, oend)) in LZ4HC_compress_generic()
468 if (LZ4HC_encodeSequence(&ip, &op, &anchor, in LZ4HC_compress_generic()
472 if (LZ4HC_encodeSequence(&ip, &op, &anchor, in LZ4HC_compress_generic()
498 if (LZ4HC_encodeSequence(&ip, &op, &anchor, in LZ4HC_compress_generic()
539 if (LZ4HC_encodeSequence(&ip, &op, &anchor, ml, in LZ4HC_compress_generic()
[all …]
Dlz4_compress.c195 const BYTE *anchor = (const BYTE *) source; in LZ4_compress_generic() local
294 while (((ip > anchor) & (match + refDelta > lowLimit)) in LZ4_compress_generic()
302 unsigned const int litLength = (unsigned int)(ip - anchor); in LZ4_compress_generic()
325 LZ4_wildCopy(op, anchor, op + litLength); in LZ4_compress_generic()
391 anchor = ip; in LZ4_compress_generic()
431 size_t const lastRun = (size_t)(iend - anchor); in LZ4_compress_generic()
449 memcpy(op, anchor, lastRun); in LZ4_compress_generic()
533 const BYTE *anchor = ip; in LZ4_compress_destSize_generic() local
603 while ((ip > anchor) in LZ4_compress_destSize_generic()
612 unsigned int litLength = (unsigned int)(ip - anchor); in LZ4_compress_destSize_generic()
[all …]
/Linux-v5.4/include/linux/
Dusb.h1357 static inline void init_usb_anchor(struct usb_anchor *anchor) in init_usb_anchor() argument
1359 memset(anchor, 0, sizeof(*anchor)); in init_usb_anchor()
1360 INIT_LIST_HEAD(&anchor->urb_list); in init_usb_anchor()
1361 init_waitqueue_head(&anchor->wait); in init_usb_anchor()
1362 spin_lock_init(&anchor->lock); in init_usb_anchor()
1562 struct usb_anchor *anchor; member
1716 extern void usb_kill_anchored_urbs(struct usb_anchor *anchor);
1717 extern void usb_poison_anchored_urbs(struct usb_anchor *anchor);
1718 extern void usb_unpoison_anchored_urbs(struct usb_anchor *anchor);
1719 extern void usb_unlink_anchored_urbs(struct usb_anchor *anchor);
[all …]
Diova.h85 struct iova anchor; /* rbtree lookup anchor */ member
/Linux-v5.4/sound/usb/bcd2000/
Dbcd2000.c57 struct usb_anchor anchor; member
262 init_usb_anchor(&bcd2k->anchor); in bcd2000_init_device()
263 usb_anchor_urb(bcd2k->midi_out_urb, &bcd2k->anchor); in bcd2000_init_device()
264 usb_anchor_urb(bcd2k->midi_in_urb, &bcd2k->anchor); in bcd2000_init_device()
287 usb_wait_anchor_empty_timeout(&bcd2k->anchor, 1000); in bcd2000_init_device()
/Linux-v5.4/Documentation/input/
Dshape.svg33 …0" font-family="sans-serif" font-size="144px" stroke-width=".025in" text-anchor="middle" xml:space…
36 …0" font-family="sans-serif" font-size="144px" stroke-width=".025in" text-anchor="middle" xml:space…
37 …0" font-family="sans-serif" font-size="144px" stroke-width=".025in" text-anchor="middle" xml:space…
38 …0" font-family="sans-serif" font-size="144px" stroke-width=".025in" text-anchor="end" xml:space="p…
Dinteractive.svg18 …ans-serif" font-size="144px" stroke="#000000" stroke-width=".025in" text-anchor="middle" xml:space…
/Linux-v5.4/drivers/net/wireless/ralink/rt2x00/
Drt2x00usb.c179 usb_anchor_urb(urb, rd->rt2x00dev->anchor); in rt2x00usb_register_read_async_cb()
217 usb_anchor_urb(urb, rt2x00dev->anchor); in rt2x00usb_register_read_async()
745 usb_kill_anchored_urbs(rt2x00dev->anchor); in rt2x00usb_uninitialize()
830 rt2x00dev->anchor = devm_kmalloc(&usb_dev->dev, in rt2x00usb_probe()
833 if (!rt2x00dev->anchor) { in rt2x00usb_probe()
837 init_usb_anchor(rt2x00dev->anchor); in rt2x00usb_probe()
846 usb_kill_anchored_urbs(rt2x00dev->anchor); in rt2x00usb_probe()
/Linux-v5.4/drivers/mtd/ubi/
Dfastmap-wl.c81 struct ubi_wl_entry *ubi_wl_get_fm_peb(struct ubi_device *ubi, int anchor) in ubi_wl_get_fm_peb() argument
88 if (anchor) in ubi_wl_get_fm_peb()
297 wrk->anchor = 1; in ubi_ensure_anchor_pebs()
Dwl.c660 int anchor = wrk->anchor; local
702 if (!anchor)
703 anchor = !anchor_pebs_available(&ubi->free);
705 if (anchor) {
1054 wrk->anchor = 0;
Dubi.h808 int anchor; member
913 struct ubi_wl_entry *ubi_wl_get_fm_peb(struct ubi_device *ubi, int anchor);
/Linux-v5.4/drivers/iommu/
Diova.c42 iovad->cached_node = &iovad->anchor.node; in init_iova_domain()
43 iovad->cached32_node = &iovad->anchor.node; in init_iova_domain()
50 iovad->anchor.pfn_lo = iovad->anchor.pfn_hi = IOVA_ANCHOR; in init_iova_domain()
51 rb_link_node(&iovad->anchor.node, NULL, &iovad->rbroot.rb_node); in init_iova_domain()
52 rb_insert_color(&iovad->anchor.node, &iovad->rbroot); in init_iova_domain()
/Linux-v5.4/Documentation/filesystems/
Dudf.txt55 anchor= Override standard anchor location. (default= 256)
/Linux-v5.4/fs/udf/
Dsuper.c216 unsigned int anchor; member
466 uopt->anchor = 0; in udf_parse_options()
551 uopt->anchor = option; in udf_parse_options()
1775 struct anchorVolDescPtr *anchor; in udf_load_sequence() local
1779 anchor = (struct anchorVolDescPtr *)bh->b_data; in udf_load_sequence()
1782 main_s = le32_to_cpu(anchor->mainVolDescSeqExt.extLocation); in udf_load_sequence()
1783 main_e = le32_to_cpu(anchor->mainVolDescSeqExt.extLength); in udf_load_sequence()
1788 reserve_s = le32_to_cpu(anchor->reserveVolDescSeqExt.extLocation); in udf_load_sequence()
1789 reserve_e = le32_to_cpu(anchor->reserveVolDescSeqExt.extLength); in udf_load_sequence()
1989 sbi->s_anchor = uopt->anchor; in udf_load_vrs()
/Linux-v5.4/Documentation/translations/zh_CN/process/
Dcoding-style.rst518 (let* ((anchor (c-langelem-pos c-syntactic-element))
520 (offset (- (1+ column) anchor))
/Linux-v5.4/drivers/pci/hotplug/
Dcpqphp.h75 char anchor[4]; member
93 ANCHOR = offsetof(struct smbios_entry_point, anchor[0]),
/Linux-v5.4/Documentation/ABI/testing/
Dsysfs-firmware-qemu_fw_cfg76 "etc/smbios/smbios-anchor"
/Linux-v5.4/fs/
Dlibfs.c188 struct list_head *anchor = &dentry->d_subdirs; in dcache_readdir() local
196 p = anchor; in dcache_readdir()

12