/linux/tools/lib/ |
H A D | rbtree.c | 230 struct rb_node *node = NULL, *sibling, *tmp1, *tmp2; in ____rb_erase_color() local 240 sibling = parent->rb_right; in ____rb_erase_color() 241 if (node != sibling) { /* node == parent->rb_left */ in ____rb_erase_color() 242 if (rb_is_red(sibling)) { in ____rb_erase_color() 252 tmp1 = sibling->rb_left; in ____rb_erase_color() 254 WRITE_ONCE(sibling->rb_left, parent); in ____rb_erase_color() 256 __rb_rotate_set_parents(parent, sibling, root, in ____rb_erase_color() 258 augment_rotate(parent, sibling); in ____rb_erase_color() 259 sibling = tmp1; in ____rb_erase_color() 261 tmp1 = sibling in ____rb_erase_color() [all...] |
/linux/lib/ |
H A D | rbtree.c | 230 struct rb_node *node = NULL, *sibling, *tmp1, *tmp2; in ____rb_erase_color() local 240 sibling = parent->rb_right; in ____rb_erase_color() 241 if (node != sibling) { /* node == parent->rb_left */ in ____rb_erase_color() 242 if (rb_is_red(sibling)) { in ____rb_erase_color() 252 tmp1 = sibling->rb_left; in ____rb_erase_color() 254 WRITE_ONCE(sibling->rb_left, parent); in ____rb_erase_color() 256 __rb_rotate_set_parents(parent, sibling, root, in ____rb_erase_color() 258 augment_rotate(parent, sibling); in ____rb_erase_color() 259 sibling = tmp1; in ____rb_erase_color() 261 tmp1 = sibling->rb_right; in ____rb_erase_color() [all …]
|
/linux/kernel/ |
H A D | resource.c | 64 while (!p->sibling && p->parent) { in next_resource() 69 return p->sibling; in next_resource() 197 new->sibling = tmp; in __request_resource() 202 p = &tmp->sibling; in __request_resource() 220 *p = tmp->sibling; in __release_resource() 222 for (chd = tmp->child;; chd = chd->sibling) { in __release_resource() 224 if (!(chd->sibling)) in __release_resource() 228 chd->sibling = tmp->sibling; in __release_resource() 233 p = &tmp->sibling; in __release_resource() 247 p = p->sibling; in __release_child_resources() [all …]
|
/linux/drivers/media/platform/amphion/ |
H A D | vpu_helpers.c | 66 const struct vpu_format *sibling; in vpu_helper_find_sibling() local 69 if (!fmt || !fmt->sibling) in vpu_helper_find_sibling() 72 sibling = vpu_helper_find_format(inst, type, fmt->sibling); in vpu_helper_find_sibling() 73 if (!sibling || sibling->sibling != fmt->pixfmt || in vpu_helper_find_sibling() 74 sibling->comp_planes != fmt->comp_planes) in vpu_helper_find_sibling() 77 return sibling; in vpu_helper_find_sibling() 82 const struct vpu_format *sibling; in vpu_helper_match_format() local 87 sibling = vpu_helper_find_sibling(inst, type, fmta); in vpu_helper_match_format() 88 if (sibling && sibling->pixfmt == fmtb) in vpu_helper_match_format()
|
/linux/arch/s390/kernel/ |
H A D | guarded_storage.c | 96 struct task_struct *sibling; in gs_broadcast() local 99 for_each_thread(current, sibling) { in gs_broadcast() 100 if (!sibling->thread.gs_bc_cb) in gs_broadcast() 102 if (test_and_set_tsk_thread_flag(sibling, TIF_GUARDED_STORAGE)) in gs_broadcast() 103 kick_process(sibling); in gs_broadcast()
|
/linux/arch/sparc/kernel/ |
H A D | pci_psycho.c | 191 if (pbm->sibling) in psycho_ue_intr() 192 psycho_check_iommu_error(pbm->sibling, afsr, afar, UE_ERR); in psycho_ue_intr() 528 pbm->sibling = psycho_find_sibling(upa_portid); in psycho_probe() 529 if (pbm->sibling) { in psycho_probe() 530 iommu = pbm->sibling->iommu; in psycho_probe() 565 if (!pbm->sibling) { in psycho_probe() 581 if (pbm->sibling) in psycho_probe() 582 pbm->sibling->sibling = pbm; in psycho_probe() 589 if (!pbm->sibling) in psycho_probe()
|
/linux/drivers/base/ |
H A D | cacheinfo.c | 405 unsigned int sibling, index, sib_index; in cache_shared_cpu_map_remove() local 409 for_each_cpu(sibling, &this_leaf->shared_cpu_map) { in cache_shared_cpu_map_remove() 410 if (sibling == cpu || !per_cpu_cacheinfo(sibling)) in cache_shared_cpu_map_remove() 413 for (sib_index = 0; sib_index < cache_leaves(sibling); sib_index++) { in cache_shared_cpu_map_remove() 414 sib_leaf = per_cpu_cacheinfo_idx(sibling, sib_index); in cache_shared_cpu_map_remove() 427 cpumask_clear_cpu(sibling, &this_leaf->shared_cpu_map); in cache_shared_cpu_map_remove() 887 unsigned int sibling; in cpu_map_shared_cache() local 903 for_each_cpu(sibling, &llc->shared_cpu_map) { in cpu_map_shared_cache() 904 if (sibling == cpu || !last_level_cache_is_valid(sibling)) in cpu_map_shared_cache() 906 sib_llc = per_cpu_cacheinfo_idx(sibling, cache_leaves(sibling) - 1); in cpu_map_shared_cache()
|
H A D | arch_topology.c | 844 int sibling; in remove_cpu_topology() local 846 for_each_cpu(sibling, topology_core_cpumask(cpu)) in remove_cpu_topology() 847 cpumask_clear_cpu(cpu, topology_core_cpumask(sibling)); in remove_cpu_topology() 848 for_each_cpu(sibling, topology_sibling_cpumask(cpu)) in remove_cpu_topology() 849 cpumask_clear_cpu(cpu, topology_sibling_cpumask(sibling)); in remove_cpu_topology() 850 for_each_cpu(sibling, topology_cluster_cpumask(cpu)) in remove_cpu_topology() 851 cpumask_clear_cpu(cpu, topology_cluster_cpumask(sibling)); in remove_cpu_topology() 852 for_each_cpu(sibling, topology_llc_cpumask(cpu)) in remove_cpu_topology() 853 cpumask_clear_cpu(cpu, topology_llc_cpumask(sibling)); in remove_cpu_topology()
|
/linux/tools/testing/selftests/seccomp/ |
H A D | seccomp_bpf.c | 2549 struct tsync_sibling sibling[TSYNC_SIBLINGS]; in FIXTURE() local 2571 memset(&self->sibling, 0, sizeof(self->sibling)); in FIXTURE_SETUP() 2586 self->sibling[0].tid = 0; in FIXTURE_SETUP() 2587 self->sibling[0].cond = &self->cond; in FIXTURE_SETUP() 2588 self->sibling[0].started = &self->started; in FIXTURE_SETUP() 2589 self->sibling[0].mutex = &self->mutex; in FIXTURE_SETUP() 2590 self->sibling[0].diverge = 0; in FIXTURE_SETUP() 2591 self->sibling[0].num_waits = 1; in FIXTURE_SETUP() 2592 self->sibling[0].prog = &self->root_prog; in FIXTURE_SETUP() 2593 self->sibling[0].metadata = _metadata; in FIXTURE_SETUP() [all …]
|
/linux/drivers/gpu/drm/i915/gt/ |
H A D | intel_execlists_submission.c | 3627 struct intel_engine_cs *sibling = ve->siblings[n]; in rcu_virtual_context_destroy() local 3628 struct rb_node *node = &ve->nodes[sibling->id].rb; in rcu_virtual_context_destroy() 3633 spin_lock_irq(&sibling->sched_engine->lock); in rcu_virtual_context_destroy() 3637 rb_erase_cached(node, &sibling->execlists.virtual); in rcu_virtual_context_destroy() 3639 spin_unlock_irq(&sibling->sched_engine->lock); in rcu_virtual_context_destroy() 3746 virtual_get_sibling(struct intel_engine_cs *engine, unsigned int sibling) in virtual_get_sibling() argument 3750 if (sibling >= ve->num_siblings) in virtual_get_sibling() 3753 return ve->siblings[sibling]; in virtual_get_sibling() 3817 struct intel_engine_cs *sibling = READ_ONCE(ve->siblings[n]); in virtual_submission_tasklet() local 3818 struct ve_node * const node = &ve->nodes[sibling->id]; in virtual_submission_tasklet() [all …]
|
/linux/drivers/powercap/ |
H A D | dtpm.c | 72 list_for_each_entry(child, &dtpm->children, sibling) { in __get_power_uw() 91 list_for_each_entry(child, &dtpm->children, sibling) { in __dtpm_rebalance_weight() 178 list_del(&dtpm->sibling); in dtpm_release_zone() 231 list_for_each_entry(child, &dtpm->children, sibling) { in __set_power_limit_uw() 323 INIT_LIST_HEAD(&dtpm->sibling); in dtpm_init() 398 list_add_tail(&dtpm->sibling, &parent->children); in dtpm_register() 622 list_for_each_entry_safe(child, aux, &dtpm->children, sibling) in __dtpm_destroy_hierarchy()
|
/linux/drivers/pci/hotplug/ |
H A D | acpiphp_glue.c | 161 list_for_each_entry_safe(func, tmp, &slot->funcs, sibling) in free_bridge() 330 list_add_tail(&newfunc->sibling, &slot->funcs); in acpiphp_add_context() 345 list_for_each_entry(func, &slot->funcs, sibling) { in cleanup_bridge() 398 list_for_each_entry(func, &slot->funcs, sibling) { in acpiphp_set_acpi_region() 422 list_for_each_entry(func, &slot->funcs, sibling) { in check_hotplug_bridge() 434 list_for_each_entry(func, &slot->funcs, sibling) { in acpiphp_rescan_slot() 536 list_for_each_entry(func, &slot->funcs, sibling) { in enable_slot() 569 list_for_each_entry(func, &slot->funcs, sibling) in disable_slot() 605 list_for_each_entry(func, &slot->funcs, sibling) { in get_slot_status() 1014 list_for_each_entry(func, &slot->funcs, sibling) in acpiphp_disable_and_eject_slot()
|
/linux/drivers/sh/clk/ |
H A D | core.c | 217 list_del_init(&child->sibling); in clk_reparent() 219 list_add(&child->sibling, &parent->children); in clk_reparent() 230 list_for_each_entry(clkp, &tclk->children, sibling) { in propagate_rate() 321 list_for_each_entry(clkp, &root_clks, sibling) { in recalculate_root_clocks() 434 list_add(&clk->sibling, &clk->parent->children); in clk_register() 436 list_add(&clk->sibling, &root_clks); in clk_register() 455 list_del(&clk->sibling); in clk_unregister()
|
/linux/Documentation/admin-guide/hw-vuln/ |
H A D | cross-thread-rsb.rst | 8 predictions vulnerability. When running in SMT mode and one sibling thread 9 transitions out of C0 state, the other sibling thread could use return target 10 predictions from the sibling thread that transitioned out of C0. 16 being consumed by the sibling thread. 52 used by RET predictions in the sibling thread following a 1T/2T switch. In
|
H A D | core-scheduling.rst | 105 During a schedule() event on any sibling of a core, the highest priority task on 106 the sibling's core is picked and assigned to the sibling calling schedule(), if 107 the sibling has the task enqueued. For rest of the siblings in the core, 114 switch to the new task immediately. If an idle task is selected for a sibling, 115 then the sibling is considered to be in a `forced idle` state. I.e., it may 127 task. If a sibling does not have a trusted task to run, it will be forced idle 131 the sibling to force it into idle. This results in 4 cases which need to be 189 sibling. Such attacks are possible for any combination of sibling CPU modes 212 sibling hyperthreads from one another. Prototypes of mitigations have been posted
|
/linux/drivers/perf/hisilicon/ |
H A D | hisi_pcie_pmu.c | 336 struct perf_event *sibling, *leader = event->group_leader; in hisi_pcie_pmu_validate_event_group() local 350 for_each_sibling_event(sibling, event->group_leader) { in hisi_pcie_pmu_validate_event_group() 351 if (is_software_event(sibling)) in hisi_pcie_pmu_validate_event_group() 354 if (sibling->pmu != event->pmu) in hisi_pcie_pmu_validate_event_group() 362 if (hisi_pcie_pmu_cmp_event(event_group[num], sibling)) in hisi_pcie_pmu_validate_event_group() 375 event_group[counters++] = sibling; in hisi_pcie_pmu_validate_event_group() 426 struct perf_event *sibling; in hisi_pcie_pmu_get_event_idx() local 430 sibling = pcie_pmu->hw_events[idx]; in hisi_pcie_pmu_get_event_idx() 431 if (!sibling) { in hisi_pcie_pmu_get_event_idx() 438 if (hisi_pcie_pmu_cmp_event(sibling, event) && in hisi_pcie_pmu_get_event_idx() [all …]
|
/linux/net/netfilter/ |
H A D | nf_conntrack_pptp.c | 133 struct nf_conn *sibling; in destroy_sibling_or_exp() local 141 sibling = nf_ct_tuplehash_to_ctrack(h); in destroy_sibling_or_exp() 142 pr_debug("setting timeout of conntrack %p to 0\n", sibling); in destroy_sibling_or_exp() 143 sibling->proto.gre.timeout = 0; in destroy_sibling_or_exp() 144 sibling->proto.gre.stream_timeout = 0; in destroy_sibling_or_exp() 145 nf_ct_kill(sibling); in destroy_sibling_or_exp() 146 nf_ct_put(sibling); in destroy_sibling_or_exp()
|
/linux/drivers/acpi/ |
H A D | dock.c | 36 struct list_head sibling; member 120 list_for_each_entry(ds, &dock_stations, sibling) in find_dock_station() 178 list_for_each_entry(dock_station, &dock_stations, sibling) in is_dock_device() 599 INIT_LIST_HEAD(&dock_station->sibling); in acpi_dock_add() 622 list_add(&dock_station->sibling, &dock_stations); in acpi_dock_add()
|
/linux/arch/powerpc/kernel/ |
H A D | pci_dn.c | 430 else if (dn->sibling) in pci_traverse_device_nodes() 432 nextdn = dn->sibling; in pci_traverse_device_nodes() 439 } while (dn->sibling == NULL); in pci_traverse_device_nodes() 440 nextdn = dn->sibling; in pci_traverse_device_nodes()
|
/linux/arch/arm/mm/ |
H A D | cache-l2x0-pmu.c | 276 struct perf_event *sibling; in l2x0_pmu_group_is_valid() local 284 for_each_sibling_event(sibling, leader) { in l2x0_pmu_group_is_valid() 285 if (sibling->pmu == pmu) in l2x0_pmu_group_is_valid() 287 else if (!is_software_event(sibling)) in l2x0_pmu_group_is_valid()
|
/linux/arch/powerpc/platforms/pseries/ |
H A D | dlpar.c | 119 if (dn->sibling) in dlpar_free_cc_nodes() 120 dlpar_free_cc_nodes(dn->sibling); in dlpar_free_cc_nodes() 174 last_dn->sibling = dn; in dlpar_configure_connector() 274 if (!rc && dn->sibling) in dlpar_changeset_attach_cc_nodes() 275 rc = dlpar_changeset_attach_cc_nodes(ocs, dn->sibling); in dlpar_changeset_attach_cc_nodes()
|
/linux/drivers/of/ |
H A D | dynamic.c | 225 np->sibling = np->parent->child; in __of_attach_node() 269 parent->child = np->sibling; in __of_detach_node() 273 prevsib->sibling != np; in __of_detach_node() 274 prevsib = prevsib->sibling) in __of_detach_node() 276 prevsib->sibling = np->sibling; in __of_detach_node()
|
/linux/arch/x86/kernel/cpu/ |
H A D | cacheinfo.c | 887 int i, sibling; in __cache_amd_cpumap_setup() local 899 for_each_cpu(sibling, cpu_llc_shared_mask(cpu)) { in __cache_amd_cpumap_setup() 900 if (!cpu_online(sibling)) in __cache_amd_cpumap_setup() 902 cpumask_set_cpu(sibling, in __cache_amd_cpumap_setup() 925 for_each_online_cpu(sibling) { in __cache_amd_cpumap_setup() 926 apicid = cpu_data(sibling).topo.apicid; in __cache_amd_cpumap_setup() 929 cpumask_set_cpu(sibling, in __cache_amd_cpumap_setup()
|
/linux/arch/x86/kernel/cpu/microcode/ |
H A D | core.c | 388 unsigned int sibling; in __load_primary() local 412 for_each_cpu(sibling, secondaries) { in __load_primary() 413 if (sibling != cpu) in __load_primary() 414 per_cpu(ucode_ctrl.ctrl, sibling) = ctrl; in __load_primary()
|
/linux/arch/mips/pci/ |
H A D | pci-rc32434.c | 56 .sibling = NULL, 66 .sibling = NULL,
|