Home
last modified time | relevance | path

Searched refs:frag (Results 1 – 25 of 328) sorted by relevance

12345678910>>...14

/linux/fs/jffs2/
A Dread.c161 struct jffs2_node_frag *frag; in jffs2_read_inode_range() local
177 if (unlikely(!frag || frag->ofs > offset || in jffs2_read_inode_range()
178 frag->ofs + frag->size <= offset)) { in jffs2_read_inode_range()
180 if (frag && frag->ofs > offset) { in jffs2_read_inode_range()
192 uint32_t holeend = min(end, frag->ofs + frag->size); in jffs2_read_inode_range()
195 frag->ofs + frag->size); in jffs2_read_inode_range()
199 frag = frag_next(frag); in jffs2_read_inode_range()
205 fragofs = offset - frag->ofs; in jffs2_read_inode_range()
208 frag->ofs+fragofs, in jffs2_read_inode_range()
212 ret = jffs2_read_dnode(c, f, frag->node, buf, fragofs + frag->ofs - frag->node->ofs, readlen); in jffs2_read_inode_range()
[all …]
A Dgc.c534 for (frag = frag_first(&f->fragtree); frag; frag = frag_next(frag)) { in jffs2_garbage_collect_live()
537 end = frag->ofs + frag->size; in jffs2_garbage_collect_live()
1140 frag; frag = frag_next(frag)) { in jffs2_garbage_collect_hole()
1206 while((frag = frag_prev(frag)) && frag->ofs >= min) { in jffs2_garbage_collect_dnode()
1212 frag->ofs, frag->ofs+frag->size); in jffs2_garbage_collect_dnode()
1219 frag->ofs, frag->ofs+frag->size); in jffs2_garbage_collect_dnode()
1250 frag->ofs + frag->size, in jffs2_garbage_collect_dnode()
1262 while((frag = frag_next(frag)) && frag->ofs+frag->size <= max) { in jffs2_garbage_collect_dnode()
1268 frag->ofs, frag->ofs+frag->size); in jffs2_garbage_collect_dnode()
1275 frag->ofs, frag->ofs+frag->size); in jffs2_garbage_collect_dnode()
[all …]
A Dnodelist.c66 if (frag && frag->ofs != size) { in jffs2_truncate_fragtree()
67 if (frag->ofs+frag->size > size) { in jffs2_truncate_fragtree()
68 frag->size = size - frag->ofs; in jffs2_truncate_fragtree()
70 frag = frag_next(frag); in jffs2_truncate_fragtree()
72 while (frag && frag->ofs >= size) { in jffs2_truncate_fragtree()
86 if (!frag) in jffs2_truncate_fragtree()
88 if (frag->ofs + frag->size < size) in jffs2_truncate_fragtree()
89 return frag->ofs + frag->size; in jffs2_truncate_fragtree()
95 frag->ofs, frag->ofs + frag->size); in jffs2_truncate_fragtree()
539 if (frag->ofs + frag->size <= offset) { in jffs2_lookup_node_frag()
[all …]
A Dnodelist.h347 #define frag_next(frag) rb_entry(rb_next(&(frag)->rb), struct jffs2_node_frag, rb) argument
348 #define frag_prev(frag) rb_entry(rb_prev(&(frag)->rb), struct jffs2_node_frag, rb) argument
349 #define frag_parent(frag) rb_entry(rb_parent(&(frag)->rb), struct jffs2_node_frag, rb) argument
350 #define frag_left(frag) rb_entry((frag)->rb.rb_left, struct jffs2_node_frag, rb) argument
351 #define frag_right(frag) rb_entry((frag)->rb.rb_right, struct jffs2_node_frag, rb) argument
352 #define frag_erase(frag, list) rb_erase(&frag->rb, list) argument
A Ddebug.c77 struct jffs2_node_frag *frag; in __jffs2_dbg_fragtree_paranoia_check_nolock() local
80 for (frag = frag_first(&f->fragtree); frag; frag = frag_next(frag)) { in __jffs2_dbg_fragtree_paranoia_check_nolock()
81 struct jffs2_full_dnode *fn = frag->node; in __jffs2_dbg_fragtree_paranoia_check_nolock()
98 if (frag->ofs & (PAGE_SIZE-1) && frag_prev(frag) in __jffs2_dbg_fragtree_paranoia_check_nolock()
99 && frag_prev(frag)->size < PAGE_SIZE && frag_prev(frag)->node) { in __jffs2_dbg_fragtree_paranoia_check_nolock()
105 if ((frag->ofs+frag->size) & (PAGE_SIZE-1) && frag_next(frag) in __jffs2_dbg_fragtree_paranoia_check_nolock()
106 && frag_next(frag)->size < PAGE_SIZE && frag_next(frag)->node) { in __jffs2_dbg_fragtree_paranoia_check_nolock()
108 ref_offset(fn->raw), frag->ofs, frag->ofs+frag->size); in __jffs2_dbg_fragtree_paranoia_check_nolock()
/linux/fs/xfs/scrub/
A Drefcount.c130 if (!frag) in xchk_refcountbt_rmap_check()
132 memcpy(&frag->rm, rec, sizeof(frag->rm)); in xchk_refcountbt_rmap_check()
190 bno = frag->rm.rm_startblock + frag->rm.rm_blockcount; in xchk_refcountbt_process_rmap_fragments()
209 bno = frag->rm.rm_startblock + frag->rm.rm_blockcount; in xchk_refcountbt_process_rmap_fragments()
216 kmem_free(frag); in xchk_refcountbt_process_rmap_fragments()
222 bno = frag->rm.rm_startblock + frag->rm.rm_blockcount; in xchk_refcountbt_process_rmap_fragments()
257 list_del(&frag->list); in xchk_refcountbt_process_rmap_fragments()
258 kmem_free(frag); in xchk_refcountbt_process_rmap_fragments()
261 list_del(&frag->list); in xchk_refcountbt_process_rmap_fragments()
262 kmem_free(frag); in xchk_refcountbt_process_rmap_fragments()
[all …]
/linux/lib/kunit/
A Dstring-stream.c25 struct string_stream_fragment *frag; in string_stream_fragment_init() local
27 frag = kunit_kzalloc(ctx->test, sizeof(*frag), ctx->gfp); in string_stream_fragment_init()
28 if (!frag) in string_stream_fragment_init()
31 frag->test = ctx->test; in string_stream_fragment_init()
33 if (!frag->fragment) in string_stream_fragment_init()
36 res->data = frag; in string_stream_fragment_init()
45 list_del(&frag->node); in string_stream_fragment_free()
46 kunit_kfree(frag->test, frag->fragment); in string_stream_fragment_free()
47 kunit_kfree(frag->test, frag); in string_stream_fragment_free()
68 return kunit_destroy_resource(frag->test, in string_stream_fragment_destroy()
[all …]
/linux/net/ieee802154/6lowpan/
A Dtx.c105 struct sk_buff *frag; in lowpan_alloc_frag() local
111 if (likely(frag)) { in lowpan_alloc_frag()
112 frag->dev = wdev; in lowpan_alloc_frag()
125 kfree_skb(frag); in lowpan_alloc_frag()
130 frag = ERR_PTR(-ENOMEM); in lowpan_alloc_frag()
133 return frag; in lowpan_alloc_frag()
141 struct sk_buff *frag; in lowpan_xmit_fragment() local
146 if (IS_ERR(frag)) in lowpan_xmit_fragment()
147 return PTR_ERR(frag); in lowpan_xmit_fragment()
152 raw_dump_table(__func__, " fragment dump", frag->data, frag->len); in lowpan_xmit_fragment()
[all …]
/linux/fs/ceph/
A Dinode.c151 c = ceph_frag_compare(f, frag->frag); in __get_or_create_frag()
160 frag = kmalloc(sizeof(*frag), GFP_NOFS); in __get_or_create_frag()
164 frag->frag = f; in __get_or_create_frag()
187 int c = ceph_frag_compare(f, frag->frag); in __ceph_find_frag()
319 ceph_vinop(inode), frag->frag, frag->ndist); in ceph_fill_dirfrag()
338 if (ceph_frag_bits(f) != ceph_frag_bits(frag->frag) + frag->split_by) in is_frag_child()
397 if (frag->frag != id) in ceph_fill_fragtree()
406 !is_frag_child(frag->frag, prev_frag)) { in ceph_fill_fragtree()
422 dout(" frag %x split by %d\n", frag->frag, frag->split_by); in ceph_fill_fragtree()
430 !is_frag_child(frag->frag, prev_frag)) { in ceph_fill_fragtree()
[all …]
/linux/fs/configfs/
A Dfile.c66 down_read(&frag->frag_sem); in fill_read_buffer()
67 if (!frag->frag_dead) in fill_read_buffer()
69 up_read(&frag->frag_sem); in fill_read_buffer()
126 if (!frag->frag_dead) in configfs_bin_read_iter()
130 up_read(&frag->frag_sem); in configfs_bin_read_iter()
151 if (!frag->frag_dead) in configfs_bin_read_iter()
156 up_read(&frag->frag_sem); in configfs_bin_read_iter()
206 if (!frag->frag_dead) in flush_write_buffer()
208 up_read(&frag->frag_sem); in flush_write_buffer()
367 up_read(&frag->frag_sem); in __configfs_open_file()
[all …]
A Ddir.c166 if (frag && atomic_dec_and_test(&frag->frag_count)) in put_fragment()
167 kfree(frag); in put_fragment()
172 if (likely(frag)) in get_fragment()
174 return frag; in get_fragment()
290 frag); in configfs_create_dir()
1276 if (!frag) { in configfs_mkdir()
1422 put_fragment(frag); in configfs_mkdir()
1492 frag = sd->s_frag; in configfs_rmdir()
1727 if (!frag) in configfs_register_group()
1745 put_fragment(frag); in configfs_register_group()
[all …]
/linux/net/rds/
A Dib_recv.c159 struct rds_page_frag *frag; in rds_ib_recv_free_caches() local
195 rdsdebug("frag %p page %p\n", frag, sg_page(&frag->f_sg)); in rds_ib_frag_free()
206 struct rds_page_frag *frag; in rds_ib_inc_free() local
215 rds_ib_frag_free(ic, frag); in rds_ib_inc_free()
278 struct rds_page_frag *frag; in rds_ib_refill_one_frag() local
289 if (!frag) in rds_ib_refill_one_frag()
304 return frag; in rds_ib_refill_one_frag()
535 struct rds_page_frag *frag; in rds_ib_inc_copy_to_user() local
548 frag = list_entry(frag->f_item.next, in rds_ib_inc_copy_to_user()
788 struct rds_page_frag *frag; in rds_ib_cong_recv() local
[all …]
/linux/fs/adfs/
A Dmap.c76 u32 frag; in lookup_zone() local
79 freelink = frag ? 8 + frag : 0; in lookup_zone()
89 freelink += frag & 0x7fff; in lookup_zone()
90 } else if (frag == frag_id) { in lookup_zone()
104 frag, start, fragend); in lookup_zone()
123 u32 frag; in scan_free_map() local
129 frag = GET_FRAG_ID(map, start, idmask); in scan_free_map()
135 if (frag == 0) in scan_free_map()
139 start += frag; in scan_free_map()
148 } while (frag >= idlen + 1); in scan_free_map()
[all …]
/linux/net/tipc/
A Dmsg.c134 if (!frag) in tipc_buf_append()
137 msg = buf_msg(frag); in tipc_buf_append()
139 frag->next = NULL; in tipc_buf_append()
146 if (skb_has_frag_list(frag) && __skb_linearize(frag)) in tipc_buf_append()
148 frag = skb_unshare(frag, GFP_ATOMIC); in tipc_buf_append()
149 if (unlikely(!frag)) in tipc_buf_append()
151 head = *headbuf = frag; in tipc_buf_append()
166 tail->next = frag; in tipc_buf_append()
169 head->len += frag->len; in tipc_buf_append()
781 if (!frag) in tipc_msg_reassemble()
[all …]
/linux/net/ipv6/
A Dip6_output.c690 struct sk_buff *frag = iter->frag; in ip6_fraglist_prepare() local
704 if (frag->next) in ip6_fraglist_prepare()
707 ipv6_hdr(frag)->payload_len = htons(frag->len - sizeof(struct ipv6hdr)); in ip6_fraglist_prepare()
752 if (!frag) in ip6_frag_next()
764 frag->transport_header = (frag->network_header + state->hlen + in ip6_frag_next()
805 return frag; in ip6_frag_next()
879 ((frag->len & 7) && frag->next) || in ip6_fragment()
887 BUG_ON(frag->sk); in ip6_fragment()
903 if (iter.frag) in ip6_fragment()
934 if (frag2 == frag) in ip6_fragment()
[all …]
/linux/net/core/
A Dtso.c62 skb_frag_t *frag = &skb_shinfo(skb)->frags[tso->next_frag_idx]; in tso_build_data() local
65 tso->size = skb_frag_size(frag); in tso_build_data()
66 tso->data = skb_frag_address(frag); in tso_build_data()
88 skb_frag_t *frag = &skb_shinfo(skb)->frags[tso->next_frag_idx]; in tso_start() local
91 tso->size = skb_frag_size(frag); in tso_start()
92 tso->data = skb_frag_address(frag); in tso_start()
A Ddatagram.c437 const skb_frag_t *frag = &skb_shinfo(skb)->frags[i]; in __skb_datagram_iter() local
441 end = start + skb_frag_size(frag); in __skb_datagram_iter()
443 struct page *page = skb_frag_page(frag); in __skb_datagram_iter()
449 vaddr + skb_frag_off(frag) + offset - start, in __skb_datagram_iter()
573 end = start + skb_frag_size(frag); in skb_copy_datagram_from_iter()
579 copied = copy_page_from_iter(skb_frag_page(frag), in skb_copy_datagram_from_iter()
580 skb_frag_off(frag) + offset - start, in skb_copy_datagram_from_iter()
622 int frag = skb_shinfo(skb)->nr_frags; in __zerocopy_sg_from_iter() local
632 if (frag == MAX_SKB_FRAGS) in __zerocopy_sg_from_iter()
636 MAX_SKB_FRAGS - frag, &start); in __zerocopy_sg_from_iter()
[all …]
/linux/drivers/infiniband/hw/hfi1/
A Dipoib_rx.c29 void *frag; in prepare_frag_skb() local
33 frag = napi_alloc_frag(skb_size); in prepare_frag_skb()
35 if (unlikely(!frag)) in prepare_frag_skb()
38 skb = build_skb(frag, skb_size); in prepare_frag_skb()
41 skb_free_frag(frag); in prepare_frag_skb()
/linux/arch/powerpc/mm/book3s64/
A Dmmu_context.c243 void *frag; in destroy_pagetable_cache() local
245 frag = mm->context.pte_frag; in destroy_pagetable_cache()
246 if (frag) in destroy_pagetable_cache()
247 pte_frag_destroy(frag); in destroy_pagetable_cache()
249 frag = mm->context.pmd_frag; in destroy_pagetable_cache()
250 if (frag) in destroy_pagetable_cache()
251 pmd_frag_destroy(frag); in destroy_pagetable_cache()
/linux/net/ipv4/
A Dip_output.c613 struct sk_buff *frag; in ip_fraglist_prepare() local
615 frag = iter->frag; in ip_fraglist_prepare()
618 __skb_push(frag, hlen); in ip_fraglist_prepare()
627 if (frag->next) in ip_fraglist_prepare()
810 ((frag->len & 7) && frag->next) || in ip_do_fragment()
815 if (skb_shared(frag)) in ip_do_fragment()
818 BUG_ON(frag->sk); in ip_do_fragment()
820 frag->sk = skb->sk; in ip_do_fragment()
829 if (iter.frag) in ip_do_fragment()
835 if (iter.frag) { in ip_do_fragment()
[all …]
/linux/net/tls/
A Dtls_device.c250 skb_frag_t *frag; in tls_append_frag() local
254 skb_frag_off(frag) + skb_frag_size(frag) == pfrag->offset) { in tls_append_frag()
255 skb_frag_size_add(frag, size); in tls_append_frag()
257 ++frag; in tls_append_frag()
260 skb_frag_size_set(frag, size); in tls_append_frag()
277 skb_frag_t *frag; in tls_push_record() local
290 frag = &record->frags[i]; in tls_push_record()
293 skb_frag_size(frag), skb_frag_off(frag)); in tls_push_record()
295 get_page(skb_frag_page(frag)); in tls_push_record()
340 skb_frag_t *frag; in tls_create_new_record() local
[all …]
/linux/drivers/net/ethernet/netronome/nfp/
A Dnfp_net_common.c986 const skb_frag_t *frag; in nfp_net_tx() local
1363 skb_free_frag(frag); in nfp_net_free_frag()
1379 void *frag; in nfp_net_rx_alloc_one() local
1389 if (!frag) { in nfp_net_rx_alloc_one()
1401 return frag; in nfp_net_rx_alloc_one()
1406 void *frag; in nfp_net_napi_alloc_one() local
1410 if (unlikely(!frag)) in nfp_net_napi_alloc_one()
1428 return frag; in nfp_net_napi_alloc_one()
1449 rx_ring->rxbufs[wr_idx].frag = frag; in nfp_net_rx_give_one()
1488 rx_ring->rxbufs[wr_idx].frag = rx_ring->rxbufs[last_idx].frag; in nfp_net_rx_ring_reset()
[all …]
A Dnfp_net_debugfs.c18 void *frag; in nfp_rx_q_show() local
45 frag = READ_ONCE(rx_ring->rxbufs[i].frag); in nfp_rx_q_show()
46 if (frag) in nfp_rx_q_show()
47 seq_printf(file, " frag=%p", frag); in nfp_rx_q_show()
119 READ_ONCE(tx_ring->txbufs[i].frag)); in nfp_tx_q_show()
/linux/net/bridge/netfilter/
A Dnf_conntrack_bridge.c60 struct sk_buff *frag; in nf_br_ip_fragment() local
69 skb_walk_frags(skb, frag) { in nf_br_ip_fragment()
70 if (frag->len > mtu || in nf_br_ip_fragment()
71 skb_headroom(frag) < hlen + ll_rs) in nf_br_ip_fragment()
74 if (skb_shared(frag)) in nf_br_ip_fragment()
81 if (iter.frag) in nf_br_ip_fragment()
86 if (err || !iter.frag) in nf_br_ip_fragment()
95 kfree_skb_list(iter.frag); in nf_br_ip_fragment()
/linux/drivers/net/wireless/zydas/
A Dzd1201.c347 frag = kmalloc(sizeof(*frag), GFP_ATOMIC); in zd1201_usbrx()
348 if (!frag) in zd1201_usbrx()
352 kfree(frag); in zd1201_usbrx()
355 frag->skb = skb; in zd1201_usbrx()
367 if (!frag) in zd1201_usbrx()
369 skb = frag->skb; in zd1201_usbrx()
376 kfree(frag); in zd1201_usbrx()
1346 if (frag->disabled || !frag->fixed) in zd1201_set_frag()
1371 frag->disabled = (frag->value == ZD1201_FRAGMAX); in zd1201_get_frag()
1372 frag->fixed = 1; in zd1201_get_frag()
[all …]

Completed in 59 milliseconds

12345678910>>...14