Lines Matching refs:f_index

444 static void bcmgenet_hfb_enable_filter(struct bcmgenet_priv *priv, u32 f_index)  in bcmgenet_hfb_enable_filter()  argument
449 offset = HFB_FLT_ENABLE_V3PLUS + (f_index < 32) * sizeof(u32); in bcmgenet_hfb_enable_filter()
451 reg |= (1 << (f_index % 32)); in bcmgenet_hfb_enable_filter()
458 static void bcmgenet_hfb_disable_filter(struct bcmgenet_priv *priv, u32 f_index) in bcmgenet_hfb_disable_filter() argument
465 if (f_index < 32) { in bcmgenet_hfb_disable_filter()
466 reg1 &= ~(1 << (f_index % 32)); in bcmgenet_hfb_disable_filter()
469 reg &= ~(1 << (f_index % 32)); in bcmgenet_hfb_disable_filter()
480 u32 f_index, u32 rx_queue) in bcmgenet_hfb_set_filter_rx_queue_mapping() argument
485 offset = f_index / 8; in bcmgenet_hfb_set_filter_rx_queue_mapping()
487 reg &= ~(0xF << (4 * (f_index % 8))); in bcmgenet_hfb_set_filter_rx_queue_mapping()
488 reg |= ((rx_queue & 0xF) << (4 * (f_index % 8))); in bcmgenet_hfb_set_filter_rx_queue_mapping()
493 u32 f_index, u32 f_length) in bcmgenet_hfb_set_filter_length() argument
499 ((priv->hw_params->hfb_filter_cnt - 1 - f_index) / 4) * in bcmgenet_hfb_set_filter_length()
502 reg &= ~(0xFF << (8 * (f_index % 4))); in bcmgenet_hfb_set_filter_length()
503 reg |= ((f_length & 0xFF) << (8 * (f_index % 4))); in bcmgenet_hfb_set_filter_length()
528 static int bcmgenet_hfb_insert_data(struct bcmgenet_priv *priv, u32 f_index, in bcmgenet_hfb_insert_data() argument
534 index = f_index * priv->hw_params->hfb_filter_size + offset / 2; in bcmgenet_hfb_insert_data()
689 static void bcmgenet_hfb_clear_filter(struct bcmgenet_priv *priv, u32 f_index) in bcmgenet_hfb_clear_filter() argument
693 base = f_index * priv->hw_params->hfb_filter_size; in bcmgenet_hfb_clear_filter()