Home
last modified time | relevance | path

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

123456

/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/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/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/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/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/fs/ntfs3/
H A Dbitmap.c959 size_t wnd_find(struct wnd_bitmap *wnd, size_t to_alloc, size_t hint, in wnd_find() argument
988 if (wnd->zone_bit <= hint && hint < wnd->zone_end) in wnd_find()
989 hint = wnd->zone_end; in wnd_find()
994 if (hint >= max_alloc) in wnd_find()
995 hint = 0; in wnd_find()
1006 if (!hint) in wnd_find()
1016 if (e->start.key == hint) in wnd_find()
1019 if (e->start.key < hint) { in wnd_find()
1037 if (e->start.key + e->count.key > hint) { in wnd_find()
1039 size_t len = e->start.key + e->count.key - hint; in wnd_find()
[all …]
/linux/tools/testing/selftests/arm64/fp/
H A Drdvl.S10 hint 34 // BTI C
16 hint 34 // BTI C
/linux/fs/lockd/
H A Dsvcsubs.c377 nlmsvc_mark_host(void *data, struct nlm_host *hint) in nlmsvc_mark_host() argument
381 if ((hint->net == NULL) || in nlmsvc_mark_host()
382 (host->net == hint->net)) in nlmsvc_mark_host()
418 struct nlm_host hint; in nlmsvc_mark_resources() local
421 hint.net = net; in nlmsvc_mark_resources()
422 nlm_traverse_files(&hint, nlmsvc_mark_host, NULL); in nlmsvc_mark_resources()
/linux/net/ipv6/
H A Dip6_input.c93 const struct sk_buff *hint) in ip6_can_use_hint() argument
95 return hint && !skb_dst(skb) && in ip6_can_use_hint()
96 ipv6_addr_equal(&ipv6_hdr(hint)->daddr, &ipv6_hdr(skb)->daddr); in ip6_can_use_hint()
112 struct sk_buff *skb, *next, *hint = NULL; in ip6_list_rcv_finish() local
127 if (ip6_can_use_hint(skb, hint)) in ip6_list_rcv_finish()
128 skb_dst_copy(skb, hint); in ip6_list_rcv_finish()
133 hint = ip6_extract_route_hint(net, skb); in ip6_list_rcv_finish()
/linux/arch/mips/lib/
H A Dmemcpy.S208 # define _PREF(hint, addr, type) \ argument
210 kernel_pref(hint, addr); \
222 user_pref(hint, addr); \
225 kernel_pref(hint, addr); \
229 # define _PREF(hint, addr, type) argument
232 #define PREFS(hint, addr) _PREF(hint, addr, SRC_PREFETCH) argument
233 #define PREFD(hint, addr) _PREF(hint, addr, DST_PREFETCH) argument
/linux/tools/testing/selftests/mm/
H A Dvirtual_address_range.c207 char *hint; in main() local
234 hint = hint_addr(); in main()
235 hptr[i] = mmap(hint, MAP_CHUNK_SIZE, PROT_READ, in main()
/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()
/linux/drivers/parisc/
H A Diommu-helpers.h16 unsigned long hint, in iommu_fill_pdir() argument
79 paddr, hint); in iommu_fill_pdir()
/linux/Documentation/admin-guide/pm/
H A Dintel_idle.rst30 first of which, referred to as a *hint*, can be used by the processor to
68 Each ``MWAIT`` hint value is interpreted by the processor as a license to
72 ``MWAIT`` hint values and idle states (i.e. low-power configurations of the
132 the description, ``MWAIT`` hint and exit latency are copied to the corresponding
276 Some of the ``MWAIT`` hint values allow the processor to use core C-states only
277 (most importantly, that is the case for the ``MWAIT`` hint value corresponding
280 with the given hint value) into a specific core C-state and then (if possible)
282 ``MWAIT`` hint value representing the ``C3`` idle state allows the processor to
285 have executed ``MWAIT`` with the ``C3`` hint value (or with a hint value
297 the logical CPU executing ``MWAIT`` with a hint value that is not core-level
[all …]
/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()

123456