Home
last modified time | relevance | path

Searched refs:cap (Results 1 – 25 of 44) 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.h269 struct user_namespace *ns, int cap);
271 struct user_namespace *ns, int cap);
272 bool netlink_capable(const struct sk_buff *skb, int cap);
273 bool netlink_net_capable(const struct sk_buff *skb, int cap);
Dlsm_audit.h83 int cap; member
Dpci.h302 struct pci_cap_saved_data cap; member
1092 int pci_find_capability(struct pci_dev *dev, int cap);
1093 int pci_find_next_capability(struct pci_dev *dev, u8 pos, int cap);
1094 int pci_find_ext_capability(struct pci_dev *dev, int cap);
1095 int pci_find_next_ext_capability(struct pci_dev *dev, int pos, int cap);
1281 struct pci_cap_saved_state *pci_find_saved_cap(struct pci_dev *dev, char cap);
1283 u16 cap);
1284 int pci_add_cap_save_buffer(struct pci_dev *dev, char cap, unsigned int size);
1286 u16 cap, unsigned int size);
1308 int pci_bus_find_capability(struct pci_bus *bus, unsigned int devfn, int cap);
[all …]
Dnfs_fs.h347 static inline int nfs_server_capable(struct inode *inode, int cap) in nfs_server_capable() argument
349 return NFS_SERVER(inode)->caps & cap; in nfs_server_capable()
Dvfio.h180 struct vfio_info_cap_header *cap,
/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 …]
/include/linux/sched/
Dcpufreq.h27 unsigned long freq, unsigned long cap) in map_util_freq() argument
29 return (freq + (freq >> 2)) * 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.h475 int (*g_sliced_vbi_cap)(struct v4l2_subdev *sd, struct v4l2_sliced_vbi_cap *cap);
715 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.h842 static unsigned char cap[] = { 0, in scsi_host_dif_capable() local
847 if (target_type >= ARRAY_SIZE(cap)) in scsi_host_dif_capable()
850 return shost->prot_capabilities & cap[target_type] ? target_type : 0; in scsi_host_dif_capable()
856 static unsigned char cap[] = { SHOST_DIX_TYPE0_PROTECTION, in scsi_host_dix_capable() local
861 if (target_type >= ARRAY_SIZE(cap)) in scsi_host_dix_capable()
864 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);
/include/linux/platform_data/
Dti-sysc.h143 const struct sysc_capabilities *cap; member
/include/rdma/
Dopa_port_info.h259 u8 cap; /* 3 res, 5 bits */ member
/include/clocksource/
Dtimer-ti-dm.h123 struct omap_dm_timer *omap_dm_timer_request_by_cap(u32 cap);

12