···390390 switch (size) {391391 case sizeof(u8):392392 return word & 0xff;393393- case sizeof(uint16):393393+ case sizeof(u16):394394 return word & 0xffff;395395 case sizeof(uint32):396396 return word;
+1-1
drivers/staging/brcm80211/brcmfmac/bcmsdh_linux.c
···8181/**8282 * Checks to see if vendor and device IDs match a supported SDIO Host Controller.8383 */8484-bool bcmsdh_chipmatch(uint16 vendor, uint16 device)8484+bool bcmsdh_chipmatch(u16 vendor, u16 device)8585{8686 /* Add other vendors and devices as required */8787
···9292 typedef struct pktq_prec {9393 void *head; /* first packet to dequeue */9494 void *tail; /* last packet to dequeue */9595- uint16 len; /* number of queued packets */9696- uint16 max; /* maximum number of queued packets */9595+ u16 len; /* number of queued packets */9696+ u16 max; /* maximum number of queued packets */9797 } pktq_prec_t;98989999/* multi-priority pkt queue */100100 struct pktq {101101- uint16 num_prec; /* number of precedences in use */102102- uint16 hi_prec; /* rapid dequeue hint (>= highest non-empty prec) */103103- uint16 max; /* total max packets */104104- uint16 len; /* total number of packets */101101+ u16 num_prec; /* number of precedences in use */102102+ u16 hi_prec; /* rapid dequeue hint (>= highest non-empty prec) */103103+ u16 max; /* total max packets */104104+ u16 len; /* total number of packets */105105 /* q array must be last since # of elements can be either PKTQ_MAX_PREC or 1 */106106 struct pktq_prec q[PKTQ_MAX_PREC];107107 };108108109109/* simple, non-priority pkt queue */110110 struct spktq {111111- uint16 num_prec; /* number of precedences in use (always 1) */112112- uint16 hi_prec; /* rapid dequeue hint (>= highest non-empty prec) */113113- uint16 max; /* total max packets */114114- uint16 len; /* total number of packets */111111+ u16 num_prec; /* number of precedences in use (always 1) */112112+ u16 hi_prec; /* rapid dequeue hint (>= highest non-empty prec) */113113+ u16 max; /* total max packets */114114+ u16 len; /* total number of packets */115115 /* q array must be last since # of elements can be either PKTQ_MAX_PREC or 1 */116116 struct pktq_prec q[1];117117 };···273273/* iovar structure */274274 typedef struct bcm_iovar {275275 const char *name; /* name for lookup and display */276276- uint16 varid; /* id for switch */277277- uint16 flags; /* driver-specific flag bits */278278- uint16 type; /* base type of argument */279279- uint16 minlen; /* min length for buffer vars */276276+ u16 varid; /* id for switch */277277+ u16 flags; /* driver-specific flag bits */278278+ u16 type; /* base type of argument */279279+ u16 minlen; /* min length for buffer vars */280280 } bcm_iovar_t;281281282282/* varid definitions are per-driver, may use these get/set bits */···325325 "s8", \326326 "u8", \327327 "int16", \328328- "uint16", \328328+ "u16", \329329 "int32", \330330 "uint32", \331331 "buffer", \···569569/* externs */570570/* crc */571571 extern u8 BCMROMFN(hndcrc8) (u8 *p, uint nbytes, u8 crc);572572- extern uint16 BCMROMFN(hndcrc16) (u8 *p, uint nbytes, uint16 crc);572572+ extern u16 BCMROMFN(hndcrc16) (u8 *p, uint nbytes, u16 crc);573573/* format/print */574574#if defined(BCMDBG)575575 extern int bcm_format_flags(const bcm_bit_desc_t *bd, uint32 flags,···612612613613#ifdef BRCM_FULLMAC614614/* power conversion */615615- extern uint16 BCMROMFN(bcm_qdbm_to_mw) (u8 qdbm);616616- extern u8 BCMROMFN(bcm_mw_to_qdbm) (uint16 mw);615615+ extern u16 BCMROMFN(bcm_qdbm_to_mw) (u8 qdbm);616616+ extern u8 BCMROMFN(bcm_mw_to_qdbm) (u16 mw);617617#endif618618619619/* generic datastruct to help dump routines */
+1-1
drivers/staging/brcm80211/include/bcmwifi.h
···1818#define _bcmwifi_h_19192020/* A chanspec holds the channel number, band, bandwidth and control sideband */2121-typedef uint16 chanspec_t;2121+typedef u16 chanspec_t;22222323/* channel defines */2424#define CH_UPPER_SB 0x01
···2828typedef BWL_PRE_PACKED_STRUCT struct msgtrace_hdr {2929 u8 version;3030 u8 spare;3131- uint16 len; /* Len of the trace */3131+ u16 len; /* Len of the trace */3232 uint32 seqnum; /* Sequence number of message. Useful3333 * if the messsage has been lost3434 * because of DMA error or a bus reset···5555extern bool msgtrace_hbus_trace;56565757typedef void (*msgtrace_func_send_t) (void *hdl1, void *hdl2, u8 *hdr,5858- uint16 hdrlen, u8 *buf,5959- uint16 buflen);5858+ u16 hdrlen, u8 *buf,5959+ u16 buflen);60606161extern void msgtrace_sent(void);6262extern void msgtrace_put(char *buf, int count);
+1-1
drivers/staging/brcm80211/include/pci_core.h
···5050 uint32 sbtopci2; /* Sonics to PCI translation 2 */5151 uint32 PAD[189];5252 uint32 pcicfg[4][64]; /* 0x400 - 0x7FF, PCI Cfg Space (>=rev8) */5353- uint16 sprom[36]; /* SPROM shadow Area */5353+ u16 sprom[36]; /* SPROM shadow Area */5454 uint32 PAD[46];5555} sbpciregs_t;5656
···25252626/* 2byte-wide pio register set per channel(xmt or rcv) */2727typedef volatile struct {2828- uint16 fifocontrol;2929- uint16 fifodata;3030- uint16 fifofree; /* only valid in xmt channel, not in rcv channel */3131- uint16 PAD;2828+ u16 fifocontrol;2929+ u16 fifodata;3030+ u16 fifofree; /* only valid in xmt channel, not in rcv channel */3131+ u16 PAD;3232} pio2regs_t;33333434/* a pair of pio channels(tx and rx) */
···765765 * a warning that this function is defined but not used if we declare766766 * it as static.767767 */768768-static wl_info_t *wl_attach(uint16 vendor, uint16 device, unsigned long regs,768768+static wl_info_t *wl_attach(u16 vendor, u16 device, unsigned long regs,769769 uint bustype, void *btparam, uint irq)770770{771771 wl_info_t *wl;
···7878 int16 openshared; /* try Open auth first, then Shared Key */7979 bool wsec_restrict; /* drop unencrypted packets if wsec is enabled */8080 bool eap_restrict; /* restrict data until 802.1X auth succeeds */8181- uint16 WPA_auth; /* WPA: authenticated key management */8181+ u16 WPA_auth; /* WPA: authenticated key management */8282 bool wpa2_preauth; /* default is TRUE, wpa_cap sets value */8383 bool wsec_portopen; /* indicates keys are plumbed */8484 wsec_iv_t wpa_none_txiv; /* global txiv for WPA_NONE, tkip and aes */···94949595 struct ether_addr BSSID; /* BSSID (associated) */9696 struct ether_addr cur_etheraddr; /* h/w address */9797- uint16 bcmc_fid; /* the last BCMC FID queued to TX_BCMC_FIFO */9898- uint16 bcmc_fid_shm; /* the last BCMC FID written to shared mem */9797+ u16 bcmc_fid; /* the last BCMC FID queued to TX_BCMC_FIFO */9898+ u16 bcmc_fid_shm; /* the last BCMC FID written to shared mem */9999100100 uint32 flags; /* WLC_BSSCFG flags; see below */101101···125125 wsec_key_t *rcmta;126126127127 /* 'unique' ID of this bsscfg, assigned at bsscfg allocation */128128- uint16 ID;128128+ u16 ID;129129130130 uint txrspecidx; /* index into tx rate circular buffer */131131 ratespec_t txrspec[NTXRATE][2]; /* circular buffer of prev MPDUs tx rates */
···3838 u8 mpdu_density; /* mpdu density */3939 u8 max_pdu; /* max pdus allowed in ampdu */4040 u8 release; /* # of mpdus released at a time */4141- uint16 min_len; /* min mpdu len to support the density */4141+ u16 min_len; /* min mpdu len to support the density */4242 uint32 max_rxlen; /* max ampdu rcv length; 8k, 16k, 32k, 64k */4343 struct pktq txq; /* sdu transmit queue pending aggregation */4444···6262 void *fragbuf[NUMPRIO]; /* defragmentation buffer per prio */6363 uint fragresid[NUMPRIO]; /* #bytes unused in frag buffer per prio */64646565- uint16 seqctl[NUMPRIO]; /* seqctl of last received frame (for dups) */6666- uint16 seqctl_nonqos; /* seqctl of last received frame (for dups) for6565+ u16 seqctl[NUMPRIO]; /* seqctl of last received frame (for dups) */6666+ u16 seqctl_nonqos; /* seqctl of last received frame (for dups) for6767 * non-QoS data and management6868 */6969- uint16 seqnum[NUMPRIO]; /* WME: driver maintained sw seqnum per priority */6969+ u16 seqnum[NUMPRIO]; /* WME: driver maintained sw seqnum per priority */70707171 scb_ampdu_t scb_ampdu; /* AMPDU state including per tid info */7272};
+11-11
drivers/staging/brcm80211/sys/wlc_stf.c
···4949static void wlc_stf_stbc_rx_ht_update(wlc_info_t *wlc, int val);50505151static void _wlc_stf_phy_txant_upd(wlc_info_t *wlc);5252-static uint16 _wlc_stf_phytxchain_sel(wlc_info_t *wlc, ratespec_t rspec);5252+static u16 _wlc_stf_phytxchain_sel(wlc_info_t *wlc, ratespec_t rspec);53535454#define NSTS_1 15555#define NSTS_2 2···108108}109109110110void111111-wlc_stf_ss_algo_channel_get(wlc_info_t *wlc, uint16 *ss_algo_channel,111111+wlc_stf_ss_algo_channel_get(wlc_info_t *wlc, u16 *ss_algo_channel,112112 chanspec_t chanspec)113113{114114 tx_power_t power;···118118 *ss_algo_channel = 0;119119120120 if (!wlc->pub->up) {121121- *ss_algo_channel = (uint16) -1;121121+ *ss_algo_channel = (u16) -1;122122 return;123123 }124124···380380 /* NOTE: opmode can only be SISO or CDD as STBC is decided on a per-packet basis */381381 if (WLC_STBC_CAP_PHY(wlc) &&382382 wlc->stf->ss_algosel_auto383383- && (wlc->stf->ss_algo_channel != (uint16) -1)) {383383+ && (wlc->stf->ss_algo_channel != (u16) -1)) {384384 ASSERT(isset(&wlc->stf->ss_algo_channel, PHY_TXC1_MODE_CDD)385385 || isset(&wlc->stf->ss_algo_channel,386386 PHY_TXC1_MODE_SISO));···422422423423 if (WLC_STBC_CAP_PHY(wlc)) {424424 wlc->stf->ss_algosel_auto = TRUE;425425- wlc->stf->ss_algo_channel = (uint16) -1; /* Init the default value */425425+ wlc->stf->ss_algo_channel = (u16) -1; /* Init the default value */426426 }427427 return 0;428428}···561561 wlc_stf_spatial_policy_set(wlc, MIN_SPATIAL_EXPANSION);562562}563563564564-static uint16 _wlc_stf_phytxchain_sel(wlc_info_t *wlc, ratespec_t rspec)564564+static u16 _wlc_stf_phytxchain_sel(wlc_info_t *wlc, ratespec_t rspec)565565{566566- uint16 phytxant = wlc->stf->phytxant;566566+ u16 phytxant = wlc->stf->phytxant;567567568568 if (RSPEC_STF(rspec) != PHY_TXC1_MODE_SISO) {569569 ASSERT(wlc->stf->txstreams > 1);···574574 return phytxant;575575}576576577577-uint16 wlc_stf_phytxchain_sel(wlc_info_t *wlc, ratespec_t rspec)577577+u16 wlc_stf_phytxchain_sel(wlc_info_t *wlc, ratespec_t rspec)578578{579579 return _wlc_stf_phytxchain_sel(wlc, rspec);580580}581581582582-uint16 wlc_stf_d11hdrs_phyctl_txant(wlc_info_t *wlc, ratespec_t rspec)582582+u16 wlc_stf_d11hdrs_phyctl_txant(wlc_info_t *wlc, ratespec_t rspec)583583{584584- uint16 phytxant = wlc->stf->phytxant;585585- uint16 mask = PHY_TXC_ANT_MASK;584584+ u16 phytxant = wlc->stf->phytxant;585585+ u16 mask = PHY_TXC_ANT_MASK;586586587587 /* for non-siso rates or default setting, use the available chains */588588 if (WLCISNPHY(wlc->band)) {