/drivers/net/ethernet/sfc/ |
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 …]
|
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()
|
D | mae.c | 28 MCDI_SET_DWORD(inbuf, MAE_MPORT_ALLOC_ALIAS_IN_TYPE, in efx_mae_allocate_mport() 30 MCDI_SET_DWORD(inbuf, MAE_MPORT_ALLOC_ALIAS_IN_DELIVER_MPORT, in efx_mae_allocate_mport() 48 MCDI_SET_DWORD(inbuf, MAE_MPORT_FREE_IN_MPORT_ID, id); in efx_mae_free_mport() 104 MCDI_SET_DWORD(inbuf, MAE_MPORT_LOOKUP_IN_MPORT_SELECTOR, selector); in efx_mae_lookup_mport() 288 MCDI_SET_DWORD(inbuf, MAE_ACTION_SET_ALLOC_IN_SRC_MAC_ID, in efx_mae_alloc_action_set() 290 MCDI_SET_DWORD(inbuf, MAE_ACTION_SET_ALLOC_IN_DST_MAC_ID, in efx_mae_alloc_action_set() 292 MCDI_SET_DWORD(inbuf, MAE_ACTION_SET_ALLOC_IN_COUNTER_ID, in efx_mae_alloc_action_set() 294 MCDI_SET_DWORD(inbuf, MAE_ACTION_SET_ALLOC_IN_COUNTER_LIST_ID, in efx_mae_alloc_action_set() 296 MCDI_SET_DWORD(inbuf, MAE_ACTION_SET_ALLOC_IN_ENCAP_HEADER_ID, in efx_mae_alloc_action_set() 299 MCDI_SET_DWORD(inbuf, MAE_ACTION_SET_ALLOC_IN_DELIVER, in efx_mae_alloc_action_set() [all …]
|
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 …]
|
D | ptp.c | 431 MCDI_SET_DWORD(inbuf, PTP_IN_OP, MC_CMD_PTP_OP_STATUS); in efx_ptp_update_stats() 432 MCDI_SET_DWORD(inbuf, PTP_IN_PERIPH_ID, 0); in efx_ptp_update_stats() 652 MCDI_SET_DWORD(inbuf, PTP_IN_OP, MC_CMD_PTP_OP_GET_ATTRIBUTES); in efx_ptp_get_attributes() 653 MCDI_SET_DWORD(inbuf, PTP_IN_PERIPH_ID, 0); in efx_ptp_get_attributes() 748 MCDI_SET_DWORD(inbuf, PTP_IN_OP, in efx_ptp_get_timestamp_corrections() 750 MCDI_SET_DWORD(inbuf, PTP_IN_PERIPH_ID, 0); in efx_ptp_get_timestamp_corrections() 800 MCDI_SET_DWORD(inbuf, PTP_IN_OP, MC_CMD_PTP_OP_ENABLE); in efx_ptp_enable() 801 MCDI_SET_DWORD(inbuf, PTP_IN_PERIPH_ID, 0); in efx_ptp_enable() 802 MCDI_SET_DWORD(inbuf, PTP_IN_ENABLE_QUEUE, in efx_ptp_enable() 805 MCDI_SET_DWORD(inbuf, PTP_IN_ENABLE_MODE, efx->ptp_data->mode); in efx_ptp_enable() [all …]
|
D | mcdi.c | 1460 MCDI_SET_DWORD(inbuf, DRV_ATTACH_IN_NEW_STATE, in efx_mcdi_drv_attach() 1462 MCDI_SET_DWORD(inbuf, DRV_ATTACH_IN_UPDATE, 1); in efx_mcdi_drv_attach() 1463 MCDI_SET_DWORD(inbuf, DRV_ATTACH_IN_FIRMWARE_ID, MC_CMD_FW_LOW_LATENCY); in efx_mcdi_drv_attach() 1475 MCDI_SET_DWORD(inbuf, DRV_ATTACH_IN_FIRMWARE_ID, in efx_mcdi_drv_attach() 1587 MCDI_SET_DWORD(inbuf, LOG_CTRL_IN_LOG_DEST, dest); in efx_mcdi_log_ctrl() 1588 MCDI_SET_DWORD(inbuf, LOG_CTRL_IN_LOG_DEST_EVQ, dest_evq); in efx_mcdi_log_ctrl() 1661 MCDI_SET_DWORD(inbuf, NVRAM_INFO_IN_TYPE, type); in efx_mcdi_nvram_info() 1689 MCDI_SET_DWORD(inbuf, NVRAM_TEST_IN_TYPE, type); in efx_mcdi_nvram_test() 1789 MCDI_SET_DWORD(inbuf, GET_ASSERTS_IN_CLEAR, 1); in efx_mcdi_read_assertion() 1847 MCDI_SET_DWORD(inbuf, REBOOT_IN_FLAGS, in efx_mcdi_exit_assertion() [all …]
|
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 …]
|
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() 1134 MCDI_SET_DWORD(cmdbytes, SET_MAC_IN_FCNTL, fcntl); in efx_mcdi_set_mac() 1146 MCDI_SET_DWORD(inbuf, SET_MAC_EXT_IN_MTU, efx_calc_mac_mtu(efx)); in efx_mcdi_set_mtu() [all …]
|
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 …]
|
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()
|
D | ef100_nic.c | 673 MCDI_SET_DWORD(inbuf, TRIGGER_INTERRUPT_IN_INTR_LEVEL, efx->irq_level); in efx_ef100_irq_test_generate() 691 MCDI_SET_DWORD(inbuf, DRIVER_EVENT_IN_EVQ, channel->channel); in efx_ef100_ev_test_generate()
|
D | mcdi.h | 227 #define MCDI_SET_DWORD(_buf, _field, _value) \ macro
|
/drivers/net/ethernet/sfc/siena/ |
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()
|
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 …]
|
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 …]
|
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 …]
|
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()
|
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()
|
D | mcdi.h | 217 #define MCDI_SET_DWORD(_buf, _field, _value) \ macro
|