Lines Matching refs:cmd
217 struct prestera_msg_cmd cmd; member
222 struct prestera_msg_cmd cmd; member
230 struct prestera_msg_cmd cmd; member
339 struct prestera_msg_cmd cmd; member
357 struct prestera_msg_cmd cmd; member
370 struct prestera_msg_cmd cmd; member
379 struct prestera_msg_cmd cmd; member
396 struct prestera_msg_cmd cmd; member
410 struct prestera_msg_cmd cmd; member
418 struct prestera_msg_cmd cmd; member
423 struct prestera_msg_cmd cmd; member
432 struct prestera_msg_cmd cmd; member
438 struct prestera_msg_cmd cmd; member
475 struct prestera_msg_cmd cmd; member
496 struct prestera_msg_cmd cmd; member
510 struct prestera_msg_cmd cmd; member
519 struct prestera_msg_cmd cmd; member
561 struct prestera_msg_cmd cmd; member
577 struct prestera_msg_cmd cmd; member
586 struct prestera_msg_cmd cmd; member
593 struct prestera_msg_cmd cmd; member
603 struct prestera_msg_cmd cmd; member
614 struct prestera_msg_cmd cmd; member
626 struct prestera_msg_cmd cmd; member
634 struct prestera_msg_cmd cmd; member
646 struct prestera_msg_cmd cmd; member
692 struct prestera_msg_cmd cmd; member
701 struct prestera_msg_cmd cmd; member
706 struct prestera_msg_cmd cmd; member
712 struct prestera_msg_cmd cmd; member
729 struct prestera_msg_cmd cmd; member
736 struct prestera_msg_cmd cmd; member
813 struct prestera_msg_cmd *cmd, size_t clen, in __prestera_cmd_ret() argument
820 cmd->type = __cpu_to_le32(type); in __prestera_cmd_ret()
822 err = dev->send_req(dev, 0, cmd, clen, ret, rlen, waitms); in __prestera_cmd_ret()
826 if (ret->cmd.type != __cpu_to_le32(PRESTERA_CMD_TYPE_ACK)) in __prestera_cmd_ret()
836 struct prestera_msg_cmd *cmd, size_t clen, in prestera_cmd_ret() argument
839 return __prestera_cmd_ret(sw, type, cmd, clen, ret, rlen, 0); in prestera_cmd_ret()
844 struct prestera_msg_cmd *cmd, size_t clen, in prestera_cmd_ret_wait() argument
848 return __prestera_cmd_ret(sw, type, cmd, clen, ret, rlen, waitms); in prestera_cmd_ret_wait()
853 struct prestera_msg_cmd *cmd, size_t clen) in prestera_cmd() argument
857 return prestera_cmd_ret(sw, type, cmd, clen, &resp.ret, sizeof(resp)); in prestera_cmd()
1031 &req.cmd, sizeof(req), &resp.ret, sizeof(resp)); in prestera_hw_port_info_get()
1051 &req.cmd, sizeof(req)); in prestera_hw_switch_mac_set()
1065 &req.cmd, sizeof(req), in prestera_hw_switch_init()
1100 &req.cmd, sizeof(req)); in prestera_hw_switch_ageing_set()
1115 &req.cmd, sizeof(req), &resp.ret, sizeof(resp)); in prestera_hw_port_mac_mode_get()
1157 &req.cmd, sizeof(req)); in prestera_hw_port_mac_mode_set()
1173 &req.cmd, sizeof(req), &resp.ret, sizeof(resp)); in prestera_hw_port_phy_mode_get()
1213 &req.cmd, sizeof(req)); in prestera_hw_port_phy_mode_set()
1228 &req.cmd, sizeof(req)); in prestera_hw_port_mtu_set()
1242 &req.cmd, sizeof(req)); in prestera_hw_port_mac_set()
1258 &req.cmd, sizeof(req)); in prestera_hw_port_accept_frm_type()
1273 &req.cmd, sizeof(req), &resp.ret, sizeof(resp)); in prestera_hw_port_cap_get()
1323 &req.cmd, sizeof(req), &resp.ret, sizeof(resp)); in prestera_hw_vtcam_create()
1338 &req.cmd, sizeof(req)); in prestera_hw_vtcam_destroy()
1408 &req->cmd, size, &resp.ret, sizeof(resp)); in prestera_hw_vtcam_rule_add()
1427 &req.cmd, sizeof(req)); in prestera_hw_vtcam_rule_del()
1448 &req.cmd, sizeof(req)); in prestera_hw_vtcam_iface_bind()
1468 &req.cmd, sizeof(req)); in prestera_hw_vtcam_iface_unbind()
1481 &req.cmd, sizeof(req), &resp.ret, sizeof(resp)); in prestera_hw_span_get()
1505 return prestera_cmd(port->sw, cmd_type, &req.cmd, sizeof(req)); in prestera_hw_span_bind()
1522 return prestera_cmd(port->sw, cmd_type, &req.cmd, sizeof(req)); in prestera_hw_span_unbind()
1532 &req.cmd, sizeof(req)); in prestera_hw_span_release()
1546 &req.cmd, sizeof(req), &resp.ret, sizeof(resp)); in prestera_hw_port_type_get()
1566 &req.cmd, sizeof(req), &resp.ret, sizeof(resp)); in prestera_hw_port_speed_get()
1585 &req.cmd, sizeof(req)); in prestera_hw_port_autoneg_restart()
1601 &req.cmd, sizeof(req), &resp.ret, sizeof(resp)); in prestera_hw_port_stats_get()
1671 &req.cmd, sizeof(req)); in prestera_hw_port_learning_set()
1689 &req.cmd, sizeof(req)); in prestera_hw_port_uc_flood_set()
1707 &req.cmd, sizeof(req)); in prestera_hw_port_mc_flood_set()
1723 &req.cmd, sizeof(req)); in prestera_hw_port_br_locked_set()
1733 &req.cmd, sizeof(req)); in prestera_hw_vlan_create()
1743 &req.cmd, sizeof(req)); in prestera_hw_vlan_delete()
1758 &req.cmd, sizeof(req)); in prestera_hw_vlan_port_set()
1770 &req.cmd, sizeof(req)); in prestera_hw_vlan_port_vid_set()
1783 &req.cmd, sizeof(req)); in prestera_hw_vlan_port_stp_set()
1801 &req.cmd, sizeof(req)); in prestera_hw_fdb_add()
1818 &req.cmd, sizeof(req)); in prestera_hw_fdb_del()
1836 &req.cmd, sizeof(req)); in prestera_hw_lag_fdb_add()
1853 &req.cmd, sizeof(req)); in prestera_hw_lag_fdb_del()
1867 &req.cmd, sizeof(req)); in prestera_hw_fdb_flush_port()
1878 &req.cmd, sizeof(req)); in prestera_hw_fdb_flush_vlan()
1894 &req.cmd, sizeof(req)); in prestera_hw_fdb_flush_port_vlan()
1909 &req.cmd, sizeof(req)); in prestera_hw_fdb_flush_lag()
1925 &req.cmd, sizeof(req)); in prestera_hw_fdb_flush_lag_vlan()
1935 &req.cmd, sizeof(req), in prestera_hw_bridge_create()
1952 &req.cmd, sizeof(req)); in prestera_hw_bridge_delete()
1964 &req.cmd, sizeof(req)); in prestera_hw_bridge_port_add()
1976 &req.cmd, sizeof(req)); in prestera_hw_bridge_port_delete()
2015 &req.cmd, sizeof(req), &resp.ret, sizeof(resp)); in prestera_hw_rif_create()
2035 return prestera_cmd(sw, PRESTERA_CMD_TYPE_ROUTER_RIF_DELETE, &req.cmd, in prestera_hw_rif_delete()
2046 &req.cmd, sizeof(req), &resp.ret, sizeof(resp)); in prestera_hw_vr_create()
2060 return prestera_cmd(sw, PRESTERA_CMD_TYPE_ROUTER_VR_DELETE, &req.cmd, in prestera_hw_vr_delete()
2074 return prestera_cmd(sw, PRESTERA_CMD_TYPE_ROUTER_LPM_ADD, &req.cmd, in prestera_hw_lpm_add()
2087 return prestera_cmd(sw, PRESTERA_CMD_TYPE_ROUTER_LPM_DELETE, &req.cmd, in prestera_hw_lpm_del()
2106 return prestera_cmd(sw, PRESTERA_CMD_TYPE_ROUTER_NH_GRP_SET, &req.cmd, in prestera_hw_nh_entries_set()
2128 &req.cmd, sizeof(req), &resp.ret, in prestera_hw_nhgrp_blk_get()
2150 &req.cmd, sizeof(req), &resp.ret, sizeof(resp)); in prestera_hw_nh_group_create()
2167 &req.cmd, sizeof(req)); in prestera_hw_nh_group_delete()
2180 &req.cmd, sizeof(req), &resp.ret, sizeof(resp)); in prestera_hw_rxtx_init()
2198 &req.cmd, sizeof(req)); in prestera_hw_lag_member_add()
2210 &req.cmd, sizeof(req)); in prestera_hw_lag_member_del()
2221 u32 cmd; in prestera_hw_lag_member_enable() local
2223 cmd = enable ? PRESTERA_CMD_TYPE_LAG_MEMBER_ENABLE : in prestera_hw_lag_member_enable()
2226 return prestera_cmd(port->sw, cmd, &req.cmd, sizeof(req)); in prestera_hw_lag_member_enable()
2242 &req.cmd, sizeof(req), &resp.ret, sizeof(resp)); in prestera_hw_cpu_code_counters_get()
2298 &req.cmd, sizeof(req)); in prestera_hw_counter_trigger()
2306 &req.cmd, sizeof(req)); in prestera_hw_counter_abort()
2326 &req.cmd, sizeof(req), &resp->ret, size); in prestera_hw_counters_get()
2354 &req.cmd, sizeof(req), &resp.ret, sizeof(resp)); in prestera_hw_counter_block_get()
2373 &req.cmd, sizeof(req)); in prestera_hw_counter_block_release()
2385 &req.cmd, sizeof(req)); in prestera_hw_counter_clear()
2398 &req.cmd, sizeof(req), &resp.ret, sizeof(resp)); in prestera_hw_policer_create()
2414 &req.cmd, sizeof(req)); in prestera_hw_policer_release()
2430 &req.cmd, sizeof(req)); in prestera_hw_policer_sr_tcm_set()
2440 PRESTERA_CMD_TYPE_FLOOD_DOMAIN_CREATE, &req.cmd, in prestera_hw_flood_domain_create()
2457 &req.cmd, sizeof(req)); in prestera_hw_flood_domain_destroy()
2519 &req->cmd, buf_size); in prestera_hw_flood_domain_ports_set()
2533 PRESTERA_CMD_TYPE_FLOOD_DOMAIN_PORTS_RESET, &req.cmd, in prestera_hw_flood_domain_ports_reset()
2546 return prestera_cmd(mdb->sw, PRESTERA_CMD_TYPE_MDB_CREATE, &req.cmd, in prestera_hw_mdb_create()
2559 return prestera_cmd(mdb->sw, PRESTERA_CMD_TYPE_MDB_DESTROY, &req.cmd, in prestera_hw_mdb_destroy()