Lines Matching refs:smp

46 enum smi_action smi_handle_dr_smp_send(struct ib_smp *smp,  in smi_handle_dr_smp_send()  argument
51 hop_ptr = smp->hop_ptr; in smi_handle_dr_smp_send()
52 hop_cnt = smp->hop_cnt; in smi_handle_dr_smp_send()
59 if (!ib_get_smp_direction(smp)) { in smi_handle_dr_smp_send()
62 smp->hop_ptr++; in smi_handle_dr_smp_send()
63 return (smp->initial_path[smp->hop_ptr] == in smi_handle_dr_smp_send()
73 smp->hop_ptr++; in smi_handle_dr_smp_send()
74 return (smp->initial_path[smp->hop_ptr] == in smi_handle_dr_smp_send()
81 smp->hop_ptr++; in smi_handle_dr_smp_send()
83 smp->dr_dlid == IB_LID_PERMISSIVE ? in smi_handle_dr_smp_send()
94 smp->hop_ptr--; in smi_handle_dr_smp_send()
95 return (smp->return_path[smp->hop_ptr] == in smi_handle_dr_smp_send()
104 smp->hop_ptr--; in smi_handle_dr_smp_send()
105 return (smp->return_path[smp->hop_ptr] == in smi_handle_dr_smp_send()
111 smp->hop_ptr--; in smi_handle_dr_smp_send()
114 smp->dr_slid == IB_LID_PERMISSIVE ? in smi_handle_dr_smp_send()
131 enum smi_action smi_handle_dr_smp_recv(struct ib_smp *smp, u8 node_type, in smi_handle_dr_smp_recv() argument
136 hop_ptr = smp->hop_ptr; in smi_handle_dr_smp_recv()
137 hop_cnt = smp->hop_cnt; in smi_handle_dr_smp_recv()
144 if (!ib_get_smp_direction(smp)) { in smi_handle_dr_smp_recv()
154 smp->return_path[hop_ptr] = port_num; in smi_handle_dr_smp_recv()
156 return (smp->initial_path[hop_ptr+1] <= phys_port_cnt ? in smi_handle_dr_smp_recv()
163 smp->return_path[hop_ptr] = port_num; in smi_handle_dr_smp_recv()
167 smp->dr_dlid == IB_LID_PERMISSIVE ? in smi_handle_dr_smp_recv()
179 smp->hop_ptr--; in smi_handle_dr_smp_recv()
180 return (smp->return_path[smp->hop_ptr] == in smi_handle_dr_smp_recv()
190 return (smp->return_path[hop_ptr-1] <= phys_port_cnt ? in smi_handle_dr_smp_recv()
196 if (smp->dr_slid == IB_LID_PERMISSIVE) { in smi_handle_dr_smp_recv()
198 smp->hop_ptr--; in smi_handle_dr_smp_recv()
212 enum smi_forward_action smi_check_forward_dr_smp(struct ib_smp *smp) in smi_check_forward_dr_smp() argument
216 hop_ptr = smp->hop_ptr; in smi_check_forward_dr_smp()
217 hop_cnt = smp->hop_cnt; in smi_check_forward_dr_smp()
219 if (!ib_get_smp_direction(smp)) { in smi_check_forward_dr_smp()
226 return (smp->dr_dlid == IB_LID_PERMISSIVE ? in smi_check_forward_dr_smp()
239 return (smp->dr_slid != IB_LID_PERMISSIVE ? in smi_check_forward_dr_smp()
249 int smi_get_fwd_port(struct ib_smp *smp) in smi_get_fwd_port() argument
251 return (!ib_get_smp_direction(smp) ? smp->initial_path[smp->hop_ptr+1] : in smi_get_fwd_port()
252 smp->return_path[smp->hop_ptr-1]); in smi_get_fwd_port()