/drivers/gpu/drm/msm/dp/ |
D | dp_audio.c | 128 u32 value, new_value; in dp_audio_stream_sdp() local 135 new_value = 0x02; in dp_audio_stream_sdp() 136 parity_byte = dp_audio_calculate_parity(new_value); in dp_audio_stream_sdp() 137 value |= ((new_value << HEADER_BYTE_1_BIT) in dp_audio_stream_sdp() 147 new_value = value; in dp_audio_stream_sdp() 148 parity_byte = dp_audio_calculate_parity(new_value); in dp_audio_stream_sdp() 149 value |= ((new_value << HEADER_BYTE_2_BIT) in dp_audio_stream_sdp() 161 new_value = audio->channels - 1; in dp_audio_stream_sdp() 162 parity_byte = dp_audio_calculate_parity(new_value); in dp_audio_stream_sdp() 163 value |= ((new_value << HEADER_BYTE_3_BIT) in dp_audio_stream_sdp() [all …]
|
/drivers/xen/xen-pciback/ |
D | conf_space_capability.c | 114 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 …]
|
/drivers/watchdog/ |
D | at91rm9200_wdt.c | 164 int new_value; in at91_wdt_ioctl() local 174 if (get_user(new_value, p)) in at91_wdt_ioctl() 176 if (new_value & WDIOS_DISABLECARD) in at91_wdt_ioctl() 178 if (new_value & WDIOS_ENABLECARD) in at91_wdt_ioctl() 185 if (get_user(new_value, p)) in at91_wdt_ioctl() 187 if (at91_wdt_settimeout(new_value)) in at91_wdt_ioctl()
|
D | bcm63xx_wdt.c | 171 int new_value, retval = -EINVAL; in bcm63xx_wdt_ioctl() local 183 if (get_user(new_value, p)) in bcm63xx_wdt_ioctl() 186 if (new_value & WDIOS_DISABLECARD) { in bcm63xx_wdt_ioctl() 190 if (new_value & WDIOS_ENABLECARD) { in bcm63xx_wdt_ioctl() 202 if (get_user(new_value, p)) in bcm63xx_wdt_ioctl() 205 if (bcm63xx_wdt_settimeout(new_value)) in bcm63xx_wdt_ioctl()
|
D | pika_wdt.c | 178 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()
|
D | kempld_wdt.c | 345 int new_value; in kempld_wdt_ioctl() local 349 if (get_user(new_value, p)) in kempld_wdt_ioctl() 351 ret = kempld_wdt_set_pretimeout(wdd, new_value); in kempld_wdt_ioctl()
|
/drivers/staging/rtl8712/ |
D | rtl871x_mp.c | 218 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()
|
/drivers/pinctrl/renesas/ |
D | pinctrl-rza2.c | 179 u8 new_value; in rza2_chip_set() local 181 new_value = readb(priv->base + RZA2_PODR(port)); in rza2_chip_set() 184 new_value |= BIT(pin); in rza2_chip_set() 186 new_value &= ~BIT(pin); in rza2_chip_set() 188 writeb(new_value, priv->base + RZA2_PODR(port)); in rza2_chip_set()
|
/drivers/hid/ |
D | hid-roccat.c | 252 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()
|
D | hid-lg4ff.c | 280 s32 new_value; in lg4ff_adjust_dfp_x_axis() local 291 new_value = 8192 + mult_frac(value - 8192, max_range, range); in lg4ff_adjust_dfp_x_axis() 292 if (new_value < 0) in lg4ff_adjust_dfp_x_axis() 294 else if (new_value > 16383) in lg4ff_adjust_dfp_x_axis() 297 return new_value; in lg4ff_adjust_dfp_x_axis() 304 s32 new_value = 0; in lg4ff_adjust_input_event() local 315 new_value = lg4ff_adjust_dfp_x_axis(value, entry->wdata.range); in lg4ff_adjust_input_event() 316 input_event(field->hidinput->input, usage->type, usage->code, new_value); in lg4ff_adjust_input_event()
|
/drivers/base/power/ |
D | qos.c | 407 s32 new_value) in __dev_pm_qos_update_request() argument 439 new_value); in __dev_pm_qos_update_request() 440 if (curr_value != new_value) in __dev_pm_qos_update_request() 441 ret = apply_constraint(req, PM_QOS_UPDATE_REQ, new_value); in __dev_pm_qos_update_request() 464 int dev_pm_qos_update_request(struct dev_pm_qos_request *req, s32 new_value) in dev_pm_qos_update_request() argument 469 ret = __dev_pm_qos_update_request(req, new_value); in dev_pm_qos_update_request()
|
/drivers/hwmon/ |
D | emc2103.c | 425 long new_value; in pwm1_enable_store() local 428 int result = kstrtol(buf, 10, &new_value); in pwm1_enable_store() 433 switch (new_value) { in pwm1_enable_store()
|
/drivers/net/ethernet/intel/i40e/ |
D | i40e_ethtool.c | 4103 bool old_value, new_value; in i40e_print_input_set() local 4107 new_value = !!(new & I40E_L3_SRC_MASK); in i40e_print_input_set() 4108 if (old_value != new_value) in i40e_print_input_set() 4111 new_value ? "ON" : "OFF"); in i40e_print_input_set() 4114 new_value = !!(new & I40E_L3_DST_MASK); in i40e_print_input_set() 4115 if (old_value != new_value) in i40e_print_input_set() 4118 new_value ? "ON" : "OFF"); in i40e_print_input_set() 4121 new_value = !!(new & I40E_L4_SRC_MASK); in i40e_print_input_set() 4122 if (old_value != new_value) in i40e_print_input_set() 4125 new_value ? "ON" : "OFF"); in i40e_print_input_set() [all …]
|
/drivers/block/null_blk/ |
D | main.c | 312 int (*apply_fn)(struct nullb_device *dev, TYPE new_value) = APPLY;\ 314 TYPE new_value = 0; \ 317 ret = nullb_device_##TYPE##_attr_store(&new_value, page, count);\ 321 ret = apply_fn(dev, new_value); \ 326 dev->NAME = new_value; \
|
/drivers/macintosh/ |
D | via-pmu.c | 965 int new_value; in pmu_options_proc_write() local 966 new_value = ((*val) == '1'); in pmu_options_proc_write() 967 if (new_value != option_server_mode) in pmu_options_proc_write() 968 pmu_set_server_mode(new_value); in pmu_options_proc_write()
|
/drivers/input/touchscreen/ |
D | wdt87xx_i2c.c | 608 static u16 misr(u16 cur_value, u8 new_value) in misr() argument 615 b = new_value; in misr()
|
/drivers/gpu/drm/arm/ |
D | malidp_hw.c | 812 u32 new_value = MALIDP550_SE_CTL_VCSEL(se_config->vcoeff) | in malidp550_se_set_scaling_coeffs() local 816 malidp_hw_setbits(hwdev, new_value, MALIDP550_SE_CONTROL); in malidp550_se_set_scaling_coeffs()
|
/drivers/net/wireless/intel/iwlwifi/pcie/ |
D | trans.c | 2734 bool new_value; in iwl_dbgfs_rfkill_write() local 2737 ret = kstrtobool_from_user(user_buf, count, &new_value); in iwl_dbgfs_rfkill_write() 2740 if (new_value == trans_pcie->debug_rfkill) in iwl_dbgfs_rfkill_write() 2743 trans_pcie->debug_rfkill, new_value); in iwl_dbgfs_rfkill_write() 2744 trans_pcie->debug_rfkill = new_value; in iwl_dbgfs_rfkill_write()
|
/drivers/platform/x86/dell/ |
D | dell-laptop.c | 2023 enum led_brightness new_value = value; in kbd_led_level_set() local 2054 kbd_led_level = new_value; in kbd_led_level_set()
|