Searched refs:f_index (Results 1 - 1 of 1) sorted by relevance

/linux-4.1.27/drivers/net/ethernet/broadcom/genet/
H A Dbcmgenet.c2455 u32 f_index) bcmgenet_hfb_is_filter_enabled()
2460 offset = HFB_FLT_ENABLE_V3PLUS + (f_index < 32) * sizeof(u32); bcmgenet_hfb_is_filter_enabled()
2462 return !!(reg & (1 << (f_index % 32))); bcmgenet_hfb_is_filter_enabled()
2465 static void bcmgenet_hfb_enable_filter(struct bcmgenet_priv *priv, u32 f_index) bcmgenet_hfb_enable_filter() argument
2470 offset = HFB_FLT_ENABLE_V3PLUS + (f_index < 32) * sizeof(u32); bcmgenet_hfb_enable_filter()
2472 reg |= (1 << (f_index % 32)); bcmgenet_hfb_enable_filter()
2477 u32 f_index, u32 rx_queue) bcmgenet_hfb_set_filter_rx_queue_mapping()
2482 offset = f_index / 8; bcmgenet_hfb_set_filter_rx_queue_mapping()
2484 reg &= ~(0xF << (4 * (f_index % 8))); bcmgenet_hfb_set_filter_rx_queue_mapping()
2485 reg |= ((rx_queue & 0xF) << (4 * (f_index % 8))); bcmgenet_hfb_set_filter_rx_queue_mapping()
2490 u32 f_index, u32 f_length) bcmgenet_hfb_set_filter_length()
2496 ((priv->hw_params->hfb_filter_cnt - 1 - f_index) / 4) * bcmgenet_hfb_set_filter_length()
2499 reg &= ~(0xFF << (8 * (f_index % 4))); bcmgenet_hfb_set_filter_length()
2500 reg |= ((f_length & 0xFF) << (8 * (f_index % 4))); bcmgenet_hfb_set_filter_length()
2506 u32 f_index; bcmgenet_hfb_find_unused_filter() local
2508 for (f_index = 0; f_index < priv->hw_params->hfb_filter_cnt; f_index++) bcmgenet_hfb_find_unused_filter()
2509 if (!bcmgenet_hfb_is_filter_enabled(priv, f_index)) bcmgenet_hfb_find_unused_filter()
2510 return f_index; bcmgenet_hfb_find_unused_filter()
2553 int f_index; bcmgenet_hfb_add_filter() local
2556 f_index = bcmgenet_hfb_find_unused_filter(priv); bcmgenet_hfb_add_filter()
2557 if (f_index < 0) bcmgenet_hfb_add_filter()
2565 (f_index * priv->hw_params->hfb_filter_size + i) * bcmgenet_hfb_add_filter()
2568 bcmgenet_hfb_set_filter_length(priv, f_index, 2 * f_length); bcmgenet_hfb_add_filter()
2569 bcmgenet_hfb_set_filter_rx_queue_mapping(priv, f_index, rx_queue); bcmgenet_hfb_add_filter()
2570 bcmgenet_hfb_enable_filter(priv, f_index); bcmgenet_hfb_add_filter()
2454 bcmgenet_hfb_is_filter_enabled(struct bcmgenet_priv *priv, u32 f_index) bcmgenet_hfb_is_filter_enabled() argument
2476 bcmgenet_hfb_set_filter_rx_queue_mapping(struct bcmgenet_priv *priv, u32 f_index, u32 rx_queue) bcmgenet_hfb_set_filter_rx_queue_mapping() argument
2489 bcmgenet_hfb_set_filter_length(struct bcmgenet_priv *priv, u32 f_index, u32 f_length) bcmgenet_hfb_set_filter_length() argument

Completed in 61 milliseconds