| /linux/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() 469 if (!iport->phy_table[iphy->phy_index] && in sci_port_set_phy() 471 sci_port_is_valid_phy_assignment(iport, iphy->phy_index)) { in sci_port_set_phy() 476 iport->phy_table[iphy->phy_index] = iphy; in sci_port_set_phy() 488 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() 660 phy_to_host(iphy)->id, iphy->phy_index, \ 665 phy_to_host(iphy)->id, iphy->phy_index, \ 1372 struct isci_port *iport, u8 phy_index) in sci_phy_construct() argument 1378 iphy->phy_index = phy_index; in sci_phy_construct()
|
| H A D | host.c | 949 ihost->phys[ihost->next_phy_to_start].phy_index, in sci_controller_start_next_phy() 1220 ihost->phys[index].phy_index, phy_status); in sci_controller_stop_phys() 1858 ihost->power_control.requesters[iphy->phy_index] = iphy; in sci_controller_power_control_queue_insert() 1869 if (ihost->power_control.requesters[iphy->phy_index]) in sci_controller_power_control_queue_remove() 1872 ihost->power_control.requesters[iphy->phy_index] = NULL; in sci_controller_power_control_queue_remove() 2397 "unexpected state %d\n", __func__, iphy->phy_index, in sci_controller_link_up() 2416 iphy->phy_index, in sci_controller_link_down()
|
| H A D | host.h | 377 ((controller)->invalid_phy_mask &= ~(1 << (phy)->phy_index))
|
| /linux/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 …]
|
| /linux/net/ethtool/ |
| H A D | phy.c | 209 unsigned long phy_index; global() member
|
| H A D | netlink.c | 209 req_info->phy_index = nla_get_u32(tb[ETHTOOL_A_HEADER_PHY_INDEX]); in ethnl_parse_header_dev_get() 212 "phy_index set without a netdev"); in ethnl_parse_header_dev_get() 233 if (!req_info->phy_index) in ethnl_req_get_phydev() 236 phydev = phy_link_topo_get_phy(req_info->dev, req_info->phy_index); in ethnl_req_get_phydev() 768 ethnl_ctx->req_info->phy_index = ctx->pos_phyindex; in ethnl_perphy_dump_one_dev() 772 * the req_info->phy_index in ethnl_perphy_dump_one_dev() 999 req_info->phy_index = orig_req_info->phy_index; in ethnl_default_notify()
|
| H A D | netlink.h | 257 * @phy_index: phy_device index connected to @dev this request is for. Can be 269 u32 phy_index; member 288 * Return: A phy_device pointer corresponding either to the passed phy_index 292 * returned. If the provided phy_index is invalid, an error pointer
|
| H A D | common.c | 966 unsigned long phy_index; in ethtool_phy_get_ts_info_by_phc() 968 xa_for_each(&dev->link_topo->phys, phy_index, pdn) { in ethtool_phy_get_ts_info_by_phc() 958 unsigned long phy_index; ethtool_phy_get_ts_info_by_phc() local
|
| /linux/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()
|
| /linux/drivers/usb/gadget/udc/ |
| H A D | tegra-xudc.c | 806 int phy_index; in tegra_xudc_update_data_role() local 817 phy_index = tegra_xudc_get_phy_index(xudc, usbphy); in tegra_xudc_update_data_role() 819 phy_index); in tegra_xudc_update_data_role() 821 if (!xudc->suspended && phy_index != -1) { in tegra_xudc_update_data_role() 822 xudc->curr_utmi_phy = xudc->utmi_phy[phy_index]; in tegra_xudc_update_data_role() 823 xudc->curr_usb3_phy = xudc->usb3_phy[phy_index]; in tegra_xudc_update_data_role()
|