Lines Matching refs:kind
45 static int qdisc_new(QDiscKind kind, QDisc **ret) { in qdisc_new() argument
49 if (kind == _QDISC_KIND_INVALID) { in qdisc_new()
56 .kind = kind, in qdisc_new()
59 assert(kind >= 0 && kind < _QDISC_KIND_MAX); in qdisc_new()
60 qdisc = malloc0(qdisc_vtable[kind]->object_size); in qdisc_new()
65 qdisc->kind = kind; in qdisc_new()
79 int qdisc_new_static(QDiscKind kind, Network *network, const char *filename, unsigned section_line,… in qdisc_new_static() argument
96 if (existing->kind != _QDISC_KIND_INVALID && in qdisc_new_static()
97 kind != _QDISC_KIND_INVALID && in qdisc_new_static()
98 existing->kind != kind) in qdisc_new_static()
101 if (existing->kind == kind || kind == _QDISC_KIND_INVALID) { in qdisc_new_static()
107 r = qdisc_new(kind, &qdisc); in qdisc_new_static()
265 int link_find_qdisc(Link *link, uint32_t handle, uint32_t parent, const char *kind, QDisc **ret) { in link_find_qdisc() argument
285 if (kind && !streq_ptr(kind, qdisc_get_tca_kind(qdisc))) in link_find_qdisc()