/freebsd/sys/kern/ |
H A D | subr_hash.c | 56 LIST_HEAD(generic, generic) *hashtbl; in hashinit_flags() 67 hashtbl = malloc((u_long)hashsize * sizeof(*hashtbl), type, in hashinit_flags() 69 if (hashtbl != NULL) { in hashinit_flags() 71 LIST_INIT(&hashtbl[i]); in hashinit_flags() 74 return (hashtbl); in hashinit_flags() 90 LIST_HEAD(generic, generic) *hashtbl, *hp; in hashdestroy() 92 hashtbl = vhashtbl; in hashdestroy() 93 for (hp = hashtbl; hp <= &hashtbl[hashmask]; hp++) in hashdestroy() 95 "(malloc type %s)", __func__, hashtbl, type->ks_shortdesc)); in hashdestroy() 96 free(hashtbl, type); in hashdestroy() [all …]
|
H A D | vfs_cache.c | 2733 struct nchashhead *hashtbl; in nchinittbl() local 2738 hashtbl = malloc(hashsize * sizeof(*hashtbl), M_VFSCACHE, M_WAITOK); in nchinittbl() 2740 CK_SLIST_INIT(&hashtbl[i]); in nchinittbl() 2742 return (hashtbl); in nchinittbl() 2746 ncfreetbl(struct nchashhead *hashtbl) in ncfreetbl() argument 2749 free(hashtbl, M_VFSCACHE); in ncfreetbl()
|
/freebsd/sys/dev/usb/net/ |
H A D | if_udav.c | 504 uint8_t *hashtbl = arg; in udav_hash_maddr() local 508 hashtbl[h / 8] |= 1 << (h % 8); in udav_hash_maddr() 518 uint8_t hashtbl[8] = { 0, 0, 0, 0, 0, 0, 0, 0 }; in udav_setmulti() local 528 memset(hashtbl, 0x00, sizeof(hashtbl)); in udav_setmulti() 529 hashtbl[7] |= 0x80; /* broadcast address */ in udav_setmulti() 530 udav_csr_write(sc, UDAV_MAR, hashtbl, sizeof(hashtbl)); in udav_setmulti() 533 if_foreach_llmaddr(ifp, udav_hash_maddr, hashtbl); in udav_setmulti() 539 udav_csr_write(sc, UDAV_MAR, hashtbl, sizeof(hashtbl)); in udav_setmulti()
|
H A D | if_cue.c | 308 uint8_t *hashtbl = arg; in cue_hash_maddr() local 312 hashtbl[h >> 3] |= 1 << (h & 0x7); in cue_hash_maddr() 323 uint8_t hashtbl[8] = { 0, 0, 0, 0, 0, 0, 0, 0 }; in cue_setmulti() local 329 hashtbl[i] = 0xff; in cue_setmulti() 331 &hashtbl, 8); in cue_setmulti() 336 if_foreach_llmaddr(ifp, cue_hash_maddr, hashtbl); in cue_setmulti() 344 hashtbl[h >> 3] |= 1 << (h & 0x7); in cue_setmulti() 347 cue_mem(sc, CUE_CMD_WRITESRAM, CUE_MCAST_TABLE_ADDR, &hashtbl, 8); in cue_setmulti()
|
H A D | if_mos.c | 400 mos_write_mcast(struct mos_softc *sc, u_char *hashtbl) in mos_write_mcast() argument 411 err = uether_do_request(&sc->sc_ue, &req, hashtbl, 1000); in mos_write_mcast() 584 uint8_t *hashtbl = arg; in mos_hash_maddr() local 588 hashtbl[h / 8] |= 1 << (h % 8); in mos_hash_maddr() 599 uint8_t hashtbl[8] = {0, 0, 0, 0, 0, 0, 0, 0}; in mos_setmulti() local 610 if_foreach_llmaddr(ifp, mos_hash_maddr, &hashtbl); in mos_setmulti() 618 mos_write_mcast(sc, (void *)&hashtbl); in mos_setmulti()
|
H A D | if_aue.c | 541 uint8_t *hashtbl = arg; in aue_hash_maddr() local 545 hashtbl[(h >> 3)] |= 1 << (h & 0x7); in aue_hash_maddr() 556 uint8_t hashtbl[8] = { 0, 0, 0, 0, 0, 0, 0, 0 }; in aue_setmulti() local 568 if_foreach_llmaddr(ifp, aue_hash_maddr, hashtbl); in aue_setmulti() 572 aue_csr_write_1(sc, AUE_MAR0 + i, hashtbl[i]); in aue_setmulti()
|
H A D | if_smsc.c | 692 uint32_t hash, *hashtbl = arg; in smsc_hash_maddr() local 695 hashtbl[hash >> 5] |= 1 << (hash & 0x1F); in smsc_hash_maddr() 715 uint32_t hashtbl[2] = { 0, 0 }; in smsc_setmulti() local 725 if (if_foreach_llmaddr(ifp, smsc_hash_maddr, &hashtbl) > 0) { in smsc_setmulti() 747 smsc_write_reg(sc, SMSC_HASHH, hashtbl[1]); in smsc_setmulti() 748 smsc_write_reg(sc, SMSC_HASHL, hashtbl[0]); in smsc_setmulti()
|
H A D | if_axge.c | 777 uint8_t *hashtbl = arg; in axge_hash_maddr() local 781 hashtbl[h / 8] |= 1 << (h % 8); in axge_hash_maddr() 792 uint8_t hashtbl[8] = { 0, 0, 0, 0, 0, 0, 0, 0 }; in axge_rxfilter() local 818 if_foreach_llmaddr(ifp, axge_hash_maddr, &hashtbl); in axge_rxfilter() 820 axge_write_mem(sc, AXGE_ACCESS_MAC, 8, AXGE_MFA, (void *)&hashtbl, 8); in axge_rxfilter()
|
H A D | if_axe.c | 482 uint8_t *hashtbl = arg; in axe_hash_maddr() local 486 hashtbl[h / 8] |= 1 << (h % 8); in axe_hash_maddr() 497 uint8_t hashtbl[8] = { 0, 0, 0, 0, 0, 0, 0, 0 }; in axe_setmulti() local 511 if_foreach_llmaddr(ifp, axe_hash_maddr, &hashtbl); in axe_setmulti() 513 axe_cmd(sc, AXE_CMD_WRITE_MCAST, 0, 0, (void *)&hashtbl); in axe_setmulti()
|
/freebsd/contrib/less/ |
H A D | ch.c | 54 struct bufnode hashtbl[BUFHASH_SIZE]; 75 #define END_OF_HCHAIN(h) (&thisfile->hashtbl[h]) 101 * Macros to manipulate the list of buffers in thisfile->hashtbl[n]. 104 for (bn = thisfile->hashtbl[h].hnext; \ 112 (bn)->hnext = thisfile->hashtbl[h].hnext; \ 114 thisfile->hashtbl[h].hnext->hprev = (bn); \ 115 thisfile->hashtbl[h].hnext = (bn); 761 thisfile->hashtbl[h].hnext = END_OF_HCHAIN(h); 762 thisfile->hashtbl[h].hprev = END_OF_HCHAIN(h); 61 struct bufnode hashtbl[BUFHASH_SIZE]; global() member
|
/freebsd/contrib/libpcap/ |
H A D | optimize.c | 330 struct valnode *hashtbl[MODULUS]; member 712 memset((char *)opt_state->hashtbl, 0, sizeof opt_state->hashtbl); in init_val() 734 for (p = opt_state->hashtbl[hash]; p; p = p->next) in F() 760 p->next = opt_state->hashtbl[hash]; in F() 761 opt_state->hashtbl[hash] = p; in F()
|