/drivers/isdn/gigaset/ |
H A D | asyncdata.c | 49 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 D | common.c | 510 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 D | ser-gigaset.c | 686 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 D | gigaset.h | 433 struct inbuf_t *inbuf; member in struct:cardstate 614 void (*handle_input)(struct inbuf_t *inbuf); 637 void gigaset_m10x_input(struct inbuf_t *inbuf); 648 void gigaset_isoc_input(struct inbuf_t *inbuf); 812 /* append received bytes to inbuf */ 813 int gigaset_fill_inbuf(struct inbuf_t *inbuf, const unsigned char *src,
|
/drivers/net/ethernet/sfc/ |
H A D | mcdi.c | 121 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...] |
H A D | ef10.c | 303 MCDI_DECLARE_BUF(inbuf, MC_CMD_FREE_PIOBUF_IN_LEN); 310 MCDI_SET_DWORD(inbuf, FREE_PIOBUF_IN_PIOBUF_HANDLE, 312 rc = efx_mcdi_rpc(efx, MC_CMD_FREE_PIOBUF, inbuf, sizeof(inbuf), 355 MCDI_DECLARE_BUF(inbuf, 368 MCDI_SET_DWORD(inbuf, LINK_PIOBUF_IN_PIOBUF_HANDLE, 370 MCDI_SET_DWORD(inbuf, LINK_PIOBUF_IN_TXQ_INSTANCE, 373 inbuf, MC_CMD_LINK_PIOBUF_IN_LEN, 409 MCDI_SET_DWORD(inbuf, 412 MCDI_SET_DWORD(inbuf, 2233 efx_ef10_filter_push_prep(struct efx_nic *efx, const struct efx_filter_spec *spec, efx_dword_t *inbuf, u64 handle, bool replacing) argument [all...] |
H A D | mcdi_port.c | 81 MCDI_DECLARE_BUF(inbuf, MC_CMD_SET_LINK_IN_LEN); 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), 126 MCDI_DECLARE_BUF(inbuf, MC_CMD_MDIO_READ_IN_LEN); 131 MCDI_SET_DWORD(inbuf, MDIO_READ_IN_BUS, efx->mdio_bus); 132 MCDI_SET_DWORD(inbuf, MDIO_READ_IN_PRTA [all...] |
H A D | mcdi_mon.c | 150 MCDI_DECLARE_BUF(inbuf, MC_CMD_READ_SENSORS_EXT_IN_LEN); 153 MCDI_SET_QWORD(inbuf, READ_SENSORS_EXT_IN_DMA_ADDR, 155 MCDI_SET_DWORD(inbuf, READ_SENSORS_EXT_IN_LENGTH, hwmon->dma_buf.len); 158 inbuf, sizeof(inbuf), NULL, 0, NULL); 310 MCDI_DECLARE_BUF(inbuf, MC_CMD_SENSOR_INFO_EXT_IN_LEN); 322 MCDI_SET_DWORD(inbuf, SENSOR_INFO_EXT_IN_PAGE, page); 324 rc = efx_mcdi_rpc(efx, MC_CMD_SENSOR_INFO, inbuf, sizeof(inbuf), 384 MCDI_SET_DWORD(inbuf, SENSOR_INFO_EXT_IN_PAG [all...] |
H A D | ptp.c | 368 MCDI_DECLARE_BUF(inbuf, MC_CMD_PTP_IN_STATUS_LEN); 388 MCDI_SET_DWORD(inbuf, PTP_IN_OP, MC_CMD_PTP_OP_STATUS); 389 MCDI_SET_DWORD(inbuf, PTP_IN_PERIPH_ID, 0); 390 rc = efx_mcdi_rpc(efx, MC_CMD_PTP, inbuf, sizeof(inbuf), 480 MCDI_DECLARE_BUF(inbuf, MC_CMD_PTP_IN_GET_ATTRIBUTES_LEN); 491 MCDI_SET_DWORD(inbuf, PTP_IN_OP, MC_CMD_PTP_OP_GET_ATTRIBUTES); 492 MCDI_SET_DWORD(inbuf, PTP_IN_PERIPH_ID, 0); 493 rc = efx_mcdi_rpc(efx, MC_CMD_PTP, inbuf, sizeof(inbuf), [all...] |
H A D | mcdi.h | 131 int efx_mcdi_rpc(struct efx_nic *efx, unsigned cmd, const efx_dword_t *inbuf, 135 const efx_dword_t *inbuf, size_t inlen, 140 const efx_dword_t *inbuf, size_t inlen); 153 const efx_dword_t *inbuf, size_t inlen, size_t outlen, 157 const efx_dword_t *inbuf, size_t inlen,
|
/drivers/tty/hvc/ |
H A D | hvsi_lib.c | 69 struct hvsi_control *pkt = (struct hvsi_control *)pv->inbuf; 85 struct hvsi_query *pkt = (struct hvsi_query *)pv->inbuf; 110 (struct hvsi_query_response *)pv->inbuf; 127 if (pv->inbuf[0] < 0xfc) { 131 type = pv->inbuf[0]; 132 len = pv->inbuf[1]; 160 memmove(pv->inbuf, &pv->inbuf[len], pv->inbuf_len); 169 &pv->inbuf[pv->inbuf_len], 202 memcpy(&buf[read], &pv->inbuf[p [all...] |
/drivers/crypto/nx/ |
H A D | nx-842.c | 338 unsigned long inbuf, outbuf, padding; local 352 inbuf = (unsigned long)in; 353 if (!IS_ALIGNED(inbuf, PAGE_SIZE) || inlen != PAGE_SIZE) 413 op.in = nx842_get_pa((void *)inbuf); 418 nx842_build_scatterlist(inbuf, max_sync_size, &slin); 462 memcpy((void *)outbuf, (void *)inbuf, 480 inbuf += max_sync_size; 538 unsigned long inbuf, outbuf; local 562 inbuf = (unsigned long)in + hdr->offset; 563 if (likely(!IS_ALIGNED(inbuf, IO_BUFFER_ALIG 1398 sw842_data8(const char **inbuf, int *inbit, unsigned char **outbuf, struct sw842_fifo *fifo) argument 1410 sw842_data4(const char **inbuf, int *inbit, unsigned char **outbuf, struct sw842_fifo *fifo) argument 1422 sw842_data2(const char **inbuf, int *inbit, unsigned char **outbuf, struct sw842_fifo *fifo) argument 1434 sw842_ptr8(const char **inbuf, int *inbit, unsigned char **outbuf, struct sw842_fifo *fifo) argument 1446 sw842_ptr4(const char **inbuf, int *inbit, unsigned char **outbuf, struct sw842_fifo *fifo) argument 1458 sw842_ptr2(const char **inbuf, int *inbit, unsigned char **outbuf, struct sw842_fifo *fifo) argument 1496 const char *inbuf; local [all...] |
/drivers/infiniband/core/ |
H A D | ucm.c | 385 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 D | ucma.c | 292 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...] |
H A D | uverbs.h | 52 (udata)->inbuf = (const void __user *) (ibuf); \ 60 (udata)->inbuf = (ilen) ? (const void __user *) (ibuf) : NULL; \
|
/drivers/iio/dac/ |
H A D | mcp4725.c | 286 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 D | max5821.c | 178 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 D | olpc-ec.c | 22 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/hid/i2c-hid/ |
H A D | i2c-hid.c | 139 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/hid/usbhid/ |
H A D | usbhid.h | 70 char *inbuf; /* Input buffer */ member in struct:usbhid_device
|
/drivers/media/dvb-core/ |
H A D | dvb_filter.c | 399 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 D | con3215.c | 82 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/s390/block/ |
H A D | dcssblk.c | 321 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/sbus/char/ |
H A D | uctrl.c | 93 u8 *inbuf; member in struct:uctrl_txn 282 byte = (txn->inbuf[bytecnt] << 8); 310 txn.inbuf = NULL; 330 txn.inbuf = NULL;
|
/drivers/staging/comedi/drivers/ |
H A D | usbduxfast.c | 153 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;
|