Searched refs:blocks_num (Results 1 – 3 of 3) sorted by relevance
321 return sprintf(buf, "%d\n", ops->blocks_num); in c2port_show_flash_blocks_num()339 return sprintf(buf, "%d\n", ops->blocks_num * ops->block_size); in c2port_show_flash_size()628 if (offset >= ops->block_size * ops->blocks_num) in __c2port_read_flash_data()631 if (ops->block_size * ops->blocks_num - offset < nread) in __c2port_read_flash_data()632 nread = ops->block_size * ops->blocks_num - offset; in __c2port_read_flash_data()742 if (ops->block_size * ops->blocks_num - offset < nwrite) in __c2port_write_flash_data()743 nwrite = ops->block_size * ops->blocks_num - offset; in __c2port_write_flash_data()746 if (offset >= ops->block_size * ops->blocks_num) in __c2port_write_flash_data()927 c2port_bin_attrs.size = ops->blocks_num * ops->block_size; in c2port_device_register()939 name, ops->blocks_num, ops->block_size, in c2port_device_register()[all …]
106 .blocks_num = 30, /* total flash size: 15360 bytes */
44 unsigned short blocks_num; /* flash blocks number */ member