Searched refs:prz (Results 1 – 3 of 3) sorted by relevance
/linux-3.4.99/drivers/staging/android/ |
D | persistent_ram.c | 39 static inline size_t buffer_size(struct persistent_ram_zone *prz) in buffer_size() argument 41 return atomic_read(&prz->buffer->size); in buffer_size() 44 static inline size_t buffer_start(struct persistent_ram_zone *prz) in buffer_start() argument 46 return atomic_read(&prz->buffer->start); in buffer_start() 50 static inline size_t buffer_start_add(struct persistent_ram_zone *prz, size_t a) in buffer_start_add() argument 56 old = atomic_read(&prz->buffer->start); in buffer_start_add() 58 while (unlikely(new > prz->buffer_size)) in buffer_start_add() 59 new -= prz->buffer_size; in buffer_start_add() 60 } while (atomic_cmpxchg(&prz->buffer->start, old, new) != old); in buffer_start_add() 66 static inline void buffer_size_add(struct persistent_ram_zone *prz, size_t a) in buffer_size_add() argument [all …]
|
D | ram_console.c | 34 struct persistent_ram_zone *prz = console->data; in ram_console_write() local 35 persistent_ram_write(prz, s, count); in ram_console_write() 56 struct persistent_ram_zone *prz; in ram_console_probe() local 58 prz = persistent_ram_init_ringbuffer(&pdev->dev, true); in ram_console_probe() 59 if (IS_ERR(prz)) in ram_console_probe() 60 return PTR_ERR(prz); in ram_console_probe() 69 ram_console_zone = prz; in ram_console_probe() 70 ram_console.data = prz; in ram_console_probe() 97 struct persistent_ram_zone *prz = ram_console_zone; in ram_console_read_old() local 98 size_t old_log_size = persistent_ram_old_size(prz); in ram_console_read_old() [all …]
|
D | persistent_ram.h | 69 int persistent_ram_write(struct persistent_ram_zone *prz, const void *s, 72 size_t persistent_ram_old_size(struct persistent_ram_zone *prz); 73 void *persistent_ram_old(struct persistent_ram_zone *prz); 74 void persistent_ram_free_old(struct persistent_ram_zone *prz); 75 ssize_t persistent_ram_ecc_string(struct persistent_ram_zone *prz,
|