Lines Matching defs:rmsg

777 	struct mmal_msg *rmsg;
810 &rmsg, &rmsg_handle);
814 if (rmsg->h.type != MMAL_MSG_TYPE_PORT_INFO_SET) {
821 ret = -rmsg->u.port_info_get_reply.status;
838 struct mmal_msg *rmsg;
849 &rmsg, &rmsg_handle);
853 if (rmsg->h.type != MMAL_MSG_TYPE_PORT_INFO_GET) {
860 ret = -rmsg->u.port_info_get_reply.status;
864 if (rmsg->u.port_info_get_reply.port.is_enabled == 0)
870 port->handle = rmsg->u.port_info_get_reply.port_handle;
875 port->type = rmsg->u.port_info_get_reply.port_type;
876 port->index = rmsg->u.port_info_get_reply.port_index;
879 rmsg->u.port_info_get_reply.port.buffer_num_min;
881 rmsg->u.port_info_get_reply.port.buffer_size_min;
883 rmsg->u.port_info_get_reply.port.buffer_alignment_min;
886 rmsg->u.port_info_get_reply.port.buffer_alignment_min;
888 rmsg->u.port_info_get_reply.port.buffer_num_recommended;
890 port->current_buffer.num = rmsg->u.port_info_get_reply.port.buffer_num;
892 rmsg->u.port_info_get_reply.port.buffer_size;
895 port->format.type = rmsg->u.port_info_get_reply.format.type;
896 port->format.encoding = rmsg->u.port_info_get_reply.format.encoding;
898 rmsg->u.port_info_get_reply.format.encoding_variant;
899 port->format.bitrate = rmsg->u.port_info_get_reply.format.bitrate;
900 port->format.flags = rmsg->u.port_info_get_reply.format.flags;
904 &rmsg->u.port_info_get_reply.es,
909 rmsg->u.port_info_get_reply.format.extradata_size;
911 rmsg->u.port_info_get_reply.extradata,
934 struct mmal_msg *rmsg;
946 &rmsg, &rmsg_handle);
950 if (rmsg->h.type != m.h.type) {
956 ret = -rmsg->u.component_create_reply.status;
961 component->handle = rmsg->u.component_create_reply.component_handle;
962 component->inputs = rmsg->u.component_create_reply.input_num;
963 component->outputs = rmsg->u.component_create_reply.output_num;
964 component->clocks = rmsg->u.component_create_reply.clock_num;
982 struct mmal_msg *rmsg;
990 &rmsg, &rmsg_handle);
994 if (rmsg->h.type != m.h.type) {
1000 ret = -rmsg->u.component_destroy_reply.status;
1015 struct mmal_msg *rmsg;
1023 &rmsg, &rmsg_handle);
1027 if (rmsg->h.type != m.h.type) {
1033 ret = -rmsg->u.component_enable_reply.status;
1047 struct mmal_msg *rmsg;
1055 &rmsg, &rmsg_handle);
1059 if (rmsg->h.type != m.h.type) {
1065 ret = -rmsg->u.component_disable_reply.status;
1080 struct mmal_msg *rmsg;
1087 &rmsg, &rmsg_handle);
1091 if (rmsg->h.type != m.h.type) {
1097 *major_out = rmsg->u.version.major;
1098 *minor_out = rmsg->u.version.minor;
1113 struct mmal_msg *rmsg;
1125 &rmsg, &rmsg_handle);
1129 if (rmsg->h.type != MMAL_MSG_TYPE_PORT_ACTION) {
1135 ret = -rmsg->u.port_action_reply.status;
1157 struct mmal_msg *rmsg;
1172 &rmsg, &rmsg_handle);
1176 if (rmsg->h.type != MMAL_MSG_TYPE_PORT_ACTION) {
1182 ret = -rmsg->u.port_action_reply.status;
1202 struct mmal_msg *rmsg;
1215 &rmsg, &rmsg_handle);
1219 if (rmsg->h.type != MMAL_MSG_TYPE_PORT_PARAMETER_SET) {
1225 ret = -rmsg->u.port_parameter_set_reply.status;
1243 struct mmal_msg *rmsg;
1256 &rmsg, &rmsg_handle);
1260 if (rmsg->h.type != MMAL_MSG_TYPE_PORT_PARAMETER_GET) {
1262 pr_err("Incorrect reply type %d\n", rmsg->h.type);
1267 ret = rmsg->u.port_parameter_get_reply.status;
1272 rmsg->u.port_parameter_get_reply.size -= (2 * sizeof(u32));
1274 if (ret || rmsg->u.port_parameter_get_reply.size > *value_size) {
1278 memcpy(value, &rmsg->u.port_parameter_get_reply.value,
1281 memcpy(value, &rmsg->u.port_parameter_get_reply.value,
1282 rmsg->u.port_parameter_get_reply.size);
1285 *value_size = rmsg->u.port_parameter_get_reply.size;