Lines Matching +full:rx +full:- +full:device
1 // SPDX-License-Identifier: GPL-2.0-or-later
6 * Adaptec aacraid device driver for Linux.
8 * Copyright (c) 2000-2010 Adaptec, Inc.
9 * 2010-2015 PMC-Sierra, Inc. (aacraid@pmc-sierra.com)
10 * 2016-2017 Microsemi Corp. (aacraid@microsemi.com)
15 * Abstract: Hardware Device Interface for NEMER/ARK
27 * @dev: device to ioremap
34 iounmap(dev->regs.rx); in aac_nark_ioremap()
35 dev->regs.rx = NULL; in aac_nark_ioremap()
36 iounmap(dev->base); in aac_nark_ioremap()
37 dev->base = NULL; in aac_nark_ioremap()
40 dev->base_start = pci_resource_start(dev->pdev, 2); in aac_nark_ioremap()
41 dev->regs.rx = ioremap((u64)pci_resource_start(dev->pdev, 0) | in aac_nark_ioremap()
42 ((u64)pci_resource_start(dev->pdev, 1) << 32), in aac_nark_ioremap()
43 sizeof(struct rx_registers) - sizeof(struct rx_inbound)); in aac_nark_ioremap()
44 dev->base = NULL; in aac_nark_ioremap()
45 if (dev->regs.rx == NULL) in aac_nark_ioremap()
46 return -1; in aac_nark_ioremap()
47 dev->base = ioremap(dev->base_start, size); in aac_nark_ioremap()
48 if (dev->base == NULL) { in aac_nark_ioremap()
49 iounmap(dev->regs.rx); in aac_nark_ioremap()
50 dev->regs.rx = NULL; in aac_nark_ioremap()
51 return -1; in aac_nark_ioremap()
53 dev->IndexRegs = &((struct rx_registers __iomem *)dev->base)->IndexRegs; in aac_nark_ioremap()
58 * aac_nark_init - initialize an NEMER/ARK Split Bar card
59 * @dev: device to configure
68 dev->a_ops.adapter_ioremap = aac_nark_ioremap; in aac_nark_init()
69 dev->a_ops.adapter_comm = aac_rx_select_comm; in aac_nark_init()