Searched refs:inbuf (Results 1 - 25 of 36) 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 Dcommon.c478 if (!cs->inbuf)
520 gig_dbg(DEBUG_INIT, "freeing inbuf");
521 kfree(cs->inbuf);
560 static void gigaset_inbuf_init(struct inbuf_t *inbuf, struct cardstate *cs) argument
561 /* inbuf->read must be allocated before! */
563 inbuf->head = 0;
564 inbuf->tail = 0;
565 inbuf->cs = cs;
566 inbuf->inputstate = INS_command;
571 * @inbuf
575 gigaset_fill_inbuf(struct inbuf_t *inbuf, const unsigned char *src, unsigned numbytes) argument
[all...]
H A Dser-gigaset.c683 struct inbuf_t *inbuf; local
687 inbuf = cs->inbuf;
688 if (!inbuf) {
689 dev_err(cs->dev, "%s: no inbuf\n", __func__);
694 tail = inbuf->tail;
695 head = inbuf->head;
702 memcpy(inbuf->data + tail, buf, n);
713 "inbuf overflow, discarding %d bytes\n",
717 memcpy(inbuf
[all...]
H A Dgigaset.h430 struct inbuf_t *inbuf; member in struct:cardstate
611 void (*handle_input)(struct inbuf_t *inbuf);
634 void gigaset_m10x_input(struct inbuf_t *inbuf);
645 void gigaset_isoc_input(struct inbuf_t *inbuf);
809 /* append received bytes to inbuf */
810 int gigaset_fill_inbuf(struct inbuf_t *inbuf, const unsigned char *src,
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 Dusb-gigaset.c354 struct inbuf_t *inbuf = cs->inbuf; local
372 if (gigaset_fill_inbuf(inbuf, src, numbytes)) {
374 gigaset_schedule_event(inbuf->cs);
/drivers/net/ethernet/sfc/
H A Dmcdi.c70 const u8 *inbuf, size_t inlen)
98 _efx_writed(efx, *((__le32 *)(inbuf + i)), pdu + 4 + i);
326 const u8 *inbuf, size_t inlen, u8 *outbuf, size_t outlen,
340 efx_mcdi_copyin(efx, cmd, inbuf, inlen);
613 u8 inbuf[MC_CMD_DRV_ATTACH_IN_LEN]; local
618 MCDI_SET_DWORD(inbuf, DRV_ATTACH_IN_NEW_STATE,
620 MCDI_SET_DWORD(inbuf, DRV_ATTACH_IN_UPDATE, 1);
622 rc = efx_mcdi_rpc(efx, MC_CMD_DRV_ATTACH, inbuf, sizeof(inbuf),
691 u8 inbuf[MC_CMD_LOG_CTRL_IN_LE local
69 efx_mcdi_copyin(struct efx_nic *efx, unsigned cmd, const u8 *inbuf, size_t inlen) argument
325 efx_mcdi_rpc(struct efx_nic *efx, unsigned cmd, const u8 *inbuf, size_t inlen, u8 *outbuf, size_t outlen, size_t *outlen_actual) argument
747 u8 inbuf[MC_CMD_NVRAM_INFO_IN_LEN]; local
776 u8 inbuf[MC_CMD_NVRAM_UPDATE_START_IN_LEN]; local
798 u8 inbuf[MC_CMD_NVRAM_READ_IN_LEN]; local
823 u8 inbuf[MC_CMD_NVRAM_WRITE_IN_LEN(EFX_MCDI_NVRAM_LEN_MAX)]; local
849 u8 inbuf[MC_CMD_NVRAM_ERASE_IN_LEN]; local
872 u8 inbuf[MC_CMD_NVRAM_UPDATE_FINISH_IN_LEN]; local
893 u8 inbuf[MC_CMD_NVRAM_TEST_IN_LEN]; local
946 u8 inbuf[MC_CMD_GET_ASSERTS_IN_LEN]; local
1002 u8 inbuf[MC_CMD_REBOOT_IN_LEN]; local
1027 u8 inbuf[MC_CMD_SET_ID_LED_IN_LEN]; local
1056 u8 inbuf[MC_CMD_REBOOT_IN_LEN]; local
1075 u8 inbuf[MC_CMD_WOL_FILTER_SET_IN_LEN]; local
1143 u8 inbuf[MC_CMD_WOL_FILTER_REMOVE_IN_LEN]; local
[all...]
H A Dmcdi_mac.c78 u8 inbuf[MC_CMD_MAC_STATS_IN_LEN]; local
90 MCDI_SET_DWORD(inbuf, MAC_STATS_IN_DMA_ADDR_LO, addr_lo);
91 MCDI_SET_DWORD(inbuf, MAC_STATS_IN_DMA_ADDR_HI, addr_hi);
92 cmd_ptr = (efx_dword_t *)MCDI_PTR(inbuf, MAC_STATS_IN_CMD);
101 MCDI_SET_DWORD(inbuf, MAC_STATS_IN_DMA_LEN, dma_len);
103 rc = efx_mcdi_rpc(efx, MC_CMD_MAC_STATS, inbuf, sizeof(inbuf),
H A Dmcdi_phy.c81 u8 inbuf[MC_CMD_SET_LINK_IN_LEN]; local
86 MCDI_SET_DWORD(inbuf, SET_LINK_IN_CAP, capabilities);
87 MCDI_SET_DWORD(inbuf, SET_LINK_IN_FLAGS, flags);
88 MCDI_SET_DWORD(inbuf, SET_LINK_IN_LOOPBACK_MODE, loopback_mode);
89 MCDI_SET_DWORD(inbuf, SET_LINK_IN_LOOPBACK_SPEED, loopback_speed);
91 rc = efx_mcdi_rpc(efx, MC_CMD_SET_LINK, inbuf, sizeof(inbuf),
132 u8 inbuf[MC_CMD_MDIO_READ_IN_LEN]; local
137 MCDI_SET_DWORD(inbuf, MDIO_READ_IN_BUS, bus);
138 MCDI_SET_DWORD(inbuf, MDIO_READ_IN_PRTA
160 u8 inbuf[MC_CMD_MDIO_WRITE_IN_LEN]; local
[all...]
H A Dmcdi_mon.c95 u8 inbuf[MC_CMD_READ_SENSORS_IN_LEN]; local
98 MCDI_SET_DWORD(inbuf, READ_SENSORS_IN_DMA_ADDR_LO,
100 MCDI_SET_DWORD(inbuf, READ_SENSORS_IN_DMA_ADDR_HI,
104 inbuf, sizeof(inbuf), NULL, 0, NULL);
H A Dsiena_sriov.c197 u8 inbuf[MC_CMD_SRIOV_IN_LEN]; local
203 MCDI_SET_DWORD(inbuf, SRIOV_IN_ENABLE, enable ? 1 : 0);
204 MCDI_SET_DWORD(inbuf, SRIOV_IN_VI_BASE, EFX_VI_BASE);
205 MCDI_SET_DWORD(inbuf, SRIOV_IN_VF_COUNT, efx->vf_count);
207 rc = efx_mcdi_rpc(efx, MC_CMD_SRIOV, inbuf, MC_CMD_SRIOV_IN_LEN,
240 u8 *inbuf, *record; local
252 inbuf = kzalloc(MCDI_CTL_SDU_LEN_MAX, GFP_KERNEL);
253 if (inbuf == NULL)
256 record = inbuf;
278 memcpy(inbuf
[all...]
/drivers/tty/hvc/
H A Dhvsi_lib.c70 struct hvsi_control *pkt = (struct hvsi_control *)pv->inbuf;
86 struct hvsi_query *pkt = (struct hvsi_query *)pv->inbuf;
111 (struct hvsi_query_response *)pv->inbuf;
128 if (pv->inbuf[0] < 0xfc) {
132 type = pv->inbuf[0];
133 len = pv->inbuf[1];
161 memmove(pv->inbuf, &pv->inbuf[len], pv->inbuf_len);
170 &pv->inbuf[pv->inbuf_len],
203 memcpy(&buf[read], &pv->inbuf[p
[all...]
H A Dhvsi.c82 /* inbuf is for packet reassembly. leave a little room for leftovers. */
83 uint8_t inbuf[HVSI_MAX_PACKET + HVSI_MAX_READ]; member in struct:hvsi_struct
188 if (read_to != hp->inbuf)
189 memmove(hp->inbuf, read_to, remaining);
191 hp->inbuf_end = hp->inbuf + remaining;
405 uint8_t *packet = hp->inbuf;
813 hp->inbuf_end = hp->inbuf; /* discard remaining partial packets */
1232 hp->inbuf_end = hp->inbuf;
/drivers/infiniband/core/
H A Ducm.c393 const char __user *inbuf,
405 if (copy_from_user(&cmd, inbuf, sizeof(cmd)))
479 const char __user *inbuf,
490 if (copy_from_user(&cmd, inbuf, sizeof(cmd)))
526 const char __user *inbuf,
537 if (copy_from_user(&cmd, inbuf, sizeof(cmd)))
571 const char __user *inbuf,
582 if (copy_from_user(&cmd, inbuf, sizeof(cmd)))
603 const char __user *inbuf,
615 if (copy_from_user(&cmd, inbuf, sizeo
392 ib_ucm_event(struct ib_ucm_file *file, const char __user *inbuf, int in_len, int out_len) argument
478 ib_ucm_create_id(struct ib_ucm_file *file, const char __user *inbuf, int in_len, int out_len) argument
525 ib_ucm_destroy_id(struct ib_ucm_file *file, const char __user *inbuf, int in_len, int out_len) argument
570 ib_ucm_attr_id(struct ib_ucm_file *file, const char __user *inbuf, int in_len, int out_len) argument
602 ib_ucm_init_qp_attr(struct ib_ucm_file *file, const char __user *inbuf, int in_len, int out_len) argument
651 ib_ucm_listen(struct ib_ucm_file *file, const char __user *inbuf, int in_len, int out_len) argument
677 ib_ucm_notify(struct ib_ucm_file *file, const char __user *inbuf, int in_len, int out_len) argument
740 ib_ucm_send_req(struct ib_ucm_file *file, const char __user *inbuf, int in_len, int out_len) argument
798 ib_ucm_send_rep(struct ib_ucm_file *file, const char __user *inbuf, int in_len, int out_len) argument
838 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
867 ib_ucm_send_rtu(struct ib_ucm_file *file, const char __user *inbuf, int in_len, int out_len) argument
874 ib_ucm_send_dreq(struct ib_ucm_file *file, const char __user *inbuf, int in_len, int out_len) argument
881 ib_ucm_send_drep(struct ib_ucm_file *file, const char __user *inbuf, int in_len, int out_len) argument
888 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
928 ib_ucm_send_rej(struct ib_ucm_file *file, const char __user *inbuf, int in_len, int out_len) argument
935 ib_ucm_send_apr(struct ib_ucm_file *file, const char __user *inbuf, int in_len, int out_len) argument
942 ib_ucm_send_mra(struct ib_ucm_file *file, const char __user *inbuf, int in_len, int out_len) argument
969 ib_ucm_send_lap(struct ib_ucm_file *file, const char __user *inbuf, int in_len, int out_len) argument
1003 ib_ucm_send_sidr_req(struct ib_ucm_file *file, const char __user *inbuf, int in_len, int out_len) argument
1044 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.c312 static ssize_t ucma_get_event(struct ucma_file *file, const char __user *inbuf, argument
324 if (copy_from_user(&cmd, inbuf, sizeof(cmd)))
389 static ssize_t ucma_create_id(struct ucma_file *file, const char __user *inbuf, argument
401 if (copy_from_user(&cmd, inbuf, sizeof(cmd)))
502 static ssize_t ucma_destroy_id(struct ucma_file *file, const char __user *inbuf, argument
513 if (copy_from_user(&cmd, inbuf, sizeof(cmd)))
536 static ssize_t ucma_bind_addr(struct ucma_file *file, const char __user *inbuf, argument
543 if (copy_from_user(&cmd, inbuf, sizeof(cmd)))
556 const char __user *inbuf,
563 if (copy_from_user(&cmd, inbuf, sizeo
555 ucma_resolve_addr(struct ucma_file *file, const char __user *inbuf, int in_len, int out_len) argument
577 ucma_resolve_route(struct ucma_file *file, const char __user *inbuf, int in_len, int out_len) argument
671 ucma_query_route(struct ucma_file *file, const char __user *inbuf, int in_len, int out_len) argument
749 ucma_connect(struct ucma_file *file, const char __user *inbuf, int in_len, int out_len) argument
773 ucma_listen(struct ucma_file *file, const char __user *inbuf, int in_len, int out_len) argument
794 ucma_accept(struct ucma_file *file, const char __user *inbuf, int in_len, int out_len) argument
823 ucma_reject(struct ucma_file *file, const char __user *inbuf, int in_len, int out_len) argument
842 ucma_disconnect(struct ucma_file *file, const char __user *inbuf, int in_len, int out_len) argument
861 ucma_init_qp_attr(struct ucma_file *file, const char __user *inbuf, int in_len, int out_len) argument
989 ucma_set_option(struct ucma_file *file, const char __user *inbuf, int in_len, int out_len) argument
1025 ucma_notify(struct ucma_file *file, const char __user *inbuf, int in_len, int out_len) argument
1044 ucma_join_multicast(struct ucma_file *file, const char __user *inbuf, int in_len, int out_len) argument
1103 ucma_leave_multicast(struct ucma_file *file, const char __user *inbuf, int in_len, int out_len) argument
1184 ucma_migrate_id(struct ucma_file *new_file, const char __user *inbuf, int in_len, int out_len) argument
[all...]
/drivers/hid/usbhid/
H A Dusbhid.h73 char *inbuf; /* Input buffer */ member in struct:usbhid_device
/drivers/media/dvb/dvb-core/
H A Ddvb_filter.c399 u8 *inbuf = *bufp;
400 u8 *buf = inbuf;
410 if ((inbuf[6] & 0xc0) == 0x80){ /* mpeg2 */
414 buf = inbuf + 9 + inbuf[8];
416 for (buf = inbuf + 6; *buf == 0xff; buf++)
417 if (buf == inbuf + 6 + 16) {
/drivers/s390/char/
H A Dcon3215.c83 char *inbuf; /* pointer to input buffer */ member in struct:raw3215_info
164 ccw->cda = (__u32) __pa(raw->inbuf);
406 EBCASC(raw->inbuf, count);
407 cchar = ctrlchar_handle(raw->inbuf, count, tty);
419 (strncmp(raw->inbuf+count-2, "\252n", 2) &&
420 strncmp(raw->inbuf+count-2, "^n", 2)) ) {
422 raw->inbuf[count] = '\n';
426 tty_insert_flip_string(tty, raw->inbuf, count);
678 raw->inbuf = (char *) raw + sizeof(struct raw3215_info);
903 raw->inbuf
[all...]
/drivers/s390/block/
H A Ddcssblk.c341 dcssblk_shared_store(struct device *dev, struct device_attribute *attr, const char *inbuf, size_t count) argument
347 if ((count > 1) && (inbuf[1] != '\n') && (inbuf[1] != '\0'))
355 if (inbuf[0] == '1') {
373 } else if (inbuf[0] == '0') {
437 dcssblk_save_store(struct device *dev, struct device_attribute *attr, const char *inbuf, size_t count) argument
442 if ((count > 1) && (inbuf[1] != '\n') && (inbuf[1] != '\0'))
447 if (inbuf[0] == '1') {
463 } else if (inbuf[
[all...]
/drivers/sbus/char/
H A Ductrl.c94 u8 *inbuf; member in struct:uctrl_txn
283 byte = (txn->inbuf[bytecnt] << 8);
311 txn.inbuf = NULL;
331 txn.inbuf = NULL;
/drivers/net/ethernet/mellanox/mlx4/
H A Dport.c559 u8 *inbuf, *outbuf; local
572 inbuf = inmailbox->buf;
574 memset(inbuf, 0, 256);
576 inbuf[0] = 1;
577 inbuf[1] = 1;
578 inbuf[2] = 1;
579 inbuf[3] = 1;
580 *(__be16 *) (&inbuf[16]) = cpu_to_be16(0x0015);
581 *(__be32 *) (&inbuf[20]) = cpu_to_be32(port);
/drivers/char/
H A Dvirtio_console.c171 struct port_buffer *inbuf; member in struct:port
370 if (port->inbuf)
371 return port->inbuf;
419 port->inbuf = NULL;
434 port->inbuf = get_inbuf(port);
435 if (port->inbuf)
560 buf = port->inbuf;
581 port->inbuf = NULL;
1149 port->inbuf = NULL;
1508 port->inbuf
[all...]
/drivers/ide/
H A Dide-taskfile.c475 u8 *inbuf = NULL; local
511 inbuf = kzalloc(taskin, GFP_KERNEL);
512 if (inbuf == NULL) {
516 if (copy_from_user(inbuf, buf + intotal, taskin)) {
615 data_buf = inbuf;
663 if (copy_to_user(buf + intotal, inbuf, taskin)) {
671 kfree(inbuf);
/drivers/media/rc/
H A Dati_remote.c187 unsigned char *inbuf; member in struct:ati_remote
442 unsigned char *data= ati_remote->inbuf;
641 ati_remote->inbuf = usb_alloc_coherent(udev, DATA_BUFSIZE, GFP_ATOMIC,
643 if (!ati_remote->inbuf)
671 ati_remote->inbuf, ati_remote->inbuf_dma);
733 usb_fill_int_urb(ati_remote->irq_urb, udev, pipe, ati_remote->inbuf,
/drivers/usb/class/
H A Dcdc-wdm.c97 u8 *inbuf; /* buffer for response */ member in struct:wdm_device
210 memmove(desc->ubuf + desc->length, desc->inbuf, desc->reslength);
322 kfree(desc->inbuf);
742 desc->inbuf = kmalloc(desc->wMaxCommand, GFP_KERNEL);
743 if (!desc->inbuf)
769 desc->inbuf,

Completed in 398 milliseconds

12