Lines Matching refs:log
16 #define BTLOG(log, event, data1, data2) \ argument
17 cras_bt_event_log_data(log, event, data1, data2);
19 #define BTLOG(log, event, data1, data2) argument
26 struct cras_bt_event_log *log; in cras_bt_event_log_init() local
27 log = (struct cras_bt_event_log *)calloc( in cras_bt_event_log_init()
29 log->len = CRAS_BT_EVENT_LOG_SIZE; in cras_bt_event_log_init()
31 return log; in cras_bt_event_log_init()
34 static inline void cras_bt_event_log_deinit(struct cras_bt_event_log *log) in cras_bt_event_log_deinit() argument
36 free(log); in cras_bt_event_log_deinit()
39 static inline void cras_bt_event_log_data(struct cras_bt_event_log *log, in cras_bt_event_log_data() argument
46 log->log[log->write_pos].tag_sec = in cras_bt_event_log_data()
48 log->log[log->write_pos].nsec = now.tv_nsec; in cras_bt_event_log_data()
49 log->log[log->write_pos].data1 = data1; in cras_bt_event_log_data()
50 log->log[log->write_pos].data2 = data2; in cras_bt_event_log_data()
52 log->write_pos++; in cras_bt_event_log_data()
53 log->write_pos %= CRAS_BT_EVENT_LOG_SIZE; in cras_bt_event_log_data()