| /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/arch/s390/kernel/ |
| H A D | guarded_storage.c | 97 struct task_struct *sibling; in gs_broadcast() local 100 for_each_thread(current, sibling) { in gs_broadcast() 101 if (!sibling->thread.gs_bc_cb) in gs_broadcast() 103 if (test_and_set_tsk_thread_flag(sibling, TIF_GUARDED_STORAGE)) in gs_broadcast() 104 kick_process(sibling); in gs_broadcast()
|
| H A D | topology.c | 263 int cpu, sibling, pkg_first, smt_first, id; in update_cpu_masks() local 287 for_each_cpu(sibling, &topo->core_mask) { in update_cpu_masks() 288 topo_sibling = &cpu_topology[sibling]; in update_cpu_masks() 290 if (sibling == smt_first) { in update_cpu_masks() 292 hd_add_core(sibling); in update_cpu_masks()
|
| /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 | 496 unsigned int sibling, index, sib_index; in cache_shared_cpu_map_remove() local 500 for_each_cpu(sibling, &this_leaf->shared_cpu_map) { in cache_shared_cpu_map_remove() 501 if (sibling == cpu || !per_cpu_cacheinfo(sibling)) in cache_shared_cpu_map_remove() 504 for (sib_index = 0; sib_index < cache_leaves(sibling); sib_index++) { in cache_shared_cpu_map_remove() 505 sib_leaf = per_cpu_cacheinfo_idx(sibling, sib_index); in cache_shared_cpu_map_remove() 518 cpumask_clear_cpu(sibling, &this_leaf->shared_cpu_map); in cache_shared_cpu_map_remove() 979 unsigned int sibling; in cpu_map_shared_cache() local 995 for_each_cpu(sibling, &llc->shared_cpu_map) { in cpu_map_shared_cache() 996 if (sibling == cpu || !last_level_cache_is_valid(sibling)) in cpu_map_shared_cache() 998 sib_llc = per_cpu_cacheinfo_idx(sibling, cache_leaves(sibling) - 1); in cpu_map_shared_cache()
|
| H A D | arch_topology.c | 752 /* update core and thread sibling masks */ in update_siblings_masks() 817 int sibling; in remove_cpu_topology() 819 for_each_cpu(sibling, topology_core_cpumask(cpu)) in remove_cpu_topology() local 820 cpumask_clear_cpu(cpu, topology_core_cpumask(sibling)); in remove_cpu_topology() 821 for_each_cpu(sibling, topology_sibling_cpumask(cpu)) in remove_cpu_topology() 822 cpumask_clear_cpu(cpu, topology_sibling_cpumask(sibling)); in remove_cpu_topology() 823 for_each_cpu(sibling, topology_cluster_cpumask(cpu)) in remove_cpu_topology() 824 cpumask_clear_cpu(cpu, topology_cluster_cpumask(sibling)); in remove_cpu_topology() 825 for_each_cpu(sibling, topology_llc_cpumask(cpu)) in remove_cpu_topology() 826 cpumask_clear_cpu(cpu, topology_llc_cpumask(sibling)); in remove_cpu_topology() [all...] |
| /linux/tools/testing/selftests/seccomp/ |
| H A D | seccomp_bpf.c | 2594 struct tsync_sibling sibling[TSYNC_SIBLINGS]; in FIXTURE() 2616 memset(&self->sibling, 0, sizeof(self->sibling)); in FIXTURE_SETUP() 2631 self->sibling[0].tid = 0; in FIXTURE_SETUP() 2632 self->sibling[0].cond = &self->cond; in FIXTURE_SETUP() 2633 self->sibling[0].started = &self->started; in FIXTURE_SETUP() 2634 self->sibling[0].mutex = &self->mutex; in FIXTURE_SETUP() 2635 self->sibling[0].diverge = 0; in FIXTURE_SETUP() 2636 self->sibling[0].num_waits = 1; in FIXTURE_SETUP() 2637 self->sibling[ in FIXTURE_SETUP() 2590 struct tsync_sibling sibling[TSYNC_SIBLINGS]; FIXTURE() local 2702 tsync_start_sibling(struct tsync_sibling * sibling) tsync_start_sibling() argument 5049 pthread_t sibling; TEST() local [all...] |
| /linux/drivers/gpu/drm/i915/gt/ |
| H A D | intel_execlists_submission.c | 563 * After this point, the rq may be transferred to a new sibling, so in kick_siblings() 1417 goto unlock; /* lost the race to a sibling */ in execlists_dequeue() 1430 return; /* leave this for another sibling */ in execlists_dequeue() 3620 * the rb_node into a sibling. in rcu_virtual_context_destroy() 3626 struct intel_engine_cs *sibling = ve->siblings[n]; in rcu_virtual_context_destroy() 3627 struct rb_node *node = &ve->nodes[sibling->id].rb; in rcu_virtual_context_destroy() 3632 spin_lock_irq(&sibling->sched_engine->lock); in rcu_virtual_context_destroy() 3636 rb_erase_cached(node, &sibling->execlists.virtual); in rcu_virtual_context_destroy() 3638 spin_unlock_irq(&sibling->sched_engine->lock); in rcu_virtual_context_destroy() 3681 * Pick a random sibling o in virtual_context_destroy() 3633 struct intel_engine_cs *sibling = ve->siblings[n]; rcu_virtual_context_destroy() local 3752 virtual_get_sibling(struct intel_engine_cs * engine,unsigned int sibling) virtual_get_sibling() argument 3823 struct intel_engine_cs *sibling = READ_ONCE(ve->siblings[n]); virtual_submission_tasklet() local 3992 struct intel_engine_cs *sibling = siblings[n]; execlists_create_virtual() local [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() 608 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/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/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/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, even in hisi_pcie_pmu_get_event_idx() [all...] |
| /linux/drivers/perf/ |
| H A D | qcom_l2_pmu.c | 442 struct perf_event *sibling; in l2_cache_event_init() local 479 for_each_sibling_event(sibling, event->group_leader) { in l2_cache_event_init() 480 if (sibling->pmu != event->pmu && in l2_cache_event_init() 481 !is_software_event(sibling)) { in l2_cache_event_init() 516 for_each_sibling_event(sibling, event->group_leader) { in l2_cache_event_init() 517 if ((sibling != event) && in l2_cache_event_init() 518 !is_software_event(sibling) && in l2_cache_event_init() 519 (L2_EVT_GROUP(sibling->attr.config) == in l2_cache_event_init() 523 sibling->attr.config, in l2_cache_event_init()
|
| H A D | dwc_pcie_pmu.c | 427 struct perf_event *sibling, *leader = event->group_leader; in dwc_pcie_pmu_validate_group() local 439 for_each_sibling_event(sibling, leader) { in dwc_pcie_pmu_validate_group() 440 type = DWC_PCIE_EVENT_TYPE(sibling); in dwc_pcie_pmu_validate_group() 449 if (dwc_pcie_pmu_validate_add_lane_event(sibling, val_lane_events)) in dwc_pcie_pmu_validate_group() 480 struct perf_event *sibling; in dwc_pcie_pmu_event_init() local 494 for_each_sibling_event(sibling, event->group_leader) { in dwc_pcie_pmu_event_init() 495 if (sibling->pmu != event->pmu && !is_software_event(sibling)) in dwc_pcie_pmu_event_init()
|
| H A D | marvell_pem_pmu.c | 193 struct perf_event *sibling; in pem_perf_event_init() local 214 for_each_sibling_event(sibling, event->group_leader) { in pem_perf_event_init() 215 if (sibling->pmu != event->pmu && in pem_perf_event_init() 216 !is_software_event(sibling)) in pem_perf_event_init()
|
| H A D | fsl_imx8_ddr_perf.c | 444 struct perf_event *sibling; in ddr_perf_event_init() local 469 for_each_sibling_event(sibling, event->group_leader) { in ddr_perf_event_init() 470 if (!ddr_perf_filters_compatible(event, sibling)) in ddr_perf_event_init() 475 for_each_sibling_event(sibling, event->group_leader) { in ddr_perf_event_init() 476 if (sibling->pmu != event->pmu && in ddr_perf_event_init() 477 !is_software_event(sibling)) in ddr_perf_event_init()
|
| /linux/kernel/sched/ |
| H A D | topology.c | 1025 * sibling on each online event corrects this once the full in sched_update_llc_bytes() 1224 struct sched_domain *sibling; in build_balance_mask() local 1230 sibling = *per_cpu_ptr(sdd->sd, i); in build_balance_mask() 1237 if (!sibling->child) in build_balance_mask() 1241 if (!cpumask_equal(sg_span, sched_domain_span(sibling->child))) in build_balance_mask() 1309 find_descended_sibling(struct sched_domain *sd, struct sched_domain *sibling) in find_descended_sibling() argument 1315 while (sibling->child && in find_descended_sibling() 1316 !cpumask_subset(sched_domain_span(sibling->child), in find_descended_sibling() 1318 sibling = sibling in find_descended_sibling() 1340 struct sched_domain *sibling; build_overlap_sched_groups() local [all...] |
| /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() 608 INIT_LIST_HEAD(&dock_station->sibling); in acpi_dock_add() 631 list_add(&dock_station->sibling, &dock_stations); in acpi_dock_add()
|
| /linux/net/ipv6/ |
| H A D | ip6_fib.c | 584 * last sibling of this route (no need to dump the 585 * sibling routes again) in fib6_dump_table() 1197 * add is sibling to this route, increment our counter in fib6_add_rt2node() 1236 struct fib6_info *sibling, *temp_sibling; in fib6_add_rt2node() 1239 sibling = leaf; in fib6_add_rt2node() 1241 while (sibling) { in fib6_add_rt2node() 1242 if (sibling->fib6_metric == rt->fib6_metric && in fib6_add_rt2node() 1243 rt6_qualify_for_ecmp(sibling)) { in fib6_add_rt2node() 1245 &sibling->fib6_siblings); in fib6_add_rt2node() 1248 sibling in fib6_add_rt2node() 1202 struct fib6_info *sibling, *temp_sibling; fib6_add_rt2node() local 1262 struct fib6_info *sibling, *next_sibling; fib6_add_rt2node() local 2006 struct fib6_info *sibling, *next_sibling; fib6_del_route() local [all...] |
| /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/drivers/usb/serial/ |
| H A D | usb-serial.c | 126 if (serial->sibling) in usb_serial_claim_interface() 136 serial->sibling = intf; in usb_serial_claim_interface() 145 struct usb_interface *sibling; in release_sibling() local 147 if (!serial->sibling) in release_sibling() 150 if (intf == serial->sibling) in release_sibling() 151 sibling = serial->interface; in release_sibling() 153 sibling = serial->sibling; in release_sibling() 155 usb_set_intfdata(sibling, NULL); in release_sibling() 156 usb_driver_release_interface(driver, sibling); in release_sibling() 1066 if (serial->sibling) in usb_serial_probe() [all …]
|
| /linux/kernel/cgroup/ |
| H A D | cpuset.c | 205 * following cpumasks of sibling cpusets will be removed from its 704 * @sibling: a sibling cpuset to be checked against in cpusets_are_exclusive() 714 * - New exclusive_cpus cannot be a superset of a sibling's cpus_allowed. 716 static inline bool cpus_excl_conflict(struct cpuset *trial, struct cpuset *sibling, 720 return cpuset1_cpus_excl_conflict(trial, sibling); 722 /* The cpus_allowed of a sibling cpuset cannot be a subset of the new exclusive_cpus */ 723 if (xcpus_changed && !cpumask_empty(sibling->cpus_allowed) && 724 cpumask_subset(sibling->cpus_allowed, trial->exclusive_cpus)) 728 return cpumask_intersects(trial->exclusive_cpus, sibling in cpus_excl_conflict() 725 cpus_excl_conflict(struct cpuset * trial,struct cpuset * sibling,bool xcpus_changed) cpus_excl_conflict() argument 1495 struct cpuset *sibling; rm_siblings_excl_cpus() local 2365 struct cpuset *sibling; update_sibling_cpumasks() local [all...] |