/openbmc/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 80 u16 cpci_get_hs_csr(struct slot *slot) in cpci_get_hs_csr() argument 98 int cpci_check_and_clear_ins(struct slot *slot) in cpci_check_and_clear_ins() argument 127 int cpci_check_ext(struct slot *slot) in cpci_check_ext() argument 148 int cpci_clear_ext(struct slot *slot) in cpci_clear_ext() argument 174 int cpci_led_on(struct slot *slot) in cpci_led_on() argument 202 int cpci_led_off(struct slot *slot) in cpci_led_off() argument 235 int cpci_configure_slot(struct slot *slot) in cpci_configure_slot() argument 247 slot->bus->number, PCI_SLOT(slot->devfn), PCI_FUNC(slot->devfn)); in cpci_configure_slot() 248 slot->dev = pci_get_slot(slot->bus, slot->devfn); in cpci_configure_slot() [all …]
|
H A D | rpaphp_slot.c | 23 void dealloc_slot_struct(struct slot *slot) in dealloc_slot_struct() argument 27 kfree(slot); in dealloc_slot_struct() 33 struct slot *slot; in alloc_slot_struct() local 35 slot = kzalloc(sizeof(struct slot), GFP_KERNEL); in alloc_slot_struct() 36 if (!slot) in alloc_slot_struct() 49 kfree(slot); in alloc_slot_struct() 54 static int is_registered(struct slot *slot) in is_registered() argument 65 int rpaphp_deregister_slot(struct slot *slot) in rpaphp_deregister_slot() argument 82 int rpaphp_register_slot(struct slot *slot) in rpaphp_register_slot() argument 91 __func__, slot->dn, slot->index, slot->name, in rpaphp_register_slot() [all …]
|
H A D | shpchp_core.c | 65 struct slot *slot; in init_slots() local 72 slot = kzalloc(sizeof(*slot), GFP_KERNEL); in init_slots() 102 slot->bus, slot->device, slot->hp_slot, slot->number, in init_slots() 131 struct slot *slot, *next; in cleanup_slots() local 147 struct slot *slot = get_slot(hotplug_slot); in set_attention_status() local 160 struct slot *slot = get_slot(hotplug_slot); in enable_slot() local 170 struct slot *slot = get_slot(hotplug_slot); in disable_slot() local 180 struct slot *slot = get_slot(hotplug_slot); in get_power_status() local 195 struct slot *slot = get_slot(hotplug_slot); in get_attention_status() local 210 struct slot *slot = get_slot(hotplug_slot); in get_latch_status() local [all …]
|
H A D | cpci_hotplug_core.c | 73 struct slot *slot = to_slot(hotplug_slot); in enable_slot() local 86 struct slot *slot = to_slot(hotplug_slot); in disable_slot() local 130 cpci_get_power_status(struct slot *slot) in cpci_get_power_status() argument 142 struct slot *slot = to_slot(hotplug_slot); in get_power_status() local 151 struct slot *slot = to_slot(hotplug_slot); in get_attention_status() local 166 struct slot *slot = to_slot(hotplug_slot); in get_adapter_status() local 192 struct slot *slot; in cpci_hp_register_bus() local 244 struct slot *slot; in cpci_hp_unregister_bus() local 297 struct slot *slot; in init_slots() local 326 struct slot *slot; in check_slots() local [all …]
|
H A D | cpci_hotplug.h | 48 u8 (*get_power)(struct slot *slot); 49 int (*set_power)(struct slot *slot, int value); 85 u8 cpci_get_attention_status(struct slot *slot); 86 u16 cpci_get_hs_csr(struct slot *slot); 88 int cpci_check_and_clear_ins(struct slot *slot); 89 int cpci_check_ext(struct slot *slot); 90 int cpci_clear_ext(struct slot *slot); 91 int cpci_led_on(struct slot *slot); 92 int cpci_led_off(struct slot *slot); 93 int cpci_configure_slot(struct slot *slot); [all …]
|
H A D | acpiphp_core.c | 120 struct slot *slot = to_slot(hotplug_slot); in enable_slot() local 137 struct slot *slot = to_slot(hotplug_slot); in disable_slot() local 181 struct slot *slot = to_slot(hotplug_slot); in get_power_status() local 227 struct slot *slot = to_slot(hotplug_slot); in get_latch_status() local 247 struct slot *slot = to_slot(hotplug_slot); in get_adapter_status() local 260 struct slot *slot; in acpiphp_register_hotplug_slot() local 264 slot = kzalloc(sizeof(*slot), GFP_KERNEL); in acpiphp_register_hotplug_slot() 265 if (!slot) in acpiphp_register_hotplug_slot() 272 acpiphp_slot->slot = slot; in acpiphp_register_hotplug_slot() 289 kfree(slot); in acpiphp_register_hotplug_slot() [all …]
|
H A D | pci_hotplug_core.c | 98 retval = slot->ops->disable_slot(slot); in power_write_file() 103 retval = slot->ops->enable_slot(slot); in power_write_file() 220 retval = slot->ops->hardware_test(slot, test); in test_write_file() 238 if ((!slot) || (!slot->ops)) in has_power_file() 251 if ((!slot) || (!slot->ops)) in has_attention_file() 263 if ((!slot) || (!slot->ops)) in has_latch_file() 274 if ((!slot) || (!slot->ops)) in has_adapter_file() 285 if ((!slot) || (!slot->ops)) in has_test_file() 384 return slot; in get_slot_from_name() 444 if (slot == NULL) in __pci_hp_initialize() [all …]
|
H A D | rpaphp_core.c | 57 struct slot *slot = to_slot(hotplug_slot); in set_attention_status() local 84 struct slot *slot = to_slot(hotplug_slot); in get_power_status() local 99 struct slot *slot = to_slot(hotplug_slot); in get_attention_status() local 106 struct slot *slot = to_slot(hotplug_slot); in get_adapter_status() local 336 struct slot *slot; in rpaphp_drc_info_add_slot() local 361 if (!slot) in rpaphp_drc_info_add_slot() 377 struct slot *slot; in rpaphp_drc_add_slot() local 452 struct slot *slot, *next; in cleanup_slots() local 486 struct slot *slot = to_slot(hotplug_slot); in enable_slot() local 512 slot->bus->max_bus_speed = get_max_bus_speed(slot); in enable_slot() [all …]
|
H A D | shpchp.h | 63 struct slot { struct 160 int shpchp_sysfs_enable_slot(struct slot *slot); 161 int shpchp_sysfs_disable_slot(struct slot *slot); 217 struct slot *slot; in shpchp_find_slot() local 304 int (*power_on_slot)(struct slot *slot); 305 int (*slot_enable)(struct slot *slot); 306 int (*slot_disable)(struct slot *slot); 315 int (*query_power_fault)(struct slot *slot); 316 void (*green_led_on)(struct slot *slot); 317 void (*green_led_off)(struct slot *slot); [all …]
|
H A D | rpaphp_pci.c | 72 static int __rpaphp_get_sensor_state(struct slot *slot, int *state) in __rpaphp_get_sensor_state() argument 95 slot->index); in __rpaphp_get_sensor_state() 102 int rpaphp_get_sensor_state(struct slot *slot, int *state) in rpaphp_get_sensor_state() argument 141 int rpaphp_enable_slot(struct slot *slot) in rpaphp_enable_slot() argument 146 slot->state = EMPTY; in rpaphp_enable_slot() 164 slot->bus = bus; in rpaphp_enable_slot() 165 slot->pci_devs = &bus->devices; in rpaphp_enable_slot() 169 slot->state = NOT_CONFIGURED; in rpaphp_enable_slot() 172 if (!slot->dn->child) { in rpaphp_enable_slot() 174 __func__, slot->name); in rpaphp_enable_slot() [all …]
|
H A D | acpiphp_glue.c | 164 kfree(slot); in free_bridge() 232 struct acpiphp_slot *slot; in acpiphp_add_context() local 283 if (!slot) { in acpiphp_add_context() 291 slot->device = device; in acpiphp_add_context() 318 slot->slot = NULL; in acpiphp_add_context() 329 newfunc->slot = slot; in acpiphp_add_context() 354 if (slot->slot) in cleanup_bridge() 441 return pci_scan_slot(slot->bus, PCI_DEVFN(slot->device, 0)); in acpiphp_rescan_slot() 724 disable_slot(slot); in acpiphp_check_bridge() 787 struct acpiphp_slot *slot = func->slot; in hotplug_event() local [all …]
|
/openbmc/linux/drivers/mmc/host/ |
H A D | cb710-mmc.c | 56 dev_dbg(cb710_slot_dev(slot), in cb710_mmc_select_clock_divider() 120 dev_dbg(cb710_slot_dev(slot), in cb710_check_event() 128 dev_dbg(cb710_slot_dev(slot), in cb710_check_event() 170 dev_dbg(cb710_slot_dev(slot), in cb710_wait_for_event() 203 dev_dbg(cb710_slot_dev(slot), in cb710_wait_while_busy() 236 dev_dbg(cb710_slot_dev(slot), in cb710_mmc_fifo_hack() 239 dev_dbg(cb710_slot_dev(slot), in cb710_mmc_fifo_hack() 281 cb710_mmc_fifo_hack(slot); in cb710_mmc_receive() 464 cb710_mmc_reset_events(slot); in cb710_mmc_command() 575 cb710_mmc_powerdown(slot); in cb710_mmc_set_ios() [all …]
|
/openbmc/linux/drivers/pci/ |
H A D | slot.c | 73 slot->number, pci_slot_name(slot)); in pci_slot_release() 84 kfree(slot); in pci_slot_release() 171 dev->slot = slot; in pci_dev_assign_slot() 246 if (slot) { in pci_create_slot() 259 slot = kzalloc(sizeof(*slot), GFP_KERNEL); in pci_create_slot() 260 if (!slot) { in pci_create_slot() 274 kfree(slot); in pci_create_slot() 291 dev->slot = slot; in pci_create_slot() 300 return slot; in pci_create_slot() 318 slot->number, kref_read(&slot->kobj.kref) - 1); in pci_destroy_slot() [all …]
|
/openbmc/linux/drivers/crypto/marvell/octeontx2/ |
H A D | otx2_cptlf.c | 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() 47 for (slot = 0; slot < lfs->lfs_num; slot++) in cptlf_set_done_num_wait() 97 for (slot = 0; slot < lfs->lfs_num; slot++) { in cptlf_set_grp_and_pri() 149 for (slot = 0; slot < lfs->lfs_num; slot++) in cptlf_set_misc_intrs() 159 for (slot = 0; slot < lfs->lfs_num; slot++) in cptlf_enable_intrs() 170 for (slot = 0; slot < lfs->lfs_num; slot++) in cptlf_disable_intrs() 332 for (slot = 0; slot < lfs->lfs_num; slot++) { in otx2_cptlf_free_irqs_affinity() 347 for (slot = 0; slot < lfs->lfs_num; slot++) { in otx2_cptlf_set_irqs_affinity() 384 for (slot = 0; slot < lfs->lfs_num; slot++) { in otx2_cptlf_init() [all …]
|
/openbmc/linux/fs/btrfs/ |
H A D | tree-checker.c | 177 if (slot == 0) in check_prev_ino() 323 if (slot > 0 && in check_extent_data_item() 390 int slot) in check_inode_key() argument 442 int slot) in check_root_key() argument 501 int slot) in check_dir_item() argument 756 int slot = -1; in chunk_err() local 769 slot = i; in chunk_err() 1858 int slot; in __btrfs_check_leaf() local 1925 for (slot = 0; slot < nritems; slot++) { in __btrfs_check_leaf() 2023 int slot; in __btrfs_check_node() local [all …]
|
/openbmc/u-boot/board/freescale/ls2080ardb/ |
H A D | ddr.c | 24 int slot; in fsl_ddr_board_options() local 31 for (slot = 0; slot < CONFIG_DIMM_SLOTS_PER_CTLR; slot++) { in fsl_ddr_board_options() 32 if (pdimm[slot].n_ranks) in fsl_ddr_board_options() 105 pdimm[slot].dq_mapping[0] = pdimm[slot].dq_mapping[8]; in fsl_ddr_board_options() 106 pdimm[slot].dq_mapping[1] = pdimm[slot].dq_mapping[9]; in fsl_ddr_board_options() 107 pdimm[slot].dq_mapping[2] = pdimm[slot].dq_mapping[6]; in fsl_ddr_board_options() 108 pdimm[slot].dq_mapping[3] = pdimm[slot].dq_mapping[7]; in fsl_ddr_board_options() 112 pdimm[slot].dq_mapping[9] = 0; in fsl_ddr_board_options() 113 pdimm[slot].dq_mapping[10] = 0; in fsl_ddr_board_options() 114 pdimm[slot].dq_mapping[11] = 0; in fsl_ddr_board_options() [all …]
|
/openbmc/u-boot/board/freescale/ls2080aqds/ |
H A D | ddr.c | 24 int slot; in fsl_ddr_board_options() local 31 for (slot = 0; slot < CONFIG_DIMM_SLOTS_PER_CTLR; slot++) { in fsl_ddr_board_options() 32 if (pdimm[slot].n_ranks) in fsl_ddr_board_options() 103 pdimm[slot].dq_mapping[0] = pdimm[slot].dq_mapping[8]; in fsl_ddr_board_options() 104 pdimm[slot].dq_mapping[1] = pdimm[slot].dq_mapping[9]; in fsl_ddr_board_options() 105 pdimm[slot].dq_mapping[2] = pdimm[slot].dq_mapping[6]; in fsl_ddr_board_options() 106 pdimm[slot].dq_mapping[3] = pdimm[slot].dq_mapping[7]; in fsl_ddr_board_options() 110 pdimm[slot].dq_mapping[9] = 0; in fsl_ddr_board_options() 111 pdimm[slot].dq_mapping[10] = 0; in fsl_ddr_board_options() 112 pdimm[slot].dq_mapping[11] = 0; in fsl_ddr_board_options() [all …]
|
/openbmc/linux/block/ |
H A D | blk-crypto-profile.c | 77 unsigned int slot; in blk_crypto_profile_init() local 106 for (slot = 0; slot < num_slots; slot++) { in blk_crypto_profile_init() 211 if (!slot) in blk_crypto_find_and_grab_keyslot() 217 return slot; in blk_crypto_find_and_grab_keyslot() 228 return slot - slot->profile->slots; in blk_crypto_keyslot_index() 268 if (slot) in blk_crypto_get_keyslot() 274 if (slot) { in blk_crypto_get_keyslot() 303 if (slot->key) in blk_crypto_get_keyslot() 305 slot->key = key; in blk_crypto_get_keyslot() 381 if (!slot) { in __blk_crypto_evict_key() [all …]
|
/openbmc/linux/arch/x86/kvm/mmu/ |
H A D | page_track.c | 31 kvfree(slot->arch.gfn_write_track); in kvm_page_track_free_memslot() 32 slot->arch.gfn_write_track = NULL; in kvm_page_track_free_memslot() 40 if (!slot->arch.gfn_write_track) in __kvm_page_track_write_tracking_alloc() 48 struct kvm_memory_slot *slot, in kvm_page_track_create_memslot() argument 59 return __kvm_page_track_write_tracking_alloc(slot, slot->npages); in kvm_page_track_write_tracking_alloc() 128 if (!slot) in kvm_gfn_is_write_tracked() 244 n->track_remove_region(slot->base_gfn, slot->npages, n); in kvm_page_track_delete_slot() 257 struct kvm_memory_slot *slot; in kvm_write_track_add_gfn() local 263 if (!slot) { in kvm_write_track_add_gfn() 287 struct kvm_memory_slot *slot; in kvm_write_track_remove_gfn() local [all …]
|
/openbmc/linux/include/linux/ |
H A D | pci_hotplug.h | 39 int (*enable_slot) (struct hotplug_slot *slot); 40 int (*disable_slot) (struct hotplug_slot *slot); 42 int (*hardware_test) (struct hotplug_slot *slot, u32 value); 47 int (*reset_slot) (struct hotplug_slot *slot, bool probe); 70 return pci_slot_name(slot->pci_slot); in hotplug_slot_name() 79 int pci_hp_add(struct hotplug_slot *slot); 81 void pci_hp_del(struct hotplug_slot *slot); 82 void pci_hp_destroy(struct hotplug_slot *slot); 83 void pci_hp_deregister(struct hotplug_slot *slot); 86 #define pci_hp_register(slot, pbus, devnr, name) \ argument [all …]
|
/openbmc/linux/drivers/xen/xen-pciback/ |
H A D | vpci.c | 103 for (slot = 0; slot < PCI_SLOT_MAX; slot++) { in __xen_pcibk_add_pci_dev() 114 slot, func); in __xen_pcibk_add_pci_dev() 123 for (slot = 0; slot < PCI_SLOT_MAX; slot++) { in __xen_pcibk_add_pci_dev() 126 slot); in __xen_pcibk_add_pci_dev() 153 int slot; in __xen_pcibk_release_pci_dev() local 159 for (slot = 0; slot < PCI_SLOT_MAX; slot++) { in __xen_pcibk_release_pci_dev() 186 int slot; in __xen_pcibk_init_devices() local 195 for (slot = 0; slot < PCI_SLOT_MAX; slot++) in __xen_pcibk_init_devices() 212 int slot; in __xen_pcibk_release_devices() local 215 for (slot = 0; slot < PCI_SLOT_MAX; slot++) { in __xen_pcibk_release_devices() [all …]
|
/openbmc/linux/arch/x86/kernel/ |
H A D | early-quirks.c | 130 d = read_pci_config(num, slot, func, 0x8); in ati_ixp4x0_rev() 143 d = ati_ixp4x0_rev(num, slot, func); in ati_bugs() 165 d = read_pci_config(num, slot, func, 0x8); in ati_sbx00_rev() 175 rev = ati_sbx00_rev(num, slot, func); in ati_bugs_contd() 656 bus, slot, func); in apple_airport_reset() 668 bus, slot, func); in apple_airport_reset() 697 void (*f)(int num, int slot, int func); 774 early_qrk[i].f(num, slot, func); in check_dev_quirk() 796 int slot, func; in early_pci_scan_bus() local 799 for (slot = 0; slot < 32; slot++) in early_pci_scan_bus() [all …]
|
H A D | aperture_64.c | 179 bus, slot, func); in read_agp() 236 int bus, slot, func; in search_agp_bridge() local 240 for (slot = 0; slot < 32; slot++) { in search_agp_bridge() 253 cap = find_cap(bus, slot, func, in search_agp_bridge() 301 int i, fix, slot, valid_agp = 0; in early_gart_iommu_check() local 325 for (slot = dev_base; slot < dev_limit; slot++) { in early_gart_iommu_check() 381 for (slot = dev_base; slot < dev_limit; slot++) { in early_gart_iommu_check() 400 int fix, slot, valid_agp = 0; in gart_iommu_hole_init() local 426 for (slot = dev_base; slot < dev_limit; slot++) { in gart_iommu_hole_init() 434 ctl = read_pci_config(bus, slot, 3, in gart_iommu_hole_init() [all …]
|
/openbmc/linux/tools/testing/radix-tree/ |
H A D | regression3.c | 35 void **slot; in regression3_test() local 45 printv(2, "tagged %ld %p\n", iter.index, *slot); in regression3_test() 51 if (radix_tree_deref_retry(*slot)) { in regression3_test() 53 slot = radix_tree_iter_retry(&iter); in regression3_test() 60 radix_tree_for_each_slot(slot, &root, &iter, 0) { in regression3_test() 61 printv(2, "slot %ld %p\n", iter.index, *slot); in regression3_test() 66 if (radix_tree_deref_retry(*slot)) { in regression3_test() 68 slot = radix_tree_iter_retry(&iter); in regression3_test() 74 printv(2, "slot %ld %p\n", iter.index, *slot); in regression3_test() 77 slot = radix_tree_iter_resume(slot, &iter); in regression3_test() [all …]
|
/openbmc/u-boot/drivers/dma/ |
H A D | ti-edma3.c | 18 #define EDMA3_SL_BASE(slot) (0x4000 + ((slot) << 5)) argument 417 slot.opt = 0; in __edma3_transfer() 421 slot.ccnt = 1; in __edma3_transfer() 425 slot.src_bidx = 0; in __edma3_transfer() 427 slot.src_cidx = 0; in __edma3_transfer() 428 slot.dst_cidx = 0; in __edma3_transfer() 430 slot.bcntrld = 0; in __edma3_transfer() 450 slot.opt = 0; in __edma3_transfer() 452 slot.src = in __edma3_transfer() 457 slot.bcnt = 1; in __edma3_transfer() [all …]
|