Home
last modified time | relevance | path

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

12345678910

/linux-4.19.296/drivers/pci/hotplug/
Drpaphp_slot.c22 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()
38 slot->hotplug_slot = kzalloc(sizeof(struct hotplug_slot), GFP_KERNEL); in alloc_slot_struct()
[all …]
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
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);
121 struct slot *slot = hotplug_slot->private; 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 …]
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 …]
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 …]
Ds390_pci_hpc.c33 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()
63 struct slot *slot = hotplug_slot->private; in enable_slot() local
[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
97 hotplug->private = slot; in init_slot()
[all …]
Dpciehp.h72 struct slot { struct
121 struct slot *slot; member
182 int pciehp_sysfs_enable_slot(struct slot *slot);
183 int pciehp_sysfs_disable_slot(struct slot *slot);
185 void pciehp_handle_button_press(struct slot *slot);
186 void pciehp_handle_disable_request(struct slot *slot);
187 void pciehp_handle_presence_or_link_change(struct slot *slot, u32 events);
188 int pciehp_configure_device(struct slot *p_slot);
189 void pciehp_unconfigure_device(struct slot *p_slot);
195 int pciehp_power_on_slot(struct slot *slot);
[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_ctrl.c29 static void set_slot_off(struct controller *ctrl, struct slot *pslot) in set_slot_off()
54 static int board_added(struct slot *p_slot) in board_added()
105 static void remove_board(struct slot *p_slot) in remove_board()
130 static int pciehp_enable_slot(struct slot *slot);
131 static int pciehp_disable_slot(struct slot *slot);
142 struct slot *p_slot = container_of(work, struct slot, work.work); in pciehp_queue_pushbutton_work()
159 void pciehp_handle_button_press(struct slot *p_slot) in pciehp_handle_button_press()
209 void pciehp_handle_disable_request(struct slot *slot) in pciehp_handle_disable_request() argument
211 struct controller *ctrl = slot->ctrl; in pciehp_handle_disable_request()
213 mutex_lock(&slot->lock); in pciehp_handle_disable_request()
[all …]
Drpaphp_core.c55 struct slot *slot = (struct slot *)hotplug_slot->private; in set_attention_status() local
67 rc = rtas_set_indicator(DR_INDICATOR, slot->index, value); in set_attention_status()
82 struct slot *slot = (struct slot *)hotplug_slot->private; in get_power_status() local
84 retval = rtas_get_power_level(slot->power_domain, &level); in get_power_status()
97 struct slot *slot = (struct slot *)hotplug_slot->private; in get_attention_status() local
98 *value = slot->hotplug_slot->info->attention_status; in get_attention_status()
104 struct slot *slot = (struct slot *)hotplug_slot->private; 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()
121 static enum pci_bus_speed get_max_bus_speed(struct slot *slot) in get_max_bus_speed() argument
[all …]
Dshpchp.h63 struct slot { struct
84 struct slot *p_slot; argument
158 int shpchp_sysfs_enable_slot(struct slot *slot);
159 int shpchp_sysfs_disable_slot(struct slot *slot);
164 int shpchp_configure_device(struct slot *p_slot);
165 int shpchp_unconfigure_device(struct slot *p_slot);
170 static inline const char *slot_name(struct slot *slot) in slot_name() argument
172 return hotplug_slot_name(slot->hotplug_slot); in slot_name()
208 static inline struct slot *get_slot(struct hotplug_slot *hotplug_slot) in get_slot()
213 static inline struct slot *shpchp_find_slot(struct controller *ctrl, u8 device) in shpchp_find_slot()
[all …]
Dsgi_hotplug.c55 struct slot { struct
79 static int enable_slot(struct hotplug_slot *slot); argument
80 static int disable_slot(struct hotplug_slot *slot);
81 static inline int get_power_status(struct hotplug_slot *slot, u8 *value);
94 struct slot *slot = pci_slot->hotplug->private; in path_show() local
96 if (!slot) in path_show()
99 retval = sprintf(buf, "%s\n", slot->physical_path); in path_show()
164 struct slot *slot; in sn_hp_slot_private_alloc() local
168 slot = kzalloc(sizeof(*slot), GFP_KERNEL); in sn_hp_slot_private_alloc()
169 if (!slot) in sn_hp_slot_private_alloc()
[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()
62 int rpaphp_enable_slot(struct slot *slot) in rpaphp_enable_slot() argument
66 struct hotplug_slot_info *info = slot->hotplug_slot->info; in rpaphp_enable_slot()
69 slot->state = EMPTY; in rpaphp_enable_slot()
72 rc = rtas_get_power_level(slot->power_domain, &level); in rpaphp_enable_slot()
78 rc = rpaphp_get_sensor_state(slot, &state); in rpaphp_enable_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
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 …]
Dacpiphp.h35 struct slot { struct
42 static inline const char *slot_name(struct slot *slot) in slot_name() argument
44 return hotplug_slot_name(slot->hotplug_slot); in slot_name()
81 struct slot *slot; member
96 struct acpiphp_slot *slot; member
149 int (*set_attn)(struct hotplug_slot *slot, u8 status);
150 int (*get_attn)(struct hotplug_slot *slot, u8 *status);
172 int acpiphp_register_hotplug_slot(struct acpiphp_slot *slot, unsigned int sun);
173 void acpiphp_unregister_hotplug_slot(struct acpiphp_slot *slot);
176 typedef int (*acpiphp_callback)(struct acpiphp_slot *slot, void *data);
[all …]
/linux-4.19.296/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-4.19.296/fs/btrfs/
Dtree-checker.c47 const struct extent_buffer *eb, int slot, in generic_err() argument
61 btrfs_header_owner(eb), btrfs_header_bytenr(eb), slot, &vaf); in generic_err()
72 const struct extent_buffer *eb, int slot, in file_extent_err() argument
79 btrfs_item_key_to_cpu(eb, &key, slot); in file_extent_err()
88 btrfs_header_owner(eb), btrfs_header_bytenr(eb), slot, in file_extent_err()
97 #define CHECK_FE_ALIGNED(fs_info, leaf, slot, fi, name, alignment) \ argument
100 file_extent_err((fs_info), (leaf), (slot), \
109 struct btrfs_key *key, int slot) in check_extent_data_item() argument
113 u32 item_size = btrfs_item_size_nr(leaf, slot); in check_extent_data_item()
116 file_extent_err(fs_info, leaf, slot, in check_extent_data_item()
[all …]
/linux-4.19.296/drivers/xen/xen-pciback/
Dvpci.c72 int err = 0, slot, func = PCI_FUNC(dev->devfn); in __xen_pcibk_add_pci_dev() local
102 for (slot = 0; slot < PCI_SLOT_MAX; slot++) { in __xen_pcibk_add_pci_dev()
103 if (list_empty(&vpci_dev->dev_list[slot])) in __xen_pcibk_add_pci_dev()
106 t = list_entry(list_first(&vpci_dev->dev_list[slot]), in __xen_pcibk_add_pci_dev()
113 pci_name(dev), slot, 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 pci_name(dev), slot); in __xen_pcibk_add_pci_dev()
128 &vpci_dev->dev_list[slot]); in __xen_pcibk_add_pci_dev()
[all …]
/linux-4.19.296/lib/
Didr.c38 void __rcu **slot; in idr_alloc_u32() local
49 slot = idr_get_free(&idr->idr_rt, &iter, gfp, max - base); in idr_alloc_u32()
50 if (IS_ERR(slot)) in idr_alloc_u32()
51 return PTR_ERR(slot); in idr_alloc_u32()
55 radix_tree_iter_replace(&idr->idr_rt, &iter, slot, ptr); in idr_alloc_u32()
202 void __rcu **slot; in idr_for_each() local
205 radix_tree_for_each_slot(slot, &idr->idr_rt, &iter, 0) { in idr_for_each()
211 ret = fn(id, rcu_dereference_raw(*slot), data); in idr_for_each()
233 void __rcu **slot; in idr_get_next_ul() local
239 radix_tree_for_each_slot(slot, &idr->idr_rt, &iter, id) { in idr_get_next_ul()
[all …]
/linux-4.19.296/include/linux/
Dradix-tree.h239 static inline void *radix_tree_deref_slot(void __rcu **slot) in radix_tree_deref_slot() argument
241 return rcu_dereference(*slot); in radix_tree_deref_slot()
253 static inline void *radix_tree_deref_slot_protected(void __rcu **slot, in radix_tree_deref_slot_protected() argument
256 return rcu_dereference_protected(*slot, lockdep_is_held(treelock)); in radix_tree_deref_slot_protected()
309 void __rcu **slot, void *entry,
312 const struct radix_tree_iter *, void __rcu **slot, void *entry);
314 void __rcu **slot, void *entry);
319 struct radix_tree_iter *iter, void __rcu **slot);
323 void __rcu **slot);
481 void __rcu **__must_check radix_tree_iter_resume(void __rcu **slot,
[all …]
Dpci_hotplug.h51 int (*enable_slot) (struct hotplug_slot *slot);
52 int (*disable_slot) (struct hotplug_slot *slot);
53 int (*set_attention_status) (struct hotplug_slot *slot, u8 value);
54 int (*hardware_test) (struct hotplug_slot *slot, u32 value);
55 int (*get_power_status) (struct hotplug_slot *slot, u8 *value);
56 int (*get_attention_status) (struct hotplug_slot *slot, u8 *value);
57 int (*get_latch_status) (struct hotplug_slot *slot, u8 *value);
58 int (*get_adapter_status) (struct hotplug_slot *slot, u8 *value);
59 int (*reset_slot) (struct hotplug_slot *slot, int probe);
96 static inline const char *hotplug_slot_name(const struct hotplug_slot *slot) in hotplug_slot_name() argument
[all …]
/linux-4.19.296/drivers/media/dvb-core/
Ddvb_ca_en50221.c204 static int dvb_ca_en50221_read_data(struct dvb_ca_private *ca, int slot,
206 static int dvb_ca_en50221_write_data(struct dvb_ca_private *ca, int slot,
239 static int dvb_ca_en50221_check_camstatus(struct dvb_ca_private *ca, int slot) in dvb_ca_en50221_check_camstatus() argument
241 struct dvb_ca_slot *sl = &ca->slot_info[slot]; in dvb_ca_en50221_check_camstatus()
251 slot_status = ca->pub->poll_slot_status(ca->pub, slot, ca->open); in dvb_ca_en50221_check_camstatus()
289 static int dvb_ca_en50221_wait_if_status(struct dvb_ca_private *ca, int slot, in dvb_ca_en50221_wait_if_status() argument
304 res = ca->pub->read_cam_control(ca->pub, slot, CTRLIF_STATUS); in dvb_ca_en50221_wait_if_status()
337 static int dvb_ca_en50221_link_init(struct dvb_ca_private *ca, int slot) in dvb_ca_en50221_link_init() argument
339 struct dvb_ca_slot *sl = &ca->slot_info[slot]; in dvb_ca_en50221_link_init()
356 ret = ca->pub->write_cam_control(ca->pub, slot, CTRLIF_COMMAND, in dvb_ca_en50221_link_init()
[all …]
/linux-4.19.296/include/media/
Ddvb_ca_en50221.h62 int slot, int address);
64 int slot, int address, u8 value);
67 int slot, u8 address);
69 int slot, u8 address, u8 value);
72 int slot, u8 *ebuf, int ecount);
74 int slot, u8 *ebuf, int ecount);
76 int (*slot_reset)(struct dvb_ca_en50221 *ca, int slot);
77 int (*slot_shutdown)(struct dvb_ca_en50221 *ca, int slot);
78 int (*slot_ts_enable)(struct dvb_ca_en50221 *ca, int slot);
80 int (*poll_slot_status)(struct dvb_ca_en50221 *ca, int slot, int open);
[all …]

12345678910