.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
---|
1 | 2 | /* |
---|
2 | 3 | * Copyright (C) 2003 - 2009 NetXen, Inc. |
---|
3 | 4 | * Copyright (C) 2009 - QLogic Corporation. |
---|
4 | 5 | * All rights reserved. |
---|
5 | | - * |
---|
6 | | - * This program is free software; you can redistribute it and/or |
---|
7 | | - * modify it under the terms of the GNU General Public License |
---|
8 | | - * as published by the Free Software Foundation; either version 2 |
---|
9 | | - * of the License, or (at your option) any later version. |
---|
10 | | - * |
---|
11 | | - * This program is distributed in the hope that it will be useful, but |
---|
12 | | - * WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
13 | | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
---|
14 | | - * GNU General Public License for more details. |
---|
15 | | - * |
---|
16 | | - * You should have received a copy of the GNU General Public License |
---|
17 | | - * along with this program; if not, see <http://www.gnu.org/licenses/>. |
---|
18 | | - * |
---|
19 | | - * The full GNU General Public License is included in this distribution |
---|
20 | | - * in the file called "COPYING". |
---|
21 | | - * |
---|
22 | 6 | */ |
---|
23 | 7 | |
---|
24 | 8 | #include "netxen_nic_hw.h" |
---|
.. | .. |
---|
458 | 442 | goto out_free_rq; |
---|
459 | 443 | } |
---|
460 | 444 | |
---|
461 | | - memset(rq_addr, 0, rq_size); |
---|
462 | 445 | prq = rq_addr; |
---|
463 | 446 | |
---|
464 | | - memset(rsp_addr, 0, rsp_size); |
---|
465 | 447 | prsp = rsp_addr; |
---|
466 | 448 | |
---|
467 | 449 | prq->host_rsp_dma_addr = cpu_to_le64(rsp_phys_addr); |
---|
.. | .. |
---|
771 | 753 | return -ENOMEM; |
---|
772 | 754 | } |
---|
773 | 755 | |
---|
774 | | - memset(addr, 0, sizeof(struct netxen_ring_ctx)); |
---|
775 | 756 | recv_ctx->hwctx = addr; |
---|
776 | 757 | recv_ctx->hwctx->ctx_id = cpu_to_le32(port); |
---|
777 | 758 | recv_ctx->hwctx->cmd_consumer_offset = |
---|