Home
last modified time | relevance | path

Searched refs:inbuf (Results 1 – 25 of 116) sorted by relevance

12345

/openbmc/linux/drivers/net/ethernet/sfc/
H A Dmcdi_functions.c39 MCDI_DECLARE_BUF(inbuf, MC_CMD_ALLOC_VIS_IN_LEN); in efx_mcdi_alloc_vis()
43 MCDI_SET_DWORD(inbuf, ALLOC_VIS_IN_MIN_VI_COUNT, min_vis); in efx_mcdi_alloc_vis()
44 MCDI_SET_DWORD(inbuf, ALLOC_VIS_IN_MAX_VI_COUNT, max_vis); in efx_mcdi_alloc_vis()
45 rc = efx_mcdi_rpc(efx, MC_CMD_ALLOC_VIS, inbuf, sizeof(inbuf), in efx_mcdi_alloc_vis()
73 MCDI_DECLARE_BUF(inbuf, in efx_mcdi_ev_init()
86 MCDI_SET_DWORD(inbuf, INIT_EVQ_IN_SIZE, channel->eventq_mask + 1); in efx_mcdi_ev_init()
87 MCDI_SET_DWORD(inbuf, INIT_EVQ_IN_INSTANCE, channel->channel); in efx_mcdi_ev_init()
89 MCDI_SET_DWORD(inbuf, INIT_EVQ_IN_IRQ_NUM, channel->channel); in efx_mcdi_ev_init()
90 MCDI_SET_DWORD(inbuf, INIT_EVQ_IN_TMR_MODE, in efx_mcdi_ev_init()
92 MCDI_SET_DWORD(inbuf, INIT_EVQ_IN_TMR_LOAD, 0); in efx_mcdi_ev_init()
[all …]
H A Dmcdi_port.c24 MCDI_DECLARE_BUF(inbuf, MC_CMD_MDIO_READ_IN_LEN); in efx_mcdi_mdio_read()
29 MCDI_SET_DWORD(inbuf, MDIO_READ_IN_BUS, efx->mdio_bus); in efx_mcdi_mdio_read()
30 MCDI_SET_DWORD(inbuf, MDIO_READ_IN_PRTAD, prtad); in efx_mcdi_mdio_read()
31 MCDI_SET_DWORD(inbuf, MDIO_READ_IN_DEVAD, devad); in efx_mcdi_mdio_read()
32 MCDI_SET_DWORD(inbuf, MDIO_READ_IN_ADDR, addr); in efx_mcdi_mdio_read()
34 rc = efx_mcdi_rpc(efx, MC_CMD_MDIO_READ, inbuf, sizeof(inbuf), in efx_mcdi_mdio_read()
50 MCDI_DECLARE_BUF(inbuf, MC_CMD_MDIO_WRITE_IN_LEN); in efx_mcdi_mdio_write()
55 MCDI_SET_DWORD(inbuf, MDIO_WRITE_IN_BUS, efx->mdio_bus); in efx_mcdi_mdio_write()
56 MCDI_SET_DWORD(inbuf, MDIO_WRITE_IN_PRTAD, prtad); in efx_mcdi_mdio_write()
57 MCDI_SET_DWORD(inbuf, MDIO_WRITE_IN_DEVAD, devad); in efx_mcdi_mdio_write()
[all …]
H A Dmae.c24 MCDI_DECLARE_BUF(inbuf, MC_CMD_MAE_MPORT_ALLOC_ALIAS_IN_LEN); in efx_mae_allocate_mport()
33 MCDI_SET_DWORD(inbuf, MAE_MPORT_ALLOC_ALIAS_IN_TYPE, in efx_mae_allocate_mport()
35 MCDI_SET_DWORD(inbuf, MAE_MPORT_ALLOC_ALIAS_IN_DELIVER_MPORT, in efx_mae_allocate_mport()
37 rc = efx_mcdi_rpc(efx, MC_CMD_MAE_MPORT_ALLOC, inbuf, sizeof(inbuf), in efx_mae_allocate_mport()
50 MCDI_DECLARE_BUF(inbuf, MC_CMD_MAE_MPORT_FREE_IN_LEN); in efx_mae_free_mport()
53 MCDI_SET_DWORD(inbuf, MAE_MPORT_FREE_IN_MPORT_ID, id); in efx_mae_free_mport()
54 return efx_mcdi_rpc(efx, MC_CMD_MAE_MPORT_FREE, inbuf, sizeof(inbuf), in efx_mae_free_mport()
105 MCDI_DECLARE_BUF(inbuf, MC_CMD_MAE_MPORT_LOOKUP_IN_LEN); in efx_mae_fw_lookup_mport()
109 MCDI_SET_DWORD(inbuf, MAE_MPORT_LOOKUP_IN_MPORT_SELECTOR, selector); in efx_mae_fw_lookup_mport()
110 rc = efx_mcdi_rpc(efx, MC_CMD_MAE_MPORT_LOOKUP, inbuf, sizeof(inbuf), in efx_mae_fw_lookup_mport()
[all …]
H A Dmcdi.c148 const efx_dword_t *inbuf, size_t inlen) in efx_mcdi_send_request() argument
219 le32_to_cpu(inbuf[i].u32[0])); in efx_mcdi_send_request()
225 efx->type->mcdi_request(efx, hdr, hdr_len, inbuf, inlen); in efx_mcdi_send_request()
800 const efx_dword_t *inbuf, size_t inlen, in _efx_mcdi_rpc() argument
807 if (inbuf && inlen && (inbuf == outbuf)) { in _efx_mcdi_rpc()
813 rc = efx_mcdi_rpc_start(efx, cmd, inbuf, inlen); in _efx_mcdi_rpc()
838 efx_mcdi_send_request(efx, cmd, inbuf, inlen); in _efx_mcdi_rpc()
858 const efx_dword_t *inbuf, size_t inlen, in _efx_mcdi_rpc_evb_retry() argument
865 rc = _efx_mcdi_rpc(efx, cmd, inbuf, inlen, in _efx_mcdi_rpc_evb_retry()
883 rc = _efx_mcdi_rpc(efx, cmd, inbuf, inlen, in _efx_mcdi_rpc_evb_retry()
[all …]
H A Def10_sriov.c18 MCDI_DECLARE_BUF(inbuf, MC_CMD_EVB_PORT_ASSIGN_IN_LEN); in efx_ef10_evb_port_assign()
21 MCDI_SET_DWORD(inbuf, EVB_PORT_ASSIGN_IN_PORT_ID, port_id); in efx_ef10_evb_port_assign()
22 MCDI_POPULATE_DWORD_2(inbuf, EVB_PORT_ASSIGN_IN_FUNCTION, in efx_ef10_evb_port_assign()
26 return efx_mcdi_rpc(efx, MC_CMD_EVB_PORT_ASSIGN, inbuf, sizeof(inbuf), in efx_ef10_evb_port_assign()
33 MCDI_DECLARE_BUF(inbuf, MC_CMD_VSWITCH_ALLOC_IN_LEN); in efx_ef10_vswitch_alloc()
36 MCDI_SET_DWORD(inbuf, VSWITCH_ALLOC_IN_UPSTREAM_PORT_ID, port_id); in efx_ef10_vswitch_alloc()
37 MCDI_SET_DWORD(inbuf, VSWITCH_ALLOC_IN_TYPE, vswitch_type); in efx_ef10_vswitch_alloc()
38 MCDI_SET_DWORD(inbuf, VSWITCH_ALLOC_IN_NUM_VLAN_TAGS, 2); in efx_ef10_vswitch_alloc()
39 MCDI_POPULATE_DWORD_1(inbuf, VSWITCH_ALLOC_IN_FLAGS, in efx_ef10_vswitch_alloc()
43 rc = efx_mcdi_rpc_quiet(efx, MC_CMD_VSWITCH_ALLOC, inbuf, sizeof(inbuf), in efx_ef10_vswitch_alloc()
[all …]
H A Dmcdi_filters.c95 efx_dword_t *inbuf) in efx_mcdi_filter_push_prep_set_match_fields() argument
100 MCDI_SET_DWORD(inbuf, FILTER_OP_IN_OP, in efx_mcdi_filter_push_prep_set_match_fields()
118 memcpy(MCDI_PTR(inbuf, FILTER_OP_IN_ ## mcdi_field), \ in efx_mcdi_filter_push_prep_set_match_fields()
152 MCDI_POPULATE_DWORD_1(inbuf, in efx_mcdi_filter_push_prep_set_match_fields()
190 MCDI_SET_DWORD(inbuf, FILTER_OP_IN_MATCH_FIELDS, in efx_mcdi_filter_push_prep_set_match_fields()
196 efx_dword_t *inbuf, u64 handle, in efx_mcdi_filter_push_prep() argument
202 memset(inbuf, 0, MC_CMD_FILTER_OP_EXT_IN_LEN); in efx_mcdi_filter_push_prep()
217 MCDI_SET_DWORD(inbuf, FILTER_OP_IN_OP, in efx_mcdi_filter_push_prep()
219 MCDI_SET_QWORD(inbuf, FILTER_OP_IN_HANDLE, handle); in efx_mcdi_filter_push_prep()
221 efx_mcdi_filter_push_prep_set_match_fields(efx, spec, inbuf); in efx_mcdi_filter_push_prep()
[all …]
H A Def10.c185 MCDI_DECLARE_BUF(inbuf, MC_CMD_LICENSING_V3_IN_LEN); in efx_ef10_read_licensed_features()
191 MCDI_SET_DWORD(inbuf, LICENSING_V3_IN_OP, in efx_ef10_read_licensed_features()
193 rc = efx_mcdi_rpc_quiet(efx, MC_CMD_LICENSING_V3, inbuf, sizeof(inbuf), in efx_ef10_read_licensed_features()
347 MCDI_DECLARE_BUF(inbuf, MC_CMD_VPORT_GET_MAC_ADDRESSES_IN_LEN); in efx_ef10_get_mac_address_vf()
352 MCDI_SET_DWORD(inbuf, VPORT_GET_MAC_ADDRESSES_IN_VPORT_ID, in efx_ef10_get_mac_address_vf()
354 rc = efx_mcdi_rpc(efx, MC_CMD_VPORT_GET_MAC_ADDRESSES, inbuf, in efx_ef10_get_mac_address_vf()
355 sizeof(inbuf), outbuf, sizeof(outbuf), &outlen); in efx_ef10_get_mac_address_vf()
718 MCDI_DECLARE_BUF(inbuf, MC_CMD_FREE_PIOBUF_IN_LEN); in efx_ef10_free_piobufs()
725 MCDI_SET_DWORD(inbuf, FREE_PIOBUF_IN_PIOBUF_HANDLE, in efx_ef10_free_piobufs()
727 rc = efx_mcdi_rpc(efx, MC_CMD_FREE_PIOBUF, inbuf, sizeof(inbuf), in efx_ef10_free_piobufs()
[all …]
H A Dptp.c407 MCDI_DECLARE_BUF(inbuf, MC_CMD_PTP_IN_STATUS_LEN); in efx_ptp_update_stats()
427 MCDI_SET_DWORD(inbuf, PTP_IN_OP, MC_CMD_PTP_OP_STATUS); in efx_ptp_update_stats()
428 MCDI_SET_DWORD(inbuf, PTP_IN_PERIPH_ID, 0); in efx_ptp_update_stats()
429 rc = efx_mcdi_rpc(efx, MC_CMD_PTP, inbuf, sizeof(inbuf), in efx_ptp_update_stats()
618 MCDI_DECLARE_BUF(inbuf, MC_CMD_PTP_IN_GET_ATTRIBUTES_LEN); in efx_ptp_get_attributes()
629 MCDI_SET_DWORD(inbuf, PTP_IN_OP, MC_CMD_PTP_OP_GET_ATTRIBUTES); in efx_ptp_get_attributes()
630 MCDI_SET_DWORD(inbuf, PTP_IN_PERIPH_ID, 0); in efx_ptp_get_attributes()
631 rc = efx_mcdi_rpc_quiet(efx, MC_CMD_PTP, inbuf, sizeof(inbuf), in efx_ptp_get_attributes()
641 efx_mcdi_display_error(efx, MC_CMD_PTP, sizeof(inbuf), in efx_ptp_get_attributes()
711 MCDI_DECLARE_BUF(inbuf, MC_CMD_PTP_IN_GET_TIMESTAMP_CORRECTIONS_LEN); in efx_ptp_get_timestamp_corrections()
[all …]
H A Dmcdi_port_common.c73 MCDI_DECLARE_BUF(inbuf, MC_CMD_SET_LINK_IN_LEN); in efx_mcdi_set_link()
77 MCDI_SET_DWORD(inbuf, SET_LINK_IN_CAP, capabilities); in efx_mcdi_set_link()
78 MCDI_SET_DWORD(inbuf, SET_LINK_IN_FLAGS, flags); in efx_mcdi_set_link()
79 MCDI_SET_DWORD(inbuf, SET_LINK_IN_LOOPBACK_MODE, loopback_mode); in efx_mcdi_set_link()
80 MCDI_SET_DWORD(inbuf, SET_LINK_IN_LOOPBACK_SPEED, loopback_speed); in efx_mcdi_set_link()
82 return efx_mcdi_rpc(efx, MC_CMD_SET_LINK, inbuf, sizeof(inbuf), in efx_mcdi_set_link()
760 MCDI_DECLARE_BUF(inbuf, MC_CMD_START_BIST_IN_LEN); in efx_mcdi_bist()
766 MCDI_SET_DWORD(inbuf, START_BIST_IN_TYPE, bist_mode); in efx_mcdi_bist()
768 inbuf, MC_CMD_START_BIST_IN_LEN, NULL, 0, NULL); in efx_mcdi_bist()
904 MCDI_DECLARE_BUF(inbuf, MC_CMD_GET_PHY_MEDIA_INFO_IN_LEN); in efx_mcdi_phy_get_module_eeprom_page()
[all …]
H A Dmcdi_mon.c147 MCDI_DECLARE_BUF(inbuf, MC_CMD_READ_SENSORS_EXT_IN_LEN); in efx_mcdi_mon_update()
150 MCDI_SET_QWORD(inbuf, READ_SENSORS_EXT_IN_DMA_ADDR, in efx_mcdi_mon_update()
152 MCDI_SET_DWORD(inbuf, READ_SENSORS_EXT_IN_LENGTH, hwmon->dma_buf.len); in efx_mcdi_mon_update()
155 inbuf, sizeof(inbuf), NULL, 0, NULL); in efx_mcdi_mon_update()
307 MCDI_DECLARE_BUF(inbuf, MC_CMD_SENSOR_INFO_EXT_IN_LEN); in efx_mcdi_mon_probe()
319 MCDI_SET_DWORD(inbuf, SENSOR_INFO_EXT_IN_PAGE, page); in efx_mcdi_mon_probe()
321 rc = efx_mcdi_rpc(efx, MC_CMD_SENSOR_INFO, inbuf, sizeof(inbuf), in efx_mcdi_mon_probe()
381 MCDI_SET_DWORD(inbuf, SENSOR_INFO_EXT_IN_PAGE, in efx_mcdi_mon_probe()
384 inbuf, sizeof(inbuf), in efx_mcdi_mon_probe()
/openbmc/linux/drivers/net/ethernet/sfc/siena/
H A Dmcdi_port.c24 MCDI_DECLARE_BUF(inbuf, MC_CMD_MDIO_READ_IN_LEN); in efx_mcdi_mdio_read()
29 MCDI_SET_DWORD(inbuf, MDIO_READ_IN_BUS, efx->mdio_bus); in efx_mcdi_mdio_read()
30 MCDI_SET_DWORD(inbuf, MDIO_READ_IN_PRTAD, prtad); in efx_mcdi_mdio_read()
31 MCDI_SET_DWORD(inbuf, MDIO_READ_IN_DEVAD, devad); in efx_mcdi_mdio_read()
32 MCDI_SET_DWORD(inbuf, MDIO_READ_IN_ADDR, addr); in efx_mcdi_mdio_read()
34 rc = efx_siena_mcdi_rpc(efx, MC_CMD_MDIO_READ, inbuf, sizeof(inbuf), in efx_mcdi_mdio_read()
50 MCDI_DECLARE_BUF(inbuf, MC_CMD_MDIO_WRITE_IN_LEN); in efx_mcdi_mdio_write()
55 MCDI_SET_DWORD(inbuf, MDIO_WRITE_IN_BUS, efx->mdio_bus); in efx_mcdi_mdio_write()
56 MCDI_SET_DWORD(inbuf, MDIO_WRITE_IN_PRTAD, prtad); in efx_mcdi_mdio_write()
57 MCDI_SET_DWORD(inbuf, MDIO_WRITE_IN_DEVAD, devad); in efx_mcdi_mdio_write()
[all …]
H A Dmcdi.c152 const efx_dword_t *inbuf, size_t inlen) in efx_mcdi_send_request() argument
223 le32_to_cpu(inbuf[i].u32[0])); in efx_mcdi_send_request()
229 efx->type->mcdi_request(efx, hdr, hdr_len, inbuf, inlen); in efx_mcdi_send_request()
804 const efx_dword_t *inbuf, size_t inlen, in _efx_mcdi_rpc() argument
811 if (inbuf && inlen && (inbuf == outbuf)) { in _efx_mcdi_rpc()
817 rc = efx_siena_mcdi_rpc_start(efx, cmd, inbuf, inlen); in _efx_mcdi_rpc()
842 efx_mcdi_send_request(efx, cmd, inbuf, inlen); in _efx_mcdi_rpc()
862 const efx_dword_t *inbuf, size_t inlen, in _efx_mcdi_rpc_evb_retry() argument
869 rc = _efx_mcdi_rpc(efx, cmd, inbuf, inlen, in _efx_mcdi_rpc_evb_retry()
887 rc = _efx_mcdi_rpc(efx, cmd, inbuf, inlen, in _efx_mcdi_rpc_evb_retry()
[all …]
H A Dptp.c407 MCDI_DECLARE_BUF(inbuf, MC_CMD_PTP_IN_STATUS_LEN); in efx_siena_ptp_update_stats()
427 MCDI_SET_DWORD(inbuf, PTP_IN_OP, MC_CMD_PTP_OP_STATUS); in efx_siena_ptp_update_stats()
428 MCDI_SET_DWORD(inbuf, PTP_IN_PERIPH_ID, 0); in efx_siena_ptp_update_stats()
429 rc = efx_siena_mcdi_rpc(efx, MC_CMD_PTP, inbuf, sizeof(inbuf), in efx_siena_ptp_update_stats()
631 MCDI_DECLARE_BUF(inbuf, MC_CMD_PTP_IN_GET_ATTRIBUTES_LEN); in efx_ptp_get_attributes()
642 MCDI_SET_DWORD(inbuf, PTP_IN_OP, MC_CMD_PTP_OP_GET_ATTRIBUTES); in efx_ptp_get_attributes()
643 MCDI_SET_DWORD(inbuf, PTP_IN_PERIPH_ID, 0); in efx_ptp_get_attributes()
644 rc = efx_siena_mcdi_rpc_quiet(efx, MC_CMD_PTP, inbuf, sizeof(inbuf), in efx_ptp_get_attributes()
654 efx_siena_mcdi_display_error(efx, MC_CMD_PTP, sizeof(inbuf), in efx_ptp_get_attributes()
730 MCDI_DECLARE_BUF(inbuf, MC_CMD_PTP_IN_GET_TIMESTAMP_CORRECTIONS_LEN); in efx_ptp_get_timestamp_corrections()
[all …]
H A Dmcdi_mon.c147 MCDI_DECLARE_BUF(inbuf, MC_CMD_READ_SENSORS_EXT_IN_LEN); in efx_mcdi_mon_update()
150 MCDI_SET_QWORD(inbuf, READ_SENSORS_EXT_IN_DMA_ADDR, in efx_mcdi_mon_update()
152 MCDI_SET_DWORD(inbuf, READ_SENSORS_EXT_IN_LENGTH, hwmon->dma_buf.len); in efx_mcdi_mon_update()
155 inbuf, sizeof(inbuf), NULL, 0, NULL); in efx_mcdi_mon_update()
307 MCDI_DECLARE_BUF(inbuf, MC_CMD_SENSOR_INFO_EXT_IN_LEN); in efx_siena_mcdi_mon_probe()
319 MCDI_SET_DWORD(inbuf, SENSOR_INFO_EXT_IN_PAGE, page); in efx_siena_mcdi_mon_probe()
321 rc = efx_siena_mcdi_rpc(efx, MC_CMD_SENSOR_INFO, inbuf, in efx_siena_mcdi_mon_probe()
322 sizeof(inbuf), outbuf, sizeof(outbuf), in efx_siena_mcdi_mon_probe()
381 MCDI_SET_DWORD(inbuf, SENSOR_INFO_EXT_IN_PAGE, in efx_siena_mcdi_mon_probe()
384 inbuf, sizeof(inbuf), in efx_siena_mcdi_mon_probe()
H A Dmcdi_port_common.c74 MCDI_DECLARE_BUF(inbuf, MC_CMD_SET_LINK_IN_LEN); in efx_mcdi_set_link()
78 MCDI_SET_DWORD(inbuf, SET_LINK_IN_CAP, capabilities); in efx_mcdi_set_link()
79 MCDI_SET_DWORD(inbuf, SET_LINK_IN_FLAGS, flags); in efx_mcdi_set_link()
80 MCDI_SET_DWORD(inbuf, SET_LINK_IN_LOOPBACK_MODE, loopback_mode); in efx_mcdi_set_link()
81 MCDI_SET_DWORD(inbuf, SET_LINK_IN_LOOPBACK_SPEED, loopback_speed); in efx_mcdi_set_link()
83 return efx_siena_mcdi_rpc(efx, MC_CMD_SET_LINK, inbuf, sizeof(inbuf), in efx_mcdi_set_link()
766 MCDI_DECLARE_BUF(inbuf, MC_CMD_START_BIST_IN_LEN); in efx_mcdi_bist()
772 MCDI_SET_DWORD(inbuf, START_BIST_IN_TYPE, bist_mode); in efx_mcdi_bist()
773 rc = efx_siena_mcdi_rpc(efx, MC_CMD_START_BIST, inbuf, in efx_mcdi_bist()
912 MCDI_DECLARE_BUF(inbuf, MC_CMD_GET_PHY_MEDIA_INFO_IN_LEN); in efx_mcdi_phy_get_module_eeprom_page()
[all …]
/openbmc/linux/drivers/cdx/controller/
H A Dmcdi_functions.c31 MCDI_DECLARE_BUF(inbuf, MC_CMD_CDX_BUS_ENUM_DEVICES_IN_LEN); in cdx_mcdi_get_num_devs()
35 MCDI_SET_DWORD(inbuf, CDX_BUS_ENUM_DEVICES_IN_BUS, bus_num); in cdx_mcdi_get_num_devs()
37 ret = cdx_mcdi_rpc(cdx, MC_CMD_CDX_BUS_ENUM_DEVICES, inbuf, sizeof(inbuf), in cdx_mcdi_get_num_devs()
53 MCDI_DECLARE_BUF(inbuf, MC_CMD_CDX_BUS_GET_DEVICE_CONFIG_IN_LEN); in cdx_mcdi_get_dev_config()
59 MCDI_SET_DWORD(inbuf, CDX_BUS_GET_DEVICE_CONFIG_IN_BUS, bus_num); in cdx_mcdi_get_dev_config()
60 MCDI_SET_DWORD(inbuf, CDX_BUS_GET_DEVICE_CONFIG_IN_DEVICE, dev_num); in cdx_mcdi_get_dev_config()
62 ret = cdx_mcdi_rpc(cdx, MC_CMD_CDX_BUS_GET_DEVICE_CONFIG, inbuf, sizeof(inbuf), in cdx_mcdi_get_dev_config()
129 MCDI_DECLARE_BUF(inbuf, MC_CMD_CDX_DEVICE_RESET_IN_LEN); in cdx_mcdi_reset_device()
132 MCDI_SET_DWORD(inbuf, CDX_DEVICE_RESET_IN_BUS, bus_num); in cdx_mcdi_reset_device()
133 MCDI_SET_DWORD(inbuf, CDX_DEVICE_RESET_IN_DEVICE, dev_num); in cdx_mcdi_reset_device()
[all …]
/openbmc/qemu/hw/ipmi/
H A Dipmi_bmc_extern.c74 unsigned char inbuf[MAX_IPMI_MSG_SIZE + 2]; member
158 ibe->inbuf[1] = ibe->outbuf[1] | 0x04; in extern_timeout()
159 ibe->inbuf[2] = ibe->outbuf[2]; in extern_timeout()
160 ibe->inbuf[3] = IPMI_CC_TIMEOUT; in extern_timeout()
161 k->handle_rsp(s, ibe->outbuf[0], ibe->inbuf + 1, 3); in extern_timeout()
298 ibe->inbuf[3] = IPMI_CC_REQUEST_DATA_TRUNCATED; in handle_msg()
300 } else if (ipmb_checksum(ibe->inbuf, ibe->inpos, 0) != 0) { in handle_msg()
309 k->handle_rsp(ibe->parent.intf, ibe->inbuf[0], ibe->inbuf + 1, ibe->inpos - 1); in handle_msg()
351 hw_op = ibe->inbuf[0]; in receive()
368 if (ibe->inpos >= sizeof(ibe->inbuf)) { in receive()
[all …]
/openbmc/linux/crypto/
H A Dcast6_generic.c172 void __cast6_encrypt(const void *ctx, u8 *outbuf, const u8 *inbuf) in __cast6_encrypt() argument
179 block[0] = get_unaligned_be32(inbuf); in __cast6_encrypt()
180 block[1] = get_unaligned_be32(inbuf + 4); in __cast6_encrypt()
181 block[2] = get_unaligned_be32(inbuf + 8); in __cast6_encrypt()
182 block[3] = get_unaligned_be32(inbuf + 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
216 block[0] = get_unaligned_be32(inbuf); in __cast6_decrypt()
217 block[1] = get_unaligned_be32(inbuf + 4); in __cast6_decrypt()
[all …]
/openbmc/linux/drivers/tty/hvc/
H A Dhvsi_lib.c70 struct hvsi_control *pkt = (struct hvsi_control *)pv->inbuf; in hvsi_got_control()
86 struct hvsi_query *pkt = (struct hvsi_query *)pv->inbuf; in hvsi_got_query()
111 (struct hvsi_query_response *)pv->inbuf; in hvsi_got_response()
128 if (pv->inbuf[0] < 0xfc) { in hvsi_check_packet()
132 type = pv->inbuf[0]; in hvsi_check_packet()
133 len = pv->inbuf[1]; in hvsi_check_packet()
161 memmove(pv->inbuf, &pv->inbuf[len], pv->inbuf_len); in hvsi_check_packet()
170 &pv->inbuf[pv->inbuf_len], in hvsi_get_packet()
203 memcpy(&buf[read], &pv->inbuf[pv->inbuf_cur], l); in hvsilib_get_chars()
215 memmove(pv->inbuf, &pv->inbuf[pv->inbuf_cur], in hvsilib_get_chars()
H A Dhvc_dcc.c29 static DEFINE_KFIFO(inbuf, unsigned char, DCC_INBUF_SIZE);
135 while (!kfifo_is_full(&inbuf)) { in dcc_put_work()
138 kfifo_put(&inbuf, ch); in dcc_put_work()
161 while (!kfifo_is_full(&inbuf)) { in dcc_get_work()
164 kfifo_put(&inbuf, ch); in dcc_get_work()
224 if (smp_processor_id() || (!kfifo_is_empty(&inbuf))) { in hvc_dcc0_get_chars()
225 len = kfifo_out(&inbuf, buf, count); in hvc_dcc0_get_chars()
/openbmc/linux/lib/
H A Ddecompress.c63 decompress_fn __init decompress_method(const unsigned char *inbuf, long len, in decompress_method() argument
74 pr_debug("Compressed data magic: %#.2x %#.2x\n", inbuf[0], inbuf[1]); in decompress_method()
77 if (!memcmp(inbuf, cf->magic, 2)) in decompress_method()
H A Ddecompress_bunzip2.c98 unsigned char *inbuf /*,*outbuf*/; member
129 bd->inbufCount = bd->fill(bd->inbuf, BZIP2_IOBUF_SIZE); in get_bits()
144 bd->inbufBits = (bd->inbufBits << 8)|bd->inbuf[bd->inbufPos++]; in get_bits()
387 (bd->inbufBits << 8)|bd->inbuf[bd->inbufPos++]; in get_next_block()
630 static int INIT start_bunzip(struct bunzip_data **bdp, void *inbuf, long len, in start_bunzip() argument
648 bd->inbuf = inbuf; in start_bunzip()
689 unsigned char *inbuf; in bunzip2() local
699 inbuf = buf; in bunzip2()
701 inbuf = malloc(BZIP2_IOBUF_SIZE); in bunzip2()
702 if (!inbuf) { in bunzip2()
[all …]
/openbmc/linux/drivers/infiniband/core/
H A Ducma.c369 static ssize_t ucma_get_event(struct ucma_file *file, const char __user *inbuf, in ucma_get_event() argument
383 if (copy_from_user(&cmd, inbuf, sizeof(cmd))) in ucma_get_event()
439 static ssize_t ucma_create_id(struct ucma_file *file, const char __user *inbuf, in ucma_create_id() argument
452 if (copy_from_user(&cmd, inbuf, sizeof(cmd))) in ucma_create_id()
591 static ssize_t ucma_destroy_id(struct ucma_file *file, const char __user *inbuf, in ucma_destroy_id() argument
602 if (copy_from_user(&cmd, inbuf, sizeof(cmd))) in ucma_destroy_id()
625 static ssize_t ucma_bind_ip(struct ucma_file *file, const char __user *inbuf, in ucma_bind_ip() argument
632 if (copy_from_user(&cmd, inbuf, sizeof(cmd))) in ucma_bind_ip()
650 static ssize_t ucma_bind(struct ucma_file *file, const char __user *inbuf, in ucma_bind() argument
657 if (copy_from_user(&cmd, inbuf, sizeof(cmd))) in ucma_bind()
[all …]
/openbmc/openbmc/meta-openembedded/meta-oe/recipes-graphics/libsdl/libsdl-1.2.15/
H A D0001-stdlib-Make-iconv-use-portable-across-glibc-musl.patch23 - iconv() may or may not use const char ** for the inbuf param.
34 const char **inbuf, size_t *inbytesleft,
39 - retCode = iconv(cd, (char **)inbuf, inbytesleft, outbuf, outbytesleft);
41 - retCode = iconv(cd, inbuf, inbytesleft, outbuf, outbytesleft);
46 + const size_t retCode = iconv((iconv_t)((uintptr_t)cd), (void *)inbuf, inbytesleft, outbuf, outbyt…
/openbmc/linux/arch/arm/vdso/
H A Dvdsomunge.c122 const void *inbuf; in main() local
145 inbuf = mmap(NULL, stat.st_size, PROT_READ, MAP_PRIVATE, infd, 0); in main()
146 if (inbuf == MAP_FAILED) in main()
151 inhdr = inbuf; in main()
193 memcpy(outbuf, inbuf, stat.st_size); in main()

12345