/linux/drivers/pci/hotplug/ |
H A D | cpci_hotplug_pci.c | 33 u8 cpci_get_attention_status(struct slot *slot) in cpci_get_attention_status() argument 38 hs_cap = pci_bus_find_capability(slot->bus, in cpci_get_attention_status() 39 slot->devfn, in cpci_get_attention_status() 44 if (pci_bus_read_config_word(slot->bus, in cpci_get_attention_status() 45 slot->devfn, in cpci_get_attention_status() 53 int cpci_set_attention_status(struct slot *slot, int status) in cpci_set_attention_status() argument 58 hs_cap = pci_bus_find_capability(slot->bus, in cpci_set_attention_status() 59 slot in cpci_set_attention_status() 80 cpci_get_hs_csr(struct slot * slot) cpci_get_hs_csr() argument 98 cpci_check_and_clear_ins(struct slot * slot) cpci_check_and_clear_ins() argument 127 cpci_check_ext(struct slot * slot) cpci_check_ext() argument 148 cpci_clear_ext(struct slot * slot) cpci_clear_ext() argument 174 cpci_led_on(struct slot * slot) cpci_led_on() argument 202 cpci_led_off(struct slot * slot) cpci_led_off() argument 235 cpci_configure_slot(struct slot * slot) cpci_configure_slot() argument 286 cpci_unconfigure_slot(struct slot * slot) cpci_unconfigure_slot() argument [all...] |
H A D | cpci_hotplug_core.c | 52 static int enable_slot(struct hotplug_slot *slot); 53 static int disable_slot(struct hotplug_slot *slot); 54 static int set_attention_status(struct hotplug_slot *slot, u8 value); 55 static int get_power_status(struct hotplug_slot *slot, u8 *value); 56 static int get_attention_status(struct hotplug_slot *slot, u8 *value); 57 static int get_adapter_status(struct hotplug_slot *slot, u8 *value); 58 static int get_latch_status(struct hotplug_slot *slot, u8 *value); 73 struct slot *slot = to_slot(hotplug_slot); in enable_slot() local 75 dbg("%s - physical_slot = %s", __func__, slot_name(slot)); in enable_slot() 83 struct slot *slot = to_slot(hotplug_slot); disable_slot() local 121 cpci_get_power_status(struct slot * slot) cpci_get_power_status() argument 129 struct slot *slot = to_slot(hotplug_slot); get_power_status() local 138 struct slot *slot = to_slot(hotplug_slot); get_attention_status() local 153 struct slot *slot = to_slot(hotplug_slot); get_adapter_status() local 162 struct slot *slot = to_slot(hotplug_slot); get_latch_status() local 168 release_slot(struct slot * slot) release_slot() argument 179 struct slot *slot; cpci_hp_register_bus() local 231 struct slot *slot; cpci_hp_unregister_bus() local 284 struct slot *slot; init_slots() local 313 struct slot *slot; check_slots() local 536 struct slot *slot; cleanup_slots() local [all...] |
H A D | shpchp_core.c | 42 static int set_attention_status(struct hotplug_slot *slot, u8 value); 43 static int enable_slot(struct hotplug_slot *slot); 44 static int disable_slot(struct hotplug_slot *slot); 45 static int get_power_status(struct hotplug_slot *slot, u8 *value); 46 static int get_attention_status(struct hotplug_slot *slot, u8 *value); 47 static int get_latch_status(struct hotplug_slot *slot, u8 *value); 48 static int get_adapter_status(struct hotplug_slot *slot, u8 *value); 62 struct slot *slot; in init_slots() local 69 slot in init_slots() 127 struct slot *slot, *next; cleanup_slots() local 143 struct slot *slot = get_slot(hotplug_slot); set_attention_status() local 156 struct slot *slot = get_slot(hotplug_slot); enable_slot() local 166 struct slot *slot = get_slot(hotplug_slot); disable_slot() local 176 struct slot *slot = get_slot(hotplug_slot); get_power_status() local 191 struct slot *slot = get_slot(hotplug_slot); get_attention_status() local 206 struct slot *slot = get_slot(hotplug_slot); get_latch_status() local 221 struct slot *slot = get_slot(hotplug_slot); get_adapter_status() local [all...] |
H A D | rpaphp_slot.c | 22 /* free up the memory used by a slot */ 23 void dealloc_slot_struct(struct slot *slot) in dealloc_slot_struct() argument 25 of_node_put(slot->dn); in dealloc_slot_struct() 26 kfree(slot->name); in dealloc_slot_struct() 27 kfree(slot); in dealloc_slot_struct() 30 struct slot *alloc_slot_struct(struct device_node *dn, in alloc_slot_struct() 33 struct slot *slot; in alloc_slot_struct() local 35 slot in alloc_slot_struct() 54 is_registered(struct slot * slot) is_registered() argument 65 rpaphp_deregister_slot(struct slot * slot) rpaphp_deregister_slot() argument 82 rpaphp_register_slot(struct slot * slot) rpaphp_register_slot() argument [all...] |
H A D | pci_hotplug_core.c | 41 static int get_##name(struct hotplug_slot *slot, type *value) \ 43 const struct hotplug_slot_ops *ops = slot->ops; \ 46 retval = ops->get_##name(slot, value); \ 70 struct hotplug_slot *slot = pci_slot->hotplug; in power_write_file() local 81 if (slot->ops->disable_slot) in power_write_file() 82 retval = slot->ops->disable_slot(slot); in power_write_file() 86 if (slot->ops->enable_slot) in power_write_file() 87 retval = slot->ops->enable_slot(slot); in power_write_file() 121 struct hotplug_slot *slot = pci_slot->hotplug; attention_write_file() local 182 struct hotplug_slot *slot = pci_slot->hotplug; test_write_file() local 204 has_power_file(struct hotplug_slot * slot) has_power_file() argument 213 has_attention_file(struct hotplug_slot * slot) has_attention_file() argument 221 has_latch_file(struct hotplug_slot * slot) has_latch_file() argument 228 has_adapter_file(struct hotplug_slot * slot) has_adapter_file() argument 235 has_test_file(struct hotplug_slot * slot) has_test_file() argument 242 fs_add_slot(struct hotplug_slot * slot,struct pci_slot * pci_slot) fs_add_slot() argument 314 fs_remove_slot(struct hotplug_slot * slot,struct pci_slot * pci_slot) fs_remove_slot() argument 351 __pci_hp_register(struct hotplug_slot * slot,struct pci_bus * bus,int devnr,const char * name,struct module * owner,const char * mod_name) __pci_hp_register() argument 385 __pci_hp_initialize(struct hotplug_slot * slot,struct pci_bus * bus,int devnr,const char * name,struct module * owner,const char * mod_name) __pci_hp_initialize() argument 424 pci_hp_add(struct hotplug_slot * slot) pci_hp_add() argument 450 pci_hp_deregister(struct hotplug_slot * slot) pci_hp_deregister() argument 463 pci_hp_del(struct hotplug_slot * slot) pci_hp_del() argument 481 pci_hp_destroy(struct hotplug_slot * slot) pci_hp_destroy() argument [all...] |
H A D | acpiphp_glue.c | 153 struct acpiphp_slot *slot, *next; in free_bridge() local 160 list_for_each_entry_safe(slot, next, &bridge->slots, node) { in free_bridge() 161 list_for_each_entry_safe(func, tmp, &slot->funcs, sibling) in free_bridge() 164 kfree(slot); in free_bridge() 198 bus = context->func.slot->bus; in acpiphp_post_dock_fixup() 203 * secondary bridge on slot in acpiphp_post_dock_fixup() 232 struct acpiphp_slot *slot; in acpiphp_add_context() local 277 /* search for objects that share the same slot */ in acpiphp_add_context() 278 list_for_each_entry(slot, &bridge->slots, node) in acpiphp_add_context() 279 if (slot in acpiphp_add_context() 341 struct acpiphp_slot *slot; cleanup_bridge() local 394 acpiphp_set_acpi_region(struct acpiphp_slot * slot) acpiphp_set_acpi_region() argument 406 check_hotplug_bridge(struct acpiphp_slot * slot,struct pci_dev * dev) check_hotplug_bridge() argument 430 acpiphp_rescan_slot(struct acpiphp_slot * slot) acpiphp_rescan_slot() argument 482 enable_slot(struct acpiphp_slot * slot,bool bridge) enable_slot() argument 553 disable_slot(struct acpiphp_slot * slot) disable_slot() argument 575 slot_no_hotplug(struct acpiphp_slot * slot) slot_no_hotplug() argument 599 get_slot_status(struct acpiphp_slot * slot) get_slot_status() argument 699 struct acpiphp_slot *slot; acpiphp_check_bridge() local 787 struct acpiphp_slot *slot = func->slot; hotplug_event() local 983 acpiphp_enable_slot(struct acpiphp_slot * slot) acpiphp_enable_slot() argument 1004 acpiphp_disable_and_eject_slot(struct acpiphp_slot * slot) acpiphp_disable_and_eject_slot() argument 1027 acpiphp_disable_slot(struct acpiphp_slot * slot) acpiphp_disable_slot() argument 1047 acpiphp_get_power_status(struct acpiphp_slot * slot) acpiphp_get_power_status() argument 1056 acpiphp_get_latch_status(struct acpiphp_slot * slot) acpiphp_get_latch_status() argument 1065 acpiphp_get_adapter_status(struct acpiphp_slot * slot) acpiphp_get_adapter_status() argument [all...] |
H A D | rpaphp_core.c | 57 struct slot *slot = to_slot(hotplug_slot); in set_attention_status() local 69 rc = rtas_set_indicator(DR_INDICATOR, slot->index, value); in set_attention_status() 71 slot->attention_status = value; in set_attention_status() 77 * get_power_status - get power status of a slot 78 * @hotplug_slot: slot to get status 84 struct slot *slot = to_slot(hotplug_slot); in get_power_status() local 86 retval = rtas_get_power_level(slot->power_domain, &level); in get_power_status() 94 * @hotplug_slot: slot t 99 struct slot *slot = to_slot(hotplug_slot); get_attention_status() local 106 struct slot *slot = to_slot(hotplug_slot); get_adapter_status() local 123 get_max_bus_speed(struct slot * slot) get_max_bus_speed() argument 336 struct slot *slot; rpaphp_drc_info_add_slot() local 377 struct slot *slot; rpaphp_drc_add_slot() local 452 struct slot *slot, *next; cleanup_slots() local 486 struct slot *slot = to_slot(hotplug_slot); enable_slot() local 518 struct slot *slot = to_slot(hotplug_slot); disable_slot() local [all...] |
H A D | cpci_hotplug.h | 30 struct slot { struct 58 static inline const char *slot_name(struct slot *slot) in slot_name() argument 60 return hotplug_slot_name(&slot->hotplug_slot); in slot_name() 63 static inline struct slot *to_slot(struct hotplug_slot *hotplug_slot) in to_slot() 65 return container_of(hotplug_slot, struct slot, hotplug_slot); in to_slot() 82 u8 cpci_get_attention_status(struct slot *slot); 83 u16 cpci_get_hs_csr(struct slot *slot); 38 hotplug_slotslot global() argument 39 slot_listslot global() argument [all...] |
H A D | acpiphp.h | 33 * struct slot - slot information for each *physical* slot 35 struct slot { struct 38 unsigned int sun; /* ACPI _SUN (Slot User Number) value */ 41 static inline const char *slot_name(struct slot *slot) in slot_name() argument 43 return hotplug_slot_name(&slot->hotplug_slot); in slot_name() 46 static inline struct slot *to_slot(struct hotplug_slot *hotplug_slot) in to_slot() 48 return container_of(hotplug_slot, struct slot, hotplug_slo in to_slot() 36 hotplug_slotslot global() argument 37 acpi_slotslot global() argument 85 struct slot *slot; global() member 100 struct acpiphp_slot *slot; global() member [all...] |
/linux/drivers/mmc/host/ |
H A D | cb710-mmc.c | 30 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 103 cb710_mmc_enable_4bit_data(struct cb710_slot * slot,int enable) cb710_mmc_enable_4bit_data() argument 113 cb710_check_event(struct cb710_slot * slot,u8 what) cb710_check_event() argument 146 cb710_wait_for_event(struct cb710_slot * slot,u8 what) cb710_wait_for_event() argument 179 cb710_wait_while_busy(struct cb710_slot * slot,uint8_t mask) cb710_wait_while_busy() argument 211 cb710_mmc_set_transfer_size(struct cb710_slot * slot,size_t count,size_t blocksize) cb710_mmc_set_transfer_size() argument 222 cb710_mmc_fifo_hack(struct cb710_slot * slot) cb710_mmc_fifo_hack() argument 245 cb710_mmc_receive_pio(struct cb710_slot * slot,struct sg_mapping_iter * miter,size_t dw_count) cb710_mmc_receive_pio() argument 266 cb710_mmc_receive(struct cb710_slot * slot,struct mmc_data * data) cb710_mmc_receive() argument 310 cb710_mmc_send(struct cb710_slot * slot,struct mmc_data * data) cb710_mmc_send() argument 396 cb710_receive_response(struct cb710_slot * slot,struct mmc_command * cmd) cb710_receive_response() argument 425 cb710_mmc_transfer_data(struct cb710_slot * slot,struct mmc_data * data) cb710_mmc_transfer_data() argument 446 struct cb710_slot *slot = cb710_mmc_to_slot(mmc); cb710_mmc_command() local 486 struct cb710_slot *slot = cb710_mmc_to_slot(mmc); cb710_mmc_request() local 500 cb710_mmc_powerup(struct cb710_slot * slot) cb710_mmc_powerup() argument 555 cb710_mmc_powerdown(struct cb710_slot * slot) cb710_mmc_powerdown() argument 563 struct cb710_slot *slot = cb710_mmc_to_slot(mmc); cb710_mmc_set_ios() local 604 struct cb710_slot *slot = cb710_mmc_to_slot(mmc); cb710_mmc_get_ro() local 612 struct cb710_slot *slot = cb710_mmc_to_slot(mmc); cb710_mmc_get_cd() local 618 cb710_mmc_irq_handler(struct cb710_slot * slot) cb710_mmc_irq_handler() argument 671 struct cb710_slot *slot = cb710_pdev_to_slot(pdev); cb710_mmc_suspend() local 679 struct cb710_slot *slot = cb710_pdev_to_slot(pdev); cb710_mmc_resume() local 689 struct cb710_slot *slot = cb710_pdev_to_slot(pdev); cb710_mmc_init() local 750 struct cb710_slot *slot = cb710_pdev_to_slot(pdev); cb710_mmc_exit() local [all...] |
H A D | sdhci-pci-core.c | 33 #include <linux/mmc/slot-gpio.h> 56 struct sdhci_pci_slot *slot = chip->slots[i]; in sdhci_pci_init_wakeup() local 58 if (slot) { in sdhci_pci_init_wakeup() 59 pm_flags |= slot->host->mmc->pm_flags; in sdhci_pci_init_wakeup() 60 if (slot->host->mmc->caps & MMC_CAP_CD_WAKE) in sdhci_pci_init_wakeup() 80 struct sdhci_pci_slot *slot = chip->slots[i]; in sdhci_pci_suspend_host() local 83 if (!slot) in sdhci_pci_suspend_host() 86 host = slot->host; in sdhci_pci_suspend_host() 109 struct sdhci_pci_slot *slot; in sdhci_pci_resume_host() local 113 slot = chip->slots[i]; in sdhci_pci_resume_host() [all …]
|
/linux/drivers/pci/ |
H A D | slot.c | 20 struct pci_slot *slot = to_pci_slot(kobj); in pci_slot_attr_show() local 22 return attribute->show ? attribute->show(slot, buf) : -EIO; in pci_slot_attr_show() 28 struct pci_slot *slot = to_pci_slot(kobj); in pci_slot_attr_store() local 30 return attribute->store ? attribute->store(slot, buf, len) : -EIO; in pci_slot_attr_store() 38 static ssize_t address_read_file(struct pci_slot *slot, char *buf) in address_read_file() argument 40 if (slot->number == 0xff) in address_read_file() 42 pci_domain_nr(slot->bus), in address_read_file() 43 slot->bus->number); in address_read_file() 46 pci_domain_nr(slot->bus), in address_read_file() 47 slot in address_read_file() 56 max_speed_read_file(struct pci_slot * slot,char * buf) max_speed_read_file() argument 61 cur_speed_read_file(struct pci_slot * slot,char * buf) cur_speed_read_file() argument 69 struct pci_slot *slot = to_pci_slot(kobj); pci_slot_release() local 145 rename_slot(struct pci_slot * slot,const char * name) rename_slot() argument 165 struct pci_slot *slot; pci_dev_assign_slot() local 176 struct pci_slot *slot; get_slot() local 231 struct pci_slot *slot; pci_create_slot() local 316 pci_destroy_slot(struct pci_slot * slot) pci_destroy_slot() argument [all...] |
/linux/include/linux/ |
H A D | folio_queue.h | 104 * @slot: The slot number of the folio to query 106 * Determine if the first mark is set for the folio in the specified slot in a 109 static inline bool folioq_is_marked(const struct folio_queue *folioq, unsigned int slot) in folioq_is_marked() argument 111 return test_bit(slot, &folioq->marks); in folioq_is_marked() 117 * @slot: The slot number of the folio to modify 119 * Set the first mark for the folio in the specified slot in a folio queue 122 static inline void folioq_mark(struct folio_queue *folioq, unsigned int slot) in folioq_mark() argument 124 set_bit(slot, in folioq_mark() 135 folioq_unmark(struct folio_queue * folioq,unsigned int slot) folioq_unmark() argument 148 folioq_is_marked2(const struct folio_queue * folioq,unsigned int slot) folioq_is_marked2() argument 161 folioq_mark2(struct folio_queue * folioq,unsigned int slot) folioq_mark2() argument 174 folioq_unmark2(struct folio_queue * folioq,unsigned int slot) folioq_unmark2() argument 194 unsigned int slot = folioq->vec.nr++; folioq_append() local 216 unsigned int slot = folioq->vec.nr++; folioq_append_mark() local 234 folioq_folio(const struct folio_queue * folioq,unsigned int slot) folioq_folio() argument 248 folioq_folio_order(const struct folio_queue * folioq,unsigned int slot) folioq_folio_order() argument 262 folioq_folio_size(const struct folio_queue * folioq,unsigned int slot) folioq_folio_size() argument 275 folioq_clear(struct folio_queue * folioq,unsigned int slot) folioq_clear() argument [all...] |
H A D | pci_hotplug.h | 19 * @enable_slot: Called when the user wants to enable a specific pci slot 20 * @disable_slot: Called when the user wants to disable a specific pci slot 21 * @set_attention_status: Called to set the specific slot's attention LED to 24 * slot. 25 * @get_power_status: Called to get the current power status of a slot. 26 * @get_attention_status: Called to get the current attention status of a slot. 27 * @get_latch_status: Called to get the current latch status of a slot. 28 * @get_adapter_status: Called to get see if an adapter is present in the slot or not. 30 * slot for cases where a secondary bus reset can result in spurious 31 * hotplug events or where a slot ca 66 hotplug_slot_name(const struct hotplug_slot * slot) hotplug_slot_name() argument 84 pci_hp_register(slot,pbus,devnr,name) global() argument 86 pci_hp_initialize(slot,bus,nr,name) global() argument [all...] |
H A D | radix-tree.h | 37 * The bottom two bits of the slot determine how the remaining bits in the 38 * slot are interpreted: 45 * sibling entry, or an indicator that the entry in this slot has been moved 94 * @index: index of current slot 97 * @node: node that contains current slot 101 * described by a pointer to its first slot and a struct radix_tree_iter 165 * radix_tree_deref_slot - dereference a slot 166 * @slot: slot pointer, returned by radix_tree_lookup_slot 169 * locked across slot looku 177 radix_tree_deref_slot(void __rcu ** slot) radix_tree_deref_slot() argument 191 radix_tree_deref_slot_protected(void __rcu ** slot,spinlock_t * treelock) radix_tree_deref_slot_protected() argument 397 radix_tree_next_slot(void __rcu ** slot,struct radix_tree_iter * iter,unsigned flags) radix_tree_next_slot() argument 449 radix_tree_for_each_slot(slot,root,iter,start) global() argument 465 radix_tree_for_each_tagged(slot,root,iter,start,tag) global() argument [all...] |
/linux/drivers/crypto/marvell/octeontx2/ |
H A D | otx2_cptlf.c | 17 lf->slot, OTX2_CPT_LF_DONE_WAIT); in cptlf_do_set_done_time_wait() 19 otx2_cpt_write64(lf->lfs->reg_base, lf->lfs->blkaddr, lf->slot, in cptlf_do_set_done_time_wait() 28 lf->slot, OTX2_CPT_LF_DONE_WAIT); in cptlf_do_set_done_num_wait() 30 otx2_cpt_write64(lf->lfs->reg_base, lf->lfs->blkaddr, lf->slot, in cptlf_do_set_done_num_wait() 37 int slot; in cptlf_set_done_time_wait() local 39 for (slot = 0; slot < lfs->lfs_num; slot++) in cptlf_set_done_time_wait() 40 cptlf_do_set_done_time_wait(&lfs->lf[slot], time_wait); in cptlf_set_done_time_wait() 45 int slot; in cptlf_set_done_num_wait() local 95 int slot, ret = 0; cptlf_set_grp_and_pri() local 113 int slot, ret = 0; cptlf_set_ctx_ilen() local 167 int slot; cptlf_set_misc_intrs() local 184 int slot; cptlf_set_done_intrs() local 379 int slot, offs; otx2_cptlf_free_irqs_affinity() local 394 int slot, offs, ret; otx2_cptlf_set_irqs_affinity() local 427 int slot, ret; otx2_cptlf_init() local [all...] |
/linux/arch/alpha/kernel/ |
H A D | sys_noritake.c | 146 * 2 Interrupt Line A from slot 0 147 * 3 Interrupt Line B from slot 0 148 * 4 Interrupt Line A from slot 1 149 * 5 Interrupt line B from slot 1 150 * 6 Interrupt Line A from slot 2 151 * 7 Interrupt Line B from slot 2 152 * 8 Interrupt Line A from slot 3 153 * 9 Interrupt Line B from slot 3 154 *10 Interrupt Line A from slot 4 155 *11 Interrupt Line B from slot 196 noritake_map_irq(const struct pci_dev * dev,u8 slot,u8 pin) noritake_map_irq() argument 226 int slot, pin = *pinp; noritake_swizzle() local [all...] |
/linux/drivers/xen/xen-pciback/ |
H A D | vpci.c | 73 int err = 0, slot, func = PCI_FUNC(dev->devfn); in __xen_pcibk_add_pci_dev() local 103 for (slot = 0; slot < PCI_SLOT_MAX; slot++) { in __xen_pcibk_add_pci_dev() 104 if (list_empty(&vpci_dev->dev_list[slot])) in __xen_pcibk_add_pci_dev() 107 t = list_entry(list_first(&vpci_dev->dev_list[slot]), in __xen_pcibk_add_pci_dev() 113 dev_info(&dev->dev, "vpci: assign to virtual slot %d func %d\n", in __xen_pcibk_add_pci_dev() 114 slot, func); in __xen_pcibk_add_pci_dev() 116 &vpci_dev->dev_list[slot]); in __xen_pcibk_add_pci_dev() 122 /* Assign to a new slot o in __xen_pcibk_add_pci_dev() 153 int slot; __xen_pcibk_release_pci_dev() local 186 int slot; __xen_pcibk_init_devices() local 212 int slot; __xen_pcibk_release_devices() local 239 int found = 0, slot; __xen_pcibk_get_pcifront_dev() local [all...] |
/linux/drivers/pci/pwrctrl/ |
H A D | slot.c | 24 struct pci_pwrctrl_slot_data *slot = data; in devm_pci_pwrctrl_slot_power_off() local 26 regulator_bulk_disable(slot->num_supplies, slot->supplies); in devm_pci_pwrctrl_slot_power_off() 27 regulator_bulk_free(slot->num_supplies, slot->supplies); in devm_pci_pwrctrl_slot_power_off() 32 struct pci_pwrctrl_slot_data *slot; in pci_pwrctrl_slot_probe() local 37 slot = devm_kzalloc(dev, sizeof(*slot), GFP_KERNEL); in pci_pwrctrl_slot_probe() 38 if (!slot) in pci_pwrctrl_slot_probe() 42 &slot in pci_pwrctrl_slot_probe() [all...] |
/linux/fs/btrfs/ |
H A D | tree-checker.c | 51 * Append generic "corrupt leaf/node root=%llu block=%llu slot=%d: " to @fmt. 56 static void generic_err(const struct extent_buffer *eb, int slot, in generic_err() argument 70 "corrupt %s: root=%llu block=%llu slot=%d, %pV", in generic_err() 72 btrfs_header_owner(eb), btrfs_header_bytenr(eb), slot, &vaf); in generic_err() 82 static void file_extent_err(const struct extent_buffer *eb, int slot, in file_extent_err() argument 90 btrfs_item_key_to_cpu(eb, &key, slot); in file_extent_err() 98 "corrupt %s: root=%llu block=%llu slot=%d ino=%llu file_offset=%llu, %pV", in file_extent_err() 100 btrfs_header_owner(eb), btrfs_header_bytenr(eb), slot, in file_extent_err() 109 #define CHECK_FE_ALIGNED(leaf, slot, fi, name, alignment) \ argument 113 file_extent_err((leaf), (slot), \ 143 dir_item_err(const struct extent_buffer * eb,int slot,const char * fmt,...) dir_item_err() argument 176 check_prev_ino(struct extent_buffer * leaf,struct btrfs_key * key,int slot,struct btrfs_key * prev_key) check_prev_ino() argument 207 check_extent_data_item(struct extent_buffer * leaf,struct btrfs_key * key,int slot,struct btrfs_key * prev_key) check_extent_data_item() argument 365 check_csum_item(struct extent_buffer * leaf,struct btrfs_key * key,int slot,struct btrfs_key * prev_key) check_csum_item() argument 407 inode_item_err(eb,slot,fmt,...) global() argument 411 check_inode_key(struct extent_buffer * leaf,struct btrfs_key * key,int slot) check_inode_key() argument 463 check_root_key(struct extent_buffer * leaf,struct btrfs_key * key,int slot) check_root_key() argument 522 check_dir_item(struct extent_buffer * leaf,struct btrfs_key * key,struct btrfs_key * prev_key,int slot) check_dir_item() argument 658 block_group_err(const struct extent_buffer * eb,int slot,const char * fmt,...) block_group_err() argument 682 check_block_group_item(struct extent_buffer * leaf,struct btrfs_key * key,int slot) check_block_group_item() argument 778 int slot = -1; chunk_err() local 994 check_leaf_chunk_item(struct extent_buffer * leaf,struct btrfs_chunk * chunk,struct btrfs_key * key,int slot) check_leaf_chunk_item() argument 1028 dev_item_err(const struct extent_buffer * eb,int slot,const char * fmt,...) dev_item_err() argument 1051 check_dev_item(struct extent_buffer * leaf,struct btrfs_key * key,int slot) check_dev_item() argument 1098 check_inode_item(struct extent_buffer * leaf,struct btrfs_key * key,int slot) check_inode_item() argument 1187 check_root_item(struct extent_buffer * leaf,struct btrfs_key * key,int slot) check_root_item() argument 1275 extent_err(const struct extent_buffer * eb,int slot,const char * fmt,...) extent_err() argument 1319 check_extent_item(struct extent_buffer * leaf,struct btrfs_key * key,int slot,struct btrfs_key * prev_key) check_extent_item() argument 1632 check_simple_keyed_refs(struct extent_buffer * leaf,struct btrfs_key * key,int slot) check_simple_keyed_refs() argument 1673 check_extent_data_ref(struct extent_buffer * leaf,struct btrfs_key * key,int slot) check_extent_data_ref() argument 1733 inode_ref_err(eb,slot,fmt,args...) global() argument 1737 check_inode_ref(struct extent_buffer * leaf,struct btrfs_key * key,struct btrfs_key * prev_key,int slot) check_inode_ref() argument 1786 check_raid_stripe_extent(const struct extent_buffer * leaf,const struct btrfs_key * key,int slot) check_raid_stripe_extent() argument 1806 check_dev_extent_item(const struct extent_buffer * leaf,const struct btrfs_key * key,int slot,struct btrfs_key * prev_key) check_dev_extent_item() argument 1875 check_leaf_item(struct extent_buffer * leaf,struct btrfs_key * key,int slot,struct btrfs_key * prev_key) check_leaf_item() argument 1944 int slot; __btrfs_check_leaf() local 2104 int slot; __btrfs_check_node() local [all...] |
/linux/fs/nfs/ |
H A D | nfs4session.c | 37 * nfs4_shrink_slot_table - free retired slots from the slot table 49 struct nfs4_slot *slot = *p; in nfs4_shrink_slot_table() local 51 *p = slot->next; in nfs4_shrink_slot_table() 52 kfree(slot); in nfs4_shrink_slot_table() 59 * @tbl: controlling slot table 69 * nfs4_free_slot - free a slot and efficiently update slot table. 71 * freeing a slot is trivially done by clearing its respective bit 74 * so that the server would be able to size down the slot table if needed, 83 void nfs4_free_slot(struct nfs4_slot_table *tbl, struct nfs4_slot *slot) in nfs4_free_slot() argument 107 struct nfs4_slot *slot; nfs4_new_slot() local 123 struct nfs4_slot **p, *slot; nfs4_find_or_create_slot() local 143 nfs4_lock_slot(struct nfs4_slot_table * tbl,struct nfs4_slot * slot) nfs4_lock_slot() argument 159 nfs4_try_to_lock_slot(struct nfs4_slot_table * tbl,struct nfs4_slot * slot) nfs4_try_to_lock_slot() argument 183 struct nfs4_slot *slot; nfs4_slot_get_seqid() local 361 struct nfs4_slot *slot = pslot; nfs41_assign_slot() local 376 __nfs41_wake_and_assign_slot(struct nfs4_slot_table * tbl,struct nfs4_slot * slot) __nfs41_wake_and_assign_slot() argument 384 nfs41_wake_and_assign_slot(struct nfs4_slot_table * tbl,struct nfs4_slot * slot) nfs41_wake_and_assign_slot() argument 393 struct nfs4_slot *slot = nfs4_alloc_slot(tbl); nfs41_try_wake_next_slot_table_entry() local 511 nfs41_update_target_slotid(struct nfs4_slot_table * tbl,struct nfs4_slot * slot,struct nfs4_sequence_res * res) nfs41_update_target_slotid() argument [all...] |
/linux/net/sched/ |
H A D | sch_sfq.c | 98 sfq_index next; /* next slot in sfq RR chain */ 101 int allot; /* credit for this slot */ 115 u8 cur_depth; /* depth of longest slot */ 124 struct sfq_slot *tail; /* current slot in round */ 194 * x : slot number [0 .. SFQ_MAX_FLOWS - 1] 199 struct sfq_slot *slot = &q->slots[x]; in sfq_link() local 200 int qlen = slot->qlen; in sfq_link() 205 slot->dep.next = n; in sfq_link() 206 slot->dep.prev = p; in sfq_link() 249 /* remove one skb from tail of slot queu 250 slot_dequeue_tail(struct sfq_slot * slot) slot_dequeue_tail() argument 261 slot_dequeue_head(struct sfq_slot * slot) slot_dequeue_head() argument 271 slot_queue_init(struct sfq_slot * slot) slot_queue_init() argument 278 slot_queue_add(struct sfq_slot * slot,struct sk_buff * skb) slot_queue_add() argument 292 struct sfq_slot *slot; sfq_drop() local 347 struct sfq_slot *slot; sfq_enqueue() local 481 struct sfq_slot *slot; sfq_dequeue() local 536 struct sfq_slot *slot; sfq_rehash() local 913 const struct sfq_slot *slot = &q->slots[idx]; sfq_dump_class_stats() local [all...] |
/linux/arch/x86/kvm/mmu/ |
H A D | page_track.c | 42 void kvm_page_track_free_memslot(struct kvm_memory_slot *slot) in kvm_page_track_free_memslot() argument 44 vfree(slot->arch.gfn_write_track); in kvm_page_track_free_memslot() 45 slot->arch.gfn_write_track = NULL; in kvm_page_track_free_memslot() 48 static int __kvm_page_track_write_tracking_alloc(struct kvm_memory_slot *slot, in __kvm_page_track_write_tracking_alloc() argument 51 const size_t size = sizeof(*slot->arch.gfn_write_track); in __kvm_page_track_write_tracking_alloc() 53 if (!slot->arch.gfn_write_track) in __kvm_page_track_write_tracking_alloc() 54 slot->arch.gfn_write_track = __vcalloc(npages, size, in __kvm_page_track_write_tracking_alloc() 57 return slot->arch.gfn_write_track ? 0 : -ENOMEM; in __kvm_page_track_write_tracking_alloc() 61 struct kvm_memory_slot *slot, in kvm_page_track_create_memslot() argument 67 return __kvm_page_track_write_tracking_alloc(slot, npage in kvm_page_track_create_memslot() 70 kvm_page_track_write_tracking_alloc(struct kvm_memory_slot * slot) kvm_page_track_write_tracking_alloc() argument 75 update_gfn_write_track(struct kvm_memory_slot * slot,gfn_t gfn,short count) update_gfn_write_track() argument 90 __kvm_write_track_add_gfn(struct kvm * kvm,struct kvm_memory_slot * slot,gfn_t gfn) __kvm_write_track_add_gfn() argument 114 __kvm_write_track_remove_gfn(struct kvm * kvm,struct kvm_memory_slot * slot,gfn_t gfn) __kvm_write_track_remove_gfn() argument 137 kvm_gfn_is_write_tracked(struct kvm * kvm,const struct kvm_memory_slot * slot,gfn_t gfn) kvm_gfn_is_write_tracked() argument 172 struct kvm_memory_slot *slot; kvm_enable_external_write_tracking() local 296 kvm_page_track_delete_slot(struct kvm * kvm,struct kvm_memory_slot * slot) kvm_page_track_delete_slot() argument 324 struct kvm_memory_slot *slot; kvm_write_track_add_gfn() local 354 struct kvm_memory_slot *slot; kvm_write_track_remove_gfn() local [all...] |
/linux/drivers/media/pci/mantis/ |
H A D | mantis_ca.c | 28 static int mantis_ca_read_attr_mem(struct dvb_ca_en50221 *en50221, int slot, int addr) in mantis_ca_read_attr_mem() argument 33 dprintk(MANTIS_DEBUG, 1, "Slot(%d): Request Attribute Mem Read", slot); in mantis_ca_read_attr_mem() 35 if (slot != 0) in mantis_ca_read_attr_mem() 41 static int mantis_ca_write_attr_mem(struct dvb_ca_en50221 *en50221, int slot, int addr, u8 data) in mantis_ca_write_attr_mem() argument 46 dprintk(MANTIS_DEBUG, 1, "Slot(%d): Request Attribute Mem Write", slot); in mantis_ca_write_attr_mem() 48 if (slot != 0) in mantis_ca_write_attr_mem() 54 static int mantis_ca_read_cam_ctl(struct dvb_ca_en50221 *en50221, int slot, u8 addr) in mantis_ca_read_cam_ctl() argument 59 dprintk(MANTIS_DEBUG, 1, "Slot( in mantis_ca_read_cam_ctl() 67 mantis_ca_write_cam_ctl(struct dvb_ca_en50221 * en50221,int slot,u8 addr,u8 data) mantis_ca_write_cam_ctl() argument 80 mantis_ca_slot_reset(struct dvb_ca_en50221 * en50221,int slot) mantis_ca_slot_reset() argument 96 mantis_ca_slot_shutdown(struct dvb_ca_en50221 * en50221,int slot) mantis_ca_slot_shutdown() argument 106 mantis_ts_control(struct dvb_ca_en50221 * en50221,int slot) mantis_ts_control() argument 116 mantis_slot_status(struct dvb_ca_en50221 * en50221,int slot,int open) mantis_slot_status() argument [all...] |
/linux/drivers/media/dvb-core/ |
H A D | dvb_ca_en50221.c | 79 /* Information on a CA slot */ 84 /* mutex used for serializing access to one CI slot */ 108 /* timer used during various states of the slot */ 128 /* information on each slot */ 147 * Slot to start looking for data to read from in the next user-space 193 static int dvb_ca_en50221_read_data(struct dvb_ca_private *ca, int slot, 195 static int dvb_ca_en50221_write_data(struct dvb_ca_private *ca, int slot, 228 static int dvb_ca_en50221_check_camstatus(struct dvb_ca_private *ca, int slot) in dvb_ca_en50221_check_camstatus() argument 230 struct dvb_ca_slot *sl = &ca->slot_info[slot]; in dvb_ca_en50221_check_camstatus() 240 slot_status = ca->pub->poll_slot_status(ca->pub, slot, c in dvb_ca_en50221_check_camstatus() 278 dvb_ca_en50221_wait_if_status(struct dvb_ca_private * ca,int slot,u8 waitfor,int timeout_hz) dvb_ca_en50221_wait_if_status() argument 326 dvb_ca_en50221_link_init(struct dvb_ca_private * ca,int slot) dvb_ca_en50221_link_init() argument 402 dvb_ca_en50221_read_tuple(struct dvb_ca_private * ca,int slot,int * address,int * tuple_type,int * tuple_length,u8 * tuple) dvb_ca_en50221_read_tuple() argument 456 dvb_ca_en50221_parse_attributes(struct dvb_ca_private * ca,int slot) dvb_ca_en50221_parse_attributes() argument 601 dvb_ca_en50221_set_configoption(struct dvb_ca_private * ca,int slot) dvb_ca_en50221_set_configoption() argument 637 dvb_ca_en50221_read_data(struct dvb_ca_private * ca,int slot,u8 * ebuf,int ecount) dvb_ca_en50221_read_data() argument 792 dvb_ca_en50221_write_data(struct dvb_ca_private * ca,int slot,u8 * buf,int bytes_write,int size_write_flag) dvb_ca_en50221_write_data() argument 913 dvb_ca_en50221_slot_shutdown(struct dvb_ca_private * ca,int slot) dvb_ca_en50221_slot_shutdown() argument 939 dvb_ca_en50221_camchange_irq(struct dvb_ca_en50221 * pubca,int slot,int change_type) dvb_ca_en50221_camchange_irq() argument 968 dvb_ca_en50221_camready_irq(struct dvb_ca_en50221 * pubca,int slot) dvb_ca_en50221_camready_irq() argument 988 dvb_ca_en50221_frda_irq(struct dvb_ca_en50221 * pubca,int slot) dvb_ca_en50221_frda_irq() argument 1039 int slot; dvb_ca_en50221_thread_update_delay() local 1097 dvb_ca_en50221_poll_cam_gone(struct dvb_ca_private * ca,int slot) dvb_ca_en50221_poll_cam_gone() argument 1127 dvb_ca_en50221_thread_state_machine(struct dvb_ca_private * ca,int slot) dvb_ca_en50221_thread_state_machine() argument 1306 int slot; dvb_ca_en50221_thread() local 1352 int slot; dvb_ca_en50221_io_do_ioctl() local 1453 u8 slot, connection_id; dvb_ca_en50221_io_write() local 1549 int slot; dvb_ca_en50221_io_read_condition() local 1611 int slot; dvb_ca_en50221_io_read() local 1815 int slot; dvb_ca_en50221_io_poll() local [all...] |