Home
last modified time | relevance | path

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

12

/linux-6.1.9/fs/xfs/libxfs/
Dxfs_sb.c39 struct xfs_sb *sbp) in xfs_sb_validate_v5_features() argument
42 if (sbp->sb_versionnum & ~XFS_SB_VERSION_OKBITS) in xfs_sb_validate_v5_features()
49 if (sbp->sb_features2 & ~(XFS_SB_VERSION2_OKBITS | in xfs_sb_validate_v5_features()
67 if ((sbp->sb_versionnum & V5_VERS_FLAGS) != V5_VERS_FLAGS) in xfs_sb_validate_v5_features()
69 if ((sbp->sb_features2 & V5_FEAT_FLAGS) != V5_FEAT_FLAGS) in xfs_sb_validate_v5_features()
79 struct xfs_sb *sbp) in xfs_sb_good_version() argument
86 if (xfs_sb_is_v5(sbp)) in xfs_sb_good_version()
87 return xfs_sb_validate_v5_features(sbp); in xfs_sb_good_version()
90 if ((sbp->sb_versionnum & ~XFS_SB_VERSION_OKBITS) || in xfs_sb_good_version()
91 ((sbp->sb_versionnum & XFS_SB_VERSION_MOREBITSBIT) && in xfs_sb_good_version()
[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-6.1.9/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-6.1.9/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-6.1.9/fs/nilfs2/
Dthe_nilfs.c27 static int nilfs_valid_sb(struct nilfs_super_block *sbp);
102 struct nilfs_super_block **sbp = nilfs->ns_sbp; in nilfs_load_super_root() local
113 dat_entry_size = le16_to_cpu(sbp[0]->s_dat_entry_size); in nilfs_load_super_root()
114 checkpoint_size = le16_to_cpu(sbp[0]->s_checkpoint_size); in nilfs_load_super_root()
115 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()
210 struct nilfs_super_block *sbp, int *blocksize) in nilfs_get_blocksize() argument
[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()
200 struct nilfs_super_block *sbp = nilfs->ns_sbp[0]; in nilfs_sync_super() local
219 sbp = nilfs->ns_sbp[1]; in nilfs_sync_super()
223 nilfs->ns_prot_seq = le64_to_cpu(sbp->s_last_seq); in nilfs_sync_super()
230 void nilfs_set_log_cursor(struct nilfs_super_block *sbp, in nilfs_set_log_cursor() argument
[all …]
Dsysfs.c839 struct nilfs_super_block **sbp = nilfs->ns_sbp; in nilfs_dev_revision_show() local
840 u32 major = le32_to_cpu(sbp[0]->s_rev_level); in nilfs_dev_revision_show()
841 u16 minor = le16_to_cpu(sbp[0]->s_minor_rev_level); in nilfs_dev_revision_show()
859 struct nilfs_super_block **sbp = nilfs->ns_sbp; in nilfs_dev_device_size_show() local
860 u64 dev_size = le64_to_cpu(sbp[0]->s_dev_size); in nilfs_dev_device_size_show()
882 struct nilfs_super_block **sbp = nilfs->ns_sbp; in nilfs_dev_uuid_show() local
884 return sysfs_emit(buf, "%pUb\n", sbp[0]->s_uuid); in nilfs_dev_uuid_show()
892 struct nilfs_super_block **sbp = nilfs->ns_sbp; in nilfs_dev_volume_name_show() local
894 return scnprintf(buf, sizeof(sbp[0]->s_volume_name), "%s\n", in nilfs_dev_volume_name_show()
895 sbp[0]->s_volume_name); in nilfs_dev_volume_name_show()
/linux-6.1.9/fs/freevxfs/
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()
124 static int vxfs_try_sb_magic(struct super_block *sbp, int silent, in vxfs_try_sb_magic() argument
129 struct vxfs_sb_info *infp = VXFS_SBI(sbp); in vxfs_try_sb_magic()
132 bp = sb_bread(sbp, blk); in vxfs_try_sb_magic()
183 static int vxfs_fill_super(struct super_block *sbp, void *dp, int silent) in vxfs_fill_super() argument
192 sbp->s_flags |= SB_RDONLY; in vxfs_fill_super()
200 bsize = sb_min_blocksize(sbp, BLOCK_SIZE); in vxfs_fill_super()
206 sbp->s_op = &vxfs_super_ops; in vxfs_fill_super()
207 sbp->s_fs_info = infp; in vxfs_fill_super()
[all …]
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()
Dvxfs_inode.c140 vxfs_blkiget(struct super_block *sbp, u_long extent, ino_t ino) in vxfs_blkiget() argument
146 inode = new_inode(sbp); in vxfs_blkiget()
151 block = extent + ((ino * VXFS_ISIZE) / sbp->s_blocksize); in vxfs_blkiget()
152 offset = ((ino % (sbp->s_blocksize / VXFS_ISIZE)) * VXFS_ISIZE); in vxfs_blkiget()
153 bp = sb_bread(sbp, block); in vxfs_blkiget()
160 dip2vip_cpy(VXFS_SBI(sbp), vip, dip); in vxfs_blkiget()
225 vxfs_stiget(struct super_block *sbp, ino_t ino) in vxfs_stiget() argument
230 inode = new_inode(sbp); in vxfs_stiget()
235 error = __vxfs_iget(VXFS_SBI(sbp)->vsi_stilist, VXFS_INO(inode), ino); in vxfs_stiget()
254 vxfs_iget(struct super_block *sbp, ino_t ino) in vxfs_iget() argument
[all …]
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()
Dvxfs_lookup.c25 #define VXFS_BLOCK_PER_PAGE(sbp) ((PAGE_SIZE / (sbp)->s_blocksize)) argument
194 struct super_block *sbp = ip->i_sb; in vxfs_readdir() local
195 u_long bsize = sbp->s_blocksize; in vxfs_readdir()
197 struct vxfs_sb_info *sbi = VXFS_SBI(sbp); in vxfs_readdir()
Dvxfs_inode.h28 #define VXFS_TYPED_PER_BLOCK(sbp) \ argument
29 ((sbp)->s_blocksize / sizeof(struct vxfs_typed))
/linux-6.1.9/fs/xfs/
Dxfs_mount.c130 xfs_sb_t *sbp, in xfs_sb_validate_fsb_count() argument
133 ASSERT(PAGE_SHIFT >= sbp->sb_blocklog); in xfs_sb_validate_fsb_count()
134 ASSERT(sbp->sb_blocklog >= BBSHIFT); in xfs_sb_validate_fsb_count()
137 if (nblocks >> (PAGE_SHIFT - sbp->sb_blocklog) > ULONG_MAX) in xfs_sb_validate_fsb_count()
154 struct xfs_sb *sbp = &mp->m_sb; in xfs_readsb() local
194 xfs_sb_from_disk(sbp, bp->b_addr); in xfs_readsb()
200 if (sbp->sb_magicnum != XFS_SB_MAGIC) { in xfs_readsb()
210 if (sector_size > sbp->sb_sectsize) { in xfs_readsb()
213 sector_size, sbp->sb_sectsize); in xfs_readsb()
224 sector_size = sbp->sb_sectsize; in xfs_readsb()
[all …]
Dxfs_attr_list.c58 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.c924 xfs_sb_t *sbp; /* old superblock */ in xfs_growfs_rt() local
928 sbp = &mp->m_sb; in xfs_growfs_rt()
944 if (in->newblocks <= sbp->sb_rblocks) in xfs_growfs_rt()
948 if (sbp->sb_rblocks > 0 && in->extsize != sbp->sb_rextsize) in xfs_growfs_rt()
961 error = xfs_sb_validate_fsb_count(sbp, nrblocks); in xfs_growfs_rt()
979 nrbmblocks = howmany_64(nrextents, NBBY * sbp->sb_blocksize); in xfs_growfs_rt()
1009 if (nrbmblocks != sbp->sb_rbmblocks) in xfs_growfs_rt()
1022 for (bmbno = sbp->sb_rbmblocks - in xfs_growfs_rt()
1023 ((sbp->sb_rextents & ((1 << mp->m_blkbit_log) - 1)) != 0); in xfs_growfs_rt()
1087 if (sbp->sb_rbmblocks != nsbp->sb_rbmblocks || in xfs_growfs_rt()
[all …]
Dxfs_trans.c475 struct xfs_dsb *sbp; in xfs_trans_apply_sb_deltas() local
480 sbp = bp->b_addr; in xfs_trans_apply_sb_deltas()
487 be64_add_cpu(&sbp->sb_icount, tp->t_icount_delta); in xfs_trans_apply_sb_deltas()
489 be64_add_cpu(&sbp->sb_ifree, tp->t_ifree_delta); in xfs_trans_apply_sb_deltas()
491 be64_add_cpu(&sbp->sb_fdblocks, tp->t_fdblocks_delta); in xfs_trans_apply_sb_deltas()
493 be64_add_cpu(&sbp->sb_fdblocks, tp->t_res_fdblocks_delta); in xfs_trans_apply_sb_deltas()
517 be64_add_cpu(&sbp->sb_frextents, rtxdelta); in xfs_trans_apply_sb_deltas()
523 be64_add_cpu(&sbp->sb_dblocks, tp->t_dblocks_delta); in xfs_trans_apply_sb_deltas()
527 be32_add_cpu(&sbp->sb_agcount, tp->t_agcount_delta); in xfs_trans_apply_sb_deltas()
531 sbp->sb_imax_pct += tp->t_imaxpct_delta; in xfs_trans_apply_sb_deltas()
[all …]
Dxfs_super.c272 xfs_sb_t *sbp = &mp->m_sb; in xfs_set_inode_alloc() local
284 icount = sbp->sb_dblocks * sbp->sb_imax_pct; in xfs_set_inode_alloc()
286 icount += sbp->sb_agblocks - 1; in xfs_set_inode_alloc()
287 do_div(icount, sbp->sb_agblocks); in xfs_set_inode_alloc()
294 agino = XFS_AGB_TO_AGINO(mp, sbp->sb_agblocks - 1); in xfs_set_inode_alloc()
800 xfs_sb_t *sbp = &mp->m_sb; in xfs_fs_statfs() local
826 statp->f_bsize = sbp->sb_blocksize; in xfs_fs_statfs()
827 lsize = sbp->sb_logstart ? sbp->sb_logblocks : 0; in xfs_fs_statfs()
828 statp->f_blocks = sbp->sb_dblocks - lsize; in xfs_fs_statfs()
846 sbp->sb_icount); in xfs_fs_statfs()
[all …]
/linux-6.1.9/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()
1144 QETH_CARD_HEX(card, 2, &card->options.sbp.supported_funcs, in qeth_l2_trace_features()
1145 sizeof(card->options.sbp.supported_funcs)); in qeth_l2_trace_features()
1154 if (!card->options.sbp.reflect_promisc && in qeth_l2_setup_bridgeport_attrs()
1155 card->options.sbp.role != QETH_SBP_ROLE_NONE) { in qeth_l2_setup_bridgeport_attrs()
1157 qeth_bridgeport_setrole(card, card->options.sbp.role); in qeth_l2_setup_bridgeport_attrs()
1159 qeth_bridgeport_query_ports(card, &card->options.sbp.role, in qeth_l2_setup_bridgeport_attrs()
1162 if (card->options.sbp.hostnotification) { in qeth_l2_setup_bridgeport_attrs()
[all …]
/linux-6.1.9/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-6.1.9/drivers/scsi/
Dscsi_ioctl.c391 if (scmd->sense_len && hdr->sbp) { in scsi_complete_sghdr_rq()
394 if (!copy_to_user(hdr->sbp, scmd->sense_buffer, len)) in scsi_complete_sghdr_rq()
627 .sbp = (uintptr_t)hdr->sbp, in put_sg_io_hdr()
675 .sbp = compat_ptr(hdr32.sbp), in get_sg_io_hdr()
810 hdr.sbp = cgc.sense; in scsi_cdrom_send_packet()
811 if (hdr.sbp) in scsi_cdrom_send_packet()
/linux-6.1.9/include/scsi/
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

12