Home
last modified time | relevance | path

Searched refs:sibling (Results 1 – 25 of 149) sorted by relevance

123456

/linux/tools/lib/
H A Drbtree.c230 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 Drbtree.c230 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 Dresource.c64 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/arch/sparc/kernel/
H A Dpci_psycho.c191 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/arch/x86/kernel/
H A Dsmpboot.c1207 int sibling; in remove_siblinginfo() local
1210 for_each_cpu(sibling, topology_core_cpumask(cpu)) { in remove_siblinginfo()
1211 cpumask_clear_cpu(cpu, topology_core_cpumask(sibling)); in remove_siblinginfo()
1216 cpu_data(sibling).booted_cores--; in remove_siblinginfo()
1219 for_each_cpu(sibling, topology_die_cpumask(cpu)) in remove_siblinginfo()
1220 cpumask_clear_cpu(cpu, topology_die_cpumask(sibling)); in remove_siblinginfo()
1222 for_each_cpu(sibling, topology_sibling_cpumask(cpu)) { in remove_siblinginfo()
1223 cpumask_clear_cpu(cpu, topology_sibling_cpumask(sibling)); in remove_siblinginfo()
1224 if (cpumask_weight(topology_sibling_cpumask(sibling)) == 1) in remove_siblinginfo()
1225 cpu_data(sibling).smt_active = false; in remove_siblinginfo()
[all …]
/linux/drivers/base/
H A Dcacheinfo.c455 unsigned int sibling, index, sib_index; in cache_shared_cpu_map_remove() local
459 for_each_cpu(sibling, &this_leaf->shared_cpu_map) { in cache_shared_cpu_map_remove()
460 if (sibling == cpu || !per_cpu_cacheinfo(sibling)) in cache_shared_cpu_map_remove()
463 for (sib_index = 0; sib_index < cache_leaves(sibling); sib_index++) { in cache_shared_cpu_map_remove()
464 sib_leaf = per_cpu_cacheinfo_idx(sibling, sib_index); in cache_shared_cpu_map_remove()
477 cpumask_clear_cpu(sibling, &this_leaf->shared_cpu_map); in cache_shared_cpu_map_remove()
937 unsigned int sibling; in cpu_map_shared_cache() local
953 for_each_cpu(sibling, &llc->shared_cpu_map) { in cpu_map_shared_cache()
954 if (sibling == cpu || !last_level_cache_is_valid(sibling)) in cpu_map_shared_cache()
956 sib_llc = per_cpu_cacheinfo_idx(sibling, cache_leaves(sibling) - 1); in cpu_map_shared_cache()
H A Darch_topology.c812 int sibling; in remove_cpu_topology() local
814 for_each_cpu(sibling, topology_core_cpumask(cpu)) in remove_cpu_topology()
815 cpumask_clear_cpu(cpu, topology_core_cpumask(sibling)); in remove_cpu_topology()
816 for_each_cpu(sibling, topology_sibling_cpumask(cpu)) in remove_cpu_topology()
817 cpumask_clear_cpu(cpu, topology_sibling_cpumask(sibling)); in remove_cpu_topology()
818 for_each_cpu(sibling, topology_cluster_cpumask(cpu)) in remove_cpu_topology()
819 cpumask_clear_cpu(cpu, topology_cluster_cpumask(sibling)); in remove_cpu_topology()
820 for_each_cpu(sibling, topology_llc_cpumask(cpu)) in remove_cpu_topology()
821 cpumask_clear_cpu(cpu, topology_llc_cpumask(sibling)); in remove_cpu_topology()
/linux/tools/testing/selftests/seccomp/
H A Dseccomp_bpf.c2558 struct tsync_sibling sibling[TSYNC_SIBLINGS]; in FIXTURE() local
2580 memset(&self->sibling, 0, sizeof(self->sibling)); in FIXTURE_SETUP()
2595 self->sibling[0].tid = 0; in FIXTURE_SETUP()
2596 self->sibling[0].cond = &self->cond; in FIXTURE_SETUP()
2597 self->sibling[0].started = &self->started; in FIXTURE_SETUP()
2598 self->sibling[0].mutex = &self->mutex; in FIXTURE_SETUP()
2599 self->sibling[0].diverge = 0; in FIXTURE_SETUP()
2600 self->sibling[0].num_waits = 1; in FIXTURE_SETUP()
2601 self->sibling[0].prog = &self->root_prog; in FIXTURE_SETUP()
2602 self->sibling[0].metadata = _metadata; in FIXTURE_SETUP()
[all …]
/linux/drivers/pci/hotplug/
H A Dacpiphp_glue.c161 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/Documentation/admin-guide/hw-vuln/
H A Dcross-thread-rsb.rst8 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 Dcore-scheduling.rst105 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/sh/clk/
H A Dcore.c217 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/kernel/sched/
H A Dtopology.c915 struct sched_domain *sibling; in build_balance_mask() local
921 sibling = *per_cpu_ptr(sdd->sd, i); in build_balance_mask()
928 if (!sibling->child) in build_balance_mask()
932 if (!cpumask_equal(sg_span, sched_domain_span(sibling->child))) in build_balance_mask()
1000 find_descended_sibling(struct sched_domain *sd, struct sched_domain *sibling) in find_descended_sibling() argument
1006 while (sibling->child && in find_descended_sibling()
1007 !cpumask_subset(sched_domain_span(sibling->child), in find_descended_sibling()
1009 sibling = sibling->child; in find_descended_sibling()
1016 while (sibling->child && in find_descended_sibling()
1017 cpumask_equal(sched_domain_span(sibling->child), in find_descended_sibling()
[all …]
/linux/drivers/perf/hisilicon/
H A Dhisi_pcie_pmu.c336 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 Dnf_conntrack_pptp.c133 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/arch/x86/kernel/cpu/
H A Dcacheinfo.c493 int i, sibling; in __cache_amd_cpumap_setup() local
506 for_each_cpu(sibling, cpu_llc_shared_mask(cpu)) { in __cache_amd_cpumap_setup()
507 if (!cpu_online(sibling)) in __cache_amd_cpumap_setup()
509 cpumask_set_cpu(sibling, &ci->shared_cpu_map); in __cache_amd_cpumap_setup()
531 for_each_online_cpu(sibling) { in __cache_amd_cpumap_setup()
532 apicid = cpu_data(sibling).topo.apicid; in __cache_amd_cpumap_setup()
535 cpumask_set_cpu(sibling, &ci->shared_cpu_map); in __cache_amd_cpumap_setup()
/linux/drivers/perf/
H A Ddwc_pcie_pmu.c403 struct perf_event *sibling, *leader = event->group_leader; in dwc_pcie_pmu_validate_group() local
415 for_each_sibling_event(sibling, leader) { in dwc_pcie_pmu_validate_group()
416 type = DWC_PCIE_EVENT_TYPE(sibling); in dwc_pcie_pmu_validate_group()
425 if (dwc_pcie_pmu_validate_add_lane_event(sibling, val_lane_events)) in dwc_pcie_pmu_validate_group()
436 struct perf_event *sibling; in dwc_pcie_pmu_event_init() local
450 for_each_sibling_event(sibling, event->group_leader) { in dwc_pcie_pmu_event_init()
451 if (sibling->pmu != event->pmu && !is_software_event(sibling)) in dwc_pcie_pmu_event_init()
/linux/drivers/acpi/
H A Ddock.c36 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/net/ipv6/
H A Dip6_fib.c547 * last sibling of this route (no need to dump the in fib6_dump_node()
548 * sibling routes again) in fib6_dump_node()
1153 * add is sibling to this route, increment our counter in fib6_add_rt2node()
1192 struct fib6_info *sibling, *temp_sibling; in fib6_add_rt2node()
1195 sibling = leaf; in fib6_add_rt2node()
1197 while (sibling) { in fib6_add_rt2node()
1198 if (sibling->fib6_metric == rt->fib6_metric && in fib6_add_rt2node()
1199 rt6_qualify_for_ecmp(sibling)) { in fib6_add_rt2node()
1201 &sibling->fib6_siblings); in fib6_add_rt2node()
1204 sibling in fib6_add_rt2node()
1188 struct fib6_info *sibling, *temp_sibling; fib6_add_rt2node() local
1248 struct fib6_info *sibling, *next_sibling; fib6_add_rt2node() local
1998 struct fib6_info *sibling, *next_sibling; fib6_del_route() local
[all...]
/linux/arch/powerpc/kernel/
H A Dpci_dn.c430 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/drivers/usb/serial/
H A Dusb-serial.c129 if (serial->sibling) in usb_serial_claim_interface()
139 serial->sibling = intf; in usb_serial_claim_interface()
148 struct usb_interface *sibling; in release_sibling() local
150 if (!serial->sibling) in release_sibling()
153 if (intf == serial->sibling) in release_sibling()
154 sibling = serial->interface; in release_sibling()
156 sibling = serial->sibling; in release_sibling()
158 usb_set_intfdata(sibling, NULL); in release_sibling()
159 usb_driver_release_interface(driver, sibling); in release_sibling()
1015 if (serial->sibling) in usb_serial_probe()
[all …]
/linux/drivers/of/
H A Ddynamic.c225 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/powerpc/platforms/pseries/
H A Ddlpar.c119 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/arch/mips/pci/
H A Dpci-rc32434.c56 .sibling = NULL,
66 .sibling = NULL,
/linux/drivers/clk/renesas/
H A Drzg2l-cpg.c1219 struct mod_clock *sibling; member
1381 if (clock->sibling) { in rzg2l_mod_clock_enable()
1387 enabled = clock->sibling->enabled; in rzg2l_mod_clock_enable()
1401 if (clock->sibling) { in rzg2l_mod_clock_disable()
1407 enabled = clock->sibling->enabled; in rzg2l_mod_clock_disable()
1429 if (clock->sibling) in rzg2l_mod_clock_is_enabled()
1611 struct mod_clock *sibling; in rzg2l_cpg_register_mod_clk() local
1614 sibling = rzg2l_mod_clock_get_sibling(clock, priv); in rzg2l_cpg_register_mod_clk()
1615 if (sibling) { in rzg2l_cpg_register_mod_clk()
1616 clock->sibling = sibling; in rzg2l_cpg_register_mod_clk()
[all …]

123456