/freebsd/sys/dev/qlnx/qlnxe/ |
H A D | ecore_spq.c | 138 struct ecore_spq_entry *p_ent, in __ecore_spq_block() argument 145 comp_done = (struct ecore_spq_comp_done *)p_ent->comp_cb.cookie; in __ecore_spq_block() 173 struct ecore_spq_entry *p_ent, in ecore_spq_block() argument 184 rc = __ecore_spq_block(p_hwfn, p_ent, p_fw_ret, false); in ecore_spq_block() 190 rc = __ecore_spq_block(p_hwfn, p_ent, p_fw_ret, true); in ecore_spq_block() 207 rc = __ecore_spq_block(p_hwfn, p_ent, p_fw_ret, true); in ecore_spq_block() 211 comp_done = (struct ecore_spq_comp_done *)p_ent->comp_cb.cookie; in ecore_spq_block() 220 OSAL_LE32_TO_CPU(p_ent->elem.hdr.cid), in ecore_spq_block() 221 p_ent->elem.hdr.cmd_id, p_ent->elem.hdr.protocol_id, in ecore_spq_block() 222 OSAL_LE16_TO_CPU(p_ent->elem.hdr.echo)); in ecore_spq_block() [all …]
|
H A D | ecore_sp_commands.c | 60 struct ecore_spq_entry *p_ent = OSAL_NULL; in ecore_sp_init_request() local 72 p_ent = *pp_ent; in ecore_sp_init_request() 73 p_ent->elem.hdr.cid = OSAL_CPU_TO_LE32(opaque_cid); in ecore_sp_init_request() 74 p_ent->elem.hdr.cmd_id = cmd; in ecore_sp_init_request() 75 p_ent->elem.hdr.protocol_id = protocol; in ecore_sp_init_request() 76 p_ent->priority = ECORE_SPQ_PRIORITY_NORMAL; in ecore_sp_init_request() 77 p_ent->comp_mode = p_data->comp_mode; in ecore_sp_init_request() 78 p_ent->comp_done.done = 0; in ecore_sp_init_request() 80 switch (p_ent->comp_mode) { in ecore_sp_init_request() 82 p_ent->comp_cb.cookie = &p_ent->comp_done; in ecore_sp_init_request() [all …]
|
H A D | ecore_roce.c | 397 struct ecore_spq_entry *p_ent; in ecore_roce_sp_create_responder() local 427 rc = ecore_sp_init_request(p_hwfn, &p_ent, ROCE_RAMROD_CREATE_QP, in ecore_roce_sp_create_responder() 432 p_ramrod = &p_ent->ramrod.roce_create_qp_resp; in ecore_roce_sp_create_responder() 530 rc = ecore_spq_post(p_hwfn, p_ent, OSAL_NULL); in ecore_roce_sp_create_responder() 566 struct ecore_spq_entry *p_ent; in ecore_roce_sp_create_requester() local 595 rc = ecore_sp_init_request(p_hwfn, &p_ent, in ecore_roce_sp_create_requester() 601 p_ramrod = &p_ent->ramrod.roce_create_qp_req; in ecore_roce_sp_create_requester() 683 rc = ecore_spq_post(p_hwfn, p_ent, OSAL_NULL); in ecore_roce_sp_create_requester() 717 struct ecore_spq_entry *p_ent; in ecore_roce_sp_modify_responder() local 734 rc = ecore_sp_init_request(p_hwfn, &p_ent, in ecore_roce_sp_modify_responder() [all …]
|
H A D | ecore_l2.c | 380 struct ecore_spq_entry *p_ent = OSAL_NULL; in ecore_sp_eth_vport_start() local 397 rc = ecore_sp_init_request(p_hwfn, &p_ent, in ecore_sp_eth_vport_start() 403 p_ramrod = &p_ent->ramrod.vport_start; in ecore_sp_eth_vport_start() 476 return ecore_spq_post(p_hwfn, p_ent, OSAL_NULL); in ecore_sp_eth_vport_start() 740 struct ecore_spq_entry *p_ent = OSAL_NULL; in ecore_sp_vport_update() local 760 rc = ecore_sp_init_request(p_hwfn, &p_ent, in ecore_sp_vport_update() 767 p_ramrod = &p_ent->ramrod.vport_update; in ecore_sp_vport_update() 813 ecore_spq_return_entry(p_hwfn, p_ent); in ecore_sp_vport_update() 822 return ecore_spq_post(p_hwfn, p_ent, OSAL_NULL); in ecore_sp_vport_update() 831 struct ecore_spq_entry *p_ent; in ecore_sp_vport_stop() local [all …]
|
H A D | ecore_rdma.c | 804 struct ecore_spq_entry *p_ent; in ecore_rdma_start_fw() local 822 rc = ecore_sp_init_request(p_hwfn, &p_ent, RDMA_RAMROD_FUNC_INIT, in ecore_rdma_start_fw() 829 &p_ent->ramrod.iwarp_init_func); in ecore_rdma_start_fw() 830 p_ramrod = &p_ent->ramrod.iwarp_init_func.rdma; in ecore_rdma_start_fw() 834 &p_ent->ramrod.roce_init_func, p_ptt); in ecore_rdma_start_fw() 841 p_ramrod = &p_ent->ramrod.roce_init_func.rdma; in ecore_rdma_start_fw() 846 p_ent->ramrod.roce_init_func.roce.ll2_queue_id = ll2_queue_id; in ecore_rdma_start_fw() 889 rc = ecore_spq_post(p_hwfn, p_ent, OSAL_NULL); in ecore_rdma_start_fw() 976 struct ecore_spq_entry *p_ent; in ecore_rdma_stop() local 1055 rc = ecore_sp_init_request(p_hwfn, &p_ent, RDMA_RAMROD_FUNC_CLOSE, in ecore_rdma_stop() [all …]
|
H A D | ecore_iwarp.c | 257 struct ecore_spq_entry *p_ent; in ecore_iwarp_create_qp() local 292 rc = ecore_sp_init_request(p_hwfn, &p_ent, in ecore_iwarp_create_qp() 298 p_ramrod = &p_ent->ramrod.iwarp_create_qp; in ecore_iwarp_create_qp() 345 rc = ecore_spq_post(p_hwfn, p_ent, OSAL_NULL); in ecore_iwarp_create_qp() 367 struct ecore_spq_entry *p_ent; in ecore_iwarp_modify_fw() local 376 rc = ecore_sp_init_request(p_hwfn, &p_ent, in ecore_iwarp_modify_fw() 383 p_ramrod = &p_ent->ramrod.iwarp_modify_qp; in ecore_iwarp_modify_fw() 391 rc = ecore_spq_post(p_hwfn, p_ent, OSAL_NULL); in ecore_iwarp_modify_fw() 538 struct ecore_spq_entry *p_ent; in ecore_iwarp_fw_destroy() local 547 rc = ecore_sp_init_request(p_hwfn, &p_ent, in ecore_iwarp_fw_destroy() [all …]
|
H A D | ecore_ll2.c | 833 struct ecore_spq_entry *p_ent = OSAL_NULL; in ecore_sp_ll2_rx_queue_start() local 844 rc = ecore_sp_init_request(p_hwfn, &p_ent, in ecore_sp_ll2_rx_queue_start() 850 p_ramrod = &p_ent->ramrod.core_rx_queue_start; in ecore_sp_ll2_rx_queue_start() 888 return ecore_spq_post(p_hwfn, p_ent, OSAL_NULL); in ecore_sp_ll2_rx_queue_start() 897 struct ecore_spq_entry *p_ent = OSAL_NULL; in ecore_sp_ll2_tx_queue_start() local 916 rc = ecore_sp_init_request(p_hwfn, &p_ent, in ecore_sp_ll2_tx_queue_start() 922 p_ramrod = &p_ent->ramrod.core_tx_queue_start; in ecore_sp_ll2_tx_queue_start() 977 rc = ecore_spq_post(p_hwfn, p_ent, OSAL_NULL); in ecore_sp_ll2_tx_queue_start() 991 struct ecore_spq_entry *p_ent = OSAL_NULL; in ecore_sp_ll2_rx_queue_stop() local 1001 rc = ecore_sp_init_request(p_hwfn, &p_ent, in ecore_sp_ll2_rx_queue_stop() [all …]
|
H A D | ecore_spq.h | 231 struct ecore_spq_entry *p_ent, 280 struct ecore_spq_entry *p_ent);
|
H A D | ecore_sriov.c | 108 struct ecore_spq_entry *p_ent = OSAL_NULL; in ecore_sp_vf_start() local 119 rc = ecore_sp_init_request(p_hwfn, &p_ent, in ecore_sp_vf_start() 125 p_ramrod = &p_ent->ramrod.vf_start; in ecore_sp_vf_start() 162 return ecore_spq_post(p_hwfn, p_ent, OSAL_NULL); in ecore_sp_vf_start() 170 struct ecore_spq_entry *p_ent = OSAL_NULL; in ecore_sp_vf_stop() local 180 rc = ecore_sp_init_request(p_hwfn, &p_ent, in ecore_sp_vf_stop() 186 p_ramrod = &p_ent->ramrod.vf_stop; in ecore_sp_vf_stop() 190 return ecore_spq_post(p_hwfn, p_ent, OSAL_NULL); in ecore_sp_vf_stop()
|