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++]);
940 int offd, offb;
947 offb = offd = 0;
949 int l = min_t(int, stride, size - offd);
959 memcpy(buf + offb, data + offd, l);
963 offd += stride;
964 if ((offb >= PAGE_SIZE) || (offd >= size)) {
973 } while (offd < size);