Lines Matching refs:cp

143                   const u_char *cp, u_int len)  in aoev1_issue_print()  argument
149 bittok2str(aoev1_aflag_bitmap_str, "none", GET_U_1(cp))); in aoev1_issue_print()
150 cp += 1; in aoev1_issue_print()
153 ND_PRINT(", Err/Feature: %u", GET_U_1(cp)); in aoev1_issue_print()
154 cp += 1; in aoev1_issue_print()
157 ND_PRINT(", Sector Count: %u", GET_U_1(cp)); in aoev1_issue_print()
158 cp += 1; in aoev1_issue_print()
161 ND_PRINT(", Cmd/Status: %u", GET_U_1(cp)); in aoev1_issue_print()
162 cp += 1; in aoev1_issue_print()
165 ND_PRINT("\n\tlba0: %u", GET_U_1(cp)); in aoev1_issue_print()
166 cp += 1; in aoev1_issue_print()
169 ND_PRINT(", lba1: %u", GET_U_1(cp)); in aoev1_issue_print()
170 cp += 1; in aoev1_issue_print()
173 ND_PRINT(", lba2: %u", GET_U_1(cp)); in aoev1_issue_print()
174 cp += 1; in aoev1_issue_print()
177 ND_PRINT(", lba3: %u", GET_U_1(cp)); in aoev1_issue_print()
178 cp += 1; in aoev1_issue_print()
181 ND_PRINT(", lba4: %u", GET_U_1(cp)); in aoev1_issue_print()
182 cp += 1; in aoev1_issue_print()
185 ND_PRINT(", lba5: %u", GET_U_1(cp)); in aoev1_issue_print()
186 cp += 1; in aoev1_issue_print()
189 ND_TCHECK_2(cp); in aoev1_issue_print()
190 cp += 2; in aoev1_issue_print()
199 ND_TCHECK_LEN(cp, len); in aoev1_issue_print()
204 const u_char *cp, u_int len) in aoev1_query_print() argument
211 ND_PRINT("\n\tBuffer Count: %u", GET_BE_U_2(cp)); in aoev1_query_print()
212 cp += 2; in aoev1_query_print()
215 ND_PRINT(", Firmware Version: %u", GET_BE_U_2(cp)); in aoev1_query_print()
216 cp += 2; in aoev1_query_print()
219 ND_PRINT(", Sector Count: %u", GET_U_1(cp)); in aoev1_query_print()
220 cp += 1; in aoev1_query_print()
223 ND_PRINT(", AoE: %u, CCmd: %s", (GET_U_1(cp) & 0xF0) >> 4, in aoev1_query_print()
224 tok2str(aoev1_ccmd_str, "Unknown (0x02x)", GET_U_1(cp) & 0x0F)); in aoev1_query_print()
225 cp += 1; in aoev1_query_print()
228 cslen = GET_BE_U_2(cp); in aoev1_query_print()
229 cp += 2; in aoev1_query_print()
236 (void)nd_printn(ndo, cp, cslen, NULL); in aoev1_query_print()
242 ND_TCHECK_LEN(cp, len); in aoev1_query_print()
247 const u_char *cp, u_int len) in aoev1_mac_print() argument
254 cp += 1; in aoev1_mac_print()
258 tok2str(aoev1_mcmd_str, "Unknown (0x%02x)", GET_U_1(cp))); in aoev1_mac_print()
259 cp += 1; in aoev1_mac_print()
263 tok2str(aoev1_merror_str, "Unknown (0x%02x)", GET_U_1(cp))); in aoev1_mac_print()
264 cp += 1; in aoev1_mac_print()
267 dircount = GET_U_1(cp); in aoev1_mac_print()
268 cp += 1; in aoev1_mac_print()
276 cp += 1; in aoev1_mac_print()
280 tok2str(aoev1_dcmd_str, "Unknown (0x%02x)", GET_U_1(cp))); in aoev1_mac_print()
281 cp += 1; in aoev1_mac_print()
284 ND_PRINT(", Ethernet Address: %s", GET_ETHERADDR_STRING(cp)); in aoev1_mac_print()
285 cp += MAC_ADDR_LEN; in aoev1_mac_print()
292 ND_TCHECK_LEN(cp, len); in aoev1_mac_print()
297 const u_char *cp, u_int len) in aoev1_reserve_print() argument
305 tok2str(aoev1_rcmd_str, "Unknown (0x%02x)", GET_U_1(cp))); in aoev1_reserve_print()
306 cp += 1; in aoev1_reserve_print()
309 nmacs = GET_U_1(cp); in aoev1_reserve_print()
310 cp += 1; in aoev1_reserve_print()
317 ND_PRINT("\n\tEthernet Address %u: %s", i, GET_ETHERADDR_STRING(cp)); in aoev1_reserve_print()
318 cp += MAC_ADDR_LEN; in aoev1_reserve_print()
325 ND_TCHECK_LEN(cp, len); in aoev1_reserve_print()
331 const u_char *cp, u_int len) in aoev1_print() argument
339 flags = GET_U_1(cp) & 0x0F; in aoev1_print()
341 cp += 1; in aoev1_print()
348 tok2str(aoev1_errcode_str, "Invalid (%u)", GET_U_1(cp))); in aoev1_print()
349 cp += 1; in aoev1_print()
352 ND_PRINT("\n\tMajor: 0x%04x", GET_BE_U_2(cp)); in aoev1_print()
353 cp += 2; in aoev1_print()
356 ND_PRINT(", Minor: 0x%02x", GET_U_1(cp)); in aoev1_print()
357 cp += 1; in aoev1_print()
360 command = GET_U_1(cp); in aoev1_print()
361 cp += 1; in aoev1_print()
365 ND_PRINT(", Tag: 0x%08x", GET_BE_U_4(cp)); in aoev1_print()
366 cp += 4; in aoev1_print()
376 cmd_decoder(ndo, cp, len); in aoev1_print()
381 ND_TCHECK_LEN(cp, len); in aoev1_print()
386 const u_char *cp, const u_int len) in aoe_print() argument
396 ver = (GET_U_1(cp) & 0xF0) >> 4; in aoe_print()
402 aoev1_print(ndo, cp, len); in aoe_print()
409 ND_TCHECK_LEN(cp, len); in aoe_print()