Lines Matching refs:ops
48 struct nl_cache_ops *ops = ca->ca_cache->c_ops; in include_cb() local
56 if (ops->co_event_filter) in include_cb()
57 if (ops->co_event_filter(ca->ca_cache, obj) != NL_OK) in include_cb()
60 if (ops->co_include_event) in include_cb()
61 return ops->co_include_event(ca->ca_cache, obj, ca->ca_change, in include_cb()
72 struct nl_cache_ops *ops; in event_input() local
90 ops = mngr->cm_assocs[i].ca_cache->c_ops; in event_input()
91 for (n = 0; ops->co_msgtypes[n].mt_id >= 0; n++) in event_input()
92 if (ops->co_msgtypes[n].mt_id == type) in event_input()
104 return nl_cache_parse(ops, NULL, nlmsg_hdr(msg), &p); in event_input()
224 struct nl_cache_ops *ops; in nl_cache_mngr_add_cache() local
228 ops = cache->c_ops; in nl_cache_mngr_add_cache()
229 if (!ops) in nl_cache_mngr_add_cache()
232 if (ops->co_protocol != mngr->cm_protocol) in nl_cache_mngr_add_cache()
235 if (ops->co_groups == NULL) in nl_cache_mngr_add_cache()
240 mngr->cm_assocs[i].ca_cache->c_ops == ops) in nl_cache_mngr_add_cache()
264 for (grp = ops->co_groups; grp->ag_group; grp++) { in nl_cache_mngr_add_cache()
287 for (grp = ops->co_groups; grp->ag_group; grp++) in nl_cache_mngr_add_cache()
324 struct nl_cache_ops *ops; in nl_cache_mngr_add() local
328 ops = nl_cache_ops_lookup_safe(name); in nl_cache_mngr_add()
329 if (!ops) in nl_cache_mngr_add()
332 cache = nl_cache_alloc(ops); in nl_cache_mngr_add()
333 nl_cache_ops_put(ops); in nl_cache_mngr_add()