Home
last modified time | relevance | path

Searched refs:th (Results 1 – 25 of 89) sorted by relevance

1234

/linux-2.4.37.9/include/net/
Dtcp_ecn.h41 TCP_ECN_make_synack(struct open_request *req, struct tcphdr *th) in TCP_ECN_make_synack() argument
44 th->ece = 1; in TCP_ECN_make_synack()
57 skb->h.th->cwr = 1; in TCP_ECN_send()
64 skb->h.th->ece = 1; in TCP_ECN_send()
73 if (skb->h.th->cwr) in TCP_ECN_accept_cwr()
98 TCP_ECN_rcv_synack(struct tcp_opt *tp, struct tcphdr *th) in TCP_ECN_rcv_synack() argument
100 if ((tp->ecn_flags&TCP_ECN_OK) && (!th->ece || th->cwr)) in TCP_ECN_rcv_synack()
105 TCP_ECN_rcv_syn(struct tcp_opt *tp, struct tcphdr *th) in TCP_ECN_rcv_syn() argument
107 if ((tp->ecn_flags&TCP_ECN_OK) && (!th->ece || !th->cwr)) in TCP_ECN_rcv_syn()
112 TCP_ECN_rcv_ecn_echo(struct tcp_opt *tp, struct tcphdr *th) in TCP_ECN_rcv_ecn_echo() argument
[all …]
/linux-2.4.37.9/fs/reiserfs/
Dnamei.c345 static int reiserfs_add_entry (struct reiserfs_transaction_handle *th, struct inode * dir, in reiserfs_add_entry() argument
452 PROC_INFO_MAX( th -> t_super, max_hash_collisions, gen_number ); in reiserfs_add_entry()
472 retval = reiserfs_paste_into_item (th, &path, &entry_key, buffer, paste_size); in reiserfs_add_entry()
485 reiserfs_update_sd (th, dir); in reiserfs_add_entry()
529 struct reiserfs_transaction_handle th ; in reiserfs_create() local
538 journal_begin(&th, dir->i_sb, jbegin_count) ; in reiserfs_create()
539 th.t_caller = "create" ; in reiserfs_create()
540 retval = reiserfs_new_inode (&th, dir, mode, 0, 0/*i_size*/, dentry, inode); in reiserfs_create()
549 retval = reiserfs_add_entry (&th, dir, dentry->d_name.name, dentry->d_name.len, in reiserfs_create()
553 reiserfs_update_sd (&th, inode); in reiserfs_create()
[all …]
Dbitmap.c134 static int scan_bitmap_block (struct reiserfs_transaction_handle *th, in scan_bitmap_block() argument
137 struct super_block *s = th->t_super; in scan_bitmap_block()
227 journal_mark_dirty (th, s, bi->bh); in scan_bitmap_block()
232 journal_mark_dirty (th, s, SB_BUFFER_WITH_SB(s)); in scan_bitmap_block()
243 static int scan_bitmap (struct reiserfs_transaction_handle *th, in scan_bitmap() argument
248 struct super_block * s = th->t_super; in scan_bitmap()
268 nr_allocated = scan_bitmap_block(th, bm, &off, off_max, min, max, unfm); in scan_bitmap()
276 nr_allocated = scan_bitmap_block(th, bm, &off, off_max, min, max, unfm); in scan_bitmap()
281 nr_allocated = scan_bitmap_block(th, bm, &off, end_off + 1, min, max, unfm); in scan_bitmap()
289 static void _reiserfs_free_block (struct reiserfs_transaction_handle *th, in _reiserfs_free_block() argument
[all …]
Dstree.c990 struct reiserfs_transaction_handle *th, in prepare_for_delete_or_cut() argument
1125 journal_mark_dirty (th, p_s_sb, p_s_bh); in prepare_for_delete_or_cut()
1127 reiserfs_free_block(th, tmp); in prepare_for_delete_or_cut()
1132 if (journal_transaction_should_end(th, th->t_blocks_allocated)) { in prepare_for_delete_or_cut()
1133 int orig_len_alloc = th->t_blocks_allocated ; in prepare_for_delete_or_cut()
1136 journal_end(th, p_s_sb, orig_len_alloc) ; in prepare_for_delete_or_cut()
1137 journal_begin(th, p_s_sb, orig_len_alloc) ; in prepare_for_delete_or_cut()
1199 struct reiserfs_transaction_handle *th, in init_tb_struct() argument
1206 p_s_tb->transaction_handle = th ; in init_tb_struct()
1226 int reiserfs_delete_item (struct reiserfs_transaction_handle *th, in reiserfs_delete_item() argument
[all …]
Dinode.c31 struct reiserfs_transaction_handle th ; in reiserfs_delete_inode() local
40 journal_begin(&th, inode->i_sb, jbegin_count) ; in reiserfs_delete_inode()
44 reiserfs_delete_object (&th, inode); in reiserfs_delete_inode()
47 journal_end(&th, inode->i_sb, jbegin_count) ; in reiserfs_delete_inode()
204 /*static*/ void restart_transaction(struct reiserfs_transaction_handle *th, in restart_transaction() argument
206 struct super_block *s = th->t_super ; in restart_transaction()
207 int len = th->t_blocks_allocated ; in restart_transaction()
210 reiserfs_update_sd(th, inode) ; in restart_transaction()
211 journal_end(th, s, len) ; in restart_transaction()
212 journal_begin(th, s, len) ; in restart_transaction()
[all …]
Dfile.c28 struct reiserfs_transaction_handle th ; in reiserfs_file_release() local
44 journal_begin(&th, inode->i_sb, JOURNAL_PER_BALANCE_CNT * 3) ; in reiserfs_file_release()
48 reiserfs_discard_prealloc (&th, inode); in reiserfs_file_release()
50 journal_end(&th, inode->i_sb, JOURNAL_PER_BALANCE_CNT * 3) ; in reiserfs_file_release()
108 struct reiserfs_transaction_handle th ; in reiserfs_setattr() local
110 journal_begin(&th, inode->i_sb, 4) ; in reiserfs_setattr()
111 reiserfs_discard_prealloc (&th, inode); in reiserfs_setattr()
112 journal_end(&th, inode->i_sb, 4) ; in reiserfs_setattr()
Dsuper.c69 struct reiserfs_transaction_handle th ; in reiserfs_write_super_lockfs() local
72 journal_begin(&th, s, 1) ; in reiserfs_write_super_lockfs()
74 journal_mark_dirty(&th, s, SB_BUFFER_WITH_SB (s)); in reiserfs_write_super_lockfs()
75 reiserfs_block_writes(&th) ; in reiserfs_write_super_lockfs()
76 journal_end(&th, s, 1) ; in reiserfs_write_super_lockfs()
98 struct reiserfs_transaction_handle th; in remove_save_link_only() local
101 journal_begin (&th, s, JOURNAL_PER_BALANCE_CNT); in remove_save_link_only()
103 reiserfs_delete_solid_item (&th, key); in remove_save_link_only()
106 reiserfs_release_objectid (&th, le32_to_cpu (key->k_objectid)); in remove_save_link_only()
108 journal_end (&th, s, JOURNAL_PER_BALANCE_CNT); in remove_save_link_only()
[all …]
Djournal.c98 static int journal_join(struct reiserfs_transaction_handle *th, struct super_block *p_s_sb, unsigne…
1330 static int do_journal_release(struct reiserfs_transaction_handle *th, struct super_block *p_s_sb, i… in do_journal_release() argument
1337 do_journal_end(th, p_s_sb,10, FLUSH_ALL) ; in do_journal_release()
1361 int journal_release(struct reiserfs_transaction_handle *th, struct super_block *p_s_sb) { in journal_release() argument
1362 return do_journal_release(th, p_s_sb, 0) ; in journal_release()
1367 int journal_release_error(struct reiserfs_transaction_handle *th, struct super_block *p_s_sb) { in journal_release_error() argument
1368 return do_journal_release(th, p_s_sb, 1) ; in journal_release_error()
2237 int journal_transaction_should_end(struct reiserfs_transaction_handle *th, int new_alloc) { in journal_transaction_should_end() argument
2239 if (reiserfs_dont_log(th->t_super)) in journal_transaction_should_end()
2241 if ( SB_JOURNAL(th->t_super)->j_must_wait > 0 || in journal_transaction_should_end()
[all …]
Dobjectid.c52 __u32 reiserfs_get_unused_objectid (struct reiserfs_transaction_handle *th) in reiserfs_get_unused_objectid() argument
54 struct super_block * s = th->t_super; in reiserfs_get_unused_objectid()
89 journal_mark_dirty(th, s, SB_BUFFER_WITH_SB (s)); in reiserfs_get_unused_objectid()
96 void reiserfs_release_objectid (struct reiserfs_transaction_handle *th, in reiserfs_release_objectid() argument
99 struct super_block * s = th->t_super; in reiserfs_release_objectid()
108 journal_mark_dirty(th, s, SB_BUFFER_WITH_SB (s)); in reiserfs_release_objectid()
Dresize.c24 struct reiserfs_transaction_handle th; in reiserfs_resize() local
133 journal_begin(&th, s, 10); in reiserfs_resize()
143 journal_mark_dirty(&th, s, SB_AP_BITMAP(s)[bmap_nr - 1].bh); in reiserfs_resize()
149 journal_mark_dirty(&th, s, SB_AP_BITMAP(s)[bmap_nr_new - 1].bh); in reiserfs_resize()
163 journal_mark_dirty(&th, s, SB_BUFFER_WITH_SB(s)); in reiserfs_resize()
166 journal_end(&th, s, 10); in reiserfs_resize()
Dtail_conversion.c19 int direct2indirect (struct reiserfs_transaction_handle *th, struct inode * inode, in direct2indirect() argument
69 n_retval = reiserfs_insert_item (th, path, &end_key, &ind_ih, in direct2indirect()
73 n_retval = reiserfs_paste_into_item(th, path, &end_key, in direct2indirect()
115 n_retval = reiserfs_delete_item (th, path, &end_key, inode, in direct2indirect()
194 int indirect2direct (struct reiserfs_transaction_handle *th, in indirect2direct() argument
264 if ( reiserfs_insert_item(th, p_s_path, &key, &s_ih, in indirect2direct()
/linux-2.4.37.9/fs/hfs/
Dbtree.c161 struct BTHdrRec * th; in hfs_btree_init() local
203 th = (struct BTHdrRec *)((char *)hfs_buffer_data(bt->head.buf) + in hfs_btree_init()
220 if (hfs_get_ns(th->bthNodeSize) != htons(HFS_SECTOR_SIZE)) { in hfs_btree_init()
232 bt->bthDepth = hfs_get_hs(th->bthDepth); in hfs_btree_init()
233 bt->bthRoot = hfs_get_hl(th->bthRoot); in hfs_btree_init()
234 bt->bthNRecs = hfs_get_hl(th->bthNRecs); in hfs_btree_init()
235 bt->bthFNode = hfs_get_hl(th->bthFNode); in hfs_btree_init()
236 bt->bthLNode = hfs_get_hl(th->bthLNode); in hfs_btree_init()
237 bt->bthNNodes = hfs_get_hl(th->bthNNodes); in hfs_btree_init()
238 bt->bthFree = hfs_get_hl(th->bthFree); in hfs_btree_init()
[all …]
/linux-2.4.37.9/drivers/char/
Dds1620.c320 struct therm th; in proc_therm_ds1620_read() local
323 ds1620_read_state(&th); in proc_therm_ds1620_read()
328 th.hi >> 1, th.hi & 1 ? 5 : 0, in proc_therm_ds1620_read()
329 th.lo >> 1, th.lo & 1 ? 5 : 0, in proc_therm_ds1620_read()
354 struct therm th, th_start; in ds1620_init() local
368 ds1620_read_state(&th); in ds1620_init()
376 ds1620_write_state(&th); in ds1620_init()
390 ds1620_read_state(&th); in ds1620_init()
395 th.hi >> 1, th.hi & 1 ? 5 : 0, in ds1620_init()
396 th.lo >> 1, th.lo & 1 ? 5 : 0, in ds1620_init()
/linux-2.4.37.9/net/ipv4/ipvs/
Dip_vs_app.c205 static inline void vs_fix_seq(const struct ip_vs_seq *vseq, struct tcphdr *th) in vs_fix_seq() argument
207 __u32 seq = ntohl(th->seq); in vs_fix_seq()
216 th->seq = htonl(seq + vseq->delta); in vs_fix_seq()
220 th->seq = htonl(seq + vseq->previous_delta); in vs_fix_seq()
232 vs_fix_ack_seq(const struct ip_vs_seq *vseq, struct tcphdr *th) in vs_fix_ack_seq() argument
234 __u32 ack_seq = ntohl(th->ack_seq); in vs_fix_ack_seq()
245 th->ack_seq = htonl(ack_seq - vseq->delta); in vs_fix_ack_seq()
250 th->ack_seq = htonl(ack_seq - vseq->previous_delta); in vs_fix_ack_seq()
288 struct tcphdr *th; in ip_vs_app_pkt_out() local
299 th = (struct tcphdr *)&(((char *)iph)[iph->ihl*4]); in ip_vs_app_pkt_out()
[all …]
Dip_vs_ftp.c147 struct tcphdr *th; in ip_vs_ftp_out() local
163 th = (struct tcphdr *)&(((char *)iph)[iph->ihl*4]); in ip_vs_ftp_out()
164 data = (char *)th + (th->doff << 2); in ip_vs_ftp_out()
248 struct tcphdr *th; in ip_vs_ftp_in() local
263 th = (struct tcphdr *)&(((char *)iph)[iph->ihl*4]); in ip_vs_ftp_in()
268 data = data_start = (char *)th + (th->doff << 2); in ip_vs_ftp_in()
/linux-2.4.37.9/drivers/net/
Dslhc.c244 struct tcphdr *th, *oth; in slhc_compress() local
267 th = (struct tcphdr *)(((unsigned char *)ip) + ip->ihl*4); in slhc_compress()
268 hlen = ip->ihl*4 + th->doff*4; in slhc_compress()
274 if(hlen > isize || th->syn || th->fin || th->rst || in slhc_compress()
275 ! (th->ack)){ in slhc_compress()
297 && th->source == cs->cs_tcp.source in slhc_compress()
298 && th->dest == cs->cs_tcp.dest) in slhc_compress()
355 || th->doff != cs->cs_tcp.doff in slhc_compress()
357 || (th->doff > 5 && memcmp(th+1,cs->cs_tcpopt,((th->doff)-5)*4) != 0)){ in slhc_compress()
367 if(th->urg){ in slhc_compress()
[all …]
/linux-2.4.37.9/net/ipv4/
Dtcp_ipv4.c83 void tcp_v4_send_check(struct sock *sk, struct tcphdr *th, int len,
553 skb->h.th->dest, in tcp_v4_init_sequence()
554 skb->h.th->source); in tcp_v4_init_sequence()
986 struct tcphdr *th = (struct tcphdr*)(skb->data+(iph->ihl<<2)); in tcp_v4_err() local
999 sk = tcp_v4_lookup(iph->daddr, th->dest, iph->saddr, th->source, tcp_v4_iif(skb)); in tcp_v4_err()
1020 seq = ntohl(th->seq); in tcp_v4_err()
1059 th->dest, in tcp_v4_err()
1129 void tcp_v4_send_check(struct sock *sk, struct tcphdr *th, int len, in tcp_v4_send_check() argument
1133 th->check = ~tcp_v4_check(th, len, sk->saddr, sk->daddr, 0); in tcp_v4_send_check()
1136 th->check = tcp_v4_check(th, len, sk->saddr, sk->daddr, in tcp_v4_send_check()
[all …]
Dsyncookies.c63 skb->h.th->source, skb->h.th->dest, in cookie_v4_init_sequence()
64 ntohl(skb->h.th->seq), in cookie_v4_init_sequence()
84 seq = ntohl(skb->h.th->seq)-1; in cookie_check()
87 skb->h.th->source, skb->h.th->dest, in cookie_check()
114 __u32 cookie = ntohl(skb->h.th->ack_seq) - 1; in cookie_v4_check()
121 if (!sysctl_tcp_syncookies || !skb->h.th->ack) in cookie_v4_check()
137 req->rcv_isn = htonl(skb->h.th->seq) - 1; in cookie_v4_check()
140 req->rmt_port = skb->h.th->source; in cookie_v4_check()
Dtcp_output.c202 struct tcphdr *th; in tcp_transmit_skb() local
246 th = (struct tcphdr *) skb_push(skb, tcp_header_size); in tcp_transmit_skb()
247 skb->h.th = th; in tcp_transmit_skb()
251 th->source = sk->sport; in tcp_transmit_skb()
252 th->dest = sk->dport; in tcp_transmit_skb()
253 th->seq = htonl(tcb->seq); in tcp_transmit_skb()
254 th->ack_seq = htonl(tp->rcv_nxt); in tcp_transmit_skb()
255 *(((__u16 *)th) + 6) = htons(((tcp_header_size >> 2) << 12) | tcb->flags); in tcp_transmit_skb()
260 th->window = htons(tp->rcv_wnd); in tcp_transmit_skb()
262 th->window = htons(tcp_select_window(sk)); in tcp_transmit_skb()
[all …]
Dtcp_input.c163 !(tcp_flag_word(skb->h.th)&TCP_REMNANT))) { in tcp_measure_rcv_mss()
2475 u32 nwin = ntohs(skb->h.th->window); in tcp_ack_update_window()
2477 if (likely(!skb->h.th->syn)) in tcp_ack_update_window()
2807 if (TCP_ECN_rcv_ecn_echo(tp, skb->h.th)) in tcp_ack()
2874 struct tcphdr *th = skb->h.th; in tcp_parse_options() local
2875 int length=(th->doff*4)-sizeof(struct tcphdr); in tcp_parse_options()
2877 ptr = (unsigned char *)(th + 1); in tcp_parse_options()
2898 if(opsize==TCPOLEN_MSS && th->syn && !estab) { in tcp_parse_options()
2908 if(opsize==TCPOLEN_WINDOW && th->syn && !estab) in tcp_parse_options()
2932 if(opsize==TCPOLEN_SACK_PERM && th->syn && !estab) { in tcp_parse_options()
[all …]
Dtcp_minisocks.c129 struct tcphdr *th, unsigned len) in tcp_timewait_state_process() argument
135 if (th->doff > (sizeof(struct tcphdr)>>2) && tw->ts_recent_stamp) { in tcp_timewait_state_process()
141 paws_reject = tcp_paws_check(&tp, th->rst); in tcp_timewait_state_process()
154 if (th->rst) in tcp_timewait_state_process()
157 if (th->syn && !before(TCP_SKB_CB(skb)->seq, tw->rcv_nxt)) in tcp_timewait_state_process()
170 if (!th->fin || TCP_SKB_CB(skb)->end_seq != tw->rcv_nxt+1) { in tcp_timewait_state_process()
219 (TCP_SKB_CB(skb)->seq == TCP_SKB_CB(skb)->end_seq || th->rst))) { in tcp_timewait_state_process()
222 if (th->rst) { in tcp_timewait_state_process()
263 if (th->syn && !th->rst && !th->ack && !paws_reject && in tcp_timewait_state_process()
276 if(!th->rst) { in tcp_timewait_state_process()
[all …]
/linux-2.4.37.9/arch/parisc/hpux/
Dgate.S38 ldw -64(%r30), %r29 ;! 8th argument
39 ldw -60(%r30), %r19 ;! 7th argument
40 ldw -56(%r30), %r20 ;! 6th argument
41 ldw -52(%r30), %r21 ;! 5th argument
95 stw %r21, -52(%r30) ;! 5th argument
96 stw %r20, -56(%r30) ;! 6th argument
97 stw %r19, -60(%r30) ;! 7th argument
98 stw %r29, -64(%r30) ;! 8th argument
/linux-2.4.37.9/fs/intermezzo/
Djournal_reiserfs.c70 struct reiserfs_transaction_handle *th ;
72 PRESTO_ALLOC(th, sizeof(*th));
73 if (!th) {
101 journal_begin(th, inode->i_sb, jblocks);
103 return th;
/linux-2.4.37.9/net/ipv6/
Dtcp_ipv6.c58 static void tcp_v6_send_check(struct sock *sk, struct tcphdr *th, int len,
421 static __inline__ u16 tcp_v6_check(struct tcphdr *th, int len, in tcp_v6_check() argument
434 skb->h.th->dest, in tcp_v6_init_sequence()
435 skb->h.th->source); in tcp_v6_init_sequence()
439 skb->h.th->dest, in tcp_v6_init_sequence()
440 skb->h.th->source); in tcp_v6_init_sequence()
731 struct tcphdr *th = (struct tcphdr *)(skb->data+offset); in tcp_v6_err() local
738 sk = tcp_v6_lookup(&hdr->daddr, th->dest, &hdr->saddr, th->source, skb->dev->ifindex); in tcp_v6_err()
758 seq = ntohl(th->seq); in tcp_v6_err()
814 req = tcp_v6_search_req(tp, &prev, th->dest, &hdr->daddr, in tcp_v6_err()
[all …]
/linux-2.4.37.9/arch/ia64/kernel/
Dperfmon_mckinley.h98 struct thread_struct *th = &task->thread; in pfm_mck_pmc_check() local
144 val13 = th->pmc[13]; in pfm_mck_pmc_check()
145 val14 = th->pmc[14]; in pfm_mck_pmc_check()
148 case 13: val8 = th->pmc[8]; in pfm_mck_pmc_check()
150 val14 = th->pmc[14]; in pfm_mck_pmc_check()
153 case 14: val8 = th->pmc[13]; in pfm_mck_pmc_check()
154 val13 = th->pmc[13]; in pfm_mck_pmc_check()

1234