Home
last modified time | relevance | path

Searched refs:slot (Results 1 – 200 of 951) sorted by relevance

12345

/linux-4.4.14/drivers/pci/hotplug/
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 …]
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 …]
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 …]
Dacpiphp_core.c66 static int enable_slot (struct hotplug_slot *slot);
67 static int disable_slot (struct hotplug_slot *slot);
68 static int set_attention_status (struct hotplug_slot *slot, u8 value);
69 static int get_power_status (struct hotplug_slot *slot, u8 *value);
70 static int get_attention_status (struct hotplug_slot *slot, u8 *value);
71 static int get_latch_status (struct hotplug_slot *slot, u8 *value);
72 static int get_adapter_status (struct hotplug_slot *slot, u8 *value);
135 struct slot *slot = hotplug_slot->private; in enable_slot() local
137 pr_debug("%s - physical_slot = %s\n", __func__, slot_name(slot)); in enable_slot()
140 return acpiphp_enable_slot(slot->acpi_slot); in enable_slot()
[all …]
Ds390_pci_hpc.c37 struct slot { struct
43 static inline int slot_configure(struct slot *slot) in slot_configure() argument
45 int ret = sclp_pci_configure(slot->zdev->fid); in slot_configure()
47 zpci_dbg(3, "conf fid:%x, rc:%d\n", slot->zdev->fid, ret); in slot_configure()
49 slot->zdev->state = ZPCI_FN_STATE_CONFIGURED; in slot_configure()
54 static inline int slot_deconfigure(struct slot *slot) in slot_deconfigure() argument
56 int ret = sclp_pci_deconfigure(slot->zdev->fid); in slot_deconfigure()
58 zpci_dbg(3, "deconf fid:%x, rc:%d\n", slot->zdev->fid, ret); in slot_deconfigure()
60 slot->zdev->state = ZPCI_FN_STATE_STANDBY; in slot_deconfigure()
67 struct slot *slot = hotplug_slot->private; in enable_slot() local
[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 …]
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 …]
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_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);
72 static int reset_slot (struct hotplug_slot *slot, int probe);
87 struct slot *slot = ctrl->slot; in init_slot() local
121 hotplug->private = slot; in init_slot()
[all …]
Dpciehp.h73 struct slot { struct
85 struct slot *p_slot; argument
92 struct slot *slot; member
127 int pciehp_sysfs_enable_slot(struct slot *slot);
128 int pciehp_sysfs_disable_slot(struct slot *slot);
129 void pciehp_queue_interrupt_event(struct slot *slot, u32 event_type);
130 int pciehp_configure_device(struct slot *p_slot);
131 int pciehp_unconfigure_device(struct slot *p_slot);
135 int pciehp_enable_slot(struct slot *p_slot);
136 int pciehp_disable_slot(struct slot *p_slot);
[all …]
Drpaphp_core.c68 struct slot *slot = (struct slot *)hotplug_slot->private; in set_attention_status() local
80 rc = rtas_set_indicator(DR_INDICATOR, slot->index, value); in set_attention_status()
95 struct slot *slot = (struct slot *)hotplug_slot->private; in get_power_status() local
97 retval = rtas_get_power_level (slot->power_domain, &level); in get_power_status()
110 struct slot *slot = (struct slot *)hotplug_slot->private; in get_attention_status() local
111 *value = slot->hotplug_slot->info->attention_status; in get_attention_status()
117 struct slot *slot = (struct slot *)hotplug_slot->private; in get_adapter_status() local
120 rc = rpaphp_get_sensor_state(slot, &state); in get_adapter_status()
129 *value = slot->state; in get_adapter_status()
134 static enum pci_bus_speed get_max_bus_speed(struct slot *slot) in get_max_bus_speed() argument
[all …]
Dpci_hotplug_core.c67 static int get_##name(struct hotplug_slot *slot, type *value) \
69 struct hotplug_slot_ops *ops = slot->ops; \
74 retval = ops->get_##name(slot, value); \
76 *value = slot->info->name; \
101 struct hotplug_slot *slot = pci_slot->hotplug; in power_write_file() local
110 if (!try_module_get(slot->ops->owner)) { in power_write_file()
116 if (slot->ops->disable_slot) in power_write_file()
117 retval = slot->ops->disable_slot(slot); in power_write_file()
121 if (slot->ops->enable_slot) in power_write_file()
122 retval = slot->ops->enable_slot(slot); in power_write_file()
[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.c159 struct acpiphp_slot *slot, *next; in free_bridge() local
166 list_for_each_entry_safe(slot, next, &bridge->slots, node) { in free_bridge()
167 list_for_each_entry_safe(func, tmp, &slot->funcs, sibling) in free_bridge()
170 kfree(slot); in free_bridge()
204 bus = context->func.slot->bus; in acpiphp_post_dock_fixup()
267 struct acpiphp_slot *slot; in acpiphp_add_context() local
312 list_for_each_entry(slot, &bridge->slots, node) in acpiphp_add_context()
313 if (slot->device == device) in acpiphp_add_context()
316 slot = kzalloc(sizeof(struct acpiphp_slot), GFP_KERNEL); in acpiphp_add_context()
317 if (!slot) { in acpiphp_add_context()
[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 …]
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 …]
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 …]
Dpciehp_hpc.c358 void pciehp_get_attention_status(struct slot *slot, u8 *status) in pciehp_get_attention_status() argument
360 struct controller *ctrl = slot->ctrl; in pciehp_get_attention_status()
384 void pciehp_get_power_status(struct slot *slot, u8 *status) in pciehp_get_power_status() argument
386 struct controller *ctrl = slot->ctrl; in pciehp_get_power_status()
407 void pciehp_get_latch_status(struct slot *slot, u8 *status) in pciehp_get_latch_status() argument
409 struct pci_dev *pdev = ctrl_dev(slot->ctrl); in pciehp_get_latch_status()
416 void pciehp_get_adapter_status(struct slot *slot, u8 *status) in pciehp_get_adapter_status() argument
418 struct pci_dev *pdev = ctrl_dev(slot->ctrl); in pciehp_get_adapter_status()
425 int pciehp_query_power_fault(struct slot *slot) in pciehp_query_power_fault() argument
427 struct pci_dev *pdev = ctrl_dev(slot->ctrl); in pciehp_query_power_fault()
[all …]
Dacpiphp.h49 struct slot { struct
56 static inline const char *slot_name(struct slot *slot) in slot_name() argument
58 return hotplug_slot_name(slot->hotplug_slot); in slot_name()
95 struct slot *slot; member
110 struct acpiphp_slot *slot; member
163 int (*set_attn)(struct hotplug_slot *slot, u8 status);
164 int (*get_attn)(struct hotplug_slot *slot, u8 *status);
186 int acpiphp_register_hotplug_slot(struct acpiphp_slot *slot, unsigned int sun);
187 void acpiphp_unregister_hotplug_slot(struct acpiphp_slot *slot);
190 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()
349 mutex_unlock(&slot->ctrl->cmd_lock); in shpc_write_cmd()
382 static int hpc_get_attention_status(struct slot *slot, u8 *status) in hpc_get_attention_status() argument
384 struct controller *ctrl = slot->ctrl; in hpc_get_attention_status()
385 u32 slot_reg = shpc_readl(ctrl, SLOT_REG(slot->hp_slot)); in hpc_get_attention_status()
406 static int hpc_get_power_status(struct slot *slot, u8 *status) in hpc_get_power_status() argument
[all …]
Drpaphp.h70 struct slot { struct
89 int rpaphp_enable_slot(struct slot *slot); argument
90 int rpaphp_get_sensor_state(struct slot *slot, int *state);
98 void dealloc_slot_struct(struct slot *slot);
99 struct slot *alloc_slot_struct(struct device_node *dn, int drc_index, char *drc_name, int power_dom…
100 int rpaphp_register_slot(struct slot *slot);
101 int rpaphp_deregister_slot(struct slot *slot);
Dcpqphp.h261 struct slot { struct
262 struct slot *next; argument
303 struct slot *slot; member
432 u8 slot);
460 static inline const char *slot_name(struct slot *slot) in slot_name() argument
462 return hotplug_slot_name(slot->hotplug_slot); in slot_name()
489 static inline void amber_LED_on(struct controller *ctrl, u8 slot) in amber_LED_on() argument
494 led_control |= (0x01010000L << slot); in amber_LED_on()
499 static inline void amber_LED_off(struct controller *ctrl, u8 slot) in amber_LED_off() argument
504 led_control &= ~(0x01010000L << slot); in amber_LED_off()
[all …]
Dshpchp_ctrl.c39 static int shpchp_enable_slot(struct slot *p_slot);
40 static int shpchp_disable_slot(struct slot *p_slot);
42 static int queue_interrupt_event(struct slot *p_slot, u32 event_type) in queue_interrupt_event()
61 struct slot *p_slot; in shpchp_handle_attention_button()
84 struct slot *p_slot; in shpchp_handle_switch_change()
122 struct slot *p_slot; in shpchp_handle_presence_change()
157 struct slot *p_slot; in shpchp_handle_power_fault()
192 static int change_bus_speed(struct controller *ctrl, struct slot *p_slot, in change_bus_speed()
207 static int fix_bus_speed(struct controller *ctrl, struct slot *pslot, in fix_bus_speed()
243 static int board_added(struct slot *p_slot) in board_added()
[all …]
Drpadlpar_core.c115 static struct slot *find_php_slot(struct device_node *dn) in find_php_slot()
118 struct slot *slot; in find_php_slot() local
121 slot = list_entry(tmp, struct slot, rpaphp_slot_list); in find_php_slot()
122 if (slot->dn == dn) in find_php_slot()
123 return slot; in find_php_slot()
212 struct slot *slot; in dlpar_remove_phb() local
220 slot = find_php_slot(dn); in dlpar_remove_phb()
221 if (slot && rpaphp_deregister_slot(slot)) { in dlpar_remove_phb()
355 struct slot *slot; in dlpar_remove_pci_slot() local
369 slot = find_php_slot(dn); in dlpar_remove_pci_slot()
[all …]
Dibmphp_core.c75 static inline int get_cur_bus_info(struct slot **sl) in get_cur_bus_info()
78 struct slot *slot_cur = *sl; in get_cur_bus_info()
105 static inline int slot_update(struct slot **sl) in slot_update()
118 struct slot *slot_cur; in get_max_slots()
123 slot_cur = list_entry(tmp, struct slot, ibm_slot_list); in get_max_slots()
136 int ibmphp_init_devno(struct slot **cur_slot) in ibmphp_init_devno()
157 if ((*cur_slot)->number == rtable->slots[loop].slot && in ibmphp_init_devno()
202 static inline int power_on(struct slot *slot_cur) in power_on()
220 static inline int power_off(struct slot *slot_cur) in power_off()
240 struct slot *pslot; in set_attention_status()
[all …]
Dacpiphp_ibm.c58 #define hpslot_to_sun(A) (((struct slot *)((A)->private))->sun)
81 } slot; member
96 static int ibm_set_attention_status(struct hotplug_slot *slot, u8 status);
97 static int ibm_get_attention_status(struct hotplug_slot *slot, u8 *status);
147 des->slot.slot_num != id)) { in ibm_slot_from_id()
151 if (ind < size && des->slot.slot_num == id) in ibm_slot_from_id()
171 static int ibm_set_attention_status(struct hotplug_slot *slot, u8 status) in ibm_set_attention_status() argument
179 ibm_slot = ibm_slot_from_id(hpslot_to_sun(slot)); in ibm_set_attention_status()
182 ibm_slot->slot.slot_num, ibm_slot->slot.slot_id, in ibm_set_attention_status()
186 args[0].integer.value = ibm_slot->slot.slot_id; in ibm_set_attention_status()
[all …]
Dpciehp_ctrl.c40 void pciehp_queue_interrupt_event(struct slot *p_slot, u32 event_type) in pciehp_queue_interrupt_event()
60 static void set_slot_off(struct controller *ctrl, struct slot *pslot) in set_slot_off()
85 static int board_added(struct slot *p_slot) in board_added()
134 static int remove_board(struct slot *p_slot) in remove_board()
160 struct slot *p_slot;
178 struct slot *p_slot = info->p_slot; in pciehp_power_thread()
207 static void pciehp_queue_power_work(struct slot *p_slot, int req) in pciehp_queue_power_work()
227 struct slot *p_slot = container_of(work, struct slot, work.work); in pciehp_queue_pushbutton_work()
246 static void handle_button_press_event(struct slot *p_slot) in handle_button_press_event()
304 static void handle_surprise_event(struct slot *p_slot) in handle_surprise_event()
[all …]
Dcpqphp_sysfs.c86 struct slot *slot; in show_dev() local
88 slot = ctrl->slot; in show_dev()
90 while (slot) { in show_dev()
91 new_slot = cpqhp_slot_find(slot->bus, slot->device, 0); in show_dev()
122 slot=slot->next; in show_dev()
Dibmphp_ebda.c186 struct slot *ptr; in print_ibm_slot()
595 struct slot *slot_cur; in calculate_first_slot()
609 static char *create_file_name (struct slot *slot_cur) in create_file_name()
680 struct slot *slot; in fillslotinfo() local
686 slot = hotplug_slot->private; in fillslotinfo()
687 rc = ibmphp_hpc_readslot(slot, READ_ALLSTAT, NULL); in fillslotinfo()
692 hotplug_slot->info->power_status = SLOT_POWER(slot->status); in fillslotinfo()
695 hotplug_slot->info->attention_status = SLOT_ATTN(slot->status, slot->ext_status); in fillslotinfo()
698 hotplug_slot->info->latch_status = SLOT_LATCH(slot->status); in fillslotinfo()
701 if (SLOT_PRESENT (slot->status)) in fillslotinfo()
[all …]
/linux-4.4.14/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-core.c49 static int ricoh_mmc_probe_slot(struct sdhci_pci_slot *slot) in ricoh_mmc_probe_slot() argument
51 slot->host->caps = in ricoh_mmc_probe_slot()
112 static int mrst_hc_probe_slot(struct sdhci_pci_slot *slot) in mrst_hc_probe_slot() argument
114 slot->host->mmc->caps |= MMC_CAP_8_BIT_DATA; in mrst_hc_probe_slot()
132 static int pch_hc_probe_slot(struct sdhci_pci_slot *slot) in pch_hc_probe_slot() argument
134 slot->host->mmc->caps |= MMC_CAP_8_BIT_DATA; in pch_hc_probe_slot()
142 struct sdhci_pci_slot *slot = dev_id; in sdhci_pci_sd_cd() local
143 struct sdhci_host *host = slot->host; in sdhci_pci_sd_cd()
149 static void sdhci_pci_add_own_cd(struct sdhci_pci_slot *slot) in sdhci_pci_add_own_cd() argument
151 int err, irq, gpio = slot->cd_gpio; in sdhci_pci_add_own_cd()
[all …]
Domap.c175 static void mmc_omap_fclk_offdelay(struct mmc_omap_slot *slot) in mmc_omap_fclk_offdelay() argument
179 if (slot != NULL && slot->host->fclk_enabled && slot->fclk_freq > 0) { in mmc_omap_fclk_offdelay()
180 tick_ns = DIV_ROUND_UP(NSEC_PER_SEC, slot->fclk_freq); in mmc_omap_fclk_offdelay()
200 static void mmc_omap_select_slot(struct mmc_omap_slot *slot, int claimed) in mmc_omap_select_slot() argument
202 struct mmc_omap_host *host = slot->host; in mmc_omap_select_slot()
213 host->mmc = slot->mmc; in mmc_omap_select_slot()
217 if (host->current_slot != slot || !claimed) in mmc_omap_select_slot()
220 if (host->current_slot != slot) { in mmc_omap_select_slot()
221 OMAP_MMC_WRITE(host, CON, slot->saved_con & 0xFC00); in mmc_omap_select_slot()
223 host->pdata->switch_slot(mmc_dev(slot->mmc), slot->id); in mmc_omap_select_slot()
[all …]
Ddw_mmc.c112 struct dw_mci_slot *slot = s->private; in dw_mci_req_show() local
119 spin_lock_bh(&slot->host->lock); in dw_mci_req_show()
120 mrq = slot->mrq; in dw_mci_req_show()
145 spin_unlock_bh(&slot->host->lock); in dw_mci_req_show()
188 static void dw_mci_init_debugfs(struct dw_mci_slot *slot) in dw_mci_init_debugfs() argument
190 struct mmc_host *mmc = slot->mmc; in dw_mci_init_debugfs()
191 struct dw_mci *host = slot->host; in dw_mci_init_debugfs()
204 node = debugfs_create_file("req", S_IRUSR, root, slot, in dw_mci_init_debugfs()
230 static void mci_send_cmd(struct dw_mci_slot *slot, u32 cmd, u32 arg);
235 struct dw_mci_slot *slot = mmc_priv(mmc); in dw_mci_prepare_command() local
[all …]
Datmel-mci.c221 struct atmel_mci_slot *slot[ATMCI_MAX_NR_SLOTS]; member
285 struct atmel_mci_slot *slot = s->private; in atmci_req_show() local
292 spin_lock_bh(&slot->host->lock); in atmci_req_show()
293 mrq = slot->mrq; in atmci_req_show()
318 spin_unlock_bh(&slot->host->lock); in atmci_req_show()
473 static void atmci_init_debugfs(struct atmel_mci_slot *slot) in atmci_init_debugfs() argument
475 struct mmc_host *mmc = slot->mmc; in atmci_init_debugfs()
476 struct atmel_mci *host = slot->host; in atmci_init_debugfs()
491 node = debugfs_create_file("req", S_IRUSR, root, slot, &atmci_req_fops); in atmci_init_debugfs()
556 &pdata->slot[slot_id].bus_width)) in atmci_of_init()
[all …]
Dsdhci-acpi.c75 const struct sdhci_acpi_slot *slot; member
83 return c->slot && (c->slot->flags & flag); in sdhci_acpi_flag()
219 if (!c || !c->host || !c->slot) in sdhci_acpi_sd_probe_slot()
270 const struct sdhci_acpi_slot *slot; member
314 return u->slot; in sdhci_acpi_get_slot()
316 return u->slot; in sdhci_acpi_get_slot()
360 c->slot = sdhci_acpi_get_slot(hid, uid); in sdhci_acpi_probe()
377 if (c->slot) { in sdhci_acpi_probe()
378 if (c->slot->probe_slot) { in sdhci_acpi_probe()
379 err = c->slot->probe_slot(pdev, hid, uid); in sdhci_acpi_probe()
[all …]
/linux-4.4.14/drivers/pci/
Dslot.c22 struct pci_slot *slot = to_pci_slot(kobj); in pci_slot_attr_show() local
24 return attribute->show ? attribute->show(slot, buf) : -EIO; in pci_slot_attr_show()
30 struct pci_slot *slot = to_pci_slot(kobj); in pci_slot_attr_store() local
32 return attribute->store ? attribute->store(slot, buf, len) : -EIO; in pci_slot_attr_store()
40 static ssize_t address_read_file(struct pci_slot *slot, char *buf) in address_read_file() argument
42 if (slot->number == 0xff) in address_read_file()
44 pci_domain_nr(slot->bus), in address_read_file()
45 slot->bus->number); in address_read_file()
48 pci_domain_nr(slot->bus), in address_read_file()
49 slot->bus->number, in address_read_file()
[all …]
Dpci.c2739 int slot; in pci_swizzle_interrupt_pin() local
2742 slot = 0; in pci_swizzle_interrupt_pin()
2744 slot = PCI_SLOT(dev->devfn); in pci_swizzle_interrupt_pin()
2746 return (((pin - 1) + slot) % 4) + 1; in pci_swizzle_interrupt_pin()
3594 if (dev->subordinate || !dev->slot || in pci_dev_reset_slot_function()
3599 if (pdev != dev && pdev->slot == dev->slot) in pci_dev_reset_slot_function()
3602 return pci_reset_hotplug_slot(dev->slot->hotplug, probe); in pci_dev_reset_slot_function()
3912 static bool pci_slot_resetable(struct pci_slot *slot) in pci_slot_resetable() argument
3916 list_for_each_entry(dev, &slot->bus->devices, bus_list) { in pci_slot_resetable()
3917 if (!dev->slot || dev->slot != slot) in pci_slot_resetable()
[all …]
/linux-4.4.14/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 …]
Ddvb_ca_en50221.h60 int slot, int address);
62 int slot, int address, u8 value);
65 int slot, u8 address);
67 int slot, u8 address, u8 value);
69 int (*slot_reset)(struct dvb_ca_en50221 *ca, int slot);
70 int (*slot_shutdown)(struct dvb_ca_en50221 *ca, int slot);
71 int (*slot_ts_enable)(struct dvb_ca_en50221 *ca, int slot);
73 int (*poll_slot_status)(struct dvb_ca_en50221 *ca, int slot, int open);
91 void dvb_ca_en50221_camchange_irq(struct dvb_ca_en50221 *pubca, int slot,
100 void dvb_ca_en50221_camready_irq(struct dvb_ca_en50221 *pubca, int slot);
[all …]
/linux-4.4.14/drivers/pcmcia/
Dvrc4171_card.c103 enum vrc4171_slot 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 …]
/linux-4.4.14/arch/x86/kernel/
Daperture_64.c95 static u32 __init find_cap(int bus, int slot, int func, int cap) in find_cap() argument
100 if (!(read_pci_config_16(bus, slot, func, PCI_STATUS) & in find_cap()
104 pos = read_pci_config_byte(bus, slot, func, PCI_CAPABILITY_LIST); in find_cap()
109 id = read_pci_config_byte(bus, slot, func, pos+PCI_CAP_LIST_ID); in find_cap()
114 pos = read_pci_config_byte(bus, slot, func, in find_cap()
121 static u32 __init read_agp(int bus, int slot, int func, int cap, u32 *order) in read_agp() argument
130 pr_info("pci 0000:%02x:%02x:%02x: AGP bridge\n", bus, slot, func); in read_agp()
131 apsizereg = read_pci_config_16(bus, slot, func, cap + 0x14); in read_agp()
134 bus, slot, func); in read_agp()
150 aper_low = read_pci_config(bus, slot, func, 0x10); in read_agp()
[all …]
Dearly-quirks.c25 static void __init fix_hypertransport_config(int num, int slot, int func) in fix_hypertransport_config() argument
34 htcfg = read_pci_config(num, slot, func, 0x68); in fix_hypertransport_config()
44 write_pci_config(num, slot, func, 0x68, htcfg); in fix_hypertransport_config()
51 static void __init via_bugs(int num, int slot, int func) in via_bugs() argument
74 static void __init nvidia_bugs(int num, int slot, int func) in nvidia_bugs() argument
103 static u32 __init ati_ixp4x0_rev(int num, int slot, int func) in ati_ixp4x0_rev() argument
108 b = read_pci_config_byte(num, slot, func, 0xac); in ati_ixp4x0_rev()
110 write_pci_config_byte(num, slot, func, 0xac, b); in ati_ixp4x0_rev()
112 d = read_pci_config(num, slot, func, 0x70); in ati_ixp4x0_rev()
114 write_pci_config(num, slot, func, 0x70, d); in ati_ixp4x0_rev()
[all …]
Dmmconf-fam10h_64.c22 u32 slot; member
56 unsigned slot; in get_fam10h_pci_mmconf_base() local
81 slot = pci_probes[i].slot; in get_fam10h_pci_mmconf_base()
82 id = read_pci_config(bus, slot, 0, PCI_VENDOR_ID); in get_fam10h_pci_mmconf_base()
122 reg = read_pci_config(bus, slot, 1, 0x80 + (i << 3)); in get_fam10h_pci_mmconf_base()
127 reg = read_pci_config(bus, slot, 1, 0x84 + (i << 3)); in get_fam10h_pci_mmconf_base()
/linux-4.4.14/drivers/xen/xen-pciback/
Dvpci.c71 int err = 0, slot, func = -1; in __xen_pcibk_add_pci_dev() local
99 for (slot = 0; slot < PCI_SLOT_MAX; slot++) { in __xen_pcibk_add_pci_dev()
100 if (list_empty(&vpci_dev->dev_list[slot])) in __xen_pcibk_add_pci_dev()
103 t = list_entry(list_first(&vpci_dev->dev_list[slot]), in __xen_pcibk_add_pci_dev()
108 pci_name(dev), slot, in __xen_pcibk_add_pci_dev()
111 &vpci_dev->dev_list[slot]); in __xen_pcibk_add_pci_dev()
119 for (slot = 0; slot < PCI_SLOT_MAX; slot++) { in __xen_pcibk_add_pci_dev()
120 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 …]
Dpci_stub.c153 int slot, int func) in pcistub_device_find() argument
164 && slot == PCI_SLOT(psdev->dev->devfn) in pcistub_device_find()
202 int slot, int func) in pcistub_get_pci_dev_by_slot() argument
214 && slot == PCI_SLOT(psdev->dev->devfn) in pcistub_get_pci_dev_by_slot()
956 int *slot, int *func) in str_to_slot() argument
960 switch (sscanf(buf, " %x:%x:%x.%x %n", domain, bus, slot, func, in str_to_slot()
964 sscanf(buf, " %x:%x:%x.* %n", domain, bus, slot, &parsed); in str_to_slot()
967 *slot = *func = -1; in str_to_slot()
976 switch (sscanf(buf, " %x:%x.%x %n", bus, slot, func, &parsed)) { in str_to_slot()
979 sscanf(buf, " %x:%x.* %n", bus, slot, &parsed); in str_to_slot()
[all …]
Dxenbus.c227 int domain, int bus, int slot, int func, in xen_pcibk_export_device() argument
234 domain, bus, slot, func); in xen_pcibk_export_device()
236 dev = pcistub_get_pci_dev_by_slot(pdev, domain, bus, slot, func); in xen_pcibk_export_device()
243 domain, bus, slot, func); in xen_pcibk_export_device()
274 int domain, int bus, int slot, int func) in xen_pcibk_remove_device() argument
280 domain, bus, slot, func); in xen_pcibk_remove_device()
282 dev = xen_pcibk_get_pci_dev(pdev, domain, bus, PCI_DEVFN(slot, func)); in xen_pcibk_remove_device()
287 domain, bus, slot, func); in xen_pcibk_remove_device()
366 int domain, bus, slot, func; in xen_pcibk_reconfigure() local
419 &domain, &bus, &slot, &func); in xen_pcibk_reconfigure()
[all …]
/linux-4.4.14/arch/x86/pci/
Dearly.c10 u32 read_pci_config(u8 bus, u8 slot, u8 func, u8 offset) in read_pci_config() argument
13 outl(0x80000000 | (bus<<16) | (slot<<11) | (func<<8) | offset, 0xcf8); in read_pci_config()
18 u8 read_pci_config_byte(u8 bus, u8 slot, u8 func, u8 offset) in read_pci_config_byte() argument
21 outl(0x80000000 | (bus<<16) | (slot<<11) | (func<<8) | offset, 0xcf8); in read_pci_config_byte()
26 u16 read_pci_config_16(u8 bus, u8 slot, u8 func, u8 offset) in read_pci_config_16() argument
29 outl(0x80000000 | (bus<<16) | (slot<<11) | (func<<8) | offset, 0xcf8); in read_pci_config_16()
34 void write_pci_config(u8 bus, u8 slot, u8 func, u8 offset, in write_pci_config() argument
37 outl(0x80000000 | (bus<<16) | (slot<<11) | (func<<8) | offset, 0xcf8); in write_pci_config()
41 void write_pci_config_byte(u8 bus, u8 slot, u8 func, u8 offset, u8 val) in write_pci_config_byte() argument
43 outl(0x80000000 | (bus<<16) | (slot<<11) | (func<<8) | offset, 0xcf8); in write_pci_config_byte()
[all …]
Dbroadcom_bus.c22 static void __init cnb20le_res(u8 bus, u8 slot, u8 func) in cnb20le_res() argument
31 fbus = read_pci_config_byte(bus, slot, func, 0x44); in cnb20le_res()
32 lbus = read_pci_config_byte(bus, slot, func, 0x45); in cnb20le_res()
50 word1 = read_pci_config_16(bus, slot, func, 0xc0); in cnb20le_res()
51 word2 = read_pci_config_16(bus, slot, func, 0xc2); in cnb20le_res()
60 word1 = read_pci_config_16(bus, slot, func, 0xc4); in cnb20le_res()
61 word2 = read_pci_config_16(bus, slot, func, 0xc6); in cnb20le_res()
70 word1 = read_pci_config_16(bus, slot, func, 0xd0); in cnb20le_res()
71 word2 = read_pci_config_16(bus, slot, func, 0xd2); in cnb20le_res()
91 u8 bus = 0, slot = 0; in broadcom_postcore_init() local
[all …]
Damd_bus.c23 u32 slot; member
63 unsigned slot; in early_root_info_init() local
90 slot = hb_probes[i].slot; in early_root_info_init()
91 id = read_pci_config(bus, slot, 0, PCI_VENDOR_ID); in early_root_info_init()
115 reg = read_pci_config(bus, slot, 1, in early_root_info_init()
142 reg = read_pci_config(bus, slot, 0, AMD_NB_F0_NODE_ID); in early_root_info_init()
144 reg = read_pci_config(bus, slot, 0, AMD_NB_F0_UNIT_ID); in early_root_info_init()
151 reg = read_pci_config(bus, slot, 1, 0xc0 + (i << 3)); in early_root_info_init()
156 reg = read_pci_config(bus, slot, 1, 0xc4 + (i << 3)); in early_root_info_init()
217 reg = read_pci_config(bus, slot, 1, 0x80 + (i << 3)); in early_root_info_init()
[all …]
/linux-4.4.14/include/linux/
Dradix-tree.h412 radix_tree_next_slot(void **slot, struct radix_tree_iter *iter, unsigned flags) in radix_tree_next_slot() argument
418 return slot + 1; in radix_tree_next_slot()
425 return slot + offset + 1; in radix_tree_next_slot()
431 slot++; in radix_tree_next_slot()
433 if (likely(*slot)) in radix_tree_next_slot()
434 return slot; in radix_tree_next_slot()
456 #define radix_tree_for_each_chunk(slot, root, iter, start, flags) \ argument
457 for (slot = radix_tree_iter_init(iter, start) ; \
458 (slot = radix_tree_next_chunk(root, iter, flags)) ;)
470 #define radix_tree_for_each_chunk_slot(slot, iter, flags) \ argument
[all …]
Dpci_hotplug.h65 int (*enable_slot) (struct hotplug_slot *slot);
66 int (*disable_slot) (struct hotplug_slot *slot);
67 int (*set_attention_status) (struct hotplug_slot *slot, u8 value);
68 int (*hardware_test) (struct hotplug_slot *slot, u32 value);
69 int (*get_power_status) (struct hotplug_slot *slot, u8 *value);
70 int (*get_attention_status) (struct hotplug_slot *slot, u8 *value);
71 int (*get_latch_status) (struct hotplug_slot *slot, u8 *value);
72 int (*get_adapter_status) (struct hotplug_slot *slot, u8 *value);
73 int (*reset_slot) (struct hotplug_slot *slot, int probe);
105 void (*release) (struct hotplug_slot *slot);
[all …]
Dcb710.h42 struct cb710_slot slot[0]; member
55 static inline void cb710_write_port_##t(struct cb710_slot *slot, \
58 iowrite##t(value, slot->iobase + port); \
61 static inline u##t cb710_read_port_##t(struct cb710_slot *slot, \
64 return ioread##t(slot->iobase + port); \
67 static inline void cb710_modify_port_##t(struct cb710_slot *slot, \
71 (ioread##t(slot->iobase + port) & ~clear)|set, \
72 slot->iobase + port); \
81 void cb710_set_irq_handler(struct cb710_slot *slot,
92 static inline struct cb710_chip *cb710_slot_to_chip(struct cb710_slot *slot) in cb710_slot_to_chip() argument
[all …]
Dkvm_host.h540 struct kvm_memory_slot *slot; in id_to_memslot() local
542 slot = &slots->memslots[index]; in id_to_memslot()
544 WARN_ON(slot->id != id); in id_to_memslot()
545 return slot; in id_to_memslot()
572 int kvm_arch_create_memslot(struct kvm *kvm, struct kvm_memory_slot *slot,
590 struct kvm_memory_slot *slot);
592 int gfn_to_page_many_atomic(struct kvm_memory_slot *slot, gfn_t gfn,
598 unsigned long gfn_to_hva_memslot(struct kvm_memory_slot *slot, gfn_t gfn);
599 unsigned long gfn_to_hva_memslot_prot(struct kvm_memory_slot *slot, gfn_t gfn,
609 pfn_t gfn_to_pfn_memslot(struct kvm_memory_slot *slot, gfn_t gfn);
[all …]
/linux-4.4.14/net/sched/
Dsch_sfq.c205 struct sfq_slot *slot = &q->slots[x]; in sfq_link() local
206 int qlen = slot->qlen; in sfq_link()
211 slot->dep.next = n; in sfq_link()
212 slot->dep.prev = p; in sfq_link()
256 static inline struct sk_buff *slot_dequeue_tail(struct sfq_slot *slot) in slot_dequeue_tail() argument
258 struct sk_buff *skb = slot->skblist_prev; in slot_dequeue_tail()
260 slot->skblist_prev = skb->prev; in slot_dequeue_tail()
261 skb->prev->next = (struct sk_buff *)slot; in slot_dequeue_tail()
267 static inline struct sk_buff *slot_dequeue_head(struct sfq_slot *slot) in slot_dequeue_head() argument
269 struct sk_buff *skb = slot->skblist_next; in slot_dequeue_head()
[all …]
Dsch_sfb.c71 u8 slot; /* current active bins (0 or 1) */ member
104 static u32 sfb_hash(const struct sk_buff *skb, u32 slot) in sfb_hash() argument
106 return sfb_skb_cb(skb)->hashes[slot]; in sfb_hash()
125 static void increment_one_qlen(u32 sfbhash, u32 slot, struct sfb_sched_data *q) in increment_one_qlen() argument
128 struct sfb_bucket *b = &q->bins[slot].bins[0][0]; in increment_one_qlen()
153 static void decrement_one_qlen(u32 sfbhash, u32 slot, in decrement_one_qlen() argument
157 struct sfb_bucket *b = &q->bins[slot].bins[0][0]; in decrement_one_qlen()
204 const struct sfb_bucket *b = &q->bins[q->slot].bins[0][0]; in sfb_compute_qlen()
220 static void sfb_init_perturbation(u32 slot, struct sfb_sched_data *q) in sfb_init_perturbation() argument
222 q->bins[slot].perturbation = prandom_u32(); in sfb_init_perturbation()
[all …]
/linux-4.4.14/sound/core/oss/
Dmixer_oss.c259 static int snd_mixer_oss_get_volume(struct snd_mixer_oss_file *fmixer, int slot) in snd_mixer_oss_get_volume() argument
265 if (mixer == NULL || slot > 30) in snd_mixer_oss_get_volume()
267 pslot = &mixer->slots[slot]; in snd_mixer_oss_get_volume()
287 int slot, int volume) in snd_mixer_oss_set_volume() argument
293 if (mixer == NULL || slot > 30) in snd_mixer_oss_set_volume()
295 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-4.4.14/arch/sparc/include/asm/
Dparport.h114 int slot, err; in ecpp_probe() local
127 for (slot = 0; slot < PARPORT_PC_MAX_PORTS; slot++) { in ecpp_probe()
128 if (!test_and_set_bit(slot, dma_slot_map)) in ecpp_probe()
132 if (slot >= PARPORT_PC_MAX_PORTS) in ecpp_probe()
135 spin_lock_init(&sparc_ebus_dmas[slot].info.lock); in ecpp_probe()
138 sparc_ebus_dmas[slot].info.regs = in ecpp_probe()
141 if (!sparc_ebus_dmas[slot].info.regs) in ecpp_probe()
144 sparc_ebus_dmas[slot].info.flags = 0; in ecpp_probe()
145 sparc_ebus_dmas[slot].info.callback = NULL; in ecpp_probe()
146 sparc_ebus_dmas[slot].info.client_cookie = NULL; in ecpp_probe()
[all …]
/linux-4.4.14/lib/
Dradix-tree.c329 struct radix_tree_node *slot; in radix_tree_extend() local
360 slot = root->rnode; in radix_tree_extend()
362 slot = indirect_to_ptr(slot); in radix_tree_extend()
363 slot->parent = node; in radix_tree_extend()
365 node->slots[0] = slot; in radix_tree_extend()
393 struct radix_tree_node *node = NULL, *slot; in __radix_tree_create() local
404 slot = indirect_to_ptr(root->rnode); in __radix_tree_create()
411 if (slot == NULL) { in __radix_tree_create()
413 if (!(slot = radix_tree_node_alloc(root))) in __radix_tree_create()
415 slot->path = height; in __radix_tree_create()
[all …]
Dassoc_array.c33 int slot, ret; in assoc_array_subtree_iterate() local
47 slot = 0; in assoc_array_subtree_iterate()
57 for (; slot < ASSOC_ARRAY_FAN_OUT; slot++) { in assoc_array_subtree_iterate()
58 ptr = ACCESS_ONCE(node->slots[slot]); in assoc_array_subtree_iterate()
85 slot = 0; in assoc_array_subtree_iterate()
91 for (; slot < ASSOC_ARRAY_FAN_OUT; slot++) { in assoc_array_subtree_iterate()
92 ptr = ACCESS_ONCE(node->slots[slot]); in assoc_array_subtree_iterate()
102 slot = node->parent_slot; in assoc_array_subtree_iterate()
111 slot = shortcut->parent_slot; in assoc_array_subtree_iterate()
118 slot++; in assoc_array_subtree_iterate()
[all …]
/linux-4.4.14/block/partitions/
Dacorn.c32 unsigned long first_sector, int slot) in adfs_partition() argument
53 put_partition(state, slot, first_sector, nr_sects); in adfs_partition()
77 unsigned long first_sect, int slot, in riscix_partition() argument
96 put_partition(state, slot++, first_sect, size); in riscix_partition()
100 put_partition(state, slot++, in riscix_partition()
111 put_partition(state, slot++, first_sect, nr_sects); in riscix_partition()
115 return slot; in riscix_partition()
132 unsigned long first_sect, int slot, in linux_partition() argument
141 put_partition(state, slot++, first_sect, size); in linux_partition()
150 if (slot == state->limit) in linux_partition()
[all …]
Dmsdos.c73 int slot, ret = 0; in aix_magic_present() local
81 for (slot = 1; slot <= 4; slot++, pt++) { in aix_magic_present()
98 static void set_info(struct parsed_partitions *state, int slot, in set_info() argument
101 struct partition_meta_info *info = &state->parts[slot].info; in set_info()
104 slot); in set_info()
106 state->parts[slot].has_info = true; in set_info()
454 int slot; in msdos_partition() local
487 for (slot = 1; slot <= 4; slot++, p++) { in msdos_partition()
495 if (slot == 1 && fb->reserved && fb->fats in msdos_partition()
509 for (slot = 1 ; slot <= 4 ; slot++, p++) { in msdos_partition()
[all …]
Datari.c40 int slot; in atari_partition() local
66 for (slot = 1; pi < &rs->part[4] && slot < state->limit; slot++, pi++) { in atari_partition()
76 put_partition (state, slot, be32_to_cpu(pi->st), in atari_partition()
101 put_partition(state, slot, in atari_partition()
118 if (++slot == state->limit) { in atari_partition()
131 for (; pi < &rs->icdpart[8] && slot < state->limit; slot++, pi++) { in atari_partition()
136 put_partition (state, slot, in atari_partition()
Dmac.c34 int slot, blocks_in_map; in mac_partition() local
75 for (slot = 1; slot <= blocks_in_map; ++slot) { in mac_partition()
76 int pos = slot * secsize; in mac_partition()
84 put_partition(state, slot, in mac_partition()
89 state->parts[slot].flags = ADDPART_FLAG_RAID; in mac_partition()
127 found_root = slot; in mac_partition()
Dcmdline.c25 static int add_part(int slot, struct cmdline_subpart *subpart, void *param) in add_part() argument
32 if (slot >= state->limit) in add_part()
35 put_partition(state, slot, subpart->from >> 9, in add_part()
38 info = &state->parts[slot].info; in add_part()
48 state->parts[slot].has_info = true; in add_part()
Dsun.c17 int slot = 1; in sun_partition() local
108 put_partition(state, slot, st_sector, num_sectors); in sun_partition()
109 state->parts[slot].flags = 0; in sun_partition()
112 state->parts[slot].flags |= ADDPART_FLAG_RAID; in sun_partition()
114 state->parts[slot].flags |= ADDPART_FLAG_WHOLEDISK; in sun_partition()
117 slot++; in sun_partition()
Dkarma.c16 int slot = 1; in karma_partition() local
45 if (slot == state->limit) in karma_partition()
49 put_partition(state, slot, le32_to_cpu(p->p_offset), in karma_partition()
52 slot++; in karma_partition()
Dsysv68.c52 int slot = 1; in sysv68_partition() local
81 if (slot == state->limit) in sysv68_partition()
84 put_partition(state, slot, in sysv68_partition()
90 slot++; in sysv68_partition()
Dsgi.c34 int slot = 1; in sgi_partition() local
73 put_partition(state, slot, start, blocks); in sgi_partition()
75 state->parts[slot].flags = ADDPART_FLAG_RAID; in sgi_partition()
77 slot++; in sgi_partition()
Dosf.c18 int slot = 1; in osf_partition() local
75 if (slot == state->limit) in osf_partition()
78 put_partition(state, slot, in osf_partition()
81 slot++; in osf_partition()
/linux-4.4.14/drivers/media/pci/mantis/
Dmantis_ca.c40 static int mantis_ca_read_attr_mem(struct dvb_ca_en50221 *en50221, int slot, int addr) in mantis_ca_read_attr_mem() argument
45 dprintk(MANTIS_DEBUG, 1, "Slot(%d): Request Attribute Mem Read", slot); in mantis_ca_read_attr_mem()
47 if (slot != 0) in mantis_ca_read_attr_mem()
53 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
58 dprintk(MANTIS_DEBUG, 1, "Slot(%d): Request Attribute Mem Write", slot); in mantis_ca_write_attr_mem()
60 if (slot != 0) in mantis_ca_write_attr_mem()
66 static int mantis_ca_read_cam_ctl(struct dvb_ca_en50221 *en50221, int slot, u8 addr) in mantis_ca_read_cam_ctl() argument
71 dprintk(MANTIS_DEBUG, 1, "Slot(%d): Request CAM control Read", slot); in mantis_ca_read_cam_ctl()
73 if (slot != 0) in mantis_ca_read_cam_ctl()
79 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-4.4.14/Documentation/devicetree/bindings/sound/
Dtdm-slot.txt1 TDM slot:
3 This specifies audio DAI's TDM slot.
5 TDM slot properties:
6 dai-tdm-slot-num : Number of slots in use.
7 dai-tdm-slot-width : Width in bits for each slot.
8 dai-tdm-slot-tx-mask : Transmit direction slot mask, optional
9 dai-tdm-slot-rx-mask : Receive direction slot mask, optional
12 dai-tdm-slot-num = <2>;
13 dai-tdm-slot-width = <8>;
14 dai-tdm-slot-tx-mask = <0 1>;
[all …]
Dmax98925.txt9 - vmon-slot-no : slot number used to send voltage information
11 - imon-slot-no : slot number used to send current information
19 vmon-slot-no = <0>;
20 imon-slot-no = <2>;
/linux-4.4.14/arch/sh/drivers/pci/
Dfixups-cayman.c8 int __init pcibios_map_platform_irq(const struct pci_dev *dev, u8 slot, u8 pin) in pcibios_map_platform_irq() argument
32 int slot; in pcibios_map_platform_irq() member
39 slot = path[i].slot = PCI_SLOT(dev->devfn); in pcibios_map_platform_irq()
46 slot = PCI_SLOT(dev->devfn); in pcibios_map_platform_irq()
51 if ((slot < 3) || (i == 0)) { in pcibios_map_platform_irq()
57 slot = path[i].slot; in pcibios_map_platform_irq()
59 if (slot > 0) { in pcibios_map_platform_irq()
65 slot = path[i].slot; in pcibios_map_platform_irq()
Dfixups-landisk.c23 int pcibios_map_platform_irq(const struct pci_dev *pdev, u8 slot, u8 pin) in pcibios_map_platform_irq() argument
31 int irq = ((slot + pin - 1) & 0x3) + evt2irq(0x2a0); in pcibios_map_platform_irq()
33 if ((slot | (pin - 1)) > 0x3) { in pcibios_map_platform_irq()
35 slot, pin - 1 + 'A'); in pcibios_map_platform_irq()
Dfixups-titan.c30 int __init pcibios_map_platform_irq(const struct pci_dev *pdev, u8 slot, u8 pin) in pcibios_map_platform_irq() argument
32 int irq = titan_irq_tab[slot]; in pcibios_map_platform_irq()
35 slot, pin - 1 + 'A', irq); in pcibios_map_platform_irq()
Dfixups-snapgear.c22 int __init pcibios_map_platform_irq(const struct pci_dev *pdev, u8 slot, u8 pin) in pcibios_map_platform_irq() argument
26 switch (slot) { in pcibios_map_platform_irq()
36 slot, pin - 1 + 'A', irq); in pcibios_map_platform_irq()
Dfixups-sh03.c7 int __init pcibios_map_platform_irq(const struct pci_dev *dev, u8 slot, u8 pin) in pcibios_map_platform_irq() argument
12 switch (slot) { in pcibios_map_platform_irq()
18 "for slot %d\n", slot); in pcibios_map_platform_irq()
/linux-4.4.14/mm/
Dearly_ioremap.c104 int i, slot; in __early_ioremap() local
108 slot = -1; in __early_ioremap()
111 slot = i; in __early_ioremap()
116 if (WARN(slot < 0, "%s(%08llx, %08lx) not found slot\n", in __early_ioremap()
125 prev_size[slot] = size; in __early_ioremap()
143 idx = FIX_BTMAP_BEGIN - NR_FIX_BTMAPS*slot; in __early_ioremap()
154 __func__, (u64)phys_addr, size, slot, offset, slot_virt[slot]); in __early_ioremap()
156 prev_map[slot] = (void __iomem *)(offset + slot_virt[slot]); in __early_ioremap()
157 return prev_map[slot]; in __early_ioremap()
166 int i, slot; in early_iounmap() local
[all …]
/linux-4.4.14/fs/dlm/
Dmember.c37 memb->slot = le16_to_cpu(rf->rf_our_slot); in dlm_slot_save()
43 struct dlm_slot *slot; in dlm_slots_copy_out() local
52 slot = &ls->ls_slots[i]; in dlm_slots_copy_out()
53 if (!slot->nodeid) in dlm_slots_copy_out()
55 ro->ro_nodeid = cpu_to_le32(slot->nodeid); in dlm_slots_copy_out()
56 ro->ro_slot = cpu_to_le16(slot->slot); in dlm_slots_copy_out()
80 array[i].slot, array[i].nodeid); in log_slots()
135 memb->slot = ro->ro_slot; in dlm_slots_copy_in()
136 memb->slot_prev = memb->slot; in dlm_slots_copy_in()
141 if (ls->ls_slot && ls->ls_slot != memb->slot) { in dlm_slots_copy_in()
[all …]
/linux-4.4.14/arch/arm/mach-pxa/
Dcm-x2xx-pci.c80 static int __init cmx2xx_pci_map_irq(const struct pci_dev *dev, u8 slot, u8 pin) in cmx2xx_pci_map_irq() argument
84 dev_dbg(&dev->dev, "%s: slot=%x, pin=%x\n", __func__, slot, pin); in cmx2xx_pci_map_irq()
86 irq = it8152_pci_map_irq(dev, slot, pin); in cmx2xx_pci_map_irq()
96 if (slot == 7) in cmx2xx_pci_map_irq()
100 if (slot == 8 || slot == 0) in cmx2xx_pci_map_irq()
104 if (slot == 9) in cmx2xx_pci_map_irq()
108 if (slot == 15) in cmx2xx_pci_map_irq()
112 if (slot == 16) in cmx2xx_pci_map_irq()
116 if ((slot == 17) || (slot == 19)) in cmx2xx_pci_map_irq()
118 if ((slot == 18) || (slot == 20)) in cmx2xx_pci_map_irq()
/linux-4.4.14/include/linux/input/
Dmt.h49 int slot; member
56 static inline void input_mt_set_value(struct input_mt_slot *slot, in input_mt_set_value() argument
59 slot->abs[code - ABS_MT_FIRST] = value; in input_mt_set_value()
62 static inline int input_mt_get_value(const struct input_mt_slot *slot, in input_mt_get_value() argument
65 return slot->abs[code - ABS_MT_FIRST]; in input_mt_get_value()
68 static inline bool input_mt_is_active(const struct input_mt_slot *slot) in input_mt_is_active() argument
70 return input_mt_get_value(slot, ABS_MT_TRACKING_ID) >= 0; in input_mt_is_active()
74 const struct input_mt_slot *slot) in input_mt_is_used() argument
76 return slot->frame == mt->frame; in input_mt_is_used()
88 static inline void input_mt_slot(struct input_dev *dev, int slot) in input_mt_slot() argument
[all …]
/linux-4.4.14/fs/nfs/
Dnfs4session.c47 struct nfs4_slot *slot = *p; in nfs4_shrink_slot_table() local
49 *p = slot->next; in nfs4_shrink_slot_table()
50 kfree(slot); in nfs4_shrink_slot_table()
81 void nfs4_free_slot(struct nfs4_slot_table *tbl, struct nfs4_slot *slot) in nfs4_free_slot() argument
83 u32 slotid = slot->slot_nr; in nfs4_free_slot()
105 struct nfs4_slot *slot; in nfs4_new_slot() local
107 slot = kzalloc(sizeof(*slot), gfp_mask); in nfs4_new_slot()
108 if (slot) { in nfs4_new_slot()
109 slot->table = tbl; in nfs4_new_slot()
110 slot->slot_nr = slotid; in nfs4_new_slot()
[all …]
/linux-4.4.14/drivers/nvdimm/
Dlabel.c271 static bool slot_valid(struct nd_namespace_label *nd_label, u32 slot) in slot_valid() argument
274 if (slot != __le32_to_cpu(nd_label->slot)) in slot_valid()
289 u32 nslot, slot; in nd_label_reserve_dpa() local
294 for_each_clear_bit_le(slot, free, nslot) { in nd_label_reserve_dpa()
302 nd_label = nd_label_base(ndd) + slot; in nd_label_reserve_dpa()
304 if (!slot_valid(nd_label, slot)) in nd_label_reserve_dpa()
325 u32 nslot, slot; in nd_label_active_count() local
331 for_each_clear_bit_le(slot, free, nslot) { in nd_label_active_count()
334 nd_label = nd_label_base(ndd) + slot; in nd_label_active_count()
336 if (!slot_valid(nd_label, slot)) { in nd_label_active_count()
[all …]
/linux-4.4.14/arch/ia64/kernel/
Dkprobes.c100 static void __kprobes update_kprobe_inst_flag(uint template, uint slot, in update_kprobe_inst_flag() argument
107 p->ainsn.slot = slot; in update_kprobe_inst_flag()
120 if (bundle_encoding[template][slot] == B) { in update_kprobe_inst_flag()
136 } else if (bundle_encoding[template][slot] == X) { in update_kprobe_inst_flag()
153 static uint __kprobes is_cmp_ctype_unc_inst(uint template, uint slot, in is_cmp_ctype_unc_inst() argument
160 if (!((bundle_encoding[template][slot] == I) || in is_cmp_ctype_unc_inst()
161 (bundle_encoding[template][slot] == M))) in is_cmp_ctype_unc_inst()
189 static int __kprobes unsupported_inst(uint template, uint slot, in unsupported_inst() argument
197 if (is_cmp_ctype_unc_inst(template, slot, major_opcode, kprobe_inst)) { in unsupported_inst()
198 if (slot == 1 && qp) { in unsupported_inst()
[all …]
/linux-4.4.14/drivers/scsi/
D53c700.c510 struct NCR_700_command_slot *slot = hostdata->free_list; in find_empty_slot() local
512 if(slot == NULL) { in find_empty_slot()
519 if(slot->state != NCR_700_SLOT_FREE) in find_empty_slot()
524 hostdata->free_list = slot->ITL_forw; in find_empty_slot()
525 slot->ITL_forw = NULL; in find_empty_slot()
532 slot->state = NCR_700_SLOT_BUSY; in find_empty_slot()
533 slot->flags = 0; in find_empty_slot()
536 return slot; in find_empty_slot()
540 free_slot(struct NCR_700_command_slot *slot, in free_slot() argument
543 if((slot->state & NCR_700_SLOT_MASK) != NCR_700_SLOT_MAGIC) { in free_slot()
[all …]
DNCR_D700.c130 int slot = -1, siop = -1; in param_setup() local
136 slot = val; in param_setup()
140 if(slot == -1) { in param_setup()
142 } else if(slot > MCA_MAX_SLOT_NR) { in param_setup()
143 printk(KERN_WARNING "NCR D700: Illegal slot %d for id %d\n", slot, val); in param_setup()
146 id_array[slot*2] = val; in param_setup()
147 id_array[slot*2 + 1] =val; in param_setup()
149 id_array[slot*2 + siop] = val; in param_setup()
178 int slot, u32 region, int differential) in NCR_D700_probe_one() argument
213 host->this_id = id_array[slot * 2 + siop]; in NCR_D700_probe_one()
[all …]
Dsim710.c67 int slot = -1; in param_setup() local
73 slot = val; in param_setup()
75 if(slot == -1) { in param_setup()
77 } else if(slot >= MAX_SLOTS) { in param_setup()
78 printk(KERN_WARNING "sim710: Illegal slot %d for id %d\n", slot, val); in param_setup()
80 id_array[slot] = val; in param_setup()
DNCR_Q720.c79 int irq, int slot, __u32 paddr, void __iomem *vaddr) in NCR_Q720_probe_one() argument
104 device.slot.base = paddr; in NCR_Q720_probe_one()
105 device.slot.base_c = paddr; in NCR_Q720_probe_one()
106 device.slot.base_v = vaddr; in NCR_Q720_probe_one()
107 device.slot.irq = irq; in NCR_Q720_probe_one()
144 int slot = mca_dev->slot; in NCR_Q720_probe() local
258 …printk(KERN_NOTICE "NCR Q720: found in slot %d irq = %d mem base = 0x%lx siops = %d\n", slot, ir… in NCR_Q720_probe()
293 if ((err = NCR_Q720_probe_one(p, i, irq, slot, in NCR_Q720_probe()
/linux-4.4.14/fs/efs/
Ddir.c26 int slot; in efs_readdir() local
36 slot = ctx->pos & 0xff; in efs_readdir()
60 for (; slot < dirblock->slots; slot++) { in efs_readdir()
66 if (dirblock->space[slot] == 0) in efs_readdir()
69 dirslot = (struct efs_dentry *) (((char *) bh->b_data) + EFS_SLOTAT(dirblock, slot)); in efs_readdir()
75 __func__, block, slot, dirblock->slots-1, in efs_readdir()
80 ctx->pos = (block << EFS_DIRBSIZE_BITS) | slot; in efs_readdir()
85 slot); in efs_readdir()
97 slot = 0; in efs_readdir()
100 ctx->pos = (block << EFS_DIRBSIZE_BITS) | slot; in efs_readdir()
Dnamei.c19 int slot, namelen; in efs_find_entry() local
47 for (slot = 0; slot < dirblock->slots; slot++) { in efs_find_entry()
48 dirslot = (struct efs_dentry *) (((char *) bh->b_data) + EFS_SLOTAT(dirblock, slot)); in efs_find_entry()
/linux-4.4.14/drivers/acpi/
Dpci_slot.c116 struct acpi_pci_slot *slot; in register_slot() local
128 list_for_each_entry(slot, &slot_list, list) { in register_slot()
129 pci_slot = slot->pci_slot; in register_slot()
134 slot = kmalloc(sizeof(*slot), GFP_KERNEL); in register_slot()
135 if (!slot) { in register_slot()
144 kfree(slot); in register_slot()
148 slot->pci_slot = pci_slot; in register_slot()
149 list_add(&slot->list, &slot_list); in register_slot()
173 struct acpi_pci_slot *slot, *tmp; in acpi_pci_slot_remove() local
176 list_for_each_entry_safe(slot, tmp, &slot_list, list) { in acpi_pci_slot_remove()
[all …]
/linux-4.4.14/drivers/media/dvb-frontends/
Dsp2.h40 int slot, int addr);
42 int slot, int addr, u8 data);
44 int slot, u8 addr);
46 int slot, u8 addr, u8 data);
47 extern int sp2_ci_slot_reset(struct dvb_ca_en50221 *en50221, int slot);
48 extern int sp2_ci_slot_shutdown(struct dvb_ca_en50221 *en50221, int slot);
49 extern int sp2_ci_slot_ts_enable(struct dvb_ca_en50221 *en50221, int slot);
51 int slot, int open);
Dsp2.c101 static int sp2_ci_op_cam(struct dvb_ca_en50221 *en50221, int slot, u8 acs, in sp2_ci_op_cam() argument
109 if (slot != 0) in sp2_ci_op_cam()
144 (read) ? "read" : "write", slot, addr, in sp2_ci_op_cam()
156 int slot, int addr) in sp2_ci_read_attribute_mem() argument
158 return sp2_ci_op_cam(en50221, slot, SP2_CI_ATTR_ACS, in sp2_ci_read_attribute_mem()
163 int slot, int addr, u8 data) in sp2_ci_write_attribute_mem() argument
165 return sp2_ci_op_cam(en50221, slot, SP2_CI_ATTR_ACS, in sp2_ci_write_attribute_mem()
170 int slot, u8 addr) in sp2_ci_read_cam_control() argument
172 return sp2_ci_op_cam(en50221, slot, SP2_CI_IO_ACS, in sp2_ci_read_cam_control()
177 int slot, u8 addr, u8 data) in sp2_ci_write_cam_control() argument
[all …]
/linux-4.4.14/drivers/media/pci/cx23885/
Dcimax2.h27 int slot, int addr);
29 int slot, int addr, u8 data);
31 int slot, u8 addr);
33 int slot, u8 addr, u8 data);
34 extern int netup_ci_slot_reset(struct dvb_ca_en50221 *en50221, int slot);
35 extern int netup_ci_slot_shutdown(struct dvb_ca_en50221 *en50221, int slot);
36 extern int netup_ci_slot_ts_ctl(struct dvb_ca_en50221 *en50221, int slot);
39 int slot, int open);
Dcimax2.c177 static int netup_ci_op_cam(struct dvb_ca_en50221 *en50221, int slot, in netup_ci_op_cam() argument
188 if (0 != slot) in netup_ci_op_cam()
248 int slot, int addr) in netup_ci_read_attribute_mem() argument
250 return netup_ci_op_cam(en50221, slot, 0, NETUP_CI_RD, addr, 0); in netup_ci_read_attribute_mem()
254 int slot, int addr, u8 data) in netup_ci_write_attribute_mem() argument
256 return netup_ci_op_cam(en50221, slot, 0, 0, addr, data); in netup_ci_write_attribute_mem()
259 int netup_ci_read_cam_ctl(struct dvb_ca_en50221 *en50221, int slot, in netup_ci_read_cam_ctl() argument
262 return netup_ci_op_cam(en50221, slot, NETUP_CI_CTL, in netup_ci_read_cam_ctl()
266 int netup_ci_write_cam_ctl(struct dvb_ca_en50221 *en50221, int slot, in netup_ci_write_cam_ctl() argument
269 return netup_ci_op_cam(en50221, slot, NETUP_CI_CTL, 0, addr, data); in netup_ci_write_cam_ctl()
[all …]
Daltera-ci.c262 static int altera_ci_op_cam(struct dvb_ca_en50221 *en50221, int slot, in altera_ci_op_cam() argument
272 if (0 != slot) in altera_ci_op_cam()
298 int slot, int addr) in altera_ci_read_attribute_mem() argument
300 return altera_ci_op_cam(en50221, slot, 0, NETUP_CI_FLG_RD, addr, 0); in altera_ci_read_attribute_mem()
304 int slot, int addr, u8 data) in altera_ci_write_attribute_mem() argument
306 return altera_ci_op_cam(en50221, slot, 0, 0, addr, data); in altera_ci_write_attribute_mem()
310 int slot, u8 addr) in altera_ci_read_cam_ctl() argument
312 return altera_ci_op_cam(en50221, slot, NETUP_CI_FLG_CTL, in altera_ci_read_cam_ctl()
316 static int altera_ci_write_cam_ctl(struct dvb_ca_en50221 *en50221, int slot, in altera_ci_write_cam_ctl() argument
319 return altera_ci_op_cam(en50221, slot, NETUP_CI_FLG_CTL, 0, addr, data); in altera_ci_write_cam_ctl()
[all …]
/linux-4.4.14/arch/mips/pci/
Dpci-ip27.c50 int slot; in bridge_probe() local
121 for (slot = 0; slot < 8; slot ++) { in bridge_probe()
122 bridge->b_device[slot].reg |= BRIDGE_DEV_SWAP_DIR; in bridge_probe()
123 bc->pci_int[slot] = -1; in bridge_probe()
145 int pcibios_map_irq(const struct pci_dev *dev, u8 slot, u8 pin) in pcibios_map_irq() argument
165 int slot = PCI_SLOT(rdev->devfn); in pcibios_plat_dev_init() local
168 irq = bc->pci_int[slot]; in pcibios_plat_dev_init()
174 bc->pci_int[slot] = irq; in pcibios_plat_dev_init()
178 irq_to_slot[irq] = slot; in pcibios_plat_dev_init()
196 int slot = PCI_SLOT(dev->devfn); in pci_disable_swapping() local
[all …]
Dfixup-rbtx4938.c16 int __init rbtx4938_pci_map_irq(const struct pci_dev *dev, u8 slot, u8 pin) in rbtx4938_pci_map_irq() argument
18 int irq = tx4938_pcic1_map_irq(dev, slot); in rbtx4938_pci_map_irq()
25 if (slot == TX4927_PCIC_IDSEL_AD_TO_SLOT(23)) { in rbtx4938_pci_map_irq()
28 irq = (irq + 0 + slot) % 4; in rbtx4938_pci_map_irq()
32 irq = (irq + 33 - slot) % 4; in rbtx4938_pci_map_irq()
34 irq = (irq + 3 + slot) % 4; in rbtx4938_pci_map_irq()
Dfixup-jmr3927.c34 int __init jmr3927_pci_map_irq(const struct pci_dev *dev, u8 slot, u8 pin) in jmr3927_pci_map_irq() argument
40 if (slot == TX3927_PCIC_IDSEL_AD_TO_SLOT(23)) { in jmr3927_pci_map_irq()
45 } else if (slot == TX3927_PCIC_IDSEL_AD_TO_SLOT(22)) { in jmr3927_pci_map_irq()
53 irq = (irq + 33 - slot) % 4; in jmr3927_pci_map_irq()
55 irq = (irq + 3 + slot) % 4; in jmr3927_pci_map_irq()
76 slot == TX3927_PCIC_IDSEL_AD_TO_SLOT(24)) in jmr3927_pci_map_irq()
Dfixup-rbtx4927.c39 int __init rbtx4927_pci_map_irq(const struct pci_dev *dev, u8 slot, u8 pin) in rbtx4927_pci_map_irq() argument
45 if (slot == TX4927_PCIC_IDSEL_AD_TO_SLOT(23)) { in rbtx4927_pci_map_irq()
48 irq = (irq + 0 + slot) % 4; in rbtx4927_pci_map_irq()
52 irq = (irq + 33 - slot) % 4; in rbtx4927_pci_map_irq()
54 irq = (irq + 3 + slot) % 4; in rbtx4927_pci_map_irq()
Dops-bridge.c48 int slot = PCI_SLOT(devfn); in pci_conf0_read_config() local
54 addr = &bridge->b_type0_cfg_dev[slot].f[fn].c[PCI_VENDOR_ID]; in pci_conf0_read_config()
65 addr = &bridge->b_type0_cfg_dev[slot].f[fn].c[where ^ (4 - size)]; in pci_conf0_read_config()
91 addr = &bridge->b_type0_cfg_dev[slot].f[fn].l[where >> 2]; in pci_conf0_read_config()
109 int slot = PCI_SLOT(devfn); in pci_conf1_read_config() local
115 bridge->b_pci_cfg = (busno << 16) | (slot << 11); in pci_conf1_read_config()
127 bridge->b_pci_cfg = (busno << 16) | (slot << 11); in pci_conf1_read_config()
154 bridge->b_pci_cfg = (busno << 16) | (slot << 11); in pci_conf1_read_config()
181 int slot = PCI_SLOT(devfn); in pci_conf0_write_config() local
187 addr = &bridge->b_type0_cfg_dev[slot].f[fn].c[PCI_VENDOR_ID]; in pci_conf0_write_config()
[all …]
Dfixup-sni.c133 int __init pcibios_map_irq(const struct pci_dev *dev, u8 slot, u8 pin) in pcibios_map_irq() argument
137 if (slot == 4) { in pcibios_map_irq()
145 slot = 5; in pcibios_map_irq()
147 return irq_tab_pcit_cplus[slot][pin]; in pcibios_map_irq()
149 return irq_tab_pcit[slot][pin]; in pcibios_map_irq()
153 return irq_tab_rm300d[slot][pin]; in pcibios_map_irq()
157 return irq_tab_rm200[slot][pin]; in pcibios_map_irq()
160 return irq_tab_rm300e[slot][pin]; in pcibios_map_irq()
Dpci-tx4939.c51 int __init tx4939_pcic1_map_irq(const struct pci_dev *dev, u8 slot) in tx4939_pcic1_map_irq() argument
54 switch (slot) { in tx4939_pcic1_map_irq()
71 int __init tx4939_pci_map_irq(const struct pci_dev *dev, u8 slot, u8 pin) in tx4939_pci_map_irq() argument
73 int irq = tx4939_pcic1_map_irq(dev, slot); in tx4939_pci_map_irq()
80 irq = (irq + 33 - slot) % 4; in tx4939_pci_map_irq()
Dfixup-pmcmsp.c205 int __init pcibios_map_irq(const struct pci_dev *dev, u8 slot, u8 pin) in pcibios_map_irq() argument
211 irq_tab[slot][pin], slot, pin); in pcibios_map_irq()
213 return irq_tab[slot][pin]; in pcibios_map_irq()
Dpci-bcm47xx.c31 int __init pcibios_map_irq(const struct pci_dev *dev, u8 slot, u8 pin) in pcibios_map_irq() argument
40 u8 slot, pin; in bcm47xx_pcibios_plat_dev_init_ssb() local
50 slot = PCI_SLOT(dev->devfn); in bcm47xx_pcibios_plat_dev_init_ssb()
51 res = ssb_pcibios_map_irq(dev, slot, pin); in bcm47xx_pcibios_plat_dev_init_ssb()
Dfixup-mpc30x.c37 int __init pcibios_map_irq(const struct pci_dev *dev, u8 slot, u8 pin) in pcibios_map_irq() argument
39 if (slot == 30) in pcibios_map_irq()
42 return irq_tab_mpc30x[slot]; in pcibios_map_irq()
/linux-4.4.14/drivers/misc/cb710/
Dcore.c71 struct cb710_slot *slot = &chip->slot[0]; in cb710_irq_handler() local
77 for (nr = chip->slots; nr; ++slot, --nr) { in cb710_irq_handler()
78 cb710_irq_handler_t handler_func = slot->irq_handler; in cb710_irq_handler()
79 if (handler_func && handler_func(slot)) in cb710_irq_handler()
91 struct cb710_slot *slot = cb710_pdev_to_slot(to_platform_device(dev)); in cb710_release_slot() local
92 struct cb710_chip *chip = cb710_slot_to_chip(slot); in cb710_release_slot()
103 struct cb710_slot *slot = &chip->slot[nr]; in cb710_register_slot() local
115 slot->iobase = chip->iobase + io_offset; in cb710_register_slot()
116 slot->pdev.name = name; in cb710_register_slot()
117 slot->pdev.id = chip->platform_id; in cb710_register_slot()
[all …]
/linux-4.4.14/arch/powerpc/platforms/pseries/
Dlpar.c133 unsigned long slot; in pSeries_lpar_hpte_insert() local
162 lpar_rc = plpar_pte_enter(flags, hpte_group, hpte_v, hpte_r, &slot); in pSeries_lpar_hpte_insert()
180 pr_devel(" -> slot: %lu\n", slot & 7); in pSeries_lpar_hpte_insert()
185 return (slot & 7) | (!!(vflags & HPTE_V_SECONDARY) << 3); in pSeries_lpar_hpte_insert()
289 static long pSeries_lpar_hpte_updatepp(unsigned long slot, in pSeries_lpar_hpte_updatepp() argument
302 want_v, slot, flags, psize); in pSeries_lpar_hpte_updatepp()
304 lpar_rc = plpar_pte_protect(flags, slot, want_v); in pSeries_lpar_hpte_updatepp()
318 static unsigned long pSeries_lpar_hpte_getword0(unsigned long slot) in pSeries_lpar_hpte_getword0() argument
330 lpar_rc = plpar_pte_read(flags, slot, &dword0, &dummy_word1); in pSeries_lpar_hpte_getword0()
341 long slot; in pSeries_lpar_hpte_find() local
[all …]
/linux-4.4.14/include/linux/platform_data/
Dmmc-omap.h27 int (*switch_slot)(struct device *dev, int slot);
89 int (*set_bus_mode)(struct device *dev, int slot, int bus_mode);
90 int (*set_power)(struct device *dev, int slot,
92 int (*get_ro)(struct device *dev, int slot);
93 void (*remux)(struct device *dev, int slot, int power_on);
95 void (*before_set_reg)(struct device *dev, int slot,
98 void (*after_set_reg)(struct device *dev, int slot,
109 int (*get_cover_state)(struct device *dev, int slot);
116 int (*card_detect)(struct device *dev, int slot);
/linux-4.4.14/arch/arm/mach-iop32x/
Diq80321.c71 iq80321_pci_map_irq(const struct pci_dev *dev, u8 slot, u8 pin) in iq80321_pci_map_irq() argument
75 if ((slot == 2 || slot == 6) && pin == 1) { in iq80321_pci_map_irq()
78 } else if ((slot == 2 || slot == 6) && pin == 2) { in iq80321_pci_map_irq()
81 } else if ((slot == 2 || slot == 6) && pin == 3) { in iq80321_pci_map_irq()
84 } else if ((slot == 2 || slot == 6) && pin == 4) { in iq80321_pci_map_irq()
87 } else if (slot == 4 || slot == 8) { in iq80321_pci_map_irq()
Diq31244.c103 ep80219_pci_map_irq(const struct pci_dev *dev, u8 slot, u8 pin) in ep80219_pci_map_irq() argument
107 if (slot == 0) { in ep80219_pci_map_irq()
110 } else if (slot == 1) { in ep80219_pci_map_irq()
113 } else if (slot == 2) { in ep80219_pci_map_irq()
116 } else if (slot == 3) { in ep80219_pci_map_irq()
138 iq31244_pci_map_irq(const struct pci_dev *dev, u8 slot, u8 pin) in iq31244_pci_map_irq() argument
142 if (slot == 0) { in iq31244_pci_map_irq()
145 } else if (slot == 1) { in iq31244_pci_map_irq()
148 } else if (slot == 2) { in iq31244_pci_map_irq()
151 } else if (slot == 3) { in iq31244_pci_map_irq()
/linux-4.4.14/arch/arm/mach-omap2/
Dboard-n8x0.c188 static int n8x0_mmc_switch_slot(struct device *dev, int slot) in n8x0_mmc_switch_slot() argument
191 dev_dbg(dev, "Choose slot %d\n", slot + 1); in n8x0_mmc_switch_slot()
193 gpio_set_value(N8X0_SLOT_SWITCH_GPIO, slot); in n8x0_mmc_switch_slot()
197 static int n8x0_mmc_set_power_menelaus(struct device *dev, int slot, in n8x0_mmc_set_power_menelaus() argument
203 dev_dbg(dev, "Set slot %d power: %s (vdd %d)\n", slot + 1, in n8x0_mmc_set_power_menelaus()
206 if (slot == 0) { in n8x0_mmc_set_power_menelaus()
284 static int n8x0_mmc_set_power(struct device *dev, int slot, int power_on, in n8x0_mmc_set_power() argument
287 if (board_is_n800() || slot == 0) in n8x0_mmc_set_power()
288 return n8x0_mmc_set_power_menelaus(dev, slot, power_on, vdd); in n8x0_mmc_set_power()
295 static int n8x0_mmc_set_bus_mode(struct device *dev, int slot, int bus_mode) in n8x0_mmc_set_bus_mode() argument
[all …]
/linux-4.4.14/arch/sh/mm/
Dioremap_fixed.c53 int i, slot; in ioremap_fixed() local
62 slot = -1; in ioremap_fixed()
67 slot = i; in ioremap_fixed()
72 if (slot < 0) in ioremap_fixed()
85 idx0 = FIX_IOREMAP_BEGIN + slot; in ioremap_fixed()
104 int i, slot; in iounmap_fixed() local
106 slot = -1; in iounmap_fixed()
110 slot = i; in iounmap_fixed()
118 if (slot < 0) in iounmap_fixed()
123 idx = FIX_IOREMAP_BEGIN + slot + nrpages - 1; in iounmap_fixed()
/linux-4.4.14/fs/btrfs/
Duuid-tree.c40 int slot; in btrfs_uuid_tree_lookup() local
66 slot = path->slots[0]; in btrfs_uuid_tree_lookup()
67 item_size = btrfs_item_size_nr(eb, slot); in btrfs_uuid_tree_lookup()
68 offset = btrfs_item_ptr_offset(eb, slot); in btrfs_uuid_tree_lookup()
101 int slot; in btrfs_uuid_tree_add() local
127 slot = path->slots[0]; in btrfs_uuid_tree_add()
128 offset = btrfs_item_ptr_offset(eb, slot); in btrfs_uuid_tree_add()
136 slot = path->slots[0]; in btrfs_uuid_tree_add()
137 offset = btrfs_item_ptr_offset(eb, slot); in btrfs_uuid_tree_add()
138 offset += btrfs_item_size_nr(eb, slot) - sizeof(subid_le); in btrfs_uuid_tree_add()
[all …]
Dctree.c41 int level, int slot);
319 int slot; member
517 alloc_tree_mod_elem(struct extent_buffer *eb, int slot, in alloc_tree_mod_elem() argument
528 btrfs_node_key(eb, &tm->key, slot); in alloc_tree_mod_elem()
529 tm->blockptr = btrfs_node_blockptr(eb, slot); in alloc_tree_mod_elem()
532 tm->slot = slot; in alloc_tree_mod_elem()
533 tm->generation = btrfs_node_ptr_generation(eb, slot); in alloc_tree_mod_elem()
541 struct extent_buffer *eb, int slot, in tree_mod_log_insert_key() argument
550 tm = alloc_tree_mod_elem(eb, slot, op, flags); in tree_mod_log_insert_key()
592 tm->slot = src_slot; in tree_mod_log_insert_move()
[all …]
Droot-tree.c33 static void btrfs_read_root_item(struct extent_buffer *eb, int slot, in btrfs_read_root_item() argument
40 len = btrfs_item_size_nr(eb, slot); in btrfs_read_root_item()
41 read_extent_buffer(eb, item, btrfs_item_ptr_offset(eb, slot), in btrfs_read_root_item()
89 int slot; in btrfs_find_root() local
107 slot = path->slots[0]; in btrfs_find_root()
109 btrfs_item_key_to_cpu(l, &found_key, slot); in btrfs_find_root()
117 btrfs_read_root_item(l, slot, root_item); in btrfs_find_root()
143 int slot; in btrfs_update_root() local
165 slot = path->slots[0]; in btrfs_update_root()
166 ptr = btrfs_item_ptr_offset(l, slot); in btrfs_update_root()
[all …]
Dbackref.c89 int slot; in find_extent_in_eb() local
100 for (slot = 0; slot < nritems; ++slot) { in find_extent_in_eb()
101 btrfs_item_key_to_cpu(eb, &key, slot); in find_extent_in_eb()
104 fi = btrfs_item_ptr(eb, slot, struct btrfs_file_extent_item); in find_extent_in_eb()
253 int slot; in add_all_parents() local
285 slot = path->slots[0]; in add_all_parents()
287 btrfs_item_key_to_cpu(eb, &key, slot); in add_all_parents()
293 fi = btrfs_item_ptr(eb, slot, struct btrfs_file_extent_item); in add_all_parents()
720 int slot; in __add_inline_refs() local
734 slot = path->slots[0]; in __add_inline_refs()
[all …]
/linux-4.4.14/drivers/gpu/drm/atmel-hlcdc/
Datmel_hlcdc_layer.c69 struct atmel_hlcdc_layer_update_slot *slot; in atmel_hlcdc_layer_update_reset() local
74 slot = &upd->slots[id]; in atmel_hlcdc_layer_update_reset()
75 bitmap_clear(slot->updated_configs, 0, layer->desc->nconfigs); in atmel_hlcdc_layer_update_reset()
76 memset(slot->configs, 0, in atmel_hlcdc_layer_update_reset()
77 sizeof(*slot->configs) * layer->desc->nconfigs); in atmel_hlcdc_layer_update_reset()
79 if (slot->fb_flip) { in atmel_hlcdc_layer_update_reset()
80 atmel_hlcdc_layer_fb_flip_release_queue(layer, slot->fb_flip); in atmel_hlcdc_layer_update_reset()
81 slot->fb_flip = NULL; in atmel_hlcdc_layer_update_reset()
91 struct atmel_hlcdc_layer_update_slot *slot; in atmel_hlcdc_layer_update_apply() local
101 slot = &upd->slots[upd->pending]; in atmel_hlcdc_layer_update_apply()
[all …]
/linux-4.4.14/drivers/net/wireless/b43legacy/
Ddma.c46 int slot, in op32_idx2desc() argument
51 *meta = &(ring->meta[slot]); in op32_idx2desc()
53 desc = &(desc[slot]); in op32_idx2desc()
64 int slot; in op32_fill_descriptor() local
69 slot = (int)(desc - descbase); in op32_fill_descriptor()
70 B43legacy_WARN_ON(!(slot >= 0 && slot < ring->nr_slots)); in op32_fill_descriptor()
78 if (slot == ring->nr_slots - 1) in op32_fill_descriptor()
93 static void op32_poke_tx(struct b43legacy_dmaring *ring, int slot) in op32_poke_tx() argument
96 (u32)(slot * sizeof(struct b43legacy_dmadesc32))); in op32_poke_tx()
124 int slot) in op32_set_current_rxslot() argument
[all …]
/linux-4.4.14/drivers/zorro/
Dproc.c81 unsigned int slot = *(loff_t *)v; in zorro_seq_show() local
82 struct zorro_dev *z = &zorro_autocon[slot]; in zorro_seq_show()
84 seq_printf(m, "%02x\t%08x\t%08lx\t%08lx\t%02x\n", slot, z->id, in zorro_seq_show()
113 static int __init zorro_proc_attach_device(unsigned int slot) in zorro_proc_attach_device() argument
118 sprintf(name, "%02x", slot); in zorro_proc_attach_device()
121 &zorro_autocon[slot]); in zorro_proc_attach_device()
130 unsigned int slot; in zorro_proc_init() local
136 for (slot = 0; slot < zorro_num_autocon; slot++) in zorro_proc_init()
137 zorro_proc_attach_device(slot); in zorro_proc_init()
/linux-4.4.14/arch/powerpc/mm/
Dhash_native_64.c284 static long native_hpte_updatepp(unsigned long slot, unsigned long newpp, in native_hpte_updatepp() argument
288 struct hash_pte *hptep = htab_address + slot; in native_hpte_updatepp()
295 vpn, want_v & HPTE_V_AVPN, slot, newpp); in native_hpte_updatepp()
342 long slot; in native_hpte_find() local
349 slot = (hash & htab_hash_mask) * HPTES_PER_GROUP; in native_hpte_find()
351 hptep = htab_address + slot; in native_hpte_find()
356 return slot; in native_hpte_find()
357 ++slot; in native_hpte_find()
375 long slot; in native_hpte_updateboltedpp() local
381 slot = native_hpte_find(vpn, psize, ssize); in native_hpte_updateboltedpp()
[all …]
Dhugepage-hash64.c30 unsigned long vpn, hash, shift, slot; in __hash_page_thp() local
107 slot = (hash & htab_hash_mask) * HPTES_PER_GROUP; in __hash_page_thp()
108 slot += hidx & _PTEIDX_GROUP_IX; in __hash_page_thp()
110 ret = ppc_md.hpte_updatepp(slot, rflags, vpn, in __hash_page_thp()
145 slot = ppc_md.hpte_insert(hpte_group, vpn, pa, rflags, 0, in __hash_page_thp()
150 if (unlikely(slot == -1)) { in __hash_page_thp()
153 slot = ppc_md.hpte_insert(hpte_group, vpn, pa, in __hash_page_thp()
156 if (slot == -1) { in __hash_page_thp()
169 if (unlikely(slot == -2)) { in __hash_page_thp()
180 mark_hpte_slot_valid(hpte_slot_array, index, slot); in __hash_page_thp()
Dhugetlbpage-hash64.c28 long slot; in __hash_page_huge() local
75 unsigned long hash, slot; in __hash_page_huge() local
80 slot = (hash & htab_hash_mask) * HPTES_PER_GROUP; in __hash_page_huge()
81 slot += (old_pte & _PAGE_F_GIX) >> 12; in __hash_page_huge()
83 if (ppc_md.hpte_updatepp(slot, rflags, vpn, mmu_psize, in __hash_page_huge()
107 slot = hpte_insert_repeating(hash, vpn, pa, rflags, 0, in __hash_page_huge()
114 if (unlikely(slot == -2)) { in __hash_page_huge()
121 new_pte |= (slot << 12) & (_PAGE_F_SECOND | _PAGE_F_GIX); in __hash_page_huge()
/linux-4.4.14/drivers/net/wireless/b43/
Ddma.c86 int slot, in op32_idx2desc() argument
91 *meta = &(ring->meta[slot]); in op32_idx2desc()
93 desc = &(desc[slot]); in op32_idx2desc()
104 int slot; in op32_fill_descriptor() local
109 slot = (int)(&(desc->dma32) - descbase); in op32_fill_descriptor()
110 B43_WARN_ON(!(slot >= 0 && slot < ring->nr_slots)); in op32_fill_descriptor()
116 if (slot == ring->nr_slots - 1) in op32_fill_descriptor()
131 static void op32_poke_tx(struct b43_dmaring *ring, int slot) in op32_poke_tx() argument
134 (u32) (slot * sizeof(struct b43_dmadesc32))); in op32_poke_tx()
159 static void op32_set_current_rxslot(struct b43_dmaring *ring, int slot) in op32_set_current_rxslot() argument
[all …]
/linux-4.4.14/fs/ocfs2/cluster/
Dheartbeat.c480 unsigned int slot; in o2hb_issue_node_write() local
485 slot = o2nm_this_node(); in o2hb_issue_node_write()
487 bio = o2hb_setup_one_bio(reg, write_wc, &slot, slot+1); in o2hb_issue_node_write()
550 struct o2hb_disk_slot *slot; in o2hb_check_own_slot() local
554 slot = &reg->hr_slots[o2nm_this_node()]; in o2hb_check_own_slot()
556 if (!slot->ds_last_time) in o2hb_check_own_slot()
559 hb_block = slot->ds_raw_block; in o2hb_check_own_slot()
560 if (le64_to_cpu(hb_block->hb_seq) == slot->ds_last_time && in o2hb_check_own_slot()
561 le64_to_cpu(hb_block->hb_generation) == slot->ds_last_generation && in o2hb_check_own_slot()
562 hb_block->hb_node == slot->ds_node_num) in o2hb_check_own_slot()
[all …]
/linux-4.4.14/arch/x86/include/asm/
Dpci-direct.h9 extern u32 read_pci_config(u8 bus, u8 slot, u8 func, u8 offset);
10 extern u8 read_pci_config_byte(u8 bus, u8 slot, u8 func, u8 offset);
11 extern u16 read_pci_config_16(u8 bus, u8 slot, u8 func, u8 offset);
12 extern void write_pci_config(u8 bus, u8 slot, u8 func, u8 offset, u32 val);
13 extern void write_pci_config_byte(u8 bus, u8 slot, u8 func, u8 offset, u8 val);
14 extern void write_pci_config_16(u8 bus, u8 slot, u8 func, u8 offset, u16 val);
19 extern void early_dump_pci_device(u8 bus, u8 slot, u8 func);
/linux-4.4.14/arch/arm/boot/dts/
Dintegratorap.dts90 0x4800 0 0 1 &pic 13 /* INT A on slot 9 is irq 13 */
91 0x4800 0 0 2 &pic 14 /* INT B on slot 9 is irq 14 */
92 0x4800 0 0 3 &pic 15 /* INT C on slot 9 is irq 15 */
93 0x4800 0 0 4 &pic 16 /* INT D on slot 9 is irq 16 */
95 0x5000 0 0 1 &pic 14 /* INT A on slot 10 is irq 14 */
96 0x5000 0 0 2 &pic 15 /* INT B on slot 10 is irq 15 */
97 0x5000 0 0 3 &pic 16 /* INT C on slot 10 is irq 16 */
98 0x5000 0 0 4 &pic 13 /* INT D on slot 10 is irq 13 */
100 0x5800 0 0 1 &pic 15 /* INT A on slot 11 is irq 15 */
101 0x5800 0 0 2 &pic 16 /* INT B on slot 11 is irq 16 */
[all …]
/linux-4.4.14/fs/ocfs2/
Dsysfile.c44 u32 slot);
58 u32 slot) in get_local_system_inode() argument
63 BUG_ON(slot == OCFS2_INVALID_SLOT); in get_local_system_inode()
97 index = (slot * NUM_LOCAL_SYSTEM_INODES) + in get_local_system_inode()
105 u32 slot) in ocfs2_get_system_file_inode() argument
114 arr = get_local_system_inode(osb, type, slot); in ocfs2_get_system_file_inode()
127 inode = _ocfs2_get_system_file_inode(osb, type, slot); in ocfs2_get_system_file_inode()
140 u32 slot) in _ocfs2_get_system_file_inode() argument
149 type, slot); in _ocfs2_get_system_file_inode()
Dslot_map.c291 int slot; in ocfs2_node_num_to_slot() local
295 slot = __ocfs2_node_num_to_slot(si, node_num); in ocfs2_node_num_to_slot()
298 return slot; in ocfs2_node_num_to_slot()
472 int slot; in ocfs2_find_slot() local
484 slot = __ocfs2_node_num_to_slot(si, osb->node_num); in ocfs2_find_slot()
485 if (slot < 0) { in ocfs2_find_slot()
488 slot = __ocfs2_find_empty_slot(si, osb->preferred_slot); in ocfs2_find_slot()
489 if (slot < 0) { in ocfs2_find_slot()
497 "allocated to this node!\n", slot, osb->dev_str); in ocfs2_find_slot()
499 ocfs2_set_slot(si, slot, osb->node_num); in ocfs2_find_slot()
[all …]
/linux-4.4.14/arch/arm/mach-ixp4xx/
Dgtwx5715-pci.c52 static int __init gtwx5715_map_irq(const struct pci_dev *dev, u8 slot, u8 pin) in gtwx5715_map_irq() argument
56 if ((slot == SLOT0_DEVID && pin == 1) || in gtwx5715_map_irq()
57 (slot == SLOT1_DEVID && pin == 2)) in gtwx5715_map_irq()
59 else if ((slot == SLOT0_DEVID && pin == 2) || in gtwx5715_map_irq()
60 (slot == SLOT1_DEVID && pin == 1)) in gtwx5715_map_irq()
64 __func__, slot, pin, rc); in gtwx5715_map_irq()
Dfsg-pci.c41 static int __init fsg_map_irq(const struct pci_dev *dev, u8 slot, u8 pin) in fsg_map_irq() argument
50 slot -= 11; in fsg_map_irq()
52 if (slot >= 1 && slot <= MAX_DEV && pin >= 1 && pin <= IRQ_LINES) in fsg_map_irq()
53 irq = pci_irq_table[slot - 1]; in fsg_map_irq()
55 __func__, slot, pin, irq); in fsg_map_irq()
Dixdpg425-pci.c34 static int __init ixdpg425_map_irq(const struct pci_dev *dev, u8 slot, u8 pin) in ixdpg425_map_irq() argument
36 if (slot == 12 || slot == 13) in ixdpg425_map_irq()
38 else if (slot == 14) in ixdpg425_map_irq()
Dnslu2-pci.c41 static int __init nslu2_map_irq(const struct pci_dev *dev, u8 slot, u8 pin) in nslu2_map_irq() argument
49 if (slot >= 1 && slot <= MAX_DEV && pin >= 1 && pin <= IRQ_LINES) in nslu2_map_irq()
50 return pci_irq_table[(slot + pin - 2) % IRQ_LINES]; in nslu2_map_irq()
Dmiccpt-pci.c47 static int __init miccpt_map_irq(const struct pci_dev *dev, u8 slot, u8 pin) in miccpt_map_irq() argument
56 if (slot >= 1 && slot <= MAX_DEV && pin >= 1 && pin <= IRQ_LINES) in miccpt_map_irq()
57 return pci_irq_table[(slot + pin - 2) % 4]; in miccpt_map_irq()
Dixdp425-pci.c46 static int __init ixdp425_map_irq(const struct pci_dev *dev, u8 slot, u8 pin) in ixdp425_map_irq() argument
55 if (slot >= 1 && slot <= MAX_DEV && pin >= 1 && pin <= IRQ_LINES) in ixdp425_map_irq()
56 return pci_irq_table[(slot + pin - 2) % 4]; in ixdp425_map_irq()
Davila-pci.c49 static int __init avila_map_irq(const struct pci_dev *dev, u8 slot, u8 pin) in avila_map_irq() argument
58 if (slot >= 1 && in avila_map_irq()
59 slot <= (machine_is_loft() ? LOFT_MAX_DEV : AVILA_MAX_DEV) && in avila_map_irq()
61 return pci_irq_table[(slot + pin - 2) % 4]; in avila_map_irq()
Dnas100d-pci.c44 static int __init nas100d_map_irq(const struct pci_dev *dev, u8 slot, u8 pin) in nas100d_map_irq() argument
53 if (slot >= 1 && slot <= MAX_DEV && pin >= 1 && pin <= IRQ_LINES) in nas100d_map_irq()
54 return pci_irq_table[slot - 1][pin - 1]; in nas100d_map_irq()
Ddsmg600-pci.c47 static int __init dsmg600_map_irq(const struct pci_dev *dev, u8 slot, u8 pin) in dsmg600_map_irq() argument
57 if (slot >= 1 && slot <= MAX_DEV && pin >= 1 && pin <= IRQ_LINES) in dsmg600_map_irq()
58 return pci_irq_table[slot - 1][pin - 1]; in dsmg600_map_irq()
Dwg302v2-pci.c38 static int __init wg302v2_map_irq(const struct pci_dev *dev, u8 slot, u8 pin) in wg302v2_map_irq() argument
40 if (slot == 1) in wg302v2_map_irq()
42 else if (slot == 2) in wg302v2_map_irq()
Dgateway7001-pci.c38 static int __init gateway7001_map_irq(const struct pci_dev *dev, u8 slot, in gateway7001_map_irq() argument
41 if (slot == 1) in gateway7001_map_irq()
43 else if (slot == 2) in gateway7001_map_irq()
Dcoyote-pci.c40 static int __init coyote_map_irq(const struct pci_dev *dev, u8 slot, u8 pin) in coyote_map_irq() argument
42 if (slot == SLOT0_DEVID) in coyote_map_irq()
44 else if (slot == SLOT1_DEVID) in coyote_map_irq()
Dvulcan-pci.c46 static int __init vulcan_map_irq(const struct pci_dev *dev, u8 slot, u8 pin) in vulcan_map_irq() argument
48 if (slot == 1) in vulcan_map_irq()
51 if (slot == 2) in vulcan_map_irq()
/linux-4.4.14/drivers/mmc/core/
Dslot-gpio.c54 host->slot.handler_priv = ctx; in mmc_gpio_alloc()
55 host->slot.cd_irq = -EINVAL; in mmc_gpio_alloc()
63 struct mmc_gpio *ctx = host->slot.handler_priv; in mmc_gpio_get_ro()
78 struct mmc_gpio *ctx = host->slot.handler_priv; in mmc_gpio_get_cd()
103 struct mmc_gpio *ctx = host->slot.handler_priv; in mmc_gpio_request_ro()
123 struct mmc_gpio *ctx = host->slot.handler_priv; in mmc_gpiod_request_cd_irq()
126 if (host->slot.cd_irq >= 0 || !ctx || !ctx->cd_gpio) in mmc_gpiod_request_cd_irq()
150 host->slot.cd_irq = irq; in mmc_gpiod_request_cd_irq()
163 struct mmc_gpio *ctx = host->slot.handler_priv; in mmc_gpio_set_cd_isr()
188 struct mmc_gpio *ctx = host->slot.handler_priv; in mmc_gpio_request_cd()
[all …]
/linux-4.4.14/arch/x86/kvm/
Diommu.c46 static pfn_t kvm_pin_pages(struct kvm_memory_slot *slot, gfn_t gfn, in kvm_pin_pages() argument
52 pfn = gfn_to_pfn_memslot(slot, gfn); in kvm_pin_pages()
60 gfn_to_pfn_memslot(slot, gfn++); in kvm_pin_pages()
73 int kvm_iommu_map_pages(struct kvm *kvm, struct kvm_memory_slot *slot) in kvm_iommu_map_pages() argument
85 gfn = slot->base_gfn; in kvm_iommu_map_pages()
86 end_gfn = gfn + slot->npages; in kvm_iommu_map_pages()
89 if (!(slot->flags & KVM_MEM_READONLY)) in kvm_iommu_map_pages()
116 while (__gfn_to_hva_memslot(slot, gfn) & (page_size - 1)) in kvm_iommu_map_pages()
123 pfn = kvm_pin_pages(slot, gfn, page_size >> PAGE_SHIFT); in kvm_iommu_map_pages()
147 kvm_iommu_put_pages(kvm, slot->base_gfn, gfn - slot->base_gfn); in kvm_iommu_map_pages()
[all …]
/linux-4.4.14/Documentation/devicetree/bindings/mmc/
Datmel-hsmci.txt13 - #address-cells: should be one. The cell is the slot id.
15 - at least one slot node
20 The node contains child nodes for each slot that the platform uses
36 2) slot nodes
39 - reg: should contain the slot id.
47 Example slot node:
49 slot@0 {
63 slot@0 {
69 slot@1 {
Dmmc-spi-slot.txt1 MMC/SD/SDIO slot directly connected to a SPI bus
9 slot voltage (mV), second cell specifies maximum slot voltage (mV).
21 mmc-slot@0 {
22 compatible = "fsl,mpc8323rdb-mmc-slot",
23 "mmc-spi-slot";
/linux-4.4.14/arch/alpha/kernel/
Dsys_miata.c153 miata_map_irq(const struct pci_dev *dev, u8 slot, u8 pin) in miata_map_irq() argument
183 if((slot == 7) && (PCI_FUNC(dev->devfn) == 3)) { in miata_map_irq()
202 int slot, pin = *pinp; in miata_swizzle() local
205 slot = PCI_SLOT(dev->devfn); in miata_swizzle()
210 slot = PCI_SLOT(dev->devfn) + 9; in miata_swizzle()
218 slot = PCI_SLOT(dev->devfn) + 9; in miata_swizzle()
226 slot = PCI_SLOT(dev->devfn); in miata_swizzle()
230 return slot; in miata_swizzle()
Dsys_ruffian.c121 ruffian_map_irq(const struct pci_dev *dev, u8 slot, u8 pin) in ruffian_map_irq() argument
145 int slot, pin = *pinp; in ruffian_swizzle() local
148 slot = PCI_SLOT(dev->devfn); in ruffian_swizzle()
152 slot = PCI_SLOT(dev->devfn) + 10; in ruffian_swizzle()
159 slot = PCI_SLOT(dev->devfn) + 10; in ruffian_swizzle()
167 slot = PCI_SLOT(dev->devfn); in ruffian_swizzle()
171 return slot; in ruffian_swizzle()
Dsys_noritake.c197 noritake_map_irq(const struct pci_dev *dev, u8 slot, u8 pin) in noritake_map_irq() argument
227 int slot, pin = *pinp; in noritake_swizzle() local
230 slot = PCI_SLOT(dev->devfn); in noritake_swizzle()
234 slot = PCI_SLOT(dev->devfn) + 15; /* WAG! */ in noritake_swizzle()
241 slot = PCI_SLOT(dev->devfn) + 15; in noritake_swizzle()
249 slot = PCI_SLOT(dev->devfn); in noritake_swizzle()
253 return slot; in noritake_swizzle()
Dsys_sable.c196 sable_map_irq(const struct pci_dev *dev, u8 slot, u8 pin) in sable_map_irq() argument
378 lynx_map_irq(const struct pci_dev *dev, u8 slot, u8 pin) in lynx_map_irq() argument
410 int slot, pin = *pinp; in lynx_swizzle() local
413 slot = PCI_SLOT(dev->devfn); in lynx_swizzle()
417 slot = PCI_SLOT(dev->devfn) + 11; in lynx_swizzle()
424 slot = PCI_SLOT(dev->devfn) + 11; in lynx_swizzle()
432 slot = PCI_SLOT(dev->devfn); in lynx_swizzle()
436 return slot; in lynx_swizzle()
Dsys_eiger.c145 eiger_map_irq(const struct pci_dev *dev, u8 slot, u8 pin) in eiger_map_irq() argument
165 int slot, pin = *pinp; in eiger_swizzle() local
180 slot = PCI_SLOT(dev->devfn); in eiger_swizzle()
186 slot = PCI_SLOT(dev->devfn); in eiger_swizzle()
196 return slot; in eiger_swizzle()
/linux-4.4.14/arch/arm/mach-versatile/
Dpci.c63 int slot; in versatile_pci_slot_ignore() local
65 while ((retval = get_option(&str,&slot))) { in versatile_pci_slot_ignore()
66 if ((slot < 0) || (slot > 31)) { in versatile_pci_slot_ignore()
67 printk("Illegal slot value: %d\n",slot); in versatile_pci_slot_ignore()
69 pci_slot_ignore |= (1 << slot); in versatile_pci_slot_ignore()
102 int slot = PCI_SLOT(devfn); in versatile_read_config() local
104 if (pci_slot_ignore & (1 << slot)) { in versatile_read_config()
145 int slot = PCI_SLOT(devfn); in versatile_write_config() local
147 if (pci_slot_ignore & (1 << slot)) { in versatile_write_config()
339 static int __init versatile_map_irq(const struct pci_dev *dev, u8 slot, u8 pin) in versatile_map_irq() argument
[all …]
/linux-4.4.14/arch/cris/arch-v32/mach-fs/
Darbiter.c70 int slot; in crisv32_arbiter_config() local
83 for (slot = 0; slot < NBR_OF_SLOTS; slot++) in crisv32_arbiter_config()
84 val[slot] = -1; in crisv32_arbiter_config()
135 for (slot = 0; slot < NBR_OF_SLOTS; slot++) { in crisv32_arbiter_config()
142 if (val[slot] < 0) { in crisv32_arbiter_config()
149 val[slot] = client; in crisv32_arbiter_config()
153 REG_WR_INT_VECT(marb, regi_marb, rw_ext_slots, slot, in crisv32_arbiter_config()
154 val[slot]); in crisv32_arbiter_config()
156 REG_WR_INT_VECT(marb, regi_marb, rw_int_slots, slot, in crisv32_arbiter_config()
157 val[slot]); in crisv32_arbiter_config()
/linux-4.4.14/drivers/input/joystick/
Dgrip_mp.c362 int slot; in get_and_decode_packet() local
380 slot = ((packet >> 21) & 0xf) - 1; in get_and_decode_packet()
381 if ((slot < 0) || (slot > 3)) in get_and_decode_packet()
384 port = grip->port[slot]; in get_and_decode_packet()
396 grip_name[port->mode], slot); in get_and_decode_packet()
400 dbg("Reset: grip multiport slot %d\n", slot); in get_and_decode_packet()
422 dbg("New Grip pad in multiport slot %d.\n", slot); in get_and_decode_packet()
423 if (register_slot(slot, grip)) { in get_and_decode_packet()
450 int flags, slot, invalid = 0, active = 0; in slots_valid() local
456 for (slot = 0; slot < 4; slot++) { in slots_valid()
[all …]
/linux-4.4.14/arch/tile/include/gxio/
Ddma_queue.h80 uint64_t slot; in __gxio_dma_queue_reserve() local
111 slot = (old & 0xffffff); in __gxio_dma_queue_reserve()
125 slot |= (complete & 0xffffffffff000000); in __gxio_dma_queue_reserve()
126 if (slot < complete) in __gxio_dma_queue_reserve()
127 slot += 0x1000000; in __gxio_dma_queue_reserve()
146 return slot; in __gxio_dma_queue_reserve()
/linux-4.4.14/drivers/nubus/
Dnubus.c156 static inline void *nubus_rom_addr(int slot) in nubus_rom_addr() argument
162 return (void *)(0xF1000000+(slot<<24)); in nubus_rom_addr()
335 nubus_find_slot(unsigned int slot, in nubus_find_slot() argument
342 if (itor->board->slot == slot) in nubus_find_slot()
462 int slot, in nubus_get_functional_resource() argument
473 if (slot == 0 && (unsigned long)dir.base % 2) in nubus_get_functional_resource()
650 static int __init nubus_get_board_resource(struct nubus_board* board, int slot, in nubus_get_board_resource() argument
746 romdir = nubus_rom_addr(board->slot); in nubus_find_rom_dir()
799 static struct nubus_board* __init nubus_add_board(int slot, int bytelanes) in nubus_add_board() argument
810 rp = nubus_rom_addr(slot); in nubus_add_board()
[all …]
/linux-4.4.14/drivers/usb/early/
Dehci-dbgp.c66 u32 slot; member
369 static u32 __init find_cap(u32 num, u32 slot, u32 func, int cap) in find_cap() argument
374 if (!(read_pci_config_16(num, slot, func, PCI_STATUS) & in find_cap()
378 pos = read_pci_config_byte(num, slot, func, PCI_CAPABILITY_LIST); in find_cap()
383 id = read_pci_config_byte(num, slot, func, pos+PCI_CAP_LIST_ID); in find_cap()
389 pos = read_pci_config_byte(num, slot, func, in find_cap()
395 static u32 __init __find_dbgp(u32 bus, u32 slot, u32 func) in __find_dbgp() argument
399 class = read_pci_config(bus, slot, func, PCI_CLASS_REVISION); in __find_dbgp()
403 return find_cap(bus, slot, func, PCI_CAP_ID_EHCI_DEBUG); in __find_dbgp()
408 u32 bus, slot, func; in find_dbgp() local
[all …]
/linux-4.4.14/fs/btrfs/tests/
Dinode-tests.c28 u64 disk_len, u32 type, u8 compression, int slot) in insert_extent() argument
41 path.slots[0] = slot; in insert_extent()
49 fi = btrfs_item_ptr(leaf, slot, struct btrfs_file_extent_item); in insert_extent()
102 int slot = 0; in setup_file_extents() local
108 slot); in setup_file_extents()
109 slot++; in setup_file_extents()
119 slot); in setup_file_extents()
120 slot++; in setup_file_extents()
125 slot); in setup_file_extents()
126 slot++; in setup_file_extents()
[all …]
/linux-4.4.14/drivers/md/
Dmd-cluster.c35 int slot; member
84 __le32 slot; member
235 int slot, ret; in recover_bitmaps() local
240 slot = fls64((u64)cinfo->recovery_map) - 1; in recover_bitmaps()
245 if (slot == s->slot) { in recover_bitmaps()
251 snprintf(str, 64, "bitmap%04d", slot); in recover_bitmaps()
264 ret = bitmap_copy_from_slot(mddev, slot, &lo, &hi, true); in recover_bitmaps()
266 pr_err("md-cluster: Could not copy data from bitmap %d\n", slot); in recover_bitmaps()
279 clear_bit(slot, &cinfo->recovery_map); in recover_bitmaps()
290 static void __recover_slot(struct mddev *mddev, int slot) in __recover_slot() argument
[all …]
/linux-4.4.14/arch/powerpc/platforms/ps3/
Dhtab.c111 static long ps3_hpte_updatepp(unsigned long slot, unsigned long newpp, in ps3_hpte_updatepp() argument
125 result = lv1_read_htab_entries(PS3_LPAR_VAS_ID_CURRENT, slot & ~0x3UL, in ps3_hpte_updatepp()
132 __func__, ps3_result(result), vpn, slot, psize); in ps3_hpte_updatepp()
136 hpte_v = hpte_v_array[slot % 4]; in ps3_hpte_updatepp()
151 slot, 0, 0); in ps3_hpte_updatepp()
165 static void ps3_hpte_invalidate(unsigned long slot, unsigned long vpn, in ps3_hpte_invalidate() argument
173 result = lv1_write_htab_entry(PS3_LPAR_VAS_ID_CURRENT, slot, 0, 0); in ps3_hpte_invalidate()
177 __func__, ps3_result(result), vpn, slot, psize); in ps3_hpte_invalidate()
/linux-4.4.14/arch/arm/mach-rpc/
Decard.c100 static inline ecard_t *slot_to_ecard(unsigned int slot) in slot_to_ecard() argument
102 return slot < MAX_ECARDS ? slot_to_expcard[slot] : NULL; in slot_to_ecard()
585 int slot = ec->slot_no; in __ecard_address() local
590 ectcr &= ~(1 << slot); in __ecard_address()
594 if (slot < 4) in __ecard_address()
595 address = ECARD_MEMC_BASE + (slot << 14); in __ecard_address()
599 if (slot < 4) in __ecard_address()
600 address = ECARD_IOC_BASE + (slot << 14); in __ecard_address()
602 address = ECARD_IOC4_BASE + ((slot - 4) << 14); in __ecard_address()
608 address = ECARD_EASI_BASE + (slot << 24); in __ecard_address()
[all …]
/linux-4.4.14/arch/arm/mach-iop33x/
Diq80332.c53 iq80332_pci_map_irq(const struct pci_dev *dev, u8 slot, u8 pin) in iq80332_pci_map_irq() argument
57 if (slot == 4 && pin == 1) { in iq80332_pci_map_irq()
60 } else if (slot == 4 && pin == 2) { in iq80332_pci_map_irq()
63 } else if (slot == 4 && pin == 3) { in iq80332_pci_map_irq()
66 } else if (slot == 4 && pin == 4) { in iq80332_pci_map_irq()
69 } else if (slot == 6) { in iq80332_pci_map_irq()
Diq80331.c53 iq80331_pci_map_irq(const struct pci_dev *dev, u8 slot, u8 pin) in iq80331_pci_map_irq() argument
57 if (slot == 1 && pin == 1) { in iq80331_pci_map_irq()
60 } else if (slot == 1 && pin == 2) { in iq80331_pci_map_irq()
63 } else if (slot == 1 && pin == 3) { in iq80331_pci_map_irq()
66 } else if (slot == 1 && pin == 4) { in iq80331_pci_map_irq()
69 } else if (slot == 2) { in iq80331_pci_map_irq()
/linux-4.4.14/arch/powerpc/platforms/cell/spufs/
Dspu_restore.c93 decr_running = regs_spill[offset].slot[0] & SPU_DECR_STATUS_RUNNING; in restore_decr()
96 decr = regs_spill[offset].slot[0]; in restore_decr()
111 data = regs_spill[offset].slot[0]; in write_ppu_mb()
125 data = regs_spill[offset].slot[0]; in write_ppuint_mb()
152 srr0 = regs_spill[offset].slot[0]; in restore_srr0()
165 event_mask = regs_spill[offset].slot[0]; in restore_event_mask()
178 tag_mask = regs_spill[offset].slot[0]; in restore_tag_mask()
206 stopped_status = regs_spill[offset].slot[0]; in restore_complete()
207 stopped_code = regs_spill[offset].slot[1]; in restore_complete()
/linux-4.4.14/drivers/firewire/
Dinit_ohci1394_dma.c248 static inline void __init init_ohci1394_controller(int num, int slot, int func) in init_ohci1394_controller() argument
254 " at %02x:%02x.%x\n", num, slot, func); in init_ohci1394_controller()
256 ohci_base = read_pci_config(num, slot, func, PCI_BASE_ADDRESS_0+(0<<2)) in init_ohci1394_controller()
272 int num, slot, func; in init_ohci1394_dma_on_all_controllers() local
280 for (slot = 0; slot < 32; slot++) { in init_ohci1394_dma_on_all_controllers()
282 class = read_pci_config(num, slot, func, in init_ohci1394_dma_on_all_controllers()
290 init_ohci1394_controller(num, slot, func); in init_ohci1394_dma_on_all_controllers()
/linux-4.4.14/tools/power/cpupower/utils/helpers/
Dpci.c26 int slot, int func, int vendor, int dev) in pci_acc_init() argument
38 filter_nb_link.slot = slot; in pci_acc_init()
56 struct pci_dev *pci_slot_func_init(struct pci_access **pacc, int slot, in pci_slot_func_init() argument
59 return pci_acc_init(pacc, 0, 0, slot, func, -1, -1); in pci_slot_func_init()
/linux-4.4.14/drivers/scsi/mvsas/
Dmv_sas.c31 struct mvs_slot_info *slot; in mvs_find_tag() local
32 slot = task->lldd_task; in mvs_find_tag()
33 *tag = slot->slot_tag; in mvs_find_tag()
332 struct mvs_slot_info *slot = &mvi->slot_info[tag]; in mvs_task_prep_smp() local
363 buf_tmp = slot->buf; in mvs_task_prep_smp()
364 buf_tmp_dma = slot->buf_dma; in mvs_task_prep_smp()
387 slot->response = buf_tmp; in mvs_task_prep_smp()
395 slot->tx = mvi->tx_prod; in mvs_task_prep_smp()
449 struct mvs_slot_info *slot; in mvs_task_prep_ata() local
464 slot = &mvi->slot_info[tag]; in mvs_task_prep_ata()
[all …]
/linux-4.4.14/drivers/dma/
Dedma.c218 int slot[EDMA_MAX_SLOTS]; member
422 static void edma_set_chmap(struct edma_chan *echan, int slot) in edma_set_chmap() argument
428 slot = EDMA_CHAN_SLOT(slot); in edma_set_chmap()
429 edma_write_array(ecc, EDMA_DCHMAP, channel, (slot << 5)); in edma_set_chmap()
452 static void edma_write_slot(struct edma_cc *ecc, unsigned slot, in edma_write_slot() argument
455 slot = EDMA_CHAN_SLOT(slot); in edma_write_slot()
456 if (slot >= ecc->num_slots) in edma_write_slot()
458 memcpy_toio(ecc->base + PARM_OFFSET(slot), param, PARM_SIZE); in edma_write_slot()
461 static void edma_read_slot(struct edma_cc *ecc, unsigned slot, in edma_read_slot() argument
464 slot = EDMA_CHAN_SLOT(slot); in edma_read_slot()
[all …]
/linux-4.4.14/drivers/tc/
Dtc.c42 int i, slot, err; in tc_bus_add_devices() local
46 for (slot = 0; slot < tbus->num_tcslots; slot++) { in tc_bus_add_devices()
47 slotaddr = tbus->slot_base + slot * slotsize; in tc_bus_add_devices()
48 extslotaddr = tbus->ext_slot_base + slot * extslotsize; in tc_bus_add_devices()
86 pr_err("tc%x: unable to allocate tc_dev\n", slot); in tc_bus_add_devices()
89 dev_set_name(&tdev->dev, "tc%x", slot); in tc_bus_add_devices()
93 tdev->slot = slot; in tc_bus_add_devices()
/linux-4.4.14/drivers/media/usb/dvb-usb/
Dttusb2.c143 static int tt3650_ci_read_attribute_mem(struct dvb_ca_en50221 *ca, int slot, int address) in tt3650_ci_read_attribute_mem() argument
148 if (slot) in tt3650_ci_read_attribute_mem()
165 static int tt3650_ci_write_attribute_mem(struct dvb_ca_en50221 *ca, int slot, int address, u8 value) in tt3650_ci_write_attribute_mem() argument
169 ci_dbg("%d 0x%04x 0x%02x", slot, address, value); in tt3650_ci_write_attribute_mem()
171 if (slot) in tt3650_ci_write_attribute_mem()
181 static int tt3650_ci_read_cam_control(struct dvb_ca_en50221 *ca, int slot, u8 address) in tt3650_ci_read_cam_control() argument
186 if (slot) in tt3650_ci_read_cam_control()
201 static int tt3650_ci_write_cam_control(struct dvb_ca_en50221 *ca, int slot, u8 address, u8 value) in tt3650_ci_write_cam_control() argument
205 ci_dbg("%d 0x%02x 0x%02x", slot, address, value); in tt3650_ci_write_cam_control()
207 if (slot) in tt3650_ci_write_cam_control()
[all …]
Dpctv452e.c161 int slot, int address) in tt3650_ci_read_attribute_mem() argument
166 if (0 != slot) in tt3650_ci_read_attribute_mem()
184 int slot, int address, u8 value) in tt3650_ci_write_attribute_mem() argument
189 __func__, slot, address, value); in tt3650_ci_write_attribute_mem()
191 if (0 != slot) in tt3650_ci_write_attribute_mem()
202 int slot, in tt3650_ci_read_cam_control() argument
208 if (0 != slot) in tt3650_ci_read_cam_control()
225 int slot, in tt3650_ci_write_cam_control() argument
232 __func__, slot, address, value); in tt3650_ci_write_cam_control()
234 if (0 != slot) in tt3650_ci_write_cam_control()
[all …]
/linux-4.4.14/arch/mips/sgi-ip27/
Dip27-memory.c258 static unsigned long __init slot_getbasepfn(cnodeid_t cnode, int slot) in slot_getbasepfn() argument
262 return ((unsigned long)nasid << PFN_NASIDSHFT) | (slot << SLOT_PFNSHIFT); in slot_getbasepfn()
265 static unsigned long __init slot_psize_compute(cnodeid_t node, int slot) in slot_psize_compute() argument
284 size = (unsigned long)banks->membnk_bnksz[slot/4]; in slot_psize_compute()
288 if (slot % 4 == 0) { in slot_psize_compute()
357 int slot; in szmem() local
362 for (slot = 0; slot < MAX_MEM_SLOTS; slot++) { in szmem()
363 slot_psize = slot_psize_compute(node, slot); in szmem()
364 if (slot == 0) in szmem()
378 slot, node); in szmem()
[all …]
/linux-4.4.14/arch/mips/ath79/
Dpci.c30 .slot = 17,
34 .slot = 18,
38 .slot = 19,
46 .slot = 0,
55 .slot = 0,
61 .slot = 0,
67 int __init pcibios_map_irq(const struct pci_dev *dev, uint8_t slot, uint8_t pin) in pcibios_map_irq() argument
97 entry->slot == slot && in pcibios_map_irq()
/linux-4.4.14/drivers/misc/
Dhpilo.c258 static int ilo_ccb_setup(struct ilo_hwinfo *hw, struct ccb_data *data, int slot) in ilo_ccb_setup() argument
314 driver_ccb->channel = slot; in ilo_ccb_setup()
315 ilo_ccb->channel = slot; in ilo_ccb_setup()
317 driver_ccb->ccb_u5.db_base = hw->db_vaddr + (slot << L2_DB_SIZE); in ilo_ccb_setup()
323 static void ilo_ccb_open(struct ilo_hwinfo *hw, struct ccb_data *data, int slot) in ilo_ccb_open() argument
330 (hw->ram_vaddr + (slot * ILOHW_CCB_SZ)); in ilo_ccb_open()
422 int slot; in ilo_set_reset() local
428 for (slot = 0; slot < max_ccb; slot++) { in ilo_set_reset()
429 if (!hw->ccb_alloc[slot]) in ilo_set_reset()
431 set_channel_reset(&hw->ccb_alloc[slot]->driver_ccb); in ilo_set_reset()
[all …]
/linux-4.4.14/sound/soc/blackfin/
Dbf5xx-i2s.c189 unsigned int slot; in bf5xx_i2s_set_channel_map() local
197 slot = tx_slot[i]; in bf5xx_i2s_set_channel_map()
198 if ((slot < BFIN_TDM_DAI_MAX_SLOTS) && in bf5xx_i2s_set_channel_map()
199 (!(tx_mapped & (1 << slot)))) { in bf5xx_i2s_set_channel_map()
200 bf5xx_i2s->tx_dma_data.map[i] = slot; in bf5xx_i2s_set_channel_map()
201 tx_mapped |= 1 << slot; in bf5xx_i2s_set_channel_map()
206 slot = rx_slot[i]; in bf5xx_i2s_set_channel_map()
207 if ((slot < BFIN_TDM_DAI_MAX_SLOTS) && in bf5xx_i2s_set_channel_map()
208 (!(rx_mapped & (1 << slot)))) { in bf5xx_i2s_set_channel_map()
209 bf5xx_i2s->rx_dma_data.map[i] = slot; in bf5xx_i2s_set_channel_map()
[all …]
/linux-4.4.14/arch/cris/arch-v32/mach-a3/
Darbiter.c133 int slot; in crisv32_arbiter_config() local
146 for (slot = 0; slot < NBR_OF_SLOTS; slot++) in crisv32_arbiter_config()
147 val[slot] = -1; in crisv32_arbiter_config()
198 for (slot = 0; slot < NBR_OF_SLOTS; slot++) { in crisv32_arbiter_config()
205 if (val[slot] < 0) { in crisv32_arbiter_config()
213 val[slot] = client; in crisv32_arbiter_config()
219 rw_l2_slots, slot, val[slot]); in crisv32_arbiter_config()
222 rw_intm_slots, slot, val[slot]); in crisv32_arbiter_config()
225 rw_ddr2_slots, slot, val[slot]); in crisv32_arbiter_config()
/linux-4.4.14/drivers/usb/isp1760/
Disp1760-hcd.c150 int slot; member
279 static void ptd_read(void __iomem *base, u32 ptd_offset, u32 slot, in ptd_read() argument
283 ISP_BANK(0) + ptd_offset + slot*sizeof(*ptd)); in ptd_read()
285 bank_reads8(base, ptd_offset + slot*sizeof(*ptd), ISP_BANK(0), in ptd_read()
289 static void ptd_write(void __iomem *base, u32 ptd_offset, u32 slot, in ptd_write() argument
292 mem_writes8(base, ptd_offset + slot*sizeof(*ptd) + sizeof(ptd->dw0), in ptd_write()
297 mem_writes8(base, ptd_offset + slot*sizeof(*ptd), &ptd->dw0, in ptd_write()
423 qh->slot = -1; in qh_alloc()
431 WARN_ON(qh->slot > -1); in qh_free()
720 static void start_bus_transfer(struct usb_hcd *hcd, u32 ptd_offset, int slot, in start_bus_transfer() argument
[all …]
/linux-4.4.14/drivers/net/ethernet/broadcom/
Dbgmac.c122 struct bgmac_slot_info *slot; in bgmac_dma_tx_add_buf() local
131 slot = &ring->slots[i]; in bgmac_dma_tx_add_buf()
133 dma_desc->addr_low = cpu_to_le32(lower_32_bits(slot->dma_addr)); in bgmac_dma_tx_add_buf()
134 dma_desc->addr_high = cpu_to_le32(upper_32_bits(slot->dma_addr)); in bgmac_dma_tx_add_buf()
146 struct bgmac_slot_info *slot = &ring->slots[index]; in bgmac_dma_tx_add() local
170 slot->dma_addr = dma_map_single(dma_dev, skb->data, skb_headlen(skb), in bgmac_dma_tx_add()
172 if (unlikely(dma_mapping_error(dma_dev, slot->dma_addr))) in bgmac_dma_tx_add()
187 slot = &ring->slots[index]; in bgmac_dma_tx_add()
188 slot->dma_addr = skb_frag_dma_map(dma_dev, frag, 0, in bgmac_dma_tx_add()
190 if (unlikely(dma_mapping_error(dma_dev, slot->dma_addr))) in bgmac_dma_tx_add()
[all …]
/linux-4.4.14/drivers/net/ethernet/ibm/emac/
Dcore.c417 int slot, reg, mask; in emac_hash_mc() local
420 slot = EMAC_XAHT_CRC_TO_SLOT(dev, in emac_hash_mc()
422 reg = EMAC_XAHT_SLOT_TO_REG(dev, slot); in emac_hash_mc()
423 mask = EMAC_XAHT_SLOT_TO_MASK(dev, slot); in emac_hash_mc()
1126 static inline int emac_alloc_rx_skb(struct emac_instance *dev, int slot, in emac_alloc_rx_skb() argument
1133 dev->rx_skb[slot] = skb; in emac_alloc_rx_skb()
1134 dev->rx_desc[slot].data_len = 0; in emac_alloc_rx_skb()
1137 dev->rx_desc[slot].data_ptr = in emac_alloc_rx_skb()
1141 dev->rx_desc[slot].ctrl = MAL_RX_CTRL_EMPTY | in emac_alloc_rx_skb()
1142 (slot == (NUM_RX_BUFF - 1) ? MAL_RX_CTRL_WRAP : 0); in emac_alloc_rx_skb()
[all …]
/linux-4.4.14/drivers/isdn/i4l/
Disdn_ppp.c29 static int isdn_ppp_fill_rq(unsigned char *buf, int len, int proto, int slot);
30 static int isdn_ppp_closewait(int slot);
85 isdn_ppp_frame_log(char *info, char *data, int len, int maxlen, int unit, int slot) in isdn_ppp_frame_log() argument
98 printk(KERN_DEBUG "[%d/%d].%s[%d]: %s\n", unit, slot, info, i, buf); in isdn_ppp_frame_log()
243 isdn_ppp_closewait(int slot) in isdn_ppp_closewait() argument
247 if (slot < 0 || slot >= ISDN_MAX_CHANNELS) { in isdn_ppp_closewait()
249 __func__, slot); in isdn_ppp_closewait()
252 is = ippp_table[slot]; in isdn_ppp_closewait()
281 int slot; in isdn_ppp_open() local
287 slot = isdn_ppp_get_slot(); in isdn_ppp_open()
[all …]
/linux-4.4.14/sound/atmel/
Dac97c.h66 #define AC97C_CH_MASK(slot) \ argument
67 (0x7 << (3 * (AC97_SLOT_##slot - 3)))
68 #define AC97C_CH_ASSIGN(slot, channel) \ argument
69 (AC97C_CHANNEL_##channel << (3 * (AC97_SLOT_##slot - 3)))
/linux-4.4.14/arch/sparc/kernel/
Dsun4d_irq.c37 static unsigned int sun4d_encode_irq(int board, int lvl, int slot) in sun4d_encode_irq() argument
39 return (board + 1) << 5 | (lvl << 2) | slot; in sun4d_encode_irq()
100 unsigned int sbino, slot; in sun4d_sbus_handler_irq() local
122 slot = (1 << sbil); in sun4d_sbus_handler_irq()
123 for (idx = 0; mask != 0; idx++, slot <<= 1) { in sun4d_sbus_handler_irq()
127 if (!(mask & slot)) in sun4d_sbus_handler_irq()
130 mask &= ~slot; in sun4d_sbus_handler_irq()
141 release_sbi(SBI2DEVID(sbino), slot); in sun4d_sbus_handler_irq()
332 int board, slot; in sun4d_build_device_irq() local
356 slot = regs->which_io; in sun4d_build_device_irq()
[all …]
/linux-4.4.14/drivers/dca/
Ddca-core.c189 int err, slot = -ENODEV; in dca_add_requester() local
214 slot = dca->ops->add_requester(dca, dev); in dca_add_requester()
215 if (slot >= 0) in dca_add_requester()
221 if (slot < 0) in dca_add_requester()
222 return slot; in dca_add_requester()
224 err = dca_sysfs_add_req(dca, dev, slot); in dca_add_requester()
244 int slot; in dca_remove_requester() local
256 slot = dca->ops->remove_requester(dca, dev); in dca_remove_requester()
259 if (slot < 0) in dca_remove_requester()
260 return slot; in dca_remove_requester()
[all …]
Ddca-sysfs.c36 int dca_sysfs_add_req(struct dca_provider *dca, struct device *dev, int slot) in dca_sysfs_add_req() argument
41 cd = device_create(dca_class, dca->cd, MKDEV(0, slot + 1), NULL, in dca_sysfs_add_req()
48 void dca_sysfs_remove_req(struct dca_provider *dca, int slot) in dca_sysfs_remove_req() argument
50 device_destroy(dca_class, MKDEV(0, slot + 1)); in dca_sysfs_remove_req()
/linux-4.4.14/drivers/gpu/drm/vmwgfx/
Dvmwgfx_binding.h113 uint32 slot; member
126 uint32 slot; member
141 uint32 slot; member
156 uint32 slot; member
193 u32 shader_slot, u32 slot);
/linux-4.4.14/drivers/vfio/pci/
Dvfio_pci.c384 static bool vfio_pci_dev_below_slot(struct pci_dev *pdev, struct pci_slot *slot) in vfio_pci_dev_below_slot() argument
387 if (pdev->bus == slot->bus) in vfio_pci_dev_below_slot()
388 return (pdev->slot == slot); in vfio_pci_dev_below_slot()
396 bool slot; member
404 if (!walk->slot || vfio_pci_dev_below_slot(pdev, walk->pdev->slot)) in vfio_pci_walk_wrapper()
413 bool slot) in vfio_pci_for_each_slot_or_bus() argument
416 .fn = fn, .data = data, .pdev = pdev, .slot = slot, .ret = 0, in vfio_pci_for_each_slot_or_bus()
617 bool slot = false; in vfio_pci_ioctl() local
631 if (!pci_probe_reset_slot(vdev->pdev->slot)) in vfio_pci_ioctl()
632 slot = true; in vfio_pci_ioctl()
[all …]
/linux-4.4.14/drivers/net/wireless/ath/ath9k/
Dhtc_drv_beacon.c138 int slot) in ath9k_htc_send_buffered() argument
148 vif = priv->beacon.bslot[slot]; in ath9k_htc_send_buffered()
192 int slot) in ath9k_htc_send_beacon() argument
209 vif = priv->beacon.bslot[slot]; in ath9k_htc_send_beacon()
271 int slot; in ath9k_htc_choose_bslot() local
277 slot = ((tsftu % intval) * ATH9K_HTC_MAX_BCN_VIF) / intval; in ath9k_htc_choose_bslot()
278 slot = ATH9K_HTC_MAX_BCN_VIF - slot - 1; in ath9k_htc_choose_bslot()
282 slot, tsf, tsftu, intval); in ath9k_htc_choose_bslot()
284 return slot; in ath9k_htc_choose_bslot()
291 int slot; in ath9k_htc_swba() local
[all …]
Dbeacon.c198 int slot; in ath9k_beacon_assign_slot() local
203 for (slot = 0; slot < ATH_BCBUF; slot++) { in ath9k_beacon_assign_slot()
204 if (sc->beacon.bslot[slot] == NULL) { in ath9k_beacon_assign_slot()
205 avp->av_bslot = slot; in ath9k_beacon_assign_slot()
255 int slot; in ath9k_beacon_choose_slot() local
268 slot = (tsftu % (intval * ATH_BCBUF)) / intval; in ath9k_beacon_choose_slot()
271 slot, tsf, tsftu / ATH_BCBUF); in ath9k_beacon_choose_slot()
273 return slot; in ath9k_beacon_choose_slot()
327 int slot; in ath9k_beacon_tasklet() local
372 slot = ath9k_beacon_choose_slot(sc); in ath9k_beacon_tasklet()
[all …]
/linux-4.4.14/drivers/media/pci/netup_unidvb/
Dnetup_unidvb_ci.c62 int slot) in netup_unidvb_ci_slot_ts_ctl() argument
70 if (slot != 0) in netup_unidvb_ci_slot_ts_ctl()
80 int slot) in netup_unidvb_ci_slot_shutdown() argument
90 int slot) in netup_unidvb_ci_slot_reset() argument
124 int slot, int open) in netup_unidvb_poll_ci_slot_status() argument
146 int slot, int addr) in netup_unidvb_ci_read_attribute_mem() argument
158 int slot, int addr, u8 data) in netup_unidvb_ci_write_attribute_mem() argument
170 int slot, u8 addr) in netup_unidvb_ci_read_cam_ctl() argument
182 int slot, u8 addr, u8 data) in netup_unidvb_ci_write_cam_ctl() argument
/linux-4.4.14/drivers/eisa/
Deisa-bus.c50 x = (root->bus_nr << 8) | edev->slot; in is_forced_dev()
190 int slot) in eisa_init_device() argument
196 sig_addr = SLOT_ADDRESS(root, slot) + EISA_VENDOR_ID_OFFSET; in eisa_init_device()
203 edev->slot = slot; in eisa_init_device()
204 edev->state = inb(SLOT_ADDRESS(root, slot) + EISA_CONFIG_OFFSET) in eisa_init_device()
206 edev->base_addr = SLOT_ADDRESS(root, slot); in eisa_init_device()
213 dev_set_name(&edev->dev, "%02X:%02X", root->bus_nr, slot); in eisa_init_device()
263 int slot) in eisa_request_resources() argument
274 if (!slot && i > 0) { in eisa_request_resources()
279 if (slot) { in eisa_request_resources()
[all …]
/linux-4.4.14/drivers/gpu/drm/qxl/
Dqxl_kms.c77 struct qxl_memslot *slot) in setup_hw_slot() argument
79 qdev->ram_header->mem_slot.mem_start = slot->start_phys_addr; in setup_hw_slot()
80 qdev->ram_header->mem_slot.mem_end = slot->end_phys_addr; in setup_hw_slot()
88 struct qxl_memslot *slot; in setup_slot() local
92 slot = &qdev->mem_slots[slot_index]; in setup_slot()
93 slot->start_phys_addr = start_phys_addr; in setup_slot()
94 slot->end_phys_addr = end_phys_addr; in setup_slot()
96 setup_hw_slot(qdev, slot_index, slot); in setup_slot()
98 slot->generation = qdev->rom->slot_generation; in setup_slot()
100 high_bits |= slot->generation; in setup_slot()
[all …]
/linux-4.4.14/arch/mips/alchemy/devboards/
Ddb1550.c409 static int db1550_map_pci_irq(const struct pci_dev *d, u8 slot, u8 pin) in db1550_map_pci_irq() argument
411 if ((slot < 11) || (slot > 13) || pin == 0) in db1550_map_pci_irq()
413 if (slot == 11) in db1550_map_pci_irq()
415 if (slot == 12) { in db1550_map_pci_irq()
423 if (slot == 13) { in db1550_map_pci_irq()
434 static int pb1550_map_pci_irq(const struct pci_dev *d, u8 slot, u8 pin) in pb1550_map_pci_irq() argument
436 if ((slot < 12) || (slot > 13) || pin == 0) in pb1550_map_pci_irq()
438 if (slot == 12) { in pb1550_map_pci_irq()
446 if (slot == 13) { in pb1550_map_pci_irq()
/linux-4.4.14/drivers/ipack/carriers/
Dtpci200.c64 if (dev->slot >= TPCI200_NB_SLOT) { in check_slot()
67 dev->bus->bus_nr, dev->slot, TPCI200_NB_SLOT-1); in check_slot()
182 if (tpci200->slots[dev->slot].irq == NULL) { in tpci200_free_irq()
187 tpci200_disable_irq(tpci200, dev->slot); in tpci200_free_irq()
188 slot_irq = tpci200->slots[dev->slot].irq; in tpci200_free_irq()
190 RCU_INIT_POINTER(tpci200->slots[dev->slot].irq, NULL); in tpci200_free_irq()
211 if (tpci200->slots[dev->slot].irq != NULL) { in tpci200_request_irq()
215 dev->slot); in tpci200_request_irq()
224 dev->bus->bus_nr, dev->slot); in tpci200_request_irq()
239 rcu_assign_pointer(tpci200->slots[dev->slot].irq, slot_irq); in tpci200_request_irq()
[all …]
/linux-4.4.14/drivers/edac/
Di7300_edac.c71 #define to_csrow(slot, ch, branch) \ argument
72 (to_channel(ch, branch) | ((slot) << 2))
588 int slot, int ch, int branch, in decode_mtr() argument
596 mtr = pvt->mtr[slot][branch]; in decode_mtr()
600 slot, channel, ans ? "" : "NOT "); in decode_mtr()
690 int channel, slot; in print_dimm_size() local
714 for (slot = 0; slot < MAX_SLOTS; slot++) { in print_dimm_size()
715 n = snprintf(p, space, "csrow/SLOT %d ", slot); in print_dimm_size()
720 dinfo = &pvt->dimm_info[slot][channel]; in print_dimm_size()
753 int ch, branch, slot, channel, max_channel, max_branch; in i7300_init_csrows() local
[all …]
/linux-4.4.14/arch/x86/kernel/cpu/
Dintel_cacheinfo.c329 static int amd_get_l3_disable_slot(struct amd_northbridge *nb, unsigned slot) in amd_get_l3_disable_slot() argument
333 pci_read_config_dword(nb->misc, 0x1BC + slot * 4, &reg); in amd_get_l3_disable_slot()
343 unsigned int slot) in show_cache_disable() argument
348 index = amd_get_l3_disable_slot(nb, slot); in show_cache_disable()
355 #define SHOW_CACHE_DISABLE(slot) \ argument
357 cache_disable_##slot##_show(struct device *dev, \
361 return show_cache_disable(this_leaf, buf, slot); \
367 unsigned slot, unsigned long idx) in amd_l3_disable_index() argument
382 pci_write_config_dword(nb->misc, 0x1BC + slot * 4, reg); in amd_l3_disable_index()
392 pci_write_config_dword(nb->misc, 0x1BC + slot * 4, reg); in amd_l3_disable_index()
[all …]
/linux-4.4.14/drivers/staging/unisys/visorbus/
Dvisorbus_main.c260 int slot; member
261 ssize_t (*show)(struct visor_device *, int slot, char *buf);
262 ssize_t (*store)(struct visor_device *, int slot, const char *buf,
266 static ssize_t DEVMAJORMINOR_ATTR(struct visor_device *dev, int slot, char *buf) in DEVMAJORMINOR_ATTR() argument
270 if (slot < 0 || slot >= maxdevnodes) in DEVMAJORMINOR_ATTR()
273 dev->devnodes[slot].major, dev->devnodes[slot].minor); in DEVMAJORMINOR_ATTR()
286 devmajorminor_attr->slot, buf); in devmajorminor_attr_show()
301 devmajorminor_attr->slot, in devmajorminor_attr_store()
314 int x = -1, rc = 0, slot = -1; in devmajorminor_create_file() local
317 for (slot = 0; slot < maxdevnodes; slot++) in devmajorminor_create_file()
[all …]
/linux-4.4.14/virt/kvm/
Dkvm_main.c824 struct kvm_memory_slot *slot; in __kvm_set_memory_region() local
835 as_id = mem->slot >> 16; in __kvm_set_memory_region()
836 id = (u16)mem->slot; in __kvm_set_memory_region()
855 slot = id_to_memslot(__kvm_memslots(kvm, as_id), id); in __kvm_set_memory_region()
862 new = old = *slot; in __kvm_set_memory_region()
899 kvm_for_each_memslot(slot, __kvm_memslots(kvm, as_id)) { in __kvm_set_memory_region()
900 if ((slot->id >= KVM_USER_MEM_SLOTS) || in __kvm_set_memory_region()
901 (slot->id == id)) in __kvm_set_memory_region()
903 if (!((base_gfn + npages <= slot->base_gfn) || in __kvm_set_memory_region()
904 (base_gfn >= slot->base_gfn + slot->npages))) in __kvm_set_memory_region()
[all …]
/linux-4.4.14/drivers/pci/host/
Dpci-versatile.c41 int slot; in versatile_pci_slot_ignore() local
43 while ((retval = get_option(&str, &slot))) { in versatile_pci_slot_ignore()
44 if ((slot < 0) || (slot > 31)) in versatile_pci_slot_ignore()
45 pr_err("Illegal slot value: %d\n", slot); in versatile_pci_slot_ignore()
47 pci_slot_ignore |= (1 << slot); in versatile_pci_slot_ignore()
/linux-4.4.14/fs/jfs/
Djfs_dtree.c256 struct dir_table_slot *slot; in find_index() local
277 slot = &jfs_ip->i_dirtable[index - 2]; in find_index()
297 slot = in find_index()
301 return slot; in find_index()
334 static u32 add_index(tid_t tid, struct inode *ip, s64 bn, int slot) in add_index() argument
371 dirtab_slot->slot = slot; in add_index()
476 dirtab_slot->slot = slot; in add_index()
508 dirtab_slot->slot = dirtab_slot->addr1 = 0; in free_index()
525 int slot, struct metapage ** mp, s64 *lblock) in modify_index() argument
535 dirtab_slot->slot = slot; in modify_index()
[all …]
/linux-4.4.14/arch/m68k/coldfire/
Dclk.c44 __raw_writeb(clk->slot, MCFPM_PPMCR0); in __clk_enable0()
49 __raw_writeb(clk->slot, MCFPM_PPMSR0); in __clk_disable0()
60 __raw_writeb(clk->slot, MCFPM_PPMCR1); in __clk_enable1()
65 __raw_writeb(clk->slot, MCFPM_PPMSR1); in __clk_disable1()

12345