Home
last modified time | relevance | path

Searched refs:first (Results 1 – 25 of 1809) sorted by relevance

12345678910>>...73

/linux/ipc/
H A Dsyscall.c20 int ksys_ipc(unsigned int call, int first, unsigned long second, in ksys_ipc() argument
30 return ksys_semtimedop(first, (struct sembuf __user *)ptr, in ksys_ipc()
34 return ksys_semtimedop(first, ptr, second, in ksys_ipc()
37 return compat_ksys_semtimedop(first, ptr, second, in ksys_ipc()
43 return ksys_semget(first, second, third); in ksys_ipc()
50 return ksys_old_semctl(first, second, third, arg); in ksys_ipc()
54 return ksys_msgsnd(first, (struct msgbuf __user *) ptr, in ksys_ipc()
67 return ksys_msgrcv(first, tmp.msgp, second, in ksys_ipc()
71 return ksys_msgrcv(first, in ksys_ipc()
76 return ksys_msgget((key_t) first, second); in ksys_ipc()
[all …]
/linux/lib/
H A Dsiphash.c116 u64 siphash_1u64(const u64 first, const siphash_key_t *key) in siphash_1u64() argument
119 v3 ^= first; in siphash_1u64()
122 v0 ^= first; in siphash_1u64()
133 u64 siphash_2u64(const u64 first, const u64 second, const siphash_key_t *key) in siphash_2u64() argument
136 v3 ^= first; in siphash_2u64()
139 v0 ^= first; in siphash_2u64()
155 u64 siphash_3u64(const u64 first, const u64 second, const u64 third, in siphash_3u64() argument
159 v3 ^= first; in siphash_3u64()
162 v0 ^= first; in siphash_3u64()
183 u64 siphash_4u64(const u64 first, const u64 second, const u64 third, in siphash_4u64() argument
[all …]
H A Dkasprintf.c17 unsigned int first, second; in kvasprintf() local
22 first = vsnprintf(NULL, 0, fmt, aq); in kvasprintf()
25 p = kmalloc_track_caller(first+1, gfp); in kvasprintf()
29 second = vsnprintf(p, first+1, fmt, ap); in kvasprintf()
30 WARN(first != second, "different return values (%u and %u) from vsnprintf(\"%s\", ...)", in kvasprintf()
31 first, second, fmt); in kvasprintf()
/linux/kernel/bpf/
H A Dpercpu_freelist.c18 head->first = NULL; in pcpu_freelist_init()
31 node->next = head->first; in pcpu_freelist_push_node()
32 WRITE_ONCE(head->first, node); in pcpu_freelist_push_node()
108 if (!READ_ONCE(head->first)) in pcpu_freelist_populate()
112 node = head->first; in pcpu_freelist_populate()
114 WRITE_ONCE(head->first, node->next); in pcpu_freelist_populate()
/linux/fs/
H A Dbinfmt_script.c19 static inline const char *next_non_spacetab(const char *first, const char *last) in next_non_spacetab() argument
21 for (; first <= last; first++) in next_non_spacetab()
22 if (!spacetab(*first)) in next_non_spacetab()
23 return first; in next_non_spacetab()
26 static inline const char *next_terminator(const char *first, const char *last) in next_terminator() argument
28 for (; first <= last; first++) in next_terminator()
29 if (spacetab(*first) || !*first) in next_terminator()
30 return first; in next_terminator()
/linux/kernel/trace/
H A Drethook.c212 node = tsk->rethooks.first; in __rethook_find_ret_addr()
282 struct llist_node *first, *node = NULL; in rethook_trampoline_handler() local
305 first = current->rethooks.first; in rethook_trampoline_handler()
306 while (first) { in rethook_trampoline_handler()
307 rhn = container_of(first, struct rethook_node, llist); in rethook_trampoline_handler()
315 if (first == node) in rethook_trampoline_handler()
317 first = first->next; in rethook_trampoline_handler()
324 first = current->rethooks.first; in rethook_trampoline_handler()
325 current->rethooks.first = node->next; in rethook_trampoline_handler()
328 while (first) { in rethook_trampoline_handler()
[all …]
/linux/include/linux/
H A Drculist_bl.h15 LIST_BL_BUG_ON(((unsigned long)h->first & LIST_BL_LOCKMASK) != in hlist_bl_set_first_rcu()
17 rcu_assign_pointer(h->first, in hlist_bl_set_first_rcu()
24 ((unsigned long)rcu_dereference_check(h->first, hlist_bl_is_locked(h)) & ~LIST_BL_LOCKMASK); in hlist_bl_first_rcu()
74 struct hlist_bl_node *first; in hlist_bl_add_head_rcu() local
77 first = hlist_bl_first(h); in hlist_bl_add_head_rcu()
79 n->next = first; in hlist_bl_add_head_rcu()
80 if (first) in hlist_bl_add_head_rcu()
81 first->pprev = &n->next; in hlist_bl_add_head_rcu()
82 n->pprev = &h->first; in hlist_bl_add_head_rcu()
H A Dlist_bl.h35 struct hlist_bl_node *first; member
42 ((ptr)->first = NULL)
60 ((unsigned long)h->first & ~LIST_BL_LOCKMASK); in hlist_bl_first()
67 LIST_BL_BUG_ON(((unsigned long)h->first & LIST_BL_LOCKMASK) != in hlist_bl_set_first()
69 h->first = (struct hlist_bl_node *)((unsigned long)n | LIST_BL_LOCKMASK); in hlist_bl_set_first()
74 return !((unsigned long)READ_ONCE(h->first) & ~LIST_BL_LOCKMASK); in hlist_bl_empty()
80 struct hlist_bl_node *first = hlist_bl_first(h); in hlist_bl_add_head() local
82 n->next = first; in hlist_bl_add_head()
83 if (first) in hlist_bl_add_head()
84 first->pprev = &n->next; in hlist_bl_add_head()
[all …]
/linux/tools/testing/selftests/bpf/
H A Dbpf_arena_list.h16 struct arena_list_node __arena *first; member
37 for (void * ___tmp = (pos = list_entry_safe((head)->first, \
45 arena_list_node_t *first = h->first, * __arena *tmp; in list_add_head() local
47 cast_user(first); in list_add_head()
49 WRITE_ONCE(n->next, first); in list_add_head()
50 cast_kern(first); in list_add_head()
51 if (first) { in list_add_head()
54 WRITE_ONCE(first->pprev, tmp); in list_add_head()
57 WRITE_ONCE(h->first, in list_add_head()
[all...]
/linux/arch/alpha/lib/
H A Dcsum_partial_copy.c129 unsigned long first; in csum_partial_cfu_dest_aligned() local
134 if (__get_word(ldq_u, first,src)) in csum_partial_cfu_dest_aligned()
142 extql(first, soff, word); in csum_partial_cfu_dest_aligned()
145 extqh(second, soff, first); in csum_partial_cfu_dest_aligned()
147 word |= first; in csum_partial_cfu_dest_aligned()
148 first = second; in csum_partial_cfu_dest_aligned()
162 extql(first, soff, word); in csum_partial_cfu_dest_aligned()
163 extqh(second, soff, first); in csum_partial_cfu_dest_aligned()
164 word |= first; in csum_partial_cfu_dest_aligned()
243 unsigned long first; in csum_partial_cfu_unaligned() local
[all …]
/linux/rust/kernel/
H A Dlist.rs264 first: *mut ListLinksFields, field
470 first: ptr::null_mut(), in new()
477 self.first.is_null() in is_empty()
514 self.first = item; in insert_inner()
538 unsafe { self.insert_inner(item, self.first) }; in push_back()
546 let new_elem = unsafe { self.insert_inner(item, self.first) }; in push_front()
549 self.first = new_elem; in push_front()
559 let last = unsafe { (*self.first).prev }; in pop_back()
571 Some(unsafe { self.remove_internal(self.first) }) in pop_front()
673 if self.first == item { in remove_internal_inner()
[all …]
/linux/tools/include/linux/
H A Dlist.h217 struct list_head *first; in list_rotate_left() local
220 first = head->next; in list_rotate_left()
221 list_move_tail(first, head); in list_rotate_left()
278 struct list_head *first = list->next; in __list_splice() local
281 first->prev = prev; in __list_splice()
282 prev->next = first; in __list_splice()
606 #define HLIST_HEAD_INIT { .first = NULL }
607 #define HLIST_HEAD(name) struct hlist_head name = { .first = NULL }
608 #define INIT_HLIST_HEAD(ptr) ((ptr)->first = NULL)
622 return !h->first; in hlist_empty()
[all …]
/linux/drivers/video/fbdev/core/
H A Dfb_fillrect.h111 unsigned long first, last; in bitfill() local
114 first = fb_pixel_mask(dst->bits, pattern->reverse); in bitfill()
118 last = last ? (last & first) : first; in bitfill()
119 first = get(pattern); in bitfill()
121 fb_write_offset(first, 0, dst); in bitfill()
123 fb_modify_offset(first, last, 0, dst); in bitfill()
125 int offset = first != ~0UL; in bitfill()
128 fb_modify_offset(get(pattern), first, 0, dst); in bitfill()
159 unsigned long first, last; in bitinvert() local
163 first = fb_pixel_mask(dst->bits, pattern->reverse); in bitinvert()
[all …]
/linux/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) { in wq_list_add_tail()
39 WRITE_ONCE(list->first, node); in wq_list_add_tail()
49 node->next = list->first; in wq_list_add_head()
52 WRITE_ONCE(list->first, node); in wq_list_add_head()
59 /* first in the list, if prev==NULL */ in wq_list_cut()
61 WRITE_ONCE(list->first, las in wq_list_cut()
[all...]
/linux/tools/testing/selftests/kvm/lib/
H A Dsparsebit.c1894 sparsebit_idx_t first, last; member
1907 if (ranges[i].first <= idx && idx <= ranges[i].last) in get_value()
1913 static void operate(int code, sparsebit_idx_t first, sparsebit_idx_t last) in operate() argument
1918 if (first < last) { in operate()
1919 num = last - first + 1; in operate()
1921 num = first - last + 1; in operate()
1922 first = last; in operate()
1923 last = first + num - 1; in operate()
1928 sparsebit_set(s, first); in operate()
1929 assert(sparsebit_is_set(s, first)); in operate()
[all …]
/linux/drivers/net/wireguard/
H A Dsend.c242 static void wg_packet_create_data_done(struct wg_peer *peer, struct sk_buff *first) in wg_packet_create_data_done() argument
249 skb_list_walk_safe(first, skb, next) { in wg_packet_create_data_done()
267 struct sk_buff *first; in wg_packet_tx_worker() local
269 while ((first = wg_prev_queue_peek(&peer->tx_queue)) != NULL && in wg_packet_tx_worker()
270 (state = atomic_read_acquire(&PACKET_CB(first)->state)) != in wg_packet_tx_worker()
273 keypair = PACKET_CB(first)->keypair; in wg_packet_tx_worker()
276 wg_packet_create_data_done(peer, first); in wg_packet_tx_worker()
278 kfree_skb_list(first); in wg_packet_tx_worker()
291 struct sk_buff *first, *skb, *next; in wg_packet_encrypt_worker() local
293 while ((first = ptr_ring_consume_bh(&queue->ring)) != NULL) { in wg_packet_encrypt_worker()
[all …]
/linux/tools/testing/radix-tree/
H A Dregression3.c36 bool first; in regression3_test() local
43 first = true; in regression3_test()
46 if (first) { in regression3_test()
49 first = false; in regression3_test()
59 first = true; in regression3_test()
62 if (first) { in regression3_test()
64 first = false; in regression3_test()
/linux/tools/perf/util/
H A Devsel_fprintf.c20 static int comma_fprintf(FILE *fp, bool *first, const char *fmt, ...) in comma_fprintf() argument
25 if (!*first) { in comma_fprintf()
29 *first = false; in comma_fprintf()
45 bool first = true; in evsel__fprintf() local
70 __print_attr__fprintf, &first); in evsel__fprintf()
77 printed += comma_fprintf(fp, &first, " %s=%" PRIu64, in evsel__fprintf()
87 printed += comma_fprintf(fp, &first, " (not a tracepoint)"); in evsel__fprintf()
94 printed += comma_fprintf(fp, &first, " (no trace field)"); in evsel__fprintf()
98 printed += comma_fprintf(fp, &first, " trace_fields: %s", field->name); in evsel__fprintf()
102 printed += comma_fprintf(fp, &first, "%s", field->name); in evsel__fprintf()
[all …]
/linux/tools/power/cpupower/bindings/python/
H A Draw_pylibcpupower.i
/linux/arch/loongarch/kernel/
H A Dunwind_prologue.c125 state->first = true; in unwind_by_prologue()
137 pc = state->pc - (state->first ? 0 : LOONGARCH_INSN_SIZE); in unwind_by_prologue()
158 if (state->first) in unwind_by_prologue()
159 goto first; in unwind_by_prologue()
176 if (state->first) { in unwind_by_prologue()
178 goto first; in unwind_by_prologue()
187 first: in unwind_by_prologue()
191 state->first = false; in unwind_by_prologue()
217 state->first = true; in next_frame()
246 state->first = true; in unwind_start()
/linux/kernel/
H A Duser_namespace.c253 u32 first, last, id2; in cmp_map_id() local
261 first = el->lower_first; in cmp_map_id()
263 first = el->first; in cmp_map_id()
265 last = first + el->count - 1; in cmp_map_id()
267 if (key->id >= first && key->id <= last && in cmp_map_id()
268 (id2 >= first && id2 <= last)) in cmp_map_id()
271 if (key->id < first || id2 < first) in cmp_map_id()
303 u32 first, last, id2; in map_id_range_down_base() local
309 first = map->extent[idx].first; in map_id_range_down_base()
310 last = first + map->extent[idx].count - 1; in map_id_range_down_base()
[all …]
/linux/drivers/scsi/sym53c8xx_2/
H A Dsym_misc.h77 struct sym_quehead *first = list->flink; in sym_que_splice() local
79 if (first != list) { in sym_que_splice()
83 first->blink = head; in sym_que_splice()
84 head->flink = first; in sym_que_splice()
94 struct sym_quehead *first, *last; in sym_que_move() local
96 first = orig->flink; in sym_que_move()
97 if (first != orig) { in sym_que_move()
98 first->blink = dest; in sym_que_move()
99 dest->flink = first; in sym_que_move()
/linux/include/linux/sched/
H A Dwake_q.h39 struct wake_q_node *first; member
46 { WAKE_Q_TAIL, &name.first }
53 head->first = WAKE_Q_TAIL; in wake_q_init()
54 head->lastp = &head->first; in wake_q_init()
59 return head->first == WAKE_Q_TAIL; in wake_q_empty()
/linux/drivers/dma/
H A Dat_xdmac.c455 struct at_xdmac_desc *first) in at_xdmac_start_xfer() argument
465 dev_vdbg(chan2dev(&atchan->chan), "%s: desc 0x%p\n", __func__, first); in at_xdmac_start_xfer()
468 first->active_xfer = true; in at_xdmac_start_xfer()
471 reg = AT_XDMAC_CNDA_NDA(first->tx_dma_desc.phys); in at_xdmac_start_xfer()
484 else if ((first->lld.mbr_ubc & in at_xdmac_start_xfer()
495 at_xdmac_chan_write(atchan, AT_XDMAC_CC, first->lld.mbr_cfg); in at_xdmac_start_xfer()
516 if (at_xdmac_chan_is_peripheral_xfer(first->lld.mbr_cfg)) in at_xdmac_start_xfer()
767 struct at_xdmac_desc *first = NULL, *prev = NULL; in at_xdmac_prep_slave_sg() local
810 if (first) in at_xdmac_prep_slave_sg()
811 list_splice_tail_init(&first->descs_list, in at_xdmac_prep_slave_sg()
[all …]
/linux/arch/arm/include/asm/
H A Dopcodes.h151 #define __opcode_thumb32_compose(first, second) ( \ argument
152 (___opcode_identity32(___opcode_identity16(first)) << 16) \
157 #define ___asm_opcode_thumb32_compose(first, second) ( \ argument
158 (___asm_opcode_identity32(___asm_opcode_identity16(first)) << 16) \
225 #define ___inst_thumb32(first, second) .short first, second
229 #define ___inst_thumb32(first, second) \ argument
230 ".short " __stringify(first) ", " __stringify(second) "\n\t"

12345678910>>...73