tag | line | file | source code |
ms | 672 | drivers/cdrom/aztcd.c | { struct cdrom_multisession ms; |
ms | 678 | drivers/cdrom/aztcd.c | memcpy_fromfs(&ms, (void*) arg, sizeof(struct cdrom_multisession)); |
ms | 679 | drivers/cdrom/aztcd.c | if (ms.addr_format == CDROM_MSF) |
ms | 680 | drivers/cdrom/aztcd.c | { ms.addr.msf.minute = azt_bcd2bin(DiskInfo.lastSession.min); |
ms | 681 | drivers/cdrom/aztcd.c | ms.addr.msf.second = azt_bcd2bin(DiskInfo.lastSession.sec); |
ms | 682 | drivers/cdrom/aztcd.c | ms.addr.msf.frame = azt_bcd2bin(DiskInfo.lastSession.frame); |
ms | 684 | drivers/cdrom/aztcd.c | else if (ms.addr_format == CDROM_LBA) |
ms | 685 | drivers/cdrom/aztcd.c | ms.addr.lba = azt_msf2hsg(&DiskInfo.lastSession); |
ms | 688 | drivers/cdrom/aztcd.c | ms.xa_flag = DiskInfo.xa; |
ms | 691 | drivers/cdrom/aztcd.c | memcpy_tofs((void*) arg, &ms, sizeof(struct cdrom_multisession)); |
ms | 693 | drivers/cdrom/aztcd.c | if (ms.addr_format == CDROM_MSF) |
ms | 695 | drivers/cdrom/aztcd.c | ms.xa_flag, ms.addr.msf.minute, ms.addr.msf.second, |
ms | 696 | drivers/cdrom/aztcd.c | ms.addr.msf.frame, DiskInfo.lastSession.min, |
ms | 700 | drivers/cdrom/aztcd.c | ms.xa_flag, ms.addr.lba, DiskInfo.lastSession.min, |
ms | 458 | drivers/cdrom/mcdx.c | struct cdrom_multisession ms; |
ms | 464 | drivers/cdrom/mcdx.c | memcpy_fromfs(&ms, (void*) arg, sizeof(struct cdrom_multisession)); |
ms | 465 | drivers/cdrom/mcdx.c | if (ms.addr_format == CDROM_MSF) { |
ms | 466 | drivers/cdrom/mcdx.c | ms.addr.msf.minute = bcd2uint(stuffp->multi.msf_last.minute); |
ms | 467 | drivers/cdrom/mcdx.c | ms.addr.msf.second = bcd2uint(stuffp->multi.msf_last.second); |
ms | 468 | drivers/cdrom/mcdx.c | ms.addr.msf.frame = bcd2uint(stuffp->multi.msf_last.frame); |
ms | 469 | drivers/cdrom/mcdx.c | } else if (ms.addr_format == CDROM_LBA) |
ms | 470 | drivers/cdrom/mcdx.c | ms.addr.lba = msf2log(&stuffp->multi.msf_last); |
ms | 473 | drivers/cdrom/mcdx.c | ms.xa_flag = !!stuffp->multi.multi; |
ms | 479 | drivers/cdrom/mcdx.c | memcpy_tofs((void*) arg, &ms, sizeof(struct cdrom_multisession)); |
ms | 480 | drivers/cdrom/mcdx.c | if (ms.addr_format == CDROM_MSF) |
ms | 483 | drivers/cdrom/mcdx.c | ms.xa_flag, |
ms | 484 | drivers/cdrom/mcdx.c | ms.addr.msf.minute, |
ms | 485 | drivers/cdrom/mcdx.c | ms.addr.msf.second, |
ms | 486 | drivers/cdrom/mcdx.c | ms.addr.msf.frame, |
ms | 494 | drivers/cdrom/mcdx.c | ms.xa_flag, |
ms | 495 | drivers/cdrom/mcdx.c | ms.addr.lba, |
ms | 1668 | drivers/cdrom/optcd.c | struct cdrom_multisession ms; |
ms | 1670 | drivers/cdrom/optcd.c | status = verify_area(VERIFY_READ, (void*) arg, sizeof ms); |
ms | 1673 | drivers/cdrom/optcd.c | status = verify_area(VERIFY_WRITE, (void*) arg, sizeof ms); |
ms | 1676 | drivers/cdrom/optcd.c | memcpy_fromfs(&ms, (void*) arg, sizeof ms); |
ms | 1678 | drivers/cdrom/optcd.c | ms.addr.msf.minute = disk_info.last_session.minute; |
ms | 1679 | drivers/cdrom/optcd.c | ms.addr.msf.second = disk_info.last_session.second; |
ms | 1680 | drivers/cdrom/optcd.c | ms.addr.msf.frame = disk_info.last_session.frame; |
ms | 1682 | drivers/cdrom/optcd.c | if (ms.addr_format != CDROM_LBA |
ms | 1683 | drivers/cdrom/optcd.c | && ms.addr_format != CDROM_MSF) |
ms | 1685 | drivers/cdrom/optcd.c | if (ms.addr_format == CDROM_LBA) |
ms | 1686 | drivers/cdrom/optcd.c | msf2lba(&ms.addr); |
ms | 1688 | drivers/cdrom/optcd.c | ms.xa_flag = disk_info.xa; |
ms | 1690 | drivers/cdrom/optcd.c | memcpy_tofs((void*) arg, &ms, |
ms | 1694 | drivers/cdrom/optcd.c | if (ms.addr_format == CDROM_MSF) |
ms | 1696 | drivers/cdrom/optcd.c | ms.xa_flag, |
ms | 1697 | drivers/cdrom/optcd.c | ms.addr.msf.minute, |
ms | 1698 | drivers/cdrom/optcd.c | ms.addr.msf.second, |
ms | 1699 | drivers/cdrom/optcd.c | ms.addr.msf.frame); |
ms | 1702 | drivers/cdrom/optcd.c | ms.xa_flag, |
ms | 1703 | drivers/cdrom/optcd.c | ms.addr.lba, |
ms | 3177 | drivers/scsi/53c7,8xx.c | TOKEN(ms,3), TOKEN(rp,2), TOKEN(rs,2), TOKEN(s,0), TOKEN(tb,0), TOKEN(te,0) |
ms | 34 | fs/minix/inode.c | struct minix_super_block * ms) |
ms | 42 | fs/minix/inode.c | struct minix_super_block * ms; |
ms | 45 | fs/minix/inode.c | ms = sb->u.minix_sb.s_ms; |
ms | 47 | fs/minix/inode.c | if (ms->s_state & MINIX_VALID_FS) |
ms | 48 | fs/minix/inode.c | ms->s_state &= ~MINIX_VALID_FS; |
ms | 49 | fs/minix/inode.c | minix_commit_super (sb, ms); |
ms | 88 | fs/minix/inode.c | struct minix_super_block * ms; |
ms | 90 | fs/minix/inode.c | ms = sb->u.minix_sb.s_ms; |
ms | 94 | fs/minix/inode.c | if (ms->s_state & MINIX_VALID_FS || |
ms | 98 | fs/minix/inode.c | ms->s_state = sb->u.minix_sb.s_mount_state; |
ms | 101 | fs/minix/inode.c | minix_commit_super (sb, ms); |
ms | 105 | fs/minix/inode.c | sb->u.minix_sb.s_mount_state = ms->s_state; |
ms | 106 | fs/minix/inode.c | ms->s_state &= ~MINIX_VALID_FS; |
ms | 124 | fs/minix/inode.c | struct minix_super_block *ms; |
ms | 142 | fs/minix/inode.c | ms = (struct minix_super_block *) bh->b_data; |
ms | 143 | fs/minix/inode.c | s->u.minix_sb.s_ms = ms; |
ms | 145 | fs/minix/inode.c | s->u.minix_sb.s_mount_state = ms->s_state; |
ms | 148 | fs/minix/inode.c | s->u.minix_sb.s_ninodes = ms->s_ninodes; |
ms | 149 | fs/minix/inode.c | s->u.minix_sb.s_imap_blocks = ms->s_imap_blocks; |
ms | 150 | fs/minix/inode.c | s->u.minix_sb.s_zmap_blocks = ms->s_zmap_blocks; |
ms | 151 | fs/minix/inode.c | s->u.minix_sb.s_firstdatazone = ms->s_firstdatazone; |
ms | 152 | fs/minix/inode.c | s->u.minix_sb.s_log_zone_size = ms->s_log_zone_size; |
ms | 153 | fs/minix/inode.c | s->u.minix_sb.s_max_size = ms->s_max_size; |
ms | 154 | fs/minix/inode.c | s->s_magic = ms->s_magic; |
ms | 157 | fs/minix/inode.c | s->u.minix_sb.s_nzones = ms->s_nzones; |
ms | 162 | fs/minix/inode.c | s->u.minix_sb.s_nzones = ms->s_nzones; |
ms | 167 | fs/minix/inode.c | s->u.minix_sb.s_nzones = ms->s_zones; |
ms | 172 | fs/minix/inode.c | s->u.minix_sb.s_nzones = ms->s_zones; |
ms | 227 | fs/minix/inode.c | ms->s_state &= ~MINIX_VALID_FS; |
ms | 526 | net/ipv4/ip_fw.c | struct ip_masq *ms = (struct ip_masq *)data; |
ms | 532 | net/ipv4/ip_fw.c | strProt[ms->protocol==IPPROTO_TCP], |
ms | 533 | net/ipv4/ip_fw.c | ntohl(ms->src),ntohs(ms->sport)); |
ms | 543 | net/ipv4/ip_fw.c | if (cur==ms) { |
ms | 544 | net/ipv4/ip_fw.c | if (old==NULL) ip_msq_hosts = ms->next; |
ms | 545 | net/ipv4/ip_fw.c | else old->next = ms->next; |
ms | 546 | net/ipv4/ip_fw.c | kfree_s(ms,sizeof(*ms)); |
ms | 564 | net/ipv4/ip_fw.c | struct ip_masq *ms, *mst; |
ms | 567 | net/ipv4/ip_fw.c | ms = (struct ip_masq *) kmalloc(sizeof(struct ip_masq), GFP_ATOMIC); |
ms | 568 | net/ipv4/ip_fw.c | if (ms==NULL) |
ms | 571 | net/ipv4/ip_fw.c | memset(ms,0,sizeof(*ms)); |
ms | 572 | net/ipv4/ip_fw.c | init_timer(&ms->timer); |
ms | 573 | net/ipv4/ip_fw.c | ms->timer.data = (unsigned long)ms; |
ms | 574 | net/ipv4/ip_fw.c | ms->timer.function = masq_expire; |
ms | 581 | net/ipv4/ip_fw.c | ms->mport = htons(masq_port++); |
ms | 588 | net/ipv4/ip_fw.c | while (mst && mst->mport!=ms->mport) |
ms | 594 | net/ipv4/ip_fw.c | ms->next = ip_msq_hosts; |
ms | 595 | net/ipv4/ip_fw.c | ip_msq_hosts = ms; |
ms | 598 | net/ipv4/ip_fw.c | return ms; |
ms | 622 | net/ipv4/ip_fw.c | struct ip_masq *ms; |
ms | 689 | net/ipv4/ip_fw.c | ms = alloc_masq_entry(); |
ms | 690 | net/ipv4/ip_fw.c | if (ms==NULL) |
ms | 692 | net/ipv4/ip_fw.c | ms->protocol = IPPROTO_TCP; |
ms | 693 | net/ipv4/ip_fw.c | ms->src = htonl(from); /* derived from PORT cmd */ |
ms | 694 | net/ipv4/ip_fw.c | ms->sport = htons(port); /* derived from PORT cmd */ |
ms | 695 | net/ipv4/ip_fw.c | ms->dst = iph->daddr; |
ms | 701 | net/ipv4/ip_fw.c | ms->dport = htons(FTP_DPORT_TBD); /* ftp-data */ |
ms | 702 | net/ipv4/ip_fw.c | ms->timer.expires = jiffies+MASQUERADE_EXPIRE_TCP_FIN; |
ms | 703 | net/ipv4/ip_fw.c | add_timer(&ms->timer); |
ms | 709 | net/ipv4/ip_fw.c | port = ntohs(ms->mport); |
ms | 814 | net/ipv4/ip_fw.c | struct ip_masq *ms; |
ms | 829 | net/ipv4/ip_fw.c | ms = ip_msq_hosts; |
ms | 837 | net/ipv4/ip_fw.c | while (ms!=NULL) |
ms | 839 | net/ipv4/ip_fw.c | if (iph->protocol == ms->protocol && |
ms | 840 | net/ipv4/ip_fw.c | iph->saddr == ms->src && iph->daddr == ms->dst && |
ms | 841 | net/ipv4/ip_fw.c | portptr[0] == ms->sport && portptr[1] == ms->dport) |
ms | 843 | net/ipv4/ip_fw.c | del_timer(&ms->timer); |
ms | 846 | net/ipv4/ip_fw.c | ms = ms->next; |
ms | 853 | net/ipv4/ip_fw.c | if (ms==NULL) |
ms | 855 | net/ipv4/ip_fw.c | ms = alloc_masq_entry(); |
ms | 856 | net/ipv4/ip_fw.c | if (ms==NULL) |
ms | 861 | net/ipv4/ip_fw.c | ms->protocol = iph->protocol; |
ms | 862 | net/ipv4/ip_fw.c | ms->src = iph->saddr; |
ms | 863 | net/ipv4/ip_fw.c | ms->dst = iph->daddr; |
ms | 864 | net/ipv4/ip_fw.c | ms->sport = portptr[0]; |
ms | 865 | net/ipv4/ip_fw.c | ms->dport = portptr[1]; |
ms | 874 | net/ipv4/ip_fw.c | portptr[0] = ms->mport; |
ms | 882 | net/ipv4/ip_fw.c | ms->timer.expires = jiffies+MASQUERADE_EXPIRE_UDP; |
ms | 890 | net/ipv4/ip_fw.c | skb = revamp(*skb_ptr, dev, ms); |
ms | 901 | net/ipv4/ip_fw.c | if (ms->sawfin || th->fin) |
ms | 903 | net/ipv4/ip_fw.c | ms->timer.expires = jiffies+MASQUERADE_EXPIRE_TCP_FIN; |
ms | 904 | net/ipv4/ip_fw.c | ms->sawfin = 1; |
ms | 906 | net/ipv4/ip_fw.c | else ms->timer.expires = jiffies+MASQUERADE_EXPIRE_TCP; |
ms | 911 | net/ipv4/ip_fw.c | add_timer(&ms->timer); |
ms | 915 | net/ipv4/ip_fw.c | printk("O-routed from %lX:%X over %s\n",ntohl(dev->pa_addr),ntohs(ms->mport),dev->name); |
ms | 932 | net/ipv4/ip_fw.c | struct ip_masq *ms; |
ms | 959 | net/ipv4/ip_fw.c | ms = ip_msq_hosts; |
ms | 960 | net/ipv4/ip_fw.c | while (ms!=NULL) |
ms | 962 | net/ipv4/ip_fw.c | if (iph->protocol==ms->protocol && |
ms | 963 | net/ipv4/ip_fw.c | (iph->saddr==ms->dst || iph->protocol==IPPROTO_UDP) && |
ms | 964 | net/ipv4/ip_fw.c | (ms->dport==htons(FTP_DPORT_TBD) || portptr[0]==ms->dport) && |
ms | 965 | net/ipv4/ip_fw.c | portptr[1]==ms->mport) |
ms | 969 | net/ipv4/ip_fw.c | iph->daddr = ms->src; |
ms | 970 | net/ipv4/ip_fw.c | portptr[1] = ms->sport; |
ms | 972 | net/ipv4/ip_fw.c | if(ms->dport==htons(FTP_DPORT_TBD)) |
ms | 974 | net/ipv4/ip_fw.c | ms->dport=portptr[0]; |
ms | 976 | net/ipv4/ip_fw.c | printk("demasq : Filled out dport entry (%d) based on initial connect attempt from FTP deamon\n",ntohs(ms->dport)); |
ms | 994 | net/ipv4/ip_fw.c | printk("demasq : delta=%d ; previous_delta=%d ; init_seq=%lX ; ack_seq=%lX ; after=%d\n",ms->delta,ms->previous_delta,ntohl(ms->init_seq),ntohl(th->ack_seq),after(ntohl(th->ack_seq),ntohl(ms->init_seq))); |
ms | 997 | net/ipv4/ip_fw.c | if (ms->delta || ms->previous_delta) |
ms | 999 | net/ipv4/ip_fw.c | if(after(ack_seq,ms->init_seq)) |
ms | 1001 | net/ipv4/ip_fw.c | th->ack_seq = htonl(ack_seq-ms->delta); |
ms | 1003 | net/ipv4/ip_fw.c | printk("demasq : substracted delta (%d) from ack_seq\n",ms->delta); |
ms | 1008 | net/ipv4/ip_fw.c | th->ack_seq = htonl(ack_seq-ms->previous_delta); |
ms | 1010 | net/ipv4/ip_fw.c | printk("demasq : substracted previous_delta (%d) from ack_seq\n",ms->previous_delta); |
ms | 1024 | net/ipv4/ip_fw.c | ms = ms->next; |
ms | 1573 | net/ipv4/ip_fw.c | struct ip_masq *ms; |
ms | 1581 | net/ipv4/ip_fw.c | ms=ip_msq_hosts; |
ms | 1582 | net/ipv4/ip_fw.c | while (ms!=NULL) |
ms | 1584 | net/ipv4/ip_fw.c | int timer_active = del_timer(&ms->timer); |
ms | 1586 | net/ipv4/ip_fw.c | ms->timer.expires = jiffies; |
ms | 1588 | net/ipv4/ip_fw.c | strProt[ms->protocol==IPPROTO_TCP], |
ms | 1589 | net/ipv4/ip_fw.c | ntohl(ms->src),ntohs(ms->sport), |
ms | 1590 | net/ipv4/ip_fw.c | ntohl(ms->dst),ntohs(ms->dport), |
ms | 1591 | net/ipv4/ip_fw.c | ntohs(ms->mport), |
ms | 1592 | net/ipv4/ip_fw.c | ms->init_seq,ms->delta,ms->previous_delta,ms->timer.expires-jiffies); |
ms | 1594 | net/ipv4/ip_fw.c | add_timer(&ms->timer); |
ms | 1604 | net/ipv4/ip_fw.c | ms=ms->next; |