Lines Matching refs:pos
1340 ram_disk_raw_device_read(void* _cookie, off_t pos, void* buffer,
1348 if (pos >= device->DeviceSize())
1350 if (pos + (off_t)length > device->DeviceSize())
1351 length = device->DeviceSize() - pos;
1354 status_t status = request.Init(pos, (addr_t)buffer, length, false, 0);
1370 ram_disk_raw_device_write(void* _cookie, off_t pos, const void* buffer,
1378 if (pos >= device->DeviceSize())
1380 if (pos + (off_t)length > device->DeviceSize())
1381 length = device->DeviceSize() - pos;
1384 status_t status = request.Init(pos, (addr_t)buffer, length, true, 0);