Home
last modified time | relevance | path

Searched refs:port_state (Results 1 – 25 of 74) sorted by relevance

123

/Linux-v4.19/drivers/net/ethernet/mellanox/mlx4/
Den_selftest.c143 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()
/Linux-v4.19/drivers/net/ethernet/huawei/hinic/
Dhinic_port.c293 struct hinic_port_state_cmd port_state; in hinic_port_set_state() local
304 port_state.state = state; in hinic_port_set_state()
307 &port_state, sizeof(port_state), in hinic_port_set_state()
308 &port_state, &out_size); in hinic_port_set_state()
309 if (err || (out_size != sizeof(port_state)) || port_state.status) { in hinic_port_set_state()
311 port_state.status); in hinic_port_set_state()
/Linux-v4.19/drivers/gpio/
Dgpio-ws16c48.c116 unsigned port_state; in ws16c48_gpio_get() local
126 port_state = inb(ws16c48gpio->base + port); in ws16c48_gpio_get()
130 return !!(port_state & mask); in ws16c48_gpio_get()
145 unsigned long port_state; in ws16c48_gpio_get_multiple() local
169 port_state = inb(ws16c48gpio->base + i); in ws16c48_gpio_get_multiple()
172 bits[word_index] |= port_state << word_offset; in ws16c48_gpio_get_multiple()
250 unsigned port_state; in ws16c48_irq_ack() local
258 port_state = ws16c48gpio->irq_mask >> (8*port); in ws16c48_irq_ack()
261 outb(port_state & ~mask, ws16c48gpio->base + 8 + port); in ws16c48_irq_ack()
262 outb(port_state | mask, ws16c48gpio->base + 8 + port); in ws16c48_irq_ack()
Dgpio-gpio-mm.c158 unsigned int port_state; in gpiomm_gpio_get() local
168 port_state = inb(gpiommgpio->base + in_port); in gpiomm_gpio_get()
172 return !!(port_state & mask); in gpiomm_gpio_get()
187 unsigned long port_state; in gpiomm_gpio_get_multiple() local
211 port_state = inb(gpiommgpio->base + ports[i]); in gpiomm_gpio_get_multiple()
214 bits[word_index] |= port_state << word_offset; in gpiomm_gpio_get_multiple()
Dgpio-104-dio-48e.c169 unsigned port_state; in dio48e_gpio_get() local
179 port_state = inb(dio48egpio->base + in_port); in dio48e_gpio_get()
183 return !!(port_state & mask); in dio48e_gpio_get()
198 unsigned long port_state; in dio48e_gpio_get_multiple() local
222 port_state = inb(dio48egpio->base + ports[i]); in dio48e_gpio_get_multiple()
225 bits[word_index] |= port_state << word_offset; in dio48e_gpio_get_multiple()
Dgpio-pcie-idio-24.c208 unsigned long port_state; in idio_24_gpio_get_multiple() local
239 port_state = ioread8(ports[i]); in idio_24_gpio_get_multiple()
241 port_state = ioread8(&idio24gpio->reg->ttl_out0_7); in idio_24_gpio_get_multiple()
243 port_state = ioread8(&idio24gpio->reg->ttl_in0_7); in idio_24_gpio_get_multiple()
246 bits[word_index] |= port_state << word_offset; in idio_24_gpio_get_multiple()
Dgpio-104-idi-48.c104 unsigned long port_state; in idi_48_gpio_get_multiple() local
128 port_state = inb(idi48gpio->base + ports[i]); in idi_48_gpio_get_multiple()
131 bits[word_index] |= port_state << word_offset; in idi_48_gpio_get_multiple()
Dgpio-pci-idio-16.c118 unsigned long port_state; in idio_16_gpio_get_multiple() local
146 port_state = ioread8(ports[i]); in idio_16_gpio_get_multiple()
149 bits[word_index] |= port_state << word_offset; in idio_16_gpio_get_multiple()
/Linux-v4.19/drivers/scsi/lpfc/
Dlpfc_vport.c76 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()
461 (pport->port_state < LPFC_FABRIC_CFG_LINK) || in lpfc_vport_create()
647 vport->port_state > LPFC_VPORT_FAILED && in lpfc_vport_delete()
648 vport->port_state < LPFC_VPORT_READY) { in lpfc_vport_delete()
[all …]
Dlpfc_hbadisc.c871 vport->port_state, vport->fc_ns_retry, vport->fc_flag); in lpfc_linkdown_port()
1062 mb->mbxStatus, vport->port_state); in lpfc_mbx_cmpl_clear_la()
1137 if (vport->port_state != LPFC_FLOGI) { in lpfc_mbx_cmpl_local_config_link()
1154 pmb->u.mb.mbxStatus, vport->port_state); in lpfc_mbx_cmpl_local_config_link()
1161 vport->port_state); in lpfc_mbx_cmpl_local_config_link()
1198 mboxq->u.mb.mbxStatus, vport->port_state); in lpfc_mbx_cmpl_reg_fcfi()
1218 if (vport->port_state != LPFC_FLOGI) { in lpfc_mbx_cmpl_reg_fcfi()
1471 if (phba->pport->port_state != LPFC_FLOGI && in lpfc_register_fcf()
1993 phba->pport->port_state, LPFC_VPORT_UNKNOWN); in lpfc_sli4_fcf_rr_next_proc()
1994 phba->pport->port_state = LPFC_VPORT_UNKNOWN; in lpfc_sli4_fcf_rr_next_proc()
[all …]
Dlpfc_els.c88 if (vport->port_state >= LPFC_VPORT_READY || in lpfc_els_chk_latt()
104 phba->pport->port_state); in lpfc_els_chk_latt()
319 vport->port_state, in lpfc_prep_els_iocb()
328 cmdSize, vport->port_state, in lpfc_prep_els_iocb()
388 vport->port_state = LPFC_FABRIC_CFG_LINK; in lpfc_issue_fabric_reglogin()
497 vport->port_state = LPFC_FABRIC_CFG_LINK; in lpfc_issue_reg_vfi()
551 "HBA state x%x\n", phba->pport->port_state); in lpfc_issue_unreg_vfi()
564 rc, phba->pport->port_state); in lpfc_issue_unreg_vfi()
1000 vport->port_state); in lpfc_cmpl_els_flogi()
1117 vport->port_state, vport->fc_flag); in lpfc_cmpl_els_flogi()
[all …]
/Linux-v4.19/drivers/scsi/
Dscsi_transport_fc.c174 fc_enum_name_search(port_state, fc_port_state, fc_port_state_names)
427 fc_host->port_state = FC_PORTSTATE_UNKNOWN; in fc_host_setup()
712 !((rport->port_state == FC_PORTSTATE_BLOCKED) || \
713 (rport->port_state == FC_PORTSTATE_DELETED) || \
714 (rport->port_state == FC_PORTSTATE_NOTPRESENT))) \
730 if ((rport->port_state == FC_PORTSTATE_BLOCKED) || \
731 (rport->port_state == FC_PORTSTATE_DELETED) || \
732 (rport->port_state == FC_PORTSTATE_NOTPRESENT)) \
873 if ((rport->port_state == FC_PORTSTATE_BLOCKED) || in fc_rport_set_dev_loss_tmo()
874 (rport->port_state == FC_PORTSTATE_DELETED) || in fc_rport_set_dev_loss_tmo()
[all …]
/Linux-v4.19/include/linux/
Dnvme-fc-driver.h228 enum nvme_fc_obj_state port_state; member
272 enum nvme_fc_obj_state port_state; member
705 enum nvme_fc_obj_state port_state; member
/Linux-v4.19/drivers/net/bonding/
Dbond_3ad.c508 partner->port_state = lacpdu->actor_state; in __record_pdu()
518 partner->port_state |= AD_STATE_SYNCHRONIZATION; in __record_pdu()
521 partner->port_state &= ~AD_STATE_SYNCHRONIZATION; in __record_pdu()
573 … (lacpdu->actor_state & AD_STATE_AGGREGATION) != (partner->port_state & AD_STATE_AGGREGATION)) { in __update_selected()
605 (admin->port_state & AD_STATE_AGGREGATION) in __update_default_selected()
606 != (oper->port_state & AD_STATE_AGGREGATION)) { in __update_default_selected()
821 lacpdu->partner_state = partner->port_state; in __update_lacpdu_from_port()
980 (port->partner_oper.port_state & AD_STATE_SYNCHRONIZATION) && in ad_mux_machine()
1004 !(port->partner_oper.port_state & AD_STATE_SYNCHRONIZATION) || in ad_mux_machine()
1164 port->partner_oper.port_state &= ~AD_STATE_AGGREGATION; in ad_rx_machine()
[all …]
Dbond_sysfs_slave.c106 ad_port->partner_oper.port_state); in ad_partner_oper_port_state_show()
/Linux-v4.19/drivers/nvme/host/
Dfc.c229 WARN_ON(lport->localport.port_state != FC_OBJSTATE_DELETED); in nvme_fc_free_lport()
278 if (lport->localport.port_state != FC_OBJSTATE_DELETED) { in nvme_fc_attach_to_unreg_lport()
297 lport->localport.port_state = FC_OBJSTATE_ONLINE; in nvme_fc_attach_to_unreg_lport()
400 newrec->localport.port_state = FC_OBJSTATE_ONLINE; in nvme_fc_register_localport()
446 if (portptr->port_state != FC_OBJSTATE_ONLINE) { in nvme_fc_unregister_localport()
450 portptr->port_state = FC_OBJSTATE_DELETED; in nvme_fc_unregister_localport()
502 WARN_ON(rport->remoteport.port_state != FC_OBJSTATE_DELETED); in nvme_fc_free_rport()
585 if (rport->remoteport.port_state != FC_OBJSTATE_DELETED) { in nvme_fc_attach_to_suspended_rport()
594 rport->remoteport.port_state = FC_OBJSTATE_ONLINE; in nvme_fc_attach_to_suspended_rport()
708 newrec->remoteport.port_state = FC_OBJSTATE_ONLINE; in nvme_fc_register_remoteport()
[all …]
/Linux-v4.19/drivers/net/ethernet/mellanox/mlx5/core/
Den_selftest.c72 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()
/Linux-v4.19/include/scsi/
Dscsi_transport_fc.h348 enum fc_port_state port_state; /* Will only be ONLINE or UNKNOWN */ member
524 enum fc_port_state port_state; member
594 (((struct fc_host_attrs *)(x)->shost_data)->port_state)
736 switch (rport->port_state) { in fc_remote_port_chkready()
Dscsi_transport_iscsi.h278 uint32_t port_state; member
484 iscsi_get_ipaddress_state_name(enum iscsi_ipaddress_state port_state);
/Linux-v4.19/drivers/scsi/qedi/
Dqedi_sysfs.c45 static DEVICE_ATTR(port_state, 0444, qedi_show_port_state, NULL);
/Linux-v4.19/drivers/s390/scsi/
Dzfcp_unit.c29 if (rport && rport->port_state == FC_PORTSTATE_ONLINE) in zfcp_unit_scsi_scan()
/Linux-v4.19/drivers/message/fusion/
Dmptfc.c981 unsigned port_state; in mptfc_init_host_attr() local
1043 port_state = FC_PORTSTATE_UNKNOWN; in mptfc_init_host_attr()
1045 port_state = FC_PORTSTATE_ONLINE; in mptfc_init_host_attr()
1047 port_state = FC_PORTSTATE_LINKDOWN; in mptfc_init_host_attr()
1048 fc_host_port_state(sh) = port_state; in mptfc_init_host_attr()
/Linux-v4.19/drivers/scsi/hisi_sas/
Dhisi_sas_v2_hw.c1628 u32 port_state = hisi_sas_read32(hisi_hba, PORT_STATE); in get_wideport_bitmap_v2_hw() local
1631 if (((port_state & PORT_STATE_PHY8_PORT_NUM_MSK) >> in get_wideport_bitmap_v2_hw()
2677 u32 port_state = hisi_sas_read32(hisi_hba, PORT_STATE); in phy_up_v2_hw() local
2679 port_id = (port_state & PORT_STATE_PHY8_PORT_NUM_MSK) >> in phy_up_v2_hw()
2681 link_rate = (port_state & PORT_STATE_PHY8_CONN_RATE_MSK) >> in phy_up_v2_hw()
2739 u32 port_state; in check_any_wideports_v2_hw() local
2741 port_state = hisi_sas_read32(hisi_hba, PORT_STATE); in check_any_wideports_v2_hw()
2742 if (port_state & 0x1ff) in check_any_wideports_v2_hw()
3249 u32 port_state = hisi_sas_read32(hisi_hba, PORT_STATE); in sata_int_v2_hw() local
3251 port_id = (port_state & PORT_STATE_PHY8_PORT_NUM_MSK) >> in sata_int_v2_hw()
[all …]
/Linux-v4.19/include/net/
Dbond_3ad.h208 u16 port_state; member
/Linux-v4.19/drivers/infiniband/core/
Dcache.c1157 enum ib_port_state *port_state) in ib_get_cached_port_state() argument
1166 *port_state = device->cache.ports[port_num in ib_get_cached_port_state()
1167 - rdma_start_port(device)].port_state; in ib_get_cached_port_state()
1339 device->cache.ports[port - rdma_start_port(device)].port_state = in ib_cache_update()

123