Home
last modified time | relevance | path

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

12345678910>>...17

/drivers/pci/hotplug/
Dcpci_hotplug_pci.c33 u8 cpci_get_attention_status(struct slot *slot) in cpci_get_attention_status() argument
38 hs_cap = pci_bus_find_capability(slot->bus, in cpci_get_attention_status()
39 slot->devfn, in cpci_get_attention_status()
44 if (pci_bus_read_config_word(slot->bus, in cpci_get_attention_status()
45 slot->devfn, in cpci_get_attention_status()
53 int cpci_set_attention_status(struct slot *slot, int status) in cpci_set_attention_status() argument
58 hs_cap = pci_bus_find_capability(slot->bus, in cpci_set_attention_status()
59 slot->devfn, in cpci_set_attention_status()
63 if (pci_bus_read_config_word(slot->bus, in cpci_set_attention_status()
64 slot->devfn, in cpci_set_attention_status()
[all …]
Dshpchp_core.c45 static int set_attention_status(struct hotplug_slot *slot, u8 value);
46 static int enable_slot(struct hotplug_slot *slot);
47 static int disable_slot(struct hotplug_slot *slot);
48 static int get_power_status(struct hotplug_slot *slot, u8 *value);
49 static int get_attention_status(struct hotplug_slot *slot, u8 *value);
50 static int get_latch_status(struct hotplug_slot *slot, u8 *value);
51 static int get_adapter_status(struct hotplug_slot *slot, u8 *value);
65 struct slot *slot; in init_slots() local
72 slot = kzalloc(sizeof(*slot), GFP_KERNEL); in init_slots()
73 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.c23 void dealloc_slot_struct(struct slot *slot) in dealloc_slot_struct() argument
25 of_node_put(slot->dn); in dealloc_slot_struct()
26 kfree(slot->name); 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->name = kstrdup(drc_name, GFP_KERNEL); in alloc_slot_struct()
39 if (!slot->name) in alloc_slot_struct()
[all …]
Dacpiphp_core.c51 static int enable_slot(struct hotplug_slot *slot);
52 static int disable_slot(struct hotplug_slot *slot);
53 static int set_attention_status(struct hotplug_slot *slot, u8 value);
54 static int get_power_status(struct hotplug_slot *slot, u8 *value);
55 static int get_attention_status(struct hotplug_slot *slot, u8 *value);
56 static int get_latch_status(struct hotplug_slot *slot, u8 *value);
57 static int get_adapter_status(struct hotplug_slot *slot, u8 *value);
120 struct slot *slot = to_slot(hotplug_slot); in enable_slot() local
122 pr_debug("%s - physical_slot = %s\n", __func__, slot_name(slot)); in enable_slot()
125 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 …]
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()
85 u8 cpci_get_attention_status(struct slot *slot);
86 u16 cpci_get_hs_csr(struct slot *slot);
[all …]
Drpaphp_core.c57 struct slot *slot = to_slot(hotplug_slot); in set_attention_status() local
69 rc = rtas_set_indicator(DR_INDICATOR, slot->index, value); in set_attention_status()
71 slot->attention_status = value; in set_attention_status()
84 struct slot *slot = to_slot(hotplug_slot); in get_power_status() local
86 retval = rtas_get_power_level(slot->power_domain, &level); in get_power_status()
99 struct slot *slot = to_slot(hotplug_slot); in get_attention_status() local
100 *value = slot->attention_status; in get_attention_status()
106 struct slot *slot = to_slot(hotplug_slot); in get_adapter_status() local
109 rc = rpaphp_get_sensor_state(slot, &state); in get_adapter_status()
118 *value = slot->state; in get_adapter_status()
[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 …]
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
278 list_for_each_entry(slot, &bridge->slots, node) in acpiphp_add_context()
279 if (slot->device == device) in acpiphp_add_context()
282 slot = kzalloc(sizeof(struct acpiphp_slot), GFP_KERNEL); in acpiphp_add_context()
283 if (!slot) { in acpiphp_add_context()
[all …]
Drpaphp_pci.c72 static int __rpaphp_get_sensor_state(struct slot *slot, int *state) in __rpaphp_get_sensor_state() argument
78 struct pci_controller *phb = PCI_DN(slot->dn)->phb; in __rpaphp_get_sensor_state()
95 slot->index); in __rpaphp_get_sensor_state()
99 return rtas_get_sensor(DR_ENTITY_SENSE, slot->index, state); in __rpaphp_get_sensor_state()
102 int rpaphp_get_sensor_state(struct slot *slot, int *state) in rpaphp_get_sensor_state() argument
107 rc = __rpaphp_get_sensor_state(slot, state); in rpaphp_get_sensor_state()
117 rc = rtas_set_power_level(slot->power_domain, POWER_ON, in rpaphp_get_sensor_state()
121 __func__, slot->name, rc); in rpaphp_get_sensor_state()
123 rc = __rpaphp_get_sensor_state(slot, state); in rpaphp_get_sensor_state()
141 int rpaphp_enable_slot(struct slot *slot) in rpaphp_enable_slot() argument
[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()
307 get_slot_mapping(struct pci_bus *bus, u8 bus_num, u8 dev_num, u8 *slot) in get_slot_mapping() argument
315 dbg("%s: %p, %d, %d, %p\n", __func__, bus, bus_num, dev_num, slot); in get_slot_mapping()
[all …]
Dshpchp_hpc.c288 static int shpc_write_cmd(struct slot *slot, u8 t_slot, u8 cmd) in shpc_write_cmd() argument
290 struct controller *ctrl = slot->ctrl; in shpc_write_cmd()
295 mutex_lock(&slot->ctrl->cmd_lock); in shpc_write_cmd()
316 retval = shpc_wait_cmd(slot->ctrl); in shpc_write_cmd()
320 cmd_status = hpc_check_cmd_status(slot->ctrl); in shpc_write_cmd()
327 mutex_unlock(&slot->ctrl->cmd_lock); in shpc_write_cmd()
360 static int hpc_get_attention_status(struct slot *slot, u8 *status) in hpc_get_attention_status() argument
362 struct controller *ctrl = slot->ctrl; in hpc_get_attention_status()
363 u32 slot_reg = shpc_readl(ctrl, SLOT_REG(slot->hp_slot)); in hpc_get_attention_status()
384 static int hpc_get_power_status(struct slot *slot, u8 *status) in hpc_get_power_status() argument
[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
152 int (*set_attn)(struct hotplug_slot *slot, u8 status);
153 int (*get_attn)(struct hotplug_slot *slot, u8 *status);
175 int acpiphp_register_hotplug_slot(struct acpiphp_slot *slot, unsigned int sun);
[all …]
Drpaphp.h60 struct slot { struct
77 static inline struct slot *to_slot(struct hotplug_slot *hotplug_slot) in to_slot() argument
79 return container_of(hotplug_slot, struct slot, hotplug_slot); in to_slot()
85 int rpaphp_enable_slot(struct slot *slot);
86 int rpaphp_get_sensor_state(struct slot *slot, int *state);
94 void dealloc_slot_struct(struct slot *slot);
95 struct slot *alloc_slot_struct(struct device_node *dn, int drc_index, char *drc_name, int power_dom…
96 int rpaphp_register_slot(struct slot *slot);
97 int rpaphp_deregister_slot(struct slot *slot);
/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.c54 struct sdhci_pci_slot *slot = chip->slots[i]; in sdhci_pci_init_wakeup() local
56 if (slot) { in sdhci_pci_init_wakeup()
57 pm_flags |= slot->host->mmc->pm_flags; in sdhci_pci_init_wakeup()
58 if (slot->host->mmc->caps & MMC_CAP_CD_WAKE) in sdhci_pci_init_wakeup()
78 struct sdhci_pci_slot *slot = chip->slots[i]; in sdhci_pci_suspend_host() local
81 if (!slot) in sdhci_pci_suspend_host()
84 host = slot->host; in sdhci_pci_suspend_host()
107 struct sdhci_pci_slot *slot; in sdhci_pci_resume_host() local
111 slot = chip->slots[i]; in sdhci_pci_resume_host()
112 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.c177 static void mmc_omap_fclk_offdelay(struct mmc_omap_slot *slot) in mmc_omap_fclk_offdelay() argument
181 if (slot != NULL && slot->host->fclk_enabled && slot->fclk_freq > 0) { in mmc_omap_fclk_offdelay()
182 tick_ns = DIV_ROUND_UP(NSEC_PER_SEC, slot->fclk_freq); in mmc_omap_fclk_offdelay()
202 static void mmc_omap_select_slot(struct mmc_omap_slot *slot, int claimed) in mmc_omap_select_slot() argument
204 struct mmc_omap_host *host = slot->host; in mmc_omap_select_slot()
215 host->mmc = slot->mmc; in mmc_omap_select_slot()
219 if (host->current_slot != slot || !claimed) in mmc_omap_select_slot()
222 if (host->current_slot != slot) { in mmc_omap_select_slot()
223 OMAP_MMC_WRITE(host, CON, slot->saved_con & 0xFC00); in mmc_omap_select_slot()
230 gpiod_set_value(host->slot_switch, slot->id); in mmc_omap_select_slot()
[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/crypto/marvell/octeontx2/
Dotx2_cptlf.c17 lf->slot, OTX2_CPT_LF_DONE_WAIT); in cptlf_do_set_done_time_wait()
19 otx2_cpt_write64(lf->lfs->reg_base, lf->lfs->blkaddr, lf->slot, in cptlf_do_set_done_time_wait()
28 lf->slot, OTX2_CPT_LF_DONE_WAIT); in cptlf_do_set_done_num_wait()
30 otx2_cpt_write64(lf->lfs->reg_base, lf->lfs->blkaddr, lf->slot, in cptlf_do_set_done_num_wait()
37 int slot; in cptlf_set_done_time_wait() local
39 for (slot = 0; slot < lfs->lfs_num; slot++) in cptlf_set_done_time_wait()
40 cptlf_do_set_done_time_wait(&lfs->lf[slot], time_wait); in cptlf_set_done_time_wait()
45 int slot; in cptlf_set_done_num_wait() local
47 for (slot = 0; slot < lfs->lfs_num; slot++) in cptlf_set_done_num_wait()
48 cptlf_do_set_done_num_wait(&lfs->lf[slot], num_wait); in cptlf_set_done_num_wait()
[all …]
Dotx2_cptlf.h90 u8 slot; /* Slot number of this LF */ member
179 int slot; in otx2_cptlf_set_iqueues_base_addr() local
181 for (slot = 0; slot < lfs->lfs_num; slot++) { in otx2_cptlf_set_iqueues_base_addr()
182 lf_q_base.u = lfs->lf[slot].iqueue.dma_addr; in otx2_cptlf_set_iqueues_base_addr()
183 otx2_cpt_write64(lfs->reg_base, lfs->blkaddr, slot, in otx2_cptlf_set_iqueues_base_addr()
194 otx2_cpt_write64(lf->lfs->reg_base, lf->lfs->blkaddr, lf->slot, in otx2_cptlf_do_set_iqueue_size()
200 int slot; in otx2_cptlf_set_iqueues_size() local
202 for (slot = 0; slot < lfs->lfs_num; slot++) in otx2_cptlf_set_iqueues_size()
203 otx2_cptlf_do_set_iqueue_size(&lfs->lf[slot]); in otx2_cptlf_set_iqueues_size()
214 otx2_cpt_write64(lf->lfs->reg_base, blkaddr, lf->slot, in otx2_cptlf_do_disable_iqueue()
[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/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>>...17