/linux-6.14.4/drivers/staging/greybus/ |
D | authentication.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Greybus Component Authentication Protocol (CAP) Driver. 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 57 * they get a pointer to play with. And the structure will be freed only after 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-6.14.4/drivers/power/supply/ |
D | sc27xx_fuel_gauge.c | 1 // SPDX-License-Identifier: GPL-2.0 10 #include <linux/nvmem-consumer.h> 79 * @channel: IIO channel to get battery temperature 80 * @charge_chan: IIO channel to get charge voltage 126 int cap, bool int_mode); 127 static void sc27xx_fgu_adjust_cap(struct sc27xx_fgu_data *data, int cap); 139 return DIV_S64_ROUND_CLOSEST(adc * 1000, data->cur_1000ma_adc); in sc27xx_fgu_adc_to_current() 144 return DIV_S64_ROUND_CLOSEST(adc * 1000, data->vol_1000mv_adc); in sc27xx_fgu_adc_to_voltage() 149 return DIV_ROUND_CLOSEST(vol * data->vol_1000mv_adc, 1000); in sc27xx_fgu_voltage_to_adc() 154 int ret, status, cap, mode; in sc27xx_fgu_is_first_poweron() local [all …]
|
/linux-6.14.4/tools/crypto/ccp/ |
D | dbc_cli.py | 2 # SPDX-License-Identifier: GPL-2.0 21 "get-fmax-cap": PARAM_GET_FMAX_CAP, 22 "set-fmax-cap": PARAM_SET_FMAX_CAP, 23 "get-power-cap": PARAM_GET_PWR_CAP, 24 "set-power-cap": PARAM_SET_PWR_CAP, 25 "get-graphics-mode": PARAM_GET_GFX_MODE, 26 "set-graphics-mode": PARAM_SET_GFX_MODE, 27 "get-current-temp": PARAM_GET_CURR_TEMP, 28 "get-fmax-max": PARAM_GET_FMAX_MAX, 29 "get-fmax-min": PARAM_GET_FMAX_MIN, [all …]
|
/linux-6.14.4/drivers/pci/pcie/ |
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-6.14.4/include/uapi/linux/ |
D | psp-dbc.h | 1 /* SPDX-License-Identifier: GPL-2.0-only WITH Linux-syscall-note */ 24 * struct dbc_user_nonce - Nonce exchange structure (input/output). 27 * 1: authentication: PSP will return multi-use nonce. 39 * struct dbc_user_setuid - UID exchange structure (input). 49 * struct dbc_user_param - Parameter exchange structure (input/output). 50 * @msg_index: Message indicating what parameter to set or get (input) 53 * - When sending a message this is to be created by software 55 * - For interpreting results, this signature is updated by the 70 * -EINVAL: invalid input 71 * -E2BIG: excess data passed [all …]
|
/linux-6.14.4/Documentation/netlink/specs/ |
D | net_shaper.yaml | 1 # SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause) 2 name: net-shaper 27 The user can query the running configuration via the @get operation. 32 @cap-get operation. 35 - 39 render-max: true 41 - name: unspec 43 - 46 - 51 - [all …]
|
D | nlctrl.yaml | 1 # SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause) 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 18 - cmd-cap-do 19 - cmd-cap-dump [all …]
|
/linux-6.14.4/drivers/pci/controller/cadence/ |
D | pcie-cadence-ep.c | 1 // SPDX-License-Identifier: GPL-2.0 4 // Author: Cyrille Pitchen <cyrille.pitchen@free-electrons.com> 10 #include <linux/pci-epc.h> 14 #include "pcie-cadence.h" 22 u32 cap = CDNS_PCIE_EP_FUNC_SRIOV_CAP_OFFSET; in cdns_pcie_get_fn_from_vfn() local 28 first_vf_offset = cdns_pcie_ep_fn_readw(pcie, fn, cap + PCI_SRIOV_VF_OFFSET); in cdns_pcie_get_fn_from_vfn() 29 stride = cdns_pcie_ep_fn_readw(pcie, fn, cap + PCI_SRIOV_VF_STRIDE); in cdns_pcie_get_fn_from_vfn() 30 fn = fn + first_vf_offset + ((vfn - 1) * stride); in cdns_pcie_get_fn_from_vfn() 39 u32 cap = CDNS_PCIE_EP_FUNC_SRIOV_CAP_OFFSET; in cdns_pcie_ep_write_header() local 40 struct cdns_pcie *pcie = &ep->pcie; in cdns_pcie_ep_write_header() [all …]
|
/linux-6.14.4/drivers/gpu/drm/hisilicon/hibmc/dp/ |
D | dp_link.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 19 dp->link.cap.lanes == 0x2 ? 0x3 : 0x1); in hibmc_dp_link_training_configure() 21 dp->link.cap.lanes == 0x2 ? 0x1 : 0); in hibmc_dp_link_training_configure() 27 buf[0] = dp->link.cap.link_rate; in hibmc_dp_link_training_configure() 28 buf[1] = DP_LANE_COUNT_ENHANCED_FRAME_EN | dp->link.cap.lanes; in hibmc_dp_link_training_configure() 29 ret = drm_dp_dpcd_write(&dp->aux, DP_LINK_BW_SET, buf, sizeof(buf)); in hibmc_dp_link_training_configure() 31 drm_dbg_dp(dp->dev, "dp aux write link rate and lanes failed, ret: %d\n", ret); in hibmc_dp_link_training_configure() 32 return ret >= 0 ? -EIO : ret; in hibmc_dp_link_training_configure() 38 ret = drm_dp_dpcd_write(&dp->aux, DP_DOWNSPREAD_CTRL, buf, sizeof(buf)); in hibmc_dp_link_training_configure() 40 drm_dbg_dp(dp->dev, "dp aux write 8b/10b and downspread failed, ret: %d\n", ret); in hibmc_dp_link_training_configure() [all …]
|
/linux-6.14.4/tools/power/acpi/tools/pfrut/ |
D | pfrut.c | 1 // SPDX-License-Identifier: GPL-2.0 65 " -l, --load\n" in help() 66 " -s, --stage\n" in help() 67 " -a, --activate\n" in help() 68 " -u, --update [stage and activate]\n" in help() 69 " -q, --query\n" in help() 70 " -d, --revid update\n" in help() 72 " -G, --getloginfo\n" in help() 73 " -T, --type(0:execution, 1:history)\n" in help() 74 " -L, --level(0, 1, 2, 4)\n" in help() [all …]
|
/linux-6.14.4/drivers/vdpa/ifcvf/ |
D | ifcvf_base.c | 1 // SPDX-License-Identifier: GPL-2.0-only 15 struct virtio_pci_common_cfg __iomem *cfg = hw->common_cfg; in ifcvf_set_vq_vector() 17 vp_iowrite16(qid, &cfg->queue_select); in ifcvf_set_vq_vector() 18 vp_iowrite16(vector, &cfg->queue_msix_vector); in ifcvf_set_vq_vector() 20 return vp_ioread16(&cfg->queue_msix_vector); in ifcvf_set_vq_vector() 25 struct virtio_pci_common_cfg __iomem *cfg = hw->common_cfg; in ifcvf_set_config_vector() 27 vp_iowrite16(vector, &cfg->msix_config); in ifcvf_set_config_vector() 29 return vp_ioread16(&cfg->msix_config); in ifcvf_set_config_vector() 33 struct virtio_pci_cap *cap) in get_cap_addr() argument 38 length = le32_to_cpu(cap->length); in get_cap_addr() [all …]
|
/linux-6.14.4/drivers/net/ethernet/intel/ice/ |
D | ice_dcb_nl.c | 1 // SPDX-License-Identifier: GPL-2.0 11 * ice_dcbnl_devreset - perform enough of a ifdown/ifup to sync DCBNL info 18 while (ice_is_reset_in_progress(pf->state)) in ice_dcbnl_devreset() 28 * ice_dcbnl_getets - retrieve local ETS configuration 38 dcbxcfg = &pf->hw.port_info->qos_cfg.local_dcbx_cfg; in ice_dcbnl_getets() 40 ets->willing = dcbxcfg->etscfg.willing; in ice_dcbnl_getets() 41 ets->ets_cap = dcbxcfg->etscfg.maxtcs; in ice_dcbnl_getets() 42 ets->cbs = dcbxcfg->etscfg.cbs; in ice_dcbnl_getets() 43 memcpy(ets->tc_tx_bw, dcbxcfg->etscfg.tcbwtable, sizeof(ets->tc_tx_bw)); in ice_dcbnl_getets() 44 memcpy(ets->tc_rx_bw, dcbxcfg->etscfg.tcbwtable, sizeof(ets->tc_rx_bw)); in ice_dcbnl_getets() [all …]
|
/linux-6.14.4/drivers/usb/typec/ucsi/ |
D | ucsi.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * USB Type-C Connector System Software Interface driver 21 * UCSI_TIMEOUT_MS - PPM communication timeout 31 * UCSI_SWAP_TIMEOUT_MS - Timeout for role swap requests 49 test_and_clear_bit(ACK_PENDING, &ucsi->flags)) in ucsi_notify_common() 50 complete(&ucsi->complete); in ucsi_notify_common() 53 test_and_clear_bit(COMMAND_PENDING, &ucsi->flags)) in ucsi_notify_common() 54 complete(&ucsi->complete); in ucsi_notify_common() 64 set_bit(ACK_PENDING, &ucsi->flags); in ucsi_sync_control_common() 66 set_bit(COMMAND_PENDING, &ucsi->flags); in ucsi_sync_control_common() [all …]
|
/linux-6.14.4/include/linux/ |
D | capability.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 11 * ftp://www.kernel.org/pub/linux/libs/security/linux-privs/kernel-2.6/ 53 * 1. CAP_FS_MASK is the privilege to bypass all fs-related DAC permissions 54 * 2. The security.* and trusted.* xattrs are fs-related MAC permissions 64 #define CAP_VALID_MASK (BIT_ULL(CAP_LAST_CAP+1)-1) 142 extern bool has_capability(struct task_struct *t, int cap); 144 struct user_namespace *ns, int cap); 145 extern bool has_capability_noaudit(struct task_struct *t, int cap); 147 struct user_namespace *ns, int cap); 148 extern bool capable(int cap); [all …]
|
D | scmi_protocol.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 5 * Copyright (C) 2018-2021 ARM Ltd. 21 * struct scmi_revision_info - version information structure 30 * @impl_ver: A vendor-specific implementation version. 32 * @sub_vendor_id: A sub-vendor identifier(Null terminated ASCII string) 87 * struct scmi_clk_proto_ops - represents the various operations provided 90 * @count_get: get the count of clocks provided by SCMI 91 * @info_get: get the information of the specified clock 96 * @state_get: get the status of the specified clock 97 * @config_oem_get: get the value of an OEM specific clock config [all …]
|
/linux-6.14.4/drivers/staging/greybus/Documentation/firmware/ |
D | authenticate.c | 1 // SPDX-License-Identifier: (GPL-2.0 OR BSD-3-Clause) 3 * Sample code to test CAP protocol 37 printf("\nUsage: ./firmware <Path of the gb-cap-X dev>\n"); in main() 48 return -1; in main() 51 /* Get UID */ in main() 52 printf("Get UID\n"); in main() 56 printf("Failed to get UID: %s (%d)\n", capdev, ret); in main() 57 ret = -1; in main() 63 /* Get certificate */ in main() 64 printf("Get IMS certificate\n"); in main() [all …]
|
/linux-6.14.4/tools/testing/selftests/kvm/x86/ |
D | max_vcpuid_cap_test.c | 1 // SPDX-License-Identifier: GPL-2.0-only 21 /* Get KVM_CAP_MAX_VCPU_ID cap supported in KVM */ in main() 24 /* Try to set KVM_CAP_MAX_VCPU_ID beyond KVM cap */ in main() 27 "Setting KVM_CAP_MAX_VCPU_ID beyond KVM cap should fail"); in main() 34 ret = __vm_enable_cap(vm, KVM_CAP_MAX_VCPU_ID, MAX_VCPU_ID - 1); in main() 47 /* Create vCPU with id beyond KVM_CAP_MAX_VCPU_ID cap */ in main()
|
/linux-6.14.4/security/ |
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 39 * to get full privilege on a kernel without file capabilities 48 printk(KERN_INFO "warning: `%s' has both setuid-root and" in warn_setuid_and_fcaps_mixed() 56 * cap_capable_helper - Determine whether a task has a particular effective 61 * @cap: The capability to check for 64 * its effective set, returning 0 if it does, -ve if it does not. 71 int cap) in cap_capable_helper() 82 return cap_raised(cred->cap_effective, cap) ? 0 : -EPERM; in cap_capable_helper() [all …]
|
/linux-6.14.4/drivers/usb/typec/ |
D | class.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * USB Type-C Connector Class 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() 91 ptype = product_type_cable[PD_IDH_PTYPE(id->id_header)]; in get_pd_product_type() [all …]
|
/linux-6.14.4/drivers/infiniband/hw/hns/ |
D | hns_roce_qp.c | 15 * - Redistributions of source code must retain the above 19 * - Redistributions in binary form must reproduce the above 45 struct device *dev = hr_dev->dev; in hns_roce_qp_lookup() 49 xa_lock_irqsave(&hr_dev->qp_table_xa, flags); in hns_roce_qp_lookup() 52 refcount_inc(&qp->refcount); in hns_roce_qp_lookup() 53 xa_unlock_irqrestore(&hr_dev->qp_table_xa, flags); in hns_roce_qp_lookup() 67 struct device *dev = flush_work->hr_dev->dev; in flush_work_handle() 75 if (test_and_clear_bit(HNS_ROCE_FLUSH_FLAG, &hr_qp->flush_flag)) { in flush_work_handle() 76 ret = hns_roce_modify_qp(&hr_qp->ibqp, &attr, attr_mask, NULL); in flush_work_handle() 86 if (refcount_dec_and_test(&hr_qp->refcount)) in flush_work_handle() [all …]
|
/linux-6.14.4/drivers/acpi/ |
D | acpi_video.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * video.c - ACPI Video Driver 7 * Copyright (C) 2006 Thomas Tuttle <linux-[email protected]> 52 static int report_key_events = -1; 57 static int hw_changes_brightness = -1; 61 "a hotkey is pressed: -1: auto, 0: normal 1: hw-changes-brightness"); 120 u8 _ROM:1; /* Get ROM Data */ 121 u8 _GPD:1; /* Get POST Device */ 128 u32 display_index:4; /* A zero-based instance of the Display */ 133 u32 depend_on_vga:1; /* Non-VGA output device whose power is related to [all …]
|
/linux-6.14.4/drivers/net/ethernet/intel/ixgbe/ |
D | ixgbe_e610.c | 1 // SPDX-License-Identifier: GPL-2.0 13 * ixgbe_should_retry_aci_send_cmd_execute - decide if ACI command should 37 * ixgbe_aci_send_cmd_execute - execute sending FW Admin Command to FW Admin 48 * * - 0 - success. 49 * * - -EIO - CSR mechanism is not enabled. 50 * * - -EBUSY - CSR mechanism is busy. 51 * * - -EINVAL - buf_size is too big or 53 * * - -ETIME - Admin Command X command timeout. 54 * * - -EIO - Admin Command X invalid state of HICR register or 67 hw->aci.last_status = IXGBE_ACI_RC_OK; in ixgbe_aci_send_cmd_execute() [all …]
|
/linux-6.14.4/net/ncsi/ |
D | ncsi-pkt.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 11 unsigned char revision; /* NCSI version - 0x01 */ 187 /* Get Link Status */ 197 /* Get Version ID */ 213 /* Get Capabilities */ 216 __be32 cap; /* Capabilities */ member 217 __be32 bc_cap; /* Broadcast cap */ 218 __be32 mc_cap; /* Multicast cap */ 219 __be32 buf_cap; /* Buffering cap */ 220 __be32 aen_cap; /* AEN cap */ [all …]
|
/linux-6.14.4/drivers/pci/ |
D | tph.c | 1 // SPDX-License-Identifier: GPL-2.0 10 #include <linux/pci-acpi.h> 13 #include <linux/pci-tph.h> 17 /* System-wide TPH disabled */ 25 * Spec and available at https://members.pcisig.com/wg/PCI-SIG/document/15470. 27 * @vm_st_valid: 8-bit ST for volatile memory is valid 28 * @vm_xst_valid: 16-bit extended ST for volatile memory is valid 30 * @vm_st: 8-bit ST for volatile mem 31 * @vm_xst: 16-bit extended ST for volatile mem 32 * @pm_st_valid: 8-bit ST for persistent memory is valid [all …]
|
/linux-6.14.4/drivers/dma/ |
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 21 * A subsystem can get access to a channel by calling dmaengine_get() followed 29 * See Documentation/driver-api/dmaengine for more details 35 #include <linux/dma-mapping.h> 63 /* --- debugfs implementation --- */ 71 dma_dev->dbg_dev_root = debugfs_create_dir(dev_name(dma_dev->dev), in dmaengine_debug_register() 73 if (IS_ERR(dma_dev->dbg_dev_root)) in dmaengine_debug_register() 74 dma_dev->dbg_dev_root = NULL; in dmaengine_debug_register() [all …]
|