/* * 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 | david daney | 36 | 100.00% | 1 | 100.00% |
Total | 36 | 100.00% | 1 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp | |
david daney | david daney | 31 | 70.45% | 1 | 50.00% |
janne huttunen | janne huttunen | 13 | 29.55% | 1 | 50.00% |
Total | 44 | 100.00% | 2 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp | |
david daney | david daney | 13 | 81.25% | 1 | 50.00% |
janne huttunen | janne huttunen | 3 | 18.75% | 1 | 50.00% |
Total | 16 | 100.00% | 2 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp | |
david daney | david daney | 82 | 75.23% | 2 | 40.00% |
janne huttunen | janne huttunen | 25 | 22.94% | 1 | 20.00% |
aaro koskinen | aaro koskinen | 1 | 0.92% | 1 | 20.00% |
justin mattock | justin mattock | 1 | 0.92% | 1 | 20.00% |
Total | 109 | 100.00% | 5 | 100.00% |