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()
604 struct be_mcc_wrb *wrb; in be_mcc_notify_wait() local
610 wrb = queue_index_node(&mcc_obj->q, index); in be_mcc_notify_wait()
612 resp = be_decode_resp_hdr(wrb->tag0, wrb->tag1); in be_mcc_notify_wait()
781 static inline struct be_sge *nonembedded_sgl(struct be_mcc_wrb *wrb) in nonembedded_sgl() argument
783 return &wrb->payload.sgl[0]; in nonembedded_sgl()
786 static inline void fill_wrb_tags(struct be_mcc_wrb *wrb, unsigned long addr) in fill_wrb_tags() argument
788 wrb->tag0 = addr & 0xFFFFFFFF; in fill_wrb_tags()
789 wrb->tag1 = upper_32_bits(addr); in fill_wrb_tags()
796 struct be_mcc_wrb *wrb, in be_wrb_cmd_hdr_prepare() argument
805 fill_wrb_tags(wrb, (ulong) req_hdr); in be_wrb_cmd_hdr_prepare()
806 wrb->payload_length = cmd_len; in be_wrb_cmd_hdr_prepare()
808 wrb->embedded |= (1 & MCC_WRB_SGE_CNT_MASK) << in be_wrb_cmd_hdr_prepare()
810 sge = nonembedded_sgl(wrb); in be_wrb_cmd_hdr_prepare()
815 wrb->embedded |= MCC_WRB_EMBEDDED_MASK; in be_wrb_cmd_hdr_prepare()
816 be_dws_cpu_to_le(wrb, 8); in be_wrb_cmd_hdr_prepare()
835 struct be_mcc_wrb *wrb in wrb_from_mbox() local
836 = &((struct be_mcc_mailbox *)(mbox_mem->va))->wrb; in wrb_from_mbox()
837 memset(wrb, 0, sizeof(*wrb)); in wrb_from_mbox()
838 return wrb; in wrb_from_mbox()
844 struct be_mcc_wrb *wrb; in wrb_from_mccq() local
852 wrb = queue_head_node(mccq); in wrb_from_mccq()
855 memset(wrb, 0, sizeof(*wrb)); in wrb_from_mccq()
856 return wrb; in wrb_from_mccq()
885 struct be_mcc_wrb *wrb) in be_cmd_copy() argument
897 memcpy(dest_wrb, wrb, sizeof(*wrb)); in be_cmd_copy()
898 if (wrb->embedded & cpu_to_le32(MCC_WRB_EMBEDDED_MASK)) in be_cmd_copy()
899 fill_wrb_tags(dest_wrb, (ulong) embedded_payload(wrb)); in be_cmd_copy()
906 struct be_mcc_wrb *wrb) in be_cmd_notify_wait() argument
915 dest_wrb = be_cmd_copy(adapter, wrb); in be_cmd_notify_wait()
927 memcpy(wrb, dest_wrb, sizeof(*wrb)); in be_cmd_notify_wait()
939 u8 *wrb; in be_cmd_fw_init() local
948 wrb = (u8 *)wrb_from_mbox(adapter); in be_cmd_fw_init()
949 *wrb++ = 0xFF; in be_cmd_fw_init()
950 *wrb++ = 0x12; in be_cmd_fw_init()
951 *wrb++ = 0x34; in be_cmd_fw_init()
952 *wrb++ = 0xFF; in be_cmd_fw_init()
953 *wrb++ = 0xFF; in be_cmd_fw_init()
954 *wrb++ = 0x56; in be_cmd_fw_init()
955 *wrb++ = 0x78; in be_cmd_fw_init()
956 *wrb = 0xFF; in be_cmd_fw_init()
969 u8 *wrb; in be_cmd_fw_clean() local
978 wrb = (u8 *)wrb_from_mbox(adapter); in be_cmd_fw_clean()
979 *wrb++ = 0xFF; in be_cmd_fw_clean()
980 *wrb++ = 0xAA; in be_cmd_fw_clean()
981 *wrb++ = 0xBB; in be_cmd_fw_clean()
982 *wrb++ = 0xFF; in be_cmd_fw_clean()
983 *wrb++ = 0xFF; in be_cmd_fw_clean()
984 *wrb++ = 0xCC; in be_cmd_fw_clean()
985 *wrb++ = 0xDD; in be_cmd_fw_clean()
986 *wrb = 0xFF; in be_cmd_fw_clean()
996 struct be_mcc_wrb *wrb; in be_cmd_eq_create() local
1004 wrb = wrb_from_mbox(adapter); in be_cmd_eq_create()
1005 req = embedded_payload(wrb); in be_cmd_eq_create()
1008 OPCODE_COMMON_EQ_CREATE, sizeof(*req), wrb, in be_cmd_eq_create()
1029 struct be_cmd_resp_eq_create *resp = embedded_payload(wrb); in be_cmd_eq_create()
1045 struct be_mcc_wrb *wrb; in be_cmd_mac_addr_query() local
1051 wrb = wrb_from_mccq(adapter); in be_cmd_mac_addr_query()
1052 if (!wrb) { in be_cmd_mac_addr_query()
1056 req = embedded_payload(wrb); in be_cmd_mac_addr_query()
1059 OPCODE_COMMON_NTWK_MAC_QUERY, sizeof(*req), wrb, in be_cmd_mac_addr_query()
1072 struct be_cmd_resp_mac_query *resp = embedded_payload(wrb); in be_cmd_mac_addr_query()
1086 struct be_mcc_wrb *wrb; in be_cmd_pmac_add() local
1092 wrb = wrb_from_mccq(adapter); in be_cmd_pmac_add()
1093 if (!wrb) { in be_cmd_pmac_add()
1097 req = embedded_payload(wrb); in be_cmd_pmac_add()
1100 OPCODE_COMMON_NTWK_PMAC_ADD, sizeof(*req), wrb, in be_cmd_pmac_add()
1109 struct be_cmd_resp_pmac_add *resp = embedded_payload(wrb); in be_cmd_pmac_add()
1126 struct be_mcc_wrb *wrb; in be_cmd_pmac_del() local
1135 wrb = wrb_from_mccq(adapter); in be_cmd_pmac_del()
1136 if (!wrb) { in be_cmd_pmac_del()
1140 req = embedded_payload(wrb); in be_cmd_pmac_del()
1144 wrb, NULL); in be_cmd_pmac_del()
1161 struct be_mcc_wrb *wrb; in be_cmd_cq_create() local
1170 wrb = wrb_from_mbox(adapter); in be_cmd_cq_create()
1171 req = embedded_payload(wrb); in be_cmd_cq_create()
1175 OPCODE_COMMON_CQ_CREATE, sizeof(*req), wrb, in be_cmd_cq_create()
1215 struct be_cmd_resp_cq_create *resp = embedded_payload(wrb); in be_cmd_cq_create()
1239 struct be_mcc_wrb *wrb; in be_cmd_mccq_ext_create() local
1248 wrb = wrb_from_mbox(adapter); in be_cmd_mccq_ext_create()
1249 req = embedded_payload(wrb); in be_cmd_mccq_ext_create()
1253 OPCODE_COMMON_MCC_CREATE_EXT, sizeof(*req), wrb, in be_cmd_mccq_ext_create()
1290 struct be_cmd_resp_mcc_create *resp = embedded_payload(wrb); in be_cmd_mccq_ext_create()
1304 struct be_mcc_wrb *wrb; in be_cmd_mccq_org_create() local
1313 wrb = wrb_from_mbox(adapter); in be_cmd_mccq_org_create()
1314 req = embedded_payload(wrb); in be_cmd_mccq_org_create()
1318 OPCODE_COMMON_MCC_CREATE, sizeof(*req), wrb, in be_cmd_mccq_org_create()
1334 struct be_cmd_resp_mcc_create *resp = embedded_payload(wrb); in be_cmd_mccq_org_create()
1361 struct be_mcc_wrb wrb = {0}; in be_cmd_txq_create() local
1368 req = embedded_payload(&wrb); in be_cmd_txq_create()
1370 OPCODE_ETH_TX_CREATE, sizeof(*req), &wrb, NULL); in be_cmd_txq_create()
1391 status = be_cmd_notify_wait(adapter, &wrb); in be_cmd_txq_create()
1393 struct be_cmd_resp_eth_tx_create *resp = embedded_payload(&wrb); in be_cmd_txq_create()
1411 struct be_mcc_wrb *wrb; in be_cmd_rxq_create() local
1418 wrb = wrb_from_mccq(adapter); in be_cmd_rxq_create()
1419 if (!wrb) { in be_cmd_rxq_create()
1423 req = embedded_payload(wrb); in be_cmd_rxq_create()
1426 OPCODE_ETH_RX_CREATE, sizeof(*req), wrb, NULL); in be_cmd_rxq_create()
1438 struct be_cmd_resp_eth_rx_create *resp = embedded_payload(wrb); in be_cmd_rxq_create()
1456 struct be_mcc_wrb *wrb; in be_cmd_q_destroy() local
1464 wrb = wrb_from_mbox(adapter); in be_cmd_q_destroy()
1465 req = embedded_payload(wrb); in be_cmd_q_destroy()
1492 be_wrb_cmd_hdr_prepare(&req->hdr, subsys, opcode, sizeof(*req), wrb, in be_cmd_q_destroy()
1506 struct be_mcc_wrb *wrb; in be_cmd_rxq_destroy() local
1512 wrb = wrb_from_mccq(adapter); in be_cmd_rxq_destroy()
1513 if (!wrb) { in be_cmd_rxq_destroy()
1517 req = embedded_payload(wrb); in be_cmd_rxq_destroy()
1520 OPCODE_ETH_RX_DESTROY, sizeof(*req), wrb, NULL); in be_cmd_rxq_destroy()
1537 struct be_mcc_wrb wrb = {0}; in be_cmd_if_create() local
1541 req = embedded_payload(&wrb); in be_cmd_if_create()
1544 sizeof(*req), &wrb, NULL); in be_cmd_if_create()
1550 status = be_cmd_notify_wait(adapter, &wrb); in be_cmd_if_create()
1552 struct be_cmd_resp_if_create *resp = embedded_payload(&wrb); in be_cmd_if_create()
1566 struct be_mcc_wrb wrb = {0}; in be_cmd_if_destroy() local
1573 req = embedded_payload(&wrb); in be_cmd_if_destroy()
1577 sizeof(*req), &wrb, NULL); in be_cmd_if_destroy()
1581 status = be_cmd_notify_wait(adapter, &wrb); in be_cmd_if_destroy()
1591 struct be_mcc_wrb *wrb; in be_cmd_get_stats() local
1597 wrb = wrb_from_mccq(adapter); in be_cmd_get_stats()
1598 if (!wrb) { in be_cmd_get_stats()
1605 OPCODE_ETH_GET_STATISTICS, nonemb_cmd->size, wrb, in be_cmd_get_stats()
1631 struct be_mcc_wrb *wrb; in lancer_cmd_get_pport_stats() local
1641 wrb = wrb_from_mccq(adapter); in lancer_cmd_get_pport_stats()
1642 if (!wrb) { in lancer_cmd_get_pport_stats()
1650 wrb, nonemb_cmd); in lancer_cmd_get_pport_stats()
1695 struct be_mcc_wrb *wrb; in be_cmd_link_status_query() local
1704 wrb = wrb_from_mccq(adapter); in be_cmd_link_status_query()
1705 if (!wrb) { in be_cmd_link_status_query()
1709 req = embedded_payload(wrb); in be_cmd_link_status_query()
1713 sizeof(*req), wrb, NULL); in be_cmd_link_status_query()
1723 struct be_cmd_resp_link_status *resp = embedded_payload(wrb); in be_cmd_link_status_query()
1745 struct be_mcc_wrb *wrb; in be_cmd_get_die_temperature() local
1751 wrb = wrb_from_mccq(adapter); in be_cmd_get_die_temperature()
1752 if (!wrb) { in be_cmd_get_die_temperature()
1756 req = embedded_payload(wrb); in be_cmd_get_die_temperature()
1760 sizeof(*req), wrb, NULL); in be_cmd_get_die_temperature()
1771 struct be_mcc_wrb wrb = {0}; in be_cmd_get_fat_dump_len() local
1775 req = embedded_payload(&wrb); in be_cmd_get_fat_dump_len()
1779 &wrb, NULL); in be_cmd_get_fat_dump_len()
1781 status = be_cmd_notify_wait(adapter, &wrb); in be_cmd_get_fat_dump_len()
1783 struct be_cmd_resp_get_fat *resp = embedded_payload(&wrb); in be_cmd_get_fat_dump_len()
1795 struct be_mcc_wrb *wrb; in be_cmd_get_fat_dump() local
1819 wrb = wrb_from_mccq(adapter); in be_cmd_get_fat_dump()
1820 if (!wrb) { in be_cmd_get_fat_dump()
1829 wrb, &get_fat_cmd); in be_cmd_get_fat_dump()
1860 struct be_mcc_wrb *wrb; in be_cmd_get_fw_ver() local
1866 wrb = wrb_from_mccq(adapter); in be_cmd_get_fw_ver()
1867 if (!wrb) { in be_cmd_get_fw_ver()
1872 req = embedded_payload(wrb); in be_cmd_get_fw_ver()
1875 OPCODE_COMMON_GET_FW_VERSION, sizeof(*req), wrb, in be_cmd_get_fw_ver()
1879 struct be_cmd_resp_get_fw_version *resp = embedded_payload(wrb); in be_cmd_get_fw_ver()
1897 struct be_mcc_wrb *wrb; in __be_cmd_modify_eqd() local
1903 wrb = wrb_from_mccq(adapter); in __be_cmd_modify_eqd()
1904 if (!wrb) { in __be_cmd_modify_eqd()
1908 req = embedded_payload(wrb); in __be_cmd_modify_eqd()
1911 OPCODE_COMMON_MODIFY_EQ_DELAY, sizeof(*req), wrb, in __be_cmd_modify_eqd()
1947 struct be_mcc_wrb *wrb; in be_cmd_vlan_config() local
1953 wrb = wrb_from_mccq(adapter); in be_cmd_vlan_config()
1954 if (!wrb) { in be_cmd_vlan_config()
1958 req = embedded_payload(wrb); in be_cmd_vlan_config()
1962 wrb, NULL); in be_cmd_vlan_config()
1979 struct be_mcc_wrb *wrb; in __be_cmd_rx_filter() local
1986 wrb = wrb_from_mccq(adapter); in __be_cmd_rx_filter()
1987 if (!wrb) { in __be_cmd_rx_filter()
1994 wrb, mem); in __be_cmd_rx_filter()
2040 struct be_mcc_wrb *wrb; in be_cmd_set_flow_control() local
2050 wrb = wrb_from_mccq(adapter); in be_cmd_set_flow_control()
2051 if (!wrb) { in be_cmd_set_flow_control()
2055 req = embedded_payload(wrb); in be_cmd_set_flow_control()
2059 wrb, NULL); in be_cmd_set_flow_control()
2079 struct be_mcc_wrb *wrb; in be_cmd_get_flow_control() local
2089 wrb = wrb_from_mccq(adapter); in be_cmd_get_flow_control()
2090 if (!wrb) { in be_cmd_get_flow_control()
2094 req = embedded_payload(wrb); in be_cmd_get_flow_control()
2098 wrb, NULL); in be_cmd_get_flow_control()
2103 embedded_payload(wrb); in be_cmd_get_flow_control()
2117 struct be_mcc_wrb *wrb; in be_cmd_query_fw_cfg() local
2124 wrb = wrb_from_mbox(adapter); in be_cmd_query_fw_cfg()
2125 req = embedded_payload(wrb); in be_cmd_query_fw_cfg()
2129 sizeof(*req), wrb, NULL); in be_cmd_query_fw_cfg()
2133 struct be_cmd_resp_query_fw_cfg *resp = embedded_payload(wrb); in be_cmd_query_fw_cfg()
2151 struct be_mcc_wrb *wrb; in be_cmd_reset_function() local
2168 wrb = wrb_from_mbox(adapter); in be_cmd_reset_function()
2169 req = embedded_payload(wrb); in be_cmd_reset_function()
2172 OPCODE_COMMON_FUNCTION_RESET, sizeof(*req), wrb, in be_cmd_reset_function()
2184 struct be_mcc_wrb *wrb; in be_cmd_rss_config() local
2193 wrb = wrb_from_mccq(adapter); in be_cmd_rss_config()
2194 if (!wrb) { in be_cmd_rss_config()
2198 req = embedded_payload(wrb); in be_cmd_rss_config()
2201 OPCODE_ETH_RSS_CONFIG, sizeof(*req), wrb, NULL); in be_cmd_rss_config()
2224 struct be_mcc_wrb *wrb; in be_cmd_set_beacon_state() local
2230 wrb = wrb_from_mccq(adapter); in be_cmd_set_beacon_state()
2231 if (!wrb) { in be_cmd_set_beacon_state()
2235 req = embedded_payload(wrb); in be_cmd_set_beacon_state()
2239 sizeof(*req), wrb, NULL); in be_cmd_set_beacon_state()
2256 struct be_mcc_wrb *wrb; in be_cmd_get_beacon_state() local
2262 wrb = wrb_from_mccq(adapter); in be_cmd_get_beacon_state()
2263 if (!wrb) { in be_cmd_get_beacon_state()
2267 req = embedded_payload(wrb); in be_cmd_get_beacon_state()
2271 wrb, NULL); in be_cmd_get_beacon_state()
2278 embedded_payload(wrb); in be_cmd_get_beacon_state()
2293 struct be_mcc_wrb *wrb; in be_cmd_read_port_transceiver_data() local
2310 wrb = wrb_from_mccq(adapter); in be_cmd_read_port_transceiver_data()
2311 if (!wrb) { in be_cmd_read_port_transceiver_data()
2319 cmd.size, wrb, &cmd); in be_cmd_read_port_transceiver_data()
2341 struct be_mcc_wrb *wrb; in lancer_cmd_write_object() local
2350 wrb = wrb_from_mccq(adapter); in lancer_cmd_write_object()
2351 if (!wrb) { in lancer_cmd_write_object()
2356 req = embedded_payload(wrb); in lancer_cmd_write_object()
2360 sizeof(struct lancer_cmd_req_write_object), wrb, in lancer_cmd_write_object()
2397 resp = embedded_payload(wrb); in lancer_cmd_write_object()
2459 struct be_mcc_wrb *wrb; in lancer_cmd_delete_object() local
2464 wrb = wrb_from_mccq(adapter); in lancer_cmd_delete_object()
2465 if (!wrb) { in lancer_cmd_delete_object()
2470 req = embedded_payload(wrb); in lancer_cmd_delete_object()
2474 sizeof(*req), wrb, NULL); in lancer_cmd_delete_object()
2488 struct be_mcc_wrb *wrb; in lancer_cmd_read_object() local
2495 wrb = wrb_from_mccq(adapter); in lancer_cmd_read_object()
2496 if (!wrb) { in lancer_cmd_read_object()
2501 req = embedded_payload(wrb); in lancer_cmd_read_object()
2505 sizeof(struct lancer_cmd_req_read_object), wrb, in lancer_cmd_read_object()
2518 resp = embedded_payload(wrb); in lancer_cmd_read_object()
2535 struct be_mcc_wrb *wrb; in be_cmd_write_flashrom() local
2542 wrb = wrb_from_mccq(adapter); in be_cmd_write_flashrom()
2543 if (!wrb) { in be_cmd_write_flashrom()
2550 OPCODE_COMMON_WRITE_FLASHROM, cmd->size, wrb, in be_cmd_write_flashrom()
2583 struct be_mcc_wrb *wrb; in be_cmd_get_flash_crc() local
2588 wrb = wrb_from_mccq(adapter); in be_cmd_get_flash_crc()
2589 if (!wrb) { in be_cmd_get_flash_crc()
2593 req = embedded_payload(wrb); in be_cmd_get_flash_crc()
2597 wrb, NULL); in be_cmd_get_flash_crc()
3215 struct be_mcc_wrb *wrb; in be_cmd_enable_magic_wol() local
3221 wrb = wrb_from_mccq(adapter); in be_cmd_enable_magic_wol()
3222 if (!wrb) { in be_cmd_enable_magic_wol()
3230 wrb, nonemb_cmd); in be_cmd_enable_magic_wol()
3243 struct be_mcc_wrb *wrb; in be_cmd_set_loopback() local
3253 wrb = wrb_from_mccq(adapter); in be_cmd_set_loopback()
3254 if (!wrb) { in be_cmd_set_loopback()
3259 req = embedded_payload(wrb); in be_cmd_set_loopback()
3263 wrb, NULL); in be_cmd_set_loopback()
3291 struct be_mcc_wrb *wrb; in be_cmd_loopback_test() local
3302 wrb = wrb_from_mccq(adapter); in be_cmd_loopback_test()
3303 if (!wrb) { in be_cmd_loopback_test()
3308 req = embedded_payload(wrb); in be_cmd_loopback_test()
3311 OPCODE_LOWLEVEL_LOOPBACK_TEST, sizeof(*req), wrb, in be_cmd_loopback_test()
3329 resp = embedded_payload(wrb); in be_cmd_loopback_test()
3341 struct be_mcc_wrb *wrb; in be_cmd_ddr_dma_test() local
3352 wrb = wrb_from_mccq(adapter); in be_cmd_ddr_dma_test()
3353 if (!wrb) { in be_cmd_ddr_dma_test()
3359 OPCODE_LOWLEVEL_HOST_DDR_DMA, cmd->size, wrb, in be_cmd_ddr_dma_test()
3391 struct be_mcc_wrb *wrb; in be_cmd_get_seeprom_data() local
3397 wrb = wrb_from_mccq(adapter); in be_cmd_get_seeprom_data()
3398 if (!wrb) { in be_cmd_get_seeprom_data()
3405 OPCODE_COMMON_SEEPROM_READ, sizeof(*req), wrb, in be_cmd_get_seeprom_data()
3417 struct be_mcc_wrb *wrb; in be_cmd_get_phy_info() local
3428 wrb = wrb_from_mccq(adapter); in be_cmd_get_phy_info()
3429 if (!wrb) { in be_cmd_get_phy_info()
3446 wrb, &cmd); in be_cmd_get_phy_info()
3477 struct be_mcc_wrb *wrb; in be_cmd_set_qos() local
3483 wrb = wrb_from_mccq(adapter); in be_cmd_set_qos()
3484 if (!wrb) { in be_cmd_set_qos()
3489 req = embedded_payload(wrb); in be_cmd_set_qos()
3492 OPCODE_COMMON_SET_QOS, sizeof(*req), wrb, NULL); in be_cmd_set_qos()
3507 struct be_mcc_wrb *wrb; in be_cmd_get_cntl_attributes() local
3530 wrb = wrb_from_mbox(adapter); in be_cmd_get_cntl_attributes()
3531 if (!wrb) { in be_cmd_get_cntl_attributes()
3539 wrb, &attribs_cmd); in be_cmd_get_cntl_attributes()
3567 struct be_mcc_wrb *wrb; in be_cmd_req_native_mode() local
3574 wrb = wrb_from_mbox(adapter); in be_cmd_req_native_mode()
3575 if (!wrb) { in be_cmd_req_native_mode()
3580 req = embedded_payload(wrb); in be_cmd_req_native_mode()
3584 sizeof(*req), wrb, NULL); in be_cmd_req_native_mode()
3592 struct be_cmd_resp_set_func_cap *resp = embedded_payload(wrb); in be_cmd_req_native_mode()
3609 struct be_mcc_wrb *wrb; in be_cmd_get_fn_privileges() local
3615 wrb = wrb_from_mccq(adapter); in be_cmd_get_fn_privileges()
3616 if (!wrb) { in be_cmd_get_fn_privileges()
3621 req = embedded_payload(wrb); in be_cmd_get_fn_privileges()
3625 wrb, NULL); in be_cmd_get_fn_privileges()
3632 embedded_payload(wrb); in be_cmd_get_fn_privileges()
3653 struct be_mcc_wrb *wrb; in be_cmd_set_fn_privileges() local
3659 wrb = wrb_from_mccq(adapter); in be_cmd_set_fn_privileges()
3660 if (!wrb) { in be_cmd_set_fn_privileges()
3665 req = embedded_payload(wrb); in be_cmd_set_fn_privileges()
3668 wrb, NULL); in be_cmd_set_fn_privileges()
3689 struct be_mcc_wrb *wrb; in be_cmd_get_mac_from_list() local
3711 wrb = wrb_from_mccq(adapter); in be_cmd_get_mac_from_list()
3712 if (!wrb) { in be_cmd_get_mac_from_list()
3721 get_mac_list_cmd.size, wrb, &get_mac_list_cmd); in be_cmd_get_mac_from_list()
3821 struct be_mcc_wrb *wrb; in be_cmd_set_mac_list() local
3835 wrb = wrb_from_mccq(adapter); in be_cmd_set_mac_list()
3836 if (!wrb) { in be_cmd_set_mac_list()
3844 wrb, &cmd); in be_cmd_set_mac_list()
3882 struct be_mcc_wrb *wrb; in be_cmd_set_hsw_config() local
3893 wrb = wrb_from_mccq(adapter); in be_cmd_set_hsw_config()
3894 if (!wrb) { in be_cmd_set_hsw_config()
3899 req = embedded_payload(wrb); in be_cmd_set_hsw_config()
3903 OPCODE_COMMON_SET_HSW_CONFIG, sizeof(*req), wrb, in be_cmd_set_hsw_config()
3940 struct be_mcc_wrb *wrb; in be_cmd_get_hsw_config() local
3948 wrb = wrb_from_mccq(adapter); in be_cmd_get_hsw_config()
3949 if (!wrb) { in be_cmd_get_hsw_config()
3954 req = embedded_payload(wrb); in be_cmd_get_hsw_config()
3958 OPCODE_COMMON_GET_HSW_CONFIG, sizeof(*req), wrb, in be_cmd_get_hsw_config()
3976 embedded_payload(wrb); in be_cmd_get_hsw_config()
4017 struct be_mcc_wrb *wrb; in be_cmd_get_acpi_wol_cap() local
4042 wrb = wrb_from_mbox(adapter); in be_cmd_get_acpi_wol_cap()
4043 if (!wrb) { in be_cmd_get_acpi_wol_cap()
4052 sizeof(*req), wrb, &cmd); in be_cmd_get_acpi_wol_cap()
4155 struct be_mcc_wrb *wrb; in be_cmd_get_ext_fat_capabilites() local
4166 wrb = wrb_from_mbox(adapter); in be_cmd_get_ext_fat_capabilites()
4167 if (!wrb) { in be_cmd_get_ext_fat_capabilites()
4175 cmd->size, wrb, cmd); in be_cmd_get_ext_fat_capabilites()
4188 struct be_mcc_wrb *wrb; in be_cmd_set_ext_fat_capabilites() local
4194 wrb = wrb_from_mccq(adapter); in be_cmd_set_ext_fat_capabilites()
4195 if (!wrb) { in be_cmd_set_ext_fat_capabilites()
4204 cmd->size, wrb, cmd); in be_cmd_set_ext_fat_capabilites()
4215 struct be_mcc_wrb *wrb; in be_cmd_query_port_name() local
4221 wrb = wrb_from_mbox(adapter); in be_cmd_query_port_name()
4222 req = embedded_payload(wrb); in be_cmd_query_port_name()
4225 OPCODE_COMMON_GET_PORT_NAME, sizeof(*req), wrb, in be_cmd_query_port_name()
4232 struct be_cmd_resp_get_port_name *resp = embedded_payload(wrb); in be_cmd_query_port_name()
4343 struct be_mcc_wrb *wrb; in be_cmd_get_func_config() local
4361 wrb = wrb_from_mbox(adapter); in be_cmd_get_func_config()
4362 if (!wrb) { in be_cmd_get_func_config()
4371 cmd.size, wrb, &cmd); in be_cmd_get_func_config()
4444 struct be_mcc_wrb wrb = {0}; in be_cmd_get_profile_config() local
4459 cmd.size, &wrb, &cmd); in be_cmd_get_profile_config()
4473 status = be_cmd_notify_wait(adapter, &wrb); in be_cmd_get_profile_config()
4532 struct be_mcc_wrb wrb = {0}; in be_cmd_set_profile_config() local
4546 &wrb, &cmd); in be_cmd_set_profile_config()
4552 status = be_cmd_notify_wait(adapter, &wrb); in be_cmd_set_profile_config()
4679 struct be_mcc_wrb *wrb; in be_cmd_manage_iface() local
4688 wrb = wrb_from_mccq(adapter); in be_cmd_manage_iface()
4689 if (!wrb) { in be_cmd_manage_iface()
4693 req = embedded_payload(wrb); in be_cmd_manage_iface()
4697 wrb, NULL); in be_cmd_manage_iface()
4732 struct be_mcc_wrb *wrb; in be_cmd_get_if_id() local
4739 wrb = wrb_from_mccq(adapter); in be_cmd_get_if_id()
4740 if (!wrb) { in be_cmd_get_if_id()
4744 req = embedded_payload(wrb); in be_cmd_get_if_id()
4748 wrb, NULL); in be_cmd_get_if_id()
4845 struct be_mcc_wrb *wrb; in be_cmd_enable_vf() local
4854 wrb = wrb_from_mccq(adapter); in be_cmd_enable_vf()
4855 if (!wrb) { in be_cmd_enable_vf()
4860 req = embedded_payload(wrb); in be_cmd_enable_vf()
4864 wrb, NULL); in be_cmd_enable_vf()
4876 struct be_mcc_wrb *wrb; in be_cmd_intr_set() local
4883 wrb = wrb_from_mbox(adapter); in be_cmd_intr_set()
4885 req = embedded_payload(wrb); in be_cmd_intr_set()
4889 wrb, NULL); in be_cmd_intr_set()
4903 struct be_mcc_wrb *wrb; in be_cmd_get_active_profile() local
4909 wrb = wrb_from_mbox(adapter); in be_cmd_get_active_profile()
4910 if (!wrb) { in be_cmd_get_active_profile()
4915 req = embedded_payload(wrb); in be_cmd_get_active_profile()
4919 wrb, NULL); in be_cmd_get_active_profile()
4924 embedded_payload(wrb); in be_cmd_get_active_profile()
4939 struct be_mcc_wrb *wrb; in __be_cmd_set_logical_link_config() local
4945 wrb = wrb_from_mccq(adapter); in __be_cmd_set_logical_link_config()
4946 if (!wrb) { in __be_cmd_set_logical_link_config()
4951 req = embedded_payload(wrb); in __be_cmd_set_logical_link_config()
4955 sizeof(*req), wrb, NULL); in __be_cmd_set_logical_link_config()
4999 struct be_mcc_wrb *wrb; in be_cmd_set_features() local
5005 wrb = wrb_from_mccq(adapter); in be_cmd_set_features()
5006 if (!wrb) { in be_cmd_set_features()
5011 req = embedded_payload(wrb); in be_cmd_set_features()
5015 sizeof(*req), wrb, NULL); in be_cmd_set_features()
5025 resp = embedded_payload(wrb); in be_cmd_set_features()
5049 struct be_mcc_wrb *wrb; in be_roce_mcc_cmd() local
5057 wrb = wrb_from_mccq(adapter); in be_roce_mcc_cmd()
5058 if (!wrb) { in be_roce_mcc_cmd()
5062 req = embedded_payload(wrb); in be_roce_mcc_cmd()
5063 resp = embedded_payload(wrb); in be_roce_mcc_cmd()
5066 hdr->opcode, wrb_payload_size, wrb, NULL); in be_roce_mcc_cmd()