/Linux-v5.10/drivers/scsi/qla2xxx/ |
D | qla_nx2.c | 579 uint32_t drv_state, drv_active; in qla8044_need_reset() local 584 drv_state = qla8044_rd_direct(vha, QLA8044_CRB_DRV_STATE_INDEX); in qla8044_need_reset() 586 rval = drv_state & (1 << ha->portnum); in qla8044_need_reset() 1623 uint32_t drv_state; in qla8044_set_rst_ready() local 1626 drv_state = qla8044_rd_direct(vha, QLA8044_CRB_DRV_STATE_INDEX); in qla8044_set_rst_ready() 1630 drv_state |= (1 << ha->portnum); in qla8044_set_rst_ready() 1634 __func__, vha->host_no, drv_state); in qla8044_set_rst_ready() 1635 qla8044_wr_direct(vha, QLA8044_CRB_DRV_STATE_INDEX, drv_state); in qla8044_set_rst_ready() 1647 uint32_t dev_state = 0, drv_state, drv_active; in qla8044_need_reset_handler() local 1664 drv_state = qla8044_rd_direct(vha, in qla8044_need_reset_handler() [all …]
|
D | qla_nx.c | 2327 uint32_t drv_state; in qla82xx_need_reset() local 2333 drv_state = qla82xx_rd_32(ha, QLA82XX_CRB_DRV_STATE); in qla82xx_need_reset() 2334 rval = drv_state & (QLA82XX_DRVST_RST_RDY << (ha->portnum * 4)); in qla82xx_need_reset() 2342 uint32_t drv_state; in qla82xx_set_rst_ready() local 2345 drv_state = qla82xx_rd_32(ha, QLA82XX_CRB_DRV_STATE); in qla82xx_set_rst_ready() 2348 if (drv_state == 0xffffffff) { in qla82xx_set_rst_ready() 2350 drv_state = qla82xx_rd_32(ha, QLA82XX_CRB_DRV_STATE); in qla82xx_set_rst_ready() 2352 drv_state |= (QLA82XX_DRVST_RST_RDY << (ha->portnum * 4)); in qla82xx_set_rst_ready() 2354 "drv_state = 0x%08x.\n", drv_state); in qla82xx_set_rst_ready() 2355 qla82xx_wr_32(ha, QLA82XX_CRB_DRV_STATE, drv_state); in qla82xx_set_rst_ready() [all …]
|
/Linux-v5.10/drivers/scsi/qla4xxx/ |
D | ql4_nx.c | 1663 uint32_t drv_state, drv_active; in qla4_8xxx_need_reset() local 1667 drv_state = qla4_8xxx_rd_direct(ha, QLA8XXX_CRB_DRV_STATE); in qla4_8xxx_need_reset() 1675 rval = drv_state & (1 << ha->func_num); in qla4_8xxx_need_reset() 1677 rval = drv_state & (1 << (ha->func_num * 4)); in qla4_8xxx_need_reset() 1687 uint32_t drv_state; in qla4_8xxx_set_rst_ready() local 1689 drv_state = qla4_8xxx_rd_direct(ha, QLA8XXX_CRB_DRV_STATE); in qla4_8xxx_set_rst_ready() 1697 drv_state |= (1 << ha->func_num); in qla4_8xxx_set_rst_ready() 1699 drv_state |= (1 << (ha->func_num * 4)); in qla4_8xxx_set_rst_ready() 1702 __func__, ha->host_no, drv_state); in qla4_8xxx_set_rst_ready() 1703 qla4_8xxx_wr_direct(ha, QLA8XXX_CRB_DRV_STATE, drv_state); in qla4_8xxx_set_rst_ready() [all …]
|
D | ql4_83xx.c | 511 uint32_t dev_state, drv_state, drv_active; in qla4_83xx_need_reset_handler() local 543 drv_state = qla4_8xxx_rd_direct(ha, QLA8XXX_CRB_DRV_STATE); in qla4_83xx_need_reset_handler() 547 __func__, drv_state, drv_active); in qla4_83xx_need_reset_handler() 549 while (drv_state != drv_active) { in qla4_83xx_need_reset_handler() 552 __func__, DRIVER_NAME, drv_state, in qla4_83xx_need_reset_handler() 561 drv_state = qla4_8xxx_rd_direct(ha, in qla4_83xx_need_reset_handler() 567 if (drv_state != drv_active) { in qla4_83xx_need_reset_handler() 569 __func__, (drv_active ^ drv_state)); in qla4_83xx_need_reset_handler() 570 drv_active = drv_active & drv_state; in qla4_83xx_need_reset_handler()
|
/Linux-v5.10/drivers/net/ethernet/broadcom/ |
D | cnic_if.h | 154 int drv_state; member 201 u32 drv_state; member
|
D | cnic.c | 281 info.drv_state = state; in cnic_ulp_ctl() 1112 if (cp->ethdev->drv_state & CNIC_DRV_STATE_USING_MSIX) in cnic_init_uio() 1314 if (cp->ethdev->drv_state & CNIC_DRV_STATE_NO_ISCSI) in cnic_alloc_bnx2x_resc() 3178 if (!(cp->ethdev->drv_state & CNIC_DRV_STATE_USING_MSIX)) in cnic_service_bnx2x() 3839 if (cp->ethdev->drv_state & CNIC_DRV_STATE_NO_ISCSI) in cnic_cm_connect() 4423 if (ethdev->drv_state & CNIC_DRV_STATE_USING_MSIX) { in cnic_free_irq() 4448 if (ethdev->drv_state & CNIC_DRV_STATE_USING_MSIX) { in cnic_init_bnx2_irq() 4507 if (!(ethdev->drv_state & CNIC_DRV_STATE_USING_MSIX)) in cnic_enable_bnx2_int() 4519 if (!(ethdev->drv_state & CNIC_DRV_STATE_USING_MSIX)) in cnic_disable_bnx2_int_sync() 4543 if (ethdev->drv_state & CNIC_DRV_STATE_USING_MSIX) { in cnic_init_bnx2_tx_ring() [all …]
|
D | bnx2.c | 355 cp->drv_state |= CNIC_DRV_STATE_USING_MSIX; in bnx2_setup_cnic_irq_info() 360 cp->drv_state &= ~CNIC_DRV_STATE_USING_MSIX; in bnx2_setup_cnic_irq_info() 384 if (cp->drv_state & CNIC_DRV_STATE_REGD) in bnx2_register_cnic() 394 cp->drv_state = CNIC_DRV_STATE_REGD; in bnx2_register_cnic() 408 cp->drv_state = 0; in bnx2_unregister_cnic() 7377 if (bp->cnic_eth_dev.drv_state & CNIC_DRV_STATE_REGD) in bnx2_change_ring_size()
|
/Linux-v5.10/drivers/net/ethernet/qlogic/qed/ |
D | qed_mcp.h | 513 enum qed_ov_driver_state drv_state);
|
D | qed_mcp.c | 2809 enum qed_ov_driver_state drv_state) in qed_mcp_ov_update_driver_state() argument 2815 switch (drv_state) { in qed_mcp_ov_update_driver_state() 2826 DP_NOTICE(p_hwfn, "Invalid driver state %d\n", drv_state); in qed_mcp_ov_update_driver_state()
|
/Linux-v5.10/drivers/net/ethernet/broadcom/bnx2x/ |
D | bnx2x_main.c | 1954 if (c_ops && (bp->cnic_eth_dev.drv_state & in bnx2x_interrupt() 14852 switch (ctl->drv_state) { in bnx2x_drv_ctl() 14868 BNX2X_ERR("Unknown cnic driver state: %d\n", ctl->drv_state); in bnx2x_drv_ctl() 14946 cp->drv_state |= CNIC_DRV_STATE_USING_MSIX; in bnx2x_setup_cnic_irq_info() 14950 cp->drv_state &= ~CNIC_DRV_STATE_USING_MSIX; in bnx2x_setup_cnic_irq_info() 14982 cp->drv_state |= CNIC_DRV_STATE_NO_ISCSI_OOO; in bnx2x_setup_cnic_info() 15028 cp->drv_state |= CNIC_DRV_STATE_REGD; in bnx2x_register_cnic() 15047 cp->drv_state = 0; in bnx2x_unregister_cnic() 15092 cp->drv_state |= CNIC_DRV_STATE_NO_ISCSI_OOO; in bnx2x_cnic_probe() 15095 cp->drv_state |= CNIC_DRV_STATE_NO_ISCSI; in bnx2x_cnic_probe() [all …]
|