Lines Matching refs:req
24 rpi3_mbox_request_t *req = (rpi3_mbox_request_t *) rpi3_mbox_buffer; in rpi3_vc_hardware_get_board_revision() local
28 VERBOSE("rpi3: mbox: Sending request at %p\n", (void *)req); in rpi3_vc_hardware_get_board_revision()
30 req->size = sizeof(rpi3_mbox_buffer); in rpi3_vc_hardware_get_board_revision()
31 req->code = RPI3_MBOX_PROCESS_REQUEST; in rpi3_vc_hardware_get_board_revision()
33 req->tags[0] = RPI3_TAG_HARDWARE_GET_BOARD_REVISION; in rpi3_vc_hardware_get_board_revision()
34 req->tags[1] = tag_request_size; /* Space available for the response */ in rpi3_vc_hardware_get_board_revision()
35 req->tags[2] = RPI3_TAG_REQUEST; in rpi3_vc_hardware_get_board_revision()
36 req->tags[3] = 0; /* Placeholder for the response */ in rpi3_vc_hardware_get_board_revision()
38 req->tags[4] = RPI3_TAG_END; in rpi3_vc_hardware_get_board_revision()
40 rpi3_vc_mailbox_request_send(req, RPI3_MBOX_BUFFER_SIZE); in rpi3_vc_hardware_get_board_revision()
42 if (req->code != RPI3_MBOX_REQUEST_SUCCESSFUL) { in rpi3_vc_hardware_get_board_revision()
43 ERROR("rpi3: mbox: Code = 0x%08x\n", req->code); in rpi3_vc_hardware_get_board_revision()
47 if (req->tags[2] != (RPI3_TAG_IS_RESPONSE | tag_request_size)) { in rpi3_vc_hardware_get_board_revision()
49 req->tags[2]); in rpi3_vc_hardware_get_board_revision()
53 *revision = req->tags[3]; in rpi3_vc_hardware_get_board_revision()