Home
last modified time | relevance | path

Searched refs:lstate (Results 1 – 18 of 18) sorted by relevance

/Linux-v5.10/drivers/cpuidle/governors/
Dladder.c138 struct ladder_device_state *lstate; in ladder_enable_device() local
145 lstate = &ldev->states[i]; in ladder_enable_device()
147 lstate->stats.promotion_count = 0; in ladder_enable_device()
148 lstate->stats.demotion_count = 0; in ladder_enable_device()
150 lstate->threshold.promotion_count = PROMOTION_COUNT; in ladder_enable_device()
151 lstate->threshold.demotion_count = DEMOTION_COUNT; in ladder_enable_device()
154 lstate->threshold.promotion_time_ns = state->exit_latency_ns; in ladder_enable_device()
156 lstate->threshold.demotion_time_ns = state->exit_latency_ns; in ladder_enable_device()
/Linux-v5.10/drivers/infiniband/hw/qib/
Dqib_intr.c87 u32 lstate; in qib_handle_e_ibstatuschanged() local
91 lstate = dd->f_iblink_state(ibcs); /* linkstate */ in qib_handle_e_ibstatuschanged()
103 if (lstate >= IB_PORT_INIT && in qib_handle_e_ibstatuschanged()
118 if (lstate != IB_PORT_DOWN) { in qib_handle_e_ibstatuschanged()
120 if (lstate != IB_PORT_ACTIVE) { in qib_handle_e_ibstatuschanged()
125 if (lstate == IB_PORT_ARMED) { in qib_handle_e_ibstatuschanged()
Dqib_driver.c194 u32 lstate; in qib_set_linkstate() local
248 lstate = QIBL_LINKV; in qib_set_linkstate()
262 lstate = QIBL_LINKACTIVE; in qib_set_linkstate()
269 ret = qib_wait_linkstate(ppd, lstate, 10); in qib_set_linkstate()
Dqib_mad.c669 u16 lstate; in subn_set_portinfo() local
819 lstate = (pip->portphysstate_linkdown >> 4) & 0xF; in subn_set_portinfo()
820 if (lstate && !(state == IB_PORT_DOWN || state == IB_PORT_NOP)) in subn_set_portinfo()
829 if (lstate == 0) in subn_set_portinfo()
833 if (lstate == 0) in subn_set_portinfo()
834 lstate = QIB_IB_LINKDOWN_ONLY; in subn_set_portinfo()
835 else if (lstate == 1) in subn_set_portinfo()
836 lstate = QIB_IB_LINKDOWN_SLEEP; in subn_set_portinfo()
837 else if (lstate == 2) in subn_set_portinfo()
838 lstate = QIB_IB_LINKDOWN; in subn_set_portinfo()
[all …]
/Linux-v5.10/drivers/scsi/aic7xxx/
Daic7xxx_core.c223 struct ahc_tmode_lstate *lstate,
3939 struct ahc_tmode_lstate* lstate; in ahc_parse_msg() local
3941 lstate = tstate->enabled_luns[devinfo->lun]; in ahc_parse_msg()
3942 if (lstate != NULL) { in ahc_parse_msg()
3943 ahc_queue_lstate_event(ahc, lstate, in ahc_parse_msg()
3947 ahc_send_lstate_events(ahc, lstate); in ahc_parse_msg()
4320 struct ahc_tmode_lstate* lstate; in ahc_handle_devreset() local
4322 lstate = tstate->enabled_luns[lun]; in ahc_handle_devreset()
4323 if (lstate == NULL) in ahc_handle_devreset()
4326 ahc_queue_lstate_event(ahc, lstate, devinfo->our_scsiid, in ahc_handle_devreset()
[all …]
Daic79xx_core.c222 struct ahd_tmode_lstate *lstate,
5434 struct ahd_tmode_lstate* lstate; in ahd_parse_msg() local
5436 lstate = tstate->enabled_luns[devinfo->lun]; in ahd_parse_msg()
5437 if (lstate != NULL) { in ahd_parse_msg()
5438 ahd_queue_lstate_event(ahd, lstate, in ahd_parse_msg()
5442 ahd_send_lstate_events(ahd, lstate); in ahd_parse_msg()
5920 struct ahd_tmode_lstate* lstate; in ahd_handle_devreset() local
5922 lstate = tstate->enabled_luns[cur_lun]; in ahd_handle_devreset()
5923 if (lstate == NULL) in ahd_handle_devreset()
5926 ahd_queue_lstate_event(ahd, lstate, devinfo->our_scsiid, in ahd_handle_devreset()
[all …]
Daic7xxx.h1242 struct ahc_tmode_lstate **lstate,
Daic79xx.h1431 struct ahd_tmode_lstate **lstate,
/Linux-v5.10/drivers/infiniband/hw/ocrdma/
Docrdma_main.c309 u8 lstate = 0; in ocrdma_add() local
338 status = ocrdma_mbx_get_link_speed(dev, NULL, &lstate); in ocrdma_add()
340 ocrdma_update_link_state(dev, lstate); in ocrdma_add()
430 void ocrdma_update_link_state(struct ocrdma_dev *dev, u8 lstate) in ocrdma_update_link_state() argument
434 if (!lstate) in ocrdma_update_link_state()
438 if (!lstate) in ocrdma_update_link_state()
Docrdma_hw.h157 void ocrdma_update_link_state(struct ocrdma_dev *dev, u8 lstate);
Docrdma_hw.c831 u8 lstate; in ocrdma_process_link_state() local
834 lstate = ocrdma_get_ae_link_state(evt->speed_state_ptn); in ocrdma_process_link_state()
836 if (!(lstate & OCRDMA_AE_LSC_LLINK_MASK)) in ocrdma_process_link_state()
840 ocrdma_update_link_state(dev, (lstate & OCRDMA_LINK_ST_MASK)); in ocrdma_process_link_state()
/Linux-v5.10/drivers/net/ethernet/sun/
Dsungem.c1323 gp->lstate = link_aneg; in gem_begin_auto_negotiation()
1327 gp->lstate = link_force_ok; in gem_begin_auto_negotiation()
1451 switch (gp->lstate) { in gem_mdio_link_not_up()
1458 gp->lstate = link_force_ok; in gem_mdio_link_not_up()
1472 gp->lstate = link_force_try; in gem_mdio_link_not_up()
1511 if (gp->lstate == link_up) in gem_link_timer()
1514 gp->lstate = link_up; in gem_link_timer()
1526 if (gp->lstate == link_force_try && gp->want_autoneg) { in gem_link_timer()
1527 gp->lstate = link_force_ret; in gem_link_timer()
1534 } else if (gp->lstate != link_up) { in gem_link_timer()
[all …]
Dcassini.c677 int oldstate = cp->lstate; in cas_begin_auto_negotiation()
700 if (cp->lstate == link_up) { in cas_begin_auto_negotiation()
707 cp->lstate = link_down; in cas_begin_auto_negotiation()
738 cp->lstate = link_aneg; in cas_begin_auto_negotiation()
743 cp->lstate = link_force_ok; in cas_begin_auto_negotiation()
756 cp->lstate = link_aneg; in cas_begin_auto_negotiation()
758 cp->lstate = link_force_ok; in cas_begin_auto_negotiation()
1012 if (cp->lstate != link_up) { in cas_pcs_link_check()
1014 cp->lstate = link_up; in cas_pcs_link_check()
1021 } else if (cp->lstate == link_up) { in cas_pcs_link_check()
[all …]
Dsungem.h1002 enum link_state lstate; member
Dcassini.h2820 enum link_state lstate; member
/Linux-v5.10/drivers/infiniband/hw/hfi1/
Dmad.c1954 int lstate; in __subn_set_opa_sc_to_vlt() local
1970 lstate = driver_lstate(ppd); in __subn_set_opa_sc_to_vlt()
1976 (lstate == IB_PORT_ARMED || lstate == IB_PORT_ACTIVE)) { in __subn_set_opa_sc_to_vlt()
2020 int lstate; in __subn_set_opa_sc_to_vlnt() local
2030 lstate = driver_lstate(ppd); in __subn_set_opa_sc_to_vlnt()
2031 if (lstate == IB_PORT_ARMED || lstate == IB_PORT_ACTIVE) { in __subn_set_opa_sc_to_vlnt()
2050 u32 lstate; in __subn_get_opa_psi() local
2063 lstate = driver_lstate(ppd); in __subn_get_opa_psi()
2065 if (start_of_sm_config && (lstate == IB_PORT_INIT)) in __subn_get_opa_psi()
2075 (driver_pstate(ppd) << 4) | (lstate & 0xf); in __subn_get_opa_psi()
Dchip.h816 const char *opa_lstate_name(u32 lstate);
Dchip.c12922 const char *opa_lstate_name(u32 lstate) in opa_lstate_name() argument
12932 if (lstate < ARRAY_SIZE(port_logical_names)) in opa_lstate_name()
12933 return port_logical_names[lstate]; in opa_lstate_name()