/openbmc/linux/drivers/scsi/qla2xxx/ |
H A 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 …]
|
H A D | qla_nx.c | 2323 uint32_t drv_state; in qla82xx_need_reset() local 2329 drv_state = qla82xx_rd_32(ha, QLA82XX_CRB_DRV_STATE); in qla82xx_need_reset() 2330 rval = drv_state & (QLA82XX_DRVST_RST_RDY << (ha->portnum * 4)); in qla82xx_need_reset() 2338 uint32_t drv_state; in qla82xx_set_rst_ready() local 2341 drv_state = qla82xx_rd_32(ha, QLA82XX_CRB_DRV_STATE); in qla82xx_set_rst_ready() 2344 if (drv_state == 0xffffffff) { in qla82xx_set_rst_ready() 2346 drv_state = qla82xx_rd_32(ha, QLA82XX_CRB_DRV_STATE); in qla82xx_set_rst_ready() 2348 drv_state |= (QLA82XX_DRVST_RST_RDY << (ha->portnum * 4)); in qla82xx_set_rst_ready() 2350 "drv_state = 0x%08x.\n", drv_state); in qla82xx_set_rst_ready() 2351 qla82xx_wr_32(ha, QLA82XX_CRB_DRV_STATE, drv_state); in qla82xx_set_rst_ready() [all …]
|
/openbmc/linux/drivers/scsi/qla4xxx/ |
H A D | ql4_nx.c | 1650 uint32_t drv_state, drv_active; in qla4_8xxx_need_reset() local 1654 drv_state = qla4_8xxx_rd_direct(ha, QLA8XXX_CRB_DRV_STATE); in qla4_8xxx_need_reset() 1662 rval = drv_state & (1 << ha->func_num); in qla4_8xxx_need_reset() 1664 rval = drv_state & (1 << (ha->func_num * 4)); in qla4_8xxx_need_reset() 1674 uint32_t drv_state; in qla4_8xxx_set_rst_ready() local 1676 drv_state = qla4_8xxx_rd_direct(ha, QLA8XXX_CRB_DRV_STATE); in qla4_8xxx_set_rst_ready() 1684 drv_state |= (1 << ha->func_num); in qla4_8xxx_set_rst_ready() 1686 drv_state |= (1 << (ha->func_num * 4)); in qla4_8xxx_set_rst_ready() 1689 __func__, ha->host_no, drv_state); in qla4_8xxx_set_rst_ready() 1690 qla4_8xxx_wr_direct(ha, QLA8XXX_CRB_DRV_STATE, drv_state); in qla4_8xxx_set_rst_ready() [all …]
|
H A D | ql4_83xx.c | 510 uint32_t dev_state, drv_state, drv_active; in qla4_83xx_need_reset_handler() local 542 drv_state = qla4_8xxx_rd_direct(ha, QLA8XXX_CRB_DRV_STATE); in qla4_83xx_need_reset_handler() 546 __func__, drv_state, drv_active); in qla4_83xx_need_reset_handler() 548 while (drv_state != drv_active) { in qla4_83xx_need_reset_handler() 551 __func__, DRIVER_NAME, drv_state, in qla4_83xx_need_reset_handler() 560 drv_state = qla4_8xxx_rd_direct(ha, in qla4_83xx_need_reset_handler() 566 if (drv_state != drv_active) { in qla4_83xx_need_reset_handler() 568 __func__, (drv_active ^ drv_state)); in qla4_83xx_need_reset_handler() 569 drv_active = drv_active & drv_state; in qla4_83xx_need_reset_handler()
|
/openbmc/linux/drivers/net/ethernet/broadcom/ |
H A D | cnic_if.h | 154 int drv_state; member 201 u32 drv_state; member
|
H A D | cnic.c | 281 info.drv_state = state; in cnic_ulp_ctl() 1110 if (cp->ethdev->drv_state & CNIC_DRV_STATE_USING_MSIX) in cnic_init_uio() 1312 if (cp->ethdev->drv_state & CNIC_DRV_STATE_NO_ISCSI) in cnic_alloc_bnx2x_resc() 3176 if (!(cp->ethdev->drv_state & CNIC_DRV_STATE_USING_MSIX)) in cnic_service_bnx2x() 3837 if (cp->ethdev->drv_state & CNIC_DRV_STATE_NO_ISCSI) in cnic_cm_connect() 4420 if (ethdev->drv_state & CNIC_DRV_STATE_USING_MSIX) { in cnic_free_irq() 4445 if (ethdev->drv_state & CNIC_DRV_STATE_USING_MSIX) { in cnic_init_bnx2_irq() 4504 if (!(ethdev->drv_state & CNIC_DRV_STATE_USING_MSIX)) in cnic_enable_bnx2_int() 4516 if (!(ethdev->drv_state & CNIC_DRV_STATE_USING_MSIX)) in cnic_disable_bnx2_int_sync() 4540 if (ethdev->drv_state & CNIC_DRV_STATE_USING_MSIX) { in cnic_init_bnx2_tx_ring() [all …]
|
H A D | bnx2.c | 354 cp->drv_state |= CNIC_DRV_STATE_USING_MSIX; in bnx2_setup_cnic_irq_info() 359 cp->drv_state &= ~CNIC_DRV_STATE_USING_MSIX; in bnx2_setup_cnic_irq_info() 383 if (cp->drv_state & CNIC_DRV_STATE_REGD) in bnx2_register_cnic() 393 cp->drv_state = CNIC_DRV_STATE_REGD; in bnx2_register_cnic() 407 cp->drv_state = 0; in bnx2_unregister_cnic() 7368 if (bp->cnic_eth_dev.drv_state & CNIC_DRV_STATE_REGD) in bnx2_change_ring_size()
|
/openbmc/linux/drivers/gpu/drm/amd/include/ |
H A D | amd_acpi.h | 110 u8 drv_state; /* 0 = operational, 1 = not operational */ member
|
/openbmc/linux/drivers/gpu/drm/amd/amdgpu/ |
H A D | amdgpu_acpi.c | 776 u8 dev_state, bool drv_state) in amdgpu_acpi_power_shift_control() argument 790 atcs_input.drv_state = drv_state; in amdgpu_acpi_power_shift_control()
|
H A D | amdgpu.h | 1422 u8 dev_state, bool drv_state); 1453 u8 dev_state, bool drv_state) { return 0; } in amdgpu_acpi_power_shift_control() argument
|
/openbmc/linux/drivers/net/ethernet/qlogic/qed/ |
H A D | qed_mcp.h | 543 enum qed_ov_driver_state drv_state);
|
H A D | qed_mcp.c | 2870 enum qed_ov_driver_state drv_state) in qed_mcp_ov_update_driver_state() argument 2876 switch (drv_state) { in qed_mcp_ov_update_driver_state() 2887 DP_NOTICE(p_hwfn, "Invalid driver state %d\n", drv_state); in qed_mcp_ov_update_driver_state()
|
/openbmc/linux/drivers/net/ethernet/broadcom/bnx2x/ |
H A D | bnx2x_main.c | 1963 if (c_ops && (bp->cnic_eth_dev.drv_state & in bnx2x_interrupt() 14809 switch (ctl->drv_state) { in bnx2x_drv_ctl() 14825 BNX2X_ERR("Unknown cnic driver state: %d\n", ctl->drv_state); in bnx2x_drv_ctl() 14903 cp->drv_state |= CNIC_DRV_STATE_USING_MSIX; in bnx2x_setup_cnic_irq_info() 14907 cp->drv_state &= ~CNIC_DRV_STATE_USING_MSIX; in bnx2x_setup_cnic_irq_info() 14939 cp->drv_state |= CNIC_DRV_STATE_NO_ISCSI_OOO; in bnx2x_setup_cnic_info() 14985 cp->drv_state |= CNIC_DRV_STATE_REGD; in bnx2x_register_cnic() 15004 cp->drv_state = 0; in bnx2x_unregister_cnic() 15049 cp->drv_state |= CNIC_DRV_STATE_NO_ISCSI_OOO; in bnx2x_cnic_probe() 15052 cp->drv_state |= CNIC_DRV_STATE_NO_ISCSI; in bnx2x_cnic_probe() [all …]
|