/freebsd-src/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 | nuvoton,npcm-peci.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/peci/nuvoton,npcm-peci.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Tomer Maimon <tmaimon77@gmail.com> 13 - $ref: peci-controller.yaml# 18 - nuvoton,npcm750-peci 19 - nuvoton,npcm845-peci 32 cmd-timeout-ms: 38 - compatible [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-src/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-src/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-src/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-src/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, shor 217 imcsmb_readb(device_t dev,u_char slave,char cmd,char * byte) imcsmb_readb() argument 241 imcsmb_readw(device_t dev,u_char slave,char cmd,short * word) imcsmb_readw() argument 265 imcsmb_writeb(device_t dev,u_char slave,char cmd,char byte) imcsmb_writeb() argument 289 imcsmb_writew(device_t dev,u_char slave,char cmd,short word) imcsmb_writew() argument 321 imcsmb_transfer(device_t dev,u_char slave,char cmd,void * data,int word_op,int write_op) imcsmb_transfer() argument [all...] |
/freebsd-src/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-src/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-src/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-src/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-src/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)->bu 415 int timeout; sdhci_set_clock() local 1245 int timeout; global() local 1744 sdhci_start_command(struct sdhci_slot * slot,struct mmc_command * cmd) global() argument 1746 int flags, timeout; global() local [all...] |
/freebsd-src/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_dat in aw_wdog_probe() 209 aw_wdog_watchdog_fn(void * private,u_int cmd,int * error) aw_wdog_watchdog_fn() argument 212 uint64_t ms; aw_wdog_watchdog_fn() local [all...] |
/freebsd-src/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() 169 struct r92c_fw_cmd_macid_cfg cmd; r92c_send_ra_cmd() local 260 struct r92c_fw_cmd_joinbss_rpt cmd; r92c_joinbss_rpt() local 336 struct r92c_fw_cmd_rssi cmd; r92c_set_rssi() local [all...] |
/freebsd-src/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-src/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-src/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->de in nvme_ctrlr_devctl_log() 263 int timeout = ticks + MSEC_2_TICKS(ctrlr->ready_timeout_in_ms); nvme_ctrlr_wait_for_ready() local 1418 nvme_ctrlr_ioctl(struct cdev * cdev,u_long cmd,caddr_t arg,int flag,struct thread * td) nvme_ctrlr_ioctl() argument 1690 int timeout; nvme_ctrlr_shutdown() local [all...] |
/freebsd-src/sys/dev/usb/wlan/ |
H A D | if_rsu.c | 3 /*- 23 * o tx a-mpdu 25 * o power-save operation 79 device_printf((_sc)->sc_dev, __VA_ARGS__); \ 290 /* XXX hard-coded */ 316 .timeout = RSU_TX_TIMEOUT 329 .timeout = RSU_TX_TIMEOUT 342 .timeout = RSU_TX_TIMEOUT 351 if (uaa->usb_mode != USB_MODE_HOST || in rsu_match() 352 uaa->inf in rsu_match() 793 struct r92s_set_channel cmd; rsu_set_channel() local 1234 struct r92s_fw_cmd_hdr *cmd; rsu_fw_cmd() local 1353 struct r92s_set_pwr_mode cmd; rsu_set_fw_power_state() local 1885 struct r92s_fw_cmd_sitesurvey cmd; rsu_site_survey() local 2246 struct r92s_fw_cmd_hdr *cmd; rsu_rx_multi_event() local 2999 rsu_ioctl_net(struct ieee80211com * ic,u_long cmd,void * data) rsu_ioctl_net() argument 3757 rsu_ms_delay(struct rsu_softc * sc,int ms) rsu_ms_delay() argument [all...] |
/freebsd-src/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-src/sys/dev/usb/storage/ |
H A D | umass.c | 2 /*- 3 * SPDX-License-Identifier: BSD-2-Clause 44 * http://www.usb.org/developers/devclass_docs/usbmass-ufi10.pdf 54 * - Command/Bulk/Interrupt (CBI) 55 * - Command/Bulk/Interrupt with Command Completion Interrupt (CBI with CCI) 56 * - Mass Storage Bulk-Onl 2166 uint8_t *cmd; umass_cam_action() local 2537 uint8_t *cmd; umass_cam_sense_cb() local 2910 umass_no_transform(struct umass_softc * sc,uint8_t * cmd,uint8_t cmdlen) umass_no_transform() argument 2918 umass_std_transform(struct umass_softc * sc,union ccb * ccb,uint8_t * cmd,uint8_t cmdlen) umass_std_transform() argument 2978 umass_cbi_dump_cmd(struct umass_softc * sc,void * cmd,uint8_t cmdlen) umass_cbi_dump_cmd() argument [all...] |
/freebsd-src/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-src/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", 790 mmc_exec_app_cmd(struct cam_periph * periph,union ccb * ccb,struct mmc_command * cmd) mmc_exec_app_cmd() argument 846 struct mmc_command cmd; mmc_app_get_scr() local 915 mmc_switch_fill_mmcio(union ccb * ccb,uint8_t set,uint8_t index,uint8_t value,u_int timeout) mmc_switch_fill_mmcio() argument 956 mmc_switch(struct cam_periph * periph,union ccb * ccb,uint8_t set,uint8_t index,uint8_t value,u_int timeout) mmc_switch() argument 1116 struct mmc_command cmd; sdda_set_bus_width() local [all...] |
/freebsd-src/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->cc in ahci_ctlr_setup() 143 int timeout; ahci_ctlr_reset() local 1733 int count, timeout = ccb->ccb_h.timeout * 100; ahci_execute_transaction() local 2306 u_int32_t cmd; ahci_start() local 2332 u_int32_t cmd; ahci_stop() local 2333 int timeout; ahci_stop() local 2353 u_int32_t cmd; ahci_clo() local 2354 int timeout; ahci_clo() local 2375 u_int32_t cmd; ahci_stop_fr() local 2376 int timeout; ahci_stop_fr() local 2395 u_int32_t cmd; ahci_start_fr() local 2405 int timeout = 0; ahci_wait_ready() local 2604 int timeout, timeoutslot, found = 0; ahci_sata_connect() local [all...] |
/freebsd-src/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-src/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_bit in ena_com_mem_addr_set() 251 __ena_com_submit_admin_cmd(struct ena_com_admin_queue * admin_queue,struct ena_admin_aq_entry * cmd,size_t cmd_size_in_bytes,struct ena_admin_acq_entry * comp,size_t comp_size_in_bytes) __ena_com_submit_admin_cmd() argument 333 ena_com_submit_admin_cmd(struct ena_com_admin_queue * admin_queue,struct ena_admin_aq_entry * cmd,size_t cmd_size_in_bytes,struct ena_admin_acq_entry * comp,size_t comp_size_in_bytes) ena_com_submit_admin_cmd() argument 593 ena_time_t timeout; ena_com_wait_and_process_admin_cq_polling() local 652 struct ena_admin_set_feat_cmd cmd; ena_com_set_llq() local 872 u32 timeout = mmio_read->reg_read_to; ena_com_reg_bar_read32() local 1015 wait_for_reset_state(struct ena_com_dev * ena_dev,u32 timeout,u16 exp_state) wait_for_reset_state() argument 1404 ena_com_execute_admin_command(struct ena_com_admin_queue * admin_queue,struct ena_admin_aq_entry * cmd,size_t cmd_size,struct ena_admin_acq_entry * comp,size_t comp_size) ena_com_execute_admin_command() argument 1599 struct ena_admin_set_feat_cmd cmd; ena_com_set_aenq_config() local 2471 u32 stat, timeout, cap, reset_val; ena_com_dev_reset() local 2675 struct ena_admin_set_feat_cmd cmd; ena_com_set_dev_mtu() local 2726 struct ena_admin_set_feat_cmd cmd; ena_com_set_hash_function() local 2898 struct ena_admin_set_feat_cmd cmd; ena_com_set_hash_ctrl() local 3057 struct ena_admin_set_feat_cmd cmd; ena_com_indirect_table_set() local 3277 struct ena_admin_set_feat_cmd cmd; ena_com_set_host_attributes() local [all...] |