Home
last modified time | relevance | path

Searched refs:drv_state (Results 1 – 13 of 13) sorted by relevance

/linux-6.1.9/drivers/scsi/qla2xxx/
Dqla_nx2.c579 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 …]
Dqla_nx.c2323 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 …]
/linux-6.1.9/drivers/scsi/qla4xxx/
Dql4_nx.c1650 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 …]
Dql4_83xx.c510 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()
/linux-6.1.9/drivers/net/ethernet/broadcom/
Dcnic_if.h154 int drv_state; member
201 u32 drv_state; member
Dcnic.c281 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()
4422 if (ethdev->drv_state & CNIC_DRV_STATE_USING_MSIX) { in cnic_free_irq()
4447 if (ethdev->drv_state & CNIC_DRV_STATE_USING_MSIX) { in cnic_init_bnx2_irq()
4506 if (!(ethdev->drv_state & CNIC_DRV_STATE_USING_MSIX)) in cnic_enable_bnx2_int()
4518 if (!(ethdev->drv_state & CNIC_DRV_STATE_USING_MSIX)) in cnic_disable_bnx2_int_sync()
4542 if (ethdev->drv_state & CNIC_DRV_STATE_USING_MSIX) { in cnic_init_bnx2_tx_ring()
[all …]
Dbnx2.c355 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()
7385 if (bp->cnic_eth_dev.drv_state & CNIC_DRV_STATE_REGD) in bnx2_change_ring_size()
/linux-6.1.9/drivers/gpu/drm/amd/include/
Damd_acpi.h110 u8 drv_state; /* 0 = operational, 1 = not operational */ member
/linux-6.1.9/drivers/gpu/drm/amd/amdgpu/
Damdgpu_acpi.c727 u8 dev_state, bool drv_state) in amdgpu_acpi_power_shift_control() argument
741 atcs_input.drv_state = drv_state; in amdgpu_acpi_power_shift_control()
Damdgpu.h1380 u8 dev_state, bool drv_state);
1392 u8 dev_state, bool drv_state) { return 0; } in amdgpu_acpi_power_shift_control() argument
/linux-6.1.9/drivers/net/ethernet/qlogic/qed/
Dqed_mcp.h543 enum qed_ov_driver_state drv_state);
Dqed_mcp.c2870 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()
/linux-6.1.9/drivers/net/ethernet/broadcom/bnx2x/
Dbnx2x_main.c1964 if (c_ops && (bp->cnic_eth_dev.drv_state & in bnx2x_interrupt()
14816 switch (ctl->drv_state) { in bnx2x_drv_ctl()
14832 BNX2X_ERR("Unknown cnic driver state: %d\n", ctl->drv_state); in bnx2x_drv_ctl()
14910 cp->drv_state |= CNIC_DRV_STATE_USING_MSIX; in bnx2x_setup_cnic_irq_info()
14914 cp->drv_state &= ~CNIC_DRV_STATE_USING_MSIX; in bnx2x_setup_cnic_irq_info()
14946 cp->drv_state |= CNIC_DRV_STATE_NO_ISCSI_OOO; in bnx2x_setup_cnic_info()
14992 cp->drv_state |= CNIC_DRV_STATE_REGD; in bnx2x_register_cnic()
15011 cp->drv_state = 0; in bnx2x_unregister_cnic()
15056 cp->drv_state |= CNIC_DRV_STATE_NO_ISCSI_OOO; in bnx2x_cnic_probe()
15059 cp->drv_state |= CNIC_DRV_STATE_NO_ISCSI; in bnx2x_cnic_probe()
[all …]