Lines Matching refs:smpp
121 srcid_map_t **smpp;
130 smpp = srcid_lookup_addr(addr, zoneid, ipst);
131 if (*smpp != NULL) {
133 (*smpp)->sm_refcnt++;
134 ASSERT((*smpp)->sm_refcnt != 0); /* wraparound */
139 *smpp = kmem_alloc(sizeof (srcid_map_t), KM_NOSLEEP);
140 if (*smpp == NULL) {
144 (*smpp)->sm_next = NULL;
145 (*smpp)->sm_addr = *addr;
146 (*smpp)->sm_srcid = srcid_nextid(ipst);
147 (*smpp)->sm_refcnt = 1;
148 (*smpp)->sm_zoneid = zoneid;
161 srcid_map_t **smpp;
171 smpp = srcid_lookup_addr(addr, zoneid, ipst);
172 smp = *smpp;
187 *smpp = smp->sm_next;
202 srcid_map_t **smpp;
208 smpp = srcid_lookup_addr(addr, zoneid, ipst);
209 smp = *smpp;
240 srcid_map_t **smpp;
246 smpp = srcid_lookup_id(id, ipst);
247 smp = *smpp;
277 srcid_map_t **smpp;
289 smpp = srcid_lookup_id(id, ipst);
290 if (*smpp == NULL)
306 srcid_map_t **smpp;
309 smpp = &ipst->ips_srcid_head;
310 while (*smpp != NULL) {
311 if (IN6_ARE_ADDR_EQUAL(&(*smpp)->sm_addr, addr) &&
312 (zoneid == (*smpp)->sm_zoneid || zoneid == ALL_ZONES))
313 return (smpp);
314 smpp = &(*smpp)->sm_next;
316 return (smpp);
328 srcid_map_t **smpp;
331 smpp = &ipst->ips_srcid_head;
332 while (*smpp != NULL) {
333 if ((*smpp)->sm_srcid == id)
334 return (smpp);
335 smpp = &(*smpp)->sm_next;
337 return (smpp);