| /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 | shpchp_core.c | 42 static int set_attention_status(struct hotplug_slot *slot, u8 value); 43 static int enable_slot(struct hotplug_slot *slot); 44 static int disable_slot(struct hotplug_slot *slot); 45 static int get_power_status(struct hotplug_slot *slot, u8 *value); 46 static int get_attention_status(struct hotplug_slot *slot, u8 *value); 47 static int get_latch_status(struct hotplug_slot *slot, u8 *value); 48 static int get_adapter_status(struct hotplug_slot *slot, u8 *value); 62 struct slot *slot; in init_slots() local 69 slot = kzalloc(sizeof(*slot), GFP_KERNEL); in init_slots() 70 if (!slot) { in init_slots() [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 75 dbg("%s - physical_slot = %s", __func__, slot_name(slot)); in enable_slot() 83 struct slot *slot = to_slot(hotplug_slot); in disable_slot() local [all …]
|
| H A D | rpaphp_slot.c | 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() 39 if (!slot->name) in alloc_slot_struct() [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); 119 struct slot *slot = to_slot(hotplug_slot); in enable_slot() local 121 pr_debug("%s - physical_slot = %s\n", __func__, slot_name(slot)); in enable_slot() 124 return acpiphp_enable_slot(slot->acpi_slot); in enable_slot() [all …]
|
| H A D | pci_hotplug_core.c | 41 static int get_##name(struct hotplug_slot *slot, type *value) \ 43 const struct hotplug_slot_ops *ops = slot->ops; \ 46 retval = ops->get_##name(slot, value); \ 70 struct hotplug_slot *slot = pci_slot->hotplug; in power_write_file() local 81 if (slot->ops->disable_slot) in power_write_file() 82 retval = slot->ops->disable_slot(slot); in power_write_file() 86 if (slot->ops->enable_slot) in power_write_file() 87 retval = slot->ops->enable_slot(slot); in power_write_file() 121 struct hotplug_slot *slot = pci_slot->hotplug; in attention_write_file() local 122 const struct hotplug_slot_ops *ops = slot->ops; in attention_write_file() [all …]
|
| H A D | cpci_hotplug.h | 30 struct slot { struct 58 static inline const char *slot_name(struct slot *slot) in slot_name() argument 60 return hotplug_slot_name(&slot->hotplug_slot); in slot_name() 63 static inline struct slot *to_slot(struct hotplug_slot *hotplug_slot) in to_slot() 65 return container_of(hotplug_slot, struct slot, hotplug_slot); in to_slot() 82 u8 cpci_get_attention_status(struct slot *slot); 83 u16 cpci_get_hs_csr(struct slot *slot); 84 int cpci_set_attention_status(struct slot *slot, int status); 85 int cpci_check_and_clear_ins(struct slot *slot); 86 int cpci_check_ext(struct slot *slot); [all …]
|
| H A D | shpchp.h | 47 struct slot { struct 69 struct slot *p_slot; argument 142 int shpchp_sysfs_enable_slot(struct slot *slot); 143 int shpchp_sysfs_disable_slot(struct slot *slot); 148 int shpchp_configure_device(struct slot *p_slot); 149 void shpchp_unconfigure_device(struct slot *p_slot); 154 static inline const char *slot_name(struct slot *slot) in slot_name() argument 156 return hotplug_slot_name(&slot->hotplug_slot); in slot_name() 192 static inline struct slot *get_slot(struct hotplug_slot *hotplug_slot) in get_slot() 194 return container_of(hotplug_slot, struct slot, hotplug_slot); in get_slot() [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() 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() 99 struct slot *slot = to_slot(hotplug_slot); in get_attention_status() local 100 *value = slot->attention_status; in get_attention_status() 106 struct slot *slot = to_slot(hotplug_slot); in get_adapter_status() local 109 rc = rpaphp_get_sensor_state(slot, &state); in get_adapter_status() 118 *value = slot->state; in get_adapter_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() 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() 117 rc = rtas_set_power_level(slot->power_domain, POWER_ON, in rpaphp_get_sensor_state() 121 __func__, slot->name, rc); in rpaphp_get_sensor_state() 123 rc = __rpaphp_get_sensor_state(slot, state); in rpaphp_get_sensor_state() 141 int rpaphp_enable_slot(struct slot *slot) in rpaphp_enable_slot() argument [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() 232 struct acpiphp_slot *slot; in acpiphp_add_context() local 278 list_for_each_entry(slot, &bridge->slots, node) in acpiphp_add_context() 279 if (slot->device == device) in acpiphp_add_context() 282 slot = kzalloc(sizeof(struct acpiphp_slot), GFP_KERNEL); in acpiphp_add_context() 283 if (!slot) { in acpiphp_add_context() [all …]
|
| /linux/drivers/mmc/host/ |
| H A D | cb710-mmc.c | 30 struct cb710_slot *slot = cb710_mmc_to_slot(mmc); in cb710_mmc_select_clock_divider() local 31 struct pci_dev *pdev = cb710_slot_to_chip(slot)->pdev; in cb710_mmc_select_clock_divider() 57 dev_dbg(cb710_slot_dev(slot), in cb710_mmc_select_clock_divider() 63 static void __cb710_mmc_enable_irq(struct cb710_slot *slot, in __cb710_mmc_enable_irq() argument 75 enable = (cb710_read_port_16(slot, CB710_MMC_IRQ_ENABLE_PORT) in __cb710_mmc_enable_irq() 81 cb710_write_port_16(slot, CB710_MMC_IRQ_ENABLE_PORT, enable); in __cb710_mmc_enable_irq() 84 static void cb710_mmc_enable_irq(struct cb710_slot *slot, in cb710_mmc_enable_irq() argument 87 struct cb710_mmc_reader *reader = mmc_priv(cb710_slot_to_mmc(slot)); in cb710_mmc_enable_irq() 92 __cb710_mmc_enable_irq(slot, enable, mask); in cb710_mmc_enable_irq() 96 static void cb710_mmc_reset_events(struct cb710_slot *slot) in cb710_mmc_reset_events() argument [all …]
|
| H A D | sdhci-pci-core.c | 56 struct sdhci_pci_slot *slot = chip->slots[i]; in sdhci_pci_init_wakeup() local 58 if (slot) { in sdhci_pci_init_wakeup() 59 pm_flags |= slot->host->mmc->pm_flags; in sdhci_pci_init_wakeup() 60 if (slot->host->mmc->caps & MMC_CAP_CD_WAKE) in sdhci_pci_init_wakeup() 80 struct sdhci_pci_slot *slot = chip->slots[i]; in sdhci_pci_suspend_host() local 83 if (!slot) in sdhci_pci_suspend_host() 86 host = slot->host; in sdhci_pci_suspend_host() 109 struct sdhci_pci_slot *slot; in sdhci_pci_resume_host() local 113 slot = chip->slots[i]; in sdhci_pci_resume_host() 114 if (!slot) in sdhci_pci_resume_host() [all …]
|
| /linux/drivers/pci/ |
| H A D | slot.c | 20 struct pci_slot *slot = to_pci_slot(kobj); in pci_slot_attr_show() local 22 return attribute->show ? attribute->show(slot, buf) : -EIO; in pci_slot_attr_show() 28 struct pci_slot *slot = to_pci_slot(kobj); in pci_slot_attr_store() local 30 return attribute->store ? attribute->store(slot, buf, len) : -EIO; in pci_slot_attr_store() 38 static ssize_t address_read_file(struct pci_slot *slot, char *buf) in address_read_file() argument 40 if (slot->number == 0xff) in address_read_file() 42 pci_domain_nr(slot->bus), in address_read_file() 43 slot->bus->number); in address_read_file() 46 pci_domain_nr(slot->bus), in address_read_file() 47 slot->bus->number, in address_read_file() [all …]
|
| /linux/include/linux/ |
| H A D | folio_queue.h | 109 static inline bool folioq_is_marked(const struct folio_queue *folioq, unsigned int slot) in folioq_is_marked() argument 111 return test_bit(slot, &folioq->marks); in folioq_is_marked() 122 static inline void folioq_mark(struct folio_queue *folioq, unsigned int slot) in folioq_mark() argument 124 set_bit(slot, &folioq->marks); in folioq_mark() 135 static inline void folioq_unmark(struct folio_queue *folioq, unsigned int slot) in folioq_unmark() argument 137 clear_bit(slot, &folioq->marks); in folioq_unmark() 148 static inline bool folioq_is_marked2(const struct folio_queue *folioq, unsigned int slot) in folioq_is_marked2() argument 150 return test_bit(slot, &folioq->marks2); in folioq_is_marked2() 161 static inline void folioq_mark2(struct folio_queue *folioq, unsigned int slot) in folioq_mark2() argument 163 set_bit(slot, &folioq->marks2); in folioq_mark2() [all …]
|
| H A 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, bool probe); 66 static inline const char *hotplug_slot_name(const struct hotplug_slot *slot) in hotplug_slot_name() argument [all …]
|
| /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 …]
|
| /linux/fs/btrfs/ |
| H A D | tree-checker.c | 56 static void generic_err(const struct extent_buffer *eb, int slot, in generic_err() argument 72 btrfs_header_owner(eb), btrfs_header_bytenr(eb), slot, &vaf); in generic_err() 82 static void file_extent_err(const struct extent_buffer *eb, int slot, in file_extent_err() argument 90 btrfs_item_key_to_cpu(eb, &key, slot); in file_extent_err() 100 btrfs_header_owner(eb), btrfs_header_bytenr(eb), slot, in file_extent_err() 109 #define CHECK_FE_ALIGNED(leaf, slot, fi, name, alignment) \ argument 113 file_extent_err((leaf), (slot), \ 143 static void dir_item_err(const struct extent_buffer *eb, int slot, in dir_item_err() argument 151 btrfs_item_key_to_cpu(eb, &key, slot); in dir_item_err() 161 btrfs_header_owner(eb), btrfs_header_bytenr(eb), slot, in dir_item_err() [all …]
|
| /linux/arch/x86/kvm/mmu/ |
| H A D | page_track.c | 42 void kvm_page_track_free_memslot(struct kvm_memory_slot *slot) in kvm_page_track_free_memslot() argument 44 vfree(slot->arch.gfn_write_track); in kvm_page_track_free_memslot() 45 slot->arch.gfn_write_track = NULL; in kvm_page_track_free_memslot() 48 static int __kvm_page_track_write_tracking_alloc(struct kvm_memory_slot *slot, in __kvm_page_track_write_tracking_alloc() argument 51 const size_t size = sizeof(*slot->arch.gfn_write_track); in __kvm_page_track_write_tracking_alloc() 53 if (!slot->arch.gfn_write_track) in __kvm_page_track_write_tracking_alloc() 54 slot->arch.gfn_write_track = __vcalloc(npages, size, in __kvm_page_track_write_tracking_alloc() 57 return slot->arch.gfn_write_track ? 0 : -ENOMEM; in __kvm_page_track_write_tracking_alloc() 61 struct kvm_memory_slot *slot, in kvm_page_track_create_memslot() argument 67 return __kvm_page_track_write_tracking_alloc(slot, npages); in kvm_page_track_create_memslot() [all …]
|
| /linux/arch/x86/kernel/ |
| H A D | early-quirks.c | 32 static void __init fix_hypertransport_config(int num, int slot, int func) in fix_hypertransport_config() argument 41 htcfg = read_pci_config(num, slot, func, 0x68); in fix_hypertransport_config() 51 write_pci_config(num, slot, func, 0x68, htcfg); in fix_hypertransport_config() 58 static void __init via_bugs(int num, int slot, int func) in via_bugs() argument 81 static void __init nvidia_bugs(int num, int slot, int func) in nvidia_bugs() argument 117 static u32 __init ati_ixp4x0_rev(int num, int slot, int func) in ati_ixp4x0_rev() argument 122 b = read_pci_config_byte(num, slot, func, 0xac); in ati_ixp4x0_rev() 124 write_pci_config_byte(num, slot, func, 0xac, b); in ati_ixp4x0_rev() 126 d = read_pci_config(num, slot, func, 0x70); in ati_ixp4x0_rev() 128 write_pci_config(num, slot, func, 0x70, d); in ati_ixp4x0_rev() [all …]
|
| H A D | aperture_64.c | 140 static u32 __init find_cap(int bus, int slot, int func, int cap) in find_cap() argument 145 if (!(read_pci_config_16(bus, slot, func, PCI_STATUS) & in find_cap() 149 pos = read_pci_config_byte(bus, slot, func, PCI_CAPABILITY_LIST); in find_cap() 154 id = read_pci_config_byte(bus, slot, func, pos+PCI_CAP_LIST_ID); in find_cap() 159 pos = read_pci_config_byte(bus, slot, func, in find_cap() 166 static u32 __init read_agp(int bus, int slot, int func, int cap, u32 *order) in read_agp() argument 175 pr_info("pci 0000:%02x:%02x:%02x: AGP bridge\n", bus, slot, func); in read_agp() 176 apsizereg = read_pci_config_16(bus, slot, func, cap + 0x14); in read_agp() 179 bus, slot, func); in read_agp() 195 aper_low = read_pci_config(bus, slot, func, 0x10); in read_agp() [all …]
|
| /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() 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 …]
|
| /linux/drivers/media/dvb-core/ |
| H A 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 …]
|
| /linux/block/ |
| H A D | blk-crypto-profile.c | 77 unsigned int slot; in blk_crypto_profile_init() local 106 for (slot = 0; slot < num_slots; slot++) { in blk_crypto_profile_init() 107 profile->slots[slot].profile = profile; in blk_crypto_profile_init() 108 list_add_tail(&profile->slots[slot].idle_slot_node, in blk_crypto_profile_init() 179 blk_crypto_remove_slot_from_lru_list(struct blk_crypto_keyslot *slot) in blk_crypto_remove_slot_from_lru_list() argument 181 struct blk_crypto_profile *profile = slot->profile; in blk_crypto_remove_slot_from_lru_list() 185 list_del(&slot->idle_slot_node); in blk_crypto_remove_slot_from_lru_list() 208 struct blk_crypto_keyslot *slot; in blk_crypto_find_and_grab_keyslot() local 210 slot = blk_crypto_find_keyslot(profile, key); in blk_crypto_find_and_grab_keyslot() 211 if (!slot) in blk_crypto_find_and_grab_keyslot() [all …]
|
| /linux/drivers/pci/pwrctrl/ |
| H A D | slot.c | 24 struct pci_pwrctrl_slot_data *slot = data; in devm_pci_pwrctrl_slot_power_off() local 26 regulator_bulk_disable(slot->num_supplies, slot->supplies); in devm_pci_pwrctrl_slot_power_off() 27 regulator_bulk_free(slot->num_supplies, slot->supplies); in devm_pci_pwrctrl_slot_power_off() 32 struct pci_pwrctrl_slot_data *slot; in pci_pwrctrl_slot_probe() local 37 slot = devm_kzalloc(dev, sizeof(*slot), GFP_KERNEL); in pci_pwrctrl_slot_probe() 38 if (!slot) in pci_pwrctrl_slot_probe() 42 &slot->supplies); in pci_pwrctrl_slot_probe() 48 slot->num_supplies = ret; in pci_pwrctrl_slot_probe() 49 ret = regulator_bulk_enable(slot->num_supplies, slot->supplies); in pci_pwrctrl_slot_probe() 52 regulator_bulk_free(slot->num_supplies, slot->supplies); in pci_pwrctrl_slot_probe() [all …]
|