Home
last modified time | relevance | path

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

123

/linux-6.6.21/sound/soc/codecs/
Dak4118.c157 int dif; in ak4118_set_dai_fmt_provider() local
161 dif = AK4118_REG_FORMAT_CTL_DIF0 | AK4118_REG_FORMAT_CTL_DIF2; in ak4118_set_dai_fmt_provider()
164 dif = AK4118_REG_FORMAT_CTL_DIF0 | AK4118_REG_FORMAT_CTL_DIF1; in ak4118_set_dai_fmt_provider()
167 dif = AK4118_REG_FORMAT_CTL_DIF2; in ak4118_set_dai_fmt_provider()
173 return dif; in ak4118_set_dai_fmt_provider()
179 int dif; in ak4118_set_dai_fmt_consumer() local
183 dif = AK4118_REG_FORMAT_CTL_DIF0 | AK4118_REG_FORMAT_CTL_DIF1 | in ak4118_set_dai_fmt_consumer()
187 dif = AK4118_REG_FORMAT_CTL_DIF1 | AK4118_REG_FORMAT_CTL_DIF2; in ak4118_set_dai_fmt_consumer()
193 return dif; in ak4118_set_dai_fmt_consumer()
201 int dif; in ak4118_set_dai_fmt() local
[all …]
/linux-6.6.21/net/ipv6/
Dinet6_hashtables.c56 const int dif, const int sdif) in __inet6_lookup_established() argument
73 if (!inet6_match(net, sk, saddr, daddr, ports, dif, sdif)) in __inet6_lookup_established()
78 if (unlikely(!inet6_match(net, sk, saddr, daddr, ports, dif, sdif))) { in __inet6_lookup_established()
96 const int dif, const int sdif) in compute_score() argument
105 if (!inet_sk_bound_dev_eq(net, sk->sk_bound_dev_if, dif, sdif)) in compute_score()
156 const unsigned short hnum, const int dif, const int sdif) in inet6_lhash2_lookup() argument
163 score = compute_score(sk, net, hnum, daddr, dif, sdif); in inet6_lhash2_lookup()
184 const u16 hnum, const int dif, in inet6_lookup_run_sk_lookup() argument
191 daddr, hnum, dif, &sk); in inet6_lookup_run_sk_lookup()
208 const unsigned short hnum, const int dif, const int sdif) in inet6_lookup_listener() argument
[all …]
Dudp.c123 int dif, int sdif) in compute_score() argument
153 dev_match = udp_sk_bound_dev_eq(net, bound_dev_if, dif, sdif); in compute_score()
169 int dif, int sdif, struct udp_hslot *hslot2, in udp6_lib_lookup2() argument
179 daddr, hnum, dif, sdif); in udp6_lib_lookup2()
204 daddr, hnum, dif, sdif); in udp6_lib_lookup2()
214 int dif, int sdif, struct udp_table *udptable, in __udp6_lib_lookup() argument
228 daddr, hnum, dif, sdif, in __udp6_lib_lookup()
237 saddr, sport, daddr, hnum, dif, in __udp6_lib_lookup()
255 &in6addr_any, hnum, dif, sdif, in __udp6_lib_lookup()
294 const struct in6_addr *daddr, __be16 dport, int dif) in udp6_lib_lookup() argument
[all …]
/linux-6.6.21/fs/erofs/
Dsuper.c172 struct erofs_device_info *dif, erofs_off_t *pos) in erofs_init_device() argument
185 if (!sbi->devs->flatdev && !dif->path) { in erofs_init_device()
190 dif->path = kmemdup_nul(dis->tag, sizeof(dis->tag), GFP_KERNEL); in erofs_init_device()
191 if (!dif->path) in erofs_init_device()
196 fscache = erofs_fscache_register_cookie(sb, dif->path, 0); in erofs_init_device()
199 dif->fscache = fscache; in erofs_init_device()
201 bdev = blkdev_get_by_path(dif->path, BLK_OPEN_READ, sb->s_type, in erofs_init_device()
205 dif->bdev = bdev; in erofs_init_device()
206 dif->dax_dev = fs_dax_get_by_bdev(bdev, &dif->dax_part_off, in erofs_init_device()
210 dif->blocks = le32_to_cpu(dis->blocks); in erofs_init_device()
[all …]
Ddata.c205 struct erofs_device_info *dif; in erofs_map_dev() local
215 dif = idr_find(&devs->tree, map->m_deviceid - 1); in erofs_map_dev()
216 if (!dif) { in erofs_map_dev()
221 map->m_pa += erofs_pos(sb, dif->mapped_blkaddr); in erofs_map_dev()
225 map->m_bdev = dif->bdev; in erofs_map_dev()
226 map->m_daxdev = dif->dax_dev; in erofs_map_dev()
227 map->m_dax_part_off = dif->dax_part_off; in erofs_map_dev()
228 map->m_fscache = dif->fscache; in erofs_map_dev()
232 idr_for_each_entry(&devs->tree, dif, id) { in erofs_map_dev()
235 if (!dif->mapped_blkaddr) in erofs_map_dev()
[all …]
/linux-6.6.21/net/sctp/
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()
841 int dif, int sdif) in __sctp_rcv_lookup_endpoint() argument
[all …]
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-6.6.21/include/net/
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()
Dinet_hashtables.h318 const int dif, const int sdif);
324 __be32 daddr, __be16 dport, int dif, int sdif) in inet_lookup_listener() argument
327 daddr, ntohs(dport), dif, sdif); in inet_lookup_listener()
361 int dif, int sdif) in inet_match() argument
369 return inet_sk_bound_dev_eq(net, READ_ONCE(sk->sk_bound_dev_if), dif, in inet_match()
380 const int dif, const int sdif);
400 __be32 daddr, u16 hnum, const int dif,
407 const int dif) in inet_lookup_established() argument
410 ntohs(dport), dif, 0); in inet_lookup_established()
418 const int dif, const int sdif, in __inet_lookup() argument
[all …]
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()
Dudp.h249 int dif, int sdif) in udp_sk_bound_dev_eq() argument
253 bound_dev_if, dif, sdif); in udp_sk_bound_dev_eq()
255 return inet_bound_dev_eq(true, bound_dev_if, dif, sdif); in udp_sk_bound_dev_eq()
300 __be32 daddr, __be16 dport, int dif);
302 __be32 daddr, __be16 dport, int dif, int sdif,
309 int dif);
313 int dif, int sdif, struct udp_table *tbl,
Dinet_sock.h146 int dif, int sdif) in inet_bound_dev_eq() argument
150 return bound_dev_if == dif || bound_dev_if == sdif; in inet_bound_dev_eq()
154 int dif, int sdif) in inet_sk_bound_dev_eq() argument
158 bound_dev_if, dif, sdif); in inet_sk_bound_dev_eq()
160 return inet_bound_dev_eq(true, bound_dev_if, dif, sdif); in inet_sk_bound_dev_eq()
Drawv6.h11 const struct in6_addr *rmt_addr, int dif, int sdif);
/linux-6.6.21/drivers/scsi/
Dsd_dif.c33 int dif, dix; in sd_dif_config_host() local
35 dif = scsi_host_dif_capable(sdp->host, type); in sd_dif_config_host()
39 dif = 0; dix = 1; in sd_dif_config_host()
65 if (dif && type) { in sd_dif_config_host()
Dsd.c396 unsigned int dif, dix; in protection_mode_show() local
398 dif = scsi_host_dif_capable(sdp->host, sdkp->protection_type); in protection_mode_show()
402 dif = 0; in protection_mode_show()
406 if (!dif && !dix) in protection_mode_show()
409 return sprintf(buf, "%s%u\n", dix ? "dix" : "dif", dif); in protection_mode_show()
726 static unsigned int sd_prot_op(bool write, bool dix, bool dif) in sd_prot_op() argument
740 return ops[write << 2 | dix << 1 | dif]; in sd_prot_op()
785 unsigned int dix, unsigned int dif) in sd_setup_protect_cmnd() argument
789 unsigned int prot_op = sd_prot_op(rq_data_dir(rq), dix, dif); in sd_setup_protect_cmnd()
800 if (dif != T10_PI_TYPE3_PROTECTION) { /* DIX/DIF Type 0, 1, 2 */ in sd_setup_protect_cmnd()
[all …]
/linux-6.6.21/drivers/net/ethernet/qlogic/qed/
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()
/linux-6.6.21/drivers/infiniband/ulp/iser/
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.bg_type = sc->prot_flags & SCSI_PROT_IP_CHECKSUM ? in iser_set_sig_attrs()
/linux-6.6.21/drivers/clk/
Dclk-renesas-pcie.c176 u8 dif = rs9_calc_dif(rs9, idx); in rs9_get_output_config() local
183 rs9->clk_dif_sr |= dif; in rs9_get_output_config()
195 rs9->clk_dif_sr &= ~dif; in rs9_get_output_config()
197 rs9->clk_dif_sr |= dif; in rs9_get_output_config()
268 u8 dif = rs9_calc_dif(rs9, i); in rs9_update_config() local
270 if (rs9->clk_dif_sr & dif) in rs9_update_config()
273 regmap_update_bits(rs9->regmap, RS9_REG_SR, dif, in rs9_update_config()
274 rs9->clk_dif_sr & dif); in rs9_update_config()
/linux-6.6.21/net/ipv4/
Dinet_hashtables.c321 const int dif, const int sdif) in compute_score() argument
330 if (!inet_sk_bound_dev_eq(net, sk->sk_bound_dev_if, dif, sdif)) in compute_score()
388 const int dif, const int sdif) in inet_lhash2_lookup() argument
395 score = compute_score(sk, net, hnum, daddr, dif, sdif); in inet_lhash2_lookup()
414 __be32 daddr, u16 hnum, const int dif, in inet_lookup_run_sk_lookup() argument
421 daddr, hnum, dif, &sk); in inet_lookup_run_sk_lookup()
437 const int dif, const int sdif) in __inet_lookup_listener() argument
447 saddr, sport, daddr, hnum, dif, in __inet_lookup_listener()
458 dif, sdif); in __inet_lookup_listener()
468 dif, sdif); in __inet_lookup_listener()
[all …]
Dudp.c369 int dif, int sdif) in compute_score() argument
399 dif, sdif); in compute_score()
426 int dif, int sdif, in udp4_lib_lookup2() argument
437 daddr, hnum, dif, sdif); in udp4_lib_lookup2()
462 daddr, hnum, dif, sdif); in udp4_lib_lookup2()
473 __be16 sport, __be32 daddr, __be16 dport, int dif, in __udp4_lib_lookup() argument
487 daddr, hnum, dif, sdif, in __udp4_lib_lookup()
496 saddr, sport, daddr, hnum, dif, in __udp4_lib_lookup()
514 htonl(INADDR_ANY), hnum, dif, sdif, in __udp4_lib_lookup()
553 __be32 daddr, __be16 dport, int dif) in udp4_lib_lookup() argument
[all …]
Dping.c172 int dif, sdif; in ping_lookup() local
175 dif = inet_iif(skb); in ping_lookup()
178 (int)ident, &ip_hdr(skb)->daddr, dif); in ping_lookup()
181 dif = inet6_iif(skb); in ping_lookup()
184 (int)ident, &ipv6_hdr(skb)->daddr, dif); in ping_lookup()
224 if (sk->sk_bound_dev_if && sk->sk_bound_dev_if != dif && in ping_lookup()
420 int dif = sk->sk_bound_dev_if; in ping_bind() local
436 sk->sk_bound_dev_if = dif; in ping_bind()
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()
268 int dif = skb->dev->ifindex; in raw_icmp_error() local
282 iph->daddr, iph->saddr, dif, sdif)) in raw_icmp_error()
/linux-6.6.21/drivers/infiniband/hw/mlx5/
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.pi_interval && in mlx5_set_bsf()
395 if (mem->sig.dif.bg_type == wire->sig.dif.bg_type) in mlx5_set_bsf()
[all …]
/linux-6.6.21/drivers/net/ethernet/pensando/ionic/
Dionic_txrx.c27 unsigned long now, then, dif; in ionic_txq_poke_doorbell() local
43 dif = now - then; in ionic_txq_poke_doorbell()
45 if (dif > q->dbell_deadline) { in ionic_txq_poke_doorbell()
59 unsigned long now, then, dif; in ionic_rxq_poke_doorbell() local
68 dif = now - then; in ionic_rxq_poke_doorbell()
70 if (dif > q->dbell_deadline) { in ionic_rxq_poke_doorbell()
76 dif = 2 * q->dbell_deadline; in ionic_rxq_poke_doorbell()
77 if (dif > IONIC_RX_MAX_DOORBELL_DEADLINE) in ionic_rxq_poke_doorbell()
78 dif = IONIC_RX_MAX_DOORBELL_DEADLINE; in ionic_rxq_poke_doorbell()
80 q->dbell_deadline = dif; in ionic_rxq_poke_doorbell()
/linux-6.6.21/include/rdma/
Dsignature.h76 struct ib_t10_dif_domain dif; member

123