/drivers/scsi/isci/ |
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 while (phy_index < SCI_MAX_PHYS) { 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 …]
|
D | port.c | 362 bool sci_port_is_valid_phy_assignment(struct isci_port *iport, u32 phy_index) in sci_port_is_valid_phy_assignment() argument 371 if ((iport->physical_port_index == 1) && (phy_index != 1)) in sci_port_is_valid_phy_assignment() 374 if (iport->physical_port_index == 3 && phy_index != 3) in sci_port_is_valid_phy_assignment() 378 (phy_index == 0 || phy_index == 1)) in sci_port_is_valid_phy_assignment() 382 if (iport->phy_table[index] && index != phy_index) in sci_port_is_valid_phy_assignment() 389 user->phys[phy_index].max_speed_generation != in sci_port_is_valid_phy_assignment() 467 if (!iport->phy_table[iphy->phy_index] && in sci_port_set_phy() 469 sci_port_is_valid_phy_assignment(iport, iphy->phy_index)) { in sci_port_set_phy() 474 iport->phy_table[iphy->phy_index] = iphy; in sci_port_set_phy() 486 if (iport->phy_table[iphy->phy_index] == iphy && in sci_port_clear_phy() [all …]
|
D | port.h | 200 (((port)->active_phy_mask & (1 << (phy)->phy_index)) != 0) 263 u32 phy_index);
|
D | phy.h | 92 u8 phy_index; member 402 u8 phy_index);
|
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, \ 1375 struct isci_port *iport, u8 phy_index) in sci_phy_construct() argument 1381 iphy->phy_index = phy_index; in sci_phy_construct()
|
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()
|
D | host.h | 378 ((controller)->invalid_phy_mask &= ~(1 << (phy)->phy_index))
|
/drivers/infiniband/hw/nes/ |
D | nes_hw.c | 1300 static int nes_init_1g_phy(struct nes_device *nesdev, u8 phy_type, u8 phy_index) in nes_init_1g_phy() argument 1306 nes_read_1G_phy_reg(nesdev, 1, phy_index, &phy_data); in nes_init_1g_phy() 1307 nes_write_1G_phy_reg(nesdev, 23, phy_index, 0xb000); in nes_init_1g_phy() 1310 nes_write_1G_phy_reg(nesdev, 0, phy_index, 0x8000); in nes_init_1g_phy() 1314 nes_read_1G_phy_reg(nesdev, 0, phy_index, &phy_data); in nes_init_1g_phy() 1324 nes_write_1G_phy_reg(nesdev, 0, phy_index, phy_data); in nes_init_1g_phy() 1325 nes_read_1G_phy_reg(nesdev, 0, phy_index, &phy_data); in nes_init_1g_phy() 1326 nes_read_1G_phy_reg(nesdev, 0x17, phy_index, &phy_data); in nes_init_1g_phy() 1327 nes_read_1G_phy_reg(nesdev, 0x1e, phy_index, &phy_data); in nes_init_1g_phy() 1330 nes_read_1G_phy_reg(nesdev, 0x19, phy_index, &phy_data); in nes_init_1g_phy() [all …]
|
D | nes_utils.c | 374 nesadapter->phy_index[0] = (eeprom_data & 0xff00)>>8; in nes_read_eeprom_values() 375 nesadapter->phy_index[1] = eeprom_data & 0x00ff; in nes_read_eeprom_values() 378 nesadapter->phy_index[2] = (eeprom_data & 0xff00)>>8; in nes_read_eeprom_values() 379 nesadapter->phy_index[3] = eeprom_data & 0x00ff; in nes_read_eeprom_values() 381 nesadapter->phy_index[0] = 4; in nes_read_eeprom_values() 382 nesadapter->phy_index[1] = 5; in nes_read_eeprom_values() 383 nesadapter->phy_index[2] = 6; in nes_read_eeprom_values() 384 nesadapter->phy_index[3] = 7; in nes_read_eeprom_values() 387 nesadapter->phy_index[0],nesadapter->phy_index[1], in nes_read_eeprom_values() 388 nesadapter->phy_index[2],nesadapter->phy_index[3]); in nes_read_eeprom_values()
|
D | nes_nic.c | 1475 u8 phy_index = nesadapter->phy_index[mac_index]; in nes_netdev_get_settings() local 1498 nes_read_1G_phy_reg(nesdev, 0, phy_index, &phy_data); in nes_netdev_get_settings() 1505 et_cmd->phy_address = phy_index; in nes_netdev_get_settings() 1516 et_cmd->phy_address = phy_index; in nes_netdev_get_settings() 1542 u8 phy_index = nesadapter->phy_index[nesdev->mac_index]; in nes_netdev_set_settings() local 1545 nes_read_1G_phy_reg(nesdev, 0, phy_index, &phy_data); in nes_netdev_set_settings() 1553 nes_write_1G_phy_reg(nesdev, 0, phy_index, phy_data); in nes_netdev_set_settings() 1786 nesdev->nesadapter->phy_index[nesdev->mac_index], in nes_netdev_init() 1790 nesdev->nesadapter->phy_index[nesdev->mac_index], in nes_netdev_init() 1794 nesdev->nesadapter->phy_index[nesdev->mac_index], in nes_netdev_init()
|
D | nes_hw.h | 1160 u8 phy_index[4]; member
|
/drivers/net/ethernet/broadcom/bnx2x/ |
D | bnx2x_link.c | 1456 u8 phy_index; in bnx2x_set_mdio_emac_per_phy() local 1458 for (phy_index = INT_PHY; phy_index < params->num_phys; in bnx2x_set_mdio_emac_per_phy() 1459 phy_index++) in bnx2x_set_mdio_emac_per_phy() 1461 params->phy[phy_index].mdio_ctrl); in bnx2x_set_mdio_emac_per_phy() 3197 u8 phy_index; in bnx2x_phy_read() local 3201 for (phy_index = 0; phy_index < params->num_phys; phy_index++) { in bnx2x_phy_read() 3202 if (params->phy[phy_index].addr == phy_addr) { in bnx2x_phy_read() 3204 ¶ms->phy[phy_index], devad, in bnx2x_phy_read() 3214 u8 phy_index; in bnx2x_phy_write() local 3218 for (phy_index = 0; phy_index < params->num_phys; phy_index++) { in bnx2x_phy_write() [all …]
|
/drivers/net/fddi/skfp/ |
D | smt.c | 64 static int phy_index(struct s_smc *smc, int phy); 1298 latency->lt_phyout_idx1 = phy_index(smc,0) ; in smt_fill_latency() 1305 latency->lt_phyout_idx2 = phy_index(smc,1) ; in smt_fill_latency() 1419 lem->lem_phy_index = phy_index(smc,phy) ; in smt_fill_lem() 1756 static int phy_index(struct s_smc *smc, int phy) in phy_index() function 1816 return phy_index(smc, e - ENTITY_PHY(0)); in entity_to_index()
|
/drivers/scsi/mpt3sas/ |
D | mpt3sas_transport.c | 870 int phy_index = mpt3sas_phy->phy_id; in mpt3sas_transport_add_host_phy() local 874 phy = sas_phy_alloc(parent_dev, phy_index); in mpt3sas_transport_add_host_phy() 939 int phy_index = mpt3sas_phy->phy_id; in mpt3sas_transport_add_expander_phy() local 942 phy = sas_phy_alloc(parent_dev, phy_index); in mpt3sas_transport_add_expander_phy()
|