Lines Matching refs:rfs_h
77 spin_lock_init(&enic->rfs_h.lock); in enic_rfs_flw_tbl_init()
79 INIT_HLIST_HEAD(&enic->rfs_h.ht_head[i]); in enic_rfs_flw_tbl_init()
80 enic->rfs_h.max = enic->config.num_arfs; in enic_rfs_flw_tbl_init()
81 enic->rfs_h.free = enic->rfs_h.max; in enic_rfs_flw_tbl_init()
82 enic->rfs_h.toclean = 0; in enic_rfs_flw_tbl_init()
90 spin_lock_bh(&enic->rfs_h.lock); in enic_rfs_flw_tbl_free()
96 hhead = &enic->rfs_h.ht_head[i]; in enic_rfs_flw_tbl_free()
101 enic->rfs_h.free++; in enic_rfs_flw_tbl_free()
104 spin_unlock_bh(&enic->rfs_h.lock); in enic_rfs_flw_tbl_free()
116 hhead = &enic->rfs_h.ht_head[i]; in htbl_fltr_search()
128 struct enic *enic = from_timer(enic, t, rfs_h.rfs_may_expire); in enic_flow_may_expire()
132 spin_lock_bh(&enic->rfs_h.lock); in enic_flow_may_expire()
138 hhead = &enic->rfs_h.ht_head[enic->rfs_h.toclean++]; in enic_flow_may_expire()
148 enic->rfs_h.free++; in enic_flow_may_expire()
152 spin_unlock_bh(&enic->rfs_h.lock); in enic_flow_may_expire()
153 mod_timer(&enic->rfs_h.rfs_may_expire, jiffies + HZ/4); in enic_flow_may_expire()
188 spin_lock_bh(&enic->rfs_h.lock); in enic_rx_flow_steer()
189 n = htbl_key_search(&enic->rfs_h.ht_head[tbl_idx], &keys); in enic_rx_flow_steer()
207 i = --enic->rfs_h.free; in enic_rx_flow_steer()
210 enic->rfs_h.free++; in enic_rx_flow_steer()
217 enic->rfs_h.free++; in enic_rx_flow_steer()
226 enic->rfs_h.free++; in enic_rx_flow_steer()
237 head = &enic->rfs_h.ht_head[tbl_idx]; in enic_rx_flow_steer()
245 enic->rfs_h.free++; in enic_rx_flow_steer()
253 i = --enic->rfs_h.free; in enic_rx_flow_steer()
255 enic->rfs_h.free++; in enic_rx_flow_steer()
263 enic->rfs_h.free++; in enic_rx_flow_steer()
270 enic->rfs_h.free++; in enic_rx_flow_steer()
278 hlist_add_head(&n->node, &enic->rfs_h.ht_head[tbl_idx]); in enic_rx_flow_steer()
282 spin_unlock_bh(&enic->rfs_h.lock); in enic_rx_flow_steer()