Searched refs:scmrq (Results 1 – 3 of 3) sorted by relevance
40 static void __scm_free_rq(struct scm_request *scmrq) in __scm_free_rq() argument42 struct aob_rq_header *aobrq = to_aobrq(scmrq); in __scm_free_rq()44 free_page((unsigned long) scmrq->aob); in __scm_free_rq()45 __scm_free_rq_cluster(scmrq); in __scm_free_rq()46 kfree(scmrq->request); in __scm_free_rq()53 struct scm_request *scmrq; in scm_free_rqs() local57 scmrq = list_entry(iter, struct scm_request, list); in scm_free_rqs()58 list_del(&scmrq->list); in scm_free_rqs()59 __scm_free_rq(scmrq); in scm_free_rqs()69 struct scm_request *scmrq; in __scm_alloc_rq() local[all …]
24 void __scm_free_rq_cluster(struct scm_request *scmrq) in __scm_free_rq_cluster() argument28 if (!scmrq->cluster.buf) in __scm_free_rq_cluster()32 free_page((unsigned long) scmrq->cluster.buf[i]); in __scm_free_rq_cluster()34 kfree(scmrq->cluster.buf); in __scm_free_rq_cluster()37 int __scm_alloc_rq_cluster(struct scm_request *scmrq) in __scm_alloc_rq_cluster() argument41 scmrq->cluster.buf = kzalloc(sizeof(void *) * 2 * write_cluster_size, in __scm_alloc_rq_cluster()43 if (!scmrq->cluster.buf) in __scm_alloc_rq_cluster()47 scmrq->cluster.buf[i] = (void *) get_zeroed_page(GFP_DMA); in __scm_alloc_rq_cluster()48 if (!scmrq->cluster.buf[i]) in __scm_alloc_rq_cluster()51 INIT_LIST_HEAD(&scmrq->cluster.list); in __scm_alloc_rq_cluster()[all …]
58 struct aidaw *scm_aidaw_fetch(struct scm_request *scmrq, unsigned int bytes);76 static inline void __scm_free_rq_cluster(struct scm_request *scmrq) {} in __scm_free_rq_cluster() argument77 static inline int __scm_alloc_rq_cluster(struct scm_request *scmrq) in __scm_alloc_rq_cluster() argument81 static inline void scm_request_cluster_init(struct scm_request *scmrq) {} in scm_request_cluster_init() argument82 static inline bool scm_reserve_cluster(struct scm_request *scmrq) in scm_reserve_cluster() argument86 static inline void scm_release_cluster(struct scm_request *scmrq) {} in scm_release_cluster() argument88 static inline bool scm_need_cluster_request(struct scm_request *scmrq) in scm_need_cluster_request() argument92 static inline void scm_initiate_cluster_request(struct scm_request *scmrq) {} in scm_initiate_cluster_request() argument93 static inline void scm_cluster_request_irq(struct scm_request *scmrq) {} in scm_cluster_request_irq() argument94 static inline bool scm_test_cluster_request(struct scm_request *scmrq) in scm_test_cluster_request() argument