Lines Matching refs:blocksize
88 unsigned int blocksize; /* number of pages per block */ member
432 MEDIA_INFO(us).blocksize = 1 << media_info->blockshift; in alauda_init_media()
436 MEDIA_INFO(us).blockmask = MEDIA_INFO(us).blocksize - 1; in alauda_init_media()
796 (MEDIA_INFO(us).pagesize + 64) * MEDIA_INFO(us).blocksize, in alauda_write_block()
818 unsigned int blocksize = MEDIA_INFO(us).blocksize; in alauda_write_lba() local
846 blocksize, blockbuffer); in alauda_write_lba()
850 memset(blockbuffer, 0, blocksize * (pagesize + 64)); in alauda_write_lba()
858 for (i = 0; i < blocksize; i++) { in alauda_write_lba()
921 unsigned int blocksize = MEDIA_INFO(us).blocksize; in alauda_read_data() local
935 len = min(sectors, blocksize) * (pagesize + 64); in alauda_read_data()
965 pages = min(sectors, blocksize - page); in alauda_read_data()
1015 unsigned int blocksize = MEDIA_INFO(us).blocksize; in alauda_write_data() local
1027 len = min(sectors, blocksize) * pagesize; in alauda_write_data()
1036 blockbuffer = kmalloc_array(pagesize + 64, blocksize, GFP_NOIO); in alauda_write_data()
1053 unsigned int pages = min(sectors, blocksize - page); in alauda_write_data()
1160 * MEDIA_INFO(us).blocksize; in alauda_transport()