Lines Matching refs:cons
175 nvme_notify(struct nvme_consumer *cons, in nvme_notify() argument
196 if (cons->ctrlr_fn != NULL) in nvme_notify()
197 ctrlr_cookie = (*cons->ctrlr_fn)(ctrlr); in nvme_notify()
200 ctrlr->cons_cookie[cons->id] = ctrlr_cookie; in nvme_notify()
207 ctrlr->cons_cookie[cons->id] = NULL; in nvme_notify()
208 if (cons->fail_fn != NULL) in nvme_notify()
209 (*cons->fail_fn)(ctrlr_cookie); in nvme_notify()
220 if (cons->ns_fn != NULL) in nvme_notify()
221 ns->cons_cookie[cons->id] = in nvme_notify()
222 (*cons->ns_fn)(ns, ctrlr_cookie); in nvme_notify()
239 nvme_notify_new_consumer(struct nvme_consumer *cons) in nvme_notify_new_consumer() argument
250 nvme_notify(cons, ctrlr); in nvme_notify_new_consumer()
262 struct nvme_consumer *cons; in nvme_notify_async_consumers() local
267 cons = &nvme_consumer[i]; in nvme_notify_async_consumers()
268 if (cons->id != INVALID_CONSUMER_ID && cons->async_fn != NULL && in nvme_notify_async_consumers()
270 (*cons->async_fn)(ctrlr_cookie, async_cpl, in nvme_notify_async_consumers()
279 struct nvme_consumer *cons; in nvme_notify_fail_consumers() local
293 cons = &nvme_consumer[i]; in nvme_notify_fail_consumers()
294 if (cons->id != INVALID_CONSUMER_ID && in nvme_notify_fail_consumers()
297 if (cons->fail_fn != NULL) in nvme_notify_fail_consumers()
298 cons->fail_fn(ctrlr_cookie); in nvme_notify_fail_consumers()
306 struct nvme_consumer *cons; in nvme_notify_ns() local
315 cons = &nvme_consumer[i]; in nvme_notify_ns()
316 if (cons->id != INVALID_CONSUMER_ID && cons->ns_fn != NULL && in nvme_notify_ns()
318 ns->cons_cookie[i] = (*cons->ns_fn)(ns, ctrlr_cookie); in nvme_notify_ns()