tag | line | file | source code |
mp | 612 | drivers/block/aztcd.c | long azt_msf2hsg(struct msf *mp) |
mp | 613 | drivers/block/aztcd.c | { return azt_bcd2bin(mp -> frame) + azt_bcd2bin(mp -> sec) * 75 |
mp | 614 | drivers/block/aztcd.c | + azt_bcd2bin(mp -> min) * 4500 - CD_BLOCK_OFFSET; |
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 | 283 | drivers/block/mcd.c | msf2hsg(struct msf *mp) |
mp | 285 | drivers/block/mcd.c | return bcd2bin(mp -> frame) |
mp | 286 | drivers/block/mcd.c | + bcd2bin(mp -> sec) * 75 |
mp | 287 | drivers/block/mcd.c | + bcd2bin(mp -> min) * 4500 |
mp | 439 | drivers/block/optcd.c | static long msf2hsg(struct msf *mp) { |
mp | 441 | drivers/block/optcd.c | if (mp -> min >= 70) |
mp | 443 | drivers/block/optcd.c | if (mp -> sec >= 60) |
mp | 445 | drivers/block/optcd.c | if (mp -> frame >= 75) |
mp | 448 | drivers/block/optcd.c | return bcd2bin(mp -> frame) |
mp | 449 | drivers/block/optcd.c | + bcd2bin(mp -> sec) * 75 |
mp | 450 | drivers/block/optcd.c | + bcd2bin(mp -> min) * 4500 |
mp | 229 | drivers/block/sjcd.c | static long msf2hsg( struct msf *mp ){ |
mp | 230 | drivers/block/sjcd.c | return( bcd2bin( mp->frame ) + bcd2bin( mp->sec ) * 75 |
mp | 231 | drivers/block/sjcd.c | + bcd2bin( mp->min ) * 4500 - 150 ); |
mp | 610 | drivers/block/sjcd.c | static int sjcd_play( struct sjcd_play_msf *mp ){ |
mp | 622 | drivers/block/sjcd.c | msf.start = mp->start; |
mp | 630 | drivers/block/sjcd.c | sjcd_send_6_cmd( SCMD_PLAY, mp ); |
mp | 2140 | drivers/scsi/53c7,8xx.c | {DT_help, "?", 0} , TOKEN(h,0), TOKEN(i,0), TOKEN(mp,2), |
mp | 140 | kernel/module.c | struct module *mp; |
mp | 157 | kernel/module.c | if ((mp = (struct module*) kmalloc(sspace, GFP_KERNEL)) == NULL) { |
mp | 160 | kernel/module.c | strcpy((char *)(mp + 1), name); /* why not? */ |
mp | 164 | kernel/module.c | kfree_s(mp, sspace); |
mp | 168 | kernel/module.c | mp->next = module_list; |
mp | 169 | kernel/module.c | mp->ref = NULL; |
mp | 170 | kernel/module.c | mp->symtab = NULL; |
mp | 171 | kernel/module.c | mp->name = (char *)(mp + 1); |
mp | 172 | kernel/module.c | mp->size = npages; |
mp | 173 | kernel/module.c | mp->addr = addr; |
mp | 174 | kernel/module.c | mp->state = MOD_UNINITIALIZED; |
mp | 175 | kernel/module.c | mp->cleanup = NULL; |
mp | 178 | kernel/module.c | module_list = mp; /* link it in */ |
mp | 181 | kernel/module.c | mp->name, (unsigned long) mp->size, (unsigned long) mp->addr)); |
mp | 193 | kernel/module.c | struct module *mp; |
mp | 223 | kernel/module.c | if ((mp = find_module(name)) == NULL) |
mp | 225 | kernel/module.c | if ((codesize + sizeof (long) + PAGE_SIZE - 1) / PAGE_SIZE > mp->size) |
mp | 227 | kernel/module.c | memcpy_fromfs((char *)mp->addr + sizeof (long), code, codesize); |
mp | 228 | kernel/module.c | memset((char *)mp->addr + sizeof (long) + codesize, 0, |
mp | 229 | kernel/module.c | mp->size * PAGE_SIZE - (codesize + sizeof (long))); |
mp | 232 | kernel/module.c | mp->cleanup = rt.cleanup; |
mp | 279 | kernel/module.c | mp->symtab = newtab; |
mp | 304 | kernel/module.c | ref->module = mp; |
mp | 314 | kernel/module.c | mp->state = MOD_RUNNING; |
mp | 322 | kernel/module.c | struct module *mp; |
mp | 332 | kernel/module.c | if ((mp = find_module(name)) == NULL) |
mp | 334 | kernel/module.c | if ((mp->ref != NULL) || (GET_USE_COUNT(mp) != 0)) |
mp | 336 | kernel/module.c | if (mp->state == MOD_RUNNING) |
mp | 337 | kernel/module.c | (*mp->cleanup)(); |
mp | 338 | kernel/module.c | mp->state = MOD_DELETED; |
mp | 372 | kernel/module.c | struct module *mp = module_list; |
mp | 376 | kernel/module.c | for (mp = module_list; mp; mp = mp->next) { |
mp | 377 | kernel/module.c | if (mp->symtab && mp->symtab->n_symbols) { |
mp | 379 | kernel/module.c | nmodsyms += mp->symtab->n_symbols + 1; |
mp | 393 | kernel/module.c | for (mp = module_list; mp; mp = mp->next) { |
mp | 394 | kernel/module.c | if (mp->state == MOD_RUNNING) { |
mp | 396 | kernel/module.c | isym.value = (unsigned long)mp; |
mp | 397 | kernel/module.c | sprintf(isym.name, "#%s", mp->name); |
mp | 401 | kernel/module.c | if (mp->symtab != NULL) { |
mp | 402 | kernel/module.c | for (i = mp->symtab->n_symbols, |
mp | 403 | kernel/module.c | from = mp->symtab->symbol; |
mp | 442 | kernel/module.c | struct module *mp; |
mp | 444 | kernel/module.c | for (mp = module_list ; mp ; mp = mp->next) { |
mp | 445 | kernel/module.c | if (mp->state == MOD_DELETED) |
mp | 447 | kernel/module.c | if (!strcmp(mp->name, name)) |
mp | 450 | kernel/module.c | return mp; |
mp | 454 | kernel/module.c | drop_refs(struct module *mp) |
mp | 462 | kernel/module.c | if (ref->module == mp) { |
mp | 482 | kernel/module.c | struct module *mp; |
mp | 489 | kernel/module.c | while ((mp = *mpp) != NULL) { |
mp | 490 | kernel/module.c | if (mp->state != MOD_DELETED) { |
mp | 491 | kernel/module.c | mpp = &mp->next; |
mp | 493 | kernel/module.c | if (GET_USE_COUNT(mp) != 0) { |
mp | 495 | kernel/module.c | mpp = &mp->next; |
mp | 497 | kernel/module.c | *mpp = mp->next; |
mp | 498 | kernel/module.c | if (mp->symtab) { |
mp | 499 | kernel/module.c | if (mp->symtab->n_refs) |
mp | 500 | kernel/module.c | drop_refs(mp); |
mp | 501 | kernel/module.c | if (mp->symtab->size) |
mp | 502 | kernel/module.c | kfree_s(mp->symtab, mp->symtab->size); |
mp | 504 | kernel/module.c | vfree(mp->addr); |
mp | 505 | kernel/module.c | kfree_s(mp, sizeof(struct module) + MOD_MAX_NAME); |
mp | 522 | kernel/module.c | struct module *mp; |
mp | 528 | kernel/module.c | for (mp = module_list ; mp && mp->next; mp = mp->next) { |
mp | 531 | kernel/module.c | q = mp->name; |
mp | 537 | kernel/module.c | sprintf(size, "%d", mp->size); |
mp | 546 | kernel/module.c | if (mp->state == MOD_UNINITIALIZED) |
mp | 548 | kernel/module.c | else if (mp->state == MOD_RUNNING) |
mp | 550 | kernel/module.c | else if (mp->state == MOD_DELETED) |
mp | 557 | kernel/module.c | if ((ref = mp->ref) != NULL) { |
mp | 580 | kernel/module.c | struct module *mp; |
mp | 588 | kernel/module.c | for (mp = module_list; mp; mp = mp->next) { |
mp | 589 | kernel/module.c | if ((mp->state == MOD_RUNNING) && |
mp | 590 | kernel/module.c | (mp->symtab != NULL) && |
mp | 591 | kernel/module.c | (mp->symtab->n_symbols > 0)) { |
mp | 592 | kernel/module.c | for (i = mp->symtab->n_symbols, |
mp | 593 | kernel/module.c | sym = mp->symtab->symbol; |
mp | 597 | kernel/module.c | if (mp->name[0]) { |
mp | 600 | kernel/module.c | sym->name, mp->name); |
mp | 652 | kernel/module.c | struct module *mp; |
mp | 677 | kernel/module.c | if (!(mp = (struct module*) kmalloc(MODSIZ, GFP_KERNEL))) { |
mp | 683 | kernel/module.c | memset(mp, 0, MODSIZ); |
mp | 684 | kernel/module.c | mp->state = MOD_RUNNING; /* Since it is resident... */ |
mp | 685 | kernel/module.c | mp->name = ""; /* This is still the "kernel" symbol table! */ |
mp | 686 | kernel/module.c | mp->symtab = intab; |
mp | 689 | kernel/module.c | mp->next = kernel_module.next; |
mp | 690 | kernel/module.c | kernel_module.next = mp; |
mp | 702 | kernel/module.c | mp = module_list; /* true when doing init_module! */ |
mp | 705 | kernel/module.c | if ((oldtab = mp->symtab) == (struct symbol_table*)0) { |
mp | 707 | kernel/module.c | mp->symtab = intab; |
mp | 720 | kernel/module.c | mp->symtab = intab; |
mp | 767 | kernel/module.c | if (link->ref && (link->ref->module == mp)) |
mp | 771 | kernel/module.c | mp->symtab = newtab; |