Searched defs:cp (Results 1 - 25 of 158) sorted by relevance

1234567

/drivers/s390/char/
H A Dkeyboard.h52 kbd_puts_queue(struct tty_struct *tty, char *cp) argument
54 while (*cp)
55 tty_insert_flip_char(tty, *cp++, 0);
/drivers/usb/gadget/
H A Dconfig.c85 struct usb_config_descriptor *cp = buf; local
91 *cp = *config;
103 cp->bLength = USB_DT_CONFIG_SIZE;
104 cp->bDescriptorType = USB_DT_CONFIG;
105 cp->wTotalLength = cpu_to_le16(len);
106 cp->bmAttributes |= USB_CONFIG_ATT_ONE;
/drivers/isdn/gigaset/
H A Dasyncdata.c463 unsigned char *cp; local
469 cp = skb->data;
472 if (muststuff(*cp))
474 fcs = crc_ccitt_byte(fcs, *cp++);
540 unsigned char *cp; local
559 cp = skb->data;
562 c = bitrev8(*cp++);
/drivers/mtd/chips/
H A Dgen_probe.c17 struct chip_probe *cp);
18 static int genprobe_new_chip(struct map_info *map, struct chip_probe *cp,
21 struct mtd_info *mtd_do_chip_probe(struct map_info *map, struct chip_probe *cp) argument
27 cfi = genprobe_ident_chips(map, cp);
59 static struct cfi_private *genprobe_ident_chips(struct map_info *map, struct chip_probe *cp) argument
71 if (!genprobe_new_chip(map, cp, &cfi)) {
74 cp->name, map->name);
131 cp->probe_chip(map, i << cfi.chipshift, chip_map, &cfi);
167 static int genprobe_new_chip(struct map_info *map, struct chip_probe *cp, argument
188 if (cp
[all...]
/drivers/staging/cxt1e1/
H A Dhwprobe.c284 char *cp = hi->devname; local
286 strcpy (cp, KBUILD_MODNAME);
287 cp += strlen (cp); /* reposition */
288 *cp++ = '-';
289 *cp++ = '0' + (found / 2); /* there are two found interfaces per
291 *cp = 0; /* termination */
/drivers/tty/
H A Dn_tracerouter.c163 * @cp: buffer, block of characters to be eventually read by
166 * @count: number of characters (aka, bytes) in cp.
168 * This function takes the input buffer, cp, and passes it to
172 const unsigned char *cp,
176 n_tracesink_datadrain((u8 *) cp, count);
171 n_tracerouter_receivebuf(struct tty_struct *tty, const unsigned char *cp, char *fp, int count) argument
/drivers/char/
H A Dbriq_panel.c95 unsigned char cp; local
104 cp = ' ';
106 if (copy_to_user(buf, &cp, 1))
112 cp = '\r';
114 if (copy_to_user(buf, &cp, 1))
/drivers/input/serio/
H A Dserport.c123 static void serport_ldisc_receive(struct tty_struct *tty, const unsigned char *cp, char *fp, int count) argument
150 serio_interrupt(serport->serio, cp[i], ch_flags);
/drivers/isdn/divert/
H A Ddivert_procfs.c41 put_info_buffer(char *cp) argument
48 if (!cp)
50 if (!*cp)
52 if (!(ib = kmalloc(sizeof(struct divert_info) + strlen(cp), GFP_ATOMIC)))
54 strcpy(ib->info_start, cp); /* set output string */
188 char *cp; local
204 cp = divert_if.drv_to_name(dioctl.getid.drvid);
205 if (!cp)
207 if (!*cp)
209 strcpy(dioctl.getid.drvnam, cp);
[all...]
/drivers/isdn/hysdn/
H A Dhysdn_boot.c337 EvalSysrTokData(hysdn_card *card, unsigned char *cp, int len) argument
349 for (p = cp, crc = 0; p < (cp + len - 2); p++)
355 if (crc != *(cp + len - 1)) {
362 if (*cp == SYSR_TOK_END)
365 if (len < (*(cp + 1) + 2)) {
366 hysdn_addlog(card, "token 0x%x invalid length %d", *cp, *(cp + 1));
369 switch (*cp) {
371 if (*(cp
[all...]
H A Dhysdn_procconf.c55 unsigned char *cp = cnf->conf_line; local
59 hysdn_addlog(cnf->card, "conf line: %s", cp);
61 if (*cp == '-') { /* option */
62 cp++; /* point to option char */
64 if (*cp++ != 'c')
67 while ((*cp <= '9') && (*cp >= '0'))
68 i = i * 10 + *cp++ - '0'; /* get decimal number */
77 if (*cp == '*') { /* line to send */
79 hysdn_addlog(cnf->card, "conf chan=%d %s", cnf->channel, cp);
98 unsigned char ch, *cp; local
214 char *cp; local
234 char *cp, *tmp; local
[all...]
H A Dhysdn_proclog.c27 static void put_log_buffer(hysdn_card * card, char *cp);
72 char *cp; local
78 cp = pd->logtmp;
79 cp += sprintf(cp, "HYSDN: card %d ", card->myid);
82 cp += vsprintf(cp, fmt, args);
84 *cp++ = '\n';
85 *cp = 0;
101 put_log_buffer(hysdn_card * card, char *cp) argument
[all...]
/drivers/media/video/au0828/
H A Dau0828-core.c49 u16 index, unsigned char *cp, u16 size);
51 u16 index, unsigned char *cp, u16 size);
90 u16 index, unsigned char *cp, u16 size)
96 /* cp must be memory that has been allocated by kmalloc */
103 cp, size, 1000);
118 u16 index, unsigned char *cp, u16 size)
126 /* cp must be memory that has been allocated by kmalloc */
132 cp, size, 1000);
89 send_control_msg(struct au0828_dev *dev, u16 request, u32 value, u16 index, unsigned char *cp, u16 size) argument
117 recv_control_msg(struct au0828_dev *dev, u16 request, u32 value, u16 index, unsigned char *cp, u16 size) argument
/drivers/mtd/maps/
H A Dphysmap_of.c121 const char *cp; local
127 cp = of_get_property(dp, "linux,part-probe", &cplen);
128 if (cp == NULL)
133 if (cp[l] == 0)
139 res[count] = cp;
140 l = strlen(cp) + 1;
141 cp += l;
/drivers/s390/cio/
H A Dccwreq.c78 struct ccw1 *cp = req->cp; local
89 rc = cio_start(sch, cp, (u8) req->mask);
H A Ddevice_id.c202 struct ccw1 *cp = cdev->private->iccws; local
209 cp->cmd_code = CCW_CMD_SENSE_ID;
210 cp->cda = (u32) (addr_t) &cdev->private->senseid;
211 cp->count = sizeof(struct senseid);
212 cp->flags = CCW_FLAG_SLI;
215 req->cp = cp;
/drivers/base/
H A Dclass.c30 struct subsys_private *cp = to_subsys_private(kobj); local
34 ret = class_attr->show(cp->class, class_attr, buf);
42 struct subsys_private *cp = to_subsys_private(kobj); local
46 ret = class_attr->store(cp->class, class_attr, buf, count);
54 struct subsys_private *cp = to_subsys_private(kobj); local
58 ns = class_attr->namespace(cp->class, class_attr);
64 struct subsys_private *cp = to_subsys_private(kobj); local
65 struct class *class = cp->class;
75 kfree(cp);
80 struct subsys_private *cp local
178 struct subsys_private *cp; local
[all...]
/drivers/base/power/
H A Dsysfs.c114 char *cp; local
117 cp = memchr(buf, '\n', n);
118 if (cp)
119 len = cp - buf;
235 char *cp; local
241 cp = memchr(buf, '\n', n);
242 if (cp)
243 len = cp - buf;
421 char *cp; local
424 cp
[all...]
/drivers/gpu/drm/nouveau/
H A Dnv40_graph.c188 uint32_t vramsz, *cp; local
196 cp = kmalloc(sizeof(*cp) * 256, GFP_KERNEL);
197 if (!cp)
202 ctx.data = cp;
209 nv_wr32(dev, NV40_PGRAPH_CTXCTL_UCODE_DATA, cp[i]);
211 kfree(cp);
/drivers/infiniband/hw/qib/
H A Dqib_qsfp.c271 int qib_refresh_qsfp_cache(struct qib_pportdata *ppd, struct qib_qsfp_cache *cp) argument
279 memset(cp, 0, sizeof(*cp));
308 ret = qsfp_read(ppd, QSFP_MOD_ID_OFFS, &cp->id, 1);
311 if ((cp->id & 0xFE) != 0x0C)
313 "QSFP ID byte is 0x%02X, S/B 0x0C/D\n", cp->id);
314 cks = cp->id;
316 ret = qsfp_read(ppd, QSFP_MOD_PWR_OFFS, &cp->pwr, 1);
319 cks += cp->pwr;
326 ret = qsfp_read(ppd, QSFP_MOD_LEN_OFFS, &cp
[all...]
/drivers/isdn/pcbit/
H A Ddrv.c1000 char *cp, *sp; local
1024 cp=strchr(sp, ',');
1025 if (cp)
1026 len = cp - sp;
1057 } while(cp);
/drivers/media/video/cx231xx/
H A Dcx231xx-audio.c109 unsigned char *cp; local
141 cp = (unsigned char *)urb->transfer_buffer +
152 memcpy(runtime->dma_area + oldptr * stride, cp,
154 memcpy(runtime->dma_area, cp + cnt * stride,
157 memcpy(runtime->dma_area + oldptr * stride, cp,
197 unsigned char *cp; local
229 cp = (unsigned char *)urb->transfer_buffer;
236 memcpy(runtime->dma_area + oldptr * stride, cp,
238 memcpy(runtime->dma_area, cp + cnt * stride,
241 memcpy(runtime->dma_area + oldptr * stride, cp,
[all...]
/drivers/media/video/pvrusb2/
H A Dpvrusb2-context.c250 struct pvr2_channel *cp; local
254 for (cp = mp->mc_first; cp; cp = cp->mc_next) {
255 if (!cp->input_mask) continue;
256 tmsk &= cp->input_mask;
288 void pvr2_channel_init(struct pvr2_channel *cp,struct pvr2_context *mp) argument
291 cp->hdw = mp->hdw;
292 cp
305 pvr2_channel_disclaim_stream(struct pvr2_channel *cp) argument
314 pvr2_channel_done(struct pvr2_channel *cp) argument
336 pvr2_channel_limit_inputs(struct pvr2_channel *cp,unsigned int cmsk) argument
381 pvr2_channel_get_limited_inputs(struct pvr2_channel *cp) argument
387 pvr2_channel_claim_stream(struct pvr2_channel *cp, struct pvr2_context_stream *sp) argument
414 struct pvr2_ioread *cp; local
[all...]
H A Dpvrusb2-ioread.c53 static int pvr2_ioread_init(struct pvr2_ioread *cp) argument
57 cp->stream = NULL;
58 mutex_init(&cp->mutex);
61 cp->buffer_storage[idx] = kmalloc(BUFFER_SIZE,GFP_KERNEL);
62 if (!(cp->buffer_storage[idx])) break;
68 if (!(cp->buffer_storage[idx])) continue;
69 kfree(cp->buffer_storage[idx]);
76 static void pvr2_ioread_done(struct pvr2_ioread *cp) argument
80 pvr2_ioread_setup(cp,NULL);
82 if (!(cp
89 struct pvr2_ioread *cp; local
100 pvr2_ioread_destroy(struct pvr2_ioread *cp) argument
112 pvr2_ioread_set_sync_key(struct pvr2_ioread *cp, const char *sync_key_ptr, unsigned int sync_key_len) argument
140 pvr2_ioread_stop(struct pvr2_ioread *cp) argument
160 pvr2_ioread_start(struct pvr2_ioread *cp) argument
197 pvr2_ioread_get_stream(struct pvr2_ioread *cp) argument
202 pvr2_ioread_setup(struct pvr2_ioread *cp,struct pvr2_stream *sp) argument
243 pvr2_ioread_set_enabled(struct pvr2_ioread *cp,int fl) argument
258 pvr2_ioread_get_buffer(struct pvr2_ioread *cp) argument
309 pvr2_ioread_filter(struct pvr2_ioread *cp) argument
368 pvr2_ioread_avail(struct pvr2_ioread *cp) argument
404 pvr2_ioread_read(struct pvr2_ioread *cp,void __user *buf,unsigned int cnt) argument
[all...]
/drivers/media/video/tlg2300/
H A Dpd-alsa.c142 unsigned char *cp = urb->transfer_buffer; local
152 memcpy(runtime->dma_area + oldptr * stride, cp, cnt * stride);
153 memcpy(runtime->dma_area, (cp + cnt * stride),
156 memcpy(runtime->dma_area + oldptr * stride, cp, len * stride);

Completed in 525 milliseconds

1234567