/Linux-v4.19/drivers/net/ethernet/sfc/ |
D | mcdi_port.c | 38 MCDI_DECLARE_BUF(outbuf, MC_CMD_GET_PHY_CFG_OUT_LEN); in efx_mcdi_get_phy_cfg() 46 outbuf, sizeof(outbuf), &outlen); in efx_mcdi_get_phy_cfg() 55 cfg->flags = MCDI_DWORD(outbuf, GET_PHY_CFG_OUT_FLAGS); in efx_mcdi_get_phy_cfg() 56 cfg->type = MCDI_DWORD(outbuf, GET_PHY_CFG_OUT_TYPE); in efx_mcdi_get_phy_cfg() 58 MCDI_DWORD(outbuf, GET_PHY_CFG_OUT_SUPPORTED_CAP); in efx_mcdi_get_phy_cfg() 59 cfg->channel = MCDI_DWORD(outbuf, GET_PHY_CFG_OUT_CHANNEL); in efx_mcdi_get_phy_cfg() 60 cfg->port = MCDI_DWORD(outbuf, GET_PHY_CFG_OUT_PRT); in efx_mcdi_get_phy_cfg() 61 cfg->stats_mask = MCDI_DWORD(outbuf, GET_PHY_CFG_OUT_STATS_MASK); in efx_mcdi_get_phy_cfg() 62 memcpy(cfg->name, MCDI_PTR(outbuf, GET_PHY_CFG_OUT_NAME), in efx_mcdi_get_phy_cfg() 64 cfg->media = MCDI_DWORD(outbuf, GET_PHY_CFG_OUT_MEDIA_TYPE); in efx_mcdi_get_phy_cfg() [all …]
|
D | mcdi.c | 506 efx_dword_t *outbuf; in efx_mcdi_complete_async() local 545 outbuf = (efx_dword_t *)(async + 1); in efx_mcdi_complete_async() 546 efx->type->mcdi_read_response(efx, outbuf, hdr_len, in efx_mcdi_complete_async() 557 async->complete(efx, async->cookie, rc, outbuf, in efx_mcdi_complete_async() 654 efx_dword_t *outbuf, size_t outlen, in _efx_mcdi_rpc_finish() argument 714 efx->type->mcdi_read_response(efx, outbuf, hdr_len, in _efx_mcdi_rpc_finish() 805 efx_dword_t *outbuf, size_t outlen, in _efx_mcdi_rpc() argument 811 if (inbuf && inlen && (inbuf == outbuf)) { in _efx_mcdi_rpc() 821 rc = _efx_mcdi_rpc_finish(efx, cmd, inlen, outbuf, outlen, in _efx_mcdi_rpc() 845 outbuf, outlen, outlen_actual, in _efx_mcdi_rpc() [all …]
|
D | ptp.c | 411 MCDI_DECLARE_BUF(outbuf, MC_CMD_PTP_OUT_STATUS_LEN); in efx_ptp_update_stats() 433 outbuf, sizeof(outbuf), NULL); in efx_ptp_update_stats() 435 memset(outbuf, 0, sizeof(outbuf)); in efx_ptp_update_stats() 438 stats, _MCDI_PTR(outbuf, 0), false); in efx_ptp_update_stats() 603 MCDI_DECLARE_BUF(outbuf, MC_CMD_PTP_OUT_GET_ATTRIBUTES_LEN); in efx_ptp_get_attributes() 616 outbuf, sizeof(outbuf), &out_len); in efx_ptp_get_attributes() 618 fmt = MCDI_DWORD(outbuf, PTP_OUT_GET_ATTRIBUTES_TIME_FORMAT); in efx_ptp_get_attributes() 626 outbuf, sizeof(outbuf), rc); in efx_ptp_get_attributes() 674 MCDI_DWORD(outbuf, in efx_ptp_get_attributes() 681 ptp->capabilities = MCDI_DWORD(outbuf, in efx_ptp_get_attributes() [all …]
|
D | ef10.c | 193 MCDI_DECLARE_BUF(outbuf, MC_CMD_GET_FUNCTION_INFO_OUT_LEN); in efx_ef10_get_pf_index() 198 rc = efx_mcdi_rpc(efx, MC_CMD_GET_FUNCTION_INFO, NULL, 0, outbuf, in efx_ef10_get_pf_index() 199 sizeof(outbuf), &outlen); in efx_ef10_get_pf_index() 202 if (outlen < sizeof(outbuf)) in efx_ef10_get_pf_index() 205 nic_data->pf_index = MCDI_DWORD(outbuf, GET_FUNCTION_INFO_OUT_PF); in efx_ef10_get_pf_index() 212 MCDI_DECLARE_BUF(outbuf, MC_CMD_GET_FUNCTION_INFO_OUT_LEN); in efx_ef10_get_vf_index() 217 rc = efx_mcdi_rpc(efx, MC_CMD_GET_FUNCTION_INFO, NULL, 0, outbuf, in efx_ef10_get_vf_index() 218 sizeof(outbuf), &outlen); in efx_ef10_get_vf_index() 221 if (outlen < sizeof(outbuf)) in efx_ef10_get_vf_index() 224 nic_data->vf_index = MCDI_DWORD(outbuf, GET_FUNCTION_INFO_OUT_VF); in efx_ef10_get_vf_index() [all …]
|
D | mcdi_mon.c | 311 MCDI_DECLARE_BUF(outbuf, MC_CMD_SENSOR_INFO_OUT_LENMAX); in efx_mcdi_mon_probe() 325 outbuf, sizeof(outbuf), &outlen); in efx_mcdi_mon_probe() 331 mask = MCDI_DWORD(outbuf, SENSOR_INFO_OUT_MASK); in efx_mcdi_mon_probe() 388 outbuf, sizeof(outbuf), in efx_mcdi_mon_probe() 397 mask = (MCDI_DWORD(outbuf, in efx_mcdi_mon_probe() 451 min1 = MCDI_ARRAY_FIELD(outbuf, SENSOR_ENTRY, in efx_mcdi_mon_probe() 453 max1 = MCDI_ARRAY_FIELD(outbuf, SENSOR_ENTRY, in efx_mcdi_mon_probe() 455 min2 = MCDI_ARRAY_FIELD(outbuf, SENSOR_ENTRY, in efx_mcdi_mon_probe() 457 max2 = MCDI_ARRAY_FIELD(outbuf, SENSOR_ENTRY, in efx_mcdi_mon_probe()
|
D | ef10_sriov.c | 79 MCDI_DECLARE_BUF(outbuf, MC_CMD_VPORT_ALLOC_OUT_LEN); in efx_ef10_vport_alloc() 96 outbuf, sizeof(outbuf), &outlen); in efx_ef10_vport_alloc() 102 *port_id_out = MCDI_DWORD(outbuf, VPORT_ALLOC_OUT_VPORT_ID); in efx_ef10_vport_alloc() 476 MCDI_DECLARE_BUF_ERR(outbuf); in efx_ef10_vport_del_vf_mac() 484 sizeof(inbuf), outbuf, sizeof(outbuf), &outlen); in efx_ef10_vport_del_vf_mac() 723 MCDI_DECLARE_BUF(outbuf, MC_CMD_LINK_STATE_MODE_OUT_LEN); in efx_ef10_sriov_get_vf_config() 752 outbuf, sizeof(outbuf), &outlen); in efx_ef10_sriov_get_vf_config() 757 ivf->linkstate = MCDI_DWORD(outbuf, LINK_STATE_MODE_OUT_OLD_MODE); in efx_ef10_sriov_get_vf_config()
|
/Linux-v4.19/drivers/iio/dac/ |
D | max5821.c | 96 u8 outbuf[2]; in max5821_sync_powerdown_mode() local 98 outbuf[0] = MAX5821_EXTENDED_COMMAND_MODE; in max5821_sync_powerdown_mode() 101 outbuf[1] = MAX5821_EXTENDED_DAC_A; in max5821_sync_powerdown_mode() 103 outbuf[1] = MAX5821_EXTENDED_DAC_B; in max5821_sync_powerdown_mode() 106 outbuf[1] |= data->powerdown_mode[chan->channel] + 1; in max5821_sync_powerdown_mode() 108 outbuf[1] |= MAX5821_EXTENDED_POWER_UP; in max5821_sync_powerdown_mode() 110 return i2c_master_send(data->client, outbuf, 2); in max5821_sync_powerdown_mode() 177 u8 outbuf[1]; in max5821_get_value() local 184 outbuf[0] = max5821_read_dac_command[channel]; in max5821_get_value() 188 ret = i2c_master_send(client, outbuf, 1); in max5821_get_value() [all …]
|
D | mcp4725.c | 52 u8 outbuf[2]; in mcp4725_suspend() local 54 outbuf[0] = (data->powerdown_mode + 1) << 4; in mcp4725_suspend() 55 outbuf[1] = 0; in mcp4725_suspend() 58 return i2c_master_send(data->client, outbuf, 2); in mcp4725_suspend() 65 u8 outbuf[2]; in mcp4725_resume() local 68 outbuf[0] = (data->dac_value >> 8) & 0xf; in mcp4725_resume() 69 outbuf[1] = data->dac_value & 0xff; in mcp4725_resume() 72 return i2c_master_send(data->client, outbuf, 2); in mcp4725_resume() 275 u8 outbuf[2]; in mcp4725_set_value() local 281 outbuf[0] = (val >> 8) & 0xf; in mcp4725_set_value() [all …]
|
D | max517.c | 61 u8 outbuf[2]; in max517_set_value() local 67 outbuf[0] = channel; in max517_set_value() 68 outbuf[1] = val; in max517_set_value() 70 res = i2c_master_send(client, outbuf, 2); in max517_set_value() 119 u8 outbuf = COMMAND_PD; in max517_suspend() local 121 return i2c_master_send(to_i2c_client(dev), &outbuf, 1); in max517_suspend() 126 u8 outbuf = 0; in max517_resume() local 128 return i2c_master_send(to_i2c_client(dev), &outbuf, 1); in max517_resume()
|
D | m62332.c | 46 u8 outbuf[2]; in m62332_set_value() local 52 outbuf[0] = channel; in m62332_set_value() 53 outbuf[1] = val; in m62332_set_value() 63 res = i2c_master_send(client, outbuf, ARRAY_SIZE(outbuf)); in m62332_set_value() 64 if (res >= 0 && res != ARRAY_SIZE(outbuf)) in m62332_set_value()
|
/Linux-v4.19/drivers/usb/gadget/function/ |
D | rndis.c | 174 __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-v4.19/security/keys/ |
D | dh.c | 208 uint8_t *outbuf = NULL; in keyctl_dh_compute_kdf() local 213 outbuf = kmalloc(outbuf_len, GFP_KERNEL); in keyctl_dh_compute_kdf() 214 if (!outbuf) { in keyctl_dh_compute_kdf() 219 ret = kdf_ctr(sdesc, kbuf, kbuflen, outbuf, outbuf_len, lzero); in keyctl_dh_compute_kdf() 224 if (copy_to_user(buffer, outbuf, buflen) != 0) in keyctl_dh_compute_kdf() 228 kzfree(outbuf); in keyctl_dh_compute_kdf() 247 uint8_t *outbuf; in __keyctl_dh_compute() local 346 outbuf = kzalloc(kdfcopy ? (outlen + kdfcopy->otherinfolen) : outlen, in __keyctl_dh_compute() 348 if (!outbuf) { in __keyctl_dh_compute() 353 sg_init_one(&outsg, outbuf, outlen); in __keyctl_dh_compute() [all …]
|
/Linux-v4.19/arch/arm/vdso/ |
D | vdsomunge.c | 137 void *outbuf; in main() local 199 outbuf = mmap(NULL, stat.st_size, PROT_READ | PROT_WRITE, MAP_SHARED, in main() 201 if (outbuf == MAP_FAILED) in main() 206 memcpy(outbuf, inbuf, stat.st_size); in main() 211 outhdr = outbuf; in main() 216 if (msync(outbuf, stat.st_size, MS_SYNC) != 0) in main()
|
/Linux-v4.19/drivers/staging/wlan-ng/ |
D | hfa384x_usb.c | 1263 le16_to_cpu(ctlx->outbuf.type), in hfa384x_usbctlx_complete_sync() 1325 ctlx->outbuf.cmdreq.type = cpu_to_le16(HFA384x_USB_CMDREQ); in hfa384x_docmd() 1326 ctlx->outbuf.cmdreq.cmd = cpu_to_le16(cmd->cmd); in hfa384x_docmd() 1327 ctlx->outbuf.cmdreq.parm0 = cpu_to_le16(cmd->parm0); in hfa384x_docmd() 1328 ctlx->outbuf.cmdreq.parm1 = cpu_to_le16(cmd->parm1); in hfa384x_docmd() 1329 ctlx->outbuf.cmdreq.parm2 = cpu_to_le16(cmd->parm2); in hfa384x_docmd() 1331 ctlx->outbufsize = sizeof(ctlx->outbuf.cmdreq); in hfa384x_docmd() 1414 ctlx->outbuf.rridreq.type = cpu_to_le16(HFA384x_USB_RRIDREQ); in hfa384x_dorrid() 1415 ctlx->outbuf.rridreq.frmlen = in hfa384x_dorrid() 1416 cpu_to_le16(sizeof(ctlx->outbuf.rridreq.rid)); in hfa384x_dorrid() [all …]
|
/Linux-v4.19/drivers/infiniband/sw/rxe/ |
D | rxe_queue.c | 40 struct mminfo __user *outbuf, in do_mmap_info() argument 49 if (outbuf) { in do_mmap_info() 54 err = copy_to_user(outbuf, &ip->info, sizeof(ip->info)); in do_mmap_info() 160 struct mminfo __user *outbuf, in rxe_queue_resize() argument 173 err = do_mmap_info(new_q->rxe, outbuf, context, new_q->buf, in rxe_queue_resize()
|
/Linux-v4.19/lib/ |
D | decompress_bunzip2.c | 523 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-v4.19/arch/powerpc/boot/ |
D | decompress.c | 122 void *outbuf, unsigned long output_size, unsigned long _skip) in partial_decompress() argument 133 output_buffer = outbuf; in partial_decompress() 137 ret = __decompress(inbuf, input_size, NULL, flush, outbuf, in partial_decompress()
|
/Linux-v4.19/crypto/ |
D | cast6_generic.c | 183 void __cast6_encrypt(struct cast6_ctx *c, u8 *outbuf, const u8 *inbuf) in __cast6_encrypt() argument 186 __be32 *dst = (__be32 *)outbuf; in __cast6_encrypt() 216 static void cast6_encrypt(struct crypto_tfm *tfm, u8 *outbuf, const u8 *inbuf) in cast6_encrypt() argument 218 __cast6_encrypt(crypto_tfm_ctx(tfm), outbuf, inbuf); in cast6_encrypt() 221 void __cast6_decrypt(struct cast6_ctx *c, u8 *outbuf, const u8 *inbuf) in __cast6_decrypt() argument 224 __be32 *dst = (__be32 *)outbuf; in __cast6_decrypt() 254 static void cast6_decrypt(struct crypto_tfm *tfm, u8 *outbuf, const u8 *inbuf) in cast6_decrypt() argument 256 __cast6_decrypt(crypto_tfm_ctx(tfm), outbuf, inbuf); in cast6_decrypt()
|
D | cast5_generic.c | 310 void __cast5_encrypt(struct cast5_ctx *c, u8 *outbuf, const u8 *inbuf) in __cast5_encrypt() argument 313 __be32 *dst = (__be32 *)outbuf; in __cast5_encrypt() 362 static void cast5_encrypt(struct crypto_tfm *tfm, u8 *outbuf, const u8 *inbuf) in cast5_encrypt() argument 364 __cast5_encrypt(crypto_tfm_ctx(tfm), outbuf, inbuf); in cast5_encrypt() 367 void __cast5_decrypt(struct cast5_ctx *c, u8 *outbuf, const u8 *inbuf) in __cast5_decrypt() argument 370 __be32 *dst = (__be32 *)outbuf; in __cast5_decrypt() 406 static void cast5_decrypt(struct crypto_tfm *tfm, u8 *outbuf, const u8 *inbuf) in cast5_decrypt() argument 408 __cast5_decrypt(crypto_tfm_ctx(tfm), outbuf, inbuf); in cast5_decrypt()
|
/Linux-v4.19/include/crypto/ |
D | drbg.h | 206 unsigned char *outbuf, unsigned int outlen, in crypto_drbg_get_bytes_addtl() argument 210 outbuf, outlen); in crypto_drbg_get_bytes_addtl() 231 unsigned char *outbuf, unsigned int outlen, in crypto_drbg_get_bytes_addtl_test() argument 238 outbuf, outlen); in crypto_drbg_get_bytes_addtl_test()
|
/Linux-v4.19/drivers/crypto/nx/ |
D | nx-842-pseries.c | 300 unsigned long inbuf, outbuf; in nx842_pseries_compress() local 312 outbuf = (unsigned long)out; in nx842_pseries_compress() 313 if (check_constraints(outbuf, outlen, false)) in nx842_pseries_compress() 348 if ((outbuf & NX842_HW_PAGE_MASK) == in nx842_pseries_compress() 349 ((outbuf + *outlen - 1) & NX842_HW_PAGE_MASK)) { in nx842_pseries_compress() 351 op.out = nx842_get_pa((void *)outbuf); in nx842_pseries_compress() 355 nx842_build_scatterlist(outbuf, *outlen, &slout); in nx842_pseries_compress() 431 unsigned long inbuf, outbuf; in nx842_pseries_decompress() local 444 outbuf = (unsigned long)out; in nx842_pseries_decompress() 445 if (check_constraints(outbuf, outlen, false)) in nx842_pseries_decompress() [all …]
|
/Linux-v4.19/fs/dlm/ |
D | dir.c | 237 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-v4.19/drivers/tty/vt/ |
D | consolemap.c | 345 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-v4.19/drivers/platform/olpc/ |
D | olpc-ec.c | 24 u8 *inbuf, *outbuf; member 89 desc->outbuf, desc->outlen, ec_cb_arg); in olpc_ec_worker() 117 int olpc_ec_cmd(u8 cmd, u8 *inbuf, size_t inlen, u8 *outbuf, size_t outlen) in olpc_ec_cmd() argument 137 desc.outbuf = outbuf; in olpc_ec_cmd()
|
/Linux-v4.19/include/linux/ |
D | olpc-ec.h | 33 extern int olpc_ec_cmd(u8 cmd, u8 *inbuf, size_t inlen, u8 *outbuf, 38 static inline int olpc_ec_cmd(u8 cmd, u8 *inbuf, size_t inlen, u8 *outbuf, in olpc_ec_cmd() argument
|