Lines Matching refs:cons
116 nvme_notify(struct nvme_consumer *cons, in nvme_notify() argument
137 if (cons->ctrlr_fn != NULL) in nvme_notify()
138 ctrlr_cookie = (*cons->ctrlr_fn)(ctrlr); in nvme_notify()
141 ctrlr->cons_cookie[cons->id] = ctrlr_cookie; in nvme_notify()
150 ctrlr->cons_cookie[cons->id] = NULL; in nvme_notify()
151 if (cons->fail_fn != NULL) in nvme_notify()
152 (*cons->fail_fn)(ctrlr_cookie); in nvme_notify()
163 if (cons->ns_fn != NULL) in nvme_notify()
164 ns->cons_cookie[cons->id] = in nvme_notify()
165 (*cons->ns_fn)(ns, ctrlr_cookie); in nvme_notify()
182 nvme_notify_new_consumer(struct nvme_consumer *cons) in nvme_notify_new_consumer() argument
193 nvme_notify(cons, ctrlr); in nvme_notify_new_consumer()
205 struct nvme_consumer *cons; in nvme_notify_async_consumers() local
210 cons = &nvme_consumer[i]; in nvme_notify_async_consumers()
211 if (cons->id != INVALID_CONSUMER_ID && cons->async_fn != NULL && in nvme_notify_async_consumers()
213 (*cons->async_fn)(ctrlr_cookie, async_cpl, in nvme_notify_async_consumers()
222 struct nvme_consumer *cons; in nvme_notify_fail_consumers() local
236 cons = &nvme_consumer[i]; in nvme_notify_fail_consumers()
237 if (cons->id != INVALID_CONSUMER_ID && in nvme_notify_fail_consumers()
240 if (cons->fail_fn != NULL) in nvme_notify_fail_consumers()
241 cons->fail_fn(ctrlr_cookie); in nvme_notify_fail_consumers()
249 struct nvme_consumer *cons; in nvme_notify_ns() local
263 cons = &nvme_consumer[i]; in nvme_notify_ns()
264 if (cons->id != INVALID_CONSUMER_ID && cons->ns_fn != NULL && in nvme_notify_ns()
266 ns->cons_cookie[i] = (*cons->ns_fn)(ns, ctrlr_cookie); in nvme_notify_ns()