/drivers/mtd/ |
D | mtd_blkdevs.c | 340 int add_mtd_blktrans_dev(struct mtd_blktrans_dev *new) in add_mtd_blktrans_dev() argument 342 struct mtd_blktrans_ops *tr = new->tr; in add_mtd_blktrans_dev() 355 if (new->devnum == -1) { in add_mtd_blktrans_dev() 359 new->devnum = last_devnum+1; in add_mtd_blktrans_dev() 360 list_add_tail(&new->list, &d->list); in add_mtd_blktrans_dev() 363 } else if (d->devnum == new->devnum) { in add_mtd_blktrans_dev() 367 } else if (d->devnum > new->devnum) { in add_mtd_blktrans_dev() 369 list_add_tail(&new->list, &d->list); in add_mtd_blktrans_dev() 376 if (new->devnum == -1) in add_mtd_blktrans_dev() 377 new->devnum = last_devnum+1; in add_mtd_blktrans_dev() [all …]
|
/drivers/mtd/devices/ |
D | phram.c | 93 struct phram_mtd_list *new; in register_device() local 96 new = kzalloc(sizeof(*new), GFP_KERNEL); in register_device() 97 if (!new) in register_device() 101 new->mtd.priv = ioremap(start, len); in register_device() 102 if (!new->mtd.priv) { in register_device() 108 new->mtd.name = name; in register_device() 109 new->mtd.size = len; in register_device() 110 new->mtd.flags = MTD_CAP_RAM; in register_device() 111 new->mtd._erase = phram_erase; in register_device() 112 new->mtd._point = phram_point; in register_device() [all …]
|
/drivers/md/ |
D | dm-cache-background-tracker.c | 84 struct rb_node **new = &b->pending.rb_node, *parent = NULL; in __insert_pending() local 86 while (*new) { in __insert_pending() 87 w = container_of(*new, struct bt_work, node); in __insert_pending() 89 parent = *new; in __insert_pending() 92 new = &((*new)->rb_left); in __insert_pending() 95 new = &((*new)->rb_right); in __insert_pending() 102 rb_link_node(&nw->node, parent, new); in __insert_pending() 113 struct rb_node **new = &b->pending.rb_node; in __find_pending() local 115 while (*new) { in __find_pending() 116 w = container_of(*new, struct bt_work, node); in __find_pending() [all …]
|
/drivers/char/agp/ |
D | generic.c | 98 struct agp_memory *new; in agp_create_user_memory() local 104 new = kzalloc(sizeof(struct agp_memory), GFP_KERNEL); in agp_create_user_memory() 105 if (new == NULL) in agp_create_user_memory() 108 new->key = agp_get_key(); in agp_create_user_memory() 110 if (new->key < 0) { in agp_create_user_memory() 111 kfree(new); in agp_create_user_memory() 115 agp_alloc_page_array(alloc_size, new); in agp_create_user_memory() 117 if (new->pages == NULL) { in agp_create_user_memory() 118 agp_free_key(new->key); in agp_create_user_memory() 119 kfree(new); in agp_create_user_memory() [all …]
|
/drivers/block/drbd/ |
D | drbd_interval.c | 27 struct rb_node **new = &root->rb_node, *parent = NULL; in drbd_insert_interval() local 32 while (*new) { in drbd_insert_interval() 34 rb_entry(*new, struct drbd_interval, rb); in drbd_insert_interval() 36 parent = *new; in drbd_insert_interval() 40 new = &(*new)->rb_left; in drbd_insert_interval() 42 new = &(*new)->rb_right; in drbd_insert_interval() 44 new = &(*new)->rb_left; in drbd_insert_interval() 46 new = &(*new)->rb_right; in drbd_insert_interval() 52 rb_link_node(&this->rb, parent, new); in drbd_insert_interval()
|
/drivers/misc/ocxl/ |
D | pasid.c | 28 struct id_range *cur, *new; in range_alloc() local 31 new = kmalloc(sizeof(struct id_range), GFP_KERNEL); in range_alloc() 32 if (!new) in range_alloc() 44 new->start = last_end + 1; in range_alloc() 45 new->end = new->start + size - 1; in range_alloc() 47 if (new->end > max_id) { in range_alloc() 48 kfree(new); in range_alloc() 51 list_add(&new->list, pos); in range_alloc() 52 rc = new->start; in range_alloc()
|
/drivers/firmware/efi/ |
D | memmap.c | 296 void *old, *new; in efi_memmap_insert() local 314 for (old = old_memmap->map, new = buf; in efi_memmap_insert() 316 old += old_memmap->desc_size, new += old_memmap->desc_size) { in efi_memmap_insert() 319 memcpy(new, old, old_memmap->desc_size); in efi_memmap_insert() 320 md = new; in efi_memmap_insert() 334 new += old_memmap->desc_size; in efi_memmap_insert() 335 memcpy(new, old, old_memmap->desc_size); in efi_memmap_insert() 336 md = new; in efi_memmap_insert() 347 new += old_memmap->desc_size; in efi_memmap_insert() 348 memcpy(new, old, old_memmap->desc_size); in efi_memmap_insert() [all …]
|
/drivers/media/common/ |
D | cx2341x.c | 1026 const struct cx2341x_mpeg_params *new) in cx2341x_update() argument 1038 cx2341x_api(priv, func, CX2341X_ENC_SET_OUTPUT_PORT, 2, new->port, 0); in cx2341x_update() 1041 CMP_FIELD(old, new, is_50hz)) { in cx2341x_update() 1043 new->is_50hz); in cx2341x_update() 1049 CMP_FIELD(old, new, width) || in cx2341x_update() 1050 CMP_FIELD(old, new, height) || in cx2341x_update() 1051 CMP_FIELD(old, new, video_encoding)) { in cx2341x_update() 1052 u16 w = new->width; in cx2341x_update() 1053 u16 h = new->height; in cx2341x_update() 1055 if (new->video_encoding == V4L2_MPEG_VIDEO_ENCODING_MPEG_1) { in cx2341x_update() [all …]
|
/drivers/dma/ |
D | mmp_pdma.c | 450 struct mmp_pdma_desc_sw *first = NULL, *prev = NULL, *new; in mmp_pdma_prep_memcpy() local 470 new = mmp_pdma_alloc_descriptor(chan); in mmp_pdma_prep_memcpy() 471 if (!new) { in mmp_pdma_prep_memcpy() 480 new->desc.dcmd = chan->dcmd | (DCMD_LENGTH & copy); in mmp_pdma_prep_memcpy() 481 new->desc.dsadr = dma_src; in mmp_pdma_prep_memcpy() 482 new->desc.dtadr = dma_dst; in mmp_pdma_prep_memcpy() 485 first = new; in mmp_pdma_prep_memcpy() 487 prev->desc.ddadr = new->async_tx.phys; in mmp_pdma_prep_memcpy() 489 new->async_tx.cookie = 0; in mmp_pdma_prep_memcpy() 490 async_tx_ack(&new->async_tx); in mmp_pdma_prep_memcpy() [all …]
|
/drivers/scsi/sym53c8xx_2/ |
D | sym_misc.h | 52 static inline void __sym_que_add(struct sym_quehead * new, in __sym_que_add() argument 56 flink->blink = new; in __sym_que_add() 57 new->flink = flink; in __sym_que_add() 58 new->blink = blink; in __sym_que_add() 59 blink->flink = new; in __sym_que_add() 113 #define sym_insque(new, pos) __sym_que_add(new, pos, (pos)->flink) argument 117 #define sym_insque_head(new, head) __sym_que_add(new, head, (head)->flink) argument 130 #define sym_insque_tail(new, head) __sym_que_add(new, (head)->blink, head) argument
|
/drivers/gpu/drm/ |
D | drm_lock.c | 62 unsigned int old, new, prev; in drm_lock_take() local 69 new = old | _DRM_LOCK_CONT; in drm_lock_take() 71 new = context | _DRM_LOCK_HELD | in drm_lock_take() 75 prev = cmpxchg(lock, old, new); in drm_lock_take() 89 if ((_DRM_LOCKING_CONTEXT(new)) == context && (new & _DRM_LOCK_HELD)) { in drm_lock_take() 111 unsigned int old, new, prev; in drm_lock_transfer() local 117 new = context | _DRM_LOCK_HELD; in drm_lock_transfer() 118 prev = cmpxchg(lock, old, new); in drm_lock_transfer() 126 unsigned int old, new, prev; in drm_legacy_lock_free() local 140 new = _DRM_LOCKING_CONTEXT(old); in drm_legacy_lock_free() [all …]
|
D | drm_vma_manager.c | 267 struct drm_vma_offset_file *new, *entry; in drm_vma_node_allow() local 274 new = kmalloc(sizeof(*entry), GFP_KERNEL); in drm_vma_node_allow() 294 if (!new) { in drm_vma_node_allow() 299 new->vm_tag = tag; in drm_vma_node_allow() 300 new->vm_count = 1; in drm_vma_node_allow() 301 rb_link_node(&new->vm_rb, parent, iter); in drm_vma_node_allow() 302 rb_insert_color(&new->vm_rb, &node->vm_files); in drm_vma_node_allow() 303 new = NULL; in drm_vma_node_allow() 307 kfree(new); in drm_vma_node_allow()
|
/drivers/gpu/drm/i915/gvt/ |
D | cfg_space.c | 72 u8 mask, new, old; in vgpu_pci_cfg_mem_write() local 79 new = src[i] & mask; in vgpu_pci_cfg_mem_write() 87 new = (~new & old) & mask; in vgpu_pci_cfg_mem_write() 89 cfg_base[off + i] = (old & ~mask) | new; in vgpu_pci_cfg_mem_write() 192 u8 new = *(u8 *)p_data; in emulate_pci_command_write() local 193 u8 changed = old ^ new; in emulate_pci_command_write() 223 u32 new = *(u32 *)(p_data); in emulate_pci_rom_bar_write() local 225 if ((new & PCI_ROM_ADDRESS_MASK) == PCI_ROM_ADDRESS_MASK) in emulate_pci_rom_bar_write() 236 u32 new = *(u32 *)(p_data); in emulate_pci_bar_write() local 251 if (new == 0xffffffff) { in emulate_pci_bar_write() [all …]
|
/drivers/input/joystick/iforce/ |
D | iforce-ff.c | 183 struct ff_effect *new) in need_condition_modifier() argument 188 if (new->type != FF_SPRING && new->type != FF_FRICTION) { in need_condition_modifier() 195 ret |= old->u.condition[i].right_saturation != new->u.condition[i].right_saturation in need_condition_modifier() 196 || old->u.condition[i].left_saturation != new->u.condition[i].left_saturation in need_condition_modifier() 197 || old->u.condition[i].right_coeff != new->u.condition[i].right_coeff in need_condition_modifier() 198 || old->u.condition[i].left_coeff != new->u.condition[i].left_coeff in need_condition_modifier() 199 || old->u.condition[i].deadband != new->u.condition[i].deadband in need_condition_modifier() 200 || old->u.condition[i].center != new->u.condition[i].center; in need_condition_modifier() 259 struct ff_effect *new) in need_period_modifier() argument 261 if (new->type != FF_PERIODIC) { in need_period_modifier() [all …]
|
/drivers/message/fusion/lsi/ |
D | mpi_history.txt | 47 * 12-04-00 01.01.02 Added new function codes. 81 * Added new function codes and new IOCStatus codes. 95 * 08-30-05 01.05.10 Added 2 new IOCStatus codes for Target. 148 * 06-26-03 01.02.08 Added new values to the product family defines. 152 * 08-19-04 01.05.01 Added four new fields to MSG_IOC_INIT. 153 * Added three new fields to MSG_IOC_FACTS_REPLY. 154 * Defined four new bits for the IOCCapabilities field of 156 * Added two new PortTypes for the PortFacts reply. 157 * Added six new events along with their EventData 159 * Added a new MsgFlag to the FwDownload request to [all …]
|
/drivers/dma/sh/ |
D | shdma-base.c | 507 struct shdma_desc *new; in shdma_add_desc() local 514 new = shdma_get_desc(schan); in shdma_add_desc() 515 if (!new) { in shdma_add_desc() 520 ops->desc_setup(schan, new, *src, *dst, ©_size); in shdma_add_desc() 524 new->async_tx.cookie = -EBUSY; in shdma_add_desc() 525 *first = new; in shdma_add_desc() 528 new->async_tx.cookie = -EINVAL; in shdma_add_desc() 533 copy_size, *len, src, dst, &new->async_tx, in shdma_add_desc() 534 new->async_tx.cookie); in shdma_add_desc() 536 new->mark = DESC_PREPARED; in shdma_add_desc() [all …]
|
/drivers/gpu/drm/msm/disp/dpu1/ |
D | dpu_core_perf.c | 327 struct dpu_core_perf_params *new, *old; in dpu_core_perf_crtc_update() local 353 new = &dpu_cstate->new_perf; in dpu_core_perf_crtc_update() 363 if ((params_changed && ((new->bw_ctl > old->bw_ctl) || in dpu_core_perf_crtc_update() 364 (new->max_per_pipe_ib > old->max_per_pipe_ib))) || in dpu_core_perf_crtc_update() 365 (!params_changed && ((new->bw_ctl < old->bw_ctl) || in dpu_core_perf_crtc_update() 366 (new->max_per_pipe_ib < old->max_per_pipe_ib)))) { in dpu_core_perf_crtc_update() 369 new->bw_ctl, old->bw_ctl); in dpu_core_perf_crtc_update() 370 old->bw_ctl = new->bw_ctl; in dpu_core_perf_crtc_update() 371 old->max_per_pipe_ib = new->max_per_pipe_ib; in dpu_core_perf_crtc_update() 376 (new->core_clk_rate > old->core_clk_rate)) || in dpu_core_perf_crtc_update() [all …]
|
/drivers/ide/ |
D | ns87415.c | 127 unsigned int bit, other, new, *old = (unsigned int *) hwif->select_data; in ns87415_prepare_drive() local 131 new = *old; in ns87415_prepare_drive() 137 new &= ~bit; in ns87415_prepare_drive() 139 new |= bit; in ns87415_prepare_drive() 144 new = use_dma ? ((new & ~other) | bit) : (new & ~bit); in ns87415_prepare_drive() 146 if (new != *old) { in ns87415_prepare_drive() 159 *old = new; in ns87415_prepare_drive() 160 (void) pci_write_config_dword(dev, 0x40, new); in ns87415_prepare_drive()
|
/drivers/target/ |
D | target_core_device.c | 289 target_luns_data_has_changed(struct se_node_acl *nacl, struct se_dev_entry *new, in target_luns_data_has_changed() argument 296 if (skip_new && tmp == new) in target_luns_data_has_changed() 312 struct se_dev_entry *orig, *new; in core_enable_device_list_for_node() local 314 new = kzalloc(sizeof(*new), GFP_KERNEL); in core_enable_device_list_for_node() 315 if (!new) { in core_enable_device_list_for_node() 320 spin_lock_init(&new->ua_lock); in core_enable_device_list_for_node() 321 INIT_LIST_HEAD(&new->ua_list); in core_enable_device_list_for_node() 322 INIT_LIST_HEAD(&new->lun_link); in core_enable_device_list_for_node() 324 new->mapped_lun = mapped_lun; in core_enable_device_list_for_node() 325 kref_init(&new->pr_kref); in core_enable_device_list_for_node() [all …]
|
/drivers/hid/usbhid/ |
D | usbkbd.c | 89 unsigned char *new; member 118 input_report_key(kbd->dev, usb_kbd_keycode[i + 224], (kbd->new[0] >> i) & 1); in usb_kbd_irq() 122 if (kbd->old[i] > 3 && memscan(kbd->new + 2, kbd->old[i], 6) == kbd->new + 8) { in usb_kbd_irq() 131 if (kbd->new[i] > 3 && memscan(kbd->old + 2, kbd->new[i], 6) == kbd->old + 8) { in usb_kbd_irq() 132 if (usb_kbd_keycode[kbd->new[i]]) in usb_kbd_irq() 133 input_report_key(kbd->dev, usb_kbd_keycode[kbd->new[i]], 1); in usb_kbd_irq() 137 kbd->new[i]); in usb_kbd_irq() 143 memcpy(kbd->old, kbd->new, 8); in usb_kbd_irq() 242 if (!(kbd->new = usb_alloc_coherent(dev, 8, GFP_ATOMIC, &kbd->new_dma))) in usb_kbd_alloc_mem() 256 usb_free_coherent(dev, 8, kbd->new, kbd->new_dma); in usb_kbd_free_mem() [all …]
|
/drivers/fpga/ |
D | dfl-afu-dma-region.c | 147 struct rb_node **new, *parent = NULL; in afu_dma_region_add() local 152 new = &afu->dma_regions.rb_node; in afu_dma_region_add() 154 while (*new) { in afu_dma_region_add() 157 this = container_of(*new, struct dfl_afu_dma_region, node); in afu_dma_region_add() 159 parent = *new; in afu_dma_region_add() 165 new = &((*new)->rb_left); in afu_dma_region_add() 167 new = &((*new)->rb_right); in afu_dma_region_add() 172 rb_link_node(®ion->node, parent, new); in afu_dma_region_add()
|
/drivers/net/wireless/ath/ath10k/ |
D | wow.c | 80 static void ath10k_wow_convert_8023_to_80211(struct cfg80211_pkt_pattern *new, in ath10k_wow_convert_8023_to_80211() argument 128 new->pkt_offset = old->pkt_offset + in ath10k_wow_convert_8023_to_80211() 131 new->pkt_offset = old->pkt_offset + in ath10k_wow_convert_8023_to_80211() 135 new->pkt_offset = old->pkt_offset + hdr_len + rfc_len - ETH_HLEN; in ath10k_wow_convert_8023_to_80211() 149 new->pattern_len = hdr_80211_end_offset - new->pkt_offset; in ath10k_wow_convert_8023_to_80211() 151 memcpy((u8 *)new->pattern, in ath10k_wow_convert_8023_to_80211() 152 hdr_80211_pattern + new->pkt_offset, in ath10k_wow_convert_8023_to_80211() 153 new->pattern_len); in ath10k_wow_convert_8023_to_80211() 154 memcpy((u8 *)new->mask, in ath10k_wow_convert_8023_to_80211() 155 hdr_80211_bit_mask + new->pkt_offset, in ath10k_wow_convert_8023_to_80211() [all …]
|
/drivers/acpi/ |
D | acpi_memhotplug.c | 64 struct acpi_memory_info *info, *new; in acpi_memory_get_resource() local 82 new = kzalloc(sizeof(struct acpi_memory_info), GFP_KERNEL); in acpi_memory_get_resource() 83 if (!new) in acpi_memory_get_resource() 86 INIT_LIST_HEAD(&new->list); in acpi_memory_get_resource() 87 new->caching = address64.info.mem.caching; in acpi_memory_get_resource() 88 new->write_protect = address64.info.mem.write_protect; in acpi_memory_get_resource() 89 new->start_addr = address64.address.minimum; in acpi_memory_get_resource() 90 new->length = address64.address.address_length; in acpi_memory_get_resource() 91 list_add_tail(&new->list, &mem_device->res_list); in acpi_memory_get_resource()
|
/drivers/gpu/drm/radeon/ |
D | mkregtable.c | 60 static inline void __list_add(struct list_head *new, in __list_add() argument 63 next->prev = new; in __list_add() 64 new->next = next; in __list_add() 65 new->prev = prev; in __list_add() 66 prev->next = new; in __list_add() 69 extern void __list_add(struct list_head *new, 81 static inline void list_add_tail(struct list_head *new, struct list_head *head) in list_add_tail() argument 83 __list_add(new, head->prev, head); in list_add_tail()
|
/drivers/gpu/drm/nouveau/nvkm/engine/disp/ |
D | gt200.c | 37 .head = { .cnt = nv50_head_cnt, .new = nv50_head_new }, 38 .dac = { .cnt = nv50_dac_cnt, .new = nv50_dac_new }, 39 .sor = { .cnt = nv50_sor_cnt, .new = g84_sor_new }, 40 .pior = { .cnt = nv50_pior_cnt, .new = nv50_pior_new },
|