Lines Matching refs:req
39 struct adb_request req; in cuda_read_time() local
42 if (cuda_request(&req, NULL, 2, CUDA_PACKET, CUDA_GET_TIME) < 0) in cuda_read_time()
44 while (!req.complete) in cuda_read_time()
47 time = (req.reply[3] << 24) | (req.reply[4] << 16) in cuda_read_time()
48 | (req.reply[5] << 8) | req.reply[6]; in cuda_read_time()
54 struct adb_request req; in cuda_write_time() local
56 if (cuda_request(&req, NULL, 6, CUDA_PACKET, CUDA_SET_TIME, in cuda_write_time()
60 while (!req.complete) in cuda_write_time()
66 struct adb_request req; in cuda_read_pram() local
67 if (cuda_request(&req, NULL, 4, CUDA_PACKET, CUDA_GET_PRAM, in cuda_read_pram()
70 while (!req.complete) in cuda_read_pram()
72 return req.reply[3]; in cuda_read_pram()
77 struct adb_request req; in cuda_write_pram() local
78 if (cuda_request(&req, NULL, 5, CUDA_PACKET, CUDA_SET_PRAM, in cuda_write_pram()
81 while (!req.complete) in cuda_write_pram()
94 struct adb_request req; in pmu_read_time() local
97 if (pmu_request(&req, NULL, 1, PMU_READ_RTC) < 0) in pmu_read_time()
99 while (!req.complete) in pmu_read_time()
102 time = (req.reply[1] << 24) | (req.reply[2] << 16) in pmu_read_time()
103 | (req.reply[3] << 8) | req.reply[4]; in pmu_read_time()
109 struct adb_request req; in pmu_write_time() local
111 if (pmu_request(&req, NULL, 5, PMU_SET_RTC, in pmu_write_time()
115 while (!req.complete) in pmu_write_time()
121 struct adb_request req; in pmu_read_pram() local
122 if (pmu_request(&req, NULL, 3, PMU_READ_NVRAM, in pmu_read_pram()
125 while (!req.complete) in pmu_read_pram()
127 return req.reply[3]; in pmu_read_pram()
132 struct adb_request req; in pmu_write_pram() local
133 if (pmu_request(&req, NULL, 4, PMU_WRITE_NVRAM, in pmu_write_pram()
136 while (!req.complete) in pmu_write_pram()
147 extern int maciisi_request(struct adb_request *req,
152 struct adb_request req;
155 if (maciisi_request(&req, NULL, 2, CUDA_PACKET, CUDA_GET_TIME))
158 time = (req.reply[3] << 24) | (req.reply[4] << 16)
159 | (req.reply[5] << 8) | req.reply[6];
165 struct adb_request req;
167 maciisi_request(&req, NULL, 6, CUDA_PACKET, CUDA_SET_TIME,
174 struct adb_request req;
175 if (maciisi_request(&req, NULL, 4, CUDA_PACKET, CUDA_GET_PRAM,
178 return req.reply[3];
183 struct adb_request req;
184 maciisi_request(&req, NULL, 5, CUDA_PACKET, CUDA_SET_PRAM,
399 struct adb_request req; in cuda_restart() local
400 if (cuda_request(&req, NULL, 2, CUDA_PACKET, CUDA_RESET_SYSTEM) < 0) in cuda_restart()
402 while (!req.complete) in cuda_restart()
408 struct adb_request req; in cuda_shutdown() local
409 if (cuda_request(&req, NULL, 2, CUDA_PACKET, CUDA_POWERDOWN) < 0) in cuda_shutdown()
411 while (!req.complete) in cuda_shutdown()
421 struct adb_request req; in pmu_restart() local
422 if (pmu_request(&req, NULL, in pmu_restart()
425 while (!req.complete) in pmu_restart()
427 if (pmu_request(&req, NULL, 1, PMU_RESET) < 0) in pmu_restart()
429 while (!req.complete) in pmu_restart()
435 struct adb_request req; in pmu_shutdown() local
436 if (pmu_request(&req, NULL, in pmu_shutdown()
439 while (!req.complete) in pmu_shutdown()
441 if (pmu_request(&req, NULL, 5, PMU_SHUTDOWN, 'M', 'A', 'T', 'T') < 0) in pmu_shutdown()
443 while (!req.complete) in pmu_shutdown()