/freebsd-current/sys/modules/firewire/ |
H A D | Makefile | 5 sbp \
|
/freebsd-current/sys/modules/firewire/sbp/ |
H A D | Makefile | 6 KMOD = sbp 9 sbp.c sbp.h \
|
/freebsd-current/tools/test/stress2/tools/ |
H A D | zapsb.c | 35 struct fs *sbp; local 51 sbp = (struct fs *)sblock; 52 if ((sbp->fs_magic == FS_UFS1_MAGIC || 53 (sbp->fs_magic == FS_UFS2_MAGIC && 54 sbp->fs_sblockloc == sblock_try[i])) && 55 sbp->fs_bsize <= MAXBSIZE && 56 sbp->fs_bsize >= (int)sizeof(struct fs)) 63 if ((sbp->fs_metackhash & CK_SUPERBLOCK) == 0) { 68 sbp->fs_ckhash = 0;
|
/freebsd-current/sys/kern/ |
H A D | subr_module.c | 316 preload_modinfo_type(struct sbuf *sbp, int type) argument 322 sbuf_cat(sbp, "MODINFO_END"); 325 sbuf_cat(sbp, "MODINFO_NAME"); 328 sbuf_cat(sbp, "MODINFO_TYPE"); 331 sbuf_cat(sbp, "MODINFO_ADDR"); 334 sbuf_cat(sbp, "MODINFO_SIZE"); 337 sbuf_cat(sbp, "MODINFO_EMPTY"); 340 sbuf_cat(sbp, "MODINFO_ARGS"); 343 sbuf_cat(sbp, "unrecognized modinfo attribute"); 349 sbuf_cat(sbp, "MODINFO_METADAT 436 preload_modinfo_value(struct sbuf *sbp, uint32_t *bptr, int type, int len) argument 501 preload_dump_internal(struct sbuf *sbp) argument [all...] |
/freebsd-current/sys/dev/firewire/ |
H A D | sbp.c | 61 #include <dev/firewire/sbp.h> 113 static SYSCTL_NODE(_hw_firewire, OID_AUTO, sbp, CTLFLAG_RD | CTLFLAG_MPSAFE, 0, 196 struct sbp_softc *sbp; member in struct:sbp_target 219 #define SBP_LOCK(sbp) mtx_lock(&(sbp)->mtx) 220 #define SBP_UNLOCK(sbp) mtx_unlock(&(sbp)->mtx) 221 #define SBP_LOCK_ASSERT(sbp) mtx_assert(&(sbp)->mtx, MA_OWNED) 247 static MALLOC_DEFINE(M_SBP, "sbp", "SB 377 sbp_new_target(struct sbp_softc *sbp, struct fw_device *fwdev) argument 420 struct sbp_softc *sbp; local 575 sbp_alloc_target(struct sbp_softc *sbp, struct fw_device *fwdev) argument 689 struct sbp_softc *sbp = target->sbp; local 765 struct sbp_softc *sbp; local 783 struct sbp_softc *sbp = (struct sbp_softc *)arg; local 965 struct sbp_softc *sbp; local 1053 struct sbp_softc *sbp; local 1605 struct sbp_softc *sbp; local 1886 struct sbp_softc *sbp; local 1899 struct sbp_softc *sbp; local 2008 sbp_logout_all(struct sbp_softc *sbp) argument 2039 struct sbp_softc *sbp = ((struct sbp_softc *)device_get_softc(dev)); local 2050 struct sbp_softc *sbp; local 2070 struct sbp_softc *sbp; local 2098 struct sbp_softc *sbp = ((struct sbp_softc *)device_get_softc(dev)); local 2272 struct sbp_softc *sbp = cam_sim_softc(sim); local 2628 struct sbp_softc *sbp; local [all...] |
/freebsd-current/sys/modules/firewire/sbp_targ/ |
H A D | Makefile | 9 sbp_targ.c sbp.h \
|
/freebsd-current/sys/fs/fdescfs/ |
H A D | fdesc_vfsops.c | 182 fdesc_statfs(struct mount *mp, struct statfs *sbp) argument 220 sbp->f_flags = mp->mnt_flag & MNT_IGNORE; 221 sbp->f_bsize = DEV_BSIZE; 222 sbp->f_iosize = DEV_BSIZE; 223 sbp->f_blocks = 2; /* 1K to keep df happy */ 224 sbp->f_bfree = 2; 225 sbp->f_bavail = 2; 226 sbp->f_files = lim + 1; /* Allow for "." */ 227 sbp->f_ffree = freefd; /* See comments above */
|
/freebsd-current/contrib/netbsd-tests/fs/puffs/h_dtfs/ |
H A D | dtfs_vfsops.c | 195 dtfs_fs_statvfs(struct puffs_usermount *pu, struct statvfs *sbp) argument 204 memset(sbp, 0, sizeof(struct statvfs)); 217 sbp->f_blocks = ROUND(btot, pgsize) / pgsize; 218 sbp->f_files = NFILES; 220 sbp->f_bsize = sbp->f_frsize = sbp->f_iosize = pgsize; 221 sbp->f_bfree = sbp->f_bavail = ROUND(bfree, pgsize) / pgsize; 222 sbp [all...] |
/freebsd-current/sys/fs/autofs/ |
H A D | autofs_vfsops.c | 193 autofs_statfs(struct mount *mp, struct statfs *sbp) argument 196 sbp->f_bsize = S_BLKSIZE; 197 sbp->f_iosize = 0; 198 sbp->f_blocks = 0; 199 sbp->f_bfree = 0; 200 sbp->f_bavail = 0; 201 sbp->f_files = 0; 202 sbp->f_ffree = 0;
|
/freebsd-current/contrib/libpcap/ |
H A D | dlpisubs.c | 143 struct sb_hdr *sbp; local 181 sbp = &sbhdr; 182 memcpy(sbp, bufp, sizeof(*sbp)); 185 sbp = (struct sb_hdr *)bufp; 186 pd->stat.ps_drop = sbp->sbh_drops; 187 pk = bufp + sizeof(*sbp); 188 bufp += sbp->sbh_totlen; 189 origlen = sbp->sbh_origlen; 190 caplen = sbp [all...] |
/freebsd-current/bin/pax/ |
H A D | gen_subs.c | 71 struct stat *sbp; local 90 sbp = &(arcn->sb); 91 strmode(sbp->st_mode, f_mode); 96 if ((sbp->st_mtime + SIXMONTHS) <= now) 104 if (strftime(f_date,DATELEN,timefrmt,localtime(&(sbp->st_mtime))) == 0) 107 (uintmax_t)sbp->st_nlink, 108 name_uid(sbp->st_uid, 1), name_gid(sbp->st_gid, 1)); 114 (void)fprintf(fp, "%4lu,%4lu ", (unsigned long)MAJOR(sbp->st_rdev), 115 (unsigned long)MINOR(sbp [all...] |
/freebsd-current/usr.bin/tail/ |
H A D | forward.c | 97 forward(FILE *fp, const char *fn, enum STYLE style, off_t off, struct stat *sbp) argument 105 if (S_ISREG(sbp->st_mode) && sbp->st_size > 0) { 106 if (sbp->st_size < off) 107 off = sbp->st_size; 137 if (S_ISREG(sbp->st_mode) && sbp->st_size > 0) { 138 if (sbp->st_size >= off && 154 if (S_ISREG(sbp->st_mode) && sbp 190 rlines(FILE *fp, const char *fn, off_t off, struct stat *sbp) argument [all...] |
H A D | reverse.c | 76 reverse(FILE *fp, const char *fn, enum STYLE style, off_t off, struct stat *sbp) argument 81 if (S_ISREG(sbp->st_mode)) 82 r_reg(fp, fn, style, off, sbp); 105 r_reg(FILE *fp, const char *fn, enum STYLE style, off_t off, struct stat *sbp) argument 111 if (!(size = sbp->st_size))
|
/freebsd-current/bin/mv/ |
H A D | mv.c | 262 fastcopy(const char *from, const char *to, struct stat *sbp) argument 302 oldmode = sbp->st_mode & ALLPERMS; 303 if (fchown(to_fd, sbp->st_uid, sbp->st_gid)) { 305 (u_long)sbp->st_uid, (u_long)sbp->st_gid); 310 sbp->st_mode &= ~(S_ISUID | S_ISGID); 313 if (fchmod(to_fd, sbp->st_mode)) 323 ts[0] = sbp->st_atim; 324 ts[1] = sbp [all...] |
/freebsd-current/sys/arm/broadcom/bcm2835/ |
H A D | bcm2835_rng.c | 195 bcm2835_rng_dump_registers(struct bcm2835_rng_softc *sc, struct sbuf *sbp) argument 206 sbuf_printf(sbp, "RNG_CTRL (%08x)\n", val); 209 sbuf_printf(sbp, " RNG_COMBLK2_OSC (%02x)\n", comblk2_osc); 212 sbuf_printf(sbp, " Oscillator %d enabled\n", i + 1); 215 sbuf_printf(sbp, " RNG_COMBLK1_OSC (%02x)\n", comblk1_osc); 218 sbuf_printf(sbp, " Oscillator %d enabled\n", i + 1); 222 sbuf_printf(sbp, 226 sbuf_printf(sbp, " RNG_JCLK_BYP_SRC:\n %s\n", 230 sbuf_printf(sbp, " RNG_JCLK_BYP_SEL:\n %s\n", 235 sbuf_cat(sbp, " RNG_RBG2 [all...] |
/freebsd-current/sys/fs/devfs/ |
H A D | devfs_vfsops.c | 222 devfs_statfs(struct mount *mp, struct statfs *sbp) argument 225 sbp->f_flags = mp->mnt_flag & MNT_IGNORE; 226 sbp->f_bsize = DEV_BSIZE; 227 sbp->f_iosize = DEV_BSIZE; 228 sbp->f_blocks = 2; /* 1K to keep df happy */ 229 sbp->f_bfree = 2; 230 sbp->f_bavail = 2; 231 sbp->f_files = 0; 232 sbp->f_ffree = 0;
|
/freebsd-current/sys/fs/unionfs/ |
H A D | union_vfsops.c | 472 unionfs_statfs(struct mount *mp, struct statfs *sbp) argument 493 sbp->f_blocks = mstat->f_blocks; 494 sbp->f_files = mstat->f_files; 508 sbp->f_type = mstat->f_type; 509 sbp->f_flags = mstat->f_flags; 510 sbp->f_bsize = mstat->f_bsize; 511 sbp->f_iosize = mstat->f_iosize; 514 sbp->f_blocks = ((off_t)sbp->f_blocks * lbsize) / 517 sbp [all...] |
/freebsd-current/sys/fs/tmpfs/ |
H A D | tmpfs_vfsops.c | 627 tmpfs_statfs(struct mount *mp, struct statfs *sbp) argument 634 sbp->f_iosize = PAGE_SIZE; 635 sbp->f_bsize = PAGE_SIZE; 639 sbp->f_blocks = tmp->tm_pages_max; 641 sbp->f_blocks = used + tmpfs_mem_avail(); 642 if (sbp->f_blocks <= used) 643 sbp->f_bavail = 0; 645 sbp->f_bavail = sbp->f_blocks - used; 646 sbp [all...] |
/freebsd-current/sys/fs/nullfs/ |
H A D | null_vfsops.c | 351 nullfs_statfs(struct mount *mp, struct statfs *sbp) argument 369 sbp->f_type = mstat->f_type; 370 sbp->f_flags &= MNT_RDONLY | MNT_NOEXEC | MNT_NOSUID | MNT_UNION | 373 sbp->f_flags |= mstat->f_flags; 374 sbp->f_bsize = mstat->f_bsize; 375 sbp->f_iosize = mstat->f_iosize; 376 sbp->f_blocks = mstat->f_blocks; 377 sbp->f_bfree = mstat->f_bfree; 378 sbp->f_bavail = mstat->f_bavail; 379 sbp [all...] |
/freebsd-current/sbin/mount_nullfs/ |
H A D | mount_nullfs.c | 52 stat_realpath(const char *path, char *resolved, struct stat *sbp) argument 54 if (realpath(path, resolved) == NULL || stat(resolved, sbp) != 0)
|
/freebsd-current/sys/fs/fuse/ |
H A D | fuse_vfsops.c | 635 fuse_vfsop_statfs(struct mount *mp, struct statfs *sbp) argument 665 sbp->f_blocks = fsfo->st.blocks; 666 sbp->f_bfree = fsfo->st.bfree; 667 sbp->f_bavail = fsfo->st.bavail; 668 sbp->f_files = fsfo->st.files; 669 sbp->f_ffree = fsfo->st.ffree; /* cast from uint64_t to int64_t */ 670 sbp->f_namemax = fsfo->st.namelen; 671 sbp->f_bsize = fsfo->st.frsize; /* cast from uint32_t to uint64_t */ 677 sbp->f_blocks = 0; 678 sbp [all...] |
/freebsd-current/sys/fs/pseudofs/ |
H A D | pseudofs.c | 364 struct statfs *sbp; local 376 sbp = &mp->mnt_stat; 378 sbp->f_bsize = PAGE_SIZE; 379 sbp->f_iosize = PAGE_SIZE; 380 sbp->f_blocks = 2; 381 sbp->f_bfree = 2; 382 sbp->f_bavail = 2; 383 sbp->f_files = 0; 384 sbp->f_ffree = 0; 430 pfs_statfs(struct mount *mp, struct statfs *sbp) argument [all...] |
/freebsd-current/contrib/sendmail/src/ |
H A D | headers.c | 1172 register char *sbp; local 1204 sbp = sbuf; 1215 (void) sm_snprintf(sbp, SPACELEFT(sbuf, sbp), 1218 sbp += strlen(sbp); 1225 (void) sm_snprintf(sbp, SPACELEFT(sbuf, sbp), 1227 sbp += strlen(sbp); [all...] |
/freebsd-current/sys/security/mac_veriexec/ |
H A D | veriexec_metadata.c | 162 * @param sbp sbuf to write output to 166 mac_veriexec_print_db_dev_list(struct sbuf *sbp, struct veriexec_dev_list *lp) argument 173 sbuf_printf(sbp, " %ld: %u %ld [%02x %02x %02x %02x %02x " 183 * @param sbp sbuf to write output to 187 mac_veriexec_print_db_head(struct sbuf *sbp, struct veriexec_devhead *head) argument 192 sbuf_printf(sbp, " FS id: %ju\n", (uintmax_t)lp->fsid); 193 mac_veriexec_print_db_dev_list(sbp, lp); 202 * @param sbp sbuf to write output to 205 mac_veriexec_metadata_print_db(struct sbuf *sbp) argument 218 sbuf_printf(sbp, " [all...] |
/freebsd-current/lib/libc/gen/ |
H A D | fts-compat11.c | 900 struct freebsd11_stat *sbp, sb; local 910 sbp = ISSET(FTS_NOSTAT) ? &sb : p->fts_statp; 915 if (sbp != &sb) { 916 memset(sbp, '\0', sizeof(*sbp)); 917 sbp->st_mode = S_IFWHT; 929 if (freebsd11_fstatat(dfd, path, sbp, 0)) { 931 if (freebsd11_fstatat(dfd, path, sbp, 937 if (S_ISLNK(sbp->st_mode)) 940 } else if (freebsd11_fstatat(dfd, path, sbp, AT_SYMLINK_NOFOLLO [all...] |