Lines Matching refs:offb
612 int offb, offd;
642 for (offb = offd = 0; offd < wsize; offd += stride, offb += CMD_PACKET_SIZE) {
643 wbuf[offb] = cm;
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) {
680 if (rbuf[offb] != cm) {
683 rbuf[offb], cm);
687 if (rbuf[offb + 1] != CM_STATUS_SUCCESS) {
690 cm, rbuf[offb + 1]);
696 memcpy(rdata + offd, rbuf + offb + 4, min_t(int, stride, rsize - offd));
713 int offb;
728 for (offb = 0; offb < len; ) {
729 int l = le32_to_cpu(buf[offb++]);
731 if (l < 0 || l > stride || l > (len - offb) / 2) {
739 offd = le32_to_cpu(buf[offb++]);
747 data[offd] = le32_to_cpu(buf[offb++]);
940 int offd, offb;
947 offb = offd = 0;
951 buf[offb++] = fw;
952 buf[offb++] = l;
953 buf[offb++] = code1;
954 buf[offb++] = code2;
955 put_unaligned(cpu_to_le32(addr), (__le32 *)(buf + offb));
956 offb += 4;
959 memcpy(buf + offb, data + offd, l);
961 memset(buf + offb + l, 0, stride - l);
962 offb += stride;
964 if ((offb >= PAGE_SIZE) || (offd >= size)) {
966 buf, offb, NULL, CMD_TIMEOUT);
971 offb = 0;