/linux-master/drivers/iommu/intel/ |
H A D | cap_audit.h | 67 #define DO_CHECK_FEATURE_MISMATCH(a, b, cap, feature, MASK) \ 69 if (cap##_##feature(a) != cap##_##feature(b)) { \ 70 intel_iommu_##cap##_sanity &= ~(MASK); \ 75 #define CHECK_FEATURE_MISMATCH(a, b, cap, feature, MASK) \ 76 DO_CHECK_FEATURE_MISMATCH((a)->cap, (b)->cap, cap, feature, MASK) 78 #define CHECK_FEATURE_MISMATCH_HOTPLUG(b, cap, feature, MASK) \ 80 if (cap## [all...] |
H A D | cap_audit.c | 22 CHECK_FEATURE_MISMATCH(a, b, cap, pi_support, CAP_PI_MASK); 29 MINIMAL_FEATURE_IOMMU(b, cap, CAP_MAMV_MASK); 30 MINIMAL_FEATURE_IOMMU(b, cap, CAP_NFR_MASK); 31 MINIMAL_FEATURE_IOMMU(b, cap, CAP_SLLPS_MASK); 32 MINIMAL_FEATURE_IOMMU(b, cap, CAP_FRO_MASK); 33 MINIMAL_FEATURE_IOMMU(b, cap, CAP_MGAW_MASK); 34 MINIMAL_FEATURE_IOMMU(b, cap, CAP_SAGAW_MASK); 35 MINIMAL_FEATURE_IOMMU(b, cap, CAP_NDOMS_MASK); 40 CHECK_FEATURE_MISMATCH(a, b, cap, fl5lp_support, CAP_FL5LP_MASK); 41 CHECK_FEATURE_MISMATCH(a, b, cap, fl1gp_suppor [all...] |
/linux-master/drivers/staging/greybus/ |
H A D | authentication.c | 50 struct gb_cap *cap = container_of(kref, struct gb_cap, kref); local 52 kfree(cap); 56 * All users of cap take a reference (from within list_mutex lock), before 60 static void put_cap(struct gb_cap *cap) argument 62 kref_put(&cap->kref, cap_kref_release); 68 struct gb_cap *cap; local 72 list_for_each_entry(cap, &cap_list, node) { 73 if (&cap->cdev == cdev) { 74 kref_get(&cap->kref); 79 cap 87 cap_get_endpoint_uid(struct gb_cap *cap, u8 *euid) argument 105 cap_get_ims_certificate(struct gb_cap *cap, u32 class, u32 id, u8 *certificate, u32 *size, u8 *result) argument 143 cap_authenticate(struct gb_cap *cap, u32 auth_type, u8 *uid, u8 *challenge, u8 *result, u8 *auth_response, u32 *signature_size, u8 *signature) argument 187 struct gb_cap *cap = get_cap(inode->i_cdev); local 200 struct gb_cap *cap = file->private_data; local 206 cap_ioctl(struct gb_cap *cap, unsigned int cmd, void __user *buf) argument 267 struct gb_cap *cap = file->private_data; local 303 struct gb_cap *cap; local 369 struct gb_cap *cap; local [all...] |
/linux-master/drivers/media/platform/rockchip/rkisp1/ |
H A D | rkisp1-capture.c | 68 void (*config)(struct rkisp1_capture *cap); 69 void (*stop)(struct rkisp1_capture *cap); 70 void (*enable)(struct rkisp1_capture *cap); 71 void (*disable)(struct rkisp1_capture *cap); 72 void (*set_data_path)(struct rkisp1_capture *cap); 73 bool (*is_stopped)(struct rkisp1_capture *cap); 420 int rkisp1_cap_enum_mbus_codes(struct rkisp1_capture *cap, argument 423 const struct rkisp1_capture_fmt_cfg *fmts = cap->config->fmts; 431 for (i = 0; i < cap->config->fmt_size; i++) { 448 static void rkisp1_mi_config_ctrl(struct rkisp1_capture *cap) argument 477 rkisp1_irq_frame_end_enable(struct rkisp1_capture *cap) argument 485 rkisp1_mp_config(struct rkisp1_capture *cap) argument 549 rkisp1_sp_config(struct rkisp1_capture *cap) argument 605 rkisp1_mp_disable(struct rkisp1_capture *cap) argument 614 rkisp1_sp_disable(struct rkisp1_capture *cap) argument 622 rkisp1_mp_enable(struct rkisp1_capture *cap) argument 638 rkisp1_sp_enable(struct rkisp1_capture *cap) argument 646 rkisp1_mp_sp_stop(struct rkisp1_capture *cap) argument 654 rkisp1_mp_is_stopped(struct rkisp1_capture *cap) argument 662 rkisp1_sp_is_stopped(struct rkisp1_capture *cap) argument 668 rkisp1_mp_set_data_path(struct rkisp1_capture *cap) argument 677 rkisp1_sp_set_data_path(struct rkisp1_capture *cap) argument 707 rkisp1_dummy_buf_create(struct rkisp1_capture *cap) argument 728 rkisp1_dummy_buf_destroy(struct rkisp1_capture *cap) argument 735 rkisp1_set_next_buf(struct rkisp1_capture *cap) argument 796 rkisp1_handle_buffer(struct rkisp1_capture *cap) argument 835 struct rkisp1_capture *cap = &rkisp1->capture_devs[i]; local 873 struct rkisp1_capture *cap = queue->drv_priv; local 898 struct rkisp1_capture *cap = vb->vb2_queue->drv_priv; local 931 struct rkisp1_capture *cap = vb->vb2_queue->drv_priv; local 940 struct rkisp1_capture *cap = vb->vb2_queue->drv_priv; local 958 rkisp1_return_all_buffers(struct rkisp1_capture *cap, enum vb2_buffer_state state) argument 987 rkisp1_cap_stream_enable(struct rkisp1_capture *cap) argument 1040 rkisp1_cap_stream_disable(struct rkisp1_capture *cap) argument 1069 rkisp1_cap_stream_disable(cap); variable 1094 rkisp1_cap_stream_enable(cap); variable 1118 rkisp1_cap_stream_disable(cap); variable 1125 struct rkisp1_capture *cap = queue->drv_priv; local 1151 struct rkisp1_capture *cap = queue->drv_priv; local 1217 rkisp1_fill_pixfmt(const struct rkisp1_capture *cap, struct v4l2_pix_format_mplane *pixm) argument 1270 rkisp1_find_fmt_cfg(const struct rkisp1_capture *cap, const u32 pixelfmt) argument 1285 rkisp1_try_fmt(const struct rkisp1_capture *cap, struct v4l2_pix_format_mplane *pixm, const struct rkisp1_capture_fmt_cfg **fmt_cfg, const struct v4l2_format_info **fmt_info) argument 1324 rkisp1_set_fmt(struct rkisp1_capture *cap, struct v4l2_pix_format_mplane *pixm) argument 1336 struct rkisp1_capture *cap = video_drvdata(file); local 1346 struct rkisp1_capture *cap = video_drvdata(file); local 1388 struct rkisp1_capture *cap = video_drvdata(file); local 1409 struct rkisp1_capture *cap = video_drvdata(file); local 1424 struct rkisp1_capture *cap = video_drvdata(file); local 1432 rkisp1_querycap(struct file *file, void *priv, struct v4l2_capability *cap) argument 1467 struct rkisp1_capture *cap = video_get_drvdata(vdev); local 1512 rkisp1_unregister_capture(struct rkisp1_capture *cap) argument 1531 rkisp1_register_capture(struct rkisp1_capture *cap) argument 1604 struct rkisp1_capture *cap = &rkisp1->capture_devs[id]; local 1638 struct rkisp1_capture *cap = &rkisp1->capture_devs[i]; local [all...] |
/linux-master/drivers/vfio/pci/ |
H A D | vfio_pci_zdev.c | 25 struct vfio_device_info_cap_zpci_base cap = { local 38 return vfio_info_add_capability(caps, &cap.header, sizeof(cap)); 46 struct vfio_device_info_cap_zpci_group cap = { local 60 return vfio_info_add_capability(caps, &cap.header, sizeof(cap)); 68 struct vfio_device_info_cap_zpci_util *cap; local 69 int cap_size = sizeof(*cap) + CLP_UTIL_STR_LEN; 72 cap = kmalloc(cap_size, GFP_KERNEL); 73 if (!cap) 93 struct vfio_device_info_cap_zpci_pfip *cap; local [all...] |
/linux-master/drivers/net/wireless/ath/wcn36xx/ |
H A D | firmware.c | 82 enum wcn36xx_firmware_feat_caps cap) 86 if (cap < 0 || cap > 127) { 87 wcn36xx_warn("error cap idx %d\n", cap); 91 arr_idx = cap / 32; 92 bit_idx = cap % 32; 97 enum wcn36xx_firmware_feat_caps cap) 101 if (cap < 0 || cap > 12 81 wcn36xx_firmware_set_feat_caps(u32 *bitmap, enum wcn36xx_firmware_feat_caps cap) argument 96 wcn36xx_firmware_get_feat_caps(u32 *bitmap, enum wcn36xx_firmware_feat_caps cap) argument 112 wcn36xx_firmware_clear_feat_caps(u32 *bitmap, enum wcn36xx_firmware_feat_caps cap) argument [all...] |
/linux-master/security/apparmor/ |
H A D | capability.c | 49 audit_log_untrustedstring(ab, capability_names[sa->u.cap]); 56 * @cap: capability tested 65 int cap, int error) 77 !cap_raised(rules->caps.audit, cap))) 81 cap_raised(rules->caps.kill, cap)) { 83 } else if (cap_raised(rules->caps.quiet, cap) && 92 if (profile == ent->profile && cap_raised(ent->caps, cap)) { 100 cap_raise(ent->caps, cap); 108 * profile_capable - test if profile allows use of capability @cap 110 * @cap 64 audit_caps(struct apparmor_audit_data *ad, struct aa_profile *profile, int cap, int error) argument 116 profile_capable(struct aa_profile *profile, int cap, unsigned int opts, struct apparmor_audit_data *ad) argument 152 aa_capable(const struct cred *subj_cred, struct aa_label *label, int cap, unsigned int opts) argument [all...] |
/linux-master/drivers/media/platform/qcom/venus/ |
H A D | hfi_parser.c | 14 typedef void (*func)(struct hfi_plat_caps *cap, const void *data, 19 struct hfi_plat_caps *caps = core->caps, *cap; local 26 cap = &caps[core->codecs_count++]; 27 cap->codec = BIT(bit); 28 cap->domain = VIDC_SESSION_TYPE_DEC; 29 cap->valid = false; 33 cap = &caps[core->codecs_count++]; 34 cap->codec = BIT(bit); 35 cap->domain = VIDC_SESSION_TYPE_ENC; 36 cap 44 struct hfi_plat_caps *cap; local 57 fill_buf_mode(struct hfi_plat_caps *cap, const void *data, unsigned int num) argument 87 fill_profile_level(struct hfi_plat_caps *cap, const void *data, unsigned int num) argument 116 fill_caps(struct hfi_plat_caps *cap, const void *data, unsigned int num) argument 131 struct hfi_capability *cap = caps->data; local 144 fill_raw_fmts(struct hfi_plat_caps *cap, const void *fmts, unsigned int num_fmts) argument 229 struct hfi_plat_caps *caps, *cap; local [all...] |
/linux-master/tools/perf/util/ |
H A D | cap.c | 8 #include "cap.h" 12 bool perf_cap__capable(cap_value_t cap) argument 20 if (cap_get_flag(caps, cap, CAP_EFFECTIVE, &val) != 0)
|
H A D | cap.h | 13 bool perf_cap__capable(cap_value_t cap); 20 static inline bool perf_cap__capable(int cap __maybe_unused)
|
/linux-master/drivers/media/platform/samsung/exynos4-is/ |
H A D | common.c | 40 void __fimc_vidioc_querycap(struct device *dev, struct v4l2_capability *cap) argument 42 strscpy(cap->driver, dev->driver->name, sizeof(cap->driver)); 43 strscpy(cap->card, dev->driver->name, sizeof(cap->card));
|
/linux-master/include/linux/ |
H A D | capability.h | 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); 149 extern bool ns_capable(struct user_namespace *ns, int cap); 150 extern bool ns_capable_noaudit(struct user_namespace *ns, int cap); 151 extern bool ns_capable_setid(struct user_namespace *ns, int cap); 153 static inline bool has_capability(struct task_struct *t, int cap) argument 158 struct user_namespace *ns, int cap) 157 has_ns_capability(struct task_struct *t, struct user_namespace *ns, int cap) argument 162 has_capability_noaudit(struct task_struct *t, int cap) argument 166 has_ns_capability_noaudit(struct task_struct *t, struct user_namespace *ns, int cap) argument 171 capable(int cap) argument 175 ns_capable(struct user_namespace *ns, int cap) argument 179 ns_capable_noaudit(struct user_namespace *ns, int cap) argument 183 ns_capable_setid(struct user_namespace *ns, int cap) argument [all...] |
/linux-master/drivers/platform/surface/aggregator/ |
H A D | ssh_parser.h | 22 * @cap: Maximum capacity of the buffer. 27 size_t cap; member in struct:sshp_buf 34 * @cap: The length of the memory backing the buffer, i.e. its capacity. 39 static inline void sshp_buf_init(struct sshp_buf *buf, u8 *ptr, size_t cap) argument 43 buf->cap = cap; 49 * @cap: The desired capacity of the buffer. 52 * Allocates @cap bytes and initializes the provided buffer struct with the 57 static inline int sshp_buf_alloc(struct sshp_buf *buf, size_t cap, gfp_t flags) argument 61 ptr = kzalloc(cap, flag [all...] |
/linux-master/arch/powerpc/include/asm/ |
H A D | async_tx.h | 12 ppc440spe_async_tx_find_best_channel(enum dma_transaction_type cap, 16 #define async_tx_find_channel(dep, cap, dst_lst, dst_cnt, src_lst, \ 18 ppc440spe_async_tx_find_best_channel(cap, dst_lst, dst_cnt, src_lst, \
|
/linux-master/arch/x86/include/asm/ |
H A D | intel_pt.h | 31 extern u32 intel_pt_validate_hw_cap(enum pt_capabilities cap); 32 extern u32 intel_pt_validate_cap(u32 *caps, enum pt_capabilities cap); 36 static inline u32 intel_pt_validate_hw_cap(enum pt_capabilities cap) { return 0; } argument
|
/linux-master/drivers/thunderbolt/ |
H A D | lc.c | 62 int cap, ret; local 68 cap = find_port_lc_cap(port); 69 if (cap < 0) 70 return cap; 72 ret = tb_sw_read(sw, &mode, TB_CFG_SWITCH, cap + TB_LC_PORT_MODE, 1); 78 ret = tb_sw_write(sw, &mode, TB_CFG_SWITCH, cap + TB_LC_PORT_MODE, 1); 84 ret = tb_sw_read(sw, &mode, TB_CFG_SWITCH, cap + TB_LC_PORT_MODE, 1); 90 return tb_sw_write(sw, &mode, TB_CFG_SWITCH, cap + TB_LC_PORT_MODE, 1); 98 int cap, ret; local 103 cap 156 int cap, ret; local 219 int ret, cap; local 251 int cap, ret; local 274 int cap, ret; local 300 int cap, ret; local 320 int cap, ret; local 498 int cap, ret; local [all...] |
/linux-master/drivers/staging/media/starfive/camss/ |
H A D | stf-capture.c | 78 struct stf_capture *cap = to_stf_capture(video); local 79 struct stf_v_buf *output = &cap->buffers; 90 if (cap->type == STF_CAPTURE_RAW) 92 else if (cap->type == STF_CAPTURE_YUV) 112 struct stf_capture *cap = to_stf_capture(video); local 113 struct stf_v_buf *output = &cap->buffers; 137 struct stf_capture *cap = to_stf_capture(video); local 138 struct stf_v_buf *output = &cap->buffers; 152 struct stf_capture *cap = to_stf_capture(video); local 153 struct stfcamss *stfcamss = cap 160 struct stf_capture *cap = to_stf_capture(video); local 168 struct stf_capture *cap = to_stf_capture(video); local 178 struct stf_capture *cap = to_stf_capture(video); local 219 struct stf_capture *cap = to_stf_capture(video); local 232 struct stf_capture *cap = to_stf_capture(video); local 240 stf_capture_init(struct stfcamss *stfcamss, struct stf_capture *cap) argument 324 struct stf_capture *cap = to_stf_capture(video); local 395 struct stf_capture *cap = container_of(output, struct stf_capture, local 455 struct stf_capture *cap = &stfcamss->captures[STF_CAPTURE_RAW]; local 471 struct stf_capture *cap = &stfcamss->captures[STF_CAPTURE_YUV]; local 490 struct stf_capture *cap = &stfcamss->captures[STF_CAPTURE_YUV]; local 515 struct stf_capture *cap = to_stf_capture(video); local 529 struct stf_capture *cap = to_stf_capture(video); local 561 stf_capture_unregister_one(struct stf_capture *cap) argument [all...] |
/linux-master/kernel/ |
H A D | capability.c | 273 * @cap: The capability to be tested for 281 struct user_namespace *ns, int cap) 286 ret = security_capable(__task_cred(t), ns, cap, CAP_OPT_NONE); 295 * @cap: The capability to be tested for 302 bool has_capability(struct task_struct *t, int cap) argument 304 return has_ns_capability(t, &init_user_ns, cap); 313 * @cap: The capability to be tested for 322 struct user_namespace *ns, int cap) 327 ret = security_capable(__task_cred(t), ns, cap, CAP_OPT_NOAUDIT); 337 * @cap 280 has_ns_capability(struct task_struct *t, struct user_namespace *ns, int cap) argument 321 has_ns_capability_noaudit(struct task_struct *t, struct user_namespace *ns, int cap) argument 345 has_capability_noaudit(struct task_struct *t, int cap) argument 351 ns_capable_common(struct user_namespace *ns, int cap, unsigned int opts) argument 381 ns_capable(struct user_namespace *ns, int cap) argument 399 ns_capable_noaudit(struct user_namespace *ns, int cap) argument 418 ns_capable_setid(struct user_namespace *ns, int cap) argument 434 capable(int cap) argument 453 file_ns_capable(const struct file *file, struct user_namespace *ns, int cap) argument 493 capable_wrt_inode_uidgid(struct mnt_idmap *idmap, const struct inode *inode, int cap) argument [all...] |
/linux-master/arch/arm64/include/asm/ |
H A D | cpucaps.h | 14 cpucap_is_possible(const unsigned int cap) argument 16 compiletime_assert(__builtin_constant_p(cap), 17 "cap must be a constant"); 18 compiletime_assert(cap < ARM64_NCAPS, 19 "cap must be < ARM64_NCAPS"); 21 switch (cap) {
|
/linux-master/drivers/media/test-drivers/vivid/ |
H A D | Makefile | 3 vivid-vid-cap.o vivid-vid-out.o vivid-kthread-cap.o vivid-kthread-out.o \ 5 vivid-rds-gen.o vivid-sdr-cap.o vivid-vbi-cap.o vivid-vbi-out.o \ 6 vivid-osd.o vivid-meta-cap.o vivid-meta-out.o \ 7 vivid-kthread-touch.o vivid-touch-cap.o
|
/linux-master/drivers/pci/pcie/ |
H A D | dpc.c | 49 u16 *cap; local 58 cap = (u16 *)&save_state->cap.data[0]; 59 pci_read_config_word(dev, dev->dpc_cap + PCI_EXP_DPC_CTL, cap); 65 u16 *cap; local 74 cap = (u16 *)&save_state->cap.data[0]; 75 pci_write_config_word(dev, dev->dpc_cap + PCI_EXP_DPC_CTL, *cap); 133 u16 cap = pdev->dpc_cap, status; local 135 pci_read_config_word(pdev, cap 151 u16 cap; local 192 u16 cap = pdev->dpc_cap, dpc_status, first_error; local 262 u16 cap = pdev->dpc_cap, status, source, reason, ext_reason; local 375 u16 cap = pdev->dpc_cap, status; local 391 u16 cap; local 421 u16 ctl, cap; local [all...] |
H A D | ptm.c | 43 u32 cap; local 56 pci_read_config_dword(dev, ptm + PCI_PTM_CAP, &cap); 57 dev->ptm_granularity = FIELD_GET(PCI_PTM_GRANULARITY_MASK, cap); 71 } else if (cap & PCI_PTM_CAP_ROOT) { 92 u32 *cap; local 101 cap = (u32 *)&save_state->cap.data[0]; 102 pci_read_config_dword(dev, ptm + PCI_PTM_CTRL, cap); 109 u32 *cap; local 118 cap [all...] |
/linux-master/drivers/net/ethernet/samsung/sxgbe/ |
H A D | sxgbe_reg.h | 409 #define SXGBE_HW_FEAT_GMII(cap) ((cap & 0x00000002) >> 1) 410 #define SXGBE_HW_FEAT_VLAN_HASH_FILTER(cap) ((cap & 0x00000010) >> 4) 411 #define SXGBE_HW_FEAT_SMA(cap) ((cap & 0x00000020) >> 5) 412 #define SXGBE_HW_FEAT_PMT_TEMOTE_WOP(cap) ((cap & 0x00000040) >> 6) 413 #define SXGBE_HW_FEAT_PMT_MAGIC_PKT(cap) ((cap [all...] |
/linux-master/drivers/infiniband/core/ |
H A D | uverbs_std_types_qp.c | 65 struct ib_uverbs_qp_cap *cap, bool req) 68 attr->cap.max_send_wr = cap->max_send_wr; 69 attr->cap.max_recv_wr = cap->max_recv_wr; 70 attr->cap.max_send_sge = cap->max_send_sge; 71 attr->cap.max_recv_sge = cap->max_recv_sge; 72 attr->cap 64 set_caps(struct ib_qp_init_attr *attr, struct ib_uverbs_qp_cap *cap, bool req) argument 89 struct ib_uverbs_qp_cap cap = {}; local [all...] |
/linux-master/drivers/infiniband/hw/hfi1/ |
H A D | common.h | 45 #define HFI1_CAP_KSET(cap) ({ hfi1_cap_mask |= HFI1_CAP_##cap; hfi1_cap_mask; }) 46 #define HFI1_CAP_KCLEAR(cap) \ 48 hfi1_cap_mask &= ~HFI1_CAP_##cap; \ 51 #define HFI1_CAP_USET(cap) \ 53 hfi1_cap_mask |= (HFI1_CAP_##cap << HFI1_CAP_USER_SHIFT); \ 56 #define HFI1_CAP_UCLEAR(cap) \ 58 hfi1_cap_mask &= ~(HFI1_CAP_##cap << HFI1_CAP_USER_SHIFT); \ 61 #define HFI1_CAP_SET(cap) \ 63 hfi1_cap_mask |= (HFI1_CAP_##cap | (HFI1_CAP [all...] |