/linux/drivers/net/wireless/intel/iwlwifi/fw/api/ |
H A D | power.h | 1 /* SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause */ 3 * Copyright (C) 2012-2014, 2018-2024 Intel Corporation 4 * Copyright (C) 2013-2014 Intel Mobile Communications GmbH 5 * Copyright (C) 2015-2017 Intel Deutschland GmbH 13 * enum iwl_ltr_config_flags - masks for LTR config command flags 39 * struct iwl_ltr_config_cmd_v1 - configures the LTR 53 * struct iwl_ltr_config_cmd - configures the LTR 77 * enum iwl_power_flags - masks for power table command flags 79 * receiver and transmitter. '0' - does not allow. 81 * '1' Driver enables PM (use rest of parameters) [all …]
|
/linux/Documentation/devicetree/bindings/ata/ |
H A D | snps,dwc-ahci-common.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/ata/snps,dwc-ahci-common.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Serge Semin <fancer.lancer@gmail.com> 19 - $ref: ahci-common.yaml# 31 PM-alive clock, RxOOB detection clock, embedded PHYs reference (Rx/Tx) 36 clock-names: 41 - description: Application APB/AHB/AXI BIU clock 43 - pclk [all …]
|
/linux/drivers/gpu/drm/xe/ |
H A D | xe_pci_sriov.c | 1 // SPDX-License-Identifier: MIT 3 * Copyright © 2023-2024 Intel Corporation 67 struct pci_dev *pdev = to_pci_dev(xe->drm.dev); in pf_enable_vfs() 77 * We must hold additional reference to the runtime PM to keep PF in D0 in pf_enable_vfs() 78 * during VFs lifetime, as our VFs do not implement the PM capability. in pf_enable_vfs() 81 * This will also keep GuC alive with all VFs' configurations. in pf_enable_vfs() 83 * We will release this additional PM reference in pf_disable_vfs(). in pf_enable_vfs() 110 struct device *dev = xe->drm.dev; in pf_disable_vfs() 126 /* not needed anymore - see pf_enable_vfs() */ in pf_disable_vfs() 134 * xe_pci_sriov_configure - Configure SR-IOV (enable/disable VFs). [all …]
|
H A D | xe_pm.c | 1 // SPDX-License-Identifier: MIT 29 * Xe PM implements the main routines for both system level suspend states and 32 * System Level Suspend (S-States) - In general this is OS initiated suspend 37 * PCI Device Suspend (D-States) - This is the opportunistic PCIe device low power 41 * alive and quicker low latency resume or D3Cold where Vcc power is off for 46 * the transition towards D3Cold. The lowest runtime PM possible from the PCI 54 * Runtime PM - This infrastructure provided by the Linux kernel allows the 57 * (PC-states), and/or other low level power states. Xe PM component provides 61 * Also, Xe PM provides get and put functions that Xe driver will use to 66 * sysfs, debugfs, dma-buf sharing, GPU execution. [all …]
|
/linux/drivers/net/wireless/intel/iwlwifi/mvm/ |
H A D | power.c | 1 // SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause 3 * Copyright (C) 2012-2014, 2018-2019, 2021-2024 Intel Corporation 4 * Copyright (C) 2013-2014 Intel Mobile Communications GmbH 5 * Copyright (C) 2015-2017 Intel Deutschland GmbH 14 #include "iwl-debug.h" 16 #include "iwl-modparams.h" 28 le32_to_cpu(cmd->ba_enable_beacon_abort)); in iwl_mvm_beacon_filter_send_cmd() 30 le32_to_cpu(cmd->ba_escape_timer)); in iwl_mvm_beacon_filter_send_cmd() 32 le32_to_cpu(cmd->bf_debug_flag)); in iwl_mvm_beacon_filter_send_cmd() 34 le32_to_cpu(cmd->bf_enable_beacon_filter)); in iwl_mvm_beacon_filter_send_cmd() [all …]
|
/linux/arch/parisc/kernel/ |
H A D | smp.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 6 ** Copyright (C) 1999 David Mosberger-Tang <davidm@hpl.hp.com> 7 ** Copyright (C) 2001,2004 Grant Grundler <grundler@parisc-linux.org> 13 ** -grant (1/12/2001) 110 /* REVISIT : does PM *know* this CPU isn't available? */ in halt_processor() 130 ops = p->pending_ipi; in ipi_interrupt() 131 p->pending_ipi = 0; in ipi_interrupt() 171 smp_debug(100, KERN_DEBUG "CPU%d is alive!\n", this_cpu); in ipi_interrupt() 204 p->pending_ipi |= 1 << op; in ipi_send() 205 gsc_writel(IPI_IRQ - CPU_IRQ_BASE, p->hpa); in ipi_send() [all …]
|
/linux/drivers/ata/ |
H A D | ahci_dm816.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 11 #include <linux/pm.h> 18 #define AHCI_DM816_DRV_NAME "ahci-dm816" 55 * We should have divided evenly - if not, return an invalid in ahci_dm816_get_mpy_bits() 58 return -1; in ahci_dm816_get_mpy_bits() 69 * keep-alive clock and the external reference clock. We need the in ahci_dm816_phy_init() 72 if (hpriv->n_clks < 2) { in ahci_dm816_phy_init() 74 return -EINVAL; in ahci_dm816_phy_init() 77 refclk_rate = clk_get_rate(hpriv->clks[1].clk); in ahci_dm816_phy_init() 80 return -EINVAL; in ahci_dm816_phy_init() [all …]
|
/linux/drivers/bluetooth/ |
H A D | hci_nokia.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 6 * Copyright (C) 2015-2017 Sebastian Reichel <sre@kernel.org> 160 struct device *dev = &btdev->serdev->dev; in wakeup_handler() 161 int wake_state = gpiod_get_value(btdev->wakeup_host); in wakeup_handler() 163 if (btdev->rx_enabled == wake_state) in wakeup_handler() 171 btdev->rx_enabled = wake_state; in wakeup_handler() 178 struct nokia_bt_dev *btdev = hu->priv; in nokia_reset() 179 struct device *dev = &btdev->serdev->dev; in nokia_reset() 183 gpiod_set_value_cansleep(btdev->reset, 1); in nokia_reset() 184 gpiod_set_value_cansleep(btdev->wakeup_bt, 1); in nokia_reset() [all …]
|
/linux/drivers/greybus/ |
H A D | svc_watchdog.c | 1 // SPDX-License-Identifier: GPL-2.0 32 gb_svc_watchdog_disable(watchdog->svc); in svc_watchdog_pm_notifier() 35 gb_svc_watchdog_enable(watchdog->svc); in svc_watchdog_pm_notifier() 70 svc = watchdog->svc; in do_work() 72 dev_dbg(&svc->dev, "%s: ping.\n", __func__); in do_work() 80 * yet-another-callback to do that. in do_work() 82 dev_err(&svc->dev, in do_work() 86 if (svc->action == GB_SVC_WATCHDOG_BITE_PANIC_KERNEL) { in do_work() 88 } else if (svc->action == GB_SVC_WATCHDOG_BITE_RESET_UNIPRO) { in do_work() 89 dev_err(&svc->dev, "Resetting the greybus network, watch out!!!\n"); in do_work() [all …]
|
/linux/drivers/gpu/drm/amd/amdgpu/ |
H A D | amdgpu_ctx.c | 72 pr_warn_once("AMD-->DRM context priority value UNSET-->NORMAL"); in amdgpu_ctx_to_drm_sched_prio() 113 return -EACCES; in amdgpu_ctx_priority_permit() 141 struct amdgpu_device *adev = ctx->mgr->adev; in amdgpu_ctx_get_hw_prio() 145 ctx_prio = (ctx->override_priority == AMDGPU_CTX_PRIORITY_UNSET) ? in amdgpu_ctx_get_hw_prio() 146 ctx->init_priority : ctx->override_priority; in amdgpu_ctx_get_hw_prio() 163 if (adev->gpu_sched[hw_ip][hw_prio].num_scheds == 0) in amdgpu_ctx_get_hw_prio() 179 if (!test_bit(DMA_FENCE_FLAG_TIMESTAMP_BIT, &s_fence->scheduled.flags)) in amdgpu_ctx_fence_time() 183 if (!test_bit(DMA_FENCE_FLAG_TIMESTAMP_BIT, &s_fence->finished.flags)) in amdgpu_ctx_fence_time() 184 return ktime_sub(ktime_get(), s_fence->scheduled.timestamp); in amdgpu_ctx_fence_time() 186 return ktime_sub(s_fence->finished.timestamp, in amdgpu_ctx_fence_time() [all …]
|
/linux/drivers/net/wireless/intel/iwlegacy/ |
H A D | 3945-mac.c | 1 // SPDX-License-Identifier: GPL-2.0-only 4 * Copyright(c) 2003 - 2011 Intel Corporation. All rights reserved. 11 * Intel Corporation, 5200 N.E. Elam Young Parkway, Hillsboro, OR 97124-6497 22 #include <linux/dma-mapping.h> 41 #include "iwl-spectrum.h" 62 #define DRV_COPYRIGHT "Copyright(c) 2003-2011 Intel Corporation" 79 * il3945_get_antenna_flags - Get antenna flags for RXON command 82 * il->eeprom39 is used to determine if antenna AUX/MAIN are reversed 85 * IL_ANTENNA_DIVERSITY - NIC selects best antenna by itself 86 * IL_ANTENNA_MAIN - Force MAIN antenna [all …]
|
H A D | 4965.c | 1 // SPDX-License-Identifier: GPL-2.0-only 4 * Copyright(c) 2003 - 2011 Intel Corporation. All rights reserved. 8 * Intel Corporation, 5200 N.E. Elam Young Parkway, Hillsboro, OR 97124-6497 15 #include <linux/dma-mapping.h> 29 * il_verify_inst_sparse - verify runtime uCode image in card vs. host, 44 /* read data comes through single port, auto-incr addr */ in il4965_verify_inst_sparse() 50 ret = -EIO; in il4965_verify_inst_sparse() 61 * il4965_verify_inst_full - verify runtime uCode image in card vs. host, 77 for (; len > 0; len -= sizeof(u32), image++) { in il4965_verify_inst_full() 78 /* read data comes through single port, auto-incr addr */ in il4965_verify_inst_full() [all …]
|
H A D | 4965-mac.c | 1 // SPDX-License-Identifier: GPL-2.0-only 4 * Copyright(c) 2003 - 2011 Intel Corporation. All rights reserved. 11 * Intel Corporation, 5200 N.E. Elam Young Parkway, Hillsboro, OR 97124-6497 22 #include <linux/dma-mapping.h> 71 if (!test_bit(S_EXIT_PENDING, &il->status)) in il4965_check_abort_status() 72 queue_work(il->workqueue, &il->tx_flush); in il4965_check_abort_status() 89 spin_lock_irqsave(&rxq->lock, flags); in il4965_rx_queue_reset() 90 INIT_LIST_HEAD(&rxq->rx_free); in il4965_rx_queue_reset() 91 INIT_LIST_HEAD(&rxq->rx_used); in il4965_rx_queue_reset() 96 if (rxq->pool[i].page != NULL) { in il4965_rx_queue_reset() [all …]
|
H A D | commands.h | 8 * Copyright(c) 2005 - 2011 Intel Corporation. All rights reserved. 29 * Intel Corporation, 5200 N.E. Elam Young Parkway, Hillsboro, OR 97124-6497 33 * Copyright(c) 2005 - 2011 Intel Corporation. All rights reserved. 92 /* Multi-Station support */ 138 /* RF-KILL commands and notifications */ 184 * when sending the response to each driver-originated command, so 196 * 0:7 tfd idx - position within TX queue 199 * 14 huge - driver sets this to indicate command is in the 201 * 15 unsolicited RX or uCode-originated notification 212 * 1) DSP gain (or sometimes called DSP attenuation). This is a fine-grained [all …]
|
/linux/drivers/scsi/fcoe/ |
H A D | fcoe_ctlr.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Copyright (c) 2008-2009 Cisco Systems, Inc. All rights reserved. 6 * Maintained at www.Open-FCoE.org 37 #define FCOE_CTLR_MIN_FKA 500 /* min keep alive (mS) */ 38 #define FCOE_CTLR_DEF_FKA FIP_DEF_FKA /* default keep alive (mS) */ 82 * fcoe_ctlr_set_state() - Set and do debug printing for the new FIP state. 88 if (state == fip->state) in fcoe_ctlr_set_state() 90 if (fip->lp) in fcoe_ctlr_set_state() 91 LIBFCOE_FIP_DBG(fip, "state %s -> %s\n", in fcoe_ctlr_set_state() 92 fcoe_ctlr_state(fip->state), fcoe_ctlr_state(state)); in fcoe_ctlr_set_state() [all …]
|
/linux/drivers/mmc/core/ |
H A D | sdio.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 5 * Copyright 2006-2007 Pierre Ossman 31 MMC_DEV_ATTR(vendor, "0x%04x\n", card->cis.vendor); 32 MMC_DEV_ATTR(device, "0x%04x\n", card->cis.device); 33 MMC_DEV_ATTR(revision, "%u.%u\n", card->major_rev, card->minor_rev); 34 MMC_DEV_ATTR(ocr, "0x%08x\n", card->ocr); 35 MMC_DEV_ATTR(rca, "0x%04x\n", card->rca); 42 if (num > card->num_info) \ 43 return -ENODATA; \ 44 if (!card->info[num - 1][0]) \ [all …]
|
/linux/drivers/net/ethernet/ti/ |
H A D | davinci_mdio.c | 1 // SPDX-License-Identifier: GPL-2.0+ 28 #include <linux/mdio-bitbang.h> 32 * This timeout definition is a worst-case ultra defensive measure against 64 u32 alive; member 114 mdio_in = clk_get_rate(data->clk); in davinci_mdio_init_clk() 115 div = (mdio_in / data->pdata.bus_freq) - 1; in davinci_mdio_init_clk() 119 data->clk_div = div; in davinci_mdio_init_clk() 130 * In the worst case, we could be kicking off a user-access immediately in davinci_mdio_init_clk() 131 * after the mdio bus scan state-machine triggered its own read. If in davinci_mdio_init_clk() 135 data->access_time = usecs_to_jiffies(access_time * 4); in davinci_mdio_init_clk() [all …]
|
/linux/drivers/tty/serial/8250/ |
H A D | 8250_platform.c | 1 // SPDX-License-Identifier: GPL-2.0+ 3 * Universal/legacy platform driver for 8250/16550-type serial ports 6 * ISA-compatible 8250/16550 ports 30 * This option is unsafe when used on edge-triggered interrupts. 41 * SERIAL_PORT_DFNS tells us about built-in ports that have no 84 struct uart_port *port = &up->port; in __serial8250_isa_init_ports() 86 port->iobase = old_serial_port[i].port; in __serial8250_isa_init_ports() 87 port->irq = irq_canonicalize(old_serial_port[i].irq); in __serial8250_isa_init_ports() 88 port->irqflags = 0; in __serial8250_isa_init_ports() 89 port->uartclk = old_serial_port[i].baud_base * 16; in __serial8250_isa_init_ports() [all …]
|
/linux/arch/mips/sibyte/common/ |
H A D | cfe.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 11 #include <linux/pm.h> 18 #include <asm/smp-ops.h> 23 /* Max ram addressable in 32-bit segments */ 112 initrd_pstart - addr); in prom_meminit() 118 (addr + size) - initrd_pend); in prom_meminit() 127 size = MAX_RAM_SIZE - (addr+size) + 1; in prom_meminit() 136 size -= 512; in prom_meminit() 143 memblock_add(initrd_pstart, initrd_pend - initrd_pstart); in prom_meminit() 144 memblock_reserve(initrd_pstart, initrd_pend - initrd_pstart); in prom_meminit() [all …]
|
/linux/drivers/net/wireless/ti/wlcore/ |
H A D | acx.c | 1 // SPDX-License-Identifier: GPL-2.0-only 5 * Copyright (C) 2008-2009 Nokia Corporation 33 ret = -ENOMEM; in wl1271_acx_wake_up_conditions() 37 wake_up->role_id = wlvif->role_id; in wl1271_acx_wake_up_conditions() 38 wake_up->wake_up_event = wake_up_event; in wl1271_acx_wake_up_conditions() 39 wake_up->listen_interval = listen_interval; in wl1271_acx_wake_up_conditions() 62 ret = -ENOMEM; in wl1271_acx_sleep_auth() 66 auth->sleep_auth = sleep_auth; in wl1271_acx_sleep_auth() 75 wl->sleep_auth = sleep_auth; in wl1271_acx_sleep_auth() 91 return -EINVAL; in wl1271_acx_tx_power() [all …]
|
/linux/drivers/net/wan/ |
H A D | wanxl.c | 1 // SPDX-License-Identifier: GPL-2.0-only 6 * Copyright (C) 2003 Krzysztof Halasa <khc@pm.waw.pl> 9 * - Only DTE (external clock) support with NRZ and NRZI encodings 10 * - wanXL100 will require minor driver modifications, no access to hw 29 #include <linux/dma-mapping.h> 42 /* MAILBOX #1 - PUTS COMMANDS */ 45 #define MBX1_CMD_BSWAP 0x8C000001 /* little-endian Byte Swap Mode */ 47 #define MBX1_CMD_BSWAP 0x8C000000 /* big-endian Byte Swap Mode */ 50 /* MAILBOX #2 - DRAM SIZE */ 57 int node; /* physical port #0 - 3 */ [all …]
|
/linux/sound/pci/hda/ |
H A D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.0-only 2 menu "HD-Audio" 23 This option enables the HD-audio controller. Don't forget 27 will be called snd-hda-intel. 43 will be called snd-hda-tegra. 48 bool "Build hwdep interface for HD-audio driver" 51 Say Y here to build a hwdep interface for HD-audio driver. 52 This interface can be used for out-of-band communication 58 Say Y here to enable the HD-audio codec re-configuration feature. 60 codec setup, add extra verbs, and re-configure the codec dynamically. [all …]
|
/linux/drivers/media/usb/dvb-usb/ |
H A D | dvb-usb-dvb.c | 1 // SPDX-License-Identifier: GPL-2.0 2 /* dvb-usb-dvb.c is part of the DVB USB library. 4 * Copyright (C) 2004-6 Patrick Boettcher (patrick.boettcher@posteo.de) 5 * see dvb-usb-init.c for copyright information. 8 * linux-dvb API. 10 #include "dvb-usb-common.h" 11 #include <media/media-device.h> 16 struct dvb_usb_adapter *adap = dvbdmxfeed->demux->priv; in dvb_usb_ctrl_feed() 20 return -ENODEV; in dvb_usb_ctrl_feed() 22 if ((adap->active_fe < 0) || in dvb_usb_ctrl_feed() [all …]
|
/linux/drivers/net/wireless/ath/wil6210/ |
H A D | cfg80211.c | 1 // SPDX-License-Identifier: ISC 3 * Copyright (c) 2012-2017 Qualcomm Atheros, Inc. 4 * Copyright (c) 2018-2019, The Linux Foundation. All rights reserved. 109 if (!test_bit(WMI_FW_CAPABILITY_CHANNEL_4, wil->fw_capabilities)) in wil_num_supported_channels() 110 num_channels--; in wil_num_supported_channels() 121 wiphy->bands[NL80211_BAND_60GHZ]->n_channels = in update_supported_bands() 124 if (test_bit(WMI_FW_CAPABILITY_CHANNEL_BONDING, wil->fw_capabilities)) { in update_supported_bands() 125 wiphy->bands[NL80211_BAND_60GHZ]->edmg_cap.channels = in update_supported_bands() 127 wiphy->bands[NL80211_BAND_60GHZ]->edmg_cap.bw_config = in update_supported_bands() 136 * qca_wlan_vendor_attr is open source file src/common/qca-vendor.h in [all …]
|
/linux/drivers/net/wireless/st/cw1200/ |
H A D | debug.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * mac80211 glue code for mac80211 ST-Ericsson CW1200 drivers 6 * Copyright (c) 2010, ST-Ericsson 73 seq_printf(seq, "Queue %d:\n", q->queue_id); in cw1200_queue_status_show() 74 seq_printf(seq, " capacity: %zu\n", q->capacity); in cw1200_queue_status_show() 75 seq_printf(seq, " queued: %zu\n", q->num_queued); in cw1200_queue_status_show() 76 seq_printf(seq, " pending: %zu\n", q->num_pending); in cw1200_queue_status_show() 77 seq_printf(seq, " sent: %zu\n", q->num_sent); in cw1200_queue_status_show() 78 seq_printf(seq, " locked: %s\n", q->tx_locked_cnt ? "yes" : "no"); in cw1200_queue_status_show() 79 seq_printf(seq, " overfull: %s\n", q->overfull ? "yes" : "no"); in cw1200_queue_status_show() [all …]
|