Home
last modified time | relevance | path

Searched defs:cap (Results 1 – 25 of 467) sorted by relevance

12345678910>>...19

/Linux-v4.19/drivers/staging/greybus/
Dauthentication.c48 struct gb_cap *cap = container_of(kref, struct gb_cap, kref); in cap_kref_release() local
58 static void put_cap(struct gb_cap *cap) in put_cap()
66 struct gb_cap *cap; in get_cap() local
85 static int cap_get_endpoint_uid(struct gb_cap *cap, u8 *euid) in cap_get_endpoint_uid()
103 static int cap_get_ims_certificate(struct gb_cap *cap, u32 class, u32 id, in cap_get_ims_certificate()
141 static int cap_authenticate(struct gb_cap *cap, u32 auth_type, u8 *uid, in cap_authenticate()
185 struct gb_cap *cap = get_cap(inode->i_cdev); in cap_open() local
198 struct gb_cap *cap = file->private_data; in cap_release() local
204 static int cap_ioctl(struct gb_cap *cap, unsigned int cmd, in cap_ioctl()
265 struct gb_cap *cap = file->private_data; in cap_ioctl_unlocked() local
[all …]
/Linux-v4.19/kernel/
Dcapability.c297 struct user_namespace *ns, int cap) in has_ns_capability()
318 bool has_capability(struct task_struct *t, int cap) in has_capability()
338 struct user_namespace *ns, int cap) in has_ns_capability_noaudit()
361 bool has_capability_noaudit(struct task_struct *t, int cap) in has_capability_noaudit()
366 static bool ns_capable_common(struct user_namespace *ns, int cap, bool audit) in ns_capable_common()
395 bool ns_capable(struct user_namespace *ns, int cap) in ns_capable()
413 bool ns_capable_noaudit(struct user_namespace *ns, int cap) in ns_capable_noaudit()
429 bool capable(int cap) in capable()
449 int cap) in file_ns_capable()
483 bool capable_wrt_inode_uidgid(const struct inode *inode, int cap) in capable_wrt_inode_uidgid()
/Linux-v4.19/drivers/net/ethernet/samsung/sxgbe/
Dsxgbe_reg.h412 #define SXGBE_HW_FEAT_GMII(cap) ((cap & 0x00000002) >> 1) argument
413 #define SXGBE_HW_FEAT_VLAN_HASH_FILTER(cap) ((cap & 0x00000010) >> 4) argument
414 #define SXGBE_HW_FEAT_SMA(cap) ((cap & 0x00000020) >> 5) argument
415 #define SXGBE_HW_FEAT_PMT_TEMOTE_WOP(cap) ((cap & 0x00000040) >> 6) argument
416 #define SXGBE_HW_FEAT_PMT_MAGIC_PKT(cap) ((cap & 0x00000080) >> 7) argument
417 #define SXGBE_HW_FEAT_RMON(cap) ((cap & 0x00000100) >> 8) argument
418 #define SXGBE_HW_FEAT_ARP_OFFLOAD(cap) ((cap & 0x00000200) >> 9) argument
419 #define SXGBE_HW_FEAT_IEEE1500_2008(cap) ((cap & 0x00001000) >> 12) argument
420 #define SXGBE_HW_FEAT_EEE(cap) ((cap & 0x00002000) >> 13) argument
421 #define SXGBE_HW_FEAT_TX_CSUM_OFFLOAD(cap) ((cap & 0x00004000) >> 14) argument
[all …]
/Linux-v4.19/drivers/media/platform/qcom/venus/
Dhfi_parser.c19 struct venus_caps *caps = core->caps, *cap; in init_codecs() local
41 struct venus_caps *cap; in for_each_codec() local
54 fill_buf_mode(struct venus_caps *cap, const void *data, unsigned int num) in fill_buf_mode()
84 static void fill_profile_level(struct venus_caps *cap, const void *data, in fill_profile_level()
110 fill_caps(struct venus_caps *cap, const void *data, unsigned int num) in fill_caps()
122 struct hfi_capability *cap = caps->data; in parse_caps() local
135 static void fill_raw_fmts(struct venus_caps *cap, const void *fmts, in fill_raw_fmts()
213 struct venus_caps *caps, *cap; in parser_fini() local
/Linux-v4.19/include/linux/
Dcapability.h25 __u32 cap[_KERNEL_CAPABILITY_U32S]; member
213 static inline bool has_capability(struct task_struct *t, int cap) in has_capability()
218 struct user_namespace *ns, int cap) in has_ns_capability()
222 static inline bool has_capability_noaudit(struct task_struct *t, int cap) in has_capability_noaudit()
227 struct user_namespace *ns, int cap) in has_ns_capability_noaudit()
231 static inline bool capable(int cap) in capable()
235 static inline bool ns_capable(struct user_namespace *ns, int cap) in ns_capable()
239 static inline bool ns_capable_noaudit(struct user_namespace *ns, int cap) in ns_capable_noaudit()
/Linux-v4.19/drivers/pci/pcie/
Ddpc.c52 u16 cap = dpc->cap_pos, status; in dpc_wait_rp_inactive() local
73 u16 cap; in dpc_reset_link() local
104 u16 cap = dpc->cap_pos, dpc_status, first_error; in dpc_process_rp_pio_error() local
162 u16 cap = dpc->cap_pos, status, source, reason, ext_reason; in dpc_handler() local
198 u16 cap = dpc->cap_pos, status; in dpc_irq() local
219 u16 ctl, cap; in dpc_probe() local
Dptm.c35 u32 cap, ctrl; in pci_ptm_init() local
90 u32 cap, ctrl; in pci_enable_ptm() local
/Linux-v4.19/fs/ceph/
Dcaps.c134 struct ceph_cap *cap; in ceph_caps_finalize() local
161 struct ceph_cap *cap; in __ceph_unreserve_caps() local
197 struct ceph_cap *cap; in ceph_reserve_caps() local
310 struct ceph_cap *cap = NULL; in ceph_get_cap() local
361 void ceph_put_cap(struct ceph_mds_client *mdsc, struct ceph_cap *cap) in ceph_put_cap()
415 struct ceph_cap *cap; in __get_cap_for_mds() local
432 struct ceph_cap *cap; in ceph_get_cap_for_mds() local
445 struct ceph_cap *cap; in __ceph_get_cap_mds() local
479 struct ceph_cap *cap = NULL; in __insert_cap_node() local
576 static void __check_cap_issue(struct ceph_inode_info *ci, struct ceph_cap *cap, in __check_cap_issue()
[all …]
/Linux-v4.19/drivers/char/tpm/
Dtpm-sysfs.c102 cap_t cap; in pcrs_show() local
132 cap_t cap; in enabled_show() local
149 cap_t cap; in active_show() local
166 cap_t cap; in owned_show() local
183 cap_t cap; in temp_deactivated_show() local
201 cap_t cap; in caps_show() local
/Linux-v4.19/security/apparmor/
Dcapability.c69 int cap, int error) in audit_caps()
118 static int profile_capable(struct aa_profile *profile, int cap, int audit, in profile_capable()
151 int aa_capable(struct aa_label *label, int cap, int audit) in aa_capable()
/Linux-v4.19/include/linux/mlx5/
Ddevice.h1078 #define MLX5_CAP_GEN(mdev, cap) \ argument
1081 #define MLX5_CAP_GEN_64(mdev, cap) \ argument
1084 #define MLX5_CAP_GEN_MAX(mdev, cap) \ argument
1087 #define MLX5_CAP_ETH(mdev, cap) \ argument
1091 #define MLX5_CAP_ETH_MAX(mdev, cap) \ argument
1095 #define MLX5_CAP_IPOIB_ENHANCED(mdev, cap) \ argument
1099 #define MLX5_CAP_ROCE(mdev, cap) \ argument
1102 #define MLX5_CAP_ROCE_MAX(mdev, cap) \ argument
1105 #define MLX5_CAP_ATOMIC(mdev, cap) \ argument
1108 #define MLX5_CAP_ATOMIC_MAX(mdev, cap) \ argument
[all …]
/Linux-v4.19/drivers/infiniband/hw/hfi1/
Dcommon.h94 #define HFI1_CAP_KSET(cap) ({ hfi1_cap_mask |= HFI1_CAP_##cap; hfi1_cap_mask; }) argument
95 #define HFI1_CAP_KCLEAR(cap) \ argument
100 #define HFI1_CAP_USET(cap) \ argument
105 #define HFI1_CAP_UCLEAR(cap) \ argument
110 #define HFI1_CAP_SET(cap) \ argument
116 #define HFI1_CAP_CLEAR(cap) \ argument
/Linux-v4.19/drivers/rtc/
Drtc-efi.c166 efi_time_cap_t cap; in efi_read_time() local
197 efi_time_cap_t cap; in efi_procfs() local
263 efi_time_cap_t cap; in efi_rtc_probe() local
/Linux-v4.19/drivers/pci/
Dpci.c360 u8 pos, int cap, int *ttl) in __pci_find_next_cap_ttl()
384 u8 pos, int cap) in __pci_find_next_cap()
391 int pci_find_next_capability(struct pci_dev *dev, u8 pos, int cap) in pci_find_next_capability()
437 int pci_find_capability(struct pci_dev *dev, int cap) in pci_find_capability()
462 int pci_bus_find_capability(struct pci_bus *bus, unsigned int devfn, int cap) in pci_bus_find_capability()
488 int pci_find_next_ext_capability(struct pci_dev *dev, int start, int cap) in pci_find_next_ext_capability()
543 int pci_find_ext_capability(struct pci_dev *dev, int cap) in pci_find_ext_capability()
552 u8 cap, mask; in __pci_find_next_ht_cap() local
1161 u16 cap, bool extended) in _pci_find_saved_cap()
1172 struct pci_cap_saved_state *pci_find_saved_cap(struct pci_dev *dev, char cap) in pci_find_saved_cap()
[all …]
/Linux-v4.19/security/
Dcommoncap.c71 int cap_capable(const struct cred *cred, struct user_namespace *targ_ns, in cap_capable()
351 static bool is_v2header(size_t size, const struct vfs_cap_data *cap) in is_v2header()
358 static bool is_v3header(size_t size, const struct vfs_cap_data *cap) in is_v3header()
383 struct vfs_cap_data *cap; in cap_inode_getsecurity() local
444 struct vfs_cap_data *cap = *buffer; in cap_inode_getsecurity() local
472 static bool validheader(size_t size, const struct vfs_cap_data *cap) in validheader()
487 const struct vfs_cap_data *cap = *ivalue; in cap_convert_nscap() local
1147 static int cap_prctl_drop(unsigned long cap) in cap_prctl_drop()
/Linux-v4.19/drivers/thunderbolt/
Dcap.c33 int tb_port_find_cap(struct tb_port *port, enum tb_port_cap cap) in tb_port_find_cap()
64 static int tb_switch_find_cap(struct tb_switch *sw, enum tb_switch_cap cap) in tb_switch_find_cap()
/Linux-v4.19/arch/arm64/kernel/
Dcpufeature.c966 static bool cpu_can_use_dbm(const struct arm64_cpu_capabilities *cap) in cpu_can_use_dbm()
972 static void cpu_enable_hw_dbm(struct arm64_cpu_capabilities const *cap) in cpu_enable_hw_dbm()
978 static bool has_hw_dbm(const struct arm64_cpu_capabilities *cap, in has_hw_dbm()
1228 #define HWCAP_CAP(reg, field, s, min_value, cap_type, cap) \ argument
1284 static void __init cap_set_elf_hwcap(const struct arm64_cpu_capabilities *cap) in cap_set_elf_hwcap()
1305 static bool cpus_have_elf_hwcap(const struct arm64_cpu_capabilities *cap) in cpus_have_elf_hwcap()
1343 unsigned int cap) in __this_cpu_has_cap()
1381 const struct arm64_cpu_capabilities *cap = arg; in __enable_cpu_capability() local
1608 bool this_cpu_has_cap(unsigned int cap) in this_cpu_has_cap()
/Linux-v4.19/drivers/usb/typec/ucsi/
Ducsi.c61 struct ucsi_connector_capability cap; member
70 struct ucsi_capability cap; member
501 ucsi_dr_swap(const struct typec_capability *cap, enum typec_data_role role) in ucsi_dr_swap()
538 ucsi_pr_swap(const struct typec_capability *cap, enum typec_role role) in ucsi_pr_swap()
591 struct typec_capability *cap = &con->typec_cap; in ucsi_register_port() local
/Linux-v4.19/drivers/platform/x86/
Dacer-wmi.c673 static bool has_cap(u32 cap) in has_cap()
709 static acpi_status AMW0_get_u32(u32 *value, u32 cap) in AMW0_get_u32()
779 static acpi_status AMW0_set_u32(u32 value, u32 cap) in AMW0_set_u32()
993 static acpi_status WMID_get_u32(u32 *value, u32 cap) in WMID_get_u32()
1029 static acpi_status WMID_set_u32(u32 value, u32 cap) in WMID_set_u32()
1120 static acpi_status wmid_v2_get_u32(u32 *value, u32 cap) in wmid_v2_get_u32()
1227 static acpi_status wmid_v2_set_u32(u32 value, u32 cap) in wmid_v2_set_u32()
1331 static acpi_status get_u32(u32 *value, u32 cap) in get_u32()
1360 static acpi_status set_u32(u32 value, u32 cap) in set_u32()
1593 u32 cap = (unsigned long)data; in acer_rfkill_set() local
[all …]
/Linux-v4.19/drivers/xen/xen-pciback/
Dconf_space_capability.c34 static inline void register_capability(struct xen_pcibk_config_capability *cap) in register_capability()
42 struct xen_pcibk_config_capability *cap; in xen_pcibk_config_capability_add_fields() local
/Linux-v4.19/arch/x86/kernel/
Daperture_64.c124 static u32 __init find_cap(int bus, int slot, int func, int cap) in find_cap()
150 static u32 __init read_agp(int bus, int slot, int func, int cap, u32 *order) in read_agp()
226 u32 class, cap; in search_agp_bridge() local
/Linux-v4.19/drivers/crypto/mediatek/
Dmtk-platform.c132 struct mtk_sys_cap *cap) in mtk_dfe_dse_buf_setup()
215 int i, struct mtk_sys_cap *cap) in mtk_cmd_desc_ring_setup()
256 int i, struct mtk_sys_cap *cap) in mtk_res_desc_ring_setup()
307 struct mtk_sys_cap cap; in mtk_packet_engine_setup() local
/Linux-v4.19/drivers/char/
Defirtc.c153 efi_time_cap_t cap; in efi_rtc_ioctl() local
302 efi_time_cap_t cap; in efi_rtc_proc_show() local
/Linux-v4.19/drivers/net/ethernet/netronome/nfp/bpf/
Dmain.c246 struct nfp_bpf_cap_tlv_adjust_head __iomem *cap = value; in nfp_bpf_parse_cap_adjust_head() local
277 struct nfp_bpf_cap_tlv_func __iomem *cap = value; in nfp_bpf_parse_cap_func() local
305 struct nfp_bpf_cap_tlv_maps __iomem *cap = value; in nfp_bpf_parse_cap_maps() local
/Linux-v4.19/tools/power/x86/x86_energy_perf_policy/
Dx86_energy_perf_policy.c672 void print_hwp_cap(int cpu, struct msr_hwp_cap *cap, char *str) in print_hwp_cap()
680 void read_hwp_cap(int cpu, struct msr_hwp_cap *cap, unsigned int msr_offset) in read_hwp_cap()
753 struct msr_hwp_cap cap; in print_cpu_msrs() local
894 …check_hwp_request_v_hwp_capabilities(int cpu, struct msr_hwp_request *req, struct msr_hwp_cap *cap) in check_hwp_request_v_hwp_capabilities()
939 struct msr_hwp_cap cap; in update_hwp_request() local
984 struct msr_hwp_cap cap; in update_hwp_request_pkg() local

12345678910>>...19