Lines Matching refs:f_index
462 static void bcmgenet_hfb_enable_filter(struct bcmgenet_priv *priv, u32 f_index) in bcmgenet_hfb_enable_filter() argument
467 offset = HFB_FLT_ENABLE_V3PLUS + (f_index < 32) * sizeof(u32); in bcmgenet_hfb_enable_filter()
469 reg |= (1 << (f_index % 32)); in bcmgenet_hfb_enable_filter()
476 static void bcmgenet_hfb_disable_filter(struct bcmgenet_priv *priv, u32 f_index) in bcmgenet_hfb_disable_filter() argument
483 if (f_index < 32) { in bcmgenet_hfb_disable_filter()
484 reg1 &= ~(1 << (f_index % 32)); in bcmgenet_hfb_disable_filter()
487 reg &= ~(1 << (f_index % 32)); in bcmgenet_hfb_disable_filter()
498 u32 f_index, u32 rx_queue) in bcmgenet_hfb_set_filter_rx_queue_mapping() argument
503 offset = f_index / 8; in bcmgenet_hfb_set_filter_rx_queue_mapping()
505 reg &= ~(0xF << (4 * (f_index % 8))); in bcmgenet_hfb_set_filter_rx_queue_mapping()
506 reg |= ((rx_queue & 0xF) << (4 * (f_index % 8))); in bcmgenet_hfb_set_filter_rx_queue_mapping()
511 u32 f_index, u32 f_length) in bcmgenet_hfb_set_filter_length() argument
517 ((priv->hw_params->hfb_filter_cnt - 1 - f_index) / 4) * in bcmgenet_hfb_set_filter_length()
520 reg &= ~(0xFF << (8 * (f_index % 4))); in bcmgenet_hfb_set_filter_length()
521 reg |= ((f_length & 0xFF) << (8 * (f_index % 4))); in bcmgenet_hfb_set_filter_length()
546 static int bcmgenet_hfb_insert_data(struct bcmgenet_priv *priv, u32 f_index, in bcmgenet_hfb_insert_data() argument
552 index = f_index * priv->hw_params->hfb_filter_size + offset / 2; in bcmgenet_hfb_insert_data()
707 static void bcmgenet_hfb_clear_filter(struct bcmgenet_priv *priv, u32 f_index) in bcmgenet_hfb_clear_filter() argument
711 base = f_index * priv->hw_params->hfb_filter_size; in bcmgenet_hfb_clear_filter()