summaryrefslogtreecommitdiff
path: root/usr/src/uts/common/io
diff options
context:
space:
mode:
Diffstat (limited to 'usr/src/uts/common/io')
-rw-r--r--usr/src/uts/common/io/1394/targets/av1394/av1394_isoch_chan.c13
-rw-r--r--usr/src/uts/common/io/1394/targets/dcam1394/dcam.c4
-rw-r--r--usr/src/uts/common/io/aac/aac.c3
-rw-r--r--usr/src/uts/common/io/bnxe/577xx/hsi/hw/include/clc.h4
-rw-r--r--usr/src/uts/common/io/cryptmod.c4
-rw-r--r--usr/src/uts/common/io/dld/dld_proto.c4
-rw-r--r--usr/src/uts/common/io/fd.c5
-rw-r--r--usr/src/uts/common/io/fibre-channel/fca/oce/oce_gld.c6
-rw-r--r--usr/src/uts/common/io/fibre-channel/fca/oce/oce_mbx.c5
-rw-r--r--usr/src/uts/common/io/fibre-channel/fca/qlge/qlge.c6
-rw-r--r--usr/src/uts/common/io/ib/clients/rds/rdsddi.c6
-rw-r--r--usr/src/uts/common/io/ib/ibnex/ibnex.c6
-rw-r--r--usr/src/uts/common/io/iwp/iwp.c34
-rw-r--r--usr/src/uts/common/io/nge/nge_chip.c40
-rw-r--r--usr/src/uts/common/io/ntxn/unm_gem.c7
-rw-r--r--usr/src/uts/common/io/ntxn/unm_nic_hw.c10
-rw-r--r--usr/src/uts/common/io/ntxn/unm_nic_init.c104
-rw-r--r--usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas.c4
-rw-r--r--usr/src/uts/common/io/skd/skd.c5
-rw-r--r--usr/src/uts/common/io/tl.c4
-rw-r--r--usr/src/uts/common/io/urtw/urtw.c6
-rw-r--r--usr/src/uts/common/io/usb/clients/hidparser/hidparser.c13
-rw-r--r--usr/src/uts/common/io/usb/clients/usbinput/usbwcm/usbwcm.c6
-rw-r--r--usr/src/uts/common/io/usb/clients/video/usbvc/usbvc.c7
-rw-r--r--usr/src/uts/common/io/usb/hcd/ehci/ehci_util.c2
-rw-r--r--usr/src/uts/common/io/usb/hcd/openhci/ohci_polled.c4
-rw-r--r--usr/src/uts/common/io/usb/usba/hubdi.c4
-rw-r--r--usr/src/uts/common/io/vr/vr.c10
28 files changed, 197 insertions, 129 deletions
diff --git a/usr/src/uts/common/io/1394/targets/av1394/av1394_isoch_chan.c b/usr/src/uts/common/io/1394/targets/av1394/av1394_isoch_chan.c
index 7301983986..e2a85f6c3a 100644
--- a/usr/src/uts/common/io/1394/targets/av1394/av1394_isoch_chan.c
+++ b/usr/src/uts/common/io/1394/targets/av1394/av1394_isoch_chan.c
@@ -24,6 +24,10 @@
*/
/*
+ * Copyright (c) 2018, Joyent, Inc.
+ */
+
+/*
* routines common to isoch receive and isoch transmit
*/
#include <sys/stat.h>
@@ -614,10 +618,11 @@ av1394_ic_dma_sync_frames(av1394_ic_t *icp, int idx, int cnt,
nsegs = (cnt / fps) + 1;
- seg = idx / fps;
- for (;;) {
- (void) ddi_dma_sync(pool->ip_seg[seg].is_dma_hdl, 0,
- icp->ic_framesz, type);
+ seg = idx / fps;
+
+ for (;;) {
+ (void) ddi_dma_sync(pool->ip_seg[seg].is_dma_hdl, 0,
+ icp->ic_framesz, type);
--nsegs;
if (nsegs == 0)
diff --git a/usr/src/uts/common/io/1394/targets/dcam1394/dcam.c b/usr/src/uts/common/io/1394/targets/dcam1394/dcam.c
index e1acea0878..c300e987d8 100644
--- a/usr/src/uts/common/io/1394/targets/dcam1394/dcam.c
+++ b/usr/src/uts/common/io/1394/targets/dcam1394/dcam.c
@@ -21,7 +21,7 @@
/*
* Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
- * Copyright 2017 Joyent, Inc.
+ * Copyright (c) 2018, Joyent, Inc.
*/
@@ -193,7 +193,7 @@ _fini(void)
}
#ifndef NPROBE
- (void) tnf_mod_unload(&modlinkage);
+ (void) tnf_mod_unload(&modlinkage);
#endif /* ! NPROBE */
ddi_soft_state_fini(&dcam_state_p);
diff --git a/usr/src/uts/common/io/aac/aac.c b/usr/src/uts/common/io/aac/aac.c
index c0d3f5c89d..fd302ad599 100644
--- a/usr/src/uts/common/io/aac/aac.c
+++ b/usr/src/uts/common/io/aac/aac.c
@@ -3,6 +3,7 @@
*/
/*
+ * Copyright (c) 2018, Joyent, Inc.
* Copyright 2005-08 Adaptec, Inc.
* Copyright (c) 2005-08 Adaptec Inc., Achim Leubner
* Copyright (c) 2000 Michael Smith
@@ -7312,7 +7313,7 @@ aac_config_tgt(struct aac_softstate *softs, int tgt)
if (bp == NULL) {
if ((bp = scsi_alloc_consistent_buf(&ap, NULL,
buf_len, B_READ, NULL_FUNC, NULL)) == NULL)
- return (AACERR);
+ return (AACERR);
}
if ((pkt = scsi_init_pkt(&ap, NULL, bp, CDB_GROUP5,
sizeof (struct scsi_arq_status), 0, PKT_CONSISTENT,
diff --git a/usr/src/uts/common/io/bnxe/577xx/hsi/hw/include/clc.h b/usr/src/uts/common/io/bnxe/577xx/hsi/hw/include/clc.h
index 47d383a64c..d4faa2dca1 100644
--- a/usr/src/uts/common/io/bnxe/577xx/hsi/hw/include/clc.h
+++ b/usr/src/uts/common/io/bnxe/577xx/hsi/hw/include/clc.h
@@ -82,10 +82,6 @@ extern void elink_cb_notify_link_changed(struct elink_dev *cb);
#define ELINK_EVENT_ID_SFP_UNQUALIFIED_MODULE 1
#define ELINK_EVENT_ID_SFP_POWER_FAULT 2
-#ifdef ELINK_AUX_POWER
-#define elink_cb_event_log(cb, level, ...)
-#define elink_cb_get_friendly_name(cb) ''
-#endif /*ELINK_AUX_POWER */
#ifndef ARRAY_SIZE
#define ARRAY_SIZE(x) (sizeof(x)/sizeof(x[0]))
#endif
diff --git a/usr/src/uts/common/io/cryptmod.c b/usr/src/uts/common/io/cryptmod.c
index 7d7626e2ef..e2315e8e9e 100644
--- a/usr/src/uts/common/io/cryptmod.c
+++ b/usr/src/uts/common/io/cryptmod.c
@@ -2,6 +2,8 @@
* Copyright 2010 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*
+ * Copyright (c) 2018, Joyent, Inc.
+ *
* STREAMS Crypto Module
*
* This module is used to facilitate Kerberos encryption
@@ -3003,7 +3005,7 @@ encrypt_block(queue_t *q, struct tmodinfo *tmi, mblk_t *mp, size_t plainlen)
if (cbp == NULL) {
cmn_err(CE_WARN,
"allocb (%d bytes) failed", sz);
- return (NULL);
+ return (NULL);
}
cbp->b_cont = mp->b_cont;
diff --git a/usr/src/uts/common/io/dld/dld_proto.c b/usr/src/uts/common/io/dld/dld_proto.c
index b09d4db0f5..238dd9bb22 100644
--- a/usr/src/uts/common/io/dld/dld_proto.c
+++ b/usr/src/uts/common/io/dld/dld_proto.c
@@ -21,7 +21,7 @@
/*
* Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
* Copyright 2012, Nexenta Systems, Inc. All rights reserved.
- * Copyright 2018 Joyent, Inc.
+ * Copyright (c) 2018, Joyent, Inc.
*/
/*
@@ -844,7 +844,7 @@ proto_disabmulti_req(dld_str_t *dsp, mblk_t *mp)
mac_perim_exit(mph);
if (err != 0) {
- switch (err) {
+ switch (err) {
case EINVAL:
dl_err = DL_BADADDR;
err = 0;
diff --git a/usr/src/uts/common/io/fd.c b/usr/src/uts/common/io/fd.c
index fadd776414..d591e04331 100644
--- a/usr/src/uts/common/io/fd.c
+++ b/usr/src/uts/common/io/fd.c
@@ -23,6 +23,9 @@
* Use is subject to license terms.
*/
+/*
+ * Copyright (c) 2018, Joyent, Inc.
+ */
/*
* Floppy Disk driver
@@ -1769,7 +1772,7 @@ get_geom:
if (rval != 0)
break;
- if (fc.fdc_cmd == FDCMD_READ || fc.fdc_cmd == FDCMD_WRITE) {
+ if (fc.fdc_cmd == FDCMD_READ || fc.fdc_cmd == FDCMD_WRITE) {
auto struct iovec aiov;
auto struct uio auio;
struct uio *uio = &auio;
diff --git a/usr/src/uts/common/io/fibre-channel/fca/oce/oce_gld.c b/usr/src/uts/common/io/fibre-channel/fca/oce/oce_gld.c
index 19d210d4d1..846f8896d9 100644
--- a/usr/src/uts/common/io/fibre-channel/fca/oce/oce_gld.c
+++ b/usr/src/uts/common/io/fibre-channel/fca/oce/oce_gld.c
@@ -22,6 +22,10 @@
/* Copyright © 2003-2011 Emulex. All rights reserved. */
/*
+ * Copyright (c) 2018, Joyent, Inc.
+ */
+
+/*
* Source file containing the implementation of the driver entry points
* and related helper functions
*/
@@ -210,7 +214,7 @@ oce_m_multicast(void *arg, boolean_t add, const uint8_t *mca)
ret = oce_set_multicast_table(dev, dev->if_id,
&mca_hw_list[0], new_mcnt, B_FALSE);
}
- if (ret != 0) {
+ if (ret != 0) {
oce_log(dev, CE_WARN, MOD_CONFIG,
"mcast %s fails", add ? "ADD" : "DEL");
DEV_UNLOCK(dev);
diff --git a/usr/src/uts/common/io/fibre-channel/fca/oce/oce_mbx.c b/usr/src/uts/common/io/fibre-channel/fca/oce/oce_mbx.c
index 96f7b19e02..3de0aa1116 100644
--- a/usr/src/uts/common/io/fibre-channel/fca/oce/oce_mbx.c
+++ b/usr/src/uts/common/io/fibre-channel/fca/oce/oce_mbx.c
@@ -21,6 +21,9 @@
/* Copyright © 2003-2011 Emulex. All rights reserved. */
+/*
+ * Copyright (c) 2018, Joyent, Inc.
+ */
/*
* Source file containing the implementation of MBOX
@@ -156,7 +159,7 @@ oce_mbox_wait(struct oce_dev *dev, uint32_t tmo_sec)
if (mbox_db.bits.ready) {
return (0);
}
- drv_usecwait(5);
+ drv_usecwait(5);
}
return (ETIMEDOUT);
diff --git a/usr/src/uts/common/io/fibre-channel/fca/qlge/qlge.c b/usr/src/uts/common/io/fibre-channel/fca/qlge/qlge.c
index e624ea7cf1..213dbc51b0 100644
--- a/usr/src/uts/common/io/fibre-channel/fca/qlge/qlge.c
+++ b/usr/src/uts/common/io/fibre-channel/fca/qlge/qlge.c
@@ -23,6 +23,10 @@
* Copyright 2010 QLogic Corporation. All rights reserved.
*/
+/*
+ * Copyright (c) 2018, Joyent, Inc.
+ */
+
#include <qlge.h>
#include <sys/atomic.h>
#include <sys/strsubr.h>
@@ -2400,7 +2404,7 @@ ql_set_rx_cksum(mblk_t *mp, struct ib_mac_iocb_rsp *net_rsp)
/* Not TCP or UDP packet? nothing more to do */
if (((net_rsp->flags2 & IB_MAC_IOCB_RSP_T) == 0) &&
((net_rsp->flags2 & IB_MAC_IOCB_RSP_U) == 0))
- return;
+ return;
/* No CKO support for IPv6 */
if ((net_rsp->flags3 & IB_MAC_IOCB_RSP_V6) != 0)
diff --git a/usr/src/uts/common/io/ib/clients/rds/rdsddi.c b/usr/src/uts/common/io/ib/clients/rds/rdsddi.c
index 8a78af2b51..35e7a55154 100644
--- a/usr/src/uts/common/io/ib/clients/rds/rdsddi.c
+++ b/usr/src/uts/common/io/ib/clients/rds/rdsddi.c
@@ -23,6 +23,10 @@
* Use is subject to license terms.
*/
+/*
+ * Copyright (c) 2018, Joyent, Inc.
+ */
+
#include <sys/types.h>
#include <sys/conf.h>
#include <sys/modctl.h>
@@ -839,7 +843,7 @@ rds_wrw(queue_t *q, struiod_t *dp)
/* Detect valid T_UNITDATA_REQ here */
if (((union T_primitives *)(uintptr_t)rptr)->type
== T_UNITDATA_REQ)
- break;
+ break;
}
/* FALLTHRU */
default:
diff --git a/usr/src/uts/common/io/ib/ibnex/ibnex.c b/usr/src/uts/common/io/ib/ibnex/ibnex.c
index 46defb6cbc..d25c6ddf05 100644
--- a/usr/src/uts/common/io/ib/ibnex/ibnex.c
+++ b/usr/src/uts/common/io/ib/ibnex/ibnex.c
@@ -23,6 +23,10 @@
*/
/*
+ * Copyright (c) 2018, Joyent, Inc.
+ */
+
+/*
* The InfiniBand Nexus driver (IB nexus) is a bus nexus driver for IB bus.
* It supports Port nodes, Virtual Physical Point of Attachment nodes (VPPA)
* for HCAs registered with IBTL and IOC nodes for all the IOCs present in
@@ -2863,7 +2867,7 @@ ibnex_comm_svc_init(char *property, ibnex_node_type_t type)
IBTF_DPRINTF_L2("ibnex", "\tcomm_svc_init : "
"Service name %s invalid : Not unique",
servicep[count]);
- continue;
+ continue;
}
valid[count] = 1;
diff --git a/usr/src/uts/common/io/iwp/iwp.c b/usr/src/uts/common/io/iwp/iwp.c
index eec2b84664..69e2c928df 100644
--- a/usr/src/uts/common/io/iwp/iwp.c
+++ b/usr/src/uts/common/io/iwp/iwp.c
@@ -1,4 +1,8 @@
/*
+ * Copyright (c) 2018, Joyent, Inc.
+ */
+
+/*
* Copyright 2010 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
@@ -3832,21 +3836,21 @@ iwp_hw_set_before_auth(iwp_sc_t *sc)
IEEE80211_ADDR_COPY(sc->sc_config.bssid, in->in_bssid);
sc->sc_config.chan = LE_16(ieee80211_chan2ieee(ic, in->in_chan));
- sc->sc_config.ofdm_ht_triple_stream_basic_rates = 0;
- sc->sc_config.ofdm_ht_dual_stream_basic_rates = 0;
- sc->sc_config.ofdm_ht_single_stream_basic_rates = 0;
-
- if (IEEE80211_MODE_11B == ic->ic_curmode) {
- sc->sc_config.cck_basic_rates = 0x03;
- sc->sc_config.ofdm_basic_rates = 0;
- } else if ((in->in_chan != IEEE80211_CHAN_ANYC) &&
- (IEEE80211_IS_CHAN_5GHZ(in->in_chan))) {
- sc->sc_config.cck_basic_rates = 0;
- sc->sc_config.ofdm_basic_rates = 0x15;
- } else { /* assume 802.11b/g */
- sc->sc_config.cck_basic_rates = 0x0f;
- sc->sc_config.ofdm_basic_rates = 0xff;
- }
+ sc->sc_config.ofdm_ht_triple_stream_basic_rates = 0;
+ sc->sc_config.ofdm_ht_dual_stream_basic_rates = 0;
+ sc->sc_config.ofdm_ht_single_stream_basic_rates = 0;
+
+ if (IEEE80211_MODE_11B == ic->ic_curmode) {
+ sc->sc_config.cck_basic_rates = 0x03;
+ sc->sc_config.ofdm_basic_rates = 0;
+ } else if ((in->in_chan != IEEE80211_CHAN_ANYC) &&
+ (IEEE80211_IS_CHAN_5GHZ(in->in_chan))) {
+ sc->sc_config.cck_basic_rates = 0;
+ sc->sc_config.ofdm_basic_rates = 0x15;
+ } else { /* assume 802.11b/g */
+ sc->sc_config.cck_basic_rates = 0x0f;
+ sc->sc_config.ofdm_basic_rates = 0xff;
+ }
sc->sc_config.flags &= ~LE_32(RXON_FLG_SHORT_PREAMBLE_MSK |
RXON_FLG_SHORT_SLOT_MSK);
diff --git a/usr/src/uts/common/io/nge/nge_chip.c b/usr/src/uts/common/io/nge/nge_chip.c
index 04a5858840..0bef9ff505 100644
--- a/usr/src/uts/common/io/nge/nge_chip.c
+++ b/usr/src/uts/common/io/nge/nge_chip.c
@@ -24,6 +24,10 @@
* Use is subject to license terms.
*/
+/*
+ * Copyright (c) 2018, Joyent, Inc.
+ */
+
#include "nge.h"
static uint32_t nge_watchdog_count = 1 << 5;
static uint32_t nge_watchdog_check = 1 << 3;
@@ -1010,25 +1014,25 @@ nge_chip_reset(nge_t *ngep)
mac = uaddr1.addr_bits.addr;
mac <<= 32;
mac |= nge_reg_get32(ngep, NGE_UNI_ADDR0);
- ngep->chipinfo.hw_mac_addr = mac;
- if (ngep->dev_spec_param.mac_addr_order) {
- for (i = 0; i < ETHERADDRL; i++) {
- ngep->chipinfo.vendor_addr.addr[i] =
- (uchar_t)mac;
- ngep->cur_uni_addr.addr[i] =
- (uchar_t)mac;
- mac >>= 8;
- }
- } else {
- for (i = ETHERADDRL; i-- != 0; ) {
- ngep->chipinfo.vendor_addr.addr[i] =
- (uchar_t)mac;
- ngep->cur_uni_addr.addr[i] =
- (uchar_t)mac;
- mac >>= 8;
- }
+ ngep->chipinfo.hw_mac_addr = mac;
+ if (ngep->dev_spec_param.mac_addr_order) {
+ for (i = 0; i < ETHERADDRL; i++) {
+ ngep->chipinfo.vendor_addr.addr[i] =
+ (uchar_t)mac;
+ ngep->cur_uni_addr.addr[i] =
+ (uchar_t)mac;
+ mac >>= 8;
+ }
+ } else {
+ for (i = ETHERADDRL; i-- != 0; ) {
+ ngep->chipinfo.vendor_addr.addr[i] =
+ (uchar_t)mac;
+ ngep->cur_uni_addr.addr[i] =
+ (uchar_t)mac;
+ mac >>= 8;
}
- ngep->chipinfo.vendor_addr.set = 1;
+ }
+ ngep->chipinfo.vendor_addr.set = 1;
}
pci_config_put8(ngep->cfg_handle, PCI_CONF_CACHE_LINESZ,
ngep->chipinfo.clsize);
diff --git a/usr/src/uts/common/io/ntxn/unm_gem.c b/usr/src/uts/common/io/ntxn/unm_gem.c
index c08f99d5ab..832a87450b 100644
--- a/usr/src/uts/common/io/ntxn/unm_gem.c
+++ b/usr/src/uts/common/io/ntxn/unm_gem.c
@@ -26,6 +26,11 @@
* Copyright 2009 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
+
+/*
+ * Copyright (c) 2018, Joyent, Inc.
+ */
+
#include <sys/types.h>
#include <sys/conf.h>
#include <sys/debug.h>
@@ -1355,7 +1360,7 @@ unmdetach(dev_info_t *dip, ddi_detach_cmd_t cmd)
unm_adapter *adapter = (unm_adapter *)ddi_get_driver_private(dip);
if (adapter == NULL)
- return (DDI_FAILURE);
+ return (DDI_FAILURE);
switch (cmd) {
case DDI_DETACH:
diff --git a/usr/src/uts/common/io/ntxn/unm_nic_hw.c b/usr/src/uts/common/io/ntxn/unm_nic_hw.c
index 7a78099ecc..c3f46d0e19 100644
--- a/usr/src/uts/common/io/ntxn/unm_nic_hw.c
+++ b/usr/src/uts/common/io/ntxn/unm_nic_hw.c
@@ -24,6 +24,10 @@
* Use is subject to license terms.
*/
+/*
+ * Copyright (c) 2018, Joyent, Inc.
+ */
+
#include <sys/types.h>
#include <sys/conf.h>
#include <sys/debug.h>
@@ -1859,10 +1863,10 @@ unm_nic_set_promisc_mode(struct unm_adapter_s *adapter)
break;
}
-if (!ret)
- adapter->promisc = 1;
+ if (!ret)
+ adapter->promisc = 1;
- return (ret);
+ return (ret);
}
int
diff --git a/usr/src/uts/common/io/ntxn/unm_nic_init.c b/usr/src/uts/common/io/ntxn/unm_nic_init.c
index ba05e099c8..0ca6b12ff4 100644
--- a/usr/src/uts/common/io/ntxn/unm_nic_init.c
+++ b/usr/src/uts/common/io/ntxn/unm_nic_init.c
@@ -24,6 +24,10 @@
* Use is subject to license terms.
*/
+/*
+ * Copyright (c) 2018, Joyent, Inc.
+ */
+
#include <sys/types.h>
#include <sys/conf.h>
#include <sys/debug.h>
@@ -67,56 +71,56 @@ static unsigned int crb_addr_xform[MAX_CRB_XFORM];
static void
crb_addr_transform_setup(void)
{
- crb_addr_transform(XDMA);
- crb_addr_transform(TIMR);
- crb_addr_transform(SRE);
- crb_addr_transform(SQN3);
- crb_addr_transform(SQN2);
- crb_addr_transform(SQN1);
- crb_addr_transform(SQN0);
- crb_addr_transform(SQS3);
- crb_addr_transform(SQS2);
- crb_addr_transform(SQS1);
- crb_addr_transform(SQS0);
- crb_addr_transform(RPMX7);
- crb_addr_transform(RPMX6);
- crb_addr_transform(RPMX5);
- crb_addr_transform(RPMX4);
- crb_addr_transform(RPMX3);
- crb_addr_transform(RPMX2);
- crb_addr_transform(RPMX1);
- crb_addr_transform(RPMX0);
- crb_addr_transform(ROMUSB);
- crb_addr_transform(SN);
- crb_addr_transform(QMN);
- crb_addr_transform(QMS);
- crb_addr_transform(PGNI);
- crb_addr_transform(PGND);
- crb_addr_transform(PGN3);
- crb_addr_transform(PGN2);
- crb_addr_transform(PGN1);
- crb_addr_transform(PGN0);
- crb_addr_transform(PGSI);
- crb_addr_transform(PGSD);
- crb_addr_transform(PGS3);
- crb_addr_transform(PGS2);
- crb_addr_transform(PGS1);
- crb_addr_transform(PGS0);
- crb_addr_transform(PS);
- crb_addr_transform(PH);
- crb_addr_transform(NIU);
- crb_addr_transform(I2Q);
- crb_addr_transform(EG);
- crb_addr_transform(MN);
- crb_addr_transform(MS);
- crb_addr_transform(CAS2);
- crb_addr_transform(CAS1);
- crb_addr_transform(CAS0);
- crb_addr_transform(CAM);
- crb_addr_transform(C2C1);
- crb_addr_transform(C2C0);
- crb_addr_transform(SMB);
- crb_addr_transform(OCM0);
+ crb_addr_transform(XDMA);
+ crb_addr_transform(TIMR);
+ crb_addr_transform(SRE);
+ crb_addr_transform(SQN3);
+ crb_addr_transform(SQN2);
+ crb_addr_transform(SQN1);
+ crb_addr_transform(SQN0);
+ crb_addr_transform(SQS3);
+ crb_addr_transform(SQS2);
+ crb_addr_transform(SQS1);
+ crb_addr_transform(SQS0);
+ crb_addr_transform(RPMX7);
+ crb_addr_transform(RPMX6);
+ crb_addr_transform(RPMX5);
+ crb_addr_transform(RPMX4);
+ crb_addr_transform(RPMX3);
+ crb_addr_transform(RPMX2);
+ crb_addr_transform(RPMX1);
+ crb_addr_transform(RPMX0);
+ crb_addr_transform(ROMUSB);
+ crb_addr_transform(SN);
+ crb_addr_transform(QMN);
+ crb_addr_transform(QMS);
+ crb_addr_transform(PGNI);
+ crb_addr_transform(PGND);
+ crb_addr_transform(PGN3);
+ crb_addr_transform(PGN2);
+ crb_addr_transform(PGN1);
+ crb_addr_transform(PGN0);
+ crb_addr_transform(PGSI);
+ crb_addr_transform(PGSD);
+ crb_addr_transform(PGS3);
+ crb_addr_transform(PGS2);
+ crb_addr_transform(PGS1);
+ crb_addr_transform(PGS0);
+ crb_addr_transform(PS);
+ crb_addr_transform(PH);
+ crb_addr_transform(NIU);
+ crb_addr_transform(I2Q);
+ crb_addr_transform(EG);
+ crb_addr_transform(MN);
+ crb_addr_transform(MS);
+ crb_addr_transform(CAS2);
+ crb_addr_transform(CAS1);
+ crb_addr_transform(CAS0);
+ crb_addr_transform(CAM);
+ crb_addr_transform(C2C1);
+ crb_addr_transform(C2C0);
+ crb_addr_transform(SMB);
+ crb_addr_transform(OCM0);
/*
* Used only in P3 just define it for P2 also.
diff --git a/usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas.c b/usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas.c
index b0d07ac1ec..dc9547a275 100644
--- a/usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas.c
+++ b/usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas.c
@@ -22,7 +22,7 @@
/*
* Copyright (c) 2009, 2010, Oracle and/or its affiliates. All rights reserved.
* Copyright 2016 Nexenta Systems, Inc. All rights reserved.
- * Copyright (c) 2017, Joyent, Inc.
+ * Copyright (c) 2018, Joyent, Inc.
* Copyright 2014 OmniTI Computer Consulting, Inc. All rights reserved.
* Copyright (c) 2014, Tegile Systems Inc. All rights reserved.
*/
@@ -11958,7 +11958,7 @@ mptsas_diag_register(mptsas_t *mpt, mptsas_fw_diag_register_t *diag_register,
mptsas_log(mpt, CE_WARN, "Check of DMA handle failed in "
"mptsas_diag_register.");
ddi_fm_service_impact(mpt->m_dip, DDI_SERVICE_UNAFFECTED);
- status = DDI_FAILURE;
+ status = DDI_FAILURE;
}
/*
diff --git a/usr/src/uts/common/io/skd/skd.c b/usr/src/uts/common/io/skd/skd.c
index e7759e74d7..78753ba00f 100644
--- a/usr/src/uts/common/io/skd/skd.c
+++ b/usr/src/uts/common/io/skd/skd.c
@@ -23,6 +23,7 @@
/*
* Copyright 2013 STEC, Inc. All rights reserved.
* Copyright 2015 Nexenta Systems, Inc. All rights reserved.
+ * Copyright (c) 2018, Joyent, Inc.
*/
#include <sys/types.h>
@@ -4775,8 +4776,8 @@ skd_attach(dev_info_t *dip, ddi_attach_cmd_t cmd)
}
progress |= SKD_REGS_MAPPED;
- skdev->iomap_iobase = skdev->iobase;
- skdev->iomap_handle = skdev->iobase_handle;
+ skdev->iomap_iobase = skdev->iobase;
+ skdev->iomap_handle = skdev->iobase_handle;
Dcmn_err(CE_NOTE, "%s: PCI iobase=%ph, iomap=%ph, regnum=%d, "
"regsize=%ld", skdev->name, (void *)skdev->iobase,
diff --git a/usr/src/uts/common/io/tl.c b/usr/src/uts/common/io/tl.c
index 8dd64a4b89..81a0cac18c 100644
--- a/usr/src/uts/common/io/tl.c
+++ b/usr/src/uts/common/io/tl.c
@@ -25,7 +25,7 @@
/*
* Copyright 2011 Nexenta Systems, Inc. All rights reserved.
* Copyright (c) 2012 by Delphix. All rights reserved.
- * Copyright (c) 2017, Joyent, Inc.
+ * Copyright (c) 2018, Joyent, Inc.
*/
/*
@@ -2985,7 +2985,7 @@ tl_conn_req(queue_t *wq, mblk_t *mp)
*/
(void) (STRLOG(TL_ID, tep->te_minor, 2, SL_TRACE,
"tl_conn_req: qlen overflow connection refused"));
- err = ECONNREFUSED;
+ err = ECONNREFUSED;
}
/*
diff --git a/usr/src/uts/common/io/urtw/urtw.c b/usr/src/uts/common/io/urtw/urtw.c
index b649ca609d..9f03555479 100644
--- a/usr/src/uts/common/io/urtw/urtw.c
+++ b/usr/src/uts/common/io/urtw/urtw.c
@@ -1,4 +1,8 @@
/*
+ * Copyright (c) 2018, Joyent, Inc.
+ */
+
+/*
* Copyright 2010 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
@@ -190,7 +194,7 @@ usb_match_device(struct urtw_type *tbl, uint32_t nentries,
uint16_t tproduct = tbl[nentries].dev.p;
if (tbl[nentries].dev.v == vendor &&
(tproduct == product || tproduct == USB_PRODUCT_ANY))
- return (&tbl[nentries]);
+ return (&tbl[nentries]);
}
return (NULL);
}
diff --git a/usr/src/uts/common/io/usb/clients/hidparser/hidparser.c b/usr/src/uts/common/io/usb/clients/hidparser/hidparser.c
index 3fb1e4ee87..a830ff1c65 100644
--- a/usr/src/uts/common/io/usb/clients/hidparser/hidparser.c
+++ b/usr/src/uts/common/io/usb/clients/hidparser/hidparser.c
@@ -23,6 +23,9 @@
* Use is subject to license terms.
*/
+/*
+ * Copyright (c) 2018, Joyent, Inc.
+ */
#include <sys/usb/usba/usbai_version.h>
#include <sys/usb/usba.h>
@@ -1642,11 +1645,11 @@ hidparser_ItemList(entity_item_t ** item_ptr, hidparser_tok_t *scan_ifp)
curr_ei->prev_coll = cache_ei;
cache_ei = curr_ei;
- USB_DPRINTF_L3(PRINT_MASK_ALL,
- hparser_log_handle,
- "Start Collection:cache_ei = 0x%p,"
- " curr_ei = 0x%p",
- (void *)cache_ei, (void *)curr_ei);
+ USB_DPRINTF_L3(PRINT_MASK_ALL,
+ hparser_log_handle,
+ "Start Collection:cache_ei = 0x%p,"
+ " curr_ei = 0x%p",
+ (void *)cache_ei, (void *)curr_ei);
if (prev_ei == NULL) {
prev_ei = curr_ei;
diff --git a/usr/src/uts/common/io/usb/clients/usbinput/usbwcm/usbwcm.c b/usr/src/uts/common/io/usb/clients/usbinput/usbwcm/usbwcm.c
index 253e4862b7..39f2bf252c 100644
--- a/usr/src/uts/common/io/usb/clients/usbinput/usbwcm/usbwcm.c
+++ b/usr/src/uts/common/io/usb/clients/usbinput/usbwcm/usbwcm.c
@@ -1,4 +1,8 @@
/*
+ * Copyright (c) 2018, Joyent, Inc.
+ */
+
+/*
* Copyright 2010 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
@@ -510,7 +514,7 @@ usbwcm_input_intuos(usbwcm_state_t *usbwcmp, mblk_t *mp)
case 0x1:
/* Outbound tracking is unreliable on the Cintiq */
if (sc->sc_type->protocol == CINTIQ)
- break;
+ break;
/* Tool motion */
/*FALLTHRU*/
diff --git a/usr/src/uts/common/io/usb/clients/video/usbvc/usbvc.c b/usr/src/uts/common/io/usb/clients/video/usbvc/usbvc.c
index c2bae40ba4..6257ec100e 100644
--- a/usr/src/uts/common/io/usb/clients/video/usbvc/usbvc.c
+++ b/usr/src/uts/common/io/usb/clients/video/usbvc/usbvc.c
@@ -22,6 +22,9 @@
* Copyright (c) 2006, 2010, Oracle and/or its affiliates. All rights reserved.
*/
+/*
+ * Copyright (c) 2018, Joyent, Inc.
+ */
/*
* USB video class driver (usbvc(7D))
@@ -1337,8 +1340,8 @@ usbvc_pwrlvl0(usbvc_state_t *usbvcp)
case USB_DEV_ONLINE:
/* Deny the powerdown request if the device is busy */
if (usbvcp->usbvc_pm->usbvc_pm_busy != 0) {
- USB_DPRINTF_L2(PRINT_MASK_PM, usbvcp->usbvc_log_handle,
- "usbvc_pwrlvl0: usbvc_pm_busy");
+ USB_DPRINTF_L2(PRINT_MASK_PM, usbvcp->usbvc_log_handle,
+ "usbvc_pwrlvl0: usbvc_pm_busy");
return (USB_FAILURE);
}
diff --git a/usr/src/uts/common/io/usb/hcd/ehci/ehci_util.c b/usr/src/uts/common/io/usb/hcd/ehci/ehci_util.c
index 7e0e658601..badf500638 100644
--- a/usr/src/uts/common/io/usb/hcd/ehci/ehci_util.c
+++ b/usr/src/uts/common/io/usb/hcd/ehci/ehci_util.c
@@ -450,7 +450,7 @@ ehci_allocate_pools(ehci_state_t *ehcip)
USB_DPRINTF_L2(PRINT_MASK_ATTA, ehcip->ehci_log_hdl,
"ehci_allocate_pools: More than 1 cookie");
- goto failure;
+ goto failure;
}
} else {
USB_DPRINTF_L4(PRINT_MASK_ATTA, ehcip->ehci_log_hdl,
diff --git a/usr/src/uts/common/io/usb/hcd/openhci/ohci_polled.c b/usr/src/uts/common/io/usb/hcd/openhci/ohci_polled.c
index 5737b9c3e1..717c9f96b1 100644
--- a/usr/src/uts/common/io/usb/hcd/openhci/ohci_polled.c
+++ b/usr/src/uts/common/io/usb/hcd/openhci/ohci_polled.c
@@ -22,6 +22,7 @@
* Copyright 2009 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
* Copyright (c) 2016 by Delphix. All rights reserved.
+ * Copyright (c) 2018, Joyent, Inc.
*/
/*
@@ -1351,7 +1352,8 @@ ohci_polled_restore_state(ohci_polled_t *ohci_polledp)
while (td) {
- next_td = ohci_td_iommu_to_cpu(ohcip, Get_TD(td->hctd_next_td));
+ next_td = ohci_td_iommu_to_cpu(ohcip,
+ Get_TD(td->hctd_next_td));
/*
* Insert valid interrupt TD back into ED's
diff --git a/usr/src/uts/common/io/usb/usba/hubdi.c b/usr/src/uts/common/io/usb/usba/hubdi.c
index 1cee13edd1..e3f3722de8 100644
--- a/usr/src/uts/common/io/usb/usba/hubdi.c
+++ b/usr/src/uts/common/io/usb/usba/hubdi.c
@@ -22,7 +22,7 @@
* Copyright (c) 1998, 2010, Oracle and/or its affiliates. All rights reserved.
* Copyright 2012 Garrett D'Amore <garrett@damore.org>. All rights reserved.
* Copyright 2014 Nexenta Systems, Inc. All rights reserved.
- * Copyright 2016 Joyent, Inc.
+ * Copyright (c) 2018, Joyent, Inc.
*/
/*
@@ -6799,7 +6799,7 @@ hubd_delete_child(hubd_t *hubd, usb_port_t port, uint_t flag, boolean_t retry)
if (hubd->h_children_dips[port] == child_dip) {
usba_device_t *ud =
hubd->h_usba_devices[port];
- hubd->h_children_dips[port] = NULL;
+ hubd->h_children_dips[port] = NULL;
if (ud) {
mutex_exit(HUBD_MUTEX(hubd));
diff --git a/usr/src/uts/common/io/vr/vr.c b/usr/src/uts/common/io/vr/vr.c
index 4447b85622..0ba847bc53 100644
--- a/usr/src/uts/common/io/vr/vr.c
+++ b/usr/src/uts/common/io/vr/vr.c
@@ -24,6 +24,10 @@
* Use is subject to license terms.
*/
+/*
+ * Copyright (c) 2018, Joyent, Inc.
+ */
+
#include <sys/types.h>
#include <sys/stream.h>
#include <sys/strsun.h>
@@ -1700,7 +1704,7 @@ vr_periodic(void *p)
vrp->reset = 1;
vr_log(vrp, CE_WARN,
"TX stalled, resetting MAC");
- vrp->stats.txstalls++;
+ vrp->stats.txstalls++;
} else {
/*
* Increase until we find that we've
@@ -3390,9 +3394,9 @@ vr_mac_propinfo(void *arg, const char *pr_name, mac_prop_id_t pr_num,
default:
return;
- }
+ }
- mac_prop_info_set_default_uint8(prh, val);
+ mac_prop_info_set_default_uint8(prh, val);
}
/*