ice.h (0b8515eddbd82f4aa3ad966aa4e6e708af461cc4) ice.h (c8b7abdd7d8e4696d5ffa25cebaa82931e0e39b3)
1/* SPDX-License-Identifier: GPL-2.0 */
2/* Copyright (c) 2018, Intel Corporation. */
3
4#ifndef _ICE_H_
5#define _ICE_H_
6
7#include <linux/types.h>
8#include <linux/errno.h>

--- 353 unchanged lines hidden (view full) ---

362};
363
364/**
365 * ice_irq_dynamic_ena - Enable default interrupt generation settings
366 * @hw: pointer to hw struct
367 * @vsi: pointer to vsi struct, can be NULL
368 * @q_vector: pointer to q_vector, can be NULL
369 */
1/* SPDX-License-Identifier: GPL-2.0 */
2/* Copyright (c) 2018, Intel Corporation. */
3
4#ifndef _ICE_H_
5#define _ICE_H_
6
7#include <linux/types.h>
8#include <linux/errno.h>

--- 353 unchanged lines hidden (view full) ---

362};
363
364/**
365 * ice_irq_dynamic_ena - Enable default interrupt generation settings
366 * @hw: pointer to hw struct
367 * @vsi: pointer to vsi struct, can be NULL
368 * @q_vector: pointer to q_vector, can be NULL
369 */
370static inline void ice_irq_dynamic_ena(struct ice_hw *hw, struct ice_vsi *vsi,
371 struct ice_q_vector *q_vector)
370static inline void
371ice_irq_dynamic_ena(struct ice_hw *hw, struct ice_vsi *vsi,
372 struct ice_q_vector *q_vector)
372{
373 u32 vector = (vsi && q_vector) ? vsi->hw_base_vector + q_vector->v_idx :
374 ((struct ice_pf *)hw->back)->hw_oicr_idx;
375 int itr = ICE_ITR_NONE;
376 u32 val;
377
378 /* clear the PBA here, as this function is meant to clean out all
379 * previous interrupts and enable the interrupt

--- 25 unchanged lines hidden ---
373{
374 u32 vector = (vsi && q_vector) ? vsi->hw_base_vector + q_vector->v_idx :
375 ((struct ice_pf *)hw->back)->hw_oicr_idx;
376 int itr = ICE_ITR_NONE;
377 u32 val;
378
379 /* clear the PBA here, as this function is meant to clean out all
380 * previous interrupts and enable the interrupt

--- 25 unchanged lines hidden ---