/kernel/linux/linux-6.6/tools/testing/selftests/drivers/net/mlxsw/ |
H A D | ethtool_lanes.sh | 29 log_test "SKIP: driver does not support lanes setting" 40 local lanes=$1; shift 47 ((chosen_lanes == lanes)) 48 check_err $? "swp1 advertise $max_speed and $lanes, devs sync to $chosen_lanes" 65 ethtool -s $swp1 speed $max_speed lanes $unsupported_lanes $autoneg_str &> /dev/null 66 check_fail $? "Unsuccessful $unsupported_lanes lanes setting was expected" 93 local lanes=$1; shift 97 if [[ $speed -eq ${arr[$i]} && $lanes -eq ${arr[i+1]} ]]; then 108 local lanes 117 lanes [all...] |
/kernel/linux/linux-5.10/drivers/staging/media/omap4iss/ |
H A D | iss_csiphy.c | 21 * csiphy_lanes_config - Configuration of CSIPHY lanes. 36 reg |= (phy->lanes.data[i].pol ? in csiphy_lanes_config() 38 reg |= (phy->lanes.data[i].pos << in csiphy_lanes_config() 44 reg |= phy->lanes.clk.pol ? CSI2_COMPLEXIO_CFG_CLOCK_POL : 0; in csiphy_lanes_config() 45 reg |= phy->lanes.clk.pos << CSI2_COMPLEXIO_CFG_CLOCK_POSITION_SHIFT; in csiphy_lanes_config() 123 struct iss_csiphy_lanes_cfg *lanes; in omap4iss_csiphy_config() local 128 lanes = &subdevs->bus.csi2.lanecfg; in omap4iss_csiphy_config() 150 /* Enable all lanes for now */ in omap4iss_csiphy_config() 161 /* Enable all lanes for now */ in omap4iss_csiphy_config() 173 /* Clock and data lanes verificatio in omap4iss_csiphy_config() [all...] |
/kernel/linux/linux-6.6/drivers/staging/media/omap4iss/ |
H A D | iss_csiphy.c | 21 * csiphy_lanes_config - Configuration of CSIPHY lanes. 36 reg |= (phy->lanes.data[i].pol ? in csiphy_lanes_config() 38 reg |= (phy->lanes.data[i].pos << in csiphy_lanes_config() 44 reg |= phy->lanes.clk.pol ? CSI2_COMPLEXIO_CFG_CLOCK_POL : 0; in csiphy_lanes_config() 45 reg |= phy->lanes.clk.pos << CSI2_COMPLEXIO_CFG_CLOCK_POSITION_SHIFT; in csiphy_lanes_config() 123 struct iss_csiphy_lanes_cfg *lanes; in omap4iss_csiphy_config() local 128 lanes = &subdevs->bus.csi2.lanecfg; in omap4iss_csiphy_config() 150 /* Enable all lanes for now */ in omap4iss_csiphy_config() 161 /* Enable all lanes for now */ in omap4iss_csiphy_config() 173 /* Clock and data lanes verificatio in omap4iss_csiphy_config() [all...] |
/kernel/linux/linux-5.10/drivers/media/platform/omap3isp/ |
H A D | ispcsiphy.c | 166 struct isp_csiphy_lanes_cfg *lanes; in omap3isp_csiphy_config() local 174 lanes = &buscfg->bus.ccp2.lanecfg; in omap3isp_csiphy_config() 177 lanes = &buscfg->bus.csi2.lanecfg; in omap3isp_csiphy_config() 184 /* Clock and data lanes verification */ in omap3isp_csiphy_config() 186 if (lanes->data[i].pol > 1 || lanes->data[i].pos > 3) in omap3isp_csiphy_config() 189 if (used_lanes & (1 << lanes->data[i].pos)) in omap3isp_csiphy_config() 192 used_lanes |= 1 << lanes->data[i].pos; in omap3isp_csiphy_config() 195 if (lanes->clk.pol > 1 || lanes in omap3isp_csiphy_config() [all...] |
/kernel/linux/linux-6.6/drivers/media/platform/ti/omap3isp/ |
H A D | ispcsiphy.c | 167 struct isp_csiphy_lanes_cfg *lanes; in omap3isp_csiphy_config() local 179 lanes = &buscfg->bus.ccp2.lanecfg; in omap3isp_csiphy_config() 182 lanes = &buscfg->bus.csi2.lanecfg; in omap3isp_csiphy_config() 189 /* Clock and data lanes verification */ in omap3isp_csiphy_config() 191 if (lanes->data[i].pol > 1 || lanes->data[i].pos > 3) in omap3isp_csiphy_config() 194 if (used_lanes & (1 << lanes->data[i].pos)) in omap3isp_csiphy_config() 197 used_lanes |= 1 << lanes->data[i].pos; in omap3isp_csiphy_config() 200 if (lanes->clk.pol > 1 || lanes in omap3isp_csiphy_config() [all...] |
/kernel/linux/linux-5.10/drivers/gpu/drm/tegra/ |
H A D | dp.c | 51 link->lanes = 0; in drm_dp_link_reset() 233 link->lanes = link->max_lanes; in drm_dp_link_probe() 346 values[1] = link->lanes; in drm_dp_link_configure() 381 * with the lowest number of lanes and the lowest possible link rate that can 393 /* available number of lanes */ in drm_dp_link_choose() 394 static const unsigned int lanes[3] = { 1, 2, 4 }; in drm_dp_link_choose() local 402 for (i = 0; i < ARRAY_SIZE(lanes) && lanes[i] <= link->max_lanes; i++) { in drm_dp_link_choose() 405 * Capacity for this combination of lanes and rate, in drm_dp_link_choose() 412 capacity = lanes[ in drm_dp_link_choose() 469 unsigned int lanes = link->lanes, *vs, *pe, *pc, i; drm_dp_link_apply_training() local [all...] |
/kernel/linux/linux-6.6/drivers/gpu/drm/tegra/ |
H A D | dp.c | 51 link->lanes = 0; in drm_dp_link_reset() 233 link->lanes = link->max_lanes; in drm_dp_link_probe() 346 values[1] = link->lanes; in drm_dp_link_configure() 381 * with the lowest number of lanes and the lowest possible link rate that can 393 /* available number of lanes */ in drm_dp_link_choose() 394 static const unsigned int lanes[3] = { 1, 2, 4 }; in drm_dp_link_choose() local 402 for (i = 0; i < ARRAY_SIZE(lanes) && lanes[i] <= link->max_lanes; i++) { in drm_dp_link_choose() 405 * Capacity for this combination of lanes and rate, in drm_dp_link_choose() 412 capacity = lanes[ in drm_dp_link_choose() 469 unsigned int lanes = link->lanes, *vs, *pe, *pc, i; drm_dp_link_apply_training() local [all...] |
/kernel/linux/linux-6.6/drivers/phy/ |
H A D | phy-core-mipi-dphy.c | 22 unsigned int lanes, in phy_mipi_dphy_calc_config() 33 do_div(hs_clk_rate, lanes); in phy_mipi_dphy_calc_config() 76 cfg->lanes = lanes; in phy_mipi_dphy_calc_config() 83 unsigned int lanes, in phy_mipi_dphy_get_default_config() 86 return phy_mipi_dphy_calc_config(pixel_clock, bpp, lanes, 0, cfg); in phy_mipi_dphy_get_default_config() 92 unsigned int lanes, in phy_mipi_dphy_get_default_config_for_hsclk() 98 return phy_mipi_dphy_calc_config(0, 0, lanes, hs_clk_rate, cfg); in phy_mipi_dphy_get_default_config_for_hsclk() 20 phy_mipi_dphy_calc_config(unsigned long pixel_clock, unsigned int bpp, unsigned int lanes, unsigned long long hs_clk_rate, struct phy_configure_opts_mipi_dphy *cfg) phy_mipi_dphy_calc_config() argument 81 phy_mipi_dphy_get_default_config(unsigned long pixel_clock, unsigned int bpp, unsigned int lanes, struct phy_configure_opts_mipi_dphy *cfg) phy_mipi_dphy_get_default_config() argument 91 phy_mipi_dphy_get_default_config_for_hsclk(unsigned long long hs_clk_rate, unsigned int lanes, struct phy_configure_opts_mipi_dphy *cfg) phy_mipi_dphy_get_default_config_for_hsclk() argument
|
/kernel/linux/linux-5.10/drivers/net/ethernet/netronome/nfp/ |
H A D | nfp_devlink.c | 40 nfp_devlink_set_lanes(struct nfp_pf *pf, unsigned int idx, unsigned int lanes) in nfp_devlink_set_lanes() argument 49 ret = __nfp_eth_set_split(nsp, lanes); in nfp_devlink_set_lanes() 70 unsigned int lanes; in nfp_devlink_port_split() local 87 lanes = eth_port.port_lanes / count; in nfp_devlink_port_split() 88 if (eth_port.lanes == 10 && count == 2) in nfp_devlink_port_split() 89 lanes = 8 / count; in nfp_devlink_port_split() 91 ret = nfp_devlink_set_lanes(pf, eth_port.index, lanes); in nfp_devlink_port_split() 104 unsigned int lanes; in nfp_devlink_port_unsplit() local 121 lanes = eth_port.port_lanes; in nfp_devlink_port_unsplit() 123 lanes in nfp_devlink_port_unsplit() [all...] |
/kernel/linux/linux-6.6/drivers/net/ethernet/netronome/nfp/ |
H A D | nfp_devlink.c | 39 nfp_devlink_set_lanes(struct nfp_pf *pf, unsigned int idx, unsigned int lanes) in nfp_devlink_set_lanes() argument 48 ret = __nfp_eth_set_split(nsp, lanes); in nfp_devlink_set_lanes() 69 unsigned int lanes; in nfp_devlink_port_split() local 82 lanes = eth_port.port_lanes / count; in nfp_devlink_port_split() 83 if (eth_port.lanes == 10 && count == 2) in nfp_devlink_port_split() 84 lanes = 8 / count; in nfp_devlink_port_split() 86 return nfp_devlink_set_lanes(pf, eth_port.index, lanes); in nfp_devlink_port_split() 95 unsigned int lanes; in nfp_devlink_port_unsplit() local 108 lanes = eth_port.port_lanes; in nfp_devlink_port_unsplit() 110 lanes in nfp_devlink_port_unsplit() [all...] |
/kernel/linux/linux-5.10/drivers/gpu/drm/omapdrm/dss/ |
H A D | hdmi_common.c | 18 prop = of_find_property(ep, "lanes", &len); in hdmi_parse_lanes_of() 20 u32 lanes[8]; in hdmi_parse_lanes_of() local 22 if (len / sizeof(u32) != ARRAY_SIZE(lanes)) { in hdmi_parse_lanes_of() 23 dev_err(&pdev->dev, "bad number of lanes\n"); in hdmi_parse_lanes_of() 27 r = of_property_read_u32_array(ep, "lanes", lanes, in hdmi_parse_lanes_of() 28 ARRAY_SIZE(lanes)); in hdmi_parse_lanes_of() 34 r = hdmi_phy_parse_lanes(phy, lanes); in hdmi_parse_lanes_of()
|
/kernel/linux/linux-5.10/drivers/video/fbdev/omap2/omapfb/dss/ |
H A D | hdmi_common.c | 18 prop = of_find_property(ep, "lanes", &len); in hdmi_parse_lanes_of() 20 u32 lanes[8]; in hdmi_parse_lanes_of() local 22 if (len / sizeof(u32) != ARRAY_SIZE(lanes)) { in hdmi_parse_lanes_of() 23 dev_err(&pdev->dev, "bad number of lanes\n"); in hdmi_parse_lanes_of() 27 r = of_property_read_u32_array(ep, "lanes", lanes, in hdmi_parse_lanes_of() 28 ARRAY_SIZE(lanes)); in hdmi_parse_lanes_of() 34 r = hdmi_phy_parse_lanes(phy, lanes); in hdmi_parse_lanes_of()
|
/kernel/linux/linux-6.6/drivers/video/fbdev/omap2/omapfb/dss/ |
H A D | hdmi_common.c | 18 prop = of_find_property(ep, "lanes", &len); in hdmi_parse_lanes_of() 20 u32 lanes[8]; in hdmi_parse_lanes_of() local 22 if (len / sizeof(u32) != ARRAY_SIZE(lanes)) { in hdmi_parse_lanes_of() 23 dev_err(&pdev->dev, "bad number of lanes\n"); in hdmi_parse_lanes_of() 27 r = of_property_read_u32_array(ep, "lanes", lanes, in hdmi_parse_lanes_of() 28 ARRAY_SIZE(lanes)); in hdmi_parse_lanes_of() 34 r = hdmi_phy_parse_lanes(phy, lanes); in hdmi_parse_lanes_of()
|
/kernel/linux/linux-6.6/drivers/gpu/drm/omapdrm/dss/ |
H A D | hdmi_common.c | 18 prop = of_find_property(ep, "lanes", &len); in hdmi_parse_lanes_of() 20 u32 lanes[8]; in hdmi_parse_lanes_of() local 22 if (len / sizeof(u32) != ARRAY_SIZE(lanes)) { in hdmi_parse_lanes_of() 23 dev_err(&pdev->dev, "bad number of lanes\n"); in hdmi_parse_lanes_of() 27 r = of_property_read_u32_array(ep, "lanes", lanes, in hdmi_parse_lanes_of() 28 ARRAY_SIZE(lanes)); in hdmi_parse_lanes_of() 34 r = hdmi_phy_parse_lanes(phy, lanes); in hdmi_parse_lanes_of()
|
/kernel/linux/linux-5.10/drivers/nubus/ |
H A D | proc.c | 73 int lanes = board->lanes; in nubus_proc_add_rsrc_dir() local 78 return proc_mkdir_data(name, 0555, procdir, (void *)lanes); in nubus_proc_add_rsrc_dir() 120 int lanes = (int)proc_get_parent_data(inode); in nubus_proc_rsrc_show() local 123 if (!lanes) in nubus_proc_rsrc_show() 126 ent.mask = lanes; in nubus_proc_rsrc_show()
|
/kernel/linux/linux-5.10/tools/testing/selftests/net/ |
H A D | devlink_port_split.py | 12 # Test port split configuration using devlink-port lanes attribute. 75 Get the $port's maximum number of lanes. 76 Return: number of lanes, e.g. 1, 2, 4 and 8. 84 if 'lanes' in values: 85 lanes = values['lanes'] 87 lanes = 0 88 return lanes 148 def exists_and_lanes(ports, lanes, dev): 151 $lanes numbe [all...] |
/kernel/linux/linux-6.6/tools/testing/selftests/net/ |
H A D | devlink_port_split.py | 12 # Test port split configuration using devlink-port lanes attribute. 77 Get the $port's maximum number of lanes. 78 Return: number of lanes, e.g. 1, 2, 4 and 8. 86 if 'lanes' in values: 87 lanes = values['lanes'] 89 lanes = 0 90 return lanes 150 def exists_and_lanes(ports, lanes, dev): 153 $lanes numbe [all...] |
/kernel/linux/linux-6.6/drivers/nubus/ |
H A D | proc.c | 73 int lanes = board->lanes; in nubus_proc_add_rsrc_dir() local 79 return proc_mkdir_data(name, 0555, procdir, (void *)lanes); in nubus_proc_add_rsrc_dir() 121 int lanes = (int)proc_get_parent_data(inode); in nubus_proc_rsrc_show() local 124 if (!lanes) in nubus_proc_rsrc_show() 127 ent.mask = lanes; in nubus_proc_rsrc_show()
|
/kernel/linux/linux-6.6/drivers/phy/cadence/ |
H A D | cdns-dphy-rx.c | 129 unsigned int lanes) in cdns_dphy_rx_wait_lane_ready() 145 for (i = 0; i < lanes; i++) { in cdns_dphy_rx_wait_lane_ready() 172 unsigned int reg, lanes = opts->mipi_dphy.lanes; in cdns_dphy_rx_configure() local 185 /* Data lanes. Minimum one lane is mandatory. */ in cdns_dphy_rx_configure() 186 if (lanes < DPHY_LANES_MIN || lanes > DPHY_LANES_MAX) in cdns_dphy_rx_configure() 206 ret = cdns_dphy_rx_wait_lane_ready(dphy, lanes); in cdns_dphy_rx_configure() 128 cdns_dphy_rx_wait_lane_ready(struct cdns_dphy_rx *dphy, unsigned int lanes) cdns_dphy_rx_wait_lane_ready() argument
|
/kernel/linux/linux-6.6/drivers/thunderbolt/ |
H A D | tunnel.c | 490 u32 lanes = (val & DP_COMMON_CAP_LANES_MASK) >> DP_COMMON_CAP_LANES_SHIFT; in tb_dp_cap_get_lanes() local 492 switch (lanes) { in tb_dp_cap_get_lanes() 504 static inline u32 tb_dp_cap_set_lanes(u32 val, u32 lanes) in tb_dp_cap_set_lanes() argument 507 switch (lanes) { in tb_dp_cap_set_lanes() 509 WARN(1, "invalid number of lanes %u passed, defaulting to 1\n", in tb_dp_cap_set_lanes() 510 lanes); in tb_dp_cap_set_lanes() 525 static unsigned int tb_dp_bandwidth(unsigned int rate, unsigned int lanes) in tb_dp_bandwidth() argument 529 return rate * lanes * 128 / 132; in tb_dp_bandwidth() 530 return rate * lanes * 8 / 10; in tb_dp_bandwidth() 538 /* Mb/s, lanes */ in tb_dp_reduce_bandwidth() 679 u32 rate, lanes; tb_dp_bandwidth_alloc_mode_enable() local 854 int ret, rate, lanes, nrd_bw; tb_dp_bandwidth_mode_maximum_bandwidth() local 1015 tb_dp_read_dprx(struct tb_tunnel *tunnel, u32 *rate, u32 *lanes, int timeout_msec) tb_dp_read_dprx() argument 1049 tb_dp_read_cap(struct tb_tunnel *tunnel, unsigned int cap, u32 *rate, u32 *lanes) tb_dp_read_cap() argument 1111 u32 rate = 0, lanes = 0; tb_dp_consumed_bandwidth() local 1244 u32 dp_cap, rate, lanes; tb_dp_dump() local [all...] |
/kernel/linux/linux-6.6/include/linux/phy/ |
H A D | phy-mipi-dphy.h | 270 * @lanes: 272 * Number of active, consecutive, data lanes, starting from 275 unsigned char lanes; member 280 unsigned int lanes, 283 unsigned int lanes,
|
/kernel/linux/linux-6.6/drivers/phy/rockchip/ |
H A D | phy-rockchip-snps-pcie3.c | 60 u32 lanes[4]; member 98 dev_info(&phy->dev, "lane number %d, val %d\n", i, priv->lanes[i]); in rockchip_p3phy_rk3568_init() 99 if (priv->lanes[i] > 1) in rockchip_p3phy_rk3568_init() 143 if (!priv->lanes[i]) in rockchip_p3phy_rk3588_init() 146 if (priv->lanes[i] > 1) in rockchip_p3phy_rk3588_init() 269 priv->num_lanes = of_property_read_variable_u32_array(dev->of_node, "data-lanes", in rockchip_p3phy_probe() 270 priv->lanes, 2, in rockchip_p3phy_probe() 271 ARRAY_SIZE(priv->lanes)); in rockchip_p3phy_probe() 273 /* if no data-lanes assume aggregation */ in rockchip_p3phy_probe() 275 dev_dbg(dev, "no data-lanes propert in rockchip_p3phy_probe() [all...] |
/kernel/linux/linux-6.6/net/ethtool/ |
H A D | linkmodes.c | 49 data->ksettings.lanes = 0; in linkmodes_prepare_data() 133 if (ksettings->lanes && in linkmodes_fill_reply() 134 nla_put_u32(skb, ETHTOOL_A_LINKMODES_LANES, ksettings->lanes)) in linkmodes_fill_reply() 168 * lanes and duplex values. Called when autonegotiation is on, speed, lanes or 190 (!req_lanes || info->lanes == ksettings->lanes) && in ethnl_auto_linkmodes() 229 "lanes value is invalid"); in ethnl_check_linkmodes() 264 /* If autoneg is off and lanes parameter is not supported by the in ethnl_update_linkmodes() 270 "lanes configuratio in ethnl_update_linkmodes() [all...] |
/kernel/linux/linux-5.10/drivers/phy/tegra/ |
H A D | xusb.c | 35 if (!pad->lanes[i]) in tegra_xusb_pad_of_xlate() 38 if (pad->lanes[i]->dev.of_node == args->np) { in tegra_xusb_pad_of_xlate() 39 phy = pad->lanes[i]; in tegra_xusb_pad_of_xlate() 97 struct device_node *np, *lanes; in tegra_xusb_pad_find_phy_node() local 99 lanes = of_get_child_by_name(pad->dev.of_node, "lanes"); in tegra_xusb_pad_find_phy_node() 100 if (!lanes) in tegra_xusb_pad_find_phy_node() 103 np = of_get_child_by_name(lanes, pad->soc->lanes[index].name); in tegra_xusb_pad_find_phy_node() 104 of_node_put(lanes); in tegra_xusb_pad_find_phy_node() [all...] |
/kernel/linux/linux-6.6/drivers/phy/tegra/ |
H A D | xusb.c | 35 if (!pad->lanes[i]) in tegra_xusb_pad_of_xlate() 38 if (pad->lanes[i]->dev.of_node == args->np) { in tegra_xusb_pad_of_xlate() 39 phy = pad->lanes[i]; in tegra_xusb_pad_of_xlate() 103 struct device_node *np, *lanes; in tegra_xusb_pad_find_phy_node() local 105 lanes = of_get_child_by_name(pad->dev.of_node, "lanes"); in tegra_xusb_pad_find_phy_node() 106 if (!lanes) in tegra_xusb_pad_find_phy_node() 109 np = of_get_child_by_name(lanes, pad->soc->lanes[index].name); in tegra_xusb_pad_find_phy_node() 110 of_node_put(lanes); in tegra_xusb_pad_find_phy_node() [all...] |