Home
last modified time | relevance | path

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

12345

/linux-6.15/fs/nfsd/
H A Dfilecache.c234 return nf; in nfsd_file_alloc()
283 if (nf->nf_mark) in nfsd_file_free()
344 if (nf && refcount_inc_not_zero(&nf->nf_ref)) in nfsd_file_get()
345 return nf; in nfsd_file_get()
1009 return nf; in nfsd_file_lookup_locked()
1078 if (nf) in nfsd_file_do_acquire()
1096 nf = new; in nfsd_file_do_acquire()
1128 nf = NULL; in nfsd_file_do_acquire()
1135 *pnf = nf; in nfsd_file_do_acquire()
1158 nf = NULL; in nfsd_file_do_acquire()
[all …]
H A Dfilecache.h64 void nfsd_file_put(struct nfsd_file *nf);
65 struct net *nfsd_file_put_local(struct nfsd_file *nf);
66 struct nfsd_file *nfsd_file_get(struct nfsd_file *nf);
67 struct file *nfsd_file_file(struct nfsd_file *nf);
H A Dtrace.h1058 TP_ARGS(nf),
1084 TP_ARGS(nf))
1096 TP_ARGS(nf),
1142 __entry->nf_ref = nf ? refcount_read(&nf->nf_ref) : 0;
1143 __entry->nf_flags = nf ? nf->nf_flags : 0;
1144 __entry->nf_may = nf ? nf->nf_may : 0;
1145 __entry->nf_file = nf ? nf->nf_file : NULL;
1221 TP_ARGS(nf, status),
1250 TP_ARGS(nf, status))
1298 TP_ARGS(nf),
[all …]
/linux-6.15/tools/testing/selftests/net/
H A Dnl_netdev.py10 def empty_check(nf) -> None: argument
11 devs = nf.dev_get({}, dump=True)
15 def lo_check(nf) -> None: argument
16 lo_info = nf.dev_get({"ifindex": 1})
21 def napi_list_check(nf) -> None: argument
38 def nsim_rxq_reset_down(nf) -> None: argument
53 def page_pool_check(nf) -> None: argument
64 pp_list = nf.page_pool_get({}, dump=True)
86 pp_list = nf.page_pool_get({}, dump=True)
123 nf = NetdevFamily()
[all …]
/linux-6.15/drivers/platform/surface/aggregator/
H A Dcontroller.c158 ret = (ret & SSAM_NOTIF_STATE_MASK) | nf->base.fn(nf, event); in ssam_nfblk_call_chain()
513 mutex_init(&nf->lock); in ssam_nf_init()
780 struct ssam_nf *nf; in ssam_event_queue_work_fn() local
2332 struct ssam_nf *nf; in ssam_notifier_register() local
2341 mutex_lock(&nf->lock); in ssam_notifier_register()
2401 struct ssam_nf *nf; in __ssam_notifier_unregister() local
2410 mutex_lock(&nf->lock); in __ssam_notifier_unregister()
2479 mutex_lock(&nf->lock); in ssam_controller_event_enable()
2530 mutex_lock(&nf->lock); in ssam_controller_event_disable()
2572 mutex_lock(&nf->lock); in ssam_notifier_disable_registered()
[all …]
/linux-6.15/drivers/media/pci/ivtv/
H A Divtv-yuv.c994 nf->offset_y = (nf->tru_h + nf->src_x < 512 - 16) ? 1 : 0; in ivtv_yuv_setup_frame()
996 nf->update = 0; in ivtv_yuv_setup_frame()
999 nf->delay = 0; in ivtv_yuv_setup_frame()
1010 if (nf->tru_h < 512 || (nf->tru_h > 576 && nf->tru_h < 1021)) in ivtv_yuv_setup_frame()
1015 if (nf->tru_h < 1021 && (nf->dst_h >= nf->src_h / 2)) in ivtv_yuv_setup_frame()
1022 if (nf->tru_h <= lace_threshold || nf->tru_h > 576 || nf->tru_w > 720) { in ivtv_yuv_setup_frame()
1025 (nf->tru_h > 576 && nf->tru_h < 1021) || in ivtv_yuv_setup_frame()
1026 (nf->tru_w > 720 && nf->tru_h < 1021)) in ivtv_yuv_setup_frame()
1030 if (nf->tru_h < 1021 && (nf->dst_h >= nf->src_h / 2)) in ivtv_yuv_setup_frame()
1049 if (memcmp(&yi->old_frame_info_args, nf, sizeof(*nf))) { in ivtv_yuv_setup_frame()
[all …]
/linux-6.15/net/ipv6/netfilter/
H A 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-6.15/net/netfilter/
H A Dnf_log.c53 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()
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()
328 if (*pos >= ARRAY_SIZE(net->nf.nf_loggers)) in seq_start()
340 if (*pos >= ARRAY_SIZE(net->nf.nf_loggers)) in seq_next()
[all …]
H A 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()
295 return net->nf.hooks_bridge + hooknum; in nf_hook_entry_head()
310 return net->nf.hooks_ipv4 + hooknum; in nf_hook_entry_head()
314 return net->nf.hooks_ipv6 + hooknum; in nf_hook_entry_head()
776 __netfilter_net_init(net->nf.hooks_ipv4, ARRAY_SIZE(net->nf.hooks_ipv4)); in netfilter_net_init()
777 __netfilter_net_init(net->nf.hooks_ipv6, ARRAY_SIZE(net->nf.hooks_ipv6)); in netfilter_net_init()
779 __netfilter_net_init(net->nf.hooks_arp, ARRAY_SIZE(net->nf.hooks_arp)); in netfilter_net_init()
782 __netfilter_net_init(net->nf.hooks_bridge, ARRAY_SIZE(net->nf.hooks_bridge)); in netfilter_net_init()
785 net->nf.proc_netfilter = proc_net_mkdir(net, "netfilter", in netfilter_net_init()
[all …]
H A 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()
H A Dnf_hooks_lwtunnel.c86 net->nf.nf_lwtnl_dir_header = hdr; in nf_lwtunnel_net_init()
100 table = net->nf.nf_lwtnl_dir_header->ctl_table_arg; in nf_lwtunnel_net_exit()
101 unregister_net_sysctl_table(net->nf.nf_lwtnl_dir_header); in nf_lwtunnel_net_exit()
/linux-6.15/net/ipv4/netfilter/
H A 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-6.15/drivers/net/wireless/ath/ath9k/
H A Dcalib.c66 s16 nf) in ath9k_hw_getchan_noise() argument
70 if (nf) { in ath9k_hw_getchan_noise()
376 if (!nf[i]) in ath9k_hw_nf_sanitize()
386 i, nf[i], limit->max); in ath9k_hw_nf_sanitize()
387 nf[i] = limit->max; in ath9k_hw_nf_sanitize()
391 i, nf[i], limit->min); in ath9k_hw_nf_sanitize()
400 int16_t nf, nfThresh; in ath9k_hw_getnf() local
414 nf = nfarray[0]; in ath9k_hw_getnf()
416 && nf > nfThresh) { in ath9k_hw_getnf()
419 nf, nfThresh); in ath9k_hw_getnf()
[all …]
H A 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()
/linux-6.15/drivers/platform/surface/
H A Dsurface_aggregator_cdev.c95 struct ssam_cdev_notifier *cdev_nf = container_of(nf, struct ssam_cdev_notifier, nf); in ssam_cdev_notifier()
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()
173 nf->nf.event.mask = 0; /* Do not do any matching. */ in ssam_cdev_notifier_register()
174 nf->nf.flags = SSAM_EVENT_NOTIFIER_OBSERVER; in ssam_cdev_notifier_register()
177 status = ssam_notifier_register(client->cdev->ctrl, &nf->nf); in ssam_cdev_notifier_register()
[all …]
H A 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-6.15/drivers/clk/baikal-t1/
H A 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
249 unsigned long nr, nf, od; in ccu_pll_set_rate_reset() local
259 FIELD_PREP(CCU_PLL_CTL_CLKF_MASK, nf - 1) | in ccu_pll_set_rate_reset()
[all …]
/linux-6.15/drivers/clk/renesas/
H A Drcar-gen4-cpg.c87 unsigned int ni, nf; in cpg_pll_8_25_clk_recalc_rate() local
94 rate += mul_u64_u32_shr(parent_rate, nf, 24); in cpg_pll_8_25_clk_recalc_rate()
104 unsigned int min_mult, max_mult, ni, nf; in cpg_pll_8_25_clk_determine_rate() local
118 nf = 0; in cpg_pll_8_25_clk_determine_rate()
127 nf = 0; in cpg_pll_8_25_clk_determine_rate()
140 unsigned int ni, nf; in cpg_pll_8_25_clk_set_rate() local
147 nf = 0; in cpg_pll_8_25_clk_set_rate()
150 nf = div64_ul((u64)(rate - prate * ni) << 24, in cpg_pll_8_25_clk_set_rate()
165 FIELD_PREP(CPG_PLLxCR1_NF25, nf)); in cpg_pll_8_25_clk_set_rate()
201 unsigned int ni, nf; in cpg_pll_9_24_clk_recalc_rate() local
[all …]
/linux-6.15/drivers/media/v4l2-core/
H A Dv4l2-jpeg.c250 if (nf == 1) in v4l2_jpeg_decode_subsampling()
254 if (nf == 4 && h_v != 0x11) in v4l2_jpeg_decode_subsampling()
284 int p, y, x, nf; in jpeg_parse_frame_header() local
309 nf = jpeg_get_byte(stream); in jpeg_parse_frame_header()
310 if (nf < 0) in jpeg_parse_frame_header()
311 return nf; in jpeg_parse_frame_header()
316 if (nf < 1 || nf > V4L2_JPEG_MAX_COMPONENTS) in jpeg_parse_frame_header()
318 if (len != 8 + 3 * nf) in jpeg_parse_frame_header()
324 frame_header->num_components = nf; in jpeg_parse_frame_header()
326 for (i = 0; i < nf; i++) { in jpeg_parse_frame_header()
[all …]
/linux-6.15/Documentation/netlink/specs/
H A Dconntrack.yaml26 name: nf-ct-tcp-flags-mask
32 enum: nf-ct-tcp-flags
37 enum: nf-ct-tcp-flags
40 name: nf-ct-tcp-flags
52 name: nf-ct-tcp-state
71 name: nf-ct-sctp-state
84 name: nf-ct-status
219 enum: nf-ct-tcp-state
261 enum: nf-ct-sctp-state
380 enum: nf-ct-status
[all …]
/linux-6.15/fs/nfs/
H A Dlocalio.c212 return nfs_to->nfsd_file_get(nf); in nfs_local_file_get()
217 nfs_to->nfsd_file_put(nf); in nfs_local_file_put()
261 struct nfsd_file *nf, *new, __rcu **pnf; in nfs_local_open_fh() local
275 nf = rcu_dereference(*pnf); in nfs_local_open_fh()
276 if (!nf) { in nfs_local_open_fh()
284 nf = rcu_dereference_protected(*pnf, 1); in nfs_local_open_fh()
285 if (!nf) { in nfs_local_open_fh()
286 nf = new; in nfs_local_open_fh()
288 rcu_assign_pointer(*pnf, nf); in nfs_local_open_fh()
292 nf = nfs_local_file_get(nf); in nfs_local_open_fh()
[all …]
/linux-6.15/drivers/video/
H A Dsticore.c526 struct sti_rom_font *nf; in sti_select_fbfont() local
544 if (!nf) in sti_select_fbfont()
547 nf->first_char = 0; in sti_select_fbfont()
549 nf->width = fbfont->width; in sti_select_fbfont()
552 nf->bytes_per_char = bpc; in sti_select_fbfont()
553 nf->next_font = 0; in sti_select_fbfont()
554 nf->underline_height = 1; in sti_select_fbfont()
555 nf->underline_pos = fbfont->height - nf->underline_height; in sti_select_fbfont()
557 dest = nf; in sti_select_fbfont()
563 kfree(nf); in sti_select_fbfont()
[all …]
/linux-6.15/include/linux/
H A Dnetfilter.h241 hook_head = rcu_dereference(net->nf.hooks_ipv4[hook]); in nf_hook()
244 hook_head = rcu_dereference(net->nf.hooks_ipv6[hook]); in nf_hook()
248 if (WARN_ON_ONCE(hook >= ARRAY_SIZE(net->nf.hooks_arp))) in nf_hook()
250 hook_head = rcu_dereference(net->nf.hooks_arp[hook]); in nf_hook()
255 hook_head = rcu_dereference(net->nf.hooks_bridge[hook]); in nf_hook()
335 hook_head = rcu_dereference(net->nf.hooks_ipv4[hook]); in NF_HOOK_LIST()
338 hook_head = rcu_dereference(net->nf.hooks_ipv6[hook]); in NF_HOOK_LIST()
/linux-6.15/Documentation/networking/
H A 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.
231 UDP connections may be offloaded from nf conntrack to nf flow table.
232 Once aged, the connection is returned to nf conntrack.
/linux-6.15/drivers/gpu/drm/gma500/
H A 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()

12345