diff options
author | pfg <pfg@FreeBSD.org> | 2016-05-03 03:41:25 +0000 |
---|---|---|
committer | pfg <pfg@FreeBSD.org> | 2016-05-03 03:41:25 +0000 |
commit | eed4bd22add2269ccde27996035581801316c610 (patch) | |
tree | fe36ef227324b313676d43aef9a4d97c9a09675a | |
parent | 759c5e424131bdbb2db154a8f626569c324004d2 (diff) | |
download | FreeBSD-src-eed4bd22add2269ccde27996035581801316c610.zip FreeBSD-src-eed4bd22add2269ccde27996035581801316c610.tar.gz |
sys/dev: minor spelling fixes.
Most affect comments, very few have user-visible effects.
364 files changed, 650 insertions, 650 deletions
diff --git a/sys/dev/aac/aac_cam.c b/sys/dev/aac/aac_cam.c index 8ec26aa..1b5e230 100644 --- a/sys/dev/aac/aac_cam.c +++ b/sys/dev/aac/aac_cam.c @@ -555,7 +555,7 @@ aac_cam_fix_inquiry(struct aac_softc *sc, union ccb *ccb) /* * Some aac(4) adapters will always report that a direct * access device is offline in response to a INQUIRY - * command that does not retreive vital product data. + * command that does not retrieve vital product data. * Force the qualifier to connected so that upper layers * correctly recognize that a disk is present. */ @@ -590,7 +590,7 @@ aac_cam_complete(struct aac_command *cm) } else { /* * The SRB error codes just happen to match the CAM error - * codes. How convienient! + * codes. How convenient! */ ccb->ccb_h.status = srbr->srb_status; diff --git a/sys/dev/aac/aac_debug.c b/sys/dev/aac/aac_debug.c index 353c6fa..6dd84f5 100644 --- a/sys/dev/aac/aac_debug.c +++ b/sys/dev/aac/aac_debug.c @@ -351,7 +351,7 @@ aac_print_aif(struct aac_softc *sc, struct aac_aif_command *aif) device_printf(sc->aac_dev, "(ClusterEvent) event %d\n", aif->data.EN.data.ECLE.eventType); break; - case AifEnDiskSetEvent: /* A disk set event occured. */ + case AifEnDiskSetEvent: /* A disk set event occurred. */ device_printf(sc->aac_dev, "(DiskSetEvent) event %d " "diskset %jd creator %jd\n", aif->data.EN.data.EDS.eventType, diff --git a/sys/dev/aac/aac_disk.c b/sys/dev/aac/aac_disk.c index 394e057..89c0fa6 100644 --- a/sys/dev/aac/aac_disk.c +++ b/sys/dev/aac/aac_disk.c @@ -88,7 +88,7 @@ DRIVER_MODULE(aacd, aac, aac_disk_driver, aac_disk_devclass, NULL, NULL); * Handle open from generic layer. * * This is called by the diskslice code on first open in order to get the - * basic device geometry paramters. + * basic device geometry parameters. */ static int aac_disk_open(struct disk *dp) diff --git a/sys/dev/aac/aacreg.h b/sys/dev/aac/aacreg.h index 9959778..70859bb 100644 --- a/sys/dev/aac/aacreg.h +++ b/sys/dev/aac/aacreg.h @@ -886,7 +886,7 @@ typedef enum { AifEnSMARTEvent, /* SMART Event */ AifEnBatteryNeedsRecond, /* The battery needs reconditioning */ AifEnClusterEvent, /* Some cluster event */ - AifEnDiskSetEvent, /* A disk set event occured. */ + AifEnDiskSetEvent, /* A disk set event occurred. */ AifEnContainerScsiEvent, /* a container event with no. and scsi id */ AifEnPicBatteryEvent, /* An event gen. by pic_battery.c for an ABM */ AifEnExpEvent, /* Exp. Event Type to replace CTPopUp messages */ diff --git a/sys/dev/aacraid/aacraid_cam.c b/sys/dev/aacraid/aacraid_cam.c index 394b67d..58db62c 100644 --- a/sys/dev/aacraid/aacraid_cam.c +++ b/sys/dev/aacraid/aacraid_cam.c @@ -1181,7 +1181,7 @@ aac_cam_complete(struct aac_command *cm) } else { /* * The SRB error codes just happen to match the CAM error - * codes. How convienient! + * codes. How convenient! */ ccb->ccb_h.status = srbr->srb_status; diff --git a/sys/dev/aacraid/aacraid_debug.c b/sys/dev/aacraid/aacraid_debug.c index 6062d72..db3bab5 100644 --- a/sys/dev/aacraid/aacraid_debug.c +++ b/sys/dev/aacraid/aacraid_debug.c @@ -265,7 +265,7 @@ aacraid_print_aif(struct aac_softc *sc, struct aac_aif_command *aif) device_printf(sc->aac_dev, "(ClusterEvent) event %d\n", aif->data.EN.data.ECLE.eventType); break; - case AifEnDiskSetEvent: /* A disk set event occured. */ + case AifEnDiskSetEvent: /* A disk set event occurred. */ device_printf(sc->aac_dev, "(DiskSetEvent) event %d " "diskset %jd creator %jd\n", aif->data.EN.data.EDS.eventType, diff --git a/sys/dev/aacraid/aacraid_reg.h b/sys/dev/aacraid/aacraid_reg.h index 682d400..b02d193 100644 --- a/sys/dev/aacraid/aacraid_reg.h +++ b/sys/dev/aacraid/aacraid_reg.h @@ -875,7 +875,7 @@ typedef enum { AifEnSMARTEvent, /* SMART Event */ AifEnBatteryNeedsRecond, /* The battery needs reconditioning */ AifEnClusterEvent, /* Some cluster event */ - AifEnDiskSetEvent, /* A disk set event occured. */ + AifEnDiskSetEvent, /* A disk set event occurred. */ AifEnContainerScsiEvent, /* a container event with no. and scsi id */ AifEnPicBatteryEvent, /* An event gen. by pic_battery.c for an ABM */ AifEnExpEvent, /* Exp. Event Type to replace CTPopUp messages */ diff --git a/sys/dev/acpi_support/acpi_ibm.c b/sys/dev/acpi_support/acpi_ibm.c index 735065a..bb9aac6 100644 --- a/sys/dev/acpi_support/acpi_ibm.c +++ b/sys/dev/acpi_support/acpi_ibm.c @@ -839,7 +839,7 @@ acpi_ibm_sysctl_init(struct acpi_ibm_softc *sc, int method) case ACPI_IBM_METHOD_BRIGHTNESS: case ACPI_IBM_METHOD_VOLUME: case ACPI_IBM_METHOD_MUTE: - /* EC is required here, which was aready checked before */ + /* EC is required here, which was already checked before */ return (TRUE); case ACPI_IBM_METHOD_THINKLIGHT: diff --git a/sys/dev/acpica/acpi.c b/sys/dev/acpica/acpi.c index 84468e5..326fc71 100644 --- a/sys/dev/acpica/acpi.c +++ b/sys/dev/acpica/acpi.c @@ -1965,7 +1965,7 @@ acpi_probe_child(ACPI_HANDLE handle, UINT32 level, void *context, void **status) * Since we scan from \, be sure to skip system scope objects. * \_SB_ and \_TZ_ are defined in ACPICA as devices to work around * BIOS bugs. For example, \_SB_ is to allow \_SB_._INI to be run - * during the intialization and \_TZ_ is to support Notify() on it. + * during the initialization and \_TZ_ is to support Notify() on it. */ if (strcmp(handle_str, "\\_SB_") == 0 || strcmp(handle_str, "\\_TZ_") == 0) diff --git a/sys/dev/acpica/acpi_cpu.c b/sys/dev/acpica/acpi_cpu.c index 1a9c658..218da4e 100644 --- a/sys/dev/acpica/acpi_cpu.c +++ b/sys/dev/acpica/acpi_cpu.c @@ -641,7 +641,7 @@ acpi_cpu_shutdown(device_t dev) disable_idle(device_get_softc(dev)); /* - * CPU devices are not truely detached and remain referenced, + * CPU devices are not truly detached and remain referenced, * so their resources are not freed. */ diff --git a/sys/dev/acpica/acpiio.h b/sys/dev/acpica/acpiio.h index c65028f..dad4287 100644 --- a/sys/dev/acpica/acpiio.h +++ b/sys/dev/acpica/acpiio.h @@ -64,7 +64,7 @@ struct acpi_bif { char model[ACPI_CMBAT_MAXSTRLEN]; /* model identifier */ char serial[ACPI_CMBAT_MAXSTRLEN]; /* Serial number */ char type[ACPI_CMBAT_MAXSTRLEN]; /* Type */ - char oeminfo[ACPI_CMBAT_MAXSTRLEN]; /* OEM infomation */ + char oeminfo[ACPI_CMBAT_MAXSTRLEN]; /* OEM information */ }; struct acpi_bst { diff --git a/sys/dev/advansys/advansys.c b/sys/dev/advansys/advansys.c index 1eaa9a4..12ffd81 100644 --- a/sys/dev/advansys/advansys.c +++ b/sys/dev/advansys/advansys.c @@ -633,7 +633,7 @@ adv_timeout(void *arg) * means that the driver attempts to clear only one error * condition at a time. In general, timeouts that occur * close together are related anyway, so there is no benefit - * in attempting to handle errors in parrallel. Timeouts will + * in attempting to handle errors in parallel. Timeouts will * be reinstated when the recovery process ends. */ adv_set_state(adv, ADV_IN_TIMEOUT); @@ -1123,7 +1123,7 @@ adv_done(struct adv_softc *adv, union ccb *ccb, u_int done_stat, * from this initiator are in effect, but this * ignores multi-initiator setups and there is * evidence that the firmware gets its per-device - * transaction counts screwed up occassionally. + * transaction counts screwed up occasionally. */ ccb->ccb_h.status |= CAM_SCSI_STATUS_ERROR; if ((ccb->ccb_h.flags & CAM_TAG_ACTION_VALID) != 0 diff --git a/sys/dev/advansys/advlib.c b/sys/dev/advansys/advlib.c index 9080876..75d6884 100644 --- a/sys/dev/advansys/advlib.c +++ b/sys/dev/advansys/advlib.c @@ -2060,7 +2060,7 @@ adv_reset_bus(struct adv_softc *adv, int initiate_bus_reset) /*offset*/0, ADV_TRANS_CUR); ADV_OUTW(adv, ADV_REG_PROG_COUNTER, ADV_MCODE_START_ADDR); - /* Tell the XPT layer that a bus reset occured */ + /* Tell the XPT layer that a bus reset occurred */ if (adv->path != NULL) xpt_async(AC_BUS_RESET, adv->path, NULL); diff --git a/sys/dev/advansys/advlib.h b/sys/dev/advansys/advlib.h index 00573ac..6952ca9 100644 --- a/sys/dev/advansys/advlib.h +++ b/sys/dev/advansys/advlib.h @@ -228,7 +228,7 @@ struct adv_ccb_info { #define ADV_CSW_SCSI_RESET_LATCH 0x0002 #define ADV_CSW_INT_PENDING 0x0001 /* - * XXX I don't understand the relevence of the naming + * XXX I don't understand the relevance of the naming * convention change here. What does CIW stand for? * Perhaps this is to differentiate read and write * values? @@ -590,7 +590,7 @@ struct adv_scsiq_1 { u_int8_t target_lun; /* LUN - taken from our xs */ u_int32_t data_addr; /* - * physical addres of first + * physical address of first * (possibly only) segment * to transfer. */ @@ -793,7 +793,7 @@ u_int16_t adv_read_lram_16(struct adv_softc *adv, u_int16_t addr); void adv_write_lram_16(struct adv_softc *adv, u_int16_t addr, u_int16_t value); -/* Intialization */ +/* Initialization */ int adv_find_signature(struct resource *res); void adv_lib_init(struct adv_softc *adv); diff --git a/sys/dev/advansys/adwlib.h b/sys/dev/advansys/adwlib.h index 09a0155..a730985 100644 --- a/sys/dev/advansys/adwlib.h +++ b/sys/dev/advansys/adwlib.h @@ -563,7 +563,7 @@ typedef enum { ADW_FENONE = 0x0000, ADW_ULTRA = 0x0001, /* Supports 20MHz Transfers */ ADW_ULTRA2 = 0x0002, /* Supports 40MHz Transfers */ - ADW_DT = 0x0004, /* Supports Double Transistion REQ/ACK*/ + ADW_DT = 0x0004, /* Supports Double Transition REQ/ACK */ ADW_WIDE = 0x0008, /* Wide Channel */ ADW_ASC3550_FE = ADW_ULTRA, ADW_ASC38C0800_FE = ADW_ULTRA2, @@ -801,7 +801,7 @@ carrierbtov(struct adw_softc *adw, u_int32_t baddr) return (carrierbotov(adw, baddr - adw->carrier_busbase)); } -/* Intialization */ +/* Initialization */ int adw_find_signature(struct adw_softc *adw); void adw_reset_chip(struct adw_softc *adw); int adw_reset_bus(struct adw_softc *adw); diff --git a/sys/dev/aha/aha.c b/sys/dev/aha/aha.c index f35fe4b..1c767b6 100644 --- a/sys/dev/aha/aha.c +++ b/sys/dev/aha/aha.c @@ -301,7 +301,7 @@ aha_probe(struct aha_softc* aha) * This really should be replaced with the esetup command, since * that appears to be more reliable. This becomes more and more * true over time as we discover more cards that don't read the - * geometry register consistantly. + * geometry register consistently. */ if (aha->boardid <= 0x42) { /* Wait 10ms before reading */ @@ -1161,7 +1161,7 @@ ahadone(struct aha_softc *aha, struct aha_ccb *accb, aha_mbi_comp_code_t comp_co struct ccb_hdr *ccb_h; cam_status error; - /* Notify all clients that a BDR occured */ + /* Notify all clients that a BDR occurred */ error = xpt_create_path(&path, /*periph*/NULL, cam_sim_path(aha->sim), accb->hccb.target, CAM_LUN_WILDCARD); @@ -1204,7 +1204,7 @@ ahadone(struct aha_softc *aha, struct aha_ccb *accb, aha_mbi_comp_code_t comp_co break; case AMBI_ABORT: case AMBI_ERROR: - /* An error occured */ + /* An error occurred */ if (accb->hccb.opcode < INITIATOR_CCB_WRESID) csio->resid = 0; else @@ -1747,7 +1747,7 @@ ahatimeout(void *arg) * means that the driver attempts to clear only one error * condition at a time. In general, timeouts that occur * close together are related anyway, so there is no benefit - * in attempting to handle errors in parrallel. Timeouts will + * in attempting to handle errors in parallel. Timeouts will * be reinstated when the recovery process ends. */ if ((accb->flags & ACCB_DEVICE_RESET) == 0) { diff --git a/sys/dev/ahb/ahb.c b/sys/dev/ahb/ahb.c index 21c5f65..1135b04 100644 --- a/sys/dev/ahb/ahb.c +++ b/sys/dev/ahb/ahb.c @@ -885,7 +885,7 @@ ahbintr_locked(struct ahb_softc *ahb) xpt_async(AC_BUS_RESET, ahb->path, NULL); break; } - printf("Unsupported initiator selection AEN occured\n"); + printf("Unsupported initiator selection AEN occurred\n"); break; case INTSTAT_IMMED_OK: case INTSTAT_IMMED_ERR: @@ -1235,7 +1235,7 @@ ahbtimeout(void *arg) * means that the driver attempts to clear only one error * condition at a time. In general, timeouts that occur * close together are related anyway, so there is no benefit - * in attempting to handle errors in parrallel. Timeouts will + * in attempting to handle errors in parallel. Timeouts will * be reinstated when the recovery process ends. */ if ((ecb->state & ECB_DEVICE_RESET) == 0) { diff --git a/sys/dev/ahb/ahbreg.h b/sys/dev/ahb/ahbreg.h index 23501ee..dabf409 100644 --- a/sys/dev/ahb/ahbreg.h +++ b/sys/dev/ahb/ahbreg.h @@ -64,7 +64,7 @@ #define RSTBUS 0x10 #define BUSDEF 0x0C4 -#define B0uS 0x00 /* give up bus immediatly */ +#define B0uS 0x00 /* give up bus immediately */ #define B4uS 0x01 /* delay 4uSec. */ #define B8uS 0x02 /* delay 8uSec. */ diff --git a/sys/dev/ahci/ahci.c b/sys/dev/ahci/ahci.c index 9a47f3b..d1d3d6b 100644 --- a/sys/dev/ahci/ahci.c +++ b/sys/dev/ahci/ahci.c @@ -1303,7 +1303,7 @@ ahci_ch_intr_main(struct ahci_channel *ch, uint32_t istatus) err = 0; port = -1; } - /* Complete all successfull commands. */ + /* Complete all successful commands. */ ok = ch->rslots & ~cstatus; for (i = 0; i < ch->numslots; i++) { if ((ok >> i) & 1) diff --git a/sys/dev/ahci/ahci.h b/sys/dev/ahci/ahci.h index 868a376..e2a1caf 100644 --- a/sys/dev/ahci/ahci.h +++ b/sys/dev/ahci/ahci.h @@ -444,7 +444,7 @@ struct ahci_channel { int numtslotspd[16];/* Number of tagged slots per dev */ int numhslots; /* Number of held slots */ int recoverycmd; /* Our READ LOG active */ - int fatalerr; /* Fatal error happend */ + int fatalerr; /* Fatal error happened */ int resetting; /* Hard-reset in progress. */ int resetpolldiv; /* Hard-reset poll divider. */ int listening; /* SUD bit is cleared. */ @@ -465,7 +465,7 @@ struct ahci_enclosure { device_t dev; /* Device handle */ struct resource *r_memc; /* Control register */ struct resource *r_memt; /* Transmit buffer */ - struct resource *r_memr; /* Recieve buffer */ + struct resource *r_memr; /* Receive buffer */ struct cam_sim *sim; struct cam_path *path; struct mtx mtx; /* state lock */ diff --git a/sys/dev/alpm/alpm.c b/sys/dev/alpm/alpm.c index 53b2f9d..428ea69 100644 --- a/sys/dev/alpm/alpm.c +++ b/sys/dev/alpm/alpm.c @@ -202,7 +202,7 @@ alpm_attach(device_t dev) printf(" 55K"); break; default: - printf("unkown"); + printf("unknown"); break; } printf("\n"); diff --git a/sys/dev/altera/atse/if_atse.c b/sys/dev/altera/atse/if_atse.c index 5e37ad2..f5a461b0 100644 --- a/sys/dev/altera/atse/if_atse.c +++ b/sys/dev/altera/atse/if_atse.c @@ -146,7 +146,7 @@ a_onchip_fifo_mem_core_read(struct resource *res, uint32_t off, return (val4); } -/* The FIFO does an endian convertion, so we must not do it as well. */ +/* The FIFO does an endian conversion, so we must not do it as well. */ /* XXX-BZ in fact we should do a htobe32 so le would be fine as well? */ #define ATSE_TX_DATA_WRITE(sc, val4) \ bus_write_4((sc)->atse_tx_mem_res, A_ONCHIP_FIFO_MEM_CORE_DATA, val4) @@ -169,8 +169,8 @@ a_onchip_fifo_mem_core_read(struct resource *res, uint32_t off, A_ONCHIP_FIFO_MEM_CORE_STATUS_REG_FILL_LEVEL, \ "RX_FILL", __func__, __LINE__) -/* The FIFO does an endian convertion, so we must not do it as well. */ -/* XXX-BZ in fact we shoudl do a htobe32 so le would be fine as well? */ +/* The FIFO does an endian conversion, so we must not do it as well. */ +/* XXX-BZ in fact we should do a htobe32 so le would be fine as well? */ #define ATSE_RX_DATA_READ(sc) \ bus_read_4((sc)->atse_rx_mem_res, A_ONCHIP_FIFO_MEM_CORE_DATA) #define ATSE_RX_META_READ(sc) \ diff --git a/sys/dev/amr/amr.c b/sys/dev/amr/amr.c index 16cbeec..09d47f7 100644 --- a/sys/dev/amr/amr.c +++ b/sys/dev/amr/amr.c @@ -525,7 +525,7 @@ shutdown_out: /* * Bug-for-bug compatibility with Linux! * Some apps will send commands with inlen and outlen set to 0, - * even though they expect data to be transfered to them from the + * even though they expect data to be transferred to them from the * card. Linux accidentally allows this by allocating a 4KB * buffer for the transfer anyways, but it then throws it away * without copying it back to the app. @@ -1784,7 +1784,7 @@ amr_start(struct amr_command *ac) /* Now we have a slot, we can map the command (unmapped in amr_complete). */ if ((error = amr_mapcmd(ac)) == ENOMEM) { /* - * Memroy resources are short, so free the slot and let this be tried + * Memory resources are short, so free the slot and let this be tried * later. */ amr_freeslot(ac); diff --git a/sys/dev/an/if_an.c b/sys/dev/an/if_an.c index 1f37b59..a85136b 100644 --- a/sys/dev/an/if_an.c +++ b/sys/dev/an/if_an.c @@ -426,7 +426,7 @@ int an_alloc_memory(device_t dev, int rid, int size) } /* - * Allocate a auxilary memory resource with the given resource id. + * Allocate a auxiliary memory resource with the given resource id. */ int an_alloc_aux_memory(device_t dev, int rid, int size) { diff --git a/sys/dev/an/if_anreg.h b/sys/dev/an/if_anreg.h index 279e65b..0004e8e 100644 --- a/sys/dev/an/if_anreg.h +++ b/sys/dev/an/if_anreg.h @@ -276,7 +276,7 @@ struct an_reply { #define AN_EV_ALLOC 0x0008 /* async alloc/reclaim completed */ #define AN_EV_TX_CPY 0x0400 #define AN_EV_TX_EXC 0x0004 /* async xmit completed with failure */ -#define AN_EV_TX 0x0002 /* async xmit completed succesfully */ +#define AN_EV_TX 0x0002 /* async xmit completed successfully */ #define AN_EV_RX 0x0001 /* async rx completed */ #define AN_INTRS(x) \ diff --git a/sys/dev/asmc/asmc.c b/sys/dev/asmc/asmc.c index f69f77d..bbe8bfd 100644 --- a/sys/dev/asmc/asmc.c +++ b/sys/dev/asmc/asmc.c @@ -650,7 +650,7 @@ asmc_init(device_t dev) goto nosms; /* - * We are ready to recieve interrupts from the SMS. + * We are ready to receive interrupts from the SMS. */ buf[0] = 0x01; ASMC_DPRINTF(("intok key\n")); diff --git a/sys/dev/ata/ata-all.c b/sys/dev/ata/ata-all.c index 8e7ca08..889c37b 100644 --- a/sys/dev/ata/ata-all.c +++ b/sys/dev/ata/ata-all.c @@ -426,7 +426,7 @@ ata_default_registers(device_t dev) void ata_udelay(int interval) { - /* for now just use DELAY, the timer/sleep subsytems are not there yet */ + /* for now just use DELAY, the timer/sleep subsystems are not there yet */ if (1 || interval < (1000000/hz) || ata_delayed_attach) DELAY(interval); else diff --git a/sys/dev/ata/ata-sata.c b/sys/dev/ata/ata-sata.c index c31175d..2df5cb5 100644 --- a/sys/dev/ata/ata-sata.c +++ b/sys/dev/ata/ata-sata.c @@ -297,7 +297,7 @@ ata_pm_identify(device_t dev) /* get PM revision data */ if (ch->hw.pm_read(dev, ATA_PM, 1, &pm_revision)) { - device_printf(dev, "error getting PM revison data\n"); + device_printf(dev, "error getting PM revision data\n"); return; } diff --git a/sys/dev/ata/chipsets/ata-ite.c b/sys/dev/ata/chipsets/ata-ite.c index f204e7a..44370de 100644 --- a/sys/dev/ata/chipsets/ata-ite.c +++ b/sys/dev/ata/chipsets/ata-ite.c @@ -103,7 +103,7 @@ ata_ite_chipinit(device_t dev) pci_write_config(dev, 0x56, 0x31, 1); ctlr->setmode = ata_ite_821x_setmode; - /* No timing restrictions initally. */ + /* No timing restrictions initially. */ ctlr->chipset_data = NULL; } ctlr->ch_attach = ata_ite_ch_attach; diff --git a/sys/dev/atkbdc/psm.c b/sys/dev/atkbdc/psm.c index b5c4856..56a5c62 100644 --- a/sys/dev/atkbdc/psm.c +++ b/sys/dev/atkbdc/psm.c @@ -1807,7 +1807,7 @@ psmread(struct cdev *dev, struct uio *uio, int flag) if ((sc->state & PSM_VALID) == 0) return (EIO); - /* block until mouse activity occured */ + /* block until mouse activity occurred */ s = spltty(); while (sc->queue.count <= 0) { if (dev != sc->bdev) { @@ -3008,7 +3008,7 @@ proc_synaptics(struct psm_softc *sc, packetbuf_t *pb, mousestatus_t *ms, if (synaction->queue_len < synaction->window_min) goto SYNAPTICS_END; - /* Is a scrolling action occuring? */ + /* Is a scrolling action occurring? */ if (!synaction->in_taphold && !synaction->in_vscroll) { /* * A scrolling action must not conflict with a tap @@ -3518,7 +3518,7 @@ psmsoftintr(void *arg) case MOUSE_MODEL_NETSCROLL: /* - * three addtional bytes encode buttons and + * three additional bytes encode buttons and * wheel events */ ms.button |= (pb->ipacket[3] & MOUSE_PS2_BUTTON3DOWN) ? diff --git a/sys/dev/bce/if_bce.c b/sys/dev/bce/if_bce.c index cfc091f..0b406e2 100644 --- a/sys/dev/bce/if_bce.c +++ b/sys/dev/bce/if_bce.c @@ -2361,7 +2361,7 @@ bce_nvram_erase_page(struct bce_softc *sc, u32 offset) BCE_NVM_COMMAND_DOIT; /* - * Clear the DONE bit separately, set the NVRAM adress to erase, + * Clear the DONE bit separately, set the NVRAM address to erase, * and issue the erase command. */ REG_WR(sc, BCE_NVM_COMMAND, BCE_NVM_COMMAND_DONE); @@ -7957,7 +7957,7 @@ bce_intr(void *xsc) goto bce_intr_exit; } - /* Ack the interrupt and stop others from occuring. */ + /* Ack the interrupt and stop others from occurring. */ REG_WR(sc, BCE_PCICFG_INT_ACK_CMD, BCE_PCICFG_INT_ACK_CMD_USE_INT_HC_PARAM | BCE_PCICFG_INT_ACK_CMD_MASK_INT); diff --git a/sys/dev/bce/if_bcereg.h b/sys/dev/bce/if_bcereg.h index 8ed58d5..2f166ea 100644 --- a/sys/dev/bce/if_bcereg.h +++ b/sys/dev/bce/if_bcereg.h @@ -6089,7 +6089,7 @@ struct l2_fhdr { /****************************************************************************/ /* The following definitions refer to pre-defined locations in processor */ /* memory space which allows the driver to enable particular functionality */ -/* within the firmware or read specfic information about the running */ +/* within the firmware or read specific information about the running */ /* firmware. */ /****************************************************************************/ @@ -6174,7 +6174,7 @@ struct l2_fhdr { #define RX_IDX(x) ((x) & USABLE_RX_BD_PER_PAGE) /* - * To accomodate jumbo frames, the page chain should + * To accommodate jumbo frames, the page chain should * be 4 times larger than the receive chain. */ #define DEFAULT_PG_PAGES (DEFAULT_RX_PAGES * 4) diff --git a/sys/dev/bhnd/bcmsrom_fmt.h b/sys/dev/bhnd/bcmsrom_fmt.h index 10f00e4..66c2b9d 100644 --- a/sys/dev/bhnd/bcmsrom_fmt.h +++ b/sys/dev/bhnd/bcmsrom_fmt.h @@ -311,7 +311,7 @@ /* SISO PA parameters are in the path0 spaces */ #define SROM8_SISO 96 -/* Legacy names for SISO PA paramters */ +/* Legacy names for SISO PA parameters */ #define SROM8_W0_ITTMAXP (SROM8_SISO + SROM8_2G_ITT_MAXP) #define SROM8_W0_PAB0 (SROM8_SISO + SROM8_2G_PA) #define SROM8_W0_PAB1 (SROM8_SISO + SROM8_2G_PA + 1) diff --git a/sys/dev/bhnd/bhnd.h b/sys/dev/bhnd/bhnd.h index 5a3e992..7589556 100644 --- a/sys/dev/bhnd/bhnd.h +++ b/sys/dev/bhnd/bhnd.h @@ -449,7 +449,7 @@ bhnd_alloc_resource_any(device_t dev, int type, int *rid, u_int flags) * BHND_BUS_ALLOC_RESOURCE. * * @retval 0 success - * @retval non-zero an error occured while activating the resource. + * @retval non-zero an error occurred while activating the resource. */ static inline int bhnd_activate_resource(device_t dev, int type, int rid, @@ -469,7 +469,7 @@ bhnd_activate_resource(device_t dev, int type, int rid, * BHND_BUS_ALLOC_RESOURCE. * * @retval 0 success - * @retval non-zero an error occured while activating the resource. + * @retval non-zero an error occurred while activating the resource. */ static inline int bhnd_deactivate_resource(device_t dev, int type, int rid, @@ -489,7 +489,7 @@ bhnd_deactivate_resource(device_t dev, int type, int rid, * BHND_ALLOC_RESOURCE. * * @retval 0 success - * @retval non-zero an error occured while activating the resource. + * @retval non-zero an error occurred while activating the resource. */ static inline int bhnd_release_resource(device_t dev, int type, int rid, diff --git a/sys/dev/bhnd/bhnd_ids.h b/sys/dev/bhnd/bhnd_ids.h index fdbc6ff..e28e53b 100644 --- a/sys/dev/bhnd/bhnd_ids.h +++ b/sys/dev/bhnd/bhnd_ids.h @@ -421,14 +421,14 @@ #define BHND_PKGID_BCM4314PCIE (8 | 2) /* 4314 QFN PCI (ARM-less) package id */ #define BHND_PKGID_BCM4314SDIO_ARM (8 | 3) /* 4314 QFN SDIO (ARM-less) package id */ #define BHND_PKGID_BCM4314SDIO_FPBGA (8 | 4) /* 4314 FpBGA SDIO package id */ -#define BHND_PKGID_BCM4314DEV (8 | 6) /* 4314 Developement package id */ +#define BHND_PKGID_BCM4314DEV (8 | 6) /* 4314 Development package id */ #define BHND_PKGID_BCM4707 1 /* 4707 package id */ #define BHND_PKGID_BCM4708 2 /* 4708 package id */ #define BHND_PKGID_BCM4709 0 /* 4709 package id */ #define BHND_PKGID_BCM4335_WLCSP (0x0) /* WLCSP Module/Mobile SDIO/HSIC. */ -#define BHND_PKGID_BCM4335_FCBGA (0x1) /* FCBGA PC/Embeded/Media PCIE/SDIO */ +#define BHND_PKGID_BCM4335_FCBGA (0x1) /* FCBGA PC/Embedded/Media PCIE/SDIO */ #define BHND_PKGID_BCM4335_WLBGA (0x2) /* WLBGA COB/Mobile SDIO/HSIC. */ #define BHND_PKGID_BCM4335_FCBGAD (0x3) /* FCBGA Debug Debug/Dev All if's. */ #define BHND_PKGID_PKG_MASK_BCM4335 (0x3) @@ -645,8 +645,8 @@ #define BHND_BFL3_RCAL_WAR 0x00000008 /* acphy, rcal war active on this board (4335a0) */ #define BHND_BFL3_TXGAINTBLID 0x00000070 /* acphy, txgain table id */ #define BHND_BFL3_TXGAINTBLID_SHIFT 0x4 /* acphy, txgain table id shift bit */ -#define BHND_BFL3_TSSI_DIV_WAR 0x00000080 /* acphy, Seperate paparam for 20/40/80 */ -#define BHND_BFL3_TSSI_DIV_WAR_SHIFT 0x7 /* acphy, Seperate paparam for 20/40/80 shift bit */ +#define BHND_BFL3_TSSI_DIV_WAR 0x00000080 /* acphy, Separate paparam for 20/40/80 */ +#define BHND_BFL3_TSSI_DIV_WAR_SHIFT 0x7 /* acphy, Separate paparam for 20/40/80 shift bit */ #define BHND_BFL3_FEMTBL_FROM_NVRAM 0x00000100 /* acphy, femctrl table is read from nvram */ #define BHND_BFL3_FEMTBL_FROM_NVRAM_SHIFT 0x8 /* acphy, femctrl table is read from nvram */ #define BHND_BFL3_AGC_CFG_2G 0x00000200 /* acphy, gain control configuration for 2G */ diff --git a/sys/dev/bhnd/bhndb/bhndb.c b/sys/dev/bhnd/bhndb/bhndb.c index f635384..3deae00 100644 --- a/sys/dev/bhnd/bhndb/bhndb.c +++ b/sys/dev/bhnd/bhndb/bhndb.c @@ -1515,7 +1515,7 @@ bhndb_get_resource_list(device_t dev, device_t child) * Default bhndb(4) implementation of BHND_BUS_ACTIVATE_RESOURCE(). * * For BHNDB_ADDRSPACE_NATIVE children, all resources may be assumed to - * be actived by the bridge. + * be activated by the bridge. * * For BHNDB_ADDRSPACE_BRIDGED children, attempts to activate a static register * window, a dynamic register window, or configures @p r as an indirect diff --git a/sys/dev/bhnd/bhndb/bhndb_hwdata.c b/sys/dev/bhnd/bhndb/bhndb_hwdata.c index dd973e9..7cbb21f 100644 --- a/sys/dev/bhnd/bhndb/bhndb_hwdata.c +++ b/sys/dev/bhnd/bhndb/bhndb_hwdata.c @@ -130,7 +130,7 @@ const struct bhndb_hw_priority bhndb_bcma_priority_table[] = { /* * Default Core Behavior * - * All other cores are assumed to require effecient runtime access to + * All other cores are assumed to require efficient runtime access to * the default device port, and if supported by the bus, an agent port. */ BHNDB_CLASS_PRIO(INVALID, -1, DEFAULT, @@ -183,7 +183,7 @@ const struct bhndb_hw_priority bhndb_siba_priority_table[] = { /* * Default Core Behavior * - * All other cores are assumed to require effecient runtime access to + * All other cores are assumed to require efficient runtime access to * the device port. */ BHNDB_CLASS_PRIO(INVALID, -1, DEFAULT, diff --git a/sys/dev/bhnd/siba/siba.c b/sys/dev/bhnd/siba/siba.c index 9e837e3f..4e0c34a 100644 --- a/sys/dev/bhnd/siba/siba.c +++ b/sys/dev/bhnd/siba/siba.c @@ -420,7 +420,7 @@ siba_register_addrspaces(device_t dev, struct siba_devinfo *di, /* Region numbers must be assigned in order, but our siba address * space IDs may be sparsely allocated; thus, we track - * the region index seperately. */ + * the region index separately. */ region_num = 0; /* Register the device address space entries */ diff --git a/sys/dev/bhnd/siba/siba_subr.c b/sys/dev/bhnd/siba/siba_subr.c index 5e9b028..555c603 100644 --- a/sys/dev/bhnd/siba/siba_subr.c +++ b/sys/dev/bhnd/siba/siba_subr.c @@ -337,7 +337,7 @@ siba_admatch_offset(uint8_t addrspace) * @param[out] size The parsed size. * * @retval 0 success - * @retval non-zero a parse error occured. + * @retval non-zero a parse error occurred. */ int siba_parse_admatch(uint32_t am, uint32_t *addr, uint32_t *size) diff --git a/sys/dev/bktr/CHANGELOG.TXT b/sys/dev/bktr/CHANGELOG.TXT index 5cd1929..bead697 100644 --- a/sys/dev/bktr/CHANGELOG.TXT +++ b/sys/dev/bktr/CHANGELOG.TXT @@ -356,7 +356,7 @@ BSDI code removed. Will be restored later. 1.70 12 July 1999 Roger Hardiman <roger@freebsd.org> - Reorganise OS device dependant parts (based on a port to + Reorganise OS device dependent parts (based on a port to linux by Brad Parker). Make the driver compile on FreeBSD 2.2.x systems again. Change number of VBI lines from 16 to 12 for NTSC formats. @@ -368,7 +368,7 @@ Matt Brown <matt@dqc.org> added MSP3430G DBX initialisation. 1.71 30 Aug 1999 Roger Hardiman <roger@freebsd.org> - Small cleanup of OS dependant code. Remove NPCI usage. + Small cleanup of OS dependent code. Remove NPCI usage. Fix bug in AVerMedia detection. Update VBI support for the AleVT Teletext package. Parts from Juha Nurmela's driver <Juha.Nurmela@quicknet.inet.fi> diff --git a/sys/dev/bktr/bktr_audio.c b/sys/dev/bktr/bktr_audio.c index 6cfe576..ea2b458 100644 --- a/sys/dev/bktr/bktr_audio.c +++ b/sys/dev/bktr/bktr_audio.c @@ -132,7 +132,7 @@ set_audio( bktr_ptr_t bktr, int cmd ) else #endif /* AUDIOMUX_DISCOVER */ - /* check for existance of audio MUXes */ + /* check for existence of audio MUXes */ if ( !bktr->card.audiomuxs[ 4 ] ) return( -1 ); @@ -308,7 +308,7 @@ init_BTSC( bktr_ptr_t bktr ) /* * setup the dbx chip - * XXX FIXME: alot of work to be done here, this merely unmutes it. + * XXX FIXME: a lot of work to be done here, this merely unmutes it. */ int set_BTSC( bktr_ptr_t bktr, int control ) @@ -471,7 +471,7 @@ void msp_read_id( bktr_ptr_t bktr ){ * For the MSP3430G, we use fast autodetect mode * For the MSP3410/3415 there are two schemes for this * a) Fast autodetection - the chip is put into autodetect mode, and the function - * returns immediatly. This works in most cases and is the Default Mode. + * returns immediately. This works in most cases and is the Default Mode. * b) Slow mode. The function sets the MSP3410/3415 chip, then waits for feedback from * the chip and re-programs it if needed. */ @@ -561,7 +561,7 @@ void msp_autodetect( bktr_ptr_t bktr ) { msp_dpl_write(bktr, bktr->msp_addr, 0x12, 0x0008,0x0020);/* Loudspeaker set stereo*/ /* set spatial effect strength to 50% enlargement - set spatial effect mode b, stereo basewidth enlargment only + set spatial effect mode b, stereo basewidth enlargement only */ msp_dpl_write(bktr, bktr->msp_addr, 0x12, 0x0005,0x3f28); } else if (stereo > 0x8000) { /* bilingual mode */ @@ -573,7 +573,7 @@ void msp_autodetect( bktr_ptr_t bktr ) { msp_dpl_write(bktr, bktr->msp_addr, 0x12, 0x0008,0x0030);/* Loudspeaker */ /* set spatial effect strength to 50% enlargement - set spatial effect mode a, stereo basewidth enlargment + set spatial effect mode a, stereo basewidth enlargement and pseudo stereo effect with automatic high-pass filter */ msp_dpl_write(bktr, bktr->msp_addr, 0x12, 0x0005,0x3f08); diff --git a/sys/dev/bktr/bktr_card.c b/sys/dev/bktr/bktr_card.c index e59ebbe..be76fb3 100644 --- a/sys/dev/bktr/bktr_card.c +++ b/sys/dev/bktr/bktr_card.c @@ -1217,7 +1217,7 @@ checkTuner: } /* end switch(card) */ - /* At this point, a goto checkDBX has not occured */ + /* At this point, a goto checkDBX has not occurred */ /* We have not been able to select a Tuner */ /* Some cards make use of the tuner address to */ /* identify the make/model of tuner */ diff --git a/sys/dev/bktr/bktr_core.c b/sys/dev/bktr/bktr_core.c index 67f3ab1..e069778 100644 --- a/sys/dev/bktr/bktr_core.c +++ b/sys/dev/bktr/bktr_core.c @@ -256,7 +256,7 @@ typedef u_char bool_t; */ #define MAX_VBI_LINES 16 /* Maximum for all vidoe formats */ -#define VBI_LINE_SIZE 2048 /* Store upto 2048 bytes per line */ +#define VBI_LINE_SIZE 2048 /* Store up to 2048 bytes per line */ #define VBI_BUFFER_ITEMS 20 /* Number of frames we buffer */ #define VBI_DATA_SIZE (VBI_LINE_SIZE * MAX_VBI_LINES * 2) #define VBI_BUFFER_SIZE (VBI_DATA_SIZE * VBI_BUFFER_ITEMS) @@ -626,7 +626,7 @@ bktr_store_address(unit, BKTR_MEM_BUF, buf); init_audio_devices( bktr ); #ifdef BKTR_NEW_MSP34XX_DRIVER - /* setup the kenrel thread */ + /* setup the kernel thread */ err = msp_attach( bktr ); if ( err != 0 ) /* error doing kernel thread stuff, disable msp3400c */ bktr->card.msp3400c = 0; @@ -1786,7 +1786,7 @@ video_ioctl( bktr_ptr_t bktr, int unit, ioctl_cmd_t cmd, caddr_t arg, struct thr && bktr->video.addr == 0) { /*****************************/ -/* *** OS Dependant code *** */ +/* *** OS Dependent code *** */ /*****************************/ #if defined(__NetBSD__) || defined(__OpenBSD__) bus_dmamap_t dmamap; @@ -2369,7 +2369,7 @@ common_ioctl( bktr_ptr_t bktr, ioctl_cmd_t cmd, caddr_t arg ) /* Tuner is MUX0, RCA is MUX1, S-Video is MUX2 */ /* On the Hauppauge bt878 boards, */ /* Tuner is MUX0, RCA is MUX3 */ - /* Unfortunatly Meteor driver codes DEV_RCA as DEV_0, so we */ + /* Unfortunately Meteor driver codes DEV_RCA as DEV_0, so we */ /* stick with this system in our Meteor Emulation */ switch(*(unsigned long *)arg & METEOR_DEV_MASK) { diff --git a/sys/dev/bktr/bktr_os.c b/sys/dev/bktr/bktr_os.c index e8c0f7b..aa41454 100644 --- a/sys/dev/bktr/bktr_os.c +++ b/sys/dev/bktr/bktr_os.c @@ -40,7 +40,7 @@ __FBSDID("$FreeBSD$"); * chipset. * Copyright Roger Hardiman and Amancio Hasty. * - * bktr_os : This has all the Operating System dependant code, + * bktr_os : This has all the Operating System dependent code, * probe/attach and open/close/ioctl/read/mmap * memory allocation * PCI bus interfacing @@ -395,12 +395,12 @@ bktr_attach( device_t dev ) fun = fun | 1; /* Enable writes to the sub-system vendor ID */ #if defined( BKTR_430_FX_MODE ) - if (bootverbose) printf("Using 430 FX chipset compatibilty mode\n"); + if (bootverbose) printf("Using 430 FX chipset compatibility mode\n"); fun = fun | 2; /* Enable Intel 430 FX compatibility mode */ #endif #if defined( BKTR_SIS_VIA_MODE ) - if (bootverbose) printf("Using SiS/VIA chipset compatibilty mode\n"); + if (bootverbose) printf("Using SiS/VIA chipset compatibility mode\n"); fun = fun | 4; /* Enable SiS/VIA compatibility mode (useful for OPTi chipset motherboards too */ #endif diff --git a/sys/dev/bktr/bktr_os.h b/sys/dev/bktr/bktr_os.h index 1cd708d..6456616 100644 --- a/sys/dev/bktr/bktr_os.h +++ b/sys/dev/bktr/bktr_os.h @@ -6,7 +6,7 @@ * chipset. * Copyright Roger Hardiman and Amancio Hasty. * - * bktr_os : This has all the Operating System dependant code. + * bktr_os : This has all the Operating System dependent code. * */ diff --git a/sys/dev/bktr/msp34xx.c b/sys/dev/bktr/msp34xx.c index 65cf0e1..8c45e67 100644 --- a/sys/dev/bktr/msp34xx.c +++ b/sys/dev/bktr/msp34xx.c @@ -39,7 +39,7 @@ * * FM-Mono * should work. The stereo modes are backward compatible to FM-mono, - * therefore FM-Mono should be allways available. + * therefore FM-Mono should be always available. * * FM-Stereo (B/G, used in germany) * should work, with autodetect @@ -226,7 +226,7 @@ static struct MSP_INIT_DATA_DEM { MSP_CARRIER(10.7), MSP_CARRIER(10.7), 0x00d0, 0x0480, 0x0020, 0x3000 }, - /* Terrestial FM-mono + FM-stereo */ + /* Terrestrial FM-mono + FM-stereo */ { { 3, 18, 27, 48, 66, 72 }, { 3, 18, 27, 48, 66, 72 }, MSP_CARRIER(5.5), MSP_CARRIER(5.5), 0x00d0, 0x0480, 0x0030, 0x3000}, diff --git a/sys/dev/buslogic/bt.c b/sys/dev/buslogic/bt.c index 5276051..b0a0d91 100644 --- a/sys/dev/buslogic/bt.c +++ b/sys/dev/buslogic/bt.c @@ -1578,7 +1578,7 @@ btdone(struct bt_softc *bt, struct bt_ccb *bccb, bt_mbi_comp_code_t comp_code) struct ccb_hdr *ccb_h; cam_status error; - /* Notify all clients that a BDR occured */ + /* Notify all clients that a BDR occurred */ error = xpt_create_path(&path, /*periph*/NULL, cam_sim_path(bt->sim), bccb->hccb.target_id, @@ -1624,12 +1624,12 @@ btdone(struct bt_softc *bt, struct bt_ccb *bccb, bt_mbi_comp_code_t comp_code) case BMBI_ABORT: case BMBI_ERROR: if (bootverbose) { - printf("bt: ccb %p - error %x occured. " + printf("bt: ccb %p - error %x occurred. " "btstat = %x, sdstat = %x\n", (void *)bccb, comp_code, bccb->hccb.btstat, bccb->hccb.sdstat); } - /* An error occured */ + /* An error occurred */ switch(bccb->hccb.btstat) { case BTSTAT_DATARUN_ERROR: if (bccb->hccb.data_len == 0) { @@ -2317,7 +2317,7 @@ bttimeout(void *arg) * means that the driver attempts to clear only one error * condition at a time. In general, timeouts that occur * close together are related anyway, so there is no benefit - * in attempting to handle errors in parrallel. Timeouts will + * in attempting to handle errors in parallel. Timeouts will * be reinstated when the recovery process ends. */ if ((bccb->flags & BCCB_DEVICE_RESET) == 0) { diff --git a/sys/dev/buslogic/bt_eisa.c b/sys/dev/buslogic/bt_eisa.c index 6a61d7a..e68d2f7 100644 --- a/sys/dev/buslogic/bt_eisa.c +++ b/sys/dev/buslogic/bt_eisa.c @@ -78,7 +78,7 @@ __FBSDID("$FreeBSD$"); #define EISA_IRQ_TYPE 0x08D #define LEVEL 0x40 -/* Definitions for the AMI Series 48 controler */ +/* Definitions for the AMI Series 48 controller */ #define AMI_EISA_IOSIZE 0x500 /* Two separate ranges?? */ #define AMI_EISA_SLOT_OFFSET 0x800 #define AMI_EISA_IOCONF 0x000 diff --git a/sys/dev/bwi/if_bwi.c b/sys/dev/bwi/if_bwi.c index 2bb5f8a..45706e8 100644 --- a/sys/dev/bwi/if_bwi.c +++ b/sys/dev/bwi/if_bwi.c @@ -3747,7 +3747,7 @@ bwi_rx_radiotap(struct bwi_softc *sc, struct mbuf *m, if (wh->i_fc[1] & IEEE80211_FC1_PROTECTED) sc->sc_rx_th.wr_flags |= IEEE80211_RADIOTAP_F_WEP; - sc->sc_rx_th.wr_tsf = hdr->rxh_tsf; /* No endian convertion */ + sc->sc_rx_th.wr_tsf = hdr->rxh_tsf; /* No endian conversion */ sc->sc_rx_th.wr_rate = rate; sc->sc_rx_th.wr_antsignal = rssi; sc->sc_rx_th.wr_antnoise = noise; diff --git a/sys/dev/bxe/bxe.c b/sys/dev/bxe/bxe.c index 170d157..3b5ab17 100644 --- a/sys/dev/bxe/bxe.c +++ b/sys/dev/bxe/bxe.c @@ -2221,7 +2221,7 @@ storm_memset_eq_prod(struct bxe_softc *sc, /* * Post a slowpath command. * - * A slowpath command is used to propogate a configuration change through + * A slowpath command is used to propagate a configuration change through * the controller in a controlled manner, allowing each STORM processor and * other H/W blocks to phase in the change. The commands sent on the * slowpath are referred to as ramrods. Depending on the ramrod used the @@ -4248,7 +4248,7 @@ bxe_nic_unload(struct bxe_softc *sc, /* * Nothing to do during unload if previous bxe_nic_load() - * did not completed succesfully - all resourses are released. + * did not completed successfully - all resourses are released. */ if ((sc->state == BXE_STATE_CLOSED) || (sc->state == BXE_STATE_ERROR)) { @@ -4762,7 +4762,7 @@ bxe_dump_mbuf(struct bxe_softc *sc, * Checks to ensure the 13 bd sliding window is >= MSS for TSO. * Check that (13 total bds - 3 bds) = 10 bd window >= MSS. * The window: 3 bds are = 1 for headers BD + 2 for parse BD and last BD - * The headers comes in a seperate bd in FreeBSD so 13-3=10. + * The headers comes in a separate bd in FreeBSD so 13-3=10. * Returns: 0 if OK to send, 1 if packet needs further defragmentation */ static int @@ -7990,7 +7990,7 @@ bxe_attn_int_deasserted2(struct bxe_softc *sc, mask1 = REG_RD(sc, PXP2_REG_PXP2_INT_MASK_1); val0 = REG_RD(sc, PXP2_REG_PXP2_INT_STS_0); /* - * If the olny PXP2_EOP_ERROR_BIT is set in + * If the only PXP2_EOP_ERROR_BIT is set in * STS0 and STS1 - clear it * * probably we lose additional attentions between @@ -10627,7 +10627,7 @@ bxe_set_234_gates(struct bxe_softc *sc, (!close) ? (val | HC_CONFIG_0_REG_BLOCK_DISABLE_0) : (val & ~(uint32_t)HC_CONFIG_0_REG_BLOCK_DISABLE_0)); } else { - /* Prevent incomming interrupts in IGU */ + /* Prevent incoming interrupts in IGU */ val = REG_RD(sc, IGU_REG_BLOCK_CONFIGURATION); REG_WR(sc, IGU_REG_BLOCK_CONFIGURATION, diff --git a/sys/dev/bxe/bxe_elink.c b/sys/dev/bxe/bxe_elink.c index 0ce0433..ab5bac4 100644 --- a/sys/dev/bxe/bxe_elink.c +++ b/sys/dev/bxe/bxe_elink.c @@ -1294,7 +1294,7 @@ static void elink_ets_e3b0_set_credit_upper_bound_nig( * Will return the NIG ETS registers to init values.Except * credit_upper_bound. * That isn't used in this configuration (No WFQ is enabled) and will be -* configured acording to spec +* configured according to spec. *. ******************************************************************************/ static void elink_ets_e3b0_nig_disabled(const struct elink_params *params, @@ -1411,7 +1411,7 @@ static void elink_ets_e3b0_set_credit_upper_bound_pbf( * Will return the PBF ETS registers to init values.Except * credit_upper_bound. * That isn't used in this configuration (No WFQ is enabled) and will be -* configured acording to spec +* configured according to spec. *. ******************************************************************************/ static void elink_ets_e3b0_pbf_disabled(const struct elink_params *params) @@ -1469,7 +1469,7 @@ static void elink_ets_e3b0_pbf_disabled(const struct elink_params *params) } /****************************************************************************** * Description: -* E3B0 disable will return basicly the values to init values. +* E3B0 disable will return basically the values to init values. *. ******************************************************************************/ static elink_status_t elink_ets_e3b0_disabled(const struct elink_params *params, @@ -1492,7 +1492,7 @@ static elink_status_t elink_ets_e3b0_disabled(const struct elink_params *params, /****************************************************************************** * Description: -* Disable will return basicly the values to init values. +* Disable will return basically the values to init values. * ******************************************************************************/ elink_status_t elink_ets_disabled(struct elink_params *params, @@ -3762,7 +3762,7 @@ static elink_status_t elink_eee_initial_config(struct elink_params *params, { vars->eee_status |= ((uint32_t) mode) << SHMEM_EEE_SUPPORTED_SHIFT; - /* Propogate params' bits --> vars (for migration exposure) */ + /* Propagate params' bits --> vars (for migration exposure) */ if (params->eee_mode & ELINK_EEE_MODE_ENABLE_LPI) vars->eee_status |= SHMEM_EEE_LPI_REQUESTED_BIT; else @@ -14632,7 +14632,7 @@ static void elink_check_over_curr(struct elink_params *params, vars->phy_flags &= ~PHY_OVER_CURRENT_FLAG; } -/* Returns 0 if no change occured since last check; 1 otherwise. */ +/* Returns 0 if no change occurred since last check; 1 otherwise. */ static uint8_t elink_analyze_link_error(struct elink_params *params, struct elink_vars *vars, uint32_t status, uint32_t phy_flag, uint32_t link_flag, uint8_t notify) diff --git a/sys/dev/bxe/bxe_stats.c b/sys/dev/bxe/bxe_stats.c index 03e643c..2310e8f 100644 --- a/sys/dev/bxe/bxe_stats.c +++ b/sys/dev/bxe/bxe_stats.c @@ -1670,7 +1670,7 @@ bxe_stats_init(struct bxe_softc *sc) bxe_port_stats_base_init(sc); } - /* mark the end of statistics initializiation */ + /* mark the end of statistics initialization */ sc->stats_init = FALSE; } diff --git a/sys/dev/bxe/bxe_stats.h b/sys/dev/bxe/bxe_stats.h index 75f0248..a0f5792 100644 --- a/sys/dev/bxe/bxe_stats.h +++ b/sys/dev/bxe/bxe_stats.h @@ -264,7 +264,7 @@ struct bxe_eth_stats { uint32_t mbuf_alloc_sge; uint32_t mbuf_alloc_tpa; - /* num. of times tx queue full occured */ + /* num. of times tx queue full occurred */ uint32_t tx_queue_full_return; }; @@ -370,7 +370,7 @@ struct bxe_eth_q_stats { uint32_t mbuf_alloc_sge; uint32_t mbuf_alloc_tpa; - /* num. of times tx queue full occured */ + /* num. of times tx queue full occurred */ uint32_t tx_queue_full_return; }; diff --git a/sys/dev/bxe/ecore_hsi.h b/sys/dev/bxe/ecore_hsi.h index 9ed0264..d1924a7 100644 --- a/sys/dev/bxe/ecore_hsi.h +++ b/sys/dev/bxe/ecore_hsi.h @@ -8188,7 +8188,7 @@ union fcoe_kcqe_params struct fcoe_kcqe { uint32_t fcoe_conn_id /* Drivers connection ID (only 16 bits are used) */; - uint32_t completion_status /* 0=command completed succesfuly, 1=command failed */; + uint32_t completion_status /* 0=command completed successfully, 1=command failed */; uint32_t fcoe_conn_context_id /* Context ID of the FCoE connection */; union fcoe_kcqe_params params /* command-specific parameters */; uint16_t qe_self_seq /* Self identifying sequence number */; @@ -9464,7 +9464,7 @@ union iscsi_kcqe_params struct iscsi_kcqe { uint32_t iscsi_conn_id /* Drivers connection ID (only 16 bits are used) */; - uint32_t completion_status /* 0=command completed succesfuly, 1=command failed */; + uint32_t completion_status /* 0=command completed successfully, 1=command failed */; uint32_t iscsi_conn_context_id /* Context ID of the iSCSI connection */; union iscsi_kcqe_params params /* command-specific parameters */; #if defined(__BIG_ENDIAN) @@ -10241,7 +10241,7 @@ struct tstorm_tcp_st_context_section uint16_t mid_mac_address /* TX source MAC MID-16 */; uint16_t msb_mac_address /* TX source MAC MSB-16 */; #endif - uint32_t rightmost_received_seq /* The maximum sequence ever recieved - used for The New Patent */; + uint32_t rightmost_received_seq /* The maximum sequence ever received - used for The New Patent */; }; /* @@ -11694,7 +11694,7 @@ struct flow_control_configuration struct function_start_data { uint8_t function_mode /* the function mode */; - uint8_t allow_npar_tx_switching /* If set, inter-pf tx switching is allowed in Switch Independant function mode. (E2/E3 Only) */; + uint8_t allow_npar_tx_switching /* If set, inter-pf tx switching is allowed in Switch Independent function mode. (E2/E3 Only) */; uint16_t sd_vlan_tag /* value of Vlan in case of switch depended multi-function mode */; uint16_t vif_id /* value of VIF id in case of NIV multi-function mode */; uint8_t path_id; @@ -11712,7 +11712,7 @@ struct function_start_data uint8_t sd_accept_mf_clss_fail /* If set, accept packets that fail Multi-Function Switch-Dependent classification. Only one VNIC on the port can have this set to 1 */; uint8_t sd_accept_mf_clss_fail_match_ethtype /* If set, accepted packets must match the ethertype of sd_clss_fail_ethtype */; uint16_t sd_accept_mf_clss_fail_ethtype /* Ethertype to match in the case of sd_accept_mf_clss_fail_match_ethtype */; - uint16_t sd_vlan_eth_type /* Value of ether-type to use in the case of switch dependant multi-function mode. Setting this to 0 uses the default value of 0x8100 */; + uint16_t sd_vlan_eth_type /* Value of ether-type to use in the case of switch dependent multi-function mode. Setting this to 0 uses the default value of 0x8100 */; uint8_t sd_vlan_force_pri_flg /* If set, the SD Vlan Priority is forced to the value of the sd_vlan_pri_force_val field regardless of the DCB or inband VLAN priority. */; uint8_t sd_vlan_force_pri_val /* value to force SD Vlan Priority if sd_vlan_pri_force_flg is set */; uint8_t c2s_pri_tt_valid /* When set, c2s_pri_trans_table is valid */; @@ -11754,7 +11754,7 @@ struct function_update_data uint8_t sd_vlan_eth_type_change_flg /* If set, the SD VLAN Ethertype is changed according to the field sd_vlan_eth_type */; uint8_t reserved1; uint16_t sd_vlan_tag /* New value of Outer Vlan in case of switch depended multi-function mode */; - uint16_t sd_vlan_eth_type /* New value of ether-type in the case of switch dependant multi-function mode. Setting this to 0 restores the default value of 0x8100 */; + uint16_t sd_vlan_eth_type /* New value of ether-type in the case of switch dependent multi-function mode. Setting this to 0 restores the default value of 0x8100 */; uint16_t reserved0; uint32_t reserved2; }; @@ -12564,7 +12564,7 @@ struct ustorm_toe_prefetched_bd uint32_t __addr_hi /* receive payload base address - Single continuous buffer (page) pointer */; #if defined(__BIG_ENDIAN) uint16_t flags; - #define __USTORM_TOE_PREFETCHED_BD_START (0x1<<0) /* BitField flagsbd command flags this bd is the begining of an application buffer */ + #define __USTORM_TOE_PREFETCHED_BD_START (0x1<<0) /* BitField flagsbd command flags this bd is the beginning of an application buffer */ #define __USTORM_TOE_PREFETCHED_BD_START_SHIFT 0 #define __USTORM_TOE_PREFETCHED_BD_END (0x1<<1) /* BitField flagsbd command flags this bd is the end of an application buffer */ #define __USTORM_TOE_PREFETCHED_BD_END_SHIFT 1 @@ -12578,7 +12578,7 @@ struct ustorm_toe_prefetched_bd #elif defined(__LITTLE_ENDIAN) uint16_t __buf_un_used /* Number of bytes left for placement in the pre fetched application/grq bd 0 size for buffer is not valid */; uint16_t flags; - #define __USTORM_TOE_PREFETCHED_BD_START (0x1<<0) /* BitField flagsbd command flags this bd is the begining of an application buffer */ + #define __USTORM_TOE_PREFETCHED_BD_START (0x1<<0) /* BitField flagsbd command flags this bd is the beginning of an application buffer */ #define __USTORM_TOE_PREFETCHED_BD_START_SHIFT 0 #define __USTORM_TOE_PREFETCHED_BD_END (0x1<<1) /* BitField flagsbd command flags this bd is the end of an application buffer */ #define __USTORM_TOE_PREFETCHED_BD_END_SHIFT 1 @@ -12609,9 +12609,9 @@ struct ustorm_toe_st_context #define USTORM_TOE_ST_CONTEXT_RESERVED0 (0x1F<<3) /* BitField flags2various state flags */ #define USTORM_TOE_ST_CONTEXT_RESERVED0_SHIFT 3 uint8_t __indirection_shift /* Offset in bits of the cupid of this connection on the 64Bits fetched from internal memoy */; - uint16_t indirection_ram_offset /* address offset in internal memory from the begining of the table consisting the cpu id of this connection (Only 12 bits are used) */; + uint16_t indirection_ram_offset /* address offset in internal memory from the beginning of the table consisting the cpu id of this connection (Only 12 bits are used) */; #elif defined(__LITTLE_ENDIAN) - uint16_t indirection_ram_offset /* address offset in internal memory from the begining of the table consisting the cpu id of this connection (Only 12 bits are used) */; + uint16_t indirection_ram_offset /* address offset in internal memory from the beginning of the table consisting the cpu id of this connection (Only 12 bits are used) */; uint8_t __indirection_shift /* Offset in bits of the cupid of this connection on the 64Bits fetched from internal memoy */; uint8_t flags2; #define USTORM_TOE_ST_CONTEXT_IGNORE_GRQ_PUSH (0x1<<0) /* BitField flags2various state flags we will ignore grq push unless it is ping pong test */ @@ -12637,8 +12637,8 @@ struct ustorm_toe_st_context uint32_t initial_rcv_wnd /* the maximal advertized window */; uint32_t __bytes_cons /* the last rq_available_bytes producer that was read from host - used to know how many bytes were added */; uint32_t __prev_consumed_grq_bytes /* the last rq_available_bytes producer that was read from host - used to know how many bytes were added */; - uint32_t prev_rcv_win_right_edge /* siquence of the last bytes that can be recieved - used to know how many bytes were added */; - uint32_t rcv_nxt /* Receive sequence: next expected - of the right most recieved packet */; + uint32_t prev_rcv_win_right_edge /* siquence of the last bytes that can be received - used to know how many bytes were added */; + uint32_t rcv_nxt /* Receive sequence: next expected - of the right most received packet */; struct ustorm_toe_prefetched_isle_bd __isle_bd /* prefetched bd for the isle */; struct ustorm_toe_ring_params pen_ring_params /* peninsula ring params */; struct ustorm_toe_prefetched_bd __pen_bd_0 /* peninsula prefetched bd for the peninsula */; @@ -12839,7 +12839,7 @@ struct toe_rx_bd uint32_t addr_hi /* receive payload base address - Single continuous buffer (page) pointer */; #if defined(__BIG_ENDIAN) uint16_t flags; - #define TOE_RX_BD_START (0x1<<0) /* BitField flagsbd command flags this bd is the begining of an application buffer */ + #define TOE_RX_BD_START (0x1<<0) /* BitField flagsbd command flags this bd is the beginning of an application buffer */ #define TOE_RX_BD_START_SHIFT 0 #define TOE_RX_BD_END (0x1<<1) /* BitField flagsbd command flags this bd is the end of an application buffer */ #define TOE_RX_BD_END_SHIFT 1 @@ -12853,7 +12853,7 @@ struct toe_rx_bd #elif defined(__LITTLE_ENDIAN) uint16_t size /* Size of the buffer pointed by the BD */; uint16_t flags; - #define TOE_RX_BD_START (0x1<<0) /* BitField flagsbd command flags this bd is the begining of an application buffer */ + #define TOE_RX_BD_START (0x1<<0) /* BitField flagsbd command flags this bd is the beginning of an application buffer */ #define TOE_RX_BD_START_SHIFT 0 #define TOE_RX_BD_END (0x1<<1) /* BitField flagsbd command flags this bd is the end of an application buffer */ #define TOE_RX_BD_END_SHIFT 1 @@ -12935,7 +12935,7 @@ struct toe_rx_cqe */ struct toe_rx_db_data { - uint32_t rcv_win_right_edge /* siquence of the last bytes that can be recieved */; + uint32_t rcv_win_right_edge /* siquence of the last bytes that can be received */; uint32_t bytes_prod /* cyclic counter of posted bytes */; #if defined(__BIG_ENDIAN) uint8_t reserved1 /* reserved */; diff --git a/sys/dev/bxe/ecore_init.h b/sys/dev/bxe/ecore_init.h index 8ce06ab..05c5bf7 100644 --- a/sys/dev/bxe/ecore_init.h +++ b/sys/dev/bxe/ecore_init.h @@ -321,7 +321,7 @@ static inline void ecore_dcb_config_qm(struct bxe_softc *sc, enum cos_mode mode, /* - * congestion managment port init api description + * congestion management port init api description * the api works as follows: * the driver should pass the cmng_init_input struct, the port_init function * will prepare the required internal ram structure which will be passed back diff --git a/sys/dev/bxe/ecore_sp.h b/sys/dev/bxe/ecore_sp.h index 15403d7..10d6c08 100644 --- a/sys/dev/bxe/ecore_sp.h +++ b/sys/dev/bxe/ecore_sp.h @@ -1949,7 +1949,7 @@ void ecore_init_mcast_obj(struct bxe_softc *sc, * the current command will be enqueued to the tail of the * pending commands list. * - * Return: 0 is operation was successfull and there are no pending completions, + * Return: 0 is operation was successful and there are no pending completions, * negative if there were errors, positive if there are pending * completions. */ diff --git a/sys/dev/cardbus/cardbus_cis.c b/sys/dev/cardbus/cardbus_cis.c index 00c34a6..55c4d35 100644 --- a/sys/dev/cardbus/cardbus_cis.c +++ b/sys/dev/cardbus/cardbus_cis.c @@ -406,7 +406,7 @@ cardbus_read_tuple_conf(device_t cbdev, device_t child, uint32_t start, } /* - * Read the CIS data out of memroy. We indirect through the bus space + * Read the CIS data out of memory. We indirect through the bus space * routines to ensure proper byte ordering conversions when necessary. */ static int diff --git a/sys/dev/ce/ceddk.c b/sys/dev/ce/ceddk.c index bc98012..3707d47 100644 --- a/sys/dev/ce/ceddk.c +++ b/sys/dev/ce/ceddk.c @@ -623,7 +623,7 @@ void ce_stop_chan (ce_chan_t *c) /* XXXRIK: This function should be for comleteness, but for now I * don't use it. So I just start to write and didn't finished it yet. - * It and it is VERY BUGGY!!! Do not use it. If you realy + * It and it is VERY BUGGY!!! Do not use it. If you really * need it ask me to fix it or rewrite it by your self. * Note: most buggy part of it in ce_on_config_stop! */ diff --git a/sys/dev/ce/if_ce.c b/sys/dev/ce/if_ce.c index 85b9fce..69779d6 100644 --- a/sys/dev/ce/if_ce.c +++ b/sys/dev/ce/if_ce.c @@ -2448,7 +2448,7 @@ static int ng_ce_rmnode (node_p node) NG_NODE_UNREF (node); } #if __FreeBSD_version >= 502120 - NG_NODE_REVIVE(node); /* Persistant node */ + NG_NODE_REVIVE(node); /* Persistent node */ #else node->nd_flags &= ~NG_INVALID; #endif diff --git a/sys/dev/cesa/cesa.c b/sys/dev/cesa/cesa.c index 8a2b19d..4d71ae0 100644 --- a/sys/dev/cesa/cesa.c +++ b/sys/dev/cesa/cesa.c @@ -284,7 +284,7 @@ cesa_free_request(struct cesa_softc *sc, struct cesa_request *cr) STAILQ_CONCAT(&sc->sc_free_sdesc, &cr->cr_sdesc); CESA_UNLOCK(sc, sdesc); - /* Unload DMA memory asociated with request */ + /* Unload DMA memory associated with request */ if (cr->cr_dmap_loaded) { bus_dmamap_unload(sc->sc_data_dtag, cr->cr_dmap); cr->cr_dmap_loaded = 0; @@ -705,7 +705,7 @@ cesa_create_chain_cb(void *arg, bus_dma_segment_t *segs, int nseg, int error) /* * Fill in current packet with data. Break if there is * no more data in current DMA segment or an error - * occured. + * occurred. */ size = cesa_fill_packet(sc, &cp, &seg); if (size <= 0) { @@ -1260,7 +1260,7 @@ cesa_detach(device_t dev) /* Relase I/O and IRQ resources */ bus_release_resources(dev, cesa_res_spec, sc->sc_res); - /* Destory mutexes */ + /* Destroy mutexes */ mtx_destroy(&sc->sc_sessions_lock); mtx_destroy(&sc->sc_requests_lock); mtx_destroy(&sc->sc_sdesc_lock); diff --git a/sys/dev/ciss/cissvar.h b/sys/dev/ciss/cissvar.h index 6bc9cf4..20693af 100644 --- a/sys/dev/ciss/cissvar.h +++ b/sys/dev/ciss/cissvar.h @@ -58,7 +58,7 @@ typedef STAILQ_HEAD(, ciss_request) cr_qhead_t; /* * Interrupt reduction can be controlled by tuning the interrupt - * coalesce delay and count paramters. The delay (in microseconds) + * coalesce delay and count parameters. The delay (in microseconds) * defers delivery of interrupts to increase the chance of there being * more than one completed command ready when the interrupt is * delivered. The count expedites the delivery of the interrupt when diff --git a/sys/dev/cmx/cmx.c b/sys/dev/cmx/cmx.c index 69cf892..a7cd8ab 100644 --- a/sys/dev/cmx/cmx.c +++ b/sys/dev/cmx/cmx.c @@ -235,7 +235,7 @@ cmx_release_resources(device_t dev) } /* - * Bus independant device attachment routine. Creates the + * Bus independent device attachment routine. Creates the * character device node. */ int @@ -258,7 +258,7 @@ cmx_attach(device_t dev) } /* - * Bus independant device detachment routine. Makes sure all + * Bus independent device detachment routine. Makes sure all * allocated resources are freed, callouts disabled and waiting * processes unblocked. */ diff --git a/sys/dev/cmx/cmx_pccard.c b/sys/dev/cmx/cmx_pccard.c index ebb57cc..89411e5 100644 --- a/sys/dev/cmx/cmx_pccard.c +++ b/sys/dev/cmx/cmx_pccard.c @@ -72,7 +72,7 @@ cmx_pccard_probe(device_t dev) } /* - * Attach to the pccard, and call bus independant attach and + * Attach to the pccard, and call bus independent attach and * resource allocation routines. */ static int diff --git a/sys/dev/cp/if_cp.c b/sys/dev/cp/if_cp.c index f1a120f..426a5ee 100644 --- a/sys/dev/cp/if_cp.c +++ b/sys/dev/cp/if_cp.c @@ -2171,7 +2171,7 @@ static int ng_cp_rmnode (node_p node) NG_NODE_SET_PRIVATE (node, NULL); NG_NODE_UNREF (node); } - NG_NODE_REVIVE(node); /* Persistant node */ + NG_NODE_REVIVE(node); /* Persistent node */ #endif return 0; } diff --git a/sys/dev/cs/if_cs.c b/sys/dev/cs/if_cs.c index af8a93e..3c52d89 100644 --- a/sys/dev/cs/if_cs.c +++ b/sys/dev/cs/if_cs.c @@ -180,7 +180,7 @@ wait_eeprom_ready(struct cs_softc *sc) * * Before we issue the command, we should be !busy, so that will * be fast. The datasheet suggests that clock out from the part - * per word will be on the order of 25us, which is consistant with + * per word will be on the order of 25us, which is consistent with * the 1MHz serial clock and 16bits... We should never hit 100, * let alone 15,000 here. The original code did an unconditional * 30ms DELAY here. Bad Kharma. cs_readreg takes ~2us. diff --git a/sys/dev/cx/csigma.c b/sys/dev/cx/csigma.c index 7be2239..b0e56e1 100644 --- a/sys/dev/cx/csigma.c +++ b/sys/dev/cx/csigma.c @@ -100,7 +100,7 @@ static int cx_reset (port_t port) cx_cmd (port, CCR_RSTALL); - /* Firmware revision code should clear imediately. */ + /* Firmware revision code should clear immediately. */ /* Wait up to 10 msec for revision code to appear again. */ for (count=0; count<20000; ++count) if (inb(GFRCR(port)) != 0) diff --git a/sys/dev/cx/if_cx.c b/sys/dev/cx/if_cx.c index d513161..654e913 100644 --- a/sys/dev/cx/if_cx.c +++ b/sys/dev/cx/if_cx.c @@ -2453,7 +2453,7 @@ static int ng_cx_rmnode (node_p node) NG_NODE_SET_PRIVATE (node, NULL); NG_NODE_UNREF (node); } - NG_NODE_REVIVE(node); /* Persistant node */ + NG_NODE_REVIVE(node); /* Persistent node */ #endif return 0; } diff --git a/sys/dev/cxgb/common/cxgb_t3_hw.c b/sys/dev/cxgb/common/cxgb_t3_hw.c index 942571a..33e308e 100644 --- a/sys/dev/cxgb/common/cxgb_t3_hw.c +++ b/sys/dev/cxgb/common/cxgb_t3_hw.c @@ -651,7 +651,7 @@ struct t3_vpd { * * Read a 32-bit word from a location in VPD EEPROM using the card's PCI * VPD ROM capability. A zero is written to the flag bit when the - * addres is written to the control register. The hardware device will + * address is written to the control register. The hardware device will * set the flag to 1 when 4 bytes have been read into the data register. */ int t3_seeprom_read(adapter_t *adapter, u32 addr, u32 *data) @@ -1031,7 +1031,7 @@ static int flash_wait_op(adapter_t *adapter, int attempts, int delay) * Read the specified number of 32-bit words from the serial flash. * If @byte_oriented is set the read data is stored as a byte array * (i.e., big-endian), otherwise as 32-bit words in the platform's - * natural endianess. + * natural endianness. */ int t3_read_flash(adapter_t *adapter, unsigned int addr, unsigned int nwords, u32 *data, int byte_oriented) @@ -1068,7 +1068,7 @@ int t3_read_flash(adapter_t *adapter, unsigned int addr, unsigned int nwords, * Writes up to a page of data (256 bytes) to the serial flash starting * at the given address. * If @byte_oriented is set the write data is stored as a 32-bit - * big-endian array, otherwise in the processor's native endianess. + * big-endian array, otherwise in the processor's native endianness. * */ static int t3_write_flash(adapter_t *adapter, unsigned int addr, @@ -1738,7 +1738,7 @@ struct intr_info { * * A table driven interrupt handler that applies a set of masks to an * interrupt status word and performs the corresponding actions if the - * interrupts described by the mask have occured. The actions include + * interrupts described by the mask have occurred. The actions include * optionally printing a warning or alert message, and optionally * incrementing a stat counter. The table is terminated by an entry * specifying mask 0. Returns the number of fatal interrupt conditions. @@ -3338,7 +3338,7 @@ static void __devinit init_mtus(unsigned short mtus[]) { /* * See draft-mathis-plpmtud-00.txt for the values. The min is 88 so - * it can accomodate max size TCP/IP headers when SACK and timestamps + * it can accommodate max size TCP/IP headers when SACK and timestamps * are enabled and still have at least 8 bytes of payload. */ mtus[0] = 88; diff --git a/sys/dev/cxgb/ulp/iw_cxgb/iw_cxgb_hal.c b/sys/dev/cxgb/ulp/iw_cxgb/iw_cxgb_hal.c index 2427263..4267e25 100644 --- a/sys/dev/cxgb/ulp/iw_cxgb/iw_cxgb_hal.c +++ b/sys/dev/cxgb/ulp/iw_cxgb/iw_cxgb_hal.c @@ -633,7 +633,7 @@ cxio_hal_ctrl_qp_write_mem(struct cxio_rdev *rdev_p, u32 addr, { u32 i, nr_wqe, copy_len; u8 *copy_data; - u8 wr_len, utx_len; /* lenght in 8 byte flit */ + u8 wr_len, utx_len; /* length in 8 byte flit */ enum t3_wr_flags flag; __be64 *wqe; u64 utx_cmd; diff --git a/sys/dev/cxgb/ulp/iw_cxgb/iw_cxgb_wr.h b/sys/dev/cxgb/ulp/iw_cxgb/iw_cxgb_wr.h index 8718aa0..57690a2 100644 --- a/sys/dev/cxgb/ulp/iw_cxgb/iw_cxgb_wr.h +++ b/sys/dev/cxgb/ulp/iw_cxgb/iw_cxgb_wr.h @@ -633,7 +633,7 @@ struct t3_swrq { * A T3 WQ implements both the SQ and RQ. */ struct t3_wq { - union t3_wr *queue; /* DMA accessable memory */ + union t3_wr *queue; /* DMA accessible memory */ bus_addr_t dma_addr; /* DMA address for HW */ u32 error; /* 1 once we go to ERROR */ u32 qpid; diff --git a/sys/dev/cxgb/ulp/tom/cxgb_cpl_io.c b/sys/dev/cxgb/ulp/tom/cxgb_cpl_io.c index 6343d4d..804c9e1 100644 --- a/sys/dev/cxgb/ulp/tom/cxgb_cpl_io.c +++ b/sys/dev/cxgb/ulp/tom/cxgb_cpl_io.c @@ -861,7 +861,7 @@ calc_opt0l(struct socket *so, int rcv_bufsize) KASSERT(rcv_bufsize <= M_RCV_BUFSIZ, ("%s: rcv_bufsize (%d) is too high", __func__, rcv_bufsize)); - if (so != NULL) /* optional because noone cares about IP TOS */ + if (so != NULL) /* optional because no one cares about IP TOS */ opt0l |= V_TOS(INP_TOS(sotoinpcb(so))); return (htobe32(opt0l)); diff --git a/sys/dev/cxgbe/adapter.h b/sys/dev/cxgbe/adapter.h index 2193142..5800faa 100644 --- a/sys/dev/cxgbe/adapter.h +++ b/sys/dev/cxgbe/adapter.h @@ -621,7 +621,7 @@ struct sge_wrq { /* * Scratch space for work requests that wrap around after reaching the - * status page, and some infomation about the last WR that used it. + * status page, and some information about the last WR that used it. */ uint16_t ss_pidx; uint16_t ss_len; diff --git a/sys/dev/cxgbe/common/t4_hw.c b/sys/dev/cxgbe/common/t4_hw.c index 03312b1..7ecdb81 100644 --- a/sys/dev/cxgbe/common/t4_hw.c +++ b/sys/dev/cxgbe/common/t4_hw.c @@ -2706,7 +2706,7 @@ int t4_seeprom_read(struct adapter *adapter, u32 addr, u32 *data) } /* - * Grab the returned data, swizzle it into our endianess and + * Grab the returned data, swizzle it into our endianness and * return success. */ t4_os_pci_read_cfg4(adapter, base + PCI_VPD_DATA, data); @@ -7739,7 +7739,7 @@ static void read_filter_mode_and_ingress_config(struct adapter *adap) /* * If TP_INGRESS_CONFIG.VNID == 0, then TP_VLAN_PRI_MAP.VNIC_ID - * represents the presense of an Outer VLAN instead of a VNIC ID. + * represents the presence of an Outer VLAN instead of a VNIC ID. */ if ((tpp->ingress_config & F_VNIC) == 0) tpp->vnic_shift = -1; @@ -9121,7 +9121,7 @@ int t4_config_watchdog(struct adapter *adapter, unsigned int mbox, /* * The watchdog command expects a timeout in units of 10ms so we need * to convert it here (via rounding) and force a minimum of one 10ms - * "tick" if the timeout is non-zero but the convertion results in 0 + * "tick" if the timeout is non-zero but the conversion results in 0 * ticks. */ ticks = (timeout + 5)/10; diff --git a/sys/dev/cxgbe/cxgbei/cxgbei.c b/sys/dev/cxgbe/cxgbei/cxgbei.c index 66ceb89..775e3a2 100644 --- a/sys/dev/cxgbe/cxgbei/cxgbei.c +++ b/sys/dev/cxgbe/cxgbei/cxgbei.c @@ -214,7 +214,7 @@ t4_ddp_set_map(struct cxgbei_data *ci, void *iccp, /* * on T4, if we use a mix of IMMD and DSGL with ULP_MEM_WRITE, - * the order would not be garanteed, so we will stick with IMMD + * the order would not be guaranteed, so we will stick with IMMD */ gl->tid = toep->tid; gl->port_id = toep->vi->pi->port_id; diff --git a/sys/dev/cxgbe/firmware/t4fw_cfg_uwire.txt b/sys/dev/cxgbe/firmware/t4fw_cfg_uwire.txt index cc8ad8b..43dc76e 100644 --- a/sys/dev/cxgbe/firmware/t4fw_cfg_uwire.txt +++ b/sys/dev/cxgbe/firmware/t4fw_cfg_uwire.txt @@ -17,7 +17,7 @@ # finite. This requires balancing the configuration/operation needs of # device drivers across OSes and a large number of customer application. # -# Some of the more important resources to allocate and their constaints are: +# Some of the more important resources to allocate and their constraints are: # 1. Virtual Interfaces: 128. # 2. Ingress Queues with Free Lists: 1024. PCI-E SR-IOV Virtual Functions # must use a power of 2 Ingress Queues. @@ -275,7 +275,7 @@ # to directly select the type of Physical Function to which they wish to be # attached. # -# Note that the actual values used for the PCI-E Intelectual Property will be +# Note that the actual values used for the PCI-E Intellectual Property will be # 1 less than those below since that's the way it "counts" things. For # readability, we use the number we actually mean ... # diff --git a/sys/dev/cxgbe/firmware/t4fw_interface.h b/sys/dev/cxgbe/firmware/t4fw_interface.h index f4d7825..ccb3612 100644 --- a/sys/dev/cxgbe/firmware/t4fw_interface.h +++ b/sys/dev/cxgbe/firmware/t4fw_interface.h @@ -35,7 +35,7 @@ ********************************/ enum fw_retval { - FW_SUCCESS = 0, /* completed sucessfully */ + FW_SUCCESS = 0, /* completed successfully */ FW_EPERM = 1, /* operation not permitted */ FW_ENOENT = 2, /* no such file or directory */ FW_EIO = 5, /* input/output error; hw bad */ @@ -8635,7 +8635,7 @@ enum pcie_fw_eval { **********************************************/ /* - * this register is available as 32-bit of persistent storage (accross + * this register is available as 32-bit of persistent storage (across * PL_RST based chip-reset) for boot drivers (i.e. firmware and driver * will not write it) */ diff --git a/sys/dev/cxgbe/firmware/t5fw_cfg_fpga.txt b/sys/dev/cxgbe/firmware/t5fw_cfg_fpga.txt index e1c8b00..4c74fa1 100644 --- a/sys/dev/cxgbe/firmware/t5fw_cfg_fpga.txt +++ b/sys/dev/cxgbe/firmware/t5fw_cfg_fpga.txt @@ -17,7 +17,7 @@ # finite. This requires balancing the configuration/operation needs of # device drivers across OSes and a large number of customer application. # -# Some of the more important resources to allocate and their constaints are: +# Some of the more important resources to allocate and their constraints are: # 1. Virtual Interfaces: 128. # 2. Ingress Queues with Free Lists: 1024. PCI-E SR-IOV Virtual Functions # must use a power of 2 Ingress Queues. @@ -292,7 +292,7 @@ # to directly select the type of Physical Function to which they wish to be # attached. # -# Note that the actual values used for the PCI-E Intelectual Property will be +# Note that the actual values used for the PCI-E Intellectual Property will be # 1 less than those below since that's the way it "counts" things. For # readability, we use the number we actually mean ... # diff --git a/sys/dev/cxgbe/firmware/t5fw_cfg_uwire.txt b/sys/dev/cxgbe/firmware/t5fw_cfg_uwire.txt index 6fcc934..d6caf2c 100644 --- a/sys/dev/cxgbe/firmware/t5fw_cfg_uwire.txt +++ b/sys/dev/cxgbe/firmware/t5fw_cfg_uwire.txt @@ -18,7 +18,7 @@ # are finite. This requires balancing the configuration/operation needs of # device drivers across OSes and a large number of customer application. # -# Some of the more important resources to allocate and their constaints are: +# Some of the more important resources to allocate and their constraints are: # 1. Virtual Interfaces: 256. # 2. Ingress Queues with Free Lists: 1024. # 3. Egress Queues: 128K. @@ -309,7 +309,7 @@ # to directly select the type of Physical Function to which they wish to be # attached. # -# Note that the actual values used for the PCI-E Intelectual Property will be +# Note that the actual values used for the PCI-E Intellectual Property will be # 1 less than those below since that's the way it "counts" things. For # readability, we use the number we actually mean ... # diff --git a/sys/dev/cxgbe/offload.h b/sys/dev/cxgbe/offload.h index 992b4cd..d1363c4 100644 --- a/sys/dev/cxgbe/offload.h +++ b/sys/dev/cxgbe/offload.h @@ -87,7 +87,7 @@ struct tid_info { u_int nstids; u_int stid_base; u_int stids_in_use; - u_int nstids_free_head; /* # of available stids at the begining */ + u_int nstids_free_head; /* # of available stids at the beginning */ struct stid_head stids; struct mtx atid_lock __aligned(CACHE_LINE_SIZE); diff --git a/sys/dev/cxgbe/t4_ioctl.h b/sys/dev/cxgbe/t4_ioctl.h index 473cf89..fdc5e98 100644 --- a/sys/dev/cxgbe/t4_ioctl.h +++ b/sys/dev/cxgbe/t4_ioctl.h @@ -156,7 +156,7 @@ struct t4_filter_tuple { uint16_t dport; /* destination port */ /* - * A combination of these (upto 36 bits) is available. TP_VLAN_PRI_MAP + * A combination of these (up to 36 bits) is available. TP_VLAN_PRI_MAP * is used to select the global mode and all filters are limited to the * set of fields allowed by the global mode. */ diff --git a/sys/dev/cxgbe/t4_l2t.c b/sys/dev/cxgbe/t4_l2t.c index cca1bf3..cab5cc2 100644 --- a/sys/dev/cxgbe/t4_l2t.c +++ b/sys/dev/cxgbe/t4_l2t.c @@ -59,7 +59,7 @@ __FBSDID("$FreeBSD$"); * can change state or increment its ref count during allocation as both of * these perform lookups. * - * Note: We do not take refereces to ifnets in this module because both + * Note: We do not take references to ifnets in this module because both * the TOE and the sockets already hold references to the interfaces and the * lifetime of an L2T entry is fully contained in the lifetime of the TOE. */ diff --git a/sys/dev/cxgbe/t4_main.c b/sys/dev/cxgbe/t4_main.c index e3b64b0..1e86aa9 100644 --- a/sys/dev/cxgbe/t4_main.c +++ b/sys/dev/cxgbe/t4_main.c @@ -4146,7 +4146,7 @@ vi_full_init(struct vi_info *vi) if (extra) { if_printf(ifp, - "global RSS config (0x%x) cannot be accomodated.\n", + "global RSS config (0x%x) cannot be accommodated.\n", hashconfig); } if (extra & RSS_HASHTYPE_RSS_IPV4) @@ -5207,7 +5207,7 @@ cxgbe_sysctls(struct port_info *pi) SYSCTL_ADD_UQUAD(ctx, children, OID_AUTO, #name, CTLFLAG_RD, \ &pi->stats.name, desc) - /* We get these from port_stats and they may be stale by upto 1s */ + /* We get these from port_stats and they may be stale by up to 1s */ SYSCTL_ADD_T4_PORTSTAT(rx_ovflow0, "# drops due to buffer-group 0 overflows"); SYSCTL_ADD_T4_PORTSTAT(rx_ovflow1, diff --git a/sys/dev/cxgbe/t4_mp_ring.c b/sys/dev/cxgbe/t4_mp_ring.c index 045a24b..32ee41f 100644 --- a/sys/dev/cxgbe/t4_mp_ring.c +++ b/sys/dev/cxgbe/t4_mp_ring.c @@ -282,7 +282,7 @@ mp_ring_enqueue(struct mp_ring *r, void **items, int n, int budget) /* * Wait for other producers who got in ahead of us to enqueue their * items, one producer at a time. It is our turn when the ring's - * pidx_tail reaches the begining of our reservation (pidx_start). + * pidx_tail reaches the beginning of our reservation (pidx_start). */ while (ns.pidx_tail != pidx_start) { cpu_spinwait(); diff --git a/sys/dev/cxgbe/t4_sge.c b/sys/dev/cxgbe/t4_sge.c index fd4f291..ad1da55 100644 --- a/sys/dev/cxgbe/t4_sge.c +++ b/sys/dev/cxgbe/t4_sge.c @@ -3547,7 +3547,7 @@ ring_fl_db(struct adapter *sc, struct sge_fl *fl) } /* - * Fills up the freelist by allocating upto 'n' buffers. Buffers that are + * Fills up the freelist by allocating up to 'n' buffers. Buffers that are * recycled do not count towards this allocation budget. * * Returns non-zero to indicate that this freelist should be added to the list @@ -3569,7 +3569,7 @@ refill_fl(struct adapter *sc, struct sge_fl *fl, int n) FL_LOCK_ASSERT_OWNED(fl); /* - * We always stop at the begining of the hardware descriptor that's just + * We always stop at the beginning of the hardware descriptor that's just * before the one with the hw cidx. This is to avoid hw pidx = hw cidx, * which would mean an empty freelist to the chip. */ diff --git a/sys/dev/de/dc21040reg.h b/sys/dev/de/dc21040reg.h index c0ff191..d94eca6 100644 --- a/sys/dev/de/dc21040reg.h +++ b/sys/dev/de/dc21040reg.h @@ -175,7 +175,7 @@ typedef struct { #define TULIP_CMD_SCRAMBLER 0x01000000L /* (RW) Scrambler Mode (21140) */ #define TULIP_CMD_PCSFUNCTION 0x00800000L /* (RW) PCS Function (21140) */ #define TULIP_CMD_TXTHRSHLDCTL 0x00400000L /* (RW) Transmit Threshold Mode (21140) */ -#define TULIP_CMD_STOREFWD 0x00200000L /* (RW) Store and Foward (21140) */ +#define TULIP_CMD_STOREFWD 0x00200000L /* (RW) Store and Forward (21140) */ #define TULIP_CMD_NOHEARTBEAT 0x00080000L /* (RW) No Heartbeat (21140) */ #define TULIP_CMD_PORTSELECT 0x00040000L /* (RW) Post Select (100Mb) (21140) */ #define TULIP_CMD_ENHCAPTEFFCT 0x00040000L /* (RW) Enhanced Capture Effecty (21041) */ diff --git a/sys/dev/de/if_de.c b/sys/dev/de/if_de.c index 0e6b27c..a6253f5 100644 --- a/sys/dev/de/if_de.c +++ b/sys/dev/de/if_de.c @@ -419,7 +419,7 @@ tulip_linkup(tulip_softc_t * const sc, tulip_media_t media) * We could set probe_timeout to 0 but setting to 3000 puts this * in one central place and the only matters is tulip_link is * followed by a tulip_timeout. Therefore setting it should not - * result in aberrant behavour. + * result in aberrant behaviour. */ sc->tulip_probe_timeout = 3000; sc->tulip_probe_state = TULIP_PROBE_INACTIVE; diff --git a/sys/dev/de/if_devar.h b/sys/dev/de/if_devar.h index 8776be0..e3e364d 100644 --- a/sys/dev/de/if_devar.h +++ b/sys/dev/de/if_devar.h @@ -842,7 +842,7 @@ static const struct { /* * This driver supports a maximum of 32 tulip boards. - * This should be enough for the forseeable future. + * This should be enough for the foreseeable future. */ #define TULIP_MAX_DEVICES 32 diff --git a/sys/dev/dpt/dpt.h b/sys/dev/dpt/dpt.h index a715e588..6c0e341 100644 --- a/sys/dev/dpt/dpt.h +++ b/sys/dev/dpt/dpt.h @@ -1083,7 +1083,7 @@ typedef struct dpt_softc { /* * Every object on a unit can have a receiver, if it treats - * us as a target. We do that so that separate and independant + * us as a target. We do that so that separate and independent * clients can consume received buffers. */ @@ -1245,7 +1245,7 @@ dpt_softc_t *dpt_minor2softc(int minor_no); #endif /* _KERNEL */ /* - * This function substracts one timval structure from another, + * This function subtracts one timval structure from another, * Returning the result in usec. * It assumes that less than 4 billion usecs passed form start to end. * If times are sensless, ~0 is returned. diff --git a/sys/dev/dpt/dpt_scsi.c b/sys/dev/dpt/dpt_scsi.c index e6bbf1f..26c0f2a0 100644 --- a/sys/dev/dpt/dpt_scsi.c +++ b/sys/dev/dpt/dpt_scsi.c @@ -31,7 +31,7 @@ __FBSDID("$FreeBSD$"); /* - * dpt_scsi.c: SCSI dependant code for the DPT driver + * dpt_scsi.c: SCSI dependent code for the DPT driver * * credits: Assisted by Mike Neuffer in the early low level DPT code * Thanx to Mark Salyzyn of DPT for his assistance. @@ -95,7 +95,7 @@ devclass_t dpt_devclass; /* * These will have to be setup by parameters passed at boot/load time. For - * perfromance reasons, we make them constants for the time being. + * performance reasons, we make them constants for the time being. */ #define dpt_min_segs DPT_MAX_SEGS #define dpt_max_segs DPT_MAX_SEGS @@ -598,7 +598,7 @@ dpt_detect_cache(dpt_softc_t *dpt, dpt_ccb_t *dccb, u_int32_t dccb_busaddr, mtx_assert(&dpt->lock, MA_OWNED); /* - * Default setting, for best perfromance.. + * Default setting, for best performance.. * This is what virtually all cards default to.. */ dpt->cache_type = DPT_CACHE_WRITEBACK; @@ -1878,7 +1878,7 @@ dpt_reset_hba(dpt_softc_t *dpt) ccb->cp_msg[0] = HA_IDENTIFY_MSG | HA_DISCO_RECO; ccb->cp_scsi_cmd = 0; /* Should be ignored */ - /* Lock up the submitted queue. We are very persistant here */ + /* Lock up the submitted queue. We are very persistent here */ while (dpt->queue_status & DPT_SUBMITTED_QUEUE_ACTIVE) { DELAY(100); } diff --git a/sys/dev/drm/drm.h b/sys/dev/drm/drm.h index e579a16..a261204 100644 --- a/sys/dev/drm/drm.h +++ b/sys/dev/drm/drm.h @@ -812,7 +812,7 @@ struct drm_fence_arg { */ #define DRM_BO_HINT_WAIT_LAZY 0x00000008 /* - * The client has compute relocations refering to this buffer using the + * The client has compute relocations referring to this buffer using the * offset in the presumed_offset field. If that offset ends up matching * where this buffer lands, the kernel is free to skip executing those * relocations diff --git a/sys/dev/drm/drm_bufs.c b/sys/dev/drm/drm_bufs.c index b685a59..1ee0ffa 100644 --- a/sys/dev/drm/drm_bufs.c +++ b/sys/dev/drm/drm_bufs.c @@ -668,7 +668,7 @@ static int drm_do_addbufs_pci(struct drm_device *dev, struct drm_buf_desc *reque dma->buflist[i + dma->buf_count] = &entry->buflist[i]; } - /* No allocations failed, so now we can replace the orginal pagelist + /* No allocations failed, so now we can replace the original pagelist * with the new one. */ free(dma->pagelist, DRM_MEM_PAGES); diff --git a/sys/dev/drm/drm_vm.c b/sys/dev/drm/drm_vm.c index 7986856..4810343 100644 --- a/sys/dev/drm/drm_vm.c +++ b/sys/dev/drm/drm_vm.c @@ -43,7 +43,7 @@ int drm_mmap(struct cdev *kdev, vm_ooffset_t offset, vm_paddr_t *paddr, /* d_mmap gets called twice, we can only reference file_priv during * the first call. We need to assume that if error is EBADF the - * call was succesful and the client is authenticated. + * call was successful and the client is authenticated. */ error = devfs_get_cdevpriv((void **)&file_priv); if (error == ENOENT) { diff --git a/sys/dev/drm/i915_drv.h b/sys/dev/drm/i915_drv.h index 3896732..07af147 100644 --- a/sys/dev/drm/i915_drv.h +++ b/sys/dev/drm/i915_drv.h @@ -307,7 +307,7 @@ typedef struct drm_i915_private { * Flag if the hardware appears to be wedged. * * This is set when attempts to idle the device timeout. - * It prevents command submission from occuring and makes + * It prevents command submission from occurring and makes * every pending request fail */ int wedged; diff --git a/sys/dev/drm/mach64_state.c b/sys/dev/drm/mach64_state.c index 16848c2..a72244f 100644 --- a/sys/dev/drm/mach64_state.c +++ b/sys/dev/drm/mach64_state.c @@ -709,10 +709,10 @@ static int mach64_dma_dispatch_blit(struct drm_device * dev, * XXX: This is overkill. The most efficient solution would be having * two sets of buffers (one set private for vertex data, the other set * client-writable for blits). However that would bring more complexity - * and would break backward compatability. The solution currently + * and would break backward compatibility. The solution currently * implemented is keeping all buffers private, allowing to secure the * driver, without increasing complexity at the expense of some speed - * transfering data. + * transferring data. */ verify_ret = copy_from_user_blit(GETBUFPTR(copy_buf), blit->buf, used); diff --git a/sys/dev/drm/mga_dma.c b/sys/dev/drm/mga_dma.c index 71775b6..b3a7a98 100644 --- a/sys/dev/drm/mga_dma.c +++ b/sys/dev/drm/mga_dma.c @@ -433,7 +433,7 @@ int mga_driver_load(struct drm_device *dev, unsigned long flags) * Bootstrap the driver for AGP DMA. * * \todo - * Investigate whether there is any benifit to storing the WARP microcode in + * Investigate whether there is any benefit to storing the WARP microcode in * AGP memory. If not, the microcode may as well always be put in PCI * memory. * diff --git a/sys/dev/drm/mga_drm.h b/sys/dev/drm/mga_drm.h index 16e8990..2754c93 100644 --- a/sys/dev/drm/mga_drm.h +++ b/sys/dev/drm/mga_drm.h @@ -108,7 +108,7 @@ __FBSDID("$FreeBSD$"); */ #define MGA_NR_SAREA_CLIPRECTS 8 -/* 2 heaps (1 for card, 1 for agp), each divided into upto 128 +/* 2 heaps (1 for card, 1 for agp), each divided into up to 128 * regions, subject to a minimum region size of (1<<16) == 64k. * * Clients may subdivide regions internally, but when sharing between diff --git a/sys/dev/drm/radeon_cp.c b/sys/dev/drm/radeon_cp.c index 5d2f4c7..be83936 100644 --- a/sys/dev/drm/radeon_cp.c +++ b/sys/dev/drm/radeon_cp.c @@ -231,7 +231,7 @@ void radeon_write_agp_base(drm_radeon_private_t *dev_priv, u64 agp_base) u32 agp_base_lo = agp_base & 0xffffffff; u32 r6xx_agp_base = (agp_base >> 22) & 0x3ffff; - /* R6xx/R7xx must be aligned to a 4MB boundry */ + /* R6xx/R7xx must be aligned to a 4MB boundary */ if ((dev_priv->flags & RADEON_FAMILY_MASK) >= CHIP_RV770) RADEON_WRITE(R700_MC_VM_AGP_BASE, r6xx_agp_base); else if ((dev_priv->flags & RADEON_FAMILY_MASK) >= CHIP_R600) diff --git a/sys/dev/drm/radeon_drm.h b/sys/dev/drm/radeon_drm.h index 11f2fcb..2287ef5 100644 --- a/sys/dev/drm/radeon_drm.h +++ b/sys/dev/drm/radeon_drm.h @@ -618,7 +618,7 @@ typedef struct drm_radeon_vertex2 { } drm_radeon_vertex2_t; /* v1.3 - obsoletes drm_radeon_vertex2 - * - allows arbitarily large cliprect list + * - allows arbitrarily large cliprect list * - allows updating of tcl packet, vector and scalar state * - allows memory-efficient description of state updates * - allows state to be emitted without a primitive diff --git a/sys/dev/drm/radeon_drv.h b/sys/dev/drm/radeon_drv.h index e830a83..b4785e0 100644 --- a/sys/dev/drm/radeon_drv.h +++ b/sys/dev/drm/radeon_drv.h @@ -365,7 +365,7 @@ typedef struct drm_radeon_private { u32 scratch_ages[5]; - /* starting from here on, data is preserved accross an open */ + /* starting from here on, data is preserved across an open */ uint32_t flags; /* see radeon_chip_flags */ unsigned long fb_aper_offset; diff --git a/sys/dev/drm/radeon_state.c b/sys/dev/drm/radeon_state.c index b334a88..718c7e1 100644 --- a/sys/dev/drm/radeon_state.c +++ b/sys/dev/drm/radeon_state.c @@ -950,7 +950,7 @@ static void radeon_cp_dispatch_clear(struct drm_device * dev, } /* hyper z clear */ - /* no docs available, based on reverse engeneering by Stephane Marchesin */ + /* no docs available, based on reverse engineering by Stephane Marchesin */ if ((flags & (RADEON_DEPTH | RADEON_STENCIL)) && (flags & RADEON_CLEAR_FASTZ)) { @@ -1064,7 +1064,7 @@ static void radeon_cp_dispatch_clear(struct drm_device * dev, /* judging by the first tile offset needed, could possibly directly address/clear 4x4 tiles instead of 8x2 * 4x4 macro tiles, though would still need clear mask for - right/bottom if truely 4x4 granularity is desired ? */ + right/bottom if truly 4x4 granularity is desired ? */ OUT_RING(tileoffset * 16); /* the number of tiles to clear */ OUT_RING(nrtilesx + 1); diff --git a/sys/dev/drm/savage_bci.c b/sys/dev/drm/savage_bci.c index 0f8d66e..173993e 100644 --- a/sys/dev/drm/savage_bci.c +++ b/sys/dev/drm/savage_bci.c @@ -555,7 +555,7 @@ int savage_driver_load(struct drm_device *dev, unsigned long chipset) } /* - * Initalize mappings. On Savage4 and SavageIX the alignment + * Initialize mappings. On Savage4 and SavageIX the alignment * and size of the aperture is not suitable for automatic MTRR setup * in drm_addmap. Therefore we add them manually before the maps are * initialized, and tear them down on last close. diff --git a/sys/dev/drm/savage_drm.h b/sys/dev/drm/savage_drm.h index c54d2d4..3655b5e 100644 --- a/sys/dev/drm/savage_drm.h +++ b/sys/dev/drm/savage_drm.h @@ -32,7 +32,7 @@ __FBSDID("$FreeBSD$"); #ifndef __SAVAGE_SAREA_DEFINES__ #define __SAVAGE_SAREA_DEFINES__ -/* 2 heaps (1 for card, 1 for agp), each divided into upto 128 +/* 2 heaps (1 for card, 1 for agp), each divided into up to 128 * regions, subject to a minimum region size of (1<<16) == 64k. * * Clients may subdivide regions internally, but when sharing between diff --git a/sys/dev/drm2/drm_vm.c b/sys/dev/drm2/drm_vm.c index 3fa2aba..b7979d9 100644 --- a/sys/dev/drm2/drm_vm.c +++ b/sys/dev/drm2/drm_vm.c @@ -57,7 +57,7 @@ drm_mmap(struct cdev *kdev, vm_ooffset_t offset, vm_paddr_t *paddr, /* d_mmap gets called twice, we can only reference file_priv during * the first call. We need to assume that if error is EBADF the - * call was succesful and the client is authenticated. + * call was successful and the client is authenticated. */ error = devfs_get_cdevpriv((void **)&file_priv); if (error == ENOENT) { diff --git a/sys/dev/drm2/i915/i915_drm.h b/sys/dev/drm2/i915/i915_drm.h index c6f0be3..c9ccb35 100644 --- a/sys/dev/drm2/i915/i915_drm.h +++ b/sys/dev/drm2/i915/i915_drm.h @@ -735,7 +735,7 @@ struct drm_i915_gem_caching { __u32 handle; /** - * Cacheing level to apply or return value + * Caching level to apply or return value * * bits0-15 are for generic caching control (i.e. the above defined * values). bits16-31 are reserved for platform-specific variations diff --git a/sys/dev/drm2/i915/i915_drv.h b/sys/dev/drm2/i915/i915_drv.h index 2dff53c..3325aa1 100644 --- a/sys/dev/drm2/i915/i915_drv.h +++ b/sys/dev/drm2/i915/i915_drv.h @@ -1129,7 +1129,7 @@ struct drm_i915_gem_request { /** GEM sequence number associated with this request. */ uint32_t seqno; - /** Postion in the ringbuffer of the end of the request */ + /** Position in the ringbuffer of the end of the request */ u32 tail; /** Time at which this request was emitted, in jiffies. */ diff --git a/sys/dev/drm2/i915/i915_gem_gtt.c b/sys/dev/drm2/i915/i915_gem_gtt.c index f0e7f7a..5cd50ad 100644 --- a/sys/dev/drm2/i915/i915_gem_gtt.c +++ b/sys/dev/drm2/i915/i915_gem_gtt.c @@ -550,7 +550,7 @@ void i915_gem_init_global_gtt(struct drm_device *dev, { drm_i915_private_t *dev_priv = dev->dev_private; - /* Substract the guard page ... */ + /* Subtract the guard page ... */ drm_mm_init(&dev_priv->mm.gtt_space, start, end - start - PAGE_SIZE); if (!HAS_LLC(dev)) dev_priv->mm.gtt_space.color_adjust = i915_gtt_color_adjust; diff --git a/sys/dev/drm2/i915/intel_display.c b/sys/dev/drm2/i915/intel_display.c index 363cbf2..0a03f22 100644 --- a/sys/dev/drm2/i915/intel_display.c +++ b/sys/dev/drm2/i915/intel_display.c @@ -3403,7 +3403,7 @@ static void ironlake_crtc_enable(struct drm_crtc *crtc) * There seems to be a race in PCH platform hw (at least on some * outputs) where an enabled pipe still completes any pageflip right * away (as if the pipe is off) instead of waiting for vblank. As soon - * as the first vblank happend, everything works as expected. Hence just + * as the first vblank happened, everything works as expected. Hence just * wait for one vblank before returning to avoid strange things * happening. */ @@ -3480,7 +3480,7 @@ static void haswell_crtc_enable(struct drm_crtc *crtc) * There seems to be a race in PCH platform hw (at least on some * outputs) where an enabled pipe still completes any pageflip right * away (as if the pipe is off) instead of waiting for vblank. As soon - * as the first vblank happend, everything works as expected. Hence just + * as the first vblank happened, everything works as expected. Hence just * wait for one vblank before returning to avoid strange things * happening. */ diff --git a/sys/dev/drm2/radeon/atombios.h b/sys/dev/drm2/radeon/atombios.h index 8ef8196..16119f4 100644 --- a/sys/dev/drm2/radeon/atombios.h +++ b/sys/dev/drm2/radeon/atombios.h @@ -1797,7 +1797,7 @@ typedef struct _GET_ENGINE_CLOCK_PARAMETERS // Following Structures and constant may be obsolete /****************************************************************************/ //Maxium 8 bytes,the data read in will be placed in the parameter space. -//Read operaion successeful when the paramter space is non-zero, otherwise read operation failed +//Read operaion successeful when the parameter space is non-zero, otherwise read operation failed typedef struct _READ_EDID_FROM_HW_I2C_DATA_PARAMETERS { USHORT usPrescale; //Ratio between Engine clock and I2C clock @@ -4725,14 +4725,14 @@ ucUMAChannelNumber: System memory channel numbers. ulCSR_M3_ARB_CNTL_DEFAULT[10]: Arrays with values for CSR M3 arbiter for default ulCSR_M3_ARB_CNTL_UVD[10]: Arrays with values for CSR M3 arbiter for UVD playback. ulCSR_M3_ARB_CNTL_FS3D[10]: Arrays with values for CSR M3 arbiter for Full Screen 3D applications. -sAvail_SCLK[5]: Arrays to provide availabe list of SLCK and corresponding voltage, order from low to high +sAvail_SCLK[5]: Arrays to provide available list of SLCK and corresponding voltage, order from low to high ulGMCRestoreResetTime: GMC power restore and GMC reset time to calculate data reconnection latency. Unit in ns. ulMinimumNClk: Minimum NCLK speed among all NB-Pstates to calcualte data reconnection latency. Unit in 10kHz. ulIdleNClk: NCLK speed while memory runs in self-refresh state. Unit in 10kHz. ulDDR_DLL_PowerUpTime: DDR PHY DLL power up time. Unit in ns. ulDDR_PLL_PowerUpTime: DDR PHY PLL power up time. Unit in ns. -usPCIEClkSSPercentage: PCIE Clock Spred Spectrum Percentage in unit 0.01%; 100 mean 1%. -usPCIEClkSSType: PCIE Clock Spred Spectrum Type. 0 for Down spread(default); 1 for Center spread. +usPCIEClkSSPercentage: PCIE Clock Spread Spectrum Percentage in unit 0.01%; 100 mean 1%. +usPCIEClkSSType: PCIE Clock Spread Spectrum Type. 0 for Down spread(default); 1 for Center spread. usLvdsSSPercentage: LVDS panel ( not include eDP ) Spread Spectrum Percentage in unit of 0.01%, =0, use VBIOS default setting. usLvdsSSpreadRateIn10Hz: LVDS panel ( not include eDP ) Spread Spectrum frequency in unit of 10Hz, =0, use VBIOS default setting. usHDMISSPercentage: HDMI Spread Spectrum Percentage in unit 0.01%; 100 mean 1%, =0, use VBIOS default setting. @@ -4926,7 +4926,7 @@ ucUMAChannelNumber: System memory channel numbers. ulCSR_M3_ARB_CNTL_DEFAULT[10]: Arrays with values for CSR M3 arbiter for default ulCSR_M3_ARB_CNTL_UVD[10]: Arrays with values for CSR M3 arbiter for UVD playback. ulCSR_M3_ARB_CNTL_FS3D[10]: Arrays with values for CSR M3 arbiter for Full Screen 3D applications. -sAvail_SCLK[5]: Arrays to provide availabe list of SLCK and corresponding voltage, order from low to high +sAvail_SCLK[5]: Arrays to provide available list of SLCK and corresponding voltage, order from low to high ulGMCRestoreResetTime: GMC power restore and GMC reset time to calculate data reconnection latency. Unit in ns. ulMinimumNClk: Minimum NCLK speed among all NB-Pstates to calcualte data reconnection latency. Unit in 10kHz. ulIdleNClk: NCLK speed while memory runs in self-refresh state. Unit in 10kHz. @@ -7600,7 +7600,7 @@ typedef struct _ATOM_PPLIB_SUMO_CLOCK_INFO{ UCHAR ucEngineClockHigh; //clockfrequency >> 16. UCHAR vddcIndex; //2-bit vddc index; USHORT tdpLimit; - //please initalize to 0 + //please initialize to 0 USHORT rsv1; //please initialize to 0s ULONG rsv2[2]; @@ -7979,8 +7979,8 @@ typedef struct { typedef struct { AMD_ACPI_DESCRIPTION_HEADER SHeader; UCHAR TableUUID[16]; //0x24 - ULONG VBIOSImageOffset; //0x34. Offset to the first GOP_VBIOS_CONTENT block from the beginning of the stucture. - ULONG Lib1ImageOffset; //0x38. Offset to the first GOP_LIB1_CONTENT block from the beginning of the stucture. + ULONG VBIOSImageOffset; //0x34. Offset to the first GOP_VBIOS_CONTENT block from the beginning of the structure. + ULONG Lib1ImageOffset; //0x38. Offset to the first GOP_LIB1_CONTENT block from the beginning of the structure. ULONG Reserved[4]; //0x3C }UEFI_ACPI_VFCT; diff --git a/sys/dev/drm2/radeon/evergreen.c b/sys/dev/drm2/radeon/evergreen.c index 4643d62..67e943f 100644 --- a/sys/dev/drm2/radeon/evergreen.c +++ b/sys/dev/drm2/radeon/evergreen.c @@ -105,7 +105,7 @@ void evergreen_fix_pci_max_read_req_size(struct radeon_device *rdev) v = (ctl & PCIEM_CTL_MAX_READ_REQUEST) >> 12; /* if bios or OS sets MAX_READ_REQUEST_SIZE to an invalid value, fix it - * to avoid hangs or perfomance issues + * to avoid hangs or performance issues */ if ((v == 0) || (v == 6) || (v == 7)) { ctl &= ~PCIEM_CTL_MAX_READ_REQUEST; diff --git a/sys/dev/drm2/radeon/radeon_device.c b/sys/dev/drm2/radeon/radeon_device.c index 73b2f4c..76b4cd7 100644 --- a/sys/dev/drm2/radeon/radeon_device.c +++ b/sys/dev/drm2/radeon/radeon_device.c @@ -541,7 +541,7 @@ bool radeon_boot_test_post_card(struct radeon_device *rdev) * Allocate the dummy page used by the driver (all asics). * This dummy page is used by the driver as a filler for gart entries * when pages are taken out of the GART - * Returns 0 on sucess, -ENOMEM on failure. + * Returns 0 on success, -ENOMEM on failure. */ int radeon_dummy_page_init(struct radeon_device *rdev) { @@ -724,7 +724,7 @@ static uint32_t cail_ioreg_read(struct card_info *info, uint32_t reg) * * Initializes the driver info and register access callbacks for the * ATOM interpreter (r4xx+). - * Returns 0 on sucess, -ENOMEM on failure. + * Returns 0 on success, -ENOMEM on failure. * Called at driver startup. */ int radeon_atombios_init(struct radeon_device *rdev) @@ -793,7 +793,7 @@ void radeon_atombios_fini(struct radeon_device *rdev) * @rdev: radeon_device pointer * * Initializes the driver info for combios (r1xx-r3xx). - * Returns 0 on sucess. + * Returns 0 on success. * Called at driver startup. */ int radeon_combios_init(struct radeon_device *rdev) diff --git a/sys/dev/drm2/radeon/radeon_fence.c b/sys/dev/drm2/radeon/radeon_fence.c index 21c3541..6b1763b 100644 --- a/sys/dev/drm2/radeon/radeon_fence.c +++ b/sys/dev/drm2/radeon/radeon_fence.c @@ -613,7 +613,7 @@ int radeon_fence_wait_any(struct radeon_device *rdev, } if (fences[i]->seq == RADEON_FENCE_SIGNALED_SEQ) { - /* something was allready signaled */ + /* something was already signaled */ return 0; } @@ -644,7 +644,7 @@ int radeon_fence_wait_next_locked(struct radeon_device *rdev, int ring) seq = atomic64_read(&rdev->fence_drv[ring].last_seq) + 1ULL; if (seq >= rdev->fence_drv[ring].sync_seq[ring]) { /* nothing to wait for, last_seq is - already the last emited fence */ + already the last emitted fence */ return -ENOENT; } return radeon_fence_wait_seq(rdev, seq, ring, false, false); diff --git a/sys/dev/drm2/radeon/radeon_gart.c b/sys/dev/drm2/radeon/radeon_gart.c index 3dae6ae..cf5609a 100644 --- a/sys/dev/drm2/radeon/radeon_gart.c +++ b/sys/dev/drm2/radeon/radeon_gart.c @@ -698,7 +698,7 @@ struct radeon_fence *radeon_vm_grab_id(struct radeon_device *rdev, if (vm->fence && vm->fence == rdev->vm_manager.active[vm->id]) return NULL; - /* we definately need to flush */ + /* we definitely need to flush */ radeon_fence_unref(&vm->last_flush); /* skip over VMID 0, since it is the system VM */ diff --git a/sys/dev/drm2/radeon/radeon_gem.c b/sys/dev/drm2/radeon/radeon_gem.c index 2a55101..a96ab47 100644 --- a/sys/dev/drm2/radeon/radeon_gem.c +++ b/sys/dev/drm2/radeon/radeon_gem.c @@ -462,7 +462,7 @@ int radeon_gem_va_ioctl(struct drm_device *dev, void *data, /* !! DONT REMOVE !! * We don't support vm_id yet, to be sure we don't have have broken * userspace, reject anyone trying to use non 0 value thus moving - * forward we can use those fields without breaking existant userspace + * forward we can use those fields without breaking existent userspace */ if (args->vm_id) { args->operation = RADEON_VA_RESULT_ERROR; diff --git a/sys/dev/drm2/radeon/radeon_kms.c b/sys/dev/drm2/radeon/radeon_kms.c index 29e19df..b86e545 100644 --- a/sys/dev/drm2/radeon/radeon_kms.c +++ b/sys/dev/drm2/radeon/radeon_kms.c @@ -611,7 +611,7 @@ void radeon_disable_vblank_kms(struct drm_device *dev, int crtc) * * Gets the timestamp on the requested crtc based on the * scanout position. (all asics). - * Returns postive status flags on success, negative error on failure. + * Returns positive status flags on success, negative error on failure. */ int radeon_get_vblank_timestamp_kms(struct drm_device *dev, int crtc, int *max_error, diff --git a/sys/dev/drm2/radeon/radeon_legacy_crtc.c b/sys/dev/drm2/radeon/radeon_legacy_crtc.c index 282f200..9d6bb57 100644 --- a/sys/dev/drm2/radeon/radeon_legacy_crtc.c +++ b/sys/dev/drm2/radeon/radeon_legacy_crtc.c @@ -76,7 +76,7 @@ static void radeon_legacy_rmx_mode_set(struct drm_crtc *crtc, if ((rdev->family == CHIP_RS100) || (rdev->family == CHIP_RS200)) { /* This is to workaround the asic bug for RMX, some versions - of BIOS dosen't have this register initialized correctly. */ + of BIOS doesn't have this register initialized correctly. */ crtc_more_cntl |= RADEON_CRTC_H_CUTOFF_ACTIVE_EN; } diff --git a/sys/dev/drm2/ttm/ttm_page_alloc_dma.c b/sys/dev/drm2/ttm/ttm_page_alloc_dma.c index a5c6fed..21dc287 100644 --- a/sys/dev/drm2/ttm/ttm_page_alloc_dma.c +++ b/sys/dev/drm2/ttm/ttm_page_alloc_dma.c @@ -82,7 +82,7 @@ enum pool_type { * - dma32 (up to 2^32 - so up 4GB): * - write combined, uncached, cached. * for each 'struct device'. The 'cached' is for pages that are actively used. - * The other ones can be shrunk by the shrinker API if neccessary. + * The other ones can be shrunk by the shrinker API if necessary. * @pools: The 'struct device->dma_pools' link. * @type: Type of the pool * @lock: Protects the inuse_list and free_list from concurrnet access. Must be @@ -801,7 +801,7 @@ static int ttm_dma_page_pool_fill_locked(struct dma_pool *pool, spin_unlock_irqrestore(&pool->lock, *irq_flags); - /* Returns how many more are neccessary to fulfill the + /* Returns how many more are necessary to fulfill the * request. */ r = ttm_dma_pool_alloc_new_pages(pool, &d_pages, count); diff --git a/sys/dev/ed/if_edreg.h b/sys/dev/ed/if_edreg.h index ed2dbbe..84064bd 100644 --- a/sys/dev/ed/if_edreg.h +++ b/sys/dev/ed/if_edreg.h @@ -793,7 +793,7 @@ struct ed_ring { #define ED_3COM_PSPR 1 /* - * Drq Timer Register. Determines number of bytes to be transfered during + * Drq Timer Register. Determines number of bytes to be transferred during * a DMA burst. */ #define ED_3COM_DQTR 2 diff --git a/sys/dev/esp/esp_pci.c b/sys/dev/esp/esp_pci.c index cd88f6b..bd85d8e 100644 --- a/sys/dev/esp/esp_pci.c +++ b/sys/dev/esp/esp_pci.c @@ -292,7 +292,7 @@ esp_pci_attach(device_t dev) } error = bus_dmamap_create(esc->sc_xferdmat, 0, &esc->sc_xferdmam); if (error != 0) { - device_printf(dev, "cannnot create transfer DMA map\n"); + device_printf(dev, "cannot create transfer DMA map\n"); goto fail_xferdmat; } diff --git a/sys/dev/esp/ncr53c9xvar.h b/sys/dev/esp/ncr53c9xvar.h index 97b7241..c5c8343 100644 --- a/sys/dev/esp/ncr53c9xvar.h +++ b/sys/dev/esp/ncr53c9xvar.h @@ -102,7 +102,7 @@ /* * ECB. Holds additional information for each SCSI command Comments: We * need a separate scsi command block because we may need to overwrite it - * with a request sense command. Basicly, we refrain from fiddling with + * with a request sense command. Basically, we refrain from fiddling with * the ccb union (except do the expected updating of return values). * We'll generally update: ccb->ccb_h.status and ccb->csio.{resid, * scsi_status,sense_data}. diff --git a/sys/dev/et/if_et.c b/sys/dev/et/if_et.c index 97fbdcf..67cddc9 100644 --- a/sys/dev/et/if_et.c +++ b/sys/dev/et/if_et.c @@ -1395,7 +1395,7 @@ et_start_locked(struct ifnet *ifp) * Driver does not request TX completion interrupt for every * queued frames to prevent generating excessive interrupts. * This means driver may wait for TX completion interrupt even - * though some frames were sucessfully transmitted. Reclaiming + * though some frames were successfully transmitted. Reclaiming * transmitted frames will ensure driver see all available * descriptors. */ diff --git a/sys/dev/et/if_etreg.h b/sys/dev/et/if_etreg.h index a314921..52fa930 100644 --- a/sys/dev/et/if_etreg.h +++ b/sys/dev/et/if_etreg.h @@ -73,7 +73,7 @@ #define ET_PCIV_ACK_LATENCY_256 416 #define ET_PCIR_REPLAY_TIMER 0xC2 -#define ET_REPLAY_TIMER_RX_L0S_ADJ 250 /* XXX infered from default */ +#define ET_REPLAY_TIMER_RX_L0S_ADJ 250 /* XXX inferred from default */ #define ET_PCIV_REPLAY_TIMER_128 (711 + ET_REPLAY_TIMER_RX_L0S_ADJ) #define ET_PCIV_REPLAY_TIMER_256 (1248 + ET_REPLAY_TIMER_RX_L0S_ADJ) diff --git a/sys/dev/etherswitch/e6000sw/e6000sw.c b/sys/dev/etherswitch/e6000sw/e6000sw.c index ca4ec3f..ae552b8 100644 --- a/sys/dev/etherswitch/e6000sw/e6000sw.c +++ b/sys/dev/etherswitch/e6000sw/e6000sw.c @@ -805,7 +805,7 @@ e6000sw_setup(device_t dev, e6000sw_softc_t *sc) e6000sw_writereg(sc, REG_GLOBAL2, MGMT_EN_2x, MGMT_EN_ALL); e6000sw_writereg(sc, REG_GLOBAL2, MGMT_EN_0x, MGMT_EN_ALL); - /* Disable Remote Managment */ + /* Disable Remote Management */ e6000sw_writereg(sc, REG_GLOBAL, SWITCH_GLOBAL_CONTROL2, 0); /* Disable loopback filter and flow control messages */ diff --git a/sys/dev/fatm/if_fatm.c b/sys/dev/fatm/if_fatm.c index 83f43fd..a530a443 100644 --- a/sys/dev/fatm/if_fatm.c +++ b/sys/dev/fatm/if_fatm.c @@ -1664,7 +1664,7 @@ fatm_intr(void *p) * is stopped the stopping function will broadcast the cv. All threads will * find that the interface has been stopped and return. * - * Aquiring of the buffer is done by the fatm_getstat() function. The freeing + * Acquiring of the buffer is done by the fatm_getstat() function. The freeing * must be done by the caller when he has finished using the buffer. */ static void @@ -2105,7 +2105,7 @@ fatm_start(struct ifnet *ifp) } /* - * VCC managment + * VCC management * * This may seem complicated. The reason for this is, that we need an * asynchronuous open/close for the NATM VCCs because our ioctl handler @@ -2116,7 +2116,7 @@ fatm_start(struct ifnet *ifp) /* * Command the card to open/close a VC. - * Return the queue entry for waiting if we are succesful. + * Return the queue entry for waiting if we are successful. */ static struct cmdqueue * fatm_start_vcc(struct fatm_softc *sc, u_int vpi, u_int vci, uint32_t cmd, @@ -2849,7 +2849,7 @@ fatm_attach(device_t dev) sc->memt = rman_get_bustag(sc->memres); /* - * Convert endianess of slave access + * Convert endianness of slave access */ cfg = pci_read_config(dev, FATM_PCIR_MCTL, 1); cfg |= FATM_PCIM_SWAB; diff --git a/sys/dev/fatm/if_fatmreg.h b/sys/dev/fatm/if_fatmreg.h index d488dbf..d6eb007 100644 --- a/sys/dev/fatm/if_fatmreg.h +++ b/sys/dev/fatm/if_fatmreg.h @@ -63,7 +63,7 @@ enum { * status word to PENDING. The card sets it to COMPLETE upon completion of * the transmit/receive or command. An unused queue entry contains FREE. * The ERROR can be ored into the COMPLETE. Note, that there are circumstances - * when ERROR is set without COMPLETE beeing set (when you try to activate + * when ERROR is set without COMPLETE being set (when you try to activate * a bad VCI like, for example, VCI 0). */ enum { diff --git a/sys/dev/fatm/if_fatmvar.h b/sys/dev/fatm/if_fatmvar.h index bcd8759..ba064fe 100644 --- a/sys/dev/fatm/if_fatmvar.h +++ b/sys/dev/fatm/if_fatmvar.h @@ -118,7 +118,7 @@ typedef void (*completion_cb)(struct fatm_softc *, struct cmdqueue *); struct cmdqueue { /* command queue element */ struct fqelem q; completion_cb cb; /* call on command completion */ - int error; /* set if error occured */ + int error; /* set if error occurred */ }; /* diff --git a/sys/dev/fb/machfb.c b/sys/dev/fb/machfb.c index 03e209d..4282483 100644 --- a/sys/dev/fb/machfb.c +++ b/sys/dev/fb/machfb.c @@ -1278,7 +1278,7 @@ machfb_pci_attach(device_t dev) * Test whether the aperture is byte swapped or not, set * va_window and va_window_size as appropriate. Note that * the aperture could be mapped either big or little endian - * independently of the endianess of the host so this has + * independently of the endianness of the host so this has * to be a runtime test. */ p32 = (uint32_t *)adp->va_buffer; diff --git a/sys/dev/fb/splash.c b/sys/dev/fb/splash.c index ac005887..4a7226f 100644 --- a/sys/dev/fb/splash.c +++ b/sys/dev/fb/splash.c @@ -115,7 +115,7 @@ splash_register(splash_decoder_t *decoder) if (splash_adp != NULL) { /* - * If the video card has aleady been initialized, test + * If the video card has already been initialized, test * this decoder immediately. */ error = splash_test(decoder); diff --git a/sys/dev/fb/vga.c b/sys/dev/fb/vga.c index 83b9694..39078c6 100644 --- a/sys/dev/fb/vga.c +++ b/sys/dev/fb/vga.c @@ -948,7 +948,7 @@ probe_adapters(void) /* * Locate display adapters. - * The AT architecture supports upto two adapters. `syscons' allows + * The AT architecture supports up to two adapters. `syscons' allows * the following combinations of adapters: * 1) MDA + CGA * 2) MDA + EGA/VGA color @@ -1134,7 +1134,7 @@ probe_adapters(void) case COMP_DIFFERENT: default: /* - * Don't use the paramter table in BIOS. It doesn't + * Don't use the parameter table in BIOS. It doesn't * look familiar to us. Video mode switching is allowed * only if the new mode is the same as or based on * the initial mode. diff --git a/sys/dev/fdc/fdc.c b/sys/dev/fdc/fdc.c index e6c2bf4..699ccbb 100644 --- a/sys/dev/fdc/fdc.c +++ b/sys/dev/fdc/fdc.c @@ -2202,7 +2202,7 @@ fd_probe(device_t dev) /* anything responding? */ if (fdc_sense_int(fdc, &st0, NULL) == 0 && (st0 & NE7_ST0_EC) == 0) - break; /* already probed succesfully */ + break; /* already probed successfully */ } } } diff --git a/sys/dev/fdt/fdt_static_dtb.S b/sys/dev/fdt/fdt_static_dtb.S index 96a564a..ae1fc03 100644 --- a/sys/dev/fdt/fdt_static_dtb.S +++ b/sys/dev/fdt/fdt_static_dtb.S @@ -38,7 +38,7 @@ /* * The device tree blob must be aligned at 8-bytes boundary. Use * gas-specific 'balign' extension to ensure the same alignment behaviour on - * all archs (the .align directive meaning can vary accross gas arch + * all archs (the .align directive meaning can vary across gas arch * variations). */ .balign 8 diff --git a/sys/dev/fe/if_fe_isa.c b/sys/dev/fe/if_fe_isa.c index 8dc7cba..092f30e 100644 --- a/sys/dev/fe/if_fe_isa.c +++ b/sys/dev/fe/if_fe_isa.c @@ -364,7 +364,7 @@ fe_probe_fmv(device_t dev) * u_short const * func (struct fe_softc * sc, u_char const * eeprom); * * where eeprom is a pointer to an array of 32 byte data read from the - * config EEPROM on the board. It retuns an IRQ mapping table for the + * config EEPROM on the board. It returns an IRQ mapping table for the * board, when the corresponding implementation is detected. It * returns a NULL otherwise. * diff --git a/sys/dev/fe/mb86960.h b/sys/dev/fe/mb86960.h index 1272dde..0482783 100644 --- a/sys/dev/fe/mb86960.h +++ b/sys/dev/fe/mb86960.h @@ -44,7 +44,7 @@ * documents.. */ -/* Data Link Control Registrs, on invaliant port addresses. */ +/* Data Link Control Registers, on invaliant port addresses. */ #define FE_DLCR0 0 #define FE_DLCR1 1 #define FE_DLCR2 2 diff --git a/sys/dev/firewire/firewire.c b/sys/dev/firewire/firewire.c index 7234188..f691c9d 100644 --- a/sys/dev/firewire/firewire.c +++ b/sys/dev/firewire/firewire.c @@ -1584,7 +1584,7 @@ fw_explore_node(struct fw_device *dfwdev) * speed map value. * 1394a-2000 compliant devices only use * the Bus Info Block link spd value, so - * ignore the speed map alltogether. SWB + * ignore the speed map altogether. SWB */ if (binfo->link_spd == FWSPD_S100 /* 0 */) { device_printf(fc->bdev, "%s: " diff --git a/sys/dev/firewire/fwdev.c b/sys/dev/firewire/fwdev.c index cebd28a..fbaa9bb 100644 --- a/sys/dev/firewire/fwdev.c +++ b/sys/dev/firewire/fwdev.c @@ -349,7 +349,7 @@ readloop: } } if (ir->stproc == NULL) { - /* no data avaliable */ + /* no data available */ if (slept == 0) { slept = 1; ir->flag |= FWXFERQ_WAKEUP; diff --git a/sys/dev/firewire/fwohci.c b/sys/dev/firewire/fwohci.c index 70134af..ac7fa52 100644 --- a/sys/dev/firewire/fwohci.c +++ b/sys/dev/firewire/fwohci.c @@ -511,7 +511,7 @@ fwohci_reset(struct fwohci_softc *sc, device_t dev) OWRITE(sc, OHCI_ITCTLCLR(i), OHCI_CNTL_DMA_RUN); } - /* FLUSH FIFO and reset Transmitter/Reciever */ + /* FLUSH FIFO and reset Transmitter/Receiver */ OWRITE(sc, OHCI_HCCCTL, OHCI_HCC_RESET); if (firewire_debug) device_printf(dev, "resetting OHCI..."); @@ -692,7 +692,7 @@ fwohci_init(struct fwohci_softc *sc, device_t dev) sc->fc.config_rom[0] |= fw_crc16(&sc->fc.config_rom[1], 5*4); #endif -/* SID recieve buffer must align 2^11 */ +/* SID receive buffer must align 2^11 */ #define OHCI_SIDSIZE (1 << 11) sc->sid_buf = fwdma_malloc(&sc->fc, OHCI_SIDSIZE, OHCI_SIDSIZE, &sc->sid_dma, BUS_DMA_WAITOK | BUS_DMA_COHERENT); @@ -929,7 +929,7 @@ txloop: OHCI_OUTPUT_MORE | OHCI_KEY_ST2 | hdr_len); FWOHCI_DMA_WRITE(db->db.desc.addr, 0); FWOHCI_DMA_WRITE(db->db.desc.res, 0); -/* Specify bound timer of asy. responce */ +/* Specify bound timer of asy. response */ if (&sc->atrs == dbch) { FWOHCI_DMA_WRITE(db->db.desc.res, (OREAD(sc, OHCI_CYCLETIMER) >> 12) + (1 << 13)); @@ -1748,7 +1748,7 @@ fwohci_stop(struct fwohci_softc *sc, device_t dev) | OHCI_INT_DMA_ARRQ | OHCI_INT_DMA_ARRS | OHCI_INT_PHY_BUS_R); -/* FLUSH FIFO and reset Transmitter/Reciever */ +/* FLUSH FIFO and reset Transmitter/Receiver */ OWRITE(sc, OHCI_HCCCTL, OHCI_HCC_RESET); #endif @@ -2208,7 +2208,7 @@ fwohci_rbuf_update(struct fwohci_softc *sc, int dmach) ir->bnpacket, BUS_DMASYNC_POSTREAD); } else { /* XXX */ - printf("fwohci_rbuf_update: this shouldn't happend\n"); + printf("fwohci_rbuf_update: this shouldn't happened\n"); } STAILQ_REMOVE_HEAD(&ir->stdma, link); diff --git a/sys/dev/firewire/if_fwip.c b/sys/dev/firewire/if_fwip.c index 0617a9c..0a958b2 100644 --- a/sys/dev/firewire/if_fwip.c +++ b/sys/dev/firewire/if_fwip.c @@ -739,7 +739,7 @@ fwip_stream_input(struct fw_xferq *xferq) /* * We must have a GASP header - leave the * encapsulation sanity checks to the generic - * code. Remeber that we also have the firewire async + * code. Remember that we also have the firewire async * stream header even though that isn't accounted for * in mode.stream.len. */ diff --git a/sys/dev/firewire/sbp_targ.c b/sys/dev/firewire/sbp_targ.c index bd7e924..27e9843 100644 --- a/sys/dev/firewire/sbp_targ.c +++ b/sys/dev/firewire/sbp_targ.c @@ -1031,7 +1031,7 @@ sbp_targ_pt_done(struct fw_xfer *xfer) } orbi->refcount++; /* - * Set endianess here so we don't have + * Set endianness here so we don't have * to deal with is later */ for (i = 0, pt = orbi->page_table; i < orbi->orb4.data_size; i++, pt++) { diff --git a/sys/dev/fxp/if_fxp.c b/sys/dev/fxp/if_fxp.c index dc91817..543eba9 100644 --- a/sys/dev/fxp/if_fxp.c +++ b/sys/dev/fxp/if_fxp.c @@ -1263,7 +1263,7 @@ fxp_eeprom_putword(struct fxp_softc *sc, int offset, uint16_t data) * * 559's can have either 64-word or 256-word EEPROMs, the 558 * datasheet only talks about 64-word EEPROMs, and the 557 datasheet - * talks about the existance of 16 to 256 word EEPROMs. + * talks about the existence of 16 to 256 word EEPROMs. * * The only known sizes are 64 and 256, where the 256 version is used * by CardBus cards to store CIS information. @@ -2090,7 +2090,7 @@ fxp_update_stats(struct fxp_softc *sc) le32toh(sp->rx_rnr_errors) + le32toh(sp->rx_overrun_errors)); /* - * If any transmit underruns occured, bump up the transmit + * If any transmit underruns occurred, bump up the transmit * threshold by another 512 bytes (64 * 8). */ if (sp->tx_underruns) { @@ -2141,7 +2141,7 @@ fxp_tick(void *xsc) * then assume the receiver has locked up and attempt to clear * the condition by reprogramming the multicast filter. This is * a work-around for a bug in the 82557 where the receiver locks - * up if it gets certain types of garbage in the syncronization + * up if it gets certain types of garbage in the synchronization * bits prior to the packet header. This bug is supposed to only * occur in 10Mbps mode, but has been seen to occur in 100Mbps * mode as well (perhaps due to a 10/100 speed transition). diff --git a/sys/dev/fxp/rcvbundl.h b/sys/dev/fxp/rcvbundl.h index 2510f42..dac793d 100644 --- a/sys/dev/fxp/rcvbundl.h +++ b/sys/dev/fxp/rcvbundl.h @@ -62,7 +62,7 @@ rcvbundl.h file given above). * driver can change algorithm. * * CPUSAVER_DWORD - This is the location of the instruction that loads -* the dead-man timer with its inital value. By writing a 16-bit +* the dead-man timer with its initial value. By writing a 16-bit * value to the low word of this instruction, the driver can change * the timer value. The current default is either x600 or x800; * experiments show that the value probably should stay within the diff --git a/sys/dev/hatm/if_hatm.c b/sys/dev/hatm/if_hatm.c index c34ee0e..e87b79f 100644 --- a/sys/dev/hatm/if_hatm.c +++ b/sys/dev/hatm/if_hatm.c @@ -557,7 +557,7 @@ hatm_init_bus_width(struct hatm_softc *sc) } /* - * 4.6 Set Host Endianess + * 4.6 Set Host Endianness */ static void hatm_init_endianess(struct hatm_softc *sc) diff --git a/sys/dev/hatm/if_hatm_rx.c b/sys/dev/hatm/if_hatm_rx.c index af0b925..c12ec6e 100644 --- a/sys/dev/hatm/if_hatm_rx.c +++ b/sys/dev/hatm/if_hatm_rx.c @@ -178,7 +178,7 @@ hatm_rx(struct hatm_softc *sc, u_int cid, u_int flags, struct mbuf *m0, if (vcc->param.aal == ATMIO_AAL_5) { /* * Need to remove padding and the trailer. The trailer - * may be split accross buffers according to 2.10.1.2 + * may be split across buffers according to 2.10.1.2 * Assume that mbufs sizes are even (buffer sizes and cell * payload sizes are) and that there are no empty mbufs. */ diff --git a/sys/dev/hatm/if_hatm_tx.c b/sys/dev/hatm/if_hatm_tx.c index d0a28ba..8d64908 100644 --- a/sys/dev/hatm/if_hatm_tx.c +++ b/sys/dev/hatm/if_hatm_tx.c @@ -123,7 +123,7 @@ hatm_alloc_tpd(struct hatm_softc *sc, u_int flags) return (NULL); } - /* make it beeing used */ + /* make it being used */ t = SLIST_FIRST(&sc->tpd_free); KASSERT(t != NULL, ("tpd botch")); SLIST_REMOVE_HEAD(&sc->tpd_free, link); diff --git a/sys/dev/hifn/hifn7751var.h b/sys/dev/hifn/hifn7751var.h index fcae4af..c5e8a8b 100644 --- a/sys/dev/hifn/hifn7751var.h +++ b/sys/dev/hifn/hifn7751var.h @@ -128,7 +128,7 @@ struct hifn_session { struct hifn_softc { device_t sc_dev; /* device backpointer */ struct mtx sc_mtx; /* per-instance lock */ - bus_dma_tag_t sc_dmat; /* parent DMA tag decriptor */ + bus_dma_tag_t sc_dmat; /* parent DMA tag descriptor */ struct resource *sc_bar0res; bus_space_handle_t sc_sh0; /* bar0 bus space handle */ bus_space_tag_t sc_st0; /* bar0 bus space tag */ diff --git a/sys/dev/hptmv/array.h b/sys/dev/hptmv/array.h index 7b50774..2caf413 100644 --- a/sys/dev/hptmv/array.h +++ b/sys/dev/hptmv/array.h @@ -99,7 +99,7 @@ typedef struct _RaidArray } RaidArray; /*************************************************************************** - * Array Descripton on disk + * Array Description on disk ***************************************************************************/ #pragma pack(1) typedef struct _ArrayDescript diff --git a/sys/dev/hptmv/command.h b/sys/dev/hptmv/command.h index 3b6a53b..de51356 100644 --- a/sys/dev/hptmv/command.h +++ b/sys/dev/hptmv/command.h @@ -128,7 +128,7 @@ typedef struct _Command /* called when this command is finished */ void (* HPTLIBAPI pfnCompletion)(_VBUS_ARG PCommand pCmd); - /* pointer to origional command */ + /* pointer to original command */ void *pOrgCommand; diff --git a/sys/dev/hptmv/entry.c b/sys/dev/hptmv/entry.c index 9a1b91b..a3ef364 100644 --- a/sys/dev/hptmv/entry.c +++ b/sys/dev/hptmv/entry.c @@ -164,7 +164,7 @@ char DRIVER_VERSION[] = "v1.16"; * * Description: free allocated queues for the given channel * - * Parameters: pMvSataAdapter - pointer to the RR18xx controler this + * Parameters: pMvSataAdapter - pointer to the RR18xx controller this * channel connected to. * channelNum - channel number. * @@ -309,7 +309,7 @@ hptmv_init_channel(IAL_ADAPTER_T *pAdapter, MV_U8 channelNum) * * Description: this functions parses the identify command results, checks * that the connected deives can be accesed by RR18xx EDMA, - * and updates the channel stucture accordingly. + * and updates the channel structure accordingly. * * Parameters: pMvSataChannel, pointer to the channel data structure. * diff --git a/sys/dev/hptmv/hptintf.h b/sys/dev/hptmv/hptintf.h index 09d638f..191795c 100644 --- a/sys/dev/hptmv/hptintf.h +++ b/sys/dev/hptmv/hptintf.h @@ -101,7 +101,7 @@ typedef DWORD DEVICEID; #define MAX_ARRAY_MEMBERS_V1 8 #define MAX_ARRAY_MEMBERS_V2 16 -/* keep definition for source code compatiblity */ +/* keep definition for source code compatibility */ #define MAX_ARRAY_MEMBERS MAX_ARRAY_MEMBERS_V1 /* diff --git a/sys/dev/hptmv/mvOs.h b/sys/dev/hptmv/mvOs.h index a1ababc..3110973 100644 --- a/sys/dev/hptmv/mvOs.h +++ b/sys/dev/hptmv/mvOs.h @@ -72,7 +72,7 @@ typedef enum mvBoolean{MV_FALSE, MV_TRUE} MV_BOOLEAN; #define NULL 0 #endif -/* System dependant typedefs */ +/* System dependent typedefs */ typedef void MV_VOID; typedef unsigned int MV_U32; typedef unsigned short MV_U16; diff --git a/sys/dev/hptnr/hptintf.h b/sys/dev/hptnr/hptintf.h index fa3b36e..aefb49c 100644 --- a/sys/dev/hptnr/hptintf.h +++ b/sys/dev/hptnr/hptintf.h @@ -128,7 +128,7 @@ typedef HPT_U32 DEVICEID; #define MAX_ARRAY_MEMBERS_V3 64 #endif -/* keep definition for source code compatiblity */ +/* keep definition for source code compatibility */ #define MAX_ARRAY_MEMBERS MAX_ARRAY_MEMBERS_V1 /* @@ -153,8 +153,8 @@ typedef HPT_U32 DEVICEID; #define ARRAY_FLAG_NEED_AUTOREBUILD 0x00000080 /* auto-rebuild should start */ #define ARRAY_FLAG_VERIFYING 0x00000100 /* is being verified */ #define ARRAY_FLAG_INITIALIZING 0x00000200 /* is being initialized */ -#define ARRAY_FLAG_TRANSFORMING 0x00000400 /* tranform in progress */ -#define ARRAY_FLAG_NEEDTRANSFORM 0x00000800 /* array need tranform */ +#define ARRAY_FLAG_TRANSFORMING 0x00000400 /* transform in progress */ +#define ARRAY_FLAG_NEEDTRANSFORM 0x00000800 /* array need transform */ #define ARRAY_FLAG_NEEDINITIALIZING 0x00001000 /* the array's initialization hasn't finished*/ #define ARRAY_FLAG_BROKEN_REDUNDANT 0x00002000 /* broken but redundant (raid6) */ #define ARRAY_FLAG_RAID15PLUS 0x80000000 /* display this RAID 1 as RAID 1.5 */ @@ -2014,7 +2014,7 @@ DEVICEID hpt_create_transform_v2(DEVICEID idArray, PCREATE_ARRAY_PARAMS_V3 destI #endif /* hpt_step_transform - * move a block in a tranform progress. + * move a block in a transform progress. * This function is called by mid-layer, not GUI (which uses set_array_state instead). * Version compatibility: v2.0.0.0 or later * Parameters: diff --git a/sys/dev/hptrr/hptintf.h b/sys/dev/hptrr/hptintf.h index eb210fc..b7f22ab 100644 --- a/sys/dev/hptrr/hptintf.h +++ b/sys/dev/hptrr/hptintf.h @@ -128,7 +128,7 @@ typedef HPT_U32 DEVICEID; #define MAX_ARRAY_MEMBERS_V3 64 #endif -/* keep definition for source code compatiblity */ +/* keep definition for source code compatibility */ #define MAX_ARRAY_MEMBERS MAX_ARRAY_MEMBERS_V1 /* @@ -153,8 +153,8 @@ typedef HPT_U32 DEVICEID; #define ARRAY_FLAG_NEED_AUTOREBUILD 0x00000080 /* auto-rebuild should start */ #define ARRAY_FLAG_VERIFYING 0x00000100 /* is being verified */ #define ARRAY_FLAG_INITIALIZING 0x00000200 /* is being initialized */ -#define ARRAY_FLAG_TRANSFORMING 0x00000400 /* tranform in progress */ -#define ARRAY_FLAG_NEEDTRANSFORM 0x00000800 /* array need tranform */ +#define ARRAY_FLAG_TRANSFORMING 0x00000400 /* transform in progress */ +#define ARRAY_FLAG_NEEDTRANSFORM 0x00000800 /* array need transform */ #define ARRAY_FLAG_NEEDINITIALIZING 0x00001000 /* the array's initialization hasn't finished*/ #define ARRAY_FLAG_BROKEN_REDUNDANT 0x00002000 /* broken but redundant (raid6) */ #define ARRAY_FLAG_RAID15PLUS 0x80000000 /* display this RAID 1 as RAID 1.5 */ @@ -1735,7 +1735,7 @@ DEVICEID hpt_create_transform_v2(DEVICEID idArray, PCREATE_ARRAY_PARAMS_V3 destI #endif /* hpt_step_transform - * move a block in a tranform progress. + * move a block in a transform progress. * This function is called by mid-layer, not GUI (which uses set_array_state instead). * Version compatibility: v2.0.0.0 or later * Parameters: diff --git a/sys/dev/hwpmc/hwpmc_core.h b/sys/dev/hwpmc/hwpmc_core.h index 7196d9d..6183e26 100644 --- a/sys/dev/hwpmc/hwpmc_core.h +++ b/sys/dev/hwpmc/hwpmc_core.h @@ -141,7 +141,7 @@ struct pmc_md_iap_op_pmcallocate { #define IA_GLOBAL_CTRL 0x38F /* - * IA_GLOBAL_CTRL is layed out in the following way. + * IA_GLOBAL_CTRL is laid out in the following way. * * Bit Position Use * 63-35 Reserved (do not touch) diff --git a/sys/dev/hwpmc/pmc_events.h b/sys/dev/hwpmc/pmc_events.h index 864ec95..7c0ac2f 100644 --- a/sys/dev/hwpmc/pmc_events.h +++ b/sys/dev/hwpmc/pmc_events.h @@ -4552,7 +4552,7 @@ __PMC_EV_ALIAS("SQ_MISC.SPLIT_LOCK", IAP_EVENT_F4H_10H) #define PMC_EV_TSC_LAST PMC_EV_TSC_TSC /* - * Software events are dynamicaly defined. + * Software events are dynamically defined. */ #define PMC_EV_DYN_COUNT 0x1000 diff --git a/sys/dev/hyperv/include/hyperv.h b/sys/dev/hyperv/include/hyperv.h index aeec8ec..d5166f6 100644 --- a/sys/dev/hyperv/include/hyperv.h +++ b/sys/dev/hyperv/include/hyperv.h @@ -783,7 +783,7 @@ typedef struct hv_vmbus_channel { /* * From Win8, this field specifies the target virtual process - * on which to deliver the interupt from the host to guest. + * on which to deliver the interrupt from the host to guest. * Before Win8, all channel interrupts would only be * delivered on cpu 0. Setting this value to 0 would preserve * the earlier behavior. diff --git a/sys/dev/hyperv/utilities/hv_kvp.c b/sys/dev/hyperv/utilities/hv_kvp.c index d4520d6..c39083a 100644 --- a/sys/dev/hyperv/utilities/hv_kvp.c +++ b/sys/dev/hyperv/utilities/hv_kvp.c @@ -118,7 +118,7 @@ typedef struct hv_kvp_sc { struct hv_util_sc util_sc; /* Unless specified the pending mutex should be - * used to alter the values of the following paramters: + * used to alter the values of the following parameters: * 1. req_in_progress * 2. req_timed_out */ @@ -778,7 +778,7 @@ hv_kvp_dev_daemon_read(struct cdev *dev, struct uio *uio, int ioflag __unused) /* * hv_kvp_daemon write invokes this function - * acts as a recieve from daemon + * acts as a receive from daemon */ static int hv_kvp_dev_daemon_write(struct cdev *dev, struct uio *uio, int ioflag __unused) diff --git a/sys/dev/ic/cd180.h b/sys/dev/ic/cd180.h index ae46a48..941f8ca 100644 --- a/sys/dev/ic/cd180.h +++ b/sys/dev/ic/cd180.h @@ -82,7 +82,7 @@ /* Channel Address Register */ #define CAR_CHAN 0x07 /* Channel Number Mask */ -#define CAR_A7 0x08 /* Addres bit 7 (unused) */ +#define CAR_A7 0x08 /* Address bit 7 (unused) */ /* Receive Character Status Register */ #define RCSR_OE 0x01 /* Overrun Error */ diff --git a/sys/dev/ichiic/ig4_iic.c b/sys/dev/ichiic/ig4_iic.c index 23bdb7d..ff27da2 100644 --- a/sys/dev/ichiic/ig4_iic.c +++ b/sys/dev/ichiic/ig4_iic.c @@ -659,7 +659,7 @@ ig4iic_smb_callback(device_t dev, int index, void *data) /* * Quick command. i.e. START + cmd + R/W + STOP and no data. It is * unclear to me how I could implement this with the intel i2c controller - * because the controler sends STARTs and STOPs automatically with data. + * because the controller sends STARTs and STOPs automatically with data. */ int ig4iic_smb_quick(device_t dev, u_char slave, int how) diff --git a/sys/dev/ichiic/ig4_reg.h b/sys/dev/ichiic/ig4_reg.h index c87d1d1..33976c0 100644 --- a/sys/dev/ichiic/ig4_reg.h +++ b/sys/dev/ichiic/ig4_reg.h @@ -185,7 +185,7 @@ * RESTART - RW This bit controls whether a forced RESTART is * issued before the byte is sent or received. * - * 0 If not set a RESTART is only issued if the tranfer + * 0 If not set a RESTART is only issued if the transfer * direction is changing from the previous command. * * 1 A RESTART is issued before the byte is sent or @@ -271,7 +271,7 @@ * cleared by HW when the buffer level goes above * the threshold. * - * TX_OVER Indicates that the processer attempted to write + * TX_OVER Indicates that the processor attempted to write * to the TX FIFO while the TX FIFO was full. Cleared * by reading CLR_TX_OVER. * diff --git a/sys/dev/ida/idareg.h b/sys/dev/ida/idareg.h index a25a768..7fb48d4 100644 --- a/sys/dev/ida/idareg.h +++ b/sys/dev/ida/idareg.h @@ -295,7 +295,7 @@ struct ida_phys_drv_info { u_int8_t scsi_lun; u_int8_t ympd_flags; /* yet more physical drive flags */ #define YMPDF_DRIVE_WCE_SET 0x40 /* WCE currently set */ -#define YMPDF_DRIVE_WCE_CHNG 0x80 /* WCE changable */ +#define YMPDF_DRIVE_WCE_CHNG 0x80 /* WCE changeable */ u_int8_t reserved; u_int32_t spi_speed_rules; u_int8_t phys_con[2]; /* Physical Connector */ diff --git a/sys/dev/if_ndis/if_ndis.c b/sys/dev/if_ndis/if_ndis.c index 0e3643a..2237259 100644 --- a/sys/dev/if_ndis/if_ndis.c +++ b/sys/dev/if_ndis/if_ndis.c @@ -1374,7 +1374,7 @@ ndis_rxeof_xfr_done(adapter, packet, status, len) * out-of-band portion of the ndis_packet has special meaning. In the * most common case, the underlying NDIS driver will set this field * to NDIS_STATUS_SUCCESS, which indicates that it's ok for us to - * take posession of it. We then change the status field to + * take possession of it. We then change the status field to * NDIS_STATUS_PENDING to tell the driver that we now own the packet, * and that we will return it at some point in the future via the * return packet handler. diff --git a/sys/dev/iicbus/ds133x.c b/sys/dev/iicbus/ds133x.c index 20f1d40..1f703dc 100644 --- a/sys/dev/iicbus/ds133x.c +++ b/sys/dev/iicbus/ds133x.c @@ -150,7 +150,7 @@ ds133x_detect(device_t dev, int *sc_type) /* * Now Check for DS1337. Bit 5 in control register of this chip will be - * allways read as 0. In DS1339 changing of this bit is safe until + * always read as 0. In DS1339 changing of this bit is safe until * chip is powered up. */ diff --git a/sys/dev/iicbus/if_ic.c b/sys/dev/iicbus/if_ic.c index 7a4e2b1..0df2f4a 100644 --- a/sys/dev/iicbus/if_ic.c +++ b/sys/dev/iicbus/if_ic.c @@ -289,7 +289,7 @@ icintr(device_t dev, int event, char *ptr) case INTR_STOP: - /* if any error occured during transfert, + /* if any error occurred during transfert, * drop the packet */ sc->ic_flags &= ~IC_IFBUF_BUSY; if ((sc->ic_flags & (IC_BUFFERS_BUSY | IC_BUFFER_WAITER)) == diff --git a/sys/dev/iicbus/iiconf.h b/sys/dev/iicbus/iiconf.h index 12ac0d7..03b9583 100644 --- a/sys/dev/iicbus/iiconf.h +++ b/sys/dev/iicbus/iiconf.h @@ -82,7 +82,7 @@ /* * adapter layer errors */ -#define IIC_NOERR 0x0 /* no error occured */ +#define IIC_NOERR 0x0 /* no error occurred */ #define IIC_EBUSERR 0x1 /* bus error (hardware not in expected state) */ #define IIC_ENOACK 0x2 /* ack not received until timeout */ #define IIC_ETIMEOUT 0x3 /* timeout */ diff --git a/sys/dev/iicbus/twsi/twsi.c b/sys/dev/iicbus/twsi/twsi.c index 1b27956..dee0b7a 100644 --- a/sys/dev/iicbus/twsi/twsi.c +++ b/sys/dev/iicbus/twsi/twsi.c @@ -141,7 +141,7 @@ twsi_clear_iflg(struct twsi_softc *sc) /* * timeout given in us * returns - * 0 on sucessfull mask change + * 0 on successful mask change * non-zero on timeout */ static int diff --git a/sys/dev/iir/iir.c b/sys/dev/iir/iir.c index e74698e..52dc123 100644 --- a/sys/dev/iir/iir.c +++ b/sys/dev/iir/iir.c @@ -30,7 +30,7 @@ */ /* - * iir.c: SCSI dependant code for the Intel Integrated RAID Controller driver + * iir.c: SCSI dependent code for the Intel Integrated RAID Controller driver * * Written by: Achim Leubner <achim_leubner@adaptec.com> * Fixes/Additions: Boji Tony Kannanthanam <boji.t.kannanthanam@intel.com> diff --git a/sys/dev/intpm/intpm.c b/sys/dev/intpm/intpm.c index 60ad17f..911332c 100644 --- a/sys/dev/intpm/intpm.c +++ b/sys/dev/intpm/intpm.c @@ -496,7 +496,7 @@ intsmb_stop(struct intsmb_softc *sc) /* Timeout Procedure. */ sc->isbusy = 0; - /* Re-enable supressed interrupt from slave part. */ + /* Re-enable suppressed interrupt from slave part. */ bus_write_1(sc->io_res, PIIX4_SMBSLVCNT, PIIX4_SMBSLVCNT_ALTEN); if (error == EWOULDBLOCK) return (SMB_ETIMEOUT); diff --git a/sys/dev/ips/ips.c b/sys/dev/ips/ips.c index 7ef3ba7..2bda55d 100644 --- a/sys/dev/ips/ips.c +++ b/sys/dev/ips/ips.c @@ -107,7 +107,7 @@ static void ips_cmd_dmaload(void *cmdptr, bus_dma_segment_t *segments,int segnum } -/* is locking needed? what locking guarentees are there on removal? */ +/* is locking needed? what locking guarantees are there on removal? */ static int ips_cmdqueue_free(ips_softc_t *sc) { int i, error = -1; diff --git a/sys/dev/isci/isci_controller.c b/sys/dev/isci/isci_controller.c index d3ec045..02bf2d0 100644 --- a/sys/dev/isci/isci_controller.c +++ b/sys/dev/isci/isci_controller.c @@ -470,7 +470,7 @@ int isci_controller_allocate_memory(struct ISCI_CONTROLLER *controller) /* Create DMA tag for our I/O requests. Then we can create DMA maps based off * of this tag and store them in each of our ISCI_IO_REQUEST objects. This - * will enable better performance than creating the DMA maps everytime we get + * will enable better performance than creating the DMA maps every time we get * an I/O. */ status = bus_dma_tag_create(bus_get_dma_tag(device), 0x1, 0x0, diff --git a/sys/dev/isci/isci_io_request.c b/sys/dev/isci/isci_io_request.c index f86c126..468d124 100644 --- a/sys/dev/isci/isci_io_request.c +++ b/sys/dev/isci/isci_io_request.c @@ -309,7 +309,7 @@ isci_io_request_complete(SCI_CONTROLLER_HANDLE_T scif_controller, * handle. * @param[in] io_request This parameter is the io request object handle * for which the physical address is being requested. - * @param[in] virtual_address This paramter is the virtual address which + * @param[in] virtual_address This parameter is the virtual address which * is to be returned as a physical address. * @param[out] physical_address The physical address for the supplied virtual * address. @@ -540,14 +540,14 @@ scif_cb_io_request_get_virtual_address_from_sgl(void * scif_user_io_request, /** * @brief This callback method asks the user to provide the number of - * bytes to be transfered as part of this request. + * bytes to be transferred as part of this request. * * @param[in] scif_user_io_request This parameter points to the user's * IO request object. It is a cookie that allows the user to * provide the necessary information for this callback. * * @return This method returns the number of payload data bytes to be - * transfered for this IO request. + * transferred for this IO request. */ uint32_t scif_cb_io_request_get_transfer_length(void * scif_user_io_request) diff --git a/sys/dev/isci/isci_timer.c b/sys/dev/isci/isci_timer.c index 1f22e94..9059c5b 100644 --- a/sys/dev/isci/isci_timer.c +++ b/sys/dev/isci/isci_timer.c @@ -144,7 +144,7 @@ scif_cb_timer_create(SCI_CONTROLLER_HANDLE_T scif_controller, } /** - * @brief This callback method asks the user to destory the supplied timer. + * @brief This callback method asks the user to destroy the supplied timer. * * @param[in] controller This parameter specifies the controller with * which this timer is to associated. diff --git a/sys/dev/isci/scil/intel_sas.h b/sys/dev/isci/scil/intel_sas.h index 18fa8d3..e2bd8ee 100644 --- a/sys/dev/isci/scil/intel_sas.h +++ b/sys/dev/isci/scil/intel_sas.h @@ -465,7 +465,7 @@ typedef struct SMP_REQUEST_CONFIGURE_ROUTE_INFORMATION /** * @struct SMP_REQUEST_PHY_CONTROL - * @brief This structure defines the contents of an SMP Phy Controler + * @brief This structure defines the contents of an SMP Phy Controller * request. * @note For specific information on each of these * individual fields please reference the SAS specification. diff --git a/sys/dev/isci/scil/sati_callbacks.h b/sys/dev/isci/scil/sati_callbacks.h index e6cd57f..2364e42 100644 --- a/sys/dev/isci/scil/sati_callbacks.h +++ b/sys/dev/isci/scil/sati_callbacks.h @@ -173,7 +173,7 @@ U8 sati_cb_get_task_function( * response IU buffer. * * @param[in] scsi_io This parameter specifies the user's SCSI IO request - * for which to retreive the location of the response buffer to + * for which to retrieve the location of the response buffer to * be written. * * @return This method returns the address of the response data buffer. @@ -189,7 +189,7 @@ void * sati_cb_get_response_iu_address( * buffer. * * @param[in] scsi_io This parameter specifies the user's SCSI IO request - * for which to retreive the location of the sense buffer to + * for which to retrieve the location of the sense buffer to * be written. * * @return This method returns the address of the sense data buffer. @@ -203,7 +203,7 @@ U8* sati_cb_get_sense_data_address( * buffer. * * @param[in] scsi_io This parameter specifies the user's SCSI IO request - * for which to retreive the location of the sense buffer to + * for which to retrieve the location of the sense buffer to * be written. * * @return This method returns the length of the sense data buffer. @@ -246,7 +246,7 @@ U8 * sati_cb_get_h2d_register_fis_address( /** * @brief This method retrieves the ATA task file (register FIS) relating to - * the device to host reponse values. + * the device to host response values. * * @param[in] ata_io This parameter specifies the user's ATA IO request * from which to retrieve the d2h register FIS address. @@ -374,7 +374,7 @@ BOOL sati_cb_do_translate_response( * associated device is contained in a SAS Domain. * * @param[in] scsi_io This parameter specifies the user's SCSI IO request - * for which to retreive the SAS address of the device. + * for which to retrieve the SAS address of the device. * @param[out] sas_address This parameter specifies the SAS address memory * to be contain the retrieved value. * diff --git a/sys/dev/isci/scil/sati_design.h b/sys/dev/isci/scil/sati_design.h index f4f2248..372dce0 100644 --- a/sys/dev/isci/scil/sati_design.h +++ b/sys/dev/isci/scil/sati_design.h @@ -151,7 +151,7 @@ be followed for command translations. @image html Sequence_Diagram__General_Cmd_Translation_Sequence__General_Cmd_Translation_Sequence.jpg "General Command Translation Sequence" This sequence diagram simply depicts the high-level translation sequence to -be followed for reponse translations. +be followed for response translations. @image html Sequence_Diagram__General_Rsp_Translation_Sequence__General_Rsp_Translation_Sequence.jpg "General Response Translation Sequence" diff --git a/sys/dev/isci/scil/sati_device.h b/sys/dev/isci/scil/sati_device.h index 980ca44..d955f83 100644 --- a/sys/dev/isci/scil/sati_device.h +++ b/sys/dev/isci/scil/sati_device.h @@ -151,7 +151,7 @@ typedef struct SATI_DEVICE U8 unit_attention_ascq; /** - * This field indicates the ATA standby timer value set throught the + * This field indicates the ATA standby timer value set through the * ATA IDLE and ATA Standby commands */ U8 ata_standby_timer; diff --git a/sys/dev/isci/scil/sati_log_sense.c b/sys/dev/isci/scil/sati_log_sense.c index 44bc4e9..04c4894 100644 --- a/sys/dev/isci/scil/sati_log_sense.c +++ b/sys/dev/isci/scil/sati_log_sense.c @@ -394,7 +394,7 @@ void sati_self_test_log_header_construct( /** * @brief This method will construct the SCSI self test log page from - * the Extended SMART self-test log response recieved from the + * the Extended SMART self-test log response received from the * ATA device. The response is from a ATA_Read_Log_EXT command * issued by SATI. * @@ -427,7 +427,7 @@ void sati_extended_self_test_log_page_construct( /** * @brief This method will construct the SCSI self test log page from -* the SMART self-test log response recieved from the ATA device. +* the SMART self-test log response received from the ATA device. * The response is from a ATA_SMART_Read_Log command issued by SATI. * * @return n/a @@ -513,7 +513,7 @@ void sati_self_test_log_page_construct( /** * @brief This method will construct the SCSI information exception log page from -* the ATA SMART response recieved from the ATA device. The response is +* the ATA SMART response received from the ATA device. The response is * from a ATA SMART return status command issued by SATI. * * @return n/a diff --git a/sys/dev/isci/scil/sati_move.c b/sys/dev/isci/scil/sati_move.c index 630a9f8..9b1e8dc 100644 --- a/sys/dev/isci/scil/sati_move.c +++ b/sys/dev/isci/scil/sati_move.c @@ -147,7 +147,7 @@ void sati_move_small_udma_translate_command( * please reference sati_translate_command() * * @param[in] sector_count This parameter specifies the number of sectors - * to be transfered. + * to be transferred. * @param[in] write_opcode This parameter specifies the value to be written * to the ATA command register for a write (data out) operation. * @param[in] read_opcode This parameter specifies the value to be written @@ -220,7 +220,7 @@ void sati_move_ncq_translate_8_bit_sector_count( * @note This method should only be called for CDB sizes of 10-bytes or larger. * * @param[in] sector_count This parameter specifies the number of sectors - * to be transfered. + * to be transferred. * @param[in] is_fpdma_command This parameter indicates if the supplied * ata_io is a first party DMA request (NCQ). * @@ -491,7 +491,7 @@ SATI_STATUS sati_move_small_translate_command( * please reference sati_translate_command(). * * @param[in] sector_count This parameter specifies the number of sectors - * to be transfered. + * to be transferred. * @param[in] device_head This parameter specifies the contents to be * written to the device head register. * diff --git a/sys/dev/isci/scil/sati_translator_sequence.h b/sys/dev/isci/scil/sati_translator_sequence.h index 4bd63a7..dba5326 100644 --- a/sys/dev/isci/scil/sati_translator_sequence.h +++ b/sys/dev/isci/scil/sati_translator_sequence.h @@ -57,7 +57,7 @@ /** * @file * @brief This file contains all of the defintions for the SATI translator - * sequence. A translator sequence is simply a defintion for the + * sequence. A translator sequence is simply a definition for the * various sequences of commands that occur in this translator. */ @@ -310,7 +310,7 @@ typedef struct SATI_TRANSLATOR_SEQUENCE /** * This field specifies the amount of data that will actually be - * transfered across the wire for this ATA request. + * transferred across the wire for this ATA request. */ U32 ata_transfer_length; diff --git a/sys/dev/isci/scil/sati_util.c b/sys/dev/isci/scil/sati_util.c index 18c10c8..90b9bfa 100644 --- a/sys/dev/isci/scil/sati_util.c +++ b/sys/dev/isci/scil/sati_util.c @@ -1790,7 +1790,7 @@ void sati_ata_smart_read_log_construct( /** * @brief This method will construct a Write Uncorrectable ATA command that - * will write one sector with a psuedo or flagged error. The type of + * will write one sector with a pseudo or flagged error. The type of * error is specified by the feature value. * * @return N/A diff --git a/sys/dev/isci/scil/sci_base_phy.h b/sys/dev/isci/scil/sci_base_phy.h index 141b47a..914a110 100644 --- a/sys/dev/isci/scil/sci_base_phy.h +++ b/sys/dev/isci/scil/sci_base_phy.h @@ -93,7 +93,7 @@ typedef enum _SCI_BASE_PHY_STATES SCI_BASE_PHY_STATE_STOPPED, /** - * This state indicates that the phy is in the process of becomming + * This state indicates that the phy is in the process of becoming * ready. In this state no new IO operations are permitted on this phy. * This state is entered from the STOPPED state. * This state is entered from the READY state. diff --git a/sys/dev/isci/scil/sci_fast_list.h b/sys/dev/isci/scil/sci_fast_list.h index a7f166d..0325fad 100644 --- a/sys/dev/isci/scil/sci_fast_list.h +++ b/sys/dev/isci/scil/sci_fast_list.h @@ -67,7 +67,7 @@ * queue. Pointers in this implementation never == NULL. * * Definitions: - * - anchor : This is ths list container and has a + * - anchor : This is the list container and has a * pointer to both the head and tail of the * list elements * - element: This is the list element not the actual diff --git a/sys/dev/isci/scil/sci_simple_list.h b/sys/dev/isci/scil/sci_simple_list.h index 98d29e1..9c0848a 100644 --- a/sys/dev/isci/scil/sci_simple_list.h +++ b/sys/dev/isci/scil/sci_simple_list.h @@ -305,7 +305,7 @@ static void sci_simple_list_insert_list_at_head( } // Wipe the source list to make sure the list elements can not be accessed - // from two seperate lists at the same time. + // from two separate lists at the same time. sci_simple_list_init(source_anchor); } } @@ -342,7 +342,7 @@ static void sci_simple_list_insert_list_at_tail( } // Wipe the source list to make sure the list elements can not be accessed - // from two seperate lists at the same time. + // from two separate lists at the same time. sci_simple_list_init(source_anchor); } } diff --git a/sys/dev/isci/scil/scic_config_parameters.h b/sys/dev/isci/scil/scic_config_parameters.h index 1c6c86c..969cd30 100644 --- a/sys/dev/isci/scil/scic_config_parameters.h +++ b/sys/dev/isci/scil/scic_config_parameters.h @@ -323,7 +323,7 @@ SCI_STATUS scic_oem_parameters_set( ); /** - * @brief This method allows the user to retreive the OEM + * @brief This method allows the user to retrieve the OEM * parameters utilized by the controller. * * @param[in] controller This parameter specifies the controller on which diff --git a/sys/dev/isci/scil/scic_controller.h b/sys/dev/isci/scil/scic_controller.h index 75804c7..31c94af 100644 --- a/sys/dev/isci/scil/scic_controller.h +++ b/sys/dev/isci/scil/scic_controller.h @@ -133,7 +133,7 @@ typedef BOOL (*SCIC_CONTROLLER_INTERRUPT_HANDLER)( * called some time after the interrupt handler. * * @note Most, if not all, of the user callback APIs are invoked from within - * this API. As a result, the user should be cognizent of the operating + * this API. As a result, the user should be cognizant of the operating * level at which they invoke this API. * */ diff --git a/sys/dev/isci/scil/scic_sds_controller.c b/sys/dev/isci/scil/scic_sds_controller.c index 413ef5b..767f89c 100644 --- a/sys/dev/isci/scil/scic_sds_controller.c +++ b/sys/dev/isci/scil/scic_sds_controller.c @@ -1077,7 +1077,7 @@ void scic_sds_controller_afe_initialization( scu_afe_register_write(this_controller, afe_bias_control, 0x00005F00); else if (this_controller->pci_revision == SCIC_SDS_PCI_REVISION_C1) scu_afe_register_write(this_controller, afe_bias_control, 0x00005500); - // For C0 the AFE BIAS Controll is unchanged + // For C0 the AFE BIAS Control is unchanged scic_cb_stall_execution(AFE_REGISTER_WRITE_DELAY); @@ -2429,7 +2429,7 @@ void scic_sds_controller_process_completions( SCIC_LOG_TRACE(( sci_base_object_get_logger(this_controller), SCIC_LOG_OBJECT_COMPLETION_QUEUE, - "completion queue begining get : 0x%08x\n", + "completion queue beginning get : 0x%08x\n", this_controller->completion_queue_get )); @@ -2544,7 +2544,7 @@ void scic_sds_controller_transitioned_process_completions( SCIC_LOG_TRACE(( sci_base_object_get_logger(this_controller), SCIC_LOG_OBJECT_COMPLETION_QUEUE, - "completion queue begining get : 0x%08x\n", + "completion queue beginning get : 0x%08x\n", this_controller->completion_queue_get )); diff --git a/sys/dev/isci/scil/scic_sds_controller.h b/sys/dev/isci/scil/scic_sds_controller.h index 9829a7b..fe3468f 100644 --- a/sys/dev/isci/scil/scic_sds_controller.h +++ b/sys/dev/isci/scil/scic_sds_controller.h @@ -247,7 +247,7 @@ typedef struct SCIC_SDS_CONTROLLER SCI_POOL_CREATE(tci_pool, U16, SCI_MAX_IO_REQUESTS); /** - * This filed is the SCIC_POWER_CONTROL data used to controll when direct + * This filed is the SCIC_POWER_CONTROL data used to control when direct * attached devices can consume power. */ SCIC_POWER_CONTROL_T power_control; @@ -371,7 +371,7 @@ typedef struct SCIC_SDS_CONTROLLER U32 next_phy_to_start; /** - * This field controlls the invalid link up notifications to the SCI_USER. If + * This field controls the invalid link up notifications to the SCI_USER. If * an invalid_link_up notification is reported a bit for the PHY index is set * so further notifications are not made. Once the PHY object reports link up * and is made part of a port then this bit for the PHY index is cleared. diff --git a/sys/dev/isci/scil/scic_sds_phy_registers.h b/sys/dev/isci/scil/scic_sds_phy_registers.h index 14a6be5..24ed608 100644 --- a/sys/dev/isci/scil/scic_sds_phy_registers.h +++ b/sys/dev/isci/scil/scic_sds_phy_registers.h @@ -241,7 +241,7 @@ extern "C" { #define SCU_SAS_PHYCAP_WRITE(phy, value) \ scu_link_layer_register_write(phy, phy_capabilities, value) -/// This macro reads the Recieved PHY Capacity register +/// This macro reads the Received PHY Capacity register #define SCU_SAS_RECPHYCAP_READ(phy) \ scu_link_layer_register_read(phy, receive_phycap) diff --git a/sys/dev/isci/scil/scic_sds_port.c b/sys/dev/isci/scil/scic_sds_port.c index 59940f0..42993a3 100644 --- a/sys/dev/isci/scil/scic_sds_port.c +++ b/sys/dev/isci/scil/scic_sds_port.c @@ -584,7 +584,7 @@ void scic_sds_port_get_attached_protocols( } /** - * @brief This method returns the amount of memory requred for a port + * @brief This method returns the amount of memory required for a port * object. * * @return U32 @@ -3013,7 +3013,7 @@ SCI_STATUS scic_sds_port_ready_waiting_substate_start_io_handler( //**************************************************************************** /** - * This method will casue the port to reset. + * This method will cause the port to reset. * * @param[in] port This is the SCI_BASE_PORT object which is cast into a * SCIC_SDS_PORT object. diff --git a/sys/dev/isci/scil/scic_sds_port.h b/sys/dev/isci/scil/scic_sds_port.h index b07997b..321f667 100644 --- a/sys/dev/isci/scil/scic_sds_port.h +++ b/sys/dev/isci/scil/scic_sds_port.h @@ -214,7 +214,7 @@ typedef struct SCIC_SDS_PORT SCU_PORT_PE_CONFIGURATION_REGISTER_T *port_pe_configuration_register; /** - * This field is the VIIT register space for ths port object. + * This field is the VIIT register space for this port object. */ SCU_VIIT_ENTRY_T *viit_registers; diff --git a/sys/dev/isci/scil/scic_sds_port_configuration_agent.c b/sys/dev/isci/scil/scic_sds_port_configuration_agent.c index a6f66a3..95e442f 100644 --- a/sys/dev/isci/scil/scic_sds_port_configuration_agent.c +++ b/sys/dev/isci/scil/scic_sds_port_configuration_agent.c @@ -772,7 +772,7 @@ void scic_sds_apc_agent_configure_ports( // Check to see if the start timer operations should instead map to an // add phy operation. This is caused because we have been waiting to - // add a phy to a port but could not becuase the automatic port + // add a phy to a port but could not because the automatic port // configuration engine had a choice of possible ports for the phy. // Since we have gone through a timeout we are going to restrict the // choice to the smallest possible port. @@ -849,7 +849,7 @@ void scic_sds_apc_agent_link_up( //the phy is already the part of the port //if the PORT'S state is resetting then the link up is from port hard reset - //in this case, we need to tell the port that link up is recieved + //in this case, we need to tell the port that link up is received if ( SCI_BASE_PORT_STATE_RESETTING == port->parent.state_machine.current_state_id ) diff --git a/sys/dev/isci/scil/scic_sds_remote_device.c b/sys/dev/isci/scil/scic_sds_remote_device.c index e683630..efc2f18 100644 --- a/sys/dev/isci/scil/scic_sds_remote_device.c +++ b/sys/dev/isci/scil/scic_sds_remote_device.c @@ -2375,7 +2375,7 @@ SCIC_SDS_REMOTE_DEVICE_STATE_HANDLER_T /** * This is the enter method for the SCI_BASE_REMOTE_DEVICE_STATE_INITIAL it - * immediatly transitions the remote device object to the stopped state. + * immediately transitions the remote device object to the stopped state. * * @param[in] object This is the SCI_BASE_OBJECT that is cast into a * SCIC_SDS_REMOTE_DEVICE. diff --git a/sys/dev/isci/scil/scic_sds_remote_node_context.c b/sys/dev/isci/scil/scic_sds_remote_node_context.c index c2ec1c2..473b476 100644 --- a/sys/dev/isci/scil/scic_sds_remote_node_context.c +++ b/sys/dev/isci/scil/scic_sds_remote_node_context.c @@ -302,7 +302,7 @@ void scic_sds_remote_node_context_setup_to_resume( /** * This method will setup the remote node context object so it will -* transistion to its final state. +* transition to its final state. * * @param[in] this_rnc * @param[in] the_callback diff --git a/sys/dev/isci/scil/scic_sds_remote_node_table.c b/sys/dev/isci/scil/scic_sds_remote_node_table.c index d159f27..2c287bd 100644 --- a/sys/dev/isci/scil/scic_sds_remote_node_table.c +++ b/sys/dev/isci/scil/scic_sds_remote_node_table.c @@ -138,7 +138,7 @@ void scic_sds_remote_node_table_clear_group_index( } /** - * This method will set the group index bit entry in the specified gropu index + * This method will set the group index bit entry in the specified group index * table. * * @param[in out] remote_node_table This the remote node table in which to set diff --git a/sys/dev/isci/scil/scic_sds_request.c b/sys/dev/isci/scil/scic_sds_request.c index f126e58..3e85785 100644 --- a/sys/dev/isci/scil/scic_sds_request.c +++ b/sys/dev/isci/scil/scic_sds_request.c @@ -94,7 +94,7 @@ __FBSDID("$FreeBSD$"); /** * @struct SCI_SINGLE_LEVEL_LUN * -* @brief this struct decribes the single level LUN structure +* @brief this struct describes the single level LUN structure * as per the SAM 4. */ typedef struct SCI_SINGLE_LEVEL_LUN @@ -842,7 +842,7 @@ void scic_sds_ssp_task_request_assign_buffers( * -# task_type == SCU_TASK_TYPE_IOREAD. This simply indicates * that a normal request type (i.e. non-raw frame) is being * utilized to perform task management. - * -# control_frame == 1. This ensures that the proper endianess + * -# control_frame == 1. This ensures that the proper endianness * is set so that the bytes are transmitted in the right order * for a task frame. * @@ -2116,7 +2116,7 @@ SCI_STATUS scic_sds_request_started_state_abort_handler( * @param[in] this_request This parameter specifies the request for which * a completion occurred. * @param[in] completion_code This parameter specifies the completion code - * recieved from the SCU. + * received from the SCU. * * @return none */ @@ -2706,7 +2706,7 @@ void scic_sds_request_constructed_state_enter( * SCSI Task request we must enter the started substate machine. * * @param[in] object This parameter specifies the base object for which the - * state transition is occuring. This is cast into a + * state transition is occurring. This is cast into a * SCIC_SDS_IO_REQUEST object. * * @return none @@ -2736,7 +2736,7 @@ void scic_sds_request_started_state_enter( * to stop the started substate machine. * * @param[in] object This parameter specifies the base object for which the - * state transition is occuring. This object is cast into a + * state transition is occurring. This object is cast into a * SCIC_SDS_IO_REQUEST object. * * @return none @@ -2760,7 +2760,7 @@ void scic_sds_request_started_state_exit( * completion callback function. * * @param[in] object This parameter specifies the base object for which the - * state transition is occuring. This object is cast into a + * state transition is occurring. This object is cast into a * SCIC_SDS_IO_REQUEST object. * * @return none @@ -2804,7 +2804,7 @@ void scic_sds_request_completed_state_enter( * SCI_BASE_REQUEST_STATE_ABORTING state. * * @param[in] object This parameter specifies the base object for which the - * state transition is occuring. This object is cast into a + * state transition is occurring. This object is cast into a * SCIC_SDS_IO_REQUEST object. * * @return none @@ -2832,7 +2832,7 @@ void scic_sds_request_aborting_state_enter( * state handlers in place. * * @param[in] object This parameter specifies the base object for which the - * state transition is occuring. This is cast into a + * state transition is occurring. This is cast into a * SCIC_SDS_IO_REQUEST object. * * @return none diff --git a/sys/dev/isci/scil/scic_sds_smp_request.c b/sys/dev/isci/scil/scic_sds_smp_request.c index d6990e5..ea92782 100644 --- a/sys/dev/isci/scil/scic_sds_smp_request.c +++ b/sys/dev/isci/scil/scic_sds_smp_request.c @@ -352,7 +352,7 @@ SCI_STATUS scic_io_request_construct_smp_pass_through( * -# task_type == SCU_TASK_TYPE_SMP. This simply indicates * that a normal request type (i.e. non-raw frame) is being * utilized to perform task management. - * -# control_frame == 1. This ensures that the proper endianess + * -# control_frame == 1. This ensures that the proper endianness * is set so that the bytes are transmitted in the right order * for a smp request frame. * @@ -811,7 +811,7 @@ scic_sds_smp_request_started_substate_handler_table * sub-state. * * @param[in] object This parameter specifies the request object for which - * the sub-state change is occuring. + * the sub-state change is occurring. * * @return none. */ @@ -836,7 +836,7 @@ void scic_sds_smp_request_started_await_response_substate_enter( * this sub-state. * * @param[in] object This parameter specifies the request object for which - * the sub-state change is occuring. + * the sub-state change is occurring. * * @return none. */ diff --git a/sys/dev/isci/scil/scic_sds_ssp_request.c b/sys/dev/isci/scil/scic_sds_ssp_request.c index 086f479..c7a67ac 100644 --- a/sys/dev/isci/scil/scic_sds_ssp_request.c +++ b/sys/dev/isci/scil/scic_sds_ssp_request.c @@ -279,7 +279,7 @@ scic_sds_ssp_task_request_started_substate_handler_table * for this sub-state. * * @param[in] object This parameter specifies the request object for which - * the sub-state change is occuring. + * the sub-state change is occurring. * * @return none. */ @@ -304,7 +304,7 @@ void scic_sds_io_request_started_task_mgmt_await_tc_completion_substate_enter( * sub-state. * * @param[in] object This parameter specifies the request object for which - * the sub-state change is occuring. + * the sub-state change is occurring. * * @return none. */ diff --git a/sys/dev/isci/scil/scic_sds_stp_packet_request.c b/sys/dev/isci/scil/scic_sds_stp_packet_request.c index b29a4e8..42a7497 100644 --- a/sys/dev/isci/scil/scic_sds_stp_packet_request.c +++ b/sys/dev/isci/scil/scic_sds_stp_packet_request.c @@ -124,7 +124,7 @@ SCI_STATUS scic_sds_stp_packet_request_construct( * -# task_type == SCU_TASK_TYPE_PACKET_DMA. This simply indicates * that a normal request type (i.e. non-raw frame) is being * utilized to perform task management. - * -# control_frame == 1. This ensures that the proper endianess + * -# control_frame == 1. This ensures that the proper endianness * is set so that the bytes are transmitted in the right order * for a smp request frame. * @@ -454,7 +454,7 @@ SCI_STATUS scic_sds_stp_packet_request_packet_phase_await_pio_setup_frame_handle * @brief This method processes the completions transport layer (TL) status * to determine if the PACKET command data FIS was sent successfully. * If successfully, then the state for the packet request - * transits to COMPLETE state. If not successfuly, the request transits + * transits to COMPLETE state. If not successfully, the request transits * to COMMAND_PHASE_AWAIT_D2H_FIS_SUBSTATE. * * @param[in] this_request This parameter specifies the request for which diff --git a/sys/dev/isci/scil/scic_sds_stp_remote_device.c b/sys/dev/isci/scil/scic_sds_stp_remote_device.c index 49511c9..8eb511f 100644 --- a/sys/dev/isci/scil/scic_sds_stp_remote_device.c +++ b/sys/dev/isci/scil/scic_sds_stp_remote_device.c @@ -424,7 +424,7 @@ SCI_STATUS scic_sds_stp_remote_device_ready_ncq_substate_event_handler( this_device, event_code, sci_base_state_machine_get_state(&this_device->ready_substate_machine) )); - // Since we didnt expect to get here start the device again. + // Since we didn't expect to get here start the device again. status = scic_sds_remote_device_resume(this_device); break; diff --git a/sys/dev/isci/scil/scic_sds_stp_request.c b/sys/dev/isci/scil/scic_sds_stp_request.c index f3fe28d..5a2612c 100644 --- a/sys/dev/isci/scil/scic_sds_stp_request.c +++ b/sys/dev/isci/scil/scic_sds_stp_request.c @@ -337,7 +337,7 @@ void scu_sata_reqeust_construct_task_context( // Copy the physical address for the command buffer to the SCU Task Context // We must offset the command buffer by 4 bytes because the first 4 bytes are - // transfered in the body of the TC + // transferred in the body of the TC scic_cb_io_request_get_physical_address( scic_sds_request_get_controller(this_request), this_request, @@ -398,7 +398,7 @@ void scic_sds_stp_optimized_request_construct( // Build the STP task context structure scu_sata_reqeust_construct_task_context(this_request, task_context); - // Copy over the number of bytes to be transfered + // Copy over the number of bytes to be transferred task_context->transfer_length_bytes = transfer_length; if ( data_direction == SCI_IO_REQUEST_DATA_OUT ) @@ -1267,7 +1267,7 @@ SCI_STATUS scic_sds_stp_request_pio_data_in_copy_data( } else { - // We are transfering the whole frame so copy + // We are transferring the whole frame so copy status = scic_sds_stp_request_pio_data_in_copy_data_buffer( this_request, data_buffer, SCU_MAX_FRAME_BUFFER_SIZE); @@ -1667,7 +1667,7 @@ SCI_STATUS scic_sds_stp_request_pio_data_out_await_data_transmit_completion_tc_c } else if (this_scic_sds_stp_request->type.pio.pio_transfer_bytes == 0) { - //this will happen if the all data is written at the first time after the pio setup fis is recieved + //this will happen if the all data is written at the first time after the pio setup fis is received all_frames_transferred = TRUE; } diff --git a/sys/dev/isci/scil/scic_sds_stp_request.h b/sys/dev/isci/scil/scic_sds_stp_request.h index 20b53ab..5d57acf 100644 --- a/sys/dev/isci/scil/scic_sds_stp_request.h +++ b/sys/dev/isci/scil/scic_sds_stp_request.h @@ -83,7 +83,7 @@ typedef struct SCIC_SDS_STP_REQUEST struct { /** - * Total transfer for the entire PIO request recorded at request constuction + * Total transfer for the entire PIO request recorded at request construction * time. * * @todo Should we just decrement this value for each byte of data transitted diff --git a/sys/dev/isci/scil/scic_sds_unsolicited_frame_control.c b/sys/dev/isci/scil/scic_sds_unsolicited_frame_control.c index 2c79b77..f3fd91a 100644 --- a/sys/dev/isci/scil/scic_sds_unsolicited_frame_control.c +++ b/sys/dev/isci/scil/scic_sds_unsolicited_frame_control.c @@ -279,7 +279,7 @@ SCI_STATUS scic_sds_unsolicited_frame_control_get_header( { if (frame_index < uf_control->address_table.count) { - // Skip the first word in the frame since this is a controll word used + // Skip the first word in the frame since this is a control word used // by the hardware. *frame_header = &uf_control->buffers.array[frame_index].header->data; diff --git a/sys/dev/isci/scil/scic_task_request.h b/sys/dev/isci/scil/scic_task_request.h index 41f57fc..0b93972 100644 --- a/sys/dev/isci/scil/scic_task_request.h +++ b/sys/dev/isci/scil/scic_task_request.h @@ -73,7 +73,7 @@ extern "C" { /** * @brief This method simply returns the size required to build an SCI - * based task managment request object. + * based task management request object. * * @return Return the size of the SCIC task request object. */ diff --git a/sys/dev/isci/scil/scic_user_callback.h b/sys/dev/isci/scil/scic_user_callback.h index c8f2bdc..3f75c78 100644 --- a/sys/dev/isci/scil/scic_user_callback.h +++ b/sys/dev/isci/scil/scic_user_callback.h @@ -96,7 +96,7 @@ void * scic_cb_timer_create( ); /** - * @brief This callback method asks the user to destory the supplied timer. + * @brief This callback method asks the user to destroy the supplied timer. * * @param[in] controller This parameter specifies the controller with * which this timer is to associated. @@ -277,7 +277,7 @@ void scic_cb_task_request_complete( * handle. * @param[in] io_request This parameter is the io request object handle * for which the physical address is being requested. - * @param[in] virtual_address This paramter is the virtual address which + * @param[in] virtual_address This parameter is the virtual address which * is to be returned as a physical address. * @param[out] physical_address The physical address for the supplied virtual * address. @@ -294,14 +294,14 @@ void scic_cb_io_request_get_physical_address( /** * @brief This callback method asks the user to provide the number of - * bytes to be transfered as part of this request. + * bytes to be transferred as part of this request. * * @param[in] scic_user_io_request This parameter points to the user's * IO request object. It is a cookie that allows the user to * provide the necessary information for this callback. * * @return This method returns the number of payload data bytes to be - * transfered for this IO request. + * transferred for this IO request. */ U32 scic_cb_io_request_get_transfer_length( void * scic_user_io_request @@ -1117,7 +1117,7 @@ void scic_cb_controller_error( * the CDB address. * @param[in] scic_user_io_request * - * @return The cdb adress. + * @return The cdb address. */ void * scic_cb_stp_packet_io_request_get_cdb_address( void * scic_user_io_request diff --git a/sys/dev/isci/scil/scif_config_parameters.h b/sys/dev/isci/scil/scif_config_parameters.h index 71965fd..d5d15bf 100644 --- a/sys/dev/isci/scil/scif_config_parameters.h +++ b/sys/dev/isci/scil/scif_config_parameters.h @@ -116,7 +116,7 @@ typedef struct SCIF_SAS_USER_PARAMETERS /** * This field indicates the os/user recommends ignoring fua in translation - * for perfromance reasons. + * for performance reasons. */ BOOL ignore_fua; diff --git a/sys/dev/isci/scil/scif_domain.h b/sys/dev/isci/scil/scif_domain.h index ee639c8..73ca775 100644 --- a/sys/dev/isci/scil/scif_domain.h +++ b/sys/dev/isci/scil/scif_domain.h @@ -87,7 +87,7 @@ SCI_PORT_HANDLE_T scif_domain_get_scic_port_handle( ); /** - * @brief This method will find and retreive the device associated with the + * @brief This method will find and retrieve the device associated with the * supplied SAS address if such a device exists. * * @param[in] domain This parameter specifies the framework domain object diff --git a/sys/dev/isci/scil/scif_io_request.h b/sys/dev/isci/scil/scif_io_request.h index 41647d1..69d86ee 100644 --- a/sys/dev/isci/scil/scif_io_request.h +++ b/sys/dev/isci/scil/scif_io_request.h @@ -81,13 +81,13 @@ U32 scif_io_request_get_object_size( ); /** -* @brief This method simply the number of data bytes transfered for a +* @brief This method simply the number of data bytes transferred for a * STP or SSP io request. * * @param[in] scif_io_request This parameter specifies the framework IO * handle to retrieve the number of data bytes transferred. * -* @return Return the number of data bytes transfered by the io request +* @return Return the number of data bytes transferred by the io request */ U32 scif_io_request_get_number_of_bytes_transferred( void * scif_io_request diff --git a/sys/dev/isci/scil/scif_sas_design.h b/sys/dev/isci/scil/scif_sas_design.h index 4bc2825..e847b28 100644 --- a/sys/dev/isci/scil/scif_sas_design.h +++ b/sys/dev/isci/scil/scif_sas_design.h @@ -331,7 +331,7 @@ Please refer to these files directly for further design information: The SCIF SAS SMP REMOTE DEVICE object represents the expander device and fulfills its SMP discover activities. The discover procedure includes a initial discover -phase and a follwoing SATA spinup_hold release phase, if there are expander attached +phase and a following SATA spinup_hold release phase, if there are expander attached SATA device is discovered and in spinup_hold conditon. The SCIF SAS SMP REMOTE DEVICE object also fulfills expander attached device Target Reset (Phy Control) activity. diff --git a/sys/dev/isci/scil/scif_sas_domain.c b/sys/dev/isci/scil/scif_sas_domain.c index 8261e55..c5a54fa 100644 --- a/sys/dev/isci/scil/scif_sas_domain.c +++ b/sys/dev/isci/scil/scif_sas_domain.c @@ -642,7 +642,7 @@ void scif_sas_domain_terminate_requests( while (element != NULL) { request = (SCIF_SAS_REQUEST_T*) sci_fast_list_get_object(element); - // The current element may be deleted from the list becasue of + // The current element may be deleted from the list because of // IO completion so advance to the next element early element = sci_fast_list_get_next(element); @@ -1280,7 +1280,7 @@ U8 scif_sas_domain_get_smp_request_count( while (element != NULL) { request = (SCIF_SAS_REQUEST_T*) sci_fast_list_get_object(element); - // The current element may be deleted from the list becasue of + // The current element may be deleted from the list because of // IO completion so advance to the next element early element = sci_fast_list_get_next(element); @@ -1427,7 +1427,7 @@ SCIF_SAS_REMOTE_DEVICE_T * scif_sas_domain_find_next_ea_target_reset( fw_domain )); - //search throught domain's device list to find the first sata device on spinup_hold + //search through domain's device list to find the first sata device on spinup_hold current_element = sci_abstract_list_get_front(&fw_domain->remote_device_list); while (current_element != NULL ) { diff --git a/sys/dev/isci/scil/scif_sas_remote_device_ready_substates.c b/sys/dev/isci/scil/scif_sas_remote_device_ready_substates.c index f13166e..9f6bb4a 100644 --- a/sys/dev/isci/scil/scif_sas_remote_device_ready_substates.c +++ b/sys/dev/isci/scil/scif_sas_remote_device_ready_substates.c @@ -245,7 +245,7 @@ void scif_sas_remote_device_ready_ncq_error_substate_enter( pending_request = (SCIF_SAS_REQUEST_T*) sci_fast_list_get_object(pending_request_element); - // The current element may be deleted from the list becasue of + // The current element may be deleted from the list because of // IO completion so advance to the next element early pending_request_element = sci_fast_list_get_next(pending_request_element); diff --git a/sys/dev/isci/scil/scif_sas_remote_device_state_handlers.c b/sys/dev/isci/scil/scif_sas_remote_device_state_handlers.c index 2a3b9bd..dc6aa4e 100644 --- a/sys/dev/isci/scil/scif_sas_remote_device_state_handlers.c +++ b/sys/dev/isci/scil/scif_sas_remote_device_state_handlers.c @@ -668,7 +668,7 @@ SCI_STATUS scif_sas_remote_device_default_complete_task_handler( * such a notification isn't supported. * * @param[in] remote_device This parameter specifies the remote device object - * for which the completion notification has occured. + * for which the completion notification has occurred. * @param[in] completion_status This parameter specifies the status * of the completion operation. * @@ -694,7 +694,7 @@ void scif_sas_remote_device_default_start_complete_handler( * such a notification isn't supported. * * @param[in] remote_device This parameter specifies the remote device object - * for which the completion notification has occured. + * for which the completion notification has occurred. * @param[in] completion_status This parameter specifies the status * of the completion operation. * @@ -720,7 +720,7 @@ void scif_sas_remote_device_default_stop_complete_handler( * notification isn't supported. * * @param[in] remote_device This parameter specifies the remote device object - * for which the notification has occured. + * for which the notification has occurred. * * @return none. */ @@ -743,7 +743,7 @@ void scif_sas_remote_device_default_ready_handler( * notification isn't supported. * * @param[in] remote_device This parameter specifies the remote device object - * for which the notification has occured. + * for which the notification has occurred. * * @return none. */ diff --git a/sys/dev/isci/scil/scif_sas_stp_remote_device.c b/sys/dev/isci/scil/scif_sas_stp_remote_device.c index 22e5c3c..2ead304 100644 --- a/sys/dev/isci/scil/scif_sas_stp_remote_device.c +++ b/sys/dev/isci/scil/scif_sas_stp_remote_device.c @@ -197,7 +197,7 @@ scif_sas_stp_remote_device_get_request_by_ncq_tag( pending_request = (SCIF_SAS_REQUEST_T*) sci_fast_list_get_object(pending_request_element); - // The current element may be deleted from the list becasue of + // The current element may be deleted from the list because of // IO completion so advance to the next element early pending_request_element = sci_fast_list_get_next(pending_request_element); diff --git a/sys/dev/isci/scil/scif_sas_stp_task_request.c b/sys/dev/isci/scil/scif_sas_stp_task_request.c index 0a9f953..e7680d6 100644 --- a/sys/dev/isci/scil/scif_sas_stp_task_request.c +++ b/sys/dev/isci/scil/scif_sas_stp_task_request.c @@ -227,7 +227,7 @@ void scif_sas_stp_task_request_abort_task_set_failure_handler( pending_request = (SCIF_SAS_REQUEST_T*) sci_fast_list_get_object(pending_request_element); - // The current element may be deleted from the list becasue of + // The current element may be deleted from the list because of // IO completion so advance to the next element early pending_request_element = sci_fast_list_get_next(pending_request_element); diff --git a/sys/dev/isci/scil/scif_user_callback.h b/sys/dev/isci/scil/scif_user_callback.h index 5478495..70ef235a 100644 --- a/sys/dev/isci/scil/scif_user_callback.h +++ b/sys/dev/isci/scil/scif_user_callback.h @@ -100,7 +100,7 @@ void * scif_cb_timer_create( ); /** - * @brief This callback method asks the user to destory the supplied timer. + * @brief This callback method asks the user to destroy the supplied timer. * * @param[in] controller This parameter specifies the controller with * which this timer is to associated. @@ -371,14 +371,14 @@ void scif_cb_task_request_complete( /** * @brief This callback method asks the user to provide the number of - * bytes to be transfered as part of this request. + * bytes to be transferred as part of this request. * * @param[in] scif_user_io_request This parameter points to the user's * IO request object. It is a cookie that allows the user to * provide the necessary information for this callback. * * @return This method returns the number of payload data bytes to be - * transfered for this IO request. + * transferred for this IO request. */ U32 scif_cb_io_request_get_transfer_length( void * scif_user_io_request diff --git a/sys/dev/isci/scil/scu_registers.h b/sys/dev/isci/scil/scu_registers.h index 8157c1a..a72c629 100644 --- a/sys/dev/isci/scil/scu_registers.h +++ b/sys/dev/isci/scil/scu_registers.h @@ -913,13 +913,13 @@ typedef char LEX_REGISTERS_T; // To calculate the offset for other functions use // BAR0 + FN# * SystemPageSize * 2 // -// The TCA is only accessable from FN#0 (Physical Function) and each +// The TCA is only accessible from FN#0 (Physical Function) and each // is programmed by (BAR0 + SCU_SMU_TCA_OFFSET + (FN# * 0x04)) or // TCA0 for FN#0 is at BAR0 + 0x0400 // TCA1 for FN#1 is at BAR0 + 0x0404 // etc. // ---------------------------------------------------------------------------- -// Accessable to all FN#s +// Accessible to all FN#s #define SCU_SMU_PCP_OFFSET 0x0000 #define SCU_SMU_AMR_OFFSET 0x0004 #define SCU_SMU_ISR_OFFSET 0x0010 @@ -933,7 +933,7 @@ typedef char LEX_REGISTERS_T; #define SCU_SMU_CQPR_OFFSET 0x0040 #define SCU_SMU_CQGR_OFFSET 0x0044 #define SCU_SMU_CQC_OFFSET 0x0048 -// Accessable to FN#0 only +// Accessible to FN#0 only #define SCU_SMU_RNCLBAR_OFFSET 0x0080 #define SCU_SMU_RNCUBAR_OFFSET 0x0084 #define SCU_SMU_DCC_OFFSET 0x0090 @@ -942,9 +942,9 @@ typedef char LEX_REGISTERS_T; #define SCU_SMU_SCUSRCR_OFFSET 0x009C #define SCU_SMU_SMAW_OFFSET 0x00A0 #define SCU_SMU_SMDW_OFFSET 0x00A4 -// Accessable to FN#0 only +// Accessible to FN#0 only #define SCU_SMU_TCA_OFFSET 0x0400 -// Accessable to all FN#s +// Accessible to all FN#s #define SCU_SMU_MT_MLAR0_OFFSET 0x2000 #define SCU_SMU_MT_MUAR0_OFFSET 0x2004 #define SCU_SMU_MT_MDR0_OFFSET 0x2008 @@ -999,7 +999,7 @@ typedef struct SMU_REGISTERS U32 reserved_5x[4]; U32 reserved_6x[4]; U32 reserved_7x[4]; -// Accessable to FN#0 only +// Accessible to FN#0 only // 0x0080 RNCLBAR U32 remote_node_context_lower; // 0x0084 RNCUBAR @@ -1031,7 +1031,7 @@ typedef struct SMU_REGISTERS U32 reserved_1xx[64]; U32 reserved_2xx[64]; U32 reserved_3xx[64]; -// Accessable to FN#0 only +// Accessible to FN#0 only // 0x0400 TCA U32 task_context_assignment[256]; // MSI-X registers not included diff --git a/sys/dev/isci/scil/scu_task_context.h b/sys/dev/isci/scil/scu_task_context.h index f73ce64..39a6396 100644 --- a/sys/dev/isci/scil/scu_task_context.h +++ b/sys/dev/isci/scil/scu_task_context.h @@ -172,7 +172,7 @@ typedef enum #define SCU_TASK_REGULAR 0 #define SCU_TASK_ABORTED 1 -//direction bit defintion +//direction bit definition /** * @name SATA_DIRECTION */ @@ -483,7 +483,7 @@ typedef struct SCU_SGL_ELEMENT * @brief This structure is the SCU hardware definition of a pair of SGL * elements. * - * The SCU hardware always works on SGL pairs. They are refered to in the DS + * The SCU hardware always works on SGL pairs. They are referred to in the DS * specification as SGL A and SGL B. Each SGL pair is followed by the address * of the next pair. */ @@ -706,7 +706,7 @@ typedef struct SCU_TASK_CONTEXT U32 strict_ordering : 1; /** - * This field indicates the type of endianess to be utilized for the + * This field indicates the type of endianness to be utilized for the * frame. command, task, and response frames utilized control_frame * set to 1. */ @@ -793,7 +793,7 @@ typedef struct SCU_TASK_CONTEXT // OFFSET 0x14 /** - * This filed is set to the number of bytes to be transfered in the request. + * This filed is set to the number of bytes to be transferred in the request. */ U32 transfer_length_bytes : 24; // In terms of bytes @@ -804,7 +804,7 @@ typedef struct SCU_TASK_CONTEXT // OFFSET 0x18-0x2C /** - * This union provides for the protocol specif part of the SCU Task Context. + * This union provides for the protocol specific part of the SCU Task Context. */ union PROTOCOL_CONTEXT type; diff --git a/sys/dev/iscsi_initiator/isc_cam.c b/sys/dev/iscsi_initiator/isc_cam.c index e53a0fb..02ed91a 100644 --- a/sys/dev/iscsi_initiator/isc_cam.c +++ b/sys/dev/iscsi_initiator/isc_cam.c @@ -227,7 +227,7 @@ ic_action(struct cam_sim *sim, union ccb *ccb) if(ccg->block_size == 0 || (ccg->volume_size < ccg->block_size)) { // print error message ... - /* XXX: what error is appropiate? */ + /* XXX: what error is appropriate? */ break; } else { diff --git a/sys/dev/iscsi_initiator/isc_soc.c b/sys/dev/iscsi_initiator/isc_soc.c index adb9914..2282677 100644 --- a/sys/dev/iscsi_initiator/isc_soc.c +++ b/sys/dev/iscsi_initiator/isc_soc.c @@ -222,7 +222,7 @@ isc_sendPDU(isc_session_t *sp, pduq_t *pq) if(pq->pdu.ds_addr && pp->ds_len) { iv->iov_base = pp->ds_addr; iv->iov_len = pp->ds_len; - while(iv->iov_len & 03) // the specs say it must be int alligned + while(iv->iov_len & 03) // the specs say it must be int aligned iv->iov_len++; uio->uio_resid += iv->iov_len ; iv++; diff --git a/sys/dev/iscsi_initiator/iscsi.c b/sys/dev/iscsi_initiator/iscsi.c index 99f727e..e607f18 100644 --- a/sys/dev/iscsi_initiator/iscsi.c +++ b/sys/dev/iscsi_initiator/iscsi.c @@ -150,7 +150,7 @@ iscsi_close(struct cdev *dev, int flag, int otyp, struct thread *td) sdebug(3, "sp->flags=%x", sp->flags ); /* | if still in full phase, this probably means - | that something went realy bad. + | that something went really bad. | it could be a result from 'shutdown', in which case | we will ignore it (so buffers can be flushed). | the problem is that there is no way of differentiating diff --git a/sys/dev/isp/DriverManual.txt b/sys/dev/isp/DriverManual.txt index 3d2f0fc..ded4f3a 100644 --- a/sys/dev/isp/DriverManual.txt +++ b/sys/dev/isp/DriverManual.txt @@ -69,7 +69,7 @@ are planned. 3. Driver Design Goals The driver has not started out as one normally would do such an effort. -Normally you design via top-down methodologies and set an intial goal +Normally you design via top-down methodologies and set an initial goal and meet it. This driver has had a design goal that changes from almost the very first. This has been an extremely peculiar, if not risque, experience. As a consequence, this section of this document contains @@ -127,7 +127,7 @@ means that at the same host visible address if you write a mailbox register, that is a write to an (incoming, to the HBA) mailbox register, while a read to the same address reads another (outgoing, to the HBA) mailbox register with completely different data. Each HBA also then has -core and auxillary logic which either is used to interface to a SCSI bus +core and auxiliary logic which either is used to interface to a SCSI bus (or to external bus drivers that connect to a SCSI bus), or to connect to a Fibre Channel bus. @@ -310,7 +310,7 @@ queues (as well as a Fibre Channel scratch area if this is a Fibre Channel HBA). The reason this is considered 'bus dependent' is that only the bus dependent module may have the information that says how one could perform I/O mapping and dependent (e.g., on a Solaris system) -on the Request and Reponse queues. Another callback can enable the *use* +on the Request and Response queues. Another callback can enable the *use* of interrupts should this platform be able to finish configuration in interrupt driven mode. @@ -325,7 +325,7 @@ here in clarifying some of this. 5.4 Initiator Mode Command Code Flow -A succesful execution of isp_init will lead to the driver 'registering' +A successful execution of isp_init will lead to the driver 'registering' itself with this platform's SCSI subsystem. One assumed action for this is the registry of a function that the SCSI subsystem for this platform will call when it has a SCSI command to run. diff --git a/sys/dev/isp/isp.c b/sys/dev/isp/isp.c index ceb54ed..ff1d29f 100644 --- a/sys/dev/isp/isp.c +++ b/sys/dev/isp/isp.c @@ -5871,7 +5871,7 @@ isp_parse_async_fc(ispsoftc_t *isp, uint16_t mbox) } #endif /* - * We've had problems with data corruption occuring on + * We've had problems with data corruption occurring on * commands that complete (with no apparent error) after * we receive a LIP. This has been observed mostly on * Local Loop topologies. To be safe, let's just mark @@ -6455,7 +6455,7 @@ isp_parse_status(ispsoftc_t *isp, ispstatusreq_t *sp, XS_T *xs, long *rp) * isn't an error, per se. * * Unfortunately, some QLogic f/w writers have, in - * some cases, ommitted to *set* status to QFULL. + * some cases, omitted to *set* status to QFULL. */ #if 0 if (*XS_STSP(xs) != SCSI_GOOD && XS_NOERR(xs)) { diff --git a/sys/dev/isp/ispvar.h b/sys/dev/isp/ispvar.h index a97a04f..fe06a98 100644 --- a/sys/dev/isp/ispvar.h +++ b/sys/dev/isp/ispvar.h @@ -356,9 +356,9 @@ typedef struct { * index to put it into the Database, but that's just an optimization. We mark * the entry VALID and make sure that the target index is updated and correct. * - * When we get done searching the local loop, we then search similarily for + * When we get done searching the local loop, we then search similarly for * a list of devices we've gotten from the fabric name controller (if we're - * on a fabric). VALID marking is also done similarily. + * on a fabric). VALID marking is also done similarly. * * When all of this is done, we can march through the database and clean up * any entry that is still PROBATIONAL (these represent devices which have @@ -1040,7 +1040,7 @@ void isp_prt_endcmd(ispsoftc_t *, XS_T *); * XS_STSP(xs) gets a pointer to the SCSI status byte "" * XS_SNSP(xs) gets a pointer to the associate sense data * XS_TOT_SNSLEN(xs) gets the total length of sense data storage - * XS_CUR_SNSLEN(xs) gets the currently used lenght of sense data storage + * XS_CUR_SNSLEN(xs) gets the currently used length of sense data storage * XS_SNSKEY(xs) dereferences XS_SNSP to get the current stored Sense Key * XS_SNSASC(xs) dereferences XS_SNSP to get the current stored Additional Sense Code * XS_SNSASCQ(xs) dereferences XS_SNSP to get the current stored Additional Sense Code Qualifier diff --git a/sys/dev/iwi/if_iwireg.h b/sys/dev/iwi/if_iwireg.h index bc05ad2..0e837ff 100644 --- a/sys/dev/iwi/if_iwireg.h +++ b/sys/dev/iwi/if_iwireg.h @@ -481,7 +481,7 @@ struct iwi_scan { #define IWI_SCAN_TYPES 5 /* scan result codes */ -#define IWI_SCAN_COMPLETED 1 /* scan compeleted sucessfully */ +#define IWI_SCAN_COMPLETED 1 /* scan compeleted successfully */ #define IWI_SCAN_ABORTED 2 /* scan was aborted by the driver */ /* structure for command IWI_CMD_SCAN_EXT */ diff --git a/sys/dev/iwm/if_iwmreg.h b/sys/dev/iwm/if_iwmreg.h index dc32b98..1fc438b 100644 --- a/sys/dev/iwm/if_iwmreg.h +++ b/sys/dev/iwm/if_iwmreg.h @@ -1869,7 +1869,7 @@ enum { * struct iwm_error_resp - FW error indication * ( IWM_REPLY_ERROR = 0x2 ) * @error_type: one of IWM_FW_ERR_* - * @cmd_id: the command ID for which the error occured + * @cmd_id: the command ID for which the error occurred * @bad_cmd_seq_num: sequence number of the erroneous command * @error_service: which service created the error, applicable only if * error_type = 2, otherwise 0 @@ -2855,7 +2855,7 @@ enum iwm_sf_scenario { /** * Smart Fifo configuration command. * @state: smart fifo state, types listed in iwm_sf_sate. - * @watermark: Minimum allowed availabe free space in RXF for transient state. + * @watermark: Minimum allowed available free space in RXF for transient state. * @long_delay_timeouts: aging and idle timer values for each scenario * in long delay state. * @full_on_timeouts: timer values for each scenario in full on state. @@ -3411,12 +3411,12 @@ struct iwm_uapsd_misbehaving_ap_notif { * calculated for this and the last passed beacon is greater than this * threshold. Zero value means that the temperature change is ignored for * beacon filtering; beacons will not be forced to be sent to driver - * regardless of whether its temerature has been changed. + * regardless of whether its temperature has been changed. * @bf_temp_slow_filter: Send Beacon to driver if delta in temperature values * calculated for this and the last passed beacon is greater than this * threshold. Zero value means that the temperature change is ignored for * beacon filtering; beacons will not be forced to be sent to driver - * regardless of whether its temerature has been changed. + * 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 * for a specific period of time. Units: Beacons. @@ -4439,7 +4439,7 @@ enum iwm_scan_type { * @rxchain_sel_flags: RXON_RX_CHAIN_* * @max_out_time: in usecs, max out of serving channel time * @suspend_time: how long to pause scan when returning to service channel: - * bits 0-19: beacon interal in usecs (suspend before executing) + * bits 0-19: beacon interval in usecs (suspend before executing) * bits 20-23: reserved * bits 24-31: number of beacons (suspend between channels) * @rxon_flags: RXON_FLG_* diff --git a/sys/dev/iwm/if_iwmvar.h b/sys/dev/iwm/if_iwmvar.h index 6d8b887..849ded7 100644 --- a/sys/dev/iwm/if_iwmvar.h +++ b/sys/dev/iwm/if_iwmvar.h @@ -458,7 +458,7 @@ struct iwm_softc { /* * So why do we need a separate stopped flag and a generation? - * the former protects the device from issueing commands when it's + * the former protects the device from issuing commands when it's * stopped (duh). The latter protects against race from a very * fast stop/unstop cycle where threads waiting for responses do * not have a chance to run in between. Notably: we want to stop diff --git a/sys/dev/iwn/if_iwn.c b/sys/dev/iwn/if_iwn.c index 65724e7..6a740d3 100644 --- a/sys/dev/iwn/if_iwn.c +++ b/sys/dev/iwn/if_iwn.c @@ -5251,7 +5251,7 @@ iwn_set_link_quality(struct iwn_softc *sc, struct ieee80211_node *ni) * will not be using MIMO. * * Since we're filling linkq from 0..15 and we're filling - * from the higest MCS rates to the lowest rates, if we + * from the highest MCS rates to the lowest rates, if we * _are_ doing a dual-stream rate, set mimo to idx+1 (ie, * the next entry.) That way if the next entry is a non-MIMO * entry, we're already pointing at it. diff --git a/sys/dev/ixgb/ixgb_ee.c b/sys/dev/ixgb/ixgb_ee.c index 4ce650e..3dcd630 100644 --- a/sys/dev/ixgb/ixgb_ee.c +++ b/sys/dev/ixgb/ixgb_ee.c @@ -375,7 +375,7 @@ ixgb_update_eeprom_checksum(struct ixgb_hw *hw) * * hw - Struct containing variables accessed by shared code * reg - offset within the EEPROM to be written to - * data - 16 bit word to be writen to the EEPROM + * data - 16 bit word to be written to the EEPROM * * If ixgb_update_eeprom_checksum is not called after this function, the * EEPROM will most likely contain an invalid checksum. diff --git a/sys/dev/ixgb/ixgb_hw.c b/sys/dev/ixgb/ixgb_hw.c index 23b0b28..2985994 100644 --- a/sys/dev/ixgb/ixgb_hw.c +++ b/sys/dev/ixgb/ixgb_hw.c @@ -939,7 +939,7 @@ ixgb_check_for_link(struct ixgb_hw *hw) } /****************************************************************************** - * Check for a bad link condition that may have occured. + * Check for a bad link condition that may have occurred. * The indication is that the RFC / LFC registers may be incrementing * continually. A full adapter reset is required to recover. * diff --git a/sys/dev/jme/if_jmereg.h b/sys/dev/jme/if_jmereg.h index f7dfb12..d778b7f 100644 --- a/sys/dev/jme/if_jmereg.h +++ b/sys/dev/jme/if_jmereg.h @@ -925,7 +925,7 @@ #define TIMER3_TIMEOUT_COUNT_SHIFT 8 #define TIMER3_TIMEOUT_VALUE_SHIFT 1 -/* Aggresive power mode control. */ +/* Aggressive power mode control. */ #define JME_APMC 0x087C #define APMC_PCIE_SDOWN_STAT 0x80000000 #define APMC_PCIE_SDOWN_ENB 0x40000000 diff --git a/sys/dev/jme/if_jmevar.h b/sys/dev/jme/if_jmevar.h index 1a1e81c..cffab5a 100644 --- a/sys/dev/jme/if_jmevar.h +++ b/sys/dev/jme/if_jmevar.h @@ -35,7 +35,7 @@ #include <sys/taskqueue.h> /* - * JMC250 supports upto 1024 descriptors and the number of + * JMC250 supports up to 1024 descriptors and the number of * descriptors should be multiple of 16. */ #define JME_TX_RING_CNT 384 diff --git a/sys/dev/kbd/kbd.c b/sys/dev/kbd/kbd.c index 985a960..389ef75 100644 --- a/sys/dev/kbd/kbd.c +++ b/sys/dev/kbd/kbd.c @@ -283,7 +283,7 @@ kbd_unregister(keyboard_t *kbd) return (0); } -/* find a funciton table by the driver name */ +/* find a function table by the driver name */ keyboard_switch_t *kbd_get_switch(char *driver) { diff --git a/sys/dev/lge/if_lge.c b/sys/dev/lge/if_lge.c index 9aef131..721aee8 100644 --- a/sys/dev/lge/if_lge.c +++ b/sys/dev/lge/if_lge.c @@ -1074,7 +1074,7 @@ lge_intr(arg) ifp = sc->lge_ifp; LGE_LOCK(sc); - /* Supress unwanted interrupts */ + /* Suppress unwanted interrupts */ if (!(ifp->if_flags & IFF_UP)) { lge_stop(sc); LGE_UNLOCK(sc); diff --git a/sys/dev/lmc/if_lmc.c b/sys/dev/lmc/if_lmc.c index fe22edf..cf030c7 100644 --- a/sys/dev/lmc/if_lmc.c +++ b/sys/dev/lmc/if_lmc.c @@ -1268,7 +1268,7 @@ t3_send_dbl_feac(softc_t *sc, int feac1, int feac2) /* Flush received FEACS; don't respond to our own loop cmd! */ while (read_framer(sc, T3CSR_FEAC_STK) & FEAC_STK_VALID) DELAY(1); /* XXX HANG */ /* Restore previous state of the FEAC transmitter. */ - /* If it was sending a continous FEAC, it will resume. */ + /* If it was sending a continuous FEAC, it will resume. */ write_framer(sc, T3CSR_TX_FEAC, tx_feac); } diff --git a/sys/dev/lmc/if_lmc.h b/sys/dev/lmc/if_lmc.h index 8291dcd..0121375 100644 --- a/sys/dev/lmc/if_lmc.h +++ b/sys/dev/lmc/if_lmc.h @@ -236,14 +236,14 @@ /* T3 GPIO bits */ #define GPIO_T3_DAC 0x04 /* DAC chip select */ -#define GPIO_T3_INTEN 0x08 /* Framer Interupt enable */ +#define GPIO_T3_INTEN 0x08 /* Framer Interrupt enable */ /* SSI GPIO bits */ #define GPIO_SSI_SYNTH 0x04 /* Synth osc chip select */ #define GPIO_SSI_DCE 0x08 /* provide clock on TXCLOCK output */ /* T1E1 GPIO bits */ -#define GPIO_T1_INTEN 0x08 /* Framer Interupt enable */ +#define GPIO_T1_INTEN 0x08 /* Framer Interrupt enable */ /* MII register 16 bits common to all cards */ /* NB: LEDs for HSSI & SSI are in DIFFERENT bits than for T1E1 & T3; oops */ diff --git a/sys/dev/mfi/mfi.c b/sys/dev/mfi/mfi.c index 05751ba..021a424 100644 --- a/sys/dev/mfi/mfi.c +++ b/sys/dev/mfi/mfi.c @@ -539,7 +539,7 @@ mfi_attach(struct mfi_softc *sc) /* Allocate DMA memory mapping for MPI2 IOC Init descriptor, - we are taking it diffrent from what we have allocated for Request + we are taking it different from what we have allocated for Request and reply descriptors to avoid confusion later */ tb_mem_size = sizeof(struct MPI2_IOC_INIT_REQUEST); @@ -2351,7 +2351,7 @@ mfi_data_cb(void *arg, bus_dma_segment_t *segs, int nsegs, int error) /* * We need to check if we have the lock as this is async * callback so even though our caller mfi_mapcmd asserts - * it has the lock, there is no garantee that hasn't been + * it has the lock, there is no guarantee that hasn't been * dropped if bus_dmamap_load returned prior to our * completion. */ diff --git a/sys/dev/mfi/mfi_tbolt.c b/sys/dev/mfi/mfi_tbolt.c index 984c355..3f83eb9 100644 --- a/sys/dev/mfi/mfi_tbolt.c +++ b/sys/dev/mfi/mfi_tbolt.c @@ -1148,7 +1148,7 @@ mfi_tbolt_send_frame(struct mfi_softc *sc, struct mfi_command *cm) * This is a polled command, so busy-wait for it to complete. * * The value of hdr->cmd_status is updated directly by the hardware - * so there is no garantee that mfi_tbolt_complete_cmd is called + * so there is no guarantee that mfi_tbolt_complete_cmd is called * prior to this value changing. */ while (hdr->cmd_status == MFI_STAT_INVALID_STATUS) { @@ -1351,7 +1351,7 @@ mfi_process_fw_state_chg_isr(void *arg) * interrupt thread. * * The driver could get the RAID state via the MFI_DCMD_LD_MAP_GET_INFO - * That requires a bunch of structure and it is simplier to just do + * That requires a bunch of structure and it is simpler to just do * the MFI_DCMD_LD_GET_LIST versus walking the RAID map. */ diff --git a/sys/dev/mge/if_mgevar.h b/sys/dev/mge/if_mgevar.h index 31b9ac3..e161055 100644 --- a/sys/dev/mge/if_mgevar.h +++ b/sys/dev/mge/if_mgevar.h @@ -370,7 +370,7 @@ struct mge_softc { /* RX error codes */ #define MGE_RX_ERROR_CE (0 << 1) /* CRC error */ #define MGE_RX_ERROR_OR (1 << 1) /* Overrun error */ -#define MGE_RX_ERROR_MF (2 << 1) /* Max frame lenght error */ +#define MGE_RX_ERROR_MF (2 << 1) /* Max frame length error */ #define MGE_RX_ERROR_RE (3 << 1) /* Resource error */ #endif /* __IF_MGE_H__ */ diff --git a/sys/dev/mlx/mlx_disk.c b/sys/dev/mlx/mlx_disk.c index 3b86665..2464dd5 100644 --- a/sys/dev/mlx/mlx_disk.c +++ b/sys/dev/mlx/mlx_disk.c @@ -170,7 +170,7 @@ mlxd_strategy(struct bio *bp) bad: /* - * Correctly set the bio to indicate a failed tranfer. + * Correctly set the bio to indicate a failed transfer. */ bp->bio_resid = bp->bio_bcount; biodone(bp); diff --git a/sys/dev/mly/mly.c b/sys/dev/mly/mly.c index 7c4ed41..cbae482 100644 --- a/sys/dev/mly/mly.c +++ b/sys/dev/mly/mly.c @@ -1931,7 +1931,7 @@ mly_unmap_command(struct mly_command *mc) * the kernel environment variable "hw.mly.register_physical_channels" is set. * * When we refer to a "bus", we are referring to the bus number registered with - * the SIM, wheras a "channel" is a channel number given to the adapter. In order + * the SIM, whereas a "channel" is a channel number given to the adapter. In order * to keep things simple, we map these 1:1, so "bus" and "channel" may be used * interchangeably. */ diff --git a/sys/dev/mly/mlyreg.h b/sys/dev/mly/mlyreg.h index a4106a5..9e5715b 100644 --- a/sys/dev/mly/mlyreg.h +++ b/sys/dev/mly/mlyreg.h @@ -138,7 +138,7 @@ struct mly_sg_entry { */ struct mly_lun_map { u_int8_t res1:4; - u_int8_t host_port_mapped:1; /* this system drive visibile to host on this controller/port combination */ + u_int8_t host_port_mapped:1; /* this system drive visible to host on this controller/port combination */ u_int8_t tid_valid:1; /* target ID valid */ u_int8_t hid_valid:1; /* host ID valid */ u_int8_t lun_valid:1; /* LUN valid */ @@ -1208,7 +1208,7 @@ union mly_command_packet { * PG6: 5.4.4 Doorbell 1 * * Note that the documentation claims that these bits are set when the - * status queue(s) are empty, wheras the Linux driver and experience + * status queue(s) are empty, whereas the Linux driver and experience * suggest they are set when there is status available. */ #define MLY_HM_STSREADY (1<<0) diff --git a/sys/dev/mmc/mmcreg.h b/sys/dev/mmc/mmcreg.h index b169d26..f25c0f63 100644 --- a/sys/dev/mmc/mmcreg.h +++ b/sys/dev/mmc/mmcreg.h @@ -441,7 +441,7 @@ struct mmc_sd_status * Older versions of the MMC standard had a variable sector size. However, * I've been able to find no old MMC or SD cards that have a non 512 * byte sector size anywhere, so we assume that such cards are very rare - * and only note their existance in passing here... + * and only note their existence in passing here... */ #define MMC_SECTOR_SIZE 512 diff --git a/sys/dev/mn/if_mn.c b/sys/dev/mn/if_mn.c index 0356f53..a4ec603 100644 --- a/sys/dev/mn/if_mn.c +++ b/sys/dev/mn/if_mn.c @@ -1186,7 +1186,7 @@ mn_rx_intr(struct mn_softc *sc, u_int32_t vector) /* - * Interupt handler + * Interrupt handler */ static void diff --git a/sys/dev/mpr/mpi/mpi2_history.txt b/sys/dev/mpr/mpi/mpi2_history.txt index 9fca796..e843237 100644 --- a/sys/dev/mpr/mpi/mpi2_history.txt +++ b/sys/dev/mpr/mpi/mpi2_history.txt @@ -305,7 +305,7 @@ mpi2_init.h * 05-21-08 02.00.05 Fixed typo in name of Mpi2SepRequest_t. * 10-02-08 02.00.06 Removed Untagged and No Disconnect values from SCSI IO * Control field Task Attribute flags. - * Moved LUN field defines to mpi2.h becasue they are + * Moved LUN field defines to mpi2.h because they are * common to many structures. * 05-06-09 02.00.07 Changed task management type of Query Unit Attention to * Query Asynchronous Event. diff --git a/sys/dev/mpr/mpi/mpi2_init.h b/sys/dev/mpr/mpi/mpi2_init.h index 5f475c0..5b73643 100644 --- a/sys/dev/mpr/mpi/mpi2_init.h +++ b/sys/dev/mpr/mpi/mpi2_init.h @@ -61,7 +61,7 @@ * 05-21-08 02.00.05 Fixed typo in name of Mpi2SepRequest_t. * 10-02-08 02.00.06 Removed Untagged and No Disconnect values from SCSI IO * Control field Task Attribute flags. - * Moved LUN field defines to mpi2.h becasue they are + * Moved LUN field defines to mpi2.h because they are * common to many structures. * 05-06-09 02.00.07 Changed task management type of Query Unit Attention to * Query Asynchronous Event. diff --git a/sys/dev/mpr/mpr.c b/sys/dev/mpr/mpr.c index 6fe08b0..5580157 100644 --- a/sys/dev/mpr/mpr.c +++ b/sys/dev/mpr/mpr.c @@ -2671,7 +2671,7 @@ mpr_request_polled(struct mpr_softc *sc, struct mpr_command *cm) /* * The MPT driver had a verbose interface for config pages. In this driver, - * reduce it to much simplier terms, similar to the Linux driver. + * reduce it to much simpler terms, similar to the Linux driver. */ int mpr_read_config_page(struct mpr_softc *sc, struct mpr_config_params *params) diff --git a/sys/dev/mpr/mpr_mapping.h b/sys/dev/mpr/mpr_mapping.h index c00a3b7..fafaf9b 100644 --- a/sys/dev/mpr/mpr_mapping.h +++ b/sys/dev/mpr/mpr_mapping.h @@ -33,7 +33,7 @@ #define _MPR_MAPPING_H /** - * struct _map_phy_change - PHY entries recieved in Topology change list + * struct _map_phy_change - PHY entries received in Topology change list * @physical_id: SAS address of the device attached with the associate PHY * @device_info: bitfield provides detailed info about the device * @dev_handle: device handle for the device pointed by this entry diff --git a/sys/dev/mpr/mpr_sas_lsi.c b/sys/dev/mpr/mpr_sas_lsi.c index b2ffe96..f162d1f 100644 --- a/sys/dev/mpr/mpr_sas_lsi.c +++ b/sys/dev/mpr/mpr_sas_lsi.c @@ -717,7 +717,7 @@ mprsas_add_device(struct mpr_softc *sc, u16 handle, u8 linkrate){ parent_devinfo = le32toh(parent_config_page.DeviceInfo); } } - /* TODO Check proper endianess */ + /* TODO Check proper endianness */ sas_address = config_page.SASAddress.High; sas_address = (sas_address << 32) | config_page.SASAddress.Low; mpr_dprint(sc, MPR_INFO, "SAS Address from SAS device page0 = %jx\n", diff --git a/sys/dev/mps/mpi/mpi2_history.txt b/sys/dev/mps/mpi/mpi2_history.txt index d0c2c1d..45af490 100644 --- a/sys/dev/mps/mpi/mpi2_history.txt +++ b/sys/dev/mps/mpi/mpi2_history.txt @@ -247,7 +247,7 @@ mpi2_init.h * 05-21-08 02.00.05 Fixed typo in name of Mpi2SepRequest_t. * 10-02-08 02.00.06 Removed Untagged and No Disconnect values from SCSI IO * Control field Task Attribute flags. - * Moved LUN field defines to mpi2.h becasue they are + * Moved LUN field defines to mpi2.h because they are * common to many structures. * 05-06-09 02.00.07 Changed task management type of Query Unit Attention to * Query Asynchronous Event. diff --git a/sys/dev/mps/mpi/mpi2_init.h b/sys/dev/mps/mpi/mpi2_init.h index 189e457..a75873c 100644 --- a/sys/dev/mps/mpi/mpi2_init.h +++ b/sys/dev/mps/mpi/mpi2_init.h @@ -53,7 +53,7 @@ * 05-21-08 02.00.05 Fixed typo in name of Mpi2SepRequest_t. * 10-02-08 02.00.06 Removed Untagged and No Disconnect values from SCSI IO * Control field Task Attribute flags. - * Moved LUN field defines to mpi2.h becasue they are + * Moved LUN field defines to mpi2.h because they are * common to many structures. * 05-06-09 02.00.07 Changed task management type of Query Unit Attention to * Query Asynchronous Event. diff --git a/sys/dev/mps/mps.c b/sys/dev/mps/mps.c index ce24eed..b564b33 100644 --- a/sys/dev/mps/mps.c +++ b/sys/dev/mps/mps.c @@ -782,7 +782,7 @@ mps_wait_db_ack(struct mps_softc *sc, int timeout, int sleep_flag) int_status = mps_regread(sc, MPI2_HOST_INTERRUPT_STATUS_OFFSET); if (!(int_status & MPI2_HIS_SYS2IOC_DB_STATUS)) { mps_dprint(sc, MPS_INIT, - "%s: successfull count(%d), timeout(%d)\n", + "%s: successful count(%d), timeout(%d)\n", __func__, count, timeout); return 0; } else if (int_status & MPI2_HIS_IOC2SYS_DB_STATUS) { @@ -1907,7 +1907,7 @@ mps_intr_locked(void *data) sc->reply_frames, sc->fqdepth, sc->facts->ReplyFrameSize * 4); printf("%s: baddr %#x,\n", __func__, baddr); - /* LSI-TODO. See Linux Code. Need Gracefull exit*/ + /* LSI-TODO. See Linux Code. Need Graceful exit*/ panic("Reply address out of range"); } if (le16toh(desc->AddressReply.SMID) == 0) { @@ -2192,7 +2192,7 @@ mps_add_chain(struct mps_command *cm) * sgc->Flags = ( MPI2_SGE_FLAGS_CHAIN_ELEMENT | MPI2_SGE_FLAGS_64_BIT_ADDRESSING | * MPI2_SGE_FLAGS_SYSTEM_ADDRESS) << MPI2_SGE_FLAGS_SHIFT * This is fine.. because we are not using simple element. In case of - * MPI2_SGE_CHAIN32, we have seperate Length and Flags feild. + * MPI2_SGE_CHAIN32, we have separate Length and Flags feild. */ sgc->Flags = MPI2_SGE_FLAGS_CHAIN_ELEMENT; sgc->Address = htole32(chain->chain_busaddr); @@ -2558,7 +2558,7 @@ mps_wait_command(struct mps_softc *sc, struct mps_command *cm, int timeout, /* * The MPT driver had a verbose interface for config pages. In this driver, - * reduce it to much simplier terms, similar to the Linux driver. + * reduce it to much simpler terms, similar to the Linux driver. */ int mps_read_config_page(struct mps_softc *sc, struct mps_config_params *params) diff --git a/sys/dev/mps/mps_config.c b/sys/dev/mps/mps_config.c index 9ecfbb3..c21506d 100644 --- a/sys/dev/mps/mps_config.c +++ b/sys/dev/mps/mps_config.c @@ -366,7 +366,7 @@ mps_base_static_config_pages(struct mps_softc *sc) /** * mps_wd_config_pages - get info required to support WarpDrive. This needs to - * be called after discovery is complete to guarentee that IR info is there. + * be called after discovery is complete to guarantee that IR info is there. * @sc: per adapter object * * Return nothing. diff --git a/sys/dev/mps/mps_mapping.h b/sys/dev/mps/mps_mapping.h index c370d50..9803b80 100644 --- a/sys/dev/mps/mps_mapping.h +++ b/sys/dev/mps/mps_mapping.h @@ -33,7 +33,7 @@ #define _MPS_MAPPING_H /** - * struct _map_phy_change - PHY entries recieved in Topology change list + * struct _map_phy_change - PHY entries received in Topology change list * @physical_id: SAS address of the device attached with the associate PHY * @device_info: bitfield provides detailed info about the device * @dev_handle: device handle for the device pointed by this entry diff --git a/sys/dev/mps/mps_sas.c b/sys/dev/mps/mps_sas.c index 8cba1d7..a4dd3e1 100644 --- a/sys/dev/mps/mps_sas.c +++ b/sys/dev/mps/mps_sas.c @@ -2502,7 +2502,7 @@ mpssas_direct_drive_io(struct mpssas_softc *sassc, struct mps_command *cm, * Check if the I/O crosses a stripe boundary. If not, * translate the virtual LBA to a physical LBA and set * the DevHandle for the PhysDisk to be used. If it - * does cross a boundry, do normal I/O. To get the + * does cross a boundary, do normal I/O. To get the * right DevHandle to use, get the map number for the * column, then use that map number to look up the * DevHandle of the PhysDisk. @@ -2588,7 +2588,7 @@ mpssas_direct_drive_io(struct mpssas_softc *sassc, struct mps_command *cm, * If not, translate the virtual LBA to a * physical LBA and set the DevHandle for the * PhysDisk to be used. If it does cross a - * boundry, do normal I/O. To get the right + * boundary, do normal I/O. To get the right * DevHandle to use, get the map number for the * column, then use that map number to look up * the DevHandle of the PhysDisk. @@ -2666,7 +2666,7 @@ mpssas_direct_drive_io(struct mpssas_softc *sassc, struct mps_command *cm, * If not, translate the virtual LBA to a * physical LBA and set the DevHandle for the * PhysDisk to be used. If it does cross a - * boundry, do normal I/O. To get the right + * boundary, do normal I/O. To get the right * DevHandle to use, get the map number for the * column, then use that map number to look up * the DevHandle of the PhysDisk. diff --git a/sys/dev/mps/mps_sas_lsi.c b/sys/dev/mps/mps_sas_lsi.c index 268383a..e9fa06b 100644 --- a/sys/dev/mps/mps_sas_lsi.c +++ b/sys/dev/mps/mps_sas_lsi.c @@ -647,7 +647,7 @@ mpssas_add_device(struct mps_softc *sc, u16 handle, u8 linkrate){ parent_devinfo = le32toh(parent_config_page.DeviceInfo); } } - /* TODO Check proper endianess */ + /* TODO Check proper endianness */ sas_address = config_page.SASAddress.High; sas_address = (sas_address << 32) | config_page.SASAddress.Low; diff --git a/sys/dev/mpt/mpilib/mpi_cnfg.h b/sys/dev/mpt/mpilib/mpi_cnfg.h index e763c58..cb70d88 100644 --- a/sys/dev/mpt/mpilib/mpi_cnfg.h +++ b/sys/dev/mpt/mpilib/mpi_cnfg.h @@ -339,7 +339,7 @@ * define. * Added BIOS Page 4 structure. * Added MPI_RAID_PHYS_DISK1_PATH_MAX define for RAID - * Physcial Disk Page 1. + * Physical Disk Page 1. * 01-15-07 01.05.17 Added additional bit defines for ExtFlags field of * Manufacturing Page 4. * Added Solid State Drives Supported bit to IOC Page 6 diff --git a/sys/dev/mpt/mpilib/mpi_log_fc.h b/sys/dev/mpt/mpilib/mpi_log_fc.h index 4f8d6f6..0383f66 100644 --- a/sys/dev/mpt/mpilib/mpi_log_fc.h +++ b/sys/dev/mpt/mpilib/mpi_log_fc.h @@ -66,8 +66,8 @@ typedef enum _MpiIocLogInfoFc { MPI_IOCLOGINFO_FC_INIT_BASE = 0x20000000, MPI_IOCLOGINFO_FC_INIT_ERROR_OUT_OF_ORDER_FRAME = 0x20000001, /* received an out of order frame - unsupported */ - MPI_IOCLOGINFO_FC_INIT_ERROR_BAD_START_OF_FRAME = 0x20000002, /* Bad Rx Frame, bad start of frame primative */ - MPI_IOCLOGINFO_FC_INIT_ERROR_BAD_END_OF_FRAME = 0x20000003, /* Bad Rx Frame, bad end of frame primative */ + MPI_IOCLOGINFO_FC_INIT_ERROR_BAD_START_OF_FRAME = 0x20000002, /* Bad Rx Frame, bad start of frame primitive */ + MPI_IOCLOGINFO_FC_INIT_ERROR_BAD_END_OF_FRAME = 0x20000003, /* Bad Rx Frame, bad end of frame primitive */ MPI_IOCLOGINFO_FC_INIT_ERROR_OVER_RUN = 0x20000004, /* Bad Rx Frame, overrun */ MPI_IOCLOGINFO_FC_INIT_ERROR_RX_OTHER = 0x20000005, /* Other errors caught by IOC which require retries */ MPI_IOCLOGINFO_FC_INIT_ERROR_SUBPROC_DEAD = 0x20000006, /* Main processor could not initialize sub-processor */ diff --git a/sys/dev/mpt/mpilib/mpi_log_sas.h b/sys/dev/mpt/mpilib/mpi_log_sas.h index 3afd0bb..caebcb1 100644 --- a/sys/dev/mpt/mpilib/mpi_log_sas.h +++ b/sys/dev/mpt/mpilib/mpi_log_sas.h @@ -86,9 +86,9 @@ #define IOP_LOGINFO_CODE_FWUPLOAD_NO_FLASH_AVAILABLE (0x0003E000) /* Tried to upload from flash, but there is none */ #define IOP_LOGINFO_CODE_FWUPLOAD_UNKNOWN_IMAGE_TYPE (0x0003E001) /* ImageType field contents were invalid */ #define IOP_LOGINFO_CODE_FWUPLOAD_WRONG_IMAGE_SIZE (0x0003E002) /* ImageSize field in TCSGE was bad/offset in MfgPg 4 was wrong */ -#define IOP_LOGINFO_CODE_FWUPLOAD_ENTIRE_FLASH_UPLOAD_FAILED (0x0003E003) /* Error occured while attempting to upload the entire flash */ -#define IOP_LOGINFO_CODE_FWUPLOAD_REGION_UPLOAD_FAILED (0x0003E004) /* Error occured while attempting to upload single flash region */ -#define IOP_LOGINFO_CODE_FWUPLOAD_DMA_FAILURE (0x0003E005) /* Problem occured while DMAing FW to host memory */ +#define IOP_LOGINFO_CODE_FWUPLOAD_ENTIRE_FLASH_UPLOAD_FAILED (0x0003E003) /* Error occurred while attempting to upload the entire flash */ +#define IOP_LOGINFO_CODE_FWUPLOAD_REGION_UPLOAD_FAILED (0x0003E004) /* Error occurred while attempting to upload single flash region */ +#define IOP_LOGINFO_CODE_FWUPLOAD_DMA_FAILURE (0x0003E005) /* Problem occurred while DMAing FW to host memory */ #define IOP_LOGINFO_CODE_DIAG_MSG_ERROR (0x00040000) /* Error handling diag msg - or'd with diag status */ @@ -215,8 +215,8 @@ #define PL_LOGINFO_SUB_CODE_BREAK_ON_INCOMPLETE_BREAK_RCVD (0x00005000) #define PL_LOGINFO_CODE_ENCL_MGMT_SMP_FRAME_FAILURE (0x00200000) /* Can't get SMP Frame */ -#define PL_LOGINFO_CODE_ENCL_MGMT_SMP_READ_ERROR (0x00200010) /* Error occured on SMP Read */ -#define PL_LOGINFO_CODE_ENCL_MGMT_SMP_WRITE_ERROR (0x00200020) /* Error occured on SMP Write */ +#define PL_LOGINFO_CODE_ENCL_MGMT_SMP_READ_ERROR (0x00200010) /* Error occurred on SMP Read */ +#define PL_LOGINFO_CODE_ENCL_MGMT_SMP_WRITE_ERROR (0x00200020) /* Error occurred on SMP Write */ #define PL_LOGINFO_CODE_ENCL_MGMT_NOT_SUPPORTED_ON_ENCL (0x00200040) /* Encl Mgmt services not available for this WWID */ #define PL_LOGINFO_CODE_ENCL_MGMT_ADDR_MODE_NOT_SUPPORTED (0x00200050) /* Address Mode not suppored */ #define PL_LOGINFO_CODE_ENCL_MGMT_BAD_SLOT_NUM (0x00200060) /* Invalid Slot Number in SEP Msg */ @@ -235,8 +235,8 @@ #define PL_LOGINFO_DA_SEP_RECEIVED_NACK_FROM_SLAVE (0x00200103) /* SEP NACK'd, it is busy */ #define PL_LOGINFO_DA_SEP_DID_NOT_RECEIVE_ACK (0x00200104) /* SEP didn't rcv. ACK (Last Rcvd Bit = 1) */ #define PL_LOGINFO_DA_SEP_BAD_STATUS_HDR_CHKSUM (0x00200105) /* SEP stopped or sent bad chksum in Hdr */ -#define PL_LOGINFO_DA_SEP_STOP_ON_DATA (0x00200106) /* SEP stopped while transfering data */ -#define PL_LOGINFO_DA_SEP_STOP_ON_SENSE_DATA (0x00200107) /* SEP stopped while transfering sense data */ +#define PL_LOGINFO_DA_SEP_STOP_ON_DATA (0x00200106) /* SEP stopped while transferring data */ +#define PL_LOGINFO_DA_SEP_STOP_ON_SENSE_DATA (0x00200107) /* SEP stopped while transferring sense data */ #define PL_LOGINFO_DA_SEP_UNSUPPORTED_SCSI_STATUS_1 (0x00200108) /* SEP returned unknown scsi status */ #define PL_LOGINFO_DA_SEP_UNSUPPORTED_SCSI_STATUS_2 (0x00200109) /* SEP returned unknown scsi status */ #define PL_LOGINFO_DA_SEP_CHKSUM_ERROR_AFTER_STOP (0x0020010A) /* SEP returned bad chksum after STOP */ diff --git a/sys/dev/mpt/mpt.c b/sys/dev/mpt/mpt.c index 9317965..a3fa58e 100644 --- a/sys/dev/mpt/mpt.c +++ b/sys/dev/mpt/mpt.c @@ -964,7 +964,7 @@ mpt_wait_state(struct mpt_softc *mpt, enum DB_STATE_BITS state) } -/************************* Intialization/Configuration ************************/ +/************************* Initialization/Configuration ************************/ static int mpt_download_fw(struct mpt_softc *mpt); /* Issue the reset COMMAND to the IOC */ diff --git a/sys/dev/mpt/mpt.h b/sys/dev/mpt/mpt.h index 57dbe7b..b611d06 100644 --- a/sys/dev/mpt/mpt.h +++ b/sys/dev/mpt/mpt.h @@ -237,7 +237,7 @@ struct mpt_map_info { void mpt_map_rquest(void *, bus_dma_segment_t *, int, int); -/********************************** Endianess *********************************/ +/********************************* Endianness *********************************/ #define MPT_2_HOST64(ptr, tag) ptr->tag = le64toh(ptr->tag) #define MPT_2_HOST32(ptr, tag) ptr->tag = le32toh(ptr->tag) #define MPT_2_HOST16(ptr, tag) ptr->tag = le16toh(ptr->tag) @@ -663,8 +663,8 @@ struct mpt_softc { bus_addr_t reply_phys; /* BusAddr of reply memory */ bus_dma_tag_t buffer_dmat; /* DMA tag for buffers */ - bus_dma_tag_t request_dmat; /* DMA tag for request memroy */ - bus_dmamap_t request_dmap; /* DMA map for request memroy */ + bus_dma_tag_t request_dmat; /* DMA tag for request memory */ + bus_dmamap_t request_dmap; /* DMA map for request memory */ uint8_t *request; /* KVA of Request memory */ bus_addr_t request_phys; /* BusAddr of request memory */ diff --git a/sys/dev/mrsas/mrsas.c b/sys/dev/mrsas/mrsas.c index 7d5f7fb..23682a9 100644 --- a/sys/dev/mrsas/mrsas.c +++ b/sys/dev/mrsas/mrsas.c @@ -1069,7 +1069,7 @@ mrsas_free_mem(struct mrsas_softc *sc) } /* - * Free version buffer memroy + * Free version buffer memory */ if (sc->verbuf_phys_addr) bus_dmamap_unload(sc->verbuf_tag, sc->verbuf_dmamap); @@ -2687,7 +2687,7 @@ mrsas_reset_reply_desc(struct mrsas_softc *sc) * command Controller is in working state, so skip OCR. Otherwise, do * OCR/kill Adapter based on flag disableOnlineCtrlReset. 4. Start of the * OCR, return all SCSI command back to CAM layer which has ccb_ptr. 5. Post - * OCR, Re-fire Managment command and move Controller to Operation state. + * OCR, Re-fire Management command and move Controller to Operation state. */ int mrsas_reset_ctrl(struct mrsas_softc *sc) diff --git a/sys/dev/mrsas/mrsas_cam.c b/sys/dev/mrsas/mrsas_cam.c index 08f9002..d6d4ad5 100644 --- a/sys/dev/mrsas/mrsas_cam.c +++ b/sys/dev/mrsas/mrsas_cam.c @@ -362,7 +362,7 @@ mrsas_action(struct cam_sim *sim, union ccb *ccb) * * This function will execute after timeout value provided by ccb header from * CAM layer, if timer expires. Driver will run timer for all DCDM and LDIO - * comming from CAM layer. This function is callback function for IO timeout + * coming from CAM layer. This function is callback function for IO timeout * and it runs in no-sleep context. Set do_timedout_reset in Adapter context * so that it will execute OCR/Kill adpter from ocr_thread context. */ diff --git a/sys/dev/msk/if_msk.c b/sys/dev/msk/if_msk.c index ffbe36e..458d7fd 100644 --- a/sys/dev/msk/if_msk.c +++ b/sys/dev/msk/if_msk.c @@ -3493,7 +3493,7 @@ msk_intr_hwerr(struct msk_softc *sc) CSR_WRITE_1(sc, GMAC_TI_ST_CTRL, GMT_ST_CLR_IRQ); if ((status & Y2_IS_PCI_NEXP) != 0) { /* - * PCI Express Error occured which is not described in PEX + * PCI Express Error occurred which is not described in PEX * spec. * This error is also mapped either to Master Abort( * Y2_IS_MST_ERR) or Target Abort (Y2_IS_IRQ_STAT) bit and diff --git a/sys/dev/msk/if_mskreg.h b/sys/dev/msk/if_mskreg.h index da69f2e..8f2ea63 100644 --- a/sys/dev/msk/if_mskreg.h +++ b/sys/dev/msk/if_mskreg.h @@ -1309,7 +1309,7 @@ #define PHY_ST_EXT_ST (1<<8) /* Bit 8: Extended Status Present */ #define PHY_ST_PRE_SUP (1<<6) /* Bit 6: Preamble Suppression */ #define PHY_ST_AN_OVER (1<<5) /* Bit 5: Auto-Negotiation Over */ -#define PHY_ST_REM_FLT (1<<4) /* Bit 4: Remote Fault Condition Occured */ +#define PHY_ST_REM_FLT (1<<4) /* Bit 4: Remote Fault Condition Occurred */ #define PHY_ST_AN_CAP (1<<3) /* Bit 3: Auto-Negotiation Capability */ #define PHY_ST_LSYNC (1<<2) /* Bit 2: Link Synchronized */ #define PHY_ST_JAB_DET (1<<1) /* Bit 1: Jabber Detected */ @@ -1813,8 +1813,8 @@ #define GM_GPSR_LINK_UP BIT_12 /* Link Up Status */ #define GM_GPSR_PAUSE BIT_11 /* Pause State */ #define GM_GPSR_TX_ACTIVE BIT_10 /* Tx in Progress */ -#define GM_GPSR_EXC_COL BIT_9 /* Excessive Collisions Occured */ -#define GM_GPSR_LAT_COL BIT_8 /* Late Collisions Occured */ +#define GM_GPSR_EXC_COL BIT_9 /* Excessive Collisions Occurred */ +#define GM_GPSR_LAT_COL BIT_8 /* Late Collisions Occurred */ #define GM_GPSR_PHY_ST_CH BIT_5 /* PHY Status Change */ #define GM_GPSR_GIG_SPEED BIT_4 /* Gigabit Speed (1 = 1000 Mbps) */ #define GM_GPSR_PART_MODE BIT_3 /* Partition mode */ diff --git a/sys/dev/mvs/mvs.c b/sys/dev/mvs/mvs.c index 699c22f..b3ff4d1 100644 --- a/sys/dev/mvs/mvs.c +++ b/sys/dev/mvs/mvs.c @@ -475,7 +475,7 @@ mvs_setup_edma_queues(device_t dev) ATA_OUTL(ch->r_mem, EDMA_REQQOP, work & 0xffffffff); bus_dmamap_sync(ch->dma.workrq_tag, ch->dma.workrq_map, BUS_DMASYNC_PREWRITE); - /* Reponses queue. */ + /* Responses queue. */ memset(ch->dma.workrp, 0xff, MVS_WORKRP_SIZE); work = ch->dma.workrp_bus; ATA_OUTL(ch->r_mem, EDMA_RESQBAH, work >> 32); @@ -1042,7 +1042,7 @@ mvs_crbq_intr(device_t dev) slot = le16toh(crpb->id) & MVS_CRPB_TAG_MASK; flags = le16toh(crpb->rspflg); /* - * Handle only successfull completions here. + * Handle only successful completions here. * Errors will be handled by main intr handler. */ #if defined(__i386__) || defined(__amd64__) diff --git a/sys/dev/mvs/mvs.h b/sys/dev/mvs/mvs.h index 163af50..51f1d51 100644 --- a/sys/dev/mvs/mvs.h +++ b/sys/dev/mvs/mvs.h @@ -566,7 +566,7 @@ struct mvs_channel { int numtslotspd[16];/* Number of NCQ slots per dev */ int numhslots; /* Number of held slots */ int recoverycmd; /* Our READ LOG active */ - int fatalerr; /* Fatal error happend */ + int fatalerr; /* Fatal error happened */ int lastslot; /* Last used slot */ int taggedtarget; /* Last tagged target */ int resetting; /* Hard-reset in progress. */ diff --git a/sys/dev/mwl/if_mwl.c b/sys/dev/mwl/if_mwl.c index 161af74..100d7b5 100644 --- a/sys/dev/mwl/if_mwl.c +++ b/sys/dev/mwl/if_mwl.c @@ -4665,7 +4665,7 @@ mwl_txq_dump(&sc->sc_txq[0]);/*XXX*/ * Diagnostic interface to the HAL. This is used by various * tools to do things like retrieve register contents for * debugging. The mechanism is intentionally opaque so that - * it can change frequently w/o concern for compatiblity. + * it can change frequently w/o concern for compatibility. */ static int mwl_ioctl_diag(struct mwl_softc *sc, struct mwl_diag *md) diff --git a/sys/dev/mwl/if_mwlvar.h b/sys/dev/mwl/if_mwlvar.h index 2792b9c..e5feda9 100644 --- a/sys/dev/mwl/if_mwlvar.h +++ b/sys/dev/mwl/if_mwlvar.h @@ -65,7 +65,7 @@ #define MWL_TXDESC 1 /* max tx descriptors/segments */ #endif #ifndef MWL_AGGR_SIZE -#define MWL_AGGR_SIZE 3839 /* max tx agregation size */ +#define MWL_AGGR_SIZE 3839 /* max tx aggregation size */ #endif #define MWL_AGEINTERVAL 1 /* poke f/w every sec to age q's */ #define MWL_MAXSTAID 64 /* max of 64 stations */ diff --git a/sys/dev/nand/nfc_fsl.c b/sys/dev/nand/nfc_fsl.c index 414c009..8c3ca06 100644 --- a/sys/dev/nand/nfc_fsl.c +++ b/sys/dev/nand/nfc_fsl.c @@ -515,7 +515,7 @@ fsl_nfc_start_command(device_t dev) if (fcm->status) sc->fcm.reg_mdr = LBC_READ(MDR); - /* Even if timeout occured, we should perform steps below */ + /* Even if timeout occurred, we should perform steps below */ LBC_WRITE(LTESR, ltesr_v); LBC_WRITE(LTEATR, 0); diff --git a/sys/dev/ncr/ncr.c b/sys/dev/ncr/ncr.c index 8f02ef0..6f52f0f 100644 --- a/sys/dev/ncr/ncr.c +++ b/sys/dev/ncr/ncr.c @@ -737,7 +737,7 @@ struct head { ** ** The last four bytes are used inside the script by "COPY" commands. ** Because source and destination must have the same alignment -** in a longword, the fields HAVE to be at the choosen offsets. +** in a longword, the fields HAVE to be at the chosen offsets. ** xerr_st (4) 0 (0x34) scratcha ** sync_st (5) 1 (0x05) sxfer ** wide_st (7) 3 (0x03) scntl3 @@ -1698,7 +1698,7 @@ static struct script script0 = { }/*-------------------------< NO_DATA >--------------------*/,{ /* - ** The target wants to tranfer too much data + ** The target wants to transfer too much data ** or in the wrong direction. ** Remember that in extended error. */ @@ -3642,7 +3642,7 @@ ncr_attach (device_t dev) (np->rv_ctest5 & DFS) ? "large" : "normal"); /* - ** Print some complementary information that can be helpfull. + ** Print some complementary information that can be helpful. */ if (bootverbose) device_printf(dev, "%s, %s IRQ driver%s\n", @@ -5622,7 +5622,7 @@ static void ncr_int_ma (ncb_p np, u_char dstat) /* - ** The data in the dma fifo has not been transfered to + ** The data in the dma fifo has not been transferred to ** the target -> add the amount to the rest ** and clear the data. ** Check the sstat2 register in case of wide transfer. @@ -5921,7 +5921,7 @@ static void ncr_int_sir (ncb_p np) ** Was Sie schon immer ueber transfermode negotiation wissen wollten ... ** ** We try to negotiate sync and wide transfer only after -** a successfull inquire command. We look at byte 7 of the +** a successful inquire command. We look at byte 7 of the ** inquire data to determine the capabilities if the target. ** ** When we try to negotiate, we append the negotiation message @@ -5929,7 +5929,7 @@ static void ncr_int_sir (ncb_p np) ** The host status field is set to HS_NEGOTIATE to mark this ** situation. ** -** If the target doesn't answer this message immidiately +** If the target doesn't answer this message immediately ** (as required by the standard), the SIR_NEGO_FAIL interrupt ** will be raised eventually. ** The handler removes the HS_NEGOTIATE status, and sets the @@ -6356,7 +6356,7 @@ out: /*========================================================== ** ** -** Aquire a control block +** Acquire a control block ** ** **========================================================== diff --git a/sys/dev/netfpga10g/nf10bmac/if_nf10bmac.c b/sys/dev/netfpga10g/nf10bmac/if_nf10bmac.c index 2f864ab..565a5f6 100644 --- a/sys/dev/netfpga10g/nf10bmac/if_nf10bmac.c +++ b/sys/dev/netfpga10g/nf10bmac/if_nf10bmac.c @@ -355,7 +355,7 @@ nf10bmac_rx_locked(struct nf10bmac_softc *sc) /* * General problem here in case we need to sync ourselves to the * beginning of a packet. Length will only be set for the first - * read, and together with strb we can detect the begining (or + * read, and together with strb we can detect the beginning (or * skip to tlast). */ diff --git a/sys/dev/netmap/netmap.c b/sys/dev/netmap/netmap.c index f1b8610..ee38452 100644 --- a/sys/dev/netmap/netmap.c +++ b/sys/dev/netmap/netmap.c @@ -186,7 +186,7 @@ ports attached to the switch) * This is a persistent or ephemeral VALE port. Ephemeral ports * are created on the fly if they don't already exist, and are * always attached to a bridge. - * Persistent VALE ports must must be created seperately, and i + * Persistent VALE ports must must be created separately, and i * then attached like normal NICs. The NIOCREGIF we are examining * will find them only if they had previosly been created and * attached (see VALE_CTL below). @@ -1378,7 +1378,7 @@ netmap_get_na(struct nmreq *nmr, struct netmap_adapter **na, int create) NMG_LOCK_ASSERT(); - /* we cascade through all possibile types of netmap adapter. + /* we cascade through all possible types of netmap adapter. * All netmap_get_*_na() functions return an error and an na, * with the following combinations: * @@ -1912,7 +1912,7 @@ netmap_rel_exclusive(struct netmap_priv_d *priv) * * * netmap_pipe_reg (pipes) * inform the other pipe end that it is no - * longer responsibile for the lifetime of this + * longer responsible for the lifetime of this * pipe end * * * netmap_monitor_reg (monitors) diff --git a/sys/dev/netmap/netmap_generic.c b/sys/dev/netmap/netmap_generic.c index 9129960..85a6a9f 100644 --- a/sys/dev/netmap/netmap_generic.c +++ b/sys/dev/netmap/netmap_generic.c @@ -332,7 +332,7 @@ generic_netmap_register(struct netmap_adapter *na, int enable) } else if (na->tx_rings[0].tx_pool) { /* Disable netmap mode. We enter here only if the previous - generic_netmap_register(na, 1) was successfull. + generic_netmap_register(na, 1) was successful. If it was not, na->tx_rings[0].tx_pool was set to NULL by the error handling code below. */ rtnl_lock(); diff --git a/sys/dev/netmap/netmap_offloadings.c b/sys/dev/netmap/netmap_offloadings.c index 4055c42..dadc1dc 100644 --- a/sys/dev/netmap/netmap_offloadings.c +++ b/sys/dev/netmap/netmap_offloadings.c @@ -171,7 +171,7 @@ void bdg_mismatch_datapath(struct netmap_vp_adapter *na, * - 12: the first 10 bytes correspond to the struct * virtio_net_hdr, and the last 2 bytes store the * "mergeable buffers" info, which is an optional - * hint that can be zeroed for compability + * hint that can be zeroed for compatibility * * The destination header is therefore built according to the * following table: diff --git a/sys/dev/nge/if_nge.c b/sys/dev/nge/if_nge.c index 2d92bc3..2bd49e1 100644 --- a/sys/dev/nge/if_nge.c +++ b/sys/dev/nge/if_nge.c @@ -2109,7 +2109,7 @@ nge_init_locked(struct nge_softc *sc) CSR_WRITE_4(sc, NGE_PRIOQCTL, 0); /* - * Set pause frames paramters. + * Set pause frames parameters. * Rx stat FIFO hi-threshold : 2 or more packets * Rx stat FIFO lo-threshold : less than 2 packets * Rx data FIFO hi-threshold : 2K or more bytes diff --git a/sys/dev/nsp/nsp.c b/sys/dev/nsp/nsp.c index 5cda44e..c86bcdb 100644 --- a/sys/dev/nsp/nsp.c +++ b/sys/dev/nsp/nsp.c @@ -1069,7 +1069,7 @@ WriteLoop: * (not scsi bus!), we should check * the scsi device sends us request * signals, which means the scsi device - * is ready to recieve data without + * is ready to receive data without * heavy delays. */ if ((slp->sl_scp.scp_datalen % suspendio) == 0) diff --git a/sys/dev/ntb/ntb_hw/ntb_hw.c b/sys/dev/ntb/ntb_hw/ntb_hw.c index cb8f27c..c1949f7 100644 --- a/sys/dev/ntb/ntb_hw/ntb_hw.c +++ b/sys/dev/ntb/ntb_hw/ntb_hw.c @@ -57,7 +57,7 @@ __FBSDID("$FreeBSD$"); * allows you to connect two systems using a PCI-e link. * * This module contains the hardware abstraction layer for the NTB. It allows - * you to send and recieve interrupts, map the memory windows and send and + * you to send and receive interrupts, map the memory windows and send and * receive messages in the scratch-pad registers. * * NOTE: Much of the code in this module is shared with Linux. Any patches may @@ -3192,7 +3192,7 @@ ntb_peer_db_set(struct ntb_softc *ntb, uint64_t bit) * ring to its memory window write. * * Note that writing the peer doorbell via a memory window will *not* generate - * an interrupt on the remote host; that must be done seperately. + * an interrupt on the remote host; that must be done separately. */ bus_addr_t ntb_get_peer_db_addr(struct ntb_softc *ntb, vm_size_t *sz_out) diff --git a/sys/dev/patm/if_patmvar.h b/sys/dev/patm/if_patmvar.h index e934784..c87787a 100644 --- a/sys/dev/patm/if_patmvar.h +++ b/sys/dev/patm/if_patmvar.h @@ -256,7 +256,7 @@ struct patm_softc { struct callout tst_callout; u_int tst_free; /* free slots */ u_int tst_reserve; /* non-CBR reserve */ - u_int bwrem; /* remaining bandwith */ + u_int bwrem; /* remaining bandwidth */ /* sysctl support */ struct sysctl_ctx_list sysctl_ctx; diff --git a/sys/dev/pccbb/pccbb.c b/sys/dev/pccbb/pccbb.c index c3a30fa..f120219 100644 --- a/sys/dev/pccbb/pccbb.c +++ b/sys/dev/pccbb/pccbb.c @@ -722,7 +722,7 @@ cbb_o2micro_power_hack(struct cbb_softc *sc) /* * Restore the damage that cbb_o2micro_power_hack does to EXCA_INTR so - * we don't have an interrupt storm on power on. This has the efect of + * we don't have an interrupt storm on power on. This has the effect of * disabling card status change interrupts for the duration of poweron. */ static void diff --git a/sys/dev/pcf/pcf_isa.c b/sys/dev/pcf/pcf_isa.c index 70c3efe..ca63583 100644 --- a/sys/dev/pcf/pcf_isa.c +++ b/sys/dev/pcf/pcf_isa.c @@ -112,7 +112,7 @@ pcf_isa_probe(device_t dev) if ((error = resource_int_value(PCF_NAME, 0, "port", &port) != 0)) return (error); - /* Probe is only successfull for the specified base io */ + /* Probe is only successful for the specified base io */ if (port != (u_int)start) return (ENXIO); diff --git a/sys/dev/pci/hostb_pci.c b/sys/dev/pci/hostb_pci.c index 84878ca..79664c6 100644 --- a/sys/dev/pci/hostb_pci.c +++ b/sys/dev/pci/hostb_pci.c @@ -51,7 +51,7 @@ pci_hostb_probe(device_t dev) switch (id) { - /* VIA VT82C596 Power Managment Function */ + /* VIA VT82C596 Power Management Function */ case 0x30501106: return (ENXIO); diff --git a/sys/dev/pci/pci.c b/sys/dev/pci/pci.c index a7749b2..630aaa9 100644 --- a/sys/dev/pci/pci.c +++ b/sys/dev/pci/pci.c @@ -333,7 +333,7 @@ SYSCTL_INT(_hw_pci, OID_AUTO, do_power_nodriver, CTLFLAG_RWTUN, &pci_do_power_nodriver, 0, "Place a function into D3 state when no driver attaches to it. 0 means\n\ disable. 1 means conservatively place devices into D3 state. 2 means\n\ -agressively place devices into D3 state. 3 means put absolutely everything\n\ +aggressively place devices into D3 state. 3 means put absolutely everything\n\ in D3 state."); int pci_do_power_resume = 1; @@ -4128,7 +4128,7 @@ pci_attach(device_t dev) return (error); /* - * Since there can be multiple independantly numbered PCI + * Since there can be multiple independently numbered PCI * busses on systems with multiple PCI domains, we can't use * the unit number to decide which bus we are probing. We ask * the parent pcib what our domain and bus numbers are. @@ -5774,7 +5774,7 @@ pci_cfg_save(device_t dev, struct pci_devinfo *dinfo, int setstate) if (cls == PCIC_STORAGE) return; /*FALLTHROUGH*/ - case 2: /* Agressive about what to power down */ + case 2: /* Aggressive about what to power down */ if (cls == PCIC_DISPLAY || cls == PCIC_MEMORY || cls == PCIC_BASEPERIPH) return; diff --git a/sys/dev/pdq/pdq.c b/sys/dev/pdq/pdq.c index 4fb98db..00add2c 100644 --- a/sys/dev/pdq/pdq.c +++ b/sys/dev/pdq/pdq.c @@ -63,7 +63,7 @@ __FBSDID("$FreeBSD$"); static const char * const pdq_halt_codes[] = { "Selftest Timeout", "Host Bus Parity Error", "Host Directed Fault", "Software Fault", "Hardware Fault", "PC Trace Path Test", - "DMA Error", "Image CRC Error", "Adapter Processer Error" + "DMA Error", "Image CRC Error", "Adapter Processor Error" }; static const char * const pdq_adapter_states[] = { diff --git a/sys/dev/ppbus/lpt.c b/sys/dev/ppbus/lpt.c index 3a28efd2..ce08ccc 100644 --- a/sys/dev/ppbus/lpt.c +++ b/sys/dev/ppbus/lpt.c @@ -113,7 +113,7 @@ struct lpt_data { prime once */ u_char sc_control; char sc_flags; -#define LP_POS_INIT 0x04 /* if we are a postive init signal */ +#define LP_POS_INIT 0x04 /* if we are a positive init signal */ #define LP_POS_ACK 0x08 /* if we are a positive going ack */ #define LP_NO_PRIME 0x10 /* don't prime the printer at all */ #define LP_PRIMEOPEN 0x20 /* prime on every open */ diff --git a/sys/dev/ppbus/ppb_1284.c b/sys/dev/ppbus/ppb_1284.c index e909e8e..31f38ce 100644 --- a/sys/dev/ppbus/ppb_1284.c +++ b/sys/dev/ppbus/ppb_1284.c @@ -103,14 +103,14 @@ ppb_1284_get_state(device_t bus) /* * ppb_1284_set_state() * - * Change IEEE1284 state if no error occured + * Change IEEE1284 state if no error occurred */ int ppb_1284_set_state(device_t bus, int state) { struct ppb_data *ppb = DEVTOSOFTC(bus); - /* call ppb_1284_reset_error() if you absolutly want to change + /* call ppb_1284_reset_error() if you absolutely want to change * the state from PPB_ERROR to another */ mtx_assert(ppb->ppc_lock, MA_OWNED); if ((ppb->state != PPB_ERROR) && @@ -191,7 +191,7 @@ ppb_request_mode(int mode, int options) /* * ppb_peripheral_negociate() * - * Negociate the peripheral side + * Negotiate the peripheral side */ int ppb_peripheral_negociate(device_t bus, int mode, int options) @@ -249,7 +249,7 @@ ppb_peripheral_negociate(device_t bus, int mode, int options) #ifdef DEBUG_1284 printf("A"); #endif - /* negociation succeeds */ + /* negotiation succeeds */ } } else { /* Event 5 - mode not supported */ @@ -648,11 +648,11 @@ ppb_1284_read(device_t bus, int mode, char *buffer, /* * ppb_1284_negociate() * - * IEEE1284 negociation phase + * IEEE1284 negotiation phase * * Normal nibble mode or request device id mode (see ppb_1284.h) * - * After negociation, nFAULT is low if data is available + * After negotiation, nFAULT is low if data is available */ int ppb_1284_negociate(device_t bus, int mode, int options) @@ -677,7 +677,7 @@ ppb_1284_negociate(device_t bus, int mode, int options) /* ensure the host is in compatible mode */ ppb_set_mode(bus, PPB_COMPATIBLE); - /* reset error to catch the actual negociation error */ + /* reset error to catch the actual negotiation error */ ppb_1284_reset_error(bus, PPB_FORWARD_IDLE); /* calculate ext. value */ @@ -687,7 +687,7 @@ ppb_1284_negociate(device_t bus, int mode, int options) ppb_wctr(bus, (nINIT | SELECTIN) & ~(STROBE | AUTOFEED)); DELAY(1); - /* enter negociation phase */ + /* enter negotiation phase */ ppb_1284_set_state(bus, PPB_NEGOCIATION); /* Event 0 - put the exten. value on the data lines */ @@ -769,7 +769,7 @@ ppb_1284_negociate(device_t bus, int mode, int options) ppb_1284_set_state(bus, PPB_REVERSE_IDLE); break; case PPB_ECP: - /* negociation ok, now setup the communication */ + /* negotiation ok, now setup the communication */ ppb_1284_set_state(bus, PPB_SETUP); ppb_wctr(bus, (nINIT | AUTOFEED) & ~(SELECTIN | STROBE)); @@ -825,7 +825,7 @@ ppb_1284_terminate(device_t bus) #endif /* do not reset error here to keep the error that - * may occured before the ppb_1284_terminate() call */ + * may occurred before the ppb_1284_terminate() call */ ppb_1284_set_state(bus, PPB_TERMINATION); #ifdef PERIPH_1284 diff --git a/sys/dev/ppbus/vpo.c b/sys/dev/ppbus/vpo.c index f508275..d9e7cb8 100644 --- a/sys/dev/ppbus/vpo.c +++ b/sys/dev/ppbus/vpo.c @@ -221,7 +221,7 @@ vpo_intr(struct vpo_data *vpo, struct ccb_scsiio *csio) return; } - /* if a timeout occured, no sense */ + /* if a timeout occurred, no sense */ if (vpo->vpo_error) { if (vpo->vpo_error != VP0_ESELECT_TIMEOUT) device_printf(vpo->vpo_dev, "VP0 error/timeout (%d)\n", diff --git a/sys/dev/ppbus/vpoio.c b/sys/dev/ppbus/vpoio.c index 62af869..a989e8d1 100644 --- a/sys/dev/ppbus/vpoio.c +++ b/sys/dev/ppbus/vpoio.c @@ -382,7 +382,7 @@ vpoio_detect(struct vpoio_data *vpo) /* The interface must be at least PS/2 or NIBBLE capable. * There is no way to know if the ZIP will work with * PS/2 mode since PS/2 and SPP both use the same connect - * sequence. One must supress PS/2 with boot flags if + * sequence. One must suppress PS/2 with boot flags if * PS/2 mode fails (see ppc(4)). */ if (ppb_set_mode(ppbus, PPB_PS2) != -1) { diff --git a/sys/dev/qlxgb/qla_def.h b/sys/dev/qlxgb/qla_def.h index 534f002..77b678c 100644 --- a/sys/dev/qlxgb/qla_def.h +++ b/sys/dev/qlxgb/qla_def.h @@ -105,7 +105,7 @@ typedef struct qla_ivec qla_ivec_t; #define QLA_WATCHDOG_CALLOUT_TICKS 1 /* - * Adapter structure contains the hardware independant information of the + * Adapter structure contains the hardware independent information of the * pci function. */ struct qla_host { diff --git a/sys/dev/qlxgb/qla_hw.c b/sys/dev/qlxgb/qla_hw.c index d71bb29..cebe05a 100644 --- a/sys/dev/qlxgb/qla_hw.c +++ b/sys/dev/qlxgb/qla_hw.c @@ -28,7 +28,7 @@ /* * File: qla_hw.c * Author : David C Somayajulu, Qlogic Corporation, Aliso Viejo, CA 92656. - * Content: Contains Hardware dependant functions + * Content: Contains Hardware dependent functions */ #include <sys/cdefs.h> @@ -319,7 +319,7 @@ qla_init_cntxt_regions(qla_host_t *ha) /* * Initialize the Transmit Context Request so that we don't need to - * do it everytime we need to create a context + * do it every time we need to create a context */ tx_cntxt_req = hw->tx_cntxt_req; @@ -636,7 +636,7 @@ qla_config_mac_addr(qla_host_t *ha, uint8_t *mac_addr, uint16_t cntxt_id, /* * Name: qla_set_mac_rcv_mode - * Function: Enable/Disable AllMulticast and Promiscous Modes. + * Function: Enable/Disable AllMulticast and Promiscuous Modes. */ static int qla_set_mac_rcv_mode(qla_host_t *ha, uint16_t cntxt_id, uint32_t mode) diff --git a/sys/dev/qlxgb/qla_isr.c b/sys/dev/qlxgb/qla_isr.c index 983fc12..d9670fb 100644 --- a/sys/dev/qlxgb/qla_isr.c +++ b/sys/dev/qlxgb/qla_isr.c @@ -138,7 +138,7 @@ qla_rx_intr(qla_host_t *ha, uint64_t data, uint32_t sds_idx, } if (lro->lro_cnt && (tcp_lro_rx(lro, mp, 0) == 0)) { - /* LRO packet has been successfuly queued */ + /* LRO packet has been successfully queued */ } else { (*ifp->if_input)(ifp, mp); } diff --git a/sys/dev/qlxgbe/ql_def.h b/sys/dev/qlxgbe/ql_def.h index b227f67..968cc5b 100644 --- a/sys/dev/qlxgbe/ql_def.h +++ b/sys/dev/qlxgbe/ql_def.h @@ -113,7 +113,7 @@ typedef struct _qla_tx_ring { } qla_tx_ring_t; /* - * Adapter structure contains the hardware independant information of the + * Adapter structure contains the hardware independent information of the * pci function. */ struct qla_host { diff --git a/sys/dev/qlxgbe/ql_hw.c b/sys/dev/qlxgbe/ql_hw.c index bbe774b..996c4bb 100644 --- a/sys/dev/qlxgbe/ql_hw.c +++ b/sys/dev/qlxgbe/ql_hw.c @@ -28,7 +28,7 @@ /* * File: ql_hw.c * Author : David C Somayajulu, Qlogic Corporation, Aliso Viejo, CA 92656. - * Content: Contains Hardware dependant functions + * Content: Contains Hardware dependent functions */ #include <sys/cdefs.h> @@ -1102,7 +1102,7 @@ qla_config_mac_addr(qla_host_t *ha, uint8_t *mac_addr, uint32_t add_mac) /* * Name: qla_set_mac_rcv_mode - * Function: Enable/Disable AllMulticast and Promiscous Modes. + * Function: Enable/Disable AllMulticast and Promiscuous Modes. */ static int qla_set_mac_rcv_mode(qla_host_t *ha, uint32_t mode) diff --git a/sys/dev/qlxge/qls_def.h b/sys/dev/qlxge/qls_def.h index b486beb..815946f 100644 --- a/sys/dev/qlxge/qls_def.h +++ b/sys/dev/qlxge/qls_def.h @@ -237,7 +237,7 @@ typedef struct _qla_mcast { #define QLA_PAGE_SIZE 4096 /* - * Adapter structure contains the hardware independant information of the + * Adapter structure contains the hardware independent information of the * pci function. */ struct qla_host { diff --git a/sys/dev/qlxge/qls_hw.c b/sys/dev/qlxge/qls_hw.c index 181a7b0..b77d20e 100644 --- a/sys/dev/qlxge/qls_hw.c +++ b/sys/dev/qlxge/qls_hw.c @@ -28,7 +28,7 @@ /* * File: qls_hw.c * Author : David C Somayajulu, Qlogic Corporation, Aliso Viejo, CA 92656. - * Content: Contains Hardware dependant functions + * Content: Contains Hardware dependent functions */ #include <sys/cdefs.h> __FBSDID("$FreeBSD$"); @@ -353,7 +353,7 @@ qls_config_mcast_mac_addr_exit: /* * Name: qls_set_mac_rcv_mode - * Function: Enable/Disable AllMulticast and Promiscous Modes. + * Function: Enable/Disable AllMulticast and Promiscuous Modes. */ static int qls_wait_for_route_idx_ready(qla_host_t *ha, uint32_t op) diff --git a/sys/dev/qlxge/qls_isr.c b/sys/dev/qlxge/qls_isr.c index 4cca895..1eb833e 100644 --- a/sys/dev/qlxge/qls_isr.c +++ b/sys/dev/qlxge/qls_isr.c @@ -204,7 +204,7 @@ qls_rx_comp(qla_host_t *ha, uint32_t rxr_idx, uint32_t cq_idx, q81_rx_t *cq_e) if_inc_counter(ifp, IFCOUNTER_IPACKETS, 1); if (lro->lro_cnt && (tcp_lro_rx(lro, mp, 0) == 0)) { - /* LRO packet has been successfuly queued */ + /* LRO packet has been successfully queued */ } else { (*ifp->if_input)(ifp, mp); } diff --git a/sys/dev/ral/rt2560.c b/sys/dev/ral/rt2560.c index b8a92f4..9e441e0 100644 --- a/sys/dev/ral/rt2560.c +++ b/sys/dev/ral/rt2560.c @@ -780,7 +780,7 @@ rt2560_newstate(struct ieee80211vap *vap, enum ieee80211_state nstate, int arg) return error; } - /* turn assocation led on */ + /* turn association led on */ rt2560_update_led(sc, 1, 0); if (vap->iv_opmode != IEEE80211_M_MONITOR) @@ -1096,7 +1096,7 @@ rt2560_decryption_intr(struct rt2560_softc *sc) int hw, error; int8_t rssi, nf; - /* retrieve last decriptor index processed by cipher engine */ + /* retrieve last descriptor index processed by cipher engine */ hw = RAL_READ(sc, RT2560_SECCSR0) - sc->rxq.physaddr; hw /= RT2560_RX_DESC_SIZE; diff --git a/sys/dev/rc/rc.c b/sys/dev/rc/rc.c index d600626..24b851a 100644 --- a/sys/dev/rc/rc.c +++ b/sys/dev/rc/rc.c @@ -1123,7 +1123,7 @@ rc_test(struct rc_softc *sc) chipid = RC_FAKEID; - /* First, reset board to inital state */ + /* First, reset board to initial state */ rc_hwreset(sc, chipid); divs = RC_BRD(19200); diff --git a/sys/dev/rl/if_rlreg.h b/sys/dev/rl/if_rlreg.h index 5a5c5f5..2cef251 100644 --- a/sys/dev/rl/if_rlreg.h +++ b/sys/dev/rl/if_rlreg.h @@ -681,7 +681,7 @@ struct rl_desc { #define RL_TDESC_STAT_LINKFAIL 0x00200000 /* link faulure */ #define RL_TDESC_STAT_OWINCOL 0x00400000 /* out-of-window collision */ #define RL_TDESC_STAT_TXERRSUM 0x00800000 /* transmit error summary */ -#define RL_TDESC_STAT_UNDERRUN 0x02000000 /* TX underrun occured */ +#define RL_TDESC_STAT_UNDERRUN 0x02000000 /* TX underrun occurred */ #define RL_TDESC_STAT_OWN 0x80000000 /* diff --git a/sys/dev/sbni/if_sbni.c b/sys/dev/sbni/if_sbni.c index 6281e7d..50a3bcd 100644 --- a/sys/dev/sbni/if_sbni.c +++ b/sys/dev/sbni/if_sbni.c @@ -607,7 +607,7 @@ upload_data(struct sbni_softc *sc, u_int framelen, u_int frameno, /* * if CRC is right but framelen incorrect then transmitter - * error was occured... drop entire packet + * error was occurred... drop entire packet */ } else if ((frame_ok = skip_tail(sc, framelen, crc)) != 0) { sc->wait_frameno = 0; diff --git a/sys/dev/sf/if_sf.c b/sys/dev/sf/if_sf.c index bd685f1..2d0df0f 100644 --- a/sys/dev/sf/if_sf.c +++ b/sys/dev/sf/if_sf.c @@ -720,7 +720,7 @@ sf_probe(device_t dev) } if (vid == AD_VENDORID && did == AD_DEVICEID_STARFIRE) { - /* unkown subdevice */ + /* unknown subdevice */ device_set_desc(dev, sf_devs[0].sf_name); return (BUS_PROBE_DEFAULT); } @@ -1515,7 +1515,7 @@ sf_fixup_rx(struct mbuf *m) * it is marred by one truly stupid design flaw, which is that receive * buffer addresses must be aligned on a longword boundary. This forces * the packet payload to be unaligned, which is suboptimal on the x86 and - * completely unuseable on the Alpha. Our only recourse is to copy received + * completely unusable on the Alpha. Our only recourse is to copy received * packets into properly aligned buffers before handing them off. */ static int diff --git a/sys/dev/sfxge/common/efx_bootcfg.c b/sys/dev/sfxge/common/efx_bootcfg.c index 16ee337..a9717bb 100644 --- a/sys/dev/sfxge/common/efx_bootcfg.c +++ b/sys/dev/sfxge/common/efx_bootcfg.c @@ -73,7 +73,7 @@ efx_bootcfg_verify( size_t used = 0; efx_rc_t rc; - /* Start parsing tags immediatly after the checksum */ + /* Start parsing tags immediately after the checksum */ for (offset = 1; offset < size; ) { uint8_t tag; uint8_t length; diff --git a/sys/dev/sfxge/common/efx_nic.c b/sys/dev/sfxge/common/efx_nic.c index dd28ece..149cd23 100644 --- a/sys/dev/sfxge/common/efx_nic.c +++ b/sys/dev/sfxge/common/efx_nic.c @@ -390,7 +390,7 @@ efx_nic_create( case EFX_FAMILY_MEDFORD: enp->en_enop = (efx_nic_ops_t *)&__efx_nic_medford_ops; /* - * FW_ASSISTED_TSO ommitted as Medford only supports firmware + * FW_ASSISTED_TSO omitted as Medford only supports firmware * assisted TSO version 2, not the v1 scheme used on Huntington. */ enp->en_features = diff --git a/sys/dev/sfxge/common/efx_regs_mcdi.h b/sys/dev/sfxge/common/efx_regs_mcdi.h index a1d76ab..bc1451d 100644 --- a/sys/dev/sfxge/common/efx_regs_mcdi.h +++ b/sys/dev/sfxge/common/efx_regs_mcdi.h @@ -754,7 +754,7 @@ #define FCDI_EVENT_PORT_CONFIG_DATA_WIDTH 32 /* FCDI_EXTENDED_EVENT_PPS structuredef: Extended FCDI event to send PPS events - * to the MC. Note that this structure | is overlayed over a normal FCDI event + * to the MC. Note that this structure | is overlaid over a normal FCDI event * such that bits 32-63 containing | event code, level, source etc remain the * same. In this case the data | field of the header is defined to be the * number of timestamps @@ -11469,7 +11469,7 @@ #define MC_CMD_DUMP_BUFTBL_ENTRIES_OUT_LENMIN 12 #define MC_CMD_DUMP_BUFTBL_ENTRIES_OUT_LENMAX 252 #define MC_CMD_DUMP_BUFTBL_ENTRIES_OUT_LEN(num) (0+12*(num)) -/* Raw buffer table entries, layed out as BUFTBL_ENTRY. */ +/* Raw buffer table entries, laid out as BUFTBL_ENTRY. */ #define MC_CMD_DUMP_BUFTBL_ENTRIES_OUT_ENTRY_OFST 0 #define MC_CMD_DUMP_BUFTBL_ENTRIES_OUT_ENTRY_LEN 12 #define MC_CMD_DUMP_BUFTBL_ENTRIES_OUT_ENTRY_MINNUM 1 @@ -13322,7 +13322,7 @@ #define MC_CMD_PRIVILEGE_MASK_IN_GRP_ALL_MULTICAST 0x200 /* enum */ #define MC_CMD_PRIVILEGE_MASK_IN_GRP_PROMISCUOUS 0x400 /* enum */ /* enum: Allows to set the TX packets' source MAC address to any arbitrary MAC - * adress. + * address. */ #define MC_CMD_PRIVILEGE_MASK_IN_GRP_MAC_SPOOFING_TX 0x800 /* enum: Privilege that allows a Function to change the MAC address configured diff --git a/sys/dev/sfxge/common/hunt_nvram.c b/sys/dev/sfxge/common/hunt_nvram.c index dd471f4..8abe73d 100644 --- a/sys/dev/sfxge/common/hunt_nvram.c +++ b/sys/dev/sfxge/common/hunt_nvram.c @@ -1113,7 +1113,7 @@ ef10_nvram_segment_write_tlv( * Read the segment from NVRAM into the segment_data buffer and validate * it, returning if it does not validate. This is not a failure unless * this is the first segment in a partition. In this case the caller - * must propogate the error. + * must propagate the error. */ status = ef10_nvram_read_tlv_segment(enp, partn, *partn_offsetp, *seg_datap, *src_remain_lenp); diff --git a/sys/dev/sfxge/common/siena_nvram.c b/sys/dev/sfxge/common/siena_nvram.c index 9708e0c..b031120 100644 --- a/sys/dev/sfxge/common/siena_nvram.c +++ b/sys/dev/sfxge/common/siena_nvram.c @@ -342,7 +342,7 @@ siena_nvram_get_dynamic_cfg( != SIENA_MC_DYNAMIC_CONFIG_MAGIC) goto invalid1; - /* All future versions of the structure must be backwards compatable */ + /* All future versions of the structure must be backwards compatible */ EFX_STATIC_ASSERT(SIENA_MC_DYNAMIC_CONFIG_VERSION == 0); hdr_length = EFX_WORD_FIELD(dcfg->length, EFX_WORD_0); diff --git a/sys/dev/sfxge/common/siena_vpd.c b/sys/dev/sfxge/common/siena_vpd.c index 7a7ce67..4bee1e9 100644 --- a/sys/dev/sfxge/common/siena_vpd.c +++ b/sys/dev/sfxge/common/siena_vpd.c @@ -80,7 +80,7 @@ siena_vpd_get_static( goto fail4; } - /* All future versions of the structure must be backwards compatable */ + /* All future versions of the structure must be backwards compatible */ EFX_STATIC_ASSERT(SIENA_MC_STATIC_CONFIG_VERSION == 0); hdr_length = EFX_WORD_FIELD(scfg->length, EFX_WORD_0); diff --git a/sys/dev/sfxge/sfxge_rx.c b/sys/dev/sfxge/sfxge_rx.c index 876bd1f..4424c9b 100644 --- a/sys/dev/sfxge/sfxge_rx.c +++ b/sys/dev/sfxge/sfxge_rx.c @@ -829,7 +829,7 @@ sfxge_rx_qcomplete(struct sfxge_rxq *rxq, boolean_t eop) if (rx_desc->flags & (EFX_ADDR_MISMATCH | EFX_DISCARD)) goto discard; - /* Read the length from the psuedo header if required */ + /* Read the length from the pseudo header if required */ if (rx_desc->flags & EFX_PKT_PREFIX_LEN) { uint16_t tmp_size; int rc; diff --git a/sys/dev/sfxge/sfxge_tx.c b/sys/dev/sfxge/sfxge_tx.c index 6e93b12..69ea549 100644 --- a/sys/dev/sfxge/sfxge_tx.c +++ b/sys/dev/sfxge/sfxge_tx.c @@ -207,7 +207,7 @@ sfxge_tx_qcomplete(struct sfxge_txq *txq, struct sfxge_evq *evq) static unsigned int sfxge_is_mbuf_non_tcp(struct mbuf *mbuf) { - /* Absense of TCP checksum flags does not mean that it is non-TCP + /* Absence of TCP checksum flags does not mean that it is non-TCP * but it should be true if user wants to achieve high throughput. */ return (!(mbuf->m_pkthdr.csum_flags & (CSUM_IP_TCP | CSUM_IP6_TCP))); diff --git a/sys/dev/si/si.c b/sys/dev/si/si.c index 163dd31..5c2ccbb 100644 --- a/sys/dev/si/si.c +++ b/sys/dev/si/si.c @@ -541,7 +541,7 @@ try_next: pp = sc->sc_ports; nmodule = 0; modp = (struct si_module *)(maddr + 0x80); - uart_type = 1000; /* arbitary, > uchar_max */ + uart_type = 1000; /* arbitrary, > uchar_max */ for (;;) { switch (modp->sm_type) { case TA4: diff --git a/sys/dev/si/si.h b/sys/dev/si/si.h index 64891ec..0a45a3c 100644 --- a/sys/dev/si/si.h +++ b/sys/dev/si/si.h @@ -76,7 +76,7 @@ struct si_module { }; /* - * The 'next' pointer & with 0x7fff + SI base addres give + * The 'next' pointer & with 0x7fff + SI base address give * the address of the next module block if fitted. (else 0) * Note that next points to the TX buffer so 0x60 must be * subtracted to find the true base. diff --git a/sys/dev/siis/siis.c b/sys/dev/siis/siis.c index 0841471..989a780 100644 --- a/sys/dev/siis/siis.c +++ b/sys/dev/siis/siis.c @@ -856,7 +856,7 @@ siis_ch_intr(void *data) /* Read command statuses. */ sstatus = ATA_INL(ch->r_mem, SIIS_P_SS); ok = ch->rslots & ~sstatus; - /* Complete all successfull commands. */ + /* Complete all successful commands. */ for (i = 0; i < SIIS_MAX_SLOTS; i++) { if ((ok >> i) & 1) siis_end_transaction(&ch->slot[i], SIIS_ERR_NONE); diff --git a/sys/dev/siis/siis.h b/sys/dev/siis/siis.h index 6d8a063..d0e0d88 100644 --- a/sys/dev/siis/siis.h +++ b/sys/dev/siis/siis.h @@ -389,7 +389,7 @@ struct siis_channel { int numtslots[SIIS_MAX_SLOTS]; /* Number of tagged slots */ int numhslots; /* Number of held slots */ int recoverycmd; /* Our READ LOG active */ - int fatalerr; /* Fatal error happend */ + int fatalerr; /* Fatal error happened */ int recovery; /* Some slots are in error */ union ccb *frozen; /* Frozen command */ diff --git a/sys/dev/sio/sio.c b/sys/dev/sio/sio.c index 60ba8b8..166e6bf 100644 --- a/sys/dev/sio/sio.c +++ b/sys/dev/sio/sio.c @@ -2323,7 +2323,7 @@ siocntxwait(iobase) /* * Read the serial port specified and try to figure out what speed * it's currently running at. We're assuming the serial port has - * been initialized and is basicly idle. This routine is only intended + * been initialized and is basically idle. This routine is only intended * to be run at system startup. * * If the value read from the serial port doesn't make sense, return 0. diff --git a/sys/dev/sk/if_sk.c b/sys/dev/sk/if_sk.c index bdf4365..b0a46c9 100644 --- a/sys/dev/sk/if_sk.c +++ b/sys/dev/sk/if_sk.c @@ -3275,7 +3275,7 @@ sk_init_xmac(sc_if) * that jumbo frames larger than 8192 bytes will be * truncated. Disabling all bad frame filtering causes * the RX FIFO to operate in streaming mode, in which - * case the XMAC will start transfering frames out of the + * case the XMAC will start transferring frames out of the * RX FIFO as soon as the FIFO threshold is reached. */ if (ifp->if_mtu > SK_MAX_FRAMELEN) { diff --git a/sys/dev/sk/yukonreg.h b/sys/dev/sk/yukonreg.h index efe71a0..33ca8b2 100644 --- a/sys/dev/sk/yukonreg.h +++ b/sys/dev/sk/yukonreg.h @@ -165,7 +165,7 @@ /* SMI Data Register (SMIDR) */ #define YUKON_SMIDR 0x0084 -/* PHY Addres Register (PAR) */ +/* PHY Address Register (PAR) */ #define YUKON_PAR 0x0088 #define YU_PAR_MIB_CLR 0x0020 /* MIB Counters Clear Mode */ diff --git a/sys/dev/sn/if_sn.c b/sys/dev/sn/if_sn.c index 77ec927..7ac2a13 100644 --- a/sys/dev/sn/if_sn.c +++ b/sys/dev/sn/if_sn.c @@ -283,7 +283,7 @@ sninit_locked(void *xsc) CSR_WRITE_2(sc, TXMIT_CONTROL_REG_W, 0x0000); /* - * Set the control register to automatically release succesfully + * Set the control register to automatically release successfully * transmitted packets (making the best use out of our limited * memory) and to enable the EPH interrupt on certain TX errors. */ diff --git a/sys/dev/sn/if_snreg.h b/sys/dev/sn/if_snreg.h index 8b1b701..9fab405 100644 --- a/sys/dev/sn/if_snreg.h +++ b/sys/dev/sn/if_snreg.h @@ -115,7 +115,7 @@ * the Ethernet Protocol Handler jumbled together. In auto-release * mode this information is simply discarded after each TX. This info * is copied to the status word of in-memory packets after transmit - * where relevent statuses can be checked. + * where relevant statuses can be checked. */ #define EPH_STATUS_REG_W 0x02 @@ -145,7 +145,7 @@ #define RCR_RX_ABORT 0x0001 /* Received huge packet */ #define RCR_PROMISC 0x0002 /* enable promiscuous mode */ #define RCR_ALMUL 0x0004 /* receive all multicast packets */ -#define RCR_ENABLE 0x0100 /* IFF this is set, we can recieve packets */ +#define RCR_ENABLE 0x0100 /* IFF this is set, we can receive packets */ #define RCR_STRIP_CRC 0x0200 /* strips CRC */ #define RCR_GAIN_BITS 0x0c00 /* PLL Gain control (for testing) */ #define RCR_FILT_CAR 0x4000 /* Enable 12 bit carrier filter */ diff --git a/sys/dev/snc/dp83932.c b/sys/dev/snc/dp83932.c index a496b67..acda11c 100644 --- a/sys/dev/snc/dp83932.c +++ b/sys/dev/snc/dp83932.c @@ -405,7 +405,7 @@ sncinit_locked(struct snc_softc *sc) /* already running */ return; - NIC_PUT(sc, SNCR_CR, CR_RST); /* DCR only accessable in reset mode! */ + NIC_PUT(sc, SNCR_CR, CR_RST); /* DCR only accessible in reset mode! */ /* config it */ NIC_PUT(sc, SNCR_DCR, (sc->sncr_dcr | @@ -1001,7 +1001,7 @@ sonicrxint(struct snc_softc *sc) * * If this was the last packet in the RRA, give the RRA to * the chip again. - * If sonic read didnt copy it out then we would have to + * If sonic read didn't copy it out then we would have to * wait !! * (dont bother add it back in again straight away) * diff --git a/sys/dev/snc/dp83932var.h b/sys/dev/snc/dp83932var.h index 2ed9b9d..6ee5108 100644 --- a/sys/dev/snc/dp83932var.h +++ b/sys/dev/snc/dp83932var.h @@ -211,7 +211,7 @@ typedef struct snc_softc { /* * Accessing SONIC data structures and registers as 32 bit values - * makes code endianess independent. The SONIC is however always in + * makes code endianness independent. The SONIC is however always in * bigendian mode so it is necessary to ensure that data structures shared * between the CPU and the SONIC are always in bigendian order. */ diff --git a/sys/dev/sym/sym_hipd.c b/sys/dev/sym/sym_hipd.c index 53c66bb..5981e31 100644 --- a/sys/dev/sym/sym_hipd.c +++ b/sys/dev/sym/sym_hipd.c @@ -4001,7 +4001,7 @@ static void sym_recover_scsi_int (hcb_p np, u_char hsts) /* * If we haven't been interrupted inside the SCRIPTS - * critical pathes, we can safely restart the SCRIPTS + * critical paths, we can safely restart the SCRIPTS * and trust the DSA value if it matches a CCB. */ if ((!(dsp > SCRIPTA_BA (np, getjob_begin) && @@ -5185,7 +5185,7 @@ static void sym_sir_task_recovery(hcb_p np, int num) /* * Otherwise, check for the LUN and TASK(s) - * concerned by the cancelation. + * concerned by the cancellation. * If it is not ABORT_TAG then it is CLEAR_QUEUE * or an ABORT message :-) */ @@ -6134,7 +6134,7 @@ static void sym_int_sir (hcb_p np) } goto out; /* - * The device wants us to tranfer more data than + * The device wants us to transfer more data than * expected or in the wrong direction. * The number of extra bytes is in scratcha. * It is a data overrun condition. diff --git a/sys/dev/syscons/syscons.c b/sys/dev/syscons/syscons.c index f109b24..063083e 100644 --- a/sys/dev/syscons/syscons.c +++ b/sys/dev/syscons/syscons.c @@ -3541,7 +3541,7 @@ next_code: if (cold) { /* * While devices are being probed, the screen saver need - * to be invoked explictly. XXX + * to be invoked explicitly. XXX */ if (sc->flags & SC_SCRN_BLANKED) { scsplash_stick(FALSE); diff --git a/sys/dev/ti/if_ti.c b/sys/dev/ti/if_ti.c index 538d65d..d3f15fe 100644 --- a/sys/dev/ti/if_ti.c +++ b/sys/dev/ti/if_ti.c @@ -2513,7 +2513,7 @@ ti_attach(device_t dev) /* * Copper cards allow manual 10/100 mode selection, * but not manual 1000baseTX mode selection. Why? - * Becuase currently there's no way to specify the + * Because currently there's no way to specify the * master/slave setting through the firmware interface, * so Alteon decided to just bag it and handle it * via autonegotiation. @@ -2747,7 +2747,7 @@ ti_discard_jumbo(struct ti_softc *sc, int i) * Note: we have to be able to handle three possibilities here: * 1) the frame is from the mini receive ring (can only happen) * on Tigon 2 boards) - * 2) the frame is from the jumbo recieve ring + * 2) the frame is from the jumbo receive ring * 3) the frame is from the standard receive ring */ @@ -2987,7 +2987,7 @@ ti_intr(void *xsc) return; } - /* Ack interrupt and stop others from occuring. */ + /* Ack interrupt and stop others from occurring. */ CSR_WRITE_4(sc, TI_MB_HOSTINTR, 1); if (ifp->if_drv_flags & IFF_DRV_RUNNING) { @@ -3379,7 +3379,7 @@ ti_ifmedia_upd_locked(struct ti_softc *sc) /* * Transmit flow control can also cause problems on the - * Tigon 2, apparantly with both the copper and fiber + * Tigon 2, apparently with both the copper and fiber * boards. The symptom is that the interface will just * hang. This was reproduced with Alteon 180 switches. */ diff --git a/sys/dev/ti/if_tireg.h b/sys/dev/ti/if_tireg.h index 63b93f4..d55e150 100644 --- a/sys/dev/ti/if_tireg.h +++ b/sys/dev/ti/if_tireg.h @@ -140,7 +140,7 @@ #define TI_FIRMWARE_FIX 0xb /* - * Miscelaneous Local Control register. + * Miscellaneous Local Control register. */ #define TI_MLC_EE_WRITE_ENB 0x00000010 #define TI_MLC_SRAM_BANK_SIZE 0x00000300 /* Tigon 2 only */ @@ -337,7 +337,7 @@ */ #define TI_OPMODE_BYTESWAP_BD 0x00000002 #define TI_OPMODE_WORDSWAP_BD 0x00000004 -#define TI_OPMODE_WARN_ENB 0x00000008 /* not yet implimented */ +#define TI_OPMODE_WARN_ENB 0x00000008 /* not yet implemented */ #define TI_OPMODE_BYTESWAP_DATA 0x00000010 #define TI_OPMODE_1_DMA_ACTIVE 0x00000040 #define TI_OPMODE_SBUS 0x00000100 @@ -347,7 +347,7 @@ #define TI_OPMODE_NO_EVENT_INTRS 0x00001000 #define TI_OPMODE_NO_TX_INTRS 0x00002000 #define TI_OPMODE_NO_RX_INTRS 0x00004000 -#define TI_OPMODE_FATAL_ENB 0x40000000 /* not yet implimented */ +#define TI_OPMODE_FATAL_ENB 0x40000000 /* not yet implemented */ #define TI_OPMODE_JUMBO_HDRSPLIT 0x00008000 /* diff --git a/sys/dev/tl/if_tl.c b/sys/dev/tl/if_tl.c index 455dd38..b80e81f 100644 --- a/sys/dev/tl/if_tl.c +++ b/sys/dev/tl/if_tl.c @@ -116,7 +116,7 @@ __FBSDID("$FreeBSD$"); * To transmit frames, the driver again sets up lists and fragment * descriptors, only this time the buffers contain frame data that * is to be DMA'ed into the chip instead of out of it. Once the chip - * has transfered the data into its on-board SRAM, it will trigger a + * has transferred the data into its on-board SRAM, it will trigger a * TX 'end of frame' interrupt. It will also generate an 'end of channel' * interrupt when it reaches the end of the list. */ diff --git a/sys/dev/tpm/tpm.c b/sys/dev/tpm/tpm.c index a90f8ba..3ac52d6 100644 --- a/sys/dev/tpm/tpm.c +++ b/sys/dev/tpm/tpm.c @@ -70,7 +70,7 @@ __FBSDID("$FreeBSD$"); #define IRQUNK -1 #endif -#define TPM_ACCESS 0x0000 /* acess register */ +#define TPM_ACCESS 0x0000 /* access register */ #define TPM_ACCESS_ESTABLISHMENT 0x01 /* establishment */ #define TPM_ACCESS_REQUEST_USE 0x02 /* request using locality */ #define TPM_ACCESS_REQUEST_PENDING 0x04 /* pending request */ @@ -820,7 +820,7 @@ tpm_waitfor(struct tpm_softc *sc, u_int8_t b0, int tmo, void *c) b = b0; /* - * Wait for data ready. This interrupt only occures + * Wait for data ready. This interrupt only occurs * when both TPM_STS_VALID and TPM_STS_DATA_AVAIL are asserted. * Thus we don't have to bother with TPM_STS_VALID * separately and can just return. diff --git a/sys/dev/tpm/tpm_acpi.c b/sys/dev/tpm/tpm_acpi.c index 5d83477..b16dd23 100644 --- a/sys/dev/tpm/tpm_acpi.c +++ b/sys/dev/tpm/tpm_acpi.c @@ -62,7 +62,7 @@ tpm_acpi_probe(device_t dev) static device_method_t tpm_acpi_methods[] = { #if 0 - /*In some case, TPM existance is found only in TPCA header*/ + /*In some case, TPM existence is found only in TPCA header*/ DEVMETHOD(device_identify, tpm_acpi_identify), #endif diff --git a/sys/dev/trm/trm.c b/sys/dev/trm/trm.c index f86523e..e5f02dd 100644 --- a/sys/dev/trm/trm.c +++ b/sys/dev/trm/trm.c @@ -1121,7 +1121,7 @@ trm_reset(PACB pACB) pACB->pActiveDCB = NULL; pACB->ACBFlag = 0;/* RESET_DETECT, RESET_DONE ,RESET_DEV */ trm_DoWaitingSRB(pACB); - /* Tell the XPT layer that a bus reset occured */ + /* Tell the XPT layer that a bus reset occurred */ if (pACB->ppath != NULL) xpt_async(AC_BUS_RESET, pACB->ppath, NULL); splx(intflag); @@ -1890,7 +1890,7 @@ trm_MsgInPhase0(PACB pACB, PSRB pSRB, u_int16_t *pscsi_status) } } else { /* - * Parsing incomming extented messages + * Parsing incoming extented messages */ *pSRB->pMsgPtr = message_in_code; pSRB->MsgCnt++; diff --git a/sys/dev/trm/trm.h b/sys/dev/trm/trm.h index 97b318a..f72335a 100644 --- a/sys/dev/trm/trm.h +++ b/sys/dev/trm/trm.h @@ -926,7 +926,7 @@ typedef struct NVRAM_TARGET_STRUCT #define NTC_DO_SEND_START 0x08 /* Send start command SPINUP*/ #define NTC_DO_DISCONNECT 0x04 /* Enable SCSI disconnect */ #define NTC_DO_SYNC_NEGO 0x02 /* Sync negotiation */ -#define NTC_DO_PARITY_CHK 0x01 /* (it sould define at NAC ) +#define NTC_DO_PARITY_CHK 0x01 /* (it should define at NAC ) Parity check enable */ /* diff --git a/sys/dev/tsec/if_tsec.h b/sys/dev/tsec/if_tsec.h index 7c6bc30..af703f2 100644 --- a/sys/dev/tsec/if_tsec.h +++ b/sys/dev/tsec/if_tsec.h @@ -60,12 +60,12 @@ struct tsec_softc { bus_dma_tag_t tsec_tx_dtag; /* TX descriptors tag */ bus_dmamap_t tsec_tx_dmap; /* TX descriptors map */ struct tsec_desc *tsec_tx_vaddr;/* vadress of TX descriptors */ - uint32_t tsec_tx_raddr; /* real adress of TX descriptors */ + uint32_t tsec_tx_raddr; /* real address of TX descriptors */ bus_dma_tag_t tsec_rx_dtag; /* RX descriptors tag */ bus_dmamap_t tsec_rx_dmap; /* RX descriptors map */ struct tsec_desc *tsec_rx_vaddr; /* vadress of RX descriptors */ - uint32_t tsec_rx_raddr; /* real adress of RX descriptors */ + uint32_t tsec_rx_raddr; /* real address of RX descriptors */ bus_dma_tag_t tsec_tx_mtag; /* TX mbufs tag */ bus_dma_tag_t tsec_rx_mtag; /* TX mbufs tag */ @@ -73,7 +73,7 @@ struct tsec_softc { struct rx_data_type { bus_dmamap_t map; /* mbuf map */ struct mbuf *mbuf; - uint32_t paddr; /* DMA addres of buffer */ + uint32_t paddr; /* DMA address of buffer */ } rx_data[TSEC_RX_NUM_DESC]; uint32_t tx_cur_desc_cnt; diff --git a/sys/dev/twe/twe.c b/sys/dev/twe/twe.c index 51c760c..cdb2180 100644 --- a/sys/dev/twe/twe.c +++ b/sys/dev/twe/twe.c @@ -531,7 +531,7 @@ twe_ioctl(struct twe_softc *sc, u_long ioctlcmd, void *addr) case TWEIO_COMMAND: /* * if there's a data buffer, allocate and copy it in. - * Must be in multipled of 512 bytes. + * Must be in multiplied of 512 bytes. */ tr_length = roundup2(tu->tu_size, 512); if (tr_length > 0) { diff --git a/sys/dev/twe/twevar.h b/sys/dev/twe/twevar.h index 38e1c81..616f12b 100644 --- a/sys/dev/twe/twevar.h +++ b/sys/dev/twe/twevar.h @@ -143,7 +143,7 @@ struct twe_softc }; /* - * Interface betwen driver core and platform-dependant code. + * Interface between driver core and platform-dependant code. */ extern int twe_setup(struct twe_softc *sc); /* do early driver/controller setup */ extern void twe_init(struct twe_softc *sc); /* init controller */ diff --git a/sys/dev/tws/tws_cam.c b/sys/dev/tws/tws_cam.c index 0002715..9866a29 100644 --- a/sys/dev/tws/tws_cam.c +++ b/sys/dev/tws/tws_cam.c @@ -1099,7 +1099,7 @@ tws_intr_attn_aen(struct tws_softc *sc) { u_int32_t db=0; - /* maskoff db intrs untill all the aens are fetched */ + /* maskoff db intrs until all the aens are fetched */ /* tws_disable_db_intr(sc); */ tws_fetch_aen((void *)sc); tws_write_reg(sc, TWS_I2O0_HOBDBC, TWS_BIT18, 4); diff --git a/sys/dev/tws/tws_hdm.c b/sys/dev/tws/tws_hdm.c index 2e568c8..83d5a50 100644 --- a/sys/dev/tws/tws_hdm.c +++ b/sys/dev/tws/tws_hdm.c @@ -312,7 +312,7 @@ tws_submit_command(struct tws_softc *sc, struct tws_request *req) TWS_TRACE_DEBUG(sc, "inbound fifo empty", mfa, 0); /* - * Generaly we should not get here. + * Generally we should not get here. * If the fifo was empty we can't do any thing much * retry later */ @@ -428,7 +428,7 @@ tws_turn_on_interrupts(struct tws_softc *sc) { TWS_TRACE_DEBUG(sc, "entry", 0, 0); - /* turn on responce and db interrupt only */ + /* turn on response and db interrupt only */ tws_write_reg(sc, TWS_I2O0_HIMASK, TWS_BIT0, 4); } diff --git a/sys/dev/tx/if_tx.c b/sys/dev/tx/if_tx.c index 42b327f..72a4c08 100644 --- a/sys/dev/tx/if_tx.c +++ b/sys/dev/tx/if_tx.c @@ -796,7 +796,7 @@ epic_rx_done(epic_softc_t *sc) (*ifp->if_input)(ifp, m); EPIC_LOCK(sc); - /* Successfuly received frame */ + /* Successfully received frame */ if_inc_counter(ifp, IFCOUNTER_IPACKETS, 1); } bus_dmamap_sync(sc->rtag, sc->rmap, @@ -897,7 +897,7 @@ epic_intr(void *arg) INTSTAT_APE|INTSTAT_DPE|INTSTAT_TXU|INTSTAT_RXE)) { if (status & (INTSTAT_FATAL|INTSTAT_PMA|INTSTAT_PTA| INTSTAT_APE|INTSTAT_DPE)) { - device_printf(sc->dev, "PCI fatal errors occured: %s%s%s%s\n", + device_printf(sc->dev, "PCI fatal errors occurred: %s%s%s%s\n", (status & INTSTAT_PMA) ? "PMA " : "", (status & INTSTAT_PTA) ? "PTA " : "", (status & INTSTAT_APE) ? "APE " : "", diff --git a/sys/dev/tx/if_txreg.h b/sys/dev/tx/if_txreg.h index 63891cd..059c2c0 100644 --- a/sys/dev/tx/if_txreg.h +++ b/sys/dev/tx/if_txreg.h @@ -90,7 +90,7 @@ #define INTSTAT_CNT 0x00000200 #define INTSTAT_PREI 0x00000400 #define INTSTAT_RCT 0x00000800 -#define INTSTAT_FATAL 0x00001000 /* One of DPE,APE,PMA,PTA happend */ +#define INTSTAT_FATAL 0x00001000 /* One of DPE,APE,PMA,PTA happened */ #define INTSTAT_UNUSED1 0x00002000 #define INTSTAT_UNUSED2 0x00004000 #define INTSTAT_GP2 0x00008000 /* PHY Event */ diff --git a/sys/dev/uart/uart_bus_fdt.c b/sys/dev/uart/uart_bus_fdt.c index 5308a2e..faea2cf 100644 --- a/sys/dev/uart/uart_bus_fdt.c +++ b/sys/dev/uart/uart_bus_fdt.c @@ -68,7 +68,7 @@ int uart_fdt_get_clock(phandle_t node, pcell_t *cell) { - /* clock-frequency is a FreeBSD-only extention. */ + /* clock-frequency is a FreeBSD-only extension. */ if ((OF_getencprop(node, "clock-frequency", cell, sizeof(*cell))) <= 0) { /* Try to retrieve parent 'bus-frequency' */ diff --git a/sys/dev/uart/uart_dev_lpc.c b/sys/dev/uart/uart_dev_lpc.c index f8d77d4..306c9f1 100644 --- a/sys/dev/uart/uart_dev_lpc.c +++ b/sys/dev/uart/uart_dev_lpc.c @@ -803,7 +803,7 @@ done: #if 0 /* * XXX there are some issues related to hardware flow control and - * it's likely that uart(4) is the cause. This basicly needs more + * it's likely that uart(4) is the cause. This basically needs more * investigation, but we avoid using for hardware flow control * until then. */ @@ -911,7 +911,7 @@ lpc_ns8250_bus_grab(struct uart_softc *sc) /* * turn off all interrupts to enter polling mode. Leave the * saved mask alone. We'll restore whatever it was in ungrab. - * All pending interupt signals are reset when IER is set to 0. + * All pending interrupt signals are reset when IER is set to 0. */ uart_lock(sc->sc_hwmtx); uart_setreg(bas, REG_IER, 0); diff --git a/sys/dev/uart/uart_dev_ns8250.c b/sys/dev/uart/uart_dev_ns8250.c index a36afef..2498fa3 100644 --- a/sys/dev/uart/uart_dev_ns8250.c +++ b/sys/dev/uart/uart_dev_ns8250.c @@ -565,7 +565,7 @@ ns8250_bus_getsig(struct uart_softc *sc) * when capturing PPS pulses which are too narrow for software detection * to see the edges. Hardware delta for RI doesn't work like the * others, so always use software for it. Other threads may be changing - * other (non-MSR) bits in sc_hwsig, so loop until it can succesfully + * other (non-MSR) bits in sc_hwsig, so loop until it can successfully * update without other changes happening. Note that the SIGCHGxx() * macros carefully preserve the delta bits when we have to loop several * times and a signal transitions between iterations. @@ -882,7 +882,7 @@ ns8250_bus_probe(struct uart_softc *sc) #if 0 /* * XXX there are some issues related to hardware flow control and - * it's likely that uart(4) is the cause. This basicly needs more + * it's likely that uart(4) is the cause. This basically needs more * investigation, but we avoid using for hardware flow control * until then. */ @@ -996,7 +996,7 @@ ns8250_bus_grab(struct uart_softc *sc) /* * turn off all interrupts to enter polling mode. Leave the * saved mask alone. We'll restore whatever it was in ungrab. - * All pending interupt signals are reset when IER is set to 0. + * All pending interrupt signals are reset when IER is set to 0. */ uart_lock(sc->sc_hwmtx); ier = uart_getreg(bas, REG_IER); diff --git a/sys/dev/virtio/console/virtio_console.c b/sys/dev/virtio/console/virtio_console.c index 902c85f..0a2fa0a 100644 --- a/sys/dev/virtio/console/virtio_console.c +++ b/sys/dev/virtio/console/virtio_console.c @@ -1177,7 +1177,7 @@ vtcon_port_enable_intr(struct vtcon_port *port) { /* - * NOTE: The out virtqueue is always polled, so its interupt + * NOTE: The out virtqueue is always polled, so its interrupt * kept disabled. */ virtqueue_enable_intr(port->vtcport_invq); diff --git a/sys/dev/vx/if_vx.c b/sys/dev/vx/if_vx.c index 47a6cd9..08d84a6 100644 --- a/sys/dev/vx/if_vx.c +++ b/sys/dev/vx/if_vx.c @@ -251,7 +251,7 @@ vx_init_locked(struct vx_softc *sc) S_RX_COMPLETE | S_TX_COMPLETE | S_TX_AVAIL); /* - * Attempt to get rid of any stray interrupts that occured during + * Attempt to get rid of any stray interrupts that occurred during * configuration. On the i386 this isn't possible because one may * already be queued. However, a single stray interrupt is * unimportant. @@ -752,7 +752,7 @@ again: eh = mtod(m, struct ether_header *); /* - * XXX: Some cards seem to be in promiscous mode all the time. + * XXX: Some cards seem to be in promiscuous mode all the time. * we need to make sure we only get our own stuff always. * bleah! */ diff --git a/sys/dev/vx/if_vx_eisa.c b/sys/dev/vx/if_vx_eisa.c index b05c8e1..2556580 100644 --- a/sys/dev/vx/if_vx_eisa.c +++ b/sys/dev/vx/if_vx_eisa.c @@ -149,7 +149,7 @@ vx_eisa_attach(device_t dev) } sc->vx_irq = irq; - /* Now the registers are availible through the lower ioport */ + /* Now the registers are available through the lower ioport */ if (vx_attach(dev) == 0) goto bad; diff --git a/sys/dev/vxge/include/vxge-queue.h b/sys/dev/vxge/include/vxge-queue.h index 2ff5e22..4745403 100644 --- a/sys/dev/vxge/include/vxge-queue.h +++ b/sys/dev/vxge/include/vxge-queue.h @@ -103,7 +103,7 @@ typedef void (*vxge_queued_f) (void *data, u32 event_type); * produce/consume operations. * @tail_ptr: Points to the tail of the queue. It gets changed during queue * produce/consume operations. - * @lock: Lock for queue operations(syncronization purpose). + * @lock: Lock for queue operations(synchronization purpose). * @pages_initial:Number of pages to be initially allocated at the time * of queue creation. * @pages_max: Max number of pages that can be allocated in the queue. @@ -235,7 +235,7 @@ vxge_queue_produce(vxge_queue_h queueh, * Returns: VXGE_QUEUE_OK - success. * VXGE_QUEUE_IS_EMPTY - Queue is empty. * VXGE_QUEUE_NOT_ENOUGH_SPACE - Requested item size(@data_max_size) - * is too small to accomodate an item from the queue. + * is too small to accommodate an item from the queue. * * See also: vxge_queue_item_t {}, vxge_queue_produce(). */ @@ -261,7 +261,7 @@ vxge_queue_produce_context(vxge_queue_h queueh, * Returns: VXGE_QUEUE_OK - success. * VXGE_QUEUE_IS_EMPTY - Queue is empty. * VXGE_QUEUE_NOT_ENOUGH_SPACE - Requested item size(@data_max_size) - * is too small to accomodate an item from the queue. + * is too small to accommodate an item from the queue. * * See also: vxge_queue_item_t {}, vxge_queue_produce(). */ @@ -285,7 +285,7 @@ vxge_queue_flush(vxge_queue_h queueh); * @queueh: Queue handle. * * This function is called in the case of no slot avaialble in the queue - * to accomodate the newly received event. + * to accommodate the newly received event. * Note that queue cannot grow beyond the max size specified for the * queue. * diff --git a/sys/dev/vxge/include/vxgehal-ll.h b/sys/dev/vxge/include/vxgehal-ll.h index 5c65cc1..7e03448 100644 --- a/sys/dev/vxge/include/vxgehal-ll.h +++ b/sys/dev/vxge/include/vxgehal-ll.h @@ -2451,7 +2451,7 @@ void vxge_hal_fifo_txdl_cksum_set_bits( /* * vxge_hal_fifo_txdl_interrupt_type_set - Set the interrupt type for the txdl * @txdlh: Descriptor handle. - * @interrupt_type: utiliz based interupt or List interrupt + * @interrupt_type: utiliz based interrupt or List interrupt * * vxge_hal_fifo_txdl_interrupt_type_set is used to set the interrupt type for * each xmit txdl dynamically @@ -2639,7 +2639,7 @@ vxge_hal_fifo_txdl_buffer_append( * @txdlh: Descriptor handle. * @frag_idx: Index of the data buffer in the Txdl list. * - * This API in conjuction with vxge_hal_fifo_txdl_buffer_append() prepares + * This API in conjunction with vxge_hal_fifo_txdl_buffer_append() prepares * a descriptor that consists of a single physically contiguous buffer * which inturn contains the contents of one or more virtually contiguous * buffers received from the upper layer. @@ -3950,7 +3950,7 @@ void * @read_length: Size of the valid data in the buffer. * * Read HAL trace buffer contents starting from the offset - * upto the size of the buffer or till EOF is reached. + * up to the size of the buffer or till EOF is reached. * * Returns: VXGE_HAL_OK - success. * VXGE_HAL_EOF_TRACE_BUF - No more data in the trace buffer. @@ -5109,7 +5109,7 @@ vxge_hal_vpath_rts_rth_get( * * @vpath_handle: Virtual Path ahandle. * @KeySize: Number of 64-bit words - * @Key: upto 40-byte array of 64-bit values + * @Key: up to 40-byte array of 64-bit values * This function configures the 40-byte secret which is used for hash * calculation. * @@ -5633,7 +5633,7 @@ vxge_hal_vpath_rpa_set( * vxge_hal_vpath_poll_rx - Poll Rx od Virtual Path for completed * descriptors and process the same. * @vpath_handle: Virtual Path ahandle. - * @got_rx: Buffer to return the flag set if receive interrupt is occured + * @got_rx: Buffer to return the flag set if receive interrupt is occurred * * The function polls the Rx for the completed descriptors and calls * the upper-layer driver (ULD) via supplied completion callback. @@ -5653,7 +5653,7 @@ vxge_hal_vpath_poll_rx( * vxge_hal_vpath_poll_tx - Poll Tx for completed descriptors and process * the same. * @vpath_handle: Virtual Path ahandle. - * @got_tx: Buffer to return the flag set if transmit interrupt is occured + * @got_tx: Buffer to return the flag set if transmit interrupt is occurred * * The function polls the Tx for the completed descriptors and calls * the upper-layer driver (ULD) via supplied completion callback. diff --git a/sys/dev/vxge/include/vxgehal-mgmt.h b/sys/dev/vxge/include/vxgehal-mgmt.h index 682e81e..effc9ab 100644 --- a/sys/dev/vxge/include/vxgehal-mgmt.h +++ b/sys/dev/vxge/include/vxgehal-mgmt.h @@ -87,7 +87,7 @@ typedef struct vxge_hal_mgmt_about_info_t { * * Returns: VXGE_HAL_OK - success; * VXGE_HAL_ERR_INVALID_DEVICE - Device is not valid. - * VXGE_HAL_ERR_VERSION_CONFLICT - Version it not maching. + * VXGE_HAL_ERR_VERSION_CONFLICT - Version it not matching. * VXGE_HAL_ERR_OUT_OF_SPACE - If the buffer is not sufficient * VXGE_HAL_FAIL - Failed to retrieve the information. * @@ -111,7 +111,7 @@ vxge_hal_mgmt_about(vxge_hal_device_h devh, * * Returns: VXGE_HAL_OK - success. * VXGE_HAL_ERR_INVALID_DEVICE - Device is not valid. - * VXGE_HAL_ERR_VERSION_CONFLICT - Version it not maching. + * VXGE_HAL_ERR_VERSION_CONFLICT - Version it not matching. * VXGE_HAL_ERR_OUT_OF_SPACE - If the buffer is not sufficient * */ @@ -122,7 +122,7 @@ vxge_hal_mgmt_pci_config(vxge_hal_device_h devh, u8 *buffer, u32 *size); * struct vxge_hal_mgmt_pm_cap_t - Power Management Capabilities * @pm_cap_ver: Version * @pm_cap_pme_clock: PME clock required - * @pm_cap_aux_power: Auxilliary power support + * @pm_cap_aux_power: Auxiliary power support * @pm_cap_dsi: Device specific initialization * @pm_cap_aux_current: auxiliary current requirements * @pm_cap_cap_d0: D1 power state support @@ -412,7 +412,7 @@ vxge_hal_mgmt_pci_err_capabilities_get(vxge_hal_device_h devh, * * Returns: VXGE_HAL_OK - success. * VXGE_HAL_ERR_DRIVER_NOT_INITIALIZED - HAL is not initialized. - * VXGE_HAL_ERR_VERSION_CONFLICT - Version is not maching. + * VXGE_HAL_ERR_VERSION_CONFLICT - Version is not matching. * VXGE_HAL_ERR_OUT_OF_SPACE - If the buffer is not sufficient * * See also: vxge_hal_driver_config_t {}, vxge_hal_mgmt_device_config(). @@ -430,7 +430,7 @@ vxge_hal_mgmt_driver_config(vxge_hal_driver_config_t *drv_config, u32 *size); * @read_length: Size of the valid data in the buffer. * * Read HAL trace buffer contents starting from the offset - * upto the size of the buffer or till EOF is reached. + * up to the size of the buffer or till EOF is reached. * * Returns: VXGE_HAL_OK - success. * VXGE_HAL_EOF_TRACE_BUF - No more data in the trace buffer. @@ -457,7 +457,7 @@ vxge_hal_mgmt_trace_read(char *buffer, * * Returns: VXGE_HAL_OK - success. * VXGE_HAL_ERR_INVALID_DEVICE - Device is not valid. - * VXGE_HAL_ERR_VERSION_CONFLICT - Version it not maching. + * VXGE_HAL_ERR_VERSION_CONFLICT - Version it not matching. * VXGE_HAL_ERR_OUT_OF_SPACE - If the buffer is not sufficient * * See also: vxge_hal_device_config_t {}, vxge_hal_mgmt_driver_config(). diff --git a/sys/dev/vxge/include/vxgehal-mgmtaux.h b/sys/dev/vxge/include/vxgehal-mgmtaux.h index 6eba36a..8ded696 100644 --- a/sys/dev/vxge/include/vxgehal-mgmtaux.h +++ b/sys/dev/vxge/include/vxgehal-mgmtaux.h @@ -47,7 +47,7 @@ __EXTERN_BEGIN_DECLS * * Returns: VXGE_HAL_OK - success. * VXGE_HAL_ERR_INVALID_DEVICE - Device is not valid. - * VXGE_HAL_ERR_VERSION_CONFLICT - Version it not maching. + * VXGE_HAL_ERR_VERSION_CONFLICT - Version it not matching. * VXGE_HAL_FAIL - Failed to retrieve the information. * * See also: vxge_hal_mgmt_about(), vxge_hal_aux_device_dump(). @@ -64,7 +64,7 @@ vxge_hal_status_e vxge_hal_aux_about_read(vxge_hal_device_h devh, int bufsize, * Read driver configuration, * * Returns: VXGE_HAL_OK - success. - * VXGE_HAL_ERR_VERSION_CONFLICT - Version it not maching. + * VXGE_HAL_ERR_VERSION_CONFLICT - Version it not matching. * * See also: vxge_hal_aux_device_config_read(). */ @@ -84,7 +84,7 @@ vxge_hal_aux_driver_config_read(int bufsize, char *retbuf, int *retsize); * * Returns: VXGE_HAL_OK - success. * VXGE_HAL_ERR_INVALID_DEVICE - Device is not valid. - * VXGE_HAL_ERR_VERSION_CONFLICT - Version it not maching. + * VXGE_HAL_ERR_VERSION_CONFLICT - Version it not matching. * * See also: vxge_hal_mgmt_pci_config(), vxge_hal_aux_device_dump(). */ @@ -105,7 +105,7 @@ vxge_hal_aux_pci_config_read(vxge_hal_device_h devh, * * Returns: VXGE_HAL_OK - success. * VXGE_HAL_ERR_INVALID_DEVICE - Device is not valid. - * VXGE_HAL_ERR_VERSION_CONFLICT - Version it not maching. + * VXGE_HAL_ERR_VERSION_CONFLICT - Version it not matching. * * See also: vxge_hal_aux_driver_config_read(). */ diff --git a/sys/dev/vxge/include/vxgehal-stats.h b/sys/dev/vxge/include/vxgehal-stats.h index 3697471..9dae119 100644 --- a/sys/dev/vxge/include/vxgehal-stats.h +++ b/sys/dev/vxge/include/vxgehal-stats.h @@ -925,7 +925,7 @@ typedef struct vxge_hal_xmac_aggr_stats_t { * @rx_red_discard: Count of received frames that are discarded because of RED * (Random Early Discard). * @rx_xgmii_ctrl_err_cnt: Maintains a count of unexpected or misplaced control - * characters occuring between times of normal data transmission + * characters occurring between times of normal data transmission * (i.e. not included in RX_XGMII_DATA_ERR_CNT). This counter is * incremented when either - * 1) The Reconciliation Sublayer (RS) is expecting one control diff --git a/sys/dev/vxge/vxgehal/vxge-queue.c b/sys/dev/vxge/vxgehal/vxge-queue.c index 5cf433e..c2a2b5a 100644 --- a/sys/dev/vxge/vxgehal/vxge-queue.c +++ b/sys/dev/vxge/vxgehal/vxge-queue.c @@ -392,7 +392,7 @@ vxge_queue_destroy(vxge_queue_h queueh) * @queueh: Queue handle. * * This function is called in the case of no slot avaialble in the queue - * to accomodate the newly received event. + * to accommodate the newly received event. * Note that queue cannot grow beyond the max size specified for the * queue. * @@ -488,7 +488,7 @@ vxge_io_queue_grow(vxge_queue_h queueh) * Returns: VXGE_QUEUE_OK - success. * VXGE_QUEUE_IS_EMPTY - Queue is empty. * VXGE_QUEUE_NOT_ENOUGH_SPACE - Requested item size(@data_max_size) - * is too small to accomodate an item from the queue. + * is too small to accommodate an item from the queue. * * See also: vxge_queue_item_t {}, vxge_queue_produce(). */ diff --git a/sys/dev/vxge/vxgehal/vxgehal-device.c b/sys/dev/vxge/vxgehal/vxgehal-device.c index 2e77f1e..faa5f79 100644 --- a/sys/dev/vxge/vxgehal/vxgehal-device.c +++ b/sys/dev/vxge/vxgehal/vxgehal-device.c @@ -3395,7 +3395,7 @@ vxge_hal_device_trace_dump(vxge_hal_device_h devh) * @read_length: Size of the valid data in the buffer. * * Read HAL trace buffer contents starting from the offset - * upto the size of the buffer or till EOF is reached. + * up to the size of the buffer or till EOF is reached. * * Returns: VXGE_HAL_OK - success. * VXGE_HAL_EOF_TRACE_BUF - No more data in the trace buffer. diff --git a/sys/dev/vxge/vxgehal/vxgehal-fifo.c b/sys/dev/vxge/vxgehal/vxgehal-fifo.c index 771f880..30dfa3d 100644 --- a/sys/dev/vxge/vxgehal/vxgehal-fifo.c +++ b/sys/dev/vxge/vxgehal/vxgehal-fifo.c @@ -384,7 +384,7 @@ __hal_fifo_create( * demand with the size which will fit into one memory block. * One memory block may contain more than one TxDL. In simple case * memory block size can be equal to CPU page size. On more - * sophisticated OS's memory block can be contigious across + * sophisticated OS's memory block can be contiguous across * several pages. * * During "reserve" operations more memory can be allocated on demand @@ -1191,7 +1191,7 @@ vxge_hal_fifo_txdl_buffer_append( * @txdlh: Descriptor handle. * @frag_idx: Index of the data buffer in the Txdl list. * - * This API in conjuction with vxge_hal_fifo_txdl_buffer_append() prepares + * This API in conjunction with vxge_hal_fifo_txdl_buffer_append() prepares * a descriptor that consists of a single physically contiguous buffer * which inturn contains the contents of one or more virtually contiguous * buffers received from the upper layer. diff --git a/sys/dev/vxge/vxgehal/vxgehal-mgmt.c b/sys/dev/vxge/vxgehal/vxgehal-mgmt.c index 3e1a25afb..c58ddb2 100644 --- a/sys/dev/vxge/vxgehal/vxgehal-mgmt.c +++ b/sys/dev/vxge/vxgehal/vxgehal-mgmt.c @@ -45,7 +45,7 @@ * * Returns: VXGE_HAL_OK - success; * VXGE_HAL_ERR_INVALID_DEVICE - Device is not valid. - * VXGE_HAL_ERR_VERSION_CONFLICT - Version it not maching. + * VXGE_HAL_ERR_VERSION_CONFLICT - Version it not matching. * VXGE_HAL_ERR_OUT_OF_SPACE - If the buffer is not sufficient * VXGE_HAL_FAIL - Failed to retrieve the information. * @@ -136,7 +136,7 @@ vxge_hal_mgmt_about(vxge_hal_device_h devh, * * Returns: VXGE_HAL_OK - success. * VXGE_HAL_ERR_INVALID_DEVICE - Device is not valid. - * VXGE_HAL_ERR_VERSION_CONFLICT - Version it not maching. + * VXGE_HAL_ERR_VERSION_CONFLICT - Version it not matching. * VXGE_HAL_ERR_OUT_OF_SPACE - If the buffer is not sufficient * */ @@ -916,7 +916,7 @@ vxge_hal_mgmt_pci_err_capabilities_get(vxge_hal_device_h devh, * * Returns: VXGE_HAL_OK - success. * VXGE_HAL_ERR_DRIVER_NOT_INITIALIZED - HAL is not initialized. - * VXGE_HAL_ERR_VERSION_CONFLICT - Version is not maching. + * VXGE_HAL_ERR_VERSION_CONFLICT - Version is not matching. * VXGE_HAL_ERR_OUT_OF_SPACE - If the buffer is not sufficient * * See also: vxge_hal_driver_config_t {}, vxge_hal_mgmt_device_config(). @@ -974,7 +974,7 @@ vxge_hal_mgmt_driver_config(vxge_hal_driver_config_t *drv_config, u32 *size) * * Returns: VXGE_HAL_OK - success. * VXGE_HAL_ERR_INVALID_DEVICE - Device is not valid. - * VXGE_HAL_ERR_VERSION_CONFLICT - Version it not maching. + * VXGE_HAL_ERR_VERSION_CONFLICT - Version it not matching. * VXGE_HAL_ERR_OUT_OF_SPACE - If the buffer is not sufficient * * See also: vxge_hal_device_config_t {}, vxge_hal_mgmt_driver_config(). diff --git a/sys/dev/vxge/vxgehal/vxgehal-mgmtaux.c b/sys/dev/vxge/vxgehal/vxgehal-mgmtaux.c index e294e7e..995cbc7 100644 --- a/sys/dev/vxge/vxgehal/vxgehal-mgmtaux.c +++ b/sys/dev/vxge/vxgehal/vxgehal-mgmtaux.c @@ -82,7 +82,7 @@ * * Returns: VXGE_HAL_OK - success. * VXGE_HAL_ERR_INVALID_DEVICE - Device is not valid. - * VXGE_HAL_ERR_VERSION_CONFLICT - Version it not maching. + * VXGE_HAL_ERR_VERSION_CONFLICT - Version it not matching. * VXGE_HAL_FAIL - Failed to retrieve the information. * * See also: vxge_hal_mgmt_about(), vxge_hal_aux_device_dump(). @@ -132,7 +132,7 @@ vxge_hal_aux_about_read(vxge_hal_device_h devh, int bufsize, * Read driver configuration, * * Returns: VXGE_HAL_OK - success. - * VXGE_HAL_ERR_VERSION_CONFLICT - Version it not maching. + * VXGE_HAL_ERR_VERSION_CONFLICT - Version it not matching. * * See also: vxge_hal_aux_device_config_read(). */ @@ -169,7 +169,7 @@ vxge_hal_aux_driver_config_read(int bufsize, char *retbuf, int *retsize) * * Returns: VXGE_HAL_OK - success. * VXGE_HAL_ERR_INVALID_DEVICE - Device is not valid. - * VXGE_HAL_ERR_VERSION_CONFLICT - Version it not maching. + * VXGE_HAL_ERR_VERSION_CONFLICT - Version it not matching. * * See also: vxge_hal_mgmt_pci_config(), vxge_hal_aux_device_dump(). */ @@ -463,7 +463,7 @@ vxge_hal_aux_pci_config_read( * * Returns: VXGE_HAL_OK - success. * VXGE_HAL_ERR_INVALID_DEVICE - Device is not valid. - * VXGE_HAL_ERR_VERSION_CONFLICT - Version it not maching. + * VXGE_HAL_ERR_VERSION_CONFLICT - Version it not matching. * * See also: vxge_hal_aux_driver_config_read(). */ diff --git a/sys/dev/vxge/vxgehal/vxgehal-regs.h b/sys/dev/vxge/vxgehal/vxgehal-regs.h index 52cef74..a18e97b 100644 --- a/sys/dev/vxge/vxgehal/vxgehal-regs.h +++ b/sys/dev/vxge/vxgehal/vxgehal-regs.h @@ -200,7 +200,7 @@ typedef struct vxge_hal_pm_capability_le_t { u16 capabilities_reg; #define VXGE_HAL_PCI_PM_CAP_VER_MASK 0x0007 /* Version */ #define VXGE_HAL_PCI_PM_CAP_PME_CLOCK 0x0008 /* PME clock required */ -#define VXGE_HAL_PCI_PM_CAP_AUX_POWER 0x0010 /* Auxilliary power support */ +#define VXGE_HAL_PCI_PM_CAP_AUX_POWER 0x0010 /* Auxiliary power support */ #define VXGE_HAL_PCI_PM_CAP_DSI 0x0020 /* Device specific init */ #define VXGE_HAL_PCI_PM_AUX_CURRENT 0x01C0 /* Auxiliary current reqs */ #define VXGE_HAL_PCI_PM_CAP_D1 0x0200 /* D1 power state support */ @@ -228,7 +228,7 @@ typedef struct vxge_hal_pm_capability_t { u16 capabilities_reg; #define VXGE_HAL_PCI_PM_CAP_VER_MASK 0x0007 /* Version */ #define VXGE_HAL_PCI_PM_CAP_PME_CLOCK 0x0008 /* PME clock required */ -#define VXGE_HAL_PCI_PM_CAP_AUX_POWER 0x0010 /* Auxilliary power support */ +#define VXGE_HAL_PCI_PM_CAP_AUX_POWER 0x0010 /* Auxiliary power support */ #define VXGE_HAL_PCI_PM_CAP_DSI 0x0020 /* Dev specific init */ #define VXGE_HAL_PCI_PM_AUX_CURRENT 0x01C0 /* Auxiliary current reqs */ #define VXGE_HAL_PCI_PM_CAP_D1 0x0200 /* D1 power state support */ @@ -257,7 +257,7 @@ typedef struct vxge_hal_pm_capability_t { u16 capabilities_reg; #define VXGE_HAL_PCI_PM_CAP_VER_MASK 0x0007 /* Version */ #define VXGE_HAL_PCI_PM_CAP_PME_CLOCK 0x0008 /* PME clock required */ -#define VXGE_HAL_PCI_PM_CAP_AUX_POWER 0x0010 /* Auxilliary power support */ +#define VXGE_HAL_PCI_PM_CAP_AUX_POWER 0x0010 /* Auxiliary power support */ #define VXGE_HAL_PCI_PM_CAP_DSI 0x0020 /* Dev specific init */ #define VXGE_HAL_PCI_PM_AUX_CURRENT 0x01C0 /* Auxiliary curr reqs */ #define VXGE_HAL_PCI_PM_CAP_D1 0x0200 /* D1 power state support */ diff --git a/sys/dev/vxge/vxgehal/vxgehal-virtualpath.c b/sys/dev/vxge/vxgehal/vxgehal-virtualpath.c index ac51b97..c4067e9 100644 --- a/sys/dev/vxge/vxgehal/vxgehal-virtualpath.c +++ b/sys/dev/vxge/vxgehal/vxgehal-virtualpath.c @@ -2899,7 +2899,7 @@ vxge_hal_vpath_rts_rth_get(vxge_hal_vpath_h vpath_handle, * * @vpath_handle: Virtual Path ahandle. * @KeySize: Number of 64-bit words - * @Key: upto 40-byte array of 64-bit values + * @Key: up to 40-byte array of 64-bit values * This function configures the 40-byte secret which is used for hash * calculation. * @@ -7532,7 +7532,7 @@ vxge_hal_vpath_msix_unmask_all(vxge_hal_vpath_h vpath_handle) * vxge_hal_vpath_poll_rx - Poll Rx Virtual Path for completed * descriptors and process the same. * @vpath_handle: Virtual Path ahandle. - * @got_rx: Buffer to return the flag set if receive interrupt is occured + * @got_rx: Buffer to return the flag set if receive interrupt is occurred * * The function polls the Rx for the completed descriptors and calls * the upper-layer driver (ULD) via supplied completion callback. @@ -7597,7 +7597,7 @@ vxge_hal_vpath_poll_rx(vxge_hal_vpath_h vpath_handle, u32 *got_rx) * vxge_hal_vpath_poll_tx - Poll Tx for completed descriptors and process * the same. * @vpath_handle: Virtual Path ahandle. - * @got_tx: Buffer to return the flag set if transmit interrupt is occured + * @got_tx: Buffer to return the flag set if transmit interrupt is occurred * * The function polls the Tx for the completed descriptors and calls * the upper-layer driver (ULD) via supplied completion callback. diff --git a/sys/dev/wi/if_wavelan_ieee.h b/sys/dev/wi/if_wavelan_ieee.h index 0061e63..c2a8e1b 100644 --- a/sys/dev/wi/if_wavelan_ieee.h +++ b/sys/dev/wi/if_wavelan_ieee.h @@ -431,7 +431,7 @@ struct wi_apinfo { */ /* - * standard hermes recieve frame used by wavelan/prism2 cards + * standard hermes receive frame used by wavelan/prism2 cards */ struct wi_rx_frame { /* diff --git a/sys/dev/wi/if_wi.c b/sys/dev/wi/if_wi.c index 632bd76..19876e1 100644 --- a/sys/dev/wi/if_wi.c +++ b/sys/dev/wi/if_wi.c @@ -46,7 +46,7 @@ * without an NDA (if at all). What they do release is an API library * called the HCF (Hardware Control Functions) which is supposed to * do the device-specific operations of a device driver for you. The - * publically available version of the HCF library (the 'HCF Light') is + * publicly available version of the HCF library (the 'HCF Light') is * a) extremely gross, b) lacks certain features, particularly support * for 802.11 frames, and c) is contaminated by the GNU Public License. * diff --git a/sys/dev/wi/if_wireg.h b/sys/dev/wi/if_wireg.h index d99e597..d5e12ca 100644 --- a/sys/dev/wi/if_wireg.h +++ b/sys/dev/wi/if_wireg.h @@ -157,7 +157,7 @@ * - Lucent has created a library called HCF (Hardware Control Functions) * though which it wants developers to interact with the card. The HCF * is needlessly complex, ill conceived and badly documented. Actually, - * the comments in the HCP code itself aren't bad, but the publically + * the comments in the HCP code itself aren't bad, but the publicly * available manual that comes with it is awful, probably due largely to * the fact that it has been emasculated in order to hide information * that Lucent wants to keep proprietary. The purpose of the HCF seems @@ -295,7 +295,7 @@ #define WI_EV_CMD 0x0010 /* command completed */ #define WI_EV_ALLOC 0x0008 /* async alloc/reclaim completed */ #define WI_EV_TX_EXC 0x0004 /* async xmit completed with failure */ -#define WI_EV_TX 0x0002 /* async xmit completed succesfully */ +#define WI_EV_TX 0x0002 /* async xmit completed successfully */ #define WI_EV_RX 0x0001 /* async rx completed */ /* Host software registers */ diff --git a/sys/dev/wl/if_wl.c b/sys/dev/wl/if_wl.c index 6414d33..08d0fc8 100644 --- a/sys/dev/wl/if_wl.c +++ b/sys/dev/wl/if_wl.c @@ -1252,7 +1252,7 @@ wlioctl(struct ifnet *ifp, u_long cmd, caddr_t data) mode |= MOD_PROM; } /* - * force a complete reset if the recieve multicast/ + * force a complete reset if the receive multicast/ * promiscuous mode changes so that these take * effect immediately. * @@ -1479,11 +1479,11 @@ wlwatchdog(void *vsc) * * This function is the interrupt handler for the WaveLAN * board. This routine will be called whenever either a packet - * is received, or a packet has successfully been transfered and + * is received, or a packet has successfully been transferred and * the unit is ready to transmit another packet. * * input : board number that interrupted - * output : either a packet is received, or a packet is transfered + * output : either a packet is received, or a packet is transferred * */ static void @@ -1500,7 +1500,7 @@ wlintr(void *arg) #endif if ((int_type = WL_READ_2(sc, HASR)) & HASR_MMC_INTR) { - /* handle interrupt from the modem management controler */ + /* handle interrupt from the modem management controller */ /* This will clear the interrupt condition */ (void) wlmmcread(sc, MMC_DCE_STATUS); /* ignored for now */ } diff --git a/sys/dev/xe/if_xereg.h b/sys/dev/xe/if_xereg.h index f3ab4b5..b81ae6b 100644 --- a/sys/dev/xe/if_xereg.h +++ b/sys/dev/xe/if_xereg.h @@ -633,7 +633,7 @@ #define PHY_BMSR 0x01 /* Basic Mode Status Register */ #define PHY_ID1 0x02 /* PHY ID 1 */ #define PHY_ID2 0x03 /* PHY ID 2 */ -#define PHY_ANAR 0x04 /* Auto-Negotiation Advertisment Register */ +#define PHY_ANAR 0x04 /* Auto-Negotiation Advertisement Register */ #define PHY_LPAR 0x05 /* Auto-Negotiation Link Partner Ability Register */ #define PHY_ANER 0x06 /* Auto-Negotiation Expansion Register */ diff --git a/sys/dev/xen/balloon/balloon.c b/sys/dev/xen/balloon/balloon.c index e54e39c..aefa5cd 100644 --- a/sys/dev/xen/balloon/balloon.c +++ b/sys/dev/xen/balloon/balloon.c @@ -353,7 +353,7 @@ xenballoon_identify(driver_t *driver __unused, device_t parent) } /** - * \brief Probe for the existance of the Xen Balloon device + * \brief Probe for the existence of the Xen Balloon device * * \param dev NewBus device_t for this Xen control instance. * diff --git a/sys/dev/xen/blkback/blkback.c b/sys/dev/xen/blkback/blkback.c index a97314b..97068a1 100644 --- a/sys/dev/xen/blkback/blkback.c +++ b/sys/dev/xen/blkback/blkback.c @@ -619,7 +619,7 @@ struct xbb_softc { * There are situations where the back and front ends can * have a different, native abi (e.g. intel x86_64 and * 32bit x86 domains on the same machine). The back-end - * always accomodates the front-end's native abi. That + * always accommodates the front-end's native abi. That * value is pulled from the XenStore and recorded here. */ int abi; @@ -788,13 +788,13 @@ struct xbb_softc { /** Number of requests we completed with an error status*/ uint64_t reqs_completed_with_error; - /** How many forced dispatches (i.e. without coalescing) have happend */ + /** How many forced dispatches (i.e. without coalescing) have happened */ uint64_t forced_dispatch; - /** How many normal dispatches have happend */ + /** How many normal dispatches have happened */ uint64_t normal_dispatch; - /** How many total dispatches have happend */ + /** How many total dispatches have happened */ uint64_t total_dispatch; /** How many times we have run out of KVA */ @@ -1957,7 +1957,7 @@ xbb_run_queue(void *context, int pending) * we've already consumed all necessary data out * of the version of the request in the ring buffer * (for native mode). We must update the consumer - * index before issueing back-end I/O so there is + * index before issuing back-end I/O so there is * no possibility that it will complete and a * response be generated before we make room in * the queue for that response. @@ -3062,7 +3062,7 @@ xbb_collect_frontend_info(struct xbb_softc *xbb) * and the new value is outside of its allowed range. * * \note xs_gather() returns on the first encountered error, so - * we must use independant calls in order to guarantee + * we must use independent calls in order to guarantee * we don't miss information in a sparsly populated front-end * tree. * @@ -3739,7 +3739,7 @@ xbb_attach(device_t dev) * * \note A block back device may be detached at any time in its life-cycle, * including part way through the attach process. For this reason, - * initialization order and the intialization state checks in this + * initialization order and the initialization state checks in this * routine must be carefully coupled so that attach time failures * are gracefully handled. */ diff --git a/sys/dev/xen/blkfront/blkfront.c b/sys/dev/xen/blkfront/blkfront.c index ef36b94..4de5884 100644 --- a/sys/dev/xen/blkfront/blkfront.c +++ b/sys/dev/xen/blkfront/blkfront.c @@ -571,7 +571,7 @@ xbd_quiesce(struct xbd_softc *sc) while (xbd_queue_length(sc, XBD_Q_BUSY) != 0) { RING_FINAL_CHECK_FOR_RESPONSES(&sc->xbd_ring, mtd); if (mtd) { - /* Recieved request completions, update queue. */ + /* Received request completions, update queue. */ xbd_int(sc); } if (xbd_queue_length(sc, XBD_Q_BUSY) != 0) { @@ -1118,7 +1118,7 @@ xbd_initialize(struct xbd_softc *sc) * Protocol negotiation. * * \note xs_gather() returns on the first encountered error, so - * we must use independant calls in order to guarantee + * we must use independent calls in order to guarantee * we don't miss information in a sparsly populated back-end * tree. * diff --git a/sys/dev/xen/blkfront/block.h b/sys/dev/xen/blkfront/block.h index ddb4088..b481396 100644 --- a/sys/dev/xen/blkfront/block.h +++ b/sys/dev/xen/blkfront/block.h @@ -160,7 +160,7 @@ typedef enum { XBDF_CM_SHORTAGE = 1 << 4, /* Free cm resource shortage active. */ XBDF_GNT_SHORTAGE = 1 << 5, /* Grant ref resource shortage active */ XBDF_WAIT_IDLE = 1 << 6, /* - * No new work until oustanding work + * No new work until outstanding work * completes. */ XBDF_DISCARD = 1 << 7, /* backend supports discard */ diff --git a/sys/dev/xen/control/control.c b/sys/dev/xen/control/control.c index 5e00beb..8cf5969 100644 --- a/sys/dev/xen/control/control.c +++ b/sys/dev/xen/control/control.c @@ -368,7 +368,7 @@ xctrl_identify(driver_t *driver __unused, device_t parent) } /** - * \brief Probe for the existance of the Xen Control device + * \brief Probe for the existence of the Xen Control device * * \param dev NewBus device_t for this Xen control instance. * diff --git a/sys/dev/xen/netback/netback.c b/sys/dev/xen/netback/netback.c index 4b4fdb9..aa5ce6e 100644 --- a/sys/dev/xen/netback/netback.c +++ b/sys/dev/xen/netback/netback.c @@ -416,7 +416,7 @@ struct xnb_softc { * There are situations where the back and front ends can * have a different, native abi (e.g. intel x86_64 and * 32bit x86 domains on the same machine). The back-end - * always accomodates the front-end's native abi. That + * always accommodates the front-end's native abi. That * value is pulled from the XenStore and recorded here. */ int abi; @@ -1327,7 +1327,7 @@ xnb_attach(device_t dev) * * \note A net back device may be detached at any time in its life-cycle, * including part way through the attach process. For this reason, - * initialization order and the intialization state checks in this + * initialization order and the initialization state checks in this * routine must be carefully coupled so that attach time failures * are gracefully handled. */ diff --git a/sys/dev/xen/netback/netback_unit_tests.c b/sys/dev/xen/netback/netback_unit_tests.c index 390f9f7..db94217 100644 --- a/sys/dev/xen/netback/netback_unit_tests.c +++ b/sys/dev/xen/netback/netback_unit_tests.c @@ -98,7 +98,7 @@ struct test_fixture { /** Will be run if setup succeeds */ testcase_t *test; - /** Cleans up test data whether or not the setup suceeded*/ + /** Cleans up test data whether or not the setup succeeded */ teardown_t *teardown; }; diff --git a/sys/dev/xen/xenstore/xenstore.c b/sys/dev/xen/xenstore/xenstore.c index f3df97d..4f89b74 100644 --- a/sys/dev/xen/xenstore/xenstore.c +++ b/sys/dev/xen/xenstore/xenstore.c @@ -79,7 +79,7 @@ __FBSDID("$FreeBSD$"); * * The XenStore is ASCII string based, and has a structure and semantics * similar to a filesystem. There are files and directories, the directories - * able to contain files or other directories. The depth of the hierachy + * able to contain files or other directories. The depth of the hierarchy * is only limited by the XenStore's maximum path length. * * The communication channel between the XenStore service and other @@ -1110,7 +1110,7 @@ xs_identify(driver_t *driver, device_t parent) } /** - * Probe for the existance of the XenStore. + * Probe for the existence of the XenStore. * * \param dev */ diff --git a/sys/dev/xen/xenstore/xenstore_dev.c b/sys/dev/xen/xenstore/xenstore_dev.c index 80396fd..ce62140 100644 --- a/sys/dev/xen/xenstore/xenstore_dev.c +++ b/sys/dev/xen/xenstore/xenstore_dev.c @@ -241,7 +241,7 @@ xs_dev_identify(driver_t *driver __unused, device_t parent) } /** - * \brief Probe for the existance of the Xenstore device + * \brief Probe for the existence of the Xenstore device * * \param dev NewBus device_t for this instance. * diff --git a/sys/dev/xl/if_xl.c b/sys/dev/xl/if_xl.c index 9568967..e82fe1c 100644 --- a/sys/dev/xl/if_xl.c +++ b/sys/dev/xl/if_xl.c @@ -75,7 +75,7 @@ __FBSDID("$FreeBSD$"); * Columbia University, New York City */ /* - * The 3c90x series chips use a bus-master DMA interface for transfering + * The 3c90x series chips use a bus-master DMA interface for transferring * packets to and from the controller chip. Some of the "vortex" cards * (3c59x) also supported a bus master mode, however for those chips * you could only DMA packets to/from a contiguous memory buffer. For |