Home
last modified time | relevance | path

Searched refs:iter (Results 1 – 9 of 9) sorted by relevance

/lib/math/
Dcordic.c50 unsigned iter; in cordic_calc_iq() local
71 for (iter = 0; iter < CORDIC_NUM_ITER; iter++) { in cordic_calc_iq()
73 valtmp = coord.i - (coord.q >> iter); in cordic_calc_iq()
74 coord.q += (coord.i >> iter); in cordic_calc_iq()
75 angle += arctan_table[iter]; in cordic_calc_iq()
77 valtmp = coord.i + (coord.q >> iter); in cordic_calc_iq()
78 coord.q -= (coord.i >> iter); in cordic_calc_iq()
79 angle -= arctan_table[iter]; in cordic_calc_iq()
/lib/
Drhashtable.c658 void rhashtable_walk_enter(struct rhashtable *ht, struct rhashtable_iter *iter) in rhashtable_walk_enter() argument
660 iter->ht = ht; in rhashtable_walk_enter()
661 iter->p = NULL; in rhashtable_walk_enter()
662 iter->slot = 0; in rhashtable_walk_enter()
663 iter->skip = 0; in rhashtable_walk_enter()
664 iter->end_of_table = 0; in rhashtable_walk_enter()
667 iter->walker.tbl = in rhashtable_walk_enter()
669 list_add(&iter->walker.list, &iter->walker.tbl->walkers); in rhashtable_walk_enter()
680 void rhashtable_walk_exit(struct rhashtable_iter *iter) in rhashtable_walk_exit() argument
682 spin_lock(&iter->ht->lock); in rhashtable_walk_exit()
[all …]
Dplist.c75 struct plist_node *first, *iter, *prev = NULL; in plist_add() local
85 first = iter = plist_first(head); in plist_add()
88 if (node->prio < iter->prio) { in plist_add()
89 node_next = &iter->node_list; in plist_add()
93 prev = iter; in plist_add()
94 iter = list_entry(iter->prio_list.next, in plist_add()
96 } while (iter != first); in plist_add()
99 list_add_tail(&node->prio_list, &iter->prio_list); in plist_add()
147 struct plist_node *iter; in plist_requeue() local
157 iter = plist_next(node); in plist_requeue()
[all …]
Ddynamic_debug.c727 static struct _ddebug *ddebug_iter_first(struct ddebug_iter *iter) in ddebug_iter_first() argument
730 iter->table = NULL; in ddebug_iter_first()
731 iter->idx = 0; in ddebug_iter_first()
734 iter->table = list_entry(ddebug_tables.next, in ddebug_iter_first()
736 iter->idx = 0; in ddebug_iter_first()
737 return &iter->table->ddebugs[iter->idx]; in ddebug_iter_first()
746 static struct _ddebug *ddebug_iter_next(struct ddebug_iter *iter) in ddebug_iter_next() argument
748 if (iter->table == NULL) in ddebug_iter_next()
750 if (++iter->idx == iter->table->num_ddebugs) { in ddebug_iter_next()
752 iter->idx = 0; in ddebug_iter_next()
[all …]
Dradix-tree.c212 static unsigned int iter_offset(const struct radix_tree_iter *iter) in iter_offset() argument
214 return iter->index & RADIX_TREE_MAP_MASK; in iter_offset()
940 const struct radix_tree_iter *iter, in radix_tree_iter_replace() argument
943 __radix_tree_replace(root, iter->node, slot, item); in radix_tree_iter_replace()
1069 const struct radix_tree_iter *iter, unsigned int tag) in radix_tree_iter_tag_clear() argument
1071 node_tag_clear(root, iter->node, tag, iter_offset(iter)); in radix_tree_iter_tag_clear()
1119 static void set_iter_tags(struct radix_tree_iter *iter, in set_iter_tags() argument
1127 iter->tags = 1; in set_iter_tags()
1131 iter->tags = node->tags[tag][tag_long] >> tag_bit; in set_iter_tags()
1137 iter->tags |= node->tags[tag][tag_long + 1] << in set_iter_tags()
[all …]
Dtest_meminit.c197 int iter; in do_kmem_cache_size() local
205 for (iter = 0; iter < 10; iter++) { in do_kmem_cache_size()
258 int i, iter, maxiter = 1024; in do_kmem_cache_rcu_persistent() local
280 for (iter = 0; iter < maxiter; iter++) { in do_kmem_cache_rcu_persistent()
282 used_objects[iter] = buf; in do_kmem_cache_rcu_persistent()
285 for (i = 0; i <= iter; i++) in do_kmem_cache_rcu_persistent()
303 int i, iter, maxiter = 1024; in do_kmem_cache_size_bulk() local
309 for (iter = 0; (iter < maxiter) && !fail; iter++) { in do_kmem_cache_size_bulk()
Dgeneric-radix-tree.c162 void *__genradix_iter_peek(struct genradix_iter *iter, in __genradix_iter_peek() argument
177 if (ilog2(iter->offset) >= genradix_depth_shift(level)) in __genradix_iter_peek()
183 i = (iter->offset >> genradix_depth_shift(level)) & in __genradix_iter_peek()
188 iter->offset = round_down(iter->offset + in __genradix_iter_peek()
191 iter->pos = (iter->offset >> PAGE_SHIFT) * in __genradix_iter_peek()
200 return &n->data[iter->offset & (PAGE_SIZE - 1)]; in __genradix_iter_peek()
Didr.c36 struct radix_tree_iter iter; in idr_alloc_u32() local
45 radix_tree_iter_init(&iter, id); in idr_alloc_u32()
46 slot = idr_get_free(&idr->idr_rt, &iter, gfp, max - base); in idr_alloc_u32()
50 *nextid = iter.index + base; in idr_alloc_u32()
52 radix_tree_iter_replace(&idr->idr_rt, &iter, slot, ptr); in idr_alloc_u32()
53 radix_tree_iter_tag_clear(&idr->idr_rt, &iter, IDR_FREE); in idr_alloc_u32()
198 struct radix_tree_iter iter; in idr_for_each() local
202 radix_tree_for_each_slot(slot, &idr->idr_rt, &iter, 0) { in idr_for_each()
204 unsigned long id = iter.index + base; in idr_for_each()
229 struct radix_tree_iter iter; in idr_get_next_ul() local
[all …]
Derror-inject.c61 struct error_injection_entry *iter; in populate_error_injection_list() local
66 for (iter = start; iter < end; iter++) { in populate_error_injection_list()
67 entry = arch_deref_entry_point((void *)iter->addr); in populate_error_injection_list()
81 ent->etype = iter->etype; in populate_error_injection_list()