Lines Matching refs:ctx_6co
46 static struct net_6lo_context ctx_6co[CONFIG_NET_MAX_6LO_CONTEXTS]; variable
164 ctx_6co[index].is_used = true; in set_6lo_context()
165 ctx_6co[index].iface = iface; in set_6lo_context()
168 ctx_6co[index].lifetime = context->lifetime; in set_6lo_context()
169 ctx_6co[index].compress = get_6co_compress(context); in set_6lo_context()
170 ctx_6co[index].cid = get_6co_cid(context); in set_6lo_context()
172 net_ipv6_addr_copy_raw((uint8_t *)&ctx_6co[index].prefix, context->prefix); in set_6lo_context()
185 if (!ctx_6co[i].is_used) { in net_6lo_set_context()
190 if (ctx_6co[i].iface == iface && in net_6lo_set_context()
191 ctx_6co[i].cid == get_6co_cid(context)) { in net_6lo_set_context()
194 ctx_6co[i].is_used = false; in net_6lo_set_context()
220 if (!ctx_6co[i].is_used) { in get_6lo_context_by_cid()
224 if (ctx_6co[i].iface == iface && ctx_6co[i].cid == cid) { in get_6lo_context_by_cid()
225 return &ctx_6co[i]; in get_6lo_context_by_cid()
239 if (!ctx_6co[i].is_used) { in get_6lo_context_by_addr()
243 if (ctx_6co[i].iface == iface && in get_6lo_context_by_addr()
244 !memcmp(ctx_6co[i].prefix.s6_addr, addr->s6_addr, 8)) { in get_6lo_context_by_addr()
245 return &ctx_6co[i]; in get_6lo_context_by_addr()