Lines Matching refs:resp
855 struct prestera_msg_common_resp resp; in prestera_cmd() local
857 return prestera_cmd_ret(sw, type, cmd, clen, &resp.ret, sizeof(resp)); in prestera_cmd()
1027 struct prestera_msg_port_info_resp resp; in prestera_hw_port_info_get() local
1031 &req.cmd, sizeof(req), &resp.ret, sizeof(resp)); in prestera_hw_port_info_get()
1035 *dev_id = __le32_to_cpu(resp.dev_id); in prestera_hw_port_info_get()
1036 *hw_id = __le32_to_cpu(resp.hw_id); in prestera_hw_port_info_get()
1037 *fp_id = __le16_to_cpu(resp.fp_id); in prestera_hw_port_info_get()
1056 struct prestera_msg_switch_init_resp resp; in prestera_hw_switch_init() local
1066 &resp.ret, sizeof(resp), in prestera_hw_switch_init()
1073 sw->port_count = __le32_to_cpu(resp.port_count); in prestera_hw_switch_init()
1075 sw->mtu_max = __le32_to_cpu(resp.mtu_max); in prestera_hw_switch_init()
1076 sw->id = resp.switch_id; in prestera_hw_switch_init()
1077 sw->lag_member_max = resp.lag_member_max; in prestera_hw_switch_init()
1078 sw->lag_max = resp.lag_max; in prestera_hw_switch_init()
1080 __le32_to_cpu(resp.size_tbl_router_nexthop); in prestera_hw_switch_init()
1106 struct prestera_msg_port_attr_resp resp; in prestera_hw_port_mac_mode_get() local
1115 &req.cmd, sizeof(req), &resp.ret, sizeof(resp)); in prestera_hw_port_mac_mode_get()
1120 *mode = __le32_to_cpu(resp.param.link_evt.mac.mode); in prestera_hw_port_mac_mode_get()
1123 *speed = __le32_to_cpu(resp.param.link_evt.mac.speed); in prestera_hw_port_mac_mode_get()
1126 *duplex = resp.param.link_evt.mac.duplex; in prestera_hw_port_mac_mode_get()
1129 *fec = resp.param.link_evt.mac.fec; in prestera_hw_port_mac_mode_get()
1164 struct prestera_msg_port_attr_resp resp; in prestera_hw_port_phy_mode_get() local
1173 &req.cmd, sizeof(req), &resp.ret, sizeof(resp)); in prestera_hw_port_phy_mode_get()
1178 *mdix = prestera_hw_mdix_to_eth(resp.param.link_evt.phy.mdix); in prestera_hw_port_phy_mode_get()
1181 *lmode_bmap = __le64_to_cpu(resp.param.link_evt.phy.lmode_bmap); in prestera_hw_port_phy_mode_get()
1184 prestera_hw_remote_fc_to_eth(resp.param.link_evt.phy.fc, in prestera_hw_port_phy_mode_get()
1269 struct prestera_msg_port_attr_resp resp; in prestera_hw_port_cap_get() local
1273 &req.cmd, sizeof(req), &resp.ret, sizeof(resp)); in prestera_hw_port_cap_get()
1277 caps->supp_link_modes = __le64_to_cpu(resp.param.cap.link_mode); in prestera_hw_port_cap_get()
1278 caps->transceiver = resp.param.cap.transceiver; in prestera_hw_port_cap_get()
1279 caps->supp_fec = resp.param.cap.fec; in prestera_hw_port_cap_get()
1280 caps->type = resp.param.cap.type; in prestera_hw_port_cap_get()
1311 struct prestera_msg_vtcam_resp resp; in prestera_hw_vtcam_create() local
1323 &req.cmd, sizeof(req), &resp.ret, sizeof(resp)); in prestera_hw_vtcam_create()
1327 *vtcam_id = __le32_to_cpu(resp.vtcam_id); in prestera_hw_vtcam_create()
1376 struct prestera_msg_vtcam_resp resp; in prestera_hw_vtcam_rule_add() local
1408 &req->cmd, size, &resp.ret, sizeof(resp)); in prestera_hw_vtcam_rule_add()
1412 *rule_id = __le32_to_cpu(resp.rule_id); in prestera_hw_vtcam_rule_add()
1473 struct prestera_msg_span_resp resp; in prestera_hw_span_get() local
1481 &req.cmd, sizeof(req), &resp.ret, sizeof(resp)); in prestera_hw_span_get()
1485 *span_id = resp.id; in prestera_hw_span_get()
1542 struct prestera_msg_port_attr_resp resp; in prestera_hw_port_type_get() local
1546 &req.cmd, sizeof(req), &resp.ret, sizeof(resp)); in prestera_hw_port_type_get()
1550 *type = resp.param.type; in prestera_hw_port_type_get()
1562 struct prestera_msg_port_attr_resp resp; in prestera_hw_port_speed_get() local
1566 &req.cmd, sizeof(req), &resp.ret, sizeof(resp)); in prestera_hw_port_speed_get()
1570 *speed = __le32_to_cpu(resp.param.speed); in prestera_hw_port_speed_get()
1596 struct prestera_msg_port_stats_resp resp; in prestera_hw_port_stats_get() local
1597 __le64 *hw = resp.stats; in prestera_hw_port_stats_get()
1601 &req.cmd, sizeof(req), &resp.ret, sizeof(resp)); in prestera_hw_port_stats_get()
1930 struct prestera_msg_bridge_resp resp; in prestera_hw_bridge_create() local
1936 &resp.ret, sizeof(resp)); in prestera_hw_bridge_create()
1940 *bridge_id = __le16_to_cpu(resp.bridge); in prestera_hw_bridge_create()
2004 struct prestera_msg_rif_resp resp; in prestera_hw_rif_create() local
2015 &req.cmd, sizeof(req), &resp.ret, sizeof(resp)); in prestera_hw_rif_create()
2019 *rif_id = __le16_to_cpu(resp.rif_id); in prestera_hw_rif_create()
2041 struct prestera_msg_vr_resp resp; in prestera_hw_vr_create() local
2046 &req.cmd, sizeof(req), &resp.ret, sizeof(resp)); in prestera_hw_vr_create()
2050 *vr_id = __le16_to_cpu(resp.vr_id); in prestera_hw_vr_create()
2113 static struct prestera_msg_nh_chunk_resp resp; in prestera_hw_nhgrp_blk_get() local
2128 &req.cmd, sizeof(req), &resp.ret, in prestera_hw_nhgrp_blk_get()
2129 sizeof(resp)); in prestera_hw_nhgrp_blk_get()
2133 memcpy(&hw_state[buf_offset], &resp.hw_state[0], in prestera_hw_nhgrp_blk_get()
2146 struct prestera_msg_nh_grp_resp resp; in prestera_hw_nh_group_create() local
2150 &req.cmd, sizeof(req), &resp.ret, sizeof(resp)); in prestera_hw_nh_group_create()
2154 *grp_id = __le32_to_cpu(resp.grp_id); in prestera_hw_nh_group_create()
2173 struct prestera_msg_rxtx_resp resp; in prestera_hw_rxtx_init() local
2180 &req.cmd, sizeof(req), &resp.ret, sizeof(resp)); in prestera_hw_rxtx_init()
2184 params->map_addr = __le32_to_cpu(resp.map_addr); in prestera_hw_rxtx_init()
2238 struct mvsw_msg_cpu_code_counter_ret resp; in prestera_hw_cpu_code_counters_get() local
2242 &req.cmd, sizeof(req), &resp.ret, sizeof(resp)); in prestera_hw_cpu_code_counters_get()
2246 *packet_count = __le64_to_cpu(resp.packet_count); in prestera_hw_cpu_code_counters_get()
2313 struct prestera_msg_counter_resp *resp; in prestera_hw_counters_get() local
2318 size_t size = struct_size(resp, stats, *len); in prestera_hw_counters_get()
2321 resp = kmalloc(size, GFP_KERNEL); in prestera_hw_counters_get()
2322 if (!resp) in prestera_hw_counters_get()
2326 &req.cmd, sizeof(req), &resp->ret, size); in prestera_hw_counters_get()
2330 for (i = 0; i < __le32_to_cpu(resp->num_counters); i++) { in prestera_hw_counters_get()
2331 stats[i].packets += __le64_to_cpu(resp->stats[i].packets); in prestera_hw_counters_get()
2332 stats[i].bytes += __le64_to_cpu(resp->stats[i].bytes); in prestera_hw_counters_get()
2335 *len = __le32_to_cpu(resp->num_counters); in prestera_hw_counters_get()
2336 *done = __le32_to_cpu(resp->done); in prestera_hw_counters_get()
2339 kfree(resp); in prestera_hw_counters_get()
2347 struct prestera_msg_counter_resp resp; in prestera_hw_counter_block_get() local
2354 &req.cmd, sizeof(req), &resp.ret, sizeof(resp)); in prestera_hw_counter_block_get()
2358 *block_id = __le32_to_cpu(resp.block_id); in prestera_hw_counter_block_get()
2359 *offset = __le32_to_cpu(resp.offset); in prestera_hw_counter_block_get()
2360 *num_counters = __le32_to_cpu(resp.num_counters); in prestera_hw_counter_block_get()
2391 struct prestera_msg_policer_resp resp; in prestera_hw_policer_create() local
2398 &req.cmd, sizeof(req), &resp.ret, sizeof(resp)); in prestera_hw_policer_create()
2402 *policer_id = __le32_to_cpu(resp.id); in prestera_hw_policer_create()
2435 struct prestera_msg_flood_domain_create_resp resp; in prestera_hw_flood_domain_create() local
2441 sizeof(req), &resp.ret, sizeof(resp)); in prestera_hw_flood_domain_create()
2445 domain->idx = __le32_to_cpu(resp.flood_domain_idx); in prestera_hw_flood_domain_create()