• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/arch/powerpc/kernel/

Lines Matching refs:part

13  * TODO: Split the /dev/nvram part (that one can use
161 int part, offset;
165 if (copy_from_user(&part, (void __user*)arg, sizeof(part)) != 0)
167 if (part < pmac_nvram_OF || part > pmac_nvram_NR)
169 offset = pmac_get_partition(part);
216 static int nvram_write_header(struct nvram_partition * part)
221 tmp_index = part->index;
222 rc = ppc_md.nvram_write((char *)&part->header, NVRAM_HEADER_LEN, &tmp_index);
250 struct nvram_partition * part;
254 part = list_entry(p, struct nvram_partition, partition);
256 if (sig && part->header.signature != sig)
258 if (name && 0 != strncmp(name, part->header.name, 12))
260 return part;
271 struct nvram_partition * part;
276 part = list_entry(i, struct nvram_partition, partition);
277 if (part->header.signature != NVRAM_SIG_OS)
281 part->header.signature = NVRAM_SIG_FREE;
282 sprintf(part->header.name, "wwwwwwwwwwww");
283 part->header.checksum = nvram_checksum(&part->header);
286 list_for_each_prev(j, &part->partition) {
292 part->header.length += cur_part->header.length;
293 part->header.checksum = nvram_checksum(&part->header);
294 part->index = cur_part->index;
298 j = &part->partition; /* fixup our loop */
302 list_for_each(j, &part->partition) {
308 part->header.length += cur_part->header.length;
309 part->header.checksum = nvram_checksum(&part->header);
313 j = &part->partition; /* fixup our loop */
316 rc = nvram_write_header(part);
335 struct nvram_partition *part;
345 list_for_each_entry(part, &nvram_part->partition, partition) {
346 if (part->header.signature != NVRAM_SIG_FREE)
349 if (part->header.length >= NVRAM_MAX_REQ) {
351 free_part = part;
354 if (!size && part->header.length >= NVRAM_MIN_REQ) {
356 free_part = part;
393 nvram_error_log_size = ((part->header.length - 1) *
439 struct nvram_partition * part;
454 part = list_entry(p, struct nvram_partition, partition);
455 if (part->header.signature != NVRAM_SIG_OS)
458 if (strcmp(part->header.name, "ppc64,linux"))
461 if (part->header.length >= NVRAM_MIN_REQ) {
463 nvram_error_log_index = part->index + NVRAM_HEADER_LEN;
464 nvram_error_log_size = ((part->header.length - 1) *