Searched refs:first (Results 1 - 25 of 978) sorted by relevance

1234567891011>>

/linux-master/include/linux/sched/
H A Dwake_q.h39 struct wake_q_node *first; member in struct:wake_q_head
46 { WAKE_Q_TAIL, &name.first }
53 head->first = WAKE_Q_TAIL;
54 head->lastp = &head->first;
59 return head->first == WAKE_Q_TAIL;
/linux-master/lib/
H A Dllist.c20 * @new_first: first entry in batch to be added
29 struct llist_node *first = READ_ONCE(head->first); local
32 new_last->next = first;
33 } while (!try_cmpxchg(&head->first, &first, new_first));
35 return !first;
40 * llist_del_first - delete the first entry of lock-less list
43 * If list is empty, return NULL, otherwise, return the first entry
49 * llist_add) sequence in another user may change @head->first
[all...]
H A Dkasprintf.c17 unsigned int first, second; local
22 first = vsnprintf(NULL, 0, fmt, aq);
25 p = kmalloc_track_caller(first+1, gfp);
29 second = vsnprintf(p, first+1, fmt, ap);
30 WARN(first != second, "different return values (%u and %u) from vsnprintf(\"%s\", ...)",
31 first, second, fmt);
H A Dsiphash.c113 * @first: first u64
116 u64 siphash_1u64(const u64 first, const siphash_key_t *key) argument
119 v3 ^= first;
122 v0 ^= first;
129 * @first: first u64
133 u64 siphash_2u64(const u64 first, const u64 second, const siphash_key_t *key) argument
136 v3 ^= first;
139 v0 ^= first;
155 siphash_3u64(const u64 first, const u64 second, const u64 third, const siphash_key_t *key) argument
183 siphash_4u64(const u64 first, const u64 second, const u64 third, const u64 forth, const siphash_key_t *key) argument
207 siphash_1u32(const u32 first, const siphash_key_t *key) argument
215 siphash_3u32(const u32 first, const u32 second, const u32 third, const siphash_key_t *key) argument
316 hsiphash_1u32(const u32 first, const hsiphash_key_t *key) argument
330 hsiphash_2u32(const u32 first, const u32 second, const hsiphash_key_t *key) argument
348 hsiphash_3u32(const u32 first, const u32 second, const u32 third, const hsiphash_key_t *key) argument
369 hsiphash_4u32(const u32 first, const u32 second, const u32 third, const u32 forth, const hsiphash_key_t *key) argument
458 hsiphash_1u32(const u32 first, const hsiphash_key_t *key) argument
474 hsiphash_2u32(const u32 first, const u32 second, const hsiphash_key_t *key) argument
494 hsiphash_3u32(const u32 first, const u32 second, const u32 third, const hsiphash_key_t *key) argument
519 hsiphash_4u32(const u32 first, const u32 second, const u32 third, const u32 forth, const hsiphash_key_t *key) argument
[all...]
/linux-master/scripts/kconfig/
H A Dlist_types.h10 struct hlist_node *first; member in struct:hlist_head
/linux-master/include/linux/
H A Drculist_bl.h15 LIST_BL_BUG_ON(((unsigned long)h->first & LIST_BL_LOCKMASK) !=
17 rcu_assign_pointer(h->first,
24 ((unsigned long)rcu_dereference_check(h->first, hlist_bl_is_locked(h)) & ~LIST_BL_LOCKMASK);
74 struct hlist_bl_node *first; local
77 first = hlist_bl_first(h);
79 n->next = first;
80 if (first)
81 first->pprev = &n->next;
82 n->pprev = &h->first;
H A Dlist_nulls.h22 struct hlist_nulls_node *first; member in struct:hlist_nulls_head
30 ((ptr)->first = (struct hlist_nulls_node *) NULLS_MARKER(nulls))
88 return is_a_nulls(READ_ONCE(h->first));
94 struct hlist_nulls_node *first = h->first; local
96 n->next = first;
97 WRITE_ONCE(n->pprev, &h->first);
98 h->first = n;
99 if (!is_a_nulls(first))
100 WRITE_ONCE(first
[all...]
H A Drculist_nulls.h42 * hlist_nulls_first_rcu - returns the first element of the hash list.
46 (*((struct hlist_nulls_node __rcu __force **)&(head)->first))
102 struct hlist_nulls_node *first = h->first; local
104 WRITE_ONCE(n->next, first);
105 WRITE_ONCE(n->pprev, &h->first);
107 if (!is_a_nulls(first))
108 WRITE_ONCE(first->pprev, &n->next);
136 for (i = h->first; !is_a_nulls(i); i = i->next)
162 * The barrier() is needed to make sure compiler doesn't cache first elemen
[all...]
H A Dlist_bl.h13 * For modification operations, the 0 bit of hlist_bl_head->first
35 struct hlist_bl_node *first; member in struct:hlist_bl_head
42 ((ptr)->first = NULL)
60 ((unsigned long)h->first & ~LIST_BL_LOCKMASK);
67 LIST_BL_BUG_ON(((unsigned long)h->first & LIST_BL_LOCKMASK) !=
69 h->first = (struct hlist_bl_node *)((unsigned long)n | LIST_BL_LOCKMASK);
74 return !((unsigned long)READ_ONCE(h->first) & ~LIST_BL_LOCKMASK);
80 struct hlist_bl_node *first = hlist_bl_first(h); local
82 n->next = first;
83 if (first)
[all...]
/linux-master/tools/power/cpupower/lib/
H A Dcpufreq.h20 struct cpufreq_available_governors *first; member in struct:cpufreq_available_governors
26 struct cpufreq_available_frequencies *first; member in struct:cpufreq_available_frequencies
33 struct cpufreq_affected_cpus *first; member in struct:cpufreq_affected_cpus
40 struct cpufreq_stats *first; member in struct:cpufreq_stats
117 struct cpufreq_available_governors *first);
131 struct cpufreq_available_frequencies *first);
137 struct cpufreq_available_frequencies *first);
149 void cpufreq_put_affected_cpus(struct cpufreq_affected_cpus *first);
161 void cpufreq_put_related_cpus(struct cpufreq_affected_cpus *first);
H A Dcpufreq.c273 struct cpufreq_available_governors *first = NULL; local
295 first = malloc(sizeof(*first));
296 if (!first)
298 current = first;
300 current->first = first;
313 return first;
316 while (first) {
317 current = first
347 struct cpufreq_available_frequencies *first = NULL; local
403 struct cpufreq_available_frequencies *first = NULL; local
479 struct cpufreq_affected_cpus *first = NULL; local
710 struct cpufreq_stats *first = NULL; local
[all...]
/linux-master/ipc/
H A Dsyscall.c20 int ksys_ipc(unsigned int call, int first, unsigned long second, argument
30 return ksys_semtimedop(first, (struct sembuf __user *)ptr,
34 return ksys_semtimedop(first, ptr, second,
37 return compat_ksys_semtimedop(first, ptr, second,
43 return ksys_semget(first, second, third);
50 return ksys_old_semctl(first, second, third, arg);
54 return ksys_msgsnd(first, (struct msgbuf __user *) ptr,
67 return ksys_msgrcv(first, tmp.msgp, second,
71 return ksys_msgrcv(first,
76 return ksys_msgget((key_t) first, secon
130 compat_ksys_ipc(u32 call, int first, int second, u32 third, compat_uptr_t ptr, u32 fifth) argument
[all...]
/linux-master/arch/riscv/kernel/tests/module_test/
H A Dtest_sub16.S12 first: label
19 .reloc sub16, R_RISCV_SUB16, first
H A Dtest_sub32.S12 first: label
19 .reloc sub32, R_RISCV_SUB32, first
H A Dtest_sub6.S12 first: label
19 .reloc sub6, R_RISCV_SUB6, first
H A Dtest_sub64.S16 first: label
23 .reloc sub64, R_RISCV_SUB64, first
H A Dtest_sub8.S12 first: label
19 .reloc sub8, R_RISCV_SUB8, first
H A Dtest_uleb128.S20 first: label
24 .reloc second, R_RISCV_SUB_ULEB128, first
/linux-master/tools/testing/radix-tree/
H A Dregression3.c36 bool first; local
43 first = true;
46 if (first) {
49 first = false;
59 first = true;
62 if (first) {
64 first = false;
/linux-master/fs/
H A Dbinfmt_script.c19 static inline const char *next_non_spacetab(const char *first, const char *last) argument
21 for (; first <= last; first++)
22 if (!spacetab(*first))
23 return first;
26 static inline const char *next_terminator(const char *first, const char *last) argument
28 for (; first <= last; first++)
29 if (spacetab(*first) || !*first)
[all...]
/linux-master/tools/testing/selftests/bpf/
H A Dbpf_arena_list.h16 struct arena_list_node __arena *first; member in struct:arena_list_head
36 for (void * ___tmp = (pos = list_entry_safe((head)->first, \
45 arena_list_node_t *first = h->first, * __arena *tmp; local
47 cast_user(first);
49 WRITE_ONCE(n->next, first);
50 cast_kern(first);
51 if (first) {
54 WRITE_ONCE(first->pprev, tmp);
57 WRITE_ONCE(h->first,
[all...]
/linux-master/drivers/gpu/drm/xe/compat-i915-headers/
H A Di915_drv.h102 #define IS_GRAPHICS_VER(xe, first, last) \
103 ((xe)->info.graphics_verx100 >= first * 100 && \
111 #define IS_DISPLAY_STEP(xe, first, last) ({u8 __step = (xe)->info.step.display; first <= __step && __step <= last; })
112 #define IS_GRAPHICS_STEP(xe, first, last) ({u8 __step = (xe)->info.step.graphics; first <= __step && __step <= last; })
129 #define IS_DG1_GRAPHICS_STEP(xe, first, last) (IS_DG1(xe) && IS_GRAPHICS_STEP(xe, first, last))
130 #define IS_DG2_GRAPHICS_STEP(xe, variant, first, last) \
132 IS_GRAPHICS_STEP(xe, first, las
[all...]
/linux-master/io_uring/
H A Dslist.h7 for (pos = (head)->first; pos; pos = (pos)->next)
10 for (pos = (head)->first, prv = NULL; pos; prv = pos, pos = (pos)->next)
15 #define wq_list_empty(list) (READ_ONCE((list)->first) == NULL)
18 (list)->first = NULL; \
37 if (!list->first) {
39 WRITE_ONCE(list->first, node);
49 node->next = list->first;
52 WRITE_ONCE(list->first, node);
59 /* first in the list, if prev==NULL */
61 WRITE_ONCE(list->first, las
[all...]
/linux-master/drivers/md/bcache/
H A Dfeatures.c28 bool first = true; \
34 if (first) { \
41 } else if (!first) { \
50 first = false; \
52 if (!first) \
/linux-master/drivers/video/fbdev/core/
H A Dsysfillrect.c28 unsigned long first, last; local
33 first = FB_SHIFT_HIGH(p, ~0UL, dst_idx);
39 first &= last;
40 *dst = comp(pat, *dst, first);
45 if (first!= ~0UL) {
46 *dst = comp(pat, *dst, first);
74 unsigned long first, last; local
79 first = FB_SHIFT_HIGH(p, ~0UL, dst_idx);
85 first &= last;
86 *dst = comp(pat, *dst, first);
129 unsigned long first, last; local
185 unsigned long first, last; local
[all...]

Completed in 274 milliseconds

1234567891011>>