Lines Matching refs:key
18 u_int key;
21 static bool have_key(struct optee *optee, u_int key)
26 if (entry->key == key)
32 int optee_notif_wait(struct optee *optee, u_int key)
38 if (key > optee->notif.max_key)
45 entry->key = key;
50 * If the bit is already set it means that the key has already
53 if (test_bit(key, optee->notif.bitmap)) {
54 clear_bit(key, optee->notif.bitmap);
59 * Check if someone is already waiting for this key. If there is
62 if (have_key(optee, key)) {
85 int optee_notif_send(struct optee *optee, u_int key)
90 if (key > optee->notif.max_key)
96 if (entry->key == key) {
102 set_bit(key, optee->notif.bitmap);