/linux/net/mac80211/ |
H A D | debugfs_sta.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Copyright 2003-2005 Devicescape Software, Inc. 6 * Copyright 2013-2014 Intel Mobile Communications GmbH 8 * Copyright (C) 2018 - 2023 Intel Corporation 17 #include "driver-ops.h" 21 #define STA_READ(name, field, format_string) \ argument 22 static ssize_t sta_ ##name## _rea 30 STA_READ_D(name,field) global() argument 32 STA_OPS(name) global() argument 38 STA_OPS_RW(name) global() argument 45 STA_FILE(name,field,format) global() argument 450 LINK_STA_OPS(name) global() argument 684 u8 *cap; link_sta_he_capa_read() local 1057 u8 *cap; link_sta_eht_capa_read() local 1232 DEBUGFS_ADD(name) global() argument 1236 DEBUGFS_ADD_COUNTER(name,field) global() argument 1292 DEBUGFS_ADD(name) global() argument 1295 DEBUGFS_ADD_COUNTER(name,field) global() argument [all...] |
/linux/drivers/usb/typec/ |
H A D | pd.c | 1 // SPDX-License-Identifier: GPL-2.0 17 .name = "usb_power_delivery", 33 /* -------------------------------------------------------------------------- */ 39 return sysfs_emit(buf, "%u\n", !!(to_pdo(dev)->pdo & PDO_FIXED_DUAL_ROLE)); in dual_role_power_show() 46 return sysfs_emit(buf, "%u\n", !!(to_pdo(dev)->pdo & PDO_FIXED_SUSPEND)); in usb_suspend_supported_show() 53 return sysfs_emit(buf, "%u\n", !!(to_pdo(dev)->pdo & PDO_FIXED_HIGHER_CAP)); in higher_capability_show() 60 return sysfs_emit(buf, "%u\n", !!(to_pdo(dev)->pdo & PDO_FIXED_EXTPOWER)); in unconstrained_power_show() 67 return sysfs_emit(buf, "%u\n", !!(to_pdo(dev)->pdo & PDO_FIXED_USB_COMM)); in usb_communication_capable_show() 74 return sysfs_emit(buf, "%u\n", !!(to_pdo(dev)->pdo & PDO_FIXED_DATA_SWAP)); in dual_role_data_show() 82 return sysfs_emit(buf, "%u\n", !!(to_pdo(dev)->pdo & PDO_FIXED_UNCHUNK_EXT)); in unchunked_extended_messages_supported_show() [all …]
|
H A D | class.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * USB Type-C Connector Class 26 .name = "typec", 29 /* ------------------------------------------------------------------------- */ 66 return partner->identity; in get_pd_identity() 70 return cable->identity; in get_pd_identity() 77 struct typec_port *port = to_typec_port(dev->parent); in get_pd_product_type() 85 if (port->data_role == TYPEC_HOST) in get_pd_product_type() 86 ptype = product_type_ufp[PD_IDH_PTYPE(id->id_header)]; in get_pd_product_type() 88 ptype = product_type_dfp[PD_IDH_DFP_PTYPE(id->id_header)]; in get_pd_product_type() [all …]
|
/linux/Documentation/userspace-api/media/cec/ |
H A D | cec-ioc-adap-g-caps.rst | 1 .. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later 10 Name chapter 13 CEC_ADAP_G_CAPS - Query device capabilities 42 .. flat-table:: struct cec_caps 43 :header-rows: 0 44 :stub-columns: 0 47 * - char 48 - ``driver[32]`` 49 - The name of the cec adapter driver. 50 * - char [all …]
|
/linux/drivers/char/tpm/ |
H A D | tpm-sysfs.c | 1 // SPDX-License-Identifier: GPL-2.0-only 65 out->algorithm, in pubek_show() 66 out->encscheme, in pubek_show() 67 out->sigscheme, in pubek_show() 68 out->parameters, in pubek_show() 69 be32_to_cpu(out->keysize)); in pubek_show() 72 str += sprintf(str, "%16ph\n", &out->modulus[i]); in pubek_show() 78 return str - buf; in pubek_show() 85 cap_t cap; in pcrs_show() local 94 if (tpm1_getcap(chip, TPM_CAP_PROP_PCR, &cap, in pcrs_show() [all …]
|
/linux/Documentation/netlink/specs/ |
H A D | net_shaper.yaml | 1 # SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause) 2 --- 3 name: net-shaper 33 @cap-get operation. 36 - 38 name: scope 40 render-max: true 42 - name: unspec 44 - 45 name: netdev [all …]
|
H A D | nlctrl.yaml | 1 # SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause) 2 --- 3 name: nlctrl 4 protocol: genetlink-legacy 5 uapi-header: linux/genetlink.h 8 genetlink meta-family that exposes information about all genetlink 12 - 13 name: op-flags 15 enum-name: 17 - admin-perm [all …]
|
/linux/drivers/media/platform/samsung/exynos4-is/ |
H A D | common.c | 1 // SPDX-License-Identifier: GPL-2.0-only 10 #include <media/drv-intf/exynos-fimc.h> 19 struct media_pad *pad = &entity->pads[0]; in fimc_find_remote_sensor() 22 while (pad->flags & MEDIA_PAD_FL_SINK) { in fimc_find_remote_sensor() 25 if (!pad || !is_media_entity_v4l2_subdev(pad->entity)) in fimc_find_remote_sensor() 28 sd = media_entity_to_v4l2_subdev(pad->entity); in fimc_find_remote_sensor() 30 if (sd->grp_id == GRP_ID_FIMC_IS_SENSOR || in fimc_find_remote_sensor() 31 sd->grp_id == GRP_ID_SENSOR) in fimc_find_remote_sensor() 34 pad = &sd->entity.pads[0]; in fimc_find_remote_sensor() 40 void __fimc_vidioc_querycap(struct device *dev, struct v4l2_capability *cap) in __fimc_vidioc_querycap() argument [all …]
|
/linux/drivers/platform/x86/ |
H A D | dasharo-acpi.c | 1 // SPDX-License-Identifier: GPL-2.0+ 62 char name[16]; member 73 …ic int dasharo_get_feature_cap_count(struct dasharo_data *data, enum dasharo_feature feat, int cap) in dasharo_get_feature_cap_count() argument 84 obj[1].integer.value = cap; in dasharo_get_feature_cap_count() 88 handle = ACPI_HANDLE(&data->pdev->dev); in dasharo_get_feature_cap_count() 91 return -ENODEV; in dasharo_get_feature_cap_count() 104 if (feat >= ARRAY_SIZE(data->capabilities)) in dasharo_read_channel() 105 return -EINVAL; in dasharo_read_channel() 107 if (channel >= data->caps_found[feat]) in dasharo_read_channel() 108 return -EINVAL; in dasharo_read_channel() [all …]
|
/linux/drivers/pci/ |
H A D | pci.c | 1 // SPDX-License-Identifier: GPL-2.0 5 * Copyright 1993 -- 1997 Drew Eckhardt, Frederic Potter, 6 * David Mosberger-Tang 8 * Copyright 1997 -- 2000 Martin Mares <mj@ucw.cz> 82 unsigned int delay_ms = max(dev->d3hot_delay, pci_pm_d3hot_delay); in pci_dev_d3_sleep() 95 return dev->reset_methods[0] != 0; in pci_reset_supported() 114 * pci=hpmmiosize=nnM overrides non-prefetchable MMIO size, 125 /* PCIe MPS/MRRS strategy; can be overridden by kernel command-line param */ 142 * measured in 32-bit words, not bytes. 184 * pci_bus_max_busnr - returns maximum PCI bus number of given bus' children [all …]
|
H A D | vc.c | 1 // SPDX-License-Identifier: GPL-2.0 20 * pci_vc_save_restore_dwords - Save or restore a series of dwords 41 * pci_vc_load_arb_table - load and wait for VC arbitration table 64 * pci_vc_load_port_arb_table - Load and wait for VC port arbitration table 67 * @res: VC resource number, ie. VCn (0-7) 92 * pci_vc_enable - Enable virtual channel 95 * @res: VC res number, ie. VCn (0-7) 124 pci_is_root_bus(dev->bus)) in pci_vc_enable() 127 pos2 = pci_find_ext_capability(dev->bus->self, PCI_EXT_CAP_ID_VC); in pci_vc_enable() 131 pci_read_config_dword(dev->bus->self, pos2 + PCI_VC_PORT_CAP1, &cap1); in pci_vc_enable() [all …]
|
/linux/security/ |
H A D | commoncap.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 34 * If a non-root user executes a setuid-root binary in 37 * the file capabilities to be applied, and the setuid-root 48 printk(KERN_INFO "warning: `%s' has both setuid-root and" in warn_setuid_and_fcaps_mixed() 56 * cap_capable_helper - Determin 68 cap_capable_helper(const struct cred * cred,struct user_namespace * target_ns,const struct user_namespace * cred_ns,int cap) cap_capable_helper() argument 123 cap_capable(const struct cred * cred,struct user_namespace * target_ns,int cap,unsigned int opts) cap_capable() argument 384 is_v2header(int size,const struct vfs_cap_data * cap) is_v2header() argument 391 is_v3header(int size,const struct vfs_cap_data * cap) is_v3header() argument 410 cap_inode_getsecurity(struct mnt_idmap * idmap,struct inode * inode,const char * name,void ** buffer,bool alloc) cap_inode_getsecurity() argument 419 struct vfs_cap_data *cap; cap_inode_getsecurity() local 534 validheader(size_t size,const struct vfs_cap_data * cap) validheader() argument 563 const struct vfs_cap_data *cap = *ivalue; cap_convert_nscap() local 1018 cap_inode_setxattr(struct dentry * dentry,const char * name,const void * value,size_t size,int flags) cap_inode_setxattr() argument 1060 cap_inode_removexattr(struct mnt_idmap * idmap,struct dentry * dentry,const char * name) cap_inode_removexattr() argument 1263 cap_prctl_drop(unsigned long cap) cap_prctl_drop() argument [all...] |
/linux/arch/arm64/boot/dts/rockchip/ |
H A D | rk3308-sakurapi-rk3308b.dts | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 9 /dts-v1/; 11 #include <dt-bindings/leds/common.h> 15 compatible = "sakurapi,rk3308-sakurapi-rk3308b", "rockchip,rk3308"; 24 stdout-path = "serial2:1500000n8"; 27 vcc5v0_sys: regulator-vcc5v0-sys { 28 compatible = "regulator-fixed"; 29 regulator-name = "vcc5v0_sys"; 30 regulator-always-on; 31 regulator-boot-on; [all …]
|
H A D | px30-engicam-common.dtsi | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 15 vcc5v0_sys: regulator-vcc5v0-sys { 16 compatible = "regulator-fixed"; 17 regulator-name = "vcc5v0_sys"; /* +5V */ 18 regulator-always-on; 19 regulator-boot-on; 20 regulator-min-microvolt = <5000000>; 21 regulator-max-microvolt = <5000000>; 24 sdio_pwrseq: sdio-pwrseq { 25 compatible = "mmc-pwrseq-simple"; [all …]
|
/linux/drivers/net/ethernet/netronome/nfp/ |
H A D | nfp_net_common.c | 1 // SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2 /* Copyright (C) 2015-2019 Netronome Systems, Inc. */ 59 * nfp_net_get_fw_version() - Read and parse the FW version 74 queue &= dev_info->qc_idx_mask; in nfp_qcp_queue_offset() 75 return dev_info->qc_addr_offset + NFP_QCP_QUEUE_ADDR_SZ * queue; in nfp_qcp_queue_offset() 80 * Firmware reconfig may take a while so we have two versions of it - 89 nfp_qcp_wr_ptr_add(nn->qcp_cfg, 1); in nfp_net_reconfig_start() 90 nn->reconfig_in_progress_update = update; in nfp_net_reconfig_start() 96 update |= nn->reconfig_posted; in nfp_net_reconfig_start_async() 97 nn->reconfig_posted = 0; in nfp_net_reconfig_start_async() [all …]
|
/linux/drivers/staging/greybus/ |
H A D | authentication.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Greybus Component Authentication Protocol (CAP) Driver. 40 .name = "gb_authenticate", 50 struct gb_cap *cap = container_of(kref, struct gb_cap, kref); in cap_kref_release() local 52 kfree(cap); in cap_kref_release() 56 * All users of cap take a reference (from within list_mutex lock), before 60 static void put_cap(struct gb_cap *cap) in put_cap() argument 62 kref_put(&cap->kref, cap_kref_release); in put_cap() 68 struct gb_cap *cap; in get_cap() local 72 list_for_each_entry(cap, &cap_list, node) { in get_cap() [all …]
|
/linux/drivers/watchdog/ |
H A D | pseries-wdt.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 17 #define DRV_NAME "pseries-wdt" 24 * Bits 48-55: "operation" 31 * Bits 56-63: "timeoutAction" (for "Start Watchdog" only) 65 * - For the "Query Watchdog Capabilities" operation, a 64-bit 68 #define PSERIES_WDTQ_MIN_TIMEOUT(cap) (((cap) >> 48) & 0xffff) argument 69 #define PSERIES_WDTQ_MAX_NUMBER(cap) (((cap) >> 32) & 0xffff) argument 97 unsigned long num; /* Watchdog numbers are 1-based */ 103 struct device *dev = wdd->parent; in pseries_wdt_start() 107 flags = pw->action | PSERIES_WDTF_OP_START; in pseries_wdt_start() [all …]
|
/linux/drivers/input/keyboard/ |
H A D | cap11xx.c | 1 // SPDX-License-Identifier: GPL-2.0-only 178 return regmap_write(priv->regmap, in cap11xx_write_calib_sens_config_1() 180 (priv->calib_sensitivities[3] << 6) | in cap11xx_write_calib_sens_config_1() 181 (priv->calib_sensitivities[2] << 4) | in cap11xx_write_calib_sens_config_1() 182 (priv->calib_sensitivities[1] << 2) | in cap11xx_write_calib_sens_config_1() 183 priv->calib_sensitivities[0]); in cap11xx_write_calib_sens_config_1() 188 return regmap_write(priv->regmap, in cap11xx_write_calib_sens_config_2() 190 (priv->calib_sensitivities[7] << 6) | in cap11xx_write_calib_sens_config_2() 191 (priv->calib_sensitivities[6] << 4) | in cap11xx_write_calib_sens_config_2() 192 (priv->calib_sensitivities[5] << 2) | in cap11xx_write_calib_sens_config_2() [all …]
|
/linux/drivers/dma/ |
H A D | dmaengine.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * Copyright(c) 2004 - 2006 Intel Corporation. All rights reserved. 7 * This code implements the DMA subsystem. It provides a HW-neutral interface 29 * See Documentation/driver-api/dmaengine for more details 35 #include <linux/dma-mapping.h> 65 /* --- debugfs implementation --- */ 73 dma_dev->dbg_dev_root = debugfs_create_dir(dev_name(dma_dev->dev), in dmaengine_debug_register() 75 if (IS_ERR(dma_dev->dbg_dev_root)) in dmaengine_debug_register() 76 dma_dev->dbg_dev_root = NULL; in dmaengine_debug_register() 81 debugfs_remove_recursive(dma_dev->dbg_dev_root); in dmaengine_debug_unregister() [all …]
|
/linux/drivers/iommu/intel/ |
H A D | perfmon.c | 1 // SPDX-License-Identifier: GPL-2.0-only 13 PMU_FORMAT_ATTR(event, "config:0-27"); /* ES: Events Select */ 14 PMU_FORMAT_ATTR(event_group, "config:28-31"); /* EGI: Event Group Index */ 23 .name = "format", 33 .name = "events", 68 return (iommu_pmu->filter & _filter) ? attr->mode : 0; \ 72 .name = "format", \ 82 IOMMU_PMU_ATTR(filter_requester_id, "config1:16-31", IOMMU_PMU_FILTER_REQUESTER_ID); 83 IOMMU_PMU_ATTR(filter_domain, "config1:32-47", IOMMU_PMU_FILTER_DOMAIN); 84 IOMMU_PMU_ATTR(filter_pasid, "config2:0-21", IOMMU_PMU_FILTER_PASID); [all …]
|
/linux/Documentation/hwmon/ |
H A D | sbrmi.rst | 1 .. SPDX-License-Identifier: GPL-2.0-or-later 8 * Sideband Remote Management Interface (SB-RMI) compliant AMD SoC 15 To instantiate this driver on an AMD CPU with SB-RMI 22 As mentioned in AMD's APML specification, The SB-RMI address is 27 Datasheet: The SB-RMI interface and protocol along with the Advanced 31 https://www.amd.com/en/support/tech-docs?keyword=55898 36 ----------- 39 (SB-RMI) module from the external SMBus master that can be used to report socket 40 power on AMD platforms using mailbox command and resembles a typical 8-pin remote 43 This driver implements current power with power cap and power cap max. [all …]
|
/linux/fs/ceph/ |
H A D | mds_client.c | 1 // SPDX-License-Identifier: GPL-2.0 28 #define RECONNECT_MAX_SIZE (INT_MAX - PAGE_SIZE) 90 ceph_decode_64_safe(p, end, info->max_bytes, bad); in parse_reply_info_quota() 91 ceph_decode_64_safe(p, end, info->max_files, bad); in parse_reply_info_quota() 95 return -EIO; in parse_reply_info_quota() 108 if (features == (u64)-1) { in parse_reply_info_in() 123 info->in = *p; in parse_reply_info_in() 125 sizeof(*info->in->fragtree.splits) * in parse_reply_info_in() 126 le32_to_cpu(info->in->fragtree.nsplits); in parse_reply_info_in() 128 ceph_decode_32_safe(p, end, info->symlink_len, bad); in parse_reply_info_in() [all …]
|
/linux/drivers/pci/pcie/ |
H A D | dpc.c | 1 // SPDX-License-Identifier: GPL-2.0 49 u16 *cap; in pci_save_dpc_state() local 58 cap = (u16 *)&save_state->cap.data[0]; in pci_save_dpc_state() 59 pci_read_config_word(dev, dev->dpc_cap + PCI_EXP_DPC_CTL, cap); in pci_save_dpc_state() 65 u16 *cap; in pci_restore_dpc_state() local 74 cap = (u16 *)&save_state->cap.data[0]; in pci_restore_dpc_state() 75 pci_write_config_word(dev, dev->dpc_cap + PCI_EXP_DPC_CTL, *cap); in pci_restore_dpc_state() 85 pci_read_config_word(pdev, pdev->dpc_cap + PCI_EXP_DPC_STATUS, &status); in dpc_completed() 89 if (test_bit(PCI_DPC_RECOVERING, &pdev->priv_flags)) in dpc_completed() 96 * pci_dpc_recovered - whether DPC triggered and has recovered successfully [all …]
|
/linux/drivers/net/ethernet/sfc/siena/ |
H A D | mcdi_port_common.c | 1 // SPDX-License-Identifier: GPL-2.0-only 23 BUILD_BUG_ON(MC_CMD_GET_PHY_CFG_OUT_NAME_LEN != sizeof(cfg->name)); in efx_mcdi_get_phy_cfg() 31 rc = -EIO; in efx_mcdi_get_phy_cfg() 35 cfg->flags = MCDI_DWORD(outbuf, GET_PHY_CFG_OUT_FLAGS); in efx_mcdi_get_phy_cfg() 36 cfg->type = MCDI_DWORD(outbuf, GET_PHY_CFG_OUT_TYPE); in efx_mcdi_get_phy_cfg() 37 cfg->supported_cap = in efx_mcdi_get_phy_cfg() 39 cfg->channel = MCDI_DWORD(outbuf, GET_PHY_CFG_OUT_CHANNEL); in efx_mcdi_get_phy_cfg() 40 cfg->port = MCDI_DWORD(outbuf, GET_PHY_CFG_OUT_PRT); in efx_mcdi_get_phy_cfg() 41 cfg->stats_mask = MCDI_DWORD(outbuf, GET_PHY_CFG_OUT_STATS_MASK); in efx_mcdi_get_phy_cfg() 42 memcpy(cfg->name, MCDI_PTR(outbuf, GET_PHY_CFG_OUT_NAME), in efx_mcdi_get_phy_cfg() [all …]
|
/linux/drivers/net/ethernet/sfc/ |
H A D | mcdi_port_common.c | 1 // SPDX-License-Identifier: GPL-2.0-only 22 BUILD_BUG_ON(MC_CMD_GET_PHY_CFG_OUT_NAME_LEN != sizeof(cfg->name)); in efx_mcdi_get_phy_cfg() 30 rc = -EIO; in efx_mcdi_get_phy_cfg() 34 cfg->flags = MCDI_DWORD(outbuf, GET_PHY_CFG_OUT_FLAGS); in efx_mcdi_get_phy_cfg() 35 cfg->type = MCDI_DWORD(outbuf, GET_PHY_CFG_OUT_TYPE); in efx_mcdi_get_phy_cfg() 36 cfg->supported_cap = in efx_mcdi_get_phy_cfg() 38 cfg->channel = MCDI_DWORD(outbuf, GET_PHY_CFG_OUT_CHANNEL); in efx_mcdi_get_phy_cfg() 39 cfg->port = MCDI_DWORD(outbuf, GET_PHY_CFG_OUT_PRT); in efx_mcdi_get_phy_cfg() 40 cfg->stats_mask = MCDI_DWORD(outbuf, GET_PHY_CFG_OUT_STATS_MASK); in efx_mcdi_get_phy_cfg() 41 memcpy(cfg->name, MCDI_PTR(outbuf, GET_PHY_CFG_OUT_NAME), in efx_mcdi_get_phy_cfg() [all …]
|