| /OK3568_Linux_fs/kernel/drivers/scsi/isci/ |
| H A D | port_config.c | 250 u8 phy_index; in sci_mpc_agent_validate_phy_configuration() local 269 for (phy_index = 0; phy_index < SCI_MAX_PHYS; phy_index++) { in sci_mpc_agent_validate_phy_configuration() 270 if ((phy_mask & (1 << phy_index)) == 0) in sci_mpc_agent_validate_phy_configuration() 272 sci_phy_get_sas_address(&ihost->phys[phy_index], in sci_mpc_agent_validate_phy_configuration() 279 port_agent->phy_valid_port_range[phy_index].min_index = port_index; in sci_mpc_agent_validate_phy_configuration() 280 port_agent->phy_valid_port_range[phy_index].max_index = phy_index; in sci_mpc_agent_validate_phy_configuration() 282 if (phy_index != port_index) { in sci_mpc_agent_validate_phy_configuration() 294 for (; phy_index < SCI_MAX_PHYS; phy_index++) { in sci_mpc_agent_validate_phy_configuration() 295 if ((phy_mask & (1 << phy_index)) == 0) in sci_mpc_agent_validate_phy_configuration() 297 sci_phy_get_sas_address(&ihost->phys[phy_index], in sci_mpc_agent_validate_phy_configuration() [all …]
|
| H A D | port.c | 363 bool sci_port_is_valid_phy_assignment(struct isci_port *iport, u32 phy_index) in sci_port_is_valid_phy_assignment() argument 372 if ((iport->physical_port_index == 1) && (phy_index != 1)) in sci_port_is_valid_phy_assignment() 375 if (iport->physical_port_index == 3 && phy_index != 3) in sci_port_is_valid_phy_assignment() 379 (phy_index == 0 || phy_index == 1)) in sci_port_is_valid_phy_assignment() 383 if (iport->phy_table[index] && index != phy_index) in sci_port_is_valid_phy_assignment() 390 user->phys[phy_index].max_speed_generation != in sci_port_is_valid_phy_assignment() 468 if (!iport->phy_table[iphy->phy_index] && in sci_port_set_phy() 470 sci_port_is_valid_phy_assignment(iport, iphy->phy_index)) { in sci_port_set_phy() 475 iport->phy_table[iphy->phy_index] = iphy; in sci_port_set_phy() 487 if (iport->phy_table[iphy->phy_index] == iphy && in sci_port_clear_phy() [all …]
|
| H A D | port.h | 200 (((port)->active_phy_mask & (1 << (phy)->phy_index)) != 0) 263 u32 phy_index);
|
| H A D | phy.h | 92 u8 phy_index; member 402 u8 phy_index);
|
| H A D | phy.c | 82 struct isci_phy *table = iphy - iphy->phy_index; in phy_to_host() 122 int phy_idx = iphy->phy_index; in sci_phy_link_layer_initialization() 663 phy_to_host(iphy)->id, iphy->phy_index, \ 668 phy_to_host(iphy)->id, iphy->phy_index, \ 1376 struct isci_port *iport, u8 phy_index) in sci_phy_construct() argument 1382 iphy->phy_index = phy_index; in sci_phy_construct()
|
| H A D | host.c | 951 ihost->phys[ihost->next_phy_to_start].phy_index, in sci_controller_start_next_phy() 1222 ihost->phys[index].phy_index, phy_status); in sci_controller_stop_phys() 1860 ihost->power_control.requesters[iphy->phy_index] = iphy; in sci_controller_power_control_queue_insert() 1871 if (ihost->power_control.requesters[iphy->phy_index]) in sci_controller_power_control_queue_remove() 1874 ihost->power_control.requesters[iphy->phy_index] = NULL; in sci_controller_power_control_queue_remove() 2399 "unexpected state %d\n", __func__, iphy->phy_index, in sci_controller_link_up() 2418 iphy->phy_index, in sci_controller_link_down()
|
| H A D | host.h | 377 ((controller)->invalid_phy_mask &= ~(1 << (phy)->phy_index))
|
| /OK3568_Linux_fs/u-boot/drivers/usb/host/ |
| H A D | ohci-sunxi.c | 33 int phy_index; /* Index of the usb-phy attached to this hcd */ member 58 priv->phy_index = ((uintptr_t)regs - (SUNXI_USB1_BASE + 0x400)) / BASE_DIST; in ohci_usb_probe() 59 priv->ahb_gate_mask <<= priv->phy_index * AHB_CLK_DIST; in ohci_usb_probe() 60 extra_ahb_gate_mask <<= priv->phy_index * AHB_CLK_DIST; in ohci_usb_probe() 61 priv->usb_gate_mask <<= priv->phy_index; in ohci_usb_probe() 62 priv->phy_index++; /* Non otg phys start at 1 */ in ohci_usb_probe() 72 sunxi_usb_phy_init(priv->phy_index); in ohci_usb_probe() 73 sunxi_usb_phy_power_on(priv->phy_index); in ohci_usb_probe() 87 sunxi_usb_phy_exit(priv->phy_index); in ohci_usb_remove()
|
| H A D | ehci-sunxi.c | 32 int phy_index; /* Index of the usb-phy attached to this hcd */ member 55 priv->phy_index = ((uintptr_t)hccr - SUNXI_USB1_BASE) / BASE_DIST; in ehci_usb_probe() 56 priv->ahb_gate_mask <<= priv->phy_index * AHB_CLK_DIST; in ehci_usb_probe() 57 extra_ahb_gate_mask <<= priv->phy_index * AHB_CLK_DIST; in ehci_usb_probe() 58 priv->phy_index++; /* Non otg phys start at 1 */ in ehci_usb_probe() 67 sunxi_usb_phy_init(priv->phy_index); in ehci_usb_probe() 68 sunxi_usb_phy_power_on(priv->phy_index); in ehci_usb_probe() 85 sunxi_usb_phy_exit(priv->phy_index); in ehci_usb_remove()
|
| /OK3568_Linux_fs/kernel/drivers/phy/rockchip/ |
| H A D | phy-rockchip-csi2-dphy.c | 114 dphy->phy_index, dphy->data_rate_mbps); in csi2_dphy_get_sensor_data_rate() 137 switch (dphy->phy_index) { in rockchip_csi2_dphy_attach_hw() 177 dphy->phy_index = 0; in rockchip_csi2_dphy_attach_hw() 179 dphy->phy_index = 3; in rockchip_csi2_dphy_attach_hw() 184 dphy->phy_index = 1; in rockchip_csi2_dphy_attach_hw() 186 dphy->phy_index = 4; in rockchip_csi2_dphy_attach_hw() 198 dphy->phy_index = 2; in rockchip_csi2_dphy_attach_hw() 200 dphy->phy_index = 5; in rockchip_csi2_dphy_attach_hw() 216 dphy->phy_index = 0; in rockchip_csi2_dphy_attach_hw() 218 dphy->phy_index = 3; in rockchip_csi2_dphy_attach_hw() [all …]
|
| H A D | phy-rockchip-csi2-dphy-hw.c | 576 if (dphy->phy_index < 3) { in csi2_dphy_config_dual_mode() 602 switch (dphy->phy_index) { in csi2_dphy_config_dual_mode() 716 if (dphy->phy_index % 3 == DPHY1) in csi2_dphy_hw_stream_on() 720 if (dphy->phy_index % 3 == DPHY2) { in csi2_dphy_hw_stream_on() 759 if (dphy->phy_index % 3 == DPHY1) { in csi2_dphy_hw_stream_on() 767 if (dphy->phy_index % 3 == DPHY2) { in csi2_dphy_hw_stream_on() 803 if (dphy->phy_index % 3 == DPHY1) { in csi2_dphy_hw_stream_on() 809 if (dphy->phy_index % 3 == DPHY2) { in csi2_dphy_hw_stream_on() 817 if (dphy->phy_index % 3 == DPHY0 || in csi2_dphy_hw_stream_on() 818 dphy->phy_index % 3 == DPHY1) { in csi2_dphy_hw_stream_on()
|
| H A D | phy-rockchip-mipi-rx.c | 593 int phy_index; member 827 if (priv->phy_index == 0) in rk1126_mipidphy_dphy_sel() 832 if (priv->phy_index == 0) in rk1126_mipidphy_dphy_sel() 837 if (priv->phy_index == 0) in rk1126_mipidphy_dphy_sel() 1142 priv->grf_regs = priv->phy_index ? in rv1126_mipidphy_individual_init() 1149 sel = !priv->phy_index ? 0 : RV1126_GRF_PHY1_SEL_ISP; in rv1126_mipidphy_individual_init() 1151 sel = !priv->phy_index ? 0 : in rv1126_mipidphy_individual_init() 1809 priv->phy_index = of_alias_get_id(dev->of_node, "dphy"); in rockchip_mipidphy_probe() 1810 if (priv->phy_index < 0) in rockchip_mipidphy_probe() 1811 priv->phy_index = 0; in rockchip_mipidphy_probe()
|
| H A D | phy-rockchip-csi2-dphy-common.h | 86 int phy_index; member
|
| /OK3568_Linux_fs/u-boot/drivers/misc/ |
| H A D | mxc_ocotp.c | 108 u32 phy_index; in fuse_bank_physical() local 111 phy_index = index; in fuse_bank_physical() 117 phy_index = fuse_bank_physical(5) + (index - 6) + 3; in fuse_bank_physical() 119 phy_index = index; in fuse_bank_physical() 122 phy_index = fuse_bank_physical(14) + (index - 15) + 2; in fuse_bank_physical() 124 phy_index = fuse_bank_physical(5) + (index - 6) + 3; in fuse_bank_physical() 126 phy_index = index; in fuse_bank_physical() 128 return phy_index; in fuse_bank_physical()
|
| /OK3568_Linux_fs/kernel/drivers/net/ethernet/broadcom/bnx2x/ |
| H A D | bnx2x_link.c | 1446 u8 phy_index; in bnx2x_set_mdio_emac_per_phy() local 1448 for (phy_index = INT_PHY; phy_index < params->num_phys; in bnx2x_set_mdio_emac_per_phy() 1449 phy_index++) in bnx2x_set_mdio_emac_per_phy() 1451 params->phy[phy_index].mdio_ctrl); in bnx2x_set_mdio_emac_per_phy() 3191 u8 phy_index; in bnx2x_phy_read() local 3195 for (phy_index = 0; phy_index < params->num_phys; phy_index++) { in bnx2x_phy_read() 3196 if (params->phy[phy_index].addr == phy_addr) { in bnx2x_phy_read() 3198 ¶ms->phy[phy_index], devad, in bnx2x_phy_read() 3208 u8 phy_index; in bnx2x_phy_write() local 3212 for (phy_index = 0; phy_index < params->num_phys; phy_index++) { in bnx2x_phy_write() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/net/fddi/skfp/ |
| H A D | smt.c | 55 static int phy_index(struct s_smc *smc, int phy); 1289 latency->lt_phyout_idx1 = phy_index(smc,0) ; in smt_fill_latency() 1296 latency->lt_phyout_idx2 = phy_index(smc,1) ; in smt_fill_latency() 1410 lem->lem_phy_index = phy_index(smc,phy) ; in smt_fill_lem() 1732 static int phy_index(struct s_smc *smc, int phy) in phy_index() function 1792 return phy_index(smc, e - ENTITY_PHY(0)); in entity_to_index()
|
| /OK3568_Linux_fs/kernel/drivers/video/rockchip/vehicle/ |
| H A D | vehicle-csi2-dphy-common.h | 378 int phy_index; member
|
| H A D | vehicle_cif.c | 1653 if (cif->dphy_hw->phy_index < 3) { in csi2_dphy_config_dual_mode() 5016 cif->dphy_hw->phy_index = 3; in vehicle_cif_init() 5018 cif->dphy_hw->phy_index = 0; in vehicle_cif_init() 5021 cif->dphy_hw->phy_index = 3; in vehicle_cif_init() 5023 cif->dphy_hw->phy_index = 0; in vehicle_cif_init() 5025 cif->dphy_hw->phy_index = 0; in vehicle_cif_init()
|
| /OK3568_Linux_fs/kernel/drivers/scsi/mpt3sas/ |
| H A D | mpt3sas_transport.c | 834 int phy_index = mpt3sas_phy->phy_id; in mpt3sas_transport_add_host_phy() local 838 phy = sas_phy_alloc(parent_dev, phy_index); in mpt3sas_transport_add_host_phy() 903 int phy_index = mpt3sas_phy->phy_id; in mpt3sas_transport_add_expander_phy() local 906 phy = sas_phy_alloc(parent_dev, phy_index); in mpt3sas_transport_add_expander_phy()
|
| /OK3568_Linux_fs/kernel/drivers/usb/gadget/udc/ |
| H A D | tegra-xudc.c | 801 int phy_index; in tegra_xudc_vbus_notify() local 815 phy_index = tegra_xudc_get_phy_index(xudc, usbphy); in tegra_xudc_vbus_notify() 817 phy_index); in tegra_xudc_vbus_notify() 819 if (!xudc->suspended && phy_index != -1) { in tegra_xudc_vbus_notify() 820 xudc->curr_utmi_phy = xudc->utmi_phy[phy_index]; in tegra_xudc_vbus_notify() 821 xudc->curr_usb3_phy = xudc->usb3_phy[phy_index]; in tegra_xudc_vbus_notify()
|