tag | line | file | source code |
mp | 74 | arch/i386/kernel/smp.c | static int mpf_checksum(unsigned char *mp, int len) |
mp | 78 | arch/i386/kernel/smp.c | sum+=*mp++; |
mp | 341 | arch/i386/kernel/smp.c | static void install_trampoline(unsigned char *mp) |
mp | 343 | arch/i386/kernel/smp.c | memcpy(mp,trampoline_data,sizeof(trampoline_data)); |
mp | 263 | drivers/cdrom/aztcd.c | static long azt_msf2hsg(struct msf *mp); |
mp | 1706 | drivers/cdrom/aztcd.c | static long azt_msf2hsg(struct msf *mp) |
mp | 1707 | drivers/cdrom/aztcd.c | { return azt_bcd2bin(mp -> frame) + azt_bcd2bin(mp -> sec) * 75 |
mp | 1708 | drivers/cdrom/aztcd.c | + azt_bcd2bin(mp -> min) * 4500 - CD_BLOCK_OFFSET; |
mp | 110 | drivers/cdrom/gscd.c | static long gscd_msf2hsg (struct msf *mp); |
mp | 1094 | drivers/cdrom/gscd.c | static long gscd_msf2hsg (struct msf *mp) |
mp | 1096 | drivers/cdrom/gscd.c | return gscd_bcd2bin(mp -> frame) |
mp | 1097 | drivers/cdrom/gscd.c | + gscd_bcd2bin(mp -> sec) * CD_FRAMES |
mp | 1098 | drivers/cdrom/gscd.c | + gscd_bcd2bin(mp -> min) * CD_FRAMES * CD_SECS |
mp | 274 | drivers/cdrom/mcd.c | msf2hsg(struct msf *mp) |
mp | 276 | drivers/cdrom/mcd.c | return bcd2bin(mp -> frame) |
mp | 277 | drivers/cdrom/mcd.c | + bcd2bin(mp -> sec) * 75 |
mp | 278 | drivers/cdrom/mcd.c | + bcd2bin(mp -> min) * 4500 |
mp | 429 | drivers/cdrom/optcd.c | static long msf2hsg(struct msf *mp) { |
mp | 431 | drivers/cdrom/optcd.c | if (mp -> min >= 70) |
mp | 433 | drivers/cdrom/optcd.c | if (mp -> sec >= 60) |
mp | 435 | drivers/cdrom/optcd.c | if (mp -> frame >= 75) |
mp | 438 | drivers/cdrom/optcd.c | return bcd2bin(mp -> frame) |
mp | 439 | drivers/cdrom/optcd.c | + bcd2bin(mp -> sec) * 75 |
mp | 440 | drivers/cdrom/optcd.c | + bcd2bin(mp -> min) * 4500 |
mp | 238 | drivers/cdrom/sjcd.c | static long msf2hsg( struct msf *mp ){ |
mp | 239 | drivers/cdrom/sjcd.c | return( bcd2bin( mp->frame ) + bcd2bin( mp->sec ) * 75 |
mp | 240 | drivers/cdrom/sjcd.c | + bcd2bin( mp->min ) * 4500 - 150 ); |
mp | 651 | drivers/cdrom/sjcd.c | static int sjcd_play( struct sjcd_play_msf *mp ){ |
mp | 663 | drivers/cdrom/sjcd.c | msf.start = mp->start; |
mp | 671 | drivers/cdrom/sjcd.c | sjcd_send_6_cmd( SCMD_PLAY, mp ); |
mp | 3176 | drivers/scsi/53c7,8xx.c | {DT_help, "?", 0} , TOKEN(h,0), TOKEN(i,0), TOKEN(mp,2), |
mp | 146 | kernel/module.c | struct module *mp; |
mp | 163 | kernel/module.c | if ((mp = (struct module*) kmalloc(sspace, GFP_KERNEL)) == NULL) { |
mp | 166 | kernel/module.c | strcpy((char *)(mp + 1), name); /* why not? */ |
mp | 170 | kernel/module.c | kfree_s(mp, sspace); |
mp | 174 | kernel/module.c | mp->next = module_list; |
mp | 175 | kernel/module.c | mp->ref = NULL; |
mp | 176 | kernel/module.c | mp->symtab = NULL; |
mp | 177 | kernel/module.c | mp->name = (char *)(mp + 1); |
mp | 178 | kernel/module.c | mp->size = npages; |
mp | 179 | kernel/module.c | mp->addr = addr; |
mp | 180 | kernel/module.c | mp->state = MOD_UNINITIALIZED; |
mp | 181 | kernel/module.c | mp->cleanup = NULL; |
mp | 184 | kernel/module.c | module_list = mp; /* link it in */ |
mp | 187 | kernel/module.c | mp->name, (unsigned long) mp->size, (unsigned long) mp->addr)); |
mp | 199 | kernel/module.c | struct module *mp; |
mp | 229 | kernel/module.c | if ((mp = find_module(name)) == NULL) |
mp | 231 | kernel/module.c | if ((codesize + sizeof (long) + PAGE_SIZE - 1) / PAGE_SIZE > mp->size) |
mp | 233 | kernel/module.c | memcpy_fromfs((char *)mp->addr + sizeof (long), code, codesize); |
mp | 234 | kernel/module.c | memset((char *)mp->addr + sizeof (long) + codesize, 0, |
mp | 235 | kernel/module.c | mp->size * PAGE_SIZE - (codesize + sizeof (long))); |
mp | 238 | kernel/module.c | mp->cleanup = rt.cleanup; |
mp | 284 | kernel/module.c | mp->symtab = newtab; |
mp | 309 | kernel/module.c | ref->module = mp; |
mp | 319 | kernel/module.c | mp->state = MOD_RUNNING; |
mp | 327 | kernel/module.c | struct module *mp; |
mp | 337 | kernel/module.c | if ((mp = find_module(name)) == NULL) |
mp | 339 | kernel/module.c | if ((mp->ref != NULL) || (GET_USE_COUNT(mp) != 0)) |
mp | 341 | kernel/module.c | if (mp->state == MOD_RUNNING) |
mp | 342 | kernel/module.c | (*mp->cleanup)(); |
mp | 343 | kernel/module.c | mp->state = MOD_DELETED; |
mp | 377 | kernel/module.c | struct module *mp = module_list; |
mp | 381 | kernel/module.c | for (mp = module_list; mp; mp = mp->next) { |
mp | 382 | kernel/module.c | if (mp->symtab && mp->symtab->n_symbols) { |
mp | 384 | kernel/module.c | nmodsyms += mp->symtab->n_symbols + 1; |
mp | 398 | kernel/module.c | for (mp = module_list; mp; mp = mp->next) { |
mp | 399 | kernel/module.c | if (mp->state == MOD_RUNNING) { |
mp | 401 | kernel/module.c | isym.value = (unsigned long)mp; |
mp | 402 | kernel/module.c | sprintf(isym.name, "#%s", mp->name); |
mp | 406 | kernel/module.c | if (mp->symtab != NULL) { |
mp | 407 | kernel/module.c | for (i = mp->symtab->n_symbols, |
mp | 408 | kernel/module.c | from = mp->symtab->symbol; |
mp | 447 | kernel/module.c | struct module *mp; |
mp | 449 | kernel/module.c | for (mp = module_list ; mp ; mp = mp->next) { |
mp | 450 | kernel/module.c | if (mp->state == MOD_DELETED) |
mp | 452 | kernel/module.c | if (!strcmp(mp->name, name)) |
mp | 455 | kernel/module.c | return mp; |
mp | 459 | kernel/module.c | drop_refs(struct module *mp) |
mp | 467 | kernel/module.c | if (ref->module == mp) { |
mp | 487 | kernel/module.c | struct module *mp; |
mp | 494 | kernel/module.c | while ((mp = *mpp) != NULL) { |
mp | 495 | kernel/module.c | if (mp->state != MOD_DELETED) { |
mp | 496 | kernel/module.c | mpp = &mp->next; |
mp | 498 | kernel/module.c | if (GET_USE_COUNT(mp) != 0) { |
mp | 500 | kernel/module.c | mpp = &mp->next; |
mp | 502 | kernel/module.c | *mpp = mp->next; |
mp | 503 | kernel/module.c | if (mp->symtab) { |
mp | 504 | kernel/module.c | if (mp->symtab->n_refs) |
mp | 505 | kernel/module.c | drop_refs(mp); |
mp | 506 | kernel/module.c | if (mp->symtab->size) |
mp | 507 | kernel/module.c | kfree_s(mp->symtab, mp->symtab->size); |
mp | 509 | kernel/module.c | vfree(mp->addr); |
mp | 510 | kernel/module.c | kfree_s(mp, sizeof(struct module) + MOD_MAX_NAME); |
mp | 527 | kernel/module.c | struct module *mp; |
mp | 533 | kernel/module.c | for (mp = module_list ; mp && mp->next; mp = mp->next) { |
mp | 536 | kernel/module.c | q = mp->name; |
mp | 537 | kernel/module.c | if (*q == '\0' && mp->size == 0 && mp->ref == NULL) |
mp | 544 | kernel/module.c | sprintf(size, "%d", mp->size); |
mp | 553 | kernel/module.c | if (mp->state == MOD_UNINITIALIZED) |
mp | 555 | kernel/module.c | else if (mp->state == MOD_RUNNING) { |
mp | 556 | kernel/module.c | sprintf(size,"\t%ld",GET_USE_COUNT(mp)); |
mp | 559 | kernel/module.c | else if (mp->state == MOD_DELETED) |
mp | 566 | kernel/module.c | if ((ref = mp->ref) != NULL) { |
mp | 589 | kernel/module.c | struct module *mp; |
mp | 597 | kernel/module.c | for (mp = module_list; mp; mp = mp->next) { |
mp | 598 | kernel/module.c | if ((mp->state == MOD_RUNNING) && |
mp | 599 | kernel/module.c | (mp->symtab != NULL) && |
mp | 600 | kernel/module.c | (mp->symtab->n_symbols > 0)) { |
mp | 601 | kernel/module.c | for (i = mp->symtab->n_symbols, |
mp | 602 | kernel/module.c | sym = mp->symtab->symbol; |
mp | 606 | kernel/module.c | if (mp->name[0]) { |
mp | 609 | kernel/module.c | sym->name, mp->name); |
mp | 661 | kernel/module.c | struct module *mp; |
mp | 686 | kernel/module.c | if (!(mp = (struct module*) kmalloc(MODSIZ, GFP_KERNEL))) { |
mp | 692 | kernel/module.c | memset(mp, 0, MODSIZ); |
mp | 693 | kernel/module.c | mp->state = MOD_RUNNING; /* Since it is resident... */ |
mp | 694 | kernel/module.c | mp->name = ""; /* This is still the "kernel" symbol table! */ |
mp | 695 | kernel/module.c | mp->symtab = intab; |
mp | 698 | kernel/module.c | mp->next = kernel_module.next; |
mp | 699 | kernel/module.c | kernel_module.next = mp; |
mp | 711 | kernel/module.c | mp = module_list; /* true when doing init_module! */ |
mp | 714 | kernel/module.c | if ((oldtab = mp->symtab) == (struct symbol_table*)0) { |
mp | 716 | kernel/module.c | mp->symtab = intab; |
mp | 729 | kernel/module.c | mp->symtab = intab; |
mp | 776 | kernel/module.c | if (link->ref && (link->ref->module == mp)) |
mp | 780 | kernel/module.c | mp->symtab = newtab; |