Home
last modified time | relevance | path

Searched refs:invert (Results 1 – 25 of 388) sorted by relevance

12345678910>>...16

/kernel/linux/linux-5.10/net/netfilter/
Dxt_physdev.c37 !(info->invert & XT_PHYSDEV_OP_BRIDGED)) in physdev_mt()
40 !(info->invert & XT_PHYSDEV_OP_ISIN)) in physdev_mt()
43 !(info->invert & XT_PHYSDEV_OP_ISOUT)) in physdev_mt()
46 !(info->invert & XT_PHYSDEV_OP_IN)) in physdev_mt()
49 !(info->invert & XT_PHYSDEV_OP_OUT)) in physdev_mt()
59 (!!outdev ^ !(info->invert & XT_PHYSDEV_OP_BRIDGED))) in physdev_mt()
66 (!indev ^ !!(info->invert & XT_PHYSDEV_OP_ISIN))) || in physdev_mt()
68 (!outdev ^ !!(info->invert & XT_PHYSDEV_OP_ISOUT)))) in physdev_mt()
78 if (!ret ^ !(info->invert & XT_PHYSDEV_OP_IN)) in physdev_mt()
91 return (!!ret ^ !(info->invert & XT_PHYSDEV_OP_OUT)); in physdev_mt()
[all …]
Dxt_connlabel.c26 bool invert = info->options & XT_CONNLABEL_OP_INVERT; in connlabel_mt() local
30 return invert; in connlabel_mt()
34 return invert; in connlabel_mt()
37 return !invert; in connlabel_mt()
43 return !invert; in connlabel_mt()
46 return invert; in connlabel_mt()
Dxt_ipvs.c62 !!(data->invert & XT_IPVS_IPVS_PROPERTY); in ipvs_mt()
76 !(data->invert & XT_IPVS_PROTO)) { in ipvs_mt()
103 !(data->invert & XT_IPVS_VPORT)) { in ipvs_mt()
111 !(data->invert & XT_IPVS_VPORTCTL)) { in ipvs_mt()
126 !!(data->invert & XT_IPVS_DIR)) { in ipvs_mt()
134 !(data->invert & XT_IPVS_METHOD)) { in ipvs_mt()
142 !(data->invert & XT_IPVS_VADDR)) { in ipvs_mt()
Dxt_multiport.c45 return true ^ minfo->invert; in ports_match_v1()
49 return true ^ minfo->invert; in ports_match_v1()
54 return true ^ minfo->invert; in ports_match_v1()
66 return true ^ minfo->invert; in ports_match_v1()
70 return true ^ minfo->invert; in ports_match_v1()
74 return true ^ minfo->invert; in ports_match_v1()
82 return minfo->invert; in ports_match_v1()
Dnft_connlimit.c19 bool invert; member
53 if ((count > priv->limit) ^ priv->invert) { in nft_connlimit_do_eval()
63 bool invert = false; in nft_connlimit_do_init() local
76 invert = true; in nft_connlimit_do_init()
81 priv->invert = invert; in nft_connlimit_do_init()
98 if (priv->invert && in nft_connlimit_do_dump()
205 priv_dst->invert = priv_src->invert; in nft_connlimit_clone()
Dxt_ecn.c41 if (einfo->invert & XT_ECN_OP_MATCH_ECE) { in match_tcp()
51 if (einfo->invert & XT_ECN_OP_MATCH_CWR) { in match_tcp()
67 !!(einfo->invert & XT_ECN_OP_MATCH_IP); in match_ip()
92 if (info->invert & XT_ECN_OP_MATCH_MASK) in ecn_mt_check4()
109 !!(einfo->invert & XT_ECN_OP_MATCH_IP); in match_ipv6()
134 if (info->invert & XT_ECN_OP_MATCH_MASK) in ecn_mt_check6()
Dxt_tcpudp.c26 port_match(u_int16_t min, u_int16_t max, u_int16_t port, bool invert) in port_match() argument
28 return (port >= min && port <= max) ^ invert; in port_match()
36 bool invert, in tcp_find_option() argument
47 return invert; in tcp_find_option()
58 if (op[i] == option) return !invert; in tcp_find_option()
63 return invert; in tcp_find_option()
Dxt_dscp.c30 return (dscp == info->dscp) ^ !!info->invert; in dscp_mt()
39 return (dscp == info->dscp) ^ !!info->invert; in dscp_mt6()
58 info->tos_value) ^ !!info->invert; in tos_mt()
61 info->tos_value) ^ !!info->invert; in tos_mt()
Dxt_owner.c71 return (info->match ^ info->invert) == 0; in owner_mt()
72 else if (info->match & info->invert & XT_OWNER_SOCKET) in owner_mt()
81 return ((info->match ^ info->invert) & in owner_mt()
89 !(info->invert & XT_OWNER_UID)) in owner_mt()
115 if (match ^ !(info->invert & XT_OWNER_GID)) in owner_mt()
/kernel/linux/linux-5.10/sound/pci/ac97/
Dac97_patch.h10 #define AC97_SINGLE_VALUE(reg,shift,mask,invert) \ argument
12 ((invert) << 24))
13 #define AC97_PAGE_SINGLE_VALUE(reg,shift,mask,invert,page) \ argument
14 (AC97_SINGLE_VALUE(reg,shift,mask,invert) | (1<<25) | ((page) << 26))
15 #define AC97_SINGLE(xname, reg, shift, mask, invert) \ argument
19 .private_value = AC97_SINGLE_VALUE(reg, shift, mask, invert) }
20 #define AC97_PAGE_SINGLE(xname, reg, shift, mask, invert, page) \ argument
24 .private_value = AC97_PAGE_SINGLE_VALUE(reg, shift, mask, invert, page) }
25 #define AC97_DOUBLE(xname, reg, shift_left, shift_right, mask, invert) \ argument
29 ….private_value = (reg) | ((shift_left) << 8) | ((shift_right) << 12) | ((mask) << 16) | ((invert) …
/kernel/linux/linux-5.10/drivers/leds/trigger/
Dledtrig-backlight.c25 unsigned invert; member
48 if ((n->old_status == UNBLANK) ^ n->invert) { in fb_notifier_callback()
65 return sprintf(buf, "%u\n", n->invert); in bl_trig_invert_show()
73 unsigned long invert; in bl_trig_invert_store() local
76 ret = kstrtoul(buf, 10, &invert); in bl_trig_invert_store()
80 if (invert > 1) in bl_trig_invert_store()
83 n->invert = invert; in bl_trig_invert_store()
86 if ((n->old_status == BLANK) ^ n->invert) in bl_trig_invert_store()
Dledtrig-heartbeat.c29 unsigned int invert; member
65 if (!heartbeat_data->invert) in led_heartbeat_function()
71 if (heartbeat_data->invert) in led_heartbeat_function()
77 if (!heartbeat_data->invert) in led_heartbeat_function()
84 if (heartbeat_data->invert) in led_heartbeat_function()
99 return sprintf(buf, "%u\n", heartbeat_data->invert); in led_invert_show()
114 heartbeat_data->invert = !!state; in led_invert_store()
119 static DEVICE_ATTR(invert, 0644, led_invert_show, led_invert_store);
Dledtrig-oneshot.c22 unsigned int invert; member
33 oneshot_data->invert); in led_shot()
43 return sprintf(buf, "%u\n", oneshot_data->invert); in led_invert_show()
58 oneshot_data->invert = !!state; in led_invert_store()
60 if (oneshot_data->invert) in led_invert_store()
118 static DEVICE_ATTR(invert, 0644, led_invert_show, led_invert_store);
/kernel/linux/linux-5.10/drivers/iio/adc/
Denvelope-detector.c60 bool invert; member
142 env->level = (env->high + env->low + !env->invert) / 2; in envelope_detector_setup_compare()
150 ret = iio_write_channel_raw(env->dac, env->invert ? 0 : env->dac_max); in envelope_detector_setup_compare()
178 if (!envelope_detector_comp_latch(env) ^ !env->invert) in envelope_detector_timeout()
207 env->high = env->dac_max + env->invert; in envelope_detector_read_raw()
208 env->low = -1 + env->invert; in envelope_detector_read_raw()
215 *val = env->invert ? env->dac_max - env->level : env->level; in envelope_detector_read_raw()
237 return sprintf(buf, "%u\n", env->invert); in envelope_show_invert()
246 unsigned long invert; in envelope_store_invert() local
250 ret = kstrtoul(buf, 0, &invert); in envelope_store_invert()
[all …]
/kernel/linux/linux-5.10/net/bridge/netfilter/
Debt_mark_m.c22 return !!(skb->mark & info->mask) ^ info->invert; in ebt_mark_mt()
23 return ((skb->mark & info->mask) == info->mark) ^ info->invert; in ebt_mark_mt()
43 uint8_t invert, bitmask; member
53 kern->invert = user->invert; in mark_mt_compat_from_user()
64 put_user(kern->invert, &user->invert) || in mark_mt_compat_to_user()
Debt_pkttype.c21 return (skb->pkt_type == info->pkt_type) ^ info->invert; in ebt_pkttype_mt()
28 if (info->invert != 0 && info->invert != 1) in ebt_pkttype_mt_check()
/kernel/linux/linux-5.10/sound/soc/
Dsoc-ops.c250 unsigned int invert = mc->invert; in snd_soc_get_volsw() local
262 if (invert) in snd_soc_get_volsw()
277 if (invert) in snd_soc_get_volsw()
310 unsigned int invert = mc->invert; in snd_soc_put_volsw() local
327 if (invert) in snd_soc_put_volsw()
340 if (invert) in snd_soc_put_volsw()
518 unsigned int invert = mc->invert; in snd_soc_put_volsw_range() local
530 if (invert) in snd_soc_put_volsw_range()
551 if (invert) in snd_soc_put_volsw_range()
591 unsigned int invert = mc->invert; in snd_soc_get_volsw_range() local
[all …]
/kernel/linux/linux-5.10/sound/soc/codecs/
Dtda7419.c131 unsigned int invert:1; member
158 unsigned int invert) in tda7419_vol_get_value() argument
162 if (invert) in tda7419_vol_get_value()
165 if (invert) in tda7419_vol_get_value()
188 unsigned int invert = tvc->invert; in tda7419_vol_get() local
193 tda7419_vol_get_value(val, mask, min, thresh, invert); in tda7419_vol_get()
198 tda7419_vol_get_value(val, mask, min, thresh, invert); in tda7419_vol_get()
205 unsigned int invert) in tda7419_vol_put_value() argument
208 if (invert) in tda7419_vol_put_value()
212 } else if ((val > 0) && invert) { in tda7419_vol_put_value()
[all …]
/kernel/linux/linux-5.10/include/sound/
Dwss.h162 #define WSS_SINGLE(xname, xindex, reg, shift, mask, invert) \ argument
169 .private_value = reg | (shift << 8) | (mask << 16) | (invert << 24) }
178 #define WSS_DOUBLE(xname, xindex, left_reg, right_reg, shift_left, shift_right, mask, invert) \ argument
186 (shift_right << 19) | (mask << 24) | (invert << 22) }
188 #define WSS_SINGLE_TLV(xname, xindex, reg, shift, mask, invert, xtlv) \ argument
196 .private_value = reg | (shift << 8) | (mask << 16) | (invert << 24), \
200 shift_left, shift_right, mask, invert, xtlv) \ argument
209 (shift_right << 19) | (mask << 24) | (invert << 22), \
/kernel/linux/linux-5.10/sound/isa/cs423x/
Dcs4236_lib.c380 #define CS4236_SINGLE(xname, xindex, reg, shift, mask, invert) \ argument
384 .private_value = reg | (shift << 8) | (mask << 16) | (invert << 24) }
386 #define CS4236_SINGLE_TLV(xname, xindex, reg, shift, mask, invert, xtlv) \ argument
391 .private_value = reg | (shift << 8) | (mask << 16) | (invert << 24), \
412 int invert = (kcontrol->private_value >> 24) & 0xff; in snd_cs4236_get_single() local
417 if (invert) in snd_cs4236_get_single()
429 int invert = (kcontrol->private_value >> 24) & 0xff; in snd_cs4236_put_single() local
434 if (invert) in snd_cs4236_put_single()
445 #define CS4236_SINGLEC(xname, xindex, reg, shift, mask, invert) \ argument
449 .private_value = reg | (shift << 8) | (mask << 16) | (invert << 24) }
[all …]
/kernel/linux/linux-5.10/sound/pci/
Dak4531_codec.c46 #define AK4531_SINGLE(xname, xindex, reg, shift, mask, invert) \ argument
50 .private_value = reg | (shift << 16) | (mask << 24) | (invert << 22) }
51 #define AK4531_SINGLE_TLV(xname, xindex, reg, shift, mask, invert, xtlv) \ argument
57 .private_value = reg | (shift << 16) | (mask << 24) | (invert << 22), \
77 int invert = (kcontrol->private_value >> 22) & 1; in snd_ak4531_get_single() local
83 if (invert) { in snd_ak4531_get_single()
96 int invert = (kcontrol->private_value >> 22) & 1; in snd_ak4531_put_single() local
101 if (invert) { in snd_ak4531_put_single()
113 #define AK4531_DOUBLE(xname, xindex, left_reg, right_reg, left_shift, right_shift, mask, invert) \ argument
117 …reg | (right_reg << 8) | (left_shift << 16) | (right_shift << 19) | (mask << 24) | (invert << 22) }
[all …]
/kernel/linux/linux-5.10/net/ipv4/netfilter/
Dipt_rpfilter.c59 bool invert; in rpfilter_mt() local
62 invert = info->flags & XT_RPFILTER_INVERT; in rpfilter_mt()
65 return true ^ invert; in rpfilter_mt()
71 return true ^ invert; in rpfilter_mt()
83 return rpfilter_lookup_reverse(xt_net(par), &flow, xt_in(par), info->flags) ^ invert; in rpfilter_mt()
/kernel/linux/linux-5.10/drivers/macintosh/ams/
Dams-input.c22 static bool invert; variable
23 module_param(invert, bool, S_IWUSR | S_IRUGO);
24 MODULE_PARM_DESC(invert, "Invert input data on X and Y axis");
40 input_report_abs(idev, ABS_X, invert ? -x : x); in ams_idev_poll()
41 input_report_abs(idev, ABS_Y, invert ? -y : y); in ams_idev_poll()
/kernel/linux/linux-5.10/drivers/gpio/
Dgpio-regmap.c112 int invert, ret; in gpio_regmap_get_direction() local
116 invert = 0; in gpio_regmap_get_direction()
119 invert = 1; in gpio_regmap_get_direction()
132 if (!!(val & mask) ^ invert) in gpio_regmap_get_direction()
143 int invert, ret; in gpio_regmap_set_direction() local
147 invert = 0; in gpio_regmap_set_direction()
150 invert = 1; in gpio_regmap_set_direction()
159 if (invert) in gpio_regmap_set_direction()
/kernel/linux/linux-5.10/sound/isa/gus/
Dgus_mixer.c17 #define GF1_SINGLE(xname, xindex, shift, invert) \ argument
21 .private_value = shift | (invert << 8) }
29 int invert = (kcontrol->private_value >> 8) & 1; in snd_gf1_get_single() local
32 if (invert) in snd_gf1_get_single()
42 int invert = (kcontrol->private_value >> 8) & 1; in snd_gf1_put_single() local
47 if (invert) in snd_gf1_put_single()

12345678910>>...16