arch/alpha/boot/misc.c
110
inbuf = input_data;
arch/alpha/boot/misc.c
114
return inbuf[0];
arch/alpha/boot/misc.c
45
static uch *inbuf; /* input buffer */
arch/alpha/boot/misc.c
61
#define get_byte() (inptr < insize ? inbuf[inptr++] : fill_inbuf())
arch/arm/vdso/vdsomunge.c
122
const void *inbuf;
arch/arm/vdso/vdsomunge.c
145
inbuf = mmap(NULL, stat.st_size, PROT_READ, MAP_PRIVATE, infd, 0);
arch/arm/vdso/vdsomunge.c
146
if (inbuf == MAP_FAILED)
arch/arm/vdso/vdsomunge.c
151
inhdr = inbuf;
arch/arm/vdso/vdsomunge.c
193
memcpy(outbuf, inbuf, stat.st_size);
arch/nios2/boot/compressed/misc.c
123
inbuf = input_data;
arch/nios2/boot/compressed/misc.c
126
return inbuf[0];
arch/nios2/boot/compressed/misc.c
35
static uch *inbuf; /* input buffer */
arch/nios2/boot/compressed/misc.c
52
#define get_byte() (inptr < insize ? inbuf[inptr++] : fill_inbuf())
arch/parisc/kernel/kgdb.c
175
int err_code, char *inbuf, char *outbuf,
arch/parisc/kernel/kgdb.c
179
char *p = inbuf + 1;
arch/parisc/kernel/kgdb.c
181
switch (inbuf[0]) {
arch/powerpc/boot/decompress.c
116
long partial_decompress(void *inbuf, unsigned long input_size,
arch/powerpc/boot/decompress.c
132
ret = __decompress(inbuf, input_size, NULL, flush, outbuf,
arch/powerpc/boot/ops.h
256
long partial_decompress(void *inbuf, unsigned long input_size, void *outbuf,
arch/powerpc/include/asm/hvsi.h
65
unsigned char inbuf[HVSI_INBUF_SIZE];
arch/s390/include/asm/debug.h
91
const char *inbuf);
arch/s390/kernel/debug.c
1678
char *out_buf, size_t out_buf_size, const char *inbuf)
arch/s390/kernel/debug.c
1680
debug_sprintf_entry_t *curr_event = (debug_sprintf_entry_t *)inbuf;
arch/x86/platform/olpc/olpc.c
109
static int olpc_xo1_ec_cmd(u8 cmd, u8 *inbuf, size_t inlen, u8 *outbuf,
arch/x86/platform/olpc/olpc.c
150
if (inbuf && inlen) {
arch/x86/platform/olpc/olpc.c
153
pr_devel("olpc-ec: sending cmd arg 0x%x\n", inbuf[i]);
arch/x86/platform/olpc/olpc.c
154
outb(inbuf[i], 0x68);
crypto/cast5_generic.c
303
void __cast5_encrypt(struct cast5_ctx *c, u8 *outbuf, const u8 *inbuf)
crypto/cast5_generic.c
316
l = get_unaligned_be32(inbuf);
crypto/cast5_generic.c
317
r = get_unaligned_be32(inbuf + 4);
crypto/cast5_generic.c
353
static void cast5_encrypt(struct crypto_tfm *tfm, u8 *outbuf, const u8 *inbuf)
crypto/cast5_generic.c
355
__cast5_encrypt(crypto_tfm_ctx(tfm), outbuf, inbuf);
crypto/cast5_generic.c
358
void __cast5_decrypt(struct cast5_ctx *c, u8 *outbuf, const u8 *inbuf)
crypto/cast5_generic.c
368
l = get_unaligned_be32(inbuf);
crypto/cast5_generic.c
369
r = get_unaligned_be32(inbuf + 4);
crypto/cast5_generic.c
395
static void cast5_decrypt(struct crypto_tfm *tfm, u8 *outbuf, const u8 *inbuf)
crypto/cast5_generic.c
397
__cast5_decrypt(crypto_tfm_ctx(tfm), outbuf, inbuf);
crypto/cast6_generic.c
172
void __cast6_encrypt(const void *ctx, u8 *outbuf, const u8 *inbuf)
crypto/cast6_generic.c
179
block[0] = get_unaligned_be32(inbuf);
crypto/cast6_generic.c
180
block[1] = get_unaligned_be32(inbuf + 4);
crypto/cast6_generic.c
181
block[2] = get_unaligned_be32(inbuf + 8);
crypto/cast6_generic.c
182
block[3] = get_unaligned_be32(inbuf + 12);
crypto/cast6_generic.c
204
static void cast6_encrypt(struct crypto_tfm *tfm, u8 *outbuf, const u8 *inbuf)
crypto/cast6_generic.c
206
__cast6_encrypt(crypto_tfm_ctx(tfm), outbuf, inbuf);
crypto/cast6_generic.c
209
void __cast6_decrypt(const void *ctx, u8 *outbuf, const u8 *inbuf)
crypto/cast6_generic.c
216
block[0] = get_unaligned_be32(inbuf);
crypto/cast6_generic.c
217
block[1] = get_unaligned_be32(inbuf + 4);
crypto/cast6_generic.c
218
block[2] = get_unaligned_be32(inbuf + 8);
crypto/cast6_generic.c
219
block[3] = get_unaligned_be32(inbuf + 12);
crypto/cast6_generic.c
241
static void cast6_decrypt(struct crypto_tfm *tfm, u8 *outbuf, const u8 *inbuf)
crypto/cast6_generic.c
243
__cast6_decrypt(crypto_tfm_ctx(tfm), outbuf, inbuf);
crypto/drbg.c
1573
u8 *inbuf, u32 inlen,
crypto/drbg.c
1580
if (inbuf) {
crypto/drbg.c
1582
sg_set_buf(sg_in, inbuf, inlen);
crypto/drbg.c
279
u8 *inbuf, u32 inbuflen,
crypto/zstd.c
105
zstd_in_buffer inbuf;
crypto/zstd.c
146
inbuf.pos = 0;
crypto/zstd.c
147
inbuf.src = walk.src.virt.addr;
crypto/zstd.c
148
inbuf.size = scur;
crypto/zstd.c
154
num_bytes = zstd_compress_stream(ctx->cctx, &outbuf, &inbuf);
crypto/zstd.c
165
acomp_walk_done_src(&walk, inbuf.pos);
crypto/zstd.c
215
zstd_in_buffer inbuf;
crypto/zstd.c
236
inbuf.pos = 0;
crypto/zstd.c
237
inbuf.size = scur;
crypto/zstd.c
238
inbuf.src = walk.src.virt.addr;
crypto/zstd.c
262
pending_bytes = zstd_decompress_stream(ctx->dctx, &outbuf, &inbuf);
crypto/zstd.c
271
} while (inbuf.pos != scur);
drivers/block/mtip32xx/mtip32xx.c
1700
u8 *inbuf = NULL;
drivers/block/mtip32xx/mtip32xx.c
1736
inbuf = memdup_user(buf + intotal, taskin);
drivers/block/mtip32xx/mtip32xx.c
1737
if (IS_ERR(inbuf)) {
drivers/block/mtip32xx/mtip32xx.c
1738
err = PTR_ERR(inbuf);
drivers/block/mtip32xx/mtip32xx.c
1739
inbuf = NULL;
drivers/block/mtip32xx/mtip32xx.c
1742
inbuf_dma = dma_map_single(&dd->pdev->dev, inbuf,
drivers/block/mtip32xx/mtip32xx.c
1907
if (copy_to_user(buf + intotal, inbuf, taskin)) {
drivers/block/mtip32xx/mtip32xx.c
1920
kfree(inbuf);
drivers/cdx/controller/mcdi.c
246
const struct cdx_dword *inbuf = cmd->inbuf;
drivers/cdx/controller/mcdi.c
281
hdr[0].cdx_u32 |= (__force __le32)(cdx_mcdi_payload_csum(hdr, hdr_len, inbuf, inlen) <<
drivers/cdx/controller/mcdi.c
285
print_hex_dump_debug("MCDI REQ PAYLOAD: ", DUMP_PREFIX_NONE, 32, 4, inbuf, inlen, false);
drivers/cdx/controller/mcdi.c
287
cdx->mcdi_ops->mcdi_request(cdx, hdr, hdr_len, inbuf, inlen);
drivers/cdx/controller/mcdi.c
447
const struct cdx_dword *inbuf, size_t inlen,
drivers/cdx/controller/mcdi.c
481
cmd_item->inbuf = inbuf;
drivers/cdx/controller/mcdi.c
791
const struct cdx_dword *inbuf, size_t inlen,
drivers/cdx/controller/mcdi.c
795
return cdx_mcdi_rpc_sync(cdx, cmd, inbuf, inlen, outbuf, outlen,
drivers/cdx/controller/mcdi.c
820
const struct cdx_dword *inbuf, size_t inlen,
drivers/cdx/controller/mcdi.c
836
cmd_item->inbuf = (struct cdx_dword *)(cmd_item + 1);
drivers/cdx/controller/mcdi.c
837
memcpy(cmd_item + 1, inbuf, inlen);
drivers/cdx/controller/mcdi_functions.c
139
MCDI_DECLARE_BUF(inbuf, MC_CMD_CDX_BUS_UP_IN_LEN);
drivers/cdx/controller/mcdi_functions.c
142
MCDI_SET_DWORD(inbuf, CDX_BUS_UP_IN_BUS, bus_num);
drivers/cdx/controller/mcdi_functions.c
143
ret = cdx_mcdi_rpc(cdx, MC_CMD_CDX_BUS_UP, inbuf, sizeof(inbuf),
drivers/cdx/controller/mcdi_functions.c
151
MCDI_DECLARE_BUF(inbuf, MC_CMD_CDX_BUS_DOWN_IN_LEN);
drivers/cdx/controller/mcdi_functions.c
154
MCDI_SET_DWORD(inbuf, CDX_BUS_DOWN_IN_BUS, bus_num);
drivers/cdx/controller/mcdi_functions.c
155
ret = cdx_mcdi_rpc(cdx, MC_CMD_CDX_BUS_DOWN, inbuf, sizeof(inbuf),
drivers/cdx/controller/mcdi_functions.c
164
MCDI_DECLARE_BUF(inbuf, MC_CMD_CDX_DEVICE_WRITE_MSI_MSG_IN_LEN);
drivers/cdx/controller/mcdi_functions.c
167
MCDI_SET_DWORD(inbuf, CDX_DEVICE_WRITE_MSI_MSG_IN_BUS, bus_num);
drivers/cdx/controller/mcdi_functions.c
168
MCDI_SET_DWORD(inbuf, CDX_DEVICE_WRITE_MSI_MSG_IN_DEVICE, dev_num);
drivers/cdx/controller/mcdi_functions.c
169
MCDI_SET_DWORD(inbuf, CDX_DEVICE_WRITE_MSI_MSG_IN_MSI_VECTOR, msi_vector);
drivers/cdx/controller/mcdi_functions.c
170
MCDI_SET_QWORD(inbuf, CDX_DEVICE_WRITE_MSI_MSG_IN_MSI_ADDRESS, msi_address);
drivers/cdx/controller/mcdi_functions.c
171
MCDI_SET_DWORD(inbuf, CDX_DEVICE_WRITE_MSI_MSG_IN_MSI_DATA, msi_data);
drivers/cdx/controller/mcdi_functions.c
173
ret = cdx_mcdi_rpc(cdx, MC_CMD_CDX_DEVICE_WRITE_MSI_MSG, inbuf, sizeof(inbuf),
drivers/cdx/controller/mcdi_functions.c
181
MCDI_DECLARE_BUF(inbuf, MC_CMD_CDX_DEVICE_RESET_IN_LEN);
drivers/cdx/controller/mcdi_functions.c
184
MCDI_SET_DWORD(inbuf, CDX_DEVICE_RESET_IN_BUS, bus_num);
drivers/cdx/controller/mcdi_functions.c
185
MCDI_SET_DWORD(inbuf, CDX_DEVICE_RESET_IN_DEVICE, dev_num);
drivers/cdx/controller/mcdi_functions.c
187
ret = cdx_mcdi_rpc(cdx, MC_CMD_CDX_DEVICE_RESET, inbuf, sizeof(inbuf),
drivers/cdx/controller/mcdi_functions.c
196
MCDI_DECLARE_BUF(inbuf, MC_CMD_CDX_DEVICE_CONTROL_GET_IN_LEN);
drivers/cdx/controller/mcdi_functions.c
201
MCDI_SET_DWORD(inbuf, CDX_DEVICE_CONTROL_GET_IN_BUS, bus_num);
drivers/cdx/controller/mcdi_functions.c
202
MCDI_SET_DWORD(inbuf, CDX_DEVICE_CONTROL_GET_IN_DEVICE, dev_num);
drivers/cdx/controller/mcdi_functions.c
203
ret = cdx_mcdi_rpc(cdx, MC_CMD_CDX_DEVICE_CONTROL_GET, inbuf,
drivers/cdx/controller/mcdi_functions.c
204
sizeof(inbuf), outbuf, sizeof(outbuf), &outlen);
drivers/cdx/controller/mcdi_functions.c
219
MCDI_DECLARE_BUF(inbuf, MC_CMD_CDX_DEVICE_CONTROL_SET_IN_LEN);
drivers/cdx/controller/mcdi_functions.c
235
MCDI_SET_DWORD(inbuf, CDX_DEVICE_CONTROL_SET_IN_BUS, bus_num);
drivers/cdx/controller/mcdi_functions.c
236
MCDI_SET_DWORD(inbuf, CDX_DEVICE_CONTROL_SET_IN_DEVICE, dev_num);
drivers/cdx/controller/mcdi_functions.c
237
MCDI_SET_DWORD(inbuf, CDX_DEVICE_CONTROL_SET_IN_FLAGS, flags);
drivers/cdx/controller/mcdi_functions.c
238
ret = cdx_mcdi_rpc(cdx, MC_CMD_CDX_DEVICE_CONTROL_SET, inbuf,
drivers/cdx/controller/mcdi_functions.c
239
sizeof(inbuf), NULL, 0, NULL);
drivers/cdx/controller/mcdi_functions.c
30
MCDI_DECLARE_BUF(inbuf, MC_CMD_CDX_BUS_ENUM_DEVICES_IN_LEN);
drivers/cdx/controller/mcdi_functions.c
34
MCDI_SET_DWORD(inbuf, CDX_BUS_ENUM_DEVICES_IN_BUS, bus_num);
drivers/cdx/controller/mcdi_functions.c
36
ret = cdx_mcdi_rpc(cdx, MC_CMD_CDX_BUS_ENUM_DEVICES, inbuf, sizeof(inbuf),
drivers/cdx/controller/mcdi_functions.c
52
MCDI_DECLARE_BUF(inbuf, MC_CMD_CDX_BUS_GET_DEVICE_CONFIG_IN_LEN);
drivers/cdx/controller/mcdi_functions.c
58
MCDI_SET_DWORD(inbuf, CDX_BUS_GET_DEVICE_CONFIG_IN_BUS, bus_num);
drivers/cdx/controller/mcdi_functions.c
59
MCDI_SET_DWORD(inbuf, CDX_BUS_GET_DEVICE_CONFIG_IN_DEVICE, dev_num);
drivers/cdx/controller/mcdi_functions.c
61
ret = cdx_mcdi_rpc(cdx, MC_CMD_CDX_BUS_GET_DEVICE_CONFIG, inbuf, sizeof(inbuf),
drivers/cdx/controller/mcdid.h
32
const struct cdx_dword *inbuf, size_t inlen,
drivers/char/virtio_console.c
1339
port->inbuf = NULL;
drivers/char/virtio_console.c
1723
port->inbuf = get_inbuf(port);
drivers/char/virtio_console.c
175
struct port_buffer *inbuf;
drivers/char/virtio_console.c
465
if (port->inbuf)
drivers/char/virtio_console.c
466
return port->inbuf;
drivers/char/virtio_console.c
516
port->inbuf = NULL;
drivers/char/virtio_console.c
531
port->inbuf = get_inbuf(port);
drivers/char/virtio_console.c
532
if (port->inbuf)
drivers/char/virtio_console.c
663
buf = port->inbuf;
drivers/char/virtio_console.c
685
port->inbuf = NULL;
drivers/comedi/drivers/usbduxfast.c
152
s8 *inbuf;
drivers/comedi/drivers/usbduxfast.c
308
devpriv->inbuf, SIZEINBUF,
drivers/comedi/drivers/usbduxfast.c
806
devpriv->inbuf, SIZEINBUF,
drivers/comedi/drivers/usbduxfast.c
817
devpriv->inbuf, SIZEINBUF,
drivers/comedi/drivers/usbduxfast.c
831
data[i] = ((u16 *)(devpriv->inbuf))[j];
drivers/comedi/drivers/usbduxfast.c
950
devpriv->inbuf = kmalloc(SIZEINBUF, GFP_KERNEL);
drivers/comedi/drivers/usbduxfast.c
951
if (!devpriv->inbuf)
drivers/comedi/drivers/usbduxfast.c
996
kfree(devpriv->inbuf);
drivers/crypto/nx/nx-common-pseries.c
315
unsigned long inbuf, outbuf;
drivers/crypto/nx/nx-common-pseries.c
323
inbuf = (unsigned long)in;
drivers/crypto/nx/nx-common-pseries.c
324
if (check_constraints(inbuf, &inlen, true))
drivers/crypto/nx/nx-common-pseries.c
350
if ((inbuf & NX842_HW_PAGE_MASK) ==
drivers/crypto/nx/nx-common-pseries.c
351
((inbuf + inlen - 1) & NX842_HW_PAGE_MASK)) {
drivers/crypto/nx/nx-common-pseries.c
353
op.in = nx842_get_pa((void *)inbuf);
drivers/crypto/nx/nx-common-pseries.c
357
nx842_build_scatterlist(inbuf, inlen, &slin);
drivers/crypto/nx/nx-common-pseries.c
445
unsigned long inbuf, outbuf;
drivers/crypto/nx/nx-common-pseries.c
454
inbuf = (unsigned long)in;
drivers/crypto/nx/nx-common-pseries.c
455
if (check_constraints(inbuf, &inlen, true))
drivers/crypto/nx/nx-common-pseries.c
482
if ((inbuf & NX842_HW_PAGE_MASK) ==
drivers/crypto/nx/nx-common-pseries.c
483
((inbuf + inlen - 1) & NX842_HW_PAGE_MASK)) {
drivers/crypto/nx/nx-common-pseries.c
485
op.in = nx842_get_pa((void *)inbuf);
drivers/crypto/nx/nx-common-pseries.c
489
nx842_build_scatterlist(inbuf, inlen, &slin);
drivers/crypto/tegra/tegra-se-aes.c
1034
memcpy(rctx->inbuf.buf, nonce, 16);
drivers/crypto/tegra/tegra-se-aes.c
1039
memcpy(rctx->inbuf.buf + offset, adata, alen);
drivers/crypto/tegra/tegra-se-aes.c
1042
scatterwalk_map_and_copy(rctx->inbuf.buf + offset,
drivers/crypto/tegra/tegra-se-aes.c
1046
offset += tegra_ccm_add_padding(rctx->inbuf.buf + offset,
drivers/crypto/tegra/tegra-se-aes.c
1105
scatterwalk_map_and_copy(rctx->inbuf.buf + offset,
drivers/crypto/tegra/tegra-se-aes.c
1109
offset += tegra_ccm_add_padding(rctx->inbuf.buf + offset, rctx->cryptlen);
drivers/crypto/tegra/tegra-se-aes.c
1111
rctx->inbuf.size = offset;
drivers/crypto/tegra/tegra-se-aes.c
1133
memcpy(rctx->inbuf.buf, rctx->authdata, rctx->authsize);
drivers/crypto/tegra/tegra-se-aes.c
1135
scatterwalk_map_and_copy(rctx->inbuf.buf, sg,
drivers/crypto/tegra/tegra-se-aes.c
1140
offset += tegra_ccm_add_padding(rctx->inbuf.buf + offset, rctx->authsize);
drivers/crypto/tegra/tegra-se-aes.c
1144
scatterwalk_map_and_copy(rctx->inbuf.buf + offset, sg,
drivers/crypto/tegra/tegra-se-aes.c
1147
offset += tegra_ccm_add_padding(rctx->inbuf.buf + offset, rctx->cryptlen);
drivers/crypto/tegra/tegra-se-aes.c
1150
rctx->inbuf.size = offset;
drivers/crypto/tegra/tegra-se-aes.c
1213
rctx->inbuf.size = rctx->assoclen + rctx->authsize + rctx->cryptlen + 100;
drivers/crypto/tegra/tegra-se-aes.c
1214
rctx->inbuf.buf = dma_alloc_coherent(ctx->se->dev, rctx->inbuf.size,
drivers/crypto/tegra/tegra-se-aes.c
1215
&rctx->inbuf.addr, GFP_KERNEL);
drivers/crypto/tegra/tegra-se-aes.c
1216
if (!rctx->inbuf.buf)
drivers/crypto/tegra/tegra-se-aes.c
1257
dma_free_coherent(ctx->se->dev, rctx->inbuf.size,
drivers/crypto/tegra/tegra-se-aes.c
1262
rctx->inbuf.buf, rctx->inbuf.addr);
drivers/crypto/tegra/tegra-se-aes.c
1299
rctx->inbuf.size = rctx->assoclen + rctx->authsize + rctx->cryptlen;
drivers/crypto/tegra/tegra-se-aes.c
1300
rctx->inbuf.buf = dma_alloc_coherent(ctx->se->dev, rctx->inbuf.size,
drivers/crypto/tegra/tegra-se-aes.c
1301
&rctx->inbuf.addr, GFP_KERNEL);
drivers/crypto/tegra/tegra-se-aes.c
1302
if (!rctx->inbuf.buf) {
drivers/crypto/tegra/tegra-se-aes.c
1349
dma_free_coherent(ctx->se->dev, rctx->inbuf.size,
drivers/crypto/tegra/tegra-se-aes.c
1350
rctx->inbuf.buf, rctx->inbuf.addr);
drivers/crypto/tegra/tegra-se-aes.c
56
struct tegra_se_datbuf inbuf;
drivers/crypto/tegra/tegra-se-aes.c
634
cpuvaddr[i++] = lower_32_bits(rctx->inbuf.addr);
drivers/crypto/tegra/tegra-se-aes.c
635
cpuvaddr[i++] = SE_ADDR_HI_MSB(upper_32_bits(rctx->inbuf.addr)) |
drivers/crypto/tegra/tegra-se-aes.c
690
cpuvaddr[i++] = lower_32_bits(rctx->inbuf.addr);
drivers/crypto/tegra/tegra-se-aes.c
691
cpuvaddr[i++] = SE_ADDR_HI_MSB(upper_32_bits(rctx->inbuf.addr)) |
drivers/crypto/tegra/tegra-se-aes.c
766
scatterwalk_map_and_copy(rctx->inbuf.buf,
drivers/crypto/tegra/tegra-se-aes.c
783
scatterwalk_map_and_copy(rctx->inbuf.buf, rctx->src_sg,
drivers/crypto/tegra/tegra-se-aes.c
864
data_count = (rctx->inbuf.size / AES_BLOCK_SIZE) - 1;
drivers/crypto/tegra/tegra-se-aes.c
873
cpuvaddr[i++] = lower_32_bits(rctx->inbuf.addr);
drivers/crypto/tegra/tegra-se-aes.c
874
cpuvaddr[i++] = SE_ADDR_HI_MSB(upper_32_bits(rctx->inbuf.addr)) |
drivers/crypto/tegra/tegra-se-aes.c
875
SE_ADDR_HI_SZ(rctx->inbuf.size);
drivers/crypto/tegra/tegra-se-aes.c
905
cpuvaddr[i++] = (rctx->inbuf.size / AES_BLOCK_SIZE) - 1;
drivers/crypto/tegra/tegra-se-aes.c
911
cpuvaddr[i++] = lower_32_bits(rctx->inbuf.addr);
drivers/crypto/tegra/tegra-se-aes.c
912
cpuvaddr[i++] = SE_ADDR_HI_MSB(upper_32_bits(rctx->inbuf.addr)) |
drivers/crypto/tegra/tegra-se-aes.c
913
SE_ADDR_HI_SZ(rctx->inbuf.size);
drivers/crypto/tegra/tegra-se-aes.c
918
SE_ADDR_HI_SZ(rctx->inbuf.size);
drivers/edac/versalnet_edac.c
547
MCDI_DECLARE_BUF(inbuf, MC_GET_DDR_CONFIG_IN_LEN);
drivers/edac/versalnet_edac.c
550
MCDI_SET_DWORD(inbuf, EDAC_GET_DDR_CONFIG_IN_CONTROLLER_INDEX, index);
drivers/edac/versalnet_edac.c
552
ret = cdx_mcdi_rpc(amd_mcdi, MC_CMD_EDAC_GET_DDR_CONFIG, inbuf, sizeof(inbuf),
drivers/firmware/qcom/qcom_scm.c
2403
int qcom_scm_qtee_invoke_smc(phys_addr_t inbuf, size_t inbuf_size,
drivers/firmware/qcom/qcom_scm.c
2411
.args[0] = inbuf,
drivers/fwctl/main.c
117
void *inbuf __free(kvfree) = kvzalloc(cmd->in_len, GFP_KERNEL_ACCOUNT);
drivers/fwctl/main.c
118
if (!inbuf)
drivers/fwctl/main.c
120
if (copy_from_user(inbuf, u64_to_user_ptr(cmd->in), cmd->in_len))
drivers/fwctl/main.c
125
ucmd->uctx, cmd->scope, inbuf, cmd->in_len, &out_len);
drivers/fwctl/main.c
128
if (outbuf == inbuf) {
drivers/fwctl/main.c
130
inbuf = NULL;
drivers/gpib/lpvo_usb_gpib/lpvo_usb_gpib.c
140
char *inbuf;
drivers/gpib/lpvo_usb_gpib/lpvo_usb_gpib.c
309
DIA_LOG(2, "-> %x\n", b->inbuf[b->last - b->nchar]);
drivers/gpib/lpvo_usb_gpib/lpvo_usb_gpib.c
310
return b->inbuf[b->last - b->nchar--];
drivers/gpib/lpvo_usb_gpib/lpvo_usb_gpib.c
313
b->nchar = skel_do_read(GPIB_DEV, b->inbuf, INBUF_SIZE);
drivers/gpib/lpvo_usb_gpib/lpvo_usb_gpib.c
321
DIA_LOG(2, "--> %x\n", b->inbuf[b->last - b->nchar]);
drivers/gpib/lpvo_usb_gpib/lpvo_usb_gpib.c
322
return b->inbuf[b->last - b->nchar--];
drivers/gpib/lpvo_usb_gpib/lpvo_usb_gpib.c
765
char inbuf[2] = {0, 0};
drivers/gpib/lpvo_usb_gpib/lpvo_usb_gpib.c
775
retval = skel_do_read(GPIB_DEV, inbuf, 1);
drivers/gpib/lpvo_usb_gpib/lpvo_usb_gpib.c
776
retval += skel_do_read(GPIB_DEV, inbuf + 1, 1);
drivers/gpib/lpvo_usb_gpib/lpvo_usb_gpib.c
781
inbuf[0], inbuf[1],
drivers/gpib/lpvo_usb_gpib/lpvo_usb_gpib.c
786
if (retval == 2 && inbuf[1] == ACK) {
drivers/gpib/lpvo_usb_gpib/lpvo_usb_gpib.c
787
buffer[0] = inbuf[0];
drivers/gpib/lpvo_usb_gpib/lpvo_usb_gpib.c
799
b.inbuf = kmalloc(INBUF_SIZE, GFP_KERNEL);
drivers/gpib/lpvo_usb_gpib/lpvo_usb_gpib.c
800
if (!b.inbuf)
drivers/gpib/lpvo_usb_gpib/lpvo_usb_gpib.c
886
kfree(b.inbuf);
drivers/hid/i2c-hid/i2c-hid-core.c
101
u8 *inbuf; /* Input buffer */
drivers/hid/i2c-hid/i2c-hid-core.c
533
ret = i2c_master_recv(ihid->client, ihid->inbuf, size);
drivers/hid/i2c-hid/i2c-hid-core.c
544
ret_size = le16_to_cpup((__le16 *)ihid->inbuf);
drivers/hid/i2c-hid/i2c-hid-core.c
561
*(__le16 *)ihid->inbuf = cpu_to_le16(size);
drivers/hid/i2c-hid/i2c-hid-core.c
571
i2c_hid_dbg(ihid, "input: %*ph\n", ret_size, ihid->inbuf);
drivers/hid/i2c-hid/i2c-hid-core.c
578
ihid->inbuf + sizeof(__le16),
drivers/hid/i2c-hid/i2c-hid-core.c
620
kfree(ihid->inbuf);
drivers/hid/i2c-hid/i2c-hid-core.c
623
ihid->inbuf = NULL;
drivers/hid/i2c-hid/i2c-hid-core.c
644
ihid->inbuf = kzalloc(report_size, GFP_KERNEL);
drivers/hid/i2c-hid/i2c-hid-core.c
648
if (!ihid->inbuf || !ihid->rawbuf || !ihid->cmdbuf) {
drivers/hid/usbhid/hid-core.c
1155
usb_fill_int_urb(usbhid->urbin, dev, pipe, usbhid->inbuf, insize,
drivers/hid/usbhid/hid-core.c
857
usbhid->inbuf = usb_alloc_coherent(dev, usbhid->bufsize, GFP_KERNEL,
drivers/hid/usbhid/hid-core.c
864
if (!usbhid->inbuf || !usbhid->outbuf || !usbhid->cr ||
drivers/hid/usbhid/hid-core.c
975
usb_free_coherent(dev, usbhid->bufsize, usbhid->inbuf, usbhid->inbuf_dma);
drivers/hid/usbhid/usbhid.h
65
char *inbuf; /* Input buffer */
drivers/iio/dac/max5821.c
174
u8 inbuf[2];
drivers/iio/dac/max5821.c
193
ret = i2c_master_recv(client, inbuf, 2);
drivers/iio/dac/max5821.c
204
*val = ((inbuf[0] & 0x0f) << 6) | (inbuf[1] >> 2);
drivers/iio/dac/mcp4725.c
394
u8 inbuf[4];
drivers/iio/dac/mcp4725.c
464
err = i2c_master_recv(client, inbuf, info->dac_reg_offset);
drivers/iio/dac/mcp4725.c
470
pd = (inbuf[0] >> 1) & 0x3;
drivers/iio/dac/mcp4725.c
473
data->dac_value = (inbuf[1] << 4) | (inbuf[2] >> 4);
drivers/iio/dac/mcp4725.c
475
ref = (inbuf[3] >> 3) & 0x3;
drivers/iio/dac/mcp4728.c
114
u8 inbuf[3];
drivers/iio/dac/mcp4728.c
157
ret = i2c_master_recv(data->client, inbuf, 3);
drivers/iio/dac/mcp4728.c
163
if (FIELD_GET(MCP4728_RDY_MASK, inbuf[0]))
drivers/iio/dac/mcp4728.c
497
u8 inbuf[MCP4728_READ_RESPONSE_LEN];
drivers/iio/dac/mcp4728.c
501
ret = i2c_master_recv(data->client, inbuf, MCP4728_READ_RESPONSE_LEN);
drivers/iio/dac/mcp4728.c
513
u8 r2 = inbuf[i * 6 + 1];
drivers/iio/dac/mcp4728.c
514
u8 r3 = inbuf[i * 6 + 2];
drivers/infiniband/core/ucma.c
1062
const char __user *inbuf,
drivers/infiniband/core/ucma.c
1070
if (copy_from_user(&cmd, inbuf, sizeof(cmd)))
drivers/infiniband/core/ucma.c
1118
static ssize_t ucma_connect(struct ucma_file *file, const char __user *inbuf,
drivers/infiniband/core/ucma.c
1131
if (copy_from_user(&cmd, inbuf, in_size))
drivers/infiniband/core/ucma.c
1154
static ssize_t ucma_listen(struct ucma_file *file, const char __user *inbuf,
drivers/infiniband/core/ucma.c
1161
if (copy_from_user(&cmd, inbuf, sizeof(cmd)))
drivers/infiniband/core/ucma.c
1179
static ssize_t ucma_accept(struct ucma_file *file, const char __user *inbuf,
drivers/infiniband/core/ucma.c
1192
if (copy_from_user(&cmd, inbuf, in_size))
drivers/infiniband/core/ucma.c
1226
static ssize_t ucma_reject(struct ucma_file *file, const char __user *inbuf,
drivers/infiniband/core/ucma.c
1233
if (copy_from_user(&cmd, inbuf, sizeof(cmd)))
drivers/infiniband/core/ucma.c
1259
static ssize_t ucma_disconnect(struct ucma_file *file, const char __user *inbuf,
drivers/infiniband/core/ucma.c
1266
if (copy_from_user(&cmd, inbuf, sizeof(cmd)))
drivers/infiniband/core/ucma.c
1281
const char __user *inbuf,
drivers/infiniband/core/ucma.c
1293
if (copy_from_user(&cmd, inbuf, sizeof(cmd)))
drivers/infiniband/core/ucma.c
1447
static ssize_t ucma_set_option(struct ucma_file *file, const char __user *inbuf,
drivers/infiniband/core/ucma.c
1455
if (copy_from_user(&cmd, inbuf, sizeof(cmd)))
drivers/infiniband/core/ucma.c
1481
static ssize_t ucma_notify(struct ucma_file *file, const char __user *inbuf,
drivers/infiniband/core/ucma.c
1488
if (copy_from_user(&cmd, inbuf, sizeof(cmd)))
drivers/infiniband/core/ucma.c
1590
const char __user *inbuf,
drivers/infiniband/core/ucma.c
1596
if (copy_from_user(&cmd, inbuf, sizeof(cmd)))
drivers/infiniband/core/ucma.c
1613
const char __user *inbuf,
drivers/infiniband/core/ucma.c
1618
if (copy_from_user(&cmd, inbuf, sizeof(cmd)))
drivers/infiniband/core/ucma.c
1628
const char __user *inbuf,
drivers/infiniband/core/ucma.c
1639
if (copy_from_user(&cmd, inbuf, sizeof(cmd)))
drivers/infiniband/core/ucma.c
1679
const char __user *inbuf,
drivers/infiniband/core/ucma.c
1690
if (copy_from_user(&cmd, inbuf, sizeof(cmd)))
drivers/infiniband/core/ucma.c
1749
const char __user *inbuf, int in_len,
drivers/infiniband/core/ucma.c
1758
if (copy_from_user(&cmd, inbuf, sizeof(cmd)))
drivers/infiniband/core/ucma.c
1798
const char __user *inbuf,
drivers/infiniband/core/ucma.c
375
static ssize_t ucma_get_event(struct ucma_file *file, const char __user *inbuf,
drivers/infiniband/core/ucma.c
389
if (copy_from_user(&cmd, inbuf, sizeof(cmd)))
drivers/infiniband/core/ucma.c
445
static ssize_t ucma_create_id(struct ucma_file *file, const char __user *inbuf,
drivers/infiniband/core/ucma.c
458
if (copy_from_user(&cmd, inbuf, sizeof(cmd)))
drivers/infiniband/core/ucma.c
597
static ssize_t ucma_destroy_id(struct ucma_file *file, const char __user *inbuf,
drivers/infiniband/core/ucma.c
608
if (copy_from_user(&cmd, inbuf, sizeof(cmd)))
drivers/infiniband/core/ucma.c
631
static ssize_t ucma_bind_ip(struct ucma_file *file, const char __user *inbuf,
drivers/infiniband/core/ucma.c
638
if (copy_from_user(&cmd, inbuf, sizeof(cmd)))
drivers/infiniband/core/ucma.c
656
static ssize_t ucma_bind(struct ucma_file *file, const char __user *inbuf,
drivers/infiniband/core/ucma.c
663
if (copy_from_user(&cmd, inbuf, sizeof(cmd)))
drivers/infiniband/core/ucma.c
682
const char __user *inbuf,
drivers/infiniband/core/ucma.c
689
if (copy_from_user(&cmd, inbuf, sizeof(cmd)))
drivers/infiniband/core/ucma.c
709
const char __user *inbuf,
drivers/infiniband/core/ucma.c
716
if (copy_from_user(&cmd, inbuf, sizeof(cmd)))
drivers/infiniband/core/ucma.c
737
const char __user *inbuf, int in_len,
drivers/infiniband/core/ucma.c
744
if (copy_from_user(&cmd, inbuf, sizeof(cmd)))
drivers/infiniband/core/ucma.c
759
const char __user *inbuf,
drivers/infiniband/core/ucma.c
766
if (copy_from_user(&cmd, inbuf, sizeof(cmd)))
drivers/infiniband/core/ucma.c
845
const char __user *inbuf,
drivers/infiniband/core/ucma.c
857
if (copy_from_user(&cmd, inbuf, sizeof(cmd)))
drivers/infiniband/core/uverbs.h
60
udata->inbuf = ibuf;
drivers/infiniband/core/uverbs_cmd.c
103
if (!ib_is_buffer_cleared(attrs->ucore.inbuf + req_len,
drivers/infiniband/core/uverbs_cmd.c
139
if (copy_from_user(req, attrs->ucore.inbuf, req_len))
drivers/infiniband/core/uverbs_cmd.c
142
iter->cur = attrs->ucore.inbuf + req_len;
drivers/infiniband/core/uverbs_cmd.c
143
iter->end = attrs->ucore.inbuf + attrs->ucore.inlen;
drivers/infiniband/core/uverbs_cmd.c
95
if (copy_from_user(req, attrs->ucore.inbuf,
drivers/infiniband/core/uverbs_ioctl.c
724
udata->inbuf =
drivers/infiniband/core/uverbs_ioctl.c
728
udata->inbuf = u64_to_user_ptr(in->ptr_attr.data);
drivers/infiniband/core/uverbs_ioctl.c
730
udata->inbuf = NULL;
drivers/infiniband/core/uverbs_main.c
628
bundle.driver_udata.inbuf = buf + in_len;
drivers/infiniband/core/uverbs_main.c
630
bundle.driver_udata.inbuf = NULL;
drivers/input/touchscreen/ilitek_ts_i2c.c
219
u16 idx, u8 *inbuf, u8 *outbuf)
drivers/input/touchscreen/ilitek_ts_i2c.c
228
error = ts->ptl_cb_func[idx].func(ts, cmd, inbuf, outbuf);
drivers/input/touchscreen/ilitek_ts_i2c.c
236
u16 cmd, u8 *inbuf, u8 *outbuf)
drivers/input/touchscreen/ilitek_ts_i2c.c
253
u16 cmd, u8 *inbuf, u8 *outbuf)
drivers/input/touchscreen/ilitek_ts_i2c.c
271
u16 cmd, u8 *inbuf, u8 *outbuf)
drivers/input/touchscreen/ilitek_ts_i2c.c
287
u16 cmd, u8 *inbuf, u8 *outbuf)
drivers/input/touchscreen/ilitek_ts_i2c.c
306
u16 cmd, u8 *inbuf, u8 *outbuf)
drivers/input/touchscreen/ilitek_ts_i2c.c
327
u16 cmd, u8 *inbuf, u8 *outbuf)
drivers/input/touchscreen/ilitek_ts_i2c.c
342
u16 cmd, u8 *inbuf, u8 *outbuf)
drivers/input/touchscreen/ilitek_ts_i2c.c
351
u16 cmd, u8 *inbuf, u8 *outbuf)
drivers/input/touchscreen/ilitek_ts_i2c.c
74
int (*func)(struct ilitek_ts_data *ts, u16 cmd, u8 *inbuf, u8 *outbuf);
drivers/media/rc/ati_remote.c
240
unsigned char *inbuf;
drivers/media/rc/ati_remote.c
480
unsigned char *data= ati_remote->inbuf;
drivers/media/rc/ati_remote.c
685
ati_remote->inbuf = usb_alloc_coherent(udev, DATA_BUFSIZE, GFP_ATOMIC,
drivers/media/rc/ati_remote.c
687
if (!ati_remote->inbuf)
drivers/media/rc/ati_remote.c
715
ati_remote->inbuf, ati_remote->inbuf_dma);
drivers/media/rc/ati_remote.c
777
usb_fill_int_urb(ati_remote->irq_urb, udev, pipe, ati_remote->inbuf,
drivers/media/rc/xbox_remote.c
177
usb_fill_int_urb(xbox_remote->irq_urb, udev, pipe, xbox_remote->inbuf,
drivers/media/rc/xbox_remote.c
221
xbox_remote->inbuf = kzalloc(DATA_BUFSIZE, GFP_KERNEL);
drivers/media/rc/xbox_remote.c
222
if (!xbox_remote->inbuf)
drivers/media/rc/xbox_remote.c
270
kfree(xbox_remote->inbuf);
drivers/media/rc/xbox_remote.c
296
kfree(xbox_remote->inbuf);
drivers/media/rc/xbox_remote.c
58
u8 *inbuf;
drivers/media/rc/xbox_remote.c
92
unsigned char *data = xbox_remote->inbuf;
drivers/misc/fastrpc.c
1305
} inbuf;
drivers/misc/fastrpc.c
1353
inbuf.client_id = fl->client_id;
drivers/misc/fastrpc.c
1354
inbuf.namelen = init.namelen;
drivers/misc/fastrpc.c
1355
inbuf.pageslen = 0;
drivers/misc/fastrpc.c
1358
args[0].ptr = (u64)(uintptr_t)&inbuf;
drivers/misc/fastrpc.c
1359
args[0].length = sizeof(inbuf);
drivers/misc/fastrpc.c
1363
args[1].length = inbuf.namelen;
drivers/misc/fastrpc.c
1430
} inbuf;
drivers/misc/fastrpc.c
1456
inbuf.client_id = fl->client_id;
drivers/misc/fastrpc.c
1457
inbuf.namelen = strlen(current->comm) + 1;
drivers/misc/fastrpc.c
1458
inbuf.filelen = init.filelen;
drivers/misc/fastrpc.c
1459
inbuf.pageslen = 1;
drivers/misc/fastrpc.c
1460
inbuf.attrs = init.attrs;
drivers/misc/fastrpc.c
1461
inbuf.siglen = init.siglen;
drivers/misc/fastrpc.c
1478
args[0].ptr = (u64)(uintptr_t)&inbuf;
drivers/misc/fastrpc.c
1479
args[0].length = sizeof(inbuf);
drivers/misc/fastrpc.c
1483
args[1].length = inbuf.namelen;
drivers/misc/fastrpc.c
1487
args[2].length = inbuf.filelen;
drivers/misc/fastrpc.c
1497
args[4].ptr = (u64)(uintptr_t)&inbuf.attrs;
drivers/misc/fastrpc.c
1498
args[4].length = sizeof(inbuf.attrs);
drivers/misc/fastrpc.c
1501
args[5].ptr = (u64)(uintptr_t) &inbuf.siglen;
drivers/misc/fastrpc.c
1502
args[5].length = sizeof(inbuf.siglen);
drivers/mtd/nand/raw/rockchip-nand-controller.c
337
u8 *inbuf = NULL;
drivers/mtd/nand/raw/rockchip-nand-controller.c
369
inbuf = instr->ctx.data.buf.in + start;
drivers/mtd/nand/raw/rockchip-nand-controller.c
370
rk_nfc_read_buf(nfc, inbuf, cnt);
drivers/mtd/nand/raw/sunxi_nand.c
2153
void *inbuf = NULL;
drivers/mtd/nand/raw/sunxi_nand.c
2200
inbuf = instr->ctx.data.buf.in + start;
drivers/mtd/nand/raw/sunxi_nand.c
2237
if (inbuf)
drivers/mtd/nand/raw/sunxi_nand.c
2238
memcpy_fromio(inbuf, nfc->regs + NFC_RAM0_BASE, cnt);
drivers/net/ethernet/mellanox/mlx4/fw.c
2920
struct mlx4_access_reg *inbuf, *outbuf;
drivers/net/ethernet/mellanox/mlx4/fw.c
2933
inbuf = inbox->buf;
drivers/net/ethernet/mellanox/mlx4/fw.c
2936
inbuf->constant1 = cpu_to_be16(0x1<<11 | 0x4);
drivers/net/ethernet/mellanox/mlx4/fw.c
2937
inbuf->constant2 = 0x1;
drivers/net/ethernet/mellanox/mlx4/fw.c
2938
inbuf->reg_id = cpu_to_be16(reg_id);
drivers/net/ethernet/mellanox/mlx4/fw.c
2939
inbuf->method = method & MLX4_ACCESS_REG_METHOD_MASK;
drivers/net/ethernet/mellanox/mlx4/fw.c
2941
reg_len = min(reg_len, (u16)(sizeof(inbuf->reg_data)));
drivers/net/ethernet/mellanox/mlx4/fw.c
2942
inbuf->len_const =
drivers/net/ethernet/mellanox/mlx4/fw.c
2946
memcpy(inbuf->reg_data, reg_data, reg_len);
drivers/net/ethernet/mellanox/mlx4/fw.c
2999
struct mlx4_access_reg *inbuf = inbox->buf;
drivers/net/ethernet/mellanox/mlx4/fw.c
3000
u8 method = inbuf->method & MLX4_ACCESS_REG_METHOD_MASK;
drivers/net/ethernet/mellanox/mlx4/fw.c
3001
u16 reg_id = be16_to_cpu(inbuf->reg_id);
drivers/net/ethernet/mellanox/mlx4/fw.c
3009
(struct mlx4_ptys_reg *)inbuf->reg_data;
drivers/net/ethernet/mellanox/mlx4/port.c
1039
u8 *inbuf, *outbuf;
drivers/net/ethernet/mellanox/mlx4/port.c
1052
inbuf = inmailbox->buf;
drivers/net/ethernet/mellanox/mlx4/port.c
1054
inbuf[0] = 1;
drivers/net/ethernet/mellanox/mlx4/port.c
1055
inbuf[1] = 1;
drivers/net/ethernet/mellanox/mlx4/port.c
1056
inbuf[2] = 1;
drivers/net/ethernet/mellanox/mlx4/port.c
1057
inbuf[3] = 1;
drivers/net/ethernet/mellanox/mlx4/port.c
1058
*(__be16 *) (&inbuf[16]) = cpu_to_be16(0x0015);
drivers/net/ethernet/mellanox/mlx4/port.c
1059
*(__be32 *) (&inbuf[20]) = cpu_to_be32(port);
drivers/net/ethernet/sfc/ef10.c
1024
MCDI_DECLARE_BUF(inbuf, MC_CMD_VADAPTOR_ALLOC_IN_LEN);
drivers/net/ethernet/sfc/ef10.c
1026
MCDI_SET_DWORD(inbuf, VADAPTOR_ALLOC_IN_UPSTREAM_PORT_ID, port_id);
drivers/net/ethernet/sfc/ef10.c
1027
return efx_mcdi_rpc(efx, MC_CMD_VADAPTOR_ALLOC, inbuf, sizeof(inbuf),
drivers/net/ethernet/sfc/ef10.c
1033
MCDI_DECLARE_BUF(inbuf, MC_CMD_VADAPTOR_FREE_IN_LEN);
drivers/net/ethernet/sfc/ef10.c
1035
MCDI_SET_DWORD(inbuf, VADAPTOR_FREE_IN_UPSTREAM_PORT_ID, port_id);
drivers/net/ethernet/sfc/ef10.c
1036
return efx_mcdi_rpc(efx, MC_CMD_VADAPTOR_FREE, inbuf, sizeof(inbuf),
drivers/net/ethernet/sfc/ef10.c
1043
MCDI_DECLARE_BUF(inbuf, MC_CMD_VPORT_ADD_MAC_ADDRESS_IN_LEN);
drivers/net/ethernet/sfc/ef10.c
1045
MCDI_SET_DWORD(inbuf, VPORT_ADD_MAC_ADDRESS_IN_VPORT_ID, port_id);
drivers/net/ethernet/sfc/ef10.c
1046
ether_addr_copy(MCDI_PTR(inbuf, VPORT_ADD_MAC_ADDRESS_IN_MACADDR), mac);
drivers/net/ethernet/sfc/ef10.c
1048
return efx_mcdi_rpc(efx, MC_CMD_VPORT_ADD_MAC_ADDRESS, inbuf,
drivers/net/ethernet/sfc/ef10.c
1049
sizeof(inbuf), NULL, 0, NULL);
drivers/net/ethernet/sfc/ef10.c
1055
MCDI_DECLARE_BUF(inbuf, MC_CMD_VPORT_DEL_MAC_ADDRESS_IN_LEN);
drivers/net/ethernet/sfc/ef10.c
1057
MCDI_SET_DWORD(inbuf, VPORT_DEL_MAC_ADDRESS_IN_VPORT_ID, port_id);
drivers/net/ethernet/sfc/ef10.c
1058
ether_addr_copy(MCDI_PTR(inbuf, VPORT_DEL_MAC_ADDRESS_IN_MACADDR), mac);
drivers/net/ethernet/sfc/ef10.c
1060
return efx_mcdi_rpc(efx, MC_CMD_VPORT_DEL_MAC_ADDRESS, inbuf,
drivers/net/ethernet/sfc/ef10.c
1061
sizeof(inbuf), NULL, 0, NULL);
drivers/net/ethernet/sfc/ef10.c
185
MCDI_DECLARE_BUF(inbuf, MC_CMD_LICENSING_V3_IN_LEN);
drivers/net/ethernet/sfc/ef10.c
1896
MCDI_DECLARE_BUF(inbuf, MC_CMD_MAC_STATS_IN_LEN);
drivers/net/ethernet/sfc/ef10.c
191
MCDI_SET_DWORD(inbuf, LICENSING_V3_IN_OP,
drivers/net/ethernet/sfc/ef10.c
1919
MCDI_SET_QWORD(inbuf, MAC_STATS_IN_DMA_ADDR, stats_buf.dma_addr);
drivers/net/ethernet/sfc/ef10.c
1920
MCDI_POPULATE_DWORD_1(inbuf, MAC_STATS_IN_CMD,
drivers/net/ethernet/sfc/ef10.c
1922
MCDI_SET_DWORD(inbuf, MAC_STATS_IN_DMA_LEN, dma_len);
drivers/net/ethernet/sfc/ef10.c
1923
MCDI_SET_DWORD(inbuf, MAC_STATS_IN_PORT_ID, EVB_PORT_ID_ASSIGNED);
drivers/net/ethernet/sfc/ef10.c
1925
rc = efx_mcdi_rpc_quiet(efx, MC_CMD_MAC_STATS, inbuf, sizeof(inbuf),
drivers/net/ethernet/sfc/ef10.c
193
rc = efx_mcdi_rpc_quiet(efx, MC_CMD_LICENSING_V3, inbuf, sizeof(inbuf),
drivers/net/ethernet/sfc/ef10.c
1932
sizeof(inbuf), NULL, 0, rc);
drivers/net/ethernet/sfc/ef10.c
1996
MCDI_DECLARE_BUF(inbuf, MC_CMD_SET_EVQ_TMR_IN_LEN);
drivers/net/ethernet/sfc/ef10.c
1999
MCDI_SET_DWORD(inbuf, SET_EVQ_TMR_IN_INSTANCE,
drivers/net/ethernet/sfc/ef10.c
2001
MCDI_SET_DWORD(inbuf, SET_EVQ_TMR_IN_TMR_LOAD_REQ_NS, ns);
drivers/net/ethernet/sfc/ef10.c
2002
MCDI_SET_DWORD(inbuf, SET_EVQ_TMR_IN_TMR_RELOAD_REQ_NS, ns);
drivers/net/ethernet/sfc/ef10.c
2003
MCDI_SET_DWORD(inbuf, SET_EVQ_TMR_IN_TMR_MODE, mode);
drivers/net/ethernet/sfc/ef10.c
2006
inbuf, sizeof(inbuf), 0, NULL, 0);
drivers/net/ethernet/sfc/ef10.c
2194
MCDI_DECLARE_BUF(inbuf, MC_CMD_TRIGGER_INTERRUPT_IN_LEN);
drivers/net/ethernet/sfc/ef10.c
2202
MCDI_SET_DWORD(inbuf, TRIGGER_INTERRUPT_IN_INTR_LEVEL, efx->irq_level);
drivers/net/ethernet/sfc/ef10.c
2204
inbuf, sizeof(inbuf), NULL, 0, NULL);
drivers/net/ethernet/sfc/ef10.c
2629
MCDI_DECLARE_BUF(inbuf, MC_CMD_DRIVER_EVENT_IN_LEN);
drivers/net/ethernet/sfc/ef10.c
2636
MCDI_SET_DWORD(inbuf, DRIVER_EVENT_IN_EVQ, channel->channel);
drivers/net/ethernet/sfc/ef10.c
2641
memcpy(MCDI_PTR(inbuf, DRIVER_EVENT_IN_DATA), &event.u64[0],
drivers/net/ethernet/sfc/ef10.c
2645
inbuf, sizeof(inbuf), 0,
drivers/net/ethernet/sfc/ef10.c
3207
MCDI_DECLARE_BUF(inbuf, MC_CMD_DRIVER_EVENT_IN_LEN);
drivers/net/ethernet/sfc/ef10.c
3216
MCDI_SET_DWORD(inbuf, DRIVER_EVENT_IN_EVQ, channel->channel);
drivers/net/ethernet/sfc/ef10.c
3221
memcpy(MCDI_PTR(inbuf, DRIVER_EVENT_IN_DATA), &event.u64[0],
drivers/net/ethernet/sfc/ef10.c
3224
rc = efx_mcdi_rpc(efx, MC_CMD_DRIVER_EVENT, inbuf, sizeof(inbuf),
drivers/net/ethernet/sfc/ef10.c
3305
MCDI_DECLARE_BUF(inbuf, MC_CMD_VADAPTOR_SET_MAC_IN_LEN);
drivers/net/ethernet/sfc/ef10.c
3339
ether_addr_copy(MCDI_PTR(inbuf, VADAPTOR_SET_MAC_IN_MACADDR),
drivers/net/ethernet/sfc/ef10.c
3341
MCDI_SET_DWORD(inbuf, VADAPTOR_SET_MAC_IN_UPSTREAM_PORT_ID,
drivers/net/ethernet/sfc/ef10.c
3343
rc = efx_mcdi_rpc_quiet(efx, MC_CMD_VADAPTOR_SET_MAC, inbuf,
drivers/net/ethernet/sfc/ef10.c
3344
sizeof(inbuf), NULL, 0, NULL);
drivers/net/ethernet/sfc/ef10.c
3366
sizeof(inbuf), NULL, 0, rc);
drivers/net/ethernet/sfc/ef10.c
3385
MCDI_DECLARE_BUF(inbuf, MC_CMD_START_BIST_IN_LEN);
drivers/net/ethernet/sfc/ef10.c
3387
MCDI_SET_DWORD(inbuf, START_BIST_IN_TYPE, bist_type);
drivers/net/ethernet/sfc/ef10.c
3388
return efx_mcdi_rpc(efx, MC_CMD_START_BIST, inbuf, sizeof(inbuf),
drivers/net/ethernet/sfc/ef10.c
347
MCDI_DECLARE_BUF(inbuf, MC_CMD_VPORT_GET_MAC_ADDRESSES_IN_LEN);
drivers/net/ethernet/sfc/ef10.c
3501
MCDI_DECLARE_BUF(inbuf, MC_CMD_NVRAM_METADATA_IN_LEN);
drivers/net/ethernet/sfc/ef10.c
352
MCDI_SET_DWORD(inbuf, VPORT_GET_MAC_ADDRESSES_IN_VPORT_ID,
drivers/net/ethernet/sfc/ef10.c
354
rc = efx_mcdi_rpc(efx, MC_CMD_VPORT_GET_MAC_ADDRESSES, inbuf,
drivers/net/ethernet/sfc/ef10.c
3542
MCDI_SET_DWORD(inbuf, NVRAM_METADATA_IN_TYPE, type);
drivers/net/ethernet/sfc/ef10.c
3543
rc = efx_mcdi_rpc(efx, MC_CMD_NVRAM_METADATA, inbuf, sizeof(inbuf),
drivers/net/ethernet/sfc/ef10.c
355
sizeof(inbuf), outbuf, sizeof(outbuf), &outlen);
drivers/net/ethernet/sfc/ef10.c
3636
MCDI_DECLARE_BUF(inbuf, MC_CMD_PTP_IN_TIME_EVENT_SUBSCRIBE_LEN);
drivers/net/ethernet/sfc/ef10.c
3645
MCDI_SET_DWORD(inbuf, PTP_IN_OP, MC_CMD_PTP_OP_TIME_EVENT_SUBSCRIBE);
drivers/net/ethernet/sfc/ef10.c
3646
MCDI_SET_DWORD(inbuf, PTP_IN_PERIPH_ID, 0);
drivers/net/ethernet/sfc/ef10.c
3647
MCDI_SET_DWORD(inbuf, PTP_IN_TIME_EVENT_SUBSCRIBE_QUEUE,
drivers/net/ethernet/sfc/ef10.c
3651
inbuf, sizeof(inbuf), NULL, 0, NULL);
drivers/net/ethernet/sfc/ef10.c
3663
MCDI_DECLARE_BUF(inbuf, MC_CMD_PTP_IN_TIME_EVENT_UNSUBSCRIBE_LEN);
drivers/net/ethernet/sfc/ef10.c
3676
MCDI_SET_DWORD(inbuf, PTP_IN_OP, MC_CMD_PTP_OP_TIME_EVENT_UNSUBSCRIBE);
drivers/net/ethernet/sfc/ef10.c
3677
MCDI_SET_DWORD(inbuf, PTP_IN_PERIPH_ID, 0);
drivers/net/ethernet/sfc/ef10.c
3678
MCDI_SET_DWORD(inbuf, PTP_IN_TIME_EVENT_UNSUBSCRIBE_CONTROL,
drivers/net/ethernet/sfc/ef10.c
3680
MCDI_SET_DWORD(inbuf, PTP_IN_TIME_EVENT_UNSUBSCRIBE_QUEUE,
drivers/net/ethernet/sfc/ef10.c
3684
inbuf, sizeof(inbuf), NULL, 0, NULL);
drivers/net/ethernet/sfc/ef10.c
3792
MCDI_DECLARE_BUF(inbuf, MC_CMD_SET_TUNNEL_ENCAP_UDP_PORTS_IN_LENMAX);
drivers/net/ethernet/sfc/ef10.c
3824
*_MCDI_ARRAY_DWORD(inbuf,
drivers/net/ethernet/sfc/ef10.c
3839
*_MCDI_DWORD(inbuf, SET_TUNNEL_ENCAP_UDP_PORTS_IN_FLAGS) =
drivers/net/ethernet/sfc/ef10.c
3845
inbuf, inlen, outbuf, sizeof(outbuf), &outlen);
drivers/net/ethernet/sfc/ef10.c
718
MCDI_DECLARE_BUF(inbuf, MC_CMD_FREE_PIOBUF_IN_LEN);
drivers/net/ethernet/sfc/ef10.c
725
MCDI_SET_DWORD(inbuf, FREE_PIOBUF_IN_PIOBUF_HANDLE,
drivers/net/ethernet/sfc/ef10.c
727
rc = efx_mcdi_rpc(efx, MC_CMD_FREE_PIOBUF, inbuf, sizeof(inbuf),
drivers/net/ethernet/sfc/ef10.c
777
MCDI_DECLARE_BUF(inbuf, MC_CMD_LINK_PIOBUF_IN_LEN);
drivers/net/ethernet/sfc/ef10.c
788
MCDI_SET_DWORD(inbuf, LINK_PIOBUF_IN_PIOBUF_HANDLE,
drivers/net/ethernet/sfc/ef10.c
790
MCDI_SET_DWORD(inbuf, LINK_PIOBUF_IN_TXQ_INSTANCE,
drivers/net/ethernet/sfc/ef10.c
793
inbuf, MC_CMD_LINK_PIOBUF_IN_LEN,
drivers/net/ethernet/sfc/ef10.c
836
MCDI_SET_DWORD(inbuf,
drivers/net/ethernet/sfc/ef10.c
839
MCDI_SET_DWORD(inbuf,
drivers/net/ethernet/sfc/ef10.c
843
inbuf, MC_CMD_LINK_PIOBUF_IN_LEN,
drivers/net/ethernet/sfc/ef10.c
877
MCDI_SET_DWORD(inbuf, UNLINK_PIOBUF_IN_TXQ_INSTANCE,
drivers/net/ethernet/sfc/ef10.c
880
inbuf, MC_CMD_UNLINK_PIOBUF_IN_LEN,
drivers/net/ethernet/sfc/ef10.c
988
MCDI_DECLARE_BUF(inbuf, MC_CMD_VADAPTOR_QUERY_IN_LEN);
drivers/net/ethernet/sfc/ef10.c
995
MCDI_SET_DWORD(inbuf, VADAPTOR_QUERY_IN_UPSTREAM_PORT_ID,
drivers/net/ethernet/sfc/ef10.c
998
rc = efx_mcdi_rpc(efx, MC_CMD_VADAPTOR_QUERY, inbuf, sizeof(inbuf),
drivers/net/ethernet/sfc/ef100_nic.c
1129
MCDI_DECLARE_BUF(inbuf, MC_CMD_GET_CLIENT_HANDLE_IN_LEN);
drivers/net/ethernet/sfc/ef100_nic.c
1134
MCDI_SET_DWORD(inbuf, GET_CLIENT_HANDLE_IN_TYPE,
drivers/net/ethernet/sfc/ef100_nic.c
1136
MCDI_SET_QWORD(inbuf, GET_CLIENT_HANDLE_IN_FUNC,
drivers/net/ethernet/sfc/ef100_nic.c
1139
rc = efx_mcdi_rpc(efx, MC_CMD_GET_CLIENT_HANDLE, inbuf, sizeof(inbuf),
drivers/net/ethernet/sfc/ef100_nic.c
137
MCDI_DECLARE_BUF(inbuf, MC_CMD_GET_CLIENT_MAC_ADDRESSES_IN_LEN);
drivers/net/ethernet/sfc/ef100_nic.c
142
MCDI_SET_DWORD(inbuf, GET_CLIENT_MAC_ADDRESSES_IN_CLIENT_HANDLE,
drivers/net/ethernet/sfc/ef100_nic.c
145
rc = efx_mcdi_rpc(efx, MC_CMD_GET_CLIENT_MAC_ADDRESSES, inbuf,
drivers/net/ethernet/sfc/ef100_nic.c
146
sizeof(inbuf), outbuf, sizeof(outbuf), &outlen);
drivers/net/ethernet/sfc/ef100_nic.c
679
MCDI_DECLARE_BUF(inbuf, MC_CMD_TRIGGER_INTERRUPT_IN_LEN);
drivers/net/ethernet/sfc/ef100_nic.c
683
MCDI_SET_DWORD(inbuf, TRIGGER_INTERRUPT_IN_INTR_LEVEL, efx->irq_level);
drivers/net/ethernet/sfc/ef100_nic.c
685
inbuf, sizeof(inbuf), NULL, 0, NULL);
drivers/net/ethernet/sfc/ef100_nic.c
692
MCDI_DECLARE_BUF(inbuf, MC_CMD_DRIVER_EVENT_IN_LEN);
drivers/net/ethernet/sfc/ef100_nic.c
701
MCDI_SET_DWORD(inbuf, DRIVER_EVENT_IN_EVQ, channel->channel);
drivers/net/ethernet/sfc/ef100_nic.c
706
memcpy(MCDI_PTR(inbuf, DRIVER_EVENT_IN_DATA), &event.u64[0],
drivers/net/ethernet/sfc/ef100_nic.c
709
rc = efx_mcdi_rpc(efx, MC_CMD_DRIVER_EVENT, inbuf, sizeof(inbuf),
drivers/net/ethernet/sfc/ef10_sriov.c
105
MCDI_DECLARE_BUF(inbuf, MC_CMD_VPORT_FREE_IN_LEN);
drivers/net/ethernet/sfc/ef10_sriov.c
107
MCDI_SET_DWORD(inbuf, VPORT_FREE_IN_VPORT_ID, port_id);
drivers/net/ethernet/sfc/ef10_sriov.c
109
return efx_mcdi_rpc(efx, MC_CMD_VPORT_FREE, inbuf, sizeof(inbuf),
drivers/net/ethernet/sfc/ef10_sriov.c
18
MCDI_DECLARE_BUF(inbuf, MC_CMD_EVB_PORT_ASSIGN_IN_LEN);
drivers/net/ethernet/sfc/ef10_sriov.c
21
MCDI_SET_DWORD(inbuf, EVB_PORT_ASSIGN_IN_PORT_ID, port_id);
drivers/net/ethernet/sfc/ef10_sriov.c
22
MCDI_POPULATE_DWORD_2(inbuf, EVB_PORT_ASSIGN_IN_FUNCTION,
drivers/net/ethernet/sfc/ef10_sriov.c
26
return efx_mcdi_rpc(efx, MC_CMD_EVB_PORT_ASSIGN, inbuf, sizeof(inbuf),
drivers/net/ethernet/sfc/ef10_sriov.c
33
MCDI_DECLARE_BUF(inbuf, MC_CMD_VSWITCH_ALLOC_IN_LEN);
drivers/net/ethernet/sfc/ef10_sriov.c
36
MCDI_SET_DWORD(inbuf, VSWITCH_ALLOC_IN_UPSTREAM_PORT_ID, port_id);
drivers/net/ethernet/sfc/ef10_sriov.c
37
MCDI_SET_DWORD(inbuf, VSWITCH_ALLOC_IN_TYPE, vswitch_type);
drivers/net/ethernet/sfc/ef10_sriov.c
38
MCDI_SET_DWORD(inbuf, VSWITCH_ALLOC_IN_NUM_VLAN_TAGS, 2);
drivers/net/ethernet/sfc/ef10_sriov.c
39
MCDI_POPULATE_DWORD_1(inbuf, VSWITCH_ALLOC_IN_FLAGS,
drivers/net/ethernet/sfc/ef10_sriov.c
43
rc = efx_mcdi_rpc_quiet(efx, MC_CMD_VSWITCH_ALLOC, inbuf, sizeof(inbuf),
drivers/net/ethernet/sfc/ef10_sriov.c
472
MCDI_DECLARE_BUF(inbuf, MC_CMD_VPORT_DEL_MAC_ADDRESS_IN_LEN);
drivers/net/ethernet/sfc/ef10_sriov.c
477
MCDI_SET_DWORD(inbuf, VPORT_DEL_MAC_ADDRESS_IN_VPORT_ID, port_id);
drivers/net/ethernet/sfc/ef10_sriov.c
478
ether_addr_copy(MCDI_PTR(inbuf, VPORT_DEL_MAC_ADDRESS_IN_MACADDR), mac);
drivers/net/ethernet/sfc/ef10_sriov.c
48
MCDI_SET_DWORD(inbuf, VSWITCH_ALLOC_IN_NUM_VLAN_TAGS, 1);
drivers/net/ethernet/sfc/ef10_sriov.c
480
rc = efx_mcdi_rpc(efx, MC_CMD_VPORT_DEL_MAC_ADDRESS, inbuf,
drivers/net/ethernet/sfc/ef10_sriov.c
481
sizeof(inbuf), outbuf, sizeof(outbuf), &outlen);
drivers/net/ethernet/sfc/ef10_sriov.c
49
rc = efx_mcdi_rpc(efx, MC_CMD_VSWITCH_ALLOC, inbuf,
drivers/net/ethernet/sfc/ef10_sriov.c
50
sizeof(inbuf), NULL, 0, NULL);
drivers/net/ethernet/sfc/ef10_sriov.c
61
MCDI_DECLARE_BUF(inbuf, MC_CMD_VSWITCH_FREE_IN_LEN);
drivers/net/ethernet/sfc/ef10_sriov.c
63
MCDI_SET_DWORD(inbuf, VSWITCH_FREE_IN_UPSTREAM_PORT_ID, port_id);
drivers/net/ethernet/sfc/ef10_sriov.c
65
return efx_mcdi_rpc(efx, MC_CMD_VSWITCH_FREE, inbuf, sizeof(inbuf),
drivers/net/ethernet/sfc/ef10_sriov.c
747
MCDI_DECLARE_BUF(inbuf, MC_CMD_LINK_STATE_MODE_IN_LEN);
drivers/net/ethernet/sfc/ef10_sriov.c
75
MCDI_DECLARE_BUF(inbuf, MC_CMD_VPORT_ALLOC_IN_LEN);
drivers/net/ethernet/sfc/ef10_sriov.c
756
MCDI_POPULATE_DWORD_2(inbuf, LINK_STATE_MODE_IN_FUNCTION,
drivers/net/ethernet/sfc/ef10_sriov.c
760
MCDI_SET_DWORD(inbuf, LINK_STATE_MODE_IN_NEW_MODE, link_state);
drivers/net/ethernet/sfc/ef10_sriov.c
761
return efx_mcdi_rpc(efx, MC_CMD_LINK_STATE_MODE, inbuf, sizeof(inbuf),
drivers/net/ethernet/sfc/ef10_sriov.c
768
MCDI_DECLARE_BUF(inbuf, MC_CMD_LINK_STATE_MODE_IN_LEN);
drivers/net/ethernet/sfc/ef10_sriov.c
791
MCDI_POPULATE_DWORD_2(inbuf, LINK_STATE_MODE_IN_FUNCTION,
drivers/net/ethernet/sfc/ef10_sriov.c
795
MCDI_SET_DWORD(inbuf, LINK_STATE_MODE_IN_NEW_MODE,
drivers/net/ethernet/sfc/ef10_sriov.c
797
rc = efx_mcdi_rpc(efx, MC_CMD_LINK_STATE_MODE, inbuf, sizeof(inbuf),
drivers/net/ethernet/sfc/ef10_sriov.c
82
MCDI_SET_DWORD(inbuf, VPORT_ALLOC_IN_UPSTREAM_PORT_ID, port_id_in);
drivers/net/ethernet/sfc/ef10_sriov.c
83
MCDI_SET_DWORD(inbuf, VPORT_ALLOC_IN_TYPE, vport_type);
drivers/net/ethernet/sfc/ef10_sriov.c
84
MCDI_SET_DWORD(inbuf, VPORT_ALLOC_IN_NUM_VLAN_TAGS,
drivers/net/ethernet/sfc/ef10_sriov.c
86
MCDI_POPULATE_DWORD_1(inbuf, VPORT_ALLOC_IN_FLAGS,
drivers/net/ethernet/sfc/ef10_sriov.c
89
MCDI_POPULATE_DWORD_1(inbuf, VPORT_ALLOC_IN_VLAN_TAGS,
drivers/net/ethernet/sfc/ef10_sriov.c
92
rc = efx_mcdi_rpc(efx, MC_CMD_VPORT_ALLOC, inbuf, sizeof(inbuf),
drivers/net/ethernet/sfc/efx_devlink.c
112
MCDI_SET_DWORD(inbuf, SET_CLIENT_MAC_ADDRESSES_IN_CLIENT_HANDLE,
drivers/net/ethernet/sfc/efx_devlink.c
115
ether_addr_copy(MCDI_PTR(inbuf, SET_CLIENT_MAC_ADDRESSES_IN_MAC_ADDRS),
drivers/net/ethernet/sfc/efx_devlink.c
118
rc = efx_mcdi_rpc(devlink->efx, MC_CMD_SET_CLIENT_MAC_ADDRESSES, inbuf,
drivers/net/ethernet/sfc/efx_devlink.c
119
sizeof(inbuf), NULL, 0, NULL);
drivers/net/ethernet/sfc/efx_devlink.c
518
MCDI_DECLARE_BUF(inbuf, MC_CMD_GET_VERSION_EXT_IN_LEN);
drivers/net/ethernet/sfc/efx_devlink.c
529
rc = efx_mcdi_rpc(efx, MC_CMD_GET_VERSION, inbuf, sizeof(inbuf),
drivers/net/ethernet/sfc/efx_devlink.c
83
MCDI_DECLARE_BUF(inbuf, MC_CMD_SET_CLIENT_MAC_ADDRESSES_IN_LEN(1));
drivers/net/ethernet/sfc/mae.c
1002
MCDI_SET_DWORD(inbuf, MAE_ENCAP_HEADER_FREE_IN_EH_ID, encap->fw_id);
drivers/net/ethernet/sfc/mae.c
1003
rc = efx_mcdi_rpc(efx, MC_CMD_MAE_ENCAP_HEADER_FREE, inbuf,
drivers/net/ethernet/sfc/mae.c
1004
sizeof(inbuf), outbuf, sizeof(outbuf), &outlen);
drivers/net/ethernet/sfc/mae.c
111
MCDI_DECLARE_BUF(inbuf, MC_CMD_MAE_COUNTERS_STREAM_START_V2_IN_LEN);
drivers/net/ethernet/sfc/mae.c
1128
MCDI_DECLARE_BUF(inbuf, MC_CMD_MAE_MPORT_READ_JOURNAL_IN_LEN);
drivers/net/ethernet/sfc/mae.c
1136
rc = efx_mcdi_rpc(efx, MC_CMD_MAE_MPORT_READ_JOURNAL, inbuf,
drivers/net/ethernet/sfc/mae.c
1137
sizeof(inbuf), outbuf,
drivers/net/ethernet/sfc/mae.c
117
MCDI_SET_WORD(inbuf, MAE_COUNTERS_STREAM_START_V2_IN_QID,
drivers/net/ethernet/sfc/mae.c
119
MCDI_SET_WORD(inbuf, MAE_COUNTERS_STREAM_START_V2_IN_PACKET_SIZE,
drivers/net/ethernet/sfc/mae.c
121
MCDI_SET_DWORD(inbuf, MAE_COUNTERS_STREAM_START_V2_IN_COUNTER_TYPES_MASK,
drivers/net/ethernet/sfc/mae.c
1227
MCDI_DECLARE_BUF(inbuf, MC_CMD_MAE_MAC_ADDR_ALLOC_IN_LEN);
drivers/net/ethernet/sfc/mae.c
1233
memcpy(MCDI_PTR(inbuf, MAE_MAC_ADDR_ALLOC_IN_MAC_ADDR), ped->h_addr,
drivers/net/ethernet/sfc/mae.c
1235
rc = efx_mcdi_rpc(efx, MC_CMD_MAE_MAC_ADDR_ALLOC, inbuf, sizeof(inbuf),
drivers/net/ethernet/sfc/mae.c
125
inbuf, sizeof(inbuf), outbuf, sizeof(outbuf), &outlen);
drivers/net/ethernet/sfc/mae.c
1257
MCDI_DECLARE_BUF(inbuf, MC_CMD_MAE_MAC_ADDR_FREE_IN_LEN(1));
drivers/net/ethernet/sfc/mae.c
1261
MCDI_SET_DWORD(inbuf, MAE_MAC_ADDR_FREE_IN_MAC_ID, ped->fw_id);
drivers/net/ethernet/sfc/mae.c
1262
rc = efx_mcdi_rpc(efx, MC_CMD_MAE_MAC_ADDR_FREE, inbuf,
drivers/net/ethernet/sfc/mae.c
1263
sizeof(inbuf), outbuf, sizeof(outbuf), &outlen);
drivers/net/ethernet/sfc/mae.c
1281
MCDI_DECLARE_BUF(inbuf, MC_CMD_MAE_ACTION_SET_ALLOC_IN_LEN);
drivers/net/ethernet/sfc/mae.c
1285
MCDI_POPULATE_DWORD_5(inbuf, MAE_ACTION_SET_ALLOC_IN_FLAGS,
drivers/net/ethernet/sfc/mae.c
1294
MCDI_SET_DWORD(inbuf, MAE_ACTION_SET_ALLOC_IN_SRC_MAC_ID,
drivers/net/ethernet/sfc/mae.c
1297
MCDI_SET_DWORD(inbuf, MAE_ACTION_SET_ALLOC_IN_SRC_MAC_ID,
drivers/net/ethernet/sfc/mae.c
1301
MCDI_SET_DWORD(inbuf, MAE_ACTION_SET_ALLOC_IN_DST_MAC_ID,
drivers/net/ethernet/sfc/mae.c
1304
MCDI_SET_DWORD(inbuf, MAE_ACTION_SET_ALLOC_IN_DST_MAC_ID,
drivers/net/ethernet/sfc/mae.c
1308
MCDI_SET_DWORD(inbuf, MAE_ACTION_SET_ALLOC_IN_COUNTER_ID,
drivers/net/ethernet/sfc/mae.c
1311
MCDI_SET_DWORD(inbuf, MAE_ACTION_SET_ALLOC_IN_COUNTER_ID,
drivers/net/ethernet/sfc/mae.c
1313
MCDI_SET_DWORD(inbuf, MAE_ACTION_SET_ALLOC_IN_COUNTER_LIST_ID,
drivers/net/ethernet/sfc/mae.c
1316
MCDI_SET_WORD_BE(inbuf, MAE_ACTION_SET_ALLOC_IN_VLAN0_TCI_BE,
drivers/net/ethernet/sfc/mae.c
1318
MCDI_SET_WORD_BE(inbuf, MAE_ACTION_SET_ALLOC_IN_VLAN0_PROTO_BE,
drivers/net/ethernet/sfc/mae.c
1322
MCDI_SET_WORD_BE(inbuf, MAE_ACTION_SET_ALLOC_IN_VLAN1_TCI_BE,
drivers/net/ethernet/sfc/mae.c
1324
MCDI_SET_WORD_BE(inbuf, MAE_ACTION_SET_ALLOC_IN_VLAN1_PROTO_BE,
drivers/net/ethernet/sfc/mae.c
1328
MCDI_SET_DWORD(inbuf, MAE_ACTION_SET_ALLOC_IN_ENCAP_HEADER_ID,
drivers/net/ethernet/sfc/mae.c
1331
MCDI_SET_DWORD(inbuf, MAE_ACTION_SET_ALLOC_IN_ENCAP_HEADER_ID,
drivers/net/ethernet/sfc/mae.c
1334
MCDI_SET_DWORD(inbuf, MAE_ACTION_SET_ALLOC_IN_DELIVER,
drivers/net/ethernet/sfc/mae.c
1337
rc = efx_mcdi_rpc(efx, MC_CMD_MAE_ACTION_SET_ALLOC, inbuf, sizeof(inbuf),
drivers/net/ethernet/sfc/mae.c
1357
MCDI_DECLARE_BUF(inbuf, MC_CMD_MAE_ACTION_SET_FREE_IN_LEN(1));
drivers/net/ethernet/sfc/mae.c
1361
MCDI_SET_DWORD(inbuf, MAE_ACTION_SET_FREE_IN_AS_ID, fw_id);
drivers/net/ethernet/sfc/mae.c
1362
rc = efx_mcdi_rpc(efx, MC_CMD_MAE_ACTION_SET_FREE, inbuf, sizeof(inbuf),
drivers/net/ethernet/sfc/mae.c
1383
efx_dword_t *inbuf;
drivers/net/ethernet/sfc/mae.c
1401
inbuf = kzalloc(inlen, GFP_KERNEL);
drivers/net/ethernet/sfc/mae.c
1402
if (!inbuf)
drivers/net/ethernet/sfc/mae.c
1406
MCDI_SET_ARRAY_DWORD(inbuf, MAE_ACTION_SET_LIST_ALLOC_IN_AS_IDS,
drivers/net/ethernet/sfc/mae.c
1410
MCDI_SET_DWORD(inbuf, MAE_ACTION_SET_LIST_ALLOC_IN_COUNT, i);
drivers/net/ethernet/sfc/mae.c
1411
rc = efx_mcdi_rpc(efx, MC_CMD_MAE_ACTION_SET_LIST_ALLOC, inbuf, inlen,
drivers/net/ethernet/sfc/mae.c
1428
kfree(inbuf);
drivers/net/ethernet/sfc/mae.c
1436
MCDI_DECLARE_BUF(inbuf, MC_CMD_MAE_ACTION_SET_LIST_FREE_IN_LEN(1));
drivers/net/ethernet/sfc/mae.c
1444
MCDI_SET_DWORD(inbuf, MAE_ACTION_SET_LIST_FREE_IN_ASL_ID,
drivers/net/ethernet/sfc/mae.c
1446
rc = efx_mcdi_rpc(efx, MC_CMD_MAE_ACTION_SET_LIST_FREE, inbuf,
drivers/net/ethernet/sfc/mae.c
1447
sizeof(inbuf), outbuf, sizeof(outbuf), &outlen);
drivers/net/ethernet/sfc/mae.c
1469
MCDI_DECLARE_BUF(inbuf, MC_CMD_MAE_OUTER_RULE_INSERT_IN_LEN(MAE_ENC_FIELD_PAIRS_LEN));
drivers/net/ethernet/sfc/mae.c
1478
match_crit = _MCDI_DWORD(inbuf, MAE_OUTER_RULE_INSERT_IN_FIELD_MATCH_CRITERIA);
drivers/net/ethernet/sfc/mae.c
1483
MCDI_SET_DWORD(inbuf, MAE_OUTER_RULE_INSERT_IN_ENCAP_TYPE, rc);
drivers/net/ethernet/sfc/mae.c
1527
rc = efx_mcdi_rpc(efx, MC_CMD_MAE_OUTER_RULE_INSERT, inbuf,
drivers/net/ethernet/sfc/mae.c
1528
sizeof(inbuf), outbuf, sizeof(outbuf), &outlen);
drivers/net/ethernet/sfc/mae.c
1541
MCDI_DECLARE_BUF(inbuf, MC_CMD_MAE_OUTER_RULE_REMOVE_IN_LEN(1));
drivers/net/ethernet/sfc/mae.c
1545
MCDI_SET_DWORD(inbuf, MAE_OUTER_RULE_REMOVE_IN_OR_ID, encap->fw_id);
drivers/net/ethernet/sfc/mae.c
1546
rc = efx_mcdi_rpc(efx, MC_CMD_MAE_OUTER_RULE_REMOVE, inbuf,
drivers/net/ethernet/sfc/mae.c
1547
sizeof(inbuf), outbuf, sizeof(outbuf), &outlen);
drivers/net/ethernet/sfc/mae.c
162
MCDI_DECLARE_BUF(inbuf, MC_CMD_MAE_COUNTERS_STREAM_STOP_IN_LEN);
drivers/net/ethernet/sfc/mae.c
166
MCDI_SET_WORD(inbuf, MAE_COUNTERS_STREAM_STOP_IN_QID,
drivers/net/ethernet/sfc/mae.c
1684
MCDI_DECLARE_BUF(inbuf, MC_CMD_MAE_OUTER_RULE_INSERT_IN_LEN(MAE_ENC_FIELD_PAIRS_LEN));
drivers/net/ethernet/sfc/mae.c
169
inbuf, sizeof(inbuf), outbuf, sizeof(outbuf), &outlen);
drivers/net/ethernet/sfc/mae.c
1691
MCDI_SET_DWORD(inbuf, MAE_OUTER_RULE_INSERT_IN_PRIO, prio);
drivers/net/ethernet/sfc/mae.c
1693
match_crit = _MCDI_DWORD(inbuf, MAE_OUTER_RULE_INSERT_IN_FIELD_MATCH_CRITERIA);
drivers/net/ethernet/sfc/mae.c
1703
MCDI_SET_DWORD(inbuf, MAE_OUTER_RULE_INSERT_IN_ENCAP_TYPE, rc);
drivers/net/ethernet/sfc/mae.c
1708
MCDI_POPULATE_DWORD_6(inbuf, MAE_OUTER_RULE_INSERT_IN_LOOKUP_CONTROL,
drivers/net/ethernet/sfc/mae.c
1719
MCDI_SET_DWORD(inbuf, MAE_OUTER_RULE_INSERT_IN_COUNTER_ID,
drivers/net/ethernet/sfc/mae.c
1721
rc = efx_mcdi_rpc(efx, MC_CMD_MAE_OUTER_RULE_INSERT, inbuf,
drivers/net/ethernet/sfc/mae.c
1722
sizeof(inbuf), outbuf, sizeof(outbuf), &outlen);
drivers/net/ethernet/sfc/mae.c
1738
MCDI_DECLARE_BUF(inbuf, MC_CMD_MAE_ACTION_RULE_INSERT_IN_LEN(MAE_FIELD_MASK_VALUE_PAIRS_V2_LEN));
drivers/net/ethernet/sfc/mae.c
1746
match_crit = _MCDI_DWORD(inbuf, MAE_ACTION_RULE_INSERT_IN_MATCH_CRITERIA);
drivers/net/ethernet/sfc/mae.c
1747
response = _MCDI_DWORD(inbuf, MAE_ACTION_RULE_INSERT_IN_RESPONSE);
drivers/net/ethernet/sfc/mae.c
1765
MCDI_SET_DWORD(inbuf, MAE_ACTION_RULE_INSERT_IN_PRIO, prio);
drivers/net/ethernet/sfc/mae.c
1770
rc = efx_mcdi_rpc(efx, MC_CMD_MAE_ACTION_RULE_INSERT, inbuf, sizeof(inbuf),
drivers/net/ethernet/sfc/mae.c
1792
MCDI_DECLARE_BUF(inbuf, MC_CMD_MAE_OUTER_RULE_REMOVE_IN_LEN(1));
drivers/net/ethernet/sfc/mae.c
1796
MCDI_SET_DWORD(inbuf, MAE_OUTER_RULE_REMOVE_IN_OR_ID, rule->fw_id);
drivers/net/ethernet/sfc/mae.c
1797
rc = efx_mcdi_rpc(efx, MC_CMD_MAE_OUTER_RULE_REMOVE, inbuf,
drivers/net/ethernet/sfc/mae.c
1798
sizeof(inbuf), outbuf, sizeof(outbuf), &outlen);
drivers/net/ethernet/sfc/mae.c
1965
efx_dword_t *inbuf;
drivers/net/ethernet/sfc/mae.c
1979
inbuf = kzalloc(inlen, GFP_KERNEL);
drivers/net/ethernet/sfc/mae.c
1980
if (!inbuf)
drivers/net/ethernet/sfc/mae.c
2012
MCDI_SET_DWORD(inbuf, TABLE_INSERT_IN_TABLE_ID, TABLE_ID_CONNTRACK_TABLE);
drivers/net/ethernet/sfc/mae.c
2013
MCDI_SET_WORD(inbuf, TABLE_INSERT_IN_KEY_WIDTH,
drivers/net/ethernet/sfc/mae.c
2016
MCDI_SET_WORD(inbuf, TABLE_INSERT_IN_RESP_WIDTH,
drivers/net/ethernet/sfc/mae.c
2018
memcpy(MCDI_PTR(inbuf, TABLE_INSERT_IN_DATA), key, kw * sizeof(__le32));
drivers/net/ethernet/sfc/mae.c
2019
memcpy(MCDI_PTR(inbuf, TABLE_INSERT_IN_DATA) + kw * sizeof(__le32),
drivers/net/ethernet/sfc/mae.c
2024
rc = efx_mcdi_rpc(efx, MC_CMD_TABLE_INSERT, inbuf, inlen, NULL, 0, NULL);
drivers/net/ethernet/sfc/mae.c
2029
kfree(inbuf);
drivers/net/ethernet/sfc/mae.c
2036
efx_dword_t *inbuf;
drivers/net/ethernet/sfc/mae.c
205
MCDI_DECLARE_BUF(inbuf, MC_CMD_MAE_COUNTERS_STREAM_GIVE_CREDITS_IN_LEN);
drivers/net/ethernet/sfc/mae.c
2050
inbuf = kzalloc(inlen, GFP_KERNEL);
drivers/net/ethernet/sfc/mae.c
2051
if (!inbuf)
drivers/net/ethernet/sfc/mae.c
2062
MCDI_SET_DWORD(inbuf, TABLE_DELETE_IN_TABLE_ID, TABLE_ID_CONNTRACK_TABLE);
drivers/net/ethernet/sfc/mae.c
2063
MCDI_SET_WORD(inbuf, TABLE_DELETE_IN_KEY_WIDTH,
drivers/net/ethernet/sfc/mae.c
2067
memcpy(MCDI_PTR(inbuf, TABLE_DELETE_IN_DATA), key, kw * sizeof(__le32));
drivers/net/ethernet/sfc/mae.c
2071
rc = efx_mcdi_rpc(efx, MC_CMD_TABLE_DELETE, inbuf, inlen, NULL, 0, NULL);
drivers/net/ethernet/sfc/mae.c
2075
kfree(inbuf);
drivers/net/ethernet/sfc/mae.c
213
MCDI_SET_DWORD(inbuf, MAE_COUNTERS_STREAM_GIVE_CREDITS_IN_NUM_CREDITS,
drivers/net/ethernet/sfc/mae.c
216
inbuf, sizeof(inbuf), NULL, 0, NULL))
drivers/net/ethernet/sfc/mae.c
2224
MCDI_DECLARE_BUF(inbuf, MC_CMD_MAE_ACTION_RULE_INSERT_IN_LEN(MAE_FIELD_MASK_VALUE_PAIRS_V2_LEN));
drivers/net/ethernet/sfc/mae.c
2234
match_crit = _MCDI_DWORD(inbuf, MAE_ACTION_RULE_INSERT_IN_MATCH_CRITERIA);
drivers/net/ethernet/sfc/mae.c
2235
response = _MCDI_DWORD(inbuf, MAE_ACTION_RULE_INSERT_IN_RESPONSE);
drivers/net/ethernet/sfc/mae.c
2246
MCDI_SET_DWORD(inbuf, MAE_ACTION_RULE_INSERT_IN_PRIO, prio);
drivers/net/ethernet/sfc/mae.c
225
MCDI_DECLARE_BUF(inbuf, MC_CMD_TABLE_DESCRIPTOR_IN_LEN);
drivers/net/ethernet/sfc/mae.c
2251
rc = efx_mcdi_rpc(efx, MC_CMD_MAE_ACTION_RULE_INSERT, inbuf, sizeof(inbuf),
drivers/net/ethernet/sfc/mae.c
2263
MCDI_DECLARE_BUF(inbuf, MC_CMD_MAE_ACTION_RULE_UPDATE_IN_LEN);
drivers/net/ethernet/sfc/mae.c
2267
response = _MCDI_DWORD(inbuf, MAE_ACTION_RULE_UPDATE_IN_RESPONSE);
drivers/net/ethernet/sfc/mae.c
2269
MCDI_SET_DWORD(inbuf, MAE_ACTION_RULE_UPDATE_IN_AR_ID, id);
drivers/net/ethernet/sfc/mae.c
2280
return efx_mcdi_rpc(efx, MC_CMD_MAE_ACTION_RULE_UPDATE, inbuf, sizeof(inbuf),
drivers/net/ethernet/sfc/mae.c
2287
MCDI_DECLARE_BUF(inbuf, MC_CMD_MAE_ACTION_RULE_DELETE_IN_LEN(1));
drivers/net/ethernet/sfc/mae.c
2291
MCDI_SET_DWORD(inbuf, MAE_ACTION_RULE_DELETE_IN_AR_ID, id);
drivers/net/ethernet/sfc/mae.c
2292
rc = efx_mcdi_rpc(efx, MC_CMD_MAE_ACTION_RULE_DELETE, inbuf, sizeof(inbuf),
drivers/net/ethernet/sfc/mae.c
232
MCDI_SET_DWORD(inbuf, TABLE_DESCRIPTOR_IN_TABLE_ID, table_id);
drivers/net/ethernet/sfc/mae.c
234
MCDI_SET_DWORD(inbuf, TABLE_DESCRIPTOR_IN_FIRST_FIELDS_INDEX, offset);
drivers/net/ethernet/sfc/mae.c
235
rc = efx_mcdi_rpc(efx, MC_CMD_TABLE_DESCRIPTOR, inbuf, sizeof(inbuf),
drivers/net/ethernet/sfc/mae.c
24
MCDI_DECLARE_BUF(inbuf, MC_CMD_MAE_MPORT_ALLOC_ALIAS_IN_LEN);
drivers/net/ethernet/sfc/mae.c
33
MCDI_SET_DWORD(inbuf, MAE_MPORT_ALLOC_ALIAS_IN_TYPE,
drivers/net/ethernet/sfc/mae.c
35
MCDI_SET_DWORD(inbuf, MAE_MPORT_ALLOC_ALIAS_IN_DELIVER_MPORT,
drivers/net/ethernet/sfc/mae.c
37
rc = efx_mcdi_rpc(efx, MC_CMD_MAE_MPORT_ALLOC, inbuf, sizeof(inbuf),
drivers/net/ethernet/sfc/mae.c
396
MCDI_DECLARE_BUF(inbuf, MC_CMD_TABLE_LIST_IN_LEN);
drivers/net/ethernet/sfc/mae.c
406
MCDI_SET_DWORD(inbuf, TABLE_LIST_IN_FIRST_TABLE_ID_INDEX, pos);
drivers/net/ethernet/sfc/mae.c
407
rc = efx_mcdi_rpc(efx, MC_CMD_TABLE_LIST, inbuf, sizeof(inbuf), outbuf,
drivers/net/ethernet/sfc/mae.c
50
MCDI_DECLARE_BUF(inbuf, MC_CMD_MAE_MPORT_FREE_IN_LEN);
drivers/net/ethernet/sfc/mae.c
53
MCDI_SET_DWORD(inbuf, MAE_MPORT_FREE_IN_MPORT_ID, id);
drivers/net/ethernet/sfc/mae.c
54
return efx_mcdi_rpc(efx, MC_CMD_MAE_MPORT_FREE, inbuf, sizeof(inbuf),
drivers/net/ethernet/sfc/mae.c
879
MCDI_DECLARE_BUF(inbuf, MC_CMD_MAE_COUNTER_ALLOC_V2_IN_LEN);
drivers/net/ethernet/sfc/mae.c
886
MCDI_SET_DWORD(inbuf, MAE_COUNTER_ALLOC_V2_IN_REQUESTED_COUNT, 1);
drivers/net/ethernet/sfc/mae.c
887
MCDI_SET_DWORD(inbuf, MAE_COUNTER_ALLOC_V2_IN_COUNTER_TYPE, cnt->type);
drivers/net/ethernet/sfc/mae.c
888
rc = efx_mcdi_rpc(efx, MC_CMD_MAE_COUNTER_ALLOC, inbuf, sizeof(inbuf),
drivers/net/ethernet/sfc/mae.c
903
MCDI_DECLARE_BUF(inbuf, MC_CMD_MAE_COUNTER_FREE_V2_IN_LEN);
drivers/net/ethernet/sfc/mae.c
907
MCDI_SET_DWORD(inbuf, MAE_COUNTER_FREE_V2_IN_COUNTER_ID_COUNT, 1);
drivers/net/ethernet/sfc/mae.c
908
MCDI_SET_DWORD(inbuf, MAE_COUNTER_FREE_V2_IN_FREE_COUNTER_ID, cnt->fw_id);
drivers/net/ethernet/sfc/mae.c
909
MCDI_SET_DWORD(inbuf, MAE_COUNTER_FREE_V2_IN_COUNTER_TYPE, cnt->type);
drivers/net/ethernet/sfc/mae.c
910
rc = efx_mcdi_rpc(efx, MC_CMD_MAE_COUNTER_FREE, inbuf, sizeof(inbuf),
drivers/net/ethernet/sfc/mae.c
94
MCDI_DECLARE_BUF(inbuf, MC_CMD_MAE_MPORT_LOOKUP_IN_LEN);
drivers/net/ethernet/sfc/mae.c
944
MCDI_DECLARE_BUF(inbuf, MC_CMD_MAE_ENCAP_HEADER_ALLOC_IN_LEN(EFX_TC_MAX_ENCAP_HDR));
drivers/net/ethernet/sfc/mae.c
952
MCDI_SET_DWORD(inbuf, MAE_ENCAP_HEADER_ALLOC_IN_ENCAP_TYPE, rc);
drivers/net/ethernet/sfc/mae.c
954
if (WARN_ON(inlen > sizeof(inbuf))) /* can't happen */
drivers/net/ethernet/sfc/mae.c
956
memcpy(MCDI_PTR(inbuf, MAE_ENCAP_HEADER_ALLOC_IN_HDR_DATA),
drivers/net/ethernet/sfc/mae.c
959
rc = efx_mcdi_rpc(efx, MC_CMD_MAE_ENCAP_HEADER_ALLOC, inbuf,
drivers/net/ethernet/sfc/mae.c
972
MCDI_DECLARE_BUF(inbuf, MC_CMD_MAE_ENCAP_HEADER_UPDATE_IN_LEN(EFX_TC_MAX_ENCAP_HDR));
drivers/net/ethernet/sfc/mae.c
979
MCDI_SET_DWORD(inbuf, MAE_ENCAP_HEADER_UPDATE_IN_ENCAP_TYPE, rc);
drivers/net/ethernet/sfc/mae.c
98
MCDI_SET_DWORD(inbuf, MAE_MPORT_LOOKUP_IN_MPORT_SELECTOR, selector);
drivers/net/ethernet/sfc/mae.c
980
MCDI_SET_DWORD(inbuf, MAE_ENCAP_HEADER_UPDATE_IN_EH_ID,
drivers/net/ethernet/sfc/mae.c
983
if (WARN_ON(inlen > sizeof(inbuf))) /* can't happen */
drivers/net/ethernet/sfc/mae.c
985
memcpy(MCDI_PTR(inbuf, MAE_ENCAP_HEADER_UPDATE_IN_HDR_DATA),
drivers/net/ethernet/sfc/mae.c
99
rc = efx_mcdi_rpc(efx, MC_CMD_MAE_MPORT_LOOKUP, inbuf, sizeof(inbuf),
drivers/net/ethernet/sfc/mae.c
990
return efx_mcdi_rpc(efx, MC_CMD_MAE_ENCAP_HEADER_UPDATE, inbuf,
drivers/net/ethernet/sfc/mae.c
998
MCDI_DECLARE_BUF(inbuf, MC_CMD_MAE_ENCAP_HEADER_FREE_IN_LEN(1));
drivers/net/ethernet/sfc/mcdi.c
1011
efx_mcdi_send_request(efx, cmd, inbuf, inlen);
drivers/net/ethernet/sfc/mcdi.c
1047
const efx_dword_t *inbuf, size_t inlen, size_t outlen,
drivers/net/ethernet/sfc/mcdi.c
1050
return _efx_mcdi_rpc_async(efx, cmd, inbuf, inlen, outlen, complete,
drivers/net/ethernet/sfc/mcdi.c
1431
MCDI_DECLARE_BUF(inbuf, MC_CMD_DRV_ATTACH_IN_LEN);
drivers/net/ethernet/sfc/mcdi.c
1436
MCDI_SET_DWORD(inbuf, DRV_ATTACH_IN_NEW_STATE,
drivers/net/ethernet/sfc/mcdi.c
1438
MCDI_SET_DWORD(inbuf, DRV_ATTACH_IN_UPDATE, 1);
drivers/net/ethernet/sfc/mcdi.c
1439
MCDI_SET_DWORD(inbuf, DRV_ATTACH_IN_FIRMWARE_ID, MC_CMD_FW_LOW_LATENCY);
drivers/net/ethernet/sfc/mcdi.c
1441
rc = efx_mcdi_rpc_quiet(efx, MC_CMD_DRV_ATTACH, inbuf, sizeof(inbuf),
drivers/net/ethernet/sfc/mcdi.c
1451
MCDI_SET_DWORD(inbuf, DRV_ATTACH_IN_FIRMWARE_ID,
drivers/net/ethernet/sfc/mcdi.c
1453
rc = efx_mcdi_rpc_quiet(efx, MC_CMD_DRV_ATTACH, inbuf,
drivers/net/ethernet/sfc/mcdi.c
1454
sizeof(inbuf), outbuf, sizeof(outbuf),
drivers/net/ethernet/sfc/mcdi.c
1458
efx_mcdi_display_error(efx, MC_CMD_DRV_ATTACH, sizeof(inbuf),
drivers/net/ethernet/sfc/mcdi.c
148
const efx_dword_t *inbuf, size_t inlen)
drivers/net/ethernet/sfc/mcdi.c
1554
MCDI_DECLARE_BUF(inbuf, MC_CMD_LOG_CTRL_IN_LEN);
drivers/net/ethernet/sfc/mcdi.c
1563
MCDI_SET_DWORD(inbuf, LOG_CTRL_IN_LOG_DEST, dest);
drivers/net/ethernet/sfc/mcdi.c
1564
MCDI_SET_DWORD(inbuf, LOG_CTRL_IN_LOG_DEST_EVQ, dest_evq);
drivers/net/ethernet/sfc/mcdi.c
1568
rc = efx_mcdi_rpc(efx, MC_CMD_LOG_CTRL, inbuf, sizeof(inbuf),
drivers/net/ethernet/sfc/mcdi.c
1634
MCDI_DECLARE_BUF(inbuf, MC_CMD_NVRAM_INFO_IN_LEN);
drivers/net/ethernet/sfc/mcdi.c
1640
MCDI_SET_DWORD(inbuf, NVRAM_INFO_IN_TYPE, type);
drivers/net/ethernet/sfc/mcdi.c
1642
rc = efx_mcdi_rpc(efx, MC_CMD_NVRAM_INFO, inbuf, sizeof(inbuf),
drivers/net/ethernet/sfc/mcdi.c
1670
MCDI_DECLARE_BUF(inbuf, MC_CMD_NVRAM_TEST_IN_LEN);
drivers/net/ethernet/sfc/mcdi.c
1674
MCDI_SET_DWORD(inbuf, NVRAM_TEST_IN_TYPE, type);
drivers/net/ethernet/sfc/mcdi.c
1676
rc = efx_mcdi_rpc(efx, MC_CMD_NVRAM_TEST, inbuf, sizeof(inbuf),
drivers/net/ethernet/sfc/mcdi.c
1759
MCDI_DECLARE_BUF(inbuf, MC_CMD_GET_ASSERTS_IN_LEN);
drivers/net/ethernet/sfc/mcdi.c
1774
MCDI_SET_DWORD(inbuf, GET_ASSERTS_IN_CLEAR, 1);
drivers/net/ethernet/sfc/mcdi.c
1776
inbuf, MC_CMD_GET_ASSERTS_IN_LEN,
drivers/net/ethernet/sfc/mcdi.c
1822
MCDI_DECLARE_BUF(inbuf, MC_CMD_REBOOT_IN_LEN);
drivers/net/ethernet/sfc/mcdi.c
1832
MCDI_SET_DWORD(inbuf, REBOOT_IN_FLAGS,
drivers/net/ethernet/sfc/mcdi.c
1834
rc = efx_mcdi_rpc_quiet(efx, MC_CMD_REBOOT, inbuf, MC_CMD_REBOOT_IN_LEN,
drivers/net/ethernet/sfc/mcdi.c
1857
MCDI_DECLARE_BUF(inbuf, MC_CMD_SET_ID_LED_IN_LEN);
drivers/net/ethernet/sfc/mcdi.c
1865
MCDI_SET_DWORD(inbuf, SET_ID_LED_IN_STATE, mode);
drivers/net/ethernet/sfc/mcdi.c
1867
return efx_mcdi_rpc(efx, MC_CMD_SET_ID_LED, inbuf, sizeof(inbuf), NULL, 0, NULL);
drivers/net/ethernet/sfc/mcdi.c
1872
MCDI_DECLARE_BUF(inbuf, MC_CMD_ENTITY_RESET_IN_LEN);
drivers/net/ethernet/sfc/mcdi.c
1876
MCDI_POPULATE_DWORD_1(inbuf, ENTITY_RESET_IN_FLAG,
drivers/net/ethernet/sfc/mcdi.c
1878
rc = efx_mcdi_rpc(efx, MC_CMD_ENTITY_RESET, inbuf, sizeof(inbuf),
drivers/net/ethernet/sfc/mcdi.c
1885
MCDI_DECLARE_BUF(inbuf, MC_CMD_REBOOT_IN_LEN);
drivers/net/ethernet/sfc/mcdi.c
1889
MCDI_SET_DWORD(inbuf, REBOOT_IN_FLAGS, 0);
drivers/net/ethernet/sfc/mcdi.c
1890
rc = efx_mcdi_rpc(efx, MC_CMD_REBOOT, inbuf, sizeof(inbuf),
drivers/net/ethernet/sfc/mcdi.c
1938
MCDI_DECLARE_BUF(inbuf, MC_CMD_WOL_FILTER_SET_IN_LEN);
drivers/net/ethernet/sfc/mcdi.c
1943
MCDI_SET_DWORD(inbuf, WOL_FILTER_SET_IN_WOL_TYPE, type);
drivers/net/ethernet/sfc/mcdi.c
1944
MCDI_SET_DWORD(inbuf, WOL_FILTER_SET_IN_FILTER_MODE,
drivers/net/ethernet/sfc/mcdi.c
1946
ether_addr_copy(MCDI_PTR(inbuf, WOL_FILTER_SET_IN_MAGIC_MAC), mac);
drivers/net/ethernet/sfc/mcdi.c
1948
rc = efx_mcdi_rpc(efx, MC_CMD_WOL_FILTER_SET, inbuf, sizeof(inbuf),
drivers/net/ethernet/sfc/mcdi.c
1979
MCDI_DECLARE_BUF(inbuf, MC_CMD_WOL_FILTER_REMOVE_IN_LEN);
drivers/net/ethernet/sfc/mcdi.c
1982
MCDI_SET_DWORD(inbuf, WOL_FILTER_REMOVE_IN_FILTER_ID, (u32)id);
drivers/net/ethernet/sfc/mcdi.c
1984
rc = efx_mcdi_rpc(efx, MC_CMD_WOL_FILTER_REMOVE, inbuf, sizeof(inbuf),
drivers/net/ethernet/sfc/mcdi.c
2000
MCDI_DECLARE_BUF(inbuf, MC_CMD_WORKAROUND_IN_LEN);
drivers/net/ethernet/sfc/mcdi.c
2006
MCDI_SET_DWORD(inbuf, WORKAROUND_IN_TYPE, type);
drivers/net/ethernet/sfc/mcdi.c
2007
MCDI_SET_DWORD(inbuf, WORKAROUND_IN_ENABLED, enabled);
drivers/net/ethernet/sfc/mcdi.c
2008
rc = efx_mcdi_rpc(efx, MC_CMD_WORKAROUND, inbuf, sizeof(inbuf),
drivers/net/ethernet/sfc/mcdi.c
2108
MCDI_DECLARE_BUF(inbuf, MC_CMD_NVRAM_METADATA_IN_LEN);
drivers/net/ethernet/sfc/mcdi.c
2118
MCDI_SET_DWORD(inbuf, NVRAM_METADATA_IN_TYPE, type);
drivers/net/ethernet/sfc/mcdi.c
2120
rc = efx_mcdi_rpc_quiet(efx, MC_CMD_NVRAM_METADATA, inbuf,
drivers/net/ethernet/sfc/mcdi.c
2121
sizeof(inbuf), outbuf,
drivers/net/ethernet/sfc/mcdi.c
2179
MCDI_DECLARE_BUF(inbuf, MC_CMD_NVRAM_UPDATE_START_V2_IN_LEN);
drivers/net/ethernet/sfc/mcdi.c
2182
MCDI_SET_DWORD(inbuf, NVRAM_UPDATE_START_IN_TYPE, type);
drivers/net/ethernet/sfc/mcdi.c
2183
MCDI_POPULATE_DWORD_1(inbuf, NVRAM_UPDATE_START_V2_IN_FLAGS,
drivers/net/ethernet/sfc/mcdi.c
2189
rc = efx_mcdi_rpc(efx, MC_CMD_NVRAM_UPDATE_START, inbuf, sizeof(inbuf),
drivers/net/ethernet/sfc/mcdi.c
219
le32_to_cpu(inbuf[i].u32[0]));
drivers/net/ethernet/sfc/mcdi.c
2200
MCDI_DECLARE_BUF(inbuf, MC_CMD_NVRAM_READ_IN_V2_LEN);
drivers/net/ethernet/sfc/mcdi.c
2206
MCDI_SET_DWORD(inbuf, NVRAM_READ_IN_TYPE, type);
drivers/net/ethernet/sfc/mcdi.c
2207
MCDI_SET_DWORD(inbuf, NVRAM_READ_IN_OFFSET, offset);
drivers/net/ethernet/sfc/mcdi.c
2208
MCDI_SET_DWORD(inbuf, NVRAM_READ_IN_LENGTH, length);
drivers/net/ethernet/sfc/mcdi.c
2209
MCDI_SET_DWORD(inbuf, NVRAM_READ_IN_V2_MODE,
drivers/net/ethernet/sfc/mcdi.c
2212
rc = efx_mcdi_rpc(efx, MC_CMD_NVRAM_READ, inbuf, sizeof(inbuf),
drivers/net/ethernet/sfc/mcdi.c
2226
efx_dword_t *inbuf;
drivers/net/ethernet/sfc/mcdi.c
2231
inbuf = kzalloc(inlen, GFP_KERNEL);
drivers/net/ethernet/sfc/mcdi.c
2232
if (!inbuf)
drivers/net/ethernet/sfc/mcdi.c
2235
MCDI_SET_DWORD(inbuf, NVRAM_WRITE_IN_TYPE, type);
drivers/net/ethernet/sfc/mcdi.c
2236
MCDI_SET_DWORD(inbuf, NVRAM_WRITE_IN_OFFSET, offset);
drivers/net/ethernet/sfc/mcdi.c
2237
MCDI_SET_DWORD(inbuf, NVRAM_WRITE_IN_LENGTH, length);
drivers/net/ethernet/sfc/mcdi.c
2238
memcpy(MCDI_PTR(inbuf, NVRAM_WRITE_IN_WRITE_BUFFER), buffer, length);
drivers/net/ethernet/sfc/mcdi.c
2242
rc = efx_mcdi_rpc(efx, MC_CMD_NVRAM_WRITE, inbuf, inlen, NULL, 0, NULL);
drivers/net/ethernet/sfc/mcdi.c
2243
kfree(inbuf);
drivers/net/ethernet/sfc/mcdi.c
225
efx->type->mcdi_request(efx, hdr, hdr_len, inbuf, inlen);
drivers/net/ethernet/sfc/mcdi.c
2251
MCDI_DECLARE_BUF(inbuf, MC_CMD_NVRAM_ERASE_IN_LEN);
drivers/net/ethernet/sfc/mcdi.c
2254
MCDI_SET_DWORD(inbuf, NVRAM_ERASE_IN_TYPE, type);
drivers/net/ethernet/sfc/mcdi.c
2255
MCDI_SET_DWORD(inbuf, NVRAM_ERASE_IN_OFFSET, offset);
drivers/net/ethernet/sfc/mcdi.c
2256
MCDI_SET_DWORD(inbuf, NVRAM_ERASE_IN_LENGTH, length);
drivers/net/ethernet/sfc/mcdi.c
2260
rc = efx_mcdi_rpc(efx, MC_CMD_NVRAM_ERASE, inbuf, sizeof(inbuf),
drivers/net/ethernet/sfc/mcdi.c
2268
MCDI_DECLARE_BUF(inbuf, MC_CMD_NVRAM_UPDATE_FINISH_V2_IN_LEN);
drivers/net/ethernet/sfc/mcdi.c
2273
MCDI_SET_DWORD(inbuf, NVRAM_UPDATE_FINISH_IN_TYPE, type);
drivers/net/ethernet/sfc/mcdi.c
2284
MCDI_POPULATE_DWORD_4(inbuf, NVRAM_UPDATE_FINISH_V2_IN_FLAGS,
drivers/net/ethernet/sfc/mcdi.c
2294
rc = efx_mcdi_rpc(efx, MC_CMD_NVRAM_UPDATE_FINISH, inbuf, sizeof(inbuf),
drivers/net/ethernet/sfc/mcdi.c
800
const efx_dword_t *inbuf, size_t inlen,
drivers/net/ethernet/sfc/mcdi.c
807
if (inbuf && inlen && (inbuf == outbuf)) {
drivers/net/ethernet/sfc/mcdi.c
813
rc = efx_mcdi_rpc_start(efx, cmd, inbuf, inlen);
drivers/net/ethernet/sfc/mcdi.c
838
efx_mcdi_send_request(efx, cmd, inbuf, inlen);
drivers/net/ethernet/sfc/mcdi.c
858
const efx_dword_t *inbuf, size_t inlen,
drivers/net/ethernet/sfc/mcdi.c
865
rc = _efx_mcdi_rpc(efx, cmd, inbuf, inlen,
drivers/net/ethernet/sfc/mcdi.c
883
rc = _efx_mcdi_rpc(efx, cmd, inbuf, inlen,
drivers/net/ethernet/sfc/mcdi.c
925
const efx_dword_t *inbuf, size_t inlen,
drivers/net/ethernet/sfc/mcdi.c
929
return _efx_mcdi_rpc_evb_retry(efx, cmd, inbuf, inlen, outbuf, outlen,
drivers/net/ethernet/sfc/mcdi.c
942
const efx_dword_t *inbuf, size_t inlen,
drivers/net/ethernet/sfc/mcdi.c
946
return _efx_mcdi_rpc_evb_retry(efx, cmd, inbuf, inlen, outbuf, outlen,
drivers/net/ethernet/sfc/mcdi.c
951
const efx_dword_t *inbuf, size_t inlen)
drivers/net/ethernet/sfc/mcdi.c
967
efx_mcdi_send_request(efx, cmd, inbuf, inlen);
drivers/net/ethernet/sfc/mcdi.c
972
const efx_dword_t *inbuf, size_t inlen,
drivers/net/ethernet/sfc/mcdi.c
999
memcpy(async + 1, inbuf, inlen);
drivers/net/ethernet/sfc/mcdi.h
145
int efx_mcdi_rpc(struct efx_nic *efx, unsigned cmd, const efx_dword_t *inbuf,
drivers/net/ethernet/sfc/mcdi.h
149
const efx_dword_t *inbuf, size_t inlen,
drivers/net/ethernet/sfc/mcdi.h
154
const efx_dword_t *inbuf, size_t inlen);
drivers/net/ethernet/sfc/mcdi.h
164
const efx_dword_t *inbuf, size_t inlen, size_t outlen,
drivers/net/ethernet/sfc/mcdi_filters.c
100
MCDI_SET_DWORD(inbuf, FILTER_OP_IN_OP,
drivers/net/ethernet/sfc/mcdi_filters.c
118
memcpy(MCDI_PTR(inbuf, FILTER_OP_IN_ ## mcdi_field), \
drivers/net/ethernet/sfc/mcdi_filters.c
1257
MCDI_DECLARE_BUF(inbuf, MC_CMD_GET_PARSER_DISP_INFO_IN_LEN);
drivers/net/ethernet/sfc/mcdi_filters.c
1264
MCDI_SET_DWORD(inbuf, GET_PARSER_DISP_INFO_IN_OP,
drivers/net/ethernet/sfc/mcdi_filters.c
1269
inbuf, sizeof(inbuf), outbuf, sizeof(outbuf),
drivers/net/ethernet/sfc/mcdi_filters.c
1469
MCDI_DECLARE_BUF(inbuf, MC_CMD_FILTER_OP_EXT_IN_LEN);
drivers/net/ethernet/sfc/mcdi_filters.c
1484
MCDI_SET_DWORD(inbuf, FILTER_OP_IN_OP,
drivers/net/ethernet/sfc/mcdi_filters.c
1488
MCDI_SET_QWORD(inbuf, FILTER_OP_IN_HANDLE,
drivers/net/ethernet/sfc/mcdi_filters.c
1490
rc = efx_mcdi_rpc_quiet(efx, MC_CMD_FILTER_OP, inbuf,
drivers/net/ethernet/sfc/mcdi_filters.c
1491
sizeof(inbuf), NULL, 0, NULL);
drivers/net/ethernet/sfc/mcdi_filters.c
152
MCDI_POPULATE_DWORD_1(inbuf,
drivers/net/ethernet/sfc/mcdi_filters.c
1885
MCDI_DECLARE_BUF(inbuf, MC_CMD_RSS_CONTEXT_GET_FLAGS_OUT_LEN);
drivers/net/ethernet/sfc/mcdi_filters.c
1892
MCDI_SET_DWORD(inbuf, RSS_CONTEXT_GET_FLAGS_IN_RSS_CONTEXT_ID, context);
drivers/net/ethernet/sfc/mcdi_filters.c
1893
MCDI_SET_DWORD(inbuf, RSS_CONTEXT_GET_FLAGS_OUT_FLAGS,
drivers/net/ethernet/sfc/mcdi_filters.c
1895
rc = efx_mcdi_rpc(efx, MC_CMD_RSS_CONTEXT_GET_FLAGS, inbuf,
drivers/net/ethernet/sfc/mcdi_filters.c
1896
sizeof(inbuf), outbuf, sizeof(outbuf), &outlen);
drivers/net/ethernet/sfc/mcdi_filters.c
190
MCDI_SET_DWORD(inbuf, FILTER_OP_IN_MATCH_FIELDS,
drivers/net/ethernet/sfc/mcdi_filters.c
1916
MCDI_DECLARE_BUF(inbuf, MC_CMD_RSS_CONTEXT_SET_FLAGS_IN_LEN);
drivers/net/ethernet/sfc/mcdi_filters.c
1923
MCDI_SET_DWORD(inbuf, RSS_CONTEXT_SET_FLAGS_IN_RSS_CONTEXT_ID,
drivers/net/ethernet/sfc/mcdi_filters.c
1927
MCDI_SET_DWORD(inbuf, RSS_CONTEXT_SET_FLAGS_IN_FLAGS, flags);
drivers/net/ethernet/sfc/mcdi_filters.c
1928
if (!efx_mcdi_rpc(efx, MC_CMD_RSS_CONTEXT_SET_FLAGS, inbuf, sizeof(inbuf),
drivers/net/ethernet/sfc/mcdi_filters.c
1938
MCDI_DECLARE_BUF(inbuf, MC_CMD_RSS_CONTEXT_ALLOC_IN_LEN);
drivers/net/ethernet/sfc/mcdi_filters.c
196
efx_dword_t *inbuf, u64 handle,
drivers/net/ethernet/sfc/mcdi_filters.c
1960
MCDI_SET_DWORD(inbuf, RSS_CONTEXT_ALLOC_IN_UPSTREAM_PORT_ID,
drivers/net/ethernet/sfc/mcdi_filters.c
1962
MCDI_SET_DWORD(inbuf, RSS_CONTEXT_ALLOC_IN_TYPE, alloc_type);
drivers/net/ethernet/sfc/mcdi_filters.c
1963
MCDI_SET_DWORD(inbuf, RSS_CONTEXT_ALLOC_IN_NUM_QUEUES, rss_spread);
drivers/net/ethernet/sfc/mcdi_filters.c
1965
rc = efx_mcdi_rpc(efx, MC_CMD_RSS_CONTEXT_ALLOC, inbuf, sizeof(inbuf),
drivers/net/ethernet/sfc/mcdi_filters.c
1986
MCDI_DECLARE_BUF(inbuf, MC_CMD_RSS_CONTEXT_FREE_IN_LEN);
drivers/net/ethernet/sfc/mcdi_filters.c
1988
MCDI_SET_DWORD(inbuf, RSS_CONTEXT_FREE_IN_RSS_CONTEXT_ID,
drivers/net/ethernet/sfc/mcdi_filters.c
1990
return efx_mcdi_rpc(efx, MC_CMD_RSS_CONTEXT_FREE, inbuf, sizeof(inbuf),
drivers/net/ethernet/sfc/mcdi_filters.c
202
memset(inbuf, 0, MC_CMD_FILTER_OP_EXT_IN_LEN);
drivers/net/ethernet/sfc/mcdi_filters.c
2134
MCDI_DECLARE_BUF(inbuf, MC_CMD_RSS_CONTEXT_GET_TABLE_IN_LEN);
drivers/net/ethernet/sfc/mcdi_filters.c
2148
MCDI_SET_DWORD(inbuf, RSS_CONTEXT_GET_TABLE_IN_RSS_CONTEXT_ID,
drivers/net/ethernet/sfc/mcdi_filters.c
2152
rc = efx_mcdi_rpc(efx, MC_CMD_RSS_CONTEXT_GET_TABLE, inbuf, sizeof(inbuf),
drivers/net/ethernet/sfc/mcdi_filters.c
2164
MCDI_SET_DWORD(inbuf, RSS_CONTEXT_GET_KEY_IN_RSS_CONTEXT_ID,
drivers/net/ethernet/sfc/mcdi_filters.c
2168
rc = efx_mcdi_rpc(efx, MC_CMD_RSS_CONTEXT_GET_KEY, inbuf, sizeof(inbuf),
drivers/net/ethernet/sfc/mcdi_filters.c
217
MCDI_SET_DWORD(inbuf, FILTER_OP_IN_OP,
drivers/net/ethernet/sfc/mcdi_filters.c
219
MCDI_SET_QWORD(inbuf, FILTER_OP_IN_HANDLE, handle);
drivers/net/ethernet/sfc/mcdi_filters.c
221
efx_mcdi_filter_push_prep_set_match_fields(efx, spec, inbuf);
drivers/net/ethernet/sfc/mcdi_filters.c
225
MCDI_SET_DWORD(inbuf, FILTER_OP_IN_PORT_ID, spec->vport_id);
drivers/net/ethernet/sfc/mcdi_filters.c
227
MCDI_SET_DWORD(inbuf, FILTER_OP_IN_PORT_ID, efx->vport_id);
drivers/net/ethernet/sfc/mcdi_filters.c
228
MCDI_SET_DWORD(inbuf, FILTER_OP_IN_RX_DEST,
drivers/net/ethernet/sfc/mcdi_filters.c
232
MCDI_SET_DWORD(inbuf, FILTER_OP_IN_TX_DOMAIN, 0);
drivers/net/ethernet/sfc/mcdi_filters.c
233
MCDI_SET_DWORD(inbuf, FILTER_OP_IN_TX_DEST,
drivers/net/ethernet/sfc/mcdi_filters.c
235
MCDI_SET_DWORD(inbuf, FILTER_OP_IN_RX_QUEUE,
drivers/net/ethernet/sfc/mcdi_filters.c
238
MCDI_SET_DWORD(inbuf, FILTER_OP_IN_RX_MODE,
drivers/net/ethernet/sfc/mcdi_filters.c
243
MCDI_SET_DWORD(inbuf, FILTER_OP_IN_RX_CONTEXT, ctx->context_id);
drivers/net/ethernet/sfc/mcdi_filters.c
250
MCDI_DECLARE_BUF(inbuf, MC_CMD_FILTER_OP_EXT_IN_LEN);
drivers/net/ethernet/sfc/mcdi_filters.c
255
efx_mcdi_filter_push_prep(efx, spec, inbuf, *handle, ctx, replacing);
drivers/net/ethernet/sfc/mcdi_filters.c
256
rc = efx_mcdi_rpc_quiet(efx, MC_CMD_FILTER_OP, inbuf, sizeof(inbuf),
drivers/net/ethernet/sfc/mcdi_filters.c
259
efx_mcdi_display_error(efx, MC_CMD_FILTER_OP, sizeof(inbuf),
drivers/net/ethernet/sfc/mcdi_filters.c
512
MCDI_DECLARE_BUF(inbuf, MC_CMD_FILTER_OP_EXT_IN_LEN);
drivers/net/ethernet/sfc/mcdi_filters.c
515
memset(inbuf, 0, sizeof(inbuf));
drivers/net/ethernet/sfc/mcdi_filters.c
526
MCDI_SET_DWORD(inbuf, FILTER_OP_IN_OP,
drivers/net/ethernet/sfc/mcdi_filters.c
528
MCDI_SET_QWORD(inbuf, FILTER_OP_IN_HANDLE,
drivers/net/ethernet/sfc/mcdi_filters.c
531
inbuf, sizeof(inbuf),
drivers/net/ethernet/sfc/mcdi_filters.c
582
MCDI_DECLARE_BUF(inbuf,
drivers/net/ethernet/sfc/mcdi_filters.c
628
MCDI_SET_DWORD(inbuf, FILTER_OP_IN_OP,
drivers/net/ethernet/sfc/mcdi_filters.c
632
MCDI_SET_QWORD(inbuf, FILTER_OP_IN_HANDLE,
drivers/net/ethernet/sfc/mcdi_filters.c
635
inbuf, sizeof(inbuf), NULL, 0, NULL);
drivers/net/ethernet/sfc/mcdi_filters.c
95
efx_dword_t *inbuf)
drivers/net/ethernet/sfc/mcdi_functions.c
103
MCDI_POPULATE_DWORD_2(inbuf, INIT_EVQ_V2_IN_FLAGS,
drivers/net/ethernet/sfc/mcdi_functions.c
108
MCDI_POPULATE_DWORD_4(inbuf, INIT_EVQ_IN_FLAGS,
drivers/net/ethernet/sfc/mcdi_functions.c
117
MCDI_SET_ARRAY_QWORD(inbuf, INIT_EVQ_IN_DMA_ADDR, i, dma_addr);
drivers/net/ethernet/sfc/mcdi_functions.c
123
rc = efx_mcdi_rpc(efx, MC_CMD_INIT_EVQ, inbuf, inlen,
drivers/net/ethernet/sfc/mcdi_functions.c
142
MCDI_DECLARE_BUF(inbuf, MC_CMD_FINI_EVQ_IN_LEN);
drivers/net/ethernet/sfc/mcdi_functions.c
148
MCDI_SET_DWORD(inbuf, FINI_EVQ_IN_INSTANCE, channel->channel);
drivers/net/ethernet/sfc/mcdi_functions.c
150
rc = efx_mcdi_rpc_quiet(efx, MC_CMD_FINI_EVQ, inbuf, sizeof(inbuf),
drivers/net/ethernet/sfc/mcdi_functions.c
165
MCDI_DECLARE_BUF(inbuf, MC_CMD_INIT_TXQ_IN_LEN(EFX_MAX_DMAQ_SIZE * 8 /
drivers/net/ethernet/sfc/mcdi_functions.c
178
MCDI_SET_DWORD(inbuf, INIT_TXQ_IN_SIZE, tx_queue->ptr_mask + 1);
drivers/net/ethernet/sfc/mcdi_functions.c
179
MCDI_SET_DWORD(inbuf, INIT_TXQ_IN_TARGET_EVQ, channel->channel);
drivers/net/ethernet/sfc/mcdi_functions.c
180
MCDI_SET_DWORD(inbuf, INIT_TXQ_IN_LABEL, tx_queue->label);
drivers/net/ethernet/sfc/mcdi_functions.c
181
MCDI_SET_DWORD(inbuf, INIT_TXQ_IN_INSTANCE, tx_queue->queue);
drivers/net/ethernet/sfc/mcdi_functions.c
182
MCDI_SET_DWORD(inbuf, INIT_TXQ_IN_OWNER_ID, 0);
drivers/net/ethernet/sfc/mcdi_functions.c
183
MCDI_SET_DWORD(inbuf, INIT_TXQ_IN_PORT_ID, efx->vport_id);
drivers/net/ethernet/sfc/mcdi_functions.c
191
MCDI_SET_ARRAY_QWORD(inbuf, INIT_TXQ_IN_DMA_ADDR, i, dma_addr);
drivers/net/ethernet/sfc/mcdi_functions.c
206
MCDI_POPULATE_DWORD_6(inbuf, INIT_TXQ_IN_FLAGS,
drivers/net/ethernet/sfc/mcdi_functions.c
218
rc = efx_mcdi_rpc_quiet(efx, MC_CMD_INIT_TXQ, inbuf, inlen,
drivers/net/ethernet/sfc/mcdi_functions.c
248
MCDI_DECLARE_BUF(inbuf, MC_CMD_FINI_TXQ_IN_LEN);
drivers/net/ethernet/sfc/mcdi_functions.c
254
MCDI_SET_DWORD(inbuf, FINI_TXQ_IN_INSTANCE,
drivers/net/ethernet/sfc/mcdi_functions.c
257
rc = efx_mcdi_rpc_quiet(efx, MC_CMD_FINI_TXQ, inbuf, sizeof(inbuf),
drivers/net/ethernet/sfc/mcdi_functions.c
282
MCDI_DECLARE_BUF(inbuf, MC_CMD_INIT_RXQ_V4_IN_LEN);
drivers/net/ethernet/sfc/mcdi_functions.c
297
MCDI_SET_DWORD(inbuf, INIT_RXQ_IN_SIZE, rx_queue->ptr_mask + 1);
drivers/net/ethernet/sfc/mcdi_functions.c
298
MCDI_SET_DWORD(inbuf, INIT_RXQ_IN_TARGET_EVQ, channel->channel);
drivers/net/ethernet/sfc/mcdi_functions.c
299
MCDI_SET_DWORD(inbuf, INIT_RXQ_IN_LABEL, efx_rx_queue_index(rx_queue));
drivers/net/ethernet/sfc/mcdi_functions.c
300
MCDI_SET_DWORD(inbuf, INIT_RXQ_IN_INSTANCE,
drivers/net/ethernet/sfc/mcdi_functions.c
302
MCDI_POPULATE_DWORD_2(inbuf, INIT_RXQ_IN_FLAGS,
drivers/net/ethernet/sfc/mcdi_functions.c
305
MCDI_SET_DWORD(inbuf, INIT_RXQ_IN_OWNER_ID, 0);
drivers/net/ethernet/sfc/mcdi_functions.c
306
MCDI_SET_DWORD(inbuf, INIT_RXQ_IN_PORT_ID, efx->vport_id);
drivers/net/ethernet/sfc/mcdi_functions.c
307
MCDI_SET_DWORD(inbuf, INIT_RXQ_V4_IN_BUFFER_SIZE_BYTES, buffer_size);
drivers/net/ethernet/sfc/mcdi_functions.c
315
MCDI_SET_ARRAY_QWORD(inbuf, INIT_RXQ_IN_DMA_ADDR, i, dma_addr);
drivers/net/ethernet/sfc/mcdi_functions.c
319
rc = efx_mcdi_rpc(efx, MC_CMD_INIT_RXQ, inbuf, sizeof(inbuf),
drivers/net/ethernet/sfc/mcdi_functions.c
333
MCDI_DECLARE_BUF(inbuf, MC_CMD_FINI_RXQ_IN_LEN);
drivers/net/ethernet/sfc/mcdi_functions.c
339
MCDI_SET_DWORD(inbuf, FINI_RXQ_IN_INSTANCE,
drivers/net/ethernet/sfc/mcdi_functions.c
342
rc = efx_mcdi_rpc_quiet(efx, MC_CMD_FINI_RXQ, inbuf, sizeof(inbuf),
drivers/net/ethernet/sfc/mcdi_functions.c
39
MCDI_DECLARE_BUF(inbuf, MC_CMD_ALLOC_VIS_IN_LEN);
drivers/net/ethernet/sfc/mcdi_functions.c
43
MCDI_SET_DWORD(inbuf, ALLOC_VIS_IN_MIN_VI_COUNT, min_vis);
drivers/net/ethernet/sfc/mcdi_functions.c
44
MCDI_SET_DWORD(inbuf, ALLOC_VIS_IN_MAX_VI_COUNT, max_vis);
drivers/net/ethernet/sfc/mcdi_functions.c
45
rc = efx_mcdi_rpc(efx, MC_CMD_ALLOC_VIS, inbuf, sizeof(inbuf),
drivers/net/ethernet/sfc/mcdi_functions.c
73
MCDI_DECLARE_BUF(inbuf,
drivers/net/ethernet/sfc/mcdi_functions.c
86
MCDI_SET_DWORD(inbuf, INIT_EVQ_IN_SIZE, channel->eventq_mask + 1);
drivers/net/ethernet/sfc/mcdi_functions.c
87
MCDI_SET_DWORD(inbuf, INIT_EVQ_IN_INSTANCE, channel->channel);
drivers/net/ethernet/sfc/mcdi_functions.c
89
MCDI_SET_DWORD(inbuf, INIT_EVQ_IN_IRQ_NUM, channel->channel);
drivers/net/ethernet/sfc/mcdi_functions.c
90
MCDI_SET_DWORD(inbuf, INIT_EVQ_IN_TMR_MODE,
drivers/net/ethernet/sfc/mcdi_functions.c
92
MCDI_SET_DWORD(inbuf, INIT_EVQ_IN_TMR_LOAD, 0);
drivers/net/ethernet/sfc/mcdi_functions.c
93
MCDI_SET_DWORD(inbuf, INIT_EVQ_IN_TMR_RELOAD, 0);
drivers/net/ethernet/sfc/mcdi_functions.c
94
MCDI_SET_DWORD(inbuf, INIT_EVQ_IN_COUNT_MODE,
drivers/net/ethernet/sfc/mcdi_functions.c
96
MCDI_SET_DWORD(inbuf, INIT_EVQ_IN_COUNT_THRSHLD, 0);
drivers/net/ethernet/sfc/mcdi_mon.c
147
MCDI_DECLARE_BUF(inbuf, MC_CMD_READ_SENSORS_EXT_IN_LEN);
drivers/net/ethernet/sfc/mcdi_mon.c
150
MCDI_SET_QWORD(inbuf, READ_SENSORS_EXT_IN_DMA_ADDR,
drivers/net/ethernet/sfc/mcdi_mon.c
152
MCDI_SET_DWORD(inbuf, READ_SENSORS_EXT_IN_LENGTH, hwmon->dma_buf.len);
drivers/net/ethernet/sfc/mcdi_mon.c
155
inbuf, sizeof(inbuf), NULL, 0, NULL);
drivers/net/ethernet/sfc/mcdi_mon.c
307
MCDI_DECLARE_BUF(inbuf, MC_CMD_SENSOR_INFO_EXT_IN_LEN);
drivers/net/ethernet/sfc/mcdi_mon.c
319
MCDI_SET_DWORD(inbuf, SENSOR_INFO_EXT_IN_PAGE, page);
drivers/net/ethernet/sfc/mcdi_mon.c
321
rc = efx_mcdi_rpc(efx, MC_CMD_SENSOR_INFO, inbuf, sizeof(inbuf),
drivers/net/ethernet/sfc/mcdi_mon.c
380
MCDI_SET_DWORD(inbuf, SENSOR_INFO_EXT_IN_PAGE,
drivers/net/ethernet/sfc/mcdi_mon.c
383
inbuf, sizeof(inbuf),
drivers/net/ethernet/sfc/mcdi_port_common.c
1126
MCDI_DECLARE_BUF(inbuf, MC_CMD_SET_MAC_EXT_IN_LEN);
drivers/net/ethernet/sfc/mcdi_port_common.c
1130
MCDI_SET_DWORD(inbuf, SET_MAC_EXT_IN_MTU, efx_calc_mac_mtu(efx));
drivers/net/ethernet/sfc/mcdi_port_common.c
1132
MCDI_POPULATE_DWORD_1(inbuf, SET_MAC_EXT_IN_CONTROL,
drivers/net/ethernet/sfc/mcdi_port_common.c
1135
return efx_mcdi_rpc(efx, MC_CMD_SET_MAC, inbuf, sizeof(inbuf),
drivers/net/ethernet/sfc/mcdi_port_common.c
1148
MCDI_DECLARE_BUF(inbuf, MC_CMD_MAC_STATS_IN_LEN);
drivers/net/ethernet/sfc/mcdi_port_common.c
1159
MCDI_SET_QWORD(inbuf, MAC_STATS_IN_DMA_ADDR, dma_addr);
drivers/net/ethernet/sfc/mcdi_port_common.c
1160
MCDI_POPULATE_DWORD_7(inbuf, MAC_STATS_IN_CMD,
drivers/net/ethernet/sfc/mcdi_port_common.c
1168
MCDI_SET_DWORD(inbuf, MAC_STATS_IN_DMA_LEN, dma_len);
drivers/net/ethernet/sfc/mcdi_port_common.c
1171
MCDI_SET_DWORD(inbuf, MAC_STATS_IN_PORT_ID, efx->vport_id);
drivers/net/ethernet/sfc/mcdi_port_common.c
1173
rc = efx_mcdi_rpc_quiet(efx, MC_CMD_MAC_STATS, inbuf, sizeof(inbuf),
drivers/net/ethernet/sfc/mcdi_port_common.c
1177
efx_mcdi_display_error(efx, MC_CMD_MAC_STATS, sizeof(inbuf),
drivers/net/ethernet/sfc/mcdi_port_common.c
73
MCDI_DECLARE_BUF(inbuf, MC_CMD_SET_LINK_IN_LEN);
drivers/net/ethernet/sfc/mcdi_port_common.c
749
MCDI_DECLARE_BUF(inbuf, MC_CMD_START_BIST_IN_LEN);
drivers/net/ethernet/sfc/mcdi_port_common.c
755
MCDI_SET_DWORD(inbuf, START_BIST_IN_TYPE, bist_mode);
drivers/net/ethernet/sfc/mcdi_port_common.c
757
inbuf, MC_CMD_START_BIST_IN_LEN, NULL, 0, NULL);
drivers/net/ethernet/sfc/mcdi_port_common.c
77
MCDI_SET_DWORD(inbuf, SET_LINK_IN_CAP, capabilities);
drivers/net/ethernet/sfc/mcdi_port_common.c
78
MCDI_SET_DWORD(inbuf, SET_LINK_IN_FLAGS, flags);
drivers/net/ethernet/sfc/mcdi_port_common.c
79
MCDI_SET_DWORD(inbuf, SET_LINK_IN_LOOPBACK_MODE, loopback_mode);
drivers/net/ethernet/sfc/mcdi_port_common.c
80
MCDI_SET_DWORD(inbuf, SET_LINK_IN_LOOPBACK_SPEED, loopback_speed);
drivers/net/ethernet/sfc/mcdi_port_common.c
82
return efx_mcdi_rpc(efx, MC_CMD_SET_LINK, inbuf, sizeof(inbuf),
drivers/net/ethernet/sfc/mcdi_port_common.c
893
MCDI_DECLARE_BUF(inbuf, MC_CMD_GET_PHY_MEDIA_INFO_IN_LEN);
drivers/net/ethernet/sfc/mcdi_port_common.c
904
MCDI_SET_DWORD(inbuf, GET_PHY_MEDIA_INFO_IN_PAGE, page);
drivers/net/ethernet/sfc/mcdi_port_common.c
906
inbuf, sizeof(inbuf),
drivers/net/ethernet/sfc/ptp.c
2125
MCDI_DECLARE_BUF(inbuf, MC_CMD_PTP_IN_ADJUST_LEN);
drivers/net/ethernet/sfc/ptp.c
2129
MCDI_SET_DWORD(inbuf, PTP_IN_OP, MC_CMD_PTP_OP_ADJUST);
drivers/net/ethernet/sfc/ptp.c
2130
MCDI_SET_DWORD(inbuf, PTP_IN_PERIPH_ID, 0);
drivers/net/ethernet/sfc/ptp.c
2131
MCDI_SET_QWORD(inbuf, PTP_IN_ADJUST_FREQ, ptp_data->current_adjfreq);
drivers/net/ethernet/sfc/ptp.c
2132
MCDI_SET_DWORD(inbuf, PTP_IN_ADJUST_MAJOR, nic_major);
drivers/net/ethernet/sfc/ptp.c
2133
MCDI_SET_DWORD(inbuf, PTP_IN_ADJUST_MINOR, nic_minor);
drivers/net/ethernet/sfc/ptp.c
2134
return efx_mcdi_rpc(efx, MC_CMD_PTP, inbuf, sizeof(inbuf),
drivers/net/ethernet/sfc/ptp.c
2144
MCDI_DECLARE_BUF(inbuf, MC_CMD_PTP_IN_READ_NIC_TIME_LEN);
drivers/net/ethernet/sfc/ptp.c
2149
MCDI_SET_DWORD(inbuf, PTP_IN_OP, MC_CMD_PTP_OP_READ_NIC_TIME);
drivers/net/ethernet/sfc/ptp.c
2150
MCDI_SET_DWORD(inbuf, PTP_IN_PERIPH_ID, 0);
drivers/net/ethernet/sfc/ptp.c
2152
rc = efx_mcdi_rpc(efx, MC_CMD_PTP, inbuf, sizeof(inbuf),
drivers/net/ethernet/sfc/ptp.c
413
MCDI_DECLARE_BUF(inbuf, MC_CMD_PTP_IN_STATUS_LEN);
drivers/net/ethernet/sfc/ptp.c
433
MCDI_SET_DWORD(inbuf, PTP_IN_OP, MC_CMD_PTP_OP_STATUS);
drivers/net/ethernet/sfc/ptp.c
434
MCDI_SET_DWORD(inbuf, PTP_IN_PERIPH_ID, 0);
drivers/net/ethernet/sfc/ptp.c
435
rc = efx_mcdi_rpc(efx, MC_CMD_PTP, inbuf, sizeof(inbuf),
drivers/net/ethernet/sfc/ptp.c
624
MCDI_DECLARE_BUF(inbuf, MC_CMD_PTP_IN_GET_ATTRIBUTES_LEN);
drivers/net/ethernet/sfc/ptp.c
635
MCDI_SET_DWORD(inbuf, PTP_IN_OP, MC_CMD_PTP_OP_GET_ATTRIBUTES);
drivers/net/ethernet/sfc/ptp.c
636
MCDI_SET_DWORD(inbuf, PTP_IN_PERIPH_ID, 0);
drivers/net/ethernet/sfc/ptp.c
637
rc = efx_mcdi_rpc_quiet(efx, MC_CMD_PTP, inbuf, sizeof(inbuf),
drivers/net/ethernet/sfc/ptp.c
647
efx_mcdi_display_error(efx, MC_CMD_PTP, sizeof(inbuf),
drivers/net/ethernet/sfc/ptp.c
717
MCDI_DECLARE_BUF(inbuf, MC_CMD_PTP_IN_GET_TIMESTAMP_CORRECTIONS_LEN);
drivers/net/ethernet/sfc/ptp.c
725
MCDI_SET_DWORD(inbuf, PTP_IN_OP,
drivers/net/ethernet/sfc/ptp.c
727
MCDI_SET_DWORD(inbuf, PTP_IN_PERIPH_ID, 0);
drivers/net/ethernet/sfc/ptp.c
729
rc = efx_mcdi_rpc_quiet(efx, MC_CMD_PTP, inbuf, sizeof(inbuf),
drivers/net/ethernet/sfc/ptp.c
762
efx_mcdi_display_error(efx, MC_CMD_PTP, sizeof(inbuf), outbuf,
drivers/net/ethernet/sfc/ptp.c
773
MCDI_DECLARE_BUF(inbuf, MC_CMD_PTP_IN_ENABLE_LEN);
drivers/net/ethernet/sfc/ptp.c
777
MCDI_SET_DWORD(inbuf, PTP_IN_OP, MC_CMD_PTP_OP_ENABLE);
drivers/net/ethernet/sfc/ptp.c
778
MCDI_SET_DWORD(inbuf, PTP_IN_PERIPH_ID, 0);
drivers/net/ethernet/sfc/ptp.c
779
MCDI_SET_DWORD(inbuf, PTP_IN_ENABLE_QUEUE,
drivers/net/ethernet/sfc/ptp.c
782
MCDI_SET_DWORD(inbuf, PTP_IN_ENABLE_MODE, efx->ptp_data->mode);
drivers/net/ethernet/sfc/ptp.c
784
rc = efx_mcdi_rpc_quiet(efx, MC_CMD_PTP, inbuf, sizeof(inbuf),
drivers/net/ethernet/sfc/ptp.c
801
MCDI_DECLARE_BUF(inbuf, MC_CMD_PTP_IN_DISABLE_LEN);
drivers/net/ethernet/sfc/ptp.c
805
MCDI_SET_DWORD(inbuf, PTP_IN_OP, MC_CMD_PTP_OP_DISABLE);
drivers/net/ethernet/sfc/ptp.c
806
MCDI_SET_DWORD(inbuf, PTP_IN_PERIPH_ID, 0);
drivers/net/ethernet/sfc/ptp.c
807
rc = efx_mcdi_rpc_quiet(efx, MC_CMD_PTP, inbuf, sizeof(inbuf),
drivers/net/ethernet/sfc/siena/mcdi.c
1003
memcpy(async + 1, inbuf, inlen);
drivers/net/ethernet/sfc/siena/mcdi.c
1015
efx_mcdi_send_request(efx, cmd, inbuf, inlen);
drivers/net/ethernet/sfc/siena/mcdi.c
1051
const efx_dword_t *inbuf, size_t inlen, size_t outlen,
drivers/net/ethernet/sfc/siena/mcdi.c
1055
return _efx_mcdi_rpc_async(efx, cmd, inbuf, inlen, outlen, complete,
drivers/net/ethernet/sfc/siena/mcdi.c
1060
const efx_dword_t *inbuf, size_t inlen,
drivers/net/ethernet/sfc/siena/mcdi.c
1065
return _efx_mcdi_rpc_async(efx, cmd, inbuf, inlen, outlen, complete,
drivers/net/ethernet/sfc/siena/mcdi.c
1460
MCDI_DECLARE_BUF(inbuf, MC_CMD_DRV_ATTACH_IN_LEN);
drivers/net/ethernet/sfc/siena/mcdi.c
1465
MCDI_SET_DWORD(inbuf, DRV_ATTACH_IN_NEW_STATE,
drivers/net/ethernet/sfc/siena/mcdi.c
1467
MCDI_SET_DWORD(inbuf, DRV_ATTACH_IN_UPDATE, 1);
drivers/net/ethernet/sfc/siena/mcdi.c
1468
MCDI_SET_DWORD(inbuf, DRV_ATTACH_IN_FIRMWARE_ID, MC_CMD_FW_LOW_LATENCY);
drivers/net/ethernet/sfc/siena/mcdi.c
1470
rc = efx_siena_mcdi_rpc_quiet(efx, MC_CMD_DRV_ATTACH, inbuf,
drivers/net/ethernet/sfc/siena/mcdi.c
1471
sizeof(inbuf), outbuf, sizeof(outbuf),
drivers/net/ethernet/sfc/siena/mcdi.c
1480
MCDI_SET_DWORD(inbuf, DRV_ATTACH_IN_FIRMWARE_ID,
drivers/net/ethernet/sfc/siena/mcdi.c
1482
rc = efx_siena_mcdi_rpc_quiet(efx, MC_CMD_DRV_ATTACH, inbuf,
drivers/net/ethernet/sfc/siena/mcdi.c
1483
sizeof(inbuf), outbuf,
drivers/net/ethernet/sfc/siena/mcdi.c
1488
sizeof(inbuf), outbuf, outlen, rc);
drivers/net/ethernet/sfc/siena/mcdi.c
152
const efx_dword_t *inbuf, size_t inlen)
drivers/net/ethernet/sfc/siena/mcdi.c
1584
MCDI_DECLARE_BUF(inbuf, MC_CMD_LOG_CTRL_IN_LEN);
drivers/net/ethernet/sfc/siena/mcdi.c
1593
MCDI_SET_DWORD(inbuf, LOG_CTRL_IN_LOG_DEST, dest);
drivers/net/ethernet/sfc/siena/mcdi.c
1594
MCDI_SET_DWORD(inbuf, LOG_CTRL_IN_LOG_DEST_EVQ, dest_evq);
drivers/net/ethernet/sfc/siena/mcdi.c
1598
rc = efx_siena_mcdi_rpc(efx, MC_CMD_LOG_CTRL, inbuf, sizeof(inbuf),
drivers/net/ethernet/sfc/siena/mcdi.c
1633
MCDI_DECLARE_BUF(inbuf, MC_CMD_NVRAM_INFO_IN_LEN);
drivers/net/ethernet/sfc/siena/mcdi.c
1638
MCDI_SET_DWORD(inbuf, NVRAM_INFO_IN_TYPE, type);
drivers/net/ethernet/sfc/siena/mcdi.c
1640
rc = efx_siena_mcdi_rpc(efx, MC_CMD_NVRAM_INFO, inbuf, sizeof(inbuf),
drivers/net/ethernet/sfc/siena/mcdi.c
1662
MCDI_DECLARE_BUF(inbuf, MC_CMD_NVRAM_TEST_IN_LEN);
drivers/net/ethernet/sfc/siena/mcdi.c
1666
MCDI_SET_DWORD(inbuf, NVRAM_TEST_IN_TYPE, type);
drivers/net/ethernet/sfc/siena/mcdi.c
1668
rc = efx_siena_mcdi_rpc(efx, MC_CMD_NVRAM_TEST, inbuf, sizeof(inbuf),
drivers/net/ethernet/sfc/siena/mcdi.c
1718
MCDI_DECLARE_BUF(inbuf, MC_CMD_GET_ASSERTS_IN_LEN);
drivers/net/ethernet/sfc/siena/mcdi.c
1733
MCDI_SET_DWORD(inbuf, GET_ASSERTS_IN_CLEAR, 1);
drivers/net/ethernet/sfc/siena/mcdi.c
1735
inbuf, MC_CMD_GET_ASSERTS_IN_LEN,
drivers/net/ethernet/sfc/siena/mcdi.c
1781
MCDI_DECLARE_BUF(inbuf, MC_CMD_REBOOT_IN_LEN);
drivers/net/ethernet/sfc/siena/mcdi.c
1791
MCDI_SET_DWORD(inbuf, REBOOT_IN_FLAGS,
drivers/net/ethernet/sfc/siena/mcdi.c
1793
rc = efx_siena_mcdi_rpc_quiet(efx, MC_CMD_REBOOT, inbuf,
drivers/net/ethernet/sfc/siena/mcdi.c
1816
MCDI_DECLARE_BUF(inbuf, MC_CMD_SET_ID_LED_IN_LEN);
drivers/net/ethernet/sfc/siena/mcdi.c
1824
MCDI_SET_DWORD(inbuf, SET_ID_LED_IN_STATE, mode);
drivers/net/ethernet/sfc/siena/mcdi.c
1826
return efx_siena_mcdi_rpc(efx, MC_CMD_SET_ID_LED, inbuf, sizeof(inbuf),
drivers/net/ethernet/sfc/siena/mcdi.c
1832
MCDI_DECLARE_BUF(inbuf, MC_CMD_ENTITY_RESET_IN_LEN);
drivers/net/ethernet/sfc/siena/mcdi.c
1836
MCDI_POPULATE_DWORD_1(inbuf, ENTITY_RESET_IN_FLAG,
drivers/net/ethernet/sfc/siena/mcdi.c
1838
rc = efx_siena_mcdi_rpc(efx, MC_CMD_ENTITY_RESET, inbuf, sizeof(inbuf),
drivers/net/ethernet/sfc/siena/mcdi.c
1845
MCDI_DECLARE_BUF(inbuf, MC_CMD_REBOOT_IN_LEN);
drivers/net/ethernet/sfc/siena/mcdi.c
1849
MCDI_SET_DWORD(inbuf, REBOOT_IN_FLAGS, 0);
drivers/net/ethernet/sfc/siena/mcdi.c
1850
rc = efx_siena_mcdi_rpc(efx, MC_CMD_REBOOT, inbuf, sizeof(inbuf),
drivers/net/ethernet/sfc/siena/mcdi.c
1898
MCDI_DECLARE_BUF(inbuf, MC_CMD_WOL_FILTER_SET_IN_LEN);
drivers/net/ethernet/sfc/siena/mcdi.c
1903
MCDI_SET_DWORD(inbuf, WOL_FILTER_SET_IN_WOL_TYPE, type);
drivers/net/ethernet/sfc/siena/mcdi.c
1904
MCDI_SET_DWORD(inbuf, WOL_FILTER_SET_IN_FILTER_MODE,
drivers/net/ethernet/sfc/siena/mcdi.c
1906
ether_addr_copy(MCDI_PTR(inbuf, WOL_FILTER_SET_IN_MAGIC_MAC), mac);
drivers/net/ethernet/sfc/siena/mcdi.c
1908
rc = efx_siena_mcdi_rpc(efx, MC_CMD_WOL_FILTER_SET, inbuf,
drivers/net/ethernet/sfc/siena/mcdi.c
1909
sizeof(inbuf), outbuf, sizeof(outbuf), &outlen);
drivers/net/ethernet/sfc/siena/mcdi.c
1966
MCDI_DECLARE_BUF(inbuf, MC_CMD_WOL_FILTER_REMOVE_IN_LEN);
drivers/net/ethernet/sfc/siena/mcdi.c
1969
MCDI_SET_DWORD(inbuf, WOL_FILTER_REMOVE_IN_FILTER_ID, (u32)id);
drivers/net/ethernet/sfc/siena/mcdi.c
1971
rc = efx_siena_mcdi_rpc(efx, MC_CMD_WOL_FILTER_REMOVE, inbuf,
drivers/net/ethernet/sfc/siena/mcdi.c
1972
sizeof(inbuf), NULL, 0, NULL);
drivers/net/ethernet/sfc/siena/mcdi.c
1980
MCDI_DECLARE_BUF(inbuf,
drivers/net/ethernet/sfc/siena/mcdi.c
1994
inbuf, FLUSH_RX_QUEUES_IN_QID_OFST,
drivers/net/ethernet/sfc/siena/mcdi.c
2001
rc = efx_siena_mcdi_rpc(efx, MC_CMD_FLUSH_RX_QUEUES, inbuf,
drivers/net/ethernet/sfc/siena/mcdi.c
2024
MCDI_DECLARE_BUF(inbuf, MC_CMD_NVRAM_UPDATE_START_V2_IN_LEN);
drivers/net/ethernet/sfc/siena/mcdi.c
2027
MCDI_SET_DWORD(inbuf, NVRAM_UPDATE_START_IN_TYPE, type);
drivers/net/ethernet/sfc/siena/mcdi.c
2028
MCDI_POPULATE_DWORD_1(inbuf, NVRAM_UPDATE_START_V2_IN_FLAGS,
drivers/net/ethernet/sfc/siena/mcdi.c
2034
rc = efx_siena_mcdi_rpc(efx, MC_CMD_NVRAM_UPDATE_START, inbuf,
drivers/net/ethernet/sfc/siena/mcdi.c
2035
sizeof(inbuf), NULL, 0, NULL);
drivers/net/ethernet/sfc/siena/mcdi.c
2043
MCDI_DECLARE_BUF(inbuf, MC_CMD_NVRAM_READ_IN_V2_LEN);
drivers/net/ethernet/sfc/siena/mcdi.c
2049
MCDI_SET_DWORD(inbuf, NVRAM_READ_IN_TYPE, type);
drivers/net/ethernet/sfc/siena/mcdi.c
2050
MCDI_SET_DWORD(inbuf, NVRAM_READ_IN_OFFSET, offset);
drivers/net/ethernet/sfc/siena/mcdi.c
2051
MCDI_SET_DWORD(inbuf, NVRAM_READ_IN_LENGTH, length);
drivers/net/ethernet/sfc/siena/mcdi.c
2052
MCDI_SET_DWORD(inbuf, NVRAM_READ_IN_V2_MODE,
drivers/net/ethernet/sfc/siena/mcdi.c
2055
rc = efx_siena_mcdi_rpc(efx, MC_CMD_NVRAM_READ, inbuf, sizeof(inbuf),
drivers/net/ethernet/sfc/siena/mcdi.c
2067
MCDI_DECLARE_BUF(inbuf,
drivers/net/ethernet/sfc/siena/mcdi.c
2071
MCDI_SET_DWORD(inbuf, NVRAM_WRITE_IN_TYPE, type);
drivers/net/ethernet/sfc/siena/mcdi.c
2072
MCDI_SET_DWORD(inbuf, NVRAM_WRITE_IN_OFFSET, offset);
drivers/net/ethernet/sfc/siena/mcdi.c
2073
MCDI_SET_DWORD(inbuf, NVRAM_WRITE_IN_LENGTH, length);
drivers/net/ethernet/sfc/siena/mcdi.c
2074
memcpy(MCDI_PTR(inbuf, NVRAM_WRITE_IN_WRITE_BUFFER), buffer, length);
drivers/net/ethernet/sfc/siena/mcdi.c
2078
rc = efx_siena_mcdi_rpc(efx, MC_CMD_NVRAM_WRITE, inbuf,
drivers/net/ethernet/sfc/siena/mcdi.c
2087
MCDI_DECLARE_BUF(inbuf, MC_CMD_NVRAM_ERASE_IN_LEN);
drivers/net/ethernet/sfc/siena/mcdi.c
2090
MCDI_SET_DWORD(inbuf, NVRAM_ERASE_IN_TYPE, type);
drivers/net/ethernet/sfc/siena/mcdi.c
2091
MCDI_SET_DWORD(inbuf, NVRAM_ERASE_IN_OFFSET, offset);
drivers/net/ethernet/sfc/siena/mcdi.c
2092
MCDI_SET_DWORD(inbuf, NVRAM_ERASE_IN_LENGTH, length);
drivers/net/ethernet/sfc/siena/mcdi.c
2096
rc = efx_siena_mcdi_rpc(efx, MC_CMD_NVRAM_ERASE, inbuf, sizeof(inbuf),
drivers/net/ethernet/sfc/siena/mcdi.c
2103
MCDI_DECLARE_BUF(inbuf, MC_CMD_NVRAM_UPDATE_FINISH_V2_IN_LEN);
drivers/net/ethernet/sfc/siena/mcdi.c
2108
MCDI_SET_DWORD(inbuf, NVRAM_UPDATE_FINISH_IN_TYPE, type);
drivers/net/ethernet/sfc/siena/mcdi.c
2110
MCDI_POPULATE_DWORD_1(inbuf, NVRAM_UPDATE_FINISH_V2_IN_FLAGS,
drivers/net/ethernet/sfc/siena/mcdi.c
2114
rc = efx_siena_mcdi_rpc(efx, MC_CMD_NVRAM_UPDATE_FINISH, inbuf,
drivers/net/ethernet/sfc/siena/mcdi.c
2115
sizeof(inbuf), outbuf, sizeof(outbuf), &outlen);
drivers/net/ethernet/sfc/siena/mcdi.c
223
le32_to_cpu(inbuf[i].u32[0]));
drivers/net/ethernet/sfc/siena/mcdi.c
229
efx->type->mcdi_request(efx, hdr, hdr_len, inbuf, inlen);
drivers/net/ethernet/sfc/siena/mcdi.c
804
const efx_dword_t *inbuf, size_t inlen,
drivers/net/ethernet/sfc/siena/mcdi.c
811
if (inbuf && inlen && (inbuf == outbuf)) {
drivers/net/ethernet/sfc/siena/mcdi.c
817
rc = efx_siena_mcdi_rpc_start(efx, cmd, inbuf, inlen);
drivers/net/ethernet/sfc/siena/mcdi.c
842
efx_mcdi_send_request(efx, cmd, inbuf, inlen);
drivers/net/ethernet/sfc/siena/mcdi.c
862
const efx_dword_t *inbuf, size_t inlen,
drivers/net/ethernet/sfc/siena/mcdi.c
869
rc = _efx_mcdi_rpc(efx, cmd, inbuf, inlen,
drivers/net/ethernet/sfc/siena/mcdi.c
887
rc = _efx_mcdi_rpc(efx, cmd, inbuf, inlen,
drivers/net/ethernet/sfc/siena/mcdi.c
929
const efx_dword_t *inbuf, size_t inlen,
drivers/net/ethernet/sfc/siena/mcdi.c
933
return _efx_mcdi_rpc_evb_retry(efx, cmd, inbuf, inlen, outbuf, outlen,
drivers/net/ethernet/sfc/siena/mcdi.c
946
const efx_dword_t *inbuf, size_t inlen,
drivers/net/ethernet/sfc/siena/mcdi.c
950
return _efx_mcdi_rpc_evb_retry(efx, cmd, inbuf, inlen, outbuf, outlen,
drivers/net/ethernet/sfc/siena/mcdi.c
955
const efx_dword_t *inbuf, size_t inlen)
drivers/net/ethernet/sfc/siena/mcdi.c
971
efx_mcdi_send_request(efx, cmd, inbuf, inlen);
drivers/net/ethernet/sfc/siena/mcdi.c
976
const efx_dword_t *inbuf, size_t inlen,
drivers/net/ethernet/sfc/siena/mcdi.h
146
const efx_dword_t *inbuf, size_t inlen,
drivers/net/ethernet/sfc/siena/mcdi.h
150
const efx_dword_t *inbuf, size_t inlen,
drivers/net/ethernet/sfc/siena/mcdi.h
155
const efx_dword_t *inbuf, size_t inlen);
drivers/net/ethernet/sfc/siena/mcdi.h
168
const efx_dword_t *inbuf, size_t inlen,
drivers/net/ethernet/sfc/siena/mcdi.h
173
const efx_dword_t *inbuf, size_t inlen,
drivers/net/ethernet/sfc/siena/mcdi_mon.c
147
MCDI_DECLARE_BUF(inbuf, MC_CMD_READ_SENSORS_EXT_IN_LEN);
drivers/net/ethernet/sfc/siena/mcdi_mon.c
150
MCDI_SET_QWORD(inbuf, READ_SENSORS_EXT_IN_DMA_ADDR,
drivers/net/ethernet/sfc/siena/mcdi_mon.c
152
MCDI_SET_DWORD(inbuf, READ_SENSORS_EXT_IN_LENGTH, hwmon->dma_buf.len);
drivers/net/ethernet/sfc/siena/mcdi_mon.c
155
inbuf, sizeof(inbuf), NULL, 0, NULL);
drivers/net/ethernet/sfc/siena/mcdi_mon.c
307
MCDI_DECLARE_BUF(inbuf, MC_CMD_SENSOR_INFO_EXT_IN_LEN);
drivers/net/ethernet/sfc/siena/mcdi_mon.c
319
MCDI_SET_DWORD(inbuf, SENSOR_INFO_EXT_IN_PAGE, page);
drivers/net/ethernet/sfc/siena/mcdi_mon.c
321
rc = efx_siena_mcdi_rpc(efx, MC_CMD_SENSOR_INFO, inbuf,
drivers/net/ethernet/sfc/siena/mcdi_mon.c
322
sizeof(inbuf), outbuf, sizeof(outbuf),
drivers/net/ethernet/sfc/siena/mcdi_mon.c
380
MCDI_SET_DWORD(inbuf, SENSOR_INFO_EXT_IN_PAGE,
drivers/net/ethernet/sfc/siena/mcdi_mon.c
383
inbuf, sizeof(inbuf),
drivers/net/ethernet/sfc/siena/mcdi_port.c
24
MCDI_DECLARE_BUF(inbuf, MC_CMD_MDIO_READ_IN_LEN);
drivers/net/ethernet/sfc/siena/mcdi_port.c
29
MCDI_SET_DWORD(inbuf, MDIO_READ_IN_BUS, efx->mdio_bus);
drivers/net/ethernet/sfc/siena/mcdi_port.c
30
MCDI_SET_DWORD(inbuf, MDIO_READ_IN_PRTAD, prtad);
drivers/net/ethernet/sfc/siena/mcdi_port.c
31
MCDI_SET_DWORD(inbuf, MDIO_READ_IN_DEVAD, devad);
drivers/net/ethernet/sfc/siena/mcdi_port.c
32
MCDI_SET_DWORD(inbuf, MDIO_READ_IN_ADDR, addr);
drivers/net/ethernet/sfc/siena/mcdi_port.c
34
rc = efx_siena_mcdi_rpc(efx, MC_CMD_MDIO_READ, inbuf, sizeof(inbuf),
drivers/net/ethernet/sfc/siena/mcdi_port.c
50
MCDI_DECLARE_BUF(inbuf, MC_CMD_MDIO_WRITE_IN_LEN);
drivers/net/ethernet/sfc/siena/mcdi_port.c
55
MCDI_SET_DWORD(inbuf, MDIO_WRITE_IN_BUS, efx->mdio_bus);
drivers/net/ethernet/sfc/siena/mcdi_port.c
56
MCDI_SET_DWORD(inbuf, MDIO_WRITE_IN_PRTAD, prtad);
drivers/net/ethernet/sfc/siena/mcdi_port.c
57
MCDI_SET_DWORD(inbuf, MDIO_WRITE_IN_DEVAD, devad);
drivers/net/ethernet/sfc/siena/mcdi_port.c
58
MCDI_SET_DWORD(inbuf, MDIO_WRITE_IN_ADDR, addr);
drivers/net/ethernet/sfc/siena/mcdi_port.c
59
MCDI_SET_DWORD(inbuf, MDIO_WRITE_IN_VALUE, value);
drivers/net/ethernet/sfc/siena/mcdi_port.c
61
rc = efx_siena_mcdi_rpc(efx, MC_CMD_MDIO_WRITE, inbuf, sizeof(inbuf),
drivers/net/ethernet/sfc/siena/mcdi_port_common.c
1155
MCDI_DECLARE_BUF(inbuf, MC_CMD_MAC_STATS_IN_LEN);
drivers/net/ethernet/sfc/siena/mcdi_port_common.c
1166
MCDI_SET_QWORD(inbuf, MAC_STATS_IN_DMA_ADDR, dma_addr);
drivers/net/ethernet/sfc/siena/mcdi_port_common.c
1167
MCDI_POPULATE_DWORD_7(inbuf, MAC_STATS_IN_CMD,
drivers/net/ethernet/sfc/siena/mcdi_port_common.c
1175
MCDI_SET_DWORD(inbuf, MAC_STATS_IN_DMA_LEN, dma_len);
drivers/net/ethernet/sfc/siena/mcdi_port_common.c
1178
MCDI_SET_DWORD(inbuf, MAC_STATS_IN_PORT_ID, efx->vport_id);
drivers/net/ethernet/sfc/siena/mcdi_port_common.c
1180
rc = efx_siena_mcdi_rpc_quiet(efx, MC_CMD_MAC_STATS, inbuf,
drivers/net/ethernet/sfc/siena/mcdi_port_common.c
1181
sizeof(inbuf), NULL, 0, NULL);
drivers/net/ethernet/sfc/siena/mcdi_port_common.c
1185
sizeof(inbuf), NULL, 0, rc);
drivers/net/ethernet/sfc/siena/mcdi_port_common.c
74
MCDI_DECLARE_BUF(inbuf, MC_CMD_SET_LINK_IN_LEN);
drivers/net/ethernet/sfc/siena/mcdi_port_common.c
766
MCDI_DECLARE_BUF(inbuf, MC_CMD_START_BIST_IN_LEN);
drivers/net/ethernet/sfc/siena/mcdi_port_common.c
772
MCDI_SET_DWORD(inbuf, START_BIST_IN_TYPE, bist_mode);
drivers/net/ethernet/sfc/siena/mcdi_port_common.c
773
rc = efx_siena_mcdi_rpc(efx, MC_CMD_START_BIST, inbuf,
drivers/net/ethernet/sfc/siena/mcdi_port_common.c
78
MCDI_SET_DWORD(inbuf, SET_LINK_IN_CAP, capabilities);
drivers/net/ethernet/sfc/siena/mcdi_port_common.c
79
MCDI_SET_DWORD(inbuf, SET_LINK_IN_FLAGS, flags);
drivers/net/ethernet/sfc/siena/mcdi_port_common.c
80
MCDI_SET_DWORD(inbuf, SET_LINK_IN_LOOPBACK_MODE, loopback_mode);
drivers/net/ethernet/sfc/siena/mcdi_port_common.c
81
MCDI_SET_DWORD(inbuf, SET_LINK_IN_LOOPBACK_SPEED, loopback_speed);
drivers/net/ethernet/sfc/siena/mcdi_port_common.c
83
return efx_siena_mcdi_rpc(efx, MC_CMD_SET_LINK, inbuf, sizeof(inbuf),
drivers/net/ethernet/sfc/siena/mcdi_port_common.c
912
MCDI_DECLARE_BUF(inbuf, MC_CMD_GET_PHY_MEDIA_INFO_IN_LEN);
drivers/net/ethernet/sfc/siena/mcdi_port_common.c
923
MCDI_SET_DWORD(inbuf, GET_PHY_MEDIA_INFO_IN_PAGE, page);
drivers/net/ethernet/sfc/siena/mcdi_port_common.c
925
inbuf, sizeof(inbuf),
drivers/net/ethernet/sfc/siena/ptp.c
2083
MCDI_DECLARE_BUF(inbuf, MC_CMD_PTP_IN_ADJUST_LEN);
drivers/net/ethernet/sfc/siena/ptp.c
2087
MCDI_SET_DWORD(inbuf, PTP_IN_OP, MC_CMD_PTP_OP_ADJUST);
drivers/net/ethernet/sfc/siena/ptp.c
2088
MCDI_SET_DWORD(inbuf, PTP_IN_PERIPH_ID, 0);
drivers/net/ethernet/sfc/siena/ptp.c
2089
MCDI_SET_QWORD(inbuf, PTP_IN_ADJUST_FREQ, ptp_data->current_adjfreq);
drivers/net/ethernet/sfc/siena/ptp.c
2090
MCDI_SET_DWORD(inbuf, PTP_IN_ADJUST_MAJOR, nic_major);
drivers/net/ethernet/sfc/siena/ptp.c
2091
MCDI_SET_DWORD(inbuf, PTP_IN_ADJUST_MINOR, nic_minor);
drivers/net/ethernet/sfc/siena/ptp.c
2092
return efx_siena_mcdi_rpc(efx, MC_CMD_PTP, inbuf, sizeof(inbuf),
drivers/net/ethernet/sfc/siena/ptp.c
2102
MCDI_DECLARE_BUF(inbuf, MC_CMD_PTP_IN_READ_NIC_TIME_LEN);
drivers/net/ethernet/sfc/siena/ptp.c
2107
MCDI_SET_DWORD(inbuf, PTP_IN_OP, MC_CMD_PTP_OP_READ_NIC_TIME);
drivers/net/ethernet/sfc/siena/ptp.c
2108
MCDI_SET_DWORD(inbuf, PTP_IN_PERIPH_ID, 0);
drivers/net/ethernet/sfc/siena/ptp.c
2110
rc = efx_siena_mcdi_rpc(efx, MC_CMD_PTP, inbuf, sizeof(inbuf),
drivers/net/ethernet/sfc/siena/ptp.c
407
MCDI_DECLARE_BUF(inbuf, MC_CMD_PTP_IN_STATUS_LEN);
drivers/net/ethernet/sfc/siena/ptp.c
427
MCDI_SET_DWORD(inbuf, PTP_IN_OP, MC_CMD_PTP_OP_STATUS);
drivers/net/ethernet/sfc/siena/ptp.c
428
MCDI_SET_DWORD(inbuf, PTP_IN_PERIPH_ID, 0);
drivers/net/ethernet/sfc/siena/ptp.c
429
rc = efx_siena_mcdi_rpc(efx, MC_CMD_PTP, inbuf, sizeof(inbuf),
drivers/net/ethernet/sfc/siena/ptp.c
631
MCDI_DECLARE_BUF(inbuf, MC_CMD_PTP_IN_GET_ATTRIBUTES_LEN);
drivers/net/ethernet/sfc/siena/ptp.c
642
MCDI_SET_DWORD(inbuf, PTP_IN_OP, MC_CMD_PTP_OP_GET_ATTRIBUTES);
drivers/net/ethernet/sfc/siena/ptp.c
643
MCDI_SET_DWORD(inbuf, PTP_IN_PERIPH_ID, 0);
drivers/net/ethernet/sfc/siena/ptp.c
644
rc = efx_siena_mcdi_rpc_quiet(efx, MC_CMD_PTP, inbuf, sizeof(inbuf),
drivers/net/ethernet/sfc/siena/ptp.c
654
efx_siena_mcdi_display_error(efx, MC_CMD_PTP, sizeof(inbuf),
drivers/net/ethernet/sfc/siena/ptp.c
730
MCDI_DECLARE_BUF(inbuf, MC_CMD_PTP_IN_GET_TIMESTAMP_CORRECTIONS_LEN);
drivers/net/ethernet/sfc/siena/ptp.c
738
MCDI_SET_DWORD(inbuf, PTP_IN_OP,
drivers/net/ethernet/sfc/siena/ptp.c
740
MCDI_SET_DWORD(inbuf, PTP_IN_PERIPH_ID, 0);
drivers/net/ethernet/sfc/siena/ptp.c
742
rc = efx_siena_mcdi_rpc_quiet(efx, MC_CMD_PTP, inbuf, sizeof(inbuf),
drivers/net/ethernet/sfc/siena/ptp.c
775
efx_siena_mcdi_display_error(efx, MC_CMD_PTP, sizeof(inbuf),
drivers/net/ethernet/sfc/siena/ptp.c
786
MCDI_DECLARE_BUF(inbuf, MC_CMD_PTP_IN_ENABLE_LEN);
drivers/net/ethernet/sfc/siena/ptp.c
790
MCDI_SET_DWORD(inbuf, PTP_IN_OP, MC_CMD_PTP_OP_ENABLE);
drivers/net/ethernet/sfc/siena/ptp.c
791
MCDI_SET_DWORD(inbuf, PTP_IN_PERIPH_ID, 0);
drivers/net/ethernet/sfc/siena/ptp.c
792
MCDI_SET_DWORD(inbuf, PTP_IN_ENABLE_QUEUE,
drivers/net/ethernet/sfc/siena/ptp.c
795
MCDI_SET_DWORD(inbuf, PTP_IN_ENABLE_MODE, efx->ptp_data->mode);
drivers/net/ethernet/sfc/siena/ptp.c
797
rc = efx_siena_mcdi_rpc_quiet(efx, MC_CMD_PTP, inbuf, sizeof(inbuf),
drivers/net/ethernet/sfc/siena/ptp.c
814
MCDI_DECLARE_BUF(inbuf, MC_CMD_PTP_IN_DISABLE_LEN);
drivers/net/ethernet/sfc/siena/ptp.c
818
MCDI_SET_DWORD(inbuf, PTP_IN_OP, MC_CMD_PTP_OP_DISABLE);
drivers/net/ethernet/sfc/siena/ptp.c
819
MCDI_SET_DWORD(inbuf, PTP_IN_PERIPH_ID, 0);
drivers/net/ethernet/sfc/siena/ptp.c
820
rc = efx_siena_mcdi_rpc_quiet(efx, MC_CMD_PTP, inbuf, sizeof(inbuf),
drivers/net/ethernet/sfc/siena/siena.c
642
MCDI_DECLARE_BUF(inbuf, MC_CMD_SET_MCAST_HASH_IN_LEN);
drivers/net/ethernet/sfc/siena/siena.c
657
memcpy(MCDI_PTR(inbuf, SET_MCAST_HASH_IN_HASH0),
drivers/net/ethernet/sfc/siena/siena.c
660
inbuf, sizeof(inbuf), NULL, 0, NULL);
drivers/net/ethernet/sfc/siena/siena_sriov.c
199
MCDI_DECLARE_BUF(inbuf, MC_CMD_SRIOV_IN_LEN);
drivers/net/ethernet/sfc/siena/siena_sriov.c
205
MCDI_SET_DWORD(inbuf, SRIOV_IN_ENABLE, enable ? 1 : 0);
drivers/net/ethernet/sfc/siena/siena_sriov.c
206
MCDI_SET_DWORD(inbuf, SRIOV_IN_VI_BASE, EFX_VI_BASE);
drivers/net/ethernet/sfc/siena/siena_sriov.c
207
MCDI_SET_DWORD(inbuf, SRIOV_IN_VF_COUNT, efx->vf_count);
drivers/net/ethernet/sfc/siena/siena_sriov.c
209
rc = efx_siena_mcdi_rpc_quiet(efx, MC_CMD_SRIOV, inbuf,
drivers/net/ethernet/sfc/siena/siena_sriov.c
245
MCDI_DECLARE_BUF(inbuf, MCDI_CTL_SDU_LEN_MAX_V1);
drivers/net/ethernet/sfc/siena/siena_sriov.c
259
record = MCDI_ARRAY_STRUCT_PTR(inbuf, MEMCPY_IN_RECORD, index);
drivers/net/ethernet/sfc/siena/siena_sriov.c
278
memcpy(_MCDI_PTR(inbuf, used), req->from_buf,
drivers/net/ethernet/sfc/siena/siena_sriov.c
292
rc = efx_siena_mcdi_rpc(efx, MC_CMD_MEMCPY, inbuf, used, NULL, 0, NULL);
drivers/net/ethernet/sfc/siena/siena_sriov.c
686
MCDI_DECLARE_BUF(inbuf, MC_CMD_FLUSH_RX_QUEUES_IN_LENMAX);
drivers/net/ethernet/sfc/siena/siena_sriov.c
708
inbuf, FLUSH_RX_QUEUES_IN_QID_OFST,
drivers/net/ethernet/sfc/siena/siena_sriov.c
716
rc = efx_siena_mcdi_rpc(efx, MC_CMD_FLUSH_RX_QUEUES, inbuf,
drivers/net/ethernet/sfc/siena/siena_sriov.c
729
inbuf, FLUSH_RX_QUEUES_IN_QID_OFST,
drivers/ntb/test/ntb_perf.c
1236
if (!peer->inbuf) {
drivers/ntb/test/ntb_perf.c
1243
"\tIn buffer addr 0x%pK\n", peer->inbuf);
drivers/ntb/test/ntb_perf.c
157
void *inbuf;
drivers/ntb/test/ntb_perf.c
559
if (!peer->inbuf)
drivers/ntb/test/ntb_perf.c
564
peer->inbuf, peer->inbuf_xlat);
drivers/ntb/test/ntb_perf.c
565
peer->inbuf = NULL;
drivers/ntb/test/ntb_perf.c
592
peer->inbuf = dma_alloc_coherent(&perf->ntb->pdev->dev,
drivers/ntb/test/ntb_perf.c
595
if (!peer->inbuf) {
drivers/platform/olpc/olpc-ec.c
126
int olpc_ec_cmd(u8 cmd, u8 *inbuf, size_t inlen, u8 *outbuf, size_t outlen)
drivers/platform/olpc/olpc-ec.c
148
desc.inbuf = inbuf;
drivers/platform/olpc/olpc-ec.c
23
u8 *inbuf, *outbuf;
drivers/platform/olpc/olpc-ec.c
97
desc->err = ec_driver->ec_cmd(desc->cmd, desc->inbuf, desc->inlen,
drivers/platform/olpc/olpc-xo175-ec.c
473
static int olpc_xo175_ec_cmd(u8 cmd, u8 *inbuf, size_t inlen, u8 *resp,
drivers/platform/olpc/olpc-xo175-ec.c
524
memcpy(priv->cmd.args, inbuf, inlen);
drivers/platform/x86/intel_scu_ipc.c
486
u32 cmdval, inbuf[4] = {}, outbuf[4] = {};
drivers/platform/x86/intel_scu_ipc.c
498
memcpy(inbuf, in, inlen);
drivers/platform/x86/intel_scu_ipc.c
500
ipc_data_writel(scu, inbuf[i], 4 * i);
drivers/s390/block/dcssblk.c
344
dcssblk_shared_store(struct device *dev, struct device_attribute *attr, const char *inbuf, size_t count)
drivers/s390/block/dcssblk.c
350
if ((count > 1) && (inbuf[1] != '\n') && (inbuf[1] != '\0'))
drivers/s390/block/dcssblk.c
358
if (inbuf[0] == '1') {
drivers/s390/block/dcssblk.c
376
} else if (inbuf[0] == '0') {
drivers/s390/block/dcssblk.c
451
dcssblk_save_store(struct device *dev, struct device_attribute *attr, const char *inbuf, size_t count)
drivers/s390/block/dcssblk.c
456
if ((count > 1) && (inbuf[1] != '\n') && (inbuf[1] != '\0'))
drivers/s390/block/dcssblk.c
461
if (inbuf[0] == '1') {
drivers/s390/block/dcssblk.c
483
} else if (inbuf[0] == '0') {
drivers/s390/char/con3215.c
163
ccw->cda = virt_to_dma32(raw->inbuf);
drivers/s390/char/con3215.c
393
EBCASC(raw->inbuf, count);
drivers/s390/char/con3215.c
394
cchar = ctrlchar_handle(raw->inbuf, count, tty);
drivers/s390/char/con3215.c
407
(strncmp(raw->inbuf+count-2, "\252n", 2) &&
drivers/s390/char/con3215.c
408
strncmp(raw->inbuf+count-2, "^n", 2)) ) {
drivers/s390/char/con3215.c
410
raw->inbuf[count] = '\n';
drivers/s390/char/con3215.c
414
tty_insert_flip_string(&raw->port, raw->inbuf,
drivers/s390/char/con3215.c
678
info->inbuf = kzalloc(RAW3215_INBUF_SIZE, GFP_KERNEL | GFP_DMA);
drivers/s390/char/con3215.c
679
if (!info->buffer || !info->inbuf) {
drivers/s390/char/con3215.c
680
kfree(info->inbuf);
drivers/s390/char/con3215.c
695
kfree(raw->inbuf);
drivers/s390/char/con3215.c
84
u8 *inbuf; /* pointer to input buffer */
drivers/s390/crypto/zcrypt_ep11misc.c
926
const u8 *inbuf, size_t inbufsize,
drivers/s390/crypto/zcrypt_ep11misc.c
985
p += asn1tag_write(p, 0x04, inbuf, inbufsize);
drivers/sbus/char/uctrl.c
279
byte = (txn->inbuf[bytecnt] << 8);
drivers/sbus/char/uctrl.c
307
txn.inbuf = NULL;
drivers/sbus/char/uctrl.c
327
txn.inbuf = NULL;
drivers/sbus/char/uctrl.c
91
u8 *inbuf;
drivers/scsi/advansys.c
6603
DvcGetQinfo(PortAddr iop_base, ushort s_addr, uchar *inbuf, int words)
drivers/scsi/advansys.c
6614
inbuf[i] = word & 0xff;
drivers/scsi/advansys.c
6615
inbuf[i + 1] = (word >> 8) & 0xff;
drivers/scsi/advansys.c
6617
ASC_DBG_PRT_HEX(2, "DvcGetQinfo", inbuf, 2 * words);
drivers/scsi/hptiop.h
337
void *inbuf;
drivers/scsi/qla2xxx/qla_isr.c
2793
uint32_t *inbuf, *outbuf;
drivers/scsi/qla2xxx/qla_isr.c
2796
inbuf = (uint32_t *)&sts->nvme_ersp_data;
drivers/scsi/qla2xxx/qla_isr.c
2813
*outbuf++ = swab32(*inbuf++);
drivers/staging/greybus/hid.c
173
kfree(ghid->inbuf);
drivers/staging/greybus/hid.c
174
ghid->inbuf = NULL;
drivers/staging/greybus/hid.c
180
ghid->inbuf = kzalloc(bufsize, GFP_KERNEL);
drivers/staging/greybus/hid.c
181
if (!ghid->inbuf)
drivers/staging/greybus/hid.c
195
if (gb_hid_get_report(ghid, report->type, report->id, ghid->inbuf,
drivers/staging/greybus/hid.c
204
hid_report_raw_event(ghid->hid, report->type, ghid->inbuf, size, 1);
drivers/staging/greybus/hid.c
30
char *inbuf;
drivers/tty/hvc/hvc_dcc.c
143
while (!kfifo_is_full(&inbuf)) {
drivers/tty/hvc/hvc_dcc.c
146
kfifo_put(&inbuf, ch);
drivers/tty/hvc/hvc_dcc.c
169
while (!kfifo_is_full(&inbuf)) {
drivers/tty/hvc/hvc_dcc.c
172
kfifo_put(&inbuf, ch);
drivers/tty/hvc/hvc_dcc.c
232
if (smp_processor_id() || (!kfifo_is_empty(&inbuf))) {
drivers/tty/hvc/hvc_dcc.c
233
len = kfifo_out(&inbuf, buf, count);
drivers/tty/hvc/hvc_dcc.c
29
static DEFINE_KFIFO(inbuf, u8, DCC_INBUF_SIZE);
drivers/tty/hvc/hvsi.c
1206
hp->inbuf_end = hp->inbuf;
drivers/tty/hvc/hvsi.c
174
if (read_to != hp->inbuf)
drivers/tty/hvc/hvsi.c
175
memmove(hp->inbuf, read_to, remaining);
drivers/tty/hvc/hvsi.c
177
hp->inbuf_end = hp->inbuf + remaining;
drivers/tty/hvc/hvsi.c
391
uint8_t *packet = hp->inbuf;
drivers/tty/hvc/hvsi.c
69
uint8_t inbuf[HVSI_MAX_PACKET + HVSI_MAX_READ];
drivers/tty/hvc/hvsi.c
776
hp->inbuf_end = hp->inbuf; /* discard remaining partial packets */
drivers/tty/hvc/hvsi_lib.c
111
(struct hvsi_query_response *)pv->inbuf;
drivers/tty/hvc/hvsi_lib.c
128
if (pv->inbuf[0] < 0xfc) {
drivers/tty/hvc/hvsi_lib.c
132
type = pv->inbuf[0];
drivers/tty/hvc/hvsi_lib.c
133
len = pv->inbuf[1];
drivers/tty/hvc/hvsi_lib.c
161
memmove(pv->inbuf, &pv->inbuf[len], pv->inbuf_len);
drivers/tty/hvc/hvsi_lib.c
170
&pv->inbuf[pv->inbuf_len],
drivers/tty/hvc/hvsi_lib.c
204
memcpy(&buf[read], &pv->inbuf[pv->inbuf_cur], l);
drivers/tty/hvc/hvsi_lib.c
216
memmove(pv->inbuf, &pv->inbuf[pv->inbuf_cur],
drivers/tty/hvc/hvsi_lib.c
70
struct hvsi_control *pkt = (struct hvsi_control *)pv->inbuf;
drivers/tty/hvc/hvsi_lib.c
86
struct hvsi_query *pkt = (struct hvsi_query *)pv->inbuf;
drivers/tty/vt/consolemap.c
354
unsigned short inbuf[E_TABSZ];
drivers/tty/vt/consolemap.c
358
for (i = 0; i < ARRAY_SIZE(inbuf); i++) {
drivers/tty/vt/consolemap.c
361
inbuf[i] = UNI_DIRECT_BASE | ch;
drivers/tty/vt/consolemap.c
365
memcpy(translations[USER_MAP], inbuf, sizeof(inbuf));
drivers/tty/vt/consolemap.c
388
unsigned short inbuf[E_TABSZ];
drivers/tty/vt/consolemap.c
390
if (copy_from_user(inbuf, arg, sizeof(inbuf)))
drivers/tty/vt/consolemap.c
394
memcpy(translations[USER_MAP], inbuf, sizeof(inbuf));
drivers/usb/class/cdc-wdm.c
1082
desc->inbuf = kmalloc(desc->wMaxCommand, GFP_KERNEL);
drivers/usb/class/cdc-wdm.c
1083
if (!desc->inbuf)
drivers/usb/class/cdc-wdm.c
1109
desc->inbuf,
drivers/usb/class/cdc-wdm.c
227
memmove(desc->ubuf + desc->length, desc->inbuf, length);
drivers/usb/class/cdc-wdm.c
372
kfree(desc->inbuf);
drivers/usb/class/cdc-wdm.c
77
u8 *inbuf; /* buffer for response */
drivers/usb/class/cdc-wdm.c
970
skb_put_data(skb, desc->inbuf, length);
fs/dlm/dir.c
297
void dlm_copy_master_names(struct dlm_ls *ls, const char *inbuf, int inlen,
fs/dlm/dir.c
317
r = find_rsb_root(ls, inbuf, inlen);
fs/dlm/dir.c
320
nodeid, inlen, inlen, inbuf);
fs/dlm/dir.h
20
void dlm_copy_master_names(struct dlm_ls *ls, const char *inbuf, int inlen,
fs/f2fs/compress.c
372
zstd_in_buffer inbuf;
fs/f2fs/compress.c
378
inbuf.pos = 0;
fs/f2fs/compress.c
379
inbuf.src = cc->rbuf;
fs/f2fs/compress.c
380
inbuf.size = src_size;
fs/f2fs/compress.c
386
ret = zstd_compress_stream(stream, &outbuf, &inbuf);
fs/f2fs/compress.c
451
zstd_in_buffer inbuf;
fs/f2fs/compress.c
455
inbuf.pos = 0;
fs/f2fs/compress.c
456
inbuf.src = dic->cbuf->cdata;
fs/f2fs/compress.c
457
inbuf.size = dic->clen;
fs/f2fs/compress.c
463
ret = zstd_decompress_stream(stream, &outbuf, &inbuf);
fs/ntfs/compress.c
1070
hash = ntfs_hash(pctx->inbuf + i);
fs/ntfs/compress.c
1089
static unsigned int ntfs_compress_block(const char *inbuf, const int bufsize,
fs/ntfs/compress.c
1117
pctx->inbuf = (const unsigned char *)inbuf;
fs/ntfs/compress.c
1203
outbuf[xout++] = inbuf[i++];
fs/ntfs/compress.c
1232
outbuf[xout++] = inbuf[i++];
fs/ntfs/compress.c
1258
memcpy(&outbuf[2], inbuf, bufsize);
fs/ntfs/compress.c
1278
char *outbuf = NULL, *pbuf, *inbuf;
fs/ntfs/compress.c
1300
inbuf = vmap(pages, pages_per_cb, VM_MAP, PAGE_KERNEL_RO);
fs/ntfs/compress.c
1301
if (!inbuf)
fs/ntfs/compress.c
1307
vunmap(inbuf);
fs/ntfs/compress.c
1336
sz = ntfs_compress_block(&inbuf[p], bsz, pbuf);
fs/ntfs/compress.c
1459
vunmap(inbuf);
fs/ntfs/compress.c
902
const unsigned char *inbuf;
fs/ntfs/compress.c
962
const u8 * const inbuf = pctx->inbuf;
fs/ntfs/compress.c
963
const u8 * const strptr = &inbuf[i]; /* String we're matching against */
fs/ntfs/compress.c
994
matchptr = &inbuf[cur_match];
include/linux/cdx/mcdi.h
116
const struct cdx_dword *inbuf;
include/linux/cdx/mcdi.h
176
const struct cdx_dword *inbuf, size_t inlen,
include/linux/decompress/bunzip2.h
5
int bunzip2(unsigned char *inbuf, long len,
include/linux/decompress/generic.h
37
decompress_fn decompress_method(const unsigned char *inbuf, long len,
include/linux/decompress/generic.h
5
typedef int (*decompress_fn) (unsigned char *inbuf, long len,
include/linux/decompress/inflate.h
5
int gunzip(unsigned char *inbuf, long len,
include/linux/decompress/unlz4.h
5
int unlz4(unsigned char *inbuf, long len,
include/linux/decompress/unlzo.h
5
int unlzo(unsigned char *inbuf, long len,
include/linux/decompress/unzstd.h
5
int unzstd(unsigned char *inbuf, long len,
include/linux/firmware/qcom/qcom_scm.h
192
int qcom_scm_qtee_invoke_smc(phys_addr_t inbuf, size_t inbuf_size,
include/linux/olpc-ec.h
48
extern int olpc_ec_cmd(u8 cmd, u8 *inbuf, size_t inlen, u8 *outbuf,
include/linux/olpc-ec.h
63
static inline int olpc_ec_cmd(u8 cmd, u8 *inbuf, size_t inlen, u8 *outbuf,
include/linux/sunrpc/gss_api.h
71
struct xdr_buf *inbuf);
include/rdma/ib_verbs.h
1580
const void __user *inbuf;
include/rdma/ib_verbs.h
3098
return copy_from_user(dest, udata->inbuf, len) ? -EFAULT : 0;
include/rdma/ib_verbs.h
3128
return ib_is_buffer_cleared(udata->inbuf + offset, len);
lib/decompress.c
63
decompress_fn __init decompress_method(const unsigned char *inbuf, long len,
lib/decompress.c
74
pr_debug("Compressed data magic: %#.2x %#.2x\n", inbuf[0], inbuf[1]);
lib/decompress.c
77
if (!memcmp(inbuf, cf->magic, 2))
lib/decompress_bunzip2.c
129
bd->inbufCount = bd->fill(bd->inbuf, BZIP2_IOBUF_SIZE);
lib/decompress_bunzip2.c
144
bd->inbufBits = (bd->inbufBits << 8)|bd->inbuf[bd->inbufPos++];
lib/decompress_bunzip2.c
387
(bd->inbufBits << 8)|bd->inbuf[bd->inbufPos++];
lib/decompress_bunzip2.c
630
static int INIT start_bunzip(struct bunzip_data **bdp, void *inbuf, long len,
lib/decompress_bunzip2.c
648
bd->inbuf = inbuf;
lib/decompress_bunzip2.c
689
unsigned char *inbuf;
lib/decompress_bunzip2.c
699
inbuf = buf;
lib/decompress_bunzip2.c
701
inbuf = malloc(BZIP2_IOBUF_SIZE);
lib/decompress_bunzip2.c
702
if (!inbuf) {
lib/decompress_bunzip2.c
707
i = start_bunzip(&bd, inbuf, len, fill);
lib/decompress_bunzip2.c
740
free(inbuf);
lib/decompress_bunzip2.c
98
unsigned char *inbuf /*,*outbuf*/;
lib/decompress_unlzma.c
557
unsigned char *inbuf;
lib/decompress_unlzma.c
563
inbuf = buf;
lib/decompress_unlzma.c
565
inbuf = malloc(LZMA_IOBUF_SIZE);
lib/decompress_unlzma.c
566
if (!inbuf) {
lib/decompress_unlzma.c
580
rc_init(&rc, fill, inbuf, in_len);
lib/decompress_unlzma.c
666
free(inbuf);
scripts/dtc/flattree.c
570
static void inbuf_init(struct inbuf *inb, void *base, void *limit)
scripts/dtc/flattree.c
577
static void flat_read_chunk(struct inbuf *inb, void *p, int len)
scripts/dtc/flattree.c
587
static uint32_t flat_read_word(struct inbuf *inb)
scripts/dtc/flattree.c
598
static void flat_realign(struct inbuf *inb, int align)
scripts/dtc/flattree.c
607
static const char *flat_read_string(struct inbuf *inb)
scripts/dtc/flattree.c
628
static struct data flat_read_data(struct inbuf *inb, int len)
scripts/dtc/flattree.c
645
static char *flat_read_stringtable(struct inbuf *inb, int offset)
scripts/dtc/flattree.c
664
static struct property *flat_read_property(struct inbuf *dtbuf,
scripts/dtc/flattree.c
665
struct inbuf *strbuf, int flags)
scripts/dtc/flattree.c
685
static struct reserve_info *flat_read_mem_reserve(struct inbuf *inb)
scripts/dtc/flattree.c
731
static struct node *unflatten_tree(struct inbuf *dtbuf,
scripts/dtc/flattree.c
732
struct inbuf *strbuf,
scripts/dtc/flattree.c
803
struct inbuf dtbuf, strbuf;
scripts/dtc/flattree.c
804
struct inbuf memresvbuf;
tools/perf/builtin-script.c
1225
u8 *inbuf, int inlen, int *lenp,
tools/perf/builtin-script.c
1230
(uint8_t *)inbuf, inlen, ip, lenp,
tools/perf/builtin-script.c
1236
return fprintf(fp, "%s", dump_insn(x, ip, inbuf, inlen, lenp));
tools/perf/builtin-script.c
1247
struct perf_insn *x, u8 *inbuf, int len,
tools/perf/builtin-script.c
1256
printed += add_padding(fp, any_dump_insn(evsel, x, ip, inbuf, len, &ilen, fp), 30);
tools/perf/util/dump-insn.c
9
u64 ip __maybe_unused, u8 *inbuf __maybe_unused,
tools/perf/util/dump-insn.h
23
u8 *inbuf, int inlen, int *lenp);
tools/perf/util/intel-pt-decoder/intel-pt-insn-decoder.c
219
u8 *inbuf, int inlen, int *lenp)
tools/perf/util/intel-pt-decoder/intel-pt-insn-decoder.c
225
ret = insn_decode(&insn, inbuf, inlen,
tools/perf/util/intel-pt-decoder/intel-pt-insn-decoder.c
236
n += snprintf(x->out + n, left, "%02x ", inbuf[i]);
tools/testing/selftests/net/mptcp/mptcp_connect.c
803
char *inbuf = mmap(NULL, size, PROT_READ, MAP_SHARED, infd, 0);
tools/testing/selftests/net/mptcp/mptcp_connect.c
807
if (inbuf == MAP_FAILED) {
tools/testing/selftests/net/mptcp/mptcp_connect.c
819
ret = write(outfd, inbuf + off, rem);
tools/testing/selftests/net/mptcp/mptcp_connect.c
830
munmap(inbuf, size);
tools/testing/selftests/powerpc/nx-gzip/gzfht_test.c
190
char *inbuf, *outbuf, *srcbuf, *dstbuf;
tools/testing/selftests/powerpc/nx-gzip/gzfht_test.c
212
if (read_file_alloc(argv[1], &inbuf, &inlen))
tools/testing/selftests/powerpc/nx-gzip/gzfht_test.c
240
srcbuf = inbuf;
tools/testing/selftests/powerpc/nx-gzip/gzfht_test.c
363
if (inbuf != NULL)
tools/testing/selftests/powerpc/nx-gzip/gzfht_test.c
364
free(inbuf);