/third_party/ltp/testcases/kernel/controllers/cpuset/cpuset_lib/ |
H A D | bitmask.h | 2 * bitmask header file 30 * ==== Allocate and free `struct bitmask *` 32 * bitmask_alloc(n): Allocate a new struct bitmask with a size of n bits 33 * bitmask_free(bmp): Free struct bitmask 45 * bitmask_setall(bmp): Set all bits in bitmask: bmp = ~0 46 * bitmask_clearall(bmp): Clear all bits in bitmask: bmp = 0 55 * bitmask_nbits(bmp): Size in bits of entire bitmask 67 * bitmask_setbit(bmp, i): Set a single bit i in bitmask 68 * bitmask_clearbit(bmp, i): Clear a single bit i in bitmask 73 * bitmask_subset(bmp1, bmp2): True if first bitmask i [all...] |
H A D | libbitmask.c | 2 * bitmask user library implementation. 30 #include "bitmask.h" 33 struct bitmask { struct 58 /* Return the value (0 or 1) of bit n in bitmask bmp */ 59 static unsigned int _getbit(const struct bitmask *bmp, unsigned int n) in _getbit() 67 /* Set bit n in bitmask bmp to value v (0 or 1) */ 68 static void _setbit(struct bitmask *bmp, unsigned int n, unsigned int v) in _setbit() 80 * Allocate and free `struct bitmask *` 83 /* Allocate a new `struct bitmask` with a size of n bits */ 84 struct bitmask *bitmask_allo [all...] |
H A D | cpuset.h | 51 * cpuset_cpus_nbits() - Number of bits in a CPU bitmask on current system 52 * cpuset_mems_nbits() - Number of bits in a Memory bitmask on current system 56 * cpuset_setcpus(cp, cpus) - Set CPUs in cpuset cp to bitmask cpus 57 * cpuset_setmems(cp, mems) - Set Memory Nodes in cpuset cp to bitmask mems 63 * cpuset_getcpus(cp, cpus) - Write CPUs in cpuset cp to bitmask cpus 64 * cpuset_getmems(cp, mems) - Write Memory Nodes in cpuset cp to bitmask mems 178 struct bitmask; 191 int cpuset_setcpus(struct cpuset *cp, const struct bitmask *cpus); 192 int cpuset_setmems(struct cpuset *cp, const struct bitmask *mems); 201 int cpuset_getcpus(const struct cpuset *cp, struct bitmask *cpu [all...] |
H A D | cpuinfo.h | 9 struct bitmask *sched_domain; 15 extern struct bitmask **domains; 18 extern int online_cpumask(struct bitmask *cpumask); 19 extern int present_cpumask(struct bitmask *cpumask);
|
H A D | meminfo.c | 5 #include "bitmask.h" 16 * get the bitmask of the online nodes 21 int online_memmask(struct bitmask *memmask) in online_memmask() 52 * get the bitmask of the present nodes including offline nodes 57 int present_memmask(struct bitmask *memmask) in present_memmask() 92 struct bitmask *bmp = NULL; in get_nmems() 95 /* get the bitmask's len */ in get_nmems() 102 /* allocate the space for bitmask */ in get_nmems()
|
H A D | meminfo.h | 7 extern int online_memmask(struct bitmask *memmask); 8 extern int present_memmask(struct bitmask *memmask);
|
H A D | cpuinfo.c | 10 #include "bitmask.h" 83 * get the cpu bitmask of the online processors 88 int online_cpumask(struct bitmask *cpumask) in online_cpumask() 124 * get the cpu bitmask of the present processors including offline CPUs 129 int present_cpumask(struct bitmask *cpumask) in present_cpumask() 174 struct bitmask *bmp = NULL; in get_ncpus() 177 /* get the bitmask's len */ in get_ncpus() 182 /* allocate the space for bitmask */ in get_ncpus() 207 /* get the bitmask's len */ in get_sched_domains() 358 struct bitmask **domain [all...] |
H A D | libcpuset.c | 46 #include "bitmask.h" 70 struct bitmask *cpus; 71 struct bitmask *mems; 649 /* Number of bits in a CPU bitmask on current system */ 657 /* Number of bits in a Memory bitmask on current system */ 665 /* Set CPUs in cpuset cp to bitmask cpus */ 666 int cpuset_setcpus(struct cpuset *cp, const struct bitmask *cpus) in cpuset_setcpus() 679 /* Set Memory Nodes in cpuset cp to bitmask mems */ 680 int cpuset_setmems(struct cpuset *cp, const struct bitmask *mems) in cpuset_setmems() 806 /* Write CPUs in cpuset cp (current task if cp == NULL) to bitmask cpu [all...] |
/third_party/cups-filters/filter/ |
H A D | imagetoraster.c | 1719 bitmask; /* Current mask for pixel */ in format_CMY() local 1748 bitmask = 64 >> (bitoffset & 7); in format_CMY() 1754 *ptr ^= bitmask; in format_CMY() 1755 bitmask >>= 1; in format_CMY() 1758 *ptr ^= bitmask; in format_CMY() 1759 bitmask >>= 1; in format_CMY() 1762 *ptr ^= bitmask; in format_CMY() 1764 if (bitmask > 1) in format_CMY() 1765 bitmask >>= 2; in format_CMY() 1768 bitmask in format_CMY() 2094 bitmask; /* Current mask for pixel */ format_CMYK() local 2485 bitmask; /* Current mask for pixel */ format_K() local 2607 bitmask; /* Current mask for pixel */ format_KCMY() local 3037 bitmask; /* Current mask for pixel */ format_KCMYcm() local 3207 bitmask; /* Current mask for pixel */ format_RGBA() local 3604 bitmask; /* Current mask for pixel */ format_W() local 3725 bitmask; /* Current mask for pixel */ format_YMC() local 4115 bitmask; /* Current mask for pixel */ format_YMCK() local [all...] |
/third_party/mesa3d/src/mesa/main/ |
H A D | light.c | 606 * Given a face and pname value (ala glColorMaterial), compute a bitmask 613 GLuint bitmask = 0; in _mesa_material_bitmask() local 615 /* Make a bitmask indicating what material attribute(s) we're updating */ in _mesa_material_bitmask() 618 bitmask |= MAT_BIT_FRONT_EMISSION | MAT_BIT_BACK_EMISSION; in _mesa_material_bitmask() 621 bitmask |= MAT_BIT_FRONT_AMBIENT | MAT_BIT_BACK_AMBIENT; in _mesa_material_bitmask() 624 bitmask |= MAT_BIT_FRONT_DIFFUSE | MAT_BIT_BACK_DIFFUSE; in _mesa_material_bitmask() 627 bitmask |= MAT_BIT_FRONT_SPECULAR | MAT_BIT_BACK_SPECULAR; in _mesa_material_bitmask() 630 bitmask |= MAT_BIT_FRONT_SHININESS | MAT_BIT_BACK_SHININESS; in _mesa_material_bitmask() 633 bitmask |= MAT_BIT_FRONT_AMBIENT | MAT_BIT_BACK_AMBIENT; in _mesa_material_bitmask() 634 bitmask | in _mesa_material_bitmask() 770 GLbitfield bitmask = ctx->Light._ColorMaterialBitmask; _mesa_update_color_material() local 788 GLuint bitmask; _mesa_ColorMaterial() local [all...] |
H A D | light.h | 48 GLuint bitmask );
|
/third_party/eudev/src/udev/ |
H A D | udev-builtin-input_id.c | 85 * Read a capability attribute and return bitmask. 88 * @param bitmask: Output array which has a sizeof of bitmask_size 92 unsigned long *bitmask, size_t bitmask_size, in get_cap_mask() 107 memzero(bitmask, bitmask_size); in get_cap_mask() 112 bitmask[i] = val; in get_cap_mask() 120 bitmask[i] = val; in get_cap_mask() 131 while (bitmask[val-1] == 0 && val > 0) in get_cap_mask() 135 log_debug(text, i * BITS_PER_LONG, bitmask[i]); in get_cap_mask() 90 get_cap_mask(struct udev_device *dev, struct udev_device *pdev, const char* attr, unsigned long *bitmask, size_t bitmask_size, bool test) get_cap_mask() argument
|
/third_party/mesa3d/src/gallium/drivers/virgl/ |
H A D | virgl_screen.c | 552 assert(idx < ARRAY_SIZE(mask->bitmask)); in has_format_bit() 553 return (mask->bitmask[idx] & (1u << bit)) != 0; in has_format_bit() 586 if (!(vscreen->caps.caps.v1.vertexbuffer.bitmask[big] & (1 << small))) in virgl_is_vertex_format_supported() 611 uint32_t bitmask[16], in virgl_format_check_bitmask() 617 if ((bitmask[big] & (1 << small))) in virgl_format_check_bitmask() 634 if (bitmask[big] & (1 << small)) in virgl_format_check_bitmask() 645 vscreen->caps.caps.v2.scanout.bitmask, in virgl_has_scanout_format() 749 caps->v1.render.bitmask, in virgl_is_format_supported() 760 if (!virgl_format_check_bitmask(format, caps->v2.scanout.bitmask, false)) in virgl_is_format_supported() 807 caps->v1.sampler.bitmask, in virgl_is_format_supported() 610 virgl_format_check_bitmask(enum pipe_format format, uint32_t bitmask[16], bool may_emulate_bgra) virgl_format_check_bitmask() argument [all...] |
/third_party/glslang/SPIRV/ |
H A D | doc.h | 202 ceiling(0), bitmask(false), getName(nullptr), enumParams(nullptr), operandParams(nullptr) { } in EnumDefinition() 207 bitmask = mask; in set() 212 bool bitmask; // true if these enumerants combine into a bitmask member in spv::EnumDefinition
|
/third_party/node/deps/openssl/openssl/ssl/statem/ |
H A D | statem_dtls.c | 23 #define RSMBLY_BITMASK_MARK(bitmask, start, end) { \ 26 for (ii = (start); ii < (end); ii++) bitmask[((ii) >> 3)] |= (1 << ((ii) & 7)); \ 29 bitmask[((start) >> 3)] |= bitmask_start_values[((start) & 7)]; \ 30 for (ii = (((start) >> 3) + 1); ii < ((((end) - 1)) >> 3); ii++) bitmask[ii] = 0xff; \ 31 bitmask[(((end) - 1) >> 3)] |= bitmask_end_values[((end) & 7)]; \ 34 #define RSMBLY_BITMASK_IS_COMPLETE(bitmask, msg_len, is_complete) { \ 37 if (bitmask[(((msg_len) - 1) >> 3)] != bitmask_end_values[((msg_len) & 7)]) is_complete = 0; \ 39 if (bitmask[ii] != 0xff) { is_complete = 0; break; } } 60 unsigned char *bitmask = NULL; in dtls1_hm_fragment_new() local 78 /* Initialize reassembly bitmask i in dtls1_hm_fragment_new() [all...] |
/third_party/openssl/ssl/statem/ |
H A D | statem_dtls.c | 23 #define RSMBLY_BITMASK_MARK(bitmask, start, end) { \ 26 for (ii = (start); ii < (end); ii++) bitmask[((ii) >> 3)] |= (1 << ((ii) & 7)); \ 29 bitmask[((start) >> 3)] |= bitmask_start_values[((start) & 7)]; \ 30 for (ii = (((start) >> 3) + 1); ii < ((((end) - 1)) >> 3); ii++) bitmask[ii] = 0xff; \ 31 bitmask[(((end) - 1) >> 3)] |= bitmask_end_values[((end) & 7)]; \ 34 #define RSMBLY_BITMASK_IS_COMPLETE(bitmask, msg_len, is_complete) { \ 37 if (bitmask[(((msg_len) - 1) >> 3)] != bitmask_end_values[((msg_len) & 7)]) is_complete = 0; \ 39 if (bitmask[ii] != 0xff) { is_complete = 0; break; } } 60 unsigned char *bitmask = NULL; in dtls1_hm_fragment_new() local 78 /* Initialize reassembly bitmask i in dtls1_hm_fragment_new() [all...] |
/third_party/ltp/testcases/kernel/syscalls/mbind/ |
H A D | mbind01.c | 32 static struct bitmask *nodemask, *getnodemask, *empty_nodemask; 47 struct bitmask **exp_nodemask; 229 struct bitmask *exp_mask = *(tc->exp_nodemask); in do_test()
|
/third_party/ltp/testcases/kernel/syscalls/get_mempolicy/ |
H A D | get_mempolicy01.c | 38 static struct bitmask *nodemask, *getnodemask, *empty_nodemask; 47 struct bitmask **exp_nodemask; 193 struct bitmask *exp_mask = *(tc->exp_nodemask); in do_test()
|
H A D | get_mempolicy02.c | 34 static struct bitmask *nodemask;
|
/third_party/skia/third_party/externals/spirv-headers/tools/buildHeaders/ |
H A D | jsonToSpirv.h | 227 desc(0), bitmask(false), enumValues(nullptr) { } in EnumDefinition() 231 bitmask = mask; in set() 253 bool bitmask; // true if these enumerants combine into a bitmask member in spv::EnumDefinition
|
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Headers/tools/buildHeaders/ |
H A D | jsonToSpirv.h | 227 desc(0), bitmask(false), enumValues(nullptr) { } in EnumDefinition() 231 bitmask = mask; in set() 253 bool bitmask; // true if these enumerants combine into a bitmask member in spv::EnumDefinition
|
/third_party/curl/docs/cmdline-opts/ |
H A D | gen.pl | 743 my $bitmask = ' '; 753 $bitmask .= 'CURLHELP_' . uc $categories[$i]; 756 $bitmask .= ' | '; 759 $bitmask =~ s/(?=.{76}).{1,76}\|/$&\n /g; 767 my $line = sprintf " {\"%s\",\n \"%s\",\n %s},\n", $opt, $desc, $bitmask;
|
/third_party/spirv-headers/tools/buildHeaders/ |
H A D | jsonToSpirv.h | 239 desc(0), bitmask(false), enumValues(nullptr) { } in EnumDefinition() 243 bitmask = mask; in set() 265 bool bitmask; // true if these enumerants combine into a bitmask member in spv::EnumDefinition
|
/third_party/curl/lib/ |
H A D | version.c | 432 #define FEATURE(name, present, bitmask) {(name), (present), (bitmask)} 437 int bitmask; member 540 0, /* features bitmask is built at run-time */ 666 /* Get available features, build bitmask and names array. */ in curl_version_info() 670 features |= p->bitmask; in curl_version_info()
|
H A D | asyn-ares.c | 326 int bitmask; in waitperform() local 332 bitmask = ares_getsock((ares_channel)data->state.async.resolver, socks, in waitperform() 338 if(ARES_GETSOCK_READABLE(bitmask, i)) { in waitperform() 342 if(ARES_GETSOCK_WRITABLE(bitmask, i)) { in waitperform()
|