Lines Matching refs:offd
612 int offb, offd;
642 for (offb = offd = 0; offd < wsize; offd += stride, offb += CMD_PACKET_SIZE) {
644 memcpy(wbuf + offb + 4, wdata + offd, min_t(int, stride, wsize - offd));
679 for (offb = offd = 0; offd < rsize && offb < actlen; offb += CMD_PACKET_SIZE) {
694 if (offd >= rsize)
696 memcpy(rdata + offd, rbuf + offb + 4, min_t(int, stride, rsize - offd));
697 offd += stride;
700 ret = offd;
714 unsigned int offd;
739 offd = le32_to_cpu(buf[offb++]);
740 if (offd >= size) {
743 offd, cm);
747 data[offd] = le32_to_cpu(buf[offb++]);
943 int offd, offb;
950 offb = offd = 0;
952 int l = min_t(int, stride, size - offd);
962 memcpy(buf + offb, data + offd, l);
966 offd += stride;
967 if ((offb >= PAGE_SIZE) || (offd >= size)) {
976 } while (offd < size);