Home
last modified time | relevance | path

Searched refs:fsp (Results 1 – 25 of 41) sorted by relevance

12

/titanic_41/usr/src/uts/common/fs/pcfs/
H A Dpc_alloc.c44 static pc_cluster32_t pc_getcluster(struct pcfs *fsp, pc_cluster32_t cn);
59 struct pcfs *fsp; /* pcfs that file is in */ in pc_bmap() local
65 fsp = VFSTOPCFS(vp->v_vfsp); in pc_bmap()
74 if (!IS_FAT32(fsp) && (vp->v_flag & VROOT)) { in pc_bmap()
77 lbn = pc_cltodb(fsp, lcn); in pc_bmap()
78 if (lbn >= fsp->pcfs_rdirsec) { in pc_bmap()
82 *dbnp = pc_dbdaddr(fsp, fsp->pcfs_rdirstart + lbn); in pc_bmap()
84 ASSERT (*contigbp >= fsp->pcfs_secsize); in pc_bmap()
86 fsp->pcfs_secsize * (fsp->pcfs_rdirsec - lbn)); in pc_bmap()
91 if (lcn >= fsp->pcfs_ncluster) { in pc_bmap()
[all …]
H A Dpc_vfsops.c89 static int pc_readfat(struct pcfs *fsp, uchar_t *fatp);
90 static int pc_writefat(struct pcfs *fsp, daddr_t start);
92 static int pc_getfattype(struct pcfs *fsp);
93 static void pcfs_parse_mntopts(struct pcfs *fsp);
453 struct pcfs *fsp; in pcfs_device_ismounted() local
469 for (fsp = pc_mounttab; fsp; fsp = fsp->pcfs_nxt) in pcfs_device_ismounted()
470 if (fsp->pcfs_xdev == xdev && in pcfs_device_ismounted()
471 fsp->pcfs_ldrive == dos_ldrive) { in pcfs_device_ismounted()
547 pcfs_parse_mntopts(struct pcfs *fsp) in pcfs_parse_mntopts() argument
552 struct vfs *vfsp = fsp->pcfs_vfs; in pcfs_parse_mntopts()
[all …]
H A Dpc_node.c86 struct pcfs *fsp, /* filsystem for node */ in pc_getnode() argument
96 ASSERT(fsp->pcfs_flags & PCFS_LOCKED); in pc_getnode()
101 scluster = pc_getstartcluster(fsp, ep); in pc_getnode()
111 hp = &pcdhead[PCDHASH(fsp, scluster)]; in pc_getnode()
115 if ((fsp == VFSTOPCFS(PCTOV(pcp)->v_vfsp)) && in pc_getnode()
124 hp = &pcfhead[PCFHASH(fsp, blkno, offset)]; in pc_getnode()
128 if ((fsp == VFSTOPCFS(PCTOV(pcp)->v_vfsp)) && in pc_getnode()
160 if (IS_FAT32(fsp)) { in pc_getnode()
163 scluster = fsp->pcfs_rdirstart; in pc_getnode()
164 if (pc_fileclsize(fsp, scluster, &ncl)) { in pc_getnode()
[all …]
H A Dpc_vnops.c228 struct pcfs *fsp; in pcfs_read() local
232 fsp = VFSTOPCFS(vp->v_vfsp); in pcfs_read()
233 if (error = pc_verify(fsp)) in pcfs_read()
235 error = pc_lockfs(fsp, 0, 0); in pcfs_read()
239 pc_unlockfs(fsp); in pcfs_read()
243 if ((fsp->pcfs_vfs->vfs_flag & VFS_RDONLY) == 0) { in pcfs_read()
244 pc_mark_acc(fsp, pcp); in pcfs_read()
246 pc_unlockfs(fsp); in pcfs_read()
262 struct pcfs *fsp; in pcfs_write() local
266 fsp = VFSTOPCFS(vp->v_vfsp); in pcfs_write()
[all …]
H A Dpc_dir.c135 struct pcfs *fsp = VFSTOPCFS(vp->v_vfsp); in pc_direnter() local
163 if (PCA_IS_HIDDEN(fsp, dp->pc_entry.pcd_attr)) { in pc_direnter()
176 pc_getnode(fsp, slot.sl_blkno, slot.sl_offset, in pc_direnter()
222 boff = pc_blkoff(fsp, offset); in pc_direnter()
227 blkno = pc_daddrdb(fsp, bp->b_blkno); in pc_direnter()
231 *pcpp = pc_getnode(fsp, blkno, boff, ep); in pc_direnter()
234 (*pcpp)->pc_size = fsp->pcfs_clsize; in pc_direnter()
239 error = pc_syncfat(fsp); in pc_direnter()
275 struct pcfs *fsp = VFSTOPCFS(vp->v_vfsp); in pc_makedirentry() local
300 if (!IS_FAT32(fsp)) in pc_makedirentry()
[all …]
/titanic_41/usr/src/cmd/fs.d/ufs/fstyp/
H A Dfstyp.c213 struct fs *fsp = &h->afs; in get_attr() local
217 ADD_INT32(h, "magic", fsp->fs_magic); in get_attr()
219 fsp->fs_postblformat == FS_42POSTBLFMT ? "static" : "dynamic"); in get_attr()
220 t = (time_t)fsp->fs_time; in get_attr()
224 ADD_INT32(h, "sblkno", fsp->fs_sblkno); in get_attr()
225 ADD_INT32(h, "cblkno", fsp->fs_cblkno); in get_attr()
226 ADD_INT32(h, "iblkno", fsp->fs_iblkno); in get_attr()
227 ADD_INT32(h, "dblkno", fsp->fs_dblkno); in get_attr()
228 ADD_INT32(h, "sbsize", fsp->fs_sbsize); in get_attr()
229 ADD_INT32(h, "cgsize", fsp->fs_cgsize); in get_attr()
[all …]
/titanic_41/usr/src/uts/common/fs/hsfs/
H A Dhsfs_node.c110 static void hs_addfreeb(struct hsfs *fsp, struct hsnode *hp);
112 uint_t last_offset, char *nm, int nmlen, struct hsfs *fsp,
115 static int strip_trailing(struct hsfs *fsp, char *nm, int len);
116 static int hs_namelen(struct hsfs *fsp, char *nm, int len);
211 struct hsfs *fsp; in hs_hsnode_cache_reclaim() local
218 for (fsp = hs_mounttab; fsp != NULL; fsp = fsp->hsfs_next) { in hs_hsnode_cache_reclaim()
222 (void) dnlc_purge_vfsp(fsp->hsfs_vfs, 0); in hs_hsnode_cache_reclaim()
227 rw_enter(&fsp->hsfs_hash_lock, RW_WRITER); in hs_hsnode_cache_reclaim()
228 mutex_enter(&fsp->hsfs_free_lock); in hs_hsnode_cache_reclaim()
229 for (hp = fsp->hsfs_free_f; hp != NULL; hp = fsp->hsfs_free_f) { in hs_hsnode_cache_reclaim()
[all …]
H A Dhsfs_vfsops.c216 extern void hsched_init(struct hsfs *fsp, int fsid,
219 extern void hsfs_init_kstats(struct hsfs *fsp, int fsid);
220 extern void hsfs_fini_kstats(struct hsfs *fsp);
232 static int hs_getrootvp(struct vfs *vfsp, struct hsfs *fsp, size_t pathsize);
233 static int hs_findhsvol(struct hsfs *fsp, struct vnode *vp,
235 static int hs_parsehsvol(struct hsfs *fsp, uchar_t *volp,
237 static int hs_findisovol(struct hsfs *fsp, struct vnode *vp,
242 static int hs_parseisovol(struct hsfs *fsp, uchar_t *volp,
371 struct hsfs *fsp; in hsfs_unmount() local
383 fsp = VFS_TO_HSFS(vfsp); in hsfs_unmount()
[all …]
H A Dhsfs_subr.c309 hs_log_bogus_disk_warning(fsp, errtype, data) in hs_log_bogus_disk_warning() argument
310 struct hsfs *fsp; in hs_log_bogus_disk_warning()
315 if (fsp->hsfs_err_flags & (1 << errtype))
319 fsp->hsfs_fsmnt);
340 fsp->hsfs_err_flags |= (1 << errtype);
350 struct hsfs *fsp; in hsfs_kstats_update() local
362 fsp = ksp->ks_private; in hsfs_kstats_update()
365 mutex_enter(&(fsp->hqueue->strategy_lock)); in hsfs_kstats_update()
366 mutex_enter(&(fsp->hqueue->hsfs_queue_lock)); in hsfs_kstats_update()
368 cache_read_pages = fsp->cache_read_pages; in hsfs_kstats_update()
[all …]
H A Dhsfs_susp_subr.c89 struct hsfs *fsp, /* filesystem pointer */ in parse_sua() argument
95 uchar_t *tmp_SUA_p = (SUA_p + fsp->hsfs_sua_off); in parse_sua()
96 int tmp_SUA_len = (SUA_len - fsp->hsfs_sua_off); in parse_sua()
115 hs_log_bogus_disk_warning(fsp, HSFS_ERR_NEG_SUA_LEN, 0); in parse_sua()
120 hs_log_bogus_disk_warning(fsp, HSFS_ERR_BAD_SUA_LEN, 0); in parse_sua()
135 sig_args.fsp = fsp; in parse_sua()
156 if (get_cont_area(fsp, &cont_p, &cont_info)) { in parse_sua()
256 if (!IS_IMPL_BIT_SET(sig_args_p->fsp, impl_bit_num)) in parse_signatures()
369 struct hsfs *fsp; in hs_check_root_dirent() local
381 fsp = VFS_TO_HSFS(vp->v_vfsp); in hs_check_root_dirent()
[all …]
H A Dhsfs_vnops.c155 static void hsched_enqueue_io(struct hsfs *fsp, struct hio *hsio, int ra);
156 int hsched_invoke_strategy(struct hsfs *fsp);
313 struct hsfs *fsp; in hsfs_getattr() local
316 fsp = VFS_TO_HSFS(vp->v_vfsp); in hsfs_getattr()
345 (hp->hs_dirent.xar_len << fsp->hsfs_vol.lbn_shift), DEV_BSIZE); in hsfs_getattr()
379 struct hsfs *fsp; in hsfs_inactive() local
384 fsp = VFS_TO_HSFS(vp->v_vfsp); in hsfs_inactive()
391 rw_enter(&fsp->hsfs_hash_lock, RW_WRITER); in hsfs_inactive()
404 rw_exit(&fsp->hsfs_hash_lock); in hsfs_inactive()
424 hs_freenode(vp, fsp, nopage); in hsfs_inactive()
[all …]
H A Dhsfs_susp.c136 SET_SUSP_BIT(sig_args_p->fsp); in share_protocol()
138 sig_args_p->fsp->hsfs_sua_off = SP_SUA_OFFSET(sp_ptr); in share_protocol()
177 SET_IMPL_BIT(sig_args_p->fsp, index); in share_ext_ref()
/titanic_41/usr/src/uts/common/fs/ufs/
H A Dufs_vfsops.c466 struct fs *fsp; in ufs_mountroot() local
491 fsp = getfs(vfsp); in ufs_mountroot()
504 fsp = ufsvfsp->vfs_fs; in ufs_mountroot()
507 (fsp->fs_rolled == FS_NEED_ROLL)) { in ufs_mountroot()
511 ufsvfsp, fsp); in ufs_mountroot()
513 fsp->fs_rolled = FS_ALL_ROLLED; in ufs_mountroot()
566 fsp = getfs(vfsp); in ufs_mountroot()
567 clkset(doclkset ? fsp->fs_time : -1); in ufs_mountroot()
581 struct fs *fsp = (struct fs *)bp->b_un.b_addr; in remountfs() local
628 if (fsp->fs_flags & FSLARGEFILES) { in remountfs()
[all …]
/titanic_41/usr/src/uts/common/sys/fs/
H A Dhsfs_susp.h56 #define SET_IMPL_BIT(fsp, y) ((fsp->hsfs_ext_impl) |= (0x01L) << (y)) argument
57 #define UNSET_IMPL_BIT(fsp, y) ((fsp->hsfs_ext_impl) &= ~((0x01L) << (y))) argument
58 #define IS_IMPL_BIT_SET(fsp, y) ((fsp->hsfs_ext_impl) & ((0x01L) << (y))) argument
67 #define SET_SUSP_BIT(fsp) (SET_IMPL_BIT((fsp), HAVE_SUSP)) argument
68 #define UNSET_SUSP_BIT(fsp) (UNSET_IMPL_BIT((fsp), HAVE_SUSP)) argument
69 #define IS_SUSP_IMPLEMENTED(fsp) (IS_IMPL_BIT_SET(fsp, 0) ? 1 : 0) argument
232 struct hsfs *fsp; /* file system */ member
H A Dhsfs_impl.h59 extern void hs_freenode(vnode_t *vp, struct hsfs *fsp, int nopage);
61 extern int hs_parsedir(struct hsfs *fsp, uchar_t *dirp,
78 extern void hs_log_bogus_disk_warning(struct hsfs *fsp, int errtype,
/titanic_41/usr/src/cmd/fs.d/
H A Ddf.c1314 g_output(struct df_request *dfrp, struct statvfs64 *fsp) in g_output() argument
1316 fsblkcnt64_t available_blocks = fsp->f_bavail; in g_output()
1317 fsblkcnt64_t total_blocks = fsp->f_blocks; in g_output()
1386 NCOL3_WIDTH, fsp->f_bsize, SCOL3_WIDTH, block_size_str, in g_output()
1387 NCOL4_WIDTH, fsp->f_frsize, SCOL4_WIDTH, frag_size_str); in g_output()
1398 adjust_total_blocks(dfrp, &total_blocks, fsp->f_frsize); in g_output()
1402 total_blocks, fsp->f_frsize, 512), in g_output()
1405 fsp->f_bfree, fsp->f_frsize, 512), in g_output()
1408 available_blocks, fsp->f_frsize, 512), in g_output()
1411 fsp->f_files, 1, 1), in g_output()
[all …]
/titanic_41/usr/src/uts/common/inet/ipf/
H A Dsolaris.c320 filterstats_t *fsp; in ipf_kstat_update() local
329 fsp = ksp->ks_private; in ipf_kstat_update()
331 fkp->fks_pass.value.ul = fsp->fr_pass; in ipf_kstat_update()
332 fkp->fks_block.value.ul = fsp->fr_block; in ipf_kstat_update()
333 fkp->fks_nom.value.ul = fsp->fr_nom; in ipf_kstat_update()
334 fkp->fks_short.value.ul = fsp->fr_short; in ipf_kstat_update()
335 fkp->fks_ppkl.value.ul = fsp->fr_ppkl; in ipf_kstat_update()
336 fkp->fks_bpkl.value.ul = fsp->fr_bpkl; in ipf_kstat_update()
337 fkp->fks_npkl.value.ul = fsp->fr_npkl; in ipf_kstat_update()
338 fkp->fks_pkl.value.ul = fsp->fr_pkl; in ipf_kstat_update()
[all …]
/titanic_41/usr/src/lib/libbc/libc/gen/common/
H A Dfstab.c114 struct fstab *fsp; in getfsspec() local
118 while((fsp = getfsent()) != 0) in getfsspec()
119 if (strcmp(fsp->fs_spec, name) == 0) in getfsspec()
120 return (fsp); in getfsspec()
127 struct fstab *fsp; in getfsfile() local
131 while ((fsp = getfsent()) != 0) in getfsfile()
132 if (strcmp(fsp->fs_file, name) == 0) in getfsfile()
133 return (fsp); in getfsfile()
/titanic_41/usr/src/lib/libipmi/common/
H A Dipmi_entity.c113 ipmi_sdr_full_sensor_t *fsp = in ipmi_entity_sdr_parse() local
115 *id = fsp->is_fs_entity_id; in ipmi_entity_sdr_parse()
116 *instance = fsp->is_fs_entity_instance; in ipmi_entity_sdr_parse()
117 *logical = fsp->is_fs_entity_logical; in ipmi_entity_sdr_parse()
293 ipmi_sdr_full_sensor_t *fsp; in ipmi_entity_present_sdr() local
305 fsp = (ipmi_sdr_full_sensor_t *)sdrp->is_record; in ipmi_entity_present_sdr()
306 number = fsp->is_fs_number; in ipmi_entity_present_sdr()
307 sensor_type = fsp->is_fs_type; in ipmi_entity_present_sdr()
308 reading_type = fsp->is_fs_reading_type; in ipmi_entity_present_sdr()
412 ipmi_sdr_full_sensor_t *fsp; in ipmi_entity_present() local
[all …]
H A Dipmi_sdr.c267 ipmi_sdr_full_sensor_t *fsp = in ipmi_sdr_refresh() local
272 namelen = fsp->is_fs_idlen; in ipmi_sdr_refresh()
273 type = fsp->is_fs_idtype; in ipmi_sdr_refresh()
274 name = fsp->is_fs_idstring; in ipmi_sdr_refresh()
276 tmp = LE_IN16(&fsp->is_fs_assert_mask); in ipmi_sdr_refresh()
277 (void) memcpy(&fsp->is_fs_assert_mask, &tmp, in ipmi_sdr_refresh()
280 tmp = LE_IN16(&fsp->is_fs_deassert_mask); in ipmi_sdr_refresh()
281 (void) memcpy(&fsp->is_fs_deassert_mask, &tmp, in ipmi_sdr_refresh()
284 tmp = LE_IN16(&fsp->is_fs_reading_mask); in ipmi_sdr_refresh()
285 (void) memcpy(&fsp->is_fs_reading_mask, &tmp, in ipmi_sdr_refresh()
/titanic_41/usr/src/cmd/lp/cmd/lpsched/
H A Dfncs.c301 free_fstatus(FSTATUS *fsp) in free_fstatus() argument
303 if (fsp != NULL) { in free_fstatus()
304 if (fsp->form != NULL) in free_fstatus()
305 free_form(fsp->form); in free_fstatus()
306 if (fsp->alert != NULL) in free_fstatus()
307 free_alert(fsp->alert); in free_fstatus()
308 if (fsp->users_allowed != NULL) in free_fstatus()
309 unload_list(&fsp->users_allowed); in free_fstatus()
310 if (fsp->users_denied != NULL) in free_fstatus()
311 unload_list(&fsp->users_denied); in free_fstatus()
[all …]
/titanic_41/usr/src/cmd/fm/ipmitopo/common/
H A Dipmitopo.c48 ipmi_sdr_full_sensor_t *fsp; in sdr_print() local
68 fsp = (ipmi_sdr_full_sensor_t *)sdrp->is_record; in sdr_print()
69 sensor_number = fsp->is_fs_number; in sdr_print()
70 sensor_type = fsp->is_fs_type; in sdr_print()
71 reading_type = fsp->is_fs_reading_type; in sdr_print()
/titanic_41/usr/src/lib/libc/port/gen/
H A Dttyname.c106 static char *_ttyname_common(struct stat64 *fsp, char *buffer,
201 _ttyname_common(struct stat64 *fsp, char *buffer, uint_t match_mask) in _ttyname_common() argument
233 if (spclp->spcl_rdev == fsp->st_rdev) { in _ttyname_common()
237 } else if (spclp->spcl_fsdev == fsp->st_dev && in _ttyname_common()
238 spclp->spcl_rdev == fsp->st_rdev && in _ttyname_common()
239 spclp->spcl_inum == fsp->st_ino) { in _ttyname_common()
259 (minor(spclp->spcl_rdev) == major(fsp->st_rdev))) in _ttyname_common()
266 if ((retval = ispty(fsp, match_mask)) != NULL) in _ttyname_common()
289 if ((pt = ispts(fsp, match_mask)) != NULL) { in _ttyname_common()
296 == 0) ? MAX_SRCH_DEPTH : 1), 0, fsp); in _ttyname_common()
[all …]
/titanic_41/usr/src/cmd/fs.d/udfs/mkfs/
H A Dmkfs.c621 struct file_set_desc *fsp; in volseqinit() local
908 fsp = (struct file_set_desc *)&buf; in volseqinit()
909 tp = &fsp->fsd_tag; in volseqinit()
916 setstamp(&fsp->fsd_time); in volseqinit()
917 fsp->fsd_ilevel = 3; in volseqinit()
918 fsp->fsd_mi_level = 3; in volseqinit()
919 fsp->fsd_cs_list = 1; in volseqinit()
920 fsp->fsd_mcs_list = 1; in volseqinit()
921 fsp->fsd_fs_no = 0; in volseqinit()
922 fsp->fsd_fsd_no = 0; in volseqinit()
[all …]
/titanic_41/usr/src/cmd/fs.d/ufs/labelit/
H A Dlabelit.c143 struct fs *fsp, *altfsp; in label() local
190 fsp = &sblock; in label()
211 p = (char *)&(fs_rotbl(fsp)[blk]); in label()
284 bcopy((char *)&(fs_rotbl(fsp)[blk]), in label()
299 p = (char *)&(fs_rotbl(fsp)[blk]); in label()

12