Home
last modified time | relevance | path

Searched full:slot (Results 1 – 25 of 2166) sorted by relevance

12345678910>>...87

/Linux-v5.4/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 …]
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);
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 …]
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
73 slot = kzalloc(sizeof(*slot), GFP_KERNEL); in init_slots()
74 if (!slot) { in init_slots()
[all …]
Drpaphp_slot.c21 /* free up the memory used by a slot */
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()
[all …]
Ds390_pci_hpc.c31 * struct slot - slot information for each *physical* slot
33 struct slot { struct
39 static inline struct slot *to_slot(struct hotplug_slot *hotplug_slot) in to_slot() argument
41 return container_of(hotplug_slot, struct slot, hotplug_slot); in to_slot()
44 static inline int slot_configure(struct slot *slot) in slot_configure() argument
46 int ret = sclp_pci_configure(slot->zdev->fid); in slot_configure()
48 zpci_dbg(3, "conf fid:%x, rc:%d\n", slot->zdev->fid, ret); in slot_configure()
50 slot->zdev->state = ZPCI_FN_STATE_CONFIGURED; in slot_configure()
55 static inline int slot_deconfigure(struct slot *slot) in slot_deconfigure() argument
57 int ret = sclp_pci_deconfigure(slot->zdev->fid); in slot_deconfigure()
[all …]
Dpci_hotplug_core.c50 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 …]
Dcpci_hotplug.h30 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 …]
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);
114 * enable_slot - power on and enable a slot
115 * @hotplug_slot: slot to enable
121 struct slot *slot = to_slot(hotplug_slot); in enable_slot() local
[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()
30 dbg("%s: slot must be power up to get sensor-state\n", in rpaphp_get_sensor_state()
36 rc = rtas_set_power_level(slot->power_domain, POWER_ON, in rpaphp_get_sensor_state()
39 dbg("%s: power on slot[%s] failed rc=%d.\n", in rpaphp_get_sensor_state()
40 __func__, slot->name, rc); in rpaphp_get_sensor_state()
43 slot->index, state); in rpaphp_get_sensor_state()
46 info("%s: slot is unusable\n", __func__); in rpaphp_get_sensor_state()
54 * rpaphp_enable_slot - record slot state, config pci device
55 * @slot: target &slot
[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()
195 * secondary bridge on slot in acpiphp_post_dock_fixup()
224 struct acpiphp_slot *slot; in acpiphp_add_context() local
268 /* search for objects that share the same slot */ in acpiphp_add_context()
269 list_for_each_entry(slot, &bridge->slots, node) in acpiphp_add_context()
270 if (slot->device == device) in acpiphp_add_context()
[all …]
Dshpchp.h63 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 int 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 …]
Drpaphp_core.c55 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()
75 * get_power_status - get power status of a slot
76 * @hotplug_slot: slot to get 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()
92 * @hotplug_slot: slot to get status
97 struct slot *slot = to_slot(hotplug_slot); in get_attention_status() local
98 *value = slot->attention_status; in get_attention_status()
[all …]
Dacpiphp.h33 * struct slot - slot information for each *physical* slot
35 struct slot { struct
38 unsigned int sun; /* ACPI _SUN (Slot User Number) value */
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()
76 * struct acpiphp_slot - PCI slot information
78 * PCI slot information for each *physical* PCI slot
83 struct list_head funcs; /* one slot may have different
[all …]
/Linux-v5.4/drivers/mmc/host/
Dcb710-mmc.c27 struct cb710_slot *slot = cb710_mmc_to_slot(mmc); in cb710_mmc_select_clock_divider() local
28 struct pci_dev *pdev = cb710_slot_to_chip(slot)->pdev; in cb710_mmc_select_clock_divider()
54 dev_dbg(cb710_slot_dev(slot), in cb710_mmc_select_clock_divider()
60 static void __cb710_mmc_enable_irq(struct cb710_slot *slot, in __cb710_mmc_enable_irq() argument
72 enable = (cb710_read_port_16(slot, CB710_MMC_IRQ_ENABLE_PORT) in __cb710_mmc_enable_irq()
78 cb710_write_port_16(slot, CB710_MMC_IRQ_ENABLE_PORT, enable); in __cb710_mmc_enable_irq()
81 static void cb710_mmc_enable_irq(struct cb710_slot *slot, in cb710_mmc_enable_irq() argument
84 struct cb710_mmc_reader *reader = mmc_priv(cb710_slot_to_mmc(slot)); in cb710_mmc_enable_irq()
89 __cb710_mmc_enable_irq(slot, enable, mask); in cb710_mmc_enable_irq()
93 static void cb710_mmc_reset_events(struct cb710_slot *slot) in cb710_mmc_reset_events() argument
[all …]
Dsdhci-pci-core.c26 #include <linux/mmc/slot-gpio.h>
49 struct sdhci_pci_slot *slot = chip->slots[i]; in sdhci_pci_init_wakeup() local
51 if (slot) { in sdhci_pci_init_wakeup()
52 pm_flags |= slot->host->mmc->pm_flags; in sdhci_pci_init_wakeup()
53 if (slot->host->mmc->caps & MMC_CAP_CD_WAKE) in sdhci_pci_init_wakeup()
73 struct sdhci_pci_slot *slot = chip->slots[i]; in sdhci_pci_suspend_host() local
76 if (!slot) in sdhci_pci_suspend_host()
79 host = slot->host; in sdhci_pci_suspend_host()
102 struct sdhci_pci_slot *slot; in sdhci_pci_resume_host() local
106 slot = chip->slots[i]; in sdhci_pci_resume_host()
[all …]
/Linux-v5.4/drivers/pci/
Dslot.c21 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 …]
/Linux-v5.4/include/linux/
Dpci_hotplug.h19 * @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 …]
Dradix-tree.h25 * The bottom two bits of the slot determine how the remaining bits in the
26 * slot are interpreted:
33 * sibling entry, or an indicator that the entry in this slot has been moved
82 * @index: index of current slot
85 * @node: node that contains current slot
89 * described by a pointer to its first slot and a struct radix_tree_iter
153 * radix_tree_deref_slot - dereference a slot
154 * @slot: slot pointer, returned by radix_tree_lookup_slot
157 * locked across slot lookup and dereference. Not required if write lock is
163 * Return: entry stored in that slot.
[all …]
/Linux-v5.4/fs/btrfs/
Dtree-checker.c44 * Append generic "corrupt leaf/node root=%llu block=%llu slot=%d: " to @fmt.
49 static void generic_err(const struct extent_buffer *eb, int slot, in generic_err() argument
62 "corrupt %s: root=%llu block=%llu slot=%d, %pV", in generic_err()
64 btrfs_header_owner(eb), btrfs_header_bytenr(eb), slot, &vaf); in generic_err()
74 static void file_extent_err(const struct extent_buffer *eb, int slot, in file_extent_err() argument
82 btrfs_item_key_to_cpu(eb, &key, slot); in file_extent_err()
89 "corrupt %s: root=%llu block=%llu slot=%d ino=%llu file_offset=%llu, %pV", in file_extent_err()
91 btrfs_header_owner(eb), btrfs_header_bytenr(eb), slot, in file_extent_err()
100 #define CHECK_FE_ALIGNED(leaf, slot, fi, name, alignment) \ argument
103 file_extent_err((leaf), (slot), \
[all …]
/Linux-v5.4/drivers/pcmcia/
Dvrc4171_card.c90 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 …]
/Linux-v5.4/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()
108 pr_info("vpci: %s: assign to virtual slot %d func %d\n", 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()
119 /* Assign to a new slot on the virtual PCI bus */ 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()
[all …]
/Linux-v5.4/arch/alpha/kernel/
Dsys_noritake.c148 * 2 Interrupt Line A from slot 0
149 * 3 Interrupt Line B from slot 0
150 * 4 Interrupt Line A from slot 1
151 * 5 Interrupt line B from slot 1
152 * 6 Interrupt Line A from slot 2
153 * 7 Interrupt Line B from slot 2
154 * 8 Interrupt Line A from slot 3
155 * 9 Interrupt Line B from slot 3
156 *10 Interrupt Line A from slot 4
157 *11 Interrupt Line B from slot 4
[all …]
/Linux-v5.4/fs/nfs/
Dnfs4session.c37 * nfs4_shrink_slot_table - free retired slots from the slot table
49 struct nfs4_slot *slot = *p; in nfs4_shrink_slot_table() local
51 *p = slot->next; in nfs4_shrink_slot_table()
52 kfree(slot); in nfs4_shrink_slot_table()
59 * @tbl: controlling slot table
69 * nfs4_free_slot - free a slot and efficiently update slot table.
71 * freeing a slot is trivially done by clearing its respective bit
74 * so that the server would be able to size down the slot table if needed,
83 void nfs4_free_slot(struct nfs4_slot_table *tbl, struct nfs4_slot *slot) in nfs4_free_slot() argument
85 u32 slotid = slot->slot_nr; in nfs4_free_slot()
[all …]
/Linux-v5.4/drivers/media/pci/mantis/
Dmantis_ca.c28 static int mantis_ca_read_attr_mem(struct dvb_ca_en50221 *en50221, int slot, int addr) in mantis_ca_read_attr_mem() argument
33 dprintk(MANTIS_DEBUG, 1, "Slot(%d): Request Attribute Mem Read", slot); in mantis_ca_read_attr_mem()
35 if (slot != 0) in mantis_ca_read_attr_mem()
41 static int mantis_ca_write_attr_mem(struct dvb_ca_en50221 *en50221, int slot, int addr, u8 data) in mantis_ca_write_attr_mem() argument
46 dprintk(MANTIS_DEBUG, 1, "Slot(%d): Request Attribute Mem Write", slot); in mantis_ca_write_attr_mem()
48 if (slot != 0) in mantis_ca_write_attr_mem()
54 static int mantis_ca_read_cam_ctl(struct dvb_ca_en50221 *en50221, int slot, u8 addr) in mantis_ca_read_cam_ctl() argument
59 dprintk(MANTIS_DEBUG, 1, "Slot(%d): Request CAM control Read", slot); in mantis_ca_read_cam_ctl()
61 if (slot != 0) in mantis_ca_read_cam_ctl()
67 static int mantis_ca_write_cam_ctl(struct dvb_ca_en50221 *en50221, int slot, u8 addr, u8 data) in mantis_ca_write_cam_ctl() argument
[all …]
/Linux-v5.4/net/sched/
Dsch_sfq.c104 sfq_index next; /* next slot in sfq RR chain */
107 short allot; /* credit for this slot */
121 u8 cur_depth; /* depth of longest slot */
131 struct sfq_slot *tail; /* current slot in round */
201 * x : slot number [0 .. SFQ_MAX_FLOWS - 1]
206 struct sfq_slot *slot = &q->slots[x]; in sfq_link() local
207 int qlen = slot->qlen; in sfq_link()
212 slot->dep.next = n; in sfq_link()
213 slot->dep.prev = p; in sfq_link()
256 /* remove one skb from tail of slot queue */
[all …]

12345678910>>...87