Searched refs:wd (Results 1 - 25 of 113) sorted by relevance

12345

/netbsd-current/sys/arch/mmeye/stand/boot/
H A Dwd.c1 /* $NetBSD: wd.c,v 1.5 2019/01/08 19:36:57 jdolecek Exp $ */
42 static int wd_get_params(struct wd_softc *wd);
43 static int wdgetdisklabel(struct wd_softc *wd);
44 static void wdgetdefaultlabel(struct wd_softc *wd, struct disklabel *lp);
50 wd_get_params(struct wd_softc *wd) argument
55 if ((error = wdc_exec_identify(wd, buf)) != 0)
58 memcpy(&wd->sc_params, buf, sizeof wd->sc_params);
61 if ((wd->sc_params.atap_cmd2_en & ATA_CMD2_LBA48) != 0)
62 wd
108 wdgetdefaultlabel(struct wd_softc *wd, struct disklabel *lp) argument
156 wdgetdisklabel(struct wd_softc *wd) argument
200 struct wd_softc *wd; local
249 struct wd_softc *wd; local
[all...]
H A Dwdc.c281 printf("wd%d: error %x\n", chp->compatchan,
293 wdccommandext(struct wd_softc *wd, struct wdc_command *wd_c) argument
295 struct wdc_channel *chp = &wd->sc_channel;
327 printf("wd%d: error %x\n", chp->compatchan,
339 wdc_exec_identify(struct wd_softc *wd, void *data) argument
351 if ((error = wdccommand(wd, &wd_c)) != 0)
354 return wdc_read_block(wd, &wd_c);
361 wdc_exec_read(struct wd_softc *wd, uint8_t cmd, daddr_t blkno, void *data) argument
375 wd_c.bcount = wd->sc_label.d_secsize;
377 if ((wd
[all...]
/netbsd-current/sys/arch/cobalt/stand/boot/
H A Dwd.c1 /* $NetBSD: wd.c,v 1.18 2019/01/08 19:41:09 jdolecek Exp $ */
44 static int wd_get_params(struct wd_softc *wd);
45 static int wdgetdisklabel(struct wd_softc *wd);
46 static void wdgetdefaultlabel(struct wd_softc *wd, struct disklabel *lp);
52 wd_get_params(struct wd_softc *wd) argument
58 if ((error = wdc_exec_identify(wd, buf)) != 0)
61 wd->sc_params = *params;
64 if ((wd->sc_params.atap_cmd2_en & ATA_CMD2_LBA48) != 0)
65 wd->sc_flags |= WDF_LBA48;
68 if ((wd
111 wdgetdefaultlabel(struct wd_softc *wd, struct disklabel *lp) argument
152 wdgetdisklabel(struct wd_softc *wd) argument
224 struct wd_softc *wd; local
273 struct wd_softc *wd; local
[all...]
H A Dwdc.c244 printf("wd%d: error %x\n", chp->compatchan,
256 wdccommandext(struct wd_softc *wd, struct wdc_command *wd_c) argument
258 struct wdc_channel *chp = &wd->sc_channel;
290 printf("wd%d: error %x\n", chp->compatchan,
302 wdc_exec_identify(struct wd_softc *wd, void *data) argument
309 wd_c.drive = wd->sc_unit;
314 if ((error = wdccommand(wd, &wd_c)) != 0)
317 return wdc_read_block(wd, &wd_c);
324 wdc_exec_read(struct wd_softc *wd, uint8_t cmd, daddr_t blkno, void *data) argument
337 wd_c.drive = wd
[all...]
/netbsd-current/sys/arch/bebox/stand/boot/
H A Dwd.c1 /* $NetBSD: wd.c,v 1.4 2019/01/08 19:41:09 jdolecek Exp $ */
50 static int wd_get_params(struct wd_softc *wd);
51 static int wdgetdisklabel(struct wd_softc *wd);
52 static void wdgetdefaultlabel(struct wd_softc *wd, struct disklabel *lp);
62 wd_get_params(struct wd_softc *wd) argument
67 if ((error = wdc_exec_identify(wd, buf)) != 0)
70 wd->sc_params = *(struct ataparams *)buf;
73 if ((wd->sc_params.atap_cmd2_en & ATA_CMD2_LBA48) != 0)
74 wd->sc_flags |= WDF_LBA48;
77 if ((wd
123 wdgetdefaultlabel(struct wd_softc *wd, struct disklabel *lp) argument
164 wdgetdisklabel(struct wd_softc *wd) argument
236 struct wd_softc *wd; local
288 struct wd_softc *wd; local
[all...]
H A Dwdc.c402 wdc_exec_identify(struct wd_softc *wd, void *data) argument
406 if (wd->sc_ctlr != 0)
412 return _wdc_exec_identify(chp, wd->sc_unit, data);
419 wdc_exec_read(struct wd_softc *wd, uint8_t cmd, daddr_t blkno, void *data) argument
426 if (wd->sc_ctlr != 0)
439 wd_c.drive = wd->sc_unit;
440 wd_c.bcount = wd->sc_label.d_secsize;
442 if ((wd->sc_flags & WDF_LBA48) != 0 && blkno > wd->sc_capacity28)
444 else if ((wd
[all...]
/netbsd-current/external/mit/libuv/dist/include/uv/
H A Dlinux.h32 int wd; \
/netbsd-current/sys/dev/ata/
H A Dwd.c1 /* $NetBSD: wd.c,v 1.469 2024/02/05 21:46:06 andvar Exp $ */
57 __KERNEL_RCSID(0, "$NetBSD: wd.c,v 1.469 2024/02/05 21:46:06 andvar Exp $");
132 CFATTACH_DECL3_NEW(wd, sizeof(struct wd_softc),
309 struct wd_softc *wd = device_private(self); local
310 struct dk_softc *dksc = &wd->sc_dksc;
320 mutex_init(&wd->sc_lock, MUTEX_DEFAULT, IPL_BIO);
322 SLIST_INIT(&wd->sc_bslist);
323 cv_init(&wd->sc_bslist_cv, "wdbadsect");
325 wd->atabus = adev->adev_bustype;
326 wd
550 struct wd_softc *wd = device_private(self); local
635 struct wd_softc *wd = local
693 wdstart1(struct wd_softc *wd, struct buf *bp, struct ata_xfer *xfer) argument
810 struct wd_softc *wd = device_private(dev); local
882 struct wd_softc *wd = device_private(self); local
897 struct wd_softc *wd = device_private(self); local
1059 struct wd_softc *wd = v; local
1076 struct wd_softc *wd = v; local
1093 const struct wd_softc * const wd = local
1147 struct wd_softc *wd; local
1186 struct wd_softc *wd = device_private(self); local
1222 struct wd_softc *wd = device_private(self); local
1238 struct wd_softc *wd; local
1250 wdperror(const struct wd_softc *wd, struct ata_xfer *xfer) argument
1292 struct wd_softc *wd = local
1530 struct wd_softc *wd = device_private(dev); local
1571 struct wd_softc *wd; local
1595 struct wd_softc *wd; local
1619 struct wd_softc *wd; local
1640 struct wd_softc *wd = device_private(dev); local
1719 bad144intern(struct wd_softc *wd) argument
1742 wd_set_geometry(struct wd_softc *wd) argument
1760 wd_get_params(struct wd_softc *wd, struct ataparams *params) argument
1805 wd_getcache(struct wd_softc *wd, int *bitsp) argument
1851 wd_setcache(struct wd_softc *wd, int bits) argument
1891 wd_standby(struct wd_softc *wd, int flags) argument
1915 wd_flushcache(struct wd_softc *wd, int flags) argument
1956 wd_trim(struct wd_softc *wd, daddr_t bno, long size) argument
2005 struct wd_softc *wd = device_private(dev); local
2022 wi_get(struct wd_softc *wd) argument
2209 wd_sysctl_attach(struct wd_softc *wd) argument
2284 wd_sysctl_detach(struct wd_softc *wd) argument
2295 struct wd_softc *wd; local
[all...]
H A Dwdvar.h96 #define WD_USE_NCQ(wd) \
97 ((wd)->drv_ncq && ((wd)->drvp->drive_flags & ATA_DRIVE_NCQ))
99 #define WD_USE_NCQ_PRIO(wd) \
100 ((wd)->drv_ncq_prio && ((wd)->drvp->drive_flags & ATA_DRIVE_NCQ_PRIO))
H A Data_raidreg.h38 #define PR_LBA(wd) \
39 ((((wd)->sc_capacity / \
40 ((wd)->sc_params.atap_heads * (wd)->sc_params.atap_sectors)) * \
41 (wd)->sc_params.atap_heads * (wd)->sc_params.atap_sectors) - \
42 (wd)->sc_params.atap_sectors)
117 #define ADP_LBA(wd) \
118 ((wd)->sc_capacity - 17)
175 #define VIA_LBA(wd) ((w
[all...]
/netbsd-current/external/mit/libuv/dist/src/unix/
H A Dlinux-inotify.c41 int wd; member in struct:watcher_list
52 if (a->wd < b->wd) return -1;
53 if (a->wd > b->wd) return 1;
151 static struct watcher_list* find_watcher(uv_loop_t* loop, int wd) { argument
153 w.wd = wd;
162 inotify_rm_watch(loop->inotify_fd, w->wd);
203 w = find_watcher(loop, e->wd);
257 int wd; local
[all...]
/netbsd-current/external/lgpl3/mpfr/dist/src/
H A Ddump.c70 mp_limb_t wd, t; local
72 wd = mx[n];
75 if (! MPFR_LIMB_MSB (wd))
81 putc ((wd & t) == 0 ? '0' : '1', stream);
85 if (t != 0 && (wd & (t - 1)) != 0)
/netbsd-current/sys/dev/mca/
H A Ded_mca.c294 struct ed_softc *wd; local
298 wd = device_lookup_private(&ed_cd, DISKUNIT(dev));
299 if (wd == NULL || (wd->sc_flags & EDF_INIT) == 0)
304 mutex_enter(&wd->sc_dk.dk_openlock);
310 if (wd->sc_dk.dk_nwedges != 0 && part != RAW_PART) {
315 if (wd->sc_dk.dk_openmask != 0) {
320 if ((wd->sc_flags & WDF_LOADED) == 0) {
325 if ((wd->sc_flags & WDF_LOADED) == 0) {
328 wd
369 struct ed_softc *wd = device_lookup_private(&ed_cd, DISKUNIT(dev)); local
579 struct ed_softc *wd; local
[all...]
/netbsd-current/external/bsd/tmux/dist/
H A Dosdep-darwin.c75 static char wd[PATH_MAX]; local
86 strlcpy(wd, pathinfo.pvi_cdir.vip_path, sizeof wd);
87 return (wd);
H A Dosdep-freebsd.c139 static char wd[PATH_MAX]; local
152 strlcpy(wd, info[i].kf_path, sizeof wd);
154 return (wd);
/netbsd-current/tests/compat/linux/
H A Dh_inotify_watch_change.c44 int fd, wd, targetfd; local
51 RS(wd = syscall(LINUX_SYS_inotify_add_watch, fd, (register_t)"test",
63 RS(wd = syscall(LINUX_SYS_inotify_add_watch, fd, (register_t)"test",
75 RS(wd = syscall(LINUX_SYS_inotify_add_watch, fd, (register_t)"test",
H A Dh_inotify_directory.c65 int fd, wd, targetfd; local
72 RS(wd = syscall(LINUX_SYS_inotify_add_watch, fd, (register_t)"test",
90 REQUIRE(cur_ie->wd == wd);
H A Dh_inotify_single_file.c49 int fd, wd, targetfd, buf; local
55 RS(wd = syscall(LINUX_SYS_inotify_add_watch, fd, (register_t)"test",
72 REQUIRE(events[i].wd == wd && events[i].cookie == 0
/netbsd-current/external/bsd/am-utils/dist/amq/
H A Dpawd.c226 char *wd = getcwd(path, MAXPATHLEN); local
228 char *wd = getwd(path);
231 if (wd == NULL) {
234 xstrlcpy(path, transform_dir(wd), l);
242 char tmp_buf[MAXPATHLEN], *wd; local
245 wd = getawd(tmp_buf, sizeof(tmp_buf));
246 if (wd == NULL) {
250 fprintf(stdout, "%s\n", wd);
254 wd = transform_dir(*++argv);
255 fprintf(stdout, "%s\n", wd);
[all...]
/netbsd-current/sys/compat/linux/common/
H A Dlinux_inotify.c422 int wd, i, error = 0; local
465 /* Check to see if we already have a descriptor to wd's file. */
466 wd = -1;
471 DPRINTF(("%s: wd=%d was closed externally\n",
477 DPRINTF(("%s: wd=%d was replaced "
482 wd = i;
487 if (wd != -1)
492 if (wd == -1) {
494 * If we do not have a descriptor to wd's file, we
508 wd
616 inotify_close_wd(struct inotifyfd *ifd, int wd) argument
671 const int wd = SCARG(uap, wd); local
739 do_kevent_to_inotify(int32_t wd, uint32_t mask, uint32_t cookie, struct inotify_entry *buf, size_t *nbuf, char *name) argument
821 get_inotify_dir_entries(int wd, bool needs_lock) argument
900 handle_write(struct inotifyfd *ifd, int wd, struct inotify_entry *buf, size_t *nbuf) argument
976 kevent_to_inotify(struct inotifyfd *ifd, int wd, enum vtype wtype, uint32_t flags, uint32_t fflags, struct inotify_entry *buf, size_t *nbuf) argument
[all...]
/netbsd-current/usr.bin/btkey/
H A Dbtkey.c57 bool cf, cd, lf, ld, rf, rd, wf, wd, nk; local
62 cf = cd = lf = ld = rf = rd = wf = wd = nk = false;
125 wd = true;
139 if ((lf || ld) && (rf || rd || wf || wd || cf || cd || nk))
142 if (((rf && rd) || (rf && nk) || (rd && nk)) && (wf || wd))
182 if (wf || wd || cf || cd)
192 if (wd) {
/netbsd-current/external/bsd/ntp/dist/tests/libntp/
H A Dcalendar.c1065 unsigned int yi, yo, m, d, wd; local
1071 wd = ntpcal_edate_to_eradays(yi-1, m-1, d-1) % 7 + 1;
1072 yo = ntpcal_expand_century((yi%100), m, d, wd);
1073 snprintf(mbuf, sizeof(mbuf), "failed, di=%04u-%02u-%02u, wd=%u",
1074 yi, m, d, wd);
1081 wd = ntpcal_edate_to_eradays(yi-1, m-1, d-1) % 7 + 1;
1082 yo = ntpcal_expand_century((yi%100), m, d, wd);
1083 snprintf(mbuf, sizeof(mbuf), "failed, di=%04u-%02u-%02u, wd=%u",
1084 yi, m, d, wd);
1092 wd
1150 unsigned int yi, yo, m, d, wd; local
1197 unsigned int y, n, wd; local
[all...]
/netbsd-current/external/gpl3/gdb.old/dist/gas/testsuite/gas/h8300/
H A Dpr3134.d1 # objdump: -wd
/netbsd-current/external/mpl/bind/dist/fuzz/
H A Ddns_message_checksig.c95 static char *wd = NULL; variable
153 if (wd != NULL && chdir(wd) == 0) {
174 if (rmdir(wd) != 0) {
175 fprintf(stderr, "rmdir(%s) failed\n", wd);
178 fprintf(stderr, "cleanup of %s failed\n", wd ? wd : "(null)");
197 wd = mkdtemp(template);
198 if (wd == NULL) {
203 snprintf(pathbuf, sizeof(pathbuf), "%s/%s", wd, f
[all...]
/netbsd-current/usr.sbin/rwhod/
H A Drwhod.c266 struct whod wd; local
270 cc = recvfrom(s, (char *)&wd, sizeof(struct whod), 0,
288 if (wd.wd_vers != WHODVERSION)
290 if (wd.wd_type != WHODTYPE_STATUS)
296 wd.wd_hostname[sizeof(wd.wd_hostname)-1] = 0;
297 if (!verify(wd.wd_hostname)) {
302 (void)snprintf(path, sizeof(path), "whod.%s", wd.wd_hostname);
318 wd.wd_sendtime = ntohl(wd
[all...]

Completed in 408 milliseconds

12345