Lines Matching refs:startsect
402 set_sectors(fsdata *mydata, u32 startsect, u8 *buffer, u32 size) in set_sectors() argument
407 debug("startsect: %d\n", startsect); in set_sectors()
416 ret = disk_write(startsect++, 1, tmpbuf); in set_sectors()
427 ret = disk_write(startsect, nsects, buffer); in set_sectors()
433 startsect += nsects; in set_sectors()
443 ret = disk_write(startsect, 1, tmpbuf); in set_sectors()
475 u32 startsect, sect_offset, nsects; in flush_dir() local
482 startsect = mydata->rootdir_sect + sect_offset; in flush_dir()
487 return set_sectors(mydata, startsect, itr->block, in flush_dir()
501 __u32 startsect; in get_set_cluster() local
510 startsect = clust_to_sect(mydata, clustnum); in get_set_cluster()
513 clustnum, startsect, pos); in get_set_cluster()
518 ret = disk_read(startsect, mydata->clust_size, tmpbuf_cluster); in get_set_cluster()
525 ret = disk_write(startsect, mydata->clust_size, tmpbuf_cluster); in get_set_cluster()
535 startsect += mydata->clust_size; in get_set_cluster()
547 ret = disk_write(startsect, in get_set_cluster()
559 startsect += clustcount * mydata->clust_size; in get_set_cluster()
563 ret = disk_write(startsect, in get_set_cluster()
576 startsect += mydata->clust_size; in get_set_cluster()
584 ret = disk_read(startsect, mydata->clust_size, tmpbuf_cluster); in get_set_cluster()
590 ret = disk_write(startsect, mydata->clust_size, tmpbuf_cluster); in get_set_cluster()
699 __u32 startsect, sect_num, offset; in check_overflow() local
702 startsect = clust_to_sect(mydata, clustnum); in check_overflow()
704 startsect = mydata->rootdir_sect; in check_overflow()
711 if (startsect + sect_num > total_sector) in check_overflow()