Lines Matching defs:mmc_host

292 struct mmc_host {  struct
296 const struct mmc_host_ops *ops; argument
297 struct mmc_pwrseq *pwrseq;
298 unsigned int f_min;
299 unsigned int f_max;
300 unsigned int f_init;
301 u32 ocr_avail;
302 u32 ocr_avail_sdio; /* SDIO-specific OCR */
303 u32 ocr_avail_sd; /* SD-specific OCR */
304 u32 ocr_avail_mmc; /* MMC-specific OCR */
305 struct wakeup_source *ws; /* Enable consume of uevents */
306 u32 max_current_330;
307 u32 max_current_300;
308 u32 max_current_180;
328 u32 caps; /* Host capabilities */
366 u32 caps2; /* More host capabilities */
403 int fixed_drv_type; /* fixed driver type for non-removable media */
405 mmc_pm_flag_t pm_caps; /* supported pm features */
408 unsigned int max_seg_size; /* see blk_queue_max_segment_size */
409 unsigned short max_segs; /* see blk_queue_max_segments */
410 unsigned short unused;
411 unsigned int max_req_size; /* maximum number of bytes in one req */
412 unsigned int max_blk_size; /* maximum size of one mmc block */
413 unsigned int max_blk_count; /* maximum number of blocks in one req */
414 unsigned int max_busy_timeout; /* max busy timeout in ms */
417 spinlock_t lock; /* lock for claim and bus ops */
419 struct mmc_ios ios; /* current io bus settings */
422 unsigned int use_spi_crc:1;
423 unsigned int claimed:1; /* host exclusively claimed */
424 unsigned int doing_init_tune:1; /* initial tuning in progress */
425 unsigned int can_retune:1; /* re-tuning can be used */
426 unsigned int doing_retune:1; /* re-tuning in progress */
427 unsigned int retune_now:1; /* do re-tuning at next req */
428 unsigned int retune_paused:1; /* re-tuning is temporarily disabled */
429 unsigned int retune_crc_disable:1; /* don't trigger retune upon crc */
430 unsigned int can_dma_map_merge:1; /* merging can be used */
432 int rescan_disable; /* disable card detection */
433 int rescan_entered; /* used with nonremovable devices */
435 int need_retune; /* re-tuning is needed */
436 int hold_retune; /* hold off re-tuning */
437 unsigned int retune_period; /* re-tuning period in secs */
438 struct timer_list retune_timer; /* for periodic re-tuning */
440 bool trigger_card_event; /* card_event necessary */
442 struct mmc_card *card; /* device attached to this host */
444 wait_queue_head_t wq;
445 struct mmc_ctx *claimer; /* context that has host claimed */
446 int claim_cnt; /* "claim" nesting count */
447 struct mmc_ctx default_ctx; /* default context */
449 struct delayed_work detect;
450 int detect_change; /* card detect flag */
451 struct mmc_slot slot;
453 const struct mmc_bus_ops *bus_ops; /* current bus driver */
455 unsigned int sdio_irqs;
456 struct task_struct *sdio_irq_thread;
457 struct delayed_work sdio_irq_work;
458 bool sdio_irq_pending;
459 atomic_t sdio_irq_thread_abort;
461 mmc_pm_flag_t pm_flags; /* requested pm features */
463 struct led_trigger *led; /* activity led */
466 bool regulator_enabled; /* regulator state */
468 struct mmc_supply supply;
470 struct dentry *debugfs_root;
473 struct mmc_request *ongoing_mrq;
476 struct fault_attr fail_mmc_request;
479 unsigned int actual_clock; /* Actual HC clock rate */
481 unsigned int slotno; /* used for sdio acpi binding */
506 struct mmc_host *mmc_alloc_host(int extra, struct device *); argument