Home
last modified time | relevance | path

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

1234

/Linux-v5.4/drivers/net/ethernet/sfc/
Dmcdi_port.c35 MCDI_DECLARE_BUF(outbuf, MC_CMD_GET_PHY_CFG_OUT_LEN); in efx_mcdi_get_phy_cfg()
43 outbuf, sizeof(outbuf), &outlen); in efx_mcdi_get_phy_cfg()
52 cfg->flags = MCDI_DWORD(outbuf, GET_PHY_CFG_OUT_FLAGS); in efx_mcdi_get_phy_cfg()
53 cfg->type = MCDI_DWORD(outbuf, GET_PHY_CFG_OUT_TYPE); in efx_mcdi_get_phy_cfg()
55 MCDI_DWORD(outbuf, GET_PHY_CFG_OUT_SUPPORTED_CAP); in efx_mcdi_get_phy_cfg()
56 cfg->channel = MCDI_DWORD(outbuf, GET_PHY_CFG_OUT_CHANNEL); in efx_mcdi_get_phy_cfg()
57 cfg->port = MCDI_DWORD(outbuf, GET_PHY_CFG_OUT_PRT); in efx_mcdi_get_phy_cfg()
58 cfg->stats_mask = MCDI_DWORD(outbuf, GET_PHY_CFG_OUT_STATS_MASK); in efx_mcdi_get_phy_cfg()
59 memcpy(cfg->name, MCDI_PTR(outbuf, GET_PHY_CFG_OUT_NAME), in efx_mcdi_get_phy_cfg()
61 cfg->media = MCDI_DWORD(outbuf, GET_PHY_CFG_OUT_MEDIA_TYPE); in efx_mcdi_get_phy_cfg()
[all …]
Dmcdi.c503 efx_dword_t *outbuf; in efx_mcdi_complete_async() local
542 outbuf = (efx_dword_t *)(async + 1); in efx_mcdi_complete_async()
543 efx->type->mcdi_read_response(efx, outbuf, hdr_len, in efx_mcdi_complete_async()
554 async->complete(efx, async->cookie, rc, outbuf, in efx_mcdi_complete_async()
651 efx_dword_t *outbuf, size_t outlen, in _efx_mcdi_rpc_finish() argument
711 efx->type->mcdi_read_response(efx, outbuf, hdr_len, in _efx_mcdi_rpc_finish()
802 efx_dword_t *outbuf, size_t outlen, in _efx_mcdi_rpc() argument
808 if (inbuf && inlen && (inbuf == outbuf)) { in _efx_mcdi_rpc()
818 rc = _efx_mcdi_rpc_finish(efx, cmd, inlen, outbuf, outlen, in _efx_mcdi_rpc()
842 outbuf, outlen, outlen_actual, in _efx_mcdi_rpc()
[all …]
Dptp.c408 MCDI_DECLARE_BUF(outbuf, MC_CMD_PTP_OUT_STATUS_LEN); in efx_ptp_update_stats()
430 outbuf, sizeof(outbuf), NULL); in efx_ptp_update_stats()
432 memset(outbuf, 0, sizeof(outbuf)); in efx_ptp_update_stats()
435 stats, _MCDI_PTR(outbuf, 0), false); in efx_ptp_update_stats()
600 MCDI_DECLARE_BUF(outbuf, MC_CMD_PTP_OUT_GET_ATTRIBUTES_LEN); in efx_ptp_get_attributes()
613 outbuf, sizeof(outbuf), &out_len); in efx_ptp_get_attributes()
615 fmt = MCDI_DWORD(outbuf, PTP_OUT_GET_ATTRIBUTES_TIME_FORMAT); in efx_ptp_get_attributes()
623 outbuf, sizeof(outbuf), rc); in efx_ptp_get_attributes()
671 MCDI_DWORD(outbuf, in efx_ptp_get_attributes()
678 ptp->capabilities = MCDI_DWORD(outbuf, in efx_ptp_get_attributes()
[all …]
Def10.c190 MCDI_DECLARE_BUF(outbuf, MC_CMD_GET_FUNCTION_INFO_OUT_LEN); in efx_ef10_get_pf_index()
195 rc = efx_mcdi_rpc(efx, MC_CMD_GET_FUNCTION_INFO, NULL, 0, outbuf, in efx_ef10_get_pf_index()
196 sizeof(outbuf), &outlen); in efx_ef10_get_pf_index()
199 if (outlen < sizeof(outbuf)) in efx_ef10_get_pf_index()
202 nic_data->pf_index = MCDI_DWORD(outbuf, GET_FUNCTION_INFO_OUT_PF); in efx_ef10_get_pf_index()
209 MCDI_DECLARE_BUF(outbuf, MC_CMD_GET_FUNCTION_INFO_OUT_LEN); in efx_ef10_get_vf_index()
214 rc = efx_mcdi_rpc(efx, MC_CMD_GET_FUNCTION_INFO, NULL, 0, outbuf, in efx_ef10_get_vf_index()
215 sizeof(outbuf), &outlen); in efx_ef10_get_vf_index()
218 if (outlen < sizeof(outbuf)) in efx_ef10_get_vf_index()
221 nic_data->vf_index = MCDI_DWORD(outbuf, GET_FUNCTION_INFO_OUT_VF); in efx_ef10_get_vf_index()
[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()
Def10_sriov.c76 MCDI_DECLARE_BUF(outbuf, MC_CMD_VPORT_ALLOC_OUT_LEN); in efx_ef10_vport_alloc()
93 outbuf, sizeof(outbuf), &outlen); in efx_ef10_vport_alloc()
99 *port_id_out = MCDI_DWORD(outbuf, VPORT_ALLOC_OUT_VPORT_ID); in efx_ef10_vport_alloc()
473 MCDI_DECLARE_BUF_ERR(outbuf); in efx_ef10_vport_del_vf_mac()
481 sizeof(inbuf), outbuf, sizeof(outbuf), &outlen); in efx_ef10_vport_del_vf_mac()
720 MCDI_DECLARE_BUF(outbuf, MC_CMD_LINK_STATE_MODE_OUT_LEN); in efx_ef10_sriov_get_vf_config()
749 outbuf, sizeof(outbuf), &outlen); in efx_ef10_sriov_get_vf_config()
754 ivf->linkstate = MCDI_DWORD(outbuf, LINK_STATE_MODE_OUT_OLD_MODE); in efx_ef10_sriov_get_vf_config()
/Linux-v5.4/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()
/Linux-v5.4/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 …]
/Linux-v5.4/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 kzfree(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 …]
/Linux-v5.4/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()
/Linux-v5.4/drivers/staging/wlan-ng/
Dhfa384x_usb.c1164 le16_to_cpu(ctlx->outbuf.type), in hfa384x_usbctlx_complete_sync()
1219 ctlx->outbuf.cmdreq.type = cpu_to_le16(HFA384x_USB_CMDREQ); in hfa384x_docmd()
1220 ctlx->outbuf.cmdreq.cmd = cpu_to_le16(cmd->cmd); in hfa384x_docmd()
1221 ctlx->outbuf.cmdreq.parm0 = cpu_to_le16(cmd->parm0); in hfa384x_docmd()
1222 ctlx->outbuf.cmdreq.parm1 = cpu_to_le16(cmd->parm1); in hfa384x_docmd()
1223 ctlx->outbuf.cmdreq.parm2 = cpu_to_le16(cmd->parm2); in hfa384x_docmd()
1225 ctlx->outbufsize = sizeof(ctlx->outbuf.cmdreq); in hfa384x_docmd()
1308 ctlx->outbuf.rridreq.type = cpu_to_le16(HFA384x_USB_RRIDREQ); in hfa384x_dorrid()
1309 ctlx->outbuf.rridreq.frmlen = in hfa384x_dorrid()
1310 cpu_to_le16(sizeof(ctlx->outbuf.rridreq.rid)); in hfa384x_dorrid()
[all …]
/Linux-v5.4/drivers/infiniband/sw/rxe/
Drxe_queue.c39 int do_mmap_info(struct rxe_dev *rxe, struct mminfo __user *outbuf, in do_mmap_info() argument
46 if (outbuf) { in do_mmap_info()
51 err = copy_to_user(outbuf, &ip->info, sizeof(ip->info)); in do_mmap_info()
155 struct mminfo __user *outbuf, spinlock_t *producer_lock, in rxe_queue_resize() argument
167 err = do_mmap_info(new_q->rxe, outbuf, udata, new_q->buf, in rxe_queue_resize()
/Linux-v5.4/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 …]
/Linux-v5.4/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()
/Linux-v5.4/crypto/
Dcast6_generic.c176 void __cast6_encrypt(struct cast6_ctx *c, u8 *outbuf, const u8 *inbuf) in __cast6_encrypt() argument
179 __be32 *dst = (__be32 *)outbuf; in __cast6_encrypt()
209 static void cast6_encrypt(struct crypto_tfm *tfm, u8 *outbuf, const u8 *inbuf) in cast6_encrypt() argument
211 __cast6_encrypt(crypto_tfm_ctx(tfm), outbuf, inbuf); in cast6_encrypt()
214 void __cast6_decrypt(struct cast6_ctx *c, u8 *outbuf, const u8 *inbuf) in __cast6_decrypt() argument
217 __be32 *dst = (__be32 *)outbuf; in __cast6_decrypt()
247 static void cast6_decrypt(struct crypto_tfm *tfm, u8 *outbuf, const u8 *inbuf) in cast6_decrypt() argument
249 __cast6_decrypt(crypto_tfm_ctx(tfm), outbuf, inbuf); in cast6_decrypt()
Dcast5_generic.c303 void __cast5_encrypt(struct cast5_ctx *c, u8 *outbuf, const u8 *inbuf) in __cast5_encrypt() argument
306 __be32 *dst = (__be32 *)outbuf; in __cast5_encrypt()
355 static void cast5_encrypt(struct crypto_tfm *tfm, u8 *outbuf, const u8 *inbuf) in cast5_encrypt() argument
357 __cast5_encrypt(crypto_tfm_ctx(tfm), outbuf, inbuf); in cast5_encrypt()
360 void __cast5_decrypt(struct cast5_ctx *c, u8 *outbuf, const u8 *inbuf) in __cast5_decrypt() argument
363 __be32 *dst = (__be32 *)outbuf; in __cast5_decrypt()
399 static void cast5_decrypt(struct crypto_tfm *tfm, u8 *outbuf, const u8 *inbuf) in cast5_decrypt() argument
401 __cast5_decrypt(crypto_tfm_ctx(tfm), outbuf, inbuf); in cast5_decrypt()
/Linux-v5.4/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()
/Linux-v5.4/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 …]
/Linux-v5.4/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()
/Linux-v5.4/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()
/Linux-v5.4/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()
/Linux-v5.4/include/linux/
Dolpc-ec.h48 extern int olpc_ec_cmd(u8 cmd, u8 *inbuf, size_t inlen, u8 *outbuf,
61 static inline int olpc_ec_cmd(u8 cmd, u8 *inbuf, size_t inlen, u8 *outbuf, in olpc_ec_cmd() argument

1234