Home
last modified time | relevance | path

Searched refs:dev_cap (Results 1 – 8 of 8) sorted by relevance

/freebsd/sys/dev/mlx4/mlx4_core/
H A Dmlx4_fw.c724 int mlx4_QUERY_DEV_CAP(struct mlx4_dev *dev, struct mlx4_dev_cap *dev_cap) in mlx4_QUERY_DEV_CAP() argument
829 dev_cap->flags2 = 0; in mlx4_QUERY_DEV_CAP()
843 dev_cap->map_clock_to_user = field & 0x80; in mlx4_QUERY_DEV_CAP()
845 dev_cap->reserved_qps = 1 << (field & 0xf); in mlx4_QUERY_DEV_CAP()
847 dev_cap->max_qps = 1 << (field & 0x1f); in mlx4_QUERY_DEV_CAP()
849 dev_cap->reserved_srqs = 1 << (field >> 4); in mlx4_QUERY_DEV_CAP()
851 dev_cap->max_srqs = 1 << (field & 0x1f); in mlx4_QUERY_DEV_CAP()
853 dev_cap->max_cq_sz = 1 << field; in mlx4_QUERY_DEV_CAP()
855 dev_cap->reserved_cqs = 1 << (field & 0xf); in mlx4_QUERY_DEV_CAP()
857 dev_cap->max_cqs = 1 << (field & 0x1f); in mlx4_QUERY_DEV_CAP()
[all …]
H A Dmlx4_profile.c71 struct mlx4_dev_cap *dev_cap, in mlx4_make_profile() argument
91 profile[MLX4_RES_QP].size = dev_cap->qpc_entry_sz; in mlx4_make_profile()
92 profile[MLX4_RES_RDMARC].size = dev_cap->rdmarc_entry_sz; in mlx4_make_profile()
93 profile[MLX4_RES_ALTC].size = dev_cap->altc_entry_sz; in mlx4_make_profile()
94 profile[MLX4_RES_AUXC].size = dev_cap->aux_entry_sz; in mlx4_make_profile()
95 profile[MLX4_RES_SRQ].size = dev_cap->srq_entry_sz; in mlx4_make_profile()
96 profile[MLX4_RES_CQ].size = dev_cap->cqc_entry_sz; in mlx4_make_profile()
97 profile[MLX4_RES_EQ].size = dev_cap->eqc_entry_sz; in mlx4_make_profile()
98 profile[MLX4_RES_DMPT].size = dev_cap->dmpt_entry_sz; in mlx4_make_profile()
99 profile[MLX4_RES_CMPT].size = dev_cap->cmpt_entry_sz; in mlx4_make_profile()
[all …]
H A Dmlx4_main.c182 struct mlx4_dev_cap *dev_cap) in mlx4_set_num_reserved_uars() argument
191 dev_cap->reserved_uars / in mlx4_set_num_reserved_uars()
231 static int mlx4_query_func(struct mlx4_dev *dev, struct mlx4_dev_cap *dev_cap) in mlx4_query_func() argument
242 dev_cap->max_eqs = func.max_eq; in mlx4_query_func()
243 dev_cap->reserved_eqs = func.rsvd_eqs; in mlx4_query_func()
244 dev_cap->reserved_uars = func.rsvd_uars; in mlx4_query_func()
252 struct mlx4_caps *dev_cap = &dev->caps; in mlx4_enable_cqe_eqe_stride() local
255 if (!(dev_cap->flags2 & MLX4_DEV_CAP_FLAG2_EQE_STRIDE) || in mlx4_enable_cqe_eqe_stride()
256 !(dev_cap->flags2 & MLX4_DEV_CAP_FLAG2_CQE_STRIDE)) in mlx4_enable_cqe_eqe_stride()
262 if (!(dev_cap->flags & MLX4_DEV_CAP_FLAG_64B_EQE) || in mlx4_enable_cqe_eqe_stride()
[all …]
H A Dfw.h232 void mlx4_dev_cap_dump(struct mlx4_dev *dev, struct mlx4_dev_cap *dev_cap);
233 int mlx4_QUERY_DEV_CAP(struct mlx4_dev *dev, struct mlx4_dev_cap *dev_cap);
H A Dmlx4.h1039 struct mlx4_dev_cap *dev_cap,
/freebsd/lib/libusb/
H A Dlibusb10_desc.c605 struct libusb_bos_dev_capability_descriptor *dev_cap, in libusb_get_usb_2_0_extension_descriptor() argument
610 if (dev_cap == NULL || usb_2_0_extension == NULL || in libusb_get_usb_2_0_extension_descriptor()
611 dev_cap->bDevCapabilityType != LIBUSB_BT_USB_2_0_EXTENSION) in libusb_get_usb_2_0_extension_descriptor()
613 if (dev_cap->bLength < LIBUSB_BT_USB_2_0_EXTENSION_SIZE) in libusb_get_usb_2_0_extension_descriptor()
621 desc->bDescriptorType = dev_cap->bDescriptorType; in libusb_get_usb_2_0_extension_descriptor()
622 desc->bDevCapabilityType = dev_cap->bDevCapabilityType; in libusb_get_usb_2_0_extension_descriptor()
624 (dev_cap->dev_capability_data[0]) | in libusb_get_usb_2_0_extension_descriptor()
625 (dev_cap->dev_capability_data[1] << 8) | in libusb_get_usb_2_0_extension_descriptor()
626 (dev_cap->dev_capability_data[2] << 16) | in libusb_get_usb_2_0_extension_descriptor()
627 (dev_cap->dev_capability_data[3] << 24); in libusb_get_usb_2_0_extension_descriptor()
[all …]
H A Dlibusb.h537 …struct libusb_context *ctx, struct libusb_bos_dev_capability_descriptor *dev_cap, struct libusb_us…
539 …struct libusb_context *ctx, struct libusb_bos_dev_capability_descriptor *dev_cap, struct libusb_ss…
541 …struct libusb_context *ctx, struct libusb_bos_dev_capability_descriptor *dev_cap, struct libusb_co…
/freebsd/sys/dev/mlx4/
H A Ddevice.h54 #define MLX4_IS_LEGACY_EQ_MODE(dev_cap) ((dev_cap).num_comp_vectors < \ argument
55 (dev_cap).num_ports * MIN_MSIX_P_PORT)