Lines Matching defs:evt
19 static inline bool hmdfs_is_valid_node_evt(int evt)
21 return (evt >= 0 && evt < NODE_EVT_NR);
24 static const char *hmdfs_evt_str(int evt)
26 if (!hmdfs_is_valid_node_evt(evt))
28 return evt_str_tbl[evt];
48 int evt = desc[i].evt;
51 if (!hmdfs_is_valid_node_evt(evt))
54 list_add_tail(&desc[i].list, &cb_head[evt][sync]);
58 void hmdfs_node_call_evt_cb(struct hmdfs_peer *conn, int evt, bool sync,
64 conn->owner, conn->device_id, hmdfs_evt_str(evt),
67 if (!hmdfs_is_valid_node_evt(evt))
70 list_for_each_entry(desc, &cb_head[evt][sync], list) {
71 desc->fn(conn, evt, seq);