tag | line | file | source code |
qp | 269 | drivers/cdrom/aztcd.c | static int aztGetQChannelInfo(struct azt_Toc *qp); |
qp | 1746 | drivers/cdrom/aztcd.c | int aztGetQChannelInfo(struct azt_Toc *qp) |
qp | 1758 | drivers/cdrom/aztcd.c | { qp->ctrl_addr=0; /* when audio stop ACMD_GET_Q_CHANNEL returns */ |
qp | 1759 | drivers/cdrom/aztcd.c | qp->track=0; /* only one byte with Aztech drives */ |
qp | 1760 | drivers/cdrom/aztcd.c | qp->pointIndex=0; |
qp | 1761 | drivers/cdrom/aztcd.c | qp->trackTime.min=0; |
qp | 1762 | drivers/cdrom/aztcd.c | qp->trackTime.sec=0; |
qp | 1763 | drivers/cdrom/aztcd.c | qp->trackTime.frame=0; |
qp | 1764 | drivers/cdrom/aztcd.c | qp->diskTime.min=0; |
qp | 1765 | drivers/cdrom/aztcd.c | qp->diskTime.sec=0; |
qp | 1766 | drivers/cdrom/aztcd.c | qp->diskTime.frame=0; |
qp | 1770 | drivers/cdrom/aztcd.c | { if (aztGetValue(&qp -> ctrl_addr) < 0) RETURNM("aztGetQChannelInfo 4",-1); |
qp | 1771 | drivers/cdrom/aztcd.c | if (aztGetValue(&qp -> track) < 0) RETURNM("aztGetQChannelInfo 4",-1); |
qp | 1772 | drivers/cdrom/aztcd.c | if (aztGetValue(&qp -> pointIndex) < 0) RETURNM("aztGetQChannelInfo 4",-1); |
qp | 1773 | drivers/cdrom/aztcd.c | if (aztGetValue(&qp -> trackTime.min) < 0) RETURNM("aztGetQChannelInfo 4",-1); |
qp | 1774 | drivers/cdrom/aztcd.c | if (aztGetValue(&qp -> trackTime.sec) < 0) RETURNM("aztGetQChannelInfo 4",-1); |
qp | 1775 | drivers/cdrom/aztcd.c | if (aztGetValue(&qp -> trackTime.frame) < 0) RETURNM("aztGetQChannelInfo 4",-1); |
qp | 1777 | drivers/cdrom/aztcd.c | if (aztGetValue(&qp -> diskTime.min) < 0) RETURNM("aztGetQChannelInfo 4",-1); |
qp | 1778 | drivers/cdrom/aztcd.c | if (aztGetValue(&qp -> diskTime.sec) < 0) RETURNM("aztGetQChannelInfo 4",-1); |
qp | 1779 | drivers/cdrom/aztcd.c | if (aztGetValue(&qp -> diskTime.frame) < 0) RETURNM("aztGetQChannelInfo 4",-1); |
qp | 836 | drivers/cdrom/cm206.c | int get_current_q(struct cdrom_subchnl * qp) |
qp | 843 | drivers/cdrom/cm206.c | qp->cdsc_adr = q[0] & 0xf; qp->cdsc_ctrl = q[0] >> 4; /* from mcd.c */ |
qp | 844 | drivers/cdrom/cm206.c | qp->cdsc_trk = q[1]; qp->cdsc_ind = q[2]; |
qp | 845 | drivers/cdrom/cm206.c | if (qp->cdsc_format == CDROM_MSF) { |
qp | 846 | drivers/cdrom/cm206.c | qp->cdsc_reladdr.msf.minute = q[3]; |
qp | 847 | drivers/cdrom/cm206.c | qp->cdsc_reladdr.msf.second = q[4]; |
qp | 848 | drivers/cdrom/cm206.c | qp->cdsc_reladdr.msf.frame = q[5]; |
qp | 849 | drivers/cdrom/cm206.c | qp->cdsc_absaddr.msf.minute = q[7]; |
qp | 850 | drivers/cdrom/cm206.c | qp->cdsc_absaddr.msf.second = q[8]; |
qp | 851 | drivers/cdrom/cm206.c | qp->cdsc_absaddr.msf.frame = q[9]; |
qp | 853 | drivers/cdrom/cm206.c | qp->cdsc_reladdr.lba = f_s_m2lba(q[5], q[4], q[3]); |
qp | 854 | drivers/cdrom/cm206.c | qp->cdsc_absaddr.lba = f_s_m2lba(q[9], q[8], q[7]); |
qp | 858 | drivers/cdrom/cm206.c | qp->cdsc_audiostatus = CDROM_AUDIO_PLAY ; |
qp | 860 | drivers/cdrom/cm206.c | qp->cdsc_audiostatus = CDROM_AUDIO_PAUSED; |
qp | 861 | drivers/cdrom/cm206.c | else qp->cdsc_audiostatus = CDROM_AUDIO_NO_STATUS; |
qp | 186 | drivers/cdrom/mcd.c | static int GetQChannelInfo(struct mcd_Toc *qp); |
qp | 1425 | drivers/cdrom/mcd.c | GetQChannelInfo(struct mcd_Toc *qp) |
qp | 1440 | drivers/cdrom/mcd.c | if (getValue(&qp -> ctrl_addr) < 0) return -1; |
qp | 1441 | drivers/cdrom/mcd.c | if (getValue(&qp -> track) < 0) return -1; |
qp | 1442 | drivers/cdrom/mcd.c | if (getValue(&qp -> pointIndex) < 0) return -1; |
qp | 1443 | drivers/cdrom/mcd.c | if (getValue(&qp -> trackTime.min) < 0) return -1; |
qp | 1444 | drivers/cdrom/mcd.c | if (getValue(&qp -> trackTime.sec) < 0) return -1; |
qp | 1445 | drivers/cdrom/mcd.c | if (getValue(&qp -> trackTime.frame) < 0) return -1; |
qp | 1447 | drivers/cdrom/mcd.c | if (getValue(&qp -> diskTime.min) < 0) return -1; |
qp | 1448 | drivers/cdrom/mcd.c | if (getValue(&qp -> diskTime.sec) < 0) return -1; |
qp | 1449 | drivers/cdrom/mcd.c | if (getValue(&qp -> diskTime.frame) < 0) return -1; |
qp | 617 | drivers/cdrom/optcd.c | static int get_q_channel(struct cdrom_subchnl *qp) |
qp | 624 | drivers/cdrom/optcd.c | qp->cdsc_audiostatus = audio_status; |
qp | 633 | drivers/cdrom/optcd.c | qp->cdsc_adr = d1; |
qp | 634 | drivers/cdrom/optcd.c | qp->cdsc_ctrl = d1 >> 4; |
qp | 639 | drivers/cdrom/optcd.c | qp->cdsc_trk = bcd2bin(d2); |
qp | 644 | drivers/cdrom/optcd.c | qp->cdsc_ind = bcd2bin(d3); |
qp | 649 | drivers/cdrom/optcd.c | qp->cdsc_reladdr.msf.minute = d4; |
qp | 654 | drivers/cdrom/optcd.c | qp->cdsc_reladdr.msf.second = d5; |
qp | 659 | drivers/cdrom/optcd.c | qp->cdsc_reladdr.msf.frame = d6; |
qp | 669 | drivers/cdrom/optcd.c | qp->cdsc_absaddr.msf.minute = d8; |
qp | 674 | drivers/cdrom/optcd.c | qp->cdsc_absaddr.msf.second = d9; |
qp | 679 | drivers/cdrom/optcd.c | qp->cdsc_absaddr.msf.frame = d10; |
qp | 684 | drivers/cdrom/optcd.c | msf_bcd2bin(&qp->cdsc_absaddr); |
qp | 685 | drivers/cdrom/optcd.c | msf_bcd2bin(&qp->cdsc_reladdr); |
qp | 686 | drivers/cdrom/optcd.c | if (qp->cdsc_format == CDROM_LBA) { |
qp | 687 | drivers/cdrom/optcd.c | msf2lba(&qp->cdsc_absaddr); |
qp | 688 | drivers/cdrom/optcd.c | msf2lba(&qp->cdsc_reladdr); |
qp | 568 | drivers/cdrom/sjcd.c | static int sjcd_get_q_info( struct sjcd_hw_qinfo *qp ){ |
qp | 584 | drivers/cdrom/sjcd.c | if( sjcd_load_response( qp, sizeof( *qp ) ) == 0 ) return( 0 ); |
qp | 131 | net/ipv4/ip_fragment.c | struct ipq *qp; |
qp | 136 | net/ipv4/ip_fragment.c | for(qp = ipqueue; qp != NULL; qplast = qp, qp = qp->next) |
qp | 138 | net/ipv4/ip_fragment.c | if (iph->id== qp->iph->id && iph->saddr == qp->iph->saddr && |
qp | 139 | net/ipv4/ip_fragment.c | iph->daddr == qp->iph->daddr && iph->protocol == qp->iph->protocol) |
qp | 141 | net/ipv4/ip_fragment.c | del_timer(&qp->timer); /* So it doesn't vanish on us. The timer will be reset anyway */ |
qp | 143 | net/ipv4/ip_fragment.c | return(qp); |
qp | 157 | net/ipv4/ip_fragment.c | static void ip_free(struct ipq *qp) |
qp | 166 | net/ipv4/ip_fragment.c | del_timer(&qp->timer); |
qp | 170 | net/ipv4/ip_fragment.c | if (qp->prev == NULL) |
qp | 172 | net/ipv4/ip_fragment.c | ipqueue = qp->next; |
qp | 178 | net/ipv4/ip_fragment.c | qp->prev->next = qp->next; |
qp | 179 | net/ipv4/ip_fragment.c | if (qp->next != NULL) |
qp | 180 | net/ipv4/ip_fragment.c | qp->next->prev = qp->prev; |
qp | 185 | net/ipv4/ip_fragment.c | fp = qp->fragments; |
qp | 196 | net/ipv4/ip_fragment.c | frag_kfree_s(qp->iph, 64 + 8); |
qp | 199 | net/ipv4/ip_fragment.c | frag_kfree_s(qp, sizeof(struct ipq)); |
qp | 210 | net/ipv4/ip_fragment.c | struct ipq *qp; |
qp | 212 | net/ipv4/ip_fragment.c | qp = (struct ipq *)arg; |
qp | 221 | net/ipv4/ip_fragment.c | if(qp->fragments!=NULL) |
qp | 222 | net/ipv4/ip_fragment.c | icmp_send(qp->fragments->skb,ICMP_TIME_EXCEEDED, |
qp | 223 | net/ipv4/ip_fragment.c | ICMP_EXC_FRAGTIME, 0, qp->dev); |
qp | 228 | net/ipv4/ip_fragment.c | ip_free(qp); |
qp | 255 | net/ipv4/ip_fragment.c | struct ipq *qp; |
qp | 258 | net/ipv4/ip_fragment.c | qp = (struct ipq *) frag_kmalloc(sizeof(struct ipq), GFP_ATOMIC); |
qp | 259 | net/ipv4/ip_fragment.c | if (qp == NULL) |
qp | 263 | net/ipv4/ip_fragment.c | skb->dev = qp->dev; |
qp | 265 | net/ipv4/ip_fragment.c | memset(qp, 0, sizeof(struct ipq)); |
qp | 272 | net/ipv4/ip_fragment.c | qp->iph = (struct iphdr *) frag_kmalloc(64 + 8, GFP_ATOMIC); |
qp | 273 | net/ipv4/ip_fragment.c | if (qp->iph == NULL) |
qp | 276 | net/ipv4/ip_fragment.c | frag_kfree_s(qp, sizeof(struct ipq)); |
qp | 280 | net/ipv4/ip_fragment.c | memcpy(qp->iph, iph, ihlen + 8); |
qp | 281 | net/ipv4/ip_fragment.c | qp->len = 0; |
qp | 282 | net/ipv4/ip_fragment.c | qp->ihlen = ihlen; |
qp | 283 | net/ipv4/ip_fragment.c | qp->fragments = NULL; |
qp | 284 | net/ipv4/ip_fragment.c | qp->dev = dev; |
qp | 287 | net/ipv4/ip_fragment.c | qp->timer.expires = jiffies + IP_FRAG_TIME; /* about 30 seconds */ |
qp | 288 | net/ipv4/ip_fragment.c | qp->timer.data = (unsigned long) qp; /* pointer to queue */ |
qp | 289 | net/ipv4/ip_fragment.c | qp->timer.function = ip_expire; /* expire function */ |
qp | 290 | net/ipv4/ip_fragment.c | add_timer(&qp->timer); |
qp | 293 | net/ipv4/ip_fragment.c | qp->prev = NULL; |
qp | 295 | net/ipv4/ip_fragment.c | qp->next = ipqueue; |
qp | 296 | net/ipv4/ip_fragment.c | if (qp->next != NULL) |
qp | 297 | net/ipv4/ip_fragment.c | qp->next->prev = qp; |
qp | 298 | net/ipv4/ip_fragment.c | ipqueue = qp; |
qp | 300 | net/ipv4/ip_fragment.c | return(qp); |
qp | 308 | net/ipv4/ip_fragment.c | static int ip_done(struct ipq *qp) |
qp | 314 | net/ipv4/ip_fragment.c | if (qp->len == 0) |
qp | 318 | net/ipv4/ip_fragment.c | fp = qp->fragments; |
qp | 341 | net/ipv4/ip_fragment.c | static struct sk_buff *ip_glue(struct ipq *qp) |
qp | 352 | net/ipv4/ip_fragment.c | len = qp->ihlen + qp->len; |
qp | 357 | net/ipv4/ip_fragment.c | NETDEBUG(printk("IP: queue_glue: no memory for gluing queue %p\n", qp)); |
qp | 358 | net/ipv4/ip_fragment.c | ip_free(qp); |
qp | 369 | net/ipv4/ip_fragment.c | memcpy(ptr, ((unsigned char *) qp->iph), qp->ihlen); |
qp | 370 | net/ipv4/ip_fragment.c | ptr += qp->ihlen; |
qp | 375 | net/ipv4/ip_fragment.c | fp = qp->fragments; |
qp | 381 | net/ipv4/ip_fragment.c | ip_free(qp); |
qp | 392 | net/ipv4/ip_fragment.c | ip_free(qp); |
qp | 413 | net/ipv4/ip_fragment.c | struct ipq *qp; |
qp | 431 | net/ipv4/ip_fragment.c | qp = ip_find(iph); |
qp | 439 | net/ipv4/ip_fragment.c | if (qp != NULL) |
qp | 440 | net/ipv4/ip_fragment.c | ip_free(qp); /* Huh? How could this exist?? */ |
qp | 453 | net/ipv4/ip_fragment.c | if (qp != NULL) |
qp | 460 | net/ipv4/ip_fragment.c | qp->ihlen = ihl; |
qp | 461 | net/ipv4/ip_fragment.c | memcpy(qp->iph, iph, ihl+8); |
qp | 463 | net/ipv4/ip_fragment.c | del_timer(&qp->timer); |
qp | 464 | net/ipv4/ip_fragment.c | qp->timer.expires = jiffies + IP_FRAG_TIME; /* about 30 seconds */ |
qp | 465 | net/ipv4/ip_fragment.c | qp->timer.data = (unsigned long) qp; /* pointer to queue */ |
qp | 466 | net/ipv4/ip_fragment.c | qp->timer.function = ip_expire; /* expire function */ |
qp | 467 | net/ipv4/ip_fragment.c | add_timer(&qp->timer); |
qp | 474 | net/ipv4/ip_fragment.c | if ((qp = ip_create(skb, iph, dev)) == NULL) |
qp | 500 | net/ipv4/ip_fragment.c | qp->len = end; |
qp | 509 | net/ipv4/ip_fragment.c | for(next = qp->fragments; next != NULL; next = next->next) |
qp | 552 | net/ipv4/ip_fragment.c | qp->fragments = tmp->next; |
qp | 586 | net/ipv4/ip_fragment.c | qp->fragments = tfp; |
qp | 597 | net/ipv4/ip_fragment.c | if (ip_done(qp)) |
qp | 599 | net/ipv4/ip_fragment.c | skb2 = ip_glue(qp); /* glue together the fragments */ |