/kernel/liteos_a/kernel/include/ |
H A D | los_hash.h | 50 LITE_OS_SEC_ALW_INLINE STATIC INLINE UINT32 LOS_HashFNV32aBuf(const VOID *buf, size_t len, UINT32 hval) in LOS_HashFNV32aBuf() argument 59 hval ^= (UINT32)*hashbuf++; in LOS_HashFNV32aBuf() 62 hval *= FNV_32_PRIME; in LOS_HashFNV32aBuf() 66 return hval; in LOS_HashFNV32aBuf() 69 LITE_OS_SEC_ALW_INLINE STATIC INLINE UINT32 LOS_HashFNV32aStr(CHAR *str, UINT32 hval) in LOS_HashFNV32aStr() argument 78 hval ^= (UINT32)*s++; in LOS_HashFNV32aStr() 81 hval *= FNV_32_PRIME; in LOS_HashFNV32aStr() 85 return hval; in LOS_HashFNV32aStr()
|
/kernel/linux/linux-5.10/drivers/net/ppp/ |
H A D | bsd_comp.c | 576 int hval; in bsd_compress() local 658 hval = BSD_HASH (ent, c, hshift); in bsd_compress() 659 dictp = dict_ptr (db, hval); in bsd_compress() 674 disp = (hval == 0) ? 1 : hval; in bsd_compress() 678 hval += disp; in bsd_compress() 679 if (hval >= db->hsize) in bsd_compress() 681 hval -= db->hsize; in bsd_compress() 683 dictp = dict_ptr (db, hval); in bsd_compress() 724 dictp2->cptr = hval; in bsd_compress() 1056 int hval, disp, indx; bsd_decompress() local [all...] |
/kernel/linux/linux-6.6/drivers/net/ppp/ |
H A D | bsd_comp.c | 576 int hval; in bsd_compress() local 658 hval = BSD_HASH (ent, c, hshift); in bsd_compress() 659 dictp = dict_ptr (db, hval); in bsd_compress() 674 disp = (hval == 0) ? 1 : hval; in bsd_compress() 678 hval += disp; in bsd_compress() 679 if (hval >= db->hsize) in bsd_compress() 681 hval -= db->hsize; in bsd_compress() 683 dictp = dict_ptr (db, hval); in bsd_compress() 724 dictp2->cptr = hval; in bsd_compress() 1056 int hval, disp, indx; bsd_decompress() local [all...] |
/kernel/linux/linux-5.10/sound/usb/6fire/ |
H A D | firmware.c | 62 int hval; in usb6fire_fw_ihex_hex() local 64 hval = hex_to_bin(data[0]); in usb6fire_fw_ihex_hex() 65 if (hval >= 0) in usb6fire_fw_ihex_hex() 66 val |= (hval << 4); in usb6fire_fw_ihex_hex() 68 hval = hex_to_bin(data[1]); in usb6fire_fw_ihex_hex() 69 if (hval >= 0) in usb6fire_fw_ihex_hex() 70 val |= hval; in usb6fire_fw_ihex_hex()
|
/kernel/linux/linux-6.6/sound/usb/6fire/ |
H A D | firmware.c | 62 int hval; in usb6fire_fw_ihex_hex() local 64 hval = hex_to_bin(data[0]); in usb6fire_fw_ihex_hex() 65 if (hval >= 0) in usb6fire_fw_ihex_hex() 66 val |= (hval << 4); in usb6fire_fw_ihex_hex() 68 hval = hex_to_bin(data[1]); in usb6fire_fw_ihex_hex() 69 if (hval >= 0) in usb6fire_fw_ihex_hex() 70 val |= hval; in usb6fire_fw_ihex_hex()
|
/kernel/linux/linux-5.10/tools/perf/util/ |
H A D | srccode.c | 95 unsigned hval = shash((unsigned char *)fn) % SRC_HTAB_SZ; in find_srcfile() local 97 hlist_for_each_entry (h, &srcfile_htab[hval], hash_nd) { in find_srcfile() 142 hlist_add_head(&h->hash_nd, &srcfile_htab[hval]); in find_srcfile()
|
/kernel/linux/linux-6.6/tools/perf/util/ |
H A D | srccode.c | 95 unsigned hval = shash((unsigned char *)fn) % SRC_HTAB_SZ; in find_srcfile() local 97 hlist_for_each_entry (h, &srcfile_htab[hval], hash_nd) { in find_srcfile() 141 hlist_add_head(&h->hash_nd, &srcfile_htab[hval]); in find_srcfile()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/intel/igb/ |
H A D | e1000_nvm.c | 690 u8 q, hval, rem, result; in igb_get_fw_version() local 770 hval = q * NVM_HEX_TENS; in igb_get_fw_version() 772 result = hval + rem; in igb_get_fw_version()
|
/kernel/linux/linux-6.6/drivers/net/ethernet/intel/igb/ |
H A D | e1000_nvm.c | 690 u8 q, hval, rem, result; in igb_get_fw_version() local 770 hval = q * NVM_HEX_TENS; in igb_get_fw_version() 772 result = hval + rem; in igb_get_fw_version()
|
/kernel/linux/linux-5.10/net/ipv4/ |
H A D | route.c | 647 u64 hval; in fnhe_hashfun() local 650 hval = siphash_1u32((__force u32)daddr, &fnhe_hash_key); in fnhe_hashfun() 651 return hash_64(hval, FNHE_HASH_SHIFT); in fnhe_hashfun() 675 u32 genid, hval; in update_or_create_fnhe() local 680 hval = fnhe_hashfun(daddr); in update_or_create_fnhe() 692 hash += hval; in update_or_create_fnhe() 1372 u32 hval = fnhe_hashfun(daddr); in ip_del_fnhe() local 1378 hash += hval; in ip_del_fnhe() 1407 u32 hval; in find_exception() local 1412 hval in find_exception() [all...] |
/kernel/linux/linux-6.6/net/ipv4/ |
H A D | route.c | 617 u64 hval; in fnhe_hashfun() local 620 hval = siphash_1u32((__force u32)daddr, &fnhe_hash_key); in fnhe_hashfun() 621 return hash_64(hval, FNHE_HASH_SHIFT); in fnhe_hashfun() 645 u32 genid, hval; in update_or_create_fnhe() local 650 hval = fnhe_hashfun(daddr); in update_or_create_fnhe() 662 hash += hval; in update_or_create_fnhe() 1334 u32 hval = fnhe_hashfun(daddr); in ip_del_fnhe() local 1340 hash += hval; in ip_del_fnhe() 1369 u32 hval; in find_exception() local 1374 hval in find_exception() [all...] |
/kernel/linux/linux-5.10/drivers/net/ethernet/qlogic/qlcnic/ |
H A D | qlcnic_io.c | 313 u8 hindex, hval; in qlcnic_send_filter() local 328 hval = qlcnic_mac_hash(src_addr, vlan_id); in qlcnic_send_filter() 329 hindex = hval & (adapter->fhash.fbucket_size - 1); in qlcnic_send_filter()
|
/kernel/linux/linux-6.6/drivers/net/ethernet/qlogic/qlcnic/ |
H A D | qlcnic_io.c | 314 u8 hindex, hval; in qlcnic_send_filter() local 329 hval = qlcnic_mac_hash(src_addr, vlan_id); in qlcnic_send_filter() 330 hindex = hval & (adapter->fhash.fbucket_size - 1); in qlcnic_send_filter()
|
/kernel/linux/linux-5.10/net/ipv6/ |
H A D | route.c | 1521 u32 hval; in __rt6_find_exception_spinlock() local 1526 hval = rt6_exception_hash(daddr, saddr); in __rt6_find_exception_spinlock() 1527 *bucket += hval; in __rt6_find_exception_spinlock() 1554 u32 hval; in __rt6_find_exception_rcu() local 1561 hval = rt6_exception_hash(daddr, saddr); in __rt6_find_exception_rcu() 1562 *bucket += hval; in __rt6_find_exception_rcu()
|
/kernel/linux/linux-6.6/net/ipv6/ |
H A D | route.c | 1520 u32 hval; in __rt6_find_exception_spinlock() local 1525 hval = rt6_exception_hash(daddr, saddr); in __rt6_find_exception_spinlock() 1526 *bucket += hval; in __rt6_find_exception_spinlock() 1553 u32 hval; in __rt6_find_exception_rcu() local 1560 hval = rt6_exception_hash(daddr, saddr); in __rt6_find_exception_rcu() 1561 *bucket += hval; in __rt6_find_exception_rcu()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/sun/ |
H A D | cassini.c | 4373 u16 hval; in cas_read_regs() local 4376 hval = cas_phy_read(cp, in cas_read_regs() 4378 val = hval; in cas_read_regs()
|
/kernel/linux/linux-6.6/drivers/net/ethernet/sun/ |
H A D | cassini.c | 4338 u16 hval; in cas_read_regs() local 4341 hval = cas_phy_read(cp, in cas_read_regs() 4343 val = hval; in cas_read_regs()
|