/Linux-v6.1/include/drm/display/ |
D | drm_dp_helper.h | 495 const u8 port_cap[4], u8 type); 497 const u8 port_cap[4], 500 const u8 port_cap[4]); 502 const u8 port_cap[4], 505 const u8 port_cap[4], 508 const u8 port_cap[4], 511 const u8 port_cap[4]); 513 const u8 port_cap[4]); 516 const u8 port_cap[4]); 520 const u8 port_cap[4], [all …]
|
/Linux-v6.1/drivers/gpu/drm/display/ |
D | drm_dp_helper.c | 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() 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() 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[1] * 8000; in drm_dp_downstream_max_dotclock() 1045 const u8 port_cap[4], in drm_dp_downstream_max_tmds_clock() 1060 switch (port_cap[0] & DP_DS_PORT_TYPE_MASK) { in drm_dp_downstream_max_tmds_clock() 1088 return port_cap[1] * 2500; in drm_dp_downstream_max_tmds_clock() [all …]
|
/Linux-v6.1/drivers/usb/host/ |
D | xhci-mem.c | 2122 struct xhci_port_cap *port_cap; in xhci_add_in_port() local 2166 port_cap = &xhci->port_caps[xhci->num_port_caps++]; in xhci_add_in_port() 2170 port_cap->maj_rev = major_revision; in xhci_add_in_port() 2171 port_cap->min_rev = minor_revision; in xhci_add_in_port() 2172 port_cap->psi_count = XHCI_EXT_PORT_PSIC(temp); in xhci_add_in_port() 2174 if (port_cap->psi_count) { in xhci_add_in_port() 2175 port_cap->psi = kcalloc_node(port_cap->psi_count, in xhci_add_in_port() 2176 sizeof(*port_cap->psi), in xhci_add_in_port() 2178 if (!port_cap->psi) in xhci_add_in_port() 2179 port_cap->psi_count = 0; in xhci_add_in_port() [all …]
|
D | xhci-hub.c | 41 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->psi[i]; in xhci_create_usb3x_bos_desc() [all …]
|
D | xhci.h | 1737 struct xhci_port_cap *port_cap; member
|
/Linux-v6.1/drivers/net/ethernet/mellanox/mlx4/ |
D | fw.c | 1109 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->link_state = (field & 0x80) >> 7; in mlx4_QUERY_PORT() [all …]
|
D | main.c | 398 struct mlx4_port_cap *port_cap) in _mlx4_dev_port() argument 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->max_tc_eth; in _mlx4_dev_port() [all …]
|
D | fw.h | 132 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);
|
D | eq.c | 157 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()
|
/Linux-v6.1/drivers/net/ethernet/huawei/hinic/ |
D | hinic_ethtool.c | 264 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.autoneg_cap) in get_link_settings_type() [all …]
|
D | hinic_port.c | 349 struct hinic_port_cap *port_cap) in hinic_port_get_cap() argument 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->status, out_size); in hinic_port_get_cap()
|
D | hinic_sriov.c | 846 struct hinic_port_cap port_cap = { 0 }; in hinic_ndo_set_vf_bw() local 869 err = hinic_port_get_cap(nic_dev, &port_cap); in hinic_ndo_set_vf_bw() 870 if (err || port_cap.speed > LINK_SPEED_100GB) in hinic_ndo_set_vf_bw() 874 if (max_tx_rate < 0 || max_tx_rate > speeds[port_cap.speed]) { in hinic_ndo_set_vf_bw() 876 speeds[port_cap.speed]); in hinic_ndo_set_vf_bw()
|
D | hinic_main.c | 940 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()
|
D | hinic_port.h | 783 struct hinic_port_cap *port_cap);
|