Home
last modified time | relevance | path

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

12345678910>>...146

/kernel/linux/linux-5.10/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 …]
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 …]
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 …]
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 …]
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 …]
/kernel/linux/linux-4.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.c21 /* free up the memory used by a slot */
22 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()
[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 …]
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);
114 * enable_slot - power on and enable a slot
115 * @hotplug_slot: slot to enable
121 struct slot *slot = hotplug_slot->private; in enable_slot() local
[all …]
Dpciehp_ctrl.c29 static void set_slot_off(struct controller *ctrl, struct slot *pslot) in set_slot_off()
31 /* turn off slot, turn on Amber LED, turn off Green LED if supported*/ in set_slot_off()
38 * removed from the slot/adapter. in set_slot_off()
49 * @p_slot: &slot where board is added
54 static int board_added(struct slot *p_slot) in board_added()
61 /* Power on slot */ in board_added()
78 ctrl_err(ctrl, "Slot(%s): Power fault\n", slot_name(p_slot)); in board_added()
102 * remove_board - Turns off slot and LEDs
103 * @p_slot: slot where board is being removed
105 static void remove_board(struct slot *p_slot) in remove_board()
[all …]
Ds390_pci_hpc.c31 * struct slot - slot information for each *physical* slot
33 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()
[all …]
Dpciehp.h63 * struct slot - PCIe hotplug slot
65 * @ctrl: pointer to the slot's controller structure
67 * @work: work item to turn the slot on or off after 5 seconds in response to
72 struct slot { struct
82 * @ctrl_lock: serializes writes to the Slot Control register
85 * Link Status register and to the Presence Detect State bit in the Slot
86 * Status register during a slot reset which may cause them to flap argument
87 * @slot: pointer to the controller's slot structure
89 * used for synchronous writes to the Slot Control register
90 * @slot_cap: cached copy of the Slot Capabilities register
[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_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
75 /* Setup hotplug slot ops */ in init_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 …]
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 …]
/kernel/linux/linux-4.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 …]
/kernel/linux/linux-5.10/drivers/mmc/host/
Dcb710-mmc.c29 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 …]
/kernel/linux/linux-5.10/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 …]
/kernel/linux/linux-4.19/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 …]
/kernel/linux/linux-5.10/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 …]

12345678910>>...146