Searched defs:inbuf (Results 1 - 25 of 32) sorted by relevance

12

/drivers/isdn/gigaset/
H A Dasyncdata.c49 static unsigned cmd_loop(unsigned numbytes, struct inbuf_t *inbuf) argument
51 unsigned char *src = inbuf->data + inbuf->head;
52 struct cardstate *cs = inbuf->cs;
86 if (cs->dle && !(inbuf->inputstate & INS_DLE_command))
87 inbuf->inputstate &= ~INS_command;
93 if (inbuf->inputstate & INS_DLE_char) {
95 inbuf->inputstate &= ~INS_DLE_char;
97 (inbuf->inputstate & INS_DLE_command)) {
99 inbuf
121 lock_loop(unsigned numbytes, struct inbuf_t *inbuf) argument
138 hdlc_loop(unsigned numbytes, struct inbuf_t *inbuf) argument
285 iraw_loop(unsigned numbytes, struct inbuf_t *inbuf) argument
338 handle_dle(struct inbuf_t *inbuf) argument
407 gigaset_m10x_input(struct inbuf_t *inbuf) argument
[all...]
H A Disocdata.c894 static void cmd_loop(unsigned char *src, int numbytes, struct inbuf_t *inbuf) argument
896 struct cardstate *cs = inbuf->cs;
941 void gigaset_isoc_input(struct inbuf_t *inbuf) argument
943 struct cardstate *cs = inbuf->cs;
947 head = inbuf->head;
948 while (head != (tail = inbuf->tail)) {
952 src = inbuf->data + head;
959 gigaset_if_receive(inbuf->cs, src, numbytes);
961 cmd_loop(src, numbytes, inbuf);
968 inbuf
[all...]
H A Dser-gigaset.c686 struct inbuf_t *inbuf; local
690 inbuf = cs->inbuf;
691 if (!inbuf) {
692 dev_err(cs->dev, "%s: no inbuf\n", __func__);
697 tail = inbuf->tail;
698 head = inbuf->head;
705 memcpy(inbuf->data + tail, buf, n);
716 "inbuf overflow, discarding %d bytes\n",
720 memcpy(inbuf
[all...]
H A Dcommon.c510 gig_dbg(DEBUG_INIT, "freeing inbuf");
511 kfree(cs->inbuf);
549 static void gigaset_inbuf_init(struct inbuf_t *inbuf, struct cardstate *cs) argument
550 /* inbuf->read must be allocated before! */
552 inbuf->head = 0;
553 inbuf->tail = 0;
554 inbuf->cs = cs;
555 inbuf->inputstate = INS_command;
560 * @inbuf: buffer structure.
566 int gigaset_fill_inbuf(struct inbuf_t *inbuf, cons argument
[all...]
H A Dusb-gigaset.c354 struct inbuf_t *inbuf = cs->inbuf; local
372 if (gigaset_fill_inbuf(inbuf, src, numbytes)) {
374 gigaset_schedule_event(inbuf->cs);
H A Dbas-gigaset.c475 * urb->context = inbuf structure for controller state
479 struct inbuf_t *inbuf = urb->context; local
480 struct cardstate *cs = inbuf->cs;
501 /* copy received bytes to inbuf, notify event layer */
502 if (gigaset_fill_inbuf(inbuf, ucs->rcvbuf, numbytes)) {
585 read_ctrl_callback, cs->inbuf);
/drivers/hid/usbhid/
H A Dusbhid.h70 char *inbuf; /* Input buffer */ member in struct:usbhid_device
/drivers/ide/
H A Dide-taskfile.c474 u8 *inbuf = NULL; local
510 inbuf = kzalloc(taskin, GFP_KERNEL);
511 if (inbuf == NULL) {
515 if (copy_from_user(inbuf, buf + intotal, taskin)) {
614 data_buf = inbuf;
662 if (copy_to_user(buf + intotal, inbuf, taskin)) {
670 kfree(inbuf);
/drivers/iio/dac/
H A Dmcp4725.c286 u8 inbuf[3]; local
311 err = i2c_master_recv(client, inbuf, 3);
316 pd = (inbuf[0] >> 1) & 0x3;
319 data->dac_value = (inbuf[1] << 4) | (inbuf[2] >> 4);
H A Dmax5821.c178 u8 inbuf[2]; local
197 ret = i2c_master_recv(client, inbuf, 2);
208 *val = ((inbuf[0] & 0x0f) << 6) | (inbuf[1] >> 2);
/drivers/platform/olpc/
H A Dolpc-ec.c22 u8 *inbuf, *outbuf; member in struct:ec_cmd_desc
86 desc->err = ec_driver->ec_cmd(desc->cmd, desc->inbuf, desc->inlen,
115 int olpc_ec_cmd(u8 cmd, u8 *inbuf, size_t inlen, u8 *outbuf, size_t outlen) argument
134 desc.inbuf = inbuf;
/drivers/media/rc/
H A Dati_remote.c256 unsigned char *inbuf; member in struct:ati_remote
489 unsigned char *data= ati_remote->inbuf;
694 ati_remote->inbuf = usb_alloc_coherent(udev, DATA_BUFSIZE, GFP_ATOMIC,
696 if (!ati_remote->inbuf)
724 ati_remote->inbuf, ati_remote->inbuf_dma);
787 usb_fill_int_urb(ati_remote->irq_urb, udev, pipe, ati_remote->inbuf,
/drivers/net/wan/
H A Dsdla.c430 void *inbuf, short inlen, void *outbuf, short *outlen)
453 if (inbuf)
454 memcpy(cmd_buf->data, inbuf, inlen);
429 sdla_cmd(struct net_device *dev, int cmd, short dlci, short flags, void *inbuf, short inlen, void *outbuf, short *outlen) argument
/drivers/s390/block/
H A Ddcssblk.c321 dcssblk_shared_store(struct device *dev, struct device_attribute *attr, const char *inbuf, size_t count) argument
327 if ((count > 1) && (inbuf[1] != '\n') && (inbuf[1] != '\0'))
335 if (inbuf[0] == '1') {
353 } else if (inbuf[0] == '0') {
425 dcssblk_save_store(struct device *dev, struct device_attribute *attr, const char *inbuf, size_t count) argument
430 if ((count > 1) && (inbuf[1] != '\n') && (inbuf[1] != '\0'))
435 if (inbuf[0] == '1') {
451 } else if (inbuf[
[all...]
/drivers/staging/comedi/drivers/
H A Dusbduxfast.c153 int8_t *inbuf; member in struct:usbduxfast_private
350 devpriv->inbuf, SIZEINBUF,
886 devpriv->inbuf, SIZEINBUF,
897 devpriv->inbuf, SIZEINBUF,
911 data[i] = ((uint16_t *) (devpriv->inbuf))[j];
1064 devpriv->inbuf = kmalloc(SIZEINBUF, GFP_KERNEL);
1065 if (!devpriv->inbuf)
1092 kfree(devpriv->inbuf);
1093 devpriv->inbuf = NULL;
/drivers/usb/class/
H A Dcdc-wdm.c74 u8 *inbuf; /* buffer for response */ member in struct:wdm_device
198 memmove(desc->ubuf + desc->length, desc->inbuf, length);
318 kfree(desc->inbuf);
805 desc->inbuf = kmalloc(desc->wMaxCommand, GFP_KERNEL);
806 if (!desc->inbuf)
832 desc->inbuf,
/drivers/hid/i2c-hid/
H A Di2c-hid.c139 char *inbuf; /* Input buffer */ member in struct:i2c_hid
374 ret = i2c_master_recv(ihid->client, ihid->inbuf, size);
384 ret_size = ihid->inbuf[0] | ihid->inbuf[1] << 8;
399 i2c_hid_dbg(ihid, "input: %*ph\n", ret_size, ihid->inbuf);
402 hid_input_report(ihid->hid, HID_INPUT_REPORT, ihid->inbuf + 2,
440 i2c_hid_dbg(ihid, "report (len=%d): %*ph\n", size, size, ihid->inbuf);
464 u8 *inbuf = kzalloc(ihid->bufsize, GFP_KERNEL); local
466 if (!inbuf) {
479 i2c_hid_init_report(report, inbuf, ihi
[all...]
/drivers/infiniband/core/
H A Ducm.c385 const char __user *inbuf,
396 if (copy_from_user(&cmd, inbuf, sizeof(cmd)))
470 const char __user *inbuf,
481 if (copy_from_user(&cmd, inbuf, sizeof(cmd)))
517 const char __user *inbuf,
528 if (copy_from_user(&cmd, inbuf, sizeof(cmd)))
562 const char __user *inbuf,
573 if (copy_from_user(&cmd, inbuf, sizeof(cmd)))
594 const char __user *inbuf,
606 if (copy_from_user(&cmd, inbuf, sizeo
384 ib_ucm_event(struct ib_ucm_file *file, const char __user *inbuf, int in_len, int out_len) argument
469 ib_ucm_create_id(struct ib_ucm_file *file, const char __user *inbuf, int in_len, int out_len) argument
516 ib_ucm_destroy_id(struct ib_ucm_file *file, const char __user *inbuf, int in_len, int out_len) argument
561 ib_ucm_attr_id(struct ib_ucm_file *file, const char __user *inbuf, int in_len, int out_len) argument
593 ib_ucm_init_qp_attr(struct ib_ucm_file *file, const char __user *inbuf, int in_len, int out_len) argument
642 ib_ucm_listen(struct ib_ucm_file *file, const char __user *inbuf, int in_len, int out_len) argument
668 ib_ucm_notify(struct ib_ucm_file *file, const char __user *inbuf, int in_len, int out_len) argument
731 ib_ucm_send_req(struct ib_ucm_file *file, const char __user *inbuf, int in_len, int out_len) argument
789 ib_ucm_send_rep(struct ib_ucm_file *file, const char __user *inbuf, int in_len, int out_len) argument
829 ib_ucm_send_private_data(struct ib_ucm_file *file, const char __user *inbuf, int in_len, int (*func)(struct ib_cm_id *cm_id, const void *private_data, u8 private_data_len)) argument
858 ib_ucm_send_rtu(struct ib_ucm_file *file, const char __user *inbuf, int in_len, int out_len) argument
865 ib_ucm_send_dreq(struct ib_ucm_file *file, const char __user *inbuf, int in_len, int out_len) argument
872 ib_ucm_send_drep(struct ib_ucm_file *file, const char __user *inbuf, int in_len, int out_len) argument
879 ib_ucm_send_info(struct ib_ucm_file *file, const char __user *inbuf, int in_len, int (*func)(struct ib_cm_id *cm_id, int status, const void *info, u8 info_len, const void *data, u8 data_len)) argument
919 ib_ucm_send_rej(struct ib_ucm_file *file, const char __user *inbuf, int in_len, int out_len) argument
926 ib_ucm_send_apr(struct ib_ucm_file *file, const char __user *inbuf, int in_len, int out_len) argument
933 ib_ucm_send_mra(struct ib_ucm_file *file, const char __user *inbuf, int in_len, int out_len) argument
960 ib_ucm_send_lap(struct ib_ucm_file *file, const char __user *inbuf, int in_len, int out_len) argument
994 ib_ucm_send_sidr_req(struct ib_ucm_file *file, const char __user *inbuf, int in_len, int out_len) argument
1035 ib_ucm_send_sidr_rep(struct ib_ucm_file *file, const char __user *inbuf, int in_len, int out_len) argument
[all...]
H A Ducma.c292 static ssize_t ucma_get_event(struct ucma_file *file, const char __user *inbuf, argument
303 if (copy_from_user(&cmd, inbuf, sizeof(cmd)))
368 static ssize_t ucma_create_id(struct ucma_file *file, const char __user *inbuf, argument
380 if (copy_from_user(&cmd, inbuf, sizeof(cmd)))
481 static ssize_t ucma_destroy_id(struct ucma_file *file, const char __user *inbuf, argument
492 if (copy_from_user(&cmd, inbuf, sizeof(cmd)))
515 static ssize_t ucma_bind_ip(struct ucma_file *file, const char __user *inbuf, argument
522 if (copy_from_user(&cmd, inbuf, sizeof(cmd)))
534 static ssize_t ucma_bind(struct ucma_file *file, const char __user *inbuf, argument
542 if (copy_from_user(&cmd, inbuf, sizeo
558 ucma_resolve_ip(struct ucma_file *file, const char __user *inbuf, int in_len, int out_len) argument
580 ucma_resolve_addr(struct ucma_file *file, const char __user *inbuf, int in_len, int out_len) argument
607 ucma_resolve_route(struct ucma_file *file, const char __user *inbuf, int in_len, int out_len) argument
691 ucma_query_route(struct ucma_file *file, const char __user *inbuf, int in_len, int out_len) argument
873 ucma_query(struct ucma_file *file, const char __user *inbuf, int in_len, int out_len) argument
925 ucma_connect(struct ucma_file *file, const char __user *inbuf, int in_len, int out_len) argument
949 ucma_listen(struct ucma_file *file, const char __user *inbuf, int in_len, int out_len) argument
970 ucma_accept(struct ucma_file *file, const char __user *inbuf, int in_len, int out_len) argument
999 ucma_reject(struct ucma_file *file, const char __user *inbuf, int in_len, int out_len) argument
1018 ucma_disconnect(struct ucma_file *file, const char __user *inbuf, int in_len, int out_len) argument
1037 ucma_init_qp_attr(struct ucma_file *file, const char __user *inbuf, int in_len, int out_len) argument
1172 ucma_set_option(struct ucma_file *file, const char __user *inbuf, int in_len, int out_len) argument
1203 ucma_notify(struct ucma_file *file, const char __user *inbuf, int in_len, int out_len) argument
1281 ucma_join_ip_multicast(struct ucma_file *file, const char __user *inbuf, int in_len, int out_len) argument
1301 ucma_join_multicast(struct ucma_file *file, const char __user *inbuf, int in_len, int out_len) argument
1313 ucma_leave_multicast(struct ucma_file *file, const char __user *inbuf, int in_len, int out_len) argument
1394 ucma_migrate_id(struct ucma_file *new_file, const char __user *inbuf, int in_len, int out_len) argument
[all...]
/drivers/net/ethernet/mellanox/mlx4/
H A Dport.c495 u8 *inbuf, *outbuf; local
508 inbuf = inmailbox->buf;
510 inbuf[0] = 1;
511 inbuf[1] = 1;
512 inbuf[2] = 1;
513 inbuf[3] = 1;
514 *(__be16 *) (&inbuf[16]) = cpu_to_be16(0x0015);
515 *(__be32 *) (&inbuf[20]) = cpu_to_be32(port);
/drivers/net/ethernet/sfc/
H A Dmcdi.c121 const efx_dword_t *inbuf, size_t inlen)
168 efx->type->mcdi_request(efx, hdr, hdr_len, inbuf, inlen);
617 const efx_dword_t *inbuf, size_t inlen,
623 rc = efx_mcdi_rpc_start(efx, cmd, inbuf, inlen);
634 const efx_dword_t *inbuf, size_t inlen,
638 return _efx_mcdi_rpc(efx, cmd, inbuf, inlen, outbuf, outlen,
651 const efx_dword_t *inbuf, size_t inlen,
655 return _efx_mcdi_rpc(efx, cmd, inbuf, inlen, outbuf, outlen,
660 const efx_dword_t *inbuf, size_t inlen)
676 efx_mcdi_send_request(efx, cmd, inbuf, inle
120 efx_mcdi_send_request(struct efx_nic *efx, unsigned cmd, const efx_dword_t *inbuf, size_t inlen) argument
616 _efx_mcdi_rpc(struct efx_nic *efx, unsigned cmd, const efx_dword_t *inbuf, size_t inlen, efx_dword_t *outbuf, size_t outlen, size_t *outlen_actual, bool quiet) argument
633 efx_mcdi_rpc(struct efx_nic *efx, unsigned cmd, const efx_dword_t *inbuf, size_t inlen, efx_dword_t *outbuf, size_t outlen, size_t *outlen_actual) argument
650 efx_mcdi_rpc_quiet(struct efx_nic *efx, unsigned cmd, const efx_dword_t *inbuf, size_t inlen, efx_dword_t *outbuf, size_t outlen, size_t *outlen_actual) argument
659 efx_mcdi_rpc_start(struct efx_nic *efx, unsigned cmd, const efx_dword_t *inbuf, size_t inlen) argument
680 _efx_mcdi_rpc_async(struct efx_nic *efx, unsigned int cmd, const efx_dword_t *inbuf, size_t inlen, size_t outlen, efx_mcdi_async_completer *complete, unsigned long cookie, bool quiet) argument
755 efx_mcdi_rpc_async(struct efx_nic *efx, unsigned int cmd, const efx_dword_t *inbuf, size_t inlen, size_t outlen, efx_mcdi_async_completer *complete, unsigned long cookie) argument
763 efx_mcdi_rpc_async_quiet(struct efx_nic *efx, unsigned int cmd, const efx_dword_t *inbuf, size_t inlen, size_t outlen, efx_mcdi_async_completer *complete, unsigned long cookie) argument
[all...]
/drivers/s390/char/
H A Dcon3215.c82 char *inbuf; /* pointer to input buffer */ member in struct:raw3215_info
162 ccw->cda = (__u32) __pa(raw->inbuf);
410 EBCASC(raw->inbuf, count);
411 cchar = ctrlchar_handle(raw->inbuf, count, tty);
424 (strncmp(raw->inbuf+count-2, "\252n", 2) &&
425 strncmp(raw->inbuf+count-2, "^n", 2)) ) {
427 raw->inbuf[count] = '\n';
431 tty_insert_flip_string(&raw->port, raw->inbuf,
668 info->inbuf = kzalloc(RAW3215_INBUF_SIZE, GFP_KERNEL | GFP_DMA);
669 if (!info->buffer || !info->inbuf) {
[all...]
/drivers/sbus/char/
H A Ductrl.c93 u8 *inbuf; member in struct:uctrl_txn
282 byte = (txn->inbuf[bytecnt] << 8);
310 txn.inbuf = NULL;
330 txn.inbuf = NULL;
/drivers/tty/hvc/
H A Dhvsi.c81 /* inbuf is for packet reassembly. leave a little room for leftovers. */
82 uint8_t inbuf[HVSI_MAX_PACKET + HVSI_MAX_READ]; member in struct:hvsi_struct
187 if (read_to != hp->inbuf)
188 memmove(hp->inbuf, read_to, remaining);
190 hp->inbuf_end = hp->inbuf + remaining;
402 uint8_t *packet = hp->inbuf;
787 hp->inbuf_end = hp->inbuf; /* discard remaining partial packets */
1203 hp->inbuf_end = hp->inbuf;
/drivers/char/
H A Dvirtio_console.c187 struct port_buffer *inbuf; member in struct:port
484 if (port->inbuf)
485 return port->inbuf;
535 port->inbuf = NULL;
550 port->inbuf = get_inbuf(port);
551 if (port->inbuf)
681 buf = port->inbuf;
702 port->inbuf = NULL;
1408 port->inbuf = NULL;
1788 port->inbuf
[all...]

Completed in 545 milliseconds

12