This source file includes following definitions.
- cvm_oct_get_buffer_ptr
- INTERFACE
- INDEX
1
2
3
4
5
6
7
8
9
10
11
12
13
14 static inline void *cvm_oct_get_buffer_ptr(union cvmx_buf_ptr packet_ptr)
15 {
16 return cvmx_phys_to_ptr(((packet_ptr.s.addr >> 7) - packet_ptr.s.back)
17 << 7);
18 }
19
20
21
22
23
24
25
26 static inline int INTERFACE(int ipd_port)
27 {
28 int interface;
29
30 if (ipd_port == CVMX_PIP_NUM_INPUT_PORTS)
31 return 10;
32 interface = cvmx_helper_get_interface_num(ipd_port);
33 if (interface >= 0)
34 return interface;
35 panic("Illegal ipd_port %d passed to %s\n", ipd_port, __func__);
36 }
37
38
39
40
41
42
43
44 static inline int INDEX(int ipd_port)
45 {
46 return cvmx_helper_get_interface_index_num(ipd_port);
47 }