Home
last modified time | relevance | path

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

12345678910>>...22

/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/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/drivers/pci/controller/cadence/
H A Dpcie-cadence-ep.c1 // SPDX-License-Identifier: GPL-2.0
4 // Author: Cyrille Pitchen <cyrille.pitchen@free-electrons.com>
11 #include <linux/pci-epc.h>
15 #include "pcie-cadence.h"
25 u16 cap; in cdns_pcie_get_fn_from_vfn() local
30 cap = cdns_pcie_find_ext_capability(pcie, PCI_EXT_CAP_ID_SRIOV); in cdns_pcie_get_fn_from_vfn()
31 first_vf_offset = cdns_pcie_ep_fn_readw(pcie, fn, cap + PCI_SRIOV_VF_OFFSET); in cdns_pcie_get_fn_from_vfn()
32 stride = cdns_pcie_ep_fn_readw(pcie, fn, cap + PCI_SRIOV_VF_STRIDE); in cdns_pcie_get_fn_from_vfn()
33 fn = fn + first_vf_offset + ((vfn - 1) * stride); in cdns_pcie_get_fn_from_vfn()
42 struct cdns_pcie *pcie = &ep->pcie; in cdns_pcie_ep_write_header()
[all …]
/linux/Documentation/netlink/specs/
H A Dnet_shaper.yaml1 # SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause)
2 ---
3 name: net-shaper
28 The user can query the running configuration via the @get operation.
33 @cap-get operation.
36 -
40 render-max: true
42 - name: unspec
44 -
47 -
[all …]
H A Dnlctrl.yaml1 # SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause)
2 ---
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
[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/drivers/gpu/drm/hisilicon/hibmc/dp/
H A Ddp_link.c1 // SPDX-License-Identifier: GPL-2.0-or-later
14 switch (dp->link.cap.link_rate) { in hibmc_dp_get_serdes_rate_cfg()
24 return -EINVAL; in hibmc_dp_get_serdes_rate_cfg()
35 dp->link.cap.lanes == 0x2 ? 0x3 : 0x1); in hibmc_dp_link_training_configure()
37 dp->link.cap.lanes == 0x2 ? 0x1 : 0); in hibmc_dp_link_training_configure()
43 buf[0] = dp->link.cap.link_rate; in hibmc_dp_link_training_configure()
44 buf[1] = DP_LANE_COUNT_ENHANCED_FRAME_EN | dp->link.cap.lanes; in hibmc_dp_link_training_configure()
45 ret = drm_dp_dpcd_write(dp->aux, DP_LINK_BW_SET, buf, sizeof(buf)); in hibmc_dp_link_training_configure()
47 drm_dbg_dp(dp->dev, "dp aux write link rate and lanes failed, ret: %d\n", ret); in hibmc_dp_link_training_configure()
48 return ret >= 0 ? -EIO : ret; in hibmc_dp_link_training_configure()
[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/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 …]
/linux/drivers/devfreq/
H A Dhisi_uncore_freq.c1 // SPDX-License-Identifier: GPL-2.0-only
65 * struct hisi_uncore_freq - hisi uncore frequency scaling device data
75 * @cap: capability flag
86 u32 cap; member
98 guard(mutex)(&uncore->pcc_lock); in hisi_uncore_free_pcc_chan()
99 pcc_mbox_free_channel(uncore->pchan); in hisi_uncore_free_pcc_chan()
100 uncore->pchan = NULL; in hisi_uncore_free_pcc_chan()
110 struct device *dev = uncore->dev; in hisi_uncore_request_pcc_chan()
113 uncore->cl = (struct mbox_client) { in hisi_uncore_request_pcc_chan()
119 pcc_chan = pcc_mbox_request_channel(&uncore->cl, uncore->chan_id); in hisi_uncore_request_pcc_chan()
[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/security/
H A Dcommoncap.c1 // 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-roo in warn_setuid_and_fcaps_mixed()
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
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
1263 cap_prctl_drop(unsigned long cap) cap_prctl_drop() argument
[all...]
/linux/include/linux/
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 th
[all...]
/linux/drivers/usb/typec/
H A Dclass.c1 // 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/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; /* Capabilitie member
[all...]
/linux/sound/soc/fsl/
H A Dfsl_asrc_m2m.c1 // SPDX-License-Identifier: GPL-2.0
3 // Copyright (C) 2014-2016 Freescale Semiconductor, Inc.
4 // Copyright (C) 2019-2024 NXP
8 #include <linux/dma/imx-dma.h>
9 #include <linux/dma-buf.h>
10 #include <linux/dma-mapping.h>
35 complete(&pair->complete[IN]); in asrc_input_dma_callback()
43 complete(&pair->complete[OUT]); in asrc_output_dma_callback()
54 struct fsl_asrc *asrc = pair->asrc; in asrc_read_last_fifo()
55 enum asrc_pair_index index = pair->index; in asrc_read_last_fifo()
[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/platform/chrome/
H A Dcros_ec_typec.c1 // SPDX-License-Identifier: GPL-2.0-only
23 #define DRV_NAME "cros-ec-typec"
36 switch_fwnode = fwnode_find_reference(fwnode, "usb-role-switch", 0); in cros_typec_role_switch_quirk()
40 if (adev && !adev->pld_crc) in cros_typec_role_switch_quirk()
41 adev->pld_crc = to_acpi_device_node(fwnode)->pld_crc; in cros_typec_role_switch_quirk()
51 .port = port->port_num, in cros_typec_enter_usb_mode()
57 return cros_ec_cmd(port->typec_data->ec, 0, EC_CMD_TYPEC_CONTROL, in cros_typec_enter_usb_mode()
64 struct cros_typec_data *data = port->typec_data; in cros_typec_perform_role_swap()
70 if (!data->pd_ctrl_ver) in cros_typec_perform_role_swap()
71 return -EOPNOTSUPP; in cros_typec_perform_role_swap()
[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 …]
/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>
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()
[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>
44 * Meaning is unknown - this number is required for writing to ACPI for AMW0
87 #define AMW0_GUID1 "67C3371D-95A3-4C37-BB61-DD47B491DAAB"
88 #define AMW0_GUID2 "431F16ED-0C2B-444C-B267-27DEB140CF9C"
89 #define WMID_GUID1 "6AF4F258-B401-42FD-BE91-3D4AC2D7C0D3"
90 #define WMID_GUID2 "95764E09-FB56-4E83-B31A-37761F60994A"
[all …]
/linux/drivers/pci/
H A Dpci.c1 // 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 …]

12345678910>>...22