/netbsd/sys/arch/mmeye/stand/boot/ |
H A D | wd.c | 58 memcpy(&wd->sc_params, buf, sizeof wd->sc_params); in wd_get_params() 70 wd->sc_capacity = in wd_get_params() 80 wd->sc_capacity28 = in wd_get_params() 88 wd->sc_capacity = wd->sc_capacity28 = in wd_get_params() 93 wd->sc_capacity = wd->sc_capacity28 = in wd_get_params() 99 wd->sc_capacity, wd->sc_capacity28)); in wd_get_params() 163 wdgetdefaultlabel(wd, &wd->sc_label); in wdgetdisklabel() 210 if (wd == NULL) in wdopen() 227 f->f_devdata = wd; in wdopen() 260 wd = f; in wdstrategy() [all …]
|
H A D | wdc.c | 295 struct wdc_channel *chp = &wd->sc_channel; in wdccommandext() 351 if ((error = wdccommand(wd, &wd_c)) != 0) in wdc_exec_identify() 354 return wdc_read_block(wd, &wd_c); in wdc_exec_identify() 375 wd_c.bcount = wd->sc_label.d_secsize; in wdc_exec_read() 377 if ((wd->sc_flags & WDF_LBA48) != 0 && blkno > wd->sc_capacity28) in wdc_exec_read() 379 else if ((wd->sc_flags & WDF_LBA) != 0) in wdc_exec_read() 398 blkno /= wd->sc_label.d_nsectors; in wdc_exec_read() 400 blkno /= wd->sc_label.d_ntracks; in wdc_exec_read() 406 error = wdccommandext(wd, &wd_c); in wdc_exec_read() 408 error = wdccommand(wd, &wd_c); in wdc_exec_read() [all …]
|
/netbsd/sys/arch/cobalt/stand/boot/ |
H A D | wd.c | 73 wd->sc_capacity = in wd_get_params() 83 wd->sc_capacity28 = in wd_get_params() 91 wd->sc_capacity = wd->sc_capacity28 = in wd_get_params() 96 wd->sc_capacity = wd->sc_capacity28 = in wd_get_params() 102 wd->sc_capacity, wd->sc_capacity28)); in wd_get_params() 161 wdgetdefaultlabel(wd, &wd->sc_label); in wdgetdisklabel() 195 lp = &wd->sc_label; in wdgetdisklabel() 234 if (wd == NULL) in wdopen() 251 f->f_devdata = wd; in wdopen() 284 wd = f; in wdstrategy() [all …]
|
H A D | wdc.c | 309 wd_c.drive = wd->sc_unit; in wdc_exec_identify() 317 return wdc_read_block(wd, &wd_c); in wdc_exec_identify() 337 wd_c.drive = wd->sc_unit; in wdc_exec_read() 338 wd_c.bcount = wd->sc_label.d_secsize; in wdc_exec_read() 340 if ((wd->sc_flags & WDF_LBA48) != 0 && blkno > wd->sc_capacity28) in wdc_exec_read() 342 else if ((wd->sc_flags & WDF_LBA) != 0) in wdc_exec_read() 361 blkno /= wd->sc_label.d_nsectors; in wdc_exec_read() 363 blkno /= wd->sc_label.d_ntracks; in wdc_exec_read() 369 error = wdccommandext(wd, &wd_c); in wdc_exec_read() 371 error = wdccommand(wd, &wd_c); in wdc_exec_read() [all …]
|
/netbsd/sys/arch/bebox/stand/boot/ |
H A D | wd.c | 82 wd->sc_capacity = in wd_get_params() 92 wd->sc_capacity28 = in wd_get_params() 100 wd->sc_capacity = in wd_get_params() 108 wd->sc_capacity = wd->sc_capacity28 = in wd_get_params() 114 wd->sc_capacity, wd->sc_capacity28)); in wd_get_params() 174 wdgetdefaultlabel(wd, &wd->sc_label); in wdgetdisklabel() 207 lp = &wd->sc_label; in wdgetdisklabel() 251 if (wd == NULL) in wdopen() 266 f->f_devdata = wd; in wdopen() 299 wd = f; in wdstrategy() [all …]
|
H A D | wdc.c | 402 wdc_exec_identify(struct wd_softc *wd, void *data) in wdc_exec_identify() argument 406 if (wd->sc_ctlr != 0) in wdc_exec_identify() 426 if (wd->sc_ctlr != 0) in wdc_exec_read() 439 wd_c.drive = wd->sc_unit; in wdc_exec_read() 440 wd_c.bcount = wd->sc_label.d_secsize; in wdc_exec_read() 442 if ((wd->sc_flags & WDF_LBA48) != 0 && blkno > wd->sc_capacity28) in wdc_exec_read() 444 else if ((wd->sc_flags & WDF_LBA) != 0) in wdc_exec_read() 461 wd_c.r_sector = blkno % wd->sc_label.d_nsectors; in wdc_exec_read() 463 blkno /= wd->sc_label.d_nsectors; in wdc_exec_read() 464 wd_c.r_head = blkno % wd->sc_label.d_ntracks; in wdc_exec_read() [all …]
|
/netbsd/sys/dev/ata/ |
H A D | wd.c | 344 if (wd_get_params(wd, &wd->sc_params) != 0) { in wdattach() 430 wd->sc_capacity = wd->sc_capacity28; in wdattach() 443 wd->sc_capacity28 = wd->sc_capacity; in wdattach() 469 wd->sc_capacity512 = (wd->sc_capacity * wd->sc_blksize) / DEV_BSIZE; in wdattach() 572 wd->atabus->ata_killpending(wd->drvp); in wddetach() 802 wd->atabus->ata_bio(wd->drvp, xfer); in wdstart1() 1190 error = wd->atabus->ata_addref(wd->drvp); in wd_firstopen() 1212 wd->atabus->ata_delref(wd->drvp); in wd_firstopen() 1229 wd->atabus->ata_delref(wd->drvp); in wd_lastclose() 1672 wd->atabus->ata_bio(wd->drvp, xfer); in wd_dumpblocks() [all …]
|
H A D | ata_raidreg.h | 38 #define PR_LBA(wd) \ argument 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) \ argument 118 ((wd)->sc_capacity - 17) 175 #define VIA_LBA(wd) ((wd)->sc_capacity - 1) argument 207 #define NVIDIA_LBA(wd) ((wd)->sc_capacity - 2) argument 259 #define JMICRON_LBA(wd) ((wd)->sc_capacity - 1) argument [all …]
|
H A D | wdvar.h | 96 #define WD_USE_NCQ(wd) \ argument 97 ((wd)->drv_ncq && ((wd)->drvp->drive_flags & ATA_DRIVE_NCQ)) 99 #define WD_USE_NCQ_PRIO(wd) \ argument 100 ((wd)->drv_ncq_prio && ((wd)->drvp->drive_flags & ATA_DRIVE_NCQ_PRIO))
|
H A D | files.ata | 9 device wd: disk 10 attach wd at ata_hl 11 file dev/ata/wd.c wd needs-flag 12 file dev/ata/ata_wdc.c wd & atabus & wdc_common
|
/netbsd/external/apache2/llvm/dist/llvm/lib/Target/Mips/ |
H A D | MipsMSAInstrFormats.td | 32 bits<5> wd; 45 bits<5> wd; 58 bits<5> wd; 71 bits<5> wd; 84 bits<5> wd; 95 bits<5> wd; 106 bits<5> wd; 117 bits<5> wd; 129 bits<5> wd; 142 bits<5> wd; [all …]
|
H A D | MipsMSAInstrInfo.td | 1187 string Constraints = "$wd = $wd_in"; 1233 string Constraints = "$wd = $wd_in"; 1348 string Constraints = "$wd = $wd_in"; 1371 string Constraints = "$wd = $wd_in"; 1384 string Constraints = "$wd = $wd_in"; 1397 string Constraints = "$wd = $wd_in"; 1433 string Constraints = "$wd = $wd_in"; 1442 string Constraints = "$wd = $wd_in"; 1453 string Constraints = "$wd = $wd_in"; 2896 let Constraints = "$wd_in = $wd"; [all …]
|
H A D | MSA.txt | 72 bmz.v wd, ws, wt/i8 -> (vselect wt/i8, wd, ws) 73 bmnz.v wd, ws, wt/i8 -> (vselect wt/i8, ws, wd) 74 bsel.v wd, ws, wt/i8 -> (vselect wd, wt/i8, ws)
|
/netbsd/sys/dev/mca/ |
H A D | ed_mca.c | 294 struct ed_softc *wd; in edmcaopen() local 299 if (wd == NULL || (wd->sc_flags & EDF_INIT) == 0) in edmcaopen() 332 ed_get_params(wd, NULL); in edmcaopen() 336 edgetdisklabel(dev, wd); in edmcaopen() 357 wd->sc_dk.dk_openmask = in edmcaopen() 358 wd->sc_dk.dk_copenmask | wd->sc_dk.dk_bopenmask; in edmcaopen() 384 wd->sc_dk.dk_openmask = in edmcaclose() 385 wd->sc_dk.dk_copenmask | wd->sc_dk.dk_bopenmask; in edmcaclose() 579 struct ed_softc *wd; in edmcasize() local 586 if (wd == NULL) in edmcasize() [all …]
|
/netbsd/external/mit/libuv/dist/src/unix/ |
H A D | linux-inotify.c | 41 int wd; member 52 if (a->wd < b->wd) return -1; in compare_watchers() 53 if (a->wd > b->wd) return 1; in compare_watchers() 153 w.wd = wd; in find_watcher() 203 w = find_watcher(loop, e->wd); in uv__inotify_read() 257 int wd; in uv_fs_event_start() local 276 if (wd == -1) in uv_fs_event_start() 279 w = find_watcher(handle->loop, wd); in uv_fs_event_start() 288 w->wd = wd; in uv_fs_event_start() 299 handle->wd = wd; in uv_fs_event_start() [all …]
|
/netbsd/external/bsd/am-utils/dist/amq/ |
H A D | pawd.c | 226 char *wd = getcwd(path, MAXPATHLEN); in getawd() local 228 char *wd = getwd(path); in getawd() 231 if (wd == NULL) { in getawd() 234 xstrlcpy(path, transform_dir(wd), l); in getawd() 242 char tmp_buf[MAXPATHLEN], *wd; in main() local 245 wd = getawd(tmp_buf, sizeof(tmp_buf)); in main() 246 if (wd == NULL) { in main() 250 fprintf(stdout, "%s\n", wd); in main() 254 wd = transform_dir(*++argv); in main() 255 fprintf(stdout, "%s\n", wd); in main()
|
/netbsd/external/bsd/ntp/dist/tests/libntp/ |
H A D | calendar.c | 1074 yi, m, d, wd); in test_RellezEra() 1084 yi, m, d, wd); in test_RellezEra() 1095 yi, m, d, wd); in test_RellezEra() 1103 yi, m, d, wd); in test_RellezEra() 1118 unsigned int wd in zeller_expand() argument 1159 yi, m, d, wd); in test_zellerDirect() 1169 yi, m, d, wd); in test_zellerDirect() 1180 yi, m, d, wd); in test_zellerDirect() 1188 yi, m, d, wd); in test_zellerDirect() 1201 wd = (wd + 5) % 7 + 1; in test_ZellerDirectBad() [all …]
|
/netbsd/usr.sbin/rwhod/ |
H A D | rwhod.c | 266 struct whod wd; in handleread() local 288 if (wd.wd_vers != WHODVERSION) in handleread() 290 if (wd.wd_type != WHODTYPE_STATUS) in handleread() 296 wd.wd_hostname[sizeof(wd.wd_hostname)-1] = 0; in handleread() 297 if (!verify(wd.wd_hostname)) { in handleread() 318 wd.wd_sendtime = ntohl(wd.wd_sendtime); in handleread() 320 wd.wd_loadav[i] = ntohl(wd.wd_loadav[i]); in handleread() 321 wd.wd_boottime = ntohl(wd.wd_boottime); in handleread() 322 we = wd.wd_we; in handleread() 331 wd.wd_recvtime = time(NULL); in handleread() [all …]
|
/netbsd/usr.bin/btkey/ |
H A D | btkey.c | 57 bool cf, cd, lf, ld, rf, rd, wf, wd, nk; in main() local 62 cf = cd = lf = ld = rf = rd = wf = wd = nk = false; in main() 125 wd = true; in main() 139 if ((lf || ld) && (rf || rd || wf || wd || cf || cd || nk)) in main() 142 if (((rf && rd) || (rf && nk) || (rd && nk)) && (wf || wd)) in main() 182 if (wf || wd || cf || cd) in main() 192 if (wd) { in main()
|
/netbsd/external/lgpl3/mpfr/dist/src/ |
H A D | dump.c | 70 mp_limb_t wd, t; in mpfr_fdump() local 72 wd = mx[n]; in mpfr_fdump() 75 if (! MPFR_LIMB_MSB (wd)) in mpfr_fdump() 81 putc ((wd & t) == 0 ? '0' : '1', stream); in mpfr_fdump() 85 if (t != 0 && (wd & (t - 1)) != 0) in mpfr_fdump()
|
/netbsd/external/bsd/tmux/dist/ |
H A D | osdep-darwin.c | 75 static char wd[PATH_MAX]; in osdep_get_cwd() local 86 strlcpy(wd, pathinfo.pvi_cdir.vip_path, sizeof wd); in osdep_get_cwd() 87 return (wd); in osdep_get_cwd()
|
H A D | osdep-freebsd.c | 139 static char wd[PATH_MAX]; in osdep_get_cwd_fallback() local 152 strlcpy(wd, info[i].kf_path, sizeof wd); in osdep_get_cwd_fallback() 154 return (wd); in osdep_get_cwd_fallback()
|
/netbsd/usr.bin/rwho/ |
H A D | rwho.c | 82 struct whod wd; in main() local 137 cc = read(f, &wd, sizeof (wd)); in main() 143 if (DOWN(wd, now)) { in main() 148 we = wd.wd_we; in main() 166 (void)strcpy(mp->myhost, wd.wd_hostname); in main()
|
/netbsd/sys/ufs/ffs/ |
H A D | ffs_wapbl.c | 178 struct wapbl_dealloc *wd; in ffs_wapbl_sync_metadata() local 182 for (wd = fdealloc; wd != NULL; wd = TAILQ_NEXT(wd, wd_entries)) { in ffs_wapbl_sync_metadata() 188 FFS_DBTOFSB(fs, wd->wd_blkno), wd->wd_len, -1); in ffs_wapbl_sync_metadata() 204 struct wapbl_dealloc *wd; in ffs_wapbl_abort_sync_metadata() local 206 for (wd = fdealloc; wd != NULL; wd = TAILQ_NEXT(wd, wd_entries)) { in ffs_wapbl_abort_sync_metadata() 213 ffs_blkalloc_ump(ump, FFS_DBTOFSB(fs, wd->wd_blkno), in ffs_wapbl_abort_sync_metadata() 214 wd->wd_len); in ffs_wapbl_abort_sync_metadata()
|
/netbsd/usr.bin/ruptime/ |
H A D | ruptime.c | 83 struct whod *wd; in main() local 147 for (wd = (struct whod *)buf, i = 0; i < 2; ++i) in main() 148 if (wd->wd_loadav[i] > maxloadav) in main() 149 maxloadav = wd->wd_loadav[i]; in main() 152 we = (struct whoent *)(buf + cc); --we >= wd->wd_we;) in main()
|