/fs/xfs/ |
D | xfs_sysfs.c | 86 int val; in bug_on_assert_store() local 88 ret = kstrtoint(buf, 0, &val); in bug_on_assert_store() 92 if (val == 1) in bug_on_assert_store() 94 else if (val == 0) in bug_on_assert_store() 118 int val; in log_recovery_delay_store() local 120 ret = kstrtoint(buf, 0, &val); in log_recovery_delay_store() 124 if (val < 0 || val > 60) in log_recovery_delay_store() 127 xfs_globals.log_recovery_delay = val; in log_recovery_delay_store() 148 int val; in mount_delay_store() local 150 ret = kstrtoint(buf, 0, &val); in mount_delay_store() [all …]
|
D | xfs_linux.h | 88 #define irix_sgid_inherit xfs_params.sgid_inherit.val 89 #define irix_symlink_mode xfs_params.symlink_mode.val 90 #define xfs_panic_mask xfs_params.panic_mask.val 91 #define xfs_error_level xfs_params.error_level.val 92 #define xfs_syncd_centisecs xfs_params.syncd_timer.val 93 #define xfs_stats_clear xfs_params.stats_clear.val 94 #define xfs_inherit_sync xfs_params.inherit_sync.val 95 #define xfs_inherit_nodump xfs_params.inherit_nodump.val 96 #define xfs_inherit_noatime xfs_params.inherit_noatim.val 97 #define xfs_inherit_nosymlinks xfs_params.inherit_nosym.val [all …]
|
D | xfs_sysctl.c | 88 .data = &xfs_params.sgid_inherit.val, 97 .data = &xfs_params.symlink_mode.val, 106 .data = &xfs_params.panic_mask.val, 116 .data = &xfs_params.error_level.val, 125 .data = &xfs_params.syncd_timer.val, 134 .data = &xfs_params.inherit_sync.val, 143 .data = &xfs_params.inherit_nodump.val, 152 .data = &xfs_params.inherit_noatim.val, 161 .data = &xfs_params.inherit_nosym.val, 170 .data = &xfs_params.rotorstep.val, [all …]
|
/fs/btrfs/ |
D | ulist.c | 118 static struct ulist_node *ulist_rbtree_search(struct ulist *ulist, u64 val) in ulist_rbtree_search() argument 125 if (u->val < val) in ulist_rbtree_search() 127 else if (u->val > val) in ulist_rbtree_search() 154 if (cur->val < ins->val) in ulist_rbtree_insert() 156 else if (cur->val > ins->val) in ulist_rbtree_insert() 186 int ulist_add(struct ulist *ulist, u64 val, u64 aux, gfp_t gfp_mask) in ulist_add() argument 188 return ulist_add_merge(ulist, val, aux, NULL, gfp_mask); in ulist_add() 191 int ulist_add_merge(struct ulist *ulist, u64 val, u64 aux, in ulist_add_merge() argument 197 node = ulist_rbtree_search(ulist, val); in ulist_add_merge() 207 node->val = val; in ulist_add_merge() [all …]
|
D | ulist.h | 28 u64 val; /* value to store */ member 50 int ulist_add(struct ulist *ulist, u64 val, u64 aux, gfp_t gfp_mask); 51 int ulist_add_merge(struct ulist *ulist, u64 val, u64 aux, 53 int ulist_del(struct ulist *ulist, u64 val, u64 aux); 56 static inline int ulist_add_merge_ptr(struct ulist *ulist, u64 val, void *aux, in ulist_add_merge_ptr() argument 61 int ret = ulist_add_merge(ulist, val, (uintptr_t)aux, &old64, gfp_mask); in ulist_add_merge_ptr() 65 return ulist_add_merge(ulist, val, (u64)aux, (u64 *)old_aux, gfp_mask); in ulist_add_merge_ptr()
|
D | sysfs.c | 118 int val = 0; in can_modify_feature() local 140 val |= 1; in can_modify_feature() 142 val |= 2; in can_modify_feature() 144 return val; in can_modify_feature() 150 int val = 0; in btrfs_feature_attr_show() local 156 val = 1; in btrfs_feature_attr_show() 158 val = can_modify_feature(fa); in btrfs_feature_attr_show() 160 return scnprintf(buf, PAGE_SIZE, "%d\n", val); in btrfs_feature_attr_show() 170 unsigned long val; in btrfs_feature_attr_store() local 180 ret = kstrtoul(skip_spaces(buf), 0, &val); in btrfs_feature_attr_store() [all …]
|
D | struct-funcs.c | 106 u##bits val) \ 120 put_unaligned_le##bits(val, token->kaddr + oip); \ 126 put_unaligned_le##bits(val, token->kaddr + oip); \ 129 put_unaligned_le##bits(val, lebytes); \ 136 unsigned long off, u##bits val) \ 148 put_unaligned_le##bits(val, kaddr + oip); \ 152 put_unaligned_le##bits(val, lebytes); \
|
/fs/nfsd/ |
D | fault_inject.c | 32 static u64 val; in fault_inject_read() local 39 val = op->get(); in fault_inject_read() 40 size = scnprintf(read_buf, sizeof(read_buf), "%llu\n", val); in fault_inject_read() 53 u64 val; in fault_inject_write() local 69 val = op->set_clnt(&sa, size); in fault_inject_write() 70 if (val) in fault_inject_write() 72 op->file, write_buf, val); in fault_inject_write() 74 val = simple_strtoll(write_buf, NULL, 0); in fault_inject_write() 75 if (val == 0) in fault_inject_write() 79 op->file, val); in fault_inject_write() [all …]
|
D | blocklayoutxdr.c | 213 u64 val; in nfsd4_scsi_decode_layoutupdate() local 215 p = xdr_decode_hyper(p, &val); in nfsd4_scsi_decode_layoutupdate() 216 if (val & (block_size - 1)) { in nfsd4_scsi_decode_layoutupdate() 217 dprintk("%s: unaligned offset 0x%llx\n", __func__, val); in nfsd4_scsi_decode_layoutupdate() 220 iomaps[i].offset = val; in nfsd4_scsi_decode_layoutupdate() 222 p = xdr_decode_hyper(p, &val); in nfsd4_scsi_decode_layoutupdate() 223 if (val & (block_size - 1)) { in nfsd4_scsi_decode_layoutupdate() 224 dprintk("%s: unaligned length 0x%llx\n", __func__, val); in nfsd4_scsi_decode_layoutupdate() 227 iomaps[i].length = val; in nfsd4_scsi_decode_layoutupdate()
|
/fs/ceph/ |
D | xattr.c | 36 ssize_t (*getxattr_cb)(struct ceph_inode_info *ci, char *val, 56 static ssize_t ceph_vxattrcb_layout(struct ceph_inode_info *ci, char *val, in ceph_vxattrcb_layout() argument 93 memcpy(val, buf, len); in ceph_vxattrcb_layout() 97 memcpy(val + ret, pool_name, len); in ceph_vxattrcb_layout() 102 memcpy(val + ret, ns_field, len); in ceph_vxattrcb_layout() 104 memcpy(val + ret, pool_ns->str, pool_ns->len); in ceph_vxattrcb_layout() 120 int ceph_fmt_xattr(char *val, size_t size, const char *fmt, ...) in ceph_fmt_xattr() argument 137 memcpy(val, buf, ret); in ceph_fmt_xattr() 142 char *val, size_t size) in ceph_vxattrcb_layout_stripe_unit() argument 144 return ceph_fmt_xattr(val, size, "%u", ci->i_layout.stripe_unit); in ceph_vxattrcb_layout_stripe_unit() [all …]
|
/fs/debugfs/ |
D | file.c | 438 static int debugfs_u8_set(void *data, u64 val) in debugfs_u8_set() argument 440 *(u8 *)data = val; in debugfs_u8_set() 443 static int debugfs_u8_get(void *data, u64 *val) in debugfs_u8_get() argument 445 *val = *(u8 *)data; in debugfs_u8_get() 474 static int debugfs_u16_set(void *data, u64 val) in debugfs_u16_set() argument 476 *(u16 *)data = val; in debugfs_u16_set() 479 static int debugfs_u16_get(void *data, u64 *val) in debugfs_u16_get() argument 481 *val = *(u16 *)data; in debugfs_u16_get() 510 static int debugfs_u32_set(void *data, u64 val) in debugfs_u32_set() argument 512 *(u32 *)data = val; in debugfs_u32_set() [all …]
|
/fs/squashfs/ |
D | xattr.c | 46 struct squashfs_xattr_val val; in squashfs_listxattr() local 88 err = squashfs_read_metadata(sb, &val, &start, &offset, in squashfs_listxattr() 89 sizeof(val)); in squashfs_listxattr() 94 le32_to_cpu(val.vsize)); in squashfs_listxattr() 124 struct squashfs_xattr_val val; in squashfs_xattr_get() local 152 err = squashfs_read_metadata(sb, &val, &start, in squashfs_xattr_get() 153 &offset, sizeof(val)); in squashfs_xattr_get() 166 err = squashfs_read_metadata(sb, &val, &start, &offset, in squashfs_xattr_get() 167 sizeof(val)); in squashfs_xattr_get() 171 vsize = le32_to_cpu(val.vsize); in squashfs_xattr_get() [all …]
|
/fs/fuse/ |
D | control.c | 68 size_t len, loff_t *ppos, unsigned val) in fuse_conn_limit_read() argument 71 size_t size = sprintf(tmp, "%u\n", val); in fuse_conn_limit_read() 77 size_t count, loff_t *ppos, unsigned *val, in fuse_conn_limit_write() argument 97 *val = t; in fuse_conn_limit_write() 107 unsigned val; in fuse_conn_max_background_read() local 113 val = READ_ONCE(fc->max_background); in fuse_conn_max_background_read() 116 return fuse_conn_limit_read(file, buf, len, ppos, val); in fuse_conn_max_background_read() 123 unsigned val; in fuse_conn_max_background_write() local 126 ret = fuse_conn_limit_write(file, buf, count, ppos, &val, in fuse_conn_max_background_write() 132 fc->max_background = val; in fuse_conn_max_background_write() [all …]
|
D | cuse.c | 221 char *key, *val; in cuse_parse_one() local 233 key = val = p; in cuse_parse_one() 237 strsep(&val, "="); in cuse_parse_one() 238 if (!val) in cuse_parse_one() 239 val = key + strlen(key); in cuse_parse_one() 241 val = strstrip(val); in cuse_parse_one() 253 *valp = val; in cuse_parse_one() 274 char *key, *val; in cuse_parse_devinfo() local 278 rc = cuse_parse_one(&p, end, &key, &val); in cuse_parse_devinfo() 284 devinfo->name = val; in cuse_parse_devinfo()
|
/fs/orangefs/ |
D | orangefs-sysfs.c | 539 int val = 0; in sysfs_service_op_store() local 565 rc = kstrtoint(buf, 0, &val); in sysfs_service_op_store() 584 if (val > 0) { in sysfs_service_op_store() 593 if (val > 0) { in sysfs_service_op_store() 602 if ((val == 0) || (val == 1)) { in sysfs_service_op_store() 611 if ((val >= 0)) { in sysfs_service_op_store() 620 if ((val >= 0)) { in sysfs_service_op_store() 647 if ((val >= 0)) { in sysfs_service_op_store() 658 if (val > -1) { in sysfs_service_op_store() 666 if (val > -1) { in sysfs_service_op_store() [all …]
|
D | file.c | 380 __u64 val = 0; in orangefs_getflags() local 385 &val, sizeof(val)); in orangefs_getflags() 389 val = 0; in orangefs_getflags() 390 *uval = val; in orangefs_getflags() 401 __u64 val = 0; in orangefs_ioctl() local 444 val = uval; in orangefs_ioctl() 447 (unsigned long long)val); in orangefs_ioctl() 450 &val, sizeof(val), 0); in orangefs_ioctl()
|
/fs/f2fs/ |
D | hash.c | 45 unsigned pad, val; in str2hashbuf() local 51 val = pad; in str2hashbuf() 56 val = pad; in str2hashbuf() 57 val = msg[i] + (val << 8); in str2hashbuf() 59 *buf++ = val; in str2hashbuf() 60 val = pad; in str2hashbuf() 65 *buf++ = val; in str2hashbuf()
|
/fs/ext4/ |
D | hash.c | 137 __u32 pad, val; in str2hashbuf_signed() local 144 val = pad; in str2hashbuf_signed() 148 val = ((int) scp[i]) + (val << 8); in str2hashbuf_signed() 150 *buf++ = val; in str2hashbuf_signed() 151 val = pad; in str2hashbuf_signed() 156 *buf++ = val; in str2hashbuf_signed() 163 __u32 pad, val; in str2hashbuf_unsigned() local 170 val = pad; in str2hashbuf_unsigned() 174 val = ((int) ucp[i]) + (val << 8); in str2hashbuf_unsigned() 176 *buf++ = val; in str2hashbuf_unsigned() [all …]
|
/fs/adfs/ |
D | dir_f.c | 17 unsigned int val = 0; in adfs_readval() local 20 case 4: val |= p[3] << 24; in adfs_readval() 22 case 3: val |= p[2] << 16; in adfs_readval() 24 case 2: val |= p[1] << 8; in adfs_readval() 26 default: val |= p[0]; in adfs_readval() 28 return val; in adfs_readval() 31 static inline void adfs_writeval(unsigned char *p, int len, unsigned int val) in adfs_writeval() argument 34 case 4: p[3] = val >> 24; in adfs_writeval() 36 case 3: p[2] = val >> 16; in adfs_writeval() 38 case 2: p[1] = val >> 8; in adfs_writeval() [all …]
|
/fs/reiserfs/ |
D | reiserfs.h | 1073 #define PUT_SB_BLOCK_COUNT(s, val) \ argument 1074 do { SB_V1_DISK_SUPER_BLOCK(s)->s_block_count = cpu_to_le32(val); } while (0) 1075 #define PUT_SB_FREE_BLOCKS(s, val) \ argument 1076 do { SB_V1_DISK_SUPER_BLOCK(s)->s_free_blocks = cpu_to_le32(val); } while (0) 1077 #define PUT_SB_ROOT_BLOCK(s, val) \ argument 1078 do { SB_V1_DISK_SUPER_BLOCK(s)->s_root_block = cpu_to_le32(val); } while (0) 1079 #define PUT_SB_TREE_HEIGHT(s, val) \ argument 1080 do { SB_V1_DISK_SUPER_BLOCK(s)->s_tree_height = cpu_to_le16(val); } while (0) 1081 #define PUT_SB_REISERFS_STATE(s, val) \ argument 1082 do { SB_V1_DISK_SUPER_BLOCK(s)->s_umount_state = cpu_to_le16(val); } while (0) [all …]
|
/fs/gfs2/ |
D | sys.c | 127 int error, val; in withdraw_store() local 132 error = kstrtoint(buf, 0, &val); in withdraw_store() 136 if (val != 1) in withdraw_store() 148 int error, val; in statfs_sync_store() local 153 error = kstrtoint(buf, 0, &val); in statfs_sync_store() 157 if (val != 1) in statfs_sync_store() 167 int error, val; in quota_sync_store() local 172 error = kstrtoint(buf, 0, &val); in quota_sync_store() 176 if (val != 1) in quota_sync_store() 330 int val = 0; in block_show() local [all …]
|
/fs/hfs/ |
D | bitmap.c | 33 __be32 val; in hfs_find_set_zero_bits() local 44 val = *curr; in hfs_find_set_zero_bits() 45 if (~val) { in hfs_find_set_zero_bits() 46 n = be32_to_cpu(val); in hfs_find_set_zero_bits() 57 val = *curr; in hfs_find_set_zero_bits() 58 if (~val) { in hfs_find_set_zero_bits() 59 n = be32_to_cpu(val); in hfs_find_set_zero_bits()
|
/fs/proc/ |
D | bootconfig.c | 30 const char *val; in copy_xbc_key_value_list() local 38 xbc_for_each_key_value(leaf, val) { in copy_xbc_key_value_list() 48 xbc_array_for_each_value(vnode, val) { in copy_xbc_key_value_list() 49 if (strchr(val, '"')) in copy_xbc_key_value_list() 54 q, val, q, xbc_node_is_array(vnode) ? ", " : "\n"); in copy_xbc_key_value_list()
|
/fs/hfsplus/ |
D | bitmap.c | 27 __be32 val; in hfsplus_block_allocate() local 52 val = *curr; in hfsplus_block_allocate() 53 if (~val) { in hfsplus_block_allocate() 54 n = be32_to_cpu(val); in hfsplus_block_allocate() 66 val = *curr; in hfsplus_block_allocate() 67 if (~val) { in hfsplus_block_allocate() 68 n = be32_to_cpu(val); in hfsplus_block_allocate()
|
/fs/notify/ |
D | mark.c | 495 conn->fsid.val[0] = conn->fsid.val[1] = 0; in fsnotify_attach_connector_to_object() 560 if (fsid && WARN_ON_ONCE(!fsid->val[0] && !fsid->val[1])) in fsnotify_add_mark_list() 578 (fsid->val[0] != conn->fsid.val[0] || in fsnotify_add_mark_list() 579 fsid->val[1] != conn->fsid.val[1])) { in fsnotify_add_mark_list() 589 fsid->val[0], fsid->val[1], in fsnotify_add_mark_list() 590 conn->fsid.val[0], conn->fsid.val[1]); in fsnotify_add_mark_list()
|