Lines Matching defs:id
88 if (cn_cb_equal(&__cbq->id.id, &msg->id)) {
137 if (cn_cb_equal(&__cbq->id.id, &msg->id)) {
252 * Gets id and checks if there are notification request for it's idx
257 static void cn_notify(struct cb_id *id, u32 notify_event)
272 if (id->idx >= req->first &&
273 id->idx < req->first + req->range) {
280 if (id->val >= req->first &&
281 id->val < req->first + req->range) {
290 memcpy(&m.id, id, sizeof(m.id));
303 int cn_add_callback(struct cb_id *id, char *name, void (*callback)(void *))
311 err = cn_queue_add_callback(dev->cbdev, name, id, callback);
315 cn_notify(id, 0);
329 void cn_del_callback(struct cb_id *id)
333 cn_queue_del_callback(dev->cbdev, id);
334 cn_notify(id, 1);
446 dev->id.idx = cn_idx;
447 dev->id.val = cn_val;
464 err = cn_add_callback(&dev->id, "connector", &cn_callback);
482 cn_del_callback(&dev->id);