Lines Matching defs:mmc_host
202 struct mmc_host { struct
206 const struct mmc_host_ops *ops; argument
207 struct mmc_pwrseq *pwrseq;
208 unsigned int f_min;
209 unsigned int f_max;
210 unsigned int f_init;
211 u32 ocr_avail;
212 u32 ocr_avail_sdio; /* SDIO-specific OCR */
213 u32 ocr_avail_sd; /* SD-specific OCR */
214 u32 ocr_avail_mmc; /* MMC-specific OCR */
215 struct notifier_block pm_notify;
216 u32 max_current_330;
217 u32 max_current_300;
218 u32 max_current_180;
238 u32 caps; /* Host capabilities */
269 u32 caps2; /* More host capabilities */
293 mmc_pm_flag_t pm_caps; /* supported pm features */
296 unsigned int max_seg_size; /* see blk_queue_max_segment_size */
297 unsigned short max_segs; /* see blk_queue_max_segments */
298 unsigned short unused;
299 unsigned int max_req_size; /* maximum number of bytes in one req */
300 unsigned int max_blk_size; /* maximum size of one mmc block */
301 unsigned int max_blk_count; /* maximum number of blocks in one req */
302 unsigned int max_busy_timeout; /* max busy timeout in ms */
305 spinlock_t lock; /* lock for claim and bus ops */
307 struct mmc_ios ios; /* current io bus settings */
310 unsigned int use_spi_crc:1;
311 unsigned int claimed:1; /* host exclusively claimed */
312 unsigned int bus_dead:1; /* bus has been released */
314 unsigned int removed:1; /* host is being removed */
316 unsigned int can_retune:1; /* re-tuning can be used */
317 unsigned int doing_retune:1; /* re-tuning in progress */
318 unsigned int retune_now:1; /* do re-tuning at next req */
320 int rescan_disable; /* disable card detection */
321 int rescan_entered; /* used with nonremovable devices */
323 int need_retune; /* re-tuning is needed */
324 int hold_retune; /* hold off re-tuning */
325 unsigned int retune_period; /* re-tuning period in secs */
326 struct timer_list retune_timer; /* for periodic re-tuning */
328 bool trigger_card_event; /* card_event necessary */
330 struct mmc_card *card; /* device attached to this host */
332 wait_queue_head_t wq;
333 struct task_struct *claimer; /* task that has host claimed */
334 int claim_cnt; /* "claim" nesting count */
336 struct delayed_work detect;
337 int detect_change; /* card detect flag */
338 struct mmc_slot slot;
340 const struct mmc_bus_ops *bus_ops; /* current bus driver */
341 unsigned int bus_refs; /* reference counter */
343 unsigned int sdio_irqs;
344 struct task_struct *sdio_irq_thread;
345 bool sdio_irq_pending;
346 atomic_t sdio_irq_thread_abort;
348 mmc_pm_flag_t pm_flags; /* requested pm features */
350 struct led_trigger *led; /* activity led */
376 struct mmc_host *mmc_alloc_host(int extra, struct device *); argument