Lines Matching refs:tncc

486 static void tncc_send_to_imcs(struct tncc_data *tncc, unsigned int type,  in tncc_send_to_imcs()  argument
494 for (imc = tncc->imc; imc; imc = imc->next) { in tncc_send_to_imcs()
510 void tncc_init_connection(struct tncc_data *tncc) in tncc_init_connection() argument
514 for (imc = tncc->imc; imc; imc = imc->next) { in tncc_init_connection()
529 size_t tncc_total_send_len(struct tncc_data *tncc) in tncc_total_send_len() argument
534 for (imc = tncc->imc; imc; imc = imc->next) in tncc_total_send_len()
540 u8 * tncc_copy_send_buf(struct tncc_data *tncc, u8 *pos) in tncc_copy_send_buf() argument
544 for (imc = tncc->imc; imc; imc = imc->next) { in tncc_copy_send_buf()
559 char * tncc_if_tnccs_start(struct tncc_data *tncc) in tncc_if_tnccs_start() argument
564 tncc->last_batchid++; in tncc_if_tnccs_start()
565 os_snprintf(buf, 1000, IF_TNCCS_START, tncc->last_batchid); in tncc_if_tnccs_start()
580 static void tncc_notify_recommendation(struct tncc_data *tncc, in tncc_notify_recommendation() argument
601 for (imc = tncc->imc; imc; imc = imc->next) in tncc_notify_recommendation()
685 enum tncc_process_res tncc_process_if_tnccs(struct tncc_data *tncc, in tncc_process_if_tnccs() argument
725 if (batch_id != tncc->last_batchid + 1) { in tncc_process_if_tnccs()
728 batch_id, tncc->last_batchid + 1); in tncc_process_if_tnccs()
732 tncc->last_batchid = batch_id; in tncc_process_if_tnccs()
779 tncc_send_to_imcs(tncc, type, decoded, decoded_len); in tncc_process_if_tnccs()
873 tncc_notify_recommendation(tncc, res); in tncc_process_if_tnccs()
880 static int tncc_read_config_reg(struct tncc_data *tncc, HKEY hive) in tncc_read_config_reg() argument
888 last = tncc->imc; in tncc_read_config_reg()
980 tncc->imc = imc; in tncc_read_config_reg()
994 static int tncc_read_config(struct tncc_data *tncc) in tncc_read_config() argument
996 if (tncc_read_config_reg(tncc, HKEY_LOCAL_MACHINE) < 0 || in tncc_read_config()
997 tncc_read_config_reg(tncc, HKEY_CURRENT_USER) < 0) in tncc_read_config()
1068 static int tncc_read_config(struct tncc_data *tncc) in tncc_read_config() argument
1101 tncc->imc = imc; in tncc_read_config()
1119 struct tncc_data *tncc; in tncc_init() local
1122 tncc = os_zalloc(sizeof(*tncc)); in tncc_init()
1123 if (tncc == NULL) in tncc_init()
1131 if (tncc_read_config(tncc) < 0) { in tncc_init()
1136 for (imc = tncc->imc; imc; imc = imc->next) { in tncc_init()
1144 return tncc; in tncc_init()
1147 tncc_deinit(tncc); in tncc_init()
1152 void tncc_deinit(struct tncc_data *tncc) in tncc_deinit() argument
1156 imc = tncc->imc; in tncc_deinit()
1165 os_free(tncc); in tncc_deinit()