Home
last modified time | relevance | path

Searched refs:cap (Results 1 – 25 of 1162) sorted by relevance

12345678910>>...47

/kernel/linux/linux-5.10/drivers/staging/media/rkisp1/
Drkisp1-capture.c63 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
[all …]
/kernel/linux/linux-5.10/drivers/staging/greybus/
Dauthentication.c47 struct gb_cap *cap = container_of(kref, struct gb_cap, kref); in cap_kref_release() local
49 kfree(cap); in cap_kref_release()
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 = NULL; in get_cap()
81 return cap; in get_cap()
[all …]
/kernel/linux/linux-5.10/drivers/net/ethernet/samsung/sxgbe/
Dsxgbe_reg.h409 #define SXGBE_HW_FEAT_GMII(cap) ((cap & 0x00000002) >> 1) argument
410 #define SXGBE_HW_FEAT_VLAN_HASH_FILTER(cap) ((cap & 0x00000010) >> 4) argument
411 #define SXGBE_HW_FEAT_SMA(cap) ((cap & 0x00000020) >> 5) argument
412 #define SXGBE_HW_FEAT_PMT_TEMOTE_WOP(cap) ((cap & 0x00000040) >> 6) argument
413 #define SXGBE_HW_FEAT_PMT_MAGIC_PKT(cap) ((cap & 0x00000080) >> 7) argument
414 #define SXGBE_HW_FEAT_RMON(cap) ((cap & 0x00000100) >> 8) argument
415 #define SXGBE_HW_FEAT_ARP_OFFLOAD(cap) ((cap & 0x00000200) >> 9) argument
416 #define SXGBE_HW_FEAT_IEEE1500_2008(cap) ((cap & 0x00001000) >> 12) argument
417 #define SXGBE_HW_FEAT_EEE(cap) ((cap & 0x00002000) >> 13) argument
418 #define SXGBE_HW_FEAT_TX_CSUM_OFFLOAD(cap) ((cap & 0x00004000) >> 14) argument
[all …]
/kernel/linux/linux-5.10/drivers/vfio/pci/
Dvfio_pci_zdev.c30 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()
80 cap->header.id = VFIO_DEVICE_INFO_CAP_ZPCI_UTIL; in zpci_util_cap()
81 cap->header.version = 1; in zpci_util_cap()
[all …]
/kernel/linux/linux-5.10/kernel/
Dcapability.c171 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_U32] &= CAP_LAST_U32_VALID_MASK; in SYSCALL_DEFINE2()
[all …]
/kernel/linux/linux-5.10/drivers/pci/pcie/
Ddpc.c45 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 + PCI_EXP_DPC_STATUS, &status); in dpc_wait_rp_inactive()
135 pci_read_config_word(pdev, cap + PCI_EXP_DPC_STATUS, &status); in dpc_wait_rp_inactive()
147 u16 cap; in dpc_reset_link() local
[all …]
/kernel/linux/linux-5.10/drivers/media/platform/qcom/venus/
Dhfi_parser.c14 typedef void (*func)(struct venus_caps *cap, const void *data,
19 struct venus_caps *caps = core->caps, *cap; in init_codecs() local
23 cap = &caps[core->codecs_count++]; in init_codecs()
24 cap->codec = BIT(bit); in init_codecs()
25 cap->domain = VIDC_SESSION_TYPE_DEC; in init_codecs()
26 cap->valid = false; in init_codecs()
30 cap = &caps[core->codecs_count++]; in init_codecs()
31 cap->codec = BIT(bit); in init_codecs()
32 cap->domain = VIDC_SESSION_TYPE_ENC; in init_codecs()
33 cap->valid = false; in init_codecs()
[all …]
/kernel/linux/linux-5.10/include/linux/
Dcapability.h25 __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[__capi] != 0) in cap_isclear()
204 extern bool has_capability(struct task_struct *t, int cap);
206 struct user_namespace *ns, int cap);
207 extern bool has_capability_noaudit(struct task_struct *t, int cap);
[all …]
/kernel/linux/linux-5.10/include/linux/mlx5/
Ddevice.h1189 #define MLX5_CAP_GEN(mdev, cap) \ argument
1190 MLX5_GET(cmd_hca_cap, mdev->caps.hca_cur[MLX5_CAP_GENERAL], cap)
1192 #define MLX5_CAP_GEN_64(mdev, cap) \ argument
1193 MLX5_GET64(cmd_hca_cap, mdev->caps.hca_cur[MLX5_CAP_GENERAL], cap)
1195 #define MLX5_CAP_GEN_MAX(mdev, cap) \ argument
1196 MLX5_GET(cmd_hca_cap, mdev->caps.hca_max[MLX5_CAP_GENERAL], cap)
1198 #define MLX5_CAP_ETH(mdev, cap) \ argument
1200 mdev->caps.hca_cur[MLX5_CAP_ETHERNET_OFFLOADS], cap)
1202 #define MLX5_CAP_ETH_MAX(mdev, cap) \ argument
1204 mdev->caps.hca_max[MLX5_CAP_ETHERNET_OFFLOADS], cap)
[all …]
/kernel/linux/linux-5.10/fs/ceph/
Dcaps.c135 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; in ceph_reserve_caps() local
229 cap = kmem_cache_alloc(ceph_cap_cachep, GFP_NOFS); in ceph_reserve_caps()
[all …]
/kernel/linux/linux-5.10/drivers/char/tpm/
Dtpm-sysfs.c85 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()
[all …]
/kernel/linux/linux-5.10/security/apparmor/
Dcapability.c49 audit_log_untrustedstring(ab, capability_names[sa->u.cap]); in audit_cb()
65 int cap, int error) in audit_caps() argument
75 !cap_raised(profile->caps.audit, cap))) in audit_caps()
79 cap_raised(profile->caps.kill, cap)) { in audit_caps()
81 } else if (cap_raised(profile->caps.quiet, cap) && in audit_caps()
90 if (profile == ent->profile && cap_raised(ent->caps, cap)) { in audit_caps()
98 cap_raise(ent->caps, cap); in audit_caps()
114 static int profile_capable(struct aa_profile *profile, int cap, in profile_capable() argument
119 if (cap_raised(profile->caps.allow, cap) && in profile_capable()
120 !cap_raised(profile->caps.denied, cap)) in profile_capable()
[all …]
/kernel/linux/linux-5.10/drivers/infiniband/core/
Duverbs_std_types_qp.c65 struct ib_uverbs_qp_cap *cap, bool req) in set_caps() argument
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.max_inline_data = cap->max_inline_data; in set_caps()
74 cap->max_send_wr = attr->cap.max_send_wr; in set_caps()
75 cap->max_recv_wr = attr->cap.max_recv_wr; in set_caps()
76 cap->max_send_sge = attr->cap.max_send_sge; in set_caps()
77 cap->max_recv_sge = attr->cap.max_recv_sge; in set_caps()
[all …]
/kernel/linux/linux-5.10/drivers/thunderbolt/
Ddebugfs.c255 struct tb_port *port, unsigned int cap, u8 cap_id, in cap_show() argument
265 ret = tb_port_read(port, data, TB_CFG_PORT, cap + offset, in cap_show()
268 ret = tb_sw_read(sw, data, TB_CFG_SWITCH, cap + offset, dwords); in cap_show()
271 cap + offset); in cap_show()
273 seq_printf(s, "0x%04x ...\n", cap + offset + 1); in cap_show()
279 cap + offset + i, offset + i, in cap_show()
289 unsigned int cap) in port_cap_show() argument
296 ret = tb_port_read(port, &header, TB_CFG_PORT, cap, 1); in port_cap_show()
298 seq_printf(s, "0x%04x <capability read failed>\n", cap); in port_cap_show()
302 switch (header.basic.cap) { in port_cap_show()
[all …]
Dcap.c87 static int __tb_port_find_cap(struct tb_port *port, enum tb_port_cap cap) in __tb_port_find_cap() argument
103 if (header.basic.cap == cap) in __tb_port_find_cap()
119 int tb_port_find_cap(struct tb_port *port, enum tb_port_cap cap) in tb_port_find_cap() argument
127 ret = __tb_port_find_cap(port, cap); in tb_port_find_cap()
157 switch (header.basic.cap) { in tb_switch_next_cap()
171 header.basic.cap, offset); in tb_switch_next_cap()
188 int tb_switch_find_cap(struct tb_switch *sw, enum tb_switch_cap cap) in tb_switch_find_cap() argument
204 if (header.basic.cap == cap) in tb_switch_find_cap()
237 if (header.extended_short.cap == TB_SWITCH_CAP_VSE && in tb_switch_find_vse_cap()
Dtmu.c46 sw->tmu.cap + TMU_RTR_CS_0, 1); in tb_switch_tmu_ucap_supported()
59 sw->tmu.cap + TMU_RTR_CS_3, 1); in tb_switch_tmu_rate_read()
73 sw->tmu.cap + TMU_RTR_CS_3, 1); in tb_switch_tmu_rate_write()
81 sw->tmu.cap + TMU_RTR_CS_3, 1); in tb_switch_tmu_rate_write()
137 sw->tmu.cap + TMU_RTR_CS_0, 1); in tb_switch_tmu_set_time_disruption()
147 sw->tmu.cap + TMU_RTR_CS_0, 1); in tb_switch_tmu_set_time_disruption()
168 sw->tmu.cap = ret; in tb_switch_tmu_init()
171 int cap; in tb_switch_tmu_init() local
173 cap = tb_port_find_cap(port, TB_PORT_CAP_TIME1); in tb_switch_tmu_init()
174 if (cap > 0) in tb_switch_tmu_init()
[all …]
Dlc.c53 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()
[all …]
/kernel/linux/linux-5.10/net/mac80211/
Dvht.c25 vht_cap->cap &= ~flag; in __check_vhtcap_disable()
60 u32 cap, n; in ieee80211_apply_vhtcap_overrides() local
65 cap = vht_cap->cap & IEEE80211_VHT_CAP_MAX_A_MPDU_LENGTH_EXPONENT_MASK; in ieee80211_apply_vhtcap_overrides()
66 cap >>= IEEE80211_VHT_CAP_MAX_A_MPDU_LENGTH_EXPONENT_SHIFT; in ieee80211_apply_vhtcap_overrides()
68 if (n < cap) { in ieee80211_apply_vhtcap_overrides()
69 vht_cap->cap &= in ieee80211_apply_vhtcap_overrides()
71 vht_cap->cap |= in ieee80211_apply_vhtcap_overrides()
170 vht_cap->cap = cap_info; in ieee80211_vht_cap_ie_to_sta_vht_cap()
171 vht_cap->cap &= IEEE80211_VHT_CAP_RXLDPC | in ieee80211_vht_cap_ie_to_sta_vht_cap()
180 vht_cap->cap |= min_t(u32, cap_info & IEEE80211_VHT_CAP_MAX_MPDU_MASK, in ieee80211_vht_cap_ie_to_sta_vht_cap()
[all …]
Ddebugfs_sta.c444 p += scnprintf(p, sizeof(buf)+buf-p, "cap: %#.4x\n", htc->cap); in sta_ht_capa_read()
446 PRINT_HT_CAP((htc->cap & BIT(0)), "RX LDPC"); in sta_ht_capa_read()
447 PRINT_HT_CAP((htc->cap & BIT(1)), "HT20/HT40"); in sta_ht_capa_read()
448 PRINT_HT_CAP(!(htc->cap & BIT(1)), "HT20"); in sta_ht_capa_read()
450 PRINT_HT_CAP(((htc->cap >> 2) & 0x3) == 0, "Static SM Power Save"); in sta_ht_capa_read()
451 PRINT_HT_CAP(((htc->cap >> 2) & 0x3) == 1, "Dynamic SM Power Save"); in sta_ht_capa_read()
452 PRINT_HT_CAP(((htc->cap >> 2) & 0x3) == 3, "SM Power Save disabled"); in sta_ht_capa_read()
454 PRINT_HT_CAP((htc->cap & BIT(4)), "RX Greenfield"); in sta_ht_capa_read()
455 PRINT_HT_CAP((htc->cap & BIT(5)), "RX HT20 SGI"); in sta_ht_capa_read()
456 PRINT_HT_CAP((htc->cap & BIT(6)), "RX HT40 SGI"); in sta_ht_capa_read()
[all …]
/kernel/linux/linux-5.10/drivers/infiniband/hw/hfi1/
Dcommon.h87 #define HFI1_CAP_KSET(cap) ({ hfi1_cap_mask |= HFI1_CAP_##cap; hfi1_cap_mask; }) argument
88 #define HFI1_CAP_KCLEAR(cap) \ argument
90 hfi1_cap_mask &= ~HFI1_CAP_##cap; \
93 #define HFI1_CAP_USET(cap) \ argument
95 hfi1_cap_mask |= (HFI1_CAP_##cap << HFI1_CAP_USER_SHIFT); \
98 #define HFI1_CAP_UCLEAR(cap) \ argument
100 hfi1_cap_mask &= ~(HFI1_CAP_##cap << HFI1_CAP_USER_SHIFT); \
103 #define HFI1_CAP_SET(cap) \ argument
105 hfi1_cap_mask |= (HFI1_CAP_##cap | (HFI1_CAP_##cap << \
109 #define HFI1_CAP_CLEAR(cap) \ argument
[all …]
/kernel/linux/linux-5.10/drivers/media/platform/exynos4-is/
Dcommon.c37 void __fimc_vidioc_querycap(struct device *dev, struct v4l2_capability *cap) in __fimc_vidioc_querycap() argument
39 strscpy(cap->driver, dev->driver->name, sizeof(cap->driver)); in __fimc_vidioc_querycap()
40 strscpy(cap->card, dev->driver->name, sizeof(cap->card)); in __fimc_vidioc_querycap()
41 snprintf(cap->bus_info, sizeof(cap->bus_info), in __fimc_vidioc_querycap()
/kernel/linux/linux-5.10/drivers/net/ethernet/netronome/nfp/bpf/
Dmain.c29 return nn->cap & NFP_NET_CFG_CTRL_BPF && in nfp_net_ebpf_capable()
209 struct nfp_bpf_cap_tlv_adjust_head __iomem *cap = value; in nfp_bpf_parse_cap_adjust_head() local
212 if (length < sizeof(*cap)) { in nfp_bpf_parse_cap_adjust_head()
217 bpf->adjust_head.flags = readl(&cap->flags); in nfp_bpf_parse_cap_adjust_head()
218 bpf->adjust_head.off_min = readl(&cap->off_min); in nfp_bpf_parse_cap_adjust_head()
219 bpf->adjust_head.off_max = readl(&cap->off_max); in nfp_bpf_parse_cap_adjust_head()
220 bpf->adjust_head.guaranteed_sub = readl(&cap->guaranteed_sub); in nfp_bpf_parse_cap_adjust_head()
221 bpf->adjust_head.guaranteed_add = readl(&cap->guaranteed_add); in nfp_bpf_parse_cap_adjust_head()
240 struct nfp_bpf_cap_tlv_func __iomem *cap = value; in nfp_bpf_parse_cap_func() local
242 if (length < sizeof(*cap)) { in nfp_bpf_parse_cap_func()
[all …]
/kernel/linux/linux-5.10/security/
Dcommoncap.c66 int cap, unsigned int opts) in cap_capable()
77 return cap_raised(cred->cap_effective, cap) ? 0 : -EPERM; in cap_capable()
344 static bool is_v2header(size_t size, const struct vfs_cap_data *cap) in is_v2header() argument
348 return sansflags(le32_to_cpu(cap->magic_etc)) == VFS_CAP_REVISION_2; in is_v2header()
351 static bool is_v3header(size_t size, const struct vfs_cap_data *cap) in is_v3header() argument
355 return sansflags(le32_to_cpu(cap->magic_etc)) == VFS_CAP_REVISION_3; in is_v3header()
377 struct vfs_cap_data *cap; in cap_inode_getsecurity() local
400 cap = (struct vfs_cap_data *) tmpbuf; in cap_inode_getsecurity()
401 if (is_v2header((size_t) ret, cap)) { in cap_inode_getsecurity()
403 } else if (is_v3header((size_t) ret, cap)) { in cap_inode_getsecurity()
[all …]
/kernel/linux/linux-5.10/drivers/net/arcnet/
Dcapmode.c77 memcpy(pktbuf, pkthdrbuf, ARC_HDR_SIZE + sizeof(pkt->soft.cap.proto)); in rx()
78 memcpy(pktbuf + ARC_HDR_SIZE + sizeof(pkt->soft.cap.proto) + sizeof(int), in rx()
79 pkthdrbuf + ARC_HDR_SIZE + sizeof(pkt->soft.cap.proto), in rx()
80 sizeof(struct archdr) - ARC_HDR_SIZE - sizeof(pkt->soft.cap.proto)); in rx()
107 *((int *)&pkt->soft.cap.cookie[0])); in build_header()
148 *((int *)&pkt->soft.cap.cookie[0])); in prepare_tx()
171 lp->hw.copy_to_card(dev, bufnum, ofs, &pkt->soft.cap.proto, in prepare_tx()
172 sizeof(pkt->soft.cap.proto)); in prepare_tx()
178 ((unsigned char *)&pkt->soft.cap.mes), length - 1); in prepare_tx()
212 ackpkt->soft.cap.proto = 0; /* using protocol 0 for acknowledge */ in ack_tx()
[all …]
/kernel/linux/linux-5.10/drivers/media/i2c/m5mols/
Dm5mols_capture.c62 struct m5mols_exif *exif = &info->cap.exif; in m5mols_capture_info()
98 ret = m5mols_read_u32(sd, CAPC_IMAGE_SIZE, &info->cap.main); in m5mols_capture_info()
100 ret = m5mols_read_u32(sd, CAPC_THUMB_SIZE, &info->cap.thumb); in m5mols_capture_info()
102 info->cap.total = info->cap.main + info->cap.thumb; in m5mols_capture_info()
109 unsigned int framesize = info->cap.buf_size - M5MOLS_JPEG_TAGS_SIZE; in m5mols_start_capture()
151 size = captured ? info->cap.main : 0; in m5mols_start_capture()
153 __func__, size, info->cap.thumb); in m5mols_start_capture()

12345678910>>...47