Home
last modified time | relevance | path

Searched refs:new_value (Results 1 – 25 of 55) sorted by relevance

123

/linux/tools/testing/selftests/timens/
H A Dtimer.c20 struct itimerspec new_value; in run_test() local
32 new_value.it_value.tv_sec = 3600; in run_test()
33 new_value.it_value.tv_nsec = 0; in run_test()
34 new_value.it_interval.tv_sec = 1; in run_test()
35 new_value.it_interval.tv_nsec = 0; in run_test()
38 new_value.it_value.tv_sec += now.tv_sec; in run_test()
39 new_value.it_value.tv_nsec += now.tv_nsec; in run_test()
52 if (timer_settime(fd, flags, &new_value, NULL) == -1) in run_test()
55 if (timer_gettime(fd, &new_value) == -1) in run_test()
58 elapsed = new_value.it_value.tv_sec; in run_test()
H A Dtimerfd.c27 struct itimerspec new_value; in run_test() local
40 new_value.it_value.tv_sec = 3600; in run_test()
41 new_value.it_value.tv_nsec = 0; in run_test()
42 new_value.it_interval.tv_sec = 1; in run_test()
43 new_value.it_interval.tv_nsec = 0; in run_test()
46 new_value.it_value.tv_sec += now.tv_sec; in run_test()
47 new_value.it_value.tv_nsec += now.tv_nsec; in run_test()
57 if (timerfd_settime(fd, flags, &new_value, NULL)) in run_test()
60 if (timerfd_gettime(fd, &new_value)) in run_test()
63 elapsed = new_value.it_value.tv_sec; in run_test()
/linux/net/sctp/
H A Dsysctl.c440 int ret, new_value; in proc_sctp_do_rto_min() local
446 tbl.data = &new_value; in proc_sctp_do_rto_min()
452 if (new_value > max || new_value < min) in proc_sctp_do_rto_min()
455 net->sctp.rto_min = new_value; in proc_sctp_do_rto_min()
468 int ret, new_value; in proc_sctp_do_rto_max() local
474 tbl.data = &new_value; in proc_sctp_do_rto_max()
480 if (new_value > max || new_value < min) in proc_sctp_do_rto_max()
483 net->sctp.rto_max = new_value; in proc_sctp_do_rto_max()
504 int new_value, ret; in proc_sctp_do_auth() local
510 tbl.data = &new_value; in proc_sctp_do_auth()
[all …]
/linux/drivers/xen/xen-pciback/
H A Dconf_space_capability.c114 static int pm_ctrl_write(struct pci_dev *dev, int offset, u16 new_value, in pm_ctrl_write() argument
125 new_state = (__force pci_power_t)(new_value & PCI_PM_CTRL_STATE_MASK); in pm_ctrl_write()
127 new_value &= PM_OK_BITS; in pm_ctrl_write()
128 if ((old_value & PM_OK_BITS) != new_value) { in pm_ctrl_write()
129 new_value = (old_value & ~PM_OK_BITS) | new_value; in pm_ctrl_write()
130 err = pci_write_config_word(dev, offset, new_value); in pm_ctrl_write()
216 static int msi_msix_flags_write(struct pci_dev *dev, int offset, u16 new_value, in msi_msix_flags_write() argument
231 if (new_value == old_value) in msi_msix_flags_write()
235 (new_value ^ old_value) & ~field_config->allowed_bits) in msi_msix_flags_write()
238 if (new_value & field_config->enable_bit) { in msi_msix_flags_write()
[all …]
/linux/kernel/power/
H A Dqos.c101 int prev_value, curr_value, new_value; in pm_qos_update_target() local
108 new_value = c->default_value; in pm_qos_update_target()
110 new_value = value; in pm_qos_update_target()
124 plist_node_init(node, new_value); in pm_qos_update_target()
295 void cpu_latency_qos_update_request(struct pm_qos_request *req, s32 new_value) in cpu_latency_qos_update_request() argument
297 if (!req || cpu_latency_qos_value_invalid(new_value)) in cpu_latency_qos_update_request()
305 trace_pm_qos_update_request(new_value); in cpu_latency_qos_update_request()
307 if (new_value == req->node.prio) in cpu_latency_qos_update_request()
310 cpu_latency_qos_apply(req, PM_QOS_UPDATE_REQ, new_value); in cpu_latency_qos_update_request()
574 int freq_qos_update_request(struct freq_qos_request *req, s32 new_value) in freq_qos_update_request() argument
[all …]
/linux/scripts/
H A Ddiffconfig51 def print_config(op, config, value, new_value): argument
55 if new_value:
56 if new_value=="n":
59 print("CONFIG_%s=%s" % (config, new_value))
64 print("+%s %s" % (config, new_value))
66 print(" %s %s -> %s" % (config, value, new_value))
/linux/kernel/irq/
H A Dproc.c139 cpumask_var_t new_value; in write_irq_affinity() local
145 if (!zalloc_cpumask_var(&new_value, GFP_KERNEL)) in write_irq_affinity()
149 err = cpumask_parselist_user(buffer, count, new_value); in write_irq_affinity()
151 err = cpumask_parse_user(buffer, count, new_value); in write_irq_affinity()
160 if (!cpumask_intersects(new_value, cpu_online_mask)) { in write_irq_affinity()
167 err = irq_set_affinity(irq, new_value); in write_irq_affinity()
173 free_cpumask_var(new_value); in write_irq_affinity()
236 cpumask_var_t new_value; in default_affinity_write() local
239 if (!zalloc_cpumask_var(&new_value, GFP_KERNEL)) in default_affinity_write()
242 err = cpumask_parse_user(buffer, count, new_value); in default_affinity_write()
[all …]
/linux/include/trace/events/
H A Dpower.h477 s32 new_value),
479 TP_ARGS(name, type, new_value),
484 __field( s32, new_value )
490 __entry->new_value = new_value;
493 TP_printk("device=%s type=%s new_value=%d",
498 __entry->new_value)
504 s32 new_value),
506 TP_ARGS(name, type, new_value)
512 s32 new_value),
[all...]
/linux/drivers/watchdog/
H A Dat91rm9200_wdt.c163 int new_value; in at91_wdt_ioctl() local
173 if (get_user(new_value, p)) in at91_wdt_ioctl()
175 if (new_value & WDIOS_DISABLECARD) in at91_wdt_ioctl()
177 if (new_value & WDIOS_ENABLECARD) in at91_wdt_ioctl()
184 if (get_user(new_value, p)) in at91_wdt_ioctl()
186 if (at91_wdt_settimeout(new_value)) in at91_wdt_ioctl()
H A Dpika_wdt.c178 int new_value; in pikawdt_ioctl() local
195 if (get_user(new_value, p)) in pikawdt_ioctl()
198 heartbeat = new_value; in pikawdt_ioctl()
201 return put_user(new_value, p); /* return current value */ in pikawdt_ioctl()
/linux/security/ipe/
H A Dfs.c84 bool new_value, old_value; in setenforce() local
90 rc = kstrtobool_from_user(data, len, &new_value); in setenforce()
94 if (new_value != old_value) { in setenforce()
95 ipe_audit_enforce(new_value, old_value); in setenforce()
96 WRITE_ONCE(enforce, new_value); in setenforce()
/linux/fs/xfs/
H A Dxfs_attr_item.c81 const void *new_value, in xfs_attri_log_nameval_alloc() argument
120 nv->new_value.i_addr = nv->name.i_addr + name_len + in xfs_attri_log_nameval_alloc()
122 nv->new_value.i_len = new_value_len; in xfs_attri_log_nameval_alloc()
123 memcpy(nv->new_value.i_addr, new_value, new_value_len); in xfs_attri_log_nameval_alloc()
125 nv->new_value.i_addr = NULL; in xfs_attri_log_nameval_alloc()
126 nv->new_value.i_len = 0; in xfs_attri_log_nameval_alloc()
128 nv->new_value.i_type = XLOG_REG_TYPE_ATTR_NEWVALUE; in xfs_attri_log_nameval_alloc()
185 if (nv->new_value.i_len) { in xfs_attri_item_size()
187 *nbytes += xlog_calc_iovec_len(nv->new_value.i_len); in xfs_attri_item_size()
224 if (nv->new_value.i_len > 0) in xfs_attri_item_format()
[all …]
/linux/scripts/kconfig/
H A Dpreprocess.c287 char *new_value; in variable_add() local
313 new_value = expand_string(value); in variable_add()
315 new_value = xstrdup(value); in variable_add()
319 strlen(v->value) + strlen(new_value) + 2); in variable_add()
321 strcat(v->value, new_value); in variable_add()
322 free(new_value); in variable_add()
324 v->value = new_value; in variable_add()
/linux/security/selinux/
H A Dselinuxfs.c142 bool old_value, new_value; in sel_write_enforce() local
159 new_value = !!scan_value; in sel_write_enforce()
162 if (new_value != old_value) { in sel_write_enforce()
171 new_value, old_value, in sel_write_enforce()
174 enforcing_set(new_value); in sel_write_enforce()
175 if (new_value) in sel_write_enforce()
177 selnl_notify_setenforce(new_value); in sel_write_enforce()
178 selinux_status_update_setenforce(new_value); in sel_write_enforce()
179 if (!new_value) in sel_write_enforce()
277 int new_value; in sel_write_disable() local
[all …]
/linux/tools/build/feature/
H A Dtest-timerfd.c9 struct itimerspec new_value; in main() local
15 if (timerfd_settime(fd, 0, &new_value, NULL) != 0) in main()
/linux/tools/usb/usbip/libsrc/
H A Dsysfs_utils.c10 int write_sysfs_attribute(const char *attr_path, const char *new_value, in write_sysfs_attribute() argument
22 length = write(fd, new_value, len); in write_sysfs_attribute()
/linux/Documentation/translations/zh_CN/doc-guide/
H A Dparse-headers.rst89 replace \ **type**\ \ **name**\ \ **new_value**\
92 用,但是它将使用 \ **new_value**\ 来取代默认的替换规则。
134 replace语句中, \ **new_value**\ 会自动使用 \ **typedef**\ , \ **enum**\
/linux/include/linux/
H A Dpm_qos.h150 void cpu_latency_qos_update_request(struct pm_qos_request *req, s32 new_value);
161 s32 new_value) {} in cpu_latency_qos_update_request() argument
172 int dev_pm_qos_update_request(struct dev_pm_qos_request *req, s32 new_value);
242 s32 new_value) in dev_pm_qos_update_request() argument
307 int freq_qos_update_request(struct freq_qos_request *req, s32 new_value);
/linux/kernel/events/
H A Dcallchain.c277 int new_value = *value, ret; in perf_event_max_stack_handler() local
280 new_table.data = &new_value; in perf_event_max_stack_handler()
289 *value = new_value; in perf_event_max_stack_handler()
/linux/tools/testing/selftests/mqueue/
H A Dmq_perf_tests.c249 int new_value; in set() local
254 new_value = get(stream); in set()
255 if (new_value != value) in set()
262 int new_value; in try_set() local
266 new_value = get(stream); in try_set()
267 return new_value == value; in try_set()
/linux/drivers/pinctrl/renesas/
H A Dpinctrl-rza2.c181 u8 new_value; in rza2_chip_set() local
183 new_value = readb(priv->base + RZA2_PODR(port)); in rza2_chip_set()
186 new_value |= BIT(pin); in rza2_chip_set()
188 new_value &= ~BIT(pin); in rza2_chip_set()
190 writeb(new_value, priv->base + RZA2_PODR(port)); in rza2_chip_set()
/linux/drivers/hid/
H A Dhid-roccat.c252 uint8_t *new_value; in roccat_report_event() local
256 new_value = kmemdup(data, device->report_size, GFP_ATOMIC); in roccat_report_event()
257 if (!new_value) in roccat_report_event()
267 report->value = new_value; in roccat_report_event()
/linux/drivers/platform/x86/hp/hp-bioscfg/
H A Dbioscfg.h135 u8 new_value[MAX_BUFF_SIZE]; member
144 u32 new_value; member
154 u8 new_value[MAX_BUFF_SIZE]; member
163 u8 new_value[MAX_BUFF_SIZE]; member
/linux/Documentation/trace/
H A Devents-power.rst88 dev_pm_qos_add_request "device=%s type=%s new_value=%d"
89 dev_pm_qos_update_request "device=%s type=%s new_value=%d"
90 dev_pm_qos_remove_request "device=%s type=%s new_value=%d"
/linux/arch/powerpc/platforms/cell/
H A Dcbe_thermal.c116 u64 new_value; in store_throttle() local
124 new_value = temp_to_reg(temp); in store_throttle()
131 reg_value |= new_value << pos; in store_throttle()

123