Home
last modified time | relevance | path

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

12

/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 …]
Dmii.h563 static inline u16 mii_advertise_flowctrl(int cap) in mii_advertise_flowctrl() argument
567 if (cap & FLOW_CTRL_RX) in mii_advertise_flowctrl()
569 if (cap & FLOW_CTRL_TX) in mii_advertise_flowctrl()
584 u8 cap = 0; in mii_resolve_flowctrl_fdx() local
587 cap = FLOW_CTRL_TX | FLOW_CTRL_RX; in mii_resolve_flowctrl_fdx()
590 cap = FLOW_CTRL_RX; in mii_resolve_flowctrl_fdx()
592 cap = FLOW_CTRL_TX; in mii_resolve_flowctrl_fdx()
595 return cap; in mii_resolve_flowctrl_fdx()
Dnvme.h135 #define NVME_CAP_MQES(cap) ((cap) & 0xffff) argument
136 #define NVME_CAP_TIMEOUT(cap) (((cap) >> 24) & 0xff) argument
137 #define NVME_CAP_STRIDE(cap) (((cap) >> 32) & 0xf) argument
138 #define NVME_CAP_NSSRC(cap) (((cap) >> 36) & 0x1) argument
139 #define NVME_CAP_CSS(cap) (((cap) >> 37) & 0xff) argument
140 #define NVME_CAP_MPSMIN(cap) (((cap) >> 48) & 0xf) argument
141 #define NVME_CAP_MPSMAX(cap) (((cap) >> 52) & 0xf) argument
142 #define NVME_CAP_CMBS(cap) (((cap) >> 57) & 0x1) argument
Dnetlink.h271 struct user_namespace *ns, int cap);
273 struct user_namespace *ns, int cap);
274 bool netlink_capable(const struct sk_buff *skb, int cap);
275 bool netlink_net_capable(const struct sk_buff *skb, int cap);
Dlsm_audit.h84 int cap; member
Dpci.h303 u8 cap; member
1151 u8 pci_bus_find_capability(struct pci_bus *bus, unsigned int devfn, int cap);
1152 u8 pci_find_capability(struct pci_dev *dev, int cap);
1153 u8 pci_find_next_capability(struct pci_dev *dev, u8 pos, int cap);
1156 u16 pci_find_ext_capability(struct pci_dev *dev, int cap);
1157 u16 pci_find_next_ext_capability(struct pci_dev *dev, u16 pos, int cap);
1159 u16 pci_find_vsec_capability(struct pci_dev *dev, u16 vendor, int cap);
1826 static inline u8 pci_find_capability(struct pci_dev *dev, int cap) in pci_find_capability() argument
1829 int cap) in pci_find_next_capability() argument
1831 static inline int pci_find_ext_capability(struct pci_dev *dev, int cap) in pci_find_ext_capability() argument
Dvfio.h202 struct vfio_info_cap_header *cap,
Dnfs_fs.h367 static inline int nfs_server_capable(struct inode *inode, int cap) in nfs_server_capable() argument
369 return NFS_SERVER(inode)->caps & cap; in nfs_server_capable()
/include/linux/mlx5/
Ddevice.h1223 #define MLX5_CAP_GEN(mdev, cap) \ argument
1224 MLX5_GET(cmd_hca_cap, mdev->caps.hca[MLX5_CAP_GENERAL]->cur, cap)
1226 #define MLX5_CAP_GEN_64(mdev, cap) \ argument
1227 MLX5_GET64(cmd_hca_cap, mdev->caps.hca[MLX5_CAP_GENERAL]->cur, cap)
1229 #define MLX5_CAP_GEN_MAX(mdev, cap) \ argument
1230 MLX5_GET(cmd_hca_cap, mdev->caps.hca[MLX5_CAP_GENERAL]->max, cap)
1232 #define MLX5_CAP_GEN_2(mdev, cap) \ argument
1233 MLX5_GET(cmd_hca_cap_2, mdev->caps.hca[MLX5_CAP_GENERAL_2]->cur, cap)
1235 #define MLX5_CAP_GEN_2_64(mdev, cap) \ argument
1236 MLX5_GET64(cmd_hca_cap_2, mdev->caps.hca[MLX5_CAP_GENERAL_2]->cur, cap)
[all …]
/include/linux/sched/
Dcpufreq.h27 unsigned long freq, unsigned long cap) in map_util_freq() argument
29 return freq * util / cap; in map_util_freq()
/include/uapi/linux/
Dvirtio_pci.h133 struct virtio_pci_cap cap; member
139 struct virtio_pci_cap cap; member
171 struct virtio_pci_cap cap; member
Dif_arcnet.h125 struct arc_cap cap; member
/include/media/
Dv4l2-dv-timings.h52 const struct v4l2_dv_timings_cap *cap,
73 const struct v4l2_dv_timings_cap *cap,
96 const struct v4l2_dv_timings_cap *cap,
Dv4l2-subdev.h504 int (*g_sliced_vbi_cap)(struct v4l2_subdev *sd, struct v4l2_sliced_vbi_cap *cap);
757 struct v4l2_dv_timings_cap *cap);
Dv4l2-ioctl.h301 struct v4l2_capability *cap);
574 struct v4l2_dv_timings_cap *cap);
/include/sound/
Dhda_chmap.h31 struct hdac_cea_channel_speaker_allocation *cap, int channels);
33 struct hdac_cea_channel_speaker_allocation *cap,
Ddesignware_i2s.h29 unsigned int cap; member
Dseq_kernel.h85 int cap, int type, int midi_channels, int midi_voices, char *portname);
/include/scsi/
Dscsi_host.h859 static unsigned char cap[] = { 0, in scsi_host_dif_capable() local
864 if (target_type >= ARRAY_SIZE(cap)) in scsi_host_dif_capable()
867 return shost->prot_capabilities & cap[target_type] ? target_type : 0; in scsi_host_dif_capable()
873 static unsigned char cap[] = { SHOST_DIX_TYPE0_PROTECTION, in scsi_host_dix_capable() local
878 if (target_type >= ARRAY_SIZE(cap)) in scsi_host_dix_capable()
881 return shost->prot_capabilities & cap[target_type]; in scsi_host_dix_capable()
/include/dt-bindings/usb/
Dpd.h208 #define VDO_UFP(ver, cap, conn, vcpwr, vcr, vbr, alt, spd) \ argument
209 (((ver) & 0x7) << 29 | ((cap) & 0xf) << 24 | ((conn) & 0x3) << 22 \
230 #define VDO_DFP(ver, cap, conn, pnum) \ argument
231 (((ver) & 0x7) << 29 | ((cap) & 0x7) << 24 | ((conn) & 0x3) << 22 \
/include/linux/usb/
Dpd_vdo.h229 #define VDO_UFP(ver, cap, conn, vcpwr, vcr, vbr, alt, spd) \ argument
230 (((ver) & 0x7) << 29 | ((cap) & 0xf) << 24 | ((conn) & 0x3) << 22 \
253 #define VDO_DFP(ver, cap, conn, pnum) \ argument
254 (((ver) & 0x7) << 29 | ((cap) & 0x7) << 24 | ((conn) & 0x3) << 22 \
Dtypec.h270 const struct typec_capability *cap);
301 int typec_get_fw_cap(struct typec_capability *cap,
/include/linux/platform_data/
Dti-sysc.h143 const struct sysc_capabilities *cap; member
/include/trace/hooks/
Dsched.h255 unsigned long cap, unsigned long *next_freq),
256 TP_ARGS(util, freq, cap, next_freq));
261 unsigned long cap, unsigned long *next_freq, struct cpufreq_policy *policy,
263 TP_ARGS(util, freq, cap, next_freq, policy, need_freq_update));
/include/rdma/
Dopa_port_info.h259 u8 cap; /* 3 res, 5 bits */ member

12