Home
last modified time | relevance | path

Searched refs:slot (Results 1 – 25 of 1049) sorted by relevance

12345678910>>...42

/Linux-v4.19/drivers/pci/hotplug/
Dcpci_hotplug_pci.c35 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 …]
Drpaphp_slot.c22 void dealloc_slot_struct(struct slot *slot) in dealloc_slot_struct() argument
24 kfree(slot->hotplug_slot->info); in dealloc_slot_struct()
25 kfree(slot->name); in dealloc_slot_struct()
26 kfree(slot->hotplug_slot); 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->hotplug_slot = kzalloc(sizeof(struct hotplug_slot), GFP_KERNEL); in alloc_slot_struct()
[all …]
Dshpchp_core.c46 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
74 slot = kzalloc(sizeof(*slot), GFP_KERNEL); in init_slots()
75 if (!slot) { in init_slots()
[all …]
Dacpiphp_core.c52 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 = hotplug_slot->private; 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 …]
Dcpci_hotplug_core.c52 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);
93 struct slot *slot = hotplug_slot->private; in enable_slot() local
96 dbg("%s - physical_slot = %s", __func__, slot_name(slot)); in enable_slot()
99 retval = controller->ops->set_power(slot, 1); in enable_slot()
[all …]
Dcpci_hotplug.h30 struct slot { struct
45 int (*hardware_test)(struct slot *slot, u32 value); argument
46 u8 (*get_power)(struct slot *slot);
47 int (*set_power)(struct slot *slot, int value);
59 static inline const char *slot_name(struct slot *slot) in slot_name() argument
61 return hotplug_slot_name(slot->hotplug_slot); in slot_name()
75 u8 cpci_get_attention_status(struct slot *slot);
76 u8 cpci_get_latch_status(struct slot *slot);
77 u8 cpci_get_adapter_status(struct slot *slot);
78 u16 cpci_get_hs_csr(struct slot *slot);
[all …]
Ds390_pci_hpc.c33 struct slot { struct
39 static inline int slot_configure(struct slot *slot) in slot_configure() argument
41 int ret = sclp_pci_configure(slot->zdev->fid); in slot_configure()
43 zpci_dbg(3, "conf fid:%x, rc:%d\n", slot->zdev->fid, ret); in slot_configure()
45 slot->zdev->state = ZPCI_FN_STATE_CONFIGURED; in slot_configure()
50 static inline int slot_deconfigure(struct slot *slot) in slot_deconfigure() argument
52 int ret = sclp_pci_deconfigure(slot->zdev->fid); in slot_deconfigure()
54 zpci_dbg(3, "deconf fid:%x, rc:%d\n", slot->zdev->fid, ret); in slot_deconfigure()
56 slot->zdev->state = ZPCI_FN_STATE_STANDBY; in slot_deconfigure()
63 struct slot *slot = hotplug_slot->private; in enable_slot() local
[all …]
Dpciehp_core.c49 static int set_attention_status(struct hotplug_slot *slot, u8 value);
50 static int enable_slot(struct hotplug_slot *slot);
51 static int disable_slot(struct hotplug_slot *slot);
52 static int get_power_status(struct hotplug_slot *slot, u8 *value);
53 static int get_attention_status(struct hotplug_slot *slot, u8 *value);
54 static int get_latch_status(struct hotplug_slot *slot, u8 *value);
55 static int get_adapter_status(struct hotplug_slot *slot, u8 *value);
56 static int reset_slot(struct hotplug_slot *slot, int probe);
60 struct slot *slot = ctrl->slot; in init_slot() local
97 hotplug->private = slot; in init_slot()
[all …]
Dpciehp.h72 struct slot { struct
117 struct slot *slot; member
177 int pciehp_sysfs_enable_slot(struct slot *slot);
178 int pciehp_sysfs_disable_slot(struct slot *slot);
180 void pciehp_handle_button_press(struct slot *slot);
181 void pciehp_handle_disable_request(struct slot *slot);
182 void pciehp_handle_presence_or_link_change(struct slot *slot, u32 events);
183 int pciehp_configure_device(struct slot *p_slot);
184 void pciehp_unconfigure_device(struct slot *p_slot);
190 int pciehp_power_on_slot(struct slot *slot);
[all …]
Dpci_hotplug_core.c50 static int get_##name(struct hotplug_slot *slot, type *value) \
52 struct hotplug_slot_ops *ops = slot->ops; \
57 retval = ops->get_##name(slot, value); \
59 *value = slot->info->name; \
84 struct hotplug_slot *slot = pci_slot->hotplug; in power_write_file() local
93 if (!try_module_get(slot->ops->owner)) { in power_write_file()
99 if (slot->ops->disable_slot) in power_write_file()
100 retval = slot->ops->disable_slot(slot); in power_write_file()
104 if (slot->ops->enable_slot) in power_write_file()
105 retval = slot->ops->enable_slot(slot); in power_write_file()
[all …]
Dpciehp_ctrl.c29 static void set_slot_off(struct controller *ctrl, struct slot *pslot) in set_slot_off()
54 static int board_added(struct slot *p_slot) in board_added()
105 static void remove_board(struct slot *p_slot) in remove_board()
126 static int pciehp_enable_slot(struct slot *slot);
127 static int pciehp_disable_slot(struct slot *slot);
138 struct slot *p_slot = container_of(work, struct slot, work.work); in pciehp_queue_pushbutton_work()
155 void pciehp_handle_button_press(struct slot *p_slot) in pciehp_handle_button_press()
205 void pciehp_handle_disable_request(struct slot *slot) in pciehp_handle_disable_request() argument
207 struct controller *ctrl = slot->ctrl; in pciehp_handle_disable_request()
209 mutex_lock(&slot->lock); in pciehp_handle_disable_request()
[all …]
Drpaphp_core.c55 struct slot *slot = (struct slot *)hotplug_slot->private; in set_attention_status() local
67 rc = rtas_set_indicator(DR_INDICATOR, slot->index, value); in set_attention_status()
82 struct slot *slot = (struct slot *)hotplug_slot->private; in get_power_status() local
84 retval = rtas_get_power_level(slot->power_domain, &level); in get_power_status()
97 struct slot *slot = (struct slot *)hotplug_slot->private; in get_attention_status() local
98 *value = slot->hotplug_slot->info->attention_status; in get_attention_status()
104 struct slot *slot = (struct slot *)hotplug_slot->private; 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()
121 static enum pci_bus_speed get_max_bus_speed(struct slot *slot) in get_max_bus_speed() argument
[all …]
Dshpchp.h63 struct slot { struct
84 struct slot *p_slot; argument
158 int shpchp_sysfs_enable_slot(struct slot *slot);
159 int shpchp_sysfs_disable_slot(struct slot *slot);
164 int shpchp_configure_device(struct slot *p_slot);
165 int shpchp_unconfigure_device(struct slot *p_slot);
170 static inline const char *slot_name(struct slot *slot) in slot_name() argument
172 return hotplug_slot_name(slot->hotplug_slot); in slot_name()
208 static inline struct slot *get_slot(struct hotplug_slot *hotplug_slot) in get_slot()
213 static inline struct slot *shpchp_find_slot(struct controller *ctrl, u8 device) in shpchp_find_slot()
[all …]
Dsgi_hotplug.c55 struct slot { struct
79 static int enable_slot(struct hotplug_slot *slot); argument
80 static int disable_slot(struct hotplug_slot *slot);
81 static inline int get_power_status(struct hotplug_slot *slot, u8 *value);
94 struct slot *slot = pci_slot->hotplug->private; in path_show() local
96 if (!slot) in path_show()
99 retval = sprintf(buf, "%s\n", slot->physical_path); in path_show()
164 struct slot *slot; in sn_hp_slot_private_alloc() local
168 slot = kzalloc(sizeof(*slot), GFP_KERNEL); in sn_hp_slot_private_alloc()
169 if (!slot) in sn_hp_slot_private_alloc()
[all …]
Dacpiphp_glue.c145 struct acpiphp_slot *slot, *next; in free_bridge() local
152 list_for_each_entry_safe(slot, next, &bridge->slots, node) { in free_bridge()
153 list_for_each_entry_safe(func, tmp, &slot->funcs, sibling) in free_bridge()
156 kfree(slot); in free_bridge()
190 bus = context->func.slot->bus; in acpiphp_post_dock_fixup()
224 struct acpiphp_slot *slot; in acpiphp_add_context() local
269 list_for_each_entry(slot, &bridge->slots, node) in acpiphp_add_context()
270 if (slot->device == device) in acpiphp_add_context()
273 slot = kzalloc(sizeof(struct acpiphp_slot), GFP_KERNEL); in acpiphp_add_context()
274 if (!slot) { in acpiphp_add_context()
[all …]
Drpaphp_pci.c21 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()
62 int rpaphp_enable_slot(struct slot *slot) in rpaphp_enable_slot() argument
66 struct hotplug_slot_info *info = slot->hotplug_slot->info; in rpaphp_enable_slot()
69 slot->state = EMPTY; in rpaphp_enable_slot()
72 rc = rtas_get_power_level(slot->power_domain, &level); in rpaphp_enable_slot()
78 rc = rpaphp_get_sensor_state(slot, &state); in rpaphp_enable_slot()
[all …]
/Linux-v4.19/drivers/mmc/host/
Dcb710-mmc.c30 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 …]
Dsdhci-pci-core.c48 struct sdhci_pci_slot *slot = chip->slots[i]; in sdhci_pci_init_wakeup() local
50 if (slot) { in sdhci_pci_init_wakeup()
51 pm_flags |= slot->host->mmc->pm_flags; in sdhci_pci_init_wakeup()
52 if (slot->host->mmc->caps & MMC_CAP_CD_WAKE) in sdhci_pci_init_wakeup()
72 struct sdhci_pci_slot *slot = chip->slots[i]; in sdhci_pci_suspend_host() local
75 if (!slot) in sdhci_pci_suspend_host()
78 host = slot->host; in sdhci_pci_suspend_host()
101 struct sdhci_pci_slot *slot; in sdhci_pci_resume_host() local
105 slot = chip->slots[i]; in sdhci_pci_resume_host()
106 if (!slot) in sdhci_pci_resume_host()
[all …]
/Linux-v4.19/drivers/pci/
Dslot.c22 struct pci_slot *slot = to_pci_slot(kobj); in pci_slot_attr_show() local
24 return attribute->show ? attribute->show(slot, buf) : -EIO; in pci_slot_attr_show()
30 struct pci_slot *slot = to_pci_slot(kobj); in pci_slot_attr_store() local
32 return attribute->store ? attribute->store(slot, buf, len) : -EIO; in pci_slot_attr_store()
40 static ssize_t address_read_file(struct pci_slot *slot, char *buf) in address_read_file() argument
42 if (slot->number == 0xff) in address_read_file()
44 pci_domain_nr(slot->bus), in address_read_file()
45 slot->bus->number); in address_read_file()
48 pci_domain_nr(slot->bus), in address_read_file()
49 slot->bus->number, in address_read_file()
[all …]
/Linux-v4.19/fs/btrfs/
Dtree-checker.c47 const struct extent_buffer *eb, int slot, in generic_err() argument
61 btrfs_header_owner(eb), btrfs_header_bytenr(eb), slot, &vaf); in generic_err()
72 const struct extent_buffer *eb, int slot, in file_extent_err() argument
79 btrfs_item_key_to_cpu(eb, &key, slot); in file_extent_err()
88 btrfs_header_owner(eb), btrfs_header_bytenr(eb), slot, in file_extent_err()
97 #define CHECK_FE_ALIGNED(fs_info, leaf, slot, fi, name, alignment) \ argument
100 file_extent_err((fs_info), (leaf), (slot), \
109 struct btrfs_key *key, int slot) in check_extent_data_item() argument
113 u32 item_size = btrfs_item_size_nr(leaf, slot); in check_extent_data_item()
116 file_extent_err(fs_info, leaf, slot, in check_extent_data_item()
[all …]
/Linux-v4.19/tools/testing/radix-tree/
Dregression3.c35 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()
75 radix_tree_for_each_contig(slot, &root, &iter, 0) { in regression3_test()
[all …]
/Linux-v4.19/drivers/pcmcia/
Dvrc4171_card.c103 enum vrc4171_slot slot; member
171 static inline uint8_t exca_read_byte(int slot, uint8_t index) in exca_read_byte() argument
173 if (slot == CARD_SLOTB) in exca_read_byte()
180 static inline uint16_t exca_read_word(int slot, uint8_t index) in exca_read_word() argument
184 if (slot == CARD_SLOTB) in exca_read_word()
196 static inline uint8_t exca_write_byte(int slot, uint8_t index, uint8_t data) in exca_write_byte() argument
198 if (slot == CARD_SLOTB) in exca_write_byte()
207 static inline uint16_t exca_write_word(int slot, uint8_t index, uint16_t data) in exca_write_word() argument
209 if (slot == CARD_SLOTB) in exca_write_word()
238 unsigned int slot; in pccard_init() local
[all …]
/Linux-v4.19/arch/x86/kernel/
Daperture_64.c124 static u32 __init find_cap(int bus, int slot, int func, int cap) in find_cap() argument
129 if (!(read_pci_config_16(bus, slot, func, PCI_STATUS) & in find_cap()
133 pos = read_pci_config_byte(bus, slot, func, PCI_CAPABILITY_LIST); in find_cap()
138 id = read_pci_config_byte(bus, slot, func, pos+PCI_CAP_LIST_ID); in find_cap()
143 pos = read_pci_config_byte(bus, slot, func, in find_cap()
150 static u32 __init read_agp(int bus, int slot, int func, int cap, u32 *order) in read_agp() argument
159 pr_info("pci 0000:%02x:%02x:%02x: AGP bridge\n", bus, slot, func); in read_agp()
160 apsizereg = read_pci_config_16(bus, slot, func, cap + 0x14); in read_agp()
163 bus, slot, func); in read_agp()
179 aper_low = read_pci_config(bus, slot, func, 0x10); in read_agp()
[all …]
/Linux-v4.19/drivers/xen/xen-pciback/
Dvpci.c72 int err = 0, slot, func = -1; in __xen_pcibk_add_pci_dev() local
100 for (slot = 0; slot < PCI_SLOT_MAX; slot++) { in __xen_pcibk_add_pci_dev()
101 if (list_empty(&vpci_dev->dev_list[slot])) in __xen_pcibk_add_pci_dev()
104 t = list_entry(list_first(&vpci_dev->dev_list[slot]), in __xen_pcibk_add_pci_dev()
109 pci_name(dev), slot, in __xen_pcibk_add_pci_dev()
112 &vpci_dev->dev_list[slot]); in __xen_pcibk_add_pci_dev()
120 for (slot = 0; slot < PCI_SLOT_MAX; slot++) { in __xen_pcibk_add_pci_dev()
121 if (list_empty(&vpci_dev->dev_list[slot])) { in __xen_pcibk_add_pci_dev()
123 pci_name(dev), slot); in __xen_pcibk_add_pci_dev()
125 &vpci_dev->dev_list[slot]); in __xen_pcibk_add_pci_dev()
[all …]
/Linux-v4.19/lib/
Didr.c38 void __rcu **slot; in idr_alloc_u32() local
49 slot = idr_get_free(&idr->idr_rt, &iter, gfp, max - base); in idr_alloc_u32()
50 if (IS_ERR(slot)) in idr_alloc_u32()
51 return PTR_ERR(slot); in idr_alloc_u32()
55 radix_tree_iter_replace(&idr->idr_rt, &iter, slot, ptr); in idr_alloc_u32()
202 void __rcu **slot; in idr_for_each() local
205 radix_tree_for_each_slot(slot, &idr->idr_rt, &iter, 0) { in idr_for_each()
211 ret = fn(id, rcu_dereference_raw(*slot), data); in idr_for_each()
233 void __rcu **slot; in idr_get_next() local
238 slot = radix_tree_iter_find(&idr->idr_rt, &iter, id); in idr_get_next()
[all …]

12345678910>>...42