Searched refs:new (Results 51 - 75 of 255) sorted by relevance

1234567891011

/drivers/base/
H A Dcomponent.c235 struct component_match *new; local
240 new = devm_kmalloc(dev, component_match_size(num), GFP_KERNEL);
241 if (!new)
245 memcpy(new, match, component_match_size(min(match->num, num)));
248 new->num = 0;
251 new->alloc = num;
253 return new;
/drivers/infiniband/hw/qib/
H A Dqib_pcie.c421 u16 cw, new; local
426 new = cw & ~PCI_COMMAND_INTX_DISABLE;
427 if (new != cw)
428 pci_write_config_word(pdev, PCI_COMMAND, new);
434 new = cw & ~PCI_MSI_FLAGS_ENABLE;
435 if (new != cw)
436 pci_write_config_word(pdev, pos + PCI_MSI_FLAGS, new);
442 new = cw & ~PCI_MSIX_FLAGS_ENABLE;
443 if (new != cw)
444 pci_write_config_word(pdev, pos + PCI_MSIX_FLAGS, new);
[all...]
/drivers/firewire/
H A Dcore-iso.c238 int try, new, old = allocate ? BANDWIDTH_AVAILABLE_INITIAL : 0; local
247 new = allocate ? old - bandwidth : old + bandwidth;
248 if (new < 0 || new > BANDWIDTH_AVAILABLE_INITIAL)
252 data[1] = cpu_to_be32(new);
H A Dnet.c305 /* Assumes that new fragment does not overlap any existing fragments */
309 struct fwnet_fragment_info *fi, *fi2, *new; local
315 /* The new fragment can be tacked on to the end */
316 /* Did the new fragment plug a hole? */
331 /* The new fragment can be tacked on to the beginning */
332 /* Did the new fragment plug a hole? */
358 new = kmalloc(sizeof(*new), GFP_ATOMIC);
359 if (!new)
362 new
373 struct fwnet_partial_datagram *new; local
[all...]
/drivers/uwb/
H A Dest.c220 void *new = kmalloc(2 * actual_size, GFP_ATOMIC); local
221 if (new == NULL)
223 memcpy(new, uwb_est, actual_size);
224 memset(new + actual_size, 0, actual_size);
226 uwb_est = new;
276 /* Shift others to make room for the new one? */
/drivers/gpu/drm/
H A Ddrm_mm.c497 * drm_mm_replace_node - move an allocation from @old to @new
499 * @new: drm_mm_node which should inherit @old's allocation
505 void drm_mm_replace_node(struct drm_mm_node *old, struct drm_mm_node *new) argument
507 list_replace(&old->node_list, &new->node_list);
508 list_replace(&old->hole_stack, &new->hole_stack);
509 new->hole_follows = old->hole_follows;
510 new->mm = old->mm;
511 new->start = old->start;
512 new->size = old->size;
513 new
[all...]
/drivers/net/ethernet/broadcom/bnx2x/
H A Dbnx2x_stats.h385 DIFF_64(diff.hi, new->s##_hi, pstats->mac_stx[0].t##_hi, \
386 diff.lo, new->s##_lo, pstats->mac_stx[0].t##_lo); \
387 pstats->mac_stx[0].t##_hi = new->s##_hi; \
388 pstats->mac_stx[0].t##_lo = new->s##_lo; \
395 DIFF_64(diff.hi, new->s##_hi, old->s##_hi, \
396 diff.lo, new->s##_lo, old->s##_lo); \
410 ADD_64(pstats->mac_stx[1].t##_hi, new->diff##_hi, \
411 pstats->mac_stx[1].t##_lo, new->diff##_lo); \
418 new->s); \
/drivers/pcmcia/
H A Dti113x.h296 u8 new, reg = exca_readb(socket, I365_INTCTL);
298 new = reg & ~I365_INTR_ENA;
300 new |= I365_INTR_ENA;
301 if (new != reg)
302 exca_writeb(socket, I365_INTCTL, new);
308 u8 new, reg = exca_readb(socket, I365_INTCTL);
310 new = reg & ~I365_INTR_ENA;
311 if (new != reg)
312 exca_writeb(socket, I365_INTCTL, new);
811 /* all new bridge
[all...]
/drivers/hwmon/
H A Dlm75.c190 int new; local
283 new = status & ~clr_mask;
284 new |= set_mask;
285 if (status != new)
286 lm75_write_value(client, LM75_REG_CONF, new);
287 dev_dbg(dev, "Config %02x\n", new);
/drivers/infiniband/hw/mlx4/
H A Dcm.c210 static void sl_id_map_add(struct ib_device *ibdev, struct id_map_entry *new) argument
215 int slave_id = new->slave_id;
216 int sl_cm_id = new->sl_cm_id;
223 rb_replace_node(&ent->node, &new->node, sl_id_map);
238 rb_link_node(&new->node, parent, link);
239 rb_insert_color(&new->node, sl_id_map);
/drivers/net/ethernet/mellanox/mlx5/core/
H A Dpagealloc.c108 struct rb_node **new = &root->rb_node; local
114 while (*new) {
115 parent = *new;
118 new = &parent->rb_left;
120 new = &parent->rb_right;
136 rb_link_node(&nfp->rb_node, parent, new);
/drivers/of/
H A Dselftest.c106 /* Add a new property - should pass*/
107 prop->name = "new-property";
108 prop->value = "new-property-data";
110 selftest(of_add_property(np, prop) == 0, "Adding a new property failed\n");
114 prop->name = "new-property";
115 prop->value = "new-property-data-should-fail";
432 struct property *new; local
434 new = __of_prop_dup(&p1, GFP_KERNEL);
435 selftest(new && propcmp(&p1, new), "empt
[all...]
/drivers/cpufreq/
H A Dblackfin-cpufreq.c115 unsigned long cpu_set_cclk(int cpu, unsigned long new) argument
124 ret = clk_set_rate(clk, new);
/drivers/gpu/drm/nouveau/
H A Dnouveau_abi16.c370 struct nvif_ioctl_new_v0 new; member in struct:__anon882
378 .new.route = NVDRM_OBJECT_ABI16,
379 .new.handle = init->handle,
380 .new.oclass = init->class,
411 struct nvif_ioctl_new_v0 new; member in struct:__anon883
420 .new.route = NVDRM_OBJECT_ABI16,
421 .new.handle = info->handle,
422 .new.oclass = NV_DMA_IN_MEMORY,
/drivers/net/ethernet/amd/
H A Dpcnet32.c62 * PCI device identifiers for "new style" Linux PCI Device Drivers
470 * Allocate space for the new sized tx ring.
472 * Save new resources.
528 * Allocate space for the new sized rx ring.
533 * Save new resources.
545 int new, overlap; local
565 for (new = 0; new < overlap; new++) {
566 new_rx_ring[new]
[all...]
/drivers/soc/ti/
H A Dknav_qmss_acc.c219 u32 old, new; local
233 new = old | BIT(queue);
235 new = old & ~BIT(queue);
236 acc->open_mask = new;
239 "setup-acc-irq: open mask old %08x, new %08x, channel %s\n",
240 old, new, acc->name);
242 if (likely(new == old))
245 if (new && !old) {
261 if (old && !new) {
/drivers/staging/lustre/lustre/ptlrpc/
H A Dptlrpcd.c116 # warning "fix this code to use new CPU partition APIs"
150 struct ptlrpc_request_set *new; local
154 new = pc->pc_set;
162 req->rq_set = new;
166 spin_lock(&new->set_new_req_lock);
167 list_splice_init(&set->set_requests, &new->set_new_requests);
169 count = atomic_add_return(i, &new->set_new_count);
171 spin_unlock(&new->set_new_req_lock);
173 wake_up(&new->set_waitq);
287 /* We should call lu_env_refill() before handling new request
[all...]
/drivers/tty/serial/
H A Dlantiq.c390 struct ktermios *new, struct ktermios *old)
399 cflag = new->c_cflag;
400 iflag = new->c_iflag;
410 new->c_cflag &= ~ CSIZE;
411 new->c_cflag |= CS8;
457 baud = uart_get_baud_rate(port, new, old, 0, port->uartclk / 16);
470 /* now we can write the new baudrate into the register */
482 if (tty_termios_baud_rate(new))
483 tty_termios_encode_baud_rate(new, baud, baud);
389 lqasc_set_termios(struct uart_port *port, struct ktermios *new, struct ktermios *old) argument
/drivers/usb/core/
H A DKconfig5 bool "USB announce new devices"
9 strings for every new USB device to the syslog. This option is
/drivers/gpio/
H A Dgpio-tc3589x.c154 u8 new = tc3589x_gpio->regs[i][j]; local
156 if (new == old)
159 tc3589x_gpio->oldregs[i][j] = new;
160 tc3589x_reg_write(tc3589x, regmap[i] + j * 8, new);
/drivers/isdn/
H A DKconfig36 ISDN support in the linux kernel is moving towards a new API,
40 supported by the new CAPI subsystem yet.
/drivers/isdn/mISDN/
H A Ddsp_hwec.c42 .new = NULL,
/drivers/media/v4l2-core/
H A Dv4l2-event.c323 const struct v4l2_event *new)
327 old->u.src_change = new->u.src_change;
332 struct v4l2_event *new)
334 new->u.src_change.changes |= old->u.src_change.changes;
322 v4l2_event_src_replace(struct v4l2_event *old, const struct v4l2_event *new) argument
331 v4l2_event_src_merge(const struct v4l2_event *old, struct v4l2_event *new) argument
/drivers/net/wan/
H A Dhdlc_fr.c16 (exist,new) -> 0,0 when "PVC create" or if "link unreliable"
21 -> 1 when "PVC up" and (exist,new) = 1,0
24 (exist,new,active) = FULL STATUS if "link reliable"
28 exist = new = not used
127 unsigned int new: 1; member in struct:pvc_device::__anon4071
455 pvc->state.new ? " new" : "",
526 pvc->state.exist = pvc->state.new = 1;
532 pvc->state.exist && !pvc->state.new) {
547 if (pvc->state.new)
795 unsigned int active, new; local
[all...]
/drivers/oprofile/
H A Dbuffer_sync.c108 /* We need to be told about new modules so we don't attribute to a previously
494 struct task_struct *new; local
532 new = (struct task_struct *)val;
535 mm = take_tasks_mm(new);
538 add_user_ctx_switch(new, cookie);

Completed in 1367 milliseconds

1234567891011