• Home
  • Raw
  • Download

Lines Matching refs:cmd

47 #define DPNI_CMD_OPEN(cmd, dpni_id) \  argument
48 MC_CMD_OP(cmd, 0, 0, 32, int, dpni_id)
75 #define DPNI_CMD_CREATE(cmd, cfg) \ argument
77 MC_CMD_OP(cmd, 0, 0, 32, uint32_t, cfg->adv.options); \
78 MC_CMD_OP(cmd, 0, 32, 8, uint8_t, cfg->adv.num_queues); \
79 MC_CMD_OP(cmd, 0, 40, 8, uint8_t, cfg->adv.num_tcs); \
80 MC_CMD_OP(cmd, 0, 48, 8, uint8_t, cfg->adv.mac_entries); \
81 MC_CMD_OP(cmd, 1, 0, 8, uint8_t, cfg->adv.vlan_entries); \
82 MC_CMD_OP(cmd, 1, 16, 8, uint8_t, cfg->adv.qos_entries); \
83 MC_CMD_OP(cmd, 1, 32, 16, uint8_t, cfg->adv.fs_entries); \
87 #define DPNI_CMD_SET_POOLS(cmd, cfg) \ argument
89 MC_CMD_OP(cmd, 0, 0, 8, uint8_t, cfg->num_dpbp); \
90 MC_CMD_OP(cmd, 0, 8, 1, int, cfg->pools[0].backup_pool); \
91 MC_CMD_OP(cmd, 0, 9, 1, int, cfg->pools[1].backup_pool); \
92 MC_CMD_OP(cmd, 0, 10, 1, int, cfg->pools[2].backup_pool); \
93 MC_CMD_OP(cmd, 0, 11, 1, int, cfg->pools[3].backup_pool); \
94 MC_CMD_OP(cmd, 0, 12, 1, int, cfg->pools[4].backup_pool); \
95 MC_CMD_OP(cmd, 0, 13, 1, int, cfg->pools[5].backup_pool); \
96 MC_CMD_OP(cmd, 0, 14, 1, int, cfg->pools[6].backup_pool); \
97 MC_CMD_OP(cmd, 0, 15, 1, int, cfg->pools[7].backup_pool); \
98 MC_CMD_OP(cmd, 0, 32, 32, int, cfg->pools[0].dpbp_id); \
99 MC_CMD_OP(cmd, 4, 32, 16, uint16_t, cfg->pools[0].buffer_size);\
100 MC_CMD_OP(cmd, 1, 0, 32, int, cfg->pools[1].dpbp_id); \
101 MC_CMD_OP(cmd, 4, 48, 16, uint16_t, cfg->pools[1].buffer_size);\
102 MC_CMD_OP(cmd, 1, 32, 32, int, cfg->pools[2].dpbp_id); \
103 MC_CMD_OP(cmd, 5, 0, 16, uint16_t, cfg->pools[2].buffer_size);\
104 MC_CMD_OP(cmd, 2, 0, 32, int, cfg->pools[3].dpbp_id); \
105 MC_CMD_OP(cmd, 5, 16, 16, uint16_t, cfg->pools[3].buffer_size);\
106 MC_CMD_OP(cmd, 2, 32, 32, int, cfg->pools[4].dpbp_id); \
107 MC_CMD_OP(cmd, 5, 32, 16, uint16_t, cfg->pools[4].buffer_size);\
108 MC_CMD_OP(cmd, 3, 0, 32, int, cfg->pools[5].dpbp_id); \
109 MC_CMD_OP(cmd, 5, 48, 16, uint16_t, cfg->pools[5].buffer_size);\
110 MC_CMD_OP(cmd, 3, 32, 32, int, cfg->pools[6].dpbp_id); \
111 MC_CMD_OP(cmd, 6, 0, 16, uint16_t, cfg->pools[6].buffer_size);\
112 MC_CMD_OP(cmd, 4, 0, 32, int, cfg->pools[7].dpbp_id); \
113 MC_CMD_OP(cmd, 6, 16, 16, uint16_t, cfg->pools[7].buffer_size);\
117 #define DPNI_RSP_GET_ATTR(cmd, attr) \ argument
119 MC_RSP_OP(cmd, 0, 0, 32, int, attr->options);\
120 MC_RSP_OP(cmd, 0, 32, 8, uint8_t, attr->max_num_queues); \
121 MC_RSP_OP(cmd, 0, 40, 8, uint8_t, attr->max_num_tcs); \
122 MC_RSP_OP(cmd, 0, 48, 8, uint8_t, attr->max_mac_entries); \
123 MC_RSP_OP(cmd, 1, 0, 8, uint8_t, attr->max_vlan_entries); \
124 MC_RSP_OP(cmd, 1, 16, 8, uint8_t, attr->max_qos_entries); \
125 MC_RSP_OP(cmd, 1, 32, 16, uint16_t, attr->max_fs_entries); \
126 MC_RSP_OP(cmd, 2, 0, 8, uint8_t, attr->max_qos_key_size); \
127 MC_RSP_OP(cmd, 2, 8, 8, uint8_t, attr->max_fs_key_size); \
128 MC_RSP_OP(cmd, 2, 16, 16, uint16_t, attr->wriop_version); \
132 #define DPNI_CMD_SET_ERRORS_BEHAVIOR(cmd, cfg) \ argument
134 MC_CMD_OP(cmd, 0, 0, 32, uint32_t, cfg->errors); \
135 MC_CMD_OP(cmd, 0, 32, 4, enum dpni_error_action, cfg->error_action); \
136 MC_CMD_OP(cmd, 0, 36, 1, int, cfg->set_frame_annotation); \
140 #define DPNI_CMD_SET_BUFFER_LAYOUT(cmd, layout, queue) \ argument
142 MC_CMD_OP(cmd, 0, 0, 8, enum dpni_queue_type, queue); \
143 MC_CMD_OP(cmd, 1, 0, 16, uint16_t, layout->private_data_size); \
144 MC_CMD_OP(cmd, 1, 16, 16, uint16_t, layout->data_align); \
145 MC_CMD_OP(cmd, 0, 32, 16, uint16_t, layout->options); \
146 MC_CMD_OP(cmd, 0, 48, 1, int, layout->pass_timestamp); \
147 MC_CMD_OP(cmd, 0, 49, 1, int, layout->pass_parser_result); \
148 MC_CMD_OP(cmd, 0, 50, 1, int, layout->pass_frame_status); \
149 MC_CMD_OP(cmd, 1, 32, 16, uint16_t, layout->data_head_room); \
150 MC_CMD_OP(cmd, 1, 48, 16, uint16_t, layout->data_tail_room); \
154 #define DPNI_RSP_GET_QDID(cmd, qdid) \ argument
155 MC_RSP_OP(cmd, 0, 0, 16, uint16_t, qdid)
158 #define DPNI_RSP_GET_TX_DATA_OFFSET(cmd, data_offset) \ argument
159 MC_RSP_OP(cmd, 0, 0, 16, uint16_t, data_offset)
162 #define DPNI_CMD_SET_LINK_CFG(cmd, cfg) \ argument
164 MC_CMD_OP(cmd, 1, 0, 32, uint32_t, cfg->rate);\
165 MC_CMD_OP(cmd, 2, 0, 64, uint64_t, cfg->options);\
169 #define DPNI_RSP_GET_LINK_STATE(cmd, state) \ argument
171 MC_RSP_OP(cmd, 0, 32, 1, int, state->up);\
172 MC_RSP_OP(cmd, 1, 0, 32, uint32_t, state->rate);\
173 MC_RSP_OP(cmd, 2, 0, 64, uint64_t, state->options);\
179 #define DPNI_CMD_SET_PRIMARY_MAC_ADDR(cmd, mac_addr) \ argument
181 MC_CMD_OP(cmd, 0, 16, 8, uint8_t, mac_addr[5]); \
182 MC_CMD_OP(cmd, 0, 24, 8, uint8_t, mac_addr[4]); \
183 MC_CMD_OP(cmd, 0, 32, 8, uint8_t, mac_addr[3]); \
184 MC_CMD_OP(cmd, 0, 40, 8, uint8_t, mac_addr[2]); \
185 MC_CMD_OP(cmd, 0, 48, 8, uint8_t, mac_addr[1]); \
186 MC_CMD_OP(cmd, 0, 56, 8, uint8_t, mac_addr[0]); \
190 #define DPNI_RSP_GET_PRIMARY_MAC_ADDR(cmd, mac_addr) \ argument
192 MC_RSP_OP(cmd, 0, 16, 8, uint8_t, mac_addr[5]); \
193 MC_RSP_OP(cmd, 0, 24, 8, uint8_t, mac_addr[4]); \
194 MC_RSP_OP(cmd, 0, 32, 8, uint8_t, mac_addr[3]); \
195 MC_RSP_OP(cmd, 0, 40, 8, uint8_t, mac_addr[2]); \
196 MC_RSP_OP(cmd, 0, 48, 8, uint8_t, mac_addr[1]); \
197 MC_RSP_OP(cmd, 0, 56, 8, uint8_t, mac_addr[0]); \
201 #define DPNI_CMD_ADD_MAC_ADDR(cmd, mac_addr) \ argument
203 MC_CMD_OP(cmd, 0, 16, 8, uint8_t, mac_addr[5]); \
204 MC_CMD_OP(cmd, 0, 24, 8, uint8_t, mac_addr[4]); \
205 MC_CMD_OP(cmd, 0, 32, 8, uint8_t, mac_addr[3]); \
206 MC_CMD_OP(cmd, 0, 40, 8, uint8_t, mac_addr[2]); \
207 MC_CMD_OP(cmd, 0, 48, 8, uint8_t, mac_addr[1]); \
208 MC_CMD_OP(cmd, 0, 56, 8, uint8_t, mac_addr[0]); \
212 #define DPNI_CMD_REMOVE_MAC_ADDR(cmd, mac_addr) \ argument
214 MC_CMD_OP(cmd, 0, 16, 8, uint8_t, mac_addr[5]); \
215 MC_CMD_OP(cmd, 0, 24, 8, uint8_t, mac_addr[4]); \
216 MC_CMD_OP(cmd, 0, 32, 8, uint8_t, mac_addr[3]); \
217 MC_CMD_OP(cmd, 0, 40, 8, uint8_t, mac_addr[2]); \
218 MC_CMD_OP(cmd, 0, 48, 8, uint8_t, mac_addr[1]); \
219 MC_CMD_OP(cmd, 0, 56, 8, uint8_t, mac_addr[0]); \
222 #define DPNI_CMD_GET_QUEUE(cmd, type, tc, index) \ argument
224 MC_CMD_OP(cmd, 0, 0, 8, enum dpni_queue_type, type); \
225 MC_CMD_OP(cmd, 0, 8, 8, uint8_t, tc); \
226 MC_CMD_OP(cmd, 0, 16, 8, uint8_t, index); \
229 #define DPNI_RSP_GET_QUEUE(cmd, queue) \ argument
231 MC_RSP_OP(cmd, 1, 0, 32, uint32_t, (queue)->destination.id); \
232 MC_RSP_OP(cmd, 1, 56, 4, enum dpni_dest, (queue)->destination.type); \
233 MC_RSP_OP(cmd, 1, 62, 1, char, (queue)->destination.stash_ctrl); \
234 MC_RSP_OP(cmd, 1, 63, 1, char, (queue)->destination.hold_active); \
235 MC_RSP_OP(cmd, 2, 0, 64, uint64_t, (queue)->flc); \
236 MC_RSP_OP(cmd, 3, 0, 64, uint64_t, (queue)->user_context); \
237 MC_RSP_OP(cmd, 4, 0, 32, uint32_t, (queue)->fqid); \
238 MC_RSP_OP(cmd, 4, 32, 16, uint16_t, (queue)->qdbin); \
241 #define DPNI_CMD_SET_QUEUE(cmd, type, tc, index, queue) \ argument
243 MC_CMD_OP(cmd, 0, 0, 8, enum dpni_queue_type, type); \
244 MC_CMD_OP(cmd, 0, 8, 8, uint8_t, tc); \
245 MC_CMD_OP(cmd, 0, 16, 8, uint8_t, index); \
246 MC_CMD_OP(cmd, 0, 24, 8, uint8_t, (queue)->options); \
247 MC_CMD_OP(cmd, 1, 0, 32, uint32_t, (queue)->destination.id); \
248 MC_CMD_OP(cmd, 1, 56, 4, enum dpni_dest, (queue)->destination.type); \
249 MC_CMD_OP(cmd, 1, 62, 1, char, (queue)->destination.stash_ctrl); \
250 MC_CMD_OP(cmd, 1, 63, 1, char, (queue)->destination.hold_active); \
251 MC_CMD_OP(cmd, 1, 0, 32, uint32_t, (queue)->destination.id); \
252 MC_CMD_OP(cmd, 2, 0, 64, uint64_t, (queue)->flc); \
253 MC_CMD_OP(cmd, 3, 0, 64, uint64_t, (queue)->user_context); \
257 #define DPNI_CMD_GET_STATISTICS(cmd, page) \ argument
258 MC_CMD_OP(cmd, 0, 0, 8, uint8_t, page)
261 #define DPNI_RSP_GET_STATISTICS(cmd, stat) \ argument
263 MC_RSP_OP(cmd, 0, 0, 64, uint64_t, (stat)->counter0); \
264 MC_RSP_OP(cmd, 1, 0, 64, uint64_t, (stat)->counter1); \
265 MC_RSP_OP(cmd, 2, 0, 64, uint64_t, (stat)->counter2); \
266 MC_RSP_OP(cmd, 3, 0, 64, uint64_t, (stat)->counter3); \
267 MC_RSP_OP(cmd, 4, 0, 64, uint64_t, (stat)->counter4); \
268 MC_RSP_OP(cmd, 5, 0, 64, uint64_t, (stat)->counter5); \
269 MC_RSP_OP(cmd, 6, 0, 64, uint64_t, (stat)->counter6); \