/* * This file is based on code from OCTEON SDK by Cavium Networks. * * Copyright (c) 2003-2007 Cavium Networks * * This file is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License, Version 2, as * published by the Free Software Foundation. */ #include <asm/octeon/cvmx-pip.h> #include <asm/octeon/cvmx-helper.h> #include <asm/octeon/cvmx-helper-util.h> /** * cvm_oct_get_buffer_ptr - convert packet data address to pointer * @packet_ptr: Packet data hardware address * * Returns Packet buffer pointer */
static inline void *cvm_oct_get_buffer_ptr(union cvmx_buf_ptr packet_ptr) { return cvmx_phys_to_ptr(((packet_ptr.s.addr >> 7) - packet_ptr.s.back) << 7); }Contributors
Person | Tokens | Prop | Commits | CommitProp |
David Daney | 36 | 100.00% | 1 | 100.00% |
Total | 36 | 100.00% | 1 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp |
David Daney | 23 | 51.11% | 1 | 33.33% |
Aaro Koskinen | 13 | 28.89% | 1 | 33.33% |
Janne Huttunen | 9 | 20.00% | 1 | 33.33% |
Total | 45 | 100.00% | 3 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp |
David Daney | 13 | 81.25% | 1 | 50.00% |
Janne Huttunen | 3 | 18.75% | 1 | 50.00% |
Total | 16 | 100.00% | 2 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp |
David Daney | 74 | 67.27% | 2 | 33.33% |
Janne Huttunen | 21 | 19.09% | 1 | 16.67% |
Aaro Koskinen | 14 | 12.73% | 2 | 33.33% |
Justin P. Mattock | 1 | 0.91% | 1 | 16.67% |
Total | 110 | 100.00% | 6 | 100.00% |