Lines Matching refs:amount
1042 * This function adds up the amount of resources needed behind the PPB bridge
1045 * Output: amount of resources needed
1066 struct res_needed *amount;
1068 amount = kzalloc(sizeof(*amount), GFP_KERNEL);
1069 if (amount == NULL)
1077 amount->devices[device] = 0;
1093 amount->not_correct = 1;
1094 return amount;
1100 amount->not_correct = 1;
1101 return amount;
1104 amount->not_correct = 1;
1105 return amount;
1108 amount->devices[device] = 1;
1135 amount->io += len[count];
1142 amount->pfmem += len[count];
1151 amount->mem += len[count];
1164 amount->not_correct = 1;
1166 amount->not_correct = 0;
1167 if ((amount->io) && (amount->io < IOBRIDGE))
1168 amount->io = IOBRIDGE;
1169 if ((amount->mem) && (amount->mem < MEMBRIDGE))
1170 amount->mem = MEMBRIDGE;
1171 if ((amount->pfmem) && (amount->pfmem < MEMBRIDGE))
1172 amount->pfmem = MEMBRIDGE;
1173 return amount;
1600 * Input: bus and the amount of resources needed (we know we can assign those,