Lines Matching refs:offset
60 pub fn callback_read(&self, buf: &mut [u8], offset: usize) -> Result<usize, SystemError> { in callback_read()
65 if offset > 0 { in callback_read()
66 if len <= offset { in callback_read()
69 let len = len - offset; in callback_read()
70 buf.copy_within(offset..offset + len, 0); in callback_read()
77 return bin_attribute.read(kobj, buf, offset); in callback_read()
83 pub fn callback_write(&self, buf: &[u8], offset: usize) -> Result<usize, SystemError> { in callback_write()
91 return bin_attribute.write(kobj, buf, offset); in callback_write()
298 offset: usize, in read()
300 return data.callback_read(buf, offset); in read()
307 offset: usize, in write()
309 return data.callback_write(buf, offset); in write()
330 offset: usize, in read()
332 return data.callback_read(buf, offset); in read()
371 offset: usize, in write()
373 return data.callback_write(buf, offset); in write()