/third_party/mesa3d/src/gallium/frontends/xvmc/tests/ |
H A D | test_rendering.c | 105 static void Gradient(short *block, unsigned int start, unsigned int stop, int horizontal, unsigned int intra_unsigned) in Gradient() argument 108 unsigned int range = stop - start; in Gradient() 114 *block = (short)(start + range * (x / (float)(BLOCK_WIDTH - 1))); in Gradient() 124 *block = (short)(start + range * (y / (float)(BLOCK_WIDTH - 1))); in Gradient() 219 const int start = 16, stop = 235, range = stop - start; in main() local 224 (short)(start + range * ((mbx * MACROBLOCK_WIDTH + bx * BLOCK_WIDTH) / (float)(INPUT_WIDTH - 1))), in main() 225 (short)(start + range * ((mbx * MACROBLOCK_WIDTH + bx * BLOCK_WIDTH + BLOCK_WIDTH - 1) / (float)(INPUT_WIDTH - 1))), in main() 236 const int start = 16, stop = 240, range = stop - start; in main() local [all...] |
/third_party/skia/tests/ |
H A D | PathOpsTestCommon.cpp | 20 static double calc_t_div(const SkDCubic& cubic, double precision, double start) { in calc_t_div() argument 24 if (start == 0) { in calc_t_div() 28 sub = cubic.subDivide(start, 1); in calc_t_div() 37 if (start > 0) { in calc_t_div() 38 t = start + (1 - start) * t; in calc_t_div() 55 static void addTs(const SkDCubic& cubic, double precision, double start, double end, in addTs() argument 60 double newT = start + (index / parts) * (end - start); in addTs() 86 int start in toQuadraticTs() local [all...] |
/third_party/skia/include/private/ |
H A D | SkPathRef.h | 154 void setIsOval(bool isOval, bool isCCW, unsigned start) { in setIsOval() argument 155 fPathRef->setIsOval(isOval, isCCW, start); in setIsOval() 158 void setIsRRect(bool isRRect, bool isCCW, unsigned start) { in setIsRRect() argument 159 fPathRef->setIsRRect(isRRect, isCCW, start); in setIsRRect() 225 * @param start indicates where the contour starts on the oval (see 233 bool isOval(SkRect* rect, bool* isCCW, unsigned* start) const { in isOval() 241 if (start) { in isOval() 242 *start = fRRectOrOvalStartIdx; in isOval() 249 bool isRRect(SkRRect* rrect, bool* isCCW, unsigned* start) const { in isRRect() 257 if (start) { in isRRect() 473 setIsOval(bool isOval, bool isCCW, unsigned start) setIsOval() argument 479 setIsRRect(bool isRRect, bool isCCW, unsigned start) setIsRRect() argument [all...] |
/third_party/selinux/libselinux/src/ |
H A D | seusers.c | 21 char *start, *end; in process_seusers() local 27 start = newbuf; in process_seusers() 28 while (isspace(*start)) in process_seusers() 29 start++; in process_seusers() 30 if (*start == '#' || *start == 0) { in process_seusers() 34 end = strchr(start, ':'); in process_seusers() 39 luser = strdup(start); in process_seusers() 43 start = end + 1; in process_seusers() 44 end = strchr(start, ' in process_seusers() [all...] |
/third_party/skia/third_party/externals/angle2/src/common/ |
H A D | string_utils.cpp | 50 std::string::size_type start = 0; in SplitString() local 51 while (start != std::string::npos) in SplitString() 53 auto end = input.find_first_of(delimiters, start); in SplitString() 58 piece = input.substr(start); in SplitString() 59 start = std::string::npos; in SplitString() 63 piece = input.substr(start, end - start); in SplitString() 64 start = end + 1; in SplitString() 216 std::string::size_type start = 0u; in ContainsToken() local 219 std::string::size_type end = tokenStr.find(delimiter, start); in ContainsToken() [all...] |
/foundation/graphic/graphic_2d/rosen/modules/2d_engine/rosen_text/skia_txt/txt/ |
H A D | utils.h | 28 Range() : start(), end() {} in Range() 29 Range(T s, T e) : start(s), end(e) {} in Range() 33 return start == other.start && end == other.end; in operator ==() 36 T start; member
|
/kernel/linux/linux-5.10/arch/mips/bcm63xx/ |
H A D | dev-hsspi.c | 19 .start = -1, /* filled at runtime */ 24 .start = -1, /* filled at runtime */ 41 spi_resources[0].start = bcm63xx_regset_address(RSET_HSSPI); in bcm63xx_hsspi_register() 42 spi_resources[0].end = spi_resources[0].start; in bcm63xx_hsspi_register() 44 spi_resources[1].start = bcm63xx_get_irq_number(IRQ_HSSPI); in bcm63xx_hsspi_register()
|
/kernel/linux/linux-5.10/arch/nds32/include/asm/ |
H A D | tlbflush.h | 23 static inline void local_flush_tlb_kernel_range(unsigned long start, in local_flush_tlb_kernel_range() argument 26 while (start < end) { in local_flush_tlb_kernel_range() 27 __nds32__tlbop_inv(start); in local_flush_tlb_kernel_range() 29 start += PAGE_SIZE; in local_flush_tlb_kernel_range() 34 unsigned long start, unsigned long end);
|
/kernel/linux/linux-6.6/arch/mips/bcm63xx/ |
H A D | dev-hsspi.c | 19 .start = -1, /* filled at runtime */ 24 .start = -1, /* filled at runtime */ 41 spi_resources[0].start = bcm63xx_regset_address(RSET_HSSPI); in bcm63xx_hsspi_register() 42 spi_resources[0].end = spi_resources[0].start; in bcm63xx_hsspi_register() 44 spi_resources[1].start = bcm63xx_get_irq_number(IRQ_HSSPI); in bcm63xx_hsspi_register()
|
/kernel/linux/linux-5.10/include/linux/ |
H A D | range.h | 7 u64 start; member 13 return range->end - range->start + 1; in range_len() 17 u64 start, u64 end); 21 u64 start, u64 end); 23 void subtract_range(struct range *range, int az, u64 start, u64 end);
|
/kernel/linux/linux-5.10/drivers/gpu/drm/arm/display/include/ |
H A D | malidp_utils.h | 26 /* the restriction of range is [start, end] */ 28 u32 start; member 32 static inline void set_range(struct malidp_range *rg, u32 start, u32 end) in set_range() argument 34 rg->start = start; in set_range() 40 return (v >= rg->start) && (v <= rg->end); in in_range()
|
/kernel/linux/linux-6.6/drivers/gpu/drm/arm/display/include/ |
H A D | malidp_utils.h | 26 /* the restriction of range is [start, end] */ 28 u32 start; member 32 static inline void set_range(struct malidp_range *rg, u32 start, u32 end) in set_range() argument 34 rg->start = start; in set_range() 40 return (v >= rg->start) && (v <= rg->end); in malidp_in_range()
|
/kernel/linux/linux-6.6/fs/btrfs/ |
H A D | zoned.c | 74 (zone->wp + SUPER_INFO_SECTORS > zone->start + zone->capacity); in sb_zone_is_full() 119 *wp_ret = zones[0].start << SECTOR_SHIFT; in sb_write_pointer() 129 u64 zone_end = (zones[i].start + zones[i].capacity) << SECTOR_SHIFT; in sb_write_pointer() 145 sector = zones[1].start; in sb_write_pointer() 147 sector = zones[0].start; in sb_write_pointer() 207 zones[i].start = i * zone_sectors + pos; in emulate_report_zones() 210 zones[i].wp = zones[i].start + zone_sectors; in emulate_report_zones() 507 sector = zones[nr_zones - 1].start + zones[nr_zones - 1].len; in btrfs_get_dev_zone_info() 824 *bytenr_ret = zones[0].start << SECTOR_SHIFT; in sb_log_location() 835 if (wp == zones[0].start << SECTOR_SHIF in sb_log_location() 1161 btrfs_ensure_empty_zones(struct btrfs_device *device, u64 start, u64 size) btrfs_ensure_empty_zones() argument 1617 u64 start = (bbio->bio.bi_iter.bi_sector << SECTOR_SHIFT); btrfs_use_zone_append() local [all...] |
/third_party/toybox/toys/pending/ |
H A D | fdisk.c | 102 static void set_hsc(struct partition *p, sector_t start, sector_t end) in set_hsc() argument 104 if (dos_flag && (start / (g_sectors * g_heads) > 1023)) in set_hsc() 105 start = g_heads * g_sectors * ONE_K - 1; in set_hsc() 106 p->sector = (start % g_sectors) + 1; in set_hsc() 107 start /= g_sectors; in set_hsc() 108 p->head = start % g_heads; in set_hsc() 109 start /= g_heads; in set_hsc() 110 p->cyl = start & 0xFF; in set_hsc() 111 p->sector |= (start >> 2) & 0xc0; in set_hsc() 411 sector_t start, en in consistency_check() local 814 sector_t start, limit, temp = 0, start_cyl, limit_cyl, offset = 1; ask_start_sector() local 869 sector_t limit, temp = 0, start_cyl, limit_cyl, start = start_sec; ask_end_sector() local 917 sector_t start, end, begin_sec[num_parts], end_sec[num_parts]; add_partition() local 1064 check(int n, unsigned h, unsigned s, unsigned c, sector_t start) check() argument 1146 sector_t start, num, new_start, end; move_begning() local [all...] |
/kernel/linux/linux-5.10/arch/arm64/mm/ |
H A D | pageattr.c | 37 static int __change_memory_common(unsigned long start, unsigned long size, in __change_memory_common() argument 46 ret = apply_to_page_range(&init_mm, start, size, change_page_range, in __change_memory_common() 49 flush_tlb_kernel_range(start, start + size); in __change_memory_common() 56 unsigned long start = addr; in change_memory_common() local 58 unsigned long end = start + size; in change_memory_common() 63 start &= PAGE_MASK; in change_memory_common() 64 end = start + size; in change_memory_common() 108 return __change_memory_common(start, size, set_mask, clear_mask); in change_memory_common()
|
/kernel/linux/linux-5.10/arch/m68k/amiga/ |
H A D | platform.c | 25 .start = 0x00e80000, 30 .start = 0x00200000, 37 .start = 0xff000000, 42 .start = 0x40000000, 88 .start = 0xdd0000, 95 .start = 0xdd0000, 102 .start = 0xda0000, 115 .start = 0xdd2000, 128 .start = 0x00dc0000,
|
/kernel/linux/linux-5.10/arch/mips/sni/ |
H A D | a20r.c | 45 .start = 0x1c081ffc, 59 .start = 0x18000000, 64 .start = 0x18010000, 69 .start = 0x1ff00000, 74 .start = 22, 91 .start = 0x19000000, 96 .start = 19, 110 .start = 0x1c070000, 115 .start = 20,
|
/kernel/linux/linux-5.10/arch/s390/kernel/ |
H A D | machine_kexec.c | 62 start_kdump = (void *)((struct kimage *) image)->start; in __do_machine_kdump() 115 int (*start_kdump)(int) = (void *)image->start; in do_start_kdump() 151 size = begin - crashk_res.start; in crash_free_reserved_phys_range() 153 os_info_crashkernel_add(crashk_res.start, size); in crash_free_reserved_phys_range() 166 set_memory_ro(crashk_res.start, size >> PAGE_SHIFT); in crash_protect_pages() 168 set_memory_rw(crashk_res.start, size >> PAGE_SHIFT); in crash_protect_pages() 190 diag10_range(PFN_DOWN(crashk_res.start), in machine_kexec_prepare_kdump() 191 PFN_DOWN(crashk_res.end - crashk_res.start + 1)); in machine_kexec_prepare_kdump() 254 (*data_mover)(&image->head, image->start); in __do_machine_kexec()
|
/kernel/linux/linux-6.6/arch/m68k/amiga/ |
H A D | platform.c | 25 .start = 0x00e80000, 30 .start = 0x00200000, 37 .start = 0xff000000, 42 .start = 0x40000000, 88 .start = 0xdd0000, 95 .start = 0xdd0000, 102 .start = 0xda0000, 115 .start = 0xdd2000, 128 .start = 0x00dc0000,
|
/kernel/linux/linux-6.6/arch/arm64/mm/ |
H A D | pageattr.c | 51 static int __change_memory_common(unsigned long start, unsigned long size, in __change_memory_common() argument 60 ret = apply_to_page_range(&init_mm, start, size, change_page_range, in __change_memory_common() 63 flush_tlb_kernel_range(start, start + size); in __change_memory_common() 70 unsigned long start = addr; in change_memory_common() local 72 unsigned long end = start + size; in change_memory_common() 77 start &= PAGE_MASK; in change_memory_common() 78 end = start + size; in change_memory_common() 122 return __change_memory_common(start, size, set_mask, clear_mask); in change_memory_common()
|
/kernel/linux/linux-6.6/arch/mips/sni/ |
H A D | a20r.c | 45 .start = 0x1c081ffc, 59 .start = 0x18000000, 64 .start = 0x18010000, 69 .start = 0x1ff00000, 74 .start = 22, 91 .start = 0x19000000, 96 .start = 19, 110 .start = 0x1c070000, 115 .start = 20,
|
/kernel/linux/linux-6.6/arch/s390/kernel/ |
H A D | machine_kexec.c | 51 purgatory = (purgatory_t)image->start; in __do_machine_kdump() 124 purgatory_t purgatory = (purgatory_t)image->start; in kdump_csum_valid() 142 size = begin - crashk_res.start; in crash_free_reserved_phys_range() 144 os_info_crashkernel_add(crashk_res.start, size); in crash_free_reserved_phys_range() 157 set_memory_ro(crashk_res.start, size >> PAGE_SHIFT); in crash_protect_pages() 159 set_memory_rw(crashk_res.start, size >> PAGE_SHIFT); in crash_protect_pages() 181 diag10_range(PFN_DOWN(crashk_res.start), in machine_kexec_prepare_kdump() 182 PFN_DOWN(crashk_res.end - crashk_res.start + 1)); in machine_kexec_prepare_kdump() 253 unsigned long, image->start, in __do_machine_kexec()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlx5/core/lib/ |
H A D | gid.c | 44 dev->roce.reserved_gids.start = tblsz; in mlx5_init_reserved_gids() 51 dev->roce.reserved_gids.start = 0; in mlx5_cleanup_reserved_gids() 62 if (dev->roce.reserved_gids.start < count) { in mlx5_core_reserve_gids() 72 dev->roce.reserved_gids.start -= count; in mlx5_core_reserve_gids() 76 dev->roce.reserved_gids.start); in mlx5_core_reserve_gids() 86 dev->roce.reserved_gids.start += count; in mlx5_core_unreserve_gids() 90 dev->roce.reserved_gids.start); in mlx5_core_unreserve_gids() 95 int end = dev->roce.reserved_gids.start + in mlx5_core_reserved_gid_alloc() 100 dev->roce.reserved_gids.start, end, in mlx5_core_reserved_gid_alloc()
|
/kernel/linux/linux-5.10/fs/xfs/ |
H A D | xfs_discard.c | 26 xfs_daddr_t start, in xfs_trim_extents() 56 * Look up the longest btree in the AGF and start with it. in xfs_trim_extents() 102 if (dbno + dlen < start || dbno > end) { in xfs_trim_extents() 158 xfs_daddr_t start, end, minlen; in xfs_ioc_trim() local 187 if (range.start >= XFS_FSB_TO_B(mp, mp->m_sb.sb_dblocks) || in xfs_ioc_trim() 192 start = BTOBB(range.start); in xfs_ioc_trim() 193 end = start + BTOBBT(range.len) - 1; in xfs_ioc_trim() 198 start_agno = xfs_daddr_to_agno(mp, start); in xfs_ioc_trim() 202 error = xfs_trim_extents(mp, agno, start, en in xfs_ioc_trim() 23 xfs_trim_extents( struct xfs_mount *mp, xfs_agnumber_t agno, xfs_daddr_t start, xfs_daddr_t end, xfs_daddr_t minlen, uint64_t *blocks_trimmed) xfs_trim_extents() argument [all...] |
/kernel/linux/linux-6.6/drivers/net/ethernet/mellanox/mlx5/core/lib/ |
H A D | gid.c | 44 dev->roce.reserved_gids.start = tblsz; in mlx5_init_reserved_gids() 51 dev->roce.reserved_gids.start = 0; in mlx5_cleanup_reserved_gids() 58 if (dev->roce.reserved_gids.start < count) { in mlx5_core_reserve_gids() 68 dev->roce.reserved_gids.start -= count; in mlx5_core_reserve_gids() 72 dev->roce.reserved_gids.start); in mlx5_core_reserve_gids() 81 dev->roce.reserved_gids.start += count; in mlx5_core_unreserve_gids() 85 dev->roce.reserved_gids.start); in mlx5_core_unreserve_gids() 90 int end = dev->roce.reserved_gids.start + in mlx5_core_reserved_gid_alloc() 95 dev->roce.reserved_gids.start, end, in mlx5_core_reserved_gid_alloc()
|