#include <linux/bsg-lib.h>
#include <linux/dma-mapping.h>
#include <scsi/scsi.h>
#include <scsi/scsi_host.h>
#include "ufs_bsg.h"
#include <ufs/ufshcd.h>
#include "ufshcd-priv.h"
static int ufs_bsg_get_query_desc_size(struct ufs_hba *hba, int *desc_len,
struct utp_upiu_query *qr)
{ … }
static int ufs_bsg_alloc_desc_buffer(struct ufs_hba *hba, struct bsg_job *job,
uint8_t **desc_buff, int *desc_len,
enum query_opcode desc_op)
{ … }
static int ufs_bsg_exec_advanced_rpmb_req(struct ufs_hba *hba, struct bsg_job *job)
{ … }
static int ufs_bsg_request(struct bsg_job *job)
{ … }
void ufs_bsg_remove(struct ufs_hba *hba)
{ … }
static inline void ufs_bsg_node_release(struct device *dev)
{ … }
int ufs_bsg_probe(struct ufs_hba *hba)
{ … }