Home
last modified time | relevance | path

Searched refs:gap (Results 1 – 25 of 106) sorted by relevance

12345

/linux-6.6.21/net/sctp/
Dtsnmap.c71 u32 gap; in sctp_tsnmap_check() local
84 gap = tsn - map->base_tsn; in sctp_tsnmap_check()
87 if (gap < map->len && test_bit(gap, map->tsn_map)) in sctp_tsnmap_check()
98 u16 gap; in sctp_tsnmap_mark() local
103 gap = tsn - map->base_tsn; in sctp_tsnmap_mark()
105 if (gap >= map->len && !sctp_tsnmap_grow(map, gap + 1)) in sctp_tsnmap_mark()
108 if (!sctp_tsnmap_has_gap(map) && gap == 0) { in sctp_tsnmap_mark()
129 set_bit(gap, map->tsn_map); in sctp_tsnmap_mark()
192 u32 gap; in sctp_tsnmap_skip() local
203 gap = tsn - map->base_tsn + 1; in sctp_tsnmap_skip()
[all …]
/linux-6.6.21/arch/x86/mm/
Dmmap.c85 unsigned long gap = rlim_stack->rlim_cur; in mmap_base() local
90 if (gap + pad > gap) in mmap_base()
91 gap += pad; in mmap_base()
100 if (gap < gap_min) in mmap_base()
101 gap = gap_min; in mmap_base()
102 else if (gap > gap_max) in mmap_base()
103 gap = gap_max; in mmap_base()
105 return PAGE_ALIGN(task_size - gap - rnd); in mmap_base()
/linux-6.6.21/arch/s390/mm/
Dmmap.c51 unsigned long gap = rlim_stack->rlim_cur; in mmap_base() local
56 if (gap + pad > gap) in mmap_base()
57 gap += pad; in mmap_base()
66 if (gap < gap_min) in mmap_base()
67 gap = gap_min; in mmap_base()
68 else if (gap > gap_max) in mmap_base()
69 gap = gap_max; in mmap_base()
71 return PAGE_ALIGN(STACK_TOP - gap - rnd); in mmap_base()
/linux-6.6.21/drivers/media/pci/bt8xx/
Dbttv-input.c187 u32 gap, rc5, scancode; in bttv_rc5_timer_end() local
193 gap = ktime_to_us(ktime_sub(tv, ir->base_time)); in bttv_rc5_timer_end()
195 if (gap > USEC_PER_SEC) { in bttv_rc5_timer_end()
196 gap = 200000; in bttv_rc5_timer_end()
202 if (gap < 28000) { in bttv_rc5_timer_end()
240 u32 gap; in bttv_rc5_irq() local
250 gap = ktime_to_us(ktime_sub(tv, ir->base_time)); in bttv_rc5_irq()
252 if (gap > USEC_PER_SEC) { in bttv_rc5_irq()
253 gap = 200000; in bttv_rc5_irq()
257 gap, (gpio & 0x20) ? "mark" : "space"); in bttv_rc5_irq()
[all …]
/linux-6.6.21/drivers/gpu/drm/logicvc/
Dlogicvc_layer.c276 u32 gap; in logicvc_layer_buffer_find_setup() local
298 gap = fb_offset - base_offset; in logicvc_layer_buffer_find_setup()
301 if (gap && buffer_offset) { in logicvc_layer_buffer_find_setup()
302 buffer_sel = gap / buffer_offset; in logicvc_layer_buffer_find_setup()
306 gap -= buffer_sel * buffer_offset; in logicvc_layer_buffer_find_setup()
310 if (gap && layer_stride && logicvc->config.layers_configurable) { in logicvc_layer_buffer_find_setup()
311 voffset = gap / layer_stride; in logicvc_layer_buffer_find_setup()
315 gap -= voffset * layer_stride; in logicvc_layer_buffer_find_setup()
319 if (gap && layer_bytespp && logicvc->config.layers_configurable) { in logicvc_layer_buffer_find_setup()
320 hoffset = gap / layer_bytespp; in logicvc_layer_buffer_find_setup()
[all …]
/linux-6.6.21/Documentation/devicetree/bindings/net/
Dmarvell-bt-8xxx.txt22 - marvell,wakeup-gap-ms: wakeup gap represents wakeup latency of the host
39 wakeup pin 13 and gap 100ms are configured so that firmware can wakeup host
64 marvell,wakeup-gap-ms = /bits/ 16 <0x64>;
81 marvell,wakeup-gap-ms = /bits/ 16 <0x64>;
/linux-6.6.21/mm/
Dutil.c426 unsigned long gap = rlim_stack->rlim_cur; in mmap_base()
434 if (gap + pad > gap) in mmap_base()
435 gap += pad; in mmap_base()
437 if (gap < MIN_GAP) in mmap_base()
438 gap = MIN_GAP; in mmap_base()
439 else if (gap > MAX_GAP) in mmap_base()
440 gap = MAX_GAP; in mmap_base()
442 return PAGE_ALIGN(STACK_TOP - gap - rnd); in mmap_base()
/linux-6.6.21/arch/sparc/kernel/
Dsys_sparc_64.c283 unsigned long gap; in arch_pick_mmap_layout() local
289 gap = rlim_stack->rlim_cur; in arch_pick_mmap_layout()
292 gap == RLIM_INFINITY || in arch_pick_mmap_layout()
300 if (gap < 128 * 1024 * 1024) in arch_pick_mmap_layout()
301 gap = 128 * 1024 * 1024; in arch_pick_mmap_layout()
302 if (gap > (task_size / 6 * 5)) in arch_pick_mmap_layout()
303 gap = (task_size / 6 * 5); in arch_pick_mmap_layout()
305 mm->mmap_base = PAGE_ALIGN(task_size - gap - random_factor); in arch_pick_mmap_layout()
/linux-6.6.21/fs/proc/
Dstat.c57 static void show_irq_gap(struct seq_file *p, unsigned int gap) in show_irq_gap() argument
61 while (gap > 0) { in show_irq_gap()
64 inc = min_t(unsigned int, gap, ARRAY_SIZE(zeros) / 2); in show_irq_gap()
66 gap -= inc; in show_irq_gap()
/linux-6.6.21/drivers/hv/
Dhv_balloon.c595 struct hv_hotadd_gap *gap; in has_pfn_is_backed() local
602 list_for_each_entry(gap, &has->gap_list, list) { in has_pfn_is_backed()
603 if ((pfn >= gap->start_pfn) && (pfn < gap->end_pfn)) in has_pfn_is_backed()
802 struct hv_hotadd_gap *gap; in pfn_covered() local
820 gap = kzalloc(sizeof(struct hv_hotadd_gap), GFP_ATOMIC); in pfn_covered()
821 if (!gap) { in pfn_covered()
826 INIT_LIST_HEAD(&gap->list); in pfn_covered()
827 gap->start_pfn = has->covered_end_pfn; in pfn_covered()
828 gap->end_pfn = start_pfn; in pfn_covered()
829 list_add_tail(&gap->list, &has->gap_list); in pfn_covered()
[all …]
/linux-6.6.21/lib/
Dmaple_tree.c127 unsigned long gap[MAPLE_BIG_NODE_GAPS]; member
673 return node->ma64.gap; in ma_gaps()
898 meta->gap = offset; in ma_set_meta()
937 meta->gap = 0; in mt_clear_meta()
962 return mn->ma64.meta.gap; in ma_meta_gap()
977 meta->gap = offset; in ma_set_meta_gap()
1057 unsigned char gap, unsigned long val) in mte_set_gap() argument
1063 mte_to_node(mn)->ma64.gap[gap] = val; in mte_set_gap()
1495 unsigned long pstart, gap, max_gap; in mas_leaf_max_gap() local
1507 gap = 0; in mas_leaf_max_gap()
[all …]
/linux-6.6.21/drivers/clk/mmp/
Dclk-mix.c208 unsigned long gap, gap_best; in mmp_clk_mix_determine_rate() local
228 gap = abs(mix_rate - req->rate); in mmp_clk_mix_determine_rate()
229 if (!parent_best || gap < gap_best) { in mmp_clk_mix_determine_rate()
233 gap_best = gap; in mmp_clk_mix_determine_rate()
246 gap = abs(mix_rate - req->rate); in mmp_clk_mix_determine_rate()
247 if (!parent_best || gap < gap_best) { in mmp_clk_mix_determine_rate()
251 gap_best = gap; in mmp_clk_mix_determine_rate()
/linux-6.6.21/net/netfilter/ipvs/
Dip_vs_est.c176 long gap; in ip_vs_estimation_kthread() local
202 gap = kd->est_timer - now; in ip_vs_estimation_kthread()
203 if (gap > 0) { in ip_vs_estimation_kthread()
204 if (gap > IPVS_EST_TICK) { in ip_vs_estimation_kthread()
206 gap = IPVS_EST_TICK; in ip_vs_estimation_kthread()
208 schedule_timeout(gap); in ip_vs_estimation_kthread()
211 if (gap < -8 * IPVS_EST_TICK) in ip_vs_estimation_kthread()
247 long gap; in ip_vs_est_kthread_start() local
254 gap = kd->est_timer - now; in ip_vs_est_kthread_start()
256 if (abs(gap) > 4 * IPVS_EST_TICK) in ip_vs_est_kthread_start()
/linux-6.6.21/arch/mips/boot/
Delf2ecoff.c569 uint32_t gap = ph[i].p_vaddr - cur_vma; in main() local
571 if (gap > 65536) { in main()
574 gap); in main()
579 gap); in main()
581 while (gap) { in main()
584 (gap > in main()
586 obuf : gap)); in main()
593 gap -= count; in main()
/linux-6.6.21/Documentation/devicetree/bindings/regulator/
Drichtek,rt4831-regulator.yaml20 Its voltage should be configured above 0.15V to 0.2V gap larger than the
21 voltage needed for DSVP and DSVN. Too much voltage gap could improve the
/linux-6.6.21/fs/ubifs/
Dorphan.c274 int avail_lebs, avail, gap; in avail_orphs() local
279 gap = c->leb_size - c->ohead_offs; in avail_orphs()
280 if (gap >= UBIFS_ORPH_NODE_SZ + sizeof(__le64)) in avail_orphs()
281 avail += (gap - UBIFS_ORPH_NODE_SZ) / sizeof(__le64); in avail_orphs()
347 int gap, err, len, cnt, i; in write_orph_node() local
350 gap = c->leb_size - c->ohead_offs; in write_orph_node()
351 if (gap < UBIFS_ORPH_NODE_SZ + sizeof(__le64)) { in write_orph_node()
354 gap = c->leb_size; in write_orph_node()
364 cnt = (gap - UBIFS_ORPH_NODE_SZ) / sizeof(__le64); in write_orph_node()
/linux-6.6.21/rust/alloc/vec/
Dmod.rs1887 let mut gap = FillGapOnDrop { read: 1, write: 1, vec: self }; in dedup_by() localVariable
1888 let ptr = gap.vec.as_mut_ptr(); in dedup_by()
1896 while gap.read < len { in dedup_by()
1897 let read_ptr = ptr.add(gap.read); in dedup_by()
1898 let prev_ptr = ptr.add(gap.write.wrapping_sub(1)); in dedup_by()
1902 gap.read += 1; in dedup_by()
1906 let write_ptr = ptr.add(gap.write); in dedup_by()
1914 gap.write += 1; in dedup_by()
1915 gap.read += 1; in dedup_by()
1922 gap.vec.set_len(gap.write); in dedup_by()
[all …]
/linux-6.6.21/drivers/video/fbdev/
Dps3fb.c339 long gap; in ps3fb_find_mode() local
396 gap = ((long)vmode->left_margin + (long)vmode->xres + in ps3fb_find_mode()
400 if (gap > 0) { in ps3fb_find_mode()
401 var->left_margin += gap/2; in ps3fb_find_mode()
402 var->right_margin += (gap+1)/2; in ps3fb_find_mode()
407 gap = ((long)vmode->upper_margin + (long)vmode->yres + in ps3fb_find_mode()
411 if (gap > 0) { in ps3fb_find_mode()
412 var->upper_margin += gap/2; in ps3fb_find_mode()
413 var->lower_margin += (gap+1)/2; in ps3fb_find_mode()
/linux-6.6.21/include/linux/
Dfd.h16 unsigned char gap; member
/linux-6.6.21/Documentation/devicetree/bindings/thermal/
Dti_soc_thermal.txt5 gap voltage and temperature sensor (VBGAPTS) module. The band
6 gap provides current and voltage reference for its internal
/linux-6.6.21/arch/m68k/kernel/
Dentry.S82 lea %sp@(-84),%sp | leave a gap
92 lea %sp@(-84),%sp | leave a gap
97 | [gap] [switch_stack] [pt_regs] [exception frame]
103 | [unused part of the gap] [moved switch_stack] [moved pt_regs]
/linux-6.6.21/drivers/net/wireless/marvell/mwifiex/
DREADME226 echo "<condition> [GPIO# [gap]]]" > hscfg
237 [gap]: the gap in milliseconds between wakeup signal and
244 Use GPIO and gap set previously
246 Use gap set previously
247 echo "2 1 160" > hscfg : Unicast data, GPIO 1 and gap 160 ms
/linux-6.6.21/net/tipc/
Dlink.c281 u16 acked, u16 gap,
426 u16 gap = 0; in link_bc_rcv_gap() local
429 gap = l->snd_nxt - l->rcv_nxt; in link_bc_rcv_gap()
431 gap = buf_seqno(skb) - l->rcv_nxt; in link_bc_rcv_gap()
432 return gap; in link_bc_rcv_gap()
1485 gacks[n].gap = htons(seqno - expect); in __tipc_build_gap_ack_blks()
1501 gacks[n].gap = 0; in __tipc_build_gap_ack_blks()
1557 u16 acked, u16 gap, in tipc_link_advance_transmq() argument
1567 u16 nacked = acked, ngap = gap, gack_cnt = 0; in tipc_link_advance_transmq()
1576 trace_tipc_link_retrans(r, acked + 1, acked + gap, &l->transmq); in tipc_link_advance_transmq()
[all …]
/linux-6.6.21/drivers/gpu/drm/imx/dcss/
Ddcss-dpr.c236 u32 gap = DCSS_DPR_FRAME_2P_BASE_ADDR - DCSS_DPR_FRAME_1P_BASE_ADDR; in dcss_dpr_set_res() local
251 DCSS_DPR_FRAME_1P_PIX_X_CTRL + plane * gap); in dcss_dpr_set_res()
253 DCSS_DPR_FRAME_1P_PIX_Y_CTRL + plane * gap); in dcss_dpr_set_res()
255 dcss_dpr_write(ch, 2, DCSS_DPR_FRAME_1P_CTRL0 + plane * gap); in dcss_dpr_set_res()
/linux-6.6.21/mm/damon/
Dvaddr.c130 unsigned long gap; in __damon_va_three_regions() local
136 gap = vma->vm_start - prev->vm_end; in __damon_va_three_regions()
138 if (gap > sz_range(&first_gap)) { in __damon_va_three_regions()
142 } else if (gap > sz_range(&second_gap)) { in __damon_va_three_regions()

12345