/drivers/net/ethernet/mellanox/mlx4/ |
D | en_selftest.c | 143 if (priv->port_state.link_state == 1) in mlx4_en_test_link() 156 if (priv->port_state.link_speed != SPEED_100 && in mlx4_en_test_speed() 157 priv->port_state.link_speed != SPEED_1000 && in mlx4_en_test_speed() 158 priv->port_state.link_speed != SPEED_10000 && in mlx4_en_test_speed() 159 priv->port_state.link_speed != SPEED_20000 && in mlx4_en_test_speed() 160 priv->port_state.link_speed != SPEED_40000 && in mlx4_en_test_speed() 161 priv->port_state.link_speed != SPEED_56000) in mlx4_en_test_speed() 162 return priv->port_state.link_speed; in mlx4_en_test_speed()
|
D | en_ethtool.c | 544 (priv->port_state.flags & MLX4_EN_PORT_ANE)) in mlx4_en_autoneg_get() 809 = (priv->port_state.flags & MLX4_EN_PORT_ANC) ? in ethtool_get_ptys_link_ksettings() 818 if (priv->port_state.flags & MLX4_EN_PORT_ANC) in ethtool_get_ptys_link_ksettings() 847 trans_type = priv->port_state.transceiver; in ethtool_get_default_link_ksettings() 876 priv->port_state.flags & MLX4_EN_PORT_ANC, in mlx4_en_get_link_ksettings() 877 priv->port_state.flags & MLX4_EN_PORT_ANE); in mlx4_en_get_link_ksettings() 885 link_ksettings->base.speed = priv->port_state.link_speed; in mlx4_en_get_link_ksettings()
|
/drivers/gpio/ |
D | gpio-ws16c48.c | 111 unsigned port_state; in ws16c48_gpio_get() local 121 port_state = inb(ws16c48gpio->base + port); in ws16c48_gpio_get() 125 return !!(port_state & mask); in ws16c48_gpio_get() 135 unsigned long port_state; in ws16c48_gpio_get_multiple() local 142 port_state = inb(port_addr) & gpio_mask; in ws16c48_gpio_get_multiple() 144 bitmap_set_value8(bits, port_state, offset); in ws16c48_gpio_get_multiple() 212 unsigned port_state; in ws16c48_irq_ack() local 220 port_state = ws16c48gpio->irq_mask >> (8*port); in ws16c48_irq_ack() 223 outb(port_state & ~mask, ws16c48gpio->base + 8 + port); in ws16c48_irq_ack() 224 outb(port_state | mask, ws16c48gpio->base + 8 + port); in ws16c48_irq_ack()
|
D | gpio-gpio-mm.c | 153 unsigned int port_state; in gpiomm_gpio_get() local 163 port_state = inb(gpiommgpio->base + in_port); in gpiomm_gpio_get() 167 return !!(port_state & mask); in gpiomm_gpio_get() 179 unsigned long port_state; in gpiomm_gpio_get_multiple() local 186 port_state = inb(port_addr) & gpio_mask; in gpiomm_gpio_get_multiple() 188 bitmap_set_value8(bits, port_state, offset); in gpiomm_gpio_get_multiple()
|
D | gpio-104-dio-48e.c | 164 unsigned int port_state; in dio48e_gpio_get() local 174 port_state = inb(dio48egpio->base + in_port); in dio48e_gpio_get() 178 return !!(port_state & mask); in dio48e_gpio_get() 190 unsigned long port_state; in dio48e_gpio_get_multiple() local 197 port_state = inb(port_addr) & gpio_mask; in dio48e_gpio_get_multiple() 199 bitmap_set_value8(bits, port_state, offset); in dio48e_gpio_get_multiple()
|
D | gpio-pcie-idio-24.c | 254 unsigned long port_state; in idio_24_gpio_get_multiple() local 265 port_state = ioread8(ports[index]); in idio_24_gpio_get_multiple() 267 port_state = ioread8(&idio24gpio->reg->ttl_out0_7); in idio_24_gpio_get_multiple() 269 port_state = ioread8(&idio24gpio->reg->ttl_in0_7); in idio_24_gpio_get_multiple() 271 port_state &= gpio_mask; in idio_24_gpio_get_multiple() 273 bitmap_set_value8(bits, port_state, offset); in idio_24_gpio_get_multiple()
|
D | gpio-104-idi-48.c | 92 unsigned long port_state; in idi_48_gpio_get_multiple() local 99 port_state = inb(port_addr) & gpio_mask; in idi_48_gpio_get_multiple() 101 bitmap_set_value8(bits, port_state, offset); in idi_48_gpio_get_multiple()
|
D | gpio-pci-idio-16.c | 110 unsigned long port_state; in idio_16_gpio_get_multiple() local 117 port_state = ioread8(port_addr) & gpio_mask; in idio_16_gpio_get_multiple() 119 bitmap_set_value8(bits, port_state, offset); in idio_16_gpio_get_multiple()
|
/drivers/scsi/ |
D | scsi_transport_fc.c | 166 fc_enum_name_search(port_state, fc_port_state, fc_port_state_names) 167 fc_enum_name_match(port_state, fc_port_state, fc_port_state_names) 424 fc_host->port_state = FC_PORTSTATE_UNKNOWN; in fc_host_setup() 658 if (rport->port_state != FC_PORTSTATE_ONLINE) in fc_find_rport_by_wwpn() 990 !((rport->port_state == FC_PORTSTATE_BLOCKED) || \ 991 (rport->port_state == FC_PORTSTATE_DELETED) || \ 992 (rport->port_state == FC_PORTSTATE_NOTPRESENT))) \ 1008 if ((rport->port_state == FC_PORTSTATE_BLOCKED) || \ 1009 (rport->port_state == FC_PORTSTATE_DELETED) || \ 1010 (rport->port_state == FC_PORTSTATE_NOTPRESENT)) \ [all …]
|
/drivers/scsi/lpfc/ |
D | lpfc_vport.c | 76 vport->port_state = LPFC_VPORT_FAILED; in lpfc_vport_set_state() 79 vport->port_state = LPFC_VPORT_UNKNOWN; in lpfc_vport_set_state() 262 ((vport->port_state > LPFC_VPORT_FAILED) && in lpfc_discovery_wait() 263 (vport->port_state < LPFC_VPORT_READY))) { in lpfc_discovery_wait() 269 vport->port_state, vport->fc_flag, in lpfc_discovery_wait() 279 vport->port_state, vport->fc_flag, in lpfc_discovery_wait() 290 vport->port_state, vport->fc_flag, in lpfc_discovery_wait() 448 (pport->port_state < LPFC_FABRIC_CFG_LINK) || in lpfc_vport_create() 632 vport->port_state > LPFC_VPORT_FAILED && in lpfc_vport_delete() 633 vport->port_state < LPFC_VPORT_READY) { in lpfc_vport_delete() [all …]
|
D | lpfc_hbadisc.c | 373 ndlp->nlp_flag, vport->port_state); in lpfc_check_nlp_post_devloss() 473 vport->port_state); in lpfc_dev_loss_tmo_handler() 489 vport->port_state); in lpfc_dev_loss_tmo_handler() 1145 vport->port_state, vport->fc_ns_retry, vport->fc_flag); in lpfc_linkdown_port() 1362 mb->mbxStatus, vport->port_state); in lpfc_mbx_cmpl_clear_la() 1439 if (vport->port_state != LPFC_FLOGI) { in lpfc_mbx_cmpl_local_config_link() 1482 status, vport->port_state); in lpfc_mbx_cmpl_local_config_link() 1489 vport->port_state); in lpfc_mbx_cmpl_local_config_link() 1526 vport->port_state); in lpfc_mbx_cmpl_reg_fcfi() 1546 if (vport->port_state != LPFC_FLOGI) { in lpfc_mbx_cmpl_reg_fcfi() [all …]
|
D | lpfc_els.c | 100 if (vport->port_state >= LPFC_VPORT_READY || in lpfc_els_chk_latt() 116 phba->pport->port_state); in lpfc_els_chk_latt() 329 vport->port_state, ndlp->nlp_rpi, in lpfc_prep_els_iocb() 338 cmdSize, vport->port_state, in lpfc_prep_els_iocb() 398 vport->port_state = LPFC_FABRIC_CFG_LINK; in lpfc_issue_fabric_reglogin() 513 vport->port_state = LPFC_FABRIC_CFG_LINK; in lpfc_issue_reg_vfi() 567 "HBA state x%x\n", phba->pport->port_state); in lpfc_issue_unreg_vfi() 580 rc, phba->pport->port_state); in lpfc_issue_unreg_vfi() 1009 vport->port_state); in lpfc_cmpl_els_flogi() 1131 vport->port_state, vport->fc_flag, in lpfc_cmpl_els_flogi() [all …]
|
D | lpfc_ct.c | 654 vport->port_state); in lpfc_gen_req() 1132 if (vport->port_state >= LPFC_DISC_AUTH) { in lpfc_cmpl_ct_cmd_gid_ft() 1346 if (vport->port_state >= LPFC_DISC_AUTH) { in lpfc_cmpl_ct_cmd_gid_pt() 1492 if (vport->port_state >= LPFC_DISC_AUTH) { in lpfc_cmpl_ct_cmd_gff_id() 2003 if (vport->port_state < LPFC_NS_QRY) in lpfc_ns_cmd() 2004 vport->port_state = LPFC_NS_QRY; in lpfc_ns_cmd() 2015 if (vport->port_state < LPFC_NS_QRY) in lpfc_ns_cmd() 2016 vport->port_state = LPFC_NS_QRY; in lpfc_ns_cmd() 3481 vport->fc_flag, vport->port_state, cmdcode); in lpfc_fdmi_cmd() 3953 vport->fc_flag, vport->port_state, cmdcode); in lpfc_vmid_cmd()
|
D | lpfc_nvme.c | 501 vport->port_state, rc); in lpfc_nvme_gen_req() 512 vport->port_state, in lpfc_nvme_gen_req() 2474 ndlp->nlp_DID, remoteport->port_state); in lpfc_nvme_rescan_port() 2531 remoteport->port_id, remoteport->port_state, in lpfc_nvme_unregister_port() 2568 ret, remoteport->port_state); in lpfc_nvme_unregister_port()
|
/drivers/net/bonding/ |
D | bond_3ad.c | 495 partner->port_state = lacpdu->actor_state; in __record_pdu() 505 partner->port_state |= LACP_STATE_SYNCHRONIZATION; in __record_pdu() 509 partner->port_state &= ~LACP_STATE_SYNCHRONIZATION; in __record_pdu() 562 …(lacpdu->actor_state & LACP_STATE_AGGREGATION) != (partner->port_state & LACP_STATE_AGGREGATION)) { in __update_selected() 594 (admin->port_state & LACP_STATE_AGGREGATION) in __update_default_selected() 595 != (oper->port_state & LACP_STATE_AGGREGATION)) { in __update_default_selected() 817 lacpdu->partner_state = partner->port_state; in __update_lacpdu_from_port() 990 (port->partner_oper.port_state & LACP_STATE_SYNCHRONIZATION) && in ad_mux_machine() 1014 !(port->partner_oper.port_state & LACP_STATE_SYNCHRONIZATION) || in ad_mux_machine() 1178 port->partner_oper.port_state &= ~LACP_STATE_AGGREGATION; in ad_rx_machine() [all …]
|
D | bond_sysfs_slave.c | 104 ad_port->partner_oper.port_state); in ad_partner_oper_port_state_show()
|
/drivers/nvme/host/ |
D | fc.c | 246 WARN_ON(lport->localport.port_state != FC_OBJSTATE_DELETED); in nvme_fc_free_lport() 295 if (lport->localport.port_state != FC_OBJSTATE_DELETED) { in nvme_fc_attach_to_unreg_lport() 314 lport->localport.port_state = FC_OBJSTATE_ONLINE; in nvme_fc_attach_to_unreg_lport() 420 newrec->localport.port_state = FC_OBJSTATE_ONLINE; in nvme_fc_register_localport() 465 if (portptr->port_state != FC_OBJSTATE_ONLINE) { in nvme_fc_unregister_localport() 469 portptr->port_state = FC_OBJSTATE_DELETED; in nvme_fc_unregister_localport() 521 WARN_ON(rport->remoteport.port_state != FC_OBJSTATE_DELETED); in nvme_fc_free_rport() 605 if (rport->remoteport.port_state != FC_OBJSTATE_DELETED) { in nvme_fc_attach_to_suspended_rport() 614 rport->remoteport.port_state = FC_OBJSTATE_ONLINE; in nvme_fc_attach_to_suspended_rport() 733 newrec->remoteport.port_state = FC_OBJSTATE_ONLINE; in nvme_fc_register_remoteport() [all …]
|
/drivers/net/ethernet/mellanox/mlx5/core/ |
D | en_selftest.c | 72 u8 port_state; in mlx5e_test_link_state() local 77 port_state = mlx5_query_vport_state(priv->mdev, MLX5_VPORT_STATE_OP_MOD_VNIC_VPORT, 0); in mlx5e_test_link_state() 78 return port_state == VPORT_STATE_UP ? 0 : 1; in mlx5e_test_link_state()
|
/drivers/net/ethernet/huawei/hinic/ |
D | hinic_port.c | 286 struct hinic_port_state_cmd port_state; in hinic_port_set_state() local 289 u16 out_size = sizeof(port_state); in hinic_port_set_state() 295 port_state.state = state; in hinic_port_set_state() 298 &port_state, sizeof(port_state), in hinic_port_set_state() 299 &port_state, &out_size); in hinic_port_set_state() 300 if (err || out_size != sizeof(port_state) || port_state.status) { in hinic_port_set_state() 302 err, port_state.status, out_size); in hinic_port_set_state()
|
/drivers/scsi/qedi/ |
D | qedi_sysfs.c | 42 static DEVICE_ATTR_RO(port_state);
|
/drivers/message/fusion/ |
D | mptfc.c | 979 unsigned port_state; in mptfc_init_host_attr() local 1041 port_state = FC_PORTSTATE_UNKNOWN; in mptfc_init_host_attr() 1043 port_state = FC_PORTSTATE_ONLINE; in mptfc_init_host_attr() 1045 port_state = FC_PORTSTATE_LINKDOWN; in mptfc_init_host_attr() 1046 fc_host_port_state(sh) = port_state; in mptfc_init_host_attr()
|
/drivers/scsi/hisi_sas/ |
D | hisi_sas_v2_hw.c | 1634 u32 port_state = hisi_sas_read32(hisi_hba, PORT_STATE); in get_wideport_bitmap_v2_hw() local 1637 if (((port_state & PORT_STATE_PHY8_PORT_NUM_MSK) >> in get_wideport_bitmap_v2_hw() 2661 u32 port_state = hisi_sas_read32(hisi_hba, PORT_STATE); in phy_up_v2_hw() local 2663 port_id = (port_state & PORT_STATE_PHY8_PORT_NUM_MSK) >> in phy_up_v2_hw() 2665 link_rate = (port_state & PORT_STATE_PHY8_CONN_RATE_MSK) >> in phy_up_v2_hw() 2723 u32 port_state; in check_any_wideports_v2_hw() local 2725 port_state = hisi_sas_read32(hisi_hba, PORT_STATE); in check_any_wideports_v2_hw() 2726 if (port_state & 0x1ff) in check_any_wideports_v2_hw() 3248 u32 port_state = hisi_sas_read32(hisi_hba, PORT_STATE); in sata_int_v2_hw() local 3250 port_id = (port_state & PORT_STATE_PHY8_PORT_NUM_MSK) >> in sata_int_v2_hw() [all …]
|
/drivers/s390/scsi/ |
D | zfcp_unit.c | 29 if (rport && rport->port_state == FC_PORTSTATE_ONLINE) in zfcp_unit_scsi_scan()
|
/drivers/infiniband/core/ |
D | cache.c | 1180 enum ib_port_state *port_state) in ib_get_cached_port_state() argument 1189 *port_state = device->port_data[port_num].cache.port_state; in ib_get_cached_port_state() 1526 device->port_data[port].cache.port_state = tprops->state; in ib_cache_update()
|
/drivers/scsi/bfa/ |
D | bfa_defs_fcs.h | 133 u8 port_state; /* one of bfa_lport_state values */ member
|