Lines Matching refs:nbytes
292 for (i = 0; i < req->nbytes - 1; ++i) in pmu_send_request()
294 --req->nbytes; in pmu_send_request()
305 if (req->nbytes != 2) in pmu_send_request()
308 req->nbytes = 1; in pmu_send_request()
316 if (req->nbytes != 6) in pmu_send_request()
319 req->nbytes = 5; in pmu_send_request()
329 if (req->nbytes != 4) in pmu_send_request()
334 req->nbytes = 3; in pmu_send_request()
342 if (req->nbytes != 5) in pmu_send_request()
348 req->nbytes = 4; in pmu_send_request()
358 for (i = req->nbytes - 1; i > 1; --i) in pmu_send_request()
360 req->data[3] = req->nbytes - 2; in pmu_send_request()
364 req->nbytes += 2; in pmu_send_request()
419 req.nbytes = 5; in pmu_reset_bus()
454 int nbytes, ...) in pmu_request() argument
459 if (nbytes < 0 || nbytes > 32) { in pmu_request()
460 printk(KERN_ERR "pmu_request: bad nbytes (%d)\n", nbytes); in pmu_request()
464 req->nbytes = nbytes; in pmu_request()
466 va_start(list, nbytes); in pmu_request()
467 for (i = 0; i < nbytes; ++i) in pmu_request()
485 if (req->nbytes <= 0) { in pmu_queue_request()
490 if (nsend >= 0 && req->nbytes != nsend + 1) { in pmu_queue_request()
611 data_len = req->nbytes - 1; in pmu_interrupt()