/openbmc/linux/drivers/s390/crypto/ |
H A D | zcrypt_queue.c | 45 int online = aq->config && zq->online ? 1 : 0; in online_show() local 47 return sysfs_emit(buf, "%d\n", online); in online_show() 57 int online; in online_store() local 59 if (sscanf(buf, "%d\n", &online) != 1 || online < 0 || online > 1) in online_store() 62 if (online && (!aq->config || !aq->card->config)) in online_store() 64 if (online && !zc->online) in online_store() 66 zq->online = online; in online_store() 68 ZCRYPT_DBF_INFO("%s queue=%02x.%04x online=%d\n", in online_store() 70 AP_QID_QUEUE(zq->queue->qid), online); in online_store() 72 ap_send_online_uevent(&aq->ap_dev, online); in online_store() [all …]
|
H A D | zcrypt_card.c | 55 int online = ac->config && zc->online ? 1 : 0; in online_show() local 57 return sysfs_emit(buf, "%d\n", online); in online_show() 67 int online, id, i = 0, maxzqs = 0; in online_store() local 70 if (sscanf(buf, "%d\n", &online) != 1 || online < 0 || online > 1) in online_store() 73 if (online && !ac->config) in online_store() 76 zc->online = online; in online_store() 79 ZCRYPT_DBF_INFO("%s card=%02x online=%d\n", __func__, id, online); in online_store() 81 ap_send_online_uevent(&ac->ap_dev, online); in online_store() 95 if (zcrypt_queue_force_online(zq, online)) in online_store() 104 ap_send_online_uevent(&zq->queue->ap_dev, online); in online_store() [all …]
|
/openbmc/linux/tools/testing/selftests/cpu-hotplug/ |
H A D | cpu-on-off-test.sh | 32 echo "CPU online/offline summary:" 33 online_cpus=`cat $SYSFS/devices/system/cpu/online` 45 echo -e "\t Cpus in online state: $online_cpus" 64 if [ -f $cpu/online ] && grep -q $state $cpu/online; then 82 grep -q 1 $SYSFS/devices/system/cpu/cpu$1/online 87 grep -q 0 $SYSFS/devices/system/cpu/cpu$1/online 92 echo 1 > $SYSFS/devices/system/cpu/cpu$1/online 97 echo 0 > $SYSFS/devices/system/cpu/cpu$1/online 121 echo $FUNCNAME $cpu: unexpected online >&2 196 # Safe test (default) - offline and online one cpu [all …]
|
/openbmc/linux/Documentation/core-api/ |
H A D | cpu_hotplug.rst | 36 other CPUs later online. 41 those CPUs can not be brought online later. 71 Bitmap of all CPUs currently online. Its set in ``__cpu_up()`` 79 of them may be online. When physical hotplug is processed by the relevant 112 -r--r--r-- 1 root root 4.0K Dec 21 16:33 online 116 The files *offline*, *online*, *possible*, *present* represent the CPU masks. 117 Each CPU folder contains an *online* file which controls the logical on (1) and 120 $ echo 0 > /sys/devices/system/cpu/cpu4/online 125 bring CPU4 back online:: 127 $ echo 1 > /sys/devices/system/cpu/cpu4/online [all …]
|
H A D | memory-hotplug.rst | 23 Generated when memory has successfully brought online. The callback may 63 - start_pfn is start_pfn of online/offline memory. 64 - nr_pages is # of pages of online/offline memory. 68 set/clear. It means a new(memoryless) node gets new memory by online and a 92 - synchronize against online/offline requests (e.g. via sysfs). This way, memory 93 block devices can only be accessed (.online/.state attributes) by user 99 device_hotplug_lock when adding memory and user space tries to online that
|
/openbmc/linux/tools/testing/selftests/memory-hotplug/ |
H A D | mem-on-off-test.sh | 58 hotpluggable_memory online 63 grep -q online $SYSFS/devices/system/memory/memory$1/state 73 echo online > $SYSFS/devices/system/memory/memory$1/state 103 echo $FUNCNAME $memory: unexpected online >&2 184 # Online all hot-pluggable memory 187 echo -e "\t online all hot-pluggable memory in offline state:" 190 echo "offline->online memory$memory" 204 echo -e "\t offline $ratio% hot-pluggable memory in online state" 208 echo "online->offline memory$memory" 223 # Online all hot-pluggable memory again [all …]
|
/openbmc/linux/Documentation/arch/s390/ |
H A D | driver-model.rst | 49 online: 50 An interface to set the device online and offline. 52 notify function under 1.2), piping 0 to online will forcibly delete 77 via the 'online' interface. 93 int online; 161 activated via the 'online' attribute. The driver should finally 171 verified that the device is not already online. 175 de-activated via the 'online' attribute. The driver should shut 185 verified that the device is online. 194 * In online state, device detached (CIO_GONE) or last path gone [all …]
|
/openbmc/linux/Documentation/admin-guide/ |
H A D | cputopology.rst | 61 offline: CPUs that are not online because they have been 66 online: CPUs that are online and being scheduled [cpu_online_mask] 69 brought online if they are present. [cpu_possible_mask] 80 being 32. Note also that CPUs 2 and 4-31 are not online but could be 81 brought online as they are both present and possible:: 85 online: 0-1,3 92 online.):: 96 online: 0-1,3
|
/openbmc/linux/Documentation/translations/zh_CN/core-api/ |
H A D | cpu_hotplug.rst | 113 -r--r--r-- 1 root root 4.0K Dec 21 16:33 online 117 文件 *offline* 、 *online* 、*possible* 、*present* 代表CPU掩码。每个CPU文件 118 夹包含一个 *online* 文件,控制逻辑上的开(1)和关(0)状态。要在逻辑上关闭CPU4:: 120 $ echo 0 > /sys/devices/system/cpu/cpu4/online 126 $ echo 1 > /sys/devices/system/cpu/cpu4/online 371 的常量之一, 具体取决于应该分配动态状态的状态阶段(PREPARE,ONLINE)。 385 online 对应ONLINE阶段中的状态 393 @name参数的示例:"perf/online", "perf/x86:prepare", "RCU/tree:dying", "sched/waitempty" 527 state = cpuhp_setup_state_nocalls(CPUHP_ONLINE_DYN, "subsys:online", subsys_cpu_online, NULL); 535 …state = cpuhp_setup_state_multi(CPUHP_ONLINE_DYN, "subsys:online", subsys_cpu_online, subsys_cpu_o… [all …]
|
/openbmc/linux/Documentation/ABI/testing/ |
H A D | sysfs-devices-online | 1 What: /sys/devices/.../online 5 The /sys/devices/.../online attribute is only present for 6 devices whose bus types provide .online() and .offline() 13 this file, the device bus type's .online() callback is executed 20 type's .online() is executed successfully.
|
H A D | sysfs-devices-memory | 47 is read-write. When read, it returns the online/offline 49 the online/offline state of a memory block using the following 52 # echo online > /sys/devices/system/memory/memoryX/state 60 reading the file will return "online"; the zone information 77 For online memory blocks, it returns in which zone memory 85 the state of an offline memory block to "online". Only one of
|
H A D | sysfs-devices-system-xen_cpu | 12 What: /sys/devices/system/xen_cpu/xen_cpu#/online 16 Interface to online/offline Xen physical cpus 19 to online/offline physical cpus, except cpu0 due to several
|
/openbmc/openbmc/meta-ibm/recipes-core/systemd/ |
H A D | systemd_%.bbappend | 31 FILES:${PN}:append:p10bmc = " ${systemd_system_unitdir}/systemd-networkd-wait-online.service.d/syst… 35 FILES:${PN}:append:genesis3 = " ${systemd_system_unitdir}/systemd-networkd-wait-online.service.d/sy… 36 FILES:${PN}:append:sbp1 = " ${systemd_system_unitdir}/systemd-networkd-wait-online.service.d/system… 38 FILES:${PN}:append:system1 = " ${systemd_system_unitdir}/systemd-networkd-wait-online.service.d/sys… 54 …ly-wait-for-one.conf ${D}${systemd_system_unitdir}/systemd-networkd-wait-online.service.d/systemd-… 59 # Genesis3 and SBP1 uses both BMC's RGMII MACs, so wait for only one to be online 61 install -d ${D}${systemd_system_unitdir}/systemd-networkd-wait-online.service.d/ 62 …ly-wait-for-one.conf ${D}${systemd_system_unitdir}/systemd-networkd-wait-online.service.d/systemd-… 65 install -d ${D}${systemd_system_unitdir}/systemd-networkd-wait-online.service.d/ 66 …ly-wait-for-one.conf ${D}${systemd_system_unitdir}/systemd-networkd-wait-online.service.d/systemd-… [all …]
|
/openbmc/linux/drivers/power/supply/ |
H A D | 88pm860x_charger.c | 107 unsigned online:1; /* usb charger */ member 274 if (vbatt > CHARGE_THRESHOLD && info->online) in stop_charge() 317 (info->online) ? "online" : "N/A", in set_charging_fsm() 323 if (info->online && info->present && info->allowed) { in set_charging_fsm() 344 if (info->online && info->present && info->allowed) { in set_charging_fsm() 355 if (info->online && info->present && info->allowed) { in set_charging_fsm() 366 if (info->online && info->present && info->allowed) { in set_charging_fsm() 377 else if (vbatt > CHARGE_THRESHOLD && info->online) in set_charging_fsm() 389 (info->online) ? "online" : "N/A", in set_charging_fsm() 408 info->online = 1; in pm860x_charger_handler() [all …]
|
/openbmc/linux/Documentation/admin-guide/mm/ |
H A D | memory-hotplug.rst | 140 make use of that memory: the memory block has to be "online". 145 The Linux kernel can be configured to automatically online added memory blocks 160 % echo online > /sys/devices/system/memory/memoryXXX/state 164 % echo 1 > /sys/devices/system/memory/memoryXXX/online 179 be "online". If it fails, the state of the memory block will remain unchanged 189 The configured auto-online behavior can be observed via:: 193 Auto-onlining can be enabled by writing ``online``, ``online_kernel`` or 196 % echo online > /sys/devices/system/memory/auto_online_blocks 198 Similarly to manual onlining, with ``online`` the kernel will select the 201 Modifying the auto-online behavior will only affect all subsequently added [all …]
|
/openbmc/linux/tools/testing/selftests/bpf/prog_tests/ |
H A D | perf_buffer.c | 54 bool *online; in serial_test_perf_buffer() local 60 err = parse_cpu_mask_file("/sys/devices/system/cpu/online", in serial_test_perf_buffer() 61 &online, &on_len); in serial_test_perf_buffer() 66 if (online[i]) in serial_test_perf_buffer() 95 if (i >= on_len || !online[i]) { in serial_test_perf_buffer() 118 if (i >= on_len || !online[i]) in serial_test_perf_buffer() 146 free(online); in serial_test_perf_buffer()
|
H A D | raw_tp_test_run.c | 15 bool *online = NULL; in test_raw_tp_test_run() local 22 err = parse_cpu_mask_file("/sys/devices/system/cpu/online", &online, in test_raw_tp_test_run() 58 if (!online[i]) in test_raw_tp_test_run() 85 free(online); in test_raw_tp_test_run()
|
/openbmc/linux/Documentation/filesystems/ |
H A D | xfs-online-fsck-design.rst | 18 XFS Online Fsck Design 21 This document captures the design of the online filesystem check feature for 25 - To help kernel distributors understand exactly what the XFS online fsck 34 As the online fsck code is merged, the links in this document to topic branches 42 Parts 2 and 3 present a high level overview of how online fsck process works 49 might be built atop online fsck. 112 Each kernel patchset adding an online repair function will use the same branch 118 The online fsck tool described here will be the third tool in the history of 162 while the filesystem is online. 188 | The userspace driver program for the new online fsck tool can be | [all …]
|
/openbmc/qemu/hw/xen/ |
H A D | xen-bus.c | 73 xs_node_printf(xenbus->xsh, tid, xendev->backend_path, "online", in xen_device_unplug() 153 !strcmp(key[i], "online") || in xen_bus_backend_create() 204 unsigned int online; in xen_bus_type_enumerate() local 210 if (xs_node_scanf(xenbus->xsh, XBT_NULL, backend_path, "online", in xen_bus_type_enumerate() 211 NULL, "%u", &online) != 1) in xen_bus_type_enumerate() 212 online = 0; in xen_bus_type_enumerate() 214 if (online && state == XenbusStateInitialising && in xen_bus_type_enumerate() 466 static void xen_device_backend_set_online(XenDevice *xendev, bool online) in xen_device_backend_set_online() argument 470 if (xendev->backend_online == online) { in xen_device_backend_set_online() 474 trace_xen_device_backend_online(type, xendev->name, online); in xen_device_backend_set_online() [all …]
|
/openbmc/qemu/python/scripts/ |
H A D | mkvenv.py | 38 usage: mkvenv ensuregroup [-h] [--online] [--dir DIR] file group... 46 --online Install packages from PyPI, if necessary. 510 online: bool, 518 :param online: Did we allow PyPI access? 558 if online: 595 online: bool = False, 615 if not online: 652 online: bool = False, 658 If the packages are already installed, do nothing. If online and 664 :param online: If True, fall back to PyPI. [all …]
|
/openbmc/linux/mm/ |
H A D | memory_hotplug.c | 157 * memory_hotplug.online_policy: configure online behavior when onlining without 161 * "auto-movable": online memory to ZONE_MOVABLE if the configuration 171 "Set the online policy (\"contig-zones\", \"auto-movable\") " 178 * online some memory to ZONE_MOVABLE -- e.g., because hotplugged KERNEL memory 185 "in percent for \"auto-movable\" online policy. Default: 301"); 195 "\"auto-movable\" online policy. Default: true"); 306 * memory that will be marked online, so this check should only in check_pfn_span() 322 * Return page for the valid pfn only if the page is online. All pfn 356 * get_dev_pagemap() can determine sub-section online status. in pfn_to_online_page() 650 * Online the pages in MAX_ORDER aligned chunks. The callback might in online_pages_range() [all …]
|
/openbmc/linux/arch/s390/include/asm/ |
H A D | physmem_info.h | 54 struct physmem_range online[MEM_INLINED_ENTRIES]; member 72 *start = (unsigned long)physmem_info.online[n].start; in __get_physmem_range() 73 *end = (unsigned long)physmem_info.online[n].end; in __get_physmem_range() 89 * for_each_physmem_usable_range - early online memory range iterator 94 * Walks over detected online memory ranges below usable limit. 99 /* Walks over all detected online memory ranges disregarding usable limit. */
|
/openbmc/linux/kernel/irq/ |
H A D | matrix.c | 19 bool online; member 75 * irq_matrix_online - Bring the local CPU matrix online 82 BUG_ON(cm->online); in irq_matrix_online() 90 cm->online = true; in irq_matrix_online() 105 cm->online = false; in irq_matrix_offline() 140 if (!cm->online || cm->available <= maxavl) in matrix_find_best_cpu() 161 if (!cm->online || cm->managed_allocated > allocated) in matrix_find_best_cpu_managed() 222 if (cm->online) { in irq_matrix_reserve_managed() 272 if (cm->online) { in irq_matrix_remove_managed() 433 if (cm->online) in irq_matrix_free() [all …]
|
/openbmc/linux/Documentation/trace/rv/ |
H A D | runtime-verification.rst | 19 *online* verification of a system, enabling the *reaction* for unexpected 77 Online RV monitors 80 Monitors can be classified as *offline* and *online* monitors. *Offline* 82 reading the trace execution from a permanent storage system. *Online* monitors 83 process the trace during the execution of the system. Online monitors are said 89 file. In contrast, *synchronous online* method can react at the exact moment 97 *synchronous online* monitors will incur on lower overhead. 109 This motivated the development of an in-kernel interface for online monitors.
|
/openbmc/linux/arch/mips/kernel/ |
H A D | pm-cps.c | 26 * @online: the count of online coupled VPEs 38 typedef unsigned (*cps_nc_entry_fn)(unsigned online, u32 *nc_ready_count); 56 /* Indicates online CPUs coupled with the current CPU */ 84 static void coupled_barrier(atomic_t *a, unsigned online) in coupled_barrier() argument 98 while (atomic_read(a) < online) in coupled_barrier() 101 if (atomic_inc_return(a) == online * 2) { in coupled_barrier() 106 while (atomic_read(a) > online) in coupled_barrier() 114 unsigned online, left; in cps_pm_enter_state() local 127 /* Calculate which coupled CPUs (VPEs) are online */ in cps_pm_enter_state() 132 online = cpumask_weight(coupled_mask); in cps_pm_enter_state() [all …]
|