Home
last modified time | relevance | path

Searched refs:inbuf (Results 1 – 25 of 83) sorted by relevance

1234

/Linux-v4.19/drivers/isdn/gigaset/
Dasyncdata.c49 static unsigned cmd_loop(unsigned numbytes, struct inbuf_t *inbuf) in cmd_loop() argument
51 unsigned char *src = inbuf->data + inbuf->head; in cmd_loop()
52 struct cardstate *cs = inbuf->cs; in cmd_loop()
86 if (cs->dle && !(inbuf->inputstate & INS_DLE_command)) in cmd_loop()
87 inbuf->inputstate &= ~INS_command; in cmd_loop()
93 if (inbuf->inputstate & INS_DLE_char) { in cmd_loop()
95 inbuf->inputstate &= ~INS_DLE_char; in cmd_loop()
97 (inbuf->inputstate & INS_DLE_command)) { in cmd_loop()
99 inbuf->inputstate |= INS_DLE_char; in cmd_loop()
121 static unsigned lock_loop(unsigned numbytes, struct inbuf_t *inbuf) in lock_loop() argument
[all …]
Dcommon.c511 kfree(cs->inbuf); in gigaset_freecs()
549 static void gigaset_inbuf_init(struct inbuf_t *inbuf, struct cardstate *cs) in gigaset_inbuf_init() argument
552 inbuf->head = 0; in gigaset_inbuf_init()
553 inbuf->tail = 0; in gigaset_inbuf_init()
554 inbuf->cs = cs; in gigaset_inbuf_init()
555 inbuf->inputstate = INS_command; in gigaset_inbuf_init()
566 int gigaset_fill_inbuf(struct inbuf_t *inbuf, const unsigned char *src, in gigaset_fill_inbuf() argument
577 tail = inbuf->tail; in gigaset_fill_inbuf()
578 head = inbuf->head; in gigaset_fill_inbuf()
589 dev_err(inbuf->cs->dev, in gigaset_fill_inbuf()
[all …]
Disocdata.c894 static void cmd_loop(unsigned char *src, int numbytes, struct inbuf_t *inbuf) in cmd_loop() argument
896 struct cardstate *cs = inbuf->cs; in cmd_loop()
941 void gigaset_isoc_input(struct inbuf_t *inbuf) in gigaset_isoc_input() argument
943 struct cardstate *cs = inbuf->cs; in gigaset_isoc_input()
947 head = inbuf->head; in gigaset_isoc_input()
948 while (head != (tail = inbuf->tail)) { in gigaset_isoc_input()
952 src = inbuf->data + head; in gigaset_isoc_input()
959 gigaset_if_receive(inbuf->cs, src, numbytes); in gigaset_isoc_input()
961 cmd_loop(src, numbytes, inbuf); in gigaset_isoc_input()
968 inbuf->head = head; in gigaset_isoc_input()
Dser-gigaset.c665 struct inbuf_t *inbuf; in gigaset_tty_receive() local
669 inbuf = cs->inbuf; in gigaset_tty_receive()
670 if (!inbuf) { in gigaset_tty_receive()
676 tail = inbuf->tail; in gigaset_tty_receive()
677 head = inbuf->head; in gigaset_tty_receive()
684 memcpy(inbuf->data + tail, buf, n); in gigaset_tty_receive()
699 memcpy(inbuf->data + tail, buf, count); in gigaset_tty_receive()
704 inbuf->tail = tail; in gigaset_tty_receive()
/Linux-v4.19/drivers/net/ethernet/sfc/
Def10_sriov.c21 MCDI_DECLARE_BUF(inbuf, MC_CMD_EVB_PORT_ASSIGN_IN_LEN); in efx_ef10_evb_port_assign()
24 MCDI_SET_DWORD(inbuf, EVB_PORT_ASSIGN_IN_PORT_ID, port_id); in efx_ef10_evb_port_assign()
25 MCDI_POPULATE_DWORD_2(inbuf, EVB_PORT_ASSIGN_IN_FUNCTION, in efx_ef10_evb_port_assign()
29 return efx_mcdi_rpc(efx, MC_CMD_EVB_PORT_ASSIGN, inbuf, sizeof(inbuf), in efx_ef10_evb_port_assign()
36 MCDI_DECLARE_BUF(inbuf, MC_CMD_VSWITCH_ALLOC_IN_LEN); in efx_ef10_vswitch_alloc()
39 MCDI_SET_DWORD(inbuf, VSWITCH_ALLOC_IN_UPSTREAM_PORT_ID, port_id); in efx_ef10_vswitch_alloc()
40 MCDI_SET_DWORD(inbuf, VSWITCH_ALLOC_IN_TYPE, vswitch_type); in efx_ef10_vswitch_alloc()
41 MCDI_SET_DWORD(inbuf, VSWITCH_ALLOC_IN_NUM_VLAN_TAGS, 2); in efx_ef10_vswitch_alloc()
42 MCDI_POPULATE_DWORD_1(inbuf, VSWITCH_ALLOC_IN_FLAGS, in efx_ef10_vswitch_alloc()
46 rc = efx_mcdi_rpc_quiet(efx, MC_CMD_VSWITCH_ALLOC, inbuf, sizeof(inbuf), in efx_ef10_vswitch_alloc()
[all …]
Dmcdi.c154 const efx_dword_t *inbuf, size_t inlen) in efx_mcdi_send_request() argument
223 " %08x", le32_to_cpu(inbuf[i].u32[0])); in efx_mcdi_send_request()
229 efx->type->mcdi_request(efx, hdr, hdr_len, inbuf, inlen); in efx_mcdi_send_request()
804 const efx_dword_t *inbuf, size_t inlen, in _efx_mcdi_rpc() argument
811 if (inbuf && inlen && (inbuf == outbuf)) { in _efx_mcdi_rpc()
817 rc = efx_mcdi_rpc_start(efx, cmd, inbuf, inlen); in _efx_mcdi_rpc()
842 efx_mcdi_send_request(efx, cmd, inbuf, inlen); in _efx_mcdi_rpc()
862 const efx_dword_t *inbuf, size_t inlen, in _efx_mcdi_rpc_evb_retry() argument
869 rc = _efx_mcdi_rpc(efx, cmd, inbuf, inlen, in _efx_mcdi_rpc_evb_retry()
887 rc = _efx_mcdi_rpc(efx, cmd, inbuf, inlen, in _efx_mcdi_rpc_evb_retry()
[all …]
Def10.c322 MCDI_DECLARE_BUF(inbuf, MC_CMD_LICENSING_V3_IN_LEN); in efx_ef10_read_licensed_features()
328 MCDI_SET_DWORD(inbuf, LICENSING_V3_IN_OP, in efx_ef10_read_licensed_features()
330 rc = efx_mcdi_rpc_quiet(efx, MC_CMD_LICENSING_V3, inbuf, sizeof(inbuf), in efx_ef10_read_licensed_features()
484 MCDI_DECLARE_BUF(inbuf, MC_CMD_VPORT_GET_MAC_ADDRESSES_IN_LEN); in efx_ef10_get_mac_address_vf()
489 MCDI_SET_DWORD(inbuf, VPORT_GET_MAC_ADDRESSES_IN_VPORT_ID, in efx_ef10_get_mac_address_vf()
491 rc = efx_mcdi_rpc(efx, MC_CMD_VPORT_GET_MAC_ADDRESSES, inbuf, in efx_ef10_get_mac_address_vf()
492 sizeof(inbuf), outbuf, sizeof(outbuf), &outlen); in efx_ef10_get_mac_address_vf()
858 MCDI_DECLARE_BUF(inbuf, MC_CMD_FREE_PIOBUF_IN_LEN); in efx_ef10_free_piobufs()
865 MCDI_SET_DWORD(inbuf, FREE_PIOBUF_IN_PIOBUF_HANDLE, in efx_ef10_free_piobufs()
867 rc = efx_mcdi_rpc(efx, MC_CMD_FREE_PIOBUF, inbuf, sizeof(inbuf), in efx_ef10_free_piobufs()
[all …]
Dmcdi_port.c80 MCDI_DECLARE_BUF(inbuf, MC_CMD_SET_LINK_IN_LEN); in efx_mcdi_set_link()
85 MCDI_SET_DWORD(inbuf, SET_LINK_IN_CAP, capabilities); in efx_mcdi_set_link()
86 MCDI_SET_DWORD(inbuf, SET_LINK_IN_FLAGS, flags); in efx_mcdi_set_link()
87 MCDI_SET_DWORD(inbuf, SET_LINK_IN_LOOPBACK_MODE, loopback_mode); in efx_mcdi_set_link()
88 MCDI_SET_DWORD(inbuf, SET_LINK_IN_LOOPBACK_SPEED, loopback_speed); in efx_mcdi_set_link()
90 rc = efx_mcdi_rpc(efx, MC_CMD_SET_LINK, inbuf, sizeof(inbuf), in efx_mcdi_set_link()
125 MCDI_DECLARE_BUF(inbuf, MC_CMD_MDIO_READ_IN_LEN); in efx_mcdi_mdio_read()
130 MCDI_SET_DWORD(inbuf, MDIO_READ_IN_BUS, efx->mdio_bus); in efx_mcdi_mdio_read()
131 MCDI_SET_DWORD(inbuf, MDIO_READ_IN_PRTAD, prtad); in efx_mcdi_mdio_read()
132 MCDI_SET_DWORD(inbuf, MDIO_READ_IN_DEVAD, devad); in efx_mcdi_mdio_read()
[all …]
Dptp.c410 MCDI_DECLARE_BUF(inbuf, MC_CMD_PTP_IN_STATUS_LEN); in efx_ptp_update_stats()
430 MCDI_SET_DWORD(inbuf, PTP_IN_OP, MC_CMD_PTP_OP_STATUS); in efx_ptp_update_stats()
431 MCDI_SET_DWORD(inbuf, PTP_IN_PERIPH_ID, 0); in efx_ptp_update_stats()
432 rc = efx_mcdi_rpc(efx, MC_CMD_PTP, inbuf, sizeof(inbuf), in efx_ptp_update_stats()
602 MCDI_DECLARE_BUF(inbuf, MC_CMD_PTP_IN_GET_ATTRIBUTES_LEN); in efx_ptp_get_attributes()
613 MCDI_SET_DWORD(inbuf, PTP_IN_OP, MC_CMD_PTP_OP_GET_ATTRIBUTES); in efx_ptp_get_attributes()
614 MCDI_SET_DWORD(inbuf, PTP_IN_PERIPH_ID, 0); in efx_ptp_get_attributes()
615 rc = efx_mcdi_rpc_quiet(efx, MC_CMD_PTP, inbuf, sizeof(inbuf), in efx_ptp_get_attributes()
625 efx_mcdi_display_error(efx, MC_CMD_PTP, sizeof(inbuf), in efx_ptp_get_attributes()
701 MCDI_DECLARE_BUF(inbuf, MC_CMD_PTP_IN_GET_TIMESTAMP_CORRECTIONS_LEN); in efx_ptp_get_timestamp_corrections()
[all …]
Dmcdi_mon.c150 MCDI_DECLARE_BUF(inbuf, MC_CMD_READ_SENSORS_EXT_IN_LEN); in efx_mcdi_mon_update()
153 MCDI_SET_QWORD(inbuf, READ_SENSORS_EXT_IN_DMA_ADDR, in efx_mcdi_mon_update()
155 MCDI_SET_DWORD(inbuf, READ_SENSORS_EXT_IN_LENGTH, hwmon->dma_buf.len); in efx_mcdi_mon_update()
158 inbuf, sizeof(inbuf), NULL, 0, NULL); in efx_mcdi_mon_update()
310 MCDI_DECLARE_BUF(inbuf, MC_CMD_SENSOR_INFO_EXT_IN_LEN); in efx_mcdi_mon_probe()
322 MCDI_SET_DWORD(inbuf, SENSOR_INFO_EXT_IN_PAGE, page); in efx_mcdi_mon_probe()
324 rc = efx_mcdi_rpc(efx, MC_CMD_SENSOR_INFO, inbuf, sizeof(inbuf), in efx_mcdi_mon_probe()
384 MCDI_SET_DWORD(inbuf, SENSOR_INFO_EXT_IN_PAGE, in efx_mcdi_mon_probe()
387 inbuf, sizeof(inbuf), in efx_mcdi_mon_probe()
/Linux-v4.19/drivers/infiniband/core/
Ducm.c393 const char __user *inbuf, in ib_ucm_event() argument
404 if (copy_from_user(&cmd, inbuf, sizeof(cmd))) in ib_ucm_event()
478 const char __user *inbuf, in ib_ucm_create_id() argument
489 if (copy_from_user(&cmd, inbuf, sizeof(cmd))) in ib_ucm_create_id()
525 const char __user *inbuf, in ib_ucm_destroy_id() argument
536 if (copy_from_user(&cmd, inbuf, sizeof(cmd))) in ib_ucm_destroy_id()
570 const char __user *inbuf, in ib_ucm_attr_id() argument
581 if (copy_from_user(&cmd, inbuf, sizeof(cmd))) in ib_ucm_attr_id()
602 const char __user *inbuf, in ib_ucm_init_qp_attr() argument
614 if (copy_from_user(&cmd, inbuf, sizeof(cmd))) in ib_ucm_init_qp_attr()
[all …]
Ducma.c398 static ssize_t ucma_get_event(struct ucma_file *file, const char __user *inbuf, in ucma_get_event() argument
413 if (copy_from_user(&cmd, inbuf, sizeof(cmd))) in ucma_get_event()
479 static ssize_t ucma_create_id(struct ucma_file *file, const char __user *inbuf, in ucma_create_id() argument
492 if (copy_from_user(&cmd, inbuf, sizeof(cmd))) in ucma_create_id()
603 static ssize_t ucma_destroy_id(struct ucma_file *file, const char __user *inbuf, in ucma_destroy_id() argument
614 if (copy_from_user(&cmd, inbuf, sizeof(cmd))) in ucma_destroy_id()
651 static ssize_t ucma_bind_ip(struct ucma_file *file, const char __user *inbuf, in ucma_bind_ip() argument
658 if (copy_from_user(&cmd, inbuf, sizeof(cmd))) in ucma_bind_ip()
673 static ssize_t ucma_bind(struct ucma_file *file, const char __user *inbuf, in ucma_bind() argument
680 if (copy_from_user(&cmd, inbuf, sizeof(cmd))) in ucma_bind()
[all …]
/Linux-v4.19/drivers/tty/hvc/
Dhvsi_lib.c70 struct hvsi_control *pkt = (struct hvsi_control *)pv->inbuf; in hvsi_got_control()
86 struct hvsi_query *pkt = (struct hvsi_query *)pv->inbuf; in hvsi_got_query()
111 (struct hvsi_query_response *)pv->inbuf; in hvsi_got_response()
128 if (pv->inbuf[0] < 0xfc) { in hvsi_check_packet()
132 type = pv->inbuf[0]; in hvsi_check_packet()
133 len = pv->inbuf[1]; in hvsi_check_packet()
161 memmove(pv->inbuf, &pv->inbuf[len], pv->inbuf_len); in hvsi_check_packet()
170 &pv->inbuf[pv->inbuf_len], in hvsi_get_packet()
203 memcpy(&buf[read], &pv->inbuf[pv->inbuf_cur], l); in hvsilib_get_chars()
215 memmove(pv->inbuf, &pv->inbuf[pv->inbuf_cur], in hvsilib_get_chars()
/Linux-v4.19/lib/
Ddecompress.c58 decompress_fn __init decompress_method(const unsigned char *inbuf, long len, in decompress_method() argument
69 pr_debug("Compressed data magic: %#.2x %#.2x\n", inbuf[0], inbuf[1]); in decompress_method()
72 if (!memcmp(inbuf, cf->magic, 2)) in decompress_method()
Ddecompress_bunzip2.c98 unsigned char *inbuf /*,*outbuf*/; member
129 bd->inbufCount = bd->fill(bd->inbuf, BZIP2_IOBUF_SIZE); in get_bits()
144 bd->inbufBits = (bd->inbufBits << 8)|bd->inbuf[bd->inbufPos++]; in get_bits()
386 (bd->inbufBits << 8)|bd->inbuf[bd->inbufPos++]; in get_next_block()
629 static int INIT start_bunzip(struct bunzip_data **bdp, void *inbuf, long len, in start_bunzip() argument
647 bd->inbuf = inbuf; in start_bunzip()
688 unsigned char *inbuf; in bunzip2() local
698 inbuf = buf; in bunzip2()
700 inbuf = malloc(BZIP2_IOBUF_SIZE); in bunzip2()
701 if (!inbuf) { in bunzip2()
[all …]
/Linux-v4.19/arch/arm/vdso/
Dvdsomunge.c135 const void *inbuf; in main() local
158 inbuf = mmap(NULL, stat.st_size, PROT_READ, MAP_PRIVATE, infd, 0); in main()
159 if (inbuf == MAP_FAILED) in main()
164 inhdr = inbuf; in main()
206 memcpy(outbuf, inbuf, stat.st_size); in main()
/Linux-v4.19/arch/alpha/boot/
Dmisc.c45 static uch *inbuf; /* input buffer */ variable
61 #define get_byte() (inptr < insize ? inbuf[inptr++] : fill_inbuf())
112 inbuf = input_data; in fill_inbuf()
116 return inbuf[0]; in fill_inbuf()
/Linux-v4.19/arch/nios2/boot/compressed/
Dmisc.c48 static uch *inbuf; /* input buffer */ variable
65 #define get_byte() (inptr < insize ? inbuf[inptr++] : fill_inbuf())
136 inbuf = input_data; in fill_inbuf()
139 return inbuf[0]; in fill_inbuf()
/Linux-v4.19/crypto/
Dcast6_generic.c183 void __cast6_encrypt(struct cast6_ctx *c, u8 *outbuf, const u8 *inbuf) in __cast6_encrypt() argument
185 const __be32 *src = (const __be32 *)inbuf; in __cast6_encrypt()
216 static void cast6_encrypt(struct crypto_tfm *tfm, u8 *outbuf, const u8 *inbuf) in cast6_encrypt() argument
218 __cast6_encrypt(crypto_tfm_ctx(tfm), outbuf, inbuf); in cast6_encrypt()
221 void __cast6_decrypt(struct cast6_ctx *c, u8 *outbuf, const u8 *inbuf) in __cast6_decrypt() argument
223 const __be32 *src = (const __be32 *)inbuf; in __cast6_decrypt()
254 static void cast6_decrypt(struct crypto_tfm *tfm, u8 *outbuf, const u8 *inbuf) in cast6_decrypt() argument
256 __cast6_decrypt(crypto_tfm_ctx(tfm), outbuf, inbuf); in cast6_decrypt()
Dtgr192.c514 static int tgr192_update(struct shash_desc *desc, const u8 *inbuf, in tgr192_update() argument
524 if (!inbuf) { in tgr192_update()
529 tctx->hash[tctx->count++] = *inbuf++; in tgr192_update()
539 tgr192_transform(tctx, inbuf); in tgr192_update()
543 inbuf += 64; in tgr192_update()
546 tctx->hash[tctx->count++] = *inbuf++; in tgr192_update()
/Linux-v4.19/include/linux/decompress/
Dgeneric.h5 typedef int (*decompress_fn) (unsigned char *inbuf, long len,
37 decompress_fn decompress_method(const unsigned char *inbuf, long len,
/Linux-v4.19/drivers/crypto/nx/
Dnx-842-pseries.c300 unsigned long inbuf, outbuf; in nx842_pseries_compress() local
308 inbuf = (unsigned long)in; in nx842_pseries_compress()
309 if (check_constraints(inbuf, &inlen, true)) in nx842_pseries_compress()
336 if ((inbuf & NX842_HW_PAGE_MASK) == in nx842_pseries_compress()
337 ((inbuf + inlen - 1) & NX842_HW_PAGE_MASK)) { in nx842_pseries_compress()
339 op.in = nx842_get_pa((void *)inbuf); in nx842_pseries_compress()
343 nx842_build_scatterlist(inbuf, inlen, &slin); in nx842_pseries_compress()
431 unsigned long inbuf, outbuf; in nx842_pseries_decompress() local
440 inbuf = (unsigned long)in; in nx842_pseries_decompress()
441 if (check_constraints(inbuf, &inlen, true)) in nx842_pseries_decompress()
[all …]
/Linux-v4.19/scripts/dtc/
Dflattree.c580 struct inbuf { struct
584 static void inbuf_init(struct inbuf *inb, void *base, void *limit) in inbuf_init() argument
591 static void flat_read_chunk(struct inbuf *inb, void *p, int len) in flat_read_chunk()
601 static uint32_t flat_read_word(struct inbuf *inb) in flat_read_word()
612 static void flat_realign(struct inbuf *inb, int align) in flat_realign()
621 static char *flat_read_string(struct inbuf *inb) in flat_read_string()
642 static struct data flat_read_data(struct inbuf *inb, int len) in flat_read_data()
659 static char *flat_read_stringtable(struct inbuf *inb, int offset) in flat_read_stringtable()
678 static struct property *flat_read_property(struct inbuf *dtbuf, in flat_read_property()
679 struct inbuf *strbuf, int flags) in flat_read_property()
[all …]
/Linux-v4.19/drivers/tty/vt/
Dconsolemap.c325 unsigned short inbuf[E_TABSZ]; in con_set_trans_old() local
332 inbuf[i] = UNI_DIRECT_BASE | ubuf[i]; in con_set_trans_old()
335 memcpy(translations[USER_MAP], inbuf, sizeof(inbuf)); in con_set_trans_old()
360 unsigned short inbuf[E_TABSZ]; in con_set_trans_new() local
362 if (copy_from_user(inbuf, arg, sizeof(inbuf))) in con_set_trans_new()
366 memcpy(translations[USER_MAP], inbuf, sizeof(inbuf)); in con_set_trans_new()
/Linux-v4.19/drivers/platform/olpc/
Dolpc-ec.c24 u8 *inbuf, *outbuf; member
88 desc->err = ec_driver->ec_cmd(desc->cmd, desc->inbuf, desc->inlen, in olpc_ec_worker()
117 int olpc_ec_cmd(u8 cmd, u8 *inbuf, size_t inlen, u8 *outbuf, size_t outlen) in olpc_ec_cmd() argument
136 desc.inbuf = inbuf; in olpc_ec_cmd()

1234