Lines Matching refs:wrb

114 static inline void *embedded_payload(struct be_mcc_wrb *wrb)  in embedded_payload()  argument
116 return wrb->payload.embedded_payload; in embedded_payload()
606 struct be_mcc_wrb *wrb; in be_mcc_notify_wait() local
612 wrb = queue_index_node(&mcc_obj->q, index); in be_mcc_notify_wait()
614 resp = be_decode_resp_hdr(wrb->tag0, wrb->tag1); in be_mcc_notify_wait()
782 static inline struct be_sge *nonembedded_sgl(struct be_mcc_wrb *wrb) in nonembedded_sgl() argument
784 return &wrb->payload.sgl[0]; in nonembedded_sgl()
787 static inline void fill_wrb_tags(struct be_mcc_wrb *wrb, unsigned long addr) in fill_wrb_tags() argument
789 wrb->tag0 = addr & 0xFFFFFFFF; in fill_wrb_tags()
790 wrb->tag1 = upper_32_bits(addr); in fill_wrb_tags()
797 struct be_mcc_wrb *wrb, in be_wrb_cmd_hdr_prepare() argument
806 fill_wrb_tags(wrb, (ulong)req_hdr); in be_wrb_cmd_hdr_prepare()
807 wrb->payload_length = cmd_len; in be_wrb_cmd_hdr_prepare()
809 wrb->embedded |= (1 & MCC_WRB_SGE_CNT_MASK) << in be_wrb_cmd_hdr_prepare()
811 sge = nonembedded_sgl(wrb); in be_wrb_cmd_hdr_prepare()
816 wrb->embedded |= MCC_WRB_EMBEDDED_MASK; in be_wrb_cmd_hdr_prepare()
817 be_dws_cpu_to_le(wrb, 8); in be_wrb_cmd_hdr_prepare()
836 struct be_mcc_wrb *wrb = &((struct be_mcc_mailbox *)(mbox_mem->va))->wrb; in wrb_from_mbox() local
838 memset(wrb, 0, sizeof(*wrb)); in wrb_from_mbox()
839 return wrb; in wrb_from_mbox()
845 struct be_mcc_wrb *wrb; in wrb_from_mccq() local
853 wrb = queue_head_node(mccq); in wrb_from_mccq()
856 memset(wrb, 0, sizeof(*wrb)); in wrb_from_mccq()
857 return wrb; in wrb_from_mccq()
886 struct be_mcc_wrb *wrb) in be_cmd_copy() argument
898 memcpy(dest_wrb, wrb, sizeof(*wrb)); in be_cmd_copy()
899 if (wrb->embedded & cpu_to_le32(MCC_WRB_EMBEDDED_MASK)) in be_cmd_copy()
900 fill_wrb_tags(dest_wrb, (ulong)embedded_payload(wrb)); in be_cmd_copy()
907 struct be_mcc_wrb *wrb) in be_cmd_notify_wait() argument
916 dest_wrb = be_cmd_copy(adapter, wrb); in be_cmd_notify_wait()
928 memcpy(wrb, dest_wrb, sizeof(*wrb)); in be_cmd_notify_wait()
940 u8 *wrb; in be_cmd_fw_init() local
949 wrb = (u8 *)wrb_from_mbox(adapter); in be_cmd_fw_init()
950 *wrb++ = 0xFF; in be_cmd_fw_init()
951 *wrb++ = 0x12; in be_cmd_fw_init()
952 *wrb++ = 0x34; in be_cmd_fw_init()
953 *wrb++ = 0xFF; in be_cmd_fw_init()
954 *wrb++ = 0xFF; in be_cmd_fw_init()
955 *wrb++ = 0x56; in be_cmd_fw_init()
956 *wrb++ = 0x78; in be_cmd_fw_init()
957 *wrb = 0xFF; in be_cmd_fw_init()
970 u8 *wrb; in be_cmd_fw_clean() local
979 wrb = (u8 *)wrb_from_mbox(adapter); in be_cmd_fw_clean()
980 *wrb++ = 0xFF; in be_cmd_fw_clean()
981 *wrb++ = 0xAA; in be_cmd_fw_clean()
982 *wrb++ = 0xBB; in be_cmd_fw_clean()
983 *wrb++ = 0xFF; in be_cmd_fw_clean()
984 *wrb++ = 0xFF; in be_cmd_fw_clean()
985 *wrb++ = 0xCC; in be_cmd_fw_clean()
986 *wrb++ = 0xDD; in be_cmd_fw_clean()
987 *wrb = 0xFF; in be_cmd_fw_clean()
997 struct be_mcc_wrb *wrb; in be_cmd_eq_create() local
1005 wrb = wrb_from_mbox(adapter); in be_cmd_eq_create()
1006 req = embedded_payload(wrb); in be_cmd_eq_create()
1009 OPCODE_COMMON_EQ_CREATE, sizeof(*req), wrb, in be_cmd_eq_create()
1030 struct be_cmd_resp_eq_create *resp = embedded_payload(wrb); in be_cmd_eq_create()
1046 struct be_mcc_wrb *wrb; in be_cmd_mac_addr_query() local
1052 wrb = wrb_from_mccq(adapter); in be_cmd_mac_addr_query()
1053 if (!wrb) { in be_cmd_mac_addr_query()
1057 req = embedded_payload(wrb); in be_cmd_mac_addr_query()
1060 OPCODE_COMMON_NTWK_MAC_QUERY, sizeof(*req), wrb, in be_cmd_mac_addr_query()
1073 struct be_cmd_resp_mac_query *resp = embedded_payload(wrb); in be_cmd_mac_addr_query()
1087 struct be_mcc_wrb *wrb; in be_cmd_pmac_add() local
1093 wrb = wrb_from_mccq(adapter); in be_cmd_pmac_add()
1094 if (!wrb) { in be_cmd_pmac_add()
1098 req = embedded_payload(wrb); in be_cmd_pmac_add()
1101 OPCODE_COMMON_NTWK_PMAC_ADD, sizeof(*req), wrb, in be_cmd_pmac_add()
1110 struct be_cmd_resp_pmac_add *resp = embedded_payload(wrb); in be_cmd_pmac_add()
1127 struct be_mcc_wrb *wrb; in be_cmd_pmac_del() local
1136 wrb = wrb_from_mccq(adapter); in be_cmd_pmac_del()
1137 if (!wrb) { in be_cmd_pmac_del()
1141 req = embedded_payload(wrb); in be_cmd_pmac_del()
1145 wrb, NULL); in be_cmd_pmac_del()
1162 struct be_mcc_wrb *wrb; in be_cmd_cq_create() local
1171 wrb = wrb_from_mbox(adapter); in be_cmd_cq_create()
1172 req = embedded_payload(wrb); in be_cmd_cq_create()
1176 OPCODE_COMMON_CQ_CREATE, sizeof(*req), wrb, in be_cmd_cq_create()
1216 struct be_cmd_resp_cq_create *resp = embedded_payload(wrb); in be_cmd_cq_create()
1240 struct be_mcc_wrb *wrb; in be_cmd_mccq_ext_create() local
1249 wrb = wrb_from_mbox(adapter); in be_cmd_mccq_ext_create()
1250 req = embedded_payload(wrb); in be_cmd_mccq_ext_create()
1254 OPCODE_COMMON_MCC_CREATE_EXT, sizeof(*req), wrb, in be_cmd_mccq_ext_create()
1291 struct be_cmd_resp_mcc_create *resp = embedded_payload(wrb); in be_cmd_mccq_ext_create()
1305 struct be_mcc_wrb *wrb; in be_cmd_mccq_org_create() local
1314 wrb = wrb_from_mbox(adapter); in be_cmd_mccq_org_create()
1315 req = embedded_payload(wrb); in be_cmd_mccq_org_create()
1319 OPCODE_COMMON_MCC_CREATE, sizeof(*req), wrb, in be_cmd_mccq_org_create()
1335 struct be_cmd_resp_mcc_create *resp = embedded_payload(wrb); in be_cmd_mccq_org_create()
1362 struct be_mcc_wrb wrb = {0}; in be_cmd_txq_create() local
1369 req = embedded_payload(&wrb); in be_cmd_txq_create()
1371 OPCODE_ETH_TX_CREATE, sizeof(*req), &wrb, NULL); in be_cmd_txq_create()
1392 status = be_cmd_notify_wait(adapter, &wrb); in be_cmd_txq_create()
1394 struct be_cmd_resp_eth_tx_create *resp = embedded_payload(&wrb); in be_cmd_txq_create()
1412 struct be_mcc_wrb *wrb; in be_cmd_rxq_create() local
1419 wrb = wrb_from_mccq(adapter); in be_cmd_rxq_create()
1420 if (!wrb) { in be_cmd_rxq_create()
1424 req = embedded_payload(wrb); in be_cmd_rxq_create()
1427 OPCODE_ETH_RX_CREATE, sizeof(*req), wrb, NULL); in be_cmd_rxq_create()
1439 struct be_cmd_resp_eth_rx_create *resp = embedded_payload(wrb); in be_cmd_rxq_create()
1457 struct be_mcc_wrb *wrb; in be_cmd_q_destroy() local
1465 wrb = wrb_from_mbox(adapter); in be_cmd_q_destroy()
1466 req = embedded_payload(wrb); in be_cmd_q_destroy()
1493 be_wrb_cmd_hdr_prepare(&req->hdr, subsys, opcode, sizeof(*req), wrb, in be_cmd_q_destroy()
1507 struct be_mcc_wrb *wrb; in be_cmd_rxq_destroy() local
1513 wrb = wrb_from_mccq(adapter); in be_cmd_rxq_destroy()
1514 if (!wrb) { in be_cmd_rxq_destroy()
1518 req = embedded_payload(wrb); in be_cmd_rxq_destroy()
1521 OPCODE_ETH_RX_DESTROY, sizeof(*req), wrb, NULL); in be_cmd_rxq_destroy()
1538 struct be_mcc_wrb wrb = {0}; in be_cmd_if_create() local
1542 req = embedded_payload(&wrb); in be_cmd_if_create()
1545 sizeof(*req), &wrb, NULL); in be_cmd_if_create()
1551 status = be_cmd_notify_wait(adapter, &wrb); in be_cmd_if_create()
1553 struct be_cmd_resp_if_create *resp = embedded_payload(&wrb); in be_cmd_if_create()
1567 struct be_mcc_wrb wrb = {0}; in be_cmd_if_destroy() local
1574 req = embedded_payload(&wrb); in be_cmd_if_destroy()
1578 sizeof(*req), &wrb, NULL); in be_cmd_if_destroy()
1582 status = be_cmd_notify_wait(adapter, &wrb); in be_cmd_if_destroy()
1592 struct be_mcc_wrb *wrb; in be_cmd_get_stats() local
1598 wrb = wrb_from_mccq(adapter); in be_cmd_get_stats()
1599 if (!wrb) { in be_cmd_get_stats()
1606 OPCODE_ETH_GET_STATISTICS, nonemb_cmd->size, wrb, in be_cmd_get_stats()
1632 struct be_mcc_wrb *wrb; in lancer_cmd_get_pport_stats() local
1642 wrb = wrb_from_mccq(adapter); in lancer_cmd_get_pport_stats()
1643 if (!wrb) { in lancer_cmd_get_pport_stats()
1651 wrb, nonemb_cmd); in lancer_cmd_get_pport_stats()
1696 struct be_mcc_wrb *wrb; in be_cmd_link_status_query() local
1705 wrb = wrb_from_mccq(adapter); in be_cmd_link_status_query()
1706 if (!wrb) { in be_cmd_link_status_query()
1710 req = embedded_payload(wrb); in be_cmd_link_status_query()
1714 sizeof(*req), wrb, NULL); in be_cmd_link_status_query()
1724 struct be_cmd_resp_link_status *resp = embedded_payload(wrb); in be_cmd_link_status_query()
1746 struct be_mcc_wrb *wrb; in be_cmd_get_die_temperature() local
1752 wrb = wrb_from_mccq(adapter); in be_cmd_get_die_temperature()
1753 if (!wrb) { in be_cmd_get_die_temperature()
1757 req = embedded_payload(wrb); in be_cmd_get_die_temperature()
1761 sizeof(*req), wrb, NULL); in be_cmd_get_die_temperature()
1772 struct be_mcc_wrb wrb = {0}; in be_cmd_get_fat_dump_len() local
1776 req = embedded_payload(&wrb); in be_cmd_get_fat_dump_len()
1780 &wrb, NULL); in be_cmd_get_fat_dump_len()
1782 status = be_cmd_notify_wait(adapter, &wrb); in be_cmd_get_fat_dump_len()
1784 struct be_cmd_resp_get_fat *resp = embedded_payload(&wrb); in be_cmd_get_fat_dump_len()
1796 struct be_mcc_wrb *wrb; in be_cmd_get_fat_dump() local
1820 wrb = wrb_from_mccq(adapter); in be_cmd_get_fat_dump()
1821 if (!wrb) { in be_cmd_get_fat_dump()
1830 wrb, &get_fat_cmd); in be_cmd_get_fat_dump()
1861 struct be_mcc_wrb *wrb; in be_cmd_get_fw_ver() local
1867 wrb = wrb_from_mccq(adapter); in be_cmd_get_fw_ver()
1868 if (!wrb) { in be_cmd_get_fw_ver()
1873 req = embedded_payload(wrb); in be_cmd_get_fw_ver()
1876 OPCODE_COMMON_GET_FW_VERSION, sizeof(*req), wrb, in be_cmd_get_fw_ver()
1880 struct be_cmd_resp_get_fw_version *resp = embedded_payload(wrb); in be_cmd_get_fw_ver()
1898 struct be_mcc_wrb *wrb; in __be_cmd_modify_eqd() local
1904 wrb = wrb_from_mccq(adapter); in __be_cmd_modify_eqd()
1905 if (!wrb) { in __be_cmd_modify_eqd()
1909 req = embedded_payload(wrb); in __be_cmd_modify_eqd()
1912 OPCODE_COMMON_MODIFY_EQ_DELAY, sizeof(*req), wrb, in __be_cmd_modify_eqd()
1948 struct be_mcc_wrb *wrb; in be_cmd_vlan_config() local
1954 wrb = wrb_from_mccq(adapter); in be_cmd_vlan_config()
1955 if (!wrb) { in be_cmd_vlan_config()
1959 req = embedded_payload(wrb); in be_cmd_vlan_config()
1963 wrb, NULL); in be_cmd_vlan_config()
1980 struct be_mcc_wrb *wrb; in __be_cmd_rx_filter() local
1987 wrb = wrb_from_mccq(adapter); in __be_cmd_rx_filter()
1988 if (!wrb) { in __be_cmd_rx_filter()
1995 wrb, mem); in __be_cmd_rx_filter()
2041 struct be_mcc_wrb *wrb; in be_cmd_set_flow_control() local
2051 wrb = wrb_from_mccq(adapter); in be_cmd_set_flow_control()
2052 if (!wrb) { in be_cmd_set_flow_control()
2056 req = embedded_payload(wrb); in be_cmd_set_flow_control()
2060 wrb, NULL); in be_cmd_set_flow_control()
2080 struct be_mcc_wrb *wrb; in be_cmd_get_flow_control() local
2090 wrb = wrb_from_mccq(adapter); in be_cmd_get_flow_control()
2091 if (!wrb) { in be_cmd_get_flow_control()
2095 req = embedded_payload(wrb); in be_cmd_get_flow_control()
2099 wrb, NULL); in be_cmd_get_flow_control()
2104 embedded_payload(wrb); in be_cmd_get_flow_control()
2118 struct be_mcc_wrb *wrb; in be_cmd_query_fw_cfg() local
2125 wrb = wrb_from_mbox(adapter); in be_cmd_query_fw_cfg()
2126 req = embedded_payload(wrb); in be_cmd_query_fw_cfg()
2130 sizeof(*req), wrb, NULL); in be_cmd_query_fw_cfg()
2134 struct be_cmd_resp_query_fw_cfg *resp = embedded_payload(wrb); in be_cmd_query_fw_cfg()
2152 struct be_mcc_wrb *wrb; in be_cmd_reset_function() local
2169 wrb = wrb_from_mbox(adapter); in be_cmd_reset_function()
2170 req = embedded_payload(wrb); in be_cmd_reset_function()
2173 OPCODE_COMMON_FUNCTION_RESET, sizeof(*req), wrb, in be_cmd_reset_function()
2185 struct be_mcc_wrb *wrb; in be_cmd_rss_config() local
2194 wrb = wrb_from_mccq(adapter); in be_cmd_rss_config()
2195 if (!wrb) { in be_cmd_rss_config()
2199 req = embedded_payload(wrb); in be_cmd_rss_config()
2202 OPCODE_ETH_RSS_CONFIG, sizeof(*req), wrb, NULL); in be_cmd_rss_config()
2225 struct be_mcc_wrb *wrb; in be_cmd_set_beacon_state() local
2231 wrb = wrb_from_mccq(adapter); in be_cmd_set_beacon_state()
2232 if (!wrb) { in be_cmd_set_beacon_state()
2236 req = embedded_payload(wrb); in be_cmd_set_beacon_state()
2240 sizeof(*req), wrb, NULL); in be_cmd_set_beacon_state()
2257 struct be_mcc_wrb *wrb; in be_cmd_get_beacon_state() local
2263 wrb = wrb_from_mccq(adapter); in be_cmd_get_beacon_state()
2264 if (!wrb) { in be_cmd_get_beacon_state()
2268 req = embedded_payload(wrb); in be_cmd_get_beacon_state()
2272 wrb, NULL); in be_cmd_get_beacon_state()
2279 embedded_payload(wrb); in be_cmd_get_beacon_state()
2294 struct be_mcc_wrb *wrb; in be_cmd_read_port_transceiver_data() local
2311 wrb = wrb_from_mccq(adapter); in be_cmd_read_port_transceiver_data()
2312 if (!wrb) { in be_cmd_read_port_transceiver_data()
2320 cmd.size, wrb, &cmd); in be_cmd_read_port_transceiver_data()
2342 struct be_mcc_wrb *wrb; in lancer_cmd_write_object() local
2351 wrb = wrb_from_mccq(adapter); in lancer_cmd_write_object()
2352 if (!wrb) { in lancer_cmd_write_object()
2357 req = embedded_payload(wrb); in lancer_cmd_write_object()
2361 sizeof(struct lancer_cmd_req_write_object), wrb, in lancer_cmd_write_object()
2398 resp = embedded_payload(wrb); in lancer_cmd_write_object()
2460 struct be_mcc_wrb *wrb; in lancer_cmd_delete_object() local
2465 wrb = wrb_from_mccq(adapter); in lancer_cmd_delete_object()
2466 if (!wrb) { in lancer_cmd_delete_object()
2471 req = embedded_payload(wrb); in lancer_cmd_delete_object()
2475 sizeof(*req), wrb, NULL); in lancer_cmd_delete_object()
2489 struct be_mcc_wrb *wrb; in lancer_cmd_read_object() local
2496 wrb = wrb_from_mccq(adapter); in lancer_cmd_read_object()
2497 if (!wrb) { in lancer_cmd_read_object()
2502 req = embedded_payload(wrb); in lancer_cmd_read_object()
2506 sizeof(struct lancer_cmd_req_read_object), wrb, in lancer_cmd_read_object()
2519 resp = embedded_payload(wrb); in lancer_cmd_read_object()
2536 struct be_mcc_wrb *wrb; in be_cmd_write_flashrom() local
2543 wrb = wrb_from_mccq(adapter); in be_cmd_write_flashrom()
2544 if (!wrb) { in be_cmd_write_flashrom()
2551 OPCODE_COMMON_WRITE_FLASHROM, cmd->size, wrb, in be_cmd_write_flashrom()
2584 struct be_mcc_wrb *wrb; in be_cmd_get_flash_crc() local
2589 wrb = wrb_from_mccq(adapter); in be_cmd_get_flash_crc()
2590 if (!wrb) { in be_cmd_get_flash_crc()
2594 req = embedded_payload(wrb); in be_cmd_get_flash_crc()
2598 wrb, NULL); in be_cmd_get_flash_crc()
3216 struct be_mcc_wrb *wrb; in be_cmd_enable_magic_wol() local
3222 wrb = wrb_from_mccq(adapter); in be_cmd_enable_magic_wol()
3223 if (!wrb) { in be_cmd_enable_magic_wol()
3231 wrb, nonemb_cmd); in be_cmd_enable_magic_wol()
3244 struct be_mcc_wrb *wrb; in be_cmd_set_loopback() local
3254 wrb = wrb_from_mccq(adapter); in be_cmd_set_loopback()
3255 if (!wrb) { in be_cmd_set_loopback()
3260 req = embedded_payload(wrb); in be_cmd_set_loopback()
3264 wrb, NULL); in be_cmd_set_loopback()
3292 struct be_mcc_wrb *wrb; in be_cmd_loopback_test() local
3303 wrb = wrb_from_mccq(adapter); in be_cmd_loopback_test()
3304 if (!wrb) { in be_cmd_loopback_test()
3309 req = embedded_payload(wrb); in be_cmd_loopback_test()
3312 OPCODE_LOWLEVEL_LOOPBACK_TEST, sizeof(*req), wrb, in be_cmd_loopback_test()
3330 resp = embedded_payload(wrb); in be_cmd_loopback_test()
3342 struct be_mcc_wrb *wrb; in be_cmd_ddr_dma_test() local
3353 wrb = wrb_from_mccq(adapter); in be_cmd_ddr_dma_test()
3354 if (!wrb) { in be_cmd_ddr_dma_test()
3360 OPCODE_LOWLEVEL_HOST_DDR_DMA, cmd->size, wrb, in be_cmd_ddr_dma_test()
3392 struct be_mcc_wrb *wrb; in be_cmd_get_seeprom_data() local
3398 wrb = wrb_from_mccq(adapter); in be_cmd_get_seeprom_data()
3399 if (!wrb) { in be_cmd_get_seeprom_data()
3406 OPCODE_COMMON_SEEPROM_READ, sizeof(*req), wrb, in be_cmd_get_seeprom_data()
3418 struct be_mcc_wrb *wrb; in be_cmd_get_phy_info() local
3429 wrb = wrb_from_mccq(adapter); in be_cmd_get_phy_info()
3430 if (!wrb) { in be_cmd_get_phy_info()
3447 wrb, &cmd); in be_cmd_get_phy_info()
3478 struct be_mcc_wrb *wrb; in be_cmd_set_qos() local
3484 wrb = wrb_from_mccq(adapter); in be_cmd_set_qos()
3485 if (!wrb) { in be_cmd_set_qos()
3490 req = embedded_payload(wrb); in be_cmd_set_qos()
3493 OPCODE_COMMON_SET_QOS, sizeof(*req), wrb, NULL); in be_cmd_set_qos()
3508 struct be_mcc_wrb *wrb; in be_cmd_get_cntl_attributes() local
3531 wrb = wrb_from_mbox(adapter); in be_cmd_get_cntl_attributes()
3532 if (!wrb) { in be_cmd_get_cntl_attributes()
3540 wrb, &attribs_cmd); in be_cmd_get_cntl_attributes()
3568 struct be_mcc_wrb *wrb; in be_cmd_req_native_mode() local
3575 wrb = wrb_from_mbox(adapter); in be_cmd_req_native_mode()
3576 if (!wrb) { in be_cmd_req_native_mode()
3581 req = embedded_payload(wrb); in be_cmd_req_native_mode()
3585 sizeof(*req), wrb, NULL); in be_cmd_req_native_mode()
3593 struct be_cmd_resp_set_func_cap *resp = embedded_payload(wrb); in be_cmd_req_native_mode()
3610 struct be_mcc_wrb *wrb; in be_cmd_get_fn_privileges() local
3616 wrb = wrb_from_mccq(adapter); in be_cmd_get_fn_privileges()
3617 if (!wrb) { in be_cmd_get_fn_privileges()
3622 req = embedded_payload(wrb); in be_cmd_get_fn_privileges()
3626 wrb, NULL); in be_cmd_get_fn_privileges()
3633 embedded_payload(wrb); in be_cmd_get_fn_privileges()
3654 struct be_mcc_wrb *wrb; in be_cmd_set_fn_privileges() local
3660 wrb = wrb_from_mccq(adapter); in be_cmd_set_fn_privileges()
3661 if (!wrb) { in be_cmd_set_fn_privileges()
3666 req = embedded_payload(wrb); in be_cmd_set_fn_privileges()
3669 wrb, NULL); in be_cmd_set_fn_privileges()
3690 struct be_mcc_wrb *wrb; in be_cmd_get_mac_from_list() local
3712 wrb = wrb_from_mccq(adapter); in be_cmd_get_mac_from_list()
3713 if (!wrb) { in be_cmd_get_mac_from_list()
3722 get_mac_list_cmd.size, wrb, &get_mac_list_cmd); in be_cmd_get_mac_from_list()
3822 struct be_mcc_wrb *wrb; in be_cmd_set_mac_list() local
3836 wrb = wrb_from_mccq(adapter); in be_cmd_set_mac_list()
3837 if (!wrb) { in be_cmd_set_mac_list()
3845 wrb, &cmd); in be_cmd_set_mac_list()
3883 struct be_mcc_wrb *wrb; in be_cmd_set_hsw_config() local
3894 wrb = wrb_from_mccq(adapter); in be_cmd_set_hsw_config()
3895 if (!wrb) { in be_cmd_set_hsw_config()
3900 req = embedded_payload(wrb); in be_cmd_set_hsw_config()
3904 OPCODE_COMMON_SET_HSW_CONFIG, sizeof(*req), wrb, in be_cmd_set_hsw_config()
3941 struct be_mcc_wrb *wrb; in be_cmd_get_hsw_config() local
3949 wrb = wrb_from_mccq(adapter); in be_cmd_get_hsw_config()
3950 if (!wrb) { in be_cmd_get_hsw_config()
3955 req = embedded_payload(wrb); in be_cmd_get_hsw_config()
3959 OPCODE_COMMON_GET_HSW_CONFIG, sizeof(*req), wrb, in be_cmd_get_hsw_config()
3977 embedded_payload(wrb); in be_cmd_get_hsw_config()
4018 struct be_mcc_wrb *wrb; in be_cmd_get_acpi_wol_cap() local
4043 wrb = wrb_from_mbox(adapter); in be_cmd_get_acpi_wol_cap()
4044 if (!wrb) { in be_cmd_get_acpi_wol_cap()
4053 sizeof(*req), wrb, &cmd); in be_cmd_get_acpi_wol_cap()
4156 struct be_mcc_wrb *wrb; in be_cmd_get_ext_fat_capabilites() local
4167 wrb = wrb_from_mbox(adapter); in be_cmd_get_ext_fat_capabilites()
4168 if (!wrb) { in be_cmd_get_ext_fat_capabilites()
4176 cmd->size, wrb, cmd); in be_cmd_get_ext_fat_capabilites()
4189 struct be_mcc_wrb *wrb; in be_cmd_set_ext_fat_capabilites() local
4195 wrb = wrb_from_mccq(adapter); in be_cmd_set_ext_fat_capabilites()
4196 if (!wrb) { in be_cmd_set_ext_fat_capabilites()
4205 cmd->size, wrb, cmd); in be_cmd_set_ext_fat_capabilites()
4216 struct be_mcc_wrb *wrb; in be_cmd_query_port_name() local
4222 wrb = wrb_from_mbox(adapter); in be_cmd_query_port_name()
4223 req = embedded_payload(wrb); in be_cmd_query_port_name()
4226 OPCODE_COMMON_GET_PORT_NAME, sizeof(*req), wrb, in be_cmd_query_port_name()
4233 struct be_cmd_resp_get_port_name *resp = embedded_payload(wrb); in be_cmd_query_port_name()
4344 struct be_mcc_wrb *wrb; in be_cmd_get_func_config() local
4362 wrb = wrb_from_mbox(adapter); in be_cmd_get_func_config()
4363 if (!wrb) { in be_cmd_get_func_config()
4372 cmd.size, wrb, &cmd); in be_cmd_get_func_config()
4445 struct be_mcc_wrb wrb = {0}; in be_cmd_get_profile_config() local
4460 cmd.size, &wrb, &cmd); in be_cmd_get_profile_config()
4474 status = be_cmd_notify_wait(adapter, &wrb); in be_cmd_get_profile_config()
4533 struct be_mcc_wrb wrb = {0}; in be_cmd_set_profile_config() local
4547 &wrb, &cmd); in be_cmd_set_profile_config()
4553 status = be_cmd_notify_wait(adapter, &wrb); in be_cmd_set_profile_config()
4680 struct be_mcc_wrb *wrb; in be_cmd_manage_iface() local
4689 wrb = wrb_from_mccq(adapter); in be_cmd_manage_iface()
4690 if (!wrb) { in be_cmd_manage_iface()
4694 req = embedded_payload(wrb); in be_cmd_manage_iface()
4698 wrb, NULL); in be_cmd_manage_iface()
4733 struct be_mcc_wrb *wrb; in be_cmd_get_if_id() local
4740 wrb = wrb_from_mccq(adapter); in be_cmd_get_if_id()
4741 if (!wrb) { in be_cmd_get_if_id()
4745 req = embedded_payload(wrb); in be_cmd_get_if_id()
4749 wrb, NULL); in be_cmd_get_if_id()
4846 struct be_mcc_wrb *wrb; in be_cmd_enable_vf() local
4855 wrb = wrb_from_mccq(adapter); in be_cmd_enable_vf()
4856 if (!wrb) { in be_cmd_enable_vf()
4861 req = embedded_payload(wrb); in be_cmd_enable_vf()
4865 wrb, NULL); in be_cmd_enable_vf()
4877 struct be_mcc_wrb *wrb; in be_cmd_intr_set() local
4884 wrb = wrb_from_mbox(adapter); in be_cmd_intr_set()
4886 req = embedded_payload(wrb); in be_cmd_intr_set()
4890 wrb, NULL); in be_cmd_intr_set()
4904 struct be_mcc_wrb *wrb; in be_cmd_get_active_profile() local
4910 wrb = wrb_from_mbox(adapter); in be_cmd_get_active_profile()
4911 if (!wrb) { in be_cmd_get_active_profile()
4916 req = embedded_payload(wrb); in be_cmd_get_active_profile()
4920 wrb, NULL); in be_cmd_get_active_profile()
4925 embedded_payload(wrb); in be_cmd_get_active_profile()
4940 struct be_mcc_wrb *wrb; in __be_cmd_set_logical_link_config() local
4946 wrb = wrb_from_mccq(adapter); in __be_cmd_set_logical_link_config()
4947 if (!wrb) { in __be_cmd_set_logical_link_config()
4952 req = embedded_payload(wrb); in __be_cmd_set_logical_link_config()
4956 sizeof(*req), wrb, NULL); in __be_cmd_set_logical_link_config()
5000 struct be_mcc_wrb *wrb; in be_cmd_set_features() local
5006 wrb = wrb_from_mccq(adapter); in be_cmd_set_features()
5007 if (!wrb) { in be_cmd_set_features()
5012 req = embedded_payload(wrb); in be_cmd_set_features()
5016 sizeof(*req), wrb, NULL); in be_cmd_set_features()
5026 resp = embedded_payload(wrb); in be_cmd_set_features()
5050 struct be_mcc_wrb *wrb; in be_roce_mcc_cmd() local
5058 wrb = wrb_from_mccq(adapter); in be_roce_mcc_cmd()
5059 if (!wrb) { in be_roce_mcc_cmd()
5063 req = embedded_payload(wrb); in be_roce_mcc_cmd()
5064 resp = embedded_payload(wrb); in be_roce_mcc_cmd()
5067 hdr->opcode, wrb_payload_size, wrb, NULL); in be_roce_mcc_cmd()