Home
last modified time | relevance | path

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

1234

/linux/fs/nfsd/
A Dfilecache.c179 if (nf) { in nfsd_file_alloc()
200 return nf; in nfsd_file_alloc()
209 if (nf->nf_mark) in nfsd_file_free()
306 if (refcount_read(&nf->nf_ref) > 2 || !nf->nf_file) { in nfsd_file_put()
324 return nf; in nfsd_file_get()
907 return nf; in nfsd_file_find_locked()
964 if (nf) in nfsd_file_acquire()
1014 *pnf = nf; in nfsd_file_acquire()
1017 nf = NULL; in nfsd_file_acquire()
1023 nf = new; in nfsd_file_acquire()
[all …]
A Dtrace.h655 TP_PROTO(struct nfsd_file *nf),
656 TP_ARGS(nf),
667 __entry->nf_inode = nf->nf_inode;
670 __entry->nf_may = nf->nf_may;
671 __entry->nf_file = nf->nf_file;
684 TP_PROTO(struct nfsd_file *nf), \
685 TP_ARGS(nf))
717 __entry->nf_ref = nf ? refcount_read(&nf->nf_ref) : 0;
718 __entry->nf_flags = nf ? nf->nf_flags : 0;
719 __entry->nf_may = nf ? nf->nf_may : 0;
[all …]
A Dvfs.c994 up_write(&nf->nf_rwsem); in nfsd_vfs_write()
996 down_read(&nf->nf_rwsem); in nfsd_vfs_write()
1002 up_read(&nf->nf_rwsem); in nfsd_vfs_write()
1042 struct nfsd_file *nf; in nfsd_read() local
1051 file = nf->nf_file; in nfsd_read()
1057 nfsd_file_put(nf); in nfsd_read()
1074 struct nfsd_file *nf; in nfsd_write() local
1085 nfsd_file_put(nf); in nfsd_write()
1118 struct nfsd_file *nf; in nfsd_commit() local
1153 up_write(&nf->nf_rwsem); in nfsd_commit()
[all …]
A Dfilecache.h57 void nfsd_file_put(struct nfsd_file *nf);
58 struct nfsd_file *nfsd_file_get(struct nfsd_file *nf);
A Dnfs4state.c1126 if (nf) in put_deleg_file()
1387 if (nf) { in nfs4_free_lock_stateid()
4970 if (nf) in nfs4_get_vfs_file()
5126 if (!nf) { in nfs4_set_delegation()
5148 if (nf) in nfs4_set_delegation()
5923 if (nf) { in nfs4_check_file()
5935 *nfp = nf; in nfs4_check_file()
6920 if (nf) in nfsd4_lock()
6933 if (nf) in nfsd4_lock()
6943 if (!nf) { in nfsd4_lock()
[all …]
/linux/drivers/platform/surface/aggregator/
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
2280 struct ssam_nf *nf; in ssam_notifier_register() local
2289 mutex_lock(&nf->lock); in ssam_notifier_register()
2343 struct ssam_nf *nf; in ssam_notifier_unregister() local
2352 mutex_lock(&nf->lock); in ssam_notifier_unregister()
2421 mutex_lock(&nf->lock); in ssam_controller_event_enable()
2472 mutex_lock(&nf->lock); in ssam_controller_event_disable()
2514 mutex_lock(&nf->lock); in ssam_notifier_disable_registered()
[all …]
/linux/drivers/media/pci/ivtv/
A Divtv-yuv.c989 nf->offset_y = (nf->tru_h + nf->src_x < 512 - 16) ? 1 : 0; in ivtv_yuv_setup_frame()
991 nf->update = 0; in ivtv_yuv_setup_frame()
994 nf->delay = 0; in ivtv_yuv_setup_frame()
1005 if (nf->tru_h < 512 || (nf->tru_h > 576 && nf->tru_h < 1021)) in ivtv_yuv_setup_frame()
1010 if (nf->tru_h < 1021 && (nf->dst_h >= nf->src_h / 2)) in ivtv_yuv_setup_frame()
1017 if (nf->tru_h <= lace_threshold || nf->tru_h > 576 || nf->tru_w > 720) { in ivtv_yuv_setup_frame()
1020 (nf->tru_h > 576 && nf->tru_h < 1021) || in ivtv_yuv_setup_frame()
1021 (nf->tru_w > 720 && nf->tru_h < 1021)) in ivtv_yuv_setup_frame()
1025 if (nf->tru_h < 1021 && (nf->dst_h >= nf->src_h / 2)) in ivtv_yuv_setup_frame()
1044 if (memcmp(&yi->old_frame_info_args, nf, sizeof(*nf))) { in ivtv_yuv_setup_frame()
[all …]
/linux/net/netfilter/
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()
322 if (*pos >= ARRAY_SIZE(net->nf.nf_loggers)) in seq_start()
334 if (*pos >= ARRAY_SIZE(net->nf.nf_loggers)) in seq_next()
[all …]
A Dcore.c277 return net->nf.hooks_arp + hooknum; in nf_hook_entry_head()
283 return net->nf.hooks_bridge + hooknum; in nf_hook_entry_head()
298 return net->nf.hooks_ipv4 + hooknum; in nf_hook_entry_head()
302 return net->nf.hooks_ipv6 + hooknum; in nf_hook_entry_head()
307 return net->nf.hooks_decnet + hooknum; in nf_hook_entry_head()
746 __netfilter_net_init(net->nf.hooks_ipv4, ARRAY_SIZE(net->nf.hooks_ipv4)); in netfilter_net_init()
747 __netfilter_net_init(net->nf.hooks_ipv6, ARRAY_SIZE(net->nf.hooks_ipv6)); in netfilter_net_init()
749 __netfilter_net_init(net->nf.hooks_arp, ARRAY_SIZE(net->nf.hooks_arp)); in netfilter_net_init()
752 __netfilter_net_init(net->nf.hooks_bridge, ARRAY_SIZE(net->nf.hooks_bridge)); in netfilter_net_init()
755 __netfilter_net_init(net->nf.hooks_decnet, ARRAY_SIZE(net->nf.hooks_decnet)); in netfilter_net_init()
[all …]
A Dnfnetlink_hook.c194 if (hook >= ARRAY_SIZE(net->nf.hooks_ipv4)) in nfnl_hook_entries_head()
196 hook_head = rcu_dereference(net->nf.hooks_ipv4[hook]); in nfnl_hook_entries_head()
199 if (hook >= ARRAY_SIZE(net->nf.hooks_ipv6)) in nfnl_hook_entries_head()
201 hook_head = rcu_dereference(net->nf.hooks_ipv6[hook]); in nfnl_hook_entries_head()
205 if (hook >= ARRAY_SIZE(net->nf.hooks_arp)) in nfnl_hook_entries_head()
207 hook_head = rcu_dereference(net->nf.hooks_arp[hook]); in nfnl_hook_entries_head()
212 if (hook >= ARRAY_SIZE(net->nf.hooks_bridge)) in nfnl_hook_entries_head()
214 hook_head = rcu_dereference(net->nf.hooks_bridge[hook]); in nfnl_hook_entries_head()
219 if (hook >= ARRAY_SIZE(net->nf.hooks_decnet)) in nfnl_hook_entries_head()
221 hook_head = rcu_dereference(net->nf.hooks_decnet[hook]); in nfnl_hook_entries_head()
/linux/net/ipv6/netfilter/
A Dnf_defrag_ipv6_hooks.c92 if (net->nf.defrag_ipv6_users) { in defrag6_net_exit()
95 net->nf.defrag_ipv6_users = 0; in defrag6_net_exit()
136 if (net->nf.defrag_ipv6_users == UINT_MAX) { in nf_defrag_ipv6_enable()
141 if (net->nf.defrag_ipv6_users) { in nf_defrag_ipv6_enable()
142 net->nf.defrag_ipv6_users++; in nf_defrag_ipv6_enable()
149 net->nf.defrag_ipv6_users = 1; in nf_defrag_ipv6_enable()
160 if (net->nf.defrag_ipv6_users) { in nf_defrag_ipv6_disable()
161 net->nf.defrag_ipv6_users--; in nf_defrag_ipv6_disable()
162 if (net->nf.defrag_ipv6_users == 0) in nf_defrag_ipv6_disable()
/linux/net/ipv4/netfilter/
A Dnf_defrag_ipv4.c109 if (net->nf.defrag_ipv4_users) { in defrag4_net_exit()
112 net->nf.defrag_ipv4_users = 0; in defrag4_net_exit()
135 if (net->nf.defrag_ipv4_users == UINT_MAX) { in nf_defrag_ipv4_enable()
140 if (net->nf.defrag_ipv4_users) { in nf_defrag_ipv4_enable()
141 net->nf.defrag_ipv4_users++; in nf_defrag_ipv4_enable()
148 net->nf.defrag_ipv4_users = 1; in nf_defrag_ipv4_enable()
159 if (net->nf.defrag_ipv4_users) { in nf_defrag_ipv4_disable()
160 net->nf.defrag_ipv4_users--; in nf_defrag_ipv4_disable()
161 if (net->nf.defrag_ipv4_users == 0) in nf_defrag_ipv4_disable()
/linux/drivers/net/wireless/ath/ath9k/
A Dcalib.c73 s16 nf) in ath9k_hw_getchan_noise() argument
77 if (nf) { in ath9k_hw_getchan_noise()
383 if (!nf[i]) 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()
398 i, nf[i], limit->min); in ath9k_hw_nf_sanitize()
407 int16_t nf, nfThresh; in ath9k_hw_getnf() local
421 nf = nfarray[0]; in ath9k_hw_getnf()
423 && nf > nfThresh) { in ath9k_hw_getnf()
426 nf, nfThresh); in ath9k_hw_getnf()
[all …]
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()
A 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()
1158 nfarray[4] = sign_extend32(nf, 8); in ar5008_hw_do_getnf()
[all …]
/linux/drivers/platform/surface/
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 …]
/linux/drivers/clk/baikal-t1/
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/drivers/media/v4l2-core/
A Dv4l2-jpeg.c134 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()
210 for (i = 0; i < nf; i++) { in jpeg_parse_frame_header()
[all …]
/linux/drivers/video/console/
A Dsticore.c495 struct sti_rom_font *nf; in sti_select_fbfont() local
513 if (!nf) in sti_select_fbfont()
516 nf->first_char = 0; in sti_select_fbfont()
518 nf->width = fbfont->width; in sti_select_fbfont()
521 nf->bytes_per_char = bpc; in sti_select_fbfont()
522 nf->next_font = 0; in sti_select_fbfont()
523 nf->underline_height = 1; in sti_select_fbfont()
524 nf->underline_pos = fbfont->height - nf->underline_height; in sti_select_fbfont()
526 dest = nf; in sti_select_fbfont()
532 kfree(nf); in sti_select_fbfont()
[all …]
/linux/include/linux/
A Dnetfilter.h229 hook_head = rcu_dereference(net->nf.hooks_ipv4[hook]); in nf_hook()
232 hook_head = rcu_dereference(net->nf.hooks_ipv6[hook]); in nf_hook()
236 if (WARN_ON_ONCE(hook >= ARRAY_SIZE(net->nf.hooks_arp))) in nf_hook()
238 hook_head = rcu_dereference(net->nf.hooks_arp[hook]); in nf_hook()
243 hook_head = rcu_dereference(net->nf.hooks_bridge[hook]); in nf_hook()
248 hook_head = rcu_dereference(net->nf.hooks_decnet[hook]); in nf_hook()
328 hook_head = rcu_dereference(net->nf.hooks_ipv4[hook]); in NF_HOOK_LIST()
331 hook_head = rcu_dereference(net->nf.hooks_ipv6[hook]); in NF_HOOK_LIST()
/linux/Documentation/networking/
A Dnf_conntrack-sysctl.rst201 TCP connections may be offloaded from nf conntrack to nf flow table.
202 Once aged, the connection is returned to nf conntrack with tcp pickup timeout.
208 UDP connections may be offloaded from nf conntrack to nf flow table.
209 Once aged, the connection is returned to nf conntrack with udp pickup timeout.
/linux/drivers/gpu/drm/gma500/
A 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()
/linux/tools/testing/selftests/netfilter/
A Dnft_queue.sh225 ip netns exec ${nsrouter} ./nf-queue -c -q 0 -t $timeout > "$TMPFILE0" &
226 ip netns exec ${nsrouter} ./nf-queue -c -q 1 -t $timeout > "$TMPFILE1" &
261 ip netns exec ${nsrouter} ./nf-queue -q 2 -t $timeout &
287 ip netns exec ${nsrouter} ./nf-queue -q 3 -t $timeout &
319 ip netns exec ${nsrouter} ./nf-queue -c -q 1 -t $timeout > "$TMPFILE2" &
323 ip netns exec ${nsrouter} ./nf-queue -G -d 150 -c -q 0 -Q 1 -t $timeout > "$TMPFILE3" &
365 ip netns exec ${ns1} ./nf-queue -q 1 -t $timeout &
/linux/drivers/block/aoe/
A Daoecmd.c556 struct frame *nf; in reassign_frame() local
560 if (!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()
576 return nf; in reassign_frame()
642 struct frame *nf; in rexmit_deferred() local
656 if (nf) { in rexmit_deferred()
[all …]
/linux/net/sched/
A 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()

Completed in 75 milliseconds

1234