Lines Matching refs:cmd
34 #define DPMAC_CMD_CREATE(cmd, cfg) \ argument
35 MC_CMD_OP(cmd, 0, 0, 16, uint16_t, cfg->mac_id)
38 #define DPMAC_CMD_OPEN(cmd, dpmac_id) \ argument
39 MC_CMD_OP(cmd, 0, 0, 32, int, dpmac_id)
42 #define DPMAC_RSP_GET_ATTRIBUTES(cmd, attr) \ argument
44 MC_RSP_OP(cmd, 0, 0, 32, int, attr->phy_id);\
45 MC_RSP_OP(cmd, 0, 32, 32, int, attr->id);\
46 MC_RSP_OP(cmd, 1, 32, 8, enum dpmac_link_type, attr->link_type);\
47 MC_RSP_OP(cmd, 1, 40, 8, enum dpmac_eth_if, attr->eth_if);\
48 MC_RSP_OP(cmd, 2, 0, 32, uint32_t, attr->max_rate);\
52 #define DPMAC_CMD_MDIO_READ(cmd, cfg) \ argument
54 MC_CMD_OP(cmd, 0, 0, 8, uint8_t, cfg->phy_addr); \
55 MC_CMD_OP(cmd, 0, 8, 8, uint8_t, cfg->reg); \
59 #define DPMAC_RSP_MDIO_READ(cmd, data) \ argument
60 MC_RSP_OP(cmd, 0, 16, 16, uint16_t, data)
63 #define DPMAC_CMD_MDIO_WRITE(cmd, cfg) \ argument
65 MC_CMD_OP(cmd, 0, 0, 8, uint8_t, cfg->phy_addr); \
66 MC_CMD_OP(cmd, 0, 8, 8, uint8_t, cfg->reg); \
67 MC_CMD_OP(cmd, 0, 16, 16, uint16_t, cfg->data); \
71 #define DPMAC_RSP_GET_LINK_CFG(cmd, cfg) \ argument
73 MC_RSP_OP(cmd, 0, 0, 64, uint64_t, cfg->options); \
74 MC_RSP_OP(cmd, 1, 0, 32, uint32_t, cfg->rate); \
78 #define DPMAC_CMD_SET_LINK_STATE(cmd, cfg) \ argument
80 MC_CMD_OP(cmd, 0, 0, 64, uint64_t, cfg->options); \
81 MC_CMD_OP(cmd, 1, 0, 32, uint32_t, cfg->rate); \
82 MC_CMD_OP(cmd, 2, 0, 1, int, cfg->up); \
86 #define DPMAC_CMD_GET_COUNTER(cmd, type) \ argument
87 MC_CMD_OP(cmd, 1, 0, 64, enum dpmac_counter, type)
90 #define DPMAC_RSP_GET_COUNTER(cmd, counter) \ argument
91 MC_RSP_OP(cmd, 1, 0, 64, uint64_t, counter)