/kernel/linux/linux-6.6/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() 102 zcrypt_queue_force_online(struct zcrypt_queue *zq, int online) zcrypt_queue_force_online() argument [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() [all...] |
/kernel/linux/linux-5.10/drivers/s390/crypto/ |
H A D | zcrypt_queue.c | 45 int online = aq->config && zq->online ? 1 : 0; in online_show() local 47 return scnprintf(buf, PAGE_SIZE, "%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() 101 zcrypt_queue_force_online(struct zcrypt_queue *zq, int online) zcrypt_queue_force_online() argument [all...] |
H A D | zcrypt_card.c | 55 int online = ac->config && zc->online ? 1 : 0; in online_show() local 57 return scnprintf(buf, PAGE_SIZE, "%d\n", online); in online_show() 67 int online, id; in online_store() local 69 if (sscanf(buf, "%d\n", &online) != 1 || online < 0 || online > 1) in online_store() 72 if (online && !ac->config) in online_store() 75 zc->online = online; in online_store() [all...] |
/kernel/linux/linux-6.6/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 > [all...] |
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/prog_tests/ |
H A D | perf_buffer.c | 54 bool *online; in test_perf_buffer() local 60 err = parse_cpu_mask_file("/sys/devices/system/cpu/online", in test_perf_buffer() 61 &online, &on_len); in test_perf_buffer() 66 if (online[i]) in test_perf_buffer() 92 if (i >= on_len || !online[i]) { in test_perf_buffer() 115 if (i >= on_len || !online[i]) in test_perf_buffer() 142 free(online); in test_perf_buffer()
|
H A D | raw_tp_test_run.c | 18 bool *online = NULL; in test_raw_tp_test_run() local 25 err = parse_cpu_mask_file("/sys/devices/system/cpu/online", &online, in test_raw_tp_test_run() 63 if (!online[i]) in test_raw_tp_test_run() 95 free(online); in test_raw_tp_test_run()
|
/kernel/linux/linux-6.6/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()
|
/kernel/linux/linux-5.10/tools/testing/selftests/cpu-hotplug/ |
H A D | cpu-on-off-test.sh | 31 echo "CPU online/offline summary:" 32 online_cpus=`cat $SYSFS/devices/system/cpu/online` 44 echo -e "\t Cpus in online state: $online_cpus" 63 if [ -f $cpu/online ] && grep -q $state $cpu/online; then 81 grep -q 1 $SYSFS/devices/system/cpu/cpu$1/online 86 grep -q 0 $SYSFS/devices/system/cpu/cpu$1/online 91 echo 1 > $SYSFS/devices/system/cpu/cpu$1/online 96 echo 0 > $SYSFS/devices/system/cpu/cpu$1/online 120 echo $FUNCNAME $cpu: unexpected online > [all...] |
/kernel/linux/build/test/moduletest/runtest/bin/cpusetdecouple_cpuhotplug_t/testcases/bin/ |
H A D | cpusetdecouple_cpuhotplug03.sh | 16 # Description: Check whether processes will be migrated to new online CPU 45 echo 0 > /sys/devices/system/cpu/cpu2/online 46 echo 0 > /sys/devices/system/cpu/cpu3/online 59 tst_res TPASS "processes will be migrated to new online CPU pass." 61 tst_res TFAIL "processes will be migrated to new online CPU failed!" 70 echo 1 > /sys/devices/system/cpu/cpu2/online 71 echo 1 > /sys/devices/system/cpu/cpu3/online
|
/kernel/linux/linux-5.10/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) in set_charging_fsm() [all...] |
H A D | tps65217_charger.c | 35 int online; member 84 if (charger->online) in tps65217_enable_charging() 99 charger->online = 1; in tps65217_enable_charging() 111 val->intval = charger->online; in tps65217_charger_get_property() 122 charger->prev_online = charger->online; in tps65217_charger_irq() 142 charger->online = 0; in tps65217_charger_irq() 145 if (charger->prev_online != charger->online) in tps65217_charger_irq()
|
H A D | power_supply_leds.c | 116 union power_supply_propval online; in power_supply_update_gen_leds() local 118 if (power_supply_get_property(psy, POWER_SUPPLY_PROP_ONLINE, &online)) in power_supply_update_gen_leds() 121 dev_dbg(&psy->dev, "%s %d\n", __func__, online.intval); in power_supply_update_gen_leds() 123 if (online.intval) in power_supply_update_gen_leds() 131 psy->online_trig_name = kasprintf(GFP_KERNEL, "%s-online", in power_supply_create_gen_triggers()
|
H A D | bq25890_charger.c | 91 u8 online; member 413 do_adc_conv = !state.online && bq25890_is_adc_property(psp); in bq25890_power_supply_get_property() 424 if (!state.online) in bq25890_power_supply_get_property() 439 if (!state.online || state.chrg_status == STATUS_NOT_CHARGING || in bq25890_power_supply_get_property() 459 val->intval = state.online; in bq25890_power_supply_get_property() 480 if (!state.online) { in bq25890_power_supply_get_property() 548 {F_PG_STAT, &state->online}, in bq25890_get_chip_state() 564 state->chrg_status, state->online, state->vsys_status, in bq25890_get_chip_state() 582 if (!new_state.online && bq->state.online) { /* powe in __bq25890_handle_irq() [all...] |
/kernel/linux/linux-6.6/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) in set_charging_fsm() [all...] |
H A D | tps65217_charger.c | 34 int online; member 83 if (charger->online) in tps65217_enable_charging() 98 charger->online = 1; in tps65217_enable_charging() 110 val->intval = charger->online; in tps65217_charger_get_property() 121 charger->prev_online = charger->online; in tps65217_charger_irq() 141 charger->online = 0; in tps65217_charger_irq() 144 if (charger->prev_online != charger->online) in tps65217_charger_irq()
|
H A D | power_supply_leds.c | 114 union power_supply_propval online; in power_supply_update_gen_leds() local 116 if (power_supply_get_property(psy, POWER_SUPPLY_PROP_ONLINE, &online)) in power_supply_update_gen_leds() 119 dev_dbg(&psy->dev, "%s %d\n", __func__, online.intval); in power_supply_update_gen_leds() 121 if (online.intval) in power_supply_update_gen_leds() 129 psy->online_trig_name = kasprintf(GFP_KERNEL, "%s-online", in power_supply_create_gen_triggers()
|
/kernel/linux/linux-5.10/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() 167 coupled_barrier(&per_cpu(pm_barrier, core), online); cps_pm_enter_state() local [all...] |
/kernel/linux/linux-6.6/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() 167 coupled_barrier(&per_cpu(pm_barrier, core), online); cps_pm_enter_state() local [all...] |
/kernel/linux/linux-5.10/drivers/staging/fieldbus/ |
H A D | fieldbus_dev.h | 67 bool online; member 96 * - notify the subsystem that the fieldbus online status changed 99 void fieldbus_dev_online_changed(struct fieldbus_dev *fb, bool online); 111 bool online) {} in fieldbus_dev_online_changed() 110 fieldbus_dev_online_changed(struct fieldbus_dev *fb, bool online) fieldbus_dev_online_changed() argument
|
/kernel/linux/linux-6.6/drivers/staging/fieldbus/ |
H A D | fieldbus_dev.h | 67 bool online; member 96 * - notify the subsystem that the fieldbus online status changed 99 void fieldbus_dev_online_changed(struct fieldbus_dev *fb, bool online); 111 bool online) {} in fieldbus_dev_online_changed() 110 fieldbus_dev_online_changed(struct fieldbus_dev *fb, bool online) fieldbus_dev_online_changed() argument
|
/kernel/linux/linux-5.10/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...] |
/kernel/linux/linux-6.6/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...] |
/kernel/linux/linux-5.10/drivers/staging/media/atomisp/pci/camera/pipe/src/ |
H A D | pipe_binarydesc.c | 50 descr->online = false; in pipe_binarydesc_get_offline() 98 copy_descr->online = true; in ia_css_pipe_get_copy_binarydesc() 245 if (pipe->stream->config.online) { in ia_css_pipe_get_preview_binarydesc() 246 preview_descr->online = pipe->stream->config.online; in ia_css_pipe_get_preview_binarydesc() 365 if (pipe->stream->config.online) { in ia_css_pipe_get_video_binarydesc() 366 video_descr->online = pipe->stream->config.online; in ia_css_pipe_get_video_binarydesc() 592 if (pipe->stream->config.online && in ia_css_pipe_get_primary_binarydesc() 594 prim_descr->online in ia_css_pipe_get_primary_binarydesc() [all...] |