Home
last modified time | relevance | path

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

12

/drivers/net/ethernet/sfc/
Dmcdi_port.c38 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 …]
Dmcdi.c507 efx_dword_t *outbuf; in efx_mcdi_complete_async() local
546 outbuf = (efx_dword_t *)(async + 1); in efx_mcdi_complete_async()
547 efx->type->mcdi_read_response(efx, outbuf, hdr_len, in efx_mcdi_complete_async()
558 async->complete(efx, async->cookie, rc, outbuf, in efx_mcdi_complete_async()
655 efx_dword_t *outbuf, size_t outlen, in _efx_mcdi_rpc_finish() argument
715 efx->type->mcdi_read_response(efx, outbuf, hdr_len, in _efx_mcdi_rpc_finish()
806 efx_dword_t *outbuf, size_t outlen, in _efx_mcdi_rpc() argument
812 if (inbuf && inlen && (inbuf == outbuf)) { in _efx_mcdi_rpc()
822 rc = _efx_mcdi_rpc_finish(efx, cmd, inlen, outbuf, outlen, in _efx_mcdi_rpc()
846 outbuf, outlen, outlen_actual, in _efx_mcdi_rpc()
[all …]
Dptp.c369 MCDI_DECLARE_BUF(outbuf, MC_CMD_PTP_OUT_STATUS_LEN); in efx_ptp_update_stats()
391 outbuf, sizeof(outbuf), NULL); in efx_ptp_update_stats()
393 memset(outbuf, 0, sizeof(outbuf)); in efx_ptp_update_stats()
396 stats, _MCDI_PTR(outbuf, 0), false); in efx_ptp_update_stats()
478 MCDI_DECLARE_BUF(outbuf, MC_CMD_PTP_OUT_GET_ATTRIBUTES_LEN); in efx_ptp_get_attributes()
491 outbuf, sizeof(outbuf), &out_len); in efx_ptp_get_attributes()
493 fmt = MCDI_DWORD(outbuf, PTP_OUT_GET_ATTRIBUTES_TIME_FORMAT); in efx_ptp_get_attributes()
501 outbuf, sizeof(outbuf), rc); in efx_ptp_get_attributes()
525 MCDI_DWORD(outbuf, in efx_ptp_get_attributes()
537 MCDI_DECLARE_BUF(outbuf, MC_CMD_PTP_OUT_GET_TIMESTAMP_CORRECTIONS_LEN); in efx_ptp_get_timestamp_corrections()
[all …]
Def10.c178 MCDI_DECLARE_BUF(outbuf, MC_CMD_GET_FUNCTION_INFO_OUT_LEN); in efx_ef10_get_pf_index()
183 rc = efx_mcdi_rpc(efx, MC_CMD_GET_FUNCTION_INFO, NULL, 0, outbuf, in efx_ef10_get_pf_index()
184 sizeof(outbuf), &outlen); in efx_ef10_get_pf_index()
187 if (outlen < sizeof(outbuf)) in efx_ef10_get_pf_index()
190 nic_data->pf_index = MCDI_DWORD(outbuf, GET_FUNCTION_INFO_OUT_PF); in efx_ef10_get_pf_index()
197 MCDI_DECLARE_BUF(outbuf, MC_CMD_GET_FUNCTION_INFO_OUT_LEN); in efx_ef10_get_vf_index()
202 rc = efx_mcdi_rpc(efx, MC_CMD_GET_FUNCTION_INFO, NULL, 0, outbuf, in efx_ef10_get_vf_index()
203 sizeof(outbuf), &outlen); in efx_ef10_get_vf_index()
206 if (outlen < sizeof(outbuf)) in efx_ef10_get_vf_index()
209 nic_data->vf_index = MCDI_DWORD(outbuf, GET_FUNCTION_INFO_OUT_VF); in efx_ef10_get_vf_index()
[all …]
Dmcdi_mon.c311 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()
Def10_sriov.c79 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()
724 MCDI_DECLARE_BUF(outbuf, MC_CMD_LINK_STATE_MODE_OUT_LEN); in efx_ef10_sriov_get_vf_config()
753 outbuf, sizeof(outbuf), &outlen); in efx_ef10_sriov_get_vf_config()
758 ivf->linkstate = MCDI_DWORD(outbuf, LINK_STATE_MODE_OUT_OLD_MODE); in efx_ef10_sriov_get_vf_config()
Dmcdi.h149 size_t inlen, efx_dword_t *outbuf, size_t outlen,
153 efx_dword_t *outbuf, size_t outlen,
159 efx_dword_t *outbuf, size_t outlen,
162 size_t inlen, efx_dword_t *outbuf,
167 efx_dword_t *outbuf,
180 size_t inlen, efx_dword_t *outbuf,
/drivers/iio/dac/
Dmax5821.c96 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 …]
Dmcp4725.c52 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()
276 u8 outbuf[2]; in mcp4725_set_value() local
282 outbuf[0] = (val >> 8) & 0xf; in mcp4725_set_value()
[all …]
Dmax517.c61 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()
Dm62332.c46 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()
/drivers/usb/gadget/function/
Drndis.c177 __le32 *outbuf; in gen_ndis_query_resp() local
201 outbuf = (__le32 *)&resp[1]; in gen_ndis_query_resp()
217 outbuf[i] = cpu_to_le32(oid_supported_list[i]); in gen_ndis_query_resp()
230 *outbuf = cpu_to_le32(0); in gen_ndis_query_resp()
237 *outbuf = cpu_to_le32(params->medium); in gen_ndis_query_resp()
245 *outbuf = cpu_to_le32(params->medium); in gen_ndis_query_resp()
253 *outbuf = cpu_to_le32(params->dev->mtu); in gen_ndis_query_resp()
263 *outbuf = cpu_to_le32(0); in gen_ndis_query_resp()
265 *outbuf = cpu_to_le32(params->speed); in gen_ndis_query_resp()
273 *outbuf = cpu_to_le32(params->dev->mtu); in gen_ndis_query_resp()
[all …]
/drivers/staging/wlan-ng/
Dhfa384x_usb.c1265 le16_to_cpu(ctlx->outbuf.type), in hfa384x_usbctlx_complete_sync()
1327 ctlx->outbuf.cmdreq.type = cpu_to_le16(HFA384x_USB_CMDREQ); in hfa384x_docmd()
1328 ctlx->outbuf.cmdreq.cmd = cpu_to_le16(cmd->cmd); in hfa384x_docmd()
1329 ctlx->outbuf.cmdreq.parm0 = cpu_to_le16(cmd->parm0); in hfa384x_docmd()
1330 ctlx->outbuf.cmdreq.parm1 = cpu_to_le16(cmd->parm1); in hfa384x_docmd()
1331 ctlx->outbuf.cmdreq.parm2 = cpu_to_le16(cmd->parm2); in hfa384x_docmd()
1333 ctlx->outbufsize = sizeof(ctlx->outbuf.cmdreq); in hfa384x_docmd()
1416 ctlx->outbuf.rridreq.type = cpu_to_le16(HFA384x_USB_RRIDREQ); in hfa384x_dorrid()
1417 ctlx->outbuf.rridreq.frmlen = in hfa384x_dorrid()
1418 cpu_to_le16(sizeof(ctlx->outbuf.rridreq.rid)); in hfa384x_dorrid()
[all …]
/drivers/crypto/nx/
Dnx-842-pseries.c300 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 …]
/drivers/tty/vt/
Dconsolemap.c344 unsigned char outbuf[E_TABSZ]; in con_get_trans_old() local
350 outbuf[i] = (ch & ~0xff) ? 0 : ch; in con_get_trans_old()
354 return copy_to_user(arg, outbuf, sizeof(outbuf)) ? -EFAULT : 0; in con_get_trans_old()
373 unsigned short outbuf[E_TABSZ]; in con_get_trans_new() local
376 memcpy(outbuf, translations[USER_MAP], sizeof(outbuf)); in con_get_trans_new()
379 return copy_to_user(arg, outbuf, sizeof(outbuf)) ? -EFAULT : 0; in con_get_trans_new()
/drivers/platform/olpc/
Dolpc-ec.c24 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()
/drivers/infiniband/sw/rxe/
Drxe_srq.c135 if (copy_to_user(udata->outbuf + sizeof(struct mminfo), in rxe_srq_from_init()
161 udata->outbuf = (void __user *)(unsigned long)mi_addr; in rxe_srq_from_attr()
165 (void __user *)udata->outbuf, in rxe_srq_from_attr()
/drivers/sbus/char/
Ductrl.c94 u8 *outbuf; member
295 txn->outbuf[bytecnt] = (byte >> 8); in uctrl_do_txn()
311 txn.outbuf = outbits; in uctrl_get_event_status()
331 txn.outbuf = outbits; in uctrl_get_external_status()
/drivers/ide/
Dide-taskfile.c475 u8 *outbuf = NULL; in ide_taskfile_ioctl() local
499 outbuf = kzalloc(taskout, GFP_KERNEL); in ide_taskfile_ioctl()
500 if (outbuf == NULL) { in ide_taskfile_ioctl()
504 if (copy_from_user(outbuf, buf + outtotal, taskout)) { in ide_taskfile_ioctl()
598 data_buf = outbuf; in ide_taskfile_ioctl()
657 if (copy_to_user(buf + outtotal, outbuf, taskout)) { in ide_taskfile_ioctl()
671 kfree(outbuf); in ide_taskfile_ioctl()
/drivers/tty/hvc/
Dhvc_console.c477 n = hp->ops->put_chars(hp->vtermno, hp->outbuf, hp->n_outbuf); in hvc_push()
489 memmove(hp->outbuf, hp->outbuf + n, hp->n_outbuf); in hvc_push()
519 memcpy(hp->outbuf + hp->n_outbuf, buf, rsize); in hvc_write()
880 hp->outbuf = &((char *)hp)[ALIGN(sizeof(*hp), sizeof(long))]; in hvc_alloc()
Dhvc_console.h53 char *outbuf; member
/drivers/media/rc/
Dati_remote.c253 unsigned char *outbuf; member
702 ati_remote->outbuf = usb_alloc_coherent(udev, DATA_BUFSIZE, GFP_ATOMIC, in ati_remote_alloc_buffers()
704 if (!ati_remote->outbuf) in ati_remote_alloc_buffers()
730 ati_remote->outbuf, ati_remote->outbuf_dma); in ati_remote_free_buffers()
800 usb_fill_int_urb(ati_remote->out_urb, udev, pipe, ati_remote->outbuf, in ati_remote_initialize()
/drivers/infiniband/core/
Duverbs.h53 (udata)->outbuf = (void __user *) (obuf); \
61 (udata)->outbuf = (olen) ? (void __user *) (obuf) : NULL; \
Duverbs_std_types.c232 void __user *outbuf; in create_udata() local
245 outbuf = uhw_out->ptr_attr.ptr; in create_udata()
249 INIT_UDATA_BUF_OR_NULL(udata, inbuf, outbuf, inbuf_len, outbuf_len); in create_udata()
/drivers/hid/usbhid/
Dusbhid.h92 char *outbuf; /* Output buffer */ member

12