Searched refs:prev_val (Results 1 – 6 of 6) sorted by relevance
/drivers/mtd/chips/ |
D | cfi_util.c | 199 int type, map_word *prev_val) in cfi_send_gen_cmd() argument 205 if (prev_val) in cfi_send_gen_cmd() 206 *prev_val = map_read(map, addr); in cfi_send_gen_cmd()
|
/drivers/staging/greybus/ |
D | power_supply.c | 399 int prev_val = prop->previous_val; in check_changed() local 408 else if (val < prev_val && in check_changed() 409 prev_val - val > psyc->tolerance_change) in check_changed() 411 else if (val > prev_val && in check_changed() 412 val - prev_val > psyc->tolerance_change) in check_changed()
|
/drivers/infiniband/hw/qib/ |
D | qib_iba6120.c | 1242 u64 val, config1, prev_val, hwstat, ibc; in qib_6120_bringup_serdes() local 1331 prev_val = val; in qib_6120_bringup_serdes() 1339 if (val != prev_val) in qib_6120_bringup_serdes() 2708 u64 val, prev_val; in qib_6120_xgxs_reset() local 2711 prev_val = qib_read_kreg64(dd, kr_xgxs_cfg); in qib_6120_xgxs_reset() 2712 val = prev_val | QLOGIC_IB_XGXS_RESET; in qib_6120_xgxs_reset() 2713 prev_val &= ~QLOGIC_IB_XGXS_RESET; /* be sure */ in qib_6120_xgxs_reset() 2718 qib_write_kreg(dd, kr_xgxs_cfg, prev_val); in qib_6120_xgxs_reset()
|
D | qib_iba7220.c | 1540 u64 val, prev_val, guid, ibc; in qib_7220_bringup_serdes() local 1622 prev_val = val; in qib_7220_bringup_serdes() 1624 if (val != prev_val) { in qib_7220_bringup_serdes() 1630 if (val != prev_val) in qib_7220_bringup_serdes() 3338 u64 val, prev_val; in qib_7220_xgxs_reset() local 3341 prev_val = qib_read_kreg64(dd, kr_xgxs_cfg); in qib_7220_xgxs_reset() 3342 val = prev_val | QLOGIC_IB_XGXS_RESET; in qib_7220_xgxs_reset() 3343 prev_val &= ~QLOGIC_IB_XGXS_RESET; /* be sure */ in qib_7220_xgxs_reset() 3348 qib_write_kreg(dd, kr_xgxs_cfg, prev_val); in qib_7220_xgxs_reset()
|
/drivers/net/hyperv/ |
D | netvsc.c | 713 int prev_val; in netvsc_get_next_send_section() local 719 prev_val = sync_test_and_set_bit(index, &map_addr[i]); in netvsc_get_next_send_section() 720 if (prev_val) in netvsc_get_next_send_section()
|
/drivers/scsi/lpfc/ |
D | lpfc_attr.c | 3235 uint32_t prev_val; in lpfc_topology_store() local 3248 prev_val = phba->cfg_topology; in lpfc_topology_store() 3268 prev_val, val); in lpfc_topology_store() 3269 if (prev_val != val && phba->sli_rev == LPFC_SLI_REV4) in lpfc_topology_store() 3273 phba->cfg_topology = prev_val; in lpfc_topology_store() 3682 uint32_t prev_val; in lpfc_link_speed_store() local 3721 prev_val = phba->cfg_link_speed; in lpfc_link_speed_store() 3728 phba->cfg_link_speed = prev_val; in lpfc_link_speed_store()
|