Home
last modified time | relevance | path

Searched refs:phy_index (Results 1 - 23 of 23) sorted by relevance

/kernel/linux/linux-5.10/drivers/scsi/isci/
H A Dport_config.c250 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()
276 * The phy_index can be used as the starting point for the 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()
435 u8 phy_index; sci_apc_agent_validate_phy_configuration() local
608 u8 phy_index = iphy->phy_index; sci_apc_agent_link_up() local
[all...]
H A Dport.c363 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] in sci_port_set_phy()
1152 u32 phy_index; sci_port_hard_reset() local
1554 int phy_index; sci_port_set_hang_detection_timeout() local
[all...]
H A Dphy.h83 * @phy_index: physical index relative to the controller (0-3)
92 u8 phy_index; member
402 u8 phy_index);
H A Dport.h200 (((port)->active_phy_mask & (1 << (phy)->phy_index)) != 0)
263 u32 phy_index);
H A Dphy.c82 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()
1382 iphy->phy_index = phy_index; in sci_phy_construct()
1375 sci_phy_construct(struct isci_phy *iphy, struct isci_port *iport, u8 phy_index) sci_phy_construct() argument
H A Dhost.c951 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 Dhost.h102 * mapped into requesters via struct sci_phy.phy_index
377 ((controller)->invalid_phy_mask &= ~(1 << (phy)->phy_index))
/kernel/linux/linux-6.6/drivers/scsi/isci/
H A Dport_config.c250 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()
276 * The phy_index can be used as the starting point for the 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()
436 u8 phy_index; sci_apc_agent_validate_phy_configuration() local
610 u8 phy_index = iphy->phy_index; sci_apc_agent_link_up() local
[all...]
H A Dport.c363 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] in sci_port_set_phy()
1154 u32 phy_index; sci_port_hard_reset() local
1556 int phy_index; sci_port_set_hang_detection_timeout() local
[all...]
H A Dphy.h83 * @phy_index: physical index relative to the controller (0-3)
92 u8 phy_index; member
402 u8 phy_index);
H A Dport.h200 (((port)->active_phy_mask & (1 << (phy)->phy_index)) != 0)
263 u32 phy_index);
H A Dphy.c82 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()
1378 iphy->phy_index = phy_index; in sci_phy_construct()
1371 sci_phy_construct(struct isci_phy *iphy, struct isci_port *iport, u8 phy_index) sci_phy_construct() argument
H A Dhost.c949 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 Dhost.h102 * mapped into requesters via struct sci_phy.phy_index
377 ((controller)->invalid_phy_mask &= ~(1 << (phy)->phy_index))
/kernel/linux/linux-5.10/drivers/net/ethernet/broadcom/bnx2x/
H A Dbnx2x_link.c1446 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] in bnx2x_phy_read()
3208 u8 phy_index; bnx2x_phy_write() local
3423 u8 actual_phy_idx, phy_index, link_cfg_idx; set_phy_vars() local
6449 u16 gp_status = 0, phy_index = 0; bnx2x_test_link() local
6529 u8 phy_index, non_ext_phy; bnx2x_link_initialize() local
6804 u8 link_10g_plus, phy_index; bnx2x_link_update() local
12144 bnx2x_populate_preemphasis(struct bnx2x *bp, u32 shmem_base, struct bnx2x_phy *phy, u8 port, u8 phy_index) bnx2x_populate_preemphasis() argument
12181 bnx2x_get_ext_phy_config(struct bnx2x *bp, u32 shmem_base, u8 phy_index, u8 port) bnx2x_get_ext_phy_config() argument
12340 bnx2x_populate_ext_phy(struct bnx2x *bp, u8 phy_index, u32 shmem_base, u32 shmem2_base, u8 port, struct bnx2x_phy *phy) bnx2x_populate_ext_phy() argument
12468 bnx2x_populate_phy(struct bnx2x *bp, u8 phy_index, u32 shmem_base, u32 shmem2_base, u8 port, struct bnx2x_phy *phy) bnx2x_populate_phy() argument
12479 bnx2x_phy_def_cfg(struct link_params *params, struct bnx2x_phy *phy, u8 phy_index) bnx2x_phy_def_cfg() argument
12588 u8 phy_index, actual_phy_idx; bnx2x_phy_probe() local
12779 u8 phy_index; bnx2x_init_xgxs_loopback() local
13038 u8 phy_index, port = params->port, clear_latch_ind = 0; bnx2x_link_reset() local
13180 bnx2x_8073_common_init_phy(struct bnx2x *bp, u32 shmem_base_path[], u32 shmem2_base_path[], u8 phy_index, u32 chip_id) bnx2x_8073_common_init_phy() argument
13306 bnx2x_8726_common_init_phy(struct bnx2x *bp, u32 shmem_base_path[], u32 shmem2_base_path[], u8 phy_index, u32 chip_id) bnx2x_8726_common_init_phy() argument
13401 bnx2x_8727_common_init_phy(struct bnx2x *bp, u32 shmem_base_path[], u32 shmem2_base_path[], u8 phy_index, u32 chip_id) bnx2x_8727_common_init_phy() argument
13500 bnx2x_84833_common_init_phy(struct bnx2x *bp, u32 shmem_base_path[], u32 shmem2_base_path[], u8 phy_index, u32 chip_id) bnx2x_84833_common_init_phy() argument
13516 bnx2x_ext_phy_common_init(struct bnx2x *bp, u32 shmem_base_path[], u32 shmem2_base_path[], u8 phy_index, u32 ext_phy_type, u32 chip_id) bnx2x_ext_phy_common_init() argument
13576 u8 phy_index = 0; bnx2x_common_init_phy() local
13958 u8 phy_index, fan_failure_det_req = 0; bnx2x_fan_failure_det_req() local
13976 u8 phy_index; bnx2x_hw_reset_phy() local
14000 u8 gpio_num = 0xff, gpio_port = 0xff, phy_index; bnx2x_init_mod_abs_int() local
[all...]
/kernel/linux/linux-6.6/drivers/net/ethernet/broadcom/bnx2x/
H A Dbnx2x_link.c1446 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] in bnx2x_phy_read()
3208 u8 phy_index; bnx2x_phy_write() local
3423 u8 actual_phy_idx, phy_index, link_cfg_idx; set_phy_vars() local
6451 u16 gp_status = 0, phy_index = 0; bnx2x_test_link() local
6531 u8 phy_index, non_ext_phy; bnx2x_link_initialize() local
6806 u8 link_10g_plus, phy_index; bnx2x_link_update() local
12146 bnx2x_populate_preemphasis(struct bnx2x *bp, u32 shmem_base, struct bnx2x_phy *phy, u8 port, u8 phy_index) bnx2x_populate_preemphasis() argument
12183 bnx2x_get_ext_phy_config(struct bnx2x *bp, u32 shmem_base, u8 phy_index, u8 port) bnx2x_get_ext_phy_config() argument
12342 bnx2x_populate_ext_phy(struct bnx2x *bp, u8 phy_index, u32 shmem_base, u32 shmem2_base, u8 port, struct bnx2x_phy *phy) bnx2x_populate_ext_phy() argument
12470 bnx2x_populate_phy(struct bnx2x *bp, u8 phy_index, u32 shmem_base, u32 shmem2_base, u8 port, struct bnx2x_phy *phy) bnx2x_populate_phy() argument
12481 bnx2x_phy_def_cfg(struct link_params *params, struct bnx2x_phy *phy, u8 phy_index) bnx2x_phy_def_cfg() argument
12590 u8 phy_index, actual_phy_idx; bnx2x_phy_probe() local
12781 u8 phy_index; bnx2x_init_xgxs_loopback() local
13040 u8 phy_index, port = params->port, clear_latch_ind = 0; bnx2x_link_reset() local
13182 bnx2x_8073_common_init_phy(struct bnx2x *bp, u32 shmem_base_path[], u32 shmem2_base_path[], u8 phy_index, u32 chip_id) bnx2x_8073_common_init_phy() argument
13308 bnx2x_8726_common_init_phy(struct bnx2x *bp, u32 shmem_base_path[], u32 shmem2_base_path[], u8 phy_index, u32 chip_id) bnx2x_8726_common_init_phy() argument
13403 bnx2x_8727_common_init_phy(struct bnx2x *bp, u32 shmem_base_path[], u32 shmem2_base_path[], u8 phy_index, u32 chip_id) bnx2x_8727_common_init_phy() argument
13502 bnx2x_84833_common_init_phy(struct bnx2x *bp, u32 shmem_base_path[], u32 shmem2_base_path[], u8 phy_index, u32 chip_id) bnx2x_84833_common_init_phy() argument
13518 bnx2x_ext_phy_common_init(struct bnx2x *bp, u32 shmem_base_path[], u32 shmem2_base_path[], u8 phy_index, u32 ext_phy_type, u32 chip_id) bnx2x_ext_phy_common_init() argument
13578 u8 phy_index = 0; bnx2x_common_init_phy() local
13960 u8 phy_index, fan_failure_det_req = 0; bnx2x_fan_failure_det_req() local
13978 u8 phy_index; bnx2x_hw_reset_phy() local
14002 u8 gpio_num = 0xff, gpio_port = 0xff, phy_index; bnx2x_init_mod_abs_int() local
[all...]
/kernel/linux/linux-5.10/drivers/net/fddi/skfp/
H A Dsmt.c55 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()
/kernel/linux/linux-6.6/drivers/net/fddi/skfp/
H A Dsmt.c55 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()
/kernel/linux/linux-5.10/drivers/scsi/mpt3sas/
H A Dmpt3sas_transport.c846 int phy_index = mpt3sas_phy->phy_id; in mpt3sas_transport_add_host_phy() local
850 phy = sas_phy_alloc(parent_dev, phy_index); in mpt3sas_transport_add_host_phy()
915 int phy_index = mpt3sas_phy->phy_id; in mpt3sas_transport_add_expander_phy() local
918 phy = sas_phy_alloc(parent_dev, phy_index); in mpt3sas_transport_add_expander_phy()
/kernel/linux/linux-6.6/drivers/scsi/mpt3sas/
H A Dmpt3sas_transport.c1026 int phy_index = mpt3sas_phy->phy_id; in mpt3sas_transport_add_host_phy() local
1030 phy = sas_phy_alloc(parent_dev, phy_index); in mpt3sas_transport_add_host_phy()
1096 int phy_index = mpt3sas_phy->phy_id; in mpt3sas_transport_add_expander_phy() local
1099 phy = sas_phy_alloc(parent_dev, phy_index); in mpt3sas_transport_add_expander_phy()
/kernel/linux/linux-5.10/drivers/usb/gadget/udc/
H A Dtegra-xudc.c801 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()
/kernel/linux/linux-6.6/drivers/usb/gadget/udc/
H A Dtegra-xudc.c801 int phy_index; in tegra_xudc_update_data_role() local
813 phy_index = tegra_xudc_get_phy_index(xudc, usbphy); in tegra_xudc_update_data_role()
815 phy_index); in tegra_xudc_update_data_role()
817 if (!xudc->suspended && phy_index != -1) { in tegra_xudc_update_data_role()
818 xudc->curr_utmi_phy = xudc->utmi_phy[phy_index]; in tegra_xudc_update_data_role()
819 xudc->curr_usb3_phy = xudc->usb3_phy[phy_index]; in tegra_xudc_update_data_role()
/kernel/linux/linux-6.6/drivers/scsi/mpi3mr/
H A Dmpi3mr_transport.c866 int phy_index = mr_sas_phy->phy_id; in mpi3mr_add_host_phy() local
870 phy = sas_phy_alloc(parent_dev, phy_index); in mpi3mr_add_host_phy()
937 int phy_index = mr_sas_phy->phy_id; in mpi3mr_add_expander_phy() local
940 phy = sas_phy_alloc(parent_dev, phy_index); in mpi3mr_add_expander_phy()

Completed in 59 milliseconds