tag | line | file | source code |
di | 137 | drivers/cdrom/mcdx.c | struct s_diskinfo di; |
di | 299 | drivers/cdrom/mcdx.c | if ((ti.cdti_trk0 < stuffp->di.n_first) |
di | 300 | drivers/cdrom/mcdx.c | || (ti.cdti_trk0 > stuffp->di.n_last) |
di | 301 | drivers/cdrom/mcdx.c | || (ti.cdti_trk1 < stuffp->di.n_first)) |
di | 303 | drivers/cdrom/mcdx.c | if (ti.cdti_trk1 > stuffp->di.n_last) ti.cdti_trk1 = stuffp->di.n_last; |
di | 353 | drivers/cdrom/mcdx.c | tp = &stuffp->toc[stuffp->di.n_last - stuffp->di.n_first + 1]; |
di | 354 | drivers/cdrom/mcdx.c | else if (entry.cdte_track > stuffp->di.n_last |
di | 355 | drivers/cdrom/mcdx.c | || entry.cdte_track < stuffp->di.n_first) return -EINVAL; |
di | 356 | drivers/cdrom/mcdx.c | else tp = &stuffp->toc[entry.cdte_track - stuffp->di.n_first]; |
di | 438 | drivers/cdrom/mcdx.c | toc.cdth_trk0 = stuffp->di.n_first; |
di | 439 | drivers/cdrom/mcdx.c | toc.cdth_trk1 = stuffp->di.n_last; |
di | 442 | drivers/cdrom/mcdx.c | stuffp->di.n_first, stuffp->di.n_last)); |
di | 677 | drivers/cdrom/mcdx.c | if (-1 == mcdx_requesttocdata(stuffp, &stuffp->di, 1)) { |
di | 684 | drivers/cdrom/mcdx.c | * msf2log(&stuffp->di.msf_leadout) - 1; |
di | 687 | drivers/cdrom/mcdx.c | stuffp->di.n_first, |
di | 688 | drivers/cdrom/mcdx.c | stuffp->di.msf_first.minute, |
di | 689 | drivers/cdrom/mcdx.c | stuffp->di.msf_first.second, |
di | 690 | drivers/cdrom/mcdx.c | stuffp->di.msf_first.frame, |
di | 691 | drivers/cdrom/mcdx.c | msf2log(&stuffp->di.msf_first))); |
di | 693 | drivers/cdrom/mcdx.c | stuffp->di.n_last, |
di | 694 | drivers/cdrom/mcdx.c | stuffp->di.msf_leadout.minute, |
di | 695 | drivers/cdrom/mcdx.c | stuffp->di.msf_leadout.second, |
di | 696 | drivers/cdrom/mcdx.c | stuffp->di.msf_leadout.frame, |
di | 697 | drivers/cdrom/mcdx.c | msf2log(&stuffp->di.msf_leadout))); |
di | 1480 | drivers/cdrom/mcdx.c | stuffp->di.n_last - stuffp->di.n_first + 1)); |
di | 1490 | drivers/cdrom/mcdx.c | size = sizeof(struct s_subqcode) * (stuffp->di.n_last - stuffp->di.n_first + 2); |
di | 1507 | drivers/cdrom/mcdx.c | trk < (stuffp->di.n_last - stuffp->di.n_first + 1); |
di | 1523 | drivers/cdrom/mcdx.c | && (idx <= stuffp->di.n_last) |
di | 1525 | drivers/cdrom/mcdx.c | && (stuffp->toc[idx - stuffp->di.n_first].index == 0)) { |
di | 1526 | drivers/cdrom/mcdx.c | stuffp->toc[idx - stuffp->di.n_first] = q; |
di | 1532 | drivers/cdrom/mcdx.c | memset(&stuffp->toc[stuffp->di.n_last - stuffp->di.n_first + 1], |
di | 1534 | drivers/cdrom/mcdx.c | stuffp->toc[stuffp->di.n_last - stuffp->di.n_first + 1].dt |
di | 1535 | drivers/cdrom/mcdx.c | = stuffp->di.msf_leadout; |
di | 1546 | drivers/cdrom/mcdx.c | trk < (stuffp->di.n_last - stuffp->di.n_first + 2); |
di | 1550 | drivers/cdrom/mcdx.c | trk + stuffp->di.n_first, |
di | 1600 | drivers/cdrom/mcdx.c | if (ti) p = &stuffp->toc[ti->cdti_trk0 - stuffp->di.n_first]; |
di | 1608 | drivers/cdrom/mcdx.c | p = &stuffp->toc[ti->cdti_trk1 - stuffp->di.n_first + 1]; |
di | 137 | drivers/isdn/isdn_common.c | int isdn_dc2minor(int di, int ch) |
di | 141 | drivers/isdn/isdn_common.c | if (dev->chanmap[i] == ch && dev->drvmap[i] == di) |
di | 225 | drivers/isdn/isdn_common.c | static void isdn_receive_callback(int di, int channel, u_char * buf, int len) |
di | 234 | drivers/isdn/isdn_common.c | if ((i = isdn_dc2minor(di,channel))==-1) |
di | 257 | drivers/isdn/isdn_common.c | if (!dev->drv[di]->rpqueue[channel]) |
di | 265 | drivers/isdn/isdn_common.c | p = isdn_new_buf(&dev->drv[di]->rpqueue[channel], len); |
di | 268 | drivers/isdn/isdn_common.c | dev->drv[di]->rcverr[channel]++; |
di | 273 | drivers/isdn/isdn_common.c | dev->drv[di]->rcvcount[channel] += len; |
di | 280 | drivers/isdn/isdn_common.c | wake_up_interruptible(&dev->drv[di]->rcv_waitq[channel]); |
di | 285 | drivers/isdn/isdn_common.c | void isdn_all_eaz(int di, int ch) |
di | 289 | drivers/isdn/isdn_common.c | cmd.driver = di; |
di | 293 | drivers/isdn/isdn_common.c | (void) dev->drv[di]->interface->command(&cmd); |
di | 298 | drivers/isdn/isdn_common.c | int di; |
di | 305 | drivers/isdn/isdn_common.c | di = c->driver; |
di | 306 | drivers/isdn/isdn_common.c | i = isdn_dc2minor(di, c->arg); |
di | 316 | drivers/isdn/isdn_common.c | isdn_tty_bsent(di, c->arg); |
di | 318 | drivers/isdn/isdn_common.c | wake_up_interruptible(&dev->drv[di]->snd_waitq[c->arg]); |
di | 323 | drivers/isdn/isdn_common.c | dev->drv[di]->stavail += c->arg; |
di | 325 | drivers/isdn/isdn_common.c | wake_up_interruptible(&dev->drv[di]->st_waitq); |
di | 328 | drivers/isdn/isdn_common.c | dev->drv[di]->running = 1; |
di | 330 | drivers/isdn/isdn_common.c | if (dev->drvmap[i] == di) |
di | 331 | drivers/isdn/isdn_common.c | isdn_all_eaz(di, dev->chanmap[i]); |
di | 334 | drivers/isdn/isdn_common.c | dev->drv[di]->running = 0; |
di | 340 | drivers/isdn/isdn_common.c | printk(KERN_DEBUG "ICALL (net): %d %ld %s\n", di, c->arg, c->num); |
di | 343 | drivers/isdn/isdn_common.c | cmd.driver = di; |
di | 346 | drivers/isdn/isdn_common.c | dev->drv[di]->interface->command(&cmd); |
di | 351 | drivers/isdn/isdn_common.c | r = isdn_net_find_icall(di, c->arg, i, c->num); |
di | 357 | drivers/isdn/isdn_common.c | if ((mi = isdn_tty_find_icall(di, c->arg, c->num)) >= 0) { |
di | 361 | drivers/isdn/isdn_common.c | } else if (dev->drv[di]->reject_bus) { |
di | 362 | drivers/isdn/isdn_common.c | cmd.driver = di; |
di | 365 | drivers/isdn/isdn_common.c | dev->drv[di]->interface->command(&cmd); |
di | 371 | drivers/isdn/isdn_common.c | cmd.driver = di; |
di | 374 | drivers/isdn/isdn_common.c | dev->drv[di]->interface->command(&cmd); |
di | 378 | drivers/isdn/isdn_common.c | cmd.driver = di; |
di | 381 | drivers/isdn/isdn_common.c | dev->drv[di]->interface->command(&cmd); |
di | 423 | drivers/isdn/isdn_common.c | cmd.driver = di; |
di | 426 | drivers/isdn/isdn_common.c | dev->drv[di]->interface->command(&cmd); |
di | 439 | drivers/isdn/isdn_common.c | dev->drv[di]->flags &= ~(1 << (c->arg)); |
di | 472 | drivers/isdn/isdn_common.c | dev->drv[di]->flags |= (1 << (c->arg)); |
di | 498 | drivers/isdn/isdn_common.c | dev->drv[di]->flags &= ~(1 << (c->arg)); |
di | 545 | drivers/isdn/isdn_common.c | if (dev->drvmap[i] == di) { |
di | 553 | drivers/isdn/isdn_common.c | dev->channels -= dev->drv[di]->channels; |
di | 554 | drivers/isdn/isdn_common.c | kfree(dev->drv[di]->rcverr); |
di | 555 | drivers/isdn/isdn_common.c | kfree(dev->drv[di]->rcvcount); |
di | 556 | drivers/isdn/isdn_common.c | for (i = 0; i < dev->drv[di]->channels; i++) |
di | 557 | drivers/isdn/isdn_common.c | isdn_free_queue(&dev->drv[di]->rpqueue[i]); |
di | 558 | drivers/isdn/isdn_common.c | kfree(dev->drv[di]->rcv_waitq); |
di | 559 | drivers/isdn/isdn_common.c | kfree(dev->drv[di]->snd_waitq); |
di | 560 | drivers/isdn/isdn_common.c | kfree(dev->drv[di]); |
di | 561 | drivers/isdn/isdn_common.c | dev->drv[di] = NULL; |
di | 562 | drivers/isdn/isdn_common.c | dev->drvid[di][0] = '\0'; |
di | 584 | drivers/isdn/isdn_common.c | int isdn_readbchan(int di, int channel, u_char * buf, u_char * fp, int len, int user) |
di | 595 | drivers/isdn/isdn_common.c | if (!dev->drv[di]->rpqueue[channel]) { |
di | 597 | drivers/isdn/isdn_common.c | interruptible_sleep_on(&dev->drv[di]->rcv_waitq[channel]); |
di | 601 | drivers/isdn/isdn_common.c | if (!dev->drv[di]) |
di | 605 | drivers/isdn/isdn_common.c | avail = dev->drv[di]->rcvcount[channel]; |
di | 611 | drivers/isdn/isdn_common.c | if ((copy_l = dev->drv[di]->rpqueue[channel]->length) > left) { |
di | 616 | drivers/isdn/isdn_common.c | p = dev->drv[di]->rpqueue[channel]; |
di | 633 | drivers/isdn/isdn_common.c | dev->drv[di]->rpqueue[channel] = (pqueue *) p->next; |
di | 642 | drivers/isdn/isdn_common.c | dev->drv[di]->rcvcount[channel] -= copy_l; |
di | 1487 | drivers/isdn/isdn_common.c | isdn_map_eaz2msn(char *msn, int di) |
di | 1489 | drivers/isdn/isdn_common.c | driver *this = dev->drv[di]; |
di | 1549 | drivers/isdn/isdn_common.c | void isdn_free_channel(int di, int ch, int usage) |
di | 1558 | drivers/isdn/isdn_common.c | (dev->drvmap[i] == di) && |
di | 1572 | drivers/isdn/isdn_common.c | void isdn_unexclusive_channel(int di, int ch) |
di | 1580 | drivers/isdn/isdn_common.c | if ((dev->drvmap[i] == di) && |
di | 44 | drivers/isdn/isdn_common.h | extern void isdn_free_channel(int di, int ch, int usage); |
di | 45 | drivers/isdn/isdn_common.h | extern void isdn_all_eaz(int di, int ch); |
di | 46 | drivers/isdn/isdn_common.h | extern int isdn_dc2minor(int di, int ch); |
di | 48 | drivers/isdn/isdn_common.h | extern char* isdn_map_eaz2msn(char *msn, int di); |
di | 50 | drivers/isdn/isdn_common.h | extern void isdn_unexclusive_channel(int di, int ch); |
di | 52 | drivers/isdn/isdn_common.h | extern int isdn_readbchan (int di, int channel, u_char *buf, |
di | 482 | drivers/isdn/isdn_net.c | isdn_net_send(u_char * buf, int di, int ch, int len) |
di | 486 | drivers/isdn/isdn_net.c | if ((l = dev->drv[di]->interface->writebuf(di, ch, buf, len, 0)) == len) |
di | 1361 | drivers/isdn/isdn_net.c | isdn_net_find_icall(int di, int ch, int idx, char *num) |
di | 1418 | drivers/isdn/isdn_net.c | printk(KERN_DEBUG "n_fi: di=%d ch=%d idx=%d usg=%d\n", di, ch, idx, |
di | 1429 | drivers/isdn/isdn_net.c | isdn_net_swapbind(di); |
di | 1433 | drivers/isdn/isdn_net.c | if (!strcmp(isdn_map_eaz2msn(p->local.msn, di), eaz)) |
di | 1439 | drivers/isdn/isdn_net.c | if ((!strcmp(isdn_map_eaz2msn(p->local.msn, di), eaz)) && /* EAZ is matching */ |
di | 1451 | drivers/isdn/isdn_net.c | (p->local.pre_device != di)) { |
di | 1462 | drivers/isdn/isdn_net.c | sidx = isdn_dc2minor(di, 1); |
di | 1475 | drivers/isdn/isdn_net.c | if ((p->local.pre_device == di) && |
di | 1477 | drivers/isdn/isdn_net.c | isdn_net_swapbind(di); |
di | 1490 | drivers/isdn/isdn_net.c | isdn_net_swapbind(di); |
di | 1499 | drivers/isdn/isdn_net.c | (p->local.pre_device != di))) { |
di | 1624 | drivers/isdn/isdn_net.c | p->local.isdn_device = di; |
di | 1652 | drivers/isdn/isdn_net.c | printk(KERN_INFO "isdn_net: call from %s -> %d %s ignored\n", nr, di, eaz); |
di | 1215 | drivers/isdn/isdn_tty.c | int isdn_tty_find_icall(int di, int ch, char *num) |
di | 1262 | drivers/isdn/isdn_tty.c | dev->mdm.atmodem[i].msn, isdn_map_eaz2msn(dev->mdm.atmodem[i].msn, di), |
di | 1265 | drivers/isdn/isdn_tty.c | if ((!strcmp(isdn_map_eaz2msn(dev->mdm.atmodem[i].msn, di) |
di | 1270 | drivers/isdn/isdn_tty.c | idx = isdn_dc2minor(di, ch); |
di | 1281 | drivers/isdn/isdn_tty.c | info->isdn_driver = di; |
di | 1297 | drivers/isdn/isdn_tty.c | dev->drv[di]->reject_bus ? "rejected" : "ignored"); |
di | 114 | drivers/scsi/aha1740.h | :6, di:1, /* Disable Interrupt */ |