Home
last modified time | relevance | path

Searched refs:bitmask (Results 1 – 25 of 224) sorted by relevance

123456789

/third_party/ltp/testcases/kernel/controllers/cpuset/cpuset_lib/
Dbitmask.h146 struct bitmask;
148 struct bitmask *bitmask_alloc(unsigned int n);
149 void bitmask_free(struct bitmask *bmp);
151 int bitmask_displayhex(char *buf, int len, const struct bitmask *bmp);
152 int bitmask_displaylist(char *buf, int len, const struct bitmask *bmp);
153 int bitmask_parsehex(const char *buf, struct bitmask *bmp);
154 int bitmask_parselist(const char *buf, struct bitmask *bmp);
156 struct bitmask *bitmask_copy(struct bitmask *bmp1, const struct bitmask *bmp2);
157 struct bitmask *bitmask_setall(struct bitmask *bmp);
158 struct bitmask *bitmask_clearall(struct bitmask *bmp);
[all …]
Dlibbitmask.c33 struct bitmask { struct
59 static unsigned int _getbit(const struct bitmask *bmp, unsigned int n) in _getbit()
68 static void _setbit(struct bitmask *bmp, unsigned int n, unsigned int v) in _setbit()
84 struct bitmask *bitmask_alloc(unsigned int n) in bitmask_alloc()
86 struct bitmask *bmp; in bitmask_alloc()
101 void bitmask_free(struct bitmask *bmp) in bitmask_free()
126 int bitmask_displayhex(char *buf, int buflen, const struct bitmask *bmp) in bitmask_displayhex()
185 int bitmask_displaylist(char *buf, int buflen, const struct bitmask *bmp) in bitmask_displaylist()
220 int bitmask_parsehex(const char *buf, struct bitmask *bmp) in bitmask_parsehex()
299 int bitmask_parselist(const char *buf, struct bitmask *bmp) in bitmask_parselist()
[all …]
Dcpuset.h178 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 *cpus);
202 int cpuset_getmems(const struct cpuset *cp, struct bitmask *mems);
208 int cpuset_localcpus(const struct bitmask *mems, struct bitmask *cpus);
209 int cpuset_localmems(const struct bitmask *cpus, struct bitmask *mems);
Dcpuinfo.h9 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);
Dmeminfo.c21 int online_memmask(struct bitmask *memmask) in online_memmask()
57 int present_memmask(struct bitmask *memmask) in present_memmask()
92 struct bitmask *bmp = NULL; in get_nmems()
Dmeminfo.h7 extern int online_memmask(struct bitmask *memmask);
8 extern int present_memmask(struct bitmask *memmask);
/third_party/iptables/extensions/
Dlibxt_physdev.c51 info->bitmask |= XT_PHYSDEV_OP_IN; in physdev_parse()
58 info->bitmask |= XT_PHYSDEV_OP_OUT; in physdev_parse()
61 info->bitmask |= XT_PHYSDEV_OP_ISIN; in physdev_parse()
66 info->bitmask |= XT_PHYSDEV_OP_ISOUT; in physdev_parse()
73 info->bitmask |= XT_PHYSDEV_OP_BRIDGED; in physdev_parse()
90 if (info->bitmask & XT_PHYSDEV_OP_ISIN) in physdev_print()
93 if (info->bitmask & XT_PHYSDEV_OP_IN) in physdev_print()
97 if (info->bitmask & XT_PHYSDEV_OP_ISOUT) in physdev_print()
100 if (info->bitmask & XT_PHYSDEV_OP_OUT) in physdev_print()
103 if (info->bitmask & XT_PHYSDEV_OP_BRIDGED) in physdev_print()
[all …]
Dlibebt_arp.c191 arpinfo->bitmask |= EBT_ARP_OPCODE; in brarp_parse()
206 arpinfo->bitmask |= EBT_ARP_HTYPE; in brarp_parse()
228 arpinfo->bitmask |= EBT_ARP_PTYPE; in brarp_parse()
238 arpinfo->bitmask |= EBT_ARP_SRC_IP; in brarp_parse()
243 arpinfo->bitmask |= EBT_ARP_DST_IP; in brarp_parse()
259 arpinfo->bitmask |= EBT_ARP_SRC_MAC; in brarp_parse()
264 arpinfo->bitmask |= EBT_ARP_DST_MAC; in brarp_parse()
277 arpinfo->bitmask |= EBT_ARP_GRAT; in brarp_parse()
291 if (arpinfo->bitmask & EBT_ARP_OPCODE) { in brarp_print()
301 if (arpinfo->bitmask & EBT_ARP_HTYPE) { in brarp_print()
[all …]
Dlibebt_ip.c44 __u8 bitmask; member
169 info->bitmask = 0; in brip_init()
393 info->bitmask |= EBT_IP_SOURCE; in brip_parse()
399 info->bitmask |= EBT_IP_DEST; in brip_parse()
405 info->bitmask |= EBT_IP_SPORT; in brip_parse()
411 info->bitmask |= EBT_IP_DPORT; in brip_parse()
418 info->bitmask |= EBT_IP_ICMP; in brip_parse()
425 info->bitmask |= EBT_IP_IGMP; in brip_parse()
436 info->bitmask |= EBT_IP_TOS; in brip_parse()
443 info->bitmask |= EBT_IP_PROTO; in brip_parse()
[all …]
Dlibebt_ip6.c243 ipinfo->bitmask = 0; in brip6_init()
340 info->bitmask |= EBT_IP6_SOURCE; in brip6_parse()
346 info->bitmask |= EBT_IP6_DEST; in brip6_parse()
352 info->bitmask |= EBT_IP6_SPORT; in brip6_parse()
358 info->bitmask |= EBT_IP6_DPORT; in brip6_parse()
365 info->bitmask |= EBT_IP6_ICMP6; in brip6_parse()
373 info->bitmask |= EBT_IP6_TCLASS; in brip6_parse()
379 info->bitmask |= EBT_IP6_PROTO; in brip6_parse()
385 *flags |= info->bitmask; in brip6_parse()
401 if (ipinfo->bitmask & EBT_IP6_SOURCE) { in brip6_print()
[all …]
Dlibebt_vlan.c71 vlaninfo->bitmask |= EBT_VLAN_ID; in brvlan_parse()
81 vlaninfo->bitmask |= EBT_VLAN_PRIO; in brvlan_parse()
97 vlaninfo->bitmask |= EBT_VLAN_ENCAP; in brvlan_parse()
111 if (vlaninfo->bitmask & EBT_VLAN_ID) { in brvlan_print()
114 if (vlaninfo->bitmask & EBT_VLAN_PRIO) { in brvlan_print()
117 if (vlaninfo->bitmask & EBT_VLAN_ENCAP) { in brvlan_print()
128 if (vlaninfo->bitmask & EBT_VLAN_ID) in brvlan_xlate()
131 if (vlaninfo->bitmask & EBT_VLAN_PRIO) in brvlan_xlate()
134 if (vlaninfo->bitmask & EBT_VLAN_ENCAP) in brvlan_xlate()
Dlibebt_log.c90 loginfo->bitmask = 0; in brlog_init()
136 loginfo->bitmask |= log_chk_inv(invert, EBT_LOG_IP, "-ip"); in brlog_parse()
139 loginfo->bitmask |= log_chk_inv(invert, EBT_LOG_ARP, "-arp"); in brlog_parse()
142 loginfo->bitmask |= log_chk_inv(invert, 0, ""); in brlog_parse()
145 loginfo->bitmask |= log_chk_inv(invert, EBT_LOG_IP6, "-ip6"); in brlog_parse()
151 *flags |= loginfo->bitmask; in brlog_parse()
168 if (loginfo->bitmask & EBT_LOG_IP) in brlog_print()
170 if (loginfo->bitmask & EBT_LOG_ARP) in brlog_print()
172 if (loginfo->bitmask & EBT_LOG_IP6) in brlog_print()
Dlibxt_ipvs.c78 data->bitmask |= XT_IPVS_DIR; in ipvs_mt_parse()
81 data->bitmask |= XT_IPVS_DIR; in ipvs_mt_parse()
100 data->bitmask |= 1 << cb->entry->id; in ipvs_mt_parse()
112 if (info->bitmask & XT_IPVS_ONCE_MASK) { in ipvs_mt_check()
117 info->bitmask |= XT_IPVS_IPVS_PROPERTY; in ipvs_mt_check()
159 if (data->bitmask == XT_IPVS_IPVS_PROPERTY) { in ipvs_mt_dump()
165 if (data->bitmask & XT_IPVS_PROTO) { in ipvs_mt_dump()
171 if (data->bitmask & XT_IPVS_VADDR) { in ipvs_mt_dump()
179 if (data->bitmask & XT_IPVS_VPORT) { in ipvs_mt_dump()
186 if (data->bitmask & XT_IPVS_DIR) { in ipvs_mt_dump()
[all …]
Dlibebt_802_3.c44 info->bitmask = 0; in br802_3_init()
65 info->bitmask |= EBT_802_3_SAP; in br802_3_parse()
77 info->bitmask |= EBT_802_3_TYPE; in br802_3_parse()
83 *flags |= info->bitmask; in br802_3_parse()
100 if (info->bitmask & EBT_802_3_SAP) { in br802_3_print()
106 if (info->bitmask & EBT_802_3_TYPE) { in br802_3_print()
Dlibebt_mark_m.c40 info->bitmask = 0; in brmark_m_init()
57 info->bitmask = EBT_MARK_AND; in brmark_m_parse()
60 info->bitmask = EBT_MARK_OR; in brmark_m_parse()
73 *flags |= info->bitmask; in brmark_m_parse()
92 if (info->bitmask == EBT_MARK_OR) in brmark_m_print()
111 if (info->bitmask == EBT_MARK_OR) { in brmark_m_xlate()
/third_party/mindspore/mindspore/ccsrc/minddata/dataset/util/
Dnuma_interface.cc82 auto numa_allocate_nodemask = (struct bitmask * (*)(void))(numa_allocate_nodemask_func); in NumaBind()
83 auto numa_bitmask_clearall = (struct bitmask * (*)(struct bitmask *))(numa_bitmask_clearall_func); in NumaBind()
84 …auto numa_bitmask_setbit = (struct bitmask * (*)(struct bitmask *, unsigned int))(numa_bitmask_set… in NumaBind()
85 auto numa_bind = (void (*)(struct bitmask *))(numa_bind_func); in NumaBind()
86 auto numa_bitmask_free = (void (*)(struct bitmask *))(numa_bitmask_free_func); in NumaBind()
/third_party/wayland-ivi-extension/ivi-layermanagement-examples/LayerManagerControl/src/
Dinput_commands.cpp87 ilmInputDevice bitmask = 0; variable
96 bitmask |= ILM_INPUT_DEVICE_POINTER;
98 bitmask |= ILM_INPUT_DEVICE_KEYBOARD;
100 bitmask |= ILM_INPUT_DEVICE_TOUCH;
102 bitmask |= ILM_INPUT_DEVICE_ALL;
108 ilm_setInputFocus(surfaceIDs, num_surfaces, bitmask, is_set);
155 ilmInputDevice bitmask; variable
157 ilm_getInputDeviceCapabilities((char*)input->getString("name").c_str(), &bitmask);
164 if (bitmask & ILM_INPUT_DEVICE_POINTER)
166 if (bitmask & ILM_INPUT_DEVICE_KEYBOARD)
[all …]
/third_party/e2fsprogs/util/
Dmkutf8data.c420 unsigned int bitmask; in tree_walk() local
447 bitmask = 1 << node->bitnum; in tree_walk()
448 if ((leftmask & bitmask) == 0) { in tree_walk()
449 leftmask |= bitmask; in tree_walk()
462 if ((rightmask & bitmask) == 0) { in tree_walk()
463 rightmask |= bitmask; in tree_walk()
476 leftmask &= ~bitmask; in tree_walk()
477 rightmask &= ~bitmask; in tree_walk()
662 unsigned int bitmask; in prune() local
744 bitmask = 1 << node->bitnum; in prune()
[all …]
/third_party/mesa3d/src/mesa/main/
Dlight.c621 GLuint bitmask = 0; in _mesa_material_bitmask() local
626 bitmask |= MAT_BIT_FRONT_EMISSION | MAT_BIT_BACK_EMISSION; in _mesa_material_bitmask()
629 bitmask |= MAT_BIT_FRONT_AMBIENT | MAT_BIT_BACK_AMBIENT; in _mesa_material_bitmask()
632 bitmask |= MAT_BIT_FRONT_DIFFUSE | MAT_BIT_BACK_DIFFUSE; in _mesa_material_bitmask()
635 bitmask |= MAT_BIT_FRONT_SPECULAR | MAT_BIT_BACK_SPECULAR; in _mesa_material_bitmask()
638 bitmask |= MAT_BIT_FRONT_SHININESS | MAT_BIT_BACK_SHININESS; in _mesa_material_bitmask()
641 bitmask |= MAT_BIT_FRONT_AMBIENT | MAT_BIT_BACK_AMBIENT; in _mesa_material_bitmask()
642 bitmask |= MAT_BIT_FRONT_DIFFUSE | MAT_BIT_BACK_DIFFUSE; in _mesa_material_bitmask()
645 bitmask |= MAT_BIT_FRONT_INDEXES | MAT_BIT_BACK_INDEXES; in _mesa_material_bitmask()
653 bitmask &= FRONT_MATERIAL_BITS; in _mesa_material_bitmask()
[all …]
/third_party/wayland-ivi-extension/ivi-layermanagement-api/ilmInput/src/
Dilm_input.c174 ilm_getInputDevices(ilmInputDevice bitmask, t_ilm_uint *num_seats, in ilm_getInputDevices() argument
201 if ((seat->capabilities & bitmask) == 0) in ilm_getInputDevices()
225 ilm_getInputDeviceCapabilities(t_ilm_string seat_name, ilmInputDevice *bitmask) in ilm_getInputDeviceCapabilities() argument
231 if ((seat_name == NULL) || (bitmask == NULL)) { in ilm_getInputDeviceCapabilities()
239 *bitmask = seat->capabilities; in ilm_getInputDeviceCapabilities()
250 ilmInputDevice bitmask, t_ilm_bool is_set) in ilm_setInputFocus() argument
261 if (bitmask & (ILM_INPUT_DEVICE_POINTER | ILM_INPUT_DEVICE_TOUCH) in ilm_setInputFocus()
287 bitmask, is_set); in ilm_setInputFocus()
/third_party/wayland-ivi-extension/ivi-layermanagement-api/test/
Dilm_input_null_pointer_test.cpp133 ilmInputDevice bitmask = ILM_INPUT_DEVICE_POINTER; in TEST_F() local
138 EXPECT_EQ(ILM_FAILED, ilm_getInputDevices(bitmask, &num_seats, in TEST_F()
141 EXPECT_EQ(ILM_FAILED, ilm_getInputDevices(bitmask, NULL, in TEST_F()
149 ilmInputDevice bitmask; in TEST_F() local
151 EXPECT_EQ(ILM_FAILED, ilm_getInputDeviceCapabilities(NULL, &bitmask)); in TEST_F()
/third_party/wayland-ivi-extension/ivi-layermanagement-api/ilmInput/include/
Dilm_input.h72 ilm_getInputDevices(ilmInputDevice bitmask, t_ilm_uint *num_seats,
83 ilm_getInputDeviceCapabilities(t_ilm_string seat_name, ilmInputDevice* bitmask);
101 ilmInputDevice bitmask, t_ilm_bool is_set);
/third_party/iptables/iptables/
Dnft-bridge.c127 if (fw->bitmask & EBT_ISOURCE) { in nft_bridge_add()
134 if (fw->bitmask & EBT_IDEST) { in nft_bridge_add()
141 if ((fw->bitmask & EBT_NOPROTO) == 0) { in nft_bridge_add()
227 fw->bitmask |= EBT_IDEST; in nft_bridge_parse_payload()
242 fw->bitmask |= EBT_ISOURCE; in nft_bridge_parse_payload()
249 fw->bitmask &= ~EBT_NOPROTO; in nft_bridge_parse_payload()
523 cs->eb.bitmask = EBT_NOPROTO; in nft_rule_to_ebtables_command_state()
583 static void print_protocol(uint16_t ethproto, bool invert, unsigned int bitmask) in print_protocol() argument
589 if (bitmask & EBT_NOPROTO) in print_protocol()
596 if (bitmask & EBT_802_3) { in print_protocol()
[all …]
/third_party/skia/third_party/externals/angle2/extensions/
DEGL_ANGLE_surface_orientation.txt54 New EGLConfig bitmask attribute name:
64 Valid bitfields in the EGL_OPTIMAL_SURFACE_ORIENTATION_ANGLE bitmask
65 attribute of EGLConfig and EGL_SURFACE_ORIENTATION_ANGLE bitmask attribute
79 EGL_OPTIMAL_SURFACE_ORIENTATION_ANGLE bitmask Optimal window surface
111 EGL_SURFACE_ORIENTATION_ANGLE bitmask Orientation of surface
/third_party/flutter/skia/third_party/externals/angle2/extensions/
DEGL_ANGLE_surface_orientation.txt54 New EGLConfig bitmask attribute name:
64 Valid bitfields in the EGL_OPTIMAL_SURFACE_ORIENTATION_ANGLE bitmask
65 attribute of EGLConfig and EGL_SURFACE_ORIENTATION_ANGLE bitmask attribute
79 EGL_OPTIMAL_SURFACE_ORIENTATION_ANGLE bitmask Optimal window surface
111 EGL_SURFACE_ORIENTATION_ANGLE bitmask Orientation of surface

123456789