Lines Matching refs:cmd

36 	struct mc_command cmd = { 0 };  in dpni_open()  local
40 cmd.header = mc_encode_cmd_header(DPNI_CMDID_OPEN, in dpni_open()
43 DPNI_CMD_OPEN(cmd, dpni_id); in dpni_open()
46 err = mc_send_command(mc_io, &cmd); in dpni_open()
51 *token = MC_CMD_HDR_READ_TOKEN(cmd.header); in dpni_open()
60 struct mc_command cmd = { 0 }; in dpni_close() local
63 cmd.header = mc_encode_cmd_header(DPNI_CMDID_CLOSE, in dpni_close()
68 return mc_send_command(mc_io, &cmd); in dpni_close()
77 struct mc_command cmd = { 0 }; in dpni_create() local
81 cmd.header = mc_encode_cmd_header(DPNI_CMDID_CREATE, in dpni_create()
84 DPNI_CMD_CREATE(cmd, cfg); in dpni_create()
87 err = mc_send_command(mc_io, &cmd); in dpni_create()
92 MC_CMD_READ_OBJ_ID(cmd, *obj_id); in dpni_create()
102 struct mc_command cmd = { 0 }; in dpni_destroy() local
105 cmd.header = mc_encode_cmd_header(DPNI_CMDID_DESTROY, in dpni_destroy()
110 CMD_DESTROY_SET_OBJ_ID_PARAM0(cmd, obj_id); in dpni_destroy()
113 return mc_send_command(mc_io, &cmd); in dpni_destroy()
121 struct mc_command cmd = { 0 }; in dpni_set_pools() local
124 cmd.header = mc_encode_cmd_header(DPNI_CMDID_SET_POOLS, in dpni_set_pools()
127 DPNI_CMD_SET_POOLS(cmd, cfg); in dpni_set_pools()
130 return mc_send_command(mc_io, &cmd); in dpni_set_pools()
137 struct mc_command cmd = { 0 }; in dpni_enable() local
140 cmd.header = mc_encode_cmd_header(DPNI_CMDID_ENABLE, in dpni_enable()
145 return mc_send_command(mc_io, &cmd); in dpni_enable()
152 struct mc_command cmd = { 0 }; in dpni_disable() local
155 cmd.header = mc_encode_cmd_header(DPNI_CMDID_DISABLE, in dpni_disable()
160 return mc_send_command(mc_io, &cmd); in dpni_disable()
167 struct mc_command cmd = { 0 }; in dpni_reset() local
170 cmd.header = mc_encode_cmd_header(DPNI_CMDID_RESET, in dpni_reset()
175 return mc_send_command(mc_io, &cmd); in dpni_reset()
183 struct mc_command cmd = { 0 }; in dpni_get_attributes() local
187 cmd.header = mc_encode_cmd_header(DPNI_CMDID_GET_ATTR, in dpni_get_attributes()
191 err = mc_send_command(mc_io, &cmd); in dpni_get_attributes()
196 DPNI_RSP_GET_ATTR(cmd, attr); in dpni_get_attributes()
206 struct mc_command cmd = { 0 }; in dpni_set_errors_behavior() local
209 cmd.header = mc_encode_cmd_header(DPNI_CMDID_SET_ERRORS_BEHAVIOR, in dpni_set_errors_behavior()
212 DPNI_CMD_SET_ERRORS_BEHAVIOR(cmd, cfg); in dpni_set_errors_behavior()
215 return mc_send_command(mc_io, &cmd); in dpni_set_errors_behavior()
224 struct mc_command cmd = { 0 }; in dpni_set_buffer_layout() local
227 cmd.header = mc_encode_cmd_header(DPNI_CMDID_SET_BUFFER_LAYOUT, in dpni_set_buffer_layout()
230 DPNI_CMD_SET_BUFFER_LAYOUT(cmd, layout, type); in dpni_set_buffer_layout()
233 return mc_send_command(mc_io, &cmd); in dpni_set_buffer_layout()
241 struct mc_command cmd = { 0 }; in dpni_get_qdid() local
245 cmd.header = mc_encode_cmd_header(DPNI_CMDID_GET_QDID, in dpni_get_qdid()
250 err = mc_send_command(mc_io, &cmd); in dpni_get_qdid()
255 DPNI_RSP_GET_QDID(cmd, *qdid); in dpni_get_qdid()
265 struct mc_command cmd = { 0 }; in dpni_get_tx_data_offset() local
269 cmd.header = mc_encode_cmd_header(DPNI_CMDID_GET_TX_DATA_OFFSET, in dpni_get_tx_data_offset()
274 err = mc_send_command(mc_io, &cmd); in dpni_get_tx_data_offset()
279 DPNI_RSP_GET_TX_DATA_OFFSET(cmd, *data_offset); in dpni_get_tx_data_offset()
289 struct mc_command cmd = { 0 }; in dpni_set_link_cfg() local
292 cmd.header = mc_encode_cmd_header(DPNI_CMDID_SET_LINK_CFG, in dpni_set_link_cfg()
295 DPNI_CMD_SET_LINK_CFG(cmd, cfg); in dpni_set_link_cfg()
298 return mc_send_command(mc_io, &cmd); in dpni_set_link_cfg()
306 struct mc_command cmd = { 0 }; in dpni_get_link_state() local
310 cmd.header = mc_encode_cmd_header(DPNI_CMDID_GET_LINK_STATE, in dpni_get_link_state()
315 err = mc_send_command(mc_io, &cmd); in dpni_get_link_state()
320 DPNI_RSP_GET_LINK_STATE(cmd, state); in dpni_get_link_state()
331 struct mc_command cmd = { 0 }; in dpni_set_primary_mac_addr() local
334 cmd.header = mc_encode_cmd_header(DPNI_CMDID_SET_PRIM_MAC, in dpni_set_primary_mac_addr()
337 DPNI_CMD_SET_PRIMARY_MAC_ADDR(cmd, mac_addr); in dpni_set_primary_mac_addr()
340 return mc_send_command(mc_io, &cmd); in dpni_set_primary_mac_addr()
348 struct mc_command cmd = { 0 }; in dpni_get_primary_mac_addr() local
352 cmd.header = mc_encode_cmd_header(DPNI_CMDID_GET_PRIM_MAC, in dpni_get_primary_mac_addr()
357 err = mc_send_command(mc_io, &cmd); in dpni_get_primary_mac_addr()
362 DPNI_RSP_GET_PRIMARY_MAC_ADDR(cmd, mac_addr); in dpni_get_primary_mac_addr()
372 struct mc_command cmd = { 0 }; in dpni_add_mac_addr() local
375 cmd.header = mc_encode_cmd_header(DPNI_CMDID_ADD_MAC_ADDR, in dpni_add_mac_addr()
378 DPNI_CMD_ADD_MAC_ADDR(cmd, mac_addr); in dpni_add_mac_addr()
381 return mc_send_command(mc_io, &cmd); in dpni_add_mac_addr()
389 struct mc_command cmd = { 0 }; in dpni_remove_mac_addr() local
392 cmd.header = mc_encode_cmd_header(DPNI_CMDID_REMOVE_MAC_ADDR, in dpni_remove_mac_addr()
395 DPNI_CMD_REMOVE_MAC_ADDR(cmd, mac_addr); in dpni_remove_mac_addr()
398 return mc_send_command(mc_io, &cmd); in dpni_remove_mac_addr()
406 struct mc_command cmd = { 0 }; in dpni_get_api_version() local
410 cmd.header = mc_encode_cmd_header(DPNI_CMDID_GET_API_VERSION, in dpni_get_api_version()
414 err = mc_send_command(mc_io, &cmd); in dpni_get_api_version()
419 mc_cmd_read_api_version(&cmd, major_ver, minor_ver); in dpni_get_api_version()
432 struct mc_command cmd = { 0 }; in dpni_set_queue() local
434 cmd.header = mc_encode_cmd_header(DPNI_CMDID_SET_QUEUE, in dpni_set_queue()
437 DPNI_CMD_SET_QUEUE(cmd, type, tc, index, queue); in dpni_set_queue()
440 return mc_send_command(mc_io, &cmd); in dpni_set_queue()
451 struct mc_command cmd = { 0 }; in dpni_get_queue() local
455 cmd.header = mc_encode_cmd_header(DPNI_CMDID_GET_QUEUE, in dpni_get_queue()
458 DPNI_CMD_GET_QUEUE(cmd, type, tc, index); in dpni_get_queue()
461 err = mc_send_command(mc_io, &cmd); in dpni_get_queue()
466 DPNI_RSP_GET_QUEUE(cmd, queue); in dpni_get_queue()
476 struct mc_command cmd = { 0 }; in dpni_set_tx_confirmation_mode() local
479 cmd.header = mc_encode_cmd_header(DPNI_CMDID_SET_TX_CONFIRMATION_MODE, in dpni_set_tx_confirmation_mode()
483 cmd_params = (struct dpni_tx_confirmation_mode *)cmd.params; in dpni_set_tx_confirmation_mode()
487 return mc_send_command(mc_io, &cmd); in dpni_set_tx_confirmation_mode()
496 struct mc_command cmd = { 0 }; in dpni_get_statistics() local
500 cmd.header = mc_encode_cmd_header(DPNI_CMDID_GET_STATISTICS, in dpni_get_statistics()
502 DPNI_CMD_GET_STATISTICS(cmd, page); in dpni_get_statistics()
505 err = mc_send_command(mc_io, &cmd); in dpni_get_statistics()
510 DPNI_RSP_GET_STATISTICS(cmd, stat); in dpni_get_statistics()
519 struct mc_command cmd = { 0 }; in dpni_reset_statistics() local
522 cmd.header = mc_encode_cmd_header(DPNI_CMDID_RESET_STATISTICS, in dpni_reset_statistics()
526 return mc_send_command(mc_io, &cmd); in dpni_reset_statistics()