Lines Matching refs:blocks_num
318 return sprintf(buf, "%d\n", ops->blocks_num); in c2port_show_flash_blocks_num()
338 return sprintf(buf, "%d\n", ops->blocks_num * ops->block_size); in c2port_show_flash_size()
634 if (offset >= ops->block_size * ops->blocks_num) in __c2port_read_flash_data()
637 if (ops->block_size * ops->blocks_num - offset < nread) in __c2port_read_flash_data()
638 nread = ops->block_size * ops->blocks_num - offset; in __c2port_read_flash_data()
746 if (ops->block_size * ops->blocks_num - offset < nwrite) in __c2port_write_flash_data()
747 nwrite = ops->block_size * ops->blocks_num - offset; in __c2port_write_flash_data()
750 if (offset >= ops->block_size * ops->blocks_num) in __c2port_write_flash_data()
916 bin_attr_flash_data.size = ops->blocks_num * ops->block_size; in c2port_device_register()
937 name, ops->blocks_num, ops->block_size, in c2port_device_register()
938 ops->blocks_num * ops->block_size); in c2port_device_register()