Home
last modified time | relevance | path

Searched full:wd (Results 1 – 25 of 97) sorted by relevance

1234

/linux/drivers/watchdog/
H A Df71808e_wdt.c215 struct fintek_wdt *wd = watchdog_get_drvdata(wdd); in fintek_wdt_set_timeout() local
218 wd->timer_val = DIV_ROUND_UP(timeout, 60); in fintek_wdt_set_timeout()
219 wd->minutes_mode = true; in fintek_wdt_set_timeout()
220 timeout = wd->timer_val * 60; in fintek_wdt_set_timeout()
222 wd->timer_val = timeout; in fintek_wdt_set_timeout()
223 wd->minutes_mode = false; in fintek_wdt_set_timeout()
231 static int fintek_wdt_set_pulse_width(struct fintek_wdt *wd, unsigned int pw) in fintek_wdt_set_pulse_width() argument
235 if (wd->type == f71868) { in fintek_wdt_set_pulse_width()
242 wd->pulse_val = 0; in fintek_wdt_set_pulse_width()
244 wd->pulse_val = 1; in fintek_wdt_set_pulse_width()
[all …]
H A Dpseries-wdt.c43 struct watchdog_device wd; member
126 pw->wd.parent = &pdev->dev; in pseries_wdt_probe()
127 pw->wd.info = &pseries_wdt_info; in pseries_wdt_probe()
128 pw->wd.ops = &pseries_wdt_ops; in pseries_wdt_probe()
130 pw->wd.min_timeout = DIV_ROUND_UP(msecs, MSEC_PER_SEC); in pseries_wdt_probe()
131 pw->wd.max_timeout = UINT_MAX / 1000; /* from linux/watchdog.h */ in pseries_wdt_probe()
132 pw->wd.timeout = timeout; in pseries_wdt_probe()
133 if (watchdog_init_timeout(&pw->wd, 0, NULL)) in pseries_wdt_probe()
135 watchdog_set_nowayout(&pw->wd, nowayout); in pseries_wdt_probe()
136 watchdog_stop_on_reboot(&pw->wd); in pseries_wdt_probe()
[all …]
H A Dmei_wdt.c42 * @MEI_WDT_PROBE: wd in probing stage
43 * @MEI_WDT_IDLE: wd is idle and not opened
44 * @MEI_WDT_START: wd was opened, start was called
45 * @MEI_WDT_RUNNING: wd is expecting keep alive pings
46 * @MEI_WDT_STOPPING: wd is stopping and will move to IDLE
47 * @MEI_WDT_NOT_REQUIRED: wd device is not required
159 * mei_wdt_ping - send wd start/ping command
187 * mei_wdt_stop - send wd stop command
214 * mei_wdt_ops_start - wd start command from the watchdog core.
230 * mei_wdt_ops_stop - wd stop command from the watchdog core.
[all …]
/linux/arch/mips/include/asm/
H A Dasmmacro.h267 .macro ld_b wd, off, base
272 ld.b $w\wd, \off(\base)
276 .macro ld_h wd, off, base
281 ld.h $w\wd, \off(\base)
285 .macro ld_w wd, off, base
290 ld.w $w\wd, \off(\base)
294 .macro ld_d wd, off, base
299 ld.d $w\wd, \off(\base)
303 .macro st_b wd, off, base
308 st.b $w\wd, \off(\base)
[all …]
/linux/fs/befs/
H A DChangeLog23 interface into their own file called linuxvfs.c. [WD]
27 * Did the string comparison really right this time (btree.c) [WD]
30 a pointer value. (btree.c) [WD]
35 a workaround for this problem (compatibility.h) [WD]
41 * Made a debian package of the source for use with kernel-package. [WD]
48 0.61. (datastream.c) [WD]
56 (btree.c) [WD]
59 they work. I had forgotten all about them. (inode.c, symlink.c) [WD]
61 * Documentation improvements in source. [WD]
71 * Fixed makefile for module install [WD]
[all …]
/linux/fs/notify/inotify/
H A Dinotify_user.c220 inotify_event.wd = event->wd; in copy_event_to_user()
405 i_mark->wd = ret; in inotify_add_to_idr()
415 int wd) in inotify_idr_find_locked() argument
423 i_mark = idr_find(idr, wd); in inotify_idr_find_locked()
436 int wd) in inotify_idr_find() argument
442 i_mark = inotify_idr_find_locked(group, wd); in inotify_idr_find()
458 int wd; in inotify_remove_from_idr() local
461 wd = i_mark->wd; in inotify_remove_from_idr()
467 if (wd == -1) { in inotify_remove_from_idr()
468 WARN_ONCE(1, "%s: i_mark=%p i_mark->wd=%d i_mark->group=%p\n", in inotify_remove_from_idr()
[all …]
H A Dinotify_fsnotify.c42 (old->wd == new->wd) && in event_compare()
68 int len = 0, wd; in inotify_handle_inode_event() local
85 * invalid wd. in inotify_handle_inode_event()
87 wd = READ_ONCE(i_mark->wd); in inotify_handle_inode_event()
88 if (wd == -1) in inotify_handle_inode_event()
120 event->wd = wd; in inotify_handle_inode_event()
173 printk(KERN_WARNING "fsn_mark->group=%p wd=%d\n", in idr_callback()
174 fsn_mark->group, i_mark->wd); in idr_callback()
H A Dinotify.h9 int wd; member
17 int wd; member
/linux/drivers/acpi/
H A Dglue.c138 struct find_child_walk_data *wd = data; in check_one_child() local
141 if (!adev->pnp.type.bus_address || acpi_device_adr(adev) != wd->address) in check_one_child()
144 if (!wd->adev) { in check_one_child()
150 wd->adev = adev; in check_one_child()
151 return !(wd->check_sta || wd->check_children); in check_one_child()
162 if (!wd->score) { in check_one_child()
163 score = find_child_checks(wd->adev, wd->check_children); in check_one_child()
167 wd->score = score; in check_one_child()
174 score = find_child_checks(adev, wd->check_children); in check_one_child()
175 if (score > wd->score) { in check_one_child()
[all …]
/linux/Documentation/translations/zh_CN/core-api/
H A Derrseq.rst70 struct worker_drone wd;
72 wd.wd_err = (errseq_t)0;
84 su.s_wd_err = errseq_sample(&wd.wd_err);
91 err = errseq_check_and_advance(&wd.wd_err, &su.s_wd_err);
99 errseq_set(&wd.wd_err, -EIO);
112 errseq_t since = errseq_sample(&wd.wd_err);
114 err = errseq_check(&wd.wd_err, since);
131 if (errseq_check(&wd.wd_err, READ_ONCE(su.s_wd_err)) {
134 err = errseq_check_and_advance(&wd.wd_err, &su.s_wd_err);
/linux/arch/mips/sgi-ip30/
H A Dip30-xtalk.c42 struct sgi_w1_platform_data *wd; in bridge_platform_create() local
47 wd = kzalloc_obj(*wd); in bridge_platform_create()
48 if (!wd) { in bridge_platform_create()
53 snprintf(wd->dev_id, sizeof(wd->dev_id), "bridge-%012lx", in bridge_platform_create()
71 if (platform_device_add_data(pdev_wd, wd, sizeof(*wd))) { in bridge_platform_create()
80 kfree(wd); in bridge_platform_create()
133 kfree(wd); in bridge_platform_create()
/linux/arch/mips/sgi-ip27/
H A Dip27-xtalk.c29 struct sgi_w1_platform_data *wd; in bridge_platform_create() local
37 wd = kzalloc_obj(*wd); in bridge_platform_create()
38 if (!wd) { in bridge_platform_create()
43 snprintf(wd->dev_id, sizeof(wd->dev_id), "bridge-%012lx", in bridge_platform_create()
61 if (platform_device_add_data(pdev_wd, wd, sizeof(*wd))) { in bridge_platform_create()
70 kfree(wd); in bridge_platform_create()
124 kfree(wd); in bridge_platform_create()
/linux/Documentation/core-api/
H A Derrseq.rst71 struct worker_drone wd;
73 wd.wd_err = (errseq_t)0;
85 su.s_wd_err = errseq_sample(&wd.wd_err);
93 err = errseq_check_and_advance(&wd.wd_err, &su.s_wd_err);
103 errseq_set(&wd.wd_err, -EIO);
122 errseq_t since = errseq_sample(&wd.wd_err);
124 err = errseq_check(&wd.wd_err, since);
146 if (errseq_check(&wd.wd_err, READ_ONCE(su.s_wd_err))) {
149 err = errseq_check_and_advance(&wd.wd_err, &su.s_wd_err);
/linux/tools/testing/selftests/ftrace/test.d/ftrace/
H A Dfgraph-multi.tc12 WD=`pwd`
15 cd $WD
82 cd $WD
85 cd $WD
95 cd $WD
H A Dfgraph-multi-filter.tc11 WD=`pwd`
14 cd $WD
/linux/drivers/usb/misc/
H A Dusb-ljca.c434 struct ljca_match_ids_walk_data *wd = data; in ljca_match_device_ids() local
437 if (acpi_match_device_ids(adev, wd->ids)) in ljca_match_device_ids()
440 if (!wd->uid) in ljca_match_device_ids()
454 uid = strchr(uid, wd->uid[0]); in ljca_match_device_ids()
456 if (!uid || strcmp(uid, wd->uid)) in ljca_match_device_ids()
460 wd->adev = adev; in ljca_match_device_ids()
470 struct ljca_match_ids_walk_data wd = { 0 }; in ljca_auxdev_acpi_bind() local
485 wd.ids = ljca_gpio_hids; in ljca_auxdev_acpi_bind()
490 wd.uid = uid; in ljca_auxdev_acpi_bind()
491 wd.ids = ljca_i2c_hids; in ljca_auxdev_acpi_bind()
[all …]
H A Dusbio.c710 struct usbio_match_ids_walk_data *wd = data; in usbio_match_device_ids() local
714 if (acpi_match_device_ids(adev, wd->hids)) in usbio_match_device_ids()
725 if (!uid || wd->id == id) { in usbio_match_device_ids()
726 wd->adev = adev; in usbio_match_device_ids()
737 struct usbio_match_ids_walk_data wd = { in usbio_acpi_bind() local
747 acpi_dev_for_each_child(parent, usbio_match_device_ids, &wd); in usbio_acpi_bind()
748 if (wd.adev) in usbio_acpi_bind()
749 ACPI_COMPANION_SET(dev, wd.adev); in usbio_acpi_bind()
/linux/include/cxl/
H A Devent.h291 int cxl_cper_kfifo_get(struct cxl_cper_work_data *wd);
294 int cxl_cper_prot_err_kfifo_get(struct cxl_cper_prot_err_work_data *wd);
302 static inline int cxl_cper_kfifo_get(struct cxl_cper_work_data *wd) in cxl_cper_kfifo_get() argument
308 static inline int cxl_cper_prot_err_kfifo_get(struct cxl_cper_prot_err_work_data *wd) in cxl_cper_prot_err_kfifo_get() argument
316 int cxl_cper_setup_prot_err_work_data(struct cxl_cper_prot_err_work_data *wd,
326 cxl_cper_setup_prot_err_work_data(struct cxl_cper_prot_err_work_data *wd, in cxl_cper_setup_prot_err_work_data() argument
334 void cxl_cper_handle_prot_err(struct cxl_cper_prot_err_work_data *wd);
/linux/drivers/base/power/
H A Dmain.c530 #define DECLARE_DPM_WATCHDOG_ON_STACK(wd) \ argument
531 struct dpm_watchdog wd
605 struct dpm_watchdog *wd = timer_container_of(wd, t, timer); in dpm_watchdog_handler() local
606 struct timer_list *timer = &wd->timer; in dpm_watchdog_handler()
609 if (wd->fatal) { in dpm_watchdog_handler()
612 dev_emerg(wd->dev, "**** DPM device timeout ****\n"); in dpm_watchdog_handler()
613 show_stack(wd->tsk, NULL, KERN_EMERG); in dpm_watchdog_handler()
617 dev_driver_string(wd->dev), dev_name(wd->dev)); in dpm_watchdog_handler()
621 dev_warn(wd->dev, "**** DPM device timeout after %u seconds; %u seconds until panic ****\n", in dpm_watchdog_handler()
623 show_stack(wd->tsk, NULL, KERN_WARNING); in dpm_watchdog_handler()
[all …]
/linux/lib/raid/raid6/riscv/
H A Drvv.c57 * wd$$ = *(unative_t *)&dptr[z][d+$$*NSIZE]; in raid6_rvv1_gen_syndrome_real()
58 * wq$$ = w1$$ ^ wd$$; in raid6_rvv1_gen_syndrome_real()
59 * wp$$ ^= wd$$; in raid6_rvv1_gen_syndrome_real()
133 * wd$$ = *(unative_t *)&dptr[z][d+$$*NSIZE]; in raid6_rvv1_xor_syndrome_real()
134 * wq$$ = w1$$ ^ wd$$; in raid6_rvv1_xor_syndrome_real()
135 * wp$$ ^= wd$$; in raid6_rvv1_xor_syndrome_real()
238 * wd$$ = *(unative_t *)&dptr[z][d+$$*NSIZE]; in raid6_rvv2_gen_syndrome_real()
239 * wq$$ = w1$$ ^ wd$$; in raid6_rvv2_gen_syndrome_real()
240 * wp$$ ^= wd$$; in raid6_rvv2_gen_syndrome_real()
333 * wd$$ = *(unative_t *)&dptr[z][d+$$*NSIZE]; in raid6_rvv2_xor_syndrome_real()
[all …]
/linux/drivers/mfd/
H A Dmfd-core.c45 struct match_ids_walk_data *wd = data; in match_device_ids() local
47 if (!acpi_match_device_ids(adev, wd->ids)) { in match_device_ids()
48 wd->adev = adev; in match_device_ids()
78 struct match_ids_walk_data wd = { in mfd_acpi_add_device() local
84 acpi_dev_for_each_child(parent, match_device_ids, &wd); in mfd_acpi_add_device()
85 adev = wd.adev; in mfd_acpi_add_device()
/linux/tools/testing/selftests/cgroup/
H A Dtest_memcontrol.c1667 if (event.mask != expected_event || event.wd != expected_wd) { in read_event()
1669 "event does not match expected values: mask %d (expected %d) wd %d (expected %d)\n", in read_event()
1670 event.mask, expected_event, event.wd, expected_wd); in read_event()
1681 int fd, wd; in test_memcg_inotify_delete_file() local
1695 wd = inotify_add_watch(fd, cg_control(memcg, "memory.events"), IN_DELETE_SELF); in test_memcg_inotify_delete_file()
1696 if (wd == -1) in test_memcg_inotify_delete_file()
1704 if (read_event(fd, IN_DELETE_SELF, wd)) in test_memcg_inotify_delete_file()
1707 if (read_event(fd, IN_IGNORED, wd)) in test_memcg_inotify_delete_file()
1726 int fd, wd; in test_memcg_inotify_delete_dir() local
1740 wd = inotify_add_watch(fd, memcg, IN_DELETE_SELF); in test_memcg_inotify_delete_dir()
[all …]
/linux/include/uapi/linux/
H A Dinotify.h19 * such as IN_CREATE, IN_DELETE, IN_OPEN, IN_CLOSE, ..., relative to the wd.
22 __s32 wd; /* watch descriptor */ member
/linux/drivers/net/ethernet/qlogic/qlcnic/
H A Dqlcnic_hw.c31 u32 wd[4]; member
1304 ms->wd[0] = QLCNIC_MS_WRTDATA_LO; in qlcnic_set_ms_controls()
1306 ms->wd[1] = QLCNIC_MS_WRTDATA_HI; in qlcnic_set_ms_controls()
1308 ms->wd[2] = QLCNIC_MS_WRTDATA_ULO; in qlcnic_set_ms_controls()
1309 ms->wd[3] = QLCNIC_MS_WRTDATA_UHI; in qlcnic_set_ms_controls()
1313 ms->wd[0] = QLCNIC_MS_WRTDATA_ULO; in qlcnic_set_ms_controls()
1315 ms->wd[1] = QLCNIC_MS_WRTDATA_UHI; in qlcnic_set_ms_controls()
1317 ms->wd[2] = QLCNIC_MS_WRTDATA_LO; in qlcnic_set_ms_controls()
1318 ms->wd[3] = QLCNIC_MS_WRTDATA_HI; in qlcnic_set_ms_controls()
1372 qlcnic_ind_wr(adapter, ms.wd[0], qlcnic_ind_rd(adapter, ms.rd[0])); in qlcnic_pci_mem_write_2M()
[all …]
/linux/kernel/time/
H A Dtick-broadcast.c109 static void tick_oneshot_wakeup_handler(struct clock_event_device *wd) in tick_oneshot_wakeup_handler() argument
111 wd->next_event_forced = 0; in tick_oneshot_wakeup_handler()
943 struct clock_event_device *dev, *wd; in tick_oneshot_wakeup_control() local
949 wd = tick_get_oneshot_wakeup_device(cpu); in tick_oneshot_wakeup_control()
950 if (!wd) in tick_oneshot_wakeup_control()
956 clockevents_switch_state(wd, CLOCK_EVT_STATE_ONESHOT); in tick_oneshot_wakeup_control()
957 clockevents_program_event(wd, dev->next_event, 1); in tick_oneshot_wakeup_control()
961 if (clockevent_get_state(wd) != CLOCK_EVT_STATE_ONESHOT) in tick_oneshot_wakeup_control()

1234