Home
last modified time | relevance | path

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

12

/Linux-v5.15/fs/xfs/libxfs/
Dxfs_sb.c38 struct xfs_sb *sbp) in xfs_sb_good_version() argument
41 if (xfs_sb_is_v5(sbp)) in xfs_sb_good_version()
45 if (XFS_SB_VERSION_NUM(sbp) < XFS_SB_VERSION_4) in xfs_sb_good_version()
49 if (!(sbp->sb_versionnum & XFS_SB_VERSION_DIRV2BIT)) in xfs_sb_good_version()
51 if (!(sbp->sb_versionnum & XFS_SB_VERSION_EXTFLGBIT)) in xfs_sb_good_version()
55 if ((sbp->sb_versionnum & ~XFS_SB_VERSION_OKBITS) || in xfs_sb_good_version()
56 ((sbp->sb_versionnum & XFS_SB_VERSION_MOREBITSBIT) && in xfs_sb_good_version()
57 (sbp->sb_features2 & ~XFS_SB_VERSION2_OKBITS))) in xfs_sb_good_version()
66 struct xfs_sb *sbp) in xfs_sb_version_to_features() argument
71 if (sbp->sb_rblocks > 0) in xfs_sb_version_to_features()
[all …]
Dxfs_format.h280 #define XFS_SB_VERSION_NUM(sbp) ((sbp)->sb_versionnum & XFS_SB_VERSION_NUMBITS) argument
282 static inline bool xfs_sb_is_v5(struct xfs_sb *sbp) in xfs_sb_is_v5() argument
284 return XFS_SB_VERSION_NUM(sbp) == XFS_SB_VERSION_5; in xfs_sb_is_v5()
291 static inline bool xfs_sb_has_mismatched_features2(struct xfs_sb *sbp) in xfs_sb_has_mismatched_features2() argument
293 return sbp->sb_bad_features2 != sbp->sb_features2; in xfs_sb_has_mismatched_features2()
296 static inline bool xfs_sb_version_hasmorebits(struct xfs_sb *sbp) in xfs_sb_version_hasmorebits() argument
298 return xfs_sb_is_v5(sbp) || in xfs_sb_version_hasmorebits()
299 (sbp->sb_versionnum & XFS_SB_VERSION_MOREBITSBIT); in xfs_sb_version_hasmorebits()
302 static inline void xfs_sb_version_addattr(struct xfs_sb *sbp) in xfs_sb_version_addattr() argument
304 sbp->sb_versionnum |= XFS_SB_VERSION_ATTRBIT; in xfs_sb_version_addattr()
[all …]
Dxfs_sb.h19 extern void xfs_sb_mount_common(struct xfs_mount *mp, struct xfs_sb *sbp);
22 extern void xfs_sb_quota_from_disk(struct xfs_sb *sbp);
23 extern bool xfs_sb_good_version(struct xfs_sb *sbp);
24 extern uint64_t xfs_sb_version_to_features(struct xfs_sb *sbp);
/Linux-v5.15/arch/mips/sibyte/common/
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-v5.15/fs/ufs/
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-v5.15/fs/nilfs2/
Dthe_nilfs.c26 static int nilfs_valid_sb(struct nilfs_super_block *sbp);
101 struct nilfs_super_block **sbp = nilfs->ns_sbp; in nilfs_load_super_root() local
112 dat_entry_size = le16_to_cpu(sbp[0]->s_dat_entry_size); in nilfs_load_super_root()
113 checkpoint_size = le16_to_cpu(sbp[0]->s_checkpoint_size); in nilfs_load_super_root()
114 segment_usage_size = le16_to_cpu(sbp[0]->s_segment_usage_size); in nilfs_load_super_root()
172 struct nilfs_super_block *sbp) in nilfs_store_log_cursor() argument
176 nilfs->ns_last_pseg = le64_to_cpu(sbp->s_last_pseg); in nilfs_store_log_cursor()
177 nilfs->ns_last_cno = le64_to_cpu(sbp->s_last_cno); in nilfs_store_log_cursor()
178 nilfs->ns_last_seq = le64_to_cpu(sbp->s_last_seq); in nilfs_store_log_cursor()
226 struct nilfs_super_block **sbp = nilfs->ns_sbp; in load_nilfs() local
[all …]
Dsuper.c90 struct nilfs_super_block **sbp; in nilfs_set_error() local
95 sbp = nilfs_prepare_super(sb, 0); in nilfs_set_error()
96 if (likely(sbp)) { in nilfs_set_error()
97 sbp[0]->s_state |= cpu_to_le16(NILFS_ERROR_FS); in nilfs_set_error()
98 if (sbp[1]) in nilfs_set_error()
99 sbp[1]->s_state |= cpu_to_le16(NILFS_ERROR_FS); in nilfs_set_error()
199 struct nilfs_super_block *sbp = nilfs->ns_sbp[0]; in nilfs_sync_super() local
218 sbp = nilfs->ns_sbp[1]; in nilfs_sync_super()
222 nilfs->ns_prot_seq = le64_to_cpu(sbp->s_last_seq); in nilfs_sync_super()
229 void nilfs_set_log_cursor(struct nilfs_super_block *sbp, in nilfs_set_log_cursor() argument
[all …]
Dsysfs.c833 struct nilfs_super_block **sbp = nilfs->ns_sbp; in nilfs_dev_revision_show() local
834 u32 major = le32_to_cpu(sbp[0]->s_rev_level); in nilfs_dev_revision_show()
835 u16 minor = le16_to_cpu(sbp[0]->s_minor_rev_level); in nilfs_dev_revision_show()
853 struct nilfs_super_block **sbp = nilfs->ns_sbp; in nilfs_dev_device_size_show() local
854 u64 dev_size = le64_to_cpu(sbp[0]->s_dev_size); in nilfs_dev_device_size_show()
876 struct nilfs_super_block **sbp = nilfs->ns_sbp; in nilfs_dev_uuid_show() local
878 return snprintf(buf, PAGE_SIZE, "%pUb\n", sbp[0]->s_uuid); in nilfs_dev_uuid_show()
886 struct nilfs_super_block **sbp = nilfs->ns_sbp; in nilfs_dev_volume_name_show() local
888 return scnprintf(buf, sizeof(sbp[0]->s_volume_name), "%s\n", in nilfs_dev_volume_name_show()
889 sbp[0]->s_volume_name); in nilfs_dev_volume_name_show()
/Linux-v5.15/fs/freevxfs/
Dvxfs_super.c68 vxfs_put_super(struct super_block *sbp) in vxfs_put_super() argument
70 struct vxfs_sb_info *infp = VXFS_SBI(sbp); in vxfs_put_super()
148 static int vxfs_try_sb_magic(struct super_block *sbp, int silent, in vxfs_try_sb_magic() argument
153 struct vxfs_sb_info *infp = VXFS_SBI(sbp); in vxfs_try_sb_magic()
156 bp = sb_bread(sbp, blk); in vxfs_try_sb_magic()
207 static int vxfs_fill_super(struct super_block *sbp, void *dp, int silent) in vxfs_fill_super() argument
216 sbp->s_flags |= SB_RDONLY; in vxfs_fill_super()
224 bsize = sb_min_blocksize(sbp, BLOCK_SIZE); in vxfs_fill_super()
230 sbp->s_op = &vxfs_super_ops; in vxfs_fill_super()
231 sbp->s_fs_info = infp; in vxfs_fill_super()
[all …]
Dvxfs_olt.c57 vxfs_oblock(struct super_block *sbp, daddr_t block, u_long bsize) in vxfs_oblock() argument
59 BUG_ON(sbp->s_blocksize % bsize); in vxfs_oblock()
60 return (block * (sbp->s_blocksize / bsize)); in vxfs_oblock()
77 vxfs_read_olt(struct super_block *sbp, u_long bsize) in vxfs_read_olt() argument
79 struct vxfs_sb_info *infp = VXFS_SBI(sbp); in vxfs_read_olt()
84 bp = sb_bread(sbp, vxfs_oblock(sbp, infp->vsi_oltext, bsize)); in vxfs_read_olt()
105 eaddr = bp->b_data + (infp->vsi_oltsize * sbp->s_blocksize); in vxfs_read_olt()
Dvxfs_inode.c164 vxfs_blkiget(struct super_block *sbp, u_long extent, ino_t ino) in vxfs_blkiget() argument
170 inode = new_inode(sbp); in vxfs_blkiget()
175 block = extent + ((ino * VXFS_ISIZE) / sbp->s_blocksize); in vxfs_blkiget()
176 offset = ((ino % (sbp->s_blocksize / VXFS_ISIZE)) * VXFS_ISIZE); in vxfs_blkiget()
177 bp = sb_bread(sbp, block); in vxfs_blkiget()
184 dip2vip_cpy(VXFS_SBI(sbp), vip, dip); in vxfs_blkiget()
249 vxfs_stiget(struct super_block *sbp, ino_t ino) in vxfs_stiget() argument
254 inode = new_inode(sbp); in vxfs_stiget()
259 error = __vxfs_iget(VXFS_SBI(sbp)->vsi_stilist, VXFS_INO(inode), ino); in vxfs_stiget()
278 vxfs_iget(struct super_block *sbp, ino_t ino) in vxfs_iget() argument
[all …]
Dvxfs_fshead.c108 vxfs_read_fshead(struct super_block *sbp) in vxfs_read_fshead() argument
110 struct vxfs_sb_info *infp = VXFS_SBI(sbp); in vxfs_read_fshead()
114 infp->vsi_fship = vxfs_blkiget(sbp, infp->vsi_iext, infp->vsi_fshino); in vxfs_read_fshead()
152 infp->vsi_stilist = vxfs_blkiget(sbp, infp->vsi_iext, in vxfs_read_fshead()
164 infp->vsi_ilist = vxfs_stiget(sbp, fs32_to_cpu(infp, pfp->fsh_ilistino[0])); in vxfs_read_fshead()
Dvxfs_lookup.c49 #define VXFS_BLOCK_PER_PAGE(sbp) ((PAGE_SIZE / (sbp)->s_blocksize)) argument
218 struct super_block *sbp = ip->i_sb; in vxfs_readdir() local
219 u_long bsize = sbp->s_blocksize; in vxfs_readdir()
221 struct vxfs_sb_info *sbi = VXFS_SBI(sbp); in vxfs_readdir()
Dvxfs_inode.h53 #define VXFS_TYPED_PER_BLOCK(sbp) \ argument
54 ((sbp)->s_blocksize / sizeof(struct vxfs_typed))
/Linux-v5.15/fs/xfs/
Dxfs_mount.c129 xfs_sb_t *sbp, in xfs_sb_validate_fsb_count() argument
132 ASSERT(PAGE_SHIFT >= sbp->sb_blocklog); in xfs_sb_validate_fsb_count()
133 ASSERT(sbp->sb_blocklog >= BBSHIFT); in xfs_sb_validate_fsb_count()
136 if (nblocks >> (PAGE_SHIFT - sbp->sb_blocklog) > ULONG_MAX) in xfs_sb_validate_fsb_count()
153 struct xfs_sb *sbp = &mp->m_sb; in xfs_readsb() local
193 xfs_sb_from_disk(sbp, bp->b_addr); in xfs_readsb()
199 if (sbp->sb_magicnum != XFS_SB_MAGIC) { in xfs_readsb()
209 if (sector_size > sbp->sb_sectsize) { in xfs_readsb()
212 sector_size, sbp->sb_sectsize); in xfs_readsb()
223 sector_size = sbp->sb_sectsize; in xfs_readsb()
[all …]
Dxfs_attr_list.c57 struct xfs_attr_sf_sort *sbuf, *sbp; in xfs_attr_shortform_list() local
113 sbp = sbuf = kmem_alloc(sbsize, KM_NOFS); in xfs_attr_shortform_list()
132 sbp->entno = i; in xfs_attr_shortform_list()
133 sbp->hash = xfs_da_hashname(sfe->nameval, sfe->namelen); in xfs_attr_shortform_list()
134 sbp->name = sfe->nameval; in xfs_attr_shortform_list()
135 sbp->namelen = sfe->namelen; in xfs_attr_shortform_list()
137 sbp->valuelen = sfe->valuelen; in xfs_attr_shortform_list()
138 sbp->flags = sfe->flags; in xfs_attr_shortform_list()
140 sbp++; in xfs_attr_shortform_list()
155 for (sbp = sbuf, i = 0; i < nsbuf; i++, sbp++) { in xfs_attr_shortform_list()
[all …]
Dxfs_rtalloc.c921 xfs_sb_t *sbp; /* old superblock */ in xfs_growfs_rt() local
925 sbp = &mp->m_sb; in xfs_growfs_rt()
941 if (in->newblocks <= sbp->sb_rblocks) in xfs_growfs_rt()
945 if (sbp->sb_rblocks > 0 && in->extsize != sbp->sb_rextsize) in xfs_growfs_rt()
958 error = xfs_sb_validate_fsb_count(sbp, nrblocks); in xfs_growfs_rt()
976 nrbmblocks = howmany_64(nrextents, NBBY * sbp->sb_blocksize); in xfs_growfs_rt()
1006 if (nrbmblocks != sbp->sb_rbmblocks) in xfs_growfs_rt()
1019 for (bmbno = sbp->sb_rbmblocks - in xfs_growfs_rt()
1020 ((sbp->sb_rextents & ((1 << mp->m_blkbit_log) - 1)) != 0); in xfs_growfs_rt()
1084 if (sbp->sb_rbmblocks != nsbp->sb_rbmblocks || in xfs_growfs_rt()
[all …]
Dxfs_trans.c480 xfs_dsb_t *sbp; in xfs_trans_apply_sb_deltas() local
485 sbp = bp->b_addr; in xfs_trans_apply_sb_deltas()
492 be64_add_cpu(&sbp->sb_icount, tp->t_icount_delta); in xfs_trans_apply_sb_deltas()
494 be64_add_cpu(&sbp->sb_ifree, tp->t_ifree_delta); in xfs_trans_apply_sb_deltas()
496 be64_add_cpu(&sbp->sb_fdblocks, tp->t_fdblocks_delta); in xfs_trans_apply_sb_deltas()
498 be64_add_cpu(&sbp->sb_fdblocks, tp->t_res_fdblocks_delta); in xfs_trans_apply_sb_deltas()
502 be64_add_cpu(&sbp->sb_frextents, tp->t_frextents_delta); in xfs_trans_apply_sb_deltas()
504 be64_add_cpu(&sbp->sb_frextents, tp->t_res_frextents_delta); in xfs_trans_apply_sb_deltas()
507 be64_add_cpu(&sbp->sb_dblocks, tp->t_dblocks_delta); in xfs_trans_apply_sb_deltas()
511 be32_add_cpu(&sbp->sb_agcount, tp->t_agcount_delta); in xfs_trans_apply_sb_deltas()
[all …]
Dxfs_super.c268 xfs_sb_t *sbp = &mp->m_sb; in xfs_set_inode_alloc() local
280 icount = sbp->sb_dblocks * sbp->sb_imax_pct; in xfs_set_inode_alloc()
282 icount += sbp->sb_agblocks - 1; in xfs_set_inode_alloc()
283 do_div(icount, sbp->sb_agblocks); in xfs_set_inode_alloc()
290 agino = XFS_AGB_TO_AGINO(mp, sbp->sb_agblocks - 1); in xfs_set_inode_alloc()
779 xfs_sb_t *sbp = &mp->m_sb; in xfs_fs_statfs() local
802 statp->f_bsize = sbp->sb_blocksize; in xfs_fs_statfs()
803 lsize = sbp->sb_logstart ? sbp->sb_logblocks : 0; in xfs_fs_statfs()
804 statp->f_blocks = sbp->sb_dblocks - lsize; in xfs_fs_statfs()
821 sbp->sb_icount); in xfs_fs_statfs()
[all …]
/Linux-v5.15/drivers/s390/net/
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 …]
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()
Dqeth_l2_main.c396 if (card->options.sbp.reflect_promisc_primary) in qeth_l2_promisc_to_bridge()
406 card->options.sbp.role = role; in qeth_l2_promisc_to_bridge()
422 if (card->options.sbp.reflect_promisc) in qeth_l2_set_promisc_mode()
1130 QETH_CARD_HEX(card, 2, &card->options.sbp.supported_funcs, in qeth_l2_trace_features()
1131 sizeof(card->options.sbp.supported_funcs)); in qeth_l2_trace_features()
1140 if (!card->options.sbp.reflect_promisc && in qeth_l2_setup_bridgeport_attrs()
1141 card->options.sbp.role != QETH_SBP_ROLE_NONE) { in qeth_l2_setup_bridgeport_attrs()
1143 qeth_bridgeport_setrole(card, card->options.sbp.role); in qeth_l2_setup_bridgeport_attrs()
1145 qeth_bridgeport_query_ports(card, &card->options.sbp.role, in qeth_l2_setup_bridgeport_attrs()
1148 if (card->options.sbp.hostnotification) { in qeth_l2_setup_bridgeport_attrs()
[all …]
/Linux-v5.15/fs/reiserfs/
Dreiserfs.h114 #define sb_block_count(sbp) (le32_to_cpu((sbp)->s_v1.s_block_count)) argument
115 #define set_sb_block_count(sbp,v) ((sbp)->s_v1.s_block_count = cpu_to_le32(v)) argument
116 #define sb_free_blocks(sbp) (le32_to_cpu((sbp)->s_v1.s_free_blocks)) argument
117 #define set_sb_free_blocks(sbp,v) ((sbp)->s_v1.s_free_blocks = cpu_to_le32(v)) argument
118 #define sb_root_block(sbp) (le32_to_cpu((sbp)->s_v1.s_root_block)) argument
119 #define set_sb_root_block(sbp,v) ((sbp)->s_v1.s_root_block = cpu_to_le32(v)) argument
121 #define sb_jp_journal_1st_block(sbp) \ argument
122 (le32_to_cpu((sbp)->s_v1.s_journal.jp_journal_1st_block))
123 #define set_sb_jp_journal_1st_block(sbp,v) \ argument
124 ((sbp)->s_v1.s_journal.jp_journal_1st_block = cpu_to_le32(v))
[all …]
/Linux-v5.15/drivers/scsi/
Dscsi_ioctl.c393 if (req->sense_len && hdr->sbp) { in scsi_complete_sghdr_rq()
396 if (!copy_to_user(hdr->sbp, req->sense, len)) in scsi_complete_sghdr_rq()
658 .sbp = (uintptr_t)hdr->sbp, in put_sg_io_hdr()
706 .sbp = compat_ptr(hdr32.sbp), in get_sg_io_hdr()
841 hdr.sbp = cgc.sense; in scsi_cdrom_send_packet()
842 if (hdr.sbp) in scsi_cdrom_send_packet()
/Linux-v5.15/include/scsi/
Dsg.h55 void __user *sbp; /* [i], [*o] points to sense_buffer memory */ member
84 compat_uptr_t sbp; /* [i], [*o] points to sense_buffer memory */ member

12