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 | 456 | drivers/cdrom/mcdx.c | struct cdrom_multisession ms; |
ms | 462 | drivers/cdrom/mcdx.c | memcpy_fromfs(&ms, (void*) arg, sizeof(struct cdrom_multisession)); |
ms | 463 | drivers/cdrom/mcdx.c | if (ms.addr_format == CDROM_MSF) { |
ms | 464 | drivers/cdrom/mcdx.c | ms.addr.msf.minute = bcd2uint(stuffp->multi.msf_last.minute); |
ms | 465 | drivers/cdrom/mcdx.c | ms.addr.msf.second = bcd2uint(stuffp->multi.msf_last.second); |
ms | 466 | drivers/cdrom/mcdx.c | ms.addr.msf.frame = bcd2uint(stuffp->multi.msf_last.frame); |
ms | 467 | drivers/cdrom/mcdx.c | } else if (ms.addr_format == CDROM_LBA) |
ms | 468 | drivers/cdrom/mcdx.c | ms.addr.lba = msf2log(&stuffp->multi.msf_last); |
ms | 471 | drivers/cdrom/mcdx.c | ms.xa_flag = stuffp->xa; |
ms | 477 | drivers/cdrom/mcdx.c | memcpy_tofs((void*) arg, &ms, sizeof(struct cdrom_multisession)); |
ms | 478 | drivers/cdrom/mcdx.c | if (ms.addr_format == CDROM_MSF) |
ms | 481 | drivers/cdrom/mcdx.c | ms.xa_flag, |
ms | 482 | drivers/cdrom/mcdx.c | ms.addr.msf.minute, |
ms | 483 | drivers/cdrom/mcdx.c | ms.addr.msf.second, |
ms | 484 | drivers/cdrom/mcdx.c | ms.addr.msf.frame, |
ms | 492 | drivers/cdrom/mcdx.c | ms.xa_flag, |
ms | 493 | drivers/cdrom/mcdx.c | ms.addr.lba, |
ms | 3175 | 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 | 507 | net/ipv4/ip_fw.c | struct ip_masq *ms = (struct ip_masq *)data; |
ms | 513 | net/ipv4/ip_fw.c | strProt[ms->protocol==IPPROTO_TCP], |
ms | 514 | net/ipv4/ip_fw.c | ntohl(ms->src),ntohs(ms->sport)); |
ms | 524 | net/ipv4/ip_fw.c | if (cur==ms) { |
ms | 525 | net/ipv4/ip_fw.c | if (old==NULL) ip_msq_hosts = ms->next; |
ms | 526 | net/ipv4/ip_fw.c | else old->next = ms->next; |
ms | 527 | net/ipv4/ip_fw.c | kfree_s(ms,sizeof(*ms)); |
ms | 545 | net/ipv4/ip_fw.c | struct ip_masq *ms, *mst; |
ms | 548 | net/ipv4/ip_fw.c | ms = (struct ip_masq *) kmalloc(sizeof(struct ip_masq), GFP_ATOMIC); |
ms | 549 | net/ipv4/ip_fw.c | if (ms==NULL) |
ms | 552 | net/ipv4/ip_fw.c | memset(ms,0,sizeof(*ms)); |
ms | 553 | net/ipv4/ip_fw.c | init_timer(&ms->timer); |
ms | 554 | net/ipv4/ip_fw.c | ms->timer.data = (unsigned long)ms; |
ms | 555 | net/ipv4/ip_fw.c | ms->timer.function = masq_expire; |
ms | 562 | net/ipv4/ip_fw.c | ms->mport = htons(masq_port++); |
ms | 569 | net/ipv4/ip_fw.c | while (mst && mst->mport!=ms->mport) |
ms | 575 | net/ipv4/ip_fw.c | ms->next = ip_msq_hosts; |
ms | 576 | net/ipv4/ip_fw.c | ip_msq_hosts = ms; |
ms | 579 | net/ipv4/ip_fw.c | return ms; |
ms | 603 | net/ipv4/ip_fw.c | struct ip_masq *ms; |
ms | 670 | net/ipv4/ip_fw.c | ms = alloc_masq_entry(); |
ms | 671 | net/ipv4/ip_fw.c | if (ms==NULL) |
ms | 673 | net/ipv4/ip_fw.c | ms->protocol = IPPROTO_TCP; |
ms | 674 | net/ipv4/ip_fw.c | ms->src = htonl(from); /* derived from PORT cmd */ |
ms | 675 | net/ipv4/ip_fw.c | ms->sport = htons(port); /* derived from PORT cmd */ |
ms | 676 | net/ipv4/ip_fw.c | ms->dst = iph->daddr; |
ms | 682 | net/ipv4/ip_fw.c | ms->dport = htons(FTP_DPORT_TBD); /* ftp-data */ |
ms | 683 | net/ipv4/ip_fw.c | ms->timer.expires = jiffies+MASQUERADE_EXPIRE_TCP_FIN; |
ms | 684 | net/ipv4/ip_fw.c | add_timer(&ms->timer); |
ms | 690 | net/ipv4/ip_fw.c | port = ntohs(ms->mport); |
ms | 795 | net/ipv4/ip_fw.c | struct ip_masq *ms; |
ms | 810 | net/ipv4/ip_fw.c | ms = ip_msq_hosts; |
ms | 818 | net/ipv4/ip_fw.c | while (ms!=NULL) |
ms | 820 | net/ipv4/ip_fw.c | if (iph->protocol == ms->protocol && |
ms | 821 | net/ipv4/ip_fw.c | iph->saddr == ms->src && iph->daddr == ms->dst && |
ms | 822 | net/ipv4/ip_fw.c | portptr[0] == ms->sport && portptr[1] == ms->dport) |
ms | 824 | net/ipv4/ip_fw.c | del_timer(&ms->timer); |
ms | 827 | net/ipv4/ip_fw.c | ms = ms->next; |
ms | 834 | net/ipv4/ip_fw.c | if (ms==NULL) |
ms | 836 | net/ipv4/ip_fw.c | ms = alloc_masq_entry(); |
ms | 837 | net/ipv4/ip_fw.c | if (ms==NULL) |
ms | 842 | net/ipv4/ip_fw.c | ms->protocol = iph->protocol; |
ms | 843 | net/ipv4/ip_fw.c | ms->src = iph->saddr; |
ms | 844 | net/ipv4/ip_fw.c | ms->dst = iph->daddr; |
ms | 845 | net/ipv4/ip_fw.c | ms->sport = portptr[0]; |
ms | 846 | net/ipv4/ip_fw.c | ms->dport = portptr[1]; |
ms | 855 | net/ipv4/ip_fw.c | portptr[0] = ms->mport; |
ms | 863 | net/ipv4/ip_fw.c | ms->timer.expires = jiffies+MASQUERADE_EXPIRE_UDP; |
ms | 871 | net/ipv4/ip_fw.c | skb = revamp(*skb_ptr, dev, ms); |
ms | 882 | net/ipv4/ip_fw.c | if (ms->sawfin || th->fin) |
ms | 884 | net/ipv4/ip_fw.c | ms->timer.expires = jiffies+MASQUERADE_EXPIRE_TCP_FIN; |
ms | 885 | net/ipv4/ip_fw.c | ms->sawfin = 1; |
ms | 887 | net/ipv4/ip_fw.c | else ms->timer.expires = jiffies+MASQUERADE_EXPIRE_TCP; |
ms | 891 | net/ipv4/ip_fw.c | add_timer(&ms->timer); |
ms | 895 | net/ipv4/ip_fw.c | printk("O-routed from %lX:%X over %s\n",ntohl(dev->pa_addr),ntohs(ms->mport),dev->name); |
ms | 912 | net/ipv4/ip_fw.c | struct ip_masq *ms; |
ms | 939 | net/ipv4/ip_fw.c | ms = ip_msq_hosts; |
ms | 940 | net/ipv4/ip_fw.c | while (ms!=NULL) |
ms | 942 | net/ipv4/ip_fw.c | if (iph->protocol==ms->protocol && |
ms | 943 | net/ipv4/ip_fw.c | (iph->saddr==ms->dst || iph->protocol==IPPROTO_UDP) && |
ms | 944 | net/ipv4/ip_fw.c | (ms->dport==htons(FTP_DPORT_TBD) || portptr[0]==ms->dport) && |
ms | 945 | net/ipv4/ip_fw.c | portptr[1]==ms->mport) |
ms | 949 | net/ipv4/ip_fw.c | iph->daddr = ms->src; |
ms | 950 | net/ipv4/ip_fw.c | portptr[1] = ms->sport; |
ms | 952 | net/ipv4/ip_fw.c | if(ms->dport==htons(FTP_DPORT_TBD)) |
ms | 954 | net/ipv4/ip_fw.c | ms->dport=portptr[0]; |
ms | 956 | 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 | 974 | 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 | 977 | net/ipv4/ip_fw.c | if (ms->delta || ms->previous_delta) |
ms | 979 | net/ipv4/ip_fw.c | if(after(ack_seq,ms->init_seq)) |
ms | 981 | net/ipv4/ip_fw.c | th->ack_seq = htonl(ack_seq-ms->delta); |
ms | 983 | net/ipv4/ip_fw.c | printk("demasq : substracted delta (%d) from ack_seq\n",ms->delta); |
ms | 988 | net/ipv4/ip_fw.c | th->ack_seq = htonl(ack_seq-ms->previous_delta); |
ms | 990 | net/ipv4/ip_fw.c | printk("demasq : substracted previous_delta (%d) from ack_seq\n",ms->previous_delta); |
ms | 1002 | net/ipv4/ip_fw.c | ms = ms->next; |
ms | 1648 | net/ipv4/ip_fw.c | struct ip_masq *ms; |
ms | 1656 | net/ipv4/ip_fw.c | ms=ip_msq_hosts; |
ms | 1657 | net/ipv4/ip_fw.c | while (ms!=NULL) |
ms | 1659 | net/ipv4/ip_fw.c | int timer_active = del_timer(&ms->timer); |
ms | 1661 | net/ipv4/ip_fw.c | ms->timer.expires = jiffies; |
ms | 1663 | net/ipv4/ip_fw.c | strProt[ms->protocol==IPPROTO_TCP], |
ms | 1664 | net/ipv4/ip_fw.c | ntohl(ms->src),ntohs(ms->sport), |
ms | 1665 | net/ipv4/ip_fw.c | ntohl(ms->dst),ntohs(ms->dport), |
ms | 1666 | net/ipv4/ip_fw.c | ntohs(ms->mport), |
ms | 1667 | net/ipv4/ip_fw.c | ms->init_seq,ms->delta,ms->previous_delta,ms->timer.expires-jiffies); |
ms | 1669 | net/ipv4/ip_fw.c | add_timer(&ms->timer); |
ms | 1679 | net/ipv4/ip_fw.c | ms=ms->next; |