Lines Matching refs:req
85 struct adb_request req; in pmac_get_rtc_time() local
93 if (cuda_request(&req, NULL, 2, CUDA_PACKET, CUDA_GET_TIME) < 0) in pmac_get_rtc_time()
95 while (!req.complete) in pmac_get_rtc_time()
97 if (req.reply_len != 7) in pmac_get_rtc_time()
99 req.reply_len); in pmac_get_rtc_time()
100 now = (req.reply[3] << 24) + (req.reply[4] << 16) in pmac_get_rtc_time()
101 + (req.reply[5] << 8) + req.reply[6]; in pmac_get_rtc_time()
106 if (pmu_request(&req, NULL, 1, PMU_READ_RTC) < 0) in pmac_get_rtc_time()
108 while (!req.complete) in pmac_get_rtc_time()
110 if (req.reply_len != 4) in pmac_get_rtc_time()
112 req.reply_len); in pmac_get_rtc_time()
113 now = (req.reply[0] << 24) + (req.reply[1] << 16) in pmac_get_rtc_time()
114 + (req.reply[2] << 8) + req.reply[3]; in pmac_get_rtc_time()
126 struct adb_request req; in pmac_set_rtc_time() local
134 if (cuda_request(&req, NULL, 6, CUDA_PACKET, CUDA_SET_TIME, in pmac_set_rtc_time()
137 while (!req.complete) in pmac_set_rtc_time()
139 if ((req.reply_len != 3) && (req.reply_len != 7)) in pmac_set_rtc_time()
141 req.reply_len); in pmac_set_rtc_time()
146 if (pmu_request(&req, NULL, 5, PMU_SET_RTC, in pmac_set_rtc_time()
149 while (!req.complete) in pmac_set_rtc_time()
151 if (req.reply_len != 0) in pmac_set_rtc_time()
153 req.reply_len); in pmac_set_rtc_time()