Lines Matching defs:offb
588 int offb, offd;
618 for (offb = offd = 0; offd < wsize; offd += stride, offb += CMD_PACKET_SIZE) {
619 wbuf[offb] = cm;
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) {
656 if (rbuf[offb] != cm) {
659 rbuf[offb], cm);
663 if (rbuf[offb + 1] != CM_STATUS_SUCCESS) {
666 cm, rbuf[offb + 1]);
672 memcpy(rdata + offd, rbuf + offb + 4, min_t(int, stride, rsize - offd));
689 int offb, offd;
703 for (offb = 0; offb < len; ) {
704 int l = le32_to_cpu(buf[offb++]);
705 if (l < 0 || l > stride || l > (len - offb) / 2) {
713 offd = le32_to_cpu(buf[offb++]);
721 data[offd] = le32_to_cpu(buf[offb++]);
938 int offd, offb;
945 offb = offd = 0;
948 buf[offb++] = fw;
949 buf[offb++] = l;
950 buf[offb++] = code1;
951 buf[offb++] = code2;
952 put_unaligned(cpu_to_le32(addr), (__le32 *)(buf + offb));
953 offb += 4;
956 memcpy(buf + offb, data + offd, l);
958 memset(buf + offb + l, 0, stride - l);
959 offb += stride;
961 if ((offb >= PAGE_SIZE) || (offd >= size)) {
963 buf, offb, NULL, CMD_TIMEOUT);
968 offb = 0;