/openbmc/linux/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; in bsd_decompress() local [all …]
|
/openbmc/u-boot/lib/ |
H A D | hashtable.c | 229 unsigned int hval, unsigned int idx) in _compare_and_overwrite_entry() argument 231 if (htab->table[idx].used == hval in _compare_and_overwrite_entry() 276 unsigned int hval; in hsearch_r() local 284 hval = len; in hsearch_r() 287 hval <<= 4; in hsearch_r() 288 hval += item.key[count]; in hsearch_r() 295 hval %= htab->size; in hsearch_r() 296 if (hval == 0) in hsearch_r() 297 ++hval; in hsearch_r() 300 idx = hval; in hsearch_r() [all …]
|
/openbmc/linux/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()
|
/openbmc/linux/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()
|
/openbmc/qemu/tests/bench/ |
H A D | qht-bench.c | 118 static uint32_t hval(unsigned long v) in hval() function 327 keys[i] = precompute_hash ? h(val) : hval(val); in htable_init() 489 hfunc = hval; in parse_args()
|
/openbmc/linux/drivers/net/ethernet/intel/igb/ |
H A D | e1000_nvm.c | 690 u8 q, hval, rem, result; in igb_get_fw_version() local 768 hval = q * NVM_HEX_TENS; in igb_get_fw_version() 770 result = hval + rem; in igb_get_fw_version()
|
/openbmc/u-boot/drivers/usb/host/ |
H A D | dwc2.c | 88 uint32_t hval = (ghwcfg2 & DWC2_HWCFG2_HS_PHY_TYPE_MASK) >> in init_fslspclksel() local 93 if (hval == 2 && fval == 1) in init_fslspclksel() 420 uint32_t hval = (ghwcfg2 & DWC2_HWCFG2_HS_PHY_TYPE_MASK) >> in dwc_otg_core_init() local 424 if (hval == 2 && fval == 1) { in dwc_otg_core_init()
|
/openbmc/linux/net/ipv4/ |
H A D | route.c | 624 u64 hval; in fnhe_hashfun() local 627 hval = siphash_1u32((__force u32)daddr, &fnhe_hash_key); in fnhe_hashfun() 628 return hash_64(hval, FNHE_HASH_SHIFT); in fnhe_hashfun() 652 u32 genid, hval; in update_or_create_fnhe() local 657 hval = fnhe_hashfun(daddr); in update_or_create_fnhe() 669 hash += hval; in update_or_create_fnhe() 1352 u32 hval = fnhe_hashfun(daddr); in ip_del_fnhe() local 1358 hash += hval; in ip_del_fnhe() 1387 u32 hval; in find_exception() local 1392 hval = fnhe_hashfun(daddr); in find_exception() [all …]
|
/openbmc/linux/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()
|
/openbmc/linux/net/ipv6/ |
H A D | route.c | 1524 u32 hval; in __rt6_find_exception_spinlock() local 1529 hval = rt6_exception_hash(daddr, saddr); in __rt6_find_exception_spinlock() 1530 *bucket += hval; in __rt6_find_exception_spinlock() 1557 u32 hval; in __rt6_find_exception_rcu() local 1564 hval = rt6_exception_hash(daddr, saddr); in __rt6_find_exception_rcu() 1565 *bucket += hval; in __rt6_find_exception_rcu()
|
/openbmc/openbmc/poky/meta/recipes-bsp/lrzsz/lrzsz-0.12.20/ |
H A D | autotools-update.patch | 2881 - unsigned long int hval, g; 2885 - hval = 0; 2888 - hval <<= 4; 2889 - hval += (unsigned long) *str++; 2890 - g = hval & ((unsigned long) 0xf << (HASHWORDBITS - 4)); 2893 - hval ^= g >> (HASHWORDBITS - 8); 2894 - hval ^= g; 2897 - return hval;
|
/openbmc/linux/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()
|