Home
last modified time | relevance | path

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

12345

/linux/lib/
H A Dsbitmap.c32 unsigned hint; in update_alloc_hint_before_get() local
34 hint = this_cpu_read(*sb->alloc_hint); in update_alloc_hint_before_get()
35 if (unlikely(hint >= depth)) { in update_alloc_hint_before_get()
36 hint = depth ? get_random_u32_below(depth) : 0; in update_alloc_hint_before_get()
37 this_cpu_write(*sb->alloc_hint, hint); in update_alloc_hint_before_get()
40 return hint; in update_alloc_hint_before_get()
45 unsigned int hint, in update_alloc_hint_after_get() argument
51 } else if (nr == hint || unlikely(sb->round_robin)) { in update_alloc_hint_after_get()
53 hint = nr + 1; in update_alloc_hint_after_get()
54 if (hint >= depth - 1) in update_alloc_hint_after_get()
[all …]
/linux/tools/testing/selftests/arm64/bti/
H A Dassembler.h52 hint 0x19
56 hint 0x1d
60 hint 0x20
64 hint 0x22
68 hint 0x24
72 hint 0x26
/linux/block/
H A Dbadblocks.c457 static int prev_by_hint(struct badblocks *bb, sector_t s, int hint) in prev_by_hint() argument
459 int hint_end = hint + 2; in prev_by_hint()
463 while ((hint < hint_end) && ((hint + 1) <= bb->count) && in prev_by_hint()
464 (BB_OFFSET(p[hint]) <= s)) { in prev_by_hint()
465 if ((hint + 1) == bb->count || BB_OFFSET(p[hint + 1]) > s) { in prev_by_hint()
466 ret = hint; in prev_by_hint()
469 hint++; in prev_by_hint()
482 int hint) in prev_badblocks() argument
492 if (hint >= 0) { in prev_badblocks()
493 ret = prev_by_hint(bb, s, hint); in prev_badblocks()
[all …]
/linux/arch/mips/include/asm/
H A Dasm-eva.h18 #define kernel_pref(hint, base) "pref " hint ", " base "\n" argument
55 #define user_pref(hint, base) __BUILD_EVA_INSN("prefe", hint, base) argument
77 #define user_pref(hint, base) kernel_pref(hint, base) argument
105 #define kernel_pref(hint, base) pref hint, base argument
142 #define user_pref(hint, base) __BUILD_EVA_INSN(prefe, hint, base) argument
163 #define user_pref(hint, base) kernel_pref(hint, base) argument
H A Dprefetch.h47 .macro __pref hint addr
49 pref \hint, \addr
/linux/fs/jfs/
H A Djfs_extent.c73 s64 nxlen, nxaddr, xoff, hint, xaddr = 0; in extAlloc() local
96 if ((hint = addressXAD(xp))) { in extAlloc()
110 xaddr = hint + nxlen; in extAlloc()
113 hint += (nxlen - 1); in extAlloc()
127 if ((rc = extBalloc(ip, hint ? hint : INOHINT(ip), &nxlen, &nxaddr))) { in extAlloc()
309 extBalloc(struct inode *ip, s64 hint, s64 * nblocks, s64 * blkno) in extBalloc() argument
336 while ((rc = dbAlloc(ip, hint, nb, &daddr)) != 0) { in extBalloc()
/linux/tools/perf/util/
H A Dstrbuf.c20 int strbuf_init(struct strbuf *sb, ssize_t hint) in strbuf_init() argument
24 if (hint) in strbuf_init()
25 return strbuf_grow(sb, hint); in strbuf_init()
139 ssize_t strbuf_read(struct strbuf *sb, int fd, ssize_t hint) in strbuf_read() argument
145 ret = strbuf_grow(sb, hint ? hint : 8192); in strbuf_read()
H A Dstrbuf.h59 int strbuf_init(struct strbuf *buf, ssize_t hint);
93 ssize_t strbuf_read(struct strbuf *, int fd, ssize_t hint);
/linux/arch/x86/include/asm/
H A Dmwait.h14 #define MWAIT_HINT2CSTATE(hint) (((hint) >> MWAIT_SUBSTATE_SIZE) & MWAIT_CSTATE_MASK) argument
15 #define MWAIT_HINT2SUBSTATE(hint) ((hint) & MWAIT_CSTATE_MASK) argument
/linux/arch/sparc/kernel/
H A Diommu-common.c84 iommu->pools[i].hint = start; in iommu_tbl_pool_init()
93 p->hint = p->start; in iommu_tbl_pool_init()
140 start = pool->hint; in iommu_tbl_range_alloc()
186 pool->hint = pool->start; in iommu_tbl_range_alloc()
195 pool->hint = pool->start; in iommu_tbl_range_alloc()
206 (n < pool->hint || need_flush(iommu))) { in iommu_tbl_range_alloc()
212 pool->hint = end; in iommu_tbl_range_alloc()
/linux/scripts/gendwarfksyms/examples/
H A Dkabi.h40 #define ___KABI_RULE(hint, target, value) \ argument
44 "1\0" #hint "\0" target "\0" value
46 #define __KABI_RULE(hint, target, value) \ argument
47 ___KABI_RULE(hint, #target, #value)
/linux/tools/testing/selftests/net/
H A Dbind_bhash.c32 struct addrinfo *res, hint = {}; in bind_socket() local
42 hint.ai_family = domain; in bind_socket()
43 hint.ai_socktype = SOCK_STREAM; in bind_socket()
45 err = getaddrinfo(addr, port, &hint, &res); in bind_socket()
/linux/arch/loongarch/include/asm/
H A Dasm.h19 #define PREF(hint, addr, offs) \ argument
20 preld hint, addr, offs; \
22 #define PREFX(hint, addr, index) \ argument
23 preldx hint, addr, index; \
27 #define PREF(hint, addr, offs) argument
28 #define PREFX(hint, addr, index) argument
H A Dprefetch.h13 .macro __pref hint addr
15 preld \hint, \addr, 0
H A Dbarrier.h20 #define DBAR(hint) __asm__ __volatile__("dbar %0 " : : "I"(hint) : "memory") argument
/linux/tools/testing/selftests/arm64/fp/
H A Drdvl.S10 hint 34 // BTI C
16 hint 34 // BTI C
/linux/fs/ntfs3/
H A Dbitmap.c976 size_t wnd_find(struct wnd_bitmap *wnd, size_t to_alloc, size_t hint, in wnd_find() argument
1005 if (wnd->zone_bit <= hint && hint < wnd->zone_end) in wnd_find()
1006 hint = wnd->zone_end; in wnd_find()
1011 if (hint >= max_alloc) in wnd_find()
1012 hint = 0; in wnd_find()
1023 if (!hint) in wnd_find()
1033 if (e->start.key == hint) in wnd_find()
1036 if (e->start.key < hint) { in wnd_find()
1054 if (e->start.key + e->count.key > hint) { in wnd_find()
1056 size_t len = e->start.key + e->count.key - hint; in wnd_find()
[all …]
/linux/fs/lockd/
H A Dsvcsubs.c450 nlmsvc_mark_host(void *data, struct nlm_host *hint) in nlmsvc_mark_host() argument
454 if ((hint->net == NULL) || in nlmsvc_mark_host()
455 (host->net == hint->net)) in nlmsvc_mark_host()
491 struct nlm_host hint; in nlmsvc_mark_resources() local
494 hint.net = net; in nlmsvc_mark_resources()
495 nlm_traverse_files(&hint, nlmsvc_mark_host, NULL); in nlmsvc_mark_resources()
/linux/tools/testing/selftests/mm/
H A Dvirtual_address_range.c
/linux/net/ipv6/
H A Dip6_input.c133 const struct sk_buff *hint) in ip6_can_use_hint() argument
135 return hint && !skb_dst(skb) && in ip6_can_use_hint()
136 ipv6_addr_equal(&ipv6_hdr(hint)->daddr, &ipv6_hdr(skb)->daddr); in ip6_can_use_hint()
152 struct sk_buff *skb, *next, *hint = NULL; in ip6_list_rcv_finish() local
167 if (ip6_can_use_hint(skb, hint)) in ip6_list_rcv_finish()
168 skb_dst_copy(skb, hint); in ip6_list_rcv_finish()
173 hint = ip6_extract_route_hint(net, skb); in ip6_list_rcv_finish()
/linux/drivers/gpu/drm/xe/
H A Dxe_guc_hxg_helpers.h80 static inline u32 guc_hxg_msg_encode_failure(u32 *msg, u32 error, u32 hint) in guc_hxg_msg_encode_failure() argument
84 FIELD_PREP(GUC_HXG_FAILURE_MSG_0_HINT, hint) | in guc_hxg_msg_encode_failure()
H A Dxe_guc_relay.c393 static u32 sanitize_relay_error_hint(u32 hint) in sanitize_relay_error_hint() argument
397 hint = 0; in sanitize_relay_error_hint()
398 return hint; in sanitize_relay_error_hint()
401 static u32 prepare_error_reply(u32 *msg, u32 error, u32 hint) in prepare_error_reply() argument
405 FIELD_PREP(GUC_HXG_FAILURE_MSG_0_HINT, hint) | in prepare_error_reply()
409 XE_WARN_ON(!FIELD_FIT(GUC_HXG_FAILURE_MSG_0_HINT, hint)); in prepare_error_reply()
610 u32 hint __maybe_unused = FIELD_GET(GUC_HXG_FAILURE_MSG_0_HINT, msg[0]); in relay_handle_failure()
614 origin, rid, error, ERR_PTR(-error), hint, 4 * (len - 1), msg + 1); in relay_handle_failure()
/linux/drivers/parisc/
H A Diommu-helpers.h16 unsigned long hint, in iommu_fill_pdir() argument
79 paddr, hint); in iommu_fill_pdir()
/linux/drivers/md/
H A Ddm-cache-policy-internal.h60 bool dirty, uint32_t hint, bool hint_valid) in policy_load_mapping() argument
62 return p->load_mapping(p, oblock, cblock, dirty, hint, hint_valid); in policy_load_mapping()
/linux/arch/arm/kernel/
H A Dprocess.c401 unsigned long hint; in arch_setup_additional_pages() local
414 hint = sigpage_addr(mm, npages); in arch_setup_additional_pages()
415 addr = get_unmapped_area(NULL, hint, npages << PAGE_SHIFT, 0, 0); in arch_setup_additional_pages()

12345