Lines Matching refs:offd
612 int offb, offd; in cxacru_cm() local
642 for (offb = offd = 0; offd < wsize; offd += stride, offb += CMD_PACKET_SIZE) { in cxacru_cm()
644 memcpy(wbuf + offb + 4, wdata + offd, min_t(int, stride, wsize - offd)); in cxacru_cm()
679 for (offb = offd = 0; offd < rsize && offb < actlen; offb += CMD_PACKET_SIZE) { in cxacru_cm()
694 if (offd >= rsize) in cxacru_cm()
696 memcpy(rdata + offd, rbuf + offb + 4, min_t(int, stride, rsize - offd)); in cxacru_cm()
697 offd += stride; in cxacru_cm()
700 ret = offd; in cxacru_cm()
714 unsigned int offd; in cxacru_cm_get_array() local
739 offd = le32_to_cpu(buf[offb++]); in cxacru_cm_get_array()
740 if (offd >= size) { in cxacru_cm_get_array()
743 offd, cm); in cxacru_cm_get_array()
747 data[offd] = le32_to_cpu(buf[offb++]); in cxacru_cm_get_array()
940 int offd, offb; in cxacru_fw() local
947 offb = offd = 0; in cxacru_fw()
949 int l = min_t(int, stride, size - offd); in cxacru_fw()
959 memcpy(buf + offb, data + offd, l); in cxacru_fw()
963 offd += stride; in cxacru_fw()
964 if ((offb >= PAGE_SIZE) || (offd >= size)) { in cxacru_fw()
973 } while (offd < size); in cxacru_fw()