Searched refs:rd_blocks (Results 1 – 2 of 2) sorted by relevance
180 unsigned long rd_blocks, devblocks; in rd_load_image() local211 if (ksys_ioctl(out_fd, BLKGETSIZE, (unsigned long)&rd_blocks) < 0) in rd_load_image()212 rd_blocks = 0; in rd_load_image()214 rd_blocks >>= 1; in rd_load_image()216 if (nblocks > rd_blocks) { in rd_load_image()218 nblocks, rd_blocks); in rd_load_image()
175 unsigned int rd_blocks; in read_from_buf() local191 rd_blocks = a->block_count; in read_from_buf()193 if (rd_blocks > s->block_count) in read_from_buf()194 rd_blocks = s->block_count; in read_from_buf()197 if (!rd_blocks) in read_from_buf()200 for (i = 0; i < rd_blocks; i++) { in read_from_buf()