Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
clk-divider.c File Reference
#include <linux/clk-provider.h>
#include <linux/module.h>
#include <linux/slab.h>
#include <linux/io.h>
#include <linux/err.h>
#include <linux/string.h>

Go to the source code of this file.

Macros

#define to_clk_divider(_hw)   container_of(_hw, struct clk_divider, hw)
 
#define div_mask(d)   ((1 << (d->width)) - 1)
 
#define is_power_of_two(i)   !(i & ~i)
 
#define MULT_ROUND_UP(r, m)   ((r) * (m) + (m) - 1)
 

Functions

 EXPORT_SYMBOL_GPL (clk_divider_ops)
 
: name of this clock

clk_register_divider_table - register a table based divider clock with the clock framework : device registering this clock

: name of clock's parent : framework-specific flags : register address to adjust divider : number of bits to shift the bitfield : width of the bitfield : divider-specific flags for this clock : array of divider/value pairs ending with a div set to 0 : shared register lock for this clock

struct clkclk_register_divider (struct device *dev, const char *name, const char *parent_name, unsigned long flags, void __iomem *reg, u8 shift, u8 width, u8 clk_divider_flags, spinlock_t *lock)
 
struct clkclk_register_divider_table (struct device *dev, const char *name, const char *parent_name, unsigned long flags, void __iomem *reg, u8 shift, u8 width, u8 clk_divider_flags, const struct clk_div_table *table, spinlock_t *lock)
 

Variables

struct clk_ops clk_divider_ops
 

Macro Definition Documentation

#define div_mask (   d)    ((1 << (d->width)) - 1)

Definition at line 32 of file clk-divider.c.

#define is_power_of_two (   i)    !(i & ~i)

Definition at line 33 of file clk-divider.c.

#define MULT_ROUND_UP (   r,
  m 
)    ((r) * (m) + (m) - 1)

Definition at line 124 of file clk-divider.c.

#define to_clk_divider (   _hw)    container_of(_hw, struct clk_divider, hw)

Definition at line 30 of file clk-divider.c.

Function Documentation

struct clk* clk_register_divider ( struct device dev,
const char name,
const char parent_name,
unsigned long  flags,
void __iomem reg,
u8  shift,
u8  width,
u8  clk_divider_flags,
spinlock_t lock 
)
read

Definition at line 290 of file clk-divider.c.

struct clk* clk_register_divider_table ( struct device dev,
const char name,
const char parent_name,
unsigned long  flags,
void __iomem reg,
u8  shift,
u8  width,
u8  clk_divider_flags,
const struct clk_div_table table,
spinlock_t lock 
)
read

Definition at line 313 of file clk-divider.c.

EXPORT_SYMBOL_GPL ( clk_divider_ops  )

Variable Documentation

struct clk_ops clk_divider_ops
Initial value:
= {
.recalc_rate = clk_divider_recalc_rate,
.round_rate = clk_divider_round_rate,
.set_rate = clk_divider_set_rate,
}

Definition at line 230 of file clk-divider.c.