Home
last modified time | relevance | path

Searched refs:newsize (Results 1 – 18 of 18) sorted by relevance

/linux-2.4.37.9/drivers/sound/
Dvidc.c199 unsigned int newsize, new2size; in vidc_audio_set_speed() local
222 newsize = (10000 / hwrate) & ~3; in vidc_audio_set_speed()
223 if (newsize < 208) in vidc_audio_set_speed()
224 newsize = 208; in vidc_audio_set_speed()
225 if (newsize > 4096) in vidc_audio_set_speed()
226 newsize = 4096; in vidc_audio_set_speed()
227 for (new2size = 128; new2size < newsize; new2size <<= 1); in vidc_audio_set_speed()
228 if (new2size - newsize > newsize - (new2size >> 1)) in vidc_audio_set_speed()
232 newsize, new2size); in vidc_audio_set_speed()
/linux-2.4.37.9/ipc/
Dutil.c105 static int grow_ary(struct ipc_ids* ids, int newsize) in grow_ary() argument
111 if(newsize > IPCMNI) in grow_ary()
112 newsize = IPCMNI; in grow_ary()
113 if(newsize <= ids->size) in grow_ary()
114 return newsize; in grow_ary()
116 new = ipc_alloc(sizeof(struct ipc_id)*newsize); in grow_ary()
120 for(i=ids->size;i<newsize;i++) { in grow_ary()
128 ids->size = newsize; in grow_ary()
/linux-2.4.37.9/fs/ntfs/
Dattr.c371 int ntfs_resize_attr(ntfs_inode *ino, ntfs_attribute *attr, __s64 newsize) in ntfs_resize_attr() argument
379 if (newsize == oldsize) in ntfs_resize_attr()
385 if (newsize > ino->vol->mft_record_size) { in ntfs_resize_attr()
389 return ntfs_resize_attr(ino, attr, newsize); in ntfs_resize_attr()
392 if (newsize) { in ntfs_resize_attr()
393 __s64 minsize = newsize; in ntfs_resize_attr()
394 attr->d.data = ntfs_malloc(newsize); in ntfs_resize_attr()
399 if (newsize > oldsize) { in ntfs_resize_attr()
402 newsize - oldsize); in ntfs_resize_attr()
408 attr->size = newsize; in ntfs_resize_attr()
[all …]
Dattr.h14 int ntfs_resize_attr(ntfs_inode *ino, ntfs_attribute *attr, __s64 newsize);
/linux-2.4.37.9/fs/xfs/linux-2.4/
Dkmem.c145 kmem_realloc(void *ptr, size_t newsize, size_t oldsize, int flags) in kmem_realloc() argument
149 new = kmem_alloc(newsize, flags); in kmem_realloc()
153 ((oldsize < newsize) ? oldsize : newsize)); in kmem_realloc()
/linux-2.4.37.9/drivers/usb/
Dkonicawc.c598 int newsize; in konicawc_set_video_mode() local
605 for(newsize = 0; newsize <= MAX_FRAME_SIZE; newsize++) { in konicawc_set_video_mode()
606 if((camera_sizes[newsize].width == x) && (camera_sizes[newsize].height == y)) in konicawc_set_video_mode()
610 newsize = cam->size; in konicawc_set_video_mode()
613 if(newsize > MAX_FRAME_SIZE) { in konicawc_set_video_mode()
620 newspeed = konicawc_find_fps(newsize, fps); in konicawc_set_video_mode()
621 DEBUG(1, "find_fps returned %d (%d)", newspeed, spd_to_fps[newsize][newspeed]); in konicawc_set_video_mode()
627 DEBUG(1, "setting size to %d speed to %d", newsize, newspeed); in konicawc_set_video_mode()
628 if((newsize == cam->size) && (newspeed == cam->speed)) { in konicawc_set_video_mode()
632 DEBUG(0, "setting to %dx%d @ %d fps", camera_sizes[newsize].width, in konicawc_set_video_mode()
[all …]
/linux-2.4.37.9/fs/xfs/
Dxfs_dir2_sf.c943 int newsize; /* new inode size */ in xfs_dir2_sf_removename() local
991 newsize = oldsize - entsize; in xfs_dir2_sf_removename()
1002 dp->i_d.di_size = newsize; in xfs_dir2_sf_removename()
1006 xfs_idata_realloc(dp, newsize - oldsize, XFS_DATA_FORK); in xfs_dir2_sf_removename()
1063 int newsize; /* new inode size */ in xfs_dir2_sf_replace() local
1065 newsize = in xfs_dir2_sf_replace()
1073 if (newsize > XFS_IFORK_DSIZE(dp)) { in xfs_dir2_sf_replace()
1179 int newsize; /* new inode size */ in xfs_dir2_sf_toino4() local
1202 newsize = in xfs_dir2_sf_toino4()
1207 xfs_idata_realloc(dp, newsize, XFS_DATA_FORK); in xfs_dir2_sf_toino4()
[all …]
Dxfs_dir.c258 int retval, newsize, done; in xfs_dir_createname() local
287 newsize = XFS_DIR_SF_ENTSIZE_BYNAME(args.namelen); in xfs_dir_createname()
288 if ((dp->i_d.di_size + newsize) <= XFS_IFORK_DSIZE(dp)) { in xfs_dir_createname()
322 int retval, newsize; in xfs_dir_canenter() local
344 newsize = XFS_DIR_SF_ENTSIZE_BYNAME(args.namelen); in xfs_dir_canenter()
345 if ((dp->i_d.di_size + newsize) <= XFS_IFORK_DSIZE(dp)) in xfs_dir_canenter()
367 int count, totallen, newsize, retval; in xfs_dir_removename() local
394 newsize = XFS_DIR_SF_ALLFIT(count, totallen); in xfs_dir_removename()
395 if (newsize <= XFS_IFORK_DSIZE(dp)) { in xfs_dir_removename()
Dxfs_attr.c807 int newsize, retval; in xfs_attr_shortform_addname() local
819 newsize = XFS_ATTR_SF_TOTSIZE(args->dp); in xfs_attr_shortform_addname()
820 newsize += XFS_ATTR_SF_ENTSIZE_BYNAME(args->namelen, args->valuelen); in xfs_attr_shortform_addname()
821 if ((newsize <= XFS_IFORK_ASIZE(args->dp)) && in xfs_attr_shortform_addname()
/linux-2.4.37.9/drivers/s390/char/
Dtubttyrcl.c67 int newsize; in tty3270_rcl_set() local
77 newsize = simple_strtoul(buf + l_rcl_siz, 0, 0); in tty3270_rcl_set()
78 rc = tty3270_rcl_resize(tubp, newsize); in tty3270_rcl_set()
/linux-2.4.37.9/fs/jfs/
Dinode.c354 loff_t newsize; in jfs_truncate_nolock() local
375 newsize = xtTruncate(tid, ip, length, in jfs_truncate_nolock()
377 if (newsize < 0) { in jfs_truncate_nolock()
389 } while (newsize > length); /* Truncate isn't always atomic */ in jfs_truncate_nolock()
Djfs_xtree.h127 extern s64 xtTruncate(tid_t tid, struct inode *ip, s64 newsize, int type);
Djfs_dmap.c3348 s64 newsize; in dbExtendFS() local
3358 newsize = blkno + nblocks; in dbExtendFS()
3361 (long long) blkno, (long long) nblocks, (long long) newsize); in dbExtendFS()
3371 bmp->db_mapsize = newsize; in dbExtendFS()
3375 l2agsize = dbGetL2AGSize(newsize); in dbExtendFS()
3383 bmp->db_numag = newsize >> l2agsize; in dbExtendFS()
3384 bmp->db_numag += ((u32) newsize % (u32) bmp->db_agsize) ? 1 : 0; in dbExtendFS()
Djfs_xtree.c3389 s64 xtTruncate(tid_t tid, struct inode *ip, s64 newsize, int flag) in xtTruncate() argument
3455 teof = (newsize + (JFS_SBI(ip->i_sb)->bsize - 1)) >> in xtTruncate()
3521 newsize = (xoff + xlen) << JFS_SBI(ip->i_sb)->l2bsize; in xtTruncate()
3899 if (S_ISDIR(ip->i_mode) && !newsize) in xtTruncate()
3902 ip->i_size = newsize; in xtTruncate()
3913 return newsize; in xtTruncate()
/linux-2.4.37.9/fs/affs/
Dfile.c546 affs_extent_file_ofs(struct inode *inode, u32 newsize) in affs_extent_file_ofs() argument
554 pr_debug("AFFS: extent_file(%u, %d)\n", (u32)inode->i_ino, newsize); in affs_extent_file_ofs()
564 tmp = min(bsize - boff, newsize - size); in affs_extent_file_ofs()
579 while (size < newsize) { in affs_extent_file_ofs()
584 tmp = min(bsize, newsize - size); in affs_extent_file_ofs()
607 inode->i_size = AFFS_INODE->mmu_private = newsize; in affs_extent_file_ofs()
/linux-2.4.37.9/fs/nfsd/
Dnfs3xdr.c132 u64 newsize; in decode_sattr3() local
135 p = xdr_decode_hyper(p, &newsize); in decode_sattr3()
136 if (newsize <= NFS_OFFSET_MAX) in decode_sattr3()
137 iap->ia_size = newsize; in decode_sattr3()
/linux-2.4.37.9/fs/jffs2/
Dfile.c420 …__u32 newsize = max_t(__u32, filp->f_dentry->d_inode->i_size, (pg->index << PAGE_CACHE_SHIFT) + en… in jffs2_commit_write() local
422 __u32 writelen = min((__u32)PAGE_CACHE_SIZE, newsize - file_ofs); in jffs2_commit_write()
/linux-2.4.37.9/fs/udf/
Dinode.c163 void udf_expand_file_adinicb(struct inode * inode, int newsize, int * err) in udf_expand_file_adinicb() argument