Home
last modified time | relevance | path

Searched refs:phy_index (Results 1 – 15 of 15) sorted by relevance

/linux/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 Dport.h200 (((port)->active_phy_mask & (1 << (phy)->phy_index)) != 0)
263 u32 phy_index);
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 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() argument
1378 iphy->phy_index = phy_index; in sci_phy_construct()
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))
/linux/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
12148 bnx2x_populate_preemphasis(struct bnx2x * bp,u32 shmem_base,struct bnx2x_phy * phy,u8 port,u8 phy_index) bnx2x_populate_preemphasis() argument
12184 bnx2x_get_ext_phy_config(struct bnx2x * bp,u32 shmem_base,u8 phy_index,u8 port) bnx2x_get_ext_phy_config() argument
12343 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
12483 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
13184 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
13310 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
13405 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
13505 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
13519 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...]
/linux/drivers/hwmon/
H A Dlenovo-ec-sensors.c49 unsigned short phy_index = page * 256 + index; in get_ec_reg() local
53 m_index = phy_index & GENMASK(14, 2); in get_ec_reg()
56 onebyte = inb_p(MCHP_EMI0_EC_DATA_BYTE0 + (phy_index & GENMASK(1, 0))); in get_ec_reg()
/linux/net/ethtool/
H A Dnetlink.c209 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()
767 ethnl_ctx->req_info->phy_index = ctx->pos_phyindex; in ethnl_perphy_dump_one_dev()
771 * the req_info->phy_index in ethnl_perphy_dump_one_dev()
998 req_info->phy_index = orig_req_info->phy_index; in ethnl_default_notify()
H A Dnetlink.h257 * @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
/linux/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()
/linux/drivers/scsi/mpt3sas/
H A Dmpt3sas_transport.c1022 int phy_index = mpt3sas_phy->phy_id; in mpt3sas_transport_add_host_phy() local
1026 phy = sas_phy_alloc(parent_dev, phy_index); in mpt3sas_transport_add_host_phy()
1092 int phy_index = mpt3sas_phy->phy_id; in mpt3sas_transport_add_expander_phy() local
1095 phy = sas_phy_alloc(parent_dev, phy_index); in mpt3sas_transport_add_expander_phy()
/linux/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()
/linux/drivers/scsi/mpi3mr/
H A Dmpi3mr_transport.c884 int phy_index = mr_sas_phy->phy_id; in mpi3mr_add_host_phy() local
888 phy = sas_phy_alloc(parent_dev, phy_index); in mpi3mr_add_host_phy()
955 int phy_index = mr_sas_phy->phy_id; in mpi3mr_add_expander_phy() local
958 phy = sas_phy_alloc(parent_dev, phy_index); in mpi3mr_add_expander_phy()