/openbmc/linux/crypto/asymmetric_keys/ |
H A D | x509_cert_parser.c | 65 struct asymmetric_key_id *kid; in x509_cert_parse() local 122 kid = asymmetric_key_generate_id(cert->raw_serial, in x509_cert_parse() 126 if (IS_ERR(kid)) { in x509_cert_parse() 127 ret = PTR_ERR(kid); in x509_cert_parse() 130 cert->id = kid; in x509_cert_parse() 446 struct asymmetric_key_id *kid; in x509_note_issuer() local 452 kid = asymmetric_key_generate_id(value, vlen, "", 0); in x509_note_issuer() 453 if (IS_ERR(kid)) in x509_note_issuer() 454 return PTR_ERR(kid); in x509_note_issuer() 455 ctx->cert->sig->auth_ids[2] = kid; in x509_note_issuer() [all …]
|
H A D | asymmetric_type.c | 153 struct asymmetric_key_id *kid; in asymmetric_key_generate_id() local 155 kid = kmalloc(sizeof(struct asymmetric_key_id) + len_1 + len_2, in asymmetric_key_generate_id() 157 if (!kid) in asymmetric_key_generate_id() 159 kid->len = len_1 + len_2; in asymmetric_key_generate_id() 160 memcpy(kid->data, val_1, len_1); in asymmetric_key_generate_id() 161 memcpy(kid->data + len_1, val_2, len_2); in asymmetric_key_generate_id() 162 return kid; in asymmetric_key_generate_id() 367 const struct asymmetric_key_id *kid; in asymmetric_key_describe() local 378 kid = kids->id[1]; in asymmetric_key_describe() 380 n = kid->len; in asymmetric_key_describe() [all …]
|
H A D | pkcs7_parser.c | 673 struct asymmetric_key_id *kid; in pkcs7_note_signed_info() local 682 kid = asymmetric_key_generate_id(ctx->raw_serial, in pkcs7_note_signed_info() 687 kid = asymmetric_key_generate_id(ctx->raw_skid, in pkcs7_note_signed_info() 691 if (IS_ERR(kid)) in pkcs7_note_signed_info() 692 return PTR_ERR(kid); in pkcs7_note_signed_info() 694 pr_devel("SINFO KID: %u [%*phN]\n", kid->len, kid->len, kid->data); in pkcs7_note_signed_info() 696 sinfo->sig->auth_ids[0] = kid; in pkcs7_note_signed_info()
|
/openbmc/qemu/hw/core/ |
H A D | bus.c | 42 BusChild *kid; in qbus_walk_children() local 53 QTAILQ_FOREACH_RCU(kid, &bus->children, sibling) { in qbus_walk_children() 54 err = qdev_walk_children(kid->child, in qbus_walk_children() 93 BusChild *kid; in bus_reset_child_foreach() local 96 QTAILQ_FOREACH_RCU(kid, &bus->children, sibling) { in bus_reset_child_foreach() 97 cb(OBJECT(kid->child), opaque, type); in bus_reset_child_foreach() 141 BusChild *kid; in bus_unparent() local 146 while ((kid = QTAILQ_FIRST(&bus->children)) != NULL) { in bus_unparent() 147 DeviceState *dev = kid->child; in bus_unparent() 193 BusChild *kid; in bus_set_realized() local [all …]
|
H A D | qdev.c | 52 static void bus_free_bus_child(BusChild *kid) in bus_free_bus_child() argument 54 object_unref(OBJECT(kid->child)); in bus_free_bus_child() 55 g_free(kid); in bus_free_bus_child() 60 BusChild *kid; in bus_remove_child() local 62 QTAILQ_FOREACH(kid, &bus->children, sibling) { in bus_remove_child() 63 if (kid->child == child) { in bus_remove_child() 66 snprintf(name, sizeof(name), "child[%d]", kid->index); in bus_remove_child() 67 QTAILQ_REMOVE_RCU(&bus->children, kid, sibling); in bus_remove_child() 75 call_rcu(kid, bus_free_bus_child, rcu); in bus_remove_child() 84 BusChild *kid = g_malloc0(sizeof(*kid)); in bus_add_child() local [all …]
|
/openbmc/qemu/hw/s390x/ |
H A D | event-facility.c | 62 BusChild *kid; in event_pending() local 66 QTAILQ_FOREACH(kid, &ef->sbus.qbus.children, sibling) { in event_pending() 67 event = SCLP_EVENT(kid->child); in event_pending() 80 BusChild *kid; in get_host_send_mask() local 85 QTAILQ_FOREACH(kid, &ef->sbus.qbus.children, sibling) { in get_host_send_mask() 86 DeviceState *qdev = kid->child; in get_host_send_mask() 96 BusChild *kid; in get_host_receive_mask() local 101 QTAILQ_FOREACH(kid, &ef->sbus.qbus.children, sibling) { in get_host_receive_mask() 102 DeviceState *qdev = kid->child; in get_host_receive_mask() 134 BusChild *kid; in handle_write_event_buf() local [all …]
|
/openbmc/qemu/hw/ssi/ |
H A D | ssi.c | 33 BusChild *kid; in OBJECT_DECLARE_SIMPLE_TYPE() local 35 QTAILQ_FOREACH(kid, &b->children, sibling) { in OBJECT_DECLARE_SIMPLE_TYPE() 36 SSIPeripheral *kid_ssi = SSI_PERIPHERAL(kid->child); in OBJECT_DECLARE_SIMPLE_TYPE() 38 return kid->child; in OBJECT_DECLARE_SIMPLE_TYPE() 160 BusChild *kid; in ssi_transfer() local 163 QTAILQ_FOREACH(kid, &b->children, sibling) { in ssi_transfer() 164 SSIPeripheral *p = SSI_PERIPHERAL(kid->child); in ssi_transfer()
|
/openbmc/qemu/hw/acpi/ |
H A D | acpi_interface.c | 18 BusChild *kid; in qbus_build_aml() local 20 QTAILQ_FOREACH(kid, &bus->children, sibling) { in qbus_build_aml() 21 call_dev_aml_func(DEVICE(kid->child), scope); in qbus_build_aml()
|
H A D | pcihp.c | 185 BusChild *kid, *next; in acpi_pcihp_eject_slot() local 199 QTAILQ_FOREACH_SAFE(kid, &bus->qbus.children, sibling, next) { in acpi_pcihp_eject_slot() 200 DeviceState *qdev = kid->child; in acpi_pcihp_eject_slot() 232 BusChild *kid, *next; in acpi_pcihp_update_hotplug_bus() local 245 QTAILQ_FOREACH_SAFE(kid, &bus->qbus.children, sibling, next) { in acpi_pcihp_update_hotplug_bus() 246 DeviceState *qdev = kid->child; in acpi_pcihp_update_hotplug_bus() 442 BusChild *kid, *next; in pci_write() local 462 QTAILQ_FOREACH_SAFE(kid, &bus->qbus.children, sibling, next) { in pci_write() 463 Object *o = OBJECT(kid->child); in pci_write()
|
/openbmc/qemu/hw/ppc/ |
H A D | spapr_vio.c | 70 BusChild *kid; in spapr_vio_find_by_reg() local 73 QTAILQ_FOREACH(kid, &bus->bus.children, sibling) { in spapr_vio_find_by_reg() 74 dev = (SpaprVioDevice *)kid->child; in spapr_vio_find_by_reg() 367 BusChild *kid; in rtas_quiesce() local 375 QTAILQ_FOREACH(kid, &bus->bus.children, sibling) { in rtas_quiesce() 376 dev = (SpaprVioDevice *)kid->child; in rtas_quiesce() 386 BusChild *kid; in reg_conflict() local 394 QTAILQ_FOREACH(kid, &bus->bus.children, sibling) { in reg_conflict() 395 other = VIO_SPAPR_DEVICE(kid->child); in reg_conflict() 681 BusChild *kid; in spapr_dt_vdevice() local [all …]
|
/openbmc/qemu/hw/i386/ |
H A D | microvm-dt.c | 228 BusChild *kid; in dt_setup_isa_bus() local 231 QTAILQ_FOREACH(kid, &bus->children, sibling) { in dt_setup_isa_bus() 232 DeviceState *dev = kid->child; in dt_setup_isa_bus() 258 BusChild *kid; in dt_setup_sys_bus() local 263 QTAILQ_FOREACH(kid, &bus->children, sibling) { in dt_setup_sys_bus() 264 DeviceState *dev = kid->child; in dt_setup_sys_bus() 274 QTAILQ_FOREACH(kid, &bus->children, sibling) { in dt_setup_sys_bus() 275 DeviceState *dev = kid->child; in dt_setup_sys_bus()
|
H A D | acpi-microvm.c | 55 BusChild *kid; in acpi_dsdt_add_virtio() local 58 QTAILQ_FOREACH(kid, &bus->children, sibling) { in acpi_dsdt_add_virtio() 59 Object *obj = object_dynamic_cast(OBJECT(kid->child), in acpi_dsdt_add_virtio()
|
H A D | nitro_enclave.c | 29 BusChild *kid; in find_free_virtio_mmio_bus() local 32 QTAILQ_FOREACH(kid, &bus->children, sibling) { in find_free_virtio_mmio_bus() 33 DeviceState *dev = kid->child; in find_free_virtio_mmio_bus()
|
H A D | microvm.c | 379 BusChild *kid; in microvm_fix_kernel_cmdline() local 391 QTAILQ_FOREACH(kid, &bus->children, sibling) { in microvm_fix_kernel_cmdline() 392 DeviceState *dev = kid->child; in microvm_fix_kernel_cmdline()
|
/openbmc/qemu/system/ |
H A D | qdev-monitor.c | 386 BusChild *kid; in qbus_error_append_dev_list_hint() local 390 QTAILQ_FOREACH(kid, &bus->children, sibling) { in qbus_error_append_dev_list_hint() 391 DeviceState *dev = kid->child; in qbus_error_append_dev_list_hint() 416 BusChild *kid; in qbus_find_dev() local 424 QTAILQ_FOREACH(kid, &bus->children, sibling) { in qbus_find_dev() 425 DeviceState *dev = kid->child; in qbus_find_dev() 430 QTAILQ_FOREACH(kid, &bus->children, sibling) { in qbus_find_dev() 431 DeviceState *dev = kid->child; in qbus_find_dev() 436 QTAILQ_FOREACH(kid, &bus->children, sibling) { in qbus_find_dev() 437 DeviceState *dev = kid->child; in qbus_find_dev() [all …]
|
/openbmc/qemu/hw/smbios/ |
H A D | smbios_type_38.c | 82 BusChild *kid; in smbios_add_ipmi_devices() local 84 QTAILQ_FOREACH(kid, &bus->children, sibling) { in smbios_add_ipmi_devices() 85 DeviceState *dev = kid->child; in smbios_add_ipmi_devices()
|
/openbmc/qemu/hw/ipack/ |
H A D | ipack.c | 21 BusChild *kid; in ipack_device_find() local 23 QTAILQ_FOREACH(kid, &BUS(bus)->children, sibling) { in ipack_device_find() 24 DeviceState *qdev = kid->child; in ipack_device_find()
|
/openbmc/qemu/include/hw/virtio/ |
H A D | virtio-bus.h | 135 BusChild *kid = QTAILQ_FIRST(&qbus->children); in virtio_bus_get_device() local 136 DeviceState *qdev = kid ? kid->child : NULL; in virtio_bus_get_device()
|
/openbmc/qemu/hw/sd/ |
H A D | core.c | 38 BusChild *kid = QTAILQ_FIRST(&sdbus->qbus.children); in get_card() local 40 if (!kid) { in get_card() 43 return SDMMC_COMMON(kid->child); in get_card()
|
/openbmc/qemu/hw/char/ |
H A D | spapr_vty.c | 210 BusChild *kid; in spapr_vty_get_default() local 219 QTAILQ_FOREACH(kid, &bus->bus.children, sibling) { in spapr_vty_get_default() 220 DeviceState *iter = kid->child; in spapr_vty_get_default()
|
/openbmc/qemu/hw/scsi/ |
H A D | megasas.c | 742 BusChild *kid; in megasas_ctrl_get_info() local 771 QTAILQ_FOREACH(kid, &s->bus.qbus.children, sibling) { in megasas_ctrl_get_info() 772 SCSIDevice *sdev = SCSI_DEVICE(kid->child); in megasas_ctrl_get_info() 986 BusChild *kid; in megasas_dcmd_pd_get_list() local 1003 QTAILQ_FOREACH(kid, &s->bus.qbus.children, sibling) { in megasas_dcmd_pd_get_list() 1004 SCSIDevice *sdev = SCSI_DEVICE(kid->child); in megasas_dcmd_pd_get_list() 1168 BusChild *kid; in megasas_dcmd_ld_get_list() local 1184 QTAILQ_FOREACH(kid, &s->bus.qbus.children, sibling) { in megasas_dcmd_ld_get_list() 1185 SCSIDevice *sdev = SCSI_DEVICE(kid->child); in megasas_dcmd_ld_get_list() 1213 BusChild *kid; in megasas_dcmd_ld_list_query() local [all …]
|
H A D | spapr_vscsi.c | 732 BusChild *kid; in vscsi_report_luns() local 739 QTAILQ_FOREACH(kid, &s->bus.qbus.children, sibling) { in vscsi_report_luns() 740 SCSIDevice *dev = SCSI_DEVICE(kid->child); in vscsi_report_luns() 755 QTAILQ_FOREACH(kid, &s->bus.qbus.children, sibling) { in vscsi_report_luns() 756 DeviceState *qdev = kid->child; in vscsi_report_luns()
|
/openbmc/linux/drivers/staging/rtl8723bs/core/ |
H A D | rtw_wlan_util.c | 570 static s16 _rtw_camid_search(struct adapter *adapter, u8 *addr, s16 kid) in _rtw_camid_search() argument 579 if (kid >= 0 && kid != (dvobj->cam_cache[i].ctrl&0x03)) in _rtw_camid_search() 589 s16 rtw_camid_search(struct adapter *adapter, u8 *addr, s16 kid) in rtw_camid_search() argument 596 cam_id = _rtw_camid_search(adapter, addr, kid); in rtw_camid_search() 602 s16 rtw_camid_alloc(struct adapter *adapter, struct sta_info *sta, u8 kid) in rtw_camid_alloc() argument 616 if (kid > 3) { in rtw_camid_alloc() 619 FUNC_ADPT_ARG(adapter), kid); in rtw_camid_alloc() 624 cam_id = kid; in rtw_camid_alloc() 638 i = _rtw_camid_search(adapter, addr, kid); in rtw_camid_alloc() 646 FUNC_ADPT_ARG(adapter), kid); in rtw_camid_alloc() [all …]
|
/openbmc/qemu/hw/i2c/ |
H A D | core.c | 85 BusChild *kid; in i2c_scan_bus() local 87 QTAILQ_FOREACH(kid, &bus->qbus.children, sibling) { in i2c_scan_bus() 88 DeviceState *qdev = kid->child; in i2c_scan_bus()
|
/openbmc/qemu/hw/audio/ |
H A D | intel-hda.c | 89 BusChild *kid; in hda_codec_find() local 92 QTAILQ_FOREACH(kid, &bus->qbus.children, sibling) { in hda_codec_find() 93 DeviceState *qdev = kid->child; in hda_codec_find() 495 BusChild *kid; in intel_hda_notify_codecs() local 498 QTAILQ_FOREACH(kid, &d->codecs.qbus.children, sibling) { in intel_hda_notify_codecs() 499 DeviceState *qdev = kid->child; in intel_hda_notify_codecs() 1075 BusChild *kid; in intel_hda_reset() local 1082 QTAILQ_FOREACH(kid, &d->codecs.qbus.children, sibling) { in intel_hda_reset() 1083 DeviceState *qdev = kid->child; in intel_hda_reset()
|