Home
last modified time | relevance | path

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

12

/include/linux/
Dcapability.h24 __u32 cap[_KERNEL_CAPABILITY_U32S]; member
96 #define cap_raise(c, flag) ((c).cap[CAP_TO_INDEX(flag)] |= CAP_TO_MASK(flag))
97 #define cap_lower(c, flag) ((c).cap[CAP_TO_INDEX(flag)] &= ~CAP_TO_MASK(flag))
98 #define cap_raised(c, flag) ((c).cap[CAP_TO_INDEX(flag)] & CAP_TO_MASK(flag))
104 c.cap[__capi] = a.cap[__capi] OP b.cap[__capi]; \
112 c.cap[__capi] = OP a.cap[__capi]; \
151 if (a.cap[__capi] != 0) in cap_isclear()
202 extern bool has_capability(struct task_struct *t, int cap);
204 struct user_namespace *ns, int cap);
205 extern bool has_capability_noaudit(struct task_struct *t, int cap);
[all …]
Dmii.h304 static inline u16 mii_advertise_flowctrl(int cap) in mii_advertise_flowctrl() argument
308 if (cap & FLOW_CTRL_RX) in mii_advertise_flowctrl()
310 if (cap & FLOW_CTRL_TX) in mii_advertise_flowctrl()
325 u8 cap = 0; in mii_resolve_flowctrl_fdx() local
328 cap = FLOW_CTRL_TX | FLOW_CTRL_RX; in mii_resolve_flowctrl_fdx()
331 cap = FLOW_CTRL_RX; in mii_resolve_flowctrl_fdx()
333 cap = FLOW_CTRL_TX; in mii_resolve_flowctrl_fdx()
336 return cap; in mii_resolve_flowctrl_fdx()
Dnvme.h106 #define NVME_CAP_MQES(cap) ((cap) & 0xffff) argument
107 #define NVME_CAP_TIMEOUT(cap) (((cap) >> 24) & 0xff) argument
108 #define NVME_CAP_STRIDE(cap) (((cap) >> 32) & 0xf) argument
109 #define NVME_CAP_NSSRC(cap) (((cap) >> 36) & 0x1) argument
110 #define NVME_CAP_MPSMIN(cap) (((cap) >> 48) & 0xf) argument
111 #define NVME_CAP_MPSMAX(cap) (((cap) >> 52) & 0xf) argument
Dnetlink.h178 struct user_namespace *ns, int cap);
180 struct user_namespace *ns, int cap);
181 bool netlink_capable(const struct sk_buff *skb, int cap);
182 bool netlink_net_capable(const struct sk_buff *skb, int cap);
Dlsm_audit.h68 int cap; member
Dpci.h249 struct pci_cap_saved_data cap; member
887 int pci_find_capability(struct pci_dev *dev, int cap);
888 int pci_find_next_capability(struct pci_dev *dev, u8 pos, int cap);
889 int pci_find_ext_capability(struct pci_dev *dev, int cap);
890 int pci_find_next_ext_capability(struct pci_dev *dev, int pos, int cap);
1083 struct pci_cap_saved_state *pci_find_saved_cap(struct pci_dev *dev, char cap);
1085 u16 cap);
1086 int pci_add_cap_save_buffer(struct pci_dev *dev, char cap, unsigned int size);
1088 u16 cap, unsigned int size);
1121 int pci_bus_find_capability(struct pci_bus *bus, unsigned int devfn, int cap);
[all …]
Dsecurity.h73 int cap, int audit);
205 int cap);
207 int cap);
450 struct user_namespace *ns, int cap) in security_capable() argument
452 return cap_capable(cred, ns, cap, SECURITY_CAP_AUDIT); in security_capable()
456 struct user_namespace *ns, int cap) { in security_capable_noaudit() argument
457 return cap_capable(cred, ns, cap, SECURITY_CAP_NOAUDIT); in security_capable_noaudit()
Diommu.h216 extern bool iommu_capable(struct bus_type *bus, enum iommu_cap cap);
366 static inline bool iommu_capable(struct bus_type *bus, enum iommu_cap cap) in iommu_capable() argument
Dnfs_fs.h295 static inline int nfs_server_capable(struct inode *inode, int cap) in nfs_server_capable() argument
297 return NFS_SERVER(inode)->caps & cap; in nfs_server_capable()
/include/linux/mlx5/
Ddevice.h944 #define MLX5_CAP_GEN(mdev, cap) \ argument
945 MLX5_GET(cmd_hca_cap, mdev->hca_caps_cur[MLX5_CAP_GENERAL], cap)
947 #define MLX5_CAP_GEN_MAX(mdev, cap) \ argument
948 MLX5_GET(cmd_hca_cap, mdev->hca_caps_max[MLX5_CAP_GENERAL], cap)
950 #define MLX5_CAP_ETH(mdev, cap) \ argument
952 mdev->hca_caps_cur[MLX5_CAP_ETHERNET_OFFLOADS], cap)
954 #define MLX5_CAP_ETH_MAX(mdev, cap) \ argument
956 mdev->hca_caps_max[MLX5_CAP_ETHERNET_OFFLOADS], cap)
958 #define MLX5_CAP_ROCE(mdev, cap) \ argument
959 MLX5_GET(roce_cap, mdev->hca_caps_cur[MLX5_CAP_ROCE], cap)
[all …]
/include/media/
Dv4l2-dv-timings.h54 const struct v4l2_dv_timings_cap *cap,
75 const struct v4l2_dv_timings_cap *cap,
98 const struct v4l2_dv_timings_cap *cap,
Dv4l2-subdev.h458 int (*g_sliced_vbi_cap)(struct v4l2_subdev *sd, struct v4l2_sliced_vbi_cap *cap);
674 struct v4l2_dv_timings_cap *cap);
Dv4l2-ioctl.h291 struct v4l2_capability *cap);
556 struct v4l2_dv_timings_cap *cap);
/include/sound/
Dhda_chmap.h30 struct hdac_cea_channel_speaker_allocation *cap, int channels);
32 struct hdac_cea_channel_speaker_allocation *cap,
Ddesignware_i2s.h43 unsigned int cap; member
Dseq_kernel.h99 int cap, int type, int midi_channels, int midi_voices, char *portname);
/include/scsi/
Dscsi_host.h873 static unsigned char cap[] = { 0, in scsi_host_dif_capable() local
878 if (target_type >= ARRAY_SIZE(cap)) in scsi_host_dif_capable()
881 return shost->prot_capabilities & cap[target_type] ? target_type : 0; in scsi_host_dif_capable()
887 static unsigned char cap[] = { SHOST_DIX_TYPE0_PROTECTION, in scsi_host_dix_capable() local
892 if (target_type >= ARRAY_SIZE(cap)) in scsi_host_dix_capable()
895 return shost->prot_capabilities & cap[target_type]; in scsi_host_dix_capable()
Dosd_protocol.h623 static inline void osd_sec_set_caps(struct osd_capability_head *cap, in osd_sec_set_caps() argument
631 put_unaligned_le16(bit_mask, &cap->permissions_bit_mask); in osd_sec_set_caps()
Dosd_initiator.h236 u8 options, const void *cap, const u8 *cap_key);
/include/uapi/linux/
Dvirtio_pci.h130 struct virtio_pci_cap cap; member
162 struct virtio_pci_cap cap; member
Dif_arcnet.h124 struct arc_cap cap; member
Dtelephony.h83 int cap; member
/include/rdma/
Dopa_port_info.h291 u8 cap; /* 3 res, 5 bits */ member
/include/net/
Dieee802154_netdev.h321 u8 channel, u8 page, u8 cap);
/include/linux/qed/
Dqed_eth_if.h161 u8 (*getcap)(struct qed_dev *cdev, int capid, u8 *cap);

12