Home
last modified time | relevance | path

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

12345678910>>...15

/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.c22 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()
38 if (!slot->name) in alloc_slot_struct()
[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);
121 struct slot *slot = to_slot(hotplug_slot); 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 …]
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 …]
Dshpchp.h63 struct slot { struct
86 struct slot *p_slot; argument
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 void 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()
212 return container_of(hotplug_slot, struct 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()
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()
97 struct slot *slot = to_slot(hotplug_slot); in get_attention_status() local
98 *value = slot->attention_status; in get_attention_status()
104 struct slot *slot = to_slot(hotplug_slot); 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()
[all …]
Dacpiphp_glue.c153 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
277 list_for_each_entry(slot, &bridge->slots, node) in acpiphp_add_context()
278 if (slot->device == device) in acpiphp_add_context()
281 slot = kzalloc(sizeof(struct acpiphp_slot), GFP_KERNEL); in acpiphp_add_context()
282 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()
61 int rpaphp_enable_slot(struct slot *slot) in rpaphp_enable_slot() argument
66 slot->state = EMPTY; in rpaphp_enable_slot()
69 rc = rtas_get_power_level(slot->power_domain, &level); in rpaphp_enable_slot()
74 rc = rpaphp_get_sensor_state(slot, &state); in rpaphp_enable_slot()
78 bus = pci_find_bus_by_node(slot->dn); in rpaphp_enable_slot()
[all …]
Dacpiphp.h35 struct slot { struct
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()
85 struct slot *slot; member
100 struct acpiphp_slot *slot; member
153 int (*set_attn)(struct hotplug_slot *slot, u8 status);
154 int (*get_attn)(struct hotplug_slot *slot, u8 *status);
176 int acpiphp_register_hotplug_slot(struct acpiphp_slot *slot, unsigned int sun);
[all …]
Dcpqphp_core.c66 static inline int is_slot64bit(struct slot *slot) in is_slot64bit() argument
68 return (readb(slot->p_sm_slot + SMBIOS_SLOT_WIDTH) == 0x06) ? 1 : 0; in is_slot64bit()
71 static inline int is_slot66mhz(struct slot *slot) in is_slot66mhz() argument
73 return (readb(slot->p_sm_slot + SMBIOS_SLOT_TYPE) == 0x0E) ? 1 : 0; in is_slot66mhz()
172 tslot = cpqhp_routing_table->slots[loop].slot; in pci_print_IRQ_route()
268 struct slot *old_slot, *next_slot; in ctrl_slot_cleanup()
270 old_slot = ctrl->slot; in ctrl_slot_cleanup()
271 ctrl->slot = NULL; in ctrl_slot_cleanup()
306 get_slot_mapping(struct pci_bus *bus, u8 bus_num, u8 dev_num, u8 *slot) in get_slot_mapping() argument
314 dbg("%s: %p, %d, %d, %p\n", __func__, bus, bus_num, dev_num, slot); in get_slot_mapping()
[all …]
Dshpchp_hpc.c293 static int shpc_write_cmd(struct slot *slot, u8 t_slot, u8 cmd) in shpc_write_cmd() argument
295 struct controller *ctrl = slot->ctrl; in shpc_write_cmd()
300 mutex_lock(&slot->ctrl->cmd_lock); in shpc_write_cmd()
321 retval = shpc_wait_cmd(slot->ctrl); in shpc_write_cmd()
325 cmd_status = hpc_check_cmd_status(slot->ctrl); in shpc_write_cmd()
332 mutex_unlock(&slot->ctrl->cmd_lock); in shpc_write_cmd()
365 static int hpc_get_attention_status(struct slot *slot, u8 *status) in hpc_get_attention_status() argument
367 struct controller *ctrl = slot->ctrl; in hpc_get_attention_status()
368 u32 slot_reg = shpc_readl(ctrl, SLOT_REG(slot->hp_slot)); in hpc_get_attention_status()
389 static int hpc_get_power_status(struct slot *slot, u8 *status) in hpc_get_power_status() argument
[all …]
/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 …]
Dsdhci-pci-core.c53 struct sdhci_pci_slot *slot = chip->slots[i]; in sdhci_pci_init_wakeup() local
55 if (slot) { in sdhci_pci_init_wakeup()
56 pm_flags |= slot->host->mmc->pm_flags; in sdhci_pci_init_wakeup()
57 if (slot->host->mmc->caps & MMC_CAP_CD_WAKE) in sdhci_pci_init_wakeup()
77 struct sdhci_pci_slot *slot = chip->slots[i]; in sdhci_pci_suspend_host() local
80 if (!slot) in sdhci_pci_suspend_host()
83 host = slot->host; in sdhci_pci_suspend_host()
106 struct sdhci_pci_slot *slot; in sdhci_pci_resume_host() local
110 slot = chip->slots[i]; in sdhci_pci_resume_host()
111 if (!slot) in sdhci_pci_resume_host()
[all …]
Dcavium.c228 static bool switch_val_changed(struct cvm_mmc_slot *slot, u64 new_val) in switch_val_changed() argument
233 return (slot->cached_switch & match) != (new_val & match); in switch_val_changed()
236 static void set_wdog(struct cvm_mmc_slot *slot, unsigned int ns) in set_wdog() argument
240 if (!slot->clock) in set_wdog()
244 timeout = (slot->clock * ns) / NSEC_PER_SEC; in set_wdog()
246 timeout = (slot->clock * 850ull) / 1000ull; in set_wdog()
247 writeq(timeout, slot->host->base + MIO_EMM_WDOG(slot->host)); in set_wdog()
250 static void cvm_mmc_reset_bus(struct cvm_mmc_slot *slot) in cvm_mmc_reset_bus() argument
252 struct cvm_mmc_host *host = slot->host; in cvm_mmc_reset_bus()
255 emm_switch = readq(slot->host->base + MIO_EMM_SWITCH(host)); in cvm_mmc_reset_bus()
[all …]
Domap.c172 static void mmc_omap_fclk_offdelay(struct mmc_omap_slot *slot) in mmc_omap_fclk_offdelay() argument
176 if (slot != NULL && slot->host->fclk_enabled && slot->fclk_freq > 0) { in mmc_omap_fclk_offdelay()
177 tick_ns = DIV_ROUND_UP(NSEC_PER_SEC, slot->fclk_freq); in mmc_omap_fclk_offdelay()
197 static void mmc_omap_select_slot(struct mmc_omap_slot *slot, int claimed) in mmc_omap_select_slot() argument
199 struct mmc_omap_host *host = slot->host; in mmc_omap_select_slot()
210 host->mmc = slot->mmc; in mmc_omap_select_slot()
214 if (host->current_slot != slot || !claimed) in mmc_omap_select_slot()
217 if (host->current_slot != slot) { in mmc_omap_select_slot()
218 OMAP_MMC_WRITE(host, CON, slot->saved_con & 0xFC00); in mmc_omap_select_slot()
220 host->pdata->switch_slot(mmc_dev(slot->mmc), slot->id); in mmc_omap_select_slot()
[all …]
Ddw_mmc.c109 struct dw_mci_slot *slot = s->private; in dw_mci_req_show() local
116 spin_lock_bh(&slot->host->lock); in dw_mci_req_show()
117 mrq = slot->mrq; in dw_mci_req_show()
142 spin_unlock_bh(&slot->host->lock); in dw_mci_req_show()
167 static void dw_mci_init_debugfs(struct dw_mci_slot *slot) in dw_mci_init_debugfs() argument
169 struct mmc_host *mmc = slot->mmc; in dw_mci_init_debugfs()
170 struct dw_mci *host = slot->host; in dw_mci_init_debugfs()
178 debugfs_create_file("req", S_IRUSR, root, slot, &dw_mci_req_fops); in dw_mci_init_debugfs()
230 static void mci_send_cmd(struct dw_mci_slot *slot, u32 cmd, u32 arg) in mci_send_cmd() argument
232 struct dw_mci *host = slot->host; in mci_send_cmd()
[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/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 …]
/drivers/xen/xen-pciback/
Dvpci.c73 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 …]
/drivers/media/dvb-core/
Ddvb_ca_en50221.c193 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 …]
/drivers/staging/mt7621-pci/
Dpci-mt7621.c110 u32 slot; member
175 static inline u32 mt7621_pci_get_cfgaddr(unsigned int bus, unsigned int slot, in mt7621_pci_get_cfgaddr() argument
178 return (((where & 0xF00) >> 8) << 24) | (bus << 16) | (slot << 11) | in mt7621_pci_get_cfgaddr()
236 rt_sysc_m32(0, PCIE_PORT_CLK_EN(port->slot), RALINK_CLKCFG1); in mt7621_pcie_port_clk_enable()
241 rt_sysc_m32(PCIE_PORT_CLK_EN(port->slot), 0, RALINK_CLKCFG1); in mt7621_pcie_port_clk_disable()
286 static int mt7621_map_irq(const struct pci_dev *pdev, u8 slot, u8 pin) in mt7621_map_irq() argument
290 int irq = pcie->irq_map[slot]; in mt7621_map_irq()
292 dev_info(dev, "bus=%d slot=%d irq=%d\n", pdev->bus->number, slot, irq); in mt7621_map_irq()
343 int slot) in mt7621_pcie_parse_port() argument
357 err = of_address_to_resource(pnode, slot + 1, &regs); in mt7621_pcie_parse_port()
[all …]
/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 …]

12345678910>>...15