/kernel/linux/linux-6.6/kernel/power/ |
H A D | main.c | 217 int error; in mem_sleep_store() local 219 error = pm_autosleep_lock(); in mem_sleep_store() 220 if (error) in mem_sleep_store() 221 return error; in mem_sleep_store() 224 error = -EBUSY; in mem_sleep_store() 232 error = -EINVAL; in mem_sleep_store() 236 return error ? error : n; in mem_sleep_store() 312 int error = -EINVAL; in pm_test_store() local 326 error in pm_test_store() 691 int error; state_store() local 765 int error; wakeup_count_store() local 818 int error; autosleep_store() local 846 int error = pm_wake_lock(buf); wake_lock_store() local 863 int error = pm_wake_unlock(buf); wake_unlock_store() local 992 int error = pm_start_workqueue(); pm_init() local [all...] |
/kernel/linux/linux-6.6/fs/xfs/scrub/ |
H A D | attr.c | 122 int error; in xchk_setup_xattr() local 130 error = xchk_setup_xattr_buf(sc, XATTR_SIZE_MAX); in xchk_setup_xattr() 131 if (error) in xchk_setup_xattr() 132 return error; in xchk_setup_xattr() 175 int error = 0; in xchk_xattr_listent() local 180 if (xchk_should_terminate(sx->sc, &error)) { in xchk_xattr_listent() 181 context->seen_enough = error; in xchk_xattr_listent() 214 * the error message back to the main scrub function. in xchk_xattr_listent() 216 error = xchk_setup_xattr_buf(sx->sc, valuelen); in xchk_xattr_listent() 217 if (error in xchk_xattr_listent() 467 int error; xchk_xattr_rec() local 536 int error = 0; xchk_xattr_check_sf() local 607 int error = 0; xchk_xattr() local [all...] |
/kernel/linux/linux-6.6/drivers/input/keyboard/ |
H A D | omap4-keypad.c | 179 int error; in omap4_keypad_irq_thread_fn() local 182 error = pm_runtime_resume_and_get(dev); in omap4_keypad_irq_thread_fn() 183 if (error) in omap4_keypad_irq_thread_fn() 206 int error; in omap4_keypad_open() local 208 error = pm_runtime_resume_and_get(dev); in omap4_keypad_open() 209 if (error) in omap4_keypad_open() 210 return error; in omap4_keypad_open() 251 int error; in omap4_keypad_close() local 253 error = pm_runtime_resume_and_get(dev); in omap4_keypad_close() 254 if (error) in omap4_keypad_close() 346 int error; omap4_keypad_probe() local [all...] |
/kernel/linux/linux-5.10/arch/mips/include/asm/vdso/ |
H A D | gettimeofday.h | 37 register long error asm("a3"); in gettimeofday_fallback() 41 : "=r" (ret), "=r" (error) in gettimeofday_fallback() 48 return error ? -ret : ret; in gettimeofday_fallback() 63 register long error asm("a3"); in clock_gettime_fallback() 67 : "=r" (ret), "=r" (error) in clock_gettime_fallback() 74 return error ? -ret : ret; in clock_gettime_fallback() 89 register long error asm("a3"); in clock_getres_fallback() 93 : "=r" (ret), "=r" (error) in clock_getres_fallback() 100 return error ? -ret : ret; in clock_getres_fallback() 113 register long error as in clock_gettime32_fallback() [all...] |
/kernel/linux/linux-6.6/arch/mips/include/asm/vdso/ |
H A D | gettimeofday.h | 37 register long error asm("a3"); in gettimeofday_fallback() 41 : "=r" (ret), "=r" (error) in gettimeofday_fallback() 48 return error ? -ret : ret; in gettimeofday_fallback() 63 register long error asm("a3"); in clock_gettime_fallback() 67 : "=r" (ret), "=r" (error) in clock_gettime_fallback() 74 return error ? -ret : ret; in clock_gettime_fallback() 89 register long error asm("a3"); in clock_getres_fallback() 93 : "=r" (ret), "=r" (error) in clock_getres_fallback() 100 return error ? -ret : ret; in clock_getres_fallback() 113 register long error as in clock_gettime32_fallback() [all...] |
/kernel/linux/linux-5.10/security/apparmor/ |
H A D | capability.c | 57 * @error: error code returned by test 62 * Returns: 0 or sa->error on success, error code on failure 65 int cap, int error) in audit_caps() 70 aad(sa)->error = error; in audit_caps() 72 if (likely(!error)) { in audit_caps() 85 return error; in audit_caps() 93 return complain_error(error); in audit_caps() 64 audit_caps(struct common_audit_data *sa, struct aa_profile *profile, int cap, int error) audit_caps() argument 117 int error; profile_capable() local 150 int error = 0; aa_capable() local [all...] |
H A D | file.c | 86 * @error: 0 if operation allowed else failure error code 88 * Returns: %0 or error on failure 93 kuid_t ouid, const char *info, int error) in aa_audit_file() 105 aad(&sa)->error = error; in aa_audit_file() 108 if (likely(!aad(&sa)->error)) { in aa_audit_file() 135 return aad(&sa)->error; in aa_audit_file() 161 int error; in path_name() local 163 error in path_name() 90 aa_audit_file(struct aa_profile *profile, struct aa_perms *perms, const char *op, u32 request, const char *name, const char *target, struct aa_label *tlabel, kuid_t ouid, const char *info, int error) aa_audit_file() argument 288 int error; profile_path_perm() local 320 int error; aa_path_perm() local 366 int error; profile_path_link() local 466 int error; aa_path_link() local 516 int flags, error; __file_path_perm() local 565 int error; __file_sock_perm() local 602 int error = 0; aa_file_perm() local [all...] |
/kernel/linux/linux-5.10/lib/ |
H A D | decompress_unlz4.c | 35 void (*error) (char *x)) in unlz4() 53 error("NULL output pointer and no flush function provided"); in unlz4() 58 error("Could not allocate output buffer"); in unlz4() 64 error("Both input pointer and fill function provided,"); in unlz4() 69 error("NULL input pointer and missing fill function"); in unlz4() 74 error("Could not allocate input buffer"); in unlz4() 86 error("data corrupted"); in unlz4() 98 error("invalid header"); in unlz4() 112 error("data corrupted"); in unlz4() 144 error("chun in unlz4() [all...] |
/kernel/linux/linux-5.10/drivers/platform/x86/ |
H A D | intel-rst.c | 36 int error; in irst_store_wakeup_events() local 40 error = kstrtoul(buf, 0, &value); in irst_store_wakeup_events() 41 if (error) in irst_store_wakeup_events() 42 return error; in irst_store_wakeup_events() 80 int error; in irst_store_wakeup_time() local 84 error = kstrtoul(buf, 0, &value); in irst_store_wakeup_time() 85 if (error) in irst_store_wakeup_time() 86 return error; in irst_store_wakeup_time() 103 int error; in irst_add() local 105 error in irst_add() [all...] |
/kernel/linux/linux-6.6/drivers/platform/x86/intel/ |
H A D | rst.c | 36 int error; in irst_store_wakeup_events() local 40 error = kstrtoul(buf, 0, &value); in irst_store_wakeup_events() 41 if (error) in irst_store_wakeup_events() 42 return error; in irst_store_wakeup_events() 80 int error; in irst_store_wakeup_time() local 84 error = kstrtoul(buf, 0, &value); in irst_store_wakeup_time() 85 if (error) in irst_store_wakeup_time() 86 return error; in irst_store_wakeup_time() 103 int error; in irst_add() local 105 error in irst_add() [all...] |
/kernel/linux/linux-6.6/security/apparmor/ |
H A D | capability.c | 57 * @error: error code returned by test 62 * Returns: 0 or ad->error on success, error code on failure 65 int cap, int error) in audit_caps() 72 ad->error = error; in audit_caps() 74 if (likely(!error)) { in audit_caps() 87 return error; in audit_caps() 95 return complain_error(error); in audit_caps() 64 audit_caps(struct apparmor_audit_data *ad, struct aa_profile *profile, int cap, int error) audit_caps() argument 121 int error; profile_capable() local 156 int error = 0; aa_capable() local [all...] |
/kernel/linux/linux-6.6/lib/ |
H A D | decompress_unlz4.c | 35 void (*error) (char *x)) in unlz4() 53 error("NULL output pointer and no flush function provided"); in unlz4() 58 error("Could not allocate output buffer"); in unlz4() 64 error("Both input pointer and fill function provided,"); in unlz4() 69 error("NULL input pointer and missing fill function"); in unlz4() 74 error("Could not allocate input buffer"); in unlz4() 86 error("data corrupted"); in unlz4() 98 error("invalid header"); in unlz4() 112 error("data corrupted"); in unlz4() 144 error("chun in unlz4() [all...] |
/test/xts/acts/communication/nfc_ErrorCode/entry/src/ohosTest/js/test/ |
H A D | TagABFV.test.js | 115 * @tc.desc Obtains the DsfId value of the taginfo. The error code is 401 126 }catch(error){ 127 console.info('[NFC_test]TagABFV1 TagInfo errorcode:' + error.code) 128 expect(401).assertEqual(error.code); 135 * @tc.desc Obtains the DsfId value of the taginfo. The error code is 401 146 }catch(error){ 147 console.info('[NFC_test]TagABFV2 getNfcAtag errorcode:' + error.code) 148 expect(401).assertEqual(error.code); 155 * @tc.desc Obtains the DsfId value of the taginfo. The error code is 401 166 }catch(error){ [all...] |
/kernel/linux/linux-5.10/drivers/base/ |
H A D | isa.c | 117 int error; in isa_register_driver() local 123 error = driver_register(&isa_driver->driver); in isa_register_driver() 124 if (error) in isa_register_driver() 125 return error; in isa_register_driver() 132 error = -ENOMEM; in isa_register_driver() 148 error = device_register(&isa_dev->dev); in isa_register_driver() 149 if (error) { in isa_register_driver() 161 if (!error && !isa_driver->devices) in isa_register_driver() 162 error = -ENODEV; in isa_register_driver() 164 if (error) in isa_register_driver() 173 int error; isa_bus_init() local [all...] |
/kernel/linux/linux-5.10/fs/gfs2/ |
H A D | main.c | 75 * Returns: 0 on success, error code on failure 80 int error; in init_gfs2_fs() local 86 error = gfs2_sys_init(); in init_gfs2_fs() 87 if (error) in init_gfs2_fs() 88 return error; in init_gfs2_fs() 90 error = list_lru_init(&gfs2_qd_lru); in init_gfs2_fs() 91 if (error) in init_gfs2_fs() 94 error = gfs2_glock_init(); in init_gfs2_fs() 95 if (error) in init_gfs2_fs() 98 error in init_gfs2_fs() [all...] |
/kernel/linux/linux-5.10/drivers/hid/ |
H A D | hid-axff.c | 71 int error; in axff_init() local 105 error = input_ff_create_memless(dev, axff, axff_play); in axff_init() 106 if (error) in axff_init() 118 return error; in axff_init() 129 int error; in ax_probe() local 133 error = hid_parse(hdev); in ax_probe() 134 if (error) { in ax_probe() 136 return error; in ax_probe() 139 error = hid_hw_start(hdev, HID_CONNECT_DEFAULT & ~HID_CONNECT_FF); in ax_probe() 140 if (error) { in ax_probe() [all...] |
/kernel/linux/linux-6.6/fs/gfs2/ |
H A D | main.c | 73 * Returns: 0 on success, error code on failure 78 int error; in init_gfs2_fs() local 84 error = gfs2_sys_init(); in init_gfs2_fs() 85 if (error) in init_gfs2_fs() 86 return error; in init_gfs2_fs() 88 error = list_lru_init(&gfs2_qd_lru); in init_gfs2_fs() 89 if (error) in init_gfs2_fs() 92 error = gfs2_glock_init(); in init_gfs2_fs() 93 if (error) in init_gfs2_fs() 96 error in init_gfs2_fs() [all...] |
/kernel/linux/linux-6.6/drivers/base/ |
H A D | isa.c | 115 int error; in isa_register_driver() local 121 error = driver_register(&isa_driver->driver); in isa_register_driver() 122 if (error) in isa_register_driver() 123 return error; in isa_register_driver() 130 error = -ENOMEM; in isa_register_driver() 146 error = device_register(&isa_dev->dev); in isa_register_driver() 147 if (error) { in isa_register_driver() 156 if (!error && !isa_driver->devices) in isa_register_driver() 157 error = -ENODEV; in isa_register_driver() 159 if (error) in isa_register_driver() 168 int error; isa_bus_init() local [all...] |
/kernel/linux/linux-6.6/drivers/clocksource/ |
H A D | timer-riscv.c | 130 int error; in riscv_timer_init_common() local 147 error = clocksource_register_hz(&riscv_clocksource, riscv_timebase); in riscv_timer_init_common() 148 if (error) { in riscv_timer_init_common() 149 pr_err("RISCV timer registration failed [%d]\n", error); in riscv_timer_init_common() 150 return error; in riscv_timer_init_common() 155 error = request_percpu_irq(riscv_clock_event_irq, in riscv_timer_init_common() 158 if (error) { in riscv_timer_init_common() 159 pr_err("registering percpu irq failed [%d]\n", error); in riscv_timer_init_common() 160 return error; in riscv_timer_init_common() 168 error in riscv_timer_init_common() 180 int cpuid, error; riscv_timer_init_dt() local [all...] |
/kernel/linux/linux-6.6/drivers/hid/ |
H A D | hid-axff.c | 71 int error; in axff_init() local 105 error = input_ff_create_memless(dev, axff, axff_play); in axff_init() 106 if (error) in axff_init() 118 return error; in axff_init() 129 int error; in ax_probe() local 133 error = hid_parse(hdev); in ax_probe() 134 if (error) { in ax_probe() 136 return error; in ax_probe() 139 error = hid_hw_start(hdev, HID_CONNECT_DEFAULT & ~HID_CONNECT_FF); in ax_probe() 140 if (error) { in ax_probe() [all...] |
/kernel/linux/linux-6.6/drivers/input/misc/ |
H A D | ariel-pwrbutton.c | 54 int error; in ec_input_interrupt() local 57 error = ec_input_read(priv, &response); in ec_input_interrupt() 58 if (error < 0) { in ec_input_interrupt() 59 dev_err(&spi->dev, "EC read failed: %d\n", error); in ec_input_interrupt() 99 int error; in ariel_pwrbutton_probe() local 119 error = input_register_device(priv->input); in ariel_pwrbutton_probe() 120 if (error) { in ariel_pwrbutton_probe() 121 dev_err(&spi->dev, "error registering input device: %d\n", error); in ariel_pwrbutton_probe() 122 return error; in ariel_pwrbutton_probe() [all...] |
/kernel/linux/linux-5.10/drivers/input/touchscreen/ |
H A D | sis_i2c.c | 230 int error; in sis_ts_handle_packet() local 234 error = sis_read_packet(ts->client, ts->packet, in sis_ts_handle_packet() 236 if (error) in sis_ts_handle_packet() 253 error = sis_ts_report_contact(ts, contact, report_id); in sis_ts_handle_packet() 254 if (error) in sis_ts_handle_packet() 304 int error; in sis_ts_probe() local 315 error = PTR_ERR(ts->attn_gpio); in sis_ts_probe() 316 if (error != -EPROBE_DEFER) in sis_ts_probe() 318 "Failed to get attention GPIO: %d\n", error); in sis_ts_probe() 319 return error; in sis_ts_probe() [all...] |
/kernel/linux/linux-5.10/fs/ext4/ |
H A D | acl.c | 192 int error; in __ext4_set_acl() local 214 error = ext4_xattr_set_handle(handle, inode, name_index, "", in __ext4_set_acl() 218 if (!error) in __ext4_set_acl() 221 return error; in __ext4_set_acl() 228 int error, credits, retries = 0; in ext4_set_acl() local 233 error = dquot_initialize(inode); in ext4_set_acl() 234 if (error) in ext4_set_acl() 235 return error; in ext4_set_acl() 237 error = ext4_xattr_set_credits(inode, acl_size, false /* is_create */, in ext4_set_acl() 239 if (error) in ext4_set_acl() 277 int error; ext4_init_acl() local [all...] |
/kernel/linux/linux-6.6/fs/ext4/ |
H A D | acl.c | 195 int error; in __ext4_set_acl() local 217 error = ext4_xattr_set_handle(handle, inode, name_index, "", in __ext4_set_acl() 221 if (!error) in __ext4_set_acl() 224 return error; in __ext4_set_acl() 232 int error, credits, retries = 0; in ext4_set_acl() local 238 error = dquot_initialize(inode); in ext4_set_acl() 239 if (error) in ext4_set_acl() 240 return error; in ext4_set_acl() 242 error = ext4_xattr_set_credits(inode, acl_size, false /* is_create */, in ext4_set_acl() 244 if (error) in ext4_set_acl() 282 int error; ext4_init_acl() local [all...] |
/kernel/linux/linux-6.6/drivers/input/joystick/ |
H A D | adc-joystick.c | 126 int num_axes, error, i; in adc_joystick_set_axes() local 145 error = fwnode_property_read_u32(child, "reg", &i); in adc_joystick_set_axes() 146 if (error) { in adc_joystick_set_axes() 152 error = -EINVAL; in adc_joystick_set_axes() 157 error = fwnode_property_read_u32(child, "linux,code", in adc_joystick_set_axes() 159 if (error) { in adc_joystick_set_axes() 164 error = fwnode_property_read_u32_array(child, "abs-range", in adc_joystick_set_axes() 166 if (error) { in adc_joystick_set_axes() 186 return error; in adc_joystick_set_axes() 194 int error; in adc_joystick_probe() local [all...] |