Lines Matching defs:mmc_host

275 struct mmc_host {  struct
279 const struct mmc_host_ops *ops; argument
280 struct mmc_pwrseq *pwrseq;
281 unsigned int f_min;
282 unsigned int f_max;
283 unsigned int f_init;
284 u32 ocr_avail;
285 u32 ocr_avail_sdio; /* SDIO-specific OCR */
286 u32 ocr_avail_sd; /* SD-specific OCR */
287 u32 ocr_avail_mmc; /* MMC-specific OCR */
289 struct notifier_block pm_notify;
291 struct wakeup_source *ws; /* Enable consume of uevents */
292 u32 max_current_330;
293 u32 max_current_300;
294 u32 max_current_180;
314 u32 caps; /* Host capabilities */
352 u32 caps2; /* More host capabilities */
381 int fixed_drv_type; /* fixed driver type for non-removable media */
383 mmc_pm_flag_t pm_caps; /* supported pm features */
386 unsigned int max_seg_size; /* see blk_queue_max_segment_size */
387 unsigned short max_segs; /* see blk_queue_max_segments */
388 unsigned short unused;
389 unsigned int max_req_size; /* maximum number of bytes in one req */
390 unsigned int max_blk_size; /* maximum size of one mmc block */
391 unsigned int max_blk_count; /* maximum number of blocks in one req */
392 unsigned int max_busy_timeout; /* max busy timeout in ms */
395 spinlock_t lock; /* lock for claim and bus ops */
397 struct mmc_ios ios; /* current io bus settings */
400 unsigned int use_spi_crc:1;
401 unsigned int claimed:1; /* host exclusively claimed */
402 unsigned int bus_dead:1; /* bus has been released */
403 unsigned int doing_init_tune:1; /* initial tuning in progress */
404 unsigned int can_retune:1; /* re-tuning can be used */
405 unsigned int doing_retune:1; /* re-tuning in progress */
406 unsigned int retune_now:1; /* do re-tuning at next req */
407 unsigned int retune_paused:1; /* re-tuning is temporarily disabled */
408 unsigned int use_blk_mq:1; /* use blk-mq */
409 unsigned int retune_crc_disable:1; /* don't trigger retune upon crc */
410 unsigned int can_dma_map_merge:1; /* merging can be used */
412 int rescan_disable; /* disable card detection */
413 int rescan_entered; /* used with nonremovable devices */
415 int need_retune; /* re-tuning is needed */
416 int hold_retune; /* hold off re-tuning */
417 unsigned int retune_period; /* re-tuning period in secs */
418 struct timer_list retune_timer; /* for periodic re-tuning */
420 bool trigger_card_event; /* card_event necessary */
422 struct mmc_card *card; /* device attached to this host */
424 wait_queue_head_t wq;
425 struct mmc_ctx *claimer; /* context that has host claimed */
426 int claim_cnt; /* "claim" nesting count */
427 struct mmc_ctx default_ctx; /* default context */
429 struct delayed_work detect;
430 int detect_change; /* card detect flag */
431 struct mmc_slot slot;
433 const struct mmc_bus_ops *bus_ops; /* current bus driver */
434 unsigned int bus_refs; /* reference counter */
436 unsigned int sdio_irqs;
437 struct task_struct *sdio_irq_thread;
438 struct delayed_work sdio_irq_work;
439 bool sdio_irq_pending;
440 atomic_t sdio_irq_thread_abort;
442 mmc_pm_flag_t pm_flags; /* requested pm features */
444 struct led_trigger *led; /* activity led */
447 bool regulator_enabled; /* regulator state */
449 struct mmc_supply supply;
451 struct dentry *debugfs_root;
454 struct mmc_request *ongoing_mrq;
457 struct fault_attr fail_mmc_request;
482 struct mmc_host *mmc_alloc_host(int extra, struct device *); argument