Home
last modified time | relevance | path

Searched refs:length (Results 1 – 11 of 11) sorted by relevance

/kernel/cgroup/
Dcgroup-v1.c184 int length; member
238 static int pidlist_uniq(pid_t *list, int length) in pidlist_uniq() argument
246 if (length == 0 || length == 1) in pidlist_uniq()
247 return length; in pidlist_uniq()
249 for (src = 1; src < length; src++) { in pidlist_uniq()
253 if (src == length) in pidlist_uniq()
331 int length; in pidlist_array_load() local
345 length = cgroup_task_count(cgrp); in pidlist_array_load()
346 array = kvmalloc_array(length, sizeof(pid_t), GFP_KERNEL); in pidlist_array_load()
352 if (unlikely(n == length)) in pidlist_array_load()
[all …]
/kernel/trace/
Dring_buffer.c165 unsigned length; in rb_event_data_length() local
168 length = event->type_len * RB_ALIGNMENT; in rb_event_data_length()
170 length = event->array[0]; in rb_event_data_length()
171 return length + RB_EVNT_HDR_SIZE; in rb_event_data_length()
233 unsigned length; in ring_buffer_event_length() local
238 length = rb_event_length(event); in ring_buffer_event_length()
240 return length; in ring_buffer_event_length()
241 length -= RB_EVNT_HDR_SIZE; in ring_buffer_event_length()
242 if (length > RB_MAX_SMALL_DATA + sizeof(event->array[0])) in ring_buffer_event_length()
243 length -= sizeof(event->array[0]); in ring_buffer_event_length()
[all …]
Dtrace.c148 unsigned long length; member
6121 return ptr + ptr->head.length + 1; in trace_eval_jmp_to_tail()
6162 map_array->head.length = len; in trace_insert_eval_map_file()
/kernel/debug/
Dgdbstub.c369 unsigned long length; in write_mem_msg() local
373 kgdb_hex2long(&ptr, &length) > 0 && *(ptr++) == ':') { in write_mem_msg()
375 err = kgdb_ebin2mem(ptr, (char *)addr, length); in write_mem_msg()
377 err = kgdb_hex2mem(ptr, (char *)addr, length); in write_mem_msg()
381 flush_icache_range(addr, addr + length); in write_mem_msg()
558 unsigned long length; in gdb_cmd_memread() local
563 kgdb_hex2long(&ptr, &length) > 0) { in gdb_cmd_memread()
564 err = kgdb_mem2hex((char *)addr, remcom_out_buffer, length); in gdb_cmd_memread()
869 unsigned long length; in gdb_cmd_break() local
899 !kgdb_hex2long(&ptr, &length)) { in gdb_cmd_break()
[all …]
/kernel/dma/
Ddirect.c424 swiotlb_sync_single_for_device(dev, paddr, sg->length, in dma_direct_sync_sg_for_device()
428 arch_sync_dma_for_device(paddr, sg->length, in dma_direct_sync_sg_for_device()
447 arch_sync_dma_for_cpu(paddr, sg->length, dir); in dma_direct_sync_sg_for_cpu()
450 swiotlb_sync_single_for_cpu(dev, paddr, sg->length, in dma_direct_sync_sg_for_cpu()
454 arch_dma_mark_clean(paddr, sg->length); in dma_direct_sync_sg_for_cpu()
510 sg->offset, sg->length, dir, attrs); in dma_direct_map_sg()
515 sg_dma_len(sg) = sg->length; in dma_direct_map_sg()
Ddebug.c1170 if (sg->length > max_seg) in check_sg_segment()
1172 sg->length, max_seg); in check_sg_segment()
1306 check_for_illegal_area(dev, sg_virt(s), s->length); in debug_dma_map_sg()
DKconfig226 appropriate segment length/boundary limits for the given device when
Dmapping.c626 sg_dma_len(sgt->sgl) = sgt->sgl->length; in alloc_single_sgt()
/kernel/
Drelay.c85 unsigned long length = vma->vm_end - vma->vm_start; in relay_mmap_buf() local
90 if (length != (unsigned long)buf->chan->alloc_size) in relay_mmap_buf()
659 size_t relay_switch_subbuf(struct rchan_buf *buf, size_t length) in relay_switch_subbuf() argument
664 if (unlikely(length > buf->chan->subbuf_size)) in relay_switch_subbuf()
702 if (unlikely(length + buf->offset > buf->chan->subbuf_size)) in relay_switch_subbuf()
705 return length; in relay_switch_subbuf()
708 buf->chan->last_toobig = length; in relay_switch_subbuf()
Dkprobes.c944 size_t *length, loff_t *ppos) in proc_kprobes_optimization_handler() argument
950 ret = proc_dointvec_minmax(table, write, buffer, length, ppos); in proc_kprobes_optimization_handler()
/kernel/locking/
Dlockdep_proc.c420 static void seq_line(struct seq_file *m, char c, int offset, int length) in seq_line() argument
426 for (i = 0; i < length; i++) in seq_line()