/kernel/linux/linux-5.10/drivers/staging/media/rkisp1/ |
H A D | rkisp1-capture.c | 63 void (*config)(struct rkisp1_capture *cap); 64 void (*stop)(struct rkisp1_capture *cap); 65 void (*enable)(struct rkisp1_capture *cap); 66 void (*disable)(struct rkisp1_capture *cap); 67 void (*set_data_path)(struct rkisp1_capture *cap); 68 bool (*is_stopped)(struct rkisp1_capture *cap); 345 int rkisp1_cap_enum_mbus_codes(struct rkisp1_capture *cap, in rkisp1_cap_enum_mbus_codes() argument 348 const struct rkisp1_capture_fmt_cfg *fmts = cap->config->fmts; in rkisp1_cap_enum_mbus_codes() 356 for (i = 0; i < cap->config->fmt_size; i++) { in rkisp1_cap_enum_mbus_codes() 373 static void rkisp1_mi_config_ctrl(struct rkisp1_capture *cap) in rkisp1_mi_config_ctrl() argument 402 rkisp1_irq_frame_end_enable(struct rkisp1_capture *cap) rkisp1_irq_frame_end_enable() argument 410 rkisp1_mp_config(struct rkisp1_capture *cap) rkisp1_mp_config() argument 447 rkisp1_sp_config(struct rkisp1_capture *cap) rkisp1_sp_config() argument 487 rkisp1_mp_disable(struct rkisp1_capture *cap) rkisp1_mp_disable() argument 496 rkisp1_sp_disable(struct rkisp1_capture *cap) rkisp1_sp_disable() argument 504 rkisp1_mp_enable(struct rkisp1_capture *cap) rkisp1_mp_enable() argument 520 rkisp1_sp_enable(struct rkisp1_capture *cap) rkisp1_sp_enable() argument 528 rkisp1_mp_sp_stop(struct rkisp1_capture *cap) rkisp1_mp_sp_stop() argument 537 rkisp1_mp_is_stopped(struct rkisp1_capture *cap) rkisp1_mp_is_stopped() argument 545 rkisp1_sp_is_stopped(struct rkisp1_capture *cap) rkisp1_sp_is_stopped() argument 551 rkisp1_mp_set_data_path(struct rkisp1_capture *cap) rkisp1_mp_set_data_path() argument 560 rkisp1_sp_set_data_path(struct rkisp1_capture *cap) rkisp1_sp_set_data_path() argument 590 rkisp1_dummy_buf_create(struct rkisp1_capture *cap) rkisp1_dummy_buf_create() argument 611 rkisp1_dummy_buf_destroy(struct rkisp1_capture *cap) rkisp1_dummy_buf_destroy() argument 618 rkisp1_set_next_buf(struct rkisp1_capture *cap) rkisp1_set_next_buf() argument 667 rkisp1_handle_buffer(struct rkisp1_capture *cap) rkisp1_handle_buffer() argument 697 struct rkisp1_capture *cap = &rkisp1->capture_devs[i]; rkisp1_capture_isr() local 733 struct rkisp1_capture *cap = queue->drv_priv; rkisp1_vb2_queue_setup() local 758 struct rkisp1_capture *cap = vb->vb2_queue->drv_priv; rkisp1_vb2_buf_queue() local 791 struct rkisp1_capture *cap = vb->vb2_queue->drv_priv; rkisp1_vb2_buf_prepare() local 809 rkisp1_return_all_buffers(struct rkisp1_capture *cap, enum vb2_buffer_state state) rkisp1_return_all_buffers() argument 897 rkisp1_stream_stop(struct rkisp1_capture *cap) rkisp1_stream_stop() argument 916 struct rkisp1_capture *cap = queue->drv_priv; rkisp1_vb2_stop_streaming() local 949 rkisp1_stream_start(struct rkisp1_capture *cap) rkisp1_stream_start() argument 983 struct rkisp1_capture *cap = queue->drv_priv; rkisp1_vb2_start_streaming() local 1098 rkisp1_find_fmt_cfg(const struct rkisp1_capture *cap, const u32 pixelfmt) rkisp1_find_fmt_cfg() argument 1109 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) rkisp1_try_fmt() argument 1145 rkisp1_set_fmt(struct rkisp1_capture *cap, struct v4l2_pix_format_mplane *pixm) rkisp1_set_fmt() argument 1160 struct rkisp1_capture *cap = video_drvdata(file); rkisp1_try_fmt_vid_cap_mplane() local 1170 struct rkisp1_capture *cap = video_drvdata(file); rkisp1_enum_fmt_vid_cap_mplane() local 1198 struct rkisp1_capture *cap = video_drvdata(file); rkisp1_s_fmt_vid_cap_mplane() local 1213 struct rkisp1_capture *cap = video_drvdata(file); rkisp1_g_fmt_vid_cap_mplane() local 1221 rkisp1_querycap(struct file *file, void *priv, struct v4l2_capability *cap) rkisp1_querycap() argument 1258 struct rkisp1_capture *cap = video_get_drvdata(vdev); rkisp1_capture_link_validate() local 1295 rkisp1_unregister_capture(struct rkisp1_capture *cap) rkisp1_unregister_capture() argument 1310 rkisp1_register_capture(struct rkisp1_capture *cap) rkisp1_register_capture() argument 1378 struct rkisp1_capture *cap = &rkisp1->capture_devs[id]; rkisp1_capture_init() local 1407 struct rkisp1_capture *cap; rkisp1_capture_devs_register() local [all...] |
/kernel/linux/linux-5.10/drivers/staging/greybus/ |
H A D | authentication.c | 47 struct gb_cap *cap = container_of(kref, struct gb_cap, kref); in cap_kref_release() local 49 kfree(cap); in cap_kref_release() 53 * All users of cap take a reference (from within list_mutex lock), before 57 static void put_cap(struct gb_cap *cap) in put_cap() argument 59 kref_put(&cap->kref, cap_kref_release); in put_cap() 65 struct gb_cap *cap; in get_cap() local 69 list_for_each_entry(cap, &cap_list, node) { in get_cap() 70 if (&cap->cdev == cdev) { in get_cap() 71 kref_get(&cap->kref); in get_cap() 76 cap in get_cap() 84 cap_get_endpoint_uid(struct gb_cap *cap, u8 *euid) cap_get_endpoint_uid() argument 102 cap_get_ims_certificate(struct gb_cap *cap, u32 class, u32 id, u8 *certificate, u32 *size, u8 *result) cap_get_ims_certificate() argument 140 cap_authenticate(struct gb_cap *cap, u32 auth_type, u8 *uid, u8 *challenge, u8 *result, u8 *auth_response, u32 *signature_size, u8 *signature) cap_authenticate() argument 184 struct gb_cap *cap = get_cap(inode->i_cdev); cap_open() local 197 struct gb_cap *cap = file->private_data; cap_release() local 203 cap_ioctl(struct gb_cap *cap, unsigned int cmd, void __user *buf) cap_ioctl() argument 264 struct gb_cap *cap = file->private_data; cap_ioctl_unlocked() local 300 struct gb_cap *cap; gb_cap_connection_init() local 366 struct gb_cap *cap; gb_cap_connection_exit() local [all...] |
/kernel/linux/linux-6.6/drivers/staging/greybus/ |
H A D | authentication.c | 47 struct gb_cap *cap = container_of(kref, struct gb_cap, kref); in cap_kref_release() local 49 kfree(cap); in cap_kref_release() 53 * All users of cap take a reference (from within list_mutex lock), before 57 static void put_cap(struct gb_cap *cap) in put_cap() argument 59 kref_put(&cap->kref, cap_kref_release); in put_cap() 65 struct gb_cap *cap; in get_cap() local 69 list_for_each_entry(cap, &cap_list, node) { in get_cap() 70 if (&cap->cdev == cdev) { in get_cap() 71 kref_get(&cap->kref); in get_cap() 76 cap in get_cap() 84 cap_get_endpoint_uid(struct gb_cap *cap, u8 *euid) cap_get_endpoint_uid() argument 102 cap_get_ims_certificate(struct gb_cap *cap, u32 class, u32 id, u8 *certificate, u32 *size, u8 *result) cap_get_ims_certificate() argument 140 cap_authenticate(struct gb_cap *cap, u32 auth_type, u8 *uid, u8 *challenge, u8 *result, u8 *auth_response, u32 *signature_size, u8 *signature) cap_authenticate() argument 184 struct gb_cap *cap = get_cap(inode->i_cdev); cap_open() local 197 struct gb_cap *cap = file->private_data; cap_release() local 203 cap_ioctl(struct gb_cap *cap, unsigned int cmd, void __user *buf) cap_ioctl() argument 264 struct gb_cap *cap = file->private_data; cap_ioctl_unlocked() local 300 struct gb_cap *cap; gb_cap_connection_init() local 366 struct gb_cap *cap; gb_cap_connection_exit() local [all...] |
/kernel/linux/linux-6.6/drivers/media/platform/rockchip/rkisp1/ |
H A D | rkisp1-capture.c | 63 void (*config)(struct rkisp1_capture *cap); 64 void (*stop)(struct rkisp1_capture *cap); 65 void (*enable)(struct rkisp1_capture *cap); 66 void (*disable)(struct rkisp1_capture *cap); 67 void (*set_data_path)(struct rkisp1_capture *cap); 68 bool (*is_stopped)(struct rkisp1_capture *cap); 367 int rkisp1_cap_enum_mbus_codes(struct rkisp1_capture *cap, in rkisp1_cap_enum_mbus_codes() argument 370 const struct rkisp1_capture_fmt_cfg *fmts = cap->config->fmts; in rkisp1_cap_enum_mbus_codes() 378 for (i = 0; i < cap->config->fmt_size; i++) { in rkisp1_cap_enum_mbus_codes() 395 static void rkisp1_mi_config_ctrl(struct rkisp1_capture *cap) in rkisp1_mi_config_ctrl() argument 424 rkisp1_irq_frame_end_enable(struct rkisp1_capture *cap) rkisp1_irq_frame_end_enable() argument 432 rkisp1_mp_config(struct rkisp1_capture *cap) rkisp1_mp_config() argument 469 rkisp1_sp_config(struct rkisp1_capture *cap) rkisp1_sp_config() argument 509 rkisp1_mp_disable(struct rkisp1_capture *cap) rkisp1_mp_disable() argument 518 rkisp1_sp_disable(struct rkisp1_capture *cap) rkisp1_sp_disable() argument 526 rkisp1_mp_enable(struct rkisp1_capture *cap) rkisp1_mp_enable() argument 542 rkisp1_sp_enable(struct rkisp1_capture *cap) rkisp1_sp_enable() argument 550 rkisp1_mp_sp_stop(struct rkisp1_capture *cap) rkisp1_mp_sp_stop() argument 558 rkisp1_mp_is_stopped(struct rkisp1_capture *cap) rkisp1_mp_is_stopped() argument 566 rkisp1_sp_is_stopped(struct rkisp1_capture *cap) rkisp1_sp_is_stopped() argument 572 rkisp1_mp_set_data_path(struct rkisp1_capture *cap) rkisp1_mp_set_data_path() argument 581 rkisp1_sp_set_data_path(struct rkisp1_capture *cap) rkisp1_sp_set_data_path() argument 611 rkisp1_dummy_buf_create(struct rkisp1_capture *cap) rkisp1_dummy_buf_create() argument 632 rkisp1_dummy_buf_destroy(struct rkisp1_capture *cap) rkisp1_dummy_buf_destroy() argument 639 rkisp1_set_next_buf(struct rkisp1_capture *cap) rkisp1_set_next_buf() argument 698 rkisp1_handle_buffer(struct rkisp1_capture *cap) rkisp1_handle_buffer() argument 736 struct rkisp1_capture *cap = &rkisp1->capture_devs[i]; rkisp1_capture_isr() local 774 struct rkisp1_capture *cap = queue->drv_priv; rkisp1_vb2_queue_setup() local 799 struct rkisp1_capture *cap = vb->vb2_queue->drv_priv; rkisp1_vb2_buf_init() local 832 struct rkisp1_capture *cap = vb->vb2_queue->drv_priv; rkisp1_vb2_buf_queue() local 841 struct rkisp1_capture *cap = vb->vb2_queue->drv_priv; rkisp1_vb2_buf_prepare() local 859 rkisp1_return_all_buffers(struct rkisp1_capture *cap, enum vb2_buffer_state state) rkisp1_return_all_buffers() argument 888 rkisp1_cap_stream_enable(struct rkisp1_capture *cap) rkisp1_cap_stream_enable() argument 919 rkisp1_cap_stream_disable(struct rkisp1_capture *cap) rkisp1_cap_stream_disable() argument 948 rkisp1_cap_stream_disable(cap); global() variable 973 rkisp1_cap_stream_enable(cap); global() variable 997 rkisp1_cap_stream_disable(cap); global() variable 1004 struct rkisp1_capture *cap = queue->drv_priv; rkisp1_vb2_stop_streaming() local 1030 struct rkisp1_capture *cap = queue->drv_priv; rkisp1_vb2_start_streaming() local 1140 rkisp1_find_fmt_cfg(const struct rkisp1_capture *cap, const u32 pixelfmt) rkisp1_find_fmt_cfg() argument 1151 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) rkisp1_try_fmt() argument 1190 rkisp1_set_fmt(struct rkisp1_capture *cap, struct v4l2_pix_format_mplane *pixm) rkisp1_set_fmt() argument 1205 struct rkisp1_capture *cap = video_drvdata(file); rkisp1_try_fmt_vid_cap_mplane() local 1215 struct rkisp1_capture *cap = video_drvdata(file); rkisp1_enum_fmt_vid_cap_mplane() local 1251 struct rkisp1_capture *cap = video_drvdata(file); rkisp1_enum_framesizes() local 1272 struct rkisp1_capture *cap = video_drvdata(file); rkisp1_s_fmt_vid_cap_mplane() local 1287 struct rkisp1_capture *cap = video_drvdata(file); rkisp1_g_fmt_vid_cap_mplane() local 1295 rkisp1_querycap(struct file *file, void *priv, struct v4l2_capability *cap) rkisp1_querycap() argument 1330 struct rkisp1_capture *cap = video_get_drvdata(vdev); rkisp1_capture_link_validate() local 1375 rkisp1_unregister_capture(struct rkisp1_capture *cap) rkisp1_unregister_capture() argument 1394 rkisp1_register_capture(struct rkisp1_capture *cap) rkisp1_register_capture() argument 1467 struct rkisp1_capture *cap = &rkisp1->capture_devs[id]; rkisp1_capture_init() local 1500 struct rkisp1_capture *cap = &rkisp1->capture_devs[i]; rkisp1_capture_devs_register() local [all...] |
/kernel/linux/linux-5.10/drivers/vfio/pci/ |
H A D | vfio_pci_zdev.c | 30 struct vfio_device_info_cap_zpci_base cap = { in zpci_base_cap() local 42 return vfio_info_add_capability(caps, &cap.header, sizeof(cap)); in zpci_base_cap() 51 struct vfio_device_info_cap_zpci_group cap = { in zpci_group_cap() local 63 return vfio_info_add_capability(caps, &cap.header, sizeof(cap)); in zpci_group_cap() 72 struct vfio_device_info_cap_zpci_util *cap; in zpci_util_cap() local 73 int cap_size = sizeof(*cap) + CLP_UTIL_STR_LEN; in zpci_util_cap() 76 cap = kmalloc(cap_size, GFP_KERNEL); in zpci_util_cap() 77 if (!cap) in zpci_util_cap() 98 struct vfio_device_info_cap_zpci_pfip *cap; zpci_pfip_cap() local [all...] |
/kernel/linux/linux-6.6/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); in check_irq_capabilities() 29 MINIMAL_FEATURE_IOMMU(b, cap, CAP_MAMV_MASK); in check_dmar_capabilities() 30 MINIMAL_FEATURE_IOMMU(b, cap, CAP_NFR_MASK); in check_dmar_capabilities() 31 MINIMAL_FEATURE_IOMMU(b, cap, CAP_SLLPS_MASK); in check_dmar_capabilities() 32 MINIMAL_FEATURE_IOMMU(b, cap, CAP_FRO_MASK); in check_dmar_capabilities() 33 MINIMAL_FEATURE_IOMMU(b, cap, CAP_MGAW_MASK); in check_dmar_capabilities() 34 MINIMAL_FEATURE_IOMMU(b, cap, CAP_SAGAW_MASK); in check_dmar_capabilities() 35 MINIMAL_FEATURE_IOMMU(b, cap, CAP_NDOMS_MASK); in check_dmar_capabilities() 40 CHECK_FEATURE_MISMATCH(a, b, cap, fl5lp_support, CAP_FL5LP_MASK); in check_dmar_capabilities() 41 CHECK_FEATURE_MISMATCH(a, b, cap, fl1gp_suppor in check_dmar_capabilities() [all...] |
/kernel/linux/linux-6.6/drivers/vfio/pci/ |
H A D | vfio_pci_zdev.c | 25 struct vfio_device_info_cap_zpci_base cap = { in zpci_base_cap() local 38 return vfio_info_add_capability(caps, &cap.header, sizeof(cap)); in zpci_base_cap() 46 struct vfio_device_info_cap_zpci_group cap = { in zpci_group_cap() local 60 return vfio_info_add_capability(caps, &cap.header, sizeof(cap)); in zpci_group_cap() 68 struct vfio_device_info_cap_zpci_util *cap; in zpci_util_cap() local 69 int cap_size = sizeof(*cap) + CLP_UTIL_STR_LEN; in zpci_util_cap() 72 cap = kmalloc(cap_size, GFP_KERNEL); in zpci_util_cap() 73 if (!cap) in zpci_util_cap() 93 struct vfio_device_info_cap_zpci_pfip *cap; zpci_pfip_cap() local [all...] |
/kernel/linux/linux-5.10/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...] |
/kernel/linux/linux-6.6/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...] |
/kernel/linux/linux-5.10/drivers/media/platform/qcom/venus/ |
H A D | hfi_parser.c | 14 typedef void (*func)(struct venus_caps *cap, const void *data, 19 struct venus_caps *caps = core->caps, *cap; in init_codecs() local 26 cap = &caps[core->codecs_count++]; in init_codecs() 27 cap->codec = BIT(bit); in init_codecs() 28 cap->domain = VIDC_SESSION_TYPE_DEC; in init_codecs() 29 cap->valid = false; in init_codecs() 33 cap = &caps[core->codecs_count++]; in init_codecs() 34 cap->codec = BIT(bit); in init_codecs() 35 cap->domain = VIDC_SESSION_TYPE_ENC; in init_codecs() 36 cap in init_codecs() 44 struct venus_caps *cap; for_each_codec() local 57 fill_buf_mode(struct venus_caps *cap, const void *data, unsigned int num) fill_buf_mode() argument 87 fill_profile_level(struct venus_caps *cap, const void *data, unsigned int num) fill_profile_level() argument 116 fill_caps(struct venus_caps *cap, const void *data, unsigned int num) fill_caps() argument 131 struct hfi_capability *cap = caps->data; parse_caps() local 144 fill_raw_fmts(struct venus_caps *cap, const void *fmts, unsigned int num_fmts) fill_raw_fmts() argument 229 struct venus_caps *caps, *cap; parser_fini() local [all...] |
/kernel/linux/linux-6.6/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; in init_codecs() local 26 cap = &caps[core->codecs_count++]; in init_codecs() 27 cap->codec = BIT(bit); in init_codecs() 28 cap->domain = VIDC_SESSION_TYPE_DEC; in init_codecs() 29 cap->valid = false; in init_codecs() 33 cap = &caps[core->codecs_count++]; in init_codecs() 34 cap->codec = BIT(bit); in init_codecs() 35 cap->domain = VIDC_SESSION_TYPE_ENC; in init_codecs() 36 cap in init_codecs() 44 struct hfi_plat_caps *cap; for_each_codec() local 57 fill_buf_mode(struct hfi_plat_caps *cap, const void *data, unsigned int num) fill_buf_mode() argument 87 fill_profile_level(struct hfi_plat_caps *cap, const void *data, unsigned int num) fill_profile_level() argument 116 fill_caps(struct hfi_plat_caps *cap, const void *data, unsigned int num) fill_caps() argument 131 struct hfi_capability *cap = caps->data; parse_caps() local 144 fill_raw_fmts(struct hfi_plat_caps *cap, const void *fmts, unsigned int num_fmts) fill_raw_fmts() argument 229 struct hfi_plat_caps *caps, *cap; parser_fini() local [all...] |
/kernel/linux/linux-5.10/kernel/ |
H A D | capability.c | 171 kdata[i].effective = pE.cap[i]; in SYSCALL_DEFINE2() 172 kdata[i].permitted = pP.cap[i]; in SYSCALL_DEFINE2() 173 kdata[i].inheritable = pI.cap[i]; in SYSCALL_DEFINE2() 250 effective.cap[i] = kdata[i].effective; in SYSCALL_DEFINE2() 251 permitted.cap[i] = kdata[i].permitted; in SYSCALL_DEFINE2() 252 inheritable.cap[i] = kdata[i].inheritable; in SYSCALL_DEFINE2() 255 effective.cap[i] = 0; in SYSCALL_DEFINE2() 256 permitted.cap[i] = 0; in SYSCALL_DEFINE2() 257 inheritable.cap[i] = 0; in SYSCALL_DEFINE2() 261 effective.cap[CAP_LAST_U3 in SYSCALL_DEFINE2() 294 has_ns_capability(struct task_struct *t, struct user_namespace *ns, int cap) has_ns_capability() argument 316 has_capability(struct task_struct *t, int cap) has_capability() argument 335 has_ns_capability_noaudit(struct task_struct *t, struct user_namespace *ns, int cap) has_ns_capability_noaudit() argument 359 has_capability_noaudit(struct task_struct *t, int cap) has_capability_noaudit() argument 364 ns_capable_common(struct user_namespace *ns, int cap, unsigned int opts) ns_capable_common() argument 394 ns_capable(struct user_namespace *ns, int cap) ns_capable() argument 412 ns_capable_noaudit(struct user_namespace *ns, int cap) ns_capable_noaudit() argument 431 ns_capable_setid(struct user_namespace *ns, int cap) ns_capable_setid() argument 447 capable(int cap) capable() argument 466 file_ns_capable(const struct file *file, struct user_namespace *ns, int cap) file_ns_capable() argument 502 capable_wrt_inode_uidgid(const struct inode *inode, int cap) capable_wrt_inode_uidgid() argument [all...] |
/kernel/linux/linux-5.10/include/linux/ |
H A D | capability.h | 25 __u32 cap[_KERNEL_CAPABILITY_U32S]; member 98 #define cap_raise(c, flag) ((c).cap[CAP_TO_INDEX(flag)] |= CAP_TO_MASK(flag)) 99 #define cap_lower(c, flag) ((c).cap[CAP_TO_INDEX(flag)] &= ~CAP_TO_MASK(flag)) 100 #define cap_raised(c, flag) ((c).cap[CAP_TO_INDEX(flag)] & CAP_TO_MASK(flag)) 106 c.cap[__capi] = a.cap[__capi] OP b.cap[__capi]; \ 114 c.cap[__capi] = OP a.cap[__capi]; \ 153 if (a.cap[__cap in cap_isclear() 215 has_capability(struct task_struct *t, int cap) has_capability() argument 219 has_ns_capability(struct task_struct *t, struct user_namespace *ns, int cap) has_ns_capability() argument 224 has_capability_noaudit(struct task_struct *t, int cap) has_capability_noaudit() argument 228 has_ns_capability_noaudit(struct task_struct *t, struct user_namespace *ns, int cap) has_ns_capability_noaudit() argument 233 capable(int cap) capable() argument 237 ns_capable(struct user_namespace *ns, int cap) ns_capable() argument 241 ns_capable_noaudit(struct user_namespace *ns, int cap) ns_capable_noaudit() argument 245 ns_capable_setid(struct user_namespace *ns, int cap) ns_capable_setid() argument [all...] |
/kernel/linux/linux-5.10/drivers/pci/pcie/ |
H A D | dpc.c | 45 u16 *cap; in pci_save_dpc_state() local 54 cap = (u16 *)&save_state->cap.data[0]; in pci_save_dpc_state() 55 pci_read_config_word(dev, dev->dpc_cap + PCI_EXP_DPC_CTL, cap); in pci_save_dpc_state() 61 u16 *cap; in pci_restore_dpc_state() local 70 cap = (u16 *)&save_state->cap.data[0]; in pci_restore_dpc_state() 71 pci_write_config_word(dev, dev->dpc_cap + PCI_EXP_DPC_CTL, *cap); in pci_restore_dpc_state() 129 u16 cap = pdev->dpc_cap, status; in dpc_wait_rp_inactive() local 131 pci_read_config_word(pdev, cap in dpc_wait_rp_inactive() 147 u16 cap; dpc_reset_link() local 189 u16 cap = pdev->dpc_cap, dpc_status, first_error; dpc_process_rp_pio_error() local 265 u16 cap = pdev->dpc_cap, status, source, reason, ext_reason; dpc_process_error() local 311 u16 cap = pdev->dpc_cap, status; dpc_irq() local 327 u16 cap; pci_dpc_init() local 352 u16 ctl, cap; dpc_probe() local [all...] |
/kernel/linux/linux-6.6/drivers/pci/pcie/ |
H A D | dpc.c | 45 u16 *cap; in pci_save_dpc_state() local 54 cap = (u16 *)&save_state->cap.data[0]; in pci_save_dpc_state() 55 pci_read_config_word(dev, dev->dpc_cap + PCI_EXP_DPC_CTL, cap); in pci_save_dpc_state() 61 u16 *cap; in pci_restore_dpc_state() local 70 cap = (u16 *)&save_state->cap.data[0]; in pci_restore_dpc_state() 71 pci_write_config_word(dev, dev->dpc_cap + PCI_EXP_DPC_CTL, *cap); in pci_restore_dpc_state() 129 u16 cap = pdev->dpc_cap, status; in dpc_wait_rp_inactive() local 131 pci_read_config_word(pdev, cap in dpc_wait_rp_inactive() 147 u16 cap; dpc_reset_link() local 188 u16 cap = pdev->dpc_cap, dpc_status, first_error; dpc_process_rp_pio_error() local 264 u16 cap = pdev->dpc_cap, status, source, reason, ext_reason; dpc_process_error() local 310 u16 cap = pdev->dpc_cap, status; dpc_irq() local 326 u16 cap; pci_dpc_init() local 356 u16 ctl, cap; dpc_probe() local [all...] |
/kernel/linux/linux-6.6/drivers/net/wireless/ath/wcn36xx/ |
H A D | firmware.c | 82 enum wcn36xx_firmware_feat_caps cap) in wcn36xx_firmware_set_feat_caps() 86 if (cap < 0 || cap > 127) { in wcn36xx_firmware_set_feat_caps() 87 wcn36xx_warn("error cap idx %d\n", cap); in wcn36xx_firmware_set_feat_caps() 91 arr_idx = cap / 32; in wcn36xx_firmware_set_feat_caps() 92 bit_idx = cap % 32; in wcn36xx_firmware_set_feat_caps() 97 enum wcn36xx_firmware_feat_caps cap) in wcn36xx_firmware_get_feat_caps() 101 if (cap < 0 || cap > 12 in wcn36xx_firmware_get_feat_caps() 81 wcn36xx_firmware_set_feat_caps(u32 *bitmap, enum wcn36xx_firmware_feat_caps cap) wcn36xx_firmware_set_feat_caps() argument 96 wcn36xx_firmware_get_feat_caps(u32 *bitmap, enum wcn36xx_firmware_feat_caps cap) wcn36xx_firmware_get_feat_caps() argument 112 wcn36xx_firmware_clear_feat_caps(u32 *bitmap, enum wcn36xx_firmware_feat_caps cap) wcn36xx_firmware_clear_feat_caps() argument [all...] |
/kernel/linux/linux-5.10/include/linux/mlx5/ |
H A D | device.h | 1189 #define MLX5_CAP_GEN(mdev, cap) \ 1190 MLX5_GET(cmd_hca_cap, mdev->caps.hca_cur[MLX5_CAP_GENERAL], cap) 1192 #define MLX5_CAP_GEN_64(mdev, cap) \ 1193 MLX5_GET64(cmd_hca_cap, mdev->caps.hca_cur[MLX5_CAP_GENERAL], cap) 1195 #define MLX5_CAP_GEN_MAX(mdev, cap) \ 1196 MLX5_GET(cmd_hca_cap, mdev->caps.hca_max[MLX5_CAP_GENERAL], cap) 1198 #define MLX5_CAP_ETH(mdev, cap) \ 1200 mdev->caps.hca_cur[MLX5_CAP_ETHERNET_OFFLOADS], cap) 1202 #define MLX5_CAP_ETH_MAX(mdev, cap) \ 1204 mdev->caps.hca_max[MLX5_CAP_ETHERNET_OFFLOADS], cap) [all...] |
/kernel/linux/linux-5.10/drivers/char/tpm/ |
H A D | tpm-sysfs.c | 85 cap_t cap; in pcrs_show() local 94 if (tpm1_getcap(chip, TPM_CAP_PROP_PCR, &cap, in pcrs_show() 96 sizeof(cap.num_pcrs))) { in pcrs_show() 101 num_pcrs = be32_to_cpu(cap.num_pcrs); in pcrs_show() 122 cap_t cap; in enabled_show() local 127 if (tpm1_getcap(chip, TPM_CAP_FLAG_PERM, &cap, in enabled_show() 129 sizeof(cap.perm_flags))) in enabled_show() 132 rc = sprintf(buf, "%d\n", !cap.perm_flags.disable); in enabled_show() 144 cap_t cap; in active_show() local 149 if (tpm1_getcap(chip, TPM_CAP_FLAG_PERM, &cap, in active_show() 166 cap_t cap; owned_show() local 188 cap_t cap; temp_deactivated_show() local 212 cap_t cap; caps_show() local [all...] |
/kernel/linux/linux-6.6/drivers/infiniband/core/ |
H A D | uverbs_std_types_qp.c | 65 struct ib_uverbs_qp_cap *cap, bool req) in set_caps() 68 attr->cap.max_send_wr = cap->max_send_wr; in set_caps() 69 attr->cap.max_recv_wr = cap->max_recv_wr; in set_caps() 70 attr->cap.max_send_sge = cap->max_send_sge; in set_caps() 71 attr->cap.max_recv_sge = cap->max_recv_sge; in set_caps() 72 attr->cap in set_caps() 64 set_caps(struct ib_qp_init_attr *attr, struct ib_uverbs_qp_cap *cap, bool req) set_caps() argument 89 struct ib_uverbs_qp_cap cap = {}; UVERBS_METHOD_QP_CREATE() local [all...] |
/kernel/linux/linux-6.6/include/linux/mlx5/ |
H A D | device.h | 1201 /* Any new cap addition must update mlx5_hca_caps_alloc() to allocate 1260 #define MLX5_CAP_GEN(mdev, cap) \ 1261 MLX5_GET(cmd_hca_cap, mdev->caps.hca[MLX5_CAP_GENERAL]->cur, cap) 1263 #define MLX5_CAP_GEN_64(mdev, cap) \ 1264 MLX5_GET64(cmd_hca_cap, mdev->caps.hca[MLX5_CAP_GENERAL]->cur, cap) 1266 #define MLX5_CAP_GEN_MAX(mdev, cap) \ 1267 MLX5_GET(cmd_hca_cap, mdev->caps.hca[MLX5_CAP_GENERAL]->max, cap) 1269 #define MLX5_CAP_GEN_2(mdev, cap) \ 1270 MLX5_GET(cmd_hca_cap_2, mdev->caps.hca[MLX5_CAP_GENERAL_2]->cur, cap) 1272 #define MLX5_CAP_GEN_2_64(mdev, cap) \ [all...] |
/kernel/linux/linux-6.6/fs/ceph/ |
H A D | caps.c | 30 * If the client holds a *_SHARED cap, the client has a coherent value 54 * Generate readable cap strings for debugging output. 137 struct ceph_cap *cap; in ceph_caps_finalize() local 141 cap = list_first_entry(&mdsc->caps_list, in ceph_caps_finalize() 143 list_del(&cap->caps_item); in ceph_caps_finalize() 144 kmem_cache_free(ceph_cap_cachep, cap); in ceph_caps_finalize() 170 struct ceph_cap *cap; in __ceph_unreserve_caps() local 180 cap = list_first_entry(&mdsc->caps_list, in __ceph_unreserve_caps() 182 list_del(&cap->caps_item); in __ceph_unreserve_caps() 183 kmem_cache_free(ceph_cap_cachep, cap); in __ceph_unreserve_caps() 206 struct ceph_cap *cap; ceph_reserve_caps() local 331 struct ceph_cap *cap = NULL; ceph_get_cap() local 383 ceph_put_cap(struct ceph_mds_client *mdsc, struct ceph_cap *cap) ceph_put_cap() argument 437 struct ceph_cap *cap; __get_cap_for_mds() local 454 struct ceph_cap *cap; ceph_get_cap_for_mds() local 470 struct ceph_cap *cap = NULL; __insert_cap_node() local 562 __check_cap_issue(struct ceph_inode_info *ci, struct ceph_cap *cap, unsigned issued) __check_cap_issue() argument 640 struct ceph_cap *cap; ceph_add_cap() local 767 __cap_is_valid(struct ceph_cap *cap) __cap_is_valid() argument 793 struct ceph_cap *cap; __ceph_caps_issued() local 826 struct ceph_cap *cap; __ceph_caps_issued_other() local 844 __touch_cap(struct ceph_cap *cap) __touch_cap() argument 867 struct ceph_cap *cap; __ceph_caps_issued_mask() local 942 struct ceph_cap *cap; __ceph_caps_revoking_other() local 1073 struct ceph_cap *cap; __ceph_caps_mds_wanted() local 1107 __ceph_remove_cap(struct ceph_cap *cap, bool queue_release) __ceph_remove_cap() argument 1181 ceph_remove_cap(struct ceph_cap *cap, bool queue_release) ceph_remove_cap() argument 1352 struct ceph_cap *cap = rb_entry(p, struct ceph_cap, ci_node); __ceph_remove_caps() local 1367 __prep_cap(struct cap_msg_args *arg, struct ceph_cap *cap, int op, int flags, int used, int want, int retain, int flushing, u64 flush_tid, u64 oldest_flush_tid) __prep_cap() argument 1642 struct ceph_cap *cap = ci->i_auth_cap; global() variable 1973 struct ceph_cap *cap; ceph_check_caps() local 2244 struct ceph_cap *cap = ci->i_auth_cap; try_flush_caps() local 2515 struct ceph_cap *cap; global() variable 2593 struct ceph_cap *cap; ceph_early_kick_flushing_caps() local 2641 struct ceph_cap *cap; ceph_kick_flushing_caps() local 2673 struct ceph_cap *cap = ci->i_auth_cap; ceph_kick_flushing_inode_caps() local 3975 struct ceph_cap *cap, *tcap, *new_cap = NULL; handle_cap_export() local 4108 struct ceph_cap *cap, *ocap, *new_cap = NULL; handle_cap_import() local 4233 struct ceph_cap *cap; ceph_handle_caps() local 4696 struct ceph_cap *cap; ceph_encode_inode_release() local 4854 ceph_purge_inode_cap(struct inode *inode, struct ceph_cap *cap, bool *invalidate) ceph_purge_inode_cap() argument [all...] |
/kernel/linux/linux-5.10/fs/ceph/ |
H A D | caps.c | 28 * If the client holds a *_SHARED cap, the client has a coherent value 52 * Generate readable cap strings for debugging output. 135 struct ceph_cap *cap; in ceph_caps_finalize() local 139 cap = list_first_entry(&mdsc->caps_list, in ceph_caps_finalize() 141 list_del(&cap->caps_item); in ceph_caps_finalize() 142 kmem_cache_free(ceph_cap_cachep, cap); in ceph_caps_finalize() 168 struct ceph_cap *cap; in __ceph_unreserve_caps() local 178 cap = list_first_entry(&mdsc->caps_list, in __ceph_unreserve_caps() 180 list_del(&cap->caps_item); in __ceph_unreserve_caps() 181 kmem_cache_free(ceph_cap_cachep, cap); in __ceph_unreserve_caps() 204 struct ceph_cap *cap; ceph_reserve_caps() local 329 struct ceph_cap *cap = NULL; ceph_get_cap() local 381 ceph_put_cap(struct ceph_mds_client *mdsc, struct ceph_cap *cap) ceph_put_cap() argument 435 struct ceph_cap *cap; __get_cap_for_mds() local 452 struct ceph_cap *cap; ceph_get_cap_for_mds() local 468 struct ceph_cap *cap = NULL; __insert_cap_node() local 560 __check_cap_issue(struct ceph_inode_info *ci, struct ceph_cap *cap, unsigned issued) __check_cap_issue() argument 638 struct ceph_cap *cap; ceph_add_cap() local 783 __cap_is_valid(struct ceph_cap *cap) __cap_is_valid() argument 811 struct ceph_cap *cap; __ceph_caps_issued() local 844 struct ceph_cap *cap; __ceph_caps_issued_other() local 862 __touch_cap(struct ceph_cap *cap) __touch_cap() argument 885 struct ceph_cap *cap; __ceph_caps_issued_mask() local 960 struct ceph_cap *cap; __ceph_caps_revoking_other() local 1091 struct ceph_cap *cap; __ceph_caps_mds_wanted() local 1139 __ceph_remove_cap(struct ceph_cap *cap, bool queue_release) __ceph_remove_cap() argument 1338 struct ceph_cap *cap = rb_entry(p, struct ceph_cap, ci_node); __ceph_remove_caps() local 1353 __prep_cap(struct cap_msg_args *arg, struct ceph_cap *cap, int op, int flags, int used, int want, int retain, int flushing, u64 flush_tid, u64 oldest_flush_tid) __prep_cap() argument 1592 struct ceph_cap *cap = ci->i_auth_cap; global() variable 1930 struct ceph_cap *cap; ceph_check_caps() local 2224 struct ceph_cap *cap = ci->i_auth_cap; try_flush_caps() local 2501 struct ceph_cap *cap; global() variable 2575 struct ceph_cap *cap; ceph_early_kick_flushing_caps() local 2623 struct ceph_cap *cap; ceph_kick_flushing_caps() local 2655 struct ceph_cap *cap = ci->i_auth_cap; ceph_kick_flushing_inode_caps() local 3890 struct ceph_cap *cap, *tcap, *new_cap = NULL; handle_cap_export() local 4020 struct ceph_cap *cap, *ocap, *new_cap = NULL; handle_cap_import() local 4099 struct ceph_cap *cap; ceph_handle_caps() local 4526 struct ceph_cap *cap; ceph_encode_inode_release() local [all...] |
/kernel/linux/linux-6.6/drivers/thunderbolt/ |
H A D | lc.c | 53 int cap, ret; in tb_lc_set_port_configured() local 58 cap = find_port_lc_cap(port); in tb_lc_set_port_configured() 59 if (cap < 0) in tb_lc_set_port_configured() 60 return cap; in tb_lc_set_port_configured() 62 ret = tb_sw_read(sw, &ctrl, TB_CFG_SWITCH, cap + TB_LC_SX_CTRL, 1); in tb_lc_set_port_configured() 82 return tb_sw_write(sw, &ctrl, TB_CFG_SWITCH, cap + TB_LC_SX_CTRL, 1); in tb_lc_set_port_configured() 111 int cap, ret; in tb_lc_set_xdomain_configured() local 116 cap = find_port_lc_cap(port); in tb_lc_set_xdomain_configured() 117 if (cap < 0) in tb_lc_set_xdomain_configured() 118 return cap; in tb_lc_set_xdomain_configured() 174 int ret, cap; tb_lc_start_lane_initialization() local 206 int cap, ret; tb_lc_is_clx_supported() local 229 int cap, ret; tb_lc_is_usb_plugged() local 255 int cap, ret; tb_lc_is_xhci_connected() local 275 int cap, ret; __tb_lc_xhci_connect() local 453 int cap, ret; tb_lc_lane_bonding_possible() local [all...] |
/kernel/linux/linux-6.6/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) in has_capability() argument 158 struct user_namespace *ns, int cap) in has_ns_capability() 157 has_ns_capability(struct task_struct *t, struct user_namespace *ns, int cap) has_ns_capability() argument 162 has_capability_noaudit(struct task_struct *t, int cap) has_capability_noaudit() argument 166 has_ns_capability_noaudit(struct task_struct *t, struct user_namespace *ns, int cap) has_ns_capability_noaudit() argument 171 capable(int cap) capable() argument 175 ns_capable(struct user_namespace *ns, int cap) ns_capable() argument 179 ns_capable_noaudit(struct user_namespace *ns, int cap) ns_capable_noaudit() argument 183 ns_capable_setid(struct user_namespace *ns, int cap) ns_capable_setid() argument [all...] |