Searched refs:new_val (Results 51 - 75 of 89) sorted by relevance

1234

/linux-master/drivers/memory/
H A Dstm32-fmc2-ebi.c874 u32 old_val, new_val, pcscntr; local
889 new_val = min_t(u32, setup - 1, FMC2_PCSCNTR_CSCOUNT_MAX);
891 if (old_val && new_val > old_val)
895 new_val = FIELD_PREP(FMC2_PCSCNTR_CSCOUNT, new_val);
897 FMC2_PCSCNTR_CSCOUNT, new_val);
/linux-master/drivers/gpu/drm/i915/display/
H A Dintel_pmdemand.c494 u32 new_val = new->params.field; \
497 *(reg) |= REG_FIELD_PREP((mask), max3(old_val, new_val, current_val)); \
/linux-master/tools/lib/bpf/
H A Dbpf_core_read.h120 #define BPF_CORE_WRITE_BITFIELD(s, field, new_val) ({ \
125 unsigned long long mask, val, nval = new_val; \
/linux-master/scripts/kconfig/
H A Dconf.c305 static void conf_rewrite_tristates(tristate old_val, tristate new_val) argument
312 sym->def[S_DEF_USER].tri = new_val;
/linux-master/drivers/hid/
H A Dhid-nintendo.c1357 s32 new_val; local
1360 new_val = (val - center) * JC_MAX_STICK_MAG;
1361 new_val /= (max - center);
1363 new_val = (center - val) * -JC_MAX_STICK_MAG;
1364 new_val /= (center - min);
1366 new_val = clamp(new_val, (s32)-JC_MAX_STICK_MAG, (s32)JC_MAX_STICK_MAG);
1367 return new_val;
/linux-master/drivers/block/null_blk/
H A Dmain.c134 int ret, new_val; local
136 ret = kstrtoint(str, 10, &new_val);
140 if (new_val < min || new_val > max)
143 *val = new_val;
/linux-master/drivers/net/ethernet/mellanox/mlx5/core/
H A Den_ethtool.c1939 int mlx5e_modify_rx_cqe_compression_locked(struct mlx5e_priv *priv, bool new_val, bool rx_filter) argument
1946 return new_val ? -EOPNOTSUPP : 0;
1948 if (curr_val == new_val)
1951 if (new_val && !mlx5e_profile_feature_cap(priv->profile, PTP_RX) && rx_filter) {
1963 MLX5E_SET_PFLAG(&new_params, MLX5E_PFLAG_RX_CQE_COMPRESS, new_val);
1965 new_params.ptp_rx = new_val;
/linux-master/drivers/net/ethernet/freescale/fman/
H A Dfman_dtsec.c1182 static int dtsec_set_promiscuous(struct fman_mac *dtsec, bool new_val) argument
1189 if (new_val)
1198 if (new_val)
H A Dfman_tgec.c393 static int tgec_set_promiscuous(struct fman_mac *tgec, bool new_val) argument
399 if (new_val)
H A Dfman_memac.c554 static int memac_set_promiscuous(struct fman_mac *memac, bool new_val) argument
560 if (new_val)
/linux-master/drivers/dma/lgm/
H A Dlgm-dma.c281 u32 old_val, new_val; local
284 new_val = (old_val & ~mask) | (val & mask);
286 if (new_val != old_val)
287 writel(new_val, d->base + ofs);
/linux-master/fs/smb/client/
H A Dsmb2ops.c289 int new_val = DIV_ROUND_UP(payload_size, SMB2_MAX_BUFFER_SIZE); local
292 if (!credits->value || credits->value == new_val)
295 if (credits->value < new_val) {
297 server->conn_id, server->hostname, 0, credits->value - new_val, 0);
299 credits->value, new_val);
313 credits->value - new_val, in_flight);
315 credits->value - new_val);
319 server->credits += credits->value - new_val;
327 credits->value - new_val, in_flight);
329 __func__, credits->value - new_val, scredit
[all...]
/linux-master/drivers/mmc/host/
H A Dcavium.c228 static bool switch_val_changed(struct cvm_mmc_slot *slot, u64 new_val) argument
233 return (slot->cached_switch & match) != (new_val & match);
/linux-master/arch/s390/kvm/
H A Dinterrupt.c86 union esca_sigp_ctrl new_val = {0}, old_val; local
89 new_val.scn = src_id;
90 new_val.c = 1;
94 rc = cmpxchg(&sigp_ctrl->value, old_val.value, new_val.value);
99 union bsca_sigp_ctrl new_val = {0}, old_val; local
102 new_val.scn = src_id;
103 new_val.c = 1;
107 rc = cmpxchg(&sigp_ctrl->value, old_val.value, new_val.value);
/linux-master/arch/powerpc/include/asm/book3s/64/
H A Dpgtable.h1418 static inline bool is_pte_rw_upgrade(unsigned long old_val, unsigned long new_val) argument
1423 if ((!(old_val & _PAGE_WRITE)) && (new_val & _PAGE_WRITE))
/linux-master/drivers/input/touchscreen/
H A Diqs7211.c1556 u16 new_val = reg_field->val; local
1566 new_val = old_val & ~reg_field->mask;
1567 new_val |= reg_field->val;
1569 if (new_val == old_val)
1573 error = iqs7211_write_word(iqs7211, reg_field->addr, new_val);
/linux-master/drivers/nvme/target/
H A Dtcp.c32 int ret, new_val; local
34 ret = kstrtoint(str, 10, &new_val);
38 if (new_val < min || new_val > max)
41 *val = new_val;
/linux-master/drivers/net/ethernet/broadcom/
H A Dbgmac.c753 u32 new_val = (cmdcfg & mask) | set; local
764 if (new_val != cmdcfg || force)
765 bgmac_umac_write(bgmac, UMAC_CMD, new_val);
/linux-master/net/ipv6/
H A Daddrconf.c6477 u32 new_val; local
6481 .data = &new_val,
6482 .maxlen = sizeof(new_val),
6489 new_val = *((u32 *)ctl->data);
6496 if (check_addr_gen_mode(new_val) < 0) {
6502 if (check_stable_privacy(idev, net, new_val) < 0) {
6507 if (idev->cnf.addr_gen_mode != new_val) {
6508 WRITE_ONCE(idev->cnf.addr_gen_mode, new_val);
6514 WRITE_ONCE(net->ipv6.devconf_dflt->addr_gen_mode, new_val);
6518 idev->cnf.addr_gen_mode != new_val) {
[all...]
/linux-master/arch/riscv/kvm/
H A Dvcpu_pmu.c279 unsigned long *val, unsigned long new_val,
278 kvm_riscv_vcpu_pmu_read_hpm(struct kvm_vcpu *vcpu, unsigned int csr_num, unsigned long *val, unsigned long new_val, unsigned long wr_mask) argument
/linux-master/drivers/infiniband/hw/irdma/
H A Dutils.c1713 u64 new_val; local
1724 new_val = rd32(dev->hw,
1727 new_val = rd64(dev->hw,
1729 gather_stats->val[map[i].byteoff / sizeof(u64)] = new_val;
/linux-master/drivers/power/supply/
H A Dab8500_fg.c1952 int new_val; local
1972 new_val = cbp_sel0 | (cbp_sel1 << 4);
1974 dev_dbg(di->dev, "using: %x %d %d\n", new_val, cbp_sel0, cbp_sel1);
1976 AB8500_BATT_OK_REG, new_val);
/linux-master/drivers/net/ethernet/hisilicon/hns3/
H A Dhns3_enet.c518 u32 new_val; local
521 new_val = gl_value | HNS3_INT_GL_1US;
523 new_val = hns3_gl_usec_to_reg(gl_value);
525 writel(new_val, tqp_vector->mask_addr + HNS3_VECTOR_GL0_OFFSET);
531 u32 new_val; local
534 new_val = gl_value | HNS3_INT_GL_1US;
536 new_val = hns3_gl_usec_to_reg(gl_value);
538 writel(new_val, tqp_vector->mask_addr + HNS3_VECTOR_GL1_OFFSET);
/linux-master/drivers/net/ethernet/intel/i40e/
H A Di40e_ethtool.c5271 bool new_val; local
5274 new_val = (flags & BIT(i)) ? true : false;
5278 test_bit(priv_flag->bitno, orig_flags) != new_val)
5281 if (new_val)
5292 bool new_val; local
5295 new_val = (flags & BIT(i + j)) ? true : false;
5299 test_bit(priv_flag->bitno, orig_flags) != new_val)
5302 if (new_val)
/linux-master/arch/x86/kvm/mmu/
H A Dmmu.c6967 bool new_val; local
6974 new_val = 0;
6976 new_val = 1;
6978 new_val = get_nx_auto_mode();
6980 new_val = 0;
6989 } else if (kstrtobool(val, &new_val) < 0) {
6993 __set_nx_huge_pages(new_val);
6995 if (new_val != old_val) {

Completed in 510 milliseconds

1234