/linux/tools/perf/util/bpf_skel/ |
H A D | bperf_leader.bpf.c | 31 struct bpf_perf_event_value val, *prev_val, *diff_val; in BPF_PROG() local 36 prev_val = bpf_map_lookup_elem(&prev_readings, &zero); in BPF_PROG() 37 if (!prev_val) in BPF_PROG() 48 diff_val->counter = val.counter - prev_val->counter; in BPF_PROG() 49 diff_val->enabled = val.enabled - prev_val->enabled; in BPF_PROG() 50 diff_val->running = val.running - prev_val->running; in BPF_PROG() 51 *prev_val = val; in BPF_PROG()
|
H A D | bperf_cgroup.bpf.c | 149 struct bpf_perf_event_value val, delta, *prev_val, *cgrp_val; in bperf_cgroup_count() local 168 prev_val = bpf_map_lookup_elem(&prev_readings, &key); in bperf_cgroup_count() 169 if (!prev_val) { in bperf_cgroup_count() 173 prev_val = bpf_map_lookup_elem(&prev_readings, &key); in bperf_cgroup_count() 174 if (!prev_val) in bperf_cgroup_count() 185 delta.counter = val.counter - prev_val->counter; in bperf_cgroup_count() 186 delta.enabled = val.enabled - prev_val->enabled; in bperf_cgroup_count() 187 delta.running = val.running - prev_val->running; in bperf_cgroup_count() 209 *prev_val = val; in bperf_cgroup_count()
|
/linux/drivers/mtd/chips/ |
H A D | cfi_util.c | 204 int type, map_word *prev_val) in cfi_send_gen_cmd() argument 210 if (prev_val) in cfi_send_gen_cmd() 211 *prev_val = map_read(map, addr); in cfi_send_gen_cmd()
|
/linux/drivers/acpi/ |
H A D | cppc_acpi.c | 181 #define MASK_VAL_WRITE(reg, prev_val, val) \ argument 183 ((prev_val) & ~(GENMASK(((reg)->bit_width) - 1, 0) << (reg)->bit_offset))) \ 1080 u64 prev_val; in cpc_write() local 1129 prev_val = readb_relaxed(vaddr); in cpc_write() 1132 prev_val = readw_relaxed(vaddr); in cpc_write() 1135 prev_val = readl_relaxed(vaddr); in cpc_write() 1138 prev_val = readq_relaxed(vaddr); in cpc_write() 1144 val = MASK_VAL_WRITE(reg, prev_val, val); in cpc_write()
|
/linux/drivers/staging/greybus/ |
H A D | power_supply.c | 397 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()
|
/linux/drivers/net/ethernet/mellanox/mlxsw/ |
H A D | spectrum_acl.c | 625 rulei->ipv6.prev_val = val; in mlxsw_sp2_acl_rulei_act_mangle_field_ip_odd() 672 rulei->ipv6.prev_val, in mlxsw_sp2_acl_rulei_act_mangle_field() 682 rulei->ipv6.prev_val, in mlxsw_sp2_acl_rulei_act_mangle_field() 692 rulei->ipv6.prev_val, in mlxsw_sp2_acl_rulei_act_mangle_field() 702 rulei->ipv6.prev_val, in mlxsw_sp2_acl_rulei_act_mangle_field()
|
H A D | spectrum.h | 880 u32 prev_val; member
|
/linux/drivers/spi/ |
H A D | spi-pci1xxxx.c | 154 } prev_val; member 852 spi_sub_ptr->prev_val.dev_sel = (regval >> 25) & 7; in store_restore_config() 856 spi_sub_ptr->prev_val.msi_vector_sel = (regval >> 4) & 1; in store_restore_config() 860 regval |= (spi_sub_ptr->prev_val.dev_sel << 25); in store_restore_config() 863 writel((spi_sub_ptr->prev_val.msi_vector_sel << 4), in store_restore_config()
|
/linux/drivers/infiniband/hw/qib/ |
H A D | qib_iba6120.c | 1228 u64 val, config1, prev_val, hwstat, ibc; in qib_6120_bringup_serdes() local 1317 prev_val = val; in qib_6120_bringup_serdes() 1325 if (val != prev_val) in qib_6120_bringup_serdes() 2662 u64 val, prev_val; in qib_6120_xgxs_reset() local 2665 prev_val = qib_read_kreg64(dd, kr_xgxs_cfg); in qib_6120_xgxs_reset() 2666 val = prev_val | QLOGIC_IB_XGXS_RESET; in qib_6120_xgxs_reset() 2667 prev_val &= ~QLOGIC_IB_XGXS_RESET; /* be sure */ in qib_6120_xgxs_reset() 2672 qib_write_kreg(dd, kr_xgxs_cfg, prev_val); in qib_6120_xgxs_reset()
|
/linux/include/linux/mtd/ |
H A D | cfi.h | 305 int type, map_word *prev_val);
|
/linux/drivers/gpu/drm/i915/display/ |
H A D | intel_dsb.c | 319 u32 prev_val = dsb->ins[0]; in intel_dsb_reg_write_indexed() local 330 prev_val); in intel_dsb_reg_write_indexed()
|
/linux/drivers/scsi/lpfc/ |
H A D | lpfc_attr.c | 4186 uint32_t prev_val; in lpfc_topology_store() local 4200 prev_val = phba->cfg_topology; in lpfc_topology_store() 4232 prev_val, val); in lpfc_topology_store() 4233 if (prev_val != val && phba->sli_rev == LPFC_SLI_REV4) in lpfc_topology_store() 4237 phba->cfg_topology = prev_val; in lpfc_topology_store() 4317 uint32_t prev_val, if_type; in lpfc_link_speed_store() local 4370 prev_val = phba->cfg_link_speed; in lpfc_link_speed_store() 4377 phba->cfg_link_speed = prev_val; in lpfc_link_speed_store()
|
/linux/drivers/power/supply/ |
H A D | bq27xxx_battery.c | 1111 unsigned int prev_val = *(unsigned int *) kp->arg; in poll_interval_param_set() local 1115 if (ret < 0 || prev_val == *(unsigned int *) kp->arg) in poll_interval_param_set()
|