Home
last modified time | relevance | path

Searched refs:ctx_ops (Results 1 – 3 of 3) sorted by relevance

/src/sys/dev/ntb/
H A Dntb.c54 const struct ntb_ctx_ops *ctx_ops; member
229 if (nc->ctx_ops != NULL && nc->ctx_ops->link_event != NULL) in ntb_link_event()
230 nc->ctx_ops->link_event(nc->ctx); in ntb_link_event()
244 if (nc->ctx_ops != NULL && nc->ctx_ops->db_event != NULL) in ntb_db_event()
245 nc->ctx_ops->db_event(nc->ctx, vec); in ntb_db_event()
324 ntb_set_ctx(device_t ntb, void *ctx, const struct ntb_ctx_ops *ctx_ops) in ntb_set_ctx() argument
328 if (ctx == NULL || ctx_ops == NULL) in ntb_set_ctx()
332 if (nc->ctx_ops != NULL) { in ntb_set_ctx()
337 nc->ctx_ops = ctx_ops; in ntb_set_ctx()
343 if (ctx_ops->link_event != NULL) in ntb_set_ctx()
[all …]
H A Dntb.h168 int ntb_set_ctx(device_t ntb, void *ctx, const struct ntb_ctx_ops *ctx_ops);
177 void * ntb_get_ctx(device_t ntb, const struct ntb_ctx_ops **ctx_ops);
H A Dntb_if.m104 const struct ntb_ctx_ops *ctx_ops;
109 const struct ntb_ctx_ops **ctx_ops;