Lines Matching refs:size

343             size=1,  argument
355 self.size = size
360 def _op(self, f, block=None, off=None, size=None): argument
365 off, size = 0, self.size
366 elif size is None:
367 off, size = 0, off
371 size=max(self.size, off+size),
375 start = (block*self.size + off) / (self.size*self.count)
376 stop = (block*self.size + off+size) / (self.size*self.count)
386 def read(self, block=None, off=None, size=None): argument
387 self._op(Block.read, block, off, size)
389 def prog(self, block=None, off=None, size=None): argument
390 self._op(Block.prog, block, off, size)
392 def erase(self, block=None, off=None, size=None): argument
393 self._op(Block.erase, block, off, size)
395 def clear(self, block=None, off=None, size=None): argument
396 self._op(Block.clear, block, off, size)
401 size=self.size,
407 size=None,
411 size = size if size is not None else self.size
416 if (size == self.size
426 start = m.floor(x * (size*count)/(width*height))
427 stop = m.ceil((x+1) * (size*count)/(width*height))
428 start_block = start // size
429 start_off = start % size
430 stop_block = stop // size
431 stop_off = stop % size
433 start = start_block*self.size + start_off
434 stop = stop_block*self.size + stop_off
435 start = m.floor(start * len(self.blocks)/(self.size*self.count))
436 stop = m.ceil(stop * len(self.blocks)/(self.size*self.count))
444 self.size = size
637 def resize(*, size=None, count=None): argument
642 size = block_size
644 size = off_stop-off_start
667 size=size,
717 size = int(m.group('block_size'), 0)
720 resize(size=size, count=count)
723 size=bd.size,
732 size = int(m.group('read_size'), 0)
740 size = min(size, off_stop-off)
743 bd.read(block, off, size)
749 size = int(m.group('prog_size'), 0)
757 size = min(size, off_stop-off)
760 bd.prog(block, off, size)
765 size = int(m.group('erase_size'), 0)
771 size = min(size, off_stop)
774 bd.erase(block, off, size)