Home
last modified time | relevance | path

Searched refs:dif (Results 1 – 25 of 60) sorted by relevance

123

/linux/sound/soc/codecs/
H A Dak4118.c156 int dif; in ak4118_set_dai_fmt_provider() local
160 dif = AK4118_REG_FORMAT_CTL_DIF0 | AK4118_REG_FORMAT_CTL_DIF2; in ak4118_set_dai_fmt_provider()
163 dif = AK4118_REG_FORMAT_CTL_DIF0 | AK4118_REG_FORMAT_CTL_DIF1; in ak4118_set_dai_fmt_provider()
166 dif = AK4118_REG_FORMAT_CTL_DIF2; in ak4118_set_dai_fmt_provider()
172 return dif; in ak4118_set_dai_fmt_provider()
178 int dif; in ak4118_set_dai_fmt_consumer() local
182 dif = AK4118_REG_FORMAT_CTL_DIF0 | AK4118_REG_FORMAT_CTL_DIF1 | in ak4118_set_dai_fmt_consumer()
186 dif = AK4118_REG_FORMAT_CTL_DIF1 | AK4118_REG_FORMAT_CTL_DIF2; in ak4118_set_dai_fmt_consumer()
192 return dif; in ak4118_set_dai_fmt_consumer()
200 int dif; in ak4118_set_dai_fmt() local
[all...]
H A Dak4613.c217 u8 dif; member
278 .dif = _dif, \
629 * < tdm > < iface->dif > in ak4613_dai_hw_params()
631 priv->ctrl1 = (tdm << 6) | (iface->dif << 3); in ak4613_dai_hw_params()
/linux/net/ipv6/
H A Dinet6_hashtables.c55 const int dif, const int sdif) in __inet6_lookup_established() argument
72 if (!inet6_match(net, sk, saddr, daddr, ports, dif, sdif)) in __inet6_lookup_established()
77 if (unlikely(!inet6_match(net, sk, saddr, daddr, ports, dif, sdif))) { in __inet6_lookup_established()
95 const int dif, const int sdif) in compute_score() argument
104 if (!inet_sk_bound_dev_eq(net, sk->sk_bound_dev_if, dif, sdif)) in compute_score()
155 const unsigned short hnum, const int dif, const int sdif) in inet6_lhash2_lookup() argument
162 score = compute_score(sk, net, hnum, daddr, dif, sdif); in inet6_lhash2_lookup()
183 const u16 hnum, const int dif, in inet6_lookup_run_sk_lookup() argument
190 daddr, hnum, dif, &sk); in inet6_lookup_run_sk_lookup()
207 const unsigned short hnum, const int dif, cons in inet6_lookup_listener() argument
251 inet6_lookup(const struct net * net,struct inet_hashinfo * hashinfo,struct sk_buff * skb,int doff,const struct in6_addr * saddr,const __be16 sport,const struct in6_addr * daddr,const __be16 dport,const int dif) inet6_lookup() argument
274 const int dif = sk->sk_bound_dev_if; __inet6_check_established() local
[all...]
H A Dudp.c132 int dif, int sdif) in compute_score() argument
162 dev_match = udp_sk_bound_dev_eq(net, bound_dev_if, dif, sdif); in compute_score()
181 * @dif: Destination interface index
197 unsigned int hnum, int dif, int sdif, in udp6_lib_lookup1() argument
207 saddr, sport, daddr, hnum, dif, sdif); in udp6_lib_lookup1()
221 int dif, int sdif, struct udp_hslot *hslot2, in udp6_lib_lookup2() argument
234 sport, daddr, hnum, dif, sdif); in udp6_lib_lookup2()
278 unsigned int hnum, int dif, int sdif, in udp6_lib_lookup4() argument
291 unsigned int hnum, int dif, int sdif, in udp6_lib_lookup4() argument
308 if (inet6_match(net, sk, saddr, daddr, ports, dif, sdi in udp6_lib_lookup4()
346 __udp6_lib_lookup(const struct net * net,const struct in6_addr * saddr,__be16 sport,const struct in6_addr * daddr,__be16 dport,int dif,int sdif,struct udp_table * udptable,struct sk_buff * skb) __udp6_lib_lookup() argument
439 udp6_lib_lookup(const struct net * net,const struct in6_addr * saddr,__be16 sport,const struct in6_addr * daddr,__be16 dport,int dif) udp6_lib_lookup() argument
941 __udp_v6_is_mcast_sock(struct net * net,const struct sock * sk,__be16 loc_port,const struct in6_addr * loc_addr,__be16 rmt_port,const struct in6_addr * rmt_addr,int dif,int sdif,unsigned short hnum) __udp_v6_is_mcast_sock() argument
986 int dif = inet6_iif(skb); __udp6_lib_mcast_deliver() local
1198 __udp6_lib_demux_lookup(struct net * net,__be16 loc_port,const struct in6_addr * loc_addr,__be16 rmt_port,const struct in6_addr * rmt_addr,int dif,int sdif) __udp6_lib_demux_lookup() argument
1227 int dif = skb->dev->ifindex; udp_v6_early_demux() local
[all...]
H A Dexthdrs.c1209 long dif = (char *)opt2 - (char *)opt; in ipv6_dup_options() local
1211 *((char **)&opt2->hopopt) += dif; in ipv6_dup_options()
1213 *((char **)&opt2->dst0opt) += dif; in ipv6_dup_options()
1215 *((char **)&opt2->dst1opt) += dif; in ipv6_dup_options()
1217 *((char **)&opt2->srcrt) += dif; in ipv6_dup_options()
/linux/fs/erofs/
H A Dsuper.c137 struct erofs_device_info *dif, erofs_off_t *pos) in erofs_init_device() argument
148 if (!sbi->devs->flatdev && !dif->path) { in erofs_init_device()
153 dif->path = kmemdup_nul(dis->tag, sizeof(dis->tag), GFP_KERNEL); in erofs_init_device()
154 if (!dif->path) in erofs_init_device()
159 fscache = erofs_fscache_register_cookie(sb, dif->path, 0); in erofs_init_device()
162 dif->fscache = fscache; in erofs_init_device()
165 filp_open(dif->path, O_RDONLY | O_LARGEFILE, 0) : in erofs_init_device()
166 bdev_file_open_by_path(dif->path, in erofs_init_device()
175 dif->dax_dev = fs_dax_get_by_bdev(file_bdev(file), in erofs_init_device()
176 &dif in erofs_init_device()
203 struct erofs_device_info *dif; erofs_scan_devices() local
441 struct erofs_device_info *dif; erofs_fc_parse_param() local
797 struct erofs_device_info *dif = ptr; erofs_release_device_info() local
[all...]
H A Ddata.c176 struct super_block *sb, struct erofs_device_info *dif) in erofs_fill_from_devinfo() argument
179 map->m_dif = dif; in erofs_fill_from_devinfo()
181 if (dif->file && S_ISBLK(file_inode(dif->file)->i_mode)) in erofs_fill_from_devinfo()
182 map->m_bdev = file_bdev(dif->file); in erofs_fill_from_devinfo()
188 struct erofs_device_info *dif; in erofs_map_dev() local
196 dif = idr_find(&devs->tree, map->m_deviceid - 1); in erofs_map_dev()
197 if (!dif) { in erofs_map_dev()
202 map->m_pa += erofs_pos(sb, dif->uniaddr); in erofs_map_dev()
206 erofs_fill_from_devinfo(map, sb, dif); in erofs_map_dev()
[all...]
/linux/include/net/
H A Dinet6_hashtables.h48 const u16 hnum, const int dif,
74 const int dif, const int sdif);
82 const u16 hnum, const int dif,
92 const int dif, const int sdif, in __inet6_lookup() argument
97 dif, sdif); in __inet6_lookup()
103 daddr, hnum, dif, sdif); in __inet6_lookup()
174 const int dif);
182 const int dif, const int sdif) in inet6_match() argument
192 return inet_sk_bound_dev_eq(net, READ_ONCE(sk->sk_bound_dev_if), dif, in inet6_match()
H A Draw.h26 __be32 raddr, __be32 laddr, int dif, int sdif);
89 int dif, int sdif) in raw_sk_bound_dev_eq() argument
93 bound_dev_if, dif, sdif); in raw_sk_bound_dev_eq()
95 return inet_bound_dev_eq(true, bound_dev_if, dif, sdif); in raw_sk_bound_dev_eq()
H A Dinet_sock.h147 int dif, int sdif) in inet_bound_dev_eq() argument
151 return bound_dev_if == dif || bound_dev_if == sdif; in inet_bound_dev_eq()
156 int dif, int sdif) in inet_sk_bound_dev_eq() argument
160 bound_dev_if, dif, sdif); in inet_sk_bound_dev_eq()
162 return inet_bound_dev_eq(true, bound_dev_if, dif, sdif); in inet_sk_bound_dev_eq()
H A Dudp.h375 int dif, int sdif) in udp_sk_bound_dev_eq() argument
379 bound_dev_if, dif, sdif); in udp_sk_bound_dev_eq()
381 return inet_bound_dev_eq(true, bound_dev_if, dif, sdif); in udp_sk_bound_dev_eq()
426 __be32 daddr, __be16 dport, int dif);
429 __be32 daddr, __be16 dport, int dif, int sdif,
436 int dif);
440 int dif, int sdif, struct udp_table *tbl,
H A Drawv6.h11 const struct in6_addr *rmt_addr, int dif, int sdif);
H A Dipv6_stubs.h88 int dif, int sdif, struct udp_table *tbl,
/linux/net/sctp/
H A Dinput.c54 int dif, int sdif);
59 int dif, int sdif);
65 int dif, int sdif);
102 int dif, sdif; in sctp_rcv() local
147 dif = af->skb_iif(skb); in sctp_rcv()
165 asoc = __sctp_rcv_lookup(net, skb, &src, &dest, &transport, dif, sdif); in sctp_rcv()
168 ep = __sctp_rcv_lookup_endpoint(net, skb, &dest, &src, dif, sdif); in sctp_rcv()
474 int dif = inet_iif(skb); in sctp_err_lookup() local
490 asoc = __sctp_lookup_association(net, &saddr, &daddr, &transport, dif, sdif); in sctp_err_lookup()
844 int dif, int sdif) in __sctp_rcv_lookup_endpoint() argument
[all …]
H A Dendpointola.c250 int dif, int sdif) in sctp_endpoint_is_match() argument
256 sctp_sk_bound_dev_eq(net, bound_dev_if, dif, sdif) && in sctp_endpoint_is_match()
/linux/drivers/scsi/
H A Dsd_dif.c32 int dif, dix; in sd_dif_config_host() local
36 dif = scsi_host_dif_capable(sdp->host, type); in sd_dif_config_host()
40 dif = 0; dix = 1; in sd_dif_config_host()
58 if (dif && type) { in sd_dif_config_host()
H A Dsd.c409 unsigned int dif, dix; in protection_mode_show() local
411 dif = scsi_host_dif_capable(sdp->host, sdkp->protection_type); in protection_mode_show()
415 dif = 0; in protection_mode_show()
419 if (!dif && !dix) in protection_mode_show()
422 return sprintf(buf, "%s%u\n", dix ? "dix" : "dif", dif); in protection_mode_show()
740 * write and whether dix and dif are enabled.
742 static unsigned int sd_prot_op(bool write, bool dix, bool dif) in sd_prot_op() argument
744 /* Lookup table: bit 2 (write), bit 1 (dix), bit 0 (dif) */ in sd_prot_op()
745 static const unsigned int ops[] = { /* wrt dix dif */ in sd_prot_op()
801 sd_setup_protect_cmnd(struct scsi_cmnd * scmd,unsigned int dix,unsigned int dif) sd_setup_protect_cmnd() argument
1333 unsigned int dif; sd_setup_read_write_cmnd() local
[all...]
/linux/drivers/net/ethernet/qlogic/qed/
H A Dqed_ptp.c256 s64 best_val = 0, val, best_period = 0, period, approx_dev, dif, dif2; in qed_ptp_hw_adjfreq() local
284 dif = ppb * approx_dev - val * 1000000000; in qed_ptp_hw_adjfreq()
285 dif2 = dif + 16 * ppb; in qed_ptp_hw_adjfreq()
287 if (dif < 0) in qed_ptp_hw_adjfreq()
288 dif = -dif; in qed_ptp_hw_adjfreq()
293 if (dif * (approx_dev + 16) > dif2 * approx_dev) { in qed_ptp_hw_adjfreq()
296 dif = dif2; in qed_ptp_hw_adjfreq()
300 if (best_dif * approx_dev > dif * best_approx_dev) { in qed_ptp_hw_adjfreq()
301 best_dif = dif; in qed_ptp_hw_adjfreq()
[all...]
/linux/drivers/infiniband/ulp/iser/
H A Diser_memory.c180 domain->sig.dif.pi_interval = scsi_prot_interval(sc); in iser_set_dif_domain()
181 domain->sig.dif.ref_tag = t10_pi_ref_tag(scsi_cmd_to_rq(sc)); in iser_set_dif_domain()
186 domain->sig.dif.apptag_check_mask = 0xffff; in iser_set_dif_domain()
187 domain->sig.dif.app_escape = true; in iser_set_dif_domain()
188 domain->sig.dif.ref_escape = true; in iser_set_dif_domain()
190 domain->sig.dif.ref_remap = true; in iser_set_dif_domain()
201 sig_attrs->wire.sig.dif.bg_type = IB_T10DIF_CRC; in iser_set_sig_attrs()
207 sig_attrs->mem.sig.dif.bg_type = sc->prot_flags & SCSI_PROT_IP_CHECKSUM ? in iser_set_sig_attrs()
213 sig_attrs->wire.sig.dif.bg_type = IB_T10DIF_CRC; in iser_set_sig_attrs()
215 sig_attrs->mem.sig.dif in iser_set_sig_attrs()
[all...]
/linux/drivers/clk/
H A Dclk-renesas-pcie.c172 u8 dif = rs9_calc_dif(rs9, idx); in rs9_get_output_config() local
179 rs9->clk_dif_sr |= dif; in rs9_get_output_config()
191 rs9->clk_dif_sr &= ~dif; in rs9_get_output_config()
193 rs9->clk_dif_sr |= dif; in rs9_get_output_config()
264 u8 dif = rs9_calc_dif(rs9, i); in rs9_update_config() local
266 if (rs9->clk_dif_sr & dif) in rs9_update_config()
269 regmap_update_bits(rs9->regmap, RS9_REG_SR, dif, in rs9_update_config()
270 rs9->clk_dif_sr & dif); in rs9_update_config()
/linux/drivers/infiniband/hw/mlx5/
H A Dwr.c335 inl->dif_apptag = cpu_to_be16(domain->sig.dif.app_tag); in mlx5_fill_inl_bsf()
336 inl->dif_reftag = cpu_to_be32(domain->sig.dif.ref_tag); in mlx5_fill_inl_bsf()
339 inl->sig_type = domain->sig.dif.bg_type == IB_T10DIF_CRC ? in mlx5_fill_inl_bsf()
342 if (domain->sig.dif.ref_remap) in mlx5_fill_inl_bsf()
345 if (domain->sig.dif.app_escape) { in mlx5_fill_inl_bsf()
346 if (domain->sig.dif.ref_escape) in mlx5_fill_inl_bsf()
353 cpu_to_be16(domain->sig.dif.apptag_check_mask); in mlx5_fill_inl_bsf()
378 basic->mem.bs_selector = bs_selector(mem->sig.dif.pi_interval); in mlx5_set_bsf()
391 if (mem->sig.dif.pi_interval == wire->sig.dif in mlx5_set_bsf()
[all...]
/linux/include/rdma/
H A Dsignature.h76 struct ib_t10_dif_domain dif; member
/linux/net/ipv4/
H A Draw.c120 __be32 raddr, __be32 laddr, int dif, int sdif) in raw_v4_match() argument
127 raw_sk_bound_dev_eq(net, sk->sk_bound_dev_if, dif, sdif)) in raw_v4_match()
168 int dif = inet_iif(skb); in raw_v4_input() local
176 iph->saddr, iph->daddr, dif, sdif)) in raw_v4_input()
275 int dif = skb->dev->ifindex; in raw_icmp_error() local
289 iph->daddr, iph->saddr, dif, sdif)) in raw_icmp_error()
/linux/include/net/sctp/
H A Dsctp.h112 const union sctp_addr *paddr, void *p, int dif);
159 int dif, int sdif);
163 bool sctp_sk_bound_dev_eq(struct net *net, int bound_dev_if, int dif, int sdif);
/linux/net/l2tp/
H A Dl2tp_ip.c57 __be32 raddr, int dif, u32 tunnel_id) in __l2tp_ip_bind_lookup() argument
71 if (bound_dev_if && dif && bound_dev_if != dif) in __l2tp_ip_bind_lookup()

123