/drivers/pci/hotplug/ |
H A D | rpaphp_slot.c | 35 /* free up the memory used by a slot */ 38 struct slot *slot = (struct slot *) hotplug_slot->private; local 39 dealloc_slot_struct(slot); 42 void dealloc_slot_struct(struct slot *slot) argument 44 kfree(slot->hotplug_slot->info); 45 kfree(slot->name); 46 kfree(slot 53 struct slot *slot; local 87 is_registered(struct slot *slot) argument 98 rpaphp_deregister_slot(struct slot *slot) argument 117 rpaphp_register_slot(struct slot *slot) argument [all...] |
H A D | cpci_hotplug.h | 44 struct slot { struct 59 int (*hardware_test) (struct slot *slot, u32 value); 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) argument 75 return hotplug_slot_name(slot [all...] |
H A D | cpci_hotplug_pci.c | 49 u8 cpci_get_attention_status(struct slot *slot) argument 54 hs_cap = pci_bus_find_capability(slot->bus, 55 slot->devfn, 60 if (pci_bus_read_config_word(slot->bus, 61 slot->devfn, 69 int cpci_set_attention_status(struct slot *slot, int status) argument 74 hs_cap = pci_bus_find_capability(slot->bus, 75 slot 96 cpci_get_hs_csr(struct slot *slot) argument 114 cpci_check_and_clear_ins(struct slot *slot) argument 143 cpci_check_ext(struct slot *slot) argument 164 cpci_clear_ext(struct slot *slot) argument 190 cpci_led_on(struct slot *slot) argument 219 cpci_led_off(struct slot *slot) argument 253 cpci_configure_slot(struct slot *slot) argument 306 cpci_unconfigure_slot(struct slot *slot) argument [all...] |
H A D | s390_pci_hpc.c | 35 * struct slot - slot information for each *physical* slot 37 struct slot { struct 43 static inline int slot_configure(struct slot *slot) argument 45 int ret = sclp_pci_configure(slot->zdev->fid); 47 zpci_dbg(3, "conf fid:%x, rc:%d\n", slot->zdev->fid, ret); 49 slot->zdev->state = ZPCI_FN_STATE_CONFIGURED; 54 static inline int slot_deconfigure(struct slot *slo argument 67 struct slot *slot = hotplug_slot->private; local 95 struct slot *slot = hotplug_slot->private; local 113 struct slot *slot = hotplug_slot->private; local 135 struct slot *slot = hotplug_slot->private; local 154 struct slot *slot; local 205 struct slot *slot; local [all...] |
H A D | shpchp_core.c | 60 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); 79 * release_slot - free up the memory used by a slot 80 * @hotplug_slot: slot to free 84 struct slot *slo local 96 struct slot *slot; local 183 struct slot *slot; local 199 struct slot *slot = get_slot(hotplug_slot); local 212 struct slot *slot = get_slot(hotplug_slot); local 222 struct slot *slot = get_slot(hotplug_slot); local 232 struct slot *slot = get_slot(hotplug_slot); local 247 struct slot *slot = get_slot(hotplug_slot); local 262 struct slot *slot = get_slot(hotplug_slot); local 277 struct slot *slot = get_slot(hotplug_slot); local [all...] |
H A D | acpiphp_core.c | 66 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); 128 * enable_slot - power on and enable a slot 129 * @hotplug_slot: slot to enable 135 struct slot *slo local 152 struct slot *slot = hotplug_slot->private; local 196 struct slot *slot = hotplug_slot->private; local 242 struct slot *slot = hotplug_slot->private; local 262 struct slot *slot = hotplug_slot->private; local 277 struct slot *slot = hotplug_slot->private; local 289 struct slot *slot; local 340 struct slot *slot = acpiphp_slot->slot; local [all...] |
H A D | rpaphp_pci.c | 35 int rpaphp_get_sensor_state(struct slot *slot, int *state) argument 40 rc = rtas_get_sensor(DR_ENTITY_SENSE, slot->index, state); 44 dbg("%s: slot must be power up to get sensor-state\n", 50 rc = rtas_set_power_level(slot->power_domain, POWER_ON, 53 dbg("%s: power on slot[%s] failed rc=%d.\n", 54 __func__, slot->name, rc); 57 slot->index, state); 60 info("%s: slot is unusable\n", __func__); 68 * rpaphp_enable_slot - record slot stat 76 rpaphp_enable_slot(struct slot *slot) argument [all...] |
H A D | pci_hotplug_core.c | 67 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; \ 86 static ssize_t power_read_file(struct pci_slot *slot, char *buf) argument 91 retval = get_power_status(slot->hotplug, &value); 101 struct hotplug_slot *slot = pci_slot->hotplug; local 110 if (!try_module_get(slot->ops->owner)) { 116 if (slot->ops->disable_slot) 117 retval = slot 143 attention_read_file(struct pci_slot *slot, char *buf) argument 155 attention_write_file(struct pci_slot *slot, const char *buf, size_t count) argument 187 latch_read_file(struct pci_slot *slot, char *buf) argument 204 presence_read_file(struct pci_slot *slot, char *buf) argument 224 struct hotplug_slot *slot = pci_slot->hotplug; local 254 struct hotplug_slot *slot = pci_slot->hotplug; local 267 struct hotplug_slot *slot = pci_slot->hotplug; local 279 struct hotplug_slot *slot = pci_slot->hotplug; local 290 struct hotplug_slot *slot = pci_slot->hotplug; local 301 struct hotplug_slot *slot = pci_slot->hotplug; local 310 fs_add_slot(struct pci_slot *slot) argument 374 fs_remove_slot(struct pci_slot *slot) argument 398 struct hotplug_slot *slot; local 423 __pci_hp_register(struct hotplug_slot *slot, struct pci_bus *bus, int devnr, const char *name, struct module *owner, const char *mod_name) argument 480 struct pci_slot *slot; local [all...] |
H A D | pciehp_core.c | 65 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); 75 * release_slot - free up the memory used by a slot 76 * @hotplug_slot: slot t 80 struct slot *slot = hotplug_slot->private; local 92 struct slot *slot = ctrl->slot; local 159 struct slot *slot = hotplug_slot->private; local 171 struct slot *slot = hotplug_slot->private; local 182 struct slot *slot = hotplug_slot->private; local 192 struct slot *slot = hotplug_slot->private; local 203 struct slot *slot = hotplug_slot->private; local 214 struct slot *slot = hotplug_slot->private; local 225 struct slot *slot = hotplug_slot->private; local 236 struct slot *slot = hotplug_slot->private; local 248 struct slot *slot; local 329 struct slot *slot; local [all...] |
H A D | pcihp_skeleton.c | 40 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 *slo local 111 struct slot *slot = hotplug_slot->private; local 125 struct slot *slot = hotplug_slot->private; local 150 struct slot *slot = hotplug_slot->private; local 169 struct slot *slot = hotplug_slot->private; local 184 struct slot *slot = hotplug_slot->private; local 199 struct slot *slot = hotplug_slot->private; local 214 struct slot *slot = hotplug_slot->private; local 229 struct slot *slot = hotplug_slot->private; local 237 make_slot_name(struct slot *slot) argument 252 struct slot *slot; local 326 struct slot *slot; local [all...] |
H A D | rpaphp_core.c | 68 struct slot *slot = (struct slot *)hotplug_slot->private; local 80 rc = rtas_set_indicator(DR_INDICATOR, slot->index, value); 88 * get_power_status - get power status of a slot 89 * @hotplug_slot: slot to get status 95 struct slot *slot = (struct slot *)hotplug_slot->private; local 97 retval = rtas_get_power_level (slot 110 struct slot *slot = (struct slot *)hotplug_slot->private; local 117 struct slot *slot = (struct slot *)hotplug_slot->private; local 134 get_max_bus_speed(struct slot *slot) argument 308 struct slot *slot; local 360 struct slot *slot; local 395 struct slot *slot = (struct slot *)hotplug_slot->private; local 425 struct slot *slot = (struct slot *)hotplug_slot->private; local [all...] |
H A D | rpaphp.h | 45 #define EMPTY 0 /* No card in slot */ 46 #define PRESENT 1 /* Card in slot */ 60 /* slot states */ 68 * struct slot - slot information for each *physical* slot 70 struct slot { struct 89 int rpaphp_enable_slot(struct slot *slot); 90 int rpaphp_get_sensor_state(struct slot *slo [all...] |
H A D | cpci_hotplug_core.c | 65 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; local 109 dbg("%s - physical_slot = %s", __func__, slot_name(slot)); 119 struct slot *slot = hotplug_slot->private; local 164 cpci_get_power_status(struct slot *slot) argument 176 struct slot *slot = hotplug_slot->private; local 185 struct slot *slot = hotplug_slot->private; local 213 struct slot *slot = hotplug_slot->private; local 227 struct slot *slot; local 310 struct slot *slot; local 367 struct slot *slot; local 398 struct slot *slot; local 627 struct slot *slot; local [all...] |
H A D | pciehp.h | 73 struct slot { struct 85 struct slot *p_slot; 92 struct slot *slot; member in struct:controller 133 int pciehp_sysfs_enable_slot(struct slot *slot); 134 int pciehp_sysfs_disable_slot(struct slot *slot); 135 u8 pciehp_handle_attention_button(struct slot *p_slot); 136 u8 pciehp_handle_switch_change(struct slot *p_slo 165 slot_name(struct slot *slot) argument [all...] |
H A D | acpiphp.h | 47 * struct slot - slot information for each *physical* slot 49 struct slot { struct 56 static inline const char *slot_name(struct slot *slot) argument 58 return hotplug_slot_name(slot->hotplug_slot); 86 * struct acpiphp_slot - PCI slot information 88 * PCI slot information for each *physical* PCI slot 95 struct slot *slot; member in struct:acpiphp_slot 110 struct acpiphp_slot *slot; member in struct:acpiphp_func [all...] |
H A D | shpchp.h | 77 struct slot { struct 98 struct slot *p_slot; 113 u32 first_slot; /* First physical slot number */ 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 *slo argument 241 struct slot *slot; local [all...] |
H A D | pciehp_acpi.c | 48 " pcie - Use PCIe based slot detection\n" 49 " acpi - Use ACPI for slot detection\n" 51 " slot ids are found. Otherwise, use pcie option\n"); 86 struct dummy_slot *slot, *tmp; local 90 slot = kzalloc(sizeof(*slot), GFP_KERNEL); 91 if (!slot) 93 slot->number = (slot_cap & PCI_EXP_SLTCAP_PSN) >> 19; 95 if (tmp->number == slot->number) 98 list_add_tail(&slot 114 struct dummy_slot *slot, *tmp; local [all...] |
/drivers/media/dvb-frontends/ |
H A D | sp2.h | 40 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);
|
/drivers/media/pci/cx23885/ |
H A D | cimax2.h | 27 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);
|
/drivers/pci/ |
H A D | slot.c | 2 * drivers/pci/slot.c 21 struct pci_slot *slot = to_pci_slot(kobj); local 23 return attribute->show ? attribute->show(slot, buf) : -EIO; 29 struct pci_slot *slot = to_pci_slot(kobj); local 31 return attribute->store ? attribute->store(slot, buf, len) : -EIO; 39 static ssize_t address_read_file(struct pci_slot *slot, char *buf) argument 41 if (slot->number == 0xff) 43 pci_domain_nr(slot->bus), 44 slot->bus->number); 47 pci_domain_nr(slot 91 max_speed_read_file(struct pci_slot *slot, char *buf) argument 96 cur_speed_read_file(struct pci_slot *slot, char *buf) argument 104 struct pci_slot *slot = to_pci_slot(kobj); local 176 rename_slot(struct pci_slot *slot, const char *name) argument 196 struct pci_slot *slot; local 252 struct pci_slot *slot; local 330 pci_destroy_slot(struct pci_slot *slot) argument 352 struct hotplug_slot *slot = pci_slot->hotplug; local [all...] |
/drivers/mmc/host/ |
H A D | cb710-mmc.c | 30 struct cb710_slot *slot = cb710_mmc_to_slot(mmc); local 31 struct pci_dev *pdev = cb710_slot_to_chip(slot)->pdev; 57 dev_dbg(cb710_slot_dev(slot), 63 static void __cb710_mmc_enable_irq(struct cb710_slot *slot, argument 75 enable = (cb710_read_port_16(slot, CB710_MMC_IRQ_ENABLE_PORT) 81 cb710_write_port_16(slot, CB710_MMC_IRQ_ENABLE_PORT, enable); 84 static void cb710_mmc_enable_irq(struct cb710_slot *slot, argument 87 struct cb710_mmc_reader *reader = mmc_priv(cb710_slot_to_mmc(slot)); 92 __cb710_mmc_enable_irq(slot, enable, mask); 96 static void cb710_mmc_reset_events(struct cb710_slot *slot) argument 103 cb710_mmc_enable_4bit_data(struct cb710_slot *slot, int enable) argument 113 cb710_check_event(struct cb710_slot *slot, u8 what) argument 146 cb710_wait_for_event(struct cb710_slot *slot, u8 what) argument 179 cb710_wait_while_busy(struct cb710_slot *slot, uint8_t mask) argument 211 cb710_mmc_set_transfer_size(struct cb710_slot *slot, size_t count, size_t blocksize) argument 222 cb710_mmc_fifo_hack(struct cb710_slot *slot) argument 245 cb710_mmc_receive_pio(struct cb710_slot *slot, struct sg_mapping_iter *miter, size_t dw_count) argument 266 cb710_mmc_receive(struct cb710_slot *slot, struct mmc_data *data) argument 310 cb710_mmc_send(struct cb710_slot *slot, struct mmc_data *data) argument 396 cb710_receive_response(struct cb710_slot *slot, struct mmc_command *cmd) argument 425 cb710_mmc_transfer_data(struct cb710_slot *slot, struct mmc_data *data) argument 446 struct cb710_slot *slot = cb710_mmc_to_slot(mmc); local 486 struct cb710_slot *slot = cb710_mmc_to_slot(mmc); local 500 cb710_mmc_powerup(struct cb710_slot *slot) argument 555 cb710_mmc_powerdown(struct cb710_slot *slot) argument 563 struct cb710_slot *slot = cb710_mmc_to_slot(mmc); local 602 struct cb710_slot *slot = cb710_mmc_to_slot(mmc); local 610 struct cb710_slot *slot = cb710_mmc_to_slot(mmc); local 616 cb710_mmc_irq_handler(struct cb710_slot *slot) argument 669 struct cb710_slot *slot = cb710_pdev_to_slot(pdev); local 677 struct cb710_slot *slot = cb710_pdev_to_slot(pdev); local 687 struct cb710_slot *slot = cb710_pdev_to_slot(pdev); local 743 struct cb710_slot *slot = cb710_pdev_to_slot(pdev); local [all...] |
/drivers/media/dvb-core/ |
H A D | dvb_ca_en50221.h | 50 * and if appropriate. There will be no concurrent access to one slot. 54 int (*read_attribute_mem)(struct dvb_ca_en50221* ca, int slot, int address); 55 int (*write_attribute_mem)(struct dvb_ca_en50221* ca, int slot, int address, u8 value); 58 int (*read_cam_control)(struct dvb_ca_en50221* ca, int slot, u8 address); 59 int (*write_cam_control)(struct dvb_ca_en50221* ca, int slot, u8 address, u8 value); 62 int (*slot_reset)(struct dvb_ca_en50221* ca, int slot); 63 int (*slot_shutdown)(struct dvb_ca_en50221* ca, int slot); 64 int (*slot_ts_enable)(struct dvb_ca_en50221* ca, int slot); 67 * Poll slot status. 70 int (*poll_slot_status)(struct dvb_ca_en50221* ca, int slot, in [all...] |
H A D | dvb_ca_en50221.c | 90 /* Information on a CA slot */ 96 /* mutex used for serializing access to one CI slot */ 120 /* timer used during various states of the slot */ 139 /* information on each slot */ 165 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) argument 210 return (atomic_read(&ca->slot_info[slot].camchange_count) != 0); 214 slot_status = ca->pub->poll_slot_status(ca->pub, slot, ca->open); 219 int cam_present_old = (ca->slot_info[slot] 253 dvb_ca_en50221_wait_if_status(struct dvb_ca_private *ca, int slot, u8 waitfor, int timeout_hz) argument 300 dvb_ca_en50221_link_init(struct dvb_ca_private *ca, int slot) argument 360 dvb_ca_en50221_read_tuple(struct dvb_ca_private *ca, int slot, int *address, int *tupleType, int *tupleLength, u8 * tuple) argument 410 dvb_ca_en50221_parse_attributes(struct dvb_ca_private *ca, int slot) argument 554 dvb_ca_en50221_set_configoption(struct dvb_ca_private *ca, int slot) argument 589 dvb_ca_en50221_read_data(struct dvb_ca_private *ca, int slot, u8 * ebuf, int ecount) argument 712 dvb_ca_en50221_write_data(struct dvb_ca_private *ca, int slot, u8 * buf, int bytes_write) argument 798 dvb_ca_en50221_slot_shutdown(struct dvb_ca_private *ca, int slot) argument 824 dvb_ca_en50221_camchange_irq(struct dvb_ca_en50221 *pubca, int slot, int change_type) argument 852 dvb_ca_en50221_camready_irq(struct dvb_ca_en50221 *pubca, int slot) argument 871 dvb_ca_en50221_frda_irq(struct dvb_ca_en50221 *pubca, int slot) argument 923 int slot; local 977 int slot; local 1193 int slot; local 1290 u8 slot, connection_id; local 1375 int slot; local 1434 int slot; local 1605 int slot; local [all...] |
/drivers/xen/xen-pciback/ |
H A D | vpci.c | 71 int err = 0, slot, func = -1; local 99 for (slot = 0; slot < PCI_SLOT_MAX; slot++) { 100 if (list_empty(&vpci_dev->dev_list[slot])) 103 t = list_entry(list_first(&vpci_dev->dev_list[slot]), 107 pr_info("vpci: %s: assign to virtual slot %d func %d\n", 108 pci_name(dev), slot, 111 &vpci_dev->dev_list[slot]); 118 /* Assign to a new slot o 150 int slot; local 178 int slot; local 204 int slot; local 229 int found = 0, slot; local [all...] |
/drivers/pcmcia/ |
H A D | vrc4171_card.c | 103 vrc4171_slot_t slot; member in struct:vrc4171_socket 171 static inline uint8_t exca_read_byte(int slot, uint8_t index) argument 173 if (slot == CARD_SLOTB) 180 static inline uint16_t exca_read_word(int slot, uint8_t index) argument 184 if (slot == CARD_SLOTB) 196 static inline uint8_t exca_write_byte(int slot, uint8_t index, uint8_t data) argument 198 if (slot == CARD_SLOTB) 207 static inline uint16_t exca_write_word(int slot, uint8_t index, uint16_t data) argument 209 if (slot == CARD_SLOTB) 238 unsigned int slot; local 256 unsigned int slot; local 321 unsigned int slot; local 382 unsigned int slot; local 424 unsigned int slot; local 491 get_events(int slot) argument 555 reserve_using_irq(int slot) argument 571 int slot, retval; local 621 int slot; local [all...] |