Home
last modified time | relevance | path

Searched refs:port_cap (Results 1 - 25 of 28) sorted by relevance

12

/kernel/linux/linux-5.10/drivers/gpu/drm/
H A Ddrm_dp_helper.c376 * @port_cap: port capabilities
387 const u8 port_cap[4], u8 type) in drm_dp_downstream_is_type()
391 (port_cap[0] & DP_DS_PORT_TYPE_MASK) == type; in drm_dp_downstream_is_type()
398 * @port_cap: port capabilities
404 const u8 port_cap[4], in drm_dp_downstream_is_tmds()
416 switch (port_cap[0] & DP_DS_PORT_TYPE_MASK) { in drm_dp_downstream_is_tmds()
632 * @port_cap: port capabilities
638 const u8 port_cap[4]) in drm_dp_downstream_max_dotclock()
646 switch (port_cap[0] & DP_DS_PORT_TYPE_MASK) { in drm_dp_downstream_max_dotclock()
650 return port_cap[ in drm_dp_downstream_max_dotclock()
386 drm_dp_downstream_is_type(const u8 dpcd[DP_RECEIVER_CAP_SIZE], const u8 port_cap[4], u8 type) drm_dp_downstream_is_type() argument
403 drm_dp_downstream_is_tmds(const u8 dpcd[DP_RECEIVER_CAP_SIZE], const u8 port_cap[4], const struct edid *edid) drm_dp_downstream_is_tmds() argument
637 drm_dp_downstream_max_dotclock(const u8 dpcd[DP_RECEIVER_CAP_SIZE], const u8 port_cap[4]) drm_dp_downstream_max_dotclock() argument
666 drm_dp_downstream_max_tmds_clock(const u8 dpcd[DP_RECEIVER_CAP_SIZE], const u8 port_cap[4], const struct edid *edid) drm_dp_downstream_max_tmds_clock() argument
731 drm_dp_downstream_min_tmds_clock(const u8 dpcd[DP_RECEIVER_CAP_SIZE], const u8 port_cap[4], const struct edid *edid) drm_dp_downstream_min_tmds_clock() argument
774 drm_dp_downstream_max_bpc(const u8 dpcd[DP_RECEIVER_CAP_SIZE], const u8 port_cap[4], const struct edid *edid) drm_dp_downstream_max_bpc() argument
830 drm_dp_downstream_420_passthrough(const u8 dpcd[DP_RECEIVER_CAP_SIZE], const u8 port_cap[4]) drm_dp_downstream_420_passthrough() argument
861 drm_dp_downstream_444_to_420_conversion(const u8 dpcd[DP_RECEIVER_CAP_SIZE], const u8 port_cap[4]) drm_dp_downstream_444_to_420_conversion() argument
893 drm_dp_downstream_mode(struct drm_device *dev, const u8 dpcd[DP_RECEIVER_CAP_SIZE], const u8 port_cap[4]) drm_dp_downstream_mode() argument
959 drm_dp_downstream_debug(struct seq_file *m, const u8 dpcd[DP_RECEIVER_CAP_SIZE], const u8 port_cap[4], const struct edid *edid, struct drm_dp_aux *aux) drm_dp_downstream_debug() argument
1047 drm_dp_subconnector_type(const u8 dpcd[DP_RECEIVER_CAP_SIZE], const u8 port_cap[4]) drm_dp_subconnector_type() argument
1102 drm_dp_set_subconnector_property(struct drm_connector *connector, enum drm_connector_status status, const u8 *dpcd, const u8 port_cap[4]) drm_dp_set_subconnector_property() argument
[all...]
/kernel/linux/linux-6.6/include/drm/display/
H A Ddrm_dp_helper.h507 const u8 port_cap[4], u8 type);
509 const u8 port_cap[4],
512 const u8 port_cap[4]);
514 const u8 port_cap[4],
517 const u8 port_cap[4],
520 const u8 port_cap[4],
523 const u8 port_cap[4]);
525 const u8 port_cap[4]);
528 const u8 port_cap[4]);
532 const u8 port_cap[
[all...]
/kernel/linux/linux-6.6/drivers/gpu/drm/display/
H A Ddrm_dp_helper.c759 * @port_cap: port capabilities
770 const u8 port_cap[4], u8 type) in drm_dp_downstream_is_type()
774 (port_cap[0] & DP_DS_PORT_TYPE_MASK) == type; in drm_dp_downstream_is_type()
781 * @port_cap: port capabilities
787 const u8 port_cap[4], in drm_dp_downstream_is_tmds()
799 switch (port_cap[0] & DP_DS_PORT_TYPE_MASK) { in drm_dp_downstream_is_tmds()
1010 * @port_cap: port capabilities
1016 const u8 port_cap[4]) in drm_dp_downstream_max_dotclock()
1024 switch (port_cap[0] & DP_DS_PORT_TYPE_MASK) { in drm_dp_downstream_max_dotclock()
1028 return port_cap[ in drm_dp_downstream_max_dotclock()
769 drm_dp_downstream_is_type(const u8 dpcd[DP_RECEIVER_CAP_SIZE], const u8 port_cap[4], u8 type) drm_dp_downstream_is_type() argument
786 drm_dp_downstream_is_tmds(const u8 dpcd[DP_RECEIVER_CAP_SIZE], const u8 port_cap[4], const struct edid *edid) drm_dp_downstream_is_tmds() argument
1015 drm_dp_downstream_max_dotclock(const u8 dpcd[DP_RECEIVER_CAP_SIZE], const u8 port_cap[4]) drm_dp_downstream_max_dotclock() argument
1044 drm_dp_downstream_max_tmds_clock(const u8 dpcd[DP_RECEIVER_CAP_SIZE], const u8 port_cap[4], const struct edid *edid) drm_dp_downstream_max_tmds_clock() argument
1109 drm_dp_downstream_min_tmds_clock(const u8 dpcd[DP_RECEIVER_CAP_SIZE], const u8 port_cap[4], const struct edid *edid) drm_dp_downstream_min_tmds_clock() argument
1152 drm_dp_downstream_max_bpc(const u8 dpcd[DP_RECEIVER_CAP_SIZE], const u8 port_cap[4], const struct edid *edid) drm_dp_downstream_max_bpc() argument
1208 drm_dp_downstream_420_passthrough(const u8 dpcd[DP_RECEIVER_CAP_SIZE], const u8 port_cap[4]) drm_dp_downstream_420_passthrough() argument
1239 drm_dp_downstream_444_to_420_conversion(const u8 dpcd[DP_RECEIVER_CAP_SIZE], const u8 port_cap[4]) drm_dp_downstream_444_to_420_conversion() argument
1270 drm_dp_downstream_rgb_to_ycbcr_conversion(const u8 dpcd[DP_RECEIVER_CAP_SIZE], const u8 port_cap[4], u8 color_spc) drm_dp_downstream_rgb_to_ycbcr_conversion() argument
1303 drm_dp_downstream_mode(struct drm_device *dev, const u8 dpcd[DP_RECEIVER_CAP_SIZE], const u8 port_cap[4]) drm_dp_downstream_mode() argument
1369 drm_dp_downstream_debug(struct seq_file *m, const u8 dpcd[DP_RECEIVER_CAP_SIZE], const u8 port_cap[4], const struct edid *edid, struct drm_dp_aux *aux) drm_dp_downstream_debug() argument
1457 drm_dp_subconnector_type(const u8 dpcd[DP_RECEIVER_CAP_SIZE], const u8 port_cap[4]) drm_dp_subconnector_type() argument
1512 drm_dp_set_subconnector_property(struct drm_connector *connector, enum drm_connector_status status, const u8 *dpcd, const u8 port_cap[4]) drm_dp_set_subconnector_property() argument
2892 drm_dp_get_pcon_max_frl_bw(const u8 dpcd[DP_RECEIVER_CAP_SIZE], const u8 port_cap[4]) drm_dp_get_pcon_max_frl_bw() argument
[all...]
/kernel/linux/linux-5.10/drivers/usb/host/
H A Dxhci-mem.c2152 struct xhci_port_cap *port_cap; in xhci_add_in_port() local
2201 port_cap = &xhci->port_caps[xhci->num_port_caps++]; in xhci_add_in_port()
2205 port_cap->psi_count = XHCI_EXT_PORT_PSIC(temp); in xhci_add_in_port()
2207 if (port_cap->psi_count) { in xhci_add_in_port()
2208 port_cap->psi = kcalloc_node(port_cap->psi_count, in xhci_add_in_port()
2209 sizeof(*port_cap->psi), in xhci_add_in_port()
2211 if (!port_cap->psi) in xhci_add_in_port()
2212 port_cap->psi_count = 0; in xhci_add_in_port()
2214 port_cap in xhci_add_in_port()
[all...]
H A Dxhci-hub.c58 struct xhci_port_cap *port_cap = NULL; in xhci_create_usb3_bos_desc() local
72 port_cap = &xhci->port_caps[i]; in xhci_create_usb3_bos_desc()
79 if (port_cap->psi_count) { in xhci_create_usb3_bos_desc()
81 ssa_count = port_cap->psi_uid_count * 2; in xhci_create_usb3_bos_desc()
111 if (usb3_1 && port_cap->psi_count) { in xhci_create_usb3_bos_desc()
123 bm_attrib |= (port_cap->psi_uid_count - 1) << 5; in xhci_create_usb3_bos_desc()
136 for (i = 0; i < port_cap->psi_count; i++) { in xhci_create_usb3_bos_desc()
137 psi = port_cap->psi[i]; in xhci_create_usb3_bos_desc()
/kernel/linux/linux-6.6/drivers/usb/host/
H A Dxhci-mem.c1964 struct xhci_port_cap *port_cap; in xhci_add_in_port() local
2011 port_cap = &xhci->port_caps[xhci->num_port_caps++]; in xhci_add_in_port()
2015 port_cap->psi_count = XHCI_EXT_PORT_PSIC(temp); in xhci_add_in_port()
2017 if (port_cap->psi_count) { in xhci_add_in_port()
2018 port_cap->psi = kcalloc_node(port_cap->psi_count, in xhci_add_in_port()
2019 sizeof(*port_cap->psi), in xhci_add_in_port()
2021 if (!port_cap->psi) in xhci_add_in_port()
2022 port_cap->psi_count = 0; in xhci_add_in_port()
2024 port_cap in xhci_add_in_port()
[all...]
H A Dxhci-hub.c41 struct xhci_port_cap *port_cap = NULL; in xhci_create_usb3x_bos_desc() local
67 port_cap = &xhci->port_caps[i]; in xhci_create_usb3x_bos_desc()
72 if (port_cap->psi_count) { in xhci_create_usb3x_bos_desc()
75 for (i = 0; i < port_cap->psi_count; i++) { in xhci_create_usb3x_bos_desc()
76 if ((port_cap->psi[i] & PLT_MASK) == PLT_SYM) in xhci_create_usb3x_bos_desc()
80 ssac = port_cap->psi_count + num_sym_ssa - 1; in xhci_create_usb3x_bos_desc()
81 ssic = port_cap->psi_uid_count - 1; in xhci_create_usb3x_bos_desc()
138 if (!port_cap->psi_count) { in xhci_create_usb3x_bos_desc()
148 for (i = 0; i < port_cap->psi_count; i++) { in xhci_create_usb3x_bos_desc()
159 psi = port_cap in xhci_create_usb3x_bos_desc()
[all...]
/kernel/linux/linux-5.10/include/drm/
H A Ddrm_dp_helper.h1656 const u8 port_cap[4], u8 type);
1658 const u8 port_cap[4],
1661 const u8 port_cap[4]);
1663 const u8 port_cap[4],
1666 const u8 port_cap[4],
1669 const u8 port_cap[4],
1672 const u8 port_cap[4]);
1674 const u8 port_cap[4]);
1677 const u8 port_cap[4]);
1681 const u8 port_cap[
[all...]
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlx4/
H A Dfw.c1109 err = mlx4_QUERY_PORT(dev, i, dev_cap->port_cap + i); in mlx4_QUERY_DEV_CAP()
1160 dev_cap->local_ca_ack_delay, 128 << dev_cap->port_cap[1].ib_mtu, in mlx4_dev_cap_dump()
1161 dev_cap->port_cap[1].max_port_width); in mlx4_dev_cap_dump()
1186 int mlx4_QUERY_PORT(struct mlx4_dev *dev, int port, struct mlx4_port_cap *port_cap) in mlx4_QUERY_PORT() argument
1208 port_cap->max_vl = field >> 4; in mlx4_QUERY_PORT()
1210 port_cap->ib_mtu = field >> 4; in mlx4_QUERY_PORT()
1211 port_cap->max_port_width = field & 0xf; in mlx4_QUERY_PORT()
1213 port_cap->max_gids = 1 << (field & 0xf); in mlx4_QUERY_PORT()
1215 port_cap->max_pkeys = 1 << (field & 0xf); in mlx4_QUERY_PORT()
1235 port_cap in mlx4_QUERY_PORT()
1461 struct mlx4_port_cap port_cap; mlx4_QUERY_PORT_wrapper() local
[all...]
H A Dfw.h132 struct mlx4_port_cap port_cap[MLX4_MAX_PORTS + 1]; member
232 int mlx4_QUERY_PORT(struct mlx4_dev *dev, int port, struct mlx4_port_cap *port_cap);
H A Dmain.c398 struct mlx4_port_cap *port_cap) in _mlx4_dev_port()
400 dev->caps.vl_cap[port] = port_cap->max_vl; in _mlx4_dev_port()
401 dev->caps.ib_mtu_cap[port] = port_cap->ib_mtu; in _mlx4_dev_port()
402 dev->phys_caps.gid_phys_table_len[port] = port_cap->max_gids; in _mlx4_dev_port()
403 dev->phys_caps.pkey_phys_table_len[port] = port_cap->max_pkeys; in _mlx4_dev_port()
407 dev->caps.gid_table_len[port] = port_cap->max_gids; in _mlx4_dev_port()
408 dev->caps.pkey_table_len[port] = port_cap->max_pkeys; in _mlx4_dev_port()
409 dev->caps.port_width_cap[port] = port_cap->max_port_width; in _mlx4_dev_port()
410 dev->caps.eth_mtu_cap[port] = port_cap->eth_mtu; in _mlx4_dev_port()
411 dev->caps.max_tc_eth = port_cap in _mlx4_dev_port()
397 _mlx4_dev_port(struct mlx4_dev *dev, int port, struct mlx4_port_cap *port_cap) _mlx4_dev_port() argument
424 mlx4_dev_port(struct mlx4_dev *dev, int port, struct mlx4_port_cap *port_cap) mlx4_dev_port() argument
2240 struct mlx4_port_cap port_cap; mlx4_validate_optimized_steering() local
[all...]
H A Deq.c157 struct mlx4_port_cap port_cap; in mlx4_gen_slave_eqe() local
159 if (!mlx4_QUERY_PORT(dev, 1, &port_cap) && port_cap.link_state) in mlx4_gen_slave_eqe()
162 if (!mlx4_QUERY_PORT(dev, 2, &port_cap) && port_cap.link_state) in mlx4_gen_slave_eqe()
/kernel/linux/linux-6.6/drivers/net/ethernet/mellanox/mlx4/
H A Dfw.c1109 err = mlx4_QUERY_PORT(dev, i, dev_cap->port_cap + i); in mlx4_QUERY_DEV_CAP()
1160 dev_cap->local_ca_ack_delay, 128 << dev_cap->port_cap[1].ib_mtu, in mlx4_dev_cap_dump()
1161 dev_cap->port_cap[1].max_port_width); in mlx4_dev_cap_dump()
1186 int mlx4_QUERY_PORT(struct mlx4_dev *dev, int port, struct mlx4_port_cap *port_cap) in mlx4_QUERY_PORT() argument
1208 port_cap->max_vl = field >> 4; in mlx4_QUERY_PORT()
1210 port_cap->ib_mtu = field >> 4; in mlx4_QUERY_PORT()
1211 port_cap->max_port_width = field & 0xf; in mlx4_QUERY_PORT()
1213 port_cap->max_gids = 1 << (field & 0xf); in mlx4_QUERY_PORT()
1215 port_cap->max_pkeys = 1 << (field & 0xf); in mlx4_QUERY_PORT()
1235 port_cap in mlx4_QUERY_PORT()
1461 struct mlx4_port_cap port_cap; mlx4_QUERY_PORT_wrapper() local
[all...]
H A Dfw.h132 struct mlx4_port_cap port_cap[MLX4_MAX_PORTS + 1]; member
232 int mlx4_QUERY_PORT(struct mlx4_dev *dev, int port, struct mlx4_port_cap *port_cap);
H A Dmain.c397 struct mlx4_port_cap *port_cap) in _mlx4_dev_port()
399 dev->caps.vl_cap[port] = port_cap->max_vl; in _mlx4_dev_port()
400 dev->caps.ib_mtu_cap[port] = port_cap->ib_mtu; in _mlx4_dev_port()
401 dev->phys_caps.gid_phys_table_len[port] = port_cap->max_gids; in _mlx4_dev_port()
402 dev->phys_caps.pkey_phys_table_len[port] = port_cap->max_pkeys; in _mlx4_dev_port()
406 dev->caps.gid_table_len[port] = port_cap->max_gids; in _mlx4_dev_port()
407 dev->caps.pkey_table_len[port] = port_cap->max_pkeys; in _mlx4_dev_port()
408 dev->caps.port_width_cap[port] = port_cap->max_port_width; in _mlx4_dev_port()
409 dev->caps.eth_mtu_cap[port] = port_cap->eth_mtu; in _mlx4_dev_port()
410 dev->caps.max_tc_eth = port_cap in _mlx4_dev_port()
396 _mlx4_dev_port(struct mlx4_dev *dev, int port, struct mlx4_port_cap *port_cap) _mlx4_dev_port() argument
423 mlx4_dev_port(struct mlx4_dev *dev, int port, struct mlx4_port_cap *port_cap) mlx4_dev_port() argument
2265 struct mlx4_port_cap port_cap; mlx4_validate_optimized_steering() local
[all...]
H A Deq.c157 struct mlx4_port_cap port_cap; in mlx4_gen_slave_eqe() local
159 if (!mlx4_QUERY_PORT(dev, 1, &port_cap) && port_cap.link_state) in mlx4_gen_slave_eqe()
162 if (!mlx4_QUERY_PORT(dev, 2, &port_cap) && port_cap.link_state) in mlx4_gen_slave_eqe()
/kernel/linux/linux-5.10/drivers/net/ethernet/huawei/hinic/
H A Dhinic_ethtool.c265 struct hinic_port_cap port_cap; in hinic_get_link_ksettings() local
275 err = hinic_port_get_cap(nic_dev, &port_cap); in hinic_get_link_ksettings()
279 hinic_link_port_type(&settings, port_cap.port_type); in hinic_get_link_ksettings()
287 set_link_speed(link_ksettings, port_cap.speed); in hinic_get_link_ksettings()
289 (port_cap.duplex == HINIC_DUPLEX_FULL) ? in hinic_get_link_ksettings()
293 if (!!(port_cap.autoneg_cap & HINIC_AUTONEG_SUPPORTED)) in hinic_get_link_ksettings()
297 if (port_cap.autoneg_state == HINIC_AUTONEG_ACTIVE) in hinic_get_link_ksettings()
397 struct hinic_port_cap port_cap = { 0 }; in get_link_settings_type() local
400 err = hinic_port_get_cap(nic_dev, &port_cap); in get_link_settings_type()
405 if (port_cap in get_link_settings_type()
854 struct hinic_port_cap port_cap = {0}; hinic_set_pauseparam() local
[all...]
H A Dhinic_port.c344 * @port_cap: returned port capabilities
349 struct hinic_port_cap *port_cap) in hinic_port_get_cap()
354 u16 out_size = sizeof(*port_cap); in hinic_port_get_cap()
357 port_cap->func_idx = HINIC_HWIF_FUNC_IDX(hwif); in hinic_port_get_cap()
360 port_cap, sizeof(*port_cap), in hinic_port_get_cap()
361 port_cap, &out_size); in hinic_port_get_cap()
362 if (err || (out_size != sizeof(*port_cap)) || port_cap->status) { in hinic_port_get_cap()
365 err, port_cap in hinic_port_get_cap()
348 hinic_port_get_cap(struct hinic_dev *nic_dev, struct hinic_port_cap *port_cap) hinic_port_get_cap() argument
[all...]
H A Dhinic_sriov.c842 struct hinic_port_cap port_cap = { 0 }; in hinic_ndo_set_vf_bw() local
871 err = hinic_port_get_cap(nic_dev, &port_cap); in hinic_ndo_set_vf_bw()
872 if (err || port_cap.speed > LINK_SPEED_100GB) in hinic_ndo_set_vf_bw()
876 if (max_tx_rate < 0 || max_tx_rate > speeds[port_cap.speed]) { in hinic_ndo_set_vf_bw()
878 speeds[port_cap.speed]); in hinic_ndo_set_vf_bw()
H A Dhinic_main.c947 struct hinic_port_cap port_cap = {0}; in hinic_refresh_nic_cfg() local
949 if (hinic_port_get_cap(nic_dev, &port_cap)) in hinic_refresh_nic_cfg()
953 if (nic_cfg->pause_set || !port_cap.autoneg_state) { in hinic_refresh_nic_cfg()
954 nic_cfg->auto_neg = port_cap.autoneg_state; in hinic_refresh_nic_cfg()
H A Dhinic_port.h782 struct hinic_port_cap *port_cap);
/kernel/linux/linux-6.6/drivers/net/ethernet/huawei/hinic/
H A Dhinic_ethtool.c264 struct hinic_port_cap port_cap; in hinic_get_link_ksettings() local
274 err = hinic_port_get_cap(nic_dev, &port_cap); in hinic_get_link_ksettings()
278 hinic_link_port_type(&settings, port_cap.port_type); in hinic_get_link_ksettings()
286 set_link_speed(link_ksettings, port_cap.speed); in hinic_get_link_ksettings()
288 (port_cap.duplex == HINIC_DUPLEX_FULL) ? in hinic_get_link_ksettings()
292 if (!!(port_cap.autoneg_cap & HINIC_AUTONEG_SUPPORTED)) in hinic_get_link_ksettings()
296 if (port_cap.autoneg_state == HINIC_AUTONEG_ACTIVE) in hinic_get_link_ksettings()
394 struct hinic_port_cap port_cap = { 0 }; in get_link_settings_type() local
397 err = hinic_port_get_cap(nic_dev, &port_cap); in get_link_settings_type()
402 if (port_cap in get_link_settings_type()
854 struct hinic_port_cap port_cap = {0}; hinic_set_pauseparam() local
[all...]
H A Dhinic_port.c329 * @port_cap: returned port capabilities
334 struct hinic_port_cap *port_cap) in hinic_port_get_cap()
339 u16 out_size = sizeof(*port_cap); in hinic_port_get_cap()
342 port_cap->func_idx = HINIC_HWIF_FUNC_IDX(hwif); in hinic_port_get_cap()
345 port_cap, sizeof(*port_cap), in hinic_port_get_cap()
346 port_cap, &out_size); in hinic_port_get_cap()
347 if (err || out_size != sizeof(*port_cap) || port_cap->status) { in hinic_port_get_cap()
350 err, port_cap in hinic_port_get_cap()
333 hinic_port_get_cap(struct hinic_dev *nic_dev, struct hinic_port_cap *port_cap) hinic_port_get_cap() argument
[all...]
H A Dhinic_sriov.c864 struct hinic_port_cap port_cap = { 0 }; in hinic_ndo_set_vf_bw() local
887 err = hinic_port_get_cap(nic_dev, &port_cap); in hinic_ndo_set_vf_bw()
888 if (err || port_cap.speed > LINK_SPEED_100GB) in hinic_ndo_set_vf_bw()
892 if (max_tx_rate < 0 || max_tx_rate > speeds[port_cap.speed]) { in hinic_ndo_set_vf_bw()
894 speeds[port_cap.speed]); in hinic_ndo_set_vf_bw()
H A Dhinic_main.c940 struct hinic_port_cap port_cap = {0}; in hinic_refresh_nic_cfg() local
942 if (hinic_port_get_cap(nic_dev, &port_cap)) in hinic_refresh_nic_cfg()
946 if (nic_cfg->pause_set || !port_cap.autoneg_state) { in hinic_refresh_nic_cfg()
947 nic_cfg->auto_neg = port_cap.autoneg_state; in hinic_refresh_nic_cfg()

Completed in 50 milliseconds

12