Lines Matching defs:offset
32 static int send_firmware (int fd, unsigned int xfer_mode, unsigned int offset,
41 lba = ((offset / 512) << 8) | ((blockcount >> 8) & 0xff);
87 ssize_t offset;
167 for (offset = 0; !err && offset < st.st_size;) {
168 if ((offset + xfer_size) >= st.st_size)
169 xfer_size = st.st_size - offset;
170 err = send_firmware(fd, xfer_mode, offset, fw + offset, xfer_size);
171 offset += xfer_size;
174 if (offset >= st.st_size) { // transfer complete?
179 (unsigned long long)offset, (unsigned long long)st.st_size);
183 if (offset >= st.st_size) { // no more data?
186 err = send_firmware(fd, xfer_mode, offset, NULL, 0);