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++]);
943 int offd, offb;
950 offb = offd = 0;
954 buf[offb++] = fw;
955 buf[offb++] = l;
956 buf[offb++] = code1;
957 buf[offb++] = code2;
958 put_unaligned(cpu_to_le32(addr), (__le32 *)(buf + offb));
959 offb += 4;
962 memcpy(buf + offb, data + offd, l);
964 memset(buf + offb + l, 0, stride - l);
965 offb += stride;
967 if ((offb >= PAGE_SIZE) || (offd >= size)) {
969 buf, offb, NULL, CMD_TIMEOUT);
974 offb = 0;