1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-10-19 02:29:40 +00:00

kernel: Fix several typos and minor errors

- duplicate words
- typos
- references to old versions of FreeBSD

Reviewed by:	imp, benno
This commit is contained in:
Eitan Adler 2017-12-27 03:23:21 +00:00
parent dae3a64fb9
commit caa7e52f3f
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=327231
27 changed files with 28 additions and 28 deletions

View File

@ -596,7 +596,7 @@ END(subyte)
* copyinstr(from, to, maxlen, int *lencopied) - MP SAFE
* %rdi, %rsi, %rdx, %rcx
*
* copy a string from from to to, stop when a 0 character is reached.
* copy a string from 'from' to 'to', stop when a 0 character is reached.
* return ENAMETOOLONG if string is longer than maxlen, and
* EFAULT on protection violations. If lencopied is non-zero,
* return the actual length in *lencopied.

View File

@ -1081,7 +1081,7 @@ ath_attach(u_int16_t devid, struct ath_softc *sc)
sc->sc_txq_node_psq_maxdepth = 16;
/*
* Default the maximum queue to to 1/4'th the TX buffers, or
* Default the maximum queue to 1/4'th the TX buffers, or
* 64, whichever is smaller.
*/
sc->sc_txq_node_maxdepth = MIN(64, ath_txbuf / 4);

View File

@ -748,7 +748,7 @@ bhnd_nvstore_var_register_path(struct bhnd_nvram_store *sc,
}
/**
* Resolve the device path entry referenced referenced by @p info.
* Resolve the device path entry referenced by @p info.
*
* @param sc The NVRAM store to be updated.
* @param info Variable name information descriptor containing

View File

@ -811,7 +811,7 @@ cgem_start_locked(if_t ifp)
WR4(sc, CGEM_NET_CTRL, sc->net_ctl_shadow |
CGEM_NET_CTRL_START_TX);
/* If there is a BPF listener, bounce a copy to to him. */
/* If there is a BPF listener, bounce a copy to him. */
ETHER_BPF_MTAP(ifp, m);
}
}

View File

@ -3920,7 +3920,7 @@ tulip_txput(tulip_softc_t * const sc, struct mbuf *m)
* a bit reminiscent of going on the Ark two by two
* since each descriptor for the TULIP can describe
* two buffers. So we advance through packet filling
* each of the two entries at a time to to fill each
* each of the two entries at a time to fill each
* descriptor. Clear the first and last segment bits
* in each descriptor (actually just clear everything
* but the end-of-ring or chain bits) to make sure

View File

