Home
last modified time | relevance | path

Searched refs:sec (Results 1 – 23 of 23) sorted by relevance

/fs/hpfs/
A Dalloc.c74 if ((le32_to_cpu(bmp[(sec & 0x3fff) >> 5]) >> (sec & 0x1f)) & 1) { in chk_if_allocated()
205 secno sec; in hpfs_alloc_sector() local
257 sec = 0; in hpfs_alloc_sector()
259 if (sec) { in hpfs_alloc_sector()
265 if (sec && f_p) { in hpfs_alloc_sector()
269 sec = 0; in hpfs_alloc_sector()
274 return sec; in hpfs_alloc_sector()
280 secno sec; in alloc_in_dirband() local
301 if (le32_to_cpu(bmp[(sec & 0x3fff) >> 5]) & (1 << (sec & 0x1f))) { in hpfs_alloc_if_possible()
302 bmp[(sec & 0x3fff) >> 5] &= cpu_to_le32(~(1 << (sec & 0x1f))); in hpfs_alloc_if_possible()
[all …]
A Danode.c15 struct bplus_header *btree, unsigned sec, in hpfs_bplus_lookup() argument
26 if (le32_to_cpu(btree->u.internal[i].file_secno) > sec) { in hpfs_bplus_lookup()
38 if (le32_to_cpu(btree->u.external[i].file_secno) <= sec && in hpfs_bplus_lookup()
335 return hpfs_bplus_lookup(s, NULL, &anode->btree, sec, bh); in anode_lookup()
343 secno sec; in hpfs_ea_read() local
347 if ((sec = anode_lookup(s, a, pos >> 9)) == -1) in hpfs_ea_read()
349 } else sec = a + (pos >> 9); in hpfs_ea_read()
351 if (!(data = hpfs_map_sector(s, sec, &bh, (len - 1) >> 9))) in hpfs_ea_read()
366 secno sec; in hpfs_ea_write() local
370 if ((sec = anode_lookup(s, a, pos >> 9)) == -1) in hpfs_ea_write()
[all …]
A Dbuffer.c14 secno hpfs_search_hotfix_map(struct super_block *s, secno sec) in hpfs_search_hotfix_map() argument
19 if (sbi->hotfix_from[i] == sec) { in hpfs_search_hotfix_map()
23 return sec; in hpfs_search_hotfix_map()
26 unsigned hpfs_search_hotfix_map_for_range(struct super_block *s, secno sec, unsigned n) in hpfs_search_hotfix_map_for_range() argument
31 if (sbi->hotfix_from[i] >= sec && sbi->hotfix_from[i] < sec + n) { in hpfs_search_hotfix_map_for_range()
32 n = sbi->hotfix_from[i] - sec; in hpfs_search_hotfix_map_for_range()
A Dmap.c20 secno sec; in hpfs_map_bitmap() local
27 sec = le32_to_cpu(hpfs_sb(s)->sb_bmp_dir[bmp_block]); in hpfs_map_bitmap()
28 if (!sec || sec > hpfs_sb(s)->sb_fs_size-4) { in hpfs_map_bitmap()
29 hpfs_error(s, "invalid bitmap block pointer %08x -> %08x at %s", bmp_block, sec, id); in hpfs_map_bitmap()
32 ret = hpfs_map_4sectors(s, sec, qbh, 4); in hpfs_map_bitmap()
A Dhpfs_fn.h224 secno hpfs_search_hotfix_map(struct super_block *s, secno sec);
225 unsigned hpfs_search_hotfix_map_for_range(struct super_block *s, secno sec, unsigned n);
/fs/exfat/
A Dfatent.c14 static int exfat_mirror_bh(struct super_block *sb, sector_t sec, in exfat_mirror_bh() argument
23 sec2 = sec - sbi->FAT1_start_sector + sbi->FAT2_start_sector; in exfat_mirror_bh()
42 sector_t sec; in __exfat_ent_get() local
45 sec = FAT_ENT_OFFSET_SECTOR(sb, loc); in __exfat_ent_get()
48 bh = sb_bread(sb, sec); in __exfat_ent_get()
66 sector_t sec; in exfat_ent_set() local
70 sec = FAT_ENT_OFFSET_SECTOR(sb, loc); in exfat_ent_set()
73 bh = sb_bread(sb, sec); in exfat_ent_set()
80 exfat_mirror_bh(sb, sec, bh); in exfat_ent_set()
A Ddir.c633 if (sec < sbi->data_start_sector) { in exfat_dir_readahead()
643 bh = sb_find_get_block(sb, sec); in exfat_dir_readahead()
648 sb_breadahead(sb, (sector_t)(sec + i)); in exfat_dir_readahead()
659 sector_t sec; in exfat_get_dentry() local
671 exfat_dir_readahead(sb, sec); in exfat_get_dentry()
673 *bh = sb_bread(sb, sec); in exfat_get_dentry()
758 sector_t sec; in __exfat_get_dentry_set() local
777 bh = sb_bread(sb, sec); in __exfat_get_dentry_set()
815 sec = exfat_cluster_to_sector(sbi, clu); in __exfat_get_dentry_set()
817 sec++; in __exfat_get_dentry_set()
[all …]
A Dexfat_fs.h400 sector_t sec) in exfat_is_last_sector_in_cluster() argument
402 return ((sec - sbi->data_start_sector + 1) & in exfat_is_last_sector_in_cluster()
414 sector_t sec) in exfat_sector_to_cluster() argument
416 return ((sec - sbi->data_start_sector) >> sbi->sect_per_clus_bits) + in exfat_sector_to_cluster()
/fs/isofs/
A Dinode.c579 struct iso_supplementary_descriptor *sec = NULL; in isofs_fill_super() local
651 sec = (struct iso_supplementary_descriptor *)vdp; in isofs_fill_super()
652 if (sec->escape[0] == 0x25 && sec->escape[1] == 0x2f) { in isofs_fill_super()
654 if (sec->escape[2] == 0x40) in isofs_fill_super()
656 else if (sec->escape[2] == 0x43) in isofs_fill_super()
658 else if (sec->escape[2] == 0x45) in isofs_fill_super()
668 sec = NULL; in isofs_fill_super()
710 pri = (struct iso_primary_descriptor *) sec; in isofs_fill_super()
785 pri = (struct iso_primary_descriptor *) sec; in isofs_fill_super()
/fs/smb/client/
A Dnetmisc.c979 time64_t sec, days; in cnvrtDosUnixTm() local
988 sec = 2 * st->TwoSeconds; in cnvrtDosUnixTm()
990 if ((sec > 59) || (min > 59)) in cnvrtDosUnixTm()
991 cifs_dbg(VFS, "Invalid time min %d sec %lld\n", min, sec); in cnvrtDosUnixTm()
992 sec += (min * 60); in cnvrtDosUnixTm()
993 sec += 60 * 60 * st->Hours; in cnvrtDosUnixTm()
1021 sec += 24 * 60 * 60 * days; in cnvrtDosUnixTm()
1023 ts.tv_sec = sec + offset; in cnvrtDosUnixTm()
/fs/hfs/
A Dhfs_fs.h290 #define sb_bread512(sb, sec, data) ({ \ argument
296 __start = (loff_t)(sec) << HFS_SECTOR_SIZE_BITS;\
/fs/bcachefs/
A Dutil.c339 void bch2_prt_datetime(struct printbuf *out, time64_t sec) in bch2_prt_datetime() argument
341 time_t t = sec; in bch2_prt_datetime()
348 void bch2_prt_datetime(struct printbuf *out, time64_t sec) in bch2_prt_datetime() argument
351 snprintf(buf, sizeof(buf), "%ptT", &sec); in bch2_prt_datetime()
352 prt_u64(out, sec); in bch2_prt_datetime()
A Dbcachefs.h1218 s64 sec; in bch2_time_to_timespec() local
1223 sec = div_s64_rem(time, c->sb.time_units_per_sec, &rem); in bch2_time_to_timespec()
1225 set_normalized_timespec64(&t, sec, rem * (s64)c->sb.nsec_per_time_unit); in bch2_time_to_timespec()
/fs/jffs2/
A Dos-linux.h35 #define ITIME(sec) ((struct timespec64){sec, 0}) argument
/fs/fat/
A Ddir.c55 int sec; in fat_dir_readahead() local
66 for (sec = 0; sec < sbi->sec_per_clus; sec++) in fat_dir_readahead()
67 sb_breadahead(sb, phys + sec); in fat_dir_readahead()
/fs/btrfs/
A Dioctl.c69 __u64 sec; member
2109 subvol_info->ctime.sec = btrfs_stack_timespec_sec(&root_item->ctime); in btrfs_ioctl_get_subvol_info()
2113 subvol_info->otime.sec = btrfs_stack_timespec_sec(&root_item->otime); in btrfs_ioctl_get_subvol_info()
2117 subvol_info->stime.sec = btrfs_stack_timespec_sec(&root_item->stime); in btrfs_ioctl_get_subvol_info()
4001 sa->rtime.sec = ct.tv_sec; in _btrfs_ioctl_set_received_subvol()
4020 btrfs_set_stack_timespec_sec(&root_item->stime, sa->stime.sec); in _btrfs_ioctl_set_received_subvol()
4022 btrfs_set_stack_timespec_sec(&root_item->rtime, sa->rtime.sec); in _btrfs_ioctl_set_received_subvol()
4069 args64->stime.sec = args32->stime.sec; in btrfs_ioctl_set_received_subvol_32()
4071 args64->rtime.sec = args32->rtime.sec; in btrfs_ioctl_set_received_subvol_32()
4082 args32->stime.sec = args64->stime.sec; in btrfs_ioctl_set_received_subvol_32()
[all …]
A Daccessors.h289 BTRFS_SETGET_FUNCS(timespec_sec, struct btrfs_timespec, sec, 64);
291 BTRFS_SETGET_STACK_FUNCS(stack_timespec_sec, struct btrfs_timespec, sec, 64);
/fs/
A Dselect.c271 int poll_select_set_timeout(struct timespec64 *to, time64_t sec, long nsec) in poll_select_set_timeout() argument
273 struct timespec64 ts = {.tv_sec = sec, .tv_nsec = nsec}; in poll_select_set_timeout()
279 if (!sec && !nsec) { in poll_select_set_timeout()
/fs/xfs/libxfs/
A Dxfs_format.h478 #define XFS_FSS_TO_BB(mp,sec) ((sec) << (mp)->m_sectbb_log) argument
/fs/fuse/
A Ddir.c95 u64 fuse_time_to_jiffies(u64 sec, u32 nsec) in fuse_time_to_jiffies() argument
97 if (sec || nsec) { in fuse_time_to_jiffies()
99 sec, in fuse_time_to_jiffies()
A Dfuse_i.h1272 u64 fuse_time_to_jiffies(u64 sec, u32 nsec);
/fs/ocfs2/
A Ddlmglue.c2150 u64 sec = clamp_t(time64_t, spec->tv_sec, 0, 0x3ffffffffull); in ocfs2_pack_timespec() local
2153 res = (sec << OCFS2_SEC_SHIFT) | (nsec & OCFS2_NSEC_MASK); in ocfs2_pack_timespec()
/fs/nfs/
A Dnfs4xdr.c4174 __u64 sec; in xdr_decode_nfstime4() local
4176 p = xdr_decode_hyper(p, &sec); in xdr_decode_nfstime4()
4177 t-> tv_sec = sec; in xdr_decode_nfstime4()

Completed in 954 milliseconds