Home
last modified time | relevance | path

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

123456

/Linux-v5.4/fs/reiserfs/
Dbitmap.c773 static inline void new_hashed_relocation(reiserfs_blocknr_hint_t * hint) in new_hashed_relocation() argument
777 if (hint->formatted_node) { in new_hashed_relocation()
778 hash_in = (char *)&hint->key.k_dir_id; in new_hashed_relocation()
780 if (!hint->inode) { in new_hashed_relocation()
782 hash_in = (char *)&hint->key.k_dir_id; in new_hashed_relocation()
784 if (TEST_OPTION(displace_based_on_dirid, hint->th->t_super)) in new_hashed_relocation()
785 hash_in = (char *)(&INODE_PKEY(hint->inode)->k_dir_id); in new_hashed_relocation()
788 (char *)(&INODE_PKEY(hint->inode)->k_objectid); in new_hashed_relocation()
791 hint->search_start = in new_hashed_relocation()
792 hint->beg + keyed_hash(hash_in, 4) % (hint->end - hint->beg); in new_hashed_relocation()
[all …]
/Linux-v5.4/lib/
Dsbitmap.c108 unsigned int hint, bool wrap) in __sbitmap_get_word() argument
110 unsigned int orig_hint = hint; in __sbitmap_get_word()
114 nr = find_next_zero_bit(word, depth, hint); in __sbitmap_get_word()
121 if (orig_hint && hint && wrap) { in __sbitmap_get_word()
122 hint = orig_hint = 0; in __sbitmap_get_word()
131 hint = nr + 1; in __sbitmap_get_word()
132 if (hint >= depth - 1) in __sbitmap_get_word()
133 hint = 0; in __sbitmap_get_word()
440 unsigned int hint, depth; in __sbitmap_queue_get() local
443 hint = this_cpu_read(*sbq->alloc_hint); in __sbitmap_queue_get()
[all …]
/Linux-v5.4/sound/pci/hda/
Dhda_sysfs.c271 const struct hda_hint *hint; in hints_show() local
274 snd_array_for_each(&codec->hints, i, hint) { in hints_show()
276 "%s = %s\n", hint->key, hint->val); in hints_show()
284 struct hda_hint *hint; in get_hint() local
287 snd_array_for_each(&codec->hints, i, hint) { in get_hint()
288 if (!strcmp(hint->key, key)) in get_hint()
289 return hint; in get_hint()
312 struct hda_hint *hint; in parse_hints() local
334 hint = get_hint(codec, key); in parse_hints()
335 if (hint) { in parse_hints()
[all …]
/Linux-v5.4/arch/x86/include/asm/
Dmwait.h14 #define MWAIT_HINT2CSTATE(hint) (((hint) >> MWAIT_SUBSTATE_SIZE) & MWAIT_CSTATE_MASK) argument
15 #define MWAIT_HINT2SUBSTATE(hint) ((hint) & MWAIT_CSTATE_MASK) argument
Dapb_timer.h35 extern struct sfi_timer_table_entry *sfi_get_mtmr(int hint);
/Linux-v5.4/arch/mips/include/asm/
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
Dprefetch.h47 .macro __pref hint addr
49 pref \hint, \addr
/Linux-v5.4/tools/perf/util/
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()
Dstrbuf.h59 int strbuf_init(struct strbuf *buf, ssize_t hint);
93 ssize_t strbuf_read(struct strbuf *, int fd, ssize_t hint);
/Linux-v5.4/arch/sparc/kernel/
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()
190 pool->hint = pool->start; in iommu_tbl_range_alloc()
199 pool->hint = pool->start; in iommu_tbl_range_alloc()
210 (n < pool->hint || need_flush(iommu))) { in iommu_tbl_range_alloc()
216 pool->hint = end; in iommu_tbl_range_alloc()
/Linux-v5.4/fs/jfs/
Djfs_extent.c76 s64 nxlen, nxaddr, xoff, hint, xaddr = 0; in extAlloc() local
94 if ((hint = addressXAD(xp))) { in extAlloc()
108 xaddr = hint + nxlen; in extAlloc()
111 hint += (nxlen - 1); in extAlloc()
125 if ((rc = extBalloc(ip, hint ? hint : INOHINT(ip), &nxlen, &nxaddr))) { in extAlloc()
496 extBalloc(struct inode *ip, s64 hint, s64 * nblocks, s64 * blkno) in extBalloc() argument
518 while ((rc = dbAlloc(ip, hint, nb, &daddr)) != 0) { in extBalloc()
/Linux-v5.4/tools/testing/selftests/vm/
Dvirtual_address_range.c101 char *hint; in main() local
120 hint = hind_addr(); in main()
121 hptr[i] = mmap(hint, MAP_CHUNK_SIZE, PROT_READ | PROT_WRITE, in main()
/Linux-v5.4/Documentation/x86/x86_64/
D5level-paging.rst46 specifying hint address (with or without MAP_FIXED) above 47-bits.
48 If hint address set above 47-bit, but MAP_FIXED is not specified, we try
53 A high hint address would only affect the allocation in question, but not
56 Specifying high hint address on older kernel or on machine without 5-level
57 paging support is safe. The hint will be ignored and kernel will fall back
/Linux-v5.4/fs/lockd/
Dsvcsubs.c331 nlmsvc_mark_host(void *data, struct nlm_host *hint) in nlmsvc_mark_host() argument
335 if ((hint->net == NULL) || in nlmsvc_mark_host()
336 (host->net == hint->net)) in nlmsvc_mark_host()
372 struct nlm_host hint; in nlmsvc_mark_resources() local
375 hint.net = net; in nlmsvc_mark_resources()
376 nlm_traverse_files(&hint, nlmsvc_mark_host, NULL); in nlmsvc_mark_resources()
/Linux-v5.4/drivers/dma/ioat/
Dhw.h86 unsigned int hint:1; member
118 unsigned int hint:1; member
165 unsigned int hint:1; member
214 unsigned int hint:1; member
/Linux-v5.4/arch/x86/platform/intel-mid/
Dsfi.c107 struct sfi_timer_table_entry *sfi_get_mtmr(int hint) in sfi_get_mtmr() argument
110 if (hint < sfi_mtimer_num) { in sfi_get_mtmr()
111 if (!sfi_mtimer_usage[hint]) { in sfi_get_mtmr()
113 hint, sfi_mtimer_array[hint].irq); in sfi_get_mtmr()
114 sfi_mtimer_usage[hint] = 1; in sfi_get_mtmr()
115 return &sfi_mtimer_array[hint]; in sfi_get_mtmr()
/Linux-v5.4/arch/mips/lib/
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-v5.4/fs/
Dfcntl.c261 static bool rw_hint_valid(enum rw_hint hint) in rw_hint_valid() argument
263 switch (hint) { in rw_hint_valid()
281 enum rw_hint hint; in fcntl_rw_hint() local
293 hint = (enum rw_hint) h; in fcntl_rw_hint()
294 if (!rw_hint_valid(hint)) in fcntl_rw_hint()
298 file->f_write_hint = hint; in fcntl_rw_hint()
309 hint = (enum rw_hint) h; in fcntl_rw_hint()
310 if (!rw_hint_valid(hint)) in fcntl_rw_hint()
314 inode->i_write_hint = hint; in fcntl_rw_hint()
/Linux-v5.4/drivers/parisc/
Diommu-helpers.h16 unsigned long hint, in iommu_fill_pdir() argument
79 vaddr, hint); in iommu_fill_pdir()
/Linux-v5.4/drivers/nvdimm/
Dnd.h46 int dimm, int hint) in ndrd_get_flush_wpq() argument
51 return ndrd->flush_wpq[dimm * num + (hint & mask)]; in ndrd_get_flush_wpq()
55 int hint, void __iomem *flush) in ndrd_set_flush_wpq() argument
60 ndrd->flush_wpq[dimm * num + (hint & mask)] = flush; in ndrd_set_flush_wpq()
/Linux-v5.4/drivers/md/
Ddm-cache-policy-internal.h59 bool dirty, uint32_t hint, bool hint_valid) in policy_load_mapping() argument
61 return p->load_mapping(p, oblock, cblock, dirty, hint, hint_valid); in policy_load_mapping()
/Linux-v5.4/tools/objtool/
Dcheck.c1163 struct unwind_hint *hint; in read_unwind_hints() local
1186 hint = (struct unwind_hint *)sec->data->d_buf + i; in read_unwind_hints()
1188 rela = find_rela_by_dest(sec, i * sizeof(*hint)); in read_unwind_hints()
1202 if (hint->type == UNWIND_HINT_TYPE_SAVE) { in read_unwind_hints()
1206 } else if (hint->type == UNWIND_HINT_TYPE_RESTORE) { in read_unwind_hints()
1208 insn->hint = true; in read_unwind_hints()
1212 insn->hint = true; in read_unwind_hints()
1214 switch (hint->sp_reg) { in read_unwind_hints()
1241 insn->sec, insn->offset, hint->sp_reg); in read_unwind_hints()
1245 cfa->offset = hint->sp_offset; in read_unwind_hints()
[all …]
/Linux-v5.4/arch/arm/kernel/
Dprocess.c421 unsigned long hint; in arch_setup_additional_pages() local
434 hint = sigpage_addr(mm, npages); in arch_setup_additional_pages()
435 addr = get_unmapped_area(NULL, hint, npages << PAGE_SHIFT, 0, 0); in arch_setup_additional_pages()
/Linux-v5.4/arch/powerpc/kernel/
Diommu.c212 start = pool->hint; in iommu_range_alloc()
251 pool->hint = pool->start; in iommu_range_alloc()
261 pool->hint = pool->start; in iommu_range_alloc()
277 pool->hint = end; in iommu_range_alloc()
280 pool->hint = (end + tbl->it_blocksize - 1) & in iommu_range_alloc()
717 p->hint = p->start; in iommu_init_table()
724 p->hint = p->start; in iommu_init_table()
/Linux-v5.4/arch/sparc/include/asm/
Diommu-common.h16 unsigned long hint; member

123456