Deleted Added
full compact
efx_ev.c (300607) efx_ev.c (300840)
1/*-
2 * Copyright (c) 2007-2016 Solarflare Communications Inc.
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are met:
7 *
8 * 1. Redistributions of source code must retain the above copyright notice,

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

24 * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
25 *
26 * The views and conclusions contained in the software and documentation are
27 * those of the authors and should not be interpreted as representing official
28 * policies, either expressed or implied, of the FreeBSD Project.
29 */
30
31#include <sys/cdefs.h>
1/*-
2 * Copyright (c) 2007-2016 Solarflare Communications Inc.
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are met:
7 *
8 * 1. Redistributions of source code must retain the above copyright notice,

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

24 * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
25 *
26 * The views and conclusions contained in the software and documentation are
27 * those of the authors and should not be interpreted as representing official
28 * policies, either expressed or implied, of the FreeBSD Project.
29 */
30
31#include <sys/cdefs.h>
32__FBSDID("$FreeBSD: head/sys/dev/sfxge/common/efx_ev.c 300607 2016-05-24 12:16:57Z arybchik $");
32__FBSDID("$FreeBSD: head/sys/dev/sfxge/common/efx_ev.c 300840 2016-05-27 11:44:40Z arybchik $");
33
34#include "efx.h"
35#include "efx_impl.h"
36#if EFSYS_OPT_MON_MCDI
37#include "mcdi_mon.h"
38#endif
39
40#if EFSYS_OPT_QSTATS

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

1259 __in uint32_t id,
1260 __in efx_evq_t *eep)
1261{
1262 efx_nic_cfg_t *encp = &(enp->en_nic_cfg);
1263 uint32_t size;
1264 efx_oword_t oword;
1265 efx_rc_t rc;
1266
33
34#include "efx.h"
35#include "efx_impl.h"
36#if EFSYS_OPT_MON_MCDI
37#include "mcdi_mon.h"
38#endif
39
40#if EFSYS_OPT_QSTATS

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

1259 __in uint32_t id,
1260 __in efx_evq_t *eep)
1261{
1262 efx_nic_cfg_t *encp = &(enp->en_nic_cfg);
1263 uint32_t size;
1264 efx_oword_t oword;
1265 efx_rc_t rc;
1266
1267 _NOTE(ARGUNUSED(esmp))
1268
1267 EFX_STATIC_ASSERT(ISP2(EFX_EVQ_MAXNEVS));
1268 EFX_STATIC_ASSERT(ISP2(EFX_EVQ_MINNEVS));
1269
1270 if (!ISP2(n) || (n < EFX_EVQ_MINNEVS) || (n > EFX_EVQ_MAXNEVS)) {
1271 rc = EINVAL;
1272 goto fail1;
1273 }
1274 if (index >= encp->enc_evq_limit) {

--- 157 unchanged lines hidden ---
1269 EFX_STATIC_ASSERT(ISP2(EFX_EVQ_MAXNEVS));
1270 EFX_STATIC_ASSERT(ISP2(EFX_EVQ_MINNEVS));
1271
1272 if (!ISP2(n) || (n < EFX_EVQ_MINNEVS) || (n > EFX_EVQ_MAXNEVS)) {
1273 rc = EINVAL;
1274 goto fail1;
1275 }
1276 if (index >= encp->enc_evq_limit) {

--- 157 unchanged lines hidden ---