Searched refs:q_params (Results 1 - 2 of 2) sorted by relevance

/linux-4.1.27/drivers/net/ethernet/broadcom/bnx2x/
H A Dbnx2x_sriov.c243 struct bnx2x_queue_state_params *q_params; bnx2x_vf_queue_create() local
249 q_params = &qctor->qstate; bnx2x_vf_queue_create()
250 q_params->q_obj = &bnx2x_vfq(vf, qid, sp_obj); bnx2x_vf_queue_create()
251 set_bit(RAMROD_COMP_WAIT, &q_params->ramrod_flags); bnx2x_vf_queue_create()
253 if (bnx2x_get_q_logical_state(bp, q_params->q_obj) == bnx2x_vf_queue_create()
260 q_params->cmd = BNX2X_Q_CMD_INIT; bnx2x_vf_queue_create()
261 rc = bnx2x_queue_state_change(bp, q_params); bnx2x_vf_queue_create()
265 memcpy(&q_params->params.setup, &qctor->prep_qsetup, bnx2x_vf_queue_create()
267 q_params->cmd = BNX2X_Q_CMD_SETUP; bnx2x_vf_queue_create()
268 rc = bnx2x_queue_state_change(bp, q_params); bnx2x_vf_queue_create()
285 struct bnx2x_queue_state_params q_params; bnx2x_vf_queue_destroy() local
291 memset(&q_params, 0, sizeof(struct bnx2x_queue_state_params)); bnx2x_vf_queue_destroy()
292 q_params.q_obj = &bnx2x_vfq(vf, qid, sp_obj); bnx2x_vf_queue_destroy()
293 set_bit(RAMROD_COMP_WAIT, &q_params.ramrod_flags); bnx2x_vf_queue_destroy()
295 if (bnx2x_get_q_logical_state(bp, q_params.q_obj) == bnx2x_vf_queue_destroy()
303 q_params.cmd = cmds[i]; bnx2x_vf_queue_destroy()
304 rc = bnx2x_queue_state_change(bp, &q_params); bnx2x_vf_queue_destroy()
2407 struct bnx2x_queue_state_params q_params; bnx2x_set_pf_tx_switching() local
2428 memset(&q_params, 0, sizeof(q_params)); bnx2x_set_pf_tx_switching()
2429 __set_bit(RAMROD_COMP_WAIT, &q_params.ramrod_flags); bnx2x_set_pf_tx_switching()
2430 q_params.cmd = BNX2X_Q_CMD_UPDATE; bnx2x_set_pf_tx_switching()
2432 &q_params.params.update.update_flags); bnx2x_set_pf_tx_switching()
2435 &q_params.params.update.update_flags); bnx2x_set_pf_tx_switching()
2438 &q_params.params.update.update_flags); bnx2x_set_pf_tx_switching()
2445 q_params.q_obj = &bnx2x_sp_obj(bp, fp).q_obj; for_each_eth_queue()
2448 rc = bnx2x_queue_state_change(bp, &q_params); for_each_eth_queue()
2813 struct bnx2x_queue_state_params q_params = {NULL}; bnx2x_set_vf_vlan() local
2910 __set_bit(RAMROD_COMP_WAIT, &q_params.ramrod_flags); bnx2x_set_vf_vlan()
2911 q_params.cmd = BNX2X_Q_CMD_UPDATE; bnx2x_set_vf_vlan()
2912 q_params.q_obj = &bnx2x_leading_vfq(vf, sp_obj); bnx2x_set_vf_vlan()
2913 update_params = &q_params.params.update; bnx2x_set_vf_vlan()
2942 rc = bnx2x_queue_state_change(bp, &q_params); bnx2x_set_vf_vlan()
H A Dbnx2x_main.c8658 struct bnx2x_queue_state_params *q_params, bnx2x_setup_tx_only()
8665 q_params->cmd = BNX2X_Q_CMD_SETUP_TX_ONLY; bnx2x_setup_tx_only()
8681 tx_index, q_params->q_obj->cids[FIRST_TX_COS_INDEX], bnx2x_setup_tx_only()
8682 q_params->q_obj->cids[tx_index], q_params->q_obj->cl_id, bnx2x_setup_tx_only()
8686 return bnx2x_queue_state_change(bp, q_params); bnx2x_setup_tx_only()
8703 struct bnx2x_queue_state_params q_params = {NULL}; bnx2x_setup_queue() local
8705 &q_params.params.setup; bnx2x_setup_queue()
8707 &q_params.params.tx_only; bnx2x_setup_queue()
8718 q_params.q_obj = &bnx2x_sp_obj(bp, fp).q_obj; bnx2x_setup_queue()
8720 __set_bit(RAMROD_COMP_WAIT, &q_params.ramrod_flags); bnx2x_setup_queue()
8723 bnx2x_pf_q_prep_init(bp, fp, &q_params.params.init); bnx2x_setup_queue()
8726 q_params.cmd = BNX2X_Q_CMD_INIT; bnx2x_setup_queue()
8729 rc = bnx2x_queue_state_change(bp, &q_params); bnx2x_setup_queue()
8754 q_params.cmd = BNX2X_Q_CMD_SETUP; bnx2x_setup_queue()
8760 rc = bnx2x_queue_state_change(bp, &q_params); bnx2x_setup_queue()
8772 rc = bnx2x_setup_tx_only(bp, fp, &q_params, bnx2x_setup_queue()
8788 struct bnx2x_queue_state_params q_params = {NULL}; bnx2x_stop_queue() local
8793 q_params.q_obj = &bnx2x_sp_obj(bp, fp).q_obj; bnx2x_stop_queue()
8795 __set_bit(RAMROD_COMP_WAIT, &q_params.ramrod_flags); bnx2x_stop_queue()
8809 q_params.cmd = BNX2X_Q_CMD_TERMINATE; bnx2x_stop_queue()
8810 memset(&q_params.params.terminate, 0, bnx2x_stop_queue()
8811 sizeof(q_params.params.terminate)); bnx2x_stop_queue()
8812 q_params.params.terminate.cid_index = tx_index; bnx2x_stop_queue()
8814 rc = bnx2x_queue_state_change(bp, &q_params); bnx2x_stop_queue()
8819 q_params.cmd = BNX2X_Q_CMD_CFC_DEL; bnx2x_stop_queue()
8820 memset(&q_params.params.cfc_del, 0, bnx2x_stop_queue()
8821 sizeof(q_params.params.cfc_del)); bnx2x_stop_queue()
8822 q_params.params.cfc_del.cid_index = tx_index; bnx2x_stop_queue()
8823 rc = bnx2x_queue_state_change(bp, &q_params); bnx2x_stop_queue()
8829 q_params.cmd = BNX2X_Q_CMD_HALT; bnx2x_stop_queue()
8830 rc = bnx2x_queue_state_change(bp, &q_params); bnx2x_stop_queue()
8835 q_params.cmd = BNX2X_Q_CMD_TERMINATE; bnx2x_stop_queue()
8836 memset(&q_params.params.terminate, 0, bnx2x_stop_queue()
8837 sizeof(q_params.params.terminate)); bnx2x_stop_queue()
8838 q_params.params.terminate.cid_index = FIRST_TX_COS_INDEX; bnx2x_stop_queue()
8839 rc = bnx2x_queue_state_change(bp, &q_params); bnx2x_stop_queue()
8843 q_params.cmd = BNX2X_Q_CMD_CFC_DEL; bnx2x_stop_queue()
8844 memset(&q_params.params.cfc_del, 0, bnx2x_stop_queue()
8845 sizeof(q_params.params.cfc_del)); bnx2x_stop_queue()
8846 q_params.params.cfc_del.cid_index = FIRST_TX_COS_INDEX; bnx2x_stop_queue()
8847 return bnx2x_queue_state_change(bp, &q_params); bnx2x_stop_queue()
14667 struct bnx2x_queue_state_params q_params; bnx2x_enable_ptp_packets() local
14671 memset(&q_params, 0, sizeof(q_params)); bnx2x_enable_ptp_packets()
14672 __set_bit(RAMROD_COMP_WAIT, &q_params.ramrod_flags); bnx2x_enable_ptp_packets()
14673 q_params.cmd = BNX2X_Q_CMD_UPDATE; bnx2x_enable_ptp_packets()
14675 &q_params.params.update.update_flags); bnx2x_enable_ptp_packets()
14677 &q_params.params.update.update_flags); bnx2x_enable_ptp_packets()
14684 q_params.q_obj = &bnx2x_sp_obj(bp, fp).q_obj; for_each_eth_queue()
14687 rc = bnx2x_queue_state_change(bp, &q_params); for_each_eth_queue()
8657 bnx2x_setup_tx_only(struct bnx2x *bp, struct bnx2x_fastpath *fp, struct bnx2x_queue_state_params *q_params, struct bnx2x_queue_setup_tx_only_params *tx_only_params, int tx_index, bool leading) bnx2x_setup_tx_only() argument

Completed in 178 milliseconds