/* * 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 | 22 | 46.81% | 1 | 25.00% |
Aaro Koskinen | 13 | 27.66% | 1 | 25.00% |
Janne Huttunen | 9 | 19.15% | 1 | 25.00% |
Craig Kewley | 3 | 6.38% | 1 | 25.00% |
Total | 47 | 100.00% | 4 | 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 | 73 | 65.18% | 2 | 28.57% |
Janne Huttunen | 21 | 18.75% | 1 | 14.29% |
Aaro Koskinen | 14 | 12.50% | 2 | 28.57% |
Craig Kewley | 3 | 2.68% | 1 | 14.29% |
Justin P. Mattock | 1 | 0.89% | 1 | 14.29% |
Total | 112 | 100.00% | 7 | 100.00% |