Home
last modified time | relevance | path

Searched refs:new_data (Results 1 – 16 of 16) sorted by relevance

/drivers/leds/
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()
/drivers/video/console/
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 - FONT_EXTRA_WORDS * sizeof(int)); in newport_set_font()
[all …]
/drivers/net/wireless/intel/iwlwifi/dvm/
Drx.c906 struct iwl_wipan_noa_data *new_data, *old_data; in iwlagn_rx_noa_notification() local
923 new_data = kmalloc(sizeof(*new_data) + len, GFP_ATOMIC); in iwlagn_rx_noa_notification()
924 if (new_data) { in iwlagn_rx_noa_notification()
925 new_data->length = len; in iwlagn_rx_noa_notification()
926 new_data->data[0] = WLAN_EID_VENDOR_SPECIFIC; in iwlagn_rx_noa_notification()
927 new_data->data[1] = len - 2; /* not counting EID, len */ in iwlagn_rx_noa_notification()
928 new_data->data[2] = (WLAN_OUI_WFA >> 16) & 0xff; in iwlagn_rx_noa_notification()
929 new_data->data[3] = (WLAN_OUI_WFA >> 8) & 0xff; in iwlagn_rx_noa_notification()
930 new_data->data[4] = (WLAN_OUI_WFA >> 0) & 0xff; in iwlagn_rx_noa_notification()
931 new_data->data[5] = WLAN_OUI_TYPE_WFA_P2P; in iwlagn_rx_noa_notification()
[all …]
/drivers/md/
Ddm-ioctl.c412 char *new_data, *old_name = NULL; in dm_hash_rename() local
422 new_data = kstrdup(new, GFP_KERNEL); in dm_hash_rename()
423 if (!new_data) in dm_hash_rename()
443 kfree(new_data); in dm_hash_rename()
455 kfree(new_data); in dm_hash_rename()
468 kfree(new_data); in dm_hash_rename()
473 __set_cell_uuid(hc, new_data); in dm_hash_rename()
475 old_name = __change_cell_name(hc, new_data); in dm_hash_rename()
1016 char *new_data = (char *) param + param->data_start; in dev_rename() local
1020 if (new_data < param->data || in dev_rename()
[all …]
/drivers/net/wireless/intel/iwlwifi/mvm/
Dmac-ctxt.c1494 struct iwl_probe_resp_data *old_data, *new_data; in iwl_mvm_probe_resp_data_notif() local
1508 new_data = kzalloc(sizeof(*new_data), GFP_KERNEL); in iwl_mvm_probe_resp_data_notif()
1509 if (!new_data) in iwl_mvm_probe_resp_data_notif()
1512 memcpy(&new_data->notif, notif, sizeof(new_data->notif)); in iwl_mvm_probe_resp_data_notif()
1515 new_data->noa_len = sizeof(struct ieee80211_vendor_ie) + in iwl_mvm_probe_resp_data_notif()
1516 sizeof(new_data->notif.noa_attr) - 1; in iwl_mvm_probe_resp_data_notif()
1522 if (new_data->notif.noa_attr.len_low == in iwl_mvm_probe_resp_data_notif()
1524 new_data->noa_len -= sizeof(struct ieee80211_p2p_noa_desc); in iwl_mvm_probe_resp_data_notif()
1528 rcu_assign_pointer(mvmvif->probe_resp_data, new_data); in iwl_mvm_probe_resp_data_notif()
/drivers/cpufreq/
Dcpufreq.c2538 struct cpufreq_policy_data new_data; in cpufreq_set_policy() local
2542 memcpy(&new_data.cpuinfo, &policy->cpuinfo, sizeof(policy->cpuinfo)); in cpufreq_set_policy()
2543 new_data.freq_table = policy->freq_table; in cpufreq_set_policy()
2544 new_data.cpu = policy->cpu; in cpufreq_set_policy()
2549 new_data.min = freq_qos_read_value(&policy->constraints, FREQ_QOS_MIN); in cpufreq_set_policy()
2550 new_data.max = freq_qos_read_value(&policy->constraints, FREQ_QOS_MAX); in cpufreq_set_policy()
2553 new_data.cpu, new_data.min, new_data.max); in cpufreq_set_policy()
2559 ret = cpufreq_driver->verify(&new_data); in cpufreq_set_policy()
2568 policy->min = new_data.min; in cpufreq_set_policy()
2569 policy->max = new_data.max; in cpufreq_set_policy()
/drivers/video/fbdev/core/
Dfbcon.c2490 u8 *new_data, *data = font->data; in fbcon_set_font() local
2517 new_data = kmalloc(FONT_EXTRA_WORDS * sizeof(int) + size, GFP_USER); in fbcon_set_font()
2519 if (!new_data) in fbcon_set_font()
2522 memset(new_data, 0, FONT_EXTRA_WORDS * sizeof(int)); in fbcon_set_font()
2524 new_data += FONT_EXTRA_WORDS * sizeof(int); in fbcon_set_font()
2525 FNTSIZE(new_data) = size; in fbcon_set_font()
2526 REFCOUNT(new_data) = 0; /* usage counter */ in fbcon_set_font()
2528 memcpy(new_data + i*h*pitch, data + i*32*pitch, h*pitch); in fbcon_set_font()
2533 csum = crc32(0, new_data, size); in fbcon_set_font()
2535 FNTSUM(new_data) = csum; in fbcon_set_font()
[all …]
/drivers/net/ethernet/intel/ice/
Dice_common.c4608 u64 new_data = rd64(hw, reg) & (BIT_ULL(40) - 1); in ice_stat_update40() local
4616 *prev_stat = new_data; in ice_stat_update40()
4623 if (new_data >= *prev_stat) in ice_stat_update40()
4624 *cur_stat += new_data - *prev_stat; in ice_stat_update40()
4627 *cur_stat += (new_data + BIT_ULL(40)) - *prev_stat; in ice_stat_update40()
4630 *prev_stat = new_data; in ice_stat_update40()
4645 u32 new_data; in ice_stat_update32() local
4647 new_data = rd32(hw, reg); in ice_stat_update32()
4655 *prev_stat = new_data; in ice_stat_update32()
4662 if (new_data >= *prev_stat) in ice_stat_update32()
[all …]
/drivers/acpi/nfit/
Dintel.c148 const struct nvdimm_key_data *new_data, in intel_security_change_key() argument
174 memcpy(nd_cmd.cmd.new_pass, new_data->data, in intel_security_change_key()
/drivers/usb/gadget/
Dconfigfs.c1058 char *new_data; in ext_prop_data_store() local
1063 new_data = kmemdup(page, len, GFP_KERNEL); in ext_prop_data_store()
1064 if (!new_data) in ext_prop_data_store()
1070 ext_prop->data = new_data; in ext_prop_data_store()
/drivers/net/ethernet/mediatek/
Dmtk_eth_soc.c1286 u8 *data, *new_data; in mtk_poll_rx() local
1327 new_data = napi_alloc_frag(ring->frag_size); in mtk_poll_rx()
1329 new_data = mtk_max_lro_buf_alloc(GFP_ATOMIC); in mtk_poll_rx()
1330 if (unlikely(!new_data)) { in mtk_poll_rx()
1335 new_data + NET_SKB_PAD + in mtk_poll_rx()
1340 skb_free_frag(new_data); in mtk_poll_rx()
1381 ring->data[idx] = new_data; in mtk_poll_rx()
/drivers/net/wireless/intel/iwlwifi/
Diwl-dbg-tlv.c768 const __le32 *new_data = new_trig->data, *old_data = old_trig->data; in is_trig_data_contained() local
777 if (new_data[i] == old_data[j]) { in is_trig_data_contained()
/drivers/net/ethernet/broadcom/bnx2x/
Dbnx2x_cmn.c764 u8 *new_data, *data = rx_buf->data; in bnx2x_tpa_stop() local
776 new_data = bnx2x_frag_alloc(fp, GFP_ATOMIC); in bnx2x_tpa_stop()
782 if (likely(new_data)) in bnx2x_tpa_stop()
791 bnx2x_frag_free(fp, new_data); in bnx2x_tpa_stop()
815 rx_buf->data = new_data; in bnx2x_tpa_stop()
819 if (new_data) in bnx2x_tpa_stop()
820 bnx2x_frag_free(fp, new_data); in bnx2x_tpa_stop()
/drivers/net/ethernet/intel/i40e/
Di40e_main.c592 u64 new_data; in i40e_stat_update64() local
594 new_data = rd64(hw, loreg); in i40e_stat_update64()
596 if (!offset_loaded || new_data < *offset) in i40e_stat_update64()
597 *offset = new_data; in i40e_stat_update64()
598 *stat = new_data - *offset; in i40e_stat_update64()
619 u64 new_data; in i40e_stat_update48() local
622 new_data = rd32(hw, loreg); in i40e_stat_update48()
623 new_data |= ((u64)(rd32(hw, hireg) & 0xFFFF)) << 32; in i40e_stat_update48()
625 new_data = rd64(hw, loreg); in i40e_stat_update48()
628 *offset = new_data; in i40e_stat_update48()
[all …]
/drivers/net/ethernet/qlogic/qed/
Dqed_ll2.c148 u8 *new_data; in qed_ll2b_complete_rx_packet() local
171 rc = qed_ll2_alloc_buffer(p_hwfn->cdev, &new_data, in qed_ll2b_complete_rx_packet()
215 buffer->data = new_data; in qed_ll2b_complete_rx_packet()
/drivers/net/ethernet/broadcom/bnxt/
Dbnxt.c1662 u8 *new_data; in bnxt_tpa_end() local
1665 new_data = __bnxt_alloc_rx_data(bp, &new_mapping, GFP_ATOMIC); in bnxt_tpa_end()
1666 if (!new_data) { in bnxt_tpa_end()
1672 tpa_info->data = new_data; in bnxt_tpa_end()
1673 tpa_info->data_ptr = new_data + bp->rx_offset; in bnxt_tpa_end()