Lines Matching defs: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;
1067 amount = kzalloc(sizeof(*amount), GFP_KERNEL);
1068 if (amount == NULL)
1076 amount->devices[device] = 0;
1092 amount->not_correct = 1;
1093 return amount;
1099 amount->not_correct = 1;
1100 return amount;
1103 amount->not_correct = 1;
1104 return amount;
1107 amount->devices[device] = 1;
1134 amount->io += len[count];
1141 amount->pfmem += len[count];
1150 amount->mem += len[count];
1163 amount->not_correct = 1;
1165 amount->not_correct = 0;
1166 if ((amount->io) && (amount->io < IOBRIDGE))
1167 amount->io = IOBRIDGE;
1168 if ((amount->mem) && (amount->mem < MEMBRIDGE))
1169 amount->mem = MEMBRIDGE;
1170 if ((amount->pfmem) && (amount->pfmem < MEMBRIDGE))
1171 amount->pfmem = MEMBRIDGE;
1172 return amount;
1598 * Input: bus and the amount of resources needed (we know we can assign those,