Home
last modified time | relevance | path

Searched refs:victim (Results 1 – 25 of 69) sorted by relevance

123

/openbmc/linux/mm/
H A Doom_kill.c440 static void dump_oom_summary(struct oom_control *oc, struct task_struct *victim) in dump_oom_summary() argument
447 mem_cgroup_print_oom_context(oc->memcg, victim); in dump_oom_summary()
448 pr_cont(",task=%s,pid=%d,uid=%d\n", victim->comm, victim->pid, in dump_oom_summary()
449 from_kuid(&init_user_ns, task_uid(victim))); in dump_oom_summary()
914 static void __oom_kill_process(struct task_struct *victim, const char *message) in __oom_kill_process() argument
920 p = find_lock_task_mm(victim); in __oom_kill_process()
923 message, task_pid_nr(victim), victim->comm); in __oom_kill_process()
924 put_task_struct(victim); in __oom_kill_process()
926 } else if (victim != p) { in __oom_kill_process()
928 put_task_struct(victim); in __oom_kill_process()
[all …]
/openbmc/linux/drivers/usb/core/
H A Durb.c810 struct urb *victim; in usb_kill_anchored_urbs() local
816 victim = list_entry(anchor->urb_list.prev, in usb_kill_anchored_urbs()
819 usb_get_urb(victim); in usb_kill_anchored_urbs()
822 usb_kill_urb(victim); in usb_kill_anchored_urbs()
823 usb_put_urb(victim); in usb_kill_anchored_urbs()
848 struct urb *victim; in usb_poison_anchored_urbs() local
855 victim = list_entry(anchor->urb_list.prev, in usb_poison_anchored_urbs()
858 usb_get_urb(victim); in usb_poison_anchored_urbs()
861 usb_poison_urb(victim); in usb_poison_anchored_urbs()
862 usb_put_urb(victim); in usb_poison_anchored_urbs()
[all …]
/openbmc/u-boot/common/
H A Ddlmalloc.c1242 mchunkptr victim; /* inspected/selected chunk */ local
1281 victim = last(q);
1284 if (victim == q)
1287 victim = last(q);
1289 if (victim != q)
1291 victim_size = chunksize(victim);
1292 unlink(victim, bck, fwd);
1293 set_inuse_bit_at_offset(victim, victim_size);
1294 check_malloced_chunk(victim, nb);
1295 return chunk2mem(victim);
[all …]
H A Ddlmalloc.src2107 mchunkptr victim; /* inspected/selected chunk */
2135 victim = last(q);
2138 if (victim == q)
2141 victim = last(q);
2143 if (victim != q)
2145 victim_size = chunksize(victim);
2146 unlink(victim, bck, fwd);
2147 set_inuse_bit_at_offset(victim, victim_size);
2148 check_malloced_chunk(victim, nb);
2149 return chunk2mem(victim);
[all …]
/openbmc/linux/lib/
H A Drbtree.c553 void rb_replace_node(struct rb_node *victim, struct rb_node *new, in rb_replace_node() argument
556 struct rb_node *parent = rb_parent(victim); in rb_replace_node()
559 *new = *victim; in rb_replace_node()
562 if (victim->rb_left) in rb_replace_node()
563 rb_set_parent(victim->rb_left, new); in rb_replace_node()
564 if (victim->rb_right) in rb_replace_node()
565 rb_set_parent(victim->rb_right, new); in rb_replace_node()
566 __rb_change_child(victim, new, parent, root); in rb_replace_node()
570 void rb_replace_node_rcu(struct rb_node *victim, struct rb_node *new, in rb_replace_node_rcu() argument
573 struct rb_node *parent = rb_parent(victim); in rb_replace_node_rcu()
[all …]
H A Dbtree.c635 int btree_merge(struct btree_head *target, struct btree_head *victim, in btree_merge() argument
643 BUG_ON(target == victim); in btree_merge()
647 target->node = victim->node; in btree_merge()
648 target->height = victim->height; in btree_merge()
649 __btree_init(victim); in btree_merge()
657 if (!btree_last(victim, geo, key)) in btree_merge()
659 val = btree_lookup(victim, geo, key); in btree_merge()
666 btree_remove(victim, geo, dup); in btree_merge()
/openbmc/linux/arch/powerpc/kvm/
H A Dtrace.h49 TP_PROTO(unsigned int victim, unsigned int tid, unsigned int word0,
51 TP_ARGS(victim, tid, word0, word1, word2),
54 __field( unsigned int, victim )
62 __entry->victim = victim;
70 __entry->victim, __entry->tid, __entry->word0,
H A De500_mmu.c39 unsigned int victim; in gtlb0_get_next_victim() local
41 victim = vcpu_e500->gtlb_nv[0]++; in gtlb0_get_next_victim()
45 return victim; in gtlb0_get_next_victim()
130 unsigned int victim, tsized; in kvmppc_e500_deliver_tlb_miss() local
135 victim = (tlbsel == 0) ? gtlb0_get_next_victim(vcpu_e500) : 0; in kvmppc_e500_deliver_tlb_miss()
138 vcpu->arch.shared->mas0 = MAS0_TLBSEL(tlbsel) | MAS0_ESEL(victim) in kvmppc_e500_deliver_tlb_miss()
366 int victim; in kvmppc_e500_emul_tlbsx() local
370 victim = (tlbsel == 0) ? gtlb0_get_next_victim(vcpu_e500) : 0; in kvmppc_e500_emul_tlbsx()
373 | MAS0_ESEL(victim) in kvmppc_e500_emul_tlbsx()
/openbmc/linux/fs/cachefiles/
H A Dnamei.c750 struct dentry *victim; in cachefiles_lookup_for_cull() local
755 victim = lookup_one_len(filename, dir, strlen(filename)); in cachefiles_lookup_for_cull()
756 if (IS_ERR(victim)) in cachefiles_lookup_for_cull()
758 if (d_is_negative(victim)) in cachefiles_lookup_for_cull()
760 if (d_inode(victim)->i_flags & S_KERNEL_FILE) in cachefiles_lookup_for_cull()
762 return victim; in cachefiles_lookup_for_cull()
768 dput(victim); in cachefiles_lookup_for_cull()
773 ret = PTR_ERR(victim); in cachefiles_lookup_for_cull()
794 struct dentry *victim; in cachefiles_cull() local
800 victim = cachefiles_lookup_for_cull(cache, dir, filename); in cachefiles_cull()
[all …]
/openbmc/linux/arch/powerpc/platforms/cell/spufs/
H A Dsched.c613 struct spu_context *victim = NULL; in find_victim() local
639 (!victim || tmp->prio > victim->prio)) { in find_victim()
640 victim = spu->ctx; in find_victim()
643 if (victim) in find_victim()
644 get_spu_context(victim); in find_victim()
647 if (victim) { in find_victim()
658 if (!mutex_trylock(&victim->state_mutex)) { in find_victim()
659 put_spu_context(victim); in find_victim()
660 victim = NULL; in find_victim()
664 spu = victim->spu; in find_victim()
[all …]
/openbmc/u-boot/lib/
H A Drbtree.c495 void rb_replace_node(struct rb_node *victim, struct rb_node *new, in rb_replace_node() argument
498 struct rb_node *parent = rb_parent(victim); in rb_replace_node()
501 __rb_change_child(victim, new, parent, root); in rb_replace_node()
502 if (victim->rb_left) in rb_replace_node()
503 rb_set_parent(victim->rb_left, new); in rb_replace_node()
504 if (victim->rb_right) in rb_replace_node()
505 rb_set_parent(victim->rb_right, new); in rb_replace_node()
508 *new = *victim; in rb_replace_node()
/openbmc/linux/tools/lib/
H A Drbtree.c545 void rb_replace_node(struct rb_node *victim, struct rb_node *new, in rb_replace_node() argument
548 struct rb_node *parent = rb_parent(victim); in rb_replace_node()
551 *new = *victim; in rb_replace_node()
554 if (victim->rb_left) in rb_replace_node()
555 rb_set_parent(victim->rb_left, new); in rb_replace_node()
556 if (victim->rb_right) in rb_replace_node()
557 rb_set_parent(victim->rb_right, new); in rb_replace_node()
558 __rb_change_child(victim, new, parent, root); in rb_replace_node()
/openbmc/linux/kernel/
H A Daudit_tree.c569 static void prune_tree_chunks(struct audit_tree *victim, bool tagged) in prune_tree_chunks() argument
572 while (!list_empty(&victim->chunks)) { in prune_tree_chunks()
577 p = list_first_entry(&victim->chunks, struct audit_node, list); in prune_tree_chunks()
601 static void prune_one(struct audit_tree *victim) in prune_one() argument
603 prune_tree_chunks(victim, false); in prune_one()
604 put_tree(victim); in prune_one()
766 struct audit_tree *victim; in prune_tree_thread() local
768 victim = list_entry(prune_list.next, in prune_tree_thread()
770 list_del_init(&victim->list); in prune_tree_thread()
774 prune_one(victim); in prune_tree_thread()
[all …]
/openbmc/linux/drivers/mmc/core/
H A Dsdio_cis.c385 struct sdio_func_tuple *tuple, *victim; in sdio_free_common_cis() local
390 victim = tuple; in sdio_free_common_cis()
392 kfree(victim); in sdio_free_common_cis()
420 struct sdio_func_tuple *tuple, *victim; in sdio_free_func_cis() local
425 victim = tuple; in sdio_free_func_cis()
427 kfree(victim); in sdio_free_func_cis()
/openbmc/linux/include/linux/
H A Drbtree.h54 extern void rb_replace_node(struct rb_node *victim, struct rb_node *new,
56 extern void rb_replace_node_rcu(struct rb_node *victim, struct rb_node *new,
131 static inline void rb_replace_node_cached(struct rb_node *victim, in rb_replace_node_cached() argument
135 if (root->rb_leftmost == victim) in rb_replace_node_cached()
137 rb_replace_node(victim, new, &root->rb_root); in rb_replace_node_cached()
H A Dbtree-128.h78 struct btree_head128 *victim, in btree_merge128() argument
81 return btree_merge(&target->h, &victim->h, &btree_geo128, gfp); in btree_merge128()
/openbmc/linux/drivers/firmware/arm_scmi/
H A Dbus.c164 struct scmi_requested_dev *victim, *tmp; in scmi_protocol_device_unrequest() local
166 list_for_each_entry_safe(victim, tmp, phead, node) { in scmi_protocol_device_unrequest()
167 if (!strcmp(victim->id_table->name, id_table->name)) { in scmi_protocol_device_unrequest()
168 list_del(&victim->node); in scmi_protocol_device_unrequest()
173 (void *)victim->id_table); in scmi_protocol_device_unrequest()
174 kfree(victim); in scmi_protocol_device_unrequest()
/openbmc/linux/init/
H A Dinitramfs.c224 static __initdata char *victim; variable
230 victim += n; in eat()
242 collected = victim; in read_into()
266 memcpy(collect, victim, n); in do_collect()
322 while (byte_count && *victim == '\0') in do_reset()
413 if (xwrite(wfile, victim, body_len, &wfile_pos) != body_len) in do_copy()
424 if (xwrite(wfile, victim, byte_count, &wfile_pos) != byte_count) in do_copy()
464 victim = buf; in write_buffer()
/openbmc/linux/fs/erofs/
H A Ddecompressor.c80 struct page *victim; in z_erofs_lz4_prepare_dstpages() local
112 victim = availables[--top]; in z_erofs_lz4_prepare_dstpages()
113 get_page(victim); in z_erofs_lz4_prepare_dstpages()
115 victim = erofs_allocpage(pagepool, in z_erofs_lz4_prepare_dstpages()
117 set_page_private(victim, Z_EROFS_SHORTLIVED_PAGE); in z_erofs_lz4_prepare_dstpages()
119 rq->out[i] = victim; in z_erofs_lz4_prepare_dstpages()
/openbmc/linux/tools/include/linux/
H A Drbtree.h63 extern void rb_replace_node(struct rb_node *victim, struct rb_node *new,
146 static inline void rb_replace_node_cached(struct rb_node *victim, in rb_replace_node_cached() argument
150 if (root->rb_leftmost == victim) in rb_replace_node_cached()
152 rb_replace_node(victim, new, &root->rb_root); in rb_replace_node_cached()
/openbmc/linux/fs/btrfs/
H A Dzstd.c120 struct workspace *victim = container_of(pos, struct workspace, in zstd_reclaim_timer_fn() local
124 if (time_after(victim->last_used, reclaim_threshold)) in zstd_reclaim_timer_fn()
128 if (victim->req_level) in zstd_reclaim_timer_fn()
131 level = victim->level; in zstd_reclaim_timer_fn()
132 list_del(&victim->lru_list); in zstd_reclaim_timer_fn()
133 list_del(&victim->list); in zstd_reclaim_timer_fn()
134 zstd_free_workspace(&victim->list); in zstd_reclaim_timer_fn()
/openbmc/linux/drivers/dax/
H A Dbus.c510 struct device *victim; in delete_store() local
517 victim = device_find_child_by_name(dax_region->dev, buf); in delete_store()
518 if (!victim) in delete_store()
522 device_lock(victim); in delete_store()
523 dev_dax = to_dev_dax(victim); in delete_store()
524 if (victim->driver || dev_dax_size(dev_dax)) in delete_store()
536 if (dax_region->seed == victim) in delete_store()
538 if (dax_region->youngest == victim) in delete_store()
543 device_unlock(victim); in delete_store()
547 devm_release_action(dev, unregister_dev_dax, victim); in delete_store()
[all …]
/openbmc/linux/security/selinux/ss/
H A Dsidtab.c561 struct sidtab_str_cache *cache, *victim = NULL; in sidtab_sid2str_put() local
584 victim = container_of(s->cache_lru_list.prev, in sidtab_sid2str_put()
586 list_del(&victim->lru_member); in sidtab_sid2str_put()
587 rcu_assign_pointer(victim->parent->cache, NULL); in sidtab_sid2str_put()
600 kfree_rcu(victim, rcu_member); in sidtab_sid2str_put()
/openbmc/u-boot/drivers/mtd/ubi/
H A Dfastmap-wl.c36 struct ubi_wl_entry *e, *victim = NULL; in find_anchor_wl_entry() local
41 victim = e; in find_anchor_wl_entry()
46 return victim; in find_anchor_wl_entry()
/openbmc/linux/fs/
H A Ddcache.c1553 struct dentry *victim; member
1598 data->victim = dentry; in select_collect2()
1640 data.victim = NULL; in shrink_dcache_parent()
1642 if (data.victim) { in shrink_dcache_parent()
1644 spin_lock(&data.victim->d_lock); in shrink_dcache_parent()
1645 if (!shrink_lock_dentry(data.victim)) { in shrink_dcache_parent()
1646 spin_unlock(&data.victim->d_lock); in shrink_dcache_parent()
1650 parent = data.victim->d_parent; in shrink_dcache_parent()
1651 if (parent != data.victim) in shrink_dcache_parent()
1653 __dentry_kill(data.victim); in shrink_dcache_parent()
[all …]

123