tag | line | file | source code |
mp | 524 | drivers/block/aztcd.c | long azt_msf2hsg(struct msf *mp) |
mp | 525 | drivers/block/aztcd.c | { return azt_bcd2bin(mp -> frame) + azt_bcd2bin(mp -> sec) * 75 |
mp | 526 | drivers/block/aztcd.c | + azt_bcd2bin(mp -> min) * 4500 - 150; |
mp | 118 | drivers/block/gscd.c | static long gscd_msf2hsg (struct msf *mp); |
mp | 1115 | drivers/block/gscd.c | static long gscd_msf2hsg (struct msf *mp) |
mp | 1117 | drivers/block/gscd.c | return gscd_bcd2bin(mp -> frame) |
mp | 1118 | drivers/block/gscd.c | + gscd_bcd2bin(mp -> sec) * CD_FRAMES |
mp | 1119 | drivers/block/gscd.c | + gscd_bcd2bin(mp -> min) * CD_FRAMES * CD_SECS |
mp | 247 | drivers/block/mcd.c | msf2hsg(struct msf *mp) |
mp | 249 | drivers/block/mcd.c | return bcd2bin(mp -> frame) |
mp | 250 | drivers/block/mcd.c | + bcd2bin(mp -> sec) * 75 |
mp | 251 | drivers/block/mcd.c | + bcd2bin(mp -> min) * 4500 |
mp | 377 | drivers/block/optcd.c | static long msf2hsg(struct msf *mp) { |
mp | 379 | drivers/block/optcd.c | if (mp -> min >= 70) |
mp | 381 | drivers/block/optcd.c | if (mp -> sec >= 60) |
mp | 383 | drivers/block/optcd.c | if (mp -> frame >= 75) |
mp | 386 | drivers/block/optcd.c | return bcd2bin(mp -> frame) |
mp | 387 | drivers/block/optcd.c | + bcd2bin(mp -> sec) * 75 |
mp | 388 | drivers/block/optcd.c | + bcd2bin(mp -> min) * 4500 |
mp | 154 | drivers/block/sjcd.c | static long msf2hsg( struct msf *mp ){ |
mp | 155 | drivers/block/sjcd.c | return( bcd2bin( mp->frame ) + bcd2bin( mp->sec ) * 75 |
mp | 156 | drivers/block/sjcd.c | + bcd2bin( mp->min ) * 4500 - 150 ); |
mp | 535 | drivers/block/sjcd.c | static int sjcd_play( struct sjcd_play_msf *mp ){ |
mp | 547 | drivers/block/sjcd.c | msf.start = mp->start; |
mp | 555 | drivers/block/sjcd.c | sjcd_send_6_cmd( SCMD_PLAY, mp ); |
mp | 2132 | drivers/scsi/53c7,8xx.c | {DT_help, "?", 0} , TOKEN(h,0), TOKEN(i,0), TOKEN(mp,2), |
mp | 135 | kernel/module.c | struct module *mp; |
mp | 152 | kernel/module.c | if ((mp = (struct module*) kmalloc(sspace, GFP_KERNEL)) == NULL) { |
mp | 155 | kernel/module.c | strcpy((char *)(mp + 1), name); /* why not? */ |
mp | 159 | kernel/module.c | kfree_s(mp, sspace); |
mp | 163 | kernel/module.c | mp->next = module_list; |
mp | 164 | kernel/module.c | mp->ref = NULL; |
mp | 165 | kernel/module.c | mp->symtab = NULL; |
mp | 166 | kernel/module.c | mp->name = (char *)(mp + 1); |
mp | 167 | kernel/module.c | mp->size = npages; |
mp | 168 | kernel/module.c | mp->addr = addr; |
mp | 169 | kernel/module.c | mp->state = MOD_UNINITIALIZED; |
mp | 170 | kernel/module.c | mp->cleanup = NULL; |
mp | 173 | kernel/module.c | module_list = mp; /* link it in */ |
mp | 176 | kernel/module.c | mp->name, (unsigned long) mp->size, (unsigned long) mp->addr)); |
mp | 188 | kernel/module.c | struct module *mp; |
mp | 218 | kernel/module.c | if ((mp = find_module(name)) == NULL) |
mp | 220 | kernel/module.c | if ((codesize + sizeof (long) + PAGE_SIZE - 1) / PAGE_SIZE > mp->size) |
mp | 222 | kernel/module.c | memcpy_fromfs((char *)mp->addr + sizeof (long), code, codesize); |
mp | 223 | kernel/module.c | memset((char *)mp->addr + sizeof (long) + codesize, 0, |
mp | 224 | kernel/module.c | mp->size * PAGE_SIZE - (codesize + sizeof (long))); |
mp | 227 | kernel/module.c | mp->cleanup = rt.cleanup; |
mp | 274 | kernel/module.c | mp->symtab = newtab; |
mp | 299 | kernel/module.c | ref->module = mp; |
mp | 309 | kernel/module.c | mp->state = MOD_RUNNING; |
mp | 317 | kernel/module.c | struct module *mp; |
mp | 327 | kernel/module.c | if ((mp = find_module(name)) == NULL) |
mp | 329 | kernel/module.c | if ((mp->ref != NULL) || (GET_USE_COUNT(mp) != 0)) |
mp | 331 | kernel/module.c | if (mp->state == MOD_RUNNING) |
mp | 332 | kernel/module.c | (*mp->cleanup)(); |
mp | 333 | kernel/module.c | mp->state = MOD_DELETED; |
mp | 367 | kernel/module.c | struct module *mp = module_list; |
mp | 371 | kernel/module.c | for (mp = module_list; mp; mp = mp->next) { |
mp | 372 | kernel/module.c | if (mp->symtab && mp->symtab->n_symbols) { |
mp | 374 | kernel/module.c | nmodsyms += mp->symtab->n_symbols + 1; |
mp | 388 | kernel/module.c | for (mp = module_list; mp; mp = mp->next) { |
mp | 389 | kernel/module.c | if (mp->state == MOD_RUNNING) { |
mp | 391 | kernel/module.c | isym.value = (unsigned long)mp; |
mp | 392 | kernel/module.c | sprintf(isym.name, "#%s", mp->name); |
mp | 396 | kernel/module.c | if (mp->symtab != NULL) { |
mp | 397 | kernel/module.c | for (i = mp->symtab->n_symbols, |
mp | 398 | kernel/module.c | from = mp->symtab->symbol; |
mp | 437 | kernel/module.c | struct module *mp; |
mp | 439 | kernel/module.c | for (mp = module_list ; mp ; mp = mp->next) { |
mp | 440 | kernel/module.c | if (mp->state == MOD_DELETED) |
mp | 442 | kernel/module.c | if (!strcmp(mp->name, name)) |
mp | 445 | kernel/module.c | return mp; |
mp | 449 | kernel/module.c | drop_refs(struct module *mp) |
mp | 457 | kernel/module.c | if (ref->module == mp) { |
mp | 477 | kernel/module.c | struct module *mp; |
mp | 484 | kernel/module.c | while ((mp = *mpp) != NULL) { |
mp | 485 | kernel/module.c | if (mp->state != MOD_DELETED) { |
mp | 486 | kernel/module.c | mpp = &mp->next; |
mp | 488 | kernel/module.c | if (GET_USE_COUNT(mp) != 0) { |
mp | 490 | kernel/module.c | mpp = &mp->next; |
mp | 492 | kernel/module.c | *mpp = mp->next; |
mp | 493 | kernel/module.c | if (mp->symtab) { |
mp | 494 | kernel/module.c | if (mp->symtab->n_refs) |
mp | 495 | kernel/module.c | drop_refs(mp); |
mp | 496 | kernel/module.c | if (mp->symtab->size) |
mp | 497 | kernel/module.c | kfree_s(mp->symtab, mp->symtab->size); |
mp | 499 | kernel/module.c | vfree(mp->addr); |
mp | 500 | kernel/module.c | kfree_s(mp, sizeof(struct module) + MOD_MAX_NAME); |
mp | 517 | kernel/module.c | struct module *mp; |
mp | 523 | kernel/module.c | for (mp = module_list ; mp && mp->next; mp = mp->next) { |
mp | 526 | kernel/module.c | q = mp->name; |
mp | 532 | kernel/module.c | sprintf(size, "%d", mp->size); |
mp | 541 | kernel/module.c | if (mp->state == MOD_UNINITIALIZED) |
mp | 543 | kernel/module.c | else if (mp->state == MOD_RUNNING) |
mp | 545 | kernel/module.c | else if (mp->state == MOD_DELETED) |
mp | 552 | kernel/module.c | if ((ref = mp->ref) != NULL) { |
mp | 575 | kernel/module.c | struct module *mp; |
mp | 580 | kernel/module.c | for (mp = module_list; mp; mp = mp->next) { |
mp | 581 | kernel/module.c | if ((mp->state == MOD_RUNNING) && |
mp | 582 | kernel/module.c | (mp->symtab != NULL) && (mp->symtab->n_symbols > 0)) { |
mp | 583 | kernel/module.c | for (i = mp->symtab->n_symbols, |
mp | 584 | kernel/module.c | sym = mp->symtab->symbol; |
mp | 593 | kernel/module.c | if (mp->name[0]) { |
mp | 595 | kernel/module.c | (long)sym->addr, sym->name, mp->name); |
mp | 636 | kernel/module.c | struct module *mp; |
mp | 661 | kernel/module.c | if (!(mp = (struct module*) kmalloc(MODSIZ, GFP_KERNEL))) { |
mp | 667 | kernel/module.c | memset(mp, 0, MODSIZ); |
mp | 668 | kernel/module.c | mp->state = MOD_RUNNING; /* Since it is resident... */ |
mp | 669 | kernel/module.c | mp->name = ""; /* This is still the "kernel" symbol table! */ |
mp | 670 | kernel/module.c | mp->symtab = intab; |
mp | 673 | kernel/module.c | mp->next = kernel_module.next; |
mp | 674 | kernel/module.c | kernel_module.next = mp; |
mp | 686 | kernel/module.c | mp = module_list; /* true when doing init_module! */ |
mp | 689 | kernel/module.c | if ((oldtab = mp->symtab) == (struct symbol_table*)0) { |
mp | 691 | kernel/module.c | mp->symtab = intab; |
mp | 704 | kernel/module.c | mp->symtab = intab; |
mp | 751 | kernel/module.c | if (link->ref && (link->ref->module == mp)) |
mp | 755 | kernel/module.c | mp->symtab = newtab; |