Lines Matching refs:off
360 def _op(self, f, block=None, off=None, size=None): argument
364 if off is None:
365 off, size = 0, self.size
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)
570 off=(None,None), argument
622 off_start = off[0]
623 off_stop = off[1] if len(off) > 1 else off[0]+1
731 off = int(m.group('read_off'), 0)
738 if off >= off_stop:
740 size = min(size, off_stop-off)
741 off -= off_start
743 bd.read(block, off, size)
748 off = int(m.group('prog_off'), 0)
755 if off >= off_stop:
757 size = min(size, off_stop-off)
758 off -= off_start
760 bd.prog(block, off, size)
772 off = -off_start
774 bd.erase(block, off, size)