Lines Matching defs:mmc_host
158 struct mmc_host { struct
162 const struct mmc_host_ops *ops; argument
163 unsigned int f_min;
164 unsigned int f_max;
165 unsigned int f_init;
166 u32 ocr_avail;
167 u32 ocr_avail_sdio; /* SDIO-specific OCR */
168 u32 ocr_avail_sd; /* SD-specific OCR */
169 u32 ocr_avail_mmc; /* MMC-specific OCR */
170 struct notifier_block pm_notify;
190 unsigned long caps; /* Host capabilities */
227 unsigned int caps2; /* More host capabilities */
242 mmc_pm_flag_t pm_caps; /* supported pm features */
243 unsigned int power_notify_type;
249 int clk_requests; /* internal reference counter */
250 unsigned int clk_delay; /* number of MCI clk hold cycles */
251 bool clk_gated; /* clock gated */
252 struct delayed_work clk_gate_work; /* delayed clock gate */
253 unsigned int clk_old; /* old clock value cache */
254 spinlock_t clk_lock; /* lock for clk fields */
255 struct mutex clk_gate_mutex; /* mutex for clock gating */
256 struct device_attribute clkgate_delay_attr;
257 unsigned long clkgate_delay;
261 unsigned int max_seg_size; /* see blk_queue_max_segment_size */
262 unsigned short max_segs; /* see blk_queue_max_segments */
263 unsigned short unused;
264 unsigned int max_req_size; /* maximum number of bytes in one req */
265 unsigned int max_blk_size; /* maximum size of one mmc block */
266 unsigned int max_blk_count; /* maximum number of blocks in one req */
267 unsigned int max_discard_to; /* max. discard timeout in ms */
270 spinlock_t lock; /* lock for claim and bus ops */
272 struct mmc_ios ios; /* current io bus settings */
273 u32 ocr; /* the current OCR setting */
276 unsigned int use_spi_crc:1;
277 unsigned int claimed:1; /* host exclusively claimed */
278 unsigned int bus_dead:1; /* bus has been released */
280 unsigned int removed:1; /* host is being removed */
283 int rescan_disable; /* disable card detection */
285 struct mmc_card *card; /* device attached to this host */
287 wait_queue_head_t wq;
288 struct task_struct *claimer; /* task that has host claimed */
289 int claim_cnt; /* "claim" nesting count */
291 struct delayed_work detect;
292 int detect_change; /* card detect flag */
293 struct mmc_hotplug hotplug;
295 const struct mmc_bus_ops *bus_ops; /* current bus driver */
296 unsigned int bus_refs; /* reference counter */
298 unsigned int sdio_irqs;
299 struct task_struct *sdio_irq_thread;
300 bool sdio_irq_pending;
301 atomic_t sdio_irq_thread_abort;
326 extern struct mmc_host *mmc_alloc_host(int extra, struct device *); argument