/openbmc/linux/drivers/pci/hotplug/ |
H A D | cpci_hotplug_pci.c | 33 u8 cpci_get_attention_status(struct slot *slot) in cpci_get_attention_status() argument 38 hs_cap = pci_bus_find_capability(slot->bus, in cpci_get_attention_status() 39 slot->devfn, in cpci_get_attention_status() 44 if (pci_bus_read_config_word(slot->bus, in cpci_get_attention_status() 45 slot->devfn, in cpci_get_attention_status() 53 int cpci_set_attention_status(struct slot *slot, int status) in cpci_set_attention_status() argument 58 hs_cap = pci_bus_find_capability(slot->bus, in cpci_set_attention_status() 59 slot->devfn, in cpci_set_attention_status() 63 if (pci_bus_read_config_word(slot->bus, in cpci_set_attention_status() 64 slot->devfn, in cpci_set_attention_status() [all …]
|
H A D | cpci_hotplug_core.c | 52 static int enable_slot(struct hotplug_slot *slot); 53 static int disable_slot(struct hotplug_slot *slot); 54 static int set_attention_status(struct hotplug_slot *slot, u8 value); 55 static int get_power_status(struct hotplug_slot *slot, u8 *value); 56 static int get_attention_status(struct hotplug_slot *slot, u8 *value); 57 static int get_adapter_status(struct hotplug_slot *slot, u8 *value); 58 static int get_latch_status(struct hotplug_slot *slot, u8 *value); 73 struct slot *slot = to_slot(hotplug_slot); in enable_slot() local 76 dbg("%s - physical_slot = %s", __func__, slot_name(slot)); in enable_slot() 79 retval = controller->ops->set_power(slot, 1); in enable_slot() [all …]
|
H A D | shpchp_core.c | 45 static int set_attention_status(struct hotplug_slot *slot, u8 value); 46 static int enable_slot(struct hotplug_slot *slot); 47 static int disable_slot(struct hotplug_slot *slot); 48 static int get_power_status(struct hotplug_slot *slot, u8 *value); 49 static int get_attention_status(struct hotplug_slot *slot, u8 *value); 50 static int get_latch_status(struct hotplug_slot *slot, u8 *value); 51 static int get_adapter_status(struct hotplug_slot *slot, u8 *value); 65 struct slot *slot; in init_slots() local 72 slot = kzalloc(sizeof(*slot), GFP_KERNEL); in init_slots() 73 if (!slot) { in init_slots() [all …]
|
H A D | rpaphp_slot.c | 22 /* free up the memory used by a slot */ 23 void dealloc_slot_struct(struct slot *slot) in dealloc_slot_struct() argument 25 of_node_put(slot->dn); in dealloc_slot_struct() 26 kfree(slot->name); in dealloc_slot_struct() 27 kfree(slot); in dealloc_slot_struct() 30 struct slot *alloc_slot_struct(struct device_node *dn, in alloc_slot_struct() 33 struct slot *slot; in alloc_slot_struct() local 35 slot = kzalloc(sizeof(struct slot), GFP_KERNEL); in alloc_slot_struct() 36 if (!slot) in alloc_slot_struct() 38 slot->name = kstrdup(drc_name, GFP_KERNEL); in alloc_slot_struct() [all …]
|
H A D | pci_hotplug_core.c | 50 static int get_##name(struct hotplug_slot *slot, type *value) \ 52 const struct hotplug_slot_ops *ops = slot->ops; \ 54 if (!try_module_get(slot->owner)) \ 57 retval = ops->get_##name(slot, value); \ 58 module_put(slot->owner); \ 82 struct hotplug_slot *slot = pci_slot->hotplug; in power_write_file() local 91 if (!try_module_get(slot->owner)) { in power_write_file() 97 if (slot->ops->disable_slot) in power_write_file() 98 retval = slot->ops->disable_slot(slot); in power_write_file() 102 if (slot->ops->enable_slot) in power_write_file() [all …]
|
H A D | acpiphp_core.c | 51 static int enable_slot(struct hotplug_slot *slot); 52 static int disable_slot(struct hotplug_slot *slot); 53 static int set_attention_status(struct hotplug_slot *slot, u8 value); 54 static int get_power_status(struct hotplug_slot *slot, u8 *value); 55 static int get_attention_status(struct hotplug_slot *slot, u8 *value); 56 static int get_latch_status(struct hotplug_slot *slot, u8 *value); 57 static int get_adapter_status(struct hotplug_slot *slot, u8 *value); 113 * enable_slot - power on and enable a slot 114 * @hotplug_slot: slot to enable 120 struct slot *slot = to_slot(hotplug_slot); in enable_slot() local [all …]
|
H A D | cpci_hotplug.h | 30 struct slot { struct 47 int (*hardware_test)(struct slot *slot, u32 value); argument 48 u8 (*get_power)(struct slot *slot); 49 int (*set_power)(struct slot *slot, int value); 61 static inline const char *slot_name(struct slot *slot) in slot_name() argument 63 return hotplug_slot_name(&slot->hotplug_slot); in slot_name() 66 static inline struct slot *to_slot(struct hotplug_slot *hotplug_slot) in to_slot() 68 return container_of(hotplug_slot, struct slot, hotplug_slot); in to_slot() 85 u8 cpci_get_attention_status(struct slot *slot); 86 u16 cpci_get_hs_csr(struct slot *slot); [all …]
|
H A D | acpiphp_glue.c | 153 struct acpiphp_slot *slot, *next; in free_bridge() local 160 list_for_each_entry_safe(slot, next, &bridge->slots, node) { in free_bridge() 161 list_for_each_entry_safe(func, tmp, &slot->funcs, sibling) in free_bridge() 164 kfree(slot); in free_bridge() 198 bus = context->func.slot->bus; in acpiphp_post_dock_fixup() 203 * secondary bridge on slot in acpiphp_post_dock_fixup() 232 struct acpiphp_slot *slot; in acpiphp_add_context() local 277 /* search for objects that share the same slot */ in acpiphp_add_context() 278 list_for_each_entry(slot, &bridge->slots, node) in acpiphp_add_context() 279 if (slot->device == device) in acpiphp_add_context() [all …]
|
H A D | rpaphp_core.c | 57 struct slot *slot = to_slot(hotplug_slot); in set_attention_status() local 69 rc = rtas_set_indicator(DR_INDICATOR, slot->index, value); in set_attention_status() 71 slot->attention_status = value; in set_attention_status() 77 * get_power_status - get power status of a slot 78 * @hotplug_slot: slot to get status 84 struct slot *slot = to_slot(hotplug_slot); in get_power_status() local 86 retval = rtas_get_power_level(slot->power_domain, &level); in get_power_status() 94 * @hotplug_slot: slot to get status 99 struct slot *slot = to_slot(hotplug_slot); in get_attention_status() local 100 *value = slot->attention_status; in get_attention_status() [all …]
|
H A D | rpaphp_pci.c | 72 static int __rpaphp_get_sensor_state(struct slot *slot, int *state) in __rpaphp_get_sensor_state() argument 78 struct pci_controller *phb = PCI_DN(slot->dn)->phb; in __rpaphp_get_sensor_state() 84 * Fallback to existing method for empty slot or PE isn't in EEH in __rpaphp_get_sensor_state() 95 slot->index); in __rpaphp_get_sensor_state() 99 return rtas_get_sensor(DR_ENTITY_SENSE, slot->index, state); in __rpaphp_get_sensor_state() 102 int rpaphp_get_sensor_state(struct slot *slot, int *state) in rpaphp_get_sensor_state() argument 107 rc = __rpaphp_get_sensor_state(slot, state); in rpaphp_get_sensor_state() 111 dbg("%s: slot must be power up to get sensor-state\n", in rpaphp_get_sensor_state() 117 rc = rtas_set_power_level(slot->power_domain, POWER_ON, in rpaphp_get_sensor_state() 120 dbg("%s: power on slot[%s] failed rc=%d.\n", in rpaphp_get_sensor_state() [all …]
|
H A D | shpchp.h | 63 struct slot { struct 86 struct slot *p_slot; argument 101 u32 first_slot; /* First physical slot number */ 160 int shpchp_sysfs_enable_slot(struct slot *slot); 161 int shpchp_sysfs_disable_slot(struct slot *slot); 166 int shpchp_configure_device(struct slot *p_slot); 167 void shpchp_unconfigure_device(struct slot *p_slot); 172 static inline const char *slot_name(struct slot *slot) in slot_name() argument 174 return hotplug_slot_name(&slot->hotplug_slot); in slot_name() 210 static inline struct slot *get_slot(struct hotplug_slot *hotplug_slot) in get_slot() [all …]
|
/openbmc/linux/drivers/mmc/host/ |
H A D | cb710-mmc.c | 29 struct cb710_slot *slot = cb710_mmc_to_slot(mmc); in cb710_mmc_select_clock_divider() local 30 struct pci_dev *pdev = cb710_slot_to_chip(slot)->pdev; in cb710_mmc_select_clock_divider() 56 dev_dbg(cb710_slot_dev(slot), in cb710_mmc_select_clock_divider() 62 static void __cb710_mmc_enable_irq(struct cb710_slot *slot, in __cb710_mmc_enable_irq() argument 74 enable = (cb710_read_port_16(slot, CB710_MMC_IRQ_ENABLE_PORT) in __cb710_mmc_enable_irq() 80 cb710_write_port_16(slot, CB710_MMC_IRQ_ENABLE_PORT, enable); in __cb710_mmc_enable_irq() 83 static void cb710_mmc_enable_irq(struct cb710_slot *slot, in cb710_mmc_enable_irq() argument 86 struct cb710_mmc_reader *reader = mmc_priv(cb710_slot_to_mmc(slot)); in cb710_mmc_enable_irq() 91 __cb710_mmc_enable_irq(slot, enable, mask); in cb710_mmc_enable_irq() 95 static void cb710_mmc_reset_events(struct cb710_slot *slot) in cb710_mmc_reset_events() argument [all …]
|
H A D | sdhci-pci-core.c | 33 #include <linux/mmc/slot-gpio.h> 55 struct sdhci_pci_slot *slot = chip->slots[i]; in sdhci_pci_init_wakeup() local 57 if (slot) { in sdhci_pci_init_wakeup() 58 pm_flags |= slot->host->mmc->pm_flags; in sdhci_pci_init_wakeup() 59 if (slot->host->mmc->caps & MMC_CAP_CD_WAKE) in sdhci_pci_init_wakeup() 79 struct sdhci_pci_slot *slot = chip->slots[i]; in sdhci_pci_suspend_host() local 82 if (!slot) in sdhci_pci_suspend_host() 85 host = slot->host; in sdhci_pci_suspend_host() 108 struct sdhci_pci_slot *slot; in sdhci_pci_resume_host() local 112 slot = chip->slots[i]; in sdhci_pci_resume_host() [all …]
|
/openbmc/linux/drivers/pci/ |
H A D | slot.c | 21 struct pci_slot *slot = to_pci_slot(kobj); in pci_slot_attr_show() local 23 return attribute->show ? attribute->show(slot, buf) : -EIO; in pci_slot_attr_show() 29 struct pci_slot *slot = to_pci_slot(kobj); in pci_slot_attr_store() local 31 return attribute->store ? attribute->store(slot, buf, len) : -EIO; in pci_slot_attr_store() 39 static ssize_t address_read_file(struct pci_slot *slot, char *buf) in address_read_file() argument 41 if (slot->number == 0xff) in address_read_file() 43 pci_domain_nr(slot->bus), in address_read_file() 44 slot->bus->number); in address_read_file() 47 pci_domain_nr(slot->bus), in address_read_file() 48 slot->bus->number, in address_read_file() [all …]
|
/openbmc/linux/drivers/crypto/marvell/octeontx2/ |
H A D | otx2_cptlf.c | 17 lf->slot, OTX2_CPT_LF_DONE_WAIT); in cptlf_do_set_done_time_wait() 19 otx2_cpt_write64(lf->lfs->reg_base, lf->lfs->blkaddr, lf->slot, in cptlf_do_set_done_time_wait() 28 lf->slot, OTX2_CPT_LF_DONE_WAIT); in cptlf_do_set_done_num_wait() 30 otx2_cpt_write64(lf->lfs->reg_base, lf->lfs->blkaddr, lf->slot, in cptlf_do_set_done_num_wait() 37 int slot; in cptlf_set_done_time_wait() local 39 for (slot = 0; slot < lfs->lfs_num; slot++) in cptlf_set_done_time_wait() 40 cptlf_do_set_done_time_wait(&lfs->lf[slot], time_wait); in cptlf_set_done_time_wait() 45 int slot; in cptlf_set_done_num_wait() local 47 for (slot = 0; slot < lfs->lfs_num; slot++) in cptlf_set_done_num_wait() 48 cptlf_do_set_done_num_wait(&lfs->lf[slot], num_wait); in cptlf_set_done_num_wait() [all …]
|
/openbmc/linux/include/linux/ |
H A D | pci_hotplug.h | 19 * @enable_slot: Called when the user wants to enable a specific pci slot 20 * @disable_slot: Called when the user wants to disable a specific pci slot 21 * @set_attention_status: Called to set the specific slot's attention LED to 24 * slot. 25 * @get_power_status: Called to get the current power status of a slot. 26 * @get_attention_status: Called to get the current attention status of a slot. 27 * @get_latch_status: Called to get the current latch status of a slot. 28 * @get_adapter_status: Called to get see if an adapter is present in the slot or not. 30 * slot for cases where a secondary bus reset can result in spurious 31 * hotplug events or where a slot can be reset independent of the bus. [all …]
|
/openbmc/qemu/hw/audio/ |
H A D | fmopl.c | 99 /* register number to channel number , slot offset */ 224 static int32_t feedback2; /* connect for SLOT 2 */ 286 static inline void OPL_KEYON(OPL_SLOT *SLOT) in OPL_KEYON() argument 289 SLOT->Cnt = 0; in OPL_KEYON() 291 SLOT->evm = ENV_MOD_AR; in OPL_KEYON() 292 SLOT->evs = SLOT->evsa; in OPL_KEYON() 293 SLOT->evc = EG_AST; in OPL_KEYON() 294 SLOT->eve = EG_AED; in OPL_KEYON() 297 static inline void OPL_KEYOFF(OPL_SLOT *SLOT) in OPL_KEYOFF() argument 299 if( SLOT->evm > ENV_MOD_RR) in OPL_KEYOFF() [all …]
|
/openbmc/qemu/hw/ufs/ |
H A D | trace-events | 6 ufs_process_db(uint32_t slot) "UTRLDBR slot %"PRIu32"" 7 ufs_process_req(uint32_t slot) "UTRLDBR slot %"PRIu32"" 8 ufs_complete_req(uint32_t slot) "UTRLDBR slot %"PRIu32"" 9 ufs_sendback_req(uint32_t slot) "UTRLDBR slot %"PRIu32"" 10 ufs_exec_nop_cmd(uint32_t slot) "UTRLDBR slot %"PRIu32"" 11 ufs_exec_scsi_cmd(uint32_t slot, uint8_t lun, uint8_t opcode) "slot %"PRIu32", lun 0x%"PRIx8", opco… 12 ufs_exec_query_cmd(uint32_t slot, uint8_t opcode) "slot %"PRIu32", opcode 0x%"PRIx8"" 19 ufs_err_dma_read_utrd(uint32_t slot, uint64_t addr) "failed to read utrd. UTRLDBR slot %"PRIu32", U… 20 ufs_err_dma_read_req_upiu(uint32_t slot, uint64_t addr) "failed to read req upiu. UTRLDBR slot %"PR… 21 ufs_err_dma_read_prdt(uint32_t slot, uint64_t addr) "failed to read prdt. UTRLDBR slot %"PRIu32", p… [all …]
|
/openbmc/qemu/hw/acpi/ |
H A D | trace-events | 4 mhp_acpi_invalid_slot_selected(uint32_t slot) "0x%"PRIx32 5 mhp_acpi_ejecting_invalid_slot(uint32_t slot) "0x%"PRIx32 6 mhp_acpi_read_addr_lo(uint32_t slot, uint32_t addr) "slot[0x%"PRIx32"] addr lo: 0x%"PRIx32 7 mhp_acpi_read_addr_hi(uint32_t slot, uint32_t addr) "slot[0x%"PRIx32"] addr hi: 0x%"PRIx32 8 mhp_acpi_read_size_lo(uint32_t slot, uint32_t size) "slot[0x%"PRIx32"] size lo: 0x%"PRIx32 9 mhp_acpi_read_size_hi(uint32_t slot, uint32_t size) "slot[0x%"PRIx32"] size hi: 0x%"PRIx32 10 mhp_acpi_read_pxm(uint32_t slot, uint32_t pxm) "slot[0x%"PRIx32"] proximity: 0x%"PRIx32 11 mhp_acpi_read_flags(uint32_t slot, uint32_t flags) "slot[0x%"PRIx32"] flags: 0x%"PRIx32 12 mhp_acpi_write_slot(uint32_t slot) "set active slot: 0x%"PRIx32 13 mhp_acpi_write_ost_ev(uint32_t slot, uint32_t ev) "slot[0x%"PRIx32"] OST EVENT: 0x%"PRIx32 [all …]
|
/openbmc/phosphor-dbus-interfaces/yaml/xyz/openbmc_project/Inventory/Item/ |
H A D | PCIeSlot.interface.yaml | 2 This defines a PCIe slot to be exposed for system management. It includes 3 the slot properties. 10 The PCIe generation of the slot 15 The maximum number of PCIe lanes supported by the slot 21 The type of the slot 26 Whether this PCIe slot supports hotplug 35 PCIe v1.0 slot 39 PCIe v2.0 slot 43 PCIe v3.0 slot 47 PCIe v4.0 slot [all …]
|
/openbmc/u-boot/drivers/dma/ |
H A D | ti-edma3.c | 18 #define EDMA3_SL_BASE(slot) (0x4000 + ((slot) << 5)) argument 48 * the slot number to associate with, the chnum, which corresponds 50 * and trigger slot word - which has to correspond to the word number in 65 qchmap = ((EDMA3_CHMAP_PARSET_MASK & cfg->slot) in qedma3_start() 80 * edma3_set_dest - set initial DMA destination address in parameter RAM slot 82 * @slot: parameter RAM slot being configured 91 void edma3_set_dest(u32 base, int slot, u32 dst, enum edma3_address_mode mode, in edma3_set_dest() argument 97 rg = (struct edma3_slot_layout *)(base + EDMA3_SL_BASE(slot)); in edma3_set_dest() 114 * @slot: parameter RAM slot being configured 122 void edma3_set_dest_index(u32 base, unsigned slot, int bidx, int cidx) in edma3_set_dest_index() argument [all …]
|
/openbmc/linux/fs/btrfs/ |
H A D | tree-checker.c | 51 * Append generic "corrupt leaf/node root=%llu block=%llu slot=%d: " to @fmt. 56 static void generic_err(const struct extent_buffer *eb, int slot, in generic_err() argument 69 "corrupt %s: root=%llu block=%llu slot=%d, %pV", in generic_err() 71 btrfs_header_owner(eb), btrfs_header_bytenr(eb), slot, &vaf); in generic_err() 81 static void file_extent_err(const struct extent_buffer *eb, int slot, in file_extent_err() argument 89 btrfs_item_key_to_cpu(eb, &key, slot); in file_extent_err() 96 "corrupt %s: root=%llu block=%llu slot=%d ino=%llu file_offset=%llu, %pV", in file_extent_err() 98 btrfs_header_owner(eb), btrfs_header_bytenr(eb), slot, in file_extent_err() 107 #define CHECK_FE_ALIGNED(leaf, slot, fi, name, alignment) \ argument 111 file_extent_err((leaf), (slot), \ [all …]
|
/openbmc/linux/drivers/xen/xen-pciback/ |
H A D | vpci.c | 73 int err = 0, slot, func = PCI_FUNC(dev->devfn); in __xen_pcibk_add_pci_dev() local 103 for (slot = 0; slot < PCI_SLOT_MAX; slot++) { in __xen_pcibk_add_pci_dev() 104 if (list_empty(&vpci_dev->dev_list[slot])) in __xen_pcibk_add_pci_dev() 107 t = list_entry(list_first(&vpci_dev->dev_list[slot]), in __xen_pcibk_add_pci_dev() 113 dev_info(&dev->dev, "vpci: assign to virtual slot %d func %d\n", in __xen_pcibk_add_pci_dev() 114 slot, func); in __xen_pcibk_add_pci_dev() 116 &vpci_dev->dev_list[slot]); in __xen_pcibk_add_pci_dev() 122 /* Assign to a new slot on the virtual PCI bus */ in __xen_pcibk_add_pci_dev() 123 for (slot = 0; slot < PCI_SLOT_MAX; slot++) { in __xen_pcibk_add_pci_dev() 124 if (list_empty(&vpci_dev->dev_list[slot])) { in __xen_pcibk_add_pci_dev() [all …]
|
/openbmc/linux/arch/alpha/kernel/ |
H A D | sys_noritake.c | 147 * 2 Interrupt Line A from slot 0 148 * 3 Interrupt Line B from slot 0 149 * 4 Interrupt Line A from slot 1 150 * 5 Interrupt line B from slot 1 151 * 6 Interrupt Line A from slot 2 152 * 7 Interrupt Line B from slot 2 153 * 8 Interrupt Line A from slot 3 154 * 9 Interrupt Line B from slot 3 155 *10 Interrupt Line A from slot 4 156 *11 Interrupt Line B from slot 4 [all …]
|
/openbmc/linux/arch/x86/kvm/mmu/ |
H A D | page_track.c | 29 void kvm_page_track_free_memslot(struct kvm_memory_slot *slot) in kvm_page_track_free_memslot() argument 31 kvfree(slot->arch.gfn_write_track); in kvm_page_track_free_memslot() 32 slot->arch.gfn_write_track = NULL; in kvm_page_track_free_memslot() 35 static int __kvm_page_track_write_tracking_alloc(struct kvm_memory_slot *slot, in __kvm_page_track_write_tracking_alloc() argument 38 const size_t size = sizeof(*slot->arch.gfn_write_track); in __kvm_page_track_write_tracking_alloc() 40 if (!slot->arch.gfn_write_track) in __kvm_page_track_write_tracking_alloc() 41 slot->arch.gfn_write_track = __vcalloc(npages, size, in __kvm_page_track_write_tracking_alloc() 44 return slot->arch.gfn_write_track ? 0 : -ENOMEM; in __kvm_page_track_write_tracking_alloc() 48 struct kvm_memory_slot *slot, in kvm_page_track_create_memslot() argument 54 return __kvm_page_track_write_tracking_alloc(slot, npages); in kvm_page_track_create_memslot() [all …]
|