Home
last modified time | relevance | path

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

1234

/Linux-v6.6/fs/nfsd/
Dfilecache.c124 struct nfsd_file *nf = container_of(rcu, struct nfsd_file, nf_rcu); in nfsd_file_slab_free() local
126 put_cred(nf->nf_cred); in nfsd_file_slab_free()
127 kmem_cache_free(nfsd_file_slab, nf); in nfsd_file_slab_free()
157 nfsd_file_mark_find_or_create(struct nfsd_file *nf, struct inode *inode) in nfsd_file_mark_find_or_create() argument
215 struct nfsd_file *nf; in nfsd_file_alloc() local
217 nf = kmem_cache_alloc(nfsd_file_slab, GFP_KERNEL); in nfsd_file_alloc()
218 if (unlikely(!nf)) in nfsd_file_alloc()
221 INIT_LIST_HEAD(&nf->nf_lru); in nfsd_file_alloc()
222 nf->nf_birthtime = ktime_get(); in nfsd_file_alloc()
223 nf->nf_file = NULL; in nfsd_file_alloc()
[all …]
Dtrace.h884 TP_PROTO(struct nfsd_file *nf),
885 TP_ARGS(nf),
894 __entry->nf_inode = nf->nf_inode;
895 __entry->nf_ref = refcount_read(&nf->nf_ref);
896 __entry->nf_flags = nf->nf_flags;
897 __entry->nf_may = nf->nf_may;
898 __entry->nf_file = nf->nf_file;
910 TP_PROTO(struct nfsd_file *nf), \
911 TP_ARGS(nf))
921 const struct nfsd_file *nf
[all …]
Dfilecache.h56 void nfsd_file_put(struct nfsd_file *nf);
57 struct nfsd_file *nfsd_file_get(struct nfsd_file *nf);
Dnfs4state.c1232 struct nfsd_file *nf = NULL; in put_deleg_file() local
1236 swap(nf, fp->fi_deleg_file); in put_deleg_file()
1239 if (nf) in put_deleg_file()
1240 nfsd_file_put(nf); in put_deleg_file()
1246 struct nfsd_file *nf = fp->fi_deleg_file; in nfs4_unlock_deleg_lease() local
1250 vfs_setlease(nf->nf_file, F_UNLCK, NULL, (void **)&dp); in nfs4_unlock_deleg_lease()
1500 struct nfsd_file *nf; in nfs4_free_lock_stateid() local
1502 nf = find_any_file(stp->st_stid.sc_file); in nfs4_free_lock_stateid()
1503 if (nf) { in nfs4_free_lock_stateid()
1504 get_file(nf->nf_file); in nfs4_free_lock_stateid()
[all …]
/Linux-v6.6/drivers/platform/surface/aggregator/
Dcontroller.c150 struct ssam_event_notifier *nf; in ssam_nfblk_call_chain() local
155 list_for_each_entry_rcu(nf, &nh->head, base.node, in ssam_nfblk_call_chain()
157 if (ssam_event_matches_notifier(nf, event)) { in ssam_nfblk_call_chain()
158 ret = (ret & SSAM_NOTIF_STATE_MASK) | nf->base.fn(nf, event); in ssam_nfblk_call_chain()
315 ssam_nf_refcount_inc(struct ssam_nf *nf, struct ssam_event_registry reg, in ssam_nf_refcount_inc() argument
320 struct rb_node **link = &nf->refcount.rb_node; in ssam_nf_refcount_inc()
324 lockdep_assert_held(&nf->lock); in ssam_nf_refcount_inc()
355 rb_insert_color(&entry->node, &nf->refcount); in ssam_nf_refcount_inc()
377 ssam_nf_refcount_dec(struct ssam_nf *nf, struct ssam_event_registry reg, in ssam_nf_refcount_dec() argument
382 struct rb_node *node = nf->refcount.rb_node; in ssam_nf_refcount_dec()
[all …]
/Linux-v6.6/drivers/media/pci/ivtv/
Divtv-yuv.c967 struct yuv_frame_info *nf = &yi->new_frame_info[frame]; in ivtv_yuv_setup_frame() local
972 int update = nf->update; in ivtv_yuv_setup_frame()
975 nf->src_x = args->src.left; in ivtv_yuv_setup_frame()
976 nf->src_y = args->src.top; in ivtv_yuv_setup_frame()
977 nf->src_w = args->src.width; in ivtv_yuv_setup_frame()
978 nf->src_h = args->src.height; in ivtv_yuv_setup_frame()
979 nf->dst_x = args->dst.left; in ivtv_yuv_setup_frame()
980 nf->dst_y = args->dst.top; in ivtv_yuv_setup_frame()
981 nf->dst_w = args->dst.width; in ivtv_yuv_setup_frame()
982 nf->dst_h = args->dst.height; in ivtv_yuv_setup_frame()
[all …]
/Linux-v6.6/net/ipv6/netfilter/
Dnf_defrag_ipv6_hooks.c93 if (net->nf.defrag_ipv6_users) { in defrag6_net_exit()
96 net->nf.defrag_ipv6_users = 0; in defrag6_net_exit()
147 if (net->nf.defrag_ipv6_users == UINT_MAX) { in nf_defrag_ipv6_enable()
152 if (net->nf.defrag_ipv6_users) { in nf_defrag_ipv6_enable()
153 net->nf.defrag_ipv6_users++; in nf_defrag_ipv6_enable()
160 net->nf.defrag_ipv6_users = 1; in nf_defrag_ipv6_enable()
171 if (net->nf.defrag_ipv6_users) { in nf_defrag_ipv6_disable()
172 net->nf.defrag_ipv6_users--; in nf_defrag_ipv6_disable()
173 if (net->nf.defrag_ipv6_users == 0) in nf_defrag_ipv6_disable()
/Linux-v6.6/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.c287 if (WARN_ON_ONCE(ARRAY_SIZE(net->nf.hooks_arp) <= hooknum)) in nf_hook_entry_head()
289 return net->nf.hooks_arp + hooknum; in nf_hook_entry_head()
293 if (WARN_ON_ONCE(ARRAY_SIZE(net->nf.hooks_bridge) <= hooknum)) in nf_hook_entry_head()
295 return net->nf.hooks_bridge + hooknum; in nf_hook_entry_head()
308 if (WARN_ON_ONCE(ARRAY_SIZE(net->nf.hooks_ipv4) <= hooknum)) in nf_hook_entry_head()
310 return net->nf.hooks_ipv4 + hooknum; in nf_hook_entry_head()
312 if (WARN_ON_ONCE(ARRAY_SIZE(net->nf.hooks_ipv6) <= hooknum)) in nf_hook_entry_head()
314 return net->nf.hooks_ipv6 + hooknum; in nf_hook_entry_head()
778 __netfilter_net_init(net->nf.hooks_ipv4, ARRAY_SIZE(net->nf.hooks_ipv4)); in netfilter_net_init()
779 __netfilter_net_init(net->nf.hooks_ipv6, ARRAY_SIZE(net->nf.hooks_ipv6)); in netfilter_net_init()
[all …]
Dnfnetlink_hook.c250 if (hook >= ARRAY_SIZE(net->nf.hooks_ipv4)) in nfnl_hook_entries_head()
252 hook_head = rcu_dereference(net->nf.hooks_ipv4[hook]); in nfnl_hook_entries_head()
255 if (hook >= ARRAY_SIZE(net->nf.hooks_ipv6)) in nfnl_hook_entries_head()
257 hook_head = rcu_dereference(net->nf.hooks_ipv6[hook]); in nfnl_hook_entries_head()
261 if (hook >= ARRAY_SIZE(net->nf.hooks_arp)) in nfnl_hook_entries_head()
263 hook_head = rcu_dereference(net->nf.hooks_arp[hook]); in nfnl_hook_entries_head()
268 if (hook >= ARRAY_SIZE(net->nf.hooks_bridge)) in nfnl_hook_entries_head()
270 hook_head = rcu_dereference(net->nf.hooks_bridge[hook]); in nfnl_hook_entries_head()
/Linux-v6.6/net/ipv4/netfilter/
Dnf_defrag_ipv4.c110 if (net->nf.defrag_ipv4_users) { in defrag4_net_exit()
113 net->nf.defrag_ipv4_users = 0; in defrag4_net_exit()
150 if (net->nf.defrag_ipv4_users == UINT_MAX) { in nf_defrag_ipv4_enable()
155 if (net->nf.defrag_ipv4_users) { in nf_defrag_ipv4_enable()
156 net->nf.defrag_ipv4_users++; in nf_defrag_ipv4_enable()
163 net->nf.defrag_ipv4_users = 1; in nf_defrag_ipv4_enable()
174 if (net->nf.defrag_ipv4_users) { in nf_defrag_ipv4_disable()
175 net->nf.defrag_ipv4_users--; in nf_defrag_ipv4_disable()
176 if (net->nf.defrag_ipv4_users == 0) in nf_defrag_ipv4_disable()
/Linux-v6.6/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.c1140 int16_t nf; in ar5008_hw_do_getnf() local
1142 nf = MS(REG_READ(ah, AR_PHY_CCA), AR_PHY_MINCCA_PWR); in ar5008_hw_do_getnf()
1143 nfarray[0] = sign_extend32(nf, 8); in ar5008_hw_do_getnf()
1145 nf = MS(REG_READ(ah, AR_PHY_CH1_CCA), AR_PHY_CH1_MINCCA_PWR); in ar5008_hw_do_getnf()
1146 nfarray[1] = sign_extend32(nf, 8); in ar5008_hw_do_getnf()
1148 nf = MS(REG_READ(ah, AR_PHY_CH2_CCA), AR_PHY_CH2_MINCCA_PWR); in ar5008_hw_do_getnf()
1149 nfarray[2] = sign_extend32(nf, 8); in ar5008_hw_do_getnf()
1154 nf = MS(REG_READ(ah, AR_PHY_EXT_CCA), AR_PHY_EXT_MINCCA_PWR); in ar5008_hw_do_getnf()
1155 nfarray[3] = sign_extend32(nf, 8); in ar5008_hw_do_getnf()
1157 nf = MS(REG_READ(ah, AR_PHY_CH1_EXT_CCA), AR_PHY_CH1_EXT_MINCCA_PWR); in ar5008_hw_do_getnf()
[all …]
/Linux-v6.6/drivers/platform/surface/
Dsurface_aggregator_cdev.c53 struct ssam_event_notifier nf; member
93 static u32 ssam_cdev_notifier(struct ssam_event_notifier *nf, const struct ssam_event *in) in ssam_cdev_notifier() argument
95 struct ssam_cdev_notifier *cdev_nf = container_of(nf, struct ssam_cdev_notifier, nf); in ssam_cdev_notifier()
139 struct ssam_cdev_notifier *nf; in ssam_cdev_notifier_register() local
157 nf = kzalloc(sizeof(*nf), GFP_KERNEL); in ssam_cdev_notifier_register()
158 if (!nf) { in ssam_cdev_notifier_register()
169 nf->client = client; in ssam_cdev_notifier_register()
170 nf->nf.base.fn = ssam_cdev_notifier; in ssam_cdev_notifier_register()
171 nf->nf.base.priority = priority; in ssam_cdev_notifier_register()
172 nf->nf.event.id.target_category = tc; in ssam_cdev_notifier_register()
[all …]
Dsurface_aggregator_hub.c60 u32 (*notify)(struct ssam_event_notifier *nf, const struct ssam_event *event);
244 static u32 ssam_base_hub_notif(struct ssam_event_notifier *nf, const struct ssam_event *event) in ssam_base_hub_notif() argument
246 struct ssam_hub *hub = container_of(nf, struct ssam_hub, notif); in ssam_base_hub_notif()
315 static u32 ssam_kip_hub_notif(struct ssam_event_notifier *nf, const struct ssam_event *event) in ssam_kip_hub_notif() argument
317 struct ssam_hub *hub = container_of(nf, struct ssam_hub, notif); in ssam_kip_hub_notif()
/Linux-v6.6/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 …]
/Linux-v6.6/drivers/media/v4l2-core/
Dv4l2-jpeg.c132 static int v4l2_jpeg_decode_subsampling(u8 nf, u8 h_v) in v4l2_jpeg_decode_subsampling() argument
134 if (nf == 1) in v4l2_jpeg_decode_subsampling()
138 if (nf == 4 && h_v != 0x11) in v4l2_jpeg_decode_subsampling()
168 int p, y, x, nf; in jpeg_parse_frame_header() local
193 nf = jpeg_get_byte(stream); in jpeg_parse_frame_header()
194 if (nf < 0) in jpeg_parse_frame_header()
195 return nf; in jpeg_parse_frame_header()
200 if (nf < 1 || nf > V4L2_JPEG_MAX_COMPONENTS) in jpeg_parse_frame_header()
202 if (len != 8 + 3 * nf) in jpeg_parse_frame_header()
208 frame_header->num_components = nf; in jpeg_parse_frame_header()
[all …]
/Linux-v6.6/drivers/video/
Dsticore.c526 struct sti_rom_font *nf; in sti_select_fbfont() local
543 nf = kzalloc(size, STI_LOWMEM); in sti_select_fbfont()
544 if (!nf) in sti_select_fbfont()
547 nf->first_char = 0; in sti_select_fbfont()
548 nf->last_char = fbfont->charcount - 1; in sti_select_fbfont()
549 nf->width = fbfont->width; in sti_select_fbfont()
550 nf->height = fbfont->height; in sti_select_fbfont()
551 nf->font_type = STI_FONT_HPROMAN8; in sti_select_fbfont()
552 nf->bytes_per_char = bpc; in sti_select_fbfont()
553 nf->next_font = 0; in sti_select_fbfont()
[all …]
/Linux-v6.6/tools/testing/selftests/netfilter/
Dnft_queue.sh226 ip netns exec ${nsrouter} ./nf-queue -c -q 0 -t $timeout > "$TMPFILE0" &
227 ip netns exec ${nsrouter} ./nf-queue -c -q 1 -t $timeout > "$TMPFILE1" &
262 ip netns exec ${nsrouter} ./nf-queue -q 2 -t $timeout &
288 ip netns exec ${nsrouter} ./nf-queue -q 3 -t $timeout &
306 ip netns exec ${nsrouter} ./nf-queue -q 3 -t $timeout &
337 ip netns exec ${nsrouter} ./nf-queue -c -q 1 -t $timeout > "$TMPFILE2" &
341 ip netns exec ${nsrouter} ./nf-queue -G -d 150 -c -q 0 -Q 1 -t $timeout > "$TMPFILE3" &
383 ip netns exec ${ns1} ./nf-queue -q 1 -t $timeout &
/Linux-v6.6/include/linux/
Dnetfilter.h231 hook_head = rcu_dereference(net->nf.hooks_ipv4[hook]); in nf_hook()
234 hook_head = rcu_dereference(net->nf.hooks_ipv6[hook]); in nf_hook()
238 if (WARN_ON_ONCE(hook >= ARRAY_SIZE(net->nf.hooks_arp))) in nf_hook()
240 hook_head = rcu_dereference(net->nf.hooks_arp[hook]); in nf_hook()
245 hook_head = rcu_dereference(net->nf.hooks_bridge[hook]); in nf_hook()
325 hook_head = rcu_dereference(net->nf.hooks_ipv4[hook]); in NF_HOOK_LIST()
328 hook_head = rcu_dereference(net->nf.hooks_ipv6[hook]); in NF_HOOK_LIST()
/Linux-v6.6/Documentation/networking/
Dnf_conntrack-sysctl.rst224 TCP connections may be offloaded from nf conntrack to nf flow table.
225 Once aged, the connection is returned to nf conntrack with tcp pickup timeout.
231 UDP connections may be offloaded from nf conntrack to nf flow table.
232 Once aged, the connection is returned to nf conntrack with udp pickup timeout.
/Linux-v6.6/drivers/gpu/drm/gma500/
Doaktrail_hdmi.c108 struct intel_range vco, np, nr, nf; member
114 int nf; member
131 .nf = { .min = NF_MIN, .max = NF_MAX },
182 int np, nr, nf; in oaktrail_hdmi_find_dpll() local
200 nf = DIV_ROUND_CLOSEST((target * 10 * np * nr), refclk); in oaktrail_hdmi_find_dpll()
201 DRM_DEBUG_KMS("np, nr, nf %d %d %d\n", np, nr, nf); in oaktrail_hdmi_find_dpll()
209 best_clock->nf = (nf << 14); in oaktrail_hdmi_find_dpll()
315 REG_WRITE(DPLL_DIV_CTRL, ((clock.nf << 6) | clock.nr)); in oaktrail_crtc_hdmi_mode_set()
316 REG_WRITE(DPLL_ADJUST, ((clock.nf >> 14) - 1)); in oaktrail_crtc_hdmi_mode_set()
/Linux-v6.6/drivers/clk/
Dclk-sp7021.c153 unsigned long fvco, nf; in plltv_integer_div() local
167 nf = fvco * m_table[m]; in plltv_integer_div()
168 n = nf / F_27M; in plltv_integer_div()
169 if ((n * F_27M) == nf) in plltv_integer_div()
220 unsigned long fvco, nf, f, fout = 0; in plltv_fractional_div() local
246 nf = fvco * m; in plltv_fractional_div()
247 nint = nf / pp[3]; in plltv_fractional_div()
254 nfra = (((nf % pp[3]) * mod * pp[4]) + (F_27M / 2)) / F_27M; in plltv_fractional_div()
/Linux-v6.6/drivers/block/aoe/
Daoecmd.c555 struct frame *nf; in reassign_frame() local
558 nf = newframe(f->t->d); in reassign_frame()
559 if (!nf) in reassign_frame()
561 if (nf->t == f->t) { in reassign_frame()
562 aoe_freetframe(nf); in reassign_frame()
566 skb = nf->skb; in reassign_frame()
567 nf->skb = f->skb; in reassign_frame()
568 nf->buf = f->buf; in reassign_frame()
569 nf->iter = f->iter; in reassign_frame()
570 nf->waited = 0; in reassign_frame()
[all …]

1234