Lines Matching defs:offd
588 int offb, offd;
618 for (offb = offd = 0; offd < wsize; offd += stride, offb += CMD_PACKET_SIZE) {
620 memcpy(wbuf + offb + 4, wdata + offd, min_t(int, stride, wsize - offd));
655 for (offb = offd = 0; offd < rsize && offb < actlen; offb += CMD_PACKET_SIZE) {
670 if (offd >= rsize)
672 memcpy(rdata + offd, rbuf + offb + 4, min_t(int, stride, rsize - offd));
673 offd += stride;
676 ret = offd;
689 int offb, offd;
713 offd = le32_to_cpu(buf[offb++]);
714 if (offd >= size) {
717 offd, cm);
721 data[offd] = le32_to_cpu(buf[offb++]);
938 int offd, offb;
945 offb = offd = 0;
947 int l = min_t(int, stride, size - offd);
956 memcpy(buf + offb, data + offd, l);
960 offd += stride;
961 if ((offb >= PAGE_SIZE) || (offd >= size)) {
970 } while (offd < size);