Searched refs:new (Results 1 - 25 of 205) sorted by relevance

123456789

/drivers/mtd/devices/
H A Dphram.c99 struct phram_mtd_list *new; local
102 new = kzalloc(sizeof(*new), GFP_KERNEL);
103 if (!new)
107 new->mtd.priv = ioremap(start, len);
108 if (!new->mtd.priv) {
114 new->mtd.name = name;
115 new->mtd.size = len;
116 new->mtd.flags = MTD_CAP_RAM;
117 new
[all...]
/drivers/pnp/isapnp/
H A Dproc.c32 loff_t new = -1; local
38 new = off;
41 new = file->f_pos + off;
44 new = 256 + off;
47 if (new < 0 || new > 256)
48 new = -EINVAL;
50 file->f_pos = new;
52 return new;
/drivers/mtd/
H A Dmtd_blkdevs.c336 int add_mtd_blktrans_dev(struct mtd_blktrans_dev *new) argument
338 struct mtd_blktrans_ops *tr = new->tr;
351 if (new->devnum == -1) {
355 new->devnum = last_devnum+1;
356 list_add_tail(&new->list, &d->list);
359 } else if (d->devnum == new->devnum) {
363 } else if (d->devnum > new->devnum) {
365 list_add_tail(&new->list, &d->list);
372 if (new->devnum == -1)
373 new
[all...]
/drivers/scsi/sym53c8xx_2/
H A Dsym_misc.h65 static inline void __sym_que_add(struct sym_quehead * new, argument
69 flink->blink = new;
70 new->flink = flink;
71 new->blink = blink;
72 blink->flink = new;
126 #define sym_insque(new, pos) __sym_que_add(new, pos, (pos)->flink)
130 #define sym_insque_head(new, head) __sym_que_add(new, head, (head)->flink)
143 #define sym_insque_tail(new, hea
[all...]
H A Dsym_fw.c367 u32 opcode, new, old, tmp1, tmp2; local
522 new = (old & ~RELOC_MASK) + np->mmio_ba;
525 new = (old & ~RELOC_MASK) + np->scripta_ba;
528 new = (old & ~RELOC_MASK) + np->scriptb_ba;
531 new = (old & ~RELOC_MASK) + np->hcb_ba;
540 new = old;
545 new = 0;
551 *cur++ = cpu_to_scr(new);
/drivers/iommu/
H A Diova.c48 unsigned long limit_pfn, struct iova *new)
52 iovad->cached32_node = &new->node;
95 struct iova *new, bool size_aligned)
137 new->pfn_lo = limit_pfn - (size + pad_size) + 1;
138 new->pfn_hi = new->pfn_lo + size - 1;
141 /* Add new node and rebalance tree. */
152 /* Figure out where to put new node */
158 if (new->pfn_lo < this->pfn_lo)
160 else if (new
47 __cached_rbnode_insert_update(struct iova_domain *iovad, unsigned long limit_pfn, struct iova *new) argument
93 __alloc_and_insert_iova_range(struct iova_domain *iovad, unsigned long size, unsigned long limit_pfn, struct iova *new, bool size_aligned) argument
181 struct rb_node **new = &(root->rb_node), *parent = NULL; local
[all...]
H A Domap-iovmm.c162 struct vm_struct *new; local
173 new = __get_vm_area(total, VM_IOREMAP, VMALLOC_START, VMALLOC_END);
174 if (!new)
176 va = (u32)new->addr;
195 flush_cache_vmap((unsigned long)new->addr,
196 (unsigned long)(new->addr + total));
197 return new->addr;
201 vunmap(new->addr);
254 * in iovmas mmap, and returns the new allocated iovma.
259 struct iovm_struct *new, *tm local
409 map_iovm_area(struct iommu_domain *domain, struct iovm_struct *new, const struct sg_table *sgt, u32 flags) argument
544 struct iovm_struct *new; local
[all...]
/drivers/net/irda/
H A Dsir_dongle.c33 int irda_register_dongle(struct dongle_driver *new) argument
39 __func__, new->driver_name, new->type);
44 if (new->type == drv->type) {
49 list_add(&new->dongle_list, &dongle_list);
/drivers/pci/pcie/aer/
H A Daerdrv.h88 enum pci_ers_result new)
90 if (new == PCI_ERS_RESULT_NONE)
96 orig = new;
99 if (new == PCI_ERS_RESULT_NEED_RESET)
100 orig = new;
87 merge_result(enum pci_ers_result orig, enum pci_ers_result new) argument
/drivers/cpufreq/
H A Domap-cpufreq.c101 freqs.new = freq_table[i].frequency;
102 if (!freqs.new) {
111 if (freqs.old == freqs.new && policy->cur == freqs.new)
120 freq = freqs.new * 1000;
126 __func__, freqs.new);
136 freqs.new / 1000, volt ? volt / 1000 : -1);
139 if (mpu_reg && (freqs.new > freqs.old)) {
144 freqs.new = freqs.old;
149 ret = clk_set_rate(mpu_clk, freqs.new * 100
[all...]
H A Ds3c64xx-cpufreq.c89 freqs.new = s3c64xx_freq_table[i].frequency;
93 if (freqs.old == freqs.new)
96 pr_debug("Transition %d-%dkHz\n", freqs.old, freqs.new);
101 if (vddarm && freqs.new > freqs.old) {
107 freqs.new, ret);
113 ret = clk_set_rate(armclk, freqs.new * 1000);
116 freqs.new, ret);
123 if (vddarm && freqs.new < freqs.old) {
129 freqs.new, ret);
/drivers/gpu/drm/
H A Ddrm_lock.c187 unsigned int old, new, prev; local
194 new = old | _DRM_LOCK_CONT;
196 new = context | _DRM_LOCK_HELD |
200 prev = cmpxchg(lock, old, new);
214 if ((_DRM_LOCKING_CONTEXT(new)) == context && (new & _DRM_LOCK_HELD)) {
236 unsigned int old, new, prev; local
242 new = context | _DRM_LOCK_HELD;
243 prev = cmpxchg(lock, old, new);
261 unsigned int old, new, pre local
302 unsigned int old, new, prev; local
[all...]
/drivers/media/video/saa7134/
H A Dsaa6752hs.c423 int old = 0, new; local
425 new = ctrl->value;
429 if (set && new != old)
431 new = old;
435 if (set && new > MPEG_PID_MAX)
437 if (new > MPEG_PID_MAX)
438 new = MPEG_PID_MAX;
439 params->ts_pid_pmt = new;
443 if (set && new > MPEG_PID_MAX)
445 if (new > MPEG_PID_MA
[all...]
/drivers/zorro/
H A Dproc.c24 loff_t new = -1; local
30 new = off;
33 new = file->f_pos + off;
36 new = sizeof(struct ConfigDev) + off;
39 if (new < 0 || new > sizeof(struct ConfigDev))
40 new = -EINVAL;
42 file->f_pos = new;
44 return new;
/drivers/lguest/
H A Dlguest_user.c52 * we'll continue to use the old array and just won't see the new one.
76 * add new eventfds without ever blocking readers from accessing the array.
81 * We allocate a brand new one-larger array, copy the old one and add our new
82 * element. Then we make the lg eventfd pointer point to the new array.
92 struct lg_eventfd_map *new, *old = lg->eventfds; local
102 * Replace the old array with the new one, carefully: others can
105 new = kmalloc(sizeof(*new) + sizeof(new
[all...]
/drivers/char/agp/
H A Dgeneric.c115 struct agp_memory *new; local
121 new = kzalloc(sizeof(struct agp_memory), GFP_KERNEL);
122 if (new == NULL)
125 new->key = agp_get_key();
127 if (new->key < 0) {
128 kfree(new);
132 agp_alloc_page_array(alloc_size, new);
134 if (new->pages == NULL) {
135 agp_free_key(new->key);
136 kfree(new);
145 struct agp_memory *new; local
238 struct agp_memory *new; local
1183 struct agp_memory *new; local
[all...]
/drivers/dma/
H A Dfsldma.c327 * pausing the channel, after which a new assertion of DREQ# resumes channel
549 struct fsl_desc_sw *new; local
556 new = fsl_dma_alloc_descriptor(chan);
557 if (!new) {
562 new->async_tx.cookie = -EBUSY;
563 new->async_tx.flags = flags;
566 list_add_tail(&new->node, &new->tx_list);
568 /* Set End-of-link to the last link descriptor of new list */
569 set_ld_eol(chan, new);
580 struct fsl_desc_sw *first = NULL, *prev = NULL, *new; local
644 struct fsl_desc_sw *first = NULL, *prev = NULL, *new = NULL; local
[all...]
/drivers/input/joystick/iforce/
H A Diforce-ff.c202 struct ff_effect *new)
207 if (new->type != FF_SPRING && new->type != FF_FRICTION) {
214 ret |= old->u.condition[i].right_saturation != new->u.condition[i].right_saturation
215 || old->u.condition[i].left_saturation != new->u.condition[i].left_saturation
216 || old->u.condition[i].right_coeff != new->u.condition[i].right_coeff
217 || old->u.condition[i].left_coeff != new->u.condition[i].left_coeff
218 || old->u.condition[i].deadband != new->u.condition[i].deadband
219 || old->u.condition[i].center != new->u.condition[i].center;
278 struct ff_effect *new)
200 need_condition_modifier(struct iforce *iforce, struct ff_effect *old, struct ff_effect *new) argument
277 need_period_modifier(struct iforce *iforce, struct ff_effect *old, struct ff_effect *new) argument
295 need_core(struct ff_effect *old, struct ff_effect *new) argument
[all...]
/drivers/watchdog/
H A Dmachzwd.c152 static inline void zf_set_status(unsigned char new) argument
154 zf_writeb(STATUS, new);
165 static inline void zf_set_control(unsigned short new) argument
167 zf_writew(CONTROL, new);
176 static inline void zf_set_timer(unsigned short new, unsigned char n) argument
180 zf_writew(COUNTER_1, new);
182 zf_writeb(COUNTER_2, new > 0xff ? 0xff : new);
/drivers/ide/
H A Dns87415.c126 unsigned int bit, other, new, *old = (unsigned int *) hwif->select_data; local
130 new = *old;
136 new &= ~bit;
138 new |= bit;
143 new = use_dma ? ((new & ~other) | bit) : (new & ~bit);
145 if (new != *old) {
158 *old = new;
159 (void) pci_write_config_dword(dev, 0x40, new);
[all...]
/drivers/pci/
H A Dsetup-res.c33 u32 new, check, mask; local
55 new = region.start | (res->flags & PCI_REGION_FLAG_MASK);
67 new |= PCI_ROM_ADDRESS_ENABLE;
70 pci_write_config_dword(dev, reg, new);
73 if ((new ^ check) & mask) {
75 resno, new, check);
79 new = region.start >> 16 >> 16;
80 pci_write_config_dword(dev, reg + 4, new);
82 if (check != new) {
84 "(high %#08x != %#08x)\n", resno, new, chec
[all...]
/drivers/gpu/drm/radeon/
H A Dmkregtable.c57 * Insert a new entry between two known consecutive entries.
63 static inline void __list_add(struct list_head *new, argument
66 next->prev = new;
67 new->next = next;
68 new->prev = prev;
69 prev->next = new;
72 extern void __list_add(struct list_head *new,
77 * list_add - add a new entry
78 * @new: new entr
84 list_add(struct list_head *new, struct list_head *head) argument
97 list_add_tail(struct list_head *new, struct list_head *head) argument
139 list_replace(struct list_head *old, struct list_head *new) argument
147 list_replace_init(struct list_head *old, struct list_head *new) argument
[all...]
/drivers/hid/usbhid/
H A Dusbkbd.c76 * new key is pressed or a key that was pressed is released.
83 * @new: Buffer for the @irq URB
102 unsigned char *new; member in struct:usb_kbd
131 input_report_key(kbd->dev, usb_kbd_keycode[i + 224], (kbd->new[0] >> i) & 1);
135 if (kbd->old[i] > 3 && memscan(kbd->new + 2, kbd->old[i], 6) == kbd->new + 8) {
144 if (kbd->new[i] > 3 && memscan(kbd->old + 2, kbd->new[i], 6) == kbd->old + 8) {
145 if (usb_kbd_keycode[kbd->new[i]])
146 input_report_key(kbd->dev, usb_kbd_keycode[kbd->new[
[all...]
/drivers/pci/pcie/
H A Dportdrv_core.c547 * @new: PCI Express port service driver to register
549 int pcie_port_service_register(struct pcie_port_service_driver *new) argument
554 new->driver.name = (char *)new->name;
555 new->driver.bus = &pcie_port_bus_type;
556 new->driver.probe = pcie_port_probe_service;
557 new->driver.remove = pcie_port_remove_service;
558 new->driver.shutdown = pcie_port_shutdown_service;
560 return driver_register(&new->driver);
/drivers/pci/hotplug/
H A Dcpqphp_sysfs.c171 loff_t new = -1; local
178 new = off;
181 new = file->f_pos + off;
184 if (new < 0 || new > dbg->size) {
189 return (file->f_pos = new);

Completed in 3725 milliseconds

123456789