/linux/tools/testing/selftests/drivers/net/mlxsw/ |
H A D | ethtool_lanes.sh | 41 local lanes=$1; shift 48 ((chosen_lanes == lanes)) 49 check_err $? "swp1 advertise $max_speed and $lanes, devs sync to $chosen_lanes" 66 ethtool -s $swp1 speed $max_speed lanes $unsupported_lanes $autoneg_str &> /dev/null 94 local lanes=$1; shift 98 if [[ $speed -eq ${arr[$i]} && $lanes -eq ${arr[i+1]} ]]; then 109 local lanes 118 lanes=$max_lanes 120 while [[ $lanes -ge 1 ]]; do 121 search_linkmode $max_speed $lanes "${linkmodes_params[@]}" [all …]
|
/linux/arch/arm64/boot/dts/renesas/ |
H A D | r8a779a0-falcon-csi-dsi.dtsi | 21 clock-lanes = <0>; 22 data-lanes = <1 2 3 4>; 40 clock-lanes = <0>; 41 data-lanes = <1 2 3 4>; 59 clock-lanes = <0>; 60 data-lanes = <1 2 3 4>; 111 clock-lanes = <0>; 112 data-lanes = <1 2 3 4>; 132 clock-lanes = <0>; 133 data-lanes = <1 2 3 4>; [all …]
|
H A D | hihope-rzg2-ex-aistarvision-mipi-adapter-2.1.dtsi | 18 clock-lanes = <0>; 19 data-lanes = <1 2>; 32 clock-lanes = <0>; 33 data-lanes = <1 2>; 49 clock-lanes = <0>; 50 data-lanes = <1 2>; 63 clock-lanes = <0>; 64 data-lanes = <1 2>;
|
H A D | white-hawk-csi-dsi.dtsi | 22 clock-lanes = <0>; 23 data-lanes = <1 2 3>; 42 clock-lanes = <0>; 43 data-lanes = <1 2 3>; 87 clock-lanes = <0>; 88 data-lanes = <1 2 3>; 108 clock-lanes = <0>; 109 data-lanes = <1 2 3>;
|
H A D | r8a774c0-ek874-mipi-2.1.dts | 38 clock-lanes = <0>; 39 data-lanes = <1 2>; 52 clock-lanes = <0>; 53 data-lanes = <1 2>; 62 clock-lanes = <0>; 63 data-lanes = <1 2>;
|
/linux/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() 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() 412 capacity = lanes[i] * (rates[j] * 10) * 8 / 10; in drm_dp_link_choose() 416 lanes[i], rates[j], requirement, in drm_dp_link_choose() 418 link->lanes = lanes[i]; in drm_dp_link_choose() 469 unsigned int lanes = link->lanes, *vs, *pe, *pc, i; in drm_dp_link_apply_training() local 485 for (i = 0; i < lanes; i++) in drm_dp_link_apply_training() [all …]
|
/linux/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() 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->clk.pos > 3) in omap3isp_csiphy_config() 203 if (lanes->clk.pos == 0 || used_lanes & (1 << lanes->clk.pos)) in omap3isp_csiphy_config() 249 reg |= (lanes->data[i].pol << in omap3isp_csiphy_config() 251 reg |= (lanes->data[i].pos << in omap3isp_csiphy_config() [all …]
|
/linux/drivers/phy/ |
H A D | phy-core-mipi-dphy.c | 22 unsigned int lanes, in phy_mipi_dphy_calc_config() argument 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() argument 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() argument 98 return phy_mipi_dphy_calc_config(0, 0, lanes, hs_clk_rate, cfg); in phy_mipi_dphy_get_default_config_for_hsclk()
|
/linux/arch/arm64/boot/dts/ti/ |
H A D | k3-j721e-sk-csi2-dual-imx219.dtso | 43 clock-lanes = <0>; 44 data-lanes = <1 2>; 65 clock-lanes = <0>; 66 data-lanes = <1 2>; 85 clock-lanes = <0>; 86 data-lanes = <1 2>; 132 clock-lanes = <0>; 133 data-lanes = <1 2>;
|
H A D | k3-am625-beagleplay-csi2-tevi-ov5640.dtso | 45 clock-lanes = <0>; 46 data-lanes = <1 2>; 64 clock-lanes = <0>; 65 data-lanes = <1 2>;
|
H A D | k3-am625-beagleplay-csi2-ov5640.dtso | 45 clock-lanes = <0>; 46 data-lanes = <1 2>; 64 clock-lanes = <0>; 65 data-lanes = <1 2>;
|
H A D | k3-am62x-sk-csi2-imx219.dtso | 50 clock-lanes = <0>; 51 data-lanes = <1 2>; 71 clock-lanes = <0>; 72 data-lanes = <1 2>;
|
H A D | k3-am62x-sk-csi2-tevi-ov5640.dtso | 48 clock-lanes = <0>; 49 data-lanes = <1 2>; 69 clock-lanes = <0>; 70 data-lanes = <1 2>;
|
H A D | k3-am62x-sk-csi2-ov5640.dtso | 48 clock-lanes = <0>; 49 data-lanes = <1 2>; 69 clock-lanes = <0>; 70 data-lanes = <1 2>;
|
/linux/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 84 lanes = eth_port.port_lanes / count; in nfp_devlink_port_split() 85 if (eth_port.lanes == 10 && count == 2) in nfp_devlink_port_split() 86 lanes = 8 / count; in nfp_devlink_port_split() 88 return nfp_devlink_set_lanes(pf, eth_port.index, lanes); in nfp_devlink_port_split() 97 unsigned int lanes; in nfp_devlink_port_unsplit() local 112 lanes = eth_port.port_lanes; in nfp_devlink_port_unsplit() 114 lanes = 10; in nfp_devlink_port_unsplit() [all …]
|
/linux/drivers/video/fbdev/omap2/omapfb/dss/ |
H A D | hdmi_common.c | 20 u32 lanes[8]; in hdmi_parse_lanes_of() local 22 if (len / sizeof(u32) != ARRAY_SIZE(lanes)) { 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()
|
/linux/drivers/gpu/drm/omapdrm/dss/ |
H A D | hdmi_common.c | 20 u32 lanes[8]; in hdmi_parse_lanes_of() local 22 if (len / sizeof(u32) != ARRAY_SIZE(lanes)) { 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()
|
/linux/tools/testing/selftests/drivers/net/hw/ |
H A D | devlink_port_split.py | 87 lanes = values['lanes'] 89 lanes = 0 90 return lanes 150 def exists_and_lanes(ports, lanes, dev): argument 162 if max_lanes != lanes: 164 % (port, lanes, max_lanes)) 204 def split_splittable_port(port, k, lanes, dev): argument 219 test(exists_and_lanes(new_split_group, lanes/k, dev),
|
/linux/arch/arm64/boot/dts/nvidia/ |
H A D | tegra234-p3768-0000+p3767.dtsi | 65 lanes { 84 lanes { 138 phys = <&{/bus@0/padctl@3520000/pads/usb2/lanes/usb2-0}>, 139 <&{/bus@0/padctl@3520000/pads/usb3/lanes/usb3-1}>; 146 phys = <&{/bus@0/padctl@3520000/pads/usb2/lanes/usb2-0}>, 147 <&{/bus@0/padctl@3520000/pads/usb2/lanes/usb2-1}>, 148 <&{/bus@0/padctl@3520000/pads/usb2/lanes/usb2-2}>, 149 <&{/bus@0/padctl@3520000/pads/usb3/lanes/usb3-0}>, 150 <&{/bus@0/padctl@3520000/pads/usb3/lanes/usb3-1}>; 159 num-lanes = <2>;
|
/linux/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()
|
/linux/Documentation/devicetree/bindings/pci/ |
H A D | nvidia,tegra20-pcie.txt | 104 - If lanes 0 to 3 are used: 107 - If lanes 4 or 5 are used: 148 - nvidia,num-lanes: Number of lanes to use for this port. Valid combinations 150 - Root port 0 uses 4 lanes, root port 1 is unused. 151 - Both root ports use 2 lanes. 157 number of lanes in the nvidia,num-lanes property. Entries are of the form 158 "pcie-N": where N ranges from 0 to the value specified in nvidia,num-lanes. 210 nvidia,num-lanes = <2>; 224 nvidia,num-lanes = <2>; 316 nvidia,num-lanes = <2>; [all …]
|
/linux/arch/arm64/boot/dts/marvell/ |
H A D | cn9132-db.dtsi | 66 * lanes not being connected. Prevent the port for being 107 /* Generic PHY, providing serdes lanes */ 155 num-lanes = <2>; 157 /* Generic PHY, providing serdes lanes */ 165 num-lanes = <1>; 167 /* Generic PHY, providing serdes lanes */ 176 /* Generic PHY, providing serdes lanes */ 223 /* Generic PHY, providing serdes lanes */
|
/linux/drivers/gpu/drm/rockchip/ |
H A D | cdn-dp-core.c | 155 u8 lanes; in cdn_dp_get_port_lanes() local 162 lanes = 2; in cdn_dp_get_port_lanes() 164 lanes = 4; in cdn_dp_get_port_lanes() 166 lanes = 0; in cdn_dp_get_port_lanes() 169 return lanes; in cdn_dp_get_port_lanes() 189 int i, lanes; in cdn_dp_connected_port() local 193 lanes = cdn_dp_get_port_lanes(port); in cdn_dp_connected_port() 194 if (lanes) in cdn_dp_connected_port() 283 u8 lanes, bpc; in cdn_dp_connector_mode_valid() local 303 source_max = dp->lanes; in cdn_dp_connector_mode_valid() [all …]
|
/linux/drivers/phy/cadence/ |
H A D | cdns-dphy-rx.c | 129 unsigned int lanes) in cdns_dphy_rx_wait_lane_ready() argument 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 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()
|
/linux/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() 190 (!req_lanes || info->lanes == ksettings->lanes) && in ethnl_auto_linkmodes() 273 } else if (!lsettings->autoneg && ksettings->lanes) { in ethnl_update_linkmodes() 277 ksettings->lanes = 0; in ethnl_update_linkmodes() 289 ethnl_update_u32(&ksettings->lanes, lanes_cfg, mod); in ethnl_update_linkmodes()
|