Searched refs:inbuf (Results 1 - 25 of 101) sorted by relevance

12345

/linux-master/include/linux/decompress/
H A Dgeneric.h5 typedef int (*decompress_fn) (unsigned char *inbuf, long len,
12 /* inbuf - input buffer
13 *len - len of pre-read data in inbuf
14 *fill - function to fill inbuf when empty
20 *If len != 0, inbuf should contain all the necessary input data, and fill
22 *If len = 0, inbuf can be NULL, in which case the decompressor will allocate
23 *the input buffer. If inbuf != NULL it must be at least XXX_IOBUF_SIZE bytes.
37 decompress_fn decompress_method(const unsigned char *inbuf, long len,
H A Dunlzo.h5 int unlzo(unsigned char *inbuf, long len,
H A Dinflate.h5 int gunzip(unsigned char *inbuf, long len,
H A Dbunzip2.h5 int bunzip2(unsigned char *inbuf, long len,
H A Dunlz4.h5 int unlz4(unsigned char *inbuf, long len,
H A Dunzstd.h5 int unzstd(unsigned char *inbuf, long len,
/linux-master/drivers/net/ethernet/sfc/siena/
H A Dmcdi_port.c24 MCDI_DECLARE_BUF(inbuf, MC_CMD_MDIO_READ_IN_LEN);
29 MCDI_SET_DWORD(inbuf, MDIO_READ_IN_BUS, efx->mdio_bus);
30 MCDI_SET_DWORD(inbuf, MDIO_READ_IN_PRTAD, prtad);
31 MCDI_SET_DWORD(inbuf, MDIO_READ_IN_DEVAD, devad);
32 MCDI_SET_DWORD(inbuf, MDIO_READ_IN_ADDR, addr);
34 rc = efx_siena_mcdi_rpc(efx, MC_CMD_MDIO_READ, inbuf, sizeof(inbuf),
50 MCDI_DECLARE_BUF(inbuf, MC_CMD_MDIO_WRITE_IN_LEN);
55 MCDI_SET_DWORD(inbuf, MDIO_WRITE_IN_BUS, efx->mdio_bus);
56 MCDI_SET_DWORD(inbuf, MDIO_WRITE_IN_PRTA
[all...]
H A Dmcdi.c152 const efx_dword_t *inbuf, size_t inlen)
223 le32_to_cpu(inbuf[i].u32[0]));
229 efx->type->mcdi_request(efx, hdr, hdr_len, inbuf, inlen);
804 const efx_dword_t *inbuf, size_t inlen,
811 if (inbuf && inlen && (inbuf == outbuf)) {
817 rc = efx_siena_mcdi_rpc_start(efx, cmd, inbuf, inlen);
842 efx_mcdi_send_request(efx, cmd, inbuf, inlen);
862 const efx_dword_t *inbuf, size_t inlen,
869 rc = _efx_mcdi_rpc(efx, cmd, inbuf, inle
151 efx_mcdi_send_request(struct efx_nic *efx, unsigned cmd, const efx_dword_t *inbuf, size_t inlen) argument
803 _efx_mcdi_rpc(struct efx_nic *efx, unsigned int cmd, const efx_dword_t *inbuf, size_t inlen, efx_dword_t *outbuf, size_t outlen, size_t *outlen_actual, bool quiet, int *raw_rc) argument
861 _efx_mcdi_rpc_evb_retry(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
928 efx_siena_mcdi_rpc(struct efx_nic *efx, unsigned int cmd, const efx_dword_t *inbuf, size_t inlen, efx_dword_t *outbuf, size_t outlen, size_t *outlen_actual) argument
945 efx_siena_mcdi_rpc_quiet(struct efx_nic *efx, unsigned int cmd, const efx_dword_t *inbuf, size_t inlen, efx_dword_t *outbuf, size_t outlen, size_t *outlen_actual) argument
954 efx_siena_mcdi_rpc_start(struct efx_nic *efx, unsigned int cmd, const efx_dword_t *inbuf, size_t inlen) argument
975 _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
1050 efx_siena_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
1059 efx_siena_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...]
/linux-master/drivers/net/ethernet/sfc/
H A Dmcdi_port.c24 MCDI_DECLARE_BUF(inbuf, MC_CMD_MDIO_READ_IN_LEN);
29 MCDI_SET_DWORD(inbuf, MDIO_READ_IN_BUS, efx->mdio_bus);
30 MCDI_SET_DWORD(inbuf, MDIO_READ_IN_PRTAD, prtad);
31 MCDI_SET_DWORD(inbuf, MDIO_READ_IN_DEVAD, devad);
32 MCDI_SET_DWORD(inbuf, MDIO_READ_IN_ADDR, addr);
34 rc = efx_mcdi_rpc(efx, MC_CMD_MDIO_READ, inbuf, sizeof(inbuf),
50 MCDI_DECLARE_BUF(inbuf, MC_CMD_MDIO_WRITE_IN_LEN);
55 MCDI_SET_DWORD(inbuf, MDIO_WRITE_IN_BUS, efx->mdio_bus);
56 MCDI_SET_DWORD(inbuf, MDIO_WRITE_IN_PRTA
[all...]
H A Dmcdi_functions.c39 MCDI_DECLARE_BUF(inbuf, MC_CMD_ALLOC_VIS_IN_LEN);
43 MCDI_SET_DWORD(inbuf, ALLOC_VIS_IN_MIN_VI_COUNT, min_vis);
44 MCDI_SET_DWORD(inbuf, ALLOC_VIS_IN_MAX_VI_COUNT, max_vis);
45 rc = efx_mcdi_rpc(efx, MC_CMD_ALLOC_VIS, inbuf, sizeof(inbuf),
73 MCDI_DECLARE_BUF(inbuf,
86 MCDI_SET_DWORD(inbuf, INIT_EVQ_IN_SIZE, channel->eventq_mask + 1);
87 MCDI_SET_DWORD(inbuf, INIT_EVQ_IN_INSTANCE, channel->channel);
89 MCDI_SET_DWORD(inbuf, INIT_EVQ_IN_IRQ_NUM, channel->channel);
90 MCDI_SET_DWORD(inbuf, INIT_EVQ_IN_TMR_MOD
[all...]
H A Dmae.c24 MCDI_DECLARE_BUF(inbuf, MC_CMD_MAE_MPORT_ALLOC_ALIAS_IN_LEN);
33 MCDI_SET_DWORD(inbuf, MAE_MPORT_ALLOC_ALIAS_IN_TYPE,
35 MCDI_SET_DWORD(inbuf, MAE_MPORT_ALLOC_ALIAS_IN_DELIVER_MPORT,
37 rc = efx_mcdi_rpc(efx, MC_CMD_MAE_MPORT_ALLOC, inbuf, sizeof(inbuf),
50 MCDI_DECLARE_BUF(inbuf, MC_CMD_MAE_MPORT_FREE_IN_LEN);
53 MCDI_SET_DWORD(inbuf, MAE_MPORT_FREE_IN_MPORT_ID, id);
54 return efx_mcdi_rpc(efx, MC_CMD_MAE_MPORT_FREE, inbuf, sizeof(inbuf),
105 MCDI_DECLARE_BUF(inbuf, MC_CMD_MAE_MPORT_LOOKUP_IN_LE
1392 efx_dword_t *inbuf; local
1974 efx_dword_t *inbuf; local
2045 efx_dword_t *inbuf; local
[all...]
H A Def10_sriov.c18 MCDI_DECLARE_BUF(inbuf, MC_CMD_EVB_PORT_ASSIGN_IN_LEN);
21 MCDI_SET_DWORD(inbuf, EVB_PORT_ASSIGN_IN_PORT_ID, port_id);
22 MCDI_POPULATE_DWORD_2(inbuf, EVB_PORT_ASSIGN_IN_FUNCTION,
26 return efx_mcdi_rpc(efx, MC_CMD_EVB_PORT_ASSIGN, inbuf, sizeof(inbuf),
33 MCDI_DECLARE_BUF(inbuf, MC_CMD_VSWITCH_ALLOC_IN_LEN);
36 MCDI_SET_DWORD(inbuf, VSWITCH_ALLOC_IN_UPSTREAM_PORT_ID, port_id);
37 MCDI_SET_DWORD(inbuf, VSWITCH_ALLOC_IN_TYPE, vswitch_type);
38 MCDI_SET_DWORD(inbuf, VSWITCH_ALLOC_IN_NUM_VLAN_TAGS, 2);
39 MCDI_POPULATE_DWORD_1(inbuf, VSWITCH_ALLOC_IN_FLAG
[all...]
H A Dmcdi.c148 const efx_dword_t *inbuf, size_t inlen)
219 le32_to_cpu(inbuf[i].u32[0]));
225 efx->type->mcdi_request(efx, hdr, hdr_len, inbuf, inlen);
800 const efx_dword_t *inbuf, size_t inlen,
807 if (inbuf && inlen && (inbuf == outbuf)) {
813 rc = efx_mcdi_rpc_start(efx, cmd, inbuf, inlen);
838 efx_mcdi_send_request(efx, cmd, inbuf, inlen);
858 const efx_dword_t *inbuf, size_t inlen,
865 rc = _efx_mcdi_rpc(efx, cmd, inbuf, inle
147 efx_mcdi_send_request(struct efx_nic *efx, unsigned cmd, const efx_dword_t *inbuf, size_t inlen) argument
799 _efx_mcdi_rpc(struct efx_nic *efx, unsigned int cmd, const efx_dword_t *inbuf, size_t inlen, efx_dword_t *outbuf, size_t outlen, size_t *outlen_actual, bool quiet, int *raw_rc) argument
857 _efx_mcdi_rpc_evb_retry(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
924 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
941 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
950 efx_mcdi_rpc_start(struct efx_nic *efx, unsigned cmd, const efx_dword_t *inbuf, size_t inlen) argument
971 _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
1046 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
1054 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...]
/linux-master/drivers/cdx/controller/
H A Dmcdi_functions.c31 MCDI_DECLARE_BUF(inbuf, MC_CMD_CDX_BUS_ENUM_DEVICES_IN_LEN);
35 MCDI_SET_DWORD(inbuf, CDX_BUS_ENUM_DEVICES_IN_BUS, bus_num);
37 ret = cdx_mcdi_rpc(cdx, MC_CMD_CDX_BUS_ENUM_DEVICES, inbuf, sizeof(inbuf),
53 MCDI_DECLARE_BUF(inbuf, MC_CMD_CDX_BUS_GET_DEVICE_CONFIG_IN_LEN);
59 MCDI_SET_DWORD(inbuf, CDX_BUS_GET_DEVICE_CONFIG_IN_BUS, bus_num);
60 MCDI_SET_DWORD(inbuf, CDX_BUS_GET_DEVICE_CONFIG_IN_DEVICE, dev_num);
62 ret = cdx_mcdi_rpc(cdx, MC_CMD_CDX_BUS_GET_DEVICE_CONFIG, inbuf, sizeof(inbuf),
140 MCDI_DECLARE_BUF(inbuf, MC_CMD_CDX_BUS_UP_IN_LE
[all...]
/linux-master/tools/perf/util/
H A Ddump-insn.h22 u8 *inbuf, int inlen, int *lenp);
H A Ddump-insn.c9 u64 ip __maybe_unused, u8 *inbuf __maybe_unused,
/linux-master/fs/dlm/
H A Ddir.h19 void dlm_copy_master_names(struct dlm_ls *ls, const char *inbuf, int inlen,
/linux-master/lib/
H A Ddecompress.c63 decompress_fn __init decompress_method(const unsigned char *inbuf, long len, argument
74 pr_debug("Compressed data magic: %#.2x %#.2x\n", inbuf[0], inbuf[1]);
77 if (!memcmp(inbuf, cf->magic, 2))
H A Ddecompress_bunzip2.c98 unsigned char *inbuf /*,*outbuf*/; member in struct:bunzip_data
129 bd->inbufCount = bd->fill(bd->inbuf, BZIP2_IOBUF_SIZE);
144 bd->inbufBits = (bd->inbufBits << 8)|bd->inbuf[bd->inbufPos++];
386 (bd->inbufBits << 8)|bd->inbuf[bd->inbufPos++];
626 /* Allocate the structure, read file header. If in_fd ==-1, inbuf must contain
627 a complete bunzip file (len bytes long). If in_fd!=-1, inbuf and len are
629 static int INIT start_bunzip(struct bunzip_data **bdp, void *inbuf, long len, argument
647 bd->inbuf = inbuf;
688 unsigned char *inbuf; local
[all...]
/linux-master/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],
204 memcpy(&buf[read], &pv->inbuf[p
[all...]
/linux-master/arch/nios2/boot/compressed/
H A Dmisc.c35 static uch *inbuf; /* input buffer */ variable
38 static unsigned insize; /* valid bytes in inbuf */
39 static unsigned inptr; /* index of next byte to be processed in inbuf */
52 #define get_byte() (inptr < insize ? inbuf[inptr++] : fill_inbuf())
123 inbuf = input_data;
126 return inbuf[0];
/linux-master/arch/alpha/boot/
H A Dmisc.c45 static uch *inbuf; /* input buffer */ variable
48 static unsigned insize; /* valid bytes in inbuf */
49 static unsigned inptr; /* index of next byte to be processed in inbuf */
61 #define get_byte() (inptr < insize ? inbuf[inptr++] : fill_inbuf())
110 inbuf = input_data;
114 return inbuf[0];
/linux-master/arch/powerpc/boot/
H A Ddecompress.c100 * @inbuf: input buffer
106 * This function takes compressed data from inbuf, decompresses and write it to
116 long partial_decompress(void *inbuf, unsigned long input_size, argument
132 ret = __decompress(inbuf, input_size, NULL, flush, outbuf,
/linux-master/include/linux/
H A Dolpc-ec.h48 extern int olpc_ec_cmd(u8 cmd, u8 *inbuf, size_t inlen, u8 *outbuf,
63 static inline int olpc_ec_cmd(u8 cmd, u8 *inbuf, size_t inlen, u8 *outbuf, argument
/linux-master/arch/arm/vdso/
H A Dvdsomunge.c122 const void *inbuf; local
145 inbuf = mmap(NULL, stat.st_size, PROT_READ, MAP_PRIVATE, infd, 0);
146 if (inbuf == MAP_FAILED)
151 inhdr = inbuf;
193 memcpy(outbuf, inbuf, stat.st_size);

Completed in 266 milliseconds

12345