/kernel/linux/linux-5.10/drivers/pci/hotplug/ |
D | cpci_hotplug_pci.c | 35 u8 cpci_get_attention_status(struct slot *slot) in cpci_get_attention_status() argument 40 hs_cap = pci_bus_find_capability(slot->bus, in cpci_get_attention_status() 41 slot->devfn, in cpci_get_attention_status() 46 if (pci_bus_read_config_word(slot->bus, in cpci_get_attention_status() 47 slot->devfn, in cpci_get_attention_status() 55 int cpci_set_attention_status(struct slot *slot, int status) in cpci_set_attention_status() argument 60 hs_cap = pci_bus_find_capability(slot->bus, in cpci_set_attention_status() 61 slot->devfn, in cpci_set_attention_status() 65 if (pci_bus_read_config_word(slot->bus, in cpci_set_attention_status() 66 slot->devfn, in cpci_set_attention_status() [all …]
|
D | shpchp_core.c | 46 static int set_attention_status(struct hotplug_slot *slot, u8 value); 47 static int enable_slot(struct hotplug_slot *slot); 48 static int disable_slot(struct hotplug_slot *slot); 49 static int get_power_status(struct hotplug_slot *slot, u8 *value); 50 static int get_attention_status(struct hotplug_slot *slot, u8 *value); 51 static int get_latch_status(struct hotplug_slot *slot, u8 *value); 52 static int get_adapter_status(struct hotplug_slot *slot, u8 *value); 66 struct slot *slot; in init_slots() local 73 slot = kzalloc(sizeof(*slot), GFP_KERNEL); in init_slots() 74 if (!slot) { in init_slots() [all …]
|
D | rpaphp_slot.c | 22 void dealloc_slot_struct(struct slot *slot) in dealloc_slot_struct() argument 24 of_node_put(slot->dn); in dealloc_slot_struct() 25 kfree(slot->name); in dealloc_slot_struct() 26 kfree(slot); in dealloc_slot_struct() 29 struct slot *alloc_slot_struct(struct device_node *dn, in alloc_slot_struct() 32 struct slot *slot; in alloc_slot_struct() local 34 slot = kzalloc(sizeof(struct slot), GFP_KERNEL); in alloc_slot_struct() 35 if (!slot) in alloc_slot_struct() 37 slot->name = kstrdup(drc_name, GFP_KERNEL); in alloc_slot_struct() 38 if (!slot->name) in alloc_slot_struct() [all …]
|
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 …]
|
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() 82 u8 cpci_get_attention_status(struct slot *slot); 83 u8 cpci_get_latch_status(struct slot *slot); [all …]
|
D | acpiphp_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_latch_status(struct hotplug_slot *slot, u8 *value); 58 static int get_adapter_status(struct hotplug_slot *slot, u8 *value); 121 struct slot *slot = to_slot(hotplug_slot); in enable_slot() local 123 pr_debug("%s - physical_slot = %s\n", __func__, slot_name(slot)); in enable_slot() 126 return acpiphp_enable_slot(slot->acpi_slot); in enable_slot() [all …]
|
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 …]
|
D | shpchp.h | 63 struct slot { struct 86 struct slot *p_slot; argument 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() 212 return container_of(hotplug_slot, struct slot, hotplug_slot); in get_slot() [all …]
|
D | rpaphp_core.c | 55 struct slot *slot = to_slot(hotplug_slot); in set_attention_status() local 67 rc = rtas_set_indicator(DR_INDICATOR, slot->index, value); in set_attention_status() 69 slot->attention_status = value; in set_attention_status() 82 struct slot *slot = to_slot(hotplug_slot); in get_power_status() local 84 retval = rtas_get_power_level(slot->power_domain, &level); in get_power_status() 97 struct slot *slot = to_slot(hotplug_slot); in get_attention_status() local 98 *value = slot->attention_status; in get_attention_status() 104 struct slot *slot = to_slot(hotplug_slot); in get_adapter_status() local 107 rc = rpaphp_get_sensor_state(slot, &state); in get_adapter_status() 116 *value = slot->state; in get_adapter_status() [all …]
|
D | rpaphp_pci.c | 21 int rpaphp_get_sensor_state(struct slot *slot, int *state) in rpaphp_get_sensor_state() argument 26 rc = rtas_get_sensor(DR_ENTITY_SENSE, slot->index, state); in rpaphp_get_sensor_state() 36 rc = rtas_set_power_level(slot->power_domain, POWER_ON, in rpaphp_get_sensor_state() 40 __func__, slot->name, rc); in rpaphp_get_sensor_state() 43 slot->index, state); in rpaphp_get_sensor_state() 61 int rpaphp_enable_slot(struct slot *slot) in rpaphp_enable_slot() argument 66 slot->state = EMPTY; in rpaphp_enable_slot() 69 rc = rtas_get_power_level(slot->power_domain, &level); in rpaphp_enable_slot() 74 rc = rpaphp_get_sensor_state(slot, &state); in rpaphp_enable_slot() 78 bus = pci_find_bus_by_node(slot->dn); in rpaphp_enable_slot() [all …]
|
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() 232 struct acpiphp_slot *slot; in acpiphp_add_context() local 277 list_for_each_entry(slot, &bridge->slots, node) in acpiphp_add_context() 278 if (slot->device == device) in acpiphp_add_context() 281 slot = kzalloc(sizeof(struct acpiphp_slot), GFP_KERNEL); in acpiphp_add_context() 282 if (!slot) { in acpiphp_add_context() [all …]
|
D | acpiphp.h | 35 struct slot { struct 41 static inline const char *slot_name(struct slot *slot) in slot_name() argument 43 return hotplug_slot_name(&slot->hotplug_slot); in slot_name() 46 static inline struct slot *to_slot(struct hotplug_slot *hotplug_slot) in to_slot() 48 return container_of(hotplug_slot, struct slot, hotplug_slot); in to_slot() 85 struct slot *slot; member 100 struct acpiphp_slot *slot; member 153 int (*set_attn)(struct hotplug_slot *slot, u8 status); 154 int (*get_attn)(struct hotplug_slot *slot, u8 *status); 176 int acpiphp_register_hotplug_slot(struct acpiphp_slot *slot, unsigned int sun); [all …]
|
/kernel/linux/linux-5.10/drivers/mmc/host/ |
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 …]
|
D | sdhci-pci-core.c | 53 struct sdhci_pci_slot *slot = chip->slots[i]; in sdhci_pci_init_wakeup() local 55 if (slot) { in sdhci_pci_init_wakeup() 56 pm_flags |= slot->host->mmc->pm_flags; in sdhci_pci_init_wakeup() 57 if (slot->host->mmc->caps & MMC_CAP_CD_WAKE) in sdhci_pci_init_wakeup() 77 struct sdhci_pci_slot *slot = chip->slots[i]; in sdhci_pci_suspend_host() local 80 if (!slot) in sdhci_pci_suspend_host() 83 host = slot->host; in sdhci_pci_suspend_host() 106 struct sdhci_pci_slot *slot; in sdhci_pci_resume_host() local 110 slot = chip->slots[i]; in sdhci_pci_resume_host() 111 if (!slot) in sdhci_pci_resume_host() [all …]
|
/kernel/linux/linux-5.10/drivers/pci/ |
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 …]
|
/kernel/linux/linux-5.10/fs/btrfs/ |
D | tree-checker.c | 50 static void generic_err(const struct extent_buffer *eb, int slot, in generic_err() argument 65 btrfs_header_owner(eb), btrfs_header_bytenr(eb), slot, &vaf); in generic_err() 75 static void file_extent_err(const struct extent_buffer *eb, int slot, in file_extent_err() argument 83 btrfs_item_key_to_cpu(eb, &key, slot); in file_extent_err() 92 btrfs_header_owner(eb), btrfs_header_bytenr(eb), slot, in file_extent_err() 101 #define CHECK_FE_ALIGNED(leaf, slot, fi, name, alignment) \ argument 104 file_extent_err((leaf), (slot), \ 134 static void dir_item_err(const struct extent_buffer *eb, int slot, in dir_item_err() argument 142 btrfs_item_key_to_cpu(eb, &key, slot); in dir_item_err() 151 btrfs_header_owner(eb), btrfs_header_bytenr(eb), slot, in dir_item_err() [all …]
|
/kernel/linux/linux-5.10/block/ |
D | keyslot-manager.c | 77 unsigned int slot; in blk_ksm_init() local 97 for (slot = 0; slot < num_slots; slot++) { in blk_ksm_init() 98 ksm->slots[slot].ksm = ksm; in blk_ksm_init() 99 list_add_tail(&ksm->slots[slot].idle_slot_node, in blk_ksm_init() 137 static void blk_ksm_remove_slot_from_lru_list(struct blk_ksm_keyslot *slot) in blk_ksm_remove_slot_from_lru_list() argument 139 struct blk_keyslot_manager *ksm = slot->ksm; in blk_ksm_remove_slot_from_lru_list() 143 list_del(&slot->idle_slot_node); in blk_ksm_remove_slot_from_lru_list() 165 struct blk_ksm_keyslot *slot; in blk_ksm_find_and_grab_keyslot() local 167 slot = blk_ksm_find_keyslot(ksm, key); in blk_ksm_find_and_grab_keyslot() 168 if (!slot) in blk_ksm_find_and_grab_keyslot() [all …]
|
/kernel/linux/linux-5.10/drivers/pcmcia/ |
D | vrc4171_card.c | 90 enum vrc4171_slot slot; member 158 static inline uint8_t exca_read_byte(int slot, uint8_t index) in exca_read_byte() argument 160 if (slot == CARD_SLOTB) in exca_read_byte() 167 static inline uint16_t exca_read_word(int slot, uint8_t index) in exca_read_word() argument 171 if (slot == CARD_SLOTB) in exca_read_word() 183 static inline uint8_t exca_write_byte(int slot, uint8_t index, uint8_t data) in exca_write_byte() argument 185 if (slot == CARD_SLOTB) in exca_write_byte() 194 static inline uint16_t exca_write_word(int slot, uint8_t index, uint16_t data) in exca_write_word() argument 196 if (slot == CARD_SLOTB) in exca_write_word() 225 unsigned int slot; in pccard_init() local [all …]
|
/kernel/linux/linux-5.10/arch/x86/kernel/ |
D | aperture_64.c | 130 static u32 __init find_cap(int bus, int slot, int func, int cap) in find_cap() argument 135 if (!(read_pci_config_16(bus, slot, func, PCI_STATUS) & in find_cap() 139 pos = read_pci_config_byte(bus, slot, func, PCI_CAPABILITY_LIST); in find_cap() 144 id = read_pci_config_byte(bus, slot, func, pos+PCI_CAP_LIST_ID); in find_cap() 149 pos = read_pci_config_byte(bus, slot, func, in find_cap() 156 static u32 __init read_agp(int bus, int slot, int func, int cap, u32 *order) in read_agp() argument 165 pr_info("pci 0000:%02x:%02x:%02x: AGP bridge\n", bus, slot, func); in read_agp() 166 apsizereg = read_pci_config_16(bus, slot, func, cap + 0x14); in read_agp() 169 bus, slot, func); in read_agp() 185 aper_low = read_pci_config(bus, slot, func, 0x10); in read_agp() [all …]
|
D | early-quirks.c | 31 static void __init fix_hypertransport_config(int num, int slot, int func) in fix_hypertransport_config() argument 40 htcfg = read_pci_config(num, slot, func, 0x68); in fix_hypertransport_config() 50 write_pci_config(num, slot, func, 0x68, htcfg); in fix_hypertransport_config() 57 static void __init via_bugs(int num, int slot, int func) in via_bugs() argument 80 static void __init nvidia_bugs(int num, int slot, int func) in nvidia_bugs() argument 116 static u32 __init ati_ixp4x0_rev(int num, int slot, int func) in ati_ixp4x0_rev() argument 121 b = read_pci_config_byte(num, slot, func, 0xac); in ati_ixp4x0_rev() 123 write_pci_config_byte(num, slot, func, 0xac, b); in ati_ixp4x0_rev() 125 d = read_pci_config(num, slot, func, 0x70); in ati_ixp4x0_rev() 127 write_pci_config(num, slot, func, 0x70, d); in ati_ixp4x0_rev() [all …]
|
/kernel/linux/linux-5.10/include/linux/ |
D | pci_hotplug.h | 39 int (*enable_slot) (struct hotplug_slot *slot); 40 int (*disable_slot) (struct hotplug_slot *slot); 41 int (*set_attention_status) (struct hotplug_slot *slot, u8 value); 42 int (*hardware_test) (struct hotplug_slot *slot, u32 value); 43 int (*get_power_status) (struct hotplug_slot *slot, u8 *value); 44 int (*get_attention_status) (struct hotplug_slot *slot, u8 *value); 45 int (*get_latch_status) (struct hotplug_slot *slot, u8 *value); 46 int (*get_adapter_status) (struct hotplug_slot *slot, u8 *value); 47 int (*reset_slot) (struct hotplug_slot *slot, int probe); 66 static inline const char *hotplug_slot_name(const struct hotplug_slot *slot) in hotplug_slot_name() argument [all …]
|
/kernel/linux/linux-5.10/drivers/xen/xen-pciback/ |
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() 114 slot, func); in __xen_pcibk_add_pci_dev() 116 &vpci_dev->dev_list[slot]); 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() 126 slot); in __xen_pcibk_add_pci_dev() 128 &vpci_dev->dev_list[slot]); in __xen_pcibk_add_pci_dev() [all …]
|
/kernel/linux/linux-5.10/tools/testing/radix-tree/ |
D | regression3.c | 35 void **slot; in regression3_test() local 44 radix_tree_for_each_tagged(slot, &root, &iter, 0, 0) { in regression3_test() 45 printv(2, "tagged %ld %p\n", iter.index, *slot); in regression3_test() 51 if (radix_tree_deref_retry(*slot)) { in regression3_test() 53 slot = radix_tree_iter_retry(&iter); in regression3_test() 60 radix_tree_for_each_slot(slot, &root, &iter, 0) { in regression3_test() 61 printv(2, "slot %ld %p\n", iter.index, *slot); in regression3_test() 66 if (radix_tree_deref_retry(*slot)) { in regression3_test() 68 slot = radix_tree_iter_retry(&iter); in regression3_test() 73 radix_tree_for_each_slot(slot, &root, &iter, 0) { in regression3_test() [all …]
|
/kernel/linux/linux-5.10/drivers/media/dvb-core/ |
D | dvb_ca_en50221.c | 193 static int dvb_ca_en50221_read_data(struct dvb_ca_private *ca, int slot, 195 static int dvb_ca_en50221_write_data(struct dvb_ca_private *ca, int slot, 228 static int dvb_ca_en50221_check_camstatus(struct dvb_ca_private *ca, int slot) in dvb_ca_en50221_check_camstatus() argument 230 struct dvb_ca_slot *sl = &ca->slot_info[slot]; in dvb_ca_en50221_check_camstatus() 240 slot_status = ca->pub->poll_slot_status(ca->pub, slot, ca->open); in dvb_ca_en50221_check_camstatus() 278 static int dvb_ca_en50221_wait_if_status(struct dvb_ca_private *ca, int slot, in dvb_ca_en50221_wait_if_status() argument 293 res = ca->pub->read_cam_control(ca->pub, slot, CTRLIF_STATUS); in dvb_ca_en50221_wait_if_status() 326 static int dvb_ca_en50221_link_init(struct dvb_ca_private *ca, int slot) in dvb_ca_en50221_link_init() argument 328 struct dvb_ca_slot *sl = &ca->slot_info[slot]; in dvb_ca_en50221_link_init() 345 ret = ca->pub->write_cam_control(ca->pub, slot, CTRLIF_COMMAND, in dvb_ca_en50221_link_init() [all …]
|
/kernel/linux/linux-5.10/arch/x86/kvm/mmu/ |
D | page_track.c | 21 void kvm_page_track_free_memslot(struct kvm_memory_slot *slot) in kvm_page_track_free_memslot() argument 26 kvfree(slot->arch.gfn_track[i]); in kvm_page_track_free_memslot() 27 slot->arch.gfn_track[i] = NULL; in kvm_page_track_free_memslot() 31 int kvm_page_track_create_memslot(struct kvm_memory_slot *slot, in kvm_page_track_create_memslot() argument 37 slot->arch.gfn_track[i] = in kvm_page_track_create_memslot() 38 kvcalloc(npages, sizeof(*slot->arch.gfn_track[i]), in kvm_page_track_create_memslot() 40 if (!slot->arch.gfn_track[i]) in kvm_page_track_create_memslot() 47 kvm_page_track_free_memslot(slot); in kvm_page_track_create_memslot() 59 static void update_gfn_track(struct kvm_memory_slot *slot, gfn_t gfn, in update_gfn_track() argument 64 index = gfn_to_index(gfn, slot->base_gfn, PG_LEVEL_4K); in update_gfn_track() [all …]
|