Lines Matching refs:block
360 def _op(self, f, block=None, off=None, size=None): argument
361 if block is None:
372 count=max(self.count, block+1))
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)
569 block=(None,None), argument
620 block_start = block[0]
621 block_stop = block[1] if len(block) > 1 else block[0]+1
730 block = int(m.group('read_block'), 0)
734 if block_stop is not None and block >= block_stop:
736 block -= block_start
743 bd.read(block, off, size)
747 block = int(m.group('prog_block'), 0)
751 if block_stop is not None and block >= block_stop:
753 block -= block_start
760 bd.prog(block, off, size)
764 block = int(m.group('erase_block'), 0)
767 if block_stop is not None and block >= block_stop:
769 block -= block_start
774 bd.erase(block, off, size)