Lines Matching refs:ch_obj
75 mm_channel_t *ch_obj = NULL;
80 ch_obj = &cam_obj->ch[i];
84 return ch_obj;
124 mm_channel_fsm_fn(async_cmd->u.stop_cmd.ch_obj,
418 mm_channel_t * ch_obj = NULL;
419 ch_obj = mm_camera_util_get_channel_by_handler(my_obj, ch_id);
426 if (NULL != ch_obj) {
427 rc = mm_channel_qbuf(ch_obj, buf);
748 mm_channel_t *ch_obj = NULL;
754 ch_obj = &my_obj->ch[ch_idx];
759 if (NULL != ch_obj) {
761 memset(ch_obj, 0, sizeof(mm_channel_t));
763 ch_obj->my_hdl = ch_hdl;
764 ch_obj->state = MM_CHANNEL_STATE_STOPPED;
765 ch_obj->cam_obj = my_obj;
766 pthread_mutex_init(&ch_obj->ch_lock, NULL);
769 mm_channel_init(ch_obj);
778 mm_channel_t * ch_obj =
781 if (NULL != ch_obj) {
782 pthread_mutex_lock(&ch_obj->ch_lock);
785 mm_channel_fsm_fn(ch_obj,
790 pthread_mutex_destroy(&ch_obj->ch_lock);
791 memset(ch_obj, 0, sizeof(mm_channel_t));
803 mm_channel_t * ch_obj =
808 if (NULL != ch_obj) {
809 pthread_mutex_lock(&ch_obj->ch_lock);
817 mm_channel_fsm_fn(ch_obj,
833 mm_channel_t * ch_obj =
836 if (NULL != ch_obj) {
837 pthread_mutex_lock(&ch_obj->ch_lock);
840 rc = mm_channel_fsm_fn(ch_obj,
857 mm_channel_t * ch_obj =
861 if (NULL != ch_obj) {
862 pthread_mutex_lock(&ch_obj->ch_lock);
868 rc = mm_channel_fsm_fn(ch_obj,
888 mm_channel_t * ch_obj =
892 if (NULL != ch_obj) {
893 pthread_mutex_lock(&ch_obj->ch_lock);
902 ch_obj,
916 mm_channel_t * ch_obj =
919 if (NULL != ch_obj) {
920 pthread_mutex_lock(&ch_obj->ch_lock);
923 rc = mm_channel_fsm_fn(ch_obj,
940 mm_channel_t * ch_obj =
944 if (NULL != ch_obj) {
945 pthread_mutex_lock(&ch_obj->ch_lock);
951 rc = mm_channel_fsm_fn(ch_obj,
971 mm_channel_t * ch_obj =
974 if (NULL != ch_obj) {
975 pthread_mutex_lock(&ch_obj->ch_lock);
982 rc = mm_channel_fsm_fn(ch_obj,
1001 mm_channel_t * ch_obj =
1004 if (NULL != ch_obj) {
1005 pthread_mutex_lock(&ch_obj->ch_lock);
1014 node->u.async.u.stop_cmd.ch_obj = ch_obj;
1024 pthread_mutex_unlock(&ch_obj->ch_lock);
1037 mm_channel_t * ch_obj =
1040 if (NULL != ch_obj) {
1041 pthread_mutex_lock(&ch_obj->ch_lock);
1044 rc = mm_channel_fsm_fn(ch_obj,
1058 mm_channel_t * ch_obj =
1061 if (NULL != ch_obj) {
1062 pthread_mutex_lock(&ch_obj->ch_lock);
1065 rc = mm_channel_fsm_fn(ch_obj,
1083 mm_channel_t * ch_obj =
1086 if (NULL != ch_obj) {
1087 pthread_mutex_lock(&ch_obj->ch_lock);
1093 rc = mm_channel_fsm_fn(ch_obj,
1109 mm_channel_t * ch_obj =
1112 if (NULL != ch_obj) {
1113 pthread_mutex_lock(&ch_obj->ch_lock);
1116 rc = mm_channel_fsm_fn(ch_obj,
1132 mm_channel_t * ch_obj =
1135 if (NULL != ch_obj) {
1136 pthread_mutex_lock(&ch_obj->ch_lock);
1139 rc = mm_channel_fsm_fn(ch_obj,
1158 mm_channel_t * ch_obj =
1161 if (NULL != ch_obj) {
1162 pthread_mutex_lock(&ch_obj->ch_lock);
1168 rc = mm_channel_fsm_fn(ch_obj,
1187 mm_channel_t * ch_obj =
1190 if (NULL != ch_obj) {
1191 pthread_mutex_lock(&ch_obj->ch_lock);
1197 rc = mm_channel_fsm_fn(ch_obj,