Home
last modified time | relevance | path

Searched refs:prev_val (Results 1 – 6 of 6) sorted by relevance

/drivers/mtd/chips/
Dcfi_util.c205 int type, map_word *prev_val) in cfi_send_gen_cmd() argument
211 if (prev_val) in cfi_send_gen_cmd()
212 *prev_val = map_read(map, addr); in cfi_send_gen_cmd()
/drivers/staging/greybus/
Dpower_supply.c397 int prev_val = prop->previous_val; in check_changed() local
406 else if (val < prev_val && in check_changed()
407 prev_val - val > psyc->tolerance_change) in check_changed()
409 else if (val > prev_val && in check_changed()
410 val - prev_val > psyc->tolerance_change) in check_changed()
/drivers/infiniband/hw/qib/
Dqib_iba6120.c1231 u64 val, config1, prev_val, hwstat, ibc; in qib_6120_bringup_serdes() local
1320 prev_val = val; in qib_6120_bringup_serdes()
1328 if (val != prev_val) in qib_6120_bringup_serdes()
2666 u64 val, prev_val; in qib_6120_xgxs_reset() local
2669 prev_val = qib_read_kreg64(dd, kr_xgxs_cfg); in qib_6120_xgxs_reset()
2670 val = prev_val | QLOGIC_IB_XGXS_RESET; in qib_6120_xgxs_reset()
2671 prev_val &= ~QLOGIC_IB_XGXS_RESET; /* be sure */ in qib_6120_xgxs_reset()
2676 qib_write_kreg(dd, kr_xgxs_cfg, prev_val); in qib_6120_xgxs_reset()
Dqib_iba7220.c1533 u64 val, prev_val, guid, ibc; in qib_7220_bringup_serdes() local
1615 prev_val = val; in qib_7220_bringup_serdes()
1617 if (val != prev_val) { in qib_7220_bringup_serdes()
1623 if (val != prev_val) in qib_7220_bringup_serdes()
3298 u64 val, prev_val; in qib_7220_xgxs_reset() local
3301 prev_val = qib_read_kreg64(dd, kr_xgxs_cfg); in qib_7220_xgxs_reset()
3302 val = prev_val | QLOGIC_IB_XGXS_RESET; in qib_7220_xgxs_reset()
3303 prev_val &= ~QLOGIC_IB_XGXS_RESET; /* be sure */ in qib_7220_xgxs_reset()
3308 qib_write_kreg(dd, kr_xgxs_cfg, prev_val); in qib_7220_xgxs_reset()
/drivers/scsi/lpfc/
Dlpfc_attr.c4078 uint32_t prev_val; in lpfc_topology_store() local
4091 prev_val = phba->cfg_topology; in lpfc_topology_store()
4112 prev_val, val); in lpfc_topology_store()
4113 if (prev_val != val && phba->sli_rev == LPFC_SLI_REV4) in lpfc_topology_store()
4117 phba->cfg_topology = prev_val; in lpfc_topology_store()
4520 uint32_t prev_val, if_type; in lpfc_link_speed_store() local
4573 prev_val = phba->cfg_link_speed; in lpfc_link_speed_store()
4580 phba->cfg_link_speed = prev_val; in lpfc_link_speed_store()
/drivers/power/supply/
Dbq27xxx_battery.c881 unsigned int prev_val = *(unsigned int *) kp->arg; in poll_interval_param_set() local
885 if (ret < 0 || prev_val == *(unsigned int *) kp->arg) in poll_interval_param_set()