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

1234

/linux-master/kernel/bpf/
H A Dcgroup.c1705 .new_val = NULL,
1724 ctx.new_val = kmalloc_track_caller(PAGE_SIZE, GFP_KERNEL);
1726 if (ctx.new_val) {
1727 memcpy(ctx.new_val, *buf, ctx.new_len);
1744 *buf = ctx.new_val;
1747 kfree(ctx.new_val);
2127 return copy_sysctl_value(buf, buf_len, ctx->new_val, ctx->new_len);
2142 if (!ctx->write || !ctx->new_val || !ctx->new_len || !buf || !buf_len)
2148 memcpy(ctx->new_val, buf, buf_len);
/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/hid/
H A Dhid-nintendo.c1350 s32 new_val; local
1353 new_val = (val - center) * JC_MAX_STICK_MAG;
1354 new_val /= (max - center);
1356 new_val = (center - val) * -JC_MAX_STICK_MAG;
1357 new_val /= (center - min);
1359 new_val = clamp(new_val, (s32)-JC_MAX_STICK_MAG, (s32)JC_MAX_STICK_MAG);
1360 return new_val;
/linux-master/tools/lib/bpf/
H A Dbpf_core_read.h121 #define BPF_CORE_WRITE_BITFIELD(s, field, new_val) ({ \
126 unsigned long long mask, val, nval = new_val; \
/linux-master/drivers/gpu/drm/i915/display/
H A Dintel_pmdemand.c488 u32 new_val = new->params.field; \
491 *(reg) |= REG_FIELD_PREP((mask), max3(old_val, new_val, current_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/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.c2107 int mlx5e_modify_rx_cqe_compression_locked(struct mlx5e_priv *priv, bool new_val, bool rx_filter) argument
2114 return new_val ? -EOPNOTSUPP : 0;
2116 if (curr_val == new_val)
2119 if (new_val && !mlx5e_profile_feature_cap(priv->profile, PTP_RX) && rx_filter) {
2131 MLX5E_SET_PFLAG(&new_params, MLX5E_PFLAG_RX_CQE_COMPRESS, new_val);
2133 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.c553 static int memac_set_promiscuous(struct fman_mac *memac, bool new_val) argument
559 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.h1430 static inline bool is_pte_rw_upgrade(unsigned long old_val, unsigned long new_val) argument
1435 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.c6478 u32 new_val; local
6482 .data = &new_val,
6483 .maxlen = sizeof(new_val),
6490 new_val = *((u32 *)ctl->data);
6497 if (check_addr_gen_mode(new_val) < 0) {
6503 if (check_stable_privacy(idev, net, new_val) < 0) {
6508 if (idev->cnf.addr_gen_mode != new_val) {
6509 WRITE_ONCE(idev->cnf.addr_gen_mode, new_val);
6515 WRITE_ONCE(net->ipv6.devconf_dflt->addr_gen_mode, new_val);
6519 idev->cnf.addr_gen_mode != new_val) {
[all...]
/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/arch/riscv/kvm/
H A Dvcpu_pmu.c357 unsigned long *val, unsigned long new_val,
356 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/net/ethernet/intel/i40e/
H A Di40e_ethtool.c5268 bool new_val; local
5271 new_val = (flags & BIT(i)) ? true : false;
5275 test_bit(priv_flag->bitno, orig_flags) != new_val)
5278 if (new_val)
5289 bool new_val; local
5292 new_val = (flags & BIT(i + j)) ? true : false;
5296 test_bit(priv_flag->bitno, orig_flags) != new_val)
5299 if (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);

Completed in 603 milliseconds

1234