/freebsd/sys/contrib/device-tree/Bindings/peci/ |
H A D | peci-controller.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/peci/peci-controller.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Iwona Winiarska <iwona.winiarska@intel.com> 19 pattern: "^peci-controller(@.*)?$" 21 cmd-timeout-ms: 23 Command timeout in units of ms. 28 - | 29 peci-controller@1e78b000 { [all …]
|
H A D | peci-aspeed.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/peci/peci-aspeed.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Iwona Winiarska <iwona.winiarska@intel.com> 11 - Jae Hyun Yoo <jae.hyun.yoo@linux.intel.com> 14 - $ref: peci-controller.yaml# 19 - aspeed,ast2400-peci 20 - aspeed,ast2500-peci 21 - aspeed,ast2600-peci [all …]
|
/freebsd/sys/dev/ftwd/ |
H A D | ftwd.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 4 * Copyright (c) 2020 Poul-Henning Kamp 47 ftwd_func(void *priv, u_int cmd, int *error) in ftwd_func() argument 50 uint64_t timeout; in ftwd_func() local 54 if (cmd != 0) { in ftwd_func() 55 cmd &= WD_INTERVAL; in ftwd_func() 57 /* Convert the requested timeout to seconds. */ in ftwd_func() 58 if (cmd >= WD_TO_1SEC) in ftwd_func() 59 timeout = (uint64_t)1 << (cmd - WD_TO_1SEC); in ftwd_func() [all …]
|
/freebsd/sys/dev/itwd/ |
H A D | itwd.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 51 wd_func(void *priv, u_int cmd, int *error) in wd_func() argument 54 uint64_t timeout; in wd_func() local 58 if (cmd != 0) { in wd_func() 59 cmd &= WD_INTERVAL; in wd_func() 62 * Convert the requested timeout to seconds. in wd_func() 63 * If the timeout is smaller than the minimal supported value in wd_func() 65 * TODO This hardware actually supports 64ms resolution in wd_func() 69 if (cmd >= WD_TO_1SEC) in wd_func() [all …]
|
/freebsd/sys/dev/wdatwd/ |
H A D | wdatwd.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 81 * entry Permanent copy of ACPI_WDAT_ENTRY entry (sub-table). 93 * timeout User configured timeout in millisecond or 0 if isn't set. 106 uint64_t timeout; member 133 if (STAILQ_EMPTY(&sc->action[action])) { in wdatwd_action() 134 WDATWD_VERBOSE_PRINTF(sc->dev, in wdatwd_action() 139 STAILQ_FOREACH(wdat, &sc->action[action], next) { in wdatwd_action() 140 ACPI_GENERIC_ADDRESS *gas = &wdat->entry.RegisterRegion; in wdatwd_action() 143 switch (wdat->entry.Instruction in wdatwd_action() [all …]
|
/freebsd/sys/contrib/dev/iwlwifi/fw/ |
H A D | file.h | 1 /* SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause */ 3 * Copyright (C) 2008-2014, 2018-2024 Intel Corporation 4 * Copyright (C) 2013-2015 Intel Mobile Communications GmbH 5 * Copyright (C) 2016-2017 Intel Deutschland GmbH 55 IWL_UCODE_TLV_PAN = 7, /* deprecated - 751 struct cmd { global() struct 752 cmd_idiwl_fw_dbg_trigger_cmd::cmd global() argument 753 group_idiwl_fw_dbg_trigger_cmd::cmd global() argument 939 u8 cmd; global() member [all...] |
/freebsd/sys/dev/imcsmb/ |
H A D | imcsmb.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 6 * Copyright (c) 2017-2018 Panasas 60 static int imcsmb_readb(device_t dev, u_char slave, char cmd, char *byte); 61 static int imcsmb_readw(device_t dev, u_char slave, char cmd, short *word); 62 static int imcsmb_writeb(device_t dev, u_char slave, char cmd, char byte); 63 static int imcsmb_writew(device_t dev, u_char slave, char cmd, short word); 66 static int imcsmb_transfer(device_t dev, u_char slave, char cmd, void *data, 87 sc->dev = dev; in imcsmb_attach() 88 sc->imcsmb_pci = device_get_parent(dev); in imcsmb_attach() [all …]
|
/freebsd/sys/dev/smartpqi/ |
H A D | smartpqi_sis.c | 1 /*- 2 * Copyright 2016-2023 Microchip Technology, Inc. and/or its subsidiaries. 37 db_reg = PCI_MEM_GET32(softs, &softs->ioa_reg->host_to_ioa_db, in sis_disable_msix() 40 PCI_MEM_PUT32(softs, &softs->ioa_reg->host_to_ioa_db, in sis_disable_msix() 42 OS_SLEEP(1000); /* 1 ms delay for PCI W/R ordering issue */ in sis_disable_msix() 54 db_reg = PCI_MEM_GET32(softs, &softs->ioa_reg->host_to_ioa_db, in sis_enable_intx() 57 PCI_MEM_PUT32(softs, &softs->ioa_reg->host_to_ioa_db, in sis_enable_intx() 59 OS_SLEEP(1000); /* 1 ms delay for PCI W/R ordering issue */ in sis_enable_intx() 74 db_reg = PCI_MEM_GET32(softs, &softs->ioa_reg->host_to_ioa_db, in sis_disable_intx() 77 PCI_MEM_PUT32(softs, &softs->ioa_reg->host_to_ioa_db, in sis_disable_intx() [all …]
|
/freebsd/tools/tools/usbtest/ |
H A D | usb_msc_test.c | 1 /*- 2 * Copyright (c) 2007-2022 Hans Petter Selasky 106 * SCSI commands sniffed off the wire - LUN maybe needs to be 157 uint32_t timeout; in do_msc_cmd() local 173 timeout = ((datalen + 299999) / 300000) * 1000; in do_msc_cmd() 174 timeout += 5000; in do_msc_cmd() 195 pdata, datalen, &actlen, TIMEOUT_FILTER(timeout)))) { in do_msc_cmd() 208 timeout = 8; in do_msc_cmd() 215 printf("TIMEOUT: Trying to get CSW again. " in do_msc_cmd() 216 "%d tries left.\n", timeout); in do_msc_cmd() [all …]
|
/freebsd/sbin/nvmecontrol/ |
H A D | passthru.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 4 * Copyright (c) 2019-2021 Netflix, Inc 51 uint32_t timeout; member 89 .timeout = 0, 95 * Argument names and short names selected to match the nvme-cli program 96 * so vendor-siupplied formulas work out of the box on FreeBSD with a simple 120 ARG("data-len", 'l', arg_uint32, opt, data_len, 122 ARG("metadata-len", 'm', arg_uint32, opt, metadata_len, 126 ARG("input-file", 'i', arg_path, opt, ifn, [all …]
|
/freebsd/sys/dev/sdhci/ |
H A D | sdhci.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 81 #define RD1(slot, off) SDHCI_READ_1((slot)->bus, (slot), (off)) 82 #define RD2(slot, off) SDHCI_READ_2((slot)->bus, (slot), (off)) 83 #define RD4(slot, off) SDHCI_READ_4((slot)->bus, (slot), (off)) 85 SDHCI_READ_MULTI_4((slot)->bus, (slot), (off), (ptr), (count)) 87 #define WR1(slot, off, val) SDHCI_WRITE_1((slot)->bus, (slot), (off), (val)) 88 #define WR2(slot, off, val) SDHCI_WRITE_2((slot)->bus, (slot), (off), (val)) 89 #define WR4(slot, off, val) SDHCI_WRITE_4((slot)->bus, (slot), (off), (val)) 91 SDHCI_WRITE_MULTI_4((slot)->bus, (slot), (off), (ptr), (count)) [all …]
|
/freebsd/sys/dev/rtwn/rtl8192c/ |
H A D | r92c_fw.c | 3 /*- 6 * Copyright (c) 2015-2016 Andriy Voskoboinyk <avos@FreeBSD.org> 65 struct r92c_fw_cmd cmd; in r92c_fw_cmd() local 68 KASSERT(len <= sizeof(cmd.msg), in r92c_fw_cmd() 70 __func__, len, sizeof(cmd.msg))); in r92c_fw_cmd() 72 if (!(sc->sc_flags & RTWN_FW_LOADED)) { in r92c_fw_cmd() 81 if (!(rtwn_read_1(sc, R92C_HMETFR) & (1 << sc->fwcur))) in r92c_fw_cmd() 86 device_printf(sc->sc_dev, in r92c_fw_cmd() 90 memset(&cmd, 0, sizeof(cmd)); in r92c_fw_cmd() 91 cmd.id = id; in r92c_fw_cmd() [all …]
|
/freebsd/sys/arm/allwinner/ |
H A D | aw_wdog.c | 1 /*- 49 #define READ(_sc, _r) bus_read_4((_sc)->res, (_r)) 50 #define WRITE(_sc, _r, _v) bus_write_4((_sc)->res, (_r), (_v)) 117 {"allwinner,sun4i-a10-wdt", A10_WATCHDOG}, 118 {"allwinner,sun6i-a31-wdt", A31_WATCHDOG}, 119 {"allwinner,sun20i-d1-wdt", D1_WATCHDOG}, 132 switch (ofw_bus_search_compatible(dev, compat_data)->ocd_data) { in aw_wdog_probe() 156 sc->dev = dev; in aw_wdog_attach() 159 sc->res = bus_alloc_resource_any(dev, SYS_RES_MEMORY, &rid, RF_ACTIVE); in aw_wdog_attach() 160 if (sc->res == NULL) { in aw_wdog_attach() [all …]
|
/freebsd/sys/dev/mvs/ |
H A D | mvs.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 120 ch->dev = dev; in mvs_ch_attach() 121 ch->unit = (intptr_t)device_get_ivars(dev); in mvs_ch_attach() 122 ch->quirks = ctlr->quirks; in mvs_ch_attach() 123 mtx_init(&ch->mtx, "MVS channel lock", NULL, MTX_DEF); in mvs_ch_attach() 124 ch->pm_level = 0; in mvs_ch_attach() 126 device_get_unit(dev), "pm_level", &ch->pm_level); in mvs_ch_attach() 127 if (ch->pm_level > 3) in mvs_ch_attach() 128 callout_init_mtx(&ch->pm_timer, &ch->mtx, 0); in mvs_ch_attach() [all …]
|
/freebsd/sys/dev/ixl/ |
H A D | i40e_nvm.c | 3 Copyright (c) 2013-2018, Intel Corporation 37 * i40e_init_nvm - Initialize NVM function pointers 48 struct i40e_nvm_info *nvm = &hw->nvm; in i40e_init_nvm() 62 nvm->sr_size = BIT(sr_size) * I40E_SR_WORDS_IN_1KB; in i40e_init_nvm() 67 /* Max NVM timeout */ in i40e_init_nvm() 68 nvm->timeout = I40E_MAX_NVM_TIMEOUT; in i40e_init_nvm() 69 nvm->blank_nvm_mode = FALSE; in i40e_init_nvm() 71 nvm->blank_nvm_mode = TRUE; in i40e_init_nvm() 80 * i40e_acquire_nvm - Generic request for acquiring the NVM ownership 91 u64 gtime, timeout; in i40e_acquire_nvm() local [all …]
|
/freebsd/sys/dev/nvme/ |
H A D | nvme_ctrlr.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 4 * Copyright (C) 2012-2016 Intel Corporation 56 bus_barrier(ctrlr->resource, 0, rman_get_size(ctrlr->resource), flags); in nvme_ctrlr_barrier() 68 sbuf_printf(&sb, "name=\"%s\" ", device_get_nameunit(ctrlr->dev)); in nvme_ctrlr_devctl_va() 95 sbuf_printf(&sb, "%s: ", device_get_nameunit(ctrlr->dev)); in nvme_ctrlr_devctl_log() 115 qpair = &ctrlr->adminq; in nvme_ctrlr_construct_admin_qpair() 116 qpair->id = 0; in nvme_ctrlr_construct_admin_qpair() 117 qpair->cpu = CPU_FFS(&cpuset_domain[ctrlr->domain]) - 1; in nvme_ctrlr_construct_admin_qpair() 118 qpair->domain = ctrlr->domain; in nvme_ctrlr_construct_admin_qpair() [all …]
|
/freebsd/sys/dev/usb/wlan/ |
H A D | if_rsu.c | 3 /*- 22 * o tx a-mpdu 24 * o power-save operation 78 device_printf((_sc)->sc_dev, __VA_ARGS__); \ 289 /* XXX hard-coded */ 315 .timeout = RSU_TX_TIMEOUT 328 .timeout = RSU_TX_TIMEOUT 341 .timeout = RSU_TX_TIMEOUT 350 if (uaa->usb_mode != USB_MODE_HOST || in rsu_match() 351 uaa->info.bIfaceIndex != 0 || in rsu_match() [all …]
|
/freebsd/usr.sbin/watchdogd/ |
H A D | watchdogd.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 4 * Copyright (c) 2003-2004 Sean M. Kelly <smkelly@FreeBSD.org> 71 static int watchdog_patpat(u_int timeout); 79 static u_int timeout = WD_TO_128SEC; variable 91 static int fd = -1; 92 static int carp_thresh_seconds = -1; 108 { "pretimeout-action", required_argument, &pretimeout_act_set, 1 }, 110 { "softtimeout-action", required_argument, &softtimeout_act_set, 1 }, 135 if (rtprio(RTP_SET, 0, &rtp) == -1) in main() [all …]
|
/freebsd/sys/contrib/dev/iwlwifi/fw/api/ |
H A D | location.h | 1 /* SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause */ 3 * Copyright (C) 2015-2017 Intel Deutschland GmbH 4 * Copyright (C) 2018-2022 Intel Corporation 11 * enum iwl_location_subcmd_ids - location group command IDs 86 * struct iwl_tof_config_cmd - ToF configuration 88 * @one_sided_disabled: indicates if one-side [all...] |
/freebsd/sys/dev/usb/storage/ |
H A D | umass.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 43 * http://www.usb.org/developers/devclass_docs/usbmass-ufi10.pdf 53 * - Command/Bulk/Interrupt (CBI) 54 * - Command/Bulk/Interrupt with Command Completion Interrupt (CBI with CCI) 55 * - Mass Storage Bulk-Only (BBB) 59 * - SCSI 60 * - UFI (floppy command set) 61 * - 8070i (ATAPI) 64 * sc->sc_transform method is used to convert the commands into the appropriate [all …]
|
/freebsd/sys/cam/mmc/ |
H A D | mmc_da.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 6 * Copyright (c) 2015-2017 Ilya Bakulin <kibab@FreeBSD.org> All rights reserved. 132 char card_sn_string[16];/* Formatted serial # for disk->d_ident */ 136 /* Generic switch timeout */ 145 uint32_t part_time; /* Partition switch timeout [us] */ 155 "Timeout", 236 return periph->path->device->mmc_ident_data.card_rca; in get_rca() 241 * Look at both CAM-level errors and on MMC protocol errors. 248 KASSERT(ccb->ccb_h.func_code == XPT_MMC_IO, in mmc_handle_reply() [all …]
|
/freebsd/sys/dev/ahci/ |
H A D | ahci.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 4 * Copyright (c) 2009-2012 Alexander Motin <mav@FreeBSD.org> 108 return ch->disablephy ? ATA_SC_DET_DISABLE : val; in ahci_ch_detval() 116 ATA_OUTL(ctlr->r_mem, AHCI_IS, ATA_INL(ctlr->r_mem, AHCI_IS)); in ahci_ctlr_setup() 118 if (ctlr->ccc) { in ahci_ctlr_setup() 119 ATA_OUTL(ctlr->r_mem, AHCI_CCCP, ATA_INL(ctlr->r_mem, AHCI_PI)); in ahci_ctlr_setup() 120 ATA_OUTL(ctlr->r_mem, AHCI_CCCC, in ahci_ctlr_setup() 121 (ctlr->ccc << AHCI_CCCC_TV_SHIFT) | in ahci_ctlr_setup() 124 ctlr->cccv = (ATA_INL(ctlr->r_mem, AHCI_CCCC) & in ahci_ctlr_setup() [all …]
|
/freebsd/sys/dev/usb/ |
H A D | usb_msctest.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 4 * Copyright (c) 2008-2022 Hans Petter Selasky. 5 * Copyright (c) 2021-2022 Idwer Vollering. 129 #define ERR_CSW_FAILED -1 170 usb_timeout_t data_timeout; /* ms */ 208 .timeout = 4 * USB_MS_HZ, /* 4 seconds */ 218 .timeout = 4 * USB_MS_HZ, /* 4 seconds */ 227 .timeout = 1 * USB_MS_HZ, /* 1 second */ 237 .timeout = 4 * USB_MS_HZ, /* 4 seconds */ [all …]
|
/freebsd/sys/dev/ipmi/ |
H A D | ipmi_opal.c | 1 /*- 54 * 0 - disabled 55 * 1 - enable error messages (EPRINTF) 56 * 2 - enable error and debug messages (DPRINTF) 88 timo *= 10; /* Timeout is in milliseconds, we delay in 100us */ in opal_ipmi_recv() 94 err = opal_call(OPAL_IPMI_RECV, sc->sc_interface, in opal_ipmi_recv() 95 vtophys(sc->sc_msg), vtophys(msg_len)); in opal_ipmi_recv() 100 if (timo-- <= 0) { in opal_ipmi_recv() 101 sc->sc_timedout = 1; in opal_ipmi_recv() 112 sc->sc_msg->data[0], *msg_len); in opal_ipmi_recv() [all …]
|
/freebsd/sys/contrib/ena-com/ |
H A D | ena_com.c | 1 /*- 2 * SPDX-License-Identifier: BSD-3-Clause 4 * Copyright (c) 2015-2023 Amazon.com, Inc. or its affiliates. 39 /* Timeout in micro-sec */ 94 /* Abort - canceled by the driver */ 118 if (unlikely((addr & GENMASK_ULL(ena_dev->dma_addr_bits - 1, 0)) != addr)) { in ena_com_mem_addr_set() 123 ena_addr->mem_addr_low = lower_32_bits(addr); in ena_com_mem_addr_set() 124 ena_addr->mem_addr_high = (u16)upper_32_bits(addr); in ena_com_mem_addr_set() 131 struct ena_com_dev *ena_dev = admin_queue->ena_dev; in ena_com_admin_init_sq() 132 struct ena_com_admin_sq *sq = &admin_queue->sq; in ena_com_admin_init_sq() [all …]
|