/linux-master/net/sctp/ |
H A D | inqueue.c | 41 /* Properly release the chunk which is being worked on. */ 42 static inline void sctp_inq_chunk_free(struct sctp_chunk *chunk) argument 44 if (chunk->head_skb) 45 chunk->skb = chunk->head_skb; 46 sctp_chunk_free(chunk); 52 struct sctp_chunk *chunk, *tmp; local 55 list_for_each_entry_safe(chunk, tmp, &queue->in_chunk_list, list) { 56 list_del_init(&chunk->list); 57 sctp_chunk_free(chunk); 72 sctp_inq_push(struct sctp_inq *q, struct sctp_chunk *chunk) argument 94 struct sctp_chunk *chunk; local 117 struct sctp_chunk *chunk; local [all...] |
H A D | chunk.c | 7 * This file contains the code relating the chunk abstraction. 60 struct sctp_chunk *chunk; local 65 list_for_each_entry(chunk, &msg->chunks, frag_list) 66 sctp_chunk_free(chunk); 76 struct sctp_chunk *chunk; local 83 chunk = list_entry(pos, struct sctp_chunk, frag_list); 86 sctp_chunk_put(chunk); 90 asoc = chunk->asoc; 92 sent = chunk->has_tsn ? SCTP_DATA_SENT : SCTP_DATA_UNSENT; 96 ev = sctp_ulpevent_make_send_failed(asoc, chunk, sen 132 sctp_datamsg_assign(struct sctp_datamsg *msg, struct sctp_chunk *chunk) argument 154 struct sctp_chunk *chunk; local 300 sctp_chunk_abandoned(struct sctp_chunk *chunk) argument 349 sctp_chunk_fail(struct sctp_chunk *chunk, int error) argument [all...] |
H A D | outqueue.c | 79 /* Add data chunk to the end of the queue. */ 210 struct sctp_chunk *chunk, *tmp; local 216 chunk = list_entry(lchunk, struct sctp_chunk, 219 sctp_chunk_fail(chunk, q->error); 220 sctp_chunk_free(chunk); 227 chunk = list_entry(lchunk, struct sctp_chunk, 229 sctp_chunk_fail(chunk, q->error); 230 sctp_chunk_free(chunk); 236 chunk = list_entry(lchunk, struct sctp_chunk, 238 sctp_chunk_fail(chunk, 281 sctp_outq_tail(struct sctp_outq *q, struct sctp_chunk *chunk, gfp_t gfp) argument 455 struct sctp_chunk *chunk; local 602 struct sctp_chunk *chunk, *chunk1; local 767 sctp_packet_singleton(struct sctp_transport *transport, struct sctp_chunk *chunk, gfp_t gfp) argument 800 sctp_outq_select_transport(struct sctp_flush_ctx *ctx, struct sctp_chunk *chunk) argument 881 struct sctp_chunk *chunk, *tmp; local 1040 struct sctp_chunk *chunk; local 1248 sctp_outq_sack(struct sctp_outq *q, struct sctp_chunk *chunk) argument 1715 struct sctp_chunk *chunk; local 1830 struct sctp_chunk *chunk; local [all...] |
H A D | output.c | 46 struct sctp_chunk *chunk); 48 struct sctp_chunk *chunk); 50 struct sctp_chunk *chunk); 52 struct sctp_chunk *chunk, 118 /* If there a is a prepend chunk stick it on the list before 122 struct sctp_chunk *chunk = sctp_get_ecne_prepend(asoc); local 124 if (chunk) 125 sctp_packet_append_chunk(packet, chunk); 163 struct sctp_chunk *chunk, *tmp; local 167 list_for_each_entry_safe(chunk, tm 180 sctp_packet_transmit_chunk(struct sctp_packet *packet, struct sctp_chunk *chunk, int one_packet, gfp_t gfp) argument 217 sctp_packet_bundle_pad(struct sctp_packet *pkt, struct sctp_chunk *chunk) argument 241 sctp_packet_bundle_auth(struct sctp_packet *pkt, struct sctp_chunk *chunk) argument 280 sctp_packet_bundle_sack(struct sctp_packet *pkt, struct sctp_chunk *chunk) argument 328 __sctp_packet_append_chunk(struct sctp_packet *packet, struct sctp_chunk *chunk) argument 383 sctp_packet_append_chunk(struct sctp_packet *packet, struct sctp_chunk *chunk) argument 441 struct sctp_chunk *chunk, *tmp; local 573 struct sctp_chunk *chunk, *tmp; local 672 sctp_packet_can_append_data(struct sctp_packet *packet, struct sctp_chunk *chunk) argument 756 sctp_packet_append_data(struct sctp_packet *packet, struct sctp_chunk *chunk) argument 781 sctp_packet_will_fit(struct sctp_packet *packet, struct sctp_chunk *chunk, u16 chunk_len) argument [all...] |
H A D | sm_statefuns.c | 54 struct sctp_chunk *chunk, 57 struct sctp_chunk *chunk, 62 const struct sctp_chunk *chunk); 66 const struct sctp_chunk *chunk, 97 static struct sctp_sackhdr *sctp_sm_pull_sack(struct sctp_chunk *chunk); 149 struct sctp_chunk *chunk); 165 /* Small helper function that checks if the chunk length 167 * is set to be the size of a specific chunk we are testing. 172 static inline bool sctp_chunk_length_valid(struct sctp_chunk *chunk, argument 175 __u16 chunk_length = ntohs(chunk 187 sctp_err_chunk_valid(struct sctp_chunk *chunk) argument 237 struct sctp_chunk *chunk = arg; local 323 struct sctp_chunk *chunk = arg, *repl, *err_chunk; local 524 struct sctp_chunk *chunk = arg; local 635 sctp_auth_chunk_verify(struct net *net, struct sctp_chunk *chunk, const struct sctp_association *asoc) argument 708 struct sctp_chunk *chunk = arg; local 926 struct sctp_chunk *chunk = arg; local 1170 struct sctp_chunk *chunk = arg; local 1245 struct sctp_chunk *chunk = arg; local 1518 struct sctp_chunk *chunk = arg, *repl, *err_chunk; local 1854 sctp_sf_do_dupcook_a( struct net *net, const struct sctp_endpoint *ep, const struct sctp_association *asoc, struct sctp_chunk *chunk, struct sctp_cmd_seq *commands, struct sctp_association *new_asoc) argument 1977 sctp_sf_do_dupcook_b( struct net *net, const struct sctp_endpoint *ep, const struct sctp_association *asoc, struct sctp_chunk *chunk, struct sctp_cmd_seq *commands, struct sctp_association *new_asoc) argument 2061 sctp_sf_do_dupcook_c( struct net *net, const struct sctp_endpoint *ep, const struct sctp_association *asoc, struct sctp_chunk *chunk, struct sctp_cmd_seq *commands, struct sctp_association *new_asoc) argument 2084 sctp_sf_do_dupcook_d( struct net *net, const struct sctp_endpoint *ep, const struct sctp_association *asoc, struct sctp_chunk *chunk, struct sctp_cmd_seq *commands, struct sctp_association *new_asoc) argument 2205 struct sctp_chunk *chunk = arg; local 2331 struct sctp_chunk *chunk = arg; local 2377 struct sctp_chunk *chunk = arg; local 2459 struct sctp_chunk *chunk = arg; local 2525 struct sctp_chunk *chunk = arg, *reply; local 2647 struct sctp_chunk *chunk = arg; local 2689 struct sctp_chunk *chunk = arg; local 2720 struct sctp_chunk *chunk = arg; local 2850 struct sctp_chunk *chunk = arg; local 2939 struct sctp_chunk *chunk = arg; local 2991 struct sctp_chunk *chunk = arg; local 3029 struct sctp_chunk *chunk = arg; local 3075 struct sctp_chunk *chunk = arg; local 3130 struct sctp_chunk *chunk = arg; local 3188 struct sctp_chunk *chunk = arg; local 3308 struct sctp_chunk *chunk = arg; local 3399 struct sctp_chunk *chunk = arg; local 3477 struct sctp_chunk *chunk = arg; local 3524 struct sctp_chunk *chunk = arg; local 3565 struct sctp_chunk *chunk = arg; local 3603 struct sctp_chunk *chunk = arg; local 3685 struct sctp_chunk *chunk = arg; local 3783 struct sctp_chunk *chunk = arg; local 3838 struct sctp_chunk *chunk = arg; local 3868 struct sctp_chunk *chunk = arg; local 4123 struct sctp_chunk *chunk = arg; local 4200 struct sctp_chunk *chunk = arg; local 4267 struct sctp_chunk *chunk = arg; local 4346 sctp_sf_authenticate( const struct sctp_association *asoc, struct sctp_chunk *chunk) argument 4427 struct sctp_chunk *chunk = arg; local 4604 struct sctp_chunk *chunk = arg; local 4674 struct sctp_chunk *chunk = arg; local 4700 struct sctp_chunk *chunk = arg; local 4837 struct sctp_chunk *chunk = arg; local 5522 struct sctp_chunk *chunk = arg; local 5539 struct sctp_chunk *chunk = arg; local 5684 struct sctp_chunk *chunk = arg; local 6092 struct sctp_chunk *chunk = asoc->addip_last_asconf; local 6291 sctp_sm_pull_sack(struct sctp_chunk *chunk) argument 6318 sctp_abort_pkt_new( struct net *net, const struct sctp_endpoint *ep, const struct sctp_association *asoc, struct sctp_chunk *chunk, const void *payload, size_t paylen) argument 6360 sctp_ootb_pkt_new( struct net *net, const struct sctp_association *asoc, const struct sctp_chunk *chunk) argument 6444 sctp_send_stale_cookie_err(struct net *net, const struct sctp_endpoint *ep, const struct sctp_association *asoc, const struct sctp_chunk *chunk, struct sctp_cmd_seq *commands, struct sctp_chunk *err_chunk) argument 6475 sctp_eat_data(const struct sctp_association *asoc, struct sctp_chunk *chunk, struct sctp_cmd_seq *commands) argument [all...] |
/linux-master/arch/mips/dec/prom/ |
H A D | console.c | 18 unsigned int chunk = sizeof(buf) - 1; local 21 if (chunk > c) 22 chunk = c; 23 memcpy(buf, s, chunk); 24 buf[chunk] = '\0'; 26 s += chunk; 27 c -= chunk;
|
/linux-master/mm/ |
H A D | percpu-km.c | 3 * mm/percpu-km.c - kernel memory based chunk allocation 19 * - NUMA is not supported. When setting up the first chunk, 23 * - It's best if the chunk size is power of two multiple of 24 * PAGE_SIZE. Because each chunk is allocated as a contiguous 26 * chunk size is not aligned. percpu-km code will whine about it. 30 #error "contiguous percpu allocation is incompatible with paged first chunk" 35 static void pcpu_post_unmap_tlb_flush(struct pcpu_chunk *chunk, argument 41 static int pcpu_populate_chunk(struct pcpu_chunk *chunk, argument 47 static void pcpu_depopulate_chunk(struct pcpu_chunk *chunk, argument 56 struct pcpu_chunk *chunk; local 72 pcpu_set_page_chunk(nth_page(pages, i), chunk); local 87 pcpu_destroy_chunk(struct pcpu_chunk *chunk) argument 127 pcpu_should_reclaim_chunk(struct pcpu_chunk *chunk) argument [all...] |
H A D | percpu-vm.c | 3 * mm/percpu-vm.c - vmalloc area based chunk allocation 9 * This is the default chunk allocator. 13 static struct page *pcpu_chunk_page(struct pcpu_chunk *chunk, argument 16 /* must not be used on pre-mapped chunk */ 17 WARN_ON(chunk->immutable); 19 return vmalloc_to_page((void *)pcpu_chunk_addr(chunk, cpu, page_idx)); 45 * pcpu_free_pages - free pages which were allocated for @chunk 46 * @chunk: chunk pages were allocated for 52 * The pages were allocated for @chunk 54 pcpu_free_pages(struct pcpu_chunk *chunk, struct page **pages, int page_start, int page_end) argument 82 pcpu_alloc_pages(struct pcpu_chunk *chunk, struct page **pages, int page_start, int page_end, gfp_t gfp) argument 127 pcpu_pre_unmap_flush(struct pcpu_chunk *chunk, int page_start, int page_end) argument 153 pcpu_unmap_pages(struct pcpu_chunk *chunk, struct page **pages, int page_start, int page_end) argument 185 pcpu_post_unmap_tlb_flush(struct pcpu_chunk *chunk, int page_start, int page_end) argument 214 pcpu_map_pages(struct pcpu_chunk *chunk, struct page **pages, int page_start, int page_end) argument 255 pcpu_post_map_flush(struct pcpu_chunk *chunk, int page_start, int page_end) argument 276 pcpu_populate_chunk(struct pcpu_chunk *chunk, int page_start, int page_end, gfp_t gfp) argument 312 pcpu_depopulate_chunk(struct pcpu_chunk *chunk, int page_start, int page_end) argument 335 struct pcpu_chunk *chunk; local 358 pcpu_destroy_chunk(struct pcpu_chunk *chunk) argument 394 pcpu_should_reclaim_chunk(struct pcpu_chunk *chunk) argument [all...] |
H A D | percpu-stats.c | 35 struct pcpu_chunk *chunk; local 40 list_for_each_entry(chunk, &pcpu_chunk_lists[slot], list) 41 max_nr_alloc = max(max_nr_alloc, chunk->nr_alloc); 47 * Prints out chunk state. Fragmentation is considered between 48 * the beginning of the chunk to the last allocation. 52 static void chunk_map_stats(struct seq_file *m, struct pcpu_chunk *chunk, argument 55 struct pcpu_block_md *chunk_md = &chunk->chunk_md; 69 last_alloc = find_last_bit(chunk->alloc_map, 70 pcpu_chunk_map_bits(chunk) - 71 chunk 137 struct pcpu_chunk *chunk; local [all...] |
H A D | percpu.c | 28 * There is special consideration for the first chunk which must handle 30 * are not online yet. In short, the first chunk is structured like so: 45 * The allocator tries to allocate from the fullest chunk first. Each chunk 50 * of the bitmap. The reverse mapping from page to chunk is stored in 54 * Each bit represents a fragment of size PCPU_MIN_ALLOC_SIZE. The chunk 66 * setup the first chunk containing the kernel static percpu area 146 /* the address of the first chunk which starts with the kernel static area */ 158 * The first chunk which always exists. Note that unlike other 165 * Optional reserved chunk 215 pcpu_addr_in_chunk(struct pcpu_chunk *chunk, void *addr) argument 242 pcpu_chunk_slot(const struct pcpu_chunk *chunk) argument 275 pcpu_chunk_addr(struct pcpu_chunk *chunk, unsigned int cpu, int page_idx) argument 286 pcpu_index_alloc_map(struct pcpu_chunk *chunk, int index) argument 365 pcpu_next_md_free_region(struct pcpu_chunk *chunk, int *bit_off, int *bits) argument 420 pcpu_next_fit_region(struct pcpu_chunk *chunk, int alloc_bits, int align, int *bit_off, int *bits) argument 526 __pcpu_chunk_move(struct pcpu_chunk *chunk, int slot, bool move_front) argument 537 pcpu_chunk_move(struct pcpu_chunk *chunk, int slot) argument 555 pcpu_chunk_relocate(struct pcpu_chunk *chunk, int oslot) argument 567 pcpu_isolate_chunk(struct pcpu_chunk *chunk) argument 578 pcpu_reintegrate_chunk(struct pcpu_chunk *chunk) argument 598 pcpu_update_empty_pages(struct pcpu_chunk *chunk, int nr) argument 712 pcpu_block_update_scan(struct pcpu_chunk *chunk, int bit_off, int bits) argument 745 pcpu_chunk_refresh_hint(struct pcpu_chunk *chunk, bool full_scan) argument 774 pcpu_block_refresh_hint(struct pcpu_chunk *chunk, int index) argument 808 pcpu_block_update_hint_alloc(struct pcpu_chunk *chunk, int bit_off, int bits) argument 963 pcpu_block_update_hint_free(struct pcpu_chunk *chunk, int bit_off, int bits) argument 1073 pcpu_is_populated(struct pcpu_chunk *chunk, int bit_off, int bits, int *next_off) argument 1110 pcpu_find_block_fit(struct pcpu_chunk *chunk, int alloc_bits, size_t align, bool pop_only) argument 1216 pcpu_alloc_area(struct pcpu_chunk *chunk, int alloc_bits, size_t align, int start) argument 1276 pcpu_free_area(struct pcpu_chunk *chunk, int off) argument 1319 pcpu_init_md_blocks(struct pcpu_chunk *chunk) argument 1348 struct pcpu_chunk *chunk; local 1440 struct pcpu_chunk *chunk; local 1497 pcpu_free_chunk(struct pcpu_chunk *chunk) argument 1520 pcpu_chunk_populated(struct pcpu_chunk *chunk, int page_start, int page_end) argument 1544 pcpu_chunk_depopulated(struct pcpu_chunk *chunk, int page_start, int page_end) argument 1642 pcpu_memcg_post_alloc_hook(struct obj_cgroup *objcg, struct pcpu_chunk *chunk, int off, size_t size) argument 1662 pcpu_memcg_free_hook(struct pcpu_chunk *chunk, int off, size_t size) argument 1691 pcpu_memcg_post_alloc_hook(struct obj_cgroup *objcg, struct pcpu_chunk *chunk, int off, size_t size) argument 1697 pcpu_memcg_free_hook(struct pcpu_chunk *chunk, int off, size_t size) argument 1725 struct pcpu_chunk *chunk, *next; local 1983 struct pcpu_chunk *chunk, *next; local 2037 struct pcpu_chunk *chunk; local 2128 struct pcpu_chunk *chunk; local 2260 struct pcpu_chunk *chunk; local 2288 struct pcpu_chunk *chunk; local [all...] |
H A D | percpu-internal.h | 11 * Each chunk's bitmap is split into a number of full blocks. 42 int free_bytes; /* free bytes in the chunk */ 47 * base_addr is the base address of this chunk. 57 void *data; /* chunk data */ 59 bool isolated; /* isolated from active chunk 71 int nr_pages; /* # of pages served by this chunk */ 90 * @chunk: chunk of interest 92 * This conversion is from the number of physical pages that the chunk 95 static inline int pcpu_chunk_nr_blocks(struct pcpu_chunk *chunk) argument 119 pcpu_chunk_map_bits(struct pcpu_chunk *chunk) argument 180 pcpu_stats_area_alloc(struct pcpu_chunk *chunk, size_t size) argument 204 pcpu_stats_area_dealloc(struct pcpu_chunk *chunk) argument 248 pcpu_stats_area_alloc(struct pcpu_chunk *chunk, size_t size) argument 252 pcpu_stats_area_dealloc(struct pcpu_chunk *chunk) argument [all...] |
/linux-master/sound/soc/intel/avs/ |
H A D | trace.c | 25 u32 chunk; local 27 chunk = min_t(size_t, remaining, MAX_CHUNK_SIZE); 28 trace_avs_ipc_msg_payload(data, chunk, offset, size); 30 remaining -= chunk; 31 offset += chunk;
|
/linux-master/net/sunrpc/xprtrdma/ |
H A D | svc_rdma_pcl.c | 13 * pcl_free - Release all memory associated with a parsed chunk list 14 * @pcl: parsed chunk list 20 struct svc_rdma_chunk *chunk; local 22 chunk = pcl_first_chunk(pcl); 23 list_del(&chunk->ch_list); 24 kfree(chunk); 30 struct svc_rdma_chunk *chunk; local 32 chunk = kmalloc(struct_size(chunk, ch_segments, segcount), GFP_KERNEL); 33 if (!chunk) 55 pcl_insert_position(struct svc_rdma_pcl *pcl, struct svc_rdma_chunk *chunk) argument 68 pcl_set_read_segment(const struct svc_rdma_recv_ctxt *rctxt, struct svc_rdma_chunk *chunk, u32 handle, u32 length, u64 offset) argument 109 struct svc_rdma_chunk *chunk; local 163 struct svc_rdma_chunk *chunk; local 205 struct svc_rdma_chunk *chunk; local 270 struct svc_rdma_chunk *chunk, *next; local [all...] |
/linux-master/drivers/s390/cio/ |
H A D | itcw.c | 118 * to the placement of the data chunk in memory, and a further 183 void *chunk; local 195 chunk = fit_chunk(&start, end, sizeof(struct itcw), 1, 0); 196 if (IS_ERR(chunk)) 197 return chunk; 198 itcw = chunk; 211 chunk = fit_chunk(&start, end, sizeof(struct tcw), 64, 0); 212 if (IS_ERR(chunk)) 213 return chunk; 214 itcw->tcw = chunk; [all...] |
/linux-master/kernel/trace/ |
H A D | pid_list.c | 14 union lower_chunk *chunk; local 21 chunk = pid_list->lower_list; 22 pid_list->lower_list = chunk->next; 25 chunk->next = NULL; 33 return chunk; 38 union upper_chunk *chunk; local 45 chunk = pid_list->upper_list; 46 pid_list->upper_list = chunk->next; 49 chunk->next = NULL; 57 return chunk; 60 put_lower_chunk(struct trace_pid_list *pid_list, union lower_chunk *chunk) argument 70 put_upper_chunk(struct trace_pid_list *pid_list, union upper_chunk *chunk) argument 80 upper_empty(union upper_chunk *chunk) argument 355 union upper_chunk *chunk; local 366 union lower_chunk *chunk; local 428 union upper_chunk *chunk; local 439 union lower_chunk *chunk; local 469 union lower_chunk *chunk; local 477 union upper_chunk *chunk; local [all...] |
/linux-master/include/net/sctp/ |
H A D | stream_interleave.h | 26 void (*assign_number)(struct sctp_chunk *chunk); 27 bool (*validate_data)(struct sctp_chunk *chunk); 29 struct sctp_chunk *chunk, gfp_t gfp); 33 struct sctp_chunk *chunk, gfp_t gfp); 38 bool (*validate_ftsn)(struct sctp_chunk *chunk); 41 struct sctp_chunk *chunk);
|
/linux-master/arch/um/drivers/ |
H A D | mconsole_kern.h | 27 #define CONFIG_CHUNK(str, size, current, chunk, end) \ 29 current += strlen(chunk); \ 33 strcpy(str, chunk); \ 34 str += strlen(chunk); \
|
/linux-master/drivers/net/ethernet/mellanox/mlx4/ |
H A D | icm.h | 74 struct mlx4_icm_chunk *chunk; member in struct:mlx4_icm_iter 100 iter->chunk = list_empty(&icm->chunk_list) ? 108 return !iter->chunk; 113 if (++iter->page_idx >= iter->chunk->nsg) { 114 if (iter->chunk->list.next == &iter->icm->chunk_list) { 115 iter->chunk = NULL; 119 iter->chunk = list_entry(iter->chunk->list.next, 127 if (iter->chunk->coherent) 128 return iter->chunk [all...] |
H A D | icm.c | 47 * per chunk. Note that the chunks are not necessarily in contiguous 55 static void mlx4_free_icm_pages(struct mlx4_dev *dev, struct mlx4_icm_chunk *chunk) argument 59 if (chunk->nsg > 0) 60 dma_unmap_sg(&dev->persist->pdev->dev, chunk->sg, chunk->npages, 63 for (i = 0; i < chunk->npages; ++i) 64 __free_pages(sg_page(&chunk->sg[i]), 65 get_order(chunk->sg[i].length)); 68 static void mlx4_free_icm_coherent(struct mlx4_dev *dev, struct mlx4_icm_chunk *chunk) argument 72 for (i = 0; i < chunk 81 struct mlx4_icm_chunk *chunk, *tmp; local 136 struct mlx4_icm_chunk *chunk = NULL; local 319 struct mlx4_icm_chunk *chunk; local [all...] |
/linux-master/include/linux/sunrpc/ |
H A D | svc_rdma_pcl.h | 34 * pcl_init - Initialize a parsed chunk list 35 * @pcl: parsed chunk list to initialize 44 * pcl_is_empty - Return true if parsed chunk list is empty 45 * @pcl: parsed chunk list 54 * pcl_first_chunk - Return first chunk in a parsed chunk list 55 * @pcl: parsed chunk list 57 * Returns the first chunk in the list, or NULL if the list is empty. 69 * pcl_next_chunk - Return next chunk in a parsed chunk lis 76 pcl_next_chunk(const struct svc_rdma_pcl *pcl, struct svc_rdma_chunk *chunk) argument 110 pcl_chunk_end_offset(const struct svc_rdma_chunk *chunk) argument [all...] |
/linux-master/drivers/char/hw_random/ |
H A D | arm_smccc_trng.c | 39 unsigned int chunk, copied; local 44 chunk = min(bytes, sizeof(long)); 45 memcpy(buf, &res->a3, chunk); 46 copied = chunk; 50 chunk = min((bytes - copied), sizeof(long)); 51 memcpy(&buf[copied], &res->a2, chunk); 52 copied += chunk; 56 chunk = min((bytes - copied), sizeof(long)); 57 memcpy(&buf[copied], &res->a1, chunk); 59 return copied + chunk; [all...] |
/linux-master/drivers/gpu/drm/panel/ |
H A D | panel-samsung-s6e63m0-dsi.c | 44 int chunk; local 54 chunk = remain; 57 if (chunk > S6E63M0_DSI_MAX_CHUNK) 58 chunk = S6E63M0_DSI_MAX_CHUNK; 59 ret = mipi_dsi_dcs_write(dsi, cmd, seqp, chunk); 64 cmdwritten += chunk; 65 seqp += chunk; 68 chunk = remain - cmdwritten; 69 if (chunk > S6E63M0_DSI_MAX_CHUNK) 70 chunk [all...] |
/linux-master/arch/arm64/crypto/ |
H A D | crct10dif-ce-glue.c | 41 unsigned int chunk = length; local 43 if (chunk > SZ_4K + CRC_T10DIF_PMULL_CHUNK_SIZE) 44 chunk = SZ_4K; 47 *crc = crc_t10dif_pmull_p8(*crc, data, chunk); 49 data += chunk; 50 length -= chunk; 66 unsigned int chunk = length; local 68 if (chunk > SZ_4K + CRC_T10DIF_PMULL_CHUNK_SIZE) 69 chunk = SZ_4K; 72 *crc = crc_t10dif_pmull_p64(*crc, data, chunk); [all...] |
/linux-master/drivers/media/usb/usbtv/ |
H A D | usbtv.h | 65 #define USBTV_MAGIC_OK(chunk) ((be32_to_cpu(chunk[0]) & 0xff000000) \ 67 #define USBTV_FRAME_ID(chunk) ((be32_to_cpu(chunk[0]) & 0x00ff0000) >> 16) 68 #define USBTV_ODD(chunk) ((be32_to_cpu(chunk[0]) & 0x0000f000) >> 15) 69 #define USBTV_CHUNK_NO(chunk) (be32_to_cpu(chunk[0]) & 0x00000fff)
|
/linux-master/lib/ |
H A D | genalloc.c | 40 static inline size_t chunk_size(const struct gen_pool_chunk *chunk) argument 42 return chunk->end_addr - chunk->start_addr + 1; 171 * gen_pool_add_owner- add a new chunk of special memory to the pool 172 * @pool: pool to add new memory chunk to 173 * @virt: virtual starting address of memory chunk to add to pool 174 * @phys: physical starting address of memory chunk to add to pool 175 * @size: size in bytes of the memory chunk to add to pool 176 * @nid: node id of the node the chunk structure and bitmap should be 180 * Add a new chunk o 187 struct gen_pool_chunk *chunk; local 219 struct gen_pool_chunk *chunk; local 245 struct gen_pool_chunk *chunk; local 280 struct gen_pool_chunk *chunk; local 490 struct gen_pool_chunk *chunk; local 531 gen_pool_for_each_chunk(struct gen_pool *pool, void (*func)(struct gen_pool *pool, struct gen_pool_chunk *chunk, void *data), void *data) argument 535 struct gen_pool_chunk *chunk; local 558 struct gen_pool_chunk *chunk; local 582 struct gen_pool_chunk *chunk; local 601 struct gen_pool_chunk *chunk; local [all...] |