| /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/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-2025 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/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/net/wireless/intel/iwlwifi/mld/ |
| H A D | power.c | 1 // SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause 3 * Copyright (C) 2024-2025 Intel Corporation 20 if (vif->type != NL80211_IFTYPE_STATION) in iwl_mld_vif_ps_iterator() 23 *ps_enable &= !mld_vif->ps_disabled; in iwl_mld_vif_ps_iterator() 37 ieee80211_iterate_active_interfaces_mtx(mld->hw, in iwl_mld_update_device_power() 68 if (ieee80211_vif_type_p2p(link_conf->vif) != NL80211_IFTYPE_STATION) in iwl_mld_enable_beacon_filter() 72 if (iwl_mld_vif_from_mac80211(link_conf->vif)->disable_bf) in iwl_mld_enable_beacon_filter() 76 if (link_conf->cqm_rssi_thold) { in iwl_mld_enable_beacon_filter() 78 cpu_to_le32(link_conf->cqm_rssi_hyst); in iwl_mld_enable_beacon_filter() 81 cpu_to_le32(-link_conf->cqm_rssi_thold); in iwl_mld_enable_beacon_filter() [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/gpu/drm/xe/ |
| H A D | xe_pci_sriov.c | 1 // SPDX-License-Identifier: MIT 3 * Copyright © 2023-2024 Intel Corporation 74 struct pci_dev *pdev = to_pci_dev(xe->drm.dev); in xe_pci_pf_get_vf_dev() 79 return pci_get_domain_bus_and_slot(pci_domain_nr(pdev->bus), in xe_pci_pf_get_vf_dev() 80 pdev->bus->number, in xe_pci_pf_get_vf_dev() 86 struct pci_dev *pdev_pf = to_pci_dev(xe->drm.dev); in pf_link_vfs() 98 * Create a parent-child device link between PF and VF devices that will in pf_link_vfs() 102 pdev_vf = xe_pci_pf_get_vf_dev(xe, n - 1); in pf_link_vfs() 111 link = device_link_add(&pdev_vf->dev, &pdev_pf->dev, in pf_link_vfs() 128 ret = xe_guc_engine_activity_function_stats(>->uc.guc, num_vfs, enable); in pf_engine_activity_stats() [all …]
|
| H A D | xe_pm.c | 1 // SPDX-License-Identifier: MIT 8 #include <linux/fault-inject.h> 35 * Xe PM implements the main routines for both system level suspend states and 38 * System Level Suspend (S-States) - In general this is OS initiated suspend 43 * PCI Device Suspend (D-States) - This is the opportunistic PCIe device low power 47 * alive and quicker low latency resume or D3Cold where Vcc power is off for 52 * the transition towards D3Cold. The lowest runtime PM possible from the PCI 60 * Runtime PM - This infrastructure provided by the Linux kernel allows the 63 * (PC-states), and/or other low level power states. Xe PM component provides 67 * Also, Xe PM provides get and put functions that Xe driver will use to [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 …]
|
| H A D | btintel_pcie.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 43 /* Scorpious, Panther Lake-H484 */ 45 /* Scorpious, Panther Lake-H404 */ 82 /* Alive interrupt context */ 106 * @ver: For Driver-FW compatibility 159 data->dbgc.count = BTINTEL_PCIE_DBGC_BUFFER_COUNT; in btintel_pcie_setup_dbgc() 160 data->dbgc.bufs = devm_kcalloc(&data->pdev->dev, data->dbgc.count, in btintel_pcie_setup_dbgc() 162 if (!data->dbgc.bufs) in btintel_pcie_setup_dbgc() 163 return -ENOMEM; in btintel_pcie_setup_dbgc() 165 data->dbgc.buf_v_addr = dmam_alloc_coherent(&data->pdev->dev, in btintel_pcie_setup_dbgc() [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/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/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 …]
|
| H A D | init.c | 1 // SPDX-License-Identifier: GPL-2.0-only 30 wl->scan_templ_id_2_4, NULL, in wl1271_init_templates_config() 37 wl->scan_templ_id_5, in wl1271_init_templates_config() 43 if (wl->quirks & WLCORE_QUIRK_DUAL_PROBE_TMPL) { in wl1271_init_templates_config() 45 wl->sched_scan_templ_id_2_4, in wl1271_init_templates_config() 53 wl->sched_scan_templ_id_5, in wl1271_init_templates_config() 153 ret = -ENOMEM; in wl1271_ap_init_deauth_template() 157 tmpl->header.frame_ctl = cpu_to_le16(IEEE80211_FTYPE_MGMT | in wl1271_ap_init_deauth_template() 160 rate = wl1271_tx_min_rate_get(wl, wlvif->basic_rate_set); in wl1271_ap_init_deauth_template() 161 ret = wl1271_cmd_template_set(wl, wlvif->role_id, in wl1271_ap_init_deauth_template() [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 …]
|
| H A D | hdlc_ppp.c | 1 // SPDX-License-Identifier: GPL-2.0-only 4 * Point-to-point protocol support 6 * Copyright (C) 1999 - 2008 Krzysztof Halasa <khc@pm.waw.pl> 68 u8 cr_id; /* ID of last Configuration-Request */ 79 u8 echo_id; /* ID of last Echo-Request (LCP) */ 96 "Start", "Stop", "TO+", "TO-", "RCR+", "RCR-", "RCA", "RCN", 97 "RTR", "RTA", "RUC", "RXJ+", "RXJ-" 107 return (struct ppp *)dev_to_hdlc(dev)->state; in get_ppp() 116 return &ppp->protos[IDX_LCP]; in get_proto() 118 return &ppp->protos[IDX_IPCP]; in get_proto() [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/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/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 …]
|
| /linux/sound/hda/codecs/hdmi/ |
| H A D | intelhdmi.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 40 struct hdmi_spec *spec = codec->spec; in intel_haswell_enable_all_pins() 42 vendor_param = snd_hda_codec_read(codec, spec->vendor_nid, 0, in intel_haswell_enable_all_pins() 44 if (vendor_param == -1 || vendor_param & INTEL_EN_ALL_PIN_CVTS) in intel_haswell_enable_all_pins() 48 vendor_param = snd_hda_codec_read(codec, spec->vendor_nid, 0, in intel_haswell_enable_all_pins() 50 if (vendor_param == -1) in intel_haswell_enable_all_pins() 60 struct hdmi_spec *spec = codec->spec; in intel_haswell_fixup_enable_dp12() 62 vendor_param = snd_hda_codec_read(codec, spec->vendor_nid, 0, in intel_haswell_fixup_enable_dp12() 64 if (vendor_param == -1 || vendor_param & INTEL_EN_DP12) in intel_haswell_fixup_enable_dp12() 69 snd_hdac_regmap_add_vendor_verb(&codec->core, INTEL_SET_VENDOR_VERB); in intel_haswell_fixup_enable_dp12() [all …]
|
| /linux/net/mac80211/ |
| H A D | mesh_pathtbl.c | 1 // SPDX-License-Identifier: GPL-2.0-only 57 cache = &sdata->u.mesh.tx_cache; in mesh_fast_tx_deinit() 58 rhashtable_free_and_destroy(&cache->rht, in mesh_fast_tx_deinit() 66 cache = &sdata->u.mesh.tx_cache; in mesh_fast_tx_init() 67 rhashtable_init(&cache->rht, &fast_tx_rht_params); in mesh_fast_tx_init() 68 INIT_HLIST_HEAD(&cache->walk_head); in mesh_fast_tx_init() 69 spin_lock_init(&cache->walk_loc in mesh_fast_tx_init() [all...] |