@ -258,7 +258,7 @@ static __inline__ void mga_g200_emit_pipe(drm_mga_private_t * dev_priv)
MGA_WR42, 0x0000ffff,
MGA_WR60, 0x0000ffff);
/* Padding required to to hardware bug.
/* Padding required due to hardware bug.
*/
DMA_BLOCK(MGA_DMAPAD, 0xffffffff,
MGA_DMAPAD, 0xffffffff,
@ -340,7 +340,7 @@ static __inline__ void mga_g400_emit_pipe(drm_mga_private_t * dev_priv)
MGA_WR52, MGA_G400_WR_MAGIC, /* tex1 width */
MGA_WR60, MGA_G400_WR_MAGIC); /* tex1 height */
/* Padding required to to hardware bug */
/* Padding required due to hardware bug */
DMA_BLOCK(MGA_DMAPAD, 0xffffffff,
MGA_DMAPAD, 0xffffffff,
MGA_DMAPAD, 0xffffffff,

View File

@ -1310,7 +1310,7 @@ static s32 e1000_check_for_copper_link_82543(struct e1000_hw *hw)
* turn it on. For compatibility with a TBI link
* partner, we will store bad packets. Some
* frames have an additional byte on the end and
* will look like CRC errors to to the hardware.
* will look like CRC errors to the hardware.
*/
if (!e1000_tbi_sbp_enabled_82543(hw)) {
e1000_set_tbi_sbp_82543(hw, TRUE);

View File

@ -899,7 +899,7 @@ SCI_STATUS scic_sds_remote_node_context_tx_suspended_state_resume_handler(
*
* @param[in] this_rnc The remote node context which is to receive the task
* request.
* @param[in] the_request The task request to be transmitted to to the remote
* @param[in] the_request The task request to be transmitted to the remote
* target device.
*
* @return SCI_STATUS

View File

@ -913,7 +913,7 @@ void scif_sas_controller_free_internal_request(
fw_controller, fw_internal_request_buffer
));
//return the memory to to pool.
//return the memory to the pool.
if( !sci_pool_full(fw_controller->internal_request_memory_pool) )
{
sci_pool_put(

View File

@ -3734,7 +3734,7 @@ struct iwm_uapsd_misbehaving_ap_notif {
* beacon filtering; beacons will not be forced to be sent to driver
* regardless of whether its temperature has been changed.
* @bf_enable_beacon_filter: 1, beacon filtering is enabled; 0, disabled.
* @bf_filter_escape_timer: Send beacons to to driver if no beacons were passed
* @bf_filter_escape_timer: Send beacons to the driver if no beacons were passed
* for a specific period of time. Units: Beacons.
* @ba_escape_timer: Fully receive and parse beacon if no beacons were passed
* for a longer period of time then this escape-timeout. Units: Beacons.

View File

@ -338,7 +338,7 @@ mvs_intr(void *data)
ic = ATA_INL(ctlr->r_mem, CHIP_MIC);
if (ctlr->msi) {
/* We have to to mask MSI during processing. */
/* We have to mask MSI during processing. */
mtx_lock(&ctlr->mtx);
ATA_OUTL(ctlr->r_mem, CHIP_MIM, 0);
ctlr->msia = 1; /* Deny MIM update during processing. */

View File

@ -1239,7 +1239,7 @@ mwl_reset_vap(struct ieee80211vap *vap, int state)
/*
* Reset the hardware w/o losing operational state.
* Used to to reset or reload hardware state for a vap.
* Used to reset or reload hardware state for a vap.
*/
static int
mwl_reset(struct ieee80211vap *vap, u_long cmd)

View File

@ -527,7 +527,7 @@ siena_nvram_partn_get_version(
: MC_CMD_NVRAM_TYPE_DYNAMIC_CFG_PORT1;
/*
* Ingore missing partitions on port 2, assuming they're due
* to to running on a single port part.
* to running on a single port part.
*/
if ((1 << dcfg_partn) & ~enp->en_u.siena.enu_partn_mask) {
if (entry->port == 2)

View File

@ -592,7 +592,7 @@ sioprobe(dev, xrid, rclk, noprobe)
* junk after a (very fast) soft reboot and (apparently) after
* master reset.
* XXX what about the UART bug avoided by waiting in comparam()?
* We don't want to to wait long enough to drain at 2 bps.
* We don't want to wait long enough to drain at 2 bps.
*/
if (iobase == siocniobase)
DELAY((16 + 1) * 1000000 / (comdefaultrate / 10));

View File

@ -183,7 +183,7 @@ typedef struct mixer_def mixer_tab[32][2];
* The AD1848 codec has generic input lines called Line, Aux1 and Aux2.
* Soundcard manufacturers have connected actual inputs (CD, synth, line,
* etc) to these inputs in different order. Therefore it's difficult
* to assign mixer channels to to these inputs correctly. The following
* to assign mixer channels to these inputs correctly. The following
* contains two alternative mappings. The first one is for GUS MAX and
* the second is just a generic one (line1, line2 and line3).
* (Actually this is not a mapping but rather some kind of interleaving

View File

@ -682,7 +682,7 @@ draw_txtmouse(scr_stat *scp, int x, int y)
} else
#endif /* SC_ALT_MOUSE_IMAGE */
{
/* Red, magenta and brown are mapped to green to to keep it readable */
/* Red, magenta and brown are mapped to green to keep it readable */
static const int col_conv[16] = {
6, 6, 6, 6, 2, 2, 2, 6, 14, 14, 14, 14, 10, 10, 10, 14
};

View File

@ -5815,7 +5815,7 @@ nfsm_copym(struct mbuf *m, int off, int xfer)
/*
* Find a file layout that will handle the first bytes of the requested
* range and return the information from it needed to to the I/O operation.
* range and return the information from it needed to the I/O operation.
*/
int
nfscl_findlayoutforio(struct nfscllayout *lyp, uint64_t off, uint32_t rwaccess,

View File

@ -556,7 +556,7 @@ END(subyte)
/*
* copyinstr(from, to, maxlen, int *lencopied) - MP SAFE
*
* copy a string from from to to, stop when a 0 character is reached.
* copy a string from 'from' to 'to', stop when a 0 character is reached.
* return ENAMETOOLONG if string is longer than maxlen, and
* EFAULT on protection violations. If lencopied is non-zero,
* return the actual length in *lencopied.

View File

@ -349,7 +349,7 @@ PCTRIE_DEFINE(BUF, buf, b_lblkno, buf_trie_alloc, buf_trie_free);
*
* Reevaluate the following cap on the number of vnodes after the physical
* memory size exceeds 512GB. In the limit, as the physical memory size
* grows, the ratio of the memory size in KB to to vnodes approaches 64:1.
* grows, the ratio of the memory size in KB to vnodes approaches 64:1.
*/
#ifndef MAXVNODES_MAX
#define MAXVNODES_MAX (512 * 1024 * 1024 / 64) /* 8M */

View File

@ -2,7 +2,7 @@
# BERI_SOCKIT -- Kernel for the SRI/Cambridge "BERI" (Bluespec Extensible
# RISC Implementation) FPGA soft core, as configured in its Terasic SoCKit
# reference configuration. This kernel configration must be further
# specialized to to include a root filesystem specification.
# specialized to include a root filesystem specification.
#
# $FreeBSD$
#

View File

@ -192,7 +192,7 @@ struct hfsc_class_stats {
* representation.
* the slope values are scaled to avoid overflow.
* the inverse slope values as well as the y-projection of the 1st
* segment are kept in order to to avoid 64-bit divide operations
* segment are kept in order to avoid 64-bit divide operations
* that are expensive on 32-bit architectures.
*
* note: Intel Pentium TSC never wraps around in several thousands of years.

View File

@ -689,7 +689,7 @@ bpf_check_upgrade(u_long cmd, struct bpf_d *d, struct bpf_insn *fcode, int flen)
* Check if cmd looks like snaplen setting from
* pcap_bpf.c:pcap_open_live().
* Note we're not checking .k value here:
* while pcap_open_live() definitely sets to to non-zero value,
* while pcap_open_live() definitely sets to non-zero value,
* we'd prefer to treat k=0 (deny ALL) case the same way: e.g.
* do not consider upgrading immediately
*/

View File

@ -3354,7 +3354,7 @@ ieee80211_add_htinfo_body(uint8_t *frm, struct ieee80211_node *ni)
}
/*
* Add 802.11n HT information information element.
* Add 802.11n HT information element.
*/
uint8_t *
ieee80211_add_htinfo(uint8_t *frm, struct ieee80211_node *ni)

View File

@ -119,7 +119,7 @@ static void sta_flush_table(struct sta_table *);
/*
* match_bss returns a bitmask describing if an entry is suitable
* for use. If non-zero the entry was deemed not suitable and it's
* contents explains why. The following flags are or'd to to this
* contents explains why. The following flags are or'd to this
* mask and can be used to figure out why the entry was rejected.
*/
#define MATCH_CHANNEL 0x00001 /* channel mismatch */

View File

@ -114,7 +114,7 @@ __start:
* - Switch to temp mapping
* - Map 64MB of RAM in TLB1[1]
* - Use AS=1, set EPN to KERNBASE and RPN to kernel load address
* - Switch to to TLB1[1] mapping
* - Switch to TLB1[1] mapping
* - Invalidate temp mapping
*
* locore registers use:

View File

@ -327,7 +327,7 @@ sbbc_pci_attach(device_t dev)
int error, rid;
uint32_t val;
/* Nothing to to if we're not the chosen one. */
/* Nothing to do if we're not the chosen one. */
if ((node = OF_finddevice("/chosen")) == -1) {
device_printf(dev, "failed to find /chosen\n");
return (ENXIO);

View File

@ -6903,7 +6903,7 @@ softdep_setup_freeblocks(ip, length, flags)
UFS_UNLOCK(ump);
DIP_SET(ip, i_blocks, DIP(ip, i_blocks) - datablocks);
/*
* Push the zero'ed inode to to its disk buffer so that we are free
* Push the zero'ed inode to its disk buffer so that we are free
* to delete its dependencies below. Once the dependencies are gone
* the buffer can be safely released.
*/