/openbmc/linux/drivers/net/ethernet/sfc/ |
H A D | mcdi_functions.c | 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() 90 MCDI_SET_DWORD(inbuf, INIT_EVQ_IN_TMR_MODE, in efx_mcdi_ev_init() 94 MCDI_SET_DWORD(inbuf, INIT_EVQ_IN_COUNT_MODE, in efx_mcdi_ev_init() 150 rc = efx_mcdi_rpc_quiet(efx, MC_CMD_FINI_EVQ, inbuf, sizeof(inbuf), in efx_mcdi_ev_fini() 254 MCDI_SET_DWORD(inbuf, FINI_TXQ_IN_INSTANCE, in efx_mcdi_tx_fini() 257 rc = efx_mcdi_rpc_quiet(efx, MC_CMD_FINI_TXQ, inbuf, sizeof(inbuf), in efx_mcdi_tx_fini() 300 MCDI_SET_DWORD(inbuf, INIT_RXQ_IN_INSTANCE, in efx_mcdi_rx_init() 319 rc = efx_mcdi_rpc(efx, MC_CMD_INIT_RXQ, inbuf, sizeof(inbuf), in efx_mcdi_rx_init() 339 MCDI_SET_DWORD(inbuf, FINI_RXQ_IN_INSTANCE, in efx_mcdi_rx_fini() [all …]
|
H A D | mcdi_port.c | 24 MCDI_DECLARE_BUF(inbuf, MC_CMD_MDIO_READ_IN_LEN); 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() 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() 58 MCDI_SET_DWORD(inbuf, MDIO_WRITE_IN_ADDR, addr); in efx_mcdi_mdio_write() 59 MCDI_SET_DWORD(inbuf, MDIO_WRITE_IN_VALUE, value); in efx_mcdi_mdio_write() [all …]
|
H A D | mae.c | 37 rc = efx_mcdi_rpc(efx, MC_CMD_MAE_MPORT_ALLOC, inbuf, sizeof(inbuf), in efx_mae_allocate_mport() 54 return efx_mcdi_rpc(efx, MC_CMD_MAE_MPORT_FREE, inbuf, sizeof(inbuf), in efx_mae_free_mport() 136 inbuf, sizeof(inbuf), outbuf, sizeof(outbuf), &outlen); in efx_mae_start_counters() 180 inbuf, sizeof(inbuf), outbuf, sizeof(outbuf), &outlen); in efx_mae_stop_counters() 227 inbuf, sizeof(inbuf), NULL, 0, NULL)) in efx_mae_counters_grant_credits() 1410 if (!inbuf) in efx_mae_alloc_action_set_list() 1436 kfree(inbuf); in efx_mae_alloc_action_set_list() 1933 if (!inbuf) in efx_mae_insert_ct() 1982 kfree(inbuf); in efx_mae_insert_ct() 2004 if (!inbuf) in efx_mae_remove_ct() [all …]
|
H A D | ef10_sriov.c | 18 MCDI_DECLARE_BUF(inbuf, MC_CMD_EVB_PORT_ASSIGN_IN_LEN); 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() 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() 50 sizeof(inbuf), NULL, 0, NULL); in efx_ef10_vswitch_alloc() 65 return efx_mcdi_rpc(efx, MC_CMD_VSWITCH_FREE, inbuf, sizeof(inbuf), in efx_ef10_vswitch_free() 86 MCDI_POPULATE_DWORD_1(inbuf, VPORT_ALLOC_IN_FLAGS, in efx_ef10_vport_alloc() 92 rc = efx_mcdi_rpc(efx, MC_CMD_VPORT_ALLOC, inbuf, sizeof(inbuf), in efx_ef10_vport_alloc() 109 return efx_mcdi_rpc(efx, MC_CMD_VPORT_FREE, inbuf, sizeof(inbuf), in efx_ef10_vport_free() 762 return efx_mcdi_rpc(efx, MC_CMD_LINK_STATE_MODE, inbuf, sizeof(inbuf), in efx_ef10_sriov_set_vf_link_state() [all …]
|
H A D | mcdi.c | 807 if (inbuf && inlen && (inbuf == outbuf)) { in _efx_mcdi_rpc() 1458 rc = efx_mcdi_rpc_quiet(efx, MC_CMD_DRV_ATTACH, inbuf, sizeof(inbuf), in efx_mcdi_drv_attach() 1585 rc = efx_mcdi_rpc(efx, MC_CMD_LOG_CTRL, inbuf, sizeof(inbuf), in efx_mcdi_log_ctrl() 1656 rc = efx_mcdi_rpc(efx, MC_CMD_NVRAM_INFO, inbuf, sizeof(inbuf), in efx_mcdi_nvram_info() 1684 rc = efx_mcdi_rpc(efx, MC_CMD_NVRAM_TEST, inbuf, sizeof(inbuf), in efx_mcdi_nvram_test() 1886 rc = efx_mcdi_rpc(efx, MC_CMD_ENTITY_RESET, inbuf, sizeof(inbuf), in efx_mcdi_reset_func() 1898 rc = efx_mcdi_rpc(efx, MC_CMD_REBOOT, inbuf, sizeof(inbuf), in efx_mcdi_reset_mc() 1956 rc = efx_mcdi_rpc(efx, MC_CMD_WOL_FILTER_SET, inbuf, sizeof(inbuf), in efx_mcdi_wol_filter_set() 2075 rc = efx_mcdi_rpc(efx, MC_CMD_WORKAROUND, inbuf, sizeof(inbuf), in efx_mcdi_set_workaround() 2280 rc = efx_mcdi_rpc(efx, MC_CMD_NVRAM_READ, inbuf, sizeof(inbuf), in efx_mcdi_nvram_read() [all …]
|
H A D | mcdi_filters.c | 95 efx_dword_t *inbuf) in efx_mcdi_filter_push_prep_set_match_fields() argument 256 rc = efx_mcdi_rpc_quiet(efx, MC_CMD_FILTER_OP, inbuf, sizeof(inbuf), in efx_mcdi_filter_push() 515 memset(inbuf, 0, sizeof(inbuf)); in efx_mcdi_filter_insert_locked() 531 inbuf, sizeof(inbuf), in efx_mcdi_filter_insert_locked() 582 MCDI_DECLARE_BUF(inbuf, in efx_mcdi_filter_remove_internal() 635 inbuf, sizeof(inbuf), NULL, 0, NULL); in efx_mcdi_filter_remove_internal() 1269 inbuf, sizeof(inbuf), outbuf, sizeof(outbuf), in efx_mcdi_filter_table_probe_matches() 1927 if (!efx_mcdi_rpc(efx, MC_CMD_RSS_CONTEXT_SET_FLAGS, inbuf, sizeof(inbuf), in efx_mcdi_set_rss_context_flags() 1964 rc = efx_mcdi_rpc(efx, MC_CMD_RSS_CONTEXT_ALLOC, inbuf, sizeof(inbuf), in efx_mcdi_filter_alloc_rss_context() 1989 return efx_mcdi_rpc(efx, MC_CMD_RSS_CONTEXT_FREE, inbuf, sizeof(inbuf), in efx_mcdi_filter_free_rss_context() [all …]
|
H A D | ef10.c | 193 rc = efx_mcdi_rpc_quiet(efx, MC_CMD_LICENSING_V3, inbuf, sizeof(inbuf), in efx_ef10_read_licensed_features() 727 rc = efx_mcdi_rpc(efx, MC_CMD_FREE_PIOBUF, inbuf, sizeof(inbuf), in efx_ef10_free_piobufs() 998 rc = efx_mcdi_rpc(efx, MC_CMD_VADAPTOR_QUERY, inbuf, sizeof(inbuf), in efx_ef10_vadaptor_query() 1036 return efx_mcdi_rpc(efx, MC_CMD_VADAPTOR_FREE, inbuf, sizeof(inbuf), in efx_ef10_vadaptor_free() 2006 inbuf, sizeof(inbuf), 0, NULL, 0); in efx_ef10_push_irq_moderation() 2204 inbuf, sizeof(inbuf), NULL, 0, NULL); in efx_ef10_irq_test_generate() 2645 inbuf, sizeof(inbuf), 0, in efx_ef10_rx_defer_refill() 3224 rc = efx_mcdi_rpc(efx, MC_CMD_DRIVER_EVENT, inbuf, sizeof(inbuf), in efx_ef10_ev_test_generate() 3388 return efx_mcdi_rpc(efx, MC_CMD_START_BIST, inbuf, sizeof(inbuf), in efx_ef10_start_bist() 3648 inbuf, sizeof(inbuf), NULL, 0, NULL); in efx_ef10_rx_enable_timestamping() [all …]
|
H A D | ptp.c | 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() 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() 719 MCDI_SET_DWORD(inbuf, PTP_IN_OP, in efx_ptp_get_timestamp_corrections() 723 rc = efx_mcdi_rpc_quiet(efx, MC_CMD_PTP, inbuf, sizeof(inbuf), in efx_ptp_get_timestamp_corrections() 773 MCDI_SET_DWORD(inbuf, PTP_IN_ENABLE_QUEUE, in efx_ptp_enable() 778 rc = efx_mcdi_rpc_quiet(efx, MC_CMD_PTP, inbuf, sizeof(inbuf), in efx_ptp_enable() 801 rc = efx_mcdi_rpc_quiet(efx, MC_CMD_PTP, inbuf, sizeof(inbuf), in efx_ptp_disable() 2146 return efx_mcdi_rpc(efx, MC_CMD_PTP, inbuf, sizeof(inbuf), in efx_phc_adjtime() [all …]
|
H A D | mcdi_port_common.c | 73 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() 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() 917 inbuf, sizeof(inbuf), in efx_mcdi_phy_get_module_eeprom_page() 1137 MCDI_DECLARE_BUF(inbuf, MC_CMD_SET_MAC_EXT_IN_LEN); in efx_mcdi_set_mtu() 1146 return efx_mcdi_rpc(efx, MC_CMD_SET_MAC, inbuf, sizeof(inbuf), in efx_mcdi_set_mtu() 1159 MCDI_DECLARE_BUF(inbuf, MC_CMD_MAC_STATS_IN_LEN); in efx_mcdi_mac_stats() 1171 MCDI_POPULATE_DWORD_7(inbuf, MAC_STATS_IN_CMD, in efx_mcdi_mac_stats() [all …]
|
H A D | mcdi_mon.c | 147 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 D | mcdi_port.c | 24 MCDI_DECLARE_BUF(inbuf, MC_CMD_MDIO_READ_IN_LEN); 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() 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() 58 MCDI_SET_DWORD(inbuf, MDIO_WRITE_IN_ADDR, addr); in efx_mcdi_mdio_write() 59 MCDI_SET_DWORD(inbuf, MDIO_WRITE_IN_VALUE, value); in efx_mcdi_mdio_write() [all …]
|
H A D | mcdi.c | 811 if (inbuf && inlen && (inbuf == outbuf)) { in _efx_mcdi_rpc() 1598 rc = efx_siena_mcdi_rpc(efx, MC_CMD_LOG_CTRL, inbuf, sizeof(inbuf), in efx_siena_mcdi_log_ctrl() 1640 rc = efx_siena_mcdi_rpc(efx, MC_CMD_NVRAM_INFO, inbuf, sizeof(inbuf), in efx_siena_mcdi_nvram_info() 1668 rc = efx_siena_mcdi_rpc(efx, MC_CMD_NVRAM_TEST, inbuf, sizeof(inbuf), in efx_mcdi_nvram_test() 1826 return efx_siena_mcdi_rpc(efx, MC_CMD_SET_ID_LED, inbuf, sizeof(inbuf), in efx_siena_mcdi_set_id_led() 1838 rc = efx_siena_mcdi_rpc(efx, MC_CMD_ENTITY_RESET, inbuf, sizeof(inbuf), in efx_mcdi_reset_func() 1850 rc = efx_siena_mcdi_rpc(efx, MC_CMD_REBOOT, inbuf, sizeof(inbuf), in efx_mcdi_reset_mc() 1980 MCDI_DECLARE_BUF(inbuf, in efx_siena_mcdi_flush_rxqs() 2055 rc = efx_siena_mcdi_rpc(efx, MC_CMD_NVRAM_READ, inbuf, sizeof(inbuf), in efx_mcdi_nvram_read() 2067 MCDI_DECLARE_BUF(inbuf, in efx_mcdi_nvram_write() [all …]
|
H A D | ptp.c | 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() 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() 738 MCDI_SET_DWORD(inbuf, PTP_IN_OP, in efx_ptp_get_timestamp_corrections() 742 rc = efx_siena_mcdi_rpc_quiet(efx, MC_CMD_PTP, inbuf, sizeof(inbuf), in efx_ptp_get_timestamp_corrections() 792 MCDI_SET_DWORD(inbuf, PTP_IN_ENABLE_QUEUE, in efx_ptp_enable() 797 rc = efx_siena_mcdi_rpc_quiet(efx, MC_CMD_PTP, inbuf, sizeof(inbuf), in efx_ptp_enable() 820 rc = efx_siena_mcdi_rpc_quiet(efx, MC_CMD_PTP, inbuf, sizeof(inbuf), in efx_ptp_disable() 2098 return efx_siena_mcdi_rpc(efx, MC_CMD_PTP, inbuf, sizeof(inbuf), in efx_phc_adjtime() [all …]
|
H A D | mcdi_mon.c | 147 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 D | mcdi_port_common.c | 74 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() 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() 925 inbuf, sizeof(inbuf), in efx_mcdi_phy_get_module_eeprom_page() 1155 MCDI_DECLARE_BUF(inbuf, MC_CMD_MAC_STATS_IN_LEN); in efx_mcdi_mac_stats() 1167 MCDI_POPULATE_DWORD_7(inbuf, MAC_STATS_IN_CMD, in efx_mcdi_mac_stats() 1181 sizeof(inbuf), NULL, 0, NULL); in efx_mcdi_mac_stats() [all …]
|
/openbmc/linux/drivers/cdx/controller/ |
H A D | mcdi_functions.c | 31 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 D | ipmi_bmc_extern.c | 74 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() 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() 372 ibe->inbuf[ibe->inpos] = ch; in receive() 433 ibe->inbuf[1] = ibe->outbuf[1] | 0x04; in chr_event() 434 ibe->inbuf[2] = ibe->outbuf[2]; in chr_event() 469 ibe->inbuf[1] = ibe->outbuf[1] | 0x04; in ipmi_bmc_extern_post_migrate() [all …]
|
/openbmc/linux/crypto/ |
H A D | cast6_generic.c | 172 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() 206 __cast6_encrypt(crypto_tfm_ctx(tfm), outbuf, inbuf); in cast6_encrypt() 216 block[0] = get_unaligned_be32(inbuf); in __cast6_decrypt() 217 block[1] = get_unaligned_be32(inbuf + 4); in __cast6_decrypt() 218 block[2] = get_unaligned_be32(inbuf + 8); in __cast6_decrypt() 219 block[3] = get_unaligned_be32(inbuf + 12); in __cast6_decrypt() [all …]
|
/openbmc/linux/drivers/tty/hvc/ |
H A D | hvc_dcc.c | 29 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()
|
H A D | hvsi_lib.c | 70 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()
|
/openbmc/linux/lib/ |
H A D | decompress.c | 63 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 D | decompress_bunzip2.c | 98 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() 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() 707 i = start_bunzip(&bd, inbuf, len, fill); in bunzip2() [all …]
|
/openbmc/linux/drivers/infiniband/core/ |
H A D | ucma.c | 676 const char __user *inbuf, in ucma_resolve_ip() argument 703 const char __user *inbuf, in ucma_resolve_addr() argument 731 const char __user *inbuf, in ucma_resolve_route() argument 817 const char __user *inbuf, in ucma_query_route() argument 997 const char __user *inbuf, in ucma_query() argument 1213 const char __user *inbuf, in ucma_init_qp_attr() argument 1522 const char __user *inbuf, in ucma_join_ip_multicast() argument 1545 const char __user *inbuf, in ucma_join_multicast() argument 1560 const char __user *inbuf, in ucma_leave_multicast() argument 1611 const char __user *inbuf, in ucma_migrate_id() argument [all …]
|
/openbmc/linux/arch/arm/vdso/ |
H A D | vdsomunge.c | 122 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()
|
/openbmc/linux/arch/alpha/boot/ |
H A D | misc.c | 45 static uch *inbuf; /* input buffer */ variable 61 #define get_byte() (inptr < insize ? inbuf[inptr++] : fill_inbuf()) 110 inbuf = input_data; in fill_inbuf() 114 return inbuf[0]; in fill_inbuf()
|