Lines Matching refs:startsect
405 u32 startsect; in set_cluster() local
409 startsect = clust_to_sect(mydata, clustnum); in set_cluster()
411 startsect = mydata->rootdir_sect; in set_cluster()
413 debug("clustnum: %d, startsect: %d\n", clustnum, startsect); in set_cluster()
422 ret = disk_write(startsect++, 1, tmpbuf); in set_cluster()
433 ret = disk_write(startsect, idx, buffer); in set_cluster()
439 startsect += idx; in set_cluster()
450 ret = disk_write(startsect, 1, tmpbuf); in set_cluster()
470 __u32 startsect; in get_set_cluster() local
479 startsect = clust_to_sect(mydata, clustnum); in get_set_cluster()
482 clustnum, startsect, pos); in get_set_cluster()
487 ret = disk_read(startsect, mydata->clust_size, tmpbuf_cluster); in get_set_cluster()
494 ret = disk_write(startsect, mydata->clust_size, tmpbuf_cluster); in get_set_cluster()
504 startsect += mydata->clust_size; in get_set_cluster()
516 ret = disk_write(startsect, in get_set_cluster()
528 startsect += clustcount * mydata->clust_size; in get_set_cluster()
532 ret = disk_write(startsect, in get_set_cluster()
545 startsect += mydata->clust_size; in get_set_cluster()
553 ret = disk_read(startsect, mydata->clust_size, tmpbuf_cluster); in get_set_cluster()
559 ret = disk_write(startsect, mydata->clust_size, tmpbuf_cluster); in get_set_cluster()
672 __u32 startsect, sect_num, offset; in check_overflow() local
675 startsect = clust_to_sect(mydata, clustnum); in check_overflow()
677 startsect = mydata->rootdir_sect; in check_overflow()
684 if (startsect + sect_num > total_sector) in check_overflow()