Home
last modified time | relevance | path

Searched refs:new_data (Results 1 - 25 of 59) sorted by relevance

123

/kernel/linux/linux-6.6/drivers/leds/
H A Duleds.c34 bool new_data; member
47 udev->new_data = true; in uleds_brightness_set()
121 udev->new_data = true; in uleds_write()
147 } else if (!udev->new_data && (file->f_flags & O_NONBLOCK)) { in uleds_read()
149 } else if (udev->new_data) { in uleds_read()
152 udev->new_data = false; in uleds_read()
163 udev->new_data || in uleds_read()
176 if (udev->new_data) in uleds_poll()
/kernel/linux/linux-5.10/drivers/leds/
H A Duleds.c34 bool new_data; member
47 udev->new_data = true; in uleds_brightness_set()
121 udev->new_data = true; in uleds_write()
147 } else if (!udev->new_data && (file->f_flags & O_NONBLOCK)) { in uleds_read()
149 } else if (udev->new_data) { in uleds_read()
152 udev->new_data = false; in uleds_read()
163 udev->new_data || in uleds_read()
176 if (udev->new_data) in uleds_poll()
/kernel/linux/linux-5.10/drivers/net/wireless/intel/iwlwifi/dvm/
H A Drx.c894 struct iwl_wipan_noa_data *new_data, *old_data; in iwlagn_rx_noa_notification() local
911 new_data = kmalloc(sizeof(*new_data) + len, GFP_ATOMIC); in iwlagn_rx_noa_notification()
912 if (new_data) { in iwlagn_rx_noa_notification()
913 new_data->length = len; in iwlagn_rx_noa_notification()
914 new_data->data[0] = WLAN_EID_VENDOR_SPECIFIC; in iwlagn_rx_noa_notification()
915 new_data->data[1] = len - 2; /* not counting EID, len */ in iwlagn_rx_noa_notification()
916 new_data->data[2] = (WLAN_OUI_WFA >> 16) & 0xff; in iwlagn_rx_noa_notification()
917 new_data->data[3] = (WLAN_OUI_WFA >> 8) & 0xff; in iwlagn_rx_noa_notification()
918 new_data in iwlagn_rx_noa_notification()
[all...]
/kernel/linux/linux-6.6/drivers/net/wireless/intel/iwlwifi/dvm/
H A Drx.c901 struct iwl_wipan_noa_data *new_data, *old_data; in iwlagn_rx_noa_notification() local
918 new_data = kmalloc(struct_size(new_data, data, len), GFP_ATOMIC); in iwlagn_rx_noa_notification()
919 if (new_data) { in iwlagn_rx_noa_notification()
920 new_data->length = len; in iwlagn_rx_noa_notification()
921 new_data->data[0] = WLAN_EID_VENDOR_SPECIFIC; in iwlagn_rx_noa_notification()
922 new_data->data[1] = len - 2; /* not counting EID, len */ in iwlagn_rx_noa_notification()
923 new_data->data[2] = (WLAN_OUI_WFA >> 16) & 0xff; in iwlagn_rx_noa_notification()
924 new_data->data[3] = (WLAN_OUI_WFA >> 8) & 0xff; in iwlagn_rx_noa_notification()
925 new_data in iwlagn_rx_noa_notification()
[all...]
/kernel/linux/linux-5.10/drivers/video/console/
H A Dnewport_con.c506 unsigned char *new_data, *data = op->data, *p; in newport_set_font() local
514 if (!(new_data = kmalloc(FONT_EXTRA_WORDS * sizeof(int) + size, in newport_set_font()
517 new_data += FONT_EXTRA_WORDS * sizeof(int); in newport_set_font()
518 FNTSIZE(new_data) = size; in newport_set_font()
519 FNTCHARCNT(new_data) = op->charcount; in newport_set_font()
520 REFCOUNT(new_data) = 0; /* usage counter */ in newport_set_font()
521 FNTSUM(new_data) = 0; in newport_set_font()
523 p = new_data; in newport_set_font()
534 && !memcmp(font_data[i], new_data, size)) { in newport_set_font()
535 kfree(new_data in newport_set_font()
[all...]
/kernel/linux/linux-6.6/drivers/video/console/
H A Dnewport_con.c506 unsigned char *new_data, *data = op->data, *p; in newport_set_font() local
514 if (!(new_data = kmalloc(FONT_EXTRA_WORDS * sizeof(int) + size, in newport_set_font()
517 new_data += FONT_EXTRA_WORDS * sizeof(int); in newport_set_font()
518 FNTSIZE(new_data) = size; in newport_set_font()
519 FNTCHARCNT(new_data) = op->charcount; in newport_set_font()
520 REFCOUNT(new_data) = 0; /* usage counter */ in newport_set_font()
521 FNTSUM(new_data) = 0; in newport_set_font()
523 p = new_data; in newport_set_font()
534 && !memcmp(font_data[i], new_data, size)) { in newport_set_font()
535 kfree(new_data in newport_set_font()
[all...]
/kernel/linux/linux-5.10/arch/powerpc/platforms/pseries/
H A Dmobility.c109 char *new_data = kzalloc(new_prop->length + vd, GFP_KERNEL); in update_dt_property() local
110 if (!new_data) in update_dt_property()
113 memcpy(new_data, new_prop->value, new_prop->length); in update_dt_property()
114 memcpy(new_data + new_prop->length, value, vd); in update_dt_property()
117 new_prop->value = new_data; in update_dt_property()
/kernel/linux/linux-6.6/arch/powerpc/platforms/pseries/
H A Dmobility.c138 char *new_data = kzalloc(new_prop->length + vd, GFP_KERNEL); in update_dt_property() local
139 if (!new_data) in update_dt_property()
142 memcpy(new_data, new_prop->value, new_prop->length); in update_dt_property()
143 memcpy(new_data + new_prop->length, value, vd); in update_dt_property()
146 new_prop->value = new_data; in update_dt_property()
/kernel/linux/linux-5.10/drivers/net/wireless/intel/iwlwifi/mvm/
H A Dmac-ctxt.c1505 struct iwl_probe_resp_data *old_data, *new_data; in iwl_mvm_probe_resp_data_notif() local
1523 new_data = kzalloc(sizeof(*new_data), GFP_KERNEL); in iwl_mvm_probe_resp_data_notif()
1524 if (!new_data) in iwl_mvm_probe_resp_data_notif()
1527 memcpy(&new_data->notif, notif, sizeof(new_data->notif)); in iwl_mvm_probe_resp_data_notif()
1530 new_data->noa_len = sizeof(struct ieee80211_vendor_ie) + in iwl_mvm_probe_resp_data_notif()
1531 sizeof(new_data->notif.noa_attr) - 1; in iwl_mvm_probe_resp_data_notif()
1537 if (new_data->notif.noa_attr.len_low == in iwl_mvm_probe_resp_data_notif()
1539 new_data in iwl_mvm_probe_resp_data_notif()
[all...]
/kernel/linux/linux-5.10/drivers/md/
H A Ddm-ioctl.c373 char *new_data, *old_name = NULL; in dm_hash_rename() local
383 new_data = kstrdup(new, GFP_KERNEL); in dm_hash_rename()
384 if (!new_data) in dm_hash_rename()
404 kfree(new_data); in dm_hash_rename()
416 kfree(new_data); in dm_hash_rename()
429 kfree(new_data); in dm_hash_rename()
434 __set_cell_uuid(hc, new_data); in dm_hash_rename()
436 old_name = __change_cell_name(hc, new_data); in dm_hash_rename()
932 char *new_data = (char *) param + param->data_start; in dev_rename() local
936 if (new_data < para in dev_rename()
[all...]
/kernel/linux/linux-6.6/drivers/md/
H A Ddm-ioctl.c429 char *new_data, *old_name = NULL; in dm_hash_rename() local
439 new_data = kstrdup(new, GFP_KERNEL); in dm_hash_rename()
440 if (!new_data) in dm_hash_rename()
459 kfree(new_data); in dm_hash_rename()
471 kfree(new_data); in dm_hash_rename()
484 kfree(new_data); in dm_hash_rename()
489 __set_cell_uuid(hc, new_data); in dm_hash_rename()
491 old_name = __change_cell_name(hc, new_data); in dm_hash_rename()
1047 char *new_data = (char *) param + param->data_start; in dev_rename() local
1051 if (new_data < para in dev_rename()
[all...]
/kernel/linux/linux-6.6/drivers/net/vmxnet3/
H A Dvmxnet3_xdp.c379 void *new_data; in vmxnet3_process_xdp() local
407 new_data = vmxnet3_pp_get_buff(rq->page_pool, &new_dma_addr, in vmxnet3_process_xdp()
409 if (!new_data) { in vmxnet3_process_xdp()
413 rbi->page = virt_to_page(new_data); in vmxnet3_process_xdp()
/kernel/linux/linux-6.6/drivers/cxl/
H A Dsecurity.c68 const struct nvdimm_key_data *new_data, in cxl_pmem_security_change_key()
82 memcpy(set_pass.new_pass, new_data->data, NVDIMM_PASSPHRASE_LEN); in cxl_pmem_security_change_key()
66 cxl_pmem_security_change_key(struct nvdimm *nvdimm, const struct nvdimm_key_data *old_data, const struct nvdimm_key_data *new_data, enum nvdimm_passphrase_type ptype) cxl_pmem_security_change_key() argument
/kernel/linux/linux-5.10/drivers/cpufreq/
H A Dcpufreq.c2474 struct cpufreq_policy_data new_data; in cpufreq_set_policy() local
2478 memcpy(&new_data.cpuinfo, &policy->cpuinfo, sizeof(policy->cpuinfo)); in cpufreq_set_policy()
2479 new_data.freq_table = policy->freq_table; in cpufreq_set_policy()
2480 new_data.cpu = policy->cpu; in cpufreq_set_policy()
2485 new_data.min = freq_qos_read_value(&policy->constraints, FREQ_QOS_MIN); in cpufreq_set_policy()
2486 new_data.max = freq_qos_read_value(&policy->constraints, FREQ_QOS_MAX); in cpufreq_set_policy()
2489 new_data.cpu, new_data.min, new_data.max); in cpufreq_set_policy()
2495 ret = cpufreq_driver->verify(&new_data); in cpufreq_set_policy()
[all...]
/kernel/linux/linux-6.6/drivers/cpufreq/
H A Dcpufreq.c2590 struct cpufreq_policy_data new_data; in cpufreq_set_policy() local
2594 memcpy(&new_data.cpuinfo, &policy->cpuinfo, sizeof(policy->cpuinfo)); in cpufreq_set_policy()
2595 new_data.freq_table = policy->freq_table; in cpufreq_set_policy()
2596 new_data.cpu = policy->cpu; in cpufreq_set_policy()
2601 new_data.min = freq_qos_read_value(&policy->constraints, FREQ_QOS_MIN); in cpufreq_set_policy()
2602 new_data.max = freq_qos_read_value(&policy->constraints, FREQ_QOS_MAX); in cpufreq_set_policy()
2605 new_data.cpu, new_data.min, new_data.max); in cpufreq_set_policy()
2611 ret = cpufreq_driver->verify(&new_data); in cpufreq_set_policy()
[all...]
/kernel/linux/linux-6.6/drivers/net/wireless/intel/iwlwifi/mvm/
H A Dmac-ctxt.c1711 struct iwl_probe_resp_data *old_data, *new_data; in iwl_mvm_probe_resp_data_notif() local
1725 new_data = kzalloc(sizeof(*new_data), GFP_KERNEL); in iwl_mvm_probe_resp_data_notif()
1726 if (!new_data) in iwl_mvm_probe_resp_data_notif()
1729 memcpy(&new_data->notif, notif, sizeof(new_data->notif)); in iwl_mvm_probe_resp_data_notif()
1732 new_data->noa_len = sizeof(struct ieee80211_vendor_ie) + in iwl_mvm_probe_resp_data_notif()
1733 sizeof(new_data->notif.noa_attr) - 1; in iwl_mvm_probe_resp_data_notif()
1739 if (new_data->notif.noa_attr.len_low == in iwl_mvm_probe_resp_data_notif()
1741 new_data in iwl_mvm_probe_resp_data_notif()
[all...]
/kernel/linux/linux-5.10/include/linux/
H A Dtpm.h354 const unsigned char *new_data, in tpm_buf_append()
370 memcpy(&buf->data[len], new_data, new_len); in tpm_buf_append()
353 tpm_buf_append(struct tpm_buf *buf, const unsigned char *new_data, unsigned int new_len) tpm_buf_append() argument
/kernel/linux/linux-6.6/include/linux/
H A Dtpm.h369 const unsigned char *new_data, in tpm_buf_append()
385 memcpy(&buf->data[len], new_data, new_len); in tpm_buf_append()
368 tpm_buf_append(struct tpm_buf *buf, const unsigned char *new_data, unsigned int new_len) tpm_buf_append() argument
/kernel/linux/linux-5.10/drivers/tty/
H A Dn_r3964.c1130 unsigned char *new_data; in r3964_write() local
1153 new_data = kmalloc(count + sizeof(struct r3964_block_header), in r3964_write()
1155 TRACE_M("r3964_write - kmalloc %p", new_data); in r3964_write()
1156 if (new_data == NULL) { in r3964_write()
1163 pHeader = (struct r3964_block_header *)new_data; in r3964_write()
1164 pHeader->data = new_data + sizeof(struct r3964_block_header); in r3964_write()
/kernel/linux/linux-5.10/drivers/video/fbdev/core/
H A Dfbcon.c2503 u8 *new_data, *data = font->data; in fbcon_set_font() local
2530 new_data = kmalloc(FONT_EXTRA_WORDS * sizeof(int) + size, GFP_USER); in fbcon_set_font()
2532 if (!new_data) in fbcon_set_font()
2535 new_data += FONT_EXTRA_WORDS * sizeof(int); in fbcon_set_font()
2536 FNTSIZE(new_data) = size; in fbcon_set_font()
2537 FNTCHARCNT(new_data) = charcount; in fbcon_set_font()
2538 REFCOUNT(new_data) = 0; /* usage counter */ in fbcon_set_font()
2540 memcpy(new_data + i*h*pitch, data + i*32*pitch, h*pitch); in fbcon_set_font()
2545 csum = crc32(0, new_data, size); in fbcon_set_font()
2547 FNTSUM(new_data) in fbcon_set_font()
[all...]
/kernel/linux/linux-6.6/drivers/video/fbdev/core/
H A Dfbcon.c2472 u8 *new_data, *data = font->data; in fbcon_set_font() local
2499 new_data = kmalloc(FONT_EXTRA_WORDS * sizeof(int) + size, GFP_USER); in fbcon_set_font()
2501 if (!new_data) in fbcon_set_font()
2504 memset(new_data, 0, FONT_EXTRA_WORDS * sizeof(int)); in fbcon_set_font()
2506 new_data += FONT_EXTRA_WORDS * sizeof(int); in fbcon_set_font()
2507 FNTSIZE(new_data) = size; in fbcon_set_font()
2508 REFCOUNT(new_data) = 0; /* usage counter */ in fbcon_set_font()
2510 memcpy(new_data + i*h*pitch, data + i*vpitch*pitch, h*pitch); in fbcon_set_font()
2515 csum = crc32(0, new_data, size); in fbcon_set_font()
2517 FNTSUM(new_data) in fbcon_set_font()
[all...]
/kernel/linux/linux-5.10/drivers/net/ethernet/intel/ice/
H A Dice_common.c4170 u64 new_data = rd64(hw, reg) & (BIT_ULL(40) - 1); in ice_stat_update40() local
4178 *prev_stat = new_data; in ice_stat_update40()
4185 if (new_data >= *prev_stat) in ice_stat_update40()
4186 *cur_stat += new_data - *prev_stat; in ice_stat_update40()
4189 *cur_stat += (new_data + BIT_ULL(40)) - *prev_stat; in ice_stat_update40()
4192 *prev_stat = new_data; in ice_stat_update40()
4207 u32 new_data; in ice_stat_update32() local
4209 new_data = rd32(hw, reg); in ice_stat_update32()
4217 *prev_stat = new_data; in ice_stat_update32()
4224 if (new_data > in ice_stat_update32()
[all...]
/kernel/linux/linux-6.6/drivers/net/ethernet/intel/ice/
H A Dice_common.c5083 u64 new_data = rd64(hw, reg) & (BIT_ULL(40) - 1); in ice_stat_update40() local
5091 *prev_stat = new_data; in ice_stat_update40()
5098 if (new_data >= *prev_stat) in ice_stat_update40()
5099 *cur_stat += new_data - *prev_stat; in ice_stat_update40()
5102 *cur_stat += (new_data + BIT_ULL(40)) - *prev_stat; in ice_stat_update40()
5105 *prev_stat = new_data; in ice_stat_update40()
5120 u32 new_data; in ice_stat_update32() local
5122 new_data = rd32(hw, reg); in ice_stat_update32()
5130 *prev_stat = new_data; in ice_stat_update32()
5137 if (new_data > in ice_stat_update32()
[all...]
/kernel/linux/linux-5.10/drivers/acpi/nfit/
H A Dintel.c148 const struct nvdimm_key_data *new_data, in intel_security_change_key()
174 memcpy(nd_cmd.cmd.new_pass, new_data->data, in intel_security_change_key()
146 intel_security_change_key(struct nvdimm *nvdimm, const struct nvdimm_key_data *old_data, const struct nvdimm_key_data *new_data, enum nvdimm_passphrase_type ptype) intel_security_change_key() argument
/kernel/linux/linux-6.6/drivers/acpi/nfit/
H A Dintel.c149 const struct nvdimm_key_data *new_data, in intel_security_change_key()
175 memcpy(nd_cmd.cmd.new_pass, new_data->data, in intel_security_change_key()
147 intel_security_change_key(struct nvdimm *nvdimm, const struct nvdimm_key_data *old_data, const struct nvdimm_key_data *new_data, enum nvdimm_passphrase_type ptype) intel_security_change_key() argument

Completed in 47 milliseconds

123