Home
last modified time | relevance | path

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

1234

/Linux-v5.15/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.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()
632 MCDI_DECLARE_BUF(outbuf, MC_CMD_PTP_OUT_GET_ATTRIBUTES_LEN); in efx_ptp_get_attributes()
645 outbuf, sizeof(outbuf), &out_len); in efx_ptp_get_attributes()
647 fmt = MCDI_DWORD(outbuf, PTP_OUT_GET_ATTRIBUTES_TIME_FORMAT); in efx_ptp_get_attributes()
655 outbuf, sizeof(outbuf), rc); in efx_ptp_get_attributes()
703 MCDI_DWORD(outbuf, in efx_ptp_get_attributes()
710 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()
/Linux-v5.15/drivers/input/touchscreen/
Dilitek_ts_i2c.c73 int (*func)(struct ilitek_ts_data *ts, u16 cmd, u8 *inbuf, u8 *outbuf);
214 u16 idx, u8 *inbuf, u8 *outbuf) in api_protocol_set_cmd() argument
223 error = ts->ptl_cb_func[idx].func(ts, cmd, inbuf, outbuf); in api_protocol_set_cmd()
231 u16 cmd, u8 *inbuf, u8 *outbuf) in api_protocol_get_ptl_ver() argument
237 error = ilitek_i2c_write_and_read(ts, buf, 1, 5, outbuf, 3); in api_protocol_get_ptl_ver()
241 ts->ptl.ver = get_unaligned_be16(outbuf); in api_protocol_get_ptl_ver()
242 ts->ptl.ver_major = outbuf[0]; in api_protocol_get_ptl_ver()
248 u16 cmd, u8 *inbuf, u8 *outbuf) in api_protocol_get_mcu_ver() argument
254 error = ilitek_i2c_write_and_read(ts, buf, 1, 5, outbuf, 32); in api_protocol_get_mcu_ver()
258 ts->mcu_ver = get_unaligned_le16(outbuf); in api_protocol_get_mcu_ver()
[all …]
/Linux-v5.15/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.15/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.15/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 …]
/Linux-v5.15/crypto/
Dcast6_generic.c172 void __cast6_encrypt(const void *ctx, u8 *outbuf, const u8 *inbuf) in __cast6_encrypt() argument
197 put_unaligned_be32(block[0], outbuf); in __cast6_encrypt()
198 put_unaligned_be32(block[1], outbuf + 4); in __cast6_encrypt()
199 put_unaligned_be32(block[2], outbuf + 8); in __cast6_encrypt()
200 put_unaligned_be32(block[3], outbuf + 12); in __cast6_encrypt()
204 static void cast6_encrypt(struct crypto_tfm *tfm, u8 *outbuf, const u8 *inbuf) in cast6_encrypt() argument
206 __cast6_encrypt(crypto_tfm_ctx(tfm), outbuf, inbuf); in cast6_encrypt()
209 void __cast6_decrypt(const void *ctx, u8 *outbuf, const u8 *inbuf) in __cast6_decrypt() argument
234 put_unaligned_be32(block[0], outbuf); in __cast6_decrypt()
235 put_unaligned_be32(block[1], outbuf + 4); in __cast6_decrypt()
[all …]
Dcast5_generic.c303 void __cast5_encrypt(struct cast5_ctx *c, u8 *outbuf, const u8 *inbuf) in __cast5_encrypt() argument
348 put_unaligned_be32(r, outbuf); in __cast5_encrypt()
349 put_unaligned_be32(l, outbuf + 4); in __cast5_encrypt()
353 static void cast5_encrypt(struct crypto_tfm *tfm, u8 *outbuf, const u8 *inbuf) in cast5_encrypt() argument
355 __cast5_encrypt(crypto_tfm_ctx(tfm), outbuf, inbuf); in cast5_encrypt()
358 void __cast5_decrypt(struct cast5_ctx *c, u8 *outbuf, const u8 *inbuf) in __cast5_decrypt() argument
390 put_unaligned_be32(r, outbuf); in __cast5_decrypt()
391 put_unaligned_be32(l, outbuf + 4); in __cast5_decrypt()
395 static void cast5_decrypt(struct crypto_tfm *tfm, u8 *outbuf, const u8 *inbuf) in cast5_decrypt() argument
397 __cast5_decrypt(crypto_tfm_ctx(tfm), outbuf, inbuf); in cast5_decrypt()
/Linux-v5.15/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.15/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 …]
/Linux-v5.15/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.15/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()
132 struct mminfo __user *outbuf, spinlock_t *producer_lock, in rxe_queue_resize() argument
144 err = do_mmap_info(new_q->rxe, outbuf, udata, new_q->buf, in rxe_queue_resize()
/Linux-v5.15/tools/testing/selftests/powerpc/nx-gzip/
Dgzfht_test.c238 char *inbuf, *outbuf, *srcbuf, *dstbuf; in compress_file() local
267 assert(NULL != (outbuf = (char *)malloc(outlen))); in compress_file()
268 nxu_touch_pages(outbuf, outlen, pagelen, 1); in compress_file()
283 num_hdr_bytes = gzip_header_blank(outbuf); in compress_file()
284 dstbuf = outbuf + num_hdr_bytes; in compress_file()
402 if (write_output_file(outname, outbuf, dsttotlen)) { in compress_file()
414 if (outbuf != NULL) in compress_file()
415 free(outbuf); in compress_file()
/Linux-v5.15/arch/powerpc/boot/
Ddecompress.c117 void *outbuf, unsigned long output_size, unsigned long _skip) in partial_decompress() argument
128 output_buffer = outbuf; in partial_decompress()
132 ret = __decompress(inbuf, input_size, NULL, flush, outbuf, in partial_decompress()
/Linux-v5.15/include/crypto/
Ddrbg.h204 unsigned char *outbuf, unsigned int outlen, in crypto_drbg_get_bytes_addtl() argument
208 outbuf, outlen); in crypto_drbg_get_bytes_addtl()
229 unsigned char *outbuf, unsigned int outlen, in crypto_drbg_get_bytes_addtl_test() argument
236 outbuf, outlen); in crypto_drbg_get_bytes_addtl_test()
/Linux-v5.15/fs/dlm/
Ddir.c237 char *outbuf, int outlen, int nodeid) in dlm_copy_master_names() argument
279 memcpy(outbuf + offset, &be_namelen, sizeof(__be16)); in dlm_copy_master_names()
286 memcpy(outbuf + offset, &be_namelen, sizeof(__be16)); in dlm_copy_master_names()
288 memcpy(outbuf + offset, r->res_name, r->res_length); in dlm_copy_master_names()
301 memcpy(outbuf + offset, &be_namelen, sizeof(__be16)); in dlm_copy_master_names()
/Linux-v5.15/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()

1234