queue.c (0b9112a58836ad6a7e84eebec06a2de9778b7573) | queue.c (93f1c150cb0d043e1e8985db7824b4e2e1ac653f) |
---|---|
1// SPDX-License-Identifier: GPL-2.0-only 2/* 3 * Copyright (C) 2003 Russell King, All Rights Reserved. 4 * Copyright 2006-2007 Pierre Ossman 5 */ 6#include <linux/slab.h> 7#include <linux/module.h> 8#include <linux/blkdev.h> --- 5 unchanged lines hidden (view full) --- 14 15#include <linux/mmc/card.h> 16#include <linux/mmc/host.h> 17 18#include "queue.h" 19#include "block.h" 20#include "core.h" 21#include "card.h" | 1// SPDX-License-Identifier: GPL-2.0-only 2/* 3 * Copyright (C) 2003 Russell King, All Rights Reserved. 4 * Copyright 2006-2007 Pierre Ossman 5 */ 6#include <linux/slab.h> 7#include <linux/module.h> 8#include <linux/blkdev.h> --- 5 unchanged lines hidden (view full) --- 14 15#include <linux/mmc/card.h> 16#include <linux/mmc/host.h> 17 18#include "queue.h" 19#include "block.h" 20#include "core.h" 21#include "card.h" |
22#include "crypto.h" |
|
22#include "host.h" 23 24#define MMC_DMA_MAP_MERGE_SEGMENTS 512 25 26static inline bool mmc_cqe_dcmd_busy(struct mmc_queue *mq) 27{ 28 /* Allow only 1 DCMD at a time */ 29 return mq->in_flight[MMC_ISSUE_DCMD]; --- 372 unchanged lines hidden (view full) --- 402 dma_set_max_seg_size(mmc_dev(host), queue_max_segment_size(mq->queue)); 403 404 INIT_WORK(&mq->recovery_work, mmc_mq_recovery_handler); 405 INIT_WORK(&mq->complete_work, mmc_blk_mq_complete_work); 406 407 mutex_init(&mq->complete_lock); 408 409 init_waitqueue_head(&mq->wait); | 23#include "host.h" 24 25#define MMC_DMA_MAP_MERGE_SEGMENTS 512 26 27static inline bool mmc_cqe_dcmd_busy(struct mmc_queue *mq) 28{ 29 /* Allow only 1 DCMD at a time */ 30 return mq->in_flight[MMC_ISSUE_DCMD]; --- 372 unchanged lines hidden (view full) --- 403 dma_set_max_seg_size(mmc_dev(host), queue_max_segment_size(mq->queue)); 404 405 INIT_WORK(&mq->recovery_work, mmc_mq_recovery_handler); 406 INIT_WORK(&mq->complete_work, mmc_blk_mq_complete_work); 407 408 mutex_init(&mq->complete_lock); 409 410 init_waitqueue_head(&mq->wait); |
411 412 mmc_crypto_setup_queue(mq->queue, host); |
|
410} 411 412static inline bool mmc_merge_capable(struct mmc_host *host) 413{ 414 return host->caps2 & MMC_CAP2_MERGE_CAPABLE; 415} 416 417/* Set queue depth to get a reasonable value for q->nr_requests */ --- 122 unchanged lines hidden --- | 413} 414 415static inline bool mmc_merge_capable(struct mmc_host *host) 416{ 417 return host->caps2 & MMC_CAP2_MERGE_CAPABLE; 418} 419 420/* Set queue depth to get a reasonable value for q->nr_requests */ --- 122 unchanged lines hidden --- |