/openbmc/linux/drivers/net/ethernet/sfc/ |
H A D | mcdi_functions.c | 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() 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() 93 MCDI_SET_DWORD(inbuf, INIT_EVQ_IN_TMR_RELOAD, 0); in efx_mcdi_ev_init() 94 MCDI_SET_DWORD(inbuf, INIT_EVQ_IN_COUNT_MODE, in efx_mcdi_ev_init() 96 MCDI_SET_DWORD(inbuf, INIT_EVQ_IN_COUNT_THRSHLD, 0); in efx_mcdi_ev_init() [all …]
|
H A D | mcdi_port.c | 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() 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() 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()
|
H A D | mae.c | 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() 53 MCDI_SET_DWORD(inbuf, MAE_MPORT_FREE_IN_MPORT_ID, id); in efx_mae_free_mport() 109 MCDI_SET_DWORD(inbuf, MAE_MPORT_LOOKUP_IN_MPORT_SELECTOR, selector); in efx_mae_fw_lookup_mport() 132 MCDI_SET_DWORD(inbuf, MAE_COUNTERS_STREAM_START_V2_IN_COUNTER_TYPES_MASK, in efx_mae_start_counters() 224 MCDI_SET_DWORD(inbuf, MAE_COUNTERS_STREAM_GIVE_CREDITS_IN_NUM_CREDITS, in efx_mae_counters_grant_credits() 243 MCDI_SET_DWORD(inbuf, TABLE_DESCRIPTOR_IN_TABLE_ID, table_id); in efx_mae_table_get_desc() 245 MCDI_SET_DWORD(inbuf, TABLE_DESCRIPTOR_IN_FIRST_FIELDS_INDEX, offset); in efx_mae_table_get_desc() 419 MCDI_SET_DWORD(inbuf, TABLE_LIST_IN_FIRST_TABLE_ID_INDEX, pos); in efx_mae_check_table_exists() 899 MCDI_SET_DWORD(inbuf, MAE_COUNTER_ALLOC_V2_IN_REQUESTED_COUNT, 1); in efx_mae_allocate_counter() [all …]
|
H A D | ef10_sriov.c | 21 MCDI_SET_DWORD(inbuf, EVB_PORT_ASSIGN_IN_PORT_ID, port_id); in efx_ef10_evb_port_assign() 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() 48 MCDI_SET_DWORD(inbuf, VSWITCH_ALLOC_IN_NUM_VLAN_TAGS, 1); in efx_ef10_vswitch_alloc() 63 MCDI_SET_DWORD(inbuf, VSWITCH_FREE_IN_UPSTREAM_PORT_ID, port_id); in efx_ef10_vswitch_free() 82 MCDI_SET_DWORD(inbuf, VPORT_ALLOC_IN_UPSTREAM_PORT_ID, port_id_in); in efx_ef10_vport_alloc() 83 MCDI_SET_DWORD(inbuf, VPORT_ALLOC_IN_TYPE, vport_type); in efx_ef10_vport_alloc() 84 MCDI_SET_DWORD(inbuf, VPORT_ALLOC_IN_NUM_VLAN_TAGS, in efx_ef10_vport_alloc() 107 MCDI_SET_DWORD(inbuf, VPORT_FREE_IN_VPORT_ID, port_id); in efx_ef10_vport_free() [all …]
|
H A D | ptp.c | 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() 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() 719 MCDI_SET_DWORD(inbuf, PTP_IN_OP, in efx_ptp_get_timestamp_corrections() 721 MCDI_SET_DWORD(inbuf, PTP_IN_PERIPH_ID, 0); in efx_ptp_get_timestamp_corrections() 771 MCDI_SET_DWORD(inbuf, PTP_IN_OP, MC_CMD_PTP_OP_ENABLE); in efx_ptp_enable() 772 MCDI_SET_DWORD(inbuf, PTP_IN_PERIPH_ID, 0); in efx_ptp_enable() 773 MCDI_SET_DWORD(inbuf, PTP_IN_ENABLE_QUEUE, in efx_ptp_enable() 776 MCDI_SET_DWORD(inbuf, PTP_IN_ENABLE_MODE, efx->ptp_data->mode); in efx_ptp_enable() [all …]
|
H A D | mcdi.c | 1453 MCDI_SET_DWORD(inbuf, DRV_ATTACH_IN_NEW_STATE, in efx_mcdi_drv_attach() 1455 MCDI_SET_DWORD(inbuf, DRV_ATTACH_IN_UPDATE, 1); in efx_mcdi_drv_attach() 1456 MCDI_SET_DWORD(inbuf, DRV_ATTACH_IN_FIRMWARE_ID, MC_CMD_FW_LOW_LATENCY); in efx_mcdi_drv_attach() 1468 MCDI_SET_DWORD(inbuf, DRV_ATTACH_IN_FIRMWARE_ID, in efx_mcdi_drv_attach() 1580 MCDI_SET_DWORD(inbuf, LOG_CTRL_IN_LOG_DEST, dest); in efx_mcdi_log_ctrl() 1581 MCDI_SET_DWORD(inbuf, LOG_CTRL_IN_LOG_DEST_EVQ, dest_evq); in efx_mcdi_log_ctrl() 1654 MCDI_SET_DWORD(inbuf, NVRAM_INFO_IN_TYPE, type); in efx_mcdi_nvram_info() 1682 MCDI_SET_DWORD(inbuf, NVRAM_TEST_IN_TYPE, type); in efx_mcdi_nvram_test() 1782 MCDI_SET_DWORD(inbuf, GET_ASSERTS_IN_CLEAR, 1); in efx_mcdi_read_assertion() 1840 MCDI_SET_DWORD(inbuf, REBOOT_IN_FLAGS, in efx_mcdi_exit_assertion() [all …]
|
H A D | mcdi_filters.c | 100 MCDI_SET_DWORD(inbuf, FILTER_OP_IN_OP, 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() 217 MCDI_SET_DWORD(inbuf, FILTER_OP_IN_OP, in efx_mcdi_filter_push_prep() 225 MCDI_SET_DWORD(inbuf, FILTER_OP_IN_PORT_ID, spec->vport_id); in efx_mcdi_filter_push_prep() 227 MCDI_SET_DWORD(inbuf, FILTER_OP_IN_PORT_ID, efx->vport_id); in efx_mcdi_filter_push_prep() 228 MCDI_SET_DWORD(inbuf, FILTER_OP_IN_RX_DEST, in efx_mcdi_filter_push_prep() 232 MCDI_SET_DWORD(inbuf, FILTER_OP_IN_TX_DOMAIN, 0); in efx_mcdi_filter_push_prep() 233 MCDI_SET_DWORD(inbuf, FILTER_OP_IN_TX_DEST, in efx_mcdi_filter_push_prep() 235 MCDI_SET_DWORD(inbuf, FILTER_OP_IN_RX_QUEUE, in efx_mcdi_filter_push_prep() 238 MCDI_SET_DWORD(inbuf, FILTER_OP_IN_RX_MODE, in efx_mcdi_filter_push_prep() [all …]
|
H A D | mcdi_port_common.c | 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() 766 MCDI_SET_DWORD(inbuf, START_BIST_IN_TYPE, bist_mode); in efx_mcdi_bist() 915 MCDI_SET_DWORD(inbuf, GET_PHY_MEDIA_INFO_IN_PAGE, page); in efx_mcdi_phy_get_module_eeprom_page() 1107 MCDI_SET_DWORD(cmdbytes, SET_MAC_IN_MTU, efx_calc_mac_mtu(efx)); in efx_mcdi_set_mac() 1108 MCDI_SET_DWORD(cmdbytes, SET_MAC_IN_DRAIN, 0); in efx_mcdi_set_mac() 1129 MCDI_SET_DWORD(cmdbytes, SET_MAC_IN_FCNTL, fcntl); in efx_mcdi_set_mac() 1141 MCDI_SET_DWORD(inbuf, SET_MAC_EXT_IN_MTU, efx_calc_mac_mtu(efx)); in efx_mcdi_set_mtu() [all …]
|
H A D | ef10.c | 191 MCDI_SET_DWORD(inbuf, LICENSING_V3_IN_OP, in efx_ef10_read_licensed_features() 352 MCDI_SET_DWORD(inbuf, VPORT_GET_MAC_ADDRESSES_IN_VPORT_ID, in efx_ef10_get_mac_address_vf() 725 MCDI_SET_DWORD(inbuf, FREE_PIOBUF_IN_PIOBUF_HANDLE, in efx_ef10_free_piobufs() 788 MCDI_SET_DWORD(inbuf, LINK_PIOBUF_IN_PIOBUF_HANDLE, in efx_ef10_link_piobufs() 790 MCDI_SET_DWORD(inbuf, LINK_PIOBUF_IN_TXQ_INSTANCE, in efx_ef10_link_piobufs() 836 MCDI_SET_DWORD(inbuf, in efx_ef10_link_piobufs() 839 MCDI_SET_DWORD(inbuf, in efx_ef10_link_piobufs() 877 MCDI_SET_DWORD(inbuf, UNLINK_PIOBUF_IN_TXQ_INSTANCE, in efx_ef10_link_piobufs() 995 MCDI_SET_DWORD(inbuf, VADAPTOR_QUERY_IN_UPSTREAM_PORT_ID, in efx_ef10_vadaptor_query() 1026 MCDI_SET_DWORD(inbuf, VADAPTOR_ALLOC_IN_UPSTREAM_PORT_ID, port_id); in efx_ef10_vadaptor_alloc() [all …]
|
H A D | mcdi_mon.c | 152 MCDI_SET_DWORD(inbuf, READ_SENSORS_EXT_IN_LENGTH, hwmon->dma_buf.len); in efx_mcdi_mon_update() 319 MCDI_SET_DWORD(inbuf, SENSOR_INFO_EXT_IN_PAGE, page); in efx_mcdi_mon_probe() 381 MCDI_SET_DWORD(inbuf, SENSOR_INFO_EXT_IN_PAGE, in efx_mcdi_mon_probe()
|
H A D | ef100_nic.c | 142 MCDI_SET_DWORD(inbuf, GET_CLIENT_MAC_ADDRESSES_IN_CLIENT_HANDLE, in ef100_get_mac_address() 683 MCDI_SET_DWORD(inbuf, TRIGGER_INTERRUPT_IN_INTR_LEVEL, efx->irq_level); in efx_ef100_irq_test_generate() 701 MCDI_SET_DWORD(inbuf, DRIVER_EVENT_IN_EVQ, channel->channel); in efx_ef100_ev_test_generate() 1139 MCDI_SET_DWORD(inbuf, GET_CLIENT_HANDLE_IN_TYPE, in efx_ef100_lookup_client_id()
|
H A D | efx_devlink.c | 111 MCDI_SET_DWORD(inbuf, SET_CLIENT_MAC_ADDRESSES_IN_CLIENT_HANDLE, in efx_devlink_port_addr_set()
|
H A D | mcdi.h | 260 #define MCDI_SET_DWORD(_buf, _field, _value) \ macro
|
/openbmc/linux/drivers/net/ethernet/sfc/siena/ |
H A D | mcdi_port.c | 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() 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() 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()
|
H A D | ptp.c | 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() 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() 738 MCDI_SET_DWORD(inbuf, PTP_IN_OP, in efx_ptp_get_timestamp_corrections() 740 MCDI_SET_DWORD(inbuf, PTP_IN_PERIPH_ID, 0); in efx_ptp_get_timestamp_corrections() 790 MCDI_SET_DWORD(inbuf, PTP_IN_OP, MC_CMD_PTP_OP_ENABLE); in efx_ptp_enable() 791 MCDI_SET_DWORD(inbuf, PTP_IN_PERIPH_ID, 0); in efx_ptp_enable() 792 MCDI_SET_DWORD(inbuf, PTP_IN_ENABLE_QUEUE, in efx_ptp_enable() 795 MCDI_SET_DWORD(inbuf, PTP_IN_ENABLE_MODE, efx->ptp_data->mode); in efx_ptp_enable() [all …]
|
H A D | mcdi.c | 1465 MCDI_SET_DWORD(inbuf, DRV_ATTACH_IN_NEW_STATE, in efx_mcdi_drv_attach() 1467 MCDI_SET_DWORD(inbuf, DRV_ATTACH_IN_UPDATE, 1); in efx_mcdi_drv_attach() 1468 MCDI_SET_DWORD(inbuf, DRV_ATTACH_IN_FIRMWARE_ID, MC_CMD_FW_LOW_LATENCY); in efx_mcdi_drv_attach() 1480 MCDI_SET_DWORD(inbuf, DRV_ATTACH_IN_FIRMWARE_ID, in efx_mcdi_drv_attach() 1593 MCDI_SET_DWORD(inbuf, LOG_CTRL_IN_LOG_DEST, dest); in efx_siena_mcdi_log_ctrl() 1594 MCDI_SET_DWORD(inbuf, LOG_CTRL_IN_LOG_DEST_EVQ, dest_evq); in efx_siena_mcdi_log_ctrl() 1638 MCDI_SET_DWORD(inbuf, NVRAM_INFO_IN_TYPE, type); in efx_siena_mcdi_nvram_info() 1666 MCDI_SET_DWORD(inbuf, NVRAM_TEST_IN_TYPE, type); in efx_mcdi_nvram_test() 1733 MCDI_SET_DWORD(inbuf, GET_ASSERTS_IN_CLEAR, 1); in efx_mcdi_read_assertion() 1791 MCDI_SET_DWORD(inbuf, REBOOT_IN_FLAGS, in efx_mcdi_exit_assertion() [all …]
|
H A D | mcdi_port_common.c | 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() 772 MCDI_SET_DWORD(inbuf, START_BIST_IN_TYPE, bist_mode); in efx_mcdi_bist() 923 MCDI_SET_DWORD(inbuf, GET_PHY_MEDIA_INFO_IN_PAGE, page); in efx_mcdi_phy_get_module_eeprom_page() 1113 MCDI_SET_DWORD(cmdbytes, SET_MAC_IN_MTU, efx_calc_mac_mtu(efx)); in efx_siena_mcdi_set_mac() 1114 MCDI_SET_DWORD(cmdbytes, SET_MAC_IN_DRAIN, 0); in efx_siena_mcdi_set_mac() 1140 MCDI_SET_DWORD(cmdbytes, SET_MAC_IN_FCNTL, fcntl); in efx_siena_mcdi_set_mac() 1175 MCDI_SET_DWORD(inbuf, MAC_STATS_IN_DMA_LEN, dma_len); in efx_mcdi_mac_stats() [all …]
|
H A D | mcdi_mon.c | 152 MCDI_SET_DWORD(inbuf, READ_SENSORS_EXT_IN_LENGTH, hwmon->dma_buf.len); in efx_mcdi_mon_update() 319 MCDI_SET_DWORD(inbuf, SENSOR_INFO_EXT_IN_PAGE, page); in efx_siena_mcdi_mon_probe() 381 MCDI_SET_DWORD(inbuf, SENSOR_INFO_EXT_IN_PAGE, in efx_siena_mcdi_mon_probe()
|
H A D | siena_sriov.c | 205 MCDI_SET_DWORD(inbuf, SRIOV_IN_ENABLE, enable ? 1 : 0); in efx_siena_sriov_cmd() 206 MCDI_SET_DWORD(inbuf, SRIOV_IN_VI_BASE, EFX_VI_BASE); in efx_siena_sriov_cmd() 207 MCDI_SET_DWORD(inbuf, SRIOV_IN_VF_COUNT, efx->vf_count); in efx_siena_sriov_cmd() 260 MCDI_SET_DWORD(record, MEMCPY_RECORD_TYPEDEF_NUM_RECORDS, in efx_siena_sriov_memcpy() 262 MCDI_SET_DWORD(record, MEMCPY_RECORD_TYPEDEF_TO_RID, in efx_siena_sriov_memcpy() 283 MCDI_SET_DWORD(record, MEMCPY_RECORD_TYPEDEF_FROM_RID, from_rid); in efx_siena_sriov_memcpy() 286 MCDI_SET_DWORD(record, MEMCPY_RECORD_TYPEDEF_LENGTH, in efx_siena_sriov_memcpy()
|
H A D | mcdi.h | 217 #define MCDI_SET_DWORD(_buf, _field, _value) \ macro
|
/openbmc/linux/drivers/cdx/controller/ |
H A D | mcdi_functions.c | 35 MCDI_SET_DWORD(inbuf, CDX_BUS_ENUM_DEVICES_IN_BUS, bus_num); in cdx_mcdi_get_num_devs() 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() 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()
|
H A D | mcdi.h | 224 #define MCDI_SET_DWORD(_buf, _field, _value) \ macro
|