Lines Matching refs:cons

153 nvme_notify(struct nvme_consumer *cons,  in nvme_notify()  argument
174 if (cons->ctrlr_fn != NULL) in nvme_notify()
175 ctrlr_cookie = (*cons->ctrlr_fn)(ctrlr); in nvme_notify()
178 ctrlr->cons_cookie[cons->id] = ctrlr_cookie; in nvme_notify()
185 ctrlr->cons_cookie[cons->id] = NULL; in nvme_notify()
186 if (cons->fail_fn != NULL) in nvme_notify()
187 (*cons->fail_fn)(ctrlr_cookie); in nvme_notify()
198 if (cons->ns_fn != NULL) in nvme_notify()
199 ns->cons_cookie[cons->id] = in nvme_notify()
200 (*cons->ns_fn)(ns, ctrlr_cookie); in nvme_notify()
217 nvme_notify_new_consumer(struct nvme_consumer *cons) in nvme_notify_new_consumer() argument
228 nvme_notify(cons, ctrlr); in nvme_notify_new_consumer()
240 struct nvme_consumer *cons; in nvme_notify_async_consumers() local
245 cons = &nvme_consumer[i]; in nvme_notify_async_consumers()
246 if (cons->id != INVALID_CONSUMER_ID && cons->async_fn != NULL && in nvme_notify_async_consumers()
248 (*cons->async_fn)(ctrlr_cookie, async_cpl, in nvme_notify_async_consumers()
257 struct nvme_consumer *cons; in nvme_notify_fail_consumers() local
271 cons = &nvme_consumer[i]; in nvme_notify_fail_consumers()
272 if (cons->id != INVALID_CONSUMER_ID && in nvme_notify_fail_consumers()
275 if (cons->fail_fn != NULL) in nvme_notify_fail_consumers()
276 cons->fail_fn(ctrlr_cookie); in nvme_notify_fail_consumers()
284 struct nvme_consumer *cons; in nvme_notify_ns() local
298 cons = &nvme_consumer[i]; in nvme_notify_ns()
299 if (cons->id != INVALID_CONSUMER_ID && cons->ns_fn != NULL && in nvme_notify_ns()
301 ns->cons_cookie[i] = (*cons->ns_fn)(ns, ctrlr_cookie); in nvme_notify_ns()