Home
last modified time | relevance | path

Searched refs:sbits (Results 1 – 12 of 12) sorted by relevance

/Linux-v5.15/net/xfrm/
Dxfrm_hash.h47 __u8 sbits) in __xfrm4_dpref_spref_hash() argument
50 ntohl(saddr->a4) & __bits2mask32(sbits), in __xfrm4_dpref_spref_hash()
78 __u8 sbits) in __xfrm6_dpref_spref_hash() argument
81 __xfrm6_pref_hash(saddr, sbits); in __xfrm6_dpref_spref_hash()
148 u8 dbits, u8 sbits) in __sel_hash() argument
157 sel->prefixlen_s < sbits) in __sel_hash()
160 h = __xfrm4_dpref_spref_hash(daddr, saddr, dbits, sbits); in __sel_hash()
165 sel->prefixlen_s < sbits) in __sel_hash()
168 h = __xfrm6_dpref_spref_hash(daddr, saddr, dbits, sbits); in __sel_hash()
179 u8 dbits, u8 sbits) in __addr_hash() argument
[all …]
Dxfrm_policy.c462 u8 *dbits, u8 *sbits) in __get_hash_thresh() argument
467 *sbits = net->xfrm.policy_bydst[dir].sbits4; in __get_hash_thresh()
472 *sbits = net->xfrm.policy_bydst[dir].sbits6; in __get_hash_thresh()
477 *sbits = 0; in __get_hash_thresh()
488 u8 sbits; in policy_hash_bysel() local
490 __get_hash_thresh(net, family, dir, &dbits, &sbits); in policy_hash_bysel()
491 hash = __sel_hash(sel, family, hmask, dbits, sbits); in policy_hash_bysel()
508 u8 sbits; in policy_hash_direct() local
510 __get_hash_thresh(net, family, dir, &dbits, &sbits); in policy_hash_direct()
511 hash = __addr_hash(daddr, saddr, family, hmask, dbits, sbits); in policy_hash_direct()
[all …]
/Linux-v5.15/sound/pci/ac97/
Dac97_pcm.c162 unsigned int sbits; in set_spdif_rate() local
201 sbits = ac97->spdif_status; in set_spdif_rate()
202 if (sbits & IEC958_AES0_PROFESSIONAL) { in set_spdif_rate()
203 sbits &= ~IEC958_AES0_PRO_FS; in set_spdif_rate()
205 case 44100: sbits |= IEC958_AES0_PRO_FS_44100; break; in set_spdif_rate()
206 case 48000: sbits |= IEC958_AES0_PRO_FS_48000; break; in set_spdif_rate()
207 case 32000: sbits |= IEC958_AES0_PRO_FS_32000; break; in set_spdif_rate()
210 sbits &= ~(IEC958_AES3_CON_FS << 24); in set_spdif_rate()
212 case 44100: sbits |= IEC958_AES3_CON_FS_44100<<24; break; in set_spdif_rate()
213 case 48000: sbits |= IEC958_AES3_CON_FS_48000<<24; break; in set_spdif_rate()
[all …]
/Linux-v5.15/include/linux/iio/common/
Dst_sensors.h53 ch2, s, endian, rbits, sbits, addr, ext) \ argument
65 .shift = sbits - rbits, \
66 .storagebits = sbits, \
73 ch2, s, endian, rbits, sbits, addr) \ argument
75 ch2, s, endian, rbits, sbits, addr, NULL)
/Linux-v5.15/drivers/regulator/
Dda9052-regulator.c286 #define DA9052_LDO(_id, _name, step, min, max, sbits, ebits, abits) \ argument
298 .vsel_mask = (1 << (sbits)) - 1,\
308 #define DA9052_DCDC(_id, _name, step, min, max, sbits, ebits, abits) \ argument
320 .vsel_mask = (1 << (sbits)) - 1,\
Dda9055-regulator.c361 #define DA9055_BUCK(_id, step, min, max, vbits, voffset, mbits, sbits) \ argument
396 .shift = (sbits),\
/Linux-v5.15/sound/pci/hda/
Dhda_codec.c2186 static unsigned short convert_from_spdif_status(unsigned int sbits) in convert_from_spdif_status() argument
2190 if (sbits & IEC958_AES0_PROFESSIONAL) in convert_from_spdif_status()
2192 if (sbits & IEC958_AES0_NONAUDIO) in convert_from_spdif_status()
2194 if (sbits & IEC958_AES0_PROFESSIONAL) { in convert_from_spdif_status()
2195 if ((sbits & IEC958_AES0_PRO_EMPHASIS) == in convert_from_spdif_status()
2199 if ((sbits & IEC958_AES0_CON_EMPHASIS) == in convert_from_spdif_status()
2202 if (!(sbits & IEC958_AES0_CON_NOT_COPYRIGHT)) in convert_from_spdif_status()
2204 if (sbits & (IEC958_AES1_CON_ORIGINAL << 8)) in convert_from_spdif_status()
2206 val |= sbits & (IEC958_AES1_CON_CATEGORY << 8); in convert_from_spdif_status()
2215 unsigned int sbits = 0; in convert_to_spdif_status() local
[all …]
Dhda_controller.c211 int sbits = 0; in azx_pcm_trigger() local
245 sbits |= 1 << azx_dev->core.index; in azx_pcm_trigger()
252 snd_hdac_stream_sync_trigger(hstr, true, sbits, sync_reg); in azx_pcm_trigger()
267 snd_hdac_stream_sync(hstr, start, sbits); in azx_pcm_trigger()
271 snd_hdac_stream_sync_trigger(hstr, false, sbits, sync_reg); in azx_pcm_trigger()
273 snd_hdac_stream_timecounter_init(hstr, sbits); in azx_pcm_trigger()
/Linux-v5.15/drivers/mfd/
Dda903x.c236 int da903x_query_status(struct device *dev, unsigned int sbits) in da903x_query_status() argument
242 return ((status & sbits) == sbits); in da903x_query_status()
/Linux-v5.15/sound/soc/ti/
Ddavinci-mcasp.c1261 int sbits = params_width(params); in davinci_mcasp_hw_params() local
1265 sbits = mcasp->slot_width; in davinci_mcasp_hw_params()
1268 bclk_target = rate * sbits * slots; in davinci_mcasp_hw_params()
1383 int sbits = params_width(params); in davinci_mcasp_hw_rule_rate() local
1389 sbits = rd->mcasp->slot_width; in davinci_mcasp_hw_rule_rate()
1396 uint bclk_freq = sbits * slots * in davinci_mcasp_hw_rule_rate()
1421 ri->min, ri->max, range.min, range.max, sbits, slots); in davinci_mcasp_hw_rule_rate()
1441 uint sbits = snd_pcm_format_width(i); in davinci_mcasp_hw_rule_format() local
1452 sbits = rd->mcasp->slot_width; in davinci_mcasp_hw_rule_format()
1455 sbits * slots * rate, in davinci_mcasp_hw_rule_format()
/Linux-v5.15/sound/soc/intel/skylake/
Dskl-pcm.c1091 int sbits = 0; in skl_coupled_trigger() local
1124 sbits |= 1 << hdac_stream(stream)->index; in skl_coupled_trigger()
1131 snd_hdac_stream_sync_trigger(hstr, true, sbits, AZX_REG_SSYNC); in skl_coupled_trigger()
1144 snd_hdac_stream_sync(hstr, start, sbits); in skl_coupled_trigger()
1149 snd_hdac_stream_sync_trigger(hstr, false, sbits, AZX_REG_SSYNC); in skl_coupled_trigger()
1151 snd_hdac_stream_timecounter_init(hstr, sbits); in skl_coupled_trigger()
/Linux-v5.15/drivers/tty/serial/cpm_uart/
Dcpm_uart_core.c492 int bits, sbits; in cpm_uart_set_termios() local
528 sbits = bits - 5; in cpm_uart_set_termios()
613 out_be16(&sccp->scc_psmr, (sbits << 12) | scval); in cpm_uart_set_termios()