Lines Matching full:amount
1041 * This function adds up the amount of resources needed behind the PPB bridge
1044 * Output: amount of resources needed
1065 struct res_needed *amount; in scan_behind_bridge() local
1067 amount = kzalloc(sizeof(*amount), GFP_KERNEL); in scan_behind_bridge()
1068 if (amount == NULL) in scan_behind_bridge()
1076 amount->devices[device] = 0; in scan_behind_bridge()
1092 amount->not_correct = 1; in scan_behind_bridge()
1093 return amount; in scan_behind_bridge()
1099 amount->not_correct = 1; in scan_behind_bridge()
1100 return amount; in scan_behind_bridge()
1103 amount->not_correct = 1; in scan_behind_bridge()
1104 return amount; in scan_behind_bridge()
1107 amount->devices[device] = 1; in scan_behind_bridge()
1134 amount->io += len[count]; in scan_behind_bridge()
1141 amount->pfmem += len[count]; in scan_behind_bridge()
1150 amount->mem += len[count]; in scan_behind_bridge()
1163 amount->not_correct = 1; in scan_behind_bridge()
1165 amount->not_correct = 0; in scan_behind_bridge()
1166 if ((amount->io) && (amount->io < IOBRIDGE)) in scan_behind_bridge()
1167 amount->io = IOBRIDGE; in scan_behind_bridge()
1168 if ((amount->mem) && (amount->mem < MEMBRIDGE)) in scan_behind_bridge()
1169 amount->mem = MEMBRIDGE; in scan_behind_bridge()
1170 if ((amount->pfmem) && (amount->pfmem < MEMBRIDGE)) in scan_behind_bridge()
1171 amount->pfmem = MEMBRIDGE; in scan_behind_bridge()
1172 return amount; in scan_behind_bridge()
1598 * Input: bus and the amount of resources needed (we know we can assign those,