Home
last modified time | relevance | path

Searched +full:cap +full:- +full:get (Results 1 – 25 of 640) sorted by relevance

12345678910>>...26

/linux/drivers/staging/greybus/
H A Dauthentication.c1 // 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/drivers/power/supply/
H A Dsc27xx_fuel_gauge.c1 // 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/tools/crypto/ccp/
H A Ddbc_cli.py2 # 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 …]
H A Dtest_dbc.py2 # SPDX-License-Identifier: GPL-2.0
25 def system_is_secured() -> bool:
34 def __init__(self, data) -> None:
40 def setUp(self) -> None:
44 def tearDown(self) -> None:
51 def setUp(self) -> None:
58 def test_unauthenticated_nonce(self) -> None:
65 def __init__(self, data) -> None:
70 def setUp(self) -> None:
78 def test_invalid_nonce_ioctl(self) -> None:
[all …]
/linux/drivers/pci/pcie/
H A Ddpc.c1 // 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/include/uapi/linux/
H A Dpsp-dbc.h1 /* 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/tools/power/acpi/tools/pfrut/
H A Dpfrut.c1 // 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/drivers/vdpa/ifcvf/
H A Difcvf_base.c1 // 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/drivers/usb/typec/ucsi/
H A Ducsi.c1 // 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/drivers/net/ethernet/intel/ice/
H A Dice_dcb_nl.c1 // 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 …]
H A Dice_common.c1 // SPDX-License-Identifier: GPL-2.0
2 /* Copyright (c) 2018-2023, Intel Corporation. */
89 * ice_dump_phy_type - helper function to dump phy_type
116 * ice_set_mac_type - Sets MAC type
124 if (hw->vendor_id != PCI_VENDOR_ID_INTEL) in ice_set_mac_type()
125 return -ENODEV; in ice_set_mac_type()
127 switch (hw->device_id) { in ice_set_mac_type()
134 hw->mac_type = ICE_MAC_E810; in ice_set_mac_type()
155 hw->mac_type = ICE_MAC_GENERIC; in ice_set_mac_type()
161 hw->mac_type = ICE_MAC_GENERIC_3K_E825; in ice_set_mac_type()
[all …]
/linux/include/linux/
H A Dcapability.h1 /* 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 …]
H A Dscmi_protocol.h1 /* 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/drivers/staging/greybus/Documentation/firmware/
H A Dauthenticate.c1 // 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/drivers/usb/typec/
H A Dclass.c1 // SPDX-License-Identifier: GPL-2.0
3 * USB Type-C Connector Class
28 /* ------------------------------------------------------------------------- */
65 return partner->identity; in get_pd_identity()
69 return cable->identity; in get_pd_identity()
76 struct typec_port *port = to_typec_port(dev->parent); in get_pd_product_type()
84 if (port->data_role == TYPEC_HOST) in get_pd_product_type()
85 ptype = product_type_ufp[PD_IDH_PTYPE(id->id_header)]; in get_pd_product_type()
87 ptype = product_type_dfp[PD_IDH_DFP_PTYPE(id->id_header)]; in get_pd_product_type()
90 ptype = product_type_cable[PD_IDH_PTYPE(id->id_header)]; in get_pd_product_type()
[all …]
/linux/security/
H A Dcommoncap.c1 // SPDX-License-Identifier: GPL-2.0-or-later
31 * If a non-root user executes a setuid-root binary in
34 * the file capabilities to be applied, and the setuid-root
36 * to get full privilege on a kernel without file capabilities
45 printk(KERN_INFO "warning: `%s' has both setuid-root and" in warn_setuid_and_fcaps_mixed()
53 * cap_capable - Determine whether a task has a particular effective capability
56 * @cap: The capability to check for
60 * its effective set, returning 0 if it does, -ve if it does not.
68 int cap, unsigned int opts) in cap_capable()
78 if (ns == cred->user_ns) in cap_capable()
[all …]
/linux/tools/testing/selftests/kvm/x86_64/
H A Dmax_vcpuid_cap_test.c1 // 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/net/ncsi/
H A Dncsi-pkt.h1 /* 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/drivers/dma/
H A Ddmaengine.c1 // 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 …]
/linux/Documentation/netlink/specs/
H A Dnlctrl.yaml1 # 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/drivers/media/pci/zoran/
H A Dzr36016.c1 // SPDX-License-Identifier: GPL-2.0-or-later
36 struct zoran *zr = videocodec_to_zoran(ptr->codec); in zr36016_read()
39 if (ptr->codec->master_data->readreg) in zr36016_read()
40 value = (ptr->codec->master_data->readreg(ptr->codec, reg)) & 0xFF; in zr36016_read()
42 zrdev_err(zr, "%s: invalid I/O setup, nothing read!\n", ptr->name); in zr36016_read()
44 zrdev_dbg(zr, "%s: reading from 0x%04x: %02x\n", ptr->name, reg, value); in zr36016_read()
51 struct zoran *zr = videocodec_to_zoran(ptr->codec); in zr36016_write()
53 zrdev_dbg(zr, "%s: writing 0x%02x to 0x%04x\n", ptr->name, value, reg); in zr36016_write()
56 if (ptr->codec->master_data->writereg) in zr36016_write()
57 ptr->codec->master_data->writereg(ptr->codec, reg, value); in zr36016_write()
[all …]
/linux/drivers/platform/x86/
H A Dacer-wmi.c1 // SPDX-License-Identifier: GPL-2.0-or-later
5 * Copyright (C) 2007-2009 Carlos Corbacho <carlos@strangeworlds.co.uk>
8 * Copyright (C) 2005-2007 E.M. Smith
9 * Copyright (C) 2007-2008 Carlos Corbacho <cathectic@gmail.com>
30 #include <linux/input/sparse-keymap.h>
41 * Meaning is unknown - this number is required for writing to ACPI for AMW0
78 #define AMW0_GUID1 "67C3371D-95A3-4C37-BB61-DD47B491DAAB"
79 #define AMW0_GUID2 "431F16ED-0C2B-444C-B267-27DEB140CF9C"
80 #define WMID_GUID1 "6AF4F258-B401-42FD-BE91-3D4AC2D7C0D3"
81 #define WMID_GUID2 "95764E09-FB56-4E83-B31A-37761F60994A"
[all …]
/linux/drivers/acpi/
H A Dacpi_video.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * video.c - ACPI Video Driver
7 * Copyright (C) 2006 Thomas Tuttle <linux-kernel@ttuttle.net>
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/drivers/net/ethernet/intel/i40e/
H A Di40e_dcb_nl.c1 // SPDX-License-Identifier: GPL-2.0
2 /* Copyright(c) 2013 - 2021 Intel Corporation. */
13 * i40e_get_pfc_delay - retrieve PFC Link Delay
28 * i40e_dcbnl_ieee_getets - retrieve local IEEE ETS configuration
40 if (!(pf->dcbx_cap & DCB_CAP_DCBX_VER_IEEE)) in i40e_dcbnl_ieee_getets()
41 return -EINVAL; in i40e_dcbnl_ieee_getets()
43 dcbxcfg = &pf->hw.local_dcbx_config; in i40e_dcbnl_ieee_getets()
44 ets->willing = dcbxcfg->etscfg.willing; in i40e_dcbnl_ieee_getets()
45 ets->ets_cap = I40E_MAX_TRAFFIC_CLASS; in i40e_dcbnl_ieee_getets()
46 ets->cbs = dcbxcfg->etscfg.cbs; in i40e_dcbnl_ieee_getets()
[all …]
/linux/drivers/staging/media/starfive/camss/
H A Dstf-capture.c1 // SPDX-License-Identifier: GPL-2.0
5 * StarFive Camera Subsystem - capture device
7 * Copyright (C) 2021-2023 StarFive Technology Co., Ltd.
10 #include "stf-camss.h"
78 struct stf_capture *cap = to_stf_capture(video); in stf_init_addrs() local
79 struct stf_v_buf *output = &cap->buffers; in stf_init_addrs()
82 output->active_buf = 0; in stf_init_addrs()
84 if (!output->buf[0]) in stf_init_addrs()
87 addr0 = output->buf[0]->addr[0]; in stf_init_addrs()
88 addr1 = output->buf[0]->addr[1]; in stf_init_addrs()
[all …]

12345678910>>...26