Searched refs:cbq (Results 1 – 2 of 2) sorted by relevance
/drivers/connector/ |
D | cn_queue.c | 26 struct cn_callback_entry *cbq; in cn_queue_alloc_callback_entry() local 28 cbq = kzalloc(sizeof(*cbq), GFP_KERNEL); in cn_queue_alloc_callback_entry() 29 if (!cbq) { in cn_queue_alloc_callback_entry() 34 refcount_set(&cbq->refcnt, 1); in cn_queue_alloc_callback_entry() 37 cbq->pdev = dev; in cn_queue_alloc_callback_entry() 39 snprintf(cbq->id.name, sizeof(cbq->id.name), "%s", name); in cn_queue_alloc_callback_entry() 40 memcpy(&cbq->id.id, id, sizeof(struct cb_id)); in cn_queue_alloc_callback_entry() 41 cbq->callback = callback; in cn_queue_alloc_callback_entry() 42 return cbq; in cn_queue_alloc_callback_entry() 45 void cn_queue_release_callback(struct cn_callback_entry *cbq) in cn_queue_release_callback() argument [all …]
|
D | connector.c | 134 struct cn_callback_entry *i, *cbq = NULL; in cn_call_callback() local 149 cbq = i; in cn_call_callback() 155 if (cbq != NULL) { in cn_call_callback() 156 cbq->callback(msg, nsp); in cn_call_callback() 158 cn_queue_release_callback(cbq); in cn_call_callback() 228 struct cn_callback_entry *cbq; in cn_proc_show() local 234 list_for_each_entry(cbq, &dev->queue_list, callback_entry) { in cn_proc_show() 236 cbq->id.name, in cn_proc_show() 237 cbq->id.id.idx, in cn_proc_show() 238 cbq->id.id.val); in cn_proc_show()
|