Home
last modified time | relevance | path

Searched refs:u32 (Results 1 – 25 of 85) sorted by relevance

1234

/kernel/
Dfutex.c241 u32 bitset;
390 u32 hash = jhash2((u32 *)key, offsetof(typeof(*key), both.offset) / 4, in hash_futex()
522 get_futex_key(u32 __user *uaddr, int fshared, union futex_key *key, int rw) in get_futex_key()
534 if (unlikely((address % sizeof(u32)) != 0)) in get_futex_key()
538 if (unlikely(!access_ok(rw, uaddr, sizeof(u32)))) in get_futex_key()
746 static int fault_in_user_writeable(u32 __user *uaddr) in fault_in_user_writeable()
778 static int cmpxchg_futex_value_locked(u32 *curval, u32 __user *uaddr, in cmpxchg_futex_value_locked()
779 u32 uval, u32 newval) in cmpxchg_futex_value_locked()
790 static int get_futex_value_locked(u32 *dest, u32 __user *from) in get_futex_value_locked()
795 ret = __copy_from_user_inatomic(dest, from, sizeof(u32)); in get_futex_value_locked()
[all …]
Dtest_kprobes.c25 static u32 rand1, preh_val, posth_val, jph_val;
27 static u32 (*target)(u32 value);
28 static u32 (*target2)(u32 value);
30 static noinline u32 kprobe_target(u32 value) in kprobe_target()
83 static noinline u32 kprobe_target2(u32 value) in kprobe_target2()
157 static u32 j_kprobe_target(u32 value) in j_kprobe_target()
231 static u32 krph_val;
Daudit.h90 u32 osid;
147 u32 target_sid;
164 u32 osid;
206 extern u32 audit_ever_enabled;
222 static inline int audit_hash_ino(u32 ino) in audit_hash_ino()
231 extern int audit_comparator(const u32 left, const u32 op, const u32 right);
232 extern int audit_uid_comparator(kuid_t left, u32 op, kuid_t right);
233 extern int audit_gid_comparator(kgid_t left, u32 op, kgid_t right);
269 extern int audit_to_watch(struct audit_krule *krule, char *path, int len, u32 op);
305 extern int audit_make_tree(struct audit_krule *, char *, u32);
[all …]
Daudit.c82 u32 audit_enabled = AUDIT_OFF;
83 u32 audit_ever_enabled = !!AUDIT_OFF;
88 static u32 audit_default = AUDIT_OFF;
91 static u32 audit_failure = AUDIT_FAIL_PRINTK;
104 static u32 audit_rate_limit;
108 static u32 audit_backlog_limit = 64;
110 static u32 audit_backlog_wait_time_master = AUDIT_BACKLOG_WAIT_TIME;
111 static u32 audit_backlog_wait_time = AUDIT_BACKLOG_WAIT_TIME;
112 static u32 audit_backlog_wait_overflow = 0;
117 u32 audit_sig_sid = 0;
[all …]
Duser_namespace.c154 static u32 map_id_range_down(struct uid_gid_map *map, u32 id, u32 count) in map_id_range_down()
157 u32 first, last, id2; in map_id_range_down()
175 id = (u32) -1; in map_id_range_down()
180 static u32 map_id_down(struct uid_gid_map *map, u32 id) in map_id_down()
183 u32 first, last; in map_id_down()
198 id = (u32) -1; in map_id_down()
203 static u32 map_id_up(struct uid_gid_map *map, u32 id) in map_id_up()
206 u32 first, last; in map_id_up()
221 id = (u32) -1; in map_id_up()
561 u32 upper_first, lower_first, upper_last, lower_last; in mappings_overlap()
[all …]
Dseccomp.c108 u32 k = ftest->k; in seccomp_check_filter()
178 static u32 seccomp_run_filters(struct seccomp_data *sd) in seccomp_run_filters()
181 u32 ret = SECCOMP_RET_ALLOW; in seccomp_run_filters()
200 u32 cur_ret = BPF_PROG_RUN(f->prog, (void *)sd); in seccomp_run_filters()
584 u32 phase1_result = seccomp_phase1(NULL); in __secure_computing()
595 static u32 __seccomp_phase1_filter(int this_syscall, struct seccomp_data *sd) in __seccomp_phase1_filter()
597 u32 filter_ret, action; in __seccomp_phase1_filter()
669 u32 seccomp_phase1(struct seccomp_data *sd) in seccomp_phase1()
700 int seccomp_phase2(u32 phase1_result) in seccomp_phase2()
703 u32 action = phase1_result & SECCOMP_RET_ACTION; in seccomp_phase2()
Dauditfilter.c115 static inline struct audit_entry *audit_init_entry(u32 field_count) in audit_init_entry()
207 static inline int audit_match_class_bits(int class, u32 *mask) in audit_match_class_bits()
312 static u32 audit_ops[] =
324 static u32 audit_to_op(u32 op) in audit_to_op()
326 u32 n; in audit_to_op()
437 u32 f_val; in audit_data_to_entry()
791 u32 fcount = old->field_count; in audit_dupe_rule()
1141 u32 portid = NETLINK_CB(request_skb).portid; in audit_list_rules_send()
1174 int audit_comparator(u32 left, u32 op, u32 right) in audit_comparator()
1199 int audit_uid_comparator(kuid_t left, u32 op, kuid_t right) in audit_uid_comparator()
[all …]
/kernel/bpf/
Dcore.c150 static void bpf_adj_branches(struct bpf_prog *prog, u32 pos, u32 delta) in bpf_adj_branches()
153 u32 i, insn_cnt = prog->len; in bpf_adj_branches()
167 struct bpf_prog *bpf_patch_insn_single(struct bpf_prog *prog, u32 off, in bpf_patch_insn_single()
168 const struct bpf_insn *patch, u32 len) in bpf_patch_insn_single()
170 u32 insn_adj_cnt, insn_rest, insn_delta = len - 1; in bpf_patch_insn_single()
371 u32 tail_call_cnt = 0; in __bpf_prog_run()
394 DST = (u32) DST OP (u32) SRC; \ in __bpf_prog_run()
400 DST = (u32) DST OP (u32) IMM; \ in __bpf_prog_run()
413 DST = (u32) -DST; in __bpf_prog_run()
419 DST = (u32) SRC; in __bpf_prog_run()
[all …]
Darraymap.c23 u32 elem_size, array_size, index_mask, max_entries; in array_map_alloc()
93 u32 index = *(u32 *)key; in array_map_lookup_elem()
105 u32 index = key ? *(u32 *)key : U32_MAX; in array_map_get_next_key()
106 u32 *next = (u32 *)next_key; in array_map_get_next_key()
125 u32 index = *(u32 *)key; in array_map_update_elem()
190 if (attr->value_size != sizeof(u32)) in fd_array_map_alloc()
219 u32 index = *(u32 *)key, ufd; in fd_array_map_update_elem()
227 ufd = *(u32 *)value; in fd_array_map_update_elem()
243 u32 index = *(u32 *)key; in fd_array_map_delete_elem()
Dhashtab.c21 u32 count; /* number of elements in this hashtable */
22 u32 n_buckets; /* number of hash buckets */
23 u32 elem_size; /* size of each element in bytes */
30 u32 hash;
118 static inline u32 htab_map_hash(const void *key, u32 key_len) in htab_map_hash()
123 static inline struct hlist_head *select_bucket(struct bpf_htab *htab, u32 hash) in select_bucket()
128 static struct htab_elem *lookup_elem_raw(struct hlist_head *head, u32 hash, in lookup_elem_raw()
129 void *key, u32 key_size) in lookup_elem_raw()
146 u32 hash, key_size; in htab_map_lookup_elem()
171 u32 hash, key_size; in htab_map_get_next_key()
[all …]
/kernel/trace/
Dtrace_probe.h73 (((u32)(len) << 16) | ((u32)(roffs) & 0xffff))
74 #define get_rloc_len(dl) ((u32)(dl) >> 16)
75 #define get_rloc_offs(dl) ((u32)(dl) & 0xffff)
82 #define convert_rloc_to_loc(dl, offs) ((u32)(dl) + (offs))
84 static nokprobe_inline void *get_rloc_data(u32 *dl) in get_rloc_data()
90 static nokprobe_inline void *get_loc_data(u32 *dl, void *ent) in get_loc_data()
131 typedef u32 string;
132 typedef u32 string_size;
145 DECLARE_BASIC_PRINT_TYPE_FUNC(u32);
163 DECLARE_FETCH_FUNC(method, u32); \
[all …]
Dtrace_functions_graph.c122 struct trace_seq *s, u32 flags);
659 enum trace_type type, int cpu, pid_t pid, u32 flags) in print_graph_irq()
736 struct trace_seq *s, u32 flags) in print_graph_duration()
770 struct trace_seq *s, u32 flags) in print_graph_entry_leaf()
824 struct trace_seq *s, int cpu, u32 flags) in print_graph_entry_nested()
869 int type, unsigned long addr, u32 flags) in print_graph_prologue()
919 check_irq_entry(struct trace_iterator *iter, u32 flags, in check_irq_entry()
966 check_irq_return(struct trace_iterator *iter, u32 flags, int depth) in check_irq_return()
1011 struct trace_iterator *iter, u32 flags) in print_graph_entry()
1048 u32 flags) in print_graph_return()
[all …]
Dtrace_kprobe.c168 int maxlen = get_rloc_len(*(u32 *)dest); in DEFINE_BASIC_FETCH_FUNCS()
183 *(u32 *)dest = make_data_rloc(0, get_rloc_offs(*(u32 *)dest)); in DEFINE_BASIC_FETCH_FUNCS()
185 *(u32 *)dest = make_data_rloc(ret, get_rloc_offs(*(u32 *)dest)); in DEFINE_BASIC_FETCH_FUNCS()
211 *(u32 *)dest = 0; in FETCH_FUNC_NAME()
213 *(u32 *)dest = len; in FETCH_FUNC_NAME()
244 sizeof(u32), 1, "__data_loc char[]"),
245 [FETCH_TYPE_STRSIZE] = __ASSIGN_FETCH_TYPE("string_size", u32,
246 string_size, sizeof(u32), 0, "u32"),
250 ASSIGN_FETCH_TYPE(u32, u32, 0),
254 ASSIGN_FETCH_TYPE(s32, u32, 1),
[all …]
Dtrace_uprobe.c143 u32 rloc = *(u32 *)dest; in DEFINE_BASIC_FETCH_FUNCS()
164 *(u32 *)dest = make_data_rloc(0, get_rloc_offs(rloc)); in DEFINE_BASIC_FETCH_FUNCS()
166 *(u32 *)dest = make_data_rloc(ret, get_rloc_offs(rloc)); in DEFINE_BASIC_FETCH_FUNCS()
179 *(u32 *)dest = 0; in FETCH_FUNC_NAME()
181 *(u32 *)dest = len; in FETCH_FUNC_NAME()
211 sizeof(u32), 1, "__data_loc char[]"),
212 [FETCH_TYPE_STRSIZE] = __ASSIGN_FETCH_TYPE("string_size", u32,
213 string_size, sizeof(u32), 0, "u32"),
217 ASSIGN_FETCH_TYPE(u32, u32, 0),
221 ASSIGN_FETCH_TYPE(s32, u32, 1),
[all …]
Dtrace_nop.c63 static int nop_set_flag(struct trace_array *tr, u32 old_flags, u32 bit, int set) in nop_set_flag()
/kernel/locking/
Dqspinlock.c92 static inline u32 encode_tail(int cpu, int idx) in encode_tail()
94 u32 tail; in encode_tail()
105 static inline struct mcs_spinlock *decode_tail(u32 tail) in decode_tail()
175 static __always_inline u32 xchg_tail(struct qspinlock *lock, u32 tail) in xchg_tail()
179 return (u32)xchg(&l->tail, tail >> _Q_TAIL_OFFSET) << _Q_TAIL_OFFSET; in xchg_tail()
205 static __always_inline u32 xchg_tail(struct qspinlock *lock, u32 tail) in xchg_tail()
207 u32 old, new, val = atomic_read(&lock->val); in xchg_tail()
293 u32 val; in queued_spin_unlock_wait()
341 void queued_spin_lock_slowpath(struct qspinlock *lock, u32 val) in queued_spin_lock_slowpath()
344 u32 new, old, tail; in queued_spin_lock_slowpath()
Dqrwlock.c54 rspin_until_writer_unlock(struct qrwlock *lock, u32 cnts) in rspin_until_writer_unlock()
67 void queued_read_lock_slowpath(struct qrwlock *lock, u32 cnts) in queued_read_lock_slowpath()
112 u32 cnts; in queued_write_lock_slowpath()
/kernel/irq/
Dgeneric-chip.c39 u32 mask = d->mask; in irq_gc_mask_disable_reg()
58 u32 mask = d->mask; in irq_gc_mask_set_bit()
78 u32 mask = d->mask; in irq_gc_mask_clr_bit()
98 u32 mask = d->mask; in irq_gc_unmask_enable_reg()
114 u32 mask = d->mask; in irq_gc_ack_set_bit()
130 u32 mask = ~d->mask; in irq_gc_ack_clr_bit()
145 u32 mask = d->mask; in irq_gc_mask_disable_reg_and_ack()
161 u32 mask = d->mask; in irq_gc_eoi()
180 u32 mask = d->mask; in irq_gc_set_wake()
194 static u32 irq_readl_be(void __iomem *addr) in irq_readl_be()
[all …]
Dsettings.h37 irq_settings_clr_and_set(struct irq_desc *desc, u32 clr, u32 set) in irq_settings_clr_and_set()
68 static inline u32 irq_settings_get_trigger_mask(struct irq_desc *desc) in irq_settings_get_trigger_mask()
74 irq_settings_set_trigger_mask(struct irq_desc *desc, u32 mask) in irq_settings_set_trigger_mask()
/kernel/time/
Dclocksource.c63 clocks_calc_mult_shift(u32 *mult, u32 *shift, u32 from, u32 to, u32 maxsec) in clocks_calc_mult_shift()
66 u32 sft, sftacc= 32; in clocks_calc_mult_shift()
495 static u32 clocksource_max_adjustment(struct clocksource *cs) in clocksource_max_adjustment()
503 return (u32)ret; in clocksource_max_adjustment()
521 u64 clocks_calc_max_nsecs(u32 mult, u32 shift, u32 maxadj, u64 mask, u64 *max_cyc) in clocks_calc_max_nsecs()
698 void __clocksource_update_freq_scale(struct clocksource *cs, u32 scale, u32 freq) in __clocksource_update_freq_scale()
765 int __clocksource_register_scale(struct clocksource *cs, u32 scale, u32 freq) in __clocksource_register_scale()
Dsched_clock.c43 u32 mult;
44 u32 shift;
91 static inline u64 notrace cyc_to_ns(u64 cyc, u32 mult, u32 shift) in cyc_to_ns()
171 u32 new_mult, new_shift; in sched_clock_register()
Djiffies.c129 nsec_per_tick += (u32)shift_hz/2; in register_refined_jiffies()
130 do_div(nsec_per_tick, (u32)shift_hz); in register_refined_jiffies()
132 refined_jiffies.mult = ((u32)nsec_per_tick) << JIFFIES_SHIFT; in register_refined_jiffies()
Dtick-internal.h58 extern int __clockevents_update_freq(struct clock_event_device *dev, u32 freq);
72 extern int tick_broadcast_update_freq(struct clock_event_device *dev, u32 freq);
85 static inline int tick_broadcast_update_freq(struct clock_event_device *dev, u32 freq) { return -EN… in tick_broadcast_update_freq()
/kernel/printk/
Dprintk.c252 static u32 syslog_idx;
258 static u32 log_first_idx;
262 static u32 log_next_idx;
266 static u32 console_idx;
271 static u32 clear_idx;
286 #define LOG_BUF_LEN_MAX (u32)(1 << 31)
289 static u32 log_buf_len = __LOG_BUF_LEN;
298 u32 log_buf_len_get(void) in log_buf_len_get()
316 static struct printk_log *log_from_idx(u32 idx) in log_from_idx()
330 static u32 log_next(u32 idx) in log_next()
[all …]
/kernel/sched/
Dwalt.c342 u32 window_size = walt_ravg_window; in update_cpu_busy_time()
356 u32 curr_window = 0; in update_cpu_busy_time()
564 u32 runtime, int samples, int event) in update_history()
566 u32 *hist = &p->ravg.sum_history[0]; in update_history()
568 u32 max = 0, avg, demand; in update_history()
697 u32 window_size = walt_ravg_window; in update_task_demand()
768 u32 sum = 0; in reset_task_stats()
884 u32 init_load_windows = in walt_init_new_task_load()
887 u32 init_load_pct = current->init_load_pct; in walt_init_new_task_load()

1234