/linux-4.1.27/drivers/net/ethernet/sfc/ |
H A D | mcdi_port.c | 39 MCDI_DECLARE_BUF(outbuf, MC_CMD_GET_PHY_CFG_OUT_LEN); efx_mcdi_get_phy_cfg() 47 outbuf, sizeof(outbuf), &outlen); efx_mcdi_get_phy_cfg() 56 cfg->flags = MCDI_DWORD(outbuf, GET_PHY_CFG_OUT_FLAGS); efx_mcdi_get_phy_cfg() 57 cfg->type = MCDI_DWORD(outbuf, GET_PHY_CFG_OUT_TYPE); efx_mcdi_get_phy_cfg() 59 MCDI_DWORD(outbuf, GET_PHY_CFG_OUT_SUPPORTED_CAP); efx_mcdi_get_phy_cfg() 60 cfg->channel = MCDI_DWORD(outbuf, GET_PHY_CFG_OUT_CHANNEL); efx_mcdi_get_phy_cfg() 61 cfg->port = MCDI_DWORD(outbuf, GET_PHY_CFG_OUT_PRT); efx_mcdi_get_phy_cfg() 62 cfg->stats_mask = MCDI_DWORD(outbuf, GET_PHY_CFG_OUT_STATS_MASK); efx_mcdi_get_phy_cfg() 63 memcpy(cfg->name, MCDI_PTR(outbuf, GET_PHY_CFG_OUT_NAME), efx_mcdi_get_phy_cfg() 65 cfg->media = MCDI_DWORD(outbuf, GET_PHY_CFG_OUT_MEDIA_TYPE); efx_mcdi_get_phy_cfg() 66 cfg->mmd_mask = MCDI_DWORD(outbuf, GET_PHY_CFG_OUT_MMD_MASK); efx_mcdi_get_phy_cfg() 67 memcpy(cfg->revision, MCDI_PTR(outbuf, GET_PHY_CFG_OUT_REVISION), efx_mcdi_get_phy_cfg() 98 MCDI_DECLARE_BUF(outbuf, MC_CMD_GET_LOOPBACK_MODES_OUT_LEN); efx_mcdi_loopback_modes() 103 outbuf, sizeof(outbuf), &outlen); efx_mcdi_loopback_modes() 113 *loopback_modes = MCDI_QWORD(outbuf, GET_LOOPBACK_MODES_OUT_SUGGESTED); efx_mcdi_loopback_modes() 127 MCDI_DECLARE_BUF(outbuf, MC_CMD_MDIO_READ_OUT_LEN); efx_mcdi_mdio_read() 137 outbuf, sizeof(outbuf), &outlen); efx_mcdi_mdio_read() 141 if (MCDI_DWORD(outbuf, MDIO_READ_OUT_STATUS) != efx_mcdi_mdio_read() 145 return (u16)MCDI_DWORD(outbuf, MDIO_READ_OUT_VALUE); efx_mcdi_mdio_read() 153 MCDI_DECLARE_BUF(outbuf, MC_CMD_MDIO_WRITE_OUT_LEN); efx_mcdi_mdio_write() 164 outbuf, sizeof(outbuf), &outlen); efx_mcdi_mdio_write() 168 if (MCDI_DWORD(outbuf, MDIO_WRITE_OUT_STATUS) != efx_mcdi_mdio_write() 339 MCDI_DECLARE_BUF(outbuf, MC_CMD_GET_LINK_OUT_LEN); efx_mcdi_phy_probe() 355 outbuf, sizeof(outbuf), NULL); efx_mcdi_phy_probe() 372 caps = MCDI_DWORD(outbuf, GET_LINK_OUT_CAP); efx_mcdi_phy_probe() 418 MCDI_DWORD(outbuf, GET_LINK_OUT_LINK_SPEED), efx_mcdi_phy_probe() 419 MCDI_DWORD(outbuf, GET_LINK_OUT_FLAGS), efx_mcdi_phy_probe() 420 MCDI_DWORD(outbuf, GET_LINK_OUT_FCNTL)); efx_mcdi_phy_probe() 477 MCDI_DECLARE_BUF(outbuf, MC_CMD_GET_LINK_OUT_LEN); efx_mcdi_phy_poll() 485 outbuf, sizeof(outbuf), NULL); efx_mcdi_phy_poll() 491 MCDI_DWORD(outbuf, GET_LINK_OUT_LINK_SPEED), efx_mcdi_phy_poll() 492 MCDI_DWORD(outbuf, GET_LINK_OUT_FLAGS), efx_mcdi_phy_poll() 493 MCDI_DWORD(outbuf, GET_LINK_OUT_FCNTL)); efx_mcdi_phy_poll() 509 MCDI_DECLARE_BUF(outbuf, MC_CMD_GET_LINK_OUT_LEN); efx_mcdi_phy_get_settings() 526 outbuf, sizeof(outbuf), NULL); efx_mcdi_phy_get_settings() 531 MCDI_DWORD(outbuf, GET_LINK_OUT_LP_CAP)); efx_mcdi_phy_get_settings() 579 MCDI_DECLARE_BUF(outbuf, MC_CMD_GET_PHY_STATE_OUT_LEN); efx_mcdi_phy_test_alive() 586 outbuf, sizeof(outbuf), &outlen); efx_mcdi_phy_test_alive() 592 if (MCDI_DWORD(outbuf, GET_PHY_STATE_OUT_STATE) != MC_CMD_PHY_STATE_OK) efx_mcdi_phy_test_alive() 616 MCDI_DECLARE_BUF(outbuf, MC_CMD_POLL_BIST_OUT_SFT9001_LEN); efx_mcdi_bist() 631 outbuf, sizeof(outbuf), &outlen); efx_mcdi_bist() 635 status = MCDI_DWORD(outbuf, POLL_BIST_OUT_RESULT); efx_mcdi_bist() 652 ptr = MCDI_PTR(outbuf, POLL_BIST_OUT_SFT9001_CABLE_LENGTH_A); efx_mcdi_bist() 740 MCDI_DECLARE_BUF(outbuf, MC_CMD_GET_PHY_MEDIA_INFO_OUT_LENMAX); efx_mcdi_phy_get_module_eeprom() 761 outbuf, sizeof(outbuf), efx_mcdi_phy_get_module_eeprom() 770 payload_len = MCDI_DWORD(outbuf, efx_mcdi_phy_get_module_eeprom() 781 MCDI_PTR(outbuf, GET_PHY_MEDIA_INFO_OUT_DATA) + page_off, efx_mcdi_phy_get_module_eeprom() 903 MCDI_DECLARE_BUF(outbuf, MC_CMD_GET_LINK_OUT_LEN); efx_mcdi_mac_check_fault() 910 outbuf, sizeof(outbuf), &outlength); efx_mcdi_mac_check_fault() 914 return MCDI_DWORD(outbuf, GET_LINK_OUT_MAC_FAULT) != 0; efx_mcdi_mac_check_fault() 1026 MCDI_DECLARE_BUF(outbuf, MC_CMD_GET_PORT_ASSIGNMENT_OUT_LEN); efx_mcdi_port_get_number() 1030 outbuf, sizeof(outbuf), NULL); efx_mcdi_port_get_number() 1034 return MCDI_DWORD(outbuf, GET_PORT_ASSIGNMENT_OUT_PORT); efx_mcdi_port_get_number()
|
H A D | mcdi.c | 408 efx_dword_t *outbuf; efx_mcdi_complete_async() local 447 outbuf = (efx_dword_t *)(async + 1); efx_mcdi_complete_async() 448 efx->type->mcdi_read_response(efx, outbuf, hdr_len, efx_mcdi_complete_async() 457 async->complete(efx, async->cookie, rc, outbuf, data_len); efx_mcdi_complete_async() 533 efx_dword_t *outbuf, size_t outlen, _efx_mcdi_rpc_finish() 587 efx->type->mcdi_read_response(efx, outbuf, hdr_len, _efx_mcdi_rpc_finish() 618 efx_dword_t *outbuf, size_t outlen, _efx_mcdi_rpc() 629 return _efx_mcdi_rpc_finish(efx, cmd, inlen, outbuf, outlen, _efx_mcdi_rpc() 635 efx_dword_t *outbuf, size_t outlen, efx_mcdi_rpc() 638 return _efx_mcdi_rpc(efx, cmd, inbuf, inlen, outbuf, outlen, efx_mcdi_rpc() 652 efx_dword_t *outbuf, size_t outlen, efx_mcdi_rpc_quiet() 655 return _efx_mcdi_rpc(efx, cmd, inbuf, inlen, outbuf, outlen, efx_mcdi_rpc_quiet() 773 efx_dword_t *outbuf, size_t outlen, efx_mcdi_rpc_finish() 776 return _efx_mcdi_rpc_finish(efx, cmd, inlen, outbuf, outlen, efx_mcdi_rpc_finish() 781 efx_dword_t *outbuf, size_t outlen, efx_mcdi_rpc_finish_quiet() 784 return _efx_mcdi_rpc_finish(efx, cmd, inlen, outbuf, outlen, efx_mcdi_rpc_finish_quiet() 789 size_t inlen, efx_dword_t *outbuf, efx_mcdi_display_error() 795 code = MCDI_DWORD(outbuf, ERR_CODE); efx_mcdi_display_error() 797 err_arg = MCDI_DWORD(outbuf, ERR_ARG); efx_mcdi_display_error() 1084 MCDI_DECLARE_BUF(outbuf, efx_mcdi_print_fwver() 1094 outbuf, sizeof(outbuf), &outlength); efx_mcdi_print_fwver() 1102 ver_words = (__le16 *)MCDI_PTR(outbuf, GET_VERSION_OUT_VERSION); efx_mcdi_print_fwver() 1113 outbuf, sizeof(outbuf), &outlength); efx_mcdi_print_fwver() 1120 MCDI_WORD(outbuf, efx_mcdi_print_fwver() 1122 MCDI_WORD(outbuf, efx_mcdi_print_fwver() 1144 MCDI_DECLARE_BUF(outbuf, MC_CMD_DRV_ATTACH_EXT_OUT_LEN); efx_mcdi_drv_attach() 1154 outbuf, sizeof(outbuf), &outlen); efx_mcdi_drv_attach() 1165 MCDI_DWORD(outbuf, efx_mcdi_drv_attach() 1193 *was_attached = MCDI_DWORD(outbuf, DRV_ATTACH_OUT_OLD_STATE); efx_mcdi_drv_attach() 1204 MCDI_DECLARE_BUF(outbuf, MC_CMD_GET_BOARD_CFG_OUT_LENMAX); efx_mcdi_get_board_cfg() 1215 outbuf, sizeof(outbuf), &outlen); efx_mcdi_get_board_cfg() 1227 MCDI_PTR(outbuf, GET_BOARD_CFG_OUT_MAC_ADDR_BASE_PORT1) : efx_mcdi_get_board_cfg() 1228 MCDI_PTR(outbuf, GET_BOARD_CFG_OUT_MAC_ADDR_BASE_PORT0)); efx_mcdi_get_board_cfg() 1235 outbuf, GET_BOARD_CFG_OUT_FW_SUBTYPE_LIST, i); efx_mcdi_get_board_cfg() 1241 *capabilities = MCDI_DWORD(outbuf, efx_mcdi_get_board_cfg() 1244 *capabilities = MCDI_DWORD(outbuf, efx_mcdi_get_board_cfg() 1280 MCDI_DECLARE_BUF(outbuf, MC_CMD_NVRAM_TYPES_OUT_LEN); efx_mcdi_nvram_types() 1287 outbuf, sizeof(outbuf), &outlen); efx_mcdi_nvram_types() 1295 *nvram_types_out = MCDI_DWORD(outbuf, NVRAM_TYPES_OUT_TYPES); efx_mcdi_nvram_types() 1309 MCDI_DECLARE_BUF(outbuf, MC_CMD_NVRAM_INFO_OUT_LEN); efx_mcdi_nvram_info() 1316 outbuf, sizeof(outbuf), &outlen); efx_mcdi_nvram_info() 1324 *size_out = MCDI_DWORD(outbuf, NVRAM_INFO_OUT_SIZE); efx_mcdi_nvram_info() 1325 *erase_size_out = MCDI_DWORD(outbuf, NVRAM_INFO_OUT_ERASESIZE); efx_mcdi_nvram_info() 1326 *protected_out = !!(MCDI_DWORD(outbuf, NVRAM_INFO_OUT_FLAGS) & efx_mcdi_nvram_info() 1338 MCDI_DECLARE_BUF(outbuf, MC_CMD_NVRAM_TEST_OUT_LEN); efx_mcdi_nvram_test() 1344 outbuf, sizeof(outbuf), NULL); efx_mcdi_nvram_test() 1348 switch (MCDI_DWORD(outbuf, NVRAM_TEST_OUT_RESULT)) { efx_mcdi_nvram_test() 1391 MCDI_DECLARE_BUF_OUT_OR_ERR(outbuf, MC_CMD_GET_ASSERTS_OUT_LEN); efx_mcdi_read_assertion() 1408 outbuf, sizeof(outbuf), &outlen); efx_mcdi_read_assertion() 1413 MC_CMD_GET_ASSERTS_IN_LEN, outbuf, efx_mcdi_read_assertion() 1421 flags = MCDI_DWORD(outbuf, GET_ASSERTS_OUT_GLOBAL_FLAGS); efx_mcdi_read_assertion() 1434 MCDI_DWORD(outbuf, GET_ASSERTS_OUT_SAVED_PC_OFFS), efx_mcdi_read_assertion() 1435 MCDI_DWORD(outbuf, GET_ASSERTS_OUT_THREAD_OFFS)); efx_mcdi_read_assertion() 1443 MCDI_ARRAY_DWORD(outbuf, GET_ASSERTS_OUT_GP_REGS_OFFS, efx_mcdi_read_assertion() 1563 MCDI_DECLARE_BUF(outbuf, MC_CMD_WOL_FILTER_SET_OUT_LEN); efx_mcdi_wol_filter_set() 1573 outbuf, sizeof(outbuf), &outlen); efx_mcdi_wol_filter_set() 1582 *id_out = (int)MCDI_DWORD(outbuf, WOL_FILTER_SET_OUT_FILTER_ID); efx_mcdi_wol_filter_set() 1603 MCDI_DECLARE_BUF(outbuf, MC_CMD_WOL_FILTER_GET_OUT_LEN); efx_mcdi_wol_filter_get_magic() 1608 outbuf, sizeof(outbuf), &outlen); efx_mcdi_wol_filter_get_magic() 1617 *id_out = (int)MCDI_DWORD(outbuf, WOL_FILTER_GET_OUT_FILTER_ID); efx_mcdi_wol_filter_get_magic() 1713 MCDI_DECLARE_BUF(outbuf, efx_mcdi_nvram_read() 1723 outbuf, sizeof(outbuf), &outlen); efx_mcdi_nvram_read() 1727 memcpy(buffer, MCDI_PTR(outbuf, NVRAM_READ_OUT_READ_BUFFER), length); efx_mcdi_nvram_read() 532 _efx_mcdi_rpc_finish(struct efx_nic *efx, unsigned cmd, size_t inlen, efx_dword_t *outbuf, size_t outlen, size_t *outlen_actual, bool quiet) _efx_mcdi_rpc_finish() argument 616 _efx_mcdi_rpc(struct efx_nic *efx, unsigned cmd, const efx_dword_t *inbuf, size_t inlen, efx_dword_t *outbuf, size_t outlen, size_t *outlen_actual, bool quiet) _efx_mcdi_rpc() argument 633 efx_mcdi_rpc(struct efx_nic *efx, unsigned cmd, const efx_dword_t *inbuf, size_t inlen, efx_dword_t *outbuf, size_t outlen, size_t *outlen_actual) efx_mcdi_rpc() argument 650 efx_mcdi_rpc_quiet(struct efx_nic *efx, unsigned cmd, const efx_dword_t *inbuf, size_t inlen, efx_dword_t *outbuf, size_t outlen, size_t *outlen_actual) efx_mcdi_rpc_quiet() argument 772 efx_mcdi_rpc_finish(struct efx_nic *efx, unsigned cmd, size_t inlen, efx_dword_t *outbuf, size_t outlen, size_t *outlen_actual) efx_mcdi_rpc_finish() argument 780 efx_mcdi_rpc_finish_quiet(struct efx_nic *efx, unsigned cmd, size_t inlen, efx_dword_t *outbuf, size_t outlen, size_t *outlen_actual) efx_mcdi_rpc_finish_quiet() argument 788 efx_mcdi_display_error(struct efx_nic *efx, unsigned cmd, size_t inlen, efx_dword_t *outbuf, size_t outlen, int rc) efx_mcdi_display_error() argument
|
H A D | ef10.c | 100 MCDI_DECLARE_BUF(outbuf, MC_CMD_GET_CAPABILITIES_OUT_LEN); efx_ef10_init_datapath_caps() 108 outbuf, sizeof(outbuf), &outlen); efx_ef10_init_datapath_caps() 111 if (outlen < sizeof(outbuf)) { efx_ef10_init_datapath_caps() 118 MCDI_DWORD(outbuf, GET_CAPABILITIES_OUT_FLAGS1); efx_ef10_init_datapath_caps() 139 MCDI_DECLARE_BUF(outbuf, MC_CMD_GET_CLOCK_OUT_LEN); efx_ef10_get_sysclk_freq() 143 outbuf, sizeof(outbuf), NULL); efx_ef10_get_sysclk_freq() 146 rc = MCDI_DWORD(outbuf, GET_CLOCK_OUT_SYS_FREQ); efx_ef10_get_sysclk_freq() 152 MCDI_DECLARE_BUF(outbuf, MC_CMD_GET_MAC_ADDRESSES_OUT_LEN); efx_ef10_get_mac_address() 159 outbuf, sizeof(outbuf), &outlen); efx_ef10_get_mac_address() 166 MCDI_PTR(outbuf, GET_MAC_ADDRESSES_OUT_MAC_ADDR_BASE)); efx_ef10_get_mac_address() 284 MCDI_DECLARE_BUF_OUT_OR_ERR(outbuf, 0); efx_ef10_free_vis() 287 outbuf, sizeof(outbuf), &outlen); efx_ef10_free_vis() 293 efx_mcdi_display_error(efx, MC_CMD_FREE_VIS, 0, outbuf, outlen, efx_ef10_free_vis() 323 MCDI_DECLARE_BUF(outbuf, MC_CMD_ALLOC_PIOBUF_OUT_LEN); efx_ef10_alloc_piobufs() 332 outbuf, sizeof(outbuf), &outlen); efx_ef10_alloc_piobufs() 340 MCDI_DWORD(outbuf, ALLOC_PIOBUF_OUT_PIOBUF_HANDLE); efx_ef10_alloc_piobufs() 502 MCDI_DECLARE_BUF(outbuf, MC_CMD_ALLOC_VIS_OUT_LEN); efx_ef10_alloc_vis() 510 outbuf, sizeof(outbuf), &outlen); efx_ef10_alloc_vis() 518 MCDI_DWORD(outbuf, ALLOC_VIS_OUT_VI_BASE)); efx_ef10_alloc_vis() 520 nic_data->vi_base = MCDI_DWORD(outbuf, ALLOC_VIS_OUT_VI_BASE); efx_ef10_alloc_vis() 521 nic_data->n_allocated_vis = MCDI_DWORD(outbuf, ALLOC_VIS_OUT_VI_COUNT); efx_ef10_alloc_vis() 1094 efx_ef10_mcdi_read_response(struct efx_nic *efx, efx_dword_t *outbuf, efx_ef10_mcdi_read_response() argument 1100 memcpy(outbuf, pdu + offset, outlen); efx_ef10_mcdi_read_response() 1235 MCDI_DECLARE_BUF(outbuf, MC_CMD_INIT_TXQ_OUT_LEN); efx_ef10_tx_init() 1269 outbuf, sizeof(outbuf), &outlen); efx_ef10_tx_init() 1302 MCDI_DECLARE_BUF(outbuf, MC_CMD_FINI_TXQ_OUT_LEN); efx_ef10_tx_fini() 1311 outbuf, sizeof(outbuf), &outlen); efx_ef10_tx_fini() 1320 outbuf, outlen, rc); efx_ef10_tx_fini() 1386 MCDI_DECLARE_BUF(outbuf, MC_CMD_RSS_CONTEXT_ALLOC_OUT_LEN); efx_ef10_alloc_rss_context() 1398 outbuf, sizeof(outbuf), &outlen); efx_ef10_alloc_rss_context() 1405 *context = MCDI_DWORD(outbuf, RSS_CONTEXT_ALLOC_OUT_RSS_CONTEXT_ID); efx_ef10_alloc_rss_context() 1501 MCDI_DECLARE_BUF(outbuf, MC_CMD_INIT_RXQ_OUT_LEN); efx_ef10_rx_init() 1537 outbuf, sizeof(outbuf), &outlen); efx_ef10_rx_init() 1546 MCDI_DECLARE_BUF(outbuf, MC_CMD_FINI_RXQ_OUT_LEN); efx_ef10_rx_fini() 1555 outbuf, sizeof(outbuf), &outlen); efx_ef10_rx_fini() 1564 outbuf, outlen, rc); efx_ef10_rx_fini() 1637 int rc, efx_dword_t *outbuf, efx_ef10_rx_defer_refill_complete() 1656 MCDI_DECLARE_BUF(outbuf, MC_CMD_INIT_EVQ_OUT_LEN); efx_ef10_ev_init() 1700 outbuf, sizeof(outbuf), &outlen); efx_ef10_ev_init() 1708 MCDI_DECLARE_BUF(outbuf, MC_CMD_FINI_EVQ_OUT_LEN); efx_ef10_ev_fini() 1716 outbuf, sizeof(outbuf), &outlen); efx_ef10_ev_fini() 1725 outbuf, outlen, rc); efx_ef10_ev_fini() 2317 MCDI_DECLARE_BUF(outbuf, MC_CMD_FILTER_OP_OUT_LEN); efx_ef10_filter_push() 2322 outbuf, sizeof(outbuf), NULL); efx_ef10_filter_push() 2324 *handle = MCDI_QWORD(outbuf, FILTER_OP_OUT_HANDLE); efx_ef10_filter_push() 2881 int rc, efx_dword_t *outbuf, efx_ef10_filter_rfs_insert_complete() 2898 MCDI_QWORD(outbuf, FILTER_OP_OUT_HANDLE); efx_ef10_filter_rfs_insert_complete() 2914 int rc, efx_dword_t *outbuf, 2949 int rc, efx_dword_t *outbuf, efx_ef10_filter_rfs_expire_complete() 3003 MCDI_DECLARE_BUF(outbuf, MC_CMD_GET_PARSER_DISP_INFO_OUT_LENMAX); efx_ef10_filter_table_probe() 3017 inbuf, sizeof(inbuf), outbuf, sizeof(outbuf), efx_ef10_filter_table_probe() 3028 outbuf, efx_ef10_filter_table_probe() 3308 MCDI_DECLARE_BUF(outbuf, MC_CMD_POLL_BIST_OUT_LEN); efx_ef10_poll_bist() 3313 outbuf, sizeof(outbuf), &outlen); efx_ef10_poll_bist() 3320 result = MCDI_DWORD(outbuf, POLL_BIST_OUT_RESULT); efx_ef10_poll_bist() 3400 MCDI_DECLARE_BUF(outbuf, MC_CMD_NVRAM_METADATA_OUT_LENMAX); efx_ef10_mtd_probe_partition() 3426 outbuf, sizeof(outbuf), &outlen); efx_ef10_mtd_probe_partition() 3431 if (MCDI_DWORD(outbuf, NVRAM_METADATA_OUT_FLAGS) & efx_ef10_mtd_probe_partition() 3433 part->fw_subtype = MCDI_DWORD(outbuf, efx_ef10_mtd_probe_partition() 3449 MCDI_DECLARE_BUF(outbuf, MC_CMD_NVRAM_PARTITIONS_OUT_LENMAX); efx_ef10_mtd_probe() 3459 outbuf, sizeof(outbuf), &outlen); efx_ef10_mtd_probe() 3465 n_parts_total = MCDI_DWORD(outbuf, NVRAM_PARTITIONS_OUT_NUM_PARTITIONS); efx_ef10_mtd_probe() 3476 type = MCDI_ARRAY_DWORD(outbuf, NVRAM_PARTITIONS_OUT_TYPE_ID, efx_ef10_mtd_probe() 1636 efx_ef10_rx_defer_refill_complete(struct efx_nic *efx, unsigned long cookie, int rc, efx_dword_t *outbuf, size_t outlen_actual) efx_ef10_rx_defer_refill_complete() argument 2880 efx_ef10_filter_rfs_insert_complete(struct efx_nic *efx, unsigned long cookie, int rc, efx_dword_t *outbuf, size_t outlen_actual) efx_ef10_filter_rfs_insert_complete() argument 2947 efx_ef10_filter_rfs_expire_complete(struct efx_nic *efx, unsigned long filter_idx, int rc, efx_dword_t *outbuf, size_t outlen_actual) efx_ef10_filter_rfs_expire_complete() argument
|
H A D | mcdi_mon.c | 311 MCDI_DECLARE_BUF(outbuf, MC_CMD_SENSOR_INFO_OUT_LENMAX); efx_mcdi_mon_probe() 325 outbuf, sizeof(outbuf), &outlen); efx_mcdi_mon_probe() 331 mask = MCDI_DWORD(outbuf, SENSOR_INFO_OUT_MASK); efx_mcdi_mon_probe() 388 outbuf, sizeof(outbuf), efx_mcdi_mon_probe() 397 mask = (MCDI_DWORD(outbuf, efx_mcdi_mon_probe() 451 min1 = MCDI_ARRAY_FIELD(outbuf, SENSOR_ENTRY, efx_mcdi_mon_probe() 453 max1 = MCDI_ARRAY_FIELD(outbuf, SENSOR_ENTRY, efx_mcdi_mon_probe() 455 min2 = MCDI_ARRAY_FIELD(outbuf, SENSOR_ENTRY, efx_mcdi_mon_probe() 457 max2 = MCDI_ARRAY_FIELD(outbuf, SENSOR_ENTRY, efx_mcdi_mon_probe()
|
H A D | ptp.c | 369 MCDI_DECLARE_BUF(outbuf, MC_CMD_PTP_OUT_STATUS_LEN); efx_ptp_update_stats() 391 outbuf, sizeof(outbuf), NULL); efx_ptp_update_stats() 395 memset(outbuf, 0, sizeof(outbuf)); efx_ptp_update_stats() 399 stats, _MCDI_PTR(outbuf, 0), false); efx_ptp_update_stats() 481 MCDI_DECLARE_BUF(outbuf, MC_CMD_PTP_OUT_GET_ATTRIBUTES_LEN); efx_ptp_get_attributes() 494 outbuf, sizeof(outbuf), &out_len); efx_ptp_get_attributes() 496 fmt = MCDI_DWORD(outbuf, PTP_OUT_GET_ATTRIBUTES_TIME_FORMAT); efx_ptp_get_attributes() 522 MCDI_DWORD(outbuf, efx_ptp_get_attributes() 534 MCDI_DECLARE_BUF(outbuf, MC_CMD_PTP_OUT_GET_TIMESTAMP_CORRECTIONS_LEN); efx_ptp_get_timestamp_corrections() 545 outbuf, sizeof(outbuf), NULL); efx_ptp_get_timestamp_corrections() 547 efx->ptp_data->ts_corrections.tx = MCDI_DWORD(outbuf, efx_ptp_get_timestamp_corrections() 549 efx->ptp_data->ts_corrections.rx = MCDI_DWORD(outbuf, efx_ptp_get_timestamp_corrections() 551 efx->ptp_data->ts_corrections.pps_out = MCDI_DWORD(outbuf, efx_ptp_get_timestamp_corrections() 553 efx->ptp_data->ts_corrections.pps_in = MCDI_DWORD(outbuf, efx_ptp_get_timestamp_corrections() 571 MCDI_DECLARE_BUF_OUT_OR_ERR(outbuf, 0); efx_ptp_enable() 582 outbuf, sizeof(outbuf), NULL); efx_ptp_enable() 587 outbuf, sizeof(outbuf), rc); efx_ptp_enable() 599 MCDI_DECLARE_BUF_OUT_OR_ERR(outbuf, 0); efx_ptp_disable() 605 outbuf, sizeof(outbuf), NULL); efx_ptp_disable() 610 outbuf, sizeof(outbuf), rc); efx_ptp_disable() 1847 MCDI_DECLARE_BUF(outbuf, MC_CMD_PTP_OUT_READ_NIC_TIME_LEN); efx_phc_gettime() 1855 outbuf, sizeof(outbuf), NULL); efx_phc_gettime() 1860 MCDI_DWORD(outbuf, PTP_OUT_READ_NIC_TIME_MAJOR), efx_phc_gettime() 1861 MCDI_DWORD(outbuf, PTP_OUT_READ_NIC_TIME_MINOR), 0); efx_phc_gettime()
|
H A D | mcdi.h | 132 size_t inlen, efx_dword_t *outbuf, size_t outlen, 136 efx_dword_t *outbuf, size_t outlen, 142 efx_dword_t *outbuf, size_t outlen, 145 size_t inlen, efx_dword_t *outbuf, 150 efx_dword_t *outbuf, 163 size_t inlen, efx_dword_t *outbuf,
|
H A D | siena.c | 733 static void siena_mcdi_read_response(struct efx_nic *efx, efx_dword_t *outbuf, siena_mcdi_read_response() argument 741 efx_readd(efx, &outbuf[i], pdu + offset + 4 * i); siena_mcdi_read_response()
|
H A D | siena_sriov.c | 201 MCDI_DECLARE_BUF(outbuf, MC_CMD_SRIOV_OUT_LEN); efx_siena_sriov_cmd() 211 outbuf, MC_CMD_SRIOV_OUT_LEN, &outlen); efx_siena_sriov_cmd() 217 vf_total = MCDI_DWORD(outbuf, SRIOV_OUT_VF_TOTAL); efx_siena_sriov_cmd() 218 vi_scale = MCDI_DWORD(outbuf, SRIOV_OUT_VI_SCALE); efx_siena_sriov_cmd()
|
/linux-4.1.27/include/linux/decompress/ |
H A D | generic.h | 7 unsigned char *outbuf, 14 *flush - function to write out outbuf 15 *outbuf - output buffer 27 *If flush = NULL, outbuf must be large enough to buffer all the expected 29 *decompressor (outbuf = NULL), and the flush function will be called to
|
/linux-4.1.27/drivers/iio/dac/ |
H A D | max5821.c | 96 u8 outbuf[2]; max5821_sync_powerdown_mode() local 98 outbuf[0] = MAX5821_EXTENDED_COMMAND_MODE; max5821_sync_powerdown_mode() 101 outbuf[1] = MAX5821_EXTENDED_DAC_A; max5821_sync_powerdown_mode() 103 outbuf[1] = MAX5821_EXTENDED_DAC_B; max5821_sync_powerdown_mode() 106 outbuf[1] |= data->powerdown_mode[chan->channel] + 1; max5821_sync_powerdown_mode() 108 outbuf[1] |= MAX5821_EXTENDED_POWER_UP; max5821_sync_powerdown_mode() 110 return i2c_master_send(data->client, outbuf, 2); max5821_sync_powerdown_mode() 177 u8 outbuf[1]; max5821_get_value() local 184 outbuf[0] = max5821_read_dac_command[channel]; max5821_get_value() 188 ret = i2c_master_send(client, outbuf, 1); max5821_get_value() 218 u8 outbuf[2]; max5821_set_value() local 227 outbuf[0] = max5821_load_dac_command[channel]; max5821_set_value() 228 outbuf[0] |= val >> 6; max5821_set_value() 229 outbuf[1] = (val & 0x3f) << 2; max5821_set_value() 231 ret = i2c_master_send(client, outbuf, 2); max5821_set_value() 276 u8 outbuf[2] = { MAX5821_EXTENDED_COMMAND_MODE, max5821_suspend() local 281 return i2c_master_send(to_i2c_client(dev), outbuf, 2); max5821_suspend() 286 u8 outbuf[2] = { MAX5821_EXTENDED_COMMAND_MODE, max5821_resume() local 291 return i2c_master_send(to_i2c_client(dev), outbuf, 2); max5821_resume()
|
H A D | max517.c | 61 u8 outbuf[2]; max517_set_value() local 67 outbuf[0] = channel; max517_set_value() 68 outbuf[1] = val; max517_set_value() 70 res = i2c_master_send(client, outbuf, 2); max517_set_value() 119 u8 outbuf = COMMAND_PD; max517_suspend() local 121 return i2c_master_send(to_i2c_client(dev), &outbuf, 1); max517_suspend() 126 u8 outbuf = 0; max517_resume() local 128 return i2c_master_send(to_i2c_client(dev), &outbuf, 1); max517_resume()
|
H A D | mcp4725.c | 41 u8 outbuf[2]; mcp4725_suspend() local 43 outbuf[0] = (data->powerdown_mode + 1) << 4; mcp4725_suspend() 44 outbuf[1] = 0; mcp4725_suspend() 47 return i2c_master_send(data->client, outbuf, 2); mcp4725_suspend() 54 u8 outbuf[2]; mcp4725_resume() local 57 outbuf[0] = (data->dac_value >> 8) & 0xf; mcp4725_resume() 58 outbuf[1] = data->dac_value & 0xff; mcp4725_resume() 61 return i2c_master_send(data->client, outbuf, 2); mcp4725_resume() 217 u8 outbuf[2]; mcp4725_set_value() local 223 outbuf[0] = (val >> 8) & 0xf; mcp4725_set_value() 224 outbuf[1] = val & 0xff; mcp4725_set_value() 226 ret = i2c_master_send(data->client, outbuf, 2); mcp4725_set_value()
|
/linux-4.1.27/include/linux/ |
H A D | olpc-ec.h | 32 extern int olpc_ec_cmd(u8 cmd, u8 *inbuf, size_t inlen, u8 *outbuf, 37 static inline int olpc_ec_cmd(u8 cmd, u8 *inbuf, size_t inlen, u8 *outbuf, olpc_ec_cmd() argument
|
/linux-4.1.27/drivers/usb/gadget/function/ |
H A D | rndis.c | 168 __le32 *outbuf; gen_ndis_query_resp() local 192 outbuf = (__le32 *)&resp[1]; gen_ndis_query_resp() 208 outbuf[i] = cpu_to_le32(oid_supported_list[i]); gen_ndis_query_resp() 221 *outbuf = cpu_to_le32(0); gen_ndis_query_resp() 228 *outbuf = cpu_to_le32(rndis_per_dev_params[configNr].medium); gen_ndis_query_resp() 236 *outbuf = cpu_to_le32(rndis_per_dev_params[configNr].medium); gen_ndis_query_resp() 244 *outbuf = cpu_to_le32( gen_ndis_query_resp() 256 *outbuf = cpu_to_le32(0); gen_ndis_query_resp() 258 *outbuf = cpu_to_le32( gen_ndis_query_resp() 267 *outbuf = cpu_to_le32( gen_ndis_query_resp() 277 *outbuf = cpu_to_le32( gen_ndis_query_resp() 286 *outbuf = cpu_to_le32( gen_ndis_query_resp() 297 memcpy(outbuf, gen_ndis_query_resp() 301 outbuf[0] = 0; gen_ndis_query_resp() 309 *outbuf = rndis_driver_version; gen_ndis_query_resp() 316 *outbuf = cpu_to_le32(*rndis_per_dev_params[configNr].filter); gen_ndis_query_resp() 323 *outbuf = cpu_to_le32(RNDIS_MAX_TOTAL_SIZE); gen_ndis_query_resp() 331 *outbuf = cpu_to_le32(rndis_per_dev_params[configNr] gen_ndis_query_resp() 338 *outbuf = cpu_to_le32(0); gen_ndis_query_resp() 348 *outbuf = cpu_to_le32( gen_ndis_query_resp() 361 *outbuf = cpu_to_le32(stats->tx_packets gen_ndis_query_resp() 372 *outbuf = cpu_to_le32(stats->rx_packets gen_ndis_query_resp() 383 *outbuf = cpu_to_le32(stats->tx_errors); gen_ndis_query_resp() 393 *outbuf = cpu_to_le32(stats->rx_errors); gen_ndis_query_resp() 402 *outbuf = cpu_to_le32(stats->rx_dropped); gen_ndis_query_resp() 414 memcpy(outbuf, gen_ndis_query_resp() 426 memcpy(outbuf, gen_ndis_query_resp() 437 *outbuf = cpu_to_le32(0xE0000000); gen_ndis_query_resp() 445 *outbuf = cpu_to_le32(1); gen_ndis_query_resp() 451 *outbuf = cpu_to_le32(0); gen_ndis_query_resp() 461 *outbuf = cpu_to_le32(stats->rx_frame_errors); gen_ndis_query_resp() 469 *outbuf = cpu_to_le32(0); gen_ndis_query_resp() 476 *outbuf = cpu_to_le32(0); gen_ndis_query_resp()
|
/linux-4.1.27/drivers/crypto/nx/ |
H A D | nx-842.c | 338 unsigned long inbuf, outbuf, padding; nx842_compress() local 369 outbuf = (unsigned long)out + hdrsize; nx842_compress() 394 padding = ALIGN(outbuf, IO_BUFFER_ALIGN) - outbuf; nx842_compress() 395 outbuf += padding; nx842_compress() 425 * DDE is required for the outbuf. nx842_compress() 426 * If max_sync_size == NX842_HW_PAGE_SIZE, outbuf must nx842_compress() 431 nx842_build_scatterlist(outbuf, nx842_compress() 462 memcpy((void *)outbuf, (void *)inbuf, nx842_compress() 465 outbuf += max_sync_size; nx842_compress() 476 outbuf += size; nx842_compress() 483 *outlen = (unsigned int)(outbuf - (unsigned long)out); nx842_compress() 538 unsigned long inbuf, outbuf; nx842_decompress() local 547 outbuf = (unsigned long)out; nx842_decompress() 548 if (!IS_ALIGNED(outbuf, PAGE_SIZE) || *outlen != PAGE_SIZE) nx842_decompress() 593 memcpy((void *)outbuf, (void *)inbuf, size); nx842_decompress() 594 outbuf += size; nx842_decompress() 625 op.out = nx842_get_pa((void *)outbuf); nx842_decompress() 629 nx842_build_scatterlist(outbuf, max_sync_size, &slout); nx842_decompress() 654 outbuf += csbcpb->csb.processed_byte_count; nx842_decompress() 662 (unsigned char *)outbuf, &size, wmem); nx842_decompress() 676 outbuf += size; nx842_decompress() 679 *outlen = (unsigned int)(outbuf - (unsigned long)out); nx842_decompress() 1399 unsigned char **outbuf, struct sw842_fifo *fifo) sw842_data8() 1403 ret = sw842_data4(inbuf, inbit, outbuf, fifo); sw842_data8() 1406 ret = sw842_data4(inbuf, inbit, outbuf, fifo); sw842_data8() 1411 unsigned char **outbuf, struct sw842_fifo *fifo) sw842_data4() 1415 ret = sw842_data2(inbuf, inbit, outbuf, fifo); sw842_data4() 1418 ret = sw842_data2(inbuf, inbit, outbuf, fifo); sw842_data4() 1423 unsigned char **outbuf, struct sw842_fifo *fifo) sw842_data2() 1425 **outbuf = sw842_get_byte(*inbuf, *inbit); sw842_data2() 1427 (*outbuf)++; sw842_data2() 1428 **outbuf = sw842_get_byte(*inbuf, *inbit); sw842_data2() 1430 (*outbuf)++; sw842_data2() 1435 unsigned char **outbuf, struct sw842_fifo *fifo) sw842_ptr8() 1441 memcpy(*outbuf, fifo->f8[ptr], 8); sw842_ptr8() 1442 *outbuf += 8; sw842_ptr8() 1447 unsigned char **outbuf, struct sw842_fifo *fifo) sw842_ptr4() 1453 memcpy(*outbuf, fifo->f4[ptr], 4); sw842_ptr4() 1454 *outbuf += 4; sw842_ptr4() 1459 unsigned char **outbuf, struct sw842_fifo *fifo) sw842_ptr2() 1465 memcpy(*outbuf, fifo->f2[ptr], 2); sw842_ptr2() 1466 *outbuf += 2; sw842_ptr2() 1498 unsigned char *outbuf, *outbuf_end, *origbuf, *prevbuf; sw842_decompress() local 1512 outbuf = dst; sw842_decompress() 1523 origbuf = outbuf; sw842_decompress() 1542 if ((outbuf + 8) > outbuf_end) { sw842_decompress() 1547 memcpy(outbuf, prevbuf, 8); sw842_decompress() 1548 sw842_copy_to_fifo(outbuf, fifo); sw842_decompress() 1549 outbuf += 8; sw842_decompress() 1555 if ((outbuf + 8) > outbuf_end) { sw842_decompress() 1560 memset(outbuf, 0, 8); sw842_decompress() 1561 sw842_copy_to_fifo(outbuf, fifo); sw842_decompress() 1562 outbuf += 8; sw842_decompress() 1578 if ((outbuf + 8) > outbuf_end) { sw842_decompress() 1586 ret = (*op)(&inbuf, &inbit, &outbuf, fifo); sw842_decompress() 1598 *destlen = (unsigned int)(outbuf - dst); sw842_decompress() 1398 sw842_data8(const char **inbuf, int *inbit, unsigned char **outbuf, struct sw842_fifo *fifo) sw842_data8() argument 1410 sw842_data4(const char **inbuf, int *inbit, unsigned char **outbuf, struct sw842_fifo *fifo) sw842_data4() argument 1422 sw842_data2(const char **inbuf, int *inbit, unsigned char **outbuf, struct sw842_fifo *fifo) sw842_data2() argument 1434 sw842_ptr8(const char **inbuf, int *inbit, unsigned char **outbuf, struct sw842_fifo *fifo) sw842_ptr8() argument 1446 sw842_ptr4(const char **inbuf, int *inbit, unsigned char **outbuf, struct sw842_fifo *fifo) sw842_ptr4() argument 1458 sw842_ptr2(const char **inbuf, int *inbit, unsigned char **outbuf, struct sw842_fifo *fifo) sw842_ptr2() argument
|
/linux-4.1.27/fs/dlm/ |
H A D | dir.h | 22 char *outbuf, int outlen, int nodeid);
|
H A D | dir.c | 237 char *outbuf, int outlen, int nodeid) dlm_copy_master_names() 279 memcpy(outbuf + offset, &be_namelen, sizeof(__be16)); dlm_copy_master_names() 286 memcpy(outbuf + offset, &be_namelen, sizeof(__be16)); dlm_copy_master_names() 288 memcpy(outbuf + offset, r->res_name, r->res_length); dlm_copy_master_names() 301 memcpy(outbuf + offset, &be_namelen, sizeof(__be16)); dlm_copy_master_names() 236 dlm_copy_master_names(struct dlm_ls *ls, char *inbuf, int inlen, char *outbuf, int outlen, int nodeid) dlm_copy_master_names() argument
|
/linux-4.1.27/crypto/ |
H A D | cast6_generic.c | 184 void __cast6_encrypt(struct cast6_ctx *c, u8 *outbuf, const u8 *inbuf) __cast6_encrypt() argument 187 __be32 *dst = (__be32 *)outbuf; __cast6_encrypt() 217 static void cast6_encrypt(struct crypto_tfm *tfm, u8 *outbuf, const u8 *inbuf) cast6_encrypt() argument 219 __cast6_encrypt(crypto_tfm_ctx(tfm), outbuf, inbuf); cast6_encrypt() local 222 void __cast6_decrypt(struct cast6_ctx *c, u8 *outbuf, const u8 *inbuf) __cast6_decrypt() argument 225 __be32 *dst = (__be32 *)outbuf; __cast6_decrypt() 255 static void cast6_decrypt(struct crypto_tfm *tfm, u8 *outbuf, const u8 *inbuf) cast6_decrypt() argument 257 __cast6_decrypt(crypto_tfm_ctx(tfm), outbuf, inbuf); cast6_decrypt() local
|
H A D | cast5_generic.c | 311 void __cast5_encrypt(struct cast5_ctx *c, u8 *outbuf, const u8 *inbuf) __cast5_encrypt() argument 314 __be32 *dst = (__be32 *)outbuf; __cast5_encrypt() 363 static void cast5_encrypt(struct crypto_tfm *tfm, u8 *outbuf, const u8 *inbuf) cast5_encrypt() argument 365 __cast5_encrypt(crypto_tfm_ctx(tfm), outbuf, inbuf); cast5_encrypt() local 368 void __cast5_decrypt(struct cast5_ctx *c, u8 *outbuf, const u8 *inbuf) __cast5_decrypt() argument 371 __be32 *dst = (__be32 *)outbuf; __cast5_decrypt() 407 static void cast5_decrypt(struct crypto_tfm *tfm, u8 *outbuf, const u8 *inbuf) cast5_decrypt() argument 409 __cast5_decrypt(crypto_tfm_ctx(tfm), outbuf, inbuf); cast5_decrypt() local
|
H A D | testmgr.c | 1750 goto outbuf; drbg_cavs_test() 1765 goto outbuf; drbg_cavs_test() 1780 goto outbuf; drbg_cavs_test() 1785 outbuf: drbg_cavs_test()
|
H A D | drbg.c | 1760 return drbg_generate_long(drbg, data->outbuf, data->outlen, drbg_kcapi_random() 1854 goto outbuf; drbg_healthcheck_sanity() 1877 outbuf: drbg_healthcheck_sanity()
|
/linux-4.1.27/include/crypto/ |
H A D | drbg.h | 184 unsigned char *outbuf; /* output buffer for random numbers */ member in struct:drbg_gen 195 * @outbuf output buffer -- see crypto_rng_get_bytes 204 unsigned char *outbuf, unsigned int outlen, crypto_drbg_get_bytes_addtl() 209 genbuf.outbuf = outbuf; crypto_drbg_get_bytes_addtl() 225 * @outbuf output buffer -- see crypto_rng_get_bytes 235 unsigned char *outbuf, unsigned int outlen, crypto_drbg_get_bytes_addtl_test() 241 genbuf.outbuf = outbuf; crypto_drbg_get_bytes_addtl_test() 269 genbuf.outbuf = NULL; crypto_drbg_reset_test() 203 crypto_drbg_get_bytes_addtl(struct crypto_rng *drng, unsigned char *outbuf, unsigned int outlen, struct drbg_string *addtl) crypto_drbg_get_bytes_addtl() argument 234 crypto_drbg_get_bytes_addtl_test(struct crypto_rng *drng, unsigned char *outbuf, unsigned int outlen, struct drbg_string *addtl, struct drbg_test_data *test_data) crypto_drbg_get_bytes_addtl_test() argument
|
/linux-4.1.27/arch/arm/vdso/ |
H A D | vdsomunge.c | 137 void *outbuf; main() local 199 outbuf = mmap(NULL, stat.st_size, PROT_READ | PROT_WRITE, MAP_SHARED, main() 201 if (outbuf == MAP_FAILED) main() 206 memcpy(outbuf, inbuf, stat.st_size); main() 211 outhdr = outbuf; main() 216 if (msync(outbuf, stat.st_size, MS_SYNC) != 0) main()
|
/linux-4.1.27/drivers/platform/olpc/ |
H A D | olpc-ec.c | 22 u8 *inbuf, *outbuf; member in struct:ec_cmd_desc 87 desc->outbuf, desc->outlen, ec_cb_arg); olpc_ec_worker() 115 int olpc_ec_cmd(u8 cmd, u8 *inbuf, size_t inlen, u8 *outbuf, size_t outlen) olpc_ec_cmd() argument 135 desc.outbuf = outbuf; olpc_ec_cmd()
|
/linux-4.1.27/drivers/sbus/char/ |
H A D | uctrl.c | 94 u8 *outbuf; member in struct:uctrl_txn 295 txn->outbuf[bytecnt] = (byte >> 8); uctrl_do_txn() 311 txn.outbuf = outbits; uctrl_get_event_status() 331 txn.outbuf = outbits; uctrl_get_external_status()
|
/linux-4.1.27/drivers/ide/ |
H A D | ide-taskfile.c | 473 u8 *outbuf = NULL; ide_taskfile_ioctl() local 497 outbuf = kzalloc(taskout, GFP_KERNEL); ide_taskfile_ioctl() 498 if (outbuf == NULL) { ide_taskfile_ioctl() 502 if (copy_from_user(outbuf, buf + outtotal, taskout)) { ide_taskfile_ioctl() 596 data_buf = outbuf; ide_taskfile_ioctl() 655 if (copy_to_user(buf + outtotal, outbuf, taskout)) { ide_taskfile_ioctl() 669 kfree(outbuf); ide_taskfile_ioctl()
|
/linux-4.1.27/lib/ |
H A D | decompress_bunzip2.c | 97 unsigned char *inbuf /*,*outbuf*/; 517 data are written to outbuf. Return value is number of bytes written or 518 error (all errors are negative numbers). If out_fd!=-1, outbuf and len 522 static int INIT read_bunzip(struct bunzip_data *bd, char *outbuf, int len) read_bunzip() argument 554 outbuf[gotcount++] = xcurrent; read_bunzip() 681 unsigned char *outbuf, bunzip2() 690 outbuf = malloc(BZIP2_IOBUF_SIZE); bunzip2() 692 if (!outbuf) { bunzip2() 708 i = read_bunzip(bd, outbuf, BZIP2_IOBUF_SIZE); bunzip2() 712 outbuf += i; bunzip2() 714 if (i != flush(outbuf, i)) { bunzip2() 741 free(outbuf); bunzip2() 749 unsigned char *outbuf, long olen, __decompress() 753 return bunzip2(buf, len - 4, fill, flush, outbuf, pos, error); __decompress() 678 bunzip2(unsigned char *buf, long len, long (*fill)(void*, unsigned long), long (*flush)(void*, unsigned long), unsigned char *outbuf, long *pos, void(*error)(char *x)) bunzip2() argument 746 __decompress(unsigned char *buf, long len, long (*fill)(void*, unsigned long), long (*flush)(void*, unsigned long), unsigned char *outbuf, long olen, long *pos, void (*error)(char *x)) __decompress() argument
|
/linux-4.1.27/drivers/staging/wlan-ng/ |
H A D | hfa384x_usb.c | 849 rridresult.rid = le16_to_cpu(ctlx->outbuf.rridreq.rid); hfa384x_cb_rrid() 1302 le16_to_cpu(ctlx->outbuf.type), hfa384x_usbctlx_complete_sync() 1363 ctlx->outbuf.cmdreq.type = cpu_to_le16(HFA384x_USB_CMDREQ); hfa384x_docmd() 1364 ctlx->outbuf.cmdreq.cmd = cpu_to_le16(cmd->cmd); hfa384x_docmd() 1365 ctlx->outbuf.cmdreq.parm0 = cpu_to_le16(cmd->parm0); hfa384x_docmd() 1366 ctlx->outbuf.cmdreq.parm1 = cpu_to_le16(cmd->parm1); hfa384x_docmd() 1367 ctlx->outbuf.cmdreq.parm2 = cpu_to_le16(cmd->parm2); hfa384x_docmd() 1369 ctlx->outbufsize = sizeof(ctlx->outbuf.cmdreq); hfa384x_docmd() 1453 ctlx->outbuf.rridreq.type = cpu_to_le16(HFA384x_USB_RRIDREQ); hfa384x_dorrid() 1454 ctlx->outbuf.rridreq.frmlen = hfa384x_dorrid() 1455 cpu_to_le16(sizeof(ctlx->outbuf.rridreq.rid)); hfa384x_dorrid() 1456 ctlx->outbuf.rridreq.rid = cpu_to_le16(rid); hfa384x_dorrid() 1458 ctlx->outbufsize = sizeof(ctlx->outbuf.rridreq); hfa384x_dorrid() 1534 ctlx->outbuf.wridreq.type = cpu_to_le16(HFA384x_USB_WRIDREQ); hfa384x_dowrid() 1535 ctlx->outbuf.wridreq.frmlen = cpu_to_le16((sizeof hfa384x_dowrid() 1536 (ctlx->outbuf.wridreq.rid) + hfa384x_dowrid() 1538 ctlx->outbuf.wridreq.rid = cpu_to_le16(rid); hfa384x_dowrid() 1539 memcpy(ctlx->outbuf.wridreq.data, riddata, riddatalen); hfa384x_dowrid() 1541 ctlx->outbufsize = sizeof(ctlx->outbuf.wridreq.type) + hfa384x_dowrid() 1542 sizeof(ctlx->outbuf.wridreq.frmlen) + hfa384x_dowrid() 1543 sizeof(ctlx->outbuf.wridreq.rid) + riddatalen; hfa384x_dowrid() 1622 ctlx->outbuf.rmemreq.type = cpu_to_le16(HFA384x_USB_RMEMREQ); hfa384x_dormem() 1623 ctlx->outbuf.rmemreq.frmlen = hfa384x_dormem() 1624 cpu_to_le16(sizeof(ctlx->outbuf.rmemreq.offset) + hfa384x_dormem() 1625 sizeof(ctlx->outbuf.rmemreq.page) + len); hfa384x_dormem() 1626 ctlx->outbuf.rmemreq.offset = cpu_to_le16(offset); hfa384x_dormem() 1627 ctlx->outbuf.rmemreq.page = cpu_to_le16(page); hfa384x_dormem() 1629 ctlx->outbufsize = sizeof(ctlx->outbuf.rmemreq); hfa384x_dormem() 1632 ctlx->outbuf.rmemreq.type, hfa384x_dormem() 1633 ctlx->outbuf.rmemreq.frmlen, hfa384x_dormem() 1634 ctlx->outbuf.rmemreq.offset, ctlx->outbuf.rmemreq.page); hfa384x_dormem() 1636 pr_debug("pktsize=%zd\n", ROUNDUP64(sizeof(ctlx->outbuf.rmemreq))); hfa384x_dormem() 1715 ctlx->outbuf.wmemreq.type = cpu_to_le16(HFA384x_USB_WMEMREQ); hfa384x_dowmem() 1716 ctlx->outbuf.wmemreq.frmlen = hfa384x_dowmem() 1717 cpu_to_le16(sizeof(ctlx->outbuf.wmemreq.offset) + hfa384x_dowmem() 1718 sizeof(ctlx->outbuf.wmemreq.page) + len); hfa384x_dowmem() 1719 ctlx->outbuf.wmemreq.offset = cpu_to_le16(offset); hfa384x_dowmem() 1720 ctlx->outbuf.wmemreq.page = cpu_to_le16(page); hfa384x_dowmem() 1721 memcpy(ctlx->outbuf.wmemreq.data, data, len); hfa384x_dowmem() 1723 ctlx->outbufsize = sizeof(ctlx->outbuf.wmemreq.type) + hfa384x_dowmem() 1724 sizeof(ctlx->outbuf.wmemreq.frmlen) + hfa384x_dowmem() 1725 sizeof(ctlx->outbuf.wmemreq.offset) + hfa384x_dowmem() 1726 sizeof(ctlx->outbuf.wmemreq.page) + len; hfa384x_dowmem() 2998 le16_to_cpu(ctlx->outbuf.type), unlocked_usbctlx_complete() 3052 &(head->outbuf), ROUNDUP64(head->outbufsize), hfa384x_usbctlxq_run() 3096 le16_to_cpu(head->outbuf.type), result); hfa384x_usbctlxq_run() 3348 if (ctlx->outbuf.type != intype) { hfa384x_usbin_ctlx() 3351 le16_to_cpu(ctlx->outbuf.type), hfa384x_usbin_ctlx() 3387 le16_to_cpu(ctlx->outbuf.type), hfa384x_usbin_ctlx() 3822 le16_to_cpu(ctlx->outbuf.type), hfa384x_ctlxout_callback()
|
H A D | hfa384x.h | 1163 hfa384x_usbout_t outbuf; /* pkt buf for OUT */ member in struct:hfa384x_usbctlx
|
/linux-4.1.27/include/linux/sunrpc/ |
H A D | gss_api.h | 64 struct xdr_buf *outbuf, 122 struct xdr_buf *outbuf,
|
H A D | gss_krb5.h | 257 struct xdr_buf *outbuf, struct page **pages); 273 gss_encrypt_xdr_buf(struct crypto_blkcipher *tfm, struct xdr_buf *outbuf,
|
/linux-4.1.27/arch/x86/platform/olpc/ |
H A D | olpc.c | 116 static int olpc_xo1_ec_cmd(u8 cmd, u8 *inbuf, size_t inlen, u8 *outbuf, olpc_xo1_ec_cmd() argument 169 if (outbuf && outlen) { olpc_xo1_ec_cmd() 179 outbuf[i] = inb(0x68); olpc_xo1_ec_cmd() 180 pr_devel("olpc-ec: received 0x%x\n", outbuf[i]); olpc_xo1_ec_cmd()
|
/linux-4.1.27/drivers/tty/hvc/ |
H A D | hvsi.c | 75 wait_queue_head_t emptyq; /* woken when outbuf is emptied */ 80 uint8_t outbuf[N_OUTBUF]; /* to implement write_room and chars_in_buffer */ member in struct:hvsi_struct 757 /* wait for hvsi_write_worker to empty hp->outbuf */ hvsi_flush_output() 768 * didn't manage to push outbuf. poof. hvsi_flush_output() 804 /* hvsi_write_worker will re-schedule until outbuf is empty. */ hvsi_close() 848 n = hvsi_put_chars(hp, hp->outbuf, hp->n_outbuf); hvsi_push() 859 /* hvsi_write_worker will keep rescheduling itself until outbuf is empty */ hvsi_write_worker() 892 pr_debug("%s: outbuf emptied after %li jiffies\n", __func__, hvsi_write_worker() 938 * when the hypervisor buffer (16K) fills, data will stay in hp->outbuf hvsi_write() 940 * will see there is no room in outbuf and return. hvsi_write() 946 memcpy(hp->outbuf + hp->n_outbuf, source, chunksize); hvsi_write()
|
H A D | hvc_console.h | 53 char *outbuf; member in struct:hvc_struct
|
H A D | hvc_console.c | 477 n = hp->ops->put_chars(hp->vtermno, hp->outbuf, hp->n_outbuf); hvc_push() 489 memmove(hp->outbuf, hp->outbuf + n, hp->n_outbuf); hvc_push() 519 memcpy(hp->outbuf + hp->n_outbuf, buf, rsize); hvc_write() 880 hp->outbuf = &((char *)hp)[ALIGN(sizeof(*hp), sizeof(long))]; hvc_alloc()
|
/linux-4.1.27/drivers/hid/usbhid/ |
H A D | usbhid.h | 85 char *outbuf; /* Output buffer */ member in struct:usbhid_device
|
H A D | hid-core.c | 346 memcpy(usbhid->outbuf, raw_report, hid_submit_out() 841 usbhid->outbuf = usb_alloc_coherent(dev, usbhid->bufsize, GFP_KERNEL, hid_alloc_buffers() 846 if (!usbhid->inbuf || !usbhid->outbuf || !usbhid->cr || hid_alloc_buffers() 958 usb_free_coherent(dev, usbhid->bufsize, usbhid->outbuf, usbhid->outbuf_dma); hid_free_buffers() 1105 usb_fill_int_urb(usbhid->urbout, dev, pipe, usbhid->outbuf, 0, usbhid_start()
|
/linux-4.1.27/drivers/infiniband/core/ |
H A D | uverbs.h | 53 (udata)->outbuf = (void __user *) (obuf); \ 61 (udata)->outbuf = (olen) ? (void __user *) (obuf) : NULL; \
|
/linux-4.1.27/net/sunrpc/auth_gss/ |
H A D | gss_krb5_crypto.c | 392 struct xdr_buf *outbuf; member in struct:encryptor_desc 404 struct xdr_buf *outbuf = desc->outbuf; encryptor() local 414 page_pos = desc->pos - outbuf->head[0].iov_len; encryptor() 415 if (page_pos >= 0 && page_pos < outbuf->page_len) { encryptor() 417 int i = (page_pos + outbuf->page_base) >> PAGE_CACHE_SHIFT; encryptor() 475 desc.outbuf = buf; gss_encrypt_xdr_buf() 726 desc.outbuf = buf; gss_krb5_aes_encrypt()
|
/linux-4.1.27/drivers/media/rc/ |
H A D | ati_remote.c | 257 unsigned char *outbuf; member in struct:ati_remote 699 ati_remote->outbuf = usb_alloc_coherent(udev, DATA_BUFSIZE, GFP_ATOMIC, ati_remote_alloc_buffers() 701 if (!ati_remote->outbuf) ati_remote_alloc_buffers() 727 ati_remote->outbuf, ati_remote->outbuf_dma); ati_remote_free_buffers() 798 usb_fill_int_urb(ati_remote->out_urb, udev, pipe, ati_remote->outbuf, ati_remote_initialize()
|
/linux-4.1.27/drivers/usb/class/ |
H A D | cdc-wdm.c | 75 u8 *outbuf; /* buffer for command */ member in struct:wdm_device 151 kfree(desc->outbuf); wdm_out_callback() 152 desc->outbuf = NULL; wdm_out_callback() 410 desc->outbuf = buf; wdm_write() 414 desc->outbuf = NULL; wdm_write()
|
/linux-4.1.27/drivers/md/ |
H A D | dm-ioctl.c | 1104 char *outbuf, *outptr; retrieve_status() local 1109 outptr = outbuf = get_result_buffer(param, param_size, &len); retrieve_status() 1122 remaining = len - (outptr - outbuf); retrieve_status() 1137 remaining = len - (outptr - outbuf); retrieve_status() 1158 used = param->data_start + (outptr - outbuf); retrieve_status() 1161 spec->next = outptr - outbuf; retrieve_status()
|
/linux-4.1.27/arch/mn10300/kernel/ |
H A D | gdb-stub.c | 739 char outbuf[26]; gdbstub_console_write() local 746 outbuf[0] = 'O'; gdbstub_console_write() 752 mem2hex(p, outbuf + qty, 2, 0); gdbstub_console_write() 755 mem2hex(gdbstub_cr, outbuf + qty, 2, 0); gdbstub_console_write() 762 outbuf[qty] = 0; gdbstub_console_write() 763 putpacket(outbuf); gdbstub_console_write()
|
/linux-4.1.27/drivers/net/ethernet/mellanox/mlx4/ |
H A D | fw.c | 1570 u8 *outbuf; mlx4_QUERY_FW_wrapper() local 1573 outbuf = outbox->buf; mlx4_QUERY_FW_wrapper() 1581 outbuf[0] = outbuf[1] = 0; mlx4_QUERY_FW_wrapper() 1582 memset(&outbuf[8], 0, QUERY_FW_OUT_SIZE - 8); mlx4_QUERY_FW_wrapper() 1583 outbuf[QUERY_FW_PPF_ID] = MLX4_INVALID_SLAVE_ID; mlx4_QUERY_FW_wrapper() 2661 struct mlx4_access_reg *inbuf, *outbuf; mlx4_ACCESS_REG() local 2675 outbuf = outbox->buf; mlx4_ACCESS_REG() 2694 if (outbuf->status & MLX4_ACCESS_REG_STATUS_MASK) { mlx4_ACCESS_REG() 2695 err = outbuf->status & MLX4_ACCESS_REG_STATUS_MASK; mlx4_ACCESS_REG() 2702 memcpy(reg_data, outbuf->reg_data, reg_len); mlx4_ACCESS_REG()
|
H A D | port.c | 501 u8 *inbuf, *outbuf; mlx4_get_port_ib_caps() local 515 outbuf = outmailbox->buf; mlx4_get_port_ib_caps() 527 *caps = *(__be32 *) (outbuf + 84); mlx4_get_port_ib_caps()
|
/linux-4.1.27/drivers/isdn/gigaset/ |
H A D | common.c | 54 unsigned char outbuf[80]; gigaset_dbg_buffer() local 56 size_t space = sizeof outbuf - 1; gigaset_dbg_buffer() 57 unsigned char *out = outbuf; gigaset_dbg_buffer() 85 gig_dbg(level, "%s (%u bytes): %s", msg, (unsigned) len, outbuf); gigaset_dbg_buffer()
|
/linux-4.1.27/drivers/scsi/ |
H A D | hptiop.h | 346 void *outbuf; member in struct:hpt_ioctl_k
|
H A D | 3w-sas.c | 103 char *outbuf, loff_t offset, size_t count) twl_sysfs_aen_read() 115 ret = memory_read_from_buffer(outbuf, count, &offset, tw_dev->event_queue[0], sizeof(TW_Event) * TW_Q_LENGTH); twl_sysfs_aen_read() 134 char *outbuf, loff_t offset, size_t count) twl_sysfs_compat_info() 146 ret = memory_read_from_buffer(outbuf, count, &offset, &tw_dev->tw_compat_info, sizeof(TW_Compatibility_Info)); twl_sysfs_compat_info() 101 twl_sysfs_aen_read(struct file *filp, struct kobject *kobj, struct bin_attribute *bin_attr, char *outbuf, loff_t offset, size_t count) twl_sysfs_aen_read() argument 132 twl_sysfs_compat_info(struct file *filp, struct kobject *kobj, struct bin_attribute *bin_attr, char *outbuf, loff_t offset, size_t count) twl_sysfs_compat_info() argument
|
H A D | hptiop.c | 830 memcpy_fromio(arg->outbuf, hptiop_iop_request_callback_itl()
|
H A D | advansys.c | 8288 * DvcPutScsiQ(PortAddr iop_base, ushort s_addr, uchar *outbuf, int words) 8297 DvcPutScsiQ(PortAddr iop_base, ushort s_addr, uchar *outbuf, int words) DvcPutScsiQ() argument 8301 ASC_DBG_PRT_HEX(2, "DvcPutScsiQ", outbuf, 2 * words); DvcPutScsiQ() 8308 ((ushort)outbuf[i + 1] << 8) | outbuf[i]); DvcPutScsiQ()
|
/linux-4.1.27/arch/frv/kernel/ |
H A D | gdb-stub.c | 616 char outbuf[26]; __gdbstub_console_write() local 619 outbuf[0] = 'O'; __gdbstub_console_write() 625 mem2hex(p, outbuf + qty, 2, 0); __gdbstub_console_write() 628 outbuf[qty++] = '0'; __gdbstub_console_write() 629 outbuf[qty++] = 'd'; __gdbstub_console_write() 635 outbuf[qty] = 0; __gdbstub_console_write() 636 gdbstub_send_packet(outbuf); __gdbstub_console_write()
|
/linux-4.1.27/drivers/infiniband/hw/ipath/ |
H A D | ipath_srq.c | 254 udata->outbuf = ipath_modify_srq()
|
/linux-4.1.27/drivers/infiniband/hw/qib/ |
H A D | qib_srq.c | 250 udata->outbuf = qib_modify_srq()
|
/linux-4.1.27/drivers/net/wan/ |
H A D | sdla.c | 430 void *inbuf, short inlen, void *outbuf, short *outlen) sdla_cmd() 481 if (outbuf && outlen) sdla_cmd() 486 memcpy(outbuf, cmd_buf->data, *outlen); sdla_cmd() 429 sdla_cmd(struct net_device *dev, int cmd, short dlci, short flags, void *inbuf, short inlen, void *outbuf, short *outlen) sdla_cmd() argument
|
/linux-4.1.27/drivers/block/mtip32xx/ |
H A D | mtip32xx.c | 2016 u8 *outbuf = NULL; exec_drive_taskfile() local 2041 outbuf = kzalloc(taskout, GFP_KERNEL); exec_drive_taskfile() 2042 if (outbuf == NULL) { exec_drive_taskfile() 2046 if (copy_from_user(outbuf, buf + outtotal, taskout)) { exec_drive_taskfile() 2051 outbuf, exec_drive_taskfile() 2157 if ((fis.command == ATA_CMD_SEC_ERASE_UNIT) && outbuf && exec_drive_taskfile() 2158 (outbuf[0] & MTIP_SEC_ERASE_MODE)) { exec_drive_taskfile() 2233 if (copy_to_user(buf + outtotal, outbuf, taskout)) { exec_drive_taskfile() 2251 kfree(outbuf); exec_drive_taskfile()
|
/linux-4.1.27/tools/virtio/ |
H A D | vringh_test.c | 397 errx(1, "virtqueue_add_in/outbuf: %i", err); parallel_test()
|
/linux-4.1.27/drivers/staging/media/lirc/ |
H A D | lirc_zilog.c | 891 static ssize_t read(struct file *filep, char __user *outbuf, size_t n, read() argument 955 ret = copy_to_user(outbuf + written, buf, read()
|
/linux-4.1.27/drivers/usb/gadget/udc/ |
H A D | s3c2410_udc.c | 528 unsigned char *outbuf = (unsigned char *)crq; s3c2410_udc_read_fifo_crq() local 540 readsb(S3C2410_UDC_EP0_FIFO_REG + base_addr, outbuf, bytes_read); s3c2410_udc_read_fifo_crq()
|
/linux-4.1.27/include/rdma/ |
H A D | ib_verbs.h | 1190 void __user *outbuf; member in struct:ib_udata 1710 return copy_to_user(udata->outbuf, src, len) ? -EFAULT : 0; ib_copy_to_udata()
|
/linux-4.1.27/drivers/video/fbdev/ |
H A D | neofb.c | 1933 info->sprite.outbuf = neofb_draw_cursor; neo_init_hw()
|