Home
last modified time | relevance | path

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

12

/include/linux/
Dcapability.h142 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() argument
[all …]
Dmii.h513 static inline u16 mii_advertise_flowctrl(int cap) in mii_advertise_flowctrl() argument
517 if (cap & FLOW_CTRL_RX) in mii_advertise_flowctrl()
519 if (cap & FLOW_CTRL_TX) in mii_advertise_flowctrl()
534 u8 cap = 0; in mii_resolve_flowctrl_fdx() local
537 cap = FLOW_CTRL_TX | FLOW_CTRL_RX; in mii_resolve_flowctrl_fdx()
540 cap = FLOW_CTRL_RX; in mii_resolve_flowctrl_fdx()
542 cap = FLOW_CTRL_TX; in mii_resolve_flowctrl_fdx()
545 return cap; in mii_resolve_flowctrl_fdx()
Dnvme.h155 #define NVME_CAP_MQES(cap) ((cap) & 0xffff) argument
156 #define NVME_CAP_TIMEOUT(cap) (((cap) >> 24) & 0xff) argument
157 #define NVME_CAP_STRIDE(cap) (((cap) >> 32) & 0xf) argument
158 #define NVME_CAP_NSSRC(cap) (((cap) >> 36) & 0x1) argument
159 #define NVME_CAP_CSS(cap) (((cap) >> 37) & 0xff) argument
160 #define NVME_CAP_MPSMIN(cap) (((cap) >> 48) & 0xf) argument
161 #define NVME_CAP_MPSMAX(cap) (((cap) >> 52) & 0xf) argument
162 #define NVME_CAP_CMBS(cap) (((cap) >> 57) & 0x1) argument
Dnetlink.h349 struct user_namespace *ns, int cap);
351 struct user_namespace *ns, int cap);
352 bool netlink_capable(const struct sk_buff *skb, int cap);
353 bool netlink_net_capable(const struct sk_buff *skb, int cap);
Dlsm_audit.h85 int cap; member
Dpci.h313 u8 cap; member
1187 u8 pci_bus_find_capability(struct pci_bus *bus, unsigned int devfn, int cap);
1188 u8 pci_find_capability(struct pci_dev *dev, int cap);
1189 u8 pci_find_next_capability(struct pci_dev *dev, u8 pos, int cap);
1192 u16 pci_find_ext_capability(struct pci_dev *dev, int cap);
1193 u16 pci_find_next_ext_capability(struct pci_dev *dev, u16 pos, int cap);
1195 u16 pci_find_vsec_capability(struct pci_dev *dev, u16 vendor, int cap);
2011 static inline u8 pci_find_capability(struct pci_dev *dev, int cap) in pci_find_capability() argument
2014 int cap) in pci_find_next_capability() argument
2016 static inline int pci_find_ext_capability(struct pci_dev *dev, int cap) in pci_find_ext_capability() argument
Dnfs_fs.h392 static inline int nfs_server_capable(const struct inode *inode, int cap) in nfs_server_capable() argument
394 return NFS_SERVER(inode)->caps & cap; in nfs_server_capable()
/include/linux/mlx5/
Ddevice.h1260 #define MLX5_CAP_GEN(mdev, cap) \ argument
1261 MLX5_GET(cmd_hca_cap, mdev->caps.hca[MLX5_CAP_GENERAL]->cur, cap)
1263 #define MLX5_CAP_GEN_64(mdev, cap) \ argument
1264 MLX5_GET64(cmd_hca_cap, mdev->caps.hca[MLX5_CAP_GENERAL]->cur, cap)
1266 #define MLX5_CAP_GEN_MAX(mdev, cap) \ argument
1267 MLX5_GET(cmd_hca_cap, mdev->caps.hca[MLX5_CAP_GENERAL]->max, cap)
1269 #define MLX5_CAP_GEN_2(mdev, cap) \ argument
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) \ argument
1273 MLX5_GET64(cmd_hca_cap_2, mdev->caps.hca[MLX5_CAP_GENERAL_2]->cur, cap)
[all …]
Dport.h145 u32 cap; member
/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
Dgzvm.h320 __u64 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,
/include/scsi/
Dscsi_host.h858 static unsigned char cap[] = { 0, in scsi_host_dif_capable() local
863 if (target_type >= ARRAY_SIZE(cap)) in scsi_host_dif_capable()
866 return shost->prot_capabilities & cap[target_type] ? target_type : 0; in scsi_host_dif_capable()
872 static unsigned char cap[] = { SHOST_DIX_TYPE0_PROTECTION, in scsi_host_dix_capable() local
877 if (target_type >= ARRAY_SIZE(cap)) in scsi_host_dix_capable()
880 return shost->prot_capabilities & cap[target_type]; in scsi_host_dix_capable()
/include/sound/
Dhda_chmap.h31 struct hdac_cea_channel_speaker_allocation *cap, int channels);
33 struct hdac_cea_channel_speaker_allocation *cap,
Ddesignware_i2s.h31 unsigned int cap; member
Dseq_kernel.h95 int cap, int type, int midi_channels, int midi_voices, char *portname);
/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.h294 const struct typec_capability *cap);
325 int typec_get_fw_cap(struct typec_capability *cap,
/include/linux/soc/mediatek/
Dgzvm_drv.h203 int gzvm_arch_check_extension(struct gzvm *gzvm, __u64 cap, void __user *argp);
211 struct gzvm_enable_cap *cap,
/include/linux/spi/
Dspi-mem.h304 #define spi_mem_controller_is_capable(ctlr, cap) \ argument
305 ((ctlr)->mem_caps && (ctlr)->mem_caps->cap)
/include/linux/platform_data/
Dti-sysc.h145 const struct sysc_capabilities *cap; member
/include/rdma/
Dopa_port_info.h259 u8 cap; /* 3 res, 5 bits */ member

12