Home
last modified time | relevance | path

Searched refs:nf (Results 1 – 25 of 77) sorted by relevance

1234

/kernel/linux/linux-5.10/fs/nfsd/
Dfilecache.c85 struct nfsd_file *nf = container_of(rcu, struct nfsd_file, nf_rcu); in nfsd_file_slab_free() local
87 put_cred(nf->nf_cred); in nfsd_file_slab_free()
88 kmem_cache_free(nfsd_file_slab, nf); in nfsd_file_slab_free()
118 nfsd_file_mark_find_or_create(struct nfsd_file *nf) in nfsd_file_mark_find_or_create() argument
123 struct inode *inode = nf->nf_inode; in nfsd_file_mark_find_or_create()
176 struct nfsd_file *nf; in nfsd_file_alloc() local
178 nf = kmem_cache_alloc(nfsd_file_slab, GFP_KERNEL); in nfsd_file_alloc()
179 if (nf) { in nfsd_file_alloc()
180 INIT_HLIST_NODE(&nf->nf_node); in nfsd_file_alloc()
181 INIT_LIST_HEAD(&nf->nf_lru); in nfsd_file_alloc()
[all …]
Dtrace.h417 TP_PROTO(struct nfsd_file *nf),
418 TP_ARGS(nf),
428 __entry->nf_hashval = nf->nf_hashval;
429 __entry->nf_inode = nf->nf_inode;
430 __entry->nf_ref = refcount_read(&nf->nf_ref);
431 __entry->nf_flags = nf->nf_flags;
432 __entry->nf_may = nf->nf_may;
433 __entry->nf_file = nf->nf_file;
446 TP_PROTO(struct nfsd_file *nf), \
447 TP_ARGS(nf))
[all …]
Dvfs.c975 nfsd_vfs_write(struct svc_rqst *rqstp, struct svc_fh *fhp, struct nfsd_file *nf, in nfsd_vfs_write() argument
980 struct file *file = nf->nf_file; in nfsd_vfs_write()
1013 down_write(&nf->nf_rwsem); in nfsd_vfs_write()
1018 up_write(&nf->nf_rwsem); in nfsd_vfs_write()
1020 down_read(&nf->nf_rwsem); in nfsd_vfs_write()
1026 up_read(&nf->nf_rwsem); in nfsd_vfs_write()
1066 struct nfsd_file *nf; in nfsd_read() local
1071 err = nfsd_file_acquire(rqstp, fhp, NFSD_MAY_READ, &nf); in nfsd_read()
1075 file = nf->nf_file; in nfsd_read()
1081 nfsd_file_put(nf); in nfsd_read()
[all …]
Dfilecache.h57 void nfsd_file_put(struct nfsd_file *nf);
58 struct nfsd_file *nfsd_file_get(struct nfsd_file *nf);
Dnfs4state.c1001 struct nfsd_file *nf = NULL; in put_deleg_file() local
1005 swap(nf, fp->fi_deleg_file); in put_deleg_file()
1008 if (nf) in put_deleg_file()
1009 nfsd_file_put(nf); in put_deleg_file()
1015 struct nfsd_file *nf = fp->fi_deleg_file; in nfs4_unlock_deleg_lease() local
1019 vfs_setlease(nf->nf_file, F_UNLCK, NULL, (void **)&dp); in nfs4_unlock_deleg_lease()
1368 struct nfsd_file *nf; in nfs4_free_lock_stateid() local
1370 nf = find_any_file(stp->st_stid.sc_file); in nfs4_free_lock_stateid()
1371 if (nf) { in nfs4_free_lock_stateid()
1372 get_file(nf->nf_file); in nfs4_free_lock_stateid()
[all …]
/kernel/linux/linux-5.10/drivers/media/pci/ivtv/
Divtv-yuv.c965 struct yuv_frame_info *nf = &yi->new_frame_info[frame]; in ivtv_yuv_setup_frame() local
970 int update = nf->update; in ivtv_yuv_setup_frame()
973 nf->src_x = args->src.left; in ivtv_yuv_setup_frame()
974 nf->src_y = args->src.top; in ivtv_yuv_setup_frame()
975 nf->src_w = args->src.width; in ivtv_yuv_setup_frame()
976 nf->src_h = args->src.height; in ivtv_yuv_setup_frame()
977 nf->dst_x = args->dst.left; in ivtv_yuv_setup_frame()
978 nf->dst_y = args->dst.top; in ivtv_yuv_setup_frame()
979 nf->dst_w = args->dst.width; in ivtv_yuv_setup_frame()
980 nf->dst_h = args->dst.height; in ivtv_yuv_setup_frame()
[all …]
/kernel/linux/linux-5.10/net/netfilter/
Dnf_log.c49 if (pf == NFPROTO_UNSPEC || pf >= ARRAY_SIZE(net->nf.nf_loggers)) in nf_log_set()
53 log = nft_log_dereference(net->nf.nf_loggers[pf]); in nf_log_set()
55 rcu_assign_pointer(net->nf.nf_loggers[pf], logger); in nf_log_set()
70 log = nft_log_dereference(net->nf.nf_loggers[i]); in nf_log_unset()
72 RCU_INIT_POINTER(net->nf.nf_loggers[i], NULL); in nf_log_unset()
84 if (pf >= ARRAY_SIZE(init_net.nf.nf_loggers)) in nf_log_register()
131 if (pf >= ARRAY_SIZE(net->nf.nf_loggers)) in nf_log_bind_pf()
138 rcu_assign_pointer(net->nf.nf_loggers[pf], logger); in nf_log_bind_pf()
146 if (pf >= ARRAY_SIZE(net->nf.nf_loggers)) in nf_log_unbind_pf()
149 RCU_INIT_POINTER(net->nf.nf_loggers[pf], NULL); in nf_log_unbind_pf()
[all …]
Dcore.c275 if (WARN_ON_ONCE(ARRAY_SIZE(net->nf.hooks_arp) <= hooknum)) in nf_hook_entry_head()
277 return net->nf.hooks_arp + hooknum; in nf_hook_entry_head()
281 if (WARN_ON_ONCE(ARRAY_SIZE(net->nf.hooks_bridge) <= hooknum)) in nf_hook_entry_head()
283 return net->nf.hooks_bridge + hooknum; in nf_hook_entry_head()
296 if (WARN_ON_ONCE(ARRAY_SIZE(net->nf.hooks_ipv4) <= hooknum)) in nf_hook_entry_head()
298 return net->nf.hooks_ipv4 + hooknum; in nf_hook_entry_head()
300 if (WARN_ON_ONCE(ARRAY_SIZE(net->nf.hooks_ipv6) <= hooknum)) in nf_hook_entry_head()
302 return net->nf.hooks_ipv6 + hooknum; in nf_hook_entry_head()
305 if (WARN_ON_ONCE(ARRAY_SIZE(net->nf.hooks_decnet) <= hooknum)) in nf_hook_entry_head()
307 return net->nf.hooks_decnet + hooknum; in nf_hook_entry_head()
[all …]
Dnf_queue.c37 WARN_ON(rcu_access_pointer(net->nf.queue_handler)); in nf_register_queue_handler()
38 rcu_assign_pointer(net->nf.queue_handler, qh); in nf_register_queue_handler()
45 RCU_INIT_POINTER(net->nf.queue_handler, NULL); in nf_unregister_queue_handler()
119 qh = rcu_dereference(net->nf.queue_handler); in nf_queue_nf_hook_drop()
165 qh = rcu_dereference(net->nf.queue_handler); in __nf_queue()
267 return rcu_dereference(net->nf.hooks_bridge[hooknum]); in nf_hook_entries_head()
270 return rcu_dereference(net->nf.hooks_ipv4[hooknum]); in nf_hook_entries_head()
272 return rcu_dereference(net->nf.hooks_ipv6[hooknum]); in nf_hook_entries_head()
/kernel/linux/linux-5.10/drivers/net/wireless/ath/ath9k/
Dcalib.c73 s16 nf) in ath9k_hw_getchan_noise() argument
77 if (nf) { in ath9k_hw_getchan_noise()
78 s8 delta = nf - ATH9K_NF_CAL_NOISE_THRESH - in ath9k_hw_getchan_noise()
371 static void ath9k_hw_nf_sanitize(struct ath_hw *ah, s16 *nf) in ath9k_hw_nf_sanitize() argument
383 if (!nf[i]) in ath9k_hw_nf_sanitize()
388 (i >= 3 ? "ext" : "ctl"), i % 3, nf[i]); in ath9k_hw_nf_sanitize()
390 if (nf[i] > limit->max) { in ath9k_hw_nf_sanitize()
393 i, nf[i], limit->max); in ath9k_hw_nf_sanitize()
394 nf[i] = limit->max; in ath9k_hw_nf_sanitize()
395 } else if (nf[i] < limit->min) { in ath9k_hw_nf_sanitize()
[all …]
Dar9002_phy.c334 int16_t nf; in ar9002_hw_do_getnf() local
336 nf = MS(REG_READ(ah, AR_PHY_CCA), AR9280_PHY_MINCCA_PWR); in ar9002_hw_do_getnf()
337 nfarray[0] = sign_extend32(nf, 8); in ar9002_hw_do_getnf()
339 nf = MS(REG_READ(ah, AR_PHY_EXT_CCA), AR9280_PHY_EXT_MINCCA_PWR); in ar9002_hw_do_getnf()
341 nfarray[3] = sign_extend32(nf, 8); in ar9002_hw_do_getnf()
346 nf = MS(REG_READ(ah, AR_PHY_CH1_CCA), AR9280_PHY_CH1_MINCCA_PWR); in ar9002_hw_do_getnf()
347 nfarray[1] = sign_extend32(nf, 8); in ar9002_hw_do_getnf()
349 nf = MS(REG_READ(ah, AR_PHY_CH1_EXT_CCA), AR9280_PHY_CH1_EXT_MINCCA_PWR); in ar9002_hw_do_getnf()
351 nfarray[4] = sign_extend32(nf, 8); in ar9002_hw_do_getnf()
Dar5008_phy.c1149 int16_t nf; in ar5008_hw_do_getnf() local
1151 nf = MS(REG_READ(ah, AR_PHY_CCA), AR_PHY_MINCCA_PWR); in ar5008_hw_do_getnf()
1152 nfarray[0] = sign_extend32(nf, 8); in ar5008_hw_do_getnf()
1154 nf = MS(REG_READ(ah, AR_PHY_CH1_CCA), AR_PHY_CH1_MINCCA_PWR); in ar5008_hw_do_getnf()
1155 nfarray[1] = sign_extend32(nf, 8); in ar5008_hw_do_getnf()
1157 nf = MS(REG_READ(ah, AR_PHY_CH2_CCA), AR_PHY_CH2_MINCCA_PWR); in ar5008_hw_do_getnf()
1158 nfarray[2] = sign_extend32(nf, 8); in ar5008_hw_do_getnf()
1163 nf = MS(REG_READ(ah, AR_PHY_EXT_CCA), AR_PHY_EXT_MINCCA_PWR); in ar5008_hw_do_getnf()
1164 nfarray[3] = sign_extend32(nf, 8); in ar5008_hw_do_getnf()
1166 nf = MS(REG_READ(ah, AR_PHY_CH1_EXT_CCA), AR_PHY_CH1_EXT_MINCCA_PWR); in ar5008_hw_do_getnf()
[all …]
/kernel/linux/linux-5.10/drivers/clk/baikal-t1/
Dccu-pll.c76 unsigned long nf, in ccu_pll_calc_freq() argument
82 tmp *= nf; in ccu_pll_calc_freq()
156 unsigned long nr, nf, od; in ccu_pll_recalc_rate() local
161 nf = FIELD_GET(CCU_PLL_CTL_CLKF_MASK, val) + 1; in ccu_pll_recalc_rate()
164 return ccu_pll_calc_freq(parent_rate, nr, nf, od); in ccu_pll_recalc_rate()
168 unsigned long *nr, unsigned long *nf, in ccu_pll_calc_factors() argument
225 *nf = n1; in ccu_pll_calc_factors()
234 unsigned long nr = 1, nf = 1, od = 1; in ccu_pll_round_rate() local
236 ccu_pll_calc_factors(rate, *parent_rate, &nr, &nf, &od); in ccu_pll_round_rate()
238 return ccu_pll_calc_freq(*parent_rate, nr, nf, od); in ccu_pll_round_rate()
[all …]
/kernel/linux/linux-5.10/drivers/media/v4l2-core/
Dv4l2-jpeg.c131 static int v4l2_jpeg_decode_subsampling(u8 nf, u8 h_v) in v4l2_jpeg_decode_subsampling() argument
133 if (nf == 1) in v4l2_jpeg_decode_subsampling()
137 if (nf == 4 && h_v != 0x11) in v4l2_jpeg_decode_subsampling()
167 int p, y, x, nf; in jpeg_parse_frame_header() local
192 nf = jpeg_get_byte(stream); in jpeg_parse_frame_header()
193 if (nf < 0) in jpeg_parse_frame_header()
194 return nf; in jpeg_parse_frame_header()
199 if (nf < 1 || nf > V4L2_JPEG_MAX_COMPONENTS) in jpeg_parse_frame_header()
201 if (len != 8 + 3 * nf) in jpeg_parse_frame_header()
207 frame_header->num_components = nf; in jpeg_parse_frame_header()
[all …]
/kernel/linux/linux-5.10/net/ipv6/netfilter/
Dnf_defrag_ipv6_hooks.c92 if (net->nf.defrag_ipv6) { in defrag6_net_exit()
95 net->nf.defrag_ipv6 = false; in defrag6_net_exit()
137 if (net->nf.defrag_ipv6) in nf_defrag_ipv6_enable()
141 if (net->nf.defrag_ipv6) in nf_defrag_ipv6_enable()
147 net->nf.defrag_ipv6 = true; in nf_defrag_ipv6_enable()
/kernel/linux/linux-5.10/net/ipv4/netfilter/
Dnf_defrag_ipv4.c109 if (net->nf.defrag_ipv4) { in defrag4_net_exit()
112 net->nf.defrag_ipv4 = false; in defrag4_net_exit()
136 if (net->nf.defrag_ipv4) in nf_defrag_ipv4_enable()
140 if (net->nf.defrag_ipv4) in nf_defrag_ipv4_enable()
146 net->nf.defrag_ipv4 = true; in nf_defrag_ipv4_enable()
/kernel/linux/linux-5.10/drivers/clk/sirf/
Dclk-common.c87 u32 nf = (cfg0 & (BIT(13) - 1)) + 1; in pll_clk_recalc_rate() local
91 return fin / MHZ * nf / nr / od * MHZ; in pll_clk_recalc_rate()
98 unsigned long fin, nf, nr, od; in pll_clk_round_rate() local
107 nf = rate / MHZ; in pll_clk_round_rate()
108 if (nf > BIT(13)) in pll_clk_round_rate()
109 nf = BIT(13); in pll_clk_round_rate()
110 if (nf < 1) in pll_clk_round_rate()
111 nf = 1; in pll_clk_round_rate()
120 dividend = (u64)fin * nf; in pll_clk_round_rate()
130 unsigned long fin, nf, nr, od, reg; in pll_clk_set_rate() local
[all …]
/kernel/linux/linux-5.10/drivers/video/console/
Dsticore.c495 struct sti_rom_font *nf; in sti_select_fbfont() local
512 nf = kzalloc(size, STI_LOWMEM); in sti_select_fbfont()
513 if (!nf) in sti_select_fbfont()
516 nf->first_char = 0; in sti_select_fbfont()
517 nf->last_char = 255; in sti_select_fbfont()
518 nf->width = fbfont->width; in sti_select_fbfont()
519 nf->height = fbfont->height; in sti_select_fbfont()
520 nf->font_type = STI_FONT_HPROMAN8; in sti_select_fbfont()
521 nf->bytes_per_char = bpc; in sti_select_fbfont()
522 nf->next_font = 0; in sti_select_fbfont()
[all …]
/kernel/linux/linux-5.10/include/linux/
Dnetfilter.h223 hook_head = rcu_dereference(net->nf.hooks_ipv4[hook]); in nf_hook()
226 hook_head = rcu_dereference(net->nf.hooks_ipv6[hook]); in nf_hook()
230 if (WARN_ON_ONCE(hook >= ARRAY_SIZE(net->nf.hooks_arp))) in nf_hook()
232 hook_head = rcu_dereference(net->nf.hooks_arp[hook]); in nf_hook()
237 hook_head = rcu_dereference(net->nf.hooks_bridge[hook]); in nf_hook()
242 hook_head = rcu_dereference(net->nf.hooks_decnet[hook]); in nf_hook()
322 hook_head = rcu_dereference(net->nf.hooks_ipv4[hook]); in NF_HOOK_LIST()
325 hook_head = rcu_dereference(net->nf.hooks_ipv6[hook]); in NF_HOOK_LIST()
/kernel/linux/linux-5.10/drivers/gpu/drm/gma500/
Doaktrail_hdmi.c105 struct intel_range vco, np, nr, nf; member
111 int nf; member
128 .nf = { .min = NF_MIN, .max = NF_MAX },
179 int np, nr, nf; in oaktrail_hdmi_find_dpll() local
197 nf = DIV_ROUND_CLOSEST((target * 10 * np * nr), refclk); in oaktrail_hdmi_find_dpll()
198 DRM_DEBUG_KMS("np, nr, nf %d %d %d\n", np, nr, nf); in oaktrail_hdmi_find_dpll()
206 best_clock->nf = (nf << 14); in oaktrail_hdmi_find_dpll()
312 REG_WRITE(DPLL_DIV_CTRL, ((clock.nf << 6) | clock.nr)); in oaktrail_crtc_hdmi_mode_set()
313 REG_WRITE(DPLL_ADJUST, ((clock.nf >> 14) - 1)); in oaktrail_crtc_hdmi_mode_set()
/kernel/linux/linux-5.10/tools/testing/selftests/netfilter/
Dnft_queue.sh221 ip netns exec ${nsrouter} ./nf-queue -c -q 0 -t $timeout > "$TMPFILE0" &
222 ip netns exec ${nsrouter} ./nf-queue -c -q 1 -t $timeout > "$TMPFILE1" &
257 ip netns exec ${nsrouter} ./nf-queue -q 2 -t $timeout &
283 ip netns exec ${nsrouter} ./nf-queue -q 3 -t $timeout &
315 ip netns exec ${nsrouter} ./nf-queue -c -q 1 -t $timeout > "$TMPFILE2" &
319 ip netns exec ${nsrouter} ./nf-queue -G -d 150 -c -q 0 -Q 1 -t $timeout > "$TMPFILE3" &
D.gitignore2 nf-queue
/kernel/linux/linux-5.10/drivers/block/aoe/
Daoecmd.c556 struct frame *nf; in reassign_frame() local
559 nf = newframe(f->t->d); in reassign_frame()
560 if (!nf) in reassign_frame()
562 if (nf->t == f->t) { in reassign_frame()
563 aoe_freetframe(nf); in reassign_frame()
567 skb = nf->skb; in reassign_frame()
568 nf->skb = f->skb; in reassign_frame()
569 nf->buf = f->buf; in reassign_frame()
570 nf->iter = f->iter; in reassign_frame()
571 nf->waited = 0; in reassign_frame()
[all …]
/kernel/linux/linux-5.10/net/sched/
Dcls_route.c317 struct route4_filter *nf; in route4_delete() local
329 for (nf = rtnl_dereference(*fp); nf; in route4_delete()
330 fp = &nf->next, nf = rtnl_dereference(*fp)) { in route4_delete()
331 if (nf == f) { in route4_delete()
/kernel/linux/linux-5.10/drivers/clk/rockchip/
Dclk-pll.c392 rate->nf = ((pllcon >> RK3066_PLLCON1_NF_SHIFT) in rockchip_rk3066_pll_get_params()
417 rate64 *= cur.nf; in rockchip_rk3066_pll_recalc_rate()
435 __func__, rate->rate, rate->nr, rate->no, rate->nf); in rockchip_rk3066_pll_set_params()
457 writel_relaxed(HIWORD_UPDATE(rate->nf - 1, RK3066_PLLCON1_NF_MASK, in rockchip_rk3066_pll_set_params()
552 rate->no, cur.no, rate->nf, cur.nf, rate->nb, cur.nb); in rockchip_rk3066_pll_init()
553 if (rate->nr != cur.nr || rate->no != cur.no || rate->nf != cur.nf in rockchip_rk3066_pll_init()

1234