Home
last modified time | relevance | path

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

123

/linux-6.6.21/drivers/gpu/drm/msm/dp/
Ddp_audio.c129 u32 value, new_value; in dp_audio_stream_sdp() local
136 new_value = 0x02; in dp_audio_stream_sdp()
137 parity_byte = dp_audio_calculate_parity(new_value); in dp_audio_stream_sdp()
138 value |= ((new_value << HEADER_BYTE_1_BIT) in dp_audio_stream_sdp()
149 new_value = value; in dp_audio_stream_sdp()
150 parity_byte = dp_audio_calculate_parity(new_value); in dp_audio_stream_sdp()
151 value |= ((new_value << HEADER_BYTE_2_BIT) in dp_audio_stream_sdp()
164 new_value = audio->channels - 1; in dp_audio_stream_sdp()
165 parity_byte = dp_audio_calculate_parity(new_value); in dp_audio_stream_sdp()
166 value |= ((new_value << HEADER_BYTE_3_BIT) in dp_audio_stream_sdp()
[all …]
/linux-6.6.21/tools/testing/selftests/timens/
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()
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-6.6.21/net/sctp/
Dsysctl.c443 int ret, new_value; in proc_sctp_do_rto_min() local
449 tbl.data = &new_value; in proc_sctp_do_rto_min()
455 if (new_value > max || new_value < min) in proc_sctp_do_rto_min()
458 net->sctp.rto_min = new_value; in proc_sctp_do_rto_min()
471 int ret, new_value; in proc_sctp_do_rto_max() local
477 tbl.data = &new_value; in proc_sctp_do_rto_max()
483 if (new_value > max || new_value < min) in proc_sctp_do_rto_max()
486 net->sctp.rto_max = new_value; in proc_sctp_do_rto_max()
507 int new_value, ret; in proc_sctp_do_auth() local
513 tbl.data = &new_value; in proc_sctp_do_auth()
[all …]
/linux-6.6.21/drivers/xen/xen-pciback/
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 = (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-6.6.21/scripts/
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-6.6.21/kernel/power/
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-6.6.21/kernel/irq/
Dproc.c141 cpumask_var_t new_value; in write_irq_affinity() local
147 if (!zalloc_cpumask_var(&new_value, GFP_KERNEL)) in write_irq_affinity()
151 err = cpumask_parselist_user(buffer, count, new_value); in write_irq_affinity()
153 err = cpumask_parse_user(buffer, count, new_value); in write_irq_affinity()
162 if (!cpumask_intersects(new_value, cpu_online_mask)) { in write_irq_affinity()
169 err = irq_set_affinity(irq, new_value); in write_irq_affinity()
175 free_cpumask_var(new_value); in write_irq_affinity()
238 cpumask_var_t new_value; in default_affinity_write() local
241 if (!zalloc_cpumask_var(&new_value, GFP_KERNEL)) in default_affinity_write()
244 err = cpumask_parse_user(buffer, count, new_value); in default_affinity_write()
[all …]
/linux-6.6.21/include/trace/events/
Dpower.h478 s32 new_value),
480 TP_ARGS(name, type, new_value),
485 __field( s32, new_value )
491 __entry->new_value = new_value;
499 __entry->new_value)
505 s32 new_value),
507 TP_ARGS(name, type, new_value)
513 s32 new_value),
515 TP_ARGS(name, type, new_value)
521 s32 new_value),
[all …]
/linux-6.6.21/drivers/watchdog/
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()
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-6.6.21/tools/build/feature/
Dtest-timerfd.c9 struct itimerspec new_value; in main() local
15 if (timerfd_settime(fd, 0, &new_value, NULL) != 0) in main()
/linux-6.6.21/tools/usb/usbip/libsrc/
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()
Dsysfs_utils.h6 int write_sysfs_attribute(const char *attr_path, const char *new_value,
/linux-6.6.21/scripts/kconfig/
Dpreprocess.c283 char *new_value; in variable_add() local
309 new_value = expand_string(value); in variable_add()
311 new_value = xstrdup(value); in variable_add()
315 strlen(v->value) + strlen(new_value) + 2); in variable_add()
317 strcat(v->value, new_value); in variable_add()
318 free(new_value); in variable_add()
320 v->value = new_value; in variable_add()
/linux-6.6.21/Documentation/translations/zh_CN/doc-guide/
Dparse-headers.rst89 replace \ **type**\ \ **name**\ \ **new_value**\
92 用,但是它将使用 \ **new_value**\ 来取代默认的替换规则。
134 replace语句中, \ **new_value**\ 会自动使用 \ **typedef**\ , \ **enum**\
/linux-6.6.21/include/linux/
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-6.6.21/security/selinux/
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-6.6.21/kernel/
Dprofile.c361 cpumask_var_t new_value; in prof_cpu_mask_proc_write() local
364 if (!zalloc_cpumask_var(&new_value, GFP_KERNEL)) in prof_cpu_mask_proc_write()
367 err = cpumask_parse_user(buffer, count, new_value); in prof_cpu_mask_proc_write()
369 cpumask_copy(prof_cpu_mask, new_value); in prof_cpu_mask_proc_write()
372 free_cpumask_var(new_value); in prof_cpu_mask_proc_write()
/linux-6.6.21/kernel/events/
Dcallchain.c236 int new_value = *value, ret; in perf_event_max_stack_handler() local
239 new_table.data = &new_value; in perf_event_max_stack_handler()
248 *value = new_value; in perf_event_max_stack_handler()
/linux-6.6.21/drivers/staging/rtl8712/
Drtl871x_mp.c218 u32 org_value, bit_shift, new_value; in set_bb_reg() local
223 new_value = (org_value & (~bitmask)) | (value << bit_shift); in set_bb_reg()
225 new_value = value; in set_bb_reg()
227 return r8712_bb_reg_write(pAdapter, offset, new_value); in set_bb_reg()
243 u32 org_value, bit_shift, new_value; in set_rf_reg() local
248 new_value = (org_value & (~bitmask)) | (value << bit_shift); in set_rf_reg()
250 new_value = value; in set_rf_reg()
252 return r8712_rf_reg_write(pAdapter, path, offset, new_value); in set_rf_reg()
/linux-6.6.21/tools/testing/selftests/mqueue/
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-6.6.21/drivers/pinctrl/renesas/
Dpinctrl-rza2.c180 u8 new_value; in rza2_chip_set() local
182 new_value = readb(priv->base + RZA2_PODR(port)); in rza2_chip_set()
185 new_value |= BIT(pin); in rza2_chip_set()
187 new_value &= ~BIT(pin); in rza2_chip_set()
189 writeb(new_value, priv->base + RZA2_PODR(port)); in rza2_chip_set()
/linux-6.6.21/drivers/hid/
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-6.6.21/drivers/platform/x86/hp/hp-bioscfg/
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

123