Lines Matching full:rb
93 struct persistent_ram_buffer *rb = NULL; in param_parse_pstore() local
113 rb = (struct persistent_ram_buffer *)gd->pstore_addr; in param_parse_pstore()
116 if (rb->sig != PERSISTENT_RAM_SIG) { in param_parse_pstore()
117 rb->sig = PERSISTENT_RAM_SIG; in param_parse_pstore()
118 rb->start = 0x0; in param_parse_pstore()
119 rb->size = 0x0; in param_parse_pstore()
122 if (rb->size > pstore_size) in param_parse_pstore()
123 rb->size = pstore_size; in param_parse_pstore()
125 if (rb->start >= pstore_size) in param_parse_pstore()
126 rb->start = 0; in param_parse_pstore()
134 struct persistent_ram_buffer *rb = (struct persistent_ram_buffer *)gd->pstore_addr; in putc_to_ram() local
138 if (!rb || pstore_size == 0) in putc_to_ram()
141 dst = rb->data + rb->start; in putc_to_ram()
144 if (rb->size < pstore_size) in putc_to_ram()
145 rb->size++; in putc_to_ram()
147 rb->start++; in putc_to_ram()
148 if (rb->start >= pstore_size) in putc_to_ram()
149 rb->start = 0; in putc_to_ram()