Home
last modified time | relevance | path

Searched refs:chunk (Results 1 – 25 of 46) sorted by relevance

12

/linux-4.19.296/drivers/s390/cio/
Ditcw.c182 void *chunk; in itcw_init() local
194 chunk = fit_chunk(&start, end, sizeof(struct itcw), 1, 0); in itcw_init()
195 if (IS_ERR(chunk)) in itcw_init()
196 return chunk; in itcw_init()
197 itcw = chunk; in itcw_init()
210 chunk = fit_chunk(&start, end, sizeof(struct tcw), 64, 0); in itcw_init()
211 if (IS_ERR(chunk)) in itcw_init()
212 return chunk; in itcw_init()
213 itcw->tcw = chunk; in itcw_init()
218 chunk = fit_chunk(&start, end, sizeof(struct tcw), 64, 0); in itcw_init()
[all …]
/linux-4.19.296/lib/
Dgenalloc.c40 static inline size_t chunk_size(const struct gen_pool_chunk *chunk) in chunk_size() argument
42 return chunk->end_addr - chunk->start_addr + 1; in chunk_size()
187 struct gen_pool_chunk *chunk; in gen_pool_add_virt() local
192 chunk = vzalloc_node(nbytes, nid); in gen_pool_add_virt()
193 if (unlikely(chunk == NULL)) in gen_pool_add_virt()
196 chunk->phys_addr = phys; in gen_pool_add_virt()
197 chunk->start_addr = virt; in gen_pool_add_virt()
198 chunk->end_addr = virt + size - 1; in gen_pool_add_virt()
199 atomic_long_set(&chunk->avail, size); in gen_pool_add_virt()
202 list_add_rcu(&chunk->next_chunk, &pool->chunks); in gen_pool_add_virt()
[all …]
Dbitmap.c366 u32 chunk; in __bitmap_parse() local
373 chunk = 0; in __bitmap_parse()
409 if (chunk & ~((1UL << (CHUNKSZ - 4)) - 1)) in __bitmap_parse()
412 chunk = (chunk << 4) | hex_to_bin(c); in __bitmap_parse()
417 if (nchunks == 0 && chunk == 0) in __bitmap_parse()
421 *maskp |= chunk; in __bitmap_parse()
423 nbits += (nchunks == 1) ? nbits_to_hold_value(chunk) : CHUNKSZ; in __bitmap_parse()
/linux-4.19.296/include/net/sctp/
Dsm.h173 __u8 sctp_get_chunk_type(struct sctp_chunk *chunk);
191 const struct sctp_chunk *chunk,
194 const struct sctp_chunk *chunk);
196 const struct sctp_chunk *chunk);
199 const struct sctp_chunk *chunk);
212 const struct sctp_chunk *chunk);
214 const struct sctp_chunk *chunk);
217 const struct sctp_chunk *chunk);
218 int sctp_init_cause(struct sctp_chunk *chunk, __be16 cause, size_t paylen);
220 const struct sctp_chunk *chunk,
[all …]
Dstream_interleave.h41 void (*assign_number)(struct sctp_chunk *chunk);
42 bool (*validate_data)(struct sctp_chunk *chunk);
44 struct sctp_chunk *chunk, gfp_t gfp);
48 struct sctp_chunk *chunk, gfp_t gfp);
53 bool (*validate_ftsn)(struct sctp_chunk *chunk);
56 struct sctp_chunk *chunk);
Dsctp.h433 static inline bool sctp_chunk_pending(const struct sctp_chunk *chunk) in sctp_chunk_pending() argument
435 return !list_empty(&chunk->list); in sctp_chunk_pending()
443 #define sctp_walk_params(pos, chunk, member)\ argument
444 _sctp_walk_params((pos), (chunk), ntohs((chunk)->chunk_hdr.length), member)
446 #define _sctp_walk_params(pos, chunk, end, member)\ argument
447 for (pos.v = chunk->member;\
449 (void *)chunk + end) &&\
450 pos.v <= (void *)chunk + end - ntohs(pos.p->length) &&\
466 #define sctp_walk_fwdtsn(pos, chunk)\ argument
467 _sctp_walk_fwdtsn((pos), (chunk), ntohs((chunk)->chunk_hdr->length) - sizeof(struct sctp_fwdtsn_chu…
[all …]
Dulpevent.h55 struct sctp_chunk *chunk; member
95 struct sctp_chunk *chunk,
108 struct sctp_chunk *chunk,
113 struct sctp_chunk *chunk,
132 struct sctp_chunk *chunk,
Dstructs.h676 #define sctp_chunk_retransmitted(chunk) (chunk->sent_count > 1) argument
679 int sctp_user_addto_chunk(struct sctp_chunk *chunk, int len,
688 const union sctp_addr *sctp_source(const struct sctp_chunk *chunk);
751 struct sctp_chunk *chunk,
754 struct sctp_chunk *chunk);
1111 void sctp_outq_tail(struct sctp_outq *, struct sctp_chunk *chunk, gfp_t);
1139 struct sctp_chunk *chunk; member
1151 const struct sctp_chunk *chunk = SCTP_INPUT_CB(skb)->chunk; in sctp_gso_headskb() local
1153 return chunk->head_skb ? : skb; in sctp_gso_headskb()
1383 struct sctp_chunk *chunk, struct sctp_chunk **err_chunk);
[all …]
Dauth.h103 int sctp_auth_send_cid(enum sctp_cid chunk,
105 int sctp_auth_recv_cid(enum sctp_cid chunk,
Dconstants.h131 enum sctp_cid chunk; member
142 SCTP_SUBTYPE_CONSTRUCTOR(CHUNK, enum sctp_cid, chunk)
Dcommand.h131 struct sctp_chunk *chunk; member
172 SCTP_ARG_CONSTRUCTOR(CHUNK, struct sctp_chunk *, chunk) in SCTP_ARG_CONSTRUCTOR()
/linux-4.19.296/fs/ocfs2/
Dquota_local.c296 int chunk, in ocfs2_add_recovery_chunk() argument
304 rc->rc_chunk = chunk; in ocfs2_add_recovery_chunk()
470 int bit, chunk; in ocfs2_recover_local_quota_file() local
477 chunk = rchunk->rc_chunk; in ocfs2_recover_local_quota_file()
480 ol_quota_chunk_block(sb, chunk), in ocfs2_recover_local_quota_file()
490 ol_dqblk_block(sb, chunk, bit), in ocfs2_recover_local_quota_file()
497 ol_dqblk_block_off(sb, chunk, bit)); in ocfs2_recover_local_quota_file()
811 struct ocfs2_quota_chunk *chunk; in ocfs2_local_free_info() local
819 list_for_each_entry(chunk, &oinfo->dqi_chunk, qc_chunk) { in ocfs2_local_free_info()
821 (chunk->qc_headerbh->b_data); in ocfs2_local_free_info()
[all …]
/linux-4.19.296/drivers/nvmem/
Drave-sp-eeprom.c226 unsigned int chunk; in rave_sp_eeprom_access() local
243 chunk = RAVE_SP_EEPROM_PAGE_SIZE - head; in rave_sp_eeprom_access()
252 chunk = RAVE_SP_EEPROM_PAGE_SIZE; in rave_sp_eeprom_access()
258 chunk = min(chunk, residue); in rave_sp_eeprom_access()
260 data, chunk); in rave_sp_eeprom_access()
264 residue -= chunk; in rave_sp_eeprom_access()
265 offset += chunk; in rave_sp_eeprom_access()
266 data += chunk; in rave_sp_eeprom_access()
/linux-4.19.296/fs/btrfs/
Dtree-checker.c455 const struct btrfs_chunk *chunk, u64 logical, in chunk_err() argument
474 (unsigned long)chunk) { in chunk_err()
504 struct btrfs_chunk *chunk, u64 logical) in btrfs_check_chunk_valid() argument
514 length = btrfs_chunk_length(leaf, chunk); in btrfs_check_chunk_valid()
515 stripe_len = btrfs_chunk_stripe_len(leaf, chunk); in btrfs_check_chunk_valid()
516 num_stripes = btrfs_chunk_num_stripes(leaf, chunk); in btrfs_check_chunk_valid()
517 sub_stripes = btrfs_chunk_sub_stripes(leaf, chunk); in btrfs_check_chunk_valid()
518 type = btrfs_chunk_type(leaf, chunk); in btrfs_check_chunk_valid()
521 chunk_err(fs_info, leaf, chunk, logical, in btrfs_check_chunk_valid()
526 chunk_err(fs_info, leaf, chunk, logical, in btrfs_check_chunk_valid()
[all …]
Dprint-tree.c10 static void print_chunk(struct extent_buffer *eb, struct btrfs_chunk *chunk) in print_chunk() argument
12 int num_stripes = btrfs_chunk_num_stripes(eb, chunk); in print_chunk()
15 btrfs_chunk_length(eb, chunk), btrfs_chunk_owner(eb, chunk), in print_chunk()
16 btrfs_chunk_type(eb, chunk), num_stripes); in print_chunk()
19 btrfs_stripe_devid_nr(eb, chunk, i), in print_chunk()
20 btrfs_stripe_offset_nr(eb, chunk, i)); in print_chunk()
Dvolumes.c2703 struct btrfs_chunk *chunk; in btrfs_del_sys_chunk() local
2725 chunk = (struct btrfs_chunk *)(ptr + len); in btrfs_del_sys_chunk()
2726 num_stripes = btrfs_stack_chunk_num_stripes(chunk); in btrfs_del_sys_chunk()
2927 struct btrfs_chunk *chunk; in btrfs_relocate_sys_chunks() local
2965 chunk = btrfs_item_ptr(leaf, path->slots[0], in btrfs_relocate_sys_chunks()
2967 chunk_type = btrfs_chunk_type(leaf, chunk); in btrfs_relocate_sys_chunks()
3271 struct btrfs_chunk *chunk, in chunk_devid_filter() argument
3275 int num_stripes = btrfs_chunk_num_stripes(leaf, chunk); in chunk_devid_filter()
3279 stripe = btrfs_stripe_nr(chunk, i); in chunk_devid_filter()
3289 struct btrfs_chunk *chunk, in chunk_drange_filter() argument
[all …]
Dtree-checker.h30 struct btrfs_chunk *chunk, u64 logical);
/linux-4.19.296/drivers/s390/block/
Ddasd_int.h614 struct dasd_mchunk *chunk; in dasd_init_chunklist() local
617 chunk = (struct dasd_mchunk *) mem; in dasd_init_chunklist()
618 chunk->size = size - sizeof(struct dasd_mchunk); in dasd_init_chunklist()
619 list_add(&chunk->list, chunk_list); in dasd_init_chunklist()
625 struct dasd_mchunk *chunk, *tmp; in dasd_alloc_chunk() local
628 list_for_each_entry(chunk, chunk_list, list) { in dasd_alloc_chunk()
629 if (chunk->size < size) in dasd_alloc_chunk()
631 if (chunk->size > size + sizeof(struct dasd_mchunk)) { in dasd_alloc_chunk()
632 char *endaddr = (char *) (chunk + 1) + chunk->size; in dasd_alloc_chunk()
635 chunk->size -= size + sizeof(struct dasd_mchunk); in dasd_alloc_chunk()
[all …]
/linux-4.19.296/drivers/char/hw_random/
Dvirtio-rng.c94 unsigned int chunk; in virtio_read() local
104 chunk = copy_data(vi, buf, size); in virtio_read()
105 size -= chunk; in virtio_read()
106 read += chunk; in virtio_read()
126 chunk = copy_data(vi, buf + read, size); in virtio_read()
127 size -= chunk; in virtio_read()
128 read += chunk; in virtio_read()
/linux-4.19.296/fs/reiserfs/
Dxattr.c539 size_t chunk; in reiserfs_xattr_set_handle() local
544 chunk = PAGE_SIZE; in reiserfs_xattr_set_handle()
546 chunk = buffer_size - buffer_pos; in reiserfs_xattr_set_handle()
561 if (chunk + skip > PAGE_SIZE) in reiserfs_xattr_set_handle()
562 chunk = PAGE_SIZE - skip; in reiserfs_xattr_set_handle()
569 err = __reiserfs_write_begin(page, page_offset, chunk + skip); in reiserfs_xattr_set_handle()
572 memcpy(data + skip, buffer + buffer_pos, chunk); in reiserfs_xattr_set_handle()
574 page_offset + chunk + in reiserfs_xattr_set_handle()
580 buffer_pos += chunk; in reiserfs_xattr_set_handle()
581 file_pos += chunk; in reiserfs_xattr_set_handle()
[all …]
Djournal.c676 static void write_chunk(struct buffer_chunk *chunk) in write_chunk() argument
679 for (i = 0; i < chunk->nr; i++) { in write_chunk()
680 submit_logged_buffer(chunk->bh[i]); in write_chunk()
682 chunk->nr = 0; in write_chunk()
685 static void write_ordered_chunk(struct buffer_chunk *chunk) in write_ordered_chunk() argument
688 for (i = 0; i < chunk->nr; i++) { in write_ordered_chunk()
689 submit_ordered_buffer(chunk->bh[i]); in write_ordered_chunk()
691 chunk->nr = 0; in write_ordered_chunk()
694 static int add_to_chunk(struct buffer_chunk *chunk, struct buffer_head *bh, in add_to_chunk() argument
698 BUG_ON(chunk->nr >= CHUNK_SIZE); in add_to_chunk()
[all …]
/linux-4.19.296/include/trace/events/
Dsctp.h54 struct sctp_chunk *chunk),
56 TP_ARGS(ep, asoc, chunk),
69 struct sk_buff *skb = chunk->skb;
/linux-4.19.296/drivers/lightnvm/
Dpblk-init.c717 struct nvm_chk_meta *chunk; in pblk_setup_line_meta_12() local
721 chunk = &line->chks[pos]; in pblk_setup_line_meta_12()
729 chunk->state = NVM_CHK_ST_CLOSED; in pblk_setup_line_meta_12()
731 chunk->state = NVM_CHK_ST_OFFLINE; in pblk_setup_line_meta_12()
733 chunk->type = NVM_CHK_TP_W_SEQ; in pblk_setup_line_meta_12()
734 chunk->wi = 0; in pblk_setup_line_meta_12()
735 chunk->slba = -1; in pblk_setup_line_meta_12()
736 chunk->cnlb = geo->clba; in pblk_setup_line_meta_12()
737 chunk->wp = 0; in pblk_setup_line_meta_12()
739 if (!(chunk->state & NVM_CHK_ST_OFFLINE)) in pblk_setup_line_meta_12()
[all …]
/linux-4.19.296/fs/gfs2/
Dbmap.c1370 u64 chunk; in gfs2_journaled_truncate() local
1377 chunk = oldsize - newsize; in gfs2_journaled_truncate()
1378 if (chunk > max_chunk) in gfs2_journaled_truncate()
1379 chunk = max_chunk; in gfs2_journaled_truncate()
1382 if (offs && chunk > PAGE_SIZE) in gfs2_journaled_truncate()
1383 chunk = offs + ((chunk - offs) & PAGE_MASK); in gfs2_journaled_truncate()
1385 truncate_pagecache(inode, oldsize - chunk); in gfs2_journaled_truncate()
1386 oldsize -= chunk; in gfs2_journaled_truncate()
2405 loff_t chunk; in gfs2_journaled_truncate_range() local
2408 chunk = length; in gfs2_journaled_truncate_range()
[all …]
/linux-4.19.296/crypto/
Daegis128l.c89 union aegis_chunk chunk; in crypto_aegis128l_init() local
92 memcpy(chunk.blocks[0].bytes, iv, AEGIS_BLOCK_SIZE); in crypto_aegis128l_init()
93 chunk.blocks[1] = *key; in crypto_aegis128l_init()
96 crypto_aegis_block_xor(&key_iv, &chunk.blocks[0]); in crypto_aegis128l_init()
112 crypto_aegis128l_update_a(state, &chunk); in crypto_aegis128l_init()

12