Lines Matching defs:peers
224 smb_slot_peer_t peers[2];
229 slot.smbsl_hdr.smbh_len = sizeof (smb_slot_t) + sizeof (peers);
243 peers[0].smbspb_group_no = htole16(1);
244 peers[0].smbspb_bus = 0x42;
245 peers[0].smbspb_df = 0x42;
246 peers[0].smbspb_width = SMB_SLW_8X;
248 peers[1].smbspb_group_no = htole16(1);
249 peers[1].smbspb_bus = 0x23;
250 peers[1].smbspb_df = 0x31;
251 peers[1].smbspb_width = SMB_SLW_8X;
254 (void) smbios_test_table_append_raw(table, peers, sizeof (peers));
275 smbios_slot_peer_t *peers;
318 warnx("incorrect number of slot peers, found %u",
323 if (smbios_info_slot_peers(hdl, sp.smbstr_id, &npeers, &peers) != 0) {
329 errx(EXIT_FAILURE, "got wrong number of slot peers: %u\n",
333 if (peers[0].smblp_group != 1) {
334 warnx("incorrect group for peer 0: %u", peers[0].smblp_group);
338 if (peers[0].smblp_data_width != SMB_SLW_8X) {
340 peers[0].smblp_data_width);
344 if (peers[0].smblp_device != (0x42 >> 3)) {
346 peers[0].smblp_device);
350 if (peers[0].smblp_function != (0x42 & 0x7)) {
352 peers[0].smblp_function);
356 if (peers[1].smblp_group != 1) {
357 warnx("incorrect group for peer 1: %u", peers[1].smblp_group);
361 if (peers[1].smblp_device != (0x31 >> 3)) {
363 peers[1].smblp_device);
367 if (peers[1].smblp_function != (0x31 & 0x7)) {
369 peers[1].smblp_function);
373 if (peers[1].smblp_data_width != SMB_SLW_8X) {
375 peers[1].smblp_data_width);
379 smbios_info_slot_peers_free(hdl, npeers, peers);