Home
last modified time | relevance | path

Searched refs:outbuf (Results 1 – 25 of 85) sorted by relevance

1234

/kernel/linux/linux-5.10/drivers/net/ethernet/sfc/
Dmcdi_port.c25 MCDI_DECLARE_BUF(outbuf, MC_CMD_MDIO_READ_OUT_LEN); in efx_mcdi_mdio_read()
35 outbuf, sizeof(outbuf), &outlen); in efx_mcdi_mdio_read()
39 if (MCDI_DWORD(outbuf, MDIO_READ_OUT_STATUS) != in efx_mcdi_mdio_read()
43 return (u16)MCDI_DWORD(outbuf, MDIO_READ_OUT_VALUE); in efx_mcdi_mdio_read()
51 MCDI_DECLARE_BUF(outbuf, MC_CMD_MDIO_WRITE_OUT_LEN); in efx_mcdi_mdio_write()
62 outbuf, sizeof(outbuf), &outlen); in efx_mcdi_mdio_write()
66 if (MCDI_DWORD(outbuf, MDIO_WRITE_OUT_STATUS) != in efx_mcdi_mdio_write()
82 MCDI_DECLARE_BUF(outbuf, MC_CMD_GET_LINK_OUT_LEN); in efx_mcdi_mac_check_fault()
89 outbuf, sizeof(outbuf), &outlength); in efx_mcdi_mac_check_fault()
93 return MCDI_DWORD(outbuf, GET_LINK_OUT_MAC_FAULT) != 0; in efx_mcdi_mac_check_fault()
Dmcdi_functions.c20 MCDI_DECLARE_BUF_ERR(outbuf); in efx_mcdi_free_vis()
23 outbuf, sizeof(outbuf), &outlen); in efx_mcdi_free_vis()
29 efx_mcdi_display_error(efx, MC_CMD_FREE_VIS, 0, outbuf, outlen, in efx_mcdi_free_vis()
38 MCDI_DECLARE_BUF(outbuf, MC_CMD_ALLOC_VIS_OUT_LEN); in efx_mcdi_alloc_vis()
46 outbuf, sizeof(outbuf), &outlen); in efx_mcdi_alloc_vis()
54 MCDI_DWORD(outbuf, ALLOC_VIS_OUT_VI_BASE)); in efx_mcdi_alloc_vis()
57 *vi_base = MCDI_DWORD(outbuf, ALLOC_VIS_OUT_VI_BASE); in efx_mcdi_alloc_vis()
59 *allocated_vis = MCDI_DWORD(outbuf, ALLOC_VIS_OUT_VI_COUNT); in efx_mcdi_alloc_vis()
76 MCDI_DECLARE_BUF(outbuf, MC_CMD_INIT_EVQ_V2_OUT_LEN); in efx_mcdi_ev_init()
124 outbuf, sizeof(outbuf), &outlen); in efx_mcdi_ev_init()
[all …]
Dmcdi_port_common.c17 MCDI_DECLARE_BUF(outbuf, MC_CMD_GET_PHY_CFG_OUT_LEN); in efx_mcdi_get_phy_cfg()
25 outbuf, sizeof(outbuf), &outlen); in efx_mcdi_get_phy_cfg()
34 cfg->flags = MCDI_DWORD(outbuf, GET_PHY_CFG_OUT_FLAGS); in efx_mcdi_get_phy_cfg()
35 cfg->type = MCDI_DWORD(outbuf, GET_PHY_CFG_OUT_TYPE); in efx_mcdi_get_phy_cfg()
37 MCDI_DWORD(outbuf, GET_PHY_CFG_OUT_SUPPORTED_CAP); in efx_mcdi_get_phy_cfg()
38 cfg->channel = MCDI_DWORD(outbuf, GET_PHY_CFG_OUT_CHANNEL); in efx_mcdi_get_phy_cfg()
39 cfg->port = MCDI_DWORD(outbuf, GET_PHY_CFG_OUT_PRT); in efx_mcdi_get_phy_cfg()
40 cfg->stats_mask = MCDI_DWORD(outbuf, GET_PHY_CFG_OUT_STATS_MASK); in efx_mcdi_get_phy_cfg()
41 memcpy(cfg->name, MCDI_PTR(outbuf, GET_PHY_CFG_OUT_NAME), in efx_mcdi_get_phy_cfg()
43 cfg->media = MCDI_DWORD(outbuf, GET_PHY_CFG_OUT_MEDIA_TYPE); in efx_mcdi_get_phy_cfg()
[all …]
Dmcdi.c505 efx_dword_t *outbuf; in efx_mcdi_complete_async() local
544 outbuf = (efx_dword_t *)(async + 1); in efx_mcdi_complete_async()
545 efx->type->mcdi_read_response(efx, outbuf, hdr_len, in efx_mcdi_complete_async()
556 async->complete(efx, async->cookie, rc, outbuf, in efx_mcdi_complete_async()
653 efx_dword_t *outbuf, size_t outlen, in _efx_mcdi_rpc_finish() argument
713 efx->type->mcdi_read_response(efx, outbuf, hdr_len, in _efx_mcdi_rpc_finish()
804 efx_dword_t *outbuf, size_t outlen, in _efx_mcdi_rpc() argument
810 if (inbuf && inlen && (inbuf == outbuf)) { in _efx_mcdi_rpc()
820 rc = _efx_mcdi_rpc_finish(efx, cmd, inlen, outbuf, outlen, in _efx_mcdi_rpc()
844 outbuf, outlen, outlen_actual, in _efx_mcdi_rpc()
[all …]
Dptp.c409 MCDI_DECLARE_BUF(outbuf, MC_CMD_PTP_OUT_STATUS_LEN); in efx_ptp_update_stats()
431 outbuf, sizeof(outbuf), NULL); in efx_ptp_update_stats()
433 memset(outbuf, 0, sizeof(outbuf)); in efx_ptp_update_stats()
436 stats, _MCDI_PTR(outbuf, 0), false); in efx_ptp_update_stats()
639 MCDI_DECLARE_BUF(outbuf, MC_CMD_PTP_OUT_GET_ATTRIBUTES_LEN); in efx_ptp_get_attributes()
652 outbuf, sizeof(outbuf), &out_len); in efx_ptp_get_attributes()
654 fmt = MCDI_DWORD(outbuf, PTP_OUT_GET_ATTRIBUTES_TIME_FORMAT); in efx_ptp_get_attributes()
662 outbuf, sizeof(outbuf), rc); in efx_ptp_get_attributes()
710 MCDI_DWORD(outbuf, in efx_ptp_get_attributes()
717 ptp->capabilities = MCDI_DWORD(outbuf, in efx_ptp_get_attributes()
[all …]
Def10.c90 MCDI_DECLARE_BUF(outbuf, MC_CMD_GET_FUNCTION_INFO_OUT_LEN); in efx_ef10_get_vf_index()
95 rc = efx_mcdi_rpc(efx, MC_CMD_GET_FUNCTION_INFO, NULL, 0, outbuf, in efx_ef10_get_vf_index()
96 sizeof(outbuf), &outlen); in efx_ef10_get_vf_index()
99 if (outlen < sizeof(outbuf)) in efx_ef10_get_vf_index()
102 nic_data->vf_index = MCDI_DWORD(outbuf, GET_FUNCTION_INFO_OUT_VF); in efx_ef10_get_vf_index()
109 MCDI_DECLARE_BUF(outbuf, MC_CMD_GET_CAPABILITIES_V4_OUT_LEN); in efx_ef10_init_datapath_caps()
117 outbuf, sizeof(outbuf), &outlen); in efx_ef10_init_datapath_caps()
127 MCDI_DWORD(outbuf, GET_CAPABILITIES_OUT_FLAGS1); in efx_ef10_init_datapath_caps()
130 nic_data->datapath_caps2 = MCDI_DWORD(outbuf, in efx_ef10_init_datapath_caps()
132 nic_data->piobuf_size = MCDI_WORD(outbuf, in efx_ef10_init_datapath_caps()
[all …]
Dmcdi_mon.c308 MCDI_DECLARE_BUF(outbuf, MC_CMD_SENSOR_INFO_OUT_LENMAX); in efx_mcdi_mon_probe()
322 outbuf, sizeof(outbuf), &outlen); in efx_mcdi_mon_probe()
328 mask = MCDI_DWORD(outbuf, SENSOR_INFO_OUT_MASK); in efx_mcdi_mon_probe()
385 outbuf, sizeof(outbuf), in efx_mcdi_mon_probe()
394 mask = (MCDI_DWORD(outbuf, in efx_mcdi_mon_probe()
448 min1 = MCDI_ARRAY_FIELD(outbuf, SENSOR_ENTRY, in efx_mcdi_mon_probe()
450 max1 = MCDI_ARRAY_FIELD(outbuf, SENSOR_ENTRY, in efx_mcdi_mon_probe()
452 min2 = MCDI_ARRAY_FIELD(outbuf, SENSOR_ENTRY, in efx_mcdi_mon_probe()
454 max2 = MCDI_ARRAY_FIELD(outbuf, SENSOR_ENTRY, in efx_mcdi_mon_probe()
/kernel/linux/linux-5.10/drivers/iio/dac/
Dmax5821.c93 u8 outbuf[2]; in max5821_sync_powerdown_mode() local
95 outbuf[0] = MAX5821_EXTENDED_COMMAND_MODE; in max5821_sync_powerdown_mode()
98 outbuf[1] = MAX5821_EXTENDED_DAC_A; in max5821_sync_powerdown_mode()
100 outbuf[1] = MAX5821_EXTENDED_DAC_B; in max5821_sync_powerdown_mode()
103 outbuf[1] |= data->powerdown_mode[chan->channel] + 1; in max5821_sync_powerdown_mode()
105 outbuf[1] |= MAX5821_EXTENDED_POWER_UP; in max5821_sync_powerdown_mode()
107 return i2c_master_send(data->client, outbuf, 2); in max5821_sync_powerdown_mode()
174 u8 outbuf[1]; in max5821_get_value() local
181 outbuf[0] = max5821_read_dac_command[channel]; in max5821_get_value()
185 ret = i2c_master_send(client, outbuf, 1); in max5821_get_value()
[all …]
Dmcp4725.c49 u8 outbuf[2]; in mcp4725_suspend() local
51 outbuf[0] = (data->powerdown_mode + 1) << 4; in mcp4725_suspend()
52 outbuf[1] = 0; in mcp4725_suspend()
55 return i2c_master_send(data->client, outbuf, 2); in mcp4725_suspend()
62 u8 outbuf[2]; in mcp4725_resume() local
65 outbuf[0] = (data->dac_value >> 8) & 0xf; in mcp4725_resume()
66 outbuf[1] = data->dac_value & 0xff; in mcp4725_resume()
69 return i2c_master_send(data->client, outbuf, 2); in mcp4725_resume()
267 u8 outbuf[2]; in mcp4725_set_value() local
273 outbuf[0] = (val >> 8) & 0xf; in mcp4725_set_value()
[all …]
Dmax517.c48 u8 outbuf[2]; in max517_set_value() local
54 outbuf[0] = channel; in max517_set_value()
55 outbuf[1] = val; in max517_set_value()
57 res = i2c_master_send(client, outbuf, 2); in max517_set_value()
105 u8 outbuf = COMMAND_PD; in max517_suspend() local
107 return i2c_master_send(to_i2c_client(dev), &outbuf, 1); in max517_suspend()
112 u8 outbuf = 0; in max517_resume() local
114 return i2c_master_send(to_i2c_client(dev), &outbuf, 1); in max517_resume()
Dm62332.c37 u8 outbuf[2]; in m62332_set_value() local
43 outbuf[0] = channel; in m62332_set_value()
44 outbuf[1] = val; in m62332_set_value()
54 res = i2c_master_send(client, outbuf, ARRAY_SIZE(outbuf)); in m62332_set_value()
55 if (res >= 0 && res != ARRAY_SIZE(outbuf)) in m62332_set_value()
/kernel/linux/linux-5.10/drivers/usb/gadget/function/
Drndis.c174 __le32 *outbuf; in gen_ndis_query_resp() local
198 outbuf = (__le32 *)&resp[1]; in gen_ndis_query_resp()
214 outbuf[i] = cpu_to_le32(oid_supported_list[i]); in gen_ndis_query_resp()
227 *outbuf = cpu_to_le32(0); in gen_ndis_query_resp()
234 *outbuf = cpu_to_le32(params->medium); in gen_ndis_query_resp()
242 *outbuf = cpu_to_le32(params->medium); in gen_ndis_query_resp()
250 *outbuf = cpu_to_le32(params->dev->mtu); in gen_ndis_query_resp()
260 *outbuf = cpu_to_le32(0); in gen_ndis_query_resp()
262 *outbuf = cpu_to_le32(params->speed); in gen_ndis_query_resp()
270 *outbuf = cpu_to_le32(params->dev->mtu); in gen_ndis_query_resp()
[all …]
/kernel/linux/linux-5.10/security/keys/
Ddh.c203 uint8_t *outbuf = NULL; in keyctl_dh_compute_kdf() local
208 outbuf = kmalloc(outbuf_len, GFP_KERNEL); in keyctl_dh_compute_kdf()
209 if (!outbuf) { in keyctl_dh_compute_kdf()
214 ret = kdf_ctr(sdesc, kbuf, kbuflen, outbuf, outbuf_len, lzero); in keyctl_dh_compute_kdf()
219 if (copy_to_user(buffer, outbuf, buflen) != 0) in keyctl_dh_compute_kdf()
223 kfree_sensitive(outbuf); in keyctl_dh_compute_kdf()
242 uint8_t *outbuf; in __keyctl_dh_compute() local
341 outbuf = kzalloc(kdfcopy ? (outlen + kdfcopy->otherinfolen) : outlen, in __keyctl_dh_compute()
343 if (!outbuf) { in __keyctl_dh_compute()
348 sg_init_one(&outsg, outbuf, outlen); in __keyctl_dh_compute()
[all …]
/kernel/linux/linux-5.10/arch/arm/vdso/
Dvdsomunge.c124 void *outbuf; in main() local
186 outbuf = mmap(NULL, stat.st_size, PROT_READ | PROT_WRITE, MAP_SHARED, in main()
188 if (outbuf == MAP_FAILED) in main()
193 memcpy(outbuf, inbuf, stat.st_size); in main()
198 outhdr = outbuf; in main()
203 if (msync(outbuf, stat.st_size, MS_SYNC) != 0) in main()
/kernel/linux/linux-5.10/drivers/staging/wlan-ng/
Dhfa384x_usb.c1155 le16_to_cpu(ctlx->outbuf.type), in hfa384x_usbctlx_complete_sync()
1210 ctlx->outbuf.cmdreq.type = cpu_to_le16(HFA384x_USB_CMDREQ); in hfa384x_docmd()
1211 ctlx->outbuf.cmdreq.cmd = cpu_to_le16(cmd->cmd); in hfa384x_docmd()
1212 ctlx->outbuf.cmdreq.parm0 = cpu_to_le16(cmd->parm0); in hfa384x_docmd()
1213 ctlx->outbuf.cmdreq.parm1 = cpu_to_le16(cmd->parm1); in hfa384x_docmd()
1214 ctlx->outbuf.cmdreq.parm2 = cpu_to_le16(cmd->parm2); in hfa384x_docmd()
1216 ctlx->outbufsize = sizeof(ctlx->outbuf.cmdreq); in hfa384x_docmd()
1299 ctlx->outbuf.rridreq.type = cpu_to_le16(HFA384x_USB_RRIDREQ); in hfa384x_dorrid()
1300 ctlx->outbuf.rridreq.frmlen = in hfa384x_dorrid()
1301 cpu_to_le16(sizeof(ctlx->outbuf.rridreq.rid)); in hfa384x_dorrid()
[all …]
/kernel/linux/linux-5.10/drivers/infiniband/sw/rxe/
Drxe_queue.c12 int do_mmap_info(struct rxe_dev *rxe, struct mminfo __user *outbuf, in do_mmap_info() argument
19 if (outbuf) { in do_mmap_info()
26 if (copy_to_user(outbuf, &ip->info, sizeof(ip->info))) { in do_mmap_info()
131 struct mminfo __user *outbuf, spinlock_t *producer_lock, in rxe_queue_resize() argument
143 err = do_mmap_info(new_q->rxe, outbuf, udata, new_q->buf, in rxe_queue_resize()
/kernel/linux/linux-5.10/lib/
Ddecompress_bunzip2.c523 static int INIT read_bunzip(struct bunzip_data *bd, char *outbuf, int len) in read_bunzip() argument
555 outbuf[gotcount++] = xcurrent; in read_bunzip()
682 unsigned char *outbuf, in bunzip2() argument
691 outbuf = malloc(BZIP2_IOBUF_SIZE); in bunzip2()
693 if (!outbuf) { in bunzip2()
709 i = read_bunzip(bd, outbuf, BZIP2_IOBUF_SIZE); in bunzip2()
713 outbuf += i; in bunzip2()
715 if (i != flush(outbuf, i)) { in bunzip2()
742 free(outbuf); in bunzip2()
750 unsigned char *outbuf, long olen, in __decompress() argument
[all …]
/kernel/linux/linux-5.10/arch/powerpc/boot/
Ddecompress.c118 void *outbuf, unsigned long output_size, unsigned long _skip) in partial_decompress() argument
129 output_buffer = outbuf; in partial_decompress()
133 ret = __decompress(inbuf, input_size, NULL, flush, outbuf, in partial_decompress()
/kernel/linux/linux-5.10/tools/testing/selftests/powerpc/nx-gzip/
Dgzfht_test.c235 char *inbuf, *outbuf, *srcbuf, *dstbuf; in compress_file() local
263 assert(NULL != (outbuf = (char *)malloc(outlen))); in compress_file()
264 nxu_touch_pages(outbuf, outlen, pagelen, 1); in compress_file()
270 num_hdr_bytes = gzip_header_blank(outbuf); in compress_file()
271 dstbuf = outbuf + num_hdr_bytes; in compress_file()
389 if (write_output_file(outname, outbuf, dsttotlen)) { in compress_file()
401 if (outbuf != NULL) in compress_file()
402 free(outbuf); in compress_file()
/kernel/linux/linux-5.10/crypto/
Dcast6_generic.c172 void __cast6_encrypt(const void *ctx, u8 *outbuf, const u8 *inbuf) in __cast6_encrypt() argument
176 __be32 *dst = (__be32 *)outbuf; in __cast6_encrypt()
206 static void cast6_encrypt(struct crypto_tfm *tfm, u8 *outbuf, const u8 *inbuf) in cast6_encrypt() argument
208 __cast6_encrypt(crypto_tfm_ctx(tfm), outbuf, inbuf); in cast6_encrypt()
211 void __cast6_decrypt(const void *ctx, u8 *outbuf, const u8 *inbuf) in __cast6_decrypt() argument
215 __be32 *dst = (__be32 *)outbuf; in __cast6_decrypt()
245 static void cast6_decrypt(struct crypto_tfm *tfm, u8 *outbuf, const u8 *inbuf) in cast6_decrypt() argument
247 __cast6_decrypt(crypto_tfm_ctx(tfm), outbuf, inbuf); in cast6_decrypt()
/kernel/linux/linux-5.10/include/crypto/
Ddrbg.h208 unsigned char *outbuf, unsigned int outlen, in crypto_drbg_get_bytes_addtl() argument
212 outbuf, outlen); in crypto_drbg_get_bytes_addtl()
233 unsigned char *outbuf, unsigned int outlen, in crypto_drbg_get_bytes_addtl_test() argument
240 outbuf, outlen); in crypto_drbg_get_bytes_addtl_test()
/kernel/linux/linux-5.10/drivers/crypto/nx/
Dnx-842-pseries.c287 unsigned long inbuf, outbuf; in nx842_pseries_compress() local
299 outbuf = (unsigned long)out; in nx842_pseries_compress()
300 if (check_constraints(outbuf, outlen, false)) in nx842_pseries_compress()
334 if ((outbuf & NX842_HW_PAGE_MASK) == in nx842_pseries_compress()
335 ((outbuf + *outlen - 1) & NX842_HW_PAGE_MASK)) { in nx842_pseries_compress()
337 op.out = nx842_get_pa((void *)outbuf); in nx842_pseries_compress()
341 nx842_build_scatterlist(outbuf, *outlen, &slout); in nx842_pseries_compress()
417 unsigned long inbuf, outbuf; in nx842_pseries_decompress() local
430 outbuf = (unsigned long)out; in nx842_pseries_decompress()
431 if (check_constraints(outbuf, outlen, false)) in nx842_pseries_decompress()
[all …]
/kernel/linux/linux-5.10/fs/dlm/
Ddir.c235 char *outbuf, int outlen, int nodeid) in dlm_copy_master_names() argument
277 memcpy(outbuf + offset, &be_namelen, sizeof(__be16)); in dlm_copy_master_names()
284 memcpy(outbuf + offset, &be_namelen, sizeof(__be16)); in dlm_copy_master_names()
286 memcpy(outbuf + offset, r->res_name, r->res_length); in dlm_copy_master_names()
299 memcpy(outbuf + offset, &be_namelen, sizeof(__be16)); in dlm_copy_master_names()
/kernel/linux/linux-5.10/drivers/tty/vt/
Dconsolemap.c345 unsigned char outbuf[E_TABSZ]; in con_get_trans_old() local
351 outbuf[i] = (ch & ~0xff) ? 0 : ch; in con_get_trans_old()
355 return copy_to_user(arg, outbuf, sizeof(outbuf)) ? -EFAULT : 0; in con_get_trans_old()
374 unsigned short outbuf[E_TABSZ]; in con_get_trans_new() local
377 memcpy(outbuf, translations[USER_MAP], sizeof(outbuf)); in con_get_trans_new()
380 return copy_to_user(arg, outbuf, sizeof(outbuf)) ? -EFAULT : 0; in con_get_trans_new()
/kernel/linux/linux-5.10/arch/x86/platform/olpc/
Dolpc.c109 static int olpc_xo1_ec_cmd(u8 cmd, u8 *inbuf, size_t inlen, u8 *outbuf, in olpc_xo1_ec_cmd() argument
162 if (outbuf && outlen) { in olpc_xo1_ec_cmd()
172 outbuf[i] = inb(0x68); in olpc_xo1_ec_cmd()
173 pr_devel("olpc-ec: received 0x%x\n", outbuf[i]); in olpc_xo1_ec_cmd()

1234