Lines Matching refs:notif
348 struct iwm_notif *notif, *next;
360 list_for_each_entry_safe(notif, next, &iwm->pending_notif, pending) {
361 list_del(¬if->pending);
362 kfree(notif->buf);
363 kfree(notif);
401 struct iwm_notif *notif;
403 notif = kzalloc(sizeof(struct iwm_notif), GFP_KERNEL);
404 if (!notif) {
409 INIT_LIST_HEAD(¬if->pending);
410 notif->cmd = cmd;
411 notif->cmd_id = cmd_id;
412 notif->src = source;
413 notif->buf = kzalloc(buf_size, GFP_KERNEL);
414 if (!notif->buf) {
416 kfree(notif);
419 notif->buf_size = buf_size;
420 memcpy(notif->buf, buf, buf_size);
421 list_add_tail(¬if->pending, &iwm->pending_notif);
431 struct iwm_notif *notif;
433 list_for_each_entry(notif, &iwm->pending_notif, pending) {
434 if ((notif->cmd_id == cmd) && (notif->src == source)) {
435 list_del(¬if->pending);
436 return notif;
447 struct iwm_notif *notif;
465 ((notif = iwm_notif_find(iwm, cmd, source)) != NULL),
472 return notif;
478 struct iwm_notif *notif;
480 notif = iwm_notif_wait(iwm, cmd, source, timeout);
481 if (!notif)
484 ret = iwm_rx_handle_resp(iwm, notif->buf, notif->buf_size, notif->cmd);
485 kfree(notif->buf);
486 kfree(notif);