Lines Matching refs:amount
1071 * This function adds up the amount of resources needed behind the PPB bridge
1074 * Ouput: amount of resources needed
1095 struct res_needed *amount;
1097 amount = kzalloc(sizeof(*amount), GFP_KERNEL);
1098 if (amount == NULL)
1106 amount->devices[device] = 0;
1122 amount->not_correct = 1;
1123 return amount;
1130 amount->not_correct = 1;
1131 return amount;
1135 amount->not_correct = 1;
1136 return amount;
1139 amount->devices[device] = 1;
1166 amount->io += len[count];
1173 amount->pfmem += len[count];
1182 amount->mem += len[count];
1195 amount->not_correct = 1;
1197 amount->not_correct = 0;
1198 if ((amount->io) && (amount->io < IOBRIDGE))
1199 amount->io = IOBRIDGE;
1200 if ((amount->mem) && (amount->mem < MEMBRIDGE))
1201 amount->mem = MEMBRIDGE;
1202 if ((amount->pfmem) && (amount->pfmem < MEMBRIDGE))
1203 amount->pfmem = MEMBRIDGE;
1204 return amount;
1634 * Input: bus and the amount of resources needed (we know we can assign those,