~ubuntu-branches/ubuntu/saucy/linux-ti-omap4/saucy-proposed

« back to all changes in this revision

Viewing changes to drivers/net/ethernet/broadcom/bnx2x/bnx2x_stats.h

  • Committer: Package Import Robot
  • Author(s): Paolo Pisati, Paolo Pisati, Stefan Bader, Upstream Kernel Changes
  • Date: 2012-08-15 17:17:43 UTC
  • Revision ID: package-import@ubuntu.com-20120815171743-h5wnuf51xe7pvdid
Tags: 3.5.0-207.13
[ Paolo Pisati ]

* Start new release

[ Stefan Bader ]

* (config) Enable getabis to use local package copies

[ Upstream Kernel Changes ]

* fixup: gargabe collect iva_seq[0|1] init
* [Config] enable all SND_OMAP_SOC_*s
* fixup: cm2xxx_3xxx.o is needed for omap2_cm_read|write_reg
* fixup: add some snd_soc_dai* helper functions
* fixup: s/snd_soc_dpcm_params/snd_soc_dpcm/g
* fixup: typo, no_host_mode and useless SDP4430 init
* fixup: enable again aess hwmod

Show diffs side-by-side

added added

removed removed

Lines of Context:
338
338
                s_hi += a_hi + ((s_lo < a_lo) ? 1 : 0); \
339
339
        } while (0)
340
340
 
 
341
#define LE32_0 ((__force __le32) 0)
 
342
#define LE16_0 ((__force __le16) 0)
 
343
 
 
344
/* The _force is for cases where high value is 0 */
 
345
#define ADD_64_LE(s_hi, a_hi_le, s_lo, a_lo_le) \
 
346
                ADD_64(s_hi, le32_to_cpu(a_hi_le), \
 
347
                       s_lo, le32_to_cpu(a_lo_le))
 
348
 
 
349
#define ADD_64_LE16(s_hi, a_hi_le, s_lo, a_lo_le) \
 
350
                ADD_64(s_hi, le16_to_cpu(a_hi_le), \
 
351
                       s_lo, le16_to_cpu(a_lo_le))
 
352
 
341
353
/* difference = minuend - subtrahend */
342
354
#define DIFF_64(d_hi, m_hi, s_hi, d_lo, m_lo, s_lo) \
343
355
        do { \
529
541
 * @bp:         driver handle
530
542
 */
531
543
void bnx2x_save_statistics(struct bnx2x *bp);
 
544
 
 
545
void bnx2x_afex_collect_stats(struct bnx2x *bp, void *void_afex_stats,
 
546
                              u32 stats_type);
532
547
#endif /* BNX2X_STATS_H */