Home
last modified time | relevance | path

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

/drivers/video/console/
Dnewport_con.c507 unsigned char *new_data, *data = op->data, *p; in newport_set_font() local
515 if (!(new_data = kmalloc(FONT_EXTRA_WORDS * sizeof(int) + size, in newport_set_font()
518 new_data += FONT_EXTRA_WORDS * sizeof(int); in newport_set_font()
519 FNTSIZE(new_data) = size; in newport_set_font()
520 FNTCHARCNT(new_data) = op->charcount; in newport_set_font()
521 REFCOUNT(new_data) = 0; /* usage counter */ 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()
539 new_data = font_data[i]; in newport_set_font()
[all …]
Dfbcon.c2603 u8 *new_data, *data = font->data; in fbcon_set_font() local
2622 new_data = kmalloc(FONT_EXTRA_WORDS * sizeof(int) + size, GFP_USER); in fbcon_set_font()
2624 if (!new_data) in fbcon_set_font()
2627 new_data += FONT_EXTRA_WORDS * sizeof(int); in fbcon_set_font()
2628 FNTSIZE(new_data) = size; in fbcon_set_font()
2629 FNTCHARCNT(new_data) = charcount; in fbcon_set_font()
2630 REFCOUNT(new_data) = 0; /* usage counter */ in fbcon_set_font()
2632 memcpy(new_data + i*h*pitch, data + i*32*pitch, h*pitch); in fbcon_set_font()
2637 csum = crc32(0, new_data, size); in fbcon_set_font()
2639 FNTSUM(new_data) = csum; in fbcon_set_font()
[all …]
/drivers/net/wireless/iwlwifi/dvm/
Drx.c1012 struct iwl_wipan_noa_data *new_data, *old_data; in iwlagn_rx_noa_notification() local
1029 new_data = kmalloc(sizeof(*new_data) + len, GFP_ATOMIC); in iwlagn_rx_noa_notification()
1030 if (new_data) { in iwlagn_rx_noa_notification()
1031 new_data->length = len; in iwlagn_rx_noa_notification()
1032 new_data->data[0] = WLAN_EID_VENDOR_SPECIFIC; in iwlagn_rx_noa_notification()
1033 new_data->data[1] = len - 2; /* not counting EID, len */ in iwlagn_rx_noa_notification()
1034 new_data->data[2] = (WLAN_OUI_WFA >> 16) & 0xff; in iwlagn_rx_noa_notification()
1035 new_data->data[3] = (WLAN_OUI_WFA >> 8) & 0xff; in iwlagn_rx_noa_notification()
1036 new_data->data[4] = (WLAN_OUI_WFA >> 0) & 0xff; in iwlagn_rx_noa_notification()
1037 new_data->data[5] = WLAN_OUI_TYPE_WFA_P2P; in iwlagn_rx_noa_notification()
[all …]
/drivers/staging/comedi/
Ddrivers.c166 unsigned int new_data[2]; in insn_rw_emulate_bits() local
167 memset(new_data, 0, sizeof(new_data)); in insn_rw_emulate_bits()
177 new_data[0] = 1 << (chan - base_bitfield_channel); /* mask */ in insn_rw_emulate_bits()
178 new_data[1] = data[0] ? (1 << (chan - base_bitfield_channel)) in insn_rw_emulate_bits()
182 ret = s->insn_bits(dev, s, &new_insn, new_data); in insn_rw_emulate_bits()
187 data[0] = (new_data[1] >> (chan - base_bitfield_channel)) & 1; in insn_rw_emulate_bits()
/drivers/md/
Ddm-ioctl.c354 char *new_data, *old_name = NULL; in dm_hash_rename() local
363 new_data = kstrdup(new, GFP_KERNEL); in dm_hash_rename()
364 if (!new_data) in dm_hash_rename()
384 kfree(new_data); in dm_hash_rename()
396 kfree(new_data); in dm_hash_rename()
409 kfree(new_data); in dm_hash_rename()
414 __set_cell_uuid(hc, new_data); in dm_hash_rename()
416 old_name = __change_cell_name(hc, new_data); in dm_hash_rename()
849 char *new_data = (char *) param + param->data_start; in dev_rename() local
853 if (new_data < param->data || in dev_rename()
[all …]
/drivers/iio/common/st_sensors/
Dst_sensors_core.c27 u8 new_data; in st_sensors_write_data_with_mask() local
30 err = sdata->tf->read_byte(&sdata->tb, sdata->dev, reg_addr, &new_data); in st_sensors_write_data_with_mask()
34 new_data = ((new_data & (~mask)) | ((data << __ffs(mask)) & mask)); in st_sensors_write_data_with_mask()
35 err = sdata->tf->write_byte(&sdata->tb, sdata->dev, reg_addr, new_data); in st_sensors_write_data_with_mask()
/drivers/input/keyboard/
Dpmic8xxx-keypad.c190 u8 new_data[PM8XXX_MAX_ROWS]; in pmic8xxx_kp_read_data() local
192 rc = pmic8xxx_kp_read(kp, new_data, data_reg, read_rows); in pmic8xxx_kp_read_data()
198 new_data[row]); in pmic8xxx_kp_read_data()
199 state[row] = pmic8xxx_col_state(kp, new_data[row]); in pmic8xxx_kp_read_data()
/drivers/tty/
Dn_r3964.c1120 unsigned char *new_data; in r3964_write() local
1143 new_data = kmalloc(count + sizeof(struct r3964_block_header), in r3964_write()
1145 TRACE_M("r3964_write - kmalloc %p", new_data); in r3964_write()
1146 if (new_data == NULL) { in r3964_write()
1153 pHeader = (struct r3964_block_header *)new_data; in r3964_write()
1154 pHeader->data = new_data + sizeof(struct r3964_block_header); in r3964_write()
/drivers/tty/serial/
Dioc3_serial.c960 int new_parity = 0, new_parity_enable = 0, new_stop = 0, new_data = 8; in ioc3_change_speed() local
968 new_data = 5; in ioc3_change_speed()
971 new_data = 6; in ioc3_change_speed()
974 new_data = 7; in ioc3_change_speed()
977 new_data = 8; in ioc3_change_speed()
981 new_data = 5; in ioc3_change_speed()
1033 new_data, new_stop, new_parity_enable, new_parity, in ioc3_change_speed()
1037 new_data, /* byte size */ in ioc3_change_speed()
Dioc4_serial.c1689 int new_parity = 0, new_parity_enable = 0, new_stop = 0, new_data = 8; in ioc4_change_speed() local
1697 new_data = 5; in ioc4_change_speed()
1701 new_data = 6; in ioc4_change_speed()
1705 new_data = 7; in ioc4_change_speed()
1709 new_data = 8; in ioc4_change_speed()
1714 new_data = 5; in ioc4_change_speed()
1770 __func__, (void *)port, cflag, baud, new_data, new_stop, in ioc4_change_speed()
1774 new_data, /* byte size */ in ioc4_change_speed()
/drivers/net/ethernet/broadcom/bnx2x/
Dbnx2x_cmn.c686 u8 *new_data, *data = rx_buf->data; in bnx2x_tpa_stop() local
698 new_data = bnx2x_frag_alloc(fp); in bnx2x_tpa_stop()
704 if (likely(new_data)) in bnx2x_tpa_stop()
738 rx_buf->data = new_data; in bnx2x_tpa_stop()
742 bnx2x_frag_free(fp, new_data); in bnx2x_tpa_stop()