/openbmc/qemu/hw/vfio/ |
H A D | helpers.c | 593 struct vfio_region_info_cap_type *cap_type; in vfio_get_dev_region_info() local 605 cap_type = container_of(hdr, struct vfio_region_info_cap_type, header); in vfio_get_dev_region_info() 608 cap_type->type, cap_type->subtype); in vfio_get_dev_region_info() 610 if (cap_type->type == type && cap_type->subtype == subtype) { in vfio_get_dev_region_info() 621 bool vfio_has_region_cap(VFIODevice *vbasedev, int region, uint16_t cap_type) in vfio_has_region_cap() argument 627 if (vfio_get_region_info_cap(info, cap_type)) { in vfio_has_region_cap()
|
/openbmc/linux/drivers/s390/cio/ |
H A D | vfio_ccw_ops.c | 332 struct vfio_region_info_cap_type cap_type = { in vfio_ccw_mdev_get_region_info() local 351 cap_type.type = private->region[i].type; in vfio_ccw_mdev_get_region_info() 352 cap_type.subtype = private->region[i].subtype; in vfio_ccw_mdev_get_region_info() 354 ret = vfio_info_add_capability(&caps, &cap_type.header, in vfio_ccw_mdev_get_region_info() 355 sizeof(cap_type)); in vfio_ccw_mdev_get_region_info()
|
/openbmc/linux/drivers/media/pci/ivtv/ |
H A D | ivtv-streams.c | 792 int cap_type; in ivtv_stop_v4l2_encode_stream() local 810 cap_type = 1; in ivtv_stop_v4l2_encode_stream() 813 cap_type = 1; in ivtv_stop_v4l2_encode_stream() 816 cap_type = 1; in ivtv_stop_v4l2_encode_stream() 820 cap_type = 0; in ivtv_stop_v4l2_encode_stream() 833 ivtv_vapi(itv, CX2341X_ENC_STOP_CAPTURE, 3, stopmode, cap_type, s->subtype); in ivtv_stop_v4l2_encode_stream()
|
/openbmc/linux/drivers/usb/core/ |
H A D | config.c | 998 __u8 cap_type; in usb_get_bos_descriptor() local 1053 cap_type = cap->bDevCapabilityType; in usb_get_bos_descriptor() 1055 if (bos_desc_len[cap_type] && length < bos_desc_len[cap_type]) { in usb_get_bos_descriptor() 1065 switch (cap_type) { in usb_get_bos_descriptor()
|
/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/ |
H A D | main.c | 370 int mlx5_core_get_caps_mode(struct mlx5_core_dev *dev, enum mlx5_cap_type cap_type, in mlx5_core_get_caps_mode() argument 376 u16 opmod = (cap_type << 1) | (cap_mode & 0x01); in mlx5_core_get_caps_mode() 390 cap_type, cap_mode, err); in mlx5_core_get_caps_mode() 398 memcpy(dev->caps.hca[cap_type]->max, hca_caps, in mlx5_core_get_caps_mode() 402 memcpy(dev->caps.hca[cap_type]->cur, hca_caps, in mlx5_core_get_caps_mode() 408 cap_type, cap_mode); in mlx5_core_get_caps_mode() 417 int mlx5_core_get_caps(struct mlx5_core_dev *dev, enum mlx5_cap_type cap_type) in mlx5_core_get_caps() argument 421 ret = mlx5_core_get_caps_mode(dev, cap_type, HCA_CAP_OPMOD_GET_CUR); in mlx5_core_get_caps() 424 return mlx5_core_get_caps_mode(dev, cap_type, HCA_CAP_OPMOD_GET_MAX); in mlx5_core_get_caps()
|
H A D | mlx5_core.h | 177 int mlx5_core_get_caps(struct mlx5_core_dev *dev, enum mlx5_cap_type cap_type); 178 int mlx5_core_get_caps_mode(struct mlx5_core_dev *dev, enum mlx5_cap_type cap_type,
|
/openbmc/qemu/hw/scsi/ |
H A D | viosrp.h | 170 uint32_t cap_type; member
|
/openbmc/linux/include/scsi/ |
H A D | viosrp.h | 169 __be32 cap_type; member
|
/openbmc/linux/samples/vfio-mdev/ |
H A D | mdpy.c | 437 u16 *cap_type_id, void **cap_type) in mdpy_get_region_info() argument 548 void *cap_type = NULL; in mdpy_ioctl() local 559 &cap_type); in mdpy_ioctl()
|
H A D | mtty.c | 1135 u16 *cap_type_id, void **cap_type) in mtty_get_region_info() argument 1237 void *cap_type = NULL; in mtty_ioctl() local 1248 &cap_type); in mtty_ioctl()
|
/openbmc/linux/arch/arm64/kernel/ |
H A D | cpufeature.c | 2740 #define __HWCAP_CAP(name, cap_type, cap) \ argument 2743 .hwcap_type = cap_type, \ 2746 #define HWCAP_CAP(reg, field, min_value, cap_type, cap) \ argument 2748 __HWCAP_CAP(#cap, cap_type, cap) \ 2752 #define HWCAP_MULTI_CAP(list, cap_type, cap) \ argument 2754 __HWCAP_CAP(#cap, cap_type, cap) \ 2759 #define HWCAP_CAP_MATCH(match, cap_type, cap) \ argument 2761 __HWCAP_CAP(#cap, cap_type, cap) \ 2765 #define HWCAP_CAP_MATCH_ID(match, reg, field, min_value, cap_type, cap) \ argument 2767 __HWCAP_CAP(#cap, cap_type, cap) \
|
/openbmc/linux/drivers/media/platform/nxp/imx-jpeg/ |
H A D | mxc-jpeg.c | 892 enum v4l2_buf_type cap_type = V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE; in mxc_jpeg_dec_irq() local 961 q_data = mxc_jpeg_get_q_data(ctx, cap_type); in mxc_jpeg_dec_irq() 1166 enum v4l2_buf_type cap_type = V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE; in mxc_jpeg_config_dec_desc() local 1185 q_data_cap = mxc_jpeg_get_q_data(ctx, cap_type); in mxc_jpeg_config_dec_desc() 2421 enum v4l2_buf_type cap_type = V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE; in mxc_jpeg_s_fmt_vid_out() local 2431 dst_vq = v4l2_m2m_get_vq(ctx->fh.m2m_ctx, cap_type); in mxc_jpeg_s_fmt_vid_out() 2438 q_data_cap = mxc_jpeg_get_q_data(ctx, cap_type); in mxc_jpeg_s_fmt_vid_out() 2442 fc.type = cap_type; in mxc_jpeg_s_fmt_vid_out()
|
/openbmc/linux/drivers/gpu/drm/i915/gvt/ |
H A D | kvmgt.c | 1243 struct vfio_region_info_cap_type cap_type = { in intel_vgpu_ioctl() local 1262 cap_type.type = vgpu->region[i].type; in intel_vgpu_ioctl() 1263 cap_type.subtype = vgpu->region[i].subtype; in intel_vgpu_ioctl() 1266 &cap_type.header, in intel_vgpu_ioctl() 1267 sizeof(cap_type)); in intel_vgpu_ioctl()
|
/openbmc/qemu/include/hw/vfio/ |
H A D | vfio-common.h | 284 bool vfio_has_region_cap(VFIODevice *vbasedev, int region, uint16_t cap_type);
|
/openbmc/linux/drivers/vfio/pci/ |
H A D | vfio_pci_core.c | 1100 struct vfio_region_info_cap_type cap_type = { in vfio_pci_ioctl_get_region_info() local 1116 cap_type.type = vdev->region[i].type; in vfio_pci_ioctl_get_region_info() 1117 cap_type.subtype = vdev->region[i].subtype; in vfio_pci_ioctl_get_region_info() 1119 ret = vfio_info_add_capability(&caps, &cap_type.header, in vfio_pci_ioctl_get_region_info() 1120 sizeof(cap_type)); in vfio_pci_ioctl_get_region_info()
|
/openbmc/linux/drivers/scsi/ibmvscsi/ |
H A D | ibmvscsi.c | 1295 hostdata->caps.migration.common.cap_type = in send_mad_capabilities() 1304 hostdata->caps.reserve.common.cap_type = in send_mad_capabilities()
|
/openbmc/linux/drivers/scsi/ibmvscsi_tgt/ |
H A D | ibmvscsi_tgt.c | 1657 len, be32_to_cpu(common->cap_type), in ibmvscsis_cap_mad() 1673 switch (common->cap_type) { in ibmvscsis_cap_mad()
|