/openbsd/usr.sbin/sasyncd/ |
H A D | pfkey.c | 412 struct sadb_msg *sadb = (struct sadb_msg *)data; in pfkey_queue_message() local 425 sadb->sadb_msg_pid = getpid(); in pfkey_queue_message() 426 sadb->sadb_msg_seq = seq++; in pfkey_queue_message() 428 pfkey_print_type(sadb), sadb->sadb_msg_len * CHUNK, in pfkey_queue_message() 429 sadb->sadb_msg_seq); in pfkey_queue_message() 457 u_int8_t *sadb, *spd, *max, *next, *sendbuf; in pfkey_snapshot() local 473 if (sadbsz && sadb) { in pfkey_snapshot() 474 dump_buf(2, sadb, sadbsz, "pfkey_snapshot: SADB data"); in pfkey_snapshot() 475 max = sadb + sadbsz; in pfkey_snapshot() 476 for (next = sadb; next < max; in pfkey_snapshot() [all …]
|
H A D | monitor.c | 264 monitor_get_pfkey_snap(u_int8_t **sadb, u_int32_t *sadbsize, u_int8_t **spd, in monitor_get_pfkey_snap() argument 275 *sadb = *spd = NULL; in monitor_get_pfkey_snap() 280 *sadb = malloc(*sadbsize); in monitor_get_pfkey_snap() 281 if (!*sadb) { in monitor_get_pfkey_snap() 286 rbytes = m_read(m_state.s, *sadb, *sadbsize); in monitor_get_pfkey_snap() 288 freezero(*sadb, *sadbsize); in monitor_get_pfkey_snap() 295 freezero(*sadb, *sadbsize); in monitor_get_pfkey_snap() 303 freezero(*sadb, *sadbsize); in monitor_get_pfkey_snap() 309 freezero(*sadb, *sadbsize); in monitor_get_pfkey_snap()
|
/openbsd/sbin/iked/ |
H A D | pfkey.c | 462 struct sadb_sa sadb; in pfkey_sa() local 530 bzero(&sadb, sizeof(sadb)); in pfkey_sa() 531 sadb.sadb_sa_len = sizeof(sadb) / 8; in pfkey_sa() 532 sadb.sadb_sa_exttype = SADB_EXT_SA; in pfkey_sa() 535 sadb.sadb_sa_replay = 64; in pfkey_sa() 736 iov[iov_cnt].iov_base = &sadb; in pfkey_sa() 884 struct sadb_sa sadb; in pfkey_sa_lookup() local 925 bzero(&sadb, sizeof(sadb)); in pfkey_sa_lookup() 926 sadb.sadb_sa_len = sizeof(sadb) / 8; in pfkey_sa_lookup() 930 sadb.sadb_sa_replay = 64; in pfkey_sa_lookup() [all …]
|
/openbsd/sys/dev/pci/drm/radeon/ |
H A D | dce3_1_afmt.c | 31 u8 *sadb, int sad_count) in dce3_2_afmt_hdmi_write_speaker_allocation() argument 42 tmp |= SPEAKER_ALLOCATION(sadb[0]); in dce3_2_afmt_hdmi_write_speaker_allocation() 49 u8 *sadb, int sad_count) in dce3_2_afmt_dp_write_speaker_allocation() argument 60 tmp |= SPEAKER_ALLOCATION(sadb[0]); in dce3_2_afmt_dp_write_speaker_allocation()
|
H A D | radeon_audio.h | 53 u8 *sadb, int sad_count); 87 u8 *sadb, int sad_count); 89 u8 *sadb, int sad_count);
|
H A D | dce6_afmt.h | 40 u8 *sadb, int sad_count); 42 u8 *sadb, int sad_count);
|
H A D | evergreen_hdmi.h | 53 u8 *sadb, int sad_count); 55 u8 *sadb, int sad_count);
|
H A D | dce6_afmt.c | 154 u8 *sadb, int sad_count) in dce6_afmt_hdmi_write_speaker_allocation() argument 171 tmp |= SPEAKER_ALLOCATION(sadb[0]); in dce6_afmt_hdmi_write_speaker_allocation() 179 u8 *sadb, int sad_count) in dce6_afmt_dp_write_speaker_allocation() argument 196 tmp |= SPEAKER_ALLOCATION(sadb[0]); in dce6_afmt_dp_write_speaker_allocation()
|
H A D | evergreen_hdmi.c | 121 u8 *sadb, int sad_count) in dce4_afmt_hdmi_write_speaker_allocation() argument 132 tmp |= SPEAKER_ALLOCATION(sadb[0]); in dce4_afmt_hdmi_write_speaker_allocation() 139 u8 *sadb, int sad_count) in dce4_afmt_dp_write_speaker_allocation() argument 150 tmp |= SPEAKER_ALLOCATION(sadb[0]); in dce4_afmt_dp_write_speaker_allocation()
|
H A D | radeon_audio.c | 329 u8 *sadb = NULL; in radeon_audio_write_speaker_allocation() local 336 &sadb); in radeon_audio_write_speaker_allocation() 344 radeon_encoder->audio->write_speaker_allocation(encoder, sadb, sad_count); in radeon_audio_write_speaker_allocation() 346 kfree(sadb); in radeon_audio_write_speaker_allocation()
|
/openbsd/sys/dev/pci/drm/amd/display/amdgpu_dm/ |
H A D | amdgpu_dm_helpers.c | 104 uint8_t *sadb = NULL; in dm_helpers_parse_edid_caps() local 144 sadb_count = drm_edid_to_speaker_allocation((struct edid *) edid->raw_edid, &sadb); in dm_helpers_parse_edid_caps() 152 edid_caps->speaker_flags = sadb[0]; in dm_helpers_parse_edid_caps() 157 kfree(sadb); in dm_helpers_parse_edid_caps()
|
/openbsd/sys/dev/pci/drm/include/drm/ |
H A D | drm_edid.h | 386 int drm_edid_to_speaker_allocation(const struct edid *edid, u8 **sadb);
|
/openbsd/sys/dev/pci/drm/amd/amdgpu/ |
H A D | dce_v6_0.c | 1185 u8 *sadb = NULL; in dce_v6_0_audio_write_speaker_allocation() local 1203 sad_count = drm_edid_to_speaker_allocation(amdgpu_connector_edid(connector), &sadb); in dce_v6_0_audio_write_speaker_allocation() 1226 SPEAKER_ALLOCATION, sadb[0]); in dce_v6_0_audio_write_speaker_allocation() 1234 kfree(sadb); in dce_v6_0_audio_write_speaker_allocation()
|
H A D | dce_v8_0.c | 1236 u8 *sadb = NULL; in dce_v8_0_audio_write_speaker_allocation() local 1258 sad_count = drm_edid_to_speaker_allocation(amdgpu_connector_edid(connector), &sadb); in dce_v8_0_audio_write_speaker_allocation() 1271 tmp |= (sadb[0] << AZALIA_F0_CODEC_PIN_CONTROL_CHANNEL_SPEAKER__SPEAKER_ALLOCATION__SHIFT); in dce_v8_0_audio_write_speaker_allocation() 1276 kfree(sadb); in dce_v8_0_audio_write_speaker_allocation()
|
H A D | dce_v10_0.c | 1279 u8 *sadb = NULL; in dce_v10_0_audio_write_speaker_allocation() local 1299 sad_count = drm_edid_to_speaker_allocation(amdgpu_connector_edid(connector), &sadb); in dce_v10_0_audio_write_speaker_allocation() 1315 SPEAKER_ALLOCATION, sadb[0]); in dce_v10_0_audio_write_speaker_allocation() 1322 kfree(sadb); in dce_v10_0_audio_write_speaker_allocation()
|
H A D | dce_v11_0.c | 1311 u8 *sadb = NULL; in dce_v11_0_audio_write_speaker_allocation() local 1331 sad_count = drm_edid_to_speaker_allocation(amdgpu_connector_edid(connector), &sadb); in dce_v11_0_audio_write_speaker_allocation() 1347 SPEAKER_ALLOCATION, sadb[0]); in dce_v11_0_audio_write_speaker_allocation() 1354 kfree(sadb); in dce_v11_0_audio_write_speaker_allocation()
|
/openbsd/sys/dev/pci/drm/ |
H A D | drm_edid.c | 5685 u8 **sadb) in _drm_edid_to_speaker_allocation() argument 5695 *sadb = kmemdup(db->data, cea_db_payload_len(db), in _drm_edid_to_speaker_allocation() 5697 if (!*sadb) in _drm_edid_to_speaker_allocation() 5722 int drm_edid_to_speaker_allocation(const struct edid *edid, u8 **sadb) in drm_edid_to_speaker_allocation() argument 5727 sadb); in drm_edid_to_speaker_allocation()
|