Lines Matching refs:cmd

212 	struct mcp_cmd_response *cmd;  member
378 myri10ge_send_cmd(struct myri10ge_priv *mgp, u32 cmd, in myri10ge_send_cmd() argument
383 struct mcp_cmd_response *response = mgp->cmd; in myri10ge_send_cmd()
394 buf->cmd = htonl(cmd); in myri10ge_send_cmd()
440 cmd == MXGEFW_CMD_ENABLE_RSS_QUEUES && in myri10ge_send_cmd()
448 cmd, result); in myri10ge_send_cmd()
454 cmd, result); in myri10ge_send_cmd()
516 mgp->cmd->data = 0; in myri10ge_dummy_rdma()
536 for (i = 0; mgp->cmd->data != MYRI10GE_NO_CONFIRM_DATA && i < 20; i++) in myri10ge_dummy_rdma()
538 if (mgp->cmd->data != MYRI10GE_NO_CONFIRM_DATA) in myri10ge_dummy_rdma()
686 struct myri10ge_cmd cmd; in myri10ge_get_firmware_capabilities() local
692 &cmd, 0); in myri10ge_get_firmware_capabilities()
694 mgp->max_tso6 = cmd.data0; in myri10ge_get_firmware_capabilities()
698 status = myri10ge_send_cmd(mgp, MXGEFW_CMD_GET_RX_RING_SIZE, &cmd, 0); in myri10ge_get_firmware_capabilities()
705 mgp->max_intr_slots = 2 * (cmd.data0 / sizeof(struct mcp_dma_addr)); in myri10ge_get_firmware_capabilities()
755 mgp->cmd->data = 0; in myri10ge_load_firmware()
785 while (mgp->cmd->data != MYRI10GE_NO_CONFIRM_DATA && i < 9) { in myri10ge_load_firmware()
789 if (mgp->cmd->data != MYRI10GE_NO_CONFIRM_DATA) { in myri10ge_load_firmware()
802 struct myri10ge_cmd cmd; in myri10ge_update_mac_address() local
805 cmd.data0 = ((addr[0] << 24) | (addr[1] << 16) in myri10ge_update_mac_address()
808 cmd.data1 = ((addr[4] << 8) | (addr[5])); in myri10ge_update_mac_address()
810 status = myri10ge_send_cmd(mgp, MXGEFW_SET_MAC_ADDRESS, &cmd, 0); in myri10ge_update_mac_address()
816 struct myri10ge_cmd cmd; in myri10ge_change_pause() local
820 status = myri10ge_send_cmd(mgp, ctl, &cmd, 0); in myri10ge_change_pause()
833 struct myri10ge_cmd cmd; in myri10ge_change_promisc() local
837 status = myri10ge_send_cmd(mgp, ctl, &cmd, atomic); in myri10ge_change_promisc()
844 struct myri10ge_cmd cmd; in myri10ge_dma_test() local
872 cmd.data0 = MYRI10GE_LOWPART_TO_U32(dmatest_bus); in myri10ge_dma_test()
873 cmd.data1 = MYRI10GE_HIGHPART_TO_U32(dmatest_bus); in myri10ge_dma_test()
874 cmd.data2 = len * 0x10000; in myri10ge_dma_test()
875 status = myri10ge_send_cmd(mgp, test_type, &cmd, 0); in myri10ge_dma_test()
880 mgp->read_dma = ((cmd.data0 >> 16) * len * 2) / (cmd.data0 & 0xffff); in myri10ge_dma_test()
881 cmd.data0 = MYRI10GE_LOWPART_TO_U32(dmatest_bus); in myri10ge_dma_test()
882 cmd.data1 = MYRI10GE_HIGHPART_TO_U32(dmatest_bus); in myri10ge_dma_test()
883 cmd.data2 = len * 0x1; in myri10ge_dma_test()
884 status = myri10ge_send_cmd(mgp, test_type, &cmd, 0); in myri10ge_dma_test()
889 mgp->write_dma = ((cmd.data0 >> 16) * len * 2) / (cmd.data0 & 0xffff); in myri10ge_dma_test()
891 cmd.data0 = MYRI10GE_LOWPART_TO_U32(dmatest_bus); in myri10ge_dma_test()
892 cmd.data1 = MYRI10GE_HIGHPART_TO_U32(dmatest_bus); in myri10ge_dma_test()
893 cmd.data2 = len * 0x10001; in myri10ge_dma_test()
894 status = myri10ge_send_cmd(mgp, test_type, &cmd, 0); in myri10ge_dma_test()
899 mgp->read_write_dma = ((cmd.data0 >> 16) * len * 2 * 2) / in myri10ge_dma_test()
900 (cmd.data0 & 0xffff); in myri10ge_dma_test()
916 struct myri10ge_cmd cmd; in myri10ge_reset() local
926 memset(&cmd, 0, sizeof(cmd)); in myri10ge_reset()
927 status = myri10ge_send_cmd(mgp, MXGEFW_CMD_RESET, &cmd, 0); in myri10ge_reset()
940 cmd.data0 = MXGEFW_RSS_MCP_SLOT_TYPE_MIN; in myri10ge_reset()
941 (void)myri10ge_send_cmd(mgp, MXGEFW_CMD_SET_RSS_MCP_SLOT_TYPE, &cmd, 0); in myri10ge_reset()
946 cmd.data0 = (u32) bytes; in myri10ge_reset()
947 status = myri10ge_send_cmd(mgp, MXGEFW_CMD_SET_INTRQ_SIZE, &cmd, 0); in myri10ge_reset()
964 &cmd, 0); in myri10ge_reset()
975 cmd.data0 = mgp->num_slices; in myri10ge_reset()
976 cmd.data1 = MXGEFW_SLICE_INTR_MODE_ONE_PER_SLICE; in myri10ge_reset()
978 cmd.data1 |= MXGEFW_SLICE_ENABLE_MULTIPLE_TX_QUEUES; in myri10ge_reset()
980 &cmd, 0); in myri10ge_reset()
987 cmd.data0 = mgp->num_slices; in myri10ge_reset()
988 cmd.data1 = MXGEFW_SLICE_INTR_MODE_ONE_PER_SLICE; in myri10ge_reset()
991 &cmd, 0); in myri10ge_reset()
1003 cmd.data0 = MYRI10GE_LOWPART_TO_U32(ss->rx_done.bus); in myri10ge_reset()
1004 cmd.data1 = MYRI10GE_HIGHPART_TO_U32(ss->rx_done.bus); in myri10ge_reset()
1005 cmd.data2 = i; in myri10ge_reset()
1007 &cmd, 0); in myri10ge_reset()
1011 myri10ge_send_cmd(mgp, MXGEFW_CMD_GET_IRQ_ACK_OFFSET, &cmd, 0); in myri10ge_reset()
1015 (__iomem __be32 *) (mgp->sram + cmd.data0 + 8 * i); in myri10ge_reset()
1018 &cmd, 0); in myri10ge_reset()
1019 mgp->irq_deassert = (__iomem __be32 *) (mgp->sram + cmd.data0); in myri10ge_reset()
1022 (mgp, MXGEFW_CMD_GET_INTR_COAL_DELAY_OFFSET, &cmd, 0); in myri10ge_reset()
1023 mgp->intr_coal_delay_ptr = (__iomem __be32 *) (mgp->sram + cmd.data0); in myri10ge_reset()
1031 status = myri10ge_send_cmd(mgp, MXGEFW_CMD_GET_DCA_OFFSET, &cmd, 0); in myri10ge_reset()
1032 dca_tag_off = cmd.data0; in myri10ge_reset()
1602 struct ethtool_link_ksettings *cmd) in myri10ge_get_link_ksettings() argument
1608 cmd->base.autoneg = AUTONEG_DISABLE; in myri10ge_get_link_ksettings()
1609 cmd->base.speed = SPEED_10000; in myri10ge_get_link_ksettings()
1610 cmd->base.duplex = DUPLEX_FULL; in myri10ge_get_link_ksettings()
1635 cmd->base.port = PORT_FIBRE; in myri10ge_get_link_ksettings()
1636 ethtool_link_ksettings_add_link_mode(cmd, supported, FIBRE); in myri10ge_get_link_ksettings()
1637 ethtool_link_ksettings_add_link_mode(cmd, advertising, FIBRE); in myri10ge_get_link_ksettings()
1639 cmd->base.port = PORT_OTHER; in myri10ge_get_link_ksettings()
1939 struct myri10ge_cmd cmd; in myri10ge_allocate_rings() local
1948 cmd.data0 = slice; in myri10ge_allocate_rings()
1949 status = myri10ge_send_cmd(mgp, MXGEFW_CMD_GET_SEND_RING_SIZE, &cmd, 0); in myri10ge_allocate_rings()
1950 tx_ring_size = cmd.data0; in myri10ge_allocate_rings()
1951 cmd.data0 = slice; in myri10ge_allocate_rings()
1952 status |= myri10ge_send_cmd(mgp, MXGEFW_CMD_GET_RX_RING_SIZE, &cmd, 0); in myri10ge_allocate_rings()
1955 rx_ring_size = cmd.data0; in myri10ge_allocate_rings()
2233 struct myri10ge_cmd cmd; in myri10ge_get_txrx() local
2240 cmd.data0 = slice; in myri10ge_get_txrx()
2242 &cmd, 0); in myri10ge_get_txrx()
2244 (mgp->sram + cmd.data0); in myri10ge_get_txrx()
2246 cmd.data0 = slice; in myri10ge_get_txrx()
2248 &cmd, 0); in myri10ge_get_txrx()
2250 (mgp->sram + cmd.data0); in myri10ge_get_txrx()
2252 cmd.data0 = slice; in myri10ge_get_txrx()
2253 status |= myri10ge_send_cmd(mgp, MXGEFW_CMD_GET_BIG_RX_OFFSET, &cmd, 0); in myri10ge_get_txrx()
2255 (mgp->sram + cmd.data0); in myri10ge_get_txrx()
2267 struct myri10ge_cmd cmd; in myri10ge_set_stats() local
2272 cmd.data0 = MYRI10GE_LOWPART_TO_U32(ss->fw_stats_bus); in myri10ge_set_stats()
2273 cmd.data1 = MYRI10GE_HIGHPART_TO_U32(ss->fw_stats_bus); in myri10ge_set_stats()
2274 cmd.data2 = sizeof(struct mcp_irq_data) | (slice << 16); in myri10ge_set_stats()
2275 status = myri10ge_send_cmd(mgp, MXGEFW_CMD_SET_STATS_DMA_V2, &cmd, 0); in myri10ge_set_stats()
2281 cmd.data0 = MYRI10GE_LOWPART_TO_U32(bus); in myri10ge_set_stats()
2282 cmd.data1 = MYRI10GE_HIGHPART_TO_U32(bus); in myri10ge_set_stats()
2285 &cmd, 0); in myri10ge_set_stats()
2298 struct myri10ge_cmd cmd; in myri10ge_open() local
2313 cmd.data0 = mgp->num_slices; in myri10ge_open()
2314 cmd.data1 = MXGEFW_SLICE_INTR_MODE_ONE_PER_SLICE; in myri10ge_open()
2316 cmd.data1 |= MXGEFW_SLICE_ENABLE_MULTIPLE_TX_QUEUES; in myri10ge_open()
2318 &cmd, 0); in myri10ge_open()
2324 cmd.data0 = mgp->num_slices; in myri10ge_open()
2326 &cmd, 0); in myri10ge_open()
2330 &cmd, 0); in myri10ge_open()
2337 itable = mgp->sram + cmd.data0; in myri10ge_open()
2341 cmd.data0 = 1; in myri10ge_open()
2342 cmd.data1 = myri10ge_rss_hash; in myri10ge_open()
2344 &cmd, 0); in myri10ge_open()
2416 cmd.data0 = dev->mtu + ETH_HLEN + VLAN_HLEN; in myri10ge_open()
2417 status = myri10ge_send_cmd(mgp, MXGEFW_CMD_SET_MTU, &cmd, 0); in myri10ge_open()
2418 cmd.data0 = mgp->small_bytes; in myri10ge_open()
2420 myri10ge_send_cmd(mgp, MXGEFW_CMD_SET_SMALL_BUFFER_SIZE, &cmd, 0); in myri10ge_open()
2421 cmd.data0 = big_pow2; in myri10ge_open()
2423 myri10ge_send_cmd(mgp, MXGEFW_CMD_SET_BIG_BUFFER_SIZE, &cmd, 0); in myri10ge_open()
2434 cmd.data0 = 0; in myri10ge_open()
2435 status = myri10ge_send_cmd(mgp, MXGEFW_CMD_SET_TSO_MODE, &cmd, 0); in myri10ge_open()
2444 status = myri10ge_send_cmd(mgp, MXGEFW_CMD_ETHERNET_UP, &cmd, 0); in myri10ge_open()
2475 struct myri10ge_cmd cmd; in myri10ge_close() local
2497 myri10ge_send_cmd(mgp, MXGEFW_CMD_ETHERNET_DOWN, &cmd, 0); in myri10ge_close()
2944 struct myri10ge_cmd cmd; in myri10ge_set_multicast_list() local
2959 err = myri10ge_send_cmd(mgp, MXGEFW_ENABLE_ALLMULTI, &cmd, 1); in myri10ge_set_multicast_list()
2974 &cmd, 1); in myri10ge_set_multicast_list()
2984 cmd.data0 = ntohl(data[0]); in myri10ge_set_multicast_list()
2985 cmd.data1 = ntohl(data[1]); in myri10ge_set_multicast_list()
2987 &cmd, 1); in myri10ge_set_multicast_list()
2996 err = myri10ge_send_cmd(mgp, MXGEFW_DISABLE_ALLMULTI, &cmd, 1); in myri10ge_set_multicast_list()
3391 u16 cmd, vendor; in myri10ge_watchdog() local
3394 pci_read_config_word(mgp->pdev, PCI_COMMAND, &cmd); in myri10ge_watchdog()
3396 if ((cmd & PCI_COMMAND_MASTER) == 0) { in myri10ge_watchdog()
3427 if (cmd == 0xffff) { in myri10ge_watchdog()
3479 u16 cmd; in myri10ge_watchdog_timer() local
3511 pci_read_config_word(mgp->pdev, PCI_COMMAND, &cmd); in myri10ge_watchdog_timer()
3512 if ((cmd & PCI_COMMAND_MASTER) == 0) { in myri10ge_watchdog_timer()
3606 struct myri10ge_cmd cmd; in myri10ge_probe_slices() local
3642 memset(&cmd, 0, sizeof(cmd)); in myri10ge_probe_slices()
3643 status = myri10ge_send_cmd(mgp, MXGEFW_CMD_RESET, &cmd, 0); in myri10ge_probe_slices()
3649 mgp->max_intr_slots = cmd.data0 / sizeof(struct mcp_slot); in myri10ge_probe_slices()
3652 cmd.data0 = mgp->max_intr_slots * sizeof(struct mcp_slot); in myri10ge_probe_slices()
3653 status = myri10ge_send_cmd(mgp, MXGEFW_CMD_SET_INTRQ_SIZE, &cmd, 0); in myri10ge_probe_slices()
3660 status = myri10ge_send_cmd(mgp, MXGEFW_CMD_GET_MAX_RSS_QUEUES, &cmd, 0); in myri10ge_probe_slices()
3664 mgp->num_slices = cmd.data0; in myri10ge_probe_slices()
3787 mgp->cmd = dma_alloc_coherent(&pdev->dev, sizeof(*mgp->cmd), in myri10ge_probe()
3789 if (!mgp->cmd) { in myri10ge_probe()
3928 dma_free_coherent(&pdev->dev, sizeof(*mgp->cmd), in myri10ge_probe()
3929 mgp->cmd, mgp->cmd_bus); in myri10ge_probe()
3972 dma_free_coherent(&pdev->dev, sizeof(*mgp->cmd), in myri10ge_remove()
3973 mgp->cmd, mgp->cmd_bus); in myri10ge_remove()