Searched refs:new (Results 51 - 75 of 1398) sorted by relevance

1234567891011>>

/linux-master/lib/
H A Dlockref.c17 struct lockref new = old; \
21 new.lock_count))) { \
45 new.count++;
66 new.count++;
94 new.count--;
116 * Decrement the reference count and return the new value.
122 new.count--;
126 return new.count;
140 new.count--;
177 new
[all...]
H A Drefcount.c76 unsigned int new, val = atomic_read(&r->refs); local
85 new = val - 1;
86 if (new > val) {
87 WARN_ONCE(new > val, "refcount_t: underflow; use-after-free.\n");
91 } while (!atomic_try_cmpxchg_release(&r->refs, &val, new));
/linux-master/arch/arm/kernel/
H A Dftrace.c99 unsigned long new, bool validate)
117 __patch_text((void *)pc, new);
125 unsigned long new; local
129 new = ftrace_call_replace(pc, (unsigned long)func, true);
131 ret = ftrace_modify_code(pc, 0, new, false);
136 new = ftrace_call_replace(pc, (unsigned long)func, true);
138 ret = ftrace_modify_code(pc, 0, new, false);
147 unsigned long new, old; local
158 new = ftrace_call_replace(ip, aaddr, !mod);
160 if (!new
98 ftrace_modify_code(unsigned long pc, unsigned long old, unsigned long new, bool validate) argument
174 unsigned long new, old; local
192 unsigned long new; local
276 unsigned long new = enable ? branch : nop; local
[all...]
/linux-master/arch/x86/kvm/mmu/
H A Dpage_track.h30 void __kvm_page_track_write(struct kvm *kvm, gpa_t gpa, const u8 *new, int bytes);
42 const u8 *new, int bytes) { }
51 const u8 *new, int bytes)
53 __kvm_page_track_write(vcpu->kvm, gpa, new, bytes);
55 kvm_mmu_track_write(vcpu, gpa, new, bytes);
41 __kvm_page_track_write(struct kvm *kvm, gpa_t gpa, const u8 *new, int bytes) argument
50 kvm_page_track_write(struct kvm_vcpu *vcpu, gpa_t gpa, const u8 *new, int bytes) argument
/linux-master/include/linux/
H A Dlwq.h26 struct llist_head new; /* entries being enqueued */
37 init_llist_head(&q->new);
51 return smp_load_acquire(&q->ready) == NULL && llist_empty(&q->new);
92 * lwq_enqueue - add a new item to the end of the queue
103 return llist_add(&n->node, &q->new) &&
108 * lwq_enqueue_batch - add a list of new items to the end of the queue
121 return llist_add_batch(llist_reverse_order(n), e, &q->new) &&
/linux-master/tools/testing/selftests/bpf/progs/
H A Dpreempted_bpf_ma_op.c48 struct bin_data *old, *new; local
55 new = bpf_obj_new(typeof(*new));
56 if (!new) {
61 old = bpf_kptr_xchg(&value->data, new);
H A Dmap_in_map_btf.c48 struct node_data *new; local
63 new = bpf_obj_new(typeof(*new));
64 if (!new)
68 bpf_list_push_back(&value->head, &new->node);
/linux-master/security/apparmor/include/
H A Dtask.h53 * @new: a blank task context (NOT NULL)
56 static inline void aa_dup_task_ctx(struct aa_task_ctx *new, argument
59 *new = *old;
60 aa_get_label(new->nnp);
61 aa_get_label(new->previous);
62 aa_get_label(new->onexec);
/linux-master/scripts/
H A Dstackdelta48 or die "usage: $0 <old> <new>";
51 my $new = read_stack_usage_file($ARGV[1]);
52 my @common = sort grep {exists $new->{$_}} keys %$old;
55 my $y = $new->{$_}{size};
/linux-master/arch/hexagon/lib/
H A Dudivsi3.S29 if (!p0.new) r1 = sub(r1,r2)
30 if (!p0.new) r0 = add(r0,r3)
35 if (!p0.new) r0 = add(r0,r3)
/linux-master/arch/sh/kernel/
H A Dftrace.c78 * and the new code into the "code" buffer.
105 int new = old & ~MOD_CODE_WRITE_FLAG; local
107 if (old == new)
110 old = atomic_cmpxchg(&nmi_running, old, new);
125 /* if we fail, then kill any new writers */
213 /* replace the text with the new text */
225 unsigned char old[MCOUNT_INSN_SIZE], *new; local
228 new = ftrace_call_replace(ip, (unsigned long)func);
230 return ftrace_modify_code(ip, old, new);
236 unsigned char *new, *ol local
247 unsigned char *new, *old; local
[all...]
/linux-master/drivers/gpu/drm/nouveau/nvkm/engine/disp/
H A Dgk110.c40 .head = { .cnt = gf119_head_cnt, .new = gf119_head_new },
41 .dac = { .cnt = gf119_dac_cnt, .new = gf119_dac_new },
42 .sor = { .cnt = gf119_sor_cnt, .new = gk104_sor_new },
/linux-master/arch/x86/include/asm/
H A Dmc146818rtc.h43 unsigned long new;
44 new = ((smp_processor_id() + 1) << 8) | reg;
50 if (__cmpxchg(&cmos_lock, 0, new, sizeof(cmos_lock)) == 0)
/linux-master/security/selinux/
H A Dnetnode.c138 * sel_netnode_insert - Insert a new node into the table
139 * @node: the new node record
142 * Add a new node record to the network address hash table.
194 struct sel_netnode *new; local
204 new = kzalloc(sizeof(*new), GFP_ATOMIC);
209 if (new)
210 new->nsec.addr.ipv4 = *(__be32 *)addr;
215 if (new)
216 new
[all...]
/linux-master/arch/arm64/kvm/hyp/nvhe/
H A Dlist_debug.c30 bool __list_add_valid_or_report(struct list_head *new, struct list_head *prev, argument
35 NVHE_CHECK_DATA_CORRUPTION(new == prev || new == next))
/linux-master/net/netfilter/
H A Dnf_conntrack_extend.c61 /* remember to add new extensions below */
95 struct nf_ct_ext *new; local
110 oldlen = sizeof(*new);
117 new = krealloc(ct->ext, alloc, gfp);
118 if (!new)
122 memset(new->offset, 0, sizeof(new->offset));
123 new->gen_id = atomic_read(&nf_conntrack_ext_genid);
126 new->offset[id] = newoff;
127 new
[all...]
/linux-master/arch/powerpc/mm/kasan/
H A D8xx.c16 pte_basic_t *new; local
23 new = memblock_alloc(sizeof(pte_basic_t), SZ_4K);
24 if (!new)
27 *new = pte_val(pte_mkhuge(pfn_pte(PHYS_PFN(__pa(block)), PAGE_KERNEL)));
29 hugepd_populate_kernel((hugepd_t *)pmd, (pte_t *)new, PAGE_SHIFT_8M);
30 hugepd_populate_kernel((hugepd_t *)pmd + 1, (pte_t *)new, PAGE_SHIFT_8M);
/linux-master/arch/arc/include/asm/
H A Dcmpxchg.h19 * *ptr = @new
21 #define __cmpxchg(ptr, old, new) \
34 "r"(new) /* Not "ir": scond can't take LIMM */ \
41 #define arch_cmpxchg_relaxed(ptr, old, new) \
45 __typeof__(*(ptr)) _n_ = (new); \
60 #define arch_cmpxchg(ptr, old, new) \
64 __typeof__(*(ptr)) _n_ = (new); \
91 " ex %0, [%1] \n" /* set new value */ \
/linux-master/drivers/mtd/devices/
H A Dphram.c129 struct phram_mtd_list *new; local
132 new = kzalloc(sizeof(*new), GFP_KERNEL);
133 if (!new)
136 new->cached = cached;
138 ret = phram_map(new, start, len);
145 new->mtd.name = name;
146 new->mtd.size = len;
147 new->mtd.flags = MTD_CAP_RAM;
148 new
[all...]
/linux-master/drivers/mtd/
H A Dmtd_blkdevs.c276 int add_mtd_blktrans_dev(struct mtd_blktrans_dev *new) argument
278 struct mtd_blktrans_ops *tr = new->tr;
288 if (new->devnum == -1) {
292 new->devnum = last_devnum+1;
293 list_add_tail(&new->list, &d->list);
296 } else if (d->devnum == new->devnum) {
299 } else if (d->devnum > new->devnum) {
301 list_add_tail(&new->list, &d->list);
308 if (new->devnum == -1)
309 new
[all...]
/linux-master/arch/sh/include/asm/
H A Dcmpxchg-grb.h16 " mov.l %2, @%1 \n\t" /* store new value */
38 " mov.w %2, @%1 \n\t" /* store new value */
60 " mov.b %2, @%1 \n\t" /* store new value */
72 unsigned long new)
85 " mov.l %2, @%3 \n\t" /* store new value */
88 "+r" (old), "+r" (new) /* old or new can be r15 */
71 __cmpxchg_u32(volatile int *m, unsigned long old, unsigned long new) argument
/linux-master/drivers/gpu/drm/nouveau/dispnv50/
H A Dbase.c32 int (*new)(struct nouveau_drm *, int, s32, struct nv50_wndw **);
52 return bases[cid].new(drm, head, bases[cid].oclass, pwndw);
/linux-master/tools/testing/radix-tree/linux/
H A Dpercpu.h9 #define this_cpu_cmpxchg(var, old, new) uatomic_cmpxchg(&var, old, new)
/linux-master/arch/um/drivers/
H A Dmconsole_kern.h42 extern void mconsole_register_dev(struct mc_device *new);
46 static inline void mconsole_register_dev(struct mc_device *new) argument
/linux-master/arch/powerpc/include/asm/nohash/
H A Dhugetlb-e500.h31 static inline void hugepd_populate(hugepd_t *hpdp, pte_t *new, unsigned int pshift) argument
34 *hpdp = __hugepd(((unsigned long)new & ~PD_HUGE) | pshift);

Completed in 241 milliseconds

1234567891011>>