/kernel/linux/linux-5.10/fs/xfs/libxfs/ |
D | xfs_sb.c | 98 struct xfs_sb *sbp) in xfs_validate_sb_read() argument 100 if (XFS_SB_VERSION_NUM(sbp) != XFS_SB_VERSION_5) in xfs_validate_sb_read() 107 if (xfs_sb_has_compat_feature(sbp, XFS_SB_FEAT_COMPAT_UNKNOWN)) { in xfs_validate_sb_read() 110 (sbp->sb_features_compat & XFS_SB_FEAT_COMPAT_UNKNOWN)); in xfs_validate_sb_read() 115 if (xfs_sb_has_ro_compat_feature(sbp, XFS_SB_FEAT_RO_COMPAT_UNKNOWN)) { in xfs_validate_sb_read() 118 (sbp->sb_features_ro_compat & in xfs_validate_sb_read() 129 if (xfs_sb_has_incompat_feature(sbp, XFS_SB_FEAT_INCOMPAT_UNKNOWN)) { in xfs_validate_sb_read() 132 (sbp->sb_features_incompat & in xfs_validate_sb_read() 147 struct xfs_sb *sbp) in xfs_validate_sb_write() argument 159 if (XFS_BUF_ADDR(bp) == XFS_SB_DADDR && !sbp->sb_inprogress && in xfs_validate_sb_write() [all …]
|
D | xfs_format.h | 281 #define XFS_SB_VERSION_NUM(sbp) ((sbp)->sb_versionnum & XFS_SB_VERSION_NUMBITS) argument 286 static inline bool xfs_sb_good_v4_features(struct xfs_sb *sbp) in xfs_sb_good_v4_features() argument 288 if (!(sbp->sb_versionnum & XFS_SB_VERSION_DIRV2BIT)) in xfs_sb_good_v4_features() 290 if (!(sbp->sb_versionnum & XFS_SB_VERSION_EXTFLGBIT)) in xfs_sb_good_v4_features() 294 if ((sbp->sb_versionnum & ~XFS_SB_VERSION_OKBITS) || in xfs_sb_good_v4_features() 295 ((sbp->sb_versionnum & XFS_SB_VERSION_MOREBITSBIT) && in xfs_sb_good_v4_features() 296 (sbp->sb_features2 & ~XFS_SB_VERSION2_OKBITS))) in xfs_sb_good_v4_features() 302 static inline bool xfs_sb_good_version(struct xfs_sb *sbp) in xfs_sb_good_version() argument 304 if (XFS_SB_VERSION_NUM(sbp) == XFS_SB_VERSION_5) in xfs_sb_good_version() 306 if (XFS_SB_VERSION_NUM(sbp) == XFS_SB_VERSION_4) in xfs_sb_good_version() [all …]
|
D | xfs_sb.h | 28 extern void xfs_sb_mount_common(struct xfs_mount *mp, struct xfs_sb *sbp); 31 extern void xfs_sb_quota_from_disk(struct xfs_sb *sbp); 36 extern void xfs_fs_geometry(struct xfs_sb *sbp, struct xfs_fsop_geom *geo,
|
/kernel/linux/linux-5.10/arch/mips/sibyte/common/ |
D | sb_tbprof.c | 70 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 …]
|
/kernel/linux/linux-5.10/fs/ufs/ |
D | swab.h | 27 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 …]
|
/kernel/linux/linux-5.10/fs/nilfs2/ |
D | the_nilfs.c | 27 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() 209 struct nilfs_super_block *sbp, int *blocksize) in nilfs_get_blocksize() argument [all …]
|
D | super.c | 90 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 …]
|
D | sysfs.c | 846 struct nilfs_super_block **sbp = nilfs->ns_sbp; in nilfs_dev_revision_show() local 847 u32 major = le32_to_cpu(sbp[0]->s_rev_level); in nilfs_dev_revision_show() 848 u16 minor = le16_to_cpu(sbp[0]->s_minor_rev_level); in nilfs_dev_revision_show() 866 struct nilfs_super_block **sbp = nilfs->ns_sbp; in nilfs_dev_device_size_show() local 867 u64 dev_size = le64_to_cpu(sbp[0]->s_dev_size); in nilfs_dev_device_size_show() 889 struct nilfs_super_block **sbp = nilfs->ns_sbp; in nilfs_dev_uuid_show() local 891 return snprintf(buf, PAGE_SIZE, "%pUb\n", sbp[0]->s_uuid); in nilfs_dev_uuid_show() 899 struct nilfs_super_block **sbp = nilfs->ns_sbp; in nilfs_dev_volume_name_show() local 901 return scnprintf(buf, sizeof(sbp[0]->s_volume_name), "%s\n", in nilfs_dev_volume_name_show() 902 sbp[0]->s_volume_name); in nilfs_dev_volume_name_show()
|
/kernel/linux/linux-5.10/fs/freevxfs/ |
D | vxfs_super.c | 68 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 …]
|
D | vxfs_olt.c | 57 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()
|
D | vxfs_inode.c | 164 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 …]
|
D | vxfs_fshead.c | 108 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()
|
D | vxfs_lookup.c | 49 #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()
|
D | vxfs_inode.h | 53 #define VXFS_TYPED_PER_BLOCK(sbp) \ argument 54 ((sbp)->s_blocksize / sizeof(struct vxfs_typed))
|
/kernel/linux/linux-5.10/fs/xfs/ |
D | xfs_attr_list.c | 57 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 …]
|
D | xfs_mount.c | 160 xfs_sb_t *sbp, in xfs_sb_validate_fsb_count() argument 163 ASSERT(PAGE_SHIFT >= sbp->sb_blocklog); in xfs_sb_validate_fsb_count() 164 ASSERT(sbp->sb_blocklog >= BBSHIFT); in xfs_sb_validate_fsb_count() 167 if (nblocks >> (PAGE_SHIFT - sbp->sb_blocklog) > ULONG_MAX) in xfs_sb_validate_fsb_count() 273 struct xfs_sb *sbp = &mp->m_sb; in xfs_readsb() local 313 xfs_sb_from_disk(sbp, bp->b_addr); in xfs_readsb() 319 if (sbp->sb_magicnum != XFS_SB_MAGIC) { in xfs_readsb() 329 if (sector_size > sbp->sb_sectsize) { in xfs_readsb() 332 sector_size, sbp->sb_sectsize); in xfs_readsb() 343 sector_size = sbp->sb_sectsize; in xfs_readsb() [all …]
|
D | xfs_rtalloc.c | 916 xfs_sb_t *sbp; /* old superblock */ in xfs_growfs_rt() local 920 sbp = &mp->m_sb; in xfs_growfs_rt() 927 (nrblocks = in->newblocks) <= sbp->sb_rblocks || in xfs_growfs_rt() 928 (sbp->sb_rblocks && (in->extsize != sbp->sb_rextsize))) in xfs_growfs_rt() 930 if ((error = xfs_sb_validate_fsb_count(sbp, nrblocks))) in xfs_growfs_rt() 947 nrbmblocks = howmany_64(nrextents, NBBY * sbp->sb_blocksize); in xfs_growfs_rt() 977 if (nrbmblocks != sbp->sb_rbmblocks) in xfs_growfs_rt() 990 for (bmbno = sbp->sb_rbmblocks - in xfs_growfs_rt() 991 ((sbp->sb_rextents & ((1 << mp->m_blkbit_log) - 1)) != 0); in xfs_growfs_rt() 1055 if (sbp->sb_rbmblocks != nsbp->sb_rbmblocks || in xfs_growfs_rt() [all …]
|
D | xfs_trans.c | 462 xfs_dsb_t *sbp; in xfs_trans_apply_sb_deltas() local 467 sbp = bp->b_addr; in xfs_trans_apply_sb_deltas() 481 be64_add_cpu(&sbp->sb_icount, tp->t_icount_delta); in xfs_trans_apply_sb_deltas() 483 be64_add_cpu(&sbp->sb_ifree, tp->t_ifree_delta); in xfs_trans_apply_sb_deltas() 485 be64_add_cpu(&sbp->sb_fdblocks, tp->t_fdblocks_delta); in xfs_trans_apply_sb_deltas() 487 be64_add_cpu(&sbp->sb_fdblocks, tp->t_res_fdblocks_delta); in xfs_trans_apply_sb_deltas() 491 be64_add_cpu(&sbp->sb_frextents, tp->t_frextents_delta); in xfs_trans_apply_sb_deltas() 493 be64_add_cpu(&sbp->sb_frextents, tp->t_res_frextents_delta); in xfs_trans_apply_sb_deltas() 496 be64_add_cpu(&sbp->sb_dblocks, tp->t_dblocks_delta); in xfs_trans_apply_sb_deltas() 500 be32_add_cpu(&sbp->sb_agcount, tp->t_agcount_delta); in xfs_trans_apply_sb_deltas() [all …]
|
D | xfs_super.c | 250 xfs_sb_t *sbp = &mp->m_sb; in xfs_set_inode_alloc() local 262 icount = sbp->sb_dblocks * sbp->sb_imax_pct; in xfs_set_inode_alloc() 264 icount += sbp->sb_agblocks - 1; in xfs_set_inode_alloc() 265 do_div(icount, sbp->sb_agblocks); in xfs_set_inode_alloc() 272 agino = XFS_AGB_TO_AGINO(mp, sbp->sb_agblocks - 1); in xfs_set_inode_alloc() 790 xfs_sb_t *sbp = &mp->m_sb; in xfs_fs_statfs() local 810 statp->f_bsize = sbp->sb_blocksize; in xfs_fs_statfs() 811 lsize = sbp->sb_logstart ? sbp->sb_logblocks : 0; in xfs_fs_statfs() 812 statp->f_blocks = sbp->sb_dblocks - lsize; in xfs_fs_statfs() 829 sbp->sb_icount); in xfs_fs_statfs() [all …]
|
/kernel/linux/linux-5.10/drivers/s390/net/ |
D | qeth_l2_sys.c | 26 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 …]
|
D | qeth_l2.h | 36 return card->options.sbp.role || in qeth_bridgeport_is_in_use() 37 card->options.sbp.reflect_promisc || in qeth_bridgeport_is_in_use() 38 card->options.sbp.hostnotification; in qeth_bridgeport_is_in_use()
|
D | qeth_l2_main.c | 397 if (card->options.sbp.reflect_promisc_primary) in qeth_l2_promisc_to_bridge() 407 card->options.sbp.role = role; in qeth_l2_promisc_to_bridge() 423 if (card->options.sbp.reflect_promisc) in qeth_l2_set_promisc_mode() 958 QETH_CARD_HEX(card, 2, &card->options.sbp.supported_funcs, in qeth_l2_trace_features() 959 sizeof(card->options.sbp.supported_funcs)); in qeth_l2_trace_features() 968 if (!card->options.sbp.reflect_promisc && in qeth_l2_setup_bridgeport_attrs() 969 card->options.sbp.role != QETH_SBP_ROLE_NONE) { in qeth_l2_setup_bridgeport_attrs() 971 qeth_bridgeport_setrole(card, card->options.sbp.role); in qeth_l2_setup_bridgeport_attrs() 973 qeth_bridgeport_query_ports(card, &card->options.sbp.role, in qeth_l2_setup_bridgeport_attrs() 976 if (card->options.sbp.hostnotification) { in qeth_l2_setup_bridgeport_attrs() [all …]
|
/kernel/linux/linux-5.10/fs/reiserfs/ |
D | reiserfs.h | 116 #define sb_block_count(sbp) (le32_to_cpu((sbp)->s_v1.s_block_count)) argument 117 #define set_sb_block_count(sbp,v) ((sbp)->s_v1.s_block_count = cpu_to_le32(v)) argument 118 #define sb_free_blocks(sbp) (le32_to_cpu((sbp)->s_v1.s_free_blocks)) argument 119 #define set_sb_free_blocks(sbp,v) ((sbp)->s_v1.s_free_blocks = cpu_to_le32(v)) argument 120 #define sb_root_block(sbp) (le32_to_cpu((sbp)->s_v1.s_root_block)) argument 121 #define set_sb_root_block(sbp,v) ((sbp)->s_v1.s_root_block = cpu_to_le32(v)) argument 123 #define sb_jp_journal_1st_block(sbp) \ argument 124 (le32_to_cpu((sbp)->s_v1.s_journal.jp_journal_1st_block)) 125 #define set_sb_jp_journal_1st_block(sbp,v) \ argument 126 ((sbp)->s_v1.s_journal.jp_journal_1st_block = cpu_to_le32(v)) [all …]
|
/kernel/linux/linux-5.10/include/scsi/ |
D | sg.h | 55 void __user *sbp; /* [i], [*o] points to sense_buffer memory */ member 84 compat_uptr_t sbp; /* [i], [*o] points to sense_buffer memory */ member
|
/kernel/linux/linux-5.10/block/ |
D | scsi_ioctl.c | 266 if (req->sense_len && hdr->sbp) { in blk_complete_sghdr_rq() 269 if (!copy_to_user(hdr->sbp, req->sense, len)) in blk_complete_sghdr_rq() 561 .sbp = (uintptr_t)hdr->sbp, in put_sg_io_hdr() 609 .sbp = compat_ptr(hdr32.sbp), in get_sg_io_hdr() 745 hdr.sbp = cgc.sense; in scsi_cdrom_send_packet() 746 if (hdr.sbp) in scsi_cdrom_send_packet()
|