Lines Matching refs:uc
477 struct udp_cache *uc; in svcudp_enablecache() local
484 uc = ALLOC (struct udp_cache, 1); in svcudp_enablecache()
485 if (uc == NULL) in svcudp_enablecache()
490 uc->uc_size = size; in svcudp_enablecache()
491 uc->uc_nextvictim = 0; in svcudp_enablecache()
492 uc->uc_entries = CALLOC (cache_ptr, size * SPARSENESS); in svcudp_enablecache()
493 if (uc->uc_entries == NULL) in svcudp_enablecache()
495 mem_free (uc, sizeof (struct udp_cache)); in svcudp_enablecache()
499 uc->uc_fifo = CALLOC (cache_ptr, size); in svcudp_enablecache()
500 if (uc->uc_fifo == NULL) in svcudp_enablecache()
502 mem_free (uc->uc_entries, size * SPARSENESS); in svcudp_enablecache()
503 mem_free (uc, sizeof (struct udp_cache)); in svcudp_enablecache()
507 su->su_cache = (char *) uc; in svcudp_enablecache()
522 struct udp_cache *uc = (struct udp_cache *) su->su_cache; in libc_hidden_nolink_sunrpc() local
530 victim = uc->uc_fifo[uc->uc_nextvictim]; in libc_hidden_nolink_sunrpc()
534 for (vicp = &uc->uc_entries[loc]; in libc_hidden_nolink_sunrpc()
571 victim->cache_proc = uc->uc_proc; in libc_hidden_nolink_sunrpc()
572 victim->cache_vers = uc->uc_vers; in libc_hidden_nolink_sunrpc()
573 victim->cache_prog = uc->uc_prog; in libc_hidden_nolink_sunrpc()
574 victim->cache_addr = uc->uc_addr; in libc_hidden_nolink_sunrpc()
576 victim->cache_next = uc->uc_entries[loc]; in libc_hidden_nolink_sunrpc()
577 uc->uc_entries[loc] = victim; in libc_hidden_nolink_sunrpc()
578 uc->uc_fifo[uc->uc_nextvictim++] = victim; in libc_hidden_nolink_sunrpc()
579 uc->uc_nextvictim %= uc->uc_size; in libc_hidden_nolink_sunrpc()
593 struct udp_cache *uc = (struct udp_cache *) su->su_cache; in cache_get() local
598 for (ent = uc->uc_entries[loc]; ent != NULL; ent = ent->cache_next) in cache_get()
601 ent->cache_proc == uc->uc_proc && in cache_get()
602 ent->cache_vers == uc->uc_vers && in cache_get()
603 ent->cache_prog == uc->uc_prog && in cache_get()
604 EQADDR (ent->cache_addr, uc->uc_addr)) in cache_get()
615 uc->uc_proc = msg->rm_call.cb_proc; in cache_get()
616 uc->uc_vers = msg->rm_call.cb_vers; in cache_get()
617 uc->uc_prog = msg->rm_call.cb_prog; in cache_get()
618 memcpy (&uc->uc_addr, &xprt->xp_raddr, sizeof (uc->uc_addr)); in cache_get()