/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 329 cpci_unconfigure_slot(struct slot* slot) argument [all...] |
H A D | acpiphp_core.c | 71 static int enable_slot (struct hotplug_slot *slot); 72 static int disable_slot (struct hotplug_slot *slot); 73 static int set_attention_status (struct hotplug_slot *slot, u8 value); 74 static int get_power_status (struct hotplug_slot *slot, u8 *value); 75 static int get_attention_status (struct hotplug_slot *slot, u8 *value); 76 static int get_latch_status (struct hotplug_slot *slot, u8 *value); 77 static int get_adapter_status (struct hotplug_slot *slot, u8 *value); 131 * enable_slot - power on and enable a slot 132 * @hotplug_slot: slot to enable 138 struct slot *slo local 155 struct slot *slot = hotplug_slot->private; local 202 struct slot *slot = hotplug_slot->private; local 247 struct slot *slot = hotplug_slot->private; local 267 struct slot *slot = hotplug_slot->private; local 301 struct slot *slot = hotplug_slot->private; local 312 struct slot *slot; local 364 struct slot *slot = acpiphp_slot->slot; local [all...] |
H A D | shpchp_core.c | 62 static int set_attention_status (struct hotplug_slot *slot, u8 value); 63 static int enable_slot (struct hotplug_slot *slot); 64 static int disable_slot (struct hotplug_slot *slot); 65 static int get_power_status (struct hotplug_slot *slot, u8 *value); 66 static int get_attention_status (struct hotplug_slot *slot, u8 *value); 67 static int get_latch_status (struct hotplug_slot *slot, u8 *value); 68 static int get_adapter_status (struct hotplug_slot *slot, u8 *value); 81 * release_slot - free up the memory used by a slot 82 * @hotplug_slot: slot to free 86 struct slot *slo local 98 struct slot *slot; local 171 struct slot *slot; local 188 struct slot *slot = get_slot(hotplug_slot); local 201 struct slot *slot = get_slot(hotplug_slot); local 211 struct slot *slot = get_slot(hotplug_slot); local 221 struct slot *slot = get_slot(hotplug_slot); local 236 struct slot *slot = get_slot(hotplug_slot); local 251 struct slot *slot = get_slot(hotplug_slot); local 266 struct slot *slot = get_slot(hotplug_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 | 76 static int get_##name (struct hotplug_slot *slot, type *value) \ 78 struct hotplug_slot_ops *ops = slot->ops; \ 83 retval = ops->get_##name(slot, value); \ 85 *value = slot->info->name; \ 95 static ssize_t power_read_file(struct pci_slot *slot, char *buf) argument 100 retval = get_power_status(slot->hotplug, &value); 111 struct hotplug_slot *slot = pci_slot->hotplug; local 120 if (!try_module_get(slot->ops->owner)) { 126 if (slot->ops->disable_slot) 127 retval = slot 153 attention_read_file(struct pci_slot *slot, char *buf) argument 167 attention_write_file(struct pci_slot *slot, const char *buf, size_t count) argument 199 latch_read_file(struct pci_slot *slot, char *buf) argument 218 presence_read_file(struct pci_slot *slot, char *buf) argument 240 struct hotplug_slot *slot = pci_slot->hotplug; local 270 struct hotplug_slot *slot = pci_slot->hotplug; local 282 struct hotplug_slot *slot = pci_slot->hotplug; local 293 struct hotplug_slot *slot = pci_slot->hotplug; local 303 struct hotplug_slot *slot = pci_slot->hotplug; local 313 struct hotplug_slot *slot = pci_slot->hotplug; local 321 fs_add_slot(struct pci_slot *slot) argument 385 fs_remove_slot(struct pci_slot *slot) argument 409 struct hotplug_slot *slot; local 434 __pci_hp_register(struct hotplug_slot *slot, struct pci_bus *bus, int devnr, const char *name, struct module *owner, const char *mod_name) argument 491 struct pci_slot *slot; local 530 struct pci_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 320 struct slot *slot; local [all...] |
H A D | rpaphp_core.c | 67 struct slot *slot = (struct slot *)hotplug_slot->private; local 79 rc = rtas_set_indicator(DR_INDICATOR, slot->index, value); 87 * get_power_status - get power status of a slot 88 * @hotplug_slot: slot to get status 94 struct slot *slot = (struct slot *)hotplug_slot->private; local 96 retval = rtas_get_power_level (slot 109 struct slot *slot = (struct slot *)hotplug_slot->private; local 116 struct slot *slot = (struct slot *)hotplug_slot->private; local 133 get_max_bus_speed(struct slot *slot) argument 306 struct slot *slot; local 354 struct slot *slot; local 389 struct slot *slot = (struct slot *)hotplug_slot->private; local 417 struct slot *slot = (struct slot *)hotplug_slot->private; local [all...] |
H A D | pciehp_core.c | 66 static int set_attention_status (struct hotplug_slot *slot, u8 value); 67 static int enable_slot (struct hotplug_slot *slot); 68 static int disable_slot (struct hotplug_slot *slot); 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); 75 * release_slot - free up the memory used by a slot 76 * @hotplug_slot: slot to free 80 struct slot *slo local 92 struct slot *slot = ctrl->slot; local 157 struct slot *slot = hotplug_slot->private; local 168 struct slot *slot = hotplug_slot->private; local 179 struct slot *slot = hotplug_slot->private; local 189 struct slot *slot = hotplug_slot->private; local 199 struct slot *slot = hotplug_slot->private; local 209 struct slot *slot = hotplug_slot->private; local 219 struct slot *slot = hotplug_slot->private; local 231 struct slot *slot; local 306 struct slot *slot; local [all...] |
H A D | pciehp.h | 75 struct slot { struct 85 struct slot *p_slot; 92 struct slot *slot; member in struct:controller 130 extern int pciehp_sysfs_enable_slot(struct slot *slot); 131 extern int pciehp_sysfs_disable_slot(struct slot *slot); 132 extern u8 pciehp_handle_attention_button(struct slot *p_slot); 133 extern u8 pciehp_handle_switch_change(struct slot *p_slo 163 slot_name(struct slot *slot) argument [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 extern int rpaphp_enable_slot(struct slot *slot); 90 extern 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 161 cpci_get_power_status(struct slot *slot) argument 173 struct slot *slot = hotplug_slot->private; local 182 struct slot *slot = hotplug_slot->private; local 210 struct slot *slot = hotplug_slot->private; local 224 struct slot *slot; local 300 struct slot *slot; local 356 struct slot *slot; local 387 struct slot *slot; local 615 struct slot *slot; local [all...] |
H A D | fakephp.c | 36 struct legacy_slot *slot = container_of(kobj, typeof(*slot), kobj); local 49 struct legacy_slot *slot = container_of(kobj, typeof(*slot), kobj); local 56 pci_rescan_bus(slot->dev->bus); 58 sysfs_schedule_callback(&slot->dev->dev.kobj, remove_callback, 59 slot->dev, THIS_MODULE); 70 struct legacy_slot *slot = container_of(kobj, typeof(*slot), kobj); local 72 pci_dev_put(slot 86 struct legacy_slot *slot = kzalloc(sizeof(*slot), GFP_KERNEL); local 112 struct legacy_slot *slot; local 149 struct legacy_slot *slot, *tmp; local [all...] |
H A D | acpiphp.h | 56 * struct slot - slot information for each *physical* slot 58 struct slot { struct 64 static inline const char *slot_name(struct slot *slot) argument 66 return hotplug_slot_name(slot->hotplug_slot); 98 * struct acpiphp_slot - PCI slot information 100 * PCI slot information for each *physical* PCI slot 107 struct slot *slot; member in struct:acpiphp_slot 124 struct acpiphp_slot *slot; /* parent */ member in struct:acpiphp_func [all...] |
H A D | shpchp.h | 79 struct slot { struct 99 struct slot *p_slot; 114 u32 first_slot; /* First physical slot number */ 174 extern int shpchp_sysfs_enable_slot(struct slot *slot); 175 extern int shpchp_sysfs_disable_slot(struct slot *slot); 180 extern int shpchp_configure_device(struct slot *p_slot); 181 extern int shpchp_unconfigure_device(struct slot *p_slot); 186 static inline const char *slot_name(struct slot *slo argument 242 struct slot *slot; local [all...] |
/drivers/media/video/cx23885/ |
H A D | cimax2.h | 31 int slot, int addr); 33 int slot, int addr, u8 data); 35 int slot, u8 addr); 37 int slot, u8 addr, u8 data); 38 extern int netup_ci_slot_reset(struct dvb_ca_en50221 *en50221, int slot); 39 extern int netup_ci_slot_shutdown(struct dvb_ca_en50221 *en50221, int slot); 40 extern int netup_ci_slot_ts_ctl(struct dvb_ca_en50221 *en50221, int slot); 43 int slot, int open);
|
/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 683 struct cb710_slot *slot = cb710_pdev_to_slot(pdev); local 695 struct cb710_slot *slot = cb710_pdev_to_slot(pdev); local 751 struct cb710_slot *slot = cb710_pdev_to_slot(pdev); local [all...] |
/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 331 pci_renumber_slot(struct pci_slot *slot, int slot_nr) argument 356 pci_destroy_slot(struct pci_slot *slot) argument 378 struct hotplug_slot *slot = pci_slot->hotplug; local [all...] |
/drivers/mca/ |
H A D | mca-legacy.c | 6 * Legacy API means the API that operates in terms of MCA slot number 37 int slot; member in struct:mca_find_adapter_info 42 * find the one with the smallest slot number that's just greater than 43 * or equal to the required slot with a matching id */ 52 if(mca_dev->slot < info->slot) 55 if(!info->mca_dev || info->mca_dev->slot >= mca_dev->slot) 64 * @start: starting slot 81 info.slot 157 int slot; member in struct:mca_find_device_by_slot_info 172 mca_find_device_by_slot(int slot) argument 193 mca_read_stored_pos(int slot, int reg) argument 216 mca_read_pos(int slot, int reg) argument 252 mca_write_pos(int slot, int reg, unsigned char byte) argument 273 mca_set_adapter_name(int slot, char* name) argument 295 mca_mark_as_used(int slot) argument 319 mca_mark_as_unused(int slot) argument [all...] |
/drivers/media/dvb/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 */ 162 static int dvb_ca_en50221_read_data(struct dvb_ca_private *ca, int slot, u8 * ebuf, int ecount); 163 static int dvb_ca_en50221_write_data(struct dvb_ca_private *ca, int slot, u8 * ebuf, int ecount); 199 static int dvb_ca_en50221_check_camstatus(struct dvb_ca_private *ca, int slot) argument 207 return (atomic_read(&ca->slot_info[slot].camchange_count) != 0); 211 slot_status = ca->pub->poll_slot_status(ca->pub, slot, ca->open); 216 int cam_present_old = (ca->slot_info[slot] 250 dvb_ca_en50221_wait_if_status(struct dvb_ca_private *ca, int slot, u8 waitfor, int timeout_hz) argument 297 dvb_ca_en50221_link_init(struct dvb_ca_private *ca, int slot) argument 357 dvb_ca_en50221_read_tuple(struct dvb_ca_private *ca, int slot, int *address, int *tupleType, int *tupleLength, u8 * tuple) argument 407 dvb_ca_en50221_parse_attributes(struct dvb_ca_private *ca, int slot) argument 551 dvb_ca_en50221_set_configoption(struct dvb_ca_private *ca, int slot) argument 586 dvb_ca_en50221_read_data(struct dvb_ca_private *ca, int slot, u8 * ebuf, int ecount) argument 709 dvb_ca_en50221_write_data(struct dvb_ca_private *ca, int slot, u8 * buf, int bytes_write) argument 795 dvb_ca_en50221_slot_shutdown(struct dvb_ca_private *ca, int slot) argument 821 dvb_ca_en50221_camchange_irq(struct dvb_ca_en50221 *pubca, int slot, int change_type) argument 849 dvb_ca_en50221_camready_irq(struct dvb_ca_en50221 *pubca, int slot) argument 868 dvb_ca_en50221_frda_irq(struct dvb_ca_en50221 *pubca, int slot) argument 920 int slot; local 974 int slot; local 1190 int slot; local 1280 u8 slot, connection_id; local 1365 int slot; local 1424 int slot; local 1595 int slot; local [all...] |
/drivers/xen/xen-pciback/ |
H A D | vpci.c | 69 int err = 0, slot, func = -1; local 93 for (slot = 0; slot < PCI_SLOT_MAX; slot++) { 94 if (!list_empty(&vpci_dev->dev_list[slot])) { 95 t = list_entry(list_first(&vpci_dev->dev_list[slot]), 100 "assign to virtual slot %d func %d\n", 101 pci_name(dev), slot, 104 &vpci_dev->dev_list[slot]); 111 /* Assign to a new slot o 142 int slot; local 170 int slot; local 196 int slot; local 221 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 255 unsigned int slot; local 320 unsigned int slot; local 381 unsigned int slot; local 423 unsigned int slot; local 490 get_events(int slot) argument 554 reserve_using_irq(int slot) argument 570 int slot, retval; local 620 int slot; local [all...] |
/drivers/media/dvb/mantis/ |
H A D | mantis_ca.c | 40 static int mantis_ca_read_attr_mem(struct dvb_ca_en50221 *en50221, int slot, int addr) argument 45 dprintk(MANTIS_DEBUG, 1, "Slot(%d): Request Attribute Mem Read", slot); 47 if (slot != 0) 53 static int mantis_ca_write_attr_mem(struct dvb_ca_en50221 *en50221, int slot, int addr, u8 data) argument 58 dprintk(MANTIS_DEBUG, 1, "Slot(%d): Request Attribute Mem Write", slot); 60 if (slot != 0) 66 static int mantis_ca_read_cam_ctl(struct dvb_ca_en50221 *en50221, int slot, u8 addr) argument 71 dprintk(MANTIS_DEBUG, 1, "Slot(%d): Request CAM control Read", slot); 73 if (slot != 0) 79 static int mantis_ca_write_cam_ctl(struct dvb_ca_en50221 *en50221, int slot, u argument 92 mantis_ca_slot_reset(struct dvb_ca_en50221 *en50221, int slot) argument 108 mantis_ca_slot_shutdown(struct dvb_ca_en50221 *en50221, int slot) argument 118 mantis_ts_control(struct dvb_ca_en50221 *en50221, int slot) argument 129 mantis_slot_status(struct dvb_ca_en50221 *en50221, int slot, int open) argument [all...] |