Home
last modified time | relevance | path

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

12345678910>>...89

/linux/drivers/pci/hotplug/
H A 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 …]
H A Drpaphp_slot.c22 /* free up the memory used by a slot */
23 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()
[all …]
H A 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);
112 * enable_slot - power on and enable a slot
113 * @hotplug_slot: slot to enable
119 struct slot *slot = to_slot(hotplug_slot); in enable_slot() local
[all …]
H A Dpci_hotplug_core.c41 static int get_##name(struct hotplug_slot *slot, type *value) \
43 const struct hotplug_slot_ops *ops = slot->ops; \
46 retval = ops->get_##name(slot, value); \
70 struct hotplug_slot *slot = pci_slot->hotplug; in power_write_file() local
81 if (slot->ops->disable_slot) in power_write_file()
82 retval = slot->ops->disable_slot(slot); in power_write_file()
86 if (slot->ops->enable_slot) in power_write_file()
87 retval = slot->ops->enable_slot(slot); in power_write_file()
121 struct hotplug_slot *slot = pci_slot->hotplug; in attention_write_file() local
122 const struct hotplug_slot_ops *ops = slot->ops; in attention_write_file()
[all …]
H A 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()
203 * secondary bridge on slot in acpiphp_post_dock_fixup()
232 struct acpiphp_slot *slot; in acpiphp_add_context() local
277 /* search for objects that share the same slot */ in acpiphp_add_context()
278 list_for_each_entry(slot, &bridge->slots, node) in acpiphp_add_context()
279 if (slot->device == device) in acpiphp_add_context()
[all …]
H A 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()
77 * get_power_status - get power status of a slot
78 * @hotplug_slot: slot to get 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()
94 * @hotplug_slot: slot to get status
99 struct slot *slot = to_slot(hotplug_slot); in get_attention_status() local
100 *value = slot->attention_status; in get_attention_status()
[all …]
H A 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()
84 * Fallback to existing method for empty slot or PE isn't in EEH 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()
111 dbg("%s: slot must be power up to get sensor-state\n", in rpaphp_get_sensor_state()
117 rc = rtas_set_power_level(slot->power_domain, POWER_ON, in rpaphp_get_sensor_state()
120 dbg("%s: power on slot[%s] failed rc=%d.\n", in rpaphp_get_sensor_state()
[all …]
H A Dacpiphp.h33 * struct slot - slot information for each *physical* slot
35 struct slot { struct
38 unsigned int sun; /* ACPI _SUN (Slot User Number) value */
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()
76 * struct acpiphp_slot - PCI slot information
78 * PCI slot information for each *physical* PCI slot
83 struct list_head funcs; /* one slot may have different
[all …]
H A Dshpchp_ctrl.c25 static int shpchp_enable_slot(struct slot *p_slot);
26 static int shpchp_disable_slot(struct slot *p_slot);
28 static int queue_interrupt_event(struct slot *p_slot, u32 event_type) in queue_interrupt_event()
47 struct slot *p_slot; in shpchp_handle_attention_button()
59 ctrl_info(ctrl, "Button pressed on Slot(%s)\n", slot_name(p_slot)); in shpchp_handle_attention_button()
70 struct slot *p_slot; in shpchp_handle_switch_change()
87 ctrl_info(ctrl, "Latch open on Slot(%s)\n", slot_name(p_slot)); in shpchp_handle_switch_change()
97 ctrl_info(ctrl, "Latch close on Slot(%s)\n", slot_name(p_slot)); in shpchp_handle_switch_change()
108 struct slot *p_slot; in shpchp_handle_presence_change()
124 ctrl_info(ctrl, "Card present on Slot(%s)\n", in shpchp_handle_presence_change()
[all …]
H A Dshpchp_hpc.c24 /* Slot Available Register I field definition */
30 /* Slot Available Register II field definition */
39 /* Slot Configuration */
65 * Logical Slot Register definitions
107 * Slot Operation 00h - 3Fh
115 #define SET_SLOT_PWR 0x01 /* Slot Operation */
164 /* Field Offset in Logical Slot Register - byte boundary */
287 static int shpc_write_cmd(struct slot *slot, u8 t_slot, u8 cmd) in shpc_write_cmd() argument
289 struct controller *ctrl = slot->ctrl; in shpc_write_cmd()
294 mutex_lock(&slot->ctrl->cmd_lock); in shpc_write_cmd()
[all …]
H A Drpadlpar_core.c81 dn = find_php_slot_pci_node(drc_name, "SLOT"); in find_dlpar_node()
103 * find_php_slot - return hotplug slot structure for device node
106 * This routine will return the hotplug slot structure
111 static struct slot *find_php_slot(struct device_node *dn) in find_php_slot()
113 struct slot *slot, *next; in find_php_slot() local
115 list_for_each_entry_safe(slot, next, &rpaphp_slot_head, in find_php_slot()
117 if (slot->dn == dn) in find_php_slot()
118 return slot; in find_php_slot()
196 /* Add hotplug slot */ in dlpar_add_pci_slot()
198 printk(KERN_ERR "%s: unable to add hotplug slot %s\n", in dlpar_add_pci_slot()
[all …]
H A Drpaphp.h31 #define EMPTY 0 /* No card in slot */
32 #define PRESENT 1 /* Card in slot */
46 /* slot states */
58 * struct slot - slot information for each *physical* slot
60 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);
[all …]
/linux/arch/alpha/kernel/
H A Dsys_noritake.c146 * 2 Interrupt Line A from slot 0
147 * 3 Interrupt Line B from slot 0
148 * 4 Interrupt Line A from slot 1
149 * 5 Interrupt line B from slot 1
150 * 6 Interrupt Line A from slot 2
151 * 7 Interrupt Line B from slot 2
152 * 8 Interrupt Line A from slot 3
153 * 9 Interrupt Line B from slot 3
154 *10 Interrupt Line A from slot 4
155 *11 Interrupt Line B from slot 4
[all …]
H A Dsys_miata.c107 *12 Interrupt Line A from slot 4
108 *13 Interrupt Line B from slot 4
109 *14 Interrupt Line C from slot 4
110 *15 Interrupt Line D from slot 4
111 *16 Interrupt Line A from slot 5
112 *17 Interrupt line B from slot 5
113 *18 Interrupt Line C from slot 5
114 *19 Interrupt Line D from slot 5
115 *20 Interrupt Line A from slot 1
116 *21 Interrupt Line B from slot 1
[all …]
/linux/fs/btrfs/
H A Dtree-checker.c51 * Append generic "corrupt leaf/node root=%llu block=%llu slot=%d: " to @fmt.
56 static void generic_err(const struct extent_buffer *eb, int slot, in generic_err() argument
70 "corrupt %s: root=%llu block=%llu slot=%d, %pV", in generic_err()
72 btrfs_header_owner(eb), btrfs_header_bytenr(eb), slot, &vaf); in generic_err()
82 static void file_extent_err(const struct extent_buffer *eb, int slot, in file_extent_err() argument
90 btrfs_item_key_to_cpu(eb, &key, slot); in file_extent_err()
98 "corrupt %s: root=%llu block=%llu slot=%d ino=%llu file_offset=%llu, %pV", in file_extent_err()
100 btrfs_header_owner(eb), btrfs_header_bytenr(eb), slot, in file_extent_err()
109 #define CHECK_FE_ALIGNED(leaf, slot, fi, name, alignment) \ argument
113 file_extent_err((leaf), (slot), \
[all …]
/linux/drivers/xen/xen-pciback/
H A 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()
113 dev_info(&dev->dev, "vpci: assign to virtual slot %d func %d\n", 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()
122 /* Assign to a new slot on the virtual PCI bus */ 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()
[all …]
/linux/fs/nfs/
H A Dnfs4session.c37 * nfs4_shrink_slot_table - free retired slots from the slot table
49 struct nfs4_slot *slot = *p; in nfs4_shrink_slot_table() local
51 *p = slot->next; in nfs4_shrink_slot_table()
52 kfree(slot); in nfs4_shrink_slot_table()
59 * @tbl: controlling slot table
69 * nfs4_free_slot - free a slot and efficiently update slot table.
71 * freeing a slot is trivially done by clearing its respective bit
74 * so that the server would be able to size down the slot table if needed,
83 void nfs4_free_slot(struct nfs4_slot_table *tbl, struct nfs4_slot *slot) in nfs4_free_slot() argument
85 u32 slotid = slot->slot_nr; in nfs4_free_slot()
[all …]
/linux/include/linux/
H A Dradix-tree.h37 * The bottom two bits of the slot determine how the remaining bits in the
38 * slot are interpreted:
45 * sibling entry, or an indicator that the entry in this slot has been moved
94 * @index: index of current slot
97 * @node: node that contains current slot
101 * described by a pointer to its first slot and a struct radix_tree_iter
165 * radix_tree_deref_slot - dereference a slot
166 * @slot: slot pointer, returned by radix_tree_lookup_slot
169 * locked across slot lookup and dereference. Not required if write lock is
175 * Return: entry stored in that slot.
[all …]
/linux/net/sched/
H A Dsch_sfq.c98 sfq_index next; /* next slot in sfq RR chain */
101 int allot; /* credit for this slot */
115 u8 cur_depth; /* depth of longest slot */
124 struct sfq_slot *tail; /* current slot in round */
194 * x : slot number [0 .. SFQ_MAX_FLOWS - 1]
199 struct sfq_slot *slot = &q->slots[x]; in sfq_link() local
200 int qlen = slot->qlen; in sfq_link()
205 slot->dep.next = n; in sfq_link()
206 slot->dep.prev = p; in sfq_link()
249 /* remove one skb from tail of slot queue */
[all …]
/linux/drivers/media/dvb-core/
H A Ddvb_ca_en50221.c79 /* Information on a CA slot */
84 /* mutex used for serializing access to one CI slot */
108 /* timer used during various states of the slot */
128 /* information on each slot */
147 * Slot to start looking for data to read from in the next user-space
193 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()
[all …]
/linux/arch/x86/kvm/mmu/
H A Dpage_track.c42 void kvm_page_track_free_memslot(struct kvm_memory_slot *slot) in kvm_page_track_free_memslot() argument
44 vfree(slot->arch.gfn_write_track); in kvm_page_track_free_memslot()
45 slot->arch.gfn_write_track = NULL; in kvm_page_track_free_memslot()
48 static int __kvm_page_track_write_tracking_alloc(struct kvm_memory_slot *slot, in __kvm_page_track_write_tracking_alloc() argument
51 const size_t size = sizeof(*slot->arch.gfn_write_track); in __kvm_page_track_write_tracking_alloc()
53 if (!slot->arch.gfn_write_track) in __kvm_page_track_write_tracking_alloc()
54 slot->arch.gfn_write_track = __vcalloc(npages, size, in __kvm_page_track_write_tracking_alloc()
57 return slot->arch.gfn_write_track ? 0 : -ENOMEM; in __kvm_page_track_write_tracking_alloc()
61 struct kvm_memory_slot *slot, in kvm_page_track_create_memslot() argument
67 return __kvm_page_track_write_tracking_alloc(slot, npages); in kvm_page_track_create_memslot()
[all …]
/linux/drivers/media/pci/mantis/
H A 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 …]
/linux/sound/core/oss/
H A Dmixer_oss.c251 static int snd_mixer_oss_get_volume(struct snd_mixer_oss_file *fmixer, int slot) in snd_mixer_oss_get_volume() argument
257 if (mixer == NULL || slot > 30) in snd_mixer_oss_get_volume()
260 pslot = &mixer->slots[slot]; in snd_mixer_oss_get_volume()
280 int slot, int volume) in snd_mixer_oss_set_volume() argument
286 if (mixer == NULL || slot > 30) in snd_mixer_oss_set_volume()
289 pslot = &mixer->slots[slot]; in snd_mixer_oss_set_volume()
447 static void snd_mixer_oss_recsrce_set(struct snd_card *card, int slot)
451 mixer->mask_recsrc |= 1 << slot;
454 static int snd_mixer_oss_recsrce_get(struct snd_card *card, int slot)
457 if (mixer && (mixer->mask_recsrc & (1 << slot)))
[all …]
/linux/sound/pci/ac97/
H A Dac97_pcm.c34 AC97_PCM_FRONT_DAC_RATE, /* slot 3 */
35 AC97_PCM_FRONT_DAC_RATE, /* slot 4 */
36 0xff, /* slot 5 */
37 AC97_PCM_LFE_DAC_RATE, /* slot 6 */
38 AC97_PCM_SURR_DAC_RATE, /* slot 7 */
39 AC97_PCM_SURR_DAC_RATE, /* slot 8 */
40 AC97_PCM_LFE_DAC_RATE, /* slot 9 */
41 0xff, /* slot 10 */
42 0xff, /* slot 11 */
46 0xff, /* slot 3 */
[all …]
/linux/tools/testing/radix-tree/
H A Dregression3.c7 * This isn't checked and it tries to dereference null pointer in slot.
9 * Helper radix_tree_iter_resume reset slot to NULL and next_index to index + 1,
35 void **slot; in regression3_test() local
44 radix_tree_for_each_tagged(slot, &root, &iter, 0, 0) { in regression3_test()
45 printv(2, "tagged %ld %p\n", iter.index, *slot); in regression3_test()
51 if (radix_tree_deref_retry(*slot)) { in regression3_test()
53 slot = radix_tree_iter_retry(&iter); in regression3_test()
60 radix_tree_for_each_slot(slot, &root, &iter, 0) { in regression3_test()
61 printv(2, "slot %ld %p\n", iter.index, *slot); in regression3_test()
66 if (radix_tree_deref_retry(*slot)) { in regression3_test()
[all …]

12345678910>>...89