tag | line | file | source code |
ms | 682 | drivers/cdrom/aztcd.c | { struct cdrom_multisession ms; |
ms | 688 | drivers/cdrom/aztcd.c | memcpy_fromfs(&ms, (void*) arg, sizeof(struct cdrom_multisession)); |
ms | 689 | drivers/cdrom/aztcd.c | if (ms.addr_format == CDROM_MSF) |
ms | 690 | drivers/cdrom/aztcd.c | { ms.addr.msf.minute = azt_bcd2bin(DiskInfo.lastSession.min); |
ms | 691 | drivers/cdrom/aztcd.c | ms.addr.msf.second = azt_bcd2bin(DiskInfo.lastSession.sec); |
ms | 692 | drivers/cdrom/aztcd.c | ms.addr.msf.frame = azt_bcd2bin(DiskInfo.lastSession.frame); |
ms | 694 | drivers/cdrom/aztcd.c | else if (ms.addr_format == CDROM_LBA) |
ms | 695 | drivers/cdrom/aztcd.c | ms.addr.lba = azt_msf2hsg(&DiskInfo.lastSession); |
ms | 698 | drivers/cdrom/aztcd.c | ms.xa_flag = DiskInfo.xa; |
ms | 701 | drivers/cdrom/aztcd.c | memcpy_tofs((void*) arg, &ms, sizeof(struct cdrom_multisession)); |
ms | 703 | drivers/cdrom/aztcd.c | if (ms.addr_format == CDROM_MSF) |
ms | 705 | drivers/cdrom/aztcd.c | ms.xa_flag, ms.addr.msf.minute, ms.addr.msf.second, |
ms | 706 | drivers/cdrom/aztcd.c | ms.addr.msf.frame, DiskInfo.lastSession.min, |
ms | 710 | drivers/cdrom/aztcd.c | ms.xa_flag, ms.addr.lba, DiskInfo.lastSession.min, |
ms | 470 | drivers/cdrom/mcdx.c | struct cdrom_multisession ms; |
ms | 476 | drivers/cdrom/mcdx.c | memcpy_fromfs(&ms, (void*) arg, sizeof(struct cdrom_multisession)); |
ms | 477 | drivers/cdrom/mcdx.c | if (ms.addr_format == CDROM_MSF) { |
ms | 478 | drivers/cdrom/mcdx.c | ms.addr.msf.minute = bcd2uint(stuffp->multi.msf_last.minute); |
ms | 479 | drivers/cdrom/mcdx.c | ms.addr.msf.second = bcd2uint(stuffp->multi.msf_last.second); |
ms | 480 | drivers/cdrom/mcdx.c | ms.addr.msf.frame = bcd2uint(stuffp->multi.msf_last.frame); |
ms | 481 | drivers/cdrom/mcdx.c | } else if (ms.addr_format == CDROM_LBA) |
ms | 482 | drivers/cdrom/mcdx.c | ms.addr.lba = msf2log(&stuffp->multi.msf_last); |
ms | 485 | drivers/cdrom/mcdx.c | ms.xa_flag = stuffp->xa; |
ms | 491 | drivers/cdrom/mcdx.c | memcpy_tofs((void*) arg, &ms, sizeof(struct cdrom_multisession)); |
ms | 492 | drivers/cdrom/mcdx.c | if (ms.addr_format == CDROM_MSF) |
ms | 495 | drivers/cdrom/mcdx.c | ms.xa_flag, |
ms | 496 | drivers/cdrom/mcdx.c | ms.addr.msf.minute, |
ms | 497 | drivers/cdrom/mcdx.c | ms.addr.msf.second, |
ms | 498 | drivers/cdrom/mcdx.c | ms.addr.msf.frame, |
ms | 507 | drivers/cdrom/mcdx.c | ms.xa_flag, |
ms | 508 | drivers/cdrom/mcdx.c | ms.addr.lba, |
ms | 2141 | drivers/scsi/53c7,8xx.c | TOKEN(ms,3), TOKEN(rp,2), TOKEN(rs,2), TOKEN(s,0), TOKEN(tb,0), TOKEN(te,0) |
ms | 37 | fs/minix/inode.c | struct minix_super_block * ms) |
ms | 45 | fs/minix/inode.c | struct minix_super_block * ms; |
ms | 48 | fs/minix/inode.c | ms = sb->u.minix_sb.s_ms; |
ms | 50 | fs/minix/inode.c | if (ms->s_state & MINIX_VALID_FS) |
ms | 51 | fs/minix/inode.c | ms->s_state &= ~MINIX_VALID_FS; |
ms | 52 | fs/minix/inode.c | minix_commit_super (sb, ms); |
ms | 91 | fs/minix/inode.c | struct minix_super_block * ms; |
ms | 93 | fs/minix/inode.c | ms = sb->u.minix_sb.s_ms; |
ms | 97 | fs/minix/inode.c | if (ms->s_state & MINIX_VALID_FS || |
ms | 101 | fs/minix/inode.c | ms->s_state = sb->u.minix_sb.s_mount_state; |
ms | 104 | fs/minix/inode.c | minix_commit_super (sb, ms); |
ms | 108 | fs/minix/inode.c | sb->u.minix_sb.s_mount_state = ms->s_state; |
ms | 109 | fs/minix/inode.c | ms->s_state &= ~MINIX_VALID_FS; |
ms | 128 | fs/minix/inode.c | struct minix_super_block *ms; |
ms | 144 | fs/minix/inode.c | ms = (struct minix_super_block *) bh->b_data; |
ms | 145 | fs/minix/inode.c | s->u.minix_sb.s_ms = ms; |
ms | 147 | fs/minix/inode.c | s->u.minix_sb.s_mount_state = ms->s_state; |
ms | 150 | fs/minix/inode.c | s->u.minix_sb.s_ninodes = ms->s_ninodes; |
ms | 151 | fs/minix/inode.c | s->u.minix_sb.s_nzones = ms->s_nzones; |
ms | 152 | fs/minix/inode.c | s->u.minix_sb.s_imap_blocks = ms->s_imap_blocks; |
ms | 153 | fs/minix/inode.c | s->u.minix_sb.s_zmap_blocks = ms->s_zmap_blocks; |
ms | 154 | fs/minix/inode.c | s->u.minix_sb.s_firstdatazone = ms->s_firstdatazone; |
ms | 155 | fs/minix/inode.c | s->u.minix_sb.s_log_zone_size = ms->s_log_zone_size; |
ms | 156 | fs/minix/inode.c | s->u.minix_sb.s_max_size = ms->s_max_size; |
ms | 157 | fs/minix/inode.c | s->s_magic = ms->s_magic; |
ms | 216 | fs/minix/inode.c | ms->s_state &= ~MINIX_VALID_FS; |
ms | 492 | net/ipv4/ip_fw.c | struct ip_masq *ms = (struct ip_masq *)data; |
ms | 498 | net/ipv4/ip_fw.c | strProt[ms->protocol==IPPROTO_TCP], |
ms | 499 | net/ipv4/ip_fw.c | ntohl(ms->src),ntohs(ms->sport)); |
ms | 509 | net/ipv4/ip_fw.c | if (cur==ms) { |
ms | 510 | net/ipv4/ip_fw.c | if (old==NULL) ip_msq_hosts = ms->next; |
ms | 511 | net/ipv4/ip_fw.c | else old->next = ms->next; |
ms | 512 | net/ipv4/ip_fw.c | kfree_s(ms,sizeof(*ms)); |
ms | 530 | net/ipv4/ip_fw.c | struct ip_masq *ms, *mst; |
ms | 533 | net/ipv4/ip_fw.c | ms = (struct ip_masq *) kmalloc(sizeof(struct ip_masq), GFP_ATOMIC); |
ms | 534 | net/ipv4/ip_fw.c | if (ms==NULL) |
ms | 537 | net/ipv4/ip_fw.c | memset(ms,0,sizeof(*ms)); |
ms | 538 | net/ipv4/ip_fw.c | init_timer(&ms->timer); |
ms | 539 | net/ipv4/ip_fw.c | ms->timer.data = (unsigned long)ms; |
ms | 540 | net/ipv4/ip_fw.c | ms->timer.function = masq_expire; |
ms | 547 | net/ipv4/ip_fw.c | ms->mport = htons(masq_port++); |
ms | 554 | net/ipv4/ip_fw.c | while (mst && mst->mport!=ms->mport) |
ms | 560 | net/ipv4/ip_fw.c | ms->next = ip_msq_hosts; |
ms | 561 | net/ipv4/ip_fw.c | ip_msq_hosts = ms; |
ms | 564 | net/ipv4/ip_fw.c | return ms; |
ms | 588 | net/ipv4/ip_fw.c | struct ip_masq *ms; |
ms | 655 | net/ipv4/ip_fw.c | ms = alloc_masq_entry(); |
ms | 656 | net/ipv4/ip_fw.c | if (ms==NULL) |
ms | 658 | net/ipv4/ip_fw.c | ms->protocol = IPPROTO_TCP; |
ms | 659 | net/ipv4/ip_fw.c | ms->src = htonl(from); /* derived from PORT cmd */ |
ms | 660 | net/ipv4/ip_fw.c | ms->sport = htons(port); /* derived from PORT cmd */ |
ms | 661 | net/ipv4/ip_fw.c | ms->dst = iph->daddr; |
ms | 667 | net/ipv4/ip_fw.c | ms->dport = htons(FTP_DPORT_TBD); /* ftp-data */ |
ms | 668 | net/ipv4/ip_fw.c | ms->timer.expires = jiffies+MASQUERADE_EXPIRE_TCP_FIN; |
ms | 669 | net/ipv4/ip_fw.c | add_timer(&ms->timer); |
ms | 675 | net/ipv4/ip_fw.c | port = ntohs(ms->mport); |
ms | 780 | net/ipv4/ip_fw.c | struct ip_masq *ms; |
ms | 795 | net/ipv4/ip_fw.c | ms = ip_msq_hosts; |
ms | 803 | net/ipv4/ip_fw.c | while (ms!=NULL) |
ms | 805 | net/ipv4/ip_fw.c | if (iph->protocol == ms->protocol && |
ms | 806 | net/ipv4/ip_fw.c | iph->saddr == ms->src && iph->daddr == ms->dst && |
ms | 807 | net/ipv4/ip_fw.c | portptr[0] == ms->sport && portptr[1] == ms->dport) |
ms | 809 | net/ipv4/ip_fw.c | del_timer(&ms->timer); |
ms | 812 | net/ipv4/ip_fw.c | ms = ms->next; |
ms | 819 | net/ipv4/ip_fw.c | if (ms==NULL) |
ms | 821 | net/ipv4/ip_fw.c | ms = alloc_masq_entry(); |
ms | 822 | net/ipv4/ip_fw.c | if (ms==NULL) |
ms | 827 | net/ipv4/ip_fw.c | ms->protocol = iph->protocol; |
ms | 828 | net/ipv4/ip_fw.c | ms->src = iph->saddr; |
ms | 829 | net/ipv4/ip_fw.c | ms->dst = iph->daddr; |
ms | 830 | net/ipv4/ip_fw.c | ms->sport = portptr[0]; |
ms | 831 | net/ipv4/ip_fw.c | ms->dport = portptr[1]; |
ms | 840 | net/ipv4/ip_fw.c | portptr[0] = ms->mport; |
ms | 848 | net/ipv4/ip_fw.c | ms->timer.expires = jiffies+MASQUERADE_EXPIRE_UDP; |
ms | 856 | net/ipv4/ip_fw.c | skb = revamp(*skb_ptr, dev, ms); |
ms | 867 | net/ipv4/ip_fw.c | if (ms->sawfin || th->fin) |
ms | 869 | net/ipv4/ip_fw.c | ms->timer.expires = jiffies+MASQUERADE_EXPIRE_TCP_FIN; |
ms | 870 | net/ipv4/ip_fw.c | ms->sawfin = 1; |
ms | 872 | net/ipv4/ip_fw.c | else ms->timer.expires = jiffies+MASQUERADE_EXPIRE_TCP; |
ms | 876 | net/ipv4/ip_fw.c | add_timer(&ms->timer); |
ms | 880 | net/ipv4/ip_fw.c | printk("O-routed from %lX:%X over %s\n",ntohl(dev->pa_addr),ntohs(ms->mport),dev->name); |
ms | 897 | net/ipv4/ip_fw.c | struct ip_masq *ms; |
ms | 924 | net/ipv4/ip_fw.c | ms = ip_msq_hosts; |
ms | 925 | net/ipv4/ip_fw.c | while (ms!=NULL) |
ms | 927 | net/ipv4/ip_fw.c | if (iph->protocol==ms->protocol && |
ms | 928 | net/ipv4/ip_fw.c | (iph->saddr==ms->dst || iph->protocol==IPPROTO_UDP) && |
ms | 929 | net/ipv4/ip_fw.c | (ms->dport==htons(FTP_DPORT_TBD) || portptr[0]==ms->dport) && |
ms | 930 | net/ipv4/ip_fw.c | portptr[1]==ms->mport) |
ms | 934 | net/ipv4/ip_fw.c | iph->daddr = ms->src; |
ms | 935 | net/ipv4/ip_fw.c | portptr[1] = ms->sport; |
ms | 937 | net/ipv4/ip_fw.c | if(ms->dport==htons(FTP_DPORT_TBD)) |
ms | 939 | net/ipv4/ip_fw.c | ms->dport=portptr[0]; |
ms | 941 | 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 | 959 | 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 | 962 | net/ipv4/ip_fw.c | if (ms->delta || ms->previous_delta) |
ms | 964 | net/ipv4/ip_fw.c | if(after(ack_seq,ms->init_seq)) |
ms | 966 | net/ipv4/ip_fw.c | th->ack_seq = htonl(ack_seq-ms->delta); |
ms | 968 | net/ipv4/ip_fw.c | printk("demasq : substracted delta (%d) from ack_seq\n",ms->delta); |
ms | 973 | net/ipv4/ip_fw.c | th->ack_seq = htonl(ack_seq-ms->previous_delta); |
ms | 975 | net/ipv4/ip_fw.c | printk("demasq : substracted previous_delta (%d) from ack_seq\n",ms->previous_delta); |
ms | 987 | net/ipv4/ip_fw.c | ms = ms->next; |
ms | 1629 | net/ipv4/ip_fw.c | struct ip_masq *ms; |
ms | 1637 | net/ipv4/ip_fw.c | ms=ip_msq_hosts; |
ms | 1638 | net/ipv4/ip_fw.c | while (ms!=NULL) |
ms | 1640 | net/ipv4/ip_fw.c | int timer_active = del_timer(&ms->timer); |
ms | 1642 | net/ipv4/ip_fw.c | ms->timer.expires = jiffies; |
ms | 1644 | net/ipv4/ip_fw.c | strProt[ms->protocol==IPPROTO_TCP], |
ms | 1645 | net/ipv4/ip_fw.c | ntohl(ms->src),ntohs(ms->sport), |
ms | 1646 | net/ipv4/ip_fw.c | ntohl(ms->dst),ntohs(ms->dport), |
ms | 1647 | net/ipv4/ip_fw.c | ntohs(ms->mport), |
ms | 1648 | net/ipv4/ip_fw.c | ms->init_seq,ms->delta,ms->previous_delta,ms->timer.expires-jiffies); |
ms | 1650 | net/ipv4/ip_fw.c | add_timer(&ms->timer); |
ms | 1660 | net/ipv4/ip_fw.c | ms=ms->next; |