Lines Matching refs:req_ptr
50 tsalarm_req_t *req_ptr = NULL;
70 req_ptr = malloc(sizeof (tsalarm_req_t));
71 if (req_ptr == NULL) {
75 req_ptr->alarm_action = TSALARM_STATUS;
76 req_ptr->alarm_id = alarm_type;
81 send_msg.msg_data = (uint8_t *)req_ptr;
125 if (req_ptr != NULL)
126 free(req_ptr);
142 tsalarm_req_t *req_ptr = NULL;
162 req_ptr = malloc(sizeof (tsalarm_req_t));
163 if (req_ptr == NULL) {
167 req_ptr->alarm_id = alarm_type;
169 req_ptr->alarm_action = TSALARM_ENABLE;
171 req_ptr->alarm_action = TSALARM_DISABLE;
176 send_msg.msg_data = (uint8_t *)req_ptr;
215 if ((req_ptr->alarm_action == TSALARM_DISABLE) &&
219 } else if ((req_ptr->alarm_action == TSALARM_ENABLE) &&
229 if (req_ptr != NULL)
230 free(req_ptr);