Home
last modified time | relevance | path

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

1234567891011

/drivers/pci/hotplug/
Dcpci_hotplug_pci.c49 u8 cpci_get_attention_status(struct slot* slot) in cpci_get_attention_status() argument
54 hs_cap = pci_bus_find_capability(slot->bus, in cpci_get_attention_status()
55 slot->devfn, in cpci_get_attention_status()
60 if (pci_bus_read_config_word(slot->bus, in cpci_get_attention_status()
61 slot->devfn, in cpci_get_attention_status()
69 int cpci_set_attention_status(struct slot* slot, int status) in cpci_set_attention_status() argument
74 hs_cap = pci_bus_find_capability(slot->bus, in cpci_set_attention_status()
75 slot->devfn, in cpci_set_attention_status()
79 if (pci_bus_read_config_word(slot->bus, in cpci_set_attention_status()
80 slot->devfn, in cpci_set_attention_status()
[all …]
Drpaphp_slot.c38 struct slot *slot = (struct slot *) hotplug_slot->private; in rpaphp_release_slot() local
39 dealloc_slot_struct(slot); in rpaphp_release_slot()
42 void dealloc_slot_struct(struct slot *slot) in dealloc_slot_struct() argument
44 kfree(slot->hotplug_slot->info); in dealloc_slot_struct()
45 kfree(slot->name); in dealloc_slot_struct()
46 kfree(slot->hotplug_slot); in dealloc_slot_struct()
47 kfree(slot); in dealloc_slot_struct()
50 struct slot *alloc_slot_struct(struct device_node *dn, in alloc_slot_struct()
53 struct slot *slot; in alloc_slot_struct() local
55 slot = kzalloc(sizeof(struct slot), GFP_KERNEL); in alloc_slot_struct()
[all …]
Dshpchp_core.c60 static int set_attention_status (struct hotplug_slot *slot, u8 value);
61 static int enable_slot (struct hotplug_slot *slot);
62 static int disable_slot (struct hotplug_slot *slot);
63 static int get_power_status (struct hotplug_slot *slot, u8 *value);
64 static int get_attention_status (struct hotplug_slot *slot, u8 *value);
65 static int get_latch_status (struct hotplug_slot *slot, u8 *value);
66 static int get_adapter_status (struct hotplug_slot *slot, u8 *value);
84 struct slot *slot = hotplug_slot->private; in release_slot() local
86 ctrl_dbg(slot->ctrl, "%s: physical_slot = %s\n", in release_slot()
87 __func__, slot_name(slot)); in release_slot()
[all …]
Dpci_hotplug_core.c69 static int get_##name (struct hotplug_slot *slot, type *value) \
71 struct hotplug_slot_ops *ops = slot->ops; \
76 retval = ops->get_##name(slot, value); \
78 *value = slot->info->name; \
88 static ssize_t power_read_file(struct pci_slot *slot, char *buf) in GET_STATUS()
93 retval = get_power_status(slot->hotplug, &value); in GET_STATUS()
104 struct hotplug_slot *slot = pci_slot->hotplug; in power_write_file() local
113 if (!try_module_get(slot->ops->owner)) { in power_write_file()
119 if (slot->ops->disable_slot) in power_write_file()
120 retval = slot->ops->disable_slot(slot); in power_write_file()
[all …]
Dcpci_hotplug_core.c65 static int enable_slot(struct hotplug_slot *slot);
66 static int disable_slot(struct hotplug_slot *slot);
67 static int set_attention_status(struct hotplug_slot *slot, u8 value);
68 static int get_power_status(struct hotplug_slot *slot, u8 * value);
69 static int get_attention_status(struct hotplug_slot *slot, u8 * value);
70 static int get_adapter_status(struct hotplug_slot *slot, u8 * value);
71 static int get_latch_status(struct hotplug_slot *slot, u8 * value);
106 struct slot *slot = hotplug_slot->private; in enable_slot() local
109 dbg("%s - physical_slot = %s", __func__, slot_name(slot)); in enable_slot()
112 retval = controller->ops->set_power(slot, 1); in enable_slot()
[all …]
Dacpiphp_core.c73 static int enable_slot (struct hotplug_slot *slot);
74 static int disable_slot (struct hotplug_slot *slot);
75 static int set_attention_status (struct hotplug_slot *slot, u8 value);
76 static int get_power_status (struct hotplug_slot *slot, u8 *value);
77 static int get_attention_status (struct hotplug_slot *slot, u8 *value);
78 static int get_latch_status (struct hotplug_slot *slot, u8 *value);
79 static int get_adapter_status (struct hotplug_slot *slot, u8 *value);
140 struct slot *slot = hotplug_slot->private; in enable_slot() local
142 dbg("%s - physical_slot = %s\n", __func__, slot_name(slot)); in enable_slot()
145 return acpiphp_enable_slot(slot->acpi_slot); in enable_slot()
[all …]
Dpciehp_core.c65 static int set_attention_status (struct hotplug_slot *slot, u8 value);
66 static int enable_slot (struct hotplug_slot *slot);
67 static int disable_slot (struct hotplug_slot *slot);
68 static int get_power_status (struct hotplug_slot *slot, u8 *value);
69 static int get_attention_status (struct hotplug_slot *slot, u8 *value);
70 static int get_latch_status (struct hotplug_slot *slot, u8 *value);
71 static int get_adapter_status (struct hotplug_slot *slot, u8 *value);
79 struct slot *slot = hotplug_slot->private; in release_slot() local
81 ctrl_dbg(slot->ctrl, "%s: physical_slot = %s\n", in release_slot()
91 struct slot *slot = ctrl->slot; in init_slot() local
[all …]
Dcpci_hotplug.h44 struct slot { struct
59 int (*hardware_test) (struct slot* slot, u32 value); argument
60 u8 (*get_power) (struct slot* slot);
61 int (*set_power) (struct slot* slot, int value);
73 static inline const char *slot_name(struct slot *slot) in slot_name() argument
75 return hotplug_slot_name(slot->hotplug_slot); in slot_name()
89 u8 cpci_get_attention_status(struct slot *slot);
90 u8 cpci_get_latch_status(struct slot *slot);
91 u8 cpci_get_adapter_status(struct slot *slot);
92 u16 cpci_get_hs_csr(struct slot * slot);
[all …]
Ds390_pci_hpc.c38 struct slot { struct
46 struct slot *slot = hotplug_slot->private; in enable_slot() local
49 if (slot->zdev->state != ZPCI_FN_STATE_STANDBY) in enable_slot()
52 rc = sclp_pci_configure(slot->zdev->fid); in enable_slot()
53 zpci_dbg(3, "conf fid:%x, rc:%d\n", slot->zdev->fid, rc); in enable_slot()
55 slot->zdev->state = ZPCI_FN_STATE_CONFIGURED; in enable_slot()
57 zpci_enable_device(slot->zdev); in enable_slot()
58 zpci_scan_device(slot->zdev); in enable_slot()
65 struct slot *slot = hotplug_slot->private; in disable_slot() local
68 if (!zpci_fn_configured(slot->zdev->state)) in disable_slot()
[all …]
Dpcihp_skeleton.c40 struct slot { struct
75 static int enable_slot (struct hotplug_slot *slot);
76 static int disable_slot (struct hotplug_slot *slot);
77 static int set_attention_status (struct hotplug_slot *slot, u8 value);
78 static int hardware_test (struct hotplug_slot *slot, u32 value);
79 static int get_power_status (struct hotplug_slot *slot, u8 *value);
80 static int get_attention_status (struct hotplug_slot *slot, u8 *value);
81 static int get_latch_status (struct hotplug_slot *slot, u8 *value);
82 static int get_adapter_status (struct hotplug_slot *slot, u8 *value);
97 struct slot *slot = hotplug_slot->private; in enable_slot() local
[all …]
Dpciehp.h74 struct slot { struct
85 struct slot *p_slot; argument
92 struct slot *slot; member
130 int pciehp_sysfs_enable_slot(struct slot *slot);
131 int pciehp_sysfs_disable_slot(struct slot *slot);
132 u8 pciehp_handle_attention_button(struct slot *p_slot);
133 u8 pciehp_handle_switch_change(struct slot *p_slot);
134 u8 pciehp_handle_presence_change(struct slot *p_slot);
135 u8 pciehp_handle_power_fault(struct slot *p_slot);
136 int pciehp_configure_device(struct slot *p_slot);
[all …]
Drpaphp_core.c67 struct slot *slot = (struct slot *)hotplug_slot->private; in set_attention_status() local
79 rc = rtas_set_indicator(DR_INDICATOR, slot->index, value); in set_attention_status()
94 struct slot *slot = (struct slot *)hotplug_slot->private; in get_power_status() local
96 retval = rtas_get_power_level (slot->power_domain, &level); in get_power_status()
109 struct slot *slot = (struct slot *)hotplug_slot->private; in get_attention_status() local
110 *value = slot->hotplug_slot->info->attention_status; in get_attention_status()
116 struct slot *slot = (struct slot *)hotplug_slot->private; in get_adapter_status() local
119 rc = rpaphp_get_sensor_state(slot, &state); in get_adapter_status()
128 *value = slot->state; in get_adapter_status()
133 static enum pci_bus_speed get_max_bus_speed(struct slot *slot) in get_max_bus_speed() argument
[all …]
Dshpchp.h77 struct slot { struct
98 struct slot *p_slot; argument
173 int shpchp_sysfs_enable_slot(struct slot *slot);
174 int shpchp_sysfs_disable_slot(struct slot *slot);
179 int shpchp_configure_device(struct slot *p_slot);
180 int shpchp_unconfigure_device(struct slot *p_slot);
185 static inline const char *slot_name(struct slot *slot) in slot_name() argument
187 return hotplug_slot_name(slot->hotplug_slot); in slot_name()
234 static inline struct slot *get_slot(struct hotplug_slot *hotplug_slot) in get_slot()
239 static inline struct slot *shpchp_find_slot(struct controller *ctrl, u8 device) in shpchp_find_slot()
[all …]
Dacpiphp_glue.c95 struct acpiphp_slot *slot, *next; in free_bridge() local
100 list_for_each_entry_safe(slot, next, &bridge->slots, node) { in free_bridge()
101 list_for_each_entry_safe(func, tmp, &slot->funcs, sibling) { in free_bridge()
104 kfree(slot); in free_bridge()
109 put_bridge(bridge->func->slot->bridge); in free_bridge()
126 struct pci_bus *bus = func->slot->bridge->pci_bus; in post_dock_fixups()
187 get_bridge(func->slot->bridge); in acpiphp_dock_init()
194 put_bridge(func->slot->bridge); in acpiphp_dock_release()
202 struct acpiphp_slot *slot; in register_slot() local
260 list_for_each_entry(slot, &bridge->slots, node) in register_slot()
[all …]
Dsgi_hotplug.c58 struct slot { struct
82 static int enable_slot(struct hotplug_slot *slot); argument
83 static int disable_slot(struct hotplug_slot *slot);
84 static inline int get_power_status(struct hotplug_slot *slot, u8 *value);
97 struct slot *slot = pci_slot->hotplug->private; in path_show() local
99 if (!slot) in path_show()
102 retval = sprintf (buf, "%s\n", slot->physical_path); in path_show()
167 struct slot *slot; in sn_hp_slot_private_alloc() local
171 slot = kzalloc(sizeof(*slot), GFP_KERNEL); in sn_hp_slot_private_alloc()
172 if (!slot) in sn_hp_slot_private_alloc()
[all …]
Dcpqphp_core.c80 static inline int is_slot64bit(struct slot *slot) in is_slot64bit() argument
82 return (readb(slot->p_sm_slot + SMBIOS_SLOT_WIDTH) == 0x06) ? 1 : 0; in is_slot64bit()
85 static inline int is_slot66mhz(struct slot *slot) in is_slot66mhz() argument
87 return (readb(slot->p_sm_slot + SMBIOS_SLOT_TYPE) == 0x0E) ? 1 : 0; in is_slot66mhz()
188 tslot = cpqhp_routing_table->slots[loop].slot; in pci_print_IRQ_route()
285 struct slot *slot = hotplug_slot->private; in release_slot() local
287 dbg("%s - physical_slot = %s\n", __func__, slot_name(slot)); in release_slot()
289 kfree(slot->hotplug_slot->info); in release_slot()
290 kfree(slot->hotplug_slot); in release_slot()
291 kfree(slot); in release_slot()
[all …]
Drpaphp_pci.c35 int rpaphp_get_sensor_state(struct slot *slot, int *state) in rpaphp_get_sensor_state() argument
40 rc = rtas_get_sensor(DR_ENTITY_SENSE, slot->index, state); in rpaphp_get_sensor_state()
50 rc = rtas_set_power_level(slot->power_domain, POWER_ON, in rpaphp_get_sensor_state()
54 __func__, slot->name, rc); in rpaphp_get_sensor_state()
57 slot->index, state); in rpaphp_get_sensor_state()
76 int rpaphp_enable_slot(struct slot *slot) in rpaphp_enable_slot() argument
80 struct hotplug_slot_info *info = slot->hotplug_slot->info; in rpaphp_enable_slot()
83 slot->state = EMPTY; in rpaphp_enable_slot()
86 rc = rtas_get_power_level(slot->power_domain, &level); in rpaphp_enable_slot()
92 rc = rpaphp_get_sensor_state(slot, &state); in rpaphp_enable_slot()
[all …]
Dacpiphp.h58 struct slot { struct
64 static inline const char *slot_name(struct slot *slot) in slot_name() argument
66 return hotplug_slot_name(slot->hotplug_slot); in slot_name()
105 struct slot *slot; member
122 struct acpiphp_slot *slot; /* parent */ member
140 int (*set_attn)(struct hotplug_slot *slot, u8 status);
141 int (*get_attn)(struct hotplug_slot *slot, u8 *status);
175 int acpiphp_register_hotplug_slot(struct acpiphp_slot *slot);
176 void acpiphp_unregister_hotplug_slot(struct acpiphp_slot *slot);
179 typedef int (*acpiphp_callback)(struct acpiphp_slot *slot, void *data);
[all …]
Dshpchp_hpc.c310 static int shpc_write_cmd(struct slot *slot, u8 t_slot, u8 cmd) in shpc_write_cmd() argument
312 struct controller *ctrl = slot->ctrl; in shpc_write_cmd()
317 mutex_lock(&slot->ctrl->cmd_lock); in shpc_write_cmd()
338 retval = shpc_wait_cmd(slot->ctrl); in shpc_write_cmd()
342 cmd_status = hpc_check_cmd_status(slot->ctrl); in shpc_write_cmd()
350 mutex_unlock(&slot->ctrl->cmd_lock); in shpc_write_cmd()
383 static int hpc_get_attention_status(struct slot *slot, u8 *status) in hpc_get_attention_status() argument
385 struct controller *ctrl = slot->ctrl; in hpc_get_attention_status()
386 u32 slot_reg = shpc_readl(ctrl, SLOT_REG(slot->hp_slot)); in hpc_get_attention_status()
407 static int hpc_get_power_status(struct slot * slot, u8 *status) in hpc_get_power_status() argument
[all …]
/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.c109 static int ricoh_mmc_probe_slot(struct sdhci_pci_slot *slot) in ricoh_mmc_probe_slot() argument
111 slot->host->caps = in ricoh_mmc_probe_slot()
168 static int mrst_hc_probe_slot(struct sdhci_pci_slot *slot) in mrst_hc_probe_slot() argument
170 slot->host->mmc->caps |= MMC_CAP_8_BIT_DATA; in mrst_hc_probe_slot()
188 static int pch_hc_probe_slot(struct sdhci_pci_slot *slot) in pch_hc_probe_slot() argument
190 slot->host->mmc->caps |= MMC_CAP_8_BIT_DATA; in pch_hc_probe_slot()
198 struct sdhci_pci_slot *slot = dev_id; in sdhci_pci_sd_cd() local
199 struct sdhci_host *host = slot->host; in sdhci_pci_sd_cd()
205 static void sdhci_pci_add_own_cd(struct sdhci_pci_slot *slot) in sdhci_pci_add_own_cd() argument
207 int err, irq, gpio = slot->cd_gpio; in sdhci_pci_add_own_cd()
[all …]
/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 …]
/drivers/media/dvb-core/
Ddvb_ca_en50221.c165 static int dvb_ca_en50221_read_data(struct dvb_ca_private *ca, int slot, u8 * ebuf, int ecount);
166 static int dvb_ca_en50221_write_data(struct dvb_ca_private *ca, int slot, u8 * ebuf, int ecount);
202 static int dvb_ca_en50221_check_camstatus(struct dvb_ca_private *ca, int slot) in dvb_ca_en50221_check_camstatus() argument
210 return (atomic_read(&ca->slot_info[slot].camchange_count) != 0); in dvb_ca_en50221_check_camstatus()
214 slot_status = ca->pub->poll_slot_status(ca->pub, slot, ca->open); in dvb_ca_en50221_check_camstatus()
219 int cam_present_old = (ca->slot_info[slot].slot_state != DVB_CA_SLOTSTATE_NONE); in dvb_ca_en50221_check_camstatus()
225 ca->slot_info[slot].camchange_type = DVB_CA_EN50221_CAMCHANGE_REMOVED; in dvb_ca_en50221_check_camstatus()
227 ca->slot_info[slot].camchange_type = DVB_CA_EN50221_CAMCHANGE_INSERTED; in dvb_ca_en50221_check_camstatus()
229 atomic_set(&ca->slot_info[slot].camchange_count, 1); in dvb_ca_en50221_check_camstatus()
231 if ((ca->slot_info[slot].slot_state == DVB_CA_SLOTSTATE_WAITREADY) && in dvb_ca_en50221_check_camstatus()
[all …]
/drivers/pcmcia/
Dvrc4171_card.c103 vrc4171_slot_t 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 …]
/drivers/xen/xen-pciback/
Dvpci.c69 int err = 0, slot, func = -1; in __xen_pcibk_add_pci_dev() local
97 for (slot = 0; slot < PCI_SLOT_MAX; slot++) { in __xen_pcibk_add_pci_dev()
98 if (list_empty(&vpci_dev->dev_list[slot])) in __xen_pcibk_add_pci_dev()
101 t = list_entry(list_first(&vpci_dev->dev_list[slot]), in __xen_pcibk_add_pci_dev()
107 pci_name(dev), slot, in __xen_pcibk_add_pci_dev()
110 &vpci_dev->dev_list[slot]); in __xen_pcibk_add_pci_dev()
118 for (slot = 0; slot < PCI_SLOT_MAX; slot++) { in __xen_pcibk_add_pci_dev()
119 if (list_empty(&vpci_dev->dev_list[slot])) { in __xen_pcibk_add_pci_dev()
122 pci_name(dev), slot); in __xen_pcibk_add_pci_dev()
124 &vpci_dev->dev_list[slot]); in __xen_pcibk_add_pci_dev()
[all …]

1234567891011