Lines Matching refs:p_data
146 qed_dcbx_dp_protocol(struct qed_hwfn *p_hwfn, struct qed_dcbx_results *p_data) in qed_dcbx_dp_protocol() argument
152 p_data->dcbx_enabled); in qed_dcbx_dp_protocol()
159 qed_dcbx_app_update[i].name, p_data->arr[id].update, in qed_dcbx_dp_protocol()
160 p_data->arr[id].enable, p_data->arr[id].priority, in qed_dcbx_dp_protocol()
161 p_data->arr[id].tc, p_hwfn->hw_info.num_active_tc); in qed_dcbx_dp_protocol()
166 qed_dcbx_set_params(struct qed_dcbx_results *p_data, in qed_dcbx_set_params() argument
173 p_data->arr[type].enable = enable; in qed_dcbx_set_params()
174 p_data->arr[type].priority = prio; in qed_dcbx_set_params()
175 p_data->arr[type].tc = tc; in qed_dcbx_set_params()
177 p_data->arr[type].update = UPDATE_DCB; in qed_dcbx_set_params()
179 p_data->arr[type].update = DONT_UPDATE_DCB_DSCP; in qed_dcbx_set_params()
182 p_data->arr[type].dont_add_vlan0 = true; in qed_dcbx_set_params()
198 qed_dcbx_update_app_info(struct qed_dcbx_results *p_data, in qed_dcbx_update_app_info() argument
215 qed_dcbx_set_params(p_data, p_hwfn, p_ptt, app_tlv, enable, in qed_dcbx_update_app_info()
251 struct qed_dcbx_results *p_data, in qed_dcbx_process_tlv() argument
294 qed_dcbx_update_app_info(p_data, p_hwfn, p_ptt, true, in qed_dcbx_process_tlv()
301 p_data->arr[DCBX_PROTOCOL_ETH].tc = p_hwfn->ufp_info.tc; in qed_dcbx_process_tlv()
309 tc = p_data->arr[DCBX_PROTOCOL_ETH].tc; in qed_dcbx_process_tlv()
310 priority = p_data->arr[DCBX_PROTOCOL_ETH].priority; in qed_dcbx_process_tlv()
312 if (p_data->arr[type].update) in qed_dcbx_process_tlv()
316 qed_dcbx_update_app_info(p_data, p_hwfn, p_ptt, false, enable, in qed_dcbx_process_tlv()
373 struct qed_dcbx_mib_meta_data *p_data, in qed_dcbx_copy_mib() argument
385 qed_memcpy_from(p_hwfn, p_ptt, p_data->lldp_remote, in qed_dcbx_copy_mib()
386 p_data->addr, p_data->size); in qed_dcbx_copy_mib()
387 prefix_seq_num = p_data->lldp_remote->prefix_seq_num; in qed_dcbx_copy_mib()
388 suffix_seq_num = p_data->lldp_remote->suffix_seq_num; in qed_dcbx_copy_mib()
390 qed_memcpy_from(p_hwfn, p_ptt, p_data->mib, in qed_dcbx_copy_mib()
391 p_data->addr, p_data->size); in qed_dcbx_copy_mib()
392 prefix_seq_num = p_data->mib->prefix_seq_num; in qed_dcbx_copy_mib()
393 suffix_seq_num = p_data->mib->suffix_seq_num; in qed_dcbx_copy_mib()
897 struct qed_dcbx_results *p_data; in qed_dcbx_mib_update_event() local
903 p_data = &p_hwfn->p_dcbx_info->results; in qed_dcbx_mib_update_event()
904 val = (0x1 << p_data->arr[DCBX_PROTOCOL_ROCE].tc) | in qed_dcbx_mib_update_event()
905 (0x1 << p_data->arr[DCBX_PROTOCOL_ROCE_V2].tc); in qed_dcbx_mib_update_event()
931 static void qed_dcbx_update_protocol_data(struct protocol_dcb_data *p_data, in qed_dcbx_update_protocol_data() argument
935 p_data->dcb_enable_flag = p_src->arr[type].enable; in qed_dcbx_update_protocol_data()
936 p_data->dcb_priority = p_src->arr[type].priority; in qed_dcbx_update_protocol_data()
937 p_data->dcb_tc = p_src->arr[type].tc; in qed_dcbx_update_protocol_data()
938 p_data->dcb_dont_add_vlan0 = p_src->arr[type].dont_add_vlan0; in qed_dcbx_update_protocol_data()