Home
last modified time | relevance | path

Searched refs:hash_value (Results 1 – 22 of 22) sorted by relevance

/linux-2.6.39/security/selinux/ss/
Dhashtab.c11 struct hashtab *hashtab_create(u32 (*hash_value)(struct hashtab *h, const void *key), in hashtab_create()
24 p->hash_value = hash_value; in hashtab_create()
46 hvalue = h->hash_value(h, key); in hashtab_insert()
82 hvalue = h->hash_value(h, key); in hashtab_search()
Dhashtab.h25 u32 (*hash_value)(struct hashtab *h, const void *key); member
42 struct hashtab *hashtab_create(u32 (*hash_value)(struct hashtab *h, const void *key),
/linux-2.6.39/drivers/net/ixgb/
Dixgb_hw.c44 static void ixgb_mta_set(struct ixgb_hw *hw, u32 hash_value);
437 u32 hash_value; in ixgb_mc_addr_list_update() local
473 hash_value = ixgb_hash_mc_addr(hw, mca); in ixgb_mc_addr_list_update()
475 pr_debug("Hash value = 0x%03X\n", hash_value); in ixgb_mc_addr_list_update()
477 ixgb_mta_set(hw, hash_value); in ixgb_mc_addr_list_update()
499 u32 hash_value = 0; in ixgb_hash_mc_addr() local
512 hash_value = in ixgb_hash_mc_addr()
516 hash_value = in ixgb_hash_mc_addr()
520 hash_value = in ixgb_hash_mc_addr()
524 hash_value = ((mc_addr[4]) | (((u16) mc_addr[5]) << 8)); in ixgb_hash_mc_addr()
[all …]
/linux-2.6.39/drivers/net/igbvf/
Dvf.c191 u32 hash_value, hash_mask; in e1000_hash_mc_addr_vf() local
204 hash_value = hash_mask & (((mc_addr[4] >> (8 - bit_shift)) | in e1000_hash_mc_addr_vf()
207 return hash_value; in e1000_hash_mc_addr_vf()
230 u32 hash_value; in e1000_update_mc_addr_list_vf() local
247 hash_value = e1000_hash_mc_addr_vf(hw, mc_addr_list); in e1000_update_mc_addr_list_vf()
248 hash_list[i] = hash_value & 0x0FFFF; in e1000_update_mc_addr_list_vf()
/linux-2.6.39/drivers/net/igb/
De1000_mac.c284 void igb_mta_set(struct e1000_hw *hw, u32 hash_value) in igb_mta_set() argument
298 hash_reg = (hash_value >> 5) & (hw->mac.mta_reg_count - 1); in igb_mta_set()
299 hash_bit = hash_value & 0x1F; in igb_mta_set()
320 u32 hash_value, hash_mask; in igb_hash_mc_addr() local
374 hash_value = hash_mask & (((mc_addr[4] >> (8 - bit_shift)) | in igb_hash_mc_addr()
377 return hash_value; in igb_hash_mc_addr()
392 u32 hash_value, hash_bit, hash_reg; in igb_update_mc_addr_list() local
400 hash_value = igb_hash_mc_addr(hw, mc_addr_list); in igb_update_mc_addr_list()
402 hash_reg = (hash_value >> 5) & (hw->mac.mta_reg_count - 1); in igb_update_mc_addr_list()
403 hash_bit = hash_value & 0x1F; in igb_update_mc_addr_list()
De1000_mac.h66 void igb_mta_set(struct e1000_hw *hw, u32 hash_value);
/linux-2.6.39/drivers/net/atlx/
Datlx.c132 u32 hash_value; in atlx_set_multi() local
152 hash_value = atlx_hash_mc_addr(hw, ha->addr); in atlx_set_multi()
153 atlx_hash_set(hw, hash_value); in atlx_set_multi()
Datl2.c141 u32 hash_value; in atl2_set_multi() local
162 hash_value = atl2_hash_mc_addr(hw, ha->addr); in atl2_set_multi()
163 atl2_hash_set(hw, hash_value); in atl2_set_multi()
2403 static void atl2_hash_set(struct atl2_hw *hw, u32 hash_value) argument
2416 hash_reg = (hash_value >> 31) & 0x1;
2417 hash_bit = (hash_value >> 26) & 0x1F;
Datl2.h87 static void atl2_hash_set(struct atl2_hw *hw, u32 hash_value);
Datl1.h60 static void atl1_hash_set(struct atl1_hw *hw, u32 hash_value);
Datl1.c575 static void atl1_hash_set(struct atl1_hw *hw, u32 hash_value) in atl1_hash_set() argument
589 hash_reg = (hash_value >> 31) & 0x1; in atl1_hash_set()
590 hash_bit = (hash_value >> 26) & 0x1F; in atl1_hash_set()
/linux-2.6.39/drivers/net/
Ddavinci_emac.c736 u32 hash_value = hash_get(mac_addr); in hash_add() local
738 if (hash_value >= EMAC_NUM_MULTICAST_BITS) { in hash_add()
742 hash_value, (EMAC_NUM_MULTICAST_BITS - 1)); in hash_add()
748 if (priv->multicast_hash_cnt[hash_value] == 0) { in hash_add()
750 if (hash_value < 32) { in hash_add()
751 hash_bit = BIT(hash_value); in hash_add()
754 hash_bit = BIT((hash_value - 32)); in hash_add()
760 ++priv->multicast_hash_cnt[hash_value]; in hash_add()
775 u32 hash_value; in hash_del() local
778 hash_value = hash_get(mac_addr); in hash_del()
[all …]
/linux-2.6.39/drivers/net/atl1e/
Datl1e_hw.c185 void atl1e_hash_set(struct atl1e_hw *hw, u32 hash_value) in atl1e_hash_set() argument
199 hash_reg = (hash_value >> 31) & 0x1; in atl1e_hash_set()
200 hash_bit = (hash_value >> 26) & 0x1F; in atl1e_hash_set()
Datl1e_hw.h39 void atl1e_hash_set(struct atl1e_hw *hw, u32 hash_value);
Datl1e_main.c289 u32 hash_value; in atl1e_set_multi() local
311 hash_value = atl1e_hash_mc_addr(hw, ha->addr); in atl1e_set_multi()
312 atl1e_hash_set(hw, hash_value); in atl1e_set_multi()
/linux-2.6.39/drivers/net/atl1c/
Datl1c_hw.c256 void atl1c_hash_set(struct atl1c_hw *hw, u32 hash_value) in atl1c_hash_set() argument
270 hash_reg = (hash_value >> 31) & 0x1; in atl1c_hash_set()
271 hash_bit = (hash_value >> 26) & 0x1F; in atl1c_hash_set()
Datl1c_hw.h38 void atl1c_hash_set(struct atl1c_hw *hw, u32 hash_value);
Datl1c_main.c387 u32 hash_value; in atl1c_set_multi() local
409 hash_value = atl1c_hash_mc_addr(hw, ha->addr); in atl1c_set_multi()
410 atl1c_hash_set(hw, hash_value); in atl1c_set_multi()
/linux-2.6.39/drivers/net/e1000e/
Dlib.c288 u32 hash_value, hash_mask; in e1000_hash_mc_addr() local
342 hash_value = hash_mask & (((mc_addr[4] >> (8 - bit_shift)) | in e1000_hash_mc_addr()
345 return hash_value; in e1000_hash_mc_addr()
360 u32 hash_value, hash_bit, hash_reg; in e1000e_update_mc_addr_list_generic() local
368 hash_value = e1000_hash_mc_addr(hw, mc_addr_list); in e1000e_update_mc_addr_list_generic()
370 hash_reg = (hash_value >> 5) & (hw->mac.mta_reg_count - 1); in e1000e_update_mc_addr_list_generic()
371 hash_bit = hash_value & 0x1F; in e1000e_update_mc_addr_list_generic()
/linux-2.6.39/drivers/net/e1000/
De1000_hw.c4353 u32 hash_value = 0; in e1000_hash_mc_addr() local
4365 hash_value = ((mc_addr[4] >> 4) | (((u16) mc_addr[5]) << 4)); in e1000_hash_mc_addr()
4369 hash_value = ((mc_addr[4] >> 3) | (((u16) mc_addr[5]) << 5)); in e1000_hash_mc_addr()
4373 hash_value = ((mc_addr[4] >> 2) | (((u16) mc_addr[5]) << 6)); in e1000_hash_mc_addr()
4377 hash_value = ((mc_addr[4]) | (((u16) mc_addr[5]) << 8)); in e1000_hash_mc_addr()
4381 hash_value &= 0xFFF; in e1000_hash_mc_addr()
4382 return hash_value; in e1000_hash_mc_addr()
De1000_main.c2191 u32 hash_value; in e1000_set_rx_mode() local
2251 hash_value = e1000_hash_mc_addr(hw, ha->addr); in e1000_set_rx_mode()
2252 hash_reg = (hash_value >> 5) & 0x7F; in e1000_set_rx_mode()
2253 hash_bit = hash_value & 0x1F; in e1000_set_rx_mode()
De1000_hw.h380 void e1000_mta_set(struct e1000_hw *hw, u32 hash_value);