Home
last modified time | relevance | path

Searched refs:sbp (Results 1 – 25 of 35) sorted by relevance

12

/linux/arch/mips/sibyte/common/
H A Dsb_tbprof.c70 static struct sbprof_tb sbp; variable
125 #define TB_FULL (sbp.next_tb_sample == MAX_TB_SAMPLES)
186 sbp.tb_armed = 1; in arm_tb()
195 if (sbp.next_tb_sample < MAX_TB_SAMPLES) { in sbprof_tb_intr()
197 u64 *p = sbp.sbprof_tbbuf[sbp.next_tb_sample++]; in sbprof_tb_intr()
219 if (!sbp.tb_enable) { in sbprof_tb_intr()
223 sbp.tb_armed = 0; in sbprof_tb_intr()
224 wake_up_interruptible(&sbp.tb_sync); in sbprof_tb_intr()
233 sbp.tb_armed = 0; in sbprof_tb_intr()
234 if (!sbp.tb_enable) in sbprof_tb_intr()
[all …]
/linux/fs/ufs/
H A Dswab.h27 fs64_to_cpu(struct super_block *sbp, __fs64 n) in fs64_to_cpu() argument
29 if (UFS_SB(sbp)->s_bytesex == BYTESEX_LE) in fs64_to_cpu()
36 cpu_to_fs64(struct super_block *sbp, u64 n) in cpu_to_fs64() argument
38 if (UFS_SB(sbp)->s_bytesex == BYTESEX_LE) in cpu_to_fs64()
45 fs32_to_cpu(struct super_block *sbp, __fs32 n) in fs32_to_cpu() argument
47 if (UFS_SB(sbp)->s_bytesex == BYTESEX_LE) in fs32_to_cpu()
54 cpu_to_fs32(struct super_block *sbp, u32 n) in cpu_to_fs32() argument
56 if (UFS_SB(sbp)->s_bytesex == BYTESEX_LE) in cpu_to_fs32()
63 fs32_add(struct super_block *sbp, __fs32 *n, int d) in fs32_add() argument
65 if (UFS_SB(sbp)->s_bytesex == BYTESEX_LE) in fs32_add()
[all …]
/linux/fs/nilfs2/
H A Dthe_nilfs.c26 static int nilfs_valid_sb(struct nilfs_super_block *sbp);
99 struct nilfs_super_block **sbp = nilfs->ns_sbp; in nilfs_load_super_root() local
110 dat_entry_size = le16_to_cpu(sbp[0]->s_dat_entry_size); in nilfs_load_super_root()
111 checkpoint_size = le16_to_cpu(sbp[0]->s_checkpoint_size); in nilfs_load_super_root()
112 segment_usage_size = le16_to_cpu(sbp[0]->s_segment_usage_size); in nilfs_load_super_root()
173 struct nilfs_super_block *sbp) in nilfs_store_log_cursor() argument
177 nilfs->ns_last_pseg = le64_to_cpu(sbp->s_last_pseg); in nilfs_store_log_cursor()
178 nilfs->ns_last_cno = le64_to_cpu(sbp->s_last_cno); in nilfs_store_log_cursor()
179 nilfs->ns_last_seq = le64_to_cpu(sbp->s_last_seq); in nilfs_store_log_cursor()
209 struct nilfs_super_block *sbp, int *blocksize) in nilfs_get_blocksize() argument
[all …]
H A Dioctl.c1269 struct nilfs_super_block **sbp; in nilfs_ioctl_set_fslabel() local
1294 sbp = nilfs_prepare_super(sb, false); in nilfs_ioctl_set_fslabel()
1295 if (unlikely(!sbp)) { in nilfs_ioctl_set_fslabel()
1300 strtomem_pad(sbp[0]->s_volume_name, label, 0); in nilfs_ioctl_set_fslabel()
1301 if (sbp[1]) in nilfs_ioctl_set_fslabel()
1302 strtomem_pad(sbp[1]->s_volume_name, label, 0); in nilfs_ioctl_set_fslabel()
/linux/fs/freevxfs/
H A Dvxfs_super.c44 vxfs_put_super(struct super_block *sbp) in vxfs_put_super() argument
46 struct vxfs_sb_info *infp = VXFS_SBI(sbp); in vxfs_put_super()
125 static int vxfs_try_sb_magic(struct super_block *sbp, struct fs_context *fc, in vxfs_try_sb_magic() argument
130 struct vxfs_sb_info *infp = VXFS_SBI(sbp); in vxfs_try_sb_magic()
134 bp = sb_bread(sbp, blk); in vxfs_try_sb_magic()
184 static int vxfs_fill_super(struct super_block *sbp, struct fs_context *fc) in vxfs_fill_super() argument
194 sbp->s_flags |= SB_RDONLY; in vxfs_fill_super()
202 bsize = sb_min_blocksize(sbp, BLOCK_SIZE); in vxfs_fill_super()
208 sbp->s_op = &vxfs_super_ops; in vxfs_fill_super()
209 sbp->s_fs_info = infp; in vxfs_fill_super()
[all …]
H A Dvxfs_olt.c33 vxfs_oblock(struct super_block *sbp, daddr_t block, u_long bsize) in vxfs_oblock() argument
35 BUG_ON(sbp->s_blocksize % bsize); in vxfs_oblock()
36 return (block * (sbp->s_blocksize / bsize)); in vxfs_oblock()
53 vxfs_read_olt(struct super_block *sbp, u_long bsize) in vxfs_read_olt() argument
55 struct vxfs_sb_info *infp = VXFS_SBI(sbp); in vxfs_read_olt()
60 bp = sb_bread(sbp, vxfs_oblock(sbp, infp->vsi_oltext, bsize)); in vxfs_read_olt()
81 eaddr = bp->b_data + (infp->vsi_oltsize * sbp->s_blocksize); in vxfs_read_olt()
H A Dvxfs_inode.c137 vxfs_blkiget(struct super_block *sbp, u_long extent, ino_t ino) in vxfs_blkiget() argument
143 inode = new_inode(sbp); in vxfs_blkiget()
148 block = extent + ((ino * VXFS_ISIZE) / sbp->s_blocksize); in vxfs_blkiget()
149 offset = ((ino % (sbp->s_blocksize / VXFS_ISIZE)) * VXFS_ISIZE); in vxfs_blkiget()
150 bp = sb_bread(sbp, block); in vxfs_blkiget()
157 dip2vip_cpy(VXFS_SBI(sbp), vip, dip); in vxfs_blkiget()
222 vxfs_stiget(struct super_block *sbp, ino_t ino) in vxfs_stiget() argument
227 inode = new_inode(sbp); in vxfs_stiget()
232 error = __vxfs_iget(VXFS_SBI(sbp)->vsi_stilist, VXFS_INO(inode), ino); in vxfs_stiget()
251 vxfs_iget(struct super_block *sbp, ino_t ino) in vxfs_iget() argument
[all …]
H A Dvxfs_fshead.c84 vxfs_read_fshead(struct super_block *sbp) in vxfs_read_fshead() argument
86 struct vxfs_sb_info *infp = VXFS_SBI(sbp); in vxfs_read_fshead()
90 infp->vsi_fship = vxfs_blkiget(sbp, infp->vsi_iext, infp->vsi_fshino); in vxfs_read_fshead()
128 infp->vsi_stilist = vxfs_blkiget(sbp, infp->vsi_iext, in vxfs_read_fshead()
140 infp->vsi_ilist = vxfs_stiget(sbp, fs32_to_cpu(infp, pfp->fsh_ilistino[0])); in vxfs_read_fshead()
H A Dvxfs_lookup.c25 #define VXFS_BLOCK_PER_PAGE(sbp) ((PAGE_SIZE / (sbp)->s_blocksize)) argument
193 struct super_block *sbp = ip->i_sb; in vxfs_readdir() local
194 u_long bsize = sbp->s_blocksize; in vxfs_readdir()
196 struct vxfs_sb_info *sbi = VXFS_SBI(sbp); in vxfs_readdir()
H A Dvxfs_inode.h28 #define VXFS_TYPED_PER_BLOCK(sbp) \ argument
29 ((sbp)->s_blocksize / sizeof(struct vxfs_typed))
H A Dvxfs.h254 #define VXFS_SBI(sbp) \ argument
255 ((struct vxfs_sb_info *)(sbp)->s_fs_info)
/linux/fs/xfs/
H A Dxfs_attr_list.c59 struct xfs_attr_sf_sort *sbuf, *sbp; in xfs_attr_shortform_list() local
117 sbp = sbuf = kmalloc(sbsize, in xfs_attr_shortform_list()
139 sbp->entno = i; in xfs_attr_shortform_list()
140 sbp->name = sfe->nameval; in xfs_attr_shortform_list()
141 sbp->namelen = sfe->namelen; in xfs_attr_shortform_list()
143 sbp->value = &sfe->nameval[sfe->namelen]; in xfs_attr_shortform_list()
144 sbp->valuelen = sfe->valuelen; in xfs_attr_shortform_list()
145 sbp->flags = sfe->flags; in xfs_attr_shortform_list()
146 sbp->hash = xfs_attr_hashval(dp->i_mount, sfe->flags, in xfs_attr_shortform_list()
151 sbp++; in xfs_attr_shortform_list()
[all …]
H A Dxfs_mount.c137 xfs_sb_t *sbp, in xfs_sb_validate_fsb_count() argument
142 ASSERT(sbp->sb_blocklog >= BBSHIFT); in xfs_sb_validate_fsb_count()
144 if (check_shl_overflow(nblocks, sbp->sb_blocklog, &max_bytes)) in xfs_sb_validate_fsb_count()
165 struct xfs_sb *sbp = &mp->m_sb; in xfs_readsb() local
199 xfs_sb_from_disk(sbp, bp->b_addr); in xfs_readsb()
205 if (sbp->sb_magicnum != XFS_SB_MAGIC) { in xfs_readsb()
215 if (sector_size > sbp->sb_sectsize) { in xfs_readsb()
218 sector_size, sbp->sb_sectsize); in xfs_readsb()
229 sector_size = sbp->sb_sectsize; in xfs_readsb()
234 mp->m_features |= xfs_sb_version_to_features(sbp); in xfs_readsb()
[all …]
H A Dxfs_trans.c459 struct xfs_dsb *sbp = bp->b_addr; in xfs_trans_apply_sb_deltas() local
467 be64_add_cpu(&sbp->sb_icount, tp->t_icount_delta); in xfs_trans_apply_sb_deltas()
469 be64_add_cpu(&sbp->sb_ifree, tp->t_ifree_delta); in xfs_trans_apply_sb_deltas()
471 be64_add_cpu(&sbp->sb_fdblocks, tp->t_fdblocks_delta); in xfs_trans_apply_sb_deltas()
473 be64_add_cpu(&sbp->sb_fdblocks, tp->t_res_fdblocks_delta); in xfs_trans_apply_sb_deltas()
498 be64_add_cpu(&sbp->sb_frextents, rtxdelta); in xfs_trans_apply_sb_deltas()
504 be64_add_cpu(&sbp->sb_dblocks, tp->t_dblocks_delta); in xfs_trans_apply_sb_deltas()
510 be32_add_cpu(&sbp->sb_agcount, tp->t_agcount_delta); in xfs_trans_apply_sb_deltas()
514 sbp->sb_imax_pct += tp->t_imaxpct_delta; in xfs_trans_apply_sb_deltas()
518 be32_add_cpu(&sbp->sb_rextsize, tp->t_rextsize_delta); in xfs_trans_apply_sb_deltas()
[all …]
H A Dxfs_ioctl.c980 struct xfs_sb *sbp = &mp->m_sb; in xfs_ioc_getlabel() local
984 BUILD_BUG_ON(sizeof(sbp->sb_fname) > FSLABEL_MAX); in xfs_ioc_getlabel()
988 memtostr_pad(label, sbp->sb_fname); in xfs_ioc_getlabel()
1002 struct xfs_sb *sbp = &mp->m_sb; in xfs_ioc_setlabel() local
1018 if (len > sizeof(sbp->sb_fname)) in xfs_ioc_setlabel()
1026 memset(sbp->sb_fname, 0, sizeof(sbp->sb_fname)); in xfs_ioc_setlabel()
1027 memcpy(sbp->sb_fname, label, len); in xfs_ioc_setlabel()
H A Dxfs_super.c308 xfs_sb_t *sbp = &mp->m_sb; in xfs_set_inode_alloc() local
320 icount = sbp->sb_dblocks * sbp->sb_imax_pct; in xfs_set_inode_alloc()
322 icount += sbp->sb_agblocks - 1; in xfs_set_inode_alloc()
323 do_div(icount, sbp->sb_agblocks); in xfs_set_inode_alloc()
330 agino = XFS_AGB_TO_AGINO(mp, sbp->sb_agblocks - 1); in xfs_set_inode_alloc()
2014 struct xfs_sb *sbp = &mp->m_sb; in xfs_remount_rw() local
2036 if (xfs_sb_is_v5(sbp) && in xfs_remount_rw()
2037 xfs_sb_has_ro_compat_feature(sbp, XFS_SB_FEAT_RO_COMPAT_UNKNOWN)) { in xfs_remount_rw()
2040 (sbp->sb_features_ro_compat & in xfs_remount_rw()
/linux/fs/xfs/libxfs/
H A Dxfs_sb.h19 extern void xfs_sb_mount_common(struct xfs_mount *mp, struct xfs_sb *sbp);
20 void xfs_sb_mount_rextsize(struct xfs_mount *mp, struct xfs_sb *sbp);
22 struct xfs_sb *sbp, xfs_agblock_t rextsize);
25 extern void xfs_sb_quota_from_disk(struct xfs_sb *sbp);
26 extern bool xfs_sb_good_version(struct xfs_sb *sbp);
27 extern uint64_t xfs_sb_version_to_features(struct xfs_sb *sbp);
44 bool xfs_validate_rt_geometry(struct xfs_sb *sbp);
H A Dxfs_format.h301 #define XFS_SB_VERSION_NUM(sbp) ((sbp)->sb_versionnum & XFS_SB_VERSION_NUMBITS) argument
303 static inline bool xfs_sb_is_v5(const struct xfs_sb *sbp) in xfs_sb_is_v5() argument
305 return XFS_SB_VERSION_NUM(sbp) == XFS_SB_VERSION_5; in xfs_sb_is_v5()
312 static inline bool xfs_sb_has_mismatched_features2(const struct xfs_sb *sbp) in xfs_sb_has_mismatched_features2() argument
314 return sbp->sb_bad_features2 != sbp->sb_features2; in xfs_sb_has_mismatched_features2()
317 static inline bool xfs_sb_version_hasmorebits(const struct xfs_sb *sbp) in xfs_sb_version_hasmorebits() argument
319 return xfs_sb_is_v5(sbp) || in xfs_sb_version_hasmorebits()
320 (sbp->sb_versionnum & XFS_SB_VERSION_MOREBITSBIT); in xfs_sb_version_hasmorebits()
323 static inline void xfs_sb_version_addattr(struct xfs_sb *sbp) in xfs_sb_version_addattr() argument
325 sbp->sb_versionnum |= XFS_SB_VERSION_ATTRBIT; in xfs_sb_version_addattr()
[all …]
H A Dxfs_ag.c50 struct xfs_sb *sbp = &mp->m_sb; in xfs_initialize_perag_data() local
88 if (fdblocks > sbp->sb_dblocks || ifree > ialloc) { in xfs_initialize_perag_data()
97 sbp->sb_ifree = ifree; in xfs_initialize_perag_data()
98 sbp->sb_icount = ialloc; in xfs_initialize_perag_data()
99 sbp->sb_fdblocks = fdblocks; in xfs_initialize_perag_data()
H A Dxfs_ialloc.c2980 struct xfs_sb *sbp = &mp->m_sb; in xfs_ialloc_setup_geometry() local
2992 igeo->agino_log = sbp->sb_inopblog + sbp->sb_agblklog; in xfs_ialloc_setup_geometry()
2993 igeo->inobt_mxr[0] = xfs_inobt_maxrecs(mp, sbp->sb_blocksize, true); in xfs_ialloc_setup_geometry()
2994 igeo->inobt_mxr[1] = xfs_inobt_maxrecs(mp, sbp->sb_blocksize, false); in xfs_ialloc_setup_geometry()
2999 sbp->sb_inopblock); in xfs_ialloc_setup_geometry()
3000 igeo->ialloc_blks = igeo->ialloc_inos >> sbp->sb_inopblog; in xfs_ialloc_setup_geometry()
3002 if (sbp->sb_spino_align) in xfs_ialloc_setup_geometry()
3003 igeo->ialloc_min_blks = sbp->sb_spino_align; in xfs_ialloc_setup_geometry()
3019 if (sbp->sb_imax_pct && igeo->ialloc_blks) { in xfs_ialloc_setup_geometry()
3024 icount = sbp->sb_dblocks * sbp->sb_imax_pct; in xfs_ialloc_setup_geometry()
/linux/drivers/s390/net/
H A Dqeth_l2_sys.c26 card->options.sbp.supported_funcs) in qeth_bridge_port_role_state_show()
28 &card->options.sbp.role, &state); in qeth_bridge_port_role_state_show()
42 switch (card->options.sbp.role) { in qeth_bridge_port_role_state_show()
54 card->options.sbp.role, state); in qeth_bridge_port_role_state_show()
95 else if (card->options.sbp.reflect_promisc) in qeth_bridge_port_role_store()
101 card->options.sbp.role = role; in qeth_bridge_port_role_store()
103 card->options.sbp.role = role; in qeth_bridge_port_role_store()
137 enabled = card->options.sbp.hostnotification; in qeth_bridgeport_hostnotification_show()
162 card->options.sbp.hostnotification = enable; in qeth_bridgeport_hostnotification_store()
164 card->options.sbp.hostnotification = enable; in qeth_bridgeport_hostnotification_store()
[all …]
H A Dqeth_l2.h34 return card->options.sbp.role || in qeth_bridgeport_is_in_use()
35 card->options.sbp.reflect_promisc || in qeth_bridgeport_is_in_use()
36 card->options.sbp.hostnotification; in qeth_bridgeport_is_in_use()
/linux/include/scsi/
H A Dsg.h51 void __user *sbp; /* [i], [*o] points to sense_buffer memory */ member
80 compat_uptr_t sbp; /* [i], [*o] points to sense_buffer memory */ member
/linux/drivers/target/
H A DMakefile32 obj-$(CONFIG_SBP_TARGET) += sbp/
/linux/drivers/target/sbp/
H A DKconfig12 called sbp-target.

12