FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
linux/include/asm-generic/dma-contiguous.h at master · fabgithub/linux · GitHub
fabgithub
linux
Repository navigation
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
linux
/
include
/
asm-generic
/
dma-contiguous.h
Copy path
More file actions
More file actions
Latest commit
History
History
History
28 lines (22 loc) · 526 Bytes
Breadcrumbs
linux
/
include
/
asm-generic
/
dma-contiguous.h
Copy path
File metadata and controls
28 lines (22 loc) · 526 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#ifndef
ASM_DMA_CONTIGUOUS_H
#define
ASM_DMA_CONTIGUOUS_H
#ifdef
__KERNEL__
#ifdef
CONFIG_CMA
#include
<linux/device.h>
#include
<linux/dma-contiguous.h>
static
inline
struct
cma
*
dev_get_cma_area
(
struct
device
*
dev
)
{
if
(
dev
&&
dev
->
cma_area
)
return
dev
->
cma_area
;
return
dma_contiguous_default_area
;
}
static
inline
void
dev_set_cma_area
(
struct
device
*
dev
,
struct
cma
*
cma
)
{
if
(
dev
)
dev
->
cma_area
=
cma
;
if
(!
dev
&&
!
dma_contiguous_default_area
)
dma_contiguous_default_area
=
cma
;
}
#endif
#endif
#endif
Back
|
FazBrowse Home
|
New Git URL