/kernel/linux/linux-6.6/include/linux/ |
H A D | percpu_counter.h | 33 int __percpu_counter_init_many(struct percpu_counter *fbc, s64 amount, 55 void percpu_counter_set(struct percpu_counter *fbc, s64 amount); 56 void percpu_counter_add_batch(struct percpu_counter *fbc, s64 amount, 67 static inline void percpu_counter_add(struct percpu_counter *fbc, s64 amount) in percpu_counter_add() argument 69 percpu_counter_add_batch(fbc, amount, percpu_counter_batch); in percpu_counter_add() 83 percpu_counter_add_local(struct percpu_counter *fbc, s64 amount) in percpu_counter_add_local() argument 85 percpu_counter_add_batch(fbc, amount, PERCPU_COUNTER_LOCAL_BATCH); in percpu_counter_add_local() 131 s64 amount, gfp_t gfp, in percpu_counter_init_many() 137 fbc[i].count = amount; in percpu_counter_init_many() 142 static inline int percpu_counter_init(struct percpu_counter *fbc, s64 amount, in percpu_counter_init() argument 130 percpu_counter_init_many(struct percpu_counter *fbc, s64 amount, gfp_t gfp, u32 nr_counters) percpu_counter_init_many() argument 157 percpu_counter_set(struct percpu_counter *fbc, s64 amount) percpu_counter_set() argument 179 percpu_counter_add(struct percpu_counter *fbc, s64 amount) percpu_counter_add() argument 190 percpu_counter_add_local(struct percpu_counter *fbc, s64 amount) percpu_counter_add_local() argument 196 percpu_counter_add_batch(struct percpu_counter *fbc, s64 amount, s32 batch) percpu_counter_add_batch() argument 245 percpu_counter_sub(struct percpu_counter *fbc, s64 amount) percpu_counter_sub() argument 251 percpu_counter_sub_local(struct percpu_counter *fbc, s64 amount) percpu_counter_sub_local() argument [all...] |
/kernel/linux/linux-5.10/arch/parisc/math-emu/ |
H A D | hppa.h | 14 /* amount is assumed to be a constant between 0 and 32 (non-inclusive) */ 15 #define Shiftdouble(left,right,amount,dest) \ 16 /* int left, right, amount, dest; */ \ 17 dest = ((left) << (32-(amount))) | ((unsigned int)(right) >> (amount)) 19 /* amount must be less than 32 */ 20 #define Variableshiftdouble(left,right,amount,dest) \ 21 /* unsigned int left, right; int amount, dest; */ \ 22 if (amount == 0) dest = right; \ 23 else dest = ((((unsigned) left)&0x7fffffff) << (32-(amount))) | \ [all...] |
/kernel/linux/linux-6.6/arch/parisc/math-emu/ |
H A D | hppa.h | 14 /* amount is assumed to be a constant between 0 and 32 (non-inclusive) */ 15 #define Shiftdouble(left,right,amount,dest) \ 16 /* int left, right, amount, dest; */ \ 17 dest = ((left) << (32-(amount))) | ((unsigned int)(right) >> (amount)) 19 /* amount must be less than 32 */ 20 #define Variableshiftdouble(left,right,amount,dest) \ 21 /* unsigned int left, right; int amount, dest; */ \ 22 if (amount == 0) dest = right; \ 23 else dest = ((((unsigned) left)&0x7fffffff) << (32-(amount))) | \ [all...] |
/third_party/node/deps/v8/src/heap/ |
H A D | memory-chunk-inl.h | 15 ExternalBackingStoreType type, size_t amount) { in IncrementExternalBackingStoreBytes() 17 base::CheckedIncrement(&external_backing_store_bytes_[type], amount); in IncrementExternalBackingStoreBytes() 18 owner()->IncrementExternalBackingStoreBytes(type, amount); in IncrementExternalBackingStoreBytes() 23 ExternalBackingStoreType type, size_t amount) { in DecrementExternalBackingStoreBytes() 25 base::CheckedDecrement(&external_backing_store_bytes_[type], amount); in DecrementExternalBackingStoreBytes() 26 owner()->DecrementExternalBackingStoreBytes(type, amount); in DecrementExternalBackingStoreBytes() 33 size_t amount) { in MoveExternalBackingStoreBytes() 36 base::CheckedDecrement(&(from->external_backing_store_bytes_[type]), amount); in MoveExternalBackingStoreBytes() 37 base::CheckedIncrement(&(to->external_backing_store_bytes_[type]), amount); in MoveExternalBackingStoreBytes() 39 amount); in MoveExternalBackingStoreBytes() 14 IncrementExternalBackingStoreBytes( ExternalBackingStoreType type, size_t amount) IncrementExternalBackingStoreBytes() argument 22 DecrementExternalBackingStoreBytes( ExternalBackingStoreType type, size_t amount) DecrementExternalBackingStoreBytes() argument 30 MoveExternalBackingStoreBytes(ExternalBackingStoreType type, MemoryChunk* from, MemoryChunk* to, size_t amount) MoveExternalBackingStoreBytes() argument [all...] |
/kernel/linux/linux-5.10/include/linux/ |
H A D | percpu_counter.h | 31 int __percpu_counter_init(struct percpu_counter *fbc, s64 amount, gfp_t gfp, 42 void percpu_counter_set(struct percpu_counter *fbc, s64 amount); 43 void percpu_counter_add_batch(struct percpu_counter *fbc, s64 amount, 54 static inline void percpu_counter_add(struct percpu_counter *fbc, s64 amount) in percpu_counter_add() argument 56 percpu_counter_add_batch(fbc, amount, percpu_counter_batch); in percpu_counter_add() 101 static inline int percpu_counter_init(struct percpu_counter *fbc, s64 amount, in percpu_counter_init() argument 104 fbc->count = amount; in percpu_counter_init() 112 static inline void percpu_counter_set(struct percpu_counter *fbc, s64 amount) in percpu_counter_set() argument 114 fbc->count = amount; in percpu_counter_set() 134 percpu_counter_add(struct percpu_counter *fbc, s64 amount) in percpu_counter_add() argument 142 percpu_counter_add_batch(struct percpu_counter *fbc, s64 amount, s32 batch) percpu_counter_add_batch() argument 191 percpu_counter_sub(struct percpu_counter *fbc, s64 amount) percpu_counter_sub() argument [all...] |
/third_party/protobuf/src/google/protobuf/stubs/ |
H A D | int128.h | 232 inline uint128 operator<<(const uint128& val, int amount) { in operator <<() argument 234 if (amount < 64) { in operator <<() 235 if (amount == 0) { in operator <<() 238 uint64 new_hi = (Uint128High64(val) << amount) | in operator <<() 239 (Uint128Low64(val) >> (64 - amount)); in operator <<() 240 uint64 new_lo = Uint128Low64(val) << amount; in operator <<() 242 } else if (amount < 128) { in operator <<() 243 return uint128(Uint128Low64(val) << (amount - 64), 0); in operator <<() 249 inline uint128 operator>>(const uint128& val, int amount) { in operator >>() argument 251 if (amount < 6 in operator >>() 266 operator <<=(int amount) operator <<=() argument 283 operator >>=(int amount) operator >>=() argument [all...] |
/kernel/linux/linux-6.6/fs/nfsd/ |
H A D | stats.h | 68 static inline void nfsd_stats_io_read_add(struct svc_export *exp, s64 amount) in nfsd_stats_io_read_add() argument 70 percpu_counter_add(&nfsdstats.counter[NFSD_STATS_IO_READ], amount); in nfsd_stats_io_read_add() 72 percpu_counter_add(&exp->ex_stats.counter[EXP_STATS_IO_READ], amount); in nfsd_stats_io_read_add() 75 static inline void nfsd_stats_io_write_add(struct svc_export *exp, s64 amount) in nfsd_stats_io_write_add() argument 77 percpu_counter_add(&nfsdstats.counter[NFSD_STATS_IO_WRITE], amount); in nfsd_stats_io_write_add() 79 percpu_counter_add(&exp->ex_stats.counter[EXP_STATS_IO_WRITE], amount); in nfsd_stats_io_write_add() 87 static inline void nfsd_stats_drc_mem_usage_add(struct nfsd_net *nn, s64 amount) in nfsd_stats_drc_mem_usage_add() argument 89 percpu_counter_add(&nn->counter[NFSD_NET_DRC_MEM_USAGE], amount); in nfsd_stats_drc_mem_usage_add() 92 static inline void nfsd_stats_drc_mem_usage_sub(struct nfsd_net *nn, s64 amount) in nfsd_stats_drc_mem_usage_sub() argument 94 percpu_counter_sub(&nn->counter[NFSD_NET_DRC_MEM_USAGE], amount); in nfsd_stats_drc_mem_usage_sub() [all...] |
/third_party/mesa3d/src/util/ |
H A D | bitset.h | 110 __bitset_rotate_right(BITSET_WORD *x, unsigned amount, unsigned n) in __bitset_rotate_right() argument 112 assert(amount < BITSET_WORDBITS); in __bitset_rotate_right() 114 if (amount == 0) in __bitset_rotate_right() 118 x[i] = (x[i] >> amount) | (x[i + 1] << (BITSET_WORDBITS - amount)); in __bitset_rotate_right() 121 x[n - 1] = x[n - 1] >> amount; in __bitset_rotate_right() 125 __bitset_rotate_left(BITSET_WORD *x, unsigned amount, unsigned n) 127 assert(amount < BITSET_WORDBITS); 129 if (amount == 0) 133 x[i] = (x[i] << amount) | ( [all...] |
/third_party/openssl/test/ |
H A D | bio_prefix_text.c | 39 static size_t amount = 0; variable 86 if (!BIO_write_ex(chain[amount - 1], buf, bytes_in, &bytes)) in run_pipe() 97 size_t n = amount; in setup_bio_chain() 129 BIO_free_all(chain[amount - 1]); in cleanup() 164 amount = strtoul(arg, &endptr, 10); in setup() 171 if (amount < 1) { in setup() 209 if (idx >= amount) { in setup() 211 progname, idx, amount - 1); in setup() 240 if (idx >= amount) { in setup() 242 progname, idx, amount in setup() [all...] |
/third_party/libwebsockets/lib/roles/http/server/ |
H A D | fops-zip.c | 169 lws_filepos_t amount; in lws_fops_zip_scan() local 176 if (lws_vfs_file_read(priv->zip_fop_fd, &amount, buf, in lws_fops_zip_scan() 180 if (amount != ZE_DIRECTORY_LENGTH) in lws_fops_zip_scan() 206 if (lws_vfs_file_read(priv->zip_fop_fd, &amount, buf, in lws_fops_zip_scan() 210 if (amount != ZC_DIRECTORY_LENGTH) in lws_fops_zip_scan() 237 &amount, buf, (unsigned int)len)) in lws_fops_zip_scan() 239 if ((int)amount != len) in lws_fops_zip_scan() 252 &amount, buf, in lws_fops_zip_scan() 255 if (amount != ZL_HEADER_LENGTH) in lws_fops_zip_scan() 497 lws_fops_zip_read(lws_fop_fd_t fd, lws_filepos_t *amount, uint8_ argument [all...] |
/kernel/linux/linux-5.10/drivers/gpu/drm/nouveau/nvkm/subdev/devinit/ |
H A D | nv20.c | 38 uint32_t amount, off; in nv20_devinit_meminit() local 53 amount = nvkm_rd32(device, 0x10020c); in nv20_devinit_meminit() 54 for (off = amount; off > 0x2000000; off -= 0x2000000) in nv20_devinit_meminit() 57 amount = nvkm_rd32(device, 0x10020c); in nv20_devinit_meminit() 58 if (amount != fbmem_peek(fb, amount - 4)) in nv20_devinit_meminit()
|
/kernel/linux/linux-6.6/drivers/gpu/drm/nouveau/nvkm/subdev/devinit/ |
H A D | nv20.c | 38 uint32_t amount, off; in nv20_devinit_meminit() local 53 amount = nvkm_rd32(device, 0x10020c); in nv20_devinit_meminit() 54 for (off = amount; off > 0x2000000; off -= 0x2000000) in nv20_devinit_meminit() 57 amount = nvkm_rd32(device, 0x10020c); in nv20_devinit_meminit() 58 if (amount != fbmem_peek(fb, amount - 4)) in nv20_devinit_meminit()
|
/third_party/ffmpeg/libavfilter/ |
H A D | af_apulsator.c | 35 double amount; member 46 double amount; member 70 { "amount", "set modulation", OFFSET(amount), AV_OPT_TYPE_DOUBLE, {.dbl=1}, 0, 1, FLAGS }, 125 return val * lfo->amount; in lfo_get_value() 137 const double amount = s->amount; in filter_frame() local 162 procL *= lfo_get_value(&s->lfoL) * 0.5 + amount / 2; in filter_frame() 163 procR *= lfo_get_value(&s->lfoR) * 0.5 + amount / 2; in filter_frame() 165 outL = procL + inL * (1 - amount); in filter_frame() [all...] |
/third_party/icu/icu4c/source/i18n/ |
H A D | hebrwcal.cpp | 188 * Add a signed amount to a specified field, using this calendar's rules. 208 * @param amount the amount to add to the field. 214 void HebrewCalendar::add(UCalendarDateFields field, int32_t amount, UErrorCode& status) in add() argument 222 // We can't just do a set(MONTH, get(MONTH) + amount). The in add() 223 // reason is ADAR_1. Suppose amount is +2 and we land in in add() 225 // if amount is -2 and we land in ADAR_1, then we have to in add() 230 if (amount > 0) { in add() 232 month += amount; in add() 246 month += amount; in add() 274 add(EDateFields field, int32_t amount, UErrorCode& status) add() argument 311 roll(UCalendarDateFields field, int32_t amount, UErrorCode& status) roll() argument 345 roll(EDateFields field, int32_t amount, UErrorCode& status) roll() argument [all...] |
H A D | curramt.cpp | 22 CurrencyAmount::CurrencyAmount(const Formattable& amount, ConstChar16Ptr isoCode, in CurrencyAmount() argument 24 Measure(amount, new CurrencyUnit(isoCode, ec), ec) { in CurrencyAmount() 27 CurrencyAmount::CurrencyAmount(double amount, ConstChar16Ptr isoCode, in CurrencyAmount() argument 29 Measure(Formattable(amount), new CurrencyUnit(isoCode, ec), ec) { in CurrencyAmount()
|
/third_party/skia/third_party/externals/icu/source/i18n/ |
H A D | hebrwcal.cpp | 188 * Add a signed amount to a specified field, using this calendar's rules. 208 * @param amount the amount to add to the field. 214 void HebrewCalendar::add(UCalendarDateFields field, int32_t amount, UErrorCode& status) in add() argument 222 // We can't just do a set(MONTH, get(MONTH) + amount). The in add() 223 // reason is ADAR_1. Suppose amount is +2 and we land in in add() 225 // if amount is -2 and we land in ADAR_1, then we have to in add() 230 if (amount > 0) { in add() 232 month += amount; in add() 246 month += amount; in add() 274 add(EDateFields field, int32_t amount, UErrorCode& status) add() argument 311 roll(UCalendarDateFields field, int32_t amount, UErrorCode& status) roll() argument 345 roll(EDateFields field, int32_t amount, UErrorCode& status) roll() argument [all...] |
H A D | curramt.cpp | 22 CurrencyAmount::CurrencyAmount(const Formattable& amount, ConstChar16Ptr isoCode, in CurrencyAmount() argument 24 Measure(amount, new CurrencyUnit(isoCode, ec), ec) { in CurrencyAmount() 27 CurrencyAmount::CurrencyAmount(double amount, ConstChar16Ptr isoCode, in CurrencyAmount() argument 29 Measure(Formattable(amount), new CurrencyUnit(isoCode, ec), ec) { in CurrencyAmount()
|
/third_party/libwebsockets/include/libwebsockets/ |
H A D | lws-vfs.h | 113 int (*LWS_FOP_READ)(lws_fop_fd_t fop_fd, lws_filepos_t *amount, 115 /**< Read from file, on exit *amount is set to amount actually read */ 116 int (*LWS_FOP_WRITE)(lws_fop_fd_t fop_fd, lws_filepos_t *amount, 118 /**< Write to file, on exit *amount is set to amount actually written */ 227 * \param amount: how much to read (rewritten by call) 232 lws_vfs_file_read(lws_fop_fd_t fop_fd, lws_filepos_t *amount, in lws_vfs_file_read() argument 235 return fop_fd->fops->LWS_FOP_READ(fop_fd, amount, buf, len); in lws_vfs_file_read() 241 * \param amount 246 lws_vfs_file_write(lws_fop_fd_t fop_fd, lws_filepos_t *amount, uint8_t *buf, lws_filepos_t len) lws_vfs_file_write() argument [all...] |
/third_party/skia/src/core/ |
H A D | SkFontStream.cpp | 40 static bool read(SkStream* stream, void* buffer, size_t amount) { in read() argument 41 return stream->read(buffer, amount) == amount; in read() 44 static bool skip(SkStream* stream, size_t amount) { in skip() argument 45 return stream->skip(amount) == amount; in skip() 78 size_t amount = sizeof(SkSharedTTHeader) + ttcIndex * sizeof(uint32_t); in count_tables() local 79 header = (SkSharedTTHeader*)storage.reset(amount); in count_tables() 80 if (!read(stream, header, amount)) { in count_tables()
|
/third_party/curl/lib/ |
H A D | headers.c | 43 size_t amount, in copy_header_external() 50 h->amount = amount; in copy_header_external() 72 size_t amount = 0; in curl_easy_header() local 86 /* we need a first round to count amount of this header */ in curl_easy_header() 92 amount++; in curl_easy_header() 97 if(!amount) in curl_easy_header() 99 else if(nameindex >= amount) in curl_easy_header() 102 if(nameindex == amount - 1) in curl_easy_header() 120 copy_header_external(hs, nameindex, amount, e_pic in curl_easy_header() 41 copy_header_external(struct Curl_header_store *hs, size_t index, size_t amount, struct Curl_llist_element *e, struct curl_header *hout) copy_header_external() argument 136 size_t amount = 0; curl_easy_nextheader() local [all...] |
/third_party/curl/tests/libtest/ |
H A D | lib1591.c | 39 size_t amount = nmemb * size; /* Total bytes curl wants */ in read_callback() local 45 if(amount > strlen(data)-consumed) { in read_callback() 46 amount = strlen(data); in read_callback() 49 consumed += amount; in read_callback() 51 memcpy(ptr, data, amount); in read_callback() 52 return amount; in read_callback()
|
/kernel/linux/linux-5.10/sound/pci/ctxfi/ |
H A D | ctresource.c | 23 get_resource(u8 *rscs, unsigned int amount, in get_resource() argument 29 for (i = 0, n = multi; i < amount; i++) { in get_resource() 40 if (i >= amount) { in get_resource() 80 err = get_resource(mgr->rscs, mgr->amount, n, ridx); in mgr_get_resource() 205 unsigned int amount, struct hw *hw) in rsc_mgr_init() 211 mgr->rscs = kzalloc(((amount + 8 - 1) / 8), GFP_KERNEL); in rsc_mgr_init() 244 mgr->avail = mgr->amount = amount; in rsc_mgr_init() 286 mgr->avail = mgr->amount = 0; in rsc_mgr_uninit() 204 rsc_mgr_init(struct rsc_mgr *mgr, enum RSCTYP type, unsigned int amount, struct hw *hw) rsc_mgr_init() argument
|
/kernel/linux/linux-6.6/sound/pci/ctxfi/ |
H A D | ctresource.c | 23 get_resource(u8 *rscs, unsigned int amount, in get_resource() argument 29 for (i = 0, n = multi; i < amount; i++) { in get_resource() 40 if (i >= amount) { in get_resource() 80 err = get_resource(mgr->rscs, mgr->amount, n, ridx); in mgr_get_resource() 205 unsigned int amount, struct hw *hw) in rsc_mgr_init() 211 mgr->rscs = kzalloc(DIV_ROUND_UP(amount, 8), GFP_KERNEL); in rsc_mgr_init() 244 mgr->avail = mgr->amount = amount; in rsc_mgr_init() 286 mgr->avail = mgr->amount = 0; in rsc_mgr_uninit() 204 rsc_mgr_init(struct rsc_mgr *mgr, enum RSCTYP type, unsigned int amount, struct hw *hw) rsc_mgr_init() argument
|
/third_party/node/deps/icu-small/source/i18n/ |
H A D | curramt.cpp | 22 CurrencyAmount::CurrencyAmount(const Formattable& amount, ConstChar16Ptr isoCode, in CurrencyAmount() argument 24 Measure(amount, new CurrencyUnit(isoCode, ec), ec) { in CurrencyAmount() 27 CurrencyAmount::CurrencyAmount(double amount, ConstChar16Ptr isoCode, in CurrencyAmount() argument 29 Measure(Formattable(amount), new CurrencyUnit(isoCode, ec), ec) { in CurrencyAmount()
|
/third_party/curl/src/ |
H A D | tool_urlglob.c | 67 static int multiply(curl_off_t *amount, curl_off_t with) in multiply() argument 70 DEBUGASSERT(*amount >= 0); in multiply() 72 if((with <= 0) || (*amount <= 0)) { in multiply() 78 if(__builtin_mul_overflow(*amount, with, &sum)) in multiply() 81 sum = *amount * with; in multiply() 82 if(sum/with != *amount) in multiply() 86 *amount = sum; in multiply() 91 size_t *posp, curl_off_t *amount, in glob_set() 127 if(multiply(amount, pat->content.Set.size + 1)) in glob_set() 186 size_t *posp, curl_off_t *amount, in glob_range() 90 glob_set(struct URLGlob *glob, char **patternp, size_t *posp, curl_off_t *amount, int globindex) glob_set() argument 185 glob_range(struct URLGlob *glob, char **patternp, size_t *posp, curl_off_t *amount, int globindex) glob_range() argument 373 glob_parse(struct URLGlob *glob, char *pattern, size_t pos, curl_off_t *amount) glob_parse() argument 459 curl_off_t amount = 0; glob_url() local [all...] |