Lines Matching defs:bank

177 		 * OBP. This contains the bank-status for each logical bank.
180 find_prop(pnode, "bank-status"));
184 * process each logical bank
188 * Get the bank-status string for this bank
205 * create a bank_node for this bank
211 * find the segment to which this bank
225 memory_bank_t *new, *bank;
249 /* Handle the first bank found */
256 /* find last bank in list */
257 bank = bank_head;
258 while (bank->next)
259 bank = bank->next;
261 /* insert this bank into the list */
262 bank->next = new;
271 memory_bank_t *bank, *tmp_bank;
280 log_printf("\nCannot find any memory bank/segment info.\n");
284 for (bank = bank_head; bank; bank = bank->next) {
290 * bank belongs is determined from the um abd uk bits
296 intlv = ((bank->lk ^ 0xF) + 1);
297 base = bank->um & ~(bank->uk);
299 mcid = SG_PORTID_TO_SAFARI_ID(bank->portid);
301 /* If bank is not valid, set size to zero incase it's garbage */
302 if (bank->valid)
303 bank_size = ((bank->bank_size) / MBYTE);
314 /* Find the matching segment for this bank. */
322 switch ((bank->id) % 4) {
328 tmp_bank = bank->next;
334 /* Is next bank on the same mc ? */
356 tmp_bank = bank->next;
362 /* Is next bank on the same mc ? */
397 if (bank->valid == 0)
404 print_us3_memory_line(bank->portid, bank->id, bank_size,
405 bank->bank_status, dimm_size, intlv, seg->id);
420 "\nError: total bank size [%lldMB] does not match total "
433 memory_bank_t *bank = bank_tail;
435 if (bank->valid != 1)
438 base = bank->um & ~(bank->uk);
442 * This bank is part of a new segment, so create
451 new->size = (((uint64_t)bank->uk +1) << 26);
452 new->intlv = ((bank->lk ^ 0xF) + 1);
463 * add bank into segs bank list. Note we add at the head
465 bank->seg_next = new->banks;
466 new->banks = bank;
494 memory_bank_t *bank;
498 log_printf("\nCannot find any memory bank/segment info.\n");
502 for (bank = bank_head; bank; bank = bank->next) {
504 * check to see if the bank is invalid and also
506 * means the bank is empty.
509 if ((bank->valid == 0) &&
510 (strcmp(bank->bank_status, "unpopulated"))) {
524 print_us3_failed_memory_line(bank->portid, bank->id,
525 bank->bank_status